louchi1984-coder/dsh-auto-update ↗★ 0
@louchi1984/dsh-auto-update
DeepSeek Harness 自动更新插件 — 定时扫描 npm 新版本、侧边栏状态提示、一键下载安装、自动重启生效(host + client 双半区,符合官方插件契约)。
安装
$
npx -p @deepseek-ai/dsh dsh plugin --profile web add github:louchi1984-coder/dsh-auto-update说明文档
阅读完整 README ↗2) 重启 dsh web(配置 HMR 有时可直接热挂载;不确定时重启最稳)
### Windows
插件已内置 Windows 分支(PowerShell 重启脚本、`npm.cmd`、`taskkill`)。把插件目录传到
Windows 机器后(`dsh-auto-update-win.zip` 或整个目录),在 PowerShell 中:
```powershell
## 配置(Config)
官方契约:`Config` 用 `@deepseek-ai/schemastery` 的 `z.object` 定义,默认值在 schema 中,
可按部署覆盖(在 `cordis.patch.yml` 的 insert 行加 `config`):
| 字段 | 默认 | 说明 |
|---|---|---|
| `registries` | `[registry.npmjs.org, registry.npmmirror.com]` | 版本检查源,按顺序尝试 |
| `fetchTimeoutMs` | `8000` | 单个 registry 源超时 |
| `checkIntervalMs` | `21600000`(6h) | 自动扫描间隔 |
| `bootCheckDelayMs` | `15000` | 启动后首次扫描延迟 |
| `tickMs` | `5000` | 状态机心跳间隔 |
| `autoRestartDelayMs` | `3000` | 安装成功后自动重启延迟 |
| `dismissMs` | `86400000`(24h) | 「稍后」忽略有效期 |
| `restartGraceMs` | `3000` | 重启脚本杀进程前响应刷出宽限 |
| `respawnWaitMs` | `12000` | 杀完进程等监管方拉起的窗口 |
| `maxTermWaitS` | `15` | SIGTERM 后等待进程退出的秒数 |