Foreword¶
As more plugins are added to DeepSeek Harness (DSH), “updating one by one in the store” easily hits desktop restrictions: running bundles cannot be removed before being reinstalled, leading to errors like “this plugin is in use and cannot be removed by the desktop client right now” (bundle-in-use) in the logs. Another trouble is: some plugins only modify the installed version in node_modules but the profile manifest doesn’t keep up, so the interface keeps prompting for a new version.
Below is an introduction to the community-maintained client-side plugin dsh-update-hub (maintainer YONAN1269, npm package name dsh-update-hub, current docs version 0.1.0, MIT). It provides a persistent entry in the sidebar and a pending update badge, uses pnpm install-side to update dependencies, and supports startup checks, periodic checks, and optional idle auto-updates. The plugin is categorized as Client; the GitHub repository star count on the directory page displays as 0.
What is it¶
dsh-update-hub targets plugin dependencies declared in the DSH desktop profile that come from the registry: it compares the disk-installed version with the latest version on the registry, lists updatable items, supports installing single or all at once, and aligns the manifest with the disk. It does not replace the host’s control over enabling/disabling bundles, nor does it handle non-registry sources like link:, file:, workspace:, or git.
Two specific problems it solves¶
Installing a plugin in use via the store path¶
The store update process usually involves removing the old package first and then installing the new one. The desktop client does not allow removing a running plugin, so it returns bundle-in-use. This plugin takes a different approach: it executes pnpm add <package-name>@<exact-version> --save-exact in the profile directory, performing only an installation without removal, so plugins currently in use can still be installed.
Still repeatedly prompting for new versions after update¶
If a self-update only modifies node_modules without advancing the profile manifest, and comparison relies on the manifest, it will result in a false positive. This plugin reads node_modules/<package>/package.json from the disk during comparison; --save-exact advances the manifest in the same step. When the manifest and disk are inconsistent, the panel adds an “Align” action to write the declared version to the actual version on the disk.
Core Features¶
Interface and Entry Points¶
| Location | Function |
|---|---|
Sidebar (sidebar.panellist) |
Persistent icon; number badge in top-right when updates are available; pulsing hint in bottom-right during installation |
Main Area (main) |
Full page when icon is clicked: list, progress, single/all updates, automation settings |
Plugin Details Page (plugins.bundle.config) |
Same panel, summary row showing pending update count |
Progress is displayed as a real ratio (e.g., 2/5) rather than a fake progress bar; a single package typically takes about 3–30 seconds.
Automation (Defaults and Safety Boundaries)¶
| Setting | Default (Docs) | Behavior Summary |
|---|---|---|
| Startup Check | On | Checks registry ~15s after opening DSH; no repeat check if restarted within the last hour |
| Periodic Check | 12 hours | Checks at intervals while DSH is running; 10-min backoff on failure |
| Idle Auto Update | Off | Automatically installs pending updates when the “idle” criteria are met |
| Auto Rebuild After Idle Update | On | Refreshes the interface after installation to make client-side plugins effective |
The “idle” criteria are conservative: the host has been running for more than 5 minutes, received a UI heartbeat, has not received a “visible and user-operated” heartbeat for a set duration, and the window is currently not visible. Idle auto-update is not performed when the window is in the foreground; auto-rebuilding the interface also only executes when the window is not visible. It is hard to distinguish between “streaming output in the foreground” and “user walked away” on the host side. If you want to update in the background, you need to switch away or minimize the window.
Behavior Details (Excerpt)¶
- Runs only one task at a time; repeated triggers during busy periods are rejected (
busy), not queued. - Success/failure is counted independently per task; verifies disk version after installation; exit code 0 does not count as success.
- Check results are cached for 6 hours by default; “Re-check” bypasses the cache.
- Task timeout is 15 minutes, which terminates the entire process tree.
- Does not automatically kill the host, spawn processes, or create scheduled tasks: client-side plugins take effect via “Rebuild Interface”; plugins that modify host-side entry class files only take effect after restarting DSH.
Configuration and data paths (Docs):
* Settings: ~/.dsh/dsh-update-hub/settings.json
* Cache: latest-cache.json in the same directory
* Client Diagnostics: client-diag.ndjson (written on state changes, max 40 entries per page)
HTTP route prefix is /_dsh/dsh-update-hub, authentication uses connection.requestRejection. Common endpoints include state, check, run, cancel, align, heartbeat, settings, diag (see repository README for details).
pnpm location can be overridden via environment variables DSH_UPDATE_HUB_PNPM (pointing to pnpm.cjs) or DSH_APP_ROOT; profile and data directories can use DSH_PROFILE_DIR / DSH_HOME.
Installation and Enabling¶
The public package is on npm: dsh-update-hub; source code: GitHub YONAN1269/dsh-update-hub.
Execute in the desktop profile directory (recommended method, commands from README):
cd ~/.dsh/profiles/desktop
pnpm add dsh-update-hub
cordis.patch.yml registers the bundle. If dsh.profile.bundles in package.json does not contain dsh-update-hub, you need to manually add a line. Restart DSH once to add it to the startup list; thereafter, changes to client-side code can take effect via “Rebuild Interface” on the panel.
For local development, link installation is possible:
pnpm add "dsh-update-hub@link:<本目录>"
Similarly, ensure there is a corresponding entry in dsh.profile.bundles.
Typical Usage¶
- After installing and restarting DSH, check if the badge on the sidebar icon shows the number of pending updates.
- Open the panel and use “Re-check” to fetch the latest registry information (bypassing the 6-hour cache).
- Click “Update” on a single line, or “Update All” for batch processing; click “Align” when the manifest and disk are inconsistent.
- Toggle startup check, periodic interval, and idle auto-update as needed in “Automation”; if you need to automatically install packages in the background, ensure the window is not visible and understand the idle criteria.
- Use “Rebuild Interface” after updating client-side plugins; if host-side plugins require a restart to take effect, the panel will not pretend they are already active.
Applicable Scenarios and Notes¶
Who is it for: Developers who maintain a large number of DSH community plugins under a desktop profile for a long time and frequently encounter store bundle-in-use errors or manifest/disk version drift.
Boundaries: Only handles registry dependencies declared in package.json; does not modify the enabling strategy of dsh.profile.bundles.
Security and Permissions: The plugin executes pnpm and reads/writes the profile under the current DSH process permissions. Before installing, please review the source code and license yourself to ensure it meets your environment and compliance requirements. The DSH community plugin directory is the independent site SkillHub, which has no official affiliation with DeepSeek or High-Flyer, and should not be referred to as an “official app store”.
Conclusion¶
dsh-update-hub brings “check version, install packages, align manifests, and automated checks” into a sidebar client: it uses pnpm install-side to bypass the restriction of removing bundles that are in use, and uses the disk-installed version for comparison to avoid false positive update prompts. For introduction and categorization, see the SkillHub directory page; for implementation details and APIs, refer to the GitHub repository README.