@aisdlc/cli 4.4.0 → 4.5.0
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/dist/index.js +16 -2
- package/dist/index.js.map +1 -1
- package/package.json +3 -3
package/dist/index.js
CHANGED
|
@@ -103,8 +103,14 @@ function buildQualityViolations(result) {
|
|
|
103
103
|
metric: "unit-test",
|
|
104
104
|
message: `Function [${u.functionName}] lacks direct unit test`
|
|
105
105
|
}));
|
|
106
|
+
const untestedUi = (result.untestedUiComponents || []).map((c) => ({
|
|
107
|
+
file: c.file,
|
|
108
|
+
component: c.componentName,
|
|
109
|
+
metric: "ui-test",
|
|
110
|
+
message: `UI component [${c.componentName}] lacks UI/E2E test`
|
|
111
|
+
}));
|
|
106
112
|
const cov = (result.coverageViolations || []).map((message) => ({ metric: "coverage", message }));
|
|
107
|
-
return [...fnViolations, ...untested, ...cov];
|
|
113
|
+
return [...fnViolations, ...untested, ...untestedUi, ...cov];
|
|
108
114
|
}
|
|
109
115
|
function emitQualityJson(result) {
|
|
110
116
|
const violations = buildQualityViolations(result);
|
|
@@ -118,6 +124,7 @@ function emitQualityJson(result) {
|
|
|
118
124
|
passCount: result.passCount,
|
|
119
125
|
failCount: result.failCount,
|
|
120
126
|
untestedFunctionsCount: result.untestedFunctions?.length || 0,
|
|
127
|
+
untestedUiComponentsCount: result.untestedUiComponents?.length || 0,
|
|
121
128
|
coverageViolationsCount: result.coverageViolations?.length || 0,
|
|
122
129
|
baselineViolationsCount: result.baselineViolationsCount || 0,
|
|
123
130
|
toleratedViolationsCount: result.toleratedViolationsCount || 0,
|
|
@@ -148,6 +155,13 @@ function printQualityTestAndCoverageGaps(result) {
|
|
|
148
155
|
console.log(` ${pc.red("\u2716")} ${pc.bold(u.file)} [${u.functionName}]`);
|
|
149
156
|
}
|
|
150
157
|
}
|
|
158
|
+
const untestedUi = result.untestedUiComponents || [];
|
|
159
|
+
if (untestedUi.length > 0) {
|
|
160
|
+
console.log(pc.red("\n UI components lacking UI/E2E tests:"));
|
|
161
|
+
for (const c of untestedUi.slice(0, 15)) {
|
|
162
|
+
console.log(` ${pc.red("\u2716")} ${pc.bold(c.file)} [${c.componentName}]`);
|
|
163
|
+
}
|
|
164
|
+
}
|
|
151
165
|
for (const cv of result.coverageViolations || []) {
|
|
152
166
|
console.log(` ${pc.red("\u2716")} ${cv}`);
|
|
153
167
|
}
|
|
@@ -2861,7 +2875,7 @@ function runChangeNew(options) {
|
|
|
2861
2875
|
|
|
2862
2876
|
// src/index.ts
|
|
2863
2877
|
var program = new Command();
|
|
2864
|
-
program.name("aisdlc").description("AI-SDLC: Spec-Driven Development, Governance & Quality Gates for AI & Humans").version("4.
|
|
2878
|
+
program.name("aisdlc").description("AI-SDLC: Spec-Driven Development, Governance & Quality Gates for AI & Humans").version("4.5.0");
|
|
2865
2879
|
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) => {
|
|
2866
2880
|
const exitCode = await runDoctor({
|
|
2867
2881
|
rootDir: opts.root,
|