Plugin directory / Developer / DSH-shutdown
DSH-shutdown
Verified · install-tested on dsh knlght
What it does
一键结束 DeepSeek Harness 服务:Settings 关机页 + 二次确认 + 优雅退出,关掉浏览器不再留下后台进程
Works — verified, early-stage project
一键结束 DeepSeek Harness 服务:Settings 关机页 + 二次确认 + 优雅退出,关掉浏览器不再留下后台进程 It installs cleanly and boots without issues in our testing. It's early-stage but functional.
“Verified” means our automated CI actually ran dsh plugin add in a clean profile and it booted — nothing more. Feature descriptions and version compatibility are the author’s claims. This is not a security audit and not an endorsement of third-party code.
README
dsh-shutdown
Settings「关机」页 · 二次确认 · 优雅退出
关掉浏览器不再留下后台进程。
✨ 为什么需要
关闭浏览器不会结束 dsh 的后台服务进程——服务继续占用端口与内存。本插件在页面内提供一键关机入口,无需命令行。
✨ 功能一览
- 🖥️ Settings「关机」页:侧栏最底部新增「关机」页签
- 🛡️ 二次确认:点「关闭 DSH 服务」→ 出现「确认关闭 / 取消」双按钮,防误触
- ✅ 成功反馈:确认后页面立即显示绿色「关闭成功」面板(并尝试自动关闭标签页)
- 🎨 原生风格:按钮与配色全部引用 DSH 主题 token(
--dsw-alias-*),明暗自适应
📦 安装
dsh plugin --profile web add <本仓库 / npm 包名>
# 重启 dsh web 生效
🧠 设计要点
- 关机端点:
/_dsh/shutdown(仅 POST)——服务先返回「正在关闭」响应,500ms 后process.exit(0)优雅退出 - 会话日志为逐事件落盘,空闲时退出安全;正在进行的对话请等待其完成后再关闭
- 浏览器安全策略下脚本只能关闭自己打开的窗口——手动打开的标签页会保留「关闭成功」面板,两种情况下你都能确认结果
🧩 生态
打上 dsh-shutdown topic 的插件可接入同一生态。欢迎通过 PR 改进本插件。
📄 许可
Install
Install the catalog once, then DeepSeek Harness can find and install any plugin from this site automatically:
dsh plugin add dshbase-catalog Then say "install DSH-shutdown for me" — your agent finds it in the directory and installs it. Docs: dshbase-catalog · verified packs.
This plugin is GitHub source (not published to npm) — install it straight from the repo:
Web profile:
dsh plugin --profile web add github:knlght/DSH-shutdown Headless (CLI) profile:
dsh plugin --profile headless add github:knlght/DSH-shutdown Test report
Verified: L1 install + L2 load + L3 runtime from GitHub source on dsh 0.1.0-rc.6.