@hearsay-tools/squawk 0.18.0-dev.7444 → 0.18.0-dev.7456

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 (119) hide show
  1. package/dist/agent-config/catalog.d.ts +6 -60
  2. package/dist/agent-config/catalog.js +12 -337
  3. package/dist/agent-config/catalog.js.map +1 -1
  4. package/dist/agent-config/files.d.ts +1 -1
  5. package/dist/agent-config/files.js.map +1 -1
  6. package/dist/agent-config/model-settings/claude.d.ts +1 -1
  7. package/dist/agent-config/model-settings/codex.d.ts +1 -1
  8. package/dist/agent-config/model-settings/opencode.d.ts +1 -1
  9. package/dist/agent-config/model-settings/pi.d.ts +1 -1
  10. package/dist/agent-config/model-settings/shared.d.ts +1 -1
  11. package/dist/agent-config/model-settings/shared.js +2 -2
  12. package/dist/agent-config/model-settings/shared.js.map +1 -1
  13. package/dist/agent-config/models.d.ts +5 -1
  14. package/dist/agent-config/models.js +5 -19
  15. package/dist/agent-config/models.js.map +1 -1
  16. package/dist/agent-config/seed.js +2 -2
  17. package/dist/agent-config/seed.js.map +1 -1
  18. package/dist/agent-config/service.d.ts +1 -1
  19. package/dist/agent-config/service.js +2 -2
  20. package/dist/agent-config/service.js.map +1 -1
  21. package/dist/agent-config/validate.d.ts +1 -1
  22. package/dist/core/host-model-catalog.d.ts +2 -1
  23. package/dist/core/host-model-catalog.js +7 -13
  24. package/dist/core/host-model-catalog.js.map +1 -1
  25. package/dist/core/host-skill-catalog.d.ts +5 -2
  26. package/dist/core/host-skill-catalog.js +9 -12
  27. package/dist/core/host-skill-catalog.js.map +1 -1
  28. package/dist/core/model-identity.d.ts +9 -11
  29. package/dist/core/model-identity.js +12 -28
  30. package/dist/core/model-identity.js.map +1 -1
  31. package/dist/core/model-presets.d.ts +0 -5
  32. package/dist/core/model-presets.js +11 -30
  33. package/dist/core/model-presets.js.map +1 -1
  34. package/dist/core/opencode-minimal.js +1 -2
  35. package/dist/core/opencode-minimal.js.map +1 -1
  36. package/dist/core/opencode-runtime-config.d.ts +3 -0
  37. package/dist/core/opencode-runtime-config.js +11 -0
  38. package/dist/core/opencode-runtime-config.js.map +1 -1
  39. package/dist/core/pi-runner.js +1 -1
  40. package/dist/core/pi-runner.js.map +1 -1
  41. package/dist/core/runner-config-files.d.ts +60 -0
  42. package/dist/core/runner-config-files.js +2 -0
  43. package/dist/core/runner-config-files.js.map +1 -0
  44. package/dist/core/runner-definition.d.ts +33 -0
  45. package/dist/core/runner-definition.js.map +1 -1
  46. package/dist/{agent-config/model-settings/types.d.ts → core/runner-model-settings.d.ts} +3 -1
  47. package/dist/core/runner-model-settings.js +2 -0
  48. package/dist/core/runner-model-settings.js.map +1 -0
  49. package/dist/delegation/routes.d.ts +16 -16
  50. package/dist/delegation/transport.d.ts +9 -9
  51. package/dist/paths.d.ts +1 -1
  52. package/dist/runners/claude/config-files.d.ts +7 -0
  53. package/dist/runners/claude/config-files.js +112 -0
  54. package/dist/runners/claude/config-files.js.map +1 -0
  55. package/dist/runners/claude/definition.js +11 -0
  56. package/dist/runners/claude/definition.js.map +1 -1
  57. package/dist/runners/claude/extra-tools.d.ts +3 -0
  58. package/dist/runners/claude/extra-tools.js +4 -0
  59. package/dist/runners/claude/extra-tools.js.map +1 -0
  60. package/dist/runners/claude/models.d.ts +3 -0
  61. package/dist/runners/claude/models.js +16 -0
  62. package/dist/runners/claude/models.js.map +1 -0
  63. package/dist/runners/codex/config-files.d.ts +7 -0
  64. package/dist/runners/codex/config-files.js +58 -0
  65. package/dist/runners/codex/config-files.js.map +1 -0
  66. package/dist/runners/codex/definition.js +11 -0
  67. package/dist/runners/codex/definition.js.map +1 -1
  68. package/dist/runners/codex/extra-tools.d.ts +3 -0
  69. package/dist/runners/codex/extra-tools.js +4 -0
  70. package/dist/runners/codex/extra-tools.js.map +1 -0
  71. package/dist/runners/codex/models.d.ts +3 -0
  72. package/dist/runners/codex/models.js +9 -0
  73. package/dist/runners/codex/models.js.map +1 -0
  74. package/dist/runners/omp/config-files.d.ts +7 -0
  75. package/dist/runners/omp/config-files.js +87 -0
  76. package/dist/runners/omp/config-files.js.map +1 -0
  77. package/dist/runners/omp/definition.js +14 -0
  78. package/dist/runners/omp/definition.js.map +1 -1
  79. package/dist/runners/omp/extra-tools.d.ts +3 -0
  80. package/dist/runners/omp/extra-tools.js +6 -0
  81. package/dist/runners/omp/extra-tools.js.map +1 -0
  82. package/dist/runners/omp/models.d.ts +3 -0
  83. package/dist/runners/omp/models.js +9 -0
  84. package/dist/runners/omp/models.js.map +1 -0
  85. package/dist/runners/opencode/config-files.d.ts +7 -0
  86. package/dist/runners/opencode/config-files.js +57 -0
  87. package/dist/runners/opencode/config-files.js.map +1 -0
  88. package/dist/runners/opencode/definition.js +11 -0
  89. package/dist/runners/opencode/definition.js.map +1 -1
  90. package/dist/runners/opencode/extra-tools.d.ts +3 -0
  91. package/dist/runners/opencode/extra-tools.js +4 -0
  92. package/dist/runners/opencode/extra-tools.js.map +1 -0
  93. package/dist/runners/opencode/models.d.ts +3 -0
  94. package/dist/runners/opencode/models.js +8 -0
  95. package/dist/runners/opencode/models.js.map +1 -0
  96. package/dist/runners/pi/config-files.d.ts +7 -0
  97. package/dist/runners/pi/config-files.js +59 -0
  98. package/dist/runners/pi/config-files.js.map +1 -0
  99. package/dist/runners/pi/definition.js +11 -0
  100. package/dist/runners/pi/definition.js.map +1 -1
  101. package/dist/runners/pi/extra-tools.d.ts +3 -0
  102. package/dist/runners/pi/extra-tools.js +7 -0
  103. package/dist/runners/pi/extra-tools.js.map +1 -0
  104. package/dist/runners/pi/models.d.ts +3 -0
  105. package/dist/runners/pi/models.js +15 -0
  106. package/dist/runners/pi/models.js.map +1 -0
  107. package/dist/runners/project-agents-file.d.ts +6 -0
  108. package/dist/runners/project-agents-file.js +19 -0
  109. package/dist/runners/project-agents-file.js.map +1 -0
  110. package/dist/server/server.d.ts +254 -254
  111. package/dist/workflows/types.d.ts +1 -5
  112. package/dist/workflows/types.js +4 -15
  113. package/dist/workflows/types.js.map +1 -1
  114. package/package.json +4 -4
  115. package/dist/agent-config/model-settings/types.js +0 -2
  116. package/dist/agent-config/model-settings/types.js.map +0 -1
  117. package/dist/ci-wait/injection.d.ts +0 -3
  118. package/dist/ci-wait/injection.js +0 -13
  119. package/dist/ci-wait/injection.js.map +0 -1
@@ -0,0 +1,87 @@
1
+ import { join } from 'node:path';
2
+ import { PROJECT_AGENTS_FILE } from '../project-agents-file.js';
3
+ const OMP_CONFIG_DOCS = 'https://github.com/can1357/oh-my-pi/blob/main/docs/config-usage.md';
4
+ const OMP_MCP_DOCS = 'https://github.com/can1357/oh-my-pi/blob/main/docs/mcp-config.md';
5
+ /**
6
+ * The OMP runner's native config files for Settings → Agent config. Data only: importing it
7
+ * loads no adapter. Order is presentation order: user → project → local, so the scope ladder
8
+ * reads top (broad) to bottom (specific).
9
+ */
10
+ export const OMP_CONFIG_FILES = [
11
+ // ---- OMP: verified 2026-10-02 against v18.4.11 ----
12
+ // Oh My Pi (`can1357/oh-my-pi`, docs at main @ 7318a70cf4ed). The user layer lives in
13
+ // `AgentHomePaths.omp` (`$PI_CODING_AGENT_DIR` or `~/${PI_CONFIG_DIR || '.omp'}/agent`, the default
14
+ // profile; a named profile relocates it and is not modelled). Project files always live in
15
+ // `<repo>/.omp/`. Settings are YAML (`config.yml`); no `modelKey`, because OMP has no native-default
16
+ // strategy Squawk reads (spec § Model selection). Precedence strings quote the docs in doc order;
17
+ // a numbered doc list is joined with "; ", its wording untouched. Not listed, by the spec's
18
+ // scope: `.omp/AGENTS.md` (OMP's native project context file; project memory is the shared root
19
+ // `AGENTS.md` row) and the `.omp/.mcp.json` / user `.mcp.json` compatibility spellings.
20
+ {
21
+ id: 'omp.user.settings',
22
+ runners: ['omp'],
23
+ kind: 'settings',
24
+ scope: 'user',
25
+ resolve: (_repo, home) => join(home.omp, 'config.yml'),
26
+ label: '~/.omp/agent/config.yml',
27
+ format: 'yaml',
28
+ tracked: 'outside-repo',
29
+ precedence:
30
+ // config-usage.md § Layers, the six-tier list.
31
+ 'Effective precedence, highest first: 1. Environment variable declared on the definition (`env: "NAME"`), parsed by the setting\'s type; unparseable text counts as unset. Booleans follow `parseFlag`: empty is unset, `1`/`y`/`true`/`yes`/`on` (lower or upper case) is true, any other text is false; 2. Runtime overrides: in-memory, non-persistent; 3. Config overlays: `PI_CONFIG_FILES` (platform path-list), followed by repeated `omp --config <path>` files; all are loaded as `config.yml`-style YAML for this process only; 4. Project settings: discovered via the settings capability (`settings.json` and `config.yml` from providers); 5. Global settings: the first present file among `~/.omp/agent/config.yml` and `config.yaml`; 6. Definition default',
32
+ docsUrl: OMP_CONFIG_DOCS,
33
+ },
34
+ {
35
+ id: 'omp.project.settings',
36
+ runners: ['omp'],
37
+ kind: 'settings',
38
+ scope: 'project',
39
+ resolve: (repo) => join(repo, '.omp', 'config.yml'),
40
+ label: '.omp/config.yml',
41
+ format: 'yaml',
42
+ tracked: 'tracked',
43
+ precedence: 'Project settings: discovered via the settings capability (`settings.json` and `config.yml` from providers). Within the native provider, project `config.yml` follows and overrides `settings.json`. Runs read the committed copy.',
44
+ docsUrl: OMP_CONFIG_DOCS,
45
+ },
46
+ {
47
+ id: 'omp.user.mcp',
48
+ runners: ['omp'],
49
+ kind: 'mcp',
50
+ scope: 'user',
51
+ resolve: (_repo, home) => join(home.omp, 'mcp.json'),
52
+ label: '~/.omp/agent/mcp.json',
53
+ format: 'json',
54
+ tracked: 'outside-repo',
55
+ holdsMcp: true,
56
+ precedence: 'Across providers, the first definition wins. Duplicate names are not merged; OpenCode\'s internal config layers are the exception described above. Within OMP native config, project `.omp/mcp.json` precedes `.omp/.mcp.json`, then the active profile\'s user `mcp.json` and `.mcp.json`.',
57
+ docsUrl: OMP_MCP_DOCS,
58
+ },
59
+ {
60
+ id: 'omp.project.mcp',
61
+ runners: ['omp'],
62
+ kind: 'mcp',
63
+ scope: 'project',
64
+ resolve: (repo) => join(repo, '.omp', 'mcp.json'),
65
+ label: '.omp/mcp.json',
66
+ format: 'json',
67
+ tracked: 'tracked',
68
+ holdsMcp: true,
69
+ precedence: 'Across providers, the first definition wins. Duplicate names are not merged; OpenCode\'s internal config layers are the exception described above. Within OMP native config, project `.omp/mcp.json` precedes `.omp/.mcp.json`, then the active profile\'s user `mcp.json` and `.mcp.json`. Runs read the committed copy.',
70
+ docsUrl: OMP_MCP_DOCS,
71
+ },
72
+ {
73
+ id: 'omp.user.memory',
74
+ runners: ['omp'],
75
+ kind: 'memory',
76
+ scope: 'user',
77
+ resolve: (_repo, home) => join(home.omp, 'AGENTS.md'),
78
+ label: '~/.omp/agent/AGENTS.md',
79
+ format: 'markdown',
80
+ tracked: 'outside-repo',
81
+ precedence: '`SYSTEM.md`, `SYSTEM_TEMPLATE.md`, `RULES.md`, and `.omp/AGENTS.md` read user-level files directly and use the nearest non-empty ancestor `.omp` directory for project files. Context files: `.omp/AGENTS.md`; standalone ancestor `AGENTS.md` files are loaded separately by the low-priority `agents-md` provider',
82
+ docsUrl: OMP_CONFIG_DOCS,
83
+ },
84
+ // <repo>/AGENTS.md, shared with Codex, OpenCode, Pi and OMP: the catalog lists it once.
85
+ PROJECT_AGENTS_FILE,
86
+ ];
87
+ //# sourceMappingURL=config-files.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"config-files.js","sourceRoot":"","sources":["../../../src/runners/omp/config-files.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,IAAI,EAAE,MAAM,WAAW,CAAC;AAEjC,OAAO,EAAE,mBAAmB,EAAE,MAAM,2BAA2B,CAAC;AAEhE,MAAM,eAAe,GAAG,oEAAoE,CAAC;AAC7F,MAAM,YAAY,GAAG,kEAAkE,CAAC;AAExF;;;;GAIG;AACH,MAAM,CAAC,MAAM,gBAAgB,GAA6B;IACxD,sDAAsD;IACtD,sFAAsF;IACtF,oGAAoG;IACpG,2FAA2F;IAC3F,qGAAqG;IACrG,kGAAkG;IAClG,4FAA4F;IAC5F,gGAAgG;IAChG,wFAAwF;IACxF;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E,CAAC,IAAI,CAAC,IAAI,EAAE,MAAM,EAAE,UAAU,CAAC;QACjD,KAAK,EAAE,eAAe;QACtB,MAAM,EAAE,MAAM;QACd,OAAO,EAAE,SAAS;QAClB,QAAQ,EAAE,IAAI;QACd,UAAU,EACR,2TAA2T;QAC7T,OAAO,EAAE,YAAY;KACtB;IACD;QACE,EAAE,EAAE,iBAAiB;QACrB,OAAO,EAAE,CAAC,KAAK,CAAC;QAChB,IAAI,EAAE,QAAQ;QACd,KAAK,EAAE,MAAM;QACb,OAAO,EAAE,CAAC,KAAK,EAAE,IAAI,EAAE,EAAE,CAAC,IAAI,CAAC,IAAI,CAAC,GAAG,EAAE,WAAW,CAAC;QACrD,KAAK,EAAE,wBAAwB;QAC/B,MAAM,EAAE,UAAU;QAClB,OAAO,EAAE,cAAc;QACvB,UAAU,EACR,qTAAqT;QACvT,OAAO,EAAE,eAAe;KACzB;IAED,wFAAwF;IACxF,mBAAmB;CACpB,CAAC"}
@@ -1,9 +1,23 @@
1
1
  import { defineRunner } from '../../core/runner-definition.js';
2
2
  import { OMP_FACTS } from './facts.js';
3
+ import { OMP_MODELS } from './models.js';
4
+ import { OMP_CONFIG_FILES } from './config-files.js';
5
+ import { OMP_EXTRA_TOOLS } from './extra-tools.js';
3
6
  /** The OMP runner. */
4
7
  export const ompRunner = defineRunner({
5
8
  id: 'omp',
6
9
  facts: OMP_FACTS,
7
10
  loadAdapter: async () => new (await import('../../core/omp-runner.js')).OmpRunner(),
11
+ models: {
12
+ ...OMP_MODELS,
13
+ // OMP's native default model (its model roles) is not read: no native-default strategy, by the
14
+ // spec's scope (§ Model selection). Returning nothing leaves the prompt unpinned, so OMP's own
15
+ // model roles apply.
16
+ loadSettings: async () => ({ runner: 'omp', async read() { return {}; } }),
17
+ },
18
+ loadModelCatalog: async () => (await import('../../core/omp-model-catalog.js')).discoverOmpModels,
19
+ loadSkillCatalog: async () => (await import('../../core/omp-skill-catalog.js')).discoverOmpSkills,
20
+ configFiles: OMP_CONFIG_FILES,
21
+ extraTools: OMP_EXTRA_TOOLS,
8
22
  });
9
23
  //# sourceMappingURL=definition.js.map
@@ -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;AAEvC,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,SAAS,EAAE;CACpF,CAAC,CAAC"}
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,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,3 @@
1
+ /** The OMP runner's extra tools: unioned onto the default list when a step does not set
2
+ * allowedTools. Data only: importing it loads no adapter. */
3
+ export declare const OMP_EXTRA_TOOLS: readonly string[];
@@ -0,0 +1,6 @@
1
+ /** The OMP runner's extra tools: unioned onto the default list when a step does not set
2
+ * allowedTools. Data only: importing it loads no adapter. */
3
+ // R1 (rulings): find and ast_grep are gated behind settings that default off, and a --tools
4
+ // list naming an unavailable built-in exits 2, so they cannot be in the zero-config default.
5
+ export const OMP_EXTRA_TOOLS = ['todo', 'lsp', 'ast_edit', 'task', 'wait'];
6
+ //# sourceMappingURL=extra-tools.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"extra-tools.js","sourceRoot":"","sources":["../../../src/runners/omp/extra-tools.ts"],"names":[],"mappings":"AAAA;8DAC8D;AAC9D,4FAA4F;AAC5F,6FAA6F;AAC7F,MAAM,CAAC,MAAM,eAAe,GAAsB,CAAC,MAAM,EAAE,KAAK,EAAE,UAAU,EAAE,MAAM,EAAE,MAAM,CAAC,CAAC"}
@@ -0,0 +1,3 @@
1
+ import type { RunnerModelData } from '../../core/runner-definition.ts';
2
+ /** The OMP runner's model data. Data only: importing it loads no adapter. */
3
+ export declare const OMP_MODELS: RunnerModelData;
@@ -0,0 +1,9 @@
1
+ /** The OMP runner's model data. Data only: importing it loads no adapter. */
2
+ export const OMP_MODELS = {
3
+ // omp lists nothing for pi's reason: `provider/model` ids with no default provider, so the
4
+ // structural check in `modelConflictsWithRunner` guards it without vendor knowledge.
5
+ known: [],
6
+ // OMP is pi's fork: `provider/model`, no default provider, so a bare model is rejected loudly.
7
+ idMap: {},
8
+ };
9
+ //# sourceMappingURL=models.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"models.js","sourceRoot":"","sources":["../../../src/runners/omp/models.ts"],"names":[],"mappings":"AAEA,6EAA6E;AAC7E,MAAM,CAAC,MAAM,UAAU,GAAoB;IACzC,2FAA2F;IAC3F,qFAAqF;IACrF,KAAK,EAAE,EAAE;IACT,+FAA+F;IAC/F,KAAK,EAAE,EAAE;CACV,CAAC"}
@@ -0,0 +1,7 @@
1
+ import type { ConfigFileDef } from '../../core/runner-config-files.ts';
2
+ /**
3
+ * The OpenCode runner's native config files for Settings → Agent config. Data only: importing it
4
+ * loads no adapter. Order is presentation order: user → project → local, so the scope ladder
5
+ * reads top (broad) to bottom (specific).
6
+ */
7
+ export declare const OPENCODE_CONFIG_FILES: readonly ConfigFileDef[];
@@ -0,0 +1,57 @@
1
+ import { join } from 'node:path';
2
+ import { PROJECT_AGENTS_FILE } from '../project-agents-file.js';
3
+ const OPENCODE_CONFIG_DOCS = 'https://opencode.ai/docs/config/';
4
+ const OPENCODE_RULES_DOCS = 'https://opencode.ai/docs/rules/';
5
+ /**
6
+ * The OpenCode runner's native config files for Settings → Agent config. Data only: importing it
7
+ * loads no adapter. Order is presentation order: user → project → local, so the scope ladder
8
+ * reads top (broad) to bottom (specific).
9
+ */
10
+ export const OPENCODE_CONFIG_FILES = [
11
+ // ---- OpenCode ----
12
+ {
13
+ id: 'opencode.user.config',
14
+ runners: ['opencode'],
15
+ kind: 'settings',
16
+ scope: 'user',
17
+ resolve: (_repo, home) => join(home.opencodeConfig, 'opencode.json'),
18
+ label: '~/.config/opencode/opencode.json',
19
+ format: 'jsonc',
20
+ tracked: 'outside-repo',
21
+ holdsMcp: true,
22
+ modelKey: 'model',
23
+ modelPriority: 1,
24
+ precedence: 'Global config. Merged with the project config, not replaced — later configs override earlier ones only for conflicting keys. MCP servers live under the "mcp" key.',
25
+ docsUrl: OPENCODE_CONFIG_DOCS,
26
+ },
27
+ {
28
+ id: 'opencode.project.config',
29
+ runners: ['opencode'],
30
+ kind: 'settings',
31
+ scope: 'project',
32
+ resolve: (repo) => join(repo, 'opencode.json'),
33
+ label: 'opencode.json',
34
+ format: 'jsonc',
35
+ tracked: 'tracked',
36
+ holdsMcp: true,
37
+ modelKey: 'model',
38
+ modelPriority: 2,
39
+ precedence: 'Merged over the global config per conflicting key (not a wholesale replace). MCP servers live under the "mcp" key. Runs read the committed copy.',
40
+ docsUrl: OPENCODE_CONFIG_DOCS,
41
+ },
42
+ {
43
+ id: 'opencode.user.memory',
44
+ runners: ['opencode'],
45
+ kind: 'memory',
46
+ scope: 'user',
47
+ resolve: (_repo, home) => join(home.opencodeConfig, 'AGENTS.md'),
48
+ label: '~/.config/opencode/AGENTS.md',
49
+ format: 'markdown',
50
+ tracked: 'outside-repo',
51
+ precedence: 'Global rules. First match wins across scopes: if a project AGENTS.md exists, this global file is not read at all.',
52
+ docsUrl: OPENCODE_RULES_DOCS,
53
+ },
54
+ // <repo>/AGENTS.md, shared with Codex, OpenCode, Pi and OMP: the catalog lists it once.
55
+ PROJECT_AGENTS_FILE,
56
+ ];
57
+ //# sourceMappingURL=config-files.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"config-files.js","sourceRoot":"","sources":["../../../src/runners/opencode/config-files.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,IAAI,EAAE,MAAM,WAAW,CAAC;AAEjC,OAAO,EAAE,mBAAmB,EAAE,MAAM,2BAA2B,CAAC;AAEhE,MAAM,oBAAoB,GAAG,kCAAkC,CAAC;AAChE,MAAM,mBAAmB,GAAG,iCAAiC,CAAC;AAE9D;;;;GAIG;AACH,MAAM,CAAC,MAAM,qBAAqB,GAA6B;IAC7D,qBAAqB;IACrB;QACE,EAAE,EAAE,sBAAsB;QAC1B,OAA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core/runner-definition.js';
2
2
  import { OPENCODE_FACTS } from './facts.js';
3
+ import { OPENCODE_MODELS } from './models.js';
4
+ import { OPENCODE_CONFIG_FILES } from './config-files.js';
5
+ import { OPENCODE_EXTRA_TOOLS } from './extra-tools.js';
3
6
  /** The OpenCode runner. */
4
7
  export const opencodeRunner = defineRunner({
5
8
  id: 'opencode',
6
9
  facts: OPENCODE_FACTS,
7
10
  loadAdapter: async () => new (await import('../../core/opencode-server-runner.js')).OpencodeServerRunner(),
11
+ models: {
12
+ ...OPENCODE_MODELS,
13
+ loadSettings: async () => (await import('../../agent-config/model-settings/opencode.js')).opencodeModelSettingsStrategy,
14
+ },
15
+ loadModelCatalog: async () => (await import('../../core/opencode-model-catalog.js')).discoverOpencodeModels,
16
+ loadSkillCatalog: async () => (await import('../../core/opencode-skill-catalog.js')).discoverOpencodeSkills,
17
+ configFiles: OPENCODE_CONFIG_FILES,
18
+ extraTools: OPENCODE_EXTRA_TOOLS,
8
19
  });
9
20
  //# sourceMappingURL=definition.js.map
@@ -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;AAE5C,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,MAAM,MAAM,CAAC,sCAAsC,CAAC,CAAC,CAAC,oBAAoB,EAAE;CAC3G,CAAC,CAAC"}
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,MAAM,MAAM,CAAC,sCAAsC,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,3 @@
1
+ /** The OpenCode runner's extra tools: unioned onto the default list when a step does not set
2
+ * allowedTools. Data only: importing it loads no adapter. */
3
+ export declare const OPENCODE_EXTRA_TOOLS: readonly string[];
@@ -0,0 +1,4 @@
1
+ /** The OpenCode runner's extra tools: unioned onto the default list when a step does not set
2
+ * allowedTools. Data only: importing it loads no adapter. */
3
+ export const OPENCODE_EXTRA_TOOLS = [];
4
+ //# sourceMappingURL=extra-tools.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"extra-tools.js","sourceRoot":"","sources":["../../../src/runners/opencode/extra-tools.ts"],"names":[],"mappings":"AAAA;8DAC8D;AAC9D,MAAM,CAAC,MAAM,oBAAoB,GAAsB,EAAE,CAAC"}
@@ -0,0 +1,3 @@
1
+ import type { RunnerModelData } from '../../core/runner-definition.ts';
2
+ /** The OpenCode runner's model data. Data only: importing it loads no adapter. */
3
+ export declare const OPENCODE_MODELS: RunnerModelData;
@@ -0,0 +1,8 @@
1
+ /** The OpenCode runner's model data. Data only: importing it loads no adapter. */
2
+ export const OPENCODE_MODELS = {
3
+ known: [],
4
+ // opencode selects across providers, so a bare model is ambiguous: reject it
5
+ // loudly rather than let the server pick a default the user never asked for.
6
+ idMap: {},
7
+ };
8
+ //# sourceMappingURL=models.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"models.js","sourceRoot":"","sources":["../../../src/runners/opencode/models.ts"],"names":[],"mappings":"AAEA,kFAAkF;AAClF,MAAM,CAAC,MAAM,eAAe,GAAoB;IAC9C,KAAK,EAAE,EAAE;IACT,6EAA6E;IAC7E,6EAA6E;IAC7E,KAAK,EAAE,EAAE;CACV,CAAC"}
@@ -0,0 +1,7 @@
1
+ import type { ConfigFileDef } from '../../core/runner-config-files.ts';
2
+ /**
3
+ * The pi runner's native config files for Settings → Agent config. Data only: importing it
4
+ * loads no adapter. Order is presentation order: user → project → local, so the scope ladder
5
+ * reads top (broad) to bottom (specific).
6
+ */
7
+ export declare const PI_CONFIG_FILES: readonly ConfigFileDef[];
@@ -0,0 +1,59 @@
1
+ import { join } from 'node:path';
2
+ import { PROJECT_AGENTS_FILE } from '../project-agents-file.js';
3
+ const PI_SETTINGS_DOCS = 'https://github.com/badlogic/pi-mono/blob/main/packages/coding-agent/docs/settings.md';
4
+ const PI_CONTEXT_FILES_DOCS = 'https://github.com/badlogic/pi-mono/blob/main/packages/coding-agent/README.md#context-files';
5
+ /**
6
+ * The pi runner's native config files for Settings → Agent config. Data only: importing it
7
+ * loads no adapter. Order is presentation order: user → project → local, so the scope ladder
8
+ * reads top (broad) to bottom (specific).
9
+ */
10
+ export const PI_CONFIG_FILES = [
11
+ // ---- Pi ----
12
+ // Pi has no MCP file of its own: its README says "No MCP." — servers arrive only through a Pi
13
+ // extension, so nothing here carries `holdsMcp` and the cockpit's MCP group states that instead.
14
+ {
15
+ id: 'pi.user.settings',
16
+ runners: ['pi'],
17
+ kind: 'settings',
18
+ scope: 'user',
19
+ resolve: (_repo, home) => join(home.pi, 'settings.json'),
20
+ label: '~/.pi/agent/settings.json',
21
+ format: 'json',
22
+ tracked: 'outside-repo',
23
+ modelKey: 'defaultModel',
24
+ modelProviderKey: 'defaultProvider',
25
+ modelPriority: 1,
26
+ precedence: 'Global (all projects). Project settings override global settings — the two merge recursively, so nested objects combine rather than replace. Startup model: defaultProvider + defaultModel.',
27
+ docsUrl: PI_SETTINGS_DOCS,
28
+ },
29
+ {
30
+ id: 'pi.project.settings',
31
+ runners: ['pi'],
32
+ kind: 'settings',
33
+ scope: 'project',
34
+ resolve: (repo) => join(repo, '.pi', 'settings.json'),
35
+ label: '.pi/settings.json',
36
+ format: 'json',
37
+ tracked: 'tracked',
38
+ modelKey: 'defaultModel',
39
+ modelProviderKey: 'defaultProvider',
40
+ modelPriority: 2,
41
+ precedence: `Overrides global settings (merged recursively). Loaded only once the project folder is trusted; non-interactive modes such as --mode rpc fall back to defaultProjectTrust in the global settings and ignore it under "ask" or "never" — Squawk reads a native default model from it only when that value is "always". Runs read the committed copy.`,
42
+ docsUrl: PI_SETTINGS_DOCS,
43
+ },
44
+ {
45
+ id: 'pi.user.memory',
46
+ runners: ['pi'],
47
+ kind: 'memory',
48
+ scope: 'user',
49
+ resolve: (_repo, home) => join(home.pi, 'AGENTS.md'),
50
+ label: '~/.pi/agent/AGENTS.md',
51
+ format: 'markdown',
52
+ tracked: 'outside-repo',
53
+ precedence: 'Global context file, loaded first. Every AGENTS.md (or CLAUDE.md) from the parent directories down to the current one is concatenated after it; an AGENTS.override.md replaces that directory’s file only.',
54
+ docsUrl: PI_CONTEXT_FILES_DOCS,
55
+ },
56
+ // <repo>/AGENTS.md, shared with Codex, OpenCode, Pi and OMP: the catalog lists it once.
57
+ PROJECT_AGENTS_FILE,
58
+ ];
59
+ //# sourceMappingURL=config-files.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"config-files.js","sourceRoot":"","sources":["../../../src/runners/pi/config-files.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,IAAI,EAAE,MAAM,WAAW,CAAC;AAEjC,OAAO,EAAE,mBAAmB,EAAE,MAAM,2BAA2B,CAAC;AAEhE,MAAM,gBAAgB,GAAG,sFAAsF,CAAC;AAChH,MAAM,qBAAqB,GAAG,6FAA6F,CAAC;AAE5H;;;;GAIG;AACH,MAAM,CAAC,MAAM,eAAe,GAA6B;IACvD,eAAe;IACf,8FAA8F;IAC9F,iGAAiG;IACjG;QACE,EAAE,EAAE,kBAAkB;QACtB,OAAO,EAAE,CAAC,IAAI,CAAC;QACf,IAAI,EAAE,UAAU;QAChB,KAAK,EAAE,MAAM;QACb,OAAO,EAAE,CAAC,KAAK,EAAE,IAAI,EAAE,EAAE,CAAC,IAAI,CAAC,IAAI,CAAC,EAAE,EAAE,eAAe,CAAC;QACxD,KAAK,EAAE,2BAA2B;QAClC,MAAM,EAAE,MAAM;QACd,OAAO,EAAE,cAAc;QACvB,QAAQ,EAAE,cAAc;QACxB,gBAAgB,EAAE,iBAAiB;QACnC,aAAa,EAAE,CAAC;QAChB,UAAU,EACR,6LAA6L;QAC/L,OAAO,EAAE,gBAAgB;KAC1B;IACD;QACE,EAAE,EAAE,qBAAqB;QACzB,OAAO,EAAE,CAAC,IAAI,CAAC;QACf,IAAI,EAAE,UAAU;QAChB,KAAK,EAAE,SAAS;QAChB,OAAO,EAAE,CAAC,IAAI,EAAE,EAAE,CAAC,IAAI,CAAC,IAAI,EAAE,KAAK,EAAE,eAAe,CAAC;QACrD,KAAK,EAAE,mBAAmB;QAC1B,MAAM,EAAE,MAAM;QACd,OAAO,EAAE,SAAS;QAClB,QAAQ,EAAE,cAAc;QACxB,gBAAgB,EAAE,iBAAiB;QACnC,aAAa,EAAE,CAAC;QAChB,UAAU,EACR,qVAAqV;QACvV,OAAO,EAAE,gBAAgB;KAC1B;IACD;QACE,EAAE,EAAE,gBAAgB;QACpB,OAAO,EAAE,CAAC,IAAI,CAAC;QACf,IAAI,EAAE,QAAQ;QACd,KAAK,EAAE,MAAM;QACb,OAAO,EAAE,CAAC,KAAK,EAAE,IAAI,EAAE,EAAE,CAAC,IAAI,CAAC,IAAI,CAAC,EAAE,EAAE,WAAW,CAAC;QACpD,KAAK,EAAE,uBAAuB;QAC9B,MAAM,EAAE,UAAU;QAClB,OAAO,EAAE,cAAc;QACvB,UAAU,EACR,4MAA4M;QAC9M,OAAO,EAAE,qBAAqB;KAC/B;IAED,wFAAwF;IACxF,mBAAmB;CACpB,CAAC"}
@@ -1,9 +1,20 @@
1
1
  import { defineRunner } from '../../core/runner-definition.js';
2
2
  import { PI_FACTS } from './facts.js';
3
+ import { PI_MODELS } from './models.js';
4
+ import { PI_CONFIG_FILES } from './config-files.js';
5
+ import { PI_EXTRA_TOOLS } from './extra-tools.js';
3
6
  /** The Pi runner. */
4
7
  export const piRunner = defineRunner({
5
8
  id: 'pi',
6
9
  facts: PI_FACTS,
7
10
  loadAdapter: async () => new (await import('../../core/pi-runner.js')).PiRunner(),
11
+ models: {
12
+ ...PI_MODELS,
13
+ loadSettings: async () => (await import('../../agent-config/model-settings/pi.js')).piModelSettingsStrategy,
14
+ },
15
+ loadModelCatalog: async () => (await import('../../core/pi-model-catalog.js')).discoverPiModels,
16
+ loadSkillCatalog: async () => (await import('../../core/pi-skill-catalog.js')).discoverPiSkills,
17
+ configFiles: PI_CONFIG_FILES,
18
+ extraTools: PI_EXTRA_TOOLS,
8
19
  });
9
20
  //# sourceMappingURL=definition.js.map
@@ -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,E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B,CAAC,CAAC"}
@@ -0,0 +1,3 @@
1
+ /** The pi runner's extra tools: unioned onto the default list when a step does not set
2
+ * allowedTools. Data only: importing it loads no adapter. */
3
+ export declare const PI_EXTRA_TOOLS: readonly string[];
@@ -0,0 +1,7 @@
1
+ /** The pi runner's extra tools: unioned onto the default list when a step does not set
2
+ * allowedTools. Data only: importing it loads no adapter. */
3
+ // The trio still marks the default list (hearsay-tools/cezarion#75). pi itself gets no --tools
4
+ // allowlist for it (hearsay-tools/cezarion#1305): the default-tools extension activates these
5
+ // names with the built-ins, so MCP and other extension tools stay callable.
6
+ export const PI_EXTRA_TOOLS = ['Subagent', 'SubagentSupervisor', 'SubagentWait'];
7
+ //# sourceMappingURL=extra-tools.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"extra-tools.js","sourceRoot":"","sources":["../../../src/runners/pi/extra-tools.ts"],"names":[],"mappings":"AAAA;8DAC8D;AAC9D,+FAA+F;AAC/F,8FAA8F;AAC9F,4EAA4E;AAC5E,MAAM,CAAC,MAAM,cAAc,GAAsB,CAAC,UAAU,EAAE,oBAAoB,EAAE,cAAc,CAAC,CAAC"}
@@ -0,0 +1,3 @@
1
+ import type { RunnerModelData } from '../../core/runner-definition.ts';
2
+ /** The pi runner's model data. Data only: importing it loads no adapter. */
3
+ export declare const PI_MODELS: RunnerModelData;
@@ -0,0 +1,15 @@
1
+ /** The pi runner's model data. Data only: importing it loads no adapter. */
2
+ export const PI_MODELS = {
3
+ // pi lists nothing for the same reason OpenCode does (#794), plus one of its own: it picks a
4
+ // model with the canonical `provider/model` convention and has no default provider, so the
5
+ // structural check in `modelConflictsWithRunner` already guards it without vendor
6
+ // knowledge. Listing pi's composer presets here would actively break OpenCode — the ids
7
+ // overlap (`anthropic/claude-sonnet-5`), and a shared id present in pi's list but absent from
8
+ // OpenCode's empty one would read as "another runner's preset" and be refused.
9
+ known: [],
10
+ // pi selects across providers with the same `provider/model` convention as
11
+ // opencode (#387) — no default provider, so a bare model is rejected loudly
12
+ // and `toBackendModel` hands pi the full `provider/model` on its `--model`.
13
+ idMap: {},
14
+ };
15
+ //# sourceMappingURL=models.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"models.js","sourceRoot":"","sources":["../../../src/runners/pi/models.ts"],"names":[],"mappings":"AAEA,4EAA4E;AAC5E,MAAM,CAAC,MAAM,SAAS,GAAoB;IACxC,6FAA6F;IAC7F,2FAA2F;IAC3F,kFAAkF;IAClF,wFAAwF;IACxF,8FAA8F;IAC9F,+EAA+E;IAC/E,KAAK,EAAE,EAAE;IACT,2EAA2E;IAC3E,4EAA4E;IAC5E,4EAA4E;IAC5E,KAAK,EAAE,EAAE;CACV,CAAC"}
@@ -0,0 +1,6 @@
1
+ import type { ConfigFileDef } from '../core/runner-config-files.ts';
2
+ /**
3
+ * `<repo>/AGENTS.md` is read by Codex, OpenCode, Pi AND OMP. Each of their definitions lists this
4
+ * one entry in its `configFiles`; the agent-config catalog lists it once. Data only.
5
+ */
6
+ export declare const PROJECT_AGENTS_FILE: ConfigFileDef;
@@ -0,0 +1,19 @@
1
+ import { join } from 'node:path';
2
+ const OPENCODE_RULES_DOCS = 'https://opencode.ai/docs/rules/';
3
+ /**
4
+ * `<repo>/AGENTS.md` is read by Codex, OpenCode, Pi AND OMP. Each of their definitions lists this
5
+ * one entry in its `configFiles`; the agent-config catalog lists it once. Data only.
6
+ */
7
+ export const PROJECT_AGENTS_FILE = {
8
+ id: 'project.agents',
9
+ runners: ['codex', 'opencode', 'pi', 'omp'],
10
+ kind: 'memory',
11
+ scope: 'project',
12
+ resolve: (repo) => join(repo, 'AGENTS.md'),
13
+ label: 'AGENTS.md',
14
+ format: 'markdown',
15
+ tracked: 'tracked',
16
+ precedence: 'Read by Codex, OpenCode, Pi and OMP (Claude ignores it). Codex concatenates it root-down; OpenCode uses the first match and prefers it over CLAUDE.md; Pi concatenates every AGENTS.md (or CLAUDE.md) from the parent directories down, after its global file; OMP loads standalone ancestor AGENTS.md files through its low-priority `agents-md` provider. Runs read the committed copy.',
17
+ docsUrl: OPENCODE_RULES_DOCS,
18
+ };
19
+ //# sourceMappingURL=project-agents-file.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"project-agents-file.js","sourceRoot":"","sources":["../../src/runners/project-agents-file.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,IAAI,EAAE,MAAM,WAAW,CAAC;AAGjC,MAAM,mBAAmB,GAAG,iCAAiC,CAAC;AAE9D;;;GAGG;AACH,MAAM,CAAC,MAAM,mBAAmB,GAAkB;IAChD,EAAE,EAAE,gBAAgB;IACpB,OAAO,EAAE,CAAC,OAAO,EAAE,UAAU,EAAE,IAAI,EAAE,KAAK,CAAC;IAC3C,IAAI,EAAE,QAAQ;IACd,KAAK,EAAE,SAAS;IAChB,OAAO,EAAE,CAAC,IAAI,EAAE,EAAE,CAAC,IAAI,CAAC,IAAI,EAAE,WAAW,CAAC;IAC1C,KAAK,EAAE,WAAW;IAClB,MAAM,EAAE,UAAU;IAClB,OAAO,EAAE,SAAS;IAClB,UAAU,EACR,2XAA2X;IAC7X,OAAO,EAAE,mBAAmB;CAC7B,CAAC"}