Introduction¶
After installing DeepSeek Harness (dsh) globally via npm, the version iterates with the releases of @deepseek-ai/dsh. Usually, to check if you are running an outdated version, you have to open a browser to check GitHub Releases and compare it with the output of dsh --version in the terminal. When upgrading, you also need to manually construct the npm install -g --prefix … command and registry parameters. If you primarily use dsh web for daily configuration and wish to “view version, view changelog, and get upgrade commands” all within the settings page—without forcing the plugin to reinstall itself within the web process (which causes issues on Windows where running binaries are locked)—you can install a network-dependent plugin like dsh-updater that only checks and provides commands.
What is this?¶
dsh-updater (npm package name @deepseek-ai/dsh-updater) is a community-maintained DSH plugin maintained by pomelotea-yuzu and categorized as a Network Tool in the plugin directory. It adds an “Update” section at the end of the left-hand navigation in the web settings panel. It displays the currently installed version versus the latest version on GitHub Releases, the check time and status, a summary of the update notes for recent versions, and provides a link to the Release page along with a one-click copy upgrade command feature. It only checks, does not auto-install—after copying the command, you must manually execute the npm reinstall in the terminal after exiting dsh web.
Core Features¶
The following describes the capabilities explicitly listed in the plugin’s documentation.
Settings Panel “Update” Section¶
- The last item in the left navigation (order 20, ↑ arrow icon).
- Displays: Current version / Latest version / Check time / Status (Up to date, Update available, Check failed) / Recent version update notes / “Open Release Page” button.
- When a new version is detected, it shows an upgrade command card and a “Copy Update Command” button. The command is generated based on the actual installation directory, formatted as:
npm install -g --prefix <installation directory> @deepseek-ai/dsh@latest --registry …
- rc pre-release versions are also considered “update available” during comparison (documentation notes that DSH releases are currently mostly rc).
Check Timing and Caching¶
- A silent background check is performed once on the host side when the application starts; the host’s memory cache acts as a fallback to avoid redundant requests to GitHub.
- The “Check for Updates” button in the panel forces a refresh (corresponding to the check interface with
force).
Host-side Data Flow (for understanding behavior)¶
The “Update” section in the settings page interacts with the host via GET /dsh-updater/status (or /check?force=1). The host-side steps are roughly:
- Current Version: Read from the
package.jsonlocated in the parent directory of the dsh CLI’sbin.js(same source asdsh --version; falls back toimport.meta.resolveor adsh --versionsubprocess on failure). - Installation Directory: Derived by traversing up from the
bin.jspath, used to generate thenpm --prefixupgrade command. - Latest Version: Requests the GitHub Releases API (
https://api.github.com, only this official source); on failure, falls back to anode --use-system-casubprocess, orcurl.exe(schannel) on Windows. - Strips the
dsh-vprefix and compares using npm semver rules (rc counts as an update). - Results are cached in memory for 10 minutes (Unauthenticated GitHub API rate limit is approx. 60 requests/hour/IP).
Installation and Activation¶
The installation command follows the repository’s README (the example uses a local link path; replace it with your local plugin directory):
dsh plugin --profile web add "link:D:\dsh_plugin\dsh-updater"
Restart dsh web after installation to take effect. If only the plugin’s client-side was changed, a hard refresh (Ctrl+Shift+R) in the browser is sufficient.
Typical Usage¶
Daily Version Check¶
- Start
dsh web, open the settings page, and navigate to the “Update” section. - View the current version, latest version, and status; click “Check for Updates” to force a refresh if needed.
- If a new version exists, read the update summary, and click “Open Release Page” for details.
Upgrading DSH (Copy Command and Manual Execution)¶
- Close the running
dsh web. - Execute the npm command copied from the “Update” section in a new terminal (reinstalling to the original
--prefixdirectory). - Run
dsh --versionto confirm the new version, then startdsh web.
The documentation explains the reason for not implementing “one-click install”: On Windows, npm global reinstall requires replacing the dsh files currently in use. Since the web process occupies these files, you must exit the web interface before upgrading. This is a platform limitation, not a plugin oversight.
Configuration¶
You can override plugin configuration in the profile’s cordis.patch.yml (default values are generally sufficient):
- id: dsh-updater
config:
timeoutMs: 10000 # GitHub request timeout (milliseconds)
cacheMs: 600000 # Check result cache duration (milliseconds)
Scenarios and Notes¶
Who it’s for: Developers who use dsh web for long-term Harness configuration, want to minimize switching windows to check GitHub, and are willing to control their own upgrade rhythm (stop web, then run npm).
Please be aware before use:
- The plugin runs with current dsh process privileges and fetches Release information from GitHub; it is recommended to read the source code and the MIT license (see repository) before installation.
- Community plugin directories (SkillHub, etc.) have no official affiliation with DeepSeek / High-Flyer and are not official app stores.
- The installation example in the repository README uses a
link:local path; when obtaining an installation method consistent with your environment from a directory page or GitHub, please refer to the current instructions on that page/README.
Conclusion¶
dsh-updater consolidates “current vs. latest version, changelog summary, Release links, and upgrade commands generated by installation directory” into the “Update” section of the web settings. It performs silent checks on startup, supports manual forced refresh, and explicitly does not auto-install. If you agree with the division of labor where “checking is in the panel, installation is in the terminal,” you can install it according to the README and use it with the copy command in your upgrade workflow.
- Plugin Directory Page: https://www.skillhub.cn/plugins/pomelotea-yuzu/dsh-updater
- GitHub: https://github.com/pomelotea-yuzu/dsh-updater