Monter-code/dsh-live-reload ↗★ 0
dsh-live-reload
DSH 免重启热刷新插件:监视插件源码变化,重新加载 host 侧插件模块,并在会话标题栏给出一颗「刷新界面」按钮,让插件更新立刻生效,无需重启桌面端。 专为DSH插件开发者设计,无需重启桌面端即可实时预览和测试插件修改。
Install
$
npx -p @deepseek-ai/dsh dsh plugin --profile web add github:Monter-code/dsh-live-reloadREADME
Read the full README ↗4. 配置
写在 profile 的 cordis.patch.yml 里(或插件设置界面):
- id: dsh-live-reload
name: dsh-live-reload
config:
pollMs: 400 # 扫描间隔,默认 700ms(150–60000)
debounceMs: 300 # 变更去抖,默认 300ms(50–10000)
autoWatch: true # 是否自动监视
reloadSelf: false # 是否允许热重载本插件
refreshUi: auto # auto|always|manual|never(auto=空闲时自动刷新)
uiPollMs: 1500 # 按钮轮询 /state 的间隔(500–60000)
watch: # 额外监视的目录(绝对路径)
- D:/test-dsh/experiments/lr-victim
exclude: # 排除的目录
- D:/test-dsh/scratch
reloadTargets: # 白名单:只有命中的插件才会被(自动)重载
- dsh-image-insight
ignore: # 追加忽略规则(在默认列表之上)
- '*.tmp'
默认忽略:node_modules、.git、.github、dist、build、out、coverage、.cache、.turbo、.next、*.log、*.tmp、*.swp、*~、.DS_Store。