@hearsay-tools/squawk 0.19.0-pr4574.9085 → 0.19.0-pr4576.9083

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 (103) hide show
  1. package/dist/boot.js +2 -0
  2. package/dist/boot.js.map +1 -1
  3. package/dist/built-in-cli-commands.js +1 -6
  4. package/dist/built-in-cli-commands.js.map +1 -1
  5. package/dist/ci-wait/controller.d.ts +7 -7
  6. package/dist/cli-dispatch.d.ts +1 -2
  7. package/dist/cli-dispatch.js +7 -20
  8. package/dist/cli-dispatch.js.map +1 -1
  9. package/dist/contract/hosts.d.ts +0 -161
  10. package/dist/contract/index.js +0 -116
  11. package/dist/core/cli-registry.d.ts +0 -1
  12. package/dist/core/cli-registry.js.map +1 -1
  13. package/dist/core/live-topic-registry.d.ts +29 -0
  14. package/dist/core/live-topic-registry.js +68 -0
  15. package/dist/core/live-topic-registry.js.map +1 -0
  16. package/dist/core/server-hook-registry.d.ts +2 -0
  17. package/dist/core/server-hook-registry.js.map +1 -1
  18. package/dist/features/automations/tools.d.ts +8 -8
  19. package/dist/features/hosts/cli.d.ts +0 -59
  20. package/dist/features/hosts/cli.js +17 -28
  21. package/dist/features/hosts/cli.js.map +1 -1
  22. package/dist/features/hosts/index.d.ts +0 -2
  23. package/dist/features/hosts/index.js +0 -12
  24. package/dist/features/hosts/index.js.map +1 -1
  25. package/dist/features/hosts/routes.d.ts +44 -44
  26. package/dist/features/reports/capability.d.ts +3 -0
  27. package/dist/features/reports/capability.js +6 -0
  28. package/dist/features/reports/capability.js.map +1 -0
  29. package/dist/features/reports/index.d.ts +13 -0
  30. package/dist/features/reports/index.js +12 -0
  31. package/dist/features/reports/index.js.map +1 -0
  32. package/dist/features/reports/live-topic.d.ts +5 -0
  33. package/dist/{server/reports-topic.js → features/reports/live-topic.js} +10 -7
  34. package/dist/features/reports/live-topic.js.map +1 -0
  35. package/dist/{artifacts → features/reports}/reports-index.d.ts +5 -5
  36. package/dist/{artifacts → features/reports}/reports-index.js +7 -7
  37. package/dist/features/reports/reports-index.js.map +1 -0
  38. package/dist/{artifacts → features/reports}/reports-watch.d.ts +3 -3
  39. package/dist/{artifacts → features/reports}/reports-watch.js +2 -2
  40. package/dist/features/reports/reports-watch.js.map +1 -0
  41. package/dist/{server/reports-api.d.ts → features/reports/routes.d.ts} +6 -2
  42. package/dist/features/reports/routes.js +32 -0
  43. package/dist/features/reports/routes.js.map +1 -0
  44. package/dist/features/reports/server-hook.d.ts +8 -0
  45. package/dist/features/reports/server-hook.js +25 -0
  46. package/dist/features/reports/server-hook.js.map +1 -0
  47. package/dist/index.js +2 -2
  48. package/dist/index.js.map +1 -1
  49. package/dist/plugin/api.d.ts +3 -0
  50. package/dist/plugin/api.js +10 -1
  51. package/dist/plugin/api.js.map +1 -1
  52. package/dist/plugin/cli.js +1 -1
  53. package/dist/plugin/cli.js.map +1 -1
  54. package/dist/plugin/index.d.ts +1 -0
  55. package/dist/plugin/index.js.map +1 -1
  56. package/dist/serve-command.d.ts +1 -10
  57. package/dist/serve-command.js +9 -63
  58. package/dist/serve-command.js.map +1 -1
  59. package/dist/server/activity-routes.js +0 -2
  60. package/dist/server/activity-routes.js.map +1 -1
  61. package/dist/server/live-routes.d.ts +6 -6
  62. package/dist/server/plugin-live-topics.d.ts +18 -0
  63. package/dist/server/plugin-live-topics.js +120 -0
  64. package/dist/server/plugin-live-topics.js.map +1 -0
  65. package/dist/server/project-context.js +0 -2
  66. package/dist/server/project-context.js.map +1 -1
  67. package/dist/server/provider-sign-in-routes.d.ts +2 -2
  68. package/dist/server/providers-routes.d.ts +58 -58
  69. package/dist/server/repo-routes.d.ts +52 -52
  70. package/dist/server/runners-routes.d.ts +10 -10
  71. package/dist/server/runs-routes.d.ts +315 -315
  72. package/dist/server/server.d.ts +763 -936
  73. package/dist/server/server.js +3 -4
  74. package/dist/server/server.js.map +1 -1
  75. package/dist/server/start-server.js +6 -3
  76. package/dist/server/start-server.js.map +1 -1
  77. package/dist/server/workspace-live-routes.d.ts +5 -5
  78. package/dist/server/workspace-routes.d.ts +85 -85
  79. package/package.json +4 -4
  80. package/dist/artifacts/reports-index.js.map +0 -1
  81. package/dist/artifacts/reports-watch.js.map +0 -1
  82. package/dist/features/hosts/host-server-cli.d.ts +0 -13
  83. package/dist/features/hosts/host-server-cli.js +0 -246
  84. package/dist/features/hosts/host-server-cli.js.map +0 -1
  85. package/dist/features/hosts/host-server.d.ts +0 -51
  86. package/dist/features/hosts/host-server.js +0 -407
  87. package/dist/features/hosts/host-server.js.map +0 -1
  88. package/dist/features/hosts/runtime-archive.d.ts +0 -103
  89. package/dist/features/hosts/runtime-archive.js +0 -619
  90. package/dist/features/hosts/runtime-archive.js.map +0 -1
  91. package/dist/features/hosts/start-methods.d.ts +0 -76
  92. package/dist/features/hosts/start-methods.js +0 -234
  93. package/dist/features/hosts/start-methods.js.map +0 -1
  94. package/dist/features/hosts/tar-gz.d.ts +0 -30
  95. package/dist/features/hosts/tar-gz.js +0 -143
  96. package/dist/features/hosts/tar-gz.js.map +0 -1
  97. package/dist/host-server-store.d.ts +0 -103
  98. package/dist/host-server-store.js +0 -348
  99. package/dist/host-server-store.js.map +0 -1
  100. package/dist/server/reports-api.js +0 -22
  101. package/dist/server/reports-api.js.map +0 -1
  102. package/dist/server/reports-topic.d.ts +0 -5
  103. package/dist/server/reports-topic.js.map +0 -1
@@ -9,6 +9,7 @@ import { Hono } from 'hono';
9
9
  import { TaskWebhooks } from '../runs/webhook.ts';
10
10
  import type { RunnerFactory } from '../core/agent-runner.ts';
11
11
  import type { HttpRouteDefinition } from '../core/http-route-registry.ts';
12
+ import type { LiveTopicDefinition } from '../core/live-topic-registry.ts';
12
13
  import type { ServerHookDefinition } from '../core/server-hook-registry.ts';
13
14
  import { type detectEnvironment } from '../core/backend-detect.ts';
14
15
  import { ProviderAuthService } from '../core/provider-auth.ts';
@@ -142,8 +143,12 @@ export interface ServerDeps extends ActivityServerDeps {
142
143
  archiveOnMergeChanged?: () => void;
143
144
  /** Non-RPC plugin HTTP routes override for isolated tests; defaults to sealed `registeredHttpRoutes()`. */
144
145
  httpRoutes?: readonly HttpRouteDefinition[] | undefined;
146
+ /** Plugin live topic overrides for isolated tests; defaults to sealed `registeredLiveTopics()`. */
147
+ liveTopics?: readonly LiveTopicDefinition[] | undefined;
145
148
  /** Server lifecycle hook overrides for isolated tests; defaults to sealed `registeredServerHooks()`. */
146
149
  serverHooks?: readonly ServerHookDefinition[] | undefined;
150
+ /** Resolves to the bound cockpit origin once listening, or `''` on a direct `createApp` call. */
151
+ cockpitOrigin?: Promise<string> | undefined;
147
152
  }
148
153
  export { WorkspaceEventBus, type ProjectApiEnv, type WorkspaceEventName } from './server-types.ts';
149
154
  /** One row of the mirrored project-route table. */
@@ -162,188 +167,6 @@ export interface ProjectRouteInfo {
162
167
  export declare function projectRouteManifest(app: Hono): ProjectRouteInfo[];
163
168
  export type { ProjectsResponse, RegisterProjectResponse, RemoveProjectResponse, UpdateProjectResponse } from '../contract/index.js';
164
169
  export declare function createApp(deps: ServerDeps): import("hono/hono-base").HonoBase<import("hono/types").BlankEnv, import("hono/types").BlankSchema | import("hono/types").MergeSchemaPath<import("hono/types").BlankSchema | import("hono/types").MergeSchemaPath<{
165
- "/health": {
166
- $get: {
167
- output: {
168
- version: string;
169
- latestVersion?: string | undefined;
170
- repoRoot: string | null;
171
- repo: {
172
- root: string;
173
- branch: string;
174
- remote?: string | undefined;
175
- } | null;
176
- checks: {
177
- name: string;
178
- available: boolean;
179
- version?: string;
180
- hint?: string;
181
- }[];
182
- defaultRunner: string;
183
- forge: {
184
- available?: boolean | undefined;
185
- reason?: string;
186
- kind: string;
187
- } | null;
188
- capabilities: {
189
- [x: string]: boolean | undefined;
190
- localHandoff: boolean;
191
- settingsAdmin: boolean;
192
- remoteSettingsAdmin: boolean;
193
- automations?: boolean | undefined;
194
- preview: boolean;
195
- tokenMetrics: boolean;
196
- tokenUsageMetrics: boolean;
197
- costMetrics: boolean;
198
- };
199
- projects: {
200
- id: string;
201
- name: string;
202
- }[];
203
- bootProject: string | null;
204
- plugins: {
205
- loaded: {
206
- name: string;
207
- source: "bundled" | "host";
208
- path?: string | undefined;
209
- }[];
210
- failed: {
211
- name: string;
212
- source: "bundled" | "host";
213
- path?: string | undefined;
214
- error: string;
215
- }[];
216
- };
217
- };
218
- outputFormat: "json";
219
- status: import("hono/utils/http-status").ContentfulStatusCode;
220
- input: {};
221
- };
222
- };
223
- }, "/"> | import("hono/types").MergeSchemaPath<{
224
- "/fs/browse": {
225
- $get: {
226
- output: {
227
- error: string;
228
- code?: "invalid_input" | undefined;
229
- };
230
- outputFormat: "json";
231
- status: 400;
232
- input: {
233
- query: {
234
- path?: string | undefined;
235
- showHidden?: string | undefined;
236
- };
237
- };
238
- } | {
239
- output: {
240
- error: string;
241
- };
242
- outputFormat: "json";
243
- status: 400 | 403 | 404;
244
- input: {
245
- query: {
246
- path?: string | undefined;
247
- showHidden?: string | undefined;
248
- };
249
- };
250
- } | {
251
- output: {
252
- path: string;
253
- parent: string | null;
254
- dirs: {
255
- name: string;
256
- path: string;
257
- isRepo: boolean;
258
- }[];
259
- truncated: boolean;
260
- };
261
- outputFormat: "json";
262
- status: import("hono/utils/http-status").ContentfulStatusCode;
263
- input: {
264
- query: {
265
- path?: string | undefined;
266
- showHidden?: string | undefined;
267
- };
268
- };
269
- };
270
- };
271
- }, "/"> | import("hono/types").MergeSchemaPath<{
272
- "/workspace/events": {
273
- $get: {
274
- output: {};
275
- outputFormat: string;
276
- status: import("hono/utils/http-status").StatusCode;
277
- input: {
278
- query: {
279
- runs?: "summary" | undefined;
280
- };
281
- };
282
- } | {
283
- output: {
284
- error: string;
285
- code?: "invalid_input" | undefined;
286
- };
287
- outputFormat: "json";
288
- status: 400;
289
- input: {
290
- query: {
291
- runs?: "summary" | undefined;
292
- };
293
- };
294
- };
295
- };
296
- }, "/"> | import("hono/types").MergeSchemaPath<{
297
- "/models": {
298
- $get: {
299
- output: {
300
- error: string;
301
- code?: "invalid_input" | undefined;
302
- };
303
- outputFormat: "json";
304
- status: 400;
305
- input: {
306
- query: {
307
- runner: string | string[];
308
- profileId?: string | undefined;
309
- };
310
- };
311
- } | {
312
- output: {
313
- runner: string;
314
- models: {
315
- id: string;
316
- label: string;
317
- description: string;
318
- effortLevels?: import('../contract/index.js').EffortLevel[];
319
- }[];
320
- source: import("../core/runner-model-catalog.ts").ModelCatalogSource;
321
- stale: boolean;
322
- reason?: string;
323
- };
324
- outputFormat: "json";
325
- status: import("hono/utils/http-status").ContentfulStatusCode;
326
- input: {
327
- query: {
328
- runner: string | string[];
329
- profileId?: string | undefined;
330
- };
331
- };
332
- } | {
333
- output: {
334
- error: string;
335
- };
336
- outputFormat: "json";
337
- status: 400;
338
- input: {
339
- query: {
340
- runner: string | string[];
341
- profileId?: string | undefined;
342
- };
343
- };
344
- };
345
- };
346
- }, "/"> | import("hono/types").MergeSchemaPath<{
347
170
  "/workspace/activity": {
348
171
  $get: {
349
172
  output: {
@@ -621,6 +444,188 @@ export declare function createApp(deps: ServerDeps): import("hono/hono-base").Ho
621
444
  };
622
445
  };
623
446
  };
447
+ }, "/"> | import("hono/types").MergeSchemaPath<{
448
+ "/models": {
449
+ $get: {
450
+ output: {
451
+ error: string;
452
+ code?: "invalid_input" | undefined;
453
+ };
454
+ outputFormat: "json";
455
+ status: 400;
456
+ input: {
457
+ query: {
458
+ runner: string | string[];
459
+ profileId?: string | undefined;
460
+ };
461
+ };
462
+ } | {
463
+ output: {
464
+ runner: string;
465
+ models: {
466
+ id: string;
467
+ label: string;
468
+ description: string;
469
+ effortLevels?: import('../contract/index.js').EffortLevel[];
470
+ }[];
471
+ source: import("../core/runner-model-catalog.ts").ModelCatalogSource;
472
+ stale: boolean;
473
+ reason?: string;
474
+ };
475
+ outputFormat: "json";
476
+ status: import("hono/utils/http-status").ContentfulStatusCode;
477
+ input: {
478
+ query: {
479
+ runner: string | string[];
480
+ profileId?: string | undefined;
481
+ };
482
+ };
483
+ } | {
484
+ output: {
485
+ error: string;
486
+ };
487
+ outputFormat: "json";
488
+ status: 400;
489
+ input: {
490
+ query: {
491
+ runner: string | string[];
492
+ profileId?: string | undefined;
493
+ };
494
+ };
495
+ };
496
+ };
497
+ }, "/"> | import("hono/types").MergeSchemaPath<{
498
+ "/health": {
499
+ $get: {
500
+ output: {
501
+ version: string;
502
+ latestVersion?: string | undefined;
503
+ repoRoot: string | null;
504
+ repo: {
505
+ root: string;
506
+ branch: string;
507
+ remote?: string | undefined;
508
+ } | null;
509
+ checks: {
510
+ name: string;
511
+ available: boolean;
512
+ version?: string;
513
+ hint?: string;
514
+ }[];
515
+ defaultRunner: string;
516
+ forge: {
517
+ available?: boolean | undefined;
518
+ reason?: string;
519
+ kind: string;
520
+ } | null;
521
+ capabilities: {
522
+ [x: string]: boolean | undefined;
523
+ localHandoff: boolean;
524
+ settingsAdmin: boolean;
525
+ remoteSettingsAdmin: boolean;
526
+ automations?: boolean | undefined;
527
+ preview: boolean;
528
+ tokenMetrics: boolean;
529
+ tokenUsageMetrics: boolean;
530
+ costMetrics: boolean;
531
+ };
532
+ projects: {
533
+ id: string;
534
+ name: string;
535
+ }[];
536
+ bootProject: string | null;
537
+ plugins: {
538
+ loaded: {
539
+ name: string;
540
+ source: "bundled" | "host";
541
+ path?: string | undefined;
542
+ }[];
543
+ failed: {
544
+ name: string;
545
+ source: "bundled" | "host";
546
+ path?: string | undefined;
547
+ error: string;
548
+ }[];
549
+ };
550
+ };
551
+ outputFormat: "json";
552
+ status: import("hono/utils/http-status").ContentfulStatusCode;
553
+ input: {};
554
+ };
555
+ };
556
+ }, "/"> | import("hono/types").MergeSchemaPath<{
557
+ "/fs/browse": {
558
+ $get: {
559
+ output: {
560
+ error: string;
561
+ code?: "invalid_input" | undefined;
562
+ };
563
+ outputFormat: "json";
564
+ status: 400;
565
+ input: {
566
+ query: {
567
+ path?: string | undefined;
568
+ showHidden?: string | undefined;
569
+ };
570
+ };
571
+ } | {
572
+ output: {
573
+ error: string;
574
+ };
575
+ outputFormat: "json";
576
+ status: 400 | 403 | 404;
577
+ input: {
578
+ query: {
579
+ path?: string | undefined;
580
+ showHidden?: string | undefined;
581
+ };
582
+ };
583
+ } | {
584
+ output: {
585
+ path: string;
586
+ parent: string | null;
587
+ dirs: {
588
+ name: string;
589
+ path: string;
590
+ isRepo: boolean;
591
+ }[];
592
+ truncated: boolean;
593
+ };
594
+ outputFormat: "json";
595
+ status: import("hono/utils/http-status").ContentfulStatusCode;
596
+ input: {
597
+ query: {
598
+ path?: string | undefined;
599
+ showHidden?: string | undefined;
600
+ };
601
+ };
602
+ };
603
+ };
604
+ }, "/"> | import("hono/types").MergeSchemaPath<{
605
+ "/workspace/events": {
606
+ $get: {
607
+ output: {};
608
+ outputFormat: string;
609
+ status: import("hono/utils/http-status").StatusCode;
610
+ input: {
611
+ query: {
612
+ runs?: "summary" | undefined;
613
+ };
614
+ };
615
+ } | {
616
+ output: {
617
+ error: string;
618
+ code?: "invalid_input" | undefined;
619
+ };
620
+ outputFormat: "json";
621
+ status: 400;
622
+ input: {
623
+ query: {
624
+ runs?: "summary" | undefined;
625
+ };
626
+ };
627
+ };
628
+ };
624
629
  }, "/"> | import("hono/types").MergeSchemaPath<{
625
630
  "/workspace/runs-index": {
626
631
  $get: {
@@ -936,223 +941,6 @@ export declare function createApp(deps: ServerDeps): import("hono/hono-base").Ho
936
941
  };
937
942
  };
938
943
  };
939
- }, "/"> | import("hono/types").MergeSchemaPath<{
940
- "/providers/sign-in/start": {
941
- $post: {
942
- output: {
943
- error: string;
944
- };
945
- outputFormat: "json";
946
- status: 409;
947
- input: {
948
- json: {
949
- provider: string;
950
- profileId?: string | undefined;
951
- };
952
- };
953
- } | {
954
- output: {
955
- error: string;
956
- };
957
- outputFormat: "json";
958
- status: 400;
959
- input: {
960
- json: {
961
- provider: string;
962
- profileId?: string | undefined;
963
- };
964
- };
965
- } | {
966
- output: {
967
- id: string;
968
- state: "waiting";
969
- url: string;
970
- } | {
971
- id: string;
972
- state: "cancelled" | "connected";
973
- } | {
974
- id: string;
975
- state: "failed";
976
- error: string;
977
- };
978
- outputFormat: "json";
979
- status: import("hono/utils/http-status").ContentfulStatusCode;
980
- input: {
981
- json: {
982
- provider: string;
983
- profileId?: string | undefined;
984
- };
985
- };
986
- };
987
- };
988
- } & {
989
- "/providers/sign-in/:id": {
990
- $get: {
991
- output: {
992
- error: string;
993
- code?: "invalid_input" | undefined;
994
- };
995
- outputFormat: "json";
996
- status: 400;
997
- input: {
998
- param: {
999
- id: string;
1000
- };
1001
- };
1002
- } | {
1003
- output: {
1004
- error: string;
1005
- };
1006
- outputFormat: "json";
1007
- status: 404;
1008
- input: {
1009
- param: {
1010
- id: string;
1011
- };
1012
- };
1013
- } | {
1014
- output: {
1015
- id: string;
1016
- state: "waiting";
1017
- url: string;
1018
- } | {
1019
- id: string;
1020
- state: "cancelled" | "connected";
1021
- } | {
1022
- id: string;
1023
- state: "failed";
1024
- error: string;
1025
- };
1026
- outputFormat: "json";
1027
- status: import("hono/utils/http-status").ContentfulStatusCode;
1028
- input: {
1029
- param: {
1030
- id: string;
1031
- };
1032
- };
1033
- };
1034
- };
1035
- } & {
1036
- "/providers/sign-in/:id/redirect": {
1037
- $post: {
1038
- output: {
1039
- error: string;
1040
- code?: "invalid_input" | undefined;
1041
- };
1042
- outputFormat: "json";
1043
- status: 400;
1044
- input: {
1045
- param: {
1046
- id: string;
1047
- };
1048
- } & {
1049
- json: {
1050
- redirectUrl: string;
1051
- };
1052
- };
1053
- } | {
1054
- output: {
1055
- error: string;
1056
- };
1057
- outputFormat: "json";
1058
- status: 404;
1059
- input: {
1060
- param: {
1061
- id: string;
1062
- };
1063
- } & {
1064
- json: {
1065
- redirectUrl: string;
1066
- };
1067
- };
1068
- } | {
1069
- output: {
1070
- error: string;
1071
- };
1072
- outputFormat: "json";
1073
- status: 409;
1074
- input: {
1075
- param: {
1076
- id: string;
1077
- };
1078
- } & {
1079
- json: {
1080
- redirectUrl: string;
1081
- };
1082
- };
1083
- } | {
1084
- output: {
1085
- id: string;
1086
- state: "waiting";
1087
- url: string;
1088
- } | {
1089
- id: string;
1090
- state: "cancelled" | "connected";
1091
- } | {
1092
- id: string;
1093
- state: "failed";
1094
- error: string;
1095
- };
1096
- outputFormat: "json";
1097
- status: import("hono/utils/http-status").ContentfulStatusCode;
1098
- input: {
1099
- param: {
1100
- id: string;
1101
- };
1102
- } & {
1103
- json: {
1104
- redirectUrl: string;
1105
- };
1106
- };
1107
- };
1108
- };
1109
- } & {
1110
- "/providers/sign-in/:id": {
1111
- $delete: {
1112
- output: {
1113
- error: string;
1114
- code?: "invalid_input" | undefined;
1115
- };
1116
- outputFormat: "json";
1117
- status: 400;
1118
- input: {
1119
- param: {
1120
- id: string;
1121
- };
1122
- };
1123
- } | {
1124
- output: {
1125
- error: string;
1126
- };
1127
- outputFormat: "json";
1128
- status: 404;
1129
- input: {
1130
- param: {
1131
- id: string;
1132
- };
1133
- };
1134
- } | {
1135
- output: {
1136
- id: string;
1137
- state: "waiting";
1138
- url: string;
1139
- } | {
1140
- id: string;
1141
- state: "cancelled" | "connected";
1142
- } | {
1143
- id: string;
1144
- state: "failed";
1145
- error: string;
1146
- };
1147
- outputFormat: "json";
1148
- status: import("hono/utils/http-status").ContentfulStatusCode;
1149
- input: {
1150
- param: {
1151
- id: string;
1152
- };
1153
- };
1154
- };
1155
- };
1156
944
  }, "/"> | import("hono/types").MergeSchemaPath<{
1157
945
  "/providers/status": {
1158
946
  $get: {
@@ -1672,6 +1460,223 @@ export declare function createApp(deps: ServerDeps): import("hono/hono-base").Ho
1672
1460
  };
1673
1461
  };
1674
1462
  };
1463
+ }, "/"> | import("hono/types").MergeSchemaPath<{
1464
+ "/providers/sign-in/start": {
1465
+ $post: {
1466
+ output: {
1467
+ error: string;
1468
+ };
1469
+ outputFormat: "json";
1470
+ status: 409;
1471
+ input: {
1472
+ json: {
1473
+ provider: string;
1474
+ profileId?: string | undefined;
1475
+ };
1476
+ };
1477
+ } | {
1478
+ output: {
1479
+ error: string;
1480
+ };
1481
+ outputFormat: "json";
1482
+ status: 400;
1483
+ input: {
1484
+ json: {
1485
+ provider: string;
1486
+ profileId?: string | undefined;
1487
+ };
1488
+ };
1489
+ } | {
1490
+ output: {
1491
+ id: string;
1492
+ state: "waiting";
1493
+ url: string;
1494
+ } | {
1495
+ id: string;
1496
+ state: "cancelled" | "connected";
1497
+ } | {
1498
+ id: string;
1499
+ state: "failed";
1500
+ error: string;
1501
+ };
1502
+ outputFormat: "json";
1503
+ status: import("hono/utils/http-status").ContentfulStatusCode;
1504
+ input: {
1505
+ json: {
1506
+ provider: string;
1507
+ profileId?: string | undefined;
1508
+ };
1509
+ };
1510
+ };
1511
+ };
1512
+ } & {
1513
+ "/providers/sign-in/:id": {
1514
+ $get: {
1515
+ output: {
1516
+ error: string;
1517
+ code?: "invalid_input" | undefined;
1518
+ };
1519
+ outputFormat: "json";
1520
+ status: 400;
1521
+ input: {
1522
+ param: {
1523
+ id: string;
1524
+ };
1525
+ };
1526
+ } | {
1527
+ output: {
1528
+ error: string;
1529
+ };
1530
+ outputFormat: "json";
1531
+ status: 404;
1532
+ input: {
1533
+ param: {
1534
+ id: string;
1535
+ };
1536
+ };
1537
+ } | {
1538
+ output: {
1539
+ id: string;
1540
+ state: "waiting";
1541
+ url: string;
1542
+ } | {
1543
+ id: string;
1544
+ state: "cancelled" | "connected";
1545
+ } | {
1546
+ id: string;
1547
+ state: "failed";
1548
+ error: string;
1549
+ };
1550
+ outputFormat: "json";
1551
+ status: import("hono/utils/http-status").ContentfulStatusCode;
1552
+ input: {
1553
+ param: {
1554
+ id: string;
1555
+ };
1556
+ };
1557
+ };
1558
+ };
1559
+ } & {
1560
+ "/providers/sign-in/:id/redirect": {
1561
+ $post: {
1562
+ output: {
1563
+ error: string;
1564
+ code?: "invalid_input" | undefined;
1565
+ };
1566
+ outputFormat: "json";
1567
+ status: 400;
1568
+ input: {
1569
+ param: {
1570
+ id: string;
1571
+ };
1572
+ } & {
1573
+ json: {
1574
+ redirectUrl: string;
1575
+ };
1576
+ };
1577
+ } | {
1578
+ output: {
1579
+ error: string;
1580
+ };
1581
+ outputFormat: "json";
1582
+ status: 404;
1583
+ input: {
1584
+ param: {
1585
+ id: string;
1586
+ };
1587
+ } & {
1588
+ json: {
1589
+ redirectUrl: string;
1590
+ };
1591
+ };
1592
+ } | {
1593
+ output: {
1594
+ error: string;
1595
+ };
1596
+ outputFormat: "json";
1597
+ status: 409;
1598
+ input: {
1599
+ param: {
1600
+ id: string;
1601
+ };
1602
+ } & {
1603
+ json: {
1604
+ redirectUrl: string;
1605
+ };
1606
+ };
1607
+ } | {
1608
+ output: {
1609
+ id: string;
1610
+ state: "waiting";
1611
+ url: string;
1612
+ } | {
1613
+ id: string;
1614
+ state: "cancelled" | "connected";
1615
+ } | {
1616
+ id: string;
1617
+ state: "failed";
1618
+ error: string;
1619
+ };
1620
+ outputFormat: "json";
1621
+ status: import("hono/utils/http-status").ContentfulStatusCode;
1622
+ input: {
1623
+ param: {
1624
+ id: string;
1625
+ };
1626
+ } & {
1627
+ json: {
1628
+ redirectUrl: string;
1629
+ };
1630
+ };
1631
+ };
1632
+ };
1633
+ } & {
1634
+ "/providers/sign-in/:id": {
1635
+ $delete: {
1636
+ output: {
1637
+ error: string;
1638
+ code?: "invalid_input" | undefined;
1639
+ };
1640
+ outputFormat: "json";
1641
+ status: 400;
1642
+ input: {
1643
+ param: {
1644
+ id: string;
1645
+ };
1646
+ };
1647
+ } | {
1648
+ output: {
1649
+ error: string;
1650
+ };
1651
+ outputFormat: "json";
1652
+ status: 404;
1653
+ input: {
1654
+ param: {
1655
+ id: string;
1656
+ };
1657
+ };
1658
+ } | {
1659
+ output: {
1660
+ id: string;
1661
+ state: "waiting";
1662
+ url: string;
1663
+ } | {
1664
+ id: string;
1665
+ state: "cancelled" | "connected";
1666
+ } | {
1667
+ id: string;
1668
+ state: "failed";
1669
+ error: string;
1670
+ };
1671
+ outputFormat: "json";
1672
+ status: import("hono/utils/http-status").ContentfulStatusCode;
1673
+ input: {
1674
+ param: {
1675
+ id: string;
1676
+ };
1677
+ };
1678
+ };
1679
+ };
1675
1680
  }, "/"> | import("hono/types").MergeSchemaPath<{
1676
1681
  "/workspace/agent-profiles": {
1677
1682
  $get: {
@@ -3144,6 +3149,12 @@ export declare function createApp(deps: ServerDeps): import("hono/hono-base").Ho
3144
3149
  output: {
3145
3150
  generation: string;
3146
3151
  results: ({
3152
+ projectId: string;
3153
+ runId: string;
3154
+ type: "error" | "reset";
3155
+ status: 400 | 404 | 409 | 413 | 503;
3156
+ error: string;
3157
+ } | {
3147
3158
  projectId: string;
3148
3159
  runId: string;
3149
3160
  type: "batch";
@@ -3164,12 +3175,6 @@ export declare function createApp(deps: ServerDeps): import("hono/hono-base").Ho
3164
3175
  cursor: string;
3165
3176
  afterSeq: number;
3166
3177
  hasMore: boolean;
3167
- } | {
3168
- projectId: string;
3169
- runId: string;
3170
- type: "error" | "reset";
3171
- status: 400 | 404 | 409 | 413 | 503;
3172
- error: string;
3173
3178
  })[];
3174
3179
  };
3175
3180
  outputFormat: "json";
@@ -3474,59 +3479,6 @@ export declare function createApp(deps: ServerDeps): import("hono/hono-base").Ho
3474
3479
  };
3475
3480
  };
3476
3481
  };
3477
- }, "/"> | import("hono/types").MergeSchemaPath<{
3478
- "/open-targets": {
3479
- $get: {
3480
- output: {
3481
- targets: {
3482
- id: string;
3483
- label: string;
3484
- icon?: string;
3485
- }[];
3486
- };
3487
- outputFormat: "json";
3488
- status: import("hono/utils/http-status").ContentfulStatusCode;
3489
- input: {};
3490
- };
3491
- };
3492
- } & {
3493
- "/open-in": {
3494
- $post: {
3495
- output: {
3496
- error: string;
3497
- };
3498
- outputFormat: "json";
3499
- status: 409;
3500
- input: {
3501
- json: {
3502
- target: string;
3503
- };
3504
- };
3505
- } | {
3506
- output: {
3507
- error: string;
3508
- };
3509
- outputFormat: "json";
3510
- status: 400;
3511
- input: {
3512
- json: {
3513
- target: string;
3514
- };
3515
- };
3516
- } | {
3517
- output: {
3518
- opened: true;
3519
- path: string;
3520
- };
3521
- outputFormat: "json";
3522
- status: import("hono/utils/http-status").ContentfulStatusCode;
3523
- input: {
3524
- json: {
3525
- target: string;
3526
- };
3527
- };
3528
- };
3529
- };
3530
3482
  }, "/"> | import("hono/types").MergeSchemaPath<{
3531
3483
  "/ui-state": {
3532
3484
  $get: {
@@ -3963,19 +3915,84 @@ export declare function createApp(deps: ServerDeps): import("hono/hono-base").Ho
3963
3915
  };
3964
3916
  };
3965
3917
  }, "/"> | import("hono/types").MergeSchemaPath<{
3966
- "/reports/state": {
3918
+ "/open-targets": {
3967
3919
  $get: {
3920
+ output: {
3921
+ targets: {
3922
+ id: string;
3923
+ label: string;
3924
+ icon?: string;
3925
+ }[];
3926
+ };
3927
+ outputFormat: "json";
3928
+ status: import("hono/utils/http-status").ContentfulStatusCode;
3929
+ input: {};
3930
+ };
3931
+ };
3932
+ } & {
3933
+ "/open-in": {
3934
+ $post: {
3968
3935
  output: {
3969
3936
  error: string;
3970
3937
  };
3971
3938
  outputFormat: "json";
3972
3939
  status: 409;
3973
- input: {};
3940
+ input: {
3941
+ json: {
3942
+ target: string;
3943
+ };
3944
+ };
3945
+ } | {
3946
+ output: {
3947
+ error: string;
3948
+ };
3949
+ outputFormat: "json";
3950
+ status: 400;
3951
+ input: {
3952
+ json: {
3953
+ target: string;
3954
+ };
3955
+ };
3974
3956
  } | {
3975
3957
  output: {
3976
- epoch: string;
3977
- generation: number;
3978
- metadataGeneration: number;
3958
+ opened: true;
3959
+ path: string;
3960
+ };
3961
+ outputFormat: "json";
3962
+ status: import("hono/utils/http-status").ContentfulStatusCode;
3963
+ input: {
3964
+ json: {
3965
+ target: string;
3966
+ };
3967
+ };
3968
+ };
3969
+ };
3970
+ }, "/"> | import("hono/types").MergeSchemaPath<{
3971
+ "/agent-config": {
3972
+ $get: {
3973
+ output: {
3974
+ editable: boolean;
3975
+ files: {
3976
+ id: string;
3977
+ runners: string[];
3978
+ kind: import("../core/runner-config-files.ts").ConfigFileDef['kind'];
3979
+ scope: import("../core/runner-config-files.ts").ConfigFileDef['scope'];
3980
+ label: string;
3981
+ path: string;
3982
+ format: import("../core/runner-config-files.ts").ConfigFileDef['format'];
3983
+ tracked: import("../core/runner-config-files.ts").ConfigFileDef['tracked'];
3984
+ seeded: boolean;
3985
+ holdsMcp: boolean;
3986
+ precedence: string;
3987
+ hotReload?: string;
3988
+ docsUrl: string;
3989
+ exists: boolean;
3990
+ size: number;
3991
+ version: string | null;
3992
+ writable: boolean;
3993
+ readOnlyReason?: string;
3994
+ }[];
3995
+ userMcp: import("../agent-config/service.ts").UserMcpListing | null;
3979
3996
  };
3980
3997
  outputFormat: "json";
3981
3998
  status: import("hono/utils/http-status").ContentfulStatusCode;
@@ -3983,19 +4000,16 @@ export declare function createApp(deps: ServerDeps): import("hono/hono-base").Ho
3983
4000
  };
3984
4001
  };
3985
4002
  } & {
3986
- "/reports": {
4003
+ "/agent-config/:id": {
3987
4004
  $get: {
3988
4005
  output: {
3989
4006
  error: string;
3990
- code?: "invalid_input" | undefined;
3991
4007
  };
3992
4008
  outputFormat: "json";
3993
- status: 400;
4009
+ status: 404;
3994
4010
  input: {
3995
- query: {
3996
- q?: string | undefined;
3997
- before?: string | undefined;
3998
- limit?: number | undefined;
4011
+ param: {
4012
+ id: string;
3999
4013
  };
4000
4014
  };
4001
4015
  } | {
@@ -4005,10 +4019,8 @@ export declare function createApp(deps: ServerDeps): import("hono/hono-base").Ho
4005
4019
  outputFormat: "json";
4006
4020
  status: 409;
4007
4021
  input: {
4008
- query: {
4009
- q?: string | undefined;
4010
- before?: string | undefined;
4011
- limit?: number | undefined;
4022
+ param: {
4023
+ id: string;
4012
4024
  };
4013
4025
  };
4014
4026
  } | {
@@ -4016,36 +4028,81 @@ export declare function createApp(deps: ServerDeps): import("hono/hono-base").Ho
4016
4028
  error: string;
4017
4029
  };
4018
4030
  outputFormat: "json";
4019
- status: 400;
4031
+ status: 500;
4020
4032
  input: {
4021
- query: {
4022
- q?: string | undefined;
4023
- before?: string | undefined;
4024
- limit?: number | undefined;
4033
+ param: {
4034
+ id: string;
4025
4035
  };
4026
4036
  };
4027
4037
  } | {
4028
4038
  output: {
4029
- reports: {
4039
+ id: string;
4040
+ path: string;
4041
+ exists: boolean;
4042
+ content: string;
4043
+ version: string | null;
4044
+ };
4045
+ outputFormat: "json";
4046
+ status: import("hono/utils/http-status").ContentfulStatusCode;
4047
+ input: {
4048
+ param: {
4030
4049
  id: string;
4031
- runId: string;
4032
- name: string;
4033
- title: string;
4034
- createdAt: string;
4035
- size: number;
4036
- taskTitle: string;
4037
- taskStatus: "cancelled" | "done" | "failed" | "queued" | "review" | "running" | "waiting";
4038
- }[];
4039
- nextCursor: string | null;
4040
- total: number;
4050
+ };
4051
+ };
4052
+ };
4053
+ };
4054
+ } & {
4055
+ "/agent-config/:id": {
4056
+ $put: {
4057
+ output: {
4058
+ id: string;
4059
+ path: string;
4060
+ exists: boolean;
4061
+ content: string;
4062
+ version: string | null;
4041
4063
  };
4042
4064
  outputFormat: "json";
4043
4065
  status: import("hono/utils/http-status").ContentfulStatusCode;
4044
4066
  input: {
4045
- query: {
4046
- q?: string | undefined;
4047
- before?: string | undefined;
4048
- limit?: number | undefined;
4067
+ json: {
4068
+ content: string;
4069
+ version: string | null;
4070
+ };
4071
+ } & {
4072
+ param: {
4073
+ id: string;
4074
+ };
4075
+ };
4076
+ } | {
4077
+ output: {
4078
+ error: string;
4079
+ };
4080
+ outputFormat: "json";
4081
+ status: 404;
4082
+ input: {
4083
+ json: {
4084
+ content: string;
4085
+ version: string | null;
4086
+ };
4087
+ } & {
4088
+ param: {
4089
+ id: string;
4090
+ };
4091
+ };
4092
+ } | {
4093
+ output: {
4094
+ error: string;
4095
+ };
4096
+ outputFormat: "json";
4097
+ status: 400 | 409 | 500;
4098
+ input: {
4099
+ json: {
4100
+ content: string;
4101
+ version: string | null;
4102
+ };
4103
+ } & {
4104
+ param: {
4105
+ id: string;
4049
4106
  };
4050
4107
  };
4051
4108
  };
@@ -4152,146 +4209,6 @@ export declare function createApp(deps: ServerDeps): import("hono/hono-base").Ho
4152
4209
  };
4153
4210
  };
4154
4211
  };
4155
- }, "/"> | import("hono/types").MergeSchemaPath<{
4156
- "/agent-config": {
4157
- $get: {
4158
- output: {
4159
- editable: boolean;
4160
- files: {
4161
- id: string;
4162
- runners: string[];
4163
- kind: import("../core/runner-config-files.ts").ConfigFileDef['kind'];
4164
- scope: import("../core/runner-config-files.ts").ConfigFileDef['scope'];
4165
- label: string;
4166
- path: string;
4167
- format: import("../core/runner-config-files.ts").ConfigFileDef['format'];
4168
- tracked: import("../core/runner-config-files.ts").ConfigFileDef['tracked'];
4169
- seeded: boolean;
4170
- holdsMcp: boolean;
4171
- precedence: string;
4172
- hotReload?: string;
4173
- docsUrl: string;
4174
- exists: boolean;
4175
- size: number;
4176
- version: string | null;
4177
- writable: boolean;
4178
- readOnlyReason?: string;
4179
- }[];
4180
- userMcp: import("../agent-config/service.ts").UserMcpListing | null;
4181
- };
4182
- outputFormat: "json";
4183
- status: import("hono/utils/http-status").ContentfulStatusCode;
4184
- input: {};
4185
- };
4186
- };
4187
- } & {
4188
- "/agent-config/:id": {
4189
- $get: {
4190
- output: {
4191
- error: string;
4192
- };
4193
- outputFormat: "json";
4194
- status: 404;
4195
- input: {
4196
- param: {
4197
- id: string;
4198
- };
4199
- };
4200
- } | {
4201
- output: {
4202
- error: string;
4203
- };
4204
- outputFormat: "json";
4205
- status: 409;
4206
- input: {
4207
- param: {
4208
- id: string;
4209
- };
4210
- };
4211
- } | {
4212
- output: {
4213
- error: string;
4214
- };
4215
- outputFormat: "json";
4216
- status: 500;
4217
- input: {
4218
- param: {
4219
- id: string;
4220
- };
4221
- };
4222
- } | {
4223
- output: {
4224
- id: string;
4225
- path: string;
4226
- exists: boolean;
4227
- content: string;
4228
- version: string | null;
4229
- };
4230
- outputFormat: "json";
4231
- status: import("hono/utils/http-status").ContentfulStatusCode;
4232
- input: {
4233
- param: {
4234
- id: string;
4235
- };
4236
- };
4237
- };
4238
- };
4239
- } & {
4240
- "/agent-config/:id": {
4241
- $put: {
4242
- output: {
4243
- id: string;
4244
- path: string;
4245
- exists: boolean;
4246
- content: string;
4247
- version: string | null;
4248
- };
4249
- outputFormat: "json";
4250
- status: import("hono/utils/http-status").ContentfulStatusCode;
4251
- input: {
4252
- json: {
4253
- content: string;
4254
- version: string | null;
4255
- };
4256
- } & {
4257
- param: {
4258
- id: string;
4259
- };
4260
- };
4261
- } | {
4262
- output: {
4263
- error: string;
4264
- };
4265
- outputFormat: "json";
4266
- status: 404;
4267
- input: {
4268
- json: {
4269
- content: string;
4270
- version: string | null;
4271
- };
4272
- } & {
4273
- param: {
4274
- id: string;
4275
- };
4276
- };
4277
- } | {
4278
- output: {
4279
- error: string;
4280
- };
4281
- outputFormat: "json";
4282
- status: 400 | 409 | 500;
4283
- input: {
4284
- json: {
4285
- content: string;
4286
- version: string | null;
4287
- };
4288
- } & {
4289
- param: {
4290
- id: string;
4291
- };
4292
- };
4293
- };
4294
- };
4295
4212
  }, "/"> | import("hono/types").MergeSchemaPath<{
4296
4213
  "/session-context": {
4297
4214
  $get: {
@@ -5618,21 +5535,6 @@ export declare function createApp(deps: ServerDeps): import("hono/hono-base").Ho
5618
5535
  sha: string;
5619
5536
  };
5620
5537
  };
5621
- } | {
5622
- output: {
5623
- error: string;
5624
- };
5625
- outputFormat: "json";
5626
- status: 409;
5627
- input: {
5628
- query: {
5629
- structured?: string | undefined;
5630
- };
5631
- } & {
5632
- param: {
5633
- sha: string;
5634
- };
5635
- };
5636
5538
  } | {
5637
5539
  output: {
5638
5540
  sha: string;
@@ -5666,6 +5568,21 @@ export declare function createApp(deps: ServerDeps): import("hono/hono-base").Ho
5666
5568
  sha: string;
5667
5569
  };
5668
5570
  };
5571
+ } | {
5572
+ output: {
5573
+ error: string;
5574
+ };
5575
+ outputFormat: "json";
5576
+ status: 409;
5577
+ input: {
5578
+ query: {
5579
+ structured?: string | undefined;
5580
+ };
5581
+ } & {
5582
+ param: {
5583
+ sha: string;
5584
+ };
5585
+ };
5669
5586
  };
5670
5587
  };
5671
5588
  } & {
@@ -5769,13 +5686,6 @@ export declare function createApp(deps: ServerDeps): import("hono/hono-base").Ho
5769
5686
  } & {
5770
5687
  "/repo/changes": {
5771
5688
  $get: {
5772
- output: {
5773
- error: string;
5774
- };
5775
- outputFormat: "json";
5776
- status: 409;
5777
- input: {};
5778
- } | {
5779
5689
  output: {
5780
5690
  files: {
5781
5691
  path: string;
@@ -5800,6 +5710,13 @@ export declare function createApp(deps: ServerDeps): import("hono/hono-base").Ho
5800
5710
  outputFormat: "json";
5801
5711
  status: import("hono/utils/http-status").ContentfulStatusCode;
5802
5712
  input: {};
5713
+ } | {
5714
+ output: {
5715
+ error: string;
5716
+ };
5717
+ outputFormat: "json";
5718
+ status: 409;
5719
+ input: {};
5803
5720
  };
5804
5721
  };
5805
5722
  } & {
@@ -7576,11 +7493,22 @@ export declare function createApp(deps: ServerDeps): import("hono/hono-base").Ho
7576
7493
  "/runs/:id/worker-destroy": {
7577
7494
  $post: {
7578
7495
  output: {
7579
- error: string;
7580
- code?: "invalid_input" | undefined;
7496
+ readonly code: "capacity_limit" | "denied_scope" | "incompatible_state" | "incomplete_cleanup" | "invalid_baseline" | "invalid_input" | "unauthenticated" | "unavailable_diff" | "unavailable_transport";
7497
+ readonly error: string;
7498
+ readonly modelChoices?: {
7499
+ runner: string;
7500
+ requestedModel: string;
7501
+ availableModels: {
7502
+ id: string;
7503
+ label: string;
7504
+ description: string;
7505
+ effortLevels?: ("high" | "low" | "max" | "medium" | "xhigh")[] | undefined;
7506
+ }[];
7507
+ otherRunners: string[];
7508
+ } | undefined;
7581
7509
  };
7582
7510
  outputFormat: "json";
7583
- status: 400;
7511
+ status: 400 | 401 | 403 | 409 | 503;
7584
7512
  input: {
7585
7513
  query: {
7586
7514
  [x: string]: string | string[];
@@ -7596,22 +7524,11 @@ export declare function createApp(deps: ServerDeps): import("hono/hono-base").Ho
7596
7524
  };
7597
7525
  } | {
7598
7526
  output: {
7599
- readonly code: "capacity_limit" | "denied_scope" | "incompatible_state" | "incomplete_cleanup" | "invalid_baseline" | "invalid_input" | "unauthenticated" | "unavailable_diff" | "unavailable_transport";
7600
- readonly error: string;
7601
- readonly modelChoices?: {
7602
- runner: string;
7603
- requestedModel: string;
7604
- availableModels: {
7605
- id: string;
7606
- label: string;
7607
- description: string;
7608
- effortLevels?: ("high" | "low" | "max" | "medium" | "xhigh")[] | undefined;
7609
- }[];
7610
- otherRunners: string[];
7611
- } | undefined;
7527
+ error: string;
7528
+ code?: "invalid_input" | undefined;
7612
7529
  };
7613
7530
  outputFormat: "json";
7614
- status: 400 | 401 | 403 | 409 | 503;
7531
+ status: 400;
7615
7532
  input: {
7616
7533
  query: {
7617
7534
  [x: string]: string | string[];
@@ -18121,7 +18038,7 @@ export declare function createApp(deps: ServerDeps): import("hono/hono-base").Ho
18121
18038
  error: string;
18122
18039
  };
18123
18040
  outputFormat: "json";
18124
- status: 404 | 409;
18041
+ status: 400;
18125
18042
  input: {
18126
18043
  json: {
18127
18044
  target: string;
@@ -18134,10 +18051,11 @@ export declare function createApp(deps: ServerDeps): import("hono/hono-base").Ho
18134
18051
  };
18135
18052
  } | {
18136
18053
  output: {
18137
- error: string;
18054
+ opened: true;
18055
+ path: string;
18138
18056
  };
18139
18057
  outputFormat: "json";
18140
- status: 400;
18058
+ status: import("hono/utils/http-status").ContentfulStatusCode;
18141
18059
  input: {
18142
18060
  json: {
18143
18061
  target: string;
@@ -18150,11 +18068,10 @@ export declare function createApp(deps: ServerDeps): import("hono/hono-base").Ho
18150
18068
  };
18151
18069
  } | {
18152
18070
  output: {
18153
- opened: true;
18154
- path: string;
18071
+ error: string;
18155
18072
  };
18156
18073
  outputFormat: "json";
18157
- status: import("hono/utils/http-status").ContentfulStatusCode;
18074
+ status: 404 | 409;
18158
18075
  input: {
18159
18076
  json: {
18160
18077
  target: string;
@@ -18327,9 +18244,9 @@ export declare function createApp(deps: ServerDeps): import("hono/hono-base").Ho
18327
18244
  status: 404 | 409;
18328
18245
  input: {
18329
18246
  param: {
18330
- sha: string;
18331
- } & {
18332
18247
  id: string;
18248
+ } & {
18249
+ sha: string;
18333
18250
  };
18334
18251
  };
18335
18252
  } | {
@@ -18358,9 +18275,9 @@ export declare function createApp(deps: ServerDeps): import("hono/hono-base").Ho
18358
18275
  status: import("hono/utils/http-status").ContentfulStatusCode;
18359
18276
  input: {
18360
18277
  param: {
18361
- sha: string;
18362
- } & {
18363
18278
  id: string;
18279
+ } & {
18280
+ sha: string;
18364
18281
  };
18365
18282
  };
18366
18283
  };
@@ -19103,59 +19020,6 @@ export declare function createApp(deps: ServerDeps): import("hono/hono-base").Ho
19103
19020
  };
19104
19021
  };
19105
19022
  };
19106
- }, "/"> | import("hono/types").MergeSchemaPath<{
19107
- "/open-targets": {
19108
- $get: {
19109
- output: {
19110
- targets: {
19111
- id: string;
19112
- label: string;
19113
- icon?: string;
19114
- }[];
19115
- };
19116
- outputFormat: "json";
19117
- status: import("hono/utils/http-status").ContentfulStatusCode;
19118
- input: {};
19119
- };
19120
- };
19121
- } & {
19122
- "/open-in": {
19123
- $post: {
19124
- output: {
19125
- error: string;
19126
- };
19127
- outputFormat: "json";
19128
- status: 409;
19129
- input: {
19130
- json: {
19131
- target: string;
19132
- };
19133
- };
19134
- } | {
19135
- output: {
19136
- error: string;
19137
- };
19138
- outputFormat: "json";
19139
- status: 400;
19140
- input: {
19141
- json: {
19142
- target: string;
19143
- };
19144
- };
19145
- } | {
19146
- output: {
19147
- opened: true;
19148
- path: string;
19149
- };
19150
- outputFormat: "json";
19151
- status: import("hono/utils/http-status").ContentfulStatusCode;
19152
- input: {
19153
- json: {
19154
- target: string;
19155
- };
19156
- };
19157
- };
19158
- };
19159
19023
  }, "/"> | import("hono/types").MergeSchemaPath<{
19160
19024
  "/ui-state": {
19161
19025
  $get: {
@@ -19592,120 +19456,14 @@ export declare function createApp(deps: ServerDeps): import("hono/hono-base").Ho
19592
19456
  };
19593
19457
  };
19594
19458
  }, "/"> | import("hono/types").MergeSchemaPath<{
19595
- "/reports/state": {
19596
- $get: {
19597
- output: {
19598
- error: string;
19599
- };
19600
- outputFormat: "json";
19601
- status: 409;
19602
- input: {};
19603
- } | {
19604
- output: {
19605
- epoch: string;
19606
- generation: number;
19607
- metadataGeneration: number;
19608
- };
19609
- outputFormat: "json";
19610
- status: import("hono/utils/http-status").ContentfulStatusCode;
19611
- input: {};
19612
- };
19613
- };
19614
- } & {
19615
- "/reports": {
19459
+ "/open-targets": {
19616
19460
  $get: {
19617
19461
  output: {
19618
- error: string;
19619
- code?: "invalid_input" | undefined;
19620
- };
19621
- outputFormat: "json";
19622
- status: 400;
19623
- input: {
19624
- query: {
19625
- q?: string | undefined;
19626
- before?: string | undefined;
19627
- limit?: number | undefined;
19628
- };
19629
- };
19630
- } | {
19631
- output: {
19632
- error: string;
19633
- };
19634
- outputFormat: "json";
19635
- status: 409;
19636
- input: {
19637
- query: {
19638
- q?: string | undefined;
19639
- before?: string | undefined;
19640
- limit?: number | undefined;
19641
- };
19642
- };
19643
- } | {
19644
- output: {
19645
- error: string;
19646
- };
19647
- outputFormat: "json";
19648
- status: 400;
19649
- input: {
19650
- query: {
19651
- q?: string | undefined;
19652
- before?: string | undefined;
19653
- limit?: number | undefined;
19654
- };
19655
- };
19656
- } | {
19657
- output: {
19658
- reports: {
19462
+ targets: {
19659
19463
  id: string;
19660
- runId: string;
19661
- name: string;
19662
- title: string;
19663
- createdAt: string;
19664
- size: number;
19665
- taskTitle: string;
19666
- taskStatus: "cancelled" | "done" | "failed" | "queued" | "review" | "running" | "waiting";
19667
- }[];
19668
- nextCursor: string | null;
19669
- total: number;
19670
- };
19671
- outputFormat: "json";
19672
- status: import("hono/utils/http-status").ContentfulStatusCode;
19673
- input: {
19674
- query: {
19675
- q?: string | undefined;
19676
- before?: string | undefined;
19677
- limit?: number | undefined;
19678
- };
19679
- };
19680
- };
19681
- };
19682
- }, "/"> | import("hono/types").MergeSchemaPath<{
19683
- "/worktrees": {
19684
- $get: {
19685
- output: {
19686
- worktrees: {
19687
- runId: string;
19688
- title: string;
19689
- status: "cancelled" | "done" | "failed" | "queued" | "review" | "running" | "waiting";
19690
- branch: string | null;
19691
- sizeBytes: number | null;
19692
- finishedAt: string | null;
19693
- reclaimable: boolean;
19694
- pastKeep: boolean;
19695
- reclaimBlocker: {
19696
- kind: "dirty";
19697
- uncommittedFiles: number;
19698
- detachedHead: boolean;
19699
- } | {
19700
- kind: "detached-head";
19701
- } | {
19702
- kind: "submodules";
19703
- } | {
19704
- kind: "invalid";
19705
- } | null;
19464
+ label: string;
19465
+ icon?: string;
19706
19466
  }[];
19707
- totalBytes: number | null;
19708
- keep: number;
19709
19467
  };
19710
19468
  outputFormat: "json";
19711
19469
  status: import("hono/utils/http-status").ContentfulStatusCode;
@@ -19713,39 +19471,16 @@ export declare function createApp(deps: ServerDeps): import("hono/hono-base").Ho
19713
19471
  };
19714
19472
  };
19715
19473
  } & {
19716
- "/worktrees/reclaim": {
19717
- $post: {
19718
- output: {
19719
- reclaimed: string[];
19720
- };
19721
- outputFormat: "json";
19722
- status: import("hono/utils/http-status").ContentfulStatusCode;
19723
- input: {
19724
- json: {
19725
- discardWork: true;
19726
- runIds: string[];
19727
- } | {
19728
- discardWork?: false | undefined;
19729
- };
19730
- };
19731
- };
19732
- };
19733
- } & {
19734
- "/worktrees/:runId/reclaim": {
19474
+ "/open-in": {
19735
19475
  $post: {
19736
19476
  output: {
19737
19477
  error: string;
19738
- code?: "invalid_input" | undefined;
19739
19478
  };
19740
19479
  outputFormat: "json";
19741
- status: 400;
19480
+ status: 409;
19742
19481
  input: {
19743
- param: {
19744
- runId: string;
19745
- };
19746
- } & {
19747
19482
  json: {
19748
- discardWork?: boolean | undefined;
19483
+ target: string;
19749
19484
  };
19750
19485
  };
19751
19486
  } | {
@@ -19753,30 +19488,22 @@ export declare function createApp(deps: ServerDeps): import("hono/hono-base").Ho
19753
19488
  error: string;
19754
19489
  };
19755
19490
  outputFormat: "json";
19756
- status: 404 | 409;
19491
+ status: 400;
19757
19492
  input: {
19758
- param: {
19759
- runId: string;
19760
- };
19761
- } & {
19762
19493
  json: {
19763
- discardWork?: boolean | undefined;
19494
+ target: string;
19764
19495
  };
19765
19496
  };
19766
19497
  } | {
19767
19498
  output: {
19768
- runId: string;
19769
- worktreeReclaimedAt: string;
19499
+ opened: true;
19500
+ path: string;
19770
19501
  };
19771
19502
  outputFormat: "json";
19772
19503
  status: import("hono/utils/http-status").ContentfulStatusCode;
19773
19504
  input: {
19774
- param: {
19775
- runId: string;
19776
- };
19777
- } & {
19778
19505
  json: {
19779
- discardWork?: boolean | undefined;
19506
+ target: string;
19780
19507
  };
19781
19508
  };
19782
19509
  };
@@ -19921,6 +19648,108 @@ export declare function createApp(deps: ServerDeps): import("hono/hono-base").Ho
19921
19648
  };
19922
19649
  };
19923
19650
  };
19651
+ }, "/"> | import("hono/types").MergeSchemaPath<{
19652
+ "/worktrees": {
19653
+ $get: {
19654
+ output: {
19655
+ worktrees: {
19656
+ runId: string;
19657
+ title: string;
19658
+ status: "cancelled" | "done" | "failed" | "queued" | "review" | "running" | "waiting";
19659
+ branch: string | null;
19660
+ sizeBytes: number | null;
19661
+ finishedAt: string | null;
19662
+ reclaimable: boolean;
19663
+ pastKeep: boolean;
19664
+ reclaimBlocker: {
19665
+ kind: "dirty";
19666
+ uncommittedFiles: number;
19667
+ detachedHead: boolean;
19668
+ } | {
19669
+ kind: "detached-head";
19670
+ } | {
19671
+ kind: "submodules";
19672
+ } | {
19673
+ kind: "invalid";
19674
+ } | null;
19675
+ }[];
19676
+ totalBytes: number | null;
19677
+ keep: number;
19678
+ };
19679
+ outputFormat: "json";
19680
+ status: import("hono/utils/http-status").ContentfulStatusCode;
19681
+ input: {};
19682
+ };
19683
+ };
19684
+ } & {
19685
+ "/worktrees/reclaim": {
19686
+ $post: {
19687
+ output: {
19688
+ reclaimed: string[];
19689
+ };
19690
+ outputFormat: "json";
19691
+ status: import("hono/utils/http-status").ContentfulStatusCode;
19692
+ input: {
19693
+ json: {
19694
+ discardWork: true;
19695
+ runIds: string[];
19696
+ } | {
19697
+ discardWork?: false | undefined;
19698
+ };
19699
+ };
19700
+ };
19701
+ };
19702
+ } & {
19703
+ "/worktrees/:runId/reclaim": {
19704
+ $post: {
19705
+ output: {
19706
+ error: string;
19707
+ code?: "invalid_input" | undefined;
19708
+ };
19709
+ outputFormat: "json";
19710
+ status: 400;
19711
+ input: {
19712
+ param: {
19713
+ runId: string;
19714
+ };
19715
+ } & {
19716
+ json: {
19717
+ discardWork?: boolean | undefined;
19718
+ };
19719
+ };
19720
+ } | {
19721
+ output: {
19722
+ error: string;
19723
+ };
19724
+ outputFormat: "json";
19725
+ status: 404 | 409;
19726
+ input: {
19727
+ param: {
19728
+ runId: string;
19729
+ };
19730
+ } & {
19731
+ json: {
19732
+ discardWork?: boolean | undefined;
19733
+ };
19734
+ };
19735
+ } | {
19736
+ output: {
19737
+ runId: string;
19738
+ worktreeReclaimedAt: string;
19739
+ };
19740
+ outputFormat: "json";
19741
+ status: import("hono/utils/http-status").ContentfulStatusCode;
19742
+ input: {
19743
+ param: {
19744
+ runId: string;
19745
+ };
19746
+ } & {
19747
+ json: {
19748
+ discardWork?: boolean | undefined;
19749
+ };
19750
+ };
19751
+ };
19752
+ };
19924
19753
  }, "/"> | import("hono/types").MergeSchemaPath<{
19925
19754
  "/session-context": {
19926
19755
  $get: {
@@ -21247,21 +21076,6 @@ export declare function createApp(deps: ServerDeps): import("hono/hono-base").Ho
21247
21076
  sha: string;
21248
21077
  };
21249
21078
  };
21250
- } | {
21251
- output: {
21252
- error: string;
21253
- };
21254
- outputFormat: "json";
21255
- status: 409;
21256
- input: {
21257
- query: {
21258
- structured?: string | undefined;
21259
- };
21260
- } & {
21261
- param: {
21262
- sha: string;
21263
- };
21264
- };
21265
21079
  } | {
21266
21080
  output: {
21267
21081
  sha: string;
@@ -21295,6 +21109,21 @@ export declare function createApp(deps: ServerDeps): import("hono/hono-base").Ho
21295
21109
  sha: string;
21296
21110
  };
21297
21111
  };
21112
+ } | {
21113
+ output: {
21114
+ error: string;
21115
+ };
21116
+ outputFormat: "json";
21117
+ status: 409;
21118
+ input: {
21119
+ query: {
21120
+ structured?: string | undefined;
21121
+ };
21122
+ } & {
21123
+ param: {
21124
+ sha: string;
21125
+ };
21126
+ };
21298
21127
  };
21299
21128
  };
21300
21129
  } & {
@@ -21398,13 +21227,6 @@ export declare function createApp(deps: ServerDeps): import("hono/hono-base").Ho
21398
21227
  } & {
21399
21228
  "/repo/changes": {
21400
21229
  $get: {
21401
- output: {
21402
- error: string;
21403
- };
21404
- outputFormat: "json";
21405
- status: 409;
21406
- input: {};
21407
- } | {
21408
21230
  output: {
21409
21231
  files: {
21410
21232
  path: string;
@@ -21429,6 +21251,13 @@ export declare function createApp(deps: ServerDeps): import("hono/hono-base").Ho
21429
21251
  outputFormat: "json";
21430
21252
  status: import("hono/utils/http-status").ContentfulStatusCode;
21431
21253
  input: {};
21254
+ } | {
21255
+ output: {
21256
+ error: string;
21257
+ };
21258
+ outputFormat: "json";
21259
+ status: 409;
21260
+ input: {};
21432
21261
  };
21433
21262
  };
21434
21263
  } & {
@@ -23205,11 +23034,22 @@ export declare function createApp(deps: ServerDeps): import("hono/hono-base").Ho
23205
23034
  "/runs/:id/worker-destroy": {
23206
23035
  $post: {
23207
23036
  output: {
23208
- error: string;
23209
- code?: "invalid_input" | undefined;
23037
+ readonly code: "capacity_limit" | "denied_scope" | "incompatible_state" | "incomplete_cleanup" | "invalid_baseline" | "invalid_input" | "unauthenticated" | "unavailable_diff" | "unavailable_transport";
23038
+ readonly error: string;
23039
+ readonly modelChoices?: {
23040
+ runner: string;
23041
+ requestedModel: string;
23042
+ availableModels: {
23043
+ id: string;
23044
+ label: string;
23045
+ description: string;
23046
+ effortLevels?: ("high" | "low" | "max" | "medium" | "xhigh")[] | undefined;
23047
+ }[];
23048
+ otherRunners: string[];
23049
+ } | undefined;
23210
23050
  };
23211
23051
  outputFormat: "json";
23212
- status: 400;
23052
+ status: 400 | 401 | 403 | 409 | 503;
23213
23053
  input: {
23214
23054
  query: {
23215
23055
  [x: string]: string | string[];
@@ -23225,22 +23065,11 @@ export declare function createApp(deps: ServerDeps): import("hono/hono-base").Ho
23225
23065
  };
23226
23066
  } | {
23227
23067
  output: {
23228
- readonly code: "capacity_limit" | "denied_scope" | "incompatible_state" | "incomplete_cleanup" | "invalid_baseline" | "invalid_input" | "unauthenticated" | "unavailable_diff" | "unavailable_transport";
23229
- readonly error: string;
23230
- readonly modelChoices?: {
23231
- runner: string;
23232
- requestedModel: string;
23233
- availableModels: {
23234
- id: string;
23235
- label: string;
23236
- description: string;
23237
- effortLevels?: ("high" | "low" | "max" | "medium" | "xhigh")[] | undefined;
23238
- }[];
23239
- otherRunners: string[];
23240
- } | undefined;
23068
+ error: string;
23069
+ code?: "invalid_input" | undefined;
23241
23070
  };
23242
23071
  outputFormat: "json";
23243
- status: 400 | 401 | 403 | 409 | 503;
23072
+ status: 400;
23244
23073
  input: {
23245
23074
  query: {
23246
23075
  [x: string]: string | string[];
@@ -33750,7 +33579,7 @@ export declare function createApp(deps: ServerDeps): import("hono/hono-base").Ho
33750
33579
  error: string;
33751
33580
  };
33752
33581
  outputFormat: "json";
33753
- status: 404 | 409;
33582
+ status: 400;
33754
33583
  input: {
33755
33584
  json: {
33756
33585
  target: string;
@@ -33763,10 +33592,11 @@ export declare function createApp(deps: ServerDeps): import("hono/hono-base").Ho
33763
33592
  };
33764
33593
  } | {
33765
33594
  output: {
33766
- error: string;
33595
+ opened: true;
33596
+ path: string;
33767
33597
  };
33768
33598
  outputFormat: "json";
33769
- status: 400;
33599
+ status: import("hono/utils/http-status").ContentfulStatusCode;
33770
33600
  input: {
33771
33601
  json: {
33772
33602
  target: string;
@@ -33779,11 +33609,10 @@ export declare function createApp(deps: ServerDeps): import("hono/hono-base").Ho
33779
33609
  };
33780
33610
  } | {
33781
33611
  output: {
33782
- opened: true;
33783
- path: string;
33612
+ error: string;
33784
33613
  };
33785
33614
  outputFormat: "json";
33786
- status: import("hono/utils/http-status").ContentfulStatusCode;
33615
+ status: 404 | 409;
33787
33616
  input: {
33788
33617
  json: {
33789
33618
  target: string;
@@ -33956,9 +33785,9 @@ export declare function createApp(deps: ServerDeps): import("hono/hono-base").Ho
33956
33785
  status: 404 | 409;
33957
33786
  input: {
33958
33787
  param: {
33959
- sha: string;
33960
- } & {
33961
33788
  id: string;
33789
+ } & {
33790
+ sha: string;
33962
33791
  };
33963
33792
  };
33964
33793
  } | {
@@ -33987,9 +33816,9 @@ export declare function createApp(deps: ServerDeps): import("hono/hono-base").Ho
33987
33816
  status: import("hono/utils/http-status").ContentfulStatusCode;
33988
33817
  input: {
33989
33818
  param: {
33990
- sha: string;
33991
- } & {
33992
33819
  id: string;
33820
+ } & {
33821
+ sha: string;
33993
33822
  };
33994
33823
  };
33995
33824
  };
@@ -34622,7 +34451,5 @@ export declare function createApp(deps: ServerDeps): import("hono/hono-base").Ho
34622
34451
  };
34623
34452
  };
34624
34453
  }, "/">, "/api/v1/p/:projectId">, "/", "/">;
34625
- /** The host a thread link names (#589): the bound one, or loopback for a wildcard bind. */
34626
- /** The built-in skills a project's manager offers (#774). Test apps inject partial managers. */
34627
34454
  export { cockpitOriginFor } from './server-deps.ts';
34628
34455
  export { verifyWsUpgrade } from './ws.ts';