@aiyiran/myclaw 1.0.171 → 1.0.172
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/index.js +8 -0
- package/package.json +1 -1
package/index.js
CHANGED
|
@@ -1015,6 +1015,14 @@ const MENU_ITEMS = [
|
|
|
1015
1015
|
{ key: 'patch', label: '修复', cmd: 'mc patch', desc: '给 AI 助手装上新技能和好看的外衣', action: runPatch },
|
|
1016
1016
|
{ key: 'reinstall', label: '重装', cmd: 'mc longxia', desc: '出了大问题?把 AI 助手删了重新安装', action: runReinstall },
|
|
1017
1017
|
{ key: 'uninstall', label: '卸载', cmd: 'mc uninstall', desc: '卸载 MyClaw,恢复 npm 源地址', action: runUninstall },
|
|
1018
|
+
{ key: 'wsl2reinstall', label: 'WSL2虚拟机重装', cmd: 'mc wsl2 --remote', desc: '强制从网络重新下载并重装 WSL2 虚拟机(仅限 Windows)', action: () => {
|
|
1019
|
+
const wsl2 = require('./wsl2');
|
|
1020
|
+
wsl2.run();
|
|
1021
|
+
}},
|
|
1022
|
+
{ key: 'safe', label: '虚拟机屏蔽', cmd: 'mc safe', desc: '禁止 WSL2 访问 Windows 盘符(仅限 Windows)', action: () => {
|
|
1023
|
+
const restrict = require('./restrict');
|
|
1024
|
+
restrict.run();
|
|
1025
|
+
}},
|
|
1018
1026
|
{ key: 'quit', label: '退出', cmd: 'Ctrl+C', desc: '不玩了,下次见', action: () => { console.log(' 👋 再见!\n'); process.exit(0); } },
|
|
1019
1027
|
];
|
|
1020
1028
|
|