Apageoflove/DSH-changeproof ↗★ 1
dsh-changeproof
ChangeProof 变更关联与证据新鲜度质量插件,支持代码变更分析与测试验证。
AI 分析
核心用于分析项目代码变更并执行关联测试,确保结论未过期。适合在开发过程中需要进行自动化变更验证和测试的用户。
安装
$
npx -p @deepseek-ai/dsh dsh plugin --profile web add github:Apageoflove/DSH-changeproof说明文档
阅读完整 README ↗6. 使用
## 独立使用(不装 DSH)
```bash
cd
npm install && npm run build
node dist/host/cli.mjs plan --workspace # 仅分析
node dist/host/cli.mjs verify --workspace --yes # 执行测试
node dist/host/cli.mjs status --workspace # 结论是否过期
verify 不带 --yes 仅打印将执行的命令,确认后加 --yes 才执行。
被验证项目的配置
项目根目录放置 .changeproof.yml:
schemaVersion: 1
packages:
- id: web
root: packages/web
languages: [typescript]
include: [packages/web/src/**/*.ts]
test:
adapter: vitest-istanbul # 支持 vitest / jest / pytest
argv: [pnpm, vitest, run, --coverage]
cwd: packages/web
timeoutMs: 120000
coverageFile: packages/web/coverage/coverage-final.json
thresholds: { changedLines: 1.0, minimumImpactConfidence: MEDIUM }
exclude: ["**/generated/**", "**/*.d.ts"]
字段说明见 docs/configuration.md。