@hearsay-tools/squawk 0.18.0-dev.6739 → 0.18.0-dev.6755

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.
Files changed (165) hide show
  1. package/dist/agent-config/account-identity.js +12 -11
  2. package/dist/agent-config/account-identity.js.map +1 -1
  3. package/dist/contract/index.js +6 -2
  4. package/dist/contract/runs.d.ts +30 -3
  5. package/dist/core/agent-profiles.d.ts +42 -9
  6. package/dist/core/agent-profiles.js +33 -26
  7. package/dist/core/agent-profiles.js.map +1 -1
  8. package/dist/core/agent-runner.d.ts +5 -0
  9. package/dist/core/agent-runner.js +11 -0
  10. package/dist/core/agent-runner.js.map +1 -1
  11. package/dist/core/claude-cli-runner.d.ts +1 -0
  12. package/dist/core/codex-app-server-runner.d.ts +1 -0
  13. package/dist/core/cursor-print-runner.d.ts +1 -0
  14. package/dist/core/cursor-runner.d.ts +1 -0
  15. package/dist/core/omp-runner.d.ts +1 -0
  16. package/dist/core/opencode-server-runner.d.ts +1 -0
  17. package/dist/core/pi-runner.d.ts +1 -0
  18. package/dist/core/runner-facts.d.ts +9 -0
  19. package/dist/core/runner-facts.js +6 -0
  20. package/dist/core/runner-facts.js.map +1 -1
  21. package/dist/delegation/conversations.d.ts +8 -2
  22. package/dist/delegation/execution-identity.js +27 -31
  23. package/dist/delegation/execution-identity.js.map +1 -1
  24. package/dist/delegation/routes.d.ts +9 -9
  25. package/dist/delegation/transport.d.ts +11 -11
  26. package/dist/home/legacy-account-paths.js +2 -1
  27. package/dist/home/legacy-account-paths.js.map +1 -1
  28. package/dist/home/migration-accounts.d.ts +1 -1
  29. package/dist/home/migration-accounts.js +3 -2
  30. package/dist/home/migration-accounts.js.map +1 -1
  31. package/dist/paths.d.ts +3 -0
  32. package/dist/paths.js +4 -0
  33. package/dist/paths.js.map +1 -1
  34. package/dist/planner.js +4 -3
  35. package/dist/planner.js.map +1 -1
  36. package/dist/runs/auto-name.d.ts +1 -1
  37. package/dist/runs/auto-name.js +3 -2
  38. package/dist/runs/auto-name.js.map +1 -1
  39. package/dist/runs/legacy-run-rows.d.ts +8 -0
  40. package/dist/runs/legacy-run-rows.js +19 -0
  41. package/dist/runs/legacy-run-rows.js.map +1 -1
  42. package/dist/runs/run-exits.d.ts +1366 -51
  43. package/dist/runs/run-exits.js +18 -7
  44. package/dist/runs/run-exits.js.map +1 -1
  45. package/dist/runs/store.d.ts +11 -2
  46. package/dist/runs/store.js +6 -6
  47. package/dist/runs/store.js.map +1 -1
  48. package/dist/serve-boot.js +1 -0
  49. package/dist/serve-boot.js.map +1 -1
  50. package/dist/server/live-routes.d.ts +6 -6
  51. package/dist/server/server.d.ts +170 -116
  52. package/dist/server/server.js +6 -10
  53. package/dist/server/server.js.map +1 -1
  54. package/dist/server-install/steps.js +24 -17
  55. package/dist/server-install/steps.js.map +1 -1
  56. package/dist/workflows/continuation-admission.d.ts +4 -1
  57. package/dist/workflows/run/auto-resume.d.ts +9 -8
  58. package/dist/workflows/run/auto-resume.js +17 -27
  59. package/dist/workflows/run/auto-resume.js.map +1 -1
  60. package/dist/workflows/run/compose.d.ts +3 -0
  61. package/dist/workflows/run/compose.js +13 -12
  62. package/dist/workflows/run/compose.js.map +1 -1
  63. package/dist/workflows/run/continuation-session.js +2 -0
  64. package/dist/workflows/run/continuation-session.js.map +1 -1
  65. package/dist/workflows/run/family-reconciler.d.ts +4 -5
  66. package/dist/workflows/run/family-reconciler.js +9 -19
  67. package/dist/workflows/run/family-reconciler.js.map +1 -1
  68. package/dist/workflows/run/inbox-claims.d.ts +3 -4
  69. package/dist/workflows/run/inbox-claims.js +7 -17
  70. package/dist/workflows/run/inbox-claims.js.map +1 -1
  71. package/dist/workflows/run/input-delivery.d.ts +3 -1
  72. package/dist/workflows/run/input-delivery.js +14 -15
  73. package/dist/workflows/run/input-delivery.js.map +1 -1
  74. package/dist/workflows/run/input-timers.js +3 -2
  75. package/dist/workflows/run/input-timers.js.map +1 -1
  76. package/dist/workflows/run/launch-read-resolver.d.ts +4 -1
  77. package/dist/workflows/run/launch-read-resolver.js +24 -9
  78. package/dist/workflows/run/launch-read-resolver.js.map +1 -1
  79. package/dist/workflows/run/liveness-timers.d.ts +97 -0
  80. package/dist/workflows/run/liveness-timers.js +130 -0
  81. package/dist/workflows/run/liveness-timers.js.map +1 -0
  82. package/dist/workflows/run/run-memory.d.ts +11 -3
  83. package/dist/workflows/run/run-memory.js +34 -8
  84. package/dist/workflows/run/run-memory.js.map +1 -1
  85. package/dist/workflows/run/run-settlement.d.ts +9 -4
  86. package/dist/workflows/run/run-settlement.js +25 -12
  87. package/dist/workflows/run/run-settlement.js.map +1 -1
  88. package/dist/workflows/run/squawk-tools.js +2 -0
  89. package/dist/workflows/run/squawk-tools.js.map +1 -1
  90. package/dist/workflows/run/step-loop.d.ts +2 -2
  91. package/dist/workflows/run/step-loop.js +8 -3
  92. package/dist/workflows/run/step-loop.js.map +1 -1
  93. package/dist/workflows/run/subagent-waits.d.ts +3 -5
  94. package/dist/workflows/run/subagent-waits.js +13 -32
  95. package/dist/workflows/run/subagent-waits.js.map +1 -1
  96. package/dist/workflows/run/turn-nudges.d.ts +3 -1
  97. package/dist/workflows/run/turn-nudges.js +9 -6
  98. package/dist/workflows/run/turn-nudges.js.map +1 -1
  99. package/dist/workflows/run/turn-settler.d.ts +3 -1
  100. package/dist/workflows/run/turn-settler.js +7 -4
  101. package/dist/workflows/run/turn-settler.js.map +1 -1
  102. package/dist/workflows/run/wait-engine.d.ts +4 -1
  103. package/dist/workflows/run/wake-retries.d.ts +5 -7
  104. package/dist/workflows/run/wake-retries.js +17 -42
  105. package/dist/workflows/run/wake-retries.js.map +1 -1
  106. package/dist/workflows/run/worker-executions.js +2 -0
  107. package/dist/workflows/run/worker-executions.js.map +1 -1
  108. package/dist/workflows/run/workflow-position.d.ts +1 -0
  109. package/dist/workflows/run/workflow-position.js +1 -0
  110. package/dist/workflows/run/workflow-position.js.map +1 -1
  111. package/dist/workflows/run-scheduling.d.ts +4 -1
  112. package/dist/workflows/run-scheduling.js +10 -1
  113. package/dist/workflows/run-scheduling.js.map +1 -1
  114. package/dist/workflows/run-states.js +5 -2
  115. package/dist/workflows/run-states.js.map +1 -1
  116. package/dist/workflows/run.js +9 -2
  117. package/dist/workflows/run.js.map +1 -1
  118. package/dist/workflows/types.js +2 -3
  119. package/dist/workflows/types.js.map +1 -1
  120. package/dist/workspace/agent-accounts.js +2 -2
  121. package/dist/workspace/agent-accounts.js.map +1 -1
  122. package/dist/workspace/agent-profiles.d.ts +1 -1
  123. package/dist/workspace/agent-profiles.js +5 -5
  124. package/dist/workspace/agent-profiles.js.map +1 -1
  125. package/package.json +4 -4
  126. package/web/dist/assets/{activity-motion-DMp6Uo_E.js → activity-motion-CjPL-sr2.js} +1 -1
  127. package/web/dist/assets/{activity-route-D04JxCzp.js → activity-route-C0tIKFED.js} +1 -1
  128. package/web/dist/assets/{agent-accounts-C48RdN3o.js → agent-accounts-Bfv01ivB.js} +1 -1
  129. package/web/dist/assets/attention-CVI366xV.js +1 -0
  130. package/web/dist/assets/{commit-diff-panel-Din879JP.js → commit-diff-panel-uIMnjowv.js} +1 -1
  131. package/web/dist/assets/{diff-Btt23N3M.js → diff-CUIYkwMG.js} +2 -2
  132. package/web/dist/assets/{diff-view-CfWaBIJu.js → diff-view-CH27Vgln.js} +1 -1
  133. package/web/dist/assets/{file-preview-DcznUbkx.js → file-preview-wrsPzzjz.js} +1 -1
  134. package/web/dist/assets/{git-toolbar-DUnmDIe8.js → git-toolbar-C1v8n8nd.js} +1 -1
  135. package/web/dist/assets/{github-C6OOf2Jp.js → github-0PYN1Ju2.js} +1 -1
  136. package/web/dist/assets/{global-activity-route-ko4iBoc3.js → global-activity-route-KDUFNxgb.js} +1 -1
  137. package/web/dist/assets/{index-C3YyGC-J.js → index-DgeV0f4H.js} +4 -4
  138. package/web/dist/assets/{preview-pane-connected-gIoE5-9m.js → preview-pane-connected-B1XJVVoo.js} +1 -1
  139. package/web/dist/assets/{project-router-oKsNlPN6.js → project-router-WQWd3UUn.js} +1 -1
  140. package/web/dist/assets/project-scope-context-bgdvGX9z.js +4 -0
  141. package/web/dist/assets/{prompt-template-menu-C3d8Xkvo.js → prompt-template-menu-DC5XoYEs.js} +1 -1
  142. package/web/dist/assets/{queries-Be8VyHam.js → queries-Ce9CPdRy.js} +1 -1
  143. package/web/dist/assets/{reference-chip-BliLpdSz.js → reference-chip-peKR_0El.js} +1 -1
  144. package/web/dist/assets/{repo-git-DGrhzyWR.js → repo-git-DU5eh5V8.js} +1 -1
  145. package/web/dist/assets/{report-reader-C2yXiPa9.js → report-reader-DsvVau4u.js} +1 -1
  146. package/web/dist/assets/{reports-mmONzYgk.js → reports-Brs9M380.js} +1 -1
  147. package/web/dist/assets/{run-header-Cin11tct.js → run-header-BYyz-dXB.js} +1 -1
  148. package/web/dist/assets/{skills-N0vkndca.js → skills-TJPEPrU2.js} +1 -1
  149. package/web/dist/assets/{tab-link-Buy1fRFO.js → tab-link-DiNYVlpl.js} +1 -1
  150. package/web/dist/assets/{task-changes-BhvqWHW7.js → task-changes-BMMqKQZQ.js} +1 -1
  151. package/web/dist/assets/{task-commits-RGVmBirX.js → task-commits-DzOQ_acm.js} +1 -1
  152. package/web/dist/assets/{task-files-B-W_PC8S.js → task-files-CqBxJ5lZ.js} +1 -1
  153. package/web/dist/assets/{task-github-item-csNEiMBa.js → task-github-item-DYZGczpf.js} +1 -1
  154. package/web/dist/assets/{task-thread-B23Uq5iQ.js → task-thread-DYEBHvdF.js} +1 -1
  155. package/web/dist/assets/{thread-state-DeDb0lsY.js → thread-state-VHo3TMiY.js} +1 -1
  156. package/web/dist/assets/{use-desktop-jIeTPw3K.js → use-desktop-DBpXK7UB.js} +1 -1
  157. package/web/dist/assets/{use-hand-to-agent-state-CIysCyMM.js → use-hand-to-agent-state-DiPruziF.js} +1 -1
  158. package/web/dist/assets/{useInfiniteQuery-Yn58_Fkn.js → useInfiniteQuery-s3lTx_YX.js} +1 -1
  159. package/web/dist/assets/useQuery-C0ee1rw5.js +1 -0
  160. package/web/dist/assets/{workflows-k0YtC-LB.js → workflows-DiURHZJ-.js} +1 -1
  161. package/web/dist/assets/{ws-DbXGHAke.js → ws-WW6DrfbT.js} +1 -1
  162. package/web/dist/index.html +12 -12
  163. package/web/dist/assets/attention-BF8NA1XM.js +0 -1
  164. package/web/dist/assets/project-scope-context-BBVJVcJp.js +0 -4
  165. package/web/dist/assets/useQuery-C1xFF0nd.js +0 -1
@@ -15,7 +15,7 @@
15
15
  * the test setup fails the test after it ran. Outside strict mode each violation is one
16
16
  * `console.warn` and nothing is recorded.
17
17
  */
18
- import type { RunRecord, RunStatus, StepState } from '../contract/index.js';
18
+ import type { RunRecord, RunStatus, StepState, WorkflowCursor } from '../contract/index.js';
19
19
  import { isUsageLimitHold } from '../contract/index.js';
20
20
  /** The fields a write that applies a run exit patches beside it: never the status, which the exit
21
21
  * writes (`RunStore.move`). */
@@ -25,10 +25,12 @@ export type RunPatch = Partial<Omit<RunRecord, 'id' | 'steps' | 'status' | 'wait
25
25
  lastWaits?: never;
26
26
  };
27
27
  /** What a caller names beside an exit's extras: the step the exit settles apart from the others,
28
- * and the text of the lifecycle event the exit writes, when the caller's says more. */
28
+ * the text of the lifecycle event the exit writes, when the caller's says more, and, on an exit
29
+ * that records the workflow cursor (`cursorFields`), how the workflow goes on from that step. */
29
30
  export type ExitCall = {
30
31
  stepId?: string | undefined;
31
32
  event?: string | undefined;
33
+ cursor?: WorkflowCursor['mode'] | undefined;
32
34
  };
33
35
  /** What an exit reads beside the record: one time for every field it stamps, and the step the
34
36
  * caller names. */
@@ -45,7 +47,7 @@ export type StepSettlement = ExitSettlement & {
45
47
  * which is best-effort, so a locked database cannot stop cleanup (Decision 4). */
46
48
  export type ExitDurability = 'debounced' | 'committed';
47
49
  /** What an exit's `fields` and `steps` read off the record a write applies it to. */
48
- export type ExitRead = Pick<RunRecord, 'status' | 'delegation'> & Partial<Pick<RunRecord, 'finishedAt' | 'currentStepId' | 'error'>> & {
50
+ export type ExitRead = Pick<RunRecord, 'status' | 'delegation'> & Partial<Pick<RunRecord, 'finishedAt' | 'currentStepId' | 'error' | 'workflowCursor'>> & {
49
51
  steps?: readonly StepState[];
50
52
  };
51
53
  /**
@@ -73,10 +75,12 @@ export type RunExitSpec = {
73
75
  export declare function retiredFinishPatch(run: Pick<RunRecord, 'delegation'>): Pick<RunPatch, 'delegation'>;
74
76
  /** Whether `exit` settles a run: it writes done, review, failed or cancelled. */
75
77
  export declare function settlesRun(exit: RunExitId): boolean;
76
- /** A run that succeeded: its resume counter and the legacy `activity` retired. A run that got all
77
- * the way to a settled turn is not in a usage-limit loop, so its resume counter starts over
78
- * instead of creeping toward the cap. */
78
+ /** A run that succeeded: its resume counter, its workflow cursor and the legacy `activity` retired.
79
+ * A run that got all the way to a settled turn is not in a usage-limit loop, so its resume counter
80
+ * starts over instead of creeping toward the cap. */
79
81
  declare const succeeded: () => RunPatch;
82
+ /** The step loop entered the cursor's step: the run is on it now, so the cursor is spent. */
83
+ declare const enteredStep: (run: ExitRead, { stepId }: ExitSettlement) => RunPatch;
80
84
  /** A run that succeeded settles its running and waiting steps done at its time (B5). A worker's
81
85
  * incomplete earlier step, the one the caller names, stays waiting: a parent resume re-enters it
82
86
  * (hearsay-tools/cezarion#1620). */
@@ -103,6 +107,7 @@ export declare const RUN_EXITS: {
103
107
  readonly durability: 'debounced';
104
108
  readonly from: readonly ["queued", "running", "waiting"];
105
109
  readonly to: 'running';
110
+ readonly fields: typeof enteredStep;
106
111
  };
107
112
  readonly 'start-held': {
108
113
  readonly durability: 'debounced';
@@ -113,8 +118,650 @@ export declare const RUN_EXITS: {
113
118
  readonly durability: 'debounced';
114
119
  readonly from: readonly ["queued", "running", "failed"];
115
120
  readonly to: 'queued';
116
- readonly fields: () => {
117
- currentStepId: undefined;
121
+ readonly fields: (_run: ExitRead, at: ExitSettlement) => {
122
+ archiveWhenDone?: boolean | undefined;
123
+ autoMergePr?: boolean | undefined;
124
+ allowWorkers?: boolean | undefined;
125
+ allowMessaging?: boolean | undefined;
126
+ title?: string;
127
+ titleSummary?: string | undefined;
128
+ diffStat?: {
129
+ adds: number;
130
+ dels: number;
131
+ files: number;
132
+ repointed?: boolean | undefined;
133
+ } | undefined;
134
+ workflow?: string;
135
+ task?: string;
136
+ queuedMessages?: {
137
+ id: string;
138
+ text: string;
139
+ images?: string[] | undefined;
140
+ createdAt: string;
141
+ }[] | undefined;
142
+ stopping?: boolean | undefined;
143
+ continuationMessage?: {
144
+ id: string;
145
+ text: string;
146
+ images?: string[] | undefined;
147
+ createdAt: string;
148
+ origin?: "human" | "lifecycle" | undefined;
149
+ agentInputId?: string | undefined;
150
+ resumeContext?: {
151
+ failure?: {
152
+ stepId?: string | undefined;
153
+ error: string;
154
+ } | undefined;
155
+ restarted?: true | undefined;
156
+ } | undefined;
157
+ } | undefined;
158
+ workflowCursor?: {
159
+ stepId: string;
160
+ mode: "resume" | "start";
161
+ } | undefined;
162
+ invalidAsk?: boolean | undefined;
163
+ delegation?: {
164
+ role: "root";
165
+ conversation?: {
166
+ messages: {
167
+ senderRunId: string;
168
+ recipientRunId: string;
169
+ kind: "follow-up" | "progress" | "reply" | "request";
170
+ requestId?: string | undefined;
171
+ relationship?: "family" | "peer" | undefined;
172
+ id: string;
173
+ text: string;
174
+ createdAt: string;
175
+ deadline?: string | undefined;
176
+ requestHash: string;
177
+ state: "accepted" | "continuation-required" | "destroyed" | "late";
178
+ resumed?: true | undefined;
179
+ instruction?: string | undefined;
180
+ question?: {
181
+ context?: string | undefined;
182
+ questions: {
183
+ id?: string | undefined;
184
+ header: string;
185
+ question: string;
186
+ options?: {
187
+ label: string;
188
+ description?: string | undefined;
189
+ }[] | undefined;
190
+ multiSelect?: boolean | undefined;
191
+ }[];
192
+ } | undefined;
193
+ }[];
194
+ outcomes: {
195
+ requestId: string;
196
+ status: "cancelled" | "completed-without-reply" | "deleted" | "destroyed" | "failed" | "human-fallback" | "replied" | "replied-late" | "sender-closed" | "timed-out";
197
+ observedAt: string;
198
+ replyId?: string | undefined;
199
+ }[];
200
+ } | undefined;
201
+ permissions: ("destroy" | "diff" | "inspect" | "spawn" | "steer" | "stop" | "wait")[];
202
+ receipts: {
203
+ requestId: string;
204
+ workerId: string;
205
+ requestHash: string;
206
+ deletion?: {
207
+ phase: "complete" | "pending";
208
+ revision: number;
209
+ resourceId: string;
210
+ generation: string;
211
+ } | undefined;
212
+ }[];
213
+ wait?: {
214
+ id: string;
215
+ workerIds: string[];
216
+ requestIds?: string[] | undefined;
217
+ requestOutcomes?: {
218
+ requestId: string;
219
+ status: "cancelled" | "completed-without-reply" | "deleted" | "destroyed" | "failed" | "human-fallback" | "replied" | "replied-late" | "sender-closed" | "timed-out";
220
+ observedAt: string;
221
+ replyId?: string | undefined;
222
+ }[] | undefined;
223
+ deadline: string;
224
+ mode?: "all" | "any" | "one" | undefined;
225
+ revisions?: {
226
+ workerId: string;
227
+ revision: number;
228
+ }[] | undefined;
229
+ reason?: "cancelled" | "message" | "outcome" | "timeout" | undefined;
230
+ phase: "parked" | "registered" | "wake-pending";
231
+ outcomes: {
232
+ workerId: string;
233
+ status: "cancelled" | "done" | "failed" | "review";
234
+ observedAt: string;
235
+ summary?: string | undefined;
236
+ revision?: number | undefined;
237
+ }[];
238
+ wakeId?: string | undefined;
239
+ } | undefined;
240
+ lastWait?: {
241
+ id: string;
242
+ workerIds: string[];
243
+ requestIds?: string[] | undefined;
244
+ requestOutcomes?: {
245
+ requestId: string;
246
+ status: "cancelled" | "completed-without-reply" | "deleted" | "destroyed" | "failed" | "human-fallback" | "replied" | "replied-late" | "sender-closed" | "timed-out";
247
+ observedAt: string;
248
+ replyId?: string | undefined;
249
+ }[] | undefined;
250
+ deadline: string;
251
+ mode?: "all" | "any" | "one" | undefined;
252
+ revisions?: {
253
+ workerId: string;
254
+ revision: number;
255
+ }[] | undefined;
256
+ reason?: "cancelled" | "message" | "outcome" | "timeout" | undefined;
257
+ phase: "parked" | "registered" | "wake-pending";
258
+ outcomes: {
259
+ workerId: string;
260
+ status: "cancelled" | "done" | "failed" | "review";
261
+ observedAt: string;
262
+ summary?: string | undefined;
263
+ revision?: number | undefined;
264
+ }[];
265
+ wakeId?: string | undefined;
266
+ } | undefined;
267
+ results?: {
268
+ workerId: string;
269
+ revision: number;
270
+ snapshotId: string;
271
+ observedAt: string;
272
+ lastExecutionOutcome: "cancelled" | "completed" | "failed" | "review-ready" | "running";
273
+ previous?: {
274
+ revision: number;
275
+ observedAt: string;
276
+ lastExecutionOutcome: "cancelled" | "completed" | "failed" | "review-ready" | "running";
277
+ } | undefined;
278
+ }[] | undefined;
279
+ finishRequestedAt?: string | undefined;
280
+ historyDeletion?: "pending" | undefined;
281
+ completion?: {
282
+ phase: "attention" | "waiting";
283
+ waitId?: string | undefined;
284
+ } | undefined;
285
+ } | {
286
+ role: "worker";
287
+ wait?: {
288
+ id: string;
289
+ workerIds: string[];
290
+ requestIds?: string[] | undefined;
291
+ requestOutcomes?: {
292
+ requestId: string;
293
+ status: "cancelled" | "completed-without-reply" | "deleted" | "destroyed" | "failed" | "human-fallback" | "replied" | "replied-late" | "sender-closed" | "timed-out";
294
+ observedAt: string;
295
+ replyId?: string | undefined;
296
+ }[] | undefined;
297
+ deadline: string;
298
+ mode?: "all" | "any" | "one" | undefined;
299
+ revisions?: {
300
+ workerId: string;
301
+ revision: number;
302
+ }[] | undefined;
303
+ reason?: "cancelled" | "message" | "outcome" | "timeout" | undefined;
304
+ phase: "parked" | "registered" | "wake-pending";
305
+ outcomes: {
306
+ workerId: string;
307
+ status: "cancelled" | "done" | "failed" | "review";
308
+ observedAt: string;
309
+ summary?: string | undefined;
310
+ revision?: number | undefined;
311
+ }[];
312
+ wakeId?: string | undefined;
313
+ } | undefined;
314
+ lastWait?: {
315
+ id: string;
316
+ workerIds: string[];
317
+ requestIds?: string[] | undefined;
318
+ requestOutcomes?: {
319
+ requestId: string;
320
+ status: "cancelled" | "completed-without-reply" | "deleted" | "destroyed" | "failed" | "human-fallback" | "replied" | "replied-late" | "sender-closed" | "timed-out";
321
+ observedAt: string;
322
+ replyId?: string | undefined;
323
+ }[] | undefined;
324
+ deadline: string;
325
+ mode?: "all" | "any" | "one" | undefined;
326
+ revisions?: {
327
+ workerId: string;
328
+ revision: number;
329
+ }[] | undefined;
330
+ reason?: "cancelled" | "message" | "outcome" | "timeout" | undefined;
331
+ phase: "parked" | "registered" | "wake-pending";
332
+ outcomes: {
333
+ workerId: string;
334
+ status: "cancelled" | "done" | "failed" | "review";
335
+ observedAt: string;
336
+ summary?: string | undefined;
337
+ revision?: number | undefined;
338
+ }[];
339
+ wakeId?: string | undefined;
340
+ } | undefined;
341
+ permissions: ("destroy" | "diff" | "inspect" | "spawn" | "steer" | "stop" | "wait")[];
342
+ parentRunId: string;
343
+ workspace: {
344
+ ownerRunId: string;
345
+ resourceId: string;
346
+ kind: "owned-isolated";
347
+ path: string;
348
+ branch: string;
349
+ baselineSha: string;
350
+ };
351
+ destroy?: {
352
+ requestedAt: string;
353
+ phase: "cleaning" | "complete" | "incomplete" | "requested" | "terminating";
354
+ remaining: ("branch" | "process" | "worktree")[];
355
+ error?: string | undefined;
356
+ } | undefined;
357
+ context?: {
358
+ text?: string | undefined;
359
+ inputs: {
360
+ source: {
361
+ kind: "parent-file";
362
+ path: string;
363
+ } | {
364
+ kind: "baseline-file";
365
+ path: string;
366
+ } | {
367
+ kind: "parent-attachment";
368
+ id: string;
369
+ };
370
+ path: string;
371
+ sha256: string;
372
+ bytes: number;
373
+ }[];
374
+ } | undefined;
375
+ executionRevision?: number | undefined;
376
+ executionStartSeq?: number | undefined;
377
+ } | {
378
+ role: "invalid";
379
+ } | undefined;
380
+ agentInputs?: {
381
+ conversation?: {
382
+ senderRunId: string;
383
+ recipientRunId: string;
384
+ kind: "follow-up" | "progress" | "reply" | "request";
385
+ requestId?: string | undefined;
386
+ relationship?: "family" | "peer" | undefined;
387
+ } | undefined;
388
+ id: string;
389
+ source: "agent" | "lifecycle";
390
+ parentRunId: string;
391
+ text: string;
392
+ createdAt: string;
393
+ deliveredAt?: string | undefined;
394
+ consumedAt?: string | undefined;
395
+ awaitingRead?: true | undefined;
396
+ inboxClaim?: {
397
+ receiptId: string;
398
+ generation: string;
399
+ expiresAt: string;
400
+ acknowledgedAt?: string | undefined;
401
+ memberIds?: string[] | undefined;
402
+ } | undefined;
403
+ purpose?: "completion-refusal" | "undelivered-question" | undefined;
404
+ requestHash?: string | undefined;
405
+ deadline?: string | undefined;
406
+ }[] | undefined;
407
+ waitRegistrations?: {
408
+ operationId: string;
409
+ requestHash: string;
410
+ wait: {
411
+ prUrl: string;
412
+ repository: string;
413
+ prNumber: number;
414
+ headSha: string;
415
+ id: string;
416
+ source: "agent" | "cezar";
417
+ via: "ask-line" | "budget" | "cez-message-wait" | "cez-worker-wait" | "cezar_ask" | "cezar_wait" | "cezar_wait_for_ci" | "completion" | "monitoring-line" | "native-ask" | "native-subagents" | "no-wait" | "schedule-wakeup";
418
+ registeredAt: string;
419
+ phase: "cancelled" | "delivered" | "open" | "resolved";
420
+ resolvedAt?: string | undefined;
421
+ deliveredAt?: string | undefined;
422
+ cancelledAt?: string | undefined;
423
+ turnId: string;
424
+ kind: "pr";
425
+ deadline: string;
426
+ generation: string;
427
+ timeoutSeconds: number;
428
+ until: "checks" | "merge" | "merge_or_blocked";
429
+ wakeOnConflict: boolean;
430
+ result?: {
431
+ outcome: "blocked" | "cancelled" | "closed" | "conflicting" | "deadline" | "error" | "failed" | "head_changed" | "merged" | "no_checks" | "passed" | "skipped";
432
+ headSha: string;
433
+ observedHeadSha?: string | undefined;
434
+ mergeable?: "CONFLICTING" | "MERGEABLE" | "UNKNOWN" | undefined;
435
+ mergeStateStatus?: string | undefined;
436
+ mergedAt?: string | undefined;
437
+ mergeCommitSha?: string | undefined;
438
+ mergeBlock?: {
439
+ reason: "conflict" | "no_pending_merge";
440
+ isInMergeQueue: boolean;
441
+ autoMergeEnabled: boolean;
442
+ event?: {
443
+ kind: "auto_merge_disabled" | "queue_removal";
444
+ createdAt: string;
445
+ reason?: string | undefined;
446
+ reasonCode?: string | undefined;
447
+ } | undefined;
448
+ } | undefined;
449
+ observedAt: string;
450
+ checks: {
451
+ name: string;
452
+ state: string;
453
+ link: string;
454
+ }[];
455
+ totalChecks: number;
456
+ truncated: boolean;
457
+ diagnostic?: string | undefined;
458
+ } | undefined;
459
+ } | {
460
+ id: string;
461
+ source: "agent" | "cezar";
462
+ via: "ask-line" | "budget" | "cez-message-wait" | "cez-worker-wait" | "cezar_ask" | "cezar_wait" | "cezar_wait_for_ci" | "completion" | "monitoring-line" | "native-ask" | "native-subagents" | "no-wait" | "schedule-wakeup";
463
+ registeredAt: string;
464
+ phase: "cancelled" | "delivered" | "open" | "resolved";
465
+ resolvedAt?: string | undefined;
466
+ deliveredAt?: string | undefined;
467
+ cancelledAt?: string | undefined;
468
+ turnId: string;
469
+ kind: "timer";
470
+ deadline: string;
471
+ seconds: number;
472
+ note?: string | undefined;
473
+ } | {
474
+ id: string;
475
+ source: "agent" | "cezar";
476
+ via: "ask-line" | "budget" | "cez-message-wait" | "cez-worker-wait" | "cezar_ask" | "cezar_wait" | "cezar_wait_for_ci" | "completion" | "monitoring-line" | "native-ask" | "native-subagents" | "no-wait" | "schedule-wakeup";
477
+ registeredAt: string;
478
+ phase: "cancelled" | "delivered" | "open" | "resolved";
479
+ resolvedAt?: string | undefined;
480
+ deliveredAt?: string | undefined;
481
+ cancelledAt?: string | undefined;
482
+ turnId: string;
483
+ kind: "human";
484
+ questions?: {
485
+ id?: string | undefined;
486
+ header: string;
487
+ question: string;
488
+ options?: {
489
+ label: string;
490
+ description?: string | undefined;
491
+ }[] | undefined;
492
+ multiSelect?: boolean | undefined;
493
+ }[] | undefined;
494
+ context?: string | undefined;
495
+ askSeq?: number | undefined;
496
+ } | {
497
+ id: string;
498
+ source: "agent" | "cezar";
499
+ via: "ask-line" | "budget" | "cez-message-wait" | "cez-worker-wait" | "cezar_ask" | "cezar_wait" | "cezar_wait_for_ci" | "completion" | "monitoring-line" | "native-ask" | "native-subagents" | "no-wait" | "schedule-wakeup";
500
+ registeredAt: string;
501
+ phase: "cancelled" | "delivered" | "open" | "resolved";
502
+ resolvedAt?: string | undefined;
503
+ deliveredAt?: string | undefined;
504
+ cancelledAt?: string | undefined;
505
+ turnId: string;
506
+ kind: "worker";
507
+ deadline?: string | undefined;
508
+ timeoutSeconds?: number | undefined;
509
+ mode?: "all" | "any" | "one" | undefined;
510
+ workerIds?: string[] | undefined;
511
+ revisions?: {
512
+ workerId: string;
513
+ revision: number;
514
+ }[] | undefined;
515
+ outcomes?: {
516
+ workerId: string;
517
+ status: "cancelled" | "done" | "failed" | "review";
518
+ observedAt: string;
519
+ summary?: string | undefined;
520
+ revision?: number | undefined;
521
+ }[] | undefined;
522
+ requestIds?: string[] | undefined;
523
+ requestOutcomes?: {
524
+ requestId: string;
525
+ status: "cancelled" | "completed-without-reply" | "deleted" | "destroyed" | "failed" | "human-fallback" | "replied" | "replied-late" | "sender-closed" | "timed-out";
526
+ observedAt: string;
527
+ replyId?: string | undefined;
528
+ }[] | undefined;
529
+ result?: {
530
+ reason: "outcome" | "timeout";
531
+ } | undefined;
532
+ wakeInputId?: string | undefined;
533
+ } | {
534
+ id: string;
535
+ source: "agent" | "cezar";
536
+ via: "ask-line" | "budget" | "cez-message-wait" | "cez-worker-wait" | "cezar_ask" | "cezar_wait" | "cezar_wait_for_ci" | "completion" | "monitoring-line" | "native-ask" | "native-subagents" | "no-wait" | "schedule-wakeup";
537
+ registeredAt: string;
538
+ phase: "cancelled" | "delivered" | "open" | "resolved";
539
+ resolvedAt?: string | undefined;
540
+ deliveredAt?: string | undefined;
541
+ cancelledAt?: string | undefined;
542
+ turnId: string;
543
+ kind: "process";
544
+ deadline: string;
545
+ timeoutSeconds: number;
546
+ pid: number;
547
+ startToken?: string | undefined;
548
+ exitFile?: string | undefined;
549
+ note?: string | undefined;
550
+ result?: {
551
+ outcome: "deadline" | "error" | "exit_file" | "exited";
552
+ observedAt: string;
553
+ exitCode?: number | undefined;
554
+ exitFileNote?: "not-an-exit-code" | undefined;
555
+ diagnostic?: string | undefined;
556
+ } | undefined;
557
+ } | {
558
+ id: string;
559
+ source: "agent" | "cezar";
560
+ via: "ask-line" | "budget" | "cez-message-wait" | "cez-worker-wait" | "cezar_ask" | "cezar_wait" | "cezar_wait_for_ci" | "completion" | "monitoring-line" | "native-ask" | "native-subagents" | "no-wait" | "schedule-wakeup";
561
+ registeredAt: string;
562
+ phase: "cancelled" | "delivered" | "open" | "resolved";
563
+ resolvedAt?: string | undefined;
564
+ deliveredAt?: string | undefined;
565
+ cancelledAt?: string | undefined;
566
+ turnId: string;
567
+ kind: "peer";
568
+ deadline: string;
569
+ timeoutSeconds: number;
570
+ peerIds: string[];
571
+ result?: {
572
+ reason: "message";
573
+ peerRunId: string;
574
+ messageId: string;
575
+ } | {
576
+ reason: "settled";
577
+ peerRunId: string;
578
+ } | {
579
+ reason: "timeout";
580
+ } | undefined;
581
+ } | {
582
+ id: string;
583
+ registeredAt: string;
584
+ phase: "cancelled" | "delivered" | "open" | "resolved";
585
+ resolvedAt?: string | undefined;
586
+ deliveredAt?: string | undefined;
587
+ cancelledAt?: string | undefined;
588
+ turnId: string;
589
+ kind: "subagent";
590
+ source: "cezar";
591
+ via: "native-subagents";
592
+ deadline: string;
593
+ children: {
594
+ id: string;
595
+ status: "cancelled" | "completed" | "failed" | "running";
596
+ }[];
597
+ result?: {
598
+ reason: "interrupted" | "settled" | "superseded" | "timeout";
599
+ } | undefined;
600
+ };
601
+ deduplicated: boolean;
602
+ }[] | undefined;
603
+ lastWaitsError?: string | undefined;
604
+ automaticWakes?: number | undefined;
605
+ waitDeliveryFailures?: number | undefined;
606
+ previewServers?: {
607
+ port: number;
608
+ command: string;
609
+ cwd?: string | undefined;
610
+ label: string;
611
+ path?: string | undefined;
612
+ registeredAt: string;
613
+ answeredAtRegistration: boolean;
614
+ }[] | undefined;
615
+ taskImages?: string[] | undefined;
616
+ model?: string | undefined;
617
+ effort?: string | undefined;
618
+ modelIdentity?: string | undefined;
619
+ runner?: "claude" | "codex" | "cursor" | "omp" | "opencode" | "pi" | undefined;
620
+ agentProfile?: string | undefined;
621
+ systemPrompt?: string | undefined;
622
+ generateFollowups?: boolean | undefined;
623
+ autonomous?: boolean | undefined;
624
+ completionAction?: {
625
+ id: string;
626
+ phase: "blocked" | "complete" | "pending";
627
+ message?: string | undefined;
628
+ } | undefined;
629
+ archiveBlocker?: {
630
+ message: string;
631
+ runId?: string | undefined;
632
+ pullRequestUrl?: string | undefined;
633
+ } | undefined;
634
+ automation?: {
635
+ automationId: string;
636
+ automationRevision: number;
637
+ receiptId: string;
638
+ event: string;
639
+ githubUrl: string;
640
+ } | undefined;
641
+ automationTrigger?: {
642
+ automationId: string;
643
+ automationRevision: number;
644
+ receiptId: string;
645
+ trigger: "catch-up" | "manual" | "schedule";
646
+ occurrenceAt: string;
647
+ } | undefined;
648
+ destroyRetry?: {
649
+ attempts: number;
650
+ nextAt: string;
651
+ needsAttention?: true | undefined;
652
+ } | undefined;
653
+ notify?: boolean | undefined;
654
+ webhook?: {
655
+ lastDeliveredAt?: string | undefined;
656
+ lastError?: string | undefined;
657
+ lastErrorWebhookId?: string | undefined;
658
+ } | undefined;
659
+ hasPendingPermission?: boolean | undefined;
660
+ autoResumeAt?: string | undefined;
661
+ autoResumeAttempts?: number | undefined;
662
+ autoResumeReason?: "provider-error" | "usage-limit" | undefined;
663
+ parkReason?: "closing-wakes" | "hold" | "turn" | undefined;
664
+ createdAt?: string;
665
+ startedAt?: string | undefined;
666
+ finishedAt?: string | undefined;
667
+ tokensUsed?: number;
668
+ inputTokens?: number | undefined;
669
+ outputTokens?: number | undefined;
670
+ costUsd?: number | undefined;
671
+ pullRequestUrl?: string | undefined;
672
+ pullRequests?: {
673
+ number: number;
674
+ url?: string | undefined;
675
+ source: "created" | "declared";
676
+ }[] | undefined;
677
+ referencedPullRequestUrl?: string | undefined;
678
+ prNumber?: number | undefined;
679
+ issueNumber?: number | undefined;
680
+ referencedIssueNumberSeeded?: boolean | undefined;
681
+ titleOrigin?: "auto" | "marker" | "user" | undefined;
682
+ markerRefs?: {
683
+ pr?: number | undefined;
684
+ issue?: number | undefined;
685
+ } | undefined;
686
+ referencedPrCandidates?: string[] | undefined;
687
+ referencedIssueUrl?: string | undefined;
688
+ referencedIssueCandidates?: string[] | undefined;
689
+ worktree?: false | undefined;
690
+ worktreePath?: string | undefined;
691
+ branch?: string | undefined;
692
+ baseBranch?: string | undefined;
693
+ worktreeReclaimedAt?: string | undefined;
694
+ worktreeSetup?: {
695
+ status: "done" | "failed" | "running";
696
+ startedAt: string;
697
+ finishedAt?: string | undefined;
698
+ durationMs?: number | undefined;
699
+ error?: string | undefined;
700
+ } | undefined;
701
+ groupId?: string | undefined;
702
+ variant?: string | undefined;
703
+ clientRequestId?: string | undefined;
704
+ clientRequestHash?: string | undefined;
705
+ peakRssBytes?: number | undefined;
706
+ peakProcCount?: number | undefined;
707
+ archived?: boolean;
708
+ archivedAt?: string | undefined;
709
+ autoArchive?: {
710
+ reason: "pull-requests-merged";
711
+ archivedAt: string;
712
+ fingerprint: string;
713
+ pullRequests: {
714
+ owner: string;
715
+ repo: string;
716
+ number: number;
717
+ mergedAt: string;
718
+ }[];
719
+ } | undefined;
720
+ manualUnarchivedAt?: string | undefined;
721
+ pinned?: boolean | undefined;
722
+ pinnedAt?: string | undefined;
723
+ seenAt?: string | undefined;
724
+ error?: string | undefined;
725
+ workflowDef?: {
726
+ name: string;
727
+ description?: string | undefined;
728
+ steps: {
729
+ id: string;
730
+ name?: string | undefined;
731
+ prompt?: string | undefined;
732
+ skill?: string | undefined;
733
+ model?: string | undefined;
734
+ effort?: string | undefined;
735
+ timeoutMs?: number | undefined;
736
+ runner?: "claude" | "codex" | "cursor" | "omp" | "opencode" | "pi" | undefined;
737
+ agentProfile?: string | undefined;
738
+ allowedTools?: string[] | undefined;
739
+ bashAllowlist?: string[] | undefined;
740
+ command?: string | undefined;
741
+ onFail?: {
742
+ retry: string;
743
+ max: number;
744
+ } | undefined;
745
+ }[];
746
+ source: "built-in" | "file";
747
+ path?: string | undefined;
748
+ } | undefined;
749
+ handoffRecords?: {
750
+ autosave: {
751
+ at: string;
752
+ note: string;
753
+ periodic?: {
754
+ branch: string | null;
755
+ count: number;
756
+ first: string | null;
757
+ latest: string | null;
758
+ } | undefined;
759
+ }[];
760
+ } | undefined;
761
+ status?: never;
762
+ waits?: never;
763
+ lastWaits?: never;
764
+ currentStepId: string | undefined;
118
765
  };
119
766
  };
120
767
  readonly 'continue-line': {
@@ -135,45 +782,689 @@ export declare const RUN_EXITS: {
135
782
  error: undefined;
136
783
  finishedAt: undefined;
137
784
  };
138
- };
139
- readonly park: {
140
- readonly durability: 'debounced';
141
- readonly from: readonly ["running", "queued", "waiting"];
142
- readonly to: 'waiting';
143
- readonly fields: (run: ExitRead) => RunPatch;
144
- readonly steps: typeof parkedStep;
145
- };
146
- readonly 'park-release': {
147
- readonly durability: 'committed';
148
- readonly from: readonly ["running", "queued", "waiting"];
149
- readonly to: 'waiting';
150
- readonly fields: (run: ExitRead) => RunPatch;
151
- readonly settle: typeof settleParkRelease;
152
- readonly steps: typeof parkedStep;
153
- };
154
- readonly 'park-closing-wakes': {
155
- readonly durability: 'debounced';
156
- readonly from: readonly ["running", "queued", "waiting"];
157
- readonly to: 'waiting';
158
- readonly fields: (run: ExitRead) => RunPatch;
159
- readonly steps: typeof parkedStep;
160
- };
161
- readonly 'park-for-wake': {
162
- readonly durability: 'debounced';
163
- readonly from: readonly ["queued", "waiting"];
164
- readonly to: 'waiting';
165
- };
166
- readonly hold: {
167
- readonly durability: 'debounced';
168
- readonly from: readonly ["failed", "waiting"];
169
- readonly to: 'waiting';
170
- readonly fields: () => RunPatch;
171
- };
172
- readonly 'hold-failure': {
173
- readonly durability: 'debounced';
174
- readonly from: readonly ["running", "waiting"];
175
- readonly to: 'waiting';
176
- readonly fields: () => RunPatch;
785
+ };
786
+ readonly park: {
787
+ readonly durability: 'debounced';
788
+ readonly from: readonly ["running", "queued", "waiting"];
789
+ readonly to: 'waiting';
790
+ readonly fields: (run: ExitRead) => RunPatch;
791
+ readonly steps: typeof parkedStep;
792
+ };
793
+ readonly 'park-release': {
794
+ readonly durability: 'committed';
795
+ readonly from: readonly ["running", "queued", "waiting"];
796
+ readonly to: 'waiting';
797
+ readonly fields: (run: ExitRead) => RunPatch;
798
+ readonly settle: typeof settleParkRelease;
799
+ readonly steps: typeof parkedStep;
800
+ };
801
+ readonly 'park-closing-wakes': {
802
+ readonly durability: 'debounced';
803
+ readonly from: readonly ["running", "queued", "waiting"];
804
+ readonly to: 'waiting';
805
+ readonly fields: (run: ExitRead) => RunPatch;
806
+ readonly steps: typeof parkedStep;
807
+ };
808
+ readonly 'park-for-wake': {
809
+ readonly durability: 'debounced';
810
+ readonly from: readonly ["queued", "waiting"];
811
+ readonly to: 'waiting';
812
+ };
813
+ readonly hold: {
814
+ readonly durability: 'debounced';
815
+ readonly from: readonly ["failed", "waiting"];
816
+ readonly to: 'waiting';
817
+ readonly fields: () => RunPatch;
818
+ };
819
+ readonly 'hold-failure': {
820
+ readonly durability: 'debounced';
821
+ readonly from: readonly ["running", "waiting"];
822
+ readonly to: 'waiting';
823
+ readonly fields: (_run: ExitRead, at: ExitSettlement) => {
824
+ archiveWhenDone?: boolean | undefined;
825
+ autoMergePr?: boolean | undefined;
826
+ allowWorkers?: boolean | undefined;
827
+ allowMessaging?: boolean | undefined;
828
+ title?: string;
829
+ titleSummary?: string | undefined;
830
+ diffStat?: {
831
+ adds: number;
832
+ dels: number;
833
+ files: number;
834
+ repointed?: boolean | undefined;
835
+ } | undefined;
836
+ workflow?: string;
837
+ task?: string;
838
+ queuedMessages?: {
839
+ id: string;
840
+ text: string;
841
+ images?: string[] | undefined;
842
+ createdAt: string;
843
+ }[] | undefined;
844
+ stopping?: boolean | undefined;
845
+ continuationMessage?: {
846
+ id: string;
847
+ text: string;
848
+ images?: string[] | undefined;
849
+ createdAt: string;
850
+ origin?: "human" | "lifecycle" | undefined;
851
+ agentInputId?: string | undefined;
852
+ resumeContext?: {
853
+ failure?: {
854
+ stepId?: string | undefined;
855
+ error: string;
856
+ } | undefined;
857
+ restarted?: true | undefined;
858
+ } | undefined;
859
+ } | undefined;
860
+ workflowCursor?: {
861
+ stepId: string;
862
+ mode: "resume" | "start";
863
+ } | undefined;
864
+ invalidAsk?: boolean | undefined;
865
+ delegation?: {
866
+ role: "root";
867
+ conversation?: {
868
+ messages: {
869
+ senderRunId: string;
870
+ recipientRunId: string;
871
+ kind: "follow-up" | "progress" | "reply" | "request";
872
+ requestId?: string | undefined;
873
+ relationship?: "family" | "peer" | undefined;
874
+ id: string;
875
+ text: string;
876
+ createdAt: string;
877
+ deadline?: string | undefined;
878
+ requestHash: string;
879
+ state: "accepted" | "continuation-required" | "destroyed" | "late";
880
+ resumed?: true | undefined;
881
+ instruction?: string | undefined;
882
+ question?: {
883
+ context?: string | undefined;
884
+ questions: {
885
+ id?: string | undefined;
886
+ header: string;
887
+ question: string;
888
+ options?: {
889
+ label: string;
890
+ description?: string | undefined;
891
+ }[] | undefined;
892
+ multiSelect?: boolean | undefined;
893
+ }[];
894
+ } | undefined;
895
+ }[];
896
+ outcomes: {
897
+ requestId: string;
898
+ status: "cancelled" | "completed-without-reply" | "deleted" | "destroyed" | "failed" | "human-fallback" | "replied" | "replied-late" | "sender-closed" | "timed-out";
899
+ observedAt: string;
900
+ replyId?: string | undefined;
901
+ }[];
902
+ } | undefined;
903
+ permissions: ("destroy" | "diff" | "inspect" | "spawn" | "steer" | "stop" | "wait")[];
904
+ receipts: {
905
+ requestId: string;
906
+ workerId: string;
907
+ requestHash: string;
908
+ deletion?: {
909
+ phase: "complete" | "pending";
910
+ revision: number;
911
+ resourceId: string;
912
+ generation: string;
913
+ } | undefined;
914
+ }[];
915
+ wait?: {
916
+ id: string;
917
+ workerIds: string[];
918
+ requestIds?: string[] | undefined;
919
+ requestOutcomes?: {
920
+ requestId: string;
921
+ status: "cancelled" | "completed-without-reply" | "deleted" | "destroyed" | "failed" | "human-fallback" | "replied" | "replied-late" | "sender-closed" | "timed-out";
922
+ observedAt: string;
923
+ replyId?: string | undefined;
924
+ }[] | undefined;
925
+ deadline: string;
926
+ mode?: "all" | "any" | "one" | undefined;
927
+ revisions?: {
928
+ workerId: string;
929
+ revision: number;
930
+ }[] | undefined;
931
+ reason?: "cancelled" | "message" | "outcome" | "timeout" | undefined;
932
+ phase: "parked" | "registered" | "wake-pending";
933
+ outcomes: {
934
+ workerId: string;
935
+ status: "cancelled" | "done" | "failed" | "review";
936
+ observedAt: string;
937
+ summary?: string | undefined;
938
+ revision?: number | undefined;
939
+ }[];
940
+ wakeId?: string | undefined;
941
+ } | undefined;
942
+ lastWait?: {
943
+ id: string;
944
+ workerIds: string[];
945
+ requestIds?: string[] | undefined;
946
+ requestOutcomes?: {
947
+ requestId: string;
948
+ status: "cancelled" | "completed-without-reply" | "deleted" | "destroyed" | "failed" | "human-fallback" | "replied" | "replied-late" | "sender-closed" | "timed-out";
949
+ observedAt: string;
950
+ replyId?: string | undefined;
951
+ }[] | undefined;
952
+ deadline: string;
953
+ mode?: "all" | "any" | "one" | undefined;
954
+ revisions?: {
955
+ workerId: string;
956
+ revision: number;
957
+ }[] | undefined;
958
+ reason?: "cancelled" | "message" | "outcome" | "timeout" | undefined;
959
+ phase: "parked" | "registered" | "wake-pending";
960
+ outcomes: {
961
+ workerId: string;
962
+ status: "cancelled" | "done" | "failed" | "review";
963
+ observedAt: string;
964
+ summary?: string | undefined;
965
+ revision?: number | undefined;
966
+ }[];
967
+ wakeId?: string | undefined;
968
+ } | undefined;
969
+ results?: {
970
+ workerId: string;
971
+ revision: number;
972
+ snapshotId: string;
973
+ observedAt: string;
974
+ lastExecutionOutcome: "cancelled" | "completed" | "failed" | "review-ready" | "running";
975
+ previous?: {
976
+ revision: number;
977
+ observedAt: string;
978
+ lastExecutionOutcome: "cancelled" | "completed" | "failed" | "review-ready" | "running";
979
+ } | undefined;
980
+ }[] | undefined;
981
+ finishRequestedAt?: string | undefined;
982
+ historyDeletion?: "pending" | undefined;
983
+ completion?: {
984
+ phase: "attention" | "waiting";
985
+ waitId?: string | undefined;
986
+ } | undefined;
987
+ } | {
988
+ role: "worker";
989
+ wait?: {
990
+ id: string;
991
+ workerIds: string[];
992
+ requestIds?: string[] | undefined;
993
+ requestOutcomes?: {
994
+ requestId: string;
995
+ status: "cancelled" | "completed-without-reply" | "deleted" | "destroyed" | "failed" | "human-fallback" | "replied" | "replied-late" | "sender-closed" | "timed-out";
996
+ observedAt: string;
997
+ replyId?: string | undefined;
998
+ }[] | undefined;
999
+ deadline: string;
1000
+ mode?: "all" | "any" | "one" | undefined;
1001
+ revisions?: {
1002
+ workerId: string;
1003
+ revision: number;
1004
+ }[] | undefined;
1005
+ reason?: "cancelled" | "message" | "outcome" | "timeout" | undefined;
1006
+ phase: "parked" | "registered" | "wake-pending";
1007
+ outcomes: {
1008
+ workerId: string;
1009
+ status: "cancelled" | "done" | "failed" | "review";
1010
+ observedAt: string;
1011
+ summary?: string | undefined;
1012
+ revision?: number | undefined;
1013
+ }[];
1014
+ wakeId?: string | undefined;
1015
+ } | undefined;
1016
+ lastWait?: {
1017
+ id: string;
1018
+ workerIds: string[];
1019
+ requestIds?: string[] | undefined;
1020
+ requestOutcomes?: {
1021
+ requestId: string;
1022
+ status: "cancelled" | "completed-without-reply" | "deleted" | "destroyed" | "failed" | "human-fallback" | "replied" | "replied-late" | "sender-closed" | "timed-out";
1023
+ observedAt: string;
1024
+ replyId?: string | undefined;
1025
+ }[] | undefined;
1026
+ deadline: string;
1027
+ mode?: "all" | "any" | "one" | undefined;
1028
+ revisions?: {
1029
+ workerId: string;
1030
+ revision: number;
1031
+ }[] | undefined;
1032
+ reason?: "cancelled" | "message" | "outcome" | "timeout" | undefined;
1033
+ phase: "parked" | "registered" | "wake-pending";
1034
+ outcomes: {
1035
+ workerId: string;
1036
+ status: "cancelled" | "done" | "failed" | "review";
1037
+ observedAt: string;
1038
+ summary?: string | undefined;
1039
+ revision?: number | undefined;
1040
+ }[];
1041
+ wakeId?: string | undefined;
1042
+ } | undefined;
1043
+ permissions: ("destroy" | "diff" | "inspect" | "spawn" | "steer" | "stop" | "wait")[];
1044
+ parentRunId: string;
1045
+ workspace: {
1046
+ ownerRunId: string;
1047
+ resourceId: string;
1048
+ kind: "owned-isolated";
1049
+ path: string;
1050
+ branch: string;
1051
+ baselineSha: string;
1052
+ };
1053
+ destroy?: {
1054
+ requestedAt: string;
1055
+ phase: "cleaning" | "complete" | "incomplete" | "requested" | "terminating";
1056
+ remaining: ("branch" | "process" | "worktree")[];
1057
+ error?: string | undefined;
1058
+ } | undefined;
1059
+ context?: {
1060
+ text?: string | undefined;
1061
+ inputs: {
1062
+ source: {
1063
+ kind: "parent-file";
1064
+ path: string;
1065
+ } | {
1066
+ kind: "baseline-file";
1067
+ path: string;
1068
+ } | {
1069
+ kind: "parent-attachment";
1070
+ id: string;
1071
+ };
1072
+ path: string;
1073
+ sha256: string;
1074
+ bytes: number;
1075
+ }[];
1076
+ } | undefined;
1077
+ executionRevision?: number | undefined;
1078
+ executionStartSeq?: number | undefined;
1079
+ } | {
1080
+ role: "invalid";
1081
+ } | undefined;
1082
+ agentInputs?: {
1083
+ conversation?: {
1084
+ senderRunId: string;
1085
+ recipientRunId: string;
1086
+ kind: "follow-up" | "progress" | "reply" | "request";
1087
+ requestId?: string | undefined;
1088
+ relationship?: "family" | "peer" | undefined;
1089
+ } | undefined;
1090
+ id: string;
1091
+ source: "agent" | "lifecycle";
1092
+ parentRunId: string;
1093
+ text: string;
1094
+ createdAt: string;
1095
+ deliveredAt?: string | undefined;
1096
+ consumedAt?: string | undefined;
1097
+ awaitingRead?: true | undefined;
1098
+ inboxClaim?: {
1099
+ receiptId: string;
1100
+ generation: string;
1101
+ expiresAt: string;
1102
+ acknowledgedAt?: string | undefined;
1103
+ memberIds?: string[] | undefined;
1104
+ } | undefined;
1105
+ purpose?: "completion-refusal" | "undelivered-question" | undefined;
1106
+ requestHash?: string | undefined;
1107
+ deadline?: string | undefined;
1108
+ }[] | undefined;
1109
+ waitRegistrations?: {
1110
+ operationId: string;
1111
+ requestHash: string;
1112
+ wait: {
1113
+ prUrl: string;
1114
+ repository: string;
1115
+ prNumber: number;
1116
+ headSha: string;
1117
+ id: string;
1118
+ source: "agent" | "cezar";
1119
+ via: "ask-line" | "budget" | "cez-message-wait" | "cez-worker-wait" | "cezar_ask" | "cezar_wait" | "cezar_wait_for_ci" | "completion" | "monitoring-line" | "native-ask" | "native-subagents" | "no-wait" | "schedule-wakeup";
1120
+ registeredAt: string;
1121
+ phase: "cancelled" | "delivered" | "open" | "resolved";
1122
+ resolvedAt?: string | undefined;
1123
+ deliveredAt?: string | undefined;
1124
+ cancelledAt?: string | undefined;
1125
+ turnId: string;
1126
+ kind: "pr";
1127
+ deadline: string;
1128
+ generation: string;
1129
+ timeoutSeconds: number;
1130
+ until: "checks" | "merge" | "merge_or_blocked";
1131
+ wakeOnConflict: boolean;
1132
+ result?: {
1133
+ outcome: "blocked" | "cancelled" | "closed" | "conflicting" | "deadline" | "error" | "failed" | "head_changed" | "merged" | "no_checks" | "passed" | "skipped";
1134
+ headSha: string;
1135
+ observedHeadSha?: string | undefined;
1136
+ mergeable?: "CONFLICTING" | "MERGEABLE" | "UNKNOWN" | undefined;
1137
+ mergeStateStatus?: string | undefined;
1138
+ mergedAt?: string | undefined;
1139
+ mergeCommitSha?: string | undefined;
1140
+ mergeBlock?: {
1141
+ reason: "conflict" | "no_pending_merge";
1142
+ isInMergeQueue: boolean;
1143
+ autoMergeEnabled: boolean;
1144
+ event?: {
1145
+ kind: "auto_merge_disabled" | "queue_removal";
1146
+ createdAt: string;
1147
+ reason?: string | undefined;
1148
+ reasonCode?: string | undefined;
1149
+ } | undefined;
1150
+ } | undefined;
1151
+ observedAt: string;
1152
+ checks: {
1153
+ name: string;
1154
+ state: string;
1155
+ link: string;
1156
+ }[];
1157
+ totalChecks: number;
1158
+ truncated: boolean;
1159
+ diagnostic?: string | undefined;
1160
+ } | undefined;
1161
+ } | {
1162
+ id: string;
1163
+ source: "agent" | "cezar";
1164
+ via: "ask-line" | "budget" | "cez-message-wait" | "cez-worker-wait" | "cezar_ask" | "cezar_wait" | "cezar_wait_for_ci" | "completion" | "monitoring-line" | "native-ask" | "native-subagents" | "no-wait" | "schedule-wakeup";
1165
+ registeredAt: string;
1166
+ phase: "cancelled" | "delivered" | "open" | "resolved";
1167
+ resolvedAt?: string | undefined;
1168
+ deliveredAt?: string | undefined;
1169
+ cancelledAt?: string | undefined;
1170
+ turnId: string;
1171
+ kind: "timer";
1172
+ deadline: string;
1173
+ seconds: number;
1174
+ note?: string | undefined;
1175
+ } | {
1176
+ id: string;
1177
+ source: "agent" | "cezar";
1178
+ via: "ask-line" | "budget" | "cez-message-wait" | "cez-worker-wait" | "cezar_ask" | "cezar_wait" | "cezar_wait_for_ci" | "completion" | "monitoring-line" | "native-ask" | "native-subagents" | "no-wait" | "schedule-wakeup";
1179
+ registeredAt: string;
1180
+ phase: "cancelled" | "delivered" | "open" | "resolved";
1181
+ resolvedAt?: string | undefined;
1182
+ deliveredAt?: string | undefined;
1183
+ cancelledAt?: string | undefined;
1184
+ turnId: string;
1185
+ kind: "human";
1186
+ questions?: {
1187
+ id?: string | undefined;
1188
+ header: string;
1189
+ question: string;
1190
+ options?: {
1191
+ label: string;
1192
+ description?: string | undefined;
1193
+ }[] | undefined;
1194
+ multiSelect?: boolean | undefined;
1195
+ }[] | undefined;
1196
+ context?: string | undefined;
1197
+ askSeq?: number | undefined;
1198
+ } | {
1199
+ id: string;
1200
+ source: "agent" | "cezar";
1201
+ via: "ask-line" | "budget" | "cez-message-wait" | "cez-worker-wait" | "cezar_ask" | "cezar_wait" | "cezar_wait_for_ci" | "completion" | "monitoring-line" | "native-ask" | "native-subagents" | "no-wait" | "schedule-wakeup";
1202
+ registeredAt: string;
1203
+ phase: "cancelled" | "delivered" | "open" | "resolved";
1204
+ resolvedAt?: string | undefined;
1205
+ deliveredAt?: string | undefined;
1206
+ cancelledAt?: string | undefined;
1207
+ turnId: string;
1208
+ kind: "worker";
1209
+ deadline?: string | undefined;
1210
+ timeoutSeconds?: number | undefined;
1211
+ mode?: "all" | "any" | "one" | undefined;
1212
+ workerIds?: string[] | undefined;
1213
+ revisions?: {
1214
+ workerId: string;
1215
+ revision: number;
1216
+ }[] | undefined;
1217
+ outcomes?: {
1218
+ workerId: string;
1219
+ status: "cancelled" | "done" | "failed" | "review";
1220
+ observedAt: string;
1221
+ summary?: string | undefined;
1222
+ revision?: number | undefined;
1223
+ }[] | undefined;
1224
+ requestIds?: string[] | undefined;
1225
+ requestOutcomes?: {
1226
+ requestId: string;
1227
+ status: "cancelled" | "completed-without-reply" | "deleted" | "destroyed" | "failed" | "human-fallback" | "replied" | "replied-late" | "sender-closed" | "timed-out";
1228
+ observedAt: string;
1229
+ replyId?: string | undefined;
1230
+ }[] | undefined;
1231
+ result?: {
1232
+ reason: "outcome" | "timeout";
1233
+ } | undefined;
1234
+ wakeInputId?: string | undefined;
1235
+ } | {
1236
+ id: string;
1237
+ source: "agent" | "cezar";
1238
+ via: "ask-line" | "budget" | "cez-message-wait" | "cez-worker-wait" | "cezar_ask" | "cezar_wait" | "cezar_wait_for_ci" | "completion" | "monitoring-line" | "native-ask" | "native-subagents" | "no-wait" | "schedule-wakeup";
1239
+ registeredAt: string;
1240
+ phase: "cancelled" | "delivered" | "open" | "resolved";
1241
+ resolvedAt?: string | undefined;
1242
+ deliveredAt?: string | undefined;
1243
+ cancelledAt?: string | undefined;
1244
+ turnId: string;
1245
+ kind: "process";
1246
+ deadline: string;
1247
+ timeoutSeconds: number;
1248
+ pid: number;
1249
+ startToken?: string | undefined;
1250
+ exitFile?: string | undefined;
1251
+ note?: string | undefined;
1252
+ result?: {
1253
+ outcome: "deadline" | "error" | "exit_file" | "exited";
1254
+ observedAt: string;
1255
+ exitCode?: number | undefined;
1256
+ exitFileNote?: "not-an-exit-code" | undefined;
1257
+ diagnostic?: string | undefined;
1258
+ } | undefined;
1259
+ } | {
1260
+ id: string;
1261
+ source: "agent" | "cezar";
1262
+ via: "ask-line" | "budget" | "cez-message-wait" | "cez-worker-wait" | "cezar_ask" | "cezar_wait" | "cezar_wait_for_ci" | "completion" | "monitoring-line" | "native-ask" | "native-subagents" | "no-wait" | "schedule-wakeup";
1263
+ registeredAt: string;
1264
+ phase: "cancelled" | "delivered" | "open" | "resolved";
1265
+ resolvedAt?: string | undefined;
1266
+ deliveredAt?: string | undefined;
1267
+ cancelledAt?: string | undefined;
1268
+ turnId: string;
1269
+ kind: "peer";
1270
+ deadline: string;
1271
+ timeoutSeconds: number;
1272
+ peerIds: string[];
1273
+ result?: {
1274
+ reason: "message";
1275
+ peerRunId: string;
1276
+ messageId: string;
1277
+ } | {
1278
+ reason: "settled";
1279
+ peerRunId: string;
1280
+ } | {
1281
+ reason: "timeout";
1282
+ } | undefined;
1283
+ } | {
1284
+ id: string;
1285
+ registeredAt: string;
1286
+ phase: "cancelled" | "delivered" | "open" | "resolved";
1287
+ resolvedAt?: string | undefined;
1288
+ deliveredAt?: string | undefined;
1289
+ cancelledAt?: string | undefined;
1290
+ turnId: string;
1291
+ kind: "subagent";
1292
+ source: "cezar";
1293
+ via: "native-subagents";
1294
+ deadline: string;
1295
+ children: {
1296
+ id: string;
1297
+ status: "cancelled" | "completed" | "failed" | "running";
1298
+ }[];
1299
+ result?: {
1300
+ reason: "interrupted" | "settled" | "superseded" | "timeout";
1301
+ } | undefined;
1302
+ };
1303
+ deduplicated: boolean;
1304
+ }[] | undefined;
1305
+ lastWaitsError?: string | undefined;
1306
+ automaticWakes?: number | undefined;
1307
+ waitDeliveryFailures?: number | undefined;
1308
+ previewServers?: {
1309
+ port: number;
1310
+ command: string;
1311
+ cwd?: string | undefined;
1312
+ label: string;
1313
+ path?: string | undefined;
1314
+ registeredAt: string;
1315
+ answeredAtRegistration: boolean;
1316
+ }[] | undefined;
1317
+ taskImages?: string[] | undefined;
1318
+ model?: string | undefined;
1319
+ effort?: string | undefined;
1320
+ modelIdentity?: string | undefined;
1321
+ runner?: "claude" | "codex" | "cursor" | "omp" | "opencode" | "pi" | undefined;
1322
+ agentProfile?: string | undefined;
1323
+ systemPrompt?: string | undefined;
1324
+ generateFollowups?: boolean | undefined;
1325
+ autonomous?: boolean | undefined;
1326
+ completionAction?: {
1327
+ id: string;
1328
+ phase: "blocked" | "complete" | "pending";
1329
+ message?: string | undefined;
1330
+ } | undefined;
1331
+ archiveBlocker?: {
1332
+ message: string;
1333
+ runId?: string | undefined;
1334
+ pullRequestUrl?: string | undefined;
1335
+ } | undefined;
1336
+ automation?: {
1337
+ automationId: string;
1338
+ automationRevision: number;
1339
+ receiptId: string;
1340
+ event: string;
1341
+ githubUrl: string;
1342
+ } | undefined;
1343
+ automationTrigger?: {
1344
+ automationId: string;
1345
+ automationRevision: number;
1346
+ receiptId: string;
1347
+ trigger: "catch-up" | "manual" | "schedule";
1348
+ occurrenceAt: string;
1349
+ } | undefined;
1350
+ destroyRetry?: {
1351
+ attempts: number;
1352
+ nextAt: string;
1353
+ needsAttention?: true | undefined;
1354
+ } | undefined;
1355
+ notify?: boolean | undefined;
1356
+ webhook?: {
1357
+ lastDeliveredAt?: string | undefined;
1358
+ lastError?: string | undefined;
1359
+ lastErrorWebhookId?: string | undefined;
1360
+ } | undefined;
1361
+ hasPendingPermission?: boolean | undefined;
1362
+ autoResumeAt?: string | undefined;
1363
+ autoResumeAttempts?: number | undefined;
1364
+ autoResumeReason?: "provider-error" | "usage-limit" | undefined;
1365
+ parkReason?: "closing-wakes" | "hold" | "turn" | undefined;
1366
+ createdAt?: string;
1367
+ startedAt?: string | undefined;
1368
+ finishedAt?: string | undefined;
1369
+ tokensUsed?: number;
1370
+ inputTokens?: number | undefined;
1371
+ outputTokens?: number | undefined;
1372
+ costUsd?: number | undefined;
1373
+ pullRequestUrl?: string | undefined;
1374
+ pullRequests?: {
1375
+ number: number;
1376
+ url?: string | undefined;
1377
+ source: "created" | "declared";
1378
+ }[] | undefined;
1379
+ referencedPullRequestUrl?: string | undefined;
1380
+ prNumber?: number | undefined;
1381
+ issueNumber?: number | undefined;
1382
+ referencedIssueNumberSeeded?: boolean | undefined;
1383
+ titleOrigin?: "auto" | "marker" | "user" | undefined;
1384
+ markerRefs?: {
1385
+ pr?: number | undefined;
1386
+ issue?: number | undefined;
1387
+ } | undefined;
1388
+ referencedPrCandidates?: string[] | undefined;
1389
+ referencedIssueUrl?: string | undefined;
1390
+ referencedIssueCandidates?: string[] | undefined;
1391
+ worktree?: false | undefined;
1392
+ worktreePath?: string | undefined;
1393
+ branch?: string | undefined;
1394
+ baseBranch?: string | undefined;
1395
+ worktreeReclaimedAt?: string | undefined;
1396
+ worktreeSetup?: {
1397
+ status: "done" | "failed" | "running";
1398
+ startedAt: string;
1399
+ finishedAt?: string | undefined;
1400
+ durationMs?: number | undefined;
1401
+ error?: string | undefined;
1402
+ } | undefined;
1403
+ groupId?: string | undefined;
1404
+ variant?: string | undefined;
1405
+ clientRequestId?: string | undefined;
1406
+ clientRequestHash?: string | undefined;
1407
+ peakRssBytes?: number | undefined;
1408
+ peakProcCount?: number | undefined;
1409
+ archived?: boolean;
1410
+ archivedAt?: string | undefined;
1411
+ autoArchive?: {
1412
+ reason: "pull-requests-merged";
1413
+ archivedAt: string;
1414
+ fingerprint: string;
1415
+ pullRequests: {
1416
+ owner: string;
1417
+ repo: string;
1418
+ number: number;
1419
+ mergedAt: string;
1420
+ }[];
1421
+ } | undefined;
1422
+ manualUnarchivedAt?: string | undefined;
1423
+ pinned?: boolean | undefined;
1424
+ pinnedAt?: string | undefined;
1425
+ seenAt?: string | undefined;
1426
+ currentStepId?: string | undefined;
1427
+ error?: string | undefined;
1428
+ workflowDef?: {
1429
+ name: string;
1430
+ description?: string | undefined;
1431
+ steps: {
1432
+ id: string;
1433
+ name?: string | undefined;
1434
+ prompt?: string | undefined;
1435
+ skill?: string | undefined;
1436
+ model?: string | undefined;
1437
+ effort?: string | undefined;
1438
+ timeoutMs?: number | undefined;
1439
+ runner?: "claude" | "codex" | "cursor" | "omp" | "opencode" | "pi" | undefined;
1440
+ agentProfile?: string | undefined;
1441
+ allowedTools?: string[] | undefined;
1442
+ bashAllowlist?: string[] | undefined;
1443
+ command?: string | undefined;
1444
+ onFail?: {
1445
+ retry: string;
1446
+ max: number;
1447
+ } | undefined;
1448
+ }[];
1449
+ source: "built-in" | "file";
1450
+ path?: string | undefined;
1451
+ } | undefined;
1452
+ handoffRecords?: {
1453
+ autosave: {
1454
+ at: string;
1455
+ note: string;
1456
+ periodic?: {
1457
+ branch: string | null;
1458
+ count: number;
1459
+ first: string | null;
1460
+ latest: string | null;
1461
+ } | undefined;
1462
+ }[];
1463
+ } | undefined;
1464
+ status?: never;
1465
+ waits?: never;
1466
+ lastWaits?: never;
1467
+ };
177
1468
  readonly steps: typeof failedStep;
178
1469
  };
179
1470
  readonly resume: {
@@ -233,6 +1524,18 @@ export declare const RUN_EXITS: {
233
1524
  readonly to: 'failed';
234
1525
  readonly steps: typeof failedStep;
235
1526
  };
1527
+ readonly 'fail-attempt': {
1528
+ readonly durability: 'debounced';
1529
+ readonly from: readonly ["running"];
1530
+ readonly to: 'running';
1531
+ readonly fields: (_run: ExitRead, at: ExitSettlement) => RunPatch;
1532
+ };
1533
+ readonly 'fail-attempt-parked': {
1534
+ readonly durability: 'debounced';
1535
+ readonly from: readonly ["waiting"];
1536
+ readonly to: 'waiting';
1537
+ readonly fields: (_run: ExitRead, at: ExitSettlement) => RunPatch;
1538
+ };
236
1539
  readonly 'fail-continue': {
237
1540
  readonly durability: 'debounced';
238
1541
  readonly from: readonly ["running", "waiting", "cancelled"];
@@ -297,7 +1600,10 @@ export declare const RUN_EXITS: {
297
1600
  restarted?: true | undefined;
298
1601
  } | undefined;
299
1602
  } | undefined;
300
- workflowResumeStepId?: string | undefined;
1603
+ workflowCursor?: {
1604
+ stepId: string;
1605
+ mode: "resume" | "start";
1606
+ } | undefined;
301
1607
  invalidAsk?: boolean | undefined;
302
1608
  delegation?: {
303
1609
  role: "root";
@@ -1344,7 +2650,10 @@ export declare const RUN_EXITS: {
1344
2650
  restarted?: true | undefined;
1345
2651
  } | undefined;
1346
2652
  } | undefined;
1347
- workflowResumeStepId?: string | undefined;
2653
+ workflowCursor?: {
2654
+ stepId: string;
2655
+ mode: "resume" | "start";
2656
+ } | undefined;
1348
2657
  invalidAsk?: boolean | undefined;
1349
2658
  delegation?: {
1350
2659
  role: "root";
@@ -2405,7 +3714,10 @@ export declare const RUN_EXITS: {
2405
3714
  restarted?: true | undefined;
2406
3715
  } | undefined;
2407
3716
  } | undefined;
2408
- workflowResumeStepId?: string | undefined;
3717
+ workflowCursor?: {
3718
+ stepId: string;
3719
+ mode: "resume" | "start";
3720
+ } | undefined;
2409
3721
  invalidAsk?: boolean | undefined;
2410
3722
  delegation?: {
2411
3723
  role: "root";
@@ -3460,7 +4772,10 @@ export declare const RUN_EXITS: {
3460
4772
  restarted?: true | undefined;
3461
4773
  } | undefined;
3462
4774
  } | undefined;
3463
- workflowResumeStepId?: string | undefined;
4775
+ workflowCursor?: {
4776
+ stepId: string;
4777
+ mode: "resume" | "start";
4778
+ } | undefined;
3464
4779
  invalidAsk?: boolean | undefined;
3465
4780
  delegation?: {
3466
4781
  role: "root";