@decantr/verifier 2.3.0 → 2.3.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 +3 -0
- package/dist/index.d.ts +11 -2
- package/dist/index.js +246 -99
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -21,6 +21,9 @@ npm install @decantr/verifier
|
|
|
21
21
|
- schema-backed report types for project audits, Project Health, Decantr CI reports, Evidence Bundles, Workspace Health, file critiques, and showcase verification
|
|
22
22
|
- `ProjectHealthReport`, `ProjectHealthFinding`, and `ProjectHealthRemediation` types for the CLI's end-user health surface
|
|
23
23
|
- interaction findings now include scanned file counts, file line ranges, and expected signal evidence where available, so CLI health/check output can point agents at source-grounded remediation
|
|
24
|
+
- contract-only Brownfield critique avoids requiring Decantr treatments/decorators when the project keeps its own styling authority
|
|
25
|
+
- project audits check that `pack-manifest.json` references real pack markdown/JSON files on disk
|
|
26
|
+
- project source audits ignore test, spec, story, fixture, and mock files for production drift warnings such as localhost endpoints and unsafe rendering patterns
|
|
24
27
|
- published verifier report schemas are exercised by AJV-backed round-trip tests against real audit, critique, and shortlist-report outputs
|
|
25
28
|
- project audits include runtime evidence when a built `dist/` output is present:
|
|
26
29
|
- root document
|
package/dist/index.d.ts
CHANGED
|
@@ -175,6 +175,13 @@ interface PackManifest {
|
|
|
175
175
|
mutationType: string;
|
|
176
176
|
}>;
|
|
177
177
|
}
|
|
178
|
+
interface MissingPackManifestFile {
|
|
179
|
+
entryId: string;
|
|
180
|
+
kind: 'scaffold' | 'review' | 'section' | 'page' | 'mutation';
|
|
181
|
+
field: 'markdown' | 'json';
|
|
182
|
+
relativePath: string;
|
|
183
|
+
absolutePath: string;
|
|
184
|
+
}
|
|
178
185
|
interface ProjectAuditReport {
|
|
179
186
|
$schema: string;
|
|
180
187
|
projectRoot: string;
|
|
@@ -365,6 +372,7 @@ interface CritiqueSourceInput {
|
|
|
365
372
|
reviewPack?: ReviewExecutionPack | null;
|
|
366
373
|
packManifest?: PackManifest | null;
|
|
367
374
|
treatmentsCss?: string;
|
|
375
|
+
adoptionMode?: string | null;
|
|
368
376
|
}
|
|
369
377
|
interface ShowcaseShortlistVerificationEntry {
|
|
370
378
|
slug: string;
|
|
@@ -459,9 +467,10 @@ interface ShowcaseShortlistVerificationReport {
|
|
|
459
467
|
};
|
|
460
468
|
results: ShowcaseShortlistVerificationEntry[];
|
|
461
469
|
}
|
|
470
|
+
declare function collectMissingPackManifestFiles(projectRoot: string, packManifest?: PackManifest | null): MissingPackManifestFile[];
|
|
462
471
|
declare function extractRouteHintsFromEssence(essence: EssenceFile | null): string[];
|
|
463
472
|
declare function auditProject(projectRoot: string): Promise<ProjectAuditReport>;
|
|
464
|
-
declare function critiqueSource({ filePath, code, reviewPack, packManifest, treatmentsCss, }: CritiqueSourceInput): FileCritiqueReport;
|
|
473
|
+
declare function critiqueSource({ filePath, code, reviewPack, packManifest, treatmentsCss, adoptionMode, }: CritiqueSourceInput): FileCritiqueReport;
|
|
465
474
|
declare function critiqueFile(filePath: string, projectRoot: string): Promise<FileCritiqueReport>;
|
|
466
475
|
|
|
467
|
-
export { type BuiltDistAuditOptions, type ContractAssertion, type ContractAssertionCategory, type CritiqueSourceInput, EVIDENCE_BUNDLE_SCHEMA_URL, type EvidenceBundle, type EvidenceBundleInput, type EvidenceProvenanceEntry, type FileCritiqueReport, INTERACTION_SIGNALS, type InteractionMissingFinding, type InteractionRequirement, type InteractionSignal, type PackManifest, type ProjectAuditReport, type ProjectHealthFinding, type ProjectHealthFindingSource, type ProjectHealthPackSummary, type ProjectHealthRemediation, type ProjectHealthReport, type ProjectHealthRouteSummary, type ProjectHealthStatus, type RuntimeAudit, type ShowcaseShortlistVerificationEntry, type ShowcaseShortlistVerificationReport, VERIFICATION_SCHEMA_URLS, type VerificationFinding, type VerificationScore, type VerificationSeverity, auditBuiltDist, auditProject, createContractAssertions, createEvidenceBundle, critiqueFile, critiqueSource, emptyRuntimeAudit, extractRouteHintsFromEssence, listKnownInteractions, verifyInteractionsInSource };
|
|
476
|
+
export { type BuiltDistAuditOptions, type ContractAssertion, type ContractAssertionCategory, type CritiqueSourceInput, EVIDENCE_BUNDLE_SCHEMA_URL, type EvidenceBundle, type EvidenceBundleInput, type EvidenceProvenanceEntry, type FileCritiqueReport, INTERACTION_SIGNALS, type InteractionMissingFinding, type InteractionRequirement, type InteractionSignal, type MissingPackManifestFile, type PackManifest, type ProjectAuditReport, type ProjectHealthFinding, type ProjectHealthFindingSource, type ProjectHealthPackSummary, type ProjectHealthRemediation, type ProjectHealthReport, type ProjectHealthRouteSummary, type ProjectHealthStatus, type RuntimeAudit, type ShowcaseShortlistVerificationEntry, type ShowcaseShortlistVerificationReport, VERIFICATION_SCHEMA_URLS, type VerificationFinding, type VerificationScore, type VerificationSeverity, auditBuiltDist, auditProject, collectMissingPackManifestFiles, createContractAssertions, createEvidenceBundle, critiqueFile, critiqueSource, emptyRuntimeAudit, extractRouteHintsFromEssence, listKnownInteractions, verifyInteractionsInSource };
|