@zxyycom/vibe-check 0.0.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/LICENSE +21 -0
- package/README.md +154 -0
- package/dist/esm/check/check.mjs +5 -0
- package/dist/esm/check/check.mjs.map +1 -0
- package/dist/esm/check/descriptor-validation.mjs +37 -0
- package/dist/esm/check/descriptor-validation.mjs.map +1 -0
- package/dist/esm/check/descriptor.mjs +2 -0
- package/dist/esm/check/descriptor.mjs.map +1 -0
- package/dist/esm/check/inherited-collection.mjs +62 -0
- package/dist/esm/check/inherited-collection.mjs.map +1 -0
- package/dist/esm/check/options-snapshot.mjs +75 -0
- package/dist/esm/check/options-snapshot.mjs.map +1 -0
- package/dist/esm/check-settlement/fact-validation.mjs +216 -0
- package/dist/esm/check-settlement/fact-validation.mjs.map +1 -0
- package/dist/esm/check-settlement/facts.mjs +2 -0
- package/dist/esm/check-settlement/facts.mjs.map +1 -0
- package/dist/esm/check-settlement/outcome-normalization.mjs +80 -0
- package/dist/esm/check-settlement/outcome-normalization.mjs.map +1 -0
- package/dist/esm/check-settlement/record-store.mjs +59 -0
- package/dist/esm/check-settlement/record-store.mjs.map +1 -0
- package/dist/esm/check-settlement/session.mjs +179 -0
- package/dist/esm/check-settlement/session.mjs.map +1 -0
- package/dist/esm/data-boundary/canonical-data.mjs +159 -0
- package/dist/esm/data-boundary/canonical-data.mjs.map +1 -0
- package/dist/esm/data-boundary/canonical-json.mjs +2 -0
- package/dist/esm/data-boundary/canonical-json.mjs.map +1 -0
- package/dist/esm/data-boundary/closed-values.mjs +98 -0
- package/dist/esm/data-boundary/closed-values.mjs.map +1 -0
- package/dist/esm/data-boundary/value-shapes.mjs +13 -0
- package/dist/esm/data-boundary/value-shapes.mjs.map +1 -0
- package/dist/esm/finding-waivers/reconciliation.mjs +84 -0
- package/dist/esm/finding-waivers/reconciliation.mjs.map +1 -0
- package/dist/esm/index.mjs +26 -0
- package/dist/esm/index.mjs.map +1 -0
- package/dist/esm/machine-output/v4/atomic-publication.mjs +102 -0
- package/dist/esm/machine-output/v4/atomic-publication.mjs.map +1 -0
- package/dist/esm/machine-output/v4/freeze-publication-value.mjs +14 -0
- package/dist/esm/machine-output/v4/freeze-publication-value.mjs.map +1 -0
- package/dist/esm/machine-output/v4/projection.mjs +23 -0
- package/dist/esm/machine-output/v4/projection.mjs.map +1 -0
- package/dist/esm/machine-output/v4/publication-invariants.mjs +59 -0
- package/dist/esm/machine-output/v4/publication-invariants.mjs.map +1 -0
- package/dist/esm/machine-output/v4/publication-model.mjs +19 -0
- package/dist/esm/machine-output/v4/publication-model.mjs.map +1 -0
- package/dist/esm/machine-output/v4/publish.mjs +20 -0
- package/dist/esm/machine-output/v4/publish.mjs.map +1 -0
- package/dist/esm/machine-output/v4/records-fingerprint.mjs +9 -0
- package/dist/esm/machine-output/v4/records-fingerprint.mjs.map +1 -0
- package/dist/esm/machine-output/v4/schema-identities.mjs +8 -0
- package/dist/esm/machine-output/v4/schema-identities.mjs.map +1 -0
- package/dist/esm/machine-output/v4/schema.mjs +50 -0
- package/dist/esm/machine-output/v4/schema.mjs.map +1 -0
- package/dist/esm/machine-output/v4/serializers.mjs +9 -0
- package/dist/esm/machine-output/v4/serializers.mjs.map +1 -0
- package/dist/esm/machine-output/v4/validation-result.mjs +16 -0
- package/dist/esm/machine-output/v4/validation-result.mjs.map +1 -0
- package/dist/esm/machine-output/v4/validation.mjs +131 -0
- package/dist/esm/machine-output/v4/validation.mjs.map +1 -0
- package/dist/esm/package-checks/code-quality-findings/policy.mjs +49 -0
- package/dist/esm/package-checks/code-quality-findings/policy.mjs.map +1 -0
- package/dist/esm/package-checks/duplicate-detection/area-policy.mjs +71 -0
- package/dist/esm/package-checks/duplicate-detection/area-policy.mjs.map +1 -0
- package/dist/esm/package-checks/duplicate-detection/cache/cache-contract.mjs +2 -0
- package/dist/esm/package-checks/duplicate-detection/cache/cache-contract.mjs.map +1 -0
- package/dist/esm/package-checks/duplicate-detection/cache/identity.mjs +37 -0
- package/dist/esm/package-checks/duplicate-detection/cache/identity.mjs.map +1 -0
- package/dist/esm/package-checks/duplicate-detection/cache/key.mjs +38 -0
- package/dist/esm/package-checks/duplicate-detection/cache/key.mjs.map +1 -0
- package/dist/esm/package-checks/duplicate-detection/cache/payload.mjs +47 -0
- package/dist/esm/package-checks/duplicate-detection/cache/payload.mjs.map +1 -0
- package/dist/esm/package-checks/duplicate-detection/cache/store.mjs +44 -0
- package/dist/esm/package-checks/duplicate-detection/cache/store.mjs.map +1 -0
- package/dist/esm/package-checks/duplicate-detection/default-check.mjs +39 -0
- package/dist/esm/package-checks/duplicate-detection/default-check.mjs.map +1 -0
- package/dist/esm/package-checks/duplicate-detection/execution.mjs +124 -0
- package/dist/esm/package-checks/duplicate-detection/execution.mjs.map +1 -0
- package/dist/esm/package-checks/duplicate-detection/final-data.mjs +6 -0
- package/dist/esm/package-checks/duplicate-detection/final-data.mjs.map +1 -0
- package/dist/esm/package-checks/duplicate-detection/jscpd/availability.mjs +77 -0
- package/dist/esm/package-checks/duplicate-detection/jscpd/availability.mjs.map +1 -0
- package/dist/esm/package-checks/duplicate-detection/jscpd/command-path.mjs +6 -0
- package/dist/esm/package-checks/duplicate-detection/jscpd/command-path.mjs.map +1 -0
- package/dist/esm/package-checks/duplicate-detection/jscpd/command-resolution.mjs +87 -0
- package/dist/esm/package-checks/duplicate-detection/jscpd/command-resolution.mjs.map +1 -0
- package/dist/esm/package-checks/duplicate-detection/jscpd/json-report.mjs +94 -0
- package/dist/esm/package-checks/duplicate-detection/jscpd/json-report.mjs.map +1 -0
- package/dist/esm/package-checks/duplicate-detection/jscpd/scanner-contract.mjs +2 -0
- package/dist/esm/package-checks/duplicate-detection/jscpd/scanner-contract.mjs.map +1 -0
- package/dist/esm/package-checks/duplicate-detection/jscpd/scanner.mjs +180 -0
- package/dist/esm/package-checks/duplicate-detection/jscpd/scanner.mjs.map +1 -0
- package/dist/esm/package-checks/duplicate-detection/jscpd/scoped-fragments.mjs +10 -0
- package/dist/esm/package-checks/duplicate-detection/jscpd/scoped-fragments.mjs.map +1 -0
- package/dist/esm/package-checks/duplicate-detection/measurement-model.mjs +2 -0
- package/dist/esm/package-checks/duplicate-detection/measurement-model.mjs.map +1 -0
- package/dist/esm/package-checks/duplicate-detection/measurement.mjs +151 -0
- package/dist/esm/package-checks/duplicate-detection/measurement.mjs.map +1 -0
- package/dist/esm/package-checks/duplicate-detection/options-resolution.mjs +126 -0
- package/dist/esm/package-checks/duplicate-detection/options-resolution.mjs.map +1 -0
- package/dist/esm/package-checks/duplicate-detection/options-validation.mjs +60 -0
- package/dist/esm/package-checks/duplicate-detection/options-validation.mjs.map +1 -0
- package/dist/esm/package-checks/duplicate-detection/options.mjs +2 -0
- package/dist/esm/package-checks/duplicate-detection/options.mjs.map +1 -0
- package/dist/esm/package-checks/duplicate-detection/project-revision.mjs +5 -0
- package/dist/esm/package-checks/duplicate-detection/project-revision.mjs.map +1 -0
- package/dist/esm/package-checks/duplicate-detection/records.mjs +119 -0
- package/dist/esm/package-checks/duplicate-detection/records.mjs.map +1 -0
- package/dist/esm/package-checks/file-metrics/constructor.mjs +39 -0
- package/dist/esm/package-checks/file-metrics/constructor.mjs.map +1 -0
- package/dist/esm/package-checks/file-metrics/execution.mjs +170 -0
- package/dist/esm/package-checks/file-metrics/execution.mjs.map +1 -0
- package/dist/esm/package-checks/file-metrics/final-data.mjs +6 -0
- package/dist/esm/package-checks/file-metrics/final-data.mjs.map +1 -0
- package/dist/esm/package-checks/file-metrics/measurement-model.mjs +2 -0
- package/dist/esm/package-checks/file-metrics/measurement-model.mjs.map +1 -0
- package/dist/esm/package-checks/file-metrics/measurement.mjs +33 -0
- package/dist/esm/package-checks/file-metrics/measurement.mjs.map +1 -0
- package/dist/esm/package-checks/file-metrics/options-resolution.mjs +171 -0
- package/dist/esm/package-checks/file-metrics/options-resolution.mjs.map +1 -0
- package/dist/esm/package-checks/file-metrics/options-validation.mjs +82 -0
- package/dist/esm/package-checks/file-metrics/options-validation.mjs.map +1 -0
- package/dist/esm/package-checks/file-metrics/options.mjs +2 -0
- package/dist/esm/package-checks/file-metrics/options.mjs.map +1 -0
- package/dist/esm/package-checks/file-metrics/records.mjs +109 -0
- package/dist/esm/package-checks/file-metrics/records.mjs.map +1 -0
- package/dist/esm/package-checks/file-metrics/scc/availability.mjs +59 -0
- package/dist/esm/package-checks/file-metrics/scc/availability.mjs.map +1 -0
- package/dist/esm/package-checks/file-metrics/scc/csv.mjs +17 -0
- package/dist/esm/package-checks/file-metrics/scc/csv.mjs.map +1 -0
- package/dist/esm/package-checks/file-metrics/scc/parser.mjs +145 -0
- package/dist/esm/package-checks/file-metrics/scc/parser.mjs.map +1 -0
- package/dist/esm/package-checks/file-metrics/scc/scanner.mjs +54 -0
- package/dist/esm/package-checks/file-metrics/scc/scanner.mjs.map +1 -0
- package/dist/esm/package-checks/final-data-parsing.mjs +35 -0
- package/dist/esm/package-checks/final-data-parsing.mjs.map +1 -0
- package/dist/esm/package-checks/function-metrics/analysis.mjs +96 -0
- package/dist/esm/package-checks/function-metrics/analysis.mjs.map +1 -0
- package/dist/esm/package-checks/function-metrics/constructor.mjs +43 -0
- package/dist/esm/package-checks/function-metrics/constructor.mjs.map +1 -0
- package/dist/esm/package-checks/function-metrics/execution.mjs +178 -0
- package/dist/esm/package-checks/function-metrics/execution.mjs.map +1 -0
- package/dist/esm/package-checks/function-metrics/final-data.mjs +6 -0
- package/dist/esm/package-checks/function-metrics/final-data.mjs.map +1 -0
- package/dist/esm/package-checks/function-metrics/lizard/availability.mjs +64 -0
- package/dist/esm/package-checks/function-metrics/lizard/availability.mjs.map +1 -0
- package/dist/esm/package-checks/function-metrics/lizard/csv.mjs +17 -0
- package/dist/esm/package-checks/function-metrics/lizard/csv.mjs.map +1 -0
- package/dist/esm/package-checks/function-metrics/lizard/parser.mjs +138 -0
- package/dist/esm/package-checks/function-metrics/lizard/parser.mjs.map +1 -0
- package/dist/esm/package-checks/function-metrics/lizard/scanner.mjs +35 -0
- package/dist/esm/package-checks/function-metrics/lizard/scanner.mjs.map +1 -0
- package/dist/esm/package-checks/function-metrics/measurement-model.mjs +2 -0
- package/dist/esm/package-checks/function-metrics/measurement-model.mjs.map +1 -0
- package/dist/esm/package-checks/function-metrics/measurement.mjs +35 -0
- package/dist/esm/package-checks/function-metrics/measurement.mjs.map +1 -0
- package/dist/esm/package-checks/function-metrics/options-resolution.mjs +171 -0
- package/dist/esm/package-checks/function-metrics/options-resolution.mjs.map +1 -0
- package/dist/esm/package-checks/function-metrics/options-validation.mjs +71 -0
- package/dist/esm/package-checks/function-metrics/options-validation.mjs.map +1 -0
- package/dist/esm/package-checks/function-metrics/options.mjs +2 -0
- package/dist/esm/package-checks/function-metrics/options.mjs.map +1 -0
- package/dist/esm/package-checks/function-metrics/records.mjs +133 -0
- package/dist/esm/package-checks/function-metrics/records.mjs.map +1 -0
- package/dist/esm/package-checks/function-metrics/target-files.mjs +75 -0
- package/dist/esm/package-checks/function-metrics/target-files.mjs.map +1 -0
- package/dist/esm/package-checks/host-environment/error-message.mjs +4 -0
- package/dist/esm/package-checks/host-environment/error-message.mjs.map +1 -0
- package/dist/esm/package-checks/host-environment/filesystem.mjs +81 -0
- package/dist/esm/package-checks/host-environment/filesystem.mjs.map +1 -0
- package/dist/esm/package-checks/host-environment/git.mjs +51 -0
- package/dist/esm/package-checks/host-environment/git.mjs.map +1 -0
- package/dist/esm/package-checks/host-environment/path.mjs +18 -0
- package/dist/esm/package-checks/host-environment/path.mjs.map +1 -0
- package/dist/esm/package-checks/host-environment/process/command.mjs +13 -0
- package/dist/esm/package-checks/host-environment/process/command.mjs.map +1 -0
- package/dist/esm/package-checks/host-environment/process/contract.mjs +2 -0
- package/dist/esm/package-checks/host-environment/process/contract.mjs.map +1 -0
- package/dist/esm/package-checks/host-environment/process/env.mjs +19 -0
- package/dist/esm/package-checks/host-environment/process/env.mjs.map +1 -0
- package/dist/esm/package-checks/host-environment/process/failure.mjs +34 -0
- package/dist/esm/package-checks/host-environment/process/failure.mjs.map +1 -0
- package/dist/esm/package-checks/host-environment/process/result.mjs +33 -0
- package/dist/esm/package-checks/host-environment/process/result.mjs.map +1 -0
- package/dist/esm/package-checks/host-environment/process/runner.mjs +30 -0
- package/dist/esm/package-checks/host-environment/process/runner.mjs.map +1 -0
- package/dist/esm/package-checks/json-document/strict-document.mjs +163 -0
- package/dist/esm/package-checks/json-document/strict-document.mjs.map +1 -0
- package/dist/esm/package-checks/json-schema-validation/default-check.mjs +39 -0
- package/dist/esm/package-checks/json-schema-validation/default-check.mjs.map +1 -0
- package/dist/esm/package-checks/json-schema-validation/execution-stages.mjs +141 -0
- package/dist/esm/package-checks/json-schema-validation/execution-stages.mjs.map +1 -0
- package/dist/esm/package-checks/json-schema-validation/final-data.mjs +64 -0
- package/dist/esm/package-checks/json-schema-validation/final-data.mjs.map +1 -0
- package/dist/esm/package-checks/json-schema-validation/issue-collector.mjs +35 -0
- package/dist/esm/package-checks/json-schema-validation/issue-collector.mjs.map +1 -0
- package/dist/esm/package-checks/json-schema-validation/json-schema-validation.mjs +118 -0
- package/dist/esm/package-checks/json-schema-validation/json-schema-validation.mjs.map +1 -0
- package/dist/esm/package-checks/json-schema-validation/options-resolution.mjs +45 -0
- package/dist/esm/package-checks/json-schema-validation/options-resolution.mjs.map +1 -0
- package/dist/esm/package-checks/json-schema-validation/options-validation.mjs +212 -0
- package/dist/esm/package-checks/json-schema-validation/options-validation.mjs.map +1 -0
- package/dist/esm/package-checks/json-schema-validation/options.mjs +2 -0
- package/dist/esm/package-checks/json-schema-validation/options.mjs.map +1 -0
- package/dist/esm/package-checks/json-schema-validation/reference-resolver.mjs +128 -0
- package/dist/esm/package-checks/json-schema-validation/reference-resolver.mjs.map +1 -0
- package/dist/esm/package-checks/json-schema-validation/remote-response.mjs +71 -0
- package/dist/esm/package-checks/json-schema-validation/remote-response.mjs.map +1 -0
- package/dist/esm/package-checks/json-schema-validation/schema-engine.mjs +190 -0
- package/dist/esm/package-checks/json-schema-validation/schema-engine.mjs.map +1 -0
- package/dist/esm/package-checks/json-schema-validation/schema-policy.mjs +234 -0
- package/dist/esm/package-checks/json-schema-validation/schema-policy.mjs.map +1 -0
- package/dist/esm/package-checks/json-validation/default-check.mjs +39 -0
- package/dist/esm/package-checks/json-validation/default-check.mjs.map +1 -0
- package/dist/esm/package-checks/json-validation/final-data.mjs +27 -0
- package/dist/esm/package-checks/json-validation/final-data.mjs.map +1 -0
- package/dist/esm/package-checks/json-validation/json-validation.mjs +138 -0
- package/dist/esm/package-checks/json-validation/json-validation.mjs.map +1 -0
- package/dist/esm/package-checks/json-validation/options-resolution.mjs +33 -0
- package/dist/esm/package-checks/json-validation/options-resolution.mjs.map +1 -0
- package/dist/esm/package-checks/json-validation/options-validation.mjs +16 -0
- package/dist/esm/package-checks/json-validation/options-validation.mjs.map +1 -0
- package/dist/esm/package-checks/json-validation/options.mjs +2 -0
- package/dist/esm/package-checks/json-validation/options.mjs.map +1 -0
- package/dist/esm/package-checks/maintenance-reminders/assessment-results.mjs +73 -0
- package/dist/esm/package-checks/maintenance-reminders/assessment-results.mjs.map +1 -0
- package/dist/esm/package-checks/maintenance-reminders/final-data.mjs +153 -0
- package/dist/esm/package-checks/maintenance-reminders/final-data.mjs.map +1 -0
- package/dist/esm/package-checks/maintenance-reminders/maintenance-reminders.mjs +155 -0
- package/dist/esm/package-checks/maintenance-reminders/maintenance-reminders.mjs.map +1 -0
- package/dist/esm/package-checks/maintenance-reminders/maintenance-support.mjs +58 -0
- package/dist/esm/package-checks/maintenance-reminders/maintenance-support.mjs.map +1 -0
- package/dist/esm/package-checks/maintenance-reminders/measurement.mjs +125 -0
- package/dist/esm/package-checks/maintenance-reminders/measurement.mjs.map +1 -0
- package/dist/esm/package-checks/maintenance-reminders/options-validation.mjs +72 -0
- package/dist/esm/package-checks/maintenance-reminders/options-validation.mjs.map +1 -0
- package/dist/esm/package-checks/markdown-link-validation/default-check.mjs +55 -0
- package/dist/esm/package-checks/markdown-link-validation/default-check.mjs.map +1 -0
- package/dist/esm/package-checks/markdown-link-validation/execution.mjs +199 -0
- package/dist/esm/package-checks/markdown-link-validation/execution.mjs.map +1 -0
- package/dist/esm/package-checks/markdown-link-validation/filesystem-probes.mjs +109 -0
- package/dist/esm/package-checks/markdown-link-validation/filesystem-probes.mjs.map +1 -0
- package/dist/esm/package-checks/markdown-link-validation/final-data.mjs +28 -0
- package/dist/esm/package-checks/markdown-link-validation/final-data.mjs.map +1 -0
- package/dist/esm/package-checks/markdown-link-validation/local-resolution.mjs +158 -0
- package/dist/esm/package-checks/markdown-link-validation/local-resolution.mjs.map +1 -0
- package/dist/esm/package-checks/markdown-link-validation/local-resolver.mjs +17 -0
- package/dist/esm/package-checks/markdown-link-validation/local-resolver.mjs.map +1 -0
- package/dist/esm/package-checks/markdown-link-validation/markdown-parser.mjs +191 -0
- package/dist/esm/package-checks/markdown-link-validation/markdown-parser.mjs.map +1 -0
- package/dist/esm/package-checks/markdown-link-validation/options-resolution.mjs +83 -0
- package/dist/esm/package-checks/markdown-link-validation/options-resolution.mjs.map +1 -0
- package/dist/esm/package-checks/markdown-link-validation/options-validation.mjs +50 -0
- package/dist/esm/package-checks/markdown-link-validation/options-validation.mjs.map +1 -0
- package/dist/esm/package-checks/markdown-link-validation/options.mjs +2 -0
- package/dist/esm/package-checks/markdown-link-validation/options.mjs.map +1 -0
- package/dist/esm/package-checks/markdown-link-validation/records.mjs +32 -0
- package/dist/esm/package-checks/markdown-link-validation/records.mjs.map +1 -0
- package/dist/esm/package-checks/markdown-link-validation/resolver-engine.mjs +196 -0
- package/dist/esm/package-checks/markdown-link-validation/resolver-engine.mjs.map +1 -0
- package/dist/esm/package-checks/markdown-link-validation/target-descriptor.mjs +23 -0
- package/dist/esm/package-checks/markdown-link-validation/target-descriptor.mjs.map +1 -0
- package/dist/esm/package-checks/markdown-link-validation/traversal-result.mjs +41 -0
- package/dist/esm/package-checks/markdown-link-validation/traversal-result.mjs.map +1 -0
- package/dist/esm/package-checks/project-files/collection.mjs +142 -0
- package/dist/esm/package-checks/project-files/collection.mjs.map +1 -0
- package/dist/esm/package-checks/project-files/config-glob.mjs +11 -0
- package/dist/esm/package-checks/project-files/config-glob.mjs.map +1 -0
- package/dist/esm/package-checks/project-files/configuration.mjs +104 -0
- package/dist/esm/package-checks/project-files/configuration.mjs.map +1 -0
- package/dist/esm/package-checks/project-files/exact-input-measurement.mjs +24 -0
- package/dist/esm/package-checks/project-files/exact-input-measurement.mjs.map +1 -0
- package/dist/esm/package-checks/project-files/file-fingerprint.mjs +36 -0
- package/dist/esm/package-checks/project-files/file-fingerprint.mjs.map +1 -0
- package/dist/esm/package-checks/project-files/gitlink-revision.mjs +57 -0
- package/dist/esm/package-checks/project-files/gitlink-revision.mjs.map +1 -0
- package/dist/esm/package-checks/project-files/gitlink-worktree.mjs +72 -0
- package/dist/esm/package-checks/project-files/gitlink-worktree.mjs.map +1 -0
- package/dist/esm/package-checks/project-files/input-eligibility.mjs +13 -0
- package/dist/esm/package-checks/project-files/input-eligibility.mjs.map +1 -0
- package/dist/esm/package-checks/project-files/reported-path.mjs +30 -0
- package/dist/esm/package-checks/project-files/reported-path.mjs.map +1 -0
- package/dist/esm/package-checks/project-files/revision-paths.mjs +19 -0
- package/dist/esm/package-checks/project-files/revision-paths.mjs.map +1 -0
- package/dist/esm/package-checks/project-files/revision-worktree-files.mjs +102 -0
- package/dist/esm/package-checks/project-files/revision-worktree-files.mjs.map +1 -0
- package/dist/esm/project-definition/check-tree/authoring.mjs +242 -0
- package/dist/esm/project-definition/check-tree/authoring.mjs.map +1 -0
- package/dist/esm/project-definition/check-tree/materialization.mjs +50 -0
- package/dist/esm/project-definition/check-tree/materialization.mjs.map +1 -0
- package/dist/esm/project-definition/check-tree/resolution.mjs +60 -0
- package/dist/esm/project-definition/check-tree/resolution.mjs.map +1 -0
- package/dist/esm/project-definition/output-defaults.mjs +7 -0
- package/dist/esm/project-definition/output-defaults.mjs.map +1 -0
- package/dist/esm/project-definition/output-validation.mjs +44 -0
- package/dist/esm/project-definition/output-validation.mjs.map +1 -0
- package/dist/esm/project-definition/project-definition-validation.mjs +95 -0
- package/dist/esm/project-definition/project-definition-validation.mjs.map +1 -0
- package/dist/esm/project-definition/project-definition.mjs +92 -0
- package/dist/esm/project-definition/project-definition.mjs.map +1 -0
- package/dist/esm/project-run/aggregation.mjs +66 -0
- package/dist/esm/project-run/aggregation.mjs.map +1 -0
- package/dist/esm/project-run/check-execution/callback.mjs +70 -0
- package/dist/esm/project-run/check-execution/callback.mjs.map +1 -0
- package/dist/esm/project-run/check-execution/dependencies.mjs +50 -0
- package/dist/esm/project-run/check-execution/dependencies.mjs.map +1 -0
- package/dist/esm/project-run/check-execution/execution-finalization.mjs +103 -0
- package/dist/esm/project-run/check-execution/execution-finalization.mjs.map +1 -0
- package/dist/esm/project-run/check-execution/execution-settlement.mjs +90 -0
- package/dist/esm/project-run/check-execution/execution-settlement.mjs.map +1 -0
- package/dist/esm/project-run/check-execution/messages.mjs +38 -0
- package/dist/esm/project-run/check-execution/messages.mjs.map +1 -0
- package/dist/esm/project-run/check-execution/plan.mjs +35 -0
- package/dist/esm/project-run/check-execution/plan.mjs.map +1 -0
- package/dist/esm/project-run/check-execution/preflight-result.mjs +83 -0
- package/dist/esm/project-run/check-execution/preflight-result.mjs.map +1 -0
- package/dist/esm/project-run/check-execution/preflight.mjs +186 -0
- package/dist/esm/project-run/check-execution/preflight.mjs.map +1 -0
- package/dist/esm/project-run/check-execution/resolved-checks.mjs +168 -0
- package/dist/esm/project-run/check-execution/resolved-checks.mjs.map +1 -0
- package/dist/esm/project-run/check-execution/terminal-result.mjs +49 -0
- package/dist/esm/project-run/check-execution/terminal-result.mjs.map +1 -0
- package/dist/esm/project-run/completion.mjs +173 -0
- package/dist/esm/project-run/completion.mjs.map +1 -0
- package/dist/esm/project-run/controls/contract.mjs +2 -0
- package/dist/esm/project-run/controls/contract.mjs.map +1 -0
- package/dist/esm/project-run/controls/outputs-override-validation.mjs +61 -0
- package/dist/esm/project-run/controls/outputs-override-validation.mjs.map +1 -0
- package/dist/esm/project-run/controls/validation-result.mjs +2 -0
- package/dist/esm/project-run/controls/validation-result.mjs.map +1 -0
- package/dist/esm/project-run/controls/validation.mjs +156 -0
- package/dist/esm/project-run/controls/validation.mjs.map +1 -0
- package/dist/esm/project-run/diagnostic-logging/diagnostic-detail-rendering.mjs +182 -0
- package/dist/esm/project-run/diagnostic-logging/diagnostic-detail-rendering.mjs.map +1 -0
- package/dist/esm/project-run/diagnostic-logging/logger.mjs +242 -0
- package/dist/esm/project-run/diagnostic-logging/logger.mjs.map +1 -0
- package/dist/esm/project-run/invocation-creation.mjs +111 -0
- package/dist/esm/project-run/invocation-creation.mjs.map +1 -0
- package/dist/esm/project-run/invocation.mjs +195 -0
- package/dist/esm/project-run/invocation.mjs.map +1 -0
- package/dist/esm/project-run/machine-publication.mjs +16 -0
- package/dist/esm/project-run/machine-publication.mjs.map +1 -0
- package/dist/esm/project-run/output-configuration.mjs +17 -0
- package/dist/esm/project-run/output-configuration.mjs.map +1 -0
- package/dist/esm/project-run/output-status.mjs +43 -0
- package/dist/esm/project-run/output-status.mjs.map +1 -0
- package/dist/esm/project-run/progress-rendering/presentation.mjs +135 -0
- package/dist/esm/project-run/progress-rendering/presentation.mjs.map +1 -0
- package/dist/esm/project-run/progress-rendering/renderer-formatting.mjs +100 -0
- package/dist/esm/project-run/progress-rendering/renderer-formatting.mjs.map +1 -0
- package/dist/esm/project-run/progress-rendering/renderer-lifecycle.mjs +123 -0
- package/dist/esm/project-run/progress-rendering/renderer-lifecycle.mjs.map +1 -0
- package/dist/esm/project-run/progress-rendering/renderer.mjs +12 -0
- package/dist/esm/project-run/progress-rendering/renderer.mjs.map +1 -0
- package/dist/esm/project-run/project-context.mjs +8 -0
- package/dist/esm/project-run/project-context.mjs.map +1 -0
- package/dist/esm/project-run/result.mjs +54 -0
- package/dist/esm/project-run/result.mjs.map +1 -0
- package/dist/esm/project-run/run.mjs +23 -0
- package/dist/esm/project-run/run.mjs.map +1 -0
- package/dist/esm/project-run/task-scheduler/execution-state.mjs +66 -0
- package/dist/esm/project-run/task-scheduler/execution-state.mjs.map +1 -0
- package/dist/esm/project-run/task-scheduler/graph-validation.mjs +119 -0
- package/dist/esm/project-run/task-scheduler/graph-validation.mjs.map +1 -0
- package/dist/esm/project-run/task-scheduler/graph.mjs +116 -0
- package/dist/esm/project-run/task-scheduler/graph.mjs.map +1 -0
- package/dist/esm/project-run/task-scheduler/scheduler-admission-decision.mjs +82 -0
- package/dist/esm/project-run/task-scheduler/scheduler-admission-decision.mjs.map +1 -0
- package/dist/esm/project-run/task-scheduler/scheduler-blocker-summary.mjs +27 -0
- package/dist/esm/project-run/task-scheduler/scheduler-blocker-summary.mjs.map +1 -0
- package/dist/esm/project-run/task-scheduler/scheduler-decision-inspection.mjs +125 -0
- package/dist/esm/project-run/task-scheduler/scheduler-decision-inspection.mjs.map +1 -0
- package/dist/esm/project-run/task-scheduler/scheduler-decision-model.mjs +45 -0
- package/dist/esm/project-run/task-scheduler/scheduler-decision-model.mjs.map +1 -0
- package/dist/esm/project-run/task-scheduler/scheduler-decision.mjs +74 -0
- package/dist/esm/project-run/task-scheduler/scheduler-decision.mjs.map +1 -0
- package/dist/esm/project-run/task-scheduler/scheduler.mjs +147 -0
- package/dist/esm/project-run/task-scheduler/scheduler.mjs.map +1 -0
- package/docs/api-mechanics.md +205 -0
- package/docs/checks/duplicate-detection.md +195 -0
- package/docs/checks/file-metrics.md +229 -0
- package/docs/checks/function-metrics.md +222 -0
- package/docs/checks/json-schema-validation.md +190 -0
- package/docs/checks/json-validation.md +133 -0
- package/docs/checks/maintenance-reminders.md +158 -0
- package/docs/checks/markdown-link-validation.md +192 -0
- package/docs/examples/artifacts/mixed-outcomes/definition.ts +195 -0
- package/docs/examples/artifacts/mixed-outcomes/records.ndjson +2 -0
- package/docs/examples/artifacts/mixed-outcomes/run.json +70 -0
- package/docs/output.md +97 -0
- package/docs/schemas/vibe-check-record.schema.json +33 -0
- package/docs/schemas/vibe-check-run.schema.json +173 -0
- package/index.mjs +1 -0
- package/package.json +49 -0
- package/src/check/check.ts +497 -0
- package/src/check/descriptor-validation.ts +60 -0
- package/src/check/descriptor.ts +5 -0
- package/src/check/inherited-collection.ts +101 -0
- package/src/check/options-snapshot.ts +80 -0
- package/src/check-settlement/fact-validation.ts +289 -0
- package/src/check-settlement/facts.ts +27 -0
- package/src/check-settlement/outcome-normalization.ts +118 -0
- package/src/check-settlement/record-store.ts +73 -0
- package/src/check-settlement/session.ts +257 -0
- package/src/data-boundary/canonical-data.ts +188 -0
- package/src/data-boundary/canonical-json.ts +11 -0
- package/src/data-boundary/closed-values.ts +126 -0
- package/src/data-boundary/value-shapes.ts +15 -0
- package/src/finding-waivers/reconciliation.ts +176 -0
- package/src/index.ts +123 -0
- package/src/machine-output/v4/atomic-publication.ts +123 -0
- package/src/machine-output/v4/freeze-publication-value.ts +12 -0
- package/src/machine-output/v4/projection.ts +36 -0
- package/src/machine-output/v4/publication-invariants.ts +89 -0
- package/src/machine-output/v4/publication-model.ts +38 -0
- package/src/machine-output/v4/publish.ts +23 -0
- package/src/machine-output/v4/records-fingerprint.ts +12 -0
- package/src/machine-output/v4/schema-identities.ts +8 -0
- package/src/machine-output/v4/schema.ts +97 -0
- package/src/machine-output/v4/serializers.ts +18 -0
- package/src/machine-output/v4/validation-result.ts +59 -0
- package/src/machine-output/v4/validation.ts +166 -0
- package/src/package-checks/code-quality-findings/policy.ts +85 -0
- package/src/package-checks/duplicate-detection/area-policy.ts +103 -0
- package/src/package-checks/duplicate-detection/cache/cache-contract.ts +49 -0
- package/src/package-checks/duplicate-detection/cache/identity.ts +61 -0
- package/src/package-checks/duplicate-detection/cache/key.ts +46 -0
- package/src/package-checks/duplicate-detection/cache/payload.ts +78 -0
- package/src/package-checks/duplicate-detection/cache/store.ts +77 -0
- package/src/package-checks/duplicate-detection/default-check.ts +50 -0
- package/src/package-checks/duplicate-detection/execution.ts +168 -0
- package/src/package-checks/duplicate-detection/final-data.ts +10 -0
- package/src/package-checks/duplicate-detection/jscpd/availability.ts +137 -0
- package/src/package-checks/duplicate-detection/jscpd/command-path.ts +8 -0
- package/src/package-checks/duplicate-detection/jscpd/command-resolution.ts +112 -0
- package/src/package-checks/duplicate-detection/jscpd/json-report.ts +137 -0
- package/src/package-checks/duplicate-detection/jscpd/scanner-contract.ts +18 -0
- package/src/package-checks/duplicate-detection/jscpd/scanner.ts +257 -0
- package/src/package-checks/duplicate-detection/jscpd/scoped-fragments.ts +17 -0
- package/src/package-checks/duplicate-detection/measurement-model.ts +44 -0
- package/src/package-checks/duplicate-detection/measurement.ts +223 -0
- package/src/package-checks/duplicate-detection/options-resolution.ts +162 -0
- package/src/package-checks/duplicate-detection/options-validation.ts +75 -0
- package/src/package-checks/duplicate-detection/options.ts +72 -0
- package/src/package-checks/duplicate-detection/project-revision.ts +5 -0
- package/src/package-checks/duplicate-detection/records.ts +171 -0
- package/src/package-checks/file-metrics/constructor.ts +46 -0
- package/src/package-checks/file-metrics/execution.ts +233 -0
- package/src/package-checks/file-metrics/final-data.ts +10 -0
- package/src/package-checks/file-metrics/measurement-model.ts +10 -0
- package/src/package-checks/file-metrics/measurement.ts +52 -0
- package/src/package-checks/file-metrics/options-resolution.ts +213 -0
- package/src/package-checks/file-metrics/options-validation.ts +104 -0
- package/src/package-checks/file-metrics/options.ts +91 -0
- package/src/package-checks/file-metrics/records.ts +182 -0
- package/src/package-checks/file-metrics/scc/availability.ts +100 -0
- package/src/package-checks/file-metrics/scc/csv.ts +20 -0
- package/src/package-checks/file-metrics/scc/parser.ts +223 -0
- package/src/package-checks/file-metrics/scc/scanner.ts +68 -0
- package/src/package-checks/final-data-parsing.ts +49 -0
- package/src/package-checks/function-metrics/analysis.ts +138 -0
- package/src/package-checks/function-metrics/constructor.ts +55 -0
- package/src/package-checks/function-metrics/execution.ts +263 -0
- package/src/package-checks/function-metrics/final-data.ts +10 -0
- package/src/package-checks/function-metrics/lizard/availability.ts +90 -0
- package/src/package-checks/function-metrics/lizard/csv.ts +20 -0
- package/src/package-checks/function-metrics/lizard/parser.ts +179 -0
- package/src/package-checks/function-metrics/lizard/scanner.ts +62 -0
- package/src/package-checks/function-metrics/measurement-model.ts +30 -0
- package/src/package-checks/function-metrics/measurement.ts +57 -0
- package/src/package-checks/function-metrics/options-resolution.ts +215 -0
- package/src/package-checks/function-metrics/options-validation.ts +89 -0
- package/src/package-checks/function-metrics/options.ts +84 -0
- package/src/package-checks/function-metrics/records.ts +254 -0
- package/src/package-checks/function-metrics/target-files.ts +85 -0
- package/src/package-checks/host-environment/error-message.ts +3 -0
- package/src/package-checks/host-environment/filesystem.ts +110 -0
- package/src/package-checks/host-environment/git.ts +68 -0
- package/src/package-checks/host-environment/path.ts +20 -0
- package/src/package-checks/host-environment/process/command.ts +21 -0
- package/src/package-checks/host-environment/process/contract.ts +56 -0
- package/src/package-checks/host-environment/process/env.ts +25 -0
- package/src/package-checks/host-environment/process/failure.ts +40 -0
- package/src/package-checks/host-environment/process/result.ts +39 -0
- package/src/package-checks/host-environment/process/runner.ts +47 -0
- package/src/package-checks/json-document/strict-document.ts +209 -0
- package/src/package-checks/json-schema-validation/default-check.ts +54 -0
- package/src/package-checks/json-schema-validation/execution-stages.ts +230 -0
- package/src/package-checks/json-schema-validation/final-data.ts +115 -0
- package/src/package-checks/json-schema-validation/issue-collector.ts +43 -0
- package/src/package-checks/json-schema-validation/json-schema-validation.ts +191 -0
- package/src/package-checks/json-schema-validation/options-resolution.ts +61 -0
- package/src/package-checks/json-schema-validation/options-validation.ts +256 -0
- package/src/package-checks/json-schema-validation/options.ts +66 -0
- package/src/package-checks/json-schema-validation/reference-resolver.ts +165 -0
- package/src/package-checks/json-schema-validation/remote-response.ts +84 -0
- package/src/package-checks/json-schema-validation/schema-engine.ts +263 -0
- package/src/package-checks/json-schema-validation/schema-policy.ts +275 -0
- package/src/package-checks/json-validation/default-check.ts +48 -0
- package/src/package-checks/json-validation/final-data.ts +46 -0
- package/src/package-checks/json-validation/json-validation.ts +212 -0
- package/src/package-checks/json-validation/options-resolution.ts +50 -0
- package/src/package-checks/json-validation/options-validation.ts +27 -0
- package/src/package-checks/json-validation/options.ts +18 -0
- package/src/package-checks/maintenance-reminders/assessment-results.ts +117 -0
- package/src/package-checks/maintenance-reminders/final-data.ts +239 -0
- package/src/package-checks/maintenance-reminders/maintenance-reminders.ts +264 -0
- package/src/package-checks/maintenance-reminders/maintenance-support.ts +67 -0
- package/src/package-checks/maintenance-reminders/measurement.ts +183 -0
- package/src/package-checks/maintenance-reminders/options-validation.ts +88 -0
- package/src/package-checks/markdown-link-validation/default-check.ts +70 -0
- package/src/package-checks/markdown-link-validation/execution.ts +325 -0
- package/src/package-checks/markdown-link-validation/filesystem-probes.ts +127 -0
- package/src/package-checks/markdown-link-validation/final-data.ts +47 -0
- package/src/package-checks/markdown-link-validation/local-resolution.ts +306 -0
- package/src/package-checks/markdown-link-validation/local-resolver.ts +51 -0
- package/src/package-checks/markdown-link-validation/markdown-parser.ts +302 -0
- package/src/package-checks/markdown-link-validation/options-resolution.ts +114 -0
- package/src/package-checks/markdown-link-validation/options-validation.ts +72 -0
- package/src/package-checks/markdown-link-validation/options.ts +50 -0
- package/src/package-checks/markdown-link-validation/records.ts +77 -0
- package/src/package-checks/markdown-link-validation/resolver-engine.ts +276 -0
- package/src/package-checks/markdown-link-validation/target-descriptor.ts +34 -0
- package/src/package-checks/markdown-link-validation/traversal-result.ts +58 -0
- package/src/package-checks/project-files/collection.ts +199 -0
- package/src/package-checks/project-files/config-glob.ts +17 -0
- package/src/package-checks/project-files/configuration.ts +152 -0
- package/src/package-checks/project-files/exact-input-measurement.ts +38 -0
- package/src/package-checks/project-files/file-fingerprint.ts +46 -0
- package/src/package-checks/project-files/gitlink-revision.ts +82 -0
- package/src/package-checks/project-files/gitlink-worktree.ts +106 -0
- package/src/package-checks/project-files/input-eligibility.ts +21 -0
- package/src/package-checks/project-files/reported-path.ts +35 -0
- package/src/package-checks/project-files/revision-paths.ts +34 -0
- package/src/package-checks/project-files/revision-worktree-files.ts +148 -0
- package/src/project-definition/check-tree/authoring.ts +332 -0
- package/src/project-definition/check-tree/materialization.ts +56 -0
- package/src/project-definition/check-tree/resolution.ts +108 -0
- package/src/project-definition/output-defaults.ts +6 -0
- package/src/project-definition/output-validation.ts +54 -0
- package/src/project-definition/project-definition-validation.ts +123 -0
- package/src/project-definition/project-definition.ts +184 -0
- package/src/project-run/aggregation.ts +90 -0
- package/src/project-run/check-execution/callback.ts +106 -0
- package/src/project-run/check-execution/dependencies.ts +70 -0
- package/src/project-run/check-execution/execution-finalization.ts +177 -0
- package/src/project-run/check-execution/execution-settlement.ts +147 -0
- package/src/project-run/check-execution/messages.ts +46 -0
- package/src/project-run/check-execution/plan.ts +46 -0
- package/src/project-run/check-execution/preflight-result.ts +131 -0
- package/src/project-run/check-execution/preflight.ts +321 -0
- package/src/project-run/check-execution/resolved-checks.ts +285 -0
- package/src/project-run/check-execution/terminal-result.ts +74 -0
- package/src/project-run/completion.ts +263 -0
- package/src/project-run/controls/contract.ts +24 -0
- package/src/project-run/controls/outputs-override-validation.ts +86 -0
- package/src/project-run/controls/validation-result.ts +12 -0
- package/src/project-run/controls/validation.ts +176 -0
- package/src/project-run/diagnostic-logging/diagnostic-detail-rendering.ts +223 -0
- package/src/project-run/diagnostic-logging/logger.ts +325 -0
- package/src/project-run/invocation-creation.ts +160 -0
- package/src/project-run/invocation.ts +303 -0
- package/src/project-run/machine-publication.ts +23 -0
- package/src/project-run/output-configuration.ts +24 -0
- package/src/project-run/output-status.ts +69 -0
- package/src/project-run/progress-rendering/presentation.ts +189 -0
- package/src/project-run/progress-rendering/renderer-formatting.ts +141 -0
- package/src/project-run/progress-rendering/renderer-lifecycle.ts +152 -0
- package/src/project-run/progress-rendering/renderer.ts +68 -0
- package/src/project-run/project-context.ts +11 -0
- package/src/project-run/result.ts +175 -0
- package/src/project-run/run.ts +50 -0
- package/src/project-run/task-scheduler/execution-state.ts +153 -0
- package/src/project-run/task-scheduler/graph-validation.ts +176 -0
- package/src/project-run/task-scheduler/graph.ts +185 -0
- package/src/project-run/task-scheduler/scheduler-admission-decision.ts +177 -0
- package/src/project-run/task-scheduler/scheduler-blocker-summary.ts +42 -0
- package/src/project-run/task-scheduler/scheduler-decision-inspection.ts +199 -0
- package/src/project-run/task-scheduler/scheduler-decision-model.ts +158 -0
- package/src/project-run/task-scheduler/scheduler-decision.ts +103 -0
- package/src/project-run/task-scheduler/scheduler.ts +228 -0
- package/third-party-licenses/momoa-3.3.12-LICENSE +201 -0
- package/types/check/check.d.ts +350 -0
- package/types/check/descriptor-validation.d.ts +18 -0
- package/types/check/descriptor.d.ts +5 -0
- package/types/check/inherited-collection.d.ts +35 -0
- package/types/check/options-snapshot.d.ts +2 -0
- package/types/check-settlement/fact-validation.d.ts +14 -0
- package/types/check-settlement/facts.d.ts +19 -0
- package/types/check-settlement/outcome-normalization.d.ts +9 -0
- package/types/check-settlement/record-store.d.ts +14 -0
- package/types/check-settlement/session.d.ts +41 -0
- package/types/data-boundary/canonical-data.d.ts +13 -0
- package/types/data-boundary/canonical-json.d.ts +6 -0
- package/types/data-boundary/closed-values.d.ts +8 -0
- package/types/data-boundary/value-shapes.d.ts +4 -0
- package/types/finding-waivers/reconciliation.d.ts +66 -0
- package/types/index.d.ts +57 -0
- package/types/machine-output/v4/atomic-publication.d.ts +9 -0
- package/types/machine-output/v4/freeze-publication-value.d.ts +6 -0
- package/types/machine-output/v4/projection.d.ts +7 -0
- package/types/machine-output/v4/publication-invariants.d.ts +3 -0
- package/types/machine-output/v4/publication-model.d.ts +15 -0
- package/types/machine-output/v4/publish.d.ts +7 -0
- package/types/machine-output/v4/records-fingerprint.d.ts +4 -0
- package/types/machine-output/v4/schema-identities.d.ts +7 -0
- package/types/machine-output/v4/schema.d.ts +44 -0
- package/types/machine-output/v4/serializers.d.ts +6 -0
- package/types/machine-output/v4/validation-result.d.ts +26 -0
- package/types/machine-output/v4/validation.d.ts +6 -0
- package/types/package-checks/code-quality-findings/policy.d.ts +20 -0
- package/types/package-checks/duplicate-detection/area-policy.d.ts +3 -0
- package/types/package-checks/duplicate-detection/cache/cache-contract.d.ts +48 -0
- package/types/package-checks/duplicate-detection/cache/identity.d.ts +17 -0
- package/types/package-checks/duplicate-detection/cache/key.d.ts +4 -0
- package/types/package-checks/duplicate-detection/cache/payload.d.ts +4 -0
- package/types/package-checks/duplicate-detection/cache/store.d.ts +18 -0
- package/types/package-checks/duplicate-detection/default-check.d.ts +11 -0
- package/types/package-checks/duplicate-detection/execution.d.ts +11 -0
- package/types/package-checks/duplicate-detection/final-data.d.ts +5 -0
- package/types/package-checks/duplicate-detection/jscpd/availability.d.ts +19 -0
- package/types/package-checks/duplicate-detection/jscpd/command-path.d.ts +1 -0
- package/types/package-checks/duplicate-detection/jscpd/command-resolution.d.ts +23 -0
- package/types/package-checks/duplicate-detection/jscpd/json-report.d.ts +2 -0
- package/types/package-checks/duplicate-detection/jscpd/scanner-contract.d.ts +11 -0
- package/types/package-checks/duplicate-detection/jscpd/scanner.d.ts +21 -0
- package/types/package-checks/duplicate-detection/jscpd/scoped-fragments.d.ts +4 -0
- package/types/package-checks/duplicate-detection/measurement-model.d.ts +36 -0
- package/types/package-checks/duplicate-detection/measurement.d.ts +14 -0
- package/types/package-checks/duplicate-detection/options-resolution.d.ts +3 -0
- package/types/package-checks/duplicate-detection/options-validation.d.ts +1 -0
- package/types/package-checks/duplicate-detection/options.d.ts +65 -0
- package/types/package-checks/duplicate-detection/project-revision.d.ts +1 -0
- package/types/package-checks/duplicate-detection/records.d.ts +22 -0
- package/types/package-checks/file-metrics/constructor.d.ts +11 -0
- package/types/package-checks/file-metrics/execution.d.ts +11 -0
- package/types/package-checks/file-metrics/final-data.d.ts +5 -0
- package/types/package-checks/file-metrics/measurement-model.d.ts +12 -0
- package/types/package-checks/file-metrics/measurement.d.ts +13 -0
- package/types/package-checks/file-metrics/options-resolution.d.ts +3 -0
- package/types/package-checks/file-metrics/options-validation.d.ts +3 -0
- package/types/package-checks/file-metrics/options.d.ts +75 -0
- package/types/package-checks/file-metrics/records.d.ts +43 -0
- package/types/package-checks/file-metrics/scc/availability.d.ts +18 -0
- package/types/package-checks/file-metrics/scc/csv.d.ts +1 -0
- package/types/package-checks/file-metrics/scc/parser.d.ts +25 -0
- package/types/package-checks/file-metrics/scc/scanner.d.ts +14 -0
- package/types/package-checks/final-data-parsing.d.ts +9 -0
- package/types/package-checks/function-metrics/analysis.d.ts +10 -0
- package/types/package-checks/function-metrics/constructor.d.ts +11 -0
- package/types/package-checks/function-metrics/execution.d.ts +7 -0
- package/types/package-checks/function-metrics/final-data.d.ts +5 -0
- package/types/package-checks/function-metrics/lizard/availability.d.ts +11 -0
- package/types/package-checks/function-metrics/lizard/csv.d.ts +1 -0
- package/types/package-checks/function-metrics/lizard/parser.d.ts +17 -0
- package/types/package-checks/function-metrics/lizard/scanner.d.ts +15 -0
- package/types/package-checks/function-metrics/measurement-model.d.ts +26 -0
- package/types/package-checks/function-metrics/measurement.d.ts +21 -0
- package/types/package-checks/function-metrics/options-resolution.d.ts +3 -0
- package/types/package-checks/function-metrics/options-validation.d.ts +3 -0
- package/types/package-checks/function-metrics/options.d.ts +76 -0
- package/types/package-checks/function-metrics/records.d.ts +37 -0
- package/types/package-checks/function-metrics/target-files.d.ts +3 -0
- package/types/package-checks/host-environment/error-message.d.ts +1 -0
- package/types/package-checks/host-environment/filesystem.d.ts +19 -0
- package/types/package-checks/host-environment/git.d.ts +13 -0
- package/types/package-checks/host-environment/path.d.ts +3 -0
- package/types/package-checks/host-environment/process/command.d.ts +7 -0
- package/types/package-checks/host-environment/process/contract.d.ts +50 -0
- package/types/package-checks/host-environment/process/env.d.ts +16 -0
- package/types/package-checks/host-environment/process/failure.d.ts +4 -0
- package/types/package-checks/host-environment/process/result.d.ts +2 -0
- package/types/package-checks/host-environment/process/runner.d.ts +3 -0
- package/types/package-checks/json-document/strict-document.d.ts +35 -0
- package/types/package-checks/json-schema-validation/default-check.d.ts +11 -0
- package/types/package-checks/json-schema-validation/execution-stages.d.ts +27 -0
- package/types/package-checks/json-schema-validation/final-data.d.ts +15 -0
- package/types/package-checks/json-schema-validation/issue-collector.d.ts +12 -0
- package/types/package-checks/json-schema-validation/json-schema-validation.d.ts +42 -0
- package/types/package-checks/json-schema-validation/options-resolution.d.ts +3 -0
- package/types/package-checks/json-schema-validation/options-validation.d.ts +2 -0
- package/types/package-checks/json-schema-validation/options.d.ts +53 -0
- package/types/package-checks/json-schema-validation/reference-resolver.d.ts +23 -0
- package/types/package-checks/json-schema-validation/remote-response.d.ts +2 -0
- package/types/package-checks/json-schema-validation/schema-engine.d.ts +33 -0
- package/types/package-checks/json-schema-validation/schema-policy.d.ts +17 -0
- package/types/package-checks/json-validation/default-check.d.ts +11 -0
- package/types/package-checks/json-validation/final-data.d.ts +10 -0
- package/types/package-checks/json-validation/json-validation.d.ts +28 -0
- package/types/package-checks/json-validation/options-resolution.d.ts +3 -0
- package/types/package-checks/json-validation/options-validation.d.ts +2 -0
- package/types/package-checks/json-validation/options.d.ts +13 -0
- package/types/package-checks/maintenance-reminders/assessment-results.d.ts +10 -0
- package/types/package-checks/maintenance-reminders/final-data.d.ts +47 -0
- package/types/package-checks/maintenance-reminders/maintenance-reminders.d.ts +111 -0
- package/types/package-checks/maintenance-reminders/maintenance-support.d.ts +7 -0
- package/types/package-checks/maintenance-reminders/measurement.d.ts +10 -0
- package/types/package-checks/maintenance-reminders/options-validation.d.ts +3 -0
- package/types/package-checks/markdown-link-validation/default-check.d.ts +27 -0
- package/types/package-checks/markdown-link-validation/execution.d.ts +12 -0
- package/types/package-checks/markdown-link-validation/filesystem-probes.d.ts +10 -0
- package/types/package-checks/markdown-link-validation/final-data.d.ts +10 -0
- package/types/package-checks/markdown-link-validation/local-resolution.d.ts +92 -0
- package/types/package-checks/markdown-link-validation/local-resolver.d.ts +5 -0
- package/types/package-checks/markdown-link-validation/markdown-parser.d.ts +37 -0
- package/types/package-checks/markdown-link-validation/options-resolution.d.ts +3 -0
- package/types/package-checks/markdown-link-validation/options-validation.d.ts +2 -0
- package/types/package-checks/markdown-link-validation/options.d.ts +43 -0
- package/types/package-checks/markdown-link-validation/records.d.ts +37 -0
- package/types/package-checks/markdown-link-validation/resolver-engine.d.ts +15 -0
- package/types/package-checks/markdown-link-validation/target-descriptor.d.ts +5 -0
- package/types/package-checks/markdown-link-validation/traversal-result.d.ts +12 -0
- package/types/package-checks/project-files/collection.d.ts +9 -0
- package/types/package-checks/project-files/config-glob.d.ts +5 -0
- package/types/package-checks/project-files/configuration.d.ts +31 -0
- package/types/package-checks/project-files/exact-input-measurement.d.ts +12 -0
- package/types/package-checks/project-files/file-fingerprint.d.ts +7 -0
- package/types/package-checks/project-files/gitlink-revision.d.ts +9 -0
- package/types/package-checks/project-files/gitlink-worktree.d.ts +26 -0
- package/types/package-checks/project-files/input-eligibility.d.ts +7 -0
- package/types/package-checks/project-files/reported-path.d.ts +1 -0
- package/types/package-checks/project-files/revision-paths.d.ts +12 -0
- package/types/package-checks/project-files/revision-worktree-files.d.ts +5 -0
- package/types/project-definition/check-tree/authoring.d.ts +41 -0
- package/types/project-definition/check-tree/materialization.d.ts +4 -0
- package/types/project-definition/check-tree/resolution.d.ts +25 -0
- package/types/project-definition/output-defaults.d.ts +14 -0
- package/types/project-definition/output-validation.d.ts +3 -0
- package/types/project-definition/project-definition-validation.d.ts +6 -0
- package/types/project-definition/project-definition.d.ts +88 -0
- package/types/project-run/aggregation.d.ts +7 -0
- package/types/project-run/check-execution/callback.d.ts +24 -0
- package/types/project-run/check-execution/dependencies.d.ts +9 -0
- package/types/project-run/check-execution/execution-finalization.d.ts +18 -0
- package/types/project-run/check-execution/execution-settlement.d.ts +41 -0
- package/types/project-run/check-execution/messages.d.ts +3 -0
- package/types/project-run/check-execution/plan.d.ts +10 -0
- package/types/project-run/check-execution/preflight-result.d.ts +23 -0
- package/types/project-run/check-execution/preflight.d.ts +27 -0
- package/types/project-run/check-execution/resolved-checks.d.ts +51 -0
- package/types/project-run/check-execution/terminal-result.d.ts +27 -0
- package/types/project-run/completion.d.ts +14 -0
- package/types/project-run/controls/contract.d.ts +24 -0
- package/types/project-run/controls/outputs-override-validation.d.ts +3 -0
- package/types/project-run/controls/validation-result.d.ts +14 -0
- package/types/project-run/controls/validation.d.ts +3 -0
- package/types/project-run/diagnostic-logging/diagnostic-detail-rendering.d.ts +11 -0
- package/types/project-run/diagnostic-logging/logger.d.ts +33 -0
- package/types/project-run/invocation-creation.d.ts +12 -0
- package/types/project-run/invocation.d.ts +34 -0
- package/types/project-run/machine-publication.d.ts +10 -0
- package/types/project-run/output-configuration.d.ts +3 -0
- package/types/project-run/output-status.d.ts +21 -0
- package/types/project-run/progress-rendering/presentation.d.ts +28 -0
- package/types/project-run/progress-rendering/renderer-formatting.d.ts +23 -0
- package/types/project-run/progress-rendering/renderer-lifecycle.d.ts +24 -0
- package/types/project-run/progress-rendering/renderer.d.ts +44 -0
- package/types/project-run/project-context.d.ts +7 -0
- package/types/project-run/result.d.ts +99 -0
- package/types/project-run/run.d.ts +18 -0
- package/types/project-run/task-scheduler/execution-state.d.ts +67 -0
- package/types/project-run/task-scheduler/graph-validation.d.ts +11 -0
- package/types/project-run/task-scheduler/graph.d.ts +40 -0
- package/types/project-run/task-scheduler/scheduler-admission-decision.d.ts +8 -0
- package/types/project-run/task-scheduler/scheduler-blocker-summary.d.ts +4 -0
- package/types/project-run/task-scheduler/scheduler-decision-inspection.d.ts +24 -0
- package/types/project-run/task-scheduler/scheduler-decision-model.d.ts +94 -0
- package/types/project-run/task-scheduler/scheduler-decision.d.ts +8 -0
- package/types/project-run/task-scheduler/scheduler.d.ts +3 -0
|
@@ -0,0 +1,176 @@
|
|
|
1
|
+
import {
|
|
2
|
+
canonicalizeJsonValue,
|
|
3
|
+
canonicalJsonText,
|
|
4
|
+
type CanonicalJsonObject,
|
|
5
|
+
type CanonicalJsonValue
|
|
6
|
+
} from "../data-boundary/canonical-data.ts";
|
|
7
|
+
|
|
8
|
+
/** 由采用方声明、用于匹配一个 finding 的语义身份与豁免理由。 */
|
|
9
|
+
export interface FindingWaiver<Identity> {
|
|
10
|
+
/** 调用方定义的稳定 finding 身份;匹配时按 canonical JSON 结构比较。 */
|
|
11
|
+
readonly identity: Identity;
|
|
12
|
+
/** 解释该 finding 在当前范围内可被豁免的非空理由。 */
|
|
13
|
+
readonly reason: string;
|
|
14
|
+
}
|
|
15
|
+
|
|
16
|
+
/** helper 安全 materialize 后保留的 waiver evidence;identity 是 detached canonical JSON。 */
|
|
17
|
+
export interface MaterializedFindingWaiver {
|
|
18
|
+
/** 从 authored identity materialize 的 detached、deep-frozen canonical JSON。 */
|
|
19
|
+
readonly identity: CanonicalJsonValue;
|
|
20
|
+
/** 从 authored reason materialize 的非空理由。 */
|
|
21
|
+
readonly reason: string;
|
|
22
|
+
}
|
|
23
|
+
|
|
24
|
+
/** 一项 finding waiver 的配置与匹配次数审计。 */
|
|
25
|
+
export interface FindingWaiverAudit {
|
|
26
|
+
/** 被审计的 materialized authored waiver evidence,而非调用方可变输入引用。 */
|
|
27
|
+
readonly waiver: MaterializedFindingWaiver;
|
|
28
|
+
/** 该 waiver identity 在完整 finding 集合中匹配到的数量。 */
|
|
29
|
+
readonly matchCount: number;
|
|
30
|
+
/** 未使用、正常应用,或因过宽而没有应用。 */
|
|
31
|
+
readonly status: "unused" | "applied" | "overmatched";
|
|
32
|
+
}
|
|
33
|
+
|
|
34
|
+
/** reconciliation 后单个 finding 的可执行处置;只有 `waived` branch 携带 matched waiver。 */
|
|
35
|
+
export type ReconciledFinding<Finding> = Readonly<
|
|
36
|
+
| {
|
|
37
|
+
/** 原始 finding;helper 不解释或改写它的领域字段。 */
|
|
38
|
+
readonly finding: Finding;
|
|
39
|
+
/** 没有匹配 waiver 的正常待处理 finding。 */
|
|
40
|
+
readonly disposition: "actionable";
|
|
41
|
+
}
|
|
42
|
+
| {
|
|
43
|
+
/** 原始 finding;helper 不解释或改写它的领域字段。 */
|
|
44
|
+
readonly finding: Finding;
|
|
45
|
+
/** 恰好匹配一项 waiver 的 finding。 */
|
|
46
|
+
readonly disposition: "waived";
|
|
47
|
+
/** applied waiver 的身份和理由。 */
|
|
48
|
+
readonly waiver: MaterializedFindingWaiver;
|
|
49
|
+
}
|
|
50
|
+
| {
|
|
51
|
+
/** 原始 finding;helper 不解释或改写它的领域字段。 */
|
|
52
|
+
readonly finding: Finding;
|
|
53
|
+
/** `overmatched` 保持为待处理,避免宽泛 waiver 静默覆盖多个 finding。 */
|
|
54
|
+
readonly disposition: "overmatched";
|
|
55
|
+
}
|
|
56
|
+
>;
|
|
57
|
+
|
|
58
|
+
/** 调用方提供完整候选集、身份识别器和 waiver 配置的输入。 */
|
|
59
|
+
export interface ReconcileFindingWaiversOptions<Finding, Identity> {
|
|
60
|
+
/** 必须是完整 finding 候选集合,helper 才能审计每项 waiver 的匹配次数。 */
|
|
61
|
+
readonly findings: readonly Finding[];
|
|
62
|
+
/** 从完整 finding 提取调用方选择的稳定语义身份。 */
|
|
63
|
+
readonly identify: (finding: Finding) => Identity;
|
|
64
|
+
/** 要与识别器输出进行 canonical structural matching 的 waiver。 */
|
|
65
|
+
readonly waivers: readonly FindingWaiver<Identity>[];
|
|
66
|
+
}
|
|
67
|
+
|
|
68
|
+
/** 独立 waiver reconciliation 的完整输出,保留 finding 处置和每项配置审计。 */
|
|
69
|
+
export interface FindingWaiverReconciliation<Finding> {
|
|
70
|
+
/** 与 input finding 顺序相同的 reconciliation 结果。 */
|
|
71
|
+
readonly findings: readonly ReconciledFinding<Finding>[];
|
|
72
|
+
/** 与 input waiver 顺序相同的完整配置审计。 */
|
|
73
|
+
readonly waiverAudits: readonly FindingWaiverAudit[];
|
|
74
|
+
}
|
|
75
|
+
|
|
76
|
+
/**
|
|
77
|
+
* 按调用方定义的语义身份对完整 finding 集合和 waiver 配置做 canonical structural reconciliation。
|
|
78
|
+
*
|
|
79
|
+
* 每项 waiver 必须有唯一、可 canonicalize 的 identity 和非空 reason。匹配零项时产生 `unused` 审计;
|
|
80
|
+
* 匹配一项时该 finding 为 `waived`;匹配多项时产生 `overmatched` 审计,相关 finding 保持待处理。
|
|
81
|
+
*/
|
|
82
|
+
export function reconcileFindingWaivers<Finding, Identity>(
|
|
83
|
+
options: ReconcileFindingWaiversOptions<Finding, Identity>
|
|
84
|
+
): FindingWaiverReconciliation<Finding> {
|
|
85
|
+
const waivers = materializeWaivers(options.waivers);
|
|
86
|
+
const matchCounts = new Array<number>(waivers.length).fill(0);
|
|
87
|
+
const waiverIndexesByIdentity = new Map<string, number>();
|
|
88
|
+
for (const [index, waiver] of waivers.entries()) {
|
|
89
|
+
const identity = canonicalIdentity(waiver.identity, "waiver identity");
|
|
90
|
+
if (waiverIndexesByIdentity.has(identity)) {
|
|
91
|
+
throw new TypeError("Finding waivers must not declare duplicate canonical identities");
|
|
92
|
+
}
|
|
93
|
+
waiverIndexesByIdentity.set(identity, index);
|
|
94
|
+
}
|
|
95
|
+
|
|
96
|
+
const matchedWaiverIndexes = options.findings.map((finding) => {
|
|
97
|
+
const identity = canonicalIdentity(options.identify(finding), "finding identity");
|
|
98
|
+
const waiverIndex = waiverIndexesByIdentity.get(identity);
|
|
99
|
+
if (waiverIndex !== undefined) matchCounts[waiverIndex] += 1;
|
|
100
|
+
return waiverIndex;
|
|
101
|
+
});
|
|
102
|
+
const waiverAudits = Object.freeze(
|
|
103
|
+
waivers.map((waiver, index) =>
|
|
104
|
+
Object.freeze({
|
|
105
|
+
matchCount: matchCounts[index] ?? 0,
|
|
106
|
+
status: waiverAuditStatus(matchCounts[index] ?? 0),
|
|
107
|
+
waiver
|
|
108
|
+
})
|
|
109
|
+
)
|
|
110
|
+
);
|
|
111
|
+
const findings = Object.freeze(
|
|
112
|
+
options.findings.map((finding, index) => {
|
|
113
|
+
const waiverIndex = matchedWaiverIndexes[index];
|
|
114
|
+
const audit = waiverIndex === undefined ? undefined : waiverAudits[waiverIndex];
|
|
115
|
+
return reconciledFinding(finding, audit);
|
|
116
|
+
})
|
|
117
|
+
);
|
|
118
|
+
return Object.freeze({ findings, waiverAudits });
|
|
119
|
+
}
|
|
120
|
+
|
|
121
|
+
function materializeWaivers<Identity>(
|
|
122
|
+
waivers: readonly FindingWaiver<Identity>[]
|
|
123
|
+
): readonly MaterializedFindingWaiver[] {
|
|
124
|
+
const canonicalWaivers = canonicalizeJsonValue(waivers);
|
|
125
|
+
if (canonicalWaivers === undefined || !isCanonicalArray(canonicalWaivers)) {
|
|
126
|
+
throw new TypeError("Finding waivers must be canonical JSON arrays");
|
|
127
|
+
}
|
|
128
|
+
return Object.freeze(canonicalWaivers.map(materializeWaiver));
|
|
129
|
+
}
|
|
130
|
+
|
|
131
|
+
function materializeWaiver(value: CanonicalJsonValue): MaterializedFindingWaiver {
|
|
132
|
+
if (
|
|
133
|
+
!isCanonicalObject(value) ||
|
|
134
|
+
!Object.hasOwn(value, "identity") ||
|
|
135
|
+
!Object.hasOwn(value, "reason")
|
|
136
|
+
) {
|
|
137
|
+
throw new TypeError("Finding waivers must declare canonical identity and reason fields");
|
|
138
|
+
}
|
|
139
|
+
const reason = value.reason;
|
|
140
|
+
if (typeof reason !== "string" || reason.length === 0) {
|
|
141
|
+
throw new TypeError("Finding waiver reasons must be non-empty strings");
|
|
142
|
+
}
|
|
143
|
+
return Object.freeze({ identity: value.identity, reason });
|
|
144
|
+
}
|
|
145
|
+
|
|
146
|
+
function isCanonicalObject(value: CanonicalJsonValue): value is CanonicalJsonObject {
|
|
147
|
+
return typeof value === "object" && value !== null && !Array.isArray(value);
|
|
148
|
+
}
|
|
149
|
+
|
|
150
|
+
function isCanonicalArray(value: CanonicalJsonValue): value is readonly CanonicalJsonValue[] {
|
|
151
|
+
return Array.isArray(value);
|
|
152
|
+
}
|
|
153
|
+
|
|
154
|
+
function canonicalIdentity(identity: unknown, kind: string): string {
|
|
155
|
+
try {
|
|
156
|
+
return canonicalJsonText(identity);
|
|
157
|
+
} catch {
|
|
158
|
+
throw new TypeError(`Finding ${kind} must be canonical JSON`);
|
|
159
|
+
}
|
|
160
|
+
}
|
|
161
|
+
|
|
162
|
+
function waiverAuditStatus(matchCount: number): FindingWaiverAudit["status"] {
|
|
163
|
+
if (matchCount === 0) return "unused";
|
|
164
|
+
return matchCount === 1 ? "applied" : "overmatched";
|
|
165
|
+
}
|
|
166
|
+
|
|
167
|
+
function reconciledFinding<Finding>(
|
|
168
|
+
finding: Finding,
|
|
169
|
+
audit: FindingWaiverAudit | undefined
|
|
170
|
+
): ReconciledFinding<Finding> {
|
|
171
|
+
if (audit === undefined) return Object.freeze({ disposition: "actionable", finding });
|
|
172
|
+
if (audit.status === "applied") {
|
|
173
|
+
return Object.freeze({ disposition: "waived", finding, waiver: audit.waiver });
|
|
174
|
+
}
|
|
175
|
+
return Object.freeze({ disposition: "overmatched", finding });
|
|
176
|
+
}
|
package/src/index.ts
ADDED
|
@@ -0,0 +1,123 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Vibe Check 是由项目在 Bun runtime 中调用的 TypeScript API,用于定义并执行项目质量 Check。
|
|
3
|
+
* 所有公开能力从 package root 导入;package `README.md` 说明 consumer authoring、结果读取和分发范围。
|
|
4
|
+
*
|
|
5
|
+
* @packageDocumentation
|
|
6
|
+
*/
|
|
7
|
+
export { duplicateDetection } from "./package-checks/duplicate-detection/default-check.ts";
|
|
8
|
+
export { parseDuplicateDetectionData } from "./package-checks/duplicate-detection/final-data.ts";
|
|
9
|
+
export type { DuplicateDetectionFinalData } from "./package-checks/duplicate-detection/final-data.ts";
|
|
10
|
+
export type {
|
|
11
|
+
DuplicateDetectionOptions,
|
|
12
|
+
ResolvedDuplicateDetectionOptions
|
|
13
|
+
} from "./package-checks/duplicate-detection/options.ts";
|
|
14
|
+
export type { DuplicateDetectionUnavailableReasonCode } from "./package-checks/duplicate-detection/execution.ts";
|
|
15
|
+
export type { DuplicateDetectionRecordData } from "./package-checks/duplicate-detection/records.ts";
|
|
16
|
+
export { fileMetrics } from "./package-checks/file-metrics/constructor.ts";
|
|
17
|
+
export { parseFileMetricsData } from "./package-checks/file-metrics/final-data.ts";
|
|
18
|
+
export type { FileMetricsFinalData } from "./package-checks/file-metrics/final-data.ts";
|
|
19
|
+
export type {
|
|
20
|
+
FileMetricsFindingIdentity,
|
|
21
|
+
FileMetricsFindingWaiver,
|
|
22
|
+
FileMetricsOptions,
|
|
23
|
+
ResolvedFileMetricsOptions
|
|
24
|
+
} from "./package-checks/file-metrics/options.ts";
|
|
25
|
+
export type { FileMetricsUnavailableReasonCode } from "./package-checks/file-metrics/execution.ts";
|
|
26
|
+
export type { FileMetricsRecordData } from "./package-checks/file-metrics/records.ts";
|
|
27
|
+
export { functionMetrics } from "./package-checks/function-metrics/constructor.ts";
|
|
28
|
+
export { parseFunctionMetricsData } from "./package-checks/function-metrics/final-data.ts";
|
|
29
|
+
export type { FunctionMetricsFinalData } from "./package-checks/function-metrics/final-data.ts";
|
|
30
|
+
export type {
|
|
31
|
+
FunctionMetricsOptions,
|
|
32
|
+
ResolvedFunctionMetricsOptions
|
|
33
|
+
} from "./package-checks/function-metrics/options.ts";
|
|
34
|
+
export type { FunctionMetricsUnavailableReasonCode } from "./package-checks/function-metrics/execution.ts";
|
|
35
|
+
export type { FunctionMetricsRecordData } from "./package-checks/function-metrics/records.ts";
|
|
36
|
+
export { jsonSchemaValidation } from "./package-checks/json-schema-validation/default-check.ts";
|
|
37
|
+
export { parseJsonSchemaValidationData } from "./package-checks/json-schema-validation/final-data.ts";
|
|
38
|
+
export type { JsonSchemaValidationFinalData } from "./package-checks/json-schema-validation/final-data.ts";
|
|
39
|
+
export type {
|
|
40
|
+
JsonSchemaValidationOptions,
|
|
41
|
+
ResolvedJsonSchemaValidationOptions
|
|
42
|
+
} from "./package-checks/json-schema-validation/options.ts";
|
|
43
|
+
export type {
|
|
44
|
+
JsonSchemaDocumentReason,
|
|
45
|
+
JsonSchemaValidationRecordData,
|
|
46
|
+
JsonSchemaValidationRecordReason,
|
|
47
|
+
JsonSchemaValidationUnavailableCode
|
|
48
|
+
} from "./package-checks/json-schema-validation/json-schema-validation.ts";
|
|
49
|
+
export { jsonValidation } from "./package-checks/json-validation/default-check.ts";
|
|
50
|
+
export { parseJsonValidationData } from "./package-checks/json-validation/final-data.ts";
|
|
51
|
+
export type { JsonValidationFinalData } from "./package-checks/json-validation/final-data.ts";
|
|
52
|
+
export type {
|
|
53
|
+
JsonValidationOptions,
|
|
54
|
+
ResolvedJsonValidationOptions
|
|
55
|
+
} from "./package-checks/json-validation/options.ts";
|
|
56
|
+
export type {
|
|
57
|
+
JsonValidationRecordData,
|
|
58
|
+
JsonValidationRecordReason,
|
|
59
|
+
JsonValidationUnavailableCode
|
|
60
|
+
} from "./package-checks/json-validation/json-validation.ts";
|
|
61
|
+
export { maintenanceReminders } from "./package-checks/maintenance-reminders/maintenance-reminders.ts";
|
|
62
|
+
export type {
|
|
63
|
+
MaintenanceReminder,
|
|
64
|
+
MaintenanceReminderOptions,
|
|
65
|
+
MaintenanceRemindersUnavailableCode
|
|
66
|
+
} from "./package-checks/maintenance-reminders/maintenance-reminders.ts";
|
|
67
|
+
export { parseMaintenanceRemindersData } from "./package-checks/maintenance-reminders/final-data.ts";
|
|
68
|
+
export type {
|
|
69
|
+
MaintenanceReminderAssessment,
|
|
70
|
+
MaintenanceReminderUnavailableReason,
|
|
71
|
+
MaintenanceRemindersFinalData
|
|
72
|
+
} from "./package-checks/maintenance-reminders/final-data.ts";
|
|
73
|
+
export { markdownLinkValidation } from "./package-checks/markdown-link-validation/default-check.ts";
|
|
74
|
+
export { parseMarkdownLinkValidationData } from "./package-checks/markdown-link-validation/final-data.ts";
|
|
75
|
+
export type { MarkdownLinkValidationFinalData } from "./package-checks/markdown-link-validation/final-data.ts";
|
|
76
|
+
export type {
|
|
77
|
+
MarkdownLinkValidationOptions,
|
|
78
|
+
ResolvedMarkdownLinkValidationOptions
|
|
79
|
+
} from "./package-checks/markdown-link-validation/options.ts";
|
|
80
|
+
export type { MarkdownLinkValidationUnavailableReason } from "./package-checks/markdown-link-validation/execution.ts";
|
|
81
|
+
export type { MarkdownLinkValidationRecordData } from "./package-checks/markdown-link-validation/records.ts";
|
|
82
|
+
export type { MarkdownLinkFindingReason } from "./package-checks/markdown-link-validation/local-resolver.ts";
|
|
83
|
+
export type { FindingPolicy } from "./package-checks/code-quality-findings/policy.ts";
|
|
84
|
+
export { reconcileFindingWaivers } from "./finding-waivers/reconciliation.ts";
|
|
85
|
+
export type {
|
|
86
|
+
FindingWaiver,
|
|
87
|
+
FindingWaiverAudit,
|
|
88
|
+
FindingWaiverReconciliation,
|
|
89
|
+
MaterializedFindingWaiver,
|
|
90
|
+
ReconciledFinding,
|
|
91
|
+
ReconcileFindingWaiversOptions
|
|
92
|
+
} from "./finding-waivers/reconciliation.ts";
|
|
93
|
+
export { defaultProjectFileSelection } from "./package-checks/project-files/configuration.ts";
|
|
94
|
+
export type {
|
|
95
|
+
ProjectFileSelection,
|
|
96
|
+
ProjectFileSelectionOptions,
|
|
97
|
+
ProjectFileSource
|
|
98
|
+
} from "./package-checks/project-files/configuration.ts";
|
|
99
|
+
export { defineCheck, inherit } from "./check/check.ts";
|
|
100
|
+
export type {
|
|
101
|
+
Check,
|
|
102
|
+
CheckExecution,
|
|
103
|
+
CheckExecutionContext,
|
|
104
|
+
CheckPreflight,
|
|
105
|
+
CheckPreflightResult,
|
|
106
|
+
CheckOutcome,
|
|
107
|
+
CheckResult,
|
|
108
|
+
CheckUnavailableReason,
|
|
109
|
+
InheritableCheckCollection
|
|
110
|
+
} from "./check/check.ts";
|
|
111
|
+
export { defineConfig } from "./project-definition/project-definition.ts";
|
|
112
|
+
export type {
|
|
113
|
+
ProjectOutputs,
|
|
114
|
+
ProjectDefinition,
|
|
115
|
+
SchedulerPolicy
|
|
116
|
+
} from "./project-definition/project-definition.ts";
|
|
117
|
+
export type {
|
|
118
|
+
CheckAggregate,
|
|
119
|
+
CheckAggregation,
|
|
120
|
+
RunControls
|
|
121
|
+
} from "./project-run/controls/contract.ts";
|
|
122
|
+
export { run } from "./project-run/run.ts";
|
|
123
|
+
export type { RunResult } from "./project-run/result.ts";
|
|
@@ -0,0 +1,123 @@
|
|
|
1
|
+
import { randomUUID } from "node:crypto";
|
|
2
|
+
import fs from "node:fs";
|
|
3
|
+
import { join } from "node:path";
|
|
4
|
+
|
|
5
|
+
const CANONICAL_NAMES = ["records.ndjson", "run.json"] as const;
|
|
6
|
+
const RETIRED_NAMES = [
|
|
7
|
+
"metrics.json",
|
|
8
|
+
"report.md",
|
|
9
|
+
"warnings-all.ndjson",
|
|
10
|
+
"warnings.ndjson"
|
|
11
|
+
] as const;
|
|
12
|
+
const OWNED_TEMP_PREFIX = ".vibe-check-publication-";
|
|
13
|
+
|
|
14
|
+
interface PublicationCandidatePath {
|
|
15
|
+
readonly canonical: string;
|
|
16
|
+
readonly contents: string;
|
|
17
|
+
readonly temp: string;
|
|
18
|
+
}
|
|
19
|
+
|
|
20
|
+
interface PublicationCandidates {
|
|
21
|
+
readonly recordsNdjson: string;
|
|
22
|
+
readonly runJson: string;
|
|
23
|
+
}
|
|
24
|
+
|
|
25
|
+
/** Writes an already validated two-file candidate set through owned temporary paths. */
|
|
26
|
+
export function publishPublicationCandidatesV4(
|
|
27
|
+
artifactDir: string,
|
|
28
|
+
candidates: PublicationCandidates
|
|
29
|
+
): void {
|
|
30
|
+
fs.mkdirSync(artifactDir, { recursive: true });
|
|
31
|
+
const files = publicationCandidatePaths(artifactDir, randomUUID(), candidates);
|
|
32
|
+
let hasReplacedCanonicalPath = false;
|
|
33
|
+
try {
|
|
34
|
+
cleanupOwnedTemps(artifactDir);
|
|
35
|
+
for (const file of files) {
|
|
36
|
+
fs.writeFileSync(file.temp, file.contents, { encoding: "utf8", flag: "wx" });
|
|
37
|
+
}
|
|
38
|
+
for (const file of files) {
|
|
39
|
+
fs.renameSync(file.temp, file.canonical);
|
|
40
|
+
hasReplacedCanonicalPath = true;
|
|
41
|
+
}
|
|
42
|
+
cleanupRetiredArtifacts(artifactDir);
|
|
43
|
+
} catch (error: unknown) {
|
|
44
|
+
if (hasReplacedCanonicalPath) cleanupPublicationV4BestEffort(artifactDir);
|
|
45
|
+
else cleanupOwnedTempsBestEffort(artifactDir);
|
|
46
|
+
throw error;
|
|
47
|
+
}
|
|
48
|
+
}
|
|
49
|
+
|
|
50
|
+
export function cleanupPublicationV4(artifactDir: string): void {
|
|
51
|
+
removePaths([
|
|
52
|
+
...artifactPaths(artifactDir, CANONICAL_NAMES),
|
|
53
|
+
...artifactPaths(artifactDir, RETIRED_NAMES),
|
|
54
|
+
...ownedTempPaths(artifactDir)
|
|
55
|
+
]);
|
|
56
|
+
}
|
|
57
|
+
|
|
58
|
+
export function cleanupPublicationV4BestEffort(artifactDir: string): void {
|
|
59
|
+
try {
|
|
60
|
+
cleanupPublicationV4(artifactDir);
|
|
61
|
+
} catch {
|
|
62
|
+
// Failure cleanup cannot conceal the original publication failure.
|
|
63
|
+
}
|
|
64
|
+
}
|
|
65
|
+
|
|
66
|
+
function publicationCandidatePaths(
|
|
67
|
+
artifactDir: string,
|
|
68
|
+
token: string,
|
|
69
|
+
candidates: PublicationCandidates
|
|
70
|
+
): readonly PublicationCandidatePath[] {
|
|
71
|
+
return [
|
|
72
|
+
{
|
|
73
|
+
canonical: join(artifactDir, "run.json"),
|
|
74
|
+
contents: candidates.runJson,
|
|
75
|
+
temp: join(artifactDir, `.vibe-check-publication-${token}-run.json.tmp`)
|
|
76
|
+
},
|
|
77
|
+
{
|
|
78
|
+
canonical: join(artifactDir, "records.ndjson"),
|
|
79
|
+
contents: candidates.recordsNdjson,
|
|
80
|
+
temp: join(artifactDir, `.vibe-check-publication-${token}-records.ndjson.tmp`)
|
|
81
|
+
}
|
|
82
|
+
];
|
|
83
|
+
}
|
|
84
|
+
|
|
85
|
+
function cleanupOwnedTemps(artifactDir: string): void {
|
|
86
|
+
removePaths(ownedTempPaths(artifactDir));
|
|
87
|
+
}
|
|
88
|
+
|
|
89
|
+
function cleanupOwnedTempsBestEffort(artifactDir: string): void {
|
|
90
|
+
try {
|
|
91
|
+
cleanupOwnedTemps(artifactDir);
|
|
92
|
+
} catch {
|
|
93
|
+
// Failure cleanup cannot conceal the original publication failure.
|
|
94
|
+
}
|
|
95
|
+
}
|
|
96
|
+
|
|
97
|
+
function cleanupRetiredArtifacts(artifactDir: string): void {
|
|
98
|
+
removePaths(artifactPaths(artifactDir, RETIRED_NAMES));
|
|
99
|
+
}
|
|
100
|
+
|
|
101
|
+
function artifactPaths(artifactDir: string, names: readonly string[]): readonly string[] {
|
|
102
|
+
return names.map((name) => join(artifactDir, name));
|
|
103
|
+
}
|
|
104
|
+
|
|
105
|
+
function ownedTempPaths(artifactDir: string): readonly string[] {
|
|
106
|
+
return fs
|
|
107
|
+
.readdirSync(artifactDir, { withFileTypes: true })
|
|
108
|
+
.filter((entry) => entry.name.startsWith(OWNED_TEMP_PREFIX))
|
|
109
|
+
.map((entry) => join(artifactDir, entry.name))
|
|
110
|
+
.sort();
|
|
111
|
+
}
|
|
112
|
+
|
|
113
|
+
function removePaths(paths: readonly string[]): void {
|
|
114
|
+
let firstFailure: unknown;
|
|
115
|
+
for (const path of paths) {
|
|
116
|
+
try {
|
|
117
|
+
fs.rmSync(path, { force: true, recursive: true });
|
|
118
|
+
} catch (error: unknown) {
|
|
119
|
+
firstFailure ??= error;
|
|
120
|
+
}
|
|
121
|
+
}
|
|
122
|
+
if (firstFailure !== undefined) throw firstFailure;
|
|
123
|
+
}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Output projections are validated or freshly constructed plain data. Freeze
|
|
3
|
+
* them before they cross a publication boundary so later consumers cannot
|
|
4
|
+
* drift from the one validated model.
|
|
5
|
+
*/
|
|
6
|
+
export function freezePublicationValue<T>(value: T): T {
|
|
7
|
+
if (value !== null && typeof value === "object" && !Object.isFrozen(value)) {
|
|
8
|
+
Object.freeze(value);
|
|
9
|
+
for (const child of Object.values(value)) freezePublicationValue(child);
|
|
10
|
+
}
|
|
11
|
+
return value;
|
|
12
|
+
}
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
import { MACHINE_RECORD_V4_IDENTITY, MACHINE_RUN_V4_IDENTITY } from "./schema-identities.ts";
|
|
2
|
+
import type { TrustedPublicationModelV4 } from "./publication-model.ts";
|
|
3
|
+
import { createRecordsFingerprintV4 } from "./records-fingerprint.ts";
|
|
4
|
+
import type { MachineRecordV4, MachineRunV4 } from "./schema.ts";
|
|
5
|
+
import { freezePublicationValue } from "./freeze-publication-value.ts";
|
|
6
|
+
|
|
7
|
+
export interface MachinePublicationV4 {
|
|
8
|
+
readonly records: readonly MachineRecordV4[];
|
|
9
|
+
readonly run: MachineRunV4;
|
|
10
|
+
}
|
|
11
|
+
|
|
12
|
+
export function projectMachinePublicationV4(
|
|
13
|
+
model: TrustedPublicationModelV4
|
|
14
|
+
): MachinePublicationV4 {
|
|
15
|
+
const records = Object.freeze(
|
|
16
|
+
model.snapshot.records.map((record): MachineRecordV4 =>
|
|
17
|
+
freezePublicationValue({
|
|
18
|
+
checkId: record.checkId,
|
|
19
|
+
data: record.data,
|
|
20
|
+
id: record.id,
|
|
21
|
+
schemaVersion: MACHINE_RECORD_V4_IDENTITY
|
|
22
|
+
})
|
|
23
|
+
)
|
|
24
|
+
);
|
|
25
|
+
const run: MachineRunV4 = {
|
|
26
|
+
checks: model.snapshot.checks.map((check): MachineRunV4["checks"][number] => ({
|
|
27
|
+
checkId: check.checkId,
|
|
28
|
+
displayName: check.displayName,
|
|
29
|
+
outcome: check.outcome
|
|
30
|
+
})),
|
|
31
|
+
invocation: { ...model.invocation },
|
|
32
|
+
recordsFingerprint: createRecordsFingerprintV4(records),
|
|
33
|
+
schemaVersion: MACHINE_RUN_V4_IDENTITY
|
|
34
|
+
};
|
|
35
|
+
return Object.freeze({ records, run: freezePublicationValue(run) });
|
|
36
|
+
}
|
|
@@ -0,0 +1,89 @@
|
|
|
1
|
+
import { validateCoreSnapshot } from "../../check-settlement/fact-validation.ts";
|
|
2
|
+
import { createRecordsFingerprintV4 } from "./records-fingerprint.ts";
|
|
3
|
+
import type { MachineRecordV4, MachineRunV4 } from "./schema.ts";
|
|
4
|
+
import { setInvariantFailure, type ValidationFailure } from "./validation-result.ts";
|
|
5
|
+
|
|
6
|
+
export function validatePublicationInvariants(
|
|
7
|
+
run: MachineRunV4,
|
|
8
|
+
records: readonly MachineRecordV4[]
|
|
9
|
+
): ValidationFailure | null {
|
|
10
|
+
const checkOrder = validateCheckOrder(run);
|
|
11
|
+
if (checkOrder !== null) return checkOrder;
|
|
12
|
+
const recordOrder = validateRecordOrder(records);
|
|
13
|
+
if (recordOrder !== null) return recordOrder;
|
|
14
|
+
const ownership = validateRecordOwnership(run, records);
|
|
15
|
+
if (ownership !== null) return ownership;
|
|
16
|
+
const core = validateProjectedCore(run, records);
|
|
17
|
+
if (core !== null) return core;
|
|
18
|
+
return createRecordsFingerprintV4(records) === run.recordsFingerprint
|
|
19
|
+
? null
|
|
20
|
+
: setInvariantFailure(
|
|
21
|
+
"records-fingerprint",
|
|
22
|
+
"records.ndjson",
|
|
23
|
+
"Records fingerprint must match the complete canonical Record row set."
|
|
24
|
+
);
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
function validateCheckOrder(run: MachineRunV4): ValidationFailure | null {
|
|
28
|
+
let previous: string | undefined;
|
|
29
|
+
for (const check of run.checks) {
|
|
30
|
+
if (previous !== undefined && previous >= check.checkId) {
|
|
31
|
+
return setInvariantFailure(
|
|
32
|
+
"check-canonical-order",
|
|
33
|
+
"run.json",
|
|
34
|
+
"Checks must be uniquely sorted by checkId."
|
|
35
|
+
);
|
|
36
|
+
}
|
|
37
|
+
previous = check.checkId;
|
|
38
|
+
}
|
|
39
|
+
return null;
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
function validateRecordOrder(records: readonly MachineRecordV4[]): ValidationFailure | null {
|
|
43
|
+
let previous: readonly [string, string] | undefined;
|
|
44
|
+
for (const [index, record] of records.entries()) {
|
|
45
|
+
const current = [record.checkId, record.id] as const;
|
|
46
|
+
if (
|
|
47
|
+
previous !== undefined &&
|
|
48
|
+
(previous[0] > current[0] || (previous[0] === current[0] && previous[1] >= current[1]))
|
|
49
|
+
) {
|
|
50
|
+
return setInvariantFailure(
|
|
51
|
+
"record-canonical-order",
|
|
52
|
+
"records.ndjson",
|
|
53
|
+
"Records must be uniquely sorted by the composite { checkId, id } identity.",
|
|
54
|
+
index
|
|
55
|
+
);
|
|
56
|
+
}
|
|
57
|
+
previous = current;
|
|
58
|
+
}
|
|
59
|
+
return null;
|
|
60
|
+
}
|
|
61
|
+
|
|
62
|
+
function validateRecordOwnership(
|
|
63
|
+
run: MachineRunV4,
|
|
64
|
+
records: readonly MachineRecordV4[]
|
|
65
|
+
): ValidationFailure | null {
|
|
66
|
+
const knownChecks = new Set(run.checks.map((check) => check.checkId));
|
|
67
|
+
const unknownIndex = records.findIndex((record) => !knownChecks.has(record.checkId));
|
|
68
|
+
return unknownIndex === -1
|
|
69
|
+
? null
|
|
70
|
+
: setInvariantFailure(
|
|
71
|
+
"record-check-ownership",
|
|
72
|
+
"records.ndjson",
|
|
73
|
+
"Every Record must name a published owning Check.",
|
|
74
|
+
unknownIndex
|
|
75
|
+
);
|
|
76
|
+
}
|
|
77
|
+
|
|
78
|
+
function validateProjectedCore(
|
|
79
|
+
run: MachineRunV4,
|
|
80
|
+
records: readonly MachineRecordV4[]
|
|
81
|
+
): ValidationFailure | null {
|
|
82
|
+
const snapshot = validateCoreSnapshot({
|
|
83
|
+
checks: run.checks,
|
|
84
|
+
records: records.map(({ schemaVersion: _schemaVersion, ...record }) => record)
|
|
85
|
+
});
|
|
86
|
+
return snapshot.ok
|
|
87
|
+
? null
|
|
88
|
+
: setInvariantFailure("core-snapshot", "run.json", "Published Core facts are invalid.");
|
|
89
|
+
}
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
import type { CoreSnapshot } from "../../check-settlement/facts.ts";
|
|
2
|
+
import { MACHINE_V4_TIMESTAMP_PATTERN } from "./schema-identities.ts";
|
|
3
|
+
|
|
4
|
+
const machineV4TimestampPattern = new RegExp(MACHINE_V4_TIMESTAMP_PATTERN);
|
|
5
|
+
|
|
6
|
+
export interface PublicationInvocationV4 {
|
|
7
|
+
readonly invocationId: string;
|
|
8
|
+
readonly projectRoot: ".";
|
|
9
|
+
readonly timestamp: string;
|
|
10
|
+
}
|
|
11
|
+
|
|
12
|
+
/** Trusted Core facts and validated invocation metadata for v4 candidate projection. */
|
|
13
|
+
export interface TrustedPublicationModelV4 {
|
|
14
|
+
readonly invocation: PublicationInvocationV4;
|
|
15
|
+
readonly snapshot: CoreSnapshot;
|
|
16
|
+
}
|
|
17
|
+
|
|
18
|
+
export function createPublicationModelV4(
|
|
19
|
+
input: Readonly<{ invocation: PublicationInvocationV4; snapshot: CoreSnapshot }>
|
|
20
|
+
): TrustedPublicationModelV4 {
|
|
21
|
+
validateInvocation(input.invocation);
|
|
22
|
+
return Object.freeze({
|
|
23
|
+
invocation: Object.freeze({ ...input.invocation }),
|
|
24
|
+
snapshot: input.snapshot
|
|
25
|
+
});
|
|
26
|
+
}
|
|
27
|
+
|
|
28
|
+
function validateInvocation(invocation: PublicationInvocationV4): void {
|
|
29
|
+
if (
|
|
30
|
+
typeof invocation.invocationId !== "string" ||
|
|
31
|
+
invocation.invocationId.length === 0 ||
|
|
32
|
+
invocation.projectRoot !== "." ||
|
|
33
|
+
typeof invocation.timestamp !== "string" ||
|
|
34
|
+
!machineV4TimestampPattern.test(invocation.timestamp)
|
|
35
|
+
) {
|
|
36
|
+
throw new TypeError("Publication invocation metadata is invalid");
|
|
37
|
+
}
|
|
38
|
+
}
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import { projectMachinePublicationV4 } from "./projection.ts";
|
|
2
|
+
import { serializeMachinePublicationV4 } from "./serializers.ts";
|
|
3
|
+
import { validateMachinePublicationSetV4 } from "./validation.ts";
|
|
4
|
+
import { type TrustedPublicationModelV4 } from "./publication-model.ts";
|
|
5
|
+
import { publishPublicationCandidatesV4 } from "./atomic-publication.ts";
|
|
6
|
+
|
|
7
|
+
export { cleanupPublicationV4, cleanupPublicationV4BestEffort } from "./atomic-publication.ts";
|
|
8
|
+
|
|
9
|
+
/** Publishes only the validated two-file machine set; human projection is not a v4 concern. */
|
|
10
|
+
export function publishScanV4(
|
|
11
|
+
input: Readonly<{ artifactDir: string; model: TrustedPublicationModelV4 }>
|
|
12
|
+
): void {
|
|
13
|
+
const machine = projectMachinePublicationV4(input.model);
|
|
14
|
+
const candidates = serializeMachinePublicationV4(machine);
|
|
15
|
+
const validation = validateMachinePublicationSetV4({
|
|
16
|
+
recordsNdjson: Buffer.from(candidates.recordsNdjson, "utf8"),
|
|
17
|
+
runJson: Buffer.from(candidates.runJson, "utf8")
|
|
18
|
+
});
|
|
19
|
+
if (!validation.ok) {
|
|
20
|
+
throw new Error(`Machine publication v4 validation failed: ${validation.diagnostic.message}`);
|
|
21
|
+
}
|
|
22
|
+
publishPublicationCandidatesV4(input.artifactDir, candidates);
|
|
23
|
+
}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { createHash } from "node:crypto";
|
|
2
|
+
|
|
3
|
+
import { canonicalJsonBytes } from "../../data-boundary/canonical-data.ts";
|
|
4
|
+
import type { MachineRecordV4 } from "./schema.ts";
|
|
5
|
+
|
|
6
|
+
export const MACHINE_RECORDS_V4_FINGERPRINT_PREFIX = "check-record/v2/records/sha256:";
|
|
7
|
+
|
|
8
|
+
/** Binds the complete, canonically ordered v4 Record row set, including empty. */
|
|
9
|
+
export function createRecordsFingerprintV4(records: readonly MachineRecordV4[]): string {
|
|
10
|
+
const bytes = canonicalJsonBytes(records);
|
|
11
|
+
return `${MACHINE_RECORDS_V4_FINGERPRINT_PREFIX}${createHash("sha256").update(bytes).digest("hex")}`;
|
|
12
|
+
}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
export const MACHINE_RUN_V4_SCHEMA_ID = "urn:vibe-check:schema:run:v4";
|
|
2
|
+
export const MACHINE_RECORD_V4_SCHEMA_ID = "urn:vibe-check:schema:record:v4";
|
|
3
|
+
export const MACHINE_RUN_V4_IDENTITY = "vibe-check.run.v4";
|
|
4
|
+
export const MACHINE_RECORD_V4_IDENTITY = "vibe-check.record.v4";
|
|
5
|
+
export const MACHINE_V4_TIMESTAMP_PATTERN =
|
|
6
|
+
"^[0-9]{4}-[0-9]{2}-[0-9]{2}T[0-9]{2}:[0-9]{2}:[0-9]{2}\\.[0-9]{3}Z$";
|
|
7
|
+
export const MACHINE_RUN_V4_SCHEMA_PATH = "docs/schemas/vibe-check-run.schema.json";
|
|
8
|
+
export const MACHINE_RECORD_V4_SCHEMA_PATH = "docs/schemas/vibe-check-record.schema.json";
|