@aiyiran/myclaw 1.0.117 → 1.0.119

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/build-manifest.js CHANGED
@@ -88,8 +88,18 @@ function buildManifest() {
88
88
  }
89
89
  }
90
90
 
91
- // === 3. 保留 config ===
92
- const config = existing.config || DEFAULT_CONFIG;
91
+ // === 3. 合并 config(以 DEFAULT_CONFIG 为基础,保留旧 manifest 中手动添加的) ===
92
+ const config = {
93
+ ...DEFAULT_CONFIG,
94
+ patches: {
95
+ ...DEFAULT_CONFIG.patches,
96
+ ...(existing.config?.patches || {}),
97
+ },
98
+ };
99
+ // 确保 DEFAULT_CONFIG 中的新字段一定存在(防止旧 manifest 覆盖丢失)
100
+ for (const [k, v] of Object.entries(DEFAULT_CONFIG.patches)) {
101
+ config.patches[k] = v;
102
+ }
93
103
 
94
104
  const manifest = {
95
105
  _doc: 'MyClaw 注入清单 (auto-generated)。strategy: auto | on | off | delete',
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@aiyiran/myclaw",
3
- "version": "1.0.117",
3
+ "version": "1.0.119",
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 | delete",
3
- "_generated": "2026-04-02T14:34:59.192Z",
3
+ "_generated": "2026-04-02T14:44:32.731Z",
4
4
  "agents": [
5
5
  {
6
6
  "id": "danci",
@@ -22,6 +22,7 @@
22
22
  "session.reset.mode": "idle",
23
23
  "session.reset.idleMinutes": 90720,
24
24
  "tools.exec.ask": "off",
25
+ "tools.exec.security": "full",
25
26
  "gateway.auth.token": "aiyiran"
26
27
  }
27
28
  }