@hearsay-tools/squawk 0.19.0-dev.9229.2 → 0.19.0-dev.9239

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 (144) hide show
  1. package/dist/activity/read-model.js +5 -2
  2. package/dist/activity/read-model.js.map +1 -1
  3. package/dist/ci-wait/controller.d.ts +7 -7
  4. package/dist/contract/index.d.ts +1 -0
  5. package/dist/contract/index.js +2250 -1940
  6. package/dist/contract/runs.d.ts +117 -0
  7. package/dist/contract/task-result.d.ts +1075 -0
  8. package/dist/delegation/readiness.d.ts +8 -5
  9. package/dist/delegation/readiness.js +23 -9
  10. package/dist/delegation/readiness.js.map +1 -1
  11. package/dist/delegation/routes.d.ts +4 -4
  12. package/dist/delegation/service.js +4 -2
  13. package/dist/delegation/service.js.map +1 -1
  14. package/dist/delegation/worker-cleanup.js +1 -1
  15. package/dist/delegation/worker-cleanup.js.map +1 -1
  16. package/dist/features/automations/automations-routes.d.ts +150 -150
  17. package/dist/features/reports/routes.d.ts +2 -2
  18. package/dist/project-migration/journal.d.ts +2 -0
  19. package/dist/project-migration/journal.js +1 -1
  20. package/dist/project-migration/journal.js.map +1 -1
  21. package/dist/project-migration/plan.js +2 -0
  22. package/dist/project-migration/plan.js.map +1 -1
  23. package/dist/runs/legacy-run-rows.d.ts +1 -1
  24. package/dist/runs/legacy-run-rows.js +7 -3
  25. package/dist/runs/legacy-run-rows.js.map +1 -1
  26. package/dist/runs/ports.d.ts +16 -1
  27. package/dist/runs/project-run-connection.d.ts +3 -0
  28. package/dist/runs/project-run-connection.js +57 -10
  29. package/dist/runs/project-run-connection.js.map +1 -1
  30. package/dist/runs/project-run-sources.d.ts +6 -0
  31. package/dist/runs/project-run-sources.js +20 -0
  32. package/dist/runs/project-run-sources.js.map +1 -1
  33. package/dist/runs/run-archive.d.ts +19 -0
  34. package/dist/runs/run-decode.d.ts +58 -0
  35. package/dist/runs/run-decode.js +10 -0
  36. package/dist/runs/run-decode.js.map +1 -1
  37. package/dist/runs/run-exits.d.ts +114 -0
  38. package/dist/runs/run-retention.d.ts +2 -0
  39. package/dist/runs/run-retention.js +11 -2
  40. package/dist/runs/run-retention.js.map +1 -1
  41. package/dist/runs/store.d.ts +3 -0
  42. package/dist/runs/store.js +11 -5
  43. package/dist/runs/store.js.map +1 -1
  44. package/dist/runs/task-result-commit.d.ts +24 -0
  45. package/dist/runs/task-result-commit.js +114 -0
  46. package/dist/runs/task-result-commit.js.map +1 -0
  47. package/dist/runs/task-results.d.ts +61 -0
  48. package/dist/runs/task-results.js +220 -0
  49. package/dist/runs/task-results.js.map +1 -0
  50. package/dist/runs/worker-result-commit.d.ts +12 -12
  51. package/dist/runs/worker-result-commit.js +77 -55
  52. package/dist/runs/worker-result-commit.js.map +1 -1
  53. package/dist/runs/worker-results.d.ts +10 -26
  54. package/dist/runs/worker-results.js +11 -73
  55. package/dist/runs/worker-results.js.map +1 -1
  56. package/dist/server/activity-routes.d.ts +23 -23
  57. package/dist/server/project-settings-routes.d.ts +107 -107
  58. package/dist/server/projects-routes.d.ts +41 -41
  59. package/dist/server/provider-sign-in-routes.d.ts +2 -2
  60. package/dist/server/runner-install-routes.d.ts +10 -10
  61. package/dist/server/runs-routes.d.ts +497 -326
  62. package/dist/server/server.d.ts +2999 -2657
  63. package/dist/server/workspace-identity-routes.d.ts +5 -5
  64. package/dist/workflows/continuation-admission.d.ts +91 -72
  65. package/dist/workflows/input-acknowledgement.d.ts +24 -24
  66. package/dist/workflows/run/completion-gate.js +10 -4
  67. package/dist/workflows/run/completion-gate.js.map +1 -1
  68. package/dist/workflows/run/wait-engine.d.ts +91 -72
  69. package/package.json +4 -4
  70. package/web/dist/assets/{accounts-section-lnMwvHTo.js → accounts-section-BOZ9JyE6.js} +1 -1
  71. package/web/dist/assets/{activity-motion-DBxIOskd.js → activity-motion-D48R7Vry.js} +1 -1
  72. package/web/dist/assets/{activity-route-BYf5OD8Y.js → activity-route-jcGRtnMT.js} +1 -1
  73. package/web/dist/assets/{agent-accounts-BzD14qLU.js → agent-accounts-CUthX0Yh.js} +1 -1
  74. package/web/dist/assets/{agent-config-section-BwmBjoad.js → agent-config-section-BvwoyNZb.js} +1 -1
  75. package/web/dist/assets/{agent-defaults-section-BbFvw0IO.js → agent-defaults-section-Hb-jy4TN.js} +1 -1
  76. package/web/dist/assets/{appearance-CkohbKAs.js → appearance-EXKzoghV.js} +1 -1
  77. package/web/dist/assets/{archive-on-merge-field-CQ8DBqiG.js → archive-on-merge-field-Ni7bKGkG.js} +1 -1
  78. package/web/dist/assets/{ask-card-Bli7vYif.js → ask-card-CkE44gm3.js} +1 -1
  79. package/web/dist/assets/{automations-route-BNYFQeuu.js → automations-route-3bhtdTy3.js} +1 -1
  80. package/web/dist/assets/{commit-list-CJZtpbaw.js → commit-list-DSw7qvVY.js} +1 -1
  81. package/web/dist/assets/{diff-DPSOaO5_.js → diff-BidPzsVK.js} +2 -2
  82. package/web/dist/assets/{diff-controls-rfNgY_Dd.js → diff-controls-DeMSGYln.js} +1 -1
  83. package/web/dist/assets/{diff-view-CswchTTd.js → diff-view-BqU4sJld.js} +1 -1
  84. package/web/dist/assets/{discard-changes-dialog-BMT0YtWx.js → discard-changes-dialog-B1AO0GSt.js} +1 -1
  85. package/web/dist/assets/{file-preview-DoaMlVS3.js → file-preview-BIZXTzkp.js} +1 -1
  86. package/web/dist/assets/{folder-browser-D_q7aPq-.js → folder-browser-C9Phl0rS.js} +1 -1
  87. package/web/dist/assets/{git-toolbar-BCqNvkr5.js → git-toolbar-BBon1yHh.js} +1 -1
  88. package/web/dist/assets/{github-Bv1h-3dP.js → github-QOB5Qi4v.js} +1 -1
  89. package/web/dist/assets/{global-activity-route-CrAG-ji7.js → global-activity-route-lSnYAZE9.js} +1 -1
  90. package/web/dist/assets/{hosts-pzCm30ta.js → hosts-DDwDUxT9.js} +1 -1
  91. package/web/dist/assets/{index-D9hyWO4C.js → index-BuR9xHfb.js} +5 -5
  92. package/web/dist/assets/{label-DEZnEIpB.js → label-D6vgq5lF.js} +1 -1
  93. package/web/dist/assets/{markdown-BRE9fTUI.js → markdown-A6dvDky9.js} +1 -1
  94. package/web/dist/assets/{open-in-menu-DomSOC26.js → open-in-menu-Bb_jc7pm.js} +1 -1
  95. package/web/dist/assets/{option-select-Cqnmt-CB.js → option-select-CCpypHbW.js} +1 -1
  96. package/web/dist/assets/{preferences-section-CC4m45tb.js → preferences-section-B75Zx0mY.js} +1 -1
  97. package/web/dist/assets/{preview-DFL4D2C_.js → preview-DiBpgf-5.js} +1 -1
  98. package/web/dist/assets/{preview-pane-connected-CvF3zJ9A.js → preview-pane-connected-BVu2oO0V.js} +1 -1
  99. package/web/dist/assets/{project-location-D6-Lo1vY.js → project-location-D1etWKHg.js} +1 -1
  100. package/web/dist/assets/{project-router-CARDbdMX.js → project-router-yoWCTDaT.js} +1 -1
  101. package/web/dist/assets/project-scope-context-hfRzPMZ4.js +4 -0
  102. package/web/dist/assets/{projects-section-zeGtqnI3.js → projects-section-BRnIJ47e.js} +1 -1
  103. package/web/dist/assets/{prompt-templates-section--ygct2zC.js → prompt-templates-section-D7JLM5BM.js} +1 -1
  104. package/web/dist/assets/{queries-D7W-eGim.js → queries-ChH9ctc-.js} +1 -1
  105. package/web/dist/assets/{reference-chip-D8ckcrda.js → reference-chip-BPRZm7Kb.js} +1 -1
  106. package/web/dist/assets/{remote-settings-notice-MxDxNXXw.js → remote-settings-notice-Ip6H5hLU.js} +1 -1
  107. package/web/dist/assets/{repo-git-VfTEbVO3.js → repo-git-Wf30akEt.js} +1 -1
  108. package/web/dist/assets/{report-reader-DLCLUfdH.js → report-reader-DhcZcNql.js} +1 -1
  109. package/web/dist/assets/{report-selection-BcsbTczw.js → report-selection-CwPw7vbG.js} +1 -1
  110. package/web/dist/assets/{reports-QoDlngjL.js → reports-DPKDwzxY.js} +1 -1
  111. package/web/dist/assets/{resources-section-CBL0htm5.js → resources-section-DaWcyqur.js} +1 -1
  112. package/web/dist/assets/{review-notes-drafts-DJDQNemf.js → review-notes-drafts-D7QuBuTL.js} +1 -1
  113. package/web/dist/assets/{review-panel-BY05CuXd.js → review-panel-Bpxl4TvO.js} +1 -1
  114. package/web/dist/assets/{review-strip-BWhQ5CIC.js → review-strip-Da5n1k8s.js} +1 -1
  115. package/web/dist/assets/{run-detail-refresh-CecZhU-h.js → run-detail-refresh-CVSK_VKG.js} +1 -1
  116. package/web/dist/assets/{run-diff-CpwwrpXO.js → run-diff-CPuNFD3X.js} +1 -1
  117. package/web/dist/assets/{run-header-CZU3e9Xk.js → run-header-B8EAOHFc.js} +1 -1
  118. package/web/dist/assets/{select-C72KGfnK.js → select-xjUzLrk9.js} +1 -1
  119. package/web/dist/assets/{session-context-section-D8v30mSp.js → session-context-section-C7OTexKU.js} +1 -1
  120. package/web/dist/assets/{settings-agent-picker-DGhJwDIY.js → settings-agent-picker-mESK-hj4.js} +1 -1
  121. package/web/dist/assets/{settings-save-bar-Dp-eEIEF.js → settings-save-bar-BUaa1kHw.js} +1 -1
  122. package/web/dist/assets/{settings-shell-DZzgCmSz.js → settings-shell-BKSsBxqQ.js} +1 -1
  123. package/web/dist/assets/{sidebar-section-B94mdYUS.js → sidebar-section-BFBZlQ-x.js} +1 -1
  124. package/web/dist/assets/{skills-B6jO_f1w.js → skills-BSqszv5g.js} +1 -1
  125. package/web/dist/assets/{status-dot-B5MkhHDP.js → status-dot-Fp5SnPHI.js} +1 -1
  126. package/web/dist/assets/{tab-link-zXPa9LIz.js → tab-link-j06AaWSU.js} +1 -1
  127. package/web/dist/assets/{task-changes-B_2BDWIf.js → task-changes-B4KFHxVa.js} +1 -1
  128. package/web/dist/assets/{task-commits-kxDG4T81.js → task-commits-D-UAUoZ5.js} +1 -1
  129. package/web/dist/assets/{task-file-scope-DVACyrij.js → task-file-scope-BhWG35a8.js} +1 -1
  130. package/web/dist/assets/{task-files-4CxXkPOx.js → task-files-BOCx_Lp0.js} +1 -1
  131. package/web/dist/assets/{task-github-item-C8hMZej3.js → task-github-item-CZqaaxNv.js} +1 -1
  132. package/web/dist/assets/{task-thread-Bv_Fjceh.js → task-thread-D3d419VX.js} +1 -1
  133. package/web/dist/assets/{thread-state-CufNf_fC.js → thread-state-B0pz2Y8K.js} +1 -1
  134. package/web/dist/assets/{use-finish-run-CjYc6ovQ.js → use-finish-run-TX3pIPCS.js} +1 -1
  135. package/web/dist/assets/{use-hand-to-agent-state-B_j_e1kD.js → use-hand-to-agent-state-D2oChRzw.js} +1 -1
  136. package/web/dist/assets/use-path-bases-DFxEHoyU.js +1 -0
  137. package/web/dist/assets/use-workspace-config-save-DR8brU5p.js +1 -0
  138. package/web/dist/assets/{workflows-iMfDerlK.js → workflows-BwzNhxT0.js} +1 -1
  139. package/web/dist/assets/{workspace-tools-CgYFRggf.js → workspace-tools-Be_j9oke.js} +1 -1
  140. package/web/dist/assets/{worktrees-section-CtT9bwKK.js → worktrees-section-cnibWU5-.js} +1 -1
  141. package/web/dist/index.html +14 -14
  142. package/web/dist/assets/project-scope-context-Bz7AAyJ4.js +0 -4
  143. package/web/dist/assets/use-path-bases-BfjK7tem.js +0 -1
  144. package/web/dist/assets/use-workspace-config-save-toCmvqtz.js +0 -1
@@ -92,8 +92,6 @@ export declare function createRunsRoutes(deps: RunsRouteDeps): import("hono/hono
92
92
  } | undefined;
93
93
  invalidAsk?: boolean | undefined;
94
94
  delegation?: {
95
- role: "invalid";
96
- } | {
97
95
  role: "root";
98
96
  conversation?: {
99
97
  messages: {
@@ -328,6 +326,8 @@ export declare function createRunsRoutes(deps: RunsRouteDeps): import("hono/hono
328
326
  } | undefined;
329
327
  executionRevision?: number | undefined;
330
328
  executionStartSeq?: number | undefined;
329
+ } | {
330
+ role: "invalid";
331
331
  } | undefined;
332
332
  agentInputs?: {
333
333
  conversation?: {
@@ -1054,6 +1054,25 @@ export declare function createRunsRoutes(deps: RunsRouteDeps): import("hono/hono
1054
1054
  nextAt: string;
1055
1055
  needsAttention?: true | undefined;
1056
1056
  } | undefined;
1057
+ result?: {
1058
+ revision: number;
1059
+ snapshotId: string;
1060
+ observedAt: string;
1061
+ lastExecutionOutcome: "cancelled" | "completed" | "failed" | "review-ready" | "running";
1062
+ previous?: {
1063
+ revision: number;
1064
+ observedAt: string;
1065
+ lastExecutionOutcome: "cancelled" | "completed" | "failed" | "review-ready" | "running";
1066
+ } | undefined;
1067
+ } | undefined;
1068
+ executionRevision?: number | undefined;
1069
+ executionStartSeq?: number | undefined;
1070
+ workerAcknowledgements?: {
1071
+ workerId: string;
1072
+ revision: number;
1073
+ status: "cancelled" | "done" | "failed" | "queued" | "review" | "running" | "waiting";
1074
+ observedAt: string;
1075
+ }[] | undefined;
1057
1076
  notify?: boolean | undefined;
1058
1077
  webhook?: {
1059
1078
  lastDeliveredAt?: string | undefined;
@@ -1215,6 +1234,18 @@ export declare function createRunsRoutes(deps: RunsRouteDeps): import("hono/hono
1215
1234
  } & {
1216
1235
  "/run-summaries": {
1217
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
+ } | {
1218
1249
  output: {
1219
1250
  id: string;
1220
1251
  title: string;
@@ -1352,18 +1383,6 @@ export declare function createRunsRoutes(deps: RunsRouteDeps): import("hono/hono
1352
1383
  archived?: "all" | "recent" | undefined;
1353
1384
  };
1354
1385
  };
1355
- } | {
1356
- output: {
1357
- error: string;
1358
- code?: "invalid_input" | undefined;
1359
- };
1360
- outputFormat: "json";
1361
- status: 400;
1362
- input: {
1363
- query: {
1364
- archived?: "all" | "recent" | undefined;
1365
- };
1366
- };
1367
1386
  };
1368
1387
  };
1369
1388
  } & {
@@ -1725,11 +1744,24 @@ export declare function createRunsRoutes(deps: RunsRouteDeps): import("hono/hono
1725
1744
  "/runs/:id/worker-destroy": {
1726
1745
  $post: {
1727
1746
  output: {
1728
- error: string;
1729
- 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;
1730
1762
  };
1731
1763
  outputFormat: "json";
1732
- status: 400;
1764
+ status: 200;
1733
1765
  input: {
1734
1766
  query: {
1735
1767
  [x: string]: string | string[];
@@ -1745,24 +1777,11 @@ export declare function createRunsRoutes(deps: RunsRouteDeps): import("hono/hono
1745
1777
  };
1746
1778
  } | {
1747
1779
  output: {
1748
- workerId: string;
1749
- state: "complete" | "incomplete";
1750
- work?: {
1751
- uncommittedFiles: number;
1752
- commits: number;
1753
- } | undefined;
1754
- deleted?: ({
1755
- kind: "worktree";
1756
- path: string;
1757
- } | {
1758
- kind: "branch";
1759
- ref: string;
1760
- })[] | undefined;
1761
- remaining: ("branch" | "process" | "worktree")[];
1762
- error?: string | undefined;
1780
+ error: string;
1781
+ code?: "invalid_input" | undefined;
1763
1782
  };
1764
1783
  outputFormat: "json";
1765
- status: 200;
1784
+ status: 400;
1766
1785
  input: {
1767
1786
  query: {
1768
1787
  [x: string]: string | string[];
@@ -1878,6 +1897,21 @@ export declare function createRunsRoutes(deps: RunsRouteDeps): import("hono/hono
1878
1897
  } & {
1879
1898
  "/runs/:id/archive": {
1880
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
+ } | {
1881
1915
  output: {
1882
1916
  archiveWhenDone?: boolean | undefined;
1883
1917
  autoMergePr?: boolean | undefined;
@@ -1939,8 +1973,6 @@ export declare function createRunsRoutes(deps: RunsRouteDeps): import("hono/hono
1939
1973
  } | undefined;
1940
1974
  invalidAsk?: boolean | undefined;
1941
1975
  delegation?: {
1942
- role: "invalid";
1943
- } | {
1944
1976
  role: "root";
1945
1977
  conversation?: {
1946
1978
  messages: {
@@ -2175,6 +2207,8 @@ export declare function createRunsRoutes(deps: RunsRouteDeps): import("hono/hono
2175
2207
  } | undefined;
2176
2208
  executionRevision?: number | undefined;
2177
2209
  executionStartSeq?: number | undefined;
2210
+ } | {
2211
+ role: "invalid";
2178
2212
  } | undefined;
2179
2213
  agentInputs?: {
2180
2214
  conversation?: {
@@ -2901,6 +2935,25 @@ export declare function createRunsRoutes(deps: RunsRouteDeps): import("hono/hono
2901
2935
  nextAt: string;
2902
2936
  needsAttention?: true | undefined;
2903
2937
  } | undefined;
2938
+ result?: {
2939
+ revision: number;
2940
+ snapshotId: string;
2941
+ observedAt: string;
2942
+ lastExecutionOutcome: "cancelled" | "completed" | "failed" | "review-ready" | "running";
2943
+ previous?: {
2944
+ revision: number;
2945
+ observedAt: string;
2946
+ lastExecutionOutcome: "cancelled" | "completed" | "failed" | "review-ready" | "running";
2947
+ } | undefined;
2948
+ } | undefined;
2949
+ executionRevision?: number | undefined;
2950
+ executionStartSeq?: number | undefined;
2951
+ workerAcknowledgements?: {
2952
+ workerId: string;
2953
+ revision: number;
2954
+ status: "cancelled" | "done" | "failed" | "queued" | "review" | "running" | "waiting";
2955
+ observedAt: string;
2956
+ }[] | undefined;
2904
2957
  notify?: boolean | undefined;
2905
2958
  webhook?: {
2906
2959
  lastDeliveredAt?: string | undefined;
@@ -3057,32 +3110,32 @@ export declare function createRunsRoutes(deps: RunsRouteDeps): import("hono/hono
3057
3110
  id: string;
3058
3111
  };
3059
3112
  };
3060
- } | {
3113
+ };
3114
+ };
3115
+ } & {
3116
+ "/runs/:id/pin": {
3117
+ $post: {
3061
3118
  output: {
3062
3119
  error: string;
3120
+ code?: "invalid_input" | undefined;
3063
3121
  };
3064
3122
  outputFormat: "json";
3065
- status: 404;
3123
+ status: 400;
3066
3124
  input: {
3067
- json: {
3068
- archived?: boolean | undefined;
3069
- };
3070
- } & {
3071
3125
  param: {
3072
3126
  id: string;
3073
3127
  };
3128
+ } & {
3129
+ json: {
3130
+ pinned?: boolean | undefined;
3131
+ };
3074
3132
  };
3075
- };
3076
- };
3077
- } & {
3078
- "/runs/:id/pin": {
3079
- $post: {
3133
+ } | {
3080
3134
  output: {
3081
3135
  error: string;
3082
- code?: "invalid_input" | undefined;
3083
3136
  };
3084
3137
  outputFormat: "json";
3085
- status: 400;
3138
+ status: 404;
3086
3139
  input: {
3087
3140
  param: {
3088
3141
  id: string;
@@ -3154,8 +3207,6 @@ export declare function createRunsRoutes(deps: RunsRouteDeps): import("hono/hono
3154
3207
  } | undefined;
3155
3208
  invalidAsk?: boolean | undefined;
3156
3209
  delegation?: {
3157
- role: "invalid";
3158
- } | {
3159
3210
  role: "root";
3160
3211
  conversation?: {
3161
3212
  messages: {
@@ -3390,6 +3441,8 @@ export declare function createRunsRoutes(deps: RunsRouteDeps): import("hono/hono
3390
3441
  } | undefined;
3391
3442
  executionRevision?: number | undefined;
3392
3443
  executionStartSeq?: number | undefined;
3444
+ } | {
3445
+ role: "invalid";
3393
3446
  } | undefined;
3394
3447
  agentInputs?: {
3395
3448
  conversation?: {
@@ -4116,6 +4169,25 @@ export declare function createRunsRoutes(deps: RunsRouteDeps): import("hono/hono
4116
4169
  nextAt: string;
4117
4170
  needsAttention?: true | undefined;
4118
4171
  } | undefined;
4172
+ result?: {
4173
+ revision: number;
4174
+ snapshotId: string;
4175
+ observedAt: string;
4176
+ lastExecutionOutcome: "cancelled" | "completed" | "failed" | "review-ready" | "running";
4177
+ previous?: {
4178
+ revision: number;
4179
+ observedAt: string;
4180
+ lastExecutionOutcome: "cancelled" | "completed" | "failed" | "review-ready" | "running";
4181
+ } | undefined;
4182
+ } | undefined;
4183
+ executionRevision?: number | undefined;
4184
+ executionStartSeq?: number | undefined;
4185
+ workerAcknowledgements?: {
4186
+ workerId: string;
4187
+ revision: number;
4188
+ status: "cancelled" | "done" | "failed" | "queued" | "review" | "running" | "waiting";
4189
+ observedAt: string;
4190
+ }[] | undefined;
4119
4191
  notify?: boolean | undefined;
4120
4192
  webhook?: {
4121
4193
  lastDeliveredAt?: string | undefined;
@@ -4272,21 +4344,6 @@ export declare function createRunsRoutes(deps: RunsRouteDeps): import("hono/hono
4272
4344
  pinned?: boolean | undefined;
4273
4345
  };
4274
4346
  };
4275
- } | {
4276
- output: {
4277
- error: string;
4278
- };
4279
- outputFormat: "json";
4280
- status: 404;
4281
- input: {
4282
- param: {
4283
- id: string;
4284
- };
4285
- } & {
4286
- json: {
4287
- pinned?: boolean | undefined;
4288
- };
4289
- };
4290
4347
  };
4291
4348
  };
4292
4349
  } & {
@@ -4308,22 +4365,6 @@ export declare function createRunsRoutes(deps: RunsRouteDeps): import("hono/hono
4308
4365
  message?: string | undefined;
4309
4366
  };
4310
4367
  };
4311
- } | {
4312
- output: {
4313
- error: string;
4314
- };
4315
- outputFormat: "json";
4316
- status: 400 | 404 | 409;
4317
- input: {
4318
- param: {
4319
- id: string;
4320
- };
4321
- } & {
4322
- json: {
4323
- notify: boolean;
4324
- message?: string | undefined;
4325
- };
4326
- };
4327
4368
  } | {
4328
4369
  output: {
4329
4370
  archiveWhenDone?: boolean | undefined;
@@ -5124,8 +5165,6 @@ export declare function createRunsRoutes(deps: RunsRouteDeps): import("hono/hono
5124
5165
  currentStepId?: string | undefined;
5125
5166
  error?: string | undefined;
5126
5167
  delegation?: {
5127
- role: "invalid";
5128
- } | {
5129
5168
  role: "root";
5130
5169
  conversation?: {
5131
5170
  messages: {
@@ -5360,6 +5399,8 @@ export declare function createRunsRoutes(deps: RunsRouteDeps): import("hono/hono
5360
5399
  } | undefined;
5361
5400
  executionRevision?: number | undefined;
5362
5401
  executionStartSeq?: number | undefined;
5402
+ } | {
5403
+ role: "invalid";
5363
5404
  } | undefined;
5364
5405
  lastWaitsError?: string | undefined;
5365
5406
  automaticWakes?: number | undefined;
@@ -5376,6 +5417,25 @@ export declare function createRunsRoutes(deps: RunsRouteDeps): import("hono/hono
5376
5417
  nextAt: string;
5377
5418
  needsAttention?: true | undefined;
5378
5419
  } | undefined;
5420
+ result?: {
5421
+ revision: number;
5422
+ snapshotId: string;
5423
+ observedAt: string;
5424
+ lastExecutionOutcome: "cancelled" | "completed" | "failed" | "review-ready" | "running";
5425
+ previous?: {
5426
+ revision: number;
5427
+ observedAt: string;
5428
+ lastExecutionOutcome: "cancelled" | "completed" | "failed" | "review-ready" | "running";
5429
+ } | undefined;
5430
+ } | undefined;
5431
+ executionRevision?: number | undefined;
5432
+ executionStartSeq?: number | undefined;
5433
+ workerAcknowledgements?: {
5434
+ workerId: string;
5435
+ revision: number;
5436
+ status: "cancelled" | "done" | "failed" | "queued" | "review" | "running" | "waiting";
5437
+ observedAt: string;
5438
+ }[] | undefined;
5379
5439
  stopping?: boolean | undefined;
5380
5440
  autoResumeAt?: string | undefined;
5381
5441
  autoResumeAttempts?: number | undefined;
@@ -5505,6 +5565,22 @@ export declare function createRunsRoutes(deps: RunsRouteDeps): import("hono/hono
5505
5565
  message?: string | undefined;
5506
5566
  };
5507
5567
  };
5568
+ } | {
5569
+ output: {
5570
+ error: string;
5571
+ };
5572
+ outputFormat: "json";
5573
+ status: 400 | 404 | 409;
5574
+ input: {
5575
+ param: {
5576
+ id: string;
5577
+ };
5578
+ } & {
5579
+ json: {
5580
+ notify: boolean;
5581
+ message?: string | undefined;
5582
+ };
5583
+ };
5508
5584
  };
5509
5585
  };
5510
5586
  } & {
@@ -5536,6 +5612,17 @@ export declare function createRunsRoutes(deps: RunsRouteDeps): import("hono/hono
5536
5612
  } & {
5537
5613
  "/runs/:id/read": {
5538
5614
  $post: {
5615
+ output: {
5616
+ error: string;
5617
+ };
5618
+ outputFormat: "json";
5619
+ status: 404;
5620
+ input: {
5621
+ param: {
5622
+ id: string;
5623
+ };
5624
+ };
5625
+ } | {
5539
5626
  output: {
5540
5627
  archiveWhenDone?: boolean | undefined;
5541
5628
  autoMergePr?: boolean | undefined;
@@ -5597,8 +5684,6 @@ export declare function createRunsRoutes(deps: RunsRouteDeps): import("hono/hono
5597
5684
  } | undefined;
5598
5685
  invalidAsk?: boolean | undefined;
5599
5686
  delegation?: {
5600
- role: "invalid";
5601
- } | {
5602
5687
  role: "root";
5603
5688
  conversation?: {
5604
5689
  messages: {
@@ -5833,6 +5918,8 @@ export declare function createRunsRoutes(deps: RunsRouteDeps): import("hono/hono
5833
5918
  } | undefined;
5834
5919
  executionRevision?: number | undefined;
5835
5920
  executionStartSeq?: number | undefined;
5921
+ } | {
5922
+ role: "invalid";
5836
5923
  } | undefined;
5837
5924
  agentInputs?: {
5838
5925
  conversation?: {
@@ -6559,6 +6646,25 @@ export declare function createRunsRoutes(deps: RunsRouteDeps): import("hono/hono
6559
6646
  nextAt: string;
6560
6647
  needsAttention?: true | undefined;
6561
6648
  } | undefined;
6649
+ result?: {
6650
+ revision: number;
6651
+ snapshotId: string;
6652
+ observedAt: string;
6653
+ lastExecutionOutcome: "cancelled" | "completed" | "failed" | "review-ready" | "running";
6654
+ previous?: {
6655
+ revision: number;
6656
+ observedAt: string;
6657
+ lastExecutionOutcome: "cancelled" | "completed" | "failed" | "review-ready" | "running";
6658
+ } | undefined;
6659
+ } | undefined;
6660
+ executionRevision?: number | undefined;
6661
+ executionStartSeq?: number | undefined;
6662
+ workerAcknowledgements?: {
6663
+ workerId: string;
6664
+ revision: number;
6665
+ status: "cancelled" | "done" | "failed" | "queued" | "review" | "running" | "waiting";
6666
+ observedAt: string;
6667
+ }[] | undefined;
6562
6668
  notify?: boolean | undefined;
6563
6669
  webhook?: {
6564
6670
  lastDeliveredAt?: string | undefined;
@@ -6711,7 +6817,11 @@ export declare function createRunsRoutes(deps: RunsRouteDeps): import("hono/hono
6711
6817
  id: string;
6712
6818
  };
6713
6819
  };
6714
- } | {
6820
+ };
6821
+ };
6822
+ } & {
6823
+ "/runs/:id/unread": {
6824
+ $post: {
6715
6825
  output: {
6716
6826
  error: string;
6717
6827
  };
@@ -6722,11 +6832,7 @@ export declare function createRunsRoutes(deps: RunsRouteDeps): import("hono/hono
6722
6832
  id: string;
6723
6833
  };
6724
6834
  };
6725
- };
6726
- };
6727
- } & {
6728
- "/runs/:id/unread": {
6729
- $post: {
6835
+ } | {
6730
6836
  output: {
6731
6837
  archiveWhenDone?: boolean | undefined;
6732
6838
  autoMergePr?: boolean | undefined;
@@ -6788,8 +6894,6 @@ export declare function createRunsRoutes(deps: RunsRouteDeps): import("hono/hono
6788
6894
  } | undefined;
6789
6895
  invalidAsk?: boolean | undefined;
6790
6896
  delegation?: {
6791
- role: "invalid";
6792
- } | {
6793
6897
  role: "root";
6794
6898
  conversation?: {
6795
6899
  messages: {
@@ -7024,6 +7128,8 @@ export declare function createRunsRoutes(deps: RunsRouteDeps): import("hono/hono
7024
7128
  } | undefined;
7025
7129
  executionRevision?: number | undefined;
7026
7130
  executionStartSeq?: number | undefined;
7131
+ } | {
7132
+ role: "invalid";
7027
7133
  } | undefined;
7028
7134
  agentInputs?: {
7029
7135
  conversation?: {
@@ -7750,6 +7856,25 @@ export declare function createRunsRoutes(deps: RunsRouteDeps): import("hono/hono
7750
7856
  nextAt: string;
7751
7857
  needsAttention?: true | undefined;
7752
7858
  } | undefined;
7859
+ result?: {
7860
+ revision: number;
7861
+ snapshotId: string;
7862
+ observedAt: string;
7863
+ lastExecutionOutcome: "cancelled" | "completed" | "failed" | "review-ready" | "running";
7864
+ previous?: {
7865
+ revision: number;
7866
+ observedAt: string;
7867
+ lastExecutionOutcome: "cancelled" | "completed" | "failed" | "review-ready" | "running";
7868
+ } | undefined;
7869
+ } | undefined;
7870
+ executionRevision?: number | undefined;
7871
+ executionStartSeq?: number | undefined;
7872
+ workerAcknowledgements?: {
7873
+ workerId: string;
7874
+ revision: number;
7875
+ status: "cancelled" | "done" | "failed" | "queued" | "review" | "running" | "waiting";
7876
+ observedAt: string;
7877
+ }[] | undefined;
7753
7878
  notify?: boolean | undefined;
7754
7879
  webhook?: {
7755
7880
  lastDeliveredAt?: string | undefined;
@@ -7902,17 +8027,6 @@ export declare function createRunsRoutes(deps: RunsRouteDeps): import("hono/hono
7902
8027
  id: string;
7903
8028
  };
7904
8029
  };
7905
- } | {
7906
- output: {
7907
- error: string;
7908
- };
7909
- outputFormat: "json";
7910
- status: 404;
7911
- input: {
7912
- param: {
7913
- id: string;
7914
- };
7915
- };
7916
8030
  };
7917
8031
  };
7918
8032
  } & {
@@ -8717,8 +8831,6 @@ export declare function createRunsRoutes(deps: RunsRouteDeps): import("hono/hono
8717
8831
  currentStepId?: string | undefined;
8718
8832
  error?: string | undefined;
8719
8833
  delegation?: {
8720
- role: "invalid";
8721
- } | {
8722
8834
  role: "root";
8723
8835
  conversation?: {
8724
8836
  messages: {
@@ -8953,6 +9065,8 @@ export declare function createRunsRoutes(deps: RunsRouteDeps): import("hono/hono
8953
9065
  } | undefined;
8954
9066
  executionRevision?: number | undefined;
8955
9067
  executionStartSeq?: number | undefined;
9068
+ } | {
9069
+ role: "invalid";
8956
9070
  } | undefined;
8957
9071
  lastWaitsError?: string | undefined;
8958
9072
  automaticWakes?: number | undefined;
@@ -8969,6 +9083,25 @@ export declare function createRunsRoutes(deps: RunsRouteDeps): import("hono/hono
8969
9083
  nextAt: string;
8970
9084
  needsAttention?: true | undefined;
8971
9085
  } | undefined;
9086
+ result?: {
9087
+ revision: number;
9088
+ snapshotId: string;
9089
+ observedAt: string;
9090
+ lastExecutionOutcome: "cancelled" | "completed" | "failed" | "review-ready" | "running";
9091
+ previous?: {
9092
+ revision: number;
9093
+ observedAt: string;
9094
+ lastExecutionOutcome: "cancelled" | "completed" | "failed" | "review-ready" | "running";
9095
+ } | undefined;
9096
+ } | undefined;
9097
+ executionRevision?: number | undefined;
9098
+ executionStartSeq?: number | undefined;
9099
+ workerAcknowledgements?: {
9100
+ workerId: string;
9101
+ revision: number;
9102
+ status: "cancelled" | "done" | "failed" | "queued" | "review" | "running" | "waiting";
9103
+ observedAt: string;
9104
+ }[] | undefined;
8972
9105
  stopping?: boolean | undefined;
8973
9106
  autoResumeAt?: string | undefined;
8974
9107
  autoResumeAttempts?: number | undefined;
@@ -9189,6 +9322,17 @@ export declare function createRunsRoutes(deps: RunsRouteDeps): import("hono/hono
9189
9322
  } & {
9190
9323
  "/runs/:id": {
9191
9324
  $get: {
9325
+ output: {
9326
+ error: string;
9327
+ };
9328
+ outputFormat: "json";
9329
+ status: 404;
9330
+ input: {
9331
+ param: {
9332
+ id: string;
9333
+ };
9334
+ };
9335
+ } | {
9192
9336
  output: {
9193
9337
  archiveWhenDone?: boolean | undefined;
9194
9338
  autoMergePr?: boolean | undefined;
@@ -9250,8 +9394,6 @@ export declare function createRunsRoutes(deps: RunsRouteDeps): import("hono/hono
9250
9394
  } | undefined;
9251
9395
  invalidAsk?: boolean | undefined;
9252
9396
  delegation?: {
9253
- role: "invalid";
9254
- } | {
9255
9397
  role: "root";
9256
9398
  conversation?: {
9257
9399
  messages: {
@@ -9486,6 +9628,8 @@ export declare function createRunsRoutes(deps: RunsRouteDeps): import("hono/hono
9486
9628
  } | undefined;
9487
9629
  executionRevision?: number | undefined;
9488
9630
  executionStartSeq?: number | undefined;
9631
+ } | {
9632
+ role: "invalid";
9489
9633
  } | undefined;
9490
9634
  agentInputs?: {
9491
9635
  conversation?: {
@@ -10212,6 +10356,25 @@ export declare function createRunsRoutes(deps: RunsRouteDeps): import("hono/hono
10212
10356
  nextAt: string;
10213
10357
  needsAttention?: true | undefined;
10214
10358
  } | undefined;
10359
+ result?: {
10360
+ revision: number;
10361
+ snapshotId: string;
10362
+ observedAt: string;
10363
+ lastExecutionOutcome: "cancelled" | "completed" | "failed" | "review-ready" | "running";
10364
+ previous?: {
10365
+ revision: number;
10366
+ observedAt: string;
10367
+ lastExecutionOutcome: "cancelled" | "completed" | "failed" | "review-ready" | "running";
10368
+ } | undefined;
10369
+ } | undefined;
10370
+ executionRevision?: number | undefined;
10371
+ executionStartSeq?: number | undefined;
10372
+ workerAcknowledgements?: {
10373
+ workerId: string;
10374
+ revision: number;
10375
+ status: "cancelled" | "done" | "failed" | "queued" | "review" | "running" | "waiting";
10376
+ observedAt: string;
10377
+ }[] | undefined;
10215
10378
  notify?: boolean | undefined;
10216
10379
  webhook?: {
10217
10380
  lastDeliveredAt?: string | undefined;
@@ -10372,17 +10535,6 @@ export declare function createRunsRoutes(deps: RunsRouteDeps): import("hono/hono
10372
10535
  id: string;
10373
10536
  };
10374
10537
  };
10375
- } | {
10376
- output: {
10377
- error: string;
10378
- };
10379
- outputFormat: "json";
10380
- status: 404;
10381
- input: {
10382
- param: {
10383
- id: string;
10384
- };
10385
- };
10386
10538
  };
10387
10539
  };
10388
10540
  } & {
@@ -10510,6 +10662,66 @@ export declare function createRunsRoutes(deps: RunsRouteDeps): import("hono/hono
10510
10662
  } & {
10511
10663
  "/runs/:id": {
10512
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;
10707
+ };
10708
+ outputFormat: "json";
10709
+ status: 409;
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
+ } & {
10720
+ param: {
10721
+ id: string;
10722
+ };
10723
+ };
10724
+ } | {
10513
10725
  output: {
10514
10726
  archiveWhenDone?: boolean | undefined;
10515
10727
  autoMergePr?: boolean | undefined;
@@ -11309,8 +11521,6 @@ export declare function createRunsRoutes(deps: RunsRouteDeps): import("hono/hono
11309
11521
  currentStepId?: string | undefined;
11310
11522
  error?: string | undefined;
11311
11523
  delegation?: {
11312
- role: "invalid";
11313
- } | {
11314
11524
  role: "root";
11315
11525
  conversation?: {
11316
11526
  messages: {
@@ -11545,6 +11755,8 @@ export declare function createRunsRoutes(deps: RunsRouteDeps): import("hono/hono
11545
11755
  } | undefined;
11546
11756
  executionRevision?: number | undefined;
11547
11757
  executionStartSeq?: number | undefined;
11758
+ } | {
11759
+ role: "invalid";
11548
11760
  } | undefined;
11549
11761
  lastWaitsError?: string | undefined;
11550
11762
  automaticWakes?: number | undefined;
@@ -11561,6 +11773,25 @@ export declare function createRunsRoutes(deps: RunsRouteDeps): import("hono/hono
11561
11773
  nextAt: string;
11562
11774
  needsAttention?: true | undefined;
11563
11775
  } | undefined;
11776
+ result?: {
11777
+ revision: number;
11778
+ snapshotId: string;
11779
+ observedAt: string;
11780
+ lastExecutionOutcome: "cancelled" | "completed" | "failed" | "review-ready" | "running";
11781
+ previous?: {
11782
+ revision: number;
11783
+ observedAt: string;
11784
+ lastExecutionOutcome: "cancelled" | "completed" | "failed" | "review-ready" | "running";
11785
+ } | undefined;
11786
+ } | undefined;
11787
+ executionRevision?: number | undefined;
11788
+ executionStartSeq?: number | undefined;
11789
+ workerAcknowledgements?: {
11790
+ workerId: string;
11791
+ revision: number;
11792
+ status: "cancelled" | "done" | "failed" | "queued" | "review" | "running" | "waiting";
11793
+ observedAt: string;
11794
+ }[] | undefined;
11564
11795
  stopping?: boolean | undefined;
11565
11796
  autoResumeAt?: string | undefined;
11566
11797
  autoResumeAttempts?: number | undefined;
@@ -11694,66 +11925,6 @@ export declare function createRunsRoutes(deps: RunsRouteDeps): import("hono/hono
11694
11925
  id: string;
11695
11926
  };
11696
11927
  };
11697
- } | {
11698
- output: {
11699
- error: string;
11700
- };
11701
- outputFormat: "json";
11702
- status: 404;
11703
- input: {
11704
- json: {
11705
- archiveWhenDone?: boolean | undefined;
11706
- autoMergePr?: boolean | undefined;
11707
- allowWorkers?: boolean | undefined;
11708
- allowMessaging?: boolean | undefined;
11709
- title?: string | undefined;
11710
- task?: string | undefined;
11711
- };
11712
- } & {
11713
- param: {
11714
- id: string;
11715
- };
11716
- };
11717
- } | {
11718
- output: {
11719
- error: string;
11720
- };
11721
- outputFormat: "json";
11722
- status: 400;
11723
- input: {
11724
- json: {
11725
- archiveWhenDone?: boolean | undefined;
11726
- autoMergePr?: boolean | undefined;
11727
- allowWorkers?: boolean | undefined;
11728
- allowMessaging?: boolean | undefined;
11729
- title?: string | undefined;
11730
- task?: string | undefined;
11731
- };
11732
- } & {
11733
- param: {
11734
- id: string;
11735
- };
11736
- };
11737
- } | {
11738
- output: {
11739
- error: string;
11740
- };
11741
- outputFormat: "json";
11742
- status: 409;
11743
- input: {
11744
- json: {
11745
- archiveWhenDone?: boolean | undefined;
11746
- autoMergePr?: boolean | undefined;
11747
- allowWorkers?: boolean | undefined;
11748
- allowMessaging?: boolean | undefined;
11749
- title?: string | undefined;
11750
- task?: string | undefined;
11751
- };
11752
- } & {
11753
- param: {
11754
- id: string;
11755
- };
11756
- };
11757
11928
  };
11758
11929
  };
11759
11930
  } & {
@@ -11858,7 +12029,7 @@ export declare function createRunsRoutes(deps: RunsRouteDeps): import("hono/hono
11858
12029
  error: string;
11859
12030
  };
11860
12031
  outputFormat: "json";
11861
- status: 404;
12032
+ status: 400;
11862
12033
  input: {
11863
12034
  json: {
11864
12035
  text?: string | undefined;
@@ -11877,7 +12048,7 @@ export declare function createRunsRoutes(deps: RunsRouteDeps): import("hono/hono
11877
12048
  error: string;
11878
12049
  };
11879
12050
  outputFormat: "json";
11880
- status: 409;
12051
+ status: 404;
11881
12052
  input: {
11882
12053
  json: {
11883
12054
  text?: string | undefined;
@@ -11893,10 +12064,10 @@ export declare function createRunsRoutes(deps: RunsRouteDeps): import("hono/hono
11893
12064
  };
11894
12065
  } | {
11895
12066
  output: {
11896
- delivered: true;
12067
+ error: string;
11897
12068
  };
11898
12069
  outputFormat: "json";
11899
- status: import("hono/utils/http-status").ContentfulStatusCode;
12070
+ status: 409;
11900
12071
  input: {
11901
12072
  json: {
11902
12073
  text?: string | undefined;
@@ -11912,10 +12083,10 @@ export declare function createRunsRoutes(deps: RunsRouteDeps): import("hono/hono
11912
12083
  };
11913
12084
  } | {
11914
12085
  output: {
11915
- error: string;
12086
+ delivered: true;
11916
12087
  };
11917
12088
  outputFormat: "json";
11918
- status: 400;
12089
+ status: import("hono/utils/http-status").ContentfulStatusCode;
11919
12090
  input: {
11920
12091
  json: {
11921
12092
  text?: string | undefined;
@@ -11983,7 +12154,7 @@ export declare function createRunsRoutes(deps: RunsRouteDeps): import("hono/hono
11983
12154
  error: string;
11984
12155
  };
11985
12156
  outputFormat: "json";
11986
- status: 404;
12157
+ status: 400;
11987
12158
  input: {
11988
12159
  json: {
11989
12160
  text?: string | undefined;
@@ -12004,7 +12175,7 @@ export declare function createRunsRoutes(deps: RunsRouteDeps): import("hono/hono
12004
12175
  error: string;
12005
12176
  };
12006
12177
  outputFormat: "json";
12007
- status: 400;
12178
+ status: 404;
12008
12179
  input: {
12009
12180
  json: {
12010
12181
  text?: string | undefined;
@@ -12224,10 +12395,11 @@ export declare function createRunsRoutes(deps: RunsRouteDeps): import("hono/hono
12224
12395
  "/runs/:id/open-in-cli": {
12225
12396
  $post: {
12226
12397
  output: {
12227
- error: string;
12398
+ opened: true;
12399
+ command: string;
12228
12400
  };
12229
12401
  outputFormat: "json";
12230
- status: 404 | 409;
12402
+ status: import("hono/utils/http-status").ContentfulStatusCode;
12231
12403
  input: {
12232
12404
  param: {
12233
12405
  id: string;
@@ -12235,11 +12407,10 @@ export declare function createRunsRoutes(deps: RunsRouteDeps): import("hono/hono
12235
12407
  };
12236
12408
  } | {
12237
12409
  output: {
12238
- opened: true;
12239
- command: string;
12410
+ error: string;
12240
12411
  };
12241
12412
  outputFormat: "json";
12242
- status: import("hono/utils/http-status").ContentfulStatusCode;
12413
+ status: 404 | 409;
12243
12414
  input: {
12244
12415
  param: {
12245
12416
  id: string;
@@ -12254,7 +12425,7 @@ export declare function createRunsRoutes(deps: RunsRouteDeps): import("hono/hono
12254
12425
  error: string;
12255
12426
  };
12256
12427
  outputFormat: "json";
12257
- status: 404 | 409;
12428
+ status: 400;
12258
12429
  input: {
12259
12430
  json: {
12260
12431
  target: string;
@@ -12267,10 +12438,11 @@ export declare function createRunsRoutes(deps: RunsRouteDeps): import("hono/hono
12267
12438
  };
12268
12439
  } | {
12269
12440
  output: {
12270
- error: string;
12441
+ opened: true;
12442
+ path: string;
12271
12443
  };
12272
12444
  outputFormat: "json";
12273
- status: 400;
12445
+ status: import("hono/utils/http-status").ContentfulStatusCode;
12274
12446
  input: {
12275
12447
  json: {
12276
12448
  target: string;
@@ -12283,11 +12455,10 @@ export declare function createRunsRoutes(deps: RunsRouteDeps): import("hono/hono
12283
12455
  };
12284
12456
  } | {
12285
12457
  output: {
12286
- opened: true;
12287
- path: string;
12458
+ error: string;
12288
12459
  };
12289
12460
  outputFormat: "json";
12290
- status: import("hono/utils/http-status").ContentfulStatusCode;
12461
+ status: 404 | 409;
12291
12462
  input: {
12292
12463
  json: {
12293
12464
  target: string;
@@ -12303,20 +12474,20 @@ export declare function createRunsRoutes(deps: RunsRouteDeps): import("hono/hono
12303
12474
  } & {
12304
12475
  "/runs/:id/handoff": {
12305
12476
  $get: {
12306
- output: {
12307
- error: string;
12308
- };
12309
- outputFormat: "json";
12310
- status: 404;
12477
+ output: string;
12478
+ outputFormat: "text";
12479
+ status: 200;
12311
12480
  input: {
12312
12481
  param: {
12313
12482
  id: string;
12314
12483
  };
12315
12484
  };
12316
12485
  } | {
12317
- output: string;
12318
- outputFormat: "text";
12319
- status: 200;
12486
+ output: {
12487
+ error: string;
12488
+ };
12489
+ outputFormat: "json";
12490
+ status: 404;
12320
12491
  input: {
12321
12492
  param: {
12322
12493
  id: string;
@@ -12327,9 +12498,12 @@ export declare function createRunsRoutes(deps: RunsRouteDeps): import("hono/hono
12327
12498
  } & {
12328
12499
  "/runs/:id/images/:file": {
12329
12500
  $get: {
12330
- output: {};
12331
- outputFormat: string;
12332
- status: import("hono/utils/http-status").StatusCode;
12501
+ output: {
12502
+ error: string;
12503
+ code?: "invalid_input" | undefined;
12504
+ };
12505
+ outputFormat: "json";
12506
+ status: 400;
12333
12507
  input: {
12334
12508
  param: {
12335
12509
  id: string;
@@ -12337,12 +12511,9 @@ export declare function createRunsRoutes(deps: RunsRouteDeps): import("hono/hono
12337
12511
  };
12338
12512
  };
12339
12513
  } | {
12340
- output: {
12341
- error: string;
12342
- code?: "invalid_input" | undefined;
12343
- };
12344
- outputFormat: "json";
12345
- status: 400;
12514
+ output: {};
12515
+ outputFormat: string;
12516
+ status: import("hono/utils/http-status").StatusCode;
12346
12517
  input: {
12347
12518
  param: {
12348
12519
  id: string;
@@ -12354,17 +12525,6 @@ export declare function createRunsRoutes(deps: RunsRouteDeps): import("hono/hono
12354
12525
  } & {
12355
12526
  "/runs/:id/diff": {
12356
12527
  $get: {
12357
- output: {
12358
- error: string;
12359
- };
12360
- outputFormat: "json";
12361
- status: 404 | 409;
12362
- input: {
12363
- param: {
12364
- id: string;
12365
- };
12366
- };
12367
- } | {
12368
12528
  output: string;
12369
12529
  outputFormat: "text";
12370
12530
  status: import("hono/utils/http-status").ContentfulStatusCode;
@@ -12373,11 +12533,7 @@ export declare function createRunsRoutes(deps: RunsRouteDeps): import("hono/hono
12373
12533
  id: string;
12374
12534
  };
12375
12535
  };
12376
- };
12377
- };
12378
- } & {
12379
- "/runs/:id/changes": {
12380
- $get: {
12536
+ } | {
12381
12537
  output: {
12382
12538
  error: string;
12383
12539
  };
@@ -12388,7 +12544,11 @@ export declare function createRunsRoutes(deps: RunsRouteDeps): import("hono/hono
12388
12544
  id: string;
12389
12545
  };
12390
12546
  };
12391
- } | {
12547
+ };
12548
+ };
12549
+ } & {
12550
+ "/runs/:id/changes": {
12551
+ $get: {
12392
12552
  output: {
12393
12553
  files: {
12394
12554
  path: string;
@@ -12417,11 +12577,7 @@ export declare function createRunsRoutes(deps: RunsRouteDeps): import("hono/hono
12417
12577
  id: string;
12418
12578
  };
12419
12579
  };
12420
- };
12421
- };
12422
- } & {
12423
- "/runs/:id/commits": {
12424
- $get: {
12580
+ } | {
12425
12581
  output: {
12426
12582
  error: string;
12427
12583
  };
@@ -12432,7 +12588,11 @@ export declare function createRunsRoutes(deps: RunsRouteDeps): import("hono/hono
12432
12588
  id: string;
12433
12589
  };
12434
12590
  };
12435
- } | {
12591
+ };
12592
+ };
12593
+ } & {
12594
+ "/runs/:id/commits": {
12595
+ $get: {
12436
12596
  output: {
12437
12597
  commits: {
12438
12598
  sha: string;
@@ -12448,11 +12608,7 @@ export declare function createRunsRoutes(deps: RunsRouteDeps): import("hono/hono
12448
12608
  id: string;
12449
12609
  };
12450
12610
  };
12451
- };
12452
- };
12453
- } & {
12454
- "/runs/:id/commit/:sha": {
12455
- $get: {
12611
+ } | {
12456
12612
  output: {
12457
12613
  error: string;
12458
12614
  };
@@ -12461,11 +12617,13 @@ export declare function createRunsRoutes(deps: RunsRouteDeps): import("hono/hono
12461
12617
  input: {
12462
12618
  param: {
12463
12619
  id: string;
12464
- } & {
12465
- sha: string;
12466
12620
  };
12467
12621
  };
12468
- } | {
12622
+ };
12623
+ };
12624
+ } & {
12625
+ "/runs/:id/commit/:sha": {
12626
+ $get: {
12469
12627
  output: {
12470
12628
  sha: string;
12471
12629
  subject: string;
@@ -12496,6 +12654,19 @@ export declare function createRunsRoutes(deps: RunsRouteDeps): import("hono/hono
12496
12654
  sha: string;
12497
12655
  };
12498
12656
  };
12657
+ } | {
12658
+ output: {
12659
+ error: string;
12660
+ };
12661
+ outputFormat: "json";
12662
+ status: 404 | 409;
12663
+ input: {
12664
+ param: {
12665
+ id: string;
12666
+ } & {
12667
+ sha: string;
12668
+ };
12669
+ };
12499
12670
  };
12500
12671
  };
12501
12672
  } & {
@@ -12519,10 +12690,15 @@ export declare function createRunsRoutes(deps: RunsRouteDeps): import("hono/hono
12519
12690
  };
12520
12691
  } | {
12521
12692
  output: {
12522
- error: string;
12693
+ type: 'file';
12694
+ path: string;
12695
+ size: number;
12696
+ binary: boolean;
12697
+ tooLarge: boolean;
12698
+ content?: string | undefined;
12523
12699
  };
12524
12700
  outputFormat: "json";
12525
- status: 404 | 409;
12701
+ status: import("hono/utils/http-status").ContentfulStatusCode;
12526
12702
  input: {
12527
12703
  param: {
12528
12704
  sha: string;
@@ -12535,15 +12711,10 @@ export declare function createRunsRoutes(deps: RunsRouteDeps): import("hono/hono
12535
12711
  };
12536
12712
  } | {
12537
12713
  output: {
12538
- type: 'file';
12539
- path: string;
12540
- size: number;
12541
- binary: boolean;
12542
- tooLarge: boolean;
12543
- content?: string | undefined;
12714
+ error: string;
12544
12715
  };
12545
12716
  outputFormat: "json";
12546
- status: import("hono/utils/http-status").ContentfulStatusCode;
12717
+ status: 404 | 409;
12547
12718
  input: {
12548
12719
  param: {
12549
12720
  sha: string;
@@ -12589,22 +12760,6 @@ export declare function createRunsRoutes(deps: RunsRouteDeps): import("hono/hono
12589
12760
  raw?: "1" | undefined;
12590
12761
  };
12591
12762
  };
12592
- } | {
12593
- output: {
12594
- error: string;
12595
- };
12596
- outputFormat: "json";
12597
- status: 404 | 409;
12598
- input: {
12599
- param: {
12600
- id: string;
12601
- };
12602
- } & {
12603
- query: {
12604
- path: string | string[];
12605
- raw?: "1" | undefined;
12606
- };
12607
- };
12608
12763
  } | {
12609
12764
  output: {
12610
12765
  type: "file";
@@ -12641,6 +12796,22 @@ export declare function createRunsRoutes(deps: RunsRouteDeps): import("hono/hono
12641
12796
  raw?: "1" | undefined;
12642
12797
  };
12643
12798
  };
12799
+ } | {
12800
+ output: {
12801
+ error: string;
12802
+ };
12803
+ outputFormat: "json";
12804
+ status: 404 | 409;
12805
+ input: {
12806
+ param: {
12807
+ id: string;
12808
+ };
12809
+ } & {
12810
+ query: {
12811
+ path: string | string[];
12812
+ raw?: "1" | undefined;
12813
+ };
12814
+ };
12644
12815
  };
12645
12816
  };
12646
12817
  } & {
@@ -12705,6 +12876,18 @@ export declare function createRunsRoutes(deps: RunsRouteDeps): import("hono/hono
12705
12876
  artifactId: string;
12706
12877
  };
12707
12878
  };
12879
+ } | {
12880
+ output: {
12881
+ error: string;
12882
+ };
12883
+ outputFormat: "json";
12884
+ status: 404;
12885
+ input: {
12886
+ param: {
12887
+ id: string;
12888
+ artifactId: string;
12889
+ };
12890
+ };
12708
12891
  } | {
12709
12892
  output: {
12710
12893
  type: "file";
@@ -12733,18 +12916,6 @@ export declare function createRunsRoutes(deps: RunsRouteDeps): import("hono/hono
12733
12916
  artifactId: string;
12734
12917
  };
12735
12918
  };
12736
- } | {
12737
- output: {
12738
- error: string;
12739
- };
12740
- outputFormat: "json";
12741
- status: 404;
12742
- input: {
12743
- param: {
12744
- id: string;
12745
- artifactId: string;
12746
- };
12747
- };
12748
12919
  };
12749
12920
  };
12750
12921
  } & {
@@ -12920,22 +13091,6 @@ export declare function createRunsRoutes(deps: RunsRouteDeps): import("hono/hono
12920
13091
  id: string;
12921
13092
  };
12922
13093
  };
12923
- } | {
12924
- output: {
12925
- error: string;
12926
- };
12927
- outputFormat: "json";
12928
- status: 404 | 409;
12929
- input: {
12930
- query: {
12931
- path?: string | undefined;
12932
- raw?: string | undefined;
12933
- };
12934
- } & {
12935
- param: {
12936
- id: string;
12937
- };
12938
- };
12939
13094
  } | {
12940
13095
  output: {
12941
13096
  type: 'file';
@@ -12980,16 +13135,33 @@ export declare function createRunsRoutes(deps: RunsRouteDeps): import("hono/hono
12980
13135
  id: string;
12981
13136
  };
12982
13137
  };
13138
+ } | {
13139
+ output: {
13140
+ error: string;
13141
+ };
13142
+ outputFormat: "json";
13143
+ status: 404 | 409;
13144
+ input: {
13145
+ query: {
13146
+ path?: string | undefined;
13147
+ raw?: string | undefined;
13148
+ };
13149
+ } & {
13150
+ param: {
13151
+ id: string;
13152
+ };
13153
+ };
12983
13154
  };
12984
13155
  };
12985
13156
  } & {
12986
13157
  "/runs/:id/git/commit": {
12987
13158
  $post: {
12988
13159
  output: {
12989
- error: string;
13160
+ committed: true;
13161
+ sha: string;
12990
13162
  };
12991
13163
  outputFormat: "json";
12992
- status: 404 | 409;
13164
+ status: import("hono/utils/http-status").ContentfulStatusCode;
12993
13165
  input: {
12994
13166
  json: {
12995
13167
  message: string;
@@ -13001,11 +13173,10 @@ export declare function createRunsRoutes(deps: RunsRouteDeps): import("hono/hono
13001
13173
  };
13002
13174
  } | {
13003
13175
  output: {
13004
- committed: true;
13005
- sha: string;
13176
+ error: string;
13006
13177
  };
13007
13178
  outputFormat: "json";
13008
- status: import("hono/utils/http-status").ContentfulStatusCode;
13179
+ status: 404 | 409;
13009
13180
  input: {
13010
13181
  json: {
13011
13182
  message: string;
@@ -13021,10 +13192,13 @@ export declare function createRunsRoutes(deps: RunsRouteDeps): import("hono/hono
13021
13192
  "/runs/:id/git/push": {
13022
13193
  $post: {
13023
13194
  output: {
13024
- error: string;
13195
+ pushed: true;
13196
+ branch: string;
13197
+ remote: string;
13198
+ upstreamSet: boolean;
13025
13199
  };
13026
13200
  outputFormat: "json";
13027
- status: 404 | 409;
13201
+ status: import("hono/utils/http-status").ContentfulStatusCode;
13028
13202
  input: {
13029
13203
  param: {
13030
13204
  id: string;
@@ -13032,13 +13206,10 @@ export declare function createRunsRoutes(deps: RunsRouteDeps): import("hono/hono
13032
13206
  };
13033
13207
  } | {
13034
13208
  output: {
13035
- pushed: true;
13036
- branch: string;
13037
- remote: string;
13038
- upstreamSet: boolean;
13209
+ error: string;
13039
13210
  };
13040
13211
  outputFormat: "json";
13041
- status: import("hono/utils/http-status").ContentfulStatusCode;
13212
+ status: 404 | 409;
13042
13213
  input: {
13043
13214
  param: {
13044
13215
  id: string;
@@ -13050,10 +13221,11 @@ export declare function createRunsRoutes(deps: RunsRouteDeps): import("hono/hono
13050
13221
  "/runs/:id/pr": {
13051
13222
  $post: {
13052
13223
  output: {
13053
- error: string;
13224
+ url: string;
13225
+ dryRun: boolean;
13054
13226
  };
13055
13227
  outputFormat: "json";
13056
- status: 404 | 409;
13228
+ status: 201;
13057
13229
  input: {
13058
13230
  param: {
13059
13231
  id: string;
@@ -13061,11 +13233,10 @@ export declare function createRunsRoutes(deps: RunsRouteDeps): import("hono/hono
13061
13233
  };
13062
13234
  } | {
13063
13235
  output: {
13064
- url: string;
13065
- dryRun: boolean;
13236
+ error: string;
13066
13237
  };
13067
13238
  outputFormat: "json";
13068
- status: 201;
13239
+ status: 404 | 409;
13069
13240
  input: {
13070
13241
  param: {
13071
13242
  id: string;
@@ -13077,10 +13248,10 @@ export declare function createRunsRoutes(deps: RunsRouteDeps): import("hono/hono
13077
13248
  "/runs/:id/remove-worktree": {
13078
13249
  $post: {
13079
13250
  output: {
13080
- error: string;
13251
+ removed: true;
13081
13252
  };
13082
13253
  outputFormat: "json";
13083
- status: 404 | 409;
13254
+ status: import("hono/utils/http-status").ContentfulStatusCode;
13084
13255
  input: {
13085
13256
  param: {
13086
13257
  id: string;
@@ -13088,10 +13259,10 @@ export declare function createRunsRoutes(deps: RunsRouteDeps): import("hono/hono
13088
13259
  };
13089
13260
  } | {
13090
13261
  output: {
13091
- removed: true;
13262
+ error: string;
13092
13263
  };
13093
13264
  outputFormat: "json";
13094
- status: import("hono/utils/http-status").ContentfulStatusCode;
13265
+ status: 404 | 409;
13095
13266
  input: {
13096
13267
  param: {
13097
13268
  id: string;
@@ -13103,10 +13274,10 @@ export declare function createRunsRoutes(deps: RunsRouteDeps): import("hono/hono
13103
13274
  "/runs/:id": {
13104
13275
  $delete: {
13105
13276
  output: {
13106
- error: string;
13277
+ deleted: true;
13107
13278
  };
13108
13279
  outputFormat: "json";
13109
- status: 404 | 409;
13280
+ status: import("hono/utils/http-status").ContentfulStatusCode;
13110
13281
  input: {
13111
13282
  param: {
13112
13283
  id: string;
@@ -13114,10 +13285,10 @@ export declare function createRunsRoutes(deps: RunsRouteDeps): import("hono/hono
13114
13285
  };
13115
13286
  } | {
13116
13287
  output: {
13117
- deleted: true;
13288
+ error: string;
13118
13289
  };
13119
13290
  outputFormat: "json";
13120
- status: import("hono/utils/http-status").ContentfulStatusCode;
13291
+ status: 404 | 409;
13121
13292
  input: {
13122
13293
  param: {
13123
13294
  id: string;