dsh-web
zhu1090093659/dsh-webDeepSeek Harness(DSH)Web 插件聚合生态包 · 一切皆插件,创意工坊分发(dsh-market.com)
DeepSeek Harness (dsh) check-for-updates plugin — 右上角检查更新 UI + 关闭后自动升级 (npm / update-dsh.ps1)
A user-level plugin for DeepSeek Harness (dsh) that adds a "Check for updates" button to the top-right of the Web UI, plus a live update with a progress bar.
[5/6] 安装依赖). It is draggable, its ✕ collapses it into a tray icon (white rounded tile with the blue DeepSeek whale), and clicking that icon brings the card back exactly where you left itlaunch-hidden.vbs (see Development notes)launcher/update-dsh.ps1, so it updates the exact installation the launcher runs; never touches the launcher exe or ~/.dsh user datadsh web), v0.1.0+fetch)deepseek-harness source checkout with a sibling launcher/update-dsh.ps1, plus git, pnpm, curl.exe and PowerShell on PATH (the update drives that script)Add the plugin to your web profile, then register the row.
dsh plugin --profile web add ADDD1118/dsh-update
Append this to ~/.dsh/profiles/web/cordis.patch.yml:
- insert:
- id: dsh-update
name: dsh-update
Restart dsh web and hard-refresh the browser (Ctrl+F5). The button appears in the top-right of the session header (beside "Session log").
The plugin ships prebuilt (
lib/index.js+lib/client.js), so no build step is required.
~/.dsh/.dsh-pending-update.json.appExit — the same path as a normal shutdown, just without you clicking the X. Cancel at any point to unschedule.launcher/update-dsh.ps1 -Tag <tag> (download → pnpm install → build) and writes the outcome to ~/.dsh/.dsh-update-state.json.update-progress.ps1 polls that state file and draws the bottom-right card; both it and the completion toast run as independent processes, so they survive even if the updater dies.~/.dsh/.dsh-update.log.Closing dsh never updates anything by itself. The only way an update runs is if you clicked "Update" and the schedule is still pending; there is no background auto-upgrade. If you force-kill dsh instead of closing it, the scheduled update does not run — use
更新DeepSeekHarness.cmdfor that case.
为 DeepSeek Harness (dsh) 的 Web 界面右上角新增 "检查更新" 按钮,并支持在关闭 dsh 后自动完成的后台更新。
[5/6] 安装依赖)。可拖动位置;点 ✕ 收起为托盘图标(白底圆角蓝色鲸鱼),点该图标会在你关闭时的位置把浮窗还原launch-hidden.vbs 隐藏启动(见 Development notes)launcher/update-dsh.ps1,因此更新的正是启动器实际运行的那份代码;不触碰启动器 exe 和 ~/.dsh 用户数据dsh web),v0.1.0+fetch)deepseek-harness 源码检出 + 同级 launcher/update-dsh.ps1;且 PATH 中有 git、pnpm、curl.exe 和 PowerShell(更新由该脚本执行)将插件加入 web profile,并注册插件行。
dsh plugin --profile web add ADDD1118/dsh-update
在 ~/.dsh/profiles/web/cordis.patch.yml 追加:
- insert:
- id: dsh-update
name: dsh-update
重启 dsh web 并强刷浏览器(Ctrl+F5)。按钮出现在会话头右上角("Session log" 旁)。
插件已预构建(
lib/index.js+lib/client.js),无需再执行构建。
~/.dsh/.dsh-pending-update.json。appExit 让 dsh 自行退出 —— 与正常关闭走同一条路径,只是不需要你手动点关闭。倒计时期间可随时取消排期。launcher/update-dsh.ps1 -Tag <tag>(下载 → pnpm install → 构建),并把结果写入 ~/.dsh/.dsh-update-state.json。update-progress.ps1 轮询该状态文件绘制右下角进度卡;进度卡与完成通知都是独立进程,即使 updater 意外退出也能给出结果。~/.dsh/.dsh-update.log。「关闭 dsh」本身不会触发任何更新。 唯一会执行更新的是你点了「更新」且排期仍然存在 —— 没有后台自动升级。若是强制结束进程(而非正常关闭),排期的更新不会执行,这种情况下请用
更新DeepSeekHarness.cmd。
src/** is bundled by tsdown into lib/index.js (host, ESM) and lib/client.js (browser, CJS handed to the shell via window.__ModuleLoader__.load). updater.mjs and update-progress.ps1 ship unbundled and are loaded from disk at runtime.update-progress.ps1 must stay saved as UTF-8 with a BOM. Windows PowerShell 5.1 reads .ps1 files as ANSI (GBK on a Chinese system) when no BOM is present, which mangles its Chinese strings badly enough to break parsing.[N/M] numbers out of update-dsh.ps1's output and supplies its own stage labels: that script's Write-Host output arrives in the console's OEM codepage, so decoding it as UTF-8 would produce mojibake.launch-hidden.vbs (wscript, window style 0) for the progress card. Two separate reasons: detached + unref alone does not keep a PowerShell child alive after its parent exits, and on Windows 11 console apps are handed to Windows Terminal — so powershell -WindowStyle Hidden still leaves a terminal window on the desktop, because that window belongs to the terminal host rather than to PowerShell. wscript is a GUI-subsystem host with no console of its own.dsh-update-icon.ico is a multi-size ICO (16/24/32/48/64/128/256) composed from the repo's own apps/web/public/favicon.svg whale: the SVG is recoloured to the brand blue #4d6bfe (sampled from packages/skill/skill-badge/assets/dsh-badge.png), rasterised with headless Edge, then drawn onto a white rounded tile. Note the favicon carries a prefers-color-scheme: dark rule that repaints the path white — it must be stripped before rasterising, or the whale comes out white-on-transparent and invisible.