dsh-web
zhu1090093659/dsh-webDeepSeek Harness(DSH)Web 插件聚合生态包 · 一切皆插件,创意工坊分发(dsh-market.com)
DeepSeek Harness 关机按钮插件:左下角弹窗确认后安全结束 DSH 进程 (dsh-shutdown-button)
DeepSeek Harness 关机按钮插件 —— 作为固定插件常驻在 dsh Web GUI 左下角(侧栏脚部),一键弹窗确认后安全结束 DSH 进程。
ctx.appExit 有界优雅关机——整体释放应用 Fiber(有序收尾持久化、服务、连接),超时兜底,随后以退出码 0 正常结束进程dsh.bundle 形式装入 profile,无需手动批准或装载dsh-shutdown-button/
├── package.json # 仓库根包声明(供 git/file 安装:dsh.bundle.patch + dsh.client + files)
├── plugin/ # 插件源码(手动复制安装时的包源)
│ ├── index.js # Host 端:POST /__dsh-shutdown/request 安全退出路由
│ ├── client.js # 浏览器端:关机按钮 + 确认弹窗 UI(bundle 无需构建)
│ ├── cordis.patch.yml # bundle 补丁层:插入插件行
│ └── package.json # plugin/ 形态的包声明
└── README.md
本插件是 dsh 的 out-of-tree bundle。
dsh plugin --profile web add github:Yelloooooow/dsh-shutdown-button
dsh plugin 会把仓库作为插件包安装到 profile,并因包声明了 dsh.bundle.patch 而自动加入 dsh.profile.bundles。装完重启 Harness,左下角即出现关机按钮。
dsh plugin --profile web add file:/path/to/dsh-shutdown-button/plugin
点击左下角电源图标 → 弹窗确认 → 确认后 DSH 安全退出。撤销请点击「取消」。
dsh plugin --profile web remove dsh-shutdown-button
重启后插件即被移除。