READMESource: main@3010a114
dsh-ui-extensions
DeepSeek Harness Web 外壳的界面扩展:把官方侧栏换成图标栏(rail sidebar),并提供入口显隐与外观设置。
UI extensions for the DeepSeek Harness web shell: replaces the stock sidebar with an icon rail, plus per-entry visibility and appearance settings.
功能 / Features
- 图标栏侧栏:侧栏收起为一条图标栏,点击图标切换面板,支持展开/收起。 / A rail sidebar: the shelf collapses to an icon column; icons switch panels, and the rail expands and collapses.
- 入口显隐:在设置里逐个开关「在图标栏显示这个入口」,控制哪些入口出现在图标栏。 / Per-entry visibility: toggle "show this entry in the rail" for each entry in Settings.
- 外观设置:图标尺寸(默认 18)与栏宽(默认 44),可一键「恢复默认外观」。 / Appearance: icon size (default 18) and rail width (default 44), with a one-click reset.
- 保留原生命令:新建会话、更多入口仍然可用。 / Native actions stay available: new session, more.
安装 / Install
dsh plugin --profile web add dsh-ui-extensions
重启 dsh web 后生效。安装后官方 ui-sidebar 会被本插件接管(cordis.patch.yml 中显式停用它),因此不要与其他替换侧栏的插件同时安装。 / Restart dsh web afterwards. The bundle takes over the stock ui-sidebar (it is explicitly disabled in cordis.patch.yml), so do not install it alongside another sidebar-replacing plugin.
配置 / Configuration
设置 → UI 扩展:
| 项 | 默认 | 说明 |
|---|---|---|
| 图标尺寸 | 18 | 图标栏内图标的边长 / icon edge length in the rail |
| 栏宽 | 44 | 图标栏占用的水平宽度 / rail width |
| 恢复默认外观 | — | 重置上面两项 / reset the two settings above |
兼容性 / Compatibility
面向 dsh 0.2.x 的 web profile 开发与验证(0.2.2-rc.1)。 / Built and verified against dsh 0.2.x web profiles (0.2.2-rc.1).
开发 / Development
git clone https://github.com/xyx985/dsh-ui-extensions.git
cd dsh-ui-extensions
# 在 profile 里以本地链接方式安装 / install into a profile as a local link
pnpm add "dsh-ui-extensions@link:$PWD" --dir ~/.dsh/profiles/web
许可 / License
MIT
No comments yet. Be the first to write one.