dsh-subagent-default-model 2.1.14 → 2.1.15
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 +43 -0
- package/docs/DETAIL.md +1 -0
- package/docs/DETAIL.zh.md +1 -0
- package/locale/en.json +7 -0
- package/locale/zh.json +7 -0
- package/package.json +5 -2
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,48 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## 2.1.15 (2026-11-06)
|
|
4
|
+
|
|
5
|
+
### Changed
|
|
6
|
+
|
|
7
|
+
**插件详情页改为一段短简介,不再整篇渲染 README。**
|
|
8
|
+
|
|
9
|
+
DSH 0.2.2 起,插件页在名称、简介、开关下方新增「详细介绍文档」区块。宿主的解析顺序是(`dsh-plugin-detail` 的 `readPackageDocument` / `localeDetail`):
|
|
10
|
+
|
|
11
|
+
1. 按界面语言走语言链(`zh-CN` → `zh` → `en`),依次读 `locale/<language>.json`;
|
|
12
|
+
2. 取**第一个声明了** `meta.detail` 的值(某个 locale 文件存在但没写 `detail` 不算命中,继续往下走);
|
|
13
|
+
3. 渲染该路径指向的 Markdown;
|
|
14
|
+
4. **一个都没找到,就回落到包根目录的 README**。
|
|
15
|
+
|
|
16
|
+
本项目的 README 有数百行,于是整篇被塞进一个 560px 高的滚动框。现在补上三处:
|
|
17
|
+
|
|
18
|
+
- 新增 `docs/DETAIL.zh.md`(82 字符)与 `docs/DETAIL.md`(95 字符);
|
|
19
|
+
- 新增 `locale/zh.json`、`locale/en.json`,`meta` 里各有 `title` / `description` / `detail`;
|
|
20
|
+
- `package.json` 的 `files` 补入 `locale` 与两条 `docs/` 明确路径。
|
|
21
|
+
|
|
22
|
+
**`en.json` 必须写**:它是语言链的最终兜底,只写 `zh.json` 的话英文界面(以及所有未单独提供的语言)照样回落 README 全文。
|
|
23
|
+
|
|
24
|
+
### Tests
|
|
25
|
+
|
|
26
|
+
`178/178`(173 → 178),`skip 0`。新增 5 条守卫(`test/detail-docs.test.mjs`),分别钉住:
|
|
27
|
+
|
|
28
|
+
- 每个 `locale/*.json` 都声明了 `meta.detail`,且 `en.json` 存在;
|
|
29
|
+
- `meta.detail` 指向的文件**真实存在**且非空(指向不存在的文件不会安静回落,而是显示错误信息加「重试」按钮,比长文更糟);
|
|
30
|
+
- 每份文档 ≤ 100 字符(按字符总数,非字数),且不低于 40 字符;
|
|
31
|
+
- 这些文件都在 `package.json#files` 白名单内(漏了只在发布包里缺,恰好是没人跑测试的地方);
|
|
32
|
+
- 路径为包根相对、已规范化、以 `.md` 结尾。
|
|
33
|
+
|
|
34
|
+
变异验证 4/4 命中:删掉 `en.json` 的 `detail`、把 `detail` 指向不存在的文件、把文案改超长、从 `files` 移除 `locale`,各自触发对应用例失败。
|
|
35
|
+
|
|
36
|
+
**用宿主自己的代码验证**:把 asar 里 `dsh-plugin-detail` 的 `document.js` / `files.js` 取出来,直接调用 `localFiles` + `readPackageDocument` + `languageChain` 解析本包:
|
|
37
|
+
|
|
38
|
+
| 界面语言 | 结果 |
|
|
39
|
+
| --- | --- |
|
|
40
|
+
| `zh-CN` / `zh` | `docs/DETAIL.zh.md`,82 字符 |
|
|
41
|
+
| `en-US` | `docs/DETAIL.md`,95 字符 |
|
|
42
|
+
| `ja-JP` | 按语言链回落英文,95 字符 |
|
|
43
|
+
|
|
44
|
+
四种语言都没有 `invalid` 错误。
|
|
45
|
+
|
|
3
46
|
## 2.1.14 (2026-11-05)
|
|
4
47
|
|
|
5
48
|
### Fixed
|
package/docs/DETAIL.md
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
Default models for DSH subagents: pooled ordering, cross-provider failover, live route display.
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
为 DSH 子代理指定默认模型:池内多个模型按顺序或随机分配,连接失败时自动切换到其他供应商的模型,并在轨迹与对话视图显示当前路由,同时把真实路由注入子代理上下文。
|
package/locale/en.json
ADDED
package/locale/zh.json
ADDED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "dsh-subagent-default-model",
|
|
3
|
-
"version": "2.1.
|
|
3
|
+
"version": "2.1.15",
|
|
4
4
|
"description": "为 DeepSeek Harness 子代理配置默认模型:多模型顺序/随机分配、跨供应商连接失败故障转移,并在轨迹/对话视图显示当前供应商与模型,同时以一行真实提示词把当前路由注入子代理上下文。",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"deepseek-harness",
|
|
@@ -41,11 +41,14 @@
|
|
|
41
41
|
"files": [
|
|
42
42
|
"lib",
|
|
43
43
|
"icons",
|
|
44
|
+
"locale",
|
|
44
45
|
"cordis.patch.yml",
|
|
45
46
|
"LICENSE",
|
|
46
47
|
"README.md",
|
|
47
48
|
"README.en.md",
|
|
48
|
-
"CHANGELOG.md"
|
|
49
|
+
"CHANGELOG.md",
|
|
50
|
+
"docs/DETAIL.zh.md",
|
|
51
|
+
"docs/DETAIL.md"
|
|
49
52
|
],
|
|
50
53
|
"scripts": {
|
|
51
54
|
"test": "node --test",
|