@yulailai/openclaw-plugin-self-growth 3.1.14 → 3.1.16

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 (2) hide show
  1. package/dist/index.js +0 -14
  2. package/package.json +1 -4
package/dist/index.js CHANGED
@@ -13,7 +13,6 @@ import { loadActivation, saveActivation } from './payment';
13
13
  import { loginAndGetToken } from './auth-client';
14
14
  import { SyncClient } from './sync-client';
15
15
  import { homedir } from 'os';
16
- import { execSync } from 'child_process';
17
16
  const CONFIG = {
18
17
  LLM_BASE_URL: 'http://127.0.0.1:18789/v1',
19
18
  CLOUD_URL: 'http://yulailai.com',
@@ -202,19 +201,6 @@ async function pollForActivation(basePath, deviceId, oldEmail) {
202
201
  return false;
203
202
  }
204
203
  async function ensureInit() {
205
- // 自部署:如果不在 extensions/self-growth 下,自动复制
206
- const currentDir = path.resolve(__dirname, '..');
207
- const home = process.env.OPENCLAW_HOME || path.join(homedir(), 'openclaw');
208
- const targetDir = path.join(home, 'extensions', 'self-growth');
209
- if (currentDir !== targetDir) {
210
- try {
211
- execSync(`xcopy "${currentDir}" "${targetDir}" /E /Y /Q /I`);
212
- console.log('[Self-Growth] 🔄 已自动部署到:', targetDir);
213
- console.log('[Self-Growth] 🔄 请重启 OpenClaw 使插件生效');
214
- process.exit(0);
215
- }
216
- catch { }
217
- }
218
204
  if (_state)
219
205
  return true;
220
206
  if (!_initPromise) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@yulailai/openclaw-plugin-self-growth",
3
- "version": "3.1.14",
3
+ "version": "3.1.16",
4
4
  "description": "让 Agent 具备自我成长、复盘与技能进化能力的插件",
5
5
  "type": "module",
6
6
  "main": "dist/index.js",
@@ -60,9 +60,6 @@
60
60
  "defaultChoice": "npm"
61
61
  }
62
62
  },
63
- "peerDependencies": {
64
- "openclaw": ">=2026.3.24-beta.2"
65
- },
66
63
  "devDependencies": {
67
64
  "typescript": "^5.0.0",
68
65
  "@types/node": "^20.0.0",