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

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.
Files changed (1) hide show
  1. package/package.json +3 -10
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@yulailai/openclaw-plugin-self-growth",
3
- "version": "3.1.8",
3
+ "version": "3.1.10",
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 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)\"",
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')}\"",
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",
@@ -55,14 +55,7 @@
55
55
  "compat": {
56
56
  "pluginApi": ">=2026.3.24-beta.2",
57
57
  "minGatewayVersion": ">=2026.3.24-beta.2"
58
- },
59
- "runtimeExtensions": [
60
- {
61
- "id": "self-growth",
62
- "label": "Self Growth Engine",
63
- "npmSpec": "@yulailai/openclaw-plugin-self-growth"
64
- }
65
- ]
58
+ }
66
59
  },
67
60
  "peerDependencies": {
68
61
  "openclaw": ">=2026.3.24-beta.2"