Wonderow666/dsh-auto-update ↗★ 0
dsh-auto-update
Check, install and roll back DeepSeek Harness CLI updates from the Web settings page, with a health-checked restart and automatic rollback. 适合需要通过Web界面便捷管理DSH CLI版本升级与回滚的用户。
같은 패키지 이름의 다른 저장소
설치
$
npx -p @deepseek-ai/dsh dsh plugin --profile web add github:Wonderow666/dsh-auto-update配置
环境变量(重启命令与指针目录)
插件不去猜你的目录结构,三件事全部可配置:
| 变量 | 默认 | 说明 |
|---|---|---|
DSH_AUTO_UPDATE_LAUNCH_CMD | (空) | 切换版本后用来重启 web 宿主的脚本。没配置就不允许升级 |
DSH_AUTO_UPDATE_LAUNCHER_DIR | %DSH_HOME%\auto-update\launcher | 启动指针 current-root.txt 所在目录 |
DSH_AUTO_UPDATE_BOOT_LOG | (空) | 启动日志路径;配了才能把"起不来"的具体原因显示在卡片上 |
DSH_HOME | ~/.dsh | DSH 数据根;安装目录默认在它旁边 |
DSH_AUTO_UPDATE_INSTALL_BASE | (空) | 安装目录的兜底默认值,会被 install-base.txt 覆盖(见「安装目录」) |
setx DSH_AUTO_UPDATE_LAUNCH_CMD "C:\tools\start-dsh-web.cmd"
setx DSH_AUTO_UPDATE_LAUNCHER_DIR "C:\tools\dsh-launcher"
setx DSH_AUTO_UPDATE_BOOT_LOG "C:\tools\start-dsh-web.log"
profile 配置(cordis.patch.yml)
- id: dsh-auto-update
name: dsh-auto-update
config:
enabled: true
channel: latest # latest | next | alpha
intervalHours: 6
autoApply: false # true = 定时检查到新版本就自动装
registry: "" # 空 = npm 默认源;可填镜像,例如 https://registry.npmmirror.com
运行时修改(设置页开关、接口调用)落到 %DSH_HOME%\auto-update\config.json,优先级高于 patch 里的默认值。
profile 配置(cordis.patch.yml)
- id: dsh-auto-update
name: dsh-auto-update
config:
enabled: true
channel: latest # latest | next | alpha
intervalHours: 6
autoApply: false # true = 定时检查到新版本就自动装
registry: "" # 空 = npm 默认源;可填镜像,例如 https://registry.npmmirror.com
运行时修改(设置页开关、接口调用)落到 %DSH_HOME%\auto-update\config.json,优先级高于 patch 里的默认值。