@hearsay-tools/squawk 0.19.0-dev.9075 → 0.19.0-dev.9086

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.d.ts +1 -1
  2. package/dist/boot.js +3 -1
  3. package/dist/boot.js.map +1 -1
  4. package/dist/built-in-cli-commands.js +1 -1
  5. package/dist/built-in-cli-commands.js.map +1 -1
  6. package/dist/built-in-launch-parts.js +1 -1
  7. package/dist/built-in-launch-parts.js.map +1 -1
  8. package/dist/built-in-run-slots.d.ts +1 -1
  9. package/dist/built-in-run-slots.js +7 -3
  10. package/dist/built-in-run-slots.js.map +1 -1
  11. package/dist/core/live-topic-registry.d.ts +29 -0
  12. package/dist/core/live-topic-registry.js +68 -0
  13. package/dist/core/live-topic-registry.js.map +1 -0
  14. package/dist/core/server-hook-registry.d.ts +2 -0
  15. package/dist/core/server-hook-registry.js.map +1 -1
  16. package/dist/delegation/results.js +4 -3
  17. package/dist/delegation/results.js.map +1 -1
  18. package/dist/delegation/routes.d.ts +15 -15
  19. package/dist/delegation/transport.d.ts +10 -10
  20. package/dist/features/reports/capability.d.ts +3 -0
  21. package/dist/features/reports/capability.js +6 -0
  22. package/dist/features/reports/capability.js.map +1 -0
  23. package/dist/features/reports/index.d.ts +13 -0
  24. package/dist/features/reports/index.js +12 -0
  25. package/dist/features/reports/index.js.map +1 -0
  26. package/dist/features/reports/live-topic.d.ts +5 -0
  27. package/dist/{server/reports-topic.js → features/reports/live-topic.js} +10 -7
  28. package/dist/features/reports/live-topic.js.map +1 -0
  29. package/dist/{artifacts → features/reports}/reports-index.d.ts +5 -5
  30. package/dist/{artifacts → features/reports}/reports-index.js +8 -9
  31. package/dist/features/reports/reports-index.js.map +1 -0
  32. package/dist/{artifacts → features/reports}/reports-watch.d.ts +3 -3
  33. package/dist/{artifacts → features/reports}/reports-watch.js +2 -2
  34. package/dist/features/reports/reports-watch.js.map +1 -0
  35. package/dist/{server/reports-api.d.ts → features/reports/routes.d.ts} +6 -2
  36. package/dist/features/reports/routes.js +32 -0
  37. package/dist/features/reports/routes.js.map +1 -0
  38. package/dist/features/reports/server-hook.d.ts +8 -0
  39. package/dist/features/reports/server-hook.js +25 -0
  40. package/dist/features/reports/server-hook.js.map +1 -0
  41. package/dist/plugin/api.d.ts +3 -0
  42. package/dist/plugin/api.js +10 -1
  43. package/dist/plugin/api.js.map +1 -1
  44. package/dist/plugin/cli.js +1 -1
  45. package/dist/plugin/cli.js.map +1 -1
  46. package/dist/plugin/index.d.ts +1 -0
  47. package/dist/plugin/index.js.map +1 -1
  48. package/dist/runs/run-archive.d.ts +72 -72
  49. package/dist/server/activity-routes.js +0 -2
  50. package/dist/server/activity-routes.js.map +1 -1
  51. package/dist/{artifacts/resolve.js → server/file-link.js} +3 -3
  52. package/dist/server/file-link.js.map +1 -0
  53. package/dist/server/plugin-live-topics.d.ts +18 -0
  54. package/dist/server/plugin-live-topics.js +120 -0
  55. package/dist/server/plugin-live-topics.js.map +1 -0
  56. package/dist/server/project-context.js +0 -2
  57. package/dist/server/project-context.js.map +1 -1
  58. package/dist/server/project-run-files.js +1 -1
  59. package/dist/server/project-run-files.js.map +1 -1
  60. package/dist/server/repo-routes.d.ts +13 -13
  61. package/dist/server/runs-routes.d.ts +20 -20
  62. package/dist/server/runs-routes.js +2 -2
  63. package/dist/server/runs-routes.js.map +1 -1
  64. package/dist/server/server.d.ts +309 -482
  65. package/dist/server/server.js +3 -4
  66. package/dist/server/server.js.map +1 -1
  67. package/dist/server/start-server.js +6 -3
  68. package/dist/server/start-server.js.map +1 -1
  69. package/dist/{artifacts/cli.js → task-files/artifact-cli.js} +2 -2
  70. package/dist/task-files/artifact-cli.js.map +1 -0
  71. package/dist/{artifacts/store.d.ts → task-files/artifact-kind.d.ts} +14 -17
  72. package/dist/task-files/artifact-kind.js +123 -0
  73. package/dist/task-files/artifact-kind.js.map +1 -0
  74. package/dist/task-files/kind.d.ts +55 -0
  75. package/dist/task-files/kind.js +68 -0
  76. package/dist/task-files/kind.js.map +1 -0
  77. package/dist/{artifacts → task-files}/lifecycle.d.ts +0 -1
  78. package/dist/{artifacts → task-files}/lifecycle.js +3 -28
  79. package/dist/task-files/lifecycle.js.map +1 -0
  80. package/dist/task-files/removal-slot.d.ts +3 -0
  81. package/dist/task-files/removal-slot.js +20 -0
  82. package/dist/task-files/removal-slot.js.map +1 -0
  83. package/dist/task-files/store.d.ts +37 -0
  84. package/dist/{artifacts → task-files}/store.js +150 -155
  85. package/dist/task-files/store.js.map +1 -0
  86. package/dist/workflows/continuation-admission.d.ts +72 -72
  87. package/dist/workflows/run/wait-engine.d.ts +72 -72
  88. package/package.json +4 -4
  89. package/dist/artifacts/cli.js.map +0 -1
  90. package/dist/artifacts/lifecycle.js.map +0 -1
  91. package/dist/artifacts/removal-slot.d.ts +0 -3
  92. package/dist/artifacts/removal-slot.js +0 -7
  93. package/dist/artifacts/removal-slot.js.map +0 -1
  94. package/dist/artifacts/reports-index.js.map +0 -1
  95. package/dist/artifacts/reports-watch.js.map +0 -1
  96. package/dist/artifacts/resolve.js.map +0 -1
  97. package/dist/artifacts/store.js.map +0 -1
  98. package/dist/server/reports-api.js +0 -22
  99. package/dist/server/reports-api.js.map +0 -1
  100. package/dist/server/reports-topic.d.ts +0 -5
  101. package/dist/server/reports-topic.js.map +0 -1
  102. /package/dist/{artifacts/resolve.d.ts → server/file-link.d.ts} +0 -0
  103. /package/dist/{artifacts/cli.d.ts → task-files/artifact-cli.d.ts} +0 -0
@@ -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
- "/models": {
166
- $get: {
167
- output: {
168
- error: string;
169
- code?: "invalid_input" | undefined;
170
- };
171
- outputFormat: "json";
172
- status: 400;
173
- input: {
174
- query: {
175
- runner: string | string[];
176
- profileId?: string | undefined;
177
- };
178
- };
179
- } | {
180
- output: {
181
- runner: string;
182
- models: {
183
- id: string;
184
- label: string;
185
- description: string;
186
- effortLevels?: import('../contract/index.js').EffortLevel[];
187
- }[];
188
- source: import("../core/runner-model-catalog.ts").ModelCatalogSource;
189
- stale: boolean;
190
- reason?: string;
191
- };
192
- outputFormat: "json";
193
- status: import("hono/utils/http-status").ContentfulStatusCode;
194
- input: {
195
- query: {
196
- runner: string | string[];
197
- profileId?: string | undefined;
198
- };
199
- };
200
- } | {
201
- output: {
202
- error: string;
203
- };
204
- outputFormat: "json";
205
- status: 400;
206
- input: {
207
- query: {
208
- runner: string | string[];
209
- profileId?: string | undefined;
210
- };
211
- };
212
- };
213
- };
214
- }, "/"> | import("hono/types").MergeSchemaPath<{
215
- "/health": {
216
- $get: {
217
- output: {
218
- version: string;
219
- latestVersion?: string | undefined;
220
- repoRoot: string | null;
221
- repo: {
222
- root: string;
223
- branch: string;
224
- remote?: string | undefined;
225
- } | null;
226
- checks: {
227
- name: string;
228
- available: boolean;
229
- version?: string;
230
- hint?: string;
231
- }[];
232
- defaultRunner: string;
233
- forge: {
234
- available?: boolean | undefined;
235
- reason?: string;
236
- kind: string;
237
- } | null;
238
- capabilities: {
239
- [x: string]: boolean | undefined;
240
- localHandoff: boolean;
241
- settingsAdmin: boolean;
242
- remoteSettingsAdmin: boolean;
243
- automations?: boolean | undefined;
244
- preview: boolean;
245
- tokenMetrics: boolean;
246
- tokenUsageMetrics: boolean;
247
- costMetrics: boolean;
248
- };
249
- projects: {
250
- id: string;
251
- name: string;
252
- }[];
253
- bootProject: string | null;
254
- plugins: {
255
- loaded: {
256
- name: string;
257
- source: "bundled" | "host";
258
- path?: string | undefined;
259
- }[];
260
- failed: {
261
- name: string;
262
- source: "bundled" | "host";
263
- path?: string | undefined;
264
- error: string;
265
- }[];
266
- };
267
- };
268
- outputFormat: "json";
269
- status: import("hono/utils/http-status").ContentfulStatusCode;
270
- input: {};
271
- };
272
- };
273
- }, "/"> | import("hono/types").MergeSchemaPath<{
274
- "/fs/browse": {
275
- $get: {
276
- output: {
277
- error: string;
278
- code?: "invalid_input" | undefined;
279
- };
280
- outputFormat: "json";
281
- status: 400;
282
- input: {
283
- query: {
284
- path?: string | undefined;
285
- showHidden?: string | undefined;
286
- };
287
- };
288
- } | {
289
- output: {
290
- error: string;
291
- };
292
- outputFormat: "json";
293
- status: 400 | 403 | 404;
294
- input: {
295
- query: {
296
- path?: string | undefined;
297
- showHidden?: string | undefined;
298
- };
299
- };
300
- } | {
301
- output: {
302
- path: string;
303
- parent: string | null;
304
- dirs: {
305
- name: string;
306
- path: string;
307
- isRepo: boolean;
308
- }[];
309
- truncated: boolean;
310
- };
311
- outputFormat: "json";
312
- status: import("hono/utils/http-status").ContentfulStatusCode;
313
- input: {
314
- query: {
315
- path?: string | undefined;
316
- showHidden?: string | undefined;
317
- };
318
- };
319
- };
320
- };
321
- }, "/"> | import("hono/types").MergeSchemaPath<{
322
- "/workspace/events": {
323
- $get: {
324
- output: {};
325
- outputFormat: string;
326
- status: import("hono/utils/http-status").StatusCode;
327
- input: {
328
- query: {
329
- runs?: "summary" | undefined;
330
- };
331
- };
332
- } | {
333
- output: {
334
- error: string;
335
- code?: "invalid_input" | undefined;
336
- };
337
- outputFormat: "json";
338
- status: 400;
339
- input: {
340
- query: {
341
- runs?: "summary" | 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: {
@@ -3962,94 +3967,6 @@ export declare function createApp(deps: ServerDeps): import("hono/hono-base").Ho
3962
3967
  };
3963
3968
  };
3964
3969
  };
3965
- }, "/"> | import("hono/types").MergeSchemaPath<{
3966
- "/reports/state": {
3967
- $get: {
3968
- output: {
3969
- error: string;
3970
- };
3971
- outputFormat: "json";
3972
- status: 409;
3973
- input: {};
3974
- } | {
3975
- output: {
3976
- epoch: string;
3977
- generation: number;
3978
- metadataGeneration: number;
3979
- };
3980
- outputFormat: "json";
3981
- status: import("hono/utils/http-status").ContentfulStatusCode;
3982
- input: {};
3983
- };
3984
- };
3985
- } & {
3986
- "/reports": {
3987
- $get: {
3988
- output: {
3989
- error: string;
3990
- code?: "invalid_input" | undefined;
3991
- };
3992
- outputFormat: "json";
3993
- status: 400;
3994
- input: {
3995
- query: {
3996
- q?: string | undefined;
3997
- before?: string | undefined;
3998
- limit?: number | undefined;
3999
- };
4000
- };
4001
- } | {
4002
- output: {
4003
- error: string;
4004
- };
4005
- outputFormat: "json";
4006
- status: 409;
4007
- input: {
4008
- query: {
4009
- q?: string | undefined;
4010
- before?: string | undefined;
4011
- limit?: number | undefined;
4012
- };
4013
- };
4014
- } | {
4015
- output: {
4016
- error: string;
4017
- };
4018
- outputFormat: "json";
4019
- status: 400;
4020
- input: {
4021
- query: {
4022
- q?: string | undefined;
4023
- before?: string | undefined;
4024
- limit?: number | undefined;
4025
- };
4026
- };
4027
- } | {
4028
- output: {
4029
- reports: {
4030
- 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;
4041
- };
4042
- outputFormat: "json";
4043
- status: import("hono/utils/http-status").ContentfulStatusCode;
4044
- input: {
4045
- query: {
4046
- q?: string | undefined;
4047
- before?: string | undefined;
4048
- limit?: number | undefined;
4049
- };
4050
- };
4051
- };
4052
- };
4053
3970
  }, "/"> | import("hono/types").MergeSchemaPath<{
4054
3971
  "/agent-config": {
4055
3972
  $get: {
@@ -5590,6 +5507,19 @@ export declare function createApp(deps: ServerDeps): import("hono/hono-base").Ho
5590
5507
  } & {
5591
5508
  "/repo/commit/:sha": {
5592
5509
  $get: {
5510
+ output: string;
5511
+ outputFormat: "text";
5512
+ status: import("hono/utils/http-status").ContentfulStatusCode;
5513
+ input: {
5514
+ query: {
5515
+ structured?: string | undefined;
5516
+ };
5517
+ } & {
5518
+ param: {
5519
+ sha: string;
5520
+ };
5521
+ };
5522
+ } | {
5593
5523
  output: {
5594
5524
  error: string;
5595
5525
  code?: "invalid_input" | undefined;
@@ -5653,19 +5583,6 @@ export declare function createApp(deps: ServerDeps): import("hono/hono-base").Ho
5653
5583
  sha: string;
5654
5584
  };
5655
5585
  };
5656
- } | {
5657
- output: string;
5658
- outputFormat: "text";
5659
- status: import("hono/utils/http-status").ContentfulStatusCode;
5660
- input: {
5661
- query: {
5662
- structured?: string | undefined;
5663
- };
5664
- } & {
5665
- param: {
5666
- sha: string;
5667
- };
5668
- };
5669
5586
  };
5670
5587
  };
5671
5588
  } & {
@@ -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,24 +7524,11 @@ export declare function createApp(deps: ServerDeps): import("hono/hono-base").Ho
7596
7524
  };
7597
7525
  } | {
7598
7526
  output: {
7599
- workerId: string;
7600
- state: "complete" | "incomplete";
7601
- work?: {
7602
- uncommittedFiles: number;
7603
- commits: number;
7604
- } | undefined;
7605
- deleted?: ({
7606
- kind: "worktree";
7607
- path: string;
7608
- } | {
7609
- kind: "branch";
7610
- ref: string;
7611
- })[] | undefined;
7612
- remaining: ("branch" | "process" | "worktree")[];
7613
- error?: string | undefined;
7527
+ error: string;
7528
+ code?: "invalid_input" | undefined;
7614
7529
  };
7615
7530
  outputFormat: "json";
7616
- status: 200;
7531
+ status: 400;
7617
7532
  input: {
7618
7533
  query: {
7619
7534
  [x: string]: string | string[];
@@ -7646,7 +7561,7 @@ export declare function createApp(deps: ServerDeps): import("hono/hono-base").Ho
7646
7561
  error?: string | undefined;
7647
7562
  };
7648
7563
  outputFormat: "json";
7649
- status: 409;
7564
+ status: 200;
7650
7565
  input: {
7651
7566
  query: {
7652
7567
  [x: string]: string | string[];
@@ -7662,22 +7577,24 @@ export declare function createApp(deps: ServerDeps): import("hono/hono-base").Ho
7662
7577
  };
7663
7578
  } | {
7664
7579
  output: {
7665
- readonly code: "capacity_limit" | "denied_scope" | "incompatible_state" | "incomplete_cleanup" | "invalid_baseline" | "invalid_input" | "unauthenticated" | "unavailable_diff" | "unavailable_transport";
7666
- readonly error: string;
7667
- readonly modelChoices?: {
7668
- runner: string;
7669
- requestedModel: string;
7670
- availableModels: {
7671
- id: string;
7672
- label: string;
7673
- description: string;
7674
- effortLevels?: ("high" | "low" | "max" | "medium" | "xhigh")[] | undefined;
7675
- }[];
7676
- otherRunners: string[];
7580
+ workerId: string;
7581
+ state: "complete" | "incomplete";
7582
+ work?: {
7583
+ uncommittedFiles: number;
7584
+ commits: number;
7677
7585
  } | undefined;
7586
+ deleted?: ({
7587
+ kind: "worktree";
7588
+ path: string;
7589
+ } | {
7590
+ kind: "branch";
7591
+ ref: string;
7592
+ })[] | undefined;
7593
+ remaining: ("branch" | "process" | "worktree")[];
7594
+ error?: string | undefined;
7678
7595
  };
7679
7596
  outputFormat: "json";
7680
- status: 400 | 401 | 403 | 409 | 503;
7597
+ status: 409;
7681
7598
  input: {
7682
7599
  query: {
7683
7600
  [x: string]: string | string[];
@@ -18170,20 +18087,20 @@ export declare function createApp(deps: ServerDeps): import("hono/hono-base").Ho
18170
18087
  } & {
18171
18088
  "/runs/:id/handoff": {
18172
18089
  $get: {
18173
- output: {
18174
- error: string;
18175
- };
18176
- outputFormat: "json";
18177
- status: 404;
18090
+ output: string;
18091
+ outputFormat: "text";
18092
+ status: 200;
18178
18093
  input: {
18179
18094
  param: {
18180
18095
  id: string;
18181
18096
  };
18182
18097
  };
18183
18098
  } | {
18184
- output: string;
18185
- outputFormat: "text";
18186
- status: 200;
18099
+ output: {
18100
+ error: string;
18101
+ };
18102
+ outputFormat: "json";
18103
+ status: 404;
18187
18104
  input: {
18188
18105
  param: {
18189
18106
  id: string;
@@ -18221,20 +18138,20 @@ export declare function createApp(deps: ServerDeps): import("hono/hono-base").Ho
18221
18138
  } & {
18222
18139
  "/runs/:id/diff": {
18223
18140
  $get: {
18224
- output: {
18225
- error: string;
18226
- };
18227
- outputFormat: "json";
18228
- status: 404 | 409;
18141
+ output: string;
18142
+ outputFormat: "text";
18143
+ status: import("hono/utils/http-status").ContentfulStatusCode;
18229
18144
  input: {
18230
18145
  param: {
18231
18146
  id: string;
18232
18147
  };
18233
18148
  };
18234
18149
  } | {
18235
- output: string;
18236
- outputFormat: "text";
18237
- status: import("hono/utils/http-status").ContentfulStatusCode;
18150
+ output: {
18151
+ error: string;
18152
+ };
18153
+ outputFormat: "json";
18154
+ status: 404 | 409;
18238
18155
  input: {
18239
18156
  param: {
18240
18157
  id: string;
@@ -19591,94 +19508,6 @@ export declare function createApp(deps: ServerDeps): import("hono/hono-base").Ho
19591
19508
  };
19592
19509
  };
19593
19510
  };
19594
- }, "/"> | 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": {
19616
- $get: {
19617
- 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: {
19659
- 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
19511
  }, "/"> | import("hono/types").MergeSchemaPath<{
19683
19512
  "/agent-config": {
19684
19513
  $get: {
@@ -21219,6 +21048,19 @@ export declare function createApp(deps: ServerDeps): import("hono/hono-base").Ho
21219
21048
  } & {
21220
21049
  "/repo/commit/:sha": {
21221
21050
  $get: {
21051
+ output: string;
21052
+ outputFormat: "text";
21053
+ status: import("hono/utils/http-status").ContentfulStatusCode;
21054
+ input: {
21055
+ query: {
21056
+ structured?: string | undefined;
21057
+ };
21058
+ } & {
21059
+ param: {
21060
+ sha: string;
21061
+ };
21062
+ };
21063
+ } | {
21222
21064
  output: {
21223
21065
  error: string;
21224
21066
  code?: "invalid_input" | undefined;
@@ -21282,19 +21124,6 @@ export declare function createApp(deps: ServerDeps): import("hono/hono-base").Ho
21282
21124
  sha: string;
21283
21125
  };
21284
21126
  };
21285
- } | {
21286
- output: string;
21287
- outputFormat: "text";
21288
- status: import("hono/utils/http-status").ContentfulStatusCode;
21289
- input: {
21290
- query: {
21291
- structured?: string | undefined;
21292
- };
21293
- } & {
21294
- param: {
21295
- sha: string;
21296
- };
21297
- };
21298
21127
  };
21299
21128
  };
21300
21129
  } & {
@@ -23204,6 +23033,37 @@ export declare function createApp(deps: ServerDeps): import("hono/hono-base").Ho
23204
23033
  } & {
23205
23034
  "/runs/:id/worker-destroy": {
23206
23035
  $post: {
23036
+ output: {
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;
23050
+ };
23051
+ outputFormat: "json";
23052
+ status: 400 | 401 | 403 | 409 | 503;
23053
+ input: {
23054
+ query: {
23055
+ [x: string]: string | string[];
23056
+ };
23057
+ } & {
23058
+ param: {
23059
+ id: string;
23060
+ };
23061
+ } & {
23062
+ json: {
23063
+ discardWork?: true | undefined;
23064
+ };
23065
+ };
23066
+ } | {
23207
23067
  output: {
23208
23068
  error: string;
23209
23069
  code?: "invalid_input" | undefined;
@@ -23289,37 +23149,6 @@ export declare function createApp(deps: ServerDeps): import("hono/hono-base").Ho
23289
23149
  discardWork?: true | undefined;
23290
23150
  };
23291
23151
  };
23292
- } | {
23293
- output: {
23294
- readonly code: "capacity_limit" | "denied_scope" | "incompatible_state" | "incomplete_cleanup" | "invalid_baseline" | "invalid_input" | "unauthenticated" | "unavailable_diff" | "unavailable_transport";
23295
- readonly error: string;
23296
- readonly modelChoices?: {
23297
- runner: string;
23298
- requestedModel: string;
23299
- availableModels: {
23300
- id: string;
23301
- label: string;
23302
- description: string;
23303
- effortLevels?: ("high" | "low" | "max" | "medium" | "xhigh")[] | undefined;
23304
- }[];
23305
- otherRunners: string[];
23306
- } | undefined;
23307
- };
23308
- outputFormat: "json";
23309
- status: 400 | 401 | 403 | 409 | 503;
23310
- input: {
23311
- query: {
23312
- [x: string]: string | string[];
23313
- };
23314
- } & {
23315
- param: {
23316
- id: string;
23317
- };
23318
- } & {
23319
- json: {
23320
- discardWork?: true | undefined;
23321
- };
23322
- };
23323
23152
  };
23324
23153
  };
23325
23154
  } & {
@@ -33799,20 +33628,20 @@ export declare function createApp(deps: ServerDeps): import("hono/hono-base").Ho
33799
33628
  } & {
33800
33629
  "/runs/:id/handoff": {
33801
33630
  $get: {
33802
- output: {
33803
- error: string;
33804
- };
33805
- outputFormat: "json";
33806
- status: 404;
33631
+ output: string;
33632
+ outputFormat: "text";
33633
+ status: 200;
33807
33634
  input: {
33808
33635
  param: {
33809
33636
  id: string;
33810
33637
  };
33811
33638
  };
33812
33639
  } | {
33813
- output: string;
33814
- outputFormat: "text";
33815
- status: 200;
33640
+ output: {
33641
+ error: string;
33642
+ };
33643
+ outputFormat: "json";
33644
+ status: 404;
33816
33645
  input: {
33817
33646
  param: {
33818
33647
  id: string;
@@ -33850,20 +33679,20 @@ export declare function createApp(deps: ServerDeps): import("hono/hono-base").Ho
33850
33679
  } & {
33851
33680
  "/runs/:id/diff": {
33852
33681
  $get: {
33853
- output: {
33854
- error: string;
33855
- };
33856
- outputFormat: "json";
33857
- status: 404 | 409;
33682
+ output: string;
33683
+ outputFormat: "text";
33684
+ status: import("hono/utils/http-status").ContentfulStatusCode;
33858
33685
  input: {
33859
33686
  param: {
33860
33687
  id: string;
33861
33688
  };
33862
33689
  };
33863
33690
  } | {
33864
- output: string;
33865
- outputFormat: "text";
33866
- status: import("hono/utils/http-status").ContentfulStatusCode;
33691
+ output: {
33692
+ error: string;
33693
+ };
33694
+ outputFormat: "json";
33695
+ status: 404 | 409;
33867
33696
  input: {
33868
33697
  param: {
33869
33698
  id: string;
@@ -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';