agent-accelerator 0.5.4 → 0.5.5

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -15,6 +15,12 @@ export interface ScheduleSpec {
15
15
  repeatEvery?: string;
16
16
  /** Extra attempts if a run fails, only while time remains before delivery. Default 0. */
17
17
  retries?: number;
18
+ /**
19
+ * What happens when the host program was not running at a delivery time. `"skip"`: move on to the next time (a one-shot
20
+ * is done). `"run"`: run it as soon as the program is back. Omitted: the action is marked `missed` and waits for
21
+ * `runScheduledAction` or `skipScheduledAction`.
22
+ */
23
+ onMissed?: "skip" | "run";
18
24
  }
19
25
 
20
26
  /** What `createScheduledAction` receives: dynamic sub-agent fields plus the schedule. */
@@ -24,6 +30,7 @@ export interface ScheduledActionInput {
24
30
  task: string;
25
31
  /** Names from the developer's `dynamicSubagents.tools` pool. */
26
32
  tools?: string[];
33
+ /** Longest one run may take, in ms. Never above `dynamicSubagents.workerTimeoutMs` when the developer set one. */
27
34
  timeoutMs?: number;
28
35
  scheduled_action: ScheduleSpec & {
29
36
  /** Human label. */
@@ -74,8 +81,8 @@ export interface ScheduledDelivery {
74
81
  late: boolean;
75
82
  }
76
83
 
77
- /** Result of `killScheduledAction`. */
78
- export type KillResult =
84
+ /** Result of `deleteScheduledAction`. */
85
+ export type DeleteResult =
79
86
  | { ok: true }
80
87
  | { ok: false; reason: "not_found" }
81
88
  | { ok: false; reason: "running"; message: string };
@@ -23,7 +23,7 @@ export function getPackageVersion(): string {
23
23
  const v = (globalThis as any).process?.env?.npm_package_version;
24
24
  if (typeof v === "string" && v) return v;
25
25
  } catch {}
26
- return "0.5.4";
26
+ return "0.5.5";
27
27
  }
28
28
 
29
29
  function getAgentAccelUserAgent(): string {