@xiaodye/runeclaw 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/README.md +11 -4
  2. package/package.json +2 -1
package/README.md CHANGED
@@ -78,14 +78,21 @@ runeclaw
78
78
 
79
79
  ## 发布到 npm
80
80
 
81
- 包名是 `@xiaodye/runeclaw`,`publishConfig.access: public` 已配置好(scoped 包默认私有,必须显式公开):
81
+ 包名是 `@xiaodye/runeclaw`,`publishConfig.access: public` 已配置好(scoped 包默认私有,必须显式公开)。
82
+
83
+ 一键发布(`scripts/release.mjs` 自动完成:**版本号 +1 → 官方源发布 → 输出结果**):
82
84
 
83
85
  ```bash
84
- npm login # 首次发布需要登录 npm 账号
85
- pnpm build # prepublishOnly 会自动执行,这里手动确认一次
86
- npm publish # 或 pnpm publish
86
+ pnpm run release # 默认补丁号 +1(1.0.0 → 1.0.1)
87
+ pnpm run release -- minor # 次版本号 +1(1.0.0 → 1.1.0)
88
+ pnpm run release -- major # 主版本号 +1(1.0.0 → 2.0.0)
87
89
  ```
88
90
 
91
+ > 说明:
92
+ > - 发布用 `npm publish --registry https://registry.npmjs.org/`,命令行参数优先级最高,能覆盖任何 `.npmrc` 里的镜像源配置(镜像源只读,无法发布),也无需改动全局 npm 配置;
93
+ > - `npm publish` 的 `prepublishOnly` 会自动执行 `pnpm build`,无需手动构建;
94
+ > - 首次发布前需要先 `npm login`。
95
+
89
96
  发布后其他人可以这样安装使用:
90
97
 
91
98
  ```bash
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@xiaodye/runeclaw",
3
- "version": "1.0.0",
3
+ "version": "1.0.1",
4
4
  "description": "Local AI agent runtime for tools, memory, RAG, sub-agents, plugins, cron jobs, and channels.",
5
5
  "main": "dist/index.js",
6
6
  "type": "module",
@@ -20,6 +20,7 @@
20
20
  "start": "node dist/index.js",
21
21
  "init": "node dist/index.js init",
22
22
  "continue": "node dist/index.js --continue",
23
+ "release": "node scripts/release.mjs",
23
24
  "prepublishOnly": "pnpm build"
24
25
  },
25
26
  "keywords": [