lixiaohao001/dsh_plugin_refresh ↗★ 0

dsh_plugin_refresh

提供插件安装后的自动激活与热重载功能 适合插件开发者,无需频繁重启DSH即可使修改或新装插件生效。

包名
dsh_plugin_refresh
兼容性
待验证
Cordis 依赖范围
^4.0.4
版本
0.1.0
许可证
MIT
最近更新
2026年10月11日

安装

$npx -p @deepseek-ai/dsh dsh plugin --profile web add github:lixiaohao001/dsh_plugin_refresh

Configuration

Row config is validated by the exported schema when @deepseek-ai/schemastery is reachable, and normalized by lib/config.js either way.

FieldDefaultMeaning
autoChecktrueCheck after startup and after every plugin-manager operation.
autoRepairtrueRe-drive a bundle that was just installed or enabled but has no running row.
deepReloadtrueReload plugin modules whose files changed at an unchanged path.
watchProfiletrueWatch the profile patch files and manifest.
devWatch[]Extra absolute files or directories to watch for plugin development.
devReloadtrueDeep-reload when a devWatch path changes.
pollIntervalMs2000Interval 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.
debounceMs400Quiet window that combines a burst of change events into one pass.
startupDelayMs1200Delay after application readiness before the first check.
route/api/plugin-refreshStatus route prefix; an empty string disables the HTTP surface.
verbosefalseLog 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