bowenliang123 / dsh-plugin-checker

已收录

GitHub Action for checking the correctness of DeepSeek Harness (dsh) plugin

main其他 查看源代码

安装

npx -y @deepseek-ai/dsh plugin --profile web add github:bowenliang123/dsh-plugin-checker

此安装命令根据 GitHub 仓库地址生成,是未经验证的安装起点。

README

维护者编写的文档快照。

在 GitHub 查看 ↗
提交版本 e19b9d2同步于 2026年8月18日

DeepSeek Harness Plugin Checker - GitHub Action

A GitHub Action that checks the correctness of a DeepSeek Harness (dsh) plugin.

It checks the plugin in the following order, cheapest first:

  1. Check the manifestpackage.json exists, is valid JSON, declares a name, declares dsh.bundle.patch, and the referenced patch file exists. A package without dsh.bundle is not a dsh plugin.
  2. Install with dsh — runs dsh plugin --profile web add; fails if dsh cannot install it (e.g. failed pnpm install).
  3. Verify the layer applies — runs dsh --profile web --dump-config and fails if the plugin does not appear as a bundle layer (# == <name>) in the composed config.

Usage

Add the action to your plugin repository's workflow:

name: ci

on:
  push:
    branches: [main]
  pull_request:

jobs:
  check-plugin:
    runs-on: ubuntu-latest
    steps:
      - uses: actions/checkout@v7
      - name: Check the DSH plugin
        uses: bowenliang123/dsh-plugin-checker@v1

This checks the repository root. To check a plugin that lives in a subdirectory, pass rootPath:

      - name: Check the DSH plugin
        uses: bowenliang123/dsh-plugin-checker@v1
        with:
          rootPath: plugins/my-plugin

Inputs

InputDescriptionRequiredDefault
rootPathPath to the plugin root directory, relative to the repository root.No.
profiledsh profile to install the plugin into.Noweb
dshVersionVersion of the @deepseek-ai/dsh npm package to install. Use latest for newest.Nolatest
pnpmVersionVersion of pnpm to install (dsh plugin management runs pnpm internally).Nolatest
nodeVersionNode.js version to run the dsh CLI with.No24

How it works

  1. Sets up Node.js and installs pnpm and the @deepseek-ai/dsh CLI (npm install @deepseek-ai/dsh) from npm.
  2. Checks the plugin's package.json manifest statically (valid JSON, name, dsh.bundle.patch declared, patch file exists).
  3. Runs dsh plugin --profile <profile> add <rootPath> to install the plugin into a fresh dsh profile under the runner home.
  4. Runs dsh --profile <profile> --dump-config and verifies the plugin shows up as a bundle layer (# == <name>), confirming the patch actually loads.

A plugin package.json looks like:

{
  "name": "my-dsh-plugin",
  "version": "0.1.0",
  "type": "module",
  "main": "index.js",
  "dsh": {
    "bundle": {
      "patch": "./cordis.patch.yml"
    }
  }
}

Examples

  • examples/hello-plugin — a minimal valid plugin that passes the check.
  • examples/broken-plugin — a plugin with an invalid package.json that must fail the check.

License

Apache License 2.0

项目文件与信号

以下项目是目录快照中检测到的公开仓库信号。

示例已检测

仓库信息

许可证
Apache-2.0
最新发布
v1.2.0
最后更新
2026年8月18日 16:05

谨慎安装

请检查源代码、权限、生命周期脚本、依赖与网络访问;不受信任的插件应先在隔离环境中测试。