rea
morluto
Reverse engineer anything with agents, from app behavior down to native binaries.
PROJECT TOPICS
INSTALL REFERENCE
dsh plugin --profile web add github:idoall/dsh-update-status
该命令指向仓库当前默认分支;尚无绑定当前 commit 的完整验证结果。
PROJECT README
A DSH Web version-status panel with copy-only upgrade guidance and opt-in, supervised safe restart.
English | 中文
Features · Install · Usage · Update check · Supervised restart · LAN pages · Loadability · Configuration · Troubleshooting · Security · Uninstall · Release guide
DSH Update Status is a community plugin for DeepSeek Harness. It does not modify DSH core, install or upgrade DSH, roll back DSH packages, download releases, or replace DSH files. It never installs an update and never restarts DSH on its own. It can request a safe restart only after you explicitly install a user-level service to supervise the current DSH Web process.
It shadows only the expanded sidebar brand name with DeepSeek plus a compact version chip that fits the 24px brand row, leaving the official fish mark untouched. A green dot next to the version means nothing newer is published; a breathing amber dot means at least one newer release exists — stable, release candidate or alpha. Tap the chip for the running version, one card per newer version, each with its own copy-only upgrade command, and the guarded Restart control that appears once you have installed user-level supervision.
sidebar.footer.action row is a single 36px cell above Settings, and a second registrant overflows it (it pushed a neighbouring plugin's entry off the screen edge), so the brand-row chip is the only entry.prefers-reduced-motion), so a new release reads as one small light instead of a recoloured brand row.#f1f3f5 light / #353638 dark) with the theme's normal label colour, so the dark shell gets a dark grey chip with white text rather than a white pill that hides the amber halo.0.2.2-rc.4 outranks 0.2.2-alpha.3, and a release candidate still sorts below its own stable release.@deepseek-ai/dsh-settings peer range.top: 12px, over the chrome row that drags the window. Since DSH 0.2.2-rc.2 macOS excludes only controls inside a data-window-drag row, so the panel declares its own window region (data-window-drag-exclude) and its buttons keep responding instead of starting a window drag.Requirements:
>=0.1.7-alpha.2 <0.3.0 — the range this plugin declares in dsh.engines.dsh, with the same bounds on the @deepseek-ai/dsh-settings peer. DSH refuses a bundle outside that range at profile load. The upper bound is the 0.3.0 line, so every published 0.2.x release is inside the range — including the 0.2.2 prereleases, whose newest published build is 0.2.2-rc.4. There is no per-release tested list to consult: inside the range, the plugin is not waiting for a release to be "approved".With an installed dsh command:
dsh plugin --profile web add dsh-update-status@latest
From a DeepSeek Harness source checkout:
corepack enable
pnpm install
pnpm dsh plugin --profile web add dsh-update-status@latest
Restart the existing DSH process after installation, then refresh its Web GUI. Do not start a second Web server for this plugin.
Local development link:
pnpm install --frozen-lockfile
pnpm run build
dsh plugin --profile web add "link:$(pwd)"
DeepSeek plus the current version badge.Example command on a card for a global install:
npm install -g @deepseek-ai/dsh@0.2.2-rc.4
Each card shows one command that matches the detected installation kind and names that card's exact release. The plugin does not run it. When the installation kind cannot take a package-manager command — a source checkout, for example — the panel shows that guidance once instead of a copy button on every card, rather than inventing a command.
The dot beside the version carries the whole status, and only the update state animates:
| Dot | State | Meaning |
|---|---|---|
| green circle | up to date | Nothing newer is published. The chip keeps its normal fill. |
| grey pulse | checking | A status read is in flight (first mount or Check for updates). |
| amber dot with a halo | update | At least one newer release exists. Copy a card's command, run it yourself, restart DSH. |
| chip turns red | failed read | The plugin could not determine the state: the registry read failed or two versions are not SemVer-comparable. |
The chip itself is a neutral second-level surface — grey in both themes, with the theme's own label colour — so the amber halo always reads against it, and it never changes colour to announce an update.
The plugin asks the npm registry for @deepseek-ai/dsh once per cache window, collects every published version a dist-tag points at, keeps the ones strictly newer than the running release, and lists them newest first. latest, next and alpha are npm bookkeeping, not a user choice: a newer release counts whichever tag carries it.
latest, next, alpha, beta, rc, then others.alpha ahead of the stable line is offered rather than hidden.0.2.2-rc.4 is newer than 0.2.2-alpha.3, and both sort below 0.2.2.latest tag on the package page; versions carried by other tags live on the Versions page. The panel does not copy that shortcut — it lists them.channel preference that stored it — was removed in 0.2.0.A plugin cannot restart DSH on its own: it lives inside the very process it would have to replace. So the button only works once your operating system owns that process — and every OS already ships a way to do that.
The shortest safe setup is explicit and terminal-driven:
# 1. Inspect the complete native-service plan. This writes and starts nothing.
dsh plugin --profile web exec dsh-update-status-service plan \
--workspace "$PWD" --dry-run
# 2. Stage the user-service definition. This still does not start it.
dsh plugin --profile web exec dsh-update-status-service install \
--workspace "$PWD"
# 3. Stop the terminal-started dsh web yourself, then activate the service.
dsh plugin --profile web exec dsh-update-status-service activate
activate stops if the port is still busy instead of killing anything, so the DSH you are already using is never taken down by surprise. It also checks afterwards that the service it just started really took over; a service that begins failing immediately is reported as a failure, not as a success. From then on, Restart lists what is running, asks for a second confirmation when something is, and lets DSH exit; the service starts it again and the page comes back on its own.
Only one thing may start DSH Web on that port. If another tool starts its own dsh web — a second plugin's restart helper, a nohup script — that process holds the port while your service keeps failing to start. The plugin asks your operating system which process the service really owns, so Restart stays disabled in that state instead of promising a recovery that cannot happen, and it shows the two copy-only commands that fix it: one to find whoever holds the port, one to give the service back. The generated service also stops after a few failed starts in a row rather than respawning forever, and writes the reason to its log. More detail: user-service supervision.
| Platform | User-level owner | Starts | Restart works after setup | Notes |
|---|---|---|---|---|
| macOS | launchd LaunchAgent |
at user login | Yes | First verified target; no administrator account required. |
| Linux | systemd --user |
at user login | Implemented; verify on your host | loginctl enable-linger is optional for running after logout and is never enabled automatically. The unit template is render-tested but has not been run on a real Linux host yet. |
| Windows | Task Scheduler + current-user wrapper | at user logon | Template supplied; verify on Windows before production use | No administrator account required. |
The generated service files contain absolute paths, one audited PATH, and no secrets — never your API keys, npm tokens, cookies or proxy credentials. By default install saves the PATH of the terminal that ran it, so Homebrew, MacPorts, Nix, asdf, Conda, Cargo and hand-installed tools all follow the same rule; --path-source minimal keeps a fixed environment and --service-path supplies an explicit one. plan --dry-run shows the final value and every warning before anything is written. Native files, logs, status and removal: user-service supervision. To check Linux or Windows on your own machine: platform acceptance.
A restart interrupts running work and does not save it. If DSH cannot list what is running, cannot verify that your service owns the current process, or was started by hand or by the desktop app, it refuses to restart at all — a web page cannot talk it into it.
Earlier DSH releases restricted non-loopback settings forms to memory-only state. DSH 0.2.1-rc.3 and later no longer expose that mode field in form snapshots: the official entry-addressed form calls the settings Remote directly. Do not infer current persistence or authorization from an origin check alone; the running Host's settings policy decides whether a write is accepted.
From 0.1.2 this plugin is fully usable there anyway:
connection.isLoopback === true, so a page reached through a LAN bridge (dsh-bridge, dsh-lan-proxy, …) never sent POST /api/dsh-update-status.get-status, could not open the detail panel, and showed the release this bundle was built against as if it were the running version. That gate is gone — the Connection RPC is authenticated and the Host route is the plugin's own.sidebarEnabled, cacheTtlMinutes) keep reading and writing the ONE shared Host settings entry dsh-update-status, through the same public Remote the official settings form speaks (settings.describe / settings.mutate). Writes stay revision-fenced, and a refused write surfaces as a conflict instead of a silent overwrite. The direct channel opens only when the official form reports unavailable, so a loopback page keeps the official path and pays no extra wire read.A LAN bridge must preserve DSH's authenticated transport and Host authorization policy. This plugin does not change bridge configuration or grant settings access; a Host refusal must be resolved by the deployment operator.
DSH's macOS Desktop window is dragged by the chrome rows that mark themselves data-window-drag — the conversation header, the plugin manager and Settings → Account. Up to DSH 0.2.2-rc.1 the desktop shell excluded matching interactive controls anywhere in the page; from 0.2.2-rc.2 it excludes only controls inside a drag row or a data-window-drag-controls scope, and a custom overlay that covers a drag row must declare its own region.
The panel opens at top: 12px, left: 292px, so it does cover the conversation header's drag row. It therefore carries data-window-drag-exclude on its own scrolling box — the documented migration for "an interactive viewport without nested drag rows". The exclusion covers exactly the panel: Check for updates, Release notes, Restart, the cache input and × keep responding. The full-viewport backdrop declares no region on purpose: it only closes the panel, and excluding it would make the whole frame undraggable for as long as the panel is open.
Plain Web and Windows are unaffected: they never had that automatic exclusion, and the attribute is inert there. On a DSH older than 0.2.2-rc.2 the attribute is equally harmless. No setting, stored value or command changes.
This plugin does not vouch for any DeepSeek Harness release. Loading is DSH's decision, and DSH makes it from two declarations only: dsh.engines.dsh says >=0.1.7-alpha.2 <0.3.0, and the @deepseek-ai/dsh-settings peer range says the same. Inside those bounds you can run any DSH release you like; no plugin update is needed to "allow" a newer one.
0.5.0 removed the earlier mechanism completely. There is no verified-release list, no dsh.compatibility metadata, no verified or unverified label in the panel, and no warning because a newer DSH release was untested. The plugin's job is only to say that a newer release exists and how to upgrade; keeping a compatibility ledger was out of scope, and it had produced six releases in 13 days whose headline was a declaration.
What remains is the update notice: one card per version newer than the running one, each with its own command. What the plugin knows about a release is what npm publishes — version, tag and publish date — and it says nothing about whether the release is good for you.
The 0.4.x rows in the table still mention that removed list; that is history, and no release now waits for a list entry.
| Plugin | On npm | What that version is |
|---|---|---|
0.5.2 |
latest |
Verified against DSH 0.2.2-rc.4: no plugin code change was needed, and both READMEs plus the devDependency line were brought up to that build |
0.5.1 |
published | macOS Desktop keeps responding: the panel declares its own window region (data-window-drag-exclude) after DSH 0.2.2-rc.2 narrowed drag exclusion to marked rows |
0.5.0 |
published | One card per upgradable version, each with its own copy-only command; the verified-release mechanism is removed and DSH's engine and peer ranges alone decide loading |
0.4.8 |
published | Added DSH 0.2.1-rc.4 to the then-current verified list, under the mechanism 0.5.0 removed; no functional code changed |
0.4.7 |
published | Removes the redundant settings menu; version status and update notices remain on by default, with details in the sidebar chip panel |
0.4.6 |
published | Added DSH 0.2.1-rc.3 to the then-current verified list; includes maintenance and starting terminals in restart confirmation, and restores restart-storm recovery guidance |
0.4.5 |
published | Added DSH 0.2.1-rc.2 to the then-current verified list; no functional code changed |
0.4.4 |
published | Added DSH 0.2.1-alpha.5 to the then-current verified list; no functional code changed |
0.4.3 |
published | Added DSH 0.2.1-alpha.4 to the then-current verified list; no functional code changed |
0.4.2 |
published | Added DSH 0.2.1-alpha.3 to the then-current verified list; no functional code changed |
0.4.1 |
published | The service saves the PATH used during installation, so tools installed by any package manager stay available after DSH is supervised |
0.4.0 |
published | Restart you can trust: the service stops instead of restarting forever, the button needs the service to really own the process, and a disabled button shows the two commands that recover it |
0.3.2 |
published | Documentation only: the version table and every past release note are now plain language. Behaves exactly like 0.3.1 |
0.3.1 |
published | Small polish: the panel explains Restart, and a long job name can no longer push the buttons away. |
0.3.0 |
published | Adds Restart to the panel, plus the one-command service setup it needs. Without that service the button stays disabled and says why. |
0.2.1 |
published | Hiding the version chip brings DSH’s own name and fish mark back, instead of leaving the brand row blank. |
0.2.0 |
published | One update line instead of a channel picker: the panel reports the newest published version, and there is nothing to configure. |
0.1.12 |
published | Added DSH 0.2.0-rc.2 to the then-current verified list; no code change. |
0.1.11 |
published | Declared the DSH 0.2.0 line and widened the supported range, so a newer DSH could no longer drop the plugin without a word. |
0.1.10 |
published | No more button in the collapsed sidebar rail — it did not fit there and pushed a neighbouring plugin’s icon aside. |
0.1.9 |
published | Fixes the plugin disappearing after a DSH upgrade (a leftover copy of a shared library could take it down), and the panel says which folder to delete. |
0.1.8 |
published | Added DSH 0.1.7-rc.2 to the then-current verified list; no code change. |
0.1.7 |
published | The English UI is fully English now: status messages are rendered by the browser in its own language. |
0.1.6 |
published | Adapts to DSH 0.1.7, where the plugin’s two preferences are stored as its own settings entry. |
0.1.5 |
published | One dot carries every state (green up to date, grey checking, amber for an update), and advisory notices stop recolouring the chip. |
0.1.4 |
published | Fixes the entry for the version you are running showing as unselectable. |
0.1.3 |
published | Carries the LAN-page fix and was checked on the then-current DSH 0.1.6. |
0.1.2 |
never published | Removes the loopback-only restriction, so a LAN page works too. |
0.1.1 |
published | The previous npm latest; on a LAN page the plugin does nothing. |
0.1.0 |
published | First release. |
Which version for which DSH? 0.1.6–0.1.10 were built for the DSH 0.1.7 line; 0.1.11 and later also accept the 0.2.0 line. DSH 0.1.7 changed how a plugin stores its settings, so on an older DSH — including 0.1.6-alpha.2 — stay on plugin 0.1.5.
Loadability is decided by DSH, not by a label. If a DSH release refuses to load this plugin, disable or uninstall the plugin rather than editing DSH — and please report it. There is no tested-release list any more, and no list entry to wait for.
On npm means what dsh plugin --profile web add dsh-update-status@latest actually installs. A version that exists in this repository but not on npm is a development state, not a release.
Pin a plugin version when you need to stay on one:
dsh plugin --profile web add dsh-update-status@0.5.2
dsh plugin --profile web add dsh-update-status@0.5.1
dsh plugin --profile web add dsh-update-status@0.5.0
dsh plugin --profile web add dsh-update-status@0.4.8
dsh plugin --profile web add dsh-update-status@0.4.7
dsh plugin --profile web add dsh-update-status@0.4.6
dsh plugin --profile web add dsh-update-status@0.4.5
dsh plugin --profile web add dsh-update-status@0.4.4
dsh plugin --profile web add dsh-update-status@0.4.3
dsh plugin --profile web add dsh-update-status@0.4.2
dsh plugin --profile web add dsh-update-status@0.3.2
dsh plugin --profile web add dsh-update-status@0.2.0
dsh plugin --profile web add dsh-update-status@0.1.12
dsh plugin --profile web add dsh-update-status@0.1.11
dsh plugin --profile web add dsh-update-status@0.1.10
dsh plugin --profile web add dsh-update-status@0.1.9
dsh plugin --profile web add dsh-update-status@0.1.8
dsh plugin --profile web add dsh-update-status@0.1.7
dsh plugin --profile web add dsh-update-status@0.1.6
dsh plugin --profile web add dsh-update-status@0.1.5
dsh plugin --profile web add dsh-update-status@0.1.4
dsh plugin --profile web add dsh-update-status@0.1.0
Two declarations decide whether the plugin loads at all, and DSH evaluates them at profile load:
dsh.engines.dsh and peerDependencies['@deepseek-ai/dsh-settings'] both declare >=0.1.7-alpha.2 <0.3.0. The lower bound names the alpha on purpose — under node-semver's default prerelease rule a range like >=0.1.6-0 <0.2.0 does not admit 0.1.7-alpha.2. The upper bound moved from <0.2.0 to <0.3.0 in 0.1.11 for the mirror-image reason: DSH refuses an incompatible bundle at profile load, and a plain <0.2.0 excludes the 0.2.0 stable, so the day DSH 0.2.0 shipped the plugin would have been silently dropped. DSH evaluates the range with includePrerelease: true, so 0.2.0-rc.2 was already inside it. These bounds decide loading only — they are not a claim that every release inside them was tested.@deepseek-ai/schemastery is a peer, not a plain dependency: DSH 0.1.7 resolves only a linked plugin's peer dependencies from the running installation, so a link: install of this directory would otherwise fail to import the Host half.Per-release notes — what changed, who is affected, what to do — are hand-written in Chinese and English and become the GitHub Release body: v0.5.2 · v0.5.1 · v0.5.0 · v0.4.8 · v0.4.7 · v0.4.6 · v0.4.5 · v0.4.4 · v0.4.3 · v0.4.2 · v0.4.1 · v0.4.0 · v0.3.2 · v0.3.1 · v0.3.0 · v0.2.1 · v0.2.0 · v0.1.12 · v0.1.11 · v0.1.10 · v0.1.9 · v0.1.8 · v0.1.7 · v0.1.6 · v0.1.5 · v0.1.4 · v0.1.3 (covers the never-published 0.1.2).
| Option | Default | Range / behavior |
|---|---|---|
cacheTtlMinutes |
360 |
30–1,440 minutes; expires only for the next on-demand read, never a background timer |
sidebarEnabled |
true |
Hides only this plugin's sidebar entry; the brand row falls back to DSH's own mark and wordmark |
The plugin shows version status and update notices by default after installation. Click the sidebar version chip for the running version, check result, upgrade guidance and cache-duration input. There is no separate Settings → Version & updates menu. Existing sidebarEnabled profile values remain supported; set it to true or remove the override if an older configuration hid the chip. Changing the duration does not issue a request; only a later normal read can refresh an expired cache, while Check for updates always performs an immediate manual refresh.
A cache preference is written only by your own selection in the panel. The plugin has no automatic write path — no effect, timer, or mount-time write — and tests/client/entry.spec.ts mounts the real client entry to keep it that way. On DSH 0.1.7 the two preferences above are the volatile fields of this plugin entry's Config, so they persist as that entry's config in the active profile's patch (~/.dsh/profiles/<profile>/cordis.patch.yml); edit or remove that block to reset a preference, and DSH reloads the profile on the next change. The remaining Config fields are deployment-only and never appear in the form: cacheTtlHours (default 6), timeoutMs (default 15000) and autoCheckOnMount (default true), all set in the same profile patch.
The chip shows a version that is not what I just installed, and tapping it does nothing.
That is the connection.isLoopback gate from plugin 0.1.1 and earlier: on a non-loopback page such as a LAN bridge (dsh-bridge, dsh-lan-proxy) the whole plugin goes inert and the chip shows the release this bundle was built against instead of the running one. Check what is installed and upgrade:
node -p "require(process.env.HOME + '/.dsh/profiles/web/node_modules/dsh-update-status/package.json').version" # 0.1.3 or newer
dsh plugin --profile web add dsh-update-status@latest
The chip turned red right after I upgraded DSH.
On 0.1.5 and newer a red chip means one thing: the plugin could not determine the update state — the registry read failed, or two versions are not SemVer-comparable. Up to 0.1.4 the rule was broader: the client treated any warning as a problem, so a DSH release newer than the plugin's list painted the chip red even though the read had succeeded. 0.1.5 splits the two — failure still repaints, an advisory stays in the panel. 0.5.0 removes that advisory altogether, so a newer DSH release can no longer produce one:
dsh plugin --profile web add dsh-update-status@latest
No card appears even though I know a newer DSH exists. The list is built from npm's published versions at the moment of the check, compared with the version this page reports as running. Press Check for updates for a fresh read. If a release is only tagged in a registry the plugin cannot see, or the running version is already the highest one published, there is nothing to show — and no card is the correct answer.
The version never changes.
The Host caches one registry response, 360 minutes by default, and only a normal read can expire it. Press Check for updates for an immediate refresh, or lower cacheTtlMinutes. A failed check keeps the last good cache and shows the warning next to the version.
Nothing reaches the npm registry.
The plugin reports the failure and still shows the locally detected running version. Registry access is HTTPS-only to registry.npmjs.org; a proxy or offline host produces that warning rather than a wrong version.
The plugin disappeared after an upgrade, and the host log says volatile is not a function.
Up to 0.1.5 this plugin declared @deepseek-ai/schemastery as a regular dependency. From 0.1.6 it is a peer that DSH provides, and the volatile() DSH adds to it is what turns the two preferences into this entry's settings form. If a copy of that package is left inside the plugin's own install directory — a dev node_modules copied in by a local-directory install, which pnpm never removes — Node used to resolve that stale copy, and the missing method threw while the host half was being imported, so the plugin disappeared before it could report anything at all. Newer builds resolve the platform copy explicitly and load either way, and when only a stale copy is reachable the panel shows a stale-schemastery notice naming the directory. Remove the leftover copy and restart DSH:
rm -rf ~/.dsh/profiles/<profile>/node_modules/dsh-update-status/node_modules
registry.npmjs.org; redirects are rejected.canApplyInPlace is always false.dsh plugin --profile web remove dsh-update-status
Restart DSH and refresh the Web GUI. Uninstalling does not delete the preferences: to wipe them, remove the dsh-update-status entry's config block from the active profile's cordis.patch.yml.
pnpm install --frozen-lockfile
pnpm run test
pnpm run build
pnpm pack --dry-run
Release tags use npm Trusted Publishing with GitHub OIDC. See docs/RELEASING.md to configure npm’s Trusted Publisher once, then push a matching vX.Y.Z tag; no long-lived npm token is stored in this repository.
MIT. See LICENSE.
CLASSIFICATION EVIDENCE
系统优先读取 GitHub Topics,再与站内分类词典和词根规则比对。当前命中: deepseek-harness。