DeepSeek Harness Plugin Hub

发布与管理完整 Harness Profiles,发现适合你的插件。

探索

插件目录环境预设文档中心动态

社区

发布插件联系我们报告问题

相关链接

Plugin Hub GitHubDeepSeek Harness 官方项目系统状态隐私说明
© 2026 DeepSeek Harness Plugin HubPowered byPaxTech

独立、非官方社区项目,与 DeepSeek 官方无隶属、授权或背书关系。

Github Adapted — DeepSeek Harness 插件(DSH Plugin)
DeepSeek Harness Plugin Hub
ProfilesPlugins分类动态文档登录管理 Profiles
ProfilesPlugins分类动态文档登录
← Plugins
G

dsh-github-adapted

Github Adapted

将 @perrylink/dsh-github 0.7.15 适配至 DeepSeek Harness 0.2.0-rc.2(经典脚本客户端注册)——需审批的 GitHub PR/议题/评审工具

插件会安装到这里;不确定时保持 web。

npx -y @deepseek-ai/dsh plugin --profile web add github:shuqingyang666/dsh-github-adapted#6539ff22da8469ace72b68b98c35b95198c6d556
README兼容性版本

兼容性与来源证明

Github Adapted 以 dsh-github-adapted 发布,当前版本为 0.7.15-dsh2。Plugin Hub 会校验它的 manifest,并保存精确安装来源,便于复现安装结果。

DSH 兼容范围
*
运行环境
web
发布来源
github
Registry 更新时间
2026/10/4

版本

0.7.15-dsh2prerelease
2026/10/4

相关插件

正在加载相关插件…

最新版
0.7.15-dsh2
DSH
*
HMR
重启进程
Tree shaking
未声明可安全裁剪
解包体积
未提供
文件数
未提供
Surface
web
许可证
Apache-2.0
发布源
github
GitHub
★ 0
周下载
0
最近提交
2026/10/4
查看源码 ↗
README Badge

点击下方 Badge 复制 Markdown,粘贴到 README 即可。

这是你的 Plugin?认领权益 · 优先安全扫描

验证 package.json 声明的 GitHub 仓库,即可管理这个公开页面。认领后,Hub 会优先安排当前版本的安全扫描,并在通过后公开展示结果。

认领这个 Plugin →
报告问题

相关插件

继续浏览 developer-tools 分类下经过校验的插件。

Web App@deepseek-ai/dsh-web-appdsh 浏览器界面捆绑包:位于 dsh-base 之上的 Web 补丁层,加上运行时粘合插件(提供前端 dist、Web 界面提示符、bash 运行时变量和 URL 行)Sdk Minimal@deepseek-ai/dsh-sdk-minimal独立的最小 SDK 配置包:JSON-RPC、一个 DeepSeek 适配器、持久化 Shell 和 JSONL 会话Sdk App@deepseek-ai/dsh-sdk-appdsh SDK 配置包:基于 dsh-base 提供 stdio JSON-RPC 服务和进程生命周期管理Experimental Inspector@deepseek-ai/dsh-experimental-inspector用于 Host 调试和 Client Runtime 检查的实验性跨 realm CDP hub

README

dsh-github DSH 0.2 适配版

@perrylink/dsh-github 0.7.15 在 DeepSeek Harness 0.2.0-rc.2 上的适配构建。 上游仓库:PerryLink/dsh-github(Apache-2.0)。

English

问题

上游 0.7.15 发布的 lib/client.js 是 tsc 编译的 ESM 输出(带顶层 import)。 DSH 0.2.0-rc.2 的 client-modules 系统把插件 client 条目作为经典脚本执行 (合并 combo URL,经典 <script> 语义),顶层 import 直接 SyntaxError, 导致整个 application boot batch 解析失败:

Error: web boot: 1 entry did not activate
@perrylink/dsh-github: import failed (see console for the import error)

Uncaught SyntaxError: Cannot use import statement outside a module

桌面端连续崩溃两次后,宿主会自动把插件从 bundles 摘掉才恢复启动。

上游对应 issue:#12、 #13; 修复 PR:#14(撰写本文时尚未合并发布)。

适配原理

从宿主 0.2.0-rc.2 代码确认的 client 契约:

  • client.js 是经典脚本,执行时调用 window.__ModuleLoader__.load({ id, factory }) 自注册;
  • factory(require) 返回 module.exports,require 可解析宿主 seed 模块表 (react、react-dom、@deepseek-ai/dsh-client-ui-primitives、 @deepseek-ai/dsh-client-ui-slots、@deepseek-ai/dsh-client-ui-dockkit 等);
  • 启动图(boot graph)row 的 inject/external 来自插件 package.json 的 dsh.client 声明,无需改动。

因此只需把 ESM client 用 esbuild 打成 CJS(external 上述两个依赖), 再包一层注册壳(与宿主里其他经典 client 的形态一致):

(() => {
  try {
    window.__ModuleLoader__.load({
      id: "@perrylink/dsh-github",
      factory: (require) => {
        var module = { exports: {} };
        var exports = module.exports;
        /* esbuild CJS bundle */
        return module.exports;
      }
    });
  } catch (err) {
    console.warn("[dsh-github] client bootstrap failed:", err);
  }
})();

插件其余部分(cordis 服务半、15 个工具、斜杠命令)在 0.2.0-rc.2 上可直接工作,无需改动。

安装

本仓库根目录本身就是一个可安装的插件包(dsh-github-adapted),推荐 git 通道直装:

dsh plugin --profile desktop add github:shuqingyang666/dsh-github-adapted
# 或 web profile
dsh plugin --profile web add github:shuqingyang666/dsh-github-adapted

也可以用仓库内的 tarball 产物:

dsh plugin --profile desktop add ./dist/dsh-github-adapted-0.7.15-dsh2.tgz

重启宿主(或刷新页面)后生效。

注意:适配包名是 dsh-github-adapted(cordis 服务 id 仍是 dsh-github,Plugins 页卡片不变)。 与官方 @perrylink/dsh-github 二选一安装,避免同一服务注册两次。

从源码构建

依赖:Python 3.8+、pnpm(pnpm dlx esbuild)、node(验证脚本)。

# 1. 取上游 npm 包
pnpm pack @perrylink/dsh-github@0.7.15 --pack-destination .

# 2. 构建(解包 → esbuild CJS → 包注册壳 → 组装到仓库根目录 lib/,
#    同步改写 package.json / cordis.patch.yml 的包名绑定,并重打包 dist/)
python scripts/build.py perrylink-dsh-github-0.7.15.tgz

# 3. 验证
node scripts/verify-client.mjs lib/client.js

scripts/verify-served.py 用于对运行中的 profile 做实机验证(拉取宿主实际下发的 client 脚本并跑同样的契约测试):

dsh --profile web --no-open --port 34199        # 另一个终端
export DSH_WEB_BASE=http://127.0.0.1:34199
export DSH_WEB_TOKEN=<启动输出里的 ?token=... 值>
python scripts/verify-served.py

验证覆盖

  • node --check:经典脚本解析(ESM 顶层 import 会在此失败)
  • VM 契约测试(verify-client.mjs):模拟宿主的 __ModuleLoader__ 队列外观, 断言注册 id、factory(require) 返回值形态(cordis 插件的 inject + apply)
  • 实机验证:0.2.0-rc.2 web profile 启动无崩溃、插件进入启动编排图、 宿主下发的脚本字节与适配构建一致且通过同样的契约测试

上游发布后回归官方版

PR #14 合并并发布后,直接覆盖安装官方包即可:

dsh plugin --profile desktop add @perrylink/dsh-github

English

Upstream 0.7.15 ships lib/client.js as tsc ESM output (top-level import). DeepSeek Harness 0.2.0-rc.2 executes plugin client entries as classic scripts, so the import statement is a SyntaxError that fails the whole application boot batch ("web boot: 1 entry did not activate").

This repo rebuilds the client as a classic script that self-registers through window.__ModuleLoader__.load({ id, factory }) — the form the 0.2.0 client-modules system consumes — and rewrites the upstream package with only that file changed (dsh-github-adapted 0.7.15-dsh2). The repo root IS the installable plugin. Everything else (cordis host half, tools, commands) works on 0.2.0-rc.2 unchanged.

Install: dsh plugin --profile desktop add github:shuqingyang666/dsh-github-adapted. Build: see the Chinese section above (scripts/build.py).

License

Apache-2.0,基于 PerryLink/dsh-github 0.7.15 修改,仅替换 lib/client.js 并提升版本号,详见 NOTICE。