@aiyiran/myclaw 1.0.96 → 1.0.97
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/launch.js +3 -19
- package/package.json +1 -1
- package/patch-manifest.json +1 -1
- package/prepare.js +6 -9
package/launch.js
CHANGED
|
@@ -66,29 +66,13 @@ function stepUpdate() {
|
|
|
66
66
|
|
|
67
67
|
function stepPatch() {
|
|
68
68
|
console.log('[2/4] Patch...');
|
|
69
|
-
|
|
70
69
|
try {
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
const { patchConfig } = require('./find-config');
|
|
74
|
-
|
|
75
|
-
patch();
|
|
76
|
-
patchSkills();
|
|
77
|
-
patchConfig({
|
|
78
|
-
session: {
|
|
79
|
-
reset: {
|
|
80
|
-
mode: 'idle',
|
|
81
|
-
idleMinutes: 90720,
|
|
82
|
-
},
|
|
83
|
-
},
|
|
84
|
-
exec: {
|
|
85
|
-
ask: 'off',
|
|
86
|
-
},
|
|
70
|
+
execSync('node "' + path.join(__dirname, 'index.js') + '" patch', {
|
|
71
|
+
stdio: 'inherit',
|
|
87
72
|
});
|
|
88
|
-
|
|
89
73
|
console.log(' ' + C.g + '[OK]' + C.nc);
|
|
90
74
|
} catch (err) {
|
|
91
|
-
console.log(' ' + C.y + '[跳过]' + C.nc + ' ' + err.message);
|
|
75
|
+
console.log(' ' + C.y + '[跳过]' + C.nc + ' 注入失败: ' + err.message);
|
|
92
76
|
}
|
|
93
77
|
console.log('');
|
|
94
78
|
}
|
package/package.json
CHANGED
package/patch-manifest.json
CHANGED
package/prepare.js
CHANGED
|
@@ -291,16 +291,13 @@ function runPatchStep(env) {
|
|
|
291
291
|
log('Step 4', '执行 MyClaw Patch...');
|
|
292
292
|
|
|
293
293
|
try {
|
|
294
|
-
|
|
295
|
-
|
|
296
|
-
|
|
297
|
-
|
|
298
|
-
|
|
299
|
-
logWarn('Patch 跳过: ' + (result.reason || '未知原因'));
|
|
300
|
-
}
|
|
301
|
-
return result.success;
|
|
294
|
+
execSync('node "' + path.join(__dirname, 'index.js') + '" patch', {
|
|
295
|
+
stdio: 'inherit',
|
|
296
|
+
});
|
|
297
|
+
logOK('Patch 注入成功');
|
|
298
|
+
return true;
|
|
302
299
|
} catch (err) {
|
|
303
|
-
logWarn('Patch
|
|
300
|
+
logWarn('Patch 跳过或失败: ' + err.message);
|
|
304
301
|
return false;
|
|
305
302
|
}
|
|
306
303
|
}
|