开放式插件市场:GitHub dsh-plugin 话题实时搜索,逐仓库 package.json 验证(dsh.bundle/dsh.client 声明徽章与只看已验证过滤),npm 优先安装带同源防抢注校验,更新检测,并附五个可在无界面环境使用的 agent 工具。
安装
# npm 包(预构建)
dsh plugin --profile web add @1e0zj/dsh-plugin-mall
# GitHub 源码(首次需按提示配置 allowBuilds 构建授权后重试)
dsh plugin --profile web add github:1e0zj/dsh-plugin-mall
装任何插件都等于在你的机器上跑第三方代码,权限和你本人一样大——能读你的文件、用你的凭据、访问网络,工具审批管不到它。GitHub 来源的插件还会在安装时执行构建脚本。请只安装可信来源,并尽量锁定 commit(github:owner/repo#sha)。
README
An open plugin marketplace for DeepSeek Harness (dsh): search every GitHub repo tagged topic:dsh-plugin, automatically verify which ones are real dsh plugins, install and update with one click.
中文说明 · Install · Why another marketplace
Two surfaces: a Settings → Plugins → Marketplace tab in the dsh web UI, and five agent tools usable from any session.
Why another marketplace?
Curated lists only show what has been reviewed and merged. This marketplace is open by construction: any repo tagged topic:dsh-plugin is discoverable the moment it is pushed — no submission, no approval queue. To keep that openness usable:
- Automatic verification — every search result's
package.jsonis fetched (jsDelivr/raw dual-source CDN, no API quota) and checked for the officialdsh.bundle/dsh.clientmanifest. Verified plugins get a green badge; the default "verified only" view filters out ~73% of topic noise (empty repos and unrelated projects riding the tag). - Anti-squatting — an install prefers the npm tarball only when the registry entry's
repositoryURL points back to the same GitHub repo; anything else falls back to the explicitgithub:spec. - npm-first installs — registry tarballs are smaller than whole-repo GitHub downloads and come with integrity checks.
- Update management — installed plugins are compared against the registry
latest; one-click update per plugin. - Resilience — rate-limit circuit breaker, GitHub's 1000-result search window handled gracefully,
corepack enable pnpmself-heal when pnpm is missing, one-click dsh restart (loopback-only,allowRestart: falseto disable).
Install
# from npm
dsh plugin --profile web add @1e0zj/dsh-plugin-mall
# from GitHub
dsh plugin --profile web add github:1e0zj/dsh-plugin-mall
# local development (symlink; restart dsh after edits)
dsh plugin --profile web add link:C:\path\to\dsh-plugin-mall
Restart dsh after installing.
Agent tools
| Tool | What it does |
|---|---|
market_search |
Search GitHub repos tagged topic:dsh-plugin (star-ranked, keyword filter, server-side stars:>=1 noise floor) |
market_info |
Inspect one repo: stars, license, package.json, whether it declares dsh.bundle.patch / dsh.client |
market_install |
Install a plugin into a profile as a background job (npm-first spec resolution) |
market_uninstall |
Remove a plugin: pnpm remove + bundle-layer reconcile + client-row cleanup |
market_installed |
List a profile's installed plugins and their bundle status |
中文说明
dsh 插件市场 — 搜索 GitHub dsh-plugin 话题下的 DeepSeek Harness 插件仓库,自动验证哪些是真 dsh 插件,一键安装与更新。
与策展列表不同:任何打上 topic:dsh-plugin 的仓库推送后立即可被发现——无需投稿、无需审批。为保证开放性可用,做了这些事:
- 自动验证:逐仓库拉取
package.json(jsDelivr/raw 双源 CDN,不占 API 配额),按官方dsh.bundle/dsh.client声明打徽章;默认"只看已验证"视图过滤约 73% 的话题噪音 - 防抢注:仅当 npm registry 条目的
repository指回同一 GitHub 仓库时才用 npm 安装,否则回退github:源 - npm 优先安装:registry tarball 比整仓库下载更小且带完整性校验
- 更新管理:已装插件与 registry
latest比对,逐个一键更新 - 工程韧性:限流熔断、GitHub 1000 条搜索上限优雅处理、pnpm 缺失时
corepack自愈、一键重启 dsh(仅 loopback,可allowRestart: false关闭)
安装
# 从 npm
dsh plugin --profile web add @1e0zj/dsh-plugin-mall
# 从 GitHub
dsh plugin --profile web add github:1e0zj/dsh-plugin-mall
# 本地开发(软链,改代码后重启 dsh 即生效)
dsh plugin --profile web add link:C:\path\to\dsh-plugin-mall
装完重启 dsh(dsh web 进程)后生效。
Windows 下用
link:开发本插件时,Node 会从项目的真实路径加载模块, 因此项目目录里必须先装一次依赖(npm install),裸导入才能解析; 通过 npm/GitHub 安装时无此要求(pnpm 会把真实拷贝装进 profile 的 node_modules)。
工作原理
- 双面包(dual-face)插件:
dsh.bundle半边挂在 host 平面(profile bundle 层), 注册 5 个 agent 工具(进 global 层,所有会话可见,与 MCP 工具同理);dsh.client半边是浏览器插件,往设置页插件区注册「插件市场」tab (settings.plugins.tabslot;手写无构建,经window.__ModuleLoader__加载)。 - 浏览器 → 服务端走 Connection 服务的独立 RPC 通道
/market(loopback-only,与/api通道互不干扰);页面发起的安装任务用进程内 tracker 跟踪 —— web host 层没有 job 控制器,ctx.jobs无法在会话外起任务。 market_install复刻官方dsh plugin add的流程:在 profile 目录跑pnpm add <spec>,成功后把声明了dsh.bundle.patch的依赖登记进dsh.profile.bundles(layer 列表),声明了dsh.client的依赖自动在 profile 的cordis.patch.yml注册加载行,与官方 reconcile 逻辑一致。market_uninstall复刻官方dsh plugin remove的流程:在 profile 目录跑pnpm remove <package>,成功后从dsh.profile.bundles剔除该依赖的 bundle 条目,并删掉cordis.patch.yml里由安装流程注册的客户端加载行 (文本级精准移除,用户手写的行不受影响)。- 安装源解析:
github:owner/repo优先改写为同名 npm 包(仅当 registry 条目的 repository 指回该仓库,防止抢注),否则用 GitHub 全仓库 spec。 - GitHub 源的插件安装时要跑 prepare 构建脚本,pnpm 默认拦截;本插件检测到
拦截后会把包名自动合并进 profile 的
pnpm-workspace.yaml的allowBuilds并自动重试一次(解析只认合法 npm 包名,写入一律加引号,不会写坏 YAML)。 - 配置(
cordis.patch.yml中可改):defaultProfile(默认装进哪个 profile, 默认web)、apiBase(GitHub API 地址)、perPageMax(搜索单页上限)、allowRestart(是否允许一键重启,默认true)。
发布
npm publish --access public
# 或在 GitHub 建仓库并打上 topic:dsh-plugin
开发说明
- 插件形态:
package.json里"dsh": { "bundle": { "patch": "./cordis.patch.yml" } }, patch 文件把dsh-plugin-mall这一行 insert 进装配树;同一行同时是 client 插件行(dsh.client声明让 client-modules 扫描并服务/plugins/<id>/client.js)。 @deepseek-ai/*框架包必须声明为peerDependencies:装成 dependencies 会把宿主模块副本 hoist 进 profile,cordis loader 双副本加载、Symbol 身份 分裂,宿主的工具调度全线崩溃。宿主经profiles/node_modulesfallback 提供框架包。- node 半边导出具名成员
{ name, inject, Config, apply },不要export default(cordis loader 会做exports.default ?? exports解包,default 会吞掉 inject/Config); client 半边是window.__ModuleLoader__.load({id, factory}),导出{ apply, inject }。 - 单测
src/github.js(无 harness 依赖):node src/github.js --self-test。
链接
同类插件
dsh-market/dsh-market★ 525
(推荐)装在 DSH 里的插件市场:设置页内逛/搜全部社区插件,按分类筛选,确认后一键安装,已装插件一目了然。
bradeGithub/DSH-Plugins-Marketplace★ 83
面向 GitHub dsh-plugin 话题的插件与技能市场:设置页内逛自动收录的全量索引(CI 每 2 小时刷新),一键安装带类型识别、安装脚本与宿主依赖遮蔽安全检查、环境变量密钥管理,并附 STANDARD.md 识别层规范。
Sanqi-normal/dsh-webui-market-plugin★ 62
dsh Web GUI 内的社区插件市场:浏览 awesome-dsh-plugin.com 目录,从 设置 → 插件 → 插件市场 安装/卸载插件到 profile。
whyihaveyou/dsh-suite#plugin-manager★ 38
DSH Web UI 内置插件商店:浏览、搜索、一键安装、兼容性徽章。
Noob-stupid/dsh-plugin-hub★ 33
插件管理面板:已安装插件一键启用/停用,内置 GitHub dsh-plugin 插件市场,支持详情查看与一键安装。
yyyyukari/dsh-plugin-workshop★ 25
创意工坊式插件浏览器:侧栏常驻入口,搜索/最热/最新/近 7-90 天飙升榜、中文关键词映射、描述与 README 机翻、插件特征验证过滤、一键安装/更新。