dsh-ctl
已验证 · 实测可装 w2831120407
功能简介
DeepSeek Harness (dsh) Web control plugin: restart/shutdown the dsh web process from the Settings panel, plus a treat (小鱼干) top-up for the whale-girl pet. / dsh 系统控制插件:设置页一键重启/关闭 dsh web,并为鲸鱼娘宠物补给小鱼干。
可用 — 实测通过,早期项目
DeepSeek Harness (dsh) Web control plugin: restart/shutdown the dsh web process from the Settings panel, plus a treat (小鱼干) top-up for the whale-girl pet. / dsh 系统控制插件:设置页一键重启/关闭 dsh web,并为鲸鱼娘宠物补给小鱼干。 实测能干净安装、正常启动。早期项目,但功能可用。
「已验证」表示我们的自动化 CI 在干净 profile 里实际执行了 dsh plugin add 并启动成功——仅此而已。功能描述与版本兼容性均为作者声明。这不是安全审计,也不代表对第三方代码的背书。
README
dsh-ctl
DeepSeek Harness (dsh) Web control plugin. Adds two features to the dsh web
Settings panel:
- 系统控制 — 一键 重启 / 关闭 dsh web。重启按原启动命令重新拉起进程,端口 3080 重新监听;关闭则结束 dsh 主进程。
- 小鱼干补给 — 给内置的「鲸鱼娘」宠物输入数字增加小鱼干(库存上限 20),并显示当前库存。
Host 端提供 /api/dsh-ctl/* JSON 端点;Client 端注册两个设置页。
安装
该插件是一个标准的 dsh bundle 包。在已装好的 dsh web 环境里,任选其一:
方式 A:本地克隆后 link 安装
git clone https://github.com/w2831120407/dsh-ctl.git
dsh plugin --profile web add link:$(pwd)/dsh-ctl
方式 B:作为 git 依赖加入 profile
在 ~/.dsh/profiles/web/package.json 的 dependencies 增加并执行安装:
"dsh-ctl": "git+https://github.com/w2831120407/dsh-ctl.git"
然后在 dsh.profile.bundles 里追加 "dsh-ctl"。
安装后重启 dsh web,刷新浏览器,在 设置 里即可看到 「系统控制」 与 「小鱼干补给」。
使用
- 设置 → 系统控制:「重启」「关闭」为两步确认按钮(第一次点击变「确认重启?/确认关闭?」),防止误触。
- 设置 → 小鱼干补给:输入数量点「增加」,将小鱼干库存加上对应数量(受宠物库存上限截断)。
说明与注意事项
- 重启/关闭是进程级操作:通过分离的 PowerShell helper 定位 dsh 主进程并按原命令行处理。操作会断开当前页面,需要手动刷新。
- 小鱼干补给通过运行时扩充
@linxin666/dsh-pet服务(不改动 pet 包文件),因此随 pet 更新不会丢失;若 pet 内部结构变化,可能暂时失效(返回错误而非崩溃)。 - 默认端口按
3080识别,首选按命令行deepseek-ai+bin.js匹配 dsh 主进程。
License
MIT
安装
装一次目录插件,之后本站所有插件都能让 DeepSeek Harness 自动找、自动装:
dsh plugin add dshbase-catalog 然后对 agent 说「帮我装 dsh-ctl」,它会在目录里找到并自动安装。文档:dshbase-catalog · 已验证场景包。
该插件是 GitHub 源码(未发 npm)——直接从仓库装:
Web profile:
dsh plugin --profile web add github:w2831120407/dsh-ctl Headless(CLI)profile:
dsh plugin --profile headless add github:w2831120407/dsh-ctl 实测报告
验证通过:从 GitHub 源码完成 L1 安装 + L2 加载 + L3 运行(dsh 0.1.0-rc.6)。