dsh-web
zhu1090093659/dsh-webDeepSeek Harness(DSH)Web 插件聚合生态包 · 一切皆插件,创意工坊分发(dsh-market.com)
DeepSeek Harness 定时自动更新插件:本体与已装插件一并检查,仅在空闲窗口执行。四种调度模式(每日/每N小时/每N天/每N分钟)、双向白名单、磁盘回读验证、内嵌设置面板热生效。
Auto-update plugin for DeepSeek Harness (DSH) — 定时检查 DSH 本体与已安装插件的更新,只在无人使用的空闲窗口执行。四种调度模式、双向白名单、可视化设置面板。
English below · English
包名@版本 显式安装 + 磁盘回读验证,杜绝假更新)dsh plugin --profile web add dsh-autoupdater或从 GitHub:
dsh plugin --profile web add github:<owner>/dsh-autoupdater安装后重启 DSH(systemd 环境:sudo systemctl restart ),然后在 插件管理器 → 自动更新 卡片配置。
面板可改全部配置并即时生效;以下为 cordis.patch.yml 初始值:
字段 · 默认值 · 说明 scheduleMode · daily · daily / everyHours / everyDays / everyMinutes dailyTime · "04:30" · 每日 / 每 N 天模式的锚定时刻 everyHours · 6 · 每 N 小时(整点对齐,1–168) everyDays · 1 · 每 N 天(锚定 dailyTime,1–365) everyMinutes · 60 · 每 N 分钟(1–10080) idleSeconds · 300 · 判定无人使用的持续静默秒数 idleTimeoutMinutes · 120 · 每次检查等待空闲的最长时间 harnessMode · notify · off / notify(暂存+通知)/ auto(宽限后自动重启) graceMinutes · 30 · auto 模式通知后的宽限分钟数 systemdUnit · "" · 重启用的 systemd 服务名;空 = 从 cgroup 自动探测 pluginMode · regexmode-ignore · 白名单内只提醒其余自动 / 白名单内自动其余提醒 / 全自动 / 全提醒 / 关闭 whitelist · [] · 插件包名列表,含义随 pluginMode
$DSH_HOME/sessions 下任意文件 2 分钟内无写入 = 无进行中的工作(借鉴 dsh-self-upgrade,比 agent.status 可靠——实测 turn 结束后 status 可能停留 running)idleSeconds 秒,双重采样防瞬时空档误判systemdUnit(或自动探测到)→ sudo -n systemctl restart 。前置条件:你的部署用户已配置该命令的 sudoers 免密,例如:youruser ALL=(ALL) NOPASSWD: /usr/bin/systemctl restart your-dsh-service未配置免密时 sudo 会失败,日志里如实记录,插件不会反复重试
harnessMode: notify——只暂存并通知,重启动作需你显式改为 auto~/.dsh/autoupdater/history.jsonlconfig.json,不触碰系统配置dsh.bundle 的 npm 形态插件;GitHub 源码安装的插件版本比对不适用$DSH_HOME/sessions 的文件 mtime,远程会话(SSH 场景)不计入设计借鉴了社区同类项目:dsh-self-upgrade(会话日志 mtime 空闲判定、防变砖校验)、dsh-updater(保守失败语义)、dsh-auto-update(stage + 退出后应用架构)。
MIT
Auto-update plugin for DeepSeek Harness (DSH) — scheduled update checks for DSH itself and installed plugins, applied only in idle windows.
name@version install and post-install disk verification (no phantom updates)Install: dsh plugin --profile web add dsh-autoupdater, then restart DSH and configure under Plugin Manager → dsh-autoupdater.
See the Chinese sections above for full details — the configuration table and idle-detection notes apply to both languages.