@hearsay-tools/squawk 0.18.0-dev.7439 → 0.18.0-dev.7447

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 (121) 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/ci-wait/controller.d.ts +42 -42
  23. package/dist/core/host-model-catalog.d.ts +2 -1
  24. package/dist/core/host-model-catalog.js +7 -13
  25. package/dist/core/host-model-catalog.js.map +1 -1
  26. package/dist/core/host-skill-catalog.d.ts +5 -2
  27. package/dist/core/host-skill-catalog.js +9 -12
  28. package/dist/core/host-skill-catalog.js.map +1 -1
  29. package/dist/core/model-identity.d.ts +9 -11
  30. package/dist/core/model-identity.js +12 -28
  31. package/dist/core/model-identity.js.map +1 -1
  32. package/dist/core/model-presets.d.ts +0 -5
  33. package/dist/core/model-presets.js +11 -30
  34. package/dist/core/model-presets.js.map +1 -1
  35. package/dist/core/opencode-minimal.js +1 -2
  36. package/dist/core/opencode-minimal.js.map +1 -1
  37. package/dist/core/opencode-runtime-config.d.ts +3 -0
  38. package/dist/core/opencode-runtime-config.js +11 -0
  39. package/dist/core/opencode-runtime-config.js.map +1 -1
  40. package/dist/core/pi-runner.js +1 -1
  41. package/dist/core/pi-runner.js.map +1 -1
  42. package/dist/core/runner-config-files.d.ts +60 -0
  43. package/dist/core/runner-config-files.js +2 -0
  44. package/dist/core/runner-config-files.js.map +1 -0
  45. package/dist/core/runner-definition.d.ts +33 -0
  46. package/dist/core/runner-definition.js.map +1 -1
  47. package/dist/{agent-config/model-settings/types.d.ts → core/runner-model-settings.d.ts} +3 -1
  48. package/dist/core/runner-model-settings.js +2 -0
  49. package/dist/core/runner-model-settings.js.map +1 -0
  50. package/dist/delegation/routes.d.ts +16 -16
  51. package/dist/delegation/transport.d.ts +74 -74
  52. package/dist/paths.d.ts +1 -1
  53. package/dist/runners/claude/config-files.d.ts +7 -0
  54. package/dist/runners/claude/config-files.js +112 -0
  55. package/dist/runners/claude/config-files.js.map +1 -0
  56. package/dist/runners/claude/definition.js +11 -0
  57. package/dist/runners/claude/definition.js.map +1 -1
  58. package/dist/runners/claude/extra-tools.d.ts +3 -0
  59. package/dist/runners/claude/extra-tools.js +4 -0
  60. package/dist/runners/claude/extra-tools.js.map +1 -0
  61. package/dist/runners/claude/models.d.ts +3 -0
  62. package/dist/runners/claude/models.js +16 -0
  63. package/dist/runners/claude/models.js.map +1 -0
  64. package/dist/runners/codex/config-files.d.ts +7 -0
  65. package/dist/runners/codex/config-files.js +58 -0
  66. package/dist/runners/codex/config-files.js.map +1 -0
  67. package/dist/runners/codex/definition.js +11 -0
  68. package/dist/runners/codex/definition.js.map +1 -1
  69. package/dist/runners/codex/extra-tools.d.ts +3 -0
  70. package/dist/runners/codex/extra-tools.js +4 -0
  71. package/dist/runners/codex/extra-tools.js.map +1 -0
  72. package/dist/runners/codex/models.d.ts +3 -0
  73. package/dist/runners/codex/models.js +9 -0
  74. package/dist/runners/codex/models.js.map +1 -0
  75. package/dist/runners/omp/config-files.d.ts +7 -0
  76. package/dist/runners/omp/config-files.js +87 -0
  77. package/dist/runners/omp/config-files.js.map +1 -0
  78. package/dist/runners/omp/definition.js +14 -0
  79. package/dist/runners/omp/definition.js.map +1 -1
  80. package/dist/runners/omp/extra-tools.d.ts +3 -0
  81. package/dist/runners/omp/extra-tools.js +6 -0
  82. package/dist/runners/omp/extra-tools.js.map +1 -0
  83. package/dist/runners/omp/models.d.ts +3 -0
  84. package/dist/runners/omp/models.js +9 -0
  85. package/dist/runners/omp/models.js.map +1 -0
  86. package/dist/runners/opencode/config-files.d.ts +7 -0
  87. package/dist/runners/opencode/config-files.js +57 -0
  88. package/dist/runners/opencode/config-files.js.map +1 -0
  89. package/dist/runners/opencode/definition.js +11 -0
  90. package/dist/runners/opencode/definition.js.map +1 -1
  91. package/dist/runners/opencode/extra-tools.d.ts +3 -0
  92. package/dist/runners/opencode/extra-tools.js +4 -0
  93. package/dist/runners/opencode/extra-tools.js.map +1 -0
  94. package/dist/runners/opencode/models.d.ts +3 -0
  95. package/dist/runners/opencode/models.js +8 -0
  96. package/dist/runners/opencode/models.js.map +1 -0
  97. package/dist/runners/pi/config-files.d.ts +7 -0
  98. package/dist/runners/pi/config-files.js +59 -0
  99. package/dist/runners/pi/config-files.js.map +1 -0
  100. package/dist/runners/pi/definition.js +11 -0
  101. package/dist/runners/pi/definition.js.map +1 -1
  102. package/dist/runners/pi/extra-tools.d.ts +3 -0
  103. package/dist/runners/pi/extra-tools.js +7 -0
  104. package/dist/runners/pi/extra-tools.js.map +1 -0
  105. package/dist/runners/pi/models.d.ts +3 -0
  106. package/dist/runners/pi/models.js +15 -0
  107. package/dist/runners/pi/models.js.map +1 -0
  108. package/dist/runners/project-agents-file.d.ts +6 -0
  109. package/dist/runners/project-agents-file.js +19 -0
  110. package/dist/runners/project-agents-file.js.map +1 -0
  111. package/dist/server/activity-routes.d.ts +23 -23
  112. package/dist/server/server.d.ts +254 -254
  113. package/dist/workflows/types.d.ts +1 -5
  114. package/dist/workflows/types.js +4 -15
  115. package/dist/workflows/types.js.map +1 -1
  116. package/package.json +4 -4
  117. package/dist/agent-config/model-settings/types.js +0 -2
  118. package/dist/agent-config/model-settings/types.js.map +0 -1
  119. package/dist/ci-wait/injection.d.ts +0 -3
  120. package/dist/ci-wait/injection.js +0 -13
  121. package/dist/ci-wait/injection.js.map +0 -1
@@ -0,0 +1,7 @@
1
+ import type { ConfigFileDef } from '../../core/runner-config-files.ts';
2
+ /**
3
+ * The Claude 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 CLAUDE_CONFIG_FILES: readonly ConfigFileDef[];
@@ -0,0 +1,112 @@
1
+ import { join } from 'node:path';
2
+ const CLAUDE_SETTINGS_DOCS = 'https://code.claude.com/docs/en/settings';
3
+ const CLAUDE_MEMORY_DOCS = 'https://code.claude.com/docs/en/memory';
4
+ const CLAUDE_MCP_DOCS = 'https://code.claude.com/docs/en/mcp';
5
+ /**
6
+ * The Claude 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 CLAUDE_CONFIG_FILES = [
11
+ // ---- Claude Code ----
12
+ {
13
+ id: 'claude.user.settings',
14
+ runners: ['claude'],
15
+ kind: 'settings',
16
+ scope: 'user',
17
+ resolve: (_repo, home) => join(home.claude, 'settings.json'),
18
+ label: '~/.claude/settings.json',
19
+ format: 'json',
20
+ tracked: 'outside-repo',
21
+ modelKey: 'model',
22
+ modelKeys: ['env.ANTHROPIC_MODEL', 'model'],
23
+ modelPriority: 1,
24
+ precedence: 'Lowest priority. Project and local settings override it key by key — except permission rules, which merge across all scopes.',
25
+ hotReload: 'Edits to most keys — including permissions and hooks — apply to a running session without a restart.',
26
+ docsUrl: CLAUDE_SETTINGS_DOCS,
27
+ },
28
+ {
29
+ id: 'claude.project.settings',
30
+ runners: ['claude'],
31
+ kind: 'settings',
32
+ scope: 'project',
33
+ resolve: (repo) => join(repo, '.claude', 'settings.json'),
34
+ label: '.claude/settings.json',
35
+ format: 'json',
36
+ tracked: 'tracked',
37
+ modelKey: 'model',
38
+ modelKeys: ['env.ANTHROPIC_MODEL', 'model'],
39
+ modelPriority: 2,
40
+ precedence: 'Overrides user settings key by key (permission rules merge). Local settings override this.',
41
+ hotReload: 'Edits to most keys — including permissions and hooks — apply to a running session without a restart.',
42
+ docsUrl: CLAUDE_SETTINGS_DOCS,
43
+ },
44
+ {
45
+ id: 'claude.local.settings',
46
+ runners: ['claude'],
47
+ kind: 'settings',
48
+ scope: 'local',
49
+ resolve: (repo) => join(repo, '.claude', 'settings.local.json'),
50
+ label: '.claude/settings.local.json',
51
+ format: 'json',
52
+ tracked: 'gitignored',
53
+ seeded: true,
54
+ modelKey: 'model',
55
+ modelKeys: ['env.ANTHROPIC_MODEL', 'model'],
56
+ modelPriority: 3,
57
+ precedence: 'Highest of the file scopes — overrides project and user (permission rules merge). Git-ignored; copied into each run’s worktree so it takes effect immediately.',
58
+ hotReload: 'Edits to most keys — including permissions and hooks — apply to a running session without a restart.',
59
+ docsUrl: CLAUDE_SETTINGS_DOCS,
60
+ },
61
+ {
62
+ id: 'claude.project.mcp',
63
+ runners: ['claude'],
64
+ kind: 'mcp',
65
+ scope: 'project',
66
+ resolve: (repo) => join(repo, '.mcp.json'),
67
+ label: '.mcp.json',
68
+ format: 'json',
69
+ tracked: 'tracked',
70
+ holdsMcp: true,
71
+ precedence: `Project-scoped MCP servers (key: mcpServers), shared via version control. Each requires approval before use; user- and local-scoped servers live in ~/.claude.json, which Squawk does not edit.`,
72
+ docsUrl: CLAUDE_MCP_DOCS,
73
+ },
74
+ {
75
+ id: 'claude.user.memory',
76
+ runners: ['claude'],
77
+ kind: 'memory',
78
+ scope: 'user',
79
+ resolve: (_repo, home) => join(home.claude, 'CLAUDE.md'),
80
+ label: '~/.claude/CLAUDE.md',
81
+ format: 'markdown',
82
+ tracked: 'outside-repo',
83
+ precedence: 'Not overridden — every CLAUDE.md that loads is concatenated, this user file first.',
84
+ docsUrl: CLAUDE_MEMORY_DOCS,
85
+ },
86
+ {
87
+ id: 'claude.project.memory',
88
+ runners: ['claude'],
89
+ kind: 'memory',
90
+ scope: 'project',
91
+ resolve: (repo) => join(repo, 'CLAUDE.md'),
92
+ label: 'CLAUDE.md',
93
+ format: 'markdown',
94
+ tracked: 'tracked',
95
+ precedence: 'Concatenated after the user file, not replacing it. Claude does not read AGENTS.md — import it here with @AGENTS.md. Runs read the committed copy.',
96
+ docsUrl: CLAUDE_MEMORY_DOCS,
97
+ },
98
+ {
99
+ id: 'claude.local.memory',
100
+ runners: ['claude'],
101
+ kind: 'memory',
102
+ scope: 'local',
103
+ resolve: (repo) => join(repo, 'CLAUDE.local.md'),
104
+ label: 'CLAUDE.local.md',
105
+ format: 'markdown',
106
+ tracked: 'gitignored',
107
+ seeded: true,
108
+ precedence: 'Loads alongside CLAUDE.md, concatenated last. Git-ignored; copied into each run’s worktree so it takes effect immediately.',
109
+ docsUrl: CLAUDE_MEMORY_DOCS,
110
+ },
111
+ ];
112
+ //# sourceMappingURL=config-files.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"config-files.js","sourceRoot":"","sources":["../../../src/runners/claude/config-files.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,IAAI,EAAE,MAAM,WAAW,CAAC;AAGjC,MAAM,oBAAoB,GAAG,0CAA0C,CAAC;AACxE,MAAM,kBAAkB,GAAG,wCAAwC,CAAC;AACpE,MAAM,eAAe,GAAG,qCAAqC,CAAC;AAE9D;;;;GAIG;AACH,MAAM,CAAC,MAAM,mBAAmB,GAA6B;IAC3D,wBAAwB;IACxB;QACE,EAAE,EAAE,sBAAsB;QAC1B,OAAO,EAAE,CAAC,QAAQ,CAAC;QACnB,IAAI,EAAE,UAAU;QAChB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Q,CAAC;QACnB,IAAI,EAAE,QAAQ;QACd,KAAK,EAAE,OAAO;QACd,OAAO,EAAE,CAAC,IAAI,EAAE,EAAE,CAAC,IAAI,CAAC,IAAI,EAAE,iBAAiB,CAAC;QAChD,KAAK,EAAE,iBAAiB;QACxB,MAAM,EAAE,UAAU;QAClB,OAAO,EAAE,YAAY;QACrB,MAAM,EAAE,IAAI;QACZ,UAAU,EACR,4HAA4H;QAC9H,OAAO,EAAE,kBAAkB;KAC5B;CACF,CAAC"}
@@ -1,9 +1,20 @@
1
1
  import { defineRunner } from '../../core/runner-definition.js';
2
2
  import { CLAUDE_FACTS } from './facts.js';
3
+ import { CLAUDE_MODELS } from './models.js';
4
+ import { CLAUDE_CONFIG_FILES } from './config-files.js';
5
+ import { CLAUDE_EXTRA_TOOLS } from './extra-tools.js';
3
6
  /** The Claude runner. */
4
7
  export const claudeRunner = defineRunner({
5
8
  id: 'claude',
6
9
  facts: CLAUDE_FACTS,
7
10
  loadAdapter: async () => new (await import('../../core/claude-cli-runner.js')).ClaudeCliRunner(),
11
+ models: {
12
+ ...CLAUDE_MODELS,
13
+ loadSettings: async () => (await import('../../agent-config/model-settings/claude.js')).claudeModelSettingsStrategy,
14
+ },
15
+ loadModelCatalog: async () => (await import('../../core/claude-model-catalog.js')).discoverClaudeModels,
16
+ loadSkillCatalog: async () => (await import('../../core/claude-skill-catalog.js')).discoverClaudeSkills,
17
+ configFiles: CLAUDE_CONFIG_FILES,
18
+ extraTools: CLAUDE_EXTRA_TOOLS,
8
19
  });
9
20
  //# sourceMappingURL=definition.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"definition.js","sourceRoot":"","sources":["../../../src/runners/claude/definition.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,MAAM,iCAAiC,CAAC;AAC/D,OAAO,EAAE,YAAY,EAAE,MAAM,YAAY,CAAC;AAE1C,yBAAyB;AACzB,MAAM,CAAC,MAAM,YAAY,GAAG,YAAY,CAAC;IACvC,EAAE,EAAE,QAAQ;IACZ,KAAK,EAAE,YAAY;IACnB,WAAW,EAAE,KAAK,IAAI,EAAE,CAAC,IAAI,CAAC,MAAM,MAAM,CAAC,iCAAiC,CAAC,CAAC,CAAC,eAAe,EAAE;CACjG,CAAC,CAAC"}
1
+ {"version":3,"file":"definition.js","sourceRoot":"","sources":["../../../src/runners/claude/definition.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,MAAM,iCAAiC,CAAC;AAC/D,OAAO,EAAE,YAAY,EAAE,MAAM,YAAY,CAAC;AAC1C,OAAO,EAAE,aAAa,EAAE,MAAM,aAAa,CAAC;AAC5C,OAAO,EAAE,mBAAmB,EAAE,MAAM,mBAAmB,CAAC;AACxD,OAAO,EAAE,kBAAkB,EAAE,MAAM,kBAAkB,CAAC;AAEtD,yBAAyB;AACzB,MAAM,CAAC,MAAM,YAAY,GAAG,YAAY,CAAC;IACvC,EAAE,EAAE,QAAQ;IACZ,KAAK,EAAE,YAAY;IACnB,WAAW,EAAE,KAAK,IAAI,EAAE,CAAC,IAAI,CAAC,MAAM,MAAM,CAAC,iCAAiC,CAAC,CAAC,CAAC,eAAe,EAAE;IAChG,MAAM,EAAE;QACN,GAAG,aAAa;QAChB,YAAY,EAAE,KAAK,IAAI,EAAE,CAAC,CAAC,MAAM,MAAM,CAAC,6CAA6C,CAAC,CAAC,CAAC,2BAA2B;KACpH;IACD,gBAAgB,EAAE,KAAK,IAAI,EAAE,CAAC,CAAC,MAAM,MAAM,CAAC,oCAAoC,CAAC,CAAC,CAAC,oBAAoB;IACvG,gBAAgB,EAAE,KAAK,IAAI,EAAE,CAAC,CAAC,MAAM,MAAM,CAAC,oCAAoC,CAAC,CAAC,CAAC,oBAAoB;IACvG,WAAW,EAAE,mBAAmB;IAChC,UAAU,EAAE,kBAAkB;CAC/B,CAAC,CAAC"}
@@ -0,0 +1,3 @@
1
+ /** The Claude 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 CLAUDE_EXTRA_TOOLS: readonly string[];
@@ -0,0 +1,4 @@
1
+ /** The Claude 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 CLAUDE_EXTRA_TOOLS = [];
4
+ //# sourceMappingURL=extra-tools.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"extra-tools.js","sourceRoot":"","sources":["../../../src/runners/claude/extra-tools.ts"],"names":[],"mappings":"AAAA;8DAC8D;AAC9D,MAAM,CAAC,MAAM,kBAAkB,GAAsB,EAAE,CAAC"}
@@ -0,0 +1,3 @@
1
+ import type { RunnerModelData } from '../../core/runner-definition.ts';
2
+ /** The Claude runner's model data. Data only: importing it loads no adapter. */
3
+ export declare const CLAUDE_MODELS: RunnerModelData;
@@ -0,0 +1,16 @@
1
+ /** The Claude runner's model data. Data only: importing it loads no adapter. */
2
+ export const CLAUDE_MODELS = {
3
+ known: [
4
+ 'opus',
5
+ 'sonnet',
6
+ 'haiku',
7
+ 'claude-fable-5',
8
+ 'claude-opus-4-8',
9
+ 'claude-sonnet-5',
10
+ 'claude-haiku-4-5',
11
+ ],
12
+ // Claude Code supports custom/gateway model ids such as DeepSeek via an
13
+ // Anthropic-compatible endpoint, so preserve an explicit provider/model.
14
+ idMap: { defaultProvider: 'anthropic', allowExplicitProvider: true, wireProviderQualified: true },
15
+ };
16
+ //# sourceMappingURL=models.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"models.js","sourceRoot":"","sources":["../../../src/runners/claude/models.ts"],"names":[],"mappings":"AAEA,gFAAgF;AAChF,MAAM,CAAC,MAAM,aAAa,GAAoB;IAC5C,KAAK,EAAE;QACL,MAAM;QACN,QAAQ;QACR,OAAO;QACP,gBAAgB;QAChB,iBAAiB;QACjB,iBAAiB;QACjB,kBAAkB;KACnB;IACD,wEAAwE;IACxE,yEAAyE;IACzE,KAAK,EAAE,EAAE,eAAe,EAAE,WAAW,EAAE,qBAAqB,EAAE,IAAI,EAAE,qBAAqB,EAAE,IAAI,EAAE;CAClG,CAAC"}
@@ -0,0 +1,7 @@
1
+ import type { ConfigFileDef } from '../../core/runner-config-files.ts';
2
+ /**
3
+ * The Codex 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 CODEX_CONFIG_FILES: readonly ConfigFileDef[];
@@ -0,0 +1,58 @@
1
+ import { join } from 'node:path';
2
+ import { PROJECT_AGENTS_FILE } from '../project-agents-file.js';
3
+ const CODEX_CONFIG_DOCS = 'https://developers.openai.com/codex/config-reference';
4
+ const CODEX_AGENTS_DOCS = 'https://developers.openai.com/codex/guides/agents-md';
5
+ /**
6
+ * The Codex 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 CODEX_CONFIG_FILES = [
11
+ // ---- Codex ----
12
+ {
13
+ id: 'codex.user.config',
14
+ runners: ['codex'],
15
+ kind: 'settings',
16
+ scope: 'user',
17
+ resolve: (_repo, home) => join(home.codex, 'config.toml'),
18
+ label: '~/.codex/config.toml',
19
+ format: 'toml',
20
+ tracked: 'outside-repo',
21
+ holdsMcp: true,
22
+ modelKey: 'model',
23
+ modelProviderKey: 'model_provider',
24
+ modelPriority: 1,
25
+ precedence: 'User-level defaults. A trusted project’s .codex/config.toml overrides these; some keys (provider, auth, telemetry) cannot be overridden at project scope. MCP servers live here under [mcp_servers.<id>].',
26
+ docsUrl: CODEX_CONFIG_DOCS,
27
+ },
28
+ {
29
+ id: 'codex.project.config',
30
+ runners: ['codex'],
31
+ kind: 'settings',
32
+ scope: 'project',
33
+ resolve: (repo) => join(repo, '.codex', 'config.toml'),
34
+ label: '.codex/config.toml',
35
+ format: 'toml',
36
+ tracked: 'tracked',
37
+ modelKey: 'model',
38
+ modelPriority: 2,
39
+ holdsMcp: true,
40
+ precedence: 'Applies only in projects you have trusted. Some keys (provider, auth, telemetry) cannot be overridden here. MCP servers go under [mcp_servers.<id>]. Runs read the committed copy.',
41
+ docsUrl: CODEX_CONFIG_DOCS,
42
+ },
43
+ {
44
+ id: 'codex.user.memory',
45
+ runners: ['codex'],
46
+ kind: 'memory',
47
+ scope: 'user',
48
+ resolve: (_repo, home) => join(home.codex, 'AGENTS.md'),
49
+ label: '~/.codex/AGENTS.md',
50
+ format: 'markdown',
51
+ tracked: 'outside-repo',
52
+ precedence: 'Global instructions, read first (an AGENTS.override.md beside it wins if present). Project AGENTS.md files are concatenated after and override it.',
53
+ docsUrl: CODEX_AGENTS_DOCS,
54
+ },
55
+ // <repo>/AGENTS.md, shared with Codex, OpenCode, Pi and OMP: the catalog lists it once.
56
+ PROJECT_AGENTS_FILE,
57
+ ];
58
+ //# sourceMappingURL=config-files.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"config-files.js","sourceRoot":"","sources":["../../../src/runners/codex/config-files.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,IAAI,EAAE,MAAM,WAAW,CAAC;AAEjC,OAAO,EAAE,mBAAmB,EAAE,MAAM,2BAA2B,CAAC;AAEhE,MAAM,iBAAiB,GAAG,sDAAsD,CAAC;AACjF,MAAM,iBAAiB,GAAG,sDAAsD,CAAC;AAEjF;;;;GAIG;AACH,MAAM,CAAC,MAAM,kBAAkB,GAA6B;IAC1D,kBAAkB;IAClB;QACE,EAAE,EAAE,mBAAmB;QACvB,OAAO,EAAE,CAAC,OAAO,CAAC;QAClB,IAAI,EAAE,UAAU;QAChB,KAAK,EAAE,MAAM;QACb,OAAO,EAAE,CAAC,KAAK,EAAE,IAAI,EAAE,EAAE,CAAC,IAAI,CAAC,IAAI,CAAC,KAAK,EAAE,aAAa,CAAC;QACzD,KAAK,EAAE,sBAAsB;QAC7B,MAAM,EAAE,MAAM;QACd,OAAO,EAAE,cAAc;QACvB,QAAQ,EAAE,IAAI;QACd,QAAQ,EAAE,OAAO;QACjB,gBAAgB,EAAE,gBAAgB;QAClC,aAAa,EAAE,CAAC;QAChB,UAAU,EACR,2MAA2M;QAC7M,OAAO,EAAE,iBAAiB;KAC3B;IACD;QACE,EAAE,EAAE,sBAAsB;QAC1B,OAAO,EAAE,CAAC,OAAO,CAAC;QAClB,IAAI,EAAE,UAAU;QAChB,KAAK,EAAE,SAAS;QAChB,OAAO,EAAE,CAAC,IAAI,EAAE,EAAE,CAAC,IAAI,CAAC,IAAI,EAAE,QAAQ,EAAE,aAAa,CAAC;QACtD,KAAK,EAAE,oBAAoB;QAC3B,MAAM,EAAE,MAAM;QACd,OAAO,EAAE,SAAS;QAClB,QAAQ,EAAE,OAAO;QACjB,aAAa,EAAE,CAAC;QAChB,QAAQ,EAAE,IAAI;QACd,UAAU,EACR,oLAAoL;QACtL,OAAO,EAAE,iBAAiB;KAC3B;IACD;QACE,EAAE,EAAE,mBAAmB;QACvB,OAAO,EAAE,CAAC,OAAO,CAAC;QAClB,IAAI,EAAE,QAAQ;QACd,KAAK,EAAE,MAAM;QACb,OAAO,EAAE,CAAC,KAAK,EAAE,IAAI,EAAE,EAAE,CAAC,IAAI,CAAC,IAAI,CAAC,KAAK,EAAE,WAAW,CAAC;QACvD,KAAK,EAAE,oBAAoB;QAC3B,MAAM,EAAE,UAAU;QAClB,OAAO,EAAE,cAAc;QACvB,UAAU,EACR,oJAAoJ;QACtJ,OAAO,EAAE,iBAAiB;KAC3B;IAED,wFAAwF;IACxF,mBAAmB;CACpB,CAAC"}
@@ -1,9 +1,20 @@
1
1
  import { defineRunner } from '../../core/runner-definition.js';
2
2
  import { CODEX_FACTS } from './facts.js';
3
+ import { CODEX_MODELS } from './models.js';
4
+ import { CODEX_CONFIG_FILES } from './config-files.js';
5
+ import { CODEX_EXTRA_TOOLS } from './extra-tools.js';
3
6
  /** The Codex runner. */
4
7
  export const codexRunner = defineRunner({
5
8
  id: 'codex',
6
9
  facts: CODEX_FACTS,
7
10
  loadAdapter: async () => new (await import('../../core/codex-app-server-runner.js')).CodexAppServerRunner(),
11
+ models: {
12
+ ...CODEX_MODELS,
13
+ loadSettings: async () => (await import('../../agent-config/model-settings/codex.js')).codexModelSettingsStrategy,
14
+ },
15
+ loadModelCatalog: async () => (await import('../../core/codex-model-catalog.js')).discoverCodexModels,
16
+ loadSkillCatalog: async () => (await import('../../core/codex-skill-catalog.js')).discoverCodexSkills,
17
+ configFiles: CODEX_CONFIG_FILES,
18
+ extraTools: CODEX_EXTRA_TOOLS,
8
19
  });
9
20
  //# sourceMappingURL=definition.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"definition.js","sourceRoot":"","sources":["../../../src/runners/codex/definition.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,MAAM,iCAAiC,CAAC;AAC/D,OAAO,EAAE,WAAW,EAAE,MAAM,YAAY,CAAC;AAEzC,wBAAwB;AACxB,MAAM,CAAC,MAAM,WAAW,GAAG,YAAY,CAAC;IACtC,EAAE,EAAE,OAAO;IACX,KAAK,EAAE,WAAW;IAClB,WAAW,EAAE,KAAK,IAAI,EAAE,CAAC,IAAI,CAAC,MAAM,MAAM,CAAC,uCAAuC,CAAC,CAAC,CAAC,oBAAoB,EAAE;CAC5G,CAAC,CAAC"}
1
+ {"version":3,"file":"definition.js","sourceRoot":"","sources":["../../../src/runners/codex/definition.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,MAAM,iCAAiC,CAAC;AAC/D,OAAO,EAAE,WAAW,EAAE,MAAM,YAAY,CAAC;AACzC,OAAO,EAAE,YAAY,EAAE,MAAM,aAAa,CAAC;AAC3C,OAAO,EAAE,kBAAkB,EAAE,MAAM,mBAAmB,CAAC;AACvD,OAAO,EAAE,iBAAiB,EAAE,MAAM,kBAAkB,CAAC;AAErD,wBAAwB;AACxB,MAAM,CAAC,MAAM,WAAW,GAAG,YAAY,CAAC;IACtC,EAAE,EAAE,OAAO;IACX,KAAK,EAAE,WAAW;IAClB,WAAW,EAAE,KAAK,IAAI,EAAE,CAAC,IAAI,CAAC,MAAM,MAAM,CAAC,uCAAuC,CAAC,CAAC,CAAC,oBAAoB,EAAE;IAC3G,MAAM,EAAE;QACN,GAAG,YAAY;QACf,YAAY,EAAE,KAAK,IAAI,EAAE,CAAC,CAAC,MAAM,MAAM,CAAC,4CAA4C,CAAC,CAAC,CAAC,0BAA0B;KAClH;IACD,gBAAgB,EAAE,KAAK,IAAI,EAAE,CAAC,CAAC,MAAM,MAAM,CAAC,mCAAmC,CAAC,CAAC,CAAC,mBAAmB;IACrG,gBAAgB,EAAE,KAAK,IAAI,EAAE,CAAC,CAAC,MAAM,MAAM,CAAC,mCAAmC,CAAC,CAAC,CAAC,mBAAmB;IACrG,WAAW,EAAE,kBAAkB;IAC/B,UAAU,EAAE,iBAAiB;CAC9B,CAAC,CAAC"}
@@ -0,0 +1,3 @@
1
+ /** The Codex 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 CODEX_EXTRA_TOOLS: readonly string[];
@@ -0,0 +1,4 @@
1
+ /** The Codex 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 CODEX_EXTRA_TOOLS = [];
4
+ //# sourceMappingURL=extra-tools.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"extra-tools.js","sourceRoot":"","sources":["../../../src/runners/codex/extra-tools.ts"],"names":[],"mappings":"AAAA;8DAC8D;AAC9D,MAAM,CAAC,MAAM,iBAAiB,GAAsB,EAAE,CAAC"}
@@ -0,0 +1,3 @@
1
+ import type { RunnerModelData } from '../../core/runner-definition.ts';
2
+ /** The Codex runner's model data. Data only: importing it loads no adapter. */
3
+ export declare const CODEX_MODELS: RunnerModelData;
@@ -0,0 +1,9 @@
1
+ /** The Codex runner's model data. Data only: importing it loads no adapter. */
2
+ export const CODEX_MODELS = {
3
+ known: ['gpt-5.1-codex', 'gpt-5.1-codex-mini', 'gpt-5-codex'],
4
+ // Codex selects the provider from model_provider in config.toml. A foreign
5
+ // explicit prefix is accepted only when the caller proves it matches that
6
+ // effective setting; the provider is then stripped from the wire model id.
7
+ idMap: { defaultProvider: 'openai' },
8
+ };
9
+ //# sourceMappingURL=models.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"models.js","sourceRoot":"","sources":["../../../src/runners/codex/models.ts"],"names":[],"mappings":"AAEA,+EAA+E;AAC/E,MAAM,CAAC,MAAM,YAAY,GAAoB;IAC3C,KAAK,EAAE,CAAC,eAAe,EAAE,oBAAoB,EAAE,aAAa,CAAC;IAC7D,2EAA2E;IAC3E,0EAA0E;IAC1E,2EAA2E;IAC3E,KAAK,EAAE,EAAE,eAAe,EAAE,QAAQ,EAAE;CACrC,CAAC"}
@@ -0,0 +1,7 @@
1
+ import type { ConfigFileDef } from '../../core/runner-config-files.ts';
2
+ /**
3
+ * The OMP 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 OMP_CONFIG_FILES: readonly ConfigFileDef[];
@@ -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;QACE,EAAE,EAAE,mBAAmB;QACvB,OAAO,EAAE,CAAC,KAAK,CAAC;QAChB,IAAI,EAAE,UAAU;QAChB,KAAK,EAAE,MAAM;QACb,OAAO,EAAE,CAAC,KAAK,EAAE,IAAI,EAAE,EAAE,CAAC,IAAI,CAAC,IAAI,CAAC,GAAG,EAAE,YAAY,CAAC;QACtD,KAAK,EAAE,yBAAyB;QAChC,MAAM,EAAE,MAAM;QACd,OAAO,EAAE,cAAc;QACvB,UAAU;QACR,+CAA+C;QAC/C,6uBAA6uB;QAC/uB,OAAO,EAAE,eAAe;KACzB;IACD;QACE,EAAE,EAAE,sBAAsB;QAC1B,OAAO,EAAE,CAAC,KAAK,CAAC;QAChB,IAAI,EAAE,UAAU;QAChB,KAAK,EAAE,SAAS;QAChB,OAAO,EAAE,CAAC,IAAI,EAAE,EAAE,CAAC,IAAI,CAAC,IAAI,EAAE,MAAM,EAAE,YAAY,CAAC;QACnD,KAAK,EAAE,iBAAiB;QACxB,MAAM,EAAE,MAAM;QACd,OAAO,EAAE,SAAS;QAClB,UAAU,EACR,mOAAmO;QACrO,OAAO,EAAE,eAAe;KACzB;IACD;QACE,EAAE,EAAE,cAAc;QAClB,OAAO,EAAE,CAAC,KAAK,CAAC;QAChB,IAAI,EAAE,KAAK;QACX,KAAK,EAAE,MAAM;QACb,OAAO,EAAE,CAAC,KAAK,EAAE,IAAI,EAAE,EAAE,CAAC,IAAI,CAAC,IAAI,CAAC,GAAG,EAAE,UAAU,CAAC;QACpD,KAAK,EAAE,uBAAuB;QAC9B,MAAM,EAAE,MAAM;QACd,OAAO,EAAE,cAAc;QACvB,QAAQ,EAAE,IAAI;QACd,UAAU,EACR,6RAA6R;QAC/R,OAAO,EAAE,YAAY;KACtB;IACD;QACE,EAAE,EAAE,iBAAiB;QACrB,OAAO,EAAE,CAAC,KAAK,CAAC;QAChB,IAAI,EAAE,KAAK;QACX,KAAK,EAAE,SAAS;QAChB,OAAO,EAAE,CAAC,IAAI,EAAE,EAAE,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,OAAO,EAAE,CAAC,UAAU,CAAC;QACrB,IAAI,EAAE,UAAU;QAChB,KAAK,EAAE,MAAM;QACb,OAAO,EAAE,CAAC,KAAK,EAAE,IAAI,EAAE,EAAE,CAAC,IAAI,CAAC,IAAI,CAAC,cAAc,EAAE,eAAe,CAAC;QACpE,KAAK,EAAE,kCAAkC;QACzC,MAAM,EAAE,OAAO;QACf,OAAO,EAAE,cAAc;QACvB,QAAQ,EAAE,IAAI;QACd,QAAQ,EAAE,OAAO;QACjB,aAAa,EAAE,CAAC;QAChB,UAAU,EACR,oKAAoK;QACtK,OAAO,EAAE,oBAAoB;KAC9B;IACD;QACE,EAAE,EAAE,yBAAyB;QAC7B,OAAO,EAAE,CAAC,UAAU,CAAC;QACrB,IAAI,EAAE,UAAU;QAChB,KAAK,EAAE,SAAS;QAChB,OAAO,EAAE,CAAC,IAAI,EAAE,EAAE,CAAC,IAAI,CAAC,IAAI,EAAE,eAAe,CAAC;QAC9C,KAAK,EAAE,eAAe;QACtB,MAAM,EAAE,OAAO;QACf,OAAO,EAAE,SAAS;QAClB,QAAQ,EAAE,IAAI;QACd,QAAQ,EAAE,OAAO;QACjB,aAAa,EAAE,CAAC;QAChB,UAAU,EACR,kJAAkJ;QACpJ,OAAO,EAAE,oBAAoB;KAC9B;IACD;QACE,EAAE,EAAE,sBAAsB;QAC1B,OAAO,EAAE,CAAC,UAAU,CAAC;QACrB,IAAI,EAAE,QAAQ;QACd,KAAK,EAAE,MAAM;QACb,OAAO,EAAE,CAAC,KAAK,EAAE,IAAI,EAAE,EAAE,CAAC,IAAI,CAAC,IAAI,CAAC,cAAc,EAAE,WAAW,CAAC;QAChE,KAAK,EAAE,8BAA8B;QACrC,MAAM,EAAE,UAAU;QAClB,OAAO,EAAE,cAAc;QACvB,UAAU,EACR,mHAAmH;QACrH,OAAO,EAAE,mBAAmB;KAC7B;IAED,wFAAwF;IACxF,mBAAmB;CACpB,CAAC"}
@@ -1,9 +1,20 @@
1
1
  import { defineRunner } from '../../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":"AAA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C,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