@hearsay-tools/squawk 0.18.0-pr4335.8428 → 0.18.0-pr4337.8439

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 (149) hide show
  1. package/dist/automations/tools.d.ts +8 -8
  2. package/dist/autosave-cleanup.js +2 -1
  3. package/dist/autosave-cleanup.js.map +1 -1
  4. package/dist/boot.d.ts +5 -1
  5. package/dist/boot.js +5 -2
  6. package/dist/boot.js.map +1 -1
  7. package/dist/built-in-cli-commands.js +0 -4
  8. package/dist/built-in-cli-commands.js.map +1 -1
  9. package/dist/built-in-launch-parts.d.ts +0 -2
  10. package/dist/built-in-launch-parts.js +1 -8
  11. package/dist/built-in-launch-parts.js.map +1 -1
  12. package/dist/built-in-run-slots.js +1 -2
  13. package/dist/built-in-run-slots.js.map +1 -1
  14. package/dist/ci-wait/controller.d.ts +7 -7
  15. package/dist/ci-wait/tool-catalog.d.ts +2 -1
  16. package/dist/ci-wait/tool-catalog.js +22 -16
  17. package/dist/ci-wait/tool-catalog.js.map +1 -1
  18. package/dist/cli-dispatch.d.ts +1 -1
  19. package/dist/cli-dispatch.js +24 -16
  20. package/dist/cli-dispatch.js.map +1 -1
  21. package/dist/core/cli-registry.d.ts +3 -0
  22. package/dist/core/cli-registry.js +3 -0
  23. package/dist/core/cli-registry.js.map +1 -1
  24. package/dist/core/managed-session.d.ts +0 -5
  25. package/dist/core/managed-session.js +0 -25
  26. package/dist/core/managed-session.js.map +1 -1
  27. package/dist/core/process-ownership.d.ts +12 -0
  28. package/dist/core/process-ownership.js +33 -0
  29. package/dist/core/process-ownership.js.map +1 -0
  30. package/dist/delegation/process-liveness.d.ts +6 -3
  31. package/dist/delegation/process-liveness.js +0 -16
  32. package/dist/delegation/process-liveness.js.map +1 -1
  33. package/dist/delegation/scratch-cleanup.js +5 -5
  34. package/dist/delegation/scratch-cleanup.js.map +1 -1
  35. package/dist/delegation/transport.d.ts +10 -10
  36. package/dist/{jobs → features/jobs}/cli.js +1 -1
  37. package/dist/features/jobs/cli.js.map +1 -0
  38. package/dist/{jobs → features/jobs}/command.js +2 -2
  39. package/dist/features/jobs/command.js.map +1 -0
  40. package/dist/features/jobs/index.d.ts +11 -0
  41. package/dist/features/jobs/index.js +20 -0
  42. package/dist/features/jobs/index.js.map +1 -0
  43. package/dist/{jobs → features/jobs}/job.js +9 -10
  44. package/dist/features/jobs/job.js.map +1 -0
  45. package/dist/features/jobs/removal-slot.d.ts +14 -0
  46. package/dist/features/jobs/removal-slot.js +50 -0
  47. package/dist/features/jobs/removal-slot.js.map +1 -0
  48. package/dist/index.js +1 -1
  49. package/dist/index.js.map +1 -1
  50. package/dist/legacy-runs.js.map +1 -1
  51. package/dist/pack-check.d.ts +4 -1
  52. package/dist/pack-check.js +9 -1
  53. package/dist/pack-check.js.map +1 -1
  54. package/dist/plugin/bundled-features.d.ts +11 -0
  55. package/dist/plugin/bundled-features.js +37 -0
  56. package/dist/plugin/bundled-features.js.map +1 -0
  57. package/dist/plugin/cli.js +1 -1
  58. package/dist/plugin/index.d.ts +1 -1
  59. package/dist/plugin/loader.d.ts +2 -0
  60. package/dist/plugin/loader.js +23 -11
  61. package/dist/plugin/loader.js.map +1 -1
  62. package/dist/runners/antigravity/acp/events.d.ts +3 -5
  63. package/dist/runners/antigravity/acp/events.js +8 -11
  64. package/dist/runners/antigravity/acp/events.js.map +1 -1
  65. package/dist/runs/agent-tmpdir.d.ts +5 -4
  66. package/dist/runs/agent-tmpdir.js +7 -5
  67. package/dist/runs/agent-tmpdir.js.map +1 -1
  68. package/dist/runs/removal-slots.d.ts +15 -3
  69. package/dist/runs/removal-slots.js +12 -2
  70. package/dist/runs/removal-slots.js.map +1 -1
  71. package/dist/runs/run-exits.d.ts +352 -352
  72. package/dist/runs/worker-execution.js.map +1 -1
  73. package/dist/server/automations-routes.d.ts +150 -150
  74. package/dist/server/project-settings-routes.d.ts +107 -107
  75. package/dist/server/provider-sign-in-routes.d.ts +2 -2
  76. package/dist/server/repo-routes.d.ts +13 -13
  77. package/dist/server/runner-install-routes.d.ts +10 -10
  78. package/dist/server/runs-routes.d.ts +957 -957
  79. package/dist/server/server.d.ts +58 -58
  80. package/dist/server/workspace-live-routes.d.ts +6 -6
  81. package/dist/worker-scope/groups.d.ts +0 -9
  82. package/dist/worker-scope/groups.js +3 -18
  83. package/dist/worker-scope/groups.js.map +1 -1
  84. package/dist/workflows/input-acknowledgement.d.ts +24 -24
  85. package/dist/workflows/run/run-settlement.d.ts +0 -10
  86. package/dist/workflows/run/run-settlement.js +5 -38
  87. package/dist/workflows/run/run-settlement.js.map +1 -1
  88. package/dist/workflows/run/session-events.js +0 -16
  89. package/dist/workflows/run/session-events.js.map +1 -1
  90. package/dist/workflows/run/wait-engine.d.ts +72 -72
  91. package/dist/workflows/run/wait-input-descriptors.js +11 -2
  92. package/dist/workflows/run/wait-input-descriptors.js.map +1 -1
  93. package/dist/workflows/run/wait-kinds.d.ts +52 -52
  94. package/package.json +4 -4
  95. package/scripts/check-pack.mjs +5 -2
  96. package/scripts/measure-transcript-facts-health.mjs +41 -4
  97. package/scripts/measure-transcript-facts-lag.mjs +3 -3
  98. package/scripts/transcript-facts-timing.mjs +133 -9
  99. package/web/dist/assets/{accounts-section-DmCfsIhE.js → accounts-section-DPb768q9.js} +1 -1
  100. package/web/dist/assets/{activity-motion-Dl9i8LMp.js → activity-motion-D3CzGjrR.js} +1 -1
  101. package/web/dist/assets/{activity-route-Cu2YIdei.js → activity-route-DFJlsU13.js} +1 -1
  102. package/web/dist/assets/{agent-config-section-Bzm4-R__.js → agent-config-section-2esq_SCK.js} +1 -1
  103. package/web/dist/assets/{agent-defaults-section-BKqo164A.js → agent-defaults-section-DykQGFoV.js} +1 -1
  104. package/web/dist/assets/{appearance-BqzgpB-Y.js → appearance-CEhpCQZS.js} +1 -1
  105. package/web/dist/assets/{automations-route-CUgWc2Qw.js → automations-route-C6e7440u.js} +1 -1
  106. package/web/dist/assets/{commit-diff-panel-Cm558uOv.js → commit-diff-panel-CloSSaTz.js} +1 -1
  107. package/web/dist/assets/{diff-GEuSlT_R.js → diff-DVDzDVOV.js} +2 -2
  108. package/web/dist/assets/{diff-view-DLSixc9l.js → diff-view-isM51Pgu.js} +1 -1
  109. package/web/dist/assets/{file-preview-RPc0KAo_.js → file-preview-BZA9e981.js} +1 -1
  110. package/web/dist/assets/{git-toolbar-Dd_SYvD0.js → git-toolbar-DHAavjba.js} +1 -1
  111. package/web/dist/assets/{github-CQ7IuYHM.js → github-MN8flcF0.js} +1 -1
  112. package/web/dist/assets/{global-activity-route-BxZ0CMwG.js → global-activity-route-CAXyZ8LF.js} +1 -1
  113. package/web/dist/assets/{index-BRgRv29I.js → index-CHIFhfha.js} +4 -4
  114. package/web/dist/assets/{markdown-CIm2Q7mB.js → markdown-DhdLkyGx.js} +3 -3
  115. package/web/dist/assets/{notifications-section-Cw8yBZWz.js → notifications-section-Yiyd4TEk.js} +1 -1
  116. package/web/dist/assets/{preview-pane-connected-C3DmH_yh.js → preview-pane-connected-BnNucXbg.js} +1 -1
  117. package/web/dist/assets/{projects-section-DftkCQ4q.js → projects-section-CYnMlFyZ.js} +1 -1
  118. package/web/dist/assets/{prompt-templates-section-CKSYhpin.js → prompt-templates-section-BaaI89Ej.js} +1 -1
  119. package/web/dist/assets/{remote-settings-notice-C727a84A.js → remote-settings-notice-Drbpb7K4.js} +1 -1
  120. package/web/dist/assets/{repo-git-CfmNmHkb.js → repo-git-UR__WAGI.js} +1 -1
  121. package/web/dist/assets/{report-reader-wIj2Yog1.js → report-reader-DydKaDxP.js} +1 -1
  122. package/web/dist/assets/{reports-DSkGAItT.js → reports-FE9fPBLK.js} +1 -1
  123. package/web/dist/assets/{resources-section-DaEv2dar.js → resources-section-BAz7yc3V.js} +1 -1
  124. package/web/dist/assets/{run-header-CVZ0ZK7C.js → run-header-DsyPfNlS.js} +1 -1
  125. package/web/dist/assets/{settings-agent-picker-DMVlOQzv.js → settings-agent-picker-i4wCYEex.js} +1 -1
  126. package/web/dist/assets/{settings-shell-DfnGZk9I.js → settings-shell-C1RbQ--s.js} +1 -1
  127. package/web/dist/assets/{sidebar-section-DYJZAqtU.js → sidebar-section-CdvgsziI.js} +1 -1
  128. package/web/dist/assets/{skills-CfzNcHh1.js → skills-Cx1c72fB.js} +1 -1
  129. package/web/dist/assets/{task-changes-C1I9CMew.js → task-changes-CJCU26Rn.js} +1 -1
  130. package/web/dist/assets/{task-commits-d_R4H7pu.js → task-commits-BvDHw2z3.js} +1 -1
  131. package/web/dist/assets/{task-files-B2JBO9Dx.js → task-files-BtEb73_A.js} +1 -1
  132. package/web/dist/assets/{task-github-item-C9HMDHKn.js → task-github-item-DguvLtyn.js} +1 -1
  133. package/web/dist/assets/{task-thread-dKvX9xg6.js → task-thread-DiiErUqw.js} +9 -9
  134. package/web/dist/assets/thread-state-XrQOGOYN.js +4 -0
  135. package/web/dist/assets/{use-hand-to-agent-state-DzHDdmHn.js → use-hand-to-agent-state-CDqXR3F2.js} +1 -1
  136. package/web/dist/assets/{workflows-DqArthZn.js → workflows-C8Wu6BrK.js} +1 -1
  137. package/web/dist/assets/{workspace-tools-S5KvgCRm.js → workspace-tools-DG99Pw_m.js} +1 -1
  138. package/web/dist/assets/{worktrees-section-DNFnQfiW.js → worktrees-section-BtDBsA-d.js} +1 -1
  139. package/web/dist/index.html +1 -1
  140. package/dist/jobs/cli.js.map +0 -1
  141. package/dist/jobs/command.js.map +0 -1
  142. package/dist/jobs/job.js.map +0 -1
  143. package/dist/jobs/removal-slot.d.ts +0 -4
  144. package/dist/jobs/removal-slot.js +0 -10
  145. package/dist/jobs/removal-slot.js.map +0 -1
  146. package/web/dist/assets/thread-state-B3HGSNEy.js +0 -4
  147. /package/dist/{jobs → features/jobs}/cli.d.ts +0 -0
  148. /package/dist/{jobs → features/jobs}/command.d.ts +0 -0
  149. /package/dist/{jobs → features/jobs}/job.d.ts +0 -0
@@ -418,30 +418,6 @@ export declare function createRunsRoutes(deps: RunsRouteDeps): import("hono/hono
418
418
  deadline: string;
419
419
  seconds: number;
420
420
  note?: string | undefined;
421
- } | {
422
- id: string;
423
- source: "agent" | "cezar";
424
- 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";
425
- registeredAt: string;
426
- phase: "cancelled" | "delivered" | "open" | "resolved";
427
- resolvedAt?: string | undefined;
428
- deliveredAt?: string | undefined;
429
- cancelledAt?: string | undefined;
430
- turnId: string;
431
- kind: "process";
432
- deadline: string;
433
- timeoutSeconds: number;
434
- pid: number;
435
- startToken?: string | undefined;
436
- exitFile?: string | undefined;
437
- note?: string | undefined;
438
- result?: {
439
- outcome: "deadline" | "error" | "exit_file" | "exited";
440
- observedAt: string;
441
- exitCode?: number | undefined;
442
- exitFileNote?: "not-an-exit-code" | undefined;
443
- diagnostic?: string | undefined;
444
- } | undefined;
445
421
  } | {
446
422
  id: string;
447
423
  source: "agent" | "cezar";
@@ -503,6 +479,30 @@ export declare function createRunsRoutes(deps: RunsRouteDeps): import("hono/hono
503
479
  reason: "outcome" | "timeout";
504
480
  } | undefined;
505
481
  wakeInputId?: string | undefined;
482
+ } | {
483
+ id: string;
484
+ source: "agent" | "cezar";
485
+ 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";
486
+ registeredAt: string;
487
+ phase: "cancelled" | "delivered" | "open" | "resolved";
488
+ resolvedAt?: string | undefined;
489
+ deliveredAt?: string | undefined;
490
+ cancelledAt?: string | undefined;
491
+ turnId: string;
492
+ kind: "process";
493
+ deadline: string;
494
+ timeoutSeconds: number;
495
+ pid: number;
496
+ startToken?: string | undefined;
497
+ exitFile?: string | undefined;
498
+ note?: string | undefined;
499
+ result?: {
500
+ outcome: "deadline" | "error" | "exit_file" | "exited";
501
+ observedAt: string;
502
+ exitCode?: number | undefined;
503
+ exitFileNote?: "not-an-exit-code" | undefined;
504
+ diagnostic?: string | undefined;
505
+ } | undefined;
506
506
  } | {
507
507
  id: string;
508
508
  source: "agent" | "cezar";
@@ -634,30 +634,6 @@ export declare function createRunsRoutes(deps: RunsRouteDeps): import("hono/hono
634
634
  deadline: string;
635
635
  seconds: number;
636
636
  note?: string | undefined;
637
- } | {
638
- id: string;
639
- source: "agent" | "cezar";
640
- 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";
641
- registeredAt: string;
642
- phase: "cancelled" | "delivered" | "open" | "resolved";
643
- resolvedAt?: string | undefined;
644
- deliveredAt?: string | undefined;
645
- cancelledAt?: string | undefined;
646
- turnId: string;
647
- kind: "process";
648
- deadline: string;
649
- timeoutSeconds: number;
650
- pid: number;
651
- startToken?: string | undefined;
652
- exitFile?: string | undefined;
653
- note?: string | undefined;
654
- result?: {
655
- outcome: "deadline" | "error" | "exit_file" | "exited";
656
- observedAt: string;
657
- exitCode?: number | undefined;
658
- exitFileNote?: "not-an-exit-code" | undefined;
659
- diagnostic?: string | undefined;
660
- } | undefined;
661
637
  } | {
662
638
  id: string;
663
639
  source: "agent" | "cezar";
@@ -719,6 +695,30 @@ export declare function createRunsRoutes(deps: RunsRouteDeps): import("hono/hono
719
695
  reason: "outcome" | "timeout";
720
696
  } | undefined;
721
697
  wakeInputId?: string | undefined;
698
+ } | {
699
+ id: string;
700
+ source: "agent" | "cezar";
701
+ 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";
702
+ registeredAt: string;
703
+ phase: "cancelled" | "delivered" | "open" | "resolved";
704
+ resolvedAt?: string | undefined;
705
+ deliveredAt?: string | undefined;
706
+ cancelledAt?: string | undefined;
707
+ turnId: string;
708
+ kind: "process";
709
+ deadline: string;
710
+ timeoutSeconds: number;
711
+ pid: number;
712
+ startToken?: string | undefined;
713
+ exitFile?: string | undefined;
714
+ note?: string | undefined;
715
+ result?: {
716
+ outcome: "deadline" | "error" | "exit_file" | "exited";
717
+ observedAt: string;
718
+ exitCode?: number | undefined;
719
+ exitFileNote?: "not-an-exit-code" | undefined;
720
+ diagnostic?: string | undefined;
721
+ } | undefined;
722
722
  } | {
723
723
  id: string;
724
724
  source: "agent" | "cezar";
@@ -849,30 +849,6 @@ export declare function createRunsRoutes(deps: RunsRouteDeps): import("hono/hono
849
849
  deadline: string;
850
850
  seconds: number;
851
851
  note?: string | undefined;
852
- } | {
853
- id: string;
854
- source: "agent" | "cezar";
855
- 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";
856
- registeredAt: string;
857
- phase: "cancelled" | "delivered" | "open" | "resolved";
858
- resolvedAt?: string | undefined;
859
- deliveredAt?: string | undefined;
860
- cancelledAt?: string | undefined;
861
- turnId: string;
862
- kind: "process";
863
- deadline: string;
864
- timeoutSeconds: number;
865
- pid: number;
866
- startToken?: string | undefined;
867
- exitFile?: string | undefined;
868
- note?: string | undefined;
869
- result?: {
870
- outcome: "deadline" | "error" | "exit_file" | "exited";
871
- observedAt: string;
872
- exitCode?: number | undefined;
873
- exitFileNote?: "not-an-exit-code" | undefined;
874
- diagnostic?: string | undefined;
875
- } | undefined;
876
852
  } | {
877
853
  id: string;
878
854
  source: "agent" | "cezar";
@@ -934,6 +910,30 @@ export declare function createRunsRoutes(deps: RunsRouteDeps): import("hono/hono
934
910
  reason: "outcome" | "timeout";
935
911
  } | undefined;
936
912
  wakeInputId?: string | undefined;
913
+ } | {
914
+ id: string;
915
+ source: "agent" | "cezar";
916
+ 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";
917
+ registeredAt: string;
918
+ phase: "cancelled" | "delivered" | "open" | "resolved";
919
+ resolvedAt?: string | undefined;
920
+ deliveredAt?: string | undefined;
921
+ cancelledAt?: string | undefined;
922
+ turnId: string;
923
+ kind: "process";
924
+ deadline: string;
925
+ timeoutSeconds: number;
926
+ pid: number;
927
+ startToken?: string | undefined;
928
+ exitFile?: string | undefined;
929
+ note?: string | undefined;
930
+ result?: {
931
+ outcome: "deadline" | "error" | "exit_file" | "exited";
932
+ observedAt: string;
933
+ exitCode?: number | undefined;
934
+ exitFileNote?: "not-an-exit-code" | undefined;
935
+ diagnostic?: string | undefined;
936
+ } | undefined;
937
937
  } | {
938
938
  id: string;
939
939
  source: "agent" | "cezar";
@@ -1209,6 +1209,18 @@ export declare function createRunsRoutes(deps: RunsRouteDeps): import("hono/hono
1209
1209
  } & {
1210
1210
  "/run-summaries": {
1211
1211
  $get: {
1212
+ output: {
1213
+ error: string;
1214
+ code?: "invalid_input" | undefined;
1215
+ };
1216
+ outputFormat: "json";
1217
+ status: 400;
1218
+ input: {
1219
+ query: {
1220
+ archived?: "all" | "recent" | undefined;
1221
+ };
1222
+ };
1223
+ } | {
1212
1224
  output: {
1213
1225
  id: string;
1214
1226
  title: string;
@@ -1342,18 +1354,6 @@ export declare function createRunsRoutes(deps: RunsRouteDeps): import("hono/hono
1342
1354
  archived?: "all" | "recent" | undefined;
1343
1355
  };
1344
1356
  };
1345
- } | {
1346
- output: {
1347
- error: string;
1348
- code?: "invalid_input" | undefined;
1349
- };
1350
- outputFormat: "json";
1351
- status: 400;
1352
- input: {
1353
- query: {
1354
- archived?: "all" | "recent" | undefined;
1355
- };
1356
- };
1357
1357
  };
1358
1358
  };
1359
1359
  } & {
@@ -1711,11 +1711,24 @@ export declare function createRunsRoutes(deps: RunsRouteDeps): import("hono/hono
1711
1711
  "/runs/:id/worker-destroy": {
1712
1712
  $post: {
1713
1713
  output: {
1714
- error: string;
1715
- code?: "invalid_input" | undefined;
1714
+ workerId: string;
1715
+ state: "complete" | "incomplete";
1716
+ work?: {
1717
+ uncommittedFiles: number;
1718
+ commits: number;
1719
+ } | undefined;
1720
+ deleted?: ({
1721
+ kind: "worktree";
1722
+ path: string;
1723
+ } | {
1724
+ kind: "branch";
1725
+ ref: string;
1726
+ })[] | undefined;
1727
+ remaining: ("branch" | "process" | "worktree")[];
1728
+ error?: string | undefined;
1716
1729
  };
1717
1730
  outputFormat: "json";
1718
- status: 400;
1731
+ status: 200;
1719
1732
  input: {
1720
1733
  query: {
1721
1734
  [x: string]: string | string[];
@@ -1731,22 +1744,11 @@ export declare function createRunsRoutes(deps: RunsRouteDeps): import("hono/hono
1731
1744
  };
1732
1745
  } | {
1733
1746
  output: {
1734
- readonly code: "capacity_limit" | "denied_scope" | "incompatible_state" | "incomplete_cleanup" | "invalid_baseline" | "invalid_input" | "unauthenticated" | "unavailable_diff" | "unavailable_transport";
1735
- readonly error: string;
1736
- readonly modelChoices?: {
1737
- runner: string;
1738
- requestedModel: string;
1739
- availableModels: {
1740
- id: string;
1741
- label: string;
1742
- description: string;
1743
- effortLevels?: ("high" | "low" | "max" | "medium" | "xhigh")[] | undefined;
1744
- }[];
1745
- otherRunners: string[];
1746
- } | undefined;
1747
+ error: string;
1748
+ code?: "invalid_input" | undefined;
1747
1749
  };
1748
1750
  outputFormat: "json";
1749
- status: 400 | 401 | 403 | 409 | 503;
1751
+ status: 400;
1750
1752
  input: {
1751
1753
  query: {
1752
1754
  [x: string]: string | string[];
@@ -1779,7 +1781,7 @@ export declare function createRunsRoutes(deps: RunsRouteDeps): import("hono/hono
1779
1781
  error?: string | undefined;
1780
1782
  };
1781
1783
  outputFormat: "json";
1782
- status: 200;
1784
+ status: 409;
1783
1785
  input: {
1784
1786
  query: {
1785
1787
  [x: string]: string | string[];
@@ -1795,24 +1797,22 @@ export declare function createRunsRoutes(deps: RunsRouteDeps): import("hono/hono
1795
1797
  };
1796
1798
  } | {
1797
1799
  output: {
1798
- workerId: string;
1799
- state: "complete" | "incomplete";
1800
- work?: {
1801
- uncommittedFiles: number;
1802
- commits: number;
1800
+ readonly code: "capacity_limit" | "denied_scope" | "incompatible_state" | "incomplete_cleanup" | "invalid_baseline" | "invalid_input" | "unauthenticated" | "unavailable_diff" | "unavailable_transport";
1801
+ readonly error: string;
1802
+ readonly modelChoices?: {
1803
+ runner: string;
1804
+ requestedModel: string;
1805
+ availableModels: {
1806
+ id: string;
1807
+ label: string;
1808
+ description: string;
1809
+ effortLevels?: ("high" | "low" | "max" | "medium" | "xhigh")[] | undefined;
1810
+ }[];
1811
+ otherRunners: string[];
1803
1812
  } | undefined;
1804
- deleted?: ({
1805
- kind: "worktree";
1806
- path: string;
1807
- } | {
1808
- kind: "branch";
1809
- ref: string;
1810
- })[] | undefined;
1811
- remaining: ("branch" | "process" | "worktree")[];
1812
- error?: string | undefined;
1813
1813
  };
1814
1814
  outputFormat: "json";
1815
- status: 409;
1815
+ status: 400 | 401 | 403 | 409 | 503;
1816
1816
  input: {
1817
1817
  query: {
1818
1818
  [x: string]: string | string[];
@@ -1864,6 +1864,21 @@ export declare function createRunsRoutes(deps: RunsRouteDeps): import("hono/hono
1864
1864
  } & {
1865
1865
  "/runs/:id/archive": {
1866
1866
  $post: {
1867
+ output: {
1868
+ error: string;
1869
+ };
1870
+ outputFormat: "json";
1871
+ status: 404;
1872
+ input: {
1873
+ json: {
1874
+ archived?: boolean | undefined;
1875
+ };
1876
+ } & {
1877
+ param: {
1878
+ id: string;
1879
+ };
1880
+ };
1881
+ } | {
1867
1882
  output: {
1868
1883
  archiveWhenDone?: boolean | undefined;
1869
1884
  autoMergePr?: boolean | undefined;
@@ -2253,30 +2268,6 @@ export declare function createRunsRoutes(deps: RunsRouteDeps): import("hono/hono
2253
2268
  deadline: string;
2254
2269
  seconds: number;
2255
2270
  note?: string | undefined;
2256
- } | {
2257
- id: string;
2258
- source: "agent" | "cezar";
2259
- 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";
2260
- registeredAt: string;
2261
- phase: "cancelled" | "delivered" | "open" | "resolved";
2262
- resolvedAt?: string | undefined;
2263
- deliveredAt?: string | undefined;
2264
- cancelledAt?: string | undefined;
2265
- turnId: string;
2266
- kind: "process";
2267
- deadline: string;
2268
- timeoutSeconds: number;
2269
- pid: number;
2270
- startToken?: string | undefined;
2271
- exitFile?: string | undefined;
2272
- note?: string | undefined;
2273
- result?: {
2274
- outcome: "deadline" | "error" | "exit_file" | "exited";
2275
- observedAt: string;
2276
- exitCode?: number | undefined;
2277
- exitFileNote?: "not-an-exit-code" | undefined;
2278
- diagnostic?: string | undefined;
2279
- } | undefined;
2280
2271
  } | {
2281
2272
  id: string;
2282
2273
  source: "agent" | "cezar";
@@ -2338,6 +2329,30 @@ export declare function createRunsRoutes(deps: RunsRouteDeps): import("hono/hono
2338
2329
  reason: "outcome" | "timeout";
2339
2330
  } | undefined;
2340
2331
  wakeInputId?: string | undefined;
2332
+ } | {
2333
+ id: string;
2334
+ source: "agent" | "cezar";
2335
+ 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";
2336
+ registeredAt: string;
2337
+ phase: "cancelled" | "delivered" | "open" | "resolved";
2338
+ resolvedAt?: string | undefined;
2339
+ deliveredAt?: string | undefined;
2340
+ cancelledAt?: string | undefined;
2341
+ turnId: string;
2342
+ kind: "process";
2343
+ deadline: string;
2344
+ timeoutSeconds: number;
2345
+ pid: number;
2346
+ startToken?: string | undefined;
2347
+ exitFile?: string | undefined;
2348
+ note?: string | undefined;
2349
+ result?: {
2350
+ outcome: "deadline" | "error" | "exit_file" | "exited";
2351
+ observedAt: string;
2352
+ exitCode?: number | undefined;
2353
+ exitFileNote?: "not-an-exit-code" | undefined;
2354
+ diagnostic?: string | undefined;
2355
+ } | undefined;
2341
2356
  } | {
2342
2357
  id: string;
2343
2358
  source: "agent" | "cezar";
@@ -2469,30 +2484,6 @@ export declare function createRunsRoutes(deps: RunsRouteDeps): import("hono/hono
2469
2484
  deadline: string;
2470
2485
  seconds: number;
2471
2486
  note?: string | undefined;
2472
- } | {
2473
- id: string;
2474
- source: "agent" | "cezar";
2475
- 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";
2476
- registeredAt: string;
2477
- phase: "cancelled" | "delivered" | "open" | "resolved";
2478
- resolvedAt?: string | undefined;
2479
- deliveredAt?: string | undefined;
2480
- cancelledAt?: string | undefined;
2481
- turnId: string;
2482
- kind: "process";
2483
- deadline: string;
2484
- timeoutSeconds: number;
2485
- pid: number;
2486
- startToken?: string | undefined;
2487
- exitFile?: string | undefined;
2488
- note?: string | undefined;
2489
- result?: {
2490
- outcome: "deadline" | "error" | "exit_file" | "exited";
2491
- observedAt: string;
2492
- exitCode?: number | undefined;
2493
- exitFileNote?: "not-an-exit-code" | undefined;
2494
- diagnostic?: string | undefined;
2495
- } | undefined;
2496
2487
  } | {
2497
2488
  id: string;
2498
2489
  source: "agent" | "cezar";
@@ -2554,6 +2545,30 @@ export declare function createRunsRoutes(deps: RunsRouteDeps): import("hono/hono
2554
2545
  reason: "outcome" | "timeout";
2555
2546
  } | undefined;
2556
2547
  wakeInputId?: string | undefined;
2548
+ } | {
2549
+ id: string;
2550
+ source: "agent" | "cezar";
2551
+ 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";
2552
+ registeredAt: string;
2553
+ phase: "cancelled" | "delivered" | "open" | "resolved";
2554
+ resolvedAt?: string | undefined;
2555
+ deliveredAt?: string | undefined;
2556
+ cancelledAt?: string | undefined;
2557
+ turnId: string;
2558
+ kind: "process";
2559
+ deadline: string;
2560
+ timeoutSeconds: number;
2561
+ pid: number;
2562
+ startToken?: string | undefined;
2563
+ exitFile?: string | undefined;
2564
+ note?: string | undefined;
2565
+ result?: {
2566
+ outcome: "deadline" | "error" | "exit_file" | "exited";
2567
+ observedAt: string;
2568
+ exitCode?: number | undefined;
2569
+ exitFileNote?: "not-an-exit-code" | undefined;
2570
+ diagnostic?: string | undefined;
2571
+ } | undefined;
2557
2572
  } | {
2558
2573
  id: string;
2559
2574
  source: "agent" | "cezar";
@@ -2684,30 +2699,6 @@ export declare function createRunsRoutes(deps: RunsRouteDeps): import("hono/hono
2684
2699
  deadline: string;
2685
2700
  seconds: number;
2686
2701
  note?: string | undefined;
2687
- } | {
2688
- id: string;
2689
- source: "agent" | "cezar";
2690
- 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";
2691
- registeredAt: string;
2692
- phase: "cancelled" | "delivered" | "open" | "resolved";
2693
- resolvedAt?: string | undefined;
2694
- deliveredAt?: string | undefined;
2695
- cancelledAt?: string | undefined;
2696
- turnId: string;
2697
- kind: "process";
2698
- deadline: string;
2699
- timeoutSeconds: number;
2700
- pid: number;
2701
- startToken?: string | undefined;
2702
- exitFile?: string | undefined;
2703
- note?: string | undefined;
2704
- result?: {
2705
- outcome: "deadline" | "error" | "exit_file" | "exited";
2706
- observedAt: string;
2707
- exitCode?: number | undefined;
2708
- exitFileNote?: "not-an-exit-code" | undefined;
2709
- diagnostic?: string | undefined;
2710
- } | undefined;
2711
2702
  } | {
2712
2703
  id: string;
2713
2704
  source: "agent" | "cezar";
@@ -2769,6 +2760,30 @@ export declare function createRunsRoutes(deps: RunsRouteDeps): import("hono/hono
2769
2760
  reason: "outcome" | "timeout";
2770
2761
  } | undefined;
2771
2762
  wakeInputId?: string | undefined;
2763
+ } | {
2764
+ id: string;
2765
+ source: "agent" | "cezar";
2766
+ 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";
2767
+ registeredAt: string;
2768
+ phase: "cancelled" | "delivered" | "open" | "resolved";
2769
+ resolvedAt?: string | undefined;
2770
+ deliveredAt?: string | undefined;
2771
+ cancelledAt?: string | undefined;
2772
+ turnId: string;
2773
+ kind: "process";
2774
+ deadline: string;
2775
+ timeoutSeconds: number;
2776
+ pid: number;
2777
+ startToken?: string | undefined;
2778
+ exitFile?: string | undefined;
2779
+ note?: string | undefined;
2780
+ result?: {
2781
+ outcome: "deadline" | "error" | "exit_file" | "exited";
2782
+ observedAt: string;
2783
+ exitCode?: number | undefined;
2784
+ exitFileNote?: "not-an-exit-code" | undefined;
2785
+ diagnostic?: string | undefined;
2786
+ } | undefined;
2772
2787
  } | {
2773
2788
  id: string;
2774
2789
  source: "agent" | "cezar";
@@ -3039,32 +3054,32 @@ export declare function createRunsRoutes(deps: RunsRouteDeps): import("hono/hono
3039
3054
  id: string;
3040
3055
  };
3041
3056
  };
3042
- } | {
3057
+ };
3058
+ };
3059
+ } & {
3060
+ "/runs/:id/pin": {
3061
+ $post: {
3043
3062
  output: {
3044
3063
  error: string;
3064
+ code?: "invalid_input" | undefined;
3045
3065
  };
3046
3066
  outputFormat: "json";
3047
- status: 404;
3067
+ status: 400;
3048
3068
  input: {
3049
- json: {
3050
- archived?: boolean | undefined;
3051
- };
3052
- } & {
3053
3069
  param: {
3054
3070
  id: string;
3055
3071
  };
3072
+ } & {
3073
+ json: {
3074
+ pinned?: boolean | undefined;
3075
+ };
3056
3076
  };
3057
- };
3058
- };
3059
- } & {
3060
- "/runs/:id/pin": {
3061
- $post: {
3077
+ } | {
3062
3078
  output: {
3063
3079
  error: string;
3064
- code?: "invalid_input" | undefined;
3065
3080
  };
3066
3081
  outputFormat: "json";
3067
- status: 400;
3082
+ status: 404;
3068
3083
  input: {
3069
3084
  param: {
3070
3085
  id: string;
@@ -3464,30 +3479,6 @@ export declare function createRunsRoutes(deps: RunsRouteDeps): import("hono/hono
3464
3479
  deadline: string;
3465
3480
  seconds: number;
3466
3481
  note?: string | undefined;
3467
- } | {
3468
- id: string;
3469
- source: "agent" | "cezar";
3470
- 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";
3471
- registeredAt: string;
3472
- phase: "cancelled" | "delivered" | "open" | "resolved";
3473
- resolvedAt?: string | undefined;
3474
- deliveredAt?: string | undefined;
3475
- cancelledAt?: string | undefined;
3476
- turnId: string;
3477
- kind: "process";
3478
- deadline: string;
3479
- timeoutSeconds: number;
3480
- pid: number;
3481
- startToken?: string | undefined;
3482
- exitFile?: string | undefined;
3483
- note?: string | undefined;
3484
- result?: {
3485
- outcome: "deadline" | "error" | "exit_file" | "exited";
3486
- observedAt: string;
3487
- exitCode?: number | undefined;
3488
- exitFileNote?: "not-an-exit-code" | undefined;
3489
- diagnostic?: string | undefined;
3490
- } | undefined;
3491
3482
  } | {
3492
3483
  id: string;
3493
3484
  source: "agent" | "cezar";
@@ -3549,6 +3540,30 @@ export declare function createRunsRoutes(deps: RunsRouteDeps): import("hono/hono
3549
3540
  reason: "outcome" | "timeout";
3550
3541
  } | undefined;
3551
3542
  wakeInputId?: string | undefined;
3543
+ } | {
3544
+ id: string;
3545
+ source: "agent" | "cezar";
3546
+ 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";
3547
+ registeredAt: string;
3548
+ phase: "cancelled" | "delivered" | "open" | "resolved";
3549
+ resolvedAt?: string | undefined;
3550
+ deliveredAt?: string | undefined;
3551
+ cancelledAt?: string | undefined;
3552
+ turnId: string;
3553
+ kind: "process";
3554
+ deadline: string;
3555
+ timeoutSeconds: number;
3556
+ pid: number;
3557
+ startToken?: string | undefined;
3558
+ exitFile?: string | undefined;
3559
+ note?: string | undefined;
3560
+ result?: {
3561
+ outcome: "deadline" | "error" | "exit_file" | "exited";
3562
+ observedAt: string;
3563
+ exitCode?: number | undefined;
3564
+ exitFileNote?: "not-an-exit-code" | undefined;
3565
+ diagnostic?: string | undefined;
3566
+ } | undefined;
3552
3567
  } | {
3553
3568
  id: string;
3554
3569
  source: "agent" | "cezar";
@@ -3680,30 +3695,6 @@ export declare function createRunsRoutes(deps: RunsRouteDeps): import("hono/hono
3680
3695
  deadline: string;
3681
3696
  seconds: number;
3682
3697
  note?: string | undefined;
3683
- } | {
3684
- id: string;
3685
- source: "agent" | "cezar";
3686
- 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";
3687
- registeredAt: string;
3688
- phase: "cancelled" | "delivered" | "open" | "resolved";
3689
- resolvedAt?: string | undefined;
3690
- deliveredAt?: string | undefined;
3691
- cancelledAt?: string | undefined;
3692
- turnId: string;
3693
- kind: "process";
3694
- deadline: string;
3695
- timeoutSeconds: number;
3696
- pid: number;
3697
- startToken?: string | undefined;
3698
- exitFile?: string | undefined;
3699
- note?: string | undefined;
3700
- result?: {
3701
- outcome: "deadline" | "error" | "exit_file" | "exited";
3702
- observedAt: string;
3703
- exitCode?: number | undefined;
3704
- exitFileNote?: "not-an-exit-code" | undefined;
3705
- diagnostic?: string | undefined;
3706
- } | undefined;
3707
3698
  } | {
3708
3699
  id: string;
3709
3700
  source: "agent" | "cezar";
@@ -3775,23 +3766,47 @@ export declare function createRunsRoutes(deps: RunsRouteDeps): import("hono/hono
3775
3766
  deliveredAt?: string | undefined;
3776
3767
  cancelledAt?: string | undefined;
3777
3768
  turnId: string;
3778
- kind: "peer";
3769
+ kind: "process";
3779
3770
  deadline: string;
3780
3771
  timeoutSeconds: number;
3781
- peerIds: string[];
3772
+ pid: number;
3773
+ startToken?: string | undefined;
3774
+ exitFile?: string | undefined;
3775
+ note?: string | undefined;
3782
3776
  result?: {
3783
- reason: "message";
3784
- peerRunId: string;
3785
- messageId: string;
3786
- } | {
3787
- reason: "settled";
3788
- peerRunId: string;
3789
- } | {
3790
- reason: "timeout";
3777
+ outcome: "deadline" | "error" | "exit_file" | "exited";
3778
+ observedAt: string;
3779
+ exitCode?: number | undefined;
3780
+ exitFileNote?: "not-an-exit-code" | undefined;
3781
+ diagnostic?: string | undefined;
3791
3782
  } | undefined;
3792
3783
  } | {
3793
3784
  id: string;
3794
- registeredAt: string;
3785
+ source: "agent" | "cezar";
3786
+ 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";
3787
+ registeredAt: string;
3788
+ phase: "cancelled" | "delivered" | "open" | "resolved";
3789
+ resolvedAt?: string | undefined;
3790
+ deliveredAt?: string | undefined;
3791
+ cancelledAt?: string | undefined;
3792
+ turnId: string;
3793
+ kind: "peer";
3794
+ deadline: string;
3795
+ timeoutSeconds: number;
3796
+ peerIds: string[];
3797
+ result?: {
3798
+ reason: "message";
3799
+ peerRunId: string;
3800
+ messageId: string;
3801
+ } | {
3802
+ reason: "settled";
3803
+ peerRunId: string;
3804
+ } | {
3805
+ reason: "timeout";
3806
+ } | undefined;
3807
+ } | {
3808
+ id: string;
3809
+ registeredAt: string;
3795
3810
  phase: "cancelled" | "delivered" | "open" | "resolved";
3796
3811
  resolvedAt?: string | undefined;
3797
3812
  deliveredAt?: string | undefined;
@@ -3895,30 +3910,6 @@ export declare function createRunsRoutes(deps: RunsRouteDeps): import("hono/hono
3895
3910
  deadline: string;
3896
3911
  seconds: number;
3897
3912
  note?: string | undefined;
3898
- } | {
3899
- id: string;
3900
- source: "agent" | "cezar";
3901
- 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";
3902
- registeredAt: string;
3903
- phase: "cancelled" | "delivered" | "open" | "resolved";
3904
- resolvedAt?: string | undefined;
3905
- deliveredAt?: string | undefined;
3906
- cancelledAt?: string | undefined;
3907
- turnId: string;
3908
- kind: "process";
3909
- deadline: string;
3910
- timeoutSeconds: number;
3911
- pid: number;
3912
- startToken?: string | undefined;
3913
- exitFile?: string | undefined;
3914
- note?: string | undefined;
3915
- result?: {
3916
- outcome: "deadline" | "error" | "exit_file" | "exited";
3917
- observedAt: string;
3918
- exitCode?: number | undefined;
3919
- exitFileNote?: "not-an-exit-code" | undefined;
3920
- diagnostic?: string | undefined;
3921
- } | undefined;
3922
3913
  } | {
3923
3914
  id: string;
3924
3915
  source: "agent" | "cezar";
@@ -3980,6 +3971,30 @@ export declare function createRunsRoutes(deps: RunsRouteDeps): import("hono/hono
3980
3971
  reason: "outcome" | "timeout";
3981
3972
  } | undefined;
3982
3973
  wakeInputId?: string | undefined;
3974
+ } | {
3975
+ id: string;
3976
+ source: "agent" | "cezar";
3977
+ 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";
3978
+ registeredAt: string;
3979
+ phase: "cancelled" | "delivered" | "open" | "resolved";
3980
+ resolvedAt?: string | undefined;
3981
+ deliveredAt?: string | undefined;
3982
+ cancelledAt?: string | undefined;
3983
+ turnId: string;
3984
+ kind: "process";
3985
+ deadline: string;
3986
+ timeoutSeconds: number;
3987
+ pid: number;
3988
+ startToken?: string | undefined;
3989
+ exitFile?: string | undefined;
3990
+ note?: string | undefined;
3991
+ result?: {
3992
+ outcome: "deadline" | "error" | "exit_file" | "exited";
3993
+ observedAt: string;
3994
+ exitCode?: number | undefined;
3995
+ exitFileNote?: "not-an-exit-code" | undefined;
3996
+ diagnostic?: string | undefined;
3997
+ } | undefined;
3983
3998
  } | {
3984
3999
  id: string;
3985
4000
  source: "agent" | "cezar";
@@ -4250,21 +4265,6 @@ export declare function createRunsRoutes(deps: RunsRouteDeps): import("hono/hono
4250
4265
  pinned?: boolean | undefined;
4251
4266
  };
4252
4267
  };
4253
- } | {
4254
- output: {
4255
- error: string;
4256
- };
4257
- outputFormat: "json";
4258
- status: 404;
4259
- input: {
4260
- param: {
4261
- id: string;
4262
- };
4263
- } & {
4264
- json: {
4265
- pinned?: boolean | undefined;
4266
- };
4267
- };
4268
4268
  };
4269
4269
  };
4270
4270
  } & {
@@ -4291,7 +4291,7 @@ export declare function createRunsRoutes(deps: RunsRouteDeps): import("hono/hono
4291
4291
  error: string;
4292
4292
  };
4293
4293
  outputFormat: "json";
4294
- status: 404;
4294
+ status: 400;
4295
4295
  input: {
4296
4296
  param: {
4297
4297
  id: string;
@@ -4307,7 +4307,7 @@ export declare function createRunsRoutes(deps: RunsRouteDeps): import("hono/hono
4307
4307
  error: string;
4308
4308
  };
4309
4309
  outputFormat: "json";
4310
- status: 400;
4310
+ status: 404;
4311
4311
  input: {
4312
4312
  param: {
4313
4313
  id: string;
@@ -4455,30 +4455,6 @@ export declare function createRunsRoutes(deps: RunsRouteDeps): import("hono/hono
4455
4455
  deadline: string;
4456
4456
  seconds: number;
4457
4457
  note?: string | undefined;
4458
- } | {
4459
- id: string;
4460
- source: "agent" | "cezar";
4461
- 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";
4462
- registeredAt: string;
4463
- phase: "cancelled" | "delivered" | "open" | "resolved";
4464
- resolvedAt?: string | undefined;
4465
- deliveredAt?: string | undefined;
4466
- cancelledAt?: string | undefined;
4467
- turnId: string;
4468
- kind: "process";
4469
- deadline: string;
4470
- timeoutSeconds: number;
4471
- pid: number;
4472
- startToken?: string | undefined;
4473
- exitFile?: string | undefined;
4474
- note?: string | undefined;
4475
- result?: {
4476
- outcome: "deadline" | "error" | "exit_file" | "exited";
4477
- observedAt: string;
4478
- exitCode?: number | undefined;
4479
- exitFileNote?: "not-an-exit-code" | undefined;
4480
- diagnostic?: string | undefined;
4481
- } | undefined;
4482
4458
  } | {
4483
4459
  id: string;
4484
4460
  source: "agent" | "cezar";
@@ -4540,6 +4516,30 @@ export declare function createRunsRoutes(deps: RunsRouteDeps): import("hono/hono
4540
4516
  reason: "outcome" | "timeout";
4541
4517
  } | undefined;
4542
4518
  wakeInputId?: string | undefined;
4519
+ } | {
4520
+ id: string;
4521
+ source: "agent" | "cezar";
4522
+ 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";
4523
+ registeredAt: string;
4524
+ phase: "cancelled" | "delivered" | "open" | "resolved";
4525
+ resolvedAt?: string | undefined;
4526
+ deliveredAt?: string | undefined;
4527
+ cancelledAt?: string | undefined;
4528
+ turnId: string;
4529
+ kind: "process";
4530
+ deadline: string;
4531
+ timeoutSeconds: number;
4532
+ pid: number;
4533
+ startToken?: string | undefined;
4534
+ exitFile?: string | undefined;
4535
+ note?: string | undefined;
4536
+ result?: {
4537
+ outcome: "deadline" | "error" | "exit_file" | "exited";
4538
+ observedAt: string;
4539
+ exitCode?: number | undefined;
4540
+ exitFileNote?: "not-an-exit-code" | undefined;
4541
+ diagnostic?: string | undefined;
4542
+ } | undefined;
4543
4543
  } | {
4544
4544
  id: string;
4545
4545
  source: "agent" | "cezar";
@@ -4671,30 +4671,6 @@ export declare function createRunsRoutes(deps: RunsRouteDeps): import("hono/hono
4671
4671
  deadline: string;
4672
4672
  seconds: number;
4673
4673
  note?: string | undefined;
4674
- } | {
4675
- id: string;
4676
- source: "agent" | "cezar";
4677
- 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";
4678
- registeredAt: string;
4679
- phase: "cancelled" | "delivered" | "open" | "resolved";
4680
- resolvedAt?: string | undefined;
4681
- deliveredAt?: string | undefined;
4682
- cancelledAt?: string | undefined;
4683
- turnId: string;
4684
- kind: "process";
4685
- deadline: string;
4686
- timeoutSeconds: number;
4687
- pid: number;
4688
- startToken?: string | undefined;
4689
- exitFile?: string | undefined;
4690
- note?: string | undefined;
4691
- result?: {
4692
- outcome: "deadline" | "error" | "exit_file" | "exited";
4693
- observedAt: string;
4694
- exitCode?: number | undefined;
4695
- exitFileNote?: "not-an-exit-code" | undefined;
4696
- diagnostic?: string | undefined;
4697
- } | undefined;
4698
4674
  } | {
4699
4675
  id: string;
4700
4676
  source: "agent" | "cezar";
@@ -4756,6 +4732,30 @@ export declare function createRunsRoutes(deps: RunsRouteDeps): import("hono/hono
4756
4732
  reason: "outcome" | "timeout";
4757
4733
  } | undefined;
4758
4734
  wakeInputId?: string | undefined;
4735
+ } | {
4736
+ id: string;
4737
+ source: "agent" | "cezar";
4738
+ 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";
4739
+ registeredAt: string;
4740
+ phase: "cancelled" | "delivered" | "open" | "resolved";
4741
+ resolvedAt?: string | undefined;
4742
+ deliveredAt?: string | undefined;
4743
+ cancelledAt?: string | undefined;
4744
+ turnId: string;
4745
+ kind: "process";
4746
+ deadline: string;
4747
+ timeoutSeconds: number;
4748
+ pid: number;
4749
+ startToken?: string | undefined;
4750
+ exitFile?: string | undefined;
4751
+ note?: string | undefined;
4752
+ result?: {
4753
+ outcome: "deadline" | "error" | "exit_file" | "exited";
4754
+ observedAt: string;
4755
+ exitCode?: number | undefined;
4756
+ exitFileNote?: "not-an-exit-code" | undefined;
4757
+ diagnostic?: string | undefined;
4758
+ } | undefined;
4759
4759
  } | {
4760
4760
  id: string;
4761
4761
  source: "agent" | "cezar";
@@ -4886,30 +4886,6 @@ export declare function createRunsRoutes(deps: RunsRouteDeps): import("hono/hono
4886
4886
  deadline: string;
4887
4887
  seconds: number;
4888
4888
  note?: string | undefined;
4889
- } | {
4890
- id: string;
4891
- source: "agent" | "cezar";
4892
- 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";
4893
- registeredAt: string;
4894
- phase: "cancelled" | "delivered" | "open" | "resolved";
4895
- resolvedAt?: string | undefined;
4896
- deliveredAt?: string | undefined;
4897
- cancelledAt?: string | undefined;
4898
- turnId: string;
4899
- kind: "process";
4900
- deadline: string;
4901
- timeoutSeconds: number;
4902
- pid: number;
4903
- startToken?: string | undefined;
4904
- exitFile?: string | undefined;
4905
- note?: string | undefined;
4906
- result?: {
4907
- outcome: "deadline" | "error" | "exit_file" | "exited";
4908
- observedAt: string;
4909
- exitCode?: number | undefined;
4910
- exitFileNote?: "not-an-exit-code" | undefined;
4911
- diagnostic?: string | undefined;
4912
- } | undefined;
4913
4889
  } | {
4914
4890
  id: string;
4915
4891
  source: "agent" | "cezar";
@@ -4971,6 +4947,30 @@ export declare function createRunsRoutes(deps: RunsRouteDeps): import("hono/hono
4971
4947
  reason: "outcome" | "timeout";
4972
4948
  } | undefined;
4973
4949
  wakeInputId?: string | undefined;
4950
+ } | {
4951
+ id: string;
4952
+ source: "agent" | "cezar";
4953
+ 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";
4954
+ registeredAt: string;
4955
+ phase: "cancelled" | "delivered" | "open" | "resolved";
4956
+ resolvedAt?: string | undefined;
4957
+ deliveredAt?: string | undefined;
4958
+ cancelledAt?: string | undefined;
4959
+ turnId: string;
4960
+ kind: "process";
4961
+ deadline: string;
4962
+ timeoutSeconds: number;
4963
+ pid: number;
4964
+ startToken?: string | undefined;
4965
+ exitFile?: string | undefined;
4966
+ note?: string | undefined;
4967
+ result?: {
4968
+ outcome: "deadline" | "error" | "exit_file" | "exited";
4969
+ observedAt: string;
4970
+ exitCode?: number | undefined;
4971
+ exitFileNote?: "not-an-exit-code" | undefined;
4972
+ diagnostic?: string | undefined;
4973
+ } | undefined;
4974
4974
  } | {
4975
4975
  id: string;
4976
4976
  source: "agent" | "cezar";
@@ -5526,6 +5526,17 @@ export declare function createRunsRoutes(deps: RunsRouteDeps): import("hono/hono
5526
5526
  } & {
5527
5527
  "/runs/:id/read": {
5528
5528
  $post: {
5529
+ output: {
5530
+ error: string;
5531
+ };
5532
+ outputFormat: "json";
5533
+ status: 404;
5534
+ input: {
5535
+ param: {
5536
+ id: string;
5537
+ };
5538
+ };
5539
+ } | {
5529
5540
  output: {
5530
5541
  archiveWhenDone?: boolean | undefined;
5531
5542
  autoMergePr?: boolean | undefined;
@@ -5915,30 +5926,6 @@ export declare function createRunsRoutes(deps: RunsRouteDeps): import("hono/hono
5915
5926
  deadline: string;
5916
5927
  seconds: number;
5917
5928
  note?: string | undefined;
5918
- } | {
5919
- id: string;
5920
- source: "agent" | "cezar";
5921
- 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";
5922
- registeredAt: string;
5923
- phase: "cancelled" | "delivered" | "open" | "resolved";
5924
- resolvedAt?: string | undefined;
5925
- deliveredAt?: string | undefined;
5926
- cancelledAt?: string | undefined;
5927
- turnId: string;
5928
- kind: "process";
5929
- deadline: string;
5930
- timeoutSeconds: number;
5931
- pid: number;
5932
- startToken?: string | undefined;
5933
- exitFile?: string | undefined;
5934
- note?: string | undefined;
5935
- result?: {
5936
- outcome: "deadline" | "error" | "exit_file" | "exited";
5937
- observedAt: string;
5938
- exitCode?: number | undefined;
5939
- exitFileNote?: "not-an-exit-code" | undefined;
5940
- diagnostic?: string | undefined;
5941
- } | undefined;
5942
5929
  } | {
5943
5930
  id: string;
5944
5931
  source: "agent" | "cezar";
@@ -6000,6 +5987,30 @@ export declare function createRunsRoutes(deps: RunsRouteDeps): import("hono/hono
6000
5987
  reason: "outcome" | "timeout";
6001
5988
  } | undefined;
6002
5989
  wakeInputId?: string | undefined;
5990
+ } | {
5991
+ id: string;
5992
+ source: "agent" | "cezar";
5993
+ via: "ask-line" | "budget" | "cez-message-wait" | "cez-worker-wait" | "cezar_ask" | "cezar_wait" | "cezar_wait_for_ci" | "completion" | "monitoring-line" | "native-ask" | "native-subagents" | "no-wait" | "schedule-wakeup";
5994
+ registeredAt: string;
5995
+ phase: "cancelled" | "delivered" | "open" | "resolved";
5996
+ resolvedAt?: string | undefined;
5997
+ deliveredAt?: string | undefined;
5998
+ cancelledAt?: string | undefined;
5999
+ turnId: string;
6000
+ kind: "process";
6001
+ deadline: string;
6002
+ timeoutSeconds: number;
6003
+ pid: number;
6004
+ startToken?: string | undefined;
6005
+ exitFile?: string | undefined;
6006
+ note?: string | undefined;
6007
+ result?: {
6008
+ outcome: "deadline" | "error" | "exit_file" | "exited";
6009
+ observedAt: string;
6010
+ exitCode?: number | undefined;
6011
+ exitFileNote?: "not-an-exit-code" | undefined;
6012
+ diagnostic?: string | undefined;
6013
+ } | undefined;
6003
6014
  } | {
6004
6015
  id: string;
6005
6016
  source: "agent" | "cezar";
@@ -6131,30 +6142,6 @@ export declare function createRunsRoutes(deps: RunsRouteDeps): import("hono/hono
6131
6142
  deadline: string;
6132
6143
  seconds: number;
6133
6144
  note?: string | undefined;
6134
- } | {
6135
- id: string;
6136
- source: "agent" | "cezar";
6137
- 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";
6138
- registeredAt: string;
6139
- phase: "cancelled" | "delivered" | "open" | "resolved";
6140
- resolvedAt?: string | undefined;
6141
- deliveredAt?: string | undefined;
6142
- cancelledAt?: string | undefined;
6143
- turnId: string;
6144
- kind: "process";
6145
- deadline: string;
6146
- timeoutSeconds: number;
6147
- pid: number;
6148
- startToken?: string | undefined;
6149
- exitFile?: string | undefined;
6150
- note?: string | undefined;
6151
- result?: {
6152
- outcome: "deadline" | "error" | "exit_file" | "exited";
6153
- observedAt: string;
6154
- exitCode?: number | undefined;
6155
- exitFileNote?: "not-an-exit-code" | undefined;
6156
- diagnostic?: string | undefined;
6157
- } | undefined;
6158
6145
  } | {
6159
6146
  id: string;
6160
6147
  source: "agent" | "cezar";
@@ -6216,6 +6203,30 @@ export declare function createRunsRoutes(deps: RunsRouteDeps): import("hono/hono
6216
6203
  reason: "outcome" | "timeout";
6217
6204
  } | undefined;
6218
6205
  wakeInputId?: string | undefined;
6206
+ } | {
6207
+ id: string;
6208
+ source: "agent" | "cezar";
6209
+ 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";
6210
+ registeredAt: string;
6211
+ phase: "cancelled" | "delivered" | "open" | "resolved";
6212
+ resolvedAt?: string | undefined;
6213
+ deliveredAt?: string | undefined;
6214
+ cancelledAt?: string | undefined;
6215
+ turnId: string;
6216
+ kind: "process";
6217
+ deadline: string;
6218
+ timeoutSeconds: number;
6219
+ pid: number;
6220
+ startToken?: string | undefined;
6221
+ exitFile?: string | undefined;
6222
+ note?: string | undefined;
6223
+ result?: {
6224
+ outcome: "deadline" | "error" | "exit_file" | "exited";
6225
+ observedAt: string;
6226
+ exitCode?: number | undefined;
6227
+ exitFileNote?: "not-an-exit-code" | undefined;
6228
+ diagnostic?: string | undefined;
6229
+ } | undefined;
6219
6230
  } | {
6220
6231
  id: string;
6221
6232
  source: "agent" | "cezar";
@@ -6346,30 +6357,6 @@ export declare function createRunsRoutes(deps: RunsRouteDeps): import("hono/hono
6346
6357
  deadline: string;
6347
6358
  seconds: number;
6348
6359
  note?: string | undefined;
6349
- } | {
6350
- id: string;
6351
- source: "agent" | "cezar";
6352
- 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";
6353
- registeredAt: string;
6354
- phase: "cancelled" | "delivered" | "open" | "resolved";
6355
- resolvedAt?: string | undefined;
6356
- deliveredAt?: string | undefined;
6357
- cancelledAt?: string | undefined;
6358
- turnId: string;
6359
- kind: "process";
6360
- deadline: string;
6361
- timeoutSeconds: number;
6362
- pid: number;
6363
- startToken?: string | undefined;
6364
- exitFile?: string | undefined;
6365
- note?: string | undefined;
6366
- result?: {
6367
- outcome: "deadline" | "error" | "exit_file" | "exited";
6368
- observedAt: string;
6369
- exitCode?: number | undefined;
6370
- exitFileNote?: "not-an-exit-code" | undefined;
6371
- diagnostic?: string | undefined;
6372
- } | undefined;
6373
6360
  } | {
6374
6361
  id: string;
6375
6362
  source: "agent" | "cezar";
@@ -6431,6 +6418,30 @@ export declare function createRunsRoutes(deps: RunsRouteDeps): import("hono/hono
6431
6418
  reason: "outcome" | "timeout";
6432
6419
  } | undefined;
6433
6420
  wakeInputId?: string | undefined;
6421
+ } | {
6422
+ id: string;
6423
+ source: "agent" | "cezar";
6424
+ 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";
6425
+ registeredAt: string;
6426
+ phase: "cancelled" | "delivered" | "open" | "resolved";
6427
+ resolvedAt?: string | undefined;
6428
+ deliveredAt?: string | undefined;
6429
+ cancelledAt?: string | undefined;
6430
+ turnId: string;
6431
+ kind: "process";
6432
+ deadline: string;
6433
+ timeoutSeconds: number;
6434
+ pid: number;
6435
+ startToken?: string | undefined;
6436
+ exitFile?: string | undefined;
6437
+ note?: string | undefined;
6438
+ result?: {
6439
+ outcome: "deadline" | "error" | "exit_file" | "exited";
6440
+ observedAt: string;
6441
+ exitCode?: number | undefined;
6442
+ exitFileNote?: "not-an-exit-code" | undefined;
6443
+ diagnostic?: string | undefined;
6444
+ } | undefined;
6434
6445
  } | {
6435
6446
  id: string;
6436
6447
  source: "agent" | "cezar";
@@ -6697,7 +6708,11 @@ export declare function createRunsRoutes(deps: RunsRouteDeps): import("hono/hono
6697
6708
  id: string;
6698
6709
  };
6699
6710
  };
6700
- } | {
6711
+ };
6712
+ };
6713
+ } & {
6714
+ "/runs/:id/unread": {
6715
+ $post: {
6701
6716
  output: {
6702
6717
  error: string;
6703
6718
  };
@@ -6708,11 +6723,7 @@ export declare function createRunsRoutes(deps: RunsRouteDeps): import("hono/hono
6708
6723
  id: string;
6709
6724
  };
6710
6725
  };
6711
- };
6712
- };
6713
- } & {
6714
- "/runs/:id/unread": {
6715
- $post: {
6726
+ } | {
6716
6727
  output: {
6717
6728
  archiveWhenDone?: boolean | undefined;
6718
6729
  autoMergePr?: boolean | undefined;
@@ -7102,30 +7113,6 @@ export declare function createRunsRoutes(deps: RunsRouteDeps): import("hono/hono
7102
7113
  deadline: string;
7103
7114
  seconds: number;
7104
7115
  note?: string | undefined;
7105
- } | {
7106
- id: string;
7107
- source: "agent" | "cezar";
7108
- 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";
7109
- registeredAt: string;
7110
- phase: "cancelled" | "delivered" | "open" | "resolved";
7111
- resolvedAt?: string | undefined;
7112
- deliveredAt?: string | undefined;
7113
- cancelledAt?: string | undefined;
7114
- turnId: string;
7115
- kind: "process";
7116
- deadline: string;
7117
- timeoutSeconds: number;
7118
- pid: number;
7119
- startToken?: string | undefined;
7120
- exitFile?: string | undefined;
7121
- note?: string | undefined;
7122
- result?: {
7123
- outcome: "deadline" | "error" | "exit_file" | "exited";
7124
- observedAt: string;
7125
- exitCode?: number | undefined;
7126
- exitFileNote?: "not-an-exit-code" | undefined;
7127
- diagnostic?: string | undefined;
7128
- } | undefined;
7129
7116
  } | {
7130
7117
  id: string;
7131
7118
  source: "agent" | "cezar";
@@ -7187,6 +7174,30 @@ export declare function createRunsRoutes(deps: RunsRouteDeps): import("hono/hono
7187
7174
  reason: "outcome" | "timeout";
7188
7175
  } | undefined;
7189
7176
  wakeInputId?: string | undefined;
7177
+ } | {
7178
+ id: string;
7179
+ source: "agent" | "cezar";
7180
+ 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";
7181
+ registeredAt: string;
7182
+ phase: "cancelled" | "delivered" | "open" | "resolved";
7183
+ resolvedAt?: string | undefined;
7184
+ deliveredAt?: string | undefined;
7185
+ cancelledAt?: string | undefined;
7186
+ turnId: string;
7187
+ kind: "process";
7188
+ deadline: string;
7189
+ timeoutSeconds: number;
7190
+ pid: number;
7191
+ startToken?: string | undefined;
7192
+ exitFile?: string | undefined;
7193
+ note?: string | undefined;
7194
+ result?: {
7195
+ outcome: "deadline" | "error" | "exit_file" | "exited";
7196
+ observedAt: string;
7197
+ exitCode?: number | undefined;
7198
+ exitFileNote?: "not-an-exit-code" | undefined;
7199
+ diagnostic?: string | undefined;
7200
+ } | undefined;
7190
7201
  } | {
7191
7202
  id: string;
7192
7203
  source: "agent" | "cezar";
@@ -7318,30 +7329,6 @@ export declare function createRunsRoutes(deps: RunsRouteDeps): import("hono/hono
7318
7329
  deadline: string;
7319
7330
  seconds: number;
7320
7331
  note?: string | undefined;
7321
- } | {
7322
- id: string;
7323
- source: "agent" | "cezar";
7324
- 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";
7325
- registeredAt: string;
7326
- phase: "cancelled" | "delivered" | "open" | "resolved";
7327
- resolvedAt?: string | undefined;
7328
- deliveredAt?: string | undefined;
7329
- cancelledAt?: string | undefined;
7330
- turnId: string;
7331
- kind: "process";
7332
- deadline: string;
7333
- timeoutSeconds: number;
7334
- pid: number;
7335
- startToken?: string | undefined;
7336
- exitFile?: string | undefined;
7337
- note?: string | undefined;
7338
- result?: {
7339
- outcome: "deadline" | "error" | "exit_file" | "exited";
7340
- observedAt: string;
7341
- exitCode?: number | undefined;
7342
- exitFileNote?: "not-an-exit-code" | undefined;
7343
- diagnostic?: string | undefined;
7344
- } | undefined;
7345
7332
  } | {
7346
7333
  id: string;
7347
7334
  source: "agent" | "cezar";
@@ -7403,6 +7390,30 @@ export declare function createRunsRoutes(deps: RunsRouteDeps): import("hono/hono
7403
7390
  reason: "outcome" | "timeout";
7404
7391
  } | undefined;
7405
7392
  wakeInputId?: string | undefined;
7393
+ } | {
7394
+ id: string;
7395
+ source: "agent" | "cezar";
7396
+ 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";
7397
+ registeredAt: string;
7398
+ phase: "cancelled" | "delivered" | "open" | "resolved";
7399
+ resolvedAt?: string | undefined;
7400
+ deliveredAt?: string | undefined;
7401
+ cancelledAt?: string | undefined;
7402
+ turnId: string;
7403
+ kind: "process";
7404
+ deadline: string;
7405
+ timeoutSeconds: number;
7406
+ pid: number;
7407
+ startToken?: string | undefined;
7408
+ exitFile?: string | undefined;
7409
+ note?: string | undefined;
7410
+ result?: {
7411
+ outcome: "deadline" | "error" | "exit_file" | "exited";
7412
+ observedAt: string;
7413
+ exitCode?: number | undefined;
7414
+ exitFileNote?: "not-an-exit-code" | undefined;
7415
+ diagnostic?: string | undefined;
7416
+ } | undefined;
7406
7417
  } | {
7407
7418
  id: string;
7408
7419
  source: "agent" | "cezar";
@@ -7533,30 +7544,6 @@ export declare function createRunsRoutes(deps: RunsRouteDeps): import("hono/hono
7533
7544
  deadline: string;
7534
7545
  seconds: number;
7535
7546
  note?: string | undefined;
7536
- } | {
7537
- id: string;
7538
- source: "agent" | "cezar";
7539
- 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";
7540
- registeredAt: string;
7541
- phase: "cancelled" | "delivered" | "open" | "resolved";
7542
- resolvedAt?: string | undefined;
7543
- deliveredAt?: string | undefined;
7544
- cancelledAt?: string | undefined;
7545
- turnId: string;
7546
- kind: "process";
7547
- deadline: string;
7548
- timeoutSeconds: number;
7549
- pid: number;
7550
- startToken?: string | undefined;
7551
- exitFile?: string | undefined;
7552
- note?: string | undefined;
7553
- result?: {
7554
- outcome: "deadline" | "error" | "exit_file" | "exited";
7555
- observedAt: string;
7556
- exitCode?: number | undefined;
7557
- exitFileNote?: "not-an-exit-code" | undefined;
7558
- diagnostic?: string | undefined;
7559
- } | undefined;
7560
7547
  } | {
7561
7548
  id: string;
7562
7549
  source: "agent" | "cezar";
@@ -7618,6 +7605,30 @@ export declare function createRunsRoutes(deps: RunsRouteDeps): import("hono/hono
7618
7605
  reason: "outcome" | "timeout";
7619
7606
  } | undefined;
7620
7607
  wakeInputId?: string | undefined;
7608
+ } | {
7609
+ id: string;
7610
+ source: "agent" | "cezar";
7611
+ 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";
7612
+ registeredAt: string;
7613
+ phase: "cancelled" | "delivered" | "open" | "resolved";
7614
+ resolvedAt?: string | undefined;
7615
+ deliveredAt?: string | undefined;
7616
+ cancelledAt?: string | undefined;
7617
+ turnId: string;
7618
+ kind: "process";
7619
+ deadline: string;
7620
+ timeoutSeconds: number;
7621
+ pid: number;
7622
+ startToken?: string | undefined;
7623
+ exitFile?: string | undefined;
7624
+ note?: string | undefined;
7625
+ result?: {
7626
+ outcome: "deadline" | "error" | "exit_file" | "exited";
7627
+ observedAt: string;
7628
+ exitCode?: number | undefined;
7629
+ exitFileNote?: "not-an-exit-code" | undefined;
7630
+ diagnostic?: string | undefined;
7631
+ } | undefined;
7621
7632
  } | {
7622
7633
  id: string;
7623
7634
  source: "agent" | "cezar";
@@ -7884,17 +7895,6 @@ export declare function createRunsRoutes(deps: RunsRouteDeps): import("hono/hono
7884
7895
  id: string;
7885
7896
  };
7886
7897
  };
7887
- } | {
7888
- output: {
7889
- error: string;
7890
- };
7891
- outputFormat: "json";
7892
- status: 404;
7893
- input: {
7894
- param: {
7895
- id: string;
7896
- };
7897
- };
7898
7898
  };
7899
7899
  };
7900
7900
  } & {
@@ -8036,30 +8036,6 @@ export declare function createRunsRoutes(deps: RunsRouteDeps): import("hono/hono
8036
8036
  deadline: string;
8037
8037
  seconds: number;
8038
8038
  note?: string | undefined;
8039
- } | {
8040
- id: string;
8041
- source: "agent" | "cezar";
8042
- 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";
8043
- registeredAt: string;
8044
- phase: "cancelled" | "delivered" | "open" | "resolved";
8045
- resolvedAt?: string | undefined;
8046
- deliveredAt?: string | undefined;
8047
- cancelledAt?: string | undefined;
8048
- turnId: string;
8049
- kind: "process";
8050
- deadline: string;
8051
- timeoutSeconds: number;
8052
- pid: number;
8053
- startToken?: string | undefined;
8054
- exitFile?: string | undefined;
8055
- note?: string | undefined;
8056
- result?: {
8057
- outcome: "deadline" | "error" | "exit_file" | "exited";
8058
- observedAt: string;
8059
- exitCode?: number | undefined;
8060
- exitFileNote?: "not-an-exit-code" | undefined;
8061
- diagnostic?: string | undefined;
8062
- } | undefined;
8063
8039
  } | {
8064
8040
  id: string;
8065
8041
  source: "agent" | "cezar";
@@ -8121,6 +8097,30 @@ export declare function createRunsRoutes(deps: RunsRouteDeps): import("hono/hono
8121
8097
  reason: "outcome" | "timeout";
8122
8098
  } | undefined;
8123
8099
  wakeInputId?: string | undefined;
8100
+ } | {
8101
+ id: string;
8102
+ source: "agent" | "cezar";
8103
+ 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";
8104
+ registeredAt: string;
8105
+ phase: "cancelled" | "delivered" | "open" | "resolved";
8106
+ resolvedAt?: string | undefined;
8107
+ deliveredAt?: string | undefined;
8108
+ cancelledAt?: string | undefined;
8109
+ turnId: string;
8110
+ kind: "process";
8111
+ deadline: string;
8112
+ timeoutSeconds: number;
8113
+ pid: number;
8114
+ startToken?: string | undefined;
8115
+ exitFile?: string | undefined;
8116
+ note?: string | undefined;
8117
+ result?: {
8118
+ outcome: "deadline" | "error" | "exit_file" | "exited";
8119
+ observedAt: string;
8120
+ exitCode?: number | undefined;
8121
+ exitFileNote?: "not-an-exit-code" | undefined;
8122
+ diagnostic?: string | undefined;
8123
+ } | undefined;
8124
8124
  } | {
8125
8125
  id: string;
8126
8126
  source: "agent" | "cezar";
@@ -8252,30 +8252,6 @@ export declare function createRunsRoutes(deps: RunsRouteDeps): import("hono/hono
8252
8252
  deadline: string;
8253
8253
  seconds: number;
8254
8254
  note?: string | undefined;
8255
- } | {
8256
- id: string;
8257
- source: "agent" | "cezar";
8258
- 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";
8259
- registeredAt: string;
8260
- phase: "cancelled" | "delivered" | "open" | "resolved";
8261
- resolvedAt?: string | undefined;
8262
- deliveredAt?: string | undefined;
8263
- cancelledAt?: string | undefined;
8264
- turnId: string;
8265
- kind: "process";
8266
- deadline: string;
8267
- timeoutSeconds: number;
8268
- pid: number;
8269
- startToken?: string | undefined;
8270
- exitFile?: string | undefined;
8271
- note?: string | undefined;
8272
- result?: {
8273
- outcome: "deadline" | "error" | "exit_file" | "exited";
8274
- observedAt: string;
8275
- exitCode?: number | undefined;
8276
- exitFileNote?: "not-an-exit-code" | undefined;
8277
- diagnostic?: string | undefined;
8278
- } | undefined;
8279
8255
  } | {
8280
8256
  id: string;
8281
8257
  source: "agent" | "cezar";
@@ -8337,6 +8313,30 @@ export declare function createRunsRoutes(deps: RunsRouteDeps): import("hono/hono
8337
8313
  reason: "outcome" | "timeout";
8338
8314
  } | undefined;
8339
8315
  wakeInputId?: string | undefined;
8316
+ } | {
8317
+ id: string;
8318
+ source: "agent" | "cezar";
8319
+ 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";
8320
+ registeredAt: string;
8321
+ phase: "cancelled" | "delivered" | "open" | "resolved";
8322
+ resolvedAt?: string | undefined;
8323
+ deliveredAt?: string | undefined;
8324
+ cancelledAt?: string | undefined;
8325
+ turnId: string;
8326
+ kind: "process";
8327
+ deadline: string;
8328
+ timeoutSeconds: number;
8329
+ pid: number;
8330
+ startToken?: string | undefined;
8331
+ exitFile?: string | undefined;
8332
+ note?: string | undefined;
8333
+ result?: {
8334
+ outcome: "deadline" | "error" | "exit_file" | "exited";
8335
+ observedAt: string;
8336
+ exitCode?: number | undefined;
8337
+ exitFileNote?: "not-an-exit-code" | undefined;
8338
+ diagnostic?: string | undefined;
8339
+ } | undefined;
8340
8340
  } | {
8341
8341
  id: string;
8342
8342
  source: "agent" | "cezar";
@@ -8467,30 +8467,6 @@ export declare function createRunsRoutes(deps: RunsRouteDeps): import("hono/hono
8467
8467
  deadline: string;
8468
8468
  seconds: number;
8469
8469
  note?: string | undefined;
8470
- } | {
8471
- id: string;
8472
- source: "agent" | "cezar";
8473
- 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";
8474
- registeredAt: string;
8475
- phase: "cancelled" | "delivered" | "open" | "resolved";
8476
- resolvedAt?: string | undefined;
8477
- deliveredAt?: string | undefined;
8478
- cancelledAt?: string | undefined;
8479
- turnId: string;
8480
- kind: "process";
8481
- deadline: string;
8482
- timeoutSeconds: number;
8483
- pid: number;
8484
- startToken?: string | undefined;
8485
- exitFile?: string | undefined;
8486
- note?: string | undefined;
8487
- result?: {
8488
- outcome: "deadline" | "error" | "exit_file" | "exited";
8489
- observedAt: string;
8490
- exitCode?: number | undefined;
8491
- exitFileNote?: "not-an-exit-code" | undefined;
8492
- diagnostic?: string | undefined;
8493
- } | undefined;
8494
8470
  } | {
8495
8471
  id: string;
8496
8472
  source: "agent" | "cezar";
@@ -8552,6 +8528,30 @@ export declare function createRunsRoutes(deps: RunsRouteDeps): import("hono/hono
8552
8528
  reason: "outcome" | "timeout";
8553
8529
  } | undefined;
8554
8530
  wakeInputId?: string | undefined;
8531
+ } | {
8532
+ id: string;
8533
+ source: "agent" | "cezar";
8534
+ 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";
8535
+ registeredAt: string;
8536
+ phase: "cancelled" | "delivered" | "open" | "resolved";
8537
+ resolvedAt?: string | undefined;
8538
+ deliveredAt?: string | undefined;
8539
+ cancelledAt?: string | undefined;
8540
+ turnId: string;
8541
+ kind: "process";
8542
+ deadline: string;
8543
+ timeoutSeconds: number;
8544
+ pid: number;
8545
+ startToken?: string | undefined;
8546
+ exitFile?: string | undefined;
8547
+ note?: string | undefined;
8548
+ result?: {
8549
+ outcome: "deadline" | "error" | "exit_file" | "exited";
8550
+ observedAt: string;
8551
+ exitCode?: number | undefined;
8552
+ exitFileNote?: "not-an-exit-code" | undefined;
8553
+ diagnostic?: string | undefined;
8554
+ } | undefined;
8555
8555
  } | {
8556
8556
  id: string;
8557
8557
  source: "agent" | "cezar";
@@ -9167,6 +9167,17 @@ export declare function createRunsRoutes(deps: RunsRouteDeps): import("hono/hono
9167
9167
  } & {
9168
9168
  "/runs/:id": {
9169
9169
  $get: {
9170
+ output: {
9171
+ error: string;
9172
+ };
9173
+ outputFormat: "json";
9174
+ status: 404;
9175
+ input: {
9176
+ param: {
9177
+ id: string;
9178
+ };
9179
+ };
9180
+ } | {
9170
9181
  output: {
9171
9182
  archiveWhenDone?: boolean | undefined;
9172
9183
  autoMergePr?: boolean | undefined;
@@ -9556,30 +9567,6 @@ export declare function createRunsRoutes(deps: RunsRouteDeps): import("hono/hono
9556
9567
  deadline: string;
9557
9568
  seconds: number;
9558
9569
  note?: string | undefined;
9559
- } | {
9560
- id: string;
9561
- source: "agent" | "cezar";
9562
- 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";
9563
- registeredAt: string;
9564
- phase: "cancelled" | "delivered" | "open" | "resolved";
9565
- resolvedAt?: string | undefined;
9566
- deliveredAt?: string | undefined;
9567
- cancelledAt?: string | undefined;
9568
- turnId: string;
9569
- kind: "process";
9570
- deadline: string;
9571
- timeoutSeconds: number;
9572
- pid: number;
9573
- startToken?: string | undefined;
9574
- exitFile?: string | undefined;
9575
- note?: string | undefined;
9576
- result?: {
9577
- outcome: "deadline" | "error" | "exit_file" | "exited";
9578
- observedAt: string;
9579
- exitCode?: number | undefined;
9580
- exitFileNote?: "not-an-exit-code" | undefined;
9581
- diagnostic?: string | undefined;
9582
- } | undefined;
9583
9570
  } | {
9584
9571
  id: string;
9585
9572
  source: "agent" | "cezar";
@@ -9641,6 +9628,30 @@ export declare function createRunsRoutes(deps: RunsRouteDeps): import("hono/hono
9641
9628
  reason: "outcome" | "timeout";
9642
9629
  } | undefined;
9643
9630
  wakeInputId?: string | undefined;
9631
+ } | {
9632
+ id: string;
9633
+ source: "agent" | "cezar";
9634
+ 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";
9635
+ registeredAt: string;
9636
+ phase: "cancelled" | "delivered" | "open" | "resolved";
9637
+ resolvedAt?: string | undefined;
9638
+ deliveredAt?: string | undefined;
9639
+ cancelledAt?: string | undefined;
9640
+ turnId: string;
9641
+ kind: "process";
9642
+ deadline: string;
9643
+ timeoutSeconds: number;
9644
+ pid: number;
9645
+ startToken?: string | undefined;
9646
+ exitFile?: string | undefined;
9647
+ note?: string | undefined;
9648
+ result?: {
9649
+ outcome: "deadline" | "error" | "exit_file" | "exited";
9650
+ observedAt: string;
9651
+ exitCode?: number | undefined;
9652
+ exitFileNote?: "not-an-exit-code" | undefined;
9653
+ diagnostic?: string | undefined;
9654
+ } | undefined;
9644
9655
  } | {
9645
9656
  id: string;
9646
9657
  source: "agent" | "cezar";
@@ -9772,30 +9783,6 @@ export declare function createRunsRoutes(deps: RunsRouteDeps): import("hono/hono
9772
9783
  deadline: string;
9773
9784
  seconds: number;
9774
9785
  note?: string | undefined;
9775
- } | {
9776
- id: string;
9777
- source: "agent" | "cezar";
9778
- 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";
9779
- registeredAt: string;
9780
- phase: "cancelled" | "delivered" | "open" | "resolved";
9781
- resolvedAt?: string | undefined;
9782
- deliveredAt?: string | undefined;
9783
- cancelledAt?: string | undefined;
9784
- turnId: string;
9785
- kind: "process";
9786
- deadline: string;
9787
- timeoutSeconds: number;
9788
- pid: number;
9789
- startToken?: string | undefined;
9790
- exitFile?: string | undefined;
9791
- note?: string | undefined;
9792
- result?: {
9793
- outcome: "deadline" | "error" | "exit_file" | "exited";
9794
- observedAt: string;
9795
- exitCode?: number | undefined;
9796
- exitFileNote?: "not-an-exit-code" | undefined;
9797
- diagnostic?: string | undefined;
9798
- } | undefined;
9799
9786
  } | {
9800
9787
  id: string;
9801
9788
  source: "agent" | "cezar";
@@ -9857,6 +9844,30 @@ export declare function createRunsRoutes(deps: RunsRouteDeps): import("hono/hono
9857
9844
  reason: "outcome" | "timeout";
9858
9845
  } | undefined;
9859
9846
  wakeInputId?: string | undefined;
9847
+ } | {
9848
+ id: string;
9849
+ source: "agent" | "cezar";
9850
+ 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";
9851
+ registeredAt: string;
9852
+ phase: "cancelled" | "delivered" | "open" | "resolved";
9853
+ resolvedAt?: string | undefined;
9854
+ deliveredAt?: string | undefined;
9855
+ cancelledAt?: string | undefined;
9856
+ turnId: string;
9857
+ kind: "process";
9858
+ deadline: string;
9859
+ timeoutSeconds: number;
9860
+ pid: number;
9861
+ startToken?: string | undefined;
9862
+ exitFile?: string | undefined;
9863
+ note?: string | undefined;
9864
+ result?: {
9865
+ outcome: "deadline" | "error" | "exit_file" | "exited";
9866
+ observedAt: string;
9867
+ exitCode?: number | undefined;
9868
+ exitFileNote?: "not-an-exit-code" | undefined;
9869
+ diagnostic?: string | undefined;
9870
+ } | undefined;
9860
9871
  } | {
9861
9872
  id: string;
9862
9873
  source: "agent" | "cezar";
@@ -9987,30 +9998,6 @@ export declare function createRunsRoutes(deps: RunsRouteDeps): import("hono/hono
9987
9998
  deadline: string;
9988
9999
  seconds: number;
9989
10000
  note?: string | undefined;
9990
- } | {
9991
- id: string;
9992
- source: "agent" | "cezar";
9993
- 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";
9994
- registeredAt: string;
9995
- phase: "cancelled" | "delivered" | "open" | "resolved";
9996
- resolvedAt?: string | undefined;
9997
- deliveredAt?: string | undefined;
9998
- cancelledAt?: string | undefined;
9999
- turnId: string;
10000
- kind: "process";
10001
- deadline: string;
10002
- timeoutSeconds: number;
10003
- pid: number;
10004
- startToken?: string | undefined;
10005
- exitFile?: string | undefined;
10006
- note?: string | undefined;
10007
- result?: {
10008
- outcome: "deadline" | "error" | "exit_file" | "exited";
10009
- observedAt: string;
10010
- exitCode?: number | undefined;
10011
- exitFileNote?: "not-an-exit-code" | undefined;
10012
- diagnostic?: string | undefined;
10013
- } | undefined;
10014
10001
  } | {
10015
10002
  id: string;
10016
10003
  source: "agent" | "cezar";
@@ -10072,6 +10059,30 @@ export declare function createRunsRoutes(deps: RunsRouteDeps): import("hono/hono
10072
10059
  reason: "outcome" | "timeout";
10073
10060
  } | undefined;
10074
10061
  wakeInputId?: string | undefined;
10062
+ } | {
10063
+ id: string;
10064
+ source: "agent" | "cezar";
10065
+ 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";
10066
+ registeredAt: string;
10067
+ phase: "cancelled" | "delivered" | "open" | "resolved";
10068
+ resolvedAt?: string | undefined;
10069
+ deliveredAt?: string | undefined;
10070
+ cancelledAt?: string | undefined;
10071
+ turnId: string;
10072
+ kind: "process";
10073
+ deadline: string;
10074
+ timeoutSeconds: number;
10075
+ pid: number;
10076
+ startToken?: string | undefined;
10077
+ exitFile?: string | undefined;
10078
+ note?: string | undefined;
10079
+ result?: {
10080
+ outcome: "deadline" | "error" | "exit_file" | "exited";
10081
+ observedAt: string;
10082
+ exitCode?: number | undefined;
10083
+ exitFileNote?: "not-an-exit-code" | undefined;
10084
+ diagnostic?: string | undefined;
10085
+ } | undefined;
10075
10086
  } | {
10076
10087
  id: string;
10077
10088
  source: "agent" | "cezar";
@@ -10346,17 +10357,6 @@ export declare function createRunsRoutes(deps: RunsRouteDeps): import("hono/hono
10346
10357
  id: string;
10347
10358
  };
10348
10359
  };
10349
- } | {
10350
- output: {
10351
- error: string;
10352
- };
10353
- outputFormat: "json";
10354
- status: 404;
10355
- input: {
10356
- param: {
10357
- id: string;
10358
- };
10359
- };
10360
10360
  };
10361
10361
  };
10362
10362
  } & {
@@ -10484,6 +10484,66 @@ export declare function createRunsRoutes(deps: RunsRouteDeps): import("hono/hono
10484
10484
  } & {
10485
10485
  "/runs/:id": {
10486
10486
  $patch: {
10487
+ output: {
10488
+ error: string;
10489
+ };
10490
+ outputFormat: "json";
10491
+ status: 400;
10492
+ input: {
10493
+ json: {
10494
+ archiveWhenDone?: boolean | undefined;
10495
+ autoMergePr?: boolean | undefined;
10496
+ allowWorkers?: boolean | undefined;
10497
+ allowMessaging?: boolean | undefined;
10498
+ title?: string | undefined;
10499
+ task?: string | undefined;
10500
+ };
10501
+ } & {
10502
+ param: {
10503
+ id: string;
10504
+ };
10505
+ };
10506
+ } | {
10507
+ output: {
10508
+ error: string;
10509
+ };
10510
+ outputFormat: "json";
10511
+ status: 404;
10512
+ input: {
10513
+ json: {
10514
+ archiveWhenDone?: boolean | undefined;
10515
+ autoMergePr?: boolean | undefined;
10516
+ allowWorkers?: boolean | undefined;
10517
+ allowMessaging?: boolean | undefined;
10518
+ title?: string | undefined;
10519
+ task?: string | undefined;
10520
+ };
10521
+ } & {
10522
+ param: {
10523
+ id: string;
10524
+ };
10525
+ };
10526
+ } | {
10527
+ output: {
10528
+ error: string;
10529
+ };
10530
+ outputFormat: "json";
10531
+ status: 409;
10532
+ input: {
10533
+ json: {
10534
+ archiveWhenDone?: boolean | undefined;
10535
+ autoMergePr?: boolean | undefined;
10536
+ allowWorkers?: boolean | undefined;
10537
+ allowMessaging?: boolean | undefined;
10538
+ title?: string | undefined;
10539
+ task?: string | undefined;
10540
+ };
10541
+ } & {
10542
+ param: {
10543
+ id: string;
10544
+ };
10545
+ };
10546
+ } | {
10487
10547
  output: {
10488
10548
  archiveWhenDone?: boolean | undefined;
10489
10549
  autoMergePr?: boolean | undefined;
@@ -10620,30 +10680,6 @@ export declare function createRunsRoutes(deps: RunsRouteDeps): import("hono/hono
10620
10680
  deadline: string;
10621
10681
  seconds: number;
10622
10682
  note?: string | undefined;
10623
- } | {
10624
- id: string;
10625
- source: "agent" | "cezar";
10626
- 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";
10627
- registeredAt: string;
10628
- phase: "cancelled" | "delivered" | "open" | "resolved";
10629
- resolvedAt?: string | undefined;
10630
- deliveredAt?: string | undefined;
10631
- cancelledAt?: string | undefined;
10632
- turnId: string;
10633
- kind: "process";
10634
- deadline: string;
10635
- timeoutSeconds: number;
10636
- pid: number;
10637
- startToken?: string | undefined;
10638
- exitFile?: string | undefined;
10639
- note?: string | undefined;
10640
- result?: {
10641
- outcome: "deadline" | "error" | "exit_file" | "exited";
10642
- observedAt: string;
10643
- exitCode?: number | undefined;
10644
- exitFileNote?: "not-an-exit-code" | undefined;
10645
- diagnostic?: string | undefined;
10646
- } | undefined;
10647
10683
  } | {
10648
10684
  id: string;
10649
10685
  source: "agent" | "cezar";
@@ -10705,6 +10741,30 @@ export declare function createRunsRoutes(deps: RunsRouteDeps): import("hono/hono
10705
10741
  reason: "outcome" | "timeout";
10706
10742
  } | undefined;
10707
10743
  wakeInputId?: string | undefined;
10744
+ } | {
10745
+ id: string;
10746
+ source: "agent" | "cezar";
10747
+ 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";
10748
+ registeredAt: string;
10749
+ phase: "cancelled" | "delivered" | "open" | "resolved";
10750
+ resolvedAt?: string | undefined;
10751
+ deliveredAt?: string | undefined;
10752
+ cancelledAt?: string | undefined;
10753
+ turnId: string;
10754
+ kind: "process";
10755
+ deadline: string;
10756
+ timeoutSeconds: number;
10757
+ pid: number;
10758
+ startToken?: string | undefined;
10759
+ exitFile?: string | undefined;
10760
+ note?: string | undefined;
10761
+ result?: {
10762
+ outcome: "deadline" | "error" | "exit_file" | "exited";
10763
+ observedAt: string;
10764
+ exitCode?: number | undefined;
10765
+ exitFileNote?: "not-an-exit-code" | undefined;
10766
+ diagnostic?: string | undefined;
10767
+ } | undefined;
10708
10768
  } | {
10709
10769
  id: string;
10710
10770
  source: "agent" | "cezar";
@@ -10836,30 +10896,6 @@ export declare function createRunsRoutes(deps: RunsRouteDeps): import("hono/hono
10836
10896
  deadline: string;
10837
10897
  seconds: number;
10838
10898
  note?: string | undefined;
10839
- } | {
10840
- id: string;
10841
- source: "agent" | "cezar";
10842
- 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";
10843
- registeredAt: string;
10844
- phase: "cancelled" | "delivered" | "open" | "resolved";
10845
- resolvedAt?: string | undefined;
10846
- deliveredAt?: string | undefined;
10847
- cancelledAt?: string | undefined;
10848
- turnId: string;
10849
- kind: "process";
10850
- deadline: string;
10851
- timeoutSeconds: number;
10852
- pid: number;
10853
- startToken?: string | undefined;
10854
- exitFile?: string | undefined;
10855
- note?: string | undefined;
10856
- result?: {
10857
- outcome: "deadline" | "error" | "exit_file" | "exited";
10858
- observedAt: string;
10859
- exitCode?: number | undefined;
10860
- exitFileNote?: "not-an-exit-code" | undefined;
10861
- diagnostic?: string | undefined;
10862
- } | undefined;
10863
10899
  } | {
10864
10900
  id: string;
10865
10901
  source: "agent" | "cezar";
@@ -10921,6 +10957,30 @@ export declare function createRunsRoutes(deps: RunsRouteDeps): import("hono/hono
10921
10957
  reason: "outcome" | "timeout";
10922
10958
  } | undefined;
10923
10959
  wakeInputId?: string | undefined;
10960
+ } | {
10961
+ id: string;
10962
+ source: "agent" | "cezar";
10963
+ 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";
10964
+ registeredAt: string;
10965
+ phase: "cancelled" | "delivered" | "open" | "resolved";
10966
+ resolvedAt?: string | undefined;
10967
+ deliveredAt?: string | undefined;
10968
+ cancelledAt?: string | undefined;
10969
+ turnId: string;
10970
+ kind: "process";
10971
+ deadline: string;
10972
+ timeoutSeconds: number;
10973
+ pid: number;
10974
+ startToken?: string | undefined;
10975
+ exitFile?: string | undefined;
10976
+ note?: string | undefined;
10977
+ result?: {
10978
+ outcome: "deadline" | "error" | "exit_file" | "exited";
10979
+ observedAt: string;
10980
+ exitCode?: number | undefined;
10981
+ exitFileNote?: "not-an-exit-code" | undefined;
10982
+ diagnostic?: string | undefined;
10983
+ } | undefined;
10924
10984
  } | {
10925
10985
  id: string;
10926
10986
  source: "agent" | "cezar";
@@ -11051,30 +11111,6 @@ export declare function createRunsRoutes(deps: RunsRouteDeps): import("hono/hono
11051
11111
  deadline: string;
11052
11112
  seconds: number;
11053
11113
  note?: string | undefined;
11054
- } | {
11055
- id: string;
11056
- source: "agent" | "cezar";
11057
- 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";
11058
- registeredAt: string;
11059
- phase: "cancelled" | "delivered" | "open" | "resolved";
11060
- resolvedAt?: string | undefined;
11061
- deliveredAt?: string | undefined;
11062
- cancelledAt?: string | undefined;
11063
- turnId: string;
11064
- kind: "process";
11065
- deadline: string;
11066
- timeoutSeconds: number;
11067
- pid: number;
11068
- startToken?: string | undefined;
11069
- exitFile?: string | undefined;
11070
- note?: string | undefined;
11071
- result?: {
11072
- outcome: "deadline" | "error" | "exit_file" | "exited";
11073
- observedAt: string;
11074
- exitCode?: number | undefined;
11075
- exitFileNote?: "not-an-exit-code" | undefined;
11076
- diagnostic?: string | undefined;
11077
- } | undefined;
11078
11114
  } | {
11079
11115
  id: string;
11080
11116
  source: "agent" | "cezar";
@@ -11136,6 +11172,30 @@ export declare function createRunsRoutes(deps: RunsRouteDeps): import("hono/hono
11136
11172
  reason: "outcome" | "timeout";
11137
11173
  } | undefined;
11138
11174
  wakeInputId?: string | undefined;
11175
+ } | {
11176
+ id: string;
11177
+ source: "agent" | "cezar";
11178
+ 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";
11179
+ registeredAt: string;
11180
+ phase: "cancelled" | "delivered" | "open" | "resolved";
11181
+ resolvedAt?: string | undefined;
11182
+ deliveredAt?: string | undefined;
11183
+ cancelledAt?: string | undefined;
11184
+ turnId: string;
11185
+ kind: "process";
11186
+ deadline: string;
11187
+ timeoutSeconds: number;
11188
+ pid: number;
11189
+ startToken?: string | undefined;
11190
+ exitFile?: string | undefined;
11191
+ note?: string | undefined;
11192
+ result?: {
11193
+ outcome: "deadline" | "error" | "exit_file" | "exited";
11194
+ observedAt: string;
11195
+ exitCode?: number | undefined;
11196
+ exitFileNote?: "not-an-exit-code" | undefined;
11197
+ diagnostic?: string | undefined;
11198
+ } | undefined;
11139
11199
  } | {
11140
11200
  id: string;
11141
11201
  source: "agent" | "cezar";
@@ -11664,66 +11724,6 @@ export declare function createRunsRoutes(deps: RunsRouteDeps): import("hono/hono
11664
11724
  id: string;
11665
11725
  };
11666
11726
  };
11667
- } | {
11668
- output: {
11669
- error: string;
11670
- };
11671
- outputFormat: "json";
11672
- status: 404;
11673
- input: {
11674
- json: {
11675
- archiveWhenDone?: boolean | undefined;
11676
- autoMergePr?: boolean | undefined;
11677
- allowWorkers?: boolean | undefined;
11678
- allowMessaging?: boolean | undefined;
11679
- title?: string | undefined;
11680
- task?: string | undefined;
11681
- };
11682
- } & {
11683
- param: {
11684
- id: string;
11685
- };
11686
- };
11687
- } | {
11688
- output: {
11689
- error: string;
11690
- };
11691
- outputFormat: "json";
11692
- status: 400;
11693
- input: {
11694
- json: {
11695
- archiveWhenDone?: boolean | undefined;
11696
- autoMergePr?: boolean | undefined;
11697
- allowWorkers?: boolean | undefined;
11698
- allowMessaging?: boolean | undefined;
11699
- title?: string | undefined;
11700
- task?: string | undefined;
11701
- };
11702
- } & {
11703
- param: {
11704
- id: string;
11705
- };
11706
- };
11707
- } | {
11708
- output: {
11709
- error: string;
11710
- };
11711
- outputFormat: "json";
11712
- status: 409;
11713
- input: {
11714
- json: {
11715
- archiveWhenDone?: boolean | undefined;
11716
- autoMergePr?: boolean | undefined;
11717
- allowWorkers?: boolean | undefined;
11718
- allowMessaging?: boolean | undefined;
11719
- title?: string | undefined;
11720
- task?: string | undefined;
11721
- };
11722
- } & {
11723
- param: {
11724
- id: string;
11725
- };
11726
- };
11727
11727
  };
11728
11728
  };
11729
11729
  } & {
@@ -11828,7 +11828,7 @@ export declare function createRunsRoutes(deps: RunsRouteDeps): import("hono/hono
11828
11828
  error: string;
11829
11829
  };
11830
11830
  outputFormat: "json";
11831
- status: 404;
11831
+ status: 400;
11832
11832
  input: {
11833
11833
  json: {
11834
11834
  text?: string | undefined;
@@ -11847,7 +11847,7 @@ export declare function createRunsRoutes(deps: RunsRouteDeps): import("hono/hono
11847
11847
  error: string;
11848
11848
  };
11849
11849
  outputFormat: "json";
11850
- status: 409;
11850
+ status: 404;
11851
11851
  input: {
11852
11852
  json: {
11853
11853
  text?: string | undefined;
@@ -11863,10 +11863,10 @@ export declare function createRunsRoutes(deps: RunsRouteDeps): import("hono/hono
11863
11863
  };
11864
11864
  } | {
11865
11865
  output: {
11866
- delivered: true;
11866
+ error: string;
11867
11867
  };
11868
11868
  outputFormat: "json";
11869
- status: import("hono/utils/http-status").ContentfulStatusCode;
11869
+ status: 409;
11870
11870
  input: {
11871
11871
  json: {
11872
11872
  text?: string | undefined;
@@ -11882,10 +11882,10 @@ export declare function createRunsRoutes(deps: RunsRouteDeps): import("hono/hono
11882
11882
  };
11883
11883
  } | {
11884
11884
  output: {
11885
- error: string;
11885
+ delivered: true;
11886
11886
  };
11887
11887
  outputFormat: "json";
11888
- status: 400;
11888
+ status: import("hono/utils/http-status").ContentfulStatusCode;
11889
11889
  input: {
11890
11890
  json: {
11891
11891
  text?: string | undefined;
@@ -11953,7 +11953,7 @@ export declare function createRunsRoutes(deps: RunsRouteDeps): import("hono/hono
11953
11953
  error: string;
11954
11954
  };
11955
11955
  outputFormat: "json";
11956
- status: 404;
11956
+ status: 400;
11957
11957
  input: {
11958
11958
  json: {
11959
11959
  text?: string | undefined;
@@ -11974,7 +11974,7 @@ export declare function createRunsRoutes(deps: RunsRouteDeps): import("hono/hono
11974
11974
  error: string;
11975
11975
  };
11976
11976
  outputFormat: "json";
11977
- status: 400;
11977
+ status: 404;
11978
11978
  input: {
11979
11979
  json: {
11980
11980
  text?: string | undefined;
@@ -12194,10 +12194,11 @@ export declare function createRunsRoutes(deps: RunsRouteDeps): import("hono/hono
12194
12194
  "/runs/:id/open-in-cli": {
12195
12195
  $post: {
12196
12196
  output: {
12197
- error: string;
12197
+ opened: true;
12198
+ command: string;
12198
12199
  };
12199
12200
  outputFormat: "json";
12200
- status: 404 | 409;
12201
+ status: import("hono/utils/http-status").ContentfulStatusCode;
12201
12202
  input: {
12202
12203
  param: {
12203
12204
  id: string;
@@ -12205,11 +12206,10 @@ export declare function createRunsRoutes(deps: RunsRouteDeps): import("hono/hono
12205
12206
  };
12206
12207
  } | {
12207
12208
  output: {
12208
- opened: true;
12209
- command: string;
12209
+ error: string;
12210
12210
  };
12211
12211
  outputFormat: "json";
12212
- status: import("hono/utils/http-status").ContentfulStatusCode;
12212
+ status: 404 | 409;
12213
12213
  input: {
12214
12214
  param: {
12215
12215
  id: string;
@@ -12224,7 +12224,7 @@ export declare function createRunsRoutes(deps: RunsRouteDeps): import("hono/hono
12224
12224
  error: string;
12225
12225
  };
12226
12226
  outputFormat: "json";
12227
- status: 404 | 409;
12227
+ status: 400;
12228
12228
  input: {
12229
12229
  json: {
12230
12230
  target: string;
@@ -12237,10 +12237,11 @@ export declare function createRunsRoutes(deps: RunsRouteDeps): import("hono/hono
12237
12237
  };
12238
12238
  } | {
12239
12239
  output: {
12240
- error: string;
12240
+ opened: true;
12241
+ path: string;
12241
12242
  };
12242
12243
  outputFormat: "json";
12243
- status: 400;
12244
+ status: import("hono/utils/http-status").ContentfulStatusCode;
12244
12245
  input: {
12245
12246
  json: {
12246
12247
  target: string;
@@ -12253,11 +12254,10 @@ export declare function createRunsRoutes(deps: RunsRouteDeps): import("hono/hono
12253
12254
  };
12254
12255
  } | {
12255
12256
  output: {
12256
- opened: true;
12257
- path: string;
12257
+ error: string;
12258
12258
  };
12259
12259
  outputFormat: "json";
12260
- status: import("hono/utils/http-status").ContentfulStatusCode;
12260
+ status: 404 | 409;
12261
12261
  input: {
12262
12262
  json: {
12263
12263
  target: string;
@@ -12273,20 +12273,20 @@ export declare function createRunsRoutes(deps: RunsRouteDeps): import("hono/hono
12273
12273
  } & {
12274
12274
  "/runs/:id/handoff": {
12275
12275
  $get: {
12276
- output: {
12277
- error: string;
12278
- };
12279
- outputFormat: "json";
12280
- status: 404;
12276
+ output: string;
12277
+ outputFormat: "text";
12278
+ status: 200;
12281
12279
  input: {
12282
12280
  param: {
12283
12281
  id: string;
12284
12282
  };
12285
12283
  };
12286
12284
  } | {
12287
- output: string;
12288
- outputFormat: "text";
12289
- status: 200;
12285
+ output: {
12286
+ error: string;
12287
+ };
12288
+ outputFormat: "json";
12289
+ status: 404;
12290
12290
  input: {
12291
12291
  param: {
12292
12292
  id: string;
@@ -12297,9 +12297,12 @@ export declare function createRunsRoutes(deps: RunsRouteDeps): import("hono/hono
12297
12297
  } & {
12298
12298
  "/runs/:id/images/:file": {
12299
12299
  $get: {
12300
- output: {};
12301
- outputFormat: string;
12302
- status: import("hono/utils/http-status").StatusCode;
12300
+ output: {
12301
+ error: string;
12302
+ code?: "invalid_input" | undefined;
12303
+ };
12304
+ outputFormat: "json";
12305
+ status: 400;
12303
12306
  input: {
12304
12307
  param: {
12305
12308
  id: string;
@@ -12307,12 +12310,9 @@ export declare function createRunsRoutes(deps: RunsRouteDeps): import("hono/hono
12307
12310
  };
12308
12311
  };
12309
12312
  } | {
12310
- output: {
12311
- error: string;
12312
- code?: "invalid_input" | undefined;
12313
- };
12314
- outputFormat: "json";
12315
- status: 400;
12313
+ output: {};
12314
+ outputFormat: string;
12315
+ status: import("hono/utils/http-status").StatusCode;
12316
12316
  input: {
12317
12317
  param: {
12318
12318
  id: string;
@@ -12324,17 +12324,6 @@ export declare function createRunsRoutes(deps: RunsRouteDeps): import("hono/hono
12324
12324
  } & {
12325
12325
  "/runs/:id/diff": {
12326
12326
  $get: {
12327
- output: {
12328
- error: string;
12329
- };
12330
- outputFormat: "json";
12331
- status: 404 | 409;
12332
- input: {
12333
- param: {
12334
- id: string;
12335
- };
12336
- };
12337
- } | {
12338
12327
  output: string;
12339
12328
  outputFormat: "text";
12340
12329
  status: import("hono/utils/http-status").ContentfulStatusCode;
@@ -12343,11 +12332,7 @@ export declare function createRunsRoutes(deps: RunsRouteDeps): import("hono/hono
12343
12332
  id: string;
12344
12333
  };
12345
12334
  };
12346
- };
12347
- };
12348
- } & {
12349
- "/runs/:id/changes": {
12350
- $get: {
12335
+ } | {
12351
12336
  output: {
12352
12337
  error: string;
12353
12338
  };
@@ -12358,7 +12343,11 @@ export declare function createRunsRoutes(deps: RunsRouteDeps): import("hono/hono
12358
12343
  id: string;
12359
12344
  };
12360
12345
  };
12361
- } | {
12346
+ };
12347
+ };
12348
+ } & {
12349
+ "/runs/:id/changes": {
12350
+ $get: {
12362
12351
  output: {
12363
12352
  files: {
12364
12353
  path: string;
@@ -12387,11 +12376,7 @@ export declare function createRunsRoutes(deps: RunsRouteDeps): import("hono/hono
12387
12376
  id: string;
12388
12377
  };
12389
12378
  };
12390
- };
12391
- };
12392
- } & {
12393
- "/runs/:id/commits": {
12394
- $get: {
12379
+ } | {
12395
12380
  output: {
12396
12381
  error: string;
12397
12382
  };
@@ -12402,7 +12387,11 @@ export declare function createRunsRoutes(deps: RunsRouteDeps): import("hono/hono
12402
12387
  id: string;
12403
12388
  };
12404
12389
  };
12405
- } | {
12390
+ };
12391
+ };
12392
+ } & {
12393
+ "/runs/:id/commits": {
12394
+ $get: {
12406
12395
  output: {
12407
12396
  commits: {
12408
12397
  sha: string;
@@ -12418,11 +12407,7 @@ export declare function createRunsRoutes(deps: RunsRouteDeps): import("hono/hono
12418
12407
  id: string;
12419
12408
  };
12420
12409
  };
12421
- };
12422
- };
12423
- } & {
12424
- "/runs/:id/commit/:sha": {
12425
- $get: {
12410
+ } | {
12426
12411
  output: {
12427
12412
  error: string;
12428
12413
  };
@@ -12431,11 +12416,13 @@ export declare function createRunsRoutes(deps: RunsRouteDeps): import("hono/hono
12431
12416
  input: {
12432
12417
  param: {
12433
12418
  id: string;
12434
- } & {
12435
- sha: string;
12436
12419
  };
12437
12420
  };
12438
- } | {
12421
+ };
12422
+ };
12423
+ } & {
12424
+ "/runs/:id/commit/:sha": {
12425
+ $get: {
12439
12426
  output: {
12440
12427
  sha: string;
12441
12428
  subject: string;
@@ -12466,6 +12453,19 @@ export declare function createRunsRoutes(deps: RunsRouteDeps): import("hono/hono
12466
12453
  sha: string;
12467
12454
  };
12468
12455
  };
12456
+ } | {
12457
+ output: {
12458
+ error: string;
12459
+ };
12460
+ outputFormat: "json";
12461
+ status: 404 | 409;
12462
+ input: {
12463
+ param: {
12464
+ id: string;
12465
+ } & {
12466
+ sha: string;
12467
+ };
12468
+ };
12469
12469
  };
12470
12470
  };
12471
12471
  } & {
@@ -12501,22 +12501,6 @@ export declare function createRunsRoutes(deps: RunsRouteDeps): import("hono/hono
12501
12501
  raw?: "1" | undefined;
12502
12502
  };
12503
12503
  };
12504
- } | {
12505
- output: {
12506
- error: string;
12507
- };
12508
- outputFormat: "json";
12509
- status: 404 | 409;
12510
- input: {
12511
- param: {
12512
- id: string;
12513
- };
12514
- } & {
12515
- query: {
12516
- path: string | string[];
12517
- raw?: "1" | undefined;
12518
- };
12519
- };
12520
12504
  } | {
12521
12505
  output: {
12522
12506
  type: "file";
@@ -12553,6 +12537,22 @@ export declare function createRunsRoutes(deps: RunsRouteDeps): import("hono/hono
12553
12537
  raw?: "1" | undefined;
12554
12538
  };
12555
12539
  };
12540
+ } | {
12541
+ output: {
12542
+ error: string;
12543
+ };
12544
+ outputFormat: "json";
12545
+ status: 404 | 409;
12546
+ input: {
12547
+ param: {
12548
+ id: string;
12549
+ };
12550
+ } & {
12551
+ query: {
12552
+ path: string | string[];
12553
+ raw?: "1" | undefined;
12554
+ };
12555
+ };
12556
12556
  };
12557
12557
  };
12558
12558
  } & {
@@ -12617,6 +12617,18 @@ export declare function createRunsRoutes(deps: RunsRouteDeps): import("hono/hono
12617
12617
  artifactId: string;
12618
12618
  };
12619
12619
  };
12620
+ } | {
12621
+ output: {
12622
+ error: string;
12623
+ };
12624
+ outputFormat: "json";
12625
+ status: 404;
12626
+ input: {
12627
+ param: {
12628
+ id: string;
12629
+ artifactId: string;
12630
+ };
12631
+ };
12620
12632
  } | {
12621
12633
  output: {
12622
12634
  type: "file";
@@ -12645,18 +12657,6 @@ export declare function createRunsRoutes(deps: RunsRouteDeps): import("hono/hono
12645
12657
  artifactId: string;
12646
12658
  };
12647
12659
  };
12648
- } | {
12649
- output: {
12650
- error: string;
12651
- };
12652
- outputFormat: "json";
12653
- status: 404;
12654
- input: {
12655
- param: {
12656
- id: string;
12657
- artifactId: string;
12658
- };
12659
- };
12660
12660
  };
12661
12661
  };
12662
12662
  } & {
@@ -12834,10 +12834,16 @@ export declare function createRunsRoutes(deps: RunsRouteDeps): import("hono/hono
12834
12834
  };
12835
12835
  } | {
12836
12836
  output: {
12837
- error: string;
12837
+ type: 'dir';
12838
+ path: string;
12839
+ entries: {
12840
+ name: string;
12841
+ type: 'dir' | 'file';
12842
+ size?: number;
12843
+ }[];
12838
12844
  };
12839
12845
  outputFormat: "json";
12840
- status: 404 | 409;
12846
+ status: import("hono/utils/http-status").ContentfulStatusCode;
12841
12847
  input: {
12842
12848
  query: {
12843
12849
  path?: string | undefined;
@@ -12850,13 +12856,12 @@ export declare function createRunsRoutes(deps: RunsRouteDeps): import("hono/hono
12850
12856
  };
12851
12857
  } | {
12852
12858
  output: {
12853
- type: 'dir';
12859
+ type: 'file';
12854
12860
  path: string;
12855
- entries: {
12856
- name: string;
12857
- type: 'dir' | 'file';
12858
- size?: number;
12859
- }[];
12861
+ size: number;
12862
+ binary: boolean;
12863
+ tooLarge: boolean;
12864
+ content?: string | undefined;
12860
12865
  };
12861
12866
  outputFormat: "json";
12862
12867
  status: import("hono/utils/http-status").ContentfulStatusCode;
@@ -12872,15 +12877,10 @@ export declare function createRunsRoutes(deps: RunsRouteDeps): import("hono/hono
12872
12877
  };
12873
12878
  } | {
12874
12879
  output: {
12875
- type: 'file';
12876
- path: string;
12877
- size: number;
12878
- binary: boolean;
12879
- tooLarge: boolean;
12880
- content?: string | undefined;
12880
+ error: string;
12881
12881
  };
12882
12882
  outputFormat: "json";
12883
- status: import("hono/utils/http-status").ContentfulStatusCode;
12883
+ status: 404 | 409;
12884
12884
  input: {
12885
12885
  query: {
12886
12886
  path?: string | undefined;
@@ -12897,10 +12897,11 @@ export declare function createRunsRoutes(deps: RunsRouteDeps): import("hono/hono
12897
12897
  "/runs/:id/git/commit": {
12898
12898
  $post: {
12899
12899
  output: {
12900
- error: string;
12900
+ committed: true;
12901
+ sha: string;
12901
12902
  };
12902
12903
  outputFormat: "json";
12903
- status: 404 | 409;
12904
+ status: import("hono/utils/http-status").ContentfulStatusCode;
12904
12905
  input: {
12905
12906
  json: {
12906
12907
  message: string;
@@ -12912,11 +12913,10 @@ export declare function createRunsRoutes(deps: RunsRouteDeps): import("hono/hono
12912
12913
  };
12913
12914
  } | {
12914
12915
  output: {
12915
- committed: true;
12916
- sha: string;
12916
+ error: string;
12917
12917
  };
12918
12918
  outputFormat: "json";
12919
- status: import("hono/utils/http-status").ContentfulStatusCode;
12919
+ status: 404 | 409;
12920
12920
  input: {
12921
12921
  json: {
12922
12922
  message: string;
@@ -12932,10 +12932,13 @@ export declare function createRunsRoutes(deps: RunsRouteDeps): import("hono/hono
12932
12932
  "/runs/:id/git/push": {
12933
12933
  $post: {
12934
12934
  output: {
12935
- error: string;
12935
+ pushed: true;
12936
+ branch: string;
12937
+ remote: string;
12938
+ upstreamSet: boolean;
12936
12939
  };
12937
12940
  outputFormat: "json";
12938
- status: 404 | 409;
12941
+ status: import("hono/utils/http-status").ContentfulStatusCode;
12939
12942
  input: {
12940
12943
  param: {
12941
12944
  id: string;
@@ -12943,13 +12946,10 @@ export declare function createRunsRoutes(deps: RunsRouteDeps): import("hono/hono
12943
12946
  };
12944
12947
  } | {
12945
12948
  output: {
12946
- pushed: true;
12947
- branch: string;
12948
- remote: string;
12949
- upstreamSet: boolean;
12949
+ error: string;
12950
12950
  };
12951
12951
  outputFormat: "json";
12952
- status: import("hono/utils/http-status").ContentfulStatusCode;
12952
+ status: 404 | 409;
12953
12953
  input: {
12954
12954
  param: {
12955
12955
  id: string;
@@ -12961,10 +12961,11 @@ export declare function createRunsRoutes(deps: RunsRouteDeps): import("hono/hono
12961
12961
  "/runs/:id/pr": {
12962
12962
  $post: {
12963
12963
  output: {
12964
- error: string;
12964
+ url: string;
12965
+ dryRun: boolean;
12965
12966
  };
12966
12967
  outputFormat: "json";
12967
- status: 404 | 409;
12968
+ status: 201;
12968
12969
  input: {
12969
12970
  param: {
12970
12971
  id: string;
@@ -12972,11 +12973,10 @@ export declare function createRunsRoutes(deps: RunsRouteDeps): import("hono/hono
12972
12973
  };
12973
12974
  } | {
12974
12975
  output: {
12975
- url: string;
12976
- dryRun: boolean;
12976
+ error: string;
12977
12977
  };
12978
12978
  outputFormat: "json";
12979
- status: 201;
12979
+ status: 404 | 409;
12980
12980
  input: {
12981
12981
  param: {
12982
12982
  id: string;
@@ -12988,10 +12988,10 @@ export declare function createRunsRoutes(deps: RunsRouteDeps): import("hono/hono
12988
12988
  "/runs/:id/remove-worktree": {
12989
12989
  $post: {
12990
12990
  output: {
12991
- error: string;
12991
+ removed: true;
12992
12992
  };
12993
12993
  outputFormat: "json";
12994
- status: 404 | 409;
12994
+ status: import("hono/utils/http-status").ContentfulStatusCode;
12995
12995
  input: {
12996
12996
  param: {
12997
12997
  id: string;
@@ -12999,10 +12999,10 @@ export declare function createRunsRoutes(deps: RunsRouteDeps): import("hono/hono
12999
12999
  };
13000
13000
  } | {
13001
13001
  output: {
13002
- removed: true;
13002
+ error: string;
13003
13003
  };
13004
13004
  outputFormat: "json";
13005
- status: import("hono/utils/http-status").ContentfulStatusCode;
13005
+ status: 404 | 409;
13006
13006
  input: {
13007
13007
  param: {
13008
13008
  id: string;
@@ -13014,10 +13014,10 @@ export declare function createRunsRoutes(deps: RunsRouteDeps): import("hono/hono
13014
13014
  "/runs/:id": {
13015
13015
  $delete: {
13016
13016
  output: {
13017
- error: string;
13017
+ deleted: true;
13018
13018
  };
13019
13019
  outputFormat: "json";
13020
- status: 404 | 409;
13020
+ status: import("hono/utils/http-status").ContentfulStatusCode;
13021
13021
  input: {
13022
13022
  param: {
13023
13023
  id: string;
@@ -13025,10 +13025,10 @@ export declare function createRunsRoutes(deps: RunsRouteDeps): import("hono/hono
13025
13025
  };
13026
13026
  } | {
13027
13027
  output: {
13028
- deleted: true;
13028
+ error: string;
13029
13029
  };
13030
13030
  outputFormat: "json";
13031
- status: import("hono/utils/http-status").ContentfulStatusCode;
13031
+ status: 404 | 409;
13032
13032
  input: {
13033
13033
  param: {
13034
13034
  id: string;