self-evolve-framework 1.0.0 → 1.0.1

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/bin/cli.js +3 -1
  2. package/package.json +2 -4
package/bin/cli.js CHANGED
@@ -137,7 +137,9 @@ for (let i = 3; i < process.argv.length; i++) {
137
137
  }
138
138
  }
139
139
 
140
- fn.run(args).catch((err) => {
140
+ const result = fn.run(args)
141
+ // 兼容 sync 和 async 的 run 函数
142
+ Promise.resolve(result).catch((err) => {
141
143
  console.error("❌ 错误:", err.message)
142
144
  process.exit(1)
143
145
  })
package/package.json CHANGED
@@ -1,14 +1,12 @@
1
1
  {
2
2
  "name": "self-evolve-framework",
3
- "version": "1.0.0",
3
+ "version": "1.0.1",
4
4
  "description": "CodeBuddy 自我进化飞轮 — Post-Edit 验证闭环 + 规则自动推荐 + 离线进化分析",
5
5
  "type": "module",
6
6
  "bin": {
7
7
  "self-evolve": "bin/cli.js"
8
8
  },
9
- "scripts": {
10
- "postinstall": "node bin/cli.js help"
11
- },
9
+ "scripts": {},
12
10
  "keywords": [
13
11
  "codebuddy",
14
12
  "self-evolution",