dsh-autoupdate
DSH 内置自动更新插件:支持手动检查更新、带健康检查的安全更新管道及自动回滚。
AI 分析
核心用途是为 DSH 提供自动或手动的版本更新管理,具备熔断和降级机制以确保更新安全。适合希望保持 DSH 处于最新版本且不愿手动维护更新的普通用户。
安装
$
npx -p @deepseek-ai/dsh dsh plugin --profile web add github:lc23313/dsh-autoupdate说明文档
阅读完整 README ↗Configuration
Defaults live in the package's own cordis.patch.yml; override them per profile in ~/.dsh/profiles//cordis.patch.yml (a user-layer row replaces the row's whole config; omitted keys fall back to schema defaults):
- id: auto-update
config:
channel: rc # track the rc dist-tag
checkIntervalMs: 3600000 # check hourly
| Option | Default | Description |
|---|---|---|
enabled | true | Master switch; false = no-op |
channel | "latest" | npm dist-tag to track; falls back to latest |
autoApply | true | false = detect + notify only (prints a manual command) |
autoCheck | false | v1.1.0: false = manual mode (Settings button only); true = v1.0.0 periodic checks |
checkIntervalMs | 21600000 | Check interval when autoCheck: true (6 h; floor 5 min) |
startupDelayMs | 30000 | Delay before the first check after boot |
maxConsecutiveFailures | 3 | N failures → notify, 2N → off |
cooldownMs | 86400000 | Pause auto-apply after an apply failure |
npmTimeoutMs | 30000 | Timeout for npm queries |
installTimeoutMs | 300000 | Timeout for npm install / pnpm update |
npmCommand / dshCommand | npm / dsh | Command overrides (absolute paths allowed) |
registry | "" | npm registry override (mirrors) |
updateProfilePlugins | true | Refresh user plugins in profiles after a CLI update |
profiles | [] | Which profiles to refresh; empty = auto-detect profiles depending on this plugin |
logToConsole | true | Mirror log lines to the dsh console |