@hearsay-tools/squawk 0.18.0-pr3927.7421 → 0.18.0-pr3928.7425

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 (155) hide show
  1. package/dist/ci-wait/controller.d.ts +1 -1
  2. package/dist/ci-wait/errors.js +0 -2
  3. package/dist/ci-wait/errors.js.map +1 -1
  4. package/dist/ci-wait/tools.d.ts +5 -5
  5. package/dist/contract/delegation.d.ts +27 -14
  6. package/dist/contract/index.js +23 -31
  7. package/dist/contract/runs.d.ts +3 -10
  8. package/dist/contract/waits.d.ts +0 -2
  9. package/dist/contract/workspace-events.d.ts +0 -2
  10. package/dist/delegation/capacity.d.ts +3 -12
  11. package/dist/delegation/capacity.js +8 -23
  12. package/dist/delegation/capacity.js.map +1 -1
  13. package/dist/delegation/cli.js +15 -10
  14. package/dist/delegation/cli.js.map +1 -1
  15. package/dist/delegation/conversations.d.ts +0 -3
  16. package/dist/delegation/conversations.js +1 -4
  17. package/dist/delegation/conversations.js.map +1 -1
  18. package/dist/delegation/owned-workspace-release.d.ts +2 -3
  19. package/dist/delegation/owned-workspace-release.js +2 -2
  20. package/dist/delegation/owned-workspace-release.js.map +1 -1
  21. package/dist/delegation/policy.d.ts +3 -13
  22. package/dist/delegation/policy.js +14 -30
  23. package/dist/delegation/policy.js.map +1 -1
  24. package/dist/delegation/provision.js +4 -5
  25. package/dist/delegation/provision.js.map +1 -1
  26. package/dist/delegation/readiness.d.ts +2 -4
  27. package/dist/delegation/readiness.js +8 -9
  28. package/dist/delegation/readiness.js.map +1 -1
  29. package/dist/delegation/routes.d.ts +19 -5
  30. package/dist/delegation/routes.js +3 -3
  31. package/dist/delegation/routes.js.map +1 -1
  32. package/dist/delegation/service.d.ts +16 -4
  33. package/dist/delegation/service.js +39 -60
  34. package/dist/delegation/service.js.map +1 -1
  35. package/dist/delegation/transport.d.ts +19 -5
  36. package/dist/delegation/worker-cleanup.d.ts +6 -14
  37. package/dist/delegation/worker-cleanup.js +27 -61
  38. package/dist/delegation/worker-cleanup.js.map +1 -1
  39. package/dist/delegation/workspace-kinds.d.ts +11 -2
  40. package/dist/delegation/workspace-kinds.js +13 -6
  41. package/dist/delegation/workspace-kinds.js.map +1 -1
  42. package/dist/delegation/workspace-record.js +3 -2
  43. package/dist/delegation/workspace-record.js.map +1 -1
  44. package/dist/delegation/workspace-removal.d.ts +9 -4
  45. package/dist/delegation/workspace-removal.js +36 -37
  46. package/dist/delegation/workspace-removal.js.map +1 -1
  47. package/dist/delegation/workspace-work.d.ts +35 -0
  48. package/dist/delegation/workspace-work.js +75 -0
  49. package/dist/delegation/workspace-work.js.map +1 -0
  50. package/dist/runs/delegation-state.d.ts +1 -2
  51. package/dist/runs/owned-run-create.js +9 -33
  52. package/dist/runs/owned-run-create.js.map +1 -1
  53. package/dist/runs/run-exits.d.ts +6 -12
  54. package/dist/runs/shared-hosts.d.ts +0 -4
  55. package/dist/runs/shared-hosts.js +0 -6
  56. package/dist/runs/shared-hosts.js.map +1 -1
  57. package/dist/runs/store.d.ts +5 -6
  58. package/dist/runs/store.js +6 -5
  59. package/dist/runs/store.js.map +1 -1
  60. package/dist/runs/task-rights.d.ts +3 -22
  61. package/dist/runs/task-rights.js +13 -58
  62. package/dist/runs/task-rights.js.map +1 -1
  63. package/dist/server/run-checkout.js +0 -4
  64. package/dist/server/run-checkout.js.map +1 -1
  65. package/dist/server/server.d.ts +430 -424
  66. package/dist/server/server.js +35 -5
  67. package/dist/server/server.js.map +1 -1
  68. package/dist/workflows/completion-policy.d.ts +1 -7
  69. package/dist/workflows/completion-policy.js +3 -13
  70. package/dist/workflows/completion-policy.js.map +1 -1
  71. package/dist/workflows/continuation-admission.d.ts +1 -2
  72. package/dist/workflows/continuation-admission.js +0 -6
  73. package/dist/workflows/continuation-admission.js.map +1 -1
  74. package/dist/workflows/question-routing.d.ts +0 -2
  75. package/dist/workflows/question-routing.js +0 -7
  76. package/dist/workflows/question-routing.js.map +1 -1
  77. package/dist/workflows/run/completion-gate.d.ts +0 -3
  78. package/dist/workflows/run/completion-gate.js +7 -12
  79. package/dist/workflows/run/completion-gate.js.map +1 -1
  80. package/dist/workflows/run/family-reconciler.d.ts +8 -13
  81. package/dist/workflows/run/family-reconciler.js +17 -26
  82. package/dist/workflows/run/family-reconciler.js.map +1 -1
  83. package/dist/workflows/run/run-cancel.d.ts +1 -2
  84. package/dist/workflows/run/run-cancel.js +3 -5
  85. package/dist/workflows/run/run-cancel.js.map +1 -1
  86. package/dist/workflows/run/run-finish.js +6 -4
  87. package/dist/workflows/run/run-finish.js.map +1 -1
  88. package/dist/workflows/run/run-recovery.js +0 -10
  89. package/dist/workflows/run/run-recovery.js.map +1 -1
  90. package/dist/workflows/run/run-workspace.js +2 -3
  91. package/dist/workflows/run/run-workspace.js.map +1 -1
  92. package/dist/workflows/run/wait-engine.d.ts +1 -2
  93. package/dist/workflows/run/wait-engine.js +1 -2
  94. package/dist/workflows/run/wait-engine.js.map +1 -1
  95. package/dist/workflows/run/wait-registry.d.ts +1 -4
  96. package/dist/workflows/run/wait-registry.js +3 -12
  97. package/dist/workflows/run/wait-registry.js.map +1 -1
  98. package/dist/workflows/run/worker-questions.d.ts +3 -11
  99. package/dist/workflows/run/worker-questions.js +18 -38
  100. package/dist/workflows/run/worker-questions.js.map +1 -1
  101. package/dist/workflows/wait-scope.d.ts +2 -2
  102. package/dist/workflows/wait-scope.js +4 -4
  103. package/dist/workflows/wait-scope.js.map +1 -1
  104. package/package.json +4 -4
  105. package/web/dist/assets/{activity-motion-BjRSOxuh.js → activity-motion-CP1uMAhc.js} +1 -1
  106. package/web/dist/assets/{activity-route-CG_suLmL.js → activity-route-DeU2Kbwd.js} +1 -1
  107. package/web/dist/assets/{agent-accounts-DaF-ybaB.js → agent-accounts-B5mlyHu6.js} +1 -1
  108. package/web/dist/assets/attention-KWONtkLe.js +1 -0
  109. package/web/dist/assets/{commit-diff-panel-DvSOi3Dk.js → commit-diff-panel-BZUB5Z1f.js} +1 -1
  110. package/web/dist/assets/{diff-DhcQus9M.js → diff-BrHuVh8o.js} +2 -2
  111. package/web/dist/assets/{diff-view-DiuMMFWa.js → diff-view-CedKSSPs.js} +1 -1
  112. package/web/dist/assets/{file-preview-CZoDjpW4.js → file-preview-Be5LTCAp.js} +1 -1
  113. package/web/dist/assets/{git-toolbar-CA-ZwUuj.js → git-toolbar-DVuQmXZy.js} +1 -1
  114. package/web/dist/assets/{github-Dita6Kp5.js → github-DN_dnIH-.js} +1 -1
  115. package/web/dist/assets/{global-activity-route-DksHUiPz.js → global-activity-route-LJCoq_eu.js} +1 -1
  116. package/web/dist/assets/{index-D59vfFuq.js → index-BSkJHRdF.js} +9 -9
  117. package/web/dist/assets/{markdown-B66DXw4l.js → markdown-D2-rnRmg.js} +1 -1
  118. package/web/dist/assets/{picker-pill-bwLTIbHM.js → picker-pill-DeXs_3wA.js} +1 -1
  119. package/web/dist/assets/{preview-pane-connected-B7-FZ5DE.js → preview-pane-connected-DnLLyOv7.js} +1 -1
  120. package/web/dist/assets/{project-router-ewovT3Kf.js → project-router-Ca-Yys9p.js} +1 -1
  121. package/web/dist/assets/project-scope-context-Bq74vnQ8.js +4 -0
  122. package/web/dist/assets/{prompt-template-menu-BJEe-Kv2.js → prompt-template-menu-Ba29Yvb4.js} +1 -1
  123. package/web/dist/assets/queries-CteMqpzA.js +1 -0
  124. package/web/dist/assets/{reference-chip-Tj9CYsE2.js → reference-chip-CLBt6hDk.js} +1 -1
  125. package/web/dist/assets/{repo-git-C0MVr1i5.js → repo-git-CctMXHJm.js} +1 -1
  126. package/web/dist/assets/{report-reader-BW21aq_k.js → report-reader-D4rRCdx8.js} +1 -1
  127. package/web/dist/assets/{reports-DWXaed-t.js → reports-CYFYZ4j8.js} +1 -1
  128. package/web/dist/assets/run-header-y5q0tNyC.js +2 -0
  129. package/web/dist/assets/{skills-CZq8WNx7.js → skills-C_fXdjTf.js} +1 -1
  130. package/web/dist/assets/{tab-link-D4l87fgz.js → tab-link-CEKTsBqM.js} +1 -1
  131. package/web/dist/assets/{task-changes-FumjZsw6.js → task-changes-_iq_dPMh.js} +1 -1
  132. package/web/dist/assets/{task-commits-75nPVeL3.js → task-commits-ttgZYzlA.js} +1 -1
  133. package/web/dist/assets/{task-files-CdhoQGlN.js → task-files-BB2K7_8M.js} +1 -1
  134. package/web/dist/assets/{task-github-item-1IbcFtr-.js → task-github-item-BAR2_YLS.js} +1 -1
  135. package/web/dist/assets/task-thread-CWv3VJj0.js +9 -0
  136. package/web/dist/assets/{thread-state-Bfb8orUP.js → thread-state-DMd4D69h.js} +1 -1
  137. package/web/dist/assets/{use-desktop-DJrxV0gM.js → use-desktop-BjYpWIqI.js} +1 -1
  138. package/web/dist/assets/{use-hand-to-agent-state-bZUXClR3.js → use-hand-to-agent-state-CALyzrgv.js} +1 -1
  139. package/web/dist/assets/{useInfiniteQuery-Bbi75-bb.js → useInfiniteQuery-GJoCV7zM.js} +1 -1
  140. package/web/dist/assets/useQuery-B9tMLxA1.js +1 -0
  141. package/web/dist/assets/{workflows-gbQKlO53.js → workflows-DnIdj5zW.js} +2 -2
  142. package/web/dist/assets/{ws-BRHd49V3.js → ws-D7DpYPkk.js} +1 -1
  143. package/web/dist/index.html +13 -13
  144. package/dist/runs/supervised.d.ts +0 -21
  145. package/dist/runs/supervised.js +0 -28
  146. package/dist/runs/supervised.js.map +0 -1
  147. package/dist/server/run-relationships.d.ts +0 -14
  148. package/dist/server/run-relationships.js +0 -47
  149. package/dist/server/run-relationships.js.map +0 -1
  150. package/web/dist/assets/attention-DtccMSEl.js +0 -1
  151. package/web/dist/assets/project-scope-context-CdJF4Chv.js +0 -4
  152. package/web/dist/assets/queries-DEhoSzZx.js +0 -1
  153. package/web/dist/assets/run-header-LMdC07au.js +0 -2
  154. package/web/dist/assets/task-thread-9Q-PLOFf.js +0 -9
  155. package/web/dist/assets/useQuery-is45BI1J.js +0 -1
@@ -183,194 +183,6 @@ export declare class WorkspaceEventBus {
183
183
  on(listener: (event: WorkspaceEventName, data: unknown) => void): () => void;
184
184
  }
185
185
  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<{
186
- "/health": {
187
- $get: {
188
- output: {
189
- version: string;
190
- latestVersion?: string | undefined;
191
- repoRoot: string;
192
- repo: {
193
- root: string;
194
- branch: string;
195
- remote?: string | undefined;
196
- } | null;
197
- checks: {
198
- name: import("../core/agent-runner.ts").RunnerId | 'gh' | 'git';
199
- available: boolean;
200
- version?: string;
201
- hint?: string;
202
- }[];
203
- defaultRunner: "claude" | "codex" | "omp" | "opencode" | "pi";
204
- forge: {
205
- available?: boolean | undefined;
206
- reason?: string;
207
- kind: "github";
208
- } | null;
209
- capabilities: {
210
- localHandoff: boolean;
211
- settingsAdmin: boolean;
212
- remoteSettingsAdmin: boolean;
213
- automations: boolean;
214
- preview: boolean;
215
- tokenMetrics: boolean;
216
- tokenUsageMetrics: boolean;
217
- costMetrics: boolean;
218
- };
219
- projects: {
220
- id: string;
221
- name: string;
222
- }[];
223
- bootProject: string;
224
- };
225
- outputFormat: "json";
226
- status: import("hono/utils/http-status").ContentfulStatusCode;
227
- input: {};
228
- };
229
- };
230
- }, "/"> | import("hono/types").MergeSchemaPath<{
231
- "/models": {
232
- $get: {
233
- output: {
234
- error: string;
235
- code?: "invalid_input" | undefined;
236
- };
237
- outputFormat: "json";
238
- status: 400;
239
- input: {
240
- query: {
241
- runner: "claude" | "codex" | "omp" | "opencode" | "pi";
242
- };
243
- };
244
- } | {
245
- output: {
246
- runner: import("../core/agent-runner.ts").RunnerId;
247
- models: {
248
- id: string;
249
- label: string;
250
- description: string;
251
- effortLevels?: import('../contract/index.js').EffortLevel[];
252
- }[];
253
- source: import("../core/runner-model-catalog.ts").ModelCatalogSource;
254
- stale: boolean;
255
- reason?: string;
256
- };
257
- outputFormat: "json";
258
- status: import("hono/utils/http-status").ContentfulStatusCode;
259
- input: {
260
- query: {
261
- runner: "claude" | "codex" | "omp" | "opencode" | "pi";
262
- };
263
- };
264
- };
265
- };
266
- }, "/"> | import("hono/types").MergeSchemaPath<{
267
- "/fs/browse": {
268
- $get: {
269
- output: {
270
- error: string;
271
- code?: "invalid_input" | undefined;
272
- };
273
- outputFormat: "json";
274
- status: 400;
275
- input: {
276
- query: {
277
- path?: string | undefined;
278
- showHidden?: string | undefined;
279
- };
280
- };
281
- } | {
282
- output: {
283
- error: string;
284
- };
285
- outputFormat: "json";
286
- status: 400 | 403 | 404;
287
- input: {
288
- query: {
289
- path?: string | undefined;
290
- showHidden?: string | undefined;
291
- };
292
- };
293
- } | {
294
- output: {
295
- path: string;
296
- parent: string | null;
297
- dirs: {
298
- name: string;
299
- path: string;
300
- isRepo: boolean;
301
- }[];
302
- truncated: boolean;
303
- };
304
- outputFormat: "json";
305
- status: import("hono/utils/http-status").ContentfulStatusCode;
306
- input: {
307
- query: {
308
- path?: string | undefined;
309
- showHidden?: string | undefined;
310
- };
311
- };
312
- };
313
- };
314
- }, "/"> | import("hono/types").MergeSchemaPath<{
315
- "/automation-checks/:checkId": {
316
- $get: {
317
- output: {
318
- id: string;
319
- automationId: string;
320
- mode: 'preview' | 'execute';
321
- status: 'queued' | 'running' | 'complete' | 'error';
322
- createdAt: string;
323
- completedAt?: string;
324
- matches?: number;
325
- truncated?: boolean;
326
- error?: string;
327
- };
328
- outputFormat: "json";
329
- status: import("hono/utils/http-status").ContentfulStatusCode;
330
- input: {
331
- param: {
332
- checkId: string;
333
- };
334
- };
335
- } | {
336
- output: {
337
- error: string;
338
- };
339
- outputFormat: "json";
340
- status: 404;
341
- input: {
342
- param: {
343
- checkId: string;
344
- };
345
- };
346
- };
347
- };
348
- }, "/"> | import("hono/types").MergeSchemaPath<{
349
- "/workspace/events": {
350
- $get: {
351
- output: {};
352
- outputFormat: string;
353
- status: import("hono/utils/http-status").StatusCode;
354
- input: {
355
- query: {
356
- runs?: "summary" | undefined;
357
- };
358
- };
359
- } | {
360
- output: {
361
- error: string;
362
- code?: "invalid_input" | undefined;
363
- };
364
- outputFormat: "json";
365
- status: 400;
366
- input: {
367
- query: {
368
- runs?: "summary" | undefined;
369
- };
370
- };
371
- };
372
- };
373
- }, "/"> | import("hono/types").MergeSchemaPath<{
374
186
  "/workspace/activity": {
375
187
  $get: {
376
188
  output: {
@@ -628,6 +440,194 @@ export declare function createApp(deps: ServerDeps): import("hono/hono-base").Ho
628
440
  };
629
441
  };
630
442
  };
443
+ }, "/"> | import("hono/types").MergeSchemaPath<{
444
+ "/health": {
445
+ $get: {
446
+ output: {
447
+ version: string;
448
+ latestVersion?: string | undefined;
449
+ repoRoot: string;
450
+ repo: {
451
+ root: string;
452
+ branch: string;
453
+ remote?: string | undefined;
454
+ } | null;
455
+ checks: {
456
+ name: import("../core/agent-runner.ts").RunnerId | 'gh' | 'git';
457
+ available: boolean;
458
+ version?: string;
459
+ hint?: string;
460
+ }[];
461
+ defaultRunner: "claude" | "codex" | "omp" | "opencode" | "pi";
462
+ forge: {
463
+ available?: boolean | undefined;
464
+ reason?: string;
465
+ kind: "github";
466
+ } | null;
467
+ capabilities: {
468
+ localHandoff: boolean;
469
+ settingsAdmin: boolean;
470
+ remoteSettingsAdmin: boolean;
471
+ automations: boolean;
472
+ preview: boolean;
473
+ tokenMetrics: boolean;
474
+ tokenUsageMetrics: boolean;
475
+ costMetrics: boolean;
476
+ };
477
+ projects: {
478
+ id: string;
479
+ name: string;
480
+ }[];
481
+ bootProject: string;
482
+ };
483
+ outputFormat: "json";
484
+ status: import("hono/utils/http-status").ContentfulStatusCode;
485
+ input: {};
486
+ };
487
+ };
488
+ }, "/"> | import("hono/types").MergeSchemaPath<{
489
+ "/models": {
490
+ $get: {
491
+ output: {
492
+ error: string;
493
+ code?: "invalid_input" | undefined;
494
+ };
495
+ outputFormat: "json";
496
+ status: 400;
497
+ input: {
498
+ query: {
499
+ runner: "claude" | "codex" | "omp" | "opencode" | "pi";
500
+ };
501
+ };
502
+ } | {
503
+ output: {
504
+ runner: import("../core/agent-runner.ts").RunnerId;
505
+ models: {
506
+ id: string;
507
+ label: string;
508
+ description: string;
509
+ effortLevels?: import('../contract/index.js').EffortLevel[];
510
+ }[];
511
+ source: import("../core/runner-model-catalog.ts").ModelCatalogSource;
512
+ stale: boolean;
513
+ reason?: string;
514
+ };
515
+ outputFormat: "json";
516
+ status: import("hono/utils/http-status").ContentfulStatusCode;
517
+ input: {
518
+ query: {
519
+ runner: "claude" | "codex" | "omp" | "opencode" | "pi";
520
+ };
521
+ };
522
+ };
523
+ };
524
+ }, "/"> | import("hono/types").MergeSchemaPath<{
525
+ "/fs/browse": {
526
+ $get: {
527
+ output: {
528
+ error: string;
529
+ code?: "invalid_input" | undefined;
530
+ };
531
+ outputFormat: "json";
532
+ status: 400;
533
+ input: {
534
+ query: {
535
+ path?: string | undefined;
536
+ showHidden?: string | undefined;
537
+ };
538
+ };
539
+ } | {
540
+ output: {
541
+ error: string;
542
+ };
543
+ outputFormat: "json";
544
+ status: 400 | 403 | 404;
545
+ input: {
546
+ query: {
547
+ path?: string | undefined;
548
+ showHidden?: string | undefined;
549
+ };
550
+ };
551
+ } | {
552
+ output: {
553
+ path: string;
554
+ parent: string | null;
555
+ dirs: {
556
+ name: string;
557
+ path: string;
558
+ isRepo: boolean;
559
+ }[];
560
+ truncated: boolean;
561
+ };
562
+ outputFormat: "json";
563
+ status: import("hono/utils/http-status").ContentfulStatusCode;
564
+ input: {
565
+ query: {
566
+ path?: string | undefined;
567
+ showHidden?: string | undefined;
568
+ };
569
+ };
570
+ };
571
+ };
572
+ }, "/"> | import("hono/types").MergeSchemaPath<{
573
+ "/automation-checks/:checkId": {
574
+ $get: {
575
+ output: {
576
+ id: string;
577
+ automationId: string;
578
+ mode: 'preview' | 'execute';
579
+ status: 'queued' | 'running' | 'complete' | 'error';
580
+ createdAt: string;
581
+ completedAt?: string;
582
+ matches?: number;
583
+ truncated?: boolean;
584
+ error?: string;
585
+ };
586
+ outputFormat: "json";
587
+ status: import("hono/utils/http-status").ContentfulStatusCode;
588
+ input: {
589
+ param: {
590
+ checkId: string;
591
+ };
592
+ };
593
+ } | {
594
+ output: {
595
+ error: string;
596
+ };
597
+ outputFormat: "json";
598
+ status: 404;
599
+ input: {
600
+ param: {
601
+ checkId: string;
602
+ };
603
+ };
604
+ };
605
+ };
606
+ }, "/"> | import("hono/types").MergeSchemaPath<{
607
+ "/workspace/events": {
608
+ $get: {
609
+ output: {};
610
+ outputFormat: string;
611
+ status: import("hono/utils/http-status").StatusCode;
612
+ input: {
613
+ query: {
614
+ runs?: "summary" | undefined;
615
+ };
616
+ };
617
+ } | {
618
+ output: {
619
+ error: string;
620
+ code?: "invalid_input" | undefined;
621
+ };
622
+ outputFormat: "json";
623
+ status: 400;
624
+ input: {
625
+ query: {
626
+ runs?: "summary" | undefined;
627
+ };
628
+ };
629
+ };
630
+ };
631
631
  }, "/"> | import("hono/types").MergeSchemaPath<{
632
632
  "/workspace/runs-index": {
633
633
  $get: {
@@ -692,7 +692,6 @@ export declare function createApp(deps: ServerDeps): import("hono/hono-base").Ho
692
692
  } | {
693
693
  role: "worker";
694
694
  parentRunId: string;
695
- supervisorRunId?: string | undefined;
696
695
  wait?: {
697
696
  requestIds?: string[] | undefined;
698
697
  phase: "parked" | "registered" | "wake-pending";
@@ -850,7 +849,6 @@ export declare function createApp(deps: ServerDeps): import("hono/hono-base").Ho
850
849
  } | {
851
850
  role: "worker";
852
851
  parentRunId: string;
853
- supervisorRunId?: string | undefined;
854
852
  wait?: {
855
853
  requestIds?: string[] | undefined;
856
854
  phase: "parked" | "registered" | "wake-pending";
@@ -2771,12 +2769,6 @@ export declare function createApp(deps: ServerDeps): import("hono/hono-base").Ho
2771
2769
  output: {
2772
2770
  generation: string;
2773
2771
  results: ({
2774
- projectId: string;
2775
- runId: string;
2776
- type: "error" | "reset";
2777
- status: 400 | 404 | 409 | 413 | 503;
2778
- error: string;
2779
- } | {
2780
2772
  projectId: string;
2781
2773
  runId: string;
2782
2774
  type: "batch";
@@ -2790,6 +2782,12 @@ export declare function createApp(deps: ServerDeps): import("hono/hono-base").Ho
2790
2782
  cursor: string;
2791
2783
  afterSeq: number;
2792
2784
  hasMore: boolean;
2785
+ } | {
2786
+ projectId: string;
2787
+ runId: string;
2788
+ type: "error" | "reset";
2789
+ status: 400 | 404 | 409 | 413 | 503;
2790
+ error: string;
2793
2791
  })[];
2794
2792
  };
2795
2793
  outputFormat: "json";
@@ -3100,94 +3098,6 @@ export declare function createApp(deps: ServerDeps): import("hono/hono-base").Ho
3100
3098
  };
3101
3099
  };
3102
3100
  };
3103
- }, "/"> | import("hono/types").MergeSchemaPath<{
3104
- "/reports/state": {
3105
- $get: {
3106
- output: {
3107
- error: string;
3108
- };
3109
- outputFormat: "json";
3110
- status: 409;
3111
- input: {};
3112
- } | {
3113
- output: {
3114
- epoch: string;
3115
- generation: number;
3116
- metadataGeneration: number;
3117
- };
3118
- outputFormat: "json";
3119
- status: import("hono/utils/http-status").ContentfulStatusCode;
3120
- input: {};
3121
- };
3122
- };
3123
- } & {
3124
- "/reports": {
3125
- $get: {
3126
- output: {
3127
- error: string;
3128
- code?: "invalid_input" | undefined;
3129
- };
3130
- outputFormat: "json";
3131
- status: 400;
3132
- input: {
3133
- query: {
3134
- q?: string | undefined;
3135
- before?: string | undefined;
3136
- limit?: number | undefined;
3137
- };
3138
- };
3139
- } | {
3140
- output: {
3141
- error: string;
3142
- };
3143
- outputFormat: "json";
3144
- status: 409;
3145
- input: {
3146
- query: {
3147
- q?: string | undefined;
3148
- before?: string | undefined;
3149
- limit?: number | undefined;
3150
- };
3151
- };
3152
- } | {
3153
- output: {
3154
- error: string;
3155
- };
3156
- outputFormat: "json";
3157
- status: 400;
3158
- input: {
3159
- query: {
3160
- q?: string | undefined;
3161
- before?: string | undefined;
3162
- limit?: number | undefined;
3163
- };
3164
- };
3165
- } | {
3166
- output: {
3167
- reports: {
3168
- id: string;
3169
- runId: string;
3170
- name: string;
3171
- title: string;
3172
- createdAt: string;
3173
- size: number;
3174
- taskTitle: string;
3175
- taskStatus: "cancelled" | "done" | "failed" | "queued" | "review" | "running" | "waiting";
3176
- }[];
3177
- nextCursor: string | null;
3178
- total: number;
3179
- };
3180
- outputFormat: "json";
3181
- status: import("hono/utils/http-status").ContentfulStatusCode;
3182
- input: {
3183
- query: {
3184
- q?: string | undefined;
3185
- before?: string | undefined;
3186
- limit?: number | undefined;
3187
- };
3188
- };
3189
- };
3190
- };
3191
3101
  }, "/"> | import("hono/types").MergeSchemaPath<{
3192
3102
  "/ui-state": {
3193
3103
  $get: {
@@ -3702,6 +3612,94 @@ export declare function createApp(deps: ServerDeps): import("hono/hono-base").Ho
3702
3612
  };
3703
3613
  };
3704
3614
  };
3615
+ }, "/"> | import("hono/types").MergeSchemaPath<{
3616
+ "/reports/state": {
3617
+ $get: {
3618
+ output: {
3619
+ error: string;
3620
+ };
3621
+ outputFormat: "json";
3622
+ status: 409;
3623
+ input: {};
3624
+ } | {
3625
+ output: {
3626
+ epoch: string;
3627
+ generation: number;
3628
+ metadataGeneration: number;
3629
+ };
3630
+ outputFormat: "json";
3631
+ status: import("hono/utils/http-status").ContentfulStatusCode;
3632
+ input: {};
3633
+ };
3634
+ };
3635
+ } & {
3636
+ "/reports": {
3637
+ $get: {
3638
+ output: {
3639
+ error: string;
3640
+ code?: "invalid_input" | undefined;
3641
+ };
3642
+ outputFormat: "json";
3643
+ status: 400;
3644
+ input: {
3645
+ query: {
3646
+ q?: string | undefined;
3647
+ before?: string | undefined;
3648
+ limit?: number | undefined;
3649
+ };
3650
+ };
3651
+ } | {
3652
+ output: {
3653
+ error: string;
3654
+ };
3655
+ outputFormat: "json";
3656
+ status: 409;
3657
+ input: {
3658
+ query: {
3659
+ q?: string | undefined;
3660
+ before?: string | undefined;
3661
+ limit?: number | undefined;
3662
+ };
3663
+ };
3664
+ } | {
3665
+ output: {
3666
+ error: string;
3667
+ };
3668
+ outputFormat: "json";
3669
+ status: 400;
3670
+ input: {
3671
+ query: {
3672
+ q?: string | undefined;
3673
+ before?: string | undefined;
3674
+ limit?: number | undefined;
3675
+ };
3676
+ };
3677
+ } | {
3678
+ output: {
3679
+ reports: {
3680
+ id: string;
3681
+ runId: string;
3682
+ name: string;
3683
+ title: string;
3684
+ createdAt: string;
3685
+ size: number;
3686
+ taskTitle: string;
3687
+ taskStatus: "cancelled" | "done" | "failed" | "queued" | "review" | "running" | "waiting";
3688
+ }[];
3689
+ nextCursor: string | null;
3690
+ total: number;
3691
+ };
3692
+ outputFormat: "json";
3693
+ status: import("hono/utils/http-status").ContentfulStatusCode;
3694
+ input: {
3695
+ query: {
3696
+ q?: string | undefined;
3697
+ before?: string | undefined;
3698
+ limit?: number | undefined;
3699
+ };
3700
+ };
3701
+ };
3702
+ };
3705
3703
  }, "/"> | import("hono/types").MergeSchemaPath<{
3706
3704
  "/worktrees": {
3707
3705
  $get: {
@@ -6690,7 +6688,6 @@ export declare function createApp(deps: ServerDeps): import("hono/hono-base").Ho
6690
6688
  requestId: string;
6691
6689
  workerId: string;
6692
6690
  requestHash: string;
6693
- supervisorRunId?: string | undefined;
6694
6691
  deletion?: {
6695
6692
  phase: "complete" | "pending";
6696
6693
  revision: number;
@@ -6833,7 +6830,6 @@ export declare function createApp(deps: ServerDeps): import("hono/hono-base").Ho
6833
6830
  children?: any | undefined;
6834
6831
  } | undefined;
6835
6832
  parentRunId: string;
6836
- supervisorRunId?: string | undefined;
6837
6833
  workspace: {
6838
6834
  ownerRunId: string;
6839
6835
  resourceId: string;
@@ -6854,6 +6850,7 @@ export declare function createApp(deps: ServerDeps): import("hono/hono-base").Ho
6854
6850
  phase: "cleaning" | "complete" | "incomplete" | "requested" | "terminating";
6855
6851
  remaining: ("branch" | "process" | "worktree")[];
6856
6852
  error?: string | undefined;
6853
+ discardWork?: true | undefined;
6857
6854
  } | undefined;
6858
6855
  context?: {
6859
6856
  text?: string | undefined;
@@ -7745,7 +7742,6 @@ export declare function createApp(deps: ServerDeps): import("hono/hono-base").Ho
7745
7742
  } | {
7746
7743
  role: "worker";
7747
7744
  parentRunId: string;
7748
- supervisorRunId?: string | undefined;
7749
7745
  wait?: {
7750
7746
  requestIds?: string[] | undefined;
7751
7747
  phase: "parked" | "registered" | "wake-pending";
@@ -7917,7 +7913,6 @@ export declare function createApp(deps: ServerDeps): import("hono/hono-base").Ho
7917
7913
  } | {
7918
7914
  role: "worker";
7919
7915
  parentRunId: string;
7920
- supervisorRunId?: string | undefined;
7921
7916
  wait?: {
7922
7917
  requestIds?: string[] | undefined;
7923
7918
  phase: "parked" | "registered" | "wake-pending";
@@ -8027,12 +8022,10 @@ export declare function createApp(deps: ServerDeps): import("hono/hono-base").Ho
8027
8022
  } | {
8028
8023
  output: {
8029
8024
  parentRunId?: string | undefined;
8030
- supervisorRunId?: string | undefined;
8031
8025
  workers: {
8032
8026
  workerId: string;
8033
8027
  settled: boolean;
8034
8028
  parentRunId: string;
8035
- supervisorRunId?: string | undefined;
8036
8029
  status: "cancelled" | "done" | "failed" | "queued" | "review" | "running" | "waiting";
8037
8030
  currentStepId?: string | undefined;
8038
8031
  workspace: {
@@ -8119,6 +8112,7 @@ export declare function createApp(deps: ServerDeps): import("hono/hono-base").Ho
8119
8112
  phase: "cleaning" | "complete" | "incomplete" | "requested" | "terminating";
8120
8113
  remaining: ("branch" | "process" | "worktree")[];
8121
8114
  error?: string | undefined;
8115
+ discardWork?: true | undefined;
8122
8116
  retry?: {
8123
8117
  attempts: number;
8124
8118
  nextAt: string;
@@ -8192,7 +8186,9 @@ export declare function createApp(deps: ServerDeps): import("hono/hono-base").Ho
8192
8186
  id: string;
8193
8187
  };
8194
8188
  } & {
8195
- json: Record<string, never>;
8189
+ json: {
8190
+ discardWork?: true | undefined;
8191
+ };
8196
8192
  };
8197
8193
  } | {
8198
8194
  output: {
@@ -8210,12 +8206,18 @@ export declare function createApp(deps: ServerDeps): import("hono/hono-base").Ho
8210
8206
  id: string;
8211
8207
  };
8212
8208
  } & {
8213
- json: Record<string, never>;
8209
+ json: {
8210
+ discardWork?: true | undefined;
8211
+ };
8214
8212
  };
8215
8213
  } | {
8216
8214
  output: {
8217
8215
  workerId: string;
8218
8216
  state: "complete" | "incomplete";
8217
+ work?: {
8218
+ uncommittedFiles: number;
8219
+ commits: number;
8220
+ } | undefined;
8219
8221
  deleted?: ({
8220
8222
  kind: "worktree";
8221
8223
  path: string;
@@ -8237,12 +8239,18 @@ export declare function createApp(deps: ServerDeps): import("hono/hono-base").Ho
8237
8239
  id: string;
8238
8240
  };
8239
8241
  } & {
8240
- json: Record<string, never>;
8242
+ json: {
8243
+ discardWork?: true | undefined;
8244
+ };
8241
8245
  };
8242
8246
  } | {
8243
8247
  output: {
8244
8248
  workerId: string;
8245
8249
  state: "complete" | "incomplete";
8250
+ work?: {
8251
+ uncommittedFiles: number;
8252
+ commits: number;
8253
+ } | undefined;
8246
8254
  deleted?: ({
8247
8255
  kind: "worktree";
8248
8256
  path: string;
@@ -8264,7 +8272,9 @@ export declare function createApp(deps: ServerDeps): import("hono/hono-base").Ho
8264
8272
  id: string;
8265
8273
  };
8266
8274
  } & {
8267
- json: Record<string, never>;
8275
+ json: {
8276
+ discardWork?: true | undefined;
8277
+ };
8268
8278
  };
8269
8279
  };
8270
8280
  };
@@ -9082,7 +9092,6 @@ export declare function createApp(deps: ServerDeps): import("hono/hono-base").Ho
9082
9092
  requestId: string;
9083
9093
  workerId: string;
9084
9094
  requestHash: string;
9085
- supervisorRunId?: string | undefined;
9086
9095
  deletion?: {
9087
9096
  phase: "complete" | "pending";
9088
9097
  revision: number;
@@ -9225,7 +9234,6 @@ export declare function createApp(deps: ServerDeps): import("hono/hono-base").Ho
9225
9234
  children?: any | undefined;
9226
9235
  } | undefined;
9227
9236
  parentRunId: string;
9228
- supervisorRunId?: string | undefined;
9229
9237
  workspace: {
9230
9238
  ownerRunId: string;
9231
9239
  resourceId: string;
@@ -9246,6 +9254,7 @@ export declare function createApp(deps: ServerDeps): import("hono/hono-base").Ho
9246
9254
  phase: "cleaning" | "complete" | "incomplete" | "requested" | "terminating";
9247
9255
  remaining: ("branch" | "process" | "worktree")[];
9248
9256
  error?: string | undefined;
9257
+ discardWork?: true | undefined;
9249
9258
  } | undefined;
9250
9259
  context?: {
9251
9260
  text?: string | undefined;
@@ -10219,7 +10228,6 @@ export declare function createApp(deps: ServerDeps): import("hono/hono-base").Ho
10219
10228
  requestId: string;
10220
10229
  workerId: string;
10221
10230
  requestHash: string;
10222
- supervisorRunId?: string | undefined;
10223
10231
  deletion?: {
10224
10232
  phase: "complete" | "pending";
10225
10233
  revision: number;
@@ -10362,7 +10370,6 @@ export declare function createApp(deps: ServerDeps): import("hono/hono-base").Ho
10362
10370
  children?: any | undefined;
10363
10371
  } | undefined;
10364
10372
  parentRunId: string;
10365
- supervisorRunId?: string | undefined;
10366
10373
  workspace: {
10367
10374
  ownerRunId: string;
10368
10375
  resourceId: string;
@@ -10383,6 +10390,7 @@ export declare function createApp(deps: ServerDeps): import("hono/hono-base").Ho
10383
10390
  phase: "cleaning" | "complete" | "incomplete" | "requested" | "terminating";
10384
10391
  remaining: ("branch" | "process" | "worktree")[];
10385
10392
  error?: string | undefined;
10393
+ discardWork?: true | undefined;
10386
10394
  } | undefined;
10387
10395
  context?: {
10388
10396
  text?: string | undefined;
@@ -11357,7 +11365,6 @@ export declare function createApp(deps: ServerDeps): import("hono/hono-base").Ho
11357
11365
  requestId: string;
11358
11366
  workerId: string;
11359
11367
  requestHash: string;
11360
- supervisorRunId?: string | undefined;
11361
11368
  deletion?: {
11362
11369
  phase: "complete" | "pending";
11363
11370
  revision: number;
@@ -11500,7 +11507,6 @@ export declare function createApp(deps: ServerDeps): import("hono/hono-base").Ho
11500
11507
  children?: any | undefined;
11501
11508
  } | undefined;
11502
11509
  parentRunId: string;
11503
- supervisorRunId?: string | undefined;
11504
11510
  workspace: {
11505
11511
  ownerRunId: string;
11506
11512
  resourceId: string;
@@ -11521,6 +11527,7 @@ export declare function createApp(deps: ServerDeps): import("hono/hono-base").Ho
11521
11527
  phase: "cleaning" | "complete" | "incomplete" | "requested" | "terminating";
11522
11528
  remaining: ("branch" | "process" | "worktree")[];
11523
11529
  error?: string | undefined;
11530
+ discardWork?: true | undefined;
11524
11531
  } | undefined;
11525
11532
  context?: {
11526
11533
  text?: string | undefined;
@@ -12522,7 +12529,6 @@ export declare function createApp(deps: ServerDeps): import("hono/hono-base").Ho
12522
12529
  requestId: string;
12523
12530
  workerId: string;
12524
12531
  requestHash: string;
12525
- supervisorRunId?: string | undefined;
12526
12532
  deletion?: {
12527
12533
  phase: "complete" | "pending";
12528
12534
  revision: number;
@@ -12665,7 +12671,6 @@ export declare function createApp(deps: ServerDeps): import("hono/hono-base").Ho
12665
12671
  children?: any | undefined;
12666
12672
  } | undefined;
12667
12673
  parentRunId: string;
12668
- supervisorRunId?: string | undefined;
12669
12674
  workspace: {
12670
12675
  ownerRunId: string;
12671
12676
  resourceId: string;
@@ -12686,6 +12691,7 @@ export declare function createApp(deps: ServerDeps): import("hono/hono-base").Ho
12686
12691
  phase: "cleaning" | "complete" | "incomplete" | "requested" | "terminating";
12687
12692
  remaining: ("branch" | "process" | "worktree")[];
12688
12693
  error?: string | undefined;
12694
+ discardWork?: true | undefined;
12689
12695
  } | undefined;
12690
12696
  context?: {
12691
12697
  text?: string | undefined;
@@ -13635,7 +13641,6 @@ export declare function createApp(deps: ServerDeps): import("hono/hono-base").Ho
13635
13641
  requestId: string;
13636
13642
  workerId: string;
13637
13643
  requestHash: string;
13638
- supervisorRunId?: string | undefined;
13639
13644
  deletion?: {
13640
13645
  phase: "complete" | "pending";
13641
13646
  revision: number;
@@ -13778,7 +13783,6 @@ export declare function createApp(deps: ServerDeps): import("hono/hono-base").Ho
13778
13783
  children?: any | undefined;
13779
13784
  } | undefined;
13780
13785
  parentRunId: string;
13781
- supervisorRunId?: string | undefined;
13782
13786
  workspace: {
13783
13787
  ownerRunId: string;
13784
13788
  resourceId: string;
@@ -13799,6 +13803,7 @@ export declare function createApp(deps: ServerDeps): import("hono/hono-base").Ho
13799
13803
  phase: "cleaning" | "complete" | "incomplete" | "requested" | "terminating";
13800
13804
  remaining: ("branch" | "process" | "worktree")[];
13801
13805
  error?: string | undefined;
13806
+ discardWork?: true | undefined;
13802
13807
  } | undefined;
13803
13808
  context?: {
13804
13809
  text?: string | undefined;
@@ -14748,7 +14753,6 @@ export declare function createApp(deps: ServerDeps): import("hono/hono-base").Ho
14748
14753
  requestId: string;
14749
14754
  workerId: string;
14750
14755
  requestHash: string;
14751
- supervisorRunId?: string | undefined;
14752
14756
  deletion?: {
14753
14757
  phase: "complete" | "pending";
14754
14758
  revision: number;
@@ -14891,7 +14895,6 @@ export declare function createApp(deps: ServerDeps): import("hono/hono-base").Ho
14891
14895
  children?: any | undefined;
14892
14896
  } | undefined;
14893
14897
  parentRunId: string;
14894
- supervisorRunId?: string | undefined;
14895
14898
  workspace: {
14896
14899
  ownerRunId: string;
14897
14900
  resourceId: string;
@@ -14912,6 +14915,7 @@ export declare function createApp(deps: ServerDeps): import("hono/hono-base").Ho
14912
14915
  phase: "cleaning" | "complete" | "incomplete" | "requested" | "terminating";
14913
14916
  remaining: ("branch" | "process" | "worktree")[];
14914
14917
  error?: string | undefined;
14918
+ discardWork?: true | undefined;
14915
14919
  } | undefined;
14916
14920
  context?: {
14917
14921
  text?: string | undefined;
@@ -15267,7 +15271,6 @@ export declare function createApp(deps: ServerDeps): import("hono/hono-base").Ho
15267
15271
  requestId: string;
15268
15272
  workerId: string;
15269
15273
  requestHash: string;
15270
- supervisorRunId?: string | undefined;
15271
15274
  deletion?: {
15272
15275
  phase: "complete" | "pending";
15273
15276
  revision: number;
@@ -15410,7 +15413,6 @@ export declare function createApp(deps: ServerDeps): import("hono/hono-base").Ho
15410
15413
  children?: any | undefined;
15411
15414
  } | undefined;
15412
15415
  parentRunId: string;
15413
- supervisorRunId?: string | undefined;
15414
15416
  workspace: {
15415
15417
  ownerRunId: string;
15416
15418
  resourceId: string;
@@ -15431,6 +15433,7 @@ export declare function createApp(deps: ServerDeps): import("hono/hono-base").Ho
15431
15433
  phase: "cleaning" | "complete" | "incomplete" | "requested" | "terminating";
15432
15434
  remaining: ("branch" | "process" | "worktree")[];
15433
15435
  error?: string | undefined;
15436
+ discardWork?: true | undefined;
15434
15437
  } | undefined;
15435
15438
  context?: {
15436
15439
  text?: string | undefined;
@@ -17177,7 +17180,6 @@ export declare function createApp(deps: ServerDeps): import("hono/hono-base").Ho
17177
17180
  requestId: string;
17178
17181
  workerId: string;
17179
17182
  requestHash: string;
17180
- supervisorRunId?: string | undefined;
17181
17183
  deletion?: {
17182
17184
  phase: "complete" | "pending";
17183
17185
  revision: number;
@@ -17320,7 +17322,6 @@ export declare function createApp(deps: ServerDeps): import("hono/hono-base").Ho
17320
17322
  children?: any | undefined;
17321
17323
  } | undefined;
17322
17324
  parentRunId: string;
17323
- supervisorRunId?: string | undefined;
17324
17325
  workspace: {
17325
17326
  ownerRunId: string;
17326
17327
  resourceId: string;
@@ -17341,6 +17342,7 @@ export declare function createApp(deps: ServerDeps): import("hono/hono-base").Ho
17341
17342
  phase: "cleaning" | "complete" | "incomplete" | "requested" | "terminating";
17342
17343
  remaining: ("branch" | "process" | "worktree")[];
17343
17344
  error?: string | undefined;
17345
+ discardWork?: true | undefined;
17344
17346
  } | undefined;
17345
17347
  context?: {
17346
17348
  text?: string | undefined;
@@ -18994,94 +18996,6 @@ export declare function createApp(deps: ServerDeps): import("hono/hono-base").Ho
18994
18996
  };
18995
18997
  };
18996
18998
  };
18997
- }, "/"> | import("hono/types").MergeSchemaPath<{
18998
- "/reports/state": {
18999
- $get: {
19000
- output: {
19001
- error: string;
19002
- };
19003
- outputFormat: "json";
19004
- status: 409;
19005
- input: {};
19006
- } | {
19007
- output: {
19008
- epoch: string;
19009
- generation: number;
19010
- metadataGeneration: number;
19011
- };
19012
- outputFormat: "json";
19013
- status: import("hono/utils/http-status").ContentfulStatusCode;
19014
- input: {};
19015
- };
19016
- };
19017
- } & {
19018
- "/reports": {
19019
- $get: {
19020
- output: {
19021
- error: string;
19022
- code?: "invalid_input" | undefined;
19023
- };
19024
- outputFormat: "json";
19025
- status: 400;
19026
- input: {
19027
- query: {
19028
- q?: string | undefined;
19029
- before?: string | undefined;
19030
- limit?: number | undefined;
19031
- };
19032
- };
19033
- } | {
19034
- output: {
19035
- error: string;
19036
- };
19037
- outputFormat: "json";
19038
- status: 409;
19039
- input: {
19040
- query: {
19041
- q?: string | undefined;
19042
- before?: string | undefined;
19043
- limit?: number | undefined;
19044
- };
19045
- };
19046
- } | {
19047
- output: {
19048
- error: string;
19049
- };
19050
- outputFormat: "json";
19051
- status: 400;
19052
- input: {
19053
- query: {
19054
- q?: string | undefined;
19055
- before?: string | undefined;
19056
- limit?: number | undefined;
19057
- };
19058
- };
19059
- } | {
19060
- output: {
19061
- reports: {
19062
- id: string;
19063
- runId: string;
19064
- name: string;
19065
- title: string;
19066
- createdAt: string;
19067
- size: number;
19068
- taskTitle: string;
19069
- taskStatus: "cancelled" | "done" | "failed" | "queued" | "review" | "running" | "waiting";
19070
- }[];
19071
- nextCursor: string | null;
19072
- total: number;
19073
- };
19074
- outputFormat: "json";
19075
- status: import("hono/utils/http-status").ContentfulStatusCode;
19076
- input: {
19077
- query: {
19078
- q?: string | undefined;
19079
- before?: string | undefined;
19080
- limit?: number | undefined;
19081
- };
19082
- };
19083
- };
19084
- };
19085
18999
  }, "/"> | import("hono/types").MergeSchemaPath<{
19086
19000
  "/ui-state": {
19087
19001
  $get: {
@@ -19596,6 +19510,94 @@ export declare function createApp(deps: ServerDeps): import("hono/hono-base").Ho
19596
19510
  };
19597
19511
  };
19598
19512
  };
19513
+ }, "/"> | import("hono/types").MergeSchemaPath<{
19514
+ "/reports/state": {
19515
+ $get: {
19516
+ output: {
19517
+ error: string;
19518
+ };
19519
+ outputFormat: "json";
19520
+ status: 409;
19521
+ input: {};
19522
+ } | {
19523
+ output: {
19524
+ epoch: string;
19525
+ generation: number;
19526
+ metadataGeneration: number;
19527
+ };
19528
+ outputFormat: "json";
19529
+ status: import("hono/utils/http-status").ContentfulStatusCode;
19530
+ input: {};
19531
+ };
19532
+ };
19533
+ } & {
19534
+ "/reports": {
19535
+ $get: {
19536
+ output: {
19537
+ error: string;
19538
+ code?: "invalid_input" | undefined;
19539
+ };
19540
+ outputFormat: "json";
19541
+ status: 400;
19542
+ input: {
19543
+ query: {
19544
+ q?: string | undefined;
19545
+ before?: string | undefined;
19546
+ limit?: number | undefined;
19547
+ };
19548
+ };
19549
+ } | {
19550
+ output: {
19551
+ error: string;
19552
+ };
19553
+ outputFormat: "json";
19554
+ status: 409;
19555
+ input: {
19556
+ query: {
19557
+ q?: string | undefined;
19558
+ before?: string | undefined;
19559
+ limit?: number | undefined;
19560
+ };
19561
+ };
19562
+ } | {
19563
+ output: {
19564
+ error: string;
19565
+ };
19566
+ outputFormat: "json";
19567
+ status: 400;
19568
+ input: {
19569
+ query: {
19570
+ q?: string | undefined;
19571
+ before?: string | undefined;
19572
+ limit?: number | undefined;
19573
+ };
19574
+ };
19575
+ } | {
19576
+ output: {
19577
+ reports: {
19578
+ id: string;
19579
+ runId: string;
19580
+ name: string;
19581
+ title: string;
19582
+ createdAt: string;
19583
+ size: number;
19584
+ taskTitle: string;
19585
+ taskStatus: "cancelled" | "done" | "failed" | "queued" | "review" | "running" | "waiting";
19586
+ }[];
19587
+ nextCursor: string | null;
19588
+ total: number;
19589
+ };
19590
+ outputFormat: "json";
19591
+ status: import("hono/utils/http-status").ContentfulStatusCode;
19592
+ input: {
19593
+ query: {
19594
+ q?: string | undefined;
19595
+ before?: string | undefined;
19596
+ limit?: number | undefined;
19597
+ };
19598
+ };
19599
+ };
19600
+ };
19599
19601
  }, "/"> | import("hono/types").MergeSchemaPath<{
19600
19602
  "/worktrees": {
19601
19603
  $get: {
@@ -22584,7 +22586,6 @@ export declare function createApp(deps: ServerDeps): import("hono/hono-base").Ho
22584
22586
  requestId: string;
22585
22587
  workerId: string;
22586
22588
  requestHash: string;
22587
- supervisorRunId?: string | undefined;
22588
22589
  deletion?: {
22589
22590
  phase: "complete" | "pending";
22590
22591
  revision: number;
@@ -22727,7 +22728,6 @@ export declare function createApp(deps: ServerDeps): import("hono/hono-base").Ho
22727
22728
  children?: any | undefined;
22728
22729
  } | undefined;
22729
22730
  parentRunId: string;
22730
- supervisorRunId?: string | undefined;
22731
22731
  workspace: {
22732
22732
  ownerRunId: string;
22733
22733
  resourceId: string;
@@ -22748,6 +22748,7 @@ export declare function createApp(deps: ServerDeps): import("hono/hono-base").Ho
22748
22748
  phase: "cleaning" | "complete" | "incomplete" | "requested" | "terminating";
22749
22749
  remaining: ("branch" | "process" | "worktree")[];
22750
22750
  error?: string | undefined;
22751
+ discardWork?: true | undefined;
22751
22752
  } | undefined;
22752
22753
  context?: {
22753
22754
  text?: string | undefined;
@@ -23639,7 +23640,6 @@ export declare function createApp(deps: ServerDeps): import("hono/hono-base").Ho
23639
23640
  } | {
23640
23641
  role: "worker";
23641
23642
  parentRunId: string;
23642
- supervisorRunId?: string | undefined;
23643
23643
  wait?: {
23644
23644
  requestIds?: string[] | undefined;
23645
23645
  phase: "parked" | "registered" | "wake-pending";
@@ -23811,7 +23811,6 @@ export declare function createApp(deps: ServerDeps): import("hono/hono-base").Ho
23811
23811
  } | {
23812
23812
  role: "worker";
23813
23813
  parentRunId: string;
23814
- supervisorRunId?: string | undefined;
23815
23814
  wait?: {
23816
23815
  requestIds?: string[] | undefined;
23817
23816
  phase: "parked" | "registered" | "wake-pending";
@@ -23921,12 +23920,10 @@ export declare function createApp(deps: ServerDeps): import("hono/hono-base").Ho
23921
23920
  } | {
23922
23921
  output: {
23923
23922
  parentRunId?: string | undefined;
23924
- supervisorRunId?: string | undefined;
23925
23923
  workers: {
23926
23924
  workerId: string;
23927
23925
  settled: boolean;
23928
23926
  parentRunId: string;
23929
- supervisorRunId?: string | undefined;
23930
23927
  status: "cancelled" | "done" | "failed" | "queued" | "review" | "running" | "waiting";
23931
23928
  currentStepId?: string | undefined;
23932
23929
  workspace: {
@@ -24013,6 +24010,7 @@ export declare function createApp(deps: ServerDeps): import("hono/hono-base").Ho
24013
24010
  phase: "cleaning" | "complete" | "incomplete" | "requested" | "terminating";
24014
24011
  remaining: ("branch" | "process" | "worktree")[];
24015
24012
  error?: string | undefined;
24013
+ discardWork?: true | undefined;
24016
24014
  retry?: {
24017
24015
  attempts: number;
24018
24016
  nextAt: string;
@@ -24086,7 +24084,9 @@ export declare function createApp(deps: ServerDeps): import("hono/hono-base").Ho
24086
24084
  id: string;
24087
24085
  };
24088
24086
  } & {
24089
- json: Record<string, never>;
24087
+ json: {
24088
+ discardWork?: true | undefined;
24089
+ };
24090
24090
  };
24091
24091
  } | {
24092
24092
  output: {
@@ -24104,12 +24104,18 @@ export declare function createApp(deps: ServerDeps): import("hono/hono-base").Ho
24104
24104
  id: string;
24105
24105
  };
24106
24106
  } & {
24107
- json: Record<string, never>;
24107
+ json: {
24108
+ discardWork?: true | undefined;
24109
+ };
24108
24110
  };
24109
24111
  } | {
24110
24112
  output: {
24111
24113
  workerId: string;
24112
24114
  state: "complete" | "incomplete";
24115
+ work?: {
24116
+ uncommittedFiles: number;
24117
+ commits: number;
24118
+ } | undefined;
24113
24119
  deleted?: ({
24114
24120
  kind: "worktree";
24115
24121
  path: string;
@@ -24131,12 +24137,18 @@ export declare function createApp(deps: ServerDeps): import("hono/hono-base").Ho
24131
24137
  id: string;
24132
24138
  };
24133
24139
  } & {
24134
- json: Record<string, never>;
24140
+ json: {
24141
+ discardWork?: true | undefined;
24142
+ };
24135
24143
  };
24136
24144
  } | {
24137
24145
  output: {
24138
24146
  workerId: string;
24139
24147
  state: "complete" | "incomplete";
24148
+ work?: {
24149
+ uncommittedFiles: number;
24150
+ commits: number;
24151
+ } | undefined;
24140
24152
  deleted?: ({
24141
24153
  kind: "worktree";
24142
24154
  path: string;
@@ -24158,7 +24170,9 @@ export declare function createApp(deps: ServerDeps): import("hono/hono-base").Ho
24158
24170
  id: string;
24159
24171
  };
24160
24172
  } & {
24161
- json: Record<string, never>;
24173
+ json: {
24174
+ discardWork?: true | undefined;
24175
+ };
24162
24176
  };
24163
24177
  };
24164
24178
  };
@@ -24976,7 +24990,6 @@ export declare function createApp(deps: ServerDeps): import("hono/hono-base").Ho
24976
24990
  requestId: string;
24977
24991
  workerId: string;
24978
24992
  requestHash: string;
24979
- supervisorRunId?: string | undefined;
24980
24993
  deletion?: {
24981
24994
  phase: "complete" | "pending";
24982
24995
  revision: number;
@@ -25119,7 +25132,6 @@ export declare function createApp(deps: ServerDeps): import("hono/hono-base").Ho
25119
25132
  children?: any | undefined;
25120
25133
  } | undefined;
25121
25134
  parentRunId: string;
25122
- supervisorRunId?: string | undefined;
25123
25135
  workspace: {
25124
25136
  ownerRunId: string;
25125
25137
  resourceId: string;
@@ -25140,6 +25152,7 @@ export declare function createApp(deps: ServerDeps): import("hono/hono-base").Ho
25140
25152
  phase: "cleaning" | "complete" | "incomplete" | "requested" | "terminating";
25141
25153
  remaining: ("branch" | "process" | "worktree")[];
25142
25154
  error?: string | undefined;
25155
+ discardWork?: true | undefined;
25143
25156
  } | undefined;
25144
25157
  context?: {
25145
25158
  text?: string | undefined;
@@ -26113,7 +26126,6 @@ export declare function createApp(deps: ServerDeps): import("hono/hono-base").Ho
26113
26126
  requestId: string;
26114
26127
  workerId: string;
26115
26128
  requestHash: string;
26116
- supervisorRunId?: string | undefined;
26117
26129
  deletion?: {
26118
26130
  phase: "complete" | "pending";
26119
26131
  revision: number;
@@ -26256,7 +26268,6 @@ export declare function createApp(deps: ServerDeps): import("hono/hono-base").Ho
26256
26268
  children?: any | undefined;
26257
26269
  } | undefined;
26258
26270
  parentRunId: string;
26259
- supervisorRunId?: string | undefined;
26260
26271
  workspace: {
26261
26272
  ownerRunId: string;
26262
26273
  resourceId: string;
@@ -26277,6 +26288,7 @@ export declare function createApp(deps: ServerDeps): import("hono/hono-base").Ho
26277
26288
  phase: "cleaning" | "complete" | "incomplete" | "requested" | "terminating";
26278
26289
  remaining: ("branch" | "process" | "worktree")[];
26279
26290
  error?: string | undefined;
26291
+ discardWork?: true | undefined;
26280
26292
  } | undefined;
26281
26293
  context?: {
26282
26294
  text?: string | undefined;
@@ -27251,7 +27263,6 @@ export declare function createApp(deps: ServerDeps): import("hono/hono-base").Ho
27251
27263
  requestId: string;
27252
27264
  workerId: string;
27253
27265
  requestHash: string;
27254
- supervisorRunId?: string | undefined;
27255
27266
  deletion?: {
27256
27267
  phase: "complete" | "pending";
27257
27268
  revision: number;
@@ -27394,7 +27405,6 @@ export declare function createApp(deps: ServerDeps): import("hono/hono-base").Ho
27394
27405
  children?: any | undefined;
27395
27406
  } | undefined;
27396
27407
  parentRunId: string;
27397
- supervisorRunId?: string | undefined;
27398
27408
  workspace: {
27399
27409
  ownerRunId: string;
27400
27410
  resourceId: string;
@@ -27415,6 +27425,7 @@ export declare function createApp(deps: ServerDeps): import("hono/hono-base").Ho
27415
27425
  phase: "cleaning" | "complete" | "incomplete" | "requested" | "terminating";
27416
27426
  remaining: ("branch" | "process" | "worktree")[];
27417
27427
  error?: string | undefined;
27428
+ discardWork?: true | undefined;
27418
27429
  } | undefined;
27419
27430
  context?: {
27420
27431
  text?: string | undefined;
@@ -28416,7 +28427,6 @@ export declare function createApp(deps: ServerDeps): import("hono/hono-base").Ho
28416
28427
  requestId: string;
28417
28428
  workerId: string;
28418
28429
  requestHash: string;
28419
- supervisorRunId?: string | undefined;
28420
28430
  deletion?: {
28421
28431
  phase: "complete" | "pending";
28422
28432
  revision: number;
@@ -28559,7 +28569,6 @@ export declare function createApp(deps: ServerDeps): import("hono/hono-base").Ho
28559
28569
  children?: any | undefined;
28560
28570
  } | undefined;
28561
28571
  parentRunId: string;
28562
- supervisorRunId?: string | undefined;
28563
28572
  workspace: {
28564
28573
  ownerRunId: string;
28565
28574
  resourceId: string;
@@ -28580,6 +28589,7 @@ export declare function createApp(deps: ServerDeps): import("hono/hono-base").Ho
28580
28589
  phase: "cleaning" | "complete" | "incomplete" | "requested" | "terminating";
28581
28590
  remaining: ("branch" | "process" | "worktree")[];
28582
28591
  error?: string | undefined;
28592
+ discardWork?: true | undefined;
28583
28593
  } | undefined;
28584
28594
  context?: {
28585
28595
  text?: string | undefined;
@@ -29529,7 +29539,6 @@ export declare function createApp(deps: ServerDeps): import("hono/hono-base").Ho
29529
29539
  requestId: string;
29530
29540
  workerId: string;
29531
29541
  requestHash: string;
29532
- supervisorRunId?: string | undefined;
29533
29542
  deletion?: {
29534
29543
  phase: "complete" | "pending";
29535
29544
  revision: number;
@@ -29672,7 +29681,6 @@ export declare function createApp(deps: ServerDeps): import("hono/hono-base").Ho
29672
29681
  children?: any | undefined;
29673
29682
  } | undefined;
29674
29683
  parentRunId: string;
29675
- supervisorRunId?: string | undefined;
29676
29684
  workspace: {
29677
29685
  ownerRunId: string;
29678
29686
  resourceId: string;
@@ -29693,6 +29701,7 @@ export declare function createApp(deps: ServerDeps): import("hono/hono-base").Ho
29693
29701
  phase: "cleaning" | "complete" | "incomplete" | "requested" | "terminating";
29694
29702
  remaining: ("branch" | "process" | "worktree")[];
29695
29703
  error?: string | undefined;
29704
+ discardWork?: true | undefined;
29696
29705
  } | undefined;
29697
29706
  context?: {
29698
29707
  text?: string | undefined;
@@ -30642,7 +30651,6 @@ export declare function createApp(deps: ServerDeps): import("hono/hono-base").Ho
30642
30651
  requestId: string;
30643
30652
  workerId: string;
30644
30653
  requestHash: string;
30645
- supervisorRunId?: string | undefined;
30646
30654
  deletion?: {
30647
30655
  phase: "complete" | "pending";
30648
30656
  revision: number;
@@ -30785,7 +30793,6 @@ export declare function createApp(deps: ServerDeps): import("hono/hono-base").Ho
30785
30793
  children?: any | undefined;
30786
30794
  } | undefined;
30787
30795
  parentRunId: string;
30788
- supervisorRunId?: string | undefined;
30789
30796
  workspace: {
30790
30797
  ownerRunId: string;
30791
30798
  resourceId: string;
@@ -30806,6 +30813,7 @@ export declare function createApp(deps: ServerDeps): import("hono/hono-base").Ho
30806
30813
  phase: "cleaning" | "complete" | "incomplete" | "requested" | "terminating";
30807
30814
  remaining: ("branch" | "process" | "worktree")[];
30808
30815
  error?: string | undefined;
30816
+ discardWork?: true | undefined;
30809
30817
  } | undefined;
30810
30818
  context?: {
30811
30819
  text?: string | undefined;
@@ -31161,7 +31169,6 @@ export declare function createApp(deps: ServerDeps): import("hono/hono-base").Ho
31161
31169
  requestId: string;
31162
31170
  workerId: string;
31163
31171
  requestHash: string;
31164
- supervisorRunId?: string | undefined;
31165
31172
  deletion?: {
31166
31173
  phase: "complete" | "pending";
31167
31174
  revision: number;
@@ -31304,7 +31311,6 @@ export declare function createApp(deps: ServerDeps): import("hono/hono-base").Ho
31304
31311
  children?: any | undefined;
31305
31312
  } | undefined;
31306
31313
  parentRunId: string;
31307
- supervisorRunId?: string | undefined;
31308
31314
  workspace: {
31309
31315
  ownerRunId: string;
31310
31316
  resourceId: string;
@@ -31325,6 +31331,7 @@ export declare function createApp(deps: ServerDeps): import("hono/hono-base").Ho
31325
31331
  phase: "cleaning" | "complete" | "incomplete" | "requested" | "terminating";
31326
31332
  remaining: ("branch" | "process" | "worktree")[];
31327
31333
  error?: string | undefined;
31334
+ discardWork?: true | undefined;
31328
31335
  } | undefined;
31329
31336
  context?: {
31330
31337
  text?: string | undefined;
@@ -33071,7 +33078,6 @@ export declare function createApp(deps: ServerDeps): import("hono/hono-base").Ho
33071
33078
  requestId: string;
33072
33079
  workerId: string;
33073
33080
  requestHash: string;
33074
- supervisorRunId?: string | undefined;
33075
33081
  deletion?: {
33076
33082
  phase: "complete" | "pending";
33077
33083
  revision: number;
@@ -33214,7 +33220,6 @@ export declare function createApp(deps: ServerDeps): import("hono/hono-base").Ho
33214
33220
  children?: any | undefined;
33215
33221
  } | undefined;
33216
33222
  parentRunId: string;
33217
- supervisorRunId?: string | undefined;
33218
33223
  workspace: {
33219
33224
  ownerRunId: string;
33220
33225
  resourceId: string;
@@ -33235,6 +33240,7 @@ export declare function createApp(deps: ServerDeps): import("hono/hono-base").Ho
33235
33240
  phase: "cleaning" | "complete" | "incomplete" | "requested" | "terminating";
33236
33241
  remaining: ("branch" | "process" | "worktree")[];
33237
33242
  error?: string | undefined;
33243
+ discardWork?: true | undefined;
33238
33244
  } | undefined;
33239
33245
  context?: {
33240
33246
  text?: string | undefined;