@hearsay-tools/squawk 0.18.0-dev.7621 → 0.18.0-dev.7627
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 +3 -3
- package/dist/agent-config/catalog.js +13 -5
- package/dist/agent-config/catalog.js.map +1 -1
- package/dist/agent-config/service.d.ts +5 -2
- package/dist/agent-config/service.js +9 -3
- package/dist/agent-config/service.js.map +1 -1
- package/dist/ci-wait/controller.d.ts +4 -4
- package/dist/core/runner-config-files.d.ts +17 -16
- package/dist/core/runner-config-files.js +7 -1
- package/dist/core/runner-config-files.js.map +1 -1
- package/dist/core/runner-definition.d.ts +19 -10
- package/dist/core/runner-definition.js.map +1 -1
- package/dist/delegation/execution-identity.js +3 -3
- package/dist/delegation/execution-identity.js.map +1 -1
- package/dist/delegation/routes.d.ts +76 -76
- package/dist/delegation/transport.d.ts +16 -16
- package/dist/paths.d.ts +5 -10
- package/dist/paths.js +28 -50
- package/dist/paths.js.map +1 -1
- package/dist/runners/claude/accounts.d.ts +1 -1
- package/dist/runners/claude/accounts.js +1 -1
- package/dist/runners/claude/accounts.js.map +1 -1
- package/dist/runners/claude/config-files.d.ts +2 -2
- package/dist/runners/claude/config-files.js +5 -9
- package/dist/runners/claude/config-files.js.map +1 -1
- package/dist/runners/claude/definition.js +6 -1
- package/dist/runners/claude/definition.js.map +1 -1
- package/dist/runners/codex/accounts.d.ts +1 -1
- package/dist/runners/codex/accounts.js +1 -1
- package/dist/runners/codex/accounts.js.map +1 -1
- package/dist/runners/codex/config-files.d.ts +2 -2
- package/dist/runners/codex/config-files.js +5 -5
- package/dist/runners/codex/config-files.js.map +1 -1
- package/dist/runners/codex/definition.js +6 -1
- package/dist/runners/codex/definition.js.map +1 -1
- package/dist/runners/omp/accounts.d.ts +1 -1
- package/dist/runners/omp/accounts.js +1 -1
- package/dist/runners/omp/accounts.js.map +1 -1
- package/dist/runners/omp/agent-dir.d.ts +13 -0
- package/dist/runners/omp/agent-dir.js +33 -0
- package/dist/runners/omp/agent-dir.js.map +1 -0
- package/dist/runners/omp/config-files.d.ts +2 -2
- package/dist/runners/omp/config-files.js +6 -8
- package/dist/runners/omp/config-files.js.map +1 -1
- package/dist/runners/omp/definition.js +2 -1
- package/dist/runners/omp/definition.js.map +1 -1
- package/dist/runners/opencode/accounts.d.ts +1 -1
- package/dist/runners/opencode/accounts.js +1 -1
- package/dist/runners/opencode/accounts.js.map +1 -1
- package/dist/runners/opencode/config-files.d.ts +2 -2
- package/dist/runners/opencode/config-files.js +5 -5
- package/dist/runners/opencode/config-files.js.map +1 -1
- package/dist/runners/opencode/definition.js +6 -1
- package/dist/runners/opencode/definition.js.map +1 -1
- package/dist/runners/pi/accounts.d.ts +1 -1
- package/dist/runners/pi/accounts.js +1 -1
- package/dist/runners/pi/accounts.js.map +1 -1
- package/dist/runners/pi/config-files.d.ts +2 -2
- package/dist/runners/pi/config-files.js +5 -5
- package/dist/runners/pi/config-files.js.map +1 -1
- package/dist/runners/pi/definition.js +6 -1
- package/dist/runners/pi/definition.js.map +1 -1
- package/dist/runners/project-agents-file.d.ts +4 -4
- package/dist/runners/project-agents-file.js +2 -3
- package/dist/runners/project-agents-file.js.map +1 -1
- package/dist/server/live-routes.d.ts +6 -6
- package/dist/server/reports-api.d.ts +2 -2
- package/dist/workspace/agent-profiles.d.ts +1 -1
- package/dist/workspace/agent-profiles.js +3 -4
- package/dist/workspace/agent-profiles.js.map +1 -1
- package/package.json +4 -4
|
@@ -66,6 +66,18 @@ export declare function createDelegationApp(routes: DelegationRoutes): import("h
|
|
|
66
66
|
"/discover": {
|
|
67
67
|
$post: {
|
|
68
68
|
output: {
|
|
69
|
+
tasks: {
|
|
70
|
+
id: string;
|
|
71
|
+
title: string;
|
|
72
|
+
runner?: string | undefined;
|
|
73
|
+
status: "cancelled" | "done" | "failed" | "queued" | "review" | "running" | "waiting";
|
|
74
|
+
attention: "error" | "none" | "permission" | "running" | "unseen" | "waiting";
|
|
75
|
+
attentionLabel: string;
|
|
76
|
+
accepts: boolean;
|
|
77
|
+
reason?: string | undefined;
|
|
78
|
+
}[];
|
|
79
|
+
nextOffset?: number | undefined;
|
|
80
|
+
} | {
|
|
69
81
|
scope: "host-default-account";
|
|
70
82
|
runners: {
|
|
71
83
|
status: "connected" | "disconnected" | "not-installed" | "unknown";
|
|
@@ -85,18 +97,6 @@ export declare function createDelegationApp(routes: DelegationRoutes): import("h
|
|
|
85
97
|
source: "cache" | "live" | "unavailable";
|
|
86
98
|
stale: boolean;
|
|
87
99
|
reason?: string | undefined;
|
|
88
|
-
} | {
|
|
89
|
-
tasks: {
|
|
90
|
-
id: string;
|
|
91
|
-
title: string;
|
|
92
|
-
runner?: string | undefined;
|
|
93
|
-
status: "cancelled" | "done" | "failed" | "queued" | "review" | "running" | "waiting";
|
|
94
|
-
attention: "error" | "none" | "permission" | "running" | "unseen" | "waiting";
|
|
95
|
-
attentionLabel: string;
|
|
96
|
-
accepts: boolean;
|
|
97
|
-
reason?: string | undefined;
|
|
98
|
-
}[];
|
|
99
|
-
nextOffset?: number | undefined;
|
|
100
100
|
};
|
|
101
101
|
outputFormat: "json";
|
|
102
102
|
status: 200;
|
|
@@ -206,13 +206,13 @@ export declare function createDelegationApp(routes: DelegationRoutes): import("h
|
|
|
206
206
|
status: 200;
|
|
207
207
|
input: {
|
|
208
208
|
json: {
|
|
209
|
-
workerIds: string[];
|
|
210
|
-
timeoutSeconds?: number | undefined;
|
|
211
|
-
mode?: "all" | "any" | "one" | undefined;
|
|
212
|
-
} | {
|
|
213
209
|
requestIds: string[];
|
|
214
210
|
mode?: "all" | "any" | "one" | undefined;
|
|
215
211
|
timeoutSeconds?: number | undefined;
|
|
212
|
+
} | {
|
|
213
|
+
workerIds: string[];
|
|
214
|
+
timeoutSeconds?: number | undefined;
|
|
215
|
+
mode?: "all" | "any" | "one" | undefined;
|
|
216
216
|
} | {
|
|
217
217
|
peerIds: string[];
|
|
218
218
|
timeoutSeconds?: number | undefined;
|
package/dist/paths.d.ts
CHANGED
|
@@ -70,23 +70,18 @@ export declare function expandTilde(path: string): string;
|
|
|
70
70
|
*/
|
|
71
71
|
export declare function serverLockPath(instance: string | undefined, home: Home): string;
|
|
72
72
|
/**
|
|
73
|
-
* Where each
|
|
74
|
-
*
|
|
75
|
-
*
|
|
76
|
-
* dir (falling back to `~/.config`); `$PI_CODING_AGENT_DIR` relocates Pi's agent dir
|
|
77
|
-
* (default `~/.pi/agent`); OMP reads that variable too unless `$OMP_PROFILE` selects a profile
|
|
78
|
-
* (`ompAgentDir`). Read per call so tests and ops can set env live.
|
|
73
|
+
* Where each registered runner keeps its per-user config, keyed by its `accounts.homeSlot`, in
|
|
74
|
+
* registration order. Each definition's `accounts.homeDir` honors the variables its vendor
|
|
75
|
+
* documents (`runners/<id>/definition.ts`). Read per call so tests and ops can set env live.
|
|
79
76
|
*
|
|
80
77
|
* These are the DEFAULT profile's dirs. A second login of the same CLI is an
|
|
81
78
|
* agent profile (`src/core/agent-profiles.ts`) and resolves through
|
|
82
79
|
* `agentHomePathsForProfiles` instead — what this function answers is what the
|
|
83
80
|
* host is configured for when nothing overrides it.
|
|
84
81
|
*/
|
|
85
|
-
/** The slot of `AgentHomePaths` that holds each provider's account home. Was the
|
|
86
|
-
* `AGENT_HOME_SLOT` table; the slot now lives in each definition's `accounts.homeSlot`
|
|
87
|
-
* (`runners/<id>/accounts.ts`), checked there against `keyof AgentHomePaths`. */
|
|
88
|
-
export declare function agentHomeSlot(provider: ProviderId): keyof AgentHomePaths;
|
|
89
82
|
export declare function agentHomePaths(env?: NodeJS.ProcessEnv): AgentHomePaths;
|
|
83
|
+
/** One provider's default home: the entry of `agentHomePaths()` in its definition's home slot. */
|
|
84
|
+
export declare function agentHomeDir(provider: ProviderId, env?: NodeJS.ProcessEnv): string;
|
|
90
85
|
/**
|
|
91
86
|
* Where Claude Code keeps `.claude.json` — its MCP/state file — for a given config dir. The
|
|
92
87
|
* location is NOT uniform: by default the file is a SIBLING of `~/.claude`, but under a
|
package/dist/paths.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { homedir } from 'node:os';
|
|
2
2
|
import { dirname, join } from 'node:path';
|
|
3
|
-
import { runnerDefinition } from './core/runner-registry.js';
|
|
3
|
+
import { registeredRunners, runnerDefinition } from './core/runner-registry.js';
|
|
4
4
|
import { assertOutsideAccountHome } from './home/protected-roots.js';
|
|
5
5
|
/**
|
|
6
6
|
* Test writers must never reach the account's real Squawk home. HOME can be a
|
|
@@ -100,65 +100,43 @@ export function serverLockPath(instance = DEFAULT_SERVER_INSTANCE, home) {
|
|
|
100
100
|
return home.serverLock(instance);
|
|
101
101
|
}
|
|
102
102
|
/**
|
|
103
|
-
* Where each
|
|
104
|
-
*
|
|
105
|
-
*
|
|
106
|
-
* dir (falling back to `~/.config`); `$PI_CODING_AGENT_DIR` relocates Pi's agent dir
|
|
107
|
-
* (default `~/.pi/agent`); OMP reads that variable too unless `$OMP_PROFILE` selects a profile
|
|
108
|
-
* (`ompAgentDir`). Read per call so tests and ops can set env live.
|
|
103
|
+
* Where each registered runner keeps its per-user config, keyed by its `accounts.homeSlot`, in
|
|
104
|
+
* registration order. Each definition's `accounts.homeDir` honors the variables its vendor
|
|
105
|
+
* documents (`runners/<id>/definition.ts`). Read per call so tests and ops can set env live.
|
|
109
106
|
*
|
|
110
107
|
* These are the DEFAULT profile's dirs. A second login of the same CLI is an
|
|
111
108
|
* agent profile (`src/core/agent-profiles.ts`) and resolves through
|
|
112
109
|
* `agentHomePathsForProfiles` instead — what this function answers is what the
|
|
113
110
|
* host is configured for when nothing overrides it.
|
|
114
111
|
*/
|
|
115
|
-
/** The slot of `AgentHomePaths` that holds each provider's account home. Was the
|
|
116
|
-
* `AGENT_HOME_SLOT` table; the slot now lives in each definition's `accounts.homeSlot`
|
|
117
|
-
* (`runners/<id>/accounts.ts`), checked there against `keyof AgentHomePaths`. */
|
|
118
|
-
export function agentHomeSlot(provider) {
|
|
119
|
-
return runnerDefinition(provider).accounts.homeSlot;
|
|
120
|
-
}
|
|
121
112
|
export function agentHomePaths(env = process.env) {
|
|
122
|
-
const
|
|
123
|
-
const
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
113
|
+
const userHome = agentUserHome(env);
|
|
114
|
+
const paths = {};
|
|
115
|
+
const owners = new Map();
|
|
116
|
+
for (const { id, accounts } of registeredRunners()) {
|
|
117
|
+
const owner = owners.get(accounts.homeSlot);
|
|
118
|
+
if (owner !== undefined)
|
|
119
|
+
throw new Error(`Runners ${owner} and ${id} both declare the agent home slot ${accounts.homeSlot}.`);
|
|
120
|
+
owners.set(accounts.homeSlot, id);
|
|
121
|
+
paths[accounts.homeSlot] = resolveRunnerHome(id, accounts, env, userHome);
|
|
122
|
+
}
|
|
123
|
+
return paths;
|
|
131
124
|
}
|
|
132
|
-
/**
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
* - a profile — `OMP_PROFILE` when it is set at all, else `PI_PROFILE` — selects
|
|
137
|
-
* `<root>/profiles/<name>/agent`, and omp then ignores `PI_CODING_AGENT_DIR`;
|
|
138
|
-
* - otherwise `PI_CODING_AGENT_DIR`, else `<root>/agent`;
|
|
139
|
-
*
|
|
140
|
-
* where `<root>` is `~/<PI_CONFIG_DIR or .omp>`. A host that exports a profile therefore moves the
|
|
141
|
-
* DEFAULT account (see `profileEnvVar` in `core/agent-profiles.ts`). `default`, a blank value
|
|
142
|
-
* and a name omp would refuse select no profile.
|
|
143
|
-
*/
|
|
144
|
-
function ompAgentDir(env, home) {
|
|
145
|
-
const root = ompRootDir(env, home);
|
|
146
|
-
const selected = (env.OMP_PROFILE !== undefined ? env.OMP_PROFILE : env.PI_PROFILE)?.trim();
|
|
147
|
-
if (selected && isOmpProfileName(selected))
|
|
148
|
-
return join(root, 'profiles', selected, 'agent');
|
|
149
|
-
return env.PI_CODING_AGENT_DIR?.trim() || join(root, 'agent');
|
|
125
|
+
/** One provider's default home: the entry of `agentHomePaths()` in its definition's home slot. */
|
|
126
|
+
export function agentHomeDir(provider, env = process.env) {
|
|
127
|
+
const { accounts } = runnerDefinition(provider);
|
|
128
|
+
return resolveRunnerHome(provider, accounts, env, agentUserHome(env));
|
|
150
129
|
}
|
|
151
|
-
function
|
|
152
|
-
return
|
|
130
|
+
function agentUserHome(env) {
|
|
131
|
+
return env.HOME || env.USERPROFILE || homedir();
|
|
153
132
|
}
|
|
154
|
-
/**
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
return
|
|
161
|
-
&& !OMP_RESERVED_NAME_RE.test(name);
|
|
133
|
+
/** Calls a definition's home resolver. A definition without one, or without a home slot, throws
|
|
134
|
+
* naming the runner. */
|
|
135
|
+
function resolveRunnerHome(id, accounts, env, userHome) {
|
|
136
|
+
if (!accounts.homeSlot || typeof accounts.homeDir !== 'function') {
|
|
137
|
+
throw new Error(`Runner ${id} declares no agent home: set accounts.homeSlot and accounts.homeDir in runners/${id}/definition.ts.`);
|
|
138
|
+
}
|
|
139
|
+
return accounts.homeDir(env, userHome);
|
|
162
140
|
}
|
|
163
141
|
/**
|
|
164
142
|
* Where Claude Code keeps `.claude.json` — its MCP/state file — for a given config dir. The
|
package/dist/paths.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"paths.js","sourceRoot":"","sources":["../src/paths.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,SAAS,CAAC;AAClC,OAAO,EAAE,OAAO,EAAE,IAAI,EAAE,MAAM,WAAW,CAAC;
|
|
1
|
+
{"version":3,"file":"paths.js","sourceRoot":"","sources":["../src/paths.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,SAAS,CAAC;AAClC,OAAO,EAAE,OAAO,EAAE,IAAI,EAAE,MAAM,WAAW,CAAC;AAI1C,O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CAAC,iBAAiB,EAAE,IAAI,EAAE,IAAI,EAAE,CAAC,KAAK,EAAE;WAC5D,UAAU,KAAK,IAAI,CAAC,GAAG,CAAC,IAAI,IAAI,GAAG,CAAC,WAAW,IAAI,OAAO,EAAE,EAAE,SAAS,CAAC,CAAC;IAC9E,OAAO,YAAY,CAAC,CAAC,CAAC,IAAI,CAAC,UAAU,EAAE,cAAc,CAAC,CAAC,CAAC,CAAC,IAAI,CAAC,OAAO,CAAC,UAAU,CAAC,EAAE,cAAc,CAAC,CAAC;AACrG,CAAC"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/** Claude's account data (the `accounts` part). Data only: the definition and the account
|
|
1
|
+
/** Claude's account data (the `accounts` part's data half). Data only: the definition and the account
|
|
2
2
|
* readers consume it, so importing it loads no code. */
|
|
3
3
|
export declare const CLAUDE_ACCOUNTS: {
|
|
4
4
|
readonly layout: {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/** Claude's account data (the `accounts` part). Data only: the definition and the account
|
|
1
|
+
/** Claude's account data (the `accounts` part's data half). Data only: the definition and the account
|
|
2
2
|
* readers consume it, so importing it loads no code. */
|
|
3
3
|
export const CLAUDE_ACCOUNTS = {
|
|
4
4
|
layout: { envVar: 'CLAUDE_CONFIG_DIR', defaultBindsHome: true, stateFile: 'beside-home' },
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"accounts.js","sourceRoot":"","sources":["../../../src/runners/claude/accounts.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"accounts.js","sourceRoot":"","sources":["../../../src/runners/claude/accounts.ts"],"names":[],"mappings":"AAEA;yDACyD;AACzD,MAAM,CAAC,MAAM,eAAe,GAAG;IAC7B,MAAM,EAAE,EAAE,MAAM,EAAE,mBAAmB,EAAE,gBAAgB,EAAE,IAAI,EAAE,SAAS,EAAE,aAAa,EAAE;IACzF,8FAA8F;IAC9F,yCAAyC;IACzC,UAAU,EAAE,CAAC,cAAc,EAAE,eAAe,EAAE,UAAU,EAAE,UAAU,CAAC;IACrE,QAAQ,EAAE,QAAQ;CACmB,CAAC"}
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import type
|
|
1
|
+
import { type RunnerConfigFile } from '../../core/runner-config-files.ts';
|
|
2
2
|
import type { RunnerAgentConfig } from '../../contract/index.js';
|
|
3
3
|
/**
|
|
4
4
|
* The Claude runner's native config files for Settings → Agent config. Data only: importing it
|
|
5
5
|
* loads no adapter. Order is presentation order: user → project → local, so the scope ladder
|
|
6
6
|
* reads top (broad) to bottom (specific).
|
|
7
7
|
*/
|
|
8
|
-
export declare const CLAUDE_CONFIG_FILES: readonly
|
|
8
|
+
export declare const CLAUDE_CONFIG_FILES: readonly RunnerConfigFile[];
|
|
9
9
|
/** The Claude tab of Settings → Agent config (the `agentConfig` of its `configFiles` part). Data only. */
|
|
10
10
|
export declare const CLAUDE_AGENT_CONFIG: RunnerAgentConfig;
|
|
@@ -1,4 +1,7 @@
|
|
|
1
1
|
import { join } from 'node:path';
|
|
2
|
+
import { agentHome } from '../../core/runner-config-files.js';
|
|
3
|
+
import { CLAUDE_ACCOUNTS } from './accounts.js';
|
|
4
|
+
const claudeHome = (home) => agentHome(home, CLAUDE_ACCOUNTS.homeSlot);
|
|
2
5
|
const CLAUDE_SETTINGS_DOCS = 'https://code.claude.com/docs/en/settings';
|
|
3
6
|
const CLAUDE_MEMORY_DOCS = 'https://code.claude.com/docs/en/memory';
|
|
4
7
|
const CLAUDE_MCP_DOCS = 'https://code.claude.com/docs/en/mcp';
|
|
@@ -11,10 +14,9 @@ export const CLAUDE_CONFIG_FILES = [
|
|
|
11
14
|
// ---- Claude Code ----
|
|
12
15
|
{
|
|
13
16
|
id: 'claude.user.settings',
|
|
14
|
-
runners: ['claude'],
|
|
15
17
|
kind: 'settings',
|
|
16
18
|
scope: 'user',
|
|
17
|
-
resolve: (_repo, home) => join(home
|
|
19
|
+
resolve: (_repo, home) => join(claudeHome(home), 'settings.json'),
|
|
18
20
|
label: '~/.claude/settings.json',
|
|
19
21
|
format: 'json',
|
|
20
22
|
tracked: 'outside-repo',
|
|
@@ -27,7 +29,6 @@ export const CLAUDE_CONFIG_FILES = [
|
|
|
27
29
|
},
|
|
28
30
|
{
|
|
29
31
|
id: 'claude.project.settings',
|
|
30
|
-
runners: ['claude'],
|
|
31
32
|
kind: 'settings',
|
|
32
33
|
scope: 'project',
|
|
33
34
|
resolve: (repo) => join(repo, '.claude', 'settings.json'),
|
|
@@ -43,7 +44,6 @@ export const CLAUDE_CONFIG_FILES = [
|
|
|
43
44
|
},
|
|
44
45
|
{
|
|
45
46
|
id: 'claude.local.settings',
|
|
46
|
-
runners: ['claude'],
|
|
47
47
|
kind: 'settings',
|
|
48
48
|
scope: 'local',
|
|
49
49
|
resolve: (repo) => join(repo, '.claude', 'settings.local.json'),
|
|
@@ -60,7 +60,6 @@ export const CLAUDE_CONFIG_FILES = [
|
|
|
60
60
|
},
|
|
61
61
|
{
|
|
62
62
|
id: 'claude.project.mcp',
|
|
63
|
-
runners: ['claude'],
|
|
64
63
|
kind: 'mcp',
|
|
65
64
|
scope: 'project',
|
|
66
65
|
resolve: (repo) => join(repo, '.mcp.json'),
|
|
@@ -73,10 +72,9 @@ export const CLAUDE_CONFIG_FILES = [
|
|
|
73
72
|
},
|
|
74
73
|
{
|
|
75
74
|
id: 'claude.user.memory',
|
|
76
|
-
runners: ['claude'],
|
|
77
75
|
kind: 'memory',
|
|
78
76
|
scope: 'user',
|
|
79
|
-
resolve: (_repo, home) => join(home
|
|
77
|
+
resolve: (_repo, home) => join(claudeHome(home), 'CLAUDE.md'),
|
|
80
78
|
label: '~/.claude/CLAUDE.md',
|
|
81
79
|
format: 'markdown',
|
|
82
80
|
tracked: 'outside-repo',
|
|
@@ -85,7 +83,6 @@ export const CLAUDE_CONFIG_FILES = [
|
|
|
85
83
|
},
|
|
86
84
|
{
|
|
87
85
|
id: 'claude.project.memory',
|
|
88
|
-
runners: ['claude'],
|
|
89
86
|
kind: 'memory',
|
|
90
87
|
scope: 'project',
|
|
91
88
|
resolve: (repo) => join(repo, 'CLAUDE.md'),
|
|
@@ -97,7 +94,6 @@ export const CLAUDE_CONFIG_FILES = [
|
|
|
97
94
|
},
|
|
98
95
|
{
|
|
99
96
|
id: 'claude.local.memory',
|
|
100
|
-
runners: ['claude'],
|
|
101
97
|
kind: 'memory',
|
|
102
98
|
scope: 'local',
|
|
103
99
|
resolve: (repo) => join(repo, 'CLAUDE.local.md'),
|
|
@@ -1 +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;
|
|
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;AACjC,OAAO,EAAE,SAAS,EAA8C,MAAM,mCAAmC,CAAC;AAE1G,OAAO,EAAE,eAAe,EAAE,MAAM,eAAe,CAAC;AAEhD,MAAM,UAAU,GAAG,CAAC,IAAoB,EAAU,EAAE,CAAC,SAAS,CAAC,IAAI,EAAE,eAAe,CAAC,QAAQ,CAAC,CAAC;AAE/F,MAAM,oBAAoB,GAAG,0CAA0C,CAAC;AACxE,MAAM,kBAAkB,GAAG,wCAAwC,CAAC;AACpE,MAAM,eAAe,GAAG,qCAAqC,CAAC;AAE9D;;;;GAIG;AACH,MAAM,CAAC,MAAM,mBAAmB,GAAgC;IAC9D,wBAAwB;IACxB;QACE,EAAE,EAAE,sBAAsB;QAC1B,IAAI,EAAE,UAAU;QAChB,KAAK,EAAE,MAAM;QACb,OAAO,EAAE,CAAC,KAAK,EAAE,IAAI,EAAE,EAAE,CAAC,IAAI,CAAC,UAAU,CAAC,IAAI,CAAC,EAAE,eAAe,CAAC;QACjE,KAAK,EAAE,yBAAyB;QAChC,MAAM,EAAE,M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Q;IACf,MAAM,EAAE;QACN,EAAE,EAAE,EAAE,UAAU,EAAE,KAAK,EAAE,UAAU,EAAE;QACrC;YACE,EAAE,EAAE,KAAK;YACT,KAAK,EAAE,KAAK;YACZ,IAAI,EAAE,sEAAsE;YAC5E,YAAY,EAAE,IAAI;SACnB;QACD,EAAE,EAAE,EAAE,QAAQ,EAAE,KAAK,EAAE,uBAAuB,EAAE;KACjD;CACF,CAAC"}
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { join } from 'node:path';
|
|
1
2
|
import { defineRunner } from '../../core/runner-definition.js';
|
|
2
3
|
import { productEnv } from '../../core/product-env.js';
|
|
3
4
|
import { CLAUDE_FACTS } from './facts.js';
|
|
@@ -29,7 +30,11 @@ export const claudeRunner = defineRunner({
|
|
|
29
30
|
configFiles: { files: CLAUDE_CONFIG_FILES, agentConfig: CLAUDE_AGENT_CONFIG },
|
|
30
31
|
extraTools: CLAUDE_EXTRA_TOOLS,
|
|
31
32
|
login: { ...CLAUDE_LOGIN, executable: () => productEnv('CLAUDE_BIN') ?? 'claude' },
|
|
32
|
-
accounts:
|
|
33
|
+
accounts: {
|
|
34
|
+
...CLAUDE_ACCOUNTS,
|
|
35
|
+
// `$CLAUDE_CONFIG_DIR` relocates Claude Code's home; a blank value is ignored.
|
|
36
|
+
homeDir: (env, home) => env.CLAUDE_CONFIG_DIR?.trim() || join(home, '.claude'),
|
|
37
|
+
},
|
|
33
38
|
env: CLAUDE_ENV,
|
|
34
39
|
mock: CLAUDE_MOCK,
|
|
35
40
|
loadLogin: async () => ({ parse: (await import('./login-probe.js')).parseClaudeStatus }),
|
|
@@ -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,UAAU,EAAE,MAAM,2BAA2B,CAAC;AACvD,OAAO,EAAE,YAAY,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Data only: the definition and the account
|
|
1
|
+
/** Codex's account data (the `accounts` part's data half). Data only: the definition and the account
|
|
2
2
|
* readers consume it, so importing it loads no code. */
|
|
3
3
|
export declare const CODEX_ACCOUNTS: {
|
|
4
4
|
readonly layout: {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/** Codex's account data (the `accounts` part). Data only: the definition and the account
|
|
1
|
+
/** Codex's account data (the `accounts` part's data half). Data only: the definition and the account
|
|
2
2
|
* readers consume it, so importing it loads no code. */
|
|
3
3
|
export const CODEX_ACCOUNTS = {
|
|
4
4
|
layout: { envVar: 'CODEX_HOME', defaultBindsHome: true, stateFile: 'in-home' },
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"accounts.js","sourceRoot":"","sources":["../../../src/runners/codex/accounts.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"accounts.js","sourceRoot":"","sources":["../../../src/runners/codex/accounts.ts"],"names":[],"mappings":"AAEA;yDACyD;AACzD,MAAM,CAAC,MAAM,cAAc,GAAG;IAC5B,MAAM,EAAE,EAAE,MAAM,EAAE,YAAY,EAAE,gBAAgB,EAAE,IAAI,EAAE,SAAS,EAAE,SAAS,EAAE;IAC9E,UAAU,EAAE,CAAC,WAAW,EAAE,aAAa,CAAC;IACxC,QAAQ,EAAE,OAAO;CACoB,CAAC"}
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import type
|
|
1
|
+
import { type RunnerConfigFile } from '../../core/runner-config-files.ts';
|
|
2
2
|
import type { RunnerAgentConfig } from '../../contract/index.js';
|
|
3
3
|
/**
|
|
4
4
|
* The Codex runner's native config files for Settings → Agent config. Data only: importing it
|
|
5
5
|
* loads no adapter. Order is presentation order: user → project → local, so the scope ladder
|
|
6
6
|
* reads top (broad) to bottom (specific).
|
|
7
7
|
*/
|
|
8
|
-
export declare const CODEX_CONFIG_FILES: readonly
|
|
8
|
+
export declare const CODEX_CONFIG_FILES: readonly RunnerConfigFile[];
|
|
9
9
|
/** The Codex tab of Settings → Agent config (the `agentConfig` of its `configFiles` part). Data only. */
|
|
10
10
|
export declare const CODEX_AGENT_CONFIG: RunnerAgentConfig;
|
|
@@ -1,6 +1,9 @@
|
|
|
1
1
|
import { join } from 'node:path';
|
|
2
|
+
import { agentHome } from '../../core/runner-config-files.js';
|
|
2
3
|
import { EDITOR_PLUS_COMMIT_NOTE } from '../agent-config-notes.js';
|
|
3
4
|
import { PROJECT_AGENTS_FILE } from '../project-agents-file.js';
|
|
5
|
+
import { CODEX_ACCOUNTS } from './accounts.js';
|
|
6
|
+
const codexHome = (home) => agentHome(home, CODEX_ACCOUNTS.homeSlot);
|
|
4
7
|
const CODEX_CONFIG_DOCS = 'https://developers.openai.com/codex/config-reference';
|
|
5
8
|
const CODEX_AGENTS_DOCS = 'https://developers.openai.com/codex/guides/agents-md';
|
|
6
9
|
/**
|
|
@@ -12,10 +15,9 @@ export const CODEX_CONFIG_FILES = [
|
|
|
12
15
|
// ---- Codex ----
|
|
13
16
|
{
|
|
14
17
|
id: 'codex.user.config',
|
|
15
|
-
runners: ['codex'],
|
|
16
18
|
kind: 'settings',
|
|
17
19
|
scope: 'user',
|
|
18
|
-
resolve: (_repo, home) => join(home
|
|
20
|
+
resolve: (_repo, home) => join(codexHome(home), 'config.toml'),
|
|
19
21
|
label: '~/.codex/config.toml',
|
|
20
22
|
format: 'toml',
|
|
21
23
|
tracked: 'outside-repo',
|
|
@@ -28,7 +30,6 @@ export const CODEX_CONFIG_FILES = [
|
|
|
28
30
|
},
|
|
29
31
|
{
|
|
30
32
|
id: 'codex.project.config',
|
|
31
|
-
runners: ['codex'],
|
|
32
33
|
kind: 'settings',
|
|
33
34
|
scope: 'project',
|
|
34
35
|
resolve: (repo) => join(repo, '.codex', 'config.toml'),
|
|
@@ -43,10 +44,9 @@ export const CODEX_CONFIG_FILES = [
|
|
|
43
44
|
},
|
|
44
45
|
{
|
|
45
46
|
id: 'codex.user.memory',
|
|
46
|
-
runners: ['codex'],
|
|
47
47
|
kind: 'memory',
|
|
48
48
|
scope: 'user',
|
|
49
|
-
resolve: (_repo, home) => join(home
|
|
49
|
+
resolve: (_repo, home) => join(codexHome(home), 'AGENTS.md'),
|
|
50
50
|
label: '~/.codex/AGENTS.md',
|
|
51
51
|
format: 'markdown',
|
|
52
52
|
tracked: 'outside-repo',
|
|
@@ -1 +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;
|
|
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;AACjC,OAAO,EAAE,SAAS,EAA8C,MAAM,mCAAmC,CAAC;AAE1G,OAAO,EAAE,uBAAuB,EAAE,MAAM,0BAA0B,CAAC;AACnE,OAAO,EAAE,mBAAmB,EAAE,MAAM,2BAA2B,CAAC;AAChE,OAAO,EAAE,cAAc,EAAE,MAAM,eAAe,CAAC;AAE/C,MAAM,SAAS,GAAG,CAAC,IAAoB,EAAU,EAAE,CAAC,SAAS,CAAC,IAAI,EAAE,cAAc,CAAC,QAAQ,CAAC,CAAC;AAE7F,MAAM,iBAAiB,GAAG,sDAAsD,CAAC;AACjF,MAAM,iBAAiB,GAAG,sDAAsD,CAAC;AAEjF;;;;GAIG;AACH,MAAM,CAAC,MAAM,kBAAkB,GAAgC;IAC7D,kBAAkB;IAClB;QACE,EAAE,EAAE,mBAAmB;QACvB,IAAI,EAAE,UAAU;QAChB,KAAK,EAAE,MAAM;QACb,OAAO,EAAE,CAAC,KAAK,EAAE,IAAI,EAAE,EAAE,CAAC,IAAI,CAAC,SAAS,CAAC,IAAI,CAAC,EAAE,aAAa,CAAC;QAC9D,KAAK,EAAE,sBAAsB;QAC7B,MAAM,EAAE,MAAM;QACd,OAAO,EAAE,cAAc;Q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AuB,EAAE;KACjD;CACF,CAAC"}
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { join } from 'node:path';
|
|
1
2
|
import { defineRunner } from '../../core/runner-definition.js';
|
|
2
3
|
import { productEnv } from '../../core/product-env.js';
|
|
3
4
|
import { CODEX_FACTS } from './facts.js';
|
|
@@ -29,7 +30,11 @@ export const codexRunner = defineRunner({
|
|
|
29
30
|
configFiles: { files: CODEX_CONFIG_FILES, agentConfig: CODEX_AGENT_CONFIG },
|
|
30
31
|
extraTools: CODEX_EXTRA_TOOLS,
|
|
31
32
|
login: { ...CODEX_LOGIN, executable: () => productEnv('CODEX_BIN') ?? 'codex' },
|
|
32
|
-
accounts:
|
|
33
|
+
accounts: {
|
|
34
|
+
...CODEX_ACCOUNTS,
|
|
35
|
+
// `$CODEX_HOME` relocates Codex's home; a blank value is ignored.
|
|
36
|
+
homeDir: (env, home) => env.CODEX_HOME?.trim() || join(home, '.codex'),
|
|
37
|
+
},
|
|
33
38
|
env: CODEX_ENV,
|
|
34
39
|
mock: CODEX_MOCK,
|
|
35
40
|
loadLogin: async () => ({ parse: (await import('./login-probe.js')).parseCodexStatus }),
|
|
@@ -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,UAAU,EAAE,MAAM,2BAA2B,CAAC;AACvD,OAAO,EAAE,WAAW,EAAE,MAAM,YAAY,CAAC;AACzC,OAAO,EAAE,YAAY,EAAE,MAAM,aAAa,CAAC;AAC3C,OAAO,EAAE,kBAAkB,EAAE,kBAAkB,EAAE,MAAM,mBAAmB,CAAC;AAC3E,OAAO,EAAE,iBAAiB,EAAE,MAAM,kBAAkB,CAAC;AACrD,OAAO,EAAE,kBAAkB,EAAE,MAAM,mBAAmB,CAAC;AACvD,OAAO,EAAE,eAAe,EAAE,MAAM,gB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AC,0BAA0B;KAClH;IACD,gBAAgB,EAAE,KAAK,IAAI,EAAE,CAAC,CAAC,MAAM,MAAM,CAAC,0BAA0B,CAAC,CAAC,CAAC,mBAAmB;IAC5F,gBAAgB,EAAE,KAAK,IAAI,EAAE,CAAC,CAAC,MAAM,MAAM,CAAC,0BAA0B,CAAC,CAAC,CAAC,mBAAmB;IAC5F,WAAW,EAAE,EAAE,KAAK,EAAE,kBAAkB,EAAE,WAAW,EAAE,kBAAkB,EAAE;IAC3E,UAAU,EAAE,iBAAiB;IAC7B,KAAK,EAAE,EAAE,GAAG,WAAW,EAAE,UAAU,EAAE,GAAG,EAAE,CAAC,UAAU,CAAC,WAAW,CAAC,IAAI,OAAO,EAAE;IAC/E,QAAQ,EAAE;QACR,GAAG,cAAc;QACjB,kEAAkE;QAClE,OAAO,EAAE,CAAC,GAAG,EAAE,IAAI,EAAE,EAAE,CAAC,GAAG,CAAC,UAAU,EAAE,IAAI,EAAE,IAAI,IAAI,CAAC,IAAI,EAAE,QAAQ,CAAC;KACvE;IACD,GAAG,EAAE,SAAS;IACd,IAAI,EAAE,UAAU;IAChB,SAAS,EAAE,KAAK,IAAI,EAAE,CAAC,CAAC,EAAE,KAAK,EAAE,CAAC,MAAM,MAAM,CAAC,kBAAkB,CAAC,CAAC,CAAC,gBAAgB,EAAE,CAAC;IACvF,OAAO,EAAE,aAAa;CACvB,CAAC,CAAC"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/** OMP's account data (the `accounts` part). Data only: the definition and the account
|
|
1
|
+
/** OMP's account data (the `accounts` part's data half). Data only: the definition and the account
|
|
2
2
|
* readers consume it, so importing it loads no code. */
|
|
3
3
|
export declare const OMP_ACCOUNTS: {
|
|
4
4
|
readonly layout: {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/** OMP's account data (the `accounts` part). Data only: the definition and the account
|
|
1
|
+
/** OMP's account data (the `accounts` part's data half). Data only: the definition and the account
|
|
2
2
|
* readers consume it, so importing it loads no code. */
|
|
3
3
|
export const OMP_ACCOUNTS = {
|
|
4
4
|
// omp selects a login by profile NAME under its own root, not by folder, so it carries no named
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"accounts.js","sourceRoot":"","sources":["../../../src/runners/omp/accounts.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"accounts.js","sourceRoot":"","sources":["../../../src/runners/omp/accounts.ts"],"names":[],"mappings":"AAEA;yDACyD;AACzD,MAAM,CAAC,MAAM,YAAY,GAAG;IAC1B,gGAAgG;IAChG,wFAAwF;IACxF,MAAM,EAAE,EAAE,MAAM,EAAE,IAAI,EAAE,gBAAgB,EAAE,KAAK,EAAE,SAAS,EAAE,SAAS,EAAE;IACvE,yEAAyE;IACzE,UAAU,EAAE,CAAC,UAAU,EAAE,YAAY,EAAE,UAAU,CAAC;IAClD,QAAQ,EAAE,KAAK;CACsB,CAAC"}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* OMP's (Oh My Pi's) agent dir under `env`, mirroring how omp 18.8.0 resolves it
|
|
3
|
+
* (`packages/utils/src/dirs.ts`):
|
|
4
|
+
*
|
|
5
|
+
* - a profile — `OMP_PROFILE` when it is set at all, else `PI_PROFILE` — selects
|
|
6
|
+
* `<root>/profiles/<name>/agent`, and omp then ignores `PI_CODING_AGENT_DIR`;
|
|
7
|
+
* - otherwise `PI_CODING_AGENT_DIR`, else `<root>/agent`;
|
|
8
|
+
*
|
|
9
|
+
* where `<root>` is `~/<PI_CONFIG_DIR or .omp>`. A host that exports a profile therefore moves the
|
|
10
|
+
* DEFAULT account (see `profileEnvVar` in `core/agent-profiles.ts`). `default`, a blank value
|
|
11
|
+
* and a name omp would refuse select no profile.
|
|
12
|
+
*/
|
|
13
|
+
export declare function resolveOmpAgentDir(env: NodeJS.ProcessEnv, home: string): string;
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
import { join } from 'node:path';
|
|
2
|
+
/**
|
|
3
|
+
* OMP's (Oh My Pi's) agent dir under `env`, mirroring how omp 18.8.0 resolves it
|
|
4
|
+
* (`packages/utils/src/dirs.ts`):
|
|
5
|
+
*
|
|
6
|
+
* - a profile — `OMP_PROFILE` when it is set at all, else `PI_PROFILE` — selects
|
|
7
|
+
* `<root>/profiles/<name>/agent`, and omp then ignores `PI_CODING_AGENT_DIR`;
|
|
8
|
+
* - otherwise `PI_CODING_AGENT_DIR`, else `<root>/agent`;
|
|
9
|
+
*
|
|
10
|
+
* where `<root>` is `~/<PI_CONFIG_DIR or .omp>`. A host that exports a profile therefore moves the
|
|
11
|
+
* DEFAULT account (see `profileEnvVar` in `core/agent-profiles.ts`). `default`, a blank value
|
|
12
|
+
* and a name omp would refuse select no profile.
|
|
13
|
+
*/
|
|
14
|
+
export function resolveOmpAgentDir(env, home) {
|
|
15
|
+
const root = ompRootDir(env, home);
|
|
16
|
+
const selected = (env.OMP_PROFILE !== undefined ? env.OMP_PROFILE : env.PI_PROFILE)?.trim();
|
|
17
|
+
if (selected && isOmpProfileName(selected))
|
|
18
|
+
return join(root, 'profiles', selected, 'agent');
|
|
19
|
+
return env.PI_CODING_AGENT_DIR?.trim() || join(root, 'agent');
|
|
20
|
+
}
|
|
21
|
+
function ompRootDir(env, home) {
|
|
22
|
+
return join(home, env.PI_CONFIG_DIR?.trim() || '.omp');
|
|
23
|
+
}
|
|
24
|
+
/** omp's own profile-name rule (omp 18.8.0, `packages/utils/src/dirs.ts`). */
|
|
25
|
+
const OMP_PROFILE_NAME_RE = /^[a-z0-9][a-z0-9._-]{0,63}$/;
|
|
26
|
+
/** Windows device names omp refuses as a profile, with or without an extension. */
|
|
27
|
+
const OMP_RESERVED_NAME_RE = /^(?:CON|PRN|AUX|NUL|COM[0-9]|LPT[0-9])(?:\..*)?$/i;
|
|
28
|
+
/** Whether omp accepts `name` as a profile of its own; `default` is omp's "no profile". */
|
|
29
|
+
function isOmpProfileName(name) {
|
|
30
|
+
return OMP_PROFILE_NAME_RE.test(name) && !name.endsWith('.') && name !== 'default'
|
|
31
|
+
&& !OMP_RESERVED_NAME_RE.test(name);
|
|
32
|
+
}
|
|
33
|
+
//# sourceMappingURL=agent-dir.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"agent-dir.js","sourceRoot":"","sources":["../../../src/runners/omp/agent-dir.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,IAAI,EAAE,MAAM,WAAW,CAAC;AAEjC;;;;;;;;;;;GAWG;AACH,MAAM,UAAU,kBAAkB,CAAC,GAAsB,EAAE,IAAY;IACrE,MAAM,IAAI,GAAG,UAAU,CAAC,GAAG,EAAE,IAAI,CAAC,CAAC;IACnC,MAAM,QAAQ,GAAG,CAAC,GAAG,CAAC,WAAW,KAAK,SAAS,CAAC,CAAC,CAAC,GAAG,CAAC,WAAW,CAAC,CAAC,CAAC,GAAG,CAAC,UAAU,CAAC,EAAE,IAAI,EAAE,CAAC;IAC5F,IAAI,QAAQ,IAAI,gBAAgB,CAAC,QAAQ,CAAC;QAAE,OAAO,IAAI,CAAC,IAAI,EAAE,UAAU,EAAE,QAAQ,EAAE,OAAO,CAAC,CAAC;IAC7F,OAAO,GAAG,CAAC,mBAAmB,EAAE,IAAI,EAAE,IAAI,IAAI,CAAC,IAAI,EAAE,OAAO,CAAC,CAAC;AAChE,CAAC;AAED,SAAS,UAAU,CAAC,GAAsB,EAAE,IAAY;IACtD,OAAO,IAAI,CAAC,IAAI,EAAE,GAAG,CAAC,aAAa,EAAE,IAAI,EAAE,IAAI,MAAM,CAAC,CAAC;AACzD,CAAC;AAED,8EAA8E;AAC9E,MAAM,mBAAmB,GAAG,6BAA6B,CAAC;AAC1D,mFAAmF;AACnF,MAAM,oBAAoB,GAAG,mDAAmD,CAAC;AAEjF,2FAA2F;AAC3F,SAAS,gBAAgB,CAAC,IAAY;IACpC,OAAO,mBAAmB,CAAC,IAAI,CAAC,IAAI,CAAC,IAAI,CAAC,IAAI,CAAC,QAAQ,CAAC,GAAG,CAAC,IAAI,IAAI,KAAK,SAAS;WAC7E,CAAC,oBAAoB,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;AACxC,CAAC"}
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import type
|
|
1
|
+
import { type RunnerConfigFile } from '../../core/runner-config-files.ts';
|
|
2
2
|
import type { RunnerAgentConfig } from '../../contract/index.js';
|
|
3
3
|
/**
|
|
4
4
|
* The OMP runner's native config files for Settings → Agent config. Data only: importing it
|
|
5
5
|
* loads no adapter. Order is presentation order: user → project → local, so the scope ladder
|
|
6
6
|
* reads top (broad) to bottom (specific).
|
|
7
7
|
*/
|
|
8
|
-
export declare const OMP_CONFIG_FILES: readonly
|
|
8
|
+
export declare const OMP_CONFIG_FILES: readonly RunnerConfigFile[];
|
|
9
9
|
/** The OMP tab of Settings → Agent config (the `agentConfig` of its `configFiles` part). Data only. */
|
|
10
10
|
export declare const OMP_AGENT_CONFIG: RunnerAgentConfig;
|