lixiaohao001/dsh_plugin_refresh ↗★ 0
dsh_plugin_refresh
提供插件安装后的自动激活与热重载功能 适合插件开发者,无需频繁重启DSH即可使修改或新装插件生效。
安装
$
npx -p @deepseek-ai/dsh dsh plugin --profile web add github:lixiaohao001/dsh_plugin_refresh说明文档
阅读完整 README ↗Configuration
Row config is validated by the exported schema when @deepseek-ai/schemastery is reachable,
and normalized by lib/config.js either way.
| Field | Default | Meaning |
|---|---|---|
autoCheck | true | Check after startup and after every plugin-manager operation. |
autoRepair | true | Re-drive a bundle that was just installed or enabled but has no running row. |
deepReload | true | Reload plugin modules whose files changed at an unchanged path. |
watchProfile | true | Watch the profile patch files and manifest. |
devWatch | [] | Extra absolute files or directories to watch for plugin development. |
devReload | true | Deep-reload when a devWatch path changes. |
pollIntervalMs | 2000 | Interval of the fingerprint poll that backs up file watching; 0 disables it. A pass compares recorded size and modification time only, so it is cheap. |
debounceMs | 400 | Quiet window that combines a burst of change events into one pass. |
startupDelayMs | 1200 | Delay after application readiness before the first check. |
route | /api/plugin-refresh | Status route prefix; an empty string disables the HTTP surface. |
verbose | false | Log passes that found nothing to do. |
- id: plugin-refresh
config:
devWatch:
- /absolute/path/to/my-plugin/lib
配置项
见上方英文表格;在 profile 的 cordis.patch.yml 里覆盖,例如开发时监视自己插件的目录:
- id: plugin-refresh
config:
devWatch:
- /绝对路径/my-plugin/lib