@heretyc/subagent-mcp 2.8.5 → 2.8.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/drivers.js CHANGED
@@ -1,6 +1,7 @@
1
1
  import { spawn } from "node:child_process";
2
2
  import { EventEmitter } from "node:events";
3
3
  import { PassThrough } from "node:stream";
4
+ import { mapModel } from "./effort.js";
4
5
  class LogicalProcess extends EventEmitter {
5
6
  pid;
6
7
  stdout = new PassThrough();
@@ -379,7 +380,9 @@ export class ClaudeSdkDriver {
379
380
  abortController: this.abortController,
380
381
  cwd: options.cwd,
381
382
  env: options.env,
382
- model: options.model,
383
+ // The Claude Agent SDK rejects the short launch id "opus-4-8" with
384
+ // model_not_found (404); normalize to the full id the SDK accepts.
385
+ model: mapModel(options.provider, options.model),
383
386
  pathToClaudeCodeExecutable: options.command,
384
387
  permissionMode: "bypassPermissions",
385
388
  allowDangerouslySkipPermissions: true,
package/dist/index.js CHANGED
@@ -120,7 +120,7 @@ const ORCHESTRATION_INSTRUCTIONS = "BINDING IN BOTH MODES - SOLE CHANNEL: while
120
120
  const SUBAGENT_INSTRUCTIONS = "SUB-AGENT SESSION: you are a child process launched by subagent-mcp. Follow the parent prompt. Do not treat yourself as the orchestrator, do not re-trigger orchestration carryover, and do not launch further sub-agents unless the parent prompt explicitly assigns that.";
121
121
  const server = new McpServer({
122
122
  name: "subagent-mcp",
123
- version: "2.8.5",
123
+ version: "2.8.6",
124
124
  description: "Launches always-interactive local Claude and Codex sub-agent sessions. Claude uses the Claude Agent SDK over the local Claude Code executable; Codex uses `codex app-server` over stdio. The server does not call Anthropic or OpenAI HTTP APIs directly.",
125
125
  }, {
126
126
  instructions: process.env.SUBAGENT_MCP_SUBAGENT === "1"
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@heretyc/subagent-mcp",
3
- "version": "2.8.5",
3
+ "version": "2.8.6",
4
4
  "description": "MCP server that launches and manages always-interactive Claude Code and Codex sub-agent sessions (no direct Anthropic/OpenAI API).",
5
5
  "type": "module",
6
6
  "main": "dist/index.js",