@hearsay-tools/squawk 0.19.0-dev.8792 → 0.19.0-dev.8796

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 (116) hide show
  1. package/dist/automations/tool-adapter.d.ts +10 -1
  2. package/dist/automations/tool-adapter.js +2 -0
  3. package/dist/automations/tool-adapter.js.map +1 -1
  4. package/dist/automations/tool-session.d.ts +1 -2
  5. package/dist/automations/tool-session.js +4 -3
  6. package/dist/automations/tool-session.js.map +1 -1
  7. package/dist/automations/tools.d.ts +8 -8
  8. package/dist/boot.js +4 -0
  9. package/dist/boot.js.map +1 -1
  10. package/dist/built-in-http-routes.js +4 -12
  11. package/dist/built-in-http-routes.js.map +1 -1
  12. package/dist/built-in-server-hooks.d.ts +9 -0
  13. package/dist/built-in-server-hooks.js +24 -0
  14. package/dist/built-in-server-hooks.js.map +1 -0
  15. package/dist/ci-wait/controller.d.ts +7 -7
  16. package/dist/core/http-route-registry.d.ts +3 -5
  17. package/dist/core/http-route-registry.js.map +1 -1
  18. package/dist/core/server-hook-registry.d.ts +101 -0
  19. package/dist/core/server-hook-registry.js +56 -0
  20. package/dist/core/server-hook-registry.js.map +1 -0
  21. package/dist/plugin/api.d.ts +3 -0
  22. package/dist/plugin/api.js +10 -1
  23. package/dist/plugin/api.js.map +1 -1
  24. package/dist/plugin/cli.js +1 -1
  25. package/dist/plugin/cli.js.map +1 -1
  26. package/dist/plugin/index.d.ts +1 -0
  27. package/dist/plugin/index.js.map +1 -1
  28. package/dist/server/activity-routes.d.ts +23 -23
  29. package/dist/server/automation-log-retry.d.ts +4 -4
  30. package/dist/server/automations-routes.d.ts +926 -164
  31. package/dist/server/automations-routes.js +232 -48
  32. package/dist/server/automations-routes.js.map +1 -1
  33. package/dist/server/plugin-http-routes.d.ts +3 -2
  34. package/dist/server/plugin-http-routes.js +3 -3
  35. package/dist/server/plugin-http-routes.js.map +1 -1
  36. package/dist/server/plugin-server-hooks.d.ts +30 -0
  37. package/dist/server/plugin-server-hooks.js +160 -0
  38. package/dist/server/plugin-server-hooks.js.map +1 -0
  39. package/dist/server/project-context.d.ts +8 -7
  40. package/dist/server/project-context.js +17 -6
  41. package/dist/server/project-context.js.map +1 -1
  42. package/dist/server/provider-sign-in-routes.d.ts +2 -2
  43. package/dist/server/reports-api.d.ts +2 -2
  44. package/dist/server/runs-routes.d.ts +306 -303
  45. package/dist/server/runs-routes.js +2 -3
  46. package/dist/server/runs-routes.js.map +1 -1
  47. package/dist/server/server-deps.d.ts +1 -1
  48. package/dist/server/server-deps.js +4 -6
  49. package/dist/server/server-deps.js.map +1 -1
  50. package/dist/server/server.d.ts +97 -99
  51. package/dist/server/server.js +38 -13
  52. package/dist/server/server.js.map +1 -1
  53. package/dist/server/start-server.js +16 -150
  54. package/dist/server/start-server.js.map +1 -1
  55. package/dist/server/workspace-projects.d.ts +1 -1
  56. package/dist/workflows/run/compose.d.ts +2 -2
  57. package/dist/workflows/run/compose.js +3 -3
  58. package/dist/workflows/run/compose.js.map +1 -1
  59. package/dist/workflows/run/squawk-tools.d.ts +7 -7
  60. package/dist/workflows/run/squawk-tools.js +36 -16
  61. package/dist/workflows/run/squawk-tools.js.map +1 -1
  62. package/dist/workflows/run/types.d.ts +0 -8
  63. package/dist/workflows/run.d.ts +3 -3
  64. package/dist/workflows/run.js +1 -1
  65. package/dist/workflows/run.js.map +1 -1
  66. package/package.json +4 -4
  67. package/web/dist/assets/{accounts-section-VfDVFCAc.js → accounts-section-B3XlbE9-.js} +1 -1
  68. package/web/dist/assets/{activity-motion-Ct_mHjNu.js → activity-motion-DtSeos5G.js} +1 -1
  69. package/web/dist/assets/{activity-route-Bg85PV_B.js → activity-route-DwLbg5TU.js} +1 -1
  70. package/web/dist/assets/{agent-config-section-ZgfxeM2S.js → agent-config-section-TV__fszM.js} +1 -1
  71. package/web/dist/assets/{agent-defaults-section-RoU-YE-M.js → agent-defaults-section-CoaKPbd7.js} +1 -1
  72. package/web/dist/assets/{appearance-BMA59frf.js → appearance-BSogGq4y.js} +1 -1
  73. package/web/dist/assets/{automations-route-zKWUCENr.js → automations-route-BO4qUbj8.js} +1 -1
  74. package/web/dist/assets/{commit-list-B2Syu_sP.js → commit-list-CPCMhqsH.js} +1 -1
  75. package/web/dist/assets/diff-controls-DT8_nQ2J.js +1 -0
  76. package/web/dist/assets/{diff-CbDkyllB.js → diff-eTwHyNBm.js} +2 -2
  77. package/web/dist/assets/{diff-view-6332HPUt.js → diff-view-BnO_U5xn.js} +2 -2
  78. package/web/dist/assets/{file-preview-DYjNIXfw.js → file-preview-L0_fbkUZ.js} +1 -1
  79. package/web/dist/assets/git-toolbar-ywLSmnxR.js +1 -0
  80. package/web/dist/assets/{github-6jYLwVCN.js → github-Bd3i_-h6.js} +1 -1
  81. package/web/dist/assets/{global-activity-route-CJRmV6T5.js → global-activity-route-BbgDC3wz.js} +1 -1
  82. package/web/dist/assets/{index-BkOgEePa.js → index-8eoz1i7-.js} +4 -4
  83. package/web/dist/assets/{index-CxWlNbC2.css → index-nVjwJYl4.css} +1 -1
  84. package/web/dist/assets/{markdown-BtKpe0gr.js → markdown-Dn1C5VnY.js} +1 -1
  85. package/web/dist/assets/{notifications-section-D3FLXeYS.js → notifications-section-3xWRDUrB.js} +1 -1
  86. package/web/dist/assets/{preview-pane-connected-CkKFkWuO.js → preview-pane-connected-BdxTm5Ky.js} +1 -1
  87. package/web/dist/assets/{projects-section-Cp4EHS87.js → projects-section-Brds9YmD.js} +1 -1
  88. package/web/dist/assets/{prompt-templates-section-CF9su7eR.js → prompt-templates-section-CAuTp8gl.js} +1 -1
  89. package/web/dist/assets/{remote-settings-notice-B8deEA4-.js → remote-settings-notice-CxRBhjoN.js} +1 -1
  90. package/web/dist/assets/repo-git-CGdMJ36u.js +1 -0
  91. package/web/dist/assets/{report-reader-Ds7BH5sH.js → report-reader-BQyJblDp.js} +1 -1
  92. package/web/dist/assets/{reports-B0MrxVf2.js → reports-CPpFm0jn.js} +1 -1
  93. package/web/dist/assets/{resources-section-CBYPFmdA.js → resources-section-Cbtu9i_k.js} +1 -1
  94. package/web/dist/assets/{review-panel-N2jeoOOD.js → review-panel-DuvFn5VX.js} +1 -1
  95. package/web/dist/assets/{run-header-DSy2GQFm.js → run-header-CP_2QY0H.js} +1 -1
  96. package/web/dist/assets/{select-ytoWwZqB.js → select-D5UnnIUL.js} +1 -1
  97. package/web/dist/assets/{session-context-section-BOyBtiqG.js → session-context-section-CFw0aFoC.js} +1 -1
  98. package/web/dist/assets/{settings-agent-picker-B9Gq4Nm3.js → settings-agent-picker-DIEyNQVg.js} +1 -1
  99. package/web/dist/assets/{settings-shell-_ptjb0qT.js → settings-shell-DUvwIPgV.js} +1 -1
  100. package/web/dist/assets/{sidebar-section-DXKjvjNm.js → sidebar-section-CET3Eico.js} +1 -1
  101. package/web/dist/assets/{skills-1FJ2I0ju.js → skills-oxTqCu3h.js} +1 -1
  102. package/web/dist/assets/{task-changes-BBKaLqDn.js → task-changes-TvjFctCc.js} +1 -1
  103. package/web/dist/assets/{task-commits-CFaex9iK.js → task-commits-DEsRCchM.js} +1 -1
  104. package/web/dist/assets/{task-file-scope-7uNPfJ10.js → task-file-scope-CkPO86PU.js} +1 -1
  105. package/web/dist/assets/{task-files-rq6JF4NC.js → task-files-BuMkWb7X.js} +1 -1
  106. package/web/dist/assets/{task-github-item-DE5b3Rpb.js → task-github-item-wUJ6pMdV.js} +1 -1
  107. package/web/dist/assets/{task-thread-Da_Qv06p.js → task-thread-CS88T_7I.js} +1 -1
  108. package/web/dist/assets/{thread-state-D3BvRp9t.js → thread-state-DulSg7h8.js} +1 -1
  109. package/web/dist/assets/{use-hand-to-agent-state-CM557c15.js → use-hand-to-agent-state-8ZF3Wr1m.js} +1 -1
  110. package/web/dist/assets/{workflows-A2NbJ4de.js → workflows-D0HHVBzP.js} +1 -1
  111. package/web/dist/assets/{workspace-tools-B98BnmHO.js → workspace-tools-C8GYSy1Y.js} +1 -1
  112. package/web/dist/assets/{worktrees-section-1m7m8Nqu.js → worktrees-section-Ba0hS8Ls.js} +1 -1
  113. package/web/dist/index.html +2 -2
  114. package/web/dist/assets/diff-controls-CnHeE2_5.js +0 -1
  115. package/web/dist/assets/git-toolbar-BPfOquyv.js +0 -1
  116. package/web/dist/assets/repo-git-BhLeIKYv.js +0 -1
@@ -6,6 +6,7 @@ import type { Home } from '../home/home.ts';
6
6
  import type { PreviewHost } from '../preview/host.ts';
7
7
  import type { TaskWebhooks } from '../runs/webhook.ts';
8
8
  import { type ForgeFactory } from './forge/index.ts';
9
+ import type { ProjectContext } from './project-context.ts';
9
10
  import type { ProjectApiEnv, ProviderStatusBundle, ResolvedServerDeps, ResolveWorkspaceProfileFn, ServerCapabilitiesFn } from './server-types.ts';
10
11
  import type { WorkspaceProjects } from './workspace-projects.ts';
11
12
  export declare function withLiveUsage(summary: RunSummary): RunSummary;
@@ -25,6 +26,8 @@ export interface RunsRouteDeps {
25
26
  openTerminal: ResolvedServerDeps['openTerminal'];
26
27
  openFile: ResolvedServerDeps['openFile'];
27
28
  openApp: ResolvedServerDeps['openApp'];
29
+ /** Plugin-supplied id → display label map merged into archived-run search matching. */
30
+ runSearchLabels: (project: ProjectContext) => ReadonlyMap<string, string>;
28
31
  }
29
32
  export declare function createRunsRoutes(deps: RunsRouteDeps): import("hono/hono-base").HonoBase<ProjectApiEnv, {
30
33
  "/runs": {
@@ -1212,18 +1215,6 @@ export declare function createRunsRoutes(deps: RunsRouteDeps): import("hono/hono
1212
1215
  } & {
1213
1216
  "/run-summaries": {
1214
1217
  $get: {
1215
- output: {
1216
- error: string;
1217
- code?: "invalid_input" | undefined;
1218
- };
1219
- outputFormat: "json";
1220
- status: 400;
1221
- input: {
1222
- query: {
1223
- archived?: "all" | "recent" | undefined;
1224
- };
1225
- };
1226
- } | {
1227
1218
  output: {
1228
1219
  id: string;
1229
1220
  title: string;
@@ -1361,6 +1352,18 @@ export declare function createRunsRoutes(deps: RunsRouteDeps): import("hono/hono
1361
1352
  archived?: "all" | "recent" | undefined;
1362
1353
  };
1363
1354
  };
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
+ };
1364
1367
  };
1365
1368
  };
1366
1369
  } & {
@@ -1722,24 +1725,22 @@ export declare function createRunsRoutes(deps: RunsRouteDeps): import("hono/hono
1722
1725
  "/runs/:id/worker-destroy": {
1723
1726
  $post: {
1724
1727
  output: {
1725
- workerId: string;
1726
- state: "complete" | "incomplete";
1727
- work?: {
1728
- uncommittedFiles: number;
1729
- commits: number;
1728
+ readonly code: "capacity_limit" | "denied_scope" | "incompatible_state" | "incomplete_cleanup" | "invalid_baseline" | "invalid_input" | "unauthenticated" | "unavailable_diff" | "unavailable_transport";
1729
+ readonly error: string;
1730
+ readonly modelChoices?: {
1731
+ runner: string;
1732
+ requestedModel: string;
1733
+ availableModels: {
1734
+ id: string;
1735
+ label: string;
1736
+ description: string;
1737
+ effortLevels?: ("high" | "low" | "max" | "medium" | "xhigh")[] | undefined;
1738
+ }[];
1739
+ otherRunners: string[];
1730
1740
  } | undefined;
1731
- deleted?: ({
1732
- kind: "worktree";
1733
- path: string;
1734
- } | {
1735
- kind: "branch";
1736
- ref: string;
1737
- })[] | undefined;
1738
- remaining: ("branch" | "process" | "worktree")[];
1739
- error?: string | undefined;
1740
1741
  };
1741
1742
  outputFormat: "json";
1742
- status: 200;
1743
+ status: 400 | 401 | 403 | 409 | 503;
1743
1744
  input: {
1744
1745
  query: {
1745
1746
  [x: string]: string | string[];
@@ -1792,7 +1793,7 @@ export declare function createRunsRoutes(deps: RunsRouteDeps): import("hono/hono
1792
1793
  error?: string | undefined;
1793
1794
  };
1794
1795
  outputFormat: "json";
1795
- status: 409;
1796
+ status: 200;
1796
1797
  input: {
1797
1798
  query: {
1798
1799
  [x: string]: string | string[];
@@ -1808,22 +1809,24 @@ export declare function createRunsRoutes(deps: RunsRouteDeps): import("hono/hono
1808
1809
  };
1809
1810
  } | {
1810
1811
  output: {
1811
- readonly code: "capacity_limit" | "denied_scope" | "incompatible_state" | "incomplete_cleanup" | "invalid_baseline" | "invalid_input" | "unauthenticated" | "unavailable_diff" | "unavailable_transport";
1812
- readonly error: string;
1813
- readonly modelChoices?: {
1814
- runner: string;
1815
- requestedModel: string;
1816
- availableModels: {
1817
- id: string;
1818
- label: string;
1819
- description: string;
1820
- effortLevels?: ("high" | "low" | "max" | "medium" | "xhigh")[] | undefined;
1821
- }[];
1822
- otherRunners: string[];
1812
+ workerId: string;
1813
+ state: "complete" | "incomplete";
1814
+ work?: {
1815
+ uncommittedFiles: number;
1816
+ commits: number;
1823
1817
  } | undefined;
1818
+ deleted?: ({
1819
+ kind: "worktree";
1820
+ path: string;
1821
+ } | {
1822
+ kind: "branch";
1823
+ ref: string;
1824
+ })[] | undefined;
1825
+ remaining: ("branch" | "process" | "worktree")[];
1826
+ error?: string | undefined;
1824
1827
  };
1825
1828
  outputFormat: "json";
1826
- status: 400 | 401 | 403 | 409 | 503;
1829
+ status: 409;
1827
1830
  input: {
1828
1831
  query: {
1829
1832
  [x: string]: string | string[];
@@ -1875,21 +1878,6 @@ export declare function createRunsRoutes(deps: RunsRouteDeps): import("hono/hono
1875
1878
  } & {
1876
1879
  "/runs/:id/archive": {
1877
1880
  $post: {
1878
- output: {
1879
- error: string;
1880
- };
1881
- outputFormat: "json";
1882
- status: 404;
1883
- input: {
1884
- json: {
1885
- archived?: boolean | undefined;
1886
- };
1887
- } & {
1888
- param: {
1889
- id: string;
1890
- };
1891
- };
1892
- } | {
1893
1881
  output: {
1894
1882
  archiveWhenDone?: boolean | undefined;
1895
1883
  autoMergePr?: boolean | undefined;
@@ -3068,32 +3056,32 @@ export declare function createRunsRoutes(deps: RunsRouteDeps): import("hono/hono
3068
3056
  id: string;
3069
3057
  };
3070
3058
  };
3071
- };
3072
- };
3073
- } & {
3074
- "/runs/:id/pin": {
3075
- $post: {
3059
+ } | {
3076
3060
  output: {
3077
3061
  error: string;
3078
- code?: "invalid_input" | undefined;
3079
3062
  };
3080
3063
  outputFormat: "json";
3081
- status: 400;
3064
+ status: 404;
3082
3065
  input: {
3083
- param: {
3084
- id: string;
3066
+ json: {
3067
+ archived?: boolean | undefined;
3085
3068
  };
3086
3069
  } & {
3087
- json: {
3088
- pinned?: boolean | undefined;
3070
+ param: {
3071
+ id: string;
3089
3072
  };
3090
3073
  };
3091
- } | {
3074
+ };
3075
+ };
3076
+ } & {
3077
+ "/runs/:id/pin": {
3078
+ $post: {
3092
3079
  output: {
3093
3080
  error: string;
3081
+ code?: "invalid_input" | undefined;
3094
3082
  };
3095
3083
  outputFormat: "json";
3096
- status: 404;
3084
+ status: 400;
3097
3085
  input: {
3098
3086
  param: {
3099
3087
  id: string;
@@ -4282,6 +4270,21 @@ export declare function createRunsRoutes(deps: RunsRouteDeps): import("hono/hono
4282
4270
  pinned?: boolean | undefined;
4283
4271
  };
4284
4272
  };
4273
+ } | {
4274
+ output: {
4275
+ error: string;
4276
+ };
4277
+ outputFormat: "json";
4278
+ status: 404;
4279
+ input: {
4280
+ param: {
4281
+ id: string;
4282
+ };
4283
+ } & {
4284
+ json: {
4285
+ pinned?: boolean | undefined;
4286
+ };
4287
+ };
4285
4288
  };
4286
4289
  };
4287
4290
  } & {
@@ -4308,7 +4311,7 @@ export declare function createRunsRoutes(deps: RunsRouteDeps): import("hono/hono
4308
4311
  error: string;
4309
4312
  };
4310
4313
  outputFormat: "json";
4311
- status: 400;
4314
+ status: 404;
4312
4315
  input: {
4313
4316
  param: {
4314
4317
  id: string;
@@ -4324,7 +4327,7 @@ export declare function createRunsRoutes(deps: RunsRouteDeps): import("hono/hono
4324
4327
  error: string;
4325
4328
  };
4326
4329
  outputFormat: "json";
4327
- status: 404;
4330
+ status: 400;
4328
4331
  input: {
4329
4332
  param: {
4330
4333
  id: string;
@@ -5546,17 +5549,6 @@ export declare function createRunsRoutes(deps: RunsRouteDeps): import("hono/hono
5546
5549
  } & {
5547
5550
  "/runs/:id/read": {
5548
5551
  $post: {
5549
- output: {
5550
- error: string;
5551
- };
5552
- outputFormat: "json";
5553
- status: 404;
5554
- input: {
5555
- param: {
5556
- id: string;
5557
- };
5558
- };
5559
- } | {
5560
5552
  output: {
5561
5553
  archiveWhenDone?: boolean | undefined;
5562
5554
  autoMergePr?: boolean | undefined;
@@ -6731,11 +6723,7 @@ export declare function createRunsRoutes(deps: RunsRouteDeps): import("hono/hono
6731
6723
  id: string;
6732
6724
  };
6733
6725
  };
6734
- };
6735
- };
6736
- } & {
6737
- "/runs/:id/unread": {
6738
- $post: {
6726
+ } | {
6739
6727
  output: {
6740
6728
  error: string;
6741
6729
  };
@@ -6746,7 +6734,11 @@ export declare function createRunsRoutes(deps: RunsRouteDeps): import("hono/hono
6746
6734
  id: string;
6747
6735
  };
6748
6736
  };
6749
- } | {
6737
+ };
6738
+ };
6739
+ } & {
6740
+ "/runs/:id/unread": {
6741
+ $post: {
6750
6742
  output: {
6751
6743
  archiveWhenDone?: boolean | undefined;
6752
6744
  autoMergePr?: boolean | undefined;
@@ -7921,6 +7913,17 @@ export declare function createRunsRoutes(deps: RunsRouteDeps): import("hono/hono
7921
7913
  id: string;
7922
7914
  };
7923
7915
  };
7916
+ } | {
7917
+ output: {
7918
+ error: string;
7919
+ };
7920
+ outputFormat: "json";
7921
+ status: 404;
7922
+ input: {
7923
+ param: {
7924
+ id: string;
7925
+ };
7926
+ };
7924
7927
  };
7925
7928
  };
7926
7929
  } & {
@@ -9196,17 +9199,6 @@ export declare function createRunsRoutes(deps: RunsRouteDeps): import("hono/hono
9196
9199
  } & {
9197
9200
  "/runs/:id": {
9198
9201
  $get: {
9199
- output: {
9200
- error: string;
9201
- };
9202
- outputFormat: "json";
9203
- status: 404;
9204
- input: {
9205
- param: {
9206
- id: string;
9207
- };
9208
- };
9209
- } | {
9210
9202
  output: {
9211
9203
  archiveWhenDone?: boolean | undefined;
9212
9204
  autoMergePr?: boolean | undefined;
@@ -10389,6 +10381,17 @@ export declare function createRunsRoutes(deps: RunsRouteDeps): import("hono/hono
10389
10381
  id: string;
10390
10382
  };
10391
10383
  };
10384
+ } | {
10385
+ output: {
10386
+ error: string;
10387
+ };
10388
+ outputFormat: "json";
10389
+ status: 404;
10390
+ input: {
10391
+ param: {
10392
+ id: string;
10393
+ };
10394
+ };
10392
10395
  };
10393
10396
  };
10394
10397
  } & {
@@ -10517,90 +10520,30 @@ export declare function createRunsRoutes(deps: RunsRouteDeps): import("hono/hono
10517
10520
  "/runs/:id": {
10518
10521
  $patch: {
10519
10522
  output: {
10520
- error: string;
10521
- };
10522
- outputFormat: "json";
10523
- status: 400;
10524
- input: {
10525
- json: {
10526
- archiveWhenDone?: boolean | undefined;
10527
- autoMergePr?: boolean | undefined;
10528
- allowWorkers?: boolean | undefined;
10529
- allowMessaging?: boolean | undefined;
10530
- title?: string | undefined;
10531
- task?: string | undefined;
10532
- };
10533
- } & {
10534
- param: {
10523
+ archiveWhenDone?: boolean | undefined;
10524
+ autoMergePr?: boolean | undefined;
10525
+ allowWorkers?: boolean | undefined;
10526
+ allowMessaging?: boolean | undefined;
10527
+ id: string;
10528
+ title: string;
10529
+ titleSummary?: string | undefined;
10530
+ diffStat?: {
10531
+ adds: number;
10532
+ dels: number;
10533
+ files: number;
10534
+ repointed?: boolean | undefined;
10535
+ } | undefined;
10536
+ workflow: string;
10537
+ task: string;
10538
+ queuedMessages?: {
10539
+ replayAfterOpen?: true | undefined;
10535
10540
  id: string;
10536
- };
10537
- };
10538
- } | {
10539
- output: {
10540
- error: string;
10541
- };
10542
- outputFormat: "json";
10543
- status: 404;
10544
- input: {
10545
- json: {
10546
- archiveWhenDone?: boolean | undefined;
10547
- autoMergePr?: boolean | undefined;
10548
- allowWorkers?: boolean | undefined;
10549
- allowMessaging?: boolean | undefined;
10550
- title?: string | undefined;
10551
- task?: string | undefined;
10552
- };
10553
- } & {
10554
- param: {
10555
- id: string;
10556
- };
10557
- };
10558
- } | {
10559
- output: {
10560
- error: string;
10561
- };
10562
- outputFormat: "json";
10563
- status: 409;
10564
- input: {
10565
- json: {
10566
- archiveWhenDone?: boolean | undefined;
10567
- autoMergePr?: boolean | undefined;
10568
- allowWorkers?: boolean | undefined;
10569
- allowMessaging?: boolean | undefined;
10570
- title?: string | undefined;
10571
- task?: string | undefined;
10572
- };
10573
- } & {
10574
- param: {
10575
- id: string;
10576
- };
10577
- };
10578
- } | {
10579
- output: {
10580
- archiveWhenDone?: boolean | undefined;
10581
- autoMergePr?: boolean | undefined;
10582
- allowWorkers?: boolean | undefined;
10583
- allowMessaging?: boolean | undefined;
10584
- id: string;
10585
- title: string;
10586
- titleSummary?: string | undefined;
10587
- diffStat?: {
10588
- adds: number;
10589
- dels: number;
10590
- files: number;
10591
- repointed?: boolean | undefined;
10592
- } | undefined;
10593
- workflow: string;
10594
- task: string;
10595
- queuedMessages?: {
10596
- replayAfterOpen?: true | undefined;
10597
- id: string;
10598
- text: string;
10599
- images?: string[] | undefined;
10600
- createdAt: string;
10601
- }[] | undefined;
10602
- continuationMessage?: {
10603
- replayAfterOpen?: true | undefined;
10541
+ text: string;
10542
+ images?: string[] | undefined;
10543
+ createdAt: string;
10544
+ }[] | undefined;
10545
+ continuationMessage?: {
10546
+ replayAfterOpen?: true | undefined;
10604
10547
  id: string;
10605
10548
  text: string;
10606
10549
  images?: string[] | undefined;
@@ -11759,6 +11702,66 @@ export declare function createRunsRoutes(deps: RunsRouteDeps): import("hono/hono
11759
11702
  id: string;
11760
11703
  };
11761
11704
  };
11705
+ } | {
11706
+ output: {
11707
+ error: string;
11708
+ };
11709
+ outputFormat: "json";
11710
+ status: 404;
11711
+ input: {
11712
+ json: {
11713
+ archiveWhenDone?: boolean | undefined;
11714
+ autoMergePr?: boolean | undefined;
11715
+ allowWorkers?: boolean | undefined;
11716
+ allowMessaging?: boolean | undefined;
11717
+ title?: string | undefined;
11718
+ task?: string | undefined;
11719
+ };
11720
+ } & {
11721
+ param: {
11722
+ id: string;
11723
+ };
11724
+ };
11725
+ } | {
11726
+ output: {
11727
+ error: string;
11728
+ };
11729
+ outputFormat: "json";
11730
+ status: 400;
11731
+ input: {
11732
+ json: {
11733
+ archiveWhenDone?: boolean | undefined;
11734
+ autoMergePr?: boolean | undefined;
11735
+ allowWorkers?: boolean | undefined;
11736
+ allowMessaging?: boolean | undefined;
11737
+ title?: string | undefined;
11738
+ task?: string | undefined;
11739
+ };
11740
+ } & {
11741
+ param: {
11742
+ id: string;
11743
+ };
11744
+ };
11745
+ } | {
11746
+ output: {
11747
+ error: string;
11748
+ };
11749
+ outputFormat: "json";
11750
+ status: 409;
11751
+ input: {
11752
+ json: {
11753
+ archiveWhenDone?: boolean | undefined;
11754
+ autoMergePr?: boolean | undefined;
11755
+ allowWorkers?: boolean | undefined;
11756
+ allowMessaging?: boolean | undefined;
11757
+ title?: string | undefined;
11758
+ task?: string | undefined;
11759
+ };
11760
+ } & {
11761
+ param: {
11762
+ id: string;
11763
+ };
11764
+ };
11762
11765
  };
11763
11766
  };
11764
11767
  } & {
@@ -11863,7 +11866,7 @@ export declare function createRunsRoutes(deps: RunsRouteDeps): import("hono/hono
11863
11866
  error: string;
11864
11867
  };
11865
11868
  outputFormat: "json";
11866
- status: 400;
11869
+ status: 404;
11867
11870
  input: {
11868
11871
  json: {
11869
11872
  text?: string | undefined;
@@ -11882,7 +11885,7 @@ export declare function createRunsRoutes(deps: RunsRouteDeps): import("hono/hono
11882
11885
  error: string;
11883
11886
  };
11884
11887
  outputFormat: "json";
11885
- status: 404;
11888
+ status: 409;
11886
11889
  input: {
11887
11890
  json: {
11888
11891
  text?: string | undefined;
@@ -11898,10 +11901,10 @@ export declare function createRunsRoutes(deps: RunsRouteDeps): import("hono/hono
11898
11901
  };
11899
11902
  } | {
11900
11903
  output: {
11901
- error: string;
11904
+ delivered: true;
11902
11905
  };
11903
11906
  outputFormat: "json";
11904
- status: 409;
11907
+ status: import("hono/utils/http-status").ContentfulStatusCode;
11905
11908
  input: {
11906
11909
  json: {
11907
11910
  text?: string | undefined;
@@ -11917,10 +11920,10 @@ export declare function createRunsRoutes(deps: RunsRouteDeps): import("hono/hono
11917
11920
  };
11918
11921
  } | {
11919
11922
  output: {
11920
- delivered: true;
11923
+ error: string;
11921
11924
  };
11922
11925
  outputFormat: "json";
11923
- status: import("hono/utils/http-status").ContentfulStatusCode;
11926
+ status: 400;
11924
11927
  input: {
11925
11928
  json: {
11926
11929
  text?: string | undefined;
@@ -11988,7 +11991,7 @@ export declare function createRunsRoutes(deps: RunsRouteDeps): import("hono/hono
11988
11991
  error: string;
11989
11992
  };
11990
11993
  outputFormat: "json";
11991
- status: 400;
11994
+ status: 404;
11992
11995
  input: {
11993
11996
  json: {
11994
11997
  text?: string | undefined;
@@ -12009,7 +12012,7 @@ export declare function createRunsRoutes(deps: RunsRouteDeps): import("hono/hono
12009
12012
  error: string;
12010
12013
  };
12011
12014
  outputFormat: "json";
12012
- status: 404;
12015
+ status: 400;
12013
12016
  input: {
12014
12017
  json: {
12015
12018
  text?: string | undefined;
@@ -12229,11 +12232,10 @@ export declare function createRunsRoutes(deps: RunsRouteDeps): import("hono/hono
12229
12232
  "/runs/:id/open-in-cli": {
12230
12233
  $post: {
12231
12234
  output: {
12232
- opened: true;
12233
- command: string;
12235
+ error: string;
12234
12236
  };
12235
12237
  outputFormat: "json";
12236
- status: import("hono/utils/http-status").ContentfulStatusCode;
12238
+ status: 404 | 409;
12237
12239
  input: {
12238
12240
  param: {
12239
12241
  id: string;
@@ -12241,10 +12243,11 @@ export declare function createRunsRoutes(deps: RunsRouteDeps): import("hono/hono
12241
12243
  };
12242
12244
  } | {
12243
12245
  output: {
12244
- error: string;
12246
+ opened: true;
12247
+ command: string;
12245
12248
  };
12246
12249
  outputFormat: "json";
12247
- status: 404 | 409;
12250
+ status: import("hono/utils/http-status").ContentfulStatusCode;
12248
12251
  input: {
12249
12252
  param: {
12250
12253
  id: string;
@@ -12259,7 +12262,7 @@ export declare function createRunsRoutes(deps: RunsRouteDeps): import("hono/hono
12259
12262
  error: string;
12260
12263
  };
12261
12264
  outputFormat: "json";
12262
- status: 400;
12265
+ status: 404 | 409;
12263
12266
  input: {
12264
12267
  json: {
12265
12268
  target: string;
@@ -12272,11 +12275,10 @@ export declare function createRunsRoutes(deps: RunsRouteDeps): import("hono/hono
12272
12275
  };
12273
12276
  } | {
12274
12277
  output: {
12275
- opened: true;
12276
- path: string;
12278
+ error: string;
12277
12279
  };
12278
12280
  outputFormat: "json";
12279
- status: import("hono/utils/http-status").ContentfulStatusCode;
12281
+ status: 400;
12280
12282
  input: {
12281
12283
  json: {
12282
12284
  target: string;
@@ -12289,10 +12291,11 @@ export declare function createRunsRoutes(deps: RunsRouteDeps): import("hono/hono
12289
12291
  };
12290
12292
  } | {
12291
12293
  output: {
12292
- error: string;
12294
+ opened: true;
12295
+ path: string;
12293
12296
  };
12294
12297
  outputFormat: "json";
12295
- status: 404 | 409;
12298
+ status: import("hono/utils/http-status").ContentfulStatusCode;
12296
12299
  input: {
12297
12300
  json: {
12298
12301
  target: string;
@@ -12332,12 +12335,9 @@ export declare function createRunsRoutes(deps: RunsRouteDeps): import("hono/hono
12332
12335
  } & {
12333
12336
  "/runs/:id/images/:file": {
12334
12337
  $get: {
12335
- output: {
12336
- error: string;
12337
- code?: "invalid_input" | undefined;
12338
- };
12339
- outputFormat: "json";
12340
- status: 400;
12338
+ output: {};
12339
+ outputFormat: string;
12340
+ status: import("hono/utils/http-status").StatusCode;
12341
12341
  input: {
12342
12342
  param: {
12343
12343
  id: string;
@@ -12345,9 +12345,12 @@ export declare function createRunsRoutes(deps: RunsRouteDeps): import("hono/hono
12345
12345
  };
12346
12346
  };
12347
12347
  } | {
12348
- output: {};
12349
- outputFormat: string;
12350
- status: import("hono/utils/http-status").StatusCode;
12348
+ output: {
12349
+ error: string;
12350
+ code?: "invalid_input" | undefined;
12351
+ };
12352
+ outputFormat: "json";
12353
+ status: 400;
12351
12354
  input: {
12352
12355
  param: {
12353
12356
  id: string;
@@ -12383,6 +12386,17 @@ export declare function createRunsRoutes(deps: RunsRouteDeps): import("hono/hono
12383
12386
  } & {
12384
12387
  "/runs/:id/changes": {
12385
12388
  $get: {
12389
+ output: {
12390
+ error: string;
12391
+ };
12392
+ outputFormat: "json";
12393
+ status: 404 | 409;
12394
+ input: {
12395
+ param: {
12396
+ id: string;
12397
+ };
12398
+ };
12399
+ } | {
12386
12400
  output: {
12387
12401
  files: {
12388
12402
  path: string;
@@ -12411,7 +12425,11 @@ export declare function createRunsRoutes(deps: RunsRouteDeps): import("hono/hono
12411
12425
  id: string;
12412
12426
  };
12413
12427
  };
12414
- } | {
12428
+ };
12429
+ };
12430
+ } & {
12431
+ "/runs/:id/commits": {
12432
+ $get: {
12415
12433
  output: {
12416
12434
  error: string;
12417
12435
  };
@@ -12422,11 +12440,7 @@ export declare function createRunsRoutes(deps: RunsRouteDeps): import("hono/hono
12422
12440
  id: string;
12423
12441
  };
12424
12442
  };
12425
- };
12426
- };
12427
- } & {
12428
- "/runs/:id/commits": {
12429
- $get: {
12443
+ } | {
12430
12444
  output: {
12431
12445
  commits: {
12432
12446
  sha: string;
@@ -12442,7 +12456,11 @@ export declare function createRunsRoutes(deps: RunsRouteDeps): import("hono/hono
12442
12456
  id: string;
12443
12457
  };
12444
12458
  };
12445
- } | {
12459
+ };
12460
+ };
12461
+ } & {
12462
+ "/runs/:id/commit/:sha": {
12463
+ $get: {
12446
12464
  output: {
12447
12465
  error: string;
12448
12466
  };
@@ -12451,13 +12469,11 @@ export declare function createRunsRoutes(deps: RunsRouteDeps): import("hono/hono
12451
12469
  input: {
12452
12470
  param: {
12453
12471
  id: string;
12472
+ } & {
12473
+ sha: string;
12454
12474
  };
12455
12475
  };
12456
- };
12457
- };
12458
- } & {
12459
- "/runs/:id/commit/:sha": {
12460
- $get: {
12476
+ } | {
12461
12477
  output: {
12462
12478
  sha: string;
12463
12479
  subject: string;
@@ -12488,19 +12504,6 @@ export declare function createRunsRoutes(deps: RunsRouteDeps): import("hono/hono
12488
12504
  sha: string;
12489
12505
  };
12490
12506
  };
12491
- } | {
12492
- output: {
12493
- error: string;
12494
- };
12495
- outputFormat: "json";
12496
- status: 404 | 409;
12497
- input: {
12498
- param: {
12499
- id: string;
12500
- } & {
12501
- sha: string;
12502
- };
12503
- };
12504
12507
  };
12505
12508
  };
12506
12509
  } & {
@@ -12536,6 +12539,22 @@ export declare function createRunsRoutes(deps: RunsRouteDeps): import("hono/hono
12536
12539
  raw?: "1" | undefined;
12537
12540
  };
12538
12541
  };
12542
+ } | {
12543
+ output: {
12544
+ error: string;
12545
+ };
12546
+ outputFormat: "json";
12547
+ status: 404 | 409;
12548
+ input: {
12549
+ param: {
12550
+ id: string;
12551
+ };
12552
+ } & {
12553
+ query: {
12554
+ path: string | string[];
12555
+ raw?: "1" | undefined;
12556
+ };
12557
+ };
12539
12558
  } | {
12540
12559
  output: {
12541
12560
  type: "file";
@@ -12572,22 +12591,6 @@ export declare function createRunsRoutes(deps: RunsRouteDeps): import("hono/hono
12572
12591
  raw?: "1" | undefined;
12573
12592
  };
12574
12593
  };
12575
- } | {
12576
- output: {
12577
- error: string;
12578
- };
12579
- outputFormat: "json";
12580
- status: 404 | 409;
12581
- input: {
12582
- param: {
12583
- id: string;
12584
- };
12585
- } & {
12586
- query: {
12587
- path: string | string[];
12588
- raw?: "1" | undefined;
12589
- };
12590
- };
12591
12594
  };
12592
12595
  };
12593
12596
  } & {
@@ -12652,18 +12655,6 @@ export declare function createRunsRoutes(deps: RunsRouteDeps): import("hono/hono
12652
12655
  artifactId: string;
12653
12656
  };
12654
12657
  };
12655
- } | {
12656
- output: {
12657
- error: string;
12658
- };
12659
- outputFormat: "json";
12660
- status: 404;
12661
- input: {
12662
- param: {
12663
- id: string;
12664
- artifactId: string;
12665
- };
12666
- };
12667
12658
  } | {
12668
12659
  output: {
12669
12660
  type: "file";
@@ -12692,6 +12683,18 @@ export declare function createRunsRoutes(deps: RunsRouteDeps): import("hono/hono
12692
12683
  artifactId: string;
12693
12684
  };
12694
12685
  };
12686
+ } | {
12687
+ output: {
12688
+ error: string;
12689
+ };
12690
+ outputFormat: "json";
12691
+ status: 404;
12692
+ input: {
12693
+ param: {
12694
+ id: string;
12695
+ artifactId: string;
12696
+ };
12697
+ };
12695
12698
  };
12696
12699
  };
12697
12700
  } & {
@@ -12869,16 +12872,10 @@ export declare function createRunsRoutes(deps: RunsRouteDeps): import("hono/hono
12869
12872
  };
12870
12873
  } | {
12871
12874
  output: {
12872
- type: 'dir';
12873
- path: string;
12874
- entries: {
12875
- name: string;
12876
- type: 'dir' | 'file';
12877
- size?: number;
12878
- }[];
12875
+ error: string;
12879
12876
  };
12880
12877
  outputFormat: "json";
12881
- status: import("hono/utils/http-status").ContentfulStatusCode;
12878
+ status: 404 | 409;
12882
12879
  input: {
12883
12880
  query: {
12884
12881
  path?: string | undefined;
@@ -12891,12 +12888,13 @@ export declare function createRunsRoutes(deps: RunsRouteDeps): import("hono/hono
12891
12888
  };
12892
12889
  } | {
12893
12890
  output: {
12894
- type: 'file';
12891
+ type: 'dir';
12895
12892
  path: string;
12896
- size: number;
12897
- binary: boolean;
12898
- tooLarge: boolean;
12899
- content?: string | undefined;
12893
+ entries: {
12894
+ name: string;
12895
+ type: 'dir' | 'file';
12896
+ size?: number;
12897
+ }[];
12900
12898
  };
12901
12899
  outputFormat: "json";
12902
12900
  status: import("hono/utils/http-status").ContentfulStatusCode;
@@ -12912,10 +12910,15 @@ export declare function createRunsRoutes(deps: RunsRouteDeps): import("hono/hono
12912
12910
  };
12913
12911
  } | {
12914
12912
  output: {
12915
- error: string;
12913
+ type: 'file';
12914
+ path: string;
12915
+ size: number;
12916
+ binary: boolean;
12917
+ tooLarge: boolean;
12918
+ content?: string | undefined;
12916
12919
  };
12917
12920
  outputFormat: "json";
12918
- status: 404 | 409;
12921
+ status: import("hono/utils/http-status").ContentfulStatusCode;
12919
12922
  input: {
12920
12923
  query: {
12921
12924
  path?: string | undefined;
@@ -12932,11 +12935,10 @@ export declare function createRunsRoutes(deps: RunsRouteDeps): import("hono/hono
12932
12935
  "/runs/:id/git/commit": {
12933
12936
  $post: {
12934
12937
  output: {
12935
- committed: true;
12936
- sha: string;
12938
+ error: string;
12937
12939
  };
12938
12940
  outputFormat: "json";
12939
- status: import("hono/utils/http-status").ContentfulStatusCode;
12941
+ status: 404 | 409;
12940
12942
  input: {
12941
12943
  json: {
12942
12944
  message: string;
@@ -12948,10 +12950,11 @@ export declare function createRunsRoutes(deps: RunsRouteDeps): import("hono/hono
12948
12950
  };
12949
12951
  } | {
12950
12952
  output: {
12951
- error: string;
12953
+ committed: true;
12954
+ sha: string;
12952
12955
  };
12953
12956
  outputFormat: "json";
12954
- status: 404 | 409;
12957
+ status: import("hono/utils/http-status").ContentfulStatusCode;
12955
12958
  input: {
12956
12959
  json: {
12957
12960
  message: string;
@@ -12967,13 +12970,10 @@ export declare function createRunsRoutes(deps: RunsRouteDeps): import("hono/hono
12967
12970
  "/runs/:id/git/push": {
12968
12971
  $post: {
12969
12972
  output: {
12970
- pushed: true;
12971
- branch: string;
12972
- remote: string;
12973
- upstreamSet: boolean;
12973
+ error: string;
12974
12974
  };
12975
12975
  outputFormat: "json";
12976
- status: import("hono/utils/http-status").ContentfulStatusCode;
12976
+ status: 404 | 409;
12977
12977
  input: {
12978
12978
  param: {
12979
12979
  id: string;
@@ -12981,10 +12981,13 @@ export declare function createRunsRoutes(deps: RunsRouteDeps): import("hono/hono
12981
12981
  };
12982
12982
  } | {
12983
12983
  output: {
12984
- error: string;
12984
+ pushed: true;
12985
+ branch: string;
12986
+ remote: string;
12987
+ upstreamSet: boolean;
12985
12988
  };
12986
12989
  outputFormat: "json";
12987
- status: 404 | 409;
12990
+ status: import("hono/utils/http-status").ContentfulStatusCode;
12988
12991
  input: {
12989
12992
  param: {
12990
12993
  id: string;
@@ -12996,11 +12999,10 @@ export declare function createRunsRoutes(deps: RunsRouteDeps): import("hono/hono
12996
12999
  "/runs/:id/pr": {
12997
13000
  $post: {
12998
13001
  output: {
12999
- url: string;
13000
- dryRun: boolean;
13002
+ error: string;
13001
13003
  };
13002
13004
  outputFormat: "json";
13003
- status: 201;
13005
+ status: 404 | 409;
13004
13006
  input: {
13005
13007
  param: {
13006
13008
  id: string;
@@ -13008,10 +13010,11 @@ export declare function createRunsRoutes(deps: RunsRouteDeps): import("hono/hono
13008
13010
  };
13009
13011
  } | {
13010
13012
  output: {
13011
- error: string;
13013
+ url: string;
13014
+ dryRun: boolean;
13012
13015
  };
13013
13016
  outputFormat: "json";
13014
- status: 404 | 409;
13017
+ status: 201;
13015
13018
  input: {
13016
13019
  param: {
13017
13020
  id: string;
@@ -13023,10 +13026,10 @@ export declare function createRunsRoutes(deps: RunsRouteDeps): import("hono/hono
13023
13026
  "/runs/:id/remove-worktree": {
13024
13027
  $post: {
13025
13028
  output: {
13026
- removed: true;
13029
+ error: string;
13027
13030
  };
13028
13031
  outputFormat: "json";
13029
- status: import("hono/utils/http-status").ContentfulStatusCode;
13032
+ status: 404 | 409;
13030
13033
  input: {
13031
13034
  param: {
13032
13035
  id: string;
@@ -13034,10 +13037,10 @@ export declare function createRunsRoutes(deps: RunsRouteDeps): import("hono/hono
13034
13037
  };
13035
13038
  } | {
13036
13039
  output: {
13037
- error: string;
13040
+ removed: true;
13038
13041
  };
13039
13042
  outputFormat: "json";
13040
- status: 404 | 409;
13043
+ status: import("hono/utils/http-status").ContentfulStatusCode;
13041
13044
  input: {
13042
13045
  param: {
13043
13046
  id: string;
@@ -13049,10 +13052,10 @@ export declare function createRunsRoutes(deps: RunsRouteDeps): import("hono/hono
13049
13052
  "/runs/:id": {
13050
13053
  $delete: {
13051
13054
  output: {
13052
- deleted: true;
13055
+ error: string;
13053
13056
  };
13054
13057
  outputFormat: "json";
13055
- status: import("hono/utils/http-status").ContentfulStatusCode;
13058
+ status: 404 | 409;
13056
13059
  input: {
13057
13060
  param: {
13058
13061
  id: string;
@@ -13060,10 +13063,10 @@ export declare function createRunsRoutes(deps: RunsRouteDeps): import("hono/hono
13060
13063
  };
13061
13064
  } | {
13062
13065
  output: {
13063
- error: string;
13066
+ deleted: true;
13064
13067
  };
13065
13068
  outputFormat: "json";
13066
- status: 404 | 409;
13069
+ status: import("hono/utils/http-status").ContentfulStatusCode;
13067
13070
  input: {
13068
13071
  param: {
13069
13072
  id: string;