@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 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
- const { patch } = require('./patch');
72
- const { patchSkills } = require('./patch-skill');
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
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@aiyiran/myclaw",
3
- "version": "1.0.96",
3
+ "version": "1.0.97",
4
4
  "description": "",
5
5
  "main": "index.js",
6
6
  "bin": {
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "_doc": "MyClaw 注入清单 (auto-generated)。strategy: auto | on | off",
3
- "_generated": "2026-04-01T13:01:02.413Z",
3
+ "_generated": "2026-04-01T13:24:32.964Z",
4
4
  "agents": [
5
5
  {
6
6
  "id": "danci",
package/prepare.js CHANGED
@@ -291,16 +291,13 @@ function runPatchStep(env) {
291
291
  log('Step 4', '执行 MyClaw Patch...');
292
292
 
293
293
  try {
294
- const { patch } = require('./patch');
295
- const result = patch();
296
- if (result.success) {
297
- logOK('Patch 注入成功');
298
- } else {
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 失败 (非致命): ' + err.message);
300
+ logWarn('Patch 跳过或失败: ' + err.message);
304
301
  return false;
305
302
  }
306
303
  }