mirror of
https://github.com/NanmiCoder/cc-haha
synced 2026-07-15 12:53:31 +08:00
Contributors and coding agents need one local command that both reports and enforces the quality contract. This change turns the PR gate into the shared verification entrypoint, adds path-selected local lanes, tightens coverage accounting around changed lines, and documents the repair loop in contributor and agent-facing guidance. Constraint: Ordinary PR verification must stay non-live and runnable without provider credentials Constraint: Coverage policy updates in this commit require maintainer approval before push/merge Rejected: Keep quality guidance only in docs | agents need executable scripts and AGENTS.md instructions to follow the loop consistently Confidence: high Scope-risk: broad Directive: Do not bypass `bun run verify` for production changes; fix failed lanes and coverage reports instead of lowering thresholds Tested: bun run check:policy Tested: ALLOW_CLI_CORE_CHANGE=1 ALLOW_COVERAGE_BASELINE_CHANGE=1 bun run verify Not-tested: live provider baseline; no provider credentials were required for this non-live PR gate
117 lines
2.1 KiB
JSON
117 lines
2.1 KiB
JSON
{
|
|
"schemaVersion": 1,
|
|
"generatedAt": "2026-05-06T13:40:08.803Z",
|
|
"suites": {
|
|
"server-api": {
|
|
"lines": {
|
|
"covered": 10755,
|
|
"total": 15580,
|
|
"pct": 69.03
|
|
},
|
|
"functions": {
|
|
"covered": 1114,
|
|
"total": 1384,
|
|
"pct": 80.49
|
|
},
|
|
"branches": {
|
|
"covered": 0,
|
|
"total": 0,
|
|
"pct": 100
|
|
},
|
|
"statements": {
|
|
"covered": 10755,
|
|
"total": 15580,
|
|
"pct": 69.03
|
|
}
|
|
},
|
|
"agent-tools": {
|
|
"lines": {
|
|
"covered": 5691,
|
|
"total": 32341,
|
|
"pct": 17.6
|
|
},
|
|
"functions": {
|
|
"covered": 200,
|
|
"total": 1127,
|
|
"pct": 17.75
|
|
},
|
|
"branches": {
|
|
"covered": 0,
|
|
"total": 0,
|
|
"pct": 100
|
|
},
|
|
"statements": {
|
|
"covered": 5691,
|
|
"total": 32341,
|
|
"pct": 17.6
|
|
}
|
|
},
|
|
"agent-utils": {
|
|
"lines": {
|
|
"covered": 16164,
|
|
"total": 108320,
|
|
"pct": 14.92
|
|
},
|
|
"functions": {
|
|
"covered": 506,
|
|
"total": 4004,
|
|
"pct": 12.64
|
|
},
|
|
"branches": {
|
|
"covered": 0,
|
|
"total": 0,
|
|
"pct": 100
|
|
},
|
|
"statements": {
|
|
"covered": 16164,
|
|
"total": 108320,
|
|
"pct": 14.92
|
|
}
|
|
},
|
|
"adapters": {
|
|
"lines": {
|
|
"covered": 2151,
|
|
"total": 2814,
|
|
"pct": 76.44
|
|
},
|
|
"functions": {
|
|
"covered": 270,
|
|
"total": 322,
|
|
"pct": 83.85
|
|
},
|
|
"branches": {
|
|
"covered": 0,
|
|
"total": 0,
|
|
"pct": 100
|
|
},
|
|
"statements": {
|
|
"covered": 2151,
|
|
"total": 2814,
|
|
"pct": 76.44
|
|
}
|
|
},
|
|
"desktop": {
|
|
"lines": {
|
|
"covered": 18528,
|
|
"total": 27357,
|
|
"pct": 67.73
|
|
},
|
|
"functions": {
|
|
"covered": 639,
|
|
"total": 1206,
|
|
"pct": 52.99
|
|
},
|
|
"branches": {
|
|
"covered": 3461,
|
|
"total": 4718,
|
|
"pct": 73.36
|
|
},
|
|
"statements": {
|
|
"covered": 18528,
|
|
"total": 27357,
|
|
"pct": 67.73
|
|
}
|
|
}
|
|
}
|
|
}
|