@dabuliu_wsy/dsh-im 0.3.1 → 0.3.2

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.
package/README.md CHANGED
@@ -3,9 +3,9 @@
3
3
  > DSH(DeepSeek Harness)插件:把多个角色拉进同一个群或私聊,让它们各自带着人设、岗位和工具协作。
4
4
  > 模型与调用全部走宿主 `ctx.llm`(或原生 session),插件不直连任何网关、不保存任何密钥。
5
5
 
6
- `版本 0.3.1` · `Node ≥ 20` · `MIT` · **可用版本(0.x:接口与数据格式可能小幅调整)**
6
+ `版本 0.3.2` · `Node ≥ 20` · `MIT` · **可用版本(0.x:接口与数据格式可能小幅调整)**
7
7
 
8
- **兼容的 DSH 版本**:`0.2.0-rc.2` 与 `0.2.2-rc.3` 双版本实机验证——两版各用官方 CLI 起独立 web profile 挂载本插件,`/api/im/*` 宿主路由均返回 200,`client-modules` 均成功组装本插件客户端模块。
8
+ **兼容的 DSH 版本**:`0.2.0-rc.2` / `0.2.2-rc.3` / `0.2.2-rc.5` 实机验证——各版本用官方 CLI 起独立 web profile 挂载本插件,`/api/im/*` 宿主路由均返回 200,`client-modules` 均成功组装本插件客户端模块。
9
9
  两个版本的 Web 就绪服务不同——rc.2 提供 `webRuntime`,rc.3 已移除并改用 `webStartup`,插件用「`webStartup` → `webRuntime` → 仅 `webServer`」三级降级适配,不绑定任一版本私有服务。
10
10
 
11
11
  > 名称说明:仓库与品牌名为 **dsh-roundtable**;npm 包名是带 scope 的 `@dabuliu_wsy/dsh-im`,**插件 id 与数据目录仍是 `dsh-im`**(`.dsh-im/`、`DSH_IM_*` 环境变量),以兼容现有数据和已装配置。
@@ -110,7 +110,7 @@ dsh plugin --profile desktop add @dabuliu_wsy/dsh-im
110
110
  ```
111
111
 
112
112
  npm 包名是 `@dabuliu_wsy/dsh-im`(scope 必填),插件 id 与数据目录仍是 `dsh-im`。
113
- 版本 **0.3.0** 已发布([npm 页面](https://www.npmjs.com/package/@dabuliu_wsy/dsh-im));
113
+ 版本 **0.3.1** 已发布([npm 页面](https://www.npmjs.com/package/@dabuliu_wsy/dsh-im));
114
114
  每次发布前会跑 `npm run gate` + `npm run verify:pack`(产物齐全、无开发材料、manifest 与版本一致)。
115
115
 
116
116
  ## 配置
@@ -177,7 +177,8 @@ scripts/ 构建与校验脚本
177
177
 
178
178
  ## 项目状态与已知限制(如实)
179
179
 
180
- - **当前版本 `v0.3.0`**(tag + [Release 附件](https://github.com/wangshouyong/dsh-roundtable/releases)):核心功能完成,`npm run gate`(typecheck → 单测 → build → 打包内容校验)与 GitHub Actions 全绿。
180
+ - **当前版本 `v0.3.1`**(tag + [Release 附件](https://github.com/wangshouyong/dsh-roundtable/releases)):核心功能完成,`npm run gate`(typecheck → 单测 → build → 打包内容校验)与 GitHub Actions 全绿。
181
+ - **0.3.2 修复 scoped 安装**:npm 包名带 scope(`@dabuliu_wsy/dsh-im`),但 bundle patch 的 `name` 与客户端模块 id 之前写死成 `dsh-im`,导致 `dsh plugin add @dabuliu_wsy/dsh-im` 装出来的插件行 import 失败、客户端模块不注册(宿主 `/api/im` 不挂载)。现在两者都从包名生成。
181
182
  - **0.x 语义**:接口、数据格式与 UI 仍可能小幅调整;破坏性变更会写进 Release 说明,不静默改契约。
182
183
  - **原生 session 是默认路径,但仍是需要门禁守着的链路**:依赖宿主提供 `ctx.agents` + `tools.register` / `tools.guard`;缺能力时整体回退 `ctx.llm`。它不是"稳定 API",宿主升级后可能要跟着改。
183
184
  - **实验特性默认 shadow**:按需检索、记忆层句柄注入、token 校准都先只观测(写进回执/样本),要显式开开关才改变行为。
package/cordis.patch.yml CHANGED
@@ -1,4 +1,6 @@
1
1
  # 专家团队 IM:侧栏「专家团队」+ Host /api/im
2
+ # name 必须写包名(本仓发布名带 scope):装到 profile/node_modules/@dabuliu_wsy/dsh-im,
3
+ # 写 'dsh-im' 会让 loader 从 profile 根解析不到包 → 插件行 import 失败(ERR_MODULE_NOT_FOUND)。
2
4
  - insert:
3
5
  - id: dsh-im
4
- name: 'dsh-im'
6
+ name: '@dabuliu_wsy/dsh-im'
package/dsh-plugin.json CHANGED
@@ -2,7 +2,7 @@
2
2
  "$schema": "https://dsh.community/schemas/dsh-plugin-0.15.json",
3
3
  "id": "dsh-im",
4
4
  "name": "dsh-im",
5
- "version": "0.3.1",
5
+ "version": "0.3.2",
6
6
  "manifestVersion": "0.15",
7
7
  "facets": {
8
8
  "host": {
package/lib/client.js CHANGED
@@ -1,5 +1,5 @@
1
1
  window.__ModuleLoader__.load({
2
- id: "dsh-im",
2
+ id: "@dabuliu_wsy/dsh-im",
3
3
  factory: (require) => {
4
4
  var module = { exports: {} };
5
5
  var exports = module.exports;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@dabuliu_wsy/dsh-im",
3
- "version": "0.3.1",
3
+ "version": "0.3.2",
4
4
  "description": "DSH 专家团队 IM:多角色群聊/私聊,发言走宿主 ctx.llm 或原生 session",
5
5
  "type": "module",
6
6
  "main": "./dist/host/index.js",