yingclaw 2.2.2 → 2.2.3
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 +10 -3
- package/package.json +1 -1
package/bin/cli.js
CHANGED
|
@@ -787,7 +787,7 @@ program
|
|
|
787
787
|
{ padding: { top: 0, bottom: 0, left: 2, right: 2 }, borderStyle: 'round', borderColor: 'green', margin: { top: 1, bottom: 1 } }
|
|
788
788
|
));
|
|
789
789
|
|
|
790
|
-
if (process.platform === 'darwin') {
|
|
790
|
+
if (process.platform === 'darwin' || process.platform === 'win32') {
|
|
791
791
|
const shouldReopen = await confirm({ message: '是否现在重启 Claude 桌面应用使默认配置生效?', default: true });
|
|
792
792
|
if (shouldReopen) {
|
|
793
793
|
const openSpinner = ora('正在重启 Claude 桌面应用...').start();
|
|
@@ -795,8 +795,15 @@ program
|
|
|
795
795
|
await openClaudeDesktop();
|
|
796
796
|
openSpinner.succeed(chalk.green('Claude 桌面应用已重启(已恢复 1P 模式)'));
|
|
797
797
|
} catch (e) {
|
|
798
|
-
openSpinner.fail(chalk.red(
|
|
799
|
-
|
|
798
|
+
openSpinner.fail(chalk.red(`自动重启失败: ${e.message}`));
|
|
799
|
+
if (process.platform === 'win32') {
|
|
800
|
+
console.log(chalk.yellow('\n请手动操作(仅关闭窗口不够,进程还在系统托盘):'));
|
|
801
|
+
console.log(chalk.dim(' 1. 任务栏右下角找 Claude 图标 → 右键 → 退出'));
|
|
802
|
+
console.log(chalk.dim(' 2. 或在任务管理器中结束所有 Claude.exe 进程'));
|
|
803
|
+
console.log(chalk.dim(' 3. 然后重新打开 Claude'));
|
|
804
|
+
} else {
|
|
805
|
+
console.log(chalk.dim('请手动完全退出 Claude 后重新打开。'));
|
|
806
|
+
}
|
|
800
807
|
}
|
|
801
808
|
}
|
|
802
809
|
} else {
|