@hearsay-tools/squawk 0.18.0-dev.7444 → 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.
- package/dist/agent-config/catalog.d.ts +6 -60
- package/dist/agent-config/catalog.js +12 -337
- package/dist/agent-config/catalog.js.map +1 -1
- package/dist/agent-config/files.d.ts +1 -1
- package/dist/agent-config/files.js.map +1 -1
- package/dist/agent-config/model-settings/claude.d.ts +1 -1
- package/dist/agent-config/model-settings/codex.d.ts +1 -1
- package/dist/agent-config/model-settings/opencode.d.ts +1 -1
- package/dist/agent-config/model-settings/pi.d.ts +1 -1
- package/dist/agent-config/model-settings/shared.d.ts +1 -1
- package/dist/agent-config/model-settings/shared.js +2 -2
- package/dist/agent-config/model-settings/shared.js.map +1 -1
- package/dist/agent-config/models.d.ts +5 -1
- package/dist/agent-config/models.js +5 -19
- package/dist/agent-config/models.js.map +1 -1
- package/dist/agent-config/seed.js +2 -2
- package/dist/agent-config/seed.js.map +1 -1
- package/dist/agent-config/service.d.ts +1 -1
- package/dist/agent-config/service.js +2 -2
- package/dist/agent-config/service.js.map +1 -1
- package/dist/agent-config/validate.d.ts +1 -1
- package/dist/core/host-model-catalog.d.ts +2 -1
- package/dist/core/host-model-catalog.js +7 -13
- package/dist/core/host-model-catalog.js.map +1 -1
- package/dist/core/host-skill-catalog.d.ts +5 -2
- package/dist/core/host-skill-catalog.js +9 -12
- package/dist/core/host-skill-catalog.js.map +1 -1
- package/dist/core/model-identity.d.ts +9 -11
- package/dist/core/model-identity.js +12 -28
- package/dist/core/model-identity.js.map +1 -1
- package/dist/core/model-presets.d.ts +0 -5
- package/dist/core/model-presets.js +11 -30
- package/dist/core/model-presets.js.map +1 -1
- package/dist/core/opencode-minimal.js +1 -2
- package/dist/core/opencode-minimal.js.map +1 -1
- package/dist/core/opencode-runtime-config.d.ts +3 -0
- package/dist/core/opencode-runtime-config.js +11 -0
- package/dist/core/opencode-runtime-config.js.map +1 -1
- package/dist/core/pi-runner.js +1 -1
- package/dist/core/pi-runner.js.map +1 -1
- package/dist/core/runner-config-files.d.ts +60 -0
- package/dist/core/runner-config-files.js +2 -0
- package/dist/core/runner-config-files.js.map +1 -0
- package/dist/core/runner-definition.d.ts +33 -0
- package/dist/core/runner-definition.js.map +1 -1
- package/dist/{agent-config/model-settings/types.d.ts → core/runner-model-settings.d.ts} +3 -1
- package/dist/core/runner-model-settings.js +2 -0
- package/dist/core/runner-model-settings.js.map +1 -0
- package/dist/delegation/routes.d.ts +16 -16
- package/dist/delegation/transport.d.ts +9 -9
- package/dist/paths.d.ts +1 -1
- package/dist/runners/claude/config-files.d.ts +7 -0
- package/dist/runners/claude/config-files.js +112 -0
- package/dist/runners/claude/config-files.js.map +1 -0
- package/dist/runners/claude/definition.js +11 -0
- package/dist/runners/claude/definition.js.map +1 -1
- package/dist/runners/claude/extra-tools.d.ts +3 -0
- package/dist/runners/claude/extra-tools.js +4 -0
- package/dist/runners/claude/extra-tools.js.map +1 -0
- package/dist/runners/claude/models.d.ts +3 -0
- package/dist/runners/claude/models.js +16 -0
- package/dist/runners/claude/models.js.map +1 -0
- package/dist/runners/codex/config-files.d.ts +7 -0
- package/dist/runners/codex/config-files.js +58 -0
- package/dist/runners/codex/config-files.js.map +1 -0
- package/dist/runners/codex/definition.js +11 -0
- package/dist/runners/codex/definition.js.map +1 -1
- package/dist/runners/codex/extra-tools.d.ts +3 -0
- package/dist/runners/codex/extra-tools.js +4 -0
- package/dist/runners/codex/extra-tools.js.map +1 -0
- package/dist/runners/codex/models.d.ts +3 -0
- package/dist/runners/codex/models.js +9 -0
- package/dist/runners/codex/models.js.map +1 -0
- package/dist/runners/omp/config-files.d.ts +7 -0
- package/dist/runners/omp/config-files.js +87 -0
- package/dist/runners/omp/config-files.js.map +1 -0
- package/dist/runners/omp/definition.js +14 -0
- package/dist/runners/omp/definition.js.map +1 -1
- package/dist/runners/omp/extra-tools.d.ts +3 -0
- package/dist/runners/omp/extra-tools.js +6 -0
- package/dist/runners/omp/extra-tools.js.map +1 -0
- package/dist/runners/omp/models.d.ts +3 -0
- package/dist/runners/omp/models.js +9 -0
- package/dist/runners/omp/models.js.map +1 -0
- package/dist/runners/opencode/config-files.d.ts +7 -0
- package/dist/runners/opencode/config-files.js +57 -0
- package/dist/runners/opencode/config-files.js.map +1 -0
- package/dist/runners/opencode/definition.js +11 -0
- package/dist/runners/opencode/definition.js.map +1 -1
- package/dist/runners/opencode/extra-tools.d.ts +3 -0
- package/dist/runners/opencode/extra-tools.js +4 -0
- package/dist/runners/opencode/extra-tools.js.map +1 -0
- package/dist/runners/opencode/models.d.ts +3 -0
- package/dist/runners/opencode/models.js +8 -0
- package/dist/runners/opencode/models.js.map +1 -0
- package/dist/runners/pi/config-files.d.ts +7 -0
- package/dist/runners/pi/config-files.js +59 -0
- package/dist/runners/pi/config-files.js.map +1 -0
- package/dist/runners/pi/definition.js +11 -0
- package/dist/runners/pi/definition.js.map +1 -1
- package/dist/runners/pi/extra-tools.d.ts +3 -0
- package/dist/runners/pi/extra-tools.js +7 -0
- package/dist/runners/pi/extra-tools.js.map +1 -0
- package/dist/runners/pi/models.d.ts +3 -0
- package/dist/runners/pi/models.js +15 -0
- package/dist/runners/pi/models.js.map +1 -0
- package/dist/runners/project-agents-file.d.ts +6 -0
- package/dist/runners/project-agents-file.js +19 -0
- package/dist/runners/project-agents-file.js.map +1 -0
- package/dist/server/server.d.ts +254 -254
- package/dist/workflows/types.d.ts +1 -5
- package/dist/workflows/types.js +4 -15
- package/dist/workflows/types.js.map +1 -1
- package/package.json +4 -4
- package/dist/agent-config/model-settings/types.js +0 -2
- package/dist/agent-config/model-settings/types.js.map +0 -1
- package/dist/ci-wait/injection.d.ts +0 -3
- package/dist/ci-wait/injection.js +0 -13
- package/dist/ci-wait/injection.js.map +0 -1
|
@@ -0,0 +1,60 @@
|
|
|
1
|
+
import type { RunnerId } from './agent-runner.ts';
|
|
2
|
+
/**
|
|
3
|
+
* The shape of one native config file that Settings → Agent config shows. Each runner's
|
|
4
|
+
* definition lists its files in `configFiles` (`runners/<id>/config-files.ts`), and
|
|
5
|
+
* `agent-config/catalog.ts` reads them from the registry. Paths, formats, precedence
|
|
6
|
+
* descriptions and documentation URLs are maintained by hand; unknown files are not guessed.
|
|
7
|
+
*/
|
|
8
|
+
export type ConfigFormat = 'json' | 'jsonc' | 'toml' | 'yaml' | 'markdown';
|
|
9
|
+
export type ConfigScope = 'user' | 'project' | 'local';
|
|
10
|
+
/** `settings` = behavior knobs; `memory` = instruction/markdown; `mcp` = a dedicated MCP file. */
|
|
11
|
+
export type ConfigKind = 'settings' | 'memory' | 'mcp';
|
|
12
|
+
/**
|
|
13
|
+
* Git status *by convention* — it drives the honest label, it is not read from
|
|
14
|
+
* git. The seed path re-checks with `git check-ignore` before trusting it.
|
|
15
|
+
*/
|
|
16
|
+
export type ConfigTracked = 'tracked' | 'gitignored' | 'outside-repo';
|
|
17
|
+
/** Resolved home directories per agent, injected so the catalog stays pure and testable. */
|
|
18
|
+
export interface AgentHomePaths {
|
|
19
|
+
/** `~/.claude` */
|
|
20
|
+
claude: string;
|
|
21
|
+
/** `$CODEX_HOME` or `~/.codex` */
|
|
22
|
+
codex: string;
|
|
23
|
+
/** `$XDG_CONFIG_HOME/opencode` or `~/.config/opencode` */
|
|
24
|
+
opencodeConfig: string;
|
|
25
|
+
/** `$PI_CODING_AGENT_DIR` or `~/.pi/agent` */
|
|
26
|
+
pi: string;
|
|
27
|
+
/** `$PI_CODING_AGENT_DIR` or `~/${PI_CONFIG_DIR || '.omp'}/agent` — OMP's default profile. */
|
|
28
|
+
omp: string;
|
|
29
|
+
}
|
|
30
|
+
export interface ConfigFileDef {
|
|
31
|
+
/** Stable, opaque, URL-safe. The ONLY thing a client may name (traversal-proof). */
|
|
32
|
+
id: string;
|
|
33
|
+
/** Every runner that reads this file. `<repo>/AGENTS.md` is one file, two readers. */
|
|
34
|
+
runners: RunnerId[];
|
|
35
|
+
kind: ConfigKind;
|
|
36
|
+
scope: ConfigScope;
|
|
37
|
+
/** Absolute path, resolved per request so `$CODEX_HOME`/`$XDG_CONFIG_HOME` are honoured. */
|
|
38
|
+
resolve: (repoRoot: string, home: AgentHomePaths) => string;
|
|
39
|
+
/** What the user sees, e.g. `~/.claude/settings.json`, `.claude/settings.local.json`. */
|
|
40
|
+
label: string;
|
|
41
|
+
format: ConfigFormat;
|
|
42
|
+
tracked: ConfigTracked;
|
|
43
|
+
/** True only for Claude's gitignored personal layer — the files seeded into a run's worktree. */
|
|
44
|
+
seeded?: boolean;
|
|
45
|
+
/** True when this file holds MCP server definitions (drives the MCP section's filter). */
|
|
46
|
+
holdsMcp?: boolean;
|
|
47
|
+
/** Top-level native setting that supplies the agent's new-session model, when present. */
|
|
48
|
+
modelKey?: string;
|
|
49
|
+
/** Native model keys checked in precedence order, including nested `env.*` settings. */
|
|
50
|
+
modelKeys?: readonly string[];
|
|
51
|
+
/** Native provider key paired with the model, when the vendor separates the two. */
|
|
52
|
+
modelProviderKey?: string;
|
|
53
|
+
/** Higher values win when resolving a native default model across config scopes. */
|
|
54
|
+
modelPriority?: number;
|
|
55
|
+
/** VERBATIM from the vendor docs. Never computed, never generic. */
|
|
56
|
+
precedence: string;
|
|
57
|
+
/** Documented mid-run reload behaviour, or undefined when the vendor is silent. */
|
|
58
|
+
hotReload?: string;
|
|
59
|
+
docsUrl: string;
|
|
60
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"runner-config-files.js","sourceRoot":"","sources":["../../src/core/runner-config-files.ts"],"names":[],"mappings":""}
|
|
@@ -1,5 +1,11 @@
|
|
|
1
1
|
import type { AgentRunner, RunnerId } from './agent-runner.ts';
|
|
2
2
|
import type { RunnerFacts } from './runner-facts.ts';
|
|
3
|
+
import type { BackendModelMap } from './model-identity.ts';
|
|
4
|
+
import type { AgentModelSettingsStrategy } from './runner-model-settings.ts';
|
|
5
|
+
import type { ModelOption } from './runner-model-catalog.ts';
|
|
6
|
+
import type { SkillCatalog } from './runner-skill-catalog.ts';
|
|
7
|
+
import type { SkillDiscoveryOptions } from './skill-probe.ts';
|
|
8
|
+
import type { ConfigFileDef } from './runner-config-files.ts';
|
|
3
9
|
/**
|
|
4
10
|
* Everything Squawk knows about one runner, in one object (spec 2026-11-18-runner-definitions).
|
|
5
11
|
* Each runner's `runners/<id>/definition.ts` exports one, made with `defineRunner`, and an entry
|
|
@@ -14,6 +20,33 @@ export interface RunnerDefinition {
|
|
|
14
20
|
readonly facts: RunnerFacts;
|
|
15
21
|
/** Imports the adapter module and builds a new runner. */
|
|
16
22
|
loadAdapter(): Promise<AgentRunner>;
|
|
23
|
+
/** The model presets, the model id map and the reader of the native default model. */
|
|
24
|
+
readonly models: RunnerModels;
|
|
25
|
+
/** Imports the runner's model catalog adapter, which lists the models its CLI offers. */
|
|
26
|
+
loadModelCatalog(): Promise<(options: {
|
|
27
|
+
cwd: string;
|
|
28
|
+
}) => Promise<ModelOption[]>>;
|
|
29
|
+
/** Imports the runner's skill list adapter, which lists the skills its CLI sees. */
|
|
30
|
+
loadSkillCatalog(): Promise<(options: SkillDiscoveryOptions) => Promise<SkillCatalog>>;
|
|
31
|
+
/** The native config files that Settings → Agent config shows, in presentation order. */
|
|
32
|
+
readonly configFiles: readonly ConfigFileDef[];
|
|
33
|
+
/** Extra tools unioned onto the default when a step does not set allowedTools. */
|
|
34
|
+
readonly extraTools: readonly string[];
|
|
35
|
+
}
|
|
36
|
+
/** A runner's model data: plain data in `runners/<id>/models.ts`. */
|
|
37
|
+
export interface RunnerModelData {
|
|
38
|
+
/**
|
|
39
|
+
* Known preset ids, for mismatch checks (`core/model-presets.ts`). This is not a whitelist:
|
|
40
|
+
* unknown custom ids remain valid. OpenCode uses native discovery plus a structural guard.
|
|
41
|
+
*/
|
|
42
|
+
readonly known: readonly string[];
|
|
43
|
+
/** How a model id maps to a provider and to the wire (`core/model-identity.ts`). */
|
|
44
|
+
readonly idMap: BackendModelMap;
|
|
45
|
+
}
|
|
46
|
+
/** A runner's `models` part: its model data and the reader of its native default model. */
|
|
47
|
+
export interface RunnerModels extends RunnerModelData {
|
|
48
|
+
/** Imports the runner's native-settings policy: vendor precedence, environment and provider. */
|
|
49
|
+
loadSettings(): Promise<AgentModelSettingsStrategy>;
|
|
17
50
|
}
|
|
18
51
|
/** Declare one runner. */
|
|
19
52
|
export declare function defineRunner(definition: RunnerDefinition): RunnerDefinition;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"runner-definition.js","sourceRoot":"","sources":["../../src/core/runner-definition.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"runner-definition.js","sourceRoot":"","sources":["../../src/core/runner-definition.ts"],"names":[],"mappings":"AAsDA,0BAA0B;AAC1B,MAAM,UAAU,YAAY,CAAC,UAA4B;IACvD,OAAO,UAAU,CAAC;AACpB,CAAC"}
|
|
@@ -1,8 +1,10 @@
|
|
|
1
|
-
import type { RunnerId } from '
|
|
1
|
+
import type { RunnerId } from './agent-runner.ts';
|
|
2
|
+
/** The model and provider a runner's own settings files name for a new session. */
|
|
2
3
|
export interface AgentModelSettings {
|
|
3
4
|
model?: string | undefined;
|
|
4
5
|
provider?: string;
|
|
5
6
|
}
|
|
7
|
+
/** How one runner reads its native default model (`models.loadSettings` in its definition). */
|
|
6
8
|
export interface AgentModelSettingsStrategy {
|
|
7
9
|
readonly runner: RunnerId;
|
|
8
10
|
read(repoRoot: string, env: NodeJS.ProcessEnv): Promise<AgentModelSettings>;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"runner-model-settings.js","sourceRoot":"","sources":["../../src/core/runner-model-settings.ts"],"names":[],"mappings":""}
|
|
@@ -91,6 +91,18 @@ export declare function createDelegationRoutes(service: DelegationService, crede
|
|
|
91
91
|
"/discover": {
|
|
92
92
|
$post: {
|
|
93
93
|
output: {
|
|
94
|
+
tasks: {
|
|
95
|
+
id: string;
|
|
96
|
+
title: string;
|
|
97
|
+
runner?: "claude" | "codex" | "omp" | "opencode" | "pi" | undefined;
|
|
98
|
+
status: "cancelled" | "done" | "failed" | "queued" | "review" | "running" | "waiting";
|
|
99
|
+
attention: "error" | "none" | "permission" | "running" | "unseen" | "waiting";
|
|
100
|
+
attentionLabel: string;
|
|
101
|
+
accepts: boolean;
|
|
102
|
+
reason?: string | undefined;
|
|
103
|
+
}[];
|
|
104
|
+
nextOffset?: number | undefined;
|
|
105
|
+
} | {
|
|
94
106
|
scope: "host-default-account";
|
|
95
107
|
runners: {
|
|
96
108
|
status: "connected" | "disconnected" | "not-installed" | "unknown";
|
|
@@ -110,18 +122,6 @@ export declare function createDelegationRoutes(service: DelegationService, crede
|
|
|
110
122
|
source: "cache" | "live" | "unavailable";
|
|
111
123
|
stale: boolean;
|
|
112
124
|
reason?: string | undefined;
|
|
113
|
-
} | {
|
|
114
|
-
tasks: {
|
|
115
|
-
id: string;
|
|
116
|
-
title: string;
|
|
117
|
-
runner?: "claude" | "codex" | "omp" | "opencode" | "pi" | undefined;
|
|
118
|
-
status: "cancelled" | "done" | "failed" | "queued" | "review" | "running" | "waiting";
|
|
119
|
-
attention: "error" | "none" | "permission" | "running" | "unseen" | "waiting";
|
|
120
|
-
attentionLabel: string;
|
|
121
|
-
accepts: boolean;
|
|
122
|
-
reason?: string | undefined;
|
|
123
|
-
}[];
|
|
124
|
-
nextOffset?: number | undefined;
|
|
125
125
|
};
|
|
126
126
|
outputFormat: "json";
|
|
127
127
|
status: 200;
|
|
@@ -231,13 +231,13 @@ export declare function createDelegationRoutes(service: DelegationService, crede
|
|
|
231
231
|
status: 200;
|
|
232
232
|
input: {
|
|
233
233
|
json: {
|
|
234
|
-
workerIds: string[];
|
|
235
|
-
timeoutSeconds?: number | undefined;
|
|
236
|
-
mode?: "all" | "any" | "one" | undefined;
|
|
237
|
-
} | {
|
|
238
234
|
requestIds: string[];
|
|
239
235
|
mode?: "all" | "any" | "one" | undefined;
|
|
240
236
|
timeoutSeconds?: number | undefined;
|
|
237
|
+
} | {
|
|
238
|
+
workerIds: string[];
|
|
239
|
+
timeoutSeconds?: number | undefined;
|
|
240
|
+
mode?: "all" | "any" | "one" | undefined;
|
|
241
241
|
} | {
|
|
242
242
|
peerIds: string[];
|
|
243
243
|
timeoutSeconds?: number | undefined;
|
|
@@ -76,6 +76,15 @@ export declare function createDelegationApp(routes: DelegationRoutes): import("h
|
|
|
76
76
|
source: "cache" | "live" | "unavailable";
|
|
77
77
|
stale: boolean;
|
|
78
78
|
reason?: string | undefined;
|
|
79
|
+
} | {
|
|
80
|
+
scope: "host-default-account";
|
|
81
|
+
runners: {
|
|
82
|
+
status: "connected" | "disconnected" | "not-installed" | "unknown";
|
|
83
|
+
enabled?: boolean | undefined;
|
|
84
|
+
hint?: string | undefined;
|
|
85
|
+
authFailureId?: string | undefined;
|
|
86
|
+
runner: "claude" | "codex" | "omp" | "opencode" | "pi";
|
|
87
|
+
}[];
|
|
79
88
|
} | {
|
|
80
89
|
tasks: {
|
|
81
90
|
id: string;
|
|
@@ -88,15 +97,6 @@ export declare function createDelegationApp(routes: DelegationRoutes): import("h
|
|
|
88
97
|
reason?: string | undefined;
|
|
89
98
|
}[];
|
|
90
99
|
nextOffset?: number | undefined;
|
|
91
|
-
} | {
|
|
92
|
-
scope: "host-default-account";
|
|
93
|
-
runners: {
|
|
94
|
-
status: "connected" | "disconnected" | "not-installed" | "unknown";
|
|
95
|
-
enabled?: boolean | undefined;
|
|
96
|
-
hint?: string | undefined;
|
|
97
|
-
authFailureId?: string | undefined;
|
|
98
|
-
runner: "claude" | "codex" | "omp" | "opencode" | "pi";
|
|
99
|
-
}[];
|
|
100
100
|
};
|
|
101
101
|
outputFormat: "json";
|
|
102
102
|
status: 200;
|
package/dist/paths.d.ts
CHANGED
|
@@ -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":"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"}
|
|
@@ -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;
|
|
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 @@
|
|
|
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,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;
|
|
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 @@
|
|
|
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,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[];
|