@hearsay-tools/squawk 0.19.0-pr4424.8672 → 0.19.0-pr4427.8675

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 (87) hide show
  1. package/dist/contract/index.js +14 -55
  2. package/dist/contract/runs.d.ts +0 -50
  3. package/dist/contract/workspace-events.d.ts +0 -18
  4. package/dist/delegation/transport.d.ts +65 -65
  5. package/dist/server/projects-routes.d.ts +45 -45
  6. package/dist/server/runs-routes.d.ts +0 -8
  7. package/dist/server/server.d.ts +8 -32
  8. package/dist/server/workspace-routes.d.ts +0 -8
  9. package/package.json +4 -4
  10. package/web/dist/assets/{accounts-section-CzFhdKWy.js → accounts-section-RDVTJfi7.js} +1 -1
  11. package/web/dist/assets/activity-motion-B7km8QVK.js +2 -0
  12. package/web/dist/assets/{activity-route-Cvw0jXpy.js → activity-route-CjE0yxn0.js} +1 -1
  13. package/web/dist/assets/{agent-config-section-BCzxsvys.js → agent-config-section-DQ1RaVK2.js} +1 -1
  14. package/web/dist/assets/{agent-defaults-section-DMRK-Qlp.js → agent-defaults-section-Dzm7jIza.js} +1 -1
  15. package/web/dist/assets/{appearance-Ew3vb_-K.js → appearance-DQLHHfI4.js} +1 -1
  16. package/web/dist/assets/{archive-on-merge-field-g87CG6RL.js → archive-on-merge-field-C7_Fwy2A.js} +1 -1
  17. package/web/dist/assets/attention-CBCeJN5w.js +1 -0
  18. package/web/dist/assets/automations-route-BcdL5f0K.js +2 -0
  19. package/web/dist/assets/commit-list-CN1zX-0X.js +1 -0
  20. package/web/dist/assets/{diff-controls-CmYvdEGt.js → diff-controls-BRa3141W.js} +1 -1
  21. package/web/dist/assets/diff-hxqBOfZH.js +3 -0
  22. package/web/dist/assets/{diff-view-DV6muJdZ.js → diff-view-CwlKCj5V.js} +1 -1
  23. package/web/dist/assets/{file-preview-CTPfK-oR.js → file-preview-VvCzp02k.js} +1 -1
  24. package/web/dist/assets/{folder-browser-DnSFycbU.js → folder-browser-B7IbnF0d.js} +1 -1
  25. package/web/dist/assets/git-toolbar-BulcGzsv.js +1 -0
  26. package/web/dist/assets/github-By3yOcFH.js +1 -0
  27. package/web/dist/assets/{global-activity-route-Dvx2uk8w.js → global-activity-route-C4-bmfh_.js} +1 -1
  28. package/web/dist/assets/image-preview-Pgf8bnzY.js +1 -0
  29. package/web/dist/assets/index-C69_Sk06.css +1 -0
  30. package/web/dist/assets/index-DNQcTHxV.js +21 -0
  31. package/web/dist/assets/{label-o_DsEmPt.js → label-Bt8n7Spq.js} +1 -1
  32. package/web/dist/assets/{live-reads-Cgk2XbiP.js → live-reads-Crd6fVGH.js} +1 -1
  33. package/web/dist/assets/{markdown-CJzxFk0P.js → markdown-9L65ixU6.js} +1 -1
  34. package/web/dist/assets/{notifications-section-DNYO4sd4.js → notifications-section-QWmuj2j2.js} +1 -1
  35. package/web/dist/assets/{open-in-menu-Bzae69TK.js → open-in-menu-BPp88ouw.js} +1 -1
  36. package/web/dist/assets/{preview-pane-connected-CRooCkyb.js → preview-pane-connected-DAM2Snwh.js} +2 -2
  37. package/web/dist/assets/{project-location-D6riKh0Z.js → project-location-BRxXN249.js} +1 -1
  38. package/web/dist/assets/{project-router-CZ89wg-5.js → project-router-CLJTc7gv.js} +1 -1
  39. package/web/dist/assets/{project-scope-context-DIcqj4jJ.js → project-scope-context-Rv6S_BXt.js} +2 -2
  40. package/web/dist/assets/{projects-section-4rsb8E52.js → projects-section-DxubjpZI.js} +1 -1
  41. package/web/dist/assets/{prompt-templates-section-G3dlAOXt.js → prompt-templates-section-CkQneT1G.js} +1 -1
  42. package/web/dist/assets/{queries-DZhNVAD_.js → queries-qCF-eOqZ.js} +1 -1
  43. package/web/dist/assets/{reference-chip-DSJSqjmO.js → reference-chip-D0v0keVC.js} +1 -1
  44. package/web/dist/assets/{remote-settings-notice-GNs7i0kP.js → remote-settings-notice-COojb6XK.js} +1 -1
  45. package/web/dist/assets/repo-git-Mgk4Qcmo.js +1 -0
  46. package/web/dist/assets/{report-reader-CLlNdsZG.js → report-reader-zWwalJDN.js} +1 -1
  47. package/web/dist/assets/reports-BCHWt3zy.js +1 -0
  48. package/web/dist/assets/{resources-section-DhEoaA0K.js → resources-section-Cb2WIqNv.js} +1 -1
  49. package/web/dist/assets/run-header-DeprqSP7.js +2 -0
  50. package/web/dist/assets/{select-D3snxxoD.js → select-y3oRuA2s.js} +1 -1
  51. package/web/dist/assets/{session-context-section-esqZfONg.js → session-context-section-CiPNMiL7.js} +2 -2
  52. package/web/dist/assets/{settings-agent-picker-Dso2TmRM.js → settings-agent-picker-CJJJncuA.js} +1 -1
  53. package/web/dist/assets/{settings-shell-UO_0dSGl.js → settings-shell-CLToW28f.js} +1 -1
  54. package/web/dist/assets/{sidebar-section-pp7e3AZa.js → sidebar-section-VOYJarPd.js} +1 -1
  55. package/web/dist/assets/{skills-B99glme7.js → skills-BySF3yBA.js} +1 -1
  56. package/web/dist/assets/{tab-link-BGXFZZ_Z.js → tab-link-Bu1g-ArE.js} +1 -1
  57. package/web/dist/assets/task-changes-NUwvUglx.js +1 -0
  58. package/web/dist/assets/task-commits-CpV1Hz9L.js +1 -0
  59. package/web/dist/assets/{task-files-Csx1Bonx.js → task-files-Bu-L_NRW.js} +1 -1
  60. package/web/dist/assets/{task-github-item-D0kQ0K4S.js → task-github-item-DhiTqCjk.js} +1 -1
  61. package/web/dist/assets/{task-groups-DK0I9p71.js → task-groups-4tzKGROI.js} +1 -1
  62. package/web/dist/assets/{task-thread-DsMuGSug.js → task-thread-CKkTeQdi.js} +9 -9
  63. package/web/dist/assets/{tasks-table-BNFYIwtc.js → tasks-table-C5uoZMFs.js} +1 -1
  64. package/web/dist/assets/{thread-state-DMWi6eLk.js → thread-state-B_ZqjjRr.js} +1 -1
  65. package/web/dist/assets/{toaster-0sM0sfWx.js → toaster-BXnLIU3z.js} +1 -1
  66. package/web/dist/assets/use-hand-to-agent-state-K864D69i.js +1 -0
  67. package/web/dist/assets/{workflows-CxJvAn6z.js → workflows-DlTkuM0J.js} +3 -3
  68. package/web/dist/assets/{workspace-tools-DqJ8akIy.js → workspace-tools-BRK7f1Hk.js} +1 -1
  69. package/web/dist/assets/{worktrees-section-DBZZlAe0.js → worktrees-section-BXI0-7HH.js} +4 -4
  70. package/web/dist/index.html +15 -16
  71. package/web/dist/assets/activity-motion-D0Fch0mc.js +0 -2
  72. package/web/dist/assets/attention-80jX8HhC.js +0 -1
  73. package/web/dist/assets/automations-route-CRBtWEo1.js +0 -2
  74. package/web/dist/assets/commit-list-Cd14tNSj.js +0 -1
  75. package/web/dist/assets/diff-D55N_7Ul.js +0 -3
  76. package/web/dist/assets/diff-stat-U7DT4Ilj.js +0 -1
  77. package/web/dist/assets/git-toolbar-Dc_o1nrh.js +0 -1
  78. package/web/dist/assets/github-WYk7bQID.js +0 -1
  79. package/web/dist/assets/image-preview-2S3PEy8S.js +0 -1
  80. package/web/dist/assets/index-CGdnowj-.js +0 -21
  81. package/web/dist/assets/index-DAxuDJAo.css +0 -1
  82. package/web/dist/assets/repo-git-CvZTTKFl.js +0 -1
  83. package/web/dist/assets/reports-sl2SMDG1.js +0 -1
  84. package/web/dist/assets/run-header-DZoOLIBZ.js +0 -2
  85. package/web/dist/assets/task-changes-Tn9M2OPH.js +0 -1
  86. package/web/dist/assets/task-commits-BHDMp1sO.js +0 -1
  87. package/web/dist/assets/use-hand-to-agent-state-DqCW8Giu.js +0 -1
@@ -1482,20 +1482,6 @@ var continuationMessageSchema = queuedMessageSchema.extend({
1482
1482
  }).optional()
1483
1483
  });
1484
1484
 
1485
- // ../contract/src/usage-limit-hold.ts
1486
- function isUsageLimitHold(run) {
1487
- return run.status === "waiting" && run.autoResumeAt !== void 0;
1488
- }
1489
- function usageLimitHoldOf(run) {
1490
- if (!isUsageLimitHold(run)) return void 0;
1491
- return {
1492
- reason: run.autoResumeReason ?? "usage-limit",
1493
- resumeAt: run.autoResumeAt,
1494
- ...run.autoResumeAttempts === void 0 ? {} : { attempts: run.autoResumeAttempts },
1495
- ...run.error === void 0 ? {} : { error: run.error.slice(0, 2e3) }
1496
- };
1497
- }
1498
-
1499
1485
  // ../contract/src/waits.ts
1500
1486
  import { z as z21 } from "zod";
1501
1487
 
@@ -1628,6 +1614,20 @@ var ciWaitReceiptSchema = ciPrIdentitySchema.extend({
1628
1614
  phase: ciWaitSchema.shape.phase
1629
1615
  }).strict();
1630
1616
 
1617
+ // ../contract/src/usage-limit-hold.ts
1618
+ function isUsageLimitHold(run) {
1619
+ return run.status === "waiting" && run.autoResumeAt !== void 0;
1620
+ }
1621
+ function usageLimitHoldOf(run) {
1622
+ if (!isUsageLimitHold(run)) return void 0;
1623
+ return {
1624
+ reason: run.autoResumeReason ?? "usage-limit",
1625
+ resumeAt: run.autoResumeAt,
1626
+ ...run.autoResumeAttempts === void 0 ? {} : { attempts: run.autoResumeAttempts },
1627
+ ...run.error === void 0 ? {} : { error: run.error.slice(0, 2e3) }
1628
+ };
1629
+ }
1630
+
1631
1631
  // ../contract/src/wait-limits.ts
1632
1632
  var WAIT_LIMIT = 16;
1633
1633
  var LAST_WAITS_LIMIT = 16;
@@ -2419,10 +2419,6 @@ var apiRunSchema = runRecordSchema.extend({
2419
2419
  cliHandoff: z23.literal(false).optional(),
2420
2420
  usage: processUsageSchema.optional()
2421
2421
  });
2422
- var runStatePreviewSchema = z23.object({
2423
- kind: z23.enum(["ask", "permission", "review", "error"]),
2424
- text: z23.string().min(1).max(240)
2425
- });
2426
2422
  var runSummarySchema = z23.object({
2427
2423
  id: z23.string(),
2428
2424
  title: z23.string(),
@@ -2525,8 +2521,6 @@ var runSummarySchema = z23.object({
2525
2521
  * labels a delegated peer by the agent actually running it, which can differ from `runner`. */
2526
2522
  currentStepBackend: runnerSchema.optional(),
2527
2523
  error: z23.string().optional(),
2528
- /** Concise 1-line ask, permission, review, or error preview for urgent/failed task rows. */
2529
- statePreview: runStatePreviewSchema.optional(),
2530
2524
  /** Present while the run's isolated worktree exists — the breadcrumb says "Isolated worktree". */
2531
2525
  worktreePath: z23.string().optional()
2532
2526
  });
@@ -2568,37 +2562,6 @@ var SUMMARY_OPTIONAL_KEYS = [
2568
2562
  "error",
2569
2563
  "worktreePath"
2570
2564
  ];
2571
- var STATE_PREVIEW_MAX = 240;
2572
- function oneLinePreview(raw) {
2573
- if (typeof raw !== "string") return "";
2574
- const collapsed = raw.replace(/\s+/g, " ").trim();
2575
- if (collapsed.length <= STATE_PREVIEW_MAX) return collapsed;
2576
- return `${collapsed.slice(0, STATE_PREVIEW_MAX - 1).trimEnd()}\u2026`;
2577
- }
2578
- function deriveRunStatePreview(run, waitingOn) {
2579
- if (!run.archived) {
2580
- if (run.hasPendingPermission) return { kind: "permission", text: "Permission requested" };
2581
- if (waitingOn?.kind === "human") {
2582
- const openHuman = (Array.isArray(run.waits) ? run.waits : []).filter(
2583
- (wait) => Boolean(wait) && typeof wait === "object" && wait.phase === "open" && wait.kind === "human"
2584
- );
2585
- const question = openHuman.find((wait) => Array.isArray(wait.questions) && wait.questions.length > 0)?.questions?.[0]?.question;
2586
- const text = oneLinePreview(question);
2587
- if (text) return { kind: "ask", text };
2588
- const budget = openHuman.some((wait) => wait.via === "budget");
2589
- return { kind: "ask", text: budget ? "Automatic wakes used up" : "Waiting for your reply" };
2590
- }
2591
- if (run.status === "review") {
2592
- const text = oneLinePreview(run.doneAccepted?.summary);
2593
- return { kind: "review", text: text || "Ready for review" };
2594
- }
2595
- }
2596
- if (run.status === "failed" && !isUsageLimitHold(run)) {
2597
- const text = oneLinePreview(run.error);
2598
- if (text) return { kind: "error", text };
2599
- }
2600
- return void 0;
2601
- }
2602
2565
  function toRunSummary(run) {
2603
2566
  const summary = {
2604
2567
  id: run.id,
@@ -2620,8 +2583,6 @@ function toRunSummary(run) {
2620
2583
  }
2621
2584
  const waitingOn = computeWaitingOn({ ...run, delegation: withRootLedger(summary.delegation, run.delegation) });
2622
2585
  if (waitingOn) summary.waitingOn = waitingOn;
2623
- const statePreview = deriveRunStatePreview(run, waitingOn);
2624
- if (statePreview) summary.statePreview = statePreview;
2625
2586
  if (hasResolvedWait(run)) summary.waitWakePending = true;
2626
2587
  if (run.usage) summary.usage = run.usage;
2627
2588
  const automationId = automationIdOf(run);
@@ -6646,7 +6607,6 @@ export {
6646
6607
  deleteRunResponseSchema,
6647
6608
  deleteWorkflowResponseSchema,
6648
6609
  deriveAttention,
6649
- deriveRunStatePreview,
6650
6610
  deriveWebhookState,
6651
6611
  diffStatSchema,
6652
6612
  discoveredRunnerSchema,
@@ -6936,7 +6896,6 @@ export {
6936
6896
  runPullRequestSchema,
6937
6897
  runRecordSchema,
6938
6898
  runRelationshipsSchema,
6939
- runStatePreviewSchema,
6940
6899
  runStatusSchema,
6941
6900
  runSummariesQuerySchema,
6942
6901
  runSummarySchema,
@@ -1,5 +1,4 @@
1
1
  import { z } from 'zod';
2
- import { type WaitingOn } from './waits.ts';
3
2
  export { runStatusSchema, type RunStatus, stepStatusSchema, type StepStatus, stepKindSchema, type StepKind } from './run-status.ts';
4
3
  /**
5
4
  * The RUNS family of `/api/v1` — a task's record, its lifecycle mutations, and the artifacts
@@ -4326,17 +4325,6 @@ export type ApiRun = z.infer<typeof apiRunSchema>;
4326
4325
  * `toRunSummary` below is the only projection from a record to this shape. The route, the index
4327
4326
  * and the cockpit's stream patches all go through it, so a list and its stream cannot disagree.
4328
4327
  */
4329
- /** Concise 1-line urgent or outcome preview carried on list summaries (hearsay-tools/squawk#4377). */
4330
- export declare const runStatePreviewSchema: z.ZodObject<{
4331
- kind: z.ZodEnum<{
4332
- ask: "ask";
4333
- error: "error";
4334
- permission: "permission";
4335
- review: "review";
4336
- }>;
4337
- text: z.ZodString;
4338
- }, z.core.$strip>;
4339
- export type RunStatePreview = z.infer<typeof runStatePreviewSchema>;
4340
4328
  export declare const runSummarySchema: z.ZodObject<{
4341
4329
  id: z.ZodString;
4342
4330
  title: z.ZodString;
@@ -4491,15 +4479,6 @@ export declare const runSummarySchema: z.ZodObject<{
4491
4479
  currentStepId: z.ZodOptional<z.ZodString>;
4492
4480
  currentStepBackend: z.ZodOptional<z.ZodString>;
4493
4481
  error: z.ZodOptional<z.ZodString>;
4494
- statePreview: z.ZodOptional<z.ZodObject<{
4495
- kind: z.ZodEnum<{
4496
- ask: "ask";
4497
- error: "error";
4498
- permission: "permission";
4499
- review: "review";
4500
- }>;
4501
- text: z.ZodString;
4502
- }, z.core.$strip>>;
4503
4482
  worktreePath: z.ZodOptional<z.ZodString>;
4504
4483
  }, z.core.$strip>;
4505
4484
  export type RunSummary = z.infer<typeof runSummarySchema>;
@@ -4662,21 +4641,10 @@ export declare const runIndexEntrySchema: z.ZodObject<{
4662
4641
  currentStepId: z.ZodOptional<z.ZodString>;
4663
4642
  currentStepBackend: z.ZodOptional<z.ZodString>;
4664
4643
  error: z.ZodOptional<z.ZodString>;
4665
- statePreview: z.ZodOptional<z.ZodObject<{
4666
- kind: z.ZodEnum<{
4667
- ask: "ask";
4668
- error: "error";
4669
- permission: "permission";
4670
- review: "review";
4671
- }>;
4672
- text: z.ZodString;
4673
- }, z.core.$strip>>;
4674
4644
  worktreePath: z.ZodOptional<z.ZodString>;
4675
4645
  projectId: z.ZodString;
4676
4646
  }, z.core.$strip>;
4677
4647
  export type RunIndexEntry = z.infer<typeof runIndexEntrySchema>;
4678
- /** Derive a concise 1-line preview for urgent (`Needs you`) or failed runs without reading transcripts. */
4679
- export declare function deriveRunStatePreview(run: Pick<RunRecord, 'status' | 'archived' | 'hasPendingPermission' | 'waits' | 'doneAccepted' | 'error' | 'autoResumeAt'>, waitingOn: WaitingOn | undefined): RunStatePreview | undefined;
4680
4648
  /**
4681
4649
  * The one projection from a run record to its list row (#817). Optional keys are copied only when
4682
4650
  * present, so the wire never carries an `undefined` the schema calls absent; `delegation` goes
@@ -4914,15 +4882,6 @@ export declare const archivedRunsResponseSchema: z.ZodObject<{
4914
4882
  currentStepId: z.ZodOptional<z.ZodString>;
4915
4883
  currentStepBackend: z.ZodOptional<z.ZodString>;
4916
4884
  error: z.ZodOptional<z.ZodString>;
4917
- statePreview: z.ZodOptional<z.ZodObject<{
4918
- kind: z.ZodEnum<{
4919
- ask: "ask";
4920
- error: "error";
4921
- permission: "permission";
4922
- review: "review";
4923
- }>;
4924
- text: z.ZodString;
4925
- }, z.core.$strip>>;
4926
4885
  worktreePath: z.ZodOptional<z.ZodString>;
4927
4886
  }, z.core.$strip>>;
4928
4887
  nextCursor: z.ZodNullable<z.ZodString>;
@@ -5092,15 +5051,6 @@ export declare const runsSearchResponseSchema: z.ZodObject<{
5092
5051
  currentStepId: z.ZodOptional<z.ZodString>;
5093
5052
  currentStepBackend: z.ZodOptional<z.ZodString>;
5094
5053
  error: z.ZodOptional<z.ZodString>;
5095
- statePreview: z.ZodOptional<z.ZodObject<{
5096
- kind: z.ZodEnum<{
5097
- ask: "ask";
5098
- error: "error";
5099
- permission: "permission";
5100
- review: "review";
5101
- }>;
5102
- text: z.ZodString;
5103
- }, z.core.$strip>>;
5104
5054
  worktreePath: z.ZodOptional<z.ZodString>;
5105
5055
  projectId: z.ZodString;
5106
5056
  }, z.core.$strip>>;
@@ -177,15 +177,6 @@ export declare const workspaceRunSummaryEventSchema: z.ZodObject<{
177
177
  currentStepId: z.ZodOptional<z.ZodString>;
178
178
  currentStepBackend: z.ZodOptional<z.ZodString>;
179
179
  error: z.ZodOptional<z.ZodString>;
180
- statePreview: z.ZodOptional<z.ZodObject<{
181
- kind: z.ZodEnum<{
182
- ask: "ask";
183
- error: "error";
184
- permission: "permission";
185
- review: "review";
186
- }>;
187
- text: z.ZodString;
188
- }, z.core.$strip>>;
189
180
  worktreePath: z.ZodOptional<z.ZodString>;
190
181
  }, z.core.$strip>;
191
182
  relationships: z.ZodString;
@@ -376,15 +367,6 @@ export declare const runsIndexResponseSchema: z.ZodObject<{
376
367
  currentStepId: z.ZodOptional<z.ZodString>;
377
368
  currentStepBackend: z.ZodOptional<z.ZodString>;
378
369
  error: z.ZodOptional<z.ZodString>;
379
- statePreview: z.ZodOptional<z.ZodObject<{
380
- kind: z.ZodEnum<{
381
- ask: "ask";
382
- error: "error";
383
- permission: "permission";
384
- review: "review";
385
- }>;
386
- text: z.ZodString;
387
- }, z.core.$strip>>;
388
370
  worktreePath: z.ZodOptional<z.ZodString>;
389
371
  projectId: z.ZodString;
390
372
  }, z.core.$strip>>;
@@ -2,18 +2,6 @@ import type { DelegationRoutes } from './routes.ts';
2
2
  export declare function createDelegationApp(routes: DelegationRoutes): import("hono/hono-base").HonoBase<import("hono/types").BlankEnv, import("hono/types").BlankSchema | import("hono/types").MergeSchemaPath<{
3
3
  "/list": {
4
4
  $get: {
5
- output: {
6
- error: string;
7
- code?: "invalid_input" | undefined;
8
- };
9
- outputFormat: "json";
10
- status: 400;
11
- input: {
12
- query: {
13
- offset?: string | undefined;
14
- };
15
- };
16
- } | {
17
5
  output: {
18
6
  workers: {
19
7
  workerId: string;
@@ -66,6 +54,18 @@ export declare function createDelegationApp(routes: DelegationRoutes): import("h
66
54
  offset?: string | undefined;
67
55
  };
68
56
  };
57
+ } | {
58
+ output: {
59
+ error: string;
60
+ code?: "invalid_input" | undefined;
61
+ };
62
+ outputFormat: "json";
63
+ status: 400;
64
+ input: {
65
+ query: {
66
+ offset?: string | undefined;
67
+ };
68
+ };
69
69
  };
70
70
  };
71
71
  } & {
@@ -652,18 +652,6 @@ export declare function createDelegationApp(routes: DelegationRoutes): import("h
652
652
  } & {
653
653
  "/:workerId": {
654
654
  $get: {
655
- output: {
656
- error: string;
657
- code?: "invalid_input" | undefined;
658
- };
659
- outputFormat: "json";
660
- status: 400;
661
- input: {
662
- param: {
663
- workerId: string;
664
- };
665
- };
666
- } | {
667
655
  output: {
668
656
  workerId: string;
669
657
  settled: boolean;
@@ -788,11 +776,7 @@ export declare function createDelegationApp(routes: DelegationRoutes): import("h
788
776
  workerId: string;
789
777
  };
790
778
  };
791
- };
792
- };
793
- } & {
794
- "/:workerId/collect": {
795
- $post: {
779
+ } | {
796
780
  output: {
797
781
  error: string;
798
782
  code?: "invalid_input" | undefined;
@@ -803,10 +787,12 @@ export declare function createDelegationApp(routes: DelegationRoutes): import("h
803
787
  param: {
804
788
  workerId: string;
805
789
  };
806
- } & {
807
- json: Record<string, never>;
808
790
  };
809
- } | {
791
+ };
792
+ };
793
+ } & {
794
+ "/:workerId/collect": {
795
+ $post: {
810
796
  output: {
811
797
  workerId: string;
812
798
  parentRunId: string;
@@ -929,11 +915,7 @@ export declare function createDelegationApp(routes: DelegationRoutes): import("h
929
915
  } & {
930
916
  json: Record<string, never>;
931
917
  };
932
- };
933
- };
934
- } & {
935
- "/:workerId/steer": {
936
- $post: {
918
+ } | {
937
919
  output: {
938
920
  error: string;
939
921
  code?: "invalid_input" | undefined;
@@ -945,11 +927,13 @@ export declare function createDelegationApp(routes: DelegationRoutes): import("h
945
927
  workerId: string;
946
928
  };
947
929
  } & {
948
- json: {
949
- text: string;
950
- };
930
+ json: Record<string, never>;
951
931
  };
952
- } | {
932
+ };
933
+ };
934
+ } & {
935
+ "/:workerId/steer": {
936
+ $post: {
953
937
  output: {
954
938
  workerId: string;
955
939
  state: "delivered" | "queued";
@@ -965,11 +949,7 @@ export declare function createDelegationApp(routes: DelegationRoutes): import("h
965
949
  text: string;
966
950
  };
967
951
  };
968
- };
969
- };
970
- } & {
971
- "/:workerId/stop": {
972
- $post: {
952
+ } | {
973
953
  output: {
974
954
  error: string;
975
955
  code?: "invalid_input" | undefined;
@@ -981,9 +961,15 @@ export declare function createDelegationApp(routes: DelegationRoutes): import("h
981
961
  workerId: string;
982
962
  };
983
963
  } & {
984
- json: Record<string, never>;
964
+ json: {
965
+ text: string;
966
+ };
985
967
  };
986
- } | {
968
+ };
969
+ };
970
+ } & {
971
+ "/:workerId/stop": {
972
+ $post: {
987
973
  output: {
988
974
  workerId: string;
989
975
  state: "stopping" | "terminated";
@@ -997,11 +983,7 @@ export declare function createDelegationApp(routes: DelegationRoutes): import("h
997
983
  } & {
998
984
  json: Record<string, never>;
999
985
  };
1000
- };
1001
- };
1002
- } & {
1003
- "/:workerId/destroy": {
1004
- $post: {
986
+ } | {
1005
987
  output: {
1006
988
  error: string;
1007
989
  code?: "invalid_input" | undefined;
@@ -1013,11 +995,13 @@ export declare function createDelegationApp(routes: DelegationRoutes): import("h
1013
995
  workerId: string;
1014
996
  };
1015
997
  } & {
1016
- json: {
1017
- discardWork?: true | undefined;
1018
- };
998
+ json: Record<string, never>;
1019
999
  };
1020
- } | {
1000
+ };
1001
+ };
1002
+ } & {
1003
+ "/:workerId/destroy": {
1004
+ $post: {
1021
1005
  output: {
1022
1006
  workerId: string;
1023
1007
  state: "complete" | "incomplete";
@@ -1046,6 +1030,22 @@ export declare function createDelegationApp(routes: DelegationRoutes): import("h
1046
1030
  discardWork?: true | undefined;
1047
1031
  };
1048
1032
  };
1033
+ } | {
1034
+ output: {
1035
+ error: string;
1036
+ code?: "invalid_input" | undefined;
1037
+ };
1038
+ outputFormat: "json";
1039
+ status: 400;
1040
+ input: {
1041
+ param: {
1042
+ workerId: string;
1043
+ };
1044
+ } & {
1045
+ json: {
1046
+ discardWork?: true | undefined;
1047
+ };
1048
+ };
1049
1049
  } | {
1050
1050
  output: {
1051
1051
  workerId: string;
@@ -1081,11 +1081,13 @@ export declare function createDelegationApp(routes: DelegationRoutes): import("h
1081
1081
  "/:workerId/diff": {
1082
1082
  $get: {
1083
1083
  output: {
1084
- error: string;
1085
- code?: "invalid_input" | undefined;
1084
+ workerId: string;
1085
+ baselineSha: string;
1086
+ diff: string;
1087
+ truncated: boolean;
1086
1088
  };
1087
1089
  outputFormat: "json";
1088
- status: 400;
1090
+ status: 200;
1089
1091
  input: {
1090
1092
  param: {
1091
1093
  workerId: string;
@@ -1093,13 +1095,11 @@ export declare function createDelegationApp(routes: DelegationRoutes): import("h
1093
1095
  };
1094
1096
  } | {
1095
1097
  output: {
1096
- workerId: string;
1097
- baselineSha: string;
1098
- diff: string;
1099
- truncated: boolean;
1098
+ error: string;
1099
+ code?: "invalid_input" | undefined;
1100
1100
  };
1101
1101
  outputFormat: "json";
1102
- status: 200;
1102
+ status: 400;
1103
1103
  input: {
1104
1104
  param: {
1105
1105
  workerId: string;
@@ -63,17 +63,6 @@ export declare function createProjectsRoutes(deps: ProjectsRouteDeps): import("h
63
63
  } & {
64
64
  "/projects": {
65
65
  $post: {
66
- output: {
67
- error: string;
68
- };
69
- outputFormat: "json";
70
- status: 400 | 500;
71
- input: {
72
- json: {
73
- root: string;
74
- };
75
- };
76
- } | {
77
66
  output: {
78
67
  project: {
79
68
  id: string;
@@ -104,10 +93,10 @@ export declare function createProjectsRoutes(deps: ProjectsRouteDeps): import("h
104
93
  agent: boolean;
105
94
  }[] | undefined;
106
95
  };
107
- error: string;
96
+ error?: string | undefined;
108
97
  };
109
98
  outputFormat: "json";
110
- status: 409;
99
+ status: 200;
111
100
  input: {
112
101
  json: {
113
102
  root: string;
@@ -144,10 +133,21 @@ export declare function createProjectsRoutes(deps: ProjectsRouteDeps): import("h
144
133
  agent: boolean;
145
134
  }[] | undefined;
146
135
  };
147
- error?: string | undefined;
136
+ error: string;
148
137
  };
149
138
  outputFormat: "json";
150
- status: 200;
139
+ status: 409;
140
+ input: {
141
+ json: {
142
+ root: string;
143
+ };
144
+ };
145
+ } | {
146
+ output: {
147
+ error: string;
148
+ };
149
+ outputFormat: "json";
150
+ status: 400 | 500;
151
151
  input: {
152
152
  json: {
153
153
  root: string;
@@ -306,7 +306,7 @@ export declare function createProjectsRoutes(deps: ProjectsRouteDeps): import("h
306
306
  error: string;
307
307
  };
308
308
  outputFormat: "json";
309
- status: 404;
309
+ status: 400;
310
310
  input: {
311
311
  param: {
312
312
  projectId: string;
@@ -317,7 +317,7 @@ export declare function createProjectsRoutes(deps: ProjectsRouteDeps): import("h
317
317
  error: string;
318
318
  };
319
319
  outputFormat: "json";
320
- status: 400;
320
+ status: 404;
321
321
  input: {
322
322
  param: {
323
323
  projectId: string;
@@ -342,27 +342,6 @@ export declare function createProjectsRoutes(deps: ProjectsRouteDeps): import("h
342
342
  } & {
343
343
  "/projects/:projectId/webhooks": {
344
344
  $post: {
345
- output: {
346
- error: string;
347
- };
348
- outputFormat: "json";
349
- status: 400 | 404 | 409 | 500;
350
- input: {
351
- json: {
352
- name: string;
353
- description?: string | undefined;
354
- url: string;
355
- token?: string | undefined;
356
- tasks?: boolean | undefined;
357
- triggers?: ("cancelled" | "done" | "failed" | "needs-you" | "running" | "waiting-ci" | "waiting-other" | "waiting-timer" | "waiting-workers")[] | undefined;
358
- agent?: boolean | undefined;
359
- };
360
- } & {
361
- param: {
362
- projectId: string;
363
- };
364
- };
365
- } | {
366
345
  output: {
367
346
  project: {
368
347
  id: string;
@@ -421,6 +400,27 @@ export declare function createProjectsRoutes(deps: ProjectsRouteDeps): import("h
421
400
  projectId: string;
422
401
  };
423
402
  };
403
+ } | {
404
+ output: {
405
+ error: string;
406
+ };
407
+ outputFormat: "json";
408
+ status: 400 | 404 | 409 | 500;
409
+ input: {
410
+ json: {
411
+ name: string;
412
+ description?: string | undefined;
413
+ url: string;
414
+ token?: string | undefined;
415
+ tasks?: boolean | undefined;
416
+ triggers?: ("cancelled" | "done" | "failed" | "needs-you" | "running" | "waiting-ci" | "waiting-other" | "waiting-timer" | "waiting-workers")[] | undefined;
417
+ agent?: boolean | undefined;
418
+ };
419
+ } & {
420
+ param: {
421
+ projectId: string;
422
+ };
423
+ };
424
424
  };
425
425
  };
426
426
  } & {
@@ -618,13 +618,10 @@ export declare function createProjectsRoutes(deps: ProjectsRouteDeps): import("h
618
618
  };
619
619
  } | {
620
620
  output: {
621
- ok: boolean;
622
- status?: number | undefined;
623
- error?: string | undefined;
624
- dryRun?: boolean | undefined;
621
+ error: string;
625
622
  };
626
623
  outputFormat: "json";
627
- status: import("hono/utils/http-status").ContentfulStatusCode;
624
+ status: 404;
628
625
  input: {
629
626
  param: {
630
627
  projectId: string;
@@ -633,10 +630,13 @@ export declare function createProjectsRoutes(deps: ProjectsRouteDeps): import("h
633
630
  };
634
631
  } | {
635
632
  output: {
636
- error: string;
633
+ ok: boolean;
634
+ status?: number | undefined;
635
+ error?: string | undefined;
636
+ dryRun?: boolean | undefined;
637
637
  };
638
638
  outputFormat: "json";
639
- status: 404;
639
+ status: import("hono/utils/http-status").ContentfulStatusCode;
640
640
  input: {
641
641
  param: {
642
642
  projectId: string;
@@ -1336,10 +1336,6 @@ export declare function createRunsRoutes(deps: RunsRouteDeps): import("hono/hono
1336
1336
  currentStepId?: string | undefined;
1337
1337
  currentStepBackend?: string | undefined;
1338
1338
  error?: string | undefined;
1339
- statePreview?: {
1340
- kind: "ask" | "error" | "permission" | "review";
1341
- text: string;
1342
- } | undefined;
1343
1339
  worktreePath?: string | undefined;
1344
1340
  }[];
1345
1341
  outputFormat: "json";
@@ -1518,10 +1514,6 @@ export declare function createRunsRoutes(deps: RunsRouteDeps): import("hono/hono
1518
1514
  currentStepId?: string | undefined;
1519
1515
  currentStepBackend?: string | undefined;
1520
1516
  error?: string | undefined;
1521
- statePreview?: {
1522
- kind: "ask" | "error" | "permission" | "review";
1523
- text: string;
1524
- } | undefined;
1525
1517
  worktreePath?: string | undefined;
1526
1518
  }[];
1527
1519
  nextCursor: string | null;