@hearsay-tools/squawk 0.19.0-pr4484.8849 → 0.19.0-pr4486.8855

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 (201) hide show
  1. package/dist/ci-wait/controller.d.ts +7 -7
  2. package/dist/ci-wait/github.d.ts +1 -1
  3. package/dist/ci-wait/github.js +1 -1
  4. package/dist/ci-wait/github.js.map +1 -1
  5. package/dist/ci-wait/supervisor.js +1 -1
  6. package/dist/ci-wait/supervisor.js.map +1 -1
  7. package/dist/core/forge-registry.d.ts +177 -2
  8. package/dist/core/forge-registry.js +39 -0
  9. package/dist/core/forge-registry.js.map +1 -1
  10. package/dist/{server/forge → core}/github-request-gate.d.ts +2 -1
  11. package/dist/{server/forge → core}/github-request-gate.js +3 -4
  12. package/dist/core/github-request-gate.js.map +1 -0
  13. package/dist/core/repo-handle-discovery.js.map +1 -0
  14. package/dist/delegation/routes.d.ts +15 -15
  15. package/dist/delegation/transport.d.ts +75 -75
  16. package/dist/features/automations/automations-routes.js +7 -2
  17. package/dist/features/automations/automations-routes.js.map +1 -1
  18. package/dist/features/automations/github-poller.d.ts +1 -1
  19. package/dist/features/automations/github-poller.js +1 -1
  20. package/dist/features/automations/github-poller.js.map +1 -1
  21. package/dist/features/automations/github-repository.d.ts +1 -1
  22. package/dist/features/automations/github-repository.js +3 -4
  23. package/dist/features/automations/github-repository.js.map +1 -1
  24. package/dist/features/automations/scheduler.js +1 -1
  25. package/dist/features/automations/scheduler.js.map +1 -1
  26. package/dist/features/automations/service.d.ts +1 -1
  27. package/dist/features/automations/tools.d.ts +8 -8
  28. package/dist/plugin/index.d.ts +2 -0
  29. package/dist/plugin/index.js +2 -0
  30. package/dist/plugin/index.js.map +1 -1
  31. package/dist/project-commands.js +2 -2
  32. package/dist/project-commands.js.map +1 -1
  33. package/dist/runs/arm-repo-handle.d.ts +5 -4
  34. package/dist/runs/arm-repo-handle.js +5 -1
  35. package/dist/runs/arm-repo-handle.js.map +1 -1
  36. package/dist/runs/event-log.js +2 -1
  37. package/dist/runs/event-log.js.map +1 -1
  38. package/dist/runs/pull-requests.d.ts +6 -0
  39. package/dist/runs/pull-requests.js +4 -0
  40. package/dist/runs/pull-requests.js.map +1 -1
  41. package/dist/runs/record-write-rules.js +2 -3
  42. package/dist/runs/record-write-rules.js.map +1 -1
  43. package/dist/runs/run-archive.js +4 -5
  44. package/dist/runs/run-archive.js.map +1 -1
  45. package/dist/runs/run-references.js +2 -2
  46. package/dist/runs/run-references.js.map +1 -1
  47. package/dist/runs/store.d.ts +2 -0
  48. package/dist/runs/store.js.map +1 -1
  49. package/dist/server/archive-on-merge.d.ts +9 -0
  50. package/dist/server/archive-on-merge.js +44 -4
  51. package/dist/server/archive-on-merge.js.map +1 -1
  52. package/dist/server/cold-repo-handles.d.ts +5 -3
  53. package/dist/server/cold-repo-handles.js +14 -5
  54. package/dist/server/cold-repo-handles.js.map +1 -1
  55. package/dist/server/completion-actions.d.ts +5 -5
  56. package/dist/server/completion-actions.js +15 -8
  57. package/dist/server/completion-actions.js.map +1 -1
  58. package/dist/server/draft-pr.d.ts +24 -0
  59. package/dist/server/{forge/draft-pr.js → draft-pr.js} +51 -56
  60. package/dist/server/draft-pr.js.map +1 -0
  61. package/dist/server/forge/github-checks.js +1 -1
  62. package/dist/server/forge/github-checks.js.map +1 -1
  63. package/dist/server/forge/github-comments.js +2 -2
  64. package/dist/server/forge/github-comments.js.map +1 -1
  65. package/dist/server/forge/{draft-pr.d.ts → github-create-pr.d.ts} +0 -8
  66. package/dist/server/forge/github-create-pr.js +41 -0
  67. package/dist/server/forge/github-create-pr.js.map +1 -0
  68. package/dist/server/forge/github-forge.d.ts +6 -0
  69. package/dist/server/forge/github-forge.js +49 -25
  70. package/dist/server/forge/github-forge.js.map +1 -1
  71. package/dist/server/forge/github-list.js +2 -2
  72. package/dist/server/forge/github-list.js.map +1 -1
  73. package/dist/server/forge/github-mutations.js +3 -3
  74. package/dist/server/forge/github-mutations.js.map +1 -1
  75. package/dist/server/forge/github-pr-diff.js +1 -1
  76. package/dist/server/forge/github-pr-diff.js.map +1 -1
  77. package/dist/server/forge/github-ref-status.js +1 -1
  78. package/dist/server/forge/github-ref-status.js.map +1 -1
  79. package/dist/server/forge/github-shared.js +2 -2
  80. package/dist/server/forge/github-shared.js.map +1 -1
  81. package/dist/server/forge/github.d.ts +3 -4
  82. package/dist/server/forge/github.js +4 -16
  83. package/dist/server/forge/github.js.map +1 -1
  84. package/dist/server/forge/index.d.ts +3 -24
  85. package/dist/server/forge/index.js +3 -54
  86. package/dist/server/forge/index.js.map +1 -1
  87. package/dist/server/forge/types.d.ts +5 -91
  88. package/dist/server/forge-pr-states.d.ts +16 -0
  89. package/dist/server/forge-pr-states.js +87 -0
  90. package/dist/server/forge-pr-states.js.map +1 -0
  91. package/dist/server/github-cli.js.map +1 -0
  92. package/dist/server/{forge/github-repo-handle.d.ts → github-repo-handle.d.ts} +1 -1
  93. package/dist/server/{forge/github-repo-handle.js → github-repo-handle.js} +1 -1
  94. package/dist/server/github-repo-handle.js.map +1 -0
  95. package/dist/server/github-routes.d.ts +69 -26
  96. package/dist/server/github-routes.js +68 -39
  97. package/dist/server/github-routes.js.map +1 -1
  98. package/dist/server/live-routes.d.ts +6 -6
  99. package/dist/server/project-context.d.ts +3 -2
  100. package/dist/server/project-context.js +2 -2
  101. package/dist/server/project-context.js.map +1 -1
  102. package/dist/server/project-forge.d.ts +33 -0
  103. package/dist/server/project-forge.js +46 -0
  104. package/dist/server/project-forge.js.map +1 -0
  105. package/dist/server/project-settings-routes.d.ts +107 -107
  106. package/dist/server/repo-branch-forge.d.ts +10 -19
  107. package/dist/server/repo-branch-forge.js +40 -12
  108. package/dist/server/repo-branch-forge.js.map +1 -1
  109. package/dist/server/repo-branch-sweep.js +2 -2
  110. package/dist/server/repo-branch-sweep.js.map +1 -1
  111. package/dist/server/repo-branches.d.ts +1 -1
  112. package/dist/server/repo-branches.js +1 -1
  113. package/dist/server/repo-branches.js.map +1 -1
  114. package/dist/server/repo-routes.d.ts +37 -36
  115. package/dist/server/repo-routes.js +2 -2
  116. package/dist/server/repo-routes.js.map +1 -1
  117. package/dist/server/runs-routes.d.ts +954 -953
  118. package/dist/server/runs-routes.js +18 -10
  119. package/dist/server/runs-routes.js.map +1 -1
  120. package/dist/server/server.d.ts +2877 -2801
  121. package/dist/server/server.js +13 -9
  122. package/dist/server/server.js.map +1 -1
  123. package/dist/server/start-server.js +14 -11
  124. package/dist/server/start-server.js.map +1 -1
  125. package/dist/server/workspace-live-routes.d.ts +6 -6
  126. package/dist/server/workspace-projects.d.ts +1 -1
  127. package/dist/server/workspace-projects.js +1 -1
  128. package/dist/server/workspace-routes.d.ts +87 -86
  129. package/dist/server/workspace-routes.js +7 -4
  130. package/dist/server/workspace-routes.js.map +1 -1
  131. package/dist/workflows/input-acknowledgement.d.ts +24 -24
  132. package/dist/workflows/run/wait-engine.d.ts +72 -72
  133. package/package.json +4 -4
  134. package/web/dist/assets/accounts-section-TS0nlpiL.js +1 -0
  135. package/web/dist/assets/{activity-motion-BraTC90V.js → activity-motion-CLj2j_ws.js} +1 -1
  136. package/web/dist/assets/{activity-route-BxxLXnNb.js → activity-route-CtSsIkc2.js} +1 -1
  137. package/web/dist/assets/agent-config-section-CUltDAQz.js +7 -0
  138. package/web/dist/assets/{agent-defaults-section-CV2XEvs5.js → agent-defaults-section-Bua6rYYs.js} +1 -1
  139. package/web/dist/assets/{appearance-DEmDeQ3l.js → appearance-BAr4crgW.js} +1 -1
  140. package/web/dist/assets/automations-route-wmDsZyO7.js +2 -0
  141. package/web/dist/assets/{commit-list-PAtV8gyX.js → commit-list-KKwDm6dd.js} +1 -1
  142. package/web/dist/assets/{diff-DQk0ICL-.js → diff-DPd_nVOh.js} +2 -2
  143. package/web/dist/assets/{diff-controls-Dd5I6mOy.js → diff-controls-CvtM8ghc.js} +1 -1
  144. package/web/dist/assets/{diff-view-B3e1YF2x.js → diff-view-Bpn3YlNc.js} +1 -1
  145. package/web/dist/assets/{file-preview-ifi0Ad8c.js → file-preview-DvHE_iN3.js} +1 -1
  146. package/web/dist/assets/{git-toolbar-D6uMb1LN.js → git-toolbar-8efL1Akc.js} +1 -1
  147. package/web/dist/assets/{github-A5MyAvjo.js → github-A3qFiIqX.js} +1 -1
  148. package/web/dist/assets/{global-activity-route-BkuMl-UC.js → global-activity-route-B_sDgbki.js} +1 -1
  149. package/web/dist/assets/index-D2ChrgJM.js +21 -0
  150. package/web/dist/assets/{index-9mlyFHVt.css → index-DOVwFCfP.css} +1 -1
  151. package/web/dist/assets/{markdown-CsP_OLyU.js → markdown-Te3yydIx.js} +1 -1
  152. package/web/dist/assets/{notifications-section-KQJtCs-m.js → notifications-section-BoBhBdF-.js} +1 -1
  153. package/web/dist/assets/{preview-pane-connected-VjTQEceM.js → preview-pane-connected-C61CtAPg.js} +3 -3
  154. package/web/dist/assets/{projects-section-BhabP8vd.js → projects-section-COdUMSzO.js} +1 -1
  155. package/web/dist/assets/{prompt-templates-section-AYpiCjmf.js → prompt-templates-section-agVwVveE.js} +1 -1
  156. package/web/dist/assets/{remote-settings-notice-C3iWEGmH.js → remote-settings-notice-DCRvieRk.js} +1 -1
  157. package/web/dist/assets/repo-git-CndK1Jsq.js +1 -0
  158. package/web/dist/assets/{report-reader-nz3V3Lz7.js → report-reader-CvQBW1ta.js} +1 -1
  159. package/web/dist/assets/{reports-DtZK4jOB.js → reports-D0SHHzu_.js} +1 -1
  160. package/web/dist/assets/{resources-section-BRzB_Bhb.js → resources-section-CrWlFOd_.js} +1 -1
  161. package/web/dist/assets/review-panel-CfNLTS9a.js +11 -0
  162. package/web/dist/assets/run-header-7-0emXcO.js +2 -0
  163. package/web/dist/assets/{select-DlNVtWqZ.js → select-BlIeWe7p.js} +1 -1
  164. package/web/dist/assets/{session-context-section-Dv1cDixc.js → session-context-section-CVmUkI4c.js} +2 -2
  165. package/web/dist/assets/{settings-agent-picker-MdqbXV9H.js → settings-agent-picker-B4CUD8hp.js} +1 -1
  166. package/web/dist/assets/settings-shell-Y8Qs7u_s.js +1 -0
  167. package/web/dist/assets/{sidebar-section-DZuA4Izw.js → sidebar-section-BU6kNu50.js} +1 -1
  168. package/web/dist/assets/{skills-t0jRn0UI.js → skills-D6BiDoNb.js} +1 -1
  169. package/web/dist/assets/{task-changes-BNpDXPcl.js → task-changes-XdEgCbJs.js} +1 -1
  170. package/web/dist/assets/{task-commits-DPP79bjM.js → task-commits-DdI3e4vo.js} +1 -1
  171. package/web/dist/assets/{task-file-scope-BpAU1GLy.js → task-file-scope-LXZV6U47.js} +1 -1
  172. package/web/dist/assets/{task-files-CcXwu4EQ.js → task-files-B7fSNr1D.js} +1 -1
  173. package/web/dist/assets/{task-github-item-DMFboxqX.js → task-github-item-D-lYh5p7.js} +1 -1
  174. package/web/dist/assets/task-thread-yHqAGEGZ.js +2 -0
  175. package/web/dist/assets/thread-state-BZQ4gob9.js +4 -0
  176. package/web/dist/assets/{use-hand-to-agent-state-BFEdVZQu.js → use-hand-to-agent-state-BaRRpD9x.js} +1 -1
  177. package/web/dist/assets/workflows-Bw7rvwxY.js +7 -0
  178. package/web/dist/assets/{workspace-tools-Jy35o1XD.js → workspace-tools-D1Enou9n.js} +1 -1
  179. package/web/dist/assets/{worktrees-section-DjWQgjF3.js → worktrees-section-D954lrfU.js} +4 -4
  180. package/web/dist/index.html +2 -2
  181. package/dist/server/forge/draft-pr.js.map +0 -1
  182. package/dist/server/forge/github-cli.js.map +0 -1
  183. package/dist/server/forge/github-repo-handle.js.map +0 -1
  184. package/dist/server/forge/github-request-gate.js.map +0 -1
  185. package/dist/server/forge/repo-handle-discovery.js.map +0 -1
  186. package/web/dist/assets/accounts-section-BeOGiodx.js +0 -1
  187. package/web/dist/assets/agent-config-section-iEj2kh_m.js +0 -7
  188. package/web/dist/assets/automations-route-OZkTyuRX.js +0 -2
  189. package/web/dist/assets/discard-changes-dialog-BoWRfvhX.js +0 -1
  190. package/web/dist/assets/index-VBdx5s7U.js +0 -21
  191. package/web/dist/assets/repo-git-C01PFB-E.js +0 -1
  192. package/web/dist/assets/review-panel-DHJjHeaB.js +0 -11
  193. package/web/dist/assets/run-header-CSijv-YH.js +0 -2
  194. package/web/dist/assets/settings-shell-CjvGzEXE.js +0 -1
  195. package/web/dist/assets/task-thread-CoRkm48o.js +0 -2
  196. package/web/dist/assets/thread-state-BNR1qG2X.js +0 -4
  197. package/web/dist/assets/workflows-D9I4QGot.js +0 -7
  198. /package/dist/{server/forge → core}/repo-handle-discovery.d.ts +0 -0
  199. /package/dist/{server/forge → core}/repo-handle-discovery.js +0 -0
  200. /package/dist/server/{forge/github-cli.d.ts → github-cli.d.ts} +0 -0
  201. /package/dist/server/{forge/github-cli.js → github-cli.js} +0 -0
@@ -5,14 +5,15 @@ import { type WorkerCleanupFactory } from '../delegation/service.ts';
5
5
  import type { Home } from '../home/home.ts';
6
6
  import type { PreviewHost } from '../preview/host.ts';
7
7
  import type { TaskWebhooks } from '../runs/webhook.ts';
8
- import { type ForgeFactory } from './forge/index.ts';
8
+ import { type ProjectForgeResolver } from './project-forge.ts';
9
9
  import type { ProjectContext } from './project-context.ts';
10
10
  import type { ProjectApiEnv, ProviderStatusBundle, ResolvedServerDeps, ResolveWorkspaceProfileFn, ServerCapabilitiesFn } from './server-types.ts';
11
11
  import type { WorkspaceProjects } from './workspace-projects.ts';
12
12
  export declare function withLiveUsage(summary: RunSummary): RunSummary;
13
13
  export interface RunsRouteDeps {
14
14
  home: Home;
15
- forgeFactory?: ForgeFactory | undefined;
15
+ /** A project's forge; defaults to the forge registry. */
16
+ projectForge?: ProjectForgeResolver | undefined;
16
17
  delegation?: DelegationController | undefined;
17
18
  workerCleanup?: WorkerCleanupFactory | undefined;
18
19
  previewHost?: PreviewHost | undefined;
@@ -422,30 +423,6 @@ export declare function createRunsRoutes(deps: RunsRouteDeps): import("hono/hono
422
423
  deadline: string;
423
424
  seconds: number;
424
425
  note?: string | undefined;
425
- } | {
426
- id: string;
427
- source: "agent" | "cezar";
428
- via: "ask-line" | "budget" | "cez-message-wait" | "cez-worker-wait" | "cezar_ask" | "cezar_wait" | "cezar_wait_for_ci" | "completion" | "monitoring-line" | "native-ask" | "native-subagents" | "no-wait" | "schedule-wakeup";
429
- registeredAt: string;
430
- phase: "cancelled" | "delivered" | "open" | "resolved";
431
- resolvedAt?: string | undefined;
432
- deliveredAt?: string | undefined;
433
- cancelledAt?: string | undefined;
434
- turnId: string;
435
- kind: "process";
436
- deadline: string;
437
- timeoutSeconds: number;
438
- pid: number;
439
- startToken?: string | undefined;
440
- exitFile?: string | undefined;
441
- note?: string | undefined;
442
- result?: {
443
- outcome: "deadline" | "error" | "exit_file" | "exited";
444
- observedAt: string;
445
- exitCode?: number | undefined;
446
- exitFileNote?: "not-an-exit-code" | undefined;
447
- diagnostic?: string | undefined;
448
- } | undefined;
449
426
  } | {
450
427
  id: string;
451
428
  source: "agent" | "cezar";
@@ -507,6 +484,30 @@ export declare function createRunsRoutes(deps: RunsRouteDeps): import("hono/hono
507
484
  reason: "outcome" | "timeout";
508
485
  } | undefined;
509
486
  wakeInputId?: string | undefined;
487
+ } | {
488
+ id: string;
489
+ source: "agent" | "cezar";
490
+ via: "ask-line" | "budget" | "cez-message-wait" | "cez-worker-wait" | "cezar_ask" | "cezar_wait" | "cezar_wait_for_ci" | "completion" | "monitoring-line" | "native-ask" | "native-subagents" | "no-wait" | "schedule-wakeup";
491
+ registeredAt: string;
492
+ phase: "cancelled" | "delivered" | "open" | "resolved";
493
+ resolvedAt?: string | undefined;
494
+ deliveredAt?: string | undefined;
495
+ cancelledAt?: string | undefined;
496
+ turnId: string;
497
+ kind: "process";
498
+ deadline: string;
499
+ timeoutSeconds: number;
500
+ pid: number;
501
+ startToken?: string | undefined;
502
+ exitFile?: string | undefined;
503
+ note?: string | undefined;
504
+ result?: {
505
+ outcome: "deadline" | "error" | "exit_file" | "exited";
506
+ observedAt: string;
507
+ exitCode?: number | undefined;
508
+ exitFileNote?: "not-an-exit-code" | undefined;
509
+ diagnostic?: string | undefined;
510
+ } | undefined;
510
511
  } | {
511
512
  id: string;
512
513
  source: "agent" | "cezar";
@@ -639,30 +640,6 @@ export declare function createRunsRoutes(deps: RunsRouteDeps): import("hono/hono
639
640
  deadline: string;
640
641
  seconds: number;
641
642
  note?: string | undefined;
642
- } | {
643
- id: string;
644
- source: "agent" | "cezar";
645
- via: "ask-line" | "budget" | "cez-message-wait" | "cez-worker-wait" | "cezar_ask" | "cezar_wait" | "cezar_wait_for_ci" | "completion" | "monitoring-line" | "native-ask" | "native-subagents" | "no-wait" | "schedule-wakeup";
646
- registeredAt: string;
647
- phase: "cancelled" | "delivered" | "open" | "resolved";
648
- resolvedAt?: string | undefined;
649
- deliveredAt?: string | undefined;
650
- cancelledAt?: string | undefined;
651
- turnId: string;
652
- kind: "process";
653
- deadline: string;
654
- timeoutSeconds: number;
655
- pid: number;
656
- startToken?: string | undefined;
657
- exitFile?: string | undefined;
658
- note?: string | undefined;
659
- result?: {
660
- outcome: "deadline" | "error" | "exit_file" | "exited";
661
- observedAt: string;
662
- exitCode?: number | undefined;
663
- exitFileNote?: "not-an-exit-code" | undefined;
664
- diagnostic?: string | undefined;
665
- } | undefined;
666
643
  } | {
667
644
  id: string;
668
645
  source: "agent" | "cezar";
@@ -724,6 +701,30 @@ export declare function createRunsRoutes(deps: RunsRouteDeps): import("hono/hono
724
701
  reason: "outcome" | "timeout";
725
702
  } | undefined;
726
703
  wakeInputId?: string | undefined;
704
+ } | {
705
+ id: string;
706
+ source: "agent" | "cezar";
707
+ via: "ask-line" | "budget" | "cez-message-wait" | "cez-worker-wait" | "cezar_ask" | "cezar_wait" | "cezar_wait_for_ci" | "completion" | "monitoring-line" | "native-ask" | "native-subagents" | "no-wait" | "schedule-wakeup";
708
+ registeredAt: string;
709
+ phase: "cancelled" | "delivered" | "open" | "resolved";
710
+ resolvedAt?: string | undefined;
711
+ deliveredAt?: string | undefined;
712
+ cancelledAt?: string | undefined;
713
+ turnId: string;
714
+ kind: "process";
715
+ deadline: string;
716
+ timeoutSeconds: number;
717
+ pid: number;
718
+ startToken?: string | undefined;
719
+ exitFile?: string | undefined;
720
+ note?: string | undefined;
721
+ result?: {
722
+ outcome: "deadline" | "error" | "exit_file" | "exited";
723
+ observedAt: string;
724
+ exitCode?: number | undefined;
725
+ exitFileNote?: "not-an-exit-code" | undefined;
726
+ diagnostic?: string | undefined;
727
+ } | undefined;
727
728
  } | {
728
729
  id: string;
729
730
  source: "agent" | "cezar";
@@ -855,30 +856,6 @@ export declare function createRunsRoutes(deps: RunsRouteDeps): import("hono/hono
855
856
  deadline: string;
856
857
  seconds: number;
857
858
  note?: string | undefined;
858
- } | {
859
- id: string;
860
- source: "agent" | "cezar";
861
- via: "ask-line" | "budget" | "cez-message-wait" | "cez-worker-wait" | "cezar_ask" | "cezar_wait" | "cezar_wait_for_ci" | "completion" | "monitoring-line" | "native-ask" | "native-subagents" | "no-wait" | "schedule-wakeup";
862
- registeredAt: string;
863
- phase: "cancelled" | "delivered" | "open" | "resolved";
864
- resolvedAt?: string | undefined;
865
- deliveredAt?: string | undefined;
866
- cancelledAt?: string | undefined;
867
- turnId: string;
868
- kind: "process";
869
- deadline: string;
870
- timeoutSeconds: number;
871
- pid: number;
872
- startToken?: string | undefined;
873
- exitFile?: string | undefined;
874
- note?: string | undefined;
875
- result?: {
876
- outcome: "deadline" | "error" | "exit_file" | "exited";
877
- observedAt: string;
878
- exitCode?: number | undefined;
879
- exitFileNote?: "not-an-exit-code" | undefined;
880
- diagnostic?: string | undefined;
881
- } | undefined;
882
859
  } | {
883
860
  id: string;
884
861
  source: "agent" | "cezar";
@@ -940,6 +917,30 @@ export declare function createRunsRoutes(deps: RunsRouteDeps): import("hono/hono
940
917
  reason: "outcome" | "timeout";
941
918
  } | undefined;
942
919
  wakeInputId?: string | undefined;
920
+ } | {
921
+ id: string;
922
+ source: "agent" | "cezar";
923
+ via: "ask-line" | "budget" | "cez-message-wait" | "cez-worker-wait" | "cezar_ask" | "cezar_wait" | "cezar_wait_for_ci" | "completion" | "monitoring-line" | "native-ask" | "native-subagents" | "no-wait" | "schedule-wakeup";
924
+ registeredAt: string;
925
+ phase: "cancelled" | "delivered" | "open" | "resolved";
926
+ resolvedAt?: string | undefined;
927
+ deliveredAt?: string | undefined;
928
+ cancelledAt?: string | undefined;
929
+ turnId: string;
930
+ kind: "process";
931
+ deadline: string;
932
+ timeoutSeconds: number;
933
+ pid: number;
934
+ startToken?: string | undefined;
935
+ exitFile?: string | undefined;
936
+ note?: string | undefined;
937
+ result?: {
938
+ outcome: "deadline" | "error" | "exit_file" | "exited";
939
+ observedAt: string;
940
+ exitCode?: number | undefined;
941
+ exitFileNote?: "not-an-exit-code" | undefined;
942
+ diagnostic?: string | undefined;
943
+ } | undefined;
943
944
  } | {
944
945
  id: string;
945
946
  source: "agent" | "cezar";
@@ -1216,6 +1217,18 @@ export declare function createRunsRoutes(deps: RunsRouteDeps): import("hono/hono
1216
1217
  } & {
1217
1218
  "/run-summaries": {
1218
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
+ } | {
1219
1232
  output: {
1220
1233
  id: string;
1221
1234
  title: string;
@@ -1353,18 +1366,6 @@ export declare function createRunsRoutes(deps: RunsRouteDeps): import("hono/hono
1353
1366
  archived?: "all" | "recent" | undefined;
1354
1367
  };
1355
1368
  };
1356
- } | {
1357
- output: {
1358
- error: string;
1359
- code?: "invalid_input" | undefined;
1360
- };
1361
- outputFormat: "json";
1362
- status: 400;
1363
- input: {
1364
- query: {
1365
- archived?: "all" | "recent" | undefined;
1366
- };
1367
- };
1368
1369
  };
1369
1370
  };
1370
1371
  } & {
@@ -1726,22 +1727,24 @@ export declare function createRunsRoutes(deps: RunsRouteDeps): import("hono/hono
1726
1727
  "/runs/:id/worker-destroy": {
1727
1728
  $post: {
1728
1729
  output: {
1729
- readonly code: "capacity_limit" | "denied_scope" | "incompatible_state" | "incomplete_cleanup" | "invalid_baseline" | "invalid_input" | "unauthenticated" | "unavailable_diff" | "unavailable_transport";
1730
- readonly error: string;
1731
- readonly modelChoices?: {
1732
- runner: string;
1733
- requestedModel: string;
1734
- availableModels: {
1735
- id: string;
1736
- label: string;
1737
- description: string;
1738
- effortLevels?: ("high" | "low" | "max" | "medium" | "xhigh")[] | undefined;
1739
- }[];
1740
- otherRunners: string[];
1730
+ workerId: string;
1731
+ state: "complete" | "incomplete";
1732
+ work?: {
1733
+ uncommittedFiles: number;
1734
+ commits: number;
1741
1735
  } | 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;
1742
1745
  };
1743
1746
  outputFormat: "json";
1744
- status: 400 | 401 | 403 | 409 | 503;
1747
+ status: 200;
1745
1748
  input: {
1746
1749
  query: {
1747
1750
  [x: string]: string | string[];
@@ -1794,7 +1797,7 @@ export declare function createRunsRoutes(deps: RunsRouteDeps): import("hono/hono
1794
1797
  error?: string | undefined;
1795
1798
  };
1796
1799
  outputFormat: "json";
1797
- status: 200;
1800
+ status: 409;
1798
1801
  input: {
1799
1802
  query: {
1800
1803
  [x: string]: string | string[];
@@ -1810,24 +1813,22 @@ export declare function createRunsRoutes(deps: RunsRouteDeps): import("hono/hono
1810
1813
  };
1811
1814
  } | {
1812
1815
  output: {
1813
- workerId: string;
1814
- state: "complete" | "incomplete";
1815
- work?: {
1816
- uncommittedFiles: number;
1817
- commits: number;
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[];
1818
1828
  } | undefined;
1819
- deleted?: ({
1820
- kind: "worktree";
1821
- path: string;
1822
- } | {
1823
- kind: "branch";
1824
- ref: string;
1825
- })[] | undefined;
1826
- remaining: ("branch" | "process" | "worktree")[];
1827
- error?: string | undefined;
1828
1829
  };
1829
1830
  outputFormat: "json";
1830
- status: 409;
1831
+ status: 400 | 401 | 403 | 409 | 503;
1831
1832
  input: {
1832
1833
  query: {
1833
1834
  [x: string]: string | string[];
@@ -1879,6 +1880,21 @@ export declare function createRunsRoutes(deps: RunsRouteDeps): import("hono/hono
1879
1880
  } & {
1880
1881
  "/runs/:id/archive": {
1881
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
+ } | {
1882
1898
  output: {
1883
1899
  archiveWhenDone?: boolean | undefined;
1884
1900
  autoMergePr?: boolean | undefined;
@@ -2269,30 +2285,6 @@ export declare function createRunsRoutes(deps: RunsRouteDeps): import("hono/hono
2269
2285
  deadline: string;
2270
2286
  seconds: number;
2271
2287
  note?: string | undefined;
2272
- } | {
2273
- id: string;
2274
- source: "agent" | "cezar";
2275
- via: "ask-line" | "budget" | "cez-message-wait" | "cez-worker-wait" | "cezar_ask" | "cezar_wait" | "cezar_wait_for_ci" | "completion" | "monitoring-line" | "native-ask" | "native-subagents" | "no-wait" | "schedule-wakeup";
2276
- registeredAt: string;
2277
- phase: "cancelled" | "delivered" | "open" | "resolved";
2278
- resolvedAt?: string | undefined;
2279
- deliveredAt?: string | undefined;
2280
- cancelledAt?: string | undefined;
2281
- turnId: string;
2282
- kind: "process";
2283
- deadline: string;
2284
- timeoutSeconds: number;
2285
- pid: number;
2286
- startToken?: string | undefined;
2287
- exitFile?: string | undefined;
2288
- note?: string | undefined;
2289
- result?: {
2290
- outcome: "deadline" | "error" | "exit_file" | "exited";
2291
- observedAt: string;
2292
- exitCode?: number | undefined;
2293
- exitFileNote?: "not-an-exit-code" | undefined;
2294
- diagnostic?: string | undefined;
2295
- } | undefined;
2296
2288
  } | {
2297
2289
  id: string;
2298
2290
  source: "agent" | "cezar";
@@ -2354,6 +2346,30 @@ export declare function createRunsRoutes(deps: RunsRouteDeps): import("hono/hono
2354
2346
  reason: "outcome" | "timeout";
2355
2347
  } | undefined;
2356
2348
  wakeInputId?: string | undefined;
2349
+ } | {
2350
+ id: string;
2351
+ source: "agent" | "cezar";
2352
+ 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";
2353
+ registeredAt: string;
2354
+ phase: "cancelled" | "delivered" | "open" | "resolved";
2355
+ resolvedAt?: string | undefined;
2356
+ deliveredAt?: string | undefined;
2357
+ cancelledAt?: string | undefined;
2358
+ turnId: string;
2359
+ kind: "process";
2360
+ deadline: string;
2361
+ timeoutSeconds: number;
2362
+ pid: number;
2363
+ startToken?: string | undefined;
2364
+ exitFile?: string | undefined;
2365
+ note?: string | undefined;
2366
+ result?: {
2367
+ outcome: "deadline" | "error" | "exit_file" | "exited";
2368
+ observedAt: string;
2369
+ exitCode?: number | undefined;
2370
+ exitFileNote?: "not-an-exit-code" | undefined;
2371
+ diagnostic?: string | undefined;
2372
+ } | undefined;
2357
2373
  } | {
2358
2374
  id: string;
2359
2375
  source: "agent" | "cezar";
@@ -2486,30 +2502,6 @@ export declare function createRunsRoutes(deps: RunsRouteDeps): import("hono/hono
2486
2502
  deadline: string;
2487
2503
  seconds: number;
2488
2504
  note?: string | undefined;
2489
- } | {
2490
- id: string;
2491
- source: "agent" | "cezar";
2492
- via: "ask-line" | "budget" | "cez-message-wait" | "cez-worker-wait" | "cezar_ask" | "cezar_wait" | "cezar_wait_for_ci" | "completion" | "monitoring-line" | "native-ask" | "native-subagents" | "no-wait" | "schedule-wakeup";
2493
- registeredAt: string;
2494
- phase: "cancelled" | "delivered" | "open" | "resolved";
2495
- resolvedAt?: string | undefined;
2496
- deliveredAt?: string | undefined;
2497
- cancelledAt?: string | undefined;
2498
- turnId: string;
2499
- kind: "process";
2500
- deadline: string;
2501
- timeoutSeconds: number;
2502
- pid: number;
2503
- startToken?: string | undefined;
2504
- exitFile?: string | undefined;
2505
- note?: string | undefined;
2506
- result?: {
2507
- outcome: "deadline" | "error" | "exit_file" | "exited";
2508
- observedAt: string;
2509
- exitCode?: number | undefined;
2510
- exitFileNote?: "not-an-exit-code" | undefined;
2511
- diagnostic?: string | undefined;
2512
- } | undefined;
2513
2505
  } | {
2514
2506
  id: string;
2515
2507
  source: "agent" | "cezar";
@@ -2571,6 +2563,30 @@ export declare function createRunsRoutes(deps: RunsRouteDeps): import("hono/hono
2571
2563
  reason: "outcome" | "timeout";
2572
2564
  } | undefined;
2573
2565
  wakeInputId?: string | undefined;
2566
+ } | {
2567
+ id: string;
2568
+ source: "agent" | "cezar";
2569
+ 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";
2570
+ registeredAt: string;
2571
+ phase: "cancelled" | "delivered" | "open" | "resolved";
2572
+ resolvedAt?: string | undefined;
2573
+ deliveredAt?: string | undefined;
2574
+ cancelledAt?: string | undefined;
2575
+ turnId: string;
2576
+ kind: "process";
2577
+ deadline: string;
2578
+ timeoutSeconds: number;
2579
+ pid: number;
2580
+ startToken?: string | undefined;
2581
+ exitFile?: string | undefined;
2582
+ note?: string | undefined;
2583
+ result?: {
2584
+ outcome: "deadline" | "error" | "exit_file" | "exited";
2585
+ observedAt: string;
2586
+ exitCode?: number | undefined;
2587
+ exitFileNote?: "not-an-exit-code" | undefined;
2588
+ diagnostic?: string | undefined;
2589
+ } | undefined;
2574
2590
  } | {
2575
2591
  id: string;
2576
2592
  source: "agent" | "cezar";
@@ -2702,30 +2718,6 @@ export declare function createRunsRoutes(deps: RunsRouteDeps): import("hono/hono
2702
2718
  deadline: string;
2703
2719
  seconds: number;
2704
2720
  note?: string | undefined;
2705
- } | {
2706
- id: string;
2707
- source: "agent" | "cezar";
2708
- via: "ask-line" | "budget" | "cez-message-wait" | "cez-worker-wait" | "cezar_ask" | "cezar_wait" | "cezar_wait_for_ci" | "completion" | "monitoring-line" | "native-ask" | "native-subagents" | "no-wait" | "schedule-wakeup";
2709
- registeredAt: string;
2710
- phase: "cancelled" | "delivered" | "open" | "resolved";
2711
- resolvedAt?: string | undefined;
2712
- deliveredAt?: string | undefined;
2713
- cancelledAt?: string | undefined;
2714
- turnId: string;
2715
- kind: "process";
2716
- deadline: string;
2717
- timeoutSeconds: number;
2718
- pid: number;
2719
- startToken?: string | undefined;
2720
- exitFile?: string | undefined;
2721
- note?: string | undefined;
2722
- result?: {
2723
- outcome: "deadline" | "error" | "exit_file" | "exited";
2724
- observedAt: string;
2725
- exitCode?: number | undefined;
2726
- exitFileNote?: "not-an-exit-code" | undefined;
2727
- diagnostic?: string | undefined;
2728
- } | undefined;
2729
2721
  } | {
2730
2722
  id: string;
2731
2723
  source: "agent" | "cezar";
@@ -2787,6 +2779,30 @@ export declare function createRunsRoutes(deps: RunsRouteDeps): import("hono/hono
2787
2779
  reason: "outcome" | "timeout";
2788
2780
  } | undefined;
2789
2781
  wakeInputId?: string | undefined;
2782
+ } | {
2783
+ id: string;
2784
+ source: "agent" | "cezar";
2785
+ 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";
2786
+ registeredAt: string;
2787
+ phase: "cancelled" | "delivered" | "open" | "resolved";
2788
+ resolvedAt?: string | undefined;
2789
+ deliveredAt?: string | undefined;
2790
+ cancelledAt?: string | undefined;
2791
+ turnId: string;
2792
+ kind: "process";
2793
+ deadline: string;
2794
+ timeoutSeconds: number;
2795
+ pid: number;
2796
+ startToken?: string | undefined;
2797
+ exitFile?: string | undefined;
2798
+ note?: string | undefined;
2799
+ result?: {
2800
+ outcome: "deadline" | "error" | "exit_file" | "exited";
2801
+ observedAt: string;
2802
+ exitCode?: number | undefined;
2803
+ exitFileNote?: "not-an-exit-code" | undefined;
2804
+ diagnostic?: string | undefined;
2805
+ } | undefined;
2790
2806
  } | {
2791
2807
  id: string;
2792
2808
  source: "agent" | "cezar";
@@ -3058,32 +3074,32 @@ export declare function createRunsRoutes(deps: RunsRouteDeps): import("hono/hono
3058
3074
  id: string;
3059
3075
  };
3060
3076
  };
3061
- } | {
3077
+ };
3078
+ };
3079
+ } & {
3080
+ "/runs/:id/pin": {
3081
+ $post: {
3062
3082
  output: {
3063
3083
  error: string;
3084
+ code?: "invalid_input" | undefined;
3064
3085
  };
3065
3086
  outputFormat: "json";
3066
- status: 404;
3087
+ status: 400;
3067
3088
  input: {
3068
- json: {
3069
- archived?: boolean | undefined;
3070
- };
3071
- } & {
3072
3089
  param: {
3073
3090
  id: string;
3074
3091
  };
3092
+ } & {
3093
+ json: {
3094
+ pinned?: boolean | undefined;
3095
+ };
3075
3096
  };
3076
- };
3077
- };
3078
- } & {
3079
- "/runs/:id/pin": {
3080
- $post: {
3097
+ } | {
3081
3098
  output: {
3082
3099
  error: string;
3083
- code?: "invalid_input" | undefined;
3084
3100
  };
3085
3101
  outputFormat: "json";
3086
- status: 400;
3102
+ status: 404;
3087
3103
  input: {
3088
3104
  param: {
3089
3105
  id: string;
@@ -3484,30 +3500,6 @@ export declare function createRunsRoutes(deps: RunsRouteDeps): import("hono/hono
3484
3500
  deadline: string;
3485
3501
  seconds: number;
3486
3502
  note?: string | undefined;
3487
- } | {
3488
- id: string;
3489
- source: "agent" | "cezar";
3490
- via: "ask-line" | "budget" | "cez-message-wait" | "cez-worker-wait" | "cezar_ask" | "cezar_wait" | "cezar_wait_for_ci" | "completion" | "monitoring-line" | "native-ask" | "native-subagents" | "no-wait" | "schedule-wakeup";
3491
- registeredAt: string;
3492
- phase: "cancelled" | "delivered" | "open" | "resolved";
3493
- resolvedAt?: string | undefined;
3494
- deliveredAt?: string | undefined;
3495
- cancelledAt?: string | undefined;
3496
- turnId: string;
3497
- kind: "process";
3498
- deadline: string;
3499
- timeoutSeconds: number;
3500
- pid: number;
3501
- startToken?: string | undefined;
3502
- exitFile?: string | undefined;
3503
- note?: string | undefined;
3504
- result?: {
3505
- outcome: "deadline" | "error" | "exit_file" | "exited";
3506
- observedAt: string;
3507
- exitCode?: number | undefined;
3508
- exitFileNote?: "not-an-exit-code" | undefined;
3509
- diagnostic?: string | undefined;
3510
- } | undefined;
3511
3503
  } | {
3512
3504
  id: string;
3513
3505
  source: "agent" | "cezar";
@@ -3569,6 +3561,30 @@ export declare function createRunsRoutes(deps: RunsRouteDeps): import("hono/hono
3569
3561
  reason: "outcome" | "timeout";
3570
3562
  } | undefined;
3571
3563
  wakeInputId?: string | undefined;
3564
+ } | {
3565
+ id: string;
3566
+ source: "agent" | "cezar";
3567
+ 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";
3568
+ registeredAt: string;
3569
+ phase: "cancelled" | "delivered" | "open" | "resolved";
3570
+ resolvedAt?: string | undefined;
3571
+ deliveredAt?: string | undefined;
3572
+ cancelledAt?: string | undefined;
3573
+ turnId: string;
3574
+ kind: "process";
3575
+ deadline: string;
3576
+ timeoutSeconds: number;
3577
+ pid: number;
3578
+ startToken?: string | undefined;
3579
+ exitFile?: string | undefined;
3580
+ note?: string | undefined;
3581
+ result?: {
3582
+ outcome: "deadline" | "error" | "exit_file" | "exited";
3583
+ observedAt: string;
3584
+ exitCode?: number | undefined;
3585
+ exitFileNote?: "not-an-exit-code" | undefined;
3586
+ diagnostic?: string | undefined;
3587
+ } | undefined;
3572
3588
  } | {
3573
3589
  id: string;
3574
3590
  source: "agent" | "cezar";
@@ -3701,30 +3717,6 @@ export declare function createRunsRoutes(deps: RunsRouteDeps): import("hono/hono
3701
3717
  deadline: string;
3702
3718
  seconds: number;
3703
3719
  note?: string | undefined;
3704
- } | {
3705
- id: string;
3706
- source: "agent" | "cezar";
3707
- via: "ask-line" | "budget" | "cez-message-wait" | "cez-worker-wait" | "cezar_ask" | "cezar_wait" | "cezar_wait_for_ci" | "completion" | "monitoring-line" | "native-ask" | "native-subagents" | "no-wait" | "schedule-wakeup";
3708
- registeredAt: string;
3709
- phase: "cancelled" | "delivered" | "open" | "resolved";
3710
- resolvedAt?: string | undefined;
3711
- deliveredAt?: string | undefined;
3712
- cancelledAt?: string | undefined;
3713
- turnId: string;
3714
- kind: "process";
3715
- deadline: string;
3716
- timeoutSeconds: number;
3717
- pid: number;
3718
- startToken?: string | undefined;
3719
- exitFile?: string | undefined;
3720
- note?: string | undefined;
3721
- result?: {
3722
- outcome: "deadline" | "error" | "exit_file" | "exited";
3723
- observedAt: string;
3724
- exitCode?: number | undefined;
3725
- exitFileNote?: "not-an-exit-code" | undefined;
3726
- diagnostic?: string | undefined;
3727
- } | undefined;
3728
3720
  } | {
3729
3721
  id: string;
3730
3722
  source: "agent" | "cezar";
@@ -3786,6 +3778,30 @@ export declare function createRunsRoutes(deps: RunsRouteDeps): import("hono/hono
3786
3778
  reason: "outcome" | "timeout";
3787
3779
  } | undefined;
3788
3780
  wakeInputId?: string | undefined;
3781
+ } | {
3782
+ id: string;
3783
+ source: "agent" | "cezar";
3784
+ 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";
3785
+ registeredAt: string;
3786
+ phase: "cancelled" | "delivered" | "open" | "resolved";
3787
+ resolvedAt?: string | undefined;
3788
+ deliveredAt?: string | undefined;
3789
+ cancelledAt?: string | undefined;
3790
+ turnId: string;
3791
+ kind: "process";
3792
+ deadline: string;
3793
+ timeoutSeconds: number;
3794
+ pid: number;
3795
+ startToken?: string | undefined;
3796
+ exitFile?: string | undefined;
3797
+ note?: string | undefined;
3798
+ result?: {
3799
+ outcome: "deadline" | "error" | "exit_file" | "exited";
3800
+ observedAt: string;
3801
+ exitCode?: number | undefined;
3802
+ exitFileNote?: "not-an-exit-code" | undefined;
3803
+ diagnostic?: string | undefined;
3804
+ } | undefined;
3789
3805
  } | {
3790
3806
  id: string;
3791
3807
  source: "agent" | "cezar";
@@ -3917,30 +3933,6 @@ export declare function createRunsRoutes(deps: RunsRouteDeps): import("hono/hono
3917
3933
  deadline: string;
3918
3934
  seconds: number;
3919
3935
  note?: string | undefined;
3920
- } | {
3921
- id: string;
3922
- source: "agent" | "cezar";
3923
- via: "ask-line" | "budget" | "cez-message-wait" | "cez-worker-wait" | "cezar_ask" | "cezar_wait" | "cezar_wait_for_ci" | "completion" | "monitoring-line" | "native-ask" | "native-subagents" | "no-wait" | "schedule-wakeup";
3924
- registeredAt: string;
3925
- phase: "cancelled" | "delivered" | "open" | "resolved";
3926
- resolvedAt?: string | undefined;
3927
- deliveredAt?: string | undefined;
3928
- cancelledAt?: string | undefined;
3929
- turnId: string;
3930
- kind: "process";
3931
- deadline: string;
3932
- timeoutSeconds: number;
3933
- pid: number;
3934
- startToken?: string | undefined;
3935
- exitFile?: string | undefined;
3936
- note?: string | undefined;
3937
- result?: {
3938
- outcome: "deadline" | "error" | "exit_file" | "exited";
3939
- observedAt: string;
3940
- exitCode?: number | undefined;
3941
- exitFileNote?: "not-an-exit-code" | undefined;
3942
- diagnostic?: string | undefined;
3943
- } | undefined;
3944
3936
  } | {
3945
3937
  id: string;
3946
3938
  source: "agent" | "cezar";
@@ -4002,6 +3994,30 @@ export declare function createRunsRoutes(deps: RunsRouteDeps): import("hono/hono
4002
3994
  reason: "outcome" | "timeout";
4003
3995
  } | undefined;
4004
3996
  wakeInputId?: string | undefined;
3997
+ } | {
3998
+ id: string;
3999
+ source: "agent" | "cezar";
4000
+ 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";
4001
+ registeredAt: string;
4002
+ phase: "cancelled" | "delivered" | "open" | "resolved";
4003
+ resolvedAt?: string | undefined;
4004
+ deliveredAt?: string | undefined;
4005
+ cancelledAt?: string | undefined;
4006
+ turnId: string;
4007
+ kind: "process";
4008
+ deadline: string;
4009
+ timeoutSeconds: number;
4010
+ pid: number;
4011
+ startToken?: string | undefined;
4012
+ exitFile?: string | undefined;
4013
+ note?: string | undefined;
4014
+ result?: {
4015
+ outcome: "deadline" | "error" | "exit_file" | "exited";
4016
+ observedAt: string;
4017
+ exitCode?: number | undefined;
4018
+ exitFileNote?: "not-an-exit-code" | undefined;
4019
+ diagnostic?: string | undefined;
4020
+ } | undefined;
4005
4021
  } | {
4006
4022
  id: string;
4007
4023
  source: "agent" | "cezar";
@@ -4273,21 +4289,6 @@ export declare function createRunsRoutes(deps: RunsRouteDeps): import("hono/hono
4273
4289
  pinned?: boolean | undefined;
4274
4290
  };
4275
4291
  };
4276
- } | {
4277
- output: {
4278
- error: string;
4279
- };
4280
- outputFormat: "json";
4281
- status: 404;
4282
- input: {
4283
- param: {
4284
- id: string;
4285
- };
4286
- } & {
4287
- json: {
4288
- pinned?: boolean | undefined;
4289
- };
4290
- };
4291
4292
  };
4292
4293
  };
4293
4294
  } & {
@@ -4314,7 +4315,7 @@ export declare function createRunsRoutes(deps: RunsRouteDeps): import("hono/hono
4314
4315
  error: string;
4315
4316
  };
4316
4317
  outputFormat: "json";
4317
- status: 404;
4318
+ status: 400;
4318
4319
  input: {
4319
4320
  param: {
4320
4321
  id: string;
@@ -4330,7 +4331,7 @@ export declare function createRunsRoutes(deps: RunsRouteDeps): import("hono/hono
4330
4331
  error: string;
4331
4332
  };
4332
4333
  outputFormat: "json";
4333
- status: 400;
4334
+ status: 404;
4334
4335
  input: {
4335
4336
  param: {
4336
4337
  id: string;
@@ -4479,30 +4480,6 @@ export declare function createRunsRoutes(deps: RunsRouteDeps): import("hono/hono
4479
4480
  deadline: string;
4480
4481
  seconds: number;
4481
4482
  note?: string | undefined;
4482
- } | {
4483
- id: string;
4484
- source: "agent" | "cezar";
4485
- via: "ask-line" | "budget" | "cez-message-wait" | "cez-worker-wait" | "cezar_ask" | "cezar_wait" | "cezar_wait_for_ci" | "completion" | "monitoring-line" | "native-ask" | "native-subagents" | "no-wait" | "schedule-wakeup";
4486
- registeredAt: string;
4487
- phase: "cancelled" | "delivered" | "open" | "resolved";
4488
- resolvedAt?: string | undefined;
4489
- deliveredAt?: string | undefined;
4490
- cancelledAt?: string | undefined;
4491
- turnId: string;
4492
- kind: "process";
4493
- deadline: string;
4494
- timeoutSeconds: number;
4495
- pid: number;
4496
- startToken?: string | undefined;
4497
- exitFile?: string | undefined;
4498
- note?: string | undefined;
4499
- result?: {
4500
- outcome: "deadline" | "error" | "exit_file" | "exited";
4501
- observedAt: string;
4502
- exitCode?: number | undefined;
4503
- exitFileNote?: "not-an-exit-code" | undefined;
4504
- diagnostic?: string | undefined;
4505
- } | undefined;
4506
4483
  } | {
4507
4484
  id: string;
4508
4485
  source: "agent" | "cezar";
@@ -4564,6 +4541,30 @@ export declare function createRunsRoutes(deps: RunsRouteDeps): import("hono/hono
4564
4541
  reason: "outcome" | "timeout";
4565
4542
  } | undefined;
4566
4543
  wakeInputId?: string | undefined;
4544
+ } | {
4545
+ id: string;
4546
+ source: "agent" | "cezar";
4547
+ via: "ask-line" | "budget" | "cez-message-wait" | "cez-worker-wait" | "cezar_ask" | "cezar_wait" | "cezar_wait_for_ci" | "completion" | "monitoring-line" | "native-ask" | "native-subagents" | "no-wait" | "schedule-wakeup";
4548
+ registeredAt: string;
4549
+ phase: "cancelled" | "delivered" | "open" | "resolved";
4550
+ resolvedAt?: string | undefined;
4551
+ deliveredAt?: string | undefined;
4552
+ cancelledAt?: string | undefined;
4553
+ turnId: string;
4554
+ kind: "process";
4555
+ deadline: string;
4556
+ timeoutSeconds: number;
4557
+ pid: number;
4558
+ startToken?: string | undefined;
4559
+ exitFile?: string | undefined;
4560
+ note?: string | undefined;
4561
+ result?: {
4562
+ outcome: "deadline" | "error" | "exit_file" | "exited";
4563
+ observedAt: string;
4564
+ exitCode?: number | undefined;
4565
+ exitFileNote?: "not-an-exit-code" | undefined;
4566
+ diagnostic?: string | undefined;
4567
+ } | undefined;
4567
4568
  } | {
4568
4569
  id: string;
4569
4570
  source: "agent" | "cezar";
@@ -4696,30 +4697,6 @@ export declare function createRunsRoutes(deps: RunsRouteDeps): import("hono/hono
4696
4697
  deadline: string;
4697
4698
  seconds: number;
4698
4699
  note?: string | undefined;
4699
- } | {
4700
- id: string;
4701
- source: "agent" | "cezar";
4702
- via: "ask-line" | "budget" | "cez-message-wait" | "cez-worker-wait" | "cezar_ask" | "cezar_wait" | "cezar_wait_for_ci" | "completion" | "monitoring-line" | "native-ask" | "native-subagents" | "no-wait" | "schedule-wakeup";
4703
- registeredAt: string;
4704
- phase: "cancelled" | "delivered" | "open" | "resolved";
4705
- resolvedAt?: string | undefined;
4706
- deliveredAt?: string | undefined;
4707
- cancelledAt?: string | undefined;
4708
- turnId: string;
4709
- kind: "process";
4710
- deadline: string;
4711
- timeoutSeconds: number;
4712
- pid: number;
4713
- startToken?: string | undefined;
4714
- exitFile?: string | undefined;
4715
- note?: string | undefined;
4716
- result?: {
4717
- outcome: "deadline" | "error" | "exit_file" | "exited";
4718
- observedAt: string;
4719
- exitCode?: number | undefined;
4720
- exitFileNote?: "not-an-exit-code" | undefined;
4721
- diagnostic?: string | undefined;
4722
- } | undefined;
4723
4700
  } | {
4724
4701
  id: string;
4725
4702
  source: "agent" | "cezar";
@@ -4781,6 +4758,30 @@ export declare function createRunsRoutes(deps: RunsRouteDeps): import("hono/hono
4781
4758
  reason: "outcome" | "timeout";
4782
4759
  } | undefined;
4783
4760
  wakeInputId?: string | undefined;
4761
+ } | {
4762
+ id: string;
4763
+ source: "agent" | "cezar";
4764
+ via: "ask-line" | "budget" | "cez-message-wait" | "cez-worker-wait" | "cezar_ask" | "cezar_wait" | "cezar_wait_for_ci" | "completion" | "monitoring-line" | "native-ask" | "native-subagents" | "no-wait" | "schedule-wakeup";
4765
+ registeredAt: string;
4766
+ phase: "cancelled" | "delivered" | "open" | "resolved";
4767
+ resolvedAt?: string | undefined;
4768
+ deliveredAt?: string | undefined;
4769
+ cancelledAt?: string | undefined;
4770
+ turnId: string;
4771
+ kind: "process";
4772
+ deadline: string;
4773
+ timeoutSeconds: number;
4774
+ pid: number;
4775
+ startToken?: string | undefined;
4776
+ exitFile?: string | undefined;
4777
+ note?: string | undefined;
4778
+ result?: {
4779
+ outcome: "deadline" | "error" | "exit_file" | "exited";
4780
+ observedAt: string;
4781
+ exitCode?: number | undefined;
4782
+ exitFileNote?: "not-an-exit-code" | undefined;
4783
+ diagnostic?: string | undefined;
4784
+ } | undefined;
4784
4785
  } | {
4785
4786
  id: string;
4786
4787
  source: "agent" | "cezar";
@@ -4912,30 +4913,6 @@ export declare function createRunsRoutes(deps: RunsRouteDeps): import("hono/hono
4912
4913
  deadline: string;
4913
4914
  seconds: number;
4914
4915
  note?: string | undefined;
4915
- } | {
4916
- id: string;
4917
- source: "agent" | "cezar";
4918
- via: "ask-line" | "budget" | "cez-message-wait" | "cez-worker-wait" | "cezar_ask" | "cezar_wait" | "cezar_wait_for_ci" | "completion" | "monitoring-line" | "native-ask" | "native-subagents" | "no-wait" | "schedule-wakeup";
4919
- registeredAt: string;
4920
- phase: "cancelled" | "delivered" | "open" | "resolved";
4921
- resolvedAt?: string | undefined;
4922
- deliveredAt?: string | undefined;
4923
- cancelledAt?: string | undefined;
4924
- turnId: string;
4925
- kind: "process";
4926
- deadline: string;
4927
- timeoutSeconds: number;
4928
- pid: number;
4929
- startToken?: string | undefined;
4930
- exitFile?: string | undefined;
4931
- note?: string | undefined;
4932
- result?: {
4933
- outcome: "deadline" | "error" | "exit_file" | "exited";
4934
- observedAt: string;
4935
- exitCode?: number | undefined;
4936
- exitFileNote?: "not-an-exit-code" | undefined;
4937
- diagnostic?: string | undefined;
4938
- } | undefined;
4939
4916
  } | {
4940
4917
  id: string;
4941
4918
  source: "agent" | "cezar";
@@ -4997,6 +4974,30 @@ export declare function createRunsRoutes(deps: RunsRouteDeps): import("hono/hono
4997
4974
  reason: "outcome" | "timeout";
4998
4975
  } | undefined;
4999
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;
5000
5001
  } | {
5001
5002
  id: string;
5002
5003
  source: "agent" | "cezar";
@@ -5553,6 +5554,17 @@ export declare function createRunsRoutes(deps: RunsRouteDeps): import("hono/hono
5553
5554
  } & {
5554
5555
  "/runs/:id/read": {
5555
5556
  $post: {
5557
+ output: {
5558
+ error: string;
5559
+ };
5560
+ outputFormat: "json";
5561
+ status: 404;
5562
+ input: {
5563
+ param: {
5564
+ id: string;
5565
+ };
5566
+ };
5567
+ } | {
5556
5568
  output: {
5557
5569
  archiveWhenDone?: boolean | undefined;
5558
5570
  autoMergePr?: boolean | undefined;
@@ -5943,30 +5955,6 @@ export declare function createRunsRoutes(deps: RunsRouteDeps): import("hono/hono
5943
5955
  deadline: string;
5944
5956
  seconds: number;
5945
5957
  note?: string | undefined;
5946
- } | {
5947
- id: string;
5948
- source: "agent" | "cezar";
5949
- via: "ask-line" | "budget" | "cez-message-wait" | "cez-worker-wait" | "cezar_ask" | "cezar_wait" | "cezar_wait_for_ci" | "completion" | "monitoring-line" | "native-ask" | "native-subagents" | "no-wait" | "schedule-wakeup";
5950
- registeredAt: string;
5951
- phase: "cancelled" | "delivered" | "open" | "resolved";
5952
- resolvedAt?: string | undefined;
5953
- deliveredAt?: string | undefined;
5954
- cancelledAt?: string | undefined;
5955
- turnId: string;
5956
- kind: "process";
5957
- deadline: string;
5958
- timeoutSeconds: number;
5959
- pid: number;
5960
- startToken?: string | undefined;
5961
- exitFile?: string | undefined;
5962
- note?: string | undefined;
5963
- result?: {
5964
- outcome: "deadline" | "error" | "exit_file" | "exited";
5965
- observedAt: string;
5966
- exitCode?: number | undefined;
5967
- exitFileNote?: "not-an-exit-code" | undefined;
5968
- diagnostic?: string | undefined;
5969
- } | undefined;
5970
5958
  } | {
5971
5959
  id: string;
5972
5960
  source: "agent" | "cezar";
@@ -6038,19 +6026,43 @@ export declare function createRunsRoutes(deps: RunsRouteDeps): import("hono/hono
6038
6026
  deliveredAt?: string | undefined;
6039
6027
  cancelledAt?: string | undefined;
6040
6028
  turnId: string;
6041
- kind: "peer";
6029
+ kind: "process";
6042
6030
  deadline: string;
6043
6031
  timeoutSeconds: number;
6044
- peerIds: string[];
6032
+ pid: number;
6033
+ startToken?: string | undefined;
6034
+ exitFile?: string | undefined;
6035
+ note?: string | undefined;
6045
6036
  result?: {
6046
- reason: "message";
6047
- peerRunId: string;
6048
- messageId: string;
6049
- } | {
6050
- reason: "settled";
6051
- peerRunId: string;
6052
- } | {
6053
- reason: "timeout";
6037
+ outcome: "deadline" | "error" | "exit_file" | "exited";
6038
+ observedAt: string;
6039
+ exitCode?: number | undefined;
6040
+ exitFileNote?: "not-an-exit-code" | undefined;
6041
+ diagnostic?: string | undefined;
6042
+ } | undefined;
6043
+ } | {
6044
+ id: string;
6045
+ source: "agent" | "cezar";
6046
+ 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";
6047
+ registeredAt: string;
6048
+ phase: "cancelled" | "delivered" | "open" | "resolved";
6049
+ resolvedAt?: string | undefined;
6050
+ deliveredAt?: string | undefined;
6051
+ cancelledAt?: string | undefined;
6052
+ turnId: string;
6053
+ kind: "peer";
6054
+ deadline: string;
6055
+ timeoutSeconds: number;
6056
+ peerIds: string[];
6057
+ result?: {
6058
+ reason: "message";
6059
+ peerRunId: string;
6060
+ messageId: string;
6061
+ } | {
6062
+ reason: "settled";
6063
+ peerRunId: string;
6064
+ } | {
6065
+ reason: "timeout";
6054
6066
  } | undefined;
6055
6067
  } | {
6056
6068
  id: string;
@@ -6160,30 +6172,6 @@ export declare function createRunsRoutes(deps: RunsRouteDeps): import("hono/hono
6160
6172
  deadline: string;
6161
6173
  seconds: number;
6162
6174
  note?: string | undefined;
6163
- } | {
6164
- id: string;
6165
- source: "agent" | "cezar";
6166
- via: "ask-line" | "budget" | "cez-message-wait" | "cez-worker-wait" | "cezar_ask" | "cezar_wait" | "cezar_wait_for_ci" | "completion" | "monitoring-line" | "native-ask" | "native-subagents" | "no-wait" | "schedule-wakeup";
6167
- registeredAt: string;
6168
- phase: "cancelled" | "delivered" | "open" | "resolved";
6169
- resolvedAt?: string | undefined;
6170
- deliveredAt?: string | undefined;
6171
- cancelledAt?: string | undefined;
6172
- turnId: string;
6173
- kind: "process";
6174
- deadline: string;
6175
- timeoutSeconds: number;
6176
- pid: number;
6177
- startToken?: string | undefined;
6178
- exitFile?: string | undefined;
6179
- note?: string | undefined;
6180
- result?: {
6181
- outcome: "deadline" | "error" | "exit_file" | "exited";
6182
- observedAt: string;
6183
- exitCode?: number | undefined;
6184
- exitFileNote?: "not-an-exit-code" | undefined;
6185
- diagnostic?: string | undefined;
6186
- } | undefined;
6187
6175
  } | {
6188
6176
  id: string;
6189
6177
  source: "agent" | "cezar";
@@ -6245,6 +6233,30 @@ export declare function createRunsRoutes(deps: RunsRouteDeps): import("hono/hono
6245
6233
  reason: "outcome" | "timeout";
6246
6234
  } | undefined;
6247
6235
  wakeInputId?: string | undefined;
6236
+ } | {
6237
+ id: string;
6238
+ source: "agent" | "cezar";
6239
+ 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";
6240
+ registeredAt: string;
6241
+ phase: "cancelled" | "delivered" | "open" | "resolved";
6242
+ resolvedAt?: string | undefined;
6243
+ deliveredAt?: string | undefined;
6244
+ cancelledAt?: string | undefined;
6245
+ turnId: string;
6246
+ kind: "process";
6247
+ deadline: string;
6248
+ timeoutSeconds: number;
6249
+ pid: number;
6250
+ startToken?: string | undefined;
6251
+ exitFile?: string | undefined;
6252
+ note?: string | undefined;
6253
+ result?: {
6254
+ outcome: "deadline" | "error" | "exit_file" | "exited";
6255
+ observedAt: string;
6256
+ exitCode?: number | undefined;
6257
+ exitFileNote?: "not-an-exit-code" | undefined;
6258
+ diagnostic?: string | undefined;
6259
+ } | undefined;
6248
6260
  } | {
6249
6261
  id: string;
6250
6262
  source: "agent" | "cezar";
@@ -6376,30 +6388,6 @@ export declare function createRunsRoutes(deps: RunsRouteDeps): import("hono/hono
6376
6388
  deadline: string;
6377
6389
  seconds: number;
6378
6390
  note?: string | undefined;
6379
- } | {
6380
- id: string;
6381
- source: "agent" | "cezar";
6382
- via: "ask-line" | "budget" | "cez-message-wait" | "cez-worker-wait" | "cezar_ask" | "cezar_wait" | "cezar_wait_for_ci" | "completion" | "monitoring-line" | "native-ask" | "native-subagents" | "no-wait" | "schedule-wakeup";
6383
- registeredAt: string;
6384
- phase: "cancelled" | "delivered" | "open" | "resolved";
6385
- resolvedAt?: string | undefined;
6386
- deliveredAt?: string | undefined;
6387
- cancelledAt?: string | undefined;
6388
- turnId: string;
6389
- kind: "process";
6390
- deadline: string;
6391
- timeoutSeconds: number;
6392
- pid: number;
6393
- startToken?: string | undefined;
6394
- exitFile?: string | undefined;
6395
- note?: string | undefined;
6396
- result?: {
6397
- outcome: "deadline" | "error" | "exit_file" | "exited";
6398
- observedAt: string;
6399
- exitCode?: number | undefined;
6400
- exitFileNote?: "not-an-exit-code" | undefined;
6401
- diagnostic?: string | undefined;
6402
- } | undefined;
6403
6391
  } | {
6404
6392
  id: string;
6405
6393
  source: "agent" | "cezar";
@@ -6461,6 +6449,30 @@ export declare function createRunsRoutes(deps: RunsRouteDeps): import("hono/hono
6461
6449
  reason: "outcome" | "timeout";
6462
6450
  } | undefined;
6463
6451
  wakeInputId?: string | undefined;
6452
+ } | {
6453
+ id: string;
6454
+ source: "agent" | "cezar";
6455
+ 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";
6456
+ registeredAt: string;
6457
+ phase: "cancelled" | "delivered" | "open" | "resolved";
6458
+ resolvedAt?: string | undefined;
6459
+ deliveredAt?: string | undefined;
6460
+ cancelledAt?: string | undefined;
6461
+ turnId: string;
6462
+ kind: "process";
6463
+ deadline: string;
6464
+ timeoutSeconds: number;
6465
+ pid: number;
6466
+ startToken?: string | undefined;
6467
+ exitFile?: string | undefined;
6468
+ note?: string | undefined;
6469
+ result?: {
6470
+ outcome: "deadline" | "error" | "exit_file" | "exited";
6471
+ observedAt: string;
6472
+ exitCode?: number | undefined;
6473
+ exitFileNote?: "not-an-exit-code" | undefined;
6474
+ diagnostic?: string | undefined;
6475
+ } | undefined;
6464
6476
  } | {
6465
6477
  id: string;
6466
6478
  source: "agent" | "cezar";
@@ -6728,7 +6740,11 @@ export declare function createRunsRoutes(deps: RunsRouteDeps): import("hono/hono
6728
6740
  id: string;
6729
6741
  };
6730
6742
  };
6731
- } | {
6743
+ };
6744
+ };
6745
+ } & {
6746
+ "/runs/:id/unread": {
6747
+ $post: {
6732
6748
  output: {
6733
6749
  error: string;
6734
6750
  };
@@ -6739,11 +6755,7 @@ export declare function createRunsRoutes(deps: RunsRouteDeps): import("hono/hono
6739
6755
  id: string;
6740
6756
  };
6741
6757
  };
6742
- };
6743
- };
6744
- } & {
6745
- "/runs/:id/unread": {
6746
- $post: {
6758
+ } | {
6747
6759
  output: {
6748
6760
  archiveWhenDone?: boolean | undefined;
6749
6761
  autoMergePr?: boolean | undefined;
@@ -7134,30 +7146,6 @@ export declare function createRunsRoutes(deps: RunsRouteDeps): import("hono/hono
7134
7146
  deadline: string;
7135
7147
  seconds: number;
7136
7148
  note?: string | undefined;
7137
- } | {
7138
- id: string;
7139
- source: "agent" | "cezar";
7140
- via: "ask-line" | "budget" | "cez-message-wait" | "cez-worker-wait" | "cezar_ask" | "cezar_wait" | "cezar_wait_for_ci" | "completion" | "monitoring-line" | "native-ask" | "native-subagents" | "no-wait" | "schedule-wakeup";
7141
- registeredAt: string;
7142
- phase: "cancelled" | "delivered" | "open" | "resolved";
7143
- resolvedAt?: string | undefined;
7144
- deliveredAt?: string | undefined;
7145
- cancelledAt?: string | undefined;
7146
- turnId: string;
7147
- kind: "process";
7148
- deadline: string;
7149
- timeoutSeconds: number;
7150
- pid: number;
7151
- startToken?: string | undefined;
7152
- exitFile?: string | undefined;
7153
- note?: string | undefined;
7154
- result?: {
7155
- outcome: "deadline" | "error" | "exit_file" | "exited";
7156
- observedAt: string;
7157
- exitCode?: number | undefined;
7158
- exitFileNote?: "not-an-exit-code" | undefined;
7159
- diagnostic?: string | undefined;
7160
- } | undefined;
7161
7149
  } | {
7162
7150
  id: string;
7163
7151
  source: "agent" | "cezar";
@@ -7219,6 +7207,30 @@ export declare function createRunsRoutes(deps: RunsRouteDeps): import("hono/hono
7219
7207
  reason: "outcome" | "timeout";
7220
7208
  } | undefined;
7221
7209
  wakeInputId?: string | undefined;
7210
+ } | {
7211
+ id: string;
7212
+ source: "agent" | "cezar";
7213
+ 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";
7214
+ registeredAt: string;
7215
+ phase: "cancelled" | "delivered" | "open" | "resolved";
7216
+ resolvedAt?: string | undefined;
7217
+ deliveredAt?: string | undefined;
7218
+ cancelledAt?: string | undefined;
7219
+ turnId: string;
7220
+ kind: "process";
7221
+ deadline: string;
7222
+ timeoutSeconds: number;
7223
+ pid: number;
7224
+ startToken?: string | undefined;
7225
+ exitFile?: string | undefined;
7226
+ note?: string | undefined;
7227
+ result?: {
7228
+ outcome: "deadline" | "error" | "exit_file" | "exited";
7229
+ observedAt: string;
7230
+ exitCode?: number | undefined;
7231
+ exitFileNote?: "not-an-exit-code" | undefined;
7232
+ diagnostic?: string | undefined;
7233
+ } | undefined;
7222
7234
  } | {
7223
7235
  id: string;
7224
7236
  source: "agent" | "cezar";
@@ -7351,30 +7363,6 @@ export declare function createRunsRoutes(deps: RunsRouteDeps): import("hono/hono
7351
7363
  deadline: string;
7352
7364
  seconds: number;
7353
7365
  note?: string | undefined;
7354
- } | {
7355
- id: string;
7356
- source: "agent" | "cezar";
7357
- via: "ask-line" | "budget" | "cez-message-wait" | "cez-worker-wait" | "cezar_ask" | "cezar_wait" | "cezar_wait_for_ci" | "completion" | "monitoring-line" | "native-ask" | "native-subagents" | "no-wait" | "schedule-wakeup";
7358
- registeredAt: string;
7359
- phase: "cancelled" | "delivered" | "open" | "resolved";
7360
- resolvedAt?: string | undefined;
7361
- deliveredAt?: string | undefined;
7362
- cancelledAt?: string | undefined;
7363
- turnId: string;
7364
- kind: "process";
7365
- deadline: string;
7366
- timeoutSeconds: number;
7367
- pid: number;
7368
- startToken?: string | undefined;
7369
- exitFile?: string | undefined;
7370
- note?: string | undefined;
7371
- result?: {
7372
- outcome: "deadline" | "error" | "exit_file" | "exited";
7373
- observedAt: string;
7374
- exitCode?: number | undefined;
7375
- exitFileNote?: "not-an-exit-code" | undefined;
7376
- diagnostic?: string | undefined;
7377
- } | undefined;
7378
7366
  } | {
7379
7367
  id: string;
7380
7368
  source: "agent" | "cezar";
@@ -7436,6 +7424,30 @@ export declare function createRunsRoutes(deps: RunsRouteDeps): import("hono/hono
7436
7424
  reason: "outcome" | "timeout";
7437
7425
  } | undefined;
7438
7426
  wakeInputId?: string | undefined;
7427
+ } | {
7428
+ id: string;
7429
+ source: "agent" | "cezar";
7430
+ 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";
7431
+ registeredAt: string;
7432
+ phase: "cancelled" | "delivered" | "open" | "resolved";
7433
+ resolvedAt?: string | undefined;
7434
+ deliveredAt?: string | undefined;
7435
+ cancelledAt?: string | undefined;
7436
+ turnId: string;
7437
+ kind: "process";
7438
+ deadline: string;
7439
+ timeoutSeconds: number;
7440
+ pid: number;
7441
+ startToken?: string | undefined;
7442
+ exitFile?: string | undefined;
7443
+ note?: string | undefined;
7444
+ result?: {
7445
+ outcome: "deadline" | "error" | "exit_file" | "exited";
7446
+ observedAt: string;
7447
+ exitCode?: number | undefined;
7448
+ exitFileNote?: "not-an-exit-code" | undefined;
7449
+ diagnostic?: string | undefined;
7450
+ } | undefined;
7439
7451
  } | {
7440
7452
  id: string;
7441
7453
  source: "agent" | "cezar";
@@ -7567,30 +7579,6 @@ export declare function createRunsRoutes(deps: RunsRouteDeps): import("hono/hono
7567
7579
  deadline: string;
7568
7580
  seconds: number;
7569
7581
  note?: string | undefined;
7570
- } | {
7571
- id: string;
7572
- source: "agent" | "cezar";
7573
- via: "ask-line" | "budget" | "cez-message-wait" | "cez-worker-wait" | "cezar_ask" | "cezar_wait" | "cezar_wait_for_ci" | "completion" | "monitoring-line" | "native-ask" | "native-subagents" | "no-wait" | "schedule-wakeup";
7574
- registeredAt: string;
7575
- phase: "cancelled" | "delivered" | "open" | "resolved";
7576
- resolvedAt?: string | undefined;
7577
- deliveredAt?: string | undefined;
7578
- cancelledAt?: string | undefined;
7579
- turnId: string;
7580
- kind: "process";
7581
- deadline: string;
7582
- timeoutSeconds: number;
7583
- pid: number;
7584
- startToken?: string | undefined;
7585
- exitFile?: string | undefined;
7586
- note?: string | undefined;
7587
- result?: {
7588
- outcome: "deadline" | "error" | "exit_file" | "exited";
7589
- observedAt: string;
7590
- exitCode?: number | undefined;
7591
- exitFileNote?: "not-an-exit-code" | undefined;
7592
- diagnostic?: string | undefined;
7593
- } | undefined;
7594
7582
  } | {
7595
7583
  id: string;
7596
7584
  source: "agent" | "cezar";
@@ -7652,6 +7640,30 @@ export declare function createRunsRoutes(deps: RunsRouteDeps): import("hono/hono
7652
7640
  reason: "outcome" | "timeout";
7653
7641
  } | undefined;
7654
7642
  wakeInputId?: string | undefined;
7643
+ } | {
7644
+ id: string;
7645
+ source: "agent" | "cezar";
7646
+ 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";
7647
+ registeredAt: string;
7648
+ phase: "cancelled" | "delivered" | "open" | "resolved";
7649
+ resolvedAt?: string | undefined;
7650
+ deliveredAt?: string | undefined;
7651
+ cancelledAt?: string | undefined;
7652
+ turnId: string;
7653
+ kind: "process";
7654
+ deadline: string;
7655
+ timeoutSeconds: number;
7656
+ pid: number;
7657
+ startToken?: string | undefined;
7658
+ exitFile?: string | undefined;
7659
+ note?: string | undefined;
7660
+ result?: {
7661
+ outcome: "deadline" | "error" | "exit_file" | "exited";
7662
+ observedAt: string;
7663
+ exitCode?: number | undefined;
7664
+ exitFileNote?: "not-an-exit-code" | undefined;
7665
+ diagnostic?: string | undefined;
7666
+ } | undefined;
7655
7667
  } | {
7656
7668
  id: string;
7657
7669
  source: "agent" | "cezar";
@@ -7919,17 +7931,6 @@ export declare function createRunsRoutes(deps: RunsRouteDeps): import("hono/hono
7919
7931
  id: string;
7920
7932
  };
7921
7933
  };
7922
- } | {
7923
- output: {
7924
- error: string;
7925
- };
7926
- outputFormat: "json";
7927
- status: 404;
7928
- input: {
7929
- param: {
7930
- id: string;
7931
- };
7932
- };
7933
7934
  };
7934
7935
  };
7935
7936
  } & {
@@ -8072,30 +8073,6 @@ export declare function createRunsRoutes(deps: RunsRouteDeps): import("hono/hono
8072
8073
  deadline: string;
8073
8074
  seconds: number;
8074
8075
  note?: string | undefined;
8075
- } | {
8076
- id: string;
8077
- source: "agent" | "cezar";
8078
- via: "ask-line" | "budget" | "cez-message-wait" | "cez-worker-wait" | "cezar_ask" | "cezar_wait" | "cezar_wait_for_ci" | "completion" | "monitoring-line" | "native-ask" | "native-subagents" | "no-wait" | "schedule-wakeup";
8079
- registeredAt: string;
8080
- phase: "cancelled" | "delivered" | "open" | "resolved";
8081
- resolvedAt?: string | undefined;
8082
- deliveredAt?: string | undefined;
8083
- cancelledAt?: string | undefined;
8084
- turnId: string;
8085
- kind: "process";
8086
- deadline: string;
8087
- timeoutSeconds: number;
8088
- pid: number;
8089
- startToken?: string | undefined;
8090
- exitFile?: string | undefined;
8091
- note?: string | undefined;
8092
- result?: {
8093
- outcome: "deadline" | "error" | "exit_file" | "exited";
8094
- observedAt: string;
8095
- exitCode?: number | undefined;
8096
- exitFileNote?: "not-an-exit-code" | undefined;
8097
- diagnostic?: string | undefined;
8098
- } | undefined;
8099
8076
  } | {
8100
8077
  id: string;
8101
8078
  source: "agent" | "cezar";
@@ -8157,6 +8134,30 @@ export declare function createRunsRoutes(deps: RunsRouteDeps): import("hono/hono
8157
8134
  reason: "outcome" | "timeout";
8158
8135
  } | undefined;
8159
8136
  wakeInputId?: string | undefined;
8137
+ } | {
8138
+ id: string;
8139
+ source: "agent" | "cezar";
8140
+ via: "ask-line" | "budget" | "cez-message-wait" | "cez-worker-wait" | "cezar_ask" | "cezar_wait" | "cezar_wait_for_ci" | "completion" | "monitoring-line" | "native-ask" | "native-subagents" | "no-wait" | "schedule-wakeup";
8141
+ registeredAt: string;
8142
+ phase: "cancelled" | "delivered" | "open" | "resolved";
8143
+ resolvedAt?: string | undefined;
8144
+ deliveredAt?: string | undefined;
8145
+ cancelledAt?: string | undefined;
8146
+ turnId: string;
8147
+ kind: "process";
8148
+ deadline: string;
8149
+ timeoutSeconds: number;
8150
+ pid: number;
8151
+ startToken?: string | undefined;
8152
+ exitFile?: string | undefined;
8153
+ note?: string | undefined;
8154
+ result?: {
8155
+ outcome: "deadline" | "error" | "exit_file" | "exited";
8156
+ observedAt: string;
8157
+ exitCode?: number | undefined;
8158
+ exitFileNote?: "not-an-exit-code" | undefined;
8159
+ diagnostic?: string | undefined;
8160
+ } | undefined;
8160
8161
  } | {
8161
8162
  id: string;
8162
8163
  source: "agent" | "cezar";
@@ -8289,30 +8290,6 @@ export declare function createRunsRoutes(deps: RunsRouteDeps): import("hono/hono
8289
8290
  deadline: string;
8290
8291
  seconds: number;
8291
8292
  note?: string | undefined;
8292
- } | {
8293
- id: string;
8294
- source: "agent" | "cezar";
8295
- via: "ask-line" | "budget" | "cez-message-wait" | "cez-worker-wait" | "cezar_ask" | "cezar_wait" | "cezar_wait_for_ci" | "completion" | "monitoring-line" | "native-ask" | "native-subagents" | "no-wait" | "schedule-wakeup";
8296
- registeredAt: string;
8297
- phase: "cancelled" | "delivered" | "open" | "resolved";
8298
- resolvedAt?: string | undefined;
8299
- deliveredAt?: string | undefined;
8300
- cancelledAt?: string | undefined;
8301
- turnId: string;
8302
- kind: "process";
8303
- deadline: string;
8304
- timeoutSeconds: number;
8305
- pid: number;
8306
- startToken?: string | undefined;
8307
- exitFile?: string | undefined;
8308
- note?: string | undefined;
8309
- result?: {
8310
- outcome: "deadline" | "error" | "exit_file" | "exited";
8311
- observedAt: string;
8312
- exitCode?: number | undefined;
8313
- exitFileNote?: "not-an-exit-code" | undefined;
8314
- diagnostic?: string | undefined;
8315
- } | undefined;
8316
8293
  } | {
8317
8294
  id: string;
8318
8295
  source: "agent" | "cezar";
@@ -8374,6 +8351,30 @@ export declare function createRunsRoutes(deps: RunsRouteDeps): import("hono/hono
8374
8351
  reason: "outcome" | "timeout";
8375
8352
  } | undefined;
8376
8353
  wakeInputId?: string | undefined;
8354
+ } | {
8355
+ id: string;
8356
+ source: "agent" | "cezar";
8357
+ via: "ask-line" | "budget" | "cez-message-wait" | "cez-worker-wait" | "cezar_ask" | "cezar_wait" | "cezar_wait_for_ci" | "completion" | "monitoring-line" | "native-ask" | "native-subagents" | "no-wait" | "schedule-wakeup";
8358
+ registeredAt: string;
8359
+ phase: "cancelled" | "delivered" | "open" | "resolved";
8360
+ resolvedAt?: string | undefined;
8361
+ deliveredAt?: string | undefined;
8362
+ cancelledAt?: string | undefined;
8363
+ turnId: string;
8364
+ kind: "process";
8365
+ deadline: string;
8366
+ timeoutSeconds: number;
8367
+ pid: number;
8368
+ startToken?: string | undefined;
8369
+ exitFile?: string | undefined;
8370
+ note?: string | undefined;
8371
+ result?: {
8372
+ outcome: "deadline" | "error" | "exit_file" | "exited";
8373
+ observedAt: string;
8374
+ exitCode?: number | undefined;
8375
+ exitFileNote?: "not-an-exit-code" | undefined;
8376
+ diagnostic?: string | undefined;
8377
+ } | undefined;
8377
8378
  } | {
8378
8379
  id: string;
8379
8380
  source: "agent" | "cezar";
@@ -8505,30 +8506,6 @@ export declare function createRunsRoutes(deps: RunsRouteDeps): import("hono/hono
8505
8506
  deadline: string;
8506
8507
  seconds: number;
8507
8508
  note?: string | undefined;
8508
- } | {
8509
- id: string;
8510
- source: "agent" | "cezar";
8511
- via: "ask-line" | "budget" | "cez-message-wait" | "cez-worker-wait" | "cezar_ask" | "cezar_wait" | "cezar_wait_for_ci" | "completion" | "monitoring-line" | "native-ask" | "native-subagents" | "no-wait" | "schedule-wakeup";
8512
- registeredAt: string;
8513
- phase: "cancelled" | "delivered" | "open" | "resolved";
8514
- resolvedAt?: string | undefined;
8515
- deliveredAt?: string | undefined;
8516
- cancelledAt?: string | undefined;
8517
- turnId: string;
8518
- kind: "process";
8519
- deadline: string;
8520
- timeoutSeconds: number;
8521
- pid: number;
8522
- startToken?: string | undefined;
8523
- exitFile?: string | undefined;
8524
- note?: string | undefined;
8525
- result?: {
8526
- outcome: "deadline" | "error" | "exit_file" | "exited";
8527
- observedAt: string;
8528
- exitCode?: number | undefined;
8529
- exitFileNote?: "not-an-exit-code" | undefined;
8530
- diagnostic?: string | undefined;
8531
- } | undefined;
8532
8509
  } | {
8533
8510
  id: string;
8534
8511
  source: "agent" | "cezar";
@@ -8590,6 +8567,30 @@ export declare function createRunsRoutes(deps: RunsRouteDeps): import("hono/hono
8590
8567
  reason: "outcome" | "timeout";
8591
8568
  } | undefined;
8592
8569
  wakeInputId?: string | undefined;
8570
+ } | {
8571
+ id: string;
8572
+ source: "agent" | "cezar";
8573
+ via: "ask-line" | "budget" | "cez-message-wait" | "cez-worker-wait" | "cezar_ask" | "cezar_wait" | "cezar_wait_for_ci" | "completion" | "monitoring-line" | "native-ask" | "native-subagents" | "no-wait" | "schedule-wakeup";
8574
+ registeredAt: string;
8575
+ phase: "cancelled" | "delivered" | "open" | "resolved";
8576
+ resolvedAt?: string | undefined;
8577
+ deliveredAt?: string | undefined;
8578
+ cancelledAt?: string | undefined;
8579
+ turnId: string;
8580
+ kind: "process";
8581
+ deadline: string;
8582
+ timeoutSeconds: number;
8583
+ pid: number;
8584
+ startToken?: string | undefined;
8585
+ exitFile?: string | undefined;
8586
+ note?: string | undefined;
8587
+ result?: {
8588
+ outcome: "deadline" | "error" | "exit_file" | "exited";
8589
+ observedAt: string;
8590
+ exitCode?: number | undefined;
8591
+ exitFileNote?: "not-an-exit-code" | undefined;
8592
+ diagnostic?: string | undefined;
8593
+ } | undefined;
8593
8594
  } | {
8594
8595
  id: string;
8595
8596
  source: "agent" | "cezar";
@@ -9206,6 +9207,17 @@ export declare function createRunsRoutes(deps: RunsRouteDeps): import("hono/hono
9206
9207
  } & {
9207
9208
  "/runs/:id": {
9208
9209
  $get: {
9210
+ output: {
9211
+ error: string;
9212
+ };
9213
+ outputFormat: "json";
9214
+ status: 404;
9215
+ input: {
9216
+ param: {
9217
+ id: string;
9218
+ };
9219
+ };
9220
+ } | {
9209
9221
  output: {
9210
9222
  archiveWhenDone?: boolean | undefined;
9211
9223
  autoMergePr?: boolean | undefined;
@@ -9596,30 +9608,6 @@ export declare function createRunsRoutes(deps: RunsRouteDeps): import("hono/hono
9596
9608
  deadline: string;
9597
9609
  seconds: number;
9598
9610
  note?: string | undefined;
9599
- } | {
9600
- id: string;
9601
- source: "agent" | "cezar";
9602
- via: "ask-line" | "budget" | "cez-message-wait" | "cez-worker-wait" | "cezar_ask" | "cezar_wait" | "cezar_wait_for_ci" | "completion" | "monitoring-line" | "native-ask" | "native-subagents" | "no-wait" | "schedule-wakeup";
9603
- registeredAt: string;
9604
- phase: "cancelled" | "delivered" | "open" | "resolved";
9605
- resolvedAt?: string | undefined;
9606
- deliveredAt?: string | undefined;
9607
- cancelledAt?: string | undefined;
9608
- turnId: string;
9609
- kind: "process";
9610
- deadline: string;
9611
- timeoutSeconds: number;
9612
- pid: number;
9613
- startToken?: string | undefined;
9614
- exitFile?: string | undefined;
9615
- note?: string | undefined;
9616
- result?: {
9617
- outcome: "deadline" | "error" | "exit_file" | "exited";
9618
- observedAt: string;
9619
- exitCode?: number | undefined;
9620
- exitFileNote?: "not-an-exit-code" | undefined;
9621
- diagnostic?: string | undefined;
9622
- } | undefined;
9623
9611
  } | {
9624
9612
  id: string;
9625
9613
  source: "agent" | "cezar";
@@ -9681,6 +9669,30 @@ export declare function createRunsRoutes(deps: RunsRouteDeps): import("hono/hono
9681
9669
  reason: "outcome" | "timeout";
9682
9670
  } | undefined;
9683
9671
  wakeInputId?: string | undefined;
9672
+ } | {
9673
+ id: string;
9674
+ source: "agent" | "cezar";
9675
+ 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";
9676
+ registeredAt: string;
9677
+ phase: "cancelled" | "delivered" | "open" | "resolved";
9678
+ resolvedAt?: string | undefined;
9679
+ deliveredAt?: string | undefined;
9680
+ cancelledAt?: string | undefined;
9681
+ turnId: string;
9682
+ kind: "process";
9683
+ deadline: string;
9684
+ timeoutSeconds: number;
9685
+ pid: number;
9686
+ startToken?: string | undefined;
9687
+ exitFile?: string | undefined;
9688
+ note?: string | undefined;
9689
+ result?: {
9690
+ outcome: "deadline" | "error" | "exit_file" | "exited";
9691
+ observedAt: string;
9692
+ exitCode?: number | undefined;
9693
+ exitFileNote?: "not-an-exit-code" | undefined;
9694
+ diagnostic?: string | undefined;
9695
+ } | undefined;
9684
9696
  } | {
9685
9697
  id: string;
9686
9698
  source: "agent" | "cezar";
@@ -9813,30 +9825,6 @@ export declare function createRunsRoutes(deps: RunsRouteDeps): import("hono/hono
9813
9825
  deadline: string;
9814
9826
  seconds: number;
9815
9827
  note?: string | undefined;
9816
- } | {
9817
- id: string;
9818
- source: "agent" | "cezar";
9819
- via: "ask-line" | "budget" | "cez-message-wait" | "cez-worker-wait" | "cezar_ask" | "cezar_wait" | "cezar_wait_for_ci" | "completion" | "monitoring-line" | "native-ask" | "native-subagents" | "no-wait" | "schedule-wakeup";
9820
- registeredAt: string;
9821
- phase: "cancelled" | "delivered" | "open" | "resolved";
9822
- resolvedAt?: string | undefined;
9823
- deliveredAt?: string | undefined;
9824
- cancelledAt?: string | undefined;
9825
- turnId: string;
9826
- kind: "process";
9827
- deadline: string;
9828
- timeoutSeconds: number;
9829
- pid: number;
9830
- startToken?: string | undefined;
9831
- exitFile?: string | undefined;
9832
- note?: string | undefined;
9833
- result?: {
9834
- outcome: "deadline" | "error" | "exit_file" | "exited";
9835
- observedAt: string;
9836
- exitCode?: number | undefined;
9837
- exitFileNote?: "not-an-exit-code" | undefined;
9838
- diagnostic?: string | undefined;
9839
- } | undefined;
9840
9828
  } | {
9841
9829
  id: string;
9842
9830
  source: "agent" | "cezar";
@@ -9898,6 +9886,30 @@ export declare function createRunsRoutes(deps: RunsRouteDeps): import("hono/hono
9898
9886
  reason: "outcome" | "timeout";
9899
9887
  } | undefined;
9900
9888
  wakeInputId?: string | undefined;
9889
+ } | {
9890
+ id: string;
9891
+ source: "agent" | "cezar";
9892
+ 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";
9893
+ registeredAt: string;
9894
+ phase: "cancelled" | "delivered" | "open" | "resolved";
9895
+ resolvedAt?: string | undefined;
9896
+ deliveredAt?: string | undefined;
9897
+ cancelledAt?: string | undefined;
9898
+ turnId: string;
9899
+ kind: "process";
9900
+ deadline: string;
9901
+ timeoutSeconds: number;
9902
+ pid: number;
9903
+ startToken?: string | undefined;
9904
+ exitFile?: string | undefined;
9905
+ note?: string | undefined;
9906
+ result?: {
9907
+ outcome: "deadline" | "error" | "exit_file" | "exited";
9908
+ observedAt: string;
9909
+ exitCode?: number | undefined;
9910
+ exitFileNote?: "not-an-exit-code" | undefined;
9911
+ diagnostic?: string | undefined;
9912
+ } | undefined;
9901
9913
  } | {
9902
9914
  id: string;
9903
9915
  source: "agent" | "cezar";
@@ -10029,30 +10041,6 @@ export declare function createRunsRoutes(deps: RunsRouteDeps): import("hono/hono
10029
10041
  deadline: string;
10030
10042
  seconds: number;
10031
10043
  note?: string | undefined;
10032
- } | {
10033
- id: string;
10034
- source: "agent" | "cezar";
10035
- via: "ask-line" | "budget" | "cez-message-wait" | "cez-worker-wait" | "cezar_ask" | "cezar_wait" | "cezar_wait_for_ci" | "completion" | "monitoring-line" | "native-ask" | "native-subagents" | "no-wait" | "schedule-wakeup";
10036
- registeredAt: string;
10037
- phase: "cancelled" | "delivered" | "open" | "resolved";
10038
- resolvedAt?: string | undefined;
10039
- deliveredAt?: string | undefined;
10040
- cancelledAt?: string | undefined;
10041
- turnId: string;
10042
- kind: "process";
10043
- deadline: string;
10044
- timeoutSeconds: number;
10045
- pid: number;
10046
- startToken?: string | undefined;
10047
- exitFile?: string | undefined;
10048
- note?: string | undefined;
10049
- result?: {
10050
- outcome: "deadline" | "error" | "exit_file" | "exited";
10051
- observedAt: string;
10052
- exitCode?: number | undefined;
10053
- exitFileNote?: "not-an-exit-code" | undefined;
10054
- diagnostic?: string | undefined;
10055
- } | undefined;
10056
10044
  } | {
10057
10045
  id: string;
10058
10046
  source: "agent" | "cezar";
@@ -10114,6 +10102,30 @@ export declare function createRunsRoutes(deps: RunsRouteDeps): import("hono/hono
10114
10102
  reason: "outcome" | "timeout";
10115
10103
  } | undefined;
10116
10104
  wakeInputId?: string | undefined;
10105
+ } | {
10106
+ id: string;
10107
+ source: "agent" | "cezar";
10108
+ 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";
10109
+ registeredAt: string;
10110
+ phase: "cancelled" | "delivered" | "open" | "resolved";
10111
+ resolvedAt?: string | undefined;
10112
+ deliveredAt?: string | undefined;
10113
+ cancelledAt?: string | undefined;
10114
+ turnId: string;
10115
+ kind: "process";
10116
+ deadline: string;
10117
+ timeoutSeconds: number;
10118
+ pid: number;
10119
+ startToken?: string | undefined;
10120
+ exitFile?: string | undefined;
10121
+ note?: string | undefined;
10122
+ result?: {
10123
+ outcome: "deadline" | "error" | "exit_file" | "exited";
10124
+ observedAt: string;
10125
+ exitCode?: number | undefined;
10126
+ exitFileNote?: "not-an-exit-code" | undefined;
10127
+ diagnostic?: string | undefined;
10128
+ } | undefined;
10117
10129
  } | {
10118
10130
  id: string;
10119
10131
  source: "agent" | "cezar";
@@ -10389,17 +10401,6 @@ export declare function createRunsRoutes(deps: RunsRouteDeps): import("hono/hono
10389
10401
  id: string;
10390
10402
  };
10391
10403
  };
10392
- } | {
10393
- output: {
10394
- error: string;
10395
- };
10396
- outputFormat: "json";
10397
- status: 404;
10398
- input: {
10399
- param: {
10400
- id: string;
10401
- };
10402
- };
10403
10404
  };
10404
10405
  };
10405
10406
  } & {
@@ -10527,6 +10528,66 @@ export declare function createRunsRoutes(deps: RunsRouteDeps): import("hono/hono
10527
10528
  } & {
10528
10529
  "/runs/:id": {
10529
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
+ } | {
10530
10591
  output: {
10531
10592
  archiveWhenDone?: boolean | undefined;
10532
10593
  autoMergePr?: boolean | undefined;
@@ -10664,30 +10725,6 @@ export declare function createRunsRoutes(deps: RunsRouteDeps): import("hono/hono
10664
10725
  deadline: string;
10665
10726
  seconds: number;
10666
10727
  note?: string | undefined;
10667
- } | {
10668
- id: string;
10669
- source: "agent" | "cezar";
10670
- via: "ask-line" | "budget" | "cez-message-wait" | "cez-worker-wait" | "cezar_ask" | "cezar_wait" | "cezar_wait_for_ci" | "completion" | "monitoring-line" | "native-ask" | "native-subagents" | "no-wait" | "schedule-wakeup";
10671
- registeredAt: string;
10672
- phase: "cancelled" | "delivered" | "open" | "resolved";
10673
- resolvedAt?: string | undefined;
10674
- deliveredAt?: string | undefined;
10675
- cancelledAt?: string | undefined;
10676
- turnId: string;
10677
- kind: "process";
10678
- deadline: string;
10679
- timeoutSeconds: number;
10680
- pid: number;
10681
- startToken?: string | undefined;
10682
- exitFile?: string | undefined;
10683
- note?: string | undefined;
10684
- result?: {
10685
- outcome: "deadline" | "error" | "exit_file" | "exited";
10686
- observedAt: string;
10687
- exitCode?: number | undefined;
10688
- exitFileNote?: "not-an-exit-code" | undefined;
10689
- diagnostic?: string | undefined;
10690
- } | undefined;
10691
10728
  } | {
10692
10729
  id: string;
10693
10730
  source: "agent" | "cezar";
@@ -10749,6 +10786,30 @@ export declare function createRunsRoutes(deps: RunsRouteDeps): import("hono/hono
10749
10786
  reason: "outcome" | "timeout";
10750
10787
  } | undefined;
10751
10788
  wakeInputId?: string | undefined;
10789
+ } | {
10790
+ id: string;
10791
+ source: "agent" | "cezar";
10792
+ 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";
10793
+ registeredAt: string;
10794
+ phase: "cancelled" | "delivered" | "open" | "resolved";
10795
+ resolvedAt?: string | undefined;
10796
+ deliveredAt?: string | undefined;
10797
+ cancelledAt?: string | undefined;
10798
+ turnId: string;
10799
+ kind: "process";
10800
+ deadline: string;
10801
+ timeoutSeconds: number;
10802
+ pid: number;
10803
+ startToken?: string | undefined;
10804
+ exitFile?: string | undefined;
10805
+ note?: string | undefined;
10806
+ result?: {
10807
+ outcome: "deadline" | "error" | "exit_file" | "exited";
10808
+ observedAt: string;
10809
+ exitCode?: number | undefined;
10810
+ exitFileNote?: "not-an-exit-code" | undefined;
10811
+ diagnostic?: string | undefined;
10812
+ } | undefined;
10752
10813
  } | {
10753
10814
  id: string;
10754
10815
  source: "agent" | "cezar";
@@ -10881,30 +10942,6 @@ export declare function createRunsRoutes(deps: RunsRouteDeps): import("hono/hono
10881
10942
  deadline: string;
10882
10943
  seconds: number;
10883
10944
  note?: string | undefined;
10884
- } | {
10885
- id: string;
10886
- source: "agent" | "cezar";
10887
- via: "ask-line" | "budget" | "cez-message-wait" | "cez-worker-wait" | "cezar_ask" | "cezar_wait" | "cezar_wait_for_ci" | "completion" | "monitoring-line" | "native-ask" | "native-subagents" | "no-wait" | "schedule-wakeup";
10888
- registeredAt: string;
10889
- phase: "cancelled" | "delivered" | "open" | "resolved";
10890
- resolvedAt?: string | undefined;
10891
- deliveredAt?: string | undefined;
10892
- cancelledAt?: string | undefined;
10893
- turnId: string;
10894
- kind: "process";
10895
- deadline: string;
10896
- timeoutSeconds: number;
10897
- pid: number;
10898
- startToken?: string | undefined;
10899
- exitFile?: string | undefined;
10900
- note?: string | undefined;
10901
- result?: {
10902
- outcome: "deadline" | "error" | "exit_file" | "exited";
10903
- observedAt: string;
10904
- exitCode?: number | undefined;
10905
- exitFileNote?: "not-an-exit-code" | undefined;
10906
- diagnostic?: string | undefined;
10907
- } | undefined;
10908
10945
  } | {
10909
10946
  id: string;
10910
10947
  source: "agent" | "cezar";
@@ -10966,6 +11003,30 @@ export declare function createRunsRoutes(deps: RunsRouteDeps): import("hono/hono
10966
11003
  reason: "outcome" | "timeout";
10967
11004
  } | undefined;
10968
11005
  wakeInputId?: string | undefined;
11006
+ } | {
11007
+ id: string;
11008
+ source: "agent" | "cezar";
11009
+ 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";
11010
+ registeredAt: string;
11011
+ phase: "cancelled" | "delivered" | "open" | "resolved";
11012
+ resolvedAt?: string | undefined;
11013
+ deliveredAt?: string | undefined;
11014
+ cancelledAt?: string | undefined;
11015
+ turnId: string;
11016
+ kind: "process";
11017
+ deadline: string;
11018
+ timeoutSeconds: number;
11019
+ pid: number;
11020
+ startToken?: string | undefined;
11021
+ exitFile?: string | undefined;
11022
+ note?: string | undefined;
11023
+ result?: {
11024
+ outcome: "deadline" | "error" | "exit_file" | "exited";
11025
+ observedAt: string;
11026
+ exitCode?: number | undefined;
11027
+ exitFileNote?: "not-an-exit-code" | undefined;
11028
+ diagnostic?: string | undefined;
11029
+ } | undefined;
10969
11030
  } | {
10970
11031
  id: string;
10971
11032
  source: "agent" | "cezar";
@@ -11097,30 +11158,6 @@ export declare function createRunsRoutes(deps: RunsRouteDeps): import("hono/hono
11097
11158
  deadline: string;
11098
11159
  seconds: number;
11099
11160
  note?: string | undefined;
11100
- } | {
11101
- id: string;
11102
- source: "agent" | "cezar";
11103
- via: "ask-line" | "budget" | "cez-message-wait" | "cez-worker-wait" | "cezar_ask" | "cezar_wait" | "cezar_wait_for_ci" | "completion" | "monitoring-line" | "native-ask" | "native-subagents" | "no-wait" | "schedule-wakeup";
11104
- registeredAt: string;
11105
- phase: "cancelled" | "delivered" | "open" | "resolved";
11106
- resolvedAt?: string | undefined;
11107
- deliveredAt?: string | undefined;
11108
- cancelledAt?: string | undefined;
11109
- turnId: string;
11110
- kind: "process";
11111
- deadline: string;
11112
- timeoutSeconds: number;
11113
- pid: number;
11114
- startToken?: string | undefined;
11115
- exitFile?: string | undefined;
11116
- note?: string | undefined;
11117
- result?: {
11118
- outcome: "deadline" | "error" | "exit_file" | "exited";
11119
- observedAt: string;
11120
- exitCode?: number | undefined;
11121
- exitFileNote?: "not-an-exit-code" | undefined;
11122
- diagnostic?: string | undefined;
11123
- } | undefined;
11124
11161
  } | {
11125
11162
  id: string;
11126
11163
  source: "agent" | "cezar";
@@ -11182,6 +11219,30 @@ export declare function createRunsRoutes(deps: RunsRouteDeps): import("hono/hono
11182
11219
  reason: "outcome" | "timeout";
11183
11220
  } | undefined;
11184
11221
  wakeInputId?: string | undefined;
11222
+ } | {
11223
+ id: string;
11224
+ source: "agent" | "cezar";
11225
+ 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";
11226
+ registeredAt: string;
11227
+ phase: "cancelled" | "delivered" | "open" | "resolved";
11228
+ resolvedAt?: string | undefined;
11229
+ deliveredAt?: string | undefined;
11230
+ cancelledAt?: string | undefined;
11231
+ turnId: string;
11232
+ kind: "process";
11233
+ deadline: string;
11234
+ timeoutSeconds: number;
11235
+ pid: number;
11236
+ startToken?: string | undefined;
11237
+ exitFile?: string | undefined;
11238
+ note?: string | undefined;
11239
+ result?: {
11240
+ outcome: "deadline" | "error" | "exit_file" | "exited";
11241
+ observedAt: string;
11242
+ exitCode?: number | undefined;
11243
+ exitFileNote?: "not-an-exit-code" | undefined;
11244
+ diagnostic?: string | undefined;
11245
+ } | undefined;
11185
11246
  } | {
11186
11247
  id: string;
11187
11248
  source: "agent" | "cezar";
@@ -11682,81 +11743,21 @@ export declare function createRunsRoutes(deps: RunsRouteDeps): import("hono/hono
11682
11743
  occurrenceAt: string;
11683
11744
  automationRevision: number;
11684
11745
  } | undefined;
11685
- handoffRecords?: {
11686
- autosave: {
11687
- at: string;
11688
- note: string;
11689
- periodic?: {
11690
- branch: string | null;
11691
- count: number;
11692
- first: string | null;
11693
- latest: string | null;
11694
- } | undefined;
11695
- }[];
11696
- } | undefined;
11697
- };
11698
- outputFormat: "json";
11699
- status: import("hono/utils/http-status").ContentfulStatusCode;
11700
- input: {
11701
- json: {
11702
- archiveWhenDone?: boolean | undefined;
11703
- autoMergePr?: boolean | undefined;
11704
- allowWorkers?: boolean | undefined;
11705
- allowMessaging?: boolean | undefined;
11706
- title?: string | undefined;
11707
- task?: string | undefined;
11708
- };
11709
- } & {
11710
- param: {
11711
- id: string;
11712
- };
11713
- };
11714
- } | {
11715
- output: {
11716
- error: string;
11717
- };
11718
- outputFormat: "json";
11719
- status: 404;
11720
- input: {
11721
- json: {
11722
- archiveWhenDone?: boolean | undefined;
11723
- autoMergePr?: boolean | undefined;
11724
- allowWorkers?: boolean | undefined;
11725
- allowMessaging?: boolean | undefined;
11726
- title?: string | undefined;
11727
- task?: string | undefined;
11728
- };
11729
- } & {
11730
- param: {
11731
- id: string;
11732
- };
11733
- };
11734
- } | {
11735
- output: {
11736
- error: string;
11737
- };
11738
- outputFormat: "json";
11739
- status: 400;
11740
- input: {
11741
- json: {
11742
- archiveWhenDone?: boolean | undefined;
11743
- autoMergePr?: boolean | undefined;
11744
- allowWorkers?: boolean | undefined;
11745
- allowMessaging?: boolean | undefined;
11746
- title?: string | undefined;
11747
- task?: string | undefined;
11748
- };
11749
- } & {
11750
- param: {
11751
- id: string;
11752
- };
11753
- };
11754
- } | {
11755
- output: {
11756
- error: string;
11746
+ handoffRecords?: {
11747
+ autosave: {
11748
+ at: string;
11749
+ note: string;
11750
+ periodic?: {
11751
+ branch: string | null;
11752
+ count: number;
11753
+ first: string | null;
11754
+ latest: string | null;
11755
+ } | undefined;
11756
+ }[];
11757
+ } | undefined;
11757
11758
  };
11758
11759
  outputFormat: "json";
11759
- status: 409;
11760
+ status: import("hono/utils/http-status").ContentfulStatusCode;
11760
11761
  input: {
11761
11762
  json: {
11762
11763
  archiveWhenDone?: boolean | undefined;
@@ -11875,7 +11876,7 @@ export declare function createRunsRoutes(deps: RunsRouteDeps): import("hono/hono
11875
11876
  error: string;
11876
11877
  };
11877
11878
  outputFormat: "json";
11878
- status: 404;
11879
+ status: 400;
11879
11880
  input: {
11880
11881
  json: {
11881
11882
  text?: string | undefined;
@@ -11894,7 +11895,7 @@ export declare function createRunsRoutes(deps: RunsRouteDeps): import("hono/hono
11894
11895
  error: string;
11895
11896
  };
11896
11897
  outputFormat: "json";
11897
- status: 409;
11898
+ status: 404;
11898
11899
  input: {
11899
11900
  json: {
11900
11901
  text?: string | undefined;
@@ -11910,10 +11911,10 @@ export declare function createRunsRoutes(deps: RunsRouteDeps): import("hono/hono
11910
11911
  };
11911
11912
  } | {
11912
11913
  output: {
11913
- delivered: true;
11914
+ error: string;
11914
11915
  };
11915
11916
  outputFormat: "json";
11916
- status: import("hono/utils/http-status").ContentfulStatusCode;
11917
+ status: 409;
11917
11918
  input: {
11918
11919
  json: {
11919
11920
  text?: string | undefined;
@@ -11929,10 +11930,10 @@ export declare function createRunsRoutes(deps: RunsRouteDeps): import("hono/hono
11929
11930
  };
11930
11931
  } | {
11931
11932
  output: {
11932
- error: string;
11933
+ delivered: true;
11933
11934
  };
11934
11935
  outputFormat: "json";
11935
- status: 400;
11936
+ status: import("hono/utils/http-status").ContentfulStatusCode;
11936
11937
  input: {
11937
11938
  json: {
11938
11939
  text?: string | undefined;
@@ -12000,7 +12001,7 @@ export declare function createRunsRoutes(deps: RunsRouteDeps): import("hono/hono
12000
12001
  error: string;
12001
12002
  };
12002
12003
  outputFormat: "json";
12003
- status: 404;
12004
+ status: 400;
12004
12005
  input: {
12005
12006
  json: {
12006
12007
  text?: string | undefined;
@@ -12021,7 +12022,7 @@ export declare function createRunsRoutes(deps: RunsRouteDeps): import("hono/hono
12021
12022
  error: string;
12022
12023
  };
12023
12024
  outputFormat: "json";
12024
- status: 400;
12025
+ status: 404;
12025
12026
  input: {
12026
12027
  json: {
12027
12028
  text?: string | undefined;
@@ -12241,10 +12242,11 @@ export declare function createRunsRoutes(deps: RunsRouteDeps): import("hono/hono
12241
12242
  "/runs/:id/open-in-cli": {
12242
12243
  $post: {
12243
12244
  output: {
12244
- error: string;
12245
+ opened: true;
12246
+ command: string;
12245
12247
  };
12246
12248
  outputFormat: "json";
12247
- status: 404 | 409;
12249
+ status: import("hono/utils/http-status").ContentfulStatusCode;
12248
12250
  input: {
12249
12251
  param: {
12250
12252
  id: string;
@@ -12252,11 +12254,10 @@ export declare function createRunsRoutes(deps: RunsRouteDeps): import("hono/hono
12252
12254
  };
12253
12255
  } | {
12254
12256
  output: {
12255
- opened: true;
12256
- command: string;
12257
+ error: string;
12257
12258
  };
12258
12259
  outputFormat: "json";
12259
- status: import("hono/utils/http-status").ContentfulStatusCode;
12260
+ status: 404 | 409;
12260
12261
  input: {
12261
12262
  param: {
12262
12263
  id: string;
@@ -12271,7 +12272,7 @@ export declare function createRunsRoutes(deps: RunsRouteDeps): import("hono/hono
12271
12272
  error: string;
12272
12273
  };
12273
12274
  outputFormat: "json";
12274
- status: 404 | 409;
12275
+ status: 400;
12275
12276
  input: {
12276
12277
  json: {
12277
12278
  target: string;
@@ -12284,10 +12285,11 @@ export declare function createRunsRoutes(deps: RunsRouteDeps): import("hono/hono
12284
12285
  };
12285
12286
  } | {
12286
12287
  output: {
12287
- error: string;
12288
+ opened: true;
12289
+ path: string;
12288
12290
  };
12289
12291
  outputFormat: "json";
12290
- status: 400;
12292
+ status: import("hono/utils/http-status").ContentfulStatusCode;
12291
12293
  input: {
12292
12294
  json: {
12293
12295
  target: string;
@@ -12300,11 +12302,10 @@ export declare function createRunsRoutes(deps: RunsRouteDeps): import("hono/hono
12300
12302
  };
12301
12303
  } | {
12302
12304
  output: {
12303
- opened: true;
12304
- path: string;
12305
+ error: string;
12305
12306
  };
12306
12307
  outputFormat: "json";
12307
- status: import("hono/utils/http-status").ContentfulStatusCode;
12308
+ status: 404 | 409;
12308
12309
  input: {
12309
12310
  json: {
12310
12311
  target: string;
@@ -12344,9 +12345,12 @@ export declare function createRunsRoutes(deps: RunsRouteDeps): import("hono/hono
12344
12345
  } & {
12345
12346
  "/runs/:id/images/:file": {
12346
12347
  $get: {
12347
- output: {};
12348
- outputFormat: string;
12349
- status: import("hono/utils/http-status").StatusCode;
12348
+ output: {
12349
+ error: string;
12350
+ code?: "invalid_input" | undefined;
12351
+ };
12352
+ outputFormat: "json";
12353
+ status: 400;
12350
12354
  input: {
12351
12355
  param: {
12352
12356
  id: string;
@@ -12354,12 +12358,9 @@ export declare function createRunsRoutes(deps: RunsRouteDeps): import("hono/hono
12354
12358
  };
12355
12359
  };
12356
12360
  } | {
12357
- output: {
12358
- error: string;
12359
- code?: "invalid_input" | undefined;
12360
- };
12361
- outputFormat: "json";
12362
- status: 400;
12361
+ output: {};
12362
+ outputFormat: string;
12363
+ status: import("hono/utils/http-status").StatusCode;
12363
12364
  input: {
12364
12365
  param: {
12365
12366
  id: string;
@@ -12395,17 +12396,6 @@ export declare function createRunsRoutes(deps: RunsRouteDeps): import("hono/hono
12395
12396
  } & {
12396
12397
  "/runs/:id/changes": {
12397
12398
  $get: {
12398
- output: {
12399
- error: string;
12400
- };
12401
- outputFormat: "json";
12402
- status: 404 | 409;
12403
- input: {
12404
- param: {
12405
- id: string;
12406
- };
12407
- };
12408
- } | {
12409
12399
  output: {
12410
12400
  files: {
12411
12401
  path: string;
@@ -12434,11 +12424,7 @@ export declare function createRunsRoutes(deps: RunsRouteDeps): import("hono/hono
12434
12424
  id: string;
12435
12425
  };
12436
12426
  };
12437
- };
12438
- };
12439
- } & {
12440
- "/runs/:id/commits": {
12441
- $get: {
12427
+ } | {
12442
12428
  output: {
12443
12429
  error: string;
12444
12430
  };
@@ -12449,7 +12435,11 @@ export declare function createRunsRoutes(deps: RunsRouteDeps): import("hono/hono
12449
12435
  id: string;
12450
12436
  };
12451
12437
  };
12452
- } | {
12438
+ };
12439
+ };
12440
+ } & {
12441
+ "/runs/:id/commits": {
12442
+ $get: {
12453
12443
  output: {
12454
12444
  commits: {
12455
12445
  sha: string;
@@ -12465,11 +12455,7 @@ export declare function createRunsRoutes(deps: RunsRouteDeps): import("hono/hono
12465
12455
  id: string;
12466
12456
  };
12467
12457
  };
12468
- };
12469
- };
12470
- } & {
12471
- "/runs/:id/commit/:sha": {
12472
- $get: {
12458
+ } | {
12473
12459
  output: {
12474
12460
  error: string;
12475
12461
  };
@@ -12478,11 +12464,13 @@ export declare function createRunsRoutes(deps: RunsRouteDeps): import("hono/hono
12478
12464
  input: {
12479
12465
  param: {
12480
12466
  id: string;
12481
- } & {
12482
- sha: string;
12483
12467
  };
12484
12468
  };
12485
- } | {
12469
+ };
12470
+ };
12471
+ } & {
12472
+ "/runs/:id/commit/:sha": {
12473
+ $get: {
12486
12474
  output: {
12487
12475
  sha: string;
12488
12476
  subject: string;
@@ -12513,6 +12501,19 @@ export declare function createRunsRoutes(deps: RunsRouteDeps): import("hono/hono
12513
12501
  sha: string;
12514
12502
  };
12515
12503
  };
12504
+ } | {
12505
+ output: {
12506
+ error: string;
12507
+ };
12508
+ outputFormat: "json";
12509
+ status: 404 | 409;
12510
+ input: {
12511
+ param: {
12512
+ id: string;
12513
+ } & {
12514
+ sha: string;
12515
+ };
12516
+ };
12516
12517
  };
12517
12518
  };
12518
12519
  } & {
@@ -12548,22 +12549,6 @@ export declare function createRunsRoutes(deps: RunsRouteDeps): import("hono/hono
12548
12549
  raw?: "1" | undefined;
12549
12550
  };
12550
12551
  };
12551
- } | {
12552
- output: {
12553
- error: string;
12554
- };
12555
- outputFormat: "json";
12556
- status: 404 | 409;
12557
- input: {
12558
- param: {
12559
- id: string;
12560
- };
12561
- } & {
12562
- query: {
12563
- path: string | string[];
12564
- raw?: "1" | undefined;
12565
- };
12566
- };
12567
12552
  } | {
12568
12553
  output: {
12569
12554
  type: "file";
@@ -12600,6 +12585,22 @@ export declare function createRunsRoutes(deps: RunsRouteDeps): import("hono/hono
12600
12585
  raw?: "1" | undefined;
12601
12586
  };
12602
12587
  };
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
+ };
12603
12604
  };
12604
12605
  };
12605
12606
  } & {
@@ -12664,6 +12665,18 @@ export declare function createRunsRoutes(deps: RunsRouteDeps): import("hono/hono
12664
12665
  artifactId: string;
12665
12666
  };
12666
12667
  };
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
+ };
12667
12680
  } | {
12668
12681
  output: {
12669
12682
  type: "file";
@@ -12692,18 +12705,6 @@ export declare function createRunsRoutes(deps: RunsRouteDeps): import("hono/hono
12692
12705
  artifactId: string;
12693
12706
  };
12694
12707
  };
12695
- } | {
12696
- output: {
12697
- error: string;
12698
- };
12699
- outputFormat: "json";
12700
- status: 404;
12701
- input: {
12702
- param: {
12703
- id: string;
12704
- artifactId: string;
12705
- };
12706
- };
12707
12708
  };
12708
12709
  };
12709
12710
  } & {
@@ -12881,10 +12882,16 @@ export declare function createRunsRoutes(deps: RunsRouteDeps): import("hono/hono
12881
12882
  };
12882
12883
  } | {
12883
12884
  output: {
12884
- error: string;
12885
+ type: 'dir';
12886
+ path: string;
12887
+ entries: {
12888
+ name: string;
12889
+ type: 'dir' | 'file';
12890
+ size?: number;
12891
+ }[];
12885
12892
  };
12886
12893
  outputFormat: "json";
12887
- status: 404 | 409;
12894
+ status: import("hono/utils/http-status").ContentfulStatusCode;
12888
12895
  input: {
12889
12896
  query: {
12890
12897
  path?: string | undefined;
@@ -12897,13 +12904,12 @@ export declare function createRunsRoutes(deps: RunsRouteDeps): import("hono/hono
12897
12904
  };
12898
12905
  } | {
12899
12906
  output: {
12900
- type: 'dir';
12907
+ type: 'file';
12901
12908
  path: string;
12902
- entries: {
12903
- name: string;
12904
- type: 'dir' | 'file';
12905
- size?: number;
12906
- }[];
12909
+ size: number;
12910
+ binary: boolean;
12911
+ tooLarge: boolean;
12912
+ content?: string | undefined;
12907
12913
  };
12908
12914
  outputFormat: "json";
12909
12915
  status: import("hono/utils/http-status").ContentfulStatusCode;
@@ -12919,15 +12925,10 @@ export declare function createRunsRoutes(deps: RunsRouteDeps): import("hono/hono
12919
12925
  };
12920
12926
  } | {
12921
12927
  output: {
12922
- type: 'file';
12923
- path: string;
12924
- size: number;
12925
- binary: boolean;
12926
- tooLarge: boolean;
12927
- content?: string | undefined;
12928
+ error: string;
12928
12929
  };
12929
12930
  outputFormat: "json";
12930
- status: import("hono/utils/http-status").ContentfulStatusCode;
12931
+ status: 404 | 409;
12931
12932
  input: {
12932
12933
  query: {
12933
12934
  path?: string | undefined;
@@ -12944,10 +12945,11 @@ export declare function createRunsRoutes(deps: RunsRouteDeps): import("hono/hono
12944
12945
  "/runs/:id/git/commit": {
12945
12946
  $post: {
12946
12947
  output: {
12947
- error: string;
12948
+ committed: true;
12949
+ sha: string;
12948
12950
  };
12949
12951
  outputFormat: "json";
12950
- status: 404 | 409;
12952
+ status: import("hono/utils/http-status").ContentfulStatusCode;
12951
12953
  input: {
12952
12954
  json: {
12953
12955
  message: string;
@@ -12959,11 +12961,10 @@ export declare function createRunsRoutes(deps: RunsRouteDeps): import("hono/hono
12959
12961
  };
12960
12962
  } | {
12961
12963
  output: {
12962
- committed: true;
12963
- sha: string;
12964
+ error: string;
12964
12965
  };
12965
12966
  outputFormat: "json";
12966
- status: import("hono/utils/http-status").ContentfulStatusCode;
12967
+ status: 404 | 409;
12967
12968
  input: {
12968
12969
  json: {
12969
12970
  message: string;
@@ -12979,10 +12980,13 @@ export declare function createRunsRoutes(deps: RunsRouteDeps): import("hono/hono
12979
12980
  "/runs/:id/git/push": {
12980
12981
  $post: {
12981
12982
  output: {
12982
- error: string;
12983
+ pushed: true;
12984
+ branch: string;
12985
+ remote: string;
12986
+ upstreamSet: boolean;
12983
12987
  };
12984
12988
  outputFormat: "json";
12985
- status: 404 | 409;
12989
+ status: import("hono/utils/http-status").ContentfulStatusCode;
12986
12990
  input: {
12987
12991
  param: {
12988
12992
  id: string;
@@ -12990,13 +12994,10 @@ export declare function createRunsRoutes(deps: RunsRouteDeps): import("hono/hono
12990
12994
  };
12991
12995
  } | {
12992
12996
  output: {
12993
- pushed: true;
12994
- branch: string;
12995
- remote: string;
12996
- upstreamSet: boolean;
12997
+ error: string;
12997
12998
  };
12998
12999
  outputFormat: "json";
12999
- status: import("hono/utils/http-status").ContentfulStatusCode;
13000
+ status: 404 | 409;
13000
13001
  input: {
13001
13002
  param: {
13002
13003
  id: string;
@@ -13008,10 +13009,11 @@ export declare function createRunsRoutes(deps: RunsRouteDeps): import("hono/hono
13008
13009
  "/runs/:id/pr": {
13009
13010
  $post: {
13010
13011
  output: {
13011
- error: string;
13012
+ url: string;
13013
+ dryRun: boolean;
13012
13014
  };
13013
13015
  outputFormat: "json";
13014
- status: 404 | 409;
13016
+ status: 201;
13015
13017
  input: {
13016
13018
  param: {
13017
13019
  id: string;
@@ -13019,11 +13021,10 @@ export declare function createRunsRoutes(deps: RunsRouteDeps): import("hono/hono
13019
13021
  };
13020
13022
  } | {
13021
13023
  output: {
13022
- url: string;
13023
- dryRun: boolean;
13024
+ error: string;
13024
13025
  };
13025
13026
  outputFormat: "json";
13026
- status: 201;
13027
+ status: 404 | 409;
13027
13028
  input: {
13028
13029
  param: {
13029
13030
  id: string;
@@ -13035,10 +13036,10 @@ export declare function createRunsRoutes(deps: RunsRouteDeps): import("hono/hono
13035
13036
  "/runs/:id/remove-worktree": {
13036
13037
  $post: {
13037
13038
  output: {
13038
- error: string;
13039
+ removed: true;
13039
13040
  };
13040
13041
  outputFormat: "json";
13041
- status: 404 | 409;
13042
+ status: import("hono/utils/http-status").ContentfulStatusCode;
13042
13043
  input: {
13043
13044
  param: {
13044
13045
  id: string;
@@ -13046,10 +13047,10 @@ export declare function createRunsRoutes(deps: RunsRouteDeps): import("hono/hono
13046
13047
  };
13047
13048
  } | {
13048
13049
  output: {
13049
- removed: true;
13050
+ error: string;
13050
13051
  };
13051
13052
  outputFormat: "json";
13052
- status: import("hono/utils/http-status").ContentfulStatusCode;
13053
+ status: 404 | 409;
13053
13054
  input: {
13054
13055
  param: {
13055
13056
  id: string;
@@ -13061,10 +13062,10 @@ export declare function createRunsRoutes(deps: RunsRouteDeps): import("hono/hono
13061
13062
  "/runs/:id": {
13062
13063
  $delete: {
13063
13064
  output: {
13064
- error: string;
13065
+ deleted: true;
13065
13066
  };
13066
13067
  outputFormat: "json";
13067
- status: 404 | 409;
13068
+ status: import("hono/utils/http-status").ContentfulStatusCode;
13068
13069
  input: {
13069
13070
  param: {
13070
13071
  id: string;
@@ -13072,10 +13073,10 @@ export declare function createRunsRoutes(deps: RunsRouteDeps): import("hono/hono
13072
13073
  };
13073
13074
  } | {
13074
13075
  output: {
13075
- deleted: true;
13076
+ error: string;
13076
13077
  };
13077
13078
  outputFormat: "json";
13078
- status: import("hono/utils/http-status").ContentfulStatusCode;
13079
+ status: 404 | 409;
13079
13080
  input: {
13080
13081
  param: {
13081
13082
  id: string;