dsh-switchman 1.7.0 → 1.7.1
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.md +1 -0
- package/README.zh.md +1 -0
- package/package.json +3 -3
package/README.md
CHANGED
|
@@ -95,6 +95,7 @@ bash <install-dir>/skills/db-query/scripts/setup.sh
|
|
|
95
95
|
- After a DSH upgrade, if the factory preset plugin list changed, re-sync `cordis.patch.yml` from the new `presets/*.patch.yml` (keeping the doctrine suffix), then reinstall.
|
|
96
96
|
- Protocol lines (`[SWITCHMAN:LANG|POOLS|WATERMARK|TEAMS]`) are deliberately English and byte-stable — don't localize them.
|
|
97
97
|
- `npm pack --dry-run` should keep the audited 50-file / ~205 kB shape (`docs/` screenshots stay out of the package).
|
|
98
|
+
- **Zero runtime dependencies — a hard invariant.** Host-plane packages (`@deepseek-ai/schemastery`, cordis, …) are declared as `peerDependencies` only, and the running DSH satisfies them from its own copy. An ordinary `dependencies` entry is physically installed into the profile workspace (`<profile>/node_modules/…`), where it shadows the host's copy for every other profile-resident plugin — this is exactly what crashed the dshmarket plugin market while 1.7.0 carried schemastery as a dependency (two schemastery instances in one process; the market's schemas no longer matched the host's). `scripts/validate.mjs` fails if a `dependencies` entry ever reappears, so installing, updating, or removing dsh-switchman can never touch what dshmarket or any other community bundle resolves at runtime.
|
|
98
99
|
|
|
99
100
|
## License
|
|
100
101
|
|
package/README.zh.md
CHANGED
|
@@ -95,6 +95,7 @@ bash <安装目录>/skills/db-query/scripts/setup.sh
|
|
|
95
95
|
- DSH 升级后若出厂预设插件列表有变,从新的 `presets/*.patch.yml` 重新同步 `cordis.patch.yml`(保留 doctrine suffix),然后重装。
|
|
96
96
|
- 协议行(`[SWITCHMAN:LANG|POOLS|WATERMARK|TEAMS]`)刻意保持英文且字节稳定——不要本地化。
|
|
97
97
|
- `npm pack --dry-run` 应保持审计过的 50 文件 / ~205 kB 形态(`docs/` 截图不进包)。
|
|
98
|
+
- **零运行时依赖——硬性不变量。** 宿主侧包(`@deepseek-ai/schemastery`、cordis 等)只允许声明为 `peerDependencies`,由运行中的 DSH 用它自己的副本满足。普通 `dependencies` 会被物理安装进 profile 工作区(`<profile>/node_modules/…`),从而对同处 profile 的其他插件遮蔽宿主副本——1.7.0 把 schemastery 声明为普通依赖时,正是这个机制让 dshmarket 插件市场崩溃(一个进程里出现两份 schemastery,市场产生的 schema 与宿主不再同类)。`scripts/validate.mjs` 会在 `dependencies` 再次出现时直接失败;因此安装、升级、卸载 dsh-switchman 都不会再影响 dshmarket 或任何其他社区包在运行时解析到的模块。
|
|
98
99
|
|
|
99
100
|
## License
|
|
100
101
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "dsh-switchman",
|
|
3
|
-
"version": "1.7.
|
|
3
|
+
"version": "1.7.1",
|
|
4
4
|
"description": "Autonomous Agent Teams doctrine for the four shipped DeepSeek Harness presets, plus language preferences, dispatch pools with model ranking, and context watermark control.",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"keywords": [
|
|
@@ -49,8 +49,8 @@
|
|
|
49
49
|
"icon.svg",
|
|
50
50
|
"cordis.patch.yml"
|
|
51
51
|
],
|
|
52
|
-
"
|
|
53
|
-
"@deepseek-ai/schemastery": "3.18.
|
|
52
|
+
"peerDependencies": {
|
|
53
|
+
"@deepseek-ai/schemastery": "^3.18.1"
|
|
54
54
|
},
|
|
55
55
|
"dsh": {
|
|
56
56
|
"manifestVersion": 1,
|