dsh-baize-rules 0.1.2 → 0.1.3

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 (3) hide show
  1. package/README.md +14 -4
  2. package/README.zh.md +10 -4
  3. package/package.json +6 -2
package/README.md CHANGED
@@ -32,7 +32,7 @@ The name comes from **Baize (白泽)** — a mythical beast said to "understand
32
32
 
33
33
  ```bash
34
34
  # Install from npm into the web profile (use the actual published version)
35
- dsh plugin --profile web add dsh-baize-rules@0.1.2
35
+ dsh plugin --profile web add dsh-baize-rules@0.1.3
36
36
  pm2 restart dsh # Reload when dsh is managed by pm2
37
37
  dsh --profile web
38
38
  ```
@@ -214,15 +214,25 @@ Change the pure functions in `src/rules.ts` (rendering) or `src/core.ts` (comman
214
214
 
215
215
  ## Publishing
216
216
 
217
+ Releases are **single-source**: bump the version, push a `v*` tag, and GitHub Actions publishes to npm. **Don't run `npm publish` locally** — doing so alongside a tag would conflict, since a version can't be published twice.
218
+
217
219
  ```bash
218
- pnpm build && pnpm test # Confirm build & tests pass before publishing
219
- npm publish --access public # package.json already has publishConfig.access=public
220
+ # 1. Bump the version: update `version` in package.json + the install example in both READMEs
221
+ # 2. Verify locally
222
+ pnpm build && pnpm test
223
+ # 3. Commit and push the tag to trigger the CI publish job
224
+ git add -A && git commit -m "release: vX.Y.Z"
225
+ git tag vX.Y.Z && git push origin main --tags
220
226
  ```
221
227
 
222
- > After publishing, keep the `repository` field pointing to the public git repo so the community can browse and provide feedback.
228
+ The `publish` job in `.github/workflows/ci.yml` runs on `v*` tags, needs the `test` job to pass, and uses the GitHub `NPM_TOKEN` secret.
223
229
 
224
230
  ---
225
231
 
232
+ ## Changelog
233
+
234
+ See [CHANGELOG.md](./CHANGELOG.md).
235
+
226
236
  ## License
227
237
 
228
238
  [MIT](./LICENSE)
package/README.zh.md CHANGED
@@ -32,7 +32,7 @@
32
32
 
33
33
  ```bash
34
34
  # 从 npm 安装到 web profile(版本以发布后的实际版本为准)
35
- dsh plugin --profile web add dsh-baize-rules@0.1.2
35
+ dsh plugin --profile web add dsh-baize-rules@0.1.3
36
36
  pm2 restart dsh # dsh 由 pm2 托管时重载生效
37
37
  dsh --profile web
38
38
  ```
@@ -214,12 +214,18 @@ pnpm typecheck # npx tsc --noEmit
214
214
 
215
215
  ## 发布
216
216
 
217
+ 发布是**单一来源**:升版本号、推送 `v*` tag,由 GitHub Actions 自动发布到 npm;**请勿在本地手动 `npm publish`**——否则会跟 tag 触发的发布冲突(同一版本无法重复发布)。
218
+
217
219
  ```bash
218
- pnpm build && pnpm test # 发布前确认构建与测试通过
219
- npm publish --access public # package.json 已含 publishConfig.access=public
220
+ # 1. 升版本:更新 package.json version + 两份 README 里的安装示例
221
+ # 2. 本地验证
222
+ pnpm build && pnpm test
223
+ # 3. 提交并推送 tag,触发 CI 发布
224
+ git add -A && git commit -m "release: vX.Y.Z"
225
+ git tag vX.Y.Z && git push origin main --tags
220
226
  ```
221
227
 
222
- > 发布后建议补上 `repository` 字段指向公开 git 仓库,供社区查阅与反馈。
228
+ `.github/workflows/ci.yml` `publish` job `v*` tag 时运行,需 `test` 通过,并使用 GitHub `NPM_TOKEN` secret。
223
229
 
224
230
  ---
225
231
 
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "dsh-baize-rules",
3
3
  "description": "User-set session/global must-do and must-not requirements injected at conversation start (Baize).",
4
- "version": "0.1.2",
4
+ "version": "0.1.3",
5
5
  "license": "MIT",
6
6
  "type": "module",
7
7
  "engines": {
@@ -107,6 +107,10 @@
107
107
  "session",
108
108
  "baize",
109
109
  "must-do",
110
- "must-not"
110
+ "must-not",
111
+ "deepseek-harness",
112
+ "agent-rules",
113
+ "system-reminder",
114
+ "developer"
111
115
  ]
112
116
  }