@aisdlc/cli 4.5.0 → 4.5.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +5 -1
- package/dist/index.js +5 -3
- package/dist/index.js.map +1 -1
- package/package.json +3 -3
package/README.md
CHANGED
|
@@ -138,9 +138,13 @@ Running `aisdlc init` (or `npx @aisdlc/cli init`) delivers a turnkey governance
|
|
|
138
138
|
|
|
139
139
|
### Automated Code Coverage Ingestion (.NET / Polyglot)
|
|
140
140
|
|
|
141
|
-
`aisdlc
|
|
141
|
+
`aisdlc verify quality`, `aisdlc verify all`, `aisdlc report quality`, and `aisdlc report dashboard` passively ingest test coverage from standard locations:
|
|
142
142
|
- `coverage/lcov.info` or `reports/lcov.info` (LCOV format)
|
|
143
143
|
- `coverage/coverage-summary.json` or `reports/coverage-summary.json` (Istanbul/JSON summary format)
|
|
144
|
+
- `coverage.cobertura.xml` / `coverage.xml` / `TestResults/*/coverage.cobertura.xml` (Cobertura XML, e.g. .NET Coverlet & Pytest)
|
|
145
|
+
- `jacoco.xml`, `coverage.out` (Go), `llvm-cov.json` (Rust/C++)
|
|
146
|
+
|
|
147
|
+
> **Strict Enforcement:** In `STRICT` mode (`quality-policy.yaml`), `aisdlc verify quality` (enabled by default), `aisdlc verify all`, and `aisdlc report quality` fail if no coverage report is found on disk. In `PERMISSIVE` mode (or during pre-flight `aisdlc check`), missing coverage is non-blocking.
|
|
144
148
|
|
|
145
149
|
#### Setting up .NET / C# projects:
|
|
146
150
|
1. Ensure `coverlet.collector` is installed in your test project (`*.Tests.csproj`):
|
package/dist/index.js
CHANGED
|
@@ -3,6 +3,7 @@
|
|
|
3
3
|
// src/index.ts
|
|
4
4
|
import { Command } from "commander";
|
|
5
5
|
import pc12 from "picocolors";
|
|
6
|
+
import { formatAisdlcVersionOutput } from "@aisdlc/core";
|
|
6
7
|
|
|
7
8
|
// src/commands/check.ts
|
|
8
9
|
import * as fs from "fs";
|
|
@@ -212,7 +213,8 @@ function runVerifyQuality(options = {}) {
|
|
|
212
213
|
thresholds: buildQualityThresholds(options),
|
|
213
214
|
updateBaseline: options.updateBaseline,
|
|
214
215
|
baseline: options.baseline,
|
|
215
|
-
ratchet: options.ratchet
|
|
216
|
+
ratchet: options.ratchet,
|
|
217
|
+
requireCoverageReport: options.requireCoverageReport
|
|
216
218
|
});
|
|
217
219
|
if (useJson) {
|
|
218
220
|
emitQualityJson(result);
|
|
@@ -1357,7 +1359,7 @@ function auditPdacGate(rootDir, wasAutoFixed) {
|
|
|
1357
1359
|
};
|
|
1358
1360
|
}
|
|
1359
1361
|
function auditQualityGate(rootDir) {
|
|
1360
|
-
const res = verifyQualityGate2({ rootDir });
|
|
1362
|
+
const res = verifyQualityGate2({ rootDir, requireCoverageReport: false });
|
|
1361
1363
|
if (res.success) {
|
|
1362
1364
|
return {
|
|
1363
1365
|
name: "Quality Gate (Complexity & Maintainability)",
|
|
@@ -2875,7 +2877,7 @@ function runChangeNew(options) {
|
|
|
2875
2877
|
|
|
2876
2878
|
// src/index.ts
|
|
2877
2879
|
var program = new Command();
|
|
2878
|
-
program.name("aisdlc").description("AI-SDLC: Spec-Driven Development, Governance & Quality Gates for AI & Humans").version(
|
|
2880
|
+
program.name("aisdlc").description("AI-SDLC: Spec-Driven Development, Governance & Quality Gates for AI & Humans").version(formatAisdlcVersionOutput());
|
|
2879
2881
|
program.command("doctor").description("Comprehensive environment, toolchain, git-hooks, and security health diagnostics").option("-r, --root <path>", "Project root directory").option("--fix", "Automatically repair broken or missing git hooks with backup").option("--json", "Emit diagnostics report in structured JSON format").option("--strict", "Fail with non-zero exit code on warnings as well as critical failures").option("--offline", "Skip remote external network probes (e.g. for air-gapped environments)").option("--timeout <ms>", "Maximum timeout in milliseconds for subprocess execution", parseInt).action(async (opts) => {
|
|
2880
2882
|
const exitCode = await runDoctor({
|
|
2881
2883
|
rootDir: opts.root,
|