dsh-plugin-manager
其他 活跃维护

dsh-plugin-manager

chuyue-yue/dsh-plugin-manager

轻量级插件管理扩展,安装后可在对应工具的插件设置页新增专属安装标签,支持插件快速添加、卸载、版本更新,操作路径直观无需额外配置,开箱即用简化插件全周期管理。

0
Stars 标星
0
Forks 分支
0
Watchers 关注
0
Open Issues
JavaScript
主要语言
MIT
开源协议
11 KB
仓库大小
1 个月前
最后推送
一键安装扩展 / 插件指令
dsh plugin --profile web add github:chuyue-yue/dsh-plugin-manager
git clone https://github.com/chuyue-yue/dsh-plugin-manager.git
git clone git@github.com:chuyue-yue/dsh-plugin-manager.git
README.md main

dsh-plugin-installer-ui

中文

A plugin manager for DSH (DeepSeek Harness): adds an Install Plugins tab under
Settings → Plugins, letting you add or remove plugins by typing a dsh plugin
command or a package name — no manual config editing required.

Features

  • Install / remove plugins online: in the Settings → Plugins → Install Plugins tab,
    type a package name or a full command and run it with one click —
    dsh plugin --profile web add/remove <spec> is executed with live output and result status.
  • Host side: registers POST /api/plugin-manager/install and GET /api/plugin-manager/status
    HTTP routes that proxy dsh plugin (command parsing, package-name safety validation, timeout protection).
  • Client side: injects the Install Plugins tab into the Settings → Plugins tab group
    (input box + Add / Remove buttons + execution output).
  • Environment diagnostics: the tab footer shows the node version, target profile, and DSH_HOME path.

Requirements

Installation

dsh plugin --profile web add dsh-plugin-installer-ui

Or install directly from GitHub (no npm publish required):

dsh plugin --profile web add github:chuyue-yue/dsh-plugin-manager
# or pin a version:
dsh plugin --profile web add https://github.com/chuyue-yue/dsh-plugin-manager/archive/refs/tags/v1.0.0.tar.gz

After installation, restart the dsh web service and refresh the page — the Install Plugins
tab appears under Settings → Plugins.

Usage

In the tab, the input accepts three formats:

Input Effect
dsh plugin --profile web add <package> Install a plugin (full command)
<package> Install a plugin (add is the default)
remove <package> Remove a plugin

Installation requires network access and pnpm; if pnpm is not found, install it first and retry.

Uninstall

dsh plugin --profile web remove dsh-plugin-installer-ui

Development

dsh-plugin-installer-ui/
├── lib/
│   ├── index.js      # host side: HTTP routes (install / status)
│   └── client.js     # client side: Install Plugins tab
├── cordis.patch.yml  # bundle activation layer (auto-mounted after `dsh plugin add`)
└── package.json
  • dsh.client declares the client-side injection (platform: web, immediately: true);
  • dsh.bundle.patch declares the bundle activation layer — dsh plugin add appends this
    package to dsh.profile.bundles automatically, no manual cordis.patch.yml editing.

License

MIT