dsh-submodel 0.4.0 → 0.4.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.en.md +5 -4
- package/README.md +5 -4
- package/client.js +4 -4
- package/docs/plugin-detail.md +2 -2
- package/package.json +2 -2
package/README.en.md
CHANGED
|
@@ -17,7 +17,7 @@
|
|
|
17
17
|
|
|
18
18
|
[中文](README.md) | **English**
|
|
19
19
|
|
|
20
|
-
Open **Plugins → Subagent model settings** to order the cost-effective and expert model groups and add a note about what each model is good for. The main model can choose where to start. With automatic switching enabled, eligible failures move forward from that choice. DSH manages providers, credentials, and model permissions. Version `0.4.
|
|
20
|
+
Open **Plugins → Subagent model settings** to order the cost-effective and expert model groups and add a note about what each model is good for; the list shows each model's channel. The main model can choose where to start. With automatic switching enabled, eligible failures move forward from that choice. DSH manages providers, credentials, and model permissions. Version `0.4.2` requires DSH `>=0.2.2-rc.5` with no upper bound, so later DSH releases install and run by default.
|
|
21
21
|
|
|
22
22
|
## Install
|
|
23
23
|
|
|
@@ -212,8 +212,9 @@ does not affect other prompt sections.
|
|
|
212
212
|
| DSH version | Verification |
|
|
213
213
|
|---|---|
|
|
214
214
|
| `0.2.2-rc.5` | An isolated Web instance started with the installed CLI verified settings, delegation, and control tools. Desktop trial and the npm-distributed CLI remain to be verified |
|
|
215
|
-
| `0.2.
|
|
216
|
-
| Other versions
|
|
215
|
+
| `0.2.3-alpha.2` (latest desktop nightly at the time) | Every host and browser-side interface this package uses was checked against it; the isolated CLI installed the candidate and started the Web surface. The settings page and real delegation have not been exercised in a GUI |
|
|
216
|
+
| Other versions above `0.2.2-rc.5` (including 0.3.x and later) | Declared compatible with **no upper bound**; newer releases are allowed and install by default. Not verified release by release; tighten only if a host interface actually breaks |
|
|
217
|
+
| `0.2.2-rc.1`–`rc.4` | Below the minimum: install `dsh-submodel@0.3.0` for these hosts, or upgrade DSH |
|
|
217
218
|
|
|
218
219
|
## Troubleshooting
|
|
219
220
|
|
|
@@ -257,7 +258,7 @@ Current verification counts (CI runs the same commands on every push / PR, see `
|
|
|
257
258
|
|
|
258
259
|
| Check | Result |
|
|
259
260
|
|---|---|
|
|
260
|
-
| fixture | **
|
|
261
|
+
| fixture | **144** assertions, `failed: 0` |
|
|
261
262
|
| Python driver | **7** test cases, `OK` |
|
|
262
263
|
| Public-profile smoke | **8** assertions, `failed: 0` |
|
|
263
264
|
|
package/README.md
CHANGED
|
@@ -17,7 +17,7 @@
|
|
|
17
17
|
|
|
18
18
|
**中文** | [English](README.en.md)
|
|
19
19
|
|
|
20
|
-
在 **插件 → 派活模型设置**
|
|
20
|
+
在 **插件 → 派活模型设置** 中给性价比模型和专家模型分别排序,也可以给每个模型写一句用途备注;列表会标出每个模型所属渠道。主模型可以按任务选择起点;启用自动换模型后,符合条件的失败会从所选位置往下尝试。DSH 管理模型渠道、凭据和子代理选模权限。`0.4.2` 要求 DSH `>=0.2.2-rc.5`(不设上限:之后发布的 DSH 新版本默认可装、可用)。
|
|
21
21
|
|
|
22
22
|
## 安装
|
|
23
23
|
|
|
@@ -198,8 +198,9 @@ DSH 原生 `subagent` 默认只允许子代理沿用父会话的路由;要让
|
|
|
198
198
|
| DSH 版本 | 验证状态 |
|
|
199
199
|
|---|---|
|
|
200
200
|
| `0.2.2-rc.5` | 安装版命令行开启隔离 Web 已验证设置页、派活和控制工具。桌面试装、npm 下载版命令行待验收 |
|
|
201
|
-
| `0.2.
|
|
202
|
-
|
|
|
201
|
+
| `0.2.3-alpha.2`(桌面 nightly 当时最新) | 已逐项核对本包用到的宿主与浏览器端接口均存在;隔离 CLI 安装并启动 Web 成功。设置页交互与真实派活尚未在 GUI 里实测 |
|
|
202
|
+
| `>0.2.2-rc.5` 的其他版本(含 0.3.x 及以后) | 声明兼容且**不设上限**,新版本默认放行、安装;未逐版验证,若日后宿主接口有破坏性变更再按实测收紧 |
|
|
203
|
+
| `0.2.2-rc.1`–`rc.4` | 低于最低支持版本:可安装 `dsh-submodel@0.3.0`,或升级 DSH |
|
|
203
204
|
|
|
204
205
|
## 故障排查
|
|
205
206
|
|
|
@@ -242,7 +243,7 @@ node tests/unit/public-profile-smoke.mjs # 干净用户配置的确定性
|
|
|
242
243
|
|
|
243
244
|
| 检查 | 结果 |
|
|
244
245
|
|---|---|
|
|
245
|
-
| fixture | **
|
|
246
|
+
| fixture | **144** 条断言,`failed: 0` |
|
|
246
247
|
| Python 驱动 | **7** 个用例 `OK` |
|
|
247
248
|
| 公共 profile 冒烟 | **8** 条断言,`failed: 0` |
|
|
248
249
|
|
package/client.js
CHANGED
|
@@ -137,10 +137,10 @@ window.__ModuleLoader__.load({
|
|
|
137
137
|
// The catalog group carries the provider's display name; fall back to its id.
|
|
138
138
|
channel: typeof group.name === 'string' && group.name.trim() ? group.name.trim() : group.id,
|
|
139
139
|
efforts: model.reasoning?.efforts ?? [] })));
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
return unique(models).map(model => ({ ...model,
|
|
143
|
-
? `${model.name} · ${model.channel}` : model.name }));
|
|
140
|
+
// Always name the owning channel: one model can be served by several routes,
|
|
141
|
+
// and the host's own model lists print the provider beside every model.
|
|
142
|
+
return unique(models).map(model => ({ ...model,
|
|
143
|
+
label: model.channel ? `${model.name} · ${model.channel}` : model.name }));
|
|
144
144
|
}
|
|
145
145
|
|
|
146
146
|
function PickModel({ label, placeholder, rows, onPick }) {
|
package/docs/plugin-detail.md
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
# 派活模型设置 · Subagent model settings
|
|
2
2
|
|
|
3
|
-
|
|
3
|
+
分别给性价比模型和专家模型排序,写下什么任务适合用它。列表会标出每个模型所属渠道,同一个模型来自不同渠道也能分清。主模型可按用途选择起点,自动换模型时只向组内下一位尝试。到「子代理」设置单独授权要用的模型。
|
|
4
4
|
|
|
5
|
-
Order the cost-effective and expert models, and write a short purpose for each. The main model can pick a starting point; automatic switching moves to the next model in that group. Allow the models separately in Subagent settings.
|
|
5
|
+
Order the cost-effective and expert models, and write a short purpose for each. The list shows each model's channel, so the same model served by different channels stays distinct. The main model can pick a starting point; automatic switching moves to the next model in that group. Allow the models separately in Subagent settings.
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "dsh-submodel",
|
|
3
|
-
"version": "0.4.
|
|
3
|
+
"version": "0.4.2",
|
|
4
4
|
"description": "Two-way cross-model delegation for the official DSH subagent: routine execution on a cheap model, hard problems on a strong one. 官方 subagent 的双向跨模型派活策略:常规执行走便宜模型、难题升级强模型,token 花在刀刃上。",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "lib/index.js",
|
|
@@ -32,7 +32,7 @@
|
|
|
32
32
|
}
|
|
33
33
|
},
|
|
34
34
|
"engines": {
|
|
35
|
-
"dsh": ">=0.2.2-rc.5
|
|
35
|
+
"dsh": ">=0.2.2-rc.5"
|
|
36
36
|
},
|
|
37
37
|
"peerDependencies": {
|
|
38
38
|
"@deepseek-ai/schemastery": ">=3.18.4 <4.0.0"
|