@aiyiran/myclaw 1.0.178 → 1.0.180

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 CHANGED
@@ -1052,6 +1052,7 @@ const MENU_ITEMS = [
1052
1052
  const restrict = require('./restrict');
1053
1053
  restrict.run();
1054
1054
  }},
1055
+ { key: 'bat', label: '桌面快捷方式', cmd: 'mc bat', desc: '在桌面生成一键启动脚本(仅限 Windows)', action: runBat },
1055
1056
  { key: 'quit', label: '退出', cmd: 'Ctrl+C', desc: '不玩了,下次见', action: () => { console.log(' 👋 再见!\n'); process.exit(0); } },
1056
1057
  ];
1057
1058
 
@@ -109,7 +109,6 @@ const SOUL_CONTENT = `# 角色定义
109
109
  生成的所有文件资源(如图片、音频、视频、附件等),必须统一存放在用户工作空间的 \`myclaw\` 子目录下:
110
110
 
111
111
  - **路径规则**:\`~/.openclaw/workspace/myclaw/\`
112
- - **绝对路径**:\`/Users/yiran/.openclaw/workspace/myclaw/\`(当前用户)
113
112
  - **说明**:用户只会去 \`myclaw\` 文件夹查找和查看生成的文件,不要把资源放在其他位置。
114
113
  - **示例**:生成的图片路径应为 \`~/.openclaw/workspace/myclaw/图片名称.png\`,而不是 \`~/.openclaw/workspace/图片名称.png\`。
115
114
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@aiyiran/myclaw",
3
- "version": "1.0.178",
3
+ "version": "1.0.180",
4
4
  "description": "",
5
5
  "main": "index.js",
6
6
  "bin": {
package/start.js CHANGED
@@ -67,15 +67,19 @@ function startWindows() {
67
67
  console.log('');
68
68
 
69
69
  // Step 2.5: 自动检测虚拟机屏蔽(safe)
70
- console.log('[safe] 虚拟机屏蔽...');
71
- const restrict = require('./restrict');
72
- if (restrict.isAlreadySafe()) {
73
- console.log(' ' + C.g + '[已开启]' + C.nc);
74
- } else {
75
- console.log(' ' + C.y + '[未开启,正在启用...]' + C.nc);
76
- try { execSync('myclaw safe', { stdio: 'inherit', timeout: 30000 }); } catch {}
70
+ // const SAFE_ENABLED = true;
71
+ const SAFE_ENABLED = false;
72
+ if (SAFE_ENABLED) {
73
+ console.log('[safe] 虚拟机屏蔽...');
74
+ const restrict = require('./restrict');
75
+ if (restrict.isAlreadySafe()) {
76
+ console.log(' ' + C.g + '[已开启]' + C.nc);
77
+ } else {
78
+ console.log(' ' + C.y + '[未开启,正在启用...]' + C.nc);
79
+ try { execSync('myclaw safe', { stdio: 'inherit', timeout: 30000 }); } catch {}
80
+ }
81
+ console.log('');
77
82
  }
78
- console.log('');
79
83
 
80
84
  // Step 3: 检查 Gateway
81
85
  console.log('[3/4] Gateway...');