dsh-third-party-plugins-manage
Đã xác minhdsh-third-party-plugins-manage · v0.2.1 · MIT · Giao diện web
DeepSeek Harness profile bundle: a 第三方插件 (third-party plugins) management tab in Settings → Plugins, listing plugins installed under the profile's node_modules with enable/disable, npm-update detection, and delete actions.
Cài đặt
dsh plugin add dsh-third-party-plugins-manage Xác nhận layer đã áp bằng dsh --profile default --dump-config — xem hướng dẫn cài plugin.
Mã nguồn
Phát hành lên npm mà không có repository công khai. Hãy kiểm tra nội dung package trước khi cài.
Thẻ
Readme
dsh-third-party-plugins-manage
A DeepSeek Harness profile bundle that adds a 第三方插件 (Third-party plugins) tab to Settings → Plugins. It lists the plugins installed under the web profile's node_modules (i.e. the profile manifest dependencies, everything outside the official @deepseek-ai/dsh-* set) and offers three actions per plugin:
- 启/停用 (enable/disable) — written through the profile patch layer (
cordis.patch.yml, a{ id, disabled: true }entry per loader row id). The boot HMR watcher re-applies the patch layer, so toggling takes effect live, without restartingdsh web. - 删除 (delete) — rewrites the profile manifest (removes the dependency and its bundle entry) and deletes the package directory from
node_modules. Adsh webrestart completes the unload. - 更新 (update) — on each list load, checks the npm registry for the latest version of registry-sourced plugins and shows a green, clickable 更新 button when an update is available; clicking it runs
pnpm add <name>@<version>in the profile. Adsh webrestart activates the new version.
How it works
lib/index.js(host) registers four exact HTTP routes under/_dsh/plugins/third-party/…(list,set-enabled,remove,update) and reads the live loader (ctx.loader) to map each dependency to its row ids and enabled state. It usesnode:fsdirectly and theyamllibrary to round-trip the patch file safely (unknown!!jstags and comments are preserved). Update detection queriesregistry.npmjs.orgfor thelatestdist-tag of registry-sourced dependencies.lib/client.js(browser,window.__ModuleLoader__bundle) registers the第三方插件tab (settings.plugins.tab, idthird-party) and renders the list with toggle, update, and delete buttons.
Install
dsh plugin --profile web add dsh-third-party-plugins-manage
# restart dsh web to activate the tab
User data ($DSH_HOME settings, credentials, sessions) is never touched. Uninstall with dsh plugin --profile web remove dsh-third-party-plugins-manage.
License
MIT