Introduction¶
When maintaining a batch of plugins in DSH, checking “whether an update is available” often requires a daily glance. The official plugin list only marks “Update Available” on the card. To truly select a version, view the changelog, and click update, one must go to the details page and repeat the steps. For users accustomed to toggling plugins in the list, this step is split into “Discover → Enter Details → Re-operate”.
Below is the client plugin dsh-plugin-update-entry released by maintainer createjy (GitHub: createjy/dsh-plugin-update-entry): It adds an “Update” entry to the left of the toggle on every updateable plugin card. The version list and detail page share the same source; hovering allows viewing the Release notes for each version, and supports “One-click Update” on the toolbar. The update flow still calls Host’s built-in pluginManager/updateBundle and does not replace the official installation and rollback logic.
What is it¶
- Type: DSH Client plugin;
index.jsis a Host-side empty implementation, logic resides inclient.js. - Compatibility:
engines.dsh = ^0.2.2-rc.1(i.e.,>=0.2.2-rc.1 <0.3.0). The author verified card DOM and interfaces likelistVersions/updateBundle/listBundleson versions 0.2.2-rc.1 through rc.3. - Current Version (package.json): 1.0.1, License MIT.
It does not modify the official detail page behavior, only supplements UI at the list level: entries only appear on cards with an “Update Available” badge and that are not official built-in bundles (official: true).
Core Features¶
Update Entry on Card¶
Cards with an “Update Available” badge get an “Update” button to the left of the right-side toggle (height 22px, aligned with the toggle to avoid list row height jumping). Clicking the popover lists versions newer than the installed version, with new ones first; the count is limited by Host’s versionListLimit.
Version rows will annotate release date, pre-release status, deprecation, required higher DSH version, and non-bundle declarations; un-installable rows turn gray and explain the reason; the first installable version is selected by default. The popover right-aligns to the toggle column, flipping to above the card if space is insufficient. The list uses role="listbox", supporting keyboard navigation and Esc to close layers.
Hover to View Update Notes¶
After hovering over a version row for approximately 140ms, the description pops up on the left. Data comes from the corresponding package’s GitHub Releases (matched by tag semantic versioning). If the Release cannot be read, it falls back to version metadata (version, date, tags, etc.) and does not fabricate the body. When the GitHub API rate limits (403/429), this session stops requesting that repository, and hovering directly displays metadata.
In-place Confirmation and Official Update Status¶
After selecting a version, confirmation is completed in-place on the card (sample text):
将从 0.9.37 更新到 0.9.43,期间插件可能短暂停止。
安装失败时会保留或重新安装 0.9.37。
After confirmation, the button enters an active state. Step text follows Host’s plugin-manager/update-state (Check → Stop and Remove → Install → Reinstall). The outcome is consistent with the official (Updated, requires restart to take effect, cannot update, rolled back to old version, etc.); on failure, you can expand “View Installation Output” to see installer logs.
Toolbar “One-click Update”¶
When the official toolbar displays “N plugins available for update”, “One-click Update” appears next to it. The list data comes from pluginManager/listBundles, sharing the same source as the official refresh. Each row displays the package name, current version, and target version; it can be expanded to change the target version, following the same rules as a single card.
When clicking “Update N”, it updates sequentially by list order (only one write operation at a time). The panel displays progress row by row, summarizing success, failure, and skip at the bottom; “Stop” is supported mid-process. Entries not returned by the registry are not placeholders; rows with failed version reads show “Retry”. Before batch updating, a read is attempted to avoid treating “not read” as “no update”.
Installation and Enabling¶
In the DSH plugin page, click “Add Plugin” and enter the package name:
dsh-plugin-update-entry
Alternatively, install the tarball attached to the Release (byte-for-byte identical to the npm package, the v1.0.1 address given in the README):
https://github.com/createjy/dsh-plugin-update-entry/releases/download/v1.0.1/dsh-plugin-update-entry-1.0.1.tgz
After installation, the plugin list gains an item “Plugin Update Entry”, enabled by default. After disabling this bundle, the injected buttons and popovers are removed, and the page restores its original state. It only takes effect on the Client side; no need to restart the Host backend.
The README mentions that dsh-plugin-update-entry can be searched in “Plugin Market → Discover”. As of the document record (2026-11-15), the upstream directory has not fully synced to the new repository address due to the maintainer’s GitHub account rename (creatjy → createjy). If the market does not show the new path, you can use the package name or tarball above directly. To verify the listing, you can run:
node ~/.dsh/lazy-toolbox/skills/dsh-plugin-open-source/scripts/check-listing.mjs createjy/dsh-plugin-update-entry --json --timeout 25000
Typical Usage¶
- Open the DSH plugin page and browse the list of cards with “Update Available”.
- Click “Update” to the left of the card’s toggle, select the target version in the popover; if you need to see changes, hover over the version row to read the Release notes.
- Confirm the in-place update and wait for the steps to complete. If the toolbar indicates multiple plugins are updateable, use “One-click Update” to batch process and handle failed items based on the panel summary.
Downgrade installation is not supported; it only handles versions newer than the currently installed version.
Applicable Scenarios and Notes¶
Suitable for: DSH Desktop or Web users who frequently toggle plugins on the overview page and want to select versions and update without frequently entering the details page.
Permissions and Security: The plugin runs with the current DSH process permissions and initiates read/write operations via Host’s pluginManager. It is recommended to read the repository source code and the MIT license before installing. It does not collect or report usage data. Release notes are cached in sessionStorage for about 20 minutes, and version metadata query results are cached for about 10 minutes. Queries only occur when the popover is opened; no bulk prefetching is done during page load.
Known Limitations (README boundary table):
- Update notes depend on GitHub Releases. If the CHANGELOG or release body is not written, only metadata is visible.
- Not logged into GitHub API results in approximately 60 requests per hour per exit IP. Hover triggers requests, which is usually sufficient for normal use.
- In cases without an “Update Available” badge, official built-in packages, network errors, etc., the entry does not appear or shows “Retry”, and does not cache failure intent outside of error status.
Community directories (such as skillhub.cn) are independent ecosystem sites and have no official affiliation with DeepSeek / Huafan. This introduction is based on the repository README and package.json.
Conclusion¶
dsh-plugin-update-entry puts “Update” back at the position you would naturally click on the list card: same-source version data, same-source Host update interface, plus in-place selection and note reading, plus an optional batch entry.
- Directory page: https://www.skillhub.cn/plugins/createjy/dsh-plugin-update-entry
- Source code and readme: https://github.com/createjy/dsh-plugin-update-entry