@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,11 @@
|
|
|
1
|
+
import { type TypedCheckWithOptions } from "../../check/check.ts";
|
|
2
|
+
import { parseFileMetricsData } from "./final-data.ts";
|
|
3
|
+
import type { FileMetricsOptions, ResolvedFileMetricsOptions } from "./options.ts";
|
|
4
|
+
/**
|
|
5
|
+
* 使用可省略的区域、代码行与 scanner policy 构造一个完整 file-metrics Check。
|
|
6
|
+
*
|
|
7
|
+
* @param options - 省略字段由 package 补齐;显式 files 数组作为对应字段的完整替换值。
|
|
8
|
+
* @returns 固定 `file-metrics` identity、完整冻结 options、preflight 与 execution。
|
|
9
|
+
* @throws {TypeError} input 含未知字段、空 area、非法代码行 policy、非法 waiver 或空 executable 时抛出。
|
|
10
|
+
*/
|
|
11
|
+
export declare function fileMetrics(options?: FileMetricsOptions): TypedCheckWithOptions<"file-metrics", ResolvedFileMetricsOptions, typeof parseFileMetricsData>;
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import type { CheckExecutionContext, CheckResult } from "../../check/check.ts";
|
|
2
|
+
import type { ResolvedFileMetricsOptions } from "./options.ts";
|
|
3
|
+
import type { FileMetricsFinalData } from "./final-data.ts";
|
|
4
|
+
export declare const FILE_METRICS_CHECK_DEFINITION: {
|
|
5
|
+
readonly checkId: "file-metrics";
|
|
6
|
+
readonly displayName: "File metrics";
|
|
7
|
+
};
|
|
8
|
+
/** `file-metrics` whole-Check unavailable outcome 的稳定 reason code。 */
|
|
9
|
+
export type FileMetricsUnavailableReasonCode = "external-dependency-unavailable" | "external-execution-failed" | "external-result-invalid" | "invalid-options" | "source-unavailable";
|
|
10
|
+
/** 使用 resolved area policy 和 scanner selection 执行一次完整的 file-metrics measurement。 */
|
|
11
|
+
export declare function executeFileMetrics(context: CheckExecutionContext<ResolvedFileMetricsOptions>): Promise<CheckResult<FileMetricsFinalData>>;
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import type { FindingSummary } from "../code-quality-findings/policy.ts";
|
|
2
|
+
/** `file-metrics` 在 passed/failed outcome 中发布的主数据。 */
|
|
3
|
+
export type FileMetricsFinalData = FindingSummary;
|
|
4
|
+
/** 验证并脱离一份 `file-metrics` canonical final-data object。 */
|
|
5
|
+
export declare function parseFileMetricsData(data: unknown): FileMetricsFinalData;
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
export interface FileMetric {
|
|
2
|
+
readonly codeLines: number;
|
|
3
|
+
readonly decisionTokens: Readonly<{
|
|
4
|
+
readonly source: "scc";
|
|
5
|
+
readonly value: number | null;
|
|
6
|
+
}>;
|
|
7
|
+
readonly path: string;
|
|
8
|
+
}
|
|
9
|
+
export interface FileMetricsExactInputSet {
|
|
10
|
+
readonly approvedExactPaths: readonly string[];
|
|
11
|
+
readonly rootDir: string;
|
|
12
|
+
}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import type { FileMetric, FileMetricsExactInputSet } from "./measurement-model.ts";
|
|
2
|
+
import type { ResolvedFileMetricsScannerOptions } from "./options.ts";
|
|
3
|
+
export type FileMeasurementResult = Readonly<{
|
|
4
|
+
kind: "complete";
|
|
5
|
+
metrics: readonly FileMetric[];
|
|
6
|
+
} | {
|
|
7
|
+
kind: "execution-failed";
|
|
8
|
+
} | {
|
|
9
|
+
kind: "invalid-result";
|
|
10
|
+
} | {
|
|
11
|
+
kind: "unavailable";
|
|
12
|
+
}>;
|
|
13
|
+
export declare function measureFileMetrics(exactInputs: FileMetricsExactInputSet, scanner: ResolvedFileMetricsScannerOptions): Promise<FileMeasurementResult>;
|
|
@@ -0,0 +1,75 @@
|
|
|
1
|
+
import type { ProjectFileSelection, ProjectFileSelectionOptions } from "../project-files/configuration.ts";
|
|
2
|
+
import type { FindingPolicy } from "../code-quality-findings/policy.ts";
|
|
3
|
+
import type { FindingWaiver } from "../../finding-waivers/reconciliation.ts";
|
|
4
|
+
/** `fileMetrics` 构造函数可省略的 SCC 可执行文件策略。 */
|
|
5
|
+
export interface FileMetricsScannerOptions {
|
|
6
|
+
/** 省略时直接执行 `scc`;显式命令必须直接接受 adapter 拥有的 SCC 参数。 */
|
|
7
|
+
readonly executable?: string;
|
|
8
|
+
}
|
|
9
|
+
/** file-metrics 区域可省略并由构造函数补齐的文件策略。 */
|
|
10
|
+
export type FileMetricsFileOptions = ProjectFileSelectionOptions;
|
|
11
|
+
/** SCC decision-token 数较低的文件可使用的代码行宽限策略。 */
|
|
12
|
+
export interface FileMetricsLowDecisionTokenAllowanceOptions {
|
|
13
|
+
/** 省略时为 `600`;必须严格大于同一区域的普通代码行上限。 */
|
|
14
|
+
readonly maximumCodeLines?: number;
|
|
15
|
+
/** 省略时为 `12`;decision-token measurement 不大于此值时应用宽限上限。 */
|
|
16
|
+
readonly maximumDecisionTokens?: number;
|
|
17
|
+
}
|
|
18
|
+
/** 一个区域可省略的文件代码行策略。 */
|
|
19
|
+
export interface FileMetricsCodeLineOptions {
|
|
20
|
+
/** 省略时为 `360`;只有严格超过此值才产生 finding。 */
|
|
21
|
+
readonly maximum?: number;
|
|
22
|
+
/** 省略时使用完整默认宽限策略。 */
|
|
23
|
+
readonly lowDecisionTokenAllowance?: FileMetricsLowDecisionTokenAllowanceOptions;
|
|
24
|
+
}
|
|
25
|
+
/** 可独立选择文件并定义代码行与 finding policy 的 file-metrics 区域。 */
|
|
26
|
+
export interface FileMetricsCodeAreaOptions {
|
|
27
|
+
/** 显式区域必须声明本字段;其中各子字段可省略并使用 package 默认值。 */
|
|
28
|
+
readonly files: FileMetricsFileOptions;
|
|
29
|
+
/** 省略时继承顶层 `findingPolicy`。 */
|
|
30
|
+
readonly findingPolicy?: FindingPolicy;
|
|
31
|
+
/** 省略时使用 package 默认代码行策略。 */
|
|
32
|
+
readonly codeLines?: FileMetricsCodeLineOptions;
|
|
33
|
+
}
|
|
34
|
+
/** file-metrics 用于识别可豁免 finding 的稳定语义字段。 */
|
|
35
|
+
export interface FileMetricsFindingIdentity {
|
|
36
|
+
/** file-metrics 当前只产生文件代码行 finding。 */
|
|
37
|
+
readonly metric: "code-lines";
|
|
38
|
+
/** 已 normalized 的 project-root-relative slash path;不得为绝对、含反斜杠或含 `.`/`..` 的路径。 */
|
|
39
|
+
readonly path: string;
|
|
40
|
+
}
|
|
41
|
+
/** 一项 file-metrics finding 的声明式豁免;执行时仍会扫描并发布该 finding。 */
|
|
42
|
+
export type FileMetricsFindingWaiver = FindingWaiver<FileMetricsFindingIdentity>;
|
|
43
|
+
/** `fileMetrics(options?)` 接受并补齐默认值的公开策略。 */
|
|
44
|
+
export interface FileMetricsOptions {
|
|
45
|
+
/** 省略时建立默认 `project` 区域;显式映射必须非空。 */
|
|
46
|
+
readonly codeAreas?: Readonly<Record<string, FileMetricsCodeAreaOptions>>;
|
|
47
|
+
/** 省略时为 `non-blocking`;区域可局部覆盖。 */
|
|
48
|
+
readonly findingPolicy?: FindingPolicy;
|
|
49
|
+
/** 省略时没有豁免;每项以 `{ metric, path }` 精确匹配,并必须提供非空理由。 */
|
|
50
|
+
readonly findingWaivers?: readonly FileMetricsFindingWaiver[];
|
|
51
|
+
/** 省略时直接执行 `scc`;CLI 协议由 owning adapter 固定。 */
|
|
52
|
+
readonly scanner?: FileMetricsScannerOptions;
|
|
53
|
+
}
|
|
54
|
+
/** 构造函数生成并由 Check preflight/execution 消费的完整 options。 */
|
|
55
|
+
export interface ResolvedFileMetricsOptions {
|
|
56
|
+
readonly codeAreas: Readonly<Record<string, ResolvedFileMetricsCodeAreaOptions>>;
|
|
57
|
+
readonly findingWaivers: readonly FileMetricsFindingWaiver[];
|
|
58
|
+
readonly scanner: ResolvedFileMetricsScannerOptions;
|
|
59
|
+
}
|
|
60
|
+
export interface ResolvedFileMetricsCodeAreaOptions {
|
|
61
|
+
readonly codeLines: ResolvedFileMetricsCodeLineOptions;
|
|
62
|
+
readonly files: ProjectFileSelection;
|
|
63
|
+
readonly findingPolicy: FindingPolicy;
|
|
64
|
+
}
|
|
65
|
+
export interface ResolvedFileMetricsCodeLineOptions {
|
|
66
|
+
readonly lowDecisionTokenAllowance: ResolvedFileMetricsLowDecisionTokenAllowanceOptions;
|
|
67
|
+
readonly maximum: number;
|
|
68
|
+
}
|
|
69
|
+
export interface ResolvedFileMetricsLowDecisionTokenAllowanceOptions {
|
|
70
|
+
readonly maximumCodeLines: number;
|
|
71
|
+
readonly maximumDecisionTokens: number;
|
|
72
|
+
}
|
|
73
|
+
export interface ResolvedFileMetricsScannerOptions {
|
|
74
|
+
readonly executable: string;
|
|
75
|
+
}
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
import type { FileMetric } from "./measurement-model.ts";
|
|
2
|
+
import type { FileMetricsFindingIdentity, ResolvedFileMetricsCodeAreaOptions } from "./options.ts";
|
|
3
|
+
import type { FindingWaiverAudit, MaterializedFindingWaiver } from "../../finding-waivers/reconciliation.ts";
|
|
4
|
+
interface FileMetricsAreaPolicyContext {
|
|
5
|
+
readonly areaIdsByPath: ReadonlyMap<string, readonly string[]>;
|
|
6
|
+
readonly codeAreas: Readonly<Record<string, ResolvedFileMetricsCodeAreaOptions>>;
|
|
7
|
+
}
|
|
8
|
+
/** 一条超出文件代码行上限的 supplemental Record data。 */
|
|
9
|
+
export type FileMetricsFindingRecordData = Readonly<{
|
|
10
|
+
readonly blocking: boolean;
|
|
11
|
+
readonly codeAreas: readonly string[];
|
|
12
|
+
readonly codeLines: number;
|
|
13
|
+
readonly limit: number;
|
|
14
|
+
readonly metric: "code-lines";
|
|
15
|
+
readonly path: string;
|
|
16
|
+
/** 精确匹配 waiver 时保留理由,并令该 finding 不再参与 actionable settlement。 */
|
|
17
|
+
readonly waiver?: Readonly<{
|
|
18
|
+
readonly reason: string;
|
|
19
|
+
}>;
|
|
20
|
+
}>;
|
|
21
|
+
/** 未使用或过宽 file-metrics waiver 的 supplemental audit Record data。 */
|
|
22
|
+
export type FileMetricsFindingWaiverAuditRecordData = Readonly<{
|
|
23
|
+
readonly identity: FileMetricsFindingIdentity;
|
|
24
|
+
readonly kind: "finding-waiver-audit";
|
|
25
|
+
readonly matchCount: number;
|
|
26
|
+
readonly reason: string;
|
|
27
|
+
readonly status: "overmatched" | "unused";
|
|
28
|
+
}>;
|
|
29
|
+
/** file-metrics 发布的 finding 或 waiver-audit supplemental Record data。 */
|
|
30
|
+
export type FileMetricsRecordData = FileMetricsFindingRecordData | FileMetricsFindingWaiverAuditRecordData;
|
|
31
|
+
export interface FileRecordCandidate {
|
|
32
|
+
readonly data: FileMetricsFindingRecordData;
|
|
33
|
+
readonly id: string;
|
|
34
|
+
}
|
|
35
|
+
/** 仅为未使用和过宽 waiver 构造补充 audit Record;正常 applied waiver 由 finding Record 自己保留。 */
|
|
36
|
+
export declare function fileMetricsWaiverAuditRecord(audit: FindingWaiverAudit): Readonly<{
|
|
37
|
+
readonly data: FileMetricsFindingWaiverAuditRecordData;
|
|
38
|
+
readonly id: string;
|
|
39
|
+
}> | undefined;
|
|
40
|
+
export declare function fileMetricsWaiverIdentity(waiver: MaterializedFindingWaiver): FileMetricsFindingIdentity;
|
|
41
|
+
/** Converts trusted scanner metrics into area-policy-owned supplemental facts. */
|
|
42
|
+
export declare function buildFileRecordCandidates(metrics: readonly FileMetric[], areaPolicy: FileMetricsAreaPolicyContext): readonly FileRecordCandidate[] | undefined;
|
|
43
|
+
export {};
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import type { ResolvedFileMetricsScannerOptions } from "../options.ts";
|
|
2
|
+
type SccAvailability = Readonly<{
|
|
3
|
+
readonly available: true;
|
|
4
|
+
readonly error: null;
|
|
5
|
+
readonly name: "scc";
|
|
6
|
+
readonly reason: null;
|
|
7
|
+
readonly source: "configured command";
|
|
8
|
+
readonly version: string;
|
|
9
|
+
} | {
|
|
10
|
+
readonly available: false;
|
|
11
|
+
readonly error: string;
|
|
12
|
+
readonly name: "scc";
|
|
13
|
+
readonly reason: "contract-error" | "execution-error" | "tool-unavailable";
|
|
14
|
+
readonly source: "configured command";
|
|
15
|
+
readonly version: null;
|
|
16
|
+
}>;
|
|
17
|
+
export declare function checkScc(rootDir: string, scanner: ResolvedFileMetricsScannerOptions): Promise<SccAvailability>;
|
|
18
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare function parseCsvRows(csv: string): string[][];
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import type { ExactInputMeasurement } from "../../project-files/exact-input-measurement.ts";
|
|
2
|
+
import type { FileMetric } from "../measurement-model.ts";
|
|
3
|
+
export declare const SCC_VERSION = "3.7.0";
|
|
4
|
+
export declare const SCC_VERSION_OUTPUT = "scc version 3.7.0";
|
|
5
|
+
export declare const SCC_BY_FILE_CSV_HEADER = "Language,Provider,Filename,Lines,Code,Comments,Blanks,Complexity,Bytes,ULOC";
|
|
6
|
+
export type SccScanResult = {
|
|
7
|
+
readonly measurements: readonly ExactInputMeasurement<FileMetric>[];
|
|
8
|
+
readonly ok: true;
|
|
9
|
+
} | {
|
|
10
|
+
readonly error: string;
|
|
11
|
+
readonly ok: false;
|
|
12
|
+
readonly reason: "execution" | "invalid-result";
|
|
13
|
+
};
|
|
14
|
+
/**
|
|
15
|
+
* 解析 scc CSV 输出。
|
|
16
|
+
*
|
|
17
|
+
* scc 3.7.0 `--by-file --format csv` 列:
|
|
18
|
+
* Language,Provider,Filename,Lines,Code,Comments,Blanks,Complexity,Bytes,ULOC
|
|
19
|
+
*
|
|
20
|
+
* - Lines 包含所有行(code + comments + blanks)
|
|
21
|
+
* - Code 是文件级代码行数,用于 code-line finding
|
|
22
|
+
* - Complexity 是 scc complexitychecks token 命中数,用于 low-decision-token allowance,不是函数级 CC
|
|
23
|
+
* - ULOC (Usable Lines of Code) 由 3.7.0 输出,但首期不进入稳定 metrics
|
|
24
|
+
*/
|
|
25
|
+
export declare function parseSccCSV(csv: string, cwd: string): SccScanResult;
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* scc 文件级 code-line 指标 wrapper。
|
|
3
|
+
*
|
|
4
|
+
* 封装 adapter-owned CLI 调用,输出 exact-path code lines 与 decision-token count。
|
|
5
|
+
*/
|
|
6
|
+
import type { ResolvedFileMetricsScannerOptions } from "../options.ts";
|
|
7
|
+
import { type SccScanResult } from "./parser.ts";
|
|
8
|
+
interface ScanWithSccOptions {
|
|
9
|
+
readonly cwd: string;
|
|
10
|
+
readonly includePaths: readonly string[];
|
|
11
|
+
readonly scanner: ResolvedFileMetricsScannerOptions;
|
|
12
|
+
}
|
|
13
|
+
export declare function scanWithScc({ cwd, includePaths, scanner }: ScanWithSccOptions): SccScanResult;
|
|
14
|
+
export {};
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import type { FindingSummary } from "./code-quality-findings/policy.ts";
|
|
2
|
+
/** Parses the final-data shape shared by the three area-based quality Checks. */
|
|
3
|
+
export declare function parseFindingSummaryData(data: unknown, checkName: string): FindingSummary;
|
|
4
|
+
/** Returns a detached exact record or rejects an unsupported final-data shape. */
|
|
5
|
+
export declare function exactFinalDataRecord(data: unknown, keys: readonly string[], checkName: string): Readonly<Record<string, unknown>>;
|
|
6
|
+
/** Returns a detached closed array or rejects an unsupported final-data shape. */
|
|
7
|
+
export declare function finalDataArray(data: unknown, checkName: string): readonly unknown[];
|
|
8
|
+
export declare function nonNegativeSafeInteger(value: unknown): number | undefined;
|
|
9
|
+
export declare function invalidFinalData(checkName: string): TypeError;
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import type { FunctionMetric } from "./measurement-model.ts";
|
|
2
|
+
export interface FunctionMetricInstance {
|
|
3
|
+
readonly metric: FunctionMetric;
|
|
4
|
+
readonly semanticSubject: string;
|
|
5
|
+
}
|
|
6
|
+
export interface FunctionMetricAnalysis {
|
|
7
|
+
readonly instances: readonly FunctionMetricInstance[];
|
|
8
|
+
}
|
|
9
|
+
export declare function analyzeFunctionMetrics(metrics: readonly FunctionMetric[]): FunctionMetricAnalysis | undefined;
|
|
10
|
+
export declare function isStableFunctionName(name: string): boolean;
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { type TypedCheckWithOptions } from "../../check/check.ts";
|
|
2
|
+
import { parseFunctionMetricsData } from "./final-data.ts";
|
|
3
|
+
import type { FunctionMetricsOptions, ResolvedFunctionMetricsOptions } from "./options.ts";
|
|
4
|
+
/**
|
|
5
|
+
* 使用可省略的区域、阈值与 finding policy 构造一个完整 function-metrics Check。
|
|
6
|
+
*
|
|
7
|
+
* @param options - 省略字段由 package 补齐;显式 files 数组完整替换对应字段的默认数组。
|
|
8
|
+
* @returns 固定 `function-metrics` identity、完整冻结 options、preflight 与 execution。
|
|
9
|
+
* @throws {TypeError} input 含未知字段、空 area、非法 finding policy、非法 limit 或空 executable 时抛出。
|
|
10
|
+
*/
|
|
11
|
+
export declare function functionMetrics(options?: FunctionMetricsOptions): TypedCheckWithOptions<"function-metrics", ResolvedFunctionMetricsOptions, typeof parseFunctionMetricsData>;
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import type { CheckExecutionContext, CheckResult } from "../../check/check.ts";
|
|
2
|
+
import type { ResolvedFunctionMetricsOptions } from "./options.ts";
|
|
3
|
+
import type { FunctionMetricsFinalData } from "./final-data.ts";
|
|
4
|
+
/** `function-metrics` whole-Check unavailable outcome 的稳定 reason code。 */
|
|
5
|
+
export type FunctionMetricsUnavailableReasonCode = "cancelled" | "external-dependency-unavailable" | "external-execution-failed" | "external-result-invalid" | "invalid-options" | "source-unavailable";
|
|
6
|
+
/** Default Check callback;一次扫描完整 area exact-input union。 */
|
|
7
|
+
export declare function executeFunctionMetrics(context: CheckExecutionContext<ResolvedFunctionMetricsOptions>): Promise<CheckResult<FunctionMetricsFinalData>>;
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import type { FindingSummary } from "../code-quality-findings/policy.ts";
|
|
2
|
+
/** `function-metrics` 在 passed/failed outcome 中发布的主数据。 */
|
|
3
|
+
export type FunctionMetricsFinalData = FindingSummary;
|
|
4
|
+
/** 验证并脱离一份 `function-metrics` canonical final-data object。 */
|
|
5
|
+
export declare function parseFunctionMetricsData(data: unknown): FunctionMetricsFinalData;
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import type { ResolvedFunctionMetricsScannerOptions } from "../options.ts";
|
|
2
|
+
type LizardAvailability = Readonly<{
|
|
3
|
+
readonly available: true;
|
|
4
|
+
readonly version: string;
|
|
5
|
+
} | {
|
|
6
|
+
readonly available: false;
|
|
7
|
+
readonly error: string;
|
|
8
|
+
readonly reason: "contract-error" | "execution-error" | "tool-unavailable";
|
|
9
|
+
}>;
|
|
10
|
+
export declare function checkLizard(rootDir: string, dependency: ResolvedFunctionMetricsScannerOptions): Promise<LizardAvailability>;
|
|
11
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare function parseCsvRows(csv: string): string[][];
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import type { FunctionMetric } from "../measurement-model.ts";
|
|
2
|
+
import type { ExactInputMeasurement } from "../../project-files/exact-input-measurement.ts";
|
|
3
|
+
export type LizardParseResult = {
|
|
4
|
+
readonly measurements: readonly ExactInputMeasurement<FunctionMetric>[];
|
|
5
|
+
readonly ok: true;
|
|
6
|
+
} | {
|
|
7
|
+
readonly error: string;
|
|
8
|
+
readonly ok: false;
|
|
9
|
+
readonly reason: "invalid-result";
|
|
10
|
+
};
|
|
11
|
+
/**
|
|
12
|
+
* 将 Lizard CSV 输出解析为 FunctionMetric 数组。
|
|
13
|
+
*
|
|
14
|
+
* Lizard 1.23 CSV 列(--csv):
|
|
15
|
+
* NLOC,CCN,token count,parameter count,length,location,file path,function name,long name,start line,end line
|
|
16
|
+
*/
|
|
17
|
+
export declare function parseLizardCSV(csv: string, cwd: string): LizardParseResult;
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
/** 对 approved exact paths 执行 adapter-owned Lizard CSV 协议。 */
|
|
2
|
+
import type { ResolvedFunctionMetricsScannerOptions } from "../options.ts";
|
|
3
|
+
import { type LizardParseResult } from "./parser.ts";
|
|
4
|
+
export type LizardScanResult = LizardParseResult | Readonly<{
|
|
5
|
+
error: string;
|
|
6
|
+
ok: false;
|
|
7
|
+
reason: "execution";
|
|
8
|
+
}>;
|
|
9
|
+
interface ScanWithLizardOptions {
|
|
10
|
+
readonly cwd: string;
|
|
11
|
+
readonly dependency: ResolvedFunctionMetricsScannerOptions;
|
|
12
|
+
readonly files: readonly string[];
|
|
13
|
+
}
|
|
14
|
+
export declare function scanWithLizard({ files, cwd, dependency }: ScanWithLizardOptions): LizardScanResult;
|
|
15
|
+
export {};
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import type { FindingPolicy } from "../code-quality-findings/policy.ts";
|
|
2
|
+
import type { ResolvedFunctionMetricsLimits } from "./options.ts";
|
|
3
|
+
export interface MetricValue {
|
|
4
|
+
readonly source: "lizard";
|
|
5
|
+
readonly value: number | null;
|
|
6
|
+
}
|
|
7
|
+
export interface FunctionMetric {
|
|
8
|
+
readonly cyclomaticComplexity: MetricValue;
|
|
9
|
+
readonly endLine: number;
|
|
10
|
+
readonly file: string;
|
|
11
|
+
readonly lines: number;
|
|
12
|
+
readonly name: string;
|
|
13
|
+
readonly parameterCount: number;
|
|
14
|
+
readonly startLine: number;
|
|
15
|
+
}
|
|
16
|
+
export interface FunctionMetricsAreaInput {
|
|
17
|
+
readonly approvedExactPaths: readonly string[];
|
|
18
|
+
readonly codeArea: string;
|
|
19
|
+
readonly findingPolicy: FindingPolicy;
|
|
20
|
+
readonly limits: ResolvedFunctionMetricsLimits;
|
|
21
|
+
}
|
|
22
|
+
export interface FunctionMetricsExactInputSet {
|
|
23
|
+
readonly approvedExactPaths: readonly string[];
|
|
24
|
+
readonly areas: readonly FunctionMetricsAreaInput[];
|
|
25
|
+
readonly rootDir: string;
|
|
26
|
+
}
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import type { FunctionMetric, FunctionMetricsExactInputSet } from "./measurement-model.ts";
|
|
2
|
+
import type { ResolvedFunctionMetricsScannerOptions } from "./options.ts";
|
|
3
|
+
export type FunctionMeasurementResult = Readonly<{
|
|
4
|
+
kind: "cancelled";
|
|
5
|
+
} | {
|
|
6
|
+
kind: "complete";
|
|
7
|
+
metrics: readonly FunctionMetric[];
|
|
8
|
+
} | {
|
|
9
|
+
kind: "execution-failed";
|
|
10
|
+
} | {
|
|
11
|
+
kind: "invalid-result";
|
|
12
|
+
} | {
|
|
13
|
+
kind: "unavailable";
|
|
14
|
+
}>;
|
|
15
|
+
interface FunctionMeasurementInput {
|
|
16
|
+
readonly dependency: ResolvedFunctionMetricsScannerOptions;
|
|
17
|
+
readonly input: FunctionMetricsExactInputSet;
|
|
18
|
+
readonly signal: AbortSignal;
|
|
19
|
+
}
|
|
20
|
+
export declare function measureFunctionMetrics({ dependency, input, signal }: FunctionMeasurementInput): Promise<FunctionMeasurementResult>;
|
|
21
|
+
export {};
|
|
@@ -0,0 +1,76 @@
|
|
|
1
|
+
import type { ProjectFileSelection, ProjectFileSelectionOptions } from "../project-files/configuration.ts";
|
|
2
|
+
import type { FindingPolicy } from "../code-quality-findings/policy.ts";
|
|
3
|
+
/** `functionMetrics` 构造函数可省略的文件选择策略。 */
|
|
4
|
+
export type FunctionMetricsFileOptions = ProjectFileSelectionOptions;
|
|
5
|
+
/** `functionMetrics` 构造函数可省略的函数指标上限。 */
|
|
6
|
+
export interface FunctionMetricsLimitOptions {
|
|
7
|
+
readonly codeLines?: Readonly<{
|
|
8
|
+
/** 省略时为 `60`;函数 NLOC 超过此值时产生 finding。 */
|
|
9
|
+
readonly maximum?: number;
|
|
10
|
+
readonly lowComplexityAllowance?: Readonly<{
|
|
11
|
+
/** 省略时为 `6`;复杂度小于此值时可使用较高 NLOC 上限。 */
|
|
12
|
+
readonly cyclomaticComplexityBelow?: number;
|
|
13
|
+
/** 省略时为 `180`;不得小于普通代码行上限。 */
|
|
14
|
+
readonly maximum?: number;
|
|
15
|
+
}>;
|
|
16
|
+
}>;
|
|
17
|
+
readonly cyclomaticComplexity?: Readonly<{
|
|
18
|
+
/** 省略时为 `12`。 */
|
|
19
|
+
readonly maximum?: number;
|
|
20
|
+
}>;
|
|
21
|
+
readonly parameters?: Readonly<{
|
|
22
|
+
/** 省略时为 `6`。 */
|
|
23
|
+
readonly maximum?: number;
|
|
24
|
+
}>;
|
|
25
|
+
}
|
|
26
|
+
/** 可独立选择文件、指标上限和 finding policy 的 function-metrics 区域。 */
|
|
27
|
+
export interface FunctionMetricsCodeAreaOptions {
|
|
28
|
+
/** 显式区域必须声明本字段;其中各子字段可省略并使用 package 默认值。 */
|
|
29
|
+
readonly files: FunctionMetricsFileOptions;
|
|
30
|
+
/** 省略时继承顶层 `findingPolicy`。 */
|
|
31
|
+
readonly findingPolicy?: FindingPolicy;
|
|
32
|
+
/** 省略的嵌套上限使用 package 默认值。 */
|
|
33
|
+
readonly limits?: FunctionMetricsLimitOptions;
|
|
34
|
+
}
|
|
35
|
+
/** `functionMetrics` 构造函数可省略的 Lizard 可执行文件策略。 */
|
|
36
|
+
export interface FunctionMetricsScannerOptions {
|
|
37
|
+
/** 省略时为 `lizard`;显式命令必须直接接受 adapter 拥有的 Lizard 参数。 */
|
|
38
|
+
readonly executable?: string;
|
|
39
|
+
}
|
|
40
|
+
/** `functionMetrics(options?)` 接受并补齐默认值的公开策略。 */
|
|
41
|
+
export interface FunctionMetricsOptions {
|
|
42
|
+
/** 省略时建立默认 `project` 区域;显式映射必须非空,且每个区域必须声明 `files`。 */
|
|
43
|
+
readonly codeAreas?: Readonly<Record<string, FunctionMetricsCodeAreaOptions>>;
|
|
44
|
+
/** 省略时为 `non-blocking`;区域可局部覆盖。 */
|
|
45
|
+
readonly findingPolicy?: FindingPolicy;
|
|
46
|
+
/** 省略时使用 PATH 中的 `lizard`。 */
|
|
47
|
+
readonly scanner?: FunctionMetricsScannerOptions;
|
|
48
|
+
}
|
|
49
|
+
/** 构造函数生成并由 Check preflight/execution 消费的完整 options。 */
|
|
50
|
+
export interface ResolvedFunctionMetricsOptions {
|
|
51
|
+
readonly codeAreas: Readonly<Record<string, ResolvedFunctionMetricsCodeAreaOptions>>;
|
|
52
|
+
readonly scanner: ResolvedFunctionMetricsScannerOptions;
|
|
53
|
+
}
|
|
54
|
+
export interface ResolvedFunctionMetricsCodeAreaOptions {
|
|
55
|
+
readonly files: ProjectFileSelection;
|
|
56
|
+
readonly findingPolicy: FindingPolicy;
|
|
57
|
+
readonly limits: ResolvedFunctionMetricsLimits;
|
|
58
|
+
}
|
|
59
|
+
export interface ResolvedFunctionMetricsLimits {
|
|
60
|
+
readonly codeLines: Readonly<{
|
|
61
|
+
readonly maximum: number;
|
|
62
|
+
readonly lowComplexityAllowance: Readonly<{
|
|
63
|
+
readonly cyclomaticComplexityBelow: number;
|
|
64
|
+
readonly maximum: number;
|
|
65
|
+
}>;
|
|
66
|
+
}>;
|
|
67
|
+
readonly cyclomaticComplexity: Readonly<{
|
|
68
|
+
readonly maximum: number;
|
|
69
|
+
}>;
|
|
70
|
+
readonly parameters: Readonly<{
|
|
71
|
+
readonly maximum: number;
|
|
72
|
+
}>;
|
|
73
|
+
}
|
|
74
|
+
export interface ResolvedFunctionMetricsScannerOptions {
|
|
75
|
+
readonly executable: string;
|
|
76
|
+
}
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
import { type FunctionMetricAnalysis } from "./analysis.ts";
|
|
2
|
+
import type { FunctionMetricsAreaInput } from "./measurement-model.ts";
|
|
3
|
+
type FunctionMetricName = "cyclomatic-complexity" | "function-code-density" | "parameter-count";
|
|
4
|
+
/** 一条超出函数 metric 上限的 supplemental Record data。 */
|
|
5
|
+
export type FunctionMetricsFindingRecordData = Readonly<{
|
|
6
|
+
readonly blocking: boolean;
|
|
7
|
+
readonly codeAreas: readonly string[];
|
|
8
|
+
readonly functionName: string;
|
|
9
|
+
readonly limit: number;
|
|
10
|
+
readonly metric: FunctionMetricName;
|
|
11
|
+
readonly path: string;
|
|
12
|
+
readonly startLine: number;
|
|
13
|
+
readonly value: number;
|
|
14
|
+
}>;
|
|
15
|
+
/** 一条已被 files policy 选中、但不受 functionMetrics 支持的输入 Finding。 */
|
|
16
|
+
export type FunctionMetricsInputRejectedRecordData = Readonly<{
|
|
17
|
+
readonly blocking: false;
|
|
18
|
+
readonly codeAreas: readonly string[];
|
|
19
|
+
readonly kind: "input-rejected";
|
|
20
|
+
readonly path: string;
|
|
21
|
+
readonly reason: "unsupported-file-type";
|
|
22
|
+
}>;
|
|
23
|
+
/** functionMetrics 发布的 metric 或 input-rejection Record data。 */
|
|
24
|
+
export type FunctionMetricsRecordData = FunctionMetricsFindingRecordData | FunctionMetricsInputRejectedRecordData;
|
|
25
|
+
export interface FunctionRecordCandidate {
|
|
26
|
+
readonly data: FunctionMetricsFindingRecordData;
|
|
27
|
+
readonly id: string;
|
|
28
|
+
}
|
|
29
|
+
export interface FunctionInputRejectedCandidate {
|
|
30
|
+
readonly data: FunctionMetricsInputRejectedRecordData;
|
|
31
|
+
readonly id: string;
|
|
32
|
+
}
|
|
33
|
+
/** 为每个 rejected path 构造一条 area-aware、固定 non-blocking 的 Finding。 */
|
|
34
|
+
export declare function buildFunctionInputRejectedCandidates(codeAreasByPath: ReadonlyMap<string, readonly string[]>): readonly FunctionInputRejectedCandidate[];
|
|
35
|
+
/** 为每个超过 matching-area 最严格阈值的 metric 构造 supplemental fact。 */
|
|
36
|
+
export declare function buildFunctionRecordCandidates(analysis: FunctionMetricAnalysis, areas: readonly FunctionMetricsAreaInput[]): readonly FunctionRecordCandidate[] | undefined;
|
|
37
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare function errorMessage(error: unknown): string;
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
export type WriteTextFileInput = {
|
|
2
|
+
readonly content: string;
|
|
3
|
+
readonly filePath: string;
|
|
4
|
+
};
|
|
5
|
+
export type WriteJsonFileInput = {
|
|
6
|
+
readonly filePath: string;
|
|
7
|
+
readonly trailingNewline?: boolean;
|
|
8
|
+
readonly value: unknown;
|
|
9
|
+
};
|
|
10
|
+
export type WalkFilesInput = {
|
|
11
|
+
readonly ignoredDirs?: Iterable<string>;
|
|
12
|
+
readonly rootDir: string;
|
|
13
|
+
};
|
|
14
|
+
export declare function ensureDirForFile(filePath: string): void;
|
|
15
|
+
export declare function readTextFile(filePath: string): string;
|
|
16
|
+
export declare function writeTextFile({ content, filePath }: WriteTextFileInput): void;
|
|
17
|
+
export declare function readJsonFile(filePath: string): unknown;
|
|
18
|
+
export declare function writeJsonFile({ filePath, trailingNewline, value }: WriteJsonFileInput): void;
|
|
19
|
+
export declare function walkFiles({ ignoredDirs: ignoredDirectoryNames, rootDir }: WalkFilesInput): readonly string[];
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import type { ProcessResult, RunProcessSyncOptions } from "./process/command.ts";
|
|
2
|
+
export type RunGitOptions = Omit<RunProcessSyncOptions, "command">;
|
|
3
|
+
export type GitCommitOptions = {
|
|
4
|
+
readonly cwd: string;
|
|
5
|
+
readonly sha: string;
|
|
6
|
+
};
|
|
7
|
+
export declare function runGit(options: RunGitOptions): ProcessResult;
|
|
8
|
+
export declare function gitHeadSha(cwd: string): string | null;
|
|
9
|
+
export declare function gitCommitDate(options: GitCommitOptions): string | null;
|
|
10
|
+
export declare function gitCommitTitle(options: GitCommitOptions): string | null;
|
|
11
|
+
export declare function splitGitFileList(stdout: string): string[];
|
|
12
|
+
export declare function splitNulDelimitedGitFileList(stdout: string): string[];
|
|
13
|
+
export declare function parseGitStatusPaths(stdout: string): string[];
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import type { ProcessResult } from "./contract.ts";
|
|
2
|
+
export { processFailure, processFailureFromResult, processFailed } from "./failure.ts";
|
|
3
|
+
export { PLAIN_TEXT_PROCESS_ENV, plainTextProcessEnv } from "./env.ts";
|
|
4
|
+
export { runProcess, runProcessSync } from "./runner.ts";
|
|
5
|
+
export { DEFAULT_PROCESS_MAX_BUFFER_BYTES } from "./contract.ts";
|
|
6
|
+
export type { ProcessFailure, ProcessResult, RunProcessOptions, RunProcessSyncOptions } from "./contract.ts";
|
|
7
|
+
export declare function writeProcessOutput(result: Pick<ProcessResult, "stderr" | "stdout">): void;
|