dsh-plugin-tool-management 0.21.3 → 0.21.5

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/CHANGELOG.md CHANGED
@@ -10,6 +10,48 @@
10
10
 
11
11
  ---
12
12
 
13
+ ## [0.21.5] - 2026-10-23
14
+
15
+ ### 新增
16
+
17
+ - **错误消息附带现成候选**:缺 id、缺场景名、缺服务器名、名字打错时,列出当前存在的记忆 id、技能名、人设名、场景名、预设 id、MCP 服务器名。
18
+
19
+ ### 修复
20
+
21
+ - **人设清单带正文路径**:`list` 每条末尾给出人设文件路径,要读完整定义时用文件工具打开。
22
+ - **MCP 重启的豁免范围写清**:只豁免场景锁,不豁免用户同意。
23
+ - **十处写操作补上确认卡**:MCP 停机、提示词正向应用、五域删除进回收站、记忆 / 技能 / 人设的开关落到机器级时;恢复路径(MCP 重启、回收站还原、提示词撤销)不拦。
24
+ - **回收站还原缺 id 时说明那是回收站条目 id**,并指向 `action=list`。
25
+ - **记忆 id 传到其它域时说明那是记忆 id**。
26
+
27
+ ### 变更
28
+
29
+ - 错误消息里点名其它工具时按可见性分叉:模型手里没有那条工具就只指向注入段。
30
+
31
+ ## [0.21.4] - 2026-10-23
32
+
33
+ ### 新增
34
+
35
+ - **技能可编辑**:行菜单新增「编辑」,可改简介与正文,名称只读;官方内置与只读来源不提供编辑 / 删除。
36
+ - **页头「全部关闭」**:场景 / MCP / 技能 / 子智能体 / 提示词 / 记忆六页在存在临时运行时出现,一次清掉这一域全部临时运行,执行后按钮随即消失。
37
+ - **行菜单「统一关闭」**:场景、子智能体、记忆、快捷提示词也支持逐条清掉其他对话 / 工作区的临时运行;有租约时才出现,带确认弹窗,场景只退出进入过这一场的对话 / 工作区。
38
+
39
+ ### 修复
40
+
41
+ - **统一关闭后「临时运行」徽章不消失**:现在会立即消失,不需要刷新页面或等待下一次同步。
42
+ - **统一关闭导致列表重排**:关闭操作不再重拉整层,已打开的条目保持原位,不会把已启用的全部置顶。
43
+ - **MCP 行上长期挂着「已彻底停止」标签**:标签与菜单里的「恢复启用」一并去掉,旧的持久停机记录直接拨开关即可恢复。
44
+
45
+ ### 变更
46
+
47
+ - **「彻底停止」改为「统一关闭」并改为一次性**:关闭后不留下持久停机状态,之后可以重新打开。
48
+ - **页头批量按钮统一改为「全部关闭」**:放在「回收站」右侧,红色边框与红色字体。
49
+ - **技能来源卡片去掉逐条「彻底停止」**:关闭来源只改默认,正在使用它的对话 / 工作区按租约继续;需要立即切断时用页头「全部关闭」。
50
+ - **兼容页移除更新检查行**:需要时点右上角更新按钮;那颗按钮始终只查一次,不再跳转兼容页。
51
+ - **「保存到场景」改为「保存」;技能页「创建技能」改为「创建」**。
52
+
53
+ ---
54
+
13
55
  ## [0.21.3] - 2026-10-22
14
56
 
15
57
  ### 新增
package/README.md CHANGED
@@ -29,9 +29,9 @@ dsh plugin --profile desktop add dsh-plugin-tool-management@latest # 桌面版
29
29
 
30
30
  ## 演示视频
31
31
 
32
- <video controls src="https://github.com/user-attachments/assets/3bed27b0-2d73-4e89-b1dd-f2b1cbd6eaca"></video>
32
+ <video controls src="https://github.com/user-attachments/assets/ff3111c3-4228-45b7-9e28-b85dc60fb6b3"></video>
33
33
 
34
- <video controls src="https://github.com/user-attachments/assets/7c72ce98-fad9-4233-88de-2ebf5ca5bf30"></video>
34
+ 播放器起不来(登录态偶发被浏览器 CSP 拦)?[点此直接看同一个文件](https://github.com/user-attachments/assets/ff3111c3-4228-45b7-9e28-b85dc60fb6b3)。
35
35
 
36
36
  画面里每一个界面都是真机截图,没有重画的 UI,也没有伪造控件。
37
37
 
@@ -71,7 +71,7 @@ dsh plugin --profile desktop add dsh-plugin-tool-management@latest # 桌面版
71
71
  | 锁住就不怕手滑 | 场景可以上锁:五个域的增删改整体只读 |
72
72
  | 删了能找回 | 技能 / 记忆 / 人设 / 提示词 / 场景的删除都进回收站(会话永久删除除外);可勾选批量永久删除,也可设保留期让它自动清(默认永久保留) |
73
73
  | 安全、不添乱 | 只写自己的文件;密钥默认打码、看明文要令牌 |
74
- | 对话 / 工作区各管各的 | 面板顶部先选层,各域开关只影响那一层(全部全局 / 按对话 / 按工作区);其他层原样不动 |
74
+ | 对话 / 工作区各管各的 | 面板顶部先选层,各域开关只影响那一层(全部全局 / 按对话 / 按工作区);其他层原样不动 |
75
75
 
76
76
  ## 快速开始
77
77
 
@@ -87,7 +87,7 @@ dsh plugin --profile desktop remove dsh-plugin-tool-management # 桌面
87
87
  装不到最新版先看这两条:npm 镜像 / 代理有同步延迟;pnpm 若开了 `minimumReleaseAge`(发布冷却),新版本在冷却期内会被直接跳过。两种都不报错,只是安静地装成旧版 —— 用确切版本号安装可以绕开 `@latest` 的解析:
88
88
 
89
89
  ```sh
90
- dsh plugin --profile web add dsh-plugin-tool-management@0.21.2
90
+ dsh plugin --profile web add dsh-plugin-tool-management@0.X.X
91
91
  ```
92
92
 
93
93
  核对装上的到底是哪一版:设置 → 工具管理 → **兼容** 页的「本插件适配版本」是**这一轮实际加载的代码**里的版本号(不是 `package.json` 里写的),应与 `~/.dsh/tool-management/mount.json` 的 `version` 一致。
@@ -120,7 +120,7 @@ dsh plugin --profile web add dsh-plugin-tool-management@latest
120
120
  - **四层叠加**:本层改过 > 进入的场景 > 创建时的快照 > 全局,逐格取最上面有话说的一层;拨回与下层一致时覆盖自动清掉。
121
121
  - **对话里能进出场景**:场景页与斜杠菜单都能进入,档案里勾的记忆 / 技能 / 人设 / MCP 按当前层实时生效;退出回到这一层最开始的样子(不回退到会变的全局)。
122
122
  - **八个域都能按当前层改**:场景、技能(含来源目录)、子智能体、记忆、快捷提示词、MCP 服务器与逐工具可见性、模型工具表(每层一份整名单,全局那份只是新对话 / 新工作区的默认)。
123
- - **全局关着也能临时用,徽章照实算**:服务器 / 技能来源按租约临时运行,别的层看不见;七个域与逐工具一格都有徽章,按当前粒度现算;行菜单「彻底停止」压过一切。
123
+ - **全局关着也能临时用,徽章照实算**:服务器 / 技能来源按租约临时运行,别的层看不见;七个域与逐工具一格都有徽章,按当前粒度现算;行菜单的「统一关闭」会立即停掉它,并把正在用它的会话 / 工作区的开关一并关掉(一次性,之后可重新打开);有临时运行时,场景 / MCP / 技能 / 子智能体 / 提示词 / 记忆各页页头会出现「全部关闭」,一次收掉这一域全部临时运行。
124
124
  - **提示词也能按当前层覆盖**:应用预设或编辑正文只改这一层(写侧车,不写 `~/.dsh/AGENTS.md`);预设库仍是全局资产,切回全局层再改。
125
125
  - **模型工具默认写当前层**:回执说清写的是哪一层,`scope: "global"` 才改全局;两把锁互不干扰 —— 场景锁冻结全局写入,会话 / 工作区锁只冻结那一层。
126
126
 
@@ -238,9 +238,9 @@ dsh plugin --profile web add dsh-plugin-tool-management@latest
238
238
  | 装完没有页面 | 硬刷新;不行重启 DSH。 |
239
239
  | 重复 MCP 页签 | 删 `cordis.patch.yml` 里的旧 loader 行后重启。 |
240
240
  | 改坏配置 DSH 起不来 | 从 `~/.dsh/tool-management/backups/` 取最近的 `cordis.patch.yml.<层级>.bak-<时间戳>` 覆盖回去(每份 patch 各留 5 份)。 |
241
- | 升级 DSH 后动作不可用 | 设置 → 工具管理 → **兼容** 看原因;`doctor.mjs` → `host-deps.mjs --fix`。 |
242
- | 升级 DSH 后装不上 / 提示 peer 不符 | 本插件只适配 DSH **0.2.1**(`>=0.2.1-rc.2 <0.2.2`):别的宿主代次请装对应版本的插件,跨代升级要等插件同步适配。 |
243
- | 模型调不到某条工具 | 「兼容」页的**模型工具表**看它是不是被关了(顶部先选到那个对话 / 工作区;出厂默认关着 20 条);面板和脚本不受影响。 |
241
+ | 升级 DSH 后动作不可用 | 设置 → 工具管理 → **兼容** 看原因;`doctor.mjs` → `host-deps.mjs --fix`。 |
242
+ | 升级 DSH 后装不上 / 提示 peer 不符 | 本插件只适配 DSH **0.2.1**(`>=0.2.1-rc.2 <0.2.2`):别的宿主代次请装对应版本的插件,跨代升级要等插件同步适配。 |
243
+ | 模型调不到某条工具 | 「兼容」页的**模型工具表**看它是不是被关了(顶部先选到那个对话 / 工作区;出厂默认关着 20 条);面板和脚本不受影响。 |
244
244
  | `approval=never` 还要确认吗 | 不弹卡,直接放行并记日志;想问回来切回「工作区内修改」。 |
245
245
  | `subagent_manager_run` 报 provider 不可用 | 对应 provider 没注册:`spawn`(默认)/ `fork`(`inherit`)分别挂 `@deepseek-ai/dsh-subagent-spawn-in-process` / `-fork-in-process` 后重启。 |
246
246
  | 场景绑了 A 人设,官方 `subagent` 还在跑别的 | 官方那两个是宿主的工具,本插件管不到;贴合人设的走 `subagent_manager_run`,官方只在没有人设贴合或要后台跑时用。 |
@@ -249,12 +249,12 @@ dsh plugin --profile web add dsh-plugin-tool-management@latest
249
249
 
250
250
  ## 文档
251
251
 
252
- | 文档 | 什么时候看 |
253
- | --- | --- |
254
- | [故障排查](https://github.com/ouli-1242/dsh-plugin-tool-management/blob/main/docs/TROUBLESHOOTING.md) | 装完没页面、重复页签、升级后动作不可用、停用表坏了、侧车损坏 |
255
- | [架构](https://github.com/ouli-1242/dsh-plugin-tool-management/blob/main/docs/ARCHITECTURE.md) | 想知道内容怎么进模型、同一个开关为什么两个对话不一样、改完落到哪个文件 |
256
- | [兼容矩阵](https://github.com/ouli-1242/dsh-plugin-tool-management/blob/main/docs/COMPATIBILITY.md) | 各 DSH 版本的能力矩阵(已验证 / 未实测 / 不可用) |
257
- | [CHANGELOG](https://github.com/ouli-1242/dsh-plugin-tool-management/blob/main/CHANGELOG.md) | 每一版改了什么 |
252
+ | 文档 | 什么时候看 |
253
+ | ----------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------- |
254
+ | [故障排查](https://github.com/ouli-1242/dsh-plugin-tool-management/blob/main/docs/TROUBLESHOOTING.md) | 装完没页面、重复页签、升级后动作不可用、停用表坏了、侧车损坏 |
255
+ | [架构](https://github.com/ouli-1242/dsh-plugin-tool-management/blob/main/docs/ARCHITECTURE.md) | 想知道内容怎么进模型、同一个开关为什么两个对话不一样、改完落到哪个文件 |
256
+ | [兼容矩阵](https://github.com/ouli-1242/dsh-plugin-tool-management/blob/main/docs/COMPATIBILITY.md) | 各 DSH 版本的能力矩阵(已验证 / 未实测 / 不可用) |
257
+ | [CHANGELOG](https://github.com/ouli-1242/dsh-plugin-tool-management/blob/main/CHANGELOG.md) | 每一版改了什么 |
258
258
 
259
259
  ---
260
260
 
package/README_EN.md CHANGED
@@ -29,7 +29,9 @@ Hard-refresh the browser after installing for web (Cmd/Ctrl+Shift+R), or restart
29
29
 
30
30
  ## Demo
31
31
 
32
- <video controls src="https://github.com/user-attachments/assets/91b9673d-d201-462a-83de-8bc663c7629d"></video>
32
+ <video controls src="https://github.com/user-attachments/assets/ff3111c3-4228-45b7-9e28-b85dc60fb6b3"></video>
33
+
34
+ Player refuses to start (browsers with a stricter CSP sometimes block the inline embed)? [Watch the same file directly](https://github.com/user-attachments/assets/ff3111c3-4228-45b7-9e28-b85dc60fb6b3).
33
35
 
34
36
  Every interface shown is a real screenshot of the running product — no redrawn UI, no fabricated controls.
35
37
 
@@ -85,7 +87,7 @@ dsh plugin --profile desktop remove dsh-plugin-tool-management # desktop
85
87
  Two reasons you might not get the newest release, and neither one errors out: npm mirrors / proxies lag behind, and pnpm's `minimumReleaseAge` (release cooldown) skips anything published inside the window. You just quietly end up on an older version. Pinning an exact version bypasses `@latest` resolution:
86
88
 
87
89
  ```sh
88
- dsh plugin --profile web add dsh-plugin-tool-management@0.21.2
90
+ dsh plugin --profile web add dsh-plugin-tool-management@0.21.4
89
91
  ```
90
92
 
91
93
  To check what you actually got: the "plugin adapter version" on the **Host** tab is the version baked into the code **loaded this session** (not what `package.json` says), and it should match `version` in `~/.dsh/tool-management/mount.json`.
@@ -118,7 +120,7 @@ For the desktop app, swap `web` for `desktop` and end with "remind me to restart
118
120
  - **Four layers stack up**: overrides made on this layer > the entered scene > the snapshot taken when the conversation was created > global; each cell takes the topmost layer that has a say, and matching the lower value clears the override.
119
121
  - **Enter and leave scenes from a conversation**: from the Scenes page or the `/` menu; the archive's memories / skills / personas / MCP servers apply live to the current layer, and leaving returns to how that layer started (never back to a global that keeps changing).
120
122
  - **Eight domains follow the current layer**: scenes, skills (incl. source directories), subagents, memories, quick prompts, MCP server and per-tool visibility, and the model tool table (one whole list per layer; the global one is only the default for new conversations / workspaces).
121
- - **Globally off, still usable here — with honest badges**: a server or skill source runs as a lease for the current layer, invisible to others; seven domains plus per-tool cells show live badges; "Stop permanently" overrides everything.
123
+ - **Globally off, still usable here — with honest badges**: a server or skill source runs as a lease for the current layer, invisible to others; seven domains plus per-tool cells show live badges; a row's "Close everywhere" stops it immediately and switches it off in the conversations / workspaces using it too (one-shot; you can turn it back on later); while leases exist, the Scenes / MCP / Skills / Subagents / Prompts / Memory pages show "Close all" in the header to clear every lease in that domain at once.
122
124
  - **Prompts can also be overridden per layer**: applying a preset or editing the body changes only this layer (sidecar, never `~/.dsh/AGENTS.md`); the preset library stays global, so edit it on the global layer.
123
125
  - **Model tools write to the current layer by default**: receipts name the layer; `scope: "global"` changes the global one. Two independent locks: the scene lock freezes global writes, the conversation / workspace lock only that layer.
124
126
 
package/docs/UPDATE.md CHANGED
@@ -4,6 +4,8 @@
4
4
 
5
5
  | 版本 | 发布 | 主题 |
6
6
  | ------------------------------------------- | ---------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
7
+ | [0.21.5](../CHANGELOG.md#0215---2026-10-23) | 2026-10-23 | 十处写操作补上确认卡(MCP 停机、提示词正向应用、五域删除、开关落到机器级),恢复路径不拦;错误消息附现成候选(记忆 id、技能名、场景名、预设 id、MCP 服务器名) |
8
+ | [0.21.4](../CHANGELOG.md#0214---2026-10-23) | 2026-10-23 | 「彻底停止」改为一次性的「统一关闭」;场景 / MCP / 技能 / 子智能体 / 提示词 / 记忆六页页头新增「全部关闭」(有临时运行时才出现,位于回收站右侧,执行后立即消失);技能行可编辑(官方内置只读),场景 / 子智能体 / 记忆 / 快捷提示词补齐逐条「统一关闭」;统一关闭后徽章即时消失、不再触发列表重排;兼容页移除更新检查行,「保存到场景」「创建技能」文案收短 |
7
9
  | [0.21.3](../CHANGELOG.md#0213---2026-10-22) | 2026-10-22 | 修好三处注入:插件升级后旧框架文案不刷新、旧版本留下的注入消息不补发、MCP 启动 / 重连时先发「已清空」再发内容(两次注入);另修好同步脚本,只改大小写的改名不再把文件弄丢;新增启动时修剪桌面壳鉴权 cookie(堆多了会导致应用起不来);另加严格索引检查门禁与 op 登记表缺声明对账;请求栅栏改为按请求查找 `connection`,不再因挂载顺序永久降级;本地版本领先 registry 时不再显示指向旧版的「复制安装命令」 |
8
10
  | [0.21.2](../CHANGELOG.md#0212---2026-10-22) | 2026-10-22 | **本次重点 · 生效层级(全局 / 工作区 / 会话)**:默认每个对话各一份设置,兼容页可切全局或按工作区,六个域(含逐工具开关与模型工具表)都跟着层走,全局关着的服务器 / 来源能按对话临时运行;另加并发编辑指纹、插件更新检查、诊断信息、记忆搜索与三份文档;兼容范围收窄到 DSH 0.2.1。 |
9
11
  | [0.21.1](../CHANGELOG.md#0211---2026-10-18) | 2026-10-18 | 侧栏加「工具管理」入口与插件行显示名;场景改单列、描述第二行、开关与 ⋯ 居中,锁定键挪进模式横幅;来源目录挪到标题下、归档会话行放宽;开关圆角对齐官方;回收站详情补全条目信息;修好技能被删后退不出场景、斜杠菜单在行内不弹等一批问题 |