x2802490130-prog/dsh-guard0

dsh-guard

DSH 运行期守护:启动成功后自动存档;插件加载失败时自动回退到上次良好快照并重启。

AI Analysis

核心用途是提供DSH运行期自动备份与故障回退守护。适合频繁折腾、调试插件的开发者,在插件加载失败时能自动恢复至健康快照并重启。

Package
dsh-guard
Version
1.0.0
License
MIT
Last updated
Aug 15, 2026

Install

$npx -p @deepseek-ai/dsh dsh plugin --profile web add github:x2802490130-prog/dsh-guard

配置(profile 补丁层,均可省略)

- id: dsh-guard
  config:
    snapshotRoot: D:\path\to\snapshots
    profileDir: C:\path\to\profiles\web
    sourceDirs: [D:\path\to\plugin-src]
    restartCommand: D:\path\to\restart.bat   # 空 = 只回退不重启
    graceMs: 120000
    autoSaveDelayMs: 150000
    keepSnapshots: 5