@aisdlc/core 1.3.2 → 1.4.1
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 +8 -0
- package/dist/index.cjs +5951 -4744
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +121 -18
- package/dist/index.d.ts +121 -18
- package/dist/index.js +5944 -4743
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -53,6 +53,7 @@ import {
|
|
|
53
53
|
verifySecrets,
|
|
54
54
|
scaffoldSddChange,
|
|
55
55
|
generateDashboardReport,
|
|
56
|
+
readCodeCoverageSummary,
|
|
56
57
|
} from '@aisdlc/core';
|
|
57
58
|
|
|
58
59
|
// 1. Run the deterministic Quality Gate on the codebase
|
|
@@ -72,6 +73,12 @@ const secretResult = verifySecrets({
|
|
|
72
73
|
rootDir: process.cwd(),
|
|
73
74
|
});
|
|
74
75
|
console.log(`Secret violations found: ${secretResult.violations.length}`);
|
|
76
|
+
|
|
77
|
+
// 4. Ingest automated test coverage (LCOV from Coverlet/ReportGenerator, Vitest, etc.)
|
|
78
|
+
const coverage = readCodeCoverageSummary(process.cwd());
|
|
79
|
+
if (coverage) {
|
|
80
|
+
console.log(`Line coverage: ${coverage.linesPct}%, Branch: ${coverage.branchesPct}%`);
|
|
81
|
+
}
|
|
75
82
|
```
|
|
76
83
|
|
|
77
84
|
## AI-SDLC architecture
|
|
@@ -151,6 +158,7 @@ This separation allows the core functionality to be reused by different interfac
|
|
|
151
158
|
| --- | --- | --- |
|
|
152
159
|
| **Interactive Offline Dashboard** | Generates a 100% self-contained offline HTML dashboard with Cytoscape.js interactive graph for visualizing the full PDaC and RTM network. | `generateDashboardReport`, `buildGraphElements`, `renderDashboardHtml` |
|
|
153
160
|
| **Formal Code Quality Reporting** | Compiles granular polyglot code quality analysis into structured Markdown reports (`reports/QUALITY_REPORT.md`). | `generateQualityReport`, `writeQualityReport`, `calculateRating` |
|
|
161
|
+
| **Code Coverage Ingestion** | Passively ingests test coverage summaries from standard formats (`coverage/lcov.info`, `coverage/coverage-summary.json`) across polyglot stacks (.NET via Coverlet & ReportGenerator, Node.js, Python). | `readCodeCoverageSummary` |
|
|
154
162
|
| **Pull Request KPIs & Telemetry** | Calculates human vs. AI agent contribution ratios, review cycle duration, and token usage, formatting them for PR templates. | `aggregatePrKpis`, `formatPrKpiMarkdown`, `injectKpisIntoPrBody` |
|
|
155
163
|
| **Release KPIs & Defect Injection Rate** | Computes release-level engineering metrics, Defect Injection Rate (DIR) per author/model, rework costs, and defect density. | `aggregateReleaseKpis`, `formatReleaseKpiMarkdown`, `writeReleaseKpiReport` |
|
|
156
164
|
|