修复 Codex MCP type 配置并更新发布包

This commit is contained in:
shiyue
2026-10-08 14:55:58 +08:00
parent caf8947cd9
commit 747771a048
17 changed files with 181 additions and 4 deletions

View File

@@ -6,6 +6,7 @@ const os = require('os');
const { spawn, spawnSync } = require('child_process');
const { WebSocketServer } = require('ws');
const { createAgentRuntime } = require('./lib/agent-runtime');
const { toCodexMcpServerConfig } = require('./lib/codex-mcp-config');
const { createCodexAppServerClient } = require('./lib/codex-app-server-client');
const { createCodexAppWorkerClient } = require('./lib/codex-app-worker-client');
const { createCodexAppRuntime } = require('./lib/codex-app-runtime');
@@ -14144,6 +14145,11 @@ function codexAppThreadConfig(session, options = {}) {
cwd: session?.cwd || options.cwd || getDefaultSessionCwd(),
}));
}
for (const [key, value] of Object.entries(config)) {
if (key.startsWith('mcp_servers.') && value && typeof value === 'object') {
config[key] = toCodexMcpServerConfig(value);
}
}
return config;
}