release 1.0.73

This commit is contained in:
musistudio
2025-12-18 11:46:42 +08:00
parent 8dc0651c12
commit a7e20325db
3 changed files with 12 additions and 9 deletions

View File

@@ -1,6 +1,6 @@
{ {
"name": "@musistudio/claude-code-router", "name": "@musistudio/claude-code-router",
"version": "1.0.72", "version": "1.0.73",
"description": "Use Claude Code without an Anthropics account and route it to another LLM provider", "description": "Use Claude Code without an Anthropics account and route it to another LLM provider",
"bin": { "bin": {
"ccr": "dist/cli.js" "ccr": "dist/cli.js"
@@ -20,7 +20,7 @@
"license": "MIT", "license": "MIT",
"dependencies": { "dependencies": {
"@fastify/static": "^8.2.0", "@fastify/static": "^8.2.0",
"@musistudio/llms": "^1.0.46", "@musistudio/llms": "^1.0.51",
"@inquirer/prompts": "^5.0.0", "@inquirer/prompts": "^5.0.0",
"dotenv": "^16.4.7", "dotenv": "^16.4.7",
"find-process": "^2.0.0", "find-process": "^2.0.0",

10
pnpm-lock.yaml generated
View File

@@ -15,8 +15,8 @@ importers:
specifier: ^5.0.0 specifier: ^5.0.0
version: 5.5.0 version: 5.5.0
'@musistudio/llms': '@musistudio/llms':
specifier: ^1.0.46 specifier: ^1.0.51
version: 1.0.46(ws@8.18.3) version: 1.0.51(ws@8.18.3)
dotenv: dotenv:
specifier: ^16.4.7 specifier: ^16.4.7
version: 16.6.1 version: 16.6.1
@@ -341,8 +341,8 @@ packages:
resolution: {integrity: sha512-9I2Zn6+NJLfaGoz9jN3lpwDgAYvfGeNYdbAIjJOqzs4Tpc+VU3Jqq4IofSUBKajiDS8k9fZIg18/z13mpk1bsA==} resolution: {integrity: sha512-9I2Zn6+NJLfaGoz9jN3lpwDgAYvfGeNYdbAIjJOqzs4Tpc+VU3Jqq4IofSUBKajiDS8k9fZIg18/z13mpk1bsA==}
engines: {node: '>=8'} engines: {node: '>=8'}
'@musistudio/llms@1.0.46': '@musistudio/llms@1.0.51':
resolution: {integrity: sha512-IpI5SWcz3sxKdq6BOK+ZVWGa/r9UR6pLJW+xjQMj3ZKsb4kdBOzBjRnULVvvIy7EUWnyOP13g5LufRx5sp6JdQ==} resolution: {integrity: sha512-38T9NYrL9/Ombwx4YkGZSryYPtyaSMWJb3aGsepY8m9nbwCST60V+68xKVEaWyri6EfN8D3kenU0W8+okfVSmQ==}
'@nodelib/fs.scandir@2.1.5': '@nodelib/fs.scandir@2.1.5':
resolution: {integrity: sha512-vq24Bq3ym5HEQm2NKCr3yXDwjc7vTsEThRDnkp2DK9p1uqLR+DHurm/NOTo0KG7HYHU7eppKZj3MyqYuMBf62g==} resolution: {integrity: sha512-vq24Bq3ym5HEQm2NKCr3yXDwjc7vTsEThRDnkp2DK9p1uqLR+DHurm/NOTo0KG7HYHU7eppKZj3MyqYuMBf62g==}
@@ -1368,7 +1368,7 @@ snapshots:
'@lukeed/ms@2.0.2': {} '@lukeed/ms@2.0.2': {}
'@musistudio/llms@1.0.46(ws@8.18.3)': '@musistudio/llms@1.0.51(ws@8.18.3)':
dependencies: dependencies:
'@anthropic-ai/sdk': 0.54.0 '@anthropic-ai/sdk': 0.54.0
'@fastify/cors': 11.1.0 '@fastify/cors': 11.1.0

View File

@@ -24,7 +24,7 @@ export async function executeCodeCommand(args: string[] = []) {
padding: 0, padding: 0,
} }
} }
args.push('--settings', `${JSON.stringify(settingsFlag)}`); // args.push('--settings', `${JSON.stringify(settingsFlag)}`);
// Non-interactive mode for automation environments // Non-interactive mode for automation environments
if (config.NON_INTERACTIVE_MODE) { if (config.NON_INTERACTIVE_MODE) {
@@ -68,7 +68,10 @@ export async function executeCodeCommand(args: string[] = []) {
claudePath, claudePath,
argsArr, argsArr,
{ {
env: process.env, env: {
...process.env,
...env
},
stdio: stdioConfig, stdio: stdioConfig,
shell: true, shell: true,
} }