dsh-baize-rules 0.1.2 → 0.1.4

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 +15 -4
  2. package/README.zh.md +11 -4
  3. package/package.json +6 -2
package/README.md CHANGED
@@ -1,5 +1,6 @@
1
1
  # dsh-baize-rules
2
2
 
3
+ [![Listed on dsh-plugin.org](https://dsh-plugin.org/badges/listed.svg)](https://dsh-plugin.org/plugins/bvcvb/dsh-baize-rules)
3
4
  ![npm version](https://img.shields.io/npm/v/dsh-baize-rules)
4
5
  ![license](https://img.shields.io/npm/l/dsh-baize-rules)
5
6
 
@@ -32,7 +33,7 @@ The name comes from **Baize (白泽)** — a mythical beast said to "understand
32
33
 
33
34
  ```bash
34
35
  # Install from npm into the web profile (use the actual published version)
35
- dsh plugin --profile web add dsh-baize-rules@0.1.2
36
+ dsh plugin --profile web add dsh-baize-rules@0.1.4
36
37
  pm2 restart dsh # Reload when dsh is managed by pm2
37
38
  dsh --profile web
38
39
  ```
@@ -214,15 +215,25 @@ Change the pure functions in `src/rules.ts` (rendering) or `src/core.ts` (comman
214
215
 
215
216
  ## Publishing
216
217
 
218
+ 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.
219
+
217
220
  ```bash
218
- pnpm build && pnpm test # Confirm build & tests pass before publishing
219
- npm publish --access public # package.json already has publishConfig.access=public
221
+ # 1. Bump the version: update `version` in package.json + the install example in both READMEs
222
+ # 2. Verify locally
223
+ pnpm build && pnpm test
224
+ # 3. Commit and push the tag to trigger the CI publish job
225
+ git add -A && git commit -m "release: vX.Y.Z"
226
+ git tag vX.Y.Z && git push origin main --tags
220
227
  ```
221
228
 
222
- > After publishing, keep the `repository` field pointing to the public git repo so the community can browse and provide feedback.
229
+ 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
230
 
224
231
  ---
225
232
 
233
+ ## Changelog
234
+
235
+ See [CHANGELOG.md](./CHANGELOG.md).
236
+
226
237
  ## License
227
238
 
228
239
  [MIT](./LICENSE)
package/README.zh.md CHANGED
@@ -1,5 +1,6 @@
1
1
  # dsh-baize-rules
2
2
 
3
+ [![Listed on dsh-plugin.org](https://dsh-plugin.org/badges/listed.svg)](https://dsh-plugin.org/plugins/bvcvb/dsh-baize-rules)
3
4
  ![npm version](https://img.shields.io/npm/v/dsh-baize-rules)
4
5
  ![license](https://img.shields.io/npm/l/dsh-baize-rules)
5
6
 
@@ -32,7 +33,7 @@
32
33
 
33
34
  ```bash
34
35
  # 从 npm 安装到 web profile(版本以发布后的实际版本为准)
35
- dsh plugin --profile web add dsh-baize-rules@0.1.2
36
+ dsh plugin --profile web add dsh-baize-rules@0.1.4
36
37
  pm2 restart dsh # dsh 由 pm2 托管时重载生效
37
38
  dsh --profile web
38
39
  ```
@@ -214,12 +215,18 @@ pnpm typecheck # npx tsc --noEmit
214
215
 
215
216
  ## 发布
216
217
 
218
+ 发布是**单一来源**:升版本号、推送 `v*` tag,由 GitHub Actions 自动发布到 npm;**请勿在本地手动 `npm publish`**——否则会跟 tag 触发的发布冲突(同一版本无法重复发布)。
219
+
217
220
  ```bash
218
- pnpm build && pnpm test # 发布前确认构建与测试通过
219
- npm publish --access public # package.json 已含 publishConfig.access=public
221
+ # 1. 升版本:更新 package.json version + 两份 README 里的安装示例
222
+ # 2. 本地验证
223
+ pnpm build && pnpm test
224
+ # 3. 提交并推送 tag,触发 CI 发布
225
+ git add -A && git commit -m "release: vX.Y.Z"
226
+ git tag vX.Y.Z && git push origin main --tags
220
227
  ```
221
228
 
222
- > 发布后建议补上 `repository` 字段指向公开 git 仓库,供社区查阅与反馈。
229
+ `.github/workflows/ci.yml` `publish` job `v*` tag 时运行,需 `test` 通过,并使用 GitHub `NPM_TOKEN` secret。
223
230
 
224
231
  ---
225
232
 
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.4",
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
  }