Introduction¶
When running the Web client and plugins in DeepSeek Harness (DSH), managing the version of the core package @deepseek-ai/dsh often requires manually checking npm, followed by upgrades and restarts. Furthermore, if an upgrade does not match the peer dependencies of installed plugins, it may prevent the service from starting. The community plugin dsh-upgrade (Maintainer: wonaren, Category: Workflow) consolidates version comparison, stable/alpha channel routing, pre-upgrade backups, plugin compatibility pre-checks, service restarts, and frontend heartbeat reconnection into a sidebar entry point, targeting developers performing daily maintenance on DSH.
What is this¶
dsh-upgrade is a DSH plugin published on npm (package.json version 1.1.0 in current materials, MIT license, requiring DSH >=0.1.0). It integrates with the Web platform via a Cordis patch, performing version queries, npm upgrades, and service restarts on the Host side, while providing a React modal and a sidebar footer toolbar (sidebar.footer.action) entry point on the Client side.
Directory Page: SkillHub - wonaren/dsh-upgrade
Source Code & Documentation: GitHub - wonaren/dsh-upgrade
Core Features¶
The following capabilities are derived from the project README and package.json descriptions.
Multi-source Version Comparison¶
Automatically compares the locally installed @deepseek-ai/dsh with the latest remote version; queries prioritize the domestic npmmirror and fall back to the official npmjs if that fails.
Multi-channel Routing¶
- Stable (Latest): Recommended for daily use; displays a blue “New Version Available” badge in the UI when a new stable version is available.
- Alpha (Early Access): Detects preview versions such as
0.2.1-alpha.x; displays a green “Alpha Update Available” badge when an update is present. - Historical Versions: Allows browsing history and rolling back to a specified version if needed.
Pre-upgrade Backup¶
Before each upgrade, the current user’s ~/.dsh/profiles/web is packaged as a .tgz file and written to the system temporary directory for easy restoration later.
Plugin Compatibility Pre-check¶
Analyzes the peerDependencies of installed plugins against the target DSH version before upgrading; lists unadapted plugins and conflicting dependencies in a modal. During the upgrade process, incompatible plugins are temporarily disabled from the startup list (user configurations and code are preserved) to prevent the new version from failing to start due to old plugins. These can be re-enabled once the plugins release compatible versions.
Service Restart & Frontend Recovery¶
Provides a “Restart Service” button within the modal, featuring a secondary confirmation and impact description. After a restart or upgrade, the frontend detects service readiness via heartbeat polling and automatically refreshes the page once recovery is confirmed.
Installation & Activation¶
The plugin has been published to npm and npmmirror and can be installed via the DSH Web interface or CLI. Installation commands are based on the original README.
Method 1: Web Interface (Recommended)¶
- Open the DSH Web client (e.g.,
http://127.0.0.1:3080). - Navigate to Settings → Plugin Management → Add Plugin.
- Enter the following in the package name input field:
dsh-upgrade
- Click Install. Once installed successfully, restart the background service to activate the plugin.
Method 2: CLI¶
Execute in the terminal:
# Install directly from npm official or domestic mirror sources (Recommended)
dsh plugin --profile web add dsh-upgrade
# Or install directly from the GitHub repository source
dsh plugin --profile web add github:wonaren/dsh-upgrade
The README provides the following example for restarting the background service on macOS:
launchctl kickstart -k gui/$(id -u)/com.deepseek.dsh.web
You can also use “Restart Service” within the plugin modal. For non-macOS environments, please refer to your local DSH deployment documentation for the correct restart method.
Typical Usage¶
After installation and service restart, locate the upgrade entry in the Web sidebar footer toolbar and open the modal:
- View the differences between the current DSH and remote stable/alpha versions, along with badge notifications.
- Select a stable upgrade, alpha trial, or historical rollback as needed; the profile will be automatically backed up before the upgrade.
- Review the compatibility pre-check results and confirm that temporarily incompatible plugins will be disabled.
- After the upgrade is complete, trigger “Restart Service” in the modal and wait for the heartbeat detection to finish; the page will refresh automatically.
Host logic is located in lib/index.js (version query, npm upgrade, restart execution), and UI logic is in lib/client.js (modal, entry point, heartbeat reconnection).
Scenarios & Notes¶
Target Audience: Developers who maintain DSH Web profiles locally or on single machines, need to keep up with @deepseek-ai/dsh stable or Alpha releases, and wish to minimize the risk of “service failure after upgrade.”
Permissions & Security: The plugin executes npm upgrades, reads/writes profiles, and triggers service restarts under the DSH process privileges. Before installation, you should review the GitHub Repository source code and MIT license to ensure compliance with your environment policies.
Ecosystem Note: The DSH community plugin directory (such as SkillHub) is an independent site and has no official affiliation with DeepSeek / High-Flyer. The star count for this plugin in directory leads is 0; when selecting, rely on the repository README and npm page.
Conclusion¶
dsh-upgrade ties DSH version detection, multi-channel upgrading, profile snapshots, plugin compatibility protection, and service restarts into a repeatable workflow, with the entry point centralized in the Web sidebar. For further details, see the SkillHub Directory Page and the GitHub README.