@hearsay-tools/squawk 0.19.0-dev.9292 → 0.19.0-dev.9303

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 (79) hide show
  1. package/dist/ci-wait/controller.d.ts +7 -7
  2. package/dist/delegation/transport.d.ts +78 -78
  3. package/dist/features/automations/tools.d.ts +8 -8
  4. package/dist/features/reports/routes.d.ts +2 -2
  5. package/dist/server/activity-routes.d.ts +23 -23
  6. package/dist/server/live-routes.d.ts +6 -6
  7. package/dist/server/live-trace.d.ts +30 -0
  8. package/dist/server/live-trace.js +114 -0
  9. package/dist/server/live-trace.js.map +1 -0
  10. package/dist/server/projects-routes.d.ts +41 -41
  11. package/dist/server/repo-routes.d.ts +39 -39
  12. package/dist/server/runs-routes.d.ts +1008 -1008
  13. package/dist/server/server.d.ts +1430 -1430
  14. package/dist/server/start-server.js +2 -1
  15. package/dist/server/start-server.js.map +1 -1
  16. package/dist/server/ws.d.ts +3 -0
  17. package/dist/server/ws.js +22 -3
  18. package/dist/server/ws.js.map +1 -1
  19. package/package.json +4 -4
  20. package/web/dist/assets/{accounts-section-BHP8K_nY.js → accounts-section-D0fD5_oC.js} +1 -1
  21. package/web/dist/assets/{activity-motion-DEEIuaki.js → activity-motion-Bvti-WsN.js} +1 -1
  22. package/web/dist/assets/{activity-route-vtZmQsDB.js → activity-route-DpCed1FK.js} +1 -1
  23. package/web/dist/assets/{agent-config-section-CbnVaIx7.js → agent-config-section-Dg3CHyQg.js} +1 -1
  24. package/web/dist/assets/{agent-defaults-section-Blxd9IpY.js → agent-defaults-section-DUnbC2jD.js} +1 -1
  25. package/web/dist/assets/{appearance-B_y9StVj.js → appearance-BIkspcin.js} +1 -1
  26. package/web/dist/assets/{archive-on-merge-field-DlChylWt.js → archive-on-merge-field-ums1XG7J.js} +1 -1
  27. package/web/dist/assets/{ask-card-DzWKRJ1x.js → ask-card-BzL2ast4.js} +1 -1
  28. package/web/dist/assets/{automations-route-DxE9u9p0.js → automations-route-DoQyJjq7.js} +1 -1
  29. package/web/dist/assets/{commit-list-SxBDO_q5.js → commit-list-_gC1WeK7.js} +1 -1
  30. package/web/dist/assets/{diff-B6Ye5Xg9.js → diff-C2uXVNqT.js} +2 -2
  31. package/web/dist/assets/{diff-controls-BFQOIJ97.js → diff-controls-Cdyu5VmQ.js} +1 -1
  32. package/web/dist/assets/{diff-view-BkF3xtYW.js → diff-view-CO-DUaDR.js} +1 -1
  33. package/web/dist/assets/{discard-changes-dialog-CaS0koto.js → discard-changes-dialog-DMdSF5NI.js} +1 -1
  34. package/web/dist/assets/{file-preview-ByWn2eDz.js → file-preview-B_hRLwNb.js} +1 -1
  35. package/web/dist/assets/{git-toolbar-COI-N232.js → git-toolbar-CPJHgx_i.js} +1 -1
  36. package/web/dist/assets/{github-CAQJIg-J.js → github-jWNYNhlm.js} +1 -1
  37. package/web/dist/assets/{global-activity-route-99-UqSlC.js → global-activity-route-DEQNisSg.js} +1 -1
  38. package/web/dist/assets/{index-BAXboPqe.js → index-DFbBULI2.js} +4 -4
  39. package/web/dist/assets/{index-B5vWsR62.css → index-DK3IHEql.css} +1 -1
  40. package/web/dist/assets/{markdown-D7p7x8Pe.js → markdown-zOvCJUWD.js} +1 -1
  41. package/web/dist/assets/{option-select-BvsSDWBz.js → option-select-DxfdyXNu.js} +1 -1
  42. package/web/dist/assets/{preferences-section-DkdcKxmS.js → preferences-section-C716_p4g.js} +1 -1
  43. package/web/dist/assets/{preview-pane-connected-B3f0fR6q.js → preview-pane-connected-DLWk_Eig.js} +1 -1
  44. package/web/dist/assets/{project-location-CvZY7aOx.js → project-location-BiihGhiY.js} +1 -1
  45. package/web/dist/assets/{projects-section-DGzDfKN_.js → projects-section-BTk3C5Li.js} +1 -1
  46. package/web/dist/assets/{prompt-templates-section-DbHe-j9Z.js → prompt-templates-section-DcySeJWP.js} +1 -1
  47. package/web/dist/assets/{remote-settings-notice-ByPYNQyB.js → remote-settings-notice-B4FNidkI.js} +1 -1
  48. package/web/dist/assets/{repo-git-4rKalM-L.js → repo-git-CDt8HAv5.js} +1 -1
  49. package/web/dist/assets/{report-reader-IAYhP0KQ.js → report-reader-CBurj3TL.js} +1 -1
  50. package/web/dist/assets/{reports-BP_hajNp.js → reports-Bk1C9SrI.js} +1 -1
  51. package/web/dist/assets/{resources-section-QNbLbu3j.js → resources-section-C5xzoOVU.js} +1 -1
  52. package/web/dist/assets/{review-notes-drafts-CB8u-M0E.js → review-notes-drafts-D-0B4Hfk.js} +1 -1
  53. package/web/dist/assets/{review-panel-Bw8yG2xg.js → review-panel-DxpdPY11.js} +1 -1
  54. package/web/dist/assets/{review-strip-BojRnCkg.js → review-strip-B8iISCGG.js} +1 -1
  55. package/web/dist/assets/{run-diff-CMZgQG9B.js → run-diff-BdPIyvG8.js} +1 -1
  56. package/web/dist/assets/{run-header-D7LZBbaL.js → run-header-UuSi3Rs3.js} +1 -1
  57. package/web/dist/assets/{select-D9BIA_Kn.js → select-B-01knTg.js} +1 -1
  58. package/web/dist/assets/{session-context-section-CxFRidmv.js → session-context-section-Lnl20eGo.js} +1 -1
  59. package/web/dist/assets/{settings-agent-picker-Cy_ZpuNd.js → settings-agent-picker-BMlPxA7u.js} +1 -1
  60. package/web/dist/assets/{settings-save-bar-DzbndGGQ.js → settings-save-bar-C874vU-b.js} +1 -1
  61. package/web/dist/assets/{settings-shell-DS8k_xP6.js → settings-shell-BRURc5-1.js} +1 -1
  62. package/web/dist/assets/{sidebar-section-CY978tNF.js → sidebar-section-DTyi7yiX.js} +1 -1
  63. package/web/dist/assets/{skills-WZ5YRCbF.js → skills-CYWEus3G.js} +1 -1
  64. package/web/dist/assets/{task-changes-Dd2KHRQ6.js → task-changes-T9Ov77_d.js} +1 -1
  65. package/web/dist/assets/{task-commits-De0FVgKP.js → task-commits-Du0Ej96B.js} +1 -1
  66. package/web/dist/assets/{task-file-scope-C_cr_ix-.js → task-file-scope-Cf1g6fmN.js} +1 -1
  67. package/web/dist/assets/{task-files-resMdu9u.js → task-files-DNjY1qDW.js} +1 -1
  68. package/web/dist/assets/{task-github-item-Hz1RbO88.js → task-github-item-CV5xCa1c.js} +1 -1
  69. package/web/dist/assets/{task-thread-D7vUf0g7.js → task-thread-CW7L2byD.js} +1 -1
  70. package/web/dist/assets/{thread-state-Bjh3rImx.js → thread-state-DtyCRKlh.js} +1 -1
  71. package/web/dist/assets/{unified-diff-weWjKedZ.js → unified-diff-BYQqKg7r.js} +1 -1
  72. package/web/dist/assets/{use-finish-run-BuyJkeEN.js → use-finish-run-ChTdSBCK.js} +1 -1
  73. package/web/dist/assets/{use-hand-to-agent-state-CSDPzpM7.js → use-hand-to-agent-state-Cp55yL0Z.js} +1 -1
  74. package/web/dist/assets/use-path-bases-Bfn7xDeC.js +1 -0
  75. package/web/dist/assets/{workflows-DtnnAq4w.js → workflows-Cgm-NY9Q.js} +1 -1
  76. package/web/dist/assets/{workspace-tools-CSLTEwLa.js → workspace-tools-Cm4efDvO.js} +1 -1
  77. package/web/dist/assets/{worktrees-section-Crp31i8F.js → worktrees-section-Bt9waGZ3.js} +1 -1
  78. package/web/dist/index.html +2 -2
  79. package/web/dist/assets/use-path-bases-DgEkRWYi.js +0 -1
@@ -421,6 +421,30 @@ export declare function createRunsRoutes(deps: RunsRouteDeps): import("hono/hono
421
421
  deadline: string;
422
422
  seconds: number;
423
423
  note?: string | undefined;
424
+ } | {
425
+ id: string;
426
+ source: "agent" | "cezar";
427
+ via: "ask-line" | "budget" | "cez-message-wait" | "cez-worker-wait" | "cezar_ask" | "cezar_wait" | "cezar_wait_for_ci" | "completion" | "monitoring-line" | "native-ask" | "native-subagents" | "no-wait" | "schedule-wakeup";
428
+ registeredAt: string;
429
+ phase: "cancelled" | "delivered" | "open" | "resolved";
430
+ resolvedAt?: string | undefined;
431
+ deliveredAt?: string | undefined;
432
+ cancelledAt?: string | undefined;
433
+ turnId: string;
434
+ kind: "process";
435
+ deadline: string;
436
+ timeoutSeconds: number;
437
+ pid: number;
438
+ startToken?: string | undefined;
439
+ exitFile?: string | undefined;
440
+ note?: string | undefined;
441
+ result?: {
442
+ outcome: "deadline" | "error" | "exit_file" | "exited";
443
+ observedAt: string;
444
+ exitCode?: number | undefined;
445
+ exitFileNote?: "not-an-exit-code" | undefined;
446
+ diagnostic?: string | undefined;
447
+ } | undefined;
424
448
  } | {
425
449
  id: string;
426
450
  source: "agent" | "cezar";
@@ -482,30 +506,6 @@ export declare function createRunsRoutes(deps: RunsRouteDeps): import("hono/hono
482
506
  reason: "outcome" | "timeout";
483
507
  } | undefined;
484
508
  wakeInputId?: string | undefined;
485
- } | {
486
- id: string;
487
- source: "agent" | "cezar";
488
- via: "ask-line" | "budget" | "cez-message-wait" | "cez-worker-wait" | "cezar_ask" | "cezar_wait" | "cezar_wait_for_ci" | "completion" | "monitoring-line" | "native-ask" | "native-subagents" | "no-wait" | "schedule-wakeup";
489
- registeredAt: string;
490
- phase: "cancelled" | "delivered" | "open" | "resolved";
491
- resolvedAt?: string | undefined;
492
- deliveredAt?: string | undefined;
493
- cancelledAt?: string | undefined;
494
- turnId: string;
495
- kind: "process";
496
- deadline: string;
497
- timeoutSeconds: number;
498
- pid: number;
499
- startToken?: string | undefined;
500
- exitFile?: string | undefined;
501
- note?: string | undefined;
502
- result?: {
503
- outcome: "deadline" | "error" | "exit_file" | "exited";
504
- observedAt: string;
505
- exitCode?: number | undefined;
506
- exitFileNote?: "not-an-exit-code" | undefined;
507
- diagnostic?: string | undefined;
508
- } | undefined;
509
509
  } | {
510
510
  id: string;
511
511
  source: "agent" | "cezar";
@@ -638,6 +638,30 @@ export declare function createRunsRoutes(deps: RunsRouteDeps): import("hono/hono
638
638
  deadline: string;
639
639
  seconds: number;
640
640
  note?: string | undefined;
641
+ } | {
642
+ id: string;
643
+ source: "agent" | "cezar";
644
+ via: "ask-line" | "budget" | "cez-message-wait" | "cez-worker-wait" | "cezar_ask" | "cezar_wait" | "cezar_wait_for_ci" | "completion" | "monitoring-line" | "native-ask" | "native-subagents" | "no-wait" | "schedule-wakeup";
645
+ registeredAt: string;
646
+ phase: "cancelled" | "delivered" | "open" | "resolved";
647
+ resolvedAt?: string | undefined;
648
+ deliveredAt?: string | undefined;
649
+ cancelledAt?: string | undefined;
650
+ turnId: string;
651
+ kind: "process";
652
+ deadline: string;
653
+ timeoutSeconds: number;
654
+ pid: number;
655
+ startToken?: string | undefined;
656
+ exitFile?: string | undefined;
657
+ note?: string | undefined;
658
+ result?: {
659
+ outcome: "deadline" | "error" | "exit_file" | "exited";
660
+ observedAt: string;
661
+ exitCode?: number | undefined;
662
+ exitFileNote?: "not-an-exit-code" | undefined;
663
+ diagnostic?: string | undefined;
664
+ } | undefined;
641
665
  } | {
642
666
  id: string;
643
667
  source: "agent" | "cezar";
@@ -699,30 +723,6 @@ export declare function createRunsRoutes(deps: RunsRouteDeps): import("hono/hono
699
723
  reason: "outcome" | "timeout";
700
724
  } | undefined;
701
725
  wakeInputId?: string | undefined;
702
- } | {
703
- id: string;
704
- source: "agent" | "cezar";
705
- via: "ask-line" | "budget" | "cez-message-wait" | "cez-worker-wait" | "cezar_ask" | "cezar_wait" | "cezar_wait_for_ci" | "completion" | "monitoring-line" | "native-ask" | "native-subagents" | "no-wait" | "schedule-wakeup";
706
- registeredAt: string;
707
- phase: "cancelled" | "delivered" | "open" | "resolved";
708
- resolvedAt?: string | undefined;
709
- deliveredAt?: string | undefined;
710
- cancelledAt?: string | undefined;
711
- turnId: string;
712
- kind: "process";
713
- deadline: string;
714
- timeoutSeconds: number;
715
- pid: number;
716
- startToken?: string | undefined;
717
- exitFile?: string | undefined;
718
- note?: string | undefined;
719
- result?: {
720
- outcome: "deadline" | "error" | "exit_file" | "exited";
721
- observedAt: string;
722
- exitCode?: number | undefined;
723
- exitFileNote?: "not-an-exit-code" | undefined;
724
- diagnostic?: string | undefined;
725
- } | undefined;
726
726
  } | {
727
727
  id: string;
728
728
  source: "agent" | "cezar";
@@ -854,6 +854,30 @@ export declare function createRunsRoutes(deps: RunsRouteDeps): import("hono/hono
854
854
  deadline: string;
855
855
  seconds: number;
856
856
  note?: string | undefined;
857
+ } | {
858
+ id: string;
859
+ source: "agent" | "cezar";
860
+ via: "ask-line" | "budget" | "cez-message-wait" | "cez-worker-wait" | "cezar_ask" | "cezar_wait" | "cezar_wait_for_ci" | "completion" | "monitoring-line" | "native-ask" | "native-subagents" | "no-wait" | "schedule-wakeup";
861
+ registeredAt: string;
862
+ phase: "cancelled" | "delivered" | "open" | "resolved";
863
+ resolvedAt?: string | undefined;
864
+ deliveredAt?: string | undefined;
865
+ cancelledAt?: string | undefined;
866
+ turnId: string;
867
+ kind: "process";
868
+ deadline: string;
869
+ timeoutSeconds: number;
870
+ pid: number;
871
+ startToken?: string | undefined;
872
+ exitFile?: string | undefined;
873
+ note?: string | undefined;
874
+ result?: {
875
+ outcome: "deadline" | "error" | "exit_file" | "exited";
876
+ observedAt: string;
877
+ exitCode?: number | undefined;
878
+ exitFileNote?: "not-an-exit-code" | undefined;
879
+ diagnostic?: string | undefined;
880
+ } | undefined;
857
881
  } | {
858
882
  id: string;
859
883
  source: "agent" | "cezar";
@@ -915,30 +939,6 @@ export declare function createRunsRoutes(deps: RunsRouteDeps): import("hono/hono
915
939
  reason: "outcome" | "timeout";
916
940
  } | undefined;
917
941
  wakeInputId?: string | undefined;
918
- } | {
919
- id: string;
920
- source: "agent" | "cezar";
921
- via: "ask-line" | "budget" | "cez-message-wait" | "cez-worker-wait" | "cezar_ask" | "cezar_wait" | "cezar_wait_for_ci" | "completion" | "monitoring-line" | "native-ask" | "native-subagents" | "no-wait" | "schedule-wakeup";
922
- registeredAt: string;
923
- phase: "cancelled" | "delivered" | "open" | "resolved";
924
- resolvedAt?: string | undefined;
925
- deliveredAt?: string | undefined;
926
- cancelledAt?: string | undefined;
927
- turnId: string;
928
- kind: "process";
929
- deadline: string;
930
- timeoutSeconds: number;
931
- pid: number;
932
- startToken?: string | undefined;
933
- exitFile?: string | undefined;
934
- note?: string | undefined;
935
- result?: {
936
- outcome: "deadline" | "error" | "exit_file" | "exited";
937
- observedAt: string;
938
- exitCode?: number | undefined;
939
- exitFileNote?: "not-an-exit-code" | undefined;
940
- diagnostic?: string | undefined;
941
- } | undefined;
942
942
  } | {
943
943
  id: string;
944
944
  source: "agent" | "cezar";
@@ -1234,6 +1234,18 @@ export declare function createRunsRoutes(deps: RunsRouteDeps): import("hono/hono
1234
1234
  } & {
1235
1235
  "/run-summaries": {
1236
1236
  $get: {
1237
+ output: {
1238
+ error: string;
1239
+ code?: "invalid_input" | undefined;
1240
+ };
1241
+ outputFormat: "json";
1242
+ status: 400;
1243
+ input: {
1244
+ query: {
1245
+ archived?: "all" | "recent" | undefined;
1246
+ };
1247
+ };
1248
+ } | {
1237
1249
  output: {
1238
1250
  id: string;
1239
1251
  title: string;
@@ -1371,18 +1383,6 @@ export declare function createRunsRoutes(deps: RunsRouteDeps): import("hono/hono
1371
1383
  archived?: "all" | "recent" | undefined;
1372
1384
  };
1373
1385
  };
1374
- } | {
1375
- output: {
1376
- error: string;
1377
- code?: "invalid_input" | undefined;
1378
- };
1379
- outputFormat: "json";
1380
- status: 400;
1381
- input: {
1382
- query: {
1383
- archived?: "all" | "recent" | undefined;
1384
- };
1385
- };
1386
1386
  };
1387
1387
  };
1388
1388
  } & {
@@ -1744,11 +1744,24 @@ export declare function createRunsRoutes(deps: RunsRouteDeps): import("hono/hono
1744
1744
  "/runs/:id/worker-destroy": {
1745
1745
  $post: {
1746
1746
  output: {
1747
- error: string;
1748
- code?: "invalid_input" | undefined;
1747
+ workerId: string;
1748
+ state: "complete" | "incomplete";
1749
+ work?: {
1750
+ uncommittedFiles: number;
1751
+ commits: number;
1752
+ } | undefined;
1753
+ deleted?: ({
1754
+ kind: "worktree";
1755
+ path: string;
1756
+ } | {
1757
+ kind: "branch";
1758
+ ref: string;
1759
+ })[] | undefined;
1760
+ remaining: ("branch" | "process" | "worktree")[];
1761
+ error?: string | undefined;
1749
1762
  };
1750
1763
  outputFormat: "json";
1751
- status: 400;
1764
+ status: 200;
1752
1765
  input: {
1753
1766
  query: {
1754
1767
  [x: string]: string | string[];
@@ -1764,22 +1777,11 @@ export declare function createRunsRoutes(deps: RunsRouteDeps): import("hono/hono
1764
1777
  };
1765
1778
  } | {
1766
1779
  output: {
1767
- readonly code: "capacity_limit" | "denied_scope" | "incompatible_state" | "incomplete_cleanup" | "invalid_baseline" | "invalid_input" | "unauthenticated" | "unavailable_diff" | "unavailable_transport";
1768
- readonly error: string;
1769
- readonly modelChoices?: {
1770
- runner: string;
1771
- requestedModel: string;
1772
- availableModels: {
1773
- id: string;
1774
- label: string;
1775
- description: string;
1776
- effortLevels?: ("high" | "low" | "max" | "medium" | "xhigh")[] | undefined;
1777
- }[];
1778
- otherRunners: string[];
1779
- } | undefined;
1780
+ error: string;
1781
+ code?: "invalid_input" | undefined;
1780
1782
  };
1781
1783
  outputFormat: "json";
1782
- status: 400 | 401 | 403 | 409 | 503;
1784
+ status: 400;
1783
1785
  input: {
1784
1786
  query: {
1785
1787
  [x: string]: string | string[];
@@ -1812,7 +1814,7 @@ export declare function createRunsRoutes(deps: RunsRouteDeps): import("hono/hono
1812
1814
  error?: string | undefined;
1813
1815
  };
1814
1816
  outputFormat: "json";
1815
- status: 200;
1817
+ status: 409;
1816
1818
  input: {
1817
1819
  query: {
1818
1820
  [x: string]: string | string[];
@@ -1828,24 +1830,22 @@ export declare function createRunsRoutes(deps: RunsRouteDeps): import("hono/hono
1828
1830
  };
1829
1831
  } | {
1830
1832
  output: {
1831
- workerId: string;
1832
- state: "complete" | "incomplete";
1833
- work?: {
1834
- uncommittedFiles: number;
1835
- commits: number;
1833
+ readonly code: "capacity_limit" | "denied_scope" | "incompatible_state" | "incomplete_cleanup" | "invalid_baseline" | "invalid_input" | "unauthenticated" | "unavailable_diff" | "unavailable_transport";
1834
+ readonly error: string;
1835
+ readonly modelChoices?: {
1836
+ runner: string;
1837
+ requestedModel: string;
1838
+ availableModels: {
1839
+ id: string;
1840
+ label: string;
1841
+ description: string;
1842
+ effortLevels?: ("high" | "low" | "max" | "medium" | "xhigh")[] | undefined;
1843
+ }[];
1844
+ otherRunners: string[];
1836
1845
  } | undefined;
1837
- deleted?: ({
1838
- kind: "worktree";
1839
- path: string;
1840
- } | {
1841
- kind: "branch";
1842
- ref: string;
1843
- })[] | undefined;
1844
- remaining: ("branch" | "process" | "worktree")[];
1845
- error?: string | undefined;
1846
1846
  };
1847
1847
  outputFormat: "json";
1848
- status: 409;
1848
+ status: 400 | 401 | 403 | 409 | 503;
1849
1849
  input: {
1850
1850
  query: {
1851
1851
  [x: string]: string | string[];
@@ -1897,6 +1897,21 @@ export declare function createRunsRoutes(deps: RunsRouteDeps): import("hono/hono
1897
1897
  } & {
1898
1898
  "/runs/:id/archive": {
1899
1899
  $post: {
1900
+ output: {
1901
+ error: string;
1902
+ };
1903
+ outputFormat: "json";
1904
+ status: 404;
1905
+ input: {
1906
+ json: {
1907
+ archived?: boolean | undefined;
1908
+ };
1909
+ } & {
1910
+ param: {
1911
+ id: string;
1912
+ };
1913
+ };
1914
+ } | {
1900
1915
  output: {
1901
1916
  archiveWhenDone?: boolean | undefined;
1902
1917
  autoMergePr?: boolean | undefined;
@@ -2297,13 +2312,37 @@ export declare function createRunsRoutes(deps: RunsRouteDeps): import("hono/hono
2297
2312
  deliveredAt?: string | undefined;
2298
2313
  cancelledAt?: string | undefined;
2299
2314
  turnId: string;
2300
- kind: "human";
2301
- questions?: {
2302
- id?: string | undefined;
2303
- header: string;
2304
- question: string;
2305
- options?: {
2306
- label: string;
2315
+ kind: "process";
2316
+ deadline: string;
2317
+ timeoutSeconds: number;
2318
+ pid: number;
2319
+ startToken?: string | undefined;
2320
+ exitFile?: string | undefined;
2321
+ note?: string | undefined;
2322
+ result?: {
2323
+ outcome: "deadline" | "error" | "exit_file" | "exited";
2324
+ observedAt: string;
2325
+ exitCode?: number | undefined;
2326
+ exitFileNote?: "not-an-exit-code" | undefined;
2327
+ diagnostic?: string | undefined;
2328
+ } | undefined;
2329
+ } | {
2330
+ id: string;
2331
+ source: "agent" | "cezar";
2332
+ via: "ask-line" | "budget" | "cez-message-wait" | "cez-worker-wait" | "cezar_ask" | "cezar_wait" | "cezar_wait_for_ci" | "completion" | "monitoring-line" | "native-ask" | "native-subagents" | "no-wait" | "schedule-wakeup";
2333
+ registeredAt: string;
2334
+ phase: "cancelled" | "delivered" | "open" | "resolved";
2335
+ resolvedAt?: string | undefined;
2336
+ deliveredAt?: string | undefined;
2337
+ cancelledAt?: string | undefined;
2338
+ turnId: string;
2339
+ kind: "human";
2340
+ questions?: {
2341
+ id?: string | undefined;
2342
+ header: string;
2343
+ question: string;
2344
+ options?: {
2345
+ label: string;
2307
2346
  description?: string | undefined;
2308
2347
  }[] | undefined;
2309
2348
  multiSelect?: boolean | undefined;
@@ -2348,30 +2387,6 @@ export declare function createRunsRoutes(deps: RunsRouteDeps): import("hono/hono
2348
2387
  reason: "outcome" | "timeout";
2349
2388
  } | undefined;
2350
2389
  wakeInputId?: string | undefined;
2351
- } | {
2352
- id: string;
2353
- source: "agent" | "cezar";
2354
- via: "ask-line" | "budget" | "cez-message-wait" | "cez-worker-wait" | "cezar_ask" | "cezar_wait" | "cezar_wait_for_ci" | "completion" | "monitoring-line" | "native-ask" | "native-subagents" | "no-wait" | "schedule-wakeup";
2355
- registeredAt: string;
2356
- phase: "cancelled" | "delivered" | "open" | "resolved";
2357
- resolvedAt?: string | undefined;
2358
- deliveredAt?: string | undefined;
2359
- cancelledAt?: string | undefined;
2360
- turnId: string;
2361
- kind: "process";
2362
- deadline: string;
2363
- timeoutSeconds: number;
2364
- pid: number;
2365
- startToken?: string | undefined;
2366
- exitFile?: string | undefined;
2367
- note?: string | undefined;
2368
- result?: {
2369
- outcome: "deadline" | "error" | "exit_file" | "exited";
2370
- observedAt: string;
2371
- exitCode?: number | undefined;
2372
- exitFileNote?: "not-an-exit-code" | undefined;
2373
- diagnostic?: string | undefined;
2374
- } | undefined;
2375
2390
  } | {
2376
2391
  id: string;
2377
2392
  source: "agent" | "cezar";
@@ -2504,6 +2519,30 @@ export declare function createRunsRoutes(deps: RunsRouteDeps): import("hono/hono
2504
2519
  deadline: string;
2505
2520
  seconds: number;
2506
2521
  note?: string | undefined;
2522
+ } | {
2523
+ id: string;
2524
+ source: "agent" | "cezar";
2525
+ via: "ask-line" | "budget" | "cez-message-wait" | "cez-worker-wait" | "cezar_ask" | "cezar_wait" | "cezar_wait_for_ci" | "completion" | "monitoring-line" | "native-ask" | "native-subagents" | "no-wait" | "schedule-wakeup";
2526
+ registeredAt: string;
2527
+ phase: "cancelled" | "delivered" | "open" | "resolved";
2528
+ resolvedAt?: string | undefined;
2529
+ deliveredAt?: string | undefined;
2530
+ cancelledAt?: string | undefined;
2531
+ turnId: string;
2532
+ kind: "process";
2533
+ deadline: string;
2534
+ timeoutSeconds: number;
2535
+ pid: number;
2536
+ startToken?: string | undefined;
2537
+ exitFile?: string | undefined;
2538
+ note?: string | undefined;
2539
+ result?: {
2540
+ outcome: "deadline" | "error" | "exit_file" | "exited";
2541
+ observedAt: string;
2542
+ exitCode?: number | undefined;
2543
+ exitFileNote?: "not-an-exit-code" | undefined;
2544
+ diagnostic?: string | undefined;
2545
+ } | undefined;
2507
2546
  } | {
2508
2547
  id: string;
2509
2548
  source: "agent" | "cezar";
@@ -2565,30 +2604,6 @@ export declare function createRunsRoutes(deps: RunsRouteDeps): import("hono/hono
2565
2604
  reason: "outcome" | "timeout";
2566
2605
  } | undefined;
2567
2606
  wakeInputId?: string | undefined;
2568
- } | {
2569
- id: string;
2570
- source: "agent" | "cezar";
2571
- via: "ask-line" | "budget" | "cez-message-wait" | "cez-worker-wait" | "cezar_ask" | "cezar_wait" | "cezar_wait_for_ci" | "completion" | "monitoring-line" | "native-ask" | "native-subagents" | "no-wait" | "schedule-wakeup";
2572
- registeredAt: string;
2573
- phase: "cancelled" | "delivered" | "open" | "resolved";
2574
- resolvedAt?: string | undefined;
2575
- deliveredAt?: string | undefined;
2576
- cancelledAt?: string | undefined;
2577
- turnId: string;
2578
- kind: "process";
2579
- deadline: string;
2580
- timeoutSeconds: number;
2581
- pid: number;
2582
- startToken?: string | undefined;
2583
- exitFile?: string | undefined;
2584
- note?: string | undefined;
2585
- result?: {
2586
- outcome: "deadline" | "error" | "exit_file" | "exited";
2587
- observedAt: string;
2588
- exitCode?: number | undefined;
2589
- exitFileNote?: "not-an-exit-code" | undefined;
2590
- diagnostic?: string | undefined;
2591
- } | undefined;
2592
2607
  } | {
2593
2608
  id: string;
2594
2609
  source: "agent" | "cezar";
@@ -2720,6 +2735,30 @@ export declare function createRunsRoutes(deps: RunsRouteDeps): import("hono/hono
2720
2735
  deadline: string;
2721
2736
  seconds: number;
2722
2737
  note?: string | undefined;
2738
+ } | {
2739
+ id: string;
2740
+ source: "agent" | "cezar";
2741
+ via: "ask-line" | "budget" | "cez-message-wait" | "cez-worker-wait" | "cezar_ask" | "cezar_wait" | "cezar_wait_for_ci" | "completion" | "monitoring-line" | "native-ask" | "native-subagents" | "no-wait" | "schedule-wakeup";
2742
+ registeredAt: string;
2743
+ phase: "cancelled" | "delivered" | "open" | "resolved";
2744
+ resolvedAt?: string | undefined;
2745
+ deliveredAt?: string | undefined;
2746
+ cancelledAt?: string | undefined;
2747
+ turnId: string;
2748
+ kind: "process";
2749
+ deadline: string;
2750
+ timeoutSeconds: number;
2751
+ pid: number;
2752
+ startToken?: string | undefined;
2753
+ exitFile?: string | undefined;
2754
+ note?: string | undefined;
2755
+ result?: {
2756
+ outcome: "deadline" | "error" | "exit_file" | "exited";
2757
+ observedAt: string;
2758
+ exitCode?: number | undefined;
2759
+ exitFileNote?: "not-an-exit-code" | undefined;
2760
+ diagnostic?: string | undefined;
2761
+ } | undefined;
2723
2762
  } | {
2724
2763
  id: string;
2725
2764
  source: "agent" | "cezar";
@@ -2781,30 +2820,6 @@ export declare function createRunsRoutes(deps: RunsRouteDeps): import("hono/hono
2781
2820
  reason: "outcome" | "timeout";
2782
2821
  } | undefined;
2783
2822
  wakeInputId?: string | undefined;
2784
- } | {
2785
- id: string;
2786
- source: "agent" | "cezar";
2787
- via: "ask-line" | "budget" | "cez-message-wait" | "cez-worker-wait" | "cezar_ask" | "cezar_wait" | "cezar_wait_for_ci" | "completion" | "monitoring-line" | "native-ask" | "native-subagents" | "no-wait" | "schedule-wakeup";
2788
- registeredAt: string;
2789
- phase: "cancelled" | "delivered" | "open" | "resolved";
2790
- resolvedAt?: string | undefined;
2791
- deliveredAt?: string | undefined;
2792
- cancelledAt?: string | undefined;
2793
- turnId: string;
2794
- kind: "process";
2795
- deadline: string;
2796
- timeoutSeconds: number;
2797
- pid: number;
2798
- startToken?: string | undefined;
2799
- exitFile?: string | undefined;
2800
- note?: string | undefined;
2801
- result?: {
2802
- outcome: "deadline" | "error" | "exit_file" | "exited";
2803
- observedAt: string;
2804
- exitCode?: number | undefined;
2805
- exitFileNote?: "not-an-exit-code" | undefined;
2806
- diagnostic?: string | undefined;
2807
- } | undefined;
2808
2823
  } | {
2809
2824
  id: string;
2810
2825
  source: "agent" | "cezar";
@@ -3095,32 +3110,32 @@ export declare function createRunsRoutes(deps: RunsRouteDeps): import("hono/hono
3095
3110
  id: string;
3096
3111
  };
3097
3112
  };
3098
- } | {
3113
+ };
3114
+ };
3115
+ } & {
3116
+ "/runs/:id/pin": {
3117
+ $post: {
3099
3118
  output: {
3100
3119
  error: string;
3120
+ code?: "invalid_input" | undefined;
3101
3121
  };
3102
3122
  outputFormat: "json";
3103
- status: 404;
3123
+ status: 400;
3104
3124
  input: {
3105
- json: {
3106
- archived?: boolean | undefined;
3107
- };
3108
- } & {
3109
3125
  param: {
3110
3126
  id: string;
3111
3127
  };
3128
+ } & {
3129
+ json: {
3130
+ pinned?: boolean | undefined;
3131
+ };
3112
3132
  };
3113
- };
3114
- };
3115
- } & {
3116
- "/runs/:id/pin": {
3117
- $post: {
3133
+ } | {
3118
3134
  output: {
3119
3135
  error: string;
3120
- code?: "invalid_input" | undefined;
3121
3136
  };
3122
3137
  outputFormat: "json";
3123
- status: 400;
3138
+ status: 404;
3124
3139
  input: {
3125
3140
  param: {
3126
3141
  id: string;
@@ -3521,6 +3536,30 @@ export declare function createRunsRoutes(deps: RunsRouteDeps): import("hono/hono
3521
3536
  deadline: string;
3522
3537
  seconds: number;
3523
3538
  note?: string | undefined;
3539
+ } | {
3540
+ id: string;
3541
+ source: "agent" | "cezar";
3542
+ via: "ask-line" | "budget" | "cez-message-wait" | "cez-worker-wait" | "cezar_ask" | "cezar_wait" | "cezar_wait_for_ci" | "completion" | "monitoring-line" | "native-ask" | "native-subagents" | "no-wait" | "schedule-wakeup";
3543
+ registeredAt: string;
3544
+ phase: "cancelled" | "delivered" | "open" | "resolved";
3545
+ resolvedAt?: string | undefined;
3546
+ deliveredAt?: string | undefined;
3547
+ cancelledAt?: string | undefined;
3548
+ turnId: string;
3549
+ kind: "process";
3550
+ deadline: string;
3551
+ timeoutSeconds: number;
3552
+ pid: number;
3553
+ startToken?: string | undefined;
3554
+ exitFile?: string | undefined;
3555
+ note?: string | undefined;
3556
+ result?: {
3557
+ outcome: "deadline" | "error" | "exit_file" | "exited";
3558
+ observedAt: string;
3559
+ exitCode?: number | undefined;
3560
+ exitFileNote?: "not-an-exit-code" | undefined;
3561
+ diagnostic?: string | undefined;
3562
+ } | undefined;
3524
3563
  } | {
3525
3564
  id: string;
3526
3565
  source: "agent" | "cezar";
@@ -3582,30 +3621,6 @@ export declare function createRunsRoutes(deps: RunsRouteDeps): import("hono/hono
3582
3621
  reason: "outcome" | "timeout";
3583
3622
  } | undefined;
3584
3623
  wakeInputId?: string | undefined;
3585
- } | {
3586
- id: string;
3587
- source: "agent" | "cezar";
3588
- via: "ask-line" | "budget" | "cez-message-wait" | "cez-worker-wait" | "cezar_ask" | "cezar_wait" | "cezar_wait_for_ci" | "completion" | "monitoring-line" | "native-ask" | "native-subagents" | "no-wait" | "schedule-wakeup";
3589
- registeredAt: string;
3590
- phase: "cancelled" | "delivered" | "open" | "resolved";
3591
- resolvedAt?: string | undefined;
3592
- deliveredAt?: string | undefined;
3593
- cancelledAt?: string | undefined;
3594
- turnId: string;
3595
- kind: "process";
3596
- deadline: string;
3597
- timeoutSeconds: number;
3598
- pid: number;
3599
- startToken?: string | undefined;
3600
- exitFile?: string | undefined;
3601
- note?: string | undefined;
3602
- result?: {
3603
- outcome: "deadline" | "error" | "exit_file" | "exited";
3604
- observedAt: string;
3605
- exitCode?: number | undefined;
3606
- exitFileNote?: "not-an-exit-code" | undefined;
3607
- diagnostic?: string | undefined;
3608
- } | undefined;
3609
3624
  } | {
3610
3625
  id: string;
3611
3626
  source: "agent" | "cezar";
@@ -3738,6 +3753,30 @@ export declare function createRunsRoutes(deps: RunsRouteDeps): import("hono/hono
3738
3753
  deadline: string;
3739
3754
  seconds: number;
3740
3755
  note?: string | undefined;
3756
+ } | {
3757
+ id: string;
3758
+ source: "agent" | "cezar";
3759
+ via: "ask-line" | "budget" | "cez-message-wait" | "cez-worker-wait" | "cezar_ask" | "cezar_wait" | "cezar_wait_for_ci" | "completion" | "monitoring-line" | "native-ask" | "native-subagents" | "no-wait" | "schedule-wakeup";
3760
+ registeredAt: string;
3761
+ phase: "cancelled" | "delivered" | "open" | "resolved";
3762
+ resolvedAt?: string | undefined;
3763
+ deliveredAt?: string | undefined;
3764
+ cancelledAt?: string | undefined;
3765
+ turnId: string;
3766
+ kind: "process";
3767
+ deadline: string;
3768
+ timeoutSeconds: number;
3769
+ pid: number;
3770
+ startToken?: string | undefined;
3771
+ exitFile?: string | undefined;
3772
+ note?: string | undefined;
3773
+ result?: {
3774
+ outcome: "deadline" | "error" | "exit_file" | "exited";
3775
+ observedAt: string;
3776
+ exitCode?: number | undefined;
3777
+ exitFileNote?: "not-an-exit-code" | undefined;
3778
+ diagnostic?: string | undefined;
3779
+ } | undefined;
3741
3780
  } | {
3742
3781
  id: string;
3743
3782
  source: "agent" | "cezar";
@@ -3809,34 +3848,10 @@ export declare function createRunsRoutes(deps: RunsRouteDeps): import("hono/hono
3809
3848
  deliveredAt?: string | undefined;
3810
3849
  cancelledAt?: string | undefined;
3811
3850
  turnId: string;
3812
- kind: "process";
3851
+ kind: "peer";
3813
3852
  deadline: string;
3814
3853
  timeoutSeconds: number;
3815
- pid: number;
3816
- startToken?: string | undefined;
3817
- exitFile?: string | undefined;
3818
- note?: string | undefined;
3819
- result?: {
3820
- outcome: "deadline" | "error" | "exit_file" | "exited";
3821
- observedAt: string;
3822
- exitCode?: number | undefined;
3823
- exitFileNote?: "not-an-exit-code" | undefined;
3824
- diagnostic?: string | undefined;
3825
- } | undefined;
3826
- } | {
3827
- id: string;
3828
- source: "agent" | "cezar";
3829
- via: "ask-line" | "budget" | "cez-message-wait" | "cez-worker-wait" | "cezar_ask" | "cezar_wait" | "cezar_wait_for_ci" | "completion" | "monitoring-line" | "native-ask" | "native-subagents" | "no-wait" | "schedule-wakeup";
3830
- registeredAt: string;
3831
- phase: "cancelled" | "delivered" | "open" | "resolved";
3832
- resolvedAt?: string | undefined;
3833
- deliveredAt?: string | undefined;
3834
- cancelledAt?: string | undefined;
3835
- turnId: string;
3836
- kind: "peer";
3837
- deadline: string;
3838
- timeoutSeconds: number;
3839
- peerIds: string[];
3854
+ peerIds: string[];
3840
3855
  result?: {
3841
3856
  reason: "message";
3842
3857
  peerRunId: string;
@@ -3954,6 +3969,30 @@ export declare function createRunsRoutes(deps: RunsRouteDeps): import("hono/hono
3954
3969
  deadline: string;
3955
3970
  seconds: number;
3956
3971
  note?: string | undefined;
3972
+ } | {
3973
+ id: string;
3974
+ source: "agent" | "cezar";
3975
+ via: "ask-line" | "budget" | "cez-message-wait" | "cez-worker-wait" | "cezar_ask" | "cezar_wait" | "cezar_wait_for_ci" | "completion" | "monitoring-line" | "native-ask" | "native-subagents" | "no-wait" | "schedule-wakeup";
3976
+ registeredAt: string;
3977
+ phase: "cancelled" | "delivered" | "open" | "resolved";
3978
+ resolvedAt?: string | undefined;
3979
+ deliveredAt?: string | undefined;
3980
+ cancelledAt?: string | undefined;
3981
+ turnId: string;
3982
+ kind: "process";
3983
+ deadline: string;
3984
+ timeoutSeconds: number;
3985
+ pid: number;
3986
+ startToken?: string | undefined;
3987
+ exitFile?: string | undefined;
3988
+ note?: string | undefined;
3989
+ result?: {
3990
+ outcome: "deadline" | "error" | "exit_file" | "exited";
3991
+ observedAt: string;
3992
+ exitCode?: number | undefined;
3993
+ exitFileNote?: "not-an-exit-code" | undefined;
3994
+ diagnostic?: string | undefined;
3995
+ } | undefined;
3957
3996
  } | {
3958
3997
  id: string;
3959
3998
  source: "agent" | "cezar";
@@ -4015,30 +4054,6 @@ export declare function createRunsRoutes(deps: RunsRouteDeps): import("hono/hono
4015
4054
  reason: "outcome" | "timeout";
4016
4055
  } | undefined;
4017
4056
  wakeInputId?: string | undefined;
4018
- } | {
4019
- id: string;
4020
- source: "agent" | "cezar";
4021
- via: "ask-line" | "budget" | "cez-message-wait" | "cez-worker-wait" | "cezar_ask" | "cezar_wait" | "cezar_wait_for_ci" | "completion" | "monitoring-line" | "native-ask" | "native-subagents" | "no-wait" | "schedule-wakeup";
4022
- registeredAt: string;
4023
- phase: "cancelled" | "delivered" | "open" | "resolved";
4024
- resolvedAt?: string | undefined;
4025
- deliveredAt?: string | undefined;
4026
- cancelledAt?: string | undefined;
4027
- turnId: string;
4028
- kind: "process";
4029
- deadline: string;
4030
- timeoutSeconds: number;
4031
- pid: number;
4032
- startToken?: string | undefined;
4033
- exitFile?: string | undefined;
4034
- note?: string | undefined;
4035
- result?: {
4036
- outcome: "deadline" | "error" | "exit_file" | "exited";
4037
- observedAt: string;
4038
- exitCode?: number | undefined;
4039
- exitFileNote?: "not-an-exit-code" | undefined;
4040
- diagnostic?: string | undefined;
4041
- } | undefined;
4042
4057
  } | {
4043
4058
  id: string;
4044
4059
  source: "agent" | "cezar";
@@ -4329,21 +4344,6 @@ export declare function createRunsRoutes(deps: RunsRouteDeps): import("hono/hono
4329
4344
  pinned?: boolean | undefined;
4330
4345
  };
4331
4346
  };
4332
- } | {
4333
- output: {
4334
- error: string;
4335
- };
4336
- outputFormat: "json";
4337
- status: 404;
4338
- input: {
4339
- param: {
4340
- id: string;
4341
- };
4342
- } & {
4343
- json: {
4344
- pinned?: boolean | undefined;
4345
- };
4346
- };
4347
4347
  };
4348
4348
  };
4349
4349
  } & {
@@ -4365,22 +4365,6 @@ export declare function createRunsRoutes(deps: RunsRouteDeps): import("hono/hono
4365
4365
  message?: string | undefined;
4366
4366
  };
4367
4367
  };
4368
- } | {
4369
- output: {
4370
- error: string;
4371
- };
4372
- outputFormat: "json";
4373
- status: 400 | 404 | 409;
4374
- input: {
4375
- param: {
4376
- id: string;
4377
- };
4378
- } & {
4379
- json: {
4380
- notify: boolean;
4381
- message?: string | undefined;
4382
- };
4383
- };
4384
4368
  } | {
4385
4369
  output: {
4386
4370
  archiveWhenDone?: boolean | undefined;
@@ -4519,6 +4503,30 @@ export declare function createRunsRoutes(deps: RunsRouteDeps): import("hono/hono
4519
4503
  deadline: string;
4520
4504
  seconds: number;
4521
4505
  note?: string | undefined;
4506
+ } | {
4507
+ id: string;
4508
+ source: "agent" | "cezar";
4509
+ via: "ask-line" | "budget" | "cez-message-wait" | "cez-worker-wait" | "cezar_ask" | "cezar_wait" | "cezar_wait_for_ci" | "completion" | "monitoring-line" | "native-ask" | "native-subagents" | "no-wait" | "schedule-wakeup";
4510
+ registeredAt: string;
4511
+ phase: "cancelled" | "delivered" | "open" | "resolved";
4512
+ resolvedAt?: string | undefined;
4513
+ deliveredAt?: string | undefined;
4514
+ cancelledAt?: string | undefined;
4515
+ turnId: string;
4516
+ kind: "process";
4517
+ deadline: string;
4518
+ timeoutSeconds: number;
4519
+ pid: number;
4520
+ startToken?: string | undefined;
4521
+ exitFile?: string | undefined;
4522
+ note?: string | undefined;
4523
+ result?: {
4524
+ outcome: "deadline" | "error" | "exit_file" | "exited";
4525
+ observedAt: string;
4526
+ exitCode?: number | undefined;
4527
+ exitFileNote?: "not-an-exit-code" | undefined;
4528
+ diagnostic?: string | undefined;
4529
+ } | undefined;
4522
4530
  } | {
4523
4531
  id: string;
4524
4532
  source: "agent" | "cezar";
@@ -4580,30 +4588,6 @@ export declare function createRunsRoutes(deps: RunsRouteDeps): import("hono/hono
4580
4588
  reason: "outcome" | "timeout";
4581
4589
  } | undefined;
4582
4590
  wakeInputId?: string | undefined;
4583
- } | {
4584
- id: string;
4585
- source: "agent" | "cezar";
4586
- via: "ask-line" | "budget" | "cez-message-wait" | "cez-worker-wait" | "cezar_ask" | "cezar_wait" | "cezar_wait_for_ci" | "completion" | "monitoring-line" | "native-ask" | "native-subagents" | "no-wait" | "schedule-wakeup";
4587
- registeredAt: string;
4588
- phase: "cancelled" | "delivered" | "open" | "resolved";
4589
- resolvedAt?: string | undefined;
4590
- deliveredAt?: string | undefined;
4591
- cancelledAt?: string | undefined;
4592
- turnId: string;
4593
- kind: "process";
4594
- deadline: string;
4595
- timeoutSeconds: number;
4596
- pid: number;
4597
- startToken?: string | undefined;
4598
- exitFile?: string | undefined;
4599
- note?: string | undefined;
4600
- result?: {
4601
- outcome: "deadline" | "error" | "exit_file" | "exited";
4602
- observedAt: string;
4603
- exitCode?: number | undefined;
4604
- exitFileNote?: "not-an-exit-code" | undefined;
4605
- diagnostic?: string | undefined;
4606
- } | undefined;
4607
4591
  } | {
4608
4592
  id: string;
4609
4593
  source: "agent" | "cezar";
@@ -4736,6 +4720,30 @@ export declare function createRunsRoutes(deps: RunsRouteDeps): import("hono/hono
4736
4720
  deadline: string;
4737
4721
  seconds: number;
4738
4722
  note?: string | undefined;
4723
+ } | {
4724
+ id: string;
4725
+ source: "agent" | "cezar";
4726
+ via: "ask-line" | "budget" | "cez-message-wait" | "cez-worker-wait" | "cezar_ask" | "cezar_wait" | "cezar_wait_for_ci" | "completion" | "monitoring-line" | "native-ask" | "native-subagents" | "no-wait" | "schedule-wakeup";
4727
+ registeredAt: string;
4728
+ phase: "cancelled" | "delivered" | "open" | "resolved";
4729
+ resolvedAt?: string | undefined;
4730
+ deliveredAt?: string | undefined;
4731
+ cancelledAt?: string | undefined;
4732
+ turnId: string;
4733
+ kind: "process";
4734
+ deadline: string;
4735
+ timeoutSeconds: number;
4736
+ pid: number;
4737
+ startToken?: string | undefined;
4738
+ exitFile?: string | undefined;
4739
+ note?: string | undefined;
4740
+ result?: {
4741
+ outcome: "deadline" | "error" | "exit_file" | "exited";
4742
+ observedAt: string;
4743
+ exitCode?: number | undefined;
4744
+ exitFileNote?: "not-an-exit-code" | undefined;
4745
+ diagnostic?: string | undefined;
4746
+ } | undefined;
4739
4747
  } | {
4740
4748
  id: string;
4741
4749
  source: "agent" | "cezar";
@@ -4797,30 +4805,6 @@ export declare function createRunsRoutes(deps: RunsRouteDeps): import("hono/hono
4797
4805
  reason: "outcome" | "timeout";
4798
4806
  } | undefined;
4799
4807
  wakeInputId?: string | undefined;
4800
- } | {
4801
- id: string;
4802
- source: "agent" | "cezar";
4803
- via: "ask-line" | "budget" | "cez-message-wait" | "cez-worker-wait" | "cezar_ask" | "cezar_wait" | "cezar_wait_for_ci" | "completion" | "monitoring-line" | "native-ask" | "native-subagents" | "no-wait" | "schedule-wakeup";
4804
- registeredAt: string;
4805
- phase: "cancelled" | "delivered" | "open" | "resolved";
4806
- resolvedAt?: string | undefined;
4807
- deliveredAt?: string | undefined;
4808
- cancelledAt?: string | undefined;
4809
- turnId: string;
4810
- kind: "process";
4811
- deadline: string;
4812
- timeoutSeconds: number;
4813
- pid: number;
4814
- startToken?: string | undefined;
4815
- exitFile?: string | undefined;
4816
- note?: string | undefined;
4817
- result?: {
4818
- outcome: "deadline" | "error" | "exit_file" | "exited";
4819
- observedAt: string;
4820
- exitCode?: number | undefined;
4821
- exitFileNote?: "not-an-exit-code" | undefined;
4822
- diagnostic?: string | undefined;
4823
- } | undefined;
4824
4808
  } | {
4825
4809
  id: string;
4826
4810
  source: "agent" | "cezar";
@@ -4952,6 +4936,30 @@ export declare function createRunsRoutes(deps: RunsRouteDeps): import("hono/hono
4952
4936
  deadline: string;
4953
4937
  seconds: number;
4954
4938
  note?: string | undefined;
4939
+ } | {
4940
+ id: string;
4941
+ source: "agent" | "cezar";
4942
+ via: "ask-line" | "budget" | "cez-message-wait" | "cez-worker-wait" | "cezar_ask" | "cezar_wait" | "cezar_wait_for_ci" | "completion" | "monitoring-line" | "native-ask" | "native-subagents" | "no-wait" | "schedule-wakeup";
4943
+ registeredAt: string;
4944
+ phase: "cancelled" | "delivered" | "open" | "resolved";
4945
+ resolvedAt?: string | undefined;
4946
+ deliveredAt?: string | undefined;
4947
+ cancelledAt?: string | undefined;
4948
+ turnId: string;
4949
+ kind: "process";
4950
+ deadline: string;
4951
+ timeoutSeconds: number;
4952
+ pid: number;
4953
+ startToken?: string | undefined;
4954
+ exitFile?: string | undefined;
4955
+ note?: string | undefined;
4956
+ result?: {
4957
+ outcome: "deadline" | "error" | "exit_file" | "exited";
4958
+ observedAt: string;
4959
+ exitCode?: number | undefined;
4960
+ exitFileNote?: "not-an-exit-code" | undefined;
4961
+ diagnostic?: string | undefined;
4962
+ } | undefined;
4955
4963
  } | {
4956
4964
  id: string;
4957
4965
  source: "agent" | "cezar";
@@ -5013,30 +5021,6 @@ export declare function createRunsRoutes(deps: RunsRouteDeps): import("hono/hono
5013
5021
  reason: "outcome" | "timeout";
5014
5022
  } | undefined;
5015
5023
  wakeInputId?: string | undefined;
5016
- } | {
5017
- id: string;
5018
- source: "agent" | "cezar";
5019
- via: "ask-line" | "budget" | "cez-message-wait" | "cez-worker-wait" | "cezar_ask" | "cezar_wait" | "cezar_wait_for_ci" | "completion" | "monitoring-line" | "native-ask" | "native-subagents" | "no-wait" | "schedule-wakeup";
5020
- registeredAt: string;
5021
- phase: "cancelled" | "delivered" | "open" | "resolved";
5022
- resolvedAt?: string | undefined;
5023
- deliveredAt?: string | undefined;
5024
- cancelledAt?: string | undefined;
5025
- turnId: string;
5026
- kind: "process";
5027
- deadline: string;
5028
- timeoutSeconds: number;
5029
- pid: number;
5030
- startToken?: string | undefined;
5031
- exitFile?: string | undefined;
5032
- note?: string | undefined;
5033
- result?: {
5034
- outcome: "deadline" | "error" | "exit_file" | "exited";
5035
- observedAt: string;
5036
- exitCode?: number | undefined;
5037
- exitFileNote?: "not-an-exit-code" | undefined;
5038
- diagnostic?: string | undefined;
5039
- } | undefined;
5040
5024
  } | {
5041
5025
  id: string;
5042
5026
  source: "agent" | "cezar";
@@ -5581,24 +5565,40 @@ export declare function createRunsRoutes(deps: RunsRouteDeps): import("hono/hono
5581
5565
  message?: string | undefined;
5582
5566
  };
5583
5567
  };
5584
- };
5585
- };
5586
- } & {
5587
- "/runs/:id/auto-resume": {
5588
- $delete: {
5568
+ } | {
5589
5569
  output: {
5590
5570
  error: string;
5591
5571
  };
5592
5572
  outputFormat: "json";
5593
- status: 404;
5573
+ status: 400 | 404 | 409;
5594
5574
  input: {
5595
5575
  param: {
5596
5576
  id: string;
5597
5577
  };
5598
- };
5599
- } | {
5600
- output: {
5601
- cancelled: true;
5578
+ } & {
5579
+ json: {
5580
+ notify: boolean;
5581
+ message?: string | undefined;
5582
+ };
5583
+ };
5584
+ };
5585
+ };
5586
+ } & {
5587
+ "/runs/:id/auto-resume": {
5588
+ $delete: {
5589
+ output: {
5590
+ error: string;
5591
+ };
5592
+ outputFormat: "json";
5593
+ status: 404;
5594
+ input: {
5595
+ param: {
5596
+ id: string;
5597
+ };
5598
+ };
5599
+ } | {
5600
+ output: {
5601
+ cancelled: true;
5602
5602
  };
5603
5603
  outputFormat: "json";
5604
5604
  status: import("hono/utils/http-status").ContentfulStatusCode;
@@ -5612,6 +5612,17 @@ export declare function createRunsRoutes(deps: RunsRouteDeps): import("hono/hono
5612
5612
  } & {
5613
5613
  "/runs/:id/read": {
5614
5614
  $post: {
5615
+ output: {
5616
+ error: string;
5617
+ };
5618
+ outputFormat: "json";
5619
+ status: 404;
5620
+ input: {
5621
+ param: {
5622
+ id: string;
5623
+ };
5624
+ };
5625
+ } | {
5615
5626
  output: {
5616
5627
  archiveWhenDone?: boolean | undefined;
5617
5628
  autoMergePr?: boolean | undefined;
@@ -6002,6 +6013,30 @@ export declare function createRunsRoutes(deps: RunsRouteDeps): import("hono/hono
6002
6013
  deadline: string;
6003
6014
  seconds: number;
6004
6015
  note?: string | undefined;
6016
+ } | {
6017
+ id: string;
6018
+ source: "agent" | "cezar";
6019
+ via: "ask-line" | "budget" | "cez-message-wait" | "cez-worker-wait" | "cezar_ask" | "cezar_wait" | "cezar_wait_for_ci" | "completion" | "monitoring-line" | "native-ask" | "native-subagents" | "no-wait" | "schedule-wakeup";
6020
+ registeredAt: string;
6021
+ phase: "cancelled" | "delivered" | "open" | "resolved";
6022
+ resolvedAt?: string | undefined;
6023
+ deliveredAt?: string | undefined;
6024
+ cancelledAt?: string | undefined;
6025
+ turnId: string;
6026
+ kind: "process";
6027
+ deadline: string;
6028
+ timeoutSeconds: number;
6029
+ pid: number;
6030
+ startToken?: string | undefined;
6031
+ exitFile?: string | undefined;
6032
+ note?: string | undefined;
6033
+ result?: {
6034
+ outcome: "deadline" | "error" | "exit_file" | "exited";
6035
+ observedAt: string;
6036
+ exitCode?: number | undefined;
6037
+ exitFileNote?: "not-an-exit-code" | undefined;
6038
+ diagnostic?: string | undefined;
6039
+ } | undefined;
6005
6040
  } | {
6006
6041
  id: string;
6007
6042
  source: "agent" | "cezar";
@@ -6063,30 +6098,6 @@ export declare function createRunsRoutes(deps: RunsRouteDeps): import("hono/hono
6063
6098
  reason: "outcome" | "timeout";
6064
6099
  } | undefined;
6065
6100
  wakeInputId?: string | undefined;
6066
- } | {
6067
- id: string;
6068
- source: "agent" | "cezar";
6069
- via: "ask-line" | "budget" | "cez-message-wait" | "cez-worker-wait" | "cezar_ask" | "cezar_wait" | "cezar_wait_for_ci" | "completion" | "monitoring-line" | "native-ask" | "native-subagents" | "no-wait" | "schedule-wakeup";
6070
- registeredAt: string;
6071
- phase: "cancelled" | "delivered" | "open" | "resolved";
6072
- resolvedAt?: string | undefined;
6073
- deliveredAt?: string | undefined;
6074
- cancelledAt?: string | undefined;
6075
- turnId: string;
6076
- kind: "process";
6077
- deadline: string;
6078
- timeoutSeconds: number;
6079
- pid: number;
6080
- startToken?: string | undefined;
6081
- exitFile?: string | undefined;
6082
- note?: string | undefined;
6083
- result?: {
6084
- outcome: "deadline" | "error" | "exit_file" | "exited";
6085
- observedAt: string;
6086
- exitCode?: number | undefined;
6087
- exitFileNote?: "not-an-exit-code" | undefined;
6088
- diagnostic?: string | undefined;
6089
- } | undefined;
6090
6101
  } | {
6091
6102
  id: string;
6092
6103
  source: "agent" | "cezar";
@@ -6219,6 +6230,30 @@ export declare function createRunsRoutes(deps: RunsRouteDeps): import("hono/hono
6219
6230
  deadline: string;
6220
6231
  seconds: number;
6221
6232
  note?: string | undefined;
6233
+ } | {
6234
+ id: string;
6235
+ source: "agent" | "cezar";
6236
+ via: "ask-line" | "budget" | "cez-message-wait" | "cez-worker-wait" | "cezar_ask" | "cezar_wait" | "cezar_wait_for_ci" | "completion" | "monitoring-line" | "native-ask" | "native-subagents" | "no-wait" | "schedule-wakeup";
6237
+ registeredAt: string;
6238
+ phase: "cancelled" | "delivered" | "open" | "resolved";
6239
+ resolvedAt?: string | undefined;
6240
+ deliveredAt?: string | undefined;
6241
+ cancelledAt?: string | undefined;
6242
+ turnId: string;
6243
+ kind: "process";
6244
+ deadline: string;
6245
+ timeoutSeconds: number;
6246
+ pid: number;
6247
+ startToken?: string | undefined;
6248
+ exitFile?: string | undefined;
6249
+ note?: string | undefined;
6250
+ result?: {
6251
+ outcome: "deadline" | "error" | "exit_file" | "exited";
6252
+ observedAt: string;
6253
+ exitCode?: number | undefined;
6254
+ exitFileNote?: "not-an-exit-code" | undefined;
6255
+ diagnostic?: string | undefined;
6256
+ } | undefined;
6222
6257
  } | {
6223
6258
  id: string;
6224
6259
  source: "agent" | "cezar";
@@ -6280,30 +6315,6 @@ export declare function createRunsRoutes(deps: RunsRouteDeps): import("hono/hono
6280
6315
  reason: "outcome" | "timeout";
6281
6316
  } | undefined;
6282
6317
  wakeInputId?: string | undefined;
6283
- } | {
6284
- id: string;
6285
- source: "agent" | "cezar";
6286
- via: "ask-line" | "budget" | "cez-message-wait" | "cez-worker-wait" | "cezar_ask" | "cezar_wait" | "cezar_wait_for_ci" | "completion" | "monitoring-line" | "native-ask" | "native-subagents" | "no-wait" | "schedule-wakeup";
6287
- registeredAt: string;
6288
- phase: "cancelled" | "delivered" | "open" | "resolved";
6289
- resolvedAt?: string | undefined;
6290
- deliveredAt?: string | undefined;
6291
- cancelledAt?: string | undefined;
6292
- turnId: string;
6293
- kind: "process";
6294
- deadline: string;
6295
- timeoutSeconds: number;
6296
- pid: number;
6297
- startToken?: string | undefined;
6298
- exitFile?: string | undefined;
6299
- note?: string | undefined;
6300
- result?: {
6301
- outcome: "deadline" | "error" | "exit_file" | "exited";
6302
- observedAt: string;
6303
- exitCode?: number | undefined;
6304
- exitFileNote?: "not-an-exit-code" | undefined;
6305
- diagnostic?: string | undefined;
6306
- } | undefined;
6307
6318
  } | {
6308
6319
  id: string;
6309
6320
  source: "agent" | "cezar";
@@ -6435,6 +6446,30 @@ export declare function createRunsRoutes(deps: RunsRouteDeps): import("hono/hono
6435
6446
  deadline: string;
6436
6447
  seconds: number;
6437
6448
  note?: string | undefined;
6449
+ } | {
6450
+ id: string;
6451
+ source: "agent" | "cezar";
6452
+ via: "ask-line" | "budget" | "cez-message-wait" | "cez-worker-wait" | "cezar_ask" | "cezar_wait" | "cezar_wait_for_ci" | "completion" | "monitoring-line" | "native-ask" | "native-subagents" | "no-wait" | "schedule-wakeup";
6453
+ registeredAt: string;
6454
+ phase: "cancelled" | "delivered" | "open" | "resolved";
6455
+ resolvedAt?: string | undefined;
6456
+ deliveredAt?: string | undefined;
6457
+ cancelledAt?: string | undefined;
6458
+ turnId: string;
6459
+ kind: "process";
6460
+ deadline: string;
6461
+ timeoutSeconds: number;
6462
+ pid: number;
6463
+ startToken?: string | undefined;
6464
+ exitFile?: string | undefined;
6465
+ note?: string | undefined;
6466
+ result?: {
6467
+ outcome: "deadline" | "error" | "exit_file" | "exited";
6468
+ observedAt: string;
6469
+ exitCode?: number | undefined;
6470
+ exitFileNote?: "not-an-exit-code" | undefined;
6471
+ diagnostic?: string | undefined;
6472
+ } | undefined;
6438
6473
  } | {
6439
6474
  id: string;
6440
6475
  source: "agent" | "cezar";
@@ -6496,30 +6531,6 @@ export declare function createRunsRoutes(deps: RunsRouteDeps): import("hono/hono
6496
6531
  reason: "outcome" | "timeout";
6497
6532
  } | undefined;
6498
6533
  wakeInputId?: string | undefined;
6499
- } | {
6500
- id: string;
6501
- source: "agent" | "cezar";
6502
- via: "ask-line" | "budget" | "cez-message-wait" | "cez-worker-wait" | "cezar_ask" | "cezar_wait" | "cezar_wait_for_ci" | "completion" | "monitoring-line" | "native-ask" | "native-subagents" | "no-wait" | "schedule-wakeup";
6503
- registeredAt: string;
6504
- phase: "cancelled" | "delivered" | "open" | "resolved";
6505
- resolvedAt?: string | undefined;
6506
- deliveredAt?: string | undefined;
6507
- cancelledAt?: string | undefined;
6508
- turnId: string;
6509
- kind: "process";
6510
- deadline: string;
6511
- timeoutSeconds: number;
6512
- pid: number;
6513
- startToken?: string | undefined;
6514
- exitFile?: string | undefined;
6515
- note?: string | undefined;
6516
- result?: {
6517
- outcome: "deadline" | "error" | "exit_file" | "exited";
6518
- observedAt: string;
6519
- exitCode?: number | undefined;
6520
- exitFileNote?: "not-an-exit-code" | undefined;
6521
- diagnostic?: string | undefined;
6522
- } | undefined;
6523
6534
  } | {
6524
6535
  id: string;
6525
6536
  source: "agent" | "cezar";
@@ -6806,7 +6817,11 @@ export declare function createRunsRoutes(deps: RunsRouteDeps): import("hono/hono
6806
6817
  id: string;
6807
6818
  };
6808
6819
  };
6809
- } | {
6820
+ };
6821
+ };
6822
+ } & {
6823
+ "/runs/:id/unread": {
6824
+ $post: {
6810
6825
  output: {
6811
6826
  error: string;
6812
6827
  };
@@ -6817,11 +6832,7 @@ export declare function createRunsRoutes(deps: RunsRouteDeps): import("hono/hono
6817
6832
  id: string;
6818
6833
  };
6819
6834
  };
6820
- };
6821
- };
6822
- } & {
6823
- "/runs/:id/unread": {
6824
- $post: {
6835
+ } | {
6825
6836
  output: {
6826
6837
  archiveWhenDone?: boolean | undefined;
6827
6838
  autoMergePr?: boolean | undefined;
@@ -7212,6 +7223,30 @@ export declare function createRunsRoutes(deps: RunsRouteDeps): import("hono/hono
7212
7223
  deadline: string;
7213
7224
  seconds: number;
7214
7225
  note?: string | undefined;
7226
+ } | {
7227
+ id: string;
7228
+ source: "agent" | "cezar";
7229
+ via: "ask-line" | "budget" | "cez-message-wait" | "cez-worker-wait" | "cezar_ask" | "cezar_wait" | "cezar_wait_for_ci" | "completion" | "monitoring-line" | "native-ask" | "native-subagents" | "no-wait" | "schedule-wakeup";
7230
+ registeredAt: string;
7231
+ phase: "cancelled" | "delivered" | "open" | "resolved";
7232
+ resolvedAt?: string | undefined;
7233
+ deliveredAt?: string | undefined;
7234
+ cancelledAt?: string | undefined;
7235
+ turnId: string;
7236
+ kind: "process";
7237
+ deadline: string;
7238
+ timeoutSeconds: number;
7239
+ pid: number;
7240
+ startToken?: string | undefined;
7241
+ exitFile?: string | undefined;
7242
+ note?: string | undefined;
7243
+ result?: {
7244
+ outcome: "deadline" | "error" | "exit_file" | "exited";
7245
+ observedAt: string;
7246
+ exitCode?: number | undefined;
7247
+ exitFileNote?: "not-an-exit-code" | undefined;
7248
+ diagnostic?: string | undefined;
7249
+ } | undefined;
7215
7250
  } | {
7216
7251
  id: string;
7217
7252
  source: "agent" | "cezar";
@@ -7273,30 +7308,6 @@ export declare function createRunsRoutes(deps: RunsRouteDeps): import("hono/hono
7273
7308
  reason: "outcome" | "timeout";
7274
7309
  } | undefined;
7275
7310
  wakeInputId?: string | undefined;
7276
- } | {
7277
- id: string;
7278
- source: "agent" | "cezar";
7279
- via: "ask-line" | "budget" | "cez-message-wait" | "cez-worker-wait" | "cezar_ask" | "cezar_wait" | "cezar_wait_for_ci" | "completion" | "monitoring-line" | "native-ask" | "native-subagents" | "no-wait" | "schedule-wakeup";
7280
- registeredAt: string;
7281
- phase: "cancelled" | "delivered" | "open" | "resolved";
7282
- resolvedAt?: string | undefined;
7283
- deliveredAt?: string | undefined;
7284
- cancelledAt?: string | undefined;
7285
- turnId: string;
7286
- kind: "process";
7287
- deadline: string;
7288
- timeoutSeconds: number;
7289
- pid: number;
7290
- startToken?: string | undefined;
7291
- exitFile?: string | undefined;
7292
- note?: string | undefined;
7293
- result?: {
7294
- outcome: "deadline" | "error" | "exit_file" | "exited";
7295
- observedAt: string;
7296
- exitCode?: number | undefined;
7297
- exitFileNote?: "not-an-exit-code" | undefined;
7298
- diagnostic?: string | undefined;
7299
- } | undefined;
7300
7311
  } | {
7301
7312
  id: string;
7302
7313
  source: "agent" | "cezar";
@@ -7439,23 +7450,47 @@ export declare function createRunsRoutes(deps: RunsRouteDeps): import("hono/hono
7439
7450
  deliveredAt?: string | undefined;
7440
7451
  cancelledAt?: string | undefined;
7441
7452
  turnId: string;
7442
- kind: "human";
7443
- questions?: {
7444
- id?: string | undefined;
7445
- header: string;
7446
- question: string;
7447
- options?: {
7448
- label: string;
7449
- description?: string | undefined;
7450
- }[] | undefined;
7451
- multiSelect?: boolean | undefined;
7452
- allowFreeText?: boolean | undefined;
7453
- }[] | undefined;
7454
- context?: string | undefined;
7455
- askSeq?: number | undefined;
7456
- } | {
7457
- id: string;
7458
- source: "agent" | "cezar";
7453
+ kind: "process";
7454
+ deadline: string;
7455
+ timeoutSeconds: number;
7456
+ pid: number;
7457
+ startToken?: string | undefined;
7458
+ exitFile?: string | undefined;
7459
+ note?: string | undefined;
7460
+ result?: {
7461
+ outcome: "deadline" | "error" | "exit_file" | "exited";
7462
+ observedAt: string;
7463
+ exitCode?: number | undefined;
7464
+ exitFileNote?: "not-an-exit-code" | undefined;
7465
+ diagnostic?: string | undefined;
7466
+ } | undefined;
7467
+ } | {
7468
+ id: string;
7469
+ source: "agent" | "cezar";
7470
+ via: "ask-line" | "budget" | "cez-message-wait" | "cez-worker-wait" | "cezar_ask" | "cezar_wait" | "cezar_wait_for_ci" | "completion" | "monitoring-line" | "native-ask" | "native-subagents" | "no-wait" | "schedule-wakeup";
7471
+ registeredAt: string;
7472
+ phase: "cancelled" | "delivered" | "open" | "resolved";
7473
+ resolvedAt?: string | undefined;
7474
+ deliveredAt?: string | undefined;
7475
+ cancelledAt?: string | undefined;
7476
+ turnId: string;
7477
+ kind: "human";
7478
+ questions?: {
7479
+ id?: string | undefined;
7480
+ header: string;
7481
+ question: string;
7482
+ options?: {
7483
+ label: string;
7484
+ description?: string | undefined;
7485
+ }[] | undefined;
7486
+ multiSelect?: boolean | undefined;
7487
+ allowFreeText?: boolean | undefined;
7488
+ }[] | undefined;
7489
+ context?: string | undefined;
7490
+ askSeq?: number | undefined;
7491
+ } | {
7492
+ id: string;
7493
+ source: "agent" | "cezar";
7459
7494
  via: "ask-line" | "budget" | "cez-message-wait" | "cez-worker-wait" | "cezar_ask" | "cezar_wait" | "cezar_wait_for_ci" | "completion" | "monitoring-line" | "native-ask" | "native-subagents" | "no-wait" | "schedule-wakeup";
7460
7495
  registeredAt: string;
7461
7496
  phase: "cancelled" | "delivered" | "open" | "resolved";
@@ -7490,30 +7525,6 @@ export declare function createRunsRoutes(deps: RunsRouteDeps): import("hono/hono
7490
7525
  reason: "outcome" | "timeout";
7491
7526
  } | undefined;
7492
7527
  wakeInputId?: string | undefined;
7493
- } | {
7494
- id: string;
7495
- source: "agent" | "cezar";
7496
- via: "ask-line" | "budget" | "cez-message-wait" | "cez-worker-wait" | "cezar_ask" | "cezar_wait" | "cezar_wait_for_ci" | "completion" | "monitoring-line" | "native-ask" | "native-subagents" | "no-wait" | "schedule-wakeup";
7497
- registeredAt: string;
7498
- phase: "cancelled" | "delivered" | "open" | "resolved";
7499
- resolvedAt?: string | undefined;
7500
- deliveredAt?: string | undefined;
7501
- cancelledAt?: string | undefined;
7502
- turnId: string;
7503
- kind: "process";
7504
- deadline: string;
7505
- timeoutSeconds: number;
7506
- pid: number;
7507
- startToken?: string | undefined;
7508
- exitFile?: string | undefined;
7509
- note?: string | undefined;
7510
- result?: {
7511
- outcome: "deadline" | "error" | "exit_file" | "exited";
7512
- observedAt: string;
7513
- exitCode?: number | undefined;
7514
- exitFileNote?: "not-an-exit-code" | undefined;
7515
- diagnostic?: string | undefined;
7516
- } | undefined;
7517
7528
  } | {
7518
7529
  id: string;
7519
7530
  source: "agent" | "cezar";
@@ -7645,6 +7656,30 @@ export declare function createRunsRoutes(deps: RunsRouteDeps): import("hono/hono
7645
7656
  deadline: string;
7646
7657
  seconds: number;
7647
7658
  note?: string | undefined;
7659
+ } | {
7660
+ id: string;
7661
+ source: "agent" | "cezar";
7662
+ via: "ask-line" | "budget" | "cez-message-wait" | "cez-worker-wait" | "cezar_ask" | "cezar_wait" | "cezar_wait_for_ci" | "completion" | "monitoring-line" | "native-ask" | "native-subagents" | "no-wait" | "schedule-wakeup";
7663
+ registeredAt: string;
7664
+ phase: "cancelled" | "delivered" | "open" | "resolved";
7665
+ resolvedAt?: string | undefined;
7666
+ deliveredAt?: string | undefined;
7667
+ cancelledAt?: string | undefined;
7668
+ turnId: string;
7669
+ kind: "process";
7670
+ deadline: string;
7671
+ timeoutSeconds: number;
7672
+ pid: number;
7673
+ startToken?: string | undefined;
7674
+ exitFile?: string | undefined;
7675
+ note?: string | undefined;
7676
+ result?: {
7677
+ outcome: "deadline" | "error" | "exit_file" | "exited";
7678
+ observedAt: string;
7679
+ exitCode?: number | undefined;
7680
+ exitFileNote?: "not-an-exit-code" | undefined;
7681
+ diagnostic?: string | undefined;
7682
+ } | undefined;
7648
7683
  } | {
7649
7684
  id: string;
7650
7685
  source: "agent" | "cezar";
@@ -7706,30 +7741,6 @@ export declare function createRunsRoutes(deps: RunsRouteDeps): import("hono/hono
7706
7741
  reason: "outcome" | "timeout";
7707
7742
  } | undefined;
7708
7743
  wakeInputId?: string | undefined;
7709
- } | {
7710
- id: string;
7711
- source: "agent" | "cezar";
7712
- via: "ask-line" | "budget" | "cez-message-wait" | "cez-worker-wait" | "cezar_ask" | "cezar_wait" | "cezar_wait_for_ci" | "completion" | "monitoring-line" | "native-ask" | "native-subagents" | "no-wait" | "schedule-wakeup";
7713
- registeredAt: string;
7714
- phase: "cancelled" | "delivered" | "open" | "resolved";
7715
- resolvedAt?: string | undefined;
7716
- deliveredAt?: string | undefined;
7717
- cancelledAt?: string | undefined;
7718
- turnId: string;
7719
- kind: "process";
7720
- deadline: string;
7721
- timeoutSeconds: number;
7722
- pid: number;
7723
- startToken?: string | undefined;
7724
- exitFile?: string | undefined;
7725
- note?: string | undefined;
7726
- result?: {
7727
- outcome: "deadline" | "error" | "exit_file" | "exited";
7728
- observedAt: string;
7729
- exitCode?: number | undefined;
7730
- exitFileNote?: "not-an-exit-code" | undefined;
7731
- diagnostic?: string | undefined;
7732
- } | undefined;
7733
7744
  } | {
7734
7745
  id: string;
7735
7746
  source: "agent" | "cezar";
@@ -8016,17 +8027,6 @@ export declare function createRunsRoutes(deps: RunsRouteDeps): import("hono/hono
8016
8027
  id: string;
8017
8028
  };
8018
8029
  };
8019
- } | {
8020
- output: {
8021
- error: string;
8022
- };
8023
- outputFormat: "json";
8024
- status: 404;
8025
- input: {
8026
- param: {
8027
- id: string;
8028
- };
8029
- };
8030
8030
  };
8031
8031
  };
8032
8032
  } & {
@@ -8169,6 +8169,30 @@ export declare function createRunsRoutes(deps: RunsRouteDeps): import("hono/hono
8169
8169
  deadline: string;
8170
8170
  seconds: number;
8171
8171
  note?: string | undefined;
8172
+ } | {
8173
+ id: string;
8174
+ source: "agent" | "cezar";
8175
+ via: "ask-line" | "budget" | "cez-message-wait" | "cez-worker-wait" | "cezar_ask" | "cezar_wait" | "cezar_wait_for_ci" | "completion" | "monitoring-line" | "native-ask" | "native-subagents" | "no-wait" | "schedule-wakeup";
8176
+ registeredAt: string;
8177
+ phase: "cancelled" | "delivered" | "open" | "resolved";
8178
+ resolvedAt?: string | undefined;
8179
+ deliveredAt?: string | undefined;
8180
+ cancelledAt?: string | undefined;
8181
+ turnId: string;
8182
+ kind: "process";
8183
+ deadline: string;
8184
+ timeoutSeconds: number;
8185
+ pid: number;
8186
+ startToken?: string | undefined;
8187
+ exitFile?: string | undefined;
8188
+ note?: string | undefined;
8189
+ result?: {
8190
+ outcome: "deadline" | "error" | "exit_file" | "exited";
8191
+ observedAt: string;
8192
+ exitCode?: number | undefined;
8193
+ exitFileNote?: "not-an-exit-code" | undefined;
8194
+ diagnostic?: string | undefined;
8195
+ } | undefined;
8172
8196
  } | {
8173
8197
  id: string;
8174
8198
  source: "agent" | "cezar";
@@ -8230,30 +8254,6 @@ export declare function createRunsRoutes(deps: RunsRouteDeps): import("hono/hono
8230
8254
  reason: "outcome" | "timeout";
8231
8255
  } | undefined;
8232
8256
  wakeInputId?: string | undefined;
8233
- } | {
8234
- id: string;
8235
- source: "agent" | "cezar";
8236
- via: "ask-line" | "budget" | "cez-message-wait" | "cez-worker-wait" | "cezar_ask" | "cezar_wait" | "cezar_wait_for_ci" | "completion" | "monitoring-line" | "native-ask" | "native-subagents" | "no-wait" | "schedule-wakeup";
8237
- registeredAt: string;
8238
- phase: "cancelled" | "delivered" | "open" | "resolved";
8239
- resolvedAt?: string | undefined;
8240
- deliveredAt?: string | undefined;
8241
- cancelledAt?: string | undefined;
8242
- turnId: string;
8243
- kind: "process";
8244
- deadline: string;
8245
- timeoutSeconds: number;
8246
- pid: number;
8247
- startToken?: string | undefined;
8248
- exitFile?: string | undefined;
8249
- note?: string | undefined;
8250
- result?: {
8251
- outcome: "deadline" | "error" | "exit_file" | "exited";
8252
- observedAt: string;
8253
- exitCode?: number | undefined;
8254
- exitFileNote?: "not-an-exit-code" | undefined;
8255
- diagnostic?: string | undefined;
8256
- } | undefined;
8257
8257
  } | {
8258
8258
  id: string;
8259
8259
  source: "agent" | "cezar";
@@ -8386,6 +8386,30 @@ export declare function createRunsRoutes(deps: RunsRouteDeps): import("hono/hono
8386
8386
  deadline: string;
8387
8387
  seconds: number;
8388
8388
  note?: string | undefined;
8389
+ } | {
8390
+ id: string;
8391
+ source: "agent" | "cezar";
8392
+ via: "ask-line" | "budget" | "cez-message-wait" | "cez-worker-wait" | "cezar_ask" | "cezar_wait" | "cezar_wait_for_ci" | "completion" | "monitoring-line" | "native-ask" | "native-subagents" | "no-wait" | "schedule-wakeup";
8393
+ registeredAt: string;
8394
+ phase: "cancelled" | "delivered" | "open" | "resolved";
8395
+ resolvedAt?: string | undefined;
8396
+ deliveredAt?: string | undefined;
8397
+ cancelledAt?: string | undefined;
8398
+ turnId: string;
8399
+ kind: "process";
8400
+ deadline: string;
8401
+ timeoutSeconds: number;
8402
+ pid: number;
8403
+ startToken?: string | undefined;
8404
+ exitFile?: string | undefined;
8405
+ note?: string | undefined;
8406
+ result?: {
8407
+ outcome: "deadline" | "error" | "exit_file" | "exited";
8408
+ observedAt: string;
8409
+ exitCode?: number | undefined;
8410
+ exitFileNote?: "not-an-exit-code" | undefined;
8411
+ diagnostic?: string | undefined;
8412
+ } | undefined;
8389
8413
  } | {
8390
8414
  id: string;
8391
8415
  source: "agent" | "cezar";
@@ -8447,30 +8471,6 @@ export declare function createRunsRoutes(deps: RunsRouteDeps): import("hono/hono
8447
8471
  reason: "outcome" | "timeout";
8448
8472
  } | undefined;
8449
8473
  wakeInputId?: string | undefined;
8450
- } | {
8451
- id: string;
8452
- source: "agent" | "cezar";
8453
- via: "ask-line" | "budget" | "cez-message-wait" | "cez-worker-wait" | "cezar_ask" | "cezar_wait" | "cezar_wait_for_ci" | "completion" | "monitoring-line" | "native-ask" | "native-subagents" | "no-wait" | "schedule-wakeup";
8454
- registeredAt: string;
8455
- phase: "cancelled" | "delivered" | "open" | "resolved";
8456
- resolvedAt?: string | undefined;
8457
- deliveredAt?: string | undefined;
8458
- cancelledAt?: string | undefined;
8459
- turnId: string;
8460
- kind: "process";
8461
- deadline: string;
8462
- timeoutSeconds: number;
8463
- pid: number;
8464
- startToken?: string | undefined;
8465
- exitFile?: string | undefined;
8466
- note?: string | undefined;
8467
- result?: {
8468
- outcome: "deadline" | "error" | "exit_file" | "exited";
8469
- observedAt: string;
8470
- exitCode?: number | undefined;
8471
- exitFileNote?: "not-an-exit-code" | undefined;
8472
- diagnostic?: string | undefined;
8473
- } | undefined;
8474
8474
  } | {
8475
8475
  id: string;
8476
8476
  source: "agent" | "cezar";
@@ -8602,6 +8602,30 @@ export declare function createRunsRoutes(deps: RunsRouteDeps): import("hono/hono
8602
8602
  deadline: string;
8603
8603
  seconds: number;
8604
8604
  note?: string | undefined;
8605
+ } | {
8606
+ id: string;
8607
+ source: "agent" | "cezar";
8608
+ via: "ask-line" | "budget" | "cez-message-wait" | "cez-worker-wait" | "cezar_ask" | "cezar_wait" | "cezar_wait_for_ci" | "completion" | "monitoring-line" | "native-ask" | "native-subagents" | "no-wait" | "schedule-wakeup";
8609
+ registeredAt: string;
8610
+ phase: "cancelled" | "delivered" | "open" | "resolved";
8611
+ resolvedAt?: string | undefined;
8612
+ deliveredAt?: string | undefined;
8613
+ cancelledAt?: string | undefined;
8614
+ turnId: string;
8615
+ kind: "process";
8616
+ deadline: string;
8617
+ timeoutSeconds: number;
8618
+ pid: number;
8619
+ startToken?: string | undefined;
8620
+ exitFile?: string | undefined;
8621
+ note?: string | undefined;
8622
+ result?: {
8623
+ outcome: "deadline" | "error" | "exit_file" | "exited";
8624
+ observedAt: string;
8625
+ exitCode?: number | undefined;
8626
+ exitFileNote?: "not-an-exit-code" | undefined;
8627
+ diagnostic?: string | undefined;
8628
+ } | undefined;
8605
8629
  } | {
8606
8630
  id: string;
8607
8631
  source: "agent" | "cezar";
@@ -8663,30 +8687,6 @@ export declare function createRunsRoutes(deps: RunsRouteDeps): import("hono/hono
8663
8687
  reason: "outcome" | "timeout";
8664
8688
  } | undefined;
8665
8689
  wakeInputId?: string | undefined;
8666
- } | {
8667
- id: string;
8668
- source: "agent" | "cezar";
8669
- via: "ask-line" | "budget" | "cez-message-wait" | "cez-worker-wait" | "cezar_ask" | "cezar_wait" | "cezar_wait_for_ci" | "completion" | "monitoring-line" | "native-ask" | "native-subagents" | "no-wait" | "schedule-wakeup";
8670
- registeredAt: string;
8671
- phase: "cancelled" | "delivered" | "open" | "resolved";
8672
- resolvedAt?: string | undefined;
8673
- deliveredAt?: string | undefined;
8674
- cancelledAt?: string | undefined;
8675
- turnId: string;
8676
- kind: "process";
8677
- deadline: string;
8678
- timeoutSeconds: number;
8679
- pid: number;
8680
- startToken?: string | undefined;
8681
- exitFile?: string | undefined;
8682
- note?: string | undefined;
8683
- result?: {
8684
- outcome: "deadline" | "error" | "exit_file" | "exited";
8685
- observedAt: string;
8686
- exitCode?: number | undefined;
8687
- exitFileNote?: "not-an-exit-code" | undefined;
8688
- diagnostic?: string | undefined;
8689
- } | undefined;
8690
8690
  } | {
8691
8691
  id: string;
8692
8692
  source: "agent" | "cezar";
@@ -9322,6 +9322,17 @@ export declare function createRunsRoutes(deps: RunsRouteDeps): import("hono/hono
9322
9322
  } & {
9323
9323
  "/runs/:id": {
9324
9324
  $get: {
9325
+ output: {
9326
+ error: string;
9327
+ };
9328
+ outputFormat: "json";
9329
+ status: 404;
9330
+ input: {
9331
+ param: {
9332
+ id: string;
9333
+ };
9334
+ };
9335
+ } | {
9325
9336
  output: {
9326
9337
  archiveWhenDone?: boolean | undefined;
9327
9338
  autoMergePr?: boolean | undefined;
@@ -9712,6 +9723,30 @@ export declare function createRunsRoutes(deps: RunsRouteDeps): import("hono/hono
9712
9723
  deadline: string;
9713
9724
  seconds: number;
9714
9725
  note?: string | undefined;
9726
+ } | {
9727
+ id: string;
9728
+ source: "agent" | "cezar";
9729
+ via: "ask-line" | "budget" | "cez-message-wait" | "cez-worker-wait" | "cezar_ask" | "cezar_wait" | "cezar_wait_for_ci" | "completion" | "monitoring-line" | "native-ask" | "native-subagents" | "no-wait" | "schedule-wakeup";
9730
+ registeredAt: string;
9731
+ phase: "cancelled" | "delivered" | "open" | "resolved";
9732
+ resolvedAt?: string | undefined;
9733
+ deliveredAt?: string | undefined;
9734
+ cancelledAt?: string | undefined;
9735
+ turnId: string;
9736
+ kind: "process";
9737
+ deadline: string;
9738
+ timeoutSeconds: number;
9739
+ pid: number;
9740
+ startToken?: string | undefined;
9741
+ exitFile?: string | undefined;
9742
+ note?: string | undefined;
9743
+ result?: {
9744
+ outcome: "deadline" | "error" | "exit_file" | "exited";
9745
+ observedAt: string;
9746
+ exitCode?: number | undefined;
9747
+ exitFileNote?: "not-an-exit-code" | undefined;
9748
+ diagnostic?: string | undefined;
9749
+ } | undefined;
9715
9750
  } | {
9716
9751
  id: string;
9717
9752
  source: "agent" | "cezar";
@@ -9773,30 +9808,6 @@ export declare function createRunsRoutes(deps: RunsRouteDeps): import("hono/hono
9773
9808
  reason: "outcome" | "timeout";
9774
9809
  } | undefined;
9775
9810
  wakeInputId?: string | undefined;
9776
- } | {
9777
- id: string;
9778
- source: "agent" | "cezar";
9779
- via: "ask-line" | "budget" | "cez-message-wait" | "cez-worker-wait" | "cezar_ask" | "cezar_wait" | "cezar_wait_for_ci" | "completion" | "monitoring-line" | "native-ask" | "native-subagents" | "no-wait" | "schedule-wakeup";
9780
- registeredAt: string;
9781
- phase: "cancelled" | "delivered" | "open" | "resolved";
9782
- resolvedAt?: string | undefined;
9783
- deliveredAt?: string | undefined;
9784
- cancelledAt?: string | undefined;
9785
- turnId: string;
9786
- kind: "process";
9787
- deadline: string;
9788
- timeoutSeconds: number;
9789
- pid: number;
9790
- startToken?: string | undefined;
9791
- exitFile?: string | undefined;
9792
- note?: string | undefined;
9793
- result?: {
9794
- outcome: "deadline" | "error" | "exit_file" | "exited";
9795
- observedAt: string;
9796
- exitCode?: number | undefined;
9797
- exitFileNote?: "not-an-exit-code" | undefined;
9798
- diagnostic?: string | undefined;
9799
- } | undefined;
9800
9811
  } | {
9801
9812
  id: string;
9802
9813
  source: "agent" | "cezar";
@@ -9929,6 +9940,30 @@ export declare function createRunsRoutes(deps: RunsRouteDeps): import("hono/hono
9929
9940
  deadline: string;
9930
9941
  seconds: number;
9931
9942
  note?: string | undefined;
9943
+ } | {
9944
+ id: string;
9945
+ source: "agent" | "cezar";
9946
+ via: "ask-line" | "budget" | "cez-message-wait" | "cez-worker-wait" | "cezar_ask" | "cezar_wait" | "cezar_wait_for_ci" | "completion" | "monitoring-line" | "native-ask" | "native-subagents" | "no-wait" | "schedule-wakeup";
9947
+ registeredAt: string;
9948
+ phase: "cancelled" | "delivered" | "open" | "resolved";
9949
+ resolvedAt?: string | undefined;
9950
+ deliveredAt?: string | undefined;
9951
+ cancelledAt?: string | undefined;
9952
+ turnId: string;
9953
+ kind: "process";
9954
+ deadline: string;
9955
+ timeoutSeconds: number;
9956
+ pid: number;
9957
+ startToken?: string | undefined;
9958
+ exitFile?: string | undefined;
9959
+ note?: string | undefined;
9960
+ result?: {
9961
+ outcome: "deadline" | "error" | "exit_file" | "exited";
9962
+ observedAt: string;
9963
+ exitCode?: number | undefined;
9964
+ exitFileNote?: "not-an-exit-code" | undefined;
9965
+ diagnostic?: string | undefined;
9966
+ } | undefined;
9932
9967
  } | {
9933
9968
  id: string;
9934
9969
  source: "agent" | "cezar";
@@ -9990,30 +10025,6 @@ export declare function createRunsRoutes(deps: RunsRouteDeps): import("hono/hono
9990
10025
  reason: "outcome" | "timeout";
9991
10026
  } | undefined;
9992
10027
  wakeInputId?: string | undefined;
9993
- } | {
9994
- id: string;
9995
- source: "agent" | "cezar";
9996
- via: "ask-line" | "budget" | "cez-message-wait" | "cez-worker-wait" | "cezar_ask" | "cezar_wait" | "cezar_wait_for_ci" | "completion" | "monitoring-line" | "native-ask" | "native-subagents" | "no-wait" | "schedule-wakeup";
9997
- registeredAt: string;
9998
- phase: "cancelled" | "delivered" | "open" | "resolved";
9999
- resolvedAt?: string | undefined;
10000
- deliveredAt?: string | undefined;
10001
- cancelledAt?: string | undefined;
10002
- turnId: string;
10003
- kind: "process";
10004
- deadline: string;
10005
- timeoutSeconds: number;
10006
- pid: number;
10007
- startToken?: string | undefined;
10008
- exitFile?: string | undefined;
10009
- note?: string | undefined;
10010
- result?: {
10011
- outcome: "deadline" | "error" | "exit_file" | "exited";
10012
- observedAt: string;
10013
- exitCode?: number | undefined;
10014
- exitFileNote?: "not-an-exit-code" | undefined;
10015
- diagnostic?: string | undefined;
10016
- } | undefined;
10017
10028
  } | {
10018
10029
  id: string;
10019
10030
  source: "agent" | "cezar";
@@ -10145,6 +10156,30 @@ export declare function createRunsRoutes(deps: RunsRouteDeps): import("hono/hono
10145
10156
  deadline: string;
10146
10157
  seconds: number;
10147
10158
  note?: string | undefined;
10159
+ } | {
10160
+ id: string;
10161
+ source: "agent" | "cezar";
10162
+ via: "ask-line" | "budget" | "cez-message-wait" | "cez-worker-wait" | "cezar_ask" | "cezar_wait" | "cezar_wait_for_ci" | "completion" | "monitoring-line" | "native-ask" | "native-subagents" | "no-wait" | "schedule-wakeup";
10163
+ registeredAt: string;
10164
+ phase: "cancelled" | "delivered" | "open" | "resolved";
10165
+ resolvedAt?: string | undefined;
10166
+ deliveredAt?: string | undefined;
10167
+ cancelledAt?: string | undefined;
10168
+ turnId: string;
10169
+ kind: "process";
10170
+ deadline: string;
10171
+ timeoutSeconds: number;
10172
+ pid: number;
10173
+ startToken?: string | undefined;
10174
+ exitFile?: string | undefined;
10175
+ note?: string | undefined;
10176
+ result?: {
10177
+ outcome: "deadline" | "error" | "exit_file" | "exited";
10178
+ observedAt: string;
10179
+ exitCode?: number | undefined;
10180
+ exitFileNote?: "not-an-exit-code" | undefined;
10181
+ diagnostic?: string | undefined;
10182
+ } | undefined;
10148
10183
  } | {
10149
10184
  id: string;
10150
10185
  source: "agent" | "cezar";
@@ -10206,30 +10241,6 @@ export declare function createRunsRoutes(deps: RunsRouteDeps): import("hono/hono
10206
10241
  reason: "outcome" | "timeout";
10207
10242
  } | undefined;
10208
10243
  wakeInputId?: string | undefined;
10209
- } | {
10210
- id: string;
10211
- source: "agent" | "cezar";
10212
- via: "ask-line" | "budget" | "cez-message-wait" | "cez-worker-wait" | "cezar_ask" | "cezar_wait" | "cezar_wait_for_ci" | "completion" | "monitoring-line" | "native-ask" | "native-subagents" | "no-wait" | "schedule-wakeup";
10213
- registeredAt: string;
10214
- phase: "cancelled" | "delivered" | "open" | "resolved";
10215
- resolvedAt?: string | undefined;
10216
- deliveredAt?: string | undefined;
10217
- cancelledAt?: string | undefined;
10218
- turnId: string;
10219
- kind: "process";
10220
- deadline: string;
10221
- timeoutSeconds: number;
10222
- pid: number;
10223
- startToken?: string | undefined;
10224
- exitFile?: string | undefined;
10225
- note?: string | undefined;
10226
- result?: {
10227
- outcome: "deadline" | "error" | "exit_file" | "exited";
10228
- observedAt: string;
10229
- exitCode?: number | undefined;
10230
- exitFileNote?: "not-an-exit-code" | undefined;
10231
- diagnostic?: string | undefined;
10232
- } | undefined;
10233
10244
  } | {
10234
10245
  id: string;
10235
10246
  source: "agent" | "cezar";
@@ -10524,17 +10535,6 @@ export declare function createRunsRoutes(deps: RunsRouteDeps): import("hono/hono
10524
10535
  id: string;
10525
10536
  };
10526
10537
  };
10527
- } | {
10528
- output: {
10529
- error: string;
10530
- };
10531
- outputFormat: "json";
10532
- status: 404;
10533
- input: {
10534
- param: {
10535
- id: string;
10536
- };
10537
- };
10538
10538
  };
10539
10539
  };
10540
10540
  } & {
@@ -10641,27 +10641,87 @@ export declare function createRunsRoutes(deps: RunsRouteDeps): import("hono/hono
10641
10641
  };
10642
10642
  } | {
10643
10643
  output: {
10644
- contextEvents: {
10645
- [x: string]: any;
10646
- seq: number;
10647
- ts: string;
10648
- stepId?: string | undefined;
10649
- type: string;
10650
- }[];
10651
- asOfSeq: number;
10644
+ contextEvents: {
10645
+ [x: string]: any;
10646
+ seq: number;
10647
+ ts: string;
10648
+ stepId?: string | undefined;
10649
+ type: string;
10650
+ }[];
10651
+ asOfSeq: number;
10652
+ };
10653
+ outputFormat: "json";
10654
+ status: import("hono/utils/http-status").ContentfulStatusCode;
10655
+ input: {
10656
+ param: {
10657
+ id: string;
10658
+ };
10659
+ };
10660
+ };
10661
+ };
10662
+ } & {
10663
+ "/runs/:id": {
10664
+ $patch: {
10665
+ output: {
10666
+ error: string;
10667
+ };
10668
+ outputFormat: "json";
10669
+ status: 400;
10670
+ input: {
10671
+ json: {
10672
+ archiveWhenDone?: boolean | undefined;
10673
+ autoMergePr?: boolean | undefined;
10674
+ allowWorkers?: boolean | undefined;
10675
+ allowMessaging?: boolean | undefined;
10676
+ title?: string | undefined;
10677
+ task?: string | undefined;
10678
+ };
10679
+ } & {
10680
+ param: {
10681
+ id: string;
10682
+ };
10683
+ };
10684
+ } | {
10685
+ output: {
10686
+ error: string;
10687
+ };
10688
+ outputFormat: "json";
10689
+ status: 404;
10690
+ input: {
10691
+ json: {
10692
+ archiveWhenDone?: boolean | undefined;
10693
+ autoMergePr?: boolean | undefined;
10694
+ allowWorkers?: boolean | undefined;
10695
+ allowMessaging?: boolean | undefined;
10696
+ title?: string | undefined;
10697
+ task?: string | undefined;
10698
+ };
10699
+ } & {
10700
+ param: {
10701
+ id: string;
10702
+ };
10703
+ };
10704
+ } | {
10705
+ output: {
10706
+ error: string;
10652
10707
  };
10653
10708
  outputFormat: "json";
10654
- status: import("hono/utils/http-status").ContentfulStatusCode;
10709
+ status: 409;
10655
10710
  input: {
10711
+ json: {
10712
+ archiveWhenDone?: boolean | undefined;
10713
+ autoMergePr?: boolean | undefined;
10714
+ allowWorkers?: boolean | undefined;
10715
+ allowMessaging?: boolean | undefined;
10716
+ title?: string | undefined;
10717
+ task?: string | undefined;
10718
+ };
10719
+ } & {
10656
10720
  param: {
10657
10721
  id: string;
10658
10722
  };
10659
10723
  };
10660
- };
10661
- };
10662
- } & {
10663
- "/runs/:id": {
10664
- $patch: {
10724
+ } | {
10665
10725
  output: {
10666
10726
  archiveWhenDone?: boolean | undefined;
10667
10727
  autoMergePr?: boolean | undefined;
@@ -10799,6 +10859,30 @@ export declare function createRunsRoutes(deps: RunsRouteDeps): import("hono/hono
10799
10859
  deadline: string;
10800
10860
  seconds: number;
10801
10861
  note?: string | undefined;
10862
+ } | {
10863
+ id: string;
10864
+ source: "agent" | "cezar";
10865
+ via: "ask-line" | "budget" | "cez-message-wait" | "cez-worker-wait" | "cezar_ask" | "cezar_wait" | "cezar_wait_for_ci" | "completion" | "monitoring-line" | "native-ask" | "native-subagents" | "no-wait" | "schedule-wakeup";
10866
+ registeredAt: string;
10867
+ phase: "cancelled" | "delivered" | "open" | "resolved";
10868
+ resolvedAt?: string | undefined;
10869
+ deliveredAt?: string | undefined;
10870
+ cancelledAt?: string | undefined;
10871
+ turnId: string;
10872
+ kind: "process";
10873
+ deadline: string;
10874
+ timeoutSeconds: number;
10875
+ pid: number;
10876
+ startToken?: string | undefined;
10877
+ exitFile?: string | undefined;
10878
+ note?: string | undefined;
10879
+ result?: {
10880
+ outcome: "deadline" | "error" | "exit_file" | "exited";
10881
+ observedAt: string;
10882
+ exitCode?: number | undefined;
10883
+ exitFileNote?: "not-an-exit-code" | undefined;
10884
+ diagnostic?: string | undefined;
10885
+ } | undefined;
10802
10886
  } | {
10803
10887
  id: string;
10804
10888
  source: "agent" | "cezar";
@@ -10860,30 +10944,6 @@ export declare function createRunsRoutes(deps: RunsRouteDeps): import("hono/hono
10860
10944
  reason: "outcome" | "timeout";
10861
10945
  } | undefined;
10862
10946
  wakeInputId?: string | undefined;
10863
- } | {
10864
- id: string;
10865
- source: "agent" | "cezar";
10866
- via: "ask-line" | "budget" | "cez-message-wait" | "cez-worker-wait" | "cezar_ask" | "cezar_wait" | "cezar_wait_for_ci" | "completion" | "monitoring-line" | "native-ask" | "native-subagents" | "no-wait" | "schedule-wakeup";
10867
- registeredAt: string;
10868
- phase: "cancelled" | "delivered" | "open" | "resolved";
10869
- resolvedAt?: string | undefined;
10870
- deliveredAt?: string | undefined;
10871
- cancelledAt?: string | undefined;
10872
- turnId: string;
10873
- kind: "process";
10874
- deadline: string;
10875
- timeoutSeconds: number;
10876
- pid: number;
10877
- startToken?: string | undefined;
10878
- exitFile?: string | undefined;
10879
- note?: string | undefined;
10880
- result?: {
10881
- outcome: "deadline" | "error" | "exit_file" | "exited";
10882
- observedAt: string;
10883
- exitCode?: number | undefined;
10884
- exitFileNote?: "not-an-exit-code" | undefined;
10885
- diagnostic?: string | undefined;
10886
- } | undefined;
10887
10947
  } | {
10888
10948
  id: string;
10889
10949
  source: "agent" | "cezar";
@@ -11016,6 +11076,30 @@ export declare function createRunsRoutes(deps: RunsRouteDeps): import("hono/hono
11016
11076
  deadline: string;
11017
11077
  seconds: number;
11018
11078
  note?: string | undefined;
11079
+ } | {
11080
+ id: string;
11081
+ source: "agent" | "cezar";
11082
+ via: "ask-line" | "budget" | "cez-message-wait" | "cez-worker-wait" | "cezar_ask" | "cezar_wait" | "cezar_wait_for_ci" | "completion" | "monitoring-line" | "native-ask" | "native-subagents" | "no-wait" | "schedule-wakeup";
11083
+ registeredAt: string;
11084
+ phase: "cancelled" | "delivered" | "open" | "resolved";
11085
+ resolvedAt?: string | undefined;
11086
+ deliveredAt?: string | undefined;
11087
+ cancelledAt?: string | undefined;
11088
+ turnId: string;
11089
+ kind: "process";
11090
+ deadline: string;
11091
+ timeoutSeconds: number;
11092
+ pid: number;
11093
+ startToken?: string | undefined;
11094
+ exitFile?: string | undefined;
11095
+ note?: string | undefined;
11096
+ result?: {
11097
+ outcome: "deadline" | "error" | "exit_file" | "exited";
11098
+ observedAt: string;
11099
+ exitCode?: number | undefined;
11100
+ exitFileNote?: "not-an-exit-code" | undefined;
11101
+ diagnostic?: string | undefined;
11102
+ } | undefined;
11019
11103
  } | {
11020
11104
  id: string;
11021
11105
  source: "agent" | "cezar";
@@ -11077,30 +11161,6 @@ export declare function createRunsRoutes(deps: RunsRouteDeps): import("hono/hono
11077
11161
  reason: "outcome" | "timeout";
11078
11162
  } | undefined;
11079
11163
  wakeInputId?: string | undefined;
11080
- } | {
11081
- id: string;
11082
- source: "agent" | "cezar";
11083
- via: "ask-line" | "budget" | "cez-message-wait" | "cez-worker-wait" | "cezar_ask" | "cezar_wait" | "cezar_wait_for_ci" | "completion" | "monitoring-line" | "native-ask" | "native-subagents" | "no-wait" | "schedule-wakeup";
11084
- registeredAt: string;
11085
- phase: "cancelled" | "delivered" | "open" | "resolved";
11086
- resolvedAt?: string | undefined;
11087
- deliveredAt?: string | undefined;
11088
- cancelledAt?: string | undefined;
11089
- turnId: string;
11090
- kind: "process";
11091
- deadline: string;
11092
- timeoutSeconds: number;
11093
- pid: number;
11094
- startToken?: string | undefined;
11095
- exitFile?: string | undefined;
11096
- note?: string | undefined;
11097
- result?: {
11098
- outcome: "deadline" | "error" | "exit_file" | "exited";
11099
- observedAt: string;
11100
- exitCode?: number | undefined;
11101
- exitFileNote?: "not-an-exit-code" | undefined;
11102
- diagnostic?: string | undefined;
11103
- } | undefined;
11104
11164
  } | {
11105
11165
  id: string;
11106
11166
  source: "agent" | "cezar";
@@ -11232,6 +11292,30 @@ export declare function createRunsRoutes(deps: RunsRouteDeps): import("hono/hono
11232
11292
  deadline: string;
11233
11293
  seconds: number;
11234
11294
  note?: string | undefined;
11295
+ } | {
11296
+ id: string;
11297
+ source: "agent" | "cezar";
11298
+ via: "ask-line" | "budget" | "cez-message-wait" | "cez-worker-wait" | "cezar_ask" | "cezar_wait" | "cezar_wait_for_ci" | "completion" | "monitoring-line" | "native-ask" | "native-subagents" | "no-wait" | "schedule-wakeup";
11299
+ registeredAt: string;
11300
+ phase: "cancelled" | "delivered" | "open" | "resolved";
11301
+ resolvedAt?: string | undefined;
11302
+ deliveredAt?: string | undefined;
11303
+ cancelledAt?: string | undefined;
11304
+ turnId: string;
11305
+ kind: "process";
11306
+ deadline: string;
11307
+ timeoutSeconds: number;
11308
+ pid: number;
11309
+ startToken?: string | undefined;
11310
+ exitFile?: string | undefined;
11311
+ note?: string | undefined;
11312
+ result?: {
11313
+ outcome: "deadline" | "error" | "exit_file" | "exited";
11314
+ observedAt: string;
11315
+ exitCode?: number | undefined;
11316
+ exitFileNote?: "not-an-exit-code" | undefined;
11317
+ diagnostic?: string | undefined;
11318
+ } | undefined;
11235
11319
  } | {
11236
11320
  id: string;
11237
11321
  source: "agent" | "cezar";
@@ -11293,30 +11377,6 @@ export declare function createRunsRoutes(deps: RunsRouteDeps): import("hono/hono
11293
11377
  reason: "outcome" | "timeout";
11294
11378
  } | undefined;
11295
11379
  wakeInputId?: string | undefined;
11296
- } | {
11297
- id: string;
11298
- source: "agent" | "cezar";
11299
- via: "ask-line" | "budget" | "cez-message-wait" | "cez-worker-wait" | "cezar_ask" | "cezar_wait" | "cezar_wait_for_ci" | "completion" | "monitoring-line" | "native-ask" | "native-subagents" | "no-wait" | "schedule-wakeup";
11300
- registeredAt: string;
11301
- phase: "cancelled" | "delivered" | "open" | "resolved";
11302
- resolvedAt?: string | undefined;
11303
- deliveredAt?: string | undefined;
11304
- cancelledAt?: string | undefined;
11305
- turnId: string;
11306
- kind: "process";
11307
- deadline: string;
11308
- timeoutSeconds: number;
11309
- pid: number;
11310
- startToken?: string | undefined;
11311
- exitFile?: string | undefined;
11312
- note?: string | undefined;
11313
- result?: {
11314
- outcome: "deadline" | "error" | "exit_file" | "exited";
11315
- observedAt: string;
11316
- exitCode?: number | undefined;
11317
- exitFileNote?: "not-an-exit-code" | undefined;
11318
- diagnostic?: string | undefined;
11319
- } | undefined;
11320
11380
  } | {
11321
11381
  id: string;
11322
11382
  source: "agent" | "cezar";
@@ -11865,66 +11925,6 @@ export declare function createRunsRoutes(deps: RunsRouteDeps): import("hono/hono
11865
11925
  id: string;
11866
11926
  };
11867
11927
  };
11868
- } | {
11869
- output: {
11870
- error: string;
11871
- };
11872
- outputFormat: "json";
11873
- status: 404;
11874
- input: {
11875
- json: {
11876
- archiveWhenDone?: boolean | undefined;
11877
- autoMergePr?: boolean | undefined;
11878
- allowWorkers?: boolean | undefined;
11879
- allowMessaging?: boolean | undefined;
11880
- title?: string | undefined;
11881
- task?: string | undefined;
11882
- };
11883
- } & {
11884
- param: {
11885
- id: string;
11886
- };
11887
- };
11888
- } | {
11889
- output: {
11890
- error: string;
11891
- };
11892
- outputFormat: "json";
11893
- status: 400;
11894
- input: {
11895
- json: {
11896
- archiveWhenDone?: boolean | undefined;
11897
- autoMergePr?: boolean | undefined;
11898
- allowWorkers?: boolean | undefined;
11899
- allowMessaging?: boolean | undefined;
11900
- title?: string | undefined;
11901
- task?: string | undefined;
11902
- };
11903
- } & {
11904
- param: {
11905
- id: string;
11906
- };
11907
- };
11908
- } | {
11909
- output: {
11910
- error: string;
11911
- };
11912
- outputFormat: "json";
11913
- status: 409;
11914
- input: {
11915
- json: {
11916
- archiveWhenDone?: boolean | undefined;
11917
- autoMergePr?: boolean | undefined;
11918
- allowWorkers?: boolean | undefined;
11919
- allowMessaging?: boolean | undefined;
11920
- title?: string | undefined;
11921
- task?: string | undefined;
11922
- };
11923
- } & {
11924
- param: {
11925
- id: string;
11926
- };
11927
- };
11928
11928
  };
11929
11929
  };
11930
11930
  } & {
@@ -12029,7 +12029,7 @@ export declare function createRunsRoutes(deps: RunsRouteDeps): import("hono/hono
12029
12029
  error: string;
12030
12030
  };
12031
12031
  outputFormat: "json";
12032
- status: 404;
12032
+ status: 400;
12033
12033
  input: {
12034
12034
  json: {
12035
12035
  text?: string | undefined;
@@ -12048,7 +12048,7 @@ export declare function createRunsRoutes(deps: RunsRouteDeps): import("hono/hono
12048
12048
  error: string;
12049
12049
  };
12050
12050
  outputFormat: "json";
12051
- status: 409;
12051
+ status: 404;
12052
12052
  input: {
12053
12053
  json: {
12054
12054
  text?: string | undefined;
@@ -12064,10 +12064,10 @@ export declare function createRunsRoutes(deps: RunsRouteDeps): import("hono/hono
12064
12064
  };
12065
12065
  } | {
12066
12066
  output: {
12067
- delivered: true;
12067
+ error: string;
12068
12068
  };
12069
12069
  outputFormat: "json";
12070
- status: import("hono/utils/http-status").ContentfulStatusCode;
12070
+ status: 409;
12071
12071
  input: {
12072
12072
  json: {
12073
12073
  text?: string | undefined;
@@ -12083,10 +12083,10 @@ export declare function createRunsRoutes(deps: RunsRouteDeps): import("hono/hono
12083
12083
  };
12084
12084
  } | {
12085
12085
  output: {
12086
- error: string;
12086
+ delivered: true;
12087
12087
  };
12088
12088
  outputFormat: "json";
12089
- status: 400;
12089
+ status: import("hono/utils/http-status").ContentfulStatusCode;
12090
12090
  input: {
12091
12091
  json: {
12092
12092
  text?: string | undefined;
@@ -12154,7 +12154,7 @@ export declare function createRunsRoutes(deps: RunsRouteDeps): import("hono/hono
12154
12154
  error: string;
12155
12155
  };
12156
12156
  outputFormat: "json";
12157
- status: 404;
12157
+ status: 400;
12158
12158
  input: {
12159
12159
  json: {
12160
12160
  text?: string | undefined;
@@ -12175,7 +12175,7 @@ export declare function createRunsRoutes(deps: RunsRouteDeps): import("hono/hono
12175
12175
  error: string;
12176
12176
  };
12177
12177
  outputFormat: "json";
12178
- status: 400;
12178
+ status: 404;
12179
12179
  input: {
12180
12180
  json: {
12181
12181
  text?: string | undefined;
@@ -12395,10 +12395,11 @@ export declare function createRunsRoutes(deps: RunsRouteDeps): import("hono/hono
12395
12395
  "/runs/:id/open-in-cli": {
12396
12396
  $post: {
12397
12397
  output: {
12398
- error: string;
12398
+ opened: true;
12399
+ command: string;
12399
12400
  };
12400
12401
  outputFormat: "json";
12401
- status: 404 | 409;
12402
+ status: import("hono/utils/http-status").ContentfulStatusCode;
12402
12403
  input: {
12403
12404
  param: {
12404
12405
  id: string;
@@ -12406,11 +12407,10 @@ export declare function createRunsRoutes(deps: RunsRouteDeps): import("hono/hono
12406
12407
  };
12407
12408
  } | {
12408
12409
  output: {
12409
- opened: true;
12410
- command: string;
12410
+ error: string;
12411
12411
  };
12412
12412
  outputFormat: "json";
12413
- status: import("hono/utils/http-status").ContentfulStatusCode;
12413
+ status: 404 | 409;
12414
12414
  input: {
12415
12415
  param: {
12416
12416
  id: string;
@@ -12425,7 +12425,7 @@ export declare function createRunsRoutes(deps: RunsRouteDeps): import("hono/hono
12425
12425
  error: string;
12426
12426
  };
12427
12427
  outputFormat: "json";
12428
- status: 404 | 409;
12428
+ status: 400;
12429
12429
  input: {
12430
12430
  json: {
12431
12431
  target: string;
@@ -12438,10 +12438,11 @@ export declare function createRunsRoutes(deps: RunsRouteDeps): import("hono/hono
12438
12438
  };
12439
12439
  } | {
12440
12440
  output: {
12441
- error: string;
12441
+ opened: true;
12442
+ path: string;
12442
12443
  };
12443
12444
  outputFormat: "json";
12444
- status: 400;
12445
+ status: import("hono/utils/http-status").ContentfulStatusCode;
12445
12446
  input: {
12446
12447
  json: {
12447
12448
  target: string;
@@ -12454,11 +12455,10 @@ export declare function createRunsRoutes(deps: RunsRouteDeps): import("hono/hono
12454
12455
  };
12455
12456
  } | {
12456
12457
  output: {
12457
- opened: true;
12458
- path: string;
12458
+ error: string;
12459
12459
  };
12460
12460
  outputFormat: "json";
12461
- status: import("hono/utils/http-status").ContentfulStatusCode;
12461
+ status: 404 | 409;
12462
12462
  input: {
12463
12463
  json: {
12464
12464
  target: string;
@@ -12498,9 +12498,12 @@ export declare function createRunsRoutes(deps: RunsRouteDeps): import("hono/hono
12498
12498
  } & {
12499
12499
  "/runs/:id/images/:file": {
12500
12500
  $get: {
12501
- output: {};
12502
- outputFormat: string;
12503
- status: import("hono/utils/http-status").StatusCode;
12501
+ output: {
12502
+ error: string;
12503
+ code?: "invalid_input" | undefined;
12504
+ };
12505
+ outputFormat: "json";
12506
+ status: 400;
12504
12507
  input: {
12505
12508
  param: {
12506
12509
  id: string;
@@ -12508,12 +12511,9 @@ export declare function createRunsRoutes(deps: RunsRouteDeps): import("hono/hono
12508
12511
  };
12509
12512
  };
12510
12513
  } | {
12511
- output: {
12512
- error: string;
12513
- code?: "invalid_input" | undefined;
12514
- };
12515
- outputFormat: "json";
12516
- status: 400;
12514
+ output: {};
12515
+ outputFormat: string;
12516
+ status: import("hono/utils/http-status").StatusCode;
12517
12517
  input: {
12518
12518
  param: {
12519
12519
  id: string;
@@ -12546,7 +12546,7 @@ export declare function createRunsRoutes(deps: RunsRouteDeps): import("hono/hono
12546
12546
  error: string;
12547
12547
  };
12548
12548
  outputFormat: "json";
12549
- status: 409;
12549
+ status: 404;
12550
12550
  input: {
12551
12551
  param: {
12552
12552
  id: string;
@@ -12562,7 +12562,7 @@ export declare function createRunsRoutes(deps: RunsRouteDeps): import("hono/hono
12562
12562
  error: string;
12563
12563
  };
12564
12564
  outputFormat: "json";
12565
- status: 404;
12565
+ status: 409;
12566
12566
  input: {
12567
12567
  param: {
12568
12568
  id: string;
@@ -12727,17 +12727,6 @@ export declare function createRunsRoutes(deps: RunsRouteDeps): import("hono/hono
12727
12727
  } & {
12728
12728
  "/runs/:id/changes": {
12729
12729
  $get: {
12730
- output: {
12731
- error: string;
12732
- };
12733
- outputFormat: "json";
12734
- status: 404 | 409;
12735
- input: {
12736
- param: {
12737
- id: string;
12738
- };
12739
- };
12740
- } | {
12741
12730
  output: {
12742
12731
  files: {
12743
12732
  path: string;
@@ -12766,11 +12755,7 @@ export declare function createRunsRoutes(deps: RunsRouteDeps): import("hono/hono
12766
12755
  id: string;
12767
12756
  };
12768
12757
  };
12769
- };
12770
- };
12771
- } & {
12772
- "/runs/:id/commits": {
12773
- $get: {
12758
+ } | {
12774
12759
  output: {
12775
12760
  error: string;
12776
12761
  };
@@ -12781,7 +12766,11 @@ export declare function createRunsRoutes(deps: RunsRouteDeps): import("hono/hono
12781
12766
  id: string;
12782
12767
  };
12783
12768
  };
12784
- } | {
12769
+ };
12770
+ };
12771
+ } & {
12772
+ "/runs/:id/commits": {
12773
+ $get: {
12785
12774
  output: {
12786
12775
  commits: {
12787
12776
  sha: string;
@@ -12797,11 +12786,7 @@ export declare function createRunsRoutes(deps: RunsRouteDeps): import("hono/hono
12797
12786
  id: string;
12798
12787
  };
12799
12788
  };
12800
- };
12801
- };
12802
- } & {
12803
- "/runs/:id/commit/:sha": {
12804
- $get: {
12789
+ } | {
12805
12790
  output: {
12806
12791
  error: string;
12807
12792
  };
@@ -12810,11 +12795,13 @@ export declare function createRunsRoutes(deps: RunsRouteDeps): import("hono/hono
12810
12795
  input: {
12811
12796
  param: {
12812
12797
  id: string;
12813
- } & {
12814
- sha: string;
12815
12798
  };
12816
12799
  };
12817
- } | {
12800
+ };
12801
+ };
12802
+ } & {
12803
+ "/runs/:id/commit/:sha": {
12804
+ $get: {
12818
12805
  output: {
12819
12806
  sha: string;
12820
12807
  subject: string;
@@ -12845,6 +12832,19 @@ export declare function createRunsRoutes(deps: RunsRouteDeps): import("hono/hono
12845
12832
  sha: string;
12846
12833
  };
12847
12834
  };
12835
+ } | {
12836
+ output: {
12837
+ error: string;
12838
+ };
12839
+ outputFormat: "json";
12840
+ status: 404 | 409;
12841
+ input: {
12842
+ param: {
12843
+ id: string;
12844
+ } & {
12845
+ sha: string;
12846
+ };
12847
+ };
12848
12848
  };
12849
12849
  };
12850
12850
  } & {
@@ -12868,10 +12868,15 @@ export declare function createRunsRoutes(deps: RunsRouteDeps): import("hono/hono
12868
12868
  };
12869
12869
  } | {
12870
12870
  output: {
12871
- error: string;
12871
+ type: 'file';
12872
+ path: string;
12873
+ size: number;
12874
+ binary: boolean;
12875
+ tooLarge: boolean;
12876
+ content?: string | undefined;
12872
12877
  };
12873
12878
  outputFormat: "json";
12874
- status: 404 | 409;
12879
+ status: import("hono/utils/http-status").ContentfulStatusCode;
12875
12880
  input: {
12876
12881
  param: {
12877
12882
  sha: string;
@@ -12884,15 +12889,10 @@ export declare function createRunsRoutes(deps: RunsRouteDeps): import("hono/hono
12884
12889
  };
12885
12890
  } | {
12886
12891
  output: {
12887
- type: 'file';
12888
- path: string;
12889
- size: number;
12890
- binary: boolean;
12891
- tooLarge: boolean;
12892
- content?: string | undefined;
12892
+ error: string;
12893
12893
  };
12894
12894
  outputFormat: "json";
12895
- status: import("hono/utils/http-status").ContentfulStatusCode;
12895
+ status: 404 | 409;
12896
12896
  input: {
12897
12897
  param: {
12898
12898
  sha: string;
@@ -12938,22 +12938,6 @@ export declare function createRunsRoutes(deps: RunsRouteDeps): import("hono/hono
12938
12938
  raw?: "1" | undefined;
12939
12939
  };
12940
12940
  };
12941
- } | {
12942
- output: {
12943
- error: string;
12944
- };
12945
- outputFormat: "json";
12946
- status: 404 | 409;
12947
- input: {
12948
- param: {
12949
- id: string;
12950
- };
12951
- } & {
12952
- query: {
12953
- path: string | string[];
12954
- raw?: "1" | undefined;
12955
- };
12956
- };
12957
12941
  } | {
12958
12942
  output: {
12959
12943
  type: "file";
@@ -12990,6 +12974,22 @@ export declare function createRunsRoutes(deps: RunsRouteDeps): import("hono/hono
12990
12974
  raw?: "1" | undefined;
12991
12975
  };
12992
12976
  };
12977
+ } | {
12978
+ output: {
12979
+ error: string;
12980
+ };
12981
+ outputFormat: "json";
12982
+ status: 404 | 409;
12983
+ input: {
12984
+ param: {
12985
+ id: string;
12986
+ };
12987
+ } & {
12988
+ query: {
12989
+ path: string | string[];
12990
+ raw?: "1" | undefined;
12991
+ };
12992
+ };
12993
12993
  };
12994
12994
  };
12995
12995
  } & {
@@ -13054,6 +13054,18 @@ export declare function createRunsRoutes(deps: RunsRouteDeps): import("hono/hono
13054
13054
  artifactId: string;
13055
13055
  };
13056
13056
  };
13057
+ } | {
13058
+ output: {
13059
+ error: string;
13060
+ };
13061
+ outputFormat: "json";
13062
+ status: 404;
13063
+ input: {
13064
+ param: {
13065
+ id: string;
13066
+ artifactId: string;
13067
+ };
13068
+ };
13057
13069
  } | {
13058
13070
  output: {
13059
13071
  type: "file";
@@ -13082,18 +13094,6 @@ export declare function createRunsRoutes(deps: RunsRouteDeps): import("hono/hono
13082
13094
  artifactId: string;
13083
13095
  };
13084
13096
  };
13085
- } | {
13086
- output: {
13087
- error: string;
13088
- };
13089
- outputFormat: "json";
13090
- status: 404;
13091
- input: {
13092
- param: {
13093
- id: string;
13094
- artifactId: string;
13095
- };
13096
- };
13097
13097
  };
13098
13098
  };
13099
13099
  } & {
@@ -13269,22 +13269,6 @@ export declare function createRunsRoutes(deps: RunsRouteDeps): import("hono/hono
13269
13269
  id: string;
13270
13270
  };
13271
13271
  };
13272
- } | {
13273
- output: {
13274
- error: string;
13275
- };
13276
- outputFormat: "json";
13277
- status: 404 | 409;
13278
- input: {
13279
- query: {
13280
- path?: string | undefined;
13281
- raw?: string | undefined;
13282
- };
13283
- } & {
13284
- param: {
13285
- id: string;
13286
- };
13287
- };
13288
13272
  } | {
13289
13273
  output: {
13290
13274
  type: 'file';
@@ -13329,16 +13313,33 @@ export declare function createRunsRoutes(deps: RunsRouteDeps): import("hono/hono
13329
13313
  id: string;
13330
13314
  };
13331
13315
  };
13316
+ } | {
13317
+ output: {
13318
+ error: string;
13319
+ };
13320
+ outputFormat: "json";
13321
+ status: 404 | 409;
13322
+ input: {
13323
+ query: {
13324
+ path?: string | undefined;
13325
+ raw?: string | undefined;
13326
+ };
13327
+ } & {
13328
+ param: {
13329
+ id: string;
13330
+ };
13331
+ };
13332
13332
  };
13333
13333
  };
13334
13334
  } & {
13335
13335
  "/runs/:id/git/commit": {
13336
13336
  $post: {
13337
13337
  output: {
13338
- error: string;
13338
+ committed: true;
13339
+ sha: string;
13339
13340
  };
13340
13341
  outputFormat: "json";
13341
- status: 404 | 409;
13342
+ status: import("hono/utils/http-status").ContentfulStatusCode;
13342
13343
  input: {
13343
13344
  json: {
13344
13345
  message: string;
@@ -13350,11 +13351,10 @@ export declare function createRunsRoutes(deps: RunsRouteDeps): import("hono/hono
13350
13351
  };
13351
13352
  } | {
13352
13353
  output: {
13353
- committed: true;
13354
- sha: string;
13354
+ error: string;
13355
13355
  };
13356
13356
  outputFormat: "json";
13357
- status: import("hono/utils/http-status").ContentfulStatusCode;
13357
+ status: 404 | 409;
13358
13358
  input: {
13359
13359
  json: {
13360
13360
  message: string;
@@ -13370,10 +13370,13 @@ export declare function createRunsRoutes(deps: RunsRouteDeps): import("hono/hono
13370
13370
  "/runs/:id/git/push": {
13371
13371
  $post: {
13372
13372
  output: {
13373
- error: string;
13373
+ pushed: true;
13374
+ branch: string;
13375
+ remote: string;
13376
+ upstreamSet: boolean;
13374
13377
  };
13375
13378
  outputFormat: "json";
13376
- status: 404 | 409;
13379
+ status: import("hono/utils/http-status").ContentfulStatusCode;
13377
13380
  input: {
13378
13381
  param: {
13379
13382
  id: string;
@@ -13381,13 +13384,10 @@ export declare function createRunsRoutes(deps: RunsRouteDeps): import("hono/hono
13381
13384
  };
13382
13385
  } | {
13383
13386
  output: {
13384
- pushed: true;
13385
- branch: string;
13386
- remote: string;
13387
- upstreamSet: boolean;
13387
+ error: string;
13388
13388
  };
13389
13389
  outputFormat: "json";
13390
- status: import("hono/utils/http-status").ContentfulStatusCode;
13390
+ status: 404 | 409;
13391
13391
  input: {
13392
13392
  param: {
13393
13393
  id: string;
@@ -13399,10 +13399,11 @@ export declare function createRunsRoutes(deps: RunsRouteDeps): import("hono/hono
13399
13399
  "/runs/:id/pr": {
13400
13400
  $post: {
13401
13401
  output: {
13402
- error: string;
13402
+ url: string;
13403
+ dryRun: boolean;
13403
13404
  };
13404
13405
  outputFormat: "json";
13405
- status: 404 | 409;
13406
+ status: 201;
13406
13407
  input: {
13407
13408
  param: {
13408
13409
  id: string;
@@ -13410,11 +13411,10 @@ export declare function createRunsRoutes(deps: RunsRouteDeps): import("hono/hono
13410
13411
  };
13411
13412
  } | {
13412
13413
  output: {
13413
- url: string;
13414
- dryRun: boolean;
13414
+ error: string;
13415
13415
  };
13416
13416
  outputFormat: "json";
13417
- status: 201;
13417
+ status: 404 | 409;
13418
13418
  input: {
13419
13419
  param: {
13420
13420
  id: string;
@@ -13426,10 +13426,10 @@ export declare function createRunsRoutes(deps: RunsRouteDeps): import("hono/hono
13426
13426
  "/runs/:id/remove-worktree": {
13427
13427
  $post: {
13428
13428
  output: {
13429
- error: string;
13429
+ removed: true;
13430
13430
  };
13431
13431
  outputFormat: "json";
13432
- status: 404 | 409;
13432
+ status: import("hono/utils/http-status").ContentfulStatusCode;
13433
13433
  input: {
13434
13434
  param: {
13435
13435
  id: string;
@@ -13437,10 +13437,10 @@ export declare function createRunsRoutes(deps: RunsRouteDeps): import("hono/hono
13437
13437
  };
13438
13438
  } | {
13439
13439
  output: {
13440
- removed: true;
13440
+ error: string;
13441
13441
  };
13442
13442
  outputFormat: "json";
13443
- status: import("hono/utils/http-status").ContentfulStatusCode;
13443
+ status: 404 | 409;
13444
13444
  input: {
13445
13445
  param: {
13446
13446
  id: string;
@@ -13452,10 +13452,10 @@ export declare function createRunsRoutes(deps: RunsRouteDeps): import("hono/hono
13452
13452
  "/runs/:id": {
13453
13453
  $delete: {
13454
13454
  output: {
13455
- error: string;
13455
+ deleted: true;
13456
13456
  };
13457
13457
  outputFormat: "json";
13458
- status: 404 | 409;
13458
+ status: import("hono/utils/http-status").ContentfulStatusCode;
13459
13459
  input: {
13460
13460
  param: {
13461
13461
  id: string;
@@ -13463,10 +13463,10 @@ export declare function createRunsRoutes(deps: RunsRouteDeps): import("hono/hono
13463
13463
  };
13464
13464
  } | {
13465
13465
  output: {
13466
- deleted: true;
13466
+ error: string;
13467
13467
  };
13468
13468
  outputFormat: "json";
13469
- status: import("hono/utils/http-status").ContentfulStatusCode;
13469
+ status: 404 | 409;
13470
13470
  input: {
13471
13471
  param: {
13472
13472
  id: string;