@hearsay-tools/squawk 0.18.0-pr3680.6704 → 0.18.0-pr3681.6720.2

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 (53) hide show
  1. package/dist/ci-wait/controller.d.ts +37 -37
  2. package/dist/contract/index.js +26 -67
  3. package/dist/contract/tool-display.d.ts +2 -8
  4. package/dist/delegation/transport.d.ts +62 -62
  5. package/dist/server/activity-routes.d.ts +23 -23
  6. package/dist/server/server.d.ts +58 -58
  7. package/dist/workflows/run/compose.js +3 -1
  8. package/dist/workflows/run/compose.js.map +1 -1
  9. package/dist/workflows/run/input-delivery.d.ts +2 -0
  10. package/dist/workflows/run/input-delivery.js +1 -0
  11. package/dist/workflows/run/input-delivery.js.map +1 -1
  12. package/dist/workflows/run/session-events.d.ts +4 -2
  13. package/dist/workflows/run/session-events.js +2 -1
  14. package/dist/workflows/run/session-events.js.map +1 -1
  15. package/dist/workflows/run/subagent-waits.d.ts +13 -0
  16. package/dist/workflows/run/subagent-waits.js +49 -1
  17. package/dist/workflows/run/subagent-waits.js.map +1 -1
  18. package/dist/workflows/run/turn-settler.d.ts +4 -1
  19. package/dist/workflows/run/turn-settler.js +6 -0
  20. package/dist/workflows/run/turn-settler.js.map +1 -1
  21. package/dist/workflows/run-states.js +1 -1
  22. package/dist/workflows/run-states.js.map +1 -1
  23. package/package.json +4 -4
  24. package/scripts/mock-ask-answer.d.mts +2 -0
  25. package/scripts/mock-opencode-questions.d.mts +14 -0
  26. package/web/dist/assets/{activity-motion-Bo3DSClA.js → activity-motion-DhLXb8Pt.js} +1 -1
  27. package/web/dist/assets/{activity-route-CfGqqmUD.js → activity-route-CpwAMYLn.js} +1 -1
  28. package/web/dist/assets/{commit-diff-panel-Bk_yx3s_.js → commit-diff-panel-B1KZl0GP.js} +1 -1
  29. package/web/dist/assets/{diff-CH-CzEME.js → diff-Ci-qd1lU.js} +2 -2
  30. package/web/dist/assets/{diff-view-CemuOcKY.js → diff-view-CWZElKoD.js} +1 -1
  31. package/web/dist/assets/{file-preview-BGP_kwVG.js → file-preview-CoWRr13R.js} +1 -1
  32. package/web/dist/assets/{git-toolbar-DiQHX3zX.js → git-toolbar-BYIni94R.js} +1 -1
  33. package/web/dist/assets/{github-ewv9XcX7.js → github-CAPNq5vY.js} +1 -1
  34. package/web/dist/assets/{global-activity-route-DtXw16bt.js → global-activity-route-DLEwsMA7.js} +1 -1
  35. package/web/dist/assets/{index-CKBFwvDn.js → index-CpwAOct4.js} +3 -3
  36. package/web/dist/assets/preview-pane-connected-CGw_9VuF.js +3 -0
  37. package/web/dist/assets/{repo-git-VH2mT5OQ.js → repo-git-CzVLCWig.js} +1 -1
  38. package/web/dist/assets/{report-reader-BfHmLFWl.js → report-reader-iTBkUgg-.js} +1 -1
  39. package/web/dist/assets/{reports-DqqsHg3P.js → reports-BJF1Cl3C.js} +1 -1
  40. package/web/dist/assets/{run-header-BOjD88eW.js → run-header-BxB6gyt1.js} +1 -1
  41. package/web/dist/assets/{skills-44uNUDHd.js → skills-DvgHKWgK.js} +1 -1
  42. package/web/dist/assets/{task-changes-BdEXlYl_.js → task-changes-CStxhLFG.js} +1 -1
  43. package/web/dist/assets/{task-commits-DG_jFtVv.js → task-commits-DhpOAdOf.js} +1 -1
  44. package/web/dist/assets/{task-files-CTAyc6ID.js → task-files-COmKUUfN.js} +1 -1
  45. package/web/dist/assets/{task-github-item-BcSX-Bfj.js → task-github-item-BNLeAz58.js} +1 -1
  46. package/web/dist/assets/task-thread-DjSFvEQe.js +9 -0
  47. package/web/dist/assets/thread-state-B5tTsVNm.js +4 -0
  48. package/web/dist/assets/{use-hand-to-agent-state-XGwOA_4x.js → use-hand-to-agent-state-Ce6QW2j_.js} +1 -1
  49. package/web/dist/assets/{workflows-Dx4DQuU3.js → workflows-CN8uKYnY.js} +1 -1
  50. package/web/dist/index.html +1 -1
  51. package/web/dist/assets/preview-pane-connected-Cp-wPcqn.js +0 -3
  52. package/web/dist/assets/task-thread-Bn-ifUzJ.js +0 -9
  53. package/web/dist/assets/thread-state-B9S5H8Td.js +0 -4
@@ -280,12 +280,11 @@ export declare function ciToolRoutes(capabilities: Map<string, Capability>): imp
280
280
  "/api/v1/tools/ask": {
281
281
  $post: {
282
282
  output: {
283
- ok: false;
284
- code: 'unavailable';
283
+ code: 'capability_revoked';
285
284
  message: string;
286
285
  };
287
286
  outputFormat: "json";
288
- status: import("hono/utils/http-status").ContentfulStatusCode;
287
+ status: 401;
289
288
  input: {
290
289
  json: {
291
290
  questions: {
@@ -303,11 +302,12 @@ export declare function ciToolRoutes(capabilities: Map<string, Capability>): imp
303
302
  };
304
303
  } | {
305
304
  output: {
306
- code: 'capability_revoked';
305
+ ok: false;
306
+ code: 'unavailable';
307
307
  message: string;
308
308
  };
309
309
  outputFormat: "json";
310
- status: 401;
310
+ status: import("hono/utils/http-status").ContentfulStatusCode;
311
311
  input: {
312
312
  json: {
313
313
  questions: {
@@ -375,12 +375,11 @@ export declare function ciToolRoutes(capabilities: Map<string, Capability>): imp
375
375
  "/api/v1/tools/cancel-wait": {
376
376
  $post: {
377
377
  output: {
378
- cancelled: false;
379
- code: 'unavailable';
378
+ code: 'capability_revoked';
380
379
  message: string;
381
380
  };
382
381
  outputFormat: "json";
383
- status: import("hono/utils/http-status").ContentfulStatusCode;
382
+ status: 401;
384
383
  input: {
385
384
  json: {
386
385
  wait_id: string;
@@ -388,11 +387,12 @@ export declare function ciToolRoutes(capabilities: Map<string, Capability>): imp
388
387
  };
389
388
  } | {
390
389
  output: {
391
- code: 'capability_revoked';
390
+ cancelled: false;
391
+ code: 'unavailable';
392
392
  message: string;
393
393
  };
394
394
  outputFormat: "json";
395
- status: 401;
395
+ status: import("hono/utils/http-status").ContentfulStatusCode;
396
396
  input: {
397
397
  json: {
398
398
  wait_id: string;
@@ -440,12 +440,11 @@ export declare function ciToolRoutes(capabilities: Map<string, Capability>): imp
440
440
  "/api/v1/tools/done": {
441
441
  $post: {
442
442
  output: {
443
- ok: false;
444
- code: 'unavailable';
443
+ code: 'capability_revoked';
445
444
  message: string;
446
445
  };
447
446
  outputFormat: "json";
448
- status: import("hono/utils/http-status").ContentfulStatusCode;
447
+ status: 401;
449
448
  input: {
450
449
  json: {
451
450
  summary?: string | undefined;
@@ -453,11 +452,12 @@ export declare function ciToolRoutes(capabilities: Map<string, Capability>): imp
453
452
  };
454
453
  } | {
455
454
  output: {
456
- code: 'capability_revoked';
455
+ ok: false;
456
+ code: 'unavailable';
457
457
  message: string;
458
458
  };
459
459
  outputFormat: "json";
460
- status: 401;
460
+ status: import("hono/utils/http-status").ContentfulStatusCode;
461
461
  input: {
462
462
  json: {
463
463
  summary?: string | undefined;
@@ -525,13 +525,11 @@ export declare function ciToolRoutes(capabilities: Map<string, Capability>): imp
525
525
  "/api/v1/tools/preview-stop": {
526
526
  $post: {
527
527
  output: {
528
- ok: boolean;
529
- code: "adopted" | "approval_required" | "headless" | "invalid_input" | "not_registered" | "port_held" | "port_in_use" | "preview_disabled" | "restarted" | "stopped" | "unavailable" | "worktree_missing";
528
+ code: 'capability_revoked';
530
529
  message: string;
531
- hint: string;
532
530
  };
533
531
  outputFormat: "json";
534
- status: import("hono/utils/http-status").ContentfulStatusCode;
532
+ status: 401;
535
533
  input: {
536
534
  json: {
537
535
  port: number;
@@ -540,11 +538,13 @@ export declare function ciToolRoutes(capabilities: Map<string, Capability>): imp
540
538
  };
541
539
  } | {
542
540
  output: {
543
- code: 'capability_revoked';
541
+ ok: boolean;
542
+ code: "adopted" | "approval_required" | "headless" | "invalid_input" | "not_registered" | "port_held" | "port_in_use" | "preview_disabled" | "restarted" | "stopped" | "unavailable" | "worktree_missing";
544
543
  message: string;
544
+ hint: string;
545
545
  };
546
546
  outputFormat: "json";
547
- status: 401;
547
+ status: import("hono/utils/http-status").ContentfulStatusCode;
548
548
  input: {
549
549
  json: {
550
550
  port: number;
@@ -557,13 +557,11 @@ export declare function ciToolRoutes(capabilities: Map<string, Capability>): imp
557
557
  "/api/v1/tools/preview-serve": {
558
558
  $post: {
559
559
  output: {
560
- ok: boolean;
561
- code: "cezar_port" | "cwd_outside_worktree" | "headless" | "invalid_input" | "port_held" | "preview_disabled" | "registered" | "replaced" | "too_many" | "unavailable" | "worktree_missing";
560
+ code: 'capability_revoked';
562
561
  message: string;
563
- hint: string;
564
562
  };
565
563
  outputFormat: "json";
566
- status: import("hono/utils/http-status").ContentfulStatusCode;
564
+ status: 401;
567
565
  input: {
568
566
  json: {
569
567
  command: string;
@@ -575,11 +573,13 @@ export declare function ciToolRoutes(capabilities: Map<string, Capability>): imp
575
573
  };
576
574
  } | {
577
575
  output: {
578
- code: 'capability_revoked';
576
+ ok: boolean;
577
+ code: "cezar_port" | "cwd_outside_worktree" | "headless" | "invalid_input" | "port_held" | "preview_disabled" | "registered" | "replaced" | "too_many" | "unavailable" | "worktree_missing";
579
578
  message: string;
579
+ hint: string;
580
580
  };
581
581
  outputFormat: "json";
582
- status: 401;
582
+ status: import("hono/utils/http-status").ContentfulStatusCode;
583
583
  input: {
584
584
  json: {
585
585
  command: string;
@@ -595,12 +595,11 @@ export declare function ciToolRoutes(capabilities: Map<string, Capability>): imp
595
595
  "/api/v1/tools/schedule-task": {
596
596
  $post: {
597
597
  output: {
598
- ok: false;
599
- code: import('../contract/index.js').ScheduledTaskRefusalCode;
598
+ code: 'capability_revoked';
600
599
  message: string;
601
600
  };
602
601
  outputFormat: "json";
603
- status: import("hono/utils/http-status").ContentfulStatusCode;
602
+ status: 401;
604
603
  input: {
605
604
  json: {
606
605
  at?: string | undefined;
@@ -617,11 +616,12 @@ export declare function ciToolRoutes(capabilities: Map<string, Capability>): imp
617
616
  };
618
617
  } | {
619
618
  output: {
620
- code: 'capability_revoked';
619
+ ok: false;
620
+ code: import('../contract/index.js').ScheduledTaskRefusalCode;
621
621
  message: string;
622
622
  };
623
623
  outputFormat: "json";
624
- status: 401;
624
+ status: import("hono/utils/http-status").ContentfulStatusCode;
625
625
  input: {
626
626
  json: {
627
627
  at?: string | undefined;
@@ -676,12 +676,11 @@ export declare function ciToolRoutes(capabilities: Map<string, Capability>): imp
676
676
  "/api/v1/tools/scheduled-tasks": {
677
677
  $post: {
678
678
  output: {
679
- ok: false;
680
- code: import('../contract/index.js').ScheduledTaskRefusalCode;
679
+ code: 'capability_revoked';
681
680
  message: string;
682
681
  };
683
682
  outputFormat: "json";
684
- status: import("hono/utils/http-status").ContentfulStatusCode;
683
+ status: 401;
685
684
  input: {
686
685
  json: {
687
686
  at?: string | undefined;
@@ -714,11 +713,12 @@ export declare function ciToolRoutes(capabilities: Map<string, Capability>): imp
714
713
  };
715
714
  } | {
716
715
  output: {
717
- code: 'capability_revoked';
716
+ ok: false;
717
+ code: import('../contract/index.js').ScheduledTaskRefusalCode;
718
718
  message: string;
719
719
  };
720
720
  outputFormat: "json";
721
- status: 401;
721
+ status: import("hono/utils/http-status").ContentfulStatusCode;
722
722
  input: {
723
723
  json: {
724
724
  at?: string | undefined;
@@ -5050,25 +5050,21 @@ function oneLine(text) {
5050
5050
  const collapsed = text.replace(/\s+/g, " ").trim();
5051
5051
  return collapsed.length > MAX_LABEL ? `${collapsed.slice(0, MAX_LABEL - 1)}\u2026` : collapsed;
5052
5052
  }
5053
- var label = (text) => text === void 0 ? void 0 : oneLine(text);
5054
- function rawField(input, ...keys) {
5053
+ function field(input, ...keys) {
5055
5054
  if (!isRecord(input)) return void 0;
5056
5055
  for (const key of keys) {
5057
5056
  const value = input[key];
5058
- if (typeof value === "string" && value.trim() !== "") return value;
5057
+ if (typeof value === "string" && value.trim() !== "") return oneLine(value);
5059
5058
  }
5060
5059
  return void 0;
5061
5060
  }
5062
- function field(input, ...keys) {
5063
- return label(rawField(input, ...keys));
5064
- }
5065
- function rawCommand(input) {
5061
+ function commandText(input) {
5066
5062
  if (!isRecord(input)) return void 0;
5067
5063
  const command = input.command;
5068
- if (typeof command === "string" && command.trim() !== "") return command;
5064
+ if (typeof command === "string" && command.trim() !== "") return oneLine(command);
5069
5065
  if (Array.isArray(command)) {
5070
5066
  const argv = command.filter((part) => typeof part === "string");
5071
- if (argv.length > 0) return argv.join(" ");
5067
+ if (argv.length > 0) return oneLine(argv.join(" "));
5072
5068
  }
5073
5069
  return void 0;
5074
5070
  }
@@ -5085,8 +5081,8 @@ function changePaths(input) {
5085
5081
  function heuristicLabel(input) {
5086
5082
  return field(input, "description", "query", "url", "filePath", "file_path", "path", "pattern", "name");
5087
5083
  }
5088
- function titled(verb, label2) {
5089
- return label2 ? `${verb} ${label2}` : verb;
5084
+ function titled(verb, label) {
5085
+ return label ? `${verb} ${label}` : verb;
5090
5086
  }
5091
5087
  var TOOL_KINDS = /* @__PURE__ */ new Map([
5092
5088
  ["bash", "execute"],
@@ -5105,8 +5101,6 @@ var TOOL_KINDS = /* @__PURE__ */ new Map([
5105
5101
  ["task", "task"],
5106
5102
  ["agent", "task"],
5107
5103
  ["skill", "task"],
5108
- ["spawnagent", "task"],
5109
- ["subtask", "task"],
5110
5104
  ["todowrite", "plan"],
5111
5105
  ["todolist", "plan"],
5112
5106
  ["plan", "plan"],
@@ -5116,48 +5110,33 @@ var TOOL_KINDS = /* @__PURE__ */ new Map([
5116
5110
  ["contextcompaction", "other"],
5117
5111
  ["mcptoolcall", "other"]
5118
5112
  ]);
5119
- function editTarget(key, input) {
5113
+ function editDisplay(key, input) {
5120
5114
  switch (key) {
5115
+ case "write":
5116
+ return { toolKind: "edit", title: titled("Write", field(input, "file_path", "filePath", "path")) };
5121
5117
  case "notebookedit":
5122
- return rawField(input, "notebook_path", "notebookPath", "file_path", "filePath", "path");
5118
+ return {
5119
+ toolKind: "edit",
5120
+ title: titled("Edit", field(input, "notebook_path", "notebookPath", "file_path", "filePath", "path"))
5121
+ };
5123
5122
  case "filechange": {
5124
5123
  const paths = changePaths(input);
5125
- return paths.length === 1 ? paths[0] : void 0;
5124
+ const label = paths.length === 1 ? paths[0] : paths.length > 1 ? `${paths.length} files` : void 0;
5125
+ return { toolKind: "edit", title: titled("Edit", label) };
5126
5126
  }
5127
5127
  default:
5128
- return rawField(input, "file_path", "filePath", "path");
5128
+ return { toolKind: "edit", title: titled("Edit", field(input, "file_path", "filePath", "path")) };
5129
5129
  }
5130
5130
  }
5131
- function editDisplay(key, input) {
5132
- const verb = key === "write" ? "Write" : "Edit";
5133
- if (key !== "filechange") return { toolKind: "edit", title: titled(verb, label(editTarget(key, input))) };
5134
- const paths = changePaths(input);
5135
- return { toolKind: "edit", title: titled(verb, paths.length > 1 ? `${paths.length} files` : paths[0]) };
5136
- }
5137
- function readTarget(key, input) {
5138
- return key === "imageview" ? rawField(input, "path") : rawField(input, "file_path", "filePath", "path");
5139
- }
5140
5131
  function readDisplay(key, input) {
5141
- return { toolKind: "read", title: titled(key === "imageview" ? "View image" : "Read", label(readTarget(key, input))) };
5142
- }
5143
- function searchTarget(input) {
5144
- return rawField(input, "pattern", "query");
5145
- }
5146
- function fetchTarget(key, input) {
5147
- return key === "webfetch" ? rawField(input, "url") : rawField(input, "query");
5132
+ return key === "imageview" ? { toolKind: "read", title: titled("View image", field(input, "path")) } : { toolKind: "read", title: titled("Read", field(input, "file_path", "filePath", "path")) };
5148
5133
  }
5149
5134
  function fetchDisplay(key, input) {
5150
- return { toolKind: "fetch", title: titled(key === "webfetch" ? "Fetch" : "Web search", label(fetchTarget(key, input))) };
5151
- }
5152
- var skillName = (input) => rawField(input, "skill", "name", "command");
5153
- var subagentType = (input) => rawField(input, "subagent_type", "subagentType");
5154
- function taskTarget(key, input) {
5155
- if (key === "skill") return skillName(input);
5156
- return rawField(input, "prompt", "task", "description") ?? subagentType(input);
5135
+ return key === "webfetch" ? { toolKind: "fetch", title: titled("Fetch", field(input, "url")) } : { toolKind: "fetch", title: titled("Web search", field(input, "query")) };
5157
5136
  }
5158
5137
  function taskDisplay(key, input) {
5159
5138
  if (key === "skill") {
5160
- const skill = label(skillName(input));
5139
+ const skill = field(input, "skill", "name", "command");
5161
5140
  return {
5162
5141
  toolKind: "task",
5163
5142
  title: skill ? `Skill: ${skill}` : "Skill",
@@ -5165,13 +5144,13 @@ function taskDisplay(key, input) {
5165
5144
  };
5166
5145
  }
5167
5146
  const verb = key === "agent" ? "Agent" : "Task";
5168
- const subagent = label(subagentType(input));
5169
- const detail = field(input, "description", "prompt") ?? subagent;
5147
+ const subagent = field(input, "subagent_type", "subagentType");
5148
+ const label = field(input, "description", "prompt") ?? subagent;
5170
5149
  return {
5171
5150
  toolKind: "task",
5172
- title: detail ? `${verb}: ${detail}` : verb,
5151
+ title: label ? `${verb}: ${label}` : verb,
5173
5152
  // Don't repeat the subagent type when it is already the title.
5174
- subtitle: detail === subagent ? void 0 : subagent
5153
+ subtitle: label === subagent ? void 0 : subagent
5175
5154
  };
5176
5155
  }
5177
5156
  function otherDisplay(name, key, input) {
@@ -5200,7 +5179,7 @@ function toolDisplay(name, input) {
5200
5179
  case "execute":
5201
5180
  return {
5202
5181
  toolKind: "execute",
5203
- title: titled("Ran", label(rawCommand(input))),
5182
+ title: titled("Ran", commandText(input)),
5204
5183
  subtitle: field(input, "description")
5205
5184
  };
5206
5185
  case "edit":
@@ -5210,7 +5189,7 @@ function toolDisplay(name, input) {
5210
5189
  case "search":
5211
5190
  return {
5212
5191
  toolKind: "search",
5213
- title: titled("Search", label(searchTarget(input))),
5192
+ title: titled("Search", field(input, "pattern", "query")),
5214
5193
  subtitle: field(input, "path")
5215
5194
  };
5216
5195
  case "fetch":
@@ -5223,25 +5202,6 @@ function toolDisplay(name, input) {
5223
5202
  return otherDisplay(name, key, input);
5224
5203
  }
5225
5204
  }
5226
- function toolDetailText(name, input) {
5227
- const key = typeof name === "string" ? name.toLowerCase() : "";
5228
- switch (TOOL_KINDS.get(key)) {
5229
- case "execute":
5230
- return rawCommand(input);
5231
- case "edit":
5232
- return editTarget(key, input);
5233
- case "read":
5234
- return readTarget(key, input);
5235
- case "search":
5236
- return searchTarget(input);
5237
- case "fetch":
5238
- return fetchTarget(key, input);
5239
- case "task":
5240
- return taskTarget(key, input);
5241
- default:
5242
- return void 0;
5243
- }
5244
- }
5245
5205
 
5246
5206
  // ../contract/src/version.ts
5247
5207
  function isNewerVersion(candidate, current) {
@@ -6419,7 +6379,6 @@ export {
6419
6379
  timeZoneOffsetMs,
6420
6380
  timerWaitEntrySchema,
6421
6381
  toRunSummary,
6422
- toolDetailText,
6423
6382
  toolDisplay,
6424
6383
  uiStateBody,
6425
6384
  uiStateSchema,
@@ -8,11 +8,11 @@
8
8
  * WebSearch, Task, Agent, Skill, TodoWrite, TaskCreate,
9
9
  * TaskUpdate, TaskList, mcp__server__tool
10
10
  * - codex: commandExecution, contextCompaction, fileChange, imageView,
11
- * mcpToolCall, webSearch, plan, spawnAgent (the mapper's subagent row)
11
+ * mcpToolCall, webSearch, plan
12
12
  * (codex's checklist arrives as the `turn/plan/updated`
13
13
  * notification, not as a tool call — `todoList` is kept below only
14
14
  * as tolerance for its non-app-server transports)
15
- * - opencode: bash, edit, write, read, grep, glob, webfetch, task, subtask, todowrite
15
+ * - opencode: bash, edit, write, read, grep, glob, webfetch, task, todowrite
16
16
  */
17
17
  export type ToolKind = 'read' | 'edit' | 'delete' | 'move' | 'search' | 'execute' | 'think' | 'fetch' | 'task' | 'plan' | 'other';
18
18
  export interface ToolDisplay {
@@ -23,9 +23,3 @@ export interface ToolDisplay {
23
23
  subtitle?: string | undefined;
24
24
  }
25
25
  export declare function toolDisplay(name: string, input?: unknown): ToolDisplay;
26
- /**
27
- * The whole text a tool title's detail shortens, read with the same keys as `toolDisplay`: the
28
- * command, path, pattern, URL or query, verbatim. An agent's is its full prompt, while its title
29
- * keeps the description. `undefined` when the title has no detail from one input field.
30
- */
31
- export declare function toolDetailText(name: string, input?: unknown): string | undefined;
@@ -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;
@@ -51,6 +39,18 @@ export declare function createDelegationApp(routes: DelegationRoutes): import("h
51
39
  offset?: string | undefined;
52
40
  };
53
41
  };
42
+ } | {
43
+ output: {
44
+ error: string;
45
+ code?: "invalid_input" | undefined;
46
+ };
47
+ outputFormat: "json";
48
+ status: 400;
49
+ input: {
50
+ query: {
51
+ offset?: string | undefined;
52
+ };
53
+ };
54
54
  };
55
55
  };
56
56
  } & {
@@ -588,18 +588,6 @@ export declare function createDelegationApp(routes: DelegationRoutes): import("h
588
588
  } & {
589
589
  "/:workerId": {
590
590
  $get: {
591
- output: {
592
- error: string;
593
- code?: "invalid_input" | undefined;
594
- };
595
- outputFormat: "json";
596
- status: 400;
597
- input: {
598
- param: {
599
- workerId: string;
600
- };
601
- };
602
- } | {
603
591
  output: {
604
592
  workerId: string;
605
593
  parentRunId: string;
@@ -703,11 +691,7 @@ export declare function createDelegationApp(routes: DelegationRoutes): import("h
703
691
  workerId: string;
704
692
  };
705
693
  };
706
- };
707
- };
708
- } & {
709
- "/:workerId/collect": {
710
- $post: {
694
+ } | {
711
695
  output: {
712
696
  error: string;
713
697
  code?: "invalid_input" | undefined;
@@ -718,10 +702,12 @@ export declare function createDelegationApp(routes: DelegationRoutes): import("h
718
702
  param: {
719
703
  workerId: string;
720
704
  };
721
- } & {
722
- json: Record<string, never>;
723
705
  };
724
- } | {
706
+ };
707
+ };
708
+ } & {
709
+ "/:workerId/collect": {
710
+ $post: {
725
711
  output: {
726
712
  workerId: string;
727
713
  parentRunId: string;
@@ -823,11 +809,7 @@ export declare function createDelegationApp(routes: DelegationRoutes): import("h
823
809
  } & {
824
810
  json: Record<string, never>;
825
811
  };
826
- };
827
- };
828
- } & {
829
- "/:workerId/steer": {
830
- $post: {
812
+ } | {
831
813
  output: {
832
814
  error: string;
833
815
  code?: "invalid_input" | undefined;
@@ -839,11 +821,13 @@ export declare function createDelegationApp(routes: DelegationRoutes): import("h
839
821
  workerId: string;
840
822
  };
841
823
  } & {
842
- json: {
843
- text: string;
844
- };
824
+ json: Record<string, never>;
845
825
  };
846
- } | {
826
+ };
827
+ };
828
+ } & {
829
+ "/:workerId/steer": {
830
+ $post: {
847
831
  output: {
848
832
  workerId: string;
849
833
  state: "delivered" | "queued";
@@ -859,11 +843,7 @@ export declare function createDelegationApp(routes: DelegationRoutes): import("h
859
843
  text: string;
860
844
  };
861
845
  };
862
- };
863
- };
864
- } & {
865
- "/:workerId/stop": {
866
- $post: {
846
+ } | {
867
847
  output: {
868
848
  error: string;
869
849
  code?: "invalid_input" | undefined;
@@ -875,9 +855,15 @@ export declare function createDelegationApp(routes: DelegationRoutes): import("h
875
855
  workerId: string;
876
856
  };
877
857
  } & {
878
- json: Record<string, never>;
858
+ json: {
859
+ text: string;
860
+ };
879
861
  };
880
- } | {
862
+ };
863
+ };
864
+ } & {
865
+ "/:workerId/stop": {
866
+ $post: {
881
867
  output: {
882
868
  workerId: string;
883
869
  state: "stopping" | "terminated";
@@ -891,11 +877,7 @@ export declare function createDelegationApp(routes: DelegationRoutes): import("h
891
877
  } & {
892
878
  json: Record<string, never>;
893
879
  };
894
- };
895
- };
896
- } & {
897
- "/:workerId/destroy": {
898
- $post: {
880
+ } | {
899
881
  output: {
900
882
  error: string;
901
883
  code?: "invalid_input" | undefined;
@@ -909,7 +891,11 @@ export declare function createDelegationApp(routes: DelegationRoutes): import("h
909
891
  } & {
910
892
  json: Record<string, never>;
911
893
  };
912
- } | {
894
+ };
895
+ };
896
+ } & {
897
+ "/:workerId/destroy": {
898
+ $post: {
913
899
  output: {
914
900
  workerId: string;
915
901
  state: "complete" | "incomplete";
@@ -932,6 +918,20 @@ export declare function createDelegationApp(routes: DelegationRoutes): import("h
932
918
  } & {
933
919
  json: Record<string, never>;
934
920
  };
921
+ } | {
922
+ output: {
923
+ error: string;
924
+ code?: "invalid_input" | undefined;
925
+ };
926
+ outputFormat: "json";
927
+ status: 400;
928
+ input: {
929
+ param: {
930
+ workerId: string;
931
+ };
932
+ } & {
933
+ json: Record<string, never>;
934
+ };
935
935
  } | {
936
936
  output: {
937
937
  workerId: string;
@@ -961,11 +961,13 @@ export declare function createDelegationApp(routes: DelegationRoutes): import("h
961
961
  "/:workerId/diff": {
962
962
  $get: {
963
963
  output: {
964
- error: string;
965
- code?: "invalid_input" | undefined;
964
+ workerId: string;
965
+ baselineSha: string;
966
+ diff: string;
967
+ truncated: boolean;
966
968
  };
967
969
  outputFormat: "json";
968
- status: 400;
970
+ status: 200;
969
971
  input: {
970
972
  param: {
971
973
  workerId: string;
@@ -973,13 +975,11 @@ export declare function createDelegationApp(routes: DelegationRoutes): import("h
973
975
  };
974
976
  } | {
975
977
  output: {
976
- workerId: string;
977
- baselineSha: string;
978
- diff: string;
979
- truncated: boolean;
978
+ error: string;
979
+ code?: "invalid_input" | undefined;
980
980
  };
981
981
  outputFormat: "json";
982
- status: 200;
982
+ status: 400;
983
983
  input: {
984
984
  param: {
985
985
  workerId: string;