aokamoaki/dsh-startup-guard1

dsh-startup-guard

Boot-time guard for DeepSeek Harness: repairs corrupt session logs, snapshots manifests + linked sources, preflights bundle resolution and composition, vm-checks client artifacts, smokes host apply() in a child process and quarantines crash-causing bundles - so a broken plugin or corrupt log can never brick startup.

包名
dsh-startup-guard
版本
1.0.0
许可证
MIT
最近更新
2026年8月16日

安装

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

⚙️ 模式与配置

配置文件:~/.dsh/dsh-startup-guard.json(缺省使用默认值)。

模式行为
report只检测与报告,绝不修改任何文件
fix(默认)自动修复 / 自动禁用 / 自动回滚
strictfix + 致命组合形态写块标记,启动器拒绝启动并弹窗
{
  "mode": "fix",
  "smoke": true,
  "smokeTimeoutMs": 15000,
  "clientVmCheck": true,
  "clientFactorySmoke": false,
  "quarantineOnCrash": true,
  "autoRepairComposition": true,
  "tornTailGraceMs": 300000,
  "keepSnapshots": 10,
  "exclude": ["some-bundle-i-trust"]
}
配置项默认说明
modefixreport / fix / strict
smoketrue是否执行宿主 apply() 冒烟
smokeTimeoutMs15000单个冒烟子进程超时
clientVmChecktrue是否在 vm 中真实加载 client 产物
clientFactorySmokefalse是否额外调用 client factory(stub require)
quarantineOnCrashtrue崩溃标记在场时强制全量冒烟
autoRepairCompositiontrue自动禁用 name: 失效的 patch row
tornTailGraceMs300000判定"永久 torn 尾帧"的停写时长
keepSnapshots10保留的快照份数
exclude[]永不触碰的 bundle 名单