右侧文件树侧栏,可打开工作区文件;并在输入框状态行显示 DeepSeek 账户余额。
安装
# GitHub 源码(首次需按提示配置 allowBuilds 构建授权后重试)
dsh plugin --profile web add github:nailing10086-zx/dsh-custom-ui
装任何插件都等于在你的机器上跑第三方代码,权限和你本人一样大——能读你的文件、用你的凭据、访问网络,工具审批管不到它。GitHub 来源的插件还会在安装时执行构建脚本。请只安装可信来源,并尽量锁定 commit(github:owner/repo#sha)。
README
Custom UI plugin for DeepSeek Harness Web.
Adds a right-side file-tree sidebar, workspace file open, and a DeepSeek account balance meter in the composer stats line.
Features
- Balance meter — shows the DeepSeek account balance in the composer stats line. The API key is resolved server-side only through the credentials seam (
credentialReffrom@deepseek-ai/dsh-credentials) — it never crosses the wire to the browser. - File tree sidebar — a right-side workspace file tree for quick navigation, with collapse/expand and a floating toggle button.
- Workspace file open — open files/folders with the system default application (workspace-rooted; path traversal guarded).
Install
dsh plugin --profile web add dsh-custom-ui
Then restart dsh web. If installed from a local checkout instead, link it via pnpm link (or "dsh-custom-ui": "link:<path>" in the profile's package.json) and rebuild.
Requirements
- DeepSeek Harness Web (
dsh web) DEEPSEEK_API_KEYconfigured in the harness credentials (for the balance meter; the file tree works without it)
Host routes
| Route | Purpose |
|---|---|
GET /api/custom-ui/balance |
DeepSeek account balance (via DEEPSEEK_API_KEY through the credentials seam) |
GET /api/custom-ui/fs/list |
Directory listing (workspace-rooted) |
GET /api/custom-ui/fs/open |
Open a file/folder with the system default |
Development
# host half (server routes)
node lib/index.js # or run through dsh plugin dev flow
# client half (browser UI) — HMR while `pnpm run dev:web` runs in the DSH checkout
# client-plugin changes reload without a refresh only while the dev:web watcher is running
Build the client bundle with your DSH toolchain, then restart dsh web.
Security
- The API key is resolved server-side only; the browser client never receives it.
- File routes are workspace-rooted:
resolve()+ prefix check against the workspace root blocks path traversal. - Review
lib/index.jsandlib/client.jsbefore installing if you did not clone from the official repo.
License
MIT — see LICENSE.
链接
同类插件
zhu1090093659/dsh-web-ui#packages/dsh-web-ui-all★ 4021
DSH Web UI 插件与皮肤合集:任务看板、git 图、右侧面板、远程移动端 UI、桌宠、实时 token 统计与皮肤中心。
omdsh-dev/DSH-better-sidebar★ 1904
侧边栏完整工作台:内置文件渲染编辑、终端、Git 与子代理,支持三方插件注册新 Tab。
ccch1mneyyy/dsh-TUI★ 1782
Claude Code 风格全屏终端 UI:像素鲸鱼顶栏、实时工作状态行、思考流式展开。
omdsh-dev/dsh-at-file★ 320
Codex 风格的 `@file` 文件引用,输入框里直接搜索并引用工作区文件。
huiliyi37/dsh-tianshu-tui★ 201
DeepSeek Harness 的终端 UI(TUI)。
omdsh-dev/dsh-genui★ 176
助手回复内渲染交互式 UI 组件:布局、图表、表单、测验、mermaid、3D 场景与回传事件循环。