D4Cluv-Train/dsh-plugin-manager

在 web GUI 侧边栏添加 "插件" 按钮,用于查看和管理自行安装的插件(dsh plugin --profile web add 安装的 bundle,不含 dsh-base / dsh-web-app 等官方自带)。

catalog 简介 / catalog descriptioncatalog description:一个插件管理的小插件,功能逐步增加中...

项目介绍Project Overview

dsh-plugin-manager 是在 DSH web GUI 侧边栏添加“插件”按钮的插件,用于查看和管理自行安装的 bundle(不含官方自带)。它可显示运行状态、开关启用或停用、关闭弹窗时统一应用更改,并在“发现”页浏览社区插件一键安装。适合需要集中管理第三方插件时使用;注意安装或修改后需重启 dsh web,含界面组件的插件还需刷新页面才生效。

dsh-plugin-manager is a DSH plugin that adds a “Plugins” button to the web GUI sidebar for viewing and managing self-installed bundles, excluding built-in official ones. It shows runtime status, toggles plugins on or off, applies all changes when the dialog closes, and includes a Discover tab to browse and install community plugins. Use it when you need centralized third-party plugin management. Note that dsh web must be restarted after installation or changes; UI-containing plugins also require a page refresh.

或使用命令行安装(适合开发者)Or use CLI install (for developers)

命令行安装CLI Install

dsh plugin --profile web add @d4cluvtrain/dsh-plugin-manager

D4Cluv-Train/dsh-plugin-manager 加入你的 DSH 配置(web profile)即可启用。

READMEREADME

dsh-plugin-manager

在 web GUI 侧边栏添加 "插件" 按钮,用于查看和管理自行安装的插件(dsh plugin --profile web add 安装的 bundle,不含 dsh-base / dsh-web-app 等官方自带)。

功能

  • 状态展示:弹窗列出已安装插件,显示运行状态(运行中 / 加载失败 / 加载中 / 已关闭)。
  • 启用 / 关闭:每个插件带开关,可随时停用或重新启用。
  • 统一生效:在弹窗里勾选后,关闭弹窗时一次性应用所有更改。
    • 纯 host 插件即时生效;
    • 含界面组件的插件会弹出提示,刷新页面(或重启 dsh)后生效。
  • 发现插件:弹窗含"发现"标签页,浏览 awesome-dsh-plugin 收录的社区插件,可一键安装。

安装

一行命令安装:

dsh plugin --profile web add @d4cluvtrain/dsh-plugin-manager

其他来源同样可用(dsh plugin add 转发给 pnpm,支持任意 spec):

  • Git 仓库(需要仓库含 prepare 脚本,且 pnpm ≥10 需在 profile 的 pnpm-workspace.yaml 放行其构建):
    dsh plugin --profile web add git+https://github.com/D4Cluv-Train/dsh-plugin-manager.git#main
    
  • tarball / 本地路径:
    dsh plugin --profile web add /path/to/dsh-plugin-manager-0.1.0.tgz
    

命令会把包安装进 ~/.dsh/profiles/web/node_modules,并追加到该 profile 的 dsh.profile.bundles

安装 / 修改后需重启 dsh web,插件才会挂载。

使用

  1. 重启 dsh web 后,浏览器打开;
  2. 侧边栏设置按钮上方出现 "插件" 按钮,点击弹出弹窗;
  3. 查看插件状态,或切换开关;关闭弹窗后生效。

移除

dsh plugin --profile web remove @d4cluvtrain/dsh-plugin-manager

构建(开发)

npm install
npm run build
上一个 Prev dsh-highlighter 下一个 Next dsh-claude-mem