jcfung1122/dsh-power0

dsh-power

Power controls for the DeepSeek Harness Web GUI: shut down or restart DSH from the browser sidebar

包名
dsh-power
版本
0.1.0
许可证
MIT
最近更新
2026年8月17日

安装

$npx -p @deepseek-ai/dsh dsh plugin --profile web add github:jcfung1122/dsh-power

用法 / Usage

悬停电源图标,选择:

  • 关闭 DSH —— 只关闭本页面并优雅停止服务,其他浏览器窗口不受影响。
  • 重启 Web UI —— 重新拉起服务并自动重新打开页面。

每一项都先弹确认,确认后才执行。

Hover the icon and pick Shut down DSH (closes this page and stops the service) or Restart Web UI (relaunches and reopens). Both ask for confirmation first.

配置 / Configuration

通常不需要任何配置。需要覆盖时写进 cordis.patch.yml

- id: power
  config:
    restartWaitMs: 7000     # 重新拉起前等待旧进程释放端口的时长(毫秒)
    restartCommand: ""      # supervisor 管理的部署可填完整重启命令
    reopenUrl: ""           # 覆盖自动推导的重开地址
默认值说明
restartWaitMs7000等待旧进程释放端口后再拉起。
restartCommand(自动)完整重启命令;默认从当前进程重建。
reopenUrl(自动)重开地址;默认 http://127.0.0.1: