deepforce/dsh-plugin-reloader ↗★ 1

@deepforce/dsh-plugin-reloader

监视已安装插件包,改动时就地热重载,依赖变化时重启dsh web。 适合频繁升级插件的开发者;依赖变化重启需通过supervisor启动dsh。

套件
@deepforce/dsh-plugin-reloader
相容性
待驗證
Harness 依賴範圍
^0.0.1-rc.1
Cordis 依賴範圍
^4.0.1
版本
0.2.0
授權
MIT
最近更新
2026年8月15日

安裝

$npx -p @deepseek-ai/dsh dsh plugin --profile web add github:deepforce/dsh-plugin-reloader

Usage

After upgrading an installed plugin:

dsh plugin --profile web add github:deepforce/dsh-balance   # upgrade

The watcher notices the changed lib/ files and hot-reloads it — no restart. To force it manually, type /reload @deepforce/dsh-balance in a session, or /reload with no argument to list candidates.

If the upgrade also changed the plugin's dependency tree, the process exits 42 and the supervisor relaunches dsh web automatically (a supervisor is required — a plain dsh web just exits).

Configuration

FieldDefaultMeaning
watchEnabledtruePoll installed plugins and hot-reload on code changes
watchRoots["@deepseek-ai", "@deepforce"]Scoped directories under the profile's node_modules to consider
debounceMs400Change coalescing window before a reload fires
pollIntervalMs2000Polling interval for change detection
restartExitCode42Exit code used when a dependency tree changed (supervisor restarts on it)
allowOfficialfalseAlso hot-reload official @deepseek-ai plugins (not recommended)
allowServiceProvidersfalseAlso hot-reload plugins that provide services other plugins depend on (not recommended)

Example overlay: