dujar/dsh-restart0

dsh-restart

Restart dsh web from Settings → Restart, enable/disable installed plugins with one toggle, and jump to the Community plugins tab to install more. Bilingual (English/中文) UI. 在 设置 → 重启 中一键重启 dsh web、开关已安装插件,并跳转社区插件页安装更多。

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

安装

$npx -p @deepseek-ai/dsh dsh plugin --profile web add github:dujar/dsh-restart

Usage

  1. Open Settings → Restart.
  2. Restart now restarts the dsh web process; the page reloads once the new instance answers.
  3. 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.
  4. Browse more plugins opens Settings → Plugins → Community plugins, where you can search and install from the community catalog (via dsh-community-plugins).
  5. 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 that git clean -fdx wiped and repair a broken link. Link health shows per row: when the Link broken warning appears, click Repair link to fix it.
  6. Uninstall (row meta) removes the plugin from dsh.profile.bundles and dependencies — restart to apply; the checkout files on disk are left untouched.

Configuration

Environment variables (all optional):

VariableDefaultPurpose
DSH_RESTART_CMDoriginal command lineCustom restart command (e.g. systemctl restart dsh-web) for supervised setups.
DSH_RESTART_PROFILEauto-detectedExplicit profile; falls back to DSH_PROFILE, then auto-detection of the profile that mounted this plugin, then web.