yingclaw 2.4.4 → 2.4.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.
Files changed (2) hide show
  1. package/bin/cli.js +4 -5
  2. package/package.json +1 -1
package/bin/cli.js CHANGED
@@ -1208,11 +1208,10 @@ async function runMenu() {
1208
1208
  console.log(chalk.dim(` 系统提示词已启用:${preview}`));
1209
1209
  }
1210
1210
  await new Promise((resolve) => {
1211
- const child = spawn('claude', launchArgs, {
1212
- stdio: 'inherit',
1213
- env: { ...process.env, ...buildClaudeEnv(cfg) },
1214
- shell: process.platform === 'win32',
1215
- });
1211
+ // Windows 用显式 cmd.exe 调用,避免 shell:true 的参数拼接警告和转义问题
1212
+ const child = process.platform === 'win32'
1213
+ ? spawn('cmd.exe', ['/d', '/c', 'claude', ...launchArgs], { stdio: 'inherit', env: { ...process.env, ...buildClaudeEnv(cfg) } })
1214
+ : spawn('claude', launchArgs, { stdio: 'inherit', env: { ...process.env, ...buildClaudeEnv(cfg) } });
1216
1215
  child.on('error', () => {
1217
1216
  console.log(chalk.yellow('\nClaude Code 未找到,请先选择"安装 Claude Code"'));
1218
1217
  resolve();
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "yingclaw",
3
- "version": "2.4.4",
3
+ "version": "2.4.5",
4
4
  "description": "Claude Code × 国产大模型一键接入:DeepSeek、Kimi、Qwen、MiniMax、GLM、MiMo",
5
5
  "main": "index.js",
6
6
  "bin": {