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.
- package/bin/cli.js +4 -5
- 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
|
-
|
|
1212
|
-
|
|
1213
|
-
env: { ...process.env, ...buildClaudeEnv(cfg) }
|
|
1214
|
-
|
|
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();
|