dsh-bundle-presets
Manifest validNamed bundle-set presets for the Plugins page: save the active bundle list, edit a preset with switches, preview the difference before applying, switch through the plugin manager, and undo the last sw
dsh-bundle-presets
Named bundle-set presets for DeepSeek Harness. Save the bundle list a profile is running as a named set, edit that set with the same switches the plugin list uses, apply it in one click, and undo the last switch.
中文说明见 README.zh.md。
Screenshot

What it does
A preset is a named list of bundle package names from dsh.profile.bundles. The plugin adds a Presets tab to the Plugins page where you can:
- Save the current selection (what the profile is running right now, not a template).
- Edit a preset in place: every bundle in the profile is listed with its icon, localized title, package name, description and the native 36×20 switch.
- Preview the difference before applying: which bundles the preset would turn on or off.
- Apply it. Enables run first and disables second, so the browser bundle survives the transition.
- Undo the last switch; the snapshot is written only when the manifest actually changed.
- Overwrite an existing name only after an explicit confirmation (
409 name-existsfirst).
Switching goes through pluginManager.setBundleEnabled(), so it inherits the profile write lock, version-compatibility checks, HMR recomposition and the plugin manager's protected-bundle refusals. A switch is refused as a whole (409 unappliable, with per-bundle reasons) when any step could not run: a bundle whose files are missing or whose patch cannot be read, or a protected bundle that would have to be turned off. A step that already wrote the manifest and then failed to recompose is reverted immediately.
Install
dsh plugin --profile <your-profile> add dsh-bundle-presets
Or, in the app: Plugins → Add plugin → search dsh-bundle-presets. Restart the profile if your host has HMR off. The plugin needs a Web surface (web or desktop); headless, SDK and ACP profiles do not mount it.
Use
- Set the composition you want from the Installed tab as usual.
- Open Plugins → Presets, name the set, Save preset.
- Later, pick the preset and press Apply. Preview shows the difference first; Undo last switch goes back one step.
The Current set card lists the active bundles in layer order (read-only); edit a preset to change what a set contains.
Limits
- It switches the bundle composition of one profile. It does not switch profiles, sessions, settings or credentials.
- Presets store package names, not versions: after an upgrade or removal, missing entries are skipped and listed in the editor.
- The plugin manager appends newly enabled bundles, so an applied set can hold the same bundles in a different order; the "current" badge and the diff compare sets.
- Routes are
Host-fenced to loopback, so a deployment reached through a reverse proxy or a LAN address gets 403; add your own authentication before exposing it. - State lives in
<profile dir>/bundle-presets.jsonand is guarded by a cross-process lock.
Development
node tests/plan.test.mjs # pure planning: diff, name rules, preflight refusals
node tests/routes.test.mjs # real HTTP handlers with a stub plugin manager
Both run without touching a live profile.
License
MIT © ZY-WANG-0304
Comments
Loading…
Similar plugins
by jackxiao-hub
A DSH web client plugin that turns the Settings → Plugins page into a dependency-layered plugin tree, plus an interactive dependency graph. Dependencies are prerequisites: see at a glance how plugins
★ 0
MIT
TypeScript
Aug 16, 2026
dsh plugin --profile web add @dsh-external/dsh-client-ui-plugin-treeby Alail691
把 DSH 侧栏的「插件」整体收进设置:在「设置 → 插件」里新增一个「插件管理」标签页,内嵌官方插件面板的全部能力(浏览 / 安装 / 开关 / 卸载)。Bring the sidebar's Plugins page into Settings as a tab, embedding the official plugin manager.
★ 0
MIT
JavaScript
Oct 16, 2026
dsh plugin --profile web add dsh-plugins-in-settingsby Yiklek
DSH web plugin: arrange the list slots other plugins contribute to — show/hide, reorder, rename — without touching upstream.
★ 0
MIT
TypeScript
Oct 28, 2026
dsh plugin --profile web add dsh-slots-managerby CloudFan-cyf
DSH Web GUI plugin control center: card list of all installed plugins with name, version, description, and online enable/disable switches.
★ 0
MIT
JavaScript
Aug 18, 2026
dsh plugin --profile web add @cloudfan-cyf/dsh-plugin-controlby penglai-doll
Plugin management tab for the Web Plugins settings: manage agent presets (list/read/validate/copy/remove, per-row enable/disable) and the dynamic Cordis plugin inventory, through a same-origin /plugin
★ 0
MIT
JavaScript
Aug 17, 2026
dsh plugin --profile web add dsh-plugin-managerby Stmol
DSH plugin: keep your own prompts in Settings and switch them on per chat
★ 2
↓ 28/wk
MIT
JavaScript
Oct 4, 2026
dsh plugin --profile web add @stmol/dsh-prompt-lib