@@ -4,7 +4,7 @@ import type { CliDeps } from "../../cli/outbound-send-deps.js";
44import type { OpenClawConfig } from "../../config/config.js" ;
55import type { AgentDefaultsConfig } from "../../config/types.agent-defaults.js" ;
66import { resolveCronDeliveryPlan } from "../delivery-plan.js" ;
7- import type { CronJob , CronRunOutcome , CronRunTelemetry } from "../types.js" ;
7+ import type { CronJob , CronRunTelemetry } from "../types.js" ;
88import {
99 dispatchCronDelivery ,
1010 matchesMessagingToolDeliveryTarget ,
@@ -54,6 +54,7 @@ import {
5454 setSessionRuntimeModel ,
5555 supportsXHighThinking ,
5656} from "./run.runtime.js" ;
57+ import type { RunCronAgentTurnResult } from "./run.types.js" ;
5758import { resolveCronAgentSessionKey } from "./session-key.js" ;
5859import { resolveCronSession } from "./session.js" ;
5960import { resolveCronSkillsSnapshot } from "./skills-snapshot.js" ;
@@ -71,24 +72,7 @@ function resolveNonNegativeNumber(value: number | undefined): number | undefined
7172 return typeof value === "number" && Number . isFinite ( value ) && value >= 0 ? value : undefined ;
7273}
7374
74- export type RunCronAgentTurnResult = {
75- /** Last non-empty agent text output (not truncated). */
76- outputText ?: string ;
77- /**
78- * `true` when the isolated runner already handled the run's user-visible
79- * delivery outcome. Cron-owned callers use this for cron delivery or
80- * explicit suppression; shared callers may also use it for a matching
81- * message-tool send that already reached the target.
82- */
83- delivered ?: boolean ;
84- /**
85- * `true` when cron attempted announce/direct delivery for this run.
86- * This is tracked separately from `delivered` because some announce paths
87- * cannot guarantee a final delivery ack synchronously.
88- */
89- deliveryAttempted ?: boolean ;
90- } & CronRunOutcome &
91- CronRunTelemetry ;
75+ export type { RunCronAgentTurnResult } from "./run.types.js" ;
9276
9377type ResolvedCronDeliveryTarget = Awaited < ReturnType < typeof resolveDeliveryTarget > > ;
9478
0 commit comments