DeepSeek Harness Plugin

AngLi1997/dsh-plugin-sync

Stars ★ 2 Downloads (30d) 318 Category Tools & Capabilities Added 2026-08-15 npm dsh-plugin-sync

Sync the installed DeepSeek Harness plugin manifest to a GitHub Gist (OAuth login, one-click export/import with automatic dependency install).

Install

# from npm (prebuilt)

dsh plugin --profile web add dsh-plugin-sync

# from GitHub (first run asks for allowBuilds approval — follow the hint, retry)

dsh plugin --profile web add github:AngLi1997/dsh-plugin-sync

Any plugin you install runs third-party code with your own permissions — it can read your files, use your credentials, and reach the network, and tool approvals don’t sandbox it. GitHub-sourced plugins also run build scripts at install time — pnpm blocks those until you allow them, so an install can stop with ERR_PNPM_GIT_DEP_PREPARE_NOT_ALLOWED or ERR_PNPM_IGNORED_BUILDS; dsh prints the exact key to add under allowBuilds in your profile’s pnpm-workspace.yaml, and the install works on the next run. Allowing a build is a trust decision: only install sources you trust, and pin a commit (github:owner/repo#sha).

README

This plugin publishes its README in Chinese only.

把 DeepSeek Harness 已安装的插件清单同步到 GitHub Gist 的 DSH 插件。

  • GitHub OAuth 设备流快捷登录(无需手动粘贴 token)
  • 导出:将 profiles/<profile>/package.json 的 dependencies + dsh.profile.bundles + cordis.patch.yml 打包为 dsh-plugins.json 上传到 Gist
  • 导入:从 Gist 读取插件清单,写回 package.json / cordis.patch.yml 并自动执行 pnpm install,提示重启 Harness 生效
  • 未指定 Gist 地址时,自动创建名为 dsh_plugin_sync_XXXX(4 位随机字符)的私有 Gist

安装

dsh plugin --profile web add dsh-plugin-sync

或手动编辑 profile 的 package.json:

{
  "dependencies": {
    "dsh-plugin-sync": "^1.0.0"
  },
  "dsh": {
    "profile": {
      "bundles": ["dsh-plugin-sync"]
    }
  }
}

然后 pnpm install 并重启 Harness。安装后可在 dsh-market 中查看。

使用

  1. 打开设置 →「插件同步」
  2. 点「登录 GitHub」,按提示跳转 GitHub 授权(仅需 gist 权限)
  3. 点「导出到 Gist」上传插件清单;「从 Gist 导入」填写 Gist 地址后自动安装并提示重启

构建

npm install
npm run build   # esbuild 产出 lib/index.js(host)+ lib/client.js(client bundle)

@deepseek-ai/* 与 react 保持外部依赖(由 profile 的 node_modules / app 模块系统提供),zod 打包进产物。

License

MIT

Content from the project README on GitHub ↗

Links

More in this category

View the whole category →

Community comments

Comments are public GitHub Discussions. Loading them connects to GitHub and Giscus; a GitHub account is required to post.