@jini-ai/agent-runtime 0.3.1 → 0.3.6
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/anthropic-live-models.d.ts +45 -0
- package/dist/anthropic-live-models.d.ts.map +1 -0
- package/dist/anthropic-live-models.js +0 -0
- package/dist/anthropic-live-models.js.map +1 -0
- package/dist/defs/antigravity.d.ts +31 -1
- package/dist/defs/antigravity.d.ts.map +1 -1
- package/dist/defs/antigravity.js +67 -0
- package/dist/defs/antigravity.js.map +1 -1
- package/dist/defs/claude.d.ts +1 -0
- package/dist/defs/claude.d.ts.map +1 -1
- package/dist/defs/claude.js +63 -8
- package/dist/defs/claude.js.map +1 -1
- package/dist/defs/codex.d.ts +22 -2
- package/dist/defs/codex.d.ts.map +1 -1
- package/dist/defs/codex.js +192 -17
- package/dist/defs/codex.js.map +1 -1
- package/dist/defs/copilot.d.ts.map +1 -1
- package/dist/defs/copilot.js +14 -11
- package/dist/defs/copilot.js.map +1 -1
- package/dist/detection.d.ts +1 -1
- package/dist/detection.d.ts.map +1 -1
- package/dist/detection.js +22 -1
- package/dist/detection.js.map +1 -1
- package/dist/registry.d.ts +2 -1
- package/dist/registry.d.ts.map +1 -1
- package/dist/registry.js +2 -1
- package/dist/registry.js.map +1 -1
- package/dist/types.d.ts +111 -1
- package/dist/types.d.ts.map +1 -1
- package/package.json +3 -3
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
import type { RuntimeEnv, RuntimeModelOption } from './types.js';
|
|
2
|
+
/** Test-only reset — this module-scope cache would otherwise leak a stubbed `fetch`'s result across
|
|
3
|
+
* test cases. */
|
|
4
|
+
export declare function resetAnthropicLiveModelCacheForTesting(): void;
|
|
5
|
+
export type AnthropicCredential = {
|
|
6
|
+
apiKey: string;
|
|
7
|
+
baseUrl: string;
|
|
8
|
+
};
|
|
9
|
+
/**
|
|
10
|
+
* Reads an Anthropic API credential out of the environment handed to the def's `fetchModels`.
|
|
11
|
+
*
|
|
12
|
+
* Reads ONLY the passed `env`, never `process.env` directly: detection composes a per-agent
|
|
13
|
+
* environment (host env + def env + operator overrides) and that composed value is the one a spawn
|
|
14
|
+
* would actually see, so consulting the ambient process would let this disagree with the runtime.
|
|
15
|
+
*
|
|
16
|
+
* @param env - The composed environment for this agent.
|
|
17
|
+
* @returns The credential, or `null` when no usable key is present — the caller's signal to make no
|
|
18
|
+
* network call whatsoever.
|
|
19
|
+
* @complexity O(1).
|
|
20
|
+
*/
|
|
21
|
+
export declare function resolveAnthropicCredential(env: RuntimeEnv): AnthropicCredential | null;
|
|
22
|
+
/**
|
|
23
|
+
* Appends live-discovered models to the static fallback list.
|
|
24
|
+
*
|
|
25
|
+
* UNION, never replace. `fallback` is always fully present, in its original order — nothing is ever
|
|
26
|
+
* removed from it, so the `default` sentinel and the bare CLI aliases survive by construction rather
|
|
27
|
+
* than by a guard that could be edited away. Live ids already present are skipped.
|
|
28
|
+
*
|
|
29
|
+
* @complexity O(f + l) — one `Set` over the fallback, one pass over the live list.
|
|
30
|
+
*/
|
|
31
|
+
export declare function mergeLiveModels(fallback: readonly RuntimeModelOption[], live: readonly RuntimeModelOption[]): RuntimeModelOption[];
|
|
32
|
+
/**
|
|
33
|
+
* Returns the Claude model list with the account's live catalog merged in, or `null` when there is
|
|
34
|
+
* nothing to merge.
|
|
35
|
+
*
|
|
36
|
+
* @param env - The composed environment for the `claude` agent.
|
|
37
|
+
* @param fallbackModels - The def's static list; always fully present in a non-null result.
|
|
38
|
+
* @param now - Injectable clock for TTL tests.
|
|
39
|
+
* @returns The merged list, or `null` for every no-credential / failed-call outcome — which the
|
|
40
|
+
* caller treats as "keep the static list", never as an error.
|
|
41
|
+
* @complexity O(1) plus, at most, one cached outbound HTTPS call bounded by
|
|
42
|
+
* {@link LIVE_MODEL_TIMEOUT_MS}.
|
|
43
|
+
*/
|
|
44
|
+
export declare function loadAnthropicLiveModels(env: RuntimeEnv, fallbackModels: readonly RuntimeModelOption[], now?: () => number): Promise<RuntimeModelOption[] | null>;
|
|
45
|
+
//# sourceMappingURL=anthropic-live-models.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"anthropic-live-models.d.ts","sourceRoot":"","sources":["../src/anthropic-live-models.ts"],"names":[],"mappings":"AA4BA,OAAO,KAAK,EAAE,UAAU,EAAE,kBAAkB,EAAE,MAAM,YAAY,CAAC;AAwBjE;kBACkB;AAClB,wBAAgB,sCAAsC,IAAI,IAAI,CAE7D;AAED,MAAM,MAAM,mBAAmB,GAAG;IAChC,MAAM,EAAE,MAAM,CAAC;IACf,OAAO,EAAE,MAAM,CAAC;CACjB,CAAC;AAEF;;;;;;;;;;;GAWG;AACH,wBAAgB,0BAA0B,CAAC,GAAG,EAAE,UAAU,GAAG,mBAAmB,GAAG,IAAI,CAKtF;AAcD;;;;;;;;GAQG;AACH,wBAAgB,eAAe,CAC7B,QAAQ,EAAE,SAAS,kBAAkB,EAAE,EACvC,IAAI,EAAE,SAAS,kBAAkB,EAAE,GAClC,kBAAkB,EAAE,CAStB;AAqCD;;;;;;;;;;;GAWG;AACH,wBAAsB,uBAAuB,CAC3C,GAAG,EAAE,UAAU,EACf,cAAc,EAAE,SAAS,kBAAkB,EAAE,EAC7C,GAAG,GAAE,MAAM,MAAiB,GAC3B,OAAO,CAAC,kBAAkB,EAAE,GAAG,IAAI,CAAC,CActC"}
|
|
Binary file
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"anthropic-live-models.js","sourceRoot":"","sources":["../src/anthropic-live-models.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;GAwBG;AACH,OAAO,EAAE,UAAU,EAAE,MAAM,aAAa,CAAC;AAEzC,OAAO,EAAE,kBAAkB,EAAE,MAAM,8BAA8B,CAAC;AAGlE,MAAM,0BAA0B,GAAG,2BAA2B,CAAC;AAE/D;;;6EAG6E;AAC7E,MAAM,uBAAuB,GAAG,CAAC,GAAG,MAAM,C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IAAI,CAAC,UAAU;QAAE,OAAO,IAAI,CAAC;IAE7B,MAAM,GAAG,GAAG,WAAW,CAAC,UAAU,CAAC,CAAC;IACpC,MAAM,MAAM,GAAG,KAAK,CAAC,GAAG,CAAC,GAAG,CAAC,CAAC;IAC9B,MAAM,OAAO,GAAG,MAAM,IAAI,MAAM,CAAC,SAAS,GAAG,GAAG,EAAE,CAAC,CAAC,CAAC,MAAM,CAAC,KAAK,CAAC,CAAC,CAAC,IAAI,CAAC;IACzE,MAAM,KAAK,GAAG,OAAO,IAAI,oBAAoB,CAAC,UAAU,CAAC,CAAC;IAC1D,IAAI,CAAC,OAAO,EAAE,CAAC;QACb,KAAK,CAAC,GAAG,CAAC,GAAG,EAAE,EAAE,SAAS,EAAE,GAAG,EAAE,GAAG,uBAAuB,EAAE,KAAK,EAAE,CAAC,CAAC;IACxE,CAAC;IAED,MAAM,IAAI,GAAG,MAAM,KAAK,CAAC;IACzB,OAAO,IAAI,IAAI,IAAI,CAAC,MAAM,GAAG,CAAC,CAAC,CAAC,CAAC,eAAe,CAAC,cAAc,EAAE,IAAI,CAAC,CAAC,CAAC,CAAC,IAAI,CAAC;AAChF,CAAC"}
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import type { RuntimeModelOption } from '../types.js';
|
|
1
2
|
/**
|
|
2
3
|
* Redacts any OAuth sign-in URL from agy's buffered print-mode stdout,
|
|
3
4
|
* leaving all other output byte-identical.
|
|
@@ -15,13 +16,42 @@
|
|
|
15
16
|
* @overallScore 100/100
|
|
16
17
|
*/
|
|
17
18
|
export declare function redactAntigravityAuthUrls(fullText: string): string;
|
|
19
|
+
/**
|
|
20
|
+
* Parses `agy models`' stdout into the shared `RuntimeModelOption[]` shape.
|
|
21
|
+
*
|
|
22
|
+
* The CLI's real output (agy v1.1.24, verified live — see this file's header
|
|
23
|
+
* comment for the exact captured transcript) is one `Fetching available
|
|
24
|
+
* models...` progress line followed by one `<slug>\t<label>` pair per line.
|
|
25
|
+
* Each data line is split on the FIRST tab only, so a label that itself
|
|
26
|
+
* contains a tab or extra whitespace never bleeds into the id.
|
|
27
|
+
*
|
|
28
|
+
* @param stdout - Raw stdout from `agy models`.
|
|
29
|
+
* @returns The synthetic default option prepended to every parsed entry, or
|
|
30
|
+
* `null` when no real entry was found (empty stdout, or only the progress
|
|
31
|
+
* line survives filtering) — mirrors `parseCursorAgentModels`'s same-shape
|
|
32
|
+
* null contract, which `detection.ts#fetchModels` already treats the same
|
|
33
|
+
* as an empty array: fall back to `fallbackModels`.
|
|
34
|
+
* @complexity O(n) in the stdout length.
|
|
35
|
+
*/
|
|
36
|
+
export declare function parseAgyModels(stdout: string): RuntimeModelOption[] | null;
|
|
18
37
|
export declare const antigravityAgentDef: {
|
|
19
38
|
id: string;
|
|
20
39
|
name: string;
|
|
21
40
|
bin: string;
|
|
22
41
|
versionArgs: string[];
|
|
23
|
-
|
|
42
|
+
listModels: {
|
|
43
|
+
args: string[];
|
|
44
|
+
parse: typeof parseAgyModels;
|
|
45
|
+
timeoutMs: number;
|
|
46
|
+
};
|
|
47
|
+
fallbackModels: RuntimeModelOption[];
|
|
24
48
|
supportsCustomModel: false;
|
|
49
|
+
reasoningInModelId: {
|
|
50
|
+
levels: {
|
|
51
|
+
id: string;
|
|
52
|
+
label: string;
|
|
53
|
+
}[];
|
|
54
|
+
};
|
|
25
55
|
buildArgs: (prompt: string, _imagePaths: string[], _extra?: string[] | undefined, options?: import("../types.js").RuntimeBuildOptions | undefined, runtimeContext?: import("../types.js").RuntimeContext | undefined) => string[];
|
|
26
56
|
maxPromptArgBytes: number;
|
|
27
57
|
streamFormat: string;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"antigravity.d.ts","sourceRoot":"","sources":["../../src/defs/antigravity.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"antigravity.d.ts","sourceRoot":"","sources":["../../src/defs/antigravity.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAmB,kBAAkB,EAAE,MAAM,aAAa,CAAC;AAmEvE;;;;;;;;;;;;;;;GAeG;AACH,wBAAgB,yBAAyB,CAAC,QAAQ,EAAE,MAAM,GAAG,MAAM,CAElE;AAED;;;;;;;;;;;;;;;;GAgBG;AACH,wBAAgB,cAAc,CAAC,MAAM,EAAE,MAAM,GAAG,kBAAkB,EAAE,GAAG,IAAI,CAqB1E;AAED,eAAO,MAAM,mBAAmB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CA8LL,CAAC"}
|
package/dist/defs/antigravity.js
CHANGED
|
@@ -78,11 +78,62 @@ const OAUTH_URL_PLACEHOLDER = '[redacted sign-in URL]';
|
|
|
78
78
|
export function redactAntigravityAuthUrls(fullText) {
|
|
79
79
|
return fullText.replace(OAUTH_URL_PATTERN, OAUTH_URL_PLACEHOLDER);
|
|
80
80
|
}
|
|
81
|
+
/**
|
|
82
|
+
* Parses `agy models`' stdout into the shared `RuntimeModelOption[]` shape.
|
|
83
|
+
*
|
|
84
|
+
* The CLI's real output (agy v1.1.24, verified live — see this file's header
|
|
85
|
+
* comment for the exact captured transcript) is one `Fetching available
|
|
86
|
+
* models...` progress line followed by one `<slug>\t<label>` pair per line.
|
|
87
|
+
* Each data line is split on the FIRST tab only, so a label that itself
|
|
88
|
+
* contains a tab or extra whitespace never bleeds into the id.
|
|
89
|
+
*
|
|
90
|
+
* @param stdout - Raw stdout from `agy models`.
|
|
91
|
+
* @returns The synthetic default option prepended to every parsed entry, or
|
|
92
|
+
* `null` when no real entry was found (empty stdout, or only the progress
|
|
93
|
+
* line survives filtering) — mirrors `parseCursorAgentModels`'s same-shape
|
|
94
|
+
* null contract, which `detection.ts#fetchModels` already treats the same
|
|
95
|
+
* as an empty array: fall back to `fallbackModels`.
|
|
96
|
+
* @complexity O(n) in the stdout length.
|
|
97
|
+
*/
|
|
98
|
+
export function parseAgyModels(stdout) {
|
|
99
|
+
const lines = String(stdout || '')
|
|
100
|
+
.split('\n')
|
|
101
|
+
.map((line) => line.trim())
|
|
102
|
+
.filter((line) => line.length > 0);
|
|
103
|
+
if (lines.length === 0)
|
|
104
|
+
return null;
|
|
105
|
+
const out = [DEFAULT_MODEL_OPTION];
|
|
106
|
+
const seen = new Set([DEFAULT_MODEL_OPTION.id]);
|
|
107
|
+
for (const line of lines) {
|
|
108
|
+
if (/^fetching available models\.\.\.$/i.test(line))
|
|
109
|
+
continue;
|
|
110
|
+
const tabIndex = line.indexOf('\t');
|
|
111
|
+
if (tabIndex === -1)
|
|
112
|
+
continue;
|
|
113
|
+
const id = line.slice(0, tabIndex).trim();
|
|
114
|
+
if (!id || seen.has(id))
|
|
115
|
+
continue;
|
|
116
|
+
seen.add(id);
|
|
117
|
+
const label = line.slice(tabIndex + 1).trim();
|
|
118
|
+
out.push({ id, label: label || id });
|
|
119
|
+
}
|
|
120
|
+
return out.length > 1 ? out : null;
|
|
121
|
+
}
|
|
81
122
|
export const antigravityAgentDef = {
|
|
82
123
|
id: 'antigravity',
|
|
83
124
|
name: 'Antigravity',
|
|
84
125
|
bin: 'agy',
|
|
85
126
|
versionArgs: ['--version'],
|
|
127
|
+
// `agy models` does a real network fetch (its own stdout says "Fetching
|
|
128
|
+
// available models..."), so this gets a longer budget than codex's 5s
|
|
129
|
+
// local-cache read — 10s to absorb ordinary network latency without
|
|
130
|
+
// making every detection pass wait needlessly long on a slow/offline run
|
|
131
|
+
// (`detection.ts#fetchModels` falls back to `fallbackModels` on timeout).
|
|
132
|
+
listModels: {
|
|
133
|
+
args: ['models'],
|
|
134
|
+
parse: parseAgyModels,
|
|
135
|
+
timeoutMs: 10_000,
|
|
136
|
+
},
|
|
86
137
|
fallbackModels: [
|
|
87
138
|
DEFAULT_MODEL_OPTION,
|
|
88
139
|
{ id: 'gemini-3.8-flash-high', label: 'Gemini 3.8 Flash (High)' },
|
|
@@ -101,6 +152,22 @@ export const antigravityAgentDef = {
|
|
|
101
152
|
{ id: 'gpt-oss-120b-medium', label: 'GPT-OSS 120B (Medium)' },
|
|
102
153
|
],
|
|
103
154
|
supportsCustomModel: false,
|
|
155
|
+
// agy has no `--effort`-shaped flag: reasoning effort is a trailing `-high`/
|
|
156
|
+
// `-medium`/`-low` on the model slug `--model` already carries (see the
|
|
157
|
+
// `fallbackModels` list above, which is `agy models`' real output). So this
|
|
158
|
+
// def declares the suffix VOCABULARY only — see `types.ts`'s
|
|
159
|
+
// `RuntimeReasoningInModelId` for why the per-base-model availability is
|
|
160
|
+
// derived from the model list instead of enumerated here, and why
|
|
161
|
+
// `-thinking` on `claude-opus-4-6-thinking` must not be read as a level.
|
|
162
|
+
// `buildArgs` below is deliberately unchanged: the effort is already inside
|
|
163
|
+
// `--model`'s value, so there is no second argv to emit.
|
|
164
|
+
reasoningInModelId: {
|
|
165
|
+
levels: [
|
|
166
|
+
{ id: 'high', label: 'High' },
|
|
167
|
+
{ id: 'medium', label: 'Medium' },
|
|
168
|
+
{ id: 'low', label: 'Low' },
|
|
169
|
+
],
|
|
170
|
+
},
|
|
104
171
|
// We deliberately do NOT opt into `resumesSessionViaCli` / agy's `-c`
|
|
105
172
|
// resume flag on follow-up turns. Tested both shapes; `-c` activates
|
|
106
173
|
// agy's internal agentic loop (multi-step model retries, tool calls,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"antigravity.js","sourceRoot":"","sources":["../../src/defs/antigravity.ts"],"names":[],"mappings":"AAAA,iIAAiI;AACjI,OAAO,EAAE,oBAAoB,EAAE,MAAM,aAAa,CAAC;AAGnD,yFAAyF;AACzF,iGAAiG;AACjG,kGAAkG;AAClG,kFAAkF;AAClF,gGAAgG;AAChG,2FAA2F;AAC3F,+FAA+F;AAC/F,gGAAgG;AAChG,gBAAgB;AAChB,EAAE;AACF,0CAA0C;AAC1C,gGAAgG;AAChG,kGAAkG;AAClG,mGAAmG;AACnG,yBAAyB;AACzB,EAAE;AACF,kGAAkG;AAClG,iGAAiG;AACjG,4FAA4F;AAC5F,kGAAkG;AAClG,mGAAmG;AACnG,gGAAgG;AAChG,8FAA8F;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zF,iGAAiG;IACjG,4FAA4F;IAC5F,oFAAoF;IACpF,uEAAuE;IACvE,8FAA8F;IAC9F,kGAAkG;IAClG,kGAAkG;IAClG,iGAAiG;IACjG,iGAAiG;IACjG,6FAA6F;IAC7F,kBAAkB;IAClB,iGAAiG;IACjG,8FAA8F;IAC9F,4FAA4F;IAC5F,mGAAmG;IACnG,eAAe;IACf,EAAE;IACF,4FAA4F;IAC5F,wFAAwF;IACxF,EAAE;IACF,iGAAiG;IACjG,+FAA+F;IAC/F,8FAA8F;IAC9F,mGAAmG;IACnG,gGAAgG;IAChG,oGAAoG;IACpG,qGAAqG;IACrG,oGAAoG;IACpG,+FAA+F;IAC/F,0FAA0F;IAC1F,kGAAkG;IAClG,uFAAuF;IACvF,+FAA+F;IAC/F,iGAAiG;IACjG,iGAAiG;IACjG,oGAAoG;IACpG,gGAAgG;IAChG,4FAA4F;IAC5F,8FAA8F;IAC9F,kGAAkG;IAClG,iGAAiG;IACjG,yFAAyF;IACzF,qGAAqG;IACrG,oGAAoG;IACpG,+FAA+F;IAC/F,kGAAkG;IAClG,oGAAoG;IACpG,4DAA4D;IAC5D,EAAE;IACF,+FAA+F;IAC/F,eAAe;IACf,oBAAoB,EAAE,iBAAiB;CACd,CAAC"}
|
|
1
|
+
{"version":3,"file":"antigravity.js","sourceRoot":"","sources":["../../src/defs/antigravity.ts"],"names":[],"mappings":"AAAA,iIAAiI;AACjI,OAAO,EAAE,oBAAoB,EAAE,MAAM,aAAa,CAAC;AAGnD,yFAAyF;AACzF,iGAAiG;AACjG,kGAAkG;AAClG,kFAAkF;AAClF,gGAAgG;AAChG,2FAA2F;AAC3F,+FAA+F;AAC/F,gGAAgG;AAChG,gBAAgB;AAChB,EAAE;AACF,0CAA0C;AAC1C,gGAAgG;AAChG,kGAAkG;AAClG,mGAAmG;AACnG,yBAAyB;AACzB,EAAE;AACF,kGAAkG;AAClG,iGAAiG;AACjG,4FAA4F;AAC5F,kGAAkG;AAClG,mGAAmG;AACnG,g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jG,yFAAyF;IACzF,qGAAqG;IACrG,oGAAoG;IACpG,+FAA+F;IAC/F,kGAAkG;IAClG,oGAAoG;IACpG,4DAA4D;IAC5D,EAAE;IACF,+FAA+F;IAC/F,eAAe;IACf,oBAAoB,EAAE,iBAAiB;CACd,CAAC"}
|
package/dist/defs/claude.d.ts
CHANGED
|
@@ -16,6 +16,7 @@ export declare const claudeAgentDef: {
|
|
|
16
16
|
'--append-system-prompt': string;
|
|
17
17
|
};
|
|
18
18
|
fallbackModels: import("../types.js").RuntimeModelOption[];
|
|
19
|
+
fallbackModelsAssertedAt: string;
|
|
19
20
|
fetchModels: (_resolvedBin: string, env: import("../types.js").RuntimeEnv) => Promise<import("../types.js").RuntimeModelOption[] | null>;
|
|
20
21
|
reasoningOptions: {
|
|
21
22
|
id: string;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"claude.d.ts","sourceRoot":"","sources":["../../src/defs/claude.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"claude.d.ts","sourceRoot":"","sources":["../../src/defs/claude.ts"],"names":[],"mappings":"AAuFA,eAAO,MAAM,cAAc;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAsKA,CAAC"}
|
package/dist/defs/claude.js
CHANGED
|
@@ -30,6 +30,7 @@
|
|
|
30
30
|
import { agentCapabilities } from '../capabilities.js';
|
|
31
31
|
import { buildClaudeMcpConfigArgs, DEFAULT_MODEL_OPTION } from './shared.js';
|
|
32
32
|
import { loadMmdRouteModels } from '../mmd-routes.js';
|
|
33
|
+
import { loadAnthropicLiveModels } from '../anthropic-live-models.js';
|
|
33
34
|
/**
|
|
34
35
|
* The levels `claude --effort` accepts, as the CLI itself reports them when
|
|
35
36
|
* given an unknown one. Anything outside this set is dropped rather than
|
|
@@ -40,18 +41,43 @@ import { loadMmdRouteModels } from '../mmd-routes.js';
|
|
|
40
41
|
const CLAUDE_EFFORT_LEVELS = new Set([
|
|
41
42
|
'low', 'medium', 'high', 'xhigh', 'max',
|
|
42
43
|
]);
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
44
|
+
/**
|
|
45
|
+
* The list a picker renders when nothing live is available — no `~/.config/mms/model-routes.json`,
|
|
46
|
+
* no `ANTHROPIC_API_KEY` in the agent's environment, or a failed live call. Not the primary source:
|
|
47
|
+
* see `fetchModels` below.
|
|
48
|
+
*
|
|
49
|
+
* Ordered current-first, then the still-active-but-superseded generations, which are KEPT rather
|
|
50
|
+
* than dropped — an installed CLI may be pinned to one via its own config, and removing a working
|
|
51
|
+
* selection out from under a user is worse than listing it last.
|
|
52
|
+
*
|
|
53
|
+
* Every id below is verified present in the installed Claude Code binary's own embedded model
|
|
54
|
+
* table (2.1.261), and `claude-fable-5-1` is additionally the value in `~/.claude.json`'s
|
|
55
|
+
* server-fetched `additionalModelOptionsCache`. `claude-fable-5-mythos-5` appears in the binary but
|
|
56
|
+
* NOT in that server-fetched picker list, so it is deliberately omitted: an id in the binary is not
|
|
57
|
+
* evidence it is a selectable model.
|
|
58
|
+
*
|
|
59
|
+
* The `[1m]` long-context suffix the server-fetched cache carries on `claude-fable-5-1` is dropped
|
|
60
|
+
* here on purpose — `models.ts#sanitizeCustomModel` rejects brackets, and `claude --help` documents
|
|
61
|
+
* the bare full name as the accepted `--model` form.
|
|
62
|
+
*
|
|
63
|
+
* **This list WILL go stale, and that is now a detectable event rather than a silent one** — see
|
|
64
|
+
* `fallbackModelsAssertedAt` on the def below and `scripts/check-model-fallback-freshness.ts`.
|
|
65
|
+
*/
|
|
47
66
|
const CLAUDE_FALLBACK_MODELS = [
|
|
48
67
|
DEFAULT_MODEL_OPTION,
|
|
68
|
+
{ id: 'fable', label: 'Fable (alias)' },
|
|
49
69
|
{ id: 'sonnet', label: 'Sonnet (alias)' },
|
|
50
70
|
{ id: 'opus', label: 'Opus (alias)' },
|
|
51
71
|
{ id: 'haiku', label: 'Haiku (alias)' },
|
|
72
|
+
{ id: 'claude-fable-5-1', label: 'claude-fable-5-1' },
|
|
73
|
+
{ id: 'claude-fable-5', label: 'claude-fable-5' },
|
|
52
74
|
{ id: 'claude-opus-5', label: 'claude-opus-5' },
|
|
53
75
|
{ id: 'claude-sonnet-5', label: 'claude-sonnet-5' },
|
|
54
76
|
{ id: 'claude-haiku-4-5', label: 'claude-haiku-4-5' },
|
|
77
|
+
{ id: 'claude-opus-4-8', label: 'claude-opus-4-8' },
|
|
78
|
+
{ id: 'claude-opus-4-7', label: 'claude-opus-4-7' },
|
|
79
|
+
{ id: 'claude-opus-4-6', label: 'claude-opus-4-6' },
|
|
80
|
+
{ id: 'claude-sonnet-4-6', label: 'claude-sonnet-4-6' },
|
|
55
81
|
{ id: 'claude-opus-4-5', label: 'claude-opus-4-5' },
|
|
56
82
|
{ id: 'claude-sonnet-4-5', label: 'claude-sonnet-4-5' },
|
|
57
83
|
];
|
|
@@ -81,11 +107,27 @@ export const claudeAgentDef = {
|
|
|
81
107
|
'--effort': 'effort',
|
|
82
108
|
'--append-system-prompt': 'appendSystemPrompt',
|
|
83
109
|
},
|
|
84
|
-
// `claude` has no list-models subcommand
|
|
85
|
-
//
|
|
86
|
-
//
|
|
110
|
+
// `claude` has no list-models subcommand, so the model list is answered from the best source
|
|
111
|
+
// available, in this order:
|
|
112
|
+
//
|
|
113
|
+
// 1. Local mmd/MMS routes, when `~/.config/mms/model-routes.json` exists — an explicit local
|
|
114
|
+
// routing config is the operator's own authoritative statement of what this CLI can reach,
|
|
115
|
+
// including proxy-backed Claude-compatible models the vendor API knows nothing about.
|
|
116
|
+
// 2. The account's live Anthropic catalog, when `ANTHROPIC_API_KEY` is in this agent's
|
|
117
|
+
// environment. Merged ON TOP of the static list, never in place of it.
|
|
118
|
+
// 3. The static list, for the ordinary Local-CLI case: subscription-authenticated `claude`,
|
|
119
|
+
// no API key anywhere. This is the common path and it must stay zero-latency, which is why
|
|
120
|
+
// step 2 makes no network call at all when no key is resolvable.
|
|
121
|
+
//
|
|
122
|
+
// Returning `null` from any step is "nothing to add", and `detection.ts#fetchModels` renders
|
|
123
|
+
// `fallbackModels` for it — so a live-discovery failure can never empty or shrink the picker.
|
|
87
124
|
fallbackModels: CLAUDE_FALLBACK_MODELS,
|
|
88
|
-
|
|
125
|
+
// Asserted against the installed Claude Code 2.1.261 binary's embedded model table and
|
|
126
|
+
// `~/.claude.json`'s server-fetched `additionalModelOptionsCache`. See
|
|
127
|
+
// `RuntimeAgentDef.fallbackModelsAssertedAt` and `scripts/check-model-fallback-freshness.ts`.
|
|
128
|
+
fallbackModelsAssertedAt: '2026-09-05',
|
|
129
|
+
fetchModels: async (_resolvedBin, env) => (await loadMmdRouteModels(env, CLAUDE_FALLBACK_MODELS))
|
|
130
|
+
?? (await loadAnthropicLiveModels(env, CLAUDE_FALLBACK_MODELS)),
|
|
89
131
|
// `claude --effort <level>`. The set differs from codex's on both ends — it
|
|
90
132
|
// has `max` and has no `none`/`minimal` — so it is spelled out rather than
|
|
91
133
|
// shared, and `CLAUDE_EFFORT_LEVELS` below is what `buildArgs` validates
|
|
@@ -168,6 +210,19 @@ export const claudeAgentDef = {
|
|
|
168
210
|
// implementation rather than a copy per def. A no-op (`[]`) whenever the caller staged no
|
|
169
211
|
// file, so a host that never configured MCP injection sees no argv change.
|
|
170
212
|
args.push(...buildClaudeMcpConfigArgs(runtimeContext));
|
|
213
|
+
// Finding 2 (SEC-assistant-env-isolation-2026-09-07): `RuntimeBuildOptions.disallowedTools`/
|
|
214
|
+
// `allowedTools` are a `@jini-ai/agent-runtime`-level *mechanism* only — no product policy is
|
|
215
|
+
// baked in here (see `types.ts`'s own doc on those fields). Verified against installed Claude
|
|
216
|
+
// Code 2.1.263's own `-p --help`: `--disallowedTools, --disallowed-tools <tools...>` /
|
|
217
|
+
// `--allowedTools, --allowed-tools <tools...>`. Placed last, after every other flag, so an
|
|
218
|
+
// omitted (default) value is a true no-op — every existing call site that never passes these
|
|
219
|
+
// options sees byte-identical argv to before this change.
|
|
220
|
+
if (options.disallowedTools && options.disallowedTools.length > 0) {
|
|
221
|
+
args.push('--disallowedTools', ...options.disallowedTools);
|
|
222
|
+
}
|
|
223
|
+
if (options.allowedTools && options.allowedTools.length > 0) {
|
|
224
|
+
args.push('--allowedTools', ...options.allowedTools);
|
|
225
|
+
}
|
|
171
226
|
return args;
|
|
172
227
|
},
|
|
173
228
|
promptViaStdin: true,
|
package/dist/defs/claude.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"claude.js","sourceRoot":"","sources":["../../src/defs/claude.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA4BG;AACH,OAAO,EAAE,iBAAiB,EAAE,MAAM,oBAAoB,CAAC;AACvD,OAAO,EAAE,wBAAwB,EAAE,oBAAoB,EAAE,MAAM,aAAa,CAAC;AAC7E,OAAO,EAAE,kBAAkB,EAAE,MAAM,kBAAkB,CAAC;
|
|
1
|
+
{"version":3,"file":"claude.js","sourceRoot":"","sources":["../../src/defs/claude.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA4BG;AACH,OAAO,EAAE,iBAAiB,EAAE,MAAM,oBAAoB,CAAC;AACvD,OAAO,EAAE,wBAAwB,EAAE,oBAAoB,EAAE,MAAM,aAAa,CAAC;AAC7E,OAAO,EAAE,kBAAkB,EAAE,MAAM,kBAAkB,CAAC;AACtD,OAAO,EAAE,uBAAuB,EAAE,MAAM,6BAA6B,CAAC;AAGtE;;;;;;GAMG;AACH,MAAM,oBAAoB,GAAwB,IAAI,GAAG,CAAC;IACxD,KAAK,EAAE,QAAQ,EAAE,MAAM,EAAE,OAAO,EAAE,KAAK;CACxC,CAAC,CAAC;AAEH;;;;;;;;;;;;;;;;;;;;;GAqBG;AACH,MAAM,sBAAsB,GAAG;IAC7B,oBAAoB;IACpB,EAAE,EAAE,EAAE,OAAO,EAAE,KAAK,EAAE,eAAe,EAAE;IACvC,EAAE,EAAE,EAAE,QAAQ,EAAE,K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E,CAAC;YAClE,IAAI,CAAC,IAAI,CAAC,mBAAmB,EAAE,GAAG,OAAO,CAAC,eAAe,CAAC,CAAC;QAC7D,CAAC;QACD,IAAI,OAAO,CAAC,YAAY,IAAI,OAAO,CAAC,YAAY,CAAC,MAAM,GAAG,CAAC,EAAE,CAAC;YAC5D,IAAI,CAAC,IAAI,CAAC,gBAAgB,EAAE,GAAG,OAAO,CAAC,YAAY,CAAC,CAAC;QACvD,CAAC;QACD,OAAO,IAAI,CAAC;IACd,CAAC;IACD,cAAc,EAAE,IAAI;IACpB,iBAAiB,EAAE,aAAa;IAChC,YAAY,EAAE,oBAAoB;IAClC,oEAAoE;IACpE,oEAAoE;IACpE,+CAA+C;IAC/C,oBAAoB,EAAE,iBAAiB;IACvC,0FAA0F;IAC1F,4FAA4F;IAC5F,2FAA2F;IAC3F,0CAA0C;IAC1C,oBAAoB,EAAE,EAAE,QAAQ,EAAE,aAAa,EAAE,IAAI,EAAE,wBAAwB,EAAE,aAAa,EAAE,oBAAoB,EAAE;IACtH,oBAAoB,EAAE,IAAI;IAC1B,wEAAwE;IACxE,mEAAmE;IACnE,uEAAuE;IACvE,gEAAgE;IAChE,aAAa,EAAE,aAAa;CACL,CAAC"}
|
package/dist/defs/codex.d.ts
CHANGED
|
@@ -1,5 +1,22 @@
|
|
|
1
|
-
import type { RuntimeModelOption } from '../types.js';
|
|
1
|
+
import type { RuntimeModelOption, RuntimeReasoningOption } from '../types.js';
|
|
2
2
|
export declare function parseCodexDebugModels(stdout: string): RuntimeModelOption[] | null;
|
|
3
|
+
/**
|
|
4
|
+
* Collapses the per-model effort levels on a fetched model list into the single agent-level list a
|
|
5
|
+
* picker renders, in first-seen catalog order, behind the `default` sentinel.
|
|
6
|
+
*
|
|
7
|
+
* A UNION rather than an intersection: the alternative would offer only the levels EVERY model
|
|
8
|
+
* supports, which on the live 0.153.4 catalog is `low..xhigh` — precisely the truncated list this
|
|
9
|
+
* exists to replace, since `gpt-5.5` would veto `max`/`ultra` for `gpt-6-astra`. Over-offering is
|
|
10
|
+
* the same failure mode the previous hardcoded list already had (it listed `none`/`minimal`, which
|
|
11
|
+
* no catalog model supports), so this is strictly better; narrowing the offer per SELECTED model is
|
|
12
|
+
* a picker-side concern, and the data for it rides along on each row's `reasoning` field.
|
|
13
|
+
*
|
|
14
|
+
* @param models - A fetched model list; rows without `reasoning` contribute nothing.
|
|
15
|
+
* @returns The union, or `null` when no row carried levels — the caller's signal to keep its own
|
|
16
|
+
* static list rather than replace it with an empty one.
|
|
17
|
+
* @complexity O(n·m) over n models and their m levels.
|
|
18
|
+
*/
|
|
19
|
+
export declare function unionModelReasoningOptions(models: readonly RuntimeModelOption[]): RuntimeReasoningOption[] | null;
|
|
3
20
|
export declare function codexNeedsDangerFullAccessSandbox(platform?: NodeJS.Platform, env?: NodeJS.ProcessEnv): boolean;
|
|
4
21
|
export declare const codexAgentDef: {
|
|
5
22
|
id: string;
|
|
@@ -16,16 +33,19 @@ export declare const codexAgentDef: {
|
|
|
16
33
|
timeoutMs: number;
|
|
17
34
|
};
|
|
18
35
|
fallbackModels: RuntimeModelOption[];
|
|
36
|
+
fallbackModelsAssertedAt: string;
|
|
19
37
|
reasoningOptions: {
|
|
20
38
|
id: string;
|
|
21
39
|
label: string;
|
|
22
40
|
}[];
|
|
23
|
-
|
|
41
|
+
deriveReasoningOptions: typeof unionModelReasoningOptions;
|
|
42
|
+
buildArgs: (_prompt: string, imagePaths: string[], extraAllowedDirs?: string[] | undefined, options?: import("../types.js").RuntimeBuildOptions | undefined, runtimeContext?: import("../types.js").RuntimeContext | undefined) => string[];
|
|
24
43
|
promptViaStdin: true;
|
|
25
44
|
resumesSessionViaCli: true;
|
|
26
45
|
capturesSessionIdFromStream: true;
|
|
27
46
|
streamFormat: string;
|
|
28
47
|
eventParser: string;
|
|
48
|
+
imageDelivery: "native";
|
|
29
49
|
externalMcpInjection: "codex-toml";
|
|
30
50
|
};
|
|
31
51
|
//# sourceMappingURL=codex.d.ts.map
|
package/dist/defs/codex.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"codex.d.ts","sourceRoot":"","sources":["../../src/defs/codex.ts"],"names":[],"mappings":"AASA,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,aAAa,CAAC;
|
|
1
|
+
{"version":3,"file":"codex.d.ts","sourceRoot":"","sources":["../../src/defs/codex.ts"],"names":[],"mappings":"AASA,OAAO,KAAK,EAAE,kBAAkB,EAAE,sBAAsB,EAAE,MAAM,aAAa,CAAC;AA+H9E,wBAAgB,qBAAqB,CAAC,MAAM,EAAE,MAAM,GAAG,kBAAkB,EAAE,GAAG,IAAI,CAajF;AAED;;;;;;;;;;;;;;;GAeG;AACH,wBAAgB,0BAA0B,CACxC,MAAM,EAAE,SAAS,kBAAkB,EAAE,GACpC,sBAAsB,EAAE,GAAG,IAAI,CAWjC;AAED,wBAAgB,iCAAiC,CAC/C,QAAQ,GAAE,MAAM,CAAC,QAA2B,EAC5C,GAAG,GAAE,MAAM,CAAC,UAAwB,GACnC,OAAO,CAST;AAED,eAAO,MAAM,aAAa;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAuOC,CAAC"}
|
package/dist/defs/codex.js
CHANGED
|
@@ -7,7 +7,88 @@
|
|
|
7
7
|
* `source-map.md` for the exact original names.
|
|
8
8
|
*/
|
|
9
9
|
import { DEFAULT_MODEL_OPTION, clampCodexReasoning } from './shared.js';
|
|
10
|
-
|
|
10
|
+
/**
|
|
11
|
+
* The `visibility` values that mean "reachable by id, but do not render in a picker".
|
|
12
|
+
*
|
|
13
|
+
* A SET rather than one literal, because the vendor has demonstrably used more than one spelling of
|
|
14
|
+
* this single state: the shipped Codex catalog says `hide` (verified live against
|
|
15
|
+
* `codex debug models` 0.153.4 — `gpt-reserve` and `codex-auto-review` both carry it), while this
|
|
16
|
+
* adapter was originally written against `hidden`. Matching only one of them let every `hide` entry
|
|
17
|
+
* render in the Local-CLI model picker. Being permissive on input costs nothing here — no real
|
|
18
|
+
* catalog value is a cased or padded variant of a DIFFERENT visibility state — and it means a third
|
|
19
|
+
* spelling does not silently reopen the same hole.
|
|
20
|
+
*/
|
|
21
|
+
const HIDDEN_MODEL_VISIBILITIES = new Set(['hide', 'hidden']);
|
|
22
|
+
function isHiddenVisibility(visibility) {
|
|
23
|
+
return typeof visibility === 'string' && HIDDEN_MODEL_VISIBILITIES.has(visibility.trim().toLowerCase());
|
|
24
|
+
}
|
|
25
|
+
/**
|
|
26
|
+
* Display labels for the effort levels, keyed by the catalog's own `effort` token.
|
|
27
|
+
*
|
|
28
|
+
* Spelled out rather than derived by capitalizing, because `xhigh` renders as `XHigh` — the exact
|
|
29
|
+
* casing the static `reasoningOptions` list below already used, so a live-derived list and a
|
|
30
|
+
* fallback list read identically in the picker. Unknown tokens (a level the vendor adds tomorrow)
|
|
31
|
+
* fall through to a capitalize, which is right often enough and is never worse than dropping the
|
|
32
|
+
* level entirely.
|
|
33
|
+
*/
|
|
34
|
+
const CODEX_EFFORT_LABELS = {
|
|
35
|
+
none: 'None', minimal: 'Minimal', low: 'Low', medium: 'Medium',
|
|
36
|
+
high: 'High', xhigh: 'XHigh', max: 'Max', ultra: 'Ultra',
|
|
37
|
+
};
|
|
38
|
+
function codexEffortLabel(effort) {
|
|
39
|
+
return CODEX_EFFORT_LABELS[effort] ?? `${effort.charAt(0).toUpperCase()}${effort.slice(1)}`;
|
|
40
|
+
}
|
|
41
|
+
/** Accepts both catalog spellings of a level: the `{ effort, description }` object the live 0.153.x
|
|
42
|
+
* catalog emits, and a bare string (the shape an older/simpler catalog could use). */
|
|
43
|
+
function codexEffortToken(raw) {
|
|
44
|
+
if (typeof raw === 'string')
|
|
45
|
+
return raw.trim();
|
|
46
|
+
if (raw && typeof raw === 'object') {
|
|
47
|
+
const effort = raw.effort;
|
|
48
|
+
if (typeof effort === 'string')
|
|
49
|
+
return effort.trim();
|
|
50
|
+
}
|
|
51
|
+
return '';
|
|
52
|
+
}
|
|
53
|
+
/**
|
|
54
|
+
* Reads one catalog entry's `supported_reasoning_levels` into picker options.
|
|
55
|
+
*
|
|
56
|
+
* @returns The levels in catalog order, de-duplicated; `undefined` when the entry declares none, so
|
|
57
|
+
* the model row simply omits the field rather than claiming "supports no effort levels".
|
|
58
|
+
* @complexity O(n) in the entry's declared level count.
|
|
59
|
+
*/
|
|
60
|
+
function parseCodexEntryReasoning(raw) {
|
|
61
|
+
if (!Array.isArray(raw))
|
|
62
|
+
return undefined;
|
|
63
|
+
const seen = new Set();
|
|
64
|
+
const out = [];
|
|
65
|
+
for (const level of raw) {
|
|
66
|
+
const effort = codexEffortToken(level);
|
|
67
|
+
if (!effort || seen.has(effort))
|
|
68
|
+
continue;
|
|
69
|
+
seen.add(effort);
|
|
70
|
+
out.push({ id: effort, label: codexEffortLabel(effort) });
|
|
71
|
+
}
|
|
72
|
+
return out.length > 0 ? out : undefined;
|
|
73
|
+
}
|
|
74
|
+
function codexEntryId(entry) {
|
|
75
|
+
if (typeof entry.slug === 'string')
|
|
76
|
+
return entry.slug.trim();
|
|
77
|
+
if (typeof entry.id === 'string')
|
|
78
|
+
return entry.id.trim();
|
|
79
|
+
return '';
|
|
80
|
+
}
|
|
81
|
+
function codexEntryLabel(entry, id) {
|
|
82
|
+
if (typeof entry.display_name === 'string' && entry.display_name.trim())
|
|
83
|
+
return entry.display_name.trim();
|
|
84
|
+
if (typeof entry.name === 'string' && entry.name.trim())
|
|
85
|
+
return entry.name.trim();
|
|
86
|
+
return id;
|
|
87
|
+
}
|
|
88
|
+
/** JSON-decodes `codex debug models` stdout down to its `models` array, or `null` for any shape
|
|
89
|
+
* that isn't one. Split out of `parseCodexDebugModels` so that function stays a single readable
|
|
90
|
+
* loop over already-validated input. */
|
|
91
|
+
function readCodexCatalogEntries(stdout) {
|
|
11
92
|
let parsed;
|
|
12
93
|
try {
|
|
13
94
|
parsed = JSON.parse(String(stdout || ''));
|
|
@@ -18,29 +99,76 @@ export function parseCodexDebugModels(stdout) {
|
|
|
18
99
|
if (!parsed || typeof parsed !== 'object')
|
|
19
100
|
return null;
|
|
20
101
|
const models = parsed.models;
|
|
21
|
-
|
|
102
|
+
return Array.isArray(models) ? models : null;
|
|
103
|
+
}
|
|
104
|
+
/**
|
|
105
|
+
* Parses `codex debug models` stdout into the Local-CLI picker's model rows.
|
|
106
|
+
*
|
|
107
|
+
* Each row carries the model's OWN supported effort levels when the catalog reports them — see
|
|
108
|
+
* `RuntimeModelOption.reasoning`. Hidden entries are dropped (see `isHiddenVisibility`).
|
|
109
|
+
*
|
|
110
|
+
* @returns The rows, `default` sentinel first; `null` when the output is unparseable or yielded no
|
|
111
|
+
* model at all, which is `detection.ts#fetchModels`'s signal to keep the static fallback list.
|
|
112
|
+
* @complexity O(n·m) — one pass over n catalog entries, each with m declared effort levels.
|
|
113
|
+
*/
|
|
114
|
+
/** One catalog entry as a picker row, or `null` when it is malformed, hidden, id-less, or a repeat
|
|
115
|
+
* of an id already taken. Split from the loop below purely to keep both units small. */
|
|
116
|
+
function codexCatalogRow(raw, takenIds) {
|
|
117
|
+
if (!raw || typeof raw !== 'object')
|
|
118
|
+
return null;
|
|
119
|
+
const entry = raw;
|
|
120
|
+
if (isHiddenVisibility(entry.visibility))
|
|
121
|
+
return null;
|
|
122
|
+
const id = codexEntryId(entry);
|
|
123
|
+
if (!id || takenIds.has(id))
|
|
124
|
+
return null;
|
|
125
|
+
const reasoning = parseCodexEntryReasoning(entry.supported_reasoning_levels);
|
|
126
|
+
return { id, label: codexEntryLabel(entry, id), ...(reasoning ? { reasoning } : {}) };
|
|
127
|
+
}
|
|
128
|
+
export function parseCodexDebugModels(stdout) {
|
|
129
|
+
const models = readCodexCatalogEntries(stdout);
|
|
130
|
+
if (!models)
|
|
22
131
|
return null;
|
|
23
132
|
const out = [DEFAULT_MODEL_OPTION];
|
|
24
133
|
const seen = new Set([DEFAULT_MODEL_OPTION.id]);
|
|
25
134
|
for (const raw of models) {
|
|
26
|
-
|
|
135
|
+
const row = codexCatalogRow(raw, seen);
|
|
136
|
+
if (!row)
|
|
27
137
|
continue;
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
continue;
|
|
31
|
-
const id = typeof entry.slug === 'string' ? entry.slug.trim() : typeof entry.id === 'string' ? entry.id.trim() : '';
|
|
32
|
-
if (!id || seen.has(id))
|
|
33
|
-
continue;
|
|
34
|
-
seen.add(id);
|
|
35
|
-
const label = typeof entry.display_name === 'string' && entry.display_name.trim()
|
|
36
|
-
? entry.display_name.trim()
|
|
37
|
-
: typeof entry.name === 'string' && entry.name.trim()
|
|
38
|
-
? entry.name.trim()
|
|
39
|
-
: id;
|
|
40
|
-
out.push({ id, label });
|
|
138
|
+
seen.add(row.id);
|
|
139
|
+
out.push(row);
|
|
41
140
|
}
|
|
42
141
|
return out.length > 1 ? out : null;
|
|
43
142
|
}
|
|
143
|
+
/**
|
|
144
|
+
* Collapses the per-model effort levels on a fetched model list into the single agent-level list a
|
|
145
|
+
* picker renders, in first-seen catalog order, behind the `default` sentinel.
|
|
146
|
+
*
|
|
147
|
+
* A UNION rather than an intersection: the alternative would offer only the levels EVERY model
|
|
148
|
+
* supports, which on the live 0.153.4 catalog is `low..xhigh` — precisely the truncated list this
|
|
149
|
+
* exists to replace, since `gpt-5.5` would veto `max`/`ultra` for `gpt-6-astra`. Over-offering is
|
|
150
|
+
* the same failure mode the previous hardcoded list already had (it listed `none`/`minimal`, which
|
|
151
|
+
* no catalog model supports), so this is strictly better; narrowing the offer per SELECTED model is
|
|
152
|
+
* a picker-side concern, and the data for it rides along on each row's `reasoning` field.
|
|
153
|
+
*
|
|
154
|
+
* @param models - A fetched model list; rows without `reasoning` contribute nothing.
|
|
155
|
+
* @returns The union, or `null` when no row carried levels — the caller's signal to keep its own
|
|
156
|
+
* static list rather than replace it with an empty one.
|
|
157
|
+
* @complexity O(n·m) over n models and their m levels.
|
|
158
|
+
*/
|
|
159
|
+
export function unionModelReasoningOptions(models) {
|
|
160
|
+
const seen = new Set();
|
|
161
|
+
const out = [];
|
|
162
|
+
for (const model of models) {
|
|
163
|
+
for (const level of model.reasoning ?? []) {
|
|
164
|
+
if (seen.has(level.id))
|
|
165
|
+
continue;
|
|
166
|
+
seen.add(level.id);
|
|
167
|
+
out.push(level);
|
|
168
|
+
}
|
|
169
|
+
}
|
|
170
|
+
return out.length > 0 ? [{ id: 'default', label: 'Default' }, ...out] : null;
|
|
171
|
+
}
|
|
44
172
|
export function codexNeedsDangerFullAccessSandbox(platform = process.platform, env = process.env) {
|
|
45
173
|
// Operator override for deployments where Codex cannot create its
|
|
46
174
|
// workspace-write sandbox, for example unprivileged Linux containers.
|
|
@@ -69,12 +197,24 @@ export const codexAgentDef = {
|
|
|
69
197
|
args: ['login', 'status'],
|
|
70
198
|
timeoutMs: 5000,
|
|
71
199
|
},
|
|
200
|
+
// The OLD-CLI path: a Codex build new enough to answer `debug models` never renders this list.
|
|
201
|
+
// Kept current anyway — a stale fallback is invisible until the day the catalog probe fails, and
|
|
202
|
+
// that is the worst moment to discover it. Current entries first, superseded ones kept below
|
|
203
|
+
// rather than dropped.
|
|
72
204
|
fallbackModels: [
|
|
73
205
|
DEFAULT_MODEL_OPTION,
|
|
206
|
+
{ id: 'gpt-6-astra', label: 'gpt-6-astra' },
|
|
207
|
+
{ id: 'gpt-5.6-sol', label: 'gpt-5.6-sol' },
|
|
208
|
+
{ id: 'gpt-5.6-terra', label: 'gpt-5.6-terra' },
|
|
209
|
+
{ id: 'gpt-5.6-luna', label: 'gpt-5.6-luna' },
|
|
74
210
|
{ id: 'gpt-5.5', label: 'gpt-5.5' },
|
|
75
211
|
{ id: 'gpt-5.4', label: 'gpt-5.4' },
|
|
76
212
|
{ id: 'gpt-5.4-mini', label: 'gpt-5.4-mini' },
|
|
77
213
|
{ id: 'gpt-5.3-codex', label: 'gpt-5.3-codex' },
|
|
214
|
+
// Found by the freshness guard (R13/MF3) against an older Codex install's BUNDLED catalog:
|
|
215
|
+
// codex-cli 0.140.0 lists gpt-5.2 as visible when it cannot reach the backend, which is
|
|
216
|
+
// exactly the population this fallback list serves.
|
|
217
|
+
{ id: 'gpt-5.2', label: 'gpt-5.2' },
|
|
78
218
|
{ id: 'gpt-5.1', label: 'gpt-5.1' },
|
|
79
219
|
{ id: 'gpt-5.1-codex-mini', label: 'gpt-5.1-codex-mini' },
|
|
80
220
|
{ id: 'gpt-5-codex', label: 'gpt-5-codex' },
|
|
@@ -82,6 +222,15 @@ export const codexAgentDef = {
|
|
|
82
222
|
{ id: 'o3', label: 'o3' },
|
|
83
223
|
{ id: 'o4-mini', label: 'o4-mini' },
|
|
84
224
|
],
|
|
225
|
+
// Asserted against a live `codex debug models` run (codex-cli 0.153.4). See
|
|
226
|
+
// `RuntimeAgentDef.fallbackModelsAssertedAt` and `scripts/check-model-fallback-freshness.ts`.
|
|
227
|
+
fallbackModelsAssertedAt: '2026-09-05',
|
|
228
|
+
// The OLD-CLI path only. A Codex build new enough to answer `debug models` gets its effort list
|
|
229
|
+
// derived from that catalog instead (see `deriveReasoningOptions` below), which is what makes
|
|
230
|
+
// `max` and `ultra` reachable. This list is deliberately NOT widened to match: it is what a build
|
|
231
|
+
// too old to have a catalog gets, and `none`/`minimal` — which no model in the current catalog
|
|
232
|
+
// supports — are exactly the levels such a build did accept. `clampCodexReasoning` still maps
|
|
233
|
+
// `minimal` to `low` for the late GPT-5 families.
|
|
85
234
|
reasoningOptions: [
|
|
86
235
|
{ id: 'default', label: 'Default' },
|
|
87
236
|
{ id: 'none', label: 'None' },
|
|
@@ -91,6 +240,10 @@ export const codexAgentDef = {
|
|
|
91
240
|
{ id: 'high', label: 'High' },
|
|
92
241
|
{ id: 'xhigh', label: 'XHigh' },
|
|
93
242
|
],
|
|
243
|
+
// Replaces the list above whenever the live catalog actually reported per-model levels. See
|
|
244
|
+
// `RuntimeAgentDef.deriveReasoningOptions` for the contract and `unionModelReasoningOptions` for
|
|
245
|
+
// why a union and not an intersection.
|
|
246
|
+
deriveReasoningOptions: unionModelReasoningOptions,
|
|
94
247
|
// Prompt is delivered via stdin pipe (gated by `promptViaStdin: true`
|
|
95
248
|
// below) to avoid Windows `spawn ENAMETOOLONG` while keeping Codex on
|
|
96
249
|
// its structured JSON stream. Recent Codex CLI versions reject a bare
|
|
@@ -98,7 +251,7 @@ export const codexAgentDef = {
|
|
|
98
251
|
// `error: unexpected argument '-' found` and the agent exits with
|
|
99
252
|
// code 2 before any prompt is read. The pipe alone is sufficient for
|
|
100
253
|
// stdin delivery.
|
|
101
|
-
buildArgs: (_prompt,
|
|
254
|
+
buildArgs: (_prompt, imagePaths, extraAllowedDirs = [], options = {}, runtimeContext = {}) => {
|
|
102
255
|
// Codex CLI's `workspace-write` sandbox blocks shell invocations on
|
|
103
256
|
// Windows ("powershell.exe ... rejected: blocked by policy"),
|
|
104
257
|
// because Codex has no working OS-level sandbox on Windows and falls
|
|
@@ -173,6 +326,20 @@ export const codexAgentDef = {
|
|
|
173
326
|
// is exposed as `model_reasoning_effort`.
|
|
174
327
|
args.push('-c', `model_reasoning_effort="${effort}"`);
|
|
175
328
|
}
|
|
329
|
+
// Own dedicated `-i/--image <FILE>` argv flag — confirmed against a
|
|
330
|
+
// real installed Codex CLI (0.151.0) on BOTH `codex exec --help` and
|
|
331
|
+
// `codex exec resume --help`, so unlike `-C`/`--add-dir` above this is
|
|
332
|
+
// not create-only and needs no `resumeSessionId` guard. Pushed for
|
|
333
|
+
// every claimed attachment path the caller hands in here, not only
|
|
334
|
+
// ones actually of kind "image": the caller
|
|
335
|
+
// (`agent-daemon-server.ts#resolveAttachmentRunFields`, in the consuming product) already
|
|
336
|
+
// stopped filtering by kind for the same reason `qoderAgentDef`'s
|
|
337
|
+
// `--attachment` above does not filter either — a same-shaped
|
|
338
|
+
// repeated-flag mechanism, see `imageDelivery`'s doc below.
|
|
339
|
+
const attachments = (imagePaths || []).filter((p) => typeof p === 'string' && p.length > 0);
|
|
340
|
+
for (const p of attachments) {
|
|
341
|
+
args.push('-i', p);
|
|
342
|
+
}
|
|
176
343
|
// The resume thread id is the positional SESSION_ID argument of
|
|
177
344
|
// `codex exec resume`; it must come after the flags. The prompt is
|
|
178
345
|
// delivered via stdin (promptViaStdin), so the thread id is the final
|
|
@@ -192,6 +359,14 @@ export const codexAgentDef = {
|
|
|
192
359
|
capturesSessionIdFromStream: true,
|
|
193
360
|
streamFormat: 'json-event-stream',
|
|
194
361
|
eventParser: 'codex',
|
|
362
|
+
// Own dedicated `-i/--image <FILE>` argv flag, built above — a real
|
|
363
|
+
// native CLI mechanism, not a workaround. See
|
|
364
|
+
// `types.ts#RuntimeAgentDef.imageDelivery`'s doc. Before this, no
|
|
365
|
+
// `imageDelivery` was declared at all, which per that field's own
|
|
366
|
+
// `undefined` doc means "images are silently dropped exactly as they
|
|
367
|
+
// were previously" — confirmed live: `buildArgs` never read the paths,
|
|
368
|
+
// and no other def-specific mechanism named them to the model either.
|
|
369
|
+
imageDelivery: 'native',
|
|
195
370
|
// `'codex-toml'`: Codex CLI's native MCP config is a `[mcp_servers.<name>]` TOML table under
|
|
196
371
|
// `CODEX_HOME` (`~/.codex/config.toml` by default) — TOML, not the JSON any of the other four
|
|
197
372
|
// wired strategies produce, and `codex mcp add`/`-c mcp_servers.<name>...=` both write to (or
|
package/dist/defs/codex.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"codex.js","sourceRoot":"","sources":["../../src/defs/codex.ts"],"names":[],"mappings":"AAAA;;;;;;;GAOG;AACH,OAAO,EAAE,oBAAoB,EAAE,mBAAmB,EAAE,MAAM,aAAa,CAAC;AAIxE,MAAM,
|
|
1
|
+
{"version":3,"file":"codex.js","sourceRoot":"","sources":["../../src/defs/codex.ts"],"names":[],"mappings":"AAAA;;;;;;;GAOG;AACH,OAAO,EAAE,oBAAoB,EAAE,mBAAmB,EAAE,MAAM,aAAa,CAAC;AAIxE;;;;;;;;;;GAUG;AACH,MAAM,yBAAyB,GAAwB,IAAI,GAAG,CAAC,CAAC,MAAM,EAAE,QAAQ,CAAC,CAAC,CAAC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iG;IACjG,6FAA6F;IAC7F,iGAAiG;IACjG,yBAAyB;IACzB,iGAAiG;IACjG,0FAA0F;IAC1F,iFAAiF;IACjF,+FAA+F;IAC/F,6FAA6F;IAC7F,gFAAgF;IAChF,EAAE;IACF,qGAAqG;IACrG,mGAAmG;IACnG,oBAAoB,EAAE,YAAY;CACX,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"copilot.d.ts","sourceRoot":"","sources":["../../src/defs/copilot.ts"],"names":[],"mappings":"AAaA,eAAO,MAAM,eAAe;;;;;;;;;;
|
|
1
|
+
{"version":3,"file":"copilot.d.ts","sourceRoot":"","sources":["../../src/defs/copilot.ts"],"names":[],"mappings":"AAaA,eAAO,MAAM,eAAe;;;;;;;;;;CA6FD,CAAC"}
|
package/dist/defs/copilot.js
CHANGED
|
@@ -87,16 +87,19 @@ export const copilotAgentDef = {
|
|
|
87
87
|
// operator to override this via its own env var if it wants it
|
|
88
88
|
// tighter.
|
|
89
89
|
inactivityTimeoutMs: 30 * 60 * 1000,
|
|
90
|
-
// No `externalMcpInjection
|
|
91
|
-
//
|
|
92
|
-
//
|
|
93
|
-
//
|
|
94
|
-
// `
|
|
95
|
-
//
|
|
96
|
-
//
|
|
97
|
-
//
|
|
98
|
-
//
|
|
99
|
-
//
|
|
100
|
-
//
|
|
90
|
+
// No `externalMcpInjection` yet. Copilot CLI has an explicit, run-scoped
|
|
91
|
+
// flag for this: `--additional-mcp-config <json|@path>`, documented as
|
|
92
|
+
// session-only and the highest-priority MCP source (it wins over both
|
|
93
|
+
// `~/.copilot/mcp-config.json` and the auto-discovered project
|
|
94
|
+
// `.github/mcp.json`/`.mcp.json`) — so, unlike the global-file or
|
|
95
|
+
// auto-discovery routes this comment previously (incorrectly) treated as
|
|
96
|
+
// the only options, this one needs neither `COPILOT_HOME` redirection nor
|
|
97
|
+
// `GITHUB_COPILOT_PROMPT_MODE_WORKSPACE_MCP` trust gating. What's still
|
|
98
|
+
// unconfirmed is the exact JSON shape the flag expects at its top level
|
|
99
|
+
// (official docs describe the flag's purpose but not its schema
|
|
100
|
+
// verbatim) — needs a local `copilot --help`/`copilot mcp --help` check
|
|
101
|
+
// before wiring, not a guess. Closest candidate for a new strategy: pass
|
|
102
|
+
// `@<run-scoped-file>` the same way `'claude-mcp-json'` passes a path,
|
|
103
|
+
// once the schema is confirmed.
|
|
101
104
|
};
|
|
102
105
|
//# sourceMappingURL=copilot.js.map
|
package/dist/defs/copilot.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"copilot.js","sourceRoot":"","sources":["../../src/defs/copilot.ts"],"names":[],"mappings":"AAAA;;;;;;;;;GASG;AACH,OAAO,EAAE,oBAAoB,EAAE,MAAM,aAAa,CAAC;AAGnD,MAAM,CAAC,MAAM,eAAe,GAAG;IAC3B,EAAE,EAAE,SAAS;IACb,IAAI,EAAE,oBAAoB;IAC1B,GAAG,EAAE,SAAS;IACd,WAAW,EAAE,CAAC,WAAW,CAAC;IAC1B,iEAAiE;IACjE,6DAA6D;IAC7D,iEAAiE;IACjE,+DAA+D;IAC/D,kEAAkE;IAClE,mEAAmE;IACnE,+CAA+C;IAC/C,EAAE;IACF,kEAAkE;IAClE,qEAAqE;IACrE,6DAA6D;IAC7D,kEAAkE;IAClE,6DAA6D;IAC7D,kEAAkE;IAClE,gEAAgE;IAChE,8DAA8D;IAC9D,+DAA+D;IAC/D,wDAAwD;IACxD,EAAE;IACF,kEAAkE;IAClE,gEAAgE;IAChE,gEAAgE;IAChE,+DAA+D;IAC/D,iEAAiE;IACjE,gEAAgE;IAChE,EAAE;IACF,+DAA+D;IAC/D,yDAAyD;IACzD,EAAE;IACF,8DAA8D;IAC9D,8DAA8D;IAC9D,iCAAiC;IACjC,EAAE;IACF,8DAA8D;IAC9D,iEAAiE;IACjE,4DAA4D;IAC5D,kEAAkE;IAClE,YAAY;IACZ,cAAc,EAAE;QACd,oBAAoB;QACpB,EAAE,EAAE,EAAE,mBAAmB,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AAC;QACF,IAAI,OAAO,CAAC,KAAK,IAAI,OAAO,CAAC,KAAK,KAAK,SAAS,EAAE,CAAC;YACjD,IAAI,CAAC,IAAI,CAAC,SAAS,EAAE,OAAO,CAAC,KAAK,CAAC,CAAC;QACtC,CAAC;QACD,MAAM,IAAI,GAAG,CAAC,gBAAgB,IAAI,EAAE,CAAC,CAAC,MAAM,CAC1C,CAAC,CAAC,EAAE,EAAE,CAAC,OAAO,CAAC,KAAK,QAAQ,IAAI,CAAC,CAAC,MAAM,GAAG,CAAC,CAC7C,CAAC;QACF,KAAK,MAAM,CAAC,IAAI,IAAI;YAAE,IAAI,CAAC,IAAI,CAAC,WAAW,EAAE,CAAC,CAAC,CAAC;QAChD,OAAO,IAAI,CAAC;IACd,CAAC;IACD,cAAc,EAAE,IAAI;IACpB,YAAY,EAAE,qBAAqB;IACnC,oEAAoE;IACpE,gEAAgE;IAChE,gEAAgE;IAChE,mEAAmE;IACnE,iEAAiE;IACjE,kEAAkE;IAClE,mEAAmE;IACnE,gEAAgE;IAChE,+DAA+D;IAC/D,WAAW;IACX,mBAAmB,EAAE,EAAE,GAAG,EAAE,GAAG,IAAI;IACnC,yEAAyE;IACzE,uEAAuE;IACvE,sEAAsE;IACtE,+DAA+D;IAC/D,kEAAkE;IAClE,yEAAyE;IACzE,0EAA0E;IAC1E,wEAAwE;IACxE,wEAAwE;IACxE,gEAAgE;IAChE,wEAAwE;IACxE,yEAAyE;IACzE,uEAAuE;IACvE,gCAAgC;CACT,CAAC"}
|
package/dist/detection.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { type AmrProfileResolver } from './amr-profile-resolver.js';
|
|
2
2
|
import type { AgentDiagnostic, DetectedAgent, RuntimeAgentDef, RuntimeModelSource, RuntimeModelOption } from './types.js';
|
|
3
|
-
export declare function detectAgents(configuredEnvByAgent?: Record<string, Record<string, string>>, amrProfileResolver?: AmrProfileResolver): Promise<(Omit<RuntimeAgentDef, "buildArgs" | "listModels" | "fetchModels" | "fallbackModels" | "helpArgs" | "capabilityFlags" | "fallbackBins" | "versionProbeTimeoutMs" | "maxPromptArgBytes" | "env" | "inactivityTimeoutMs" | "authProbe" | "needsAgentLogFile" | "stdoutPolicy" | "runtimeLock"> & {
|
|
3
|
+
export declare function detectAgents(configuredEnvByAgent?: Record<string, Record<string, string>>, amrProfileResolver?: AmrProfileResolver): Promise<(Omit<RuntimeAgentDef, "buildArgs" | "listModels" | "fetchModels" | "deriveReasoningOptions" | "fallbackModels" | "fallbackModelsAssertedAt" | "helpArgs" | "capabilityFlags" | "fallbackBins" | "versionProbeTimeoutMs" | "maxPromptArgBytes" | "env" | "inactivityTimeoutMs" | "authProbe" | "needsAgentLogFile" | "stdoutPolicy" | "runtimeLock"> & {
|
|
4
4
|
models: RuntimeModelOption[];
|
|
5
5
|
modelsSource: RuntimeModelSource;
|
|
6
6
|
available: boolean;
|
package/dist/detection.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"detection.d.ts","sourceRoot":"","sources":["../src/detection.ts"],"names":[],"mappings":"AAqBA,OAAO,EAA0B,KAAK,kBAAkB,EAAE,MAAM,2BAA2B,CAAC;AAE5F,OAAO,KAAK,EACV,eAAe,EACf,aAAa,EACb,eAAe,EAEf,kBAAkB,EAClB,kBAAkB,
|
|
1
|
+
{"version":3,"file":"detection.d.ts","sourceRoot":"","sources":["../src/detection.ts"],"names":[],"mappings":"AAqBA,OAAO,EAA0B,KAAK,kBAAkB,EAAE,MAAM,2BAA2B,CAAC;AAE5F,OAAO,KAAK,EACV,eAAe,EACf,aAAa,EACb,eAAe,EAEf,kBAAkB,EAClB,kBAAkB,EAEnB,MAAM,YAAY,CAAC;AAoSpB,wBAAsB,YAAY,CAChC,oBAAoB,GAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAM,EACjE,kBAAkB,GAAE,kBAA2C;;;;;;;;;MAgBhE;AAQD,wBAAuB,kBAAkB,CACvC,oBAAoB,GAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAM,EACjE,kBAAkB,GAAE,kBAA2C,GAC9D,cAAc,CAAC,aAAa,CAAC,CAa/B"}
|
package/dist/detection.js
CHANGED
|
@@ -153,6 +153,22 @@ async function probeCapabilities(def, launchPath, env) {
|
|
|
153
153
|
return {};
|
|
154
154
|
}
|
|
155
155
|
}
|
|
156
|
+
/**
|
|
157
|
+
* The effort-level override a live model catalog earns, if any.
|
|
158
|
+
*
|
|
159
|
+
* `stripFns` already carries the def's static `reasoningOptions` through, so this returns a spread
|
|
160
|
+
* fragment that REPLACES it only when the def declares `deriveReasoningOptions` AND that hook found
|
|
161
|
+
* real per-model levels in the fetched list. Every other case — no hook, an older CLI whose catalog
|
|
162
|
+
* carries no levels, a fallback list — returns `{}` and leaves the static declaration untouched, so
|
|
163
|
+
* this can only add accuracy and never empties a picker's effort choices.
|
|
164
|
+
*
|
|
165
|
+
* @param models - The models `fetchModels` actually surfaced (live or fallback).
|
|
166
|
+
* @complexity O(1) here; the hook's own cost is documented on `deriveReasoningOptions`.
|
|
167
|
+
*/
|
|
168
|
+
function derivedReasoningOverride(def, models) {
|
|
169
|
+
const derived = def.deriveReasoningOptions?.(models);
|
|
170
|
+
return derived && derived.length > 0 ? { reasoningOptions: derived } : {};
|
|
171
|
+
}
|
|
156
172
|
async function probe(def, configuredEnv = {}, amrProfileResolver) {
|
|
157
173
|
// Detection must probe the exact path the runtime will spawn, not just
|
|
158
174
|
// the PATH-visible shim. This is load-bearing under nvm/fnm/mise: the
|
|
@@ -188,6 +204,7 @@ async function probe(def, configuredEnv = {}, amrProfileResolver) {
|
|
|
188
204
|
const authDiagnostic = auth ? buildAuthDiagnostic(def, auth) : null;
|
|
189
205
|
return {
|
|
190
206
|
...stripFns(def),
|
|
207
|
+
...derivedReasoningOverride(def, surfacedModelResult.models),
|
|
191
208
|
models: surfacedModelResult.models,
|
|
192
209
|
modelsSource: surfacedModelResult.source,
|
|
193
210
|
available: true,
|
|
@@ -199,6 +216,10 @@ async function probe(def, configuredEnv = {}, amrProfileResolver) {
|
|
|
199
216
|
};
|
|
200
217
|
}
|
|
201
218
|
function stripFns(def) {
|
|
219
|
+
// `deriveReasoningOptions` is dropped with the other closures, and for the same reason
|
|
220
|
+
// `buildArgs` is: a registry consumer has no model list to feed it and `JSON.stringify`
|
|
221
|
+
// would publish nothing where the function was. Its RESULT already shipped — `probe`
|
|
222
|
+
// applies it to `reasoningOptions` before this projection runs.
|
|
202
223
|
// Drop the buildArgs / listModels closures but keep declarative metadata
|
|
203
224
|
// (reasoningOptions, streamFormat, name, bin, etc.). `models` is
|
|
204
225
|
// populated separately by `fetchModels`, so we strip the static
|
|
@@ -213,7 +234,7 @@ function stripFns(def) {
|
|
|
213
234
|
// matter extra because they carry closures — `JSON.stringify` would drop
|
|
214
235
|
// the functions but keep their enclosing objects, publishing a misleading
|
|
215
236
|
// `{"buffering":"until-close"}` / `{}` instead of omitting them.
|
|
216
|
-
const { buildArgs: _buildArgs, listModels: _listModels, fetchModels: _fetchModels, fallbackModels: _fallbackModels, helpArgs: _helpArgs, capabilityFlags: _capabilityFlags, fallbackBins: _fallbackBins, versionProbeTimeoutMs: _versionProbeTimeoutMs, maxPromptArgBytes: _maxPromptArgBytes, env: _env, inactivityTimeoutMs: _inactivityTimeoutMs, authProbe: _authProbe, needsAgentLogFile: _needsAgentLogFile, stdoutPolicy: _stdoutPolicy, runtimeLock: _runtimeLock, ...rest } = def;
|
|
237
|
+
const { buildArgs: _buildArgs, listModels: _listModels, fetchModels: _fetchModels, deriveReasoningOptions: _deriveReasoningOptions, fallbackModels: _fallbackModels, fallbackModelsAssertedAt: _fallbackModelsAssertedAt, helpArgs: _helpArgs, capabilityFlags: _capabilityFlags, fallbackBins: _fallbackBins, versionProbeTimeoutMs: _versionProbeTimeoutMs, maxPromptArgBytes: _maxPromptArgBytes, env: _env, inactivityTimeoutMs: _inactivityTimeoutMs, authProbe: _authProbe, needsAgentLogFile: _needsAgentLogFile, stdoutPolicy: _stdoutPolicy, runtimeLock: _runtimeLock, ...rest } = def;
|
|
217
238
|
return rest;
|
|
218
239
|
}
|
|
219
240
|
async function safeProbe(def, configuredEnv = {}, amrProfileResolver) {
|
package/dist/detection.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"detection.js","sourceRoot":"","sources":["../src/detection.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;GAYG;AACH,OAAO,EAAE,aAAa,EAAE,MAAM,iBAAiB,CAAC;AAChD,OAAO,EAAE,uBAAuB,EAAE,kBAAkB,EAAE,MAAM,aAAa,CAAC;AAC1E,OAAO,EAAE,iBAAiB,EAAE,MAAM,mBAAmB,CAAC;AACtD,OAAO,EAAE,mBAAmB,EAAE,MAAM,eAAe,CAAC;AACpD,OAAO,EAAE,UAAU,EAAE,MAAM,eAAe,CAAC;AAC3C,OAAO,EAAE,mBAAmB,EAAE,kBAAkB,EAAE,MAAM,aAAa,CAAC;AACtE,OAAO,EAAE,gBAAgB,EAAE,MAAM,UAAU,CAAC;AAC5C,OAAO,EAAE,oBAAoB,EAAE,MAAM,WAAW,CAAC;AACjD,OAAO,EAAE,sBAAsB,EAA2B,MAAM,2BAA2B,CAAC;AAC5F,OAAO,EAAE,mBAAmB,EAAE,yBAAyB,EAAE,2BAA2B,EAA0B,MAAM,kBAAkB,CAAC;
|
|
1
|
+
{"version":3,"file":"detection.js","sourceRoot":"","sources":["../src/detection.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;GAYG;AACH,OAAO,EAAE,aAAa,EAAE,MAAM,iBAAiB,CAAC;AAChD,OAAO,EAAE,uBAAuB,EAAE,kBAAkB,EAAE,MAAM,aAAa,CAAC;AAC1E,OAAO,EAAE,iBAAiB,EAAE,MAAM,mBAAmB,CAAC;AACtD,OAAO,EAAE,mBAAmB,EAAE,MAAM,eAAe,CAAC;AACpD,OAAO,EAAE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,CAAC;IACd,CAAC;AACH,CAAC"}
|
package/dist/registry.d.ts
CHANGED
|
@@ -3,7 +3,8 @@ export declare const BASE_AGENT_DEFS: RuntimeAgentDef[];
|
|
|
3
3
|
export declare const AGENT_DEFS: RuntimeAgentDef[];
|
|
4
4
|
export declare function getAgentDef(id: string): RuntimeAgentDef | null;
|
|
5
5
|
/**
|
|
6
|
-
* Whether a caller can inject external MCP servers (
|
|
6
|
+
* Whether a caller can inject external MCP servers (the host application's or this engine's own
|
|
7
|
+
* tools) into a session run by this
|
|
7
8
|
* def, per its own `externalMcpInjection` declaration (`types.ts`'s own doc names the six wired
|
|
8
9
|
* strategies and the defs that leave the field `undefined` because the CLI has no mechanism to
|
|
9
10
|
* receive one — `aider`, `amp`, `copilot`, `cursor-agent`, `deepseek`, `grok-build`, `pi`,
|
package/dist/registry.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"registry.d.ts","sourceRoot":"","sources":["../src/registry.ts"],"names":[],"mappings":"AA6CA,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,YAAY,CAAC;AAElD,eAAO,MAAM,eAAe,EAAE,eAAe,EAyB5C,CAAC;AAEF,eAAO,MAAM,UAAU,EAAE,eAAe,EAAyB,CAAC;AAUlE,wBAAgB,WAAW,CAAC,EAAE,EAAE,MAAM,GAAG,eAAe,GAAG,IAAI,CAE9D;AAED
|
|
1
|
+
{"version":3,"file":"registry.d.ts","sourceRoot":"","sources":["../src/registry.ts"],"names":[],"mappings":"AA6CA,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,YAAY,CAAC;AAElD,eAAO,MAAM,eAAe,EAAE,eAAe,EAyB5C,CAAC;AAEF,eAAO,MAAM,UAAU,EAAE,eAAe,EAAyB,CAAC;AAUlE,wBAAgB,WAAW,CAAC,EAAE,EAAE,MAAM,GAAG,eAAe,GAAG,IAAI,CAE9D;AAED;;;;;;;;;;;;;;;GAeG;AACH,wBAAgB,4BAA4B,CAAC,GAAG,EAAE,IAAI,CAAC,eAAe,EAAE,sBAAsB,CAAC,GAAG,OAAO,CAExG"}
|
package/dist/registry.js
CHANGED
|
@@ -56,7 +56,8 @@ export function getAgentDef(id) {
|
|
|
56
56
|
return AGENT_DEFS.find((a) => a.id === id) || null;
|
|
57
57
|
}
|
|
58
58
|
/**
|
|
59
|
-
* Whether a caller can inject external MCP servers (
|
|
59
|
+
* Whether a caller can inject external MCP servers (the host application's or this engine's own
|
|
60
|
+
* tools) into a session run by this
|
|
60
61
|
* def, per its own `externalMcpInjection` declaration (`types.ts`'s own doc names the six wired
|
|
61
62
|
* strategies and the defs that leave the field `undefined` because the CLI has no mechanism to
|
|
62
63
|
* receive one — `aider`, `amp`, `copilot`, `cursor-agent`, `deepseek`, `grok-build`, `pi`,
|
package/dist/registry.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"registry.js","sourceRoot":"","sources":["../src/registry.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;GAkBG;AACH,OAAO,EACL,aAAa,EACb,WAAW,EACX,WAAW,EACX,mBAAmB,EACnB,cAAc,EACd,iBAAiB,EACjB,aAAa,EACb,eAAe,EACf,cAAc,EACd,gBAAgB,EAChB,aAAa,EACb,iBAAiB,EACjB,cAAc,EACd,YAAY,EACZ,YAAY,EACZ,YAAY,EACZ,YAAY,EACZ,gBAAgB,EAChB,UAAU,EACV,aAAa,EACb,YAAY,EACZ,gBAAgB,EAChB,eAAe,EACf,YAAY,GACb,MAAM,iBAAiB,CAAC;AAGzB,MAAM,CAAC,MAAM,eAAe,GAAsB;IAChD,WAAW;IACX,cAAc;IACd,aAAa;IACb,aAAa;IACb,gBAAgB;IAChB,cAAc;IACd,eAAe;IACf,iBAAiB;IACjB,YAAY;IACZ,cAAc;IACd,YAAY;IACZ,aAAa;IACb,eAAe;IACf,WAAW;IACX,UAAU;IACV,YAAY;IACZ,YAAY;IACZ,YAAY;IACZ,gBAAgB;IAChB,aAAa;IAC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,aAAa;IACb,eAAe;IACf,WAAW;IACX,UAAU;IACV,YAAY;IACZ,YAAY;IACZ,YAAY;IACZ,gBAAgB;IAChB,aAAa;IACb,mBAAmB;IACnB,gBAAgB;IAChB,iBAAiB;IACjB,YAAY;CACb,CAAC;AAEF,MAAM,CAAC,MAAM,UAAU,GAAsB,CAAC,GAAG,eAAe,CAAC,CAAC;AAElE,MAAM,GAAG,GAAG,IAAI,GAAG,EAAU,CAAC;AAC9B,KAAK,MAAM,GAAG,IAAI,UAAU,EAAE,CAAC;IAC7B,IAAI,GAAG,CAAC,GAAG,CAAC,GAAG,CAAC,EAAE,CAAC,EAAE,CAAC;QACpB,MAAM,IAAI,KAAK,CAAC,kCAAkC,GAAG,CAAC,EAAE,EAAE,CAAC,CAAC;IAC9D,CAAC;IACD,GAAG,CAAC,GAAG,CAAC,GAAG,CAAC,EAAE,CAAC,CAAC;AAClB,CAAC;AAED,MAAM,UAAU,WAAW,CAAC,EAAU;IACpC,OAAO,UAAU,CAAC,IAAI,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC,CAAC,EAAE,KAAK,EAAE,CAAC,IAAI,IAAI,CAAC;AACrD,CAAC;AAED;;;;;;;;;;;;;;;GAeG;AACH,MAAM,UAAU,4BAA4B,CAAC,GAAkD;IAC7F,OAAO,GAAG,CAAC,oBAAoB,KAAK,SAAS,CAAC;AAChD,CAAC"}
|
package/dist/types.d.ts
CHANGED
|
@@ -17,14 +17,84 @@ export type RuntimeEnv = NodeJS.ProcessEnv | Record<string, string>;
|
|
|
17
17
|
export type RuntimeModelOption = {
|
|
18
18
|
id: string;
|
|
19
19
|
label: string;
|
|
20
|
+
/**
|
|
21
|
+
* The reasoning-effort levels THIS model supports, when the runtime's own catalog reports them
|
|
22
|
+
* per model rather than per agent.
|
|
23
|
+
*
|
|
24
|
+
* Present only where a live source actually carries the data — Codex's `debug models` catalog
|
|
25
|
+
* does (`supported_reasoning_levels`), and the levels genuinely differ between models on the same
|
|
26
|
+
* CLI: verified live against codex-cli 0.153.4, where `gpt-6-astra` offers
|
|
27
|
+
* low/medium/high/xhigh/max/ultra while `gpt-5.5` stops at `xhigh`. A single agent-level
|
|
28
|
+
* `RuntimeAgentDef.reasoningOptions` list cannot be correct for both, which is why this is a
|
|
29
|
+
* property of the model row rather than of the def.
|
|
30
|
+
*
|
|
31
|
+
* Consumed by `RuntimeAgentDef.deriveReasoningOptions` to compute the agent-level list a picker
|
|
32
|
+
* renders. Left `undefined` by every runtime whose effort vocabulary really is uniform, and by
|
|
33
|
+
* every static fallback list — an absent value means "nothing catalog-specific to say", never
|
|
34
|
+
* "this model supports no effort levels".
|
|
35
|
+
*/
|
|
36
|
+
reasoning?: readonly RuntimeReasoningOption[];
|
|
20
37
|
};
|
|
21
38
|
export type RuntimeModelSource = 'live' | 'fallback';
|
|
22
39
|
export type RuntimeReasoningOption = RuntimeModelOption;
|
|
40
|
+
/**
|
|
41
|
+
* Declares that a runtime carries its reasoning-effort choice INSIDE the model
|
|
42
|
+
* id — as a trailing `-<level>` on the slug — rather than in a flag of its own.
|
|
43
|
+
*
|
|
44
|
+
* The distinction is not cosmetic, and it is why this is a separate field from
|
|
45
|
+
* `RuntimeAgentDef.reasoningOptions` rather than another shape of it:
|
|
46
|
+
*
|
|
47
|
+
* - A `reasoningOptions` def (claude, codex) has ONE effort vocabulary that
|
|
48
|
+
* applies to every model it can run, and the chosen level travels to the
|
|
49
|
+
* CLI as its own argv (`--effort high`, `-c model_reasoning_effort="high"`)
|
|
50
|
+
* via `RuntimeBuildOptions.reasoning`.
|
|
51
|
+
* - A `reasoningInModelId` def (antigravity) has NO effort flag at all. Its
|
|
52
|
+
* level is already part of `--model`'s value, so `buildArgs` emits nothing
|
|
53
|
+
* extra, and — critically — **the available levels differ per base model**.
|
|
54
|
+
* Verified live against `agy models` (v1.1.25): `gemini-3.8-flash` has
|
|
55
|
+
* high/medium/low, `gemini-3.1-pro` has ONLY high and low,
|
|
56
|
+
* `gpt-oss-120b` has only medium, and `claude-sonnet-4-6` has none.
|
|
57
|
+
* `agy --model gemini-3.1-pro-medium` is rejected outright.
|
|
58
|
+
*
|
|
59
|
+
* So this field declares only the suffix VOCABULARY — which trailing tokens
|
|
60
|
+
* are effort levels at all, in the order a picker should offer them. Which of
|
|
61
|
+
* them exist for a given base model is DERIVED from that runtime's own model
|
|
62
|
+
* list (live or fallback), never listed here: a hand-written per-model table
|
|
63
|
+
* would be a second copy of the CLI's catalog, free to drift the moment
|
|
64
|
+
* upstream adds a variant.
|
|
65
|
+
*
|
|
66
|
+
* `levels` doubles as the guard against over-parsing: `claude-opus-4-6-thinking`
|
|
67
|
+
* ends in `-thinking`, which is NOT an effort level, so it must stay part of
|
|
68
|
+
* the base id. Only a trailing token that appears in `levels` is a level.
|
|
69
|
+
*/
|
|
70
|
+
export type RuntimeReasoningInModelId = {
|
|
71
|
+
/** The recognized effort suffixes, in picker display order. */
|
|
72
|
+
levels: readonly RuntimeReasoningOption[];
|
|
73
|
+
};
|
|
23
74
|
export type RuntimeBuildOptions = {
|
|
24
75
|
model?: string | null;
|
|
25
76
|
reasoning?: string | null;
|
|
26
77
|
permissionMode?: 'bypass' | 'restricted';
|
|
27
78
|
systemPromptOverlay?: string | null;
|
|
79
|
+
/**
|
|
80
|
+
* Tool names this run's CLI should refuse to execute, forwarded to whichever def-native flag
|
|
81
|
+
* expresses a deny-list — today, `claude`'s own `--disallowedTools` (verified against installed
|
|
82
|
+
* Claude Code 2.1.263: `--disallowedTools, --disallowed-tools <tools...>`, "Comma or
|
|
83
|
+
* space-separated list of tool names to deny"). This is a `@jini-ai/agent-runtime`-level
|
|
84
|
+
* *mechanism* only: no product's tool policy is baked in here (not Tovu's Bash-forbid opinion,
|
|
85
|
+
* not anyone else's) — the caller decides which names to pass. A def whose CLI has no equivalent
|
|
86
|
+
* flag simply ignores this field, same as `systemPromptOverlay` on a def with no overlay
|
|
87
|
+
* delivery. `undefined`/empty means no restriction — byte-identical to today's behavior (every
|
|
88
|
+
* tool the CLI's own grant already allows stays allowed).
|
|
89
|
+
*/
|
|
90
|
+
disallowedTools?: readonly string[];
|
|
91
|
+
/**
|
|
92
|
+
* Same mechanism as {@link disallowedTools}, for a def-native explicit allow-list flag — today,
|
|
93
|
+
* `claude`'s own `--allowedTools`. Rarely set alongside `disallowedTools` at once; the underlying
|
|
94
|
+
* CLI decides how an allow-list and a deny-list interact when both are present.
|
|
95
|
+
* `undefined`/empty means no restriction, same as today.
|
|
96
|
+
*/
|
|
97
|
+
allowedTools?: readonly string[];
|
|
28
98
|
};
|
|
29
99
|
export type RuntimeContext = {
|
|
30
100
|
cwd?: string;
|
|
@@ -175,6 +245,19 @@ export type RuntimeAgentDef = {
|
|
|
175
245
|
bin: string;
|
|
176
246
|
versionArgs: string[];
|
|
177
247
|
fallbackModels: RuntimeModelOption[];
|
|
248
|
+
/**
|
|
249
|
+
* `YYYY-MM-DD` — when this def's hardcoded `fallbackModels` list was last checked against the
|
|
250
|
+
* vendor's own current list.
|
|
251
|
+
*
|
|
252
|
+
* Required (by `scripts/check-model-fallback-freshness.ts`, not by this type) of any def whose
|
|
253
|
+
* fallback array is what a picker RENDERS when no live source answers. It exists because a
|
|
254
|
+
* hand-written list of vendor model ids has no other way to fail: it drifts from reality the day
|
|
255
|
+
* a model ships, and before this marker nothing anywhere went red when it did.
|
|
256
|
+
*
|
|
257
|
+
* Bump it only after actually comparing the list against a live source — the guard's MF3 rule
|
|
258
|
+
* does that comparison for you whenever the relevant CLI is installed.
|
|
259
|
+
*/
|
|
260
|
+
fallbackModelsAssertedAt?: string;
|
|
178
261
|
buildArgs: (prompt: string, imagePaths: string[], extraAllowedDirs?: string[], options?: RuntimeBuildOptions, runtimeContext?: RuntimeContext) => string[];
|
|
179
262
|
streamFormat: string;
|
|
180
263
|
fallbackBins?: string[];
|
|
@@ -189,6 +272,33 @@ export type RuntimeAgentDef = {
|
|
|
189
272
|
listModels?: RuntimeListModels;
|
|
190
273
|
fetchModels?: (resolvedBin: string, env: RuntimeEnv) => Promise<RuntimeModelOption[] | null>;
|
|
191
274
|
reasoningOptions?: RuntimeReasoningOption[];
|
|
275
|
+
/**
|
|
276
|
+
* Narrows `reasoningOptions` to what the runtime's LIVE model list actually supports.
|
|
277
|
+
*
|
|
278
|
+
* Pure, and deliberately a function of the fetched models rather than a second network/CLI probe:
|
|
279
|
+
* the data it reads (`RuntimeModelOption.reasoning`) was already parsed out of the same catalog
|
|
280
|
+
* response `listModels`/`fetchModels` produced, so there is no extra I/O and no second source that
|
|
281
|
+
* could disagree with the first.
|
|
282
|
+
*
|
|
283
|
+
* `detection.ts` calls it once per probe and, when it returns a non-empty list, that list replaces
|
|
284
|
+
* the def's static `reasoningOptions` on the resulting `DetectedAgent`. Returning `null` (no live
|
|
285
|
+
* model carried levels — an older CLI, a fallback list, an offline probe) leaves the static list
|
|
286
|
+
* exactly as declared, so this can only ever ADD accuracy, never take the picker's effort choices
|
|
287
|
+
* away.
|
|
288
|
+
*
|
|
289
|
+
* Stripped from `DetectedAgent` alongside the other closures — see `detection.ts#stripFns`.
|
|
290
|
+
*/
|
|
291
|
+
deriveReasoningOptions?: (models: readonly RuntimeModelOption[]) => RuntimeReasoningOption[] | null;
|
|
292
|
+
/**
|
|
293
|
+
* See {@link RuntimeReasoningInModelId}. Mutually exclusive with
|
|
294
|
+
* `reasoningOptions` in practice: a def declaring both would tell a picker
|
|
295
|
+
* that the same choice lives in two different places at once.
|
|
296
|
+
*
|
|
297
|
+
* Survives `detection.ts#stripFns` (plain data, no closure), so a UI reading
|
|
298
|
+
* a `DetectedAgent` off the wire gets the vocabulary it needs to do the
|
|
299
|
+
* per-base-model derivation itself.
|
|
300
|
+
*/
|
|
301
|
+
reasoningInModelId?: RuntimeReasoningInModelId;
|
|
192
302
|
/**
|
|
193
303
|
* How this def's CLI/protocol receives user-supplied image attachments.
|
|
194
304
|
* Supersedes the old `supportsImagePaths: boolean` field (which was never
|
|
@@ -256,7 +366,7 @@ export type RuntimeAgentDef = {
|
|
|
256
366
|
stdoutPolicy?: RuntimeStdoutPolicy;
|
|
257
367
|
runtimeLock?: RuntimeLock;
|
|
258
368
|
};
|
|
259
|
-
export type DetectedAgent = Omit<RuntimeAgentDef, 'buildArgs' | 'listModels' | 'fetchModels' | 'fallbackModels' | 'helpArgs' | 'capabilityFlags' | 'fallbackBins' | 'versionProbeTimeoutMs' | 'maxPromptArgBytes' | 'env' | 'inactivityTimeoutMs' | 'authProbe' | 'needsAgentLogFile' | 'stdoutPolicy' | 'runtimeLock'> & {
|
|
369
|
+
export type DetectedAgent = Omit<RuntimeAgentDef, 'buildArgs' | 'listModels' | 'fetchModels' | 'deriveReasoningOptions' | 'fallbackModels' | 'fallbackModelsAssertedAt' | 'helpArgs' | 'capabilityFlags' | 'fallbackBins' | 'versionProbeTimeoutMs' | 'maxPromptArgBytes' | 'env' | 'inactivityTimeoutMs' | 'authProbe' | 'needsAgentLogFile' | 'stdoutPolicy' | 'runtimeLock'> & {
|
|
260
370
|
models: RuntimeModelOption[];
|
|
261
371
|
modelsSource: RuntimeModelSource;
|
|
262
372
|
available: boolean;
|
package/dist/types.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../src/types.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;GAYG;AACH,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,oBAAoB,CAAC;AAC1D,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,mBAAmB,CAAC;AAEzD,MAAM,MAAM,UAAU,GAAG,MAAM,CAAC,UAAU,GAAG,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;AAEpE,MAAM,MAAM,kBAAkB,GAAG;IAC/B,EAAE,EAAE,MAAM,CAAC;IACX,KAAK,EAAE,MAAM,CAAC;
|
|
1
|
+
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../src/types.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;GAYG;AACH,OAAO,KAAK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jD,GAAG,CAAC,EAAE,MAAM,CAAC,UAAU,CAAC;CACzB,CAAC;AAEF;;;;GAIG;AACH,YAAY,EACV,eAAe,EACf,qBAAqB,EACrB,uBAAuB,EACvB,cAAc,GACf,MAAM,mBAAmB,CAAC"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@jini-ai/agent-runtime",
|
|
3
|
-
"version": "0.3.
|
|
3
|
+
"version": "0.3.6",
|
|
4
4
|
"description": "Coding-agent runtime adapters: runtime registry, detection, launch, stream parsers, and the ACP/pi-rpc subprocess transport.",
|
|
5
5
|
"license": "Apache-2.0",
|
|
6
6
|
"repository": {
|
|
@@ -37,8 +37,8 @@
|
|
|
37
37
|
"registry": "https://registry.npmjs.org"
|
|
38
38
|
},
|
|
39
39
|
"dependencies": {
|
|
40
|
-
"@jini-ai/
|
|
41
|
-
"@jini-ai/
|
|
40
|
+
"@jini-ai/protocol": "0.3.0",
|
|
41
|
+
"@jini-ai/platform": "0.3.0"
|
|
42
42
|
},
|
|
43
43
|
"devDependencies": {
|
|
44
44
|
"@vitest/coverage-v8": "^2.1.9"
|