dsh-restart-ui
开发工具 活跃维护

dsh-restart-ui

BaoBao1996121/dsh-restart-ui

为Web UI提供一键重启功能,支持Windows、macOS、Linux多系统适配,无需手动操作服务进程,点击按钮即可快速完成界面重启,操作简单高效。

0
Stars 标星
0
Forks 分支
0
Watchers 关注
0
Open Issues
JavaScript
主要语言
MIT
开源协议
19 KB
仓库大小
3 个月前
最后推送
一键安装扩展 / 插件指令
dsh plugin --profile web add github:BaoBao1996121/dsh-restart-ui
git clone https://github.com/BaoBao1996121/dsh-restart-ui.git
git clone git@github.com:BaoBao1996121/dsh-restart-ui.git
README.md main

dsh-restart-ui

中文

A small DeepSeek Harness plugin that adds a restart button to the Web UI.

It restarts the exact DSH invocation that is currently running, so it works
with source checkouts, installed CLIs, portable Node.js, and custom profiles
without hard-coded machine paths.

Install

Install the tagged release into the Web profile:

dsh plugin --profile web add 'github:BaoBao1996121/dsh-restart-ui#v0.1.1'

When running DSH from a source checkout, use its source launcher instead:

corepack pnpm dsh plugin --profile web add 'github:BaoBao1996121/dsh-restart-ui#v0.1.1'

Restart DSH after installation. A ⟳ Restart button appears in the session
header utilities area.

How it works

  • The client bundle adds one button and calls a same-origin POST endpoint.
  • The host endpoint accepts loopback requests only.
  • A package-local Node helper waits for the old process to exit, then relaunches
    the same executable, Node arguments, CLI arguments, and working directory.
  • The route registration is owned by the plugin lifecycle and is removed when
    the plugin is disabled.

The package commits its built lib/ artifacts. GitHub installs therefore do
not need to run a lifecycle build script or request pnpm build permission.

Development

Requires Node.js ^22.19.0 || >=24.0.0 and pnpm 11.

corepack pnpm install --frozen-lockfile
corepack pnpm check

Remove

dsh plugin --profile web remove dsh-restart-ui

Security

Restarting DSH executes code with the current user's privileges. This plugin
does not accept a command or filesystem path from the browser: it starts one
fixed helper shipped in this package, and that helper reuses the current DSH
process invocation. Review and pin the release you install.

License

MIT. This is an independent community plugin and is not affiliated with or
endorsed by DeepSeek.