@hearsay-tools/squawk 0.19.0-pr4595.9124 → 0.19.0-pr4597.9122

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 (178) hide show
  1. package/dist/ci-wait/controller.d.ts +7 -7
  2. package/dist/ci-wait/errors.js +1 -1
  3. package/dist/ci-wait/errors.js.map +1 -1
  4. package/dist/core/agent-runner.d.ts +1 -1
  5. package/dist/core/session-process.d.ts +1 -1
  6. package/dist/delegation/cli.js +1 -1
  7. package/dist/delegation/cli.js.map +1 -1
  8. package/dist/delegation/context.d.ts +1 -1
  9. package/dist/delegation/context.js +1 -1
  10. package/dist/delegation/context.js.map +1 -1
  11. package/dist/delegation/conversation-send.js +1 -1
  12. package/dist/delegation/conversation-send.js.map +1 -1
  13. package/dist/delegation/conversations.js +1 -1
  14. package/dist/delegation/conversations.js.map +1 -1
  15. package/dist/delegation/effort.js +1 -1
  16. package/dist/delegation/effort.js.map +1 -1
  17. package/dist/delegation/execution-settings.js +1 -1
  18. package/dist/delegation/execution-settings.js.map +1 -1
  19. package/dist/{core/agent-input-queue.js → delegation/input.js} +2 -2
  20. package/dist/delegation/input.js.map +1 -0
  21. package/dist/delegation/policy.d.ts +12 -1
  22. package/dist/delegation/policy.js +16 -1
  23. package/dist/delegation/policy.js.map +1 -1
  24. package/dist/delegation/retry-backoff.js.map +1 -0
  25. package/dist/delegation/routes.d.ts +15 -15
  26. package/dist/delegation/routes.js +1 -1
  27. package/dist/delegation/routes.js.map +1 -1
  28. package/dist/delegation/scratch-cleanup.js +1 -1
  29. package/dist/delegation/scratch-cleanup.js.map +1 -1
  30. package/dist/delegation/service.js +1 -2
  31. package/dist/delegation/service.js.map +1 -1
  32. package/dist/delegation/task-discovery.js +1 -2
  33. package/dist/delegation/task-discovery.js.map +1 -1
  34. package/dist/delegation/transport.d.ts +10 -10
  35. package/dist/delegation/wait-kinds.js +1 -2
  36. package/dist/delegation/wait-kinds.js.map +1 -1
  37. package/dist/delegation/worker-cleanup.d.ts +1 -1
  38. package/dist/delegation/worker-cleanup.js +2 -2
  39. package/dist/delegation/worker-cleanup.js.map +1 -1
  40. package/dist/delegation/worker-executions.d.ts +1 -2
  41. package/dist/delegation/worker-executions.js.map +1 -1
  42. package/dist/delegation/workspace-kinds.js +1 -1
  43. package/dist/delegation/workspace-kinds.js.map +1 -1
  44. package/dist/delegation/workspace.js +1 -1
  45. package/dist/delegation/workspace.js.map +1 -1
  46. package/dist/features/hosts/routes.d.ts +44 -44
  47. package/dist/features/webhooks/routes.d.ts +38 -38
  48. package/dist/plugin/runner-kit.d.ts +1 -1
  49. package/dist/preview/dev-server.d.ts +1 -1
  50. package/dist/preview/host.d.ts +1 -1
  51. package/dist/runs/run-archive.d.ts +72 -72
  52. package/dist/server/activity-routes.d.ts +23 -23
  53. package/dist/server/live-routes.d.ts +6 -6
  54. package/dist/server/project-run-files.js +1 -1
  55. package/dist/server/project-run-files.js.map +1 -1
  56. package/dist/server/projects-routes.d.ts +41 -41
  57. package/dist/server/runs-routes.d.ts +1007 -1007
  58. package/dist/server/server.d.ts +58 -58
  59. package/dist/server/workspace-live-routes.d.ts +6 -6
  60. package/dist/worker-scope/scope.d.ts +10 -0
  61. package/dist/worker-scope/worker-scopes.d.ts +1 -2
  62. package/dist/worker-scope/worker-scopes.js.map +1 -1
  63. package/dist/workflows/continuation-admission.d.ts +72 -72
  64. package/dist/workflows/grouped-command.d.ts +1 -1
  65. package/dist/workflows/run/auto-resume.js +1 -1
  66. package/dist/workflows/run/auto-resume.js.map +1 -1
  67. package/dist/workflows/run/inbox-claims.js +1 -1
  68. package/dist/workflows/run/inbox-claims.js.map +1 -1
  69. package/dist/workflows/run/input-batch.js +1 -1
  70. package/dist/workflows/run/input-batch.js.map +1 -1
  71. package/dist/workflows/run/input-delivery.js +2 -2
  72. package/dist/workflows/run/input-delivery.js.map +1 -1
  73. package/dist/workflows/run/launch-read-resolver.js +1 -1
  74. package/dist/workflows/run/launch-read-resolver.js.map +1 -1
  75. package/dist/workflows/run/resolved-wait-input-batch.js +1 -1
  76. package/dist/workflows/run/resolved-wait-input-batch.js.map +1 -1
  77. package/dist/workflows/run/run-cancel.js +1 -1
  78. package/dist/workflows/run/run-cancel.js.map +1 -1
  79. package/dist/workflows/run/run-recovery.js +1 -1
  80. package/dist/workflows/run/run-recovery.js.map +1 -1
  81. package/dist/workflows/run/run-start.js +1 -1
  82. package/dist/workflows/run/run-start.js.map +1 -1
  83. package/dist/workflows/run/turn-nudges.js +1 -1
  84. package/dist/workflows/run/turn-nudges.js.map +1 -1
  85. package/dist/workflows/run/wait-engine.d.ts +72 -72
  86. package/dist/workflows/run/wake-admission.js +1 -1
  87. package/dist/workflows/run/wake-admission.js.map +1 -1
  88. package/dist/workflows/run/wake-ledger.js +1 -1
  89. package/dist/workflows/run/wake-ledger.js.map +1 -1
  90. package/dist/workflows/run/wake-retries.d.ts +1 -1
  91. package/dist/workflows/run/wake-retries.js +1 -1
  92. package/dist/workflows/run/wake-retries.js.map +1 -1
  93. package/dist/workflows/run/worker-orphans.d.ts +1 -1
  94. package/dist/workflows/run/worker-orphans.js +1 -1
  95. package/dist/workflows/run/worker-orphans.js.map +1 -1
  96. package/dist/workflows/run/worker-questions.js +1 -1
  97. package/dist/workflows/run/worker-questions.js.map +1 -1
  98. package/dist/workflows/wait-scope.d.ts +1 -1
  99. package/dist/workflows/wait-scope.js +2 -2
  100. package/dist/workflows/wait-scope.js.map +1 -1
  101. package/dist/worktree-setup.d.ts +1 -1
  102. package/package.json +4 -4
  103. package/web/dist/assets/{accounts-section-ZXVMfClS.js → accounts-section-CB4vkCsb.js} +1 -1
  104. package/web/dist/assets/{activity-motion-DTaG0jgp.js → activity-motion-CWVqj0za.js} +1 -1
  105. package/web/dist/assets/{activity-route-C3iu5mFU.js → activity-route-D_1WO5Z1.js} +1 -1
  106. package/web/dist/assets/{agent-config-section-9MRfcKQS.js → agent-config-section-DoqyETC4.js} +1 -1
  107. package/web/dist/assets/{agent-defaults-section-D7g5bTyV.js → agent-defaults-section-OS2L78-e.js} +1 -1
  108. package/web/dist/assets/{appearance-BJ4j5r5p.js → appearance-CLcSBCp1.js} +1 -1
  109. package/web/dist/assets/{archive-on-merge-field-CNv0Bu3G.js → archive-on-merge-field-C2Byigt_.js} +1 -1
  110. package/web/dist/assets/{ask-card-CR6DNJF6.js → ask-card-C4IYkE2O.js} +3 -3
  111. package/web/dist/assets/{automations-route-k4bijucQ.js → automations-route-BZHu5YyF.js} +2 -2
  112. package/web/dist/assets/{commit-list-_vDQS0ik.js → commit-list-B8WibZ6m.js} +1 -1
  113. package/web/dist/assets/{diff-C1Iw4dZn.js → diff-B_8aWFPC.js} +2 -2
  114. package/web/dist/assets/{diff-controls-irO2JNfA.js → diff-controls-QX-jSmyx.js} +1 -1
  115. package/web/dist/assets/{diff-view-DUluWIDu.js → diff-view-BS1q2trQ.js} +1 -1
  116. package/web/dist/assets/discard-changes-dialog-_XKURVyg.js +1 -0
  117. package/web/dist/assets/{file-preview-BXvvN7aY.js → file-preview-Dfpn6tQe.js} +1 -1
  118. package/web/dist/assets/{git-toolbar-BBLpJRY0.js → git-toolbar-DuUdRzI1.js} +1 -1
  119. package/web/dist/assets/{github--8WGuRKF.js → github-CPC8EK-y.js} +1 -1
  120. package/web/dist/assets/{global-activity-route-CA1tk96d.js → global-activity-route-B7WkPq9M.js} +1 -1
  121. package/web/dist/assets/index-BovBmPyJ.js +21 -0
  122. package/web/dist/assets/index-FmHk4o3n.css +1 -0
  123. package/web/dist/assets/{markdown-CtSku8LE.js → markdown-B0yqWHDP.js} +1 -1
  124. package/web/dist/assets/{option-select-D-dhfwbJ.js → option-select-COXy_9e6.js} +1 -1
  125. package/web/dist/assets/{preferences-section-BS6aE4jj.js → preferences-section-Bbzs9RW1.js} +1 -1
  126. package/web/dist/assets/{preview-pane-connected-jsPa_fm_.js → preview-pane-connected-dMTWNhX8.js} +2 -2
  127. package/web/dist/assets/{project-location-BgTbUmGp.js → project-location-B-O2lQQU.js} +1 -1
  128. package/web/dist/assets/{projects-section-B6UO2Fsg.js → projects-section-BjffHvrf.js} +1 -1
  129. package/web/dist/assets/{prompt-templates-section-B82wX3f2.js → prompt-templates-section--SsT2vbo.js} +2 -2
  130. package/web/dist/assets/{remote-settings-notice-B9SDAJ_X.js → remote-settings-notice-DyWrqTzR.js} +1 -1
  131. package/web/dist/assets/repo-git-CAX7JKaD.js +1 -0
  132. package/web/dist/assets/{report-reader-VTSoL24L.js → report-reader-Cu5tL1Ph.js} +1 -1
  133. package/web/dist/assets/{reports-_Cg433rE.js → reports-D9ouruqt.js} +1 -1
  134. package/web/dist/assets/{resources-section-10nuK9my.js → resources-section-D21Lq0Jb.js} +1 -1
  135. package/web/dist/assets/{review-notes-drafts-BO1AQjdK.js → review-notes-drafts-AEBwPEaV.js} +1 -1
  136. package/web/dist/assets/{review-panel-DC5Vunei.js → review-panel-Cy1EYoBI.js} +1 -1
  137. package/web/dist/assets/{review-strip-C4IAbY4-.js → review-strip-ClN1AfmS.js} +1 -1
  138. package/web/dist/assets/run-header-C7L9lspH.js +2 -0
  139. package/web/dist/assets/{run-header-788Dmvef.css → run-header-Ytho20Wt.css} +1 -1
  140. package/web/dist/assets/{select-W28UZrYu.js → select-JCfCIElu.js} +1 -1
  141. package/web/dist/assets/{session-context-section-Bn9C20x6.js → session-context-section-Cbzxxjcu.js} +2 -2
  142. package/web/dist/assets/{settings-agent-picker-LZFmqPO8.js → settings-agent-picker-1H6fIPXo.js} +1 -1
  143. package/web/dist/assets/{settings-save-bar-D7CHjcel.js → settings-save-bar-BUi6H-gE.js} +1 -1
  144. package/web/dist/assets/{settings-shell-CsYs1eAP.js → settings-shell-lj--GRCk.js} +1 -1
  145. package/web/dist/assets/{sidebar-section-BBih43j5.js → sidebar-section-Cv1ulfXy.js} +1 -1
  146. package/web/dist/assets/{skills-DwZgc52M.js → skills-DAJzu767.js} +1 -1
  147. package/web/dist/assets/{task-changes-IYxHw0rk.js → task-changes-GTdXC-dZ.js} +2 -2
  148. package/web/dist/assets/{task-commits-BiGaHVjY.js → task-commits-6ZKh7FRW.js} +1 -1
  149. package/web/dist/assets/{task-file-scope-z8doH0Zj.js → task-file-scope-CaJR98S8.js} +1 -1
  150. package/web/dist/assets/{task-files-DpN6z7aS.js → task-files-DRnSkRoC.js} +1 -1
  151. package/web/dist/assets/{task-github-item-m0YyjwIK.js → task-github-item-080YJpbP.js} +1 -1
  152. package/web/dist/assets/{task-thread-COvamr_k.css → task-thread-C70CCqyd.css} +1 -1
  153. package/web/dist/assets/{task-thread-DRzM4460.js → task-thread-D1bM1I_e.js} +2 -2
  154. package/web/dist/assets/{thread-state-C-fayyMM.js → thread-state-CmjIQNn7.js} +1 -1
  155. package/web/dist/assets/{use-finish-run-tE2GMrHz.js → use-finish-run-BE6ugaLE.js} +1 -1
  156. package/web/dist/assets/{use-hand-to-agent-state-DhwQQtg8.js → use-hand-to-agent-state-CK_1_QCG.js} +1 -1
  157. package/web/dist/assets/use-path-bases-RiQd3y2m.js +1 -0
  158. package/web/dist/assets/{workflows-Dzho_Ygn.js → workflows-D9hqYoNT.js} +3 -3
  159. package/web/dist/assets/{workspace-tools-DX6I2Ks_.js → workspace-tools-DuYt1zu5.js} +1 -1
  160. package/web/dist/assets/{worktrees-section-C-ccjr9P.js → worktrees-section-JViXzzNC.js} +1 -1
  161. package/web/dist/index.html +2 -2
  162. package/dist/core/agent-input-queue.js.map +0 -1
  163. package/dist/core/delegation-error.d.ts +0 -13
  164. package/dist/core/delegation-error.js +0 -18
  165. package/dist/core/delegation-error.js.map +0 -1
  166. package/dist/core/retry-backoff.js.map +0 -1
  167. package/dist/core/spawn-scope.d.ts +0 -10
  168. package/dist/core/spawn-scope.js +0 -2
  169. package/dist/core/spawn-scope.js.map +0 -1
  170. package/web/dist/assets/discard-changes-dialog-DycoPvKO.js +0 -1
  171. package/web/dist/assets/index-CKnh0a_1.js +0 -21
  172. package/web/dist/assets/index-DpEC_uZL.css +0 -1
  173. package/web/dist/assets/repo-git-BjHkYOPO.js +0 -1
  174. package/web/dist/assets/run-header-Do_oAPk-.js +0 -2
  175. package/web/dist/assets/use-path-bases-DMPVHHPA.js +0 -1
  176. /package/dist/{core/agent-input-queue.d.ts → delegation/input.d.ts} +0 -0
  177. /package/dist/{core → delegation}/retry-backoff.d.ts +0 -0
  178. /package/dist/{core → delegation}/retry-backoff.js +0 -0
@@ -421,6 +421,30 @@ export declare function createRunsRoutes(deps: RunsRouteDeps): import("hono/hono
421
421
  deadline: string;
422
422
  seconds: number;
423
423
  note?: string | undefined;
424
+ } | {
425
+ id: string;
426
+ source: "agent" | "cezar";
427
+ 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";
428
+ registeredAt: string;
429
+ phase: "cancelled" | "delivered" | "open" | "resolved";
430
+ resolvedAt?: string | undefined;
431
+ deliveredAt?: string | undefined;
432
+ cancelledAt?: string | undefined;
433
+ turnId: string;
434
+ kind: "process";
435
+ deadline: string;
436
+ timeoutSeconds: number;
437
+ pid: number;
438
+ startToken?: string | undefined;
439
+ exitFile?: string | undefined;
440
+ note?: string | undefined;
441
+ result?: {
442
+ outcome: "deadline" | "error" | "exit_file" | "exited";
443
+ observedAt: string;
444
+ exitCode?: number | undefined;
445
+ exitFileNote?: "not-an-exit-code" | undefined;
446
+ diagnostic?: string | undefined;
447
+ } | undefined;
424
448
  } | {
425
449
  id: string;
426
450
  source: "agent" | "cezar";
@@ -482,30 +506,6 @@ export declare function createRunsRoutes(deps: RunsRouteDeps): import("hono/hono
482
506
  reason: "outcome" | "timeout";
483
507
  } | undefined;
484
508
  wakeInputId?: string | undefined;
485
- } | {
486
- id: string;
487
- source: "agent" | "cezar";
488
- 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";
489
- registeredAt: string;
490
- phase: "cancelled" | "delivered" | "open" | "resolved";
491
- resolvedAt?: string | undefined;
492
- deliveredAt?: string | undefined;
493
- cancelledAt?: string | undefined;
494
- turnId: string;
495
- kind: "process";
496
- deadline: string;
497
- timeoutSeconds: number;
498
- pid: number;
499
- startToken?: string | undefined;
500
- exitFile?: string | undefined;
501
- note?: string | undefined;
502
- result?: {
503
- outcome: "deadline" | "error" | "exit_file" | "exited";
504
- observedAt: string;
505
- exitCode?: number | undefined;
506
- exitFileNote?: "not-an-exit-code" | undefined;
507
- diagnostic?: string | undefined;
508
- } | undefined;
509
509
  } | {
510
510
  id: string;
511
511
  source: "agent" | "cezar";
@@ -638,6 +638,30 @@ export declare function createRunsRoutes(deps: RunsRouteDeps): import("hono/hono
638
638
  deadline: string;
639
639
  seconds: number;
640
640
  note?: string | undefined;
641
+ } | {
642
+ id: string;
643
+ source: "agent" | "cezar";
644
+ 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";
645
+ registeredAt: string;
646
+ phase: "cancelled" | "delivered" | "open" | "resolved";
647
+ resolvedAt?: string | undefined;
648
+ deliveredAt?: string | undefined;
649
+ cancelledAt?: string | undefined;
650
+ turnId: string;
651
+ kind: "process";
652
+ deadline: string;
653
+ timeoutSeconds: number;
654
+ pid: number;
655
+ startToken?: string | undefined;
656
+ exitFile?: string | undefined;
657
+ note?: string | undefined;
658
+ result?: {
659
+ outcome: "deadline" | "error" | "exit_file" | "exited";
660
+ observedAt: string;
661
+ exitCode?: number | undefined;
662
+ exitFileNote?: "not-an-exit-code" | undefined;
663
+ diagnostic?: string | undefined;
664
+ } | undefined;
641
665
  } | {
642
666
  id: string;
643
667
  source: "agent" | "cezar";
@@ -699,30 +723,6 @@ export declare function createRunsRoutes(deps: RunsRouteDeps): import("hono/hono
699
723
  reason: "outcome" | "timeout";
700
724
  } | undefined;
701
725
  wakeInputId?: string | undefined;
702
- } | {
703
- id: string;
704
- source: "agent" | "cezar";
705
- 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";
706
- registeredAt: string;
707
- phase: "cancelled" | "delivered" | "open" | "resolved";
708
- resolvedAt?: string | undefined;
709
- deliveredAt?: string | undefined;
710
- cancelledAt?: string | undefined;
711
- turnId: string;
712
- kind: "process";
713
- deadline: string;
714
- timeoutSeconds: number;
715
- pid: number;
716
- startToken?: string | undefined;
717
- exitFile?: string | undefined;
718
- note?: string | undefined;
719
- result?: {
720
- outcome: "deadline" | "error" | "exit_file" | "exited";
721
- observedAt: string;
722
- exitCode?: number | undefined;
723
- exitFileNote?: "not-an-exit-code" | undefined;
724
- diagnostic?: string | undefined;
725
- } | undefined;
726
726
  } | {
727
727
  id: string;
728
728
  source: "agent" | "cezar";
@@ -854,6 +854,30 @@ export declare function createRunsRoutes(deps: RunsRouteDeps): import("hono/hono
854
854
  deadline: string;
855
855
  seconds: number;
856
856
  note?: string | undefined;
857
+ } | {
858
+ id: string;
859
+ source: "agent" | "cezar";
860
+ 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";
861
+ registeredAt: string;
862
+ phase: "cancelled" | "delivered" | "open" | "resolved";
863
+ resolvedAt?: string | undefined;
864
+ deliveredAt?: string | undefined;
865
+ cancelledAt?: string | undefined;
866
+ turnId: string;
867
+ kind: "process";
868
+ deadline: string;
869
+ timeoutSeconds: number;
870
+ pid: number;
871
+ startToken?: string | undefined;
872
+ exitFile?: string | undefined;
873
+ note?: string | undefined;
874
+ result?: {
875
+ outcome: "deadline" | "error" | "exit_file" | "exited";
876
+ observedAt: string;
877
+ exitCode?: number | undefined;
878
+ exitFileNote?: "not-an-exit-code" | undefined;
879
+ diagnostic?: string | undefined;
880
+ } | undefined;
857
881
  } | {
858
882
  id: string;
859
883
  source: "agent" | "cezar";
@@ -915,30 +939,6 @@ export declare function createRunsRoutes(deps: RunsRouteDeps): import("hono/hono
915
939
  reason: "outcome" | "timeout";
916
940
  } | undefined;
917
941
  wakeInputId?: string | undefined;
918
- } | {
919
- id: string;
920
- source: "agent" | "cezar";
921
- 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";
922
- registeredAt: string;
923
- phase: "cancelled" | "delivered" | "open" | "resolved";
924
- resolvedAt?: string | undefined;
925
- deliveredAt?: string | undefined;
926
- cancelledAt?: string | undefined;
927
- turnId: string;
928
- kind: "process";
929
- deadline: string;
930
- timeoutSeconds: number;
931
- pid: number;
932
- startToken?: string | undefined;
933
- exitFile?: string | undefined;
934
- note?: string | undefined;
935
- result?: {
936
- outcome: "deadline" | "error" | "exit_file" | "exited";
937
- observedAt: string;
938
- exitCode?: number | undefined;
939
- exitFileNote?: "not-an-exit-code" | undefined;
940
- diagnostic?: string | undefined;
941
- } | undefined;
942
942
  } | {
943
943
  id: string;
944
944
  source: "agent" | "cezar";
@@ -1215,6 +1215,18 @@ export declare function createRunsRoutes(deps: RunsRouteDeps): import("hono/hono
1215
1215
  } & {
1216
1216
  "/run-summaries": {
1217
1217
  $get: {
1218
+ output: {
1219
+ error: string;
1220
+ code?: "invalid_input" | undefined;
1221
+ };
1222
+ outputFormat: "json";
1223
+ status: 400;
1224
+ input: {
1225
+ query: {
1226
+ archived?: "all" | "recent" | undefined;
1227
+ };
1228
+ };
1229
+ } | {
1218
1230
  output: {
1219
1231
  id: string;
1220
1232
  title: string;
@@ -1352,18 +1364,6 @@ export declare function createRunsRoutes(deps: RunsRouteDeps): import("hono/hono
1352
1364
  archived?: "all" | "recent" | undefined;
1353
1365
  };
1354
1366
  };
1355
- } | {
1356
- output: {
1357
- error: string;
1358
- code?: "invalid_input" | undefined;
1359
- };
1360
- outputFormat: "json";
1361
- status: 400;
1362
- input: {
1363
- query: {
1364
- archived?: "all" | "recent" | undefined;
1365
- };
1366
- };
1367
1367
  };
1368
1368
  };
1369
1369
  } & {
@@ -1725,11 +1725,24 @@ export declare function createRunsRoutes(deps: RunsRouteDeps): import("hono/hono
1725
1725
  "/runs/:id/worker-destroy": {
1726
1726
  $post: {
1727
1727
  output: {
1728
- error: string;
1729
- code?: "invalid_input" | undefined;
1728
+ workerId: string;
1729
+ state: "complete" | "incomplete";
1730
+ work?: {
1731
+ uncommittedFiles: number;
1732
+ commits: number;
1733
+ } | undefined;
1734
+ deleted?: ({
1735
+ kind: "worktree";
1736
+ path: string;
1737
+ } | {
1738
+ kind: "branch";
1739
+ ref: string;
1740
+ })[] | undefined;
1741
+ remaining: ("branch" | "process" | "worktree")[];
1742
+ error?: string | undefined;
1730
1743
  };
1731
1744
  outputFormat: "json";
1732
- status: 400;
1745
+ status: 200;
1733
1746
  input: {
1734
1747
  query: {
1735
1748
  [x: string]: string | string[];
@@ -1745,24 +1758,11 @@ export declare function createRunsRoutes(deps: RunsRouteDeps): import("hono/hono
1745
1758
  };
1746
1759
  } | {
1747
1760
  output: {
1748
- workerId: string;
1749
- state: "complete" | "incomplete";
1750
- work?: {
1751
- uncommittedFiles: number;
1752
- commits: number;
1753
- } | undefined;
1754
- deleted?: ({
1755
- kind: "worktree";
1756
- path: string;
1757
- } | {
1758
- kind: "branch";
1759
- ref: string;
1760
- })[] | undefined;
1761
- remaining: ("branch" | "process" | "worktree")[];
1762
- error?: string | undefined;
1761
+ error: string;
1762
+ code?: "invalid_input" | undefined;
1763
1763
  };
1764
1764
  outputFormat: "json";
1765
- status: 200;
1765
+ status: 400;
1766
1766
  input: {
1767
1767
  query: {
1768
1768
  [x: string]: string | string[];
@@ -1878,6 +1878,21 @@ export declare function createRunsRoutes(deps: RunsRouteDeps): import("hono/hono
1878
1878
  } & {
1879
1879
  "/runs/:id/archive": {
1880
1880
  $post: {
1881
+ output: {
1882
+ error: string;
1883
+ };
1884
+ outputFormat: "json";
1885
+ status: 404;
1886
+ input: {
1887
+ json: {
1888
+ archived?: boolean | undefined;
1889
+ };
1890
+ } & {
1891
+ param: {
1892
+ id: string;
1893
+ };
1894
+ };
1895
+ } | {
1881
1896
  output: {
1882
1897
  archiveWhenDone?: boolean | undefined;
1883
1898
  autoMergePr?: boolean | undefined;
@@ -2268,6 +2283,30 @@ export declare function createRunsRoutes(deps: RunsRouteDeps): import("hono/hono
2268
2283
  deadline: string;
2269
2284
  seconds: number;
2270
2285
  note?: string | undefined;
2286
+ } | {
2287
+ id: string;
2288
+ source: "agent" | "cezar";
2289
+ 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";
2290
+ registeredAt: string;
2291
+ phase: "cancelled" | "delivered" | "open" | "resolved";
2292
+ resolvedAt?: string | undefined;
2293
+ deliveredAt?: string | undefined;
2294
+ cancelledAt?: string | undefined;
2295
+ turnId: string;
2296
+ kind: "process";
2297
+ deadline: string;
2298
+ timeoutSeconds: number;
2299
+ pid: number;
2300
+ startToken?: string | undefined;
2301
+ exitFile?: string | undefined;
2302
+ note?: string | undefined;
2303
+ result?: {
2304
+ outcome: "deadline" | "error" | "exit_file" | "exited";
2305
+ observedAt: string;
2306
+ exitCode?: number | undefined;
2307
+ exitFileNote?: "not-an-exit-code" | undefined;
2308
+ diagnostic?: string | undefined;
2309
+ } | undefined;
2271
2310
  } | {
2272
2311
  id: string;
2273
2312
  source: "agent" | "cezar";
@@ -2339,34 +2378,10 @@ export declare function createRunsRoutes(deps: RunsRouteDeps): import("hono/hono
2339
2378
  deliveredAt?: string | undefined;
2340
2379
  cancelledAt?: string | undefined;
2341
2380
  turnId: string;
2342
- kind: "process";
2381
+ kind: "peer";
2343
2382
  deadline: string;
2344
2383
  timeoutSeconds: number;
2345
- pid: number;
2346
- startToken?: string | undefined;
2347
- exitFile?: string | undefined;
2348
- note?: string | undefined;
2349
- result?: {
2350
- outcome: "deadline" | "error" | "exit_file" | "exited";
2351
- observedAt: string;
2352
- exitCode?: number | undefined;
2353
- exitFileNote?: "not-an-exit-code" | undefined;
2354
- diagnostic?: string | undefined;
2355
- } | undefined;
2356
- } | {
2357
- id: string;
2358
- source: "agent" | "cezar";
2359
- 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";
2360
- registeredAt: string;
2361
- phase: "cancelled" | "delivered" | "open" | "resolved";
2362
- resolvedAt?: string | undefined;
2363
- deliveredAt?: string | undefined;
2364
- cancelledAt?: string | undefined;
2365
- turnId: string;
2366
- kind: "peer";
2367
- deadline: string;
2368
- timeoutSeconds: number;
2369
- peerIds: string[];
2384
+ peerIds: string[];
2370
2385
  result?: {
2371
2386
  reason: "message";
2372
2387
  peerRunId: string;
@@ -2485,6 +2500,30 @@ export declare function createRunsRoutes(deps: RunsRouteDeps): import("hono/hono
2485
2500
  deadline: string;
2486
2501
  seconds: number;
2487
2502
  note?: string | undefined;
2503
+ } | {
2504
+ id: string;
2505
+ source: "agent" | "cezar";
2506
+ 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";
2507
+ registeredAt: string;
2508
+ phase: "cancelled" | "delivered" | "open" | "resolved";
2509
+ resolvedAt?: string | undefined;
2510
+ deliveredAt?: string | undefined;
2511
+ cancelledAt?: string | undefined;
2512
+ turnId: string;
2513
+ kind: "process";
2514
+ deadline: string;
2515
+ timeoutSeconds: number;
2516
+ pid: number;
2517
+ startToken?: string | undefined;
2518
+ exitFile?: string | undefined;
2519
+ note?: string | undefined;
2520
+ result?: {
2521
+ outcome: "deadline" | "error" | "exit_file" | "exited";
2522
+ observedAt: string;
2523
+ exitCode?: number | undefined;
2524
+ exitFileNote?: "not-an-exit-code" | undefined;
2525
+ diagnostic?: string | undefined;
2526
+ } | undefined;
2488
2527
  } | {
2489
2528
  id: string;
2490
2529
  source: "agent" | "cezar";
@@ -2546,30 +2585,6 @@ export declare function createRunsRoutes(deps: RunsRouteDeps): import("hono/hono
2546
2585
  reason: "outcome" | "timeout";
2547
2586
  } | undefined;
2548
2587
  wakeInputId?: string | undefined;
2549
- } | {
2550
- id: string;
2551
- source: "agent" | "cezar";
2552
- 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";
2553
- registeredAt: string;
2554
- phase: "cancelled" | "delivered" | "open" | "resolved";
2555
- resolvedAt?: string | undefined;
2556
- deliveredAt?: string | undefined;
2557
- cancelledAt?: string | undefined;
2558
- turnId: string;
2559
- kind: "process";
2560
- deadline: string;
2561
- timeoutSeconds: number;
2562
- pid: number;
2563
- startToken?: string | undefined;
2564
- exitFile?: string | undefined;
2565
- note?: string | undefined;
2566
- result?: {
2567
- outcome: "deadline" | "error" | "exit_file" | "exited";
2568
- observedAt: string;
2569
- exitCode?: number | undefined;
2570
- exitFileNote?: "not-an-exit-code" | undefined;
2571
- diagnostic?: string | undefined;
2572
- } | undefined;
2573
2588
  } | {
2574
2589
  id: string;
2575
2590
  source: "agent" | "cezar";
@@ -2701,6 +2716,30 @@ export declare function createRunsRoutes(deps: RunsRouteDeps): import("hono/hono
2701
2716
  deadline: string;
2702
2717
  seconds: number;
2703
2718
  note?: string | undefined;
2719
+ } | {
2720
+ id: string;
2721
+ source: "agent" | "cezar";
2722
+ 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";
2723
+ registeredAt: string;
2724
+ phase: "cancelled" | "delivered" | "open" | "resolved";
2725
+ resolvedAt?: string | undefined;
2726
+ deliveredAt?: string | undefined;
2727
+ cancelledAt?: string | undefined;
2728
+ turnId: string;
2729
+ kind: "process";
2730
+ deadline: string;
2731
+ timeoutSeconds: number;
2732
+ pid: number;
2733
+ startToken?: string | undefined;
2734
+ exitFile?: string | undefined;
2735
+ note?: string | undefined;
2736
+ result?: {
2737
+ outcome: "deadline" | "error" | "exit_file" | "exited";
2738
+ observedAt: string;
2739
+ exitCode?: number | undefined;
2740
+ exitFileNote?: "not-an-exit-code" | undefined;
2741
+ diagnostic?: string | undefined;
2742
+ } | undefined;
2704
2743
  } | {
2705
2744
  id: string;
2706
2745
  source: "agent" | "cezar";
@@ -2762,30 +2801,6 @@ export declare function createRunsRoutes(deps: RunsRouteDeps): import("hono/hono
2762
2801
  reason: "outcome" | "timeout";
2763
2802
  } | undefined;
2764
2803
  wakeInputId?: string | undefined;
2765
- } | {
2766
- id: string;
2767
- source: "agent" | "cezar";
2768
- 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";
2769
- registeredAt: string;
2770
- phase: "cancelled" | "delivered" | "open" | "resolved";
2771
- resolvedAt?: string | undefined;
2772
- deliveredAt?: string | undefined;
2773
- cancelledAt?: string | undefined;
2774
- turnId: string;
2775
- kind: "process";
2776
- deadline: string;
2777
- timeoutSeconds: number;
2778
- pid: number;
2779
- startToken?: string | undefined;
2780
- exitFile?: string | undefined;
2781
- note?: string | undefined;
2782
- result?: {
2783
- outcome: "deadline" | "error" | "exit_file" | "exited";
2784
- observedAt: string;
2785
- exitCode?: number | undefined;
2786
- exitFileNote?: "not-an-exit-code" | undefined;
2787
- diagnostic?: string | undefined;
2788
- } | undefined;
2789
2804
  } | {
2790
2805
  id: string;
2791
2806
  source: "agent" | "cezar";
@@ -3057,32 +3072,32 @@ export declare function createRunsRoutes(deps: RunsRouteDeps): import("hono/hono
3057
3072
  id: string;
3058
3073
  };
3059
3074
  };
3060
- } | {
3075
+ };
3076
+ };
3077
+ } & {
3078
+ "/runs/:id/pin": {
3079
+ $post: {
3061
3080
  output: {
3062
3081
  error: string;
3082
+ code?: "invalid_input" | undefined;
3063
3083
  };
3064
3084
  outputFormat: "json";
3065
- status: 404;
3085
+ status: 400;
3066
3086
  input: {
3067
- json: {
3068
- archived?: boolean | undefined;
3069
- };
3070
- } & {
3071
3087
  param: {
3072
3088
  id: string;
3073
3089
  };
3090
+ } & {
3091
+ json: {
3092
+ pinned?: boolean | undefined;
3093
+ };
3074
3094
  };
3075
- };
3076
- };
3077
- } & {
3078
- "/runs/:id/pin": {
3079
- $post: {
3095
+ } | {
3080
3096
  output: {
3081
3097
  error: string;
3082
- code?: "invalid_input" | undefined;
3083
3098
  };
3084
3099
  outputFormat: "json";
3085
- status: 400;
3100
+ status: 404;
3086
3101
  input: {
3087
3102
  param: {
3088
3103
  id: string;
@@ -3483,6 +3498,30 @@ export declare function createRunsRoutes(deps: RunsRouteDeps): import("hono/hono
3483
3498
  deadline: string;
3484
3499
  seconds: number;
3485
3500
  note?: string | undefined;
3501
+ } | {
3502
+ id: string;
3503
+ source: "agent" | "cezar";
3504
+ 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";
3505
+ registeredAt: string;
3506
+ phase: "cancelled" | "delivered" | "open" | "resolved";
3507
+ resolvedAt?: string | undefined;
3508
+ deliveredAt?: string | undefined;
3509
+ cancelledAt?: string | undefined;
3510
+ turnId: string;
3511
+ kind: "process";
3512
+ deadline: string;
3513
+ timeoutSeconds: number;
3514
+ pid: number;
3515
+ startToken?: string | undefined;
3516
+ exitFile?: string | undefined;
3517
+ note?: string | undefined;
3518
+ result?: {
3519
+ outcome: "deadline" | "error" | "exit_file" | "exited";
3520
+ observedAt: string;
3521
+ exitCode?: number | undefined;
3522
+ exitFileNote?: "not-an-exit-code" | undefined;
3523
+ diagnostic?: string | undefined;
3524
+ } | undefined;
3486
3525
  } | {
3487
3526
  id: string;
3488
3527
  source: "agent" | "cezar";
@@ -3544,30 +3583,6 @@ export declare function createRunsRoutes(deps: RunsRouteDeps): import("hono/hono
3544
3583
  reason: "outcome" | "timeout";
3545
3584
  } | undefined;
3546
3585
  wakeInputId?: string | undefined;
3547
- } | {
3548
- id: string;
3549
- source: "agent" | "cezar";
3550
- 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";
3551
- registeredAt: string;
3552
- phase: "cancelled" | "delivered" | "open" | "resolved";
3553
- resolvedAt?: string | undefined;
3554
- deliveredAt?: string | undefined;
3555
- cancelledAt?: string | undefined;
3556
- turnId: string;
3557
- kind: "process";
3558
- deadline: string;
3559
- timeoutSeconds: number;
3560
- pid: number;
3561
- startToken?: string | undefined;
3562
- exitFile?: string | undefined;
3563
- note?: string | undefined;
3564
- result?: {
3565
- outcome: "deadline" | "error" | "exit_file" | "exited";
3566
- observedAt: string;
3567
- exitCode?: number | undefined;
3568
- exitFileNote?: "not-an-exit-code" | undefined;
3569
- diagnostic?: string | undefined;
3570
- } | undefined;
3571
3586
  } | {
3572
3587
  id: string;
3573
3588
  source: "agent" | "cezar";
@@ -3700,6 +3715,30 @@ export declare function createRunsRoutes(deps: RunsRouteDeps): import("hono/hono
3700
3715
  deadline: string;
3701
3716
  seconds: number;
3702
3717
  note?: string | undefined;
3718
+ } | {
3719
+ id: string;
3720
+ source: "agent" | "cezar";
3721
+ 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";
3722
+ registeredAt: string;
3723
+ phase: "cancelled" | "delivered" | "open" | "resolved";
3724
+ resolvedAt?: string | undefined;
3725
+ deliveredAt?: string | undefined;
3726
+ cancelledAt?: string | undefined;
3727
+ turnId: string;
3728
+ kind: "process";
3729
+ deadline: string;
3730
+ timeoutSeconds: number;
3731
+ pid: number;
3732
+ startToken?: string | undefined;
3733
+ exitFile?: string | undefined;
3734
+ note?: string | undefined;
3735
+ result?: {
3736
+ outcome: "deadline" | "error" | "exit_file" | "exited";
3737
+ observedAt: string;
3738
+ exitCode?: number | undefined;
3739
+ exitFileNote?: "not-an-exit-code" | undefined;
3740
+ diagnostic?: string | undefined;
3741
+ } | undefined;
3703
3742
  } | {
3704
3743
  id: string;
3705
3744
  source: "agent" | "cezar";
@@ -3761,30 +3800,6 @@ export declare function createRunsRoutes(deps: RunsRouteDeps): import("hono/hono
3761
3800
  reason: "outcome" | "timeout";
3762
3801
  } | undefined;
3763
3802
  wakeInputId?: string | undefined;
3764
- } | {
3765
- id: string;
3766
- source: "agent" | "cezar";
3767
- 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";
3768
- registeredAt: string;
3769
- phase: "cancelled" | "delivered" | "open" | "resolved";
3770
- resolvedAt?: string | undefined;
3771
- deliveredAt?: string | undefined;
3772
- cancelledAt?: string | undefined;
3773
- turnId: string;
3774
- kind: "process";
3775
- deadline: string;
3776
- timeoutSeconds: number;
3777
- pid: number;
3778
- startToken?: string | undefined;
3779
- exitFile?: string | undefined;
3780
- note?: string | undefined;
3781
- result?: {
3782
- outcome: "deadline" | "error" | "exit_file" | "exited";
3783
- observedAt: string;
3784
- exitCode?: number | undefined;
3785
- exitFileNote?: "not-an-exit-code" | undefined;
3786
- diagnostic?: string | undefined;
3787
- } | undefined;
3788
3803
  } | {
3789
3804
  id: string;
3790
3805
  source: "agent" | "cezar";
@@ -3926,27 +3941,51 @@ export declare function createRunsRoutes(deps: RunsRouteDeps): import("hono/hono
3926
3941
  deliveredAt?: string | undefined;
3927
3942
  cancelledAt?: string | undefined;
3928
3943
  turnId: string;
3929
- kind: "human";
3930
- questions?: {
3931
- id?: string | undefined;
3932
- header: string;
3933
- question: string;
3934
- options?: {
3935
- label: string;
3936
- description?: string | undefined;
3937
- }[] | undefined;
3938
- multiSelect?: boolean | undefined;
3939
- allowFreeText?: boolean | undefined;
3940
- }[] | undefined;
3941
- context?: string | undefined;
3942
- askSeq?: number | undefined;
3943
- } | {
3944
- id: string;
3945
- source: "agent" | "cezar";
3946
- 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";
3947
- registeredAt: string;
3948
- phase: "cancelled" | "delivered" | "open" | "resolved";
3949
- resolvedAt?: string | undefined;
3944
+ kind: "process";
3945
+ deadline: string;
3946
+ timeoutSeconds: number;
3947
+ pid: number;
3948
+ startToken?: string | undefined;
3949
+ exitFile?: string | undefined;
3950
+ note?: string | undefined;
3951
+ result?: {
3952
+ outcome: "deadline" | "error" | "exit_file" | "exited";
3953
+ observedAt: string;
3954
+ exitCode?: number | undefined;
3955
+ exitFileNote?: "not-an-exit-code" | undefined;
3956
+ diagnostic?: string | undefined;
3957
+ } | undefined;
3958
+ } | {
3959
+ id: string;
3960
+ source: "agent" | "cezar";
3961
+ 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";
3962
+ registeredAt: string;
3963
+ phase: "cancelled" | "delivered" | "open" | "resolved";
3964
+ resolvedAt?: string | undefined;
3965
+ deliveredAt?: string | undefined;
3966
+ cancelledAt?: string | undefined;
3967
+ turnId: string;
3968
+ kind: "human";
3969
+ questions?: {
3970
+ id?: string | undefined;
3971
+ header: string;
3972
+ question: string;
3973
+ options?: {
3974
+ label: string;
3975
+ description?: string | undefined;
3976
+ }[] | undefined;
3977
+ multiSelect?: boolean | undefined;
3978
+ allowFreeText?: boolean | undefined;
3979
+ }[] | undefined;
3980
+ context?: string | undefined;
3981
+ askSeq?: number | 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;
3950
3989
  deliveredAt?: string | undefined;
3951
3990
  cancelledAt?: string | undefined;
3952
3991
  turnId: string;
@@ -3977,30 +4016,6 @@ export declare function createRunsRoutes(deps: RunsRouteDeps): import("hono/hono
3977
4016
  reason: "outcome" | "timeout";
3978
4017
  } | undefined;
3979
4018
  wakeInputId?: string | undefined;
3980
- } | {
3981
- id: string;
3982
- source: "agent" | "cezar";
3983
- 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";
3984
- registeredAt: string;
3985
- phase: "cancelled" | "delivered" | "open" | "resolved";
3986
- resolvedAt?: string | undefined;
3987
- deliveredAt?: string | undefined;
3988
- cancelledAt?: string | undefined;
3989
- turnId: string;
3990
- kind: "process";
3991
- deadline: string;
3992
- timeoutSeconds: number;
3993
- pid: number;
3994
- startToken?: string | undefined;
3995
- exitFile?: string | undefined;
3996
- note?: string | undefined;
3997
- result?: {
3998
- outcome: "deadline" | "error" | "exit_file" | "exited";
3999
- observedAt: string;
4000
- exitCode?: number | undefined;
4001
- exitFileNote?: "not-an-exit-code" | undefined;
4002
- diagnostic?: string | undefined;
4003
- } | undefined;
4004
4019
  } | {
4005
4020
  id: string;
4006
4021
  source: "agent" | "cezar";
@@ -4272,21 +4287,6 @@ export declare function createRunsRoutes(deps: RunsRouteDeps): import("hono/hono
4272
4287
  pinned?: boolean | undefined;
4273
4288
  };
4274
4289
  };
4275
- } | {
4276
- output: {
4277
- error: string;
4278
- };
4279
- outputFormat: "json";
4280
- status: 404;
4281
- input: {
4282
- param: {
4283
- id: string;
4284
- };
4285
- } & {
4286
- json: {
4287
- pinned?: boolean | undefined;
4288
- };
4289
- };
4290
4290
  };
4291
4291
  };
4292
4292
  } & {
@@ -4308,22 +4308,6 @@ export declare function createRunsRoutes(deps: RunsRouteDeps): import("hono/hono
4308
4308
  message?: string | undefined;
4309
4309
  };
4310
4310
  };
4311
- } | {
4312
- output: {
4313
- error: string;
4314
- };
4315
- outputFormat: "json";
4316
- status: 400 | 404 | 409;
4317
- input: {
4318
- param: {
4319
- id: string;
4320
- };
4321
- } & {
4322
- json: {
4323
- notify: boolean;
4324
- message?: string | undefined;
4325
- };
4326
- };
4327
4311
  } | {
4328
4312
  output: {
4329
4313
  archiveWhenDone?: boolean | undefined;
@@ -4462,6 +4446,30 @@ export declare function createRunsRoutes(deps: RunsRouteDeps): import("hono/hono
4462
4446
  deadline: string;
4463
4447
  seconds: number;
4464
4448
  note?: string | undefined;
4449
+ } | {
4450
+ id: string;
4451
+ source: "agent" | "cezar";
4452
+ 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";
4453
+ registeredAt: string;
4454
+ phase: "cancelled" | "delivered" | "open" | "resolved";
4455
+ resolvedAt?: string | undefined;
4456
+ deliveredAt?: string | undefined;
4457
+ cancelledAt?: string | undefined;
4458
+ turnId: string;
4459
+ kind: "process";
4460
+ deadline: string;
4461
+ timeoutSeconds: number;
4462
+ pid: number;
4463
+ startToken?: string | undefined;
4464
+ exitFile?: string | undefined;
4465
+ note?: string | undefined;
4466
+ result?: {
4467
+ outcome: "deadline" | "error" | "exit_file" | "exited";
4468
+ observedAt: string;
4469
+ exitCode?: number | undefined;
4470
+ exitFileNote?: "not-an-exit-code" | undefined;
4471
+ diagnostic?: string | undefined;
4472
+ } | undefined;
4465
4473
  } | {
4466
4474
  id: string;
4467
4475
  source: "agent" | "cezar";
@@ -4523,30 +4531,6 @@ export declare function createRunsRoutes(deps: RunsRouteDeps): import("hono/hono
4523
4531
  reason: "outcome" | "timeout";
4524
4532
  } | undefined;
4525
4533
  wakeInputId?: string | undefined;
4526
- } | {
4527
- id: string;
4528
- source: "agent" | "cezar";
4529
- 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";
4530
- registeredAt: string;
4531
- phase: "cancelled" | "delivered" | "open" | "resolved";
4532
- resolvedAt?: string | undefined;
4533
- deliveredAt?: string | undefined;
4534
- cancelledAt?: string | undefined;
4535
- turnId: string;
4536
- kind: "process";
4537
- deadline: string;
4538
- timeoutSeconds: number;
4539
- pid: number;
4540
- startToken?: string | undefined;
4541
- exitFile?: string | undefined;
4542
- note?: string | undefined;
4543
- result?: {
4544
- outcome: "deadline" | "error" | "exit_file" | "exited";
4545
- observedAt: string;
4546
- exitCode?: number | undefined;
4547
- exitFileNote?: "not-an-exit-code" | undefined;
4548
- diagnostic?: string | undefined;
4549
- } | undefined;
4550
4534
  } | {
4551
4535
  id: string;
4552
4536
  source: "agent" | "cezar";
@@ -4679,6 +4663,30 @@ export declare function createRunsRoutes(deps: RunsRouteDeps): import("hono/hono
4679
4663
  deadline: string;
4680
4664
  seconds: number;
4681
4665
  note?: string | undefined;
4666
+ } | {
4667
+ id: string;
4668
+ source: "agent" | "cezar";
4669
+ 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";
4670
+ registeredAt: string;
4671
+ phase: "cancelled" | "delivered" | "open" | "resolved";
4672
+ resolvedAt?: string | undefined;
4673
+ deliveredAt?: string | undefined;
4674
+ cancelledAt?: string | undefined;
4675
+ turnId: string;
4676
+ kind: "process";
4677
+ deadline: string;
4678
+ timeoutSeconds: number;
4679
+ pid: number;
4680
+ startToken?: string | undefined;
4681
+ exitFile?: string | undefined;
4682
+ note?: string | undefined;
4683
+ result?: {
4684
+ outcome: "deadline" | "error" | "exit_file" | "exited";
4685
+ observedAt: string;
4686
+ exitCode?: number | undefined;
4687
+ exitFileNote?: "not-an-exit-code" | undefined;
4688
+ diagnostic?: string | undefined;
4689
+ } | undefined;
4682
4690
  } | {
4683
4691
  id: string;
4684
4692
  source: "agent" | "cezar";
@@ -4740,30 +4748,6 @@ export declare function createRunsRoutes(deps: RunsRouteDeps): import("hono/hono
4740
4748
  reason: "outcome" | "timeout";
4741
4749
  } | undefined;
4742
4750
  wakeInputId?: string | undefined;
4743
- } | {
4744
- id: string;
4745
- source: "agent" | "cezar";
4746
- 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";
4747
- registeredAt: string;
4748
- phase: "cancelled" | "delivered" | "open" | "resolved";
4749
- resolvedAt?: string | undefined;
4750
- deliveredAt?: string | undefined;
4751
- cancelledAt?: string | undefined;
4752
- turnId: string;
4753
- kind: "process";
4754
- deadline: string;
4755
- timeoutSeconds: number;
4756
- pid: number;
4757
- startToken?: string | undefined;
4758
- exitFile?: string | undefined;
4759
- note?: string | undefined;
4760
- result?: {
4761
- outcome: "deadline" | "error" | "exit_file" | "exited";
4762
- observedAt: string;
4763
- exitCode?: number | undefined;
4764
- exitFileNote?: "not-an-exit-code" | undefined;
4765
- diagnostic?: string | undefined;
4766
- } | undefined;
4767
4751
  } | {
4768
4752
  id: string;
4769
4753
  source: "agent" | "cezar";
@@ -4895,6 +4879,30 @@ export declare function createRunsRoutes(deps: RunsRouteDeps): import("hono/hono
4895
4879
  deadline: string;
4896
4880
  seconds: number;
4897
4881
  note?: string | undefined;
4882
+ } | {
4883
+ id: string;
4884
+ source: "agent" | "cezar";
4885
+ 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";
4886
+ registeredAt: string;
4887
+ phase: "cancelled" | "delivered" | "open" | "resolved";
4888
+ resolvedAt?: string | undefined;
4889
+ deliveredAt?: string | undefined;
4890
+ cancelledAt?: string | undefined;
4891
+ turnId: string;
4892
+ kind: "process";
4893
+ deadline: string;
4894
+ timeoutSeconds: number;
4895
+ pid: number;
4896
+ startToken?: string | undefined;
4897
+ exitFile?: string | undefined;
4898
+ note?: string | undefined;
4899
+ result?: {
4900
+ outcome: "deadline" | "error" | "exit_file" | "exited";
4901
+ observedAt: string;
4902
+ exitCode?: number | undefined;
4903
+ exitFileNote?: "not-an-exit-code" | undefined;
4904
+ diagnostic?: string | undefined;
4905
+ } | undefined;
4898
4906
  } | {
4899
4907
  id: string;
4900
4908
  source: "agent" | "cezar";
@@ -4956,30 +4964,6 @@ export declare function createRunsRoutes(deps: RunsRouteDeps): import("hono/hono
4956
4964
  reason: "outcome" | "timeout";
4957
4965
  } | undefined;
4958
4966
  wakeInputId?: string | undefined;
4959
- } | {
4960
- id: string;
4961
- source: "agent" | "cezar";
4962
- 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";
4963
- registeredAt: string;
4964
- phase: "cancelled" | "delivered" | "open" | "resolved";
4965
- resolvedAt?: string | undefined;
4966
- deliveredAt?: string | undefined;
4967
- cancelledAt?: string | undefined;
4968
- turnId: string;
4969
- kind: "process";
4970
- deadline: string;
4971
- timeoutSeconds: number;
4972
- pid: number;
4973
- startToken?: string | undefined;
4974
- exitFile?: string | undefined;
4975
- note?: string | undefined;
4976
- result?: {
4977
- outcome: "deadline" | "error" | "exit_file" | "exited";
4978
- observedAt: string;
4979
- exitCode?: number | undefined;
4980
- exitFileNote?: "not-an-exit-code" | undefined;
4981
- diagnostic?: string | undefined;
4982
- } | undefined;
4983
4967
  } | {
4984
4968
  id: string;
4985
4969
  source: "agent" | "cezar";
@@ -5505,24 +5489,40 @@ export declare function createRunsRoutes(deps: RunsRouteDeps): import("hono/hono
5505
5489
  message?: string | undefined;
5506
5490
  };
5507
5491
  };
5508
- };
5509
- };
5510
- } & {
5511
- "/runs/:id/auto-resume": {
5512
- $delete: {
5492
+ } | {
5513
5493
  output: {
5514
5494
  error: string;
5515
5495
  };
5516
5496
  outputFormat: "json";
5517
- status: 404;
5497
+ status: 400 | 404 | 409;
5518
5498
  input: {
5519
5499
  param: {
5520
5500
  id: string;
5521
5501
  };
5522
- };
5523
- } | {
5524
- output: {
5525
- cancelled: true;
5502
+ } & {
5503
+ json: {
5504
+ notify: boolean;
5505
+ message?: string | undefined;
5506
+ };
5507
+ };
5508
+ };
5509
+ };
5510
+ } & {
5511
+ "/runs/:id/auto-resume": {
5512
+ $delete: {
5513
+ output: {
5514
+ error: string;
5515
+ };
5516
+ outputFormat: "json";
5517
+ status: 404;
5518
+ input: {
5519
+ param: {
5520
+ id: string;
5521
+ };
5522
+ };
5523
+ } | {
5524
+ output: {
5525
+ cancelled: true;
5526
5526
  };
5527
5527
  outputFormat: "json";
5528
5528
  status: import("hono/utils/http-status").ContentfulStatusCode;
@@ -5536,6 +5536,17 @@ export declare function createRunsRoutes(deps: RunsRouteDeps): import("hono/hono
5536
5536
  } & {
5537
5537
  "/runs/:id/read": {
5538
5538
  $post: {
5539
+ output: {
5540
+ error: string;
5541
+ };
5542
+ outputFormat: "json";
5543
+ status: 404;
5544
+ input: {
5545
+ param: {
5546
+ id: string;
5547
+ };
5548
+ };
5549
+ } | {
5539
5550
  output: {
5540
5551
  archiveWhenDone?: boolean | undefined;
5541
5552
  autoMergePr?: boolean | undefined;
@@ -5926,6 +5937,30 @@ export declare function createRunsRoutes(deps: RunsRouteDeps): import("hono/hono
5926
5937
  deadline: string;
5927
5938
  seconds: number;
5928
5939
  note?: string | undefined;
5940
+ } | {
5941
+ id: string;
5942
+ source: "agent" | "cezar";
5943
+ 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";
5944
+ registeredAt: string;
5945
+ phase: "cancelled" | "delivered" | "open" | "resolved";
5946
+ resolvedAt?: string | undefined;
5947
+ deliveredAt?: string | undefined;
5948
+ cancelledAt?: string | undefined;
5949
+ turnId: string;
5950
+ kind: "process";
5951
+ deadline: string;
5952
+ timeoutSeconds: number;
5953
+ pid: number;
5954
+ startToken?: string | undefined;
5955
+ exitFile?: string | undefined;
5956
+ note?: string | undefined;
5957
+ result?: {
5958
+ outcome: "deadline" | "error" | "exit_file" | "exited";
5959
+ observedAt: string;
5960
+ exitCode?: number | undefined;
5961
+ exitFileNote?: "not-an-exit-code" | undefined;
5962
+ diagnostic?: string | undefined;
5963
+ } | undefined;
5929
5964
  } | {
5930
5965
  id: string;
5931
5966
  source: "agent" | "cezar";
@@ -5987,30 +6022,6 @@ export declare function createRunsRoutes(deps: RunsRouteDeps): import("hono/hono
5987
6022
  reason: "outcome" | "timeout";
5988
6023
  } | undefined;
5989
6024
  wakeInputId?: string | undefined;
5990
- } | {
5991
- id: string;
5992
- source: "agent" | "cezar";
5993
- 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";
5994
- registeredAt: string;
5995
- phase: "cancelled" | "delivered" | "open" | "resolved";
5996
- resolvedAt?: string | undefined;
5997
- deliveredAt?: string | undefined;
5998
- cancelledAt?: string | undefined;
5999
- turnId: string;
6000
- kind: "process";
6001
- deadline: string;
6002
- timeoutSeconds: number;
6003
- pid: number;
6004
- startToken?: string | undefined;
6005
- exitFile?: string | undefined;
6006
- note?: string | undefined;
6007
- result?: {
6008
- outcome: "deadline" | "error" | "exit_file" | "exited";
6009
- observedAt: string;
6010
- exitCode?: number | undefined;
6011
- exitFileNote?: "not-an-exit-code" | undefined;
6012
- diagnostic?: string | undefined;
6013
- } | undefined;
6014
6025
  } | {
6015
6026
  id: string;
6016
6027
  source: "agent" | "cezar";
@@ -6143,6 +6154,30 @@ export declare function createRunsRoutes(deps: RunsRouteDeps): import("hono/hono
6143
6154
  deadline: string;
6144
6155
  seconds: number;
6145
6156
  note?: string | undefined;
6157
+ } | {
6158
+ id: string;
6159
+ source: "agent" | "cezar";
6160
+ 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";
6161
+ registeredAt: string;
6162
+ phase: "cancelled" | "delivered" | "open" | "resolved";
6163
+ resolvedAt?: string | undefined;
6164
+ deliveredAt?: string | undefined;
6165
+ cancelledAt?: string | undefined;
6166
+ turnId: string;
6167
+ kind: "process";
6168
+ deadline: string;
6169
+ timeoutSeconds: number;
6170
+ pid: number;
6171
+ startToken?: string | undefined;
6172
+ exitFile?: string | undefined;
6173
+ note?: string | undefined;
6174
+ result?: {
6175
+ outcome: "deadline" | "error" | "exit_file" | "exited";
6176
+ observedAt: string;
6177
+ exitCode?: number | undefined;
6178
+ exitFileNote?: "not-an-exit-code" | undefined;
6179
+ diagnostic?: string | undefined;
6180
+ } | undefined;
6146
6181
  } | {
6147
6182
  id: string;
6148
6183
  source: "agent" | "cezar";
@@ -6204,30 +6239,6 @@ export declare function createRunsRoutes(deps: RunsRouteDeps): import("hono/hono
6204
6239
  reason: "outcome" | "timeout";
6205
6240
  } | undefined;
6206
6241
  wakeInputId?: string | undefined;
6207
- } | {
6208
- id: string;
6209
- source: "agent" | "cezar";
6210
- 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";
6211
- registeredAt: string;
6212
- phase: "cancelled" | "delivered" | "open" | "resolved";
6213
- resolvedAt?: string | undefined;
6214
- deliveredAt?: string | undefined;
6215
- cancelledAt?: string | undefined;
6216
- turnId: string;
6217
- kind: "process";
6218
- deadline: string;
6219
- timeoutSeconds: number;
6220
- pid: number;
6221
- startToken?: string | undefined;
6222
- exitFile?: string | undefined;
6223
- note?: string | undefined;
6224
- result?: {
6225
- outcome: "deadline" | "error" | "exit_file" | "exited";
6226
- observedAt: string;
6227
- exitCode?: number | undefined;
6228
- exitFileNote?: "not-an-exit-code" | undefined;
6229
- diagnostic?: string | undefined;
6230
- } | undefined;
6231
6242
  } | {
6232
6243
  id: string;
6233
6244
  source: "agent" | "cezar";
@@ -6359,6 +6370,30 @@ export declare function createRunsRoutes(deps: RunsRouteDeps): import("hono/hono
6359
6370
  deadline: string;
6360
6371
  seconds: number;
6361
6372
  note?: string | undefined;
6373
+ } | {
6374
+ id: string;
6375
+ source: "agent" | "cezar";
6376
+ 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";
6377
+ registeredAt: string;
6378
+ phase: "cancelled" | "delivered" | "open" | "resolved";
6379
+ resolvedAt?: string | undefined;
6380
+ deliveredAt?: string | undefined;
6381
+ cancelledAt?: string | undefined;
6382
+ turnId: string;
6383
+ kind: "process";
6384
+ deadline: string;
6385
+ timeoutSeconds: number;
6386
+ pid: number;
6387
+ startToken?: string | undefined;
6388
+ exitFile?: string | undefined;
6389
+ note?: string | undefined;
6390
+ result?: {
6391
+ outcome: "deadline" | "error" | "exit_file" | "exited";
6392
+ observedAt: string;
6393
+ exitCode?: number | undefined;
6394
+ exitFileNote?: "not-an-exit-code" | undefined;
6395
+ diagnostic?: string | undefined;
6396
+ } | undefined;
6362
6397
  } | {
6363
6398
  id: string;
6364
6399
  source: "agent" | "cezar";
@@ -6420,30 +6455,6 @@ export declare function createRunsRoutes(deps: RunsRouteDeps): import("hono/hono
6420
6455
  reason: "outcome" | "timeout";
6421
6456
  } | undefined;
6422
6457
  wakeInputId?: string | undefined;
6423
- } | {
6424
- id: string;
6425
- source: "agent" | "cezar";
6426
- 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";
6427
- registeredAt: string;
6428
- phase: "cancelled" | "delivered" | "open" | "resolved";
6429
- resolvedAt?: string | undefined;
6430
- deliveredAt?: string | undefined;
6431
- cancelledAt?: string | undefined;
6432
- turnId: string;
6433
- kind: "process";
6434
- deadline: string;
6435
- timeoutSeconds: number;
6436
- pid: number;
6437
- startToken?: string | undefined;
6438
- exitFile?: string | undefined;
6439
- note?: string | undefined;
6440
- result?: {
6441
- outcome: "deadline" | "error" | "exit_file" | "exited";
6442
- observedAt: string;
6443
- exitCode?: number | undefined;
6444
- exitFileNote?: "not-an-exit-code" | undefined;
6445
- diagnostic?: string | undefined;
6446
- } | undefined;
6447
6458
  } | {
6448
6459
  id: string;
6449
6460
  source: "agent" | "cezar";
@@ -6711,7 +6722,11 @@ export declare function createRunsRoutes(deps: RunsRouteDeps): import("hono/hono
6711
6722
  id: string;
6712
6723
  };
6713
6724
  };
6714
- } | {
6725
+ };
6726
+ };
6727
+ } & {
6728
+ "/runs/:id/unread": {
6729
+ $post: {
6715
6730
  output: {
6716
6731
  error: string;
6717
6732
  };
@@ -6722,11 +6737,7 @@ export declare function createRunsRoutes(deps: RunsRouteDeps): import("hono/hono
6722
6737
  id: string;
6723
6738
  };
6724
6739
  };
6725
- };
6726
- };
6727
- } & {
6728
- "/runs/:id/unread": {
6729
- $post: {
6740
+ } | {
6730
6741
  output: {
6731
6742
  archiveWhenDone?: boolean | undefined;
6732
6743
  autoMergePr?: boolean | undefined;
@@ -7117,6 +7128,30 @@ export declare function createRunsRoutes(deps: RunsRouteDeps): import("hono/hono
7117
7128
  deadline: string;
7118
7129
  seconds: number;
7119
7130
  note?: string | undefined;
7131
+ } | {
7132
+ id: string;
7133
+ source: "agent" | "cezar";
7134
+ 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";
7135
+ registeredAt: string;
7136
+ phase: "cancelled" | "delivered" | "open" | "resolved";
7137
+ resolvedAt?: string | undefined;
7138
+ deliveredAt?: string | undefined;
7139
+ cancelledAt?: string | undefined;
7140
+ turnId: string;
7141
+ kind: "process";
7142
+ deadline: string;
7143
+ timeoutSeconds: number;
7144
+ pid: number;
7145
+ startToken?: string | undefined;
7146
+ exitFile?: string | undefined;
7147
+ note?: string | undefined;
7148
+ result?: {
7149
+ outcome: "deadline" | "error" | "exit_file" | "exited";
7150
+ observedAt: string;
7151
+ exitCode?: number | undefined;
7152
+ exitFileNote?: "not-an-exit-code" | undefined;
7153
+ diagnostic?: string | undefined;
7154
+ } | undefined;
7120
7155
  } | {
7121
7156
  id: string;
7122
7157
  source: "agent" | "cezar";
@@ -7178,30 +7213,6 @@ export declare function createRunsRoutes(deps: RunsRouteDeps): import("hono/hono
7178
7213
  reason: "outcome" | "timeout";
7179
7214
  } | undefined;
7180
7215
  wakeInputId?: string | undefined;
7181
- } | {
7182
- id: string;
7183
- source: "agent" | "cezar";
7184
- 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";
7185
- registeredAt: string;
7186
- phase: "cancelled" | "delivered" | "open" | "resolved";
7187
- resolvedAt?: string | undefined;
7188
- deliveredAt?: string | undefined;
7189
- cancelledAt?: string | undefined;
7190
- turnId: string;
7191
- kind: "process";
7192
- deadline: string;
7193
- timeoutSeconds: number;
7194
- pid: number;
7195
- startToken?: string | undefined;
7196
- exitFile?: string | undefined;
7197
- note?: string | undefined;
7198
- result?: {
7199
- outcome: "deadline" | "error" | "exit_file" | "exited";
7200
- observedAt: string;
7201
- exitCode?: number | undefined;
7202
- exitFileNote?: "not-an-exit-code" | undefined;
7203
- diagnostic?: string | undefined;
7204
- } | undefined;
7205
7216
  } | {
7206
7217
  id: string;
7207
7218
  source: "agent" | "cezar";
@@ -7344,23 +7355,47 @@ export declare function createRunsRoutes(deps: RunsRouteDeps): import("hono/hono
7344
7355
  deliveredAt?: string | undefined;
7345
7356
  cancelledAt?: string | undefined;
7346
7357
  turnId: string;
7347
- kind: "human";
7348
- questions?: {
7349
- id?: string | undefined;
7350
- header: string;
7351
- question: string;
7352
- options?: {
7353
- label: string;
7354
- description?: string | undefined;
7355
- }[] | undefined;
7356
- multiSelect?: boolean | undefined;
7357
- allowFreeText?: boolean | undefined;
7358
- }[] | undefined;
7359
- context?: string | undefined;
7360
- askSeq?: number | undefined;
7361
- } | {
7362
- id: string;
7363
- source: "agent" | "cezar";
7358
+ kind: "process";
7359
+ deadline: string;
7360
+ timeoutSeconds: number;
7361
+ pid: number;
7362
+ startToken?: string | undefined;
7363
+ exitFile?: string | undefined;
7364
+ note?: string | undefined;
7365
+ result?: {
7366
+ outcome: "deadline" | "error" | "exit_file" | "exited";
7367
+ observedAt: string;
7368
+ exitCode?: number | undefined;
7369
+ exitFileNote?: "not-an-exit-code" | undefined;
7370
+ diagnostic?: string | undefined;
7371
+ } | undefined;
7372
+ } | {
7373
+ id: string;
7374
+ source: "agent" | "cezar";
7375
+ 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";
7376
+ registeredAt: string;
7377
+ phase: "cancelled" | "delivered" | "open" | "resolved";
7378
+ resolvedAt?: string | undefined;
7379
+ deliveredAt?: string | undefined;
7380
+ cancelledAt?: string | undefined;
7381
+ turnId: string;
7382
+ kind: "human";
7383
+ questions?: {
7384
+ id?: string | undefined;
7385
+ header: string;
7386
+ question: string;
7387
+ options?: {
7388
+ label: string;
7389
+ description?: string | undefined;
7390
+ }[] | undefined;
7391
+ multiSelect?: boolean | undefined;
7392
+ allowFreeText?: boolean | undefined;
7393
+ }[] | undefined;
7394
+ context?: string | undefined;
7395
+ askSeq?: number | undefined;
7396
+ } | {
7397
+ id: string;
7398
+ source: "agent" | "cezar";
7364
7399
  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";
7365
7400
  registeredAt: string;
7366
7401
  phase: "cancelled" | "delivered" | "open" | "resolved";
@@ -7395,30 +7430,6 @@ export declare function createRunsRoutes(deps: RunsRouteDeps): import("hono/hono
7395
7430
  reason: "outcome" | "timeout";
7396
7431
  } | undefined;
7397
7432
  wakeInputId?: string | undefined;
7398
- } | {
7399
- id: string;
7400
- source: "agent" | "cezar";
7401
- 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";
7402
- registeredAt: string;
7403
- phase: "cancelled" | "delivered" | "open" | "resolved";
7404
- resolvedAt?: string | undefined;
7405
- deliveredAt?: string | undefined;
7406
- cancelledAt?: string | undefined;
7407
- turnId: string;
7408
- kind: "process";
7409
- deadline: string;
7410
- timeoutSeconds: number;
7411
- pid: number;
7412
- startToken?: string | undefined;
7413
- exitFile?: string | undefined;
7414
- note?: string | undefined;
7415
- result?: {
7416
- outcome: "deadline" | "error" | "exit_file" | "exited";
7417
- observedAt: string;
7418
- exitCode?: number | undefined;
7419
- exitFileNote?: "not-an-exit-code" | undefined;
7420
- diagnostic?: string | undefined;
7421
- } | undefined;
7422
7433
  } | {
7423
7434
  id: string;
7424
7435
  source: "agent" | "cezar";
@@ -7550,6 +7561,30 @@ export declare function createRunsRoutes(deps: RunsRouteDeps): import("hono/hono
7550
7561
  deadline: string;
7551
7562
  seconds: number;
7552
7563
  note?: string | undefined;
7564
+ } | {
7565
+ id: string;
7566
+ source: "agent" | "cezar";
7567
+ 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";
7568
+ registeredAt: string;
7569
+ phase: "cancelled" | "delivered" | "open" | "resolved";
7570
+ resolvedAt?: string | undefined;
7571
+ deliveredAt?: string | undefined;
7572
+ cancelledAt?: string | undefined;
7573
+ turnId: string;
7574
+ kind: "process";
7575
+ deadline: string;
7576
+ timeoutSeconds: number;
7577
+ pid: number;
7578
+ startToken?: string | undefined;
7579
+ exitFile?: string | undefined;
7580
+ note?: string | undefined;
7581
+ result?: {
7582
+ outcome: "deadline" | "error" | "exit_file" | "exited";
7583
+ observedAt: string;
7584
+ exitCode?: number | undefined;
7585
+ exitFileNote?: "not-an-exit-code" | undefined;
7586
+ diagnostic?: string | undefined;
7587
+ } | undefined;
7553
7588
  } | {
7554
7589
  id: string;
7555
7590
  source: "agent" | "cezar";
@@ -7611,30 +7646,6 @@ export declare function createRunsRoutes(deps: RunsRouteDeps): import("hono/hono
7611
7646
  reason: "outcome" | "timeout";
7612
7647
  } | undefined;
7613
7648
  wakeInputId?: string | undefined;
7614
- } | {
7615
- id: string;
7616
- source: "agent" | "cezar";
7617
- 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";
7618
- registeredAt: string;
7619
- phase: "cancelled" | "delivered" | "open" | "resolved";
7620
- resolvedAt?: string | undefined;
7621
- deliveredAt?: string | undefined;
7622
- cancelledAt?: string | undefined;
7623
- turnId: string;
7624
- kind: "process";
7625
- deadline: string;
7626
- timeoutSeconds: number;
7627
- pid: number;
7628
- startToken?: string | undefined;
7629
- exitFile?: string | undefined;
7630
- note?: string | undefined;
7631
- result?: {
7632
- outcome: "deadline" | "error" | "exit_file" | "exited";
7633
- observedAt: string;
7634
- exitCode?: number | undefined;
7635
- exitFileNote?: "not-an-exit-code" | undefined;
7636
- diagnostic?: string | undefined;
7637
- } | undefined;
7638
7649
  } | {
7639
7650
  id: string;
7640
7651
  source: "agent" | "cezar";
@@ -7902,17 +7913,6 @@ export declare function createRunsRoutes(deps: RunsRouteDeps): import("hono/hono
7902
7913
  id: string;
7903
7914
  };
7904
7915
  };
7905
- } | {
7906
- output: {
7907
- error: string;
7908
- };
7909
- outputFormat: "json";
7910
- status: 404;
7911
- input: {
7912
- param: {
7913
- id: string;
7914
- };
7915
- };
7916
7916
  };
7917
7917
  };
7918
7918
  } & {
@@ -8055,6 +8055,30 @@ export declare function createRunsRoutes(deps: RunsRouteDeps): import("hono/hono
8055
8055
  deadline: string;
8056
8056
  seconds: number;
8057
8057
  note?: string | undefined;
8058
+ } | {
8059
+ id: string;
8060
+ source: "agent" | "cezar";
8061
+ 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";
8062
+ registeredAt: string;
8063
+ phase: "cancelled" | "delivered" | "open" | "resolved";
8064
+ resolvedAt?: string | undefined;
8065
+ deliveredAt?: string | undefined;
8066
+ cancelledAt?: string | undefined;
8067
+ turnId: string;
8068
+ kind: "process";
8069
+ deadline: string;
8070
+ timeoutSeconds: number;
8071
+ pid: number;
8072
+ startToken?: string | undefined;
8073
+ exitFile?: string | undefined;
8074
+ note?: string | undefined;
8075
+ result?: {
8076
+ outcome: "deadline" | "error" | "exit_file" | "exited";
8077
+ observedAt: string;
8078
+ exitCode?: number | undefined;
8079
+ exitFileNote?: "not-an-exit-code" | undefined;
8080
+ diagnostic?: string | undefined;
8081
+ } | undefined;
8058
8082
  } | {
8059
8083
  id: string;
8060
8084
  source: "agent" | "cezar";
@@ -8116,30 +8140,6 @@ export declare function createRunsRoutes(deps: RunsRouteDeps): import("hono/hono
8116
8140
  reason: "outcome" | "timeout";
8117
8141
  } | undefined;
8118
8142
  wakeInputId?: string | undefined;
8119
- } | {
8120
- id: string;
8121
- source: "agent" | "cezar";
8122
- 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";
8123
- registeredAt: string;
8124
- phase: "cancelled" | "delivered" | "open" | "resolved";
8125
- resolvedAt?: string | undefined;
8126
- deliveredAt?: string | undefined;
8127
- cancelledAt?: string | undefined;
8128
- turnId: string;
8129
- kind: "process";
8130
- deadline: string;
8131
- timeoutSeconds: number;
8132
- pid: number;
8133
- startToken?: string | undefined;
8134
- exitFile?: string | undefined;
8135
- note?: string | undefined;
8136
- result?: {
8137
- outcome: "deadline" | "error" | "exit_file" | "exited";
8138
- observedAt: string;
8139
- exitCode?: number | undefined;
8140
- exitFileNote?: "not-an-exit-code" | undefined;
8141
- diagnostic?: string | undefined;
8142
- } | undefined;
8143
8143
  } | {
8144
8144
  id: string;
8145
8145
  source: "agent" | "cezar";
@@ -8272,6 +8272,30 @@ export declare function createRunsRoutes(deps: RunsRouteDeps): import("hono/hono
8272
8272
  deadline: string;
8273
8273
  seconds: number;
8274
8274
  note?: string | undefined;
8275
+ } | {
8276
+ id: string;
8277
+ source: "agent" | "cezar";
8278
+ 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";
8279
+ registeredAt: string;
8280
+ phase: "cancelled" | "delivered" | "open" | "resolved";
8281
+ resolvedAt?: string | undefined;
8282
+ deliveredAt?: string | undefined;
8283
+ cancelledAt?: string | undefined;
8284
+ turnId: string;
8285
+ kind: "process";
8286
+ deadline: string;
8287
+ timeoutSeconds: number;
8288
+ pid: number;
8289
+ startToken?: string | undefined;
8290
+ exitFile?: string | undefined;
8291
+ note?: string | undefined;
8292
+ result?: {
8293
+ outcome: "deadline" | "error" | "exit_file" | "exited";
8294
+ observedAt: string;
8295
+ exitCode?: number | undefined;
8296
+ exitFileNote?: "not-an-exit-code" | undefined;
8297
+ diagnostic?: string | undefined;
8298
+ } | undefined;
8275
8299
  } | {
8276
8300
  id: string;
8277
8301
  source: "agent" | "cezar";
@@ -8333,30 +8357,6 @@ export declare function createRunsRoutes(deps: RunsRouteDeps): import("hono/hono
8333
8357
  reason: "outcome" | "timeout";
8334
8358
  } | undefined;
8335
8359
  wakeInputId?: string | undefined;
8336
- } | {
8337
- id: string;
8338
- source: "agent" | "cezar";
8339
- 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";
8340
- registeredAt: string;
8341
- phase: "cancelled" | "delivered" | "open" | "resolved";
8342
- resolvedAt?: string | undefined;
8343
- deliveredAt?: string | undefined;
8344
- cancelledAt?: string | undefined;
8345
- turnId: string;
8346
- kind: "process";
8347
- deadline: string;
8348
- timeoutSeconds: number;
8349
- pid: number;
8350
- startToken?: string | undefined;
8351
- exitFile?: string | undefined;
8352
- note?: string | undefined;
8353
- result?: {
8354
- outcome: "deadline" | "error" | "exit_file" | "exited";
8355
- observedAt: string;
8356
- exitCode?: number | undefined;
8357
- exitFileNote?: "not-an-exit-code" | undefined;
8358
- diagnostic?: string | undefined;
8359
- } | undefined;
8360
8360
  } | {
8361
8361
  id: string;
8362
8362
  source: "agent" | "cezar";
@@ -8488,6 +8488,30 @@ export declare function createRunsRoutes(deps: RunsRouteDeps): import("hono/hono
8488
8488
  deadline: string;
8489
8489
  seconds: number;
8490
8490
  note?: string | undefined;
8491
+ } | {
8492
+ id: string;
8493
+ source: "agent" | "cezar";
8494
+ 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";
8495
+ registeredAt: string;
8496
+ phase: "cancelled" | "delivered" | "open" | "resolved";
8497
+ resolvedAt?: string | undefined;
8498
+ deliveredAt?: string | undefined;
8499
+ cancelledAt?: string | undefined;
8500
+ turnId: string;
8501
+ kind: "process";
8502
+ deadline: string;
8503
+ timeoutSeconds: number;
8504
+ pid: number;
8505
+ startToken?: string | undefined;
8506
+ exitFile?: string | undefined;
8507
+ note?: string | undefined;
8508
+ result?: {
8509
+ outcome: "deadline" | "error" | "exit_file" | "exited";
8510
+ observedAt: string;
8511
+ exitCode?: number | undefined;
8512
+ exitFileNote?: "not-an-exit-code" | undefined;
8513
+ diagnostic?: string | undefined;
8514
+ } | undefined;
8491
8515
  } | {
8492
8516
  id: string;
8493
8517
  source: "agent" | "cezar";
@@ -8549,30 +8573,6 @@ export declare function createRunsRoutes(deps: RunsRouteDeps): import("hono/hono
8549
8573
  reason: "outcome" | "timeout";
8550
8574
  } | undefined;
8551
8575
  wakeInputId?: string | undefined;
8552
- } | {
8553
- id: string;
8554
- source: "agent" | "cezar";
8555
- 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";
8556
- registeredAt: string;
8557
- phase: "cancelled" | "delivered" | "open" | "resolved";
8558
- resolvedAt?: string | undefined;
8559
- deliveredAt?: string | undefined;
8560
- cancelledAt?: string | undefined;
8561
- turnId: string;
8562
- kind: "process";
8563
- deadline: string;
8564
- timeoutSeconds: number;
8565
- pid: number;
8566
- startToken?: string | undefined;
8567
- exitFile?: string | undefined;
8568
- note?: string | undefined;
8569
- result?: {
8570
- outcome: "deadline" | "error" | "exit_file" | "exited";
8571
- observedAt: string;
8572
- exitCode?: number | undefined;
8573
- exitFileNote?: "not-an-exit-code" | undefined;
8574
- diagnostic?: string | undefined;
8575
- } | undefined;
8576
8576
  } | {
8577
8577
  id: string;
8578
8578
  source: "agent" | "cezar";
@@ -9189,6 +9189,17 @@ export declare function createRunsRoutes(deps: RunsRouteDeps): import("hono/hono
9189
9189
  } & {
9190
9190
  "/runs/:id": {
9191
9191
  $get: {
9192
+ output: {
9193
+ error: string;
9194
+ };
9195
+ outputFormat: "json";
9196
+ status: 404;
9197
+ input: {
9198
+ param: {
9199
+ id: string;
9200
+ };
9201
+ };
9202
+ } | {
9192
9203
  output: {
9193
9204
  archiveWhenDone?: boolean | undefined;
9194
9205
  autoMergePr?: boolean | undefined;
@@ -9579,6 +9590,30 @@ export declare function createRunsRoutes(deps: RunsRouteDeps): import("hono/hono
9579
9590
  deadline: string;
9580
9591
  seconds: number;
9581
9592
  note?: string | undefined;
9593
+ } | {
9594
+ id: string;
9595
+ source: "agent" | "cezar";
9596
+ 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";
9597
+ registeredAt: string;
9598
+ phase: "cancelled" | "delivered" | "open" | "resolved";
9599
+ resolvedAt?: string | undefined;
9600
+ deliveredAt?: string | undefined;
9601
+ cancelledAt?: string | undefined;
9602
+ turnId: string;
9603
+ kind: "process";
9604
+ deadline: string;
9605
+ timeoutSeconds: number;
9606
+ pid: number;
9607
+ startToken?: string | undefined;
9608
+ exitFile?: string | undefined;
9609
+ note?: string | undefined;
9610
+ result?: {
9611
+ outcome: "deadline" | "error" | "exit_file" | "exited";
9612
+ observedAt: string;
9613
+ exitCode?: number | undefined;
9614
+ exitFileNote?: "not-an-exit-code" | undefined;
9615
+ diagnostic?: string | undefined;
9616
+ } | undefined;
9582
9617
  } | {
9583
9618
  id: string;
9584
9619
  source: "agent" | "cezar";
@@ -9640,30 +9675,6 @@ export declare function createRunsRoutes(deps: RunsRouteDeps): import("hono/hono
9640
9675
  reason: "outcome" | "timeout";
9641
9676
  } | undefined;
9642
9677
  wakeInputId?: string | undefined;
9643
- } | {
9644
- id: string;
9645
- source: "agent" | "cezar";
9646
- 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";
9647
- registeredAt: string;
9648
- phase: "cancelled" | "delivered" | "open" | "resolved";
9649
- resolvedAt?: string | undefined;
9650
- deliveredAt?: string | undefined;
9651
- cancelledAt?: string | undefined;
9652
- turnId: string;
9653
- kind: "process";
9654
- deadline: string;
9655
- timeoutSeconds: number;
9656
- pid: number;
9657
- startToken?: string | undefined;
9658
- exitFile?: string | undefined;
9659
- note?: string | undefined;
9660
- result?: {
9661
- outcome: "deadline" | "error" | "exit_file" | "exited";
9662
- observedAt: string;
9663
- exitCode?: number | undefined;
9664
- exitFileNote?: "not-an-exit-code" | undefined;
9665
- diagnostic?: string | undefined;
9666
- } | undefined;
9667
9678
  } | {
9668
9679
  id: string;
9669
9680
  source: "agent" | "cezar";
@@ -9796,6 +9807,30 @@ export declare function createRunsRoutes(deps: RunsRouteDeps): import("hono/hono
9796
9807
  deadline: string;
9797
9808
  seconds: number;
9798
9809
  note?: string | undefined;
9810
+ } | {
9811
+ id: string;
9812
+ source: "agent" | "cezar";
9813
+ 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";
9814
+ registeredAt: string;
9815
+ phase: "cancelled" | "delivered" | "open" | "resolved";
9816
+ resolvedAt?: string | undefined;
9817
+ deliveredAt?: string | undefined;
9818
+ cancelledAt?: string | undefined;
9819
+ turnId: string;
9820
+ kind: "process";
9821
+ deadline: string;
9822
+ timeoutSeconds: number;
9823
+ pid: number;
9824
+ startToken?: string | undefined;
9825
+ exitFile?: string | undefined;
9826
+ note?: string | undefined;
9827
+ result?: {
9828
+ outcome: "deadline" | "error" | "exit_file" | "exited";
9829
+ observedAt: string;
9830
+ exitCode?: number | undefined;
9831
+ exitFileNote?: "not-an-exit-code" | undefined;
9832
+ diagnostic?: string | undefined;
9833
+ } | undefined;
9799
9834
  } | {
9800
9835
  id: string;
9801
9836
  source: "agent" | "cezar";
@@ -9857,30 +9892,6 @@ export declare function createRunsRoutes(deps: RunsRouteDeps): import("hono/hono
9857
9892
  reason: "outcome" | "timeout";
9858
9893
  } | undefined;
9859
9894
  wakeInputId?: string | undefined;
9860
- } | {
9861
- id: string;
9862
- source: "agent" | "cezar";
9863
- 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";
9864
- registeredAt: string;
9865
- phase: "cancelled" | "delivered" | "open" | "resolved";
9866
- resolvedAt?: string | undefined;
9867
- deliveredAt?: string | undefined;
9868
- cancelledAt?: string | undefined;
9869
- turnId: string;
9870
- kind: "process";
9871
- deadline: string;
9872
- timeoutSeconds: number;
9873
- pid: number;
9874
- startToken?: string | undefined;
9875
- exitFile?: string | undefined;
9876
- note?: string | undefined;
9877
- result?: {
9878
- outcome: "deadline" | "error" | "exit_file" | "exited";
9879
- observedAt: string;
9880
- exitCode?: number | undefined;
9881
- exitFileNote?: "not-an-exit-code" | undefined;
9882
- diagnostic?: string | undefined;
9883
- } | undefined;
9884
9895
  } | {
9885
9896
  id: string;
9886
9897
  source: "agent" | "cezar";
@@ -10012,6 +10023,30 @@ export declare function createRunsRoutes(deps: RunsRouteDeps): import("hono/hono
10012
10023
  deadline: string;
10013
10024
  seconds: number;
10014
10025
  note?: string | undefined;
10026
+ } | {
10027
+ id: string;
10028
+ source: "agent" | "cezar";
10029
+ 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";
10030
+ registeredAt: string;
10031
+ phase: "cancelled" | "delivered" | "open" | "resolved";
10032
+ resolvedAt?: string | undefined;
10033
+ deliveredAt?: string | undefined;
10034
+ cancelledAt?: string | undefined;
10035
+ turnId: string;
10036
+ kind: "process";
10037
+ deadline: string;
10038
+ timeoutSeconds: number;
10039
+ pid: number;
10040
+ startToken?: string | undefined;
10041
+ exitFile?: string | undefined;
10042
+ note?: string | undefined;
10043
+ result?: {
10044
+ outcome: "deadline" | "error" | "exit_file" | "exited";
10045
+ observedAt: string;
10046
+ exitCode?: number | undefined;
10047
+ exitFileNote?: "not-an-exit-code" | undefined;
10048
+ diagnostic?: string | undefined;
10049
+ } | undefined;
10015
10050
  } | {
10016
10051
  id: string;
10017
10052
  source: "agent" | "cezar";
@@ -10073,30 +10108,6 @@ export declare function createRunsRoutes(deps: RunsRouteDeps): import("hono/hono
10073
10108
  reason: "outcome" | "timeout";
10074
10109
  } | undefined;
10075
10110
  wakeInputId?: string | undefined;
10076
- } | {
10077
- id: string;
10078
- source: "agent" | "cezar";
10079
- 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";
10080
- registeredAt: string;
10081
- phase: "cancelled" | "delivered" | "open" | "resolved";
10082
- resolvedAt?: string | undefined;
10083
- deliveredAt?: string | undefined;
10084
- cancelledAt?: string | undefined;
10085
- turnId: string;
10086
- kind: "process";
10087
- deadline: string;
10088
- timeoutSeconds: number;
10089
- pid: number;
10090
- startToken?: string | undefined;
10091
- exitFile?: string | undefined;
10092
- note?: string | undefined;
10093
- result?: {
10094
- outcome: "deadline" | "error" | "exit_file" | "exited";
10095
- observedAt: string;
10096
- exitCode?: number | undefined;
10097
- exitFileNote?: "not-an-exit-code" | undefined;
10098
- diagnostic?: string | undefined;
10099
- } | undefined;
10100
10111
  } | {
10101
10112
  id: string;
10102
10113
  source: "agent" | "cezar";
@@ -10372,17 +10383,6 @@ export declare function createRunsRoutes(deps: RunsRouteDeps): import("hono/hono
10372
10383
  id: string;
10373
10384
  };
10374
10385
  };
10375
- } | {
10376
- output: {
10377
- error: string;
10378
- };
10379
- outputFormat: "json";
10380
- status: 404;
10381
- input: {
10382
- param: {
10383
- id: string;
10384
- };
10385
- };
10386
10386
  };
10387
10387
  };
10388
10388
  } & {
@@ -10467,11 +10467,64 @@ export declare function createRunsRoutes(deps: RunsRouteDeps): import("hono/hono
10467
10467
  $get: {
10468
10468
  output: {
10469
10469
  error: string;
10470
- code?: "invalid_input" | undefined;
10470
+ code?: "invalid_input" | undefined;
10471
+ };
10472
+ outputFormat: "json";
10473
+ status: 400;
10474
+ input: {
10475
+ param: {
10476
+ id: string;
10477
+ };
10478
+ };
10479
+ } | {
10480
+ output: {
10481
+ error: string;
10482
+ };
10483
+ outputFormat: "json";
10484
+ status: 404;
10485
+ input: {
10486
+ param: {
10487
+ id: string;
10488
+ };
10489
+ };
10490
+ } | {
10491
+ output: {
10492
+ contextEvents: {
10493
+ [x: string]: any;
10494
+ seq: number;
10495
+ ts: string;
10496
+ stepId?: string | undefined;
10497
+ type: string;
10498
+ }[];
10499
+ asOfSeq: number;
10500
+ };
10501
+ outputFormat: "json";
10502
+ status: import("hono/utils/http-status").ContentfulStatusCode;
10503
+ input: {
10504
+ param: {
10505
+ id: string;
10506
+ };
10507
+ };
10508
+ };
10509
+ };
10510
+ } & {
10511
+ "/runs/:id": {
10512
+ $patch: {
10513
+ output: {
10514
+ error: string;
10471
10515
  };
10472
10516
  outputFormat: "json";
10473
10517
  status: 400;
10474
10518
  input: {
10519
+ json: {
10520
+ archiveWhenDone?: boolean | undefined;
10521
+ autoMergePr?: boolean | undefined;
10522
+ allowWorkers?: boolean | undefined;
10523
+ allowMessaging?: boolean | undefined;
10524
+ title?: string | undefined;
10525
+ task?: string | undefined;
10526
+ };
10527
+ } & {
10475
10528
  param: {
10476
10529
  id: string;
10477
10530
  };
@@ -10483,33 +10536,40 @@ export declare function createRunsRoutes(deps: RunsRouteDeps): import("hono/hono
10483
10536
  outputFormat: "json";
10484
10537
  status: 404;
10485
10538
  input: {
10539
+ json: {
10540
+ archiveWhenDone?: boolean | undefined;
10541
+ autoMergePr?: boolean | undefined;
10542
+ allowWorkers?: boolean | undefined;
10543
+ allowMessaging?: boolean | undefined;
10544
+ title?: string | undefined;
10545
+ task?: string | undefined;
10546
+ };
10547
+ } & {
10486
10548
  param: {
10487
10549
  id: string;
10488
10550
  };
10489
10551
  };
10490
10552
  } | {
10491
10553
  output: {
10492
- contextEvents: {
10493
- [x: string]: any;
10494
- seq: number;
10495
- ts: string;
10496
- stepId?: string | undefined;
10497
- type: string;
10498
- }[];
10499
- asOfSeq: number;
10554
+ error: string;
10500
10555
  };
10501
10556
  outputFormat: "json";
10502
- status: import("hono/utils/http-status").ContentfulStatusCode;
10557
+ status: 409;
10503
10558
  input: {
10559
+ json: {
10560
+ archiveWhenDone?: boolean | undefined;
10561
+ autoMergePr?: boolean | undefined;
10562
+ allowWorkers?: boolean | undefined;
10563
+ allowMessaging?: boolean | undefined;
10564
+ title?: string | undefined;
10565
+ task?: string | undefined;
10566
+ };
10567
+ } & {
10504
10568
  param: {
10505
10569
  id: string;
10506
10570
  };
10507
10571
  };
10508
- };
10509
- };
10510
- } & {
10511
- "/runs/:id": {
10512
- $patch: {
10572
+ } | {
10513
10573
  output: {
10514
10574
  archiveWhenDone?: boolean | undefined;
10515
10575
  autoMergePr?: boolean | undefined;
@@ -10647,6 +10707,30 @@ export declare function createRunsRoutes(deps: RunsRouteDeps): import("hono/hono
10647
10707
  deadline: string;
10648
10708
  seconds: number;
10649
10709
  note?: string | undefined;
10710
+ } | {
10711
+ id: string;
10712
+ source: "agent" | "cezar";
10713
+ 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";
10714
+ registeredAt: string;
10715
+ phase: "cancelled" | "delivered" | "open" | "resolved";
10716
+ resolvedAt?: string | undefined;
10717
+ deliveredAt?: string | undefined;
10718
+ cancelledAt?: string | undefined;
10719
+ turnId: string;
10720
+ kind: "process";
10721
+ deadline: string;
10722
+ timeoutSeconds: number;
10723
+ pid: number;
10724
+ startToken?: string | undefined;
10725
+ exitFile?: string | undefined;
10726
+ note?: string | undefined;
10727
+ result?: {
10728
+ outcome: "deadline" | "error" | "exit_file" | "exited";
10729
+ observedAt: string;
10730
+ exitCode?: number | undefined;
10731
+ exitFileNote?: "not-an-exit-code" | undefined;
10732
+ diagnostic?: string | undefined;
10733
+ } | undefined;
10650
10734
  } | {
10651
10735
  id: string;
10652
10736
  source: "agent" | "cezar";
@@ -10708,30 +10792,6 @@ export declare function createRunsRoutes(deps: RunsRouteDeps): import("hono/hono
10708
10792
  reason: "outcome" | "timeout";
10709
10793
  } | undefined;
10710
10794
  wakeInputId?: string | undefined;
10711
- } | {
10712
- id: string;
10713
- source: "agent" | "cezar";
10714
- 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";
10715
- registeredAt: string;
10716
- phase: "cancelled" | "delivered" | "open" | "resolved";
10717
- resolvedAt?: string | undefined;
10718
- deliveredAt?: string | undefined;
10719
- cancelledAt?: string | undefined;
10720
- turnId: string;
10721
- kind: "process";
10722
- deadline: string;
10723
- timeoutSeconds: number;
10724
- pid: number;
10725
- startToken?: string | undefined;
10726
- exitFile?: string | undefined;
10727
- note?: string | undefined;
10728
- result?: {
10729
- outcome: "deadline" | "error" | "exit_file" | "exited";
10730
- observedAt: string;
10731
- exitCode?: number | undefined;
10732
- exitFileNote?: "not-an-exit-code" | undefined;
10733
- diagnostic?: string | undefined;
10734
- } | undefined;
10735
10795
  } | {
10736
10796
  id: string;
10737
10797
  source: "agent" | "cezar";
@@ -10864,6 +10924,30 @@ export declare function createRunsRoutes(deps: RunsRouteDeps): import("hono/hono
10864
10924
  deadline: string;
10865
10925
  seconds: number;
10866
10926
  note?: string | undefined;
10927
+ } | {
10928
+ id: string;
10929
+ source: "agent" | "cezar";
10930
+ 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";
10931
+ registeredAt: string;
10932
+ phase: "cancelled" | "delivered" | "open" | "resolved";
10933
+ resolvedAt?: string | undefined;
10934
+ deliveredAt?: string | undefined;
10935
+ cancelledAt?: string | undefined;
10936
+ turnId: string;
10937
+ kind: "process";
10938
+ deadline: string;
10939
+ timeoutSeconds: number;
10940
+ pid: number;
10941
+ startToken?: string | undefined;
10942
+ exitFile?: string | undefined;
10943
+ note?: string | undefined;
10944
+ result?: {
10945
+ outcome: "deadline" | "error" | "exit_file" | "exited";
10946
+ observedAt: string;
10947
+ exitCode?: number | undefined;
10948
+ exitFileNote?: "not-an-exit-code" | undefined;
10949
+ diagnostic?: string | undefined;
10950
+ } | undefined;
10867
10951
  } | {
10868
10952
  id: string;
10869
10953
  source: "agent" | "cezar";
@@ -10925,30 +11009,6 @@ export declare function createRunsRoutes(deps: RunsRouteDeps): import("hono/hono
10925
11009
  reason: "outcome" | "timeout";
10926
11010
  } | undefined;
10927
11011
  wakeInputId?: string | undefined;
10928
- } | {
10929
- id: string;
10930
- source: "agent" | "cezar";
10931
- 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";
10932
- registeredAt: string;
10933
- phase: "cancelled" | "delivered" | "open" | "resolved";
10934
- resolvedAt?: string | undefined;
10935
- deliveredAt?: string | undefined;
10936
- cancelledAt?: string | undefined;
10937
- turnId: string;
10938
- kind: "process";
10939
- deadline: string;
10940
- timeoutSeconds: number;
10941
- pid: number;
10942
- startToken?: string | undefined;
10943
- exitFile?: string | undefined;
10944
- note?: string | undefined;
10945
- result?: {
10946
- outcome: "deadline" | "error" | "exit_file" | "exited";
10947
- observedAt: string;
10948
- exitCode?: number | undefined;
10949
- exitFileNote?: "not-an-exit-code" | undefined;
10950
- diagnostic?: string | undefined;
10951
- } | undefined;
10952
11012
  } | {
10953
11013
  id: string;
10954
11014
  source: "agent" | "cezar";
@@ -11080,6 +11140,30 @@ export declare function createRunsRoutes(deps: RunsRouteDeps): import("hono/hono
11080
11140
  deadline: string;
11081
11141
  seconds: number;
11082
11142
  note?: string | undefined;
11143
+ } | {
11144
+ id: string;
11145
+ source: "agent" | "cezar";
11146
+ 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";
11147
+ registeredAt: string;
11148
+ phase: "cancelled" | "delivered" | "open" | "resolved";
11149
+ resolvedAt?: string | undefined;
11150
+ deliveredAt?: string | undefined;
11151
+ cancelledAt?: string | undefined;
11152
+ turnId: string;
11153
+ kind: "process";
11154
+ deadline: string;
11155
+ timeoutSeconds: number;
11156
+ pid: number;
11157
+ startToken?: string | undefined;
11158
+ exitFile?: string | undefined;
11159
+ note?: string | undefined;
11160
+ result?: {
11161
+ outcome: "deadline" | "error" | "exit_file" | "exited";
11162
+ observedAt: string;
11163
+ exitCode?: number | undefined;
11164
+ exitFileNote?: "not-an-exit-code" | undefined;
11165
+ diagnostic?: string | undefined;
11166
+ } | undefined;
11083
11167
  } | {
11084
11168
  id: string;
11085
11169
  source: "agent" | "cezar";
@@ -11141,30 +11225,6 @@ export declare function createRunsRoutes(deps: RunsRouteDeps): import("hono/hono
11141
11225
  reason: "outcome" | "timeout";
11142
11226
  } | undefined;
11143
11227
  wakeInputId?: string | undefined;
11144
- } | {
11145
- id: string;
11146
- source: "agent" | "cezar";
11147
- 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";
11148
- registeredAt: string;
11149
- phase: "cancelled" | "delivered" | "open" | "resolved";
11150
- resolvedAt?: string | undefined;
11151
- deliveredAt?: string | undefined;
11152
- cancelledAt?: string | undefined;
11153
- turnId: string;
11154
- kind: "process";
11155
- deadline: string;
11156
- timeoutSeconds: number;
11157
- pid: number;
11158
- startToken?: string | undefined;
11159
- exitFile?: string | undefined;
11160
- note?: string | undefined;
11161
- result?: {
11162
- outcome: "deadline" | "error" | "exit_file" | "exited";
11163
- observedAt: string;
11164
- exitCode?: number | undefined;
11165
- exitFileNote?: "not-an-exit-code" | undefined;
11166
- diagnostic?: string | undefined;
11167
- } | undefined;
11168
11228
  } | {
11169
11229
  id: string;
11170
11230
  source: "agent" | "cezar";
@@ -11694,66 +11754,6 @@ export declare function createRunsRoutes(deps: RunsRouteDeps): import("hono/hono
11694
11754
  id: string;
11695
11755
  };
11696
11756
  };
11697
- } | {
11698
- output: {
11699
- error: string;
11700
- };
11701
- outputFormat: "json";
11702
- status: 404;
11703
- input: {
11704
- json: {
11705
- archiveWhenDone?: boolean | undefined;
11706
- autoMergePr?: boolean | undefined;
11707
- allowWorkers?: boolean | undefined;
11708
- allowMessaging?: boolean | undefined;
11709
- title?: string | undefined;
11710
- task?: string | undefined;
11711
- };
11712
- } & {
11713
- param: {
11714
- id: string;
11715
- };
11716
- };
11717
- } | {
11718
- output: {
11719
- error: string;
11720
- };
11721
- outputFormat: "json";
11722
- status: 400;
11723
- input: {
11724
- json: {
11725
- archiveWhenDone?: boolean | undefined;
11726
- autoMergePr?: boolean | undefined;
11727
- allowWorkers?: boolean | undefined;
11728
- allowMessaging?: boolean | undefined;
11729
- title?: string | undefined;
11730
- task?: string | undefined;
11731
- };
11732
- } & {
11733
- param: {
11734
- id: string;
11735
- };
11736
- };
11737
- } | {
11738
- output: {
11739
- error: string;
11740
- };
11741
- outputFormat: "json";
11742
- status: 409;
11743
- input: {
11744
- json: {
11745
- archiveWhenDone?: boolean | undefined;
11746
- autoMergePr?: boolean | undefined;
11747
- allowWorkers?: boolean | undefined;
11748
- allowMessaging?: boolean | undefined;
11749
- title?: string | undefined;
11750
- task?: string | undefined;
11751
- };
11752
- } & {
11753
- param: {
11754
- id: string;
11755
- };
11756
- };
11757
11757
  };
11758
11758
  };
11759
11759
  } & {
@@ -11858,7 +11858,7 @@ export declare function createRunsRoutes(deps: RunsRouteDeps): import("hono/hono
11858
11858
  error: string;
11859
11859
  };
11860
11860
  outputFormat: "json";
11861
- status: 404;
11861
+ status: 400;
11862
11862
  input: {
11863
11863
  json: {
11864
11864
  text?: string | undefined;
@@ -11877,7 +11877,7 @@ export declare function createRunsRoutes(deps: RunsRouteDeps): import("hono/hono
11877
11877
  error: string;
11878
11878
  };
11879
11879
  outputFormat: "json";
11880
- status: 409;
11880
+ status: 404;
11881
11881
  input: {
11882
11882
  json: {
11883
11883
  text?: string | undefined;
@@ -11893,10 +11893,10 @@ export declare function createRunsRoutes(deps: RunsRouteDeps): import("hono/hono
11893
11893
  };
11894
11894
  } | {
11895
11895
  output: {
11896
- delivered: true;
11896
+ error: string;
11897
11897
  };
11898
11898
  outputFormat: "json";
11899
- status: import("hono/utils/http-status").ContentfulStatusCode;
11899
+ status: 409;
11900
11900
  input: {
11901
11901
  json: {
11902
11902
  text?: string | undefined;
@@ -11912,10 +11912,10 @@ export declare function createRunsRoutes(deps: RunsRouteDeps): import("hono/hono
11912
11912
  };
11913
11913
  } | {
11914
11914
  output: {
11915
- error: string;
11915
+ delivered: true;
11916
11916
  };
11917
11917
  outputFormat: "json";
11918
- status: 400;
11918
+ status: import("hono/utils/http-status").ContentfulStatusCode;
11919
11919
  input: {
11920
11920
  json: {
11921
11921
  text?: string | undefined;
@@ -11983,7 +11983,7 @@ export declare function createRunsRoutes(deps: RunsRouteDeps): import("hono/hono
11983
11983
  error: string;
11984
11984
  };
11985
11985
  outputFormat: "json";
11986
- status: 404;
11986
+ status: 400;
11987
11987
  input: {
11988
11988
  json: {
11989
11989
  text?: string | undefined;
@@ -12004,7 +12004,7 @@ export declare function createRunsRoutes(deps: RunsRouteDeps): import("hono/hono
12004
12004
  error: string;
12005
12005
  };
12006
12006
  outputFormat: "json";
12007
- status: 400;
12007
+ status: 404;
12008
12008
  input: {
12009
12009
  json: {
12010
12010
  text?: string | undefined;
@@ -12224,10 +12224,11 @@ export declare function createRunsRoutes(deps: RunsRouteDeps): import("hono/hono
12224
12224
  "/runs/:id/open-in-cli": {
12225
12225
  $post: {
12226
12226
  output: {
12227
- error: string;
12227
+ opened: true;
12228
+ command: string;
12228
12229
  };
12229
12230
  outputFormat: "json";
12230
- status: 404 | 409;
12231
+ status: import("hono/utils/http-status").ContentfulStatusCode;
12231
12232
  input: {
12232
12233
  param: {
12233
12234
  id: string;
@@ -12235,11 +12236,10 @@ export declare function createRunsRoutes(deps: RunsRouteDeps): import("hono/hono
12235
12236
  };
12236
12237
  } | {
12237
12238
  output: {
12238
- opened: true;
12239
- command: string;
12239
+ error: string;
12240
12240
  };
12241
12241
  outputFormat: "json";
12242
- status: import("hono/utils/http-status").ContentfulStatusCode;
12242
+ status: 404 | 409;
12243
12243
  input: {
12244
12244
  param: {
12245
12245
  id: string;
@@ -12254,7 +12254,7 @@ export declare function createRunsRoutes(deps: RunsRouteDeps): import("hono/hono
12254
12254
  error: string;
12255
12255
  };
12256
12256
  outputFormat: "json";
12257
- status: 404 | 409;
12257
+ status: 400;
12258
12258
  input: {
12259
12259
  json: {
12260
12260
  target: string;
@@ -12267,10 +12267,11 @@ export declare function createRunsRoutes(deps: RunsRouteDeps): import("hono/hono
12267
12267
  };
12268
12268
  } | {
12269
12269
  output: {
12270
- error: string;
12270
+ opened: true;
12271
+ path: string;
12271
12272
  };
12272
12273
  outputFormat: "json";
12273
- status: 400;
12274
+ status: import("hono/utils/http-status").ContentfulStatusCode;
12274
12275
  input: {
12275
12276
  json: {
12276
12277
  target: string;
@@ -12283,11 +12284,10 @@ export declare function createRunsRoutes(deps: RunsRouteDeps): import("hono/hono
12283
12284
  };
12284
12285
  } | {
12285
12286
  output: {
12286
- opened: true;
12287
- path: string;
12287
+ error: string;
12288
12288
  };
12289
12289
  outputFormat: "json";
12290
- status: import("hono/utils/http-status").ContentfulStatusCode;
12290
+ status: 404 | 409;
12291
12291
  input: {
12292
12292
  json: {
12293
12293
  target: string;
@@ -12327,9 +12327,12 @@ export declare function createRunsRoutes(deps: RunsRouteDeps): import("hono/hono
12327
12327
  } & {
12328
12328
  "/runs/:id/images/:file": {
12329
12329
  $get: {
12330
- output: {};
12331
- outputFormat: string;
12332
- status: import("hono/utils/http-status").StatusCode;
12330
+ output: {
12331
+ error: string;
12332
+ code?: "invalid_input" | undefined;
12333
+ };
12334
+ outputFormat: "json";
12335
+ status: 400;
12333
12336
  input: {
12334
12337
  param: {
12335
12338
  id: string;
@@ -12337,12 +12340,9 @@ export declare function createRunsRoutes(deps: RunsRouteDeps): import("hono/hono
12337
12340
  };
12338
12341
  };
12339
12342
  } | {
12340
- output: {
12341
- error: string;
12342
- code?: "invalid_input" | undefined;
12343
- };
12344
- outputFormat: "json";
12345
- status: 400;
12343
+ output: {};
12344
+ outputFormat: string;
12345
+ status: import("hono/utils/http-status").StatusCode;
12346
12346
  input: {
12347
12347
  param: {
12348
12348
  id: string;
@@ -12378,17 +12378,6 @@ export declare function createRunsRoutes(deps: RunsRouteDeps): import("hono/hono
12378
12378
  } & {
12379
12379
  "/runs/:id/changes": {
12380
12380
  $get: {
12381
- output: {
12382
- error: string;
12383
- };
12384
- outputFormat: "json";
12385
- status: 404 | 409;
12386
- input: {
12387
- param: {
12388
- id: string;
12389
- };
12390
- };
12391
- } | {
12392
12381
  output: {
12393
12382
  files: {
12394
12383
  path: string;
@@ -12417,11 +12406,7 @@ export declare function createRunsRoutes(deps: RunsRouteDeps): import("hono/hono
12417
12406
  id: string;
12418
12407
  };
12419
12408
  };
12420
- };
12421
- };
12422
- } & {
12423
- "/runs/:id/commits": {
12424
- $get: {
12409
+ } | {
12425
12410
  output: {
12426
12411
  error: string;
12427
12412
  };
@@ -12432,7 +12417,11 @@ export declare function createRunsRoutes(deps: RunsRouteDeps): import("hono/hono
12432
12417
  id: string;
12433
12418
  };
12434
12419
  };
12435
- } | {
12420
+ };
12421
+ };
12422
+ } & {
12423
+ "/runs/:id/commits": {
12424
+ $get: {
12436
12425
  output: {
12437
12426
  commits: {
12438
12427
  sha: string;
@@ -12448,11 +12437,7 @@ export declare function createRunsRoutes(deps: RunsRouteDeps): import("hono/hono
12448
12437
  id: string;
12449
12438
  };
12450
12439
  };
12451
- };
12452
- };
12453
- } & {
12454
- "/runs/:id/commit/:sha": {
12455
- $get: {
12440
+ } | {
12456
12441
  output: {
12457
12442
  error: string;
12458
12443
  };
@@ -12461,11 +12446,13 @@ export declare function createRunsRoutes(deps: RunsRouteDeps): import("hono/hono
12461
12446
  input: {
12462
12447
  param: {
12463
12448
  id: string;
12464
- } & {
12465
- sha: string;
12466
12449
  };
12467
12450
  };
12468
- } | {
12451
+ };
12452
+ };
12453
+ } & {
12454
+ "/runs/:id/commit/:sha": {
12455
+ $get: {
12469
12456
  output: {
12470
12457
  sha: string;
12471
12458
  subject: string;
@@ -12496,6 +12483,19 @@ export declare function createRunsRoutes(deps: RunsRouteDeps): import("hono/hono
12496
12483
  sha: string;
12497
12484
  };
12498
12485
  };
12486
+ } | {
12487
+ output: {
12488
+ error: string;
12489
+ };
12490
+ outputFormat: "json";
12491
+ status: 404 | 409;
12492
+ input: {
12493
+ param: {
12494
+ id: string;
12495
+ } & {
12496
+ sha: string;
12497
+ };
12498
+ };
12499
12499
  };
12500
12500
  };
12501
12501
  } & {
@@ -12519,10 +12519,15 @@ export declare function createRunsRoutes(deps: RunsRouteDeps): import("hono/hono
12519
12519
  };
12520
12520
  } | {
12521
12521
  output: {
12522
- error: string;
12522
+ type: 'file';
12523
+ path: string;
12524
+ size: number;
12525
+ binary: boolean;
12526
+ tooLarge: boolean;
12527
+ content?: string | undefined;
12523
12528
  };
12524
12529
  outputFormat: "json";
12525
- status: 404 | 409;
12530
+ status: import("hono/utils/http-status").ContentfulStatusCode;
12526
12531
  input: {
12527
12532
  param: {
12528
12533
  sha: string;
@@ -12535,15 +12540,10 @@ export declare function createRunsRoutes(deps: RunsRouteDeps): import("hono/hono
12535
12540
  };
12536
12541
  } | {
12537
12542
  output: {
12538
- type: 'file';
12539
- path: string;
12540
- size: number;
12541
- binary: boolean;
12542
- tooLarge: boolean;
12543
- content?: string | undefined;
12543
+ error: string;
12544
12544
  };
12545
12545
  outputFormat: "json";
12546
- status: import("hono/utils/http-status").ContentfulStatusCode;
12546
+ status: 404 | 409;
12547
12547
  input: {
12548
12548
  param: {
12549
12549
  sha: string;
@@ -12589,22 +12589,6 @@ export declare function createRunsRoutes(deps: RunsRouteDeps): import("hono/hono
12589
12589
  raw?: "1" | undefined;
12590
12590
  };
12591
12591
  };
12592
- } | {
12593
- output: {
12594
- error: string;
12595
- };
12596
- outputFormat: "json";
12597
- status: 404 | 409;
12598
- input: {
12599
- param: {
12600
- id: string;
12601
- };
12602
- } & {
12603
- query: {
12604
- path: string | string[];
12605
- raw?: "1" | undefined;
12606
- };
12607
- };
12608
12592
  } | {
12609
12593
  output: {
12610
12594
  type: "file";
@@ -12641,6 +12625,22 @@ export declare function createRunsRoutes(deps: RunsRouteDeps): import("hono/hono
12641
12625
  raw?: "1" | undefined;
12642
12626
  };
12643
12627
  };
12628
+ } | {
12629
+ output: {
12630
+ error: string;
12631
+ };
12632
+ outputFormat: "json";
12633
+ status: 404 | 409;
12634
+ input: {
12635
+ param: {
12636
+ id: string;
12637
+ };
12638
+ } & {
12639
+ query: {
12640
+ path: string | string[];
12641
+ raw?: "1" | undefined;
12642
+ };
12643
+ };
12644
12644
  };
12645
12645
  };
12646
12646
  } & {
@@ -12705,6 +12705,18 @@ export declare function createRunsRoutes(deps: RunsRouteDeps): import("hono/hono
12705
12705
  artifactId: string;
12706
12706
  };
12707
12707
  };
12708
+ } | {
12709
+ output: {
12710
+ error: string;
12711
+ };
12712
+ outputFormat: "json";
12713
+ status: 404;
12714
+ input: {
12715
+ param: {
12716
+ id: string;
12717
+ artifactId: string;
12718
+ };
12719
+ };
12708
12720
  } | {
12709
12721
  output: {
12710
12722
  type: "file";
@@ -12733,18 +12745,6 @@ export declare function createRunsRoutes(deps: RunsRouteDeps): import("hono/hono
12733
12745
  artifactId: string;
12734
12746
  };
12735
12747
  };
12736
- } | {
12737
- output: {
12738
- error: string;
12739
- };
12740
- outputFormat: "json";
12741
- status: 404;
12742
- input: {
12743
- param: {
12744
- id: string;
12745
- artifactId: string;
12746
- };
12747
- };
12748
12748
  };
12749
12749
  };
12750
12750
  } & {
@@ -12920,22 +12920,6 @@ export declare function createRunsRoutes(deps: RunsRouteDeps): import("hono/hono
12920
12920
  id: string;
12921
12921
  };
12922
12922
  };
12923
- } | {
12924
- output: {
12925
- error: string;
12926
- };
12927
- outputFormat: "json";
12928
- status: 404 | 409;
12929
- input: {
12930
- query: {
12931
- path?: string | undefined;
12932
- raw?: string | undefined;
12933
- };
12934
- } & {
12935
- param: {
12936
- id: string;
12937
- };
12938
- };
12939
12923
  } | {
12940
12924
  output: {
12941
12925
  type: 'file';
@@ -12980,16 +12964,33 @@ export declare function createRunsRoutes(deps: RunsRouteDeps): import("hono/hono
12980
12964
  id: string;
12981
12965
  };
12982
12966
  };
12967
+ } | {
12968
+ output: {
12969
+ error: string;
12970
+ };
12971
+ outputFormat: "json";
12972
+ status: 404 | 409;
12973
+ input: {
12974
+ query: {
12975
+ path?: string | undefined;
12976
+ raw?: string | undefined;
12977
+ };
12978
+ } & {
12979
+ param: {
12980
+ id: string;
12981
+ };
12982
+ };
12983
12983
  };
12984
12984
  };
12985
12985
  } & {
12986
12986
  "/runs/:id/git/commit": {
12987
12987
  $post: {
12988
12988
  output: {
12989
- error: string;
12989
+ committed: true;
12990
+ sha: string;
12990
12991
  };
12991
12992
  outputFormat: "json";
12992
- status: 404 | 409;
12993
+ status: import("hono/utils/http-status").ContentfulStatusCode;
12993
12994
  input: {
12994
12995
  json: {
12995
12996
  message: string;
@@ -13001,11 +13002,10 @@ export declare function createRunsRoutes(deps: RunsRouteDeps): import("hono/hono
13001
13002
  };
13002
13003
  } | {
13003
13004
  output: {
13004
- committed: true;
13005
- sha: string;
13005
+ error: string;
13006
13006
  };
13007
13007
  outputFormat: "json";
13008
- status: import("hono/utils/http-status").ContentfulStatusCode;
13008
+ status: 404 | 409;
13009
13009
  input: {
13010
13010
  json: {
13011
13011
  message: string;
@@ -13021,10 +13021,13 @@ export declare function createRunsRoutes(deps: RunsRouteDeps): import("hono/hono
13021
13021
  "/runs/:id/git/push": {
13022
13022
  $post: {
13023
13023
  output: {
13024
- error: string;
13024
+ pushed: true;
13025
+ branch: string;
13026
+ remote: string;
13027
+ upstreamSet: boolean;
13025
13028
  };
13026
13029
  outputFormat: "json";
13027
- status: 404 | 409;
13030
+ status: import("hono/utils/http-status").ContentfulStatusCode;
13028
13031
  input: {
13029
13032
  param: {
13030
13033
  id: string;
@@ -13032,13 +13035,10 @@ export declare function createRunsRoutes(deps: RunsRouteDeps): import("hono/hono
13032
13035
  };
13033
13036
  } | {
13034
13037
  output: {
13035
- pushed: true;
13036
- branch: string;
13037
- remote: string;
13038
- upstreamSet: boolean;
13038
+ error: string;
13039
13039
  };
13040
13040
  outputFormat: "json";
13041
- status: import("hono/utils/http-status").ContentfulStatusCode;
13041
+ status: 404 | 409;
13042
13042
  input: {
13043
13043
  param: {
13044
13044
  id: string;
@@ -13050,10 +13050,11 @@ export declare function createRunsRoutes(deps: RunsRouteDeps): import("hono/hono
13050
13050
  "/runs/:id/pr": {
13051
13051
  $post: {
13052
13052
  output: {
13053
- error: string;
13053
+ url: string;
13054
+ dryRun: boolean;
13054
13055
  };
13055
13056
  outputFormat: "json";
13056
- status: 404 | 409;
13057
+ status: 201;
13057
13058
  input: {
13058
13059
  param: {
13059
13060
  id: string;
@@ -13061,11 +13062,10 @@ export declare function createRunsRoutes(deps: RunsRouteDeps): import("hono/hono
13061
13062
  };
13062
13063
  } | {
13063
13064
  output: {
13064
- url: string;
13065
- dryRun: boolean;
13065
+ error: string;
13066
13066
  };
13067
13067
  outputFormat: "json";
13068
- status: 201;
13068
+ status: 404 | 409;
13069
13069
  input: {
13070
13070
  param: {
13071
13071
  id: string;
@@ -13077,10 +13077,10 @@ export declare function createRunsRoutes(deps: RunsRouteDeps): import("hono/hono
13077
13077
  "/runs/:id/remove-worktree": {
13078
13078
  $post: {
13079
13079
  output: {
13080
- error: string;
13080
+ removed: true;
13081
13081
  };
13082
13082
  outputFormat: "json";
13083
- status: 404 | 409;
13083
+ status: import("hono/utils/http-status").ContentfulStatusCode;
13084
13084
  input: {
13085
13085
  param: {
13086
13086
  id: string;
@@ -13088,10 +13088,10 @@ export declare function createRunsRoutes(deps: RunsRouteDeps): import("hono/hono
13088
13088
  };
13089
13089
  } | {
13090
13090
  output: {
13091
- removed: true;
13091
+ error: string;
13092
13092
  };
13093
13093
  outputFormat: "json";
13094
- status: import("hono/utils/http-status").ContentfulStatusCode;
13094
+ status: 404 | 409;
13095
13095
  input: {
13096
13096
  param: {
13097
13097
  id: string;
@@ -13103,10 +13103,10 @@ export declare function createRunsRoutes(deps: RunsRouteDeps): import("hono/hono
13103
13103
  "/runs/:id": {
13104
13104
  $delete: {
13105
13105
  output: {
13106
- error: string;
13106
+ deleted: true;
13107
13107
  };
13108
13108
  outputFormat: "json";
13109
- status: 404 | 409;
13109
+ status: import("hono/utils/http-status").ContentfulStatusCode;
13110
13110
  input: {
13111
13111
  param: {
13112
13112
  id: string;
@@ -13114,10 +13114,10 @@ export declare function createRunsRoutes(deps: RunsRouteDeps): import("hono/hono
13114
13114
  };
13115
13115
  } | {
13116
13116
  output: {
13117
- deleted: true;
13117
+ error: string;
13118
13118
  };
13119
13119
  outputFormat: "json";
13120
- status: import("hono/utils/http-status").ContentfulStatusCode;
13120
+ status: 404 | 409;
13121
13121
  input: {
13122
13122
  param: {
13123
13123
  id: string;