dsh-reload

Three things for DSH plugin development: reload the plugins whose files changed, restart the client when a reload cannot apply a change, and let the model trigger a reload itself. Reload uses DSH's own path, so untouched plugins keep running. Restart starts outside the client, so it completes even when the client is what gets replaced, and refuses while a session or job runs. Lightweight: no parameters, no added context, buttons off by default.

Overview

Three things for DSH plugin development: reload the plugins whose files changed, restart the client when a reload cannot apply a change, and let the model trigger a reload itself. Reload uses DSH's own path, so untouched plugins keep running. Restart starts outside the client, so it completes even when the client is what gets replaced, and refuses while a session or job runs. Lightweight: no parameters, no added context, buttons off by default.

Installation

Install from npm

dsh plugin --profile web add dsh-reload

Resolves a published tarball rather than cloning the repository, and installs without any extra setup. Swap `web` for your profile name if you run another one.

Install from GitHub

dsh plugin --profile web add github:daimingxing/dsh-reload

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.

Version compatibility

Compatibility is unconfirmed. Check the project documentation for supported versions.