dsh-restart-anywhere

在「设置」上方添加「重启 dsh」按钮,原地重启:以 systemd 单元运行时由 systemd 重启,否则通过 process.execve 保持同一 PID(Windows 或 Node < 22.15 时保留一个轻量父进程),启动 dsh 的守护进程或终端无需额外配置(已在 Linux 实测,Docker、macOS、Windows 尚未实机测试);新 boot id 响应后页面自动刷新。

插件介绍

在「设置」上方添加「重启 dsh」按钮,原地重启:以 systemd 单元运行时由 systemd 重启,否则通过 process.execve 保持同一 PID(Windows 或 Node < 22.15 时保留一个轻量父进程),启动 dsh 的守护进程或终端无需额外配置(已在 Linux 实测,Docker、macOS、Windows 尚未实机测试);新 boot id 响应后页面自动刷新。

安装方式

从 GitHub 安装

dsh plugin --profile web add github:JoblessJoe/dsh-restart-anywhere

Installing from GitHub runs the project's build script, which pnpm blocks until you allowlist it — run the command once and pnpm prints the exact key to add under `allowBuilds` in ~/.dsh/profiles/web/pnpm-workspace.yaml.

版本兼容情况

兼容性待确认。可前往项目文档查看支持版本。