@hearsay-tools/squawk 0.18.0-dev.6755 → 0.18.0-dev.6774

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 (98) hide show
  1. package/dist/ci-wait/controller.d.ts +4 -4
  2. package/dist/contract/index.d.ts +2 -0
  3. package/dist/contract/index.js +74 -2
  4. package/dist/contract/own-lookup.d.ts +5 -0
  5. package/dist/contract/runner-facts.d.ts +91 -0
  6. package/dist/contract/runs.d.ts +1 -1
  7. package/dist/core/claude-cli-runner.d.ts +5 -0
  8. package/dist/core/claude-forked-command.d.ts +36 -0
  9. package/dist/core/claude-forked-command.js +65 -0
  10. package/dist/core/claude-forked-command.js.map +1 -0
  11. package/dist/core/claude-ui-mapper.d.ts +2 -1
  12. package/dist/core/claude-ui-mapper.js +17 -1
  13. package/dist/core/claude-ui-mapper.js.map +1 -1
  14. package/dist/core/codex-app-server-runner.d.ts +5 -0
  15. package/dist/core/cursor-print-runner.d.ts +5 -0
  16. package/dist/core/cursor-runner.d.ts +5 -0
  17. package/dist/core/omp-runner.d.ts +5 -0
  18. package/dist/core/opencode-server-runner.d.ts +5 -0
  19. package/dist/core/own-lookup.d.ts +1 -5
  20. package/dist/core/own-lookup.js +1 -7
  21. package/dist/core/own-lookup.js.map +1 -1
  22. package/dist/core/pi-runner.d.ts +5 -0
  23. package/dist/core/runner-cli.d.ts +31 -0
  24. package/dist/core/runner-cli.js +40 -0
  25. package/dist/core/runner-cli.js.map +1 -0
  26. package/dist/core/runner-facts.d.ts +57 -0
  27. package/dist/core/runner-facts.js +53 -0
  28. package/dist/core/runner-facts.js.map +1 -1
  29. package/dist/core/runner-model-catalog.js +2 -9
  30. package/dist/core/runner-model-catalog.js.map +1 -1
  31. package/dist/delegation/routes.d.ts +21 -21
  32. package/dist/delegation/transport.d.ts +11 -11
  33. package/dist/server/checkout.d.ts +1 -1
  34. package/dist/server/live-routes.d.ts +6 -6
  35. package/dist/server/open-in-targets.d.ts +1 -1
  36. package/dist/server/open-in-targets.js +5 -12
  37. package/dist/server/open-in-targets.js.map +1 -1
  38. package/dist/server/provider-action-gate.js +3 -10
  39. package/dist/server/provider-action-gate.js.map +1 -1
  40. package/dist/server/server.d.ts +188 -195
  41. package/dist/server/server.js +33 -68
  42. package/dist/server/server.js.map +1 -1
  43. package/dist/workflows/run/compose.js +1 -1
  44. package/dist/workflows/run/compose.js.map +1 -1
  45. package/dist/workflows/run/liveness-timers.d.ts +4 -0
  46. package/dist/workflows/run/liveness-timers.js +2 -0
  47. package/dist/workflows/run/liveness-timers.js.map +1 -1
  48. package/dist/workflows/run/session-events.d.ts +2 -2
  49. package/dist/workflows/run/session-events.js +1 -1
  50. package/dist/workflows/run/session-events.js.map +1 -1
  51. package/dist/workflows/run/subagent-waits.d.ts +7 -0
  52. package/dist/workflows/run/subagent-waits.js +30 -0
  53. package/dist/workflows/run/subagent-waits.js.map +1 -1
  54. package/dist/workflows/run/turn-settler.d.ts +4 -1
  55. package/dist/workflows/run/turn-settler.js +6 -0
  56. package/dist/workflows/run/turn-settler.js.map +1 -1
  57. package/dist/workflows/run-states.js +1 -1
  58. package/dist/workflows/run-states.js.map +1 -1
  59. package/package.json +4 -4
  60. package/scripts/mock-ask-answer.d.mts +2 -0
  61. package/scripts/mock-opencode-questions.d.mts +14 -0
  62. package/scripts/mock-pi-rpc.mjs +9 -4
  63. package/web/dist/assets/{activity-motion-CjPL-sr2.js → activity-motion-gOopdagH.js} +1 -1
  64. package/web/dist/assets/{activity-route-C0tIKFED.js → activity-route-D7bDtXpW.js} +1 -1
  65. package/web/dist/assets/agent-accounts-otlDWnij.js +18 -0
  66. package/web/dist/assets/{commit-diff-panel-uIMnjowv.js → commit-diff-panel-iQf0Rlcx.js} +1 -1
  67. package/web/dist/assets/{diff-CUIYkwMG.js → diff-DQfcliZC.js} +2 -2
  68. package/web/dist/assets/{diff-view-CH27Vgln.js → diff-view-BbM-71Cs.js} +1 -1
  69. package/web/dist/assets/{file-preview-wrsPzzjz.js → file-preview-DgU8vo8k.js} +1 -1
  70. package/web/dist/assets/{git-toolbar-C1v8n8nd.js → git-toolbar-C8agvpYS.js} +1 -1
  71. package/web/dist/assets/{github-0PYN1Ju2.js → github-hXmxAXmA.js} +1 -1
  72. package/web/dist/assets/{global-activity-route-KDUFNxgb.js → global-activity-route-D_r1ImUh.js} +1 -1
  73. package/web/dist/assets/index-tN02NX7A.js +17 -0
  74. package/web/dist/assets/{preview-pane-connected-B1XJVVoo.js → preview-pane-connected-D__9JwyU.js} +1 -1
  75. package/web/dist/assets/{prompt-template-menu-DC5XoYEs.js → prompt-template-menu-BJfUg1uF.js} +1 -1
  76. package/web/dist/assets/queries-BJM44umy.js +1 -0
  77. package/web/dist/assets/{reference-chip-peKR_0El.js → reference-chip-vraIzoEF.js} +1 -1
  78. package/web/dist/assets/{repo-git-DU5eh5V8.js → repo-git-B4qZq37d.js} +1 -1
  79. package/web/dist/assets/{report-reader-DsvVau4u.js → report-reader-Djix-ICM.js} +1 -1
  80. package/web/dist/assets/{reports-Brs9M380.js → reports-Do-dkavq.js} +1 -1
  81. package/web/dist/assets/run-header-Di9LaKQs.js +2 -0
  82. package/web/dist/assets/{skills-TJPEPrU2.js → skills-CPnIvFnR.js} +1 -1
  83. package/web/dist/assets/{task-changes-BMMqKQZQ.js → task-changes-CW7NzgL5.js} +1 -1
  84. package/web/dist/assets/{task-commits-DzOQ_acm.js → task-commits-Bkwi7o1B.js} +1 -1
  85. package/web/dist/assets/{task-files-CqBxJ5lZ.js → task-files-geRzIszC.js} +1 -1
  86. package/web/dist/assets/{task-github-item-DYZGczpf.js → task-github-item-UbCCP2Ud.js} +1 -1
  87. package/web/dist/assets/task-thread-CkiEiypn.js +9 -0
  88. package/web/dist/assets/{thread-state-VHo3TMiY.js → thread-state-CajkV5Ft.js} +1 -1
  89. package/web/dist/assets/{use-desktop-DBpXK7UB.js → use-desktop-Ct4lvA3b.js} +1 -1
  90. package/web/dist/assets/{use-hand-to-agent-state-DiPruziF.js → use-hand-to-agent-state-Cnxq_2F6.js} +1 -1
  91. package/web/dist/assets/workflows-Csr2hbks.js +7 -0
  92. package/web/dist/index.html +6 -6
  93. package/web/dist/assets/agent-accounts-Bfv01ivB.js +0 -18
  94. package/web/dist/assets/index-DgeV0f4H.js +0 -17
  95. package/web/dist/assets/queries-Ce9CPdRy.js +0 -1
  96. package/web/dist/assets/run-header-BYyz-dXB.js +0 -2
  97. package/web/dist/assets/task-thread-DYEBHvdF.js +0 -9
  98. package/web/dist/assets/workflows-DiURHZJ-.js +0 -7
@@ -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';
@@ -1,5 +1 @@
1
- /**
2
- * Look a wire string up in a plain-object table by own keys only. A plain index returns
3
- * `Object.prototype` members for keys such as `toString`, `constructor` or `__proto__`.
4
- */
5
- export declare function ownLookup<V>(table: Readonly<Record<string, V>>, key: unknown): V | undefined;
1
+ export { ownLookup } from '../contract/index.js';
@@ -1,8 +1,2 @@
1
- /**
2
- * Look a wire string up in a plain-object table by own keys only. A plain index returns
3
- * `Object.prototype` members for keys such as `toString`, `constructor` or `__proto__`.
4
- */
5
- export function ownLookup(table, key) {
6
- return typeof key === 'string' && Object.hasOwn(table, key) ? table[key] : undefined;
7
- }
1
+ export { ownLookup } from '../contract/index.js';
8
2
  //# sourceMappingURL=own-lookup.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"own-lookup.js","sourceRoot":"","sources":["../../src/core/own-lookup.ts"],"names":[],"mappings":"AAAA;;;GAGG;AACH,MAAM,UAAU,SAAS,CAAI,KAAkC,EAAE,GAAY;IAC3E,OAAO,OAAO,GAAG,KAAK,QAAQ,IAAI,MAAM,CAAC,MAAM,CAAC,KAAK,EAAE,GAAG,CAAC,CAAC,CAAC,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,SAAS,CAAC;AACvF,CAAC"}
1
+ {"version":3,"file":"own-lookup.js","sourceRoot":"","sources":["../../src/core/own-lookup.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,yCAAyC,CAAC"}
@@ -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';
@@ -0,0 +1,31 @@
1
+ import type { RunnerId } from './agent-runner.ts';
2
+ /**
3
+ * How a terminal starts each runner's own CLI, the take-over command of "Open in terminal" and
4
+ * the cockpit's copyable resume line (hearsay-tools/squawk#3642).
5
+ */
6
+ export interface RunnerCli {
7
+ /**
8
+ * The executable a terminal runs. `path-name`: the CLI's name on PATH. `configured`: the
9
+ * executable the server resolves from its `HSQ_*_BIN` override, so only the server can spell it.
10
+ */
11
+ readonly terminalExecutable: {
12
+ readonly kind: 'path-name';
13
+ readonly name: string;
14
+ } | {
15
+ readonly kind: 'configured';
16
+ readonly resolve: () => string;
17
+ };
18
+ /** The arguments that reopen a recorded session, after the executable. */
19
+ readonly resumeArgs: (sessionId: string) => string;
20
+ }
21
+ export declare const RUNNER_CLI: Readonly<Record<RunnerId, RunnerCli>>;
22
+ /** The terminal executable of a runner as a shell word; null when the configured one cannot be
23
+ * spelled safely on this platform. */
24
+ export declare function terminalExecutable(runner: RunnerId, platform?: NodeJS.Platform): string | null;
25
+ /** True for session ids safe to splice into the take-over command (see above). */
26
+ export declare function isSafeSessionId(sessionId: string): boolean;
27
+ /**
28
+ * The native session take-over command. Refuse unrecognized session-id shapes, and configured
29
+ * executables the platform cannot quote, rather than embed unsafe or platform-misquoted values.
30
+ */
31
+ export declare function resumeCommand(runner: RunnerId, sessionId: string): string | null;
@@ -0,0 +1,40 @@
1
+ import { resolveCursorExecutable } from './cursor-model-catalog.js';
2
+ import { resolveOmpExecutable } from './omp-model-catalog.js';
3
+ import { quoteExecutable } from './shell-env.js';
4
+ export const RUNNER_CLI = {
5
+ claude: { terminalExecutable: { kind: 'path-name', name: 'claude' }, resumeArgs: id => `--resume ${id}` },
6
+ codex: { terminalExecutable: { kind: 'path-name', name: 'codex' }, resumeArgs: id => `resume ${id}` },
7
+ opencode: { terminalExecutable: { kind: 'path-name', name: 'opencode' }, resumeArgs: id => `--session ${id}` },
8
+ pi: { terminalExecutable: { kind: 'path-name', name: 'pi' }, resumeArgs: id => `--session ${id}` },
9
+ cursor: { terminalExecutable: { kind: 'configured', resolve: () => resolveCursorExecutable() }, resumeArgs: id => `--resume ${id}` },
10
+ omp: { terminalExecutable: { kind: 'configured', resolve: () => resolveOmpExecutable() }, resumeArgs: id => `--resume ${id}` },
11
+ };
12
+ /** The terminal executable of a runner as a shell word; null when the configured one cannot be
13
+ * spelled safely on this platform. */
14
+ export function terminalExecutable(runner, platform = process.platform) {
15
+ const executable = RUNNER_CLI[runner].terminalExecutable;
16
+ return executable.kind === 'path-name' ? executable.name : quoteExecutable(executable.resolve(), platform);
17
+ }
18
+ /**
19
+ * The session id shape every backend actually mints: UUIDs (claude/codex) and
20
+ * the CLIs' own slug-ish ids. No character here is special to bash, AppleScript
21
+ * OR cmd.exe, and a leading `-` is refused so the id can never be read as an
22
+ * option by the CLI it is passed to (same dash-guard as `isSafeGitRef`, open-mercato/cezar#431).
23
+ * Bounded, like every other input that reaches a spawned process.
24
+ */
25
+ const SAFE_SESSION_ID = /^[A-Za-z0-9._][A-Za-z0-9._-]{0,199}$/;
26
+ /** True for session ids safe to splice into the take-over command (see above). */
27
+ export function isSafeSessionId(sessionId) {
28
+ return SAFE_SESSION_ID.test(sessionId);
29
+ }
30
+ /**
31
+ * The native session take-over command. Refuse unrecognized session-id shapes, and configured
32
+ * executables the platform cannot quote, rather than embed unsafe or platform-misquoted values.
33
+ */
34
+ export function resumeCommand(runner, sessionId) {
35
+ if (!isSafeSessionId(sessionId))
36
+ return null;
37
+ const executable = terminalExecutable(runner);
38
+ return executable === null ? null : `${executable} ${RUNNER_CLI[runner].resumeArgs(sessionId)}`;
39
+ }
40
+ //# sourceMappingURL=runner-cli.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"runner-cli.js","sourceRoot":"","sources":["../../src/core/runner-cli.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,uBAAuB,EAAE,MAAM,2BAA2B,CAAC;AACpE,OAAO,EAAE,oBAAoB,EAAE,MAAM,wBAAwB,CAAC;AAC9D,OAAO,EAAE,eAAe,EAAE,MAAM,gBAAgB,CAAC;AAgBjD,MAAM,CAAC,MAAM,UAAU,GAA0C;IAC/D,MAAM,EAAE,EAAE,kBAAkB,EAAE,EAAE,IAAI,EAAE,WAAW,EAAE,IAAI,EAAE,QAAQ,EAAE,EAAE,UAAU,EAAE,EAAE,CAAC,EAAE,CAAC,YAAY,EAAE,EAAE,EAAE;IACzG,KAAK,EAAE,EAAE,kBAAkB,EAAE,EAAE,IAAI,EAAE,WAAW,EAAE,IAAI,EAAE,OAAO,EAAE,EAAE,UAAU,EAAE,EAAE,CAAC,EAAE,CAAC,UAAU,EAAE,EAAE,EAAE;IACrG,QAAQ,EAAE,EAAE,kBAAkB,EAAE,EAAE,IAAI,EAAE,WAAW,EAAE,IAAI,EAAE,UAAU,EAAE,EAAE,UAAU,EAAE,EAAE,CAAC,EAAE,CAAC,aAAa,EAAE,EAAE,EAAE;IAC9G,EAAE,EAAE,EAAE,kBAAkB,EAAE,EAAE,IAAI,EAAE,WAAW,EAAE,IAAI,EAAE,IAAI,EAAE,EAAE,UAAU,EAAE,EAAE,CAAC,EAAE,CAAC,aAAa,EAAE,EAAE,EAAE;IAClG,MAAM,EAAE,EAAE,kBAAkB,EAAE,EAAE,IAAI,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{
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;
@@ -44,6 +71,11 @@ export interface RunnerFacts {
44
71
  }
45
72
  export declare const RUNNER_FACTS: {
46
73
  readonly claude: {
74
+ readonly childWork: 'nested';
75
+ readonly hookEvents: 'reported';
76
+ readonly nativePermission: 'none';
77
+ readonly transport: 'stdio';
78
+ readonly humanPromptHold: 'none';
47
79
  readonly inputDelivery: {
48
80
  readonly mode: 'steer';
49
81
  readonly consumption: 'observable';
@@ -60,6 +92,11 @@ export declare const RUNNER_FACTS: {
60
92
  readonly claudeModelAliases: true;
61
93
  };
62
94
  readonly codex: {
95
+ readonly childWork: 'nested';
96
+ readonly hookEvents: 'reported';
97
+ readonly nativePermission: 'in-turn';
98
+ readonly transport: 'stdio';
99
+ readonly humanPromptHold: 'consumption';
63
100
  readonly inputDelivery: {
64
101
  readonly mode: 'steer';
65
102
  readonly consumption: 'observable';
@@ -76,6 +113,11 @@ export declare const RUNNER_FACTS: {
76
113
  readonly claudeModelAliases: false;
77
114
  };
78
115
  readonly opencode: {
116
+ readonly childWork: 'nested';
117
+ readonly hookEvents: 'none';
118
+ readonly nativePermission: 'after-turn';
119
+ readonly transport: 'http';
120
+ readonly humanPromptHold: 'acknowledgement';
79
121
  readonly inputDelivery: {
80
122
  readonly mode: 'steer';
81
123
  readonly consumption: 'observable';
@@ -92,6 +134,11 @@ export declare const RUNNER_FACTS: {
92
134
  readonly claudeModelAliases: false;
93
135
  };
94
136
  readonly pi: {
137
+ readonly childWork: 'none';
138
+ readonly hookEvents: 'none';
139
+ readonly nativePermission: 'none';
140
+ readonly transport: 'stdio';
141
+ readonly humanPromptHold: 'acknowledgement';
95
142
  readonly inputDelivery: {
96
143
  readonly mode: 'steer';
97
144
  readonly consumption: 'observable';
@@ -108,6 +155,11 @@ export declare const RUNNER_FACTS: {
108
155
  readonly claudeModelAliases: false;
109
156
  };
110
157
  readonly cursor: {
158
+ readonly childWork: 'none';
159
+ readonly hookEvents: 'none';
160
+ readonly nativePermission: 'none';
161
+ readonly transport: 'stdio';
162
+ readonly humanPromptHold: 'turn-end';
111
163
  readonly inputDelivery: {
112
164
  readonly mode: 'boundary';
113
165
  readonly consumption: 'unobservable';
@@ -124,6 +176,11 @@ export declare const RUNNER_FACTS: {
124
176
  readonly claudeModelAliases: false;
125
177
  };
126
178
  readonly omp: {
179
+ readonly childWork: 'nested';
180
+ readonly hookEvents: 'none';
181
+ readonly nativePermission: 'none';
182
+ readonly transport: 'stdio';
183
+ readonly humanPromptHold: 'acknowledgement';
127
184
  readonly inputDelivery: {
128
185
  readonly mode: 'steer';
129
186
  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',
@@ -10,6 +19,16 @@ export const RUNNER_FACTS = {
10
19
  claudeModelAliases: true,
11
20
  },
12
21
  codex: {
22
+ // childWork: a child thread's items nest under its spawnAgent item through collabParentItemId
23
+ // (codex-hook-mapper.ts).
24
+ // hookEvents: app-server sends hook/started and hook/completed (codex-hook-mapper.ts).
25
+ // nativePermission: app-server sends an approval request only inside the turn its turnId names;
26
+ // noteTurnEnded expires every pending approval (codex-app-server-runner.ts).
27
+ // transport: codex app-server JSON-RPC lines over stdio.
28
+ // humanPromptHold: sendAgentMessage refuses while humanPromptsPending > 0; the userMessage
29
+ // item of the prompt (noteHumanEcho) releases it before the turn/start or turn/steer response
30
+ // (codex-app-server-runner.ts).
31
+ childWork: 'nested', hookEvents: 'reported', nativePermission: 'in-turn', transport: 'stdio', humanPromptHold: 'consumption',
13
32
  inputDelivery: {
14
33
  mode: 'steer', consumption: 'observable', acknowledgement: 'response', humanInputAtTurnEnd: 'held-when-late',
15
34
  // The userMessage item marks the input entering the thread's history (probe 2026-09-24:
@@ -21,6 +40,14 @@ export const RUNNER_FACTS = {
21
40
  claudeModelAliases: false,
22
41
  },
23
42
  opencode: {
43
+ // childWork: a subtask's child-session parts nest under the subtask part (opencode-ui-mapper.ts).
44
+ // hookEvents: OpenCode 1.18.35 runs plugin hooks in-process; its SSE wire carries no hook event.
45
+ // nativePermission: a main-session permission.asked after session.idle means the server started
46
+ // a run, and the runner reopens the turn for it (opencode-server-runner.ts).
47
+ // transport: opencode serve --hostname 127.0.0.1 --port N; HTTP requests and an SSE event stream.
48
+ // humanPromptHold: sendAgentMessage refuses while pendingPromptRequests > 0, which drops only
49
+ // when the prompt's HTTP request resolves (deliverPrompt, opencode-server-runner.ts).
50
+ childWork: 'nested', hookEvents: 'none', nativePermission: 'after-turn', transport: 'http', humanPromptHold: 'acknowledgement',
24
51
  inputDelivery: {
25
52
  mode: 'steer', consumption: 'observable', acknowledgement: 'response', humanInputAtTurnEnd: 'always-held',
26
53
  via: 'prompt_async while busy; assistant message.updated parentID at consumption',
@@ -30,6 +57,14 @@ export const RUNNER_FACTS = {
30
57
  claudeModelAliases: false,
31
58
  },
32
59
  pi: {
60
+ // childWork: Pi RPC has no child session; a task tool is a plain tool call on the parent
61
+ // session (__fixtures__/pi/rpc-lifecycle.expected.json).
62
+ // hookEvents: Pi 1.0.4 runs extensions in-process; its RPC wire reports only extension_error.
63
+ // nativePermission: Pi RPC carries no tool approval request; tool admission is --tools.
64
+ // transport: pi --mode rpc over stdio.
65
+ // humanPromptHold: a human prompt carries no id; sendAgentMessage refuses while
66
+ // humanPromptAcks > 0, and only its prompt response, in write order, settles it (pi-runner.ts).
67
+ childWork: 'none', hookEvents: 'none', nativePermission: 'none', transport: 'stdio', humanPromptHold: 'acknowledgement',
33
68
  inputDelivery: {
34
69
  mode: 'steer', consumption: 'observable', acknowledgement: 'response', humanInputAtTurnEnd: 'held-when-late',
35
70
  via: 'prompt with streamingBehavior steer; set_steering_mode all at session start; user message_start with the submitted text',
@@ -40,6 +75,14 @@ export const RUNNER_FACTS = {
40
75
  },
41
76
  // Every Cursor session runs on print (hearsay-tools/cezarion#1267).
42
77
  cursor: {
78
+ // childWork: print stream-json reports the parent Task call but no child-session transcript and
79
+ // no child terminal frame (__fixtures__/cursor/README.md).
80
+ // hookEvents: Cursor 2026.10.01-e373342 print stream-json carries no hook lifecycle frame.
81
+ // nativePermission: print runs with --force; its stream-json wire carries no permission request.
82
+ // transport: agent -p --output-format stream-json; the prompt on stdin, frames on stdout.
83
+ // humanPromptHold: sendAgentMessage refuses while busy; a human prompt keeps its print process
84
+ // busy until the process exits (cursor-print-runner.ts).
85
+ childWork: 'none', hookEvents: 'none', nativePermission: 'none', transport: 'stdio', humanPromptHold: 'turn-end',
43
86
  inputDelivery: {
44
87
  mode: 'boundary', consumption: 'unobservable', acknowledgement: 'model-work', humanInputAtTurnEnd: 'always-held',
45
88
  via: 'next exact-resume print process',
@@ -49,6 +92,16 @@ export const RUNNER_FACTS = {
49
92
  claudeModelAliases: false,
50
93
  },
51
94
  omp: {
95
+ // childWork: subagent_event frames carry subagent_lifecycle.parentToolCallId of their task call
96
+ // (omp-subagent-rows.ts).
97
+ // hookEvents: OMP 18.8.0 shares Pi's RPC wire: extensions run in-process and report only
98
+ // extension_error.
99
+ // nativePermission: OMP RPC carries no tool approval request; tool admission is its --tools list
100
+ // and --config overlay.
101
+ // transport: omp --mode rpc over stdio.
102
+ // humanPromptHold: sendAgentMessage refuses while humanAcks holds the prompt's id; only its
103
+ // prompt response deletes it (omp-runner.ts).
104
+ childWork: 'nested', hookEvents: 'none', nativePermission: 'none', transport: 'stdio', humanPromptHold: 'acknowledgement',
52
105
  inputDelivery: {
53
106
  mode: 'steer', consumption: 'observable', acknowledgement: 'response', humanInputAtTurnEnd: 'never-held',
54
107
  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;AA8C7G,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;QACtI,kBAAkB,EAAE,IAAI;KACzB;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,EAAE,QAAQ;QAC9H,kBAAkB,EAAE,KAAK;KAC1B;IACD,QAAQ,EAAE;QACR,aAAa,EAAE;YACb,IAAI,EAAE,OAAO,EAAE,WAAW,EAAE,YAAY,EAAE,eAAe,EAAE,UAAU,EAAE,mBAAmB,EAAE,aAAa;YACzG,GAAG,EAAE,4EAA4E;S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E,eAAe,EAAE,UAAU,EAAE,mBAAmB,EAAE,YAAY;YACxG,GAAG,EAAE,yHAAyH;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;QACzH,kBAAkB,EAAE,KAAK;KAC1B;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"}
@@ -1,3 +1,4 @@
1
+ import { runnerModelListName } from '../contract/index.js';
1
2
  const DEFAULT_TTL_MS = 5 * 60 * 1_000;
2
3
  /** Host-level, in-memory model discovery cache shared by every workspace. */
3
4
  export class RunnerModelCatalog {
@@ -95,15 +96,7 @@ export class RunnerModelCatalog {
95
96
  }
96
97
  }
97
98
  }
98
- const RUNNER_DISPLAY_NAME = {
99
- claude: 'Claude',
100
- codex: 'Codex',
101
- opencode: 'OpenCode',
102
- pi: 'Pi',
103
- cursor: 'Cursor',
104
- omp: 'OMP',
105
- };
106
99
  function unavailableReason(runner) {
107
- return `${RUNNER_DISPLAY_NAME[runner]} model discovery is temporarily unavailable`;
100
+ return `${runnerModelListName(runner)} model discovery is temporarily unavailable`;
108
101
  }
109
102
  //# sourceMappingURL=runner-model-catalog.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"runner-model-catalog.js","sourceRoot":"","sources":["../../src/core/runner-model-catalog.ts"],"names":[],"mappings":"AAoCA,MAAM,cAAc,GAAG,CAAC,GAAG,EAAE,GAAG,KAAK,CAAC;AAEtC,6EAA6E;AAC7E,MAAM,OAAO,kBAAkB;IACpB,SAAS,CAAuD;IAChE,IAAI,CAAe;IACnB,MAAM,CAAS;IACf,MAAM,GA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C;YAC9C,OAAO,EAAE,MAAM,EAAE,MAAM,EAAE,KAAK,CAAC,MAAM,EAAE,MAAM,EAAE,MAAM,EAAE,KAAK,EAAE,KAAK,EAAE,CAAC;QACxE,CAAC;QAAC,MAAM,CAAC;YACP,MAAM,MAAM,GAAG,iBAAiB,CAAC,MAAM,CAAC,CAAC;YACzC,IAAI,MAAM,EAAE,CAAC;gBACX,IAAI,OAAO,EAAE,EAAE,CAAC;oBACd,IAAI,CAAC,MAAM,CAAC,GAAG,CAAC,MAAM,EAAE,EAAE,MAAM,EAAE,MAAM,CAAC,MAAM,EAAE,SAAS,EAAE,IAAI,CAAC,IAAI,EAAE,GAAG,IAAI,CAAC,MAAM,EAAE,aAAa,EAAE,MAAM,EAAE,CAAC,CAAC;gBAClH,CAAC;gBACD,OAAO,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,EAAE,OAAO,EAAE,KAAK,EAAE,IAAI,EAAE,MAAM,EAAE,CAAC;YACjF,CAAC;YACD,IAAI,OAAO,EAAE,EAAE,CAAC;gBACd,IAAI,CAAC,MAAM,CAAC,GAAG,CAAC,MAAM,EAAE,EAAE,MAAM,EAAE,EAAE,EAAE,SAAS,EAAE,IAAI,CAAC,IAAI,EAAE,GAAG,IAAI,CAAC,MAAM,EAAE,aAAa,EAAE,MAAM,EAAE,CAAC,CAAC;YACvG,CAAC;YACD,OAAO,EAAE,MAAM,EAAE,MAAM,EAAE,EAAE,EAAE,MAAM,EAAE,aAAa,EAAE,KAAK,EAAE,KAAK,EAAE,MAAM,EAAE,CAAC;QAC7E,CAAC;IACH,CAAC;CACF;AAED,SAAS,iBAAiB,CAAC,MAAgB;IACzC,OAAO,GAAG,mBAAmB,CAAC,MAAM,CAAC,6CAA6C,CAAC;AACrF,CAAC"}
@@ -82,16 +82,17 @@ export declare function createDelegationRoutes(service: DelegationService, crede
82
82
  "/discover": {
83
83
  $post: {
84
84
  output: {
85
- runner: "claude" | "codex" | "cursor" | "omp" | "opencode" | "pi";
86
- models: {
85
+ tasks: {
87
86
  id: string;
88
- label: string;
89
- description: string;
90
- effortLevels?: ("high" | "low" | "max" | "medium" | "xhigh")[] | undefined;
87
+ title: string;
88
+ runner?: "claude" | "codex" | "cursor" | "omp" | "opencode" | "pi" | undefined;
89
+ status: "cancelled" | "done" | "failed" | "queued" | "review" | "running" | "waiting";
90
+ attention: "error" | "none" | "permission" | "running" | "unseen" | "waiting";
91
+ attentionLabel: string;
92
+ accepts: boolean;
93
+ reason?: string | undefined;
91
94
  }[];
92
- source: "cache" | "live" | "unavailable";
93
- stale: boolean;
94
- reason?: string | undefined;
95
+ nextOffset?: number | undefined;
95
96
  } | {
96
97
  scope: "host-default-account";
97
98
  runners: {
@@ -102,17 +103,16 @@ export declare function createDelegationRoutes(service: DelegationService, crede
102
103
  runner: "claude" | "codex" | "cursor" | "omp" | "opencode" | "pi";
103
104
  }[];
104
105
  } | {
105
- tasks: {
106
+ runner: "claude" | "codex" | "cursor" | "omp" | "opencode" | "pi";
107
+ models: {
106
108
  id: string;
107
- title: string;
108
- runner?: "claude" | "codex" | "cursor" | "omp" | "opencode" | "pi" | undefined;
109
- status: "cancelled" | "done" | "failed" | "queued" | "review" | "running" | "waiting";
110
- attention: "error" | "none" | "permission" | "running" | "unseen" | "waiting";
111
- attentionLabel: string;
112
- accepts: boolean;
113
- reason?: string | undefined;
109
+ label: string;
110
+ description: string;
111
+ effortLevels?: ("high" | "low" | "max" | "medium" | "xhigh")[] | undefined;
114
112
  }[];
115
- nextOffset?: number | undefined;
113
+ source: "cache" | "live" | "unavailable";
114
+ stale: boolean;
115
+ reason?: string | undefined;
116
116
  };
117
117
  outputFormat: "json";
118
118
  status: 200;
@@ -221,13 +221,13 @@ export declare function createDelegationRoutes(service: DelegationService, crede
221
221
  status: 200;
222
222
  input: {
223
223
  json: {
224
- workerIds: string[];
225
- timeoutSeconds?: number | undefined;
226
- mode?: "all" | "any" | "one" | undefined;
227
- } | {
228
224
  requestIds: string[];
229
225
  mode?: "all" | "any" | "one" | undefined;
230
226
  timeoutSeconds?: number | undefined;
227
+ } | {
228
+ workerIds: string[];
229
+ timeoutSeconds?: number | undefined;
230
+ mode?: "all" | "any" | "one" | undefined;
231
231
  } | {
232
232
  peerIds: string[];
233
233
  timeoutSeconds?: number | undefined;
@@ -57,6 +57,17 @@ export declare function createDelegationApp(routes: DelegationRoutes): import("h
57
57
  "/discover": {
58
58
  $post: {
59
59
  output: {
60
+ runner: "claude" | "codex" | "cursor" | "omp" | "opencode" | "pi";
61
+ models: {
62
+ id: string;
63
+ label: string;
64
+ description: string;
65
+ effortLevels?: ("high" | "low" | "max" | "medium" | "xhigh")[] | undefined;
66
+ }[];
67
+ source: "cache" | "live" | "unavailable";
68
+ stale: boolean;
69
+ reason?: string | undefined;
70
+ } | {
60
71
  tasks: {
61
72
  id: string;
62
73
  title: string;
@@ -77,17 +88,6 @@ export declare function createDelegationApp(routes: DelegationRoutes): import("h
77
88
  authFailureId?: string | undefined;
78
89
  runner: "claude" | "codex" | "cursor" | "omp" | "opencode" | "pi";
79
90
  }[];
80
- } | {
81
- runner: "claude" | "codex" | "cursor" | "omp" | "opencode" | "pi";
82
- models: {
83
- id: string;
84
- label: string;
85
- description: string;
86
- effortLevels?: ("high" | "low" | "max" | "medium" | "xhigh")[] | undefined;
87
- }[];
88
- source: "cache" | "live" | "unavailable";
89
- stale: boolean;
90
- reason?: string | undefined;
91
91
  };
92
92
  outputFormat: "json";
93
93
  status: 200;
@@ -16,9 +16,9 @@ export declare function checkoutTarget(projectsDir: string, name: string): {
16
16
  root?: never;
17
17
  target?: never;
18
18
  } | {
19
+ ok?: never;
19
20
  status?: never;
20
21
  error?: never;
21
- ok?: never;
22
22
  root: string;
23
23
  target: string;
24
24
  };
@@ -16,12 +16,6 @@ export declare function createLiveRoutes({ resolveProject, serverGeneration, res
16
16
  output: {
17
17
  generation: string;
18
18
  results: ({
19
- projectId: string;
20
- runId: string;
21
- type: "error" | "reset";
22
- status: 400 | 404 | 409 | 413 | 503;
23
- error: string;
24
- } | {
25
19
  projectId: string;
26
20
  runId: string;
27
21
  type: "batch";
@@ -35,6 +29,12 @@ export declare function createLiveRoutes({ resolveProject, serverGeneration, res
35
29
  cursor: string;
36
30
  afterSeq: number;
37
31
  hasMore: boolean;
32
+ } | {
33
+ projectId: string;
34
+ runId: string;
35
+ type: "error" | "reset";
36
+ status: 400 | 404 | 409 | 413 | 503;
37
+ error: string;
38
38
  })[];
39
39
  };
40
40
  outputFormat: "json";
@@ -1,10 +1,10 @@
1
1
  import type { Home } from '../home/home.ts';
2
2
  import type { Context } from 'hono';
3
3
  import type { RunnerId } from '../core/agent-runner.ts';
4
+ import { type resumeCommand } from '../core/runner-cli.ts';
4
5
  import type { RunRecord } from '../runs/store.ts';
5
6
  import type { openFileInDefaultApp, openInApp } from './open-in-app.ts';
6
7
  import type { openInTerminal } from './open-in-terminal.ts';
7
- import type { resumeCommand } from './server.ts';
8
8
  interface CliHandoffDeps {
9
9
  home: Home;
10
10
  providerActionError: (required: readonly RunnerId[]) => Promise<string | null>;
@@ -1,9 +1,8 @@
1
1
  import { fallbackProjectWriteError } from '../project-paths.js';
2
2
  import { join } from 'node:path';
3
3
  import { imageMimeType, isOsOpenableImage } from '../contract/index.js';
4
- import { resolveCursorExecutable } from '../core/cursor-model-catalog.js';
5
- import { resolveOmpExecutable } from '../core/omp-model-catalog.js';
6
- import { quoteExecutable } from '../core/shell-env.js';
4
+ import { runnerDisplayName } from '../contract/index.js';
5
+ import { terminalExecutable } from '../core/runner-cli.js';
7
6
  import { AgentAccountUnavailableError, resolveProfileEnvForRoot } from '../workspace/agent-profiles.js';
8
7
  import { readWorktreePath } from './git-changes.js';
9
8
  /** Open only a contained raster image: the OS launcher does not apply the browser's CSP. */
@@ -84,10 +83,10 @@ export async function openRunCli(c, run, cliRunner, dir, repoRoot, { providerAct
84
83
  }
85
84
  /** Fresh terminals use the selected executable and the project's account. */
86
85
  export async function freshCliHandoff(cliRunner, repoRoot, home) {
87
- // Runners with a CEZ_*_BIN override launch the configured binary, not the PATH name.
88
- const command = freshCliCommand(cliRunner);
86
+ // Only a configured executable can fail to quote; a PATH name always can.
87
+ const command = terminalExecutable(cliRunner);
89
88
  if (command === null) {
90
- return { error: `the configured ${cliRunner === 'omp' ? 'OMP' : 'Cursor'} executable cannot be used in a terminal command` };
89
+ return { error: `the configured ${runnerDisplayName(cliRunner)} executable cannot be used in a terminal command` };
91
90
  }
92
91
  const account = await resolveProfileEnvForRoot(repoRoot, cliRunner, undefined, process.env, home).then(({ env }) => ({ env }), (err) => {
93
92
  if (err instanceof AgentAccountUnavailableError)
@@ -96,12 +95,6 @@ export async function freshCliHandoff(cliRunner, repoRoot, home) {
96
95
  });
97
96
  return { command, ...account };
98
97
  }
99
- /** Resolve only the fresh-launch executable; resume commands keep their own session flags. */
100
- function freshCliCommand(cliRunner) {
101
- return cliRunner === 'cursor'
102
- ? quoteExecutable(resolveCursorExecutable(), process.platform)
103
- : cliRunner === 'omp' ? quoteExecutable(resolveOmpExecutable(), process.platform) : cliRunner;
104
- }
105
98
  /** Editors, the file manager and a plain terminal all open the same selected directory. */
106
99
  export async function openRunApp(c, target, dir, openApp) {
107
100
  const opened = await openApp(target, dir);