dsh-model-switch 0.4.58 → 0.4.60
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 +17 -0
- package/README.md +1 -1
- package/README.zh.md +1 -1
- package/cordis.patch.yml +2 -6
- package/lib/auto-review-C5cwVyMD.js +1079 -0
- package/lib/auto-review.js +1 -1
- package/lib/automode-compat.js +1 -1
- package/lib/client.js +82 -4
- package/lib/index.js +3 -3
- package/lib/review-timeout-BU0BFHoJ.js +334 -0
- package/lib/review-timeout.js +1 -1
- package/lib/tool-allowlist-DJTeApr-.js +410 -0
- package/lib/types/automode-compat.d.ts +4 -0
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,3 +1,20 @@
|
|
|
1
|
+
## v0.4.60
|
|
2
|
+
|
|
3
|
+
纯读免审查默认名单扩展到 **84 条**(2026-11-01,按桌面端实际安装的插件重新校准)。
|
|
4
|
+
|
|
5
|
+
- **新装插件的纯读工具纳入默认名单**:`dsh-browser-cdp` 的 `bcdp_captcha`/`bcdp_page_info`/`bcdp_read_element`/`bcdp_screenshot`;`dsh-prime-memory` 的 11 个读工具(`memory_search`、`memory_search_graph`、`memory_expand_graph_node`、`memory_read_scene`、`memory_skill_list`、`memory_skill_read`、`memory_slot_list`、`memory_receipts`、`memory_conflicts`、`memory_conflicts_rejected`、`memory_ruminate_status`);`dsh-ops` 的 `ops_glob`/`ops_grep`/`ops_inspect_local_file`/`ops_read_docx`/`ops_diff`/`ops_result`;`dsh-embedded-browser` 的 `browser_embedded_status`/`snapshot`/`screenshot`/`ask_human`;DSH 核心的 `conversation_search`。
|
|
6
|
+
- **来源归属修正**:`memory_` 不再作为前缀整体归到 `dsh-auto-memory`(0.26 版 prime-memory 的 26 个工具在设置卡片上一直显示错来源);改为按名字表区分两个记忆插件,并新增 `dsh-prime-memory`、`dsh-embedded-browser` 两个来源条目。
|
|
7
|
+
- **仍然审查**:所有写/执行/混合动作工具都不在名单里(`ops_bash`/`ops_edit_file`/`ops_batch`、`bcdp_click`/`js`/`tab`/`space`/`wait`、`memory_add`/`update`/`import`/`ruminate`/`room_*`、`browser_embedded_click`/`type`/`navigate`、`working_directory` 等)。名单只决定"要不要送审",不扩大任何权限。
|
|
8
|
+
- 验证:`tests/tool-allowlist.spec.ts` 覆盖 84 条长度与去重、来源映射(含两个记忆插件的拆分)、以及"写类工具不得被默认名单放行";桌面 profile 的允许表同步扩到 84 条(配置层,不属于本包)。
|
|
9
|
+
|
|
10
|
+
## v0.4.59
|
|
11
|
+
|
|
12
|
+
冻结自动模式支持(按用户 2026-10-31 要求)。
|
|
13
|
+
|
|
14
|
+
- **不再支持 `@log.li/dsh-automode`**。`cordis.patch.yml` 里 `model-switch-automode-compat` 的 insert 行已删除,运行时不再挂载;`src/automode-compat.ts` 标注 `@deprecated`,源码保留一个版本用于回退,下个大版本删除。该第三方插件被禁用/卸载均属预期,本插件不再为其注入审查路由与纯读名单。
|
|
15
|
+
- **背景**:该适配会改写第三方行的内存配置,但 profile 补丁若整键重写 `permission.presets`,bundle 提供的 `auto-mode` 预设会被盖掉而插件仍工作——这类跨插件耦合已判定不再维护。
|
|
16
|
+
- 现有 `auto` 档位不受影响(由 `@deepseek-ai/dsh-experimental-auto-review` 注册,与本插件无关)。
|
|
17
|
+
|
|
1
18
|
## v0.4.58
|
|
2
19
|
|
|
3
20
|
修复两处配置层问题:已删除供应商的配置组现在可以选中并删除;Auto mode 预设缺失时可以在状态和日志里直接看到。
|
package/README.md
CHANGED
|
@@ -193,7 +193,7 @@ Verified releases: `0.1.7-alpha.2`, `0.1.7-rc.1`, `0.1.7-rc.2`, `0.2.0-rc.2`. Th
|
|
|
193
193
|
|
|
194
194
|
DSH compatibility is declared as an open-ended floor (`dsh.compatibility.dshRuntime: ">=0.2.0-rc.2"`): every runtime at or above it mounts without an unverified warning, a `blocklist` still wins, and loading stays fail-open. The releases in `package.json#dsh.compatibility.dshReleases` are evidence, not an allowlist. Review public API changes and test new Host releases before adding a verification claim.
|
|
195
195
|
|
|
196
|
-
**Third-party auto modes
|
|
196
|
+
**Third-party auto modes (dropped in 0.4.59).** This plugin used to inject its Auto-review route and pure-read list into the in-memory config of [`@log.li/dsh-automode`](https://github.com/log-li/dsh-automode). That adapter is frozen and removed from `cordis.patch.yml`; the source is marked `@deprecated` and will be deleted next major. Disabling or uninstalling that plugin is expected, and no `auto-mode` preset should be written in the profile. The `auto` preset comes from `@deepseek-ai/dsh-experimental-auto-review`, not from this plugin.
|
|
197
197
|
|
|
198
198
|
## Development
|
|
199
199
|
|
package/README.zh.md
CHANGED
|
@@ -191,7 +191,7 @@ DSH Host peer 和开发依赖接受 `>=0.1.7-alpha.2`,包括 rc.1 和后续版
|
|
|
191
191
|
|
|
192
192
|
DSH 兼容按「下界 + 区间」声明(`dsh.compatibility.dshRuntime: ">=0.2.0-rc.2"`):≥ 该下界一律挂载且不再告警,`blocklist` 仍最优先,加载保持 fail-open。`package.json#dsh.compatibility.dshReleases` 里的逐版本记录是证据,不是允许列表。新增验证声明前要审查公开 API 变化并测试新 Host 版本。
|
|
193
193
|
|
|
194
|
-
|
|
194
|
+
**第三方自动模式(0.4.59 起不再支持)。** 本插件曾把自动审查路由与纯读名单注入 [`@log.li/dsh-automode`](https://github.com/log-li/dsh-automode) 的内存配置;该适配已冻结并从 `cordis.patch.yml` 移除,源码标注 `@deprecated`,下个大版本删除。该插件被禁用或卸载均属预期,profile 里也不应再出现 `auto-mode` 预设;`auto` 档位由 `@deepseek-ai/dsh-experimental-auto-review` 提供,与本插件无关。
|
|
195
195
|
|
|
196
196
|
## 开发
|
|
197
197
|
|
package/cordis.patch.yml
CHANGED
|
@@ -74,12 +74,8 @@
|
|
|
74
74
|
- id: model-switch-session-title
|
|
75
75
|
name: 'dsh-model-switch/session-title'
|
|
76
76
|
|
|
77
|
-
#
|
|
78
|
-
#
|
|
79
|
-
# no-op when that plugin is not installed). Kept as its own row so it can be
|
|
80
|
-
# disabled without touching the reviewer gate.
|
|
81
|
-
- id: model-switch-automode-compat
|
|
82
|
-
name: 'dsh-model-switch/automode-compat'
|
|
77
|
+
# 2026-10-31 冻结:automode 适配行已移除,本插件不再支持 @log.li/dsh-automode。
|
|
78
|
+
# 源码保留一个版本(src/automode-compat.ts 标注 deprecated),下个大版本删除。
|
|
83
79
|
|
|
84
80
|
# Fill the third-party dsh-prime-memory row's distillation route from this
|
|
85
81
|
# plugin's provider-group route, in memory only (no profile write, no-op when
|