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:
- Does the package satisfy the bundle contract (
dsh.bundle.patch, patch rows,engines.dsh, README, LICENSE)? - 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 intoinsert/overriderows;- patch rows: non-empty
id, duplicate ids,overridewarnings; README.mdandLICENSE;- install-time scripts (
preinstall,install,postinstall,prepare).
Warnings do not fail the run; errors do.
What matrix does
For each version:
npm packthe plugin into a temporary directory;- create an isolated
DSH_HOME; npx -y @deepseek-ai/dsh@<version> plugin --profile ci add <tarball>;npx -y @deepseek-ai/dsh@<version> --profile ci --dump-config;- 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.
runMatrixaccepts an injectedexec, which is how the tests run without network or a real DSH install.
License
MIT
还没有评论,来写第一条。