rea
morluto
Reverse engineer anything with agents, from app behavior down to native binaries.
PROJECT TOPICS
INSTALL REFERENCE
dsh plugin --profile web add github:zhangrui824/dsh-upgrade-assistant
该命令指向仓库当前默认分支;尚无绑定当前 commit 的完整验证结果。
PROJECT README
English | 简体中文
A DeepSeek Harness (DSH) plugin that adds an "Upgrades" tab to the Plugins page: update checks for every installed plugin, DSH-compatibility preflight, and one-click in-place upgrades — with every failure explained in plain language.

pm ✓ · en · 8 bundles · dsh 0.2.1-rc.5 ← self-diagnostics strip
┌ Harness (DSH) ── Current version / Latest on npm [Check DSH updates]
├ Installed plugins (N) ── [Check plugin updates]
│ Context (dsh-context) 0.77.0 → 0.78.1 [Upgrade available] engines.dsh: …
│ Claude Code subagent 0.2.1-rc.2 [Official] [Up to date]
│ dsh-web 0.4.7 [Not on npm — skipped] [Refresh bundled family]
├ Version exemptions — which "skip the DSH gate" permits are active
└ When an upgrade fails — the four common failure classes, decoded
From GitHub (recommended):
dsh plugin --profile <your-profile> add github:zhangrui824/dsh-upgrade-assistant
Or from a local clone:
git clone https://github.com/zhangrui824/dsh-upgrade-assistant.git
dsh plugin --profile <your-profile> add file:/absolute/path/to/dsh-upgrade-assistant
pnpm update --latest --config.minimumReleaseAge=0 <name>.
The minimumReleaseAge=0 override skips pnpm's 24-hour release-cooling gate (the classic
"version is too new to install" failure); this only happens on your explicit click.pnpm update --latest cannot move transitive dependencies — it silently
no-ops. The tab instead runs an in-range refresh
(pnpm update <deps> --config.minimumReleaseAge=0), moving each dependency to the newest
version its parent's semver range allows.node_modules;
a green pnpm exit that moved nothing is reported as stale, never as success.latest tag is behind the installed version (common for
the official @deepseek-ai/* packages), the update is refused.Custom web routes do not pass through the DSH web UI's cookie authentication, so all routes behind this plugin enforce their own trust fence (same tier as the community dsh-update):
Host headerOrigin match, sec-fetch-site ≠ cross-site)X-Forwarded-For is never trusted; rejections return 403 + JSON with the reasonWhen a new version declares engines.dsh, it is evaluated before upgrading with a semver
range evaluator that matches DSH's own gate (node-semver semantics,
includePrerelease: true; 34 cases verified against the original library). Unsatisfied bundles
show "Needs newer DSH" and hide the upgrade button. Range syntaxes the evaluator cannot parse
never block — the requirement is displayed verbatim and the real install remains the authority.
Clicking Upgrade says the update service is not live yet? Host-side changes need one Harness restart (client-side changes apply on page refresh).
Why does a row say "Not on npm — skipped"? That bundle was installed from GitHub or a local path — npm has no version to compare. For GitHub-sourced bundles the tab offers Refresh bundled family to move the npm dependencies the bundle pulls in (self-contained bundles with no dependencies get no such button).
What are "Version exemptions"?
Permits that skip the DSH compatibility gate for exact package@version pairs. Revoke them in
the bundle's detail page after upgrading DSH.
Relation to the dsh-update plugin?
dsh-update refreshes its author's family (@linxin666/*) and shows release notes; this plugin
covers the global npm-bundle view. Their update commands differ for transitive dependencies
(--latest only touches direct dependencies) — this plugin handles both modes explicitly.
npm test # version compare / range evaluation / trust fence / name gates / downgrade guard
node --check index.js && node --check client.js
Tests load the pure functions from the shipped sources verbatim and run them standalone — the same code paths the plugin executes. Host-side changes need one Harness restart; client-side changes apply on page refresh.
├── index.js # Host half: routes (host-info / latest / family / update) + fence + pnpm runner
├── client.js # Client half: the Upgrades tab
├── cordis.patch.yml # Loader row
├── locale/ # display metadata for the Plugin Manager
├── docs/ # screenshots
├── test/run-tests.mjs
└── CHANGELOG.md
DSH_CLIENT_VERSION or by walking up from the
entry script to the @deepseek-ai/dsh manifest; when neither answers, the version shows as
unknown (everything else keeps working).CLASSIFICATION EVIDENCE
系统优先读取 GitHub Topics,再与站内分类词典和词根规则比对。当前命中: deepseek、deepseek-harness。