dsh-ui-tweaks
DeepSeek Harness 的界面增强插件:模型选择器(推理强度滑块)、粘贴/拖拽上传、插件列表增强、请求重试设置、全局快捷键、桌面通知
- Stars
- 0
- Language
- TypeScript
- Created
- Aug 19, 2026
- Updated
- Aug 23, 2026
Introduction
dsh-ui-tweaks
DeepSeek Harness (DSH) 的界面增强插件:基础输入 + 界面增强 + 桌面通知,单一 bundle。
功能
| 功能 | 说明 |
|---|---|
| model-selector | 模型选择器(搜索 + 分组 + 推理强度滑块与辐射特效) |
| paste-input | 粘贴/拖拽上传(批量/暂存/清理) |
| plugin-inventory | 插件列表增强(全部/内置/自定义分类 tab + 搜索) |
| retry-settings | 请求重试次数设置(host /api/retry-settings 路由) |
| keyboard-shortcuts | 全局快捷键(帮助/聚焦/导航/侧边栏等) |
| notify | 桌面通知(审批/提问/轮次/后台会话完成,四类事件可分别开关,可配通知声音开关 + 试听) |
配置
所有功能的开关与选项统一放在 「设置 → 插件 → 配置」 下的「界面增强」折叠卡片里(与其他插件的配置卡片并列),内部分组展示。
配置统一存于浏览器 localStorage 单 key(dsh-ui-tweaks.settings)。
开发
标准双半区结构,lib/ 为构建产物:
src/
index.ts # host 组合器(retry-settings 路由 + 子模块挂载)
model-selector/ # host 半区(占位)
paste-input/ # host 半区(附件上传协议 v1)
client/ # 浏览器半区
index.ts # 统一 apply(设置 UI + 三个控制器)
locales.ts / styles.ts
model-selector/ # 增强模型选择器(ModelSelect.tsx)
paste-input.tsx # 附件选择器 + 会话附件管理
attachment-remove.ts # 图片移除按钮可见性补丁
pnpm install
pnpm typecheck # host + client 双 program
pnpm build # tsc 出 host 半区(lib/)+ tsdown 出 client bundle(lib/client.js)
pnpm watch # client bundle 增量构建(HMR)
依赖官方 @deepseek-ai/* 0.1.1-rc.2(next)版本线。
安装
npx -p @deepseek-ai/dsh dsh plugin --profile web add github:bitterSmilezzz/dsh-ui-tweaks
bundle 自带 cordis.patch.yml,安装后自动插入 entry(id: dsh-ui-tweaks),重启目标 profile 生效。
License
MIT