@yangdcm/dsh-expert-team 1.3.2 → 1.3.3
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 +11 -0
- package/lib/host-settings.js +11 -1
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -3,6 +3,17 @@
|
|
|
3
3
|
本包遵循[语义化版本](https://semver.org/lang/zh-CN/)。dsh 宿主版本线的对应关系写在
|
|
4
4
|
`package.json` 的 `engines.dsh` 与 `dsh.compatibility` 里,插件市场按它判断"这个插件跟你的宿主兼不兼容"。
|
|
5
5
|
|
|
6
|
+
## 1.3.3
|
|
7
|
+
|
|
8
|
+
**宿主 schema 的枚举成员带上中文描述**(1.3.2 记录为"跳过"的那条,实测后补上)。
|
|
9
|
+
|
|
10
|
+
- 1.3.2 记的是"无法核实 schemastery 的可靠写法 ⇒ 跳过";随后查到其类型定义里
|
|
11
|
+
`description(text)` 的注释就写着 **"for documentation or form UIs"**,且用真 schemastery 实测:
|
|
12
|
+
`z.const('developer').description('技术开发者')` 能把标签写进成员的 `meta.description`,
|
|
13
|
+
schema 照常建成、**值域/类型/默认值完全不变** ⇒ 于是补上(`buildHostSchema` 里按
|
|
14
|
+
"方法确实存在才调用" 的既定纪律挂描述)。
|
|
15
|
+
- 本版**无功能改动之外的任何行为变化**;对设置页无影响(那一侧用 1.3.2 的 `labels`)。
|
|
16
|
+
|
|
6
17
|
## 1.3.2
|
|
7
18
|
|
|
8
19
|
**诚实性收口:把"点了没反应"的设置项要么接线、要么如实标注。**
|
package/lib/host-settings.js
CHANGED
|
@@ -61,7 +61,17 @@ export function buildHostSchema(z) {
|
|
|
61
61
|
field = z.number();
|
|
62
62
|
if (item.min != null && typeof field.min === 'function') field = field.min(item.min);
|
|
63
63
|
if (item.max != null && typeof field.max === 'function') field = field.max(item.max);
|
|
64
|
-
} else
|
|
64
|
+
} else {
|
|
65
|
+
// 枚举:值域仍是 `union([const(v)…])`(**类型/值域不动**);若规格层给了中文标签,
|
|
66
|
+
// 就在成员上挂 `.description(label)`。可行性已实测:真 schemastery 下 schema 照常建成,
|
|
67
|
+
// 标签进了成员的 `meta.description`(该方法的类型注释写明"for documentation or form UIs")。
|
|
68
|
+
// 方法不存在时**跳过**(本模块既定纪律:只有确实存在的方法才调用 —— 这里对应宿主/版本差异)。
|
|
69
|
+
field = z.union(item.values.map((v) => {
|
|
70
|
+
const c = z.const(v);
|
|
71
|
+
const label = item.labels && item.labels[v];
|
|
72
|
+
return label && typeof c.description === 'function' ? c.description(label) : c;
|
|
73
|
+
}));
|
|
74
|
+
}
|
|
65
75
|
if (typeof field.default === 'function') field = field.default(item.default);
|
|
66
76
|
inner[key] = field;
|
|
67
77
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@yangdcm/dsh-expert-team",
|
|
3
|
-
"version": "1.3.
|
|
3
|
+
"version": "1.3.3",
|
|
4
4
|
"description": "dsh「专家团」bundle:一句自然语言自动组建/持久化一支 12 角色多智能体团队,共享工作区协议 + 阶段门控编排 + 结构化交接 + 质量门禁/自动调度,实现者直接改代码并产出持久工件;带 live 团队浮层(质量门禁/覆盖率/工件预览)。 · Role-based multi-agent expert team for DeepSeek Harness: one sentence in, a staged and gated team delivery out.",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"license": "MIT",
|