@livx.cc/agentx 0.99.76 → 0.99.77
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.js +3 -4
- package/dist/cli.js.map +1 -1
- package/package.json +1 -1
package/dist/cli.js
CHANGED
|
@@ -12082,12 +12082,11 @@ function toClaudeCodeMcp(servers) {
|
|
|
12082
12082
|
function claudeCodeProviderOptions(model, cwd, mcpServers) {
|
|
12083
12083
|
if (!(model ?? "").startsWith("claude-code/")) return void 0;
|
|
12084
12084
|
const env = (() => {
|
|
12085
|
-
|
|
12086
|
-
|
|
12087
|
-
return rest;
|
|
12085
|
+
const base = process.env.AGENTX_CC_USE_API_KEY ? process.env : (({ ANTHROPIC_API_KEY, ANTHROPIC_AUTH_TOKEN, ...rest }) => rest)(process.env);
|
|
12086
|
+
return { ENABLE_CLAUDEAI_MCP_SERVERS: "false", ...base };
|
|
12088
12087
|
})();
|
|
12089
12088
|
const warm = process.env.AGENTX_CC_WARM === "0" ? {} : { claudeCodeSession: randomUUID() };
|
|
12090
|
-
return { cwd,
|
|
12089
|
+
return { cwd, env, ...warm, ...toClaudeCodeMcp(mcpServers) ?? {} };
|
|
12091
12090
|
}
|
|
12092
12091
|
function providerOptionsFor(model, cwd, mcpServers, hostMcpServers) {
|
|
12093
12092
|
return cursorProviderOptions(model, cwd, mcpServers, hostMcpServers) ?? claudeCodeProviderOptions(model, cwd, mcpServers);
|