lc23313/dsh-autoupdate0

dsh-autoupdate

DSH 内置自动更新插件:支持手动检查更新、带健康检查的安全更新管道及自动回滚。

AI 分析

核心用途是为 DSH 提供自动或手动的版本更新管理,具备熔断和降级机制以确保更新安全。适合希望保持 DSH 处于最新版本且不愿手动维护更新的普通用户。

包名
dsh-autoupdate
版本
1.1.0
许可证
MIT
最近更新
2026年8月23日

安装

$npx -p @deepseek-ai/dsh dsh plugin --profile web add github:lc23313/dsh-autoupdate

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
OptionDefaultDescription
enabledtrueMaster switch; false = no-op
channel"latest"npm dist-tag to track; falls back to latest
autoApplytruefalse = detect + notify only (prints a manual command)
autoCheckfalsev1.1.0: false = manual mode (Settings button only); true = v1.0.0 periodic checks
checkIntervalMs21600000Check interval when autoCheck: true (6 h; floor 5 min)
startupDelayMs30000Delay before the first check after boot
maxConsecutiveFailures3N failures → notify, 2N → off
cooldownMs86400000Pause auto-apply after an apply failure
npmTimeoutMs30000Timeout for npm queries
installTimeoutMs300000Timeout for npm install / pnpm update
npmCommand / dshCommandnpm / dshCommand overrides (absolute paths allowed)
registry""npm registry override (mirrors)
updateProfilePluginstrueRefresh user plugins in profiles after a CLI update
profiles[]Which profiles to refresh; empty = auto-detect profiles depending on this plugin
logToConsoletrueMirror log lines to the dsh console