dsh-update-center: Managing DSH Versions and Plugin Integrity in Web Settings

Introduction

DeepSeek Harness (DSH) extends its Web interface and Host capabilities through Cordis plugins. When using @deepseek-ai/dsh daily, versions are often scattered across npm in the terminal, the global installation directory, and old processes still running in memory; if you do not restart after installing a new version, the page’s behavior and the package on disk can easily mismatch. The community plugin dsh-update-center (GitHub: Yara2090/dsh-update-center) adds an “Updates & Version” page to the Web settings panel, consolidating current version, new version registry, one-click installation, plugin integrity self-check and repair, and service stop into a single location.

What is this

dsh-update-center is published by maintainer Yara2090 and categorized as a Client plugin in the SkillHub directory. It is a dual Host + Client implementation for DSH Cordis: pure JavaScript, ESM, no build step, no runtime dependencies; the browser half only imports react from the host module table.

In one sentence: it provides an “Updates & Version” settings page for the DeepSeek Harness Web GUI—reading the local @deepseek-ai/dsh version, querying the npm registry by optional channel, installing new versions to the same global prefix, and performing integrity checks and safe one-click repairs on the plugin itself.

Core Features

Version & Updates

  • Displays both “Installed” and “Latest” versions, switchable between Stable / Preview channels.
  • Supports “Check Now” and “Update Now”; automatically detects new versions approximately every 6 hours by default (frequency and toggle are adjustable on the page).
  • When installed to disk but not restarted, the page displays “Installed” and “Running” versions side-by-side to avoid the misconception that the update has taken effect.
  • If the installed version cannot be located or the registry does not return the selected tag, it shows a clear status or error instead of falsely reporting “Up to date”; if running a pre-release locally and the registry latest is older, it determines “No updates” (no automatic downgrade).

Installation Progress

One-click update uses the global install command; the progress bar is in an indeterminate state (npm does not provide a total amount). The page displays real signals: elapsed time, number of packages fetched, and download bytes and speed based on cache directory statistics in npm scenarios; if there is no output for a long time, it explains that npm may be silent in pipe mode rather than pretending everything is normal.

Integrity Check & One-Click Repair

Upon entering the page, a read-only self-check automatically runs, totaling 10 items, covering plugin files, manifest, source dependencies, browser half, profile registration and node_modules links, preference JSON, DSH home directory writability, Node ≥ 20, and ability to locate global @deepseek-ai/dsh. Items like profile registration, links, preference files, and home directory support “One-Click Repair”: it writes a .bak backup with the same name before repairing, only filling in missing parts without deleting existing user content.

Auto-Detection & Auto-Installation

Auto-detection can be toggled on the page, with frequencies of 1 / 6 / 12 / 24 hours; auto-install is disabled by default, and a risk warning is displayed when enabled.

Runtime Control

Provides “Stop Harness” (requires double confirmation). The page clarifies: closing the browser tab will not stop the service. The stop action calls stop-deepseek-harness.ps1 placed by the installer under <DSH_HOME>, consistent with the desktop shortcut behavior; stopping is rejected during installation (HTTP 409).

Security Boundary

Routes that modify global npm packages only accept loopback addresses; non-loopback requests return 403.

Installation & Activation

Prerequisites: Node ≥ 20, and DeepSeek Harness is installed. The package version in the current plugin metadata is 1.6.4, License MIT.

Method 1: Manually add to web profile

First place the plugin directory on your local path (e.g., C:\dsh\dsh-update-center), then execute:

dsh plugin --profile web add "file:C:\dsh\dsh-update-center"

Next, edit ~/.dsh/profiles/web/package.json and add a line to dsh.profile.bundles:

"@local/dsh-update-center"

dsh plugin add only installs dependencies; it does not automatically write to the bundle list. Without this step, “Updates & Version” will not appear in Settings. Finally, restart Harness and open Settings → Updates & Version (navigation order is after “Models” and before “Plugins”).

Method 2: Install via Harness Chat

Send the following in the Harness dialogue box:

Install https://github.com/Yara2090/dsh-update-center as a plugin

DSH will clone, install dependencies, and write to the profile’s bundle list; simply restart once as prompted.

FAQ

Phenomenon Solution
“Updates & Version” not found in Settings Check if dsh.profile.bundles includes @local/dsh-update-center
Card reports error Use “One-Click Repair”; parts that cannot be automatically fixed will be explained
Browser on remote machine cannot open related capabilities Disk writes and sensitive routes are only open to local loopback
Prompt saying dsh not found Run npm i -g @deepseek-ai/dsh first

Typical Usage

  1. After installing and writing to the bundle, restart and enter Settings → Updates & Version.
  2. In the “Version Info” card, select the update channel and click “Check Now” to confirm the latest version; if needed, click “Update Now” and observe the command, real-time output, and progress signals in the installation card.
  3. After the update is complete, if “Running” still shows the old version, restart Harness as prompted by the page before confirming.
  4. If the page behaves abnormally or the plugin is not loaded, check the 10 items in “Integrity Check” and click “One-Click Repair” if necessary.
  5. Enable periodic detection in “Auto-Detection” as needed; only enable auto-install after understanding the risks.
  6. When needing to stop the service, double-confirm “Stop Harness” in “Runtime Control” and close the tab as prompted by the overlay (browser may require manual Ctrl+W).

Preferences are written to <DSH_HOME>/dsh-update-center.json (channel, auto-detection, auto-install, frequency, etc.).

Uninstall

  1. Remove "@local/dsh-update-center" from dsh.profile.bundles in ~/.dsh/profiles/web/package.json.
  2. Run dsh plugin --profile web remove @local/dsh-update-center.
  3. Restart Harness.

<DSH_HOME>/dsh-update-center.json can be kept or deleted. The plugin does not modify Harness core files; if “One-Click Repair” was used, it may have touched the profile manifest, links, and preference files, leaving .bak backups.

Use Cases & Notes

Suitable for developers who use DSH locally for long-term work and want to unify version viewing, updating of @deepseek-ai/dsh, and troubleshooting of web profile plugin links and bundle registration issues via the Web interface.

The plugin’s Host half runs with the permissions of the current DSH process, and one-click updates execute global package manager installations; you should read the GitHub Repository source code and MIT license before installation, and use it in a trusted environment. The Directory Page on SkillHub is a community collection and has no official affiliation with DeepSeek / High-Flyer; the DSH ecosystem emphasizes “Everything is a plugin”, and this article introduces a community-maintained client plugin (the repository star count in directory clues is 0, subject to real-time display on each site).

Conclusion

dsh-update-center centralizes DSH version information, registry detection, global installation, plugin self-check and repair, and service stop into the “Updates & Version” settings page, reducing the need to switch back and forth between the terminal and desktop shortcuts. For further information and to submit issues, see GitHub: Yara2090/dsh-update-center, and for the plugin index, see the SkillHub Directory Page.

羽毛球分组比赛记分
小程序二维码

欢迎使用《羽毛球分组比赛记分》微信小程序

Xiaoye