dsh-submodel 0.4.1 → 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 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.1` requires DSH `>=0.2.2-rc.5` with no upper bound, so later DSH releases install and run by default.
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
 
@@ -258,7 +258,7 @@ Current verification counts (CI runs the same commands on every push / PR, see `
258
258
 
259
259
  | Check | Result |
260
260
  |---|---|
261
- | fixture | **141** assertions, `failed: 0` |
261
+ | fixture | **144** assertions, `failed: 0` |
262
262
  | Python driver | **7** test cases, `OK` |
263
263
  | Public-profile smoke | **8** assertions, `failed: 0` |
264
264
 
package/README.md CHANGED
@@ -17,7 +17,7 @@
17
17
 
18
18
  **中文** | [English](README.en.md)
19
19
 
20
- 在 **插件 → 派活模型设置** 中给性价比模型和专家模型分别排序,也可以给每个模型写一句用途备注。主模型可以按任务选择起点;启用自动换模型后,符合条件的失败会从所选位置往下尝试。DSH 管理模型渠道、凭据和子代理选模权限。`0.4.1` 要求 DSH `>=0.2.2-rc.5`(不设上限:之后发布的 DSH 新版本默认可装、可用)。
20
+ 在 **插件 → 派活模型设置** 中给性价比模型和专家模型分别排序,也可以给每个模型写一句用途备注;列表会标出每个模型所属渠道。主模型可以按任务选择起点;启用自动换模型后,符合条件的失败会从所选位置往下尝试。DSH 管理模型渠道、凭据和子代理选模权限。`0.4.2` 要求 DSH `>=0.2.2-rc.5`(不设上限:之后发布的 DSH 新版本默认可装、可用)。
21
21
 
22
22
  ## 安装
23
23
 
@@ -243,7 +243,7 @@ node tests/unit/public-profile-smoke.mjs # 干净用户配置的确定性
243
243
 
244
244
  | 检查 | 结果 |
245
245
  |---|---|
246
- | fixture | **141** 条断言,`failed: 0` |
246
+ | fixture | **144** 条断言,`failed: 0` |
247
247
  | Python 驱动 | **7** 个用例 `OK` |
248
248
  | 公共 profile 冒烟 | **8** 条断言,`failed: 0` |
249
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
- const counts = new Map();
141
- for (const model of models) counts.set(model.name, (counts.get(model.name) ?? 0) + 1);
142
- return unique(models).map(model => ({ ...model, label: counts.get(model.name) > 1
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 }) {
@@ -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.1",
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",