@hearsay-tools/squawk 0.18.0-pr3685.6709 → 0.18.0-pr3686.6719

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 (50) hide show
  1. package/dist/core/claude-cli-runner.d.ts +5 -0
  2. package/dist/core/codex-app-server-runner.d.ts +5 -0
  3. package/dist/core/cursor-print-runner.d.ts +5 -0
  4. package/dist/core/cursor-runner.d.ts +5 -0
  5. package/dist/core/omp-runner.d.ts +5 -0
  6. package/dist/core/opencode-server-runner.d.ts +5 -0
  7. package/dist/core/pi-runner.d.ts +5 -0
  8. package/dist/core/runner-facts.d.ts +57 -0
  9. package/dist/core/runner-facts.js +53 -0
  10. package/dist/core/runner-facts.js.map +1 -1
  11. package/dist/delegation/routes.d.ts +62 -62
  12. package/dist/server/reports-api.d.ts +2 -2
  13. package/dist/server/server.d.ts +1636 -1636
  14. package/package.json +4 -4
  15. package/scripts/mock-pi-rpc.mjs +9 -4
  16. package/web/dist/assets/{activity-motion-COFQdFS0.js → activity-motion-DhLXb8Pt.js} +1 -1
  17. package/web/dist/assets/{activity-route-BCt61riM.js → activity-route-CpwAMYLn.js} +1 -1
  18. package/web/dist/assets/agent-accounts-Bc0LJ4SB.js +18 -0
  19. package/web/dist/assets/{commit-diff-panel-BEEdSiNH.js → commit-diff-panel-B1KZl0GP.js} +1 -1
  20. package/web/dist/assets/{diff-DUirtwVr.js → diff-Ci-qd1lU.js} +2 -2
  21. package/web/dist/assets/{diff-view-DqOpQ-Ut.js → diff-view-CWZElKoD.js} +1 -1
  22. package/web/dist/assets/{file-preview-mlU00zNk.js → file-preview-CoWRr13R.js} +1 -1
  23. package/web/dist/assets/{git-toolbar-Dl2n6bX6.js → git-toolbar-BYIni94R.js} +1 -1
  24. package/web/dist/assets/github-CAPNq5vY.js +1 -0
  25. package/web/dist/assets/{global-activity-route-BnEu7PDK.js → global-activity-route-DLEwsMA7.js} +1 -1
  26. package/web/dist/assets/index-CpwAOct4.js +17 -0
  27. package/web/dist/assets/{preview-pane-connected-DviAWTey.js → preview-pane-connected-CGw_9VuF.js} +1 -1
  28. package/web/dist/assets/{prompt-template-menu-C3d8Xkvo.js → prompt-template-menu-BZTz2mIG.js} +1 -1
  29. package/web/dist/assets/{reference-chip-BliLpdSz.js → reference-chip-Ht4xX9-k.js} +1 -1
  30. package/web/dist/assets/{repo-git-CGhjbgaE.js → repo-git-CzVLCWig.js} +1 -1
  31. package/web/dist/assets/{report-reader-BQCrlngF.js → report-reader-iTBkUgg-.js} +1 -1
  32. package/web/dist/assets/{reports-bvhV_i0v.js → reports-BJF1Cl3C.js} +1 -1
  33. package/web/dist/assets/{run-header-BgD588OA.js → run-header-BxB6gyt1.js} +1 -1
  34. package/web/dist/assets/{skills-BAtn-qwS.js → skills-DvgHKWgK.js} +1 -1
  35. package/web/dist/assets/{task-changes--S3fSrnY.js → task-changes-CStxhLFG.js} +1 -1
  36. package/web/dist/assets/{task-commits-BO68xfj_.js → task-commits-DhpOAdOf.js} +1 -1
  37. package/web/dist/assets/{task-files-DSlTY1zl.js → task-files-COmKUUfN.js} +1 -1
  38. package/web/dist/assets/{task-github-item-aKsS8PP1.js → task-github-item-BNLeAz58.js} +1 -1
  39. package/web/dist/assets/task-thread-DjSFvEQe.js +9 -0
  40. package/web/dist/assets/{thread-state-D9M6QlQg.js → thread-state-B5tTsVNm.js} +1 -1
  41. package/web/dist/assets/use-desktop-BPWIJ0Kw.js +1 -0
  42. package/web/dist/assets/use-hand-to-agent-state-Ce6QW2j_.js +1 -0
  43. package/web/dist/assets/{workflows-PiPHxX9B.js → workflows-CN8uKYnY.js} +1 -1
  44. package/web/dist/index.html +5 -5
  45. package/web/dist/assets/agent-accounts-C48RdN3o.js +0 -18
  46. package/web/dist/assets/github-DXpEQGWA.js +0 -1
  47. package/web/dist/assets/index-CZ9U6te1.js +0 -17
  48. package/web/dist/assets/task-thread-IZnFNefE.js +0 -9
  49. package/web/dist/assets/use-desktop-jIeTPw3K.js +0 -1
  50. package/web/dist/assets/use-hand-to-agent-state-D1JMLHA_.js +0 -1
@@ -30,6 +30,11 @@ export declare class ClaudeCliRunner implements AgentRunner {
30
30
  readonly specSupport: Readonly<Record<keyof AgentRunSpec, import("./agent-runner.ts").SpecFieldSupport>>;
31
31
  readonly systemPromptOnResume: "resent";
32
32
  readonly facts: {
33
+ readonly childWork: 'nested';
34
+ readonly hookEvents: 'reported';
35
+ readonly nativePermission: 'none';
36
+ readonly transport: 'stdio';
37
+ readonly humanPromptHold: 'none';
33
38
  readonly inputDelivery: {
34
39
  readonly mode: 'steer';
35
40
  readonly consumption: 'observable';
@@ -33,6 +33,11 @@ export declare class CodexAppServerRunner implements AgentRunner {
33
33
  readonly specSupport: Readonly<Record<keyof AgentRunSpec, import("./agent-runner.ts").SpecFieldSupport>>;
34
34
  readonly systemPromptOnResume: "in-thread";
35
35
  readonly facts: {
36
+ readonly childWork: 'nested';
37
+ readonly hookEvents: 'reported';
38
+ readonly nativePermission: 'in-turn';
39
+ readonly transport: 'stdio';
40
+ readonly humanPromptHold: 'consumption';
36
41
  readonly inputDelivery: {
37
42
  readonly mode: 'steer';
38
43
  readonly consumption: 'observable';
@@ -20,6 +20,11 @@ export declare class CursorPrintRunner implements AgentRunner {
20
20
  readonly specSupport: Readonly<Record<keyof AgentRunSpec, import("./agent-runner.ts").SpecFieldSupport>>;
21
21
  readonly systemPromptOnResume: "in-thread";
22
22
  readonly facts: {
23
+ readonly childWork: 'none';
24
+ readonly hookEvents: 'none';
25
+ readonly nativePermission: 'none';
26
+ readonly transport: 'stdio';
27
+ readonly humanPromptHold: 'turn-end';
23
28
  readonly inputDelivery: {
24
29
  readonly mode: 'boundary';
25
30
  readonly consumption: 'unobservable';
@@ -22,6 +22,11 @@ export declare class CursorRunner implements AgentRunner {
22
22
  readonly backend: 'cursor';
23
23
  readonly specSupport: Readonly<Record<keyof AgentRunSpec, import("./agent-runner.ts").SpecFieldSupport>>;
24
24
  readonly facts: {
25
+ readonly childWork: 'none';
26
+ readonly hookEvents: 'none';
27
+ readonly nativePermission: 'none';
28
+ readonly transport: 'stdio';
29
+ readonly humanPromptHold: 'turn-end';
25
30
  readonly inputDelivery: {
26
31
  readonly mode: 'boundary';
27
32
  readonly consumption: 'unobservable';
@@ -60,6 +60,11 @@ export declare class OmpRunner implements AgentRunner {
60
60
  readonly specSupport: Readonly<Record<keyof AgentRunSpec, import("./agent-runner.js").SpecFieldSupport>>;
61
61
  readonly systemPromptOnResume: "resent";
62
62
  readonly facts: {
63
+ readonly childWork: 'nested';
64
+ readonly hookEvents: 'none';
65
+ readonly nativePermission: 'none';
66
+ readonly transport: 'stdio';
67
+ readonly humanPromptHold: 'acknowledgement';
63
68
  readonly inputDelivery: {
64
69
  readonly mode: 'steer';
65
70
  readonly consumption: 'observable';
@@ -49,6 +49,11 @@ export declare class OpencodeServerRunner implements AgentRunner {
49
49
  readonly specSupport: Readonly<Record<keyof AgentRunSpec, import("./agent-runner.ts").SpecFieldSupport>>;
50
50
  readonly systemPromptOnResume: "in-thread";
51
51
  readonly facts: {
52
+ readonly childWork: 'nested';
53
+ readonly hookEvents: 'none';
54
+ readonly nativePermission: 'after-turn';
55
+ readonly transport: 'http';
56
+ readonly humanPromptHold: 'acknowledgement';
52
57
  readonly inputDelivery: {
53
58
  readonly mode: 'steer';
54
59
  readonly consumption: 'observable';
@@ -32,6 +32,11 @@ export declare class PiRunner implements AgentRunner {
32
32
  readonly specSupport: Readonly<Record<keyof AgentRunSpec, import("./agent-runner.js").SpecFieldSupport>>;
33
33
  readonly systemPromptOnResume: "resent";
34
34
  readonly facts: {
35
+ readonly childWork: 'none';
36
+ readonly hookEvents: 'none';
37
+ readonly nativePermission: 'none';
38
+ readonly transport: 'stdio';
39
+ readonly humanPromptHold: 'acknowledgement';
35
40
  readonly inputDelivery: {
36
41
  readonly mode: 'steer';
37
42
  readonly consumption: 'observable';
@@ -25,6 +25,33 @@ export interface RunnerFacts {
25
25
  * stays open until every child returns, so no turn end parks on running children.
26
26
  */
27
27
  readonly nativeSubagents: 'reported' | 'unreported' | 'turn-held';
28
+ /**
29
+ * A native subagent's own work. `nested`: the wire reports a child's items together with the
30
+ * parent tool call that started the child, so the child's work nests under that call. `none`:
31
+ * the wire carries no child session and no child transcript.
32
+ */
33
+ readonly childWork: 'nested' | 'none';
34
+ /** Hook runs. `reported`: the wire streams each hook run, which Squawk maps to a hook item.
35
+ * `none`: hooks run inside the harness and the wire carries no hook frame. */
36
+ readonly hookEvents: 'reported' | 'none';
37
+ /**
38
+ * How long a human prompt on its way to the wire holds agent input back. `none`: agent input is
39
+ * never refused for a human prompt. `consumption`: the hold ends when the wire reports the prompt
40
+ * read; a prompt that starts a turn is also released by that start's acknowledgement, and a prompt
41
+ * steered into a running turn by the turn's end. `acknowledgement`: the hold ends only at the
42
+ * prompt's acknowledgement. `turn-end`: the hold ends when the turn the prompt opened ends.
43
+ */
44
+ readonly humanPromptHold: 'none' | 'consumption' | 'acknowledgement' | 'turn-end';
45
+ /**
46
+ * The harness's native permission request, which Squawk answers through the cockpit permission
47
+ * card. `none`: the wire carries no permission request. `in-turn`: a request arrives only inside
48
+ * the running turn, so none arrives after the turn ends. `after-turn`: a request can also arrive
49
+ * after the turn ended, and it reopens the turn.
50
+ */
51
+ readonly nativePermission: 'none' | 'in-turn' | 'after-turn';
52
+ /** How Squawk reaches the native wire. `stdio`: the stdin and stdout of the spawned process
53
+ * carry it. `http`: Squawk spawns a server, waits for it to listen, and talks to it over HTTP. */
54
+ readonly transport: 'stdio' | 'http';
28
55
  /** The native tool that schedules the session's own wake-up, the equivalent of a `cezar_wait`
29
56
  * timer; null when the wire has none. A tool of the same name on another wire means nothing. */
30
57
  readonly nativeTimerTool: string | null;
@@ -41,6 +68,11 @@ export interface RunnerFacts {
41
68
  }
42
69
  export declare const RUNNER_FACTS: {
43
70
  readonly claude: {
71
+ readonly childWork: 'nested';
72
+ readonly hookEvents: 'reported';
73
+ readonly nativePermission: 'none';
74
+ readonly transport: 'stdio';
75
+ readonly humanPromptHold: 'none';
44
76
  readonly inputDelivery: {
45
77
  readonly mode: 'steer';
46
78
  readonly consumption: 'observable';
@@ -56,6 +88,11 @@ export declare const RUNNER_FACTS: {
56
88
  readonly sessionIdSource: 'launch';
57
89
  };
58
90
  readonly codex: {
91
+ readonly childWork: 'nested';
92
+ readonly hookEvents: 'reported';
93
+ readonly nativePermission: 'in-turn';
94
+ readonly transport: 'stdio';
95
+ readonly humanPromptHold: 'consumption';
59
96
  readonly inputDelivery: {
60
97
  readonly mode: 'steer';
61
98
  readonly consumption: 'observable';
@@ -71,6 +108,11 @@ export declare const RUNNER_FACTS: {
71
108
  readonly sessionIdSource: 'native';
72
109
  };
73
110
  readonly opencode: {
111
+ readonly childWork: 'nested';
112
+ readonly hookEvents: 'none';
113
+ readonly nativePermission: 'after-turn';
114
+ readonly transport: 'http';
115
+ readonly humanPromptHold: 'acknowledgement';
74
116
  readonly inputDelivery: {
75
117
  readonly mode: 'steer';
76
118
  readonly consumption: 'observable';
@@ -86,6 +128,11 @@ export declare const RUNNER_FACTS: {
86
128
  readonly sessionIdSource: 'native';
87
129
  };
88
130
  readonly pi: {
131
+ readonly childWork: 'none';
132
+ readonly hookEvents: 'none';
133
+ readonly nativePermission: 'none';
134
+ readonly transport: 'stdio';
135
+ readonly humanPromptHold: 'acknowledgement';
89
136
  readonly inputDelivery: {
90
137
  readonly mode: 'steer';
91
138
  readonly consumption: 'observable';
@@ -101,6 +148,11 @@ export declare const RUNNER_FACTS: {
101
148
  readonly sessionIdSource: 'launch';
102
149
  };
103
150
  readonly cursor: {
151
+ readonly childWork: 'none';
152
+ readonly hookEvents: 'none';
153
+ readonly nativePermission: 'none';
154
+ readonly transport: 'stdio';
155
+ readonly humanPromptHold: 'turn-end';
104
156
  readonly inputDelivery: {
105
157
  readonly mode: 'boundary';
106
158
  readonly consumption: 'unobservable';
@@ -116,6 +168,11 @@ export declare const RUNNER_FACTS: {
116
168
  readonly sessionIdSource: 'native';
117
169
  };
118
170
  readonly omp: {
171
+ readonly childWork: 'nested';
172
+ readonly hookEvents: 'none';
173
+ readonly nativePermission: 'none';
174
+ readonly transport: 'stdio';
175
+ readonly humanPromptHold: 'acknowledgement';
119
176
  readonly inputDelivery: {
120
177
  readonly mode: 'steer';
121
178
  readonly consumption: 'observable';
@@ -1,6 +1,15 @@
1
1
  import { RUNNER_IDS } from './agent-runner.js';
2
2
  export const RUNNER_FACTS = {
3
3
  claude: {
4
+ // childWork: a subagent's stream-json messages carry parent_tool_use_id (claude-ui-mapper.ts).
5
+ // hookEvents: --include-hook-events streams each hook run (claude-cli-runner.ts).
6
+ // nativePermission: print mode settles every permission inside Claude under its headless
7
+ // --permission-mode (dontAsk denies an unapproved tool without a request); Squawk's own tools are
8
+ // pre-authorized through --allowedTools.
9
+ // transport: claude -p --input-format stream-json --output-format stream-json over stdio.
10
+ // humanPromptHold: sendAgentMessage refuses only for closed stdin, a refusal retry or a pending
11
+ // agent write; a human prompt is a stdin line, and the pipe keeps the order (claude-cli-runner.ts).
12
+ childWork: 'nested', hookEvents: 'reported', nativePermission: 'none', transport: 'stdio', humanPromptHold: 'none',
4
13
  inputDelivery: {
5
14
  mode: 'steer', consumption: 'observable', acknowledgement: 'write', humanInputAtTurnEnd: 'held-when-late',
6
15
  via: 'stream-json stdin line with uuid; --replay-user-messages echo at consumption',
@@ -9,6 +18,16 @@ export const RUNNER_FACTS = {
9
18
  nativeAsk: 'none', nativeSubagents: 'reported', nativeTimerTool: 'ScheduleWakeup', costReport: 'cumulative', sessionIdSource: 'launch',
10
19
  },
11
20
  codex: {
21
+ // childWork: a child thread's items nest under its spawnAgent item through collabParentItemId
22
+ // (codex-hook-mapper.ts).
23
+ // hookEvents: app-server sends hook/started and hook/completed (codex-hook-mapper.ts).
24
+ // nativePermission: app-server sends an approval request only inside the turn its turnId names;
25
+ // noteTurnEnded expires every pending approval (codex-app-server-runner.ts).
26
+ // transport: codex app-server JSON-RPC lines over stdio.
27
+ // humanPromptHold: sendAgentMessage refuses while humanPromptsPending > 0; the userMessage
28
+ // item of the prompt (noteHumanEcho) releases it before the turn/start or turn/steer response
29
+ // (codex-app-server-runner.ts).
30
+ childWork: 'nested', hookEvents: 'reported', nativePermission: 'in-turn', transport: 'stdio', humanPromptHold: 'consumption',
12
31
  inputDelivery: {
13
32
  mode: 'steer', consumption: 'observable', acknowledgement: 'response', humanInputAtTurnEnd: 'held-when-late',
14
33
  // The userMessage item marks the input entering the thread's history (probe 2026-09-24:
@@ -19,6 +38,14 @@ export const RUNNER_FACTS = {
19
38
  nativeAsk: 'answerable', nativeSubagents: 'reported', nativeTimerTool: null, costReport: 'per-turn', sessionIdSource: 'native',
20
39
  },
21
40
  opencode: {
41
+ // childWork: a subtask's child-session parts nest under the subtask part (opencode-ui-mapper.ts).
42
+ // hookEvents: OpenCode 1.18.35 runs plugin hooks in-process; its SSE wire carries no hook event.
43
+ // nativePermission: a main-session permission.asked after session.idle means the server started
44
+ // a run, and the runner reopens the turn for it (opencode-server-runner.ts).
45
+ // transport: opencode serve --hostname 127.0.0.1 --port N; HTTP requests and an SSE event stream.
46
+ // humanPromptHold: sendAgentMessage refuses while pendingPromptRequests > 0, which drops only
47
+ // when the prompt's HTTP request resolves (deliverPrompt, opencode-server-runner.ts).
48
+ childWork: 'nested', hookEvents: 'none', nativePermission: 'after-turn', transport: 'http', humanPromptHold: 'acknowledgement',
22
49
  inputDelivery: {
23
50
  mode: 'steer', consumption: 'observable', acknowledgement: 'response', humanInputAtTurnEnd: 'always-held',
24
51
  via: 'prompt_async while busy; assistant message.updated parentID at consumption',
@@ -27,6 +54,14 @@ export const RUNNER_FACTS = {
27
54
  nativeAsk: 'answerable', nativeSubagents: 'turn-held', nativeTimerTool: null, costReport: 'per-turn', sessionIdSource: 'native',
28
55
  },
29
56
  pi: {
57
+ // childWork: Pi RPC has no child session; a task tool is a plain tool call on the parent
58
+ // session (__fixtures__/pi/rpc-lifecycle.expected.json).
59
+ // hookEvents: Pi 1.0.4 runs extensions in-process; its RPC wire reports only extension_error.
60
+ // nativePermission: Pi RPC carries no tool approval request; tool admission is --tools.
61
+ // transport: pi --mode rpc over stdio.
62
+ // humanPromptHold: a human prompt carries no id; sendAgentMessage refuses while
63
+ // humanPromptAcks > 0, and only its prompt response, in write order, settles it (pi-runner.ts).
64
+ childWork: 'none', hookEvents: 'none', nativePermission: 'none', transport: 'stdio', humanPromptHold: 'acknowledgement',
30
65
  inputDelivery: {
31
66
  mode: 'steer', consumption: 'observable', acknowledgement: 'response', humanInputAtTurnEnd: 'held-when-late',
32
67
  via: 'prompt with streamingBehavior steer; set_steering_mode all at session start; user message_start with the submitted text',
@@ -36,6 +71,14 @@ export const RUNNER_FACTS = {
36
71
  },
37
72
  // Every Cursor session runs on print (hearsay-tools/cezarion#1267).
38
73
  cursor: {
74
+ // childWork: print stream-json reports the parent Task call but no child-session transcript and
75
+ // no child terminal frame (__fixtures__/cursor/README.md).
76
+ // hookEvents: Cursor 2026.10.01-e373342 print stream-json carries no hook lifecycle frame.
77
+ // nativePermission: print runs with --force; its stream-json wire carries no permission request.
78
+ // transport: agent -p --output-format stream-json; the prompt on stdin, frames on stdout.
79
+ // humanPromptHold: sendAgentMessage refuses while busy; a human prompt keeps its print process
80
+ // busy until the process exits (cursor-print-runner.ts).
81
+ childWork: 'none', hookEvents: 'none', nativePermission: 'none', transport: 'stdio', humanPromptHold: 'turn-end',
39
82
  inputDelivery: {
40
83
  mode: 'boundary', consumption: 'unobservable', acknowledgement: 'model-work', humanInputAtTurnEnd: 'always-held',
41
84
  via: 'next exact-resume print process',
@@ -44,6 +87,16 @@ export const RUNNER_FACTS = {
44
87
  nativeAsk: 'auto-skipped', nativeSubagents: 'unreported', nativeTimerTool: null, costReport: 'per-turn', sessionIdSource: 'native',
45
88
  },
46
89
  omp: {
90
+ // childWork: subagent_event frames carry subagent_lifecycle.parentToolCallId of their task call
91
+ // (omp-subagent-rows.ts).
92
+ // hookEvents: OMP 18.8.0 shares Pi's RPC wire: extensions run in-process and report only
93
+ // extension_error.
94
+ // nativePermission: OMP RPC carries no tool approval request; tool admission is its --tools list
95
+ // and --config overlay.
96
+ // transport: omp --mode rpc over stdio.
97
+ // humanPromptHold: sendAgentMessage refuses while humanAcks holds the prompt's id; only its
98
+ // prompt response deletes it (omp-runner.ts).
99
+ childWork: 'nested', hookEvents: 'none', nativePermission: 'none', transport: 'stdio', humanPromptHold: 'acknowledgement',
47
100
  inputDelivery: {
48
101
  mode: 'steer', consumption: 'observable', acknowledgement: 'response', humanInputAtTurnEnd: 'never-held',
49
102
  via: 'prompt with streamingBehavior steer; set_steering_mode all at session start; user message_start with the submitted text',
@@ -1 +1 @@
1
- {"version":3,"file":"runner-facts.js","sourceRoot":"","sources":["../../src/core/runner-facts.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAgE,MAAM,mBAAmB,CAAC;AA2C7G,MAAM,CAAC,MAAM,YAAY,GAAG;IAC1B,MAAM,EAAE;QACN,aAAa,EAAE;YACb,IAAI,EAAE,OAAO,EAAE,WAAW,EAAE,YAAY,EAAE,eAAe,EAAE,OAAO,EAAE,mBAAmB,EAAE,gBAAgB;YACzG,GAAG,EAAE,8EAA8E;SACpF;QACD,oBAAoB,EAAE,QAAQ;QAC9B,SAAS,EAAE,MAAM,EAAE,eAAe,EAAE,UAAU,EAAE,eAAe,EAAE,gBAAgB,EAAE,UAAU,EAAE,YAAY,EAAE,eAAe,EAAE,QAAQ;KACvI;IACD,KAAK,EAAE;QACL,aAAa,EAAE;YACb,IAAI,EAAE,OAAO,EAAE,WAAW,EAAE,YAAY,EAAE,eAAe,EAAE,UAAU,EAAE,mBAAmB,EAAE,gBAAgB;YAC5G,wFAAwF;YACxF,+FAA+F;YAC/F,GAAG,EAAE,mGAAmG;SACzG;QACD,oBAAoB,EAAE,WAAW;QACjC,SAAS,EAAE,YAAY,EAAE,eAAe,EAAE,UAAU,EAAE,eAAe,EAAE,IAAI,EAAE,UAAU,EAAE,UAAU,EAAE,eAAe,E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yH;SAC/H;QACD,oBAAoB,EAAE,QAAQ;QAC9B,SAAS,EAAE,MAAM,EAAE,eAAe,EAAE,WAAW,EAAE,eAAe,EAAE,IAAI,EAAE,UAAU,EAAE,UAAU,EAAE,eAAe,EAAE,QAAQ;KAC1H;CACyD,CAAC;AAE7D,qEAAqE;AACrE,MAAM,UAAU,YAAY,CAAC,OAAwC;IACnE,OAAO,UAAU,CAAC,MAAM,CAAC,EAAE,CAAC,EAAE,CAAC,OAAO,CAAC,YAAY,CAAC,EAAE,CAAC,CAAC,CAAC,CAAC;AAC5D,CAAC"}
@@ -27,6 +27,18 @@ export declare function delegationFailure(error: unknown): {
27
27
  export declare function createDelegationRoutes(service: DelegationService, credentials: CredentialRegistry): import("hono/hono-base").HonoBase<Env, {
28
28
  "/list": {
29
29
  $get: {
30
+ output: {
31
+ error: string;
32
+ code?: "invalid_input" | undefined;
33
+ };
34
+ outputFormat: "json";
35
+ status: 400;
36
+ input: {
37
+ query: {
38
+ offset?: string | undefined;
39
+ };
40
+ };
41
+ } | {
30
42
  output: {
31
43
  workers: {
32
44
  workerId: string;
@@ -64,18 +76,6 @@ export declare function createDelegationRoutes(service: DelegationService, crede
64
76
  offset?: string | undefined;
65
77
  };
66
78
  };
67
- } | {
68
- output: {
69
- error: string;
70
- code?: "invalid_input" | undefined;
71
- };
72
- outputFormat: "json";
73
- status: 400;
74
- input: {
75
- query: {
76
- offset?: string | undefined;
77
- };
78
- };
79
79
  };
80
80
  };
81
81
  } & {
@@ -613,6 +613,18 @@ export declare function createDelegationRoutes(service: DelegationService, crede
613
613
  } & {
614
614
  "/:workerId": {
615
615
  $get: {
616
+ output: {
617
+ error: string;
618
+ code?: "invalid_input" | undefined;
619
+ };
620
+ outputFormat: "json";
621
+ status: 400;
622
+ input: {
623
+ param: {
624
+ workerId: string;
625
+ };
626
+ };
627
+ } | {
616
628
  output: {
617
629
  workerId: string;
618
630
  parentRunId: string;
@@ -716,7 +728,11 @@ export declare function createDelegationRoutes(service: DelegationService, crede
716
728
  workerId: string;
717
729
  };
718
730
  };
719
- } | {
731
+ };
732
+ };
733
+ } & {
734
+ "/:workerId/collect": {
735
+ $post: {
720
736
  output: {
721
737
  error: string;
722
738
  code?: "invalid_input" | undefined;
@@ -727,12 +743,10 @@ export declare function createDelegationRoutes(service: DelegationService, crede
727
743
  param: {
728
744
  workerId: string;
729
745
  };
746
+ } & {
747
+ json: Record<string, never>;
730
748
  };
731
- };
732
- };
733
- } & {
734
- "/:workerId/collect": {
735
- $post: {
749
+ } | {
736
750
  output: {
737
751
  workerId: string;
738
752
  parentRunId: string;
@@ -834,7 +848,11 @@ export declare function createDelegationRoutes(service: DelegationService, crede
834
848
  } & {
835
849
  json: Record<string, never>;
836
850
  };
837
- } | {
851
+ };
852
+ };
853
+ } & {
854
+ "/:workerId/steer": {
855
+ $post: {
838
856
  output: {
839
857
  error: string;
840
858
  code?: "invalid_input" | undefined;
@@ -846,13 +864,11 @@ export declare function createDelegationRoutes(service: DelegationService, crede
846
864
  workerId: string;
847
865
  };
848
866
  } & {
849
- json: Record<string, never>;
867
+ json: {
868
+ text: string;
869
+ };
850
870
  };
851
- };
852
- };
853
- } & {
854
- "/:workerId/steer": {
855
- $post: {
871
+ } | {
856
872
  output: {
857
873
  workerId: string;
858
874
  state: "delivered" | "queued";
@@ -868,7 +884,11 @@ export declare function createDelegationRoutes(service: DelegationService, crede
868
884
  text: string;
869
885
  };
870
886
  };
871
- } | {
887
+ };
888
+ };
889
+ } & {
890
+ "/:workerId/stop": {
891
+ $post: {
872
892
  output: {
873
893
  error: string;
874
894
  code?: "invalid_input" | undefined;
@@ -880,15 +900,9 @@ export declare function createDelegationRoutes(service: DelegationService, crede
880
900
  workerId: string;
881
901
  };
882
902
  } & {
883
- json: {
884
- text: string;
885
- };
903
+ json: Record<string, never>;
886
904
  };
887
- };
888
- };
889
- } & {
890
- "/:workerId/stop": {
891
- $post: {
905
+ } | {
892
906
  output: {
893
907
  workerId: string;
894
908
  state: "stopping" | "terminated";
@@ -902,7 +916,11 @@ export declare function createDelegationRoutes(service: DelegationService, crede
902
916
  } & {
903
917
  json: Record<string, never>;
904
918
  };
905
- } | {
919
+ };
920
+ };
921
+ } & {
922
+ "/:workerId/destroy": {
923
+ $post: {
906
924
  output: {
907
925
  error: string;
908
926
  code?: "invalid_input" | undefined;
@@ -916,11 +934,7 @@ export declare function createDelegationRoutes(service: DelegationService, crede
916
934
  } & {
917
935
  json: Record<string, never>;
918
936
  };
919
- };
920
- };
921
- } & {
922
- "/:workerId/destroy": {
923
- $post: {
937
+ } | {
924
938
  output: {
925
939
  workerId: string;
926
940
  state: "complete" | "incomplete";
@@ -943,20 +957,6 @@ export declare function createDelegationRoutes(service: DelegationService, crede
943
957
  } & {
944
958
  json: Record<string, never>;
945
959
  };
946
- } | {
947
- output: {
948
- error: string;
949
- code?: "invalid_input" | undefined;
950
- };
951
- outputFormat: "json";
952
- status: 400;
953
- input: {
954
- param: {
955
- workerId: string;
956
- };
957
- } & {
958
- json: Record<string, never>;
959
- };
960
960
  } | {
961
961
  output: {
962
962
  workerId: string;
@@ -986,13 +986,11 @@ export declare function createDelegationRoutes(service: DelegationService, crede
986
986
  "/:workerId/diff": {
987
987
  $get: {
988
988
  output: {
989
- workerId: string;
990
- baselineSha: string;
991
- diff: string;
992
- truncated: boolean;
989
+ error: string;
990
+ code?: "invalid_input" | undefined;
993
991
  };
994
992
  outputFormat: "json";
995
- status: 200;
993
+ status: 400;
996
994
  input: {
997
995
  param: {
998
996
  workerId: string;
@@ -1000,11 +998,13 @@ export declare function createDelegationRoutes(service: DelegationService, crede
1000
998
  };
1001
999
  } | {
1002
1000
  output: {
1003
- error: string;
1004
- code?: "invalid_input" | undefined;
1001
+ workerId: string;
1002
+ baselineSha: string;
1003
+ diff: string;
1004
+ truncated: boolean;
1005
1005
  };
1006
1006
  outputFormat: "json";
1007
- status: 400;
1007
+ status: 200;
1008
1008
  input: {
1009
1009
  param: {
1010
1010
  workerId: string;
@@ -40,7 +40,7 @@ export declare const reportsRoutes: import("hono/hono-base").HonoBase<ProjectApi
40
40
  error: string;
41
41
  };
42
42
  outputFormat: "json";
43
- status: 400;
43
+ status: 409;
44
44
  input: {
45
45
  query: {
46
46
  q?: string | undefined;
@@ -53,7 +53,7 @@ export declare const reportsRoutes: import("hono/hono-base").HonoBase<ProjectApi
53
53
  error: string;
54
54
  };
55
55
  outputFormat: "json";
56
- status: 409;
56
+ status: 400;
57
57
  input: {
58
58
  query: {
59
59
  q?: string | undefined;