dsh-plugin-marketplace
开发工具 活跃维护

dsh-plugin-marketplace

mengxingGG/dsh-plugin-marketplace

提供GitHub开源插件检索与浏览能力,同步GitHub项目数据实时更新插件信息,支持一键安装对应配置文件到本地环境,无需手动调整参数即可快速接入所需扩展功能,使用流程简洁高效。

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

dsh-plugin-marketplace

简体中文

A standard DeepSeek Harness profile bundle that adds a GitHub plugin market to Settings → Plugins. It searches public repositories carrying the dsh-plugin topic, verifies that the root package.json declares dsh.bundle.patch, renders result cards with expandable details, and installs a selected repository into the current profile through dsh plugin.

Install

dsh plugin --profile web add github:mengxingGG/dsh-plugin-marketplace --allow-build=dsh-plugin-marketplace
dsh --profile web

Open Settings → Plugins → Plugin market after restarting the profile.

Search and install

  • Leave the query blank to list popular repositories from the dsh-plugin GitHub topic.
  • Search for a capability such as balance, memory, or tools.
  • Paste an exact owner/repository slug or GitHub repository URL to inspect an unlisted repository.
  • Expand a card to review its package name, default branch, license, update date, and source URL.
  • Choose Install only after reviewing the source. The confirmation explains that third-party package lifecycle scripts and plugins execute with the local account's privileges.

An installation writes the selected dependency and bundle membership to the configured profile. Restart that dsh profile to activate the new Host and Client plugin entries.

Architecture

The package is an ordinary external DSH bundle:

  • dsh.bundle.patch points to cordis.patch.yml, which inserts the Host row.
  • dsh.client publishes lib/client.js through the Web client module loader.
  • The Host registers two same-origin JSON routes on ctx.webServer: search and add.
  • The Client contributes one settings.plugins.tab entry and communicates only with those same-origin routes.
  • Installation reuses the running dsh launcher's plugin command; no profile mutation logic is duplicated in the browser.

The add route accepts only same-origin POST requests and loopback authorities by default. GitHub credentials are never sent to the browser. Before running a third-party package lifecycle script, the installer removes environment variables whose names contain KEY, SECRET, TOKEN, or PASSWORD.

Configuration

Every field is optional in cordis.patch.yml:

Field Default Meaning
topic dsh-plugin GitHub repository topic used for discovery
searchMaxResults 8 Maximum repositories inspected per search, 1–30
requestTimeoutMs 15000 Timeout for each GitHub request
installTimeoutMs 300000 Timeout for one package installation
profile web Profile mutated by the add route
tokenEnv GITHUB_TOKEN Optional environment variable for a GitHub token
allowRemote false Permit same-origin non-loopback clients

Anonymous GitHub access has restrictive rate limits. Set the configured token environment variable when repeated discovery exhausts the anonymous allowance.

Compatibility

The verified baseline is DeepSeek Harness 0.1.1-rc.2 with Node.js 22.19+ or 24+ on the web profile. Compatibility with 0.1.0-rc.8 and 0.1.1-rc.1 remains unknown and is not claimed.

Development

pnpm install
pnpm run check

pnpm run check runs strict type checking, four focused test files, both Host and Client builds, and verifies the client module-loader registration.

License

MIT