dsh-forge
Static compatibility and permission verification for DeepSeek Harness plugins.
安装
此插件尚未提供可验证的 bundle,或兼容性检查未通过。请先阅读仓库说明。 阅读完整 README ↗
说明文档
阅读完整 README ↗DSH Forge
Static compatibility and permission verification for DeepSeek Harness plugins.
DSH Forge is a community developer tool, not an official DeepSeek product. A passing receipt is not a security audit.
What it does
DSH Forge checks a plugin before it is installed into a real profile:
- verifies the
dsh.bundleinstall contract; - checks official DSH peer ranges against a selected DSH baseline;
- applies the prerelease rule needed by DSH
rcversions; - reads declared and high-signal inferred permissions;
- records source provenance and platform compatibility;
- resolves immutable commit and package blob provenance for GitHub targets;
- discovers a unique plugin package in
packages/,plugins/, orapps/; - optionally runs
npm pack --dry-run --ignore-scriptsfor a local package; - emits a normalized JSON Receipt without absolute machine paths or user data.
The alpha never executes plugin lifecycle scripts and does not mutate ~/.dsh.
Quick start
npm install
npm run build
node dist/cli/main.js verify fixtures/public/healthy-plugin --smoke
node dist/cli/main.js verify https://github.com/owner/plugin --dsh-version 0.1.0-rc.7 --json receipt.json
node dist/cli/main.js verify https://github.com/owner/monorepo --path packages/plugin --json receipt.json
The default baseline is 0.1.0-rc.7, pinned to the public DSH tag dsh-v0.1.0-rc.7.
For GitHub API rate limits, set a read-only GITHUB_TOKEN in the environment. The token is used only for fetching public package.json content and is never written to a Receipt:
GITHUB_TOKEN=... node dist/cli/main.js verify https://github.com/owner/plugin
Monorepos
When the repository root is not a DSH plugin, DSH Forge scans package manifests under packages/, plugins/, and apps/. One DSH candidate is selected automatically. Multiple candidates fail with their paths so the workflow cannot silently verify the wrong plugin.
Select a package explicitly with either form:
node dist/cli/main.js verify https://github.com/owner/repository --ref main --path packages/plugin
node dist/cli/main.js verify https://github.com/owner/repository/tree/main/packages/plugin
The tree URL form treats the first segment after /tree/ as the ref. For branch names containing /, use the repository URL with separate --ref and --path options.
GitHub Receipts record the requested ref, resolved commit SHA, selected package.json path and blob SHA, numeric repository ID, SPDX license, and archived state. Remote source is read as data only; discovery never runs repository code.
GitHub Action
Plugin repositories can verify every pull request without installing or building DSH Forge:
name: DSH plugin compatibility
on:
pull_request:
push:
branches: [main]
permissions:
contents: read
jobs:
verify:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
- uses: ChaoYuZhang001/dsh-forge@v0.3.0-alpha.1
with:
target: .
github-token: ${{ github.token }}
The Action writes a check table to the workflow Summary, uploads a sanitized dsh-forge-receipt.json artifact for 14 days, and fails on a fail Receipt. Pin the full release tag or commit SHA in production workflows. Set upload-receipt: 'false' only when the workflow has its own artifact policy.
Repository boundary
This public repository contains source, schemas, tests, sanitized fixtures, CI rules, and public release receipts. It must not contain API keys, signing certificates, .env files, real ~/.dsh profiles, user transcripts, private plugin sources, or raw logs containing machine paths.
See SECURITY.md, CONTRIBUTING.md, and docs/release-policy.md.
Status
v0.3.0-alpha.1 adds deterministic monorepo package selection and immutable GitHub provenance to the reusable Action. It does not yet install plugins or mutate a DSH profile. Transactional profile installation, rollback, and the desktop operator will build on this Receipt contract in later releases.
License
MIT. See LICENSE.