@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,303 @@
|
|
|
1
|
+
import type { CheckProjectContext } from "../check/check.ts";
|
|
2
|
+
import type { CoreSnapshot } from "../check-settlement/facts.ts";
|
|
3
|
+
import {
|
|
4
|
+
normalizeProjectDefinition,
|
|
5
|
+
type DefinitionWarning,
|
|
6
|
+
type NormalizedProjectDefinition,
|
|
7
|
+
type ProjectDefinition
|
|
8
|
+
} from "../project-definition/project-definition.ts";
|
|
9
|
+
import type { CheckAggregation, RunControls } from "./controls/contract.ts";
|
|
10
|
+
import { prepareTaskGraph } from "./task-scheduler/graph.ts";
|
|
11
|
+
import { aggregateCheckOutcomes, validateCheckAggregationSelection } from "./aggregation.ts";
|
|
12
|
+
import {
|
|
13
|
+
executeResolvedChecks,
|
|
14
|
+
type CheckExecutionClock,
|
|
15
|
+
type ResolvedCheckExecution
|
|
16
|
+
} from "./check-execution/resolved-checks.ts";
|
|
17
|
+
import { planStaticCheckGraph } from "./check-execution/plan.ts";
|
|
18
|
+
import {
|
|
19
|
+
type ProgressRefreshScheduler,
|
|
20
|
+
type ProgressRendering,
|
|
21
|
+
type ProgressWriterFactory
|
|
22
|
+
} from "./progress-rendering/presentation.ts";
|
|
23
|
+
import { completeInvocation, finalizeInvocation, type CoreExecution } from "./completion.ts";
|
|
24
|
+
import { createProjectContext } from "./project-context.ts";
|
|
25
|
+
import {
|
|
26
|
+
executionCancellation,
|
|
27
|
+
isCancelled,
|
|
28
|
+
planning,
|
|
29
|
+
preExecutionCancellation,
|
|
30
|
+
type NonConfigurationRunResult,
|
|
31
|
+
type RunDiagnostic,
|
|
32
|
+
type RunResult
|
|
33
|
+
} from "./result.ts";
|
|
34
|
+
import {
|
|
35
|
+
diagnosticTags,
|
|
36
|
+
type DiagnosticLogger,
|
|
37
|
+
type DiagnosticLoggerFactory
|
|
38
|
+
} from "./diagnostic-logging/logger.ts";
|
|
39
|
+
import { createInvocation } from "./invocation-creation.ts";
|
|
40
|
+
import type { OutputStatuses } from "./output-status.ts";
|
|
41
|
+
export type Invocation = Readonly<{
|
|
42
|
+
readonly clock: CheckExecutionClock;
|
|
43
|
+
readonly controls: RunControls;
|
|
44
|
+
readonly declarativeFingerprint: string;
|
|
45
|
+
readonly definition: ProjectDefinition;
|
|
46
|
+
readonly definitionWarnings: readonly DefinitionWarning[];
|
|
47
|
+
readonly diagnosticLogger: DiagnosticLogger;
|
|
48
|
+
readonly outputConfiguration: ProjectDefinition["outputs"];
|
|
49
|
+
readonly outputs: OutputStatuses;
|
|
50
|
+
readonly invocationId: string;
|
|
51
|
+
readonly normalized: NormalizedProjectDefinition;
|
|
52
|
+
readonly progressRendering: ProgressRendering;
|
|
53
|
+
readonly projectRoot: string;
|
|
54
|
+
/** Immutable UTC instant captured for enabled diagnostic or machine output, otherwise `null`. */
|
|
55
|
+
readonly startedAtUtc: string | null;
|
|
56
|
+
}>;
|
|
57
|
+
export interface RunInvocationDependencies {
|
|
58
|
+
readonly clock?: CheckExecutionClock;
|
|
59
|
+
readonly progressRefreshScheduler?: ProgressRefreshScheduler;
|
|
60
|
+
readonly progressWriterFactory?: ProgressWriterFactory;
|
|
61
|
+
readonly diagnosticLoggerFactory?: DiagnosticLoggerFactory;
|
|
62
|
+
/** Test seam for the invocation's machine-readable wall-clock timestamp. */
|
|
63
|
+
readonly wallClock?: Readonly<{ now(): Date }>;
|
|
64
|
+
}
|
|
65
|
+
export async function executeValidatedRun(
|
|
66
|
+
definition: ProjectDefinition,
|
|
67
|
+
controls: RunControls,
|
|
68
|
+
definitionWarnings: readonly DefinitionWarning[],
|
|
69
|
+
dependencies: RunInvocationDependencies = {}
|
|
70
|
+
): Promise<RunResult> {
|
|
71
|
+
const normalized = normalizeProjectDefinition(definition);
|
|
72
|
+
const aggregation = validateCheckAggregationSelection(
|
|
73
|
+
controls.checkAggregation,
|
|
74
|
+
normalized.checks.map((check) => check.definition.checkId)
|
|
75
|
+
);
|
|
76
|
+
if (!aggregation.ok)
|
|
77
|
+
return Object.freeze({
|
|
78
|
+
kind: "configuration",
|
|
79
|
+
definitionWarnings: Object.freeze([...definitionWarnings]),
|
|
80
|
+
diagnostic: aggregation.error
|
|
81
|
+
});
|
|
82
|
+
|
|
83
|
+
const invocation = createInvocation({
|
|
84
|
+
controls,
|
|
85
|
+
definition,
|
|
86
|
+
definitionWarnings,
|
|
87
|
+
dependencies,
|
|
88
|
+
normalized
|
|
89
|
+
});
|
|
90
|
+
let candidate: NonConfigurationRunResult;
|
|
91
|
+
try {
|
|
92
|
+
observeInvocationStarted(invocation, aggregation.value);
|
|
93
|
+
if (isCancelled(controls)) {
|
|
94
|
+
candidate = cancelledBeforeExecution(invocation, "pre-work");
|
|
95
|
+
} else if (!validateTaskGraph(invocation)) {
|
|
96
|
+
candidate = planningResult(invocation, "task-graph-invalid");
|
|
97
|
+
} else {
|
|
98
|
+
candidate = await executePlannedInvocation(invocation, aggregation.value);
|
|
99
|
+
}
|
|
100
|
+
} catch {
|
|
101
|
+
candidate = executionResult(invocation, "task-engine-failed");
|
|
102
|
+
}
|
|
103
|
+
return finalizeInvocation(invocation, candidate);
|
|
104
|
+
}
|
|
105
|
+
|
|
106
|
+
function observeInvocationStarted(
|
|
107
|
+
invocation: Invocation,
|
|
108
|
+
aggregation: CheckAggregation | undefined
|
|
109
|
+
): void {
|
|
110
|
+
invocation.diagnosticLogger.observe({
|
|
111
|
+
event: "run.started",
|
|
112
|
+
tags: diagnosticTags("RUN", "STARTED"),
|
|
113
|
+
details: {
|
|
114
|
+
aggregation: aggregation ?? null,
|
|
115
|
+
checkCount: invocation.normalized.checks.length,
|
|
116
|
+
flags: invocation.controls.flags ?? [],
|
|
117
|
+
invocationId: invocation.invocationId,
|
|
118
|
+
outputs: invocation.outputConfiguration,
|
|
119
|
+
scheduler: invocation.normalized.declarative.scheduler
|
|
120
|
+
}
|
|
121
|
+
});
|
|
122
|
+
}
|
|
123
|
+
|
|
124
|
+
function validateTaskGraph(invocation: Invocation): boolean {
|
|
125
|
+
try {
|
|
126
|
+
prepareTaskGraph(
|
|
127
|
+
planStaticCheckGraph(invocation.normalized.checks),
|
|
128
|
+
invocation.normalized.declarative.scheduler.maxParallel
|
|
129
|
+
);
|
|
130
|
+
invocation.diagnosticLogger.observe({
|
|
131
|
+
event: "run.planning.succeeded",
|
|
132
|
+
tags: diagnosticTags("RUN", "PLANNING", "SUCCEEDED"),
|
|
133
|
+
details: {
|
|
134
|
+
checkCount: invocation.normalized.checks.length,
|
|
135
|
+
maxParallel: invocation.normalized.declarative.scheduler.maxParallel
|
|
136
|
+
}
|
|
137
|
+
});
|
|
138
|
+
return true;
|
|
139
|
+
} catch {
|
|
140
|
+
invocation.diagnosticLogger.observe({
|
|
141
|
+
event: "run.planning.failed",
|
|
142
|
+
tags: diagnosticTags("RUN", "PLANNING", "FAILED"),
|
|
143
|
+
details: {
|
|
144
|
+
checkCount: invocation.normalized.checks.length,
|
|
145
|
+
maxParallel: invocation.normalized.declarative.scheduler.maxParallel
|
|
146
|
+
}
|
|
147
|
+
});
|
|
148
|
+
return false;
|
|
149
|
+
}
|
|
150
|
+
}
|
|
151
|
+
async function executePlannedInvocation(
|
|
152
|
+
invocation: Invocation,
|
|
153
|
+
aggregation: CheckAggregation | undefined
|
|
154
|
+
): Promise<NonConfigurationRunResult> {
|
|
155
|
+
if (isCancelled(invocation.controls)) return cancelledBeforeExecution(invocation, "pre-work");
|
|
156
|
+
return executePreparedInvocation(
|
|
157
|
+
invocation,
|
|
158
|
+
aggregation,
|
|
159
|
+
createProjectContext({ controls: invocation.controls, root: invocation.projectRoot })
|
|
160
|
+
);
|
|
161
|
+
}
|
|
162
|
+
async function executePreparedInvocation(
|
|
163
|
+
invocation: Invocation,
|
|
164
|
+
aggregation: CheckAggregation | undefined,
|
|
165
|
+
project: CheckProjectContext
|
|
166
|
+
): Promise<NonConfigurationRunResult> {
|
|
167
|
+
if (isCancelled(invocation.controls)) return cancelledBeforeExecution(invocation, "planning");
|
|
168
|
+
invocation.progressRendering.prepared(invocation.normalized.checks.length);
|
|
169
|
+
const executionStartedAt = invocation.clock.now();
|
|
170
|
+
const executed = await executeChecks(invocation, project, invocation.clock);
|
|
171
|
+
if (isExecutionRunResult(executed)) return executed;
|
|
172
|
+
invocation.progressRendering.final({
|
|
173
|
+
counts: outcomeCounts(executed.snapshot),
|
|
174
|
+
elapsedMs: elapsedSince(executionStartedAt, invocation.clock),
|
|
175
|
+
execution: executed.kind
|
|
176
|
+
});
|
|
177
|
+
if (executed.kind === "cancelled") {
|
|
178
|
+
invocation.diagnosticLogger.observe({
|
|
179
|
+
event: "run.execution.cancelled",
|
|
180
|
+
tags: diagnosticTags("RUN", "EXECUTION", "CANCELLED"),
|
|
181
|
+
details: { checkCount: executed.snapshot.checks.length }
|
|
182
|
+
});
|
|
183
|
+
return executionCancellation({
|
|
184
|
+
checkDurations: executed.checkDurations,
|
|
185
|
+
checkMessages: executed.checkMessages,
|
|
186
|
+
declarativeFingerprint: invocation.declarativeFingerprint,
|
|
187
|
+
definitionWarnings: invocation.definitionWarnings,
|
|
188
|
+
outputs: invocation.outputs.value(),
|
|
189
|
+
snapshot: executed.snapshot
|
|
190
|
+
});
|
|
191
|
+
}
|
|
192
|
+
const aggregate =
|
|
193
|
+
aggregation === undefined ? null : aggregateCheckOutcomes(executed.snapshot, aggregation);
|
|
194
|
+
invocation.diagnosticLogger.observe({
|
|
195
|
+
event: "run.aggregation.completed",
|
|
196
|
+
tags: diagnosticTags("RUN", "AGGREGATION", "COMPLETED"),
|
|
197
|
+
details: { aggregate, selection: aggregation ?? null }
|
|
198
|
+
});
|
|
199
|
+
const core: CoreExecution = Object.freeze({
|
|
200
|
+
aggregate,
|
|
201
|
+
checkDurations: executed.checkDurations,
|
|
202
|
+
checkMessages: executed.checkMessages,
|
|
203
|
+
snapshot: executed.snapshot
|
|
204
|
+
});
|
|
205
|
+
return completeInvocation(invocation, core);
|
|
206
|
+
}
|
|
207
|
+
|
|
208
|
+
function cancelledBeforeExecution(
|
|
209
|
+
invocation: Invocation,
|
|
210
|
+
phase: "pre-work" | "planning"
|
|
211
|
+
): NonConfigurationRunResult {
|
|
212
|
+
invocation.diagnosticLogger.observe({
|
|
213
|
+
event: "run.cancelled",
|
|
214
|
+
tags: diagnosticTags("RUN", "CANCELLED"),
|
|
215
|
+
details: { phase }
|
|
216
|
+
});
|
|
217
|
+
return preExecutionCancellation(
|
|
218
|
+
invocation.declarativeFingerprint,
|
|
219
|
+
invocation.definitionWarnings,
|
|
220
|
+
invocation.outputs.value(),
|
|
221
|
+
phase
|
|
222
|
+
);
|
|
223
|
+
}
|
|
224
|
+
|
|
225
|
+
async function executeChecks(
|
|
226
|
+
invocation: Invocation,
|
|
227
|
+
project: CheckProjectContext,
|
|
228
|
+
clock: CheckExecutionClock
|
|
229
|
+
): Promise<ResolvedCheckExecution | NonConfigurationRunResult> {
|
|
230
|
+
try {
|
|
231
|
+
return await executeResolvedChecks({
|
|
232
|
+
checks: invocation.normalized.checks,
|
|
233
|
+
clock,
|
|
234
|
+
diagnosticLogger: invocation.diagnosticLogger,
|
|
235
|
+
maxParallel: invocation.normalized.declarative.scheduler.maxParallel,
|
|
236
|
+
lifecycle: invocation.progressRendering.lifecycle,
|
|
237
|
+
project,
|
|
238
|
+
signal: invocation.controls.signal
|
|
239
|
+
});
|
|
240
|
+
} catch {
|
|
241
|
+
return executionResult(invocation, "task-engine-failed");
|
|
242
|
+
}
|
|
243
|
+
}
|
|
244
|
+
function outcomeCounts(snapshot: CoreSnapshot): Readonly<{
|
|
245
|
+
readonly failed: number;
|
|
246
|
+
readonly notApplicable: number;
|
|
247
|
+
readonly passed: number;
|
|
248
|
+
readonly unavailable: number;
|
|
249
|
+
}> {
|
|
250
|
+
let failed = 0,
|
|
251
|
+
notApplicable = 0,
|
|
252
|
+
passed = 0,
|
|
253
|
+
unavailable = 0;
|
|
254
|
+
for (const check of snapshot.checks) {
|
|
255
|
+
switch (check.outcome.status) {
|
|
256
|
+
case "passed":
|
|
257
|
+
passed += 1;
|
|
258
|
+
break;
|
|
259
|
+
case "failed":
|
|
260
|
+
failed += 1;
|
|
261
|
+
break;
|
|
262
|
+
case "not-applicable":
|
|
263
|
+
notApplicable += 1;
|
|
264
|
+
break;
|
|
265
|
+
case "unavailable":
|
|
266
|
+
unavailable += 1;
|
|
267
|
+
break;
|
|
268
|
+
}
|
|
269
|
+
}
|
|
270
|
+
return Object.freeze({ failed, notApplicable, passed, unavailable });
|
|
271
|
+
}
|
|
272
|
+
function elapsedSince(startedAt: number, clock: CheckExecutionClock): number {
|
|
273
|
+
const elapsed = clock.now() - startedAt;
|
|
274
|
+
return Number.isFinite(elapsed) && elapsed >= 0 ? elapsed : 0;
|
|
275
|
+
}
|
|
276
|
+
function planningResult(
|
|
277
|
+
invocation: Invocation,
|
|
278
|
+
code: Extract<RunDiagnostic["code"], "task-graph-invalid">
|
|
279
|
+
): NonConfigurationRunResult {
|
|
280
|
+
return planning(
|
|
281
|
+
invocation.declarativeFingerprint,
|
|
282
|
+
invocation.definitionWarnings,
|
|
283
|
+
invocation.outputs.value(),
|
|
284
|
+
code
|
|
285
|
+
);
|
|
286
|
+
}
|
|
287
|
+
function executionResult(
|
|
288
|
+
invocation: Invocation,
|
|
289
|
+
code: Extract<RunDiagnostic["code"], "publication-model-failed" | "task-engine-failed">
|
|
290
|
+
): NonConfigurationRunResult {
|
|
291
|
+
return Object.freeze({
|
|
292
|
+
kind: "execution",
|
|
293
|
+
declarativeFingerprint: invocation.declarativeFingerprint,
|
|
294
|
+
definitionWarnings: invocation.definitionWarnings,
|
|
295
|
+
diagnostic: Object.freeze({ code }),
|
|
296
|
+
outputs: invocation.outputs.value()
|
|
297
|
+
});
|
|
298
|
+
}
|
|
299
|
+
function isExecutionRunResult(
|
|
300
|
+
value: ResolvedCheckExecution | NonConfigurationRunResult
|
|
301
|
+
): value is NonConfigurationRunResult {
|
|
302
|
+
return "declarativeFingerprint" in value;
|
|
303
|
+
}
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import type { ProjectOutputs } from "../project-definition/project-definition.ts";
|
|
2
|
+
import type { TrustedPublicationModelV4 } from "../machine-output/v4/publication-model.ts";
|
|
3
|
+
import { publishScanV4 } from "../machine-output/v4/publish.ts";
|
|
4
|
+
import type { OutputStatuses } from "./output-status.ts";
|
|
5
|
+
/** Publishes an already-trusted v4 model as the Run-owned machine output. */
|
|
6
|
+
export function publishMachineOutput(
|
|
7
|
+
input: Readonly<{
|
|
8
|
+
readonly configuration: ProjectOutputs["machinePublication"];
|
|
9
|
+
readonly statuses: OutputStatuses;
|
|
10
|
+
readonly model: TrustedPublicationModelV4;
|
|
11
|
+
readonly directory: string;
|
|
12
|
+
}>
|
|
13
|
+
): boolean {
|
|
14
|
+
if (!input.configuration.enabled) return true;
|
|
15
|
+
try {
|
|
16
|
+
publishScanV4({ artifactDir: input.directory, model: input.model });
|
|
17
|
+
input.statuses.succeeded("machinePublication");
|
|
18
|
+
return true;
|
|
19
|
+
} catch {
|
|
20
|
+
input.statuses.failed("machinePublication");
|
|
21
|
+
return false;
|
|
22
|
+
}
|
|
23
|
+
}
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import type {
|
|
2
|
+
ProjectDefinition,
|
|
3
|
+
ProjectOutputs
|
|
4
|
+
} from "../project-definition/project-definition.ts";
|
|
5
|
+
import type { RunControls } from "./controls/contract.ts";
|
|
6
|
+
export function effectiveOutputs(
|
|
7
|
+
definition: ProjectDefinition,
|
|
8
|
+
controls: RunControls
|
|
9
|
+
): ProjectOutputs {
|
|
10
|
+
return Object.freeze({
|
|
11
|
+
machinePublication: Object.freeze({
|
|
12
|
+
...definition.outputs.machinePublication,
|
|
13
|
+
...controls.outputs?.machinePublication
|
|
14
|
+
}),
|
|
15
|
+
progressRendering: Object.freeze({
|
|
16
|
+
...definition.outputs.progressRendering,
|
|
17
|
+
...controls.outputs?.progressRendering
|
|
18
|
+
}),
|
|
19
|
+
diagnosticLogging: Object.freeze({
|
|
20
|
+
...definition.outputs.diagnosticLogging,
|
|
21
|
+
...controls.outputs?.diagnosticLogging
|
|
22
|
+
})
|
|
23
|
+
});
|
|
24
|
+
}
|
|
@@ -0,0 +1,69 @@
|
|
|
1
|
+
import type { ProjectOutputs } from "../project-definition/project-definition.ts";
|
|
2
|
+
|
|
3
|
+
export interface RunOutputStatus {
|
|
4
|
+
readonly enabled: boolean;
|
|
5
|
+
readonly status: "disabled" | "failed" | "not-run" | "succeeded";
|
|
6
|
+
}
|
|
7
|
+
|
|
8
|
+
export interface RunDiagnosticLoggingOutputStatus extends RunOutputStatus {
|
|
9
|
+
/** Project-root-relative target when enabled, otherwise `null`. */
|
|
10
|
+
readonly file: string | null;
|
|
11
|
+
}
|
|
12
|
+
|
|
13
|
+
export interface RunOutputStatuses {
|
|
14
|
+
readonly machinePublication: RunOutputStatus;
|
|
15
|
+
readonly progressRendering: RunOutputStatus;
|
|
16
|
+
readonly diagnosticLogging: RunDiagnosticLoggingOutputStatus;
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
export interface OutputStatuses {
|
|
20
|
+
readonly failed: (output: keyof RunOutputStatuses) => void;
|
|
21
|
+
readonly succeeded: (output: keyof RunOutputStatuses) => void;
|
|
22
|
+
readonly value: () => RunOutputStatuses;
|
|
23
|
+
}
|
|
24
|
+
|
|
25
|
+
export function createOutputStatuses(
|
|
26
|
+
configuration: ProjectOutputs,
|
|
27
|
+
diagnosticLoggingFile: string | null
|
|
28
|
+
): OutputStatuses {
|
|
29
|
+
const statuses: Record<keyof RunOutputStatuses, RunOutputStatus["status"]> = {
|
|
30
|
+
machinePublication: initialStatus(configuration.machinePublication.enabled),
|
|
31
|
+
progressRendering: initialStatus(configuration.progressRendering.enabled),
|
|
32
|
+
diagnosticLogging: initialStatus(configuration.diagnosticLogging.enabled)
|
|
33
|
+
};
|
|
34
|
+
const enabled = (output: keyof RunOutputStatuses): boolean => configuration[output].enabled;
|
|
35
|
+
return Object.freeze({
|
|
36
|
+
failed: (output: keyof RunOutputStatuses) => {
|
|
37
|
+
if (enabled(output)) statuses[output] = "failed";
|
|
38
|
+
},
|
|
39
|
+
succeeded: (output: keyof RunOutputStatuses) => {
|
|
40
|
+
if (enabled(output)) statuses[output] = "succeeded";
|
|
41
|
+
},
|
|
42
|
+
value: () =>
|
|
43
|
+
Object.freeze({
|
|
44
|
+
machinePublication: Object.freeze({
|
|
45
|
+
enabled: configuration.machinePublication.enabled,
|
|
46
|
+
status: statuses.machinePublication
|
|
47
|
+
}),
|
|
48
|
+
progressRendering: Object.freeze({
|
|
49
|
+
enabled: configuration.progressRendering.enabled,
|
|
50
|
+
status: statuses.progressRendering
|
|
51
|
+
}),
|
|
52
|
+
diagnosticLogging: Object.freeze({
|
|
53
|
+
enabled: configuration.diagnosticLogging.enabled,
|
|
54
|
+
file: diagnosticLoggingFile,
|
|
55
|
+
status: statuses.diagnosticLogging
|
|
56
|
+
})
|
|
57
|
+
})
|
|
58
|
+
});
|
|
59
|
+
}
|
|
60
|
+
|
|
61
|
+
export function failedOutput(statuses: RunOutputStatuses): keyof RunOutputStatuses | undefined {
|
|
62
|
+
for (const output of ["progressRendering", "machinePublication", "diagnosticLogging"] as const)
|
|
63
|
+
if (statuses[output].status === "failed") return output;
|
|
64
|
+
return undefined;
|
|
65
|
+
}
|
|
66
|
+
|
|
67
|
+
function initialStatus(enabled: boolean): RunOutputStatus["status"] {
|
|
68
|
+
return enabled ? "not-run" : "disabled";
|
|
69
|
+
}
|
|
@@ -0,0 +1,189 @@
|
|
|
1
|
+
import type {
|
|
2
|
+
CheckExecutionLifecycle,
|
|
3
|
+
CheckSettledFact,
|
|
4
|
+
CheckStartedFact
|
|
5
|
+
} from "../check-execution/resolved-checks.ts";
|
|
6
|
+
import {
|
|
7
|
+
createProgressRenderer,
|
|
8
|
+
type ProgressClock,
|
|
9
|
+
type ProgressFeedback,
|
|
10
|
+
type ProgressOutcomeCounts,
|
|
11
|
+
type ProgressWriter
|
|
12
|
+
} from "./renderer.ts";
|
|
13
|
+
import type { ProjectOutputs } from "../../project-definition/project-definition.ts";
|
|
14
|
+
import type { OutputStatuses } from "../output-status.ts";
|
|
15
|
+
export interface ProgressRendering {
|
|
16
|
+
readonly final: (input: ProgressFinalFeedback) => void;
|
|
17
|
+
readonly lifecycle: CheckExecutionLifecycle;
|
|
18
|
+
readonly prepared: (totalChecks: number) => void;
|
|
19
|
+
}
|
|
20
|
+
export interface ProgressFinalFeedback {
|
|
21
|
+
readonly counts: ProgressOutcomeCounts;
|
|
22
|
+
readonly elapsedMs: number;
|
|
23
|
+
readonly execution: "cancelled" | "completed";
|
|
24
|
+
}
|
|
25
|
+
export type ProgressWriterFactory = () => ProgressWriter;
|
|
26
|
+
|
|
27
|
+
export interface ProgressRefreshSchedule {
|
|
28
|
+
cancel(): void;
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
export interface ProgressRefreshScheduler {
|
|
32
|
+
schedule(refresh: () => void, intervalMs: number): ProgressRefreshSchedule;
|
|
33
|
+
}
|
|
34
|
+
|
|
35
|
+
export interface ProgressRenderingDependencies {
|
|
36
|
+
readonly clock?: ProgressClock;
|
|
37
|
+
readonly refreshScheduler?: ProgressRefreshScheduler;
|
|
38
|
+
readonly writerFactory?: ProgressWriterFactory;
|
|
39
|
+
}
|
|
40
|
+
|
|
41
|
+
const PROGRESS_REFRESH_INTERVAL_MS = 5_000;
|
|
42
|
+
|
|
43
|
+
const defaultProgressRefreshScheduler: ProgressRefreshScheduler = Object.freeze({
|
|
44
|
+
schedule: (refresh: () => void, intervalMs: number) => {
|
|
45
|
+
const interval = setInterval(refresh, intervalMs);
|
|
46
|
+
interval.unref();
|
|
47
|
+
return Object.freeze({ cancel: () => clearInterval(interval) });
|
|
48
|
+
}
|
|
49
|
+
});
|
|
50
|
+
|
|
51
|
+
/** Owns progress writer lifecycle and rendering; failed writers are permanently muted. */
|
|
52
|
+
export function createProgressRendering(
|
|
53
|
+
configuration: ProjectOutputs["progressRendering"],
|
|
54
|
+
statuses: OutputStatuses,
|
|
55
|
+
dependencies: ProgressRenderingDependencies = {}
|
|
56
|
+
): ProgressRendering {
|
|
57
|
+
if (!configuration.enabled) return inertProgressRendering();
|
|
58
|
+
let failed = false;
|
|
59
|
+
const runningCheckIds = new Set<string>();
|
|
60
|
+
let renderer: ReturnType<typeof createProgressRenderer> | undefined;
|
|
61
|
+
let refreshSchedule: ProgressRefreshSchedule | undefined;
|
|
62
|
+
|
|
63
|
+
const failRendering = (): void => {
|
|
64
|
+
if (failed) return;
|
|
65
|
+
failed = true;
|
|
66
|
+
const activeSchedule = refreshSchedule;
|
|
67
|
+
refreshSchedule = undefined;
|
|
68
|
+
try {
|
|
69
|
+
activeSchedule?.cancel();
|
|
70
|
+
} catch {
|
|
71
|
+
// The output is already failed; a scheduler cleanup fault must not reach Check execution.
|
|
72
|
+
}
|
|
73
|
+
statuses.failed("progressRendering");
|
|
74
|
+
};
|
|
75
|
+
|
|
76
|
+
const stopRefresh = (): void => {
|
|
77
|
+
const activeSchedule = refreshSchedule;
|
|
78
|
+
refreshSchedule = undefined;
|
|
79
|
+
try {
|
|
80
|
+
activeSchedule?.cancel();
|
|
81
|
+
} catch {
|
|
82
|
+
failRendering();
|
|
83
|
+
}
|
|
84
|
+
};
|
|
85
|
+
|
|
86
|
+
const render = (feedback: ProgressFeedback): void => {
|
|
87
|
+
if (failed) return;
|
|
88
|
+
try {
|
|
89
|
+
renderer ??= createProgressRenderer(
|
|
90
|
+
(dependencies.writerFactory ?? defaultProgressWriter)(),
|
|
91
|
+
dependencies.clock
|
|
92
|
+
);
|
|
93
|
+
renderer.render(feedback);
|
|
94
|
+
if (feedback.kind === "final") {
|
|
95
|
+
statuses.succeeded("progressRendering");
|
|
96
|
+
}
|
|
97
|
+
} catch {
|
|
98
|
+
failRendering();
|
|
99
|
+
}
|
|
100
|
+
};
|
|
101
|
+
|
|
102
|
+
const refresh = (): void => {
|
|
103
|
+
if (failed) return;
|
|
104
|
+
try {
|
|
105
|
+
renderer?.refresh();
|
|
106
|
+
} catch {
|
|
107
|
+
failRendering();
|
|
108
|
+
}
|
|
109
|
+
};
|
|
110
|
+
|
|
111
|
+
const startRefresh = (): void => {
|
|
112
|
+
if (
|
|
113
|
+
failed ||
|
|
114
|
+
refreshSchedule !== undefined ||
|
|
115
|
+
runningCheckIds.size === 0 ||
|
|
116
|
+
renderer?.refreshesRunningRegion !== true
|
|
117
|
+
) {
|
|
118
|
+
return;
|
|
119
|
+
}
|
|
120
|
+
try {
|
|
121
|
+
refreshSchedule = (dependencies.refreshScheduler ?? defaultProgressRefreshScheduler).schedule(
|
|
122
|
+
refresh,
|
|
123
|
+
PROGRESS_REFRESH_INTERVAL_MS
|
|
124
|
+
);
|
|
125
|
+
} catch {
|
|
126
|
+
failRendering();
|
|
127
|
+
}
|
|
128
|
+
};
|
|
129
|
+
|
|
130
|
+
return Object.freeze({
|
|
131
|
+
prepared: (totalChecks: number) => render(Object.freeze({ kind: "prepared", totalChecks })),
|
|
132
|
+
lifecycle: Object.freeze({
|
|
133
|
+
settled: (fact: CheckSettledFact) => {
|
|
134
|
+
render(
|
|
135
|
+
Object.freeze({
|
|
136
|
+
kind: "settled",
|
|
137
|
+
checkId: fact.checkId,
|
|
138
|
+
displayName: fact.displayName,
|
|
139
|
+
durationMs: fact.durationMs,
|
|
140
|
+
messages: fact.messages,
|
|
141
|
+
outcome: fact.outcome,
|
|
142
|
+
visibility: fact.visibility
|
|
143
|
+
})
|
|
144
|
+
);
|
|
145
|
+
runningCheckIds.delete(fact.checkId);
|
|
146
|
+
if (runningCheckIds.size === 0) stopRefresh();
|
|
147
|
+
},
|
|
148
|
+
started: (fact: CheckStartedFact) => {
|
|
149
|
+
runningCheckIds.add(fact.checkId);
|
|
150
|
+
render(
|
|
151
|
+
Object.freeze({ kind: "started", checkId: fact.checkId, displayName: fact.displayName })
|
|
152
|
+
);
|
|
153
|
+
startRefresh();
|
|
154
|
+
}
|
|
155
|
+
}),
|
|
156
|
+
final: (input: ProgressFinalFeedback) => {
|
|
157
|
+
stopRefresh();
|
|
158
|
+
render(
|
|
159
|
+
Object.freeze({
|
|
160
|
+
kind: "final",
|
|
161
|
+
counts: input.counts,
|
|
162
|
+
elapsedMs: input.elapsedMs,
|
|
163
|
+
execution: input.execution
|
|
164
|
+
})
|
|
165
|
+
);
|
|
166
|
+
}
|
|
167
|
+
});
|
|
168
|
+
}
|
|
169
|
+
function inertProgressRendering(): ProgressRendering {
|
|
170
|
+
const lifecycle = Object.freeze({
|
|
171
|
+
settled: (_fact: CheckSettledFact): void => undefined,
|
|
172
|
+
started: (_fact: CheckStartedFact): void => undefined
|
|
173
|
+
});
|
|
174
|
+
return Object.freeze({
|
|
175
|
+
prepared: (_totalChecks: number): void => undefined,
|
|
176
|
+
lifecycle,
|
|
177
|
+
final: (_input: ProgressFinalFeedback): void => undefined
|
|
178
|
+
});
|
|
179
|
+
}
|
|
180
|
+
function defaultProgressWriter(): ProgressWriter {
|
|
181
|
+
return Object.freeze({
|
|
182
|
+
color: process.stdout.isTTY === true && process.env.NO_COLOR === undefined,
|
|
183
|
+
isTTY: process.stdout.isTTY === true,
|
|
184
|
+
term: process.env.TERM,
|
|
185
|
+
write: (content: string) => {
|
|
186
|
+
process.stdout.write(content);
|
|
187
|
+
}
|
|
188
|
+
});
|
|
189
|
+
}
|