@decantr/verifier 2.2.0 → 2.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.
package/README.md CHANGED
@@ -18,9 +18,11 @@ npm install @decantr/verifier
18
18
  - `critiqueFile()` for file-level review against compiled review-pack contracts
19
19
  - `createContractAssertions()` for explicit route, shell, accessibility, context, and design-token assertions derived from Essence/context
20
20
  - `createEvidenceBundle()` for privacy-redacted local evidence artifacts used by AI repair loops and CI
21
- - schema-backed report types for project audits, Project Health, Evidence Bundles, Workspace Health, file critiques, and showcase verification
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
24
26
  - published verifier report schemas are exercised by AJV-backed round-trip tests against real audit, critique, and shortlist-report outputs
25
27
  - project audits include runtime evidence when a built `dist/` output is present:
26
28
  - root document
@@ -56,6 +58,7 @@ function isBlocking(report: ProjectHealthReport) {
56
58
  - `@decantr/verifier/schema/verification-report.common.v1.json`
57
59
  - `@decantr/verifier/schema/project-audit-report.v1.json`
58
60
  - `@decantr/verifier/schema/project-health-report.v1.json`
61
+ - `@decantr/verifier/schema/decantr-ci-report.v1.json`
59
62
  - `@decantr/verifier/schema/evidence-bundle.v1.json`
60
63
  - `@decantr/verifier/schema/workspace-health-report.v1.json`
61
64
  - `@decantr/verifier/schema/file-critique-report.v1.json`
package/dist/index.d.ts CHANGED
@@ -126,6 +126,7 @@ declare const VERIFICATION_SCHEMA_URLS: {
126
126
  readonly common: "https://decantr.ai/schemas/verification-report.common.v1.json";
127
127
  readonly projectAudit: "https://decantr.ai/schemas/project-audit-report.v1.json";
128
128
  readonly projectHealth: "https://decantr.ai/schemas/project-health-report.v1.json";
129
+ readonly decantrCi: "https://decantr.ai/schemas/decantr-ci-report.v1.json";
129
130
  readonly evidenceBundle: "https://decantr.ai/schemas/evidence-bundle.v1.json";
130
131
  readonly workspaceHealth: "https://decantr.ai/schemas/workspace-health-report.v1.json";
131
132
  readonly fileCritique: "https://decantr.ai/schemas/file-critique-report.v1.json";
@@ -174,6 +175,13 @@ interface PackManifest {
174
175
  mutationType: string;
175
176
  }>;
176
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
+ }
177
185
  interface ProjectAuditReport {
178
186
  $schema: string;
179
187
  projectRoot: string;
@@ -364,6 +372,7 @@ interface CritiqueSourceInput {
364
372
  reviewPack?: ReviewExecutionPack | null;
365
373
  packManifest?: PackManifest | null;
366
374
  treatmentsCss?: string;
375
+ adoptionMode?: string | null;
367
376
  }
368
377
  interface ShowcaseShortlistVerificationEntry {
369
378
  slug: string;
@@ -458,9 +467,10 @@ interface ShowcaseShortlistVerificationReport {
458
467
  };
459
468
  results: ShowcaseShortlistVerificationEntry[];
460
469
  }
470
+ declare function collectMissingPackManifestFiles(projectRoot: string, packManifest?: PackManifest | null): MissingPackManifestFile[];
461
471
  declare function extractRouteHintsFromEssence(essence: EssenceFile | null): string[];
462
472
  declare function auditProject(projectRoot: string): Promise<ProjectAuditReport>;
463
- declare function critiqueSource({ filePath, code, reviewPack, packManifest, treatmentsCss, }: CritiqueSourceInput): FileCritiqueReport;
473
+ declare function critiqueSource({ filePath, code, reviewPack, packManifest, treatmentsCss, adoptionMode, }: CritiqueSourceInput): FileCritiqueReport;
464
474
  declare function critiqueFile(filePath: string, projectRoot: string): Promise<FileCritiqueReport>;
465
475
 
466
- 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 };