@aiyiran/myclaw 1.0.118 → 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 +12 -2
- package/package.json +1 -1
- package/patch-manifest.json +2 -1
package/build-manifest.js
CHANGED
|
@@ -88,8 +88,18 @@ function buildManifest() {
|
|
|
88
88
|
}
|
|
89
89
|
}
|
|
90
90
|
|
|
91
|
-
// === 3.
|
|
92
|
-
const 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
package/patch-manifest.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"_doc": "MyClaw 注入清单 (auto-generated)。strategy: auto | on | off | delete",
|
|
3
|
-
"_generated": "2026-04-02T14:
|
|
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
|
}
|