@rynfar/meridian 1.62.4 → 1.62.5
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/{cli-n1jsth00.js → cli-dya07jbg.js} +33 -14
- package/dist/cli.js +1 -1
- package/dist/proxy/adapter.d.ts +5 -0
- package/dist/proxy/adapter.d.ts.map +1 -1
- package/dist/proxy/adapters/opencode.d.ts.map +1 -1
- package/dist/proxy/agentDefs.d.ts +9 -7
- package/dist/proxy/agentDefs.d.ts.map +1 -1
- package/dist/proxy/server.d.ts.map +1 -1
- package/dist/server.js +1 -1
- package/package.json +1 -1
|
@@ -153,30 +153,44 @@ function parseAgentDescriptions(taskDescription) {
|
|
|
153
153
|
}
|
|
154
154
|
return agents;
|
|
155
155
|
}
|
|
156
|
-
function
|
|
156
|
+
function mapModelTier(model) {
|
|
157
|
+
if (!model)
|
|
158
|
+
return "inherit";
|
|
159
|
+
const lower = model.toLowerCase();
|
|
160
|
+
if (lower.includes("opus"))
|
|
161
|
+
return "opus";
|
|
162
|
+
if (lower.includes("fable") || lower.includes("mythos"))
|
|
163
|
+
return "fable";
|
|
164
|
+
if (lower.includes("haiku"))
|
|
165
|
+
return "haiku";
|
|
166
|
+
if (lower.includes("sonnet"))
|
|
167
|
+
return "sonnet";
|
|
168
|
+
return "inherit";
|
|
169
|
+
}
|
|
170
|
+
function buildAgentDefinitions(taskDescription, mcpToolNames, modelTier = "inherit") {
|
|
157
171
|
const descriptions = parseAgentDescriptions(taskDescription);
|
|
158
172
|
const agents = {};
|
|
159
173
|
for (const [name, description] of descriptions) {
|
|
160
174
|
agents[name] = {
|
|
161
175
|
description,
|
|
162
176
|
prompt: buildAgentPrompt(name, description),
|
|
163
|
-
model:
|
|
177
|
+
model: modelTier,
|
|
164
178
|
...mcpToolNames?.length ? { tools: [...mcpToolNames] } : {}
|
|
165
179
|
};
|
|
166
180
|
}
|
|
167
181
|
if (descriptions.size > 0) {
|
|
168
|
-
ensureDefaultAgents(agents, mcpToolNames);
|
|
182
|
+
ensureDefaultAgents(agents, mcpToolNames, modelTier);
|
|
169
183
|
addCaseVariants(agents);
|
|
170
184
|
}
|
|
171
185
|
return agents;
|
|
172
186
|
}
|
|
173
|
-
function ensureDefaultAgents(agents, mcpToolNames) {
|
|
187
|
+
function ensureDefaultAgents(agents, mcpToolNames, modelTier) {
|
|
174
188
|
for (const [name, description] of Object.entries(DEFAULT_AGENT_TYPES)) {
|
|
175
189
|
if (!agents[name]) {
|
|
176
190
|
agents[name] = {
|
|
177
191
|
description,
|
|
178
192
|
prompt: buildAgentPrompt(name, description),
|
|
179
|
-
model:
|
|
193
|
+
model: modelTier,
|
|
180
194
|
...mcpToolNames?.length ? { tools: [...mcpToolNames] } : {}
|
|
181
195
|
};
|
|
182
196
|
}
|
|
@@ -223,10 +237,10 @@ function parseAgentNamesFromSchema(taskTool) {
|
|
|
223
237
|
return [];
|
|
224
238
|
return enumNames.filter((n) => typeof n === "string");
|
|
225
239
|
}
|
|
226
|
-
function buildAgentDefinitionsFromTool(taskTool, mcpToolNames) {
|
|
240
|
+
function buildAgentDefinitionsFromTool(taskTool, mcpToolNames, modelTier = "inherit") {
|
|
227
241
|
const rawDescription = getNested(taskTool, "description");
|
|
228
242
|
const description = typeof rawDescription === "string" ? rawDescription : "";
|
|
229
|
-
const fromDescription = buildAgentDefinitions(description, mcpToolNames);
|
|
243
|
+
const fromDescription = buildAgentDefinitions(description, mcpToolNames, modelTier);
|
|
230
244
|
if (Object.keys(fromDescription).length > 0)
|
|
231
245
|
return fromDescription;
|
|
232
246
|
const names = parseAgentNamesFromSchema(taskTool);
|
|
@@ -240,11 +254,11 @@ function buildAgentDefinitionsFromTool(taskTool, mcpToolNames) {
|
|
|
240
254
|
agents[name] = {
|
|
241
255
|
description: desc,
|
|
242
256
|
prompt: buildAgentPrompt(name, desc),
|
|
243
|
-
model:
|
|
257
|
+
model: modelTier,
|
|
244
258
|
...mcpToolNames?.length ? { tools: [...mcpToolNames] } : {}
|
|
245
259
|
};
|
|
246
260
|
}
|
|
247
|
-
ensureDefaultAgents(agents, mcpToolNames);
|
|
261
|
+
ensureDefaultAgents(agents, mcpToolNames, modelTier);
|
|
248
262
|
addCaseVariants(agents);
|
|
249
263
|
return agents;
|
|
250
264
|
}
|
|
@@ -2191,7 +2205,7 @@ var init_opencode = __esm(() => {
|
|
|
2191
2205
|
if (Array.isArray(body.tools)) {
|
|
2192
2206
|
const taskTool = body.tools.find((t) => t.name === "task" || t.name === "Task");
|
|
2193
2207
|
if (taskTool) {
|
|
2194
|
-
sdkAgents = buildAgentDefinitionsFromTool(taskTool, [...allowedMcpTools]);
|
|
2208
|
+
sdkAgents = buildAgentDefinitionsFromTool(taskTool, [...allowedMcpTools], mapModelTier(body.model));
|
|
2195
2209
|
}
|
|
2196
2210
|
}
|
|
2197
2211
|
let sdkHooks = undefined;
|
|
@@ -2270,6 +2284,9 @@ var init_opencode2 = __esm(() => {
|
|
|
2270
2284
|
getSessionId(c) {
|
|
2271
2285
|
return c.req.header("x-opencode-session") ?? c.req.header("x-session-affinity");
|
|
2272
2286
|
},
|
|
2287
|
+
getAgentMode(c) {
|
|
2288
|
+
return c.req.header("x-opencode-agent-mode");
|
|
2289
|
+
},
|
|
2273
2290
|
extractWorkingDirectory(body) {
|
|
2274
2291
|
return extractClientCwd(body);
|
|
2275
2292
|
},
|
|
@@ -2306,7 +2323,7 @@ var init_opencode2 = __esm(() => {
|
|
|
2306
2323
|
const taskTool = body.tools.find((t) => t.name === "task" || t.name === "Task");
|
|
2307
2324
|
if (!taskTool)
|
|
2308
2325
|
return {};
|
|
2309
|
-
return buildAgentDefinitionsFromTool(taskTool, [...mcpToolNames]);
|
|
2326
|
+
return buildAgentDefinitionsFromTool(taskTool, [...mcpToolNames], mapModelTier(body.model));
|
|
2310
2327
|
},
|
|
2311
2328
|
buildSdkHooks(body, sdkAgents) {
|
|
2312
2329
|
const validAgentNames = Object.keys(sdkAgents);
|
|
@@ -21340,8 +21357,10 @@ data: ${JSON.stringify(lastError)}
|
|
|
21340
21357
|
}
|
|
21341
21358
|
const profile = resolveProfile(finalConfig.profiles, finalConfig.defaultProfile, options.forcedProfileId || c.req.header("x-meridian-profile") || undefined, routingMode === "sticky" ? { routingMode, stickySessionKey: adapter.getSessionId(c, body) } : undefined);
|
|
21342
21359
|
const authStatus = await getClaudeAuthStatusAsync(profile.id !== "default" ? profile.id : undefined, Object.keys(profile.env).length > 0 ? profile.env : undefined);
|
|
21343
|
-
const agentMode = c.req.header("x-opencode-agent-mode") ?? null;
|
|
21344
21360
|
const requestSource = c.req.header("x-meridian-source")?.slice(0, 64) || undefined;
|
|
21361
|
+
const declaredAgentMode = adapter.getAgentMode?.(c, body) ?? c.req.header("x-opencode-agent-mode") ?? null;
|
|
21362
|
+
const isSubagentRequest = declaredAgentMode === "subagent" || requestSource?.startsWith("subagent-") === true;
|
|
21363
|
+
const agentMode = isSubagentRequest ? "subagent" : declaredAgentMode;
|
|
21345
21364
|
const requestedModel = typeof body.model === "string" ? body.model : "sonnet";
|
|
21346
21365
|
let model = mapModelToClaudeModel(requestedModel, authStatus?.subscriptionType, agentMode);
|
|
21347
21366
|
const envOverrides = explicitModelPin(requestedModel);
|
|
@@ -21435,12 +21454,12 @@ data: ${JSON.stringify(lastError)}
|
|
|
21435
21454
|
const lastMessage = Array.isArray(body.messages) ? body.messages[body.messages.length - 1] : undefined;
|
|
21436
21455
|
const lastIsToolResult = Array.isArray(lastMessage?.content) && lastMessage.content.some((b) => b?.type === "tool_result");
|
|
21437
21456
|
const isClientDrivenLoop = adapterBase !== "claude-code" && !agentSessionId && lastIsToolResult;
|
|
21438
|
-
const isIndependentSession = !agentSessionId && (requestSource?.startsWith("fork-") ||
|
|
21457
|
+
const isIndependentSession = !agentSessionId && (requestSource?.startsWith("fork-") || isSubagentRequest) || isClientDrivenLoop || false;
|
|
21439
21458
|
let lineageResult = isIndependentSession ? { type: "diverged", reason: "independent-request" } : lookupSession(profileSessionId, body.messages || [], profileScopedCwd);
|
|
21440
21459
|
if (lineageResult.type === "undo" && adapterBase === "opencode" && !agentSessionId) {
|
|
21441
21460
|
lineageResult = { type: "diverged", reason: "missing-session-header" };
|
|
21442
21461
|
}
|
|
21443
|
-
const declaresConcurrentFlow = requestSource?.startsWith("fork-") === true ||
|
|
21462
|
+
const declaresConcurrentFlow = requestSource?.startsWith("fork-") === true || isSubagentRequest;
|
|
21444
21463
|
if (profileSessionId && !declaresConcurrentFlow && requestMeta.sessionTurnLease?.advancedWhileWaiting(profileSessionId) && lineageResult.type !== "continuation" && lineageResult.type !== "compaction") {
|
|
21445
21464
|
const reason = lineageResult.type === "diverged" ? lineageResult.reason : lineageResult.type;
|
|
21446
21465
|
const message = "This session advanced while the request was waiting. Retry with the latest conversation history or use a distinct session ID.";
|
package/dist/cli.js
CHANGED
package/dist/proxy/adapter.d.ts
CHANGED
|
@@ -19,6 +19,11 @@ export interface AgentIdentity {
|
|
|
19
19
|
* Returns undefined if the agent doesn't provide session tracking.
|
|
20
20
|
*/
|
|
21
21
|
getSessionId(c: Context, body?: unknown): string | undefined;
|
|
22
|
+
/**
|
|
23
|
+
* Optional client-declared agent mode. Adapters own their header/protocol
|
|
24
|
+
* details; the proxy uses the normalized value for model-tier selection.
|
|
25
|
+
*/
|
|
26
|
+
getAgentMode?(c: Context, body?: unknown): string | undefined;
|
|
22
27
|
/**
|
|
23
28
|
* Extract the SDK subprocess working directory from the request body.
|
|
24
29
|
*
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"adapter.d.ts","sourceRoot":"","sources":["../../src/proxy/adapter.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAEH,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,MAAM,CAAA;AACnC,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,gCAAgC,CAAA;AAEnE;;;;GAIG;AACH,MAAM,WAAW,aAAa;IAC5B,4DAA4D;IAC5D,QAAQ,CAAC,IAAI,EAAE,MAAM,C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G,GAAG,OAAO,CAAA;IAErC;;;;;;;;OAQG;IACH,eAAe,CAAC,IAAI,OAAO,CAAA;IAE3B;;;;;;;OAOG;IACH,gBAAgB,CAAC,IAAI,SAAS,MAAM,EAAE,CAAA;IAEtC;;;;;;;;;;;;;;OAcG;IACH,iBAAiB,CAAC,IAAI,aAAa,EAAE,CAAA;IAErC;;;;;;;OAOG;IACH,gBAAgB,CAAC,IAAI,OAAO,CAAA;IAE5B;;;;;;OAMG;IACH,sBAAsB,CAAC,IAAI,OAAO,CAAA;IAElC;;;;;;;;OAQG;IACH,yBAAyB,CAAC,IAAI,OAAO,CAAA;IAErC;;;;;;;;;;;;;;;OAeG;IACH,6BAA6B,CAAC,CAAC,QAAQ,EAAE,MAAM,EAAE,SAAS,EAAE,OAAO,GAAG,OAAO,eAAe,EAAE,UAAU,EAAE,CAAA;CAC3G"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"opencode.d.ts","sourceRoot":"","sources":["../../../src/proxy/adapters/opencode.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAGH,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,YAAY,CAAA;AAS9C,eAAO,MAAM,eAAe,EAAE,
|
|
1
|
+
{"version":3,"file":"opencode.d.ts","sourceRoot":"","sources":["../../../src/proxy/adapters/opencode.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAGH,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,YAAY,CAAA;AAS9C,eAAO,MAAM,eAAe,EAAE,YA+H7B,CAAA;AAED,OAAO,EAAE,kBAAkB,EAAE,MAAM,wBAAwB,CAAA;AAC3D,OAAO,EAAE,kBAAkB,EAAE,CAAA"}
|
|
@@ -13,10 +13,11 @@
|
|
|
13
13
|
/** Fallback agent name used when no fuzzy match is found */
|
|
14
14
|
export declare const FALLBACK_AGENT_NAME = "general";
|
|
15
15
|
/** SDK-compatible agent definition */
|
|
16
|
+
export type AgentModelTier = "sonnet" | "opus" | "haiku" | "fable" | "inherit";
|
|
16
17
|
export interface AgentDefinition {
|
|
17
18
|
description: string;
|
|
18
19
|
prompt: string;
|
|
19
|
-
model?:
|
|
20
|
+
model?: AgentModelTier;
|
|
20
21
|
tools?: string[];
|
|
21
22
|
disallowedTools?: string[];
|
|
22
23
|
}
|
|
@@ -32,24 +33,25 @@ export declare function parseAgentDescriptions(taskDescription: string): Map<str
|
|
|
32
33
|
/**
|
|
33
34
|
* Map an OpenCode model string to an SDK model tier.
|
|
34
35
|
*
|
|
35
|
-
*
|
|
36
|
-
* We map based on the model name pattern, defaulting to 'inherit'
|
|
36
|
+
* Agent definitions must use base model aliases rather than extended-context
|
|
37
|
+
* variants. We map based on the model name pattern, defaulting to 'inherit'
|
|
37
38
|
* for non-Anthropic models (they'll use the parent session's model).
|
|
38
39
|
*/
|
|
39
|
-
export declare function mapModelTier(model?: string):
|
|
40
|
+
export declare function mapModelTier(model?: string): AgentModelTier;
|
|
40
41
|
/**
|
|
41
42
|
* Build SDK AgentDefinition objects from the Task tool description.
|
|
42
43
|
*
|
|
43
44
|
* Each agent gets:
|
|
44
45
|
* - description: from the Task tool text (user-configured)
|
|
45
46
|
* - prompt: instructional prompt incorporating the description
|
|
46
|
-
* - model:
|
|
47
|
+
* - model: the caller-selected base SDK tier; unknown models inherit the parent
|
|
47
48
|
* - tools: undefined (inherit all tools from parent)
|
|
48
49
|
*
|
|
49
50
|
* @param taskDescription - The full Task tool description text from OpenCode
|
|
50
51
|
* @param mcpToolNames - Optional list of MCP tool names to make available to agents
|
|
52
|
+
* @param modelTier - Base SDK tier for native Task subagents
|
|
51
53
|
*/
|
|
52
|
-
export declare function buildAgentDefinitions(taskDescription: string, mcpToolNames?: string[]): Record<string, AgentDefinition>;
|
|
54
|
+
export declare function buildAgentDefinitions(taskDescription: string, mcpToolNames?: string[], modelTier?: AgentModelTier): Record<string, AgentDefinition>;
|
|
53
55
|
export declare function parseAgentNamesFromSchema(taskTool: unknown): string[];
|
|
54
|
-
export declare function buildAgentDefinitionsFromTool(taskTool: unknown, mcpToolNames?: string[]): Record<string, AgentDefinition>;
|
|
56
|
+
export declare function buildAgentDefinitionsFromTool(taskTool: unknown, mcpToolNames?: string[], modelTier?: AgentModelTier): Record<string, AgentDefinition>;
|
|
55
57
|
//# sourceMappingURL=agentDefs.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"agentDefs.d.ts","sourceRoot":"","sources":["../../src/proxy/agentDefs.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;GAWG;AAEH,4DAA4D;AAC5D,eAAO,MAAM,mBAAmB,YAAY,CAAA;AAc5C,sCAAsC;AACtC,MAAM,WAAW,eAAe;IAC9B,WAAW,EAAE,MAAM,CAAA;IACnB,MAAM,EAAE,MAAM,CAAA;IACd,KAAK,CAAC,EAAE,
|
|
1
|
+
{"version":3,"file":"agentDefs.d.ts","sourceRoot":"","sources":["../../src/proxy/agentDefs.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;GAWG;AAEH,4DAA4D;AAC5D,eAAO,MAAM,mBAAmB,YAAY,CAAA;AAc5C,sCAAsC;AACtC,MAAM,MAAM,cAAc,GAAG,QAAQ,GAAG,MAAM,GAAG,OAAO,GAAG,OAAO,GAAG,SAAS,CAAA;AAE9E,MAAM,WAAW,eAAe;IAC9B,WAAW,EAAE,MAAM,CAAA;IACnB,MAAM,EAAE,MAAM,CAAA;IACd,KAAK,CAAC,EAAE,cAAc,CAAA;IACtB,KAAK,CAAC,EAAE,MAAM,EAAE,CAAA;IAChB,eAAe,CAAC,EAAE,MAAM,EAAE,CAAA;CAC3B;AAED;;;;;;;GAOG;AACH,wBAAgB,sBAAsB,CAAC,eAAe,EAAE,MAAM,GAAG,GAAG,CAAC,MAAM,EAAE,MAAM,CAAC,CAcnF;AAED;;;;;;GAMG;AACH,wBAAgB,YAAY,CAAC,KAAK,CAAC,EAAE,MAAM,GAAG,cAAc,CAW3D;AAED;;;;;;;;;;;;GAYG;AACH,wBAAgB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AE,OAAO,CAAC,WAAW,CAAM,GAAG,WAAW,
|
|
1
|
+
{"version":3,"file":"server.d.ts","sourceRoot":"","sources":["../../src/proxy/server.ts"],"names":[],"mappings":"AAkBA,OAAO,KAAK,EAAE,WAAW,EAAE,aAAa,EAAE,WAAW,EAAE,MAAM,SAAS,CAAA;AACtE,YAAY,EAAE,WAAW,EAAE,aAAa,EAAE,WAAW,EAAE,CAAA;AAGvD,YAAY,EACV,SAAS,EACT,cAAc,EACd,eAAe,EACf,gBAAgB,EAChB,cAAc,EACd,cAAc,EACd,iBAAiB,EACjB,YAAY,EACZ,aAAa,EACb,WAAW,GACZ,MAAM,aAAa,CAAA;AAKpB,OAAO,EAAE,gBAAgB,EAAE,cAAc,EAAE,aAAa,EAAE,oBAAoB,EAAE,MAAM,aAAa,CAAA;AAoDnG,OAAO,EACL,kBAAkB,EAClB,WAAW,EACX,oBAAoB,EAGpB,KAAK,aAAa,EAGnB,MAAM,mBAAmB,CAAA;AAI1B,OAAO,EAA+B,iBAAiB,EAAE,mBAAmB,EAAsC,MAAM,iBAAiB,CAAA;AAIzI,OAAO,EAAE,kBAAkB,EAAE,WAAW,EAAE,oBAAoB,EAAE,CAAA;AAChE,OAAO,EAAE,iBAAiB,EAAE,mBAAmB,EAAE,CAAA;AACjD,YAAY,EAAE,aAAa,EAAE,CAAA;AA0W7B,wBAAgB,iBAAiB,CAAC,MAAM,GAAE,OAAO,CAAC,WAAW,CAAM,GAAG,WAAW,CAu9JhF;AAWD,wBAAgB,gCAAgC,IAAI,IAAI,CAavD;AAED,wBAAsB,gBAAgB,CAAC,MAAM,GAAE,OAAO,CAAC,WAAW,CAAM,GAAG,OAAO,CAAC,aAAa,CAAC,CAqHhG"}
|
package/dist/server.js
CHANGED
package/package.json
CHANGED