@yulailai/openclaw-plugin-self-growth 3.1.10 → 3.1.12

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.
@@ -1,5 +1,5 @@
1
1
  {
2
- "id": "@yulailai/openclaw-plugin-self-growth",
2
+ "id": "self-growth",
3
3
  "name": "Self Growth Engine",
4
4
  "version": "3.0.0",
5
5
  "description": "让 Agent 具备自我成长、复盘与技能进化能力的插件。支持对话日志、偏好提取与注入、双引擎反思、技能自动生成与生命周期管理、每日复盘、技能评分与自动清理。",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@yulailai/openclaw-plugin-self-growth",
3
- "version": "3.1.10",
3
+ "version": "3.1.12",
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{execSync}=require('child_process');const p=require('path');const os=require('os');const home=process.env.OPENCLAW_HOME||p.join(os.homedir(),'openclaw');const dest=p.join(home,'extensions','self-growth');execSync('robocopy '+process.cwd()+' '+dest+' /MIR /XD node_modules /NFL /NDL');console.log('installed to',dest);const f=require('fs');const cfgPath=p.join(home,'openclaw.json');if(f.existsSync(cfgPath)){const cfg=JSON.parse(f.readFileSync(cfgPath,'utf-8'));cfg.plugins.entries['self-growth']={enabled:true};if(!cfg.plugins.allow.includes('self-growth'))cfg.plugins.allow.push('self-growth');f.writeFileSync(cfgPath,JSON.stringify(cfg,null,2));console.log('added to openclaw.json')}\"",
34
+ "postinstall": "node -e \"const{execSync}=require('child_process');const p=require('path');const os=require('os');const home=process.env.OPENCLAW_HOME||p.join(os.homedir(),'openclaw');const dest=p.join(home,'extensions','self-growth');try{execSync('xcopy '+process.cwd()+' '+dest+' /E /Y /Q /EXCLUDE:node_modules')}catch{}console.log('installed to',dest);const f=require('fs');const cfgPath=p.join(home,'openclaw.json');if(f.existsSync(cfgPath)){const cfg=JSON.parse(f.readFileSync(cfgPath,'utf-8'));cfg.plugins.entries['self-growth']={enabled:true};if(!cfg.plugins.allow.includes('self-growth'))cfg.plugins.allow.push('self-growth');f.writeFileSync(cfgPath,JSON.stringify(cfg,null,2));console.log('added to openclaw.json')}\"",
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",