dsh-bundle-dedup-guard
v0.1.0 · 0 天前发布
DSH plugin guard: checks profile bundle lists for duplicate loader entries on every plugin load, preventing the 'duplicate loader entry id' boot crash caused by listing an aggregate bundle and its sub-plugins together — and the `dsh plugin` reconcile recu
README
dsh-bundle-dedup-guard


![node]()

DeepSeek Harness 插件守卫:每次装载插件时检查 profile 的 bundles 列表是否存在重复 loader 条目。
当 profile 的 dsh.profile.bundles 同时列出聚合包(其 patch 一次性插入全部子插件条目,
如 @linxin666/dsh-web-ui-all)和它的子插件时,loader 会对同一 loader 条目 id
收到两次 insert。EntryGroup.update 在任何插件条目创建之前就抛duplicate loader entry id: <id>,整个 profile 启动失败。本插件让这类问题不再无声发生。
---
为什么存在
**2026-
版本兼容矩阵
| DSH 版本 | 状态 | 说明 |
|---|---|---|
dsh@0.1.0-rc.6 | ✅ 兼容 | cordis patch ✅ |
dsh@0.1.0 | ✅ 兼容 | 标准 patch ✅ |
dsh@0.2.0 | ⚠️ 待验证 | 待实测(API 可能在变) |
dsh@0.3.0+ | ❓ 未知 | 尚未发布 |
💡 兼容矩阵每周末自动跑实测,欢迎 PR 修正
元数据
- License
- MIT
- npm
- dsh-bundle-dedup-guard
- Repo
- git+https://github.com/Lstalu/dsh-bundle-dedup-guard.git
- Engines
{"node":">=22.13"}- Weekly DL
- 0
- Monthly DL
- 0
- dsh.bundle
{"bundle":{"patch":"./cordis.patch.yml"}}