fazhu4/dsh-plugin-studio

DSH(DeepSeek Harness)插件管理器:在 Web 设置页中按官方/社区分组管理已安装插件(中文描述、一键启停、详情、卸载),并内置 GitHub 插件市场(高收藏/增长最快榜单 + 搜索 + 一键安装)。

Project Overview项目介绍

dsh-plugin-studio is a native plugin built exclusively for DeepSeek Harness (DSH), adding a dedicated plugin management UI to DSH’s web settings page. It separates installed plugins into two clear groups: official plugins bundled with the default DSH installation, and community plugins installed by end users. It supports searching through installed plugins, toggling their enabled status with one click, viewing detailed version and license metadata, and uninstalling unused community plugins. It also includes pre-written bilingual descriptions for 129 popular packages that automatically render based on your DSH interface language.

This tool is designed for all DSH end users who want a more convenient way to manage and discover third-party DSH plugins. After you install the plugin and restart your DSH service, you can access the built-in marketplace through the new plugin tab in DSH settings. You can sort available plugins by top star count or fastest growth over the last 90 days, or search all public GitHub repositories tagged with the dsh-plugin topic. When you find a plugin you want, you can install and enable it with one click, which automatically syncs DSH’s bundle layer and takes effect after a service restart. Core system plugins are marked protected to prevent accidental changes that break your DSH instance.

To install and run dsh-plugin-studio correctly, you need a DSH 0.1.0 series web profile and the pnpm package manager installed on your local system. The project is released under the permissive MIT open source license, so you can modify or redistribute it freely per the license terms. There are a few known limitations to keep in mind when using this plugin: the top stars list may include the official DSH main repository, so always confirm the package name and repository address before installing. Unauthenticated GitHub API requests are rate limited to 10 per minute, with search results cached for 60 seconds, and the fastest growth list is an approximation since GitHub does not expose a public growth rate API.

这是一个专为 DeepSeek Harness (DSH) 开发的原生插件,提供完整的插件管理和内置 GitHub 插件市场功能。它在 DSH 的 Web 设置页中添加专门的插件管理标签页,将已安装插件按官方出厂包和用户安装的社区包分组展示,支持搜索插件、一键启停、查看详情和卸载社区插件,还内置了129个包的双语描述,会根据当前界面语言自动渲染对应内容。

普通 DSH 用户可以通过它便捷管理已安装的插件,还能在内置插件市场中按高收藏、增长最快榜单浏览插件,也可以搜索 GitHub 上标记了 dsh-plugin 话题的仓库,找到想要的插件后一键安装启用,安装过程会自动同步 DSH 的 bundle 层,重启服务后即可生效。核心插件会被标记为受保护,禁止开关和卸载,避免用户误操作破坏 DSH 本身的运行。

该插件要求 DSH 0.1.0 系列 web 配置档,依赖 pnpm 包管理器,遵循 MIT 开源许可。使用时存在一些已知限制:高收藏榜单可能包含官方主仓库,安装前需确认包信息;GitHub 无token 调用会触发限流,结果仅缓存 60 秒;增长最快榜单为近似排序,不保证完全准确。安装后需要重启 DSH 服务才能正常使用。

Pre-install check安装前体检Compatibility · Security兼容性 · 安全性 1 warning1 项注意
  • Only 4 stars - very few users, little community feedback星标只有 4,几乎没人在用,遇到问题缺少社区反馈
DSH walks through these 9 checksDSH 会逐条核对这 9 项

Compatibility兼容性

  • DSH, Node, OS and profile requirementsDSH 版本 / Node 版本 / 操作系统 / profile 是否满足要求
  • External dependencies and runtimes (Electron / Python / Docker, ...)外部依赖与运行时(Electron / Python / Docker 等)是否齐备
  • Conflicts with installed plugins: command names, skill / tool names, ports, duplicate MCP registration与已装插件是否冲突:命令名、skill / tool 重名、端口占用、重复 MCP 注册

Security安全性

  • Repo matches the facts registered here; archived or abandoned?仓库是否与页面登记一致,是否归档或长期停更
  • Safety of preinstall / install / postinstall and install.sh / setup.ps1preinstall / install / postinstall 与 install.sh、setup.ps1 是否安全
  • curl|bash, download-then-execute, obfuscation, unrelated domains → stop immediatelycurl|bash、下载即执行、混淆代码、无关域名 → 立刻停止
  • Typosquatting or unmaintained packages among the new dependencies新增依赖里有没有 typosquatting 或无人维护的包
  • Requested permissions vs. what the feature actually needs申请了哪些权限、是否超出功能所需(filesystem / network / shell / clipboard)
  • Any sudo / admin requirement, plus uninstall and rollback是否要求 sudo / 管理员权限,以及卸载与回滚方式

Anything uncertain must be marked unknown with a note on how to confirm it. This site's signal screen is a static snapshot, not a security audit.拿不准的必须标「未知」并说明要我怎么确认。本站的信号筛查是静态快照,不能替代安全审计。

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

CLI Install命令行安装

dsh plugin --profile web add dsh-plugin-studio@0.3.1

把 fazhu4/dsh-plugin-studio 加入你的 DSH 配置(web profile)即可启用。

READMEREADME

dsh-plugin-studio

DSH(DeepSeek Harness)插件管理器:在 Web 设置页中按官方/社区分组管理已安装插件(中文描述、一键启停、详情、卸载),并内置 GitHub 插件市场(高收藏/增长最快榜单 + 搜索 + 一键安装)。

功能

插件管理(设置 → 插件 → 插件管理)

  • 官方 / 社区分组:官方插件(dsh 出厂 bundle,默认折叠)与社区插件(用户安装,默认展开)分开展示,支持搜索
  • 中文描述库:内置 129 个包的 zh/en 双语描述(按 UI 语言渲染),未收录的包回退英文 package.json 描述
  • 一键启停:写入用户补丁层 cordis.patch.yml,DSH 配置热重载约 1-3 秒生效;显示「补丁停用 / 补丁强制启用」状态标签
  • 受保护行:热加载与 Web 服务链上的核心插件禁止开关与卸载,防止误操作破坏自身
  • 详情面板:版本、主页、仓库、许可、README 摘要
  • 卸载(仅社区插件):pnpm remove + bundle 层同步,重启服务后彻底移除

插件市场(设置 → 插件 → 插件市场)

  • 默认榜单:高收藏(话题内按 star 排序)/ 增长最快(近 90 天新建仓库按 star 排序,GitHub 无增速接口的近似)
  • 搜索:GitHub dsh-plugin 话题仓库,显示 star、描述、npm 包名探测(npm 直装 / GitHub 安装标签)
  • 一键添加并启用:npm 安装到 profile + bundle 层自动同步,重启服务生效

安装

# 从 npm 安装已发布包
dsh plugin --profile web add dsh-plugin-studio@0.3.1

# 从本仓库安装(推荐先构建)
dsh plugin --profile web add file:/path/to/dsh-plugin-studio

# 或从 GitHub 安装
dsh plugin --profile web add github:<your-name>/dsh-plugin-studio

安装后重启 dsh 服务,刷新页面 → 设置 → 插件 → 「插件管理」与「插件市场」。

社区插件卸载成功后会立即从当前列表隐藏;重启 dsh 服务后完成运行时移除。

包名、运行时插件 ID、HTTP 路由和本地分组存储文件统一使用 dsh-plugin-studio。

要求

  • DSH 0.1.0 系列(web profile)
  • pnpm(dsh plugin 依赖)

开发

pnpm install          # 安装依赖(link: 指向 ../deepseek-harness 源码)
pnpm run check        # typecheck + 单测 + 构建
pnpm run build        # 仅构建(lib/index.js 宿主 + lib/client.js 客户端)
  • 宿主插件:环回 HTTP 路由 /dsh-plugin-studio/{list,toggle,search,install,uninstall}(loopback-only)
  • 客户端插件:注册 settings.plugins.tab 插槽(manager / market 两个 Tab)
  • 纯函数模块(patch.ts / group.ts / meta.ts / market.ts / descriptions.ts)均有 vitest 单测

工作原理

  • 启停:行级文本补丁改写 $DSH_HOME/profiles/<profile>/cordis.patch.yml(保留注释、!!js 表达式),DSH 的配置热重载(chokidar)自动重组组合树——与手改配置文件等价
  • 官方/社区判定:解析包真实路径——落在 profile node_modules 为社区,落在安装闭包($DSH_HOME/profiles/node_modules)为官方
  • 补丁寻址:用户补丁层按行自身 id 寻址(不带 loader 路径前缀如 include:)

安全

  • 全部 HTTP 路由仅允许环回地址访问
  • 安装/卸载等价于 CLI dsh plugin add/remove,pnpm 走完整 TLS 校验
  • 受保护行硬拦截开关与卸载

已知限制

  • 「高收藏」榜单按 GitHub dsh-plugin 话题全量排序,可能包含官方主仓库(如 deepseek-ai/deepseek-harness)——安装前请确认卡片上的 npm 包名/仓库地址
  • 仓库根 package.json 探测或 npm 注册表探测失败时,卡片降级为「GitHub 安装」标签
  • 「增长最快」为近似(近 90 天新建仓库按 star 排序),GitHub 无收藏增速接口
  • GitHub 搜索未带 token 时受限流(10 次/分钟),结果 60 秒缓存

License

MIT

← 上一个 Prev dsh-ppt-studio 下一个 Next superself →