dsh-restart
DeepSeek Harness 一键重启与插件开关管理插件
AI 分析
在设置中提供一键重启服务、开关已安装插件及切换 Git 分支的功能。适合频繁调整插件配置和开发调试的用户。
安裝
$
npx -p @deepseek-ai/dsh dsh plugin --profile web add github:dujar/dsh-restart說明文件
閱讀完整 README ↗Usage
- Open Settings → Restart.
- Restart now restarts the dsh web process; the page reloads once the new instance answers.
- Toggle any plugin to mount/unmount it — the profile manifest is updated immediately, and the change is applied after a restart. The Restart to apply chip and the notice bar's Restart button show you exactly what is pending.
- Browse more plugins opens Settings → Plugins → Community plugins, where you can search and install from the community catalog (via dsh-community-plugins).
- For local checkouts, ⎇ Switch branch opens the git panel: pick a repo (Local / each remote) and a branch — the same branch name from a different repo retargets tracking (
git branch --set-upstream-to/--unset-upstream) instead of being a no-op. The Reinstall row below it is a fresh cleanup from one of three sources (all two-step confirmed): Local discards every local change and untracked file (git reset --hard+git clean -fdx), a remote fetches and hard-resets the checkout to that remote's default branch, and Plugin (npm) reinstalls the latest release from the registry (dsh plugin add @latest— the local checkout stays on disk but stops being loaded). Local/remote reinstalls automatically restore the node_modules thatgit clean -fdxwiped and repair a broken link. Link health shows per row: when the Link broken warning appears, click Repair link to fix it. - Uninstall (row meta) removes the plugin from
dsh.profile.bundlesanddependencies— restart to apply; the checkout files on disk are left untouched.
Configuration
Environment variables (all optional):
| Variable | Default | Purpose |
|---|---|---|
DSH_RESTART_CMD | original command line | Custom restart command (e.g. systemctl restart dsh-web) for supervised setups. |
DSH_RESTART_PROFILE | auto-detected | Explicit profile; falls back to DSH_PROFILE, then auto-detection of the profile that mounted this plugin, then web. |