@aiyiran/myclaw 1.0.178 → 1.0.179

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/package.json +1 -1
  2. package/start.js +12 -8
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@aiyiran/myclaw",
3
- "version": "1.0.178",
3
+ "version": "1.0.179",
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...');