@hearsay-tools/squawk 0.18.0-pr4153.8018 → 0.18.0-pr4165.8028

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 (110) hide show
  1. package/dist/built-in-run-slots.d.ts +3 -1
  2. package/dist/built-in-run-slots.js +6 -2
  3. package/dist/built-in-run-slots.js.map +1 -1
  4. package/dist/ci-wait/client.js.map +1 -1
  5. package/dist/ci-wait/controller.d.ts +6 -5
  6. package/dist/ci-wait/controller.js.map +1 -1
  7. package/dist/ci-wait/tool-catalog.js.map +1 -1
  8. package/dist/contract/index.d.ts +1 -0
  9. package/dist/contract/index.js +622 -615
  10. package/dist/contract/wait-limits.d.ts +3 -0
  11. package/dist/contract/wait-tools.d.ts +440 -0
  12. package/dist/contract/waits.d.ts +2 -441
  13. package/dist/core/registry.d.ts +36 -0
  14. package/dist/core/registry.js +85 -0
  15. package/dist/core/registry.js.map +1 -0
  16. package/dist/delegation/routes.d.ts +4 -4
  17. package/dist/delegation/transport.d.ts +15 -15
  18. package/dist/runs/removal-slots.js +27 -20
  19. package/dist/runs/removal-slots.js.map +1 -1
  20. package/dist/runs/run-archive.d.ts +72 -72
  21. package/dist/runs/run-decode.d.ts +72 -72
  22. package/dist/runs/run-exits.d.ts +352 -352
  23. package/dist/runs/worker-executions-registry.d.ts +5 -3
  24. package/dist/runs/worker-executions-registry.js +13 -15
  25. package/dist/runs/worker-executions-registry.js.map +1 -1
  26. package/dist/subcommands.js +2 -1
  27. package/dist/subcommands.js.map +1 -1
  28. package/dist/workflows/continuation-admission.d.ts +72 -72
  29. package/dist/workflows/run/compose.d.ts +2 -1
  30. package/dist/workflows/run/compose.js.map +1 -1
  31. package/dist/workflows/run/run-finish.js.map +1 -1
  32. package/dist/workflows/run/squawk-tools.d.ts +2 -1
  33. package/dist/workflows/run/squawk-tools.js.map +1 -1
  34. package/dist/workflows/run/wait-registration-tool.js +2 -1
  35. package/dist/workflows/run/wait-registration-tool.js.map +1 -1
  36. package/dist/workflows/run/wait-registration.d.ts +2 -1
  37. package/dist/workflows/run/wait-registration.js.map +1 -1
  38. package/dist/workflows/run/wait-registry.d.ts +2 -1
  39. package/dist/workflows/run/wait-registry.js.map +1 -1
  40. package/dist/workflows/run.d.ts +2 -1
  41. package/dist/workflows/run.js.map +1 -1
  42. package/package.json +4 -4
  43. package/scripts/benchmark-family-reconcile.ts +2 -1
  44. package/scripts/benchmark-run-store.ts +2 -1
  45. package/scripts/benchmark-stuck-destroys.ts +2 -1
  46. package/scripts/benchmark-worker-lifecycle.ts +2 -1
  47. package/scripts/benchmark-workspace-events.ts +2 -1
  48. package/scripts/benchmark-worktree-retention.ts +2 -1
  49. package/scripts/measure-transcript-facts-health.mjs +2 -1
  50. package/web/dist/assets/{accounts-section-CJ1xR0FN.js → accounts-section-Lxa13E8O.js} +1 -1
  51. package/web/dist/assets/{activity-motion-C01GEN0y.js → activity-motion-D-8GF_WP.js} +1 -1
  52. package/web/dist/assets/{activity-route-BZ1NIKSY.js → activity-route-Bo-Cyzsz.js} +1 -1
  53. package/web/dist/assets/{agent-config-section-DvFcRRLD.js → agent-config-section-BE239EYo.js} +1 -1
  54. package/web/dist/assets/{agent-defaults-section-BE88c2RN.js → agent-defaults-section-Bj5dO6F3.js} +1 -1
  55. package/web/dist/assets/{appearance-B9Z6lNEm.js → appearance-C2v7z5MF.js} +1 -1
  56. package/web/dist/assets/{archive-on-merge-field-DtR7twJI.js → archive-on-merge-field-Ta3WlY1p.js} +1 -1
  57. package/web/dist/assets/attention-B1Ei1IW6.js +1 -0
  58. package/web/dist/assets/{automations-route-Dpa01C3j.js → automations-route-DPpaFR0Q.js} +1 -1
  59. package/web/dist/assets/{commit-diff-panel-CGjhxIPJ.js → commit-diff-panel-CzY8bO3p.js} +1 -1
  60. package/web/dist/assets/{diff-DQ18_bA-.js → diff-3jSM3IH7.js} +2 -2
  61. package/web/dist/assets/{diff-view-CMwe_Rx7.js → diff-view-C3cwyYRv.js} +1 -1
  62. package/web/dist/assets/{file-preview-_lAUlt5u.js → file-preview-B71T62DU.js} +1 -1
  63. package/web/dist/assets/{folder-browser-Cy26Y6YK.js → folder-browser-BTYMFLBY.js} +1 -1
  64. package/web/dist/assets/{git-toolbar-BJM3pWHY.js → git-toolbar-Dng31AhK.js} +1 -1
  65. package/web/dist/assets/{github-aO7y0526.js → github-Cft2RNHM.js} +1 -1
  66. package/web/dist/assets/{global-activity-route-BWOfw2C5.js → global-activity-route-CngRjBlD.js} +1 -1
  67. package/web/dist/assets/{index-D-Y1olb1.js → index-MG3T7zFQ.js} +5 -5
  68. package/web/dist/assets/{label-CbEJ99h4.js → label-C9IGG0mW.js} +1 -1
  69. package/web/dist/assets/{markdown-BDWII3gy.js → markdown-BDWm6oGX.js} +1 -1
  70. package/web/dist/assets/{notifications-section-Z_4IW83J.js → notifications-section-BxIKJ1NF.js} +1 -1
  71. package/web/dist/assets/{open-in-menu-21vcjK3t.js → open-in-menu-LbTu2sP4.js} +1 -1
  72. package/web/dist/assets/{preview-pane-connected-CxwvH4pt.js → preview-pane-connected-CGQngtTw.js} +1 -1
  73. package/web/dist/assets/{project-location-CvJMe_Vp.js → project-location-B-18C392.js} +1 -1
  74. package/web/dist/assets/{project-router-hhGBPlav.js → project-router-DImKA81z.js} +1 -1
  75. package/web/dist/assets/project-scope-context-D3_4Nfjk.js +4 -0
  76. package/web/dist/assets/{projects-section-CQ34YFnT.js → projects-section-DQ1LxJ3A.js} +1 -1
  77. package/web/dist/assets/{prompt-templates-section-UIxQCLJq.js → prompt-templates-section-C5AYB6Ig.js} +1 -1
  78. package/web/dist/assets/{queries-D6ioEk6c.js → queries-BaHOUYn4.js} +1 -1
  79. package/web/dist/assets/{reference-chip-B5br2cfV.js → reference-chip-CdOqXRll.js} +1 -1
  80. package/web/dist/assets/{remote-settings-notice-BWDpTH5W.js → remote-settings-notice-BTdflMqO.js} +1 -1
  81. package/web/dist/assets/{repo-git-U12bPaG-.js → repo-git-DChiMWrS.js} +1 -1
  82. package/web/dist/assets/{report-reader-B5vipU-m.js → report-reader-nV2G6iRk.js} +1 -1
  83. package/web/dist/assets/{reports-Cdk8Dc-w.js → reports-CoQqVEy4.js} +1 -1
  84. package/web/dist/assets/{resources-section-BCLu3v1Z.js → resources-section-CVaIlicS.js} +1 -1
  85. package/web/dist/assets/{run-header-gOqc0BKa.js → run-header-xPtXOBkm.js} +1 -1
  86. package/web/dist/assets/{runners-5cgs0qUY.js → runners-DccsyraI.js} +1 -1
  87. package/web/dist/assets/{settings-agent-picker-CB7l8AW-.js → settings-agent-picker-ixlEQ-MP.js} +1 -1
  88. package/web/dist/assets/{settings-shell-BUHHoCDs.js → settings-shell-BwknM_fs.js} +1 -1
  89. package/web/dist/assets/{sidebar-section-8dTKLdQw.js → sidebar-section-BNy-fRPU.js} +1 -1
  90. package/web/dist/assets/{skills-thuBrq2s.js → skills-CKceHo5J.js} +1 -1
  91. package/web/dist/assets/{tab-link-DaFUyEhe.js → tab-link-VCVNqxFc.js} +1 -1
  92. package/web/dist/assets/{task-changes-DSpeg6sX.js → task-changes-D4H5YbMo.js} +1 -1
  93. package/web/dist/assets/{task-commits-DRDRswBh.js → task-commits-BNu0VTTf.js} +1 -1
  94. package/web/dist/assets/{task-files-Cevz9Mex.js → task-files-C8q8GHYK.js} +1 -1
  95. package/web/dist/assets/{task-github-item-DpLkKSKy.js → task-github-item-D5kHfnwY.js} +1 -1
  96. package/web/dist/assets/{task-groups-CafTiSSz.js → task-groups-C7yO8nMy.js} +1 -1
  97. package/web/dist/assets/{task-thread-BvM4rEQe.js → task-thread-Dhts8Nbu.js} +1 -1
  98. package/web/dist/assets/{tasks-table-DYjfmofR.js → tasks-table-I_z4e7uI.js} +1 -1
  99. package/web/dist/assets/{thread-state-A3TSuI5v.js → thread-state-DV19z3BD.js} +1 -1
  100. package/web/dist/assets/{use-hand-to-agent-state-IepoiFbj.js → use-hand-to-agent-state-C6e6Mgi1.js} +1 -1
  101. package/web/dist/assets/{useInfiniteQuery-B20OnjTe.js → useInfiniteQuery-DR5UfhCS.js} +1 -1
  102. package/web/dist/assets/useQuery-BMyCehPp.js +1 -0
  103. package/web/dist/assets/{workflows-B0TaHAzz.js → workflows-BNHmFZRc.js} +1 -1
  104. package/web/dist/assets/{workspace-tools-B8sP_p5c.js → workspace-tools-UHJAnHEN.js} +1 -1
  105. package/web/dist/assets/{worktrees-section-BDfwadB6.js → worktrees-section-B4XPx6R5.js} +1 -1
  106. package/web/dist/assets/{ws-ExzR2_Yn.js → ws-CH3zNFKR.js} +1 -1
  107. package/web/dist/index.html +15 -15
  108. package/web/dist/assets/attention-B6NEiTGm.js +0 -1
  109. package/web/dist/assets/project-scope-context-BiijuuWU.js +0 -4
  110. package/web/dist/assets/useQuery-BTg3x78A.js +0 -1
@@ -1,41 +1,48 @@
1
- const gates = [];
2
- const preparations = [];
3
- const cleanups = [];
4
- let sealed = false;
5
- function add(list, slots) {
6
- for (const slot of slots ?? []) {
7
- if (list.includes(slot))
8
- continue;
9
- if (sealed)
1
+ import { createListRegistry } from '../core/registry.js';
2
+ const options = { name: 'The removal slots', bootHint: 'call registerBuiltInRunSlots(), then sealBuiltInRunSlots().' };
3
+ const gates = createListRegistry(options);
4
+ const preparations = createListRegistry(options);
5
+ const cleanups = createListRegistry(options);
6
+ function registerSlot(registry, slot) {
7
+ try {
8
+ registry.register(slot);
9
+ }
10
+ catch (error) {
11
+ if (runSlotsSealed())
10
12
  throw new Error('The removal slots are sealed: register every slot before sealRunSlots().');
11
- list.push(slot);
13
+ throw error;
12
14
  }
13
15
  }
14
16
  /** Add slots, in call order. Registering the same slot object again does nothing. */
15
17
  export function registerRunSlots(slots) {
16
- add(gates, slots.gates);
17
- add(preparations, slots.preparations);
18
- add(cleanups, slots.cleanups);
18
+ for (const slot of slots.gates ?? [])
19
+ registerSlot(gates, slot);
20
+ for (const slot of slots.preparations ?? [])
21
+ registerSlot(preparations, slot);
22
+ for (const slot of slots.cleanups ?? [])
23
+ registerSlot(cleanups, slot);
19
24
  }
20
25
  /** Close the registry: removals may run, and no new slot may register. */
21
26
  export function sealRunSlots() {
22
- sealed = true;
27
+ gates.seal();
28
+ preparations.seal();
29
+ cleanups.seal();
23
30
  }
24
31
  /** Whether this process sealed its removal slots. Never throws. */
25
32
  export function runSlotsSealed() {
26
- return sealed;
33
+ return gates.isSealed();
27
34
  }
28
35
  /** Throws unless the registry is sealed. A removal path calls it before its first side effect. */
29
36
  export function assertRunSlotsSealed() {
30
- if (!sealed) {
31
- throw new Error('No removal slot is registered: call registerBuiltInRunSlots() from built-in-run-slots.ts at the process entry, '
37
+ if (!runSlotsSealed()) {
38
+ throw new Error('No removal slot is registered: call registerBuiltInRunSlots() then sealBuiltInRunSlots() from built-in-run-slots.ts at the process entry, '
32
39
  + 'or seal the slots this test uses with sealTestRunSlots() from runs/removal-slots.testkit.ts.');
33
40
  }
34
41
  }
35
42
  /** The first gate's reason to refuse this deletion, in registration order. */
36
43
  export function deletionRefusal(runId, kind, dataDir) {
37
44
  assertRunSlotsSealed();
38
- for (const gate of gates) {
45
+ for (const gate of gates.values()) {
39
46
  const reason = gate.refuse(runId, kind, dataDir);
40
47
  if (reason)
41
48
  return reason;
@@ -45,14 +52,14 @@ export function deletionRefusal(runId, kind, dataDir) {
45
52
  /** Run every preparation in registration order; the first rejection stops the rest. */
46
53
  export async function prepareReclaim(run, context) {
47
54
  assertRunSlotsSealed();
48
- for (const preparation of preparations)
55
+ for (const preparation of preparations.values())
49
56
  await preparation.prepare(run, context);
50
57
  }
51
58
  /** Run every cleanup in registration order, then throw the first failure. */
52
59
  export function runRemovalCleanups(runId, dataDir) {
53
60
  assertRunSlotsSealed();
54
61
  const failures = [];
55
- for (const cleanup of cleanups) {
62
+ for (const cleanup of cleanups.values()) {
56
63
  try {
57
64
  cleanup.removed(runId, dataDir);
58
65
  }
@@ -1 +1 @@
1
- {"version":3,"file":"removal-slots.js","sourceRoot":"","sources":["../../src/runs/removal-slots.ts"],"names":[],"mappings":"AAmDA,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MAAM,MAAM,GAAG,IAAI,CAAC,MAAM,CAAC,KAAK,EAAE,IAAI,EAAE,OAAO,CAAC,CAAC;QACjD,IAAI,MAAM;YAAE,OAAO,MAAM,CAAC;IAC5B,CAAC;IACD,OAAO,SAAS,CAAC;AACnB,CAAC;AAED,uFAAuF;AACvF,MAAM,CAAC,KAAK,UAAU,cAAc,CAAC,GAAc,EAAE,OAAuB;IAC1E,oBAAoB,EAAE,CAAC;IACvB,KAAK,MAAM,WAAW,IAAI,YAAY,CAAC,MAAM,EAAE;QAAE,MAAM,WAAW,CAAC,OAAO,CAAC,GAAG,EAAE,OAAO,CAAC,CAAC;AAC3F,CAAC;AAED,6EAA6E;AAC7E,MAAM,UAAU,kBAAkB,CAAC,KAAa,EAAE,OAAe;IAC/D,oBAAoB,EAAE,CAAC;IACvB,MAAM,QAAQ,GAAc,EAAE,CAAC;IAC/B,KAAK,MAAM,OAAO,IAAI,QAAQ,CAAC,MAAM,EAAE,EAAE,CAAC;QACxC,IAAI,CAAC;YAAC,OAAO,CAAC,OAAO,CAAC,KAAK,EAAE,OAAO,CAAC,CAAC;QAAC,CAAC;QAAC,OAAO,KAAK,EAAE,CAAC;YAAC,QAAQ,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC;QAAC,CAAC;IAClF,CAAC;IACD,IAAI,QAAQ,CAAC,MAAM;QAAE,MAAM,QAAQ,CAAC,CAAC,CAAC,CAAC;AACzC,CAAC"}
@@ -228,6 +228,30 @@ export declare class RunArchiveTopic implements RunArchive, RunCompletionActions
228
228
  deadline: string;
229
229
  seconds: number;
230
230
  note?: string | undefined;
231
+ } | {
232
+ id: string;
233
+ source: "agent" | "cezar";
234
+ 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";
235
+ registeredAt: string;
236
+ phase: "cancelled" | "delivered" | "open" | "resolved";
237
+ resolvedAt?: string | undefined;
238
+ deliveredAt?: string | undefined;
239
+ cancelledAt?: string | undefined;
240
+ turnId: string;
241
+ kind: "process";
242
+ deadline: string;
243
+ timeoutSeconds: number;
244
+ pid: number;
245
+ startToken?: string | undefined;
246
+ exitFile?: string | undefined;
247
+ note?: string | undefined;
248
+ result?: {
249
+ outcome: "deadline" | "error" | "exit_file" | "exited";
250
+ observedAt: string;
251
+ exitCode?: number | undefined;
252
+ exitFileNote?: "not-an-exit-code" | undefined;
253
+ diagnostic?: string | undefined;
254
+ } | undefined;
231
255
  } | {
232
256
  id: string;
233
257
  source: "agent" | "cezar";
@@ -289,30 +313,6 @@ export declare class RunArchiveTopic implements RunArchive, RunCompletionActions
289
313
  reason: "outcome" | "timeout";
290
314
  } | undefined;
291
315
  wakeInputId?: string | undefined;
292
- } | {
293
- id: string;
294
- source: "agent" | "cezar";
295
- 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";
296
- registeredAt: string;
297
- phase: "cancelled" | "delivered" | "open" | "resolved";
298
- resolvedAt?: string | undefined;
299
- deliveredAt?: string | undefined;
300
- cancelledAt?: string | undefined;
301
- turnId: string;
302
- kind: "process";
303
- deadline: string;
304
- timeoutSeconds: number;
305
- pid: number;
306
- startToken?: string | undefined;
307
- exitFile?: string | undefined;
308
- note?: string | undefined;
309
- result?: {
310
- outcome: "deadline" | "error" | "exit_file" | "exited";
311
- observedAt: string;
312
- exitCode?: number | undefined;
313
- exitFileNote?: "not-an-exit-code" | undefined;
314
- diagnostic?: string | undefined;
315
- } | undefined;
316
316
  } | {
317
317
  id: string;
318
318
  source: "agent" | "cezar";
@@ -424,6 +424,30 @@ export declare class RunArchiveTopic implements RunArchive, RunCompletionActions
424
424
  deadline: string;
425
425
  seconds: number;
426
426
  note?: string | undefined;
427
+ } | {
428
+ id: string;
429
+ source: "agent" | "cezar";
430
+ 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";
431
+ registeredAt: string;
432
+ phase: "cancelled" | "delivered" | "open" | "resolved";
433
+ resolvedAt?: string | undefined;
434
+ deliveredAt?: string | undefined;
435
+ cancelledAt?: string | undefined;
436
+ turnId: string;
437
+ kind: "process";
438
+ deadline: string;
439
+ timeoutSeconds: number;
440
+ pid: number;
441
+ startToken?: string | undefined;
442
+ exitFile?: string | undefined;
443
+ note?: string | undefined;
444
+ result?: {
445
+ outcome: "deadline" | "error" | "exit_file" | "exited";
446
+ observedAt: string;
447
+ exitCode?: number | undefined;
448
+ exitFileNote?: "not-an-exit-code" | undefined;
449
+ diagnostic?: string | undefined;
450
+ } | undefined;
427
451
  } | {
428
452
  id: string;
429
453
  source: "agent" | "cezar";
@@ -485,30 +509,6 @@ export declare class RunArchiveTopic implements RunArchive, RunCompletionActions
485
509
  reason: "outcome" | "timeout";
486
510
  } | undefined;
487
511
  wakeInputId?: string | undefined;
488
- } | {
489
- id: string;
490
- source: "agent" | "cezar";
491
- 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";
492
- registeredAt: string;
493
- phase: "cancelled" | "delivered" | "open" | "resolved";
494
- resolvedAt?: string | undefined;
495
- deliveredAt?: string | undefined;
496
- cancelledAt?: string | undefined;
497
- turnId: string;
498
- kind: "process";
499
- deadline: string;
500
- timeoutSeconds: number;
501
- pid: number;
502
- startToken?: string | undefined;
503
- exitFile?: string | undefined;
504
- note?: string | undefined;
505
- result?: {
506
- outcome: "deadline" | "error" | "exit_file" | "exited";
507
- observedAt: string;
508
- exitCode?: number | undefined;
509
- exitFileNote?: "not-an-exit-code" | undefined;
510
- diagnostic?: string | undefined;
511
- } | undefined;
512
512
  } | {
513
513
  id: string;
514
514
  source: "agent" | "cezar";
@@ -619,6 +619,30 @@ export declare class RunArchiveTopic implements RunArchive, RunCompletionActions
619
619
  deadline: string;
620
620
  seconds: number;
621
621
  note?: string | undefined;
622
+ } | {
623
+ id: string;
624
+ source: "agent" | "cezar";
625
+ 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";
626
+ registeredAt: string;
627
+ phase: "cancelled" | "delivered" | "open" | "resolved";
628
+ resolvedAt?: string | undefined;
629
+ deliveredAt?: string | undefined;
630
+ cancelledAt?: string | undefined;
631
+ turnId: string;
632
+ kind: "process";
633
+ deadline: string;
634
+ timeoutSeconds: number;
635
+ pid: number;
636
+ startToken?: string | undefined;
637
+ exitFile?: string | undefined;
638
+ note?: string | undefined;
639
+ result?: {
640
+ outcome: "deadline" | "error" | "exit_file" | "exited";
641
+ observedAt: string;
642
+ exitCode?: number | undefined;
643
+ exitFileNote?: "not-an-exit-code" | undefined;
644
+ diagnostic?: string | undefined;
645
+ } | undefined;
622
646
  } | {
623
647
  id: string;
624
648
  source: "agent" | "cezar";
@@ -680,30 +704,6 @@ export declare class RunArchiveTopic implements RunArchive, RunCompletionActions
680
704
  reason: "outcome" | "timeout";
681
705
  } | undefined;
682
706
  wakeInputId?: string | undefined;
683
- } | {
684
- id: string;
685
- source: "agent" | "cezar";
686
- 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";
687
- registeredAt: string;
688
- phase: "cancelled" | "delivered" | "open" | "resolved";
689
- resolvedAt?: string | undefined;
690
- deliveredAt?: string | undefined;
691
- cancelledAt?: string | undefined;
692
- turnId: string;
693
- kind: "process";
694
- deadline: string;
695
- timeoutSeconds: number;
696
- pid: number;
697
- startToken?: string | undefined;
698
- exitFile?: string | undefined;
699
- note?: string | undefined;
700
- result?: {
701
- outcome: "deadline" | "error" | "exit_file" | "exited";
702
- observedAt: string;
703
- exitCode?: number | undefined;
704
- exitFileNote?: "not-an-exit-code" | undefined;
705
- diagnostic?: string | undefined;
706
- } | undefined;
707
707
  } | {
708
708
  id: string;
709
709
  source: "agent" | "cezar";
@@ -2148,30 +2148,6 @@ export declare function parseRunRecords(raw: unknown): z.ZodSafeParseResult<{
2148
2148
  deadline: string;
2149
2149
  seconds: number;
2150
2150
  note?: string | undefined;
2151
- } | {
2152
- id: string;
2153
- source: "agent" | "cezar";
2154
- 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";
2155
- registeredAt: string;
2156
- phase: "cancelled" | "delivered" | "open" | "resolved";
2157
- resolvedAt?: string | undefined;
2158
- deliveredAt?: string | undefined;
2159
- cancelledAt?: string | undefined;
2160
- turnId: string;
2161
- kind: "process";
2162
- deadline: string;
2163
- timeoutSeconds: number;
2164
- pid: number;
2165
- startToken?: string | undefined;
2166
- exitFile?: string | undefined;
2167
- note?: string | undefined;
2168
- result?: {
2169
- outcome: "deadline" | "error" | "exit_file" | "exited";
2170
- observedAt: string;
2171
- exitCode?: number | undefined;
2172
- exitFileNote?: "not-an-exit-code" | undefined;
2173
- diagnostic?: string | undefined;
2174
- } | undefined;
2175
2151
  } | {
2176
2152
  id: string;
2177
2153
  source: "agent" | "cezar";
@@ -2233,6 +2209,30 @@ export declare function parseRunRecords(raw: unknown): z.ZodSafeParseResult<{
2233
2209
  reason: "outcome" | "timeout";
2234
2210
  } | undefined;
2235
2211
  wakeInputId?: string | undefined;
2212
+ } | {
2213
+ id: string;
2214
+ source: "agent" | "cezar";
2215
+ 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";
2216
+ registeredAt: string;
2217
+ phase: "cancelled" | "delivered" | "open" | "resolved";
2218
+ resolvedAt?: string | undefined;
2219
+ deliveredAt?: string | undefined;
2220
+ cancelledAt?: string | undefined;
2221
+ turnId: string;
2222
+ kind: "process";
2223
+ deadline: string;
2224
+ timeoutSeconds: number;
2225
+ pid: number;
2226
+ startToken?: string | undefined;
2227
+ exitFile?: string | undefined;
2228
+ note?: string | undefined;
2229
+ result?: {
2230
+ outcome: "deadline" | "error" | "exit_file" | "exited";
2231
+ observedAt: string;
2232
+ exitCode?: number | undefined;
2233
+ exitFileNote?: "not-an-exit-code" | undefined;
2234
+ diagnostic?: string | undefined;
2235
+ } | undefined;
2236
2236
  } | {
2237
2237
  id: string;
2238
2238
  source: "agent" | "cezar";
@@ -2344,30 +2344,6 @@ export declare function parseRunRecords(raw: unknown): z.ZodSafeParseResult<{
2344
2344
  deadline: string;
2345
2345
  seconds: number;
2346
2346
  note?: string | undefined;
2347
- } | {
2348
- id: string;
2349
- source: "agent" | "cezar";
2350
- 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";
2351
- registeredAt: string;
2352
- phase: "cancelled" | "delivered" | "open" | "resolved";
2353
- resolvedAt?: string | undefined;
2354
- deliveredAt?: string | undefined;
2355
- cancelledAt?: string | undefined;
2356
- turnId: string;
2357
- kind: "process";
2358
- deadline: string;
2359
- timeoutSeconds: number;
2360
- pid: number;
2361
- startToken?: string | undefined;
2362
- exitFile?: string | undefined;
2363
- note?: string | undefined;
2364
- result?: {
2365
- outcome: "deadline" | "error" | "exit_file" | "exited";
2366
- observedAt: string;
2367
- exitCode?: number | undefined;
2368
- exitFileNote?: "not-an-exit-code" | undefined;
2369
- diagnostic?: string | undefined;
2370
- } | undefined;
2371
2347
  } | {
2372
2348
  id: string;
2373
2349
  source: "agent" | "cezar";
@@ -2429,6 +2405,30 @@ export declare function parseRunRecords(raw: unknown): z.ZodSafeParseResult<{
2429
2405
  reason: "outcome" | "timeout";
2430
2406
  } | undefined;
2431
2407
  wakeInputId?: string | undefined;
2408
+ } | {
2409
+ id: string;
2410
+ source: "agent" | "cezar";
2411
+ 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";
2412
+ registeredAt: string;
2413
+ phase: "cancelled" | "delivered" | "open" | "resolved";
2414
+ resolvedAt?: string | undefined;
2415
+ deliveredAt?: string | undefined;
2416
+ cancelledAt?: string | undefined;
2417
+ turnId: string;
2418
+ kind: "process";
2419
+ deadline: string;
2420
+ timeoutSeconds: number;
2421
+ pid: number;
2422
+ startToken?: string | undefined;
2423
+ exitFile?: string | undefined;
2424
+ note?: string | undefined;
2425
+ result?: {
2426
+ outcome: "deadline" | "error" | "exit_file" | "exited";
2427
+ observedAt: string;
2428
+ exitCode?: number | undefined;
2429
+ exitFileNote?: "not-an-exit-code" | undefined;
2430
+ diagnostic?: string | undefined;
2431
+ } | undefined;
2432
2432
  } | {
2433
2433
  id: string;
2434
2434
  source: "agent" | "cezar";
@@ -2539,30 +2539,6 @@ export declare function parseRunRecords(raw: unknown): z.ZodSafeParseResult<{
2539
2539
  deadline: string;
2540
2540
  seconds: number;
2541
2541
  note?: string | undefined;
2542
- } | {
2543
- id: string;
2544
- source: "agent" | "cezar";
2545
- 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";
2546
- registeredAt: string;
2547
- phase: "cancelled" | "delivered" | "open" | "resolved";
2548
- resolvedAt?: string | undefined;
2549
- deliveredAt?: string | undefined;
2550
- cancelledAt?: string | undefined;
2551
- turnId: string;
2552
- kind: "process";
2553
- deadline: string;
2554
- timeoutSeconds: number;
2555
- pid: number;
2556
- startToken?: string | undefined;
2557
- exitFile?: string | undefined;
2558
- note?: string | undefined;
2559
- result?: {
2560
- outcome: "deadline" | "error" | "exit_file" | "exited";
2561
- observedAt: string;
2562
- exitCode?: number | undefined;
2563
- exitFileNote?: "not-an-exit-code" | undefined;
2564
- diagnostic?: string | undefined;
2565
- } | undefined;
2566
2542
  } | {
2567
2543
  id: string;
2568
2544
  source: "agent" | "cezar";
@@ -2624,6 +2600,30 @@ export declare function parseRunRecords(raw: unknown): z.ZodSafeParseResult<{
2624
2600
  reason: "outcome" | "timeout";
2625
2601
  } | undefined;
2626
2602
  wakeInputId?: string | undefined;
2603
+ } | {
2604
+ id: string;
2605
+ source: "agent" | "cezar";
2606
+ 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";
2607
+ registeredAt: string;
2608
+ phase: "cancelled" | "delivered" | "open" | "resolved";
2609
+ resolvedAt?: string | undefined;
2610
+ deliveredAt?: string | undefined;
2611
+ cancelledAt?: string | undefined;
2612
+ turnId: string;
2613
+ kind: "process";
2614
+ deadline: string;
2615
+ timeoutSeconds: number;
2616
+ pid: number;
2617
+ startToken?: string | undefined;
2618
+ exitFile?: string | undefined;
2619
+ note?: string | undefined;
2620
+ result?: {
2621
+ outcome: "deadline" | "error" | "exit_file" | "exited";
2622
+ observedAt: string;
2623
+ exitCode?: number | undefined;
2624
+ exitFileNote?: "not-an-exit-code" | undefined;
2625
+ diagnostic?: string | undefined;
2626
+ } | undefined;
2627
2627
  } | {
2628
2628
  id: string;
2629
2629
  source: "agent" | "cezar";