READMESource: main@fc878ee7
Plugin update manager
Checks every plugin installed from an npm registry in the current dsh profile and updates the selected ones in one pass, with summarized release notes for each newer version.
Compatible with: dsh 0.2.3
Install
Replace web with the profile you run:
dsh plugin --profile web add github:suiy-2021/dsh-plugin-update-manager
From a local checkout:
dsh plugin --profile web add /path/to/dsh-plugin-update-manager
After the install, Plugin updates appears as a tab on the Plugins page.
What it does
- Lists every third-party plugin installed from an npm registry in the current profile and checks each for a newer release.
- Tick single rows, select all, then use Update selected or Update all.
- When a newer version exists, an OpenAI-compatible model API fetches and summarizes its release notes and shows the summary under that plugin.
- Each row reports its outcome, whether dsh needs a restart, and why a failure happened.
Compatibility
Compatible with: dsh 0.2.3package.jsondeclaresengines.dsh: ^0.2.3-alpha.3; a host outside that range refuses to install or start this bundle.- Verified against dsh 0.2.3-alpha.3 with the Web profile.
- It contributes a
plugins.tabentry through thepluginManagerRemote, so it needs a Web composition such as@deepseek-ai/dsh-web-app.
Release summaries
Summaries are optional and configured inside the tab:
- Endpoint, model, and API key of any HTTPS OpenAI-compatible API; loopback and private addresses are rejected.
- Without a custom key, the environment's
DEEPSEEK_API_KEYis used forhttps://api.deepseek.comonly. - Test verifies the settings before you rely on them, and a custom key can be cleared at any time.
The key never leaves the Host: only a masked preview and its source are shown.
Security and privacy
- No secret is stored in this repository. The summarizer key lives in the Host credential store and is never returned to the page, only a masked preview and its source.
- The custom endpoint must be
https:and must not point at a loopback or private address. A plainhttp:endpoint is rejected because the bearer key would cross the wire in clear text. - Release-note text fetched from npm and GitHub is sent only to the endpoint you configure.
- The Host writes only non-secret settings (
enabled,baseUrl,model,apiKeyRef) todsh-update-manager.jsonin the profile directory and deletes no files. - Every route is owner-only, responses are
no-store, and requests are bounded (15 s registry/GitHub fetches, 60 s model calls, size caps).
Scope and limits
- Registry installs only. Bundles shipped with dsh and plugins installed from Git, a local directory, or an archive are not listed.
- The plugin never updates itself.
- When pnpm refuses to run a package's build script, allow it in the profile as pnpm suggests, then retry.
Development
npm run check # syntax + undeclared-identifier check + Host unit tests
npm test
Documentation
- docs/DETAIL.md - English detail page
- docs/DETAIL.zh.md - Chinese detail page
License
MIT
No comments yet. Be the first to write one.