dsh-gui-trash
Desktop (Electron) GUI daemon for DeepSeek Harness: a Cordis host plugin plus a command-line launcher wrapping the existing dsh web UI.
AI 분석
核心用途是将 DSH 网页端打包为桌面窗口运行。适合喜欢独立客户端窗口、希望自动拉起 Web 服务并弹出桌面应用的桌面端用户。
설치
$
npx -p @deepseek-ai/dsh dsh plugin --profile web add github:Kimoiran/dsh-gui-trash三种使用方式
它有三种启动方式,最终都启动同一个 Electron 守护(electron/main.js),区别只是"怎么把它拉起来":
| 方式 | 命令 | 适用场景 | 前置条件 |
|---|---|---|---|
| ① 插件 | 装进 harness,用/dsh-gui-trash 命令 | 想在 dsh 里统一启用/停用/删除 | dsh plugin add + 挂载行 |
| ② 命令行 | pnpm dsh-gui-trash 或 npx dsh-gui-trash | 开发 / 临时启动 | electron(作为依赖) |
| ③ exe | 双击dsh-gui-trash.exe | 双击即用 | 先在插件目录pnpm run build:exe |
三种方式的行为完全一致:Web-UI 已在运行 → 附着开窗;没在运行 → 拉起 dsh web 并开窗;之后每 ~3s 探活、掉线自动拉起(守护);关窗即退出;最小化到任务栏;无托盘。
配置
$DSH_HOME/desktop/config.json(Windows 默认 %USERPROFILE%\.dsh\desktop\config.json),首次运行自动生成:
{
"enabled": true,
"port": 3080,
"launchMode": "source",
"launchRoot": "不管你在哪\\deepseek-harness",
"launchCommand": "pnpm dsh web"
}
| 字段 | 含义 |
|---|---|
enabled | 总开关,false 时一切 GUI 入口拒绝启动 |
port | 探测/连接dsh web 的端口 |
launchMode | source(源码 checkout)/ installed(npm 安装)/ 留空自动 |
launchRoot | source 模式下 harness checkout 根目录 |
launchCommand | 拉起 dsh 的命令(pnpm dsh web 或 dsh web) |