dsh-plugin-tool-management 0.22.6 → 0.22.7
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 +28 -0
- package/README.md +14 -16
- package/README_EN.md +13 -15
- package/docs/COMPATIBILITY.md +112 -112
- package/docs/TROUBLESHOOTING.md +4 -4
- package/lib/client.js +257 -120
- package/lib/compat/probe.js +19 -19
- package/lib/context-inject-frame.js +3 -1
- package/lib/context-inject-surface.js +1 -1
- package/lib/context-inject.js +1 -1
- package/lib/evolution/config.js +5 -14
- package/lib/evolution/gates.js +11 -2
- package/lib/evolution/maintenance.js +40 -12
- package/lib/evolution/runtime.js +0 -1
- package/lib/evolution/state.js +29 -3
- package/lib/evolution/write.js +126 -44
- package/lib/index.js +176 -66
- package/lib/memories/catalog.js +11 -0
- package/lib/memories/constants.js +31 -10
- package/lib/memories/render-auto.js +5 -4
- package/lib/memories/service.js +10 -3
- package/lib/memories/snapshot.js +5 -4
- package/lib/ops/compat.js +4 -2
- package/lib/ops/evolution.js +25 -16
- package/lib/scenes/candidates.js +5 -1
- package/lib/subagents/run-provider.js +4 -4
- package/lib/text-width.js +8 -2
- package/lib/tool-table-switch.js +20 -8
- package/lib/tools/memory.js +67 -14
- package/lib/tools/table.js +30 -7
- package/package.json +24 -24
package/CHANGELOG.md
CHANGED
|
@@ -9,6 +9,34 @@
|
|
|
9
9
|
|
|
10
10
|
---
|
|
11
11
|
|
|
12
|
+
## [0.22.7] - 2026-11-12
|
|
13
|
+
|
|
14
|
+
> **适配宿主 0.2.2-rc.2**
|
|
15
|
+
|
|
16
|
+
### 变更
|
|
17
|
+
|
|
18
|
+
- **自主记忆移除「只学不用 / 注入到对话」设置**:学习与注入都跟随全局 / 本工作区两个层开关,旧配置里的残留字段读入时忽略。
|
|
19
|
+
- **自主记忆的能力跟随层开关**:关掉的那层不再出现在 `memory_note` 的 `layer` 参数与 `memory_get` 的笔记清单里,显式指定会被拒绝;设置切换后立即生效。
|
|
20
|
+
- **兼容页的记忆开关合并为一颗**:全局记忆与工作区记忆在界面上同开同关;后端预算、快照与注入仍分两域。
|
|
21
|
+
- **后台复习标题可折叠**:标题带三角、按主文字色显示,不再挂待复习数量。
|
|
22
|
+
- **注入预算改为按域独立**:记忆域 256 KiB,手写记忆与自主记忆在该域内共用;技能 / MCP / 子智能体按条目数、提示词 64 KiB 各自独立,互不挤占。
|
|
23
|
+
|
|
24
|
+
### 修复
|
|
25
|
+
|
|
26
|
+
- **不再声明适配 `0.2.2-rc.1`**:兼容范围下界抬到 `0.2.2-rc.2`(`>=0.2.2-rc.2 <0.2.3`),`engines.dsh` 与 11 个 `@deepseek-ai/dsh-*` peer 同源。本插件只实现 rc.2 的子代理激活请求形状,装在 rc.1 上会在派子智能体时失败;`0.2.2-rc.1` 用户请装 0.22.5(声明旧范围、实现旧形状的那一版)。
|
|
27
|
+
- **兼容矩阵与适配文档按 rc.2 重生成**:`docs/COMPATIBILITY.md` 重新生成,`docs/HOST-ADAPT.md`、`docs/TROUBLESHOOTING.md` 与 README 的范围、验证依据、rc.1 处置同步改口。
|
|
28
|
+
- **兼容页注入开关折成两行**:合并后的六个域固定一行排开。
|
|
29
|
+
- **记忆页待确认数量始终为 0**:页面改读服务端实际返回的待确认计数。
|
|
30
|
+
- **工具表报告漏计 `memory_note`**:兼容页按 22 条手动开关 + 1 条跟随自主记忆总开关展示,实际发送条数与名单一致(总开关关闭 5 条、打开 6 条)。
|
|
31
|
+
- **全局 / 工作区记忆段尾文案用错**:不再套用场景或自主笔记的收尾语,两段各自写明范围与「完整集合」是否成立。
|
|
32
|
+
- **记忆注入字节统计重复计数、忽略域开关**:按记忆域总量统计,区分手写 / 自主与全局 / 工作区;读不动时标为降级,不再显示 0。
|
|
33
|
+
- **人工复核后目录与投影不刷新**:复核只更新状态与复核时间,下一次读取即可见。
|
|
34
|
+
- **场景笔记、斜杠命令与搜索读不到记忆正文摘要**:统一读取 `excerpt`,旧数据只有 `description` 时仍可显示。
|
|
35
|
+
- **维护说明与实际清理行为不一致**:归档 / 失效扫描只改状态、不删记忆正文;30 天前的 episode 文件会被清理。
|
|
36
|
+
- **自主记忆目录读坏时被当成「一条都没有」**:保留上一份目录并标记降级,下一次写入成功后恢复。
|
|
37
|
+
- **注入段收尾标记大小写不同时未被转义**:模型写出的 `</system-reminder>` 变体不会再提前结束注入块。
|
|
38
|
+
- **符号与 emoji 宽度估算偏差**:中文、符号与 emoji 按实际显示宽度计算,表格与卡片不再错位。
|
|
39
|
+
|
|
12
40
|
## [0.22.6] - 2026-11-11
|
|
13
41
|
|
|
14
42
|
> **适配宿主 0.2.2-rc.2**
|
package/README.md
CHANGED
|
@@ -41,7 +41,7 @@ dsh plugin --profile desktop add dsh-plugin-tool-management@latest # 桌面版
|
|
|
41
41
|
</tr>
|
|
42
42
|
<tr>
|
|
43
43
|
<td valign="top"><b>Agent 反向控制</b><br>23 条模型工具覆盖六个域:列、读、建、改、删、启停、进场景、派子智能体。写操作弹确认卡;关掉的工具不在 schema 里,模型完全看不到。</td>
|
|
44
|
-
<td valign="top"><b>兼容页是总控台</b><br
|
|
44
|
+
<td valign="top"><b>兼容页是总控台</b><br>版本与能力体检、访问令牌、生效层级、注入域开关、模型工具表、侧栏入口,都在这一页。</td>
|
|
45
45
|
<td valign="top"><b>一个面板,八个页签</b><br>场景 / MCP / 技能 / 子智能体 / 提示词 / 记忆 / 会话 / 兼容,不再在六处设置之间来回找。</td>
|
|
46
46
|
</tr>
|
|
47
47
|
</table>
|
|
@@ -88,7 +88,7 @@ dsh plugin --profile desktop add dsh-plugin-tool-management@latest # 桌面版
|
|
|
88
88
|
<tr><td><b>技能</b></td><td>按来源分组,启停 / 移除 / 导入 / 编辑;同名技能标出谁在生效,外部目录只读。</td></tr>
|
|
89
89
|
<tr><td><b>子智能体</b></td><td>一个人设一个 <code>.md</code>,可派活、限工具、选模型;跑完只回结果,不占你的会话记录。</td></tr>
|
|
90
90
|
<tr><td><b>提示词</b></td><td>多套 <code>AGENTS.md</code> 一键应用 / 取消应用,保留 5 代备份;快捷提示词从 <code>/</code> 直接贴进输入框。</td></tr>
|
|
91
|
-
<tr><td><b>记忆</b></td><td>分全局 / 工作区 / 场景三层,<code>.md</code>
|
|
91
|
+
<tr><td><b>记忆</b></td><td>分全局 / 工作区 / 场景三层,<code>.md</code> 正文自动进上下文;导入导出、回收站、注入预算(记忆域 256 KiB,手写与自主记忆共用;技能 / MCP / 子智能体按条目数、提示词 64 KiB 各自独立)。</td></tr>
|
|
92
92
|
<tr><td><b>会话</b></td><td>按项目分组归档,可搜索、批量恢复;能导入 Claude Code / Cursor / Codex 的记录,导出 Markdown / JSONL。</td></tr>
|
|
93
93
|
<tr><td><b>兼容</b></td><td>版本与能力体检、访问令牌、生效层级、注入开关、模型工具表、侧栏入口、清理旧备份。</td></tr>
|
|
94
94
|
</table>
|
|
@@ -99,24 +99,22 @@ dsh plugin --profile desktop add dsh-plugin-tool-management@latest # 桌面版
|
|
|
99
99
|
|
|
100
100
|
> **实验性功能**:行为与界面仍在调整,遇到问题欢迎[提 issue](https://github.com/ouli-1242/dsh-plugin-tool-management/issues)。
|
|
101
101
|
|
|
102
|
-
- **两个独立开关**:全局 /
|
|
103
|
-
- **每次学习都问一次**:新条目一律弹卡,由你选「加入全局记忆」「加入本工作区」或「不加入」;只有两种例外不弹 —— 打开「自动确认」后交给 agent
|
|
102
|
+
- **两个独立开关**:全局 / 本工作区各自开关,可都开或只开一层;学习与注入都跟随它们,只开一层时卡片只列那一层。记忆页把自主记忆收在一张卡里:卡内先列全局一节,再按工作区分节;开关只决定哪几层注入。
|
|
103
|
+
- **每次学习都问一次**:新条目一律弹卡,由你选「加入全局记忆」「加入本工作区」或「不加入」;只有两种例外不弹 —— 打开「自动确认」后交给 agent 决定(层也由它选,包含全局层),以及合并进一条已生效的记忆(层已经定了,不必再问)。普通任务中 agent 不扫描对话,重要信息由宿主压缩时的复习兜底。
|
|
104
104
|
- **证据分三档,模型不能自报**:逐字命中你的原话 / 你看过原文点过确认 / agent 自己推断 —— 排序与页面标签用这三档,`memory_note` 没有「我很有把握」这种参数可填;已经在用户记忆里说过的事不再另记一份。
|
|
105
105
|
- **卡片按正文语言显示,可改措辞**:卡片只用记忆正文的语言;在卡片里写下自己的想法,会退回模型按你的话重写并重新弹卡确认。没有交互界面时(后台复习 / headless)先进「待确认」,可在记忆页逐条处理。
|
|
106
106
|
- **类型决定保质期,判错可以自己改**:每条记忆带一个类型(偏好 / 事实 / 纠正 / 做法)。事实与做法 30 天后提醒复核,偏好与纠正不过期 —— 复核卡片与编辑弹窗都会写明当前类型与它意味着什么。模型判错时在编辑弹窗里改类型,保质期跟着重算。
|
|
107
|
-
-
|
|
108
|
-
- **两条注入消息**:全局自动记忆并进「常驻记忆」那段,本工作区自动记忆与手写的工作区记忆合成「工作区记忆」那段;新增一条只重发对应那一段。
|
|
109
|
-
- **与手写记忆共用注入预算**:全部记忆合计 256 KiB;超限时按「工作区自主 → 全局自主 → 工作区记忆 → 场景记忆 → 全局记忆」整条让位,段尾列出未注入的条目,页头预算转红。
|
|
107
|
+
- **两条注入消息,预算按域独立**:全局自动记忆并进「常驻记忆」那段,本工作区自动记忆与手写的工作区记忆合成「工作区记忆」那段;新增一条只重发对应那一段。记忆域 256 KiB,手写记忆与自主记忆在该域内共用;技能 / MCP / 子智能体按条目数、提示词 64 KiB 各自独立。记忆域超限时按「工作区自主 → 全局自主 → 工作区记忆 → 场景记忆 → 全局记忆」整条让位,段尾列出未注入的条目,页头预算转红。
|
|
110
108
|
- **停用、归档、删除是三件事**:行内开关只拨「暂不注入」,条目留在列表里随时拨回;⋯ 菜单的「否决」把它归档(不再注入、列表里收起、随时可恢复,文件不动);「删除」才进回收站并写墓碑,可恢复或永久删除。⋯ 菜单也可改正文。
|
|
111
|
-
-
|
|
109
|
+
- **后台复习与维护**:宿主压缩上下文时复习一次那份提炼结果,没压缩就不复习;失败有重试入口;维护扫描每天最多一次,归档 / 失效只改状态、不删记忆正文;30 天前的 episode 文件会被清理。正文与状态在 `evolution/notes/`,工具不出现在模型工具表里、也不随场景切换。
|
|
112
110
|
|
|
113
111
|
## 让 Agent 管这个插件
|
|
114
112
|
|
|
115
|
-
|
|
113
|
+
六个操作域共 **23 条模型工具**:列清单、读正文、新建、修改、删除、启停、进出场景、应用提示词、派子智能体。其中 22 条可在工具表逐条开关,`memory_note` 跟随自主记忆总开关。
|
|
116
114
|
|
|
117
|
-
- **默认只发 5 条**(`tool_manager_tools` / `memory_get` / `memory_remember` / `skill_manager_read` / `subagent_manager_run
|
|
115
|
+
- **默认只发 5 条**(`tool_manager_tools` / `memory_get` / `memory_remember` / `skill_manager_read` / `subagent_manager_run`),17 条手动开关默认关着;`memory_note` 另跟随总开关,关闭时 5 条、打开时 6 条。关掉不是藏起来,是**根本没进 schema**——模型看不到,也调不到。
|
|
118
116
|
- **按层生效**:模型默认只改当前这一层,回执会说清写的是哪一层;带 `scope: "global"` 才动全局。
|
|
119
|
-
- **写操作有确认卡**:停机、删除、开关落到机器级等都会先问一句;恢复动作(重启 / 还原 / 取消应用)不拦。会话处于「完全权限」审批策略(`never
|
|
117
|
+
- **写操作有确认卡**:停机、删除、开关落到机器级等都会先问一句;恢复动作(重启 / 还原 / 取消应用)不拦。会话处于「完全权限」审批策略(`never`)时不会弹卡,需要确认的写操作会被宿主直接拒绝;可恢复动作照常放行。
|
|
120
118
|
- **逐条可开关**:兼容页的「模型工具表」按层调整,22 条全开约 6k token/轮;可以按任务存成不同方案,跟场景一起切。
|
|
121
119
|
- **关掉的模型自己能开**:常驻的那条 `tool_manager_tools` 能列出这个对话关着的工具(名字 + 用途 + ≈token)并按需打开 —— 用户说「进入某个场景」而场景工具恰好关着时,模型有路走,不用回头找用户。
|
|
122
120
|
|
|
@@ -128,8 +126,8 @@ dsh plugin --profile desktop add dsh-plugin-tool-management@latest # 桌面版
|
|
|
128
126
|
- **升级差异**:逐包对照 cordis、11 个 peer 与 15 个运行时官方包的版本和适配基准(超出 peer 范围直接进阻塞项),并把事件名、会话目录布局、补丁方言、MCP 配置键与工具参数表、提示词段排序位、客户端界面槽位、官方技能资产等宿主契约的 canary 一并列出。
|
|
129
127
|
- **访问令牌**:设置 / 关闭 / 修改 / 删除;写操作与明文密钥都走它。
|
|
130
128
|
- **生效层级**:全部全局 / 按工作区 / 按会话,一键切。
|
|
131
|
-
-
|
|
132
|
-
- **模型工具表**:22
|
|
129
|
+
- **注入**:七个域的开关(全局记忆与工作区记忆在界面上合并为一颗)、极简模式兜底注入、技能 / MCP / 子智能体的目录上限(超出的折叠为一行,描述字符数也可配)、斜杠命令两段入口、侧栏入口。
|
|
130
|
+
- **模型工具表**:22 条逐条可见性,另有 `memory_note` 跟随自主记忆总开关;按层保存方案。
|
|
133
131
|
- **维护**:清理旧备份、功能总览、最近改动。
|
|
134
132
|
|
|
135
133
|
<details>
|
|
@@ -144,7 +142,7 @@ dsh plugin --profile desktop add dsh-plugin-tool-management@latest # 桌面版
|
|
|
144
142
|
| 回收站(技能 / 记忆 / 人设 / 预设 / 场景) | `~/.dsh/tool-management/trash/<域>-trash/` |
|
|
145
143
|
| 归档账本 / 保留期 | `~/.dsh/tool-management/history-*.json` |
|
|
146
144
|
| MCP 侧车(停用表 / 已知工具 / 备注 / 设置) | `~/.dsh/tool-management/mcp-*.json` |
|
|
147
|
-
|
|
|
145
|
+
| 注入设置(注入域开关 · 目录上限) | `~/.dsh/tool-management/inject-settings.json` |
|
|
148
146
|
| 模型工具表 / 作用域覆盖 | `~/.dsh/tool-management/tool-table.json` · `scope-overrides.json` |
|
|
149
147
|
| 运行日志 / patch 备份 | `~/.dsh/tool-management/tool-management.log` · `backups/` |
|
|
150
148
|
|
|
@@ -161,9 +159,9 @@ dsh plugin --profile desktop add dsh-plugin-tool-management@latest # 桌面版
|
|
|
161
159
|
| 现象 | 解决 |
|
|
162
160
|
|:--------------------- |:------------------------------------------------------------------------------------------- |
|
|
163
161
|
| 装完没有页面 | 硬刷新浏览器;还不行就重启 DSH。 |
|
|
164
|
-
| 模型调不到某条工具 | 兼容页 →「模型工具表」,先选对当前对话 / 工作区(出厂默认关着
|
|
162
|
+
| 模型调不到某条工具 | 兼容页 →「模型工具表」,先选对当前对话 / 工作区(出厂默认关着 17 条手动开关;`memory_note` 另看自主记忆总开关)。面板和脚本不受影响。 |
|
|
165
163
|
| 升级 DSH 后动作不可用 | 兼容页看降级原因;`node scripts/doctor.mjs`,再 `node scripts/host-deps.mjs --fix`。 |
|
|
166
|
-
| 版本对不上 | 只适配 DSH **0.2.2**(`>=0.2.2-rc.
|
|
164
|
+
| 版本对不上 | 只适配 DSH **0.2.2**(`>=0.2.2-rc.2 <0.2.3`),跨代升级要等插件同步适配;`0.2.2-rc.1` 请装 0.22.5,更早宿主装 0.21.x。 |
|
|
167
165
|
| 重复 MCP 页签 | 删掉 `cordis.patch.yml` 里的旧 loader 行,再重启。 |
|
|
168
166
|
| 改坏配置 DSH 起不来 | 从 `~/.dsh/tool-management/backups/` 取最近的 `cordis.patch.yml.*.bak-*` 覆盖回去。 |
|
|
169
167
|
|
package/README_EN.md
CHANGED
|
@@ -40,7 +40,7 @@ Hard-refresh the browser after installing for web (Cmd/Ctrl+Shift+R), or restart
|
|
|
40
40
|
<td width="34%" valign="top"><b>Three scopes</b><br>All global / per workspace / per conversation. By default every conversation has its own settings — two conversations in the same project can run two different environments at once.</td>
|
|
41
41
|
</tr>
|
|
42
42
|
<tr>
|
|
43
|
-
<td valign="top"><b>The agent can drive it</b><br>23 model tools across six domains: list, read, create, update, delete, toggle, enter scenes, apply prompts, run personas. Writes ask for confirmation (
|
|
43
|
+
<td valign="top"><b>The agent can drive it</b><br>23 model tools across six domains: list, read, create, update, delete, toggle, enter scenes, apply prompts, run personas. Writes ask for confirmation (under the host's <code>never</code> policy they are rejected instead). Disabled tools are not in the schema at all.</td>
|
|
44
44
|
<td valign="top"><b>The Host page is a control center</b><br>Version and capability checks, access token, scope mode, per-domain injection switches, the model-tool table and the sidebar entry — all on one page.</td>
|
|
45
45
|
<td valign="top"><b>One panel, eight tabs</b><br>Scenes / MCP / Skills / Subagents / Prompts / Memories / Sessions / Host — no more hunting through six different settings pages.</td>
|
|
46
46
|
</tr>
|
|
@@ -88,7 +88,7 @@ Scenes work in all three scopes. Under per-conversation, conversation A can sit
|
|
|
88
88
|
<tr><td><b>Skills</b></td><td>Grouped by source; enable, remove, import, edit; same-name skills show which copy is in effect; external directories stay read-only.</td></tr>
|
|
89
89
|
<tr><td><b>Subagents</b></td><td>One <code>.md</code> per persona; delegate work, limit tools, pick a model; only the result comes back, never into your History.</td></tr>
|
|
90
90
|
<tr><td><b>Prompts</b></td><td>Multiple <code>AGENTS.md</code> baselines with one-click apply/undo and five generations of backups; quick prompts paste into the composer from <code>/</code>.</td></tr>
|
|
91
|
-
<tr><td><b>Memories</b></td><td>Global / workspace / scene layers; <code>.md</code> bodies are injected automatically; import/export, recycle bin, injection budget (
|
|
91
|
+
<tr><td><b>Memories</b></td><td>Global / workspace / scene layers; <code>.md</code> bodies are injected automatically; import/export, recycle bin, injection budget (256 KiB for the memory domain, shared by hand-written and learned notes; skills / MCP / subagents are capped per entry and prompts at 64 KiB, each independent).</td></tr>
|
|
92
92
|
<tr><td><b>Sessions</b></td><td>Archived by project, searchable, batch restore; import Claude Code / Cursor / Codex transcripts; export Markdown / JSONL.</td></tr>
|
|
93
93
|
<tr><td><b>Host</b></td><td>Version and capability checks, access token, scope mode, injection switches, model-tool table, sidebar entry, backup cleanup.</td></tr>
|
|
94
94
|
</table>
|
|
@@ -99,24 +99,22 @@ Off by default. When on, the agent records preferences, facts and corrections wo
|
|
|
99
99
|
|
|
100
100
|
> **Experimental**: behaviour and UI are still changing. Please [open an issue](https://github.com/ouli-1242/dsh-plugin-tool-management/issues) if something goes wrong.
|
|
101
101
|
|
|
102
|
-
- **Two independent switches**: global and this workspace can be on together or one at a time; learning and injection both follow them, and the card only lists the layers that are on. On the Memory page
|
|
103
|
-
- **Every learn asks once**: a new note always gets a card — pick "add to global", "add to this workspace", or "do not add". Only two cases skip it: auto-confirm is on (the agent decides), and merging into a note that is already active (the layer is already settled). The agent does not scan the conversation during normal work — when the host compacts the context, that summary is reviewed once for anything durable.
|
|
102
|
+
- **Two independent switches**: global and this workspace can be on together or one at a time; learning and injection both follow them, and the card only lists the layers that are on. On the Memory page all autonomous notes live in one card — a global section first, then one section per workspace; the switches only decide which layers inject.
|
|
103
|
+
- **Every learn asks once**: a new note always gets a card — pick "add to global", "add to this workspace", or "do not add". Only two cases skip it: auto-confirm is on (the agent decides, including the global layer), and merging into a note that is already active (the layer is already settled). The agent does not scan the conversation during normal work — when the host compacts the context, that summary is reviewed once for anything durable.
|
|
104
104
|
- **Card language, rewording, and pending**: the card uses the language of the note body; type your own wording in the card and it goes back to the model to rewrite, then asks you again. Without an interactive card (background review, headless sessions) the note saves as pending and is handled on the Memory page; with auto-confirm on it goes active directly.
|
|
105
105
|
- **Type decides shelf life, and a wrong call is yours to fix**: every note carries a type (preference / fact / correction / procedure). Facts and procedures get a review reminder after 30 days; preferences and corrections never expire. The review card and the editor both state the current type and what it means; if the model got it wrong, change it in the editor and the shelf life is recomputed.
|
|
106
|
-
- **
|
|
107
|
-
- **Two injection messages**: global learned notes join the always-on block, while workspace learned notes and hand-written workspace memories are merged into one “Workspace memories” block; adding one note re-sends only its block.
|
|
106
|
+
- **Two injection messages, and budgets are per domain**: global learned notes join the always-on block, while workspace learned notes and hand-written workspace memories are merged into one “Workspace memories” block; adding one note re-sends only its block. The memory domain is 256 KiB, shared by hand-written and learned notes; skills / MCP / subagents are capped by entry count and prompts at 64 KiB, independently. Within the memory domain, over-limit entries step aside whole in the order workspace notes → global notes → workspace memories → scene memories → global memories; the ones left out are listed at the end and the page-header budget turns red.
|
|
108
107
|
- **Evidence comes in three tiers and the model cannot claim one**: a verbatim match of your own words, your confirmation on a card that showed the text, or the agent's own inference — sorting and page labels use those tiers, and `memory_note` has no “I'm confident” parameter to fill in. Something already covered by your own memories is not written a second time.
|
|
109
|
-
- **Shared injection budget with hand-written memories**: 256 KiB for everything together; over the limit, whole entries step aside in the order workspace notes → global notes → workspace memories → scene memories → global memories, the ones left out are listed at the end, and the page-header budget turns red.
|
|
110
108
|
- **Disable, archive and delete are three different things**: the row switch only flips "not injected for now" — the note stays in the list and flips back any time. The ⋯ menu's reject archives it (no longer injected, folded away in the list, restorable at any time, file untouched). Only delete moves it to the recycle bin and writes a tombstone, so the wording cannot be re-learned for 30 days; restore or delete it permanently from there. The ⋯ menu also edits the body.
|
|
111
|
-
- **Background review and upkeep**: review runs only when the host compacts the context — no compaction, no review; failures retry with backoff and have a manual retry entry; maintenance runs at most once a day
|
|
109
|
+
- **Background review and upkeep**: review runs only when the host compacts the context — no compaction, no review; failures retry with backoff and have a manual retry entry; maintenance runs at most once a day, archives / invalidates by changing status only (bodies are kept), and removes episode files older than 30 days. Note bodies and state live under `evolution/notes/`, and the tool never appears in the model tool table or follows scenes — only the two switches.
|
|
112
110
|
|
|
113
111
|
## Let the agent drive it
|
|
114
112
|
|
|
115
|
-
Six domains, **23 model tools**: list, read, create, update, delete, toggle, enter or leave a scene, apply a prompt, run a persona. 22 of them can be toggled individually in the tool table; `memory_note` follows the autonomous-memory switch.
|
|
113
|
+
Six operation domains, **23 model tools**: list, read, create, update, delete, toggle, enter or leave a scene, apply a prompt, run a persona. 22 of them can be toggled individually in the tool table; `memory_note` follows the autonomous-memory master switch.
|
|
116
114
|
|
|
117
|
-
- **Only 5 ship enabled** (`tool_manager_tools` / `memory_get` / `memory_remember` / `skill_manager_read` / `subagent_manager_run`);
|
|
115
|
+
- **Only 5 ship enabled** (`tool_manager_tools` / `memory_get` / `memory_remember` / `skill_manager_read` / `subagent_manager_run`); 17 manual toggles stay off by default. `memory_note` follows the master switch separately, so a request carries 5 tools when it is off and 6 when it is on. Off means **not in the schema at all** — the model cannot see them, let alone call them.
|
|
118
116
|
- **Scoped writes**: the model writes to the current layer by default and the receipt says which one; `scope: "global"` is required to touch everything.
|
|
119
|
-
- **Confirmation cards**: stopping servers, deleting, machine-wide toggles and similar writes ask first; recovery actions (restart, restore, undo apply) go straight through.
|
|
117
|
+
- **Confirmation cards**: stopping servers, deleting, machine-wide toggles and similar writes ask first; recovery actions (restart, restore, undo apply) go straight through. With the host's `never` approval policy no card appears: writes that need confirmation are rejected by the host, while recovery actions still go through.
|
|
120
118
|
- **Per-tool control**: the model-tool table on the Host page adjusts visibility per layer. All 22 on is ~6k tokens/turn; profiles can be saved per task and switched together with a scene.
|
|
121
119
|
- **The model can switch tools back on**: the always-on `tool_manager_tools` lists the tools that are off in this conversation (name, purpose, ≈tokens) and turns them on as needed — when the user asks for a scene whose tools happen to be off, the model has a way forward instead of bouncing back to the user.
|
|
122
120
|
|
|
@@ -128,8 +126,8 @@ More than a version number:
|
|
|
128
126
|
- **Upgrade diff**: per-package versions for cordis, the 11 peers and 15 runtime-only official packages against the verified baseline (out-of-range peers become blockers), plus canaries for event names, session-directory layout, patch dialect, MCP config keys and tool argument schemas, prompt section ordering, client UI slots and official skill assets.
|
|
129
127
|
- **Access token**: set / disable / change / delete; writes and plaintext secrets go through it.
|
|
130
128
|
- **Scope**: all global / per workspace / per conversation.
|
|
131
|
-
- **Injection**:
|
|
132
|
-
- **Model tools**: per-tool visibility for 22
|
|
129
|
+
- **Injection**: switches for seven domains (global and workspace memory share one switch in the UI), minimal-preset fallback, catalog caps for skills / MCP / subagents (overflow folds into a one-line count; per-entry description length is configurable too), the two slash-menu entries, sidebar entry.
|
|
130
|
+
- **Model tools**: per-tool visibility for 22 tools, plus `memory_note` following the autonomous-memory master switch; saved per layer.
|
|
133
131
|
- **Maintenance**: old-backup cleanup, feature overview, recent changes.
|
|
134
132
|
|
|
135
133
|
<details>
|
|
@@ -144,7 +142,7 @@ More than a version number:
|
|
|
144
142
|
| Recycle bins (skills / memories / personas / presets / scenes) | `~/.dsh/tool-management/trash/<domain>-trash/` |
|
|
145
143
|
| Archive ledger / retention | `~/.dsh/tool-management/history-*.json` |
|
|
146
144
|
| MCP sidecars (disabled tools / known tools / notes / settings) | `~/.dsh/tool-management/mcp-*.json` |
|
|
147
|
-
| Injection settings (
|
|
145
|
+
| Injection settings (domain switches · catalog caps) | `~/.dsh/tool-management/inject-settings.json` |
|
|
148
146
|
| Model-tool table / scope overrides | `~/.dsh/tool-management/tool-table.json` · `scope-overrides.json` |
|
|
149
147
|
| Runtime log / patch backups | `~/.dsh/tool-management/tool-management.log` · `backups/` |
|
|
150
148
|
|
|
@@ -163,7 +161,7 @@ More than a version number:
|
|
|
163
161
|
| No panel after installing | Hard-refresh the browser; if that fails, restart DSH. |
|
|
164
162
|
| The model cannot call a tool | Host page → “Model tools”, make sure the right conversation / workspace is selected (18 tools are off by default). The panel and scripts are unaffected. |
|
|
165
163
|
| Actions unavailable after a DSH upgrade | Check the reason on the Host page; run `node scripts/doctor.mjs`, then `node scripts/host-deps.mjs --fix`. |
|
|
166
|
-
| Version mismatch | Supports DSH **0.2.2** only (`>=0.2.2-rc.
|
|
164
|
+
| Version mismatch | Supports DSH **0.2.2** only (`>=0.2.2-rc.2 <0.2.3`); for `0.2.2-rc.1` install 0.22.5, and install 0.21.x for older hosts. Cross-generation upgrades wait for the plugin to catch up. |
|
|
167
165
|
| Duplicate MCP tab | Remove the old loader line from `cordis.patch.yml` and restart. |
|
|
168
166
|
| DSH won't start after a bad edit | Restore the newest `cordis.patch.yml.*.bak-*` from `~/.dsh/tool-management/backups/`. |
|
|
169
167
|
|
package/docs/COMPATIBILITY.md
CHANGED
|
@@ -1,112 +1,112 @@
|
|
|
1
|
-
# 兼容矩阵
|
|
2
|
-
|
|
3
|
-
> 本文件由 `node scripts/compat-matrix.mjs` 生成,请勿手工编辑。
|
|
4
|
-
>
|
|
5
|
-
> 插件 0.22.
|
|
6
|
-
|
|
7
|
-
这张表回答一个问题:**同一个插件,装在不同版本的 DSH 宿主上,哪些能力还在、哪些已经对不上。**
|
|
8
|
-
它只做静态判定(读宿主安装里的官方包,看原型上的成员在不在),不启动宿主、不碰会话数据。
|
|
9
|
-
|
|
10
|
-
## 怎么读
|
|
11
|
-
|
|
12
|
-
- **已验证** —— 该宿主版本正是本插件适配器最后验证的那一版,且这项能力在它的官方实现里存在。
|
|
13
|
-
- **未实测** —— 这项能力在这个宿主上存在,这个宿主也在适配范围内,但它不是验证基准。
|
|
14
|
-
存在不等于行为一致:差一个 rc 也可能改了语义。以插件「兼容」页对**活宿主**的探测为准。
|
|
15
|
-
- **未适配** —— 这项能力在这个宿主上存在,但这个宿主版本**不在**本插件的适配范围内。
|
|
16
|
-
插件不声明支持它;装也装不上(peer 校验会拦)。要跑这一代宿主,请装对应版本的插件。
|
|
17
|
-
- **不可用** —— 该宿主的官方实现里没有这项成员。依赖它的功能会被拒绝(写入类)或降级(读取类),
|
|
18
|
-
而不是带着未知实现去改数据。
|
|
19
|
-
- **—** —— 这项能力只能在**活的宿主**上判定(实例字段的形状、行为试跑),静态视图不猜。
|
|
20
|
-
- **待确认** —— 用在「操作」表里:静态能查的要求全部齐备,但还有要求只能在活宿主上判定。
|
|
21
|
-
这不是「不确定能不能用」,是「静态视图只能确认到这里」。
|
|
22
|
-
|
|
23
|
-
标了「可选」的能力缺失是**预期状态**:宿主的官方 API 本来就没有这个入口,插件会走适配器路径,
|
|
24
|
-
功能不受影响。所以「宿主」表的**缺失**列把可选项也数了进去(那是事实),而**结论**列只把
|
|
25
|
-
必需项的缺失当成问题。
|
|
26
|
-
|
|
27
|
-
**验证基准那一行可能不在表里**:桌面版把官方包封在 `app.asar` 里,这份静态扫描读不进去,
|
|
28
|
-
而验证正是在那份上做的。表里出现的是能被扫描到的其它安装(本地 / npx / 投影树)——
|
|
29
|
-
它们的结论一律按「相对基准差多少」给,不要因为缺了基准行就以为漏跑。
|
|
30
|
-
|
|
31
|
-
## 宿主
|
|
32
|
-
|
|
33
|
-
| DSH 版本 | 安装形态 | 安装位置 | 在适配范围内 | 静态可查 | 缺失 | 结论 |
|
|
34
|
-
| --- | --- | --- | --- | --- | --- | --- |
|
|
35
|
-
| `0.2.2-rc.2`(基准) | 本地安装 | `C:\Users\ouli\AppData\Roaming\npm\node_modules\@deepseek-ai` | 是 | 26/28 | 2 | 与本插件适配基准一致(另 2 项可选原生入口不存在,走适配器) |
|
|
36
|
-
| `0.2.1-rc.3` | npx 缓存 | `D:\Cache\npm\_npx\a3a60f53b42a237b\node_modules\@deepseek-ai` | **否** | 25/28 | 3 | **超出适配范围**(本插件只适配 `0.2.2-rc.2`) |
|
|
37
|
-
| `0.2.1-rc.2` | npx 缓存 | `D:\Cache\npm\_npx\50d2c97abf8f4186\node_modules\@deepseek-ai` | **否** | 25/28 | 3 | **超出适配范围**(本插件只适配 `0.2.2-rc.2`) |
|
|
38
|
-
| `0.2.0-rc.2` | npx 缓存 | `D:\Cache\npm\_npx\1e7f6d9597241db0\node_modules\@deepseek-ai` | **否** | 25/28 | 3 | **超出适配范围**(本插件只适配 `0.2.2-rc.2`) |
|
|
39
|
-
|
|
40
|
-
## 能力
|
|
41
|
-
|
|
42
|
-
| 能力 | 类型 | 可选 | `0.2.2-rc.2` | `0.2.1-rc.3` | `0.2.1-rc.2` | `0.2.0-rc.2` |
|
|
43
|
-
| --- | --- | --- | --- | --- | --- | --- |
|
|
44
|
-
| `workspace.read-state` | read | | 已验证 | 未适配 | 未适配 | 未适配 |
|
|
45
|
-
| `workspace.read-table` | read | | 已验证 | 未适配 | 未适配 | 未适配 |
|
|
46
|
-
| `workspace.index-shape` | read | | — | — | — | — |
|
|
47
|
-
| `workspace.read-header` | read | | 已验证 | 未适配 | 未适配 | 未适配 |
|
|
48
|
-
| `workspace.enqueue` | write | | 已验证 | 未适配 | 未适配 | 未适配 |
|
|
49
|
-
| `workspace.set-state` | write | | 已验证 | 未适配 | 未适配 | 未适配 |
|
|
50
|
-
| `workspace.index-header` | write | | 已验证 | 未适配 | 未适配 | 未适配 |
|
|
51
|
-
| `workspace.archive-native` | write | 可选 | 已验证 | 未适配 | 未适配 | 未适配 |
|
|
52
|
-
| `workspace.unarchive-native` | write | 可选 | 已验证 | 未适配 | 未适配 | 未适配 |
|
|
53
|
-
| `workspace.batch-native` | write | 可选 | 不可用 | 不可用 | 不可用 | 不可用 |
|
|
54
|
-
| `workspace.delete-native` | delete | 可选 | 不可用 | 不可用 | 不可用 | 不可用 |
|
|
55
|
-
| `sessions.detach-live` | delete | | 已验证 | 未适配 | 未适配 | 未适配 |
|
|
56
|
-
| `sessions.cold-announce` | delete | | 已验证 | 未适配 | 未适配 | 未适配 |
|
|
57
|
-
| `sessions.live-access` | read | | 已验证 | 未适配 | 未适配 | 未适配 |
|
|
58
|
-
| `persistence.list` | read | | — | — | — | — |
|
|
59
|
-
| `persistence.transcript-locate` | delete | | — | — | — | — |
|
|
60
|
-
| `persistence.transcript-read` | read | 可选 | — | — | — | — |
|
|
61
|
-
| `projection.write` | write | | 已验证 | 未适配 | 未适配 | 未适配 |
|
|
62
|
-
| `projection.table-delete` | delete | | — | — | — | — |
|
|
63
|
-
| `projection.cached-title` | read | | 已验证 | 未适配 | 未适配 | 未适配 |
|
|
64
|
-
| `projection.delete-native` | delete | 可选 | — | — | — | — |
|
|
65
|
-
| `settings.document-path` | read | | 已验证 | 未适配 | 未适配 | 未适配 |
|
|
66
|
-
| `fs.patch-io` | write | | — | — | — | — |
|
|
67
|
-
| `preset.roster-surface` | read | | — | — | — | — |
|
|
68
|
-
| `agentPreset.register` | write | | 已验证 | 未适配 | 未适配 | 未适配 |
|
|
69
|
-
| `tools.restrict-method` | write | | 已验证 | 未适配 | 未适配 | 未适配 |
|
|
70
|
-
| `agent.created-event` | read | | — | — | — | — |
|
|
71
|
-
| `connection.admit` | read | | 已验证 | 未适配 | 未适配 | 未适配 |
|
|
72
|
-
| `subagents.runtime` | write | | — | — | — | — |
|
|
73
|
-
| `llm.model-catalog` | read | | — | — | — | — |
|
|
74
|
-
| `llm.prepare-call` | read | | — | — | — | — |
|
|
75
|
-
| `approval.effective-policy` | read | | — | — | — | — |
|
|
76
|
-
| `tools.schema-list` | read | | 已验证 | 未适配 | 未适配 | 未适配 |
|
|
77
|
-
| `skills.register-provider` | write | | 已验证 | 未适配 | 未适配 | 未适配 |
|
|
78
|
-
| `agents.list` | read | | 已验证 | 未适配 | 未适配 | 未适配 |
|
|
79
|
-
| `pluginInventory.list` | read | | 已验证 | 未适配 | 未适配 | 未适配 |
|
|
80
|
-
| `webServer.register` | write | | 已验证 | 未适配 | 未适配 | 未适配 |
|
|
81
|
-
| `sandboxPolicy.resolve` | read | | 已验证 | 未适配 | 未适配 | 未适配 |
|
|
82
|
-
| `tools.get-method` | read | | 已验证 | 未适配 | 未适配 | 未适配 |
|
|
83
|
-
| `tools.guard-dispatch` | write | | 已验证 | 不可用 | 不可用 | 不可用 |
|
|
84
|
-
| `tools.mcp-resource-args` | read | | — | — | — | — |
|
|
85
|
-
| `systemPrompt.mcp-section` | read | | 已验证 | 未适配 | 未适配 | 未适配 |
|
|
86
|
-
|
|
87
|
-
## 操作
|
|
88
|
-
|
|
89
|
-
一项操作可用,意味着它需要的**每一项**能力都齐备 —— 插件不会从「部分可用」悄悄滑进另一条路由。
|
|
90
|
-
「原生」是宿主自己的入口;「适配器」是插件在宿主公开成员上拼出来的等价路径。
|
|
91
|
-
|
|
92
|
-
| 操作 | `0.2.2-rc.2` | `0.2.1-rc.3` | `0.2.1-rc.2` | `0.2.0-rc.2` |
|
|
93
|
-
| --- | --- | --- | --- | --- |
|
|
94
|
-
| archive | 可用(原生) | 可用(原生) | 可用(原生) | 可用(原生) |
|
|
95
|
-
| unarchive | 可用(原生) | 可用(原生) | 可用(原生) | 可用(原生) |
|
|
96
|
-
| batch | 可用(适配器) | 可用(适配器) | 可用(适配器) | 可用(适配器) |
|
|
97
|
-
| delete | 待确认 | 待确认 | 待确认 | 待确认 |
|
|
98
|
-
| list | 待确认 | 待确认 | 待确认 | 待确认 |
|
|
99
|
-
|
|
100
|
-
「待确认」的来由:delete 卡在 `persistence.list`、`persistence.transcript-locate`、`projection.table-delete`;list 卡在 `workspace.index-shape`、`persistence.list`。这几项读的是活实例上的字段与行为,静态视图看不到。
|
|
101
|
-
|
|
102
|
-
## 复现
|
|
103
|
-
|
|
104
|
-
```bash
|
|
105
|
-
node scripts/compat-matrix.mjs # 重新生成本文件
|
|
106
|
-
node scripts/compat-matrix.mjs --dry-run # 只打印到终端,不写文件
|
|
107
|
-
node scripts/doctor.mjs # 只看当前这台机器的宿主(含活宿主探测)
|
|
108
|
-
```
|
|
109
|
-
|
|
110
|
-
本脚本在 `mkdtemp` 出来的临时 `DSH_HOME` 下运行,每个宿主单独一个子进程,
|
|
111
|
-
只读宿主安装目录,**不读写真实的 `~/.dsh`**。找不到任何宿主时它会原样保留本文件并退出 1 ——
|
|
112
|
-
一份过期的表比没有表更糟。
|
|
1
|
+
# 兼容矩阵
|
|
2
|
+
|
|
3
|
+
> 本文件由 `node scripts/compat-matrix.mjs` 生成,请勿手工编辑。
|
|
4
|
+
>
|
|
5
|
+
> 插件 0.22.7 · 生成于 2026-11-12 · 验证基准 DSH `0.2.2-rc.2` · 安装期适配范围 `>=0.2.2-rc.2 <0.2.3`
|
|
6
|
+
|
|
7
|
+
这张表回答一个问题:**同一个插件,装在不同版本的 DSH 宿主上,哪些能力还在、哪些已经对不上。**
|
|
8
|
+
它只做静态判定(读宿主安装里的官方包,看原型上的成员在不在),不启动宿主、不碰会话数据。
|
|
9
|
+
|
|
10
|
+
## 怎么读
|
|
11
|
+
|
|
12
|
+
- **已验证** —— 该宿主版本正是本插件适配器最后验证的那一版,且这项能力在它的官方实现里存在。
|
|
13
|
+
- **未实测** —— 这项能力在这个宿主上存在,这个宿主也在适配范围内,但它不是验证基准。
|
|
14
|
+
存在不等于行为一致:差一个 rc 也可能改了语义。以插件「兼容」页对**活宿主**的探测为准。
|
|
15
|
+
- **未适配** —— 这项能力在这个宿主上存在,但这个宿主版本**不在**本插件的适配范围内。
|
|
16
|
+
插件不声明支持它;装也装不上(peer 校验会拦)。要跑这一代宿主,请装对应版本的插件。
|
|
17
|
+
- **不可用** —— 该宿主的官方实现里没有这项成员。依赖它的功能会被拒绝(写入类)或降级(读取类),
|
|
18
|
+
而不是带着未知实现去改数据。
|
|
19
|
+
- **—** —— 这项能力只能在**活的宿主**上判定(实例字段的形状、行为试跑),静态视图不猜。
|
|
20
|
+
- **待确认** —— 用在「操作」表里:静态能查的要求全部齐备,但还有要求只能在活宿主上判定。
|
|
21
|
+
这不是「不确定能不能用」,是「静态视图只能确认到这里」。
|
|
22
|
+
|
|
23
|
+
标了「可选」的能力缺失是**预期状态**:宿主的官方 API 本来就没有这个入口,插件会走适配器路径,
|
|
24
|
+
功能不受影响。所以「宿主」表的**缺失**列把可选项也数了进去(那是事实),而**结论**列只把
|
|
25
|
+
必需项的缺失当成问题。
|
|
26
|
+
|
|
27
|
+
**验证基准那一行可能不在表里**:桌面版把官方包封在 `app.asar` 里,这份静态扫描读不进去,
|
|
28
|
+
而验证正是在那份上做的。表里出现的是能被扫描到的其它安装(本地 / npx / 投影树)——
|
|
29
|
+
它们的结论一律按「相对基准差多少」给,不要因为缺了基准行就以为漏跑。
|
|
30
|
+
|
|
31
|
+
## 宿主
|
|
32
|
+
|
|
33
|
+
| DSH 版本 | 安装形态 | 安装位置 | 在适配范围内 | 静态可查 | 缺失 | 结论 |
|
|
34
|
+
| --- | --- | --- | --- | --- | --- | --- |
|
|
35
|
+
| `0.2.2-rc.2`(基准) | 本地安装 | `C:\Users\ouli\AppData\Roaming\npm\node_modules\@deepseek-ai` | 是 | 26/28 | 2 | 与本插件适配基准一致(另 2 项可选原生入口不存在,走适配器) |
|
|
36
|
+
| `0.2.1-rc.3` | npx 缓存 | `D:\Cache\npm\_npx\a3a60f53b42a237b\node_modules\@deepseek-ai` | **否** | 25/28 | 3 | **超出适配范围**(本插件只适配 `0.2.2-rc.2`) |
|
|
37
|
+
| `0.2.1-rc.2` | npx 缓存 | `D:\Cache\npm\_npx\50d2c97abf8f4186\node_modules\@deepseek-ai` | **否** | 25/28 | 3 | **超出适配范围**(本插件只适配 `0.2.2-rc.2`) |
|
|
38
|
+
| `0.2.0-rc.2` | npx 缓存 | `D:\Cache\npm\_npx\1e7f6d9597241db0\node_modules\@deepseek-ai` | **否** | 25/28 | 3 | **超出适配范围**(本插件只适配 `0.2.2-rc.2`) |
|
|
39
|
+
|
|
40
|
+
## 能力
|
|
41
|
+
|
|
42
|
+
| 能力 | 类型 | 可选 | `0.2.2-rc.2` | `0.2.1-rc.3` | `0.2.1-rc.2` | `0.2.0-rc.2` |
|
|
43
|
+
| --- | --- | --- | --- | --- | --- | --- |
|
|
44
|
+
| `workspace.read-state` | read | | 已验证 | 未适配 | 未适配 | 未适配 |
|
|
45
|
+
| `workspace.read-table` | read | | 已验证 | 未适配 | 未适配 | 未适配 |
|
|
46
|
+
| `workspace.index-shape` | read | | — | — | — | — |
|
|
47
|
+
| `workspace.read-header` | read | | 已验证 | 未适配 | 未适配 | 未适配 |
|
|
48
|
+
| `workspace.enqueue` | write | | 已验证 | 未适配 | 未适配 | 未适配 |
|
|
49
|
+
| `workspace.set-state` | write | | 已验证 | 未适配 | 未适配 | 未适配 |
|
|
50
|
+
| `workspace.index-header` | write | | 已验证 | 未适配 | 未适配 | 未适配 |
|
|
51
|
+
| `workspace.archive-native` | write | 可选 | 已验证 | 未适配 | 未适配 | 未适配 |
|
|
52
|
+
| `workspace.unarchive-native` | write | 可选 | 已验证 | 未适配 | 未适配 | 未适配 |
|
|
53
|
+
| `workspace.batch-native` | write | 可选 | 不可用 | 不可用 | 不可用 | 不可用 |
|
|
54
|
+
| `workspace.delete-native` | delete | 可选 | 不可用 | 不可用 | 不可用 | 不可用 |
|
|
55
|
+
| `sessions.detach-live` | delete | | 已验证 | 未适配 | 未适配 | 未适配 |
|
|
56
|
+
| `sessions.cold-announce` | delete | | 已验证 | 未适配 | 未适配 | 未适配 |
|
|
57
|
+
| `sessions.live-access` | read | | 已验证 | 未适配 | 未适配 | 未适配 |
|
|
58
|
+
| `persistence.list` | read | | — | — | — | — |
|
|
59
|
+
| `persistence.transcript-locate` | delete | | — | — | — | — |
|
|
60
|
+
| `persistence.transcript-read` | read | 可选 | — | — | — | — |
|
|
61
|
+
| `projection.write` | write | | 已验证 | 未适配 | 未适配 | 未适配 |
|
|
62
|
+
| `projection.table-delete` | delete | | — | — | — | — |
|
|
63
|
+
| `projection.cached-title` | read | | 已验证 | 未适配 | 未适配 | 未适配 |
|
|
64
|
+
| `projection.delete-native` | delete | 可选 | — | — | — | — |
|
|
65
|
+
| `settings.document-path` | read | | 已验证 | 未适配 | 未适配 | 未适配 |
|
|
66
|
+
| `fs.patch-io` | write | | — | — | — | — |
|
|
67
|
+
| `preset.roster-surface` | read | | — | — | — | — |
|
|
68
|
+
| `agentPreset.register` | write | | 已验证 | 未适配 | 未适配 | 未适配 |
|
|
69
|
+
| `tools.restrict-method` | write | | 已验证 | 未适配 | 未适配 | 未适配 |
|
|
70
|
+
| `agent.created-event` | read | | — | — | — | — |
|
|
71
|
+
| `connection.admit` | read | | 已验证 | 未适配 | 未适配 | 未适配 |
|
|
72
|
+
| `subagents.runtime` | write | | — | — | — | — |
|
|
73
|
+
| `llm.model-catalog` | read | | — | — | — | — |
|
|
74
|
+
| `llm.prepare-call` | read | | — | — | — | — |
|
|
75
|
+
| `approval.effective-policy` | read | | — | — | — | — |
|
|
76
|
+
| `tools.schema-list` | read | | 已验证 | 未适配 | 未适配 | 未适配 |
|
|
77
|
+
| `skills.register-provider` | write | | 已验证 | 未适配 | 未适配 | 未适配 |
|
|
78
|
+
| `agents.list` | read | | 已验证 | 未适配 | 未适配 | 未适配 |
|
|
79
|
+
| `pluginInventory.list` | read | | 已验证 | 未适配 | 未适配 | 未适配 |
|
|
80
|
+
| `webServer.register` | write | | 已验证 | 未适配 | 未适配 | 未适配 |
|
|
81
|
+
| `sandboxPolicy.resolve` | read | | 已验证 | 未适配 | 未适配 | 未适配 |
|
|
82
|
+
| `tools.get-method` | read | | 已验证 | 未适配 | 未适配 | 未适配 |
|
|
83
|
+
| `tools.guard-dispatch` | write | | 已验证 | 不可用 | 不可用 | 不可用 |
|
|
84
|
+
| `tools.mcp-resource-args` | read | | — | — | — | — |
|
|
85
|
+
| `systemPrompt.mcp-section` | read | | 已验证 | 未适配 | 未适配 | 未适配 |
|
|
86
|
+
|
|
87
|
+
## 操作
|
|
88
|
+
|
|
89
|
+
一项操作可用,意味着它需要的**每一项**能力都齐备 —— 插件不会从「部分可用」悄悄滑进另一条路由。
|
|
90
|
+
「原生」是宿主自己的入口;「适配器」是插件在宿主公开成员上拼出来的等价路径。
|
|
91
|
+
|
|
92
|
+
| 操作 | `0.2.2-rc.2` | `0.2.1-rc.3` | `0.2.1-rc.2` | `0.2.0-rc.2` |
|
|
93
|
+
| --- | --- | --- | --- | --- |
|
|
94
|
+
| archive | 可用(原生) | 可用(原生) | 可用(原生) | 可用(原生) |
|
|
95
|
+
| unarchive | 可用(原生) | 可用(原生) | 可用(原生) | 可用(原生) |
|
|
96
|
+
| batch | 可用(适配器) | 可用(适配器) | 可用(适配器) | 可用(适配器) |
|
|
97
|
+
| delete | 待确认 | 待确认 | 待确认 | 待确认 |
|
|
98
|
+
| list | 待确认 | 待确认 | 待确认 | 待确认 |
|
|
99
|
+
|
|
100
|
+
「待确认」的来由:delete 卡在 `persistence.list`、`persistence.transcript-locate`、`projection.table-delete`;list 卡在 `workspace.index-shape`、`persistence.list`。这几项读的是活实例上的字段与行为,静态视图看不到。
|
|
101
|
+
|
|
102
|
+
## 复现
|
|
103
|
+
|
|
104
|
+
```bash
|
|
105
|
+
node scripts/compat-matrix.mjs # 重新生成本文件
|
|
106
|
+
node scripts/compat-matrix.mjs --dry-run # 只打印到终端,不写文件
|
|
107
|
+
node scripts/doctor.mjs # 只看当前这台机器的宿主(含活宿主探测)
|
|
108
|
+
```
|
|
109
|
+
|
|
110
|
+
本脚本在 `mkdtemp` 出来的临时 `DSH_HOME` 下运行,每个宿主单独一个子进程,
|
|
111
|
+
只读宿主安装目录,**不读写真实的 `~/.dsh`**。找不到任何宿主时它会原样保留本文件并退出 1 ——
|
|
112
|
+
一份过期的表比没有表更糟。
|
package/docs/TROUBLESHOOTING.md
CHANGED
|
@@ -131,12 +131,12 @@ dsh plugin --profile web add dsh-plugin-tool-management@latest
|
|
|
131
131
|
**为什么。** 本插件**只适配一代宿主**。当前版本按 DSH **0.2.2** 这一代的契约写(子智能体启动请求、身份比对、`connection.admit` 这几处都动过会静默改行为的语义),所以声明的范围只有这一代:
|
|
132
132
|
|
|
133
133
|
```
|
|
134
|
-
>=0.2.2-rc.
|
|
134
|
+
>=0.2.2-rc.2 <0.2.3
|
|
135
135
|
```
|
|
136
136
|
|
|
137
|
-
|
|
137
|
+
上界是**故意**的:官方全程走 `x.y.z-rc.N` 预发布渠道,而 semver 有一条硬规则 —— **带预发布标签的版本,只有在比较器也带预发布标签、且 `[major,minor,patch]` 元组相同的时候才能匹配**。所以 `>=0.2.2-rc.2` 匹配不了 `0.2.3-rc.1`,范围只能逐段写;而写成多代并集(`0.1.7 || 0.2.0 || 0.2.1`)等于声明「这一版支持 0.1.7 起的每一代」,那是假的。
|
|
138
138
|
|
|
139
|
-
|
|
139
|
+
下界抬到 `0.2.2-rc.2` 不是 semver 的要求 —— 同一代里追加 rc 本来不必动范围(rc.2 之后的 rc 都落在里面)。抬下界是**适配声明**:本插件只实现 rc.2 的子代理激活请求形状,装在 `0.2.2-rc.1` 上会在派子智能体时失败,所以干脆在安装期就拒掉。`0.2.2-rc.1` 用户请装 **0.22.5**(声明旧范围、实现旧请求形状的那一版)。
|
|
140
140
|
|
|
141
141
|
新 minor 已经动过若干会静默改行为的契约,旧适配继续跑在新宿主上,失败会以「功能莫名不工作」的形式出现,那时你无法判断是插件问题还是版本问题。**装上被拒 + 一版新适配,优于装上然后部分功能悄悄失效。**
|
|
142
142
|
|
|
@@ -153,7 +153,7 @@ dsh plugin --profile web add dsh-plugin-tool-management@latest
|
|
|
153
153
|
**怎么修。**
|
|
154
154
|
|
|
155
155
|
- 宿主比 `0.2.3` 新:等一版适配新宿主的插件。跨 minor 的契约变化正是这个范围要挡的东西。
|
|
156
|
-
- 宿主是 `0.2.2` 或更早:装**对应版本的插件**(旧插件带着旧范围 —— `0.21.x`
|
|
156
|
+
- 宿主是 `0.2.2` 或更早:装**对应版本的插件**(旧插件带着旧范围 —— `0.21.x` 适配 `0.2.1-rc.5`;`0.22.5` 及更早的 `0.22.x` 适配含 `0.2.2-rc.1` 的旧范围;`0.22.7` 起只适配 `0.2.2-rc.2` 及之后)。升级宿主之后再升插件。
|
|
157
157
|
- **逃生门**:宿主装插件走 pnpm,没有 npm 的 `--legacy-peer-deps`(pnpm 会报 `Unknown option: 'legacy-peer-deps'`)。要强行装,用 pnpm 的等价开关 `strict-peer-dependencies=false`;但它只跳过 peer 冲突检查,**不让代码在宿主上变得兼容** —— 装完请务必看兼容页的降级项。
|
|
158
158
|
|
|
159
159
|
---
|