@hearsay-tools/squawk 0.18.0-dev.7472 → 0.18.0-dev.7482

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 (97) hide show
  1. package/dist/ci-wait/tool-catalog.js +1 -0
  2. package/dist/ci-wait/tool-catalog.js.map +1 -1
  3. package/dist/ci-wait/tools.d.ts +4 -4
  4. package/dist/core/backend-detect.d.ts +7 -2
  5. package/dist/core/backend-detect.js +16 -136
  6. package/dist/core/backend-detect.js.map +1 -1
  7. package/dist/core/claude-cli-runner.d.ts +1 -8
  8. package/dist/core/claude-cli-runner.js +2 -28
  9. package/dist/core/claude-cli-runner.js.map +1 -1
  10. package/dist/core/codex-app-server-runner.d.ts +1 -9
  11. package/dist/core/codex-app-server-runner.js +2 -29
  12. package/dist/core/codex-app-server-runner.js.map +1 -1
  13. package/dist/core/omp-runner.d.ts +1 -9
  14. package/dist/core/omp-runner.js +2 -33
  15. package/dist/core/omp-runner.js.map +1 -1
  16. package/dist/core/opencode-server-runner.d.ts +1 -9
  17. package/dist/core/opencode-server-runner.js +2 -29
  18. package/dist/core/opencode-server-runner.js.map +1 -1
  19. package/dist/core/pi-args.d.ts +0 -4
  20. package/dist/core/pi-args.js +0 -5
  21. package/dist/core/pi-args.js.map +1 -1
  22. package/dist/core/pi-runner.d.ts +1 -17
  23. package/dist/core/pi-runner.js +3 -38
  24. package/dist/core/pi-runner.js.map +1 -1
  25. package/dist/core/runner-cli.d.ts +0 -20
  26. package/dist/core/runner-cli.js +3 -10
  27. package/dist/core/runner-cli.js.map +1 -1
  28. package/dist/core/runner-definition.d.ts +58 -1
  29. package/dist/core/runner-definition.js.map +1 -1
  30. package/dist/jobs/cli.js +18 -4
  31. package/dist/jobs/cli.js.map +1 -1
  32. package/dist/jobs/command.js +1 -1
  33. package/dist/jobs/command.js.map +1 -1
  34. package/dist/jobs/job.d.ts +17 -0
  35. package/dist/jobs/job.js +29 -2
  36. package/dist/jobs/job.js.map +1 -1
  37. package/dist/runners/claude/cli.d.ts +11 -0
  38. package/dist/runners/claude/cli.js +7 -0
  39. package/dist/runners/claude/cli.js.map +1 -0
  40. package/dist/runners/claude/definition.js +6 -0
  41. package/dist/runners/claude/definition.js.map +1 -1
  42. package/dist/runners/claude/detection.d.ts +12 -0
  43. package/dist/runners/claude/detection.js +17 -0
  44. package/dist/runners/claude/detection.js.map +1 -0
  45. package/dist/runners/claude/spec-support.d.ts +8 -0
  46. package/dist/runners/claude/spec-support.js +30 -0
  47. package/dist/runners/claude/spec-support.js.map +1 -0
  48. package/dist/runners/codex/cli.d.ts +11 -0
  49. package/dist/runners/codex/cli.js +7 -0
  50. package/dist/runners/codex/cli.js.map +1 -0
  51. package/dist/runners/codex/definition.js +6 -0
  52. package/dist/runners/codex/definition.js.map +1 -1
  53. package/dist/runners/codex/detection.d.ts +8 -0
  54. package/dist/runners/codex/detection.js +14 -0
  55. package/dist/runners/codex/detection.js.map +1 -0
  56. package/dist/runners/codex/spec-support.d.ts +9 -0
  57. package/dist/runners/codex/spec-support.js +31 -0
  58. package/dist/runners/codex/spec-support.js.map +1 -0
  59. package/dist/runners/omp/cli.d.ts +9 -0
  60. package/dist/runners/omp/cli.js +8 -0
  61. package/dist/runners/omp/cli.js.map +1 -0
  62. package/dist/runners/omp/definition.js +6 -0
  63. package/dist/runners/omp/definition.js.map +1 -1
  64. package/dist/runners/omp/detection.d.ts +8 -0
  65. package/dist/runners/omp/detection.js +12 -0
  66. package/dist/runners/omp/detection.js.map +1 -0
  67. package/dist/runners/omp/spec-support.d.ts +9 -0
  68. package/dist/runners/omp/spec-support.js +35 -0
  69. package/dist/runners/omp/spec-support.js.map +1 -0
  70. package/dist/runners/opencode/cli.d.ts +12 -0
  71. package/dist/runners/opencode/cli.js +7 -0
  72. package/dist/runners/opencode/cli.js.map +1 -0
  73. package/dist/runners/opencode/definition.js +6 -0
  74. package/dist/runners/opencode/definition.js.map +1 -1
  75. package/dist/runners/opencode/detection.d.ts +8 -0
  76. package/dist/runners/opencode/detection.js +12 -0
  77. package/dist/runners/opencode/detection.js.map +1 -0
  78. package/dist/runners/opencode/spec-support.d.ts +9 -0
  79. package/dist/runners/opencode/spec-support.js +31 -0
  80. package/dist/runners/opencode/spec-support.js.map +1 -0
  81. package/dist/runners/pi/cli.d.ts +9 -0
  82. package/dist/runners/pi/cli.js +7 -0
  83. package/dist/runners/pi/cli.js.map +1 -0
  84. package/dist/runners/pi/definition.js +6 -0
  85. package/dist/runners/pi/definition.js.map +1 -1
  86. package/dist/runners/pi/detection.d.ts +8 -0
  87. package/dist/runners/pi/detection.js +13 -0
  88. package/dist/runners/pi/detection.js.map +1 -0
  89. package/dist/runners/pi/spec-support.d.ts +21 -0
  90. package/dist/runners/pi/spec-support.js +44 -0
  91. package/dist/runners/pi/spec-support.js.map +1 -0
  92. package/dist/server/server.d.ts +1559 -1559
  93. package/dist/server-install/steps.js +7 -10
  94. package/dist/server-install/steps.js.map +1 -1
  95. package/package.json +4 -4
  96. package/scripts/mock-lifecycle.mjs +1 -1
  97. package/scripts/mock-omp-rpc.mjs +1 -1
@@ -1 +1 @@
1
- {"version":3,"file":"definition.js","sourceRoot":"","sources":["../../../src/runners/omp/definition.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,MAAM,iCAAiC,CAAC;AAC/D,OAAO,EAAE,SAAS,EAAE,MAAM,YAAY,CAAC;AACvC,OAAO,EAAE,UAAU,EAAE,MAAM,aAAa,CAAC;AACzC,OAAO,EAAE,gBAAgB,EAAE,MAAM,mBAAmB,CAAC;AACrD,OAAO,EAAE,eAAe,EAAE,MAAM,kBAAkB,CAAC;AAEnD,sBAAsB;AACtB,MAAM,CAAC,MAAM,SAAS,GAAG,YAAY,CAAC;IACpC,EAAE,EAAE,KAAK;IACT,KAAK,EAAE,SAAS;IAChB,WAAW,EAAE,KAAK,IAAI,EAAE,CAAC,IAAI,CAAC,MAAM,MAAM,CAAC,0BAA0B,CAAC,CAAC,CAAC,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I,CAAC,MAAM,MAAM,CAAC,0BAA0B,CAAC,CAAC,CAAC,SAAS,EAAE;IACnF,MAAM,EAAE;QACN,GAAG,UAAU;QACb,+FAA+F;QAC/F,+FAA+F;QAC/F,qBAAqB;QACrB,YAAY,EAAE,KAAK,IAAI,EAAE,CAAC,CAAC,EAAE,MAAM,EAAE,KAAK,EAAE,KAAK,CAAC,IAAI,KAAK,OAAO,EAAE,CAAC,CAAC,CAAC,EAAE,CAAC;KAC3E;IACD,gBAAgB,EAAE,KAAK,IAAI,EAAE,CAAC,CAAC,MAAM,MAAM,CAAC,iCAAiC,CAAC,CAAC,CAAC,iBAAiB;IACjG,gBAAgB,EAAE,KAAK,IAAI,EAAE,CAAC,CAAC,MAAM,MAAM,CAAC,iCAAiC,CAAC,CAAC,CAAC,iBAAiB;IACjG,WAAW,EAAE,gBAAgB;IAC7B,UAAU,EAAE,eAAe;CAC5B,CAAC,CAAC"}
@@ -0,0 +1,8 @@
1
+ /** How the host probe finds the OMP CLI. Data only: the definition reads it and core runs the probe. */
2
+ export declare const OMP_DETECTION: {
3
+ readonly binary: 'omp';
4
+ readonly binOverride: () => string | undefined;
5
+ readonly dryRun: 'always';
6
+ readonly availableHint: 'if not authenticated, run `omp login`';
7
+ readonly missingHint: 'optional: install OMP (omp.sh) and run `omp login` to use the OMP runner';
8
+ };
@@ -0,0 +1,12 @@
1
+ import { productEnv } from '../../core/product-env.js';
2
+ /** How the host probe finds the OMP CLI. Data only: the definition reads it and core runs the probe. */
3
+ export const OMP_DETECTION = {
4
+ binary: 'omp',
5
+ binOverride: () => productEnv('OMP_BIN'),
6
+ // Dry-run stands the runner up on the shared mock, so report it present.
7
+ dryRun: 'always',
8
+ availableHint: 'if not authenticated, run `omp login`',
9
+ // A missing `omp` CLI is never a boot failure — the runner just isn't offered.
10
+ missingHint: 'optional: install OMP (omp.sh) and run `omp login` to use the OMP runner',
11
+ };
12
+ //# sourceMappingURL=detection.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"detection.js","sourceRoot":"","sources":["../../../src/runners/omp/detection.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,2BAA2B,CAAC;AAGvD,wGAAwG;AACxG,MAAM,CAAC,MAAM,aAAa,GAAG;IAC3B,MAAM,EAAE,KAAK;IACb,WAAW,EAAE,GAAG,EAAE,CAAC,UAAU,CAAC,SAAS,CAAC;IACxC,yEAAyE;IACzE,MAAM,EAAE,QAAQ;IAChB,aAAa,EAAE,uCAAuC;IACtD,+EAA+E;IAC/E,WAAW,EAAE,0EAA0E;CACrD,CAAC"}
@@ -0,0 +1,9 @@
1
+ import type { AgentRunSpecSupport } from '../../core/agent-runner.ts';
2
+ /** OMP's flags for a minimal session (`AgentRunSpec.minimal`): no discovered extensions, skills,
3
+ * rules or context files, no LSP, no saved session and no title model call. */
4
+ export declare const OMP_MINIMAL_ARGS: readonly ['--no-extensions', '--no-skills', '--no-rules', '--no-context-files', '--no-lsp', '--no-session', '--no-title'];
5
+ /**
6
+ * What the omp CLI receives from each `AgentRunSpec` field (#284, spec § Spawn and spec
7
+ * support). Held against the mock's recorded argv and RPC by the harness parity matrix.
8
+ */
9
+ export declare const OMP_SPEC_SUPPORT: AgentRunSpecSupport;
@@ -0,0 +1,35 @@
1
+ import { SQUAWK_SIDE_SPEC_SUPPORT } from '../../core/agent-runner.js';
2
+ // Data only: the adapter class and the definition read this value, so importing it loads no adapter.
3
+ /** OMP's flags for a minimal session (`AgentRunSpec.minimal`): no discovered extensions, skills,
4
+ * rules or context files, no LSP, no saved session and no title model call. */
5
+ export const OMP_MINIMAL_ARGS = ['--no-extensions', '--no-skills', '--no-rules', '--no-context-files',
6
+ '--no-lsp', '--no-session', '--no-title'];
7
+ /**
8
+ * What the omp CLI receives from each `AgentRunSpec` field (#284, spec § Spawn and spec
9
+ * support). Held against the mock's recorded argv and RPC by the harness parity matrix.
10
+ */
11
+ export const OMP_SPEC_SUPPORT = {
12
+ squawkTools: { honored: true, via: `explicit CI --extension; the Squawk tools admitted when --tools is set` },
13
+ ...SQUAWK_SIDE_SPEC_SUPPORT,
14
+ systemPrompt: { honored: true, via: '--append-system-prompt' },
15
+ skill: { honored: true, via: 'RPC prompt /skill:id args' },
16
+ resumeFallbackSkill: { honored: true, via: 'native opening trigger only when bootstrap opens a fresh session' },
17
+ userPrompt: { honored: true, via: 'RPC prompt.message' },
18
+ images: { honored: true, via: "RPC prompt.images ({type:'image', data, mimeType})" },
19
+ cwd: { honored: true, via: 'spawn cwd' },
20
+ toolGrant: { honored: true, via: "--tools, mapped onto OMP names; unmapped names dropped (fail closed); a bashAllowlist has no prefix equivalent, so bash is dropped from --tools (Pi's rule), and an unset grant names OMP's default set first so bash can be left out. --tools filters built-in tools only: MCP and extension tools stay callable under a narrowed list (hearsay-tools/squawk#1357)" },
21
+ restrictCrossSessionMessaging: {
22
+ honored: false,
23
+ reason: 'OMP 18.13.1 has no cross-session tool in its default set; its irc tool is an in-process bus that reaches only agents inside the same OMP process, so subagent messaging and task stay (hearsay-tools/cezarion#2279)',
24
+ },
25
+ minimal: { honored: true, via: `${OMP_MINIMAL_ARGS.join(' ')}; explicit --extension paths still load. OMP 18.13.1 has no flag that stops MCP servers, so the user's MCP servers still connect` },
26
+ additionalDirectories: { honored: true, via: '--add-dir per directory; an omp build that rejects --add-dir is respawned once without it, with a v1 note (Ruling 22)' },
27
+ env: { honored: true, via: 'merged over the child env through buildChildEnv' },
28
+ model: { honored: true, via: '--model provider/model' },
29
+ effort: { honored: true, via: '--thinking, canonical level' },
30
+ timeoutMs: { honored: true, via: 'wall-clock kill switch' },
31
+ sessionId: { honored: true, via: '--resume <id> when resume is set; a fresh session mints its own id, reported from get_state' },
32
+ resume: { honored: true, via: '--resume in place of a fresh session' },
33
+ resumeFallbackSystemPrompt: { honored: false, reason: 'Continue already resends spec.systemPrompt on every process; a separate fallback prompt is unused' },
34
+ };
35
+ //# sourceMappingURL=spec-support.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"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ACtK,GAAG,EAAE,EAAE,OAAO,EAAE,IAAI,EAAE,GAAG,EAAE,iDAAiD,EAAE;IAC9E,KAAK,EAAE,EAAE,OAAO,EAAE,IAAI,EAAE,GAAG,EAAE,wBAAwB,EAAE;IACvD,MAAM,EAAE,EAAE,OAAO,EAAE,IAAI,EAAE,GAAG,EAAE,6BAA6B,EAAE;IAC7D,SAAS,EAAE,EAAE,OAAO,EAAE,IAAI,EAAE,GAAG,EAAE,wBAAwB,EAAE;IAC3D,SAAS,EAAE,EAAE,OAAO,EAAE,IAAI,EAAE,GAAG,EAAE,6FAA6F,EAAE;IAChI,MAAM,EAAE,EAAE,OAAO,EAAE,IAAI,EAAE,GAAG,EAAE,sCAAsC,EAAE;IACtE,0BAA0B,EAAE,EAAE,OAAO,EAAE,KAAK,EAAE,MAAM,EAAE,mGAAmG,EAAE;CAC5J,CAAC"}
@@ -0,0 +1,12 @@
1
+ /** How a terminal starts the OpenCode CLI and where the installer gets it. Data only: the definition and core read it. */
2
+ export declare const OPENCODE_CLI: {
3
+ readonly terminalExecutable: {
4
+ readonly kind: 'path-name';
5
+ readonly name: 'opencode';
6
+ };
7
+ readonly resumeArgs: (id: string) => string;
8
+ readonly installSource: {
9
+ readonly site: 'https://opencode.ai';
10
+ readonly label: 'OpenCode';
11
+ };
12
+ };
@@ -0,0 +1,7 @@
1
+ /** How a terminal starts the OpenCode CLI and where the installer gets it. Data only: the definition and core read it. */
2
+ export const OPENCODE_CLI = {
3
+ terminalExecutable: { kind: 'path-name', name: 'opencode' },
4
+ resumeArgs: id => `--session ${id}`,
5
+ installSource: { site: 'https://opencode.ai', label: 'OpenCode' },
6
+ };
7
+ //# sourceMappingURL=cli.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"cli.js","sourceRoot":"","sources":["../../../src/runners/opencode/cli.ts"],"names":[],"mappings":"AAEA,0HAA0H;AAC1H,MAAM,CAAC,MAAM,YAAY,GAAG;IAC1B,kBAAkB,EAAE,EAAE,IAAI,EAAE,WAAW,EAAE,IAAI,EAAE,UAAU,EAAE;IAC3D,UAAU,EAAE,EAAE,CAAC,EAAE,CAAC,aAAa,EAAE,EAAE;IACnC,aAAa,EAAE,EAAE,IAAI,EAAE,qBAAqB,EAAE,KAAK,EAAE,UAAU,EAAE;CACrC,CAAC"}
@@ -3,10 +3,16 @@ import { OPENCODE_FACTS } from './facts.js';
3
3
  import { OPENCODE_MODELS } from './models.js';
4
4
  import { OPENCODE_CONFIG_FILES } from './config-files.js';
5
5
  import { OPENCODE_EXTRA_TOOLS } from './extra-tools.js';
6
+ import { OPENCODE_SPEC_SUPPORT } from './spec-support.js';
7
+ import { OPENCODE_DETECTION } from './detection.js';
8
+ import { OPENCODE_CLI } from './cli.js';
6
9
  /** The OpenCode runner. */
7
10
  export const opencodeRunner = defineRunner({
8
11
  id: 'opencode',
9
12
  facts: OPENCODE_FACTS,
13
+ specSupport: OPENCODE_SPEC_SUPPORT,
14
+ detection: OPENCODE_DETECTION,
15
+ cli: OPENCODE_CLI,
10
16
  loadAdapter: async () => new (await import('../../core/opencode-server-runner.js')).OpencodeServerRunner(),
11
17
  models: {
12
18
  ...OPENCODE_MODELS,
@@ -1 +1 @@
1
- {"version":3,"file":"definition.js","sourceRoot":"","sources":["../../../src/runners/opencode/definition.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,MAAM,iCAAiC,CAAC;AAC/D,OAAO,EAAE,cAAc,EAAE,MAAM,YAAY,CAAC;AAC5C,OAAO,EAAE,eAAe,EAAE,MAAM,aAAa,CAAC;AAC9C,OAAO,EAAE,qBAAqB,EAAE,MAAM,mBAAmB,CAAC;AAC1D,OAAO,EAAE,oBAAoB,EAAE,MAAM,kBAAkB,CAAC;AAExD,2BAA2B;AAC3B,MAAM,CAAC,MAAM,cAAc,GAAG,YAAY,CAAC;IACzC,EAAE,EAAE,UAAU;IACd,KAAK,EAAE,cAAc;IACrB,WAAW,EAAE,KAAK,IAAI,EAAE,CAAC,IAAI,CAAC,M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CAAsC,CAAC,CAAC,CAAC,oBAAoB,EAAE;IAC1G,MAAM,EAAE;QACN,GAAG,eAAe;QAClB,YAAY,EAAE,KAAK,IAAI,EAAE,CAAC,CAAC,MAAM,MAAM,CAAC,+CAA+C,CAAC,CAAC,CAAC,6BAA6B;KACxH;IACD,gBAAgB,EAAE,KAAK,IAAI,EAAE,CAAC,CAAC,MAAM,MAAM,CAAC,sCAAsC,CAAC,CAAC,CAAC,sBAAsB;IAC3G,gBAAgB,EAAE,KAAK,IAAI,EAAE,CAAC,CAAC,MAAM,MAAM,CAAC,sCAAsC,CAAC,CAAC,CAAC,sBAAsB;IAC3G,WAAW,EAAE,qBAAqB;IAClC,UAAU,EAAE,oBAAoB;CACjC,CAAC,CAAC"}
@@ -0,0 +1,8 @@
1
+ /** How the host probe finds the OpenCode CLI. Data only: the definition reads it and core runs the probe. */
2
+ export declare const OPENCODE_DETECTION: {
3
+ readonly binary: 'opencode';
4
+ readonly binOverride: () => string | undefined;
5
+ readonly dryRun: 'unless-bin-override';
6
+ readonly availableHint: 'if no provider is configured, run `opencode` once to set one up';
7
+ readonly missingHint: 'optional: install OpenCode (https://opencode.ai) and configure a provider to use the OpenCode runner';
8
+ };
@@ -0,0 +1,12 @@
1
+ import { productEnv } from '../../core/product-env.js';
2
+ /** How the host probe finds the OpenCode CLI. Data only: the definition reads it and core runs the probe. */
3
+ export const OPENCODE_DETECTION = {
4
+ binary: 'opencode',
5
+ binOverride: () => productEnv('OPENCODE_BIN'),
6
+ // Dry-run stands the runner up on its bundled mock (hearsay-tools/cezarion#1042),
7
+ // unless CEZ_OPENCODE_BIN overrides it there as well.
8
+ dryRun: 'unless-bin-override',
9
+ availableHint: 'if no provider is configured, run `opencode` once to set one up',
10
+ missingHint: 'optional: install OpenCode (https://opencode.ai) and configure a provider to use the OpenCode runner',
11
+ };
12
+ //# sourceMappingURL=detection.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"detection.js","sourceRoot":"","sources":["../../../src/runners/opencode/detection.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,2BAA2B,CAAC;AAGvD,6GAA6G;AAC7G,MAAM,CAAC,MAAM,kBAAkB,GAAG;IAChC,MAAM,EAAE,UAAU;IAClB,WAAW,EAAE,GAAG,EAAE,CAAC,UAAU,CAAC,cAAc,CAAC;IAC7C,kFAAkF;IAClF,sDAAsD;IACtD,MAAM,EAAE,qBAAqB;IAC7B,aAAa,EAAE,iEAAiE;IAChF,WAAW,EAAE,sGAAsG;CACjF,CAAC"}
@@ -0,0 +1,9 @@
1
+ import type { AgentRunSpecSupport } from '../../core/agent-runner.ts';
2
+ /**
3
+ * What `opencode serve` receives from each `AgentRunSpec` field (#284).
4
+ * OpenCode's own permission config governs tool access and this adapter maps no
5
+ * per-tool allowlist, so `toolGrant` is declared dropped rather than mapped (spec
6
+ * 2026-07-17-permission-modes). Resume GETs `/session/{id}` and prompts it; a 404 opens one
7
+ * fresh session. Held against the recorded HTTP requests by the harness parity matrix.
8
+ */
9
+ export declare const OPENCODE_SPEC_SUPPORT: AgentRunSpecSupport;
@@ -0,0 +1,31 @@
1
+ import { SQUAWK_SIDE_SPEC_SUPPORT } from '../../core/agent-runner.js';
2
+ // Data only: the adapter class and the definition read this value, so importing it loads no adapter.
3
+ /**
4
+ * What `opencode serve` receives from each `AgentRunSpec` field (#284).
5
+ * OpenCode's own permission config governs tool access and this adapter maps no
6
+ * per-tool allowlist, so `toolGrant` is declared dropped rather than mapped (spec
7
+ * 2026-07-17-permission-modes). Resume GETs `/session/{id}` and prompts it; a 404 opens one
8
+ * fresh session. Held against the recorded HTTP requests by the harness parity matrix.
9
+ */
10
+ export const OPENCODE_SPEC_SUPPORT = {
11
+ squawkTools: { honored: true, via: 'merged OPENCODE_CONFIG_CONTENT local mcp entry' },
12
+ ...SQUAWK_SIDE_SPEC_SUPPORT,
13
+ systemPrompt: { honored: true, via: 'prepended to the opening prompt_async text through prependSystemPrompt' },
14
+ skill: { honored: true, via: 'POST session command; acknowledgement on SSE' },
15
+ resumeFallbackSkill: { honored: true, via: 'native opening trigger only when bootstrap opens a fresh session' },
16
+ userPrompt: { honored: true, via: 'prompt_async text part' },
17
+ images: { honored: false, reason: 'the adapter posts text parts only; image blocks are dropped' },
18
+ cwd: { honored: true, via: 'opencode serve spawn cwd; the session is bound to it' },
19
+ toolGrant: { honored: false, reason: 'OpenCode permission config governs tool access and bash; this runner answers its built-in default asks and routes configured asks to the cockpit, but maps no per-tool allowlist, so no command-prefix restriction either' },
20
+ minimal: { honored: true, via: 'opencode serve --pure; OPENCODE_DISABLE_PROJECT_CONFIG, OPENCODE_DISABLE_CLAUDE_CODE and OPENCODE_DISABLE_EXTERNAL_SKILLS (default plugins stay: they carry the Codex and Copilot sign-in loaders); OPENCODE_CONFIG_CONTENT tools {"*": false} and permission {"*": "deny"}, and a "*" deny session rule (POST /session permission, and prompt_async tools {"*": false}) that outranks agent permission rules and covers skill command turns, since the runner maps no toolGrant; a resumed session gets it through PATCH /session/{id} before its first turn. Still loaded: MCP servers in the user\'s global config, the global AGENTS.md and configured instructions; the session is saved' },
21
+ restrictCrossSessionMessaging: { honored: true, via: 'the opencode-task-scope.mjs plugin appended to the OPENCODE_CONFIG_CONTENT plugin list; its tool.execute.before hook refuses a task call whose task_id names a session outside the caller\'s session tree, and keeps subagents (hearsay-tools/cezarion#2279)' },
22
+ additionalDirectories: { honored: false, reason: 'the server works from cwd; no extra-root mapping' },
23
+ env: { honored: true, via: 'merged over the child env through buildChildEnv' },
24
+ model: { honored: true, via: 'prompt_async model { providerID, modelID }, split from provider/model' },
25
+ effort: { honored: true, via: 'prompt_async variant, canonical level' },
26
+ timeoutMs: { honored: true, via: 'wall-clock kill switch on the child process' },
27
+ sessionId: { honored: true, via: 'GET /session/{id} when resume is set; a fresh POST /session mints its own id' },
28
+ resume: { honored: true, via: 'GET /session/{id} in place of POST /session; 404 falls back to a fresh session' },
29
+ resumeFallbackSystemPrompt: { honored: true, via: 'opening prependSystemPrompt of a fresh POST /session when GET /session/{id} returns 404 on resume' },
30
+ };
31
+ //# sourceMappingURL=spec-support.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"spec-support.js","sourceRoot":"","sources":["../../../src/runners/opencode/spec-support.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,wBAAwB,EAAE,MAAM,4BAA4B,CAAC;AAEtE,qGAAqG;AAErG;;;;;;GAMG;AACH,MAAM,CAAC,MAAM,qBAAqB,GAAwB;IACxD,WAAW,EAAE,EAAE,OAAO,EAAE,IAAI,EAAE,GAAG,EAAE,gDAAgD,EAAE;IACrF,GAAG,wBAAwB;IAC3B,YAAY,EAAE,EAAE,OAAO,EAAE,IAAI,EAAE,GAAG,EAAE,wEAAwE,EAAE;IAC9G,KAAK,EAAE,EAAE,OAAO,EAAE,IAAI,EAAE,GAAG,EAAE,8CAA8C,EAAE;IAC7E,mBAAmB,EAAE,EAAE,OAAO,EAAE,IAAI,EAAE,GAAG,EAAE,kEAAkE,EAAE;IAC/G,UAAU,EAAE,EAAE,OAAO,EAAE,IAAI,EAAE,GAAG,EAAE,wBAAwB,EAAE;IAC5D,MAAM,EAAE,EAAE,OAAO,EAAE,KAAK,EAAE,MAAM,EAAE,6DAA6D,EAAE;IACjG,GAAG,EAAE,EAAE,OAAO,EAAE,IAAI,EAAE,GAAG,EAAE,sDAAsD,EAAE;IACnF,SAAS,EAAE,EAAE,OAAO,EAAE,KAAK,EAAE,MAAM,EAAE,2NAA2N,EAAE;IAClQ,OAAO,EAAE,EAAE,OAAO,EAAE,IAAI,EAAE,GAAG,EAAE,+pBAA+pB,EAAE;IAChsB,6BAA6B,EAAE,EAAE,OAAO,EAAE,IAAI,EAAE,GAAG,EAAE,8PAA8P,EAAE;IACrT,qBAAqB,EAAE,EAAE,OAAO,EAAE,KAAK,EAAE,MAAM,EAAE,kDAAkD,EAAE;IACrG,GAAG,EAAE,EAAE,OAAO,EAAE,IAAI,EAAE,GAAG,EAAE,iDAAiD,EAAE;IAC9E,KAAK,EAAE,EAAE,OAAO,EAAE,IAAI,EAAE,GAAG,EAAE,uEAAuE,EAAE;IACtG,MAAM,EAAE,EAAE,OAAO,EAAE,IAAI,EAAE,GAAG,EAAE,uCAAuC,EAAE;IACvE,SAAS,EAAE,EAAE,OAAO,EAAE,IAAI,EAAE,GAAG,EAAE,6CAA6C,EAAE;IAChF,SAAS,EAAE,EAAE,OAAO,EAAE,IAAI,EAAE,GAAG,EAAE,8EAA8E,EAAE;IACjH,MAAM,EAAE,EAAE,OAAO,EAAE,IAAI,EAAE,GAAG,EAAE,gFAAgF,EAAE;IAChH,0BAA0B,EAAE,EAAE,OAAO,EAAE,IAAI,EAAE,GAAG,EAAE,mGAAmG,EAAE;CACxJ,CAAC"}
@@ -0,0 +1,9 @@
1
+ /** How a terminal starts the pi CLI and where the installer gets it. Data only: the definition and core read it. */
2
+ export declare const PI_CLI: {
3
+ readonly terminalExecutable: {
4
+ readonly kind: 'path-name';
5
+ readonly name: 'pi';
6
+ };
7
+ readonly resumeArgs: (id: string) => string;
8
+ readonly installSource: null;
9
+ };
@@ -0,0 +1,7 @@
1
+ /** How a terminal starts the pi CLI and where the installer gets it. Data only: the definition and core read it. */
2
+ export const PI_CLI = {
3
+ terminalExecutable: { kind: 'path-name', name: 'pi' },
4
+ resumeArgs: id => `--session ${id}`,
5
+ installSource: null,
6
+ };
7
+ //# sourceMappingURL=cli.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"cli.js","sourceRoot":"","sources":["../../../src/runners/pi/cli.ts"],"names":[],"mappings":"AAEA,oHAAoH;AACpH,MAAM,CAAC,MAAM,MAAM,GAAG;IACpB,kBAAkB,EAAE,EAAE,IAAI,EAAE,WAAW,EAAE,IAAI,EAAE,IAAI,EAAE;IACrD,UAAU,EAAE,EAAE,CAAC,EAAE,CAAC,aAAa,EAAE,EAAE;IACnC,aAAa,EAAE,IAAI;CACS,CAAC"}
@@ -3,10 +3,16 @@ import { PI_FACTS } from './facts.js';
3
3
  import { PI_MODELS } from './models.js';
4
4
  import { PI_CONFIG_FILES } from './config-files.js';
5
5
  import { PI_EXTRA_TOOLS } from './extra-tools.js';
6
+ import { PI_SPEC_SUPPORT } from './spec-support.js';
7
+ import { PI_DETECTION } from './detection.js';
8
+ import { PI_CLI } from './cli.js';
6
9
  /** The Pi runner. */
7
10
  export const piRunner = defineRunner({
8
11
  id: 'pi',
9
12
  facts: PI_FACTS,
13
+ specSupport: PI_SPEC_SUPPORT,
14
+ detection: PI_DETECTION,
15
+ cli: PI_CLI,
10
16
  loadAdapter: async () => new (await import('../../core/pi-runner.js')).PiRunner(),
11
17
  models: {
12
18
  ...PI_MODELS,
@@ -1 +1 @@
1
- {"version":3,"file":"definition.js","sourceRoot":"","sources":["../../../src/runners/pi/definition.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,MAAM,iCAAiC,CAAC;AAC/D,OAAO,EAAE,QAAQ,EAAE,MAAM,YAAY,CAAC;AACtC,OAAO,EAAE,SAAS,EAAE,MAAM,aAAa,CAAC;AACxC,OAAO,EAAE,eAAe,EAAE,MAAM,mBAAmB,CAAC;AACpD,OAAO,EAAE,cAAc,EAAE,MAAM,kBAAkB,CAAC;AAElD,qBAAqB;AACrB,MAAM,CAAC,MAAM,QAAQ,GAAG,YAAY,CAAC;IACnC,EAAE,EAAE,IAAI;IACR,KAAK,EAAE,QAAQ;IACf,WAAW,EAAE,KAAK,IAAI,EAAE,CAAC,IAAI,CAAC,MAAM,MAAM,CAAC,yBAAyB,CAAC,CAAC,CAAC,QAAQ,EAAE;IACjF,MAAM,EAAE;QACN,GAAG,SAAS;QACZ,YAAY,EAAE,KAAK,IAAI,EAAE,CAAC,CAAC,MAAM,MAAM,CAAC,yCAAyC,CAAC,CAAC,CAAC,uBAAuB;KAC5G;IACD,gBAAgB,EAAE,KAAK,IAAI,EAAE,CAAC,CAAC,MAAM,MAAM,CAAC,gCAAgC,CAAC,CAAC,CAAC,gBAAgB;IAC/F,gBAAgB,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,MAAM,CAAC,gCAAgC,CAAC,CAAC,CAAC,gBAAgB;IAC/F,WAAW,EAAE,eAAe;IAC5B,UAAU,EAAE,cAAc;CAC3B,CAAC,CAAC"}
@@ -0,0 +1,8 @@
1
+ /** How the host probe finds the pi CLI. Data only: the definition reads it and core runs the probe. */
2
+ export declare const PI_DETECTION: {
3
+ readonly binary: 'pi';
4
+ readonly binOverride: () => string | undefined;
5
+ readonly dryRun: 'always';
6
+ readonly availableHint: 'if not authenticated, run `pi` once and log in';
7
+ readonly missingHint: 'optional: install the pi CLI and log in to use the pi runner';
8
+ };
@@ -0,0 +1,13 @@
1
+ import { productEnv } from '../../core/product-env.js';
2
+ /** How the host probe finds the pi CLI. Data only: the definition reads it and core runs the probe. */
3
+ export const PI_DETECTION = {
4
+ binary: 'pi',
5
+ binOverride: () => productEnv('PI_BIN'),
6
+ // Dry-run stands the runner up on the shared mock, so report it present.
7
+ dryRun: 'always',
8
+ availableHint: 'if not authenticated, run `pi` once and log in',
9
+ // A missing `pi` CLI is never a boot failure — the runner just isn't
10
+ // offered, exactly like an absent codex/opencode.
11
+ missingHint: 'optional: install the pi CLI and log in to use the pi runner',
12
+ };
13
+ //# sourceMappingURL=detection.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"detection.js","sourceRoot":"","sources":["../../../src/runners/pi/detection.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,2BAA2B,CAAC;AAGvD,uGAAuG;AACvG,MAAM,CAAC,MAAM,YAAY,GAAG;IAC1B,MAAM,EAAE,IAAI;IACZ,WAAW,EAAE,GAAG,EAAE,CAAC,UAAU,CAAC,QAAQ,CAAC;IACvC,yEAAyE;IACzE,MAAM,EAAE,QAAQ;IAChB,aAAa,EAAE,gDAAgD;IAC/D,qEAAqE;IACrE,kDAAkD;IAClD,WAAW,EAAE,8DAA8D;CACzC,CAAC"}
@@ -0,0 +1,21 @@
1
+ import type { AgentRunSpecSupport } from '../../core/agent-runner.ts';
2
+ /** pi's flags for a minimal session: no discovered extensions, skills, prompt templates, themes,
3
+ * context files or MCP servers, and no saved session. Explicit
4
+ * `--extension` paths still load. */
5
+ export declare const PI_MINIMAL_ARGS: readonly ['--no-extensions', '--no-skills', '--no-prompt-templates', '--no-themes', '--no-context-files', '--no-mcp', '--no-session'];
6
+ /**
7
+ * What the pi CLI receives from each `AgentRunSpec` field (#284). Tool names
8
+ * are mapped onto pi's own through `piTools`. An unset grant sends no tool
9
+ * flags; a grant's list takes one of three paths (hearsay-tools/cezarion#1305). A list holding every default
10
+ * built-in and nothing beyond pi's default set sends no allowlist:
11
+ * `--no-builtin-tools` plus the default-tools extension, which activates the
12
+ * listed built-ins, so MCP and extension tools stay callable. A narrowed list
13
+ * keeps the `--tools` allowlist; naming any other tool (an `mcp__` tool, for
14
+ * one) narrows it, so that grant stays limited to the named tools. A list that
15
+ * maps to nothing fails closed: `--tools` with
16
+ * only the Squawk tools, or `--no-tools`. pi has no command-prefix equivalent
17
+ * for a `bashAllowlist`, so a list with one narrows to `--tools` and drops
18
+ * `bash` (fail closed) rather than widening. Held against the recorded
19
+ * argv and RPC prompt by the harness parity matrix.
20
+ */
21
+ export declare const PI_SPEC_SUPPORT: AgentRunSpecSupport;
@@ -0,0 +1,44 @@
1
+ import { SQUAWK_SIDE_SPEC_SUPPORT } from '../../core/agent-runner.js';
2
+ // Data only: the adapter class and the definition read this value, so importing it loads no adapter.
3
+ /** pi's flags for a minimal session: no discovered extensions, skills, prompt templates, themes,
4
+ * context files or MCP servers, and no saved session. Explicit
5
+ * `--extension` paths still load. */
6
+ export const PI_MINIMAL_ARGS = ['--no-extensions', '--no-skills', '--no-prompt-templates', '--no-themes',
7
+ '--no-context-files', '--no-mcp', '--no-session'];
8
+ /**
9
+ * What the pi CLI receives from each `AgentRunSpec` field (#284). Tool names
10
+ * are mapped onto pi's own through `piTools`. An unset grant sends no tool
11
+ * flags; a grant's list takes one of three paths (hearsay-tools/cezarion#1305). A list holding every default
12
+ * built-in and nothing beyond pi's default set sends no allowlist:
13
+ * `--no-builtin-tools` plus the default-tools extension, which activates the
14
+ * listed built-ins, so MCP and extension tools stay callable. A narrowed list
15
+ * keeps the `--tools` allowlist; naming any other tool (an `mcp__` tool, for
16
+ * one) narrows it, so that grant stays limited to the named tools. A list that
17
+ * maps to nothing fails closed: `--tools` with
18
+ * only the Squawk tools, or `--no-tools`. pi has no command-prefix equivalent
19
+ * for a `bashAllowlist`, so a list with one narrows to `--tools` and drops
20
+ * `bash` (fail closed) rather than widening. Held against the recorded
21
+ * argv and RPC prompt by the harness parity matrix.
22
+ */
23
+ export const PI_SPEC_SUPPORT = {
24
+ squawkTools: { honored: true, via: 'explicit CI --extension and selected tool admission' },
25
+ ...SQUAWK_SIDE_SPEC_SUPPORT,
26
+ systemPrompt: { honored: true, via: '--append-system-prompt' },
27
+ skill: { honored: true, via: 'RPC prompt /skill:id args with context after arguments' },
28
+ resumeFallbackSkill: { honored: true, via: 'native opening trigger only when bootstrap opens a fresh session' },
29
+ userPrompt: { honored: true, via: 'RPC prompt message' },
30
+ images: { honored: true, via: 'RPC prompt images' },
31
+ cwd: { honored: true, via: 'spawn cwd' },
32
+ toolGrant: { honored: true, via: `mapped through piTools: the default list sends --no-builtin-tools and names its built-ins to the default-tools extension; a narrowed list, or one naming a tool outside the pi default set, sends --tools; a list that maps to nothing sends --tools with the Squawk tools only, or --no-tools; a bashAllowlist has no prefix equivalent, so it narrows the list to --tools without bash (fail closed); unset sends no tool flags` },
33
+ restrictCrossSessionMessaging: { honored: false, reason: 'pi 1.4.0 has no built-in cross-session tool, and an extension\'s name cannot be discovered as messaging; the subagent extension stays (hearsay-tools/cezarion#2279)' },
34
+ minimal: { honored: true, via: `${PI_MINIMAL_ARGS.join(' ')}, and no project-skills extension; explicit --extension paths (the Squawk tools, the retry extension) still load` },
35
+ additionalDirectories: { honored: false, reason: 'pi has no extra-root flag' },
36
+ env: { honored: true, via: 'merged over the child env through buildChildEnv' },
37
+ model: { honored: true, via: '--model provider/model' },
38
+ effort: { honored: true, via: '--thinking, canonical level' },
39
+ timeoutMs: { honored: true, via: 'wall-clock kill switch on the child process' },
40
+ sessionId: { honored: true, via: '--session-id, or --session when resume is set' },
41
+ resume: { honored: true, via: '--session <sessionId> in place of --session-id' },
42
+ resumeFallbackSystemPrompt: { honored: false, reason: 'Continue already resends spec.systemPrompt on every process; a separate fallback prompt is unused' },
43
+ };
44
+ //# sourceMappingURL=spec-support.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"spec-support.js","sourceRoot":"","sources":["../../../src/runners/pi/spec-support.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,wBAAwB,EAAE,MAAM,4BAA4B,CAAC;AAEtE,qGAAqG;AAErG;;sCAEsC;AACtC,MAAM,CAAC,MAAM,eAAe,GAAG,CAAC,iBAAiB,EAAE,aAAa,EAAE,uBAAuB,EAAE,aAAa;IACtG,oBAAoB,EAAE,UAAU,EAAE,cAAc,CAAU,CAAC;AAE7D;;;;;;;;;;;;;;GAcG;AACH,MAAM,CAAC,MAAM,eAAe,GAAwB;IAClD,WAAW,EAAE,EAAE,OAAO,EAAE,IAAI,EAAE,GAAG,EAAE,qDAAqD,EAAE;IAC1F,GAAG,wBAAwB;IAC3B,YAAY,EAAE,EAAE,OAAO,EAAE,IAAI,EAAE,GAAG,EAAE,wBAAwB,EAAE;IAC9D,KAAK,EAAE,EAAE,OAAO,EAAE,IAAI,EAAE,GAAG,EAAE,wDAAwD,EAAE;IACvF,mBAAmB,EAAE,EAAE,OAAO,EAAE,IAAI,EAAE,GAAG,EAAE,kEAAkE,EAAE;IAC/G,UAAU,EAAE,EAAE,OAAO,EAAE,IAAI,EAAE,GAAG,EAAE,oBAAoB,EAAE;IACxD,MAAM,EAAE,EAAE,OAAO,EAAE,IAAI,EAAE,GAAG,EAAE,mBAAmB,EAAE;IACnD,GAAG,EAAE,EAAE,OAAO,EAAE,IAAI,EAAE,GAAG,EAAE,WAAW,EAAE;IACxC,SAAS,EAAE,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