DSH HUB
首页插件商店插件包社区排行榜资源发布指南
插件源码
返回插件目录

PerryLink /

PerryLink/dsh-plugin-ci

仅 Topic 仓库

Cross-version CI matrix and manifest gate for DeepSeek Harness plugins.

★ 2 Stars0 Forks0 IssuesN/A 社区评分0 已确认安装
查看 GitHub
README来源: main@2055e18c

dsh-plugin-ci

Cross-version CI matrix and manifest gate for DeepSeek Harness plugins.

DSH ships 40+ prereleases in three months, and a plugin that works on one version can fail to load on the next. This tool answers two questions in CI:

  1. Does the package satisfy the bundle contract (dsh.bundle.patch, patch rows, engines.dsh, README, LICENSE)?
  2. Does it still install and compose on the DSH versions you claim to support?

Install

npx dsh-plugin-ci check .
npx dsh-plugin-ci matrix . --versions 0.2.2-rc.5,0.2.3-alpha.2

In GitHub Actions:

- uses: PerryLink/dsh-plugin-ci@v1
  with:
    path: .
    versions: 0.2.2-rc.5,0.2.3-alpha.2

Or run the action locally:

node bin/dsh-plugin-ci.mjs check .
node bin/dsh-plugin-ci.mjs matrix . --versions 0.2.2-rc.5,0.2.3-alpha.2 --json

What check looks at

  • package.json: name, semver version, description, engines.dsh, files;
  • dsh.bundle.patch: exists and parses into insert / override rows;
  • patch rows: non-empty id, duplicate ids, override warnings;
  • README.md and LICENSE;
  • install-time scripts (preinstall, install, postinstall, prepare).

Warnings do not fail the run; errors do.

What matrix does

For each version:

  1. npm pack the plugin into a temporary directory;
  2. create an isolated DSH_HOME;
  3. npx -y @deepseek-ai/dsh@<version> plugin --profile ci add <tarball>;
  4. npx -y @deepseek-ai/dsh@<version> --profile ci --dump-config;
  5. record PASS/FAIL and the tail of the output.

The matrix needs npm and network access on a cold cache. It is intentionally separate from check, so a manifest gate can run on every PR while the full matrix runs nightly or on release.

Design

  • No runtime dependency; Node 22.19+.
  • The YAML reader is a deliberately small subset parser, not a YAML engine.
  • runMatrix accepts an injected exec, which is how the tests run without network or a real DSH install.

License

MIT

—/ 5

暂无评分

需要先验证清单

Commit 2055e18c1862

社区评论

还没有评论,来写第一条。

DSH HUB

社区维护的 DSH 插件索引。不是 GitHub 或 DeepSeek AI 的官方产品。

社区资源API关于