rea
morluto
Reverse engineer anything with agents, from app behavior down to native binaries.
PROJECT TOPICS
INSTALL REFERENCE
dsh plugin --profile web add github:neo805/dsh-auto-upgrade
该命令指向仓库当前默认分支;尚无绑定当前 commit 的完整验证结果。
PROJECT README
English | 中文
Version: 0.1.1-rc.2 (tested on DSH 0.2.1-rc.2) · Changelog · Requirements · Plan
A DSH (DeepSeek Harness) bundle that scans your installed profiles for updates, stages the update in an isolated home, gates it, and then switches by two directory renames — with a rollback that needs no network and no reinstall.
Work in progress. This is
0.1.x: the read-only scan, the candidate pipeline and the reversible switch work today; the parts that make it fully unattended (functional probe matrix, dual-end orchestration, scheduled self-upgrade) are planned but not implemented yet. The table below is the honest state, not the aspiration.
| Area | State |
|---|---|
| Read-only scan: per-profile dependency inventory, source classification (npm / file / link / git), engine + peer gate, snapshot, report, root entry file | ✅ |
Candidate build in an isolated home (own node_modules), dump gate, isolated boot gate |
✅ |
| Switch (two renames), rollback (reverse rename), commit; recovery-intent record before the first rename | ✅ |
Executor deployment: scripts/ copied to $DSH_HOME/auto-upgrade/scripts/ on mount |
✅ |
| Functional probe matrix (tool-level A/B diff against the live profile) | ⏳ planned (M2) |
| Dual-end orchestration: verify on Web first, then prepare Desktop | ⏳ planned (M3) |
| Self-update chain + scheduled duty session (automation task) | ⏳ planned (M4) |
| Installing a plugin that is not installed yet; natural-language config | ⏳ planned (M5) |
Tested end to end on Web with two real upgrades (clearai-dsh 0.5.5 → 0.5.6 and
@changfenhuang/dsh-genui 0.13.0 → 0.14.0, one at a time), each followed by a host
restart and a health check. The Desktop side is not covered yet.
0.2.1-rc.2; engines.dsh is >=0.2.0-rc.1 <0.3.0-0).pnpm on PATH — the candidate build installs into an isolated profile.# 1) install the bundle into a profile, then restart the host once
dsh plugin --profile web add <path-to>\dsh-auto-upgrade-0.1.1-rc.2.tgz
# 2) the two skills appear in the catalog; scanning is read-only
pwsh -File $DSH_HOME\auto-upgrade\scripts\Invoke-AutoUpgradeScan.ps1 -Profiles web
# 3) stage the update in an isolated home and gate it (production untouched)
pwsh -File $DSH_HOME\auto-upgrade\scripts\Invoke-AutoUpgradeVerify.ps1 `
-Profile web -Plugin clearai-dsh -Spec 0.5.6
# 4) stop the host, preview, switch, start the host again, prove it serves
pwsh -File $DSH_HOME\auto-upgrade\scripts\Invoke-AutoUpgradeSwitch.ps1 -TxnId <id> -DryRun
pwsh -File $DSH_HOME\auto-upgrade\scripts\Invoke-AutoUpgradeSwitch.ps1 -TxnId <id> -Confirm
# 5) keep it, or go back
pwsh -File $DSH_HOME\auto-upgrade\scripts\Invoke-AutoUpgradeSwitch.ps1 -TxnId <id> -Commit
pwsh -File $DSH_HOME\auto-upgrade\scripts\Restore-AutoUpgrade.ps1 -TxnId <id>
The switch does not stop the host for you: a running DSH keeps its files open, so
stop it first (on this machine: stop dsh web, run
$DSH_HOME\DSH-Hidden-Launcher.vbs afterwards). A failure inside the switch compensates
back to the previous state; nothing is ever deleted.
| Layer | What it does | Why there |
|---|---|---|
| Bundle | one insert row, a ~110-line skill registrar |
ships, enables and disables like any plugin, and can be removed completely |
| Skill | judging: compatibility, safety, overlap, local forks; a user-only apply gate | knowledge that has to be rewritten every release |
| Scripts | scan, snapshot, gates, promote, roll back | deterministic, offline, zero tokens |
The registrar imports nothing from @deepseek-ai/*; the skills registry is reached
through inject: ["skills"] only. That is deliberate: a helper plugin must not be the
thing the version gate rejects on upgrade day.
dsh --profile <p> --dump-default-config — the bundle layer only, so a broken user
patch layer cannot block it. Exit code plus patch: entry … not found warnings.engines.dsh and every @deepseek-ai/dsh-* peer, resolved against the version
the host actually ships. A peer that is not on disk is reported as not resolvable
(client-side packages are bundled into the web client, so absence is not proof of
removal) — it does not become a false failure.--port 0: parse the printed URL, probe it, treat 401 as alive
(the Web surface authenticates by cookie), kill the whole process tree, time out.unknown, not a defect: recorded, never queued.$DSH_HOME/auto-upgrade/ (plus one entry file).quarantine/<txn>/original instead of deleting
it, and writes a durable recovery-intent record before the first rename; a crash in
between is replayable.0.1.x covers one plugin at a time; DSH-core upgrades and the Desktop half are not
automated yet (M2/M3).pnpm and, unless the store is warm, network.0.1.0 – present: DeepSeek-V4.1-Flash-1017 (AI model, through DeepSeek Harness).MIT. The candidate-transaction vocabulary (staged / quarantined / promoted / rolled
back) follows @linxin666/dsh-doctor
(BSD-3-Clause), re-implemented in PowerShell; the skill-registrar shape follows the
official @deepseek-ai/dsh-skill-badge (MIT); dsh-plugin-guide, dsh-plugin-check and
awesome-dsh-plugin-feed were used as references for the judging knowledge, the registry
check and the update feed.
CLASSIFICATION EVIDENCE
系统优先读取 GitHub Topics,再与站内分类词典和词根规则比对。当前命中: deepseek-harness。