jianzi-content-workbench 0.2.30 → 1.0.8

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 +4 -4
  2. package/package.json +7 -3
package/README.md CHANGED
@@ -73,17 +73,17 @@ Host 插件(`dsh/index.mjs`)通过官方 `ctx.webServer.register` 注册读
73
73
  从仓库根目录运行:
74
74
 
75
75
  ```sh
76
- node agent-integrations/dsh-workbench/build.mjs
77
- cd agent-integrations/dsh-workbench
78
- pnpm pack
76
+ npm run release
79
77
  ```
80
78
 
79
+ 统一发布目录 `dist/` 会包含源码 ZIP、单独的 DSH 插件 `.tgz` 和校验和;Release workflow 会将 tag 作为版本号,同时戳记项目与插件包。只调试插件包时,可运行 `npm run build --prefix agent-integrations/dsh-workbench`,再从仓库根目录执行 `node scripts/release/pack-dsh-plugin.mjs ./dist`。
80
+
81
81
  本地 `.tgz` 安装适用于开发和调试;普通用户直接在插件管理器中输入 npm 包名即可。DSH 插件索引是另一种分发方式,目前未单独发布。详见官方[插件打包与发布说明](https://github.com/deepseek-ai/deepseek-harness/blob/master/docs/user/develop/basic/publish.md)及[插件索引说明](https://github.com/deepseek-ai/deepseek-harness/blob/master/docs/user/guide/plugin-market.md)。
82
82
 
83
83
  MCP 服务入口路径在 patch 中按 profile 写死(当前 `profiles/desktop`);在其他 profile 安装时需要同步修改。
84
84
 
85
85
  ## npm 正式发布
86
86
 
87
- 正式发布由仓库的 `Publish DSH plugin to npm` GitHub Actions 工作流执行。将插件 `package.json` 的版本更新并合入主分支后,推送对应标签 `dsh-plugin-v<版本号>`(例如 `dsh-plugin-v0.2.30`)。工作流会核对标签和包版本、构建、生成 `.tgz`、上传 GitHub Actions 产物,并将同一个 `.tgz` 发布到 npm。不要用普通 CI 提交触发发布。
87
+ 推送数字版本 tag(如 `1.0.7`)会同时触发 GitHub Release 打包和 DSH npm 发布。npm 工作流从 tag 提取版本,在临时工作区戳记项目与插件包版本,并查询 npm registry;如果该版本已发布,CI 会失败。旧式 `dsh-plugin-v<版本>` 标签仍可单独触发插件发布。无需手动修改项目或插件 `package.json` 的版本,也不要用普通 CI 提交触发发布。
88
88
 
89
89
  首次版本已发布到 npm Registry,GitHub Actions 已配置 **Trusted Publisher**:用户 `shiker1996`、仓库 `wechat-editroom`、工作流文件名 `publish-dsh-plugin.yml`,并允许直接发布。后续推送匹配包版本的标签时,工作流会通过 OIDC 发布,无需长期 npm 发布令牌。
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "jianzi-content-workbench",
3
- "version": "0.2.30",
3
+ "version": "1.0.8",
4
4
  "icon": "./icon.svg",
5
5
  "description": "DSH content workbench panel that starts native Agent sessions backed by Jianzi MCP tools.",
6
6
  "repository": {
@@ -29,7 +29,9 @@
29
29
  "icon.svg"
30
30
  ],
31
31
  "dsh": {
32
- "bundle": { "patch": "./cordis.patch.yml" },
32
+ "bundle": {
33
+ "patch": "./cordis.patch.yml"
34
+ },
33
35
  "client": {
34
36
  "platform": "web",
35
37
  "immediately": true
@@ -39,5 +41,7 @@
39
41
  "@deepseek-ai/dsh-mcp-client": "0.2.2-rc.1",
40
42
  "@deepseek-ai/schemastery": "*"
41
43
  },
42
- "scripts": { "build": "node ./build.mjs" }
44
+ "scripts": {
45
+ "build": "node ./build.mjs"
46
+ }
43
47
  }