vibe-splain 3.3.0 → 3.3.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.
|
@@ -2,5 +2,5 @@ import type { DossierViewModel, AnalysisStore } from '@vibe-splain/brain';
|
|
|
2
2
|
import type { Renderer } from './Renderer.js';
|
|
3
3
|
import type { Artifact } from '../ArtifactBundleWriter.js';
|
|
4
4
|
export declare class ValidationRenderer implements Renderer {
|
|
5
|
-
render(viewModel: DossierViewModel,
|
|
5
|
+
render(viewModel: DossierViewModel, store: AnalysisStore): Artifact[];
|
|
6
6
|
}
|
|
@@ -1,12 +1,13 @@
|
|
|
1
1
|
export class ValidationRenderer {
|
|
2
|
-
render(viewModel,
|
|
3
|
-
|
|
2
|
+
render(viewModel, store) {
|
|
3
|
+
const report = store.validationReport || viewModel.map.validation;
|
|
4
|
+
if (!report)
|
|
4
5
|
return [];
|
|
5
6
|
return [
|
|
6
7
|
{
|
|
7
8
|
type: 'validation',
|
|
8
9
|
path: 'validation_report.json',
|
|
9
|
-
content: JSON.stringify(
|
|
10
|
+
content: JSON.stringify(report, null, 2),
|
|
10
11
|
}
|
|
11
12
|
];
|
|
12
13
|
}
|
package/dist/index.js
CHANGED
|
@@ -2834,7 +2834,6 @@ async function runScoring(projectRoot, cr, binding) {
|
|
|
2834
2834
|
persisted[f.rel] = pf;
|
|
2835
2835
|
severityBreakdowns[f.rel] = `severity=${pf.canonicalSeverity} loadBearing=${pf.canonicalLoadBearing} effects=${pf.sideEffectProfile.join(",")} domain=${pf.productDomain}`;
|
|
2836
2836
|
}
|
|
2837
|
-
const store = { files: persisted };
|
|
2838
2837
|
const deltaTargets = Object.values(persisted).filter((pf) => pf.isRealSource).sort((a, b) => b.gravity - a.gravity).map((pf) => ({
|
|
2839
2838
|
path: pf.relativePath,
|
|
2840
2839
|
gravity: Math.round(pf.gravity),
|
|
@@ -2843,7 +2842,9 @@ async function runScoring(projectRoot, cr, binding) {
|
|
|
2843
2842
|
blastRadius: pf.importedBy,
|
|
2844
2843
|
pillarHint: pf.pillarHint
|
|
2845
2844
|
}));
|
|
2845
|
+
const store = { files: persisted };
|
|
2846
2846
|
const validationReport = await buildValidationReport(store, deltaTargets, projectRoot, cr);
|
|
2847
|
+
store.validationReport = validationReport;
|
|
2847
2848
|
for (const e of validationReport.errors) {
|
|
2848
2849
|
console.error(`[vibe-splain] VALIDATION ERROR [${e.rule}] ${e.file}: ${e.detail}`);
|
|
2849
2850
|
}
|
|
@@ -3023,7 +3024,8 @@ async function runPipeline(projectRoot) {
|
|
|
3023
3024
|
errors: scoring.validationReport.summary.errorCount,
|
|
3024
3025
|
warnings: scoring.validationReport.summary.warningCount,
|
|
3025
3026
|
reportPath: ".vibe-splainer/validation_report.json"
|
|
3026
|
-
}
|
|
3027
|
+
},
|
|
3028
|
+
fullValidationReport: scoring.validationReport
|
|
3027
3029
|
};
|
|
3028
3030
|
}
|
|
3029
3031
|
|
|
@@ -3605,14 +3607,15 @@ ${viewModel.map.brief}
|
|
|
3605
3607
|
|
|
3606
3608
|
// dist/export/renderers/ValidationRenderer.js
|
|
3607
3609
|
var ValidationRenderer = class {
|
|
3608
|
-
render(viewModel,
|
|
3609
|
-
|
|
3610
|
+
render(viewModel, store) {
|
|
3611
|
+
const report = store.validationReport || viewModel.map.validation;
|
|
3612
|
+
if (!report)
|
|
3610
3613
|
return [];
|
|
3611
3614
|
return [
|
|
3612
3615
|
{
|
|
3613
3616
|
type: "validation",
|
|
3614
3617
|
path: "validation_report.json",
|
|
3615
|
-
content: JSON.stringify(
|
|
3618
|
+
content: JSON.stringify(report, null, 2)
|
|
3616
3619
|
}
|
|
3617
3620
|
];
|
|
3618
3621
|
}
|
|
@@ -4394,7 +4397,7 @@ async function handleScanProject(args, options = {}) {
|
|
|
4394
4397
|
message: statusMsg,
|
|
4395
4398
|
scanId,
|
|
4396
4399
|
manifestPointer,
|
|
4397
|
-
validation: {
|
|
4400
|
+
validation: result.fullValidationReport || {
|
|
4398
4401
|
passed: validation.passed,
|
|
4399
4402
|
errors: validation.errors,
|
|
4400
4403
|
warnings: validation.warnings,
|
|
@@ -67,7 +67,7 @@ export async function handleScanProject(args, options = {}) {
|
|
|
67
67
|
message: statusMsg,
|
|
68
68
|
scanId,
|
|
69
69
|
manifestPointer,
|
|
70
|
-
validation: {
|
|
70
|
+
validation: result.fullValidationReport || {
|
|
71
71
|
passed: validation.passed,
|
|
72
72
|
errors: validation.errors,
|
|
73
73
|
warnings: validation.warnings,
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "vibe-splain",
|
|
3
|
-
"version": "3.3.
|
|
3
|
+
"version": "3.3.1",
|
|
4
4
|
"description": "Architectural mapping and behavioral call-chain engine. Built on a language-agnostic foundation with specialized optimization for TypeScript/JavaScript projects.",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"license": "MIT",
|