@yulailai/openclaw-plugin-self-growth 3.1.7 → 3.1.8
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/package.json +2 -2
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@yulailai/openclaw-plugin-self-growth",
|
|
3
|
-
"version": "3.1.
|
|
3
|
+
"version": "3.1.8",
|
|
4
4
|
"description": "让 Agent 具备自我成长、复盘与技能进化能力的插件",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "dist/index.js",
|
|
@@ -31,7 +31,7 @@
|
|
|
31
31
|
}
|
|
32
32
|
},
|
|
33
33
|
"scripts": {
|
|
34
|
-
"postinstall": "node -e \"const
|
|
34
|
+
"postinstall": "node -e \"const f=require('fs');const p=require('path');const os=require('os');const src=p.resolve(__dirname);const home=process.env.OPENCLAW_HOME||p.join(os.homedir(),'openclaw');const dest=p.join(home,'extensions','self-growth');f.cpSync(src,dest,{recursive:true,filter:(s)=>/node_modules/.test(s)===false});const cfgPath=p.join(home,'openclaw.json');if(f.existsSync(cfgPath)){const cfg=JSON.parse(f.readFileSync(cfgPath,'utf-8'));cfg.plugins=cfg.plugins||{};cfg.plugins.entries=cfg.plugins.entries||{};cfg.plugins.entries['self-growth']={enabled:true};cfg.plugins.allow=cfg.plugins.allow||[];if(!cfg.plugins.allow.includes('self-growth')){cfg.plugins.allow.push('self-growth')}f.writeFileSync(cfgPath,JSON.stringify(cfg,null,2));console.log('self-growth added to openclaw.json')}console.log('installed to',dest)\"",
|
|
35
35
|
"build": "tsc",
|
|
36
36
|
"build:prod": "tsc && npx terser dist/index.js -o dist/index.js -c -m",
|
|
37
37
|
"dev": "tsc --watch",
|