D
dsh-settings-nav-fold
v1.0.1 · 2 天前发布
Fold plugin/extension settings entries in the DSH settings panel into one collapsible "Plugin entries" group row — one click to expand or collapse, auto-updating as plugins come and go.
README
dsh-settings-nav-fold
English | 中文
给 DeepSeek Harness 设置面板「减负」:插件装得越多,设置页侧边栏的入口就越乱。本插件把所有插件/扩展的设置入口折叠成一个可展开的 插件入口 分组行,就放在系统配置下方,带下拉箭头,点击即展开/收起。
功能
settings.section 台账重算,插件注册/卸载设置页时自动增减,无需任何配置。安装
sh
dsh plugin --profile web add github:zhengjy01/dsh-settings-nav-fold
重启 dsh 后打开设置面板(侧边栏底部齿轮),导航即变为「系统配置各项 + 插件入口 (N) ▾」分组行。
原理
设置导航列表由面板内部渲染、并非 Slot,因此插件:
1. 读取 settings.section 台账(ctx.slots.entries),按与面板完全一致的排序算法计算行序;
版本兼容矩阵
| 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-settings-nav-fold
- Repo
- git+https://github.com/zhengjy01/dsh-settings-nav-fold.git
- Engines
{}- Weekly DL
- 0
- Monthly DL
- 0
- dsh.bundle
{"bundle":{"patch":"./cordis.patch.yml"},"client":{"platform":"web","inject":[]}}