@hearsay-tools/squawk 0.19.0-pr4525.8973 → 0.19.0-pr4526.8982

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 (128) hide show
  1. package/dist/contract/index.js +37 -9
  2. package/dist/contract/query-requests.d.ts +5 -0
  3. package/dist/contract/repo.d.ts +42 -0
  4. package/dist/core/forge-registry.d.ts +9 -0
  5. package/dist/core/forge-registry.js.map +1 -1
  6. package/dist/features/automations/tools.d.ts +8 -8
  7. package/dist/features/github/github-branch-forge.d.ts +14 -2
  8. package/dist/features/github/github-branch-forge.js +68 -2
  9. package/dist/features/github/github-branch-forge.js.map +1 -1
  10. package/dist/features/github/github-forge.js +1 -0
  11. package/dist/features/github/github-forge.js.map +1 -1
  12. package/dist/server/git-changes.d.ts +27 -0
  13. package/dist/server/git-changes.js +47 -0
  14. package/dist/server/git-changes.js.map +1 -1
  15. package/dist/server/providers-routes.d.ts +57 -57
  16. package/dist/server/repo-branch-forge.d.ts +10 -2
  17. package/dist/server/repo-branch-forge.js +25 -2
  18. package/dist/server/repo-branch-forge.js.map +1 -1
  19. package/dist/server/repo-branch-git.d.ts +6 -0
  20. package/dist/server/repo-branch-git.js +35 -0
  21. package/dist/server/repo-branch-git.js.map +1 -0
  22. package/dist/server/repo-branches.js +66 -47
  23. package/dist/server/repo-branches.js.map +1 -1
  24. package/dist/server/repo-routes.d.ts +121 -21
  25. package/dist/server/repo-routes.js +20 -3
  26. package/dist/server/repo-routes.js.map +1 -1
  27. package/dist/server/runner-install-routes.d.ts +10 -10
  28. package/dist/server/runs-routes.d.ts +1042 -984
  29. package/dist/server/runs-routes.js +12 -10
  30. package/dist/server/runs-routes.js.map +1 -1
  31. package/dist/server/server.d.ts +1743 -1427
  32. package/dist/server/workspace-routes.d.ts +85 -85
  33. package/package.json +4 -4
  34. package/web/dist/assets/{accounts-section-ubzHoDCj.js → accounts-section-C0MLZW_M.js} +1 -1
  35. package/web/dist/assets/activity-motion-DGWsLSV_.js +1 -0
  36. package/web/dist/assets/{activity-route-BJ_KGtKZ.js → activity-route-DbRrSGTZ.js} +1 -1
  37. package/web/dist/assets/{agent-config-section-hmVjtjoY.js → agent-config-section-S-NNHyTj.js} +2 -2
  38. package/web/dist/assets/agent-defaults-section-D47ydO6M.js +1 -0
  39. package/web/dist/assets/{appearance-BaczNXEP.js → appearance-BVzMVCDZ.js} +1 -1
  40. package/web/dist/assets/{archive-on-merge-field-CXbUm4s9.js → archive-on-merge-field-C7bZaOku.js} +1 -1
  41. package/web/dist/assets/attention-vW5nmGoK.js +1 -0
  42. package/web/dist/assets/automations-route-DGTAb8A_.js +2 -0
  43. package/web/dist/assets/{middle-truncated-name-TQxp8NxE.js → code-workbench-CUkiQ1pF.js} +1 -1
  44. package/web/dist/assets/commit-list-Bt4Z1k-3.js +1 -0
  45. package/web/dist/assets/{diff-_j1dYOKk.js → diff-Chs69ao_.js} +2 -2
  46. package/web/dist/assets/diff-controls-M-rIqFWN.js +1 -0
  47. package/web/dist/assets/{diff-view-hA-_3ujN.js → diff-view-bLKcANO6.js} +1 -1
  48. package/web/dist/assets/discard-changes-dialog-CZ-BAjRM.js +1 -0
  49. package/web/dist/assets/file-preview-QXwZnRnZ.js +2 -0
  50. package/web/dist/assets/file-text-nGpo7MVd.js +1 -0
  51. package/web/dist/assets/{folder-browser-DiQGbqCN.js → folder-browser-DcR_vo2i.js} +1 -1
  52. package/web/dist/assets/{git-toolbar-BavnCfoa.js → git-toolbar-xBysCptA.js} +1 -1
  53. package/web/dist/assets/github-Dq8Qn_Dk.js +1 -0
  54. package/web/dist/assets/{global-activity-route-DZNrWVSz.js → global-activity-route-D7OxyX_e.js} +2 -2
  55. package/web/dist/assets/index-CzyjmihQ.css +1 -0
  56. package/web/dist/assets/index-DDtQlxLH.js +21 -0
  57. package/web/dist/assets/{label-B1zf-eXb.js → label-CqoNP6Yh.js} +1 -1
  58. package/web/dist/assets/{markdown-BJynZeyO.js → markdown-B4GFEGdE.js} +1 -1
  59. package/web/dist/assets/middle-truncated-name-D41ibfXD.js +1 -0
  60. package/web/dist/assets/{open-in-menu-DfTnT8YF.js → open-in-menu-CsH3KL0z.js} +1 -1
  61. package/web/dist/assets/{option-select-CeMvhKGB.js → option-select-BOeViuCv.js} +1 -1
  62. package/web/dist/assets/{preferences-section-1TdwWBaU.js → preferences-section-DqsNZiXr.js} +1 -1
  63. package/web/dist/assets/preview-pane-connected-lQ_w4jh_.js +3 -0
  64. package/web/dist/assets/{project-location-zpoFmFbY.js → project-location-DeNUqsgL.js} +1 -1
  65. package/web/dist/assets/{project-router-onKnSy5a.js → project-router-DvfVUjon.js} +1 -1
  66. package/web/dist/assets/{projects-section-DCSrvgdU.js → projects-section-Bne5q9Zl.js} +1 -1
  67. package/web/dist/assets/{prompt-templates-section-CPda4gof.js → prompt-templates-section-wEXQFITb.js} +2 -2
  68. package/web/dist/assets/queries-B8INH8MM.js +1 -0
  69. package/web/dist/assets/{reference-chip-Cv3i1kxz.js → reference-chip-DDv209Ry.js} +1 -1
  70. package/web/dist/assets/{remote-settings-notice-D_GLdblC.js → remote-settings-notice-ZPTZta4J.js} +1 -1
  71. package/web/dist/assets/repo-git-DFbTe7cL.css +1 -0
  72. package/web/dist/assets/repo-git-orRzt9hM.js +1 -0
  73. package/web/dist/assets/{report-reader-BAHgsI-N.js → report-reader-7LXPgypR.js} +1 -1
  74. package/web/dist/assets/{report-selection-CmEfaDz7.js → report-selection-fGMhVMQi.js} +1 -1
  75. package/web/dist/assets/{reports-ZhVWe08S.js → reports-BLzMjV0A.js} +1 -1
  76. package/web/dist/assets/{resources-section-CCKl5lWd.js → resources-section-Bg0CLNs0.js} +1 -1
  77. package/web/dist/assets/{review-panel-DNd2lB0z.js → review-panel-Bmxlc-qL.js} +5 -5
  78. package/web/dist/assets/{run-detail-refresh-Caj4BPPd.js → run-detail-refresh-CMG0OiqX.js} +1 -1
  79. package/web/dist/assets/{run-header-2Ol_oWfx.js → run-header-GC4sCqc9.js} +2 -2
  80. package/web/dist/assets/{select-1oriQjL8.js → select-DJ96FKkN.js} +1 -1
  81. package/web/dist/assets/{session-context-section-BqGDbveU.js → session-context-section-J5dOI7wy.js} +2 -2
  82. package/web/dist/assets/{settings-agent-picker-Ci3lUfW1.js → settings-agent-picker-AIys0-g4.js} +1 -1
  83. package/web/dist/assets/{settings-save-bar-DXwUaK3L.js → settings-save-bar-hxduqYzV.js} +1 -1
  84. package/web/dist/assets/{settings-shell-aWDWs253.js → settings-shell-BKrwxtH3.js} +1 -1
  85. package/web/dist/assets/{sidebar-section-D5aLInDQ.js → sidebar-section-BOLBt6ht.js} +1 -1
  86. package/web/dist/assets/{skills-mbZtZ3vc.js → skills-cirmZTle.js} +1 -1
  87. package/web/dist/assets/{tab-link-B2k-zaeP.js → tab-link-D97ij5JR.js} +1 -1
  88. package/web/dist/assets/task-changes-n6YG81dZ.js +1 -0
  89. package/web/dist/assets/task-commits-B2kRm9wv.js +1 -0
  90. package/web/dist/assets/{task-file-scope-B2EH5Os6.js → task-file-scope-VqZwLAhF.js} +1 -1
  91. package/web/dist/assets/task-files-DQnLpO6C.js +1 -0
  92. package/web/dist/assets/task-github-item-BCa7NBSF.js +1 -0
  93. package/web/dist/assets/{task-groups-dEzH1nMg.js → task-groups-COb-xWM_.js} +1 -1
  94. package/web/dist/assets/task-thread-BVuc26YV.js +2 -0
  95. package/web/dist/assets/{tasks-table-CPAY1N-E.js → tasks-table-CyUTCD9k.js} +1 -1
  96. package/web/dist/assets/thread-state-Cu3lYPx3.js +4 -0
  97. package/web/dist/assets/{toaster-Bs1mVYf9.js → toaster-Cjr2jC1Q.js} +1 -1
  98. package/web/dist/assets/use-hand-to-agent-state-DC_mgEa8.js +1 -0
  99. package/web/dist/assets/use-path-bases-BNiDz4sw.js +1 -0
  100. package/web/dist/assets/use-workspace-config-save-Do4bGg72.js +1 -0
  101. package/web/dist/assets/{workflows-CDATZgDf.js → workflows-DcsG1apu.js} +3 -3
  102. package/web/dist/assets/{workspace-tools-BICzaBFy.js → workspace-tools-BlsGt8_D.js} +1 -1
  103. package/web/dist/assets/{worktrees-section-CD-TSxcn.js → worktrees-section-CGN4CXhC.js} +5 -5
  104. package/web/dist/index.html +15 -15
  105. package/web/dist/assets/activity-motion-C3MbfqoU.js +0 -1
  106. package/web/dist/assets/agent-defaults-section-BQKpdzj_.js +0 -1
  107. package/web/dist/assets/attention-C9zoC-gL.js +0 -1
  108. package/web/dist/assets/automations-route-DUxB4z34.js +0 -2
  109. package/web/dist/assets/commit-list-BnAxcran.js +0 -1
  110. package/web/dist/assets/diff-controls-LdJu9jvm.js +0 -1
  111. package/web/dist/assets/discard-changes-dialog-DT4Tnp2l.js +0 -1
  112. package/web/dist/assets/file-preview-ClCnVg6z.js +0 -2
  113. package/web/dist/assets/github-CK5AGoz0.js +0 -1
  114. package/web/dist/assets/index-CS4IQx7a.js +0 -21
  115. package/web/dist/assets/index-DB8vFvSO.css +0 -1
  116. package/web/dist/assets/preview-pane-connected-B_IyuLH_.js +0 -3
  117. package/web/dist/assets/queries-CII6fTHH.js +0 -1
  118. package/web/dist/assets/repo-git-6j7BfJ2_.js +0 -1
  119. package/web/dist/assets/repo-git-DVXNOJDT.css +0 -1
  120. package/web/dist/assets/task-changes-BD1GZRIs.js +0 -1
  121. package/web/dist/assets/task-commits-Dz047BbX.js +0 -1
  122. package/web/dist/assets/task-files-C9YQDRk6.js +0 -1
  123. package/web/dist/assets/task-github-item-CjALWL4A.js +0 -1
  124. package/web/dist/assets/task-thread-B-cAE0Li.js +0 -2
  125. package/web/dist/assets/thread-state-uWiG7IgM.js +0 -4
  126. package/web/dist/assets/use-hand-to-agent-state-D8ltY5hM.js +0 -1
  127. package/web/dist/assets/use-path-bases-BK81NQ26.js +0 -1
  128. package/web/dist/assets/use-workspace-config-save-0Mtdwfrd.js +0 -1
@@ -94,8 +94,6 @@ export declare function createRunsRoutes(deps: RunsRouteDeps): import("hono/hono
94
94
  } | undefined;
95
95
  invalidAsk?: boolean | undefined;
96
96
  delegation?: {
97
- role: "invalid";
98
- } | {
99
97
  role: "root";
100
98
  conversation?: {
101
99
  messages: {
@@ -330,6 +328,8 @@ export declare function createRunsRoutes(deps: RunsRouteDeps): import("hono/hono
330
328
  } | undefined;
331
329
  executionRevision?: number | undefined;
332
330
  executionStartSeq?: number | undefined;
331
+ } | {
332
+ role: "invalid";
333
333
  } | undefined;
334
334
  agentInputs?: {
335
335
  conversation?: {
@@ -423,30 +423,6 @@ export declare function createRunsRoutes(deps: RunsRouteDeps): import("hono/hono
423
423
  deadline: string;
424
424
  seconds: number;
425
425
  note?: string | undefined;
426
- } | {
427
- id: string;
428
- source: "agent" | "cezar";
429
- 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";
430
- registeredAt: string;
431
- phase: "cancelled" | "delivered" | "open" | "resolved";
432
- resolvedAt?: string | undefined;
433
- deliveredAt?: string | undefined;
434
- cancelledAt?: string | undefined;
435
- turnId: string;
436
- kind: "process";
437
- deadline: string;
438
- timeoutSeconds: number;
439
- pid: number;
440
- startToken?: string | undefined;
441
- exitFile?: string | undefined;
442
- note?: string | undefined;
443
- result?: {
444
- outcome: "deadline" | "error" | "exit_file" | "exited";
445
- observedAt: string;
446
- exitCode?: number | undefined;
447
- exitFileNote?: "not-an-exit-code" | undefined;
448
- diagnostic?: string | undefined;
449
- } | undefined;
450
426
  } | {
451
427
  id: string;
452
428
  source: "agent" | "cezar";
@@ -508,6 +484,30 @@ export declare function createRunsRoutes(deps: RunsRouteDeps): import("hono/hono
508
484
  reason: "outcome" | "timeout";
509
485
  } | undefined;
510
486
  wakeInputId?: string | undefined;
487
+ } | {
488
+ id: string;
489
+ source: "agent" | "cezar";
490
+ via: "ask-line" | "budget" | "cez-message-wait" | "cez-worker-wait" | "cezar_ask" | "cezar_wait" | "cezar_wait_for_ci" | "completion" | "monitoring-line" | "native-ask" | "native-subagents" | "no-wait" | "schedule-wakeup";
491
+ registeredAt: string;
492
+ phase: "cancelled" | "delivered" | "open" | "resolved";
493
+ resolvedAt?: string | undefined;
494
+ deliveredAt?: string | undefined;
495
+ cancelledAt?: string | undefined;
496
+ turnId: string;
497
+ kind: "process";
498
+ deadline: string;
499
+ timeoutSeconds: number;
500
+ pid: number;
501
+ startToken?: string | undefined;
502
+ exitFile?: string | undefined;
503
+ note?: string | undefined;
504
+ result?: {
505
+ outcome: "deadline" | "error" | "exit_file" | "exited";
506
+ observedAt: string;
507
+ exitCode?: number | undefined;
508
+ exitFileNote?: "not-an-exit-code" | undefined;
509
+ diagnostic?: string | undefined;
510
+ } | undefined;
511
511
  } | {
512
512
  id: string;
513
513
  source: "agent" | "cezar";
@@ -640,30 +640,6 @@ export declare function createRunsRoutes(deps: RunsRouteDeps): import("hono/hono
640
640
  deadline: string;
641
641
  seconds: number;
642
642
  note?: string | undefined;
643
- } | {
644
- id: string;
645
- source: "agent" | "cezar";
646
- 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";
647
- registeredAt: string;
648
- phase: "cancelled" | "delivered" | "open" | "resolved";
649
- resolvedAt?: string | undefined;
650
- deliveredAt?: string | undefined;
651
- cancelledAt?: string | undefined;
652
- turnId: string;
653
- kind: "process";
654
- deadline: string;
655
- timeoutSeconds: number;
656
- pid: number;
657
- startToken?: string | undefined;
658
- exitFile?: string | undefined;
659
- note?: string | undefined;
660
- result?: {
661
- outcome: "deadline" | "error" | "exit_file" | "exited";
662
- observedAt: string;
663
- exitCode?: number | undefined;
664
- exitFileNote?: "not-an-exit-code" | undefined;
665
- diagnostic?: string | undefined;
666
- } | undefined;
667
643
  } | {
668
644
  id: string;
669
645
  source: "agent" | "cezar";
@@ -725,6 +701,30 @@ export declare function createRunsRoutes(deps: RunsRouteDeps): import("hono/hono
725
701
  reason: "outcome" | "timeout";
726
702
  } | undefined;
727
703
  wakeInputId?: string | undefined;
704
+ } | {
705
+ id: string;
706
+ source: "agent" | "cezar";
707
+ via: "ask-line" | "budget" | "cez-message-wait" | "cez-worker-wait" | "cezar_ask" | "cezar_wait" | "cezar_wait_for_ci" | "completion" | "monitoring-line" | "native-ask" | "native-subagents" | "no-wait" | "schedule-wakeup";
708
+ registeredAt: string;
709
+ phase: "cancelled" | "delivered" | "open" | "resolved";
710
+ resolvedAt?: string | undefined;
711
+ deliveredAt?: string | undefined;
712
+ cancelledAt?: string | undefined;
713
+ turnId: string;
714
+ kind: "process";
715
+ deadline: string;
716
+ timeoutSeconds: number;
717
+ pid: number;
718
+ startToken?: string | undefined;
719
+ exitFile?: string | undefined;
720
+ note?: string | undefined;
721
+ result?: {
722
+ outcome: "deadline" | "error" | "exit_file" | "exited";
723
+ observedAt: string;
724
+ exitCode?: number | undefined;
725
+ exitFileNote?: "not-an-exit-code" | undefined;
726
+ diagnostic?: string | undefined;
727
+ } | undefined;
728
728
  } | {
729
729
  id: string;
730
730
  source: "agent" | "cezar";
@@ -856,30 +856,6 @@ export declare function createRunsRoutes(deps: RunsRouteDeps): import("hono/hono
856
856
  deadline: string;
857
857
  seconds: number;
858
858
  note?: string | undefined;
859
- } | {
860
- id: string;
861
- source: "agent" | "cezar";
862
- 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";
863
- registeredAt: string;
864
- phase: "cancelled" | "delivered" | "open" | "resolved";
865
- resolvedAt?: string | undefined;
866
- deliveredAt?: string | undefined;
867
- cancelledAt?: string | undefined;
868
- turnId: string;
869
- kind: "process";
870
- deadline: string;
871
- timeoutSeconds: number;
872
- pid: number;
873
- startToken?: string | undefined;
874
- exitFile?: string | undefined;
875
- note?: string | undefined;
876
- result?: {
877
- outcome: "deadline" | "error" | "exit_file" | "exited";
878
- observedAt: string;
879
- exitCode?: number | undefined;
880
- exitFileNote?: "not-an-exit-code" | undefined;
881
- diagnostic?: string | undefined;
882
- } | undefined;
883
859
  } | {
884
860
  id: string;
885
861
  source: "agent" | "cezar";
@@ -941,6 +917,30 @@ export declare function createRunsRoutes(deps: RunsRouteDeps): import("hono/hono
941
917
  reason: "outcome" | "timeout";
942
918
  } | undefined;
943
919
  wakeInputId?: string | undefined;
920
+ } | {
921
+ id: string;
922
+ source: "agent" | "cezar";
923
+ via: "ask-line" | "budget" | "cez-message-wait" | "cez-worker-wait" | "cezar_ask" | "cezar_wait" | "cezar_wait_for_ci" | "completion" | "monitoring-line" | "native-ask" | "native-subagents" | "no-wait" | "schedule-wakeup";
924
+ registeredAt: string;
925
+ phase: "cancelled" | "delivered" | "open" | "resolved";
926
+ resolvedAt?: string | undefined;
927
+ deliveredAt?: string | undefined;
928
+ cancelledAt?: string | undefined;
929
+ turnId: string;
930
+ kind: "process";
931
+ deadline: string;
932
+ timeoutSeconds: number;
933
+ pid: number;
934
+ startToken?: string | undefined;
935
+ exitFile?: string | undefined;
936
+ note?: string | undefined;
937
+ result?: {
938
+ outcome: "deadline" | "error" | "exit_file" | "exited";
939
+ observedAt: string;
940
+ exitCode?: number | undefined;
941
+ exitFileNote?: "not-an-exit-code" | undefined;
942
+ diagnostic?: string | undefined;
943
+ } | undefined;
944
944
  } | {
945
945
  id: string;
946
946
  source: "agent" | "cezar";
@@ -1217,18 +1217,6 @@ export declare function createRunsRoutes(deps: RunsRouteDeps): import("hono/hono
1217
1217
  } & {
1218
1218
  "/run-summaries": {
1219
1219
  $get: {
1220
- output: {
1221
- error: string;
1222
- code?: "invalid_input" | undefined;
1223
- };
1224
- outputFormat: "json";
1225
- status: 400;
1226
- input: {
1227
- query: {
1228
- archived?: "all" | "recent" | undefined;
1229
- };
1230
- };
1231
- } | {
1232
1220
  output: {
1233
1221
  id: string;
1234
1222
  title: string;
@@ -1366,6 +1354,18 @@ export declare function createRunsRoutes(deps: RunsRouteDeps): import("hono/hono
1366
1354
  archived?: "all" | "recent" | undefined;
1367
1355
  };
1368
1356
  };
1357
+ } | {
1358
+ output: {
1359
+ error: string;
1360
+ code?: "invalid_input" | undefined;
1361
+ };
1362
+ outputFormat: "json";
1363
+ status: 400;
1364
+ input: {
1365
+ query: {
1366
+ archived?: "all" | "recent" | undefined;
1367
+ };
1368
+ };
1369
1369
  };
1370
1370
  };
1371
1371
  } & {
@@ -1727,24 +1727,22 @@ export declare function createRunsRoutes(deps: RunsRouteDeps): import("hono/hono
1727
1727
  "/runs/:id/worker-destroy": {
1728
1728
  $post: {
1729
1729
  output: {
1730
- workerId: string;
1731
- state: "complete" | "incomplete";
1732
- work?: {
1733
- uncommittedFiles: number;
1734
- commits: number;
1730
+ readonly code: "capacity_limit" | "denied_scope" | "incompatible_state" | "incomplete_cleanup" | "invalid_baseline" | "invalid_input" | "unauthenticated" | "unavailable_diff" | "unavailable_transport";
1731
+ readonly error: string;
1732
+ readonly modelChoices?: {
1733
+ runner: string;
1734
+ requestedModel: string;
1735
+ availableModels: {
1736
+ id: string;
1737
+ label: string;
1738
+ description: string;
1739
+ effortLevels?: ("high" | "low" | "max" | "medium" | "xhigh")[] | undefined;
1740
+ }[];
1741
+ otherRunners: string[];
1735
1742
  } | undefined;
1736
- deleted?: ({
1737
- kind: "worktree";
1738
- path: string;
1739
- } | {
1740
- kind: "branch";
1741
- ref: string;
1742
- })[] | undefined;
1743
- remaining: ("branch" | "process" | "worktree")[];
1744
- error?: string | undefined;
1745
1743
  };
1746
1744
  outputFormat: "json";
1747
- status: 200;
1745
+ status: 400 | 401 | 403 | 409 | 503;
1748
1746
  input: {
1749
1747
  query: {
1750
1748
  [x: string]: string | string[];
@@ -1797,7 +1795,7 @@ export declare function createRunsRoutes(deps: RunsRouteDeps): import("hono/hono
1797
1795
  error?: string | undefined;
1798
1796
  };
1799
1797
  outputFormat: "json";
1800
- status: 409;
1798
+ status: 200;
1801
1799
  input: {
1802
1800
  query: {
1803
1801
  [x: string]: string | string[];
@@ -1813,22 +1811,24 @@ export declare function createRunsRoutes(deps: RunsRouteDeps): import("hono/hono
1813
1811
  };
1814
1812
  } | {
1815
1813
  output: {
1816
- readonly code: "capacity_limit" | "denied_scope" | "incompatible_state" | "incomplete_cleanup" | "invalid_baseline" | "invalid_input" | "unauthenticated" | "unavailable_diff" | "unavailable_transport";
1817
- readonly error: string;
1818
- readonly modelChoices?: {
1819
- runner: string;
1820
- requestedModel: string;
1821
- availableModels: {
1822
- id: string;
1823
- label: string;
1824
- description: string;
1825
- effortLevels?: ("high" | "low" | "max" | "medium" | "xhigh")[] | undefined;
1826
- }[];
1827
- otherRunners: string[];
1814
+ workerId: string;
1815
+ state: "complete" | "incomplete";
1816
+ work?: {
1817
+ uncommittedFiles: number;
1818
+ commits: number;
1828
1819
  } | undefined;
1820
+ deleted?: ({
1821
+ kind: "worktree";
1822
+ path: string;
1823
+ } | {
1824
+ kind: "branch";
1825
+ ref: string;
1826
+ })[] | undefined;
1827
+ remaining: ("branch" | "process" | "worktree")[];
1828
+ error?: string | undefined;
1829
1829
  };
1830
1830
  outputFormat: "json";
1831
- status: 400 | 401 | 403 | 409 | 503;
1831
+ status: 409;
1832
1832
  input: {
1833
1833
  query: {
1834
1834
  [x: string]: string | string[];
@@ -1880,21 +1880,6 @@ export declare function createRunsRoutes(deps: RunsRouteDeps): import("hono/hono
1880
1880
  } & {
1881
1881
  "/runs/:id/archive": {
1882
1882
  $post: {
1883
- output: {
1884
- error: string;
1885
- };
1886
- outputFormat: "json";
1887
- status: 404;
1888
- input: {
1889
- json: {
1890
- archived?: boolean | undefined;
1891
- };
1892
- } & {
1893
- param: {
1894
- id: string;
1895
- };
1896
- };
1897
- } | {
1898
1883
  output: {
1899
1884
  archiveWhenDone?: boolean | undefined;
1900
1885
  autoMergePr?: boolean | undefined;
@@ -1956,8 +1941,6 @@ export declare function createRunsRoutes(deps: RunsRouteDeps): import("hono/hono
1956
1941
  } | undefined;
1957
1942
  invalidAsk?: boolean | undefined;
1958
1943
  delegation?: {
1959
- role: "invalid";
1960
- } | {
1961
1944
  role: "root";
1962
1945
  conversation?: {
1963
1946
  messages: {
@@ -2192,6 +2175,8 @@ export declare function createRunsRoutes(deps: RunsRouteDeps): import("hono/hono
2192
2175
  } | undefined;
2193
2176
  executionRevision?: number | undefined;
2194
2177
  executionStartSeq?: number | undefined;
2178
+ } | {
2179
+ role: "invalid";
2195
2180
  } | undefined;
2196
2181
  agentInputs?: {
2197
2182
  conversation?: {
@@ -2285,30 +2270,6 @@ export declare function createRunsRoutes(deps: RunsRouteDeps): import("hono/hono
2285
2270
  deadline: string;
2286
2271
  seconds: number;
2287
2272
  note?: string | undefined;
2288
- } | {
2289
- id: string;
2290
- source: "agent" | "cezar";
2291
- 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";
2292
- registeredAt: string;
2293
- phase: "cancelled" | "delivered" | "open" | "resolved";
2294
- resolvedAt?: string | undefined;
2295
- deliveredAt?: string | undefined;
2296
- cancelledAt?: string | undefined;
2297
- turnId: string;
2298
- kind: "process";
2299
- deadline: string;
2300
- timeoutSeconds: number;
2301
- pid: number;
2302
- startToken?: string | undefined;
2303
- exitFile?: string | undefined;
2304
- note?: string | undefined;
2305
- result?: {
2306
- outcome: "deadline" | "error" | "exit_file" | "exited";
2307
- observedAt: string;
2308
- exitCode?: number | undefined;
2309
- exitFileNote?: "not-an-exit-code" | undefined;
2310
- diagnostic?: string | undefined;
2311
- } | undefined;
2312
2273
  } | {
2313
2274
  id: string;
2314
2275
  source: "agent" | "cezar";
@@ -2370,6 +2331,30 @@ export declare function createRunsRoutes(deps: RunsRouteDeps): import("hono/hono
2370
2331
  reason: "outcome" | "timeout";
2371
2332
  } | undefined;
2372
2333
  wakeInputId?: string | undefined;
2334
+ } | {
2335
+ id: string;
2336
+ source: "agent" | "cezar";
2337
+ via: "ask-line" | "budget" | "cez-message-wait" | "cez-worker-wait" | "cezar_ask" | "cezar_wait" | "cezar_wait_for_ci" | "completion" | "monitoring-line" | "native-ask" | "native-subagents" | "no-wait" | "schedule-wakeup";
2338
+ registeredAt: string;
2339
+ phase: "cancelled" | "delivered" | "open" | "resolved";
2340
+ resolvedAt?: string | undefined;
2341
+ deliveredAt?: string | undefined;
2342
+ cancelledAt?: string | undefined;
2343
+ turnId: string;
2344
+ kind: "process";
2345
+ deadline: string;
2346
+ timeoutSeconds: number;
2347
+ pid: number;
2348
+ startToken?: string | undefined;
2349
+ exitFile?: string | undefined;
2350
+ note?: string | undefined;
2351
+ result?: {
2352
+ outcome: "deadline" | "error" | "exit_file" | "exited";
2353
+ observedAt: string;
2354
+ exitCode?: number | undefined;
2355
+ exitFileNote?: "not-an-exit-code" | undefined;
2356
+ diagnostic?: string | undefined;
2357
+ } | undefined;
2373
2358
  } | {
2374
2359
  id: string;
2375
2360
  source: "agent" | "cezar";
@@ -2502,30 +2487,6 @@ export declare function createRunsRoutes(deps: RunsRouteDeps): import("hono/hono
2502
2487
  deadline: string;
2503
2488
  seconds: number;
2504
2489
  note?: string | undefined;
2505
- } | {
2506
- id: string;
2507
- source: "agent" | "cezar";
2508
- 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";
2509
- registeredAt: string;
2510
- phase: "cancelled" | "delivered" | "open" | "resolved";
2511
- resolvedAt?: string | undefined;
2512
- deliveredAt?: string | undefined;
2513
- cancelledAt?: string | undefined;
2514
- turnId: string;
2515
- kind: "process";
2516
- deadline: string;
2517
- timeoutSeconds: number;
2518
- pid: number;
2519
- startToken?: string | undefined;
2520
- exitFile?: string | undefined;
2521
- note?: string | undefined;
2522
- result?: {
2523
- outcome: "deadline" | "error" | "exit_file" | "exited";
2524
- observedAt: string;
2525
- exitCode?: number | undefined;
2526
- exitFileNote?: "not-an-exit-code" | undefined;
2527
- diagnostic?: string | undefined;
2528
- } | undefined;
2529
2490
  } | {
2530
2491
  id: string;
2531
2492
  source: "agent" | "cezar";
@@ -2587,6 +2548,30 @@ export declare function createRunsRoutes(deps: RunsRouteDeps): import("hono/hono
2587
2548
  reason: "outcome" | "timeout";
2588
2549
  } | undefined;
2589
2550
  wakeInputId?: string | undefined;
2551
+ } | {
2552
+ id: string;
2553
+ source: "agent" | "cezar";
2554
+ via: "ask-line" | "budget" | "cez-message-wait" | "cez-worker-wait" | "cezar_ask" | "cezar_wait" | "cezar_wait_for_ci" | "completion" | "monitoring-line" | "native-ask" | "native-subagents" | "no-wait" | "schedule-wakeup";
2555
+ registeredAt: string;
2556
+ phase: "cancelled" | "delivered" | "open" | "resolved";
2557
+ resolvedAt?: string | undefined;
2558
+ deliveredAt?: string | undefined;
2559
+ cancelledAt?: string | undefined;
2560
+ turnId: string;
2561
+ kind: "process";
2562
+ deadline: string;
2563
+ timeoutSeconds: number;
2564
+ pid: number;
2565
+ startToken?: string | undefined;
2566
+ exitFile?: string | undefined;
2567
+ note?: string | undefined;
2568
+ result?: {
2569
+ outcome: "deadline" | "error" | "exit_file" | "exited";
2570
+ observedAt: string;
2571
+ exitCode?: number | undefined;
2572
+ exitFileNote?: "not-an-exit-code" | undefined;
2573
+ diagnostic?: string | undefined;
2574
+ } | undefined;
2590
2575
  } | {
2591
2576
  id: string;
2592
2577
  source: "agent" | "cezar";
@@ -2718,30 +2703,6 @@ export declare function createRunsRoutes(deps: RunsRouteDeps): import("hono/hono
2718
2703
  deadline: string;
2719
2704
  seconds: number;
2720
2705
  note?: string | undefined;
2721
- } | {
2722
- id: string;
2723
- source: "agent" | "cezar";
2724
- 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";
2725
- registeredAt: string;
2726
- phase: "cancelled" | "delivered" | "open" | "resolved";
2727
- resolvedAt?: string | undefined;
2728
- deliveredAt?: string | undefined;
2729
- cancelledAt?: string | undefined;
2730
- turnId: string;
2731
- kind: "process";
2732
- deadline: string;
2733
- timeoutSeconds: number;
2734
- pid: number;
2735
- startToken?: string | undefined;
2736
- exitFile?: string | undefined;
2737
- note?: string | undefined;
2738
- result?: {
2739
- outcome: "deadline" | "error" | "exit_file" | "exited";
2740
- observedAt: string;
2741
- exitCode?: number | undefined;
2742
- exitFileNote?: "not-an-exit-code" | undefined;
2743
- diagnostic?: string | undefined;
2744
- } | undefined;
2745
2706
  } | {
2746
2707
  id: string;
2747
2708
  source: "agent" | "cezar";
@@ -2803,6 +2764,30 @@ export declare function createRunsRoutes(deps: RunsRouteDeps): import("hono/hono
2803
2764
  reason: "outcome" | "timeout";
2804
2765
  } | undefined;
2805
2766
  wakeInputId?: string | undefined;
2767
+ } | {
2768
+ id: string;
2769
+ source: "agent" | "cezar";
2770
+ via: "ask-line" | "budget" | "cez-message-wait" | "cez-worker-wait" | "cezar_ask" | "cezar_wait" | "cezar_wait_for_ci" | "completion" | "monitoring-line" | "native-ask" | "native-subagents" | "no-wait" | "schedule-wakeup";
2771
+ registeredAt: string;
2772
+ phase: "cancelled" | "delivered" | "open" | "resolved";
2773
+ resolvedAt?: string | undefined;
2774
+ deliveredAt?: string | undefined;
2775
+ cancelledAt?: string | undefined;
2776
+ turnId: string;
2777
+ kind: "process";
2778
+ deadline: string;
2779
+ timeoutSeconds: number;
2780
+ pid: number;
2781
+ startToken?: string | undefined;
2782
+ exitFile?: string | undefined;
2783
+ note?: string | undefined;
2784
+ result?: {
2785
+ outcome: "deadline" | "error" | "exit_file" | "exited";
2786
+ observedAt: string;
2787
+ exitCode?: number | undefined;
2788
+ exitFileNote?: "not-an-exit-code" | undefined;
2789
+ diagnostic?: string | undefined;
2790
+ } | undefined;
2806
2791
  } | {
2807
2792
  id: string;
2808
2793
  source: "agent" | "cezar";
@@ -3074,32 +3059,32 @@ export declare function createRunsRoutes(deps: RunsRouteDeps): import("hono/hono
3074
3059
  id: string;
3075
3060
  };
3076
3061
  };
3077
- };
3078
- };
3079
- } & {
3080
- "/runs/:id/pin": {
3081
- $post: {
3062
+ } | {
3082
3063
  output: {
3083
3064
  error: string;
3084
- code?: "invalid_input" | undefined;
3085
3065
  };
3086
3066
  outputFormat: "json";
3087
- status: 400;
3067
+ status: 404;
3088
3068
  input: {
3089
- param: {
3090
- id: string;
3069
+ json: {
3070
+ archived?: boolean | undefined;
3091
3071
  };
3092
3072
  } & {
3093
- json: {
3094
- pinned?: boolean | undefined;
3073
+ param: {
3074
+ id: string;
3095
3075
  };
3096
3076
  };
3097
- } | {
3077
+ };
3078
+ };
3079
+ } & {
3080
+ "/runs/:id/pin": {
3081
+ $post: {
3098
3082
  output: {
3099
3083
  error: string;
3084
+ code?: "invalid_input" | undefined;
3100
3085
  };
3101
3086
  outputFormat: "json";
3102
- status: 404;
3087
+ status: 400;
3103
3088
  input: {
3104
3089
  param: {
3105
3090
  id: string;
@@ -3171,8 +3156,6 @@ export declare function createRunsRoutes(deps: RunsRouteDeps): import("hono/hono
3171
3156
  } | undefined;
3172
3157
  invalidAsk?: boolean | undefined;
3173
3158
  delegation?: {
3174
- role: "invalid";
3175
- } | {
3176
3159
  role: "root";
3177
3160
  conversation?: {
3178
3161
  messages: {
@@ -3407,6 +3390,8 @@ export declare function createRunsRoutes(deps: RunsRouteDeps): import("hono/hono
3407
3390
  } | undefined;
3408
3391
  executionRevision?: number | undefined;
3409
3392
  executionStartSeq?: number | undefined;
3393
+ } | {
3394
+ role: "invalid";
3410
3395
  } | undefined;
3411
3396
  agentInputs?: {
3412
3397
  conversation?: {
@@ -3500,30 +3485,6 @@ export declare function createRunsRoutes(deps: RunsRouteDeps): import("hono/hono
3500
3485
  deadline: string;
3501
3486
  seconds: number;
3502
3487
  note?: string | undefined;
3503
- } | {
3504
- id: string;
3505
- source: "agent" | "cezar";
3506
- 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";
3507
- registeredAt: string;
3508
- phase: "cancelled" | "delivered" | "open" | "resolved";
3509
- resolvedAt?: string | undefined;
3510
- deliveredAt?: string | undefined;
3511
- cancelledAt?: string | undefined;
3512
- turnId: string;
3513
- kind: "process";
3514
- deadline: string;
3515
- timeoutSeconds: number;
3516
- pid: number;
3517
- startToken?: string | undefined;
3518
- exitFile?: string | undefined;
3519
- note?: string | undefined;
3520
- result?: {
3521
- outcome: "deadline" | "error" | "exit_file" | "exited";
3522
- observedAt: string;
3523
- exitCode?: number | undefined;
3524
- exitFileNote?: "not-an-exit-code" | undefined;
3525
- diagnostic?: string | undefined;
3526
- } | undefined;
3527
3488
  } | {
3528
3489
  id: string;
3529
3490
  source: "agent" | "cezar";
@@ -3585,6 +3546,30 @@ export declare function createRunsRoutes(deps: RunsRouteDeps): import("hono/hono
3585
3546
  reason: "outcome" | "timeout";
3586
3547
  } | undefined;
3587
3548
  wakeInputId?: string | undefined;
3549
+ } | {
3550
+ id: string;
3551
+ source: "agent" | "cezar";
3552
+ via: "ask-line" | "budget" | "cez-message-wait" | "cez-worker-wait" | "cezar_ask" | "cezar_wait" | "cezar_wait_for_ci" | "completion" | "monitoring-line" | "native-ask" | "native-subagents" | "no-wait" | "schedule-wakeup";
3553
+ registeredAt: string;
3554
+ phase: "cancelled" | "delivered" | "open" | "resolved";
3555
+ resolvedAt?: string | undefined;
3556
+ deliveredAt?: string | undefined;
3557
+ cancelledAt?: string | undefined;
3558
+ turnId: string;
3559
+ kind: "process";
3560
+ deadline: string;
3561
+ timeoutSeconds: number;
3562
+ pid: number;
3563
+ startToken?: string | undefined;
3564
+ exitFile?: string | undefined;
3565
+ note?: string | undefined;
3566
+ result?: {
3567
+ outcome: "deadline" | "error" | "exit_file" | "exited";
3568
+ observedAt: string;
3569
+ exitCode?: number | undefined;
3570
+ exitFileNote?: "not-an-exit-code" | undefined;
3571
+ diagnostic?: string | undefined;
3572
+ } | undefined;
3588
3573
  } | {
3589
3574
  id: string;
3590
3575
  source: "agent" | "cezar";
@@ -3717,30 +3702,6 @@ export declare function createRunsRoutes(deps: RunsRouteDeps): import("hono/hono
3717
3702
  deadline: string;
3718
3703
  seconds: number;
3719
3704
  note?: string | undefined;
3720
- } | {
3721
- id: string;
3722
- source: "agent" | "cezar";
3723
- 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";
3724
- registeredAt: string;
3725
- phase: "cancelled" | "delivered" | "open" | "resolved";
3726
- resolvedAt?: string | undefined;
3727
- deliveredAt?: string | undefined;
3728
- cancelledAt?: string | undefined;
3729
- turnId: string;
3730
- kind: "process";
3731
- deadline: string;
3732
- timeoutSeconds: number;
3733
- pid: number;
3734
- startToken?: string | undefined;
3735
- exitFile?: string | undefined;
3736
- note?: string | undefined;
3737
- result?: {
3738
- outcome: "deadline" | "error" | "exit_file" | "exited";
3739
- observedAt: string;
3740
- exitCode?: number | undefined;
3741
- exitFileNote?: "not-an-exit-code" | undefined;
3742
- diagnostic?: string | undefined;
3743
- } | undefined;
3744
3705
  } | {
3745
3706
  id: string;
3746
3707
  source: "agent" | "cezar";
@@ -3812,21 +3773,45 @@ export declare function createRunsRoutes(deps: RunsRouteDeps): import("hono/hono
3812
3773
  deliveredAt?: string | undefined;
3813
3774
  cancelledAt?: string | undefined;
3814
3775
  turnId: string;
3815
- kind: "peer";
3776
+ kind: "process";
3816
3777
  deadline: string;
3817
3778
  timeoutSeconds: number;
3818
- peerIds: string[];
3779
+ pid: number;
3780
+ startToken?: string | undefined;
3781
+ exitFile?: string | undefined;
3782
+ note?: string | undefined;
3819
3783
  result?: {
3820
- reason: "message";
3821
- peerRunId: string;
3822
- messageId: string;
3823
- } | {
3824
- reason: "settled";
3825
- peerRunId: string;
3826
- } | {
3827
- reason: "timeout";
3828
- } | undefined;
3829
- } | {
3784
+ outcome: "deadline" | "error" | "exit_file" | "exited";
3785
+ observedAt: string;
3786
+ exitCode?: number | undefined;
3787
+ exitFileNote?: "not-an-exit-code" | undefined;
3788
+ diagnostic?: string | undefined;
3789
+ } | undefined;
3790
+ } | {
3791
+ id: string;
3792
+ source: "agent" | "cezar";
3793
+ 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";
3794
+ registeredAt: string;
3795
+ phase: "cancelled" | "delivered" | "open" | "resolved";
3796
+ resolvedAt?: string | undefined;
3797
+ deliveredAt?: string | undefined;
3798
+ cancelledAt?: string | undefined;
3799
+ turnId: string;
3800
+ kind: "peer";
3801
+ deadline: string;
3802
+ timeoutSeconds: number;
3803
+ peerIds: string[];
3804
+ result?: {
3805
+ reason: "message";
3806
+ peerRunId: string;
3807
+ messageId: string;
3808
+ } | {
3809
+ reason: "settled";
3810
+ peerRunId: string;
3811
+ } | {
3812
+ reason: "timeout";
3813
+ } | undefined;
3814
+ } | {
3830
3815
  id: string;
3831
3816
  registeredAt: string;
3832
3817
  phase: "cancelled" | "delivered" | "open" | "resolved";
@@ -3933,30 +3918,6 @@ export declare function createRunsRoutes(deps: RunsRouteDeps): import("hono/hono
3933
3918
  deadline: string;
3934
3919
  seconds: number;
3935
3920
  note?: string | undefined;
3936
- } | {
3937
- id: string;
3938
- source: "agent" | "cezar";
3939
- 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";
3940
- registeredAt: string;
3941
- phase: "cancelled" | "delivered" | "open" | "resolved";
3942
- resolvedAt?: string | undefined;
3943
- deliveredAt?: string | undefined;
3944
- cancelledAt?: string | undefined;
3945
- turnId: string;
3946
- kind: "process";
3947
- deadline: string;
3948
- timeoutSeconds: number;
3949
- pid: number;
3950
- startToken?: string | undefined;
3951
- exitFile?: string | undefined;
3952
- note?: string | undefined;
3953
- result?: {
3954
- outcome: "deadline" | "error" | "exit_file" | "exited";
3955
- observedAt: string;
3956
- exitCode?: number | undefined;
3957
- exitFileNote?: "not-an-exit-code" | undefined;
3958
- diagnostic?: string | undefined;
3959
- } | undefined;
3960
3921
  } | {
3961
3922
  id: string;
3962
3923
  source: "agent" | "cezar";
@@ -4018,6 +3979,30 @@ export declare function createRunsRoutes(deps: RunsRouteDeps): import("hono/hono
4018
3979
  reason: "outcome" | "timeout";
4019
3980
  } | undefined;
4020
3981
  wakeInputId?: string | undefined;
3982
+ } | {
3983
+ id: string;
3984
+ source: "agent" | "cezar";
3985
+ via: "ask-line" | "budget" | "cez-message-wait" | "cez-worker-wait" | "cezar_ask" | "cezar_wait" | "cezar_wait_for_ci" | "completion" | "monitoring-line" | "native-ask" | "native-subagents" | "no-wait" | "schedule-wakeup";
3986
+ registeredAt: string;
3987
+ phase: "cancelled" | "delivered" | "open" | "resolved";
3988
+ resolvedAt?: string | undefined;
3989
+ deliveredAt?: string | undefined;
3990
+ cancelledAt?: string | undefined;
3991
+ turnId: string;
3992
+ kind: "process";
3993
+ deadline: string;
3994
+ timeoutSeconds: number;
3995
+ pid: number;
3996
+ startToken?: string | undefined;
3997
+ exitFile?: string | undefined;
3998
+ note?: string | undefined;
3999
+ result?: {
4000
+ outcome: "deadline" | "error" | "exit_file" | "exited";
4001
+ observedAt: string;
4002
+ exitCode?: number | undefined;
4003
+ exitFileNote?: "not-an-exit-code" | undefined;
4004
+ diagnostic?: string | undefined;
4005
+ } | undefined;
4021
4006
  } | {
4022
4007
  id: string;
4023
4008
  source: "agent" | "cezar";
@@ -4289,6 +4274,21 @@ export declare function createRunsRoutes(deps: RunsRouteDeps): import("hono/hono
4289
4274
  pinned?: boolean | undefined;
4290
4275
  };
4291
4276
  };
4277
+ } | {
4278
+ output: {
4279
+ error: string;
4280
+ };
4281
+ outputFormat: "json";
4282
+ status: 404;
4283
+ input: {
4284
+ param: {
4285
+ id: string;
4286
+ };
4287
+ } & {
4288
+ json: {
4289
+ pinned?: boolean | undefined;
4290
+ };
4291
+ };
4292
4292
  };
4293
4293
  };
4294
4294
  } & {
@@ -4315,7 +4315,7 @@ export declare function createRunsRoutes(deps: RunsRouteDeps): import("hono/hono
4315
4315
  error: string;
4316
4316
  };
4317
4317
  outputFormat: "json";
4318
- status: 400;
4318
+ status: 404;
4319
4319
  input: {
4320
4320
  param: {
4321
4321
  id: string;
@@ -4331,7 +4331,7 @@ export declare function createRunsRoutes(deps: RunsRouteDeps): import("hono/hono
4331
4331
  error: string;
4332
4332
  };
4333
4333
  outputFormat: "json";
4334
- status: 404;
4334
+ status: 400;
4335
4335
  input: {
4336
4336
  param: {
4337
4337
  id: string;
@@ -4480,30 +4480,6 @@ export declare function createRunsRoutes(deps: RunsRouteDeps): import("hono/hono
4480
4480
  deadline: string;
4481
4481
  seconds: number;
4482
4482
  note?: string | undefined;
4483
- } | {
4484
- id: string;
4485
- source: "agent" | "cezar";
4486
- 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";
4487
- registeredAt: string;
4488
- phase: "cancelled" | "delivered" | "open" | "resolved";
4489
- resolvedAt?: string | undefined;
4490
- deliveredAt?: string | undefined;
4491
- cancelledAt?: string | undefined;
4492
- turnId: string;
4493
- kind: "process";
4494
- deadline: string;
4495
- timeoutSeconds: number;
4496
- pid: number;
4497
- startToken?: string | undefined;
4498
- exitFile?: string | undefined;
4499
- note?: string | undefined;
4500
- result?: {
4501
- outcome: "deadline" | "error" | "exit_file" | "exited";
4502
- observedAt: string;
4503
- exitCode?: number | undefined;
4504
- exitFileNote?: "not-an-exit-code" | undefined;
4505
- diagnostic?: string | undefined;
4506
- } | undefined;
4507
4483
  } | {
4508
4484
  id: string;
4509
4485
  source: "agent" | "cezar";
@@ -4565,6 +4541,30 @@ export declare function createRunsRoutes(deps: RunsRouteDeps): import("hono/hono
4565
4541
  reason: "outcome" | "timeout";
4566
4542
  } | undefined;
4567
4543
  wakeInputId?: string | undefined;
4544
+ } | {
4545
+ id: string;
4546
+ source: "agent" | "cezar";
4547
+ via: "ask-line" | "budget" | "cez-message-wait" | "cez-worker-wait" | "cezar_ask" | "cezar_wait" | "cezar_wait_for_ci" | "completion" | "monitoring-line" | "native-ask" | "native-subagents" | "no-wait" | "schedule-wakeup";
4548
+ registeredAt: string;
4549
+ phase: "cancelled" | "delivered" | "open" | "resolved";
4550
+ resolvedAt?: string | undefined;
4551
+ deliveredAt?: string | undefined;
4552
+ cancelledAt?: string | undefined;
4553
+ turnId: string;
4554
+ kind: "process";
4555
+ deadline: string;
4556
+ timeoutSeconds: number;
4557
+ pid: number;
4558
+ startToken?: string | undefined;
4559
+ exitFile?: string | undefined;
4560
+ note?: string | undefined;
4561
+ result?: {
4562
+ outcome: "deadline" | "error" | "exit_file" | "exited";
4563
+ observedAt: string;
4564
+ exitCode?: number | undefined;
4565
+ exitFileNote?: "not-an-exit-code" | undefined;
4566
+ diagnostic?: string | undefined;
4567
+ } | undefined;
4568
4568
  } | {
4569
4569
  id: string;
4570
4570
  source: "agent" | "cezar";
@@ -4697,30 +4697,6 @@ export declare function createRunsRoutes(deps: RunsRouteDeps): import("hono/hono
4697
4697
  deadline: string;
4698
4698
  seconds: number;
4699
4699
  note?: string | undefined;
4700
- } | {
4701
- id: string;
4702
- source: "agent" | "cezar";
4703
- 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";
4704
- registeredAt: string;
4705
- phase: "cancelled" | "delivered" | "open" | "resolved";
4706
- resolvedAt?: string | undefined;
4707
- deliveredAt?: string | undefined;
4708
- cancelledAt?: string | undefined;
4709
- turnId: string;
4710
- kind: "process";
4711
- deadline: string;
4712
- timeoutSeconds: number;
4713
- pid: number;
4714
- startToken?: string | undefined;
4715
- exitFile?: string | undefined;
4716
- note?: string | undefined;
4717
- result?: {
4718
- outcome: "deadline" | "error" | "exit_file" | "exited";
4719
- observedAt: string;
4720
- exitCode?: number | undefined;
4721
- exitFileNote?: "not-an-exit-code" | undefined;
4722
- diagnostic?: string | undefined;
4723
- } | undefined;
4724
4700
  } | {
4725
4701
  id: string;
4726
4702
  source: "agent" | "cezar";
@@ -4782,6 +4758,30 @@ export declare function createRunsRoutes(deps: RunsRouteDeps): import("hono/hono
4782
4758
  reason: "outcome" | "timeout";
4783
4759
  } | undefined;
4784
4760
  wakeInputId?: string | undefined;
4761
+ } | {
4762
+ id: string;
4763
+ source: "agent" | "cezar";
4764
+ via: "ask-line" | "budget" | "cez-message-wait" | "cez-worker-wait" | "cezar_ask" | "cezar_wait" | "cezar_wait_for_ci" | "completion" | "monitoring-line" | "native-ask" | "native-subagents" | "no-wait" | "schedule-wakeup";
4765
+ registeredAt: string;
4766
+ phase: "cancelled" | "delivered" | "open" | "resolved";
4767
+ resolvedAt?: string | undefined;
4768
+ deliveredAt?: string | undefined;
4769
+ cancelledAt?: string | undefined;
4770
+ turnId: string;
4771
+ kind: "process";
4772
+ deadline: string;
4773
+ timeoutSeconds: number;
4774
+ pid: number;
4775
+ startToken?: string | undefined;
4776
+ exitFile?: string | undefined;
4777
+ note?: string | undefined;
4778
+ result?: {
4779
+ outcome: "deadline" | "error" | "exit_file" | "exited";
4780
+ observedAt: string;
4781
+ exitCode?: number | undefined;
4782
+ exitFileNote?: "not-an-exit-code" | undefined;
4783
+ diagnostic?: string | undefined;
4784
+ } | undefined;
4785
4785
  } | {
4786
4786
  id: string;
4787
4787
  source: "agent" | "cezar";
@@ -4913,30 +4913,6 @@ export declare function createRunsRoutes(deps: RunsRouteDeps): import("hono/hono
4913
4913
  deadline: string;
4914
4914
  seconds: number;
4915
4915
  note?: string | undefined;
4916
- } | {
4917
- id: string;
4918
- source: "agent" | "cezar";
4919
- 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";
4920
- registeredAt: string;
4921
- phase: "cancelled" | "delivered" | "open" | "resolved";
4922
- resolvedAt?: string | undefined;
4923
- deliveredAt?: string | undefined;
4924
- cancelledAt?: string | undefined;
4925
- turnId: string;
4926
- kind: "process";
4927
- deadline: string;
4928
- timeoutSeconds: number;
4929
- pid: number;
4930
- startToken?: string | undefined;
4931
- exitFile?: string | undefined;
4932
- note?: string | undefined;
4933
- result?: {
4934
- outcome: "deadline" | "error" | "exit_file" | "exited";
4935
- observedAt: string;
4936
- exitCode?: number | undefined;
4937
- exitFileNote?: "not-an-exit-code" | undefined;
4938
- diagnostic?: string | undefined;
4939
- } | undefined;
4940
4916
  } | {
4941
4917
  id: string;
4942
4918
  source: "agent" | "cezar";
@@ -4998,6 +4974,30 @@ export declare function createRunsRoutes(deps: RunsRouteDeps): import("hono/hono
4998
4974
  reason: "outcome" | "timeout";
4999
4975
  } | undefined;
5000
4976
  wakeInputId?: string | undefined;
4977
+ } | {
4978
+ id: string;
4979
+ source: "agent" | "cezar";
4980
+ via: "ask-line" | "budget" | "cez-message-wait" | "cez-worker-wait" | "cezar_ask" | "cezar_wait" | "cezar_wait_for_ci" | "completion" | "monitoring-line" | "native-ask" | "native-subagents" | "no-wait" | "schedule-wakeup";
4981
+ registeredAt: string;
4982
+ phase: "cancelled" | "delivered" | "open" | "resolved";
4983
+ resolvedAt?: string | undefined;
4984
+ deliveredAt?: string | undefined;
4985
+ cancelledAt?: string | undefined;
4986
+ turnId: string;
4987
+ kind: "process";
4988
+ deadline: string;
4989
+ timeoutSeconds: number;
4990
+ pid: number;
4991
+ startToken?: string | undefined;
4992
+ exitFile?: string | undefined;
4993
+ note?: string | undefined;
4994
+ result?: {
4995
+ outcome: "deadline" | "error" | "exit_file" | "exited";
4996
+ observedAt: string;
4997
+ exitCode?: number | undefined;
4998
+ exitFileNote?: "not-an-exit-code" | undefined;
4999
+ diagnostic?: string | undefined;
5000
+ } | undefined;
5001
5001
  } | {
5002
5002
  id: string;
5003
5003
  source: "agent" | "cezar";
@@ -5142,8 +5142,6 @@ export declare function createRunsRoutes(deps: RunsRouteDeps): import("hono/hono
5142
5142
  currentStepId?: string | undefined;
5143
5143
  error?: string | undefined;
5144
5144
  delegation?: {
5145
- role: "invalid";
5146
- } | {
5147
5145
  role: "root";
5148
5146
  conversation?: {
5149
5147
  messages: {
@@ -5378,6 +5376,8 @@ export declare function createRunsRoutes(deps: RunsRouteDeps): import("hono/hono
5378
5376
  } | undefined;
5379
5377
  executionRevision?: number | undefined;
5380
5378
  executionStartSeq?: number | undefined;
5379
+ } | {
5380
+ role: "invalid";
5381
5381
  } | undefined;
5382
5382
  lastWaitsError?: string | undefined;
5383
5383
  automaticWakes?: number | undefined;
@@ -5554,17 +5554,6 @@ export declare function createRunsRoutes(deps: RunsRouteDeps): import("hono/hono
5554
5554
  } & {
5555
5555
  "/runs/:id/read": {
5556
5556
  $post: {
5557
- output: {
5558
- error: string;
5559
- };
5560
- outputFormat: "json";
5561
- status: 404;
5562
- input: {
5563
- param: {
5564
- id: string;
5565
- };
5566
- };
5567
- } | {
5568
5557
  output: {
5569
5558
  archiveWhenDone?: boolean | undefined;
5570
5559
  autoMergePr?: boolean | undefined;
@@ -5626,8 +5615,6 @@ export declare function createRunsRoutes(deps: RunsRouteDeps): import("hono/hono
5626
5615
  } | undefined;
5627
5616
  invalidAsk?: boolean | undefined;
5628
5617
  delegation?: {
5629
- role: "invalid";
5630
- } | {
5631
5618
  role: "root";
5632
5619
  conversation?: {
5633
5620
  messages: {
@@ -5862,6 +5849,8 @@ export declare function createRunsRoutes(deps: RunsRouteDeps): import("hono/hono
5862
5849
  } | undefined;
5863
5850
  executionRevision?: number | undefined;
5864
5851
  executionStartSeq?: number | undefined;
5852
+ } | {
5853
+ role: "invalid";
5865
5854
  } | undefined;
5866
5855
  agentInputs?: {
5867
5856
  conversation?: {
@@ -5955,30 +5944,6 @@ export declare function createRunsRoutes(deps: RunsRouteDeps): import("hono/hono
5955
5944
  deadline: string;
5956
5945
  seconds: number;
5957
5946
  note?: string | undefined;
5958
- } | {
5959
- id: string;
5960
- source: "agent" | "cezar";
5961
- 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";
5962
- registeredAt: string;
5963
- phase: "cancelled" | "delivered" | "open" | "resolved";
5964
- resolvedAt?: string | undefined;
5965
- deliveredAt?: string | undefined;
5966
- cancelledAt?: string | undefined;
5967
- turnId: string;
5968
- kind: "process";
5969
- deadline: string;
5970
- timeoutSeconds: number;
5971
- pid: number;
5972
- startToken?: string | undefined;
5973
- exitFile?: string | undefined;
5974
- note?: string | undefined;
5975
- result?: {
5976
- outcome: "deadline" | "error" | "exit_file" | "exited";
5977
- observedAt: string;
5978
- exitCode?: number | undefined;
5979
- exitFileNote?: "not-an-exit-code" | undefined;
5980
- diagnostic?: string | undefined;
5981
- } | undefined;
5982
5947
  } | {
5983
5948
  id: string;
5984
5949
  source: "agent" | "cezar";
@@ -6040,6 +6005,30 @@ export declare function createRunsRoutes(deps: RunsRouteDeps): import("hono/hono
6040
6005
  reason: "outcome" | "timeout";
6041
6006
  } | undefined;
6042
6007
  wakeInputId?: string | undefined;
6008
+ } | {
6009
+ id: string;
6010
+ source: "agent" | "cezar";
6011
+ via: "ask-line" | "budget" | "cez-message-wait" | "cez-worker-wait" | "cezar_ask" | "cezar_wait" | "cezar_wait_for_ci" | "completion" | "monitoring-line" | "native-ask" | "native-subagents" | "no-wait" | "schedule-wakeup";
6012
+ registeredAt: string;
6013
+ phase: "cancelled" | "delivered" | "open" | "resolved";
6014
+ resolvedAt?: string | undefined;
6015
+ deliveredAt?: string | undefined;
6016
+ cancelledAt?: string | undefined;
6017
+ turnId: string;
6018
+ kind: "process";
6019
+ deadline: string;
6020
+ timeoutSeconds: number;
6021
+ pid: number;
6022
+ startToken?: string | undefined;
6023
+ exitFile?: string | undefined;
6024
+ note?: string | undefined;
6025
+ result?: {
6026
+ outcome: "deadline" | "error" | "exit_file" | "exited";
6027
+ observedAt: string;
6028
+ exitCode?: number | undefined;
6029
+ exitFileNote?: "not-an-exit-code" | undefined;
6030
+ diagnostic?: string | undefined;
6031
+ } | undefined;
6043
6032
  } | {
6044
6033
  id: string;
6045
6034
  source: "agent" | "cezar";
@@ -6172,30 +6161,6 @@ export declare function createRunsRoutes(deps: RunsRouteDeps): import("hono/hono
6172
6161
  deadline: string;
6173
6162
  seconds: number;
6174
6163
  note?: string | undefined;
6175
- } | {
6176
- id: string;
6177
- source: "agent" | "cezar";
6178
- 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";
6179
- registeredAt: string;
6180
- phase: "cancelled" | "delivered" | "open" | "resolved";
6181
- resolvedAt?: string | undefined;
6182
- deliveredAt?: string | undefined;
6183
- cancelledAt?: string | undefined;
6184
- turnId: string;
6185
- kind: "process";
6186
- deadline: string;
6187
- timeoutSeconds: number;
6188
- pid: number;
6189
- startToken?: string | undefined;
6190
- exitFile?: string | undefined;
6191
- note?: string | undefined;
6192
- result?: {
6193
- outcome: "deadline" | "error" | "exit_file" | "exited";
6194
- observedAt: string;
6195
- exitCode?: number | undefined;
6196
- exitFileNote?: "not-an-exit-code" | undefined;
6197
- diagnostic?: string | undefined;
6198
- } | undefined;
6199
6164
  } | {
6200
6165
  id: string;
6201
6166
  source: "agent" | "cezar";
@@ -6257,6 +6222,30 @@ export declare function createRunsRoutes(deps: RunsRouteDeps): import("hono/hono
6257
6222
  reason: "outcome" | "timeout";
6258
6223
  } | undefined;
6259
6224
  wakeInputId?: string | undefined;
6225
+ } | {
6226
+ id: string;
6227
+ source: "agent" | "cezar";
6228
+ via: "ask-line" | "budget" | "cez-message-wait" | "cez-worker-wait" | "cezar_ask" | "cezar_wait" | "cezar_wait_for_ci" | "completion" | "monitoring-line" | "native-ask" | "native-subagents" | "no-wait" | "schedule-wakeup";
6229
+ registeredAt: string;
6230
+ phase: "cancelled" | "delivered" | "open" | "resolved";
6231
+ resolvedAt?: string | undefined;
6232
+ deliveredAt?: string | undefined;
6233
+ cancelledAt?: string | undefined;
6234
+ turnId: string;
6235
+ kind: "process";
6236
+ deadline: string;
6237
+ timeoutSeconds: number;
6238
+ pid: number;
6239
+ startToken?: string | undefined;
6240
+ exitFile?: string | undefined;
6241
+ note?: string | undefined;
6242
+ result?: {
6243
+ outcome: "deadline" | "error" | "exit_file" | "exited";
6244
+ observedAt: string;
6245
+ exitCode?: number | undefined;
6246
+ exitFileNote?: "not-an-exit-code" | undefined;
6247
+ diagnostic?: string | undefined;
6248
+ } | undefined;
6260
6249
  } | {
6261
6250
  id: string;
6262
6251
  source: "agent" | "cezar";
@@ -6388,30 +6377,6 @@ export declare function createRunsRoutes(deps: RunsRouteDeps): import("hono/hono
6388
6377
  deadline: string;
6389
6378
  seconds: number;
6390
6379
  note?: string | undefined;
6391
- } | {
6392
- id: string;
6393
- source: "agent" | "cezar";
6394
- 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";
6395
- registeredAt: string;
6396
- phase: "cancelled" | "delivered" | "open" | "resolved";
6397
- resolvedAt?: string | undefined;
6398
- deliveredAt?: string | undefined;
6399
- cancelledAt?: string | undefined;
6400
- turnId: string;
6401
- kind: "process";
6402
- deadline: string;
6403
- timeoutSeconds: number;
6404
- pid: number;
6405
- startToken?: string | undefined;
6406
- exitFile?: string | undefined;
6407
- note?: string | undefined;
6408
- result?: {
6409
- outcome: "deadline" | "error" | "exit_file" | "exited";
6410
- observedAt: string;
6411
- exitCode?: number | undefined;
6412
- exitFileNote?: "not-an-exit-code" | undefined;
6413
- diagnostic?: string | undefined;
6414
- } | undefined;
6415
6380
  } | {
6416
6381
  id: string;
6417
6382
  source: "agent" | "cezar";
@@ -6473,6 +6438,30 @@ export declare function createRunsRoutes(deps: RunsRouteDeps): import("hono/hono
6473
6438
  reason: "outcome" | "timeout";
6474
6439
  } | undefined;
6475
6440
  wakeInputId?: string | undefined;
6441
+ } | {
6442
+ id: string;
6443
+ source: "agent" | "cezar";
6444
+ via: "ask-line" | "budget" | "cez-message-wait" | "cez-worker-wait" | "cezar_ask" | "cezar_wait" | "cezar_wait_for_ci" | "completion" | "monitoring-line" | "native-ask" | "native-subagents" | "no-wait" | "schedule-wakeup";
6445
+ registeredAt: string;
6446
+ phase: "cancelled" | "delivered" | "open" | "resolved";
6447
+ resolvedAt?: string | undefined;
6448
+ deliveredAt?: string | undefined;
6449
+ cancelledAt?: string | undefined;
6450
+ turnId: string;
6451
+ kind: "process";
6452
+ deadline: string;
6453
+ timeoutSeconds: number;
6454
+ pid: number;
6455
+ startToken?: string | undefined;
6456
+ exitFile?: string | undefined;
6457
+ note?: string | undefined;
6458
+ result?: {
6459
+ outcome: "deadline" | "error" | "exit_file" | "exited";
6460
+ observedAt: string;
6461
+ exitCode?: number | undefined;
6462
+ exitFileNote?: "not-an-exit-code" | undefined;
6463
+ diagnostic?: string | undefined;
6464
+ } | undefined;
6476
6465
  } | {
6477
6466
  id: string;
6478
6467
  source: "agent" | "cezar";
@@ -6740,11 +6729,7 @@ export declare function createRunsRoutes(deps: RunsRouteDeps): import("hono/hono
6740
6729
  id: string;
6741
6730
  };
6742
6731
  };
6743
- };
6744
- };
6745
- } & {
6746
- "/runs/:id/unread": {
6747
- $post: {
6732
+ } | {
6748
6733
  output: {
6749
6734
  error: string;
6750
6735
  };
@@ -6755,7 +6740,11 @@ export declare function createRunsRoutes(deps: RunsRouteDeps): import("hono/hono
6755
6740
  id: string;
6756
6741
  };
6757
6742
  };
6758
- } | {
6743
+ };
6744
+ };
6745
+ } & {
6746
+ "/runs/:id/unread": {
6747
+ $post: {
6759
6748
  output: {
6760
6749
  archiveWhenDone?: boolean | undefined;
6761
6750
  autoMergePr?: boolean | undefined;
@@ -6817,8 +6806,6 @@ export declare function createRunsRoutes(deps: RunsRouteDeps): import("hono/hono
6817
6806
  } | undefined;
6818
6807
  invalidAsk?: boolean | undefined;
6819
6808
  delegation?: {
6820
- role: "invalid";
6821
- } | {
6822
6809
  role: "root";
6823
6810
  conversation?: {
6824
6811
  messages: {
@@ -7053,6 +7040,8 @@ export declare function createRunsRoutes(deps: RunsRouteDeps): import("hono/hono
7053
7040
  } | undefined;
7054
7041
  executionRevision?: number | undefined;
7055
7042
  executionStartSeq?: number | undefined;
7043
+ } | {
7044
+ role: "invalid";
7056
7045
  } | undefined;
7057
7046
  agentInputs?: {
7058
7047
  conversation?: {
@@ -7146,30 +7135,6 @@ export declare function createRunsRoutes(deps: RunsRouteDeps): import("hono/hono
7146
7135
  deadline: string;
7147
7136
  seconds: number;
7148
7137
  note?: string | undefined;
7149
- } | {
7150
- id: string;
7151
- source: "agent" | "cezar";
7152
- 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";
7153
- registeredAt: string;
7154
- phase: "cancelled" | "delivered" | "open" | "resolved";
7155
- resolvedAt?: string | undefined;
7156
- deliveredAt?: string | undefined;
7157
- cancelledAt?: string | undefined;
7158
- turnId: string;
7159
- kind: "process";
7160
- deadline: string;
7161
- timeoutSeconds: number;
7162
- pid: number;
7163
- startToken?: string | undefined;
7164
- exitFile?: string | undefined;
7165
- note?: string | undefined;
7166
- result?: {
7167
- outcome: "deadline" | "error" | "exit_file" | "exited";
7168
- observedAt: string;
7169
- exitCode?: number | undefined;
7170
- exitFileNote?: "not-an-exit-code" | undefined;
7171
- diagnostic?: string | undefined;
7172
- } | undefined;
7173
7138
  } | {
7174
7139
  id: string;
7175
7140
  source: "agent" | "cezar";
@@ -7231,6 +7196,30 @@ export declare function createRunsRoutes(deps: RunsRouteDeps): import("hono/hono
7231
7196
  reason: "outcome" | "timeout";
7232
7197
  } | undefined;
7233
7198
  wakeInputId?: string | undefined;
7199
+ } | {
7200
+ id: string;
7201
+ source: "agent" | "cezar";
7202
+ via: "ask-line" | "budget" | "cez-message-wait" | "cez-worker-wait" | "cezar_ask" | "cezar_wait" | "cezar_wait_for_ci" | "completion" | "monitoring-line" | "native-ask" | "native-subagents" | "no-wait" | "schedule-wakeup";
7203
+ registeredAt: string;
7204
+ phase: "cancelled" | "delivered" | "open" | "resolved";
7205
+ resolvedAt?: string | undefined;
7206
+ deliveredAt?: string | undefined;
7207
+ cancelledAt?: string | undefined;
7208
+ turnId: string;
7209
+ kind: "process";
7210
+ deadline: string;
7211
+ timeoutSeconds: number;
7212
+ pid: number;
7213
+ startToken?: string | undefined;
7214
+ exitFile?: string | undefined;
7215
+ note?: string | undefined;
7216
+ result?: {
7217
+ outcome: "deadline" | "error" | "exit_file" | "exited";
7218
+ observedAt: string;
7219
+ exitCode?: number | undefined;
7220
+ exitFileNote?: "not-an-exit-code" | undefined;
7221
+ diagnostic?: string | undefined;
7222
+ } | undefined;
7234
7223
  } | {
7235
7224
  id: string;
7236
7225
  source: "agent" | "cezar";
@@ -7363,30 +7352,6 @@ export declare function createRunsRoutes(deps: RunsRouteDeps): import("hono/hono
7363
7352
  deadline: string;
7364
7353
  seconds: number;
7365
7354
  note?: string | undefined;
7366
- } | {
7367
- id: string;
7368
- source: "agent" | "cezar";
7369
- 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";
7370
- registeredAt: string;
7371
- phase: "cancelled" | "delivered" | "open" | "resolved";
7372
- resolvedAt?: string | undefined;
7373
- deliveredAt?: string | undefined;
7374
- cancelledAt?: string | undefined;
7375
- turnId: string;
7376
- kind: "process";
7377
- deadline: string;
7378
- timeoutSeconds: number;
7379
- pid: number;
7380
- startToken?: string | undefined;
7381
- exitFile?: string | undefined;
7382
- note?: string | undefined;
7383
- result?: {
7384
- outcome: "deadline" | "error" | "exit_file" | "exited";
7385
- observedAt: string;
7386
- exitCode?: number | undefined;
7387
- exitFileNote?: "not-an-exit-code" | undefined;
7388
- diagnostic?: string | undefined;
7389
- } | undefined;
7390
7355
  } | {
7391
7356
  id: string;
7392
7357
  source: "agent" | "cezar";
@@ -7458,23 +7423,47 @@ export declare function createRunsRoutes(deps: RunsRouteDeps): import("hono/hono
7458
7423
  deliveredAt?: string | undefined;
7459
7424
  cancelledAt?: string | undefined;
7460
7425
  turnId: string;
7461
- kind: "peer";
7426
+ kind: "process";
7462
7427
  deadline: string;
7463
7428
  timeoutSeconds: number;
7464
- peerIds: string[];
7429
+ pid: number;
7430
+ startToken?: string | undefined;
7431
+ exitFile?: string | undefined;
7432
+ note?: string | undefined;
7465
7433
  result?: {
7466
- reason: "message";
7467
- peerRunId: string;
7468
- messageId: string;
7469
- } | {
7470
- reason: "settled";
7471
- peerRunId: string;
7472
- } | {
7473
- reason: "timeout";
7474
- } | undefined;
7475
- } | {
7476
- id: string;
7477
- registeredAt: string;
7434
+ outcome: "deadline" | "error" | "exit_file" | "exited";
7435
+ observedAt: string;
7436
+ exitCode?: number | undefined;
7437
+ exitFileNote?: "not-an-exit-code" | undefined;
7438
+ diagnostic?: string | undefined;
7439
+ } | undefined;
7440
+ } | {
7441
+ id: string;
7442
+ source: "agent" | "cezar";
7443
+ 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";
7444
+ registeredAt: string;
7445
+ phase: "cancelled" | "delivered" | "open" | "resolved";
7446
+ resolvedAt?: string | undefined;
7447
+ deliveredAt?: string | undefined;
7448
+ cancelledAt?: string | undefined;
7449
+ turnId: string;
7450
+ kind: "peer";
7451
+ deadline: string;
7452
+ timeoutSeconds: number;
7453
+ peerIds: string[];
7454
+ result?: {
7455
+ reason: "message";
7456
+ peerRunId: string;
7457
+ messageId: string;
7458
+ } | {
7459
+ reason: "settled";
7460
+ peerRunId: string;
7461
+ } | {
7462
+ reason: "timeout";
7463
+ } | undefined;
7464
+ } | {
7465
+ id: string;
7466
+ registeredAt: string;
7478
7467
  phase: "cancelled" | "delivered" | "open" | "resolved";
7479
7468
  resolvedAt?: string | undefined;
7480
7469
  deliveredAt?: string | undefined;
@@ -7579,30 +7568,6 @@ export declare function createRunsRoutes(deps: RunsRouteDeps): import("hono/hono
7579
7568
  deadline: string;
7580
7569
  seconds: number;
7581
7570
  note?: string | undefined;
7582
- } | {
7583
- id: string;
7584
- source: "agent" | "cezar";
7585
- 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";
7586
- registeredAt: string;
7587
- phase: "cancelled" | "delivered" | "open" | "resolved";
7588
- resolvedAt?: string | undefined;
7589
- deliveredAt?: string | undefined;
7590
- cancelledAt?: string | undefined;
7591
- turnId: string;
7592
- kind: "process";
7593
- deadline: string;
7594
- timeoutSeconds: number;
7595
- pid: number;
7596
- startToken?: string | undefined;
7597
- exitFile?: string | undefined;
7598
- note?: string | undefined;
7599
- result?: {
7600
- outcome: "deadline" | "error" | "exit_file" | "exited";
7601
- observedAt: string;
7602
- exitCode?: number | undefined;
7603
- exitFileNote?: "not-an-exit-code" | undefined;
7604
- diagnostic?: string | undefined;
7605
- } | undefined;
7606
7571
  } | {
7607
7572
  id: string;
7608
7573
  source: "agent" | "cezar";
@@ -7664,6 +7629,30 @@ export declare function createRunsRoutes(deps: RunsRouteDeps): import("hono/hono
7664
7629
  reason: "outcome" | "timeout";
7665
7630
  } | undefined;
7666
7631
  wakeInputId?: string | undefined;
7632
+ } | {
7633
+ id: string;
7634
+ source: "agent" | "cezar";
7635
+ via: "ask-line" | "budget" | "cez-message-wait" | "cez-worker-wait" | "cezar_ask" | "cezar_wait" | "cezar_wait_for_ci" | "completion" | "monitoring-line" | "native-ask" | "native-subagents" | "no-wait" | "schedule-wakeup";
7636
+ registeredAt: string;
7637
+ phase: "cancelled" | "delivered" | "open" | "resolved";
7638
+ resolvedAt?: string | undefined;
7639
+ deliveredAt?: string | undefined;
7640
+ cancelledAt?: string | undefined;
7641
+ turnId: string;
7642
+ kind: "process";
7643
+ deadline: string;
7644
+ timeoutSeconds: number;
7645
+ pid: number;
7646
+ startToken?: string | undefined;
7647
+ exitFile?: string | undefined;
7648
+ note?: string | undefined;
7649
+ result?: {
7650
+ outcome: "deadline" | "error" | "exit_file" | "exited";
7651
+ observedAt: string;
7652
+ exitCode?: number | undefined;
7653
+ exitFileNote?: "not-an-exit-code" | undefined;
7654
+ diagnostic?: string | undefined;
7655
+ } | undefined;
7667
7656
  } | {
7668
7657
  id: string;
7669
7658
  source: "agent" | "cezar";
@@ -7931,6 +7920,17 @@ export declare function createRunsRoutes(deps: RunsRouteDeps): import("hono/hono
7931
7920
  id: string;
7932
7921
  };
7933
7922
  };
7923
+ } | {
7924
+ output: {
7925
+ error: string;
7926
+ };
7927
+ outputFormat: "json";
7928
+ status: 404;
7929
+ input: {
7930
+ param: {
7931
+ id: string;
7932
+ };
7933
+ };
7934
7934
  };
7935
7935
  };
7936
7936
  } & {
@@ -8073,30 +8073,6 @@ export declare function createRunsRoutes(deps: RunsRouteDeps): import("hono/hono
8073
8073
  deadline: string;
8074
8074
  seconds: number;
8075
8075
  note?: string | undefined;
8076
- } | {
8077
- id: string;
8078
- source: "agent" | "cezar";
8079
- 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";
8080
- registeredAt: string;
8081
- phase: "cancelled" | "delivered" | "open" | "resolved";
8082
- resolvedAt?: string | undefined;
8083
- deliveredAt?: string | undefined;
8084
- cancelledAt?: string | undefined;
8085
- turnId: string;
8086
- kind: "process";
8087
- deadline: string;
8088
- timeoutSeconds: number;
8089
- pid: number;
8090
- startToken?: string | undefined;
8091
- exitFile?: string | undefined;
8092
- note?: string | undefined;
8093
- result?: {
8094
- outcome: "deadline" | "error" | "exit_file" | "exited";
8095
- observedAt: string;
8096
- exitCode?: number | undefined;
8097
- exitFileNote?: "not-an-exit-code" | undefined;
8098
- diagnostic?: string | undefined;
8099
- } | undefined;
8100
8076
  } | {
8101
8077
  id: string;
8102
8078
  source: "agent" | "cezar";
@@ -8158,6 +8134,30 @@ export declare function createRunsRoutes(deps: RunsRouteDeps): import("hono/hono
8158
8134
  reason: "outcome" | "timeout";
8159
8135
  } | undefined;
8160
8136
  wakeInputId?: string | undefined;
8137
+ } | {
8138
+ id: string;
8139
+ source: "agent" | "cezar";
8140
+ via: "ask-line" | "budget" | "cez-message-wait" | "cez-worker-wait" | "cezar_ask" | "cezar_wait" | "cezar_wait_for_ci" | "completion" | "monitoring-line" | "native-ask" | "native-subagents" | "no-wait" | "schedule-wakeup";
8141
+ registeredAt: string;
8142
+ phase: "cancelled" | "delivered" | "open" | "resolved";
8143
+ resolvedAt?: string | undefined;
8144
+ deliveredAt?: string | undefined;
8145
+ cancelledAt?: string | undefined;
8146
+ turnId: string;
8147
+ kind: "process";
8148
+ deadline: string;
8149
+ timeoutSeconds: number;
8150
+ pid: number;
8151
+ startToken?: string | undefined;
8152
+ exitFile?: string | undefined;
8153
+ note?: string | undefined;
8154
+ result?: {
8155
+ outcome: "deadline" | "error" | "exit_file" | "exited";
8156
+ observedAt: string;
8157
+ exitCode?: number | undefined;
8158
+ exitFileNote?: "not-an-exit-code" | undefined;
8159
+ diagnostic?: string | undefined;
8160
+ } | undefined;
8161
8161
  } | {
8162
8162
  id: string;
8163
8163
  source: "agent" | "cezar";
@@ -8290,30 +8290,6 @@ export declare function createRunsRoutes(deps: RunsRouteDeps): import("hono/hono
8290
8290
  deadline: string;
8291
8291
  seconds: number;
8292
8292
  note?: string | undefined;
8293
- } | {
8294
- id: string;
8295
- source: "agent" | "cezar";
8296
- 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";
8297
- registeredAt: string;
8298
- phase: "cancelled" | "delivered" | "open" | "resolved";
8299
- resolvedAt?: string | undefined;
8300
- deliveredAt?: string | undefined;
8301
- cancelledAt?: string | undefined;
8302
- turnId: string;
8303
- kind: "process";
8304
- deadline: string;
8305
- timeoutSeconds: number;
8306
- pid: number;
8307
- startToken?: string | undefined;
8308
- exitFile?: string | undefined;
8309
- note?: string | undefined;
8310
- result?: {
8311
- outcome: "deadline" | "error" | "exit_file" | "exited";
8312
- observedAt: string;
8313
- exitCode?: number | undefined;
8314
- exitFileNote?: "not-an-exit-code" | undefined;
8315
- diagnostic?: string | undefined;
8316
- } | undefined;
8317
8293
  } | {
8318
8294
  id: string;
8319
8295
  source: "agent" | "cezar";
@@ -8375,6 +8351,30 @@ export declare function createRunsRoutes(deps: RunsRouteDeps): import("hono/hono
8375
8351
  reason: "outcome" | "timeout";
8376
8352
  } | undefined;
8377
8353
  wakeInputId?: string | undefined;
8354
+ } | {
8355
+ id: string;
8356
+ source: "agent" | "cezar";
8357
+ via: "ask-line" | "budget" | "cez-message-wait" | "cez-worker-wait" | "cezar_ask" | "cezar_wait" | "cezar_wait_for_ci" | "completion" | "monitoring-line" | "native-ask" | "native-subagents" | "no-wait" | "schedule-wakeup";
8358
+ registeredAt: string;
8359
+ phase: "cancelled" | "delivered" | "open" | "resolved";
8360
+ resolvedAt?: string | undefined;
8361
+ deliveredAt?: string | undefined;
8362
+ cancelledAt?: string | undefined;
8363
+ turnId: string;
8364
+ kind: "process";
8365
+ deadline: string;
8366
+ timeoutSeconds: number;
8367
+ pid: number;
8368
+ startToken?: string | undefined;
8369
+ exitFile?: string | undefined;
8370
+ note?: string | undefined;
8371
+ result?: {
8372
+ outcome: "deadline" | "error" | "exit_file" | "exited";
8373
+ observedAt: string;
8374
+ exitCode?: number | undefined;
8375
+ exitFileNote?: "not-an-exit-code" | undefined;
8376
+ diagnostic?: string | undefined;
8377
+ } | undefined;
8378
8378
  } | {
8379
8379
  id: string;
8380
8380
  source: "agent" | "cezar";
@@ -8506,30 +8506,6 @@ export declare function createRunsRoutes(deps: RunsRouteDeps): import("hono/hono
8506
8506
  deadline: string;
8507
8507
  seconds: number;
8508
8508
  note?: string | undefined;
8509
- } | {
8510
- id: string;
8511
- source: "agent" | "cezar";
8512
- 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";
8513
- registeredAt: string;
8514
- phase: "cancelled" | "delivered" | "open" | "resolved";
8515
- resolvedAt?: string | undefined;
8516
- deliveredAt?: string | undefined;
8517
- cancelledAt?: string | undefined;
8518
- turnId: string;
8519
- kind: "process";
8520
- deadline: string;
8521
- timeoutSeconds: number;
8522
- pid: number;
8523
- startToken?: string | undefined;
8524
- exitFile?: string | undefined;
8525
- note?: string | undefined;
8526
- result?: {
8527
- outcome: "deadline" | "error" | "exit_file" | "exited";
8528
- observedAt: string;
8529
- exitCode?: number | undefined;
8530
- exitFileNote?: "not-an-exit-code" | undefined;
8531
- diagnostic?: string | undefined;
8532
- } | undefined;
8533
8509
  } | {
8534
8510
  id: string;
8535
8511
  source: "agent" | "cezar";
@@ -8591,6 +8567,30 @@ export declare function createRunsRoutes(deps: RunsRouteDeps): import("hono/hono
8591
8567
  reason: "outcome" | "timeout";
8592
8568
  } | undefined;
8593
8569
  wakeInputId?: string | undefined;
8570
+ } | {
8571
+ id: string;
8572
+ source: "agent" | "cezar";
8573
+ via: "ask-line" | "budget" | "cez-message-wait" | "cez-worker-wait" | "cezar_ask" | "cezar_wait" | "cezar_wait_for_ci" | "completion" | "monitoring-line" | "native-ask" | "native-subagents" | "no-wait" | "schedule-wakeup";
8574
+ registeredAt: string;
8575
+ phase: "cancelled" | "delivered" | "open" | "resolved";
8576
+ resolvedAt?: string | undefined;
8577
+ deliveredAt?: string | undefined;
8578
+ cancelledAt?: string | undefined;
8579
+ turnId: string;
8580
+ kind: "process";
8581
+ deadline: string;
8582
+ timeoutSeconds: number;
8583
+ pid: number;
8584
+ startToken?: string | undefined;
8585
+ exitFile?: string | undefined;
8586
+ note?: string | undefined;
8587
+ result?: {
8588
+ outcome: "deadline" | "error" | "exit_file" | "exited";
8589
+ observedAt: string;
8590
+ exitCode?: number | undefined;
8591
+ exitFileNote?: "not-an-exit-code" | undefined;
8592
+ diagnostic?: string | undefined;
8593
+ } | undefined;
8594
8594
  } | {
8595
8595
  id: string;
8596
8596
  source: "agent" | "cezar";
@@ -8735,8 +8735,6 @@ export declare function createRunsRoutes(deps: RunsRouteDeps): import("hono/hono
8735
8735
  currentStepId?: string | undefined;
8736
8736
  error?: string | undefined;
8737
8737
  delegation?: {
8738
- role: "invalid";
8739
- } | {
8740
8738
  role: "root";
8741
8739
  conversation?: {
8742
8740
  messages: {
@@ -8971,6 +8969,8 @@ export declare function createRunsRoutes(deps: RunsRouteDeps): import("hono/hono
8971
8969
  } | undefined;
8972
8970
  executionRevision?: number | undefined;
8973
8971
  executionStartSeq?: number | undefined;
8972
+ } | {
8973
+ role: "invalid";
8974
8974
  } | undefined;
8975
8975
  lastWaitsError?: string | undefined;
8976
8976
  automaticWakes?: number | undefined;
@@ -9207,17 +9207,6 @@ export declare function createRunsRoutes(deps: RunsRouteDeps): import("hono/hono
9207
9207
  } & {
9208
9208
  "/runs/:id": {
9209
9209
  $get: {
9210
- output: {
9211
- error: string;
9212
- };
9213
- outputFormat: "json";
9214
- status: 404;
9215
- input: {
9216
- param: {
9217
- id: string;
9218
- };
9219
- };
9220
- } | {
9221
9210
  output: {
9222
9211
  archiveWhenDone?: boolean | undefined;
9223
9212
  autoMergePr?: boolean | undefined;
@@ -9279,8 +9268,6 @@ export declare function createRunsRoutes(deps: RunsRouteDeps): import("hono/hono
9279
9268
  } | undefined;
9280
9269
  invalidAsk?: boolean | undefined;
9281
9270
  delegation?: {
9282
- role: "invalid";
9283
- } | {
9284
9271
  role: "root";
9285
9272
  conversation?: {
9286
9273
  messages: {
@@ -9515,6 +9502,8 @@ export declare function createRunsRoutes(deps: RunsRouteDeps): import("hono/hono
9515
9502
  } | undefined;
9516
9503
  executionRevision?: number | undefined;
9517
9504
  executionStartSeq?: number | undefined;
9505
+ } | {
9506
+ role: "invalid";
9518
9507
  } | undefined;
9519
9508
  agentInputs?: {
9520
9509
  conversation?: {
@@ -9608,30 +9597,6 @@ export declare function createRunsRoutes(deps: RunsRouteDeps): import("hono/hono
9608
9597
  deadline: string;
9609
9598
  seconds: number;
9610
9599
  note?: string | undefined;
9611
- } | {
9612
- id: string;
9613
- source: "agent" | "cezar";
9614
- 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";
9615
- registeredAt: string;
9616
- phase: "cancelled" | "delivered" | "open" | "resolved";
9617
- resolvedAt?: string | undefined;
9618
- deliveredAt?: string | undefined;
9619
- cancelledAt?: string | undefined;
9620
- turnId: string;
9621
- kind: "process";
9622
- deadline: string;
9623
- timeoutSeconds: number;
9624
- pid: number;
9625
- startToken?: string | undefined;
9626
- exitFile?: string | undefined;
9627
- note?: string | undefined;
9628
- result?: {
9629
- outcome: "deadline" | "error" | "exit_file" | "exited";
9630
- observedAt: string;
9631
- exitCode?: number | undefined;
9632
- exitFileNote?: "not-an-exit-code" | undefined;
9633
- diagnostic?: string | undefined;
9634
- } | undefined;
9635
9600
  } | {
9636
9601
  id: string;
9637
9602
  source: "agent" | "cezar";
@@ -9693,6 +9658,30 @@ export declare function createRunsRoutes(deps: RunsRouteDeps): import("hono/hono
9693
9658
  reason: "outcome" | "timeout";
9694
9659
  } | undefined;
9695
9660
  wakeInputId?: string | undefined;
9661
+ } | {
9662
+ id: string;
9663
+ source: "agent" | "cezar";
9664
+ via: "ask-line" | "budget" | "cez-message-wait" | "cez-worker-wait" | "cezar_ask" | "cezar_wait" | "cezar_wait_for_ci" | "completion" | "monitoring-line" | "native-ask" | "native-subagents" | "no-wait" | "schedule-wakeup";
9665
+ registeredAt: string;
9666
+ phase: "cancelled" | "delivered" | "open" | "resolved";
9667
+ resolvedAt?: string | undefined;
9668
+ deliveredAt?: string | undefined;
9669
+ cancelledAt?: string | undefined;
9670
+ turnId: string;
9671
+ kind: "process";
9672
+ deadline: string;
9673
+ timeoutSeconds: number;
9674
+ pid: number;
9675
+ startToken?: string | undefined;
9676
+ exitFile?: string | undefined;
9677
+ note?: string | undefined;
9678
+ result?: {
9679
+ outcome: "deadline" | "error" | "exit_file" | "exited";
9680
+ observedAt: string;
9681
+ exitCode?: number | undefined;
9682
+ exitFileNote?: "not-an-exit-code" | undefined;
9683
+ diagnostic?: string | undefined;
9684
+ } | undefined;
9696
9685
  } | {
9697
9686
  id: string;
9698
9687
  source: "agent" | "cezar";
@@ -9825,30 +9814,6 @@ export declare function createRunsRoutes(deps: RunsRouteDeps): import("hono/hono
9825
9814
  deadline: string;
9826
9815
  seconds: number;
9827
9816
  note?: string | undefined;
9828
- } | {
9829
- id: string;
9830
- source: "agent" | "cezar";
9831
- 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";
9832
- registeredAt: string;
9833
- phase: "cancelled" | "delivered" | "open" | "resolved";
9834
- resolvedAt?: string | undefined;
9835
- deliveredAt?: string | undefined;
9836
- cancelledAt?: string | undefined;
9837
- turnId: string;
9838
- kind: "process";
9839
- deadline: string;
9840
- timeoutSeconds: number;
9841
- pid: number;
9842
- startToken?: string | undefined;
9843
- exitFile?: string | undefined;
9844
- note?: string | undefined;
9845
- result?: {
9846
- outcome: "deadline" | "error" | "exit_file" | "exited";
9847
- observedAt: string;
9848
- exitCode?: number | undefined;
9849
- exitFileNote?: "not-an-exit-code" | undefined;
9850
- diagnostic?: string | undefined;
9851
- } | undefined;
9852
9817
  } | {
9853
9818
  id: string;
9854
9819
  source: "agent" | "cezar";
@@ -9910,6 +9875,30 @@ export declare function createRunsRoutes(deps: RunsRouteDeps): import("hono/hono
9910
9875
  reason: "outcome" | "timeout";
9911
9876
  } | undefined;
9912
9877
  wakeInputId?: string | undefined;
9878
+ } | {
9879
+ id: string;
9880
+ source: "agent" | "cezar";
9881
+ via: "ask-line" | "budget" | "cez-message-wait" | "cez-worker-wait" | "cezar_ask" | "cezar_wait" | "cezar_wait_for_ci" | "completion" | "monitoring-line" | "native-ask" | "native-subagents" | "no-wait" | "schedule-wakeup";
9882
+ registeredAt: string;
9883
+ phase: "cancelled" | "delivered" | "open" | "resolved";
9884
+ resolvedAt?: string | undefined;
9885
+ deliveredAt?: string | undefined;
9886
+ cancelledAt?: string | undefined;
9887
+ turnId: string;
9888
+ kind: "process";
9889
+ deadline: string;
9890
+ timeoutSeconds: number;
9891
+ pid: number;
9892
+ startToken?: string | undefined;
9893
+ exitFile?: string | undefined;
9894
+ note?: string | undefined;
9895
+ result?: {
9896
+ outcome: "deadline" | "error" | "exit_file" | "exited";
9897
+ observedAt: string;
9898
+ exitCode?: number | undefined;
9899
+ exitFileNote?: "not-an-exit-code" | undefined;
9900
+ diagnostic?: string | undefined;
9901
+ } | undefined;
9913
9902
  } | {
9914
9903
  id: string;
9915
9904
  source: "agent" | "cezar";
@@ -10041,30 +10030,6 @@ export declare function createRunsRoutes(deps: RunsRouteDeps): import("hono/hono
10041
10030
  deadline: string;
10042
10031
  seconds: number;
10043
10032
  note?: string | undefined;
10044
- } | {
10045
- id: string;
10046
- source: "agent" | "cezar";
10047
- 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";
10048
- registeredAt: string;
10049
- phase: "cancelled" | "delivered" | "open" | "resolved";
10050
- resolvedAt?: string | undefined;
10051
- deliveredAt?: string | undefined;
10052
- cancelledAt?: string | undefined;
10053
- turnId: string;
10054
- kind: "process";
10055
- deadline: string;
10056
- timeoutSeconds: number;
10057
- pid: number;
10058
- startToken?: string | undefined;
10059
- exitFile?: string | undefined;
10060
- note?: string | undefined;
10061
- result?: {
10062
- outcome: "deadline" | "error" | "exit_file" | "exited";
10063
- observedAt: string;
10064
- exitCode?: number | undefined;
10065
- exitFileNote?: "not-an-exit-code" | undefined;
10066
- diagnostic?: string | undefined;
10067
- } | undefined;
10068
10033
  } | {
10069
10034
  id: string;
10070
10035
  source: "agent" | "cezar";
@@ -10126,6 +10091,30 @@ export declare function createRunsRoutes(deps: RunsRouteDeps): import("hono/hono
10126
10091
  reason: "outcome" | "timeout";
10127
10092
  } | undefined;
10128
10093
  wakeInputId?: string | undefined;
10094
+ } | {
10095
+ id: string;
10096
+ source: "agent" | "cezar";
10097
+ via: "ask-line" | "budget" | "cez-message-wait" | "cez-worker-wait" | "cezar_ask" | "cezar_wait" | "cezar_wait_for_ci" | "completion" | "monitoring-line" | "native-ask" | "native-subagents" | "no-wait" | "schedule-wakeup";
10098
+ registeredAt: string;
10099
+ phase: "cancelled" | "delivered" | "open" | "resolved";
10100
+ resolvedAt?: string | undefined;
10101
+ deliveredAt?: string | undefined;
10102
+ cancelledAt?: string | undefined;
10103
+ turnId: string;
10104
+ kind: "process";
10105
+ deadline: string;
10106
+ timeoutSeconds: number;
10107
+ pid: number;
10108
+ startToken?: string | undefined;
10109
+ exitFile?: string | undefined;
10110
+ note?: string | undefined;
10111
+ result?: {
10112
+ outcome: "deadline" | "error" | "exit_file" | "exited";
10113
+ observedAt: string;
10114
+ exitCode?: number | undefined;
10115
+ exitFileNote?: "not-an-exit-code" | undefined;
10116
+ diagnostic?: string | undefined;
10117
+ } | undefined;
10129
10118
  } | {
10130
10119
  id: string;
10131
10120
  source: "agent" | "cezar";
@@ -10401,6 +10390,17 @@ export declare function createRunsRoutes(deps: RunsRouteDeps): import("hono/hono
10401
10390
  id: string;
10402
10391
  };
10403
10392
  };
10393
+ } | {
10394
+ output: {
10395
+ error: string;
10396
+ };
10397
+ outputFormat: "json";
10398
+ status: 404;
10399
+ input: {
10400
+ param: {
10401
+ id: string;
10402
+ };
10403
+ };
10404
10404
  };
10405
10405
  };
10406
10406
  } & {
@@ -10528,66 +10528,6 @@ export declare function createRunsRoutes(deps: RunsRouteDeps): import("hono/hono
10528
10528
  } & {
10529
10529
  "/runs/:id": {
10530
10530
  $patch: {
10531
- output: {
10532
- error: string;
10533
- };
10534
- outputFormat: "json";
10535
- status: 400;
10536
- input: {
10537
- json: {
10538
- archiveWhenDone?: boolean | undefined;
10539
- autoMergePr?: boolean | undefined;
10540
- allowWorkers?: boolean | undefined;
10541
- allowMessaging?: boolean | undefined;
10542
- title?: string | undefined;
10543
- task?: string | undefined;
10544
- };
10545
- } & {
10546
- param: {
10547
- id: string;
10548
- };
10549
- };
10550
- } | {
10551
- output: {
10552
- error: string;
10553
- };
10554
- outputFormat: "json";
10555
- status: 404;
10556
- input: {
10557
- json: {
10558
- archiveWhenDone?: boolean | undefined;
10559
- autoMergePr?: boolean | undefined;
10560
- allowWorkers?: boolean | undefined;
10561
- allowMessaging?: boolean | undefined;
10562
- title?: string | undefined;
10563
- task?: string | undefined;
10564
- };
10565
- } & {
10566
- param: {
10567
- id: string;
10568
- };
10569
- };
10570
- } | {
10571
- output: {
10572
- error: string;
10573
- };
10574
- outputFormat: "json";
10575
- status: 409;
10576
- input: {
10577
- json: {
10578
- archiveWhenDone?: boolean | undefined;
10579
- autoMergePr?: boolean | undefined;
10580
- allowWorkers?: boolean | undefined;
10581
- allowMessaging?: boolean | undefined;
10582
- title?: string | undefined;
10583
- task?: string | undefined;
10584
- };
10585
- } & {
10586
- param: {
10587
- id: string;
10588
- };
10589
- };
10590
- } | {
10591
10531
  output: {
10592
10532
  archiveWhenDone?: boolean | undefined;
10593
10533
  autoMergePr?: boolean | undefined;
@@ -10725,30 +10665,6 @@ export declare function createRunsRoutes(deps: RunsRouteDeps): import("hono/hono
10725
10665
  deadline: string;
10726
10666
  seconds: number;
10727
10667
  note?: string | undefined;
10728
- } | {
10729
- id: string;
10730
- source: "agent" | "cezar";
10731
- 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";
10732
- registeredAt: string;
10733
- phase: "cancelled" | "delivered" | "open" | "resolved";
10734
- resolvedAt?: string | undefined;
10735
- deliveredAt?: string | undefined;
10736
- cancelledAt?: string | undefined;
10737
- turnId: string;
10738
- kind: "process";
10739
- deadline: string;
10740
- timeoutSeconds: number;
10741
- pid: number;
10742
- startToken?: string | undefined;
10743
- exitFile?: string | undefined;
10744
- note?: string | undefined;
10745
- result?: {
10746
- outcome: "deadline" | "error" | "exit_file" | "exited";
10747
- observedAt: string;
10748
- exitCode?: number | undefined;
10749
- exitFileNote?: "not-an-exit-code" | undefined;
10750
- diagnostic?: string | undefined;
10751
- } | undefined;
10752
10668
  } | {
10753
10669
  id: string;
10754
10670
  source: "agent" | "cezar";
@@ -10820,22 +10736,46 @@ export declare function createRunsRoutes(deps: RunsRouteDeps): import("hono/hono
10820
10736
  deliveredAt?: string | undefined;
10821
10737
  cancelledAt?: string | undefined;
10822
10738
  turnId: string;
10823
- kind: "peer";
10739
+ kind: "process";
10824
10740
  deadline: string;
10825
10741
  timeoutSeconds: number;
10826
- peerIds: string[];
10742
+ pid: number;
10743
+ startToken?: string | undefined;
10744
+ exitFile?: string | undefined;
10745
+ note?: string | undefined;
10827
10746
  result?: {
10828
- reason: "message";
10829
- peerRunId: string;
10830
- messageId: string;
10831
- } | {
10832
- reason: "settled";
10833
- peerRunId: string;
10834
- } | {
10835
- reason: "timeout";
10836
- } | undefined;
10837
- } | {
10838
- id: string;
10747
+ outcome: "deadline" | "error" | "exit_file" | "exited";
10748
+ observedAt: string;
10749
+ exitCode?: number | undefined;
10750
+ exitFileNote?: "not-an-exit-code" | undefined;
10751
+ diagnostic?: string | undefined;
10752
+ } | undefined;
10753
+ } | {
10754
+ id: string;
10755
+ source: "agent" | "cezar";
10756
+ 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";
10757
+ registeredAt: string;
10758
+ phase: "cancelled" | "delivered" | "open" | "resolved";
10759
+ resolvedAt?: string | undefined;
10760
+ deliveredAt?: string | undefined;
10761
+ cancelledAt?: string | undefined;
10762
+ turnId: string;
10763
+ kind: "peer";
10764
+ deadline: string;
10765
+ timeoutSeconds: number;
10766
+ peerIds: string[];
10767
+ result?: {
10768
+ reason: "message";
10769
+ peerRunId: string;
10770
+ messageId: string;
10771
+ } | {
10772
+ reason: "settled";
10773
+ peerRunId: string;
10774
+ } | {
10775
+ reason: "timeout";
10776
+ } | undefined;
10777
+ } | {
10778
+ id: string;
10839
10779
  registeredAt: string;
10840
10780
  phase: "cancelled" | "delivered" | "open" | "resolved";
10841
10781
  resolvedAt?: string | undefined;
@@ -10942,30 +10882,6 @@ export declare function createRunsRoutes(deps: RunsRouteDeps): import("hono/hono
10942
10882
  deadline: string;
10943
10883
  seconds: number;
10944
10884
  note?: string | undefined;
10945
- } | {
10946
- id: string;
10947
- source: "agent" | "cezar";
10948
- 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";
10949
- registeredAt: string;
10950
- phase: "cancelled" | "delivered" | "open" | "resolved";
10951
- resolvedAt?: string | undefined;
10952
- deliveredAt?: string | undefined;
10953
- cancelledAt?: string | undefined;
10954
- turnId: string;
10955
- kind: "process";
10956
- deadline: string;
10957
- timeoutSeconds: number;
10958
- pid: number;
10959
- startToken?: string | undefined;
10960
- exitFile?: string | undefined;
10961
- note?: string | undefined;
10962
- result?: {
10963
- outcome: "deadline" | "error" | "exit_file" | "exited";
10964
- observedAt: string;
10965
- exitCode?: number | undefined;
10966
- exitFileNote?: "not-an-exit-code" | undefined;
10967
- diagnostic?: string | undefined;
10968
- } | undefined;
10969
10885
  } | {
10970
10886
  id: string;
10971
10887
  source: "agent" | "cezar";
@@ -11027,6 +10943,30 @@ export declare function createRunsRoutes(deps: RunsRouteDeps): import("hono/hono
11027
10943
  reason: "outcome" | "timeout";
11028
10944
  } | undefined;
11029
10945
  wakeInputId?: string | undefined;
10946
+ } | {
10947
+ id: string;
10948
+ source: "agent" | "cezar";
10949
+ via: "ask-line" | "budget" | "cez-message-wait" | "cez-worker-wait" | "cezar_ask" | "cezar_wait" | "cezar_wait_for_ci" | "completion" | "monitoring-line" | "native-ask" | "native-subagents" | "no-wait" | "schedule-wakeup";
10950
+ registeredAt: string;
10951
+ phase: "cancelled" | "delivered" | "open" | "resolved";
10952
+ resolvedAt?: string | undefined;
10953
+ deliveredAt?: string | undefined;
10954
+ cancelledAt?: string | undefined;
10955
+ turnId: string;
10956
+ kind: "process";
10957
+ deadline: string;
10958
+ timeoutSeconds: number;
10959
+ pid: number;
10960
+ startToken?: string | undefined;
10961
+ exitFile?: string | undefined;
10962
+ note?: string | undefined;
10963
+ result?: {
10964
+ outcome: "deadline" | "error" | "exit_file" | "exited";
10965
+ observedAt: string;
10966
+ exitCode?: number | undefined;
10967
+ exitFileNote?: "not-an-exit-code" | undefined;
10968
+ diagnostic?: string | undefined;
10969
+ } | undefined;
11030
10970
  } | {
11031
10971
  id: string;
11032
10972
  source: "agent" | "cezar";
@@ -11158,30 +11098,6 @@ export declare function createRunsRoutes(deps: RunsRouteDeps): import("hono/hono
11158
11098
  deadline: string;
11159
11099
  seconds: number;
11160
11100
  note?: string | undefined;
11161
- } | {
11162
- id: string;
11163
- source: "agent" | "cezar";
11164
- 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";
11165
- registeredAt: string;
11166
- phase: "cancelled" | "delivered" | "open" | "resolved";
11167
- resolvedAt?: string | undefined;
11168
- deliveredAt?: string | undefined;
11169
- cancelledAt?: string | undefined;
11170
- turnId: string;
11171
- kind: "process";
11172
- deadline: string;
11173
- timeoutSeconds: number;
11174
- pid: number;
11175
- startToken?: string | undefined;
11176
- exitFile?: string | undefined;
11177
- note?: string | undefined;
11178
- result?: {
11179
- outcome: "deadline" | "error" | "exit_file" | "exited";
11180
- observedAt: string;
11181
- exitCode?: number | undefined;
11182
- exitFileNote?: "not-an-exit-code" | undefined;
11183
- diagnostic?: string | undefined;
11184
- } | undefined;
11185
11101
  } | {
11186
11102
  id: string;
11187
11103
  source: "agent" | "cezar";
@@ -11243,6 +11159,30 @@ export declare function createRunsRoutes(deps: RunsRouteDeps): import("hono/hono
11243
11159
  reason: "outcome" | "timeout";
11244
11160
  } | undefined;
11245
11161
  wakeInputId?: string | undefined;
11162
+ } | {
11163
+ id: string;
11164
+ source: "agent" | "cezar";
11165
+ via: "ask-line" | "budget" | "cez-message-wait" | "cez-worker-wait" | "cezar_ask" | "cezar_wait" | "cezar_wait_for_ci" | "completion" | "monitoring-line" | "native-ask" | "native-subagents" | "no-wait" | "schedule-wakeup";
11166
+ registeredAt: string;
11167
+ phase: "cancelled" | "delivered" | "open" | "resolved";
11168
+ resolvedAt?: string | undefined;
11169
+ deliveredAt?: string | undefined;
11170
+ cancelledAt?: string | undefined;
11171
+ turnId: string;
11172
+ kind: "process";
11173
+ deadline: string;
11174
+ timeoutSeconds: number;
11175
+ pid: number;
11176
+ startToken?: string | undefined;
11177
+ exitFile?: string | undefined;
11178
+ note?: string | undefined;
11179
+ result?: {
11180
+ outcome: "deadline" | "error" | "exit_file" | "exited";
11181
+ observedAt: string;
11182
+ exitCode?: number | undefined;
11183
+ exitFileNote?: "not-an-exit-code" | undefined;
11184
+ diagnostic?: string | undefined;
11185
+ } | undefined;
11246
11186
  } | {
11247
11187
  id: string;
11248
11188
  source: "agent" | "cezar";
@@ -11387,8 +11327,6 @@ export declare function createRunsRoutes(deps: RunsRouteDeps): import("hono/hono
11387
11327
  currentStepId?: string | undefined;
11388
11328
  error?: string | undefined;
11389
11329
  delegation?: {
11390
- role: "invalid";
11391
- } | {
11392
11330
  role: "root";
11393
11331
  conversation?: {
11394
11332
  messages: {
@@ -11623,6 +11561,8 @@ export declare function createRunsRoutes(deps: RunsRouteDeps): import("hono/hono
11623
11561
  } | undefined;
11624
11562
  executionRevision?: number | undefined;
11625
11563
  executionStartSeq?: number | undefined;
11564
+ } | {
11565
+ role: "invalid";
11626
11566
  } | undefined;
11627
11567
  lastWaitsError?: string | undefined;
11628
11568
  automaticWakes?: number | undefined;
@@ -11772,6 +11712,66 @@ export declare function createRunsRoutes(deps: RunsRouteDeps): import("hono/hono
11772
11712
  id: string;
11773
11713
  };
11774
11714
  };
11715
+ } | {
11716
+ output: {
11717
+ error: string;
11718
+ };
11719
+ outputFormat: "json";
11720
+ status: 404;
11721
+ input: {
11722
+ json: {
11723
+ archiveWhenDone?: boolean | undefined;
11724
+ autoMergePr?: boolean | undefined;
11725
+ allowWorkers?: boolean | undefined;
11726
+ allowMessaging?: boolean | undefined;
11727
+ title?: string | undefined;
11728
+ task?: string | undefined;
11729
+ };
11730
+ } & {
11731
+ param: {
11732
+ id: string;
11733
+ };
11734
+ };
11735
+ } | {
11736
+ output: {
11737
+ error: string;
11738
+ };
11739
+ outputFormat: "json";
11740
+ status: 400;
11741
+ input: {
11742
+ json: {
11743
+ archiveWhenDone?: boolean | undefined;
11744
+ autoMergePr?: boolean | undefined;
11745
+ allowWorkers?: boolean | undefined;
11746
+ allowMessaging?: boolean | undefined;
11747
+ title?: string | undefined;
11748
+ task?: string | undefined;
11749
+ };
11750
+ } & {
11751
+ param: {
11752
+ id: string;
11753
+ };
11754
+ };
11755
+ } | {
11756
+ output: {
11757
+ error: string;
11758
+ };
11759
+ outputFormat: "json";
11760
+ status: 409;
11761
+ input: {
11762
+ json: {
11763
+ archiveWhenDone?: boolean | undefined;
11764
+ autoMergePr?: boolean | undefined;
11765
+ allowWorkers?: boolean | undefined;
11766
+ allowMessaging?: boolean | undefined;
11767
+ title?: string | undefined;
11768
+ task?: string | undefined;
11769
+ };
11770
+ } & {
11771
+ param: {
11772
+ id: string;
11773
+ };
11774
+ };
11775
11775
  };
11776
11776
  };
11777
11777
  } & {
@@ -11876,7 +11876,7 @@ export declare function createRunsRoutes(deps: RunsRouteDeps): import("hono/hono
11876
11876
  error: string;
11877
11877
  };
11878
11878
  outputFormat: "json";
11879
- status: 400;
11879
+ status: 404;
11880
11880
  input: {
11881
11881
  json: {
11882
11882
  text?: string | undefined;
@@ -11895,7 +11895,7 @@ export declare function createRunsRoutes(deps: RunsRouteDeps): import("hono/hono
11895
11895
  error: string;
11896
11896
  };
11897
11897
  outputFormat: "json";
11898
- status: 404;
11898
+ status: 409;
11899
11899
  input: {
11900
11900
  json: {
11901
11901
  text?: string | undefined;
@@ -11911,10 +11911,10 @@ export declare function createRunsRoutes(deps: RunsRouteDeps): import("hono/hono
11911
11911
  };
11912
11912
  } | {
11913
11913
  output: {
11914
- error: string;
11914
+ delivered: true;
11915
11915
  };
11916
11916
  outputFormat: "json";
11917
- status: 409;
11917
+ status: import("hono/utils/http-status").ContentfulStatusCode;
11918
11918
  input: {
11919
11919
  json: {
11920
11920
  text?: string | undefined;
@@ -11930,10 +11930,10 @@ export declare function createRunsRoutes(deps: RunsRouteDeps): import("hono/hono
11930
11930
  };
11931
11931
  } | {
11932
11932
  output: {
11933
- delivered: true;
11933
+ error: string;
11934
11934
  };
11935
11935
  outputFormat: "json";
11936
- status: import("hono/utils/http-status").ContentfulStatusCode;
11936
+ status: 400;
11937
11937
  input: {
11938
11938
  json: {
11939
11939
  text?: string | undefined;
@@ -12001,7 +12001,7 @@ export declare function createRunsRoutes(deps: RunsRouteDeps): import("hono/hono
12001
12001
  error: string;
12002
12002
  };
12003
12003
  outputFormat: "json";
12004
- status: 400;
12004
+ status: 404;
12005
12005
  input: {
12006
12006
  json: {
12007
12007
  text?: string | undefined;
@@ -12022,7 +12022,7 @@ export declare function createRunsRoutes(deps: RunsRouteDeps): import("hono/hono
12022
12022
  error: string;
12023
12023
  };
12024
12024
  outputFormat: "json";
12025
- status: 404;
12025
+ status: 400;
12026
12026
  input: {
12027
12027
  json: {
12028
12028
  text?: string | undefined;
@@ -12242,11 +12242,10 @@ export declare function createRunsRoutes(deps: RunsRouteDeps): import("hono/hono
12242
12242
  "/runs/:id/open-in-cli": {
12243
12243
  $post: {
12244
12244
  output: {
12245
- opened: true;
12246
- command: string;
12245
+ error: string;
12247
12246
  };
12248
12247
  outputFormat: "json";
12249
- status: import("hono/utils/http-status").ContentfulStatusCode;
12248
+ status: 404 | 409;
12250
12249
  input: {
12251
12250
  param: {
12252
12251
  id: string;
@@ -12254,10 +12253,11 @@ export declare function createRunsRoutes(deps: RunsRouteDeps): import("hono/hono
12254
12253
  };
12255
12254
  } | {
12256
12255
  output: {
12257
- error: string;
12256
+ opened: true;
12257
+ command: string;
12258
12258
  };
12259
12259
  outputFormat: "json";
12260
- status: 404 | 409;
12260
+ status: import("hono/utils/http-status").ContentfulStatusCode;
12261
12261
  input: {
12262
12262
  param: {
12263
12263
  id: string;
@@ -12272,7 +12272,7 @@ export declare function createRunsRoutes(deps: RunsRouteDeps): import("hono/hono
12272
12272
  error: string;
12273
12273
  };
12274
12274
  outputFormat: "json";
12275
- status: 400;
12275
+ status: 404 | 409;
12276
12276
  input: {
12277
12277
  json: {
12278
12278
  target: string;
@@ -12285,11 +12285,10 @@ export declare function createRunsRoutes(deps: RunsRouteDeps): import("hono/hono
12285
12285
  };
12286
12286
  } | {
12287
12287
  output: {
12288
- opened: true;
12289
- path: string;
12288
+ error: string;
12290
12289
  };
12291
12290
  outputFormat: "json";
12292
- status: import("hono/utils/http-status").ContentfulStatusCode;
12291
+ status: 400;
12293
12292
  input: {
12294
12293
  json: {
12295
12294
  target: string;
@@ -12302,10 +12301,11 @@ export declare function createRunsRoutes(deps: RunsRouteDeps): import("hono/hono
12302
12301
  };
12303
12302
  } | {
12304
12303
  output: {
12305
- error: string;
12304
+ opened: true;
12305
+ path: string;
12306
12306
  };
12307
12307
  outputFormat: "json";
12308
- status: 404 | 409;
12308
+ status: import("hono/utils/http-status").ContentfulStatusCode;
12309
12309
  input: {
12310
12310
  json: {
12311
12311
  target: string;
@@ -12321,20 +12321,20 @@ export declare function createRunsRoutes(deps: RunsRouteDeps): import("hono/hono
12321
12321
  } & {
12322
12322
  "/runs/:id/handoff": {
12323
12323
  $get: {
12324
- output: string;
12325
- outputFormat: "text";
12326
- status: 200;
12324
+ output: {
12325
+ error: string;
12326
+ };
12327
+ outputFormat: "json";
12328
+ status: 404;
12327
12329
  input: {
12328
12330
  param: {
12329
12331
  id: string;
12330
12332
  };
12331
12333
  };
12332
12334
  } | {
12333
- output: {
12334
- error: string;
12335
- };
12336
- outputFormat: "json";
12337
- status: 404;
12335
+ output: string;
12336
+ outputFormat: "text";
12337
+ status: 200;
12338
12338
  input: {
12339
12339
  param: {
12340
12340
  id: string;
@@ -12345,12 +12345,9 @@ export declare function createRunsRoutes(deps: RunsRouteDeps): import("hono/hono
12345
12345
  } & {
12346
12346
  "/runs/:id/images/:file": {
12347
12347
  $get: {
12348
- output: {
12349
- error: string;
12350
- code?: "invalid_input" | undefined;
12351
- };
12352
- outputFormat: "json";
12353
- status: 400;
12348
+ output: {};
12349
+ outputFormat: string;
12350
+ status: import("hono/utils/http-status").StatusCode;
12354
12351
  input: {
12355
12352
  param: {
12356
12353
  id: string;
@@ -12358,9 +12355,12 @@ export declare function createRunsRoutes(deps: RunsRouteDeps): import("hono/hono
12358
12355
  };
12359
12356
  };
12360
12357
  } | {
12361
- output: {};
12362
- outputFormat: string;
12363
- status: import("hono/utils/http-status").StatusCode;
12358
+ output: {
12359
+ error: string;
12360
+ code?: "invalid_input" | undefined;
12361
+ };
12362
+ outputFormat: "json";
12363
+ status: 400;
12364
12364
  input: {
12365
12365
  param: {
12366
12366
  id: string;
@@ -12372,6 +12372,17 @@ export declare function createRunsRoutes(deps: RunsRouteDeps): import("hono/hono
12372
12372
  } & {
12373
12373
  "/runs/:id/diff": {
12374
12374
  $get: {
12375
+ output: {
12376
+ error: string;
12377
+ };
12378
+ outputFormat: "json";
12379
+ status: 404 | 409;
12380
+ input: {
12381
+ param: {
12382
+ id: string;
12383
+ };
12384
+ };
12385
+ } | {
12375
12386
  output: string;
12376
12387
  outputFormat: "text";
12377
12388
  status: import("hono/utils/http-status").ContentfulStatusCode;
@@ -12380,7 +12391,11 @@ export declare function createRunsRoutes(deps: RunsRouteDeps): import("hono/hono
12380
12391
  id: string;
12381
12392
  };
12382
12393
  };
12383
- } | {
12394
+ };
12395
+ };
12396
+ } & {
12397
+ "/runs/:id/changes": {
12398
+ $get: {
12384
12399
  output: {
12385
12400
  error: string;
12386
12401
  };
@@ -12391,11 +12406,7 @@ export declare function createRunsRoutes(deps: RunsRouteDeps): import("hono/hono
12391
12406
  id: string;
12392
12407
  };
12393
12408
  };
12394
- };
12395
- };
12396
- } & {
12397
- "/runs/:id/changes": {
12398
- $get: {
12409
+ } | {
12399
12410
  output: {
12400
12411
  files: {
12401
12412
  path: string;
@@ -12424,7 +12435,11 @@ export declare function createRunsRoutes(deps: RunsRouteDeps): import("hono/hono
12424
12435
  id: string;
12425
12436
  };
12426
12437
  };
12427
- } | {
12438
+ };
12439
+ };
12440
+ } & {
12441
+ "/runs/:id/commits": {
12442
+ $get: {
12428
12443
  output: {
12429
12444
  error: string;
12430
12445
  };
@@ -12435,11 +12450,7 @@ export declare function createRunsRoutes(deps: RunsRouteDeps): import("hono/hono
12435
12450
  id: string;
12436
12451
  };
12437
12452
  };
12438
- };
12439
- };
12440
- } & {
12441
- "/runs/:id/commits": {
12442
- $get: {
12453
+ } | {
12443
12454
  output: {
12444
12455
  commits: {
12445
12456
  sha: string;
@@ -12455,7 +12466,11 @@ export declare function createRunsRoutes(deps: RunsRouteDeps): import("hono/hono
12455
12466
  id: string;
12456
12467
  };
12457
12468
  };
12458
- } | {
12469
+ };
12470
+ };
12471
+ } & {
12472
+ "/runs/:id/commit/:sha": {
12473
+ $get: {
12459
12474
  output: {
12460
12475
  error: string;
12461
12476
  };
@@ -12464,13 +12479,11 @@ export declare function createRunsRoutes(deps: RunsRouteDeps): import("hono/hono
12464
12479
  input: {
12465
12480
  param: {
12466
12481
  id: string;
12482
+ } & {
12483
+ sha: string;
12467
12484
  };
12468
12485
  };
12469
- };
12470
- };
12471
- } & {
12472
- "/runs/:id/commit/:sha": {
12473
- $get: {
12486
+ } | {
12474
12487
  output: {
12475
12488
  sha: string;
12476
12489
  subject: string;
@@ -12496,10 +12509,31 @@ export declare function createRunsRoutes(deps: RunsRouteDeps): import("hono/hono
12496
12509
  status: import("hono/utils/http-status").ContentfulStatusCode;
12497
12510
  input: {
12498
12511
  param: {
12499
- sha: string;
12512
+ id: string;
12500
12513
  } & {
12514
+ sha: string;
12515
+ };
12516
+ };
12517
+ };
12518
+ };
12519
+ } & {
12520
+ "/runs/:id/commit/:sha/file": {
12521
+ $get: {
12522
+ output: {
12523
+ error: string;
12524
+ code?: "invalid_input" | undefined;
12525
+ };
12526
+ outputFormat: "json";
12527
+ status: 400;
12528
+ input: {
12529
+ param: {
12530
+ sha: string;
12501
12531
  id: string;
12502
12532
  };
12533
+ } & {
12534
+ query: {
12535
+ path: string | string[];
12536
+ };
12503
12537
  };
12504
12538
  } | {
12505
12539
  output: {
@@ -12510,9 +12544,33 @@ export declare function createRunsRoutes(deps: RunsRouteDeps): import("hono/hono
12510
12544
  input: {
12511
12545
  param: {
12512
12546
  sha: string;
12513
- } & {
12514
12547
  id: string;
12515
12548
  };
12549
+ } & {
12550
+ query: {
12551
+ path: string | string[];
12552
+ };
12553
+ };
12554
+ } | {
12555
+ output: {
12556
+ type: 'file';
12557
+ path: string;
12558
+ size: number;
12559
+ binary: boolean;
12560
+ tooLarge: boolean;
12561
+ content?: string | undefined;
12562
+ };
12563
+ outputFormat: "json";
12564
+ status: import("hono/utils/http-status").ContentfulStatusCode;
12565
+ input: {
12566
+ param: {
12567
+ sha: string;
12568
+ id: string;
12569
+ };
12570
+ } & {
12571
+ query: {
12572
+ path: string | string[];
12573
+ };
12516
12574
  };
12517
12575
  };
12518
12576
  };
@@ -12549,6 +12607,22 @@ export declare function createRunsRoutes(deps: RunsRouteDeps): import("hono/hono
12549
12607
  raw?: "1" | undefined;
12550
12608
  };
12551
12609
  };
12610
+ } | {
12611
+ output: {
12612
+ error: string;
12613
+ };
12614
+ outputFormat: "json";
12615
+ status: 404 | 409;
12616
+ input: {
12617
+ param: {
12618
+ id: string;
12619
+ };
12620
+ } & {
12621
+ query: {
12622
+ path: string | string[];
12623
+ raw?: "1" | undefined;
12624
+ };
12625
+ };
12552
12626
  } | {
12553
12627
  output: {
12554
12628
  type: "file";
@@ -12585,22 +12659,6 @@ export declare function createRunsRoutes(deps: RunsRouteDeps): import("hono/hono
12585
12659
  raw?: "1" | undefined;
12586
12660
  };
12587
12661
  };
12588
- } | {
12589
- output: {
12590
- error: string;
12591
- };
12592
- outputFormat: "json";
12593
- status: 404 | 409;
12594
- input: {
12595
- param: {
12596
- id: string;
12597
- };
12598
- } & {
12599
- query: {
12600
- path: string | string[];
12601
- raw?: "1" | undefined;
12602
- };
12603
- };
12604
12662
  };
12605
12663
  };
12606
12664
  } & {
@@ -12665,18 +12723,6 @@ export declare function createRunsRoutes(deps: RunsRouteDeps): import("hono/hono
12665
12723
  artifactId: string;
12666
12724
  };
12667
12725
  };
12668
- } | {
12669
- output: {
12670
- error: string;
12671
- };
12672
- outputFormat: "json";
12673
- status: 404;
12674
- input: {
12675
- param: {
12676
- id: string;
12677
- artifactId: string;
12678
- };
12679
- };
12680
12726
  } | {
12681
12727
  output: {
12682
12728
  type: "file";
@@ -12705,6 +12751,18 @@ export declare function createRunsRoutes(deps: RunsRouteDeps): import("hono/hono
12705
12751
  artifactId: string;
12706
12752
  };
12707
12753
  };
12754
+ } | {
12755
+ output: {
12756
+ error: string;
12757
+ };
12758
+ outputFormat: "json";
12759
+ status: 404;
12760
+ input: {
12761
+ param: {
12762
+ id: string;
12763
+ artifactId: string;
12764
+ };
12765
+ };
12708
12766
  };
12709
12767
  };
12710
12768
  } & {
@@ -12882,17 +12940,10 @@ export declare function createRunsRoutes(deps: RunsRouteDeps): import("hono/hono
12882
12940
  };
12883
12941
  } | {
12884
12942
  output: {
12885
- type: 'dir';
12886
- path: string;
12887
- entries: {
12888
- name: string;
12889
- type: 'dir' | 'file';
12890
- size?: number;
12891
- chain?: string;
12892
- }[];
12943
+ error: string;
12893
12944
  };
12894
12945
  outputFormat: "json";
12895
- status: import("hono/utils/http-status").ContentfulStatusCode;
12946
+ status: 404 | 409;
12896
12947
  input: {
12897
12948
  query: {
12898
12949
  path?: string | undefined;
@@ -12926,10 +12977,17 @@ export declare function createRunsRoutes(deps: RunsRouteDeps): import("hono/hono
12926
12977
  };
12927
12978
  } | {
12928
12979
  output: {
12929
- error: string;
12980
+ type: 'dir';
12981
+ path: string;
12982
+ entries: {
12983
+ name: string;
12984
+ type: 'dir' | 'file';
12985
+ size?: number;
12986
+ chain?: string;
12987
+ }[];
12930
12988
  };
12931
12989
  outputFormat: "json";
12932
- status: 404 | 409;
12990
+ status: import("hono/utils/http-status").ContentfulStatusCode;
12933
12991
  input: {
12934
12992
  query: {
12935
12993
  path?: string | undefined;
@@ -12946,11 +13004,10 @@ export declare function createRunsRoutes(deps: RunsRouteDeps): import("hono/hono
12946
13004
  "/runs/:id/git/commit": {
12947
13005
  $post: {
12948
13006
  output: {
12949
- committed: true;
12950
- sha: string;
13007
+ error: string;
12951
13008
  };
12952
13009
  outputFormat: "json";
12953
- status: import("hono/utils/http-status").ContentfulStatusCode;
13010
+ status: 404 | 409;
12954
13011
  input: {
12955
13012
  json: {
12956
13013
  message: string;
@@ -12962,10 +13019,11 @@ export declare function createRunsRoutes(deps: RunsRouteDeps): import("hono/hono
12962
13019
  };
12963
13020
  } | {
12964
13021
  output: {
12965
- error: string;
13022
+ committed: true;
13023
+ sha: string;
12966
13024
  };
12967
13025
  outputFormat: "json";
12968
- status: 404 | 409;
13026
+ status: import("hono/utils/http-status").ContentfulStatusCode;
12969
13027
  input: {
12970
13028
  json: {
12971
13029
  message: string;
@@ -12981,13 +13039,10 @@ export declare function createRunsRoutes(deps: RunsRouteDeps): import("hono/hono
12981
13039
  "/runs/:id/git/push": {
12982
13040
  $post: {
12983
13041
  output: {
12984
- pushed: true;
12985
- branch: string;
12986
- remote: string;
12987
- upstreamSet: boolean;
13042
+ error: string;
12988
13043
  };
12989
13044
  outputFormat: "json";
12990
- status: import("hono/utils/http-status").ContentfulStatusCode;
13045
+ status: 404 | 409;
12991
13046
  input: {
12992
13047
  param: {
12993
13048
  id: string;
@@ -12995,10 +13050,13 @@ export declare function createRunsRoutes(deps: RunsRouteDeps): import("hono/hono
12995
13050
  };
12996
13051
  } | {
12997
13052
  output: {
12998
- error: string;
13053
+ pushed: true;
13054
+ branch: string;
13055
+ remote: string;
13056
+ upstreamSet: boolean;
12999
13057
  };
13000
13058
  outputFormat: "json";
13001
- status: 404 | 409;
13059
+ status: import("hono/utils/http-status").ContentfulStatusCode;
13002
13060
  input: {
13003
13061
  param: {
13004
13062
  id: string;
@@ -13010,11 +13068,10 @@ export declare function createRunsRoutes(deps: RunsRouteDeps): import("hono/hono
13010
13068
  "/runs/:id/pr": {
13011
13069
  $post: {
13012
13070
  output: {
13013
- url: string;
13014
- dryRun: boolean;
13071
+ error: string;
13015
13072
  };
13016
13073
  outputFormat: "json";
13017
- status: 201;
13074
+ status: 404 | 409;
13018
13075
  input: {
13019
13076
  param: {
13020
13077
  id: string;
@@ -13022,10 +13079,11 @@ export declare function createRunsRoutes(deps: RunsRouteDeps): import("hono/hono
13022
13079
  };
13023
13080
  } | {
13024
13081
  output: {
13025
- error: string;
13082
+ url: string;
13083
+ dryRun: boolean;
13026
13084
  };
13027
13085
  outputFormat: "json";
13028
- status: 404 | 409;
13086
+ status: 201;
13029
13087
  input: {
13030
13088
  param: {
13031
13089
  id: string;
@@ -13037,10 +13095,10 @@ export declare function createRunsRoutes(deps: RunsRouteDeps): import("hono/hono
13037
13095
  "/runs/:id/remove-worktree": {
13038
13096
  $post: {
13039
13097
  output: {
13040
- removed: true;
13098
+ error: string;
13041
13099
  };
13042
13100
  outputFormat: "json";
13043
- status: import("hono/utils/http-status").ContentfulStatusCode;
13101
+ status: 404 | 409;
13044
13102
  input: {
13045
13103
  param: {
13046
13104
  id: string;
@@ -13048,10 +13106,10 @@ export declare function createRunsRoutes(deps: RunsRouteDeps): import("hono/hono
13048
13106
  };
13049
13107
  } | {
13050
13108
  output: {
13051
- error: string;
13109
+ removed: true;
13052
13110
  };
13053
13111
  outputFormat: "json";
13054
- status: 404 | 409;
13112
+ status: import("hono/utils/http-status").ContentfulStatusCode;
13055
13113
  input: {
13056
13114
  param: {
13057
13115
  id: string;
@@ -13063,10 +13121,10 @@ export declare function createRunsRoutes(deps: RunsRouteDeps): import("hono/hono
13063
13121
  "/runs/:id": {
13064
13122
  $delete: {
13065
13123
  output: {
13066
- deleted: true;
13124
+ error: string;
13067
13125
  };
13068
13126
  outputFormat: "json";
13069
- status: import("hono/utils/http-status").ContentfulStatusCode;
13127
+ status: 404 | 409;
13070
13128
  input: {
13071
13129
  param: {
13072
13130
  id: string;
@@ -13074,10 +13132,10 @@ export declare function createRunsRoutes(deps: RunsRouteDeps): import("hono/hono
13074
13132
  };
13075
13133
  } | {
13076
13134
  output: {
13077
- error: string;
13135
+ deleted: true;
13078
13136
  };
13079
13137
  outputFormat: "json";
13080
- status: 404 | 409;
13138
+ status: import("hono/utils/http-status").ContentfulStatusCode;
13081
13139
  input: {
13082
13140
  param: {
13083
13141
  id: string;