@hearsay-tools/squawk 0.19.0-dev.8883 → 0.19.0-dev.8890

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 (207) hide show
  1. package/dist/ci-wait/github.d.ts +1 -1
  2. package/dist/ci-wait/github.js +1 -1
  3. package/dist/ci-wait/github.js.map +1 -1
  4. package/dist/ci-wait/supervisor.js +1 -1
  5. package/dist/ci-wait/supervisor.js.map +1 -1
  6. package/dist/core/forge-registry.d.ts +177 -2
  7. package/dist/core/forge-registry.js +39 -0
  8. package/dist/core/forge-registry.js.map +1 -1
  9. package/dist/core/git.d.ts +6 -0
  10. package/dist/core/git.js +28 -20
  11. package/dist/core/git.js.map +1 -1
  12. package/dist/{server/forge → core}/github-request-gate.d.ts +2 -1
  13. package/dist/{server/forge → core}/github-request-gate.js +3 -4
  14. package/dist/core/github-request-gate.js.map +1 -0
  15. package/dist/core/repo-handle-discovery.js.map +1 -0
  16. package/dist/delegation/routes.d.ts +15 -15
  17. package/dist/delegation/transport.d.ts +10 -10
  18. package/dist/features/automations/automations-routes.js +7 -2
  19. package/dist/features/automations/automations-routes.js.map +1 -1
  20. package/dist/features/automations/github-poller.d.ts +1 -1
  21. package/dist/features/automations/github-poller.js +1 -1
  22. package/dist/features/automations/github-poller.js.map +1 -1
  23. package/dist/features/automations/github-repository.d.ts +1 -1
  24. package/dist/features/automations/github-repository.js +3 -4
  25. package/dist/features/automations/github-repository.js.map +1 -1
  26. package/dist/features/automations/scheduler.js +1 -1
  27. package/dist/features/automations/scheduler.js.map +1 -1
  28. package/dist/features/automations/service.d.ts +1 -1
  29. package/dist/features/automations/tools.d.ts +8 -8
  30. package/dist/plugin/index.d.ts +2 -0
  31. package/dist/plugin/index.js +2 -0
  32. package/dist/plugin/index.js.map +1 -1
  33. package/dist/project-commands.js +2 -2
  34. package/dist/project-commands.js.map +1 -1
  35. package/dist/runs/arm-repo-handle.d.ts +5 -4
  36. package/dist/runs/arm-repo-handle.js +5 -1
  37. package/dist/runs/arm-repo-handle.js.map +1 -1
  38. package/dist/runs/event-log.js +2 -1
  39. package/dist/runs/event-log.js.map +1 -1
  40. package/dist/runs/pull-requests.d.ts +6 -0
  41. package/dist/runs/pull-requests.js +4 -0
  42. package/dist/runs/pull-requests.js.map +1 -1
  43. package/dist/runs/record-write-rules.js +2 -3
  44. package/dist/runs/record-write-rules.js.map +1 -1
  45. package/dist/runs/run-archive.js +4 -5
  46. package/dist/runs/run-archive.js.map +1 -1
  47. package/dist/runs/run-references.js +2 -2
  48. package/dist/runs/run-references.js.map +1 -1
  49. package/dist/runs/store.d.ts +2 -0
  50. package/dist/runs/store.js.map +1 -1
  51. package/dist/server/archive-on-merge.d.ts +9 -0
  52. package/dist/server/archive-on-merge.js +44 -4
  53. package/dist/server/archive-on-merge.js.map +1 -1
  54. package/dist/server/cold-repo-handles.d.ts +5 -3
  55. package/dist/server/cold-repo-handles.js +14 -5
  56. package/dist/server/cold-repo-handles.js.map +1 -1
  57. package/dist/server/completion-actions.d.ts +5 -5
  58. package/dist/server/completion-actions.js +15 -8
  59. package/dist/server/completion-actions.js.map +1 -1
  60. package/dist/server/draft-pr.d.ts +24 -0
  61. package/dist/server/{forge/draft-pr.js → draft-pr.js} +51 -56
  62. package/dist/server/draft-pr.js.map +1 -0
  63. package/dist/server/forge/github-checks.js +1 -1
  64. package/dist/server/forge/github-checks.js.map +1 -1
  65. package/dist/server/forge/github-comments.js +2 -2
  66. package/dist/server/forge/github-comments.js.map +1 -1
  67. package/dist/server/forge/{draft-pr.d.ts → github-create-pr.d.ts} +0 -8
  68. package/dist/server/forge/github-create-pr.js +41 -0
  69. package/dist/server/forge/github-create-pr.js.map +1 -0
  70. package/dist/server/forge/github-forge.d.ts +6 -0
  71. package/dist/server/forge/github-forge.js +49 -25
  72. package/dist/server/forge/github-forge.js.map +1 -1
  73. package/dist/server/forge/github-list.js +2 -2
  74. package/dist/server/forge/github-list.js.map +1 -1
  75. package/dist/server/forge/github-mutations.js +3 -3
  76. package/dist/server/forge/github-mutations.js.map +1 -1
  77. package/dist/server/forge/github-pr-diff.js +1 -1
  78. package/dist/server/forge/github-pr-diff.js.map +1 -1
  79. package/dist/server/forge/github-ref-status.js +1 -1
  80. package/dist/server/forge/github-ref-status.js.map +1 -1
  81. package/dist/server/forge/github-shared.js +2 -2
  82. package/dist/server/forge/github-shared.js.map +1 -1
  83. package/dist/server/forge/github.d.ts +3 -4
  84. package/dist/server/forge/github.js +4 -16
  85. package/dist/server/forge/github.js.map +1 -1
  86. package/dist/server/forge/index.d.ts +3 -24
  87. package/dist/server/forge/index.js +3 -54
  88. package/dist/server/forge/index.js.map +1 -1
  89. package/dist/server/forge/types.d.ts +5 -91
  90. package/dist/server/forge-pr-states.d.ts +16 -0
  91. package/dist/server/forge-pr-states.js +87 -0
  92. package/dist/server/forge-pr-states.js.map +1 -0
  93. package/dist/server/github-cli.js.map +1 -0
  94. package/dist/server/{forge/github-repo-handle.d.ts → github-repo-handle.d.ts} +1 -1
  95. package/dist/server/{forge/github-repo-handle.js → github-repo-handle.js} +1 -1
  96. package/dist/server/github-repo-handle.js.map +1 -0
  97. package/dist/server/github-routes.d.ts +69 -26
  98. package/dist/server/github-routes.js +68 -39
  99. package/dist/server/github-routes.js.map +1 -1
  100. package/dist/server/live-routes.d.ts +6 -6
  101. package/dist/server/models-routes.d.ts +12 -12
  102. package/dist/server/project-context.d.ts +3 -2
  103. package/dist/server/project-context.js +2 -2
  104. package/dist/server/project-context.js.map +1 -1
  105. package/dist/server/project-forge.d.ts +36 -0
  106. package/dist/server/project-forge.js +52 -0
  107. package/dist/server/project-forge.js.map +1 -0
  108. package/dist/server/projects-routes.d.ts +45 -45
  109. package/dist/server/repo-branch-forge.d.ts +10 -19
  110. package/dist/server/repo-branch-forge.js +40 -12
  111. package/dist/server/repo-branch-forge.js.map +1 -1
  112. package/dist/server/repo-branch-sweep.js +2 -2
  113. package/dist/server/repo-branch-sweep.js.map +1 -1
  114. package/dist/server/repo-branches.d.ts +1 -1
  115. package/dist/server/repo-branches.js +1 -1
  116. package/dist/server/repo-branches.js.map +1 -1
  117. package/dist/server/repo-routes.d.ts +3 -2
  118. package/dist/server/repo-routes.js +2 -2
  119. package/dist/server/repo-routes.js.map +1 -1
  120. package/dist/server/reports-api.d.ts +2 -2
  121. package/dist/server/runs-routes.d.ts +678 -677
  122. package/dist/server/runs-routes.js +18 -10
  123. package/dist/server/runs-routes.js.map +1 -1
  124. package/dist/server/server.d.ts +2877 -2801
  125. package/dist/server/server.js +13 -9
  126. package/dist/server/server.js.map +1 -1
  127. package/dist/server/start-server.js +14 -11
  128. package/dist/server/start-server.js.map +1 -1
  129. package/dist/server/workspace-live-routes.d.ts +6 -6
  130. package/dist/server/workspace-projects.d.ts +1 -1
  131. package/dist/server/workspace-projects.js +1 -1
  132. package/dist/server/workspace-routes.d.ts +3 -2
  133. package/dist/server/workspace-routes.js +7 -4
  134. package/dist/server/workspace-routes.js.map +1 -1
  135. package/dist/workflows/input-acknowledgement.d.ts +24 -24
  136. package/dist/workflows/run/wait-engine.d.ts +72 -72
  137. package/dist/workspace/projects.js +6 -4
  138. package/dist/workspace/projects.js.map +1 -1
  139. package/package.json +4 -4
  140. package/web/dist/assets/{accounts-section-BM-HWieF.js → accounts-section-DghVB9OC.js} +1 -1
  141. package/web/dist/assets/{activity-motion-BlDa0Oee.js → activity-motion-B_nzNpf8.js} +1 -1
  142. package/web/dist/assets/{activity-route-BOozKrPn.js → activity-route-B7vQBQJ9.js} +1 -1
  143. package/web/dist/assets/agent-config-section-BwZA2KUT.js +7 -0
  144. package/web/dist/assets/{agent-defaults-section-B-uXUUCT.js → agent-defaults-section-BV6e1x_k.js} +1 -1
  145. package/web/dist/assets/{appearance-Cv8Qr8nS.js → appearance-DfQqAytS.js} +1 -1
  146. package/web/dist/assets/{archive-on-merge-field-DExgXlBg.js → archive-on-merge-field-ux_-X6cJ.js} +1 -1
  147. package/web/dist/assets/automations-route-BW1xqdPJ.js +2 -0
  148. package/web/dist/assets/{commit-list-a1vNhwzg.js → commit-list-B1QvE2mb.js} +1 -1
  149. package/web/dist/assets/{diff-DDjPsaQ6.js → diff-CVDYtR5f.js} +2 -2
  150. package/web/dist/assets/{diff-controls-QeCV3Sy1.js → diff-controls-DbAm3vyj.js} +1 -1
  151. package/web/dist/assets/{diff-view-Bv9YauBT.js → diff-view-Bxr3btKH.js} +1 -1
  152. package/web/dist/assets/discard-changes-dialog-fxi67ueM.js +1 -0
  153. package/web/dist/assets/{file-preview-CuwkUuqd.js → file-preview-INgFZHXM.js} +1 -1
  154. package/web/dist/assets/{git-toolbar-BWSmSiqy.js → git-toolbar-DNHCL6Li.js} +1 -1
  155. package/web/dist/assets/{github-CS_bLWjw.js → github-DK8q8brO.js} +1 -1
  156. package/web/dist/assets/{global-activity-route-D7HmA4W3.js → global-activity-route-B2mVzJEQ.js} +1 -1
  157. package/web/dist/assets/{index-D0mx-XUg.css → index-CflkzdUL.css} +1 -1
  158. package/web/dist/assets/index-Cmj0hLCQ.js +21 -0
  159. package/web/dist/assets/{markdown-Djjm7pRl.js → markdown-DkzcTJZ1.js} +1 -1
  160. package/web/dist/assets/{notifications-section-Dcclastm.js → notifications-section-Bac0sdHD.js} +1 -1
  161. package/web/dist/assets/{option-select-DzjSpnye.js → option-select-C9D7zD0s.js} +1 -1
  162. package/web/dist/assets/{preview-pane-connected-DOnixsSz.js → preview-pane-connected-C7yWN61O.js} +3 -3
  163. package/web/dist/assets/{projects-section-CJAE2fqb.js → projects-section-i7nQVg42.js} +1 -1
  164. package/web/dist/assets/{prompt-templates-section-BqmYEq-d.js → prompt-templates-section-Caje-66x.js} +1 -1
  165. package/web/dist/assets/{remote-settings-notice-ChJJ2HzF.js → remote-settings-notice-CCAvpXI2.js} +1 -1
  166. package/web/dist/assets/repo-git-Bj603ZUl.js +1 -0
  167. package/web/dist/assets/{report-reader-DMLkJxpC.js → report-reader-B4vS0JHP.js} +1 -1
  168. package/web/dist/assets/reports-BdpQw6YT.js +1 -0
  169. package/web/dist/assets/{resources-section-NWZHHXtk.js → resources-section-DUZUN6C_.js} +1 -1
  170. package/web/dist/assets/review-panel-DpUBM9JE.js +11 -0
  171. package/web/dist/assets/{run-header-DpTjMIK-.js → run-header-yU2n8t1w.js} +2 -2
  172. package/web/dist/assets/{select-CvnOk0OI.js → select-CRYap6qE.js} +1 -1
  173. package/web/dist/assets/{session-context-section-B3bs0GoD.js → session-context-section-CYwshrXd.js} +2 -2
  174. package/web/dist/assets/{settings-agent-picker-DlX1-8_P.js → settings-agent-picker-DrZ3Y_T4.js} +1 -1
  175. package/web/dist/assets/{settings-shell-twGuaJwv.js → settings-shell-CDMj5KA9.js} +1 -1
  176. package/web/dist/assets/{sidebar-section-Crbl2_-9.js → sidebar-section-Dt5jgm8T.js} +1 -1
  177. package/web/dist/assets/{skills-CXdbXepC.js → skills-Beb8A11l.js} +1 -1
  178. package/web/dist/assets/{task-changes-C8m5S54H.js → task-changes-CkQP1FOg.js} +1 -1
  179. package/web/dist/assets/{task-commits-CwNBsoyL.js → task-commits-Ctwi85ad.js} +1 -1
  180. package/web/dist/assets/{task-file-scope-C313CMq7.js → task-file-scope-Nl1DkfPy.js} +1 -1
  181. package/web/dist/assets/{task-files-CdpANvF1.js → task-files-ClNa5Me9.js} +1 -1
  182. package/web/dist/assets/{task-github-item-f4J2WBEt.js → task-github-item-C-YZ1Y6E.js} +1 -1
  183. package/web/dist/assets/task-thread-BN1MvuuJ.js +2 -0
  184. package/web/dist/assets/thread-state--bqdO3Qp.js +4 -0
  185. package/web/dist/assets/{use-hand-to-agent-state-C3NlsVVQ.js → use-hand-to-agent-state-BE2hugZT.js} +1 -1
  186. package/web/dist/assets/workflows-BD1UEj-z.js +7 -0
  187. package/web/dist/assets/{workspace-tools-C_93GWNV.js → workspace-tools-CTUdraaY.js} +1 -1
  188. package/web/dist/assets/{worktrees-section-w9Q1xpeU.js → worktrees-section-HcsME2YD.js} +1 -1
  189. package/web/dist/index.html +2 -2
  190. package/dist/server/forge/draft-pr.js.map +0 -1
  191. package/dist/server/forge/github-cli.js.map +0 -1
  192. package/dist/server/forge/github-repo-handle.js.map +0 -1
  193. package/dist/server/forge/github-request-gate.js.map +0 -1
  194. package/dist/server/forge/repo-handle-discovery.js.map +0 -1
  195. package/web/dist/assets/agent-config-section-Bg0OgLPn.js +0 -7
  196. package/web/dist/assets/automations-route-DqS_DIp2.js +0 -2
  197. package/web/dist/assets/index-B0_haEFL.js +0 -21
  198. package/web/dist/assets/repo-git-DzX-ZqFC.js +0 -1
  199. package/web/dist/assets/reports-DyilNFvz.js +0 -1
  200. package/web/dist/assets/review-panel-BsKM2hDc.js +0 -11
  201. package/web/dist/assets/task-thread-BqoX3viB.js +0 -2
  202. package/web/dist/assets/thread-state-Bh4adRbN.js +0 -4
  203. package/web/dist/assets/workflows-Df7ulEcU.js +0 -7
  204. /package/dist/{server/forge → core}/repo-handle-discovery.d.ts +0 -0
  205. /package/dist/{server/forge → core}/repo-handle-discovery.js +0 -0
  206. /package/dist/server/{forge/github-cli.d.ts → github-cli.d.ts} +0 -0
  207. /package/dist/server/{forge/github-cli.js → github-cli.js} +0 -0
@@ -5,14 +5,15 @@ import { type WorkerCleanupFactory } from '../delegation/service.ts';
5
5
  import type { Home } from '../home/home.ts';
6
6
  import type { PreviewHost } from '../preview/host.ts';
7
7
  import type { TaskWebhooks } from '../runs/webhook.ts';
8
- import { type ForgeFactory } from './forge/index.ts';
8
+ import { type ProjectForgeResolver } from './project-forge.ts';
9
9
  import type { ProjectContext } from './project-context.ts';
10
10
  import type { ProjectApiEnv, ProviderStatusBundle, ResolvedServerDeps, ResolveWorkspaceProfileFn, ServerCapabilitiesFn } from './server-types.ts';
11
11
  import type { WorkspaceProjects } from './workspace-projects.ts';
12
12
  export declare function withLiveUsage(summary: RunSummary): RunSummary;
13
13
  export interface RunsRouteDeps {
14
14
  home: Home;
15
- forgeFactory?: ForgeFactory | undefined;
15
+ /** A project's forge; defaults to the forge registry. */
16
+ projectForge?: ProjectForgeResolver | undefined;
16
17
  delegation?: DelegationController | undefined;
17
18
  workerCleanup?: WorkerCleanupFactory | undefined;
18
19
  previewHost?: PreviewHost | undefined;
@@ -93,6 +94,8 @@ export declare function createRunsRoutes(deps: RunsRouteDeps): import("hono/hono
93
94
  } | undefined;
94
95
  invalidAsk?: boolean | undefined;
95
96
  delegation?: {
97
+ role: "invalid";
98
+ } | {
96
99
  role: "root";
97
100
  conversation?: {
98
101
  messages: {
@@ -327,8 +330,6 @@ export declare function createRunsRoutes(deps: RunsRouteDeps): import("hono/hono
327
330
  } | undefined;
328
331
  executionRevision?: number | undefined;
329
332
  executionStartSeq?: number | undefined;
330
- } | {
331
- role: "invalid";
332
333
  } | undefined;
333
334
  agentInputs?: {
334
335
  conversation?: {
@@ -422,30 +423,6 @@ export declare function createRunsRoutes(deps: RunsRouteDeps): import("hono/hono
422
423
  deadline: string;
423
424
  seconds: number;
424
425
  note?: string | undefined;
425
- } | {
426
- id: string;
427
- source: "agent" | "cezar";
428
- 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";
429
- registeredAt: string;
430
- phase: "cancelled" | "delivered" | "open" | "resolved";
431
- resolvedAt?: string | undefined;
432
- deliveredAt?: string | undefined;
433
- cancelledAt?: string | undefined;
434
- turnId: string;
435
- kind: "process";
436
- deadline: string;
437
- timeoutSeconds: number;
438
- pid: number;
439
- startToken?: string | undefined;
440
- exitFile?: string | undefined;
441
- note?: string | undefined;
442
- result?: {
443
- outcome: "deadline" | "error" | "exit_file" | "exited";
444
- observedAt: string;
445
- exitCode?: number | undefined;
446
- exitFileNote?: "not-an-exit-code" | undefined;
447
- diagnostic?: string | undefined;
448
- } | undefined;
449
426
  } | {
450
427
  id: string;
451
428
  source: "agent" | "cezar";
@@ -507,6 +484,30 @@ export declare function createRunsRoutes(deps: RunsRouteDeps): import("hono/hono
507
484
  reason: "outcome" | "timeout";
508
485
  } | undefined;
509
486
  wakeInputId?: string | undefined;
487
+ } | {
488
+ id: string;
489
+ source: "agent" | "cezar";
490
+ 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";
491
+ registeredAt: string;
492
+ phase: "cancelled" | "delivered" | "open" | "resolved";
493
+ resolvedAt?: string | undefined;
494
+ deliveredAt?: string | undefined;
495
+ cancelledAt?: string | undefined;
496
+ turnId: string;
497
+ kind: "process";
498
+ deadline: string;
499
+ timeoutSeconds: number;
500
+ pid: number;
501
+ startToken?: string | undefined;
502
+ exitFile?: string | undefined;
503
+ note?: string | undefined;
504
+ result?: {
505
+ outcome: "deadline" | "error" | "exit_file" | "exited";
506
+ observedAt: string;
507
+ exitCode?: number | undefined;
508
+ exitFileNote?: "not-an-exit-code" | undefined;
509
+ diagnostic?: string | undefined;
510
+ } | undefined;
510
511
  } | {
511
512
  id: string;
512
513
  source: "agent" | "cezar";
@@ -639,30 +640,6 @@ export declare function createRunsRoutes(deps: RunsRouteDeps): import("hono/hono
639
640
  deadline: string;
640
641
  seconds: number;
641
642
  note?: string | undefined;
642
- } | {
643
- id: string;
644
- source: "agent" | "cezar";
645
- 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";
646
- registeredAt: string;
647
- phase: "cancelled" | "delivered" | "open" | "resolved";
648
- resolvedAt?: string | undefined;
649
- deliveredAt?: string | undefined;
650
- cancelledAt?: string | undefined;
651
- turnId: string;
652
- kind: "process";
653
- deadline: string;
654
- timeoutSeconds: number;
655
- pid: number;
656
- startToken?: string | undefined;
657
- exitFile?: string | undefined;
658
- note?: string | undefined;
659
- result?: {
660
- outcome: "deadline" | "error" | "exit_file" | "exited";
661
- observedAt: string;
662
- exitCode?: number | undefined;
663
- exitFileNote?: "not-an-exit-code" | undefined;
664
- diagnostic?: string | undefined;
665
- } | undefined;
666
643
  } | {
667
644
  id: string;
668
645
  source: "agent" | "cezar";
@@ -724,6 +701,30 @@ export declare function createRunsRoutes(deps: RunsRouteDeps): import("hono/hono
724
701
  reason: "outcome" | "timeout";
725
702
  } | undefined;
726
703
  wakeInputId?: string | undefined;
704
+ } | {
705
+ id: string;
706
+ source: "agent" | "cezar";
707
+ 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";
708
+ registeredAt: string;
709
+ phase: "cancelled" | "delivered" | "open" | "resolved";
710
+ resolvedAt?: string | undefined;
711
+ deliveredAt?: string | undefined;
712
+ cancelledAt?: string | undefined;
713
+ turnId: string;
714
+ kind: "process";
715
+ deadline: string;
716
+ timeoutSeconds: number;
717
+ pid: number;
718
+ startToken?: string | undefined;
719
+ exitFile?: string | undefined;
720
+ note?: string | undefined;
721
+ result?: {
722
+ outcome: "deadline" | "error" | "exit_file" | "exited";
723
+ observedAt: string;
724
+ exitCode?: number | undefined;
725
+ exitFileNote?: "not-an-exit-code" | undefined;
726
+ diagnostic?: string | undefined;
727
+ } | undefined;
727
728
  } | {
728
729
  id: string;
729
730
  source: "agent" | "cezar";
@@ -855,30 +856,6 @@ export declare function createRunsRoutes(deps: RunsRouteDeps): import("hono/hono
855
856
  deadline: string;
856
857
  seconds: number;
857
858
  note?: string | undefined;
858
- } | {
859
- id: string;
860
- source: "agent" | "cezar";
861
- 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";
862
- registeredAt: string;
863
- phase: "cancelled" | "delivered" | "open" | "resolved";
864
- resolvedAt?: string | undefined;
865
- deliveredAt?: string | undefined;
866
- cancelledAt?: string | undefined;
867
- turnId: string;
868
- kind: "process";
869
- deadline: string;
870
- timeoutSeconds: number;
871
- pid: number;
872
- startToken?: string | undefined;
873
- exitFile?: string | undefined;
874
- note?: string | undefined;
875
- result?: {
876
- outcome: "deadline" | "error" | "exit_file" | "exited";
877
- observedAt: string;
878
- exitCode?: number | undefined;
879
- exitFileNote?: "not-an-exit-code" | undefined;
880
- diagnostic?: string | undefined;
881
- } | undefined;
882
859
  } | {
883
860
  id: string;
884
861
  source: "agent" | "cezar";
@@ -940,6 +917,30 @@ export declare function createRunsRoutes(deps: RunsRouteDeps): import("hono/hono
940
917
  reason: "outcome" | "timeout";
941
918
  } | undefined;
942
919
  wakeInputId?: string | undefined;
920
+ } | {
921
+ id: string;
922
+ source: "agent" | "cezar";
923
+ 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";
924
+ registeredAt: string;
925
+ phase: "cancelled" | "delivered" | "open" | "resolved";
926
+ resolvedAt?: string | undefined;
927
+ deliveredAt?: string | undefined;
928
+ cancelledAt?: string | undefined;
929
+ turnId: string;
930
+ kind: "process";
931
+ deadline: string;
932
+ timeoutSeconds: number;
933
+ pid: number;
934
+ startToken?: string | undefined;
935
+ exitFile?: string | undefined;
936
+ note?: string | undefined;
937
+ result?: {
938
+ outcome: "deadline" | "error" | "exit_file" | "exited";
939
+ observedAt: string;
940
+ exitCode?: number | undefined;
941
+ exitFileNote?: "not-an-exit-code" | undefined;
942
+ diagnostic?: string | undefined;
943
+ } | undefined;
943
944
  } | {
944
945
  id: string;
945
946
  source: "agent" | "cezar";
@@ -1940,6 +1941,8 @@ export declare function createRunsRoutes(deps: RunsRouteDeps): import("hono/hono
1940
1941
  } | undefined;
1941
1942
  invalidAsk?: boolean | undefined;
1942
1943
  delegation?: {
1944
+ role: "invalid";
1945
+ } | {
1943
1946
  role: "root";
1944
1947
  conversation?: {
1945
1948
  messages: {
@@ -2174,8 +2177,6 @@ export declare function createRunsRoutes(deps: RunsRouteDeps): import("hono/hono
2174
2177
  } | undefined;
2175
2178
  executionRevision?: number | undefined;
2176
2179
  executionStartSeq?: number | undefined;
2177
- } | {
2178
- role: "invalid";
2179
2180
  } | undefined;
2180
2181
  agentInputs?: {
2181
2182
  conversation?: {
@@ -2269,30 +2270,6 @@ export declare function createRunsRoutes(deps: RunsRouteDeps): import("hono/hono
2269
2270
  deadline: string;
2270
2271
  seconds: number;
2271
2272
  note?: string | undefined;
2272
- } | {
2273
- id: string;
2274
- source: "agent" | "cezar";
2275
- 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";
2276
- registeredAt: string;
2277
- phase: "cancelled" | "delivered" | "open" | "resolved";
2278
- resolvedAt?: string | undefined;
2279
- deliveredAt?: string | undefined;
2280
- cancelledAt?: string | undefined;
2281
- turnId: string;
2282
- kind: "process";
2283
- deadline: string;
2284
- timeoutSeconds: number;
2285
- pid: number;
2286
- startToken?: string | undefined;
2287
- exitFile?: string | undefined;
2288
- note?: string | undefined;
2289
- result?: {
2290
- outcome: "deadline" | "error" | "exit_file" | "exited";
2291
- observedAt: string;
2292
- exitCode?: number | undefined;
2293
- exitFileNote?: "not-an-exit-code" | undefined;
2294
- diagnostic?: string | undefined;
2295
- } | undefined;
2296
2273
  } | {
2297
2274
  id: string;
2298
2275
  source: "agent" | "cezar";
@@ -2354,6 +2331,30 @@ export declare function createRunsRoutes(deps: RunsRouteDeps): import("hono/hono
2354
2331
  reason: "outcome" | "timeout";
2355
2332
  } | undefined;
2356
2333
  wakeInputId?: string | undefined;
2334
+ } | {
2335
+ id: string;
2336
+ source: "agent" | "cezar";
2337
+ 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";
2338
+ registeredAt: string;
2339
+ phase: "cancelled" | "delivered" | "open" | "resolved";
2340
+ resolvedAt?: string | undefined;
2341
+ deliveredAt?: string | undefined;
2342
+ cancelledAt?: string | undefined;
2343
+ turnId: string;
2344
+ kind: "process";
2345
+ deadline: string;
2346
+ timeoutSeconds: number;
2347
+ pid: number;
2348
+ startToken?: string | undefined;
2349
+ exitFile?: string | undefined;
2350
+ note?: string | undefined;
2351
+ result?: {
2352
+ outcome: "deadline" | "error" | "exit_file" | "exited";
2353
+ observedAt: string;
2354
+ exitCode?: number | undefined;
2355
+ exitFileNote?: "not-an-exit-code" | undefined;
2356
+ diagnostic?: string | undefined;
2357
+ } | undefined;
2357
2358
  } | {
2358
2359
  id: string;
2359
2360
  source: "agent" | "cezar";
@@ -2486,30 +2487,6 @@ export declare function createRunsRoutes(deps: RunsRouteDeps): import("hono/hono
2486
2487
  deadline: string;
2487
2488
  seconds: number;
2488
2489
  note?: string | undefined;
2489
- } | {
2490
- id: string;
2491
- source: "agent" | "cezar";
2492
- 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";
2493
- registeredAt: string;
2494
- phase: "cancelled" | "delivered" | "open" | "resolved";
2495
- resolvedAt?: string | undefined;
2496
- deliveredAt?: string | undefined;
2497
- cancelledAt?: string | undefined;
2498
- turnId: string;
2499
- kind: "process";
2500
- deadline: string;
2501
- timeoutSeconds: number;
2502
- pid: number;
2503
- startToken?: string | undefined;
2504
- exitFile?: string | undefined;
2505
- note?: string | undefined;
2506
- result?: {
2507
- outcome: "deadline" | "error" | "exit_file" | "exited";
2508
- observedAt: string;
2509
- exitCode?: number | undefined;
2510
- exitFileNote?: "not-an-exit-code" | undefined;
2511
- diagnostic?: string | undefined;
2512
- } | undefined;
2513
2490
  } | {
2514
2491
  id: string;
2515
2492
  source: "agent" | "cezar";
@@ -2571,6 +2548,30 @@ export declare function createRunsRoutes(deps: RunsRouteDeps): import("hono/hono
2571
2548
  reason: "outcome" | "timeout";
2572
2549
  } | undefined;
2573
2550
  wakeInputId?: string | undefined;
2551
+ } | {
2552
+ id: string;
2553
+ source: "agent" | "cezar";
2554
+ 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";
2555
+ registeredAt: string;
2556
+ phase: "cancelled" | "delivered" | "open" | "resolved";
2557
+ resolvedAt?: string | undefined;
2558
+ deliveredAt?: string | undefined;
2559
+ cancelledAt?: string | undefined;
2560
+ turnId: string;
2561
+ kind: "process";
2562
+ deadline: string;
2563
+ timeoutSeconds: number;
2564
+ pid: number;
2565
+ startToken?: string | undefined;
2566
+ exitFile?: string | undefined;
2567
+ note?: string | undefined;
2568
+ result?: {
2569
+ outcome: "deadline" | "error" | "exit_file" | "exited";
2570
+ observedAt: string;
2571
+ exitCode?: number | undefined;
2572
+ exitFileNote?: "not-an-exit-code" | undefined;
2573
+ diagnostic?: string | undefined;
2574
+ } | undefined;
2574
2575
  } | {
2575
2576
  id: string;
2576
2577
  source: "agent" | "cezar";
@@ -2702,30 +2703,6 @@ export declare function createRunsRoutes(deps: RunsRouteDeps): import("hono/hono
2702
2703
  deadline: string;
2703
2704
  seconds: number;
2704
2705
  note?: string | undefined;
2705
- } | {
2706
- id: string;
2707
- source: "agent" | "cezar";
2708
- 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";
2709
- registeredAt: string;
2710
- phase: "cancelled" | "delivered" | "open" | "resolved";
2711
- resolvedAt?: string | undefined;
2712
- deliveredAt?: string | undefined;
2713
- cancelledAt?: string | undefined;
2714
- turnId: string;
2715
- kind: "process";
2716
- deadline: string;
2717
- timeoutSeconds: number;
2718
- pid: number;
2719
- startToken?: string | undefined;
2720
- exitFile?: string | undefined;
2721
- note?: string | undefined;
2722
- result?: {
2723
- outcome: "deadline" | "error" | "exit_file" | "exited";
2724
- observedAt: string;
2725
- exitCode?: number | undefined;
2726
- exitFileNote?: "not-an-exit-code" | undefined;
2727
- diagnostic?: string | undefined;
2728
- } | undefined;
2729
2706
  } | {
2730
2707
  id: string;
2731
2708
  source: "agent" | "cezar";
@@ -2787,6 +2764,30 @@ export declare function createRunsRoutes(deps: RunsRouteDeps): import("hono/hono
2787
2764
  reason: "outcome" | "timeout";
2788
2765
  } | undefined;
2789
2766
  wakeInputId?: string | undefined;
2767
+ } | {
2768
+ id: string;
2769
+ source: "agent" | "cezar";
2770
+ 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";
2771
+ registeredAt: string;
2772
+ phase: "cancelled" | "delivered" | "open" | "resolved";
2773
+ resolvedAt?: string | undefined;
2774
+ deliveredAt?: string | undefined;
2775
+ cancelledAt?: string | undefined;
2776
+ turnId: string;
2777
+ kind: "process";
2778
+ deadline: string;
2779
+ timeoutSeconds: number;
2780
+ pid: number;
2781
+ startToken?: string | undefined;
2782
+ exitFile?: string | undefined;
2783
+ note?: string | undefined;
2784
+ result?: {
2785
+ outcome: "deadline" | "error" | "exit_file" | "exited";
2786
+ observedAt: string;
2787
+ exitCode?: number | undefined;
2788
+ exitFileNote?: "not-an-exit-code" | undefined;
2789
+ diagnostic?: string | undefined;
2790
+ } | undefined;
2790
2791
  } | {
2791
2792
  id: string;
2792
2793
  source: "agent" | "cezar";
@@ -3155,6 +3156,8 @@ export declare function createRunsRoutes(deps: RunsRouteDeps): import("hono/hono
3155
3156
  } | undefined;
3156
3157
  invalidAsk?: boolean | undefined;
3157
3158
  delegation?: {
3159
+ role: "invalid";
3160
+ } | {
3158
3161
  role: "root";
3159
3162
  conversation?: {
3160
3163
  messages: {
@@ -3389,8 +3392,6 @@ export declare function createRunsRoutes(deps: RunsRouteDeps): import("hono/hono
3389
3392
  } | undefined;
3390
3393
  executionRevision?: number | undefined;
3391
3394
  executionStartSeq?: number | undefined;
3392
- } | {
3393
- role: "invalid";
3394
3395
  } | undefined;
3395
3396
  agentInputs?: {
3396
3397
  conversation?: {
@@ -3484,30 +3485,6 @@ export declare function createRunsRoutes(deps: RunsRouteDeps): import("hono/hono
3484
3485
  deadline: string;
3485
3486
  seconds: number;
3486
3487
  note?: string | undefined;
3487
- } | {
3488
- id: string;
3489
- source: "agent" | "cezar";
3490
- 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";
3491
- registeredAt: string;
3492
- phase: "cancelled" | "delivered" | "open" | "resolved";
3493
- resolvedAt?: string | undefined;
3494
- deliveredAt?: string | undefined;
3495
- cancelledAt?: string | undefined;
3496
- turnId: string;
3497
- kind: "process";
3498
- deadline: string;
3499
- timeoutSeconds: number;
3500
- pid: number;
3501
- startToken?: string | undefined;
3502
- exitFile?: string | undefined;
3503
- note?: string | undefined;
3504
- result?: {
3505
- outcome: "deadline" | "error" | "exit_file" | "exited";
3506
- observedAt: string;
3507
- exitCode?: number | undefined;
3508
- exitFileNote?: "not-an-exit-code" | undefined;
3509
- diagnostic?: string | undefined;
3510
- } | undefined;
3511
3488
  } | {
3512
3489
  id: string;
3513
3490
  source: "agent" | "cezar";
@@ -3569,6 +3546,30 @@ export declare function createRunsRoutes(deps: RunsRouteDeps): import("hono/hono
3569
3546
  reason: "outcome" | "timeout";
3570
3547
  } | undefined;
3571
3548
  wakeInputId?: string | undefined;
3549
+ } | {
3550
+ id: string;
3551
+ source: "agent" | "cezar";
3552
+ 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";
3553
+ registeredAt: string;
3554
+ phase: "cancelled" | "delivered" | "open" | "resolved";
3555
+ resolvedAt?: string | undefined;
3556
+ deliveredAt?: string | undefined;
3557
+ cancelledAt?: string | undefined;
3558
+ turnId: string;
3559
+ kind: "process";
3560
+ deadline: string;
3561
+ timeoutSeconds: number;
3562
+ pid: number;
3563
+ startToken?: string | undefined;
3564
+ exitFile?: string | undefined;
3565
+ note?: string | undefined;
3566
+ result?: {
3567
+ outcome: "deadline" | "error" | "exit_file" | "exited";
3568
+ observedAt: string;
3569
+ exitCode?: number | undefined;
3570
+ exitFileNote?: "not-an-exit-code" | undefined;
3571
+ diagnostic?: string | undefined;
3572
+ } | undefined;
3572
3573
  } | {
3573
3574
  id: string;
3574
3575
  source: "agent" | "cezar";
@@ -3701,30 +3702,6 @@ export declare function createRunsRoutes(deps: RunsRouteDeps): import("hono/hono
3701
3702
  deadline: string;
3702
3703
  seconds: number;
3703
3704
  note?: string | undefined;
3704
- } | {
3705
- id: string;
3706
- source: "agent" | "cezar";
3707
- 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";
3708
- registeredAt: string;
3709
- phase: "cancelled" | "delivered" | "open" | "resolved";
3710
- resolvedAt?: string | undefined;
3711
- deliveredAt?: string | undefined;
3712
- cancelledAt?: string | undefined;
3713
- turnId: string;
3714
- kind: "process";
3715
- deadline: string;
3716
- timeoutSeconds: number;
3717
- pid: number;
3718
- startToken?: string | undefined;
3719
- exitFile?: string | undefined;
3720
- note?: string | undefined;
3721
- result?: {
3722
- outcome: "deadline" | "error" | "exit_file" | "exited";
3723
- observedAt: string;
3724
- exitCode?: number | undefined;
3725
- exitFileNote?: "not-an-exit-code" | undefined;
3726
- diagnostic?: string | undefined;
3727
- } | undefined;
3728
3705
  } | {
3729
3706
  id: string;
3730
3707
  source: "agent" | "cezar";
@@ -3786,6 +3763,30 @@ export declare function createRunsRoutes(deps: RunsRouteDeps): import("hono/hono
3786
3763
  reason: "outcome" | "timeout";
3787
3764
  } | undefined;
3788
3765
  wakeInputId?: string | undefined;
3766
+ } | {
3767
+ id: string;
3768
+ source: "agent" | "cezar";
3769
+ 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";
3770
+ registeredAt: string;
3771
+ phase: "cancelled" | "delivered" | "open" | "resolved";
3772
+ resolvedAt?: string | undefined;
3773
+ deliveredAt?: string | undefined;
3774
+ cancelledAt?: string | undefined;
3775
+ turnId: string;
3776
+ kind: "process";
3777
+ deadline: string;
3778
+ timeoutSeconds: number;
3779
+ pid: number;
3780
+ startToken?: string | undefined;
3781
+ exitFile?: string | undefined;
3782
+ note?: string | undefined;
3783
+ result?: {
3784
+ outcome: "deadline" | "error" | "exit_file" | "exited";
3785
+ observedAt: string;
3786
+ exitCode?: number | undefined;
3787
+ exitFileNote?: "not-an-exit-code" | undefined;
3788
+ diagnostic?: string | undefined;
3789
+ } | undefined;
3789
3790
  } | {
3790
3791
  id: string;
3791
3792
  source: "agent" | "cezar";
@@ -3917,30 +3918,6 @@ export declare function createRunsRoutes(deps: RunsRouteDeps): import("hono/hono
3917
3918
  deadline: string;
3918
3919
  seconds: number;
3919
3920
  note?: string | undefined;
3920
- } | {
3921
- id: string;
3922
- source: "agent" | "cezar";
3923
- 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";
3924
- registeredAt: string;
3925
- phase: "cancelled" | "delivered" | "open" | "resolved";
3926
- resolvedAt?: string | undefined;
3927
- deliveredAt?: string | undefined;
3928
- cancelledAt?: string | undefined;
3929
- turnId: string;
3930
- kind: "process";
3931
- deadline: string;
3932
- timeoutSeconds: number;
3933
- pid: number;
3934
- startToken?: string | undefined;
3935
- exitFile?: string | undefined;
3936
- note?: string | undefined;
3937
- result?: {
3938
- outcome: "deadline" | "error" | "exit_file" | "exited";
3939
- observedAt: string;
3940
- exitCode?: number | undefined;
3941
- exitFileNote?: "not-an-exit-code" | undefined;
3942
- diagnostic?: string | undefined;
3943
- } | undefined;
3944
3921
  } | {
3945
3922
  id: string;
3946
3923
  source: "agent" | "cezar";
@@ -4002,6 +3979,30 @@ export declare function createRunsRoutes(deps: RunsRouteDeps): import("hono/hono
4002
3979
  reason: "outcome" | "timeout";
4003
3980
  } | undefined;
4004
3981
  wakeInputId?: string | undefined;
3982
+ } | {
3983
+ id: string;
3984
+ source: "agent" | "cezar";
3985
+ 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";
3986
+ registeredAt: string;
3987
+ phase: "cancelled" | "delivered" | "open" | "resolved";
3988
+ resolvedAt?: string | undefined;
3989
+ deliveredAt?: string | undefined;
3990
+ cancelledAt?: string | undefined;
3991
+ turnId: string;
3992
+ kind: "process";
3993
+ deadline: string;
3994
+ timeoutSeconds: number;
3995
+ pid: number;
3996
+ startToken?: string | undefined;
3997
+ exitFile?: string | undefined;
3998
+ note?: string | undefined;
3999
+ result?: {
4000
+ outcome: "deadline" | "error" | "exit_file" | "exited";
4001
+ observedAt: string;
4002
+ exitCode?: number | undefined;
4003
+ exitFileNote?: "not-an-exit-code" | undefined;
4004
+ diagnostic?: string | undefined;
4005
+ } | undefined;
4005
4006
  } | {
4006
4007
  id: string;
4007
4008
  source: "agent" | "cezar";
@@ -4479,30 +4480,6 @@ export declare function createRunsRoutes(deps: RunsRouteDeps): import("hono/hono
4479
4480
  deadline: string;
4480
4481
  seconds: number;
4481
4482
  note?: string | undefined;
4482
- } | {
4483
- id: string;
4484
- source: "agent" | "cezar";
4485
- 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";
4486
- registeredAt: string;
4487
- phase: "cancelled" | "delivered" | "open" | "resolved";
4488
- resolvedAt?: string | undefined;
4489
- deliveredAt?: string | undefined;
4490
- cancelledAt?: string | undefined;
4491
- turnId: string;
4492
- kind: "process";
4493
- deadline: string;
4494
- timeoutSeconds: number;
4495
- pid: number;
4496
- startToken?: string | undefined;
4497
- exitFile?: string | undefined;
4498
- note?: string | undefined;
4499
- result?: {
4500
- outcome: "deadline" | "error" | "exit_file" | "exited";
4501
- observedAt: string;
4502
- exitCode?: number | undefined;
4503
- exitFileNote?: "not-an-exit-code" | undefined;
4504
- diagnostic?: string | undefined;
4505
- } | undefined;
4506
4483
  } | {
4507
4484
  id: string;
4508
4485
  source: "agent" | "cezar";
@@ -4564,6 +4541,30 @@ export declare function createRunsRoutes(deps: RunsRouteDeps): import("hono/hono
4564
4541
  reason: "outcome" | "timeout";
4565
4542
  } | undefined;
4566
4543
  wakeInputId?: string | undefined;
4544
+ } | {
4545
+ id: string;
4546
+ source: "agent" | "cezar";
4547
+ 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";
4548
+ registeredAt: string;
4549
+ phase: "cancelled" | "delivered" | "open" | "resolved";
4550
+ resolvedAt?: string | undefined;
4551
+ deliveredAt?: string | undefined;
4552
+ cancelledAt?: string | undefined;
4553
+ turnId: string;
4554
+ kind: "process";
4555
+ deadline: string;
4556
+ timeoutSeconds: number;
4557
+ pid: number;
4558
+ startToken?: string | undefined;
4559
+ exitFile?: string | undefined;
4560
+ note?: string | undefined;
4561
+ result?: {
4562
+ outcome: "deadline" | "error" | "exit_file" | "exited";
4563
+ observedAt: string;
4564
+ exitCode?: number | undefined;
4565
+ exitFileNote?: "not-an-exit-code" | undefined;
4566
+ diagnostic?: string | undefined;
4567
+ } | undefined;
4567
4568
  } | {
4568
4569
  id: string;
4569
4570
  source: "agent" | "cezar";
@@ -4696,30 +4697,6 @@ export declare function createRunsRoutes(deps: RunsRouteDeps): import("hono/hono
4696
4697
  deadline: string;
4697
4698
  seconds: number;
4698
4699
  note?: string | undefined;
4699
- } | {
4700
- id: string;
4701
- source: "agent" | "cezar";
4702
- 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";
4703
- registeredAt: string;
4704
- phase: "cancelled" | "delivered" | "open" | "resolved";
4705
- resolvedAt?: string | undefined;
4706
- deliveredAt?: string | undefined;
4707
- cancelledAt?: string | undefined;
4708
- turnId: string;
4709
- kind: "process";
4710
- deadline: string;
4711
- timeoutSeconds: number;
4712
- pid: number;
4713
- startToken?: string | undefined;
4714
- exitFile?: string | undefined;
4715
- note?: string | undefined;
4716
- result?: {
4717
- outcome: "deadline" | "error" | "exit_file" | "exited";
4718
- observedAt: string;
4719
- exitCode?: number | undefined;
4720
- exitFileNote?: "not-an-exit-code" | undefined;
4721
- diagnostic?: string | undefined;
4722
- } | undefined;
4723
4700
  } | {
4724
4701
  id: string;
4725
4702
  source: "agent" | "cezar";
@@ -4781,6 +4758,30 @@ export declare function createRunsRoutes(deps: RunsRouteDeps): import("hono/hono
4781
4758
  reason: "outcome" | "timeout";
4782
4759
  } | undefined;
4783
4760
  wakeInputId?: string | undefined;
4761
+ } | {
4762
+ id: string;
4763
+ source: "agent" | "cezar";
4764
+ 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";
4765
+ registeredAt: string;
4766
+ phase: "cancelled" | "delivered" | "open" | "resolved";
4767
+ resolvedAt?: string | undefined;
4768
+ deliveredAt?: string | undefined;
4769
+ cancelledAt?: string | undefined;
4770
+ turnId: string;
4771
+ kind: "process";
4772
+ deadline: string;
4773
+ timeoutSeconds: number;
4774
+ pid: number;
4775
+ startToken?: string | undefined;
4776
+ exitFile?: string | undefined;
4777
+ note?: string | undefined;
4778
+ result?: {
4779
+ outcome: "deadline" | "error" | "exit_file" | "exited";
4780
+ observedAt: string;
4781
+ exitCode?: number | undefined;
4782
+ exitFileNote?: "not-an-exit-code" | undefined;
4783
+ diagnostic?: string | undefined;
4784
+ } | undefined;
4784
4785
  } | {
4785
4786
  id: string;
4786
4787
  source: "agent" | "cezar";
@@ -4912,30 +4913,6 @@ export declare function createRunsRoutes(deps: RunsRouteDeps): import("hono/hono
4912
4913
  deadline: string;
4913
4914
  seconds: number;
4914
4915
  note?: string | undefined;
4915
- } | {
4916
- id: string;
4917
- source: "agent" | "cezar";
4918
- 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";
4919
- registeredAt: string;
4920
- phase: "cancelled" | "delivered" | "open" | "resolved";
4921
- resolvedAt?: string | undefined;
4922
- deliveredAt?: string | undefined;
4923
- cancelledAt?: string | undefined;
4924
- turnId: string;
4925
- kind: "process";
4926
- deadline: string;
4927
- timeoutSeconds: number;
4928
- pid: number;
4929
- startToken?: string | undefined;
4930
- exitFile?: string | undefined;
4931
- note?: string | undefined;
4932
- result?: {
4933
- outcome: "deadline" | "error" | "exit_file" | "exited";
4934
- observedAt: string;
4935
- exitCode?: number | undefined;
4936
- exitFileNote?: "not-an-exit-code" | undefined;
4937
- diagnostic?: string | undefined;
4938
- } | undefined;
4939
4916
  } | {
4940
4917
  id: string;
4941
4918
  source: "agent" | "cezar";
@@ -4994,9 +4971,33 @@ export declare function createRunsRoutes(deps: RunsRouteDeps): import("hono/hono
4994
4971
  replyId?: string | undefined;
4995
4972
  }[] | undefined;
4996
4973
  result?: {
4997
- reason: "outcome" | "timeout";
4974
+ reason: "outcome" | "timeout";
4975
+ } | undefined;
4976
+ wakeInputId?: string | undefined;
4977
+ } | {
4978
+ id: string;
4979
+ source: "agent" | "cezar";
4980
+ 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";
4981
+ registeredAt: string;
4982
+ phase: "cancelled" | "delivered" | "open" | "resolved";
4983
+ resolvedAt?: string | undefined;
4984
+ deliveredAt?: string | undefined;
4985
+ cancelledAt?: string | undefined;
4986
+ turnId: string;
4987
+ kind: "process";
4988
+ deadline: string;
4989
+ timeoutSeconds: number;
4990
+ pid: number;
4991
+ startToken?: string | undefined;
4992
+ exitFile?: string | undefined;
4993
+ note?: string | undefined;
4994
+ result?: {
4995
+ outcome: "deadline" | "error" | "exit_file" | "exited";
4996
+ observedAt: string;
4997
+ exitCode?: number | undefined;
4998
+ exitFileNote?: "not-an-exit-code" | undefined;
4999
+ diagnostic?: string | undefined;
4998
5000
  } | undefined;
4999
- wakeInputId?: string | undefined;
5000
5001
  } | {
5001
5002
  id: string;
5002
5003
  source: "agent" | "cezar";
@@ -5141,6 +5142,8 @@ export declare function createRunsRoutes(deps: RunsRouteDeps): import("hono/hono
5141
5142
  currentStepId?: string | undefined;
5142
5143
  error?: string | undefined;
5143
5144
  delegation?: {
5145
+ role: "invalid";
5146
+ } | {
5144
5147
  role: "root";
5145
5148
  conversation?: {
5146
5149
  messages: {
@@ -5375,8 +5378,6 @@ export declare function createRunsRoutes(deps: RunsRouteDeps): import("hono/hono
5375
5378
  } | undefined;
5376
5379
  executionRevision?: number | undefined;
5377
5380
  executionStartSeq?: number | undefined;
5378
- } | {
5379
- role: "invalid";
5380
5381
  } | undefined;
5381
5382
  lastWaitsError?: string | undefined;
5382
5383
  automaticWakes?: number | undefined;
@@ -5614,6 +5615,8 @@ export declare function createRunsRoutes(deps: RunsRouteDeps): import("hono/hono
5614
5615
  } | undefined;
5615
5616
  invalidAsk?: boolean | undefined;
5616
5617
  delegation?: {
5618
+ role: "invalid";
5619
+ } | {
5617
5620
  role: "root";
5618
5621
  conversation?: {
5619
5622
  messages: {
@@ -5848,8 +5851,6 @@ export declare function createRunsRoutes(deps: RunsRouteDeps): import("hono/hono
5848
5851
  } | undefined;
5849
5852
  executionRevision?: number | undefined;
5850
5853
  executionStartSeq?: number | undefined;
5851
- } | {
5852
- role: "invalid";
5853
5854
  } | undefined;
5854
5855
  agentInputs?: {
5855
5856
  conversation?: {
@@ -5943,30 +5944,6 @@ export declare function createRunsRoutes(deps: RunsRouteDeps): import("hono/hono
5943
5944
  deadline: string;
5944
5945
  seconds: number;
5945
5946
  note?: string | undefined;
5946
- } | {
5947
- id: string;
5948
- source: "agent" | "cezar";
5949
- 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";
5950
- registeredAt: string;
5951
- phase: "cancelled" | "delivered" | "open" | "resolved";
5952
- resolvedAt?: string | undefined;
5953
- deliveredAt?: string | undefined;
5954
- cancelledAt?: string | undefined;
5955
- turnId: string;
5956
- kind: "process";
5957
- deadline: string;
5958
- timeoutSeconds: number;
5959
- pid: number;
5960
- startToken?: string | undefined;
5961
- exitFile?: string | undefined;
5962
- note?: string | undefined;
5963
- result?: {
5964
- outcome: "deadline" | "error" | "exit_file" | "exited";
5965
- observedAt: string;
5966
- exitCode?: number | undefined;
5967
- exitFileNote?: "not-an-exit-code" | undefined;
5968
- diagnostic?: string | undefined;
5969
- } | undefined;
5970
5947
  } | {
5971
5948
  id: string;
5972
5949
  source: "agent" | "cezar";
@@ -6028,6 +6005,30 @@ export declare function createRunsRoutes(deps: RunsRouteDeps): import("hono/hono
6028
6005
  reason: "outcome" | "timeout";
6029
6006
  } | undefined;
6030
6007
  wakeInputId?: string | undefined;
6008
+ } | {
6009
+ id: string;
6010
+ source: "agent" | "cezar";
6011
+ 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";
6012
+ registeredAt: string;
6013
+ phase: "cancelled" | "delivered" | "open" | "resolved";
6014
+ resolvedAt?: string | undefined;
6015
+ deliveredAt?: string | undefined;
6016
+ cancelledAt?: string | undefined;
6017
+ turnId: string;
6018
+ kind: "process";
6019
+ deadline: string;
6020
+ timeoutSeconds: number;
6021
+ pid: number;
6022
+ startToken?: string | undefined;
6023
+ exitFile?: string | undefined;
6024
+ note?: string | undefined;
6025
+ result?: {
6026
+ outcome: "deadline" | "error" | "exit_file" | "exited";
6027
+ observedAt: string;
6028
+ exitCode?: number | undefined;
6029
+ exitFileNote?: "not-an-exit-code" | undefined;
6030
+ diagnostic?: string | undefined;
6031
+ } | undefined;
6031
6032
  } | {
6032
6033
  id: string;
6033
6034
  source: "agent" | "cezar";
@@ -6160,30 +6161,6 @@ export declare function createRunsRoutes(deps: RunsRouteDeps): import("hono/hono
6160
6161
  deadline: string;
6161
6162
  seconds: number;
6162
6163
  note?: string | undefined;
6163
- } | {
6164
- id: string;
6165
- source: "agent" | "cezar";
6166
- 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";
6167
- registeredAt: string;
6168
- phase: "cancelled" | "delivered" | "open" | "resolved";
6169
- resolvedAt?: string | undefined;
6170
- deliveredAt?: string | undefined;
6171
- cancelledAt?: string | undefined;
6172
- turnId: string;
6173
- kind: "process";
6174
- deadline: string;
6175
- timeoutSeconds: number;
6176
- pid: number;
6177
- startToken?: string | undefined;
6178
- exitFile?: string | undefined;
6179
- note?: string | undefined;
6180
- result?: {
6181
- outcome: "deadline" | "error" | "exit_file" | "exited";
6182
- observedAt: string;
6183
- exitCode?: number | undefined;
6184
- exitFileNote?: "not-an-exit-code" | undefined;
6185
- diagnostic?: string | undefined;
6186
- } | undefined;
6187
6164
  } | {
6188
6165
  id: string;
6189
6166
  source: "agent" | "cezar";
@@ -6245,6 +6222,30 @@ export declare function createRunsRoutes(deps: RunsRouteDeps): import("hono/hono
6245
6222
  reason: "outcome" | "timeout";
6246
6223
  } | undefined;
6247
6224
  wakeInputId?: string | undefined;
6225
+ } | {
6226
+ id: string;
6227
+ source: "agent" | "cezar";
6228
+ 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";
6229
+ registeredAt: string;
6230
+ phase: "cancelled" | "delivered" | "open" | "resolved";
6231
+ resolvedAt?: string | undefined;
6232
+ deliveredAt?: string | undefined;
6233
+ cancelledAt?: string | undefined;
6234
+ turnId: string;
6235
+ kind: "process";
6236
+ deadline: string;
6237
+ timeoutSeconds: number;
6238
+ pid: number;
6239
+ startToken?: string | undefined;
6240
+ exitFile?: string | undefined;
6241
+ note?: string | undefined;
6242
+ result?: {
6243
+ outcome: "deadline" | "error" | "exit_file" | "exited";
6244
+ observedAt: string;
6245
+ exitCode?: number | undefined;
6246
+ exitFileNote?: "not-an-exit-code" | undefined;
6247
+ diagnostic?: string | undefined;
6248
+ } | undefined;
6248
6249
  } | {
6249
6250
  id: string;
6250
6251
  source: "agent" | "cezar";
@@ -6376,30 +6377,6 @@ export declare function createRunsRoutes(deps: RunsRouteDeps): import("hono/hono
6376
6377
  deadline: string;
6377
6378
  seconds: number;
6378
6379
  note?: string | undefined;
6379
- } | {
6380
- id: string;
6381
- source: "agent" | "cezar";
6382
- 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";
6383
- registeredAt: string;
6384
- phase: "cancelled" | "delivered" | "open" | "resolved";
6385
- resolvedAt?: string | undefined;
6386
- deliveredAt?: string | undefined;
6387
- cancelledAt?: string | undefined;
6388
- turnId: string;
6389
- kind: "process";
6390
- deadline: string;
6391
- timeoutSeconds: number;
6392
- pid: number;
6393
- startToken?: string | undefined;
6394
- exitFile?: string | undefined;
6395
- note?: string | undefined;
6396
- result?: {
6397
- outcome: "deadline" | "error" | "exit_file" | "exited";
6398
- observedAt: string;
6399
- exitCode?: number | undefined;
6400
- exitFileNote?: "not-an-exit-code" | undefined;
6401
- diagnostic?: string | undefined;
6402
- } | undefined;
6403
6380
  } | {
6404
6381
  id: string;
6405
6382
  source: "agent" | "cezar";
@@ -6461,6 +6438,30 @@ export declare function createRunsRoutes(deps: RunsRouteDeps): import("hono/hono
6461
6438
  reason: "outcome" | "timeout";
6462
6439
  } | undefined;
6463
6440
  wakeInputId?: string | undefined;
6441
+ } | {
6442
+ id: string;
6443
+ source: "agent" | "cezar";
6444
+ 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";
6445
+ registeredAt: string;
6446
+ phase: "cancelled" | "delivered" | "open" | "resolved";
6447
+ resolvedAt?: string | undefined;
6448
+ deliveredAt?: string | undefined;
6449
+ cancelledAt?: string | undefined;
6450
+ turnId: string;
6451
+ kind: "process";
6452
+ deadline: string;
6453
+ timeoutSeconds: number;
6454
+ pid: number;
6455
+ startToken?: string | undefined;
6456
+ exitFile?: string | undefined;
6457
+ note?: string | undefined;
6458
+ result?: {
6459
+ outcome: "deadline" | "error" | "exit_file" | "exited";
6460
+ observedAt: string;
6461
+ exitCode?: number | undefined;
6462
+ exitFileNote?: "not-an-exit-code" | undefined;
6463
+ diagnostic?: string | undefined;
6464
+ } | undefined;
6464
6465
  } | {
6465
6466
  id: string;
6466
6467
  source: "agent" | "cezar";
@@ -6805,6 +6806,8 @@ export declare function createRunsRoutes(deps: RunsRouteDeps): import("hono/hono
6805
6806
  } | undefined;
6806
6807
  invalidAsk?: boolean | undefined;
6807
6808
  delegation?: {
6809
+ role: "invalid";
6810
+ } | {
6808
6811
  role: "root";
6809
6812
  conversation?: {
6810
6813
  messages: {
@@ -7039,8 +7042,6 @@ export declare function createRunsRoutes(deps: RunsRouteDeps): import("hono/hono
7039
7042
  } | undefined;
7040
7043
  executionRevision?: number | undefined;
7041
7044
  executionStartSeq?: number | undefined;
7042
- } | {
7043
- role: "invalid";
7044
7045
  } | undefined;
7045
7046
  agentInputs?: {
7046
7047
  conversation?: {
@@ -7134,30 +7135,6 @@ export declare function createRunsRoutes(deps: RunsRouteDeps): import("hono/hono
7134
7135
  deadline: string;
7135
7136
  seconds: number;
7136
7137
  note?: string | undefined;
7137
- } | {
7138
- id: string;
7139
- source: "agent" | "cezar";
7140
- 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";
7141
- registeredAt: string;
7142
- phase: "cancelled" | "delivered" | "open" | "resolved";
7143
- resolvedAt?: string | undefined;
7144
- deliveredAt?: string | undefined;
7145
- cancelledAt?: string | undefined;
7146
- turnId: string;
7147
- kind: "process";
7148
- deadline: string;
7149
- timeoutSeconds: number;
7150
- pid: number;
7151
- startToken?: string | undefined;
7152
- exitFile?: string | undefined;
7153
- note?: string | undefined;
7154
- result?: {
7155
- outcome: "deadline" | "error" | "exit_file" | "exited";
7156
- observedAt: string;
7157
- exitCode?: number | undefined;
7158
- exitFileNote?: "not-an-exit-code" | undefined;
7159
- diagnostic?: string | undefined;
7160
- } | undefined;
7161
7138
  } | {
7162
7139
  id: string;
7163
7140
  source: "agent" | "cezar";
@@ -7219,6 +7196,30 @@ export declare function createRunsRoutes(deps: RunsRouteDeps): import("hono/hono
7219
7196
  reason: "outcome" | "timeout";
7220
7197
  } | undefined;
7221
7198
  wakeInputId?: string | undefined;
7199
+ } | {
7200
+ id: string;
7201
+ source: "agent" | "cezar";
7202
+ 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";
7203
+ registeredAt: string;
7204
+ phase: "cancelled" | "delivered" | "open" | "resolved";
7205
+ resolvedAt?: string | undefined;
7206
+ deliveredAt?: string | undefined;
7207
+ cancelledAt?: string | undefined;
7208
+ turnId: string;
7209
+ kind: "process";
7210
+ deadline: string;
7211
+ timeoutSeconds: number;
7212
+ pid: number;
7213
+ startToken?: string | undefined;
7214
+ exitFile?: string | undefined;
7215
+ note?: string | undefined;
7216
+ result?: {
7217
+ outcome: "deadline" | "error" | "exit_file" | "exited";
7218
+ observedAt: string;
7219
+ exitCode?: number | undefined;
7220
+ exitFileNote?: "not-an-exit-code" | undefined;
7221
+ diagnostic?: string | undefined;
7222
+ } | undefined;
7222
7223
  } | {
7223
7224
  id: string;
7224
7225
  source: "agent" | "cezar";
@@ -7351,30 +7352,6 @@ export declare function createRunsRoutes(deps: RunsRouteDeps): import("hono/hono
7351
7352
  deadline: string;
7352
7353
  seconds: number;
7353
7354
  note?: string | undefined;
7354
- } | {
7355
- id: string;
7356
- source: "agent" | "cezar";
7357
- 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";
7358
- registeredAt: string;
7359
- phase: "cancelled" | "delivered" | "open" | "resolved";
7360
- resolvedAt?: string | undefined;
7361
- deliveredAt?: string | undefined;
7362
- cancelledAt?: string | undefined;
7363
- turnId: string;
7364
- kind: "process";
7365
- deadline: string;
7366
- timeoutSeconds: number;
7367
- pid: number;
7368
- startToken?: string | undefined;
7369
- exitFile?: string | undefined;
7370
- note?: string | undefined;
7371
- result?: {
7372
- outcome: "deadline" | "error" | "exit_file" | "exited";
7373
- observedAt: string;
7374
- exitCode?: number | undefined;
7375
- exitFileNote?: "not-an-exit-code" | undefined;
7376
- diagnostic?: string | undefined;
7377
- } | undefined;
7378
7355
  } | {
7379
7356
  id: string;
7380
7357
  source: "agent" | "cezar";
@@ -7433,9 +7410,33 @@ export declare function createRunsRoutes(deps: RunsRouteDeps): import("hono/hono
7433
7410
  replyId?: string | undefined;
7434
7411
  }[] | undefined;
7435
7412
  result?: {
7436
- reason: "outcome" | "timeout";
7413
+ reason: "outcome" | "timeout";
7414
+ } | undefined;
7415
+ wakeInputId?: string | undefined;
7416
+ } | {
7417
+ id: string;
7418
+ source: "agent" | "cezar";
7419
+ 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";
7420
+ registeredAt: string;
7421
+ phase: "cancelled" | "delivered" | "open" | "resolved";
7422
+ resolvedAt?: string | undefined;
7423
+ deliveredAt?: string | undefined;
7424
+ cancelledAt?: string | undefined;
7425
+ turnId: string;
7426
+ kind: "process";
7427
+ deadline: string;
7428
+ timeoutSeconds: number;
7429
+ pid: number;
7430
+ startToken?: string | undefined;
7431
+ exitFile?: string | undefined;
7432
+ note?: string | undefined;
7433
+ result?: {
7434
+ outcome: "deadline" | "error" | "exit_file" | "exited";
7435
+ observedAt: string;
7436
+ exitCode?: number | undefined;
7437
+ exitFileNote?: "not-an-exit-code" | undefined;
7438
+ diagnostic?: string | undefined;
7437
7439
  } | undefined;
7438
- wakeInputId?: string | undefined;
7439
7440
  } | {
7440
7441
  id: string;
7441
7442
  source: "agent" | "cezar";
@@ -7567,30 +7568,6 @@ export declare function createRunsRoutes(deps: RunsRouteDeps): import("hono/hono
7567
7568
  deadline: string;
7568
7569
  seconds: number;
7569
7570
  note?: string | undefined;
7570
- } | {
7571
- id: string;
7572
- source: "agent" | "cezar";
7573
- 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";
7574
- registeredAt: string;
7575
- phase: "cancelled" | "delivered" | "open" | "resolved";
7576
- resolvedAt?: string | undefined;
7577
- deliveredAt?: string | undefined;
7578
- cancelledAt?: string | undefined;
7579
- turnId: string;
7580
- kind: "process";
7581
- deadline: string;
7582
- timeoutSeconds: number;
7583
- pid: number;
7584
- startToken?: string | undefined;
7585
- exitFile?: string | undefined;
7586
- note?: string | undefined;
7587
- result?: {
7588
- outcome: "deadline" | "error" | "exit_file" | "exited";
7589
- observedAt: string;
7590
- exitCode?: number | undefined;
7591
- exitFileNote?: "not-an-exit-code" | undefined;
7592
- diagnostic?: string | undefined;
7593
- } | undefined;
7594
7571
  } | {
7595
7572
  id: string;
7596
7573
  source: "agent" | "cezar";
@@ -7652,6 +7629,30 @@ export declare function createRunsRoutes(deps: RunsRouteDeps): import("hono/hono
7652
7629
  reason: "outcome" | "timeout";
7653
7630
  } | undefined;
7654
7631
  wakeInputId?: string | undefined;
7632
+ } | {
7633
+ id: string;
7634
+ source: "agent" | "cezar";
7635
+ 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";
7636
+ registeredAt: string;
7637
+ phase: "cancelled" | "delivered" | "open" | "resolved";
7638
+ resolvedAt?: string | undefined;
7639
+ deliveredAt?: string | undefined;
7640
+ cancelledAt?: string | undefined;
7641
+ turnId: string;
7642
+ kind: "process";
7643
+ deadline: string;
7644
+ timeoutSeconds: number;
7645
+ pid: number;
7646
+ startToken?: string | undefined;
7647
+ exitFile?: string | undefined;
7648
+ note?: string | undefined;
7649
+ result?: {
7650
+ outcome: "deadline" | "error" | "exit_file" | "exited";
7651
+ observedAt: string;
7652
+ exitCode?: number | undefined;
7653
+ exitFileNote?: "not-an-exit-code" | undefined;
7654
+ diagnostic?: string | undefined;
7655
+ } | undefined;
7655
7656
  } | {
7656
7657
  id: string;
7657
7658
  source: "agent" | "cezar";
@@ -8072,30 +8073,6 @@ export declare function createRunsRoutes(deps: RunsRouteDeps): import("hono/hono
8072
8073
  deadline: string;
8073
8074
  seconds: number;
8074
8075
  note?: string | undefined;
8075
- } | {
8076
- id: string;
8077
- source: "agent" | "cezar";
8078
- 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";
8079
- registeredAt: string;
8080
- phase: "cancelled" | "delivered" | "open" | "resolved";
8081
- resolvedAt?: string | undefined;
8082
- deliveredAt?: string | undefined;
8083
- cancelledAt?: string | undefined;
8084
- turnId: string;
8085
- kind: "process";
8086
- deadline: string;
8087
- timeoutSeconds: number;
8088
- pid: number;
8089
- startToken?: string | undefined;
8090
- exitFile?: string | undefined;
8091
- note?: string | undefined;
8092
- result?: {
8093
- outcome: "deadline" | "error" | "exit_file" | "exited";
8094
- observedAt: string;
8095
- exitCode?: number | undefined;
8096
- exitFileNote?: "not-an-exit-code" | undefined;
8097
- diagnostic?: string | undefined;
8098
- } | undefined;
8099
8076
  } | {
8100
8077
  id: string;
8101
8078
  source: "agent" | "cezar";
@@ -8157,6 +8134,30 @@ export declare function createRunsRoutes(deps: RunsRouteDeps): import("hono/hono
8157
8134
  reason: "outcome" | "timeout";
8158
8135
  } | undefined;
8159
8136
  wakeInputId?: string | undefined;
8137
+ } | {
8138
+ id: string;
8139
+ source: "agent" | "cezar";
8140
+ 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";
8141
+ registeredAt: string;
8142
+ phase: "cancelled" | "delivered" | "open" | "resolved";
8143
+ resolvedAt?: string | undefined;
8144
+ deliveredAt?: string | undefined;
8145
+ cancelledAt?: string | undefined;
8146
+ turnId: string;
8147
+ kind: "process";
8148
+ deadline: string;
8149
+ timeoutSeconds: number;
8150
+ pid: number;
8151
+ startToken?: string | undefined;
8152
+ exitFile?: string | undefined;
8153
+ note?: string | undefined;
8154
+ result?: {
8155
+ outcome: "deadline" | "error" | "exit_file" | "exited";
8156
+ observedAt: string;
8157
+ exitCode?: number | undefined;
8158
+ exitFileNote?: "not-an-exit-code" | undefined;
8159
+ diagnostic?: string | undefined;
8160
+ } | undefined;
8160
8161
  } | {
8161
8162
  id: string;
8162
8163
  source: "agent" | "cezar";
@@ -8289,30 +8290,6 @@ export declare function createRunsRoutes(deps: RunsRouteDeps): import("hono/hono
8289
8290
  deadline: string;
8290
8291
  seconds: number;
8291
8292
  note?: string | undefined;
8292
- } | {
8293
- id: string;
8294
- source: "agent" | "cezar";
8295
- 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";
8296
- registeredAt: string;
8297
- phase: "cancelled" | "delivered" | "open" | "resolved";
8298
- resolvedAt?: string | undefined;
8299
- deliveredAt?: string | undefined;
8300
- cancelledAt?: string | undefined;
8301
- turnId: string;
8302
- kind: "process";
8303
- deadline: string;
8304
- timeoutSeconds: number;
8305
- pid: number;
8306
- startToken?: string | undefined;
8307
- exitFile?: string | undefined;
8308
- note?: string | undefined;
8309
- result?: {
8310
- outcome: "deadline" | "error" | "exit_file" | "exited";
8311
- observedAt: string;
8312
- exitCode?: number | undefined;
8313
- exitFileNote?: "not-an-exit-code" | undefined;
8314
- diagnostic?: string | undefined;
8315
- } | undefined;
8316
8293
  } | {
8317
8294
  id: string;
8318
8295
  source: "agent" | "cezar";
@@ -8374,6 +8351,30 @@ export declare function createRunsRoutes(deps: RunsRouteDeps): import("hono/hono
8374
8351
  reason: "outcome" | "timeout";
8375
8352
  } | undefined;
8376
8353
  wakeInputId?: string | undefined;
8354
+ } | {
8355
+ id: string;
8356
+ source: "agent" | "cezar";
8357
+ 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";
8358
+ registeredAt: string;
8359
+ phase: "cancelled" | "delivered" | "open" | "resolved";
8360
+ resolvedAt?: string | undefined;
8361
+ deliveredAt?: string | undefined;
8362
+ cancelledAt?: string | undefined;
8363
+ turnId: string;
8364
+ kind: "process";
8365
+ deadline: string;
8366
+ timeoutSeconds: number;
8367
+ pid: number;
8368
+ startToken?: string | undefined;
8369
+ exitFile?: string | undefined;
8370
+ note?: string | undefined;
8371
+ result?: {
8372
+ outcome: "deadline" | "error" | "exit_file" | "exited";
8373
+ observedAt: string;
8374
+ exitCode?: number | undefined;
8375
+ exitFileNote?: "not-an-exit-code" | undefined;
8376
+ diagnostic?: string | undefined;
8377
+ } | undefined;
8377
8378
  } | {
8378
8379
  id: string;
8379
8380
  source: "agent" | "cezar";
@@ -8505,30 +8506,6 @@ export declare function createRunsRoutes(deps: RunsRouteDeps): import("hono/hono
8505
8506
  deadline: string;
8506
8507
  seconds: number;
8507
8508
  note?: string | undefined;
8508
- } | {
8509
- id: string;
8510
- source: "agent" | "cezar";
8511
- 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";
8512
- registeredAt: string;
8513
- phase: "cancelled" | "delivered" | "open" | "resolved";
8514
- resolvedAt?: string | undefined;
8515
- deliveredAt?: string | undefined;
8516
- cancelledAt?: string | undefined;
8517
- turnId: string;
8518
- kind: "process";
8519
- deadline: string;
8520
- timeoutSeconds: number;
8521
- pid: number;
8522
- startToken?: string | undefined;
8523
- exitFile?: string | undefined;
8524
- note?: string | undefined;
8525
- result?: {
8526
- outcome: "deadline" | "error" | "exit_file" | "exited";
8527
- observedAt: string;
8528
- exitCode?: number | undefined;
8529
- exitFileNote?: "not-an-exit-code" | undefined;
8530
- diagnostic?: string | undefined;
8531
- } | undefined;
8532
8509
  } | {
8533
8510
  id: string;
8534
8511
  source: "agent" | "cezar";
@@ -8590,6 +8567,30 @@ export declare function createRunsRoutes(deps: RunsRouteDeps): import("hono/hono
8590
8567
  reason: "outcome" | "timeout";
8591
8568
  } | undefined;
8592
8569
  wakeInputId?: string | undefined;
8570
+ } | {
8571
+ id: string;
8572
+ source: "agent" | "cezar";
8573
+ 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";
8574
+ registeredAt: string;
8575
+ phase: "cancelled" | "delivered" | "open" | "resolved";
8576
+ resolvedAt?: string | undefined;
8577
+ deliveredAt?: string | undefined;
8578
+ cancelledAt?: string | undefined;
8579
+ turnId: string;
8580
+ kind: "process";
8581
+ deadline: string;
8582
+ timeoutSeconds: number;
8583
+ pid: number;
8584
+ startToken?: string | undefined;
8585
+ exitFile?: string | undefined;
8586
+ note?: string | undefined;
8587
+ result?: {
8588
+ outcome: "deadline" | "error" | "exit_file" | "exited";
8589
+ observedAt: string;
8590
+ exitCode?: number | undefined;
8591
+ exitFileNote?: "not-an-exit-code" | undefined;
8592
+ diagnostic?: string | undefined;
8593
+ } | undefined;
8593
8594
  } | {
8594
8595
  id: string;
8595
8596
  source: "agent" | "cezar";
@@ -8734,6 +8735,8 @@ export declare function createRunsRoutes(deps: RunsRouteDeps): import("hono/hono
8734
8735
  currentStepId?: string | undefined;
8735
8736
  error?: string | undefined;
8736
8737
  delegation?: {
8738
+ role: "invalid";
8739
+ } | {
8737
8740
  role: "root";
8738
8741
  conversation?: {
8739
8742
  messages: {
@@ -8968,8 +8971,6 @@ export declare function createRunsRoutes(deps: RunsRouteDeps): import("hono/hono
8968
8971
  } | undefined;
8969
8972
  executionRevision?: number | undefined;
8970
8973
  executionStartSeq?: number | undefined;
8971
- } | {
8972
- role: "invalid";
8973
8974
  } | undefined;
8974
8975
  lastWaitsError?: string | undefined;
8975
8976
  automaticWakes?: number | undefined;
@@ -9267,6 +9268,8 @@ export declare function createRunsRoutes(deps: RunsRouteDeps): import("hono/hono
9267
9268
  } | undefined;
9268
9269
  invalidAsk?: boolean | undefined;
9269
9270
  delegation?: {
9271
+ role: "invalid";
9272
+ } | {
9270
9273
  role: "root";
9271
9274
  conversation?: {
9272
9275
  messages: {
@@ -9501,8 +9504,6 @@ export declare function createRunsRoutes(deps: RunsRouteDeps): import("hono/hono
9501
9504
  } | undefined;
9502
9505
  executionRevision?: number | undefined;
9503
9506
  executionStartSeq?: number | undefined;
9504
- } | {
9505
- role: "invalid";
9506
9507
  } | undefined;
9507
9508
  agentInputs?: {
9508
9509
  conversation?: {
@@ -9596,30 +9597,6 @@ export declare function createRunsRoutes(deps: RunsRouteDeps): import("hono/hono
9596
9597
  deadline: string;
9597
9598
  seconds: number;
9598
9599
  note?: string | undefined;
9599
- } | {
9600
- id: string;
9601
- source: "agent" | "cezar";
9602
- 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";
9603
- registeredAt: string;
9604
- phase: "cancelled" | "delivered" | "open" | "resolved";
9605
- resolvedAt?: string | undefined;
9606
- deliveredAt?: string | undefined;
9607
- cancelledAt?: string | undefined;
9608
- turnId: string;
9609
- kind: "process";
9610
- deadline: string;
9611
- timeoutSeconds: number;
9612
- pid: number;
9613
- startToken?: string | undefined;
9614
- exitFile?: string | undefined;
9615
- note?: string | undefined;
9616
- result?: {
9617
- outcome: "deadline" | "error" | "exit_file" | "exited";
9618
- observedAt: string;
9619
- exitCode?: number | undefined;
9620
- exitFileNote?: "not-an-exit-code" | undefined;
9621
- diagnostic?: string | undefined;
9622
- } | undefined;
9623
9600
  } | {
9624
9601
  id: string;
9625
9602
  source: "agent" | "cezar";
@@ -9680,7 +9657,31 @@ export declare function createRunsRoutes(deps: RunsRouteDeps): import("hono/hono
9680
9657
  result?: {
9681
9658
  reason: "outcome" | "timeout";
9682
9659
  } | undefined;
9683
- wakeInputId?: string | undefined;
9660
+ wakeInputId?: string | undefined;
9661
+ } | {
9662
+ id: string;
9663
+ source: "agent" | "cezar";
9664
+ 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";
9665
+ registeredAt: string;
9666
+ phase: "cancelled" | "delivered" | "open" | "resolved";
9667
+ resolvedAt?: string | undefined;
9668
+ deliveredAt?: string | undefined;
9669
+ cancelledAt?: string | undefined;
9670
+ turnId: string;
9671
+ kind: "process";
9672
+ deadline: string;
9673
+ timeoutSeconds: number;
9674
+ pid: number;
9675
+ startToken?: string | undefined;
9676
+ exitFile?: string | undefined;
9677
+ note?: string | undefined;
9678
+ result?: {
9679
+ outcome: "deadline" | "error" | "exit_file" | "exited";
9680
+ observedAt: string;
9681
+ exitCode?: number | undefined;
9682
+ exitFileNote?: "not-an-exit-code" | undefined;
9683
+ diagnostic?: string | undefined;
9684
+ } | undefined;
9684
9685
  } | {
9685
9686
  id: string;
9686
9687
  source: "agent" | "cezar";
@@ -9813,30 +9814,6 @@ export declare function createRunsRoutes(deps: RunsRouteDeps): import("hono/hono
9813
9814
  deadline: string;
9814
9815
  seconds: number;
9815
9816
  note?: string | undefined;
9816
- } | {
9817
- id: string;
9818
- source: "agent" | "cezar";
9819
- 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";
9820
- registeredAt: string;
9821
- phase: "cancelled" | "delivered" | "open" | "resolved";
9822
- resolvedAt?: string | undefined;
9823
- deliveredAt?: string | undefined;
9824
- cancelledAt?: string | undefined;
9825
- turnId: string;
9826
- kind: "process";
9827
- deadline: string;
9828
- timeoutSeconds: number;
9829
- pid: number;
9830
- startToken?: string | undefined;
9831
- exitFile?: string | undefined;
9832
- note?: string | undefined;
9833
- result?: {
9834
- outcome: "deadline" | "error" | "exit_file" | "exited";
9835
- observedAt: string;
9836
- exitCode?: number | undefined;
9837
- exitFileNote?: "not-an-exit-code" | undefined;
9838
- diagnostic?: string | undefined;
9839
- } | undefined;
9840
9817
  } | {
9841
9818
  id: string;
9842
9819
  source: "agent" | "cezar";
@@ -9898,6 +9875,30 @@ export declare function createRunsRoutes(deps: RunsRouteDeps): import("hono/hono
9898
9875
  reason: "outcome" | "timeout";
9899
9876
  } | undefined;
9900
9877
  wakeInputId?: string | undefined;
9878
+ } | {
9879
+ id: string;
9880
+ source: "agent" | "cezar";
9881
+ 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";
9882
+ registeredAt: string;
9883
+ phase: "cancelled" | "delivered" | "open" | "resolved";
9884
+ resolvedAt?: string | undefined;
9885
+ deliveredAt?: string | undefined;
9886
+ cancelledAt?: string | undefined;
9887
+ turnId: string;
9888
+ kind: "process";
9889
+ deadline: string;
9890
+ timeoutSeconds: number;
9891
+ pid: number;
9892
+ startToken?: string | undefined;
9893
+ exitFile?: string | undefined;
9894
+ note?: string | undefined;
9895
+ result?: {
9896
+ outcome: "deadline" | "error" | "exit_file" | "exited";
9897
+ observedAt: string;
9898
+ exitCode?: number | undefined;
9899
+ exitFileNote?: "not-an-exit-code" | undefined;
9900
+ diagnostic?: string | undefined;
9901
+ } | undefined;
9901
9902
  } | {
9902
9903
  id: string;
9903
9904
  source: "agent" | "cezar";
@@ -10029,30 +10030,6 @@ export declare function createRunsRoutes(deps: RunsRouteDeps): import("hono/hono
10029
10030
  deadline: string;
10030
10031
  seconds: number;
10031
10032
  note?: string | undefined;
10032
- } | {
10033
- id: string;
10034
- source: "agent" | "cezar";
10035
- 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";
10036
- registeredAt: string;
10037
- phase: "cancelled" | "delivered" | "open" | "resolved";
10038
- resolvedAt?: string | undefined;
10039
- deliveredAt?: string | undefined;
10040
- cancelledAt?: string | undefined;
10041
- turnId: string;
10042
- kind: "process";
10043
- deadline: string;
10044
- timeoutSeconds: number;
10045
- pid: number;
10046
- startToken?: string | undefined;
10047
- exitFile?: string | undefined;
10048
- note?: string | undefined;
10049
- result?: {
10050
- outcome: "deadline" | "error" | "exit_file" | "exited";
10051
- observedAt: string;
10052
- exitCode?: number | undefined;
10053
- exitFileNote?: "not-an-exit-code" | undefined;
10054
- diagnostic?: string | undefined;
10055
- } | undefined;
10056
10033
  } | {
10057
10034
  id: string;
10058
10035
  source: "agent" | "cezar";
@@ -10114,6 +10091,30 @@ export declare function createRunsRoutes(deps: RunsRouteDeps): import("hono/hono
10114
10091
  reason: "outcome" | "timeout";
10115
10092
  } | undefined;
10116
10093
  wakeInputId?: string | undefined;
10094
+ } | {
10095
+ id: string;
10096
+ source: "agent" | "cezar";
10097
+ 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";
10098
+ registeredAt: string;
10099
+ phase: "cancelled" | "delivered" | "open" | "resolved";
10100
+ resolvedAt?: string | undefined;
10101
+ deliveredAt?: string | undefined;
10102
+ cancelledAt?: string | undefined;
10103
+ turnId: string;
10104
+ kind: "process";
10105
+ deadline: string;
10106
+ timeoutSeconds: number;
10107
+ pid: number;
10108
+ startToken?: string | undefined;
10109
+ exitFile?: string | undefined;
10110
+ note?: string | undefined;
10111
+ result?: {
10112
+ outcome: "deadline" | "error" | "exit_file" | "exited";
10113
+ observedAt: string;
10114
+ exitCode?: number | undefined;
10115
+ exitFileNote?: "not-an-exit-code" | undefined;
10116
+ diagnostic?: string | undefined;
10117
+ } | undefined;
10117
10118
  } | {
10118
10119
  id: string;
10119
10120
  source: "agent" | "cezar";
@@ -10664,30 +10665,6 @@ export declare function createRunsRoutes(deps: RunsRouteDeps): import("hono/hono
10664
10665
  deadline: string;
10665
10666
  seconds: number;
10666
10667
  note?: string | undefined;
10667
- } | {
10668
- id: string;
10669
- source: "agent" | "cezar";
10670
- 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";
10671
- registeredAt: string;
10672
- phase: "cancelled" | "delivered" | "open" | "resolved";
10673
- resolvedAt?: string | undefined;
10674
- deliveredAt?: string | undefined;
10675
- cancelledAt?: string | undefined;
10676
- turnId: string;
10677
- kind: "process";
10678
- deadline: string;
10679
- timeoutSeconds: number;
10680
- pid: number;
10681
- startToken?: string | undefined;
10682
- exitFile?: string | undefined;
10683
- note?: string | undefined;
10684
- result?: {
10685
- outcome: "deadline" | "error" | "exit_file" | "exited";
10686
- observedAt: string;
10687
- exitCode?: number | undefined;
10688
- exitFileNote?: "not-an-exit-code" | undefined;
10689
- diagnostic?: string | undefined;
10690
- } | undefined;
10691
10668
  } | {
10692
10669
  id: string;
10693
10670
  source: "agent" | "cezar";
@@ -10749,6 +10726,30 @@ export declare function createRunsRoutes(deps: RunsRouteDeps): import("hono/hono
10749
10726
  reason: "outcome" | "timeout";
10750
10727
  } | undefined;
10751
10728
  wakeInputId?: string | undefined;
10729
+ } | {
10730
+ id: string;
10731
+ source: "agent" | "cezar";
10732
+ 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";
10733
+ registeredAt: string;
10734
+ phase: "cancelled" | "delivered" | "open" | "resolved";
10735
+ resolvedAt?: string | undefined;
10736
+ deliveredAt?: string | undefined;
10737
+ cancelledAt?: string | undefined;
10738
+ turnId: string;
10739
+ kind: "process";
10740
+ deadline: string;
10741
+ timeoutSeconds: number;
10742
+ pid: number;
10743
+ startToken?: string | undefined;
10744
+ exitFile?: string | undefined;
10745
+ note?: string | undefined;
10746
+ result?: {
10747
+ outcome: "deadline" | "error" | "exit_file" | "exited";
10748
+ observedAt: string;
10749
+ exitCode?: number | undefined;
10750
+ exitFileNote?: "not-an-exit-code" | undefined;
10751
+ diagnostic?: string | undefined;
10752
+ } | undefined;
10752
10753
  } | {
10753
10754
  id: string;
10754
10755
  source: "agent" | "cezar";
@@ -10881,30 +10882,6 @@ export declare function createRunsRoutes(deps: RunsRouteDeps): import("hono/hono
10881
10882
  deadline: string;
10882
10883
  seconds: number;
10883
10884
  note?: string | undefined;
10884
- } | {
10885
- id: string;
10886
- source: "agent" | "cezar";
10887
- 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";
10888
- registeredAt: string;
10889
- phase: "cancelled" | "delivered" | "open" | "resolved";
10890
- resolvedAt?: string | undefined;
10891
- deliveredAt?: string | undefined;
10892
- cancelledAt?: string | undefined;
10893
- turnId: string;
10894
- kind: "process";
10895
- deadline: string;
10896
- timeoutSeconds: number;
10897
- pid: number;
10898
- startToken?: string | undefined;
10899
- exitFile?: string | undefined;
10900
- note?: string | undefined;
10901
- result?: {
10902
- outcome: "deadline" | "error" | "exit_file" | "exited";
10903
- observedAt: string;
10904
- exitCode?: number | undefined;
10905
- exitFileNote?: "not-an-exit-code" | undefined;
10906
- diagnostic?: string | undefined;
10907
- } | undefined;
10908
10885
  } | {
10909
10886
  id: string;
10910
10887
  source: "agent" | "cezar";
@@ -10966,6 +10943,30 @@ export declare function createRunsRoutes(deps: RunsRouteDeps): import("hono/hono
10966
10943
  reason: "outcome" | "timeout";
10967
10944
  } | undefined;
10968
10945
  wakeInputId?: string | undefined;
10946
+ } | {
10947
+ id: string;
10948
+ source: "agent" | "cezar";
10949
+ 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";
10950
+ registeredAt: string;
10951
+ phase: "cancelled" | "delivered" | "open" | "resolved";
10952
+ resolvedAt?: string | undefined;
10953
+ deliveredAt?: string | undefined;
10954
+ cancelledAt?: string | undefined;
10955
+ turnId: string;
10956
+ kind: "process";
10957
+ deadline: string;
10958
+ timeoutSeconds: number;
10959
+ pid: number;
10960
+ startToken?: string | undefined;
10961
+ exitFile?: string | undefined;
10962
+ note?: string | undefined;
10963
+ result?: {
10964
+ outcome: "deadline" | "error" | "exit_file" | "exited";
10965
+ observedAt: string;
10966
+ exitCode?: number | undefined;
10967
+ exitFileNote?: "not-an-exit-code" | undefined;
10968
+ diagnostic?: string | undefined;
10969
+ } | undefined;
10969
10970
  } | {
10970
10971
  id: string;
10971
10972
  source: "agent" | "cezar";
@@ -11097,30 +11098,6 @@ export declare function createRunsRoutes(deps: RunsRouteDeps): import("hono/hono
11097
11098
  deadline: string;
11098
11099
  seconds: number;
11099
11100
  note?: string | undefined;
11100
- } | {
11101
- id: string;
11102
- source: "agent" | "cezar";
11103
- 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";
11104
- registeredAt: string;
11105
- phase: "cancelled" | "delivered" | "open" | "resolved";
11106
- resolvedAt?: string | undefined;
11107
- deliveredAt?: string | undefined;
11108
- cancelledAt?: string | undefined;
11109
- turnId: string;
11110
- kind: "process";
11111
- deadline: string;
11112
- timeoutSeconds: number;
11113
- pid: number;
11114
- startToken?: string | undefined;
11115
- exitFile?: string | undefined;
11116
- note?: string | undefined;
11117
- result?: {
11118
- outcome: "deadline" | "error" | "exit_file" | "exited";
11119
- observedAt: string;
11120
- exitCode?: number | undefined;
11121
- exitFileNote?: "not-an-exit-code" | undefined;
11122
- diagnostic?: string | undefined;
11123
- } | undefined;
11124
11101
  } | {
11125
11102
  id: string;
11126
11103
  source: "agent" | "cezar";
@@ -11182,6 +11159,30 @@ export declare function createRunsRoutes(deps: RunsRouteDeps): import("hono/hono
11182
11159
  reason: "outcome" | "timeout";
11183
11160
  } | undefined;
11184
11161
  wakeInputId?: string | undefined;
11162
+ } | {
11163
+ id: string;
11164
+ source: "agent" | "cezar";
11165
+ 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";
11166
+ registeredAt: string;
11167
+ phase: "cancelled" | "delivered" | "open" | "resolved";
11168
+ resolvedAt?: string | undefined;
11169
+ deliveredAt?: string | undefined;
11170
+ cancelledAt?: string | undefined;
11171
+ turnId: string;
11172
+ kind: "process";
11173
+ deadline: string;
11174
+ timeoutSeconds: number;
11175
+ pid: number;
11176
+ startToken?: string | undefined;
11177
+ exitFile?: string | undefined;
11178
+ note?: string | undefined;
11179
+ result?: {
11180
+ outcome: "deadline" | "error" | "exit_file" | "exited";
11181
+ observedAt: string;
11182
+ exitCode?: number | undefined;
11183
+ exitFileNote?: "not-an-exit-code" | undefined;
11184
+ diagnostic?: string | undefined;
11185
+ } | undefined;
11185
11186
  } | {
11186
11187
  id: string;
11187
11188
  source: "agent" | "cezar";
@@ -11326,6 +11327,8 @@ export declare function createRunsRoutes(deps: RunsRouteDeps): import("hono/hono
11326
11327
  currentStepId?: string | undefined;
11327
11328
  error?: string | undefined;
11328
11329
  delegation?: {
11330
+ role: "invalid";
11331
+ } | {
11329
11332
  role: "root";
11330
11333
  conversation?: {
11331
11334
  messages: {
@@ -11560,8 +11563,6 @@ export declare function createRunsRoutes(deps: RunsRouteDeps): import("hono/hono
11560
11563
  } | undefined;
11561
11564
  executionRevision?: number | undefined;
11562
11565
  executionStartSeq?: number | undefined;
11563
- } | {
11564
- role: "invalid";
11565
11566
  } | undefined;
11566
11567
  lastWaitsError?: string | undefined;
11567
11568
  automaticWakes?: number | undefined;
@@ -12477,9 +12478,9 @@ export declare function createRunsRoutes(deps: RunsRouteDeps): import("hono/hono
12477
12478
  status: 404 | 409;
12478
12479
  input: {
12479
12480
  param: {
12480
- id: string;
12481
- } & {
12482
12481
  sha: string;
12482
+ } & {
12483
+ id: string;
12483
12484
  };
12484
12485
  };
12485
12486
  } | {
@@ -12508,9 +12509,9 @@ export declare function createRunsRoutes(deps: RunsRouteDeps): import("hono/hono
12508
12509
  status: import("hono/utils/http-status").ContentfulStatusCode;
12509
12510
  input: {
12510
12511
  param: {
12511
- id: string;
12512
- } & {
12513
12512
  sha: string;
12513
+ } & {
12514
+ id: string;
12514
12515
  };
12515
12516
  };
12516
12517
  };