dshbase

插件目录 / Desktop / dsh-plugin-market

dsh-plugin-market

已验证 · 实测可装 6kongbai

✓ 持续维护 纯 TypeScript

查看 GitHub ↗ ← 返回插件目录

2Stars
0Forks
0未关闭 issue
TypeScript语言
2026-08-14最近推送
跨平台平台

功能简介

DSH插件市场CLI:浏览、安装、卸载社区插件

✅
我们的评价
可用 — 实测通过,早期项目

DSH插件市场CLI:浏览、安装、卸载社区插件 实测能干净安装、正常启动。早期项目,但功能可用。

「已验证」表示我们的自动化 CI 在干净 profile 里实际执行了 dsh plugin add 并启动成功——仅此而已。功能描述与版本兼容性均为作者声明。这不是安全审计,也不代表对第三方代码的背书。

README

dsh-plugin-market

A plugin marketplace for the DeepSeek Harness (dsh): browse, install, and uninstall community bundle plugins from the dsh-plugin GitHub topic, from a sidebar Web panel and a CLI.

The community registry is a GitHub topic, not a proprietary index. Any repository tagged dsh-plugin whose package.json declares dsh.bundle.patch is installable.

How it is provided

The marketplace is itself a dsh bundle: cordis.patch.yml inserts a Host half and a Client half over an existing web surface.

  • Host half registers /plugin-market/* HTTP routes on ctx.webServer — no Typert Remote, which the harness generator cannot emit for out-of-tree npm packages. Routes map one-to-one onto the engine (search/info/list/install/uninstall).
  • Client half contributes a sidebar foot action (beside Settings) whose panel drives those routes over same-origin fetch.
  • CLI (dsh-plugin-market) reuses the same engine for headless use.

Install

# bundle: installs the sidebar panel + CLI into the target profile
dsh plugin --profile web add github:6kongbai/dsh-plugin-market

Restart dsh; the marketplace icon appears at the sidebar foot. The bundle's cordis.patch.yml targets the web profile by default; edit the plugin-market row's config.profile (or set DSH_PLUGIN_MARKET_PROFILE) to target another profile.

Then:

dsh-plugin-market search <query>          # search the dsh-plugin topic
dsh-plugin-market info <owner/repo>       # detail + pinned install spec
dsh-plugin-market list                    # bundles installed in the profile
dsh-plugin-market install <owner/repo>    # confirm, pin, pnpm add, reconcile, audit
dsh-plugin-market uninstall <package>     # pnpm remove, reconcile, audit

Options:

  • --profile, -p <name> — target profile (default web); overridable via DSH_PLUGIN_MARKET_PROFILE.
  • --yes, -y — skip the install/uninstall confirmation.
  • GITHUB_TOKEN — raise the anonymous GitHub API rate limit.

How install works

install <owner/repo>:

  1. reads the repository's package.json and verifies it declares dsh.bundle.patch (repositories without it are marked not-installable in search);
  2. resolves the default branch's current head and pins to a commit — pnpm add github:owner/repo#<sha>, never a floating branch;
  3. runs pnpm add in the target profile directory;
  4. reconciles dsh.profile.bundles (a dependency declaring dsh.bundle joins the layer list; a removed one leaves it);
  5. appends an audit line to $DSH_HOME/plugin-install.log.

uninstall <package> runs pnpm remove, reconciles, and audits. In both cases the new bundle activates on the next dsh restart.

Architecture

dsh-plugin-market/
├── packages/market-host      Engine + Host gateway: GitHub indexing, install
│                             landing, reconcile, audit, and the MarketGateway
│                             Service registering /plugin-market routes.
├── packages/market-client    Client half: sidebar foot action + search panel.
└── packages/plugin-market    Bundle: cordis.patch.yml (inserts both halves) + CLI.

The engine (dsh-plugin-market-host) exposes searchRepositories, fetchRepository, readRepositoryManifest, toHit, toDetail, resolvePinSpec, install, uninstall, installedBundleNames, profileDir, and auditLogPath, plus the MarketGateway Service.

The Web panel is limited to the web platform (localhost), the same surface the harness webServer serves. The Electron desktop (file:// + IPC bridge) is out of scope until a fetch bridge is wired.

dsh.market metadata contract (for plugin authors)

A plugin repository participates by tagging dsh-plugin and declaring, in its package.json:

{
  "name": "dsh-plugin-foo",
  "version": "1.2.0",
  "description": "short description",   // fallback presentation
  "keywords": ["dev", "git"],           // fallback categories
  "dsh": {
    "bundle": { "patch": "./cordis.patch.yml" },  // REQUIRED to be installable
    "market": {                                   // OPTIONAL rich metadata
      "displayName": "Foo",
      "icon": "https://…",
      "categories": ["productivity"],
      "screenshots": ["https://…"]
    }
  }
}

bundle.patch is the hard gate. market falls back to the top-level name/description/keywords plus GitHub repository fields (stars, updated_at, license) when absent.

Security model

Installing a community plugin downloads and runs arbitrary code with the current user's privileges. This tool therefore:

  • shows owner, stars, updated_at, and license before install, with an explicit third-party-code warning;
  • pins to a commit (github:owner/repo#<sha>), never a floating branch, so a later force-push cannot move what was installed;
  • appends an audit record to $DSH_HOME/plugin-install.log;
  • requires confirmation (interactive, --yes to skip).

Signature verification and an allowlist are not yet implemented — dsh.bundle has no signing mechanism today — and are tracked as future work.

Development

Requires Node ^22.19 || >=24, pnpm, and the pre-release harness packages (@deepseek-ai/[email protected], @deepseek-ai/[email protected]).

pnpm install
pnpm build        # builds the engine and CLI packages
pnpm test

License

MIT

安装

🧩 让 Agent 自动装(推荐)

装一次目录插件,之后本站所有插件都能让 DeepSeek Harness 自动找、自动装:

dsh plugin add dshbase-catalog

然后对 agent 说「帮我装 dsh-plugin-market」,它会在目录里找到并自动安装。文档:dshbase-catalog · 已验证场景包。

该插件是 GitHub 源码(未发 npm)——直接从仓库装:

Web profile:

dsh plugin --profile web add github:6kongbai/dsh-plugin-market

Headless(CLI)profile:

dsh plugin --profile headless add github:6kongbai/dsh-plugin-market

实测报告

验证通过:从 GitHub 源码完成 L1 安装 + L2 加载 + L3 运行(dsh 0.1.0-rc.6)。

使用场景

扩展 agent 的编码能力面——给它一个新工具、工作流或集成,让它接手以前做不了的开发任务。

适合谁

想让 dsh 在真实代码库上像队友一样干活的开发者——能改、能跑、能验证,而不只是回答问题。

二次开发建议

工具/命令面就是缝:暴露更多 SDK 能力、加更聪明的上下文接线,或收紧改代码与验证之间的循环。

安全:尚未扫描——我们的每日静态扫描将很快覆盖它。

分享徽章

Desktop 里更多

浏览全部 7797 个插件 →