DeepSeek Harness 插件

AngLi1997/dsh-plugin-sync

Star 数 ★ 2 下载量(近 30 天) 318 分类 工具与能力 收录于 2026-08-15 npm dsh-plugin-sync

将已安装的 DeepSeek Harness 插件清单同步到 GitHub Gist(OAuth 登录、一键导出/导入并自动安装依赖)。

安装

# npm 包(预构建)

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

# GitHub 源码(首次需按提示配置 allowBuilds 构建授权后重试)

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

装任何插件都等于在你的机器上跑第三方代码,权限和你本人一样大——能读你的文件、用你的凭据、访问网络,工具审批管不到它。GitHub 来源的插件还会在安装时执行构建脚本——pnpm 默认拦截,所以安装可能停在 ERR_PNPM_GIT_DEP_PREPARE_NOT_ALLOWED 或 ERR_PNPM_IGNORED_BUILDS;dsh 会打印出需要添加的确切键名,把它加进该 profile 的 pnpm-workspace.yaml 的 allowBuilds 下,重跑一次即可装上。放行构建本身就是一次信任判断:请只安装可信来源,并尽量锁定 commit(github:owner/repo#sha)。

README

把 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

内容来自项目 README(GitHub)↗

链接

同类插件

查看整个分类 →

社区评论

评论公开保存在 GitHub Discussions。加载评论会连接 GitHub 和 Giscus;发表内容需要 GitHub 账号。