@zxyycom/vibe-check 0.0.2 → 0.0.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +36 -5
- package/dist/esm/check/check.mjs +4 -0
- package/dist/esm/check/check.mjs.map +1 -1
- package/dist/esm/check/flag-enablement.mjs +32 -0
- package/dist/esm/check/flag-enablement.mjs.map +1 -0
- package/dist/esm/check/handoff-provider-identity.mjs +18 -0
- package/dist/esm/check/handoff-provider-identity.mjs.map +1 -0
- package/dist/esm/check/inherited-collection.mjs +1 -1
- package/dist/esm/check/inherited-collection.mjs.map +1 -1
- package/dist/esm/check/project-changes.mjs +2 -0
- package/dist/esm/check/project-changes.mjs.map +1 -0
- package/dist/esm/check/project-context.mjs +2 -0
- package/dist/esm/check/project-context.mjs.map +1 -0
- package/dist/esm/check-settlement/facts.mjs.map +1 -1
- package/dist/esm/check-settlement/record-store.mjs +1 -1
- package/dist/esm/check-settlement/record-store.mjs.map +1 -1
- package/dist/esm/data-boundary/canonical-data.mjs +36 -7
- package/dist/esm/data-boundary/canonical-data.mjs.map +1 -1
- package/dist/esm/data-boundary/canonical-json.mjs.map +1 -1
- package/dist/esm/data-boundary/closed-values.mjs +28 -4
- package/dist/esm/data-boundary/closed-values.mjs.map +1 -1
- package/dist/esm/{package-checks/project-files → data-boundary}/config-glob.mjs +3 -3
- package/dist/esm/data-boundary/config-glob.mjs.map +1 -0
- package/dist/esm/data-boundary/project-path.mjs +19 -0
- package/dist/esm/data-boundary/project-path.mjs.map +1 -0
- package/dist/esm/index.mjs +12 -5
- package/dist/esm/index.mjs.map +1 -1
- package/dist/esm/machine-output/v4/atomic-publication.mjs +4 -1
- package/dist/esm/machine-output/v4/atomic-publication.mjs.map +1 -1
- package/dist/esm/package-checks/check-authoring.mjs +69 -0
- package/dist/esm/package-checks/check-authoring.mjs.map +1 -0
- package/dist/esm/package-checks/code-quality-findings/finding-waiver-authoring.mjs.map +1 -1
- package/dist/esm/package-checks/code-quality-findings/finding-waiver-evidence.mjs.map +1 -1
- package/dist/esm/package-checks/command-check/command-check.mjs +55 -0
- package/dist/esm/package-checks/command-check/command-check.mjs.map +1 -0
- package/dist/esm/package-checks/command-check/contract.mjs +2 -0
- package/dist/esm/package-checks/command-check/contract.mjs.map +1 -0
- package/dist/esm/package-checks/command-check/execution.mjs +134 -0
- package/dist/esm/package-checks/command-check/execution.mjs.map +1 -0
- package/dist/esm/package-checks/command-check/options.mjs +284 -0
- package/dist/esm/package-checks/command-check/options.mjs.map +1 -0
- package/dist/esm/package-checks/command-check/transcript.mjs +26 -0
- package/dist/esm/package-checks/command-check/transcript.mjs.map +1 -0
- package/dist/esm/package-checks/duplicate-detection/default-check.mjs +9 -11
- package/dist/esm/package-checks/duplicate-detection/default-check.mjs.map +1 -1
- package/dist/esm/package-checks/duplicate-detection/execution.mjs +2 -4
- package/dist/esm/package-checks/duplicate-detection/execution.mjs.map +1 -1
- package/dist/esm/package-checks/duplicate-detection/finding-messages.mjs +1 -1
- package/dist/esm/package-checks/duplicate-detection/finding-messages.mjs.map +1 -1
- package/dist/esm/package-checks/duplicate-detection/jscpd/availability.mjs +1 -1
- package/dist/esm/package-checks/duplicate-detection/jscpd/availability.mjs.map +1 -1
- package/dist/esm/package-checks/duplicate-detection/options.mjs.map +1 -1
- package/dist/esm/package-checks/duplicate-detection/records.mjs.map +1 -1
- package/dist/esm/package-checks/file-metrics/constructor.mjs +9 -11
- package/dist/esm/package-checks/file-metrics/constructor.mjs.map +1 -1
- package/dist/esm/package-checks/file-metrics/execution.mjs +2 -4
- package/dist/esm/package-checks/file-metrics/execution.mjs.map +1 -1
- package/dist/esm/package-checks/file-metrics/finding-messages.mjs +1 -1
- package/dist/esm/package-checks/file-metrics/finding-messages.mjs.map +1 -1
- package/dist/esm/package-checks/file-metrics/options.mjs.map +1 -1
- package/dist/esm/package-checks/file-metrics/records.mjs.map +1 -1
- package/dist/esm/package-checks/file-metrics/scc/availability.mjs +1 -1
- package/dist/esm/package-checks/file-metrics/scc/availability.mjs.map +1 -1
- package/dist/esm/package-checks/file-metrics/scc/batch-planner.mjs +38 -0
- package/dist/esm/package-checks/file-metrics/scc/batch-planner.mjs.map +1 -0
- package/dist/esm/package-checks/file-metrics/scc/logical-scan-resources.mjs +35 -0
- package/dist/esm/package-checks/file-metrics/scc/logical-scan-resources.mjs.map +1 -0
- package/dist/esm/package-checks/file-metrics/scc/scanner.mjs +102 -29
- package/dist/esm/package-checks/file-metrics/scc/scanner.mjs.map +1 -1
- package/dist/esm/package-checks/function-metrics/analysis.mjs +7 -2
- package/dist/esm/package-checks/function-metrics/analysis.mjs.map +1 -1
- package/dist/esm/package-checks/function-metrics/analyzer/analysis-model.mjs +1 -1
- package/dist/esm/package-checks/function-metrics/analyzer/analysis-model.mjs.map +1 -1
- package/dist/esm/package-checks/function-metrics/analyzer/extensions/lizardcomplextags.mjs +1 -3
- package/dist/esm/package-checks/function-metrics/analyzer/extensions/lizardcomplextags.mjs.map +1 -1
- package/dist/esm/package-checks/function-metrics/analyzer/extensions/protocol.mjs.map +1 -1
- package/dist/esm/package-checks/function-metrics/analyzer/pipeline.mjs +3 -2
- package/dist/esm/package-checks/function-metrics/analyzer/pipeline.mjs.map +1 -1
- package/dist/esm/package-checks/function-metrics/analyzer/readers/erlang.mjs +6 -6
- package/dist/esm/package-checks/function-metrics/analyzer/readers/erlang.mjs.map +1 -1
- package/dist/esm/package-checks/function-metrics/analyzer/readers/fortran.mjs +1 -1
- package/dist/esm/package-checks/function-metrics/analyzer/readers/fortran.mjs.map +1 -1
- package/dist/esm/package-checks/function-metrics/analyzer/readers/objc.mjs +9 -3
- package/dist/esm/package-checks/function-metrics/analyzer/readers/objc.mjs.map +1 -1
- package/dist/esm/package-checks/function-metrics/analyzer/readers/php-states.mjs +12 -7
- package/dist/esm/package-checks/function-metrics/analyzer/readers/php-states.mjs.map +1 -1
- package/dist/esm/package-checks/function-metrics/analyzer/readers/plsql.mjs +6 -6
- package/dist/esm/package-checks/function-metrics/analyzer/readers/plsql.mjs.map +1 -1
- package/dist/esm/package-checks/function-metrics/analyzer/readers/python.mjs +5 -3
- package/dist/esm/package-checks/function-metrics/analyzer/readers/python.mjs.map +1 -1
- package/dist/esm/package-checks/function-metrics/analyzer/readers/r.mjs +2 -0
- package/dist/esm/package-checks/function-metrics/analyzer/readers/r.mjs.map +1 -1
- package/dist/esm/package-checks/function-metrics/analyzer/readers/ttcn.mjs +9 -3
- package/dist/esm/package-checks/function-metrics/analyzer/readers/ttcn.mjs.map +1 -1
- package/dist/esm/package-checks/function-metrics/analyzer/readers/typescript.mjs +9 -3
- package/dist/esm/package-checks/function-metrics/analyzer/readers/typescript.mjs.map +1 -1
- package/dist/esm/package-checks/function-metrics/analyzer/readers/zig.mjs +3 -1
- package/dist/esm/package-checks/function-metrics/analyzer/readers/zig.mjs.map +1 -1
- package/dist/esm/package-checks/function-metrics/analyzer/shared/code-reader.mjs +3 -1
- package/dist/esm/package-checks/function-metrics/analyzer/shared/code-reader.mjs.map +1 -1
- package/dist/esm/package-checks/function-metrics/analyzer/shared/js-style-regex.mjs +12 -5
- package/dist/esm/package-checks/function-metrics/analyzer/shared/js-style-regex.mjs.map +1 -1
- package/dist/esm/package-checks/function-metrics/analyzer-worker-port.mjs +20 -8
- package/dist/esm/package-checks/function-metrics/analyzer-worker-port.mjs.map +1 -1
- package/dist/esm/package-checks/function-metrics/constructor.mjs +9 -11
- package/dist/esm/package-checks/function-metrics/constructor.mjs.map +1 -1
- package/dist/esm/package-checks/function-metrics/execution.mjs +2 -4
- package/dist/esm/package-checks/function-metrics/execution.mjs.map +1 -1
- package/dist/esm/package-checks/function-metrics/finding-messages.mjs +1 -1
- package/dist/esm/package-checks/function-metrics/finding-messages.mjs.map +1 -1
- package/dist/esm/package-checks/function-metrics/measurement.mjs +3 -1
- package/dist/esm/package-checks/function-metrics/measurement.mjs.map +1 -1
- package/dist/esm/package-checks/function-metrics/options.mjs.map +1 -1
- package/dist/esm/package-checks/function-metrics/records.mjs.map +1 -1
- package/dist/esm/package-checks/host-environment/git.mjs +11 -0
- package/dist/esm/package-checks/host-environment/git.mjs.map +1 -1
- package/dist/esm/package-checks/host-environment/path.mjs +1 -17
- package/dist/esm/package-checks/host-environment/path.mjs.map +1 -1
- package/dist/esm/package-checks/host-environment/process/contract.mjs.map +1 -1
- package/dist/esm/package-checks/host-environment/process/result.mjs +43 -17
- package/dist/esm/package-checks/host-environment/process/result.mjs.map +1 -1
- package/dist/esm/package-checks/host-environment/process/runner.mjs +7 -5
- package/dist/esm/package-checks/host-environment/process/runner.mjs.map +1 -1
- package/dist/esm/package-checks/json-schema-validation/default-check.mjs +9 -11
- package/dist/esm/package-checks/json-schema-validation/default-check.mjs.map +1 -1
- package/dist/esm/package-checks/json-schema-validation/options.mjs.map +1 -1
- package/dist/esm/package-checks/json-schema-validation/reference-resolver.mjs +6 -2
- package/dist/esm/package-checks/json-schema-validation/reference-resolver.mjs.map +1 -1
- package/dist/esm/package-checks/json-schema-validation/schema-policy.mjs +11 -3
- package/dist/esm/package-checks/json-schema-validation/schema-policy.mjs.map +1 -1
- package/dist/esm/package-checks/json-validation/default-check.mjs +9 -11
- package/dist/esm/package-checks/json-validation/default-check.mjs.map +1 -1
- package/dist/esm/package-checks/json-validation/options.mjs.map +1 -1
- package/dist/esm/package-checks/local-cache-options.mjs +28 -0
- package/dist/esm/package-checks/local-cache-options.mjs.map +1 -0
- package/dist/esm/package-checks/maintenance-reminders/maintenance-reminders.mjs +37 -45
- package/dist/esm/package-checks/maintenance-reminders/maintenance-reminders.mjs.map +1 -1
- package/dist/esm/package-checks/maintenance-reminders/maintenance-support.mjs +3 -1
- package/dist/esm/package-checks/maintenance-reminders/maintenance-support.mjs.map +1 -1
- package/dist/esm/package-checks/markdown-link-validation/default-check.mjs +19 -33
- package/dist/esm/package-checks/markdown-link-validation/default-check.mjs.map +1 -1
- package/dist/esm/package-checks/markdown-link-validation/execution.mjs +1 -1
- package/dist/esm/package-checks/markdown-link-validation/execution.mjs.map +1 -1
- package/dist/esm/package-checks/markdown-link-validation/finding-messages.mjs +1 -1
- package/dist/esm/package-checks/markdown-link-validation/finding-messages.mjs.map +1 -1
- package/dist/esm/package-checks/markdown-link-validation/markdown-parser.mjs +1 -3
- package/dist/esm/package-checks/markdown-link-validation/markdown-parser.mjs.map +1 -1
- package/dist/esm/package-checks/markdown-link-validation/options-resolution.mjs +3 -18
- package/dist/esm/package-checks/markdown-link-validation/options-resolution.mjs.map +1 -1
- package/dist/esm/package-checks/markdown-link-validation/options-validation.mjs +2 -14
- package/dist/esm/package-checks/markdown-link-validation/options-validation.mjs.map +1 -1
- package/dist/esm/package-checks/markdown-link-validation/options.mjs.map +1 -1
- package/dist/esm/package-checks/markdown-link-validation/parse-facts-cache-payload.mjs +4 -5
- package/dist/esm/package-checks/markdown-link-validation/parse-facts-cache-payload.mjs.map +1 -1
- package/dist/esm/package-checks/markdown-lint/adapter.mjs +125 -0
- package/dist/esm/package-checks/markdown-lint/adapter.mjs.map +1 -0
- package/dist/esm/package-checks/markdown-lint/default-check.mjs +37 -0
- package/dist/esm/package-checks/markdown-lint/default-check.mjs.map +1 -0
- package/dist/esm/package-checks/markdown-lint/execution.mjs +202 -0
- package/dist/esm/package-checks/markdown-lint/execution.mjs.map +1 -0
- package/dist/esm/package-checks/markdown-lint/final-data.mjs +16 -0
- package/dist/esm/package-checks/markdown-lint/final-data.mjs.map +1 -0
- package/dist/esm/package-checks/markdown-lint/finding-messages.mjs +72 -0
- package/dist/esm/package-checks/markdown-lint/finding-messages.mjs.map +1 -0
- package/dist/esm/package-checks/markdown-lint/finding-waiver-identity.mjs +41 -0
- package/dist/esm/package-checks/markdown-lint/finding-waiver-identity.mjs.map +1 -0
- package/dist/esm/package-checks/markdown-lint/findings-cache.mjs +110 -0
- package/dist/esm/package-checks/markdown-lint/findings-cache.mjs.map +1 -0
- package/dist/esm/package-checks/markdown-lint/options-resolution.mjs +74 -0
- package/dist/esm/package-checks/markdown-lint/options-resolution.mjs.map +1 -0
- package/dist/esm/package-checks/markdown-lint/options-validation.mjs +41 -0
- package/dist/esm/package-checks/markdown-lint/options-validation.mjs.map +1 -0
- package/dist/esm/package-checks/markdown-lint/options.mjs +13 -0
- package/dist/esm/package-checks/markdown-lint/options.mjs.map +1 -0
- package/dist/esm/package-checks/markdown-lint/records.mjs +65 -0
- package/dist/esm/package-checks/markdown-lint/records.mjs.map +1 -0
- package/dist/esm/package-checks/markdown-lint/unavailable-reasons.mjs +14 -0
- package/dist/esm/package-checks/markdown-lint/unavailable-reasons.mjs.map +1 -0
- package/dist/esm/package-checks/project-files/collection.mjs +23 -19
- package/dist/esm/package-checks/project-files/collection.mjs.map +1 -1
- package/dist/esm/package-checks/project-files/configuration.mjs +1 -1
- package/dist/esm/package-checks/project-files/configuration.mjs.map +1 -1
- package/dist/esm/package-checks/project-files/gitlink-revision.mjs +2 -5
- package/dist/esm/package-checks/project-files/gitlink-revision.mjs.map +1 -1
- package/dist/esm/package-checks/project-files/gitlink-worktree.mjs +22 -6
- package/dist/esm/package-checks/project-files/gitlink-worktree.mjs.map +1 -1
- package/dist/esm/package-checks/project-files/public-collection.mjs +1 -1
- package/dist/esm/package-checks/project-files/public-collection.mjs.map +1 -1
- package/dist/esm/package-checks/project-files/revision-paths.mjs +3 -3
- package/dist/esm/package-checks/project-files/revision-paths.mjs.map +1 -1
- package/dist/esm/package-checks/project-files/revision-worktree-files.mjs +11 -15
- package/dist/esm/package-checks/project-files/revision-worktree-files.mjs.map +1 -1
- package/dist/esm/package-checks/secret-detection/default-check.mjs +9 -11
- package/dist/esm/package-checks/secret-detection/default-check.mjs.map +1 -1
- package/dist/esm/package-checks/secret-detection/execution.mjs +2 -2
- package/dist/esm/package-checks/secret-detection/execution.mjs.map +1 -1
- package/dist/esm/package-checks/secret-detection/input-preparation.mjs +46 -7
- package/dist/esm/package-checks/secret-detection/input-preparation.mjs.map +1 -1
- package/dist/esm/package-checks/secret-detection/options.mjs.map +1 -1
- package/dist/esm/package-checks/secret-detection/records.mjs.map +1 -1
- package/dist/esm/package-checks/secret-detection/secretlint/adapter.mjs +3 -4
- package/dist/esm/package-checks/secret-detection/secretlint/adapter.mjs.map +1 -1
- package/dist/esm/package-tools/admission-policy/define-admission-policy.mjs +10 -0
- package/dist/esm/package-tools/admission-policy/define-admission-policy.mjs.map +1 -0
- package/dist/esm/{cache → package-tools/cache}/cache-json-by-key.mjs +13 -14
- package/dist/esm/package-tools/cache/cache-json-by-key.mjs.map +1 -0
- package/dist/esm/package-tools/finding-presentation/finding-presentation.mjs.map +1 -0
- package/dist/esm/{finding-waivers → package-tools/finding-waivers}/reconciliation.mjs +14 -5
- package/dist/esm/package-tools/finding-waivers/reconciliation.mjs.map +1 -0
- package/dist/esm/package-tools/learned-critical-path/critical-path-ranking.mjs.map +1 -0
- package/dist/esm/package-tools/learned-critical-path/duration-model/bounded-history.mjs.map +1 -0
- package/dist/esm/{learned-critical-path → package-tools/learned-critical-path}/duration-model/prediction.mjs +2 -2
- package/dist/esm/package-tools/learned-critical-path/duration-model/prediction.mjs.map +1 -0
- package/dist/esm/{learned-critical-path → package-tools/learned-critical-path}/duration-model/preparation.mjs +4 -2
- package/dist/esm/package-tools/learned-critical-path/duration-model/preparation.mjs.map +1 -0
- package/dist/esm/package-tools/learned-critical-path/duration-model/recording.mjs.map +1 -0
- package/dist/esm/{learned-critical-path → package-tools/learned-critical-path}/duration-model/storage.mjs +8 -8
- package/dist/esm/package-tools/learned-critical-path/duration-model/storage.mjs.map +1 -0
- package/dist/esm/{learned-critical-path → package-tools/learned-critical-path}/selection-layers.mjs +1 -2
- package/dist/esm/package-tools/learned-critical-path/selection-layers.mjs.map +1 -0
- package/dist/esm/package-tools/learned-critical-path/static-decision.mjs.map +1 -0
- package/dist/esm/{learned-critical-path → package-tools/learned-critical-path}/strategy.mjs +3 -3
- package/dist/esm/package-tools/learned-critical-path/strategy.mjs.map +1 -0
- package/dist/esm/project-definition/check-tree/authoring.mjs +8 -5
- package/dist/esm/project-definition/check-tree/authoring.mjs.map +1 -1
- package/dist/esm/project-definition/check-tree/check-fields-authoring.mjs +79 -66
- package/dist/esm/project-definition/check-tree/check-fields-authoring.mjs.map +1 -1
- package/dist/esm/project-definition/check-tree/flag-conditions.mjs +71 -0
- package/dist/esm/project-definition/check-tree/flag-conditions.mjs.map +1 -0
- package/dist/esm/project-definition/check-tree/materialization.mjs +13 -8
- package/dist/esm/project-definition/check-tree/materialization.mjs.map +1 -1
- package/dist/esm/project-definition/check-tree/resolution.mjs +7 -6
- package/dist/esm/project-definition/check-tree/resolution.mjs.map +1 -1
- package/dist/esm/project-definition/declarative-snapshot.mjs +2 -1
- package/dist/esm/project-definition/declarative-snapshot.mjs.map +1 -1
- package/dist/esm/project-definition/project-changes.mjs +70 -0
- package/dist/esm/project-definition/project-changes.mjs.map +1 -0
- package/dist/esm/project-definition/project-definition-validation.mjs +40 -8
- package/dist/esm/project-definition/project-definition-validation.mjs.map +1 -1
- package/dist/esm/project-definition/project-definition.mjs +22 -15
- package/dist/esm/project-definition/project-definition.mjs.map +1 -1
- package/dist/esm/project-definition/scheduler-policy.mjs.map +1 -1
- package/dist/esm/project-run/admission-strategy-provider/custom-strategy-preparation.mjs +9 -6
- package/dist/esm/project-run/admission-strategy-provider/custom-strategy-preparation.mjs.map +1 -1
- package/dist/esm/project-run/admission-strategy-provider/prepared-admission-strategy.mjs.map +1 -1
- package/dist/esm/project-run/aggregation.mjs +42 -59
- package/dist/esm/project-run/aggregation.mjs.map +1 -1
- package/dist/esm/project-run/changes/git.mjs +161 -0
- package/dist/esm/project-run/changes/git.mjs.map +1 -0
- package/dist/esm/project-run/check-execution/admitted-check-execution.mjs +41 -0
- package/dist/esm/project-run/check-execution/admitted-check-execution.mjs.map +1 -0
- package/dist/esm/project-run/check-execution/callback.mjs +3 -2
- package/dist/esm/project-run/check-execution/callback.mjs.map +1 -1
- package/dist/esm/project-run/check-execution/dependencies.mjs +80 -5
- package/dist/esm/project-run/check-execution/dependencies.mjs.map +1 -1
- package/dist/esm/project-run/check-execution/execution-finalization.mjs +5 -3
- package/dist/esm/project-run/check-execution/execution-finalization.mjs.map +1 -1
- package/dist/esm/project-run/check-execution/execution-settlement.mjs +37 -16
- package/dist/esm/project-run/check-execution/execution-settlement.mjs.map +1 -1
- package/dist/esm/project-run/check-execution/flag-controls.mjs +15 -7
- package/dist/esm/project-run/check-execution/flag-controls.mjs.map +1 -1
- package/dist/esm/project-run/check-execution/lifecycle.mjs.map +1 -1
- package/dist/esm/project-run/check-execution/{preflight-result.mjs → preparation-result.mjs} +24 -24
- package/dist/esm/project-run/check-execution/preparation-result.mjs.map +1 -0
- package/dist/esm/project-run/check-execution/{preflight.mjs → preparation.mjs} +52 -52
- package/dist/esm/project-run/check-execution/preparation.mjs.map +1 -0
- package/dist/esm/project-run/check-execution/ready-check-execution.mjs +71 -0
- package/dist/esm/project-run/check-execution/ready-check-execution.mjs.map +1 -0
- package/dist/esm/project-run/check-execution/resolved-checks.mjs +27 -164
- package/dist/esm/project-run/check-execution/resolved-checks.mjs.map +1 -1
- package/dist/esm/project-run/check-execution/scheduled-check-run.mjs +79 -0
- package/dist/esm/project-run/check-execution/scheduled-check-run.mjs.map +1 -0
- package/dist/esm/project-run/check-execution/terminal-result.mjs +70 -25
- package/dist/esm/project-run/check-execution/terminal-result.mjs.map +1 -1
- package/dist/esm/project-run/completion/completion.mjs +18 -1
- package/dist/esm/project-run/completion/completion.mjs.map +1 -1
- package/dist/esm/project-run/controls/contract.mjs.map +1 -1
- package/dist/esm/project-run/controls/validation.mjs +7 -54
- package/dist/esm/project-run/controls/validation.mjs.map +1 -1
- package/dist/esm/project-run/diagnostic-logging/diagnostic-detail-rendering.mjs +3 -3
- package/dist/esm/project-run/diagnostic-logging/diagnostic-detail-rendering.mjs.map +1 -1
- package/dist/esm/project-run/diagnostic-logging/observation-rendering.mjs +1 -1
- package/dist/esm/project-run/diagnostic-logging/observation-rendering.mjs.map +1 -1
- package/dist/esm/project-run/invocation/candidate.mjs +17 -13
- package/dist/esm/project-run/invocation/candidate.mjs.map +1 -1
- package/dist/esm/project-run/invocation/candidates.mjs +26 -0
- package/dist/esm/project-run/invocation/candidates.mjs.map +1 -0
- package/dist/esm/project-run/invocation/creation.mjs +7 -3
- package/dist/esm/project-run/invocation/creation.mjs.map +1 -1
- package/dist/esm/project-run/invocation/execution.mjs +98 -0
- package/dist/esm/project-run/invocation/execution.mjs.map +1 -0
- package/dist/esm/project-run/invocation/run.mjs +13 -112
- package/dist/esm/project-run/invocation/run.mjs.map +1 -1
- package/dist/esm/project-run/invocation/scheduler.mjs +13 -6
- package/dist/esm/project-run/invocation/scheduler.mjs.map +1 -1
- package/dist/esm/project-run/outputs/status.mjs +12 -12
- package/dist/esm/project-run/outputs/status.mjs.map +1 -1
- package/dist/esm/project-run/progress-rendering/presentation.mjs +31 -11
- package/dist/esm/project-run/progress-rendering/presentation.mjs.map +1 -1
- package/dist/esm/project-run/progress-rendering/renderer-formatting.mjs +11 -4
- package/dist/esm/project-run/progress-rendering/renderer-formatting.mjs.map +1 -1
- package/dist/esm/project-run/progress-rendering/renderer-lifecycle.mjs +20 -6
- package/dist/esm/project-run/progress-rendering/renderer-lifecycle.mjs.map +1 -1
- package/dist/esm/project-run/progress-rendering/renderer.mjs +6 -2
- package/dist/esm/project-run/progress-rendering/renderer.mjs.map +1 -1
- package/dist/esm/project-run/project-context.mjs +2 -1
- package/dist/esm/project-run/project-context.mjs.map +1 -1
- package/dist/esm/project-run/result.mjs +2 -2
- package/dist/esm/project-run/result.mjs.map +1 -1
- package/dist/esm/project-run/run.mjs.map +1 -1
- package/dist/esm/project-run/task-scheduler/admission-core/compiled-graph-lookup.mjs +45 -0
- package/dist/esm/project-run/task-scheduler/admission-core/compiled-graph-lookup.mjs.map +1 -0
- package/dist/esm/project-run/task-scheduler/admission-core/compiled-graph.mjs +9 -4
- package/dist/esm/project-run/task-scheduler/admission-core/compiled-graph.mjs.map +1 -1
- package/dist/esm/project-run/task-scheduler/admission-core/selection-query.mjs +3 -5
- package/dist/esm/project-run/task-scheduler/admission-core/selection-query.mjs.map +1 -1
- package/dist/esm/project-run/task-scheduler/admission-core/selection-seed.mjs +25 -8
- package/dist/esm/project-run/task-scheduler/admission-core/selection-seed.mjs.map +1 -1
- package/dist/esm/project-run/task-scheduler/admission-core/selection-transition.mjs +8 -8
- package/dist/esm/project-run/task-scheduler/admission-core/selection-transition.mjs.map +1 -1
- package/dist/esm/project-run/task-scheduler/execution-state.mjs.map +1 -1
- package/dist/esm/project-run/task-scheduler/measurement/diagnostics.mjs +8 -4
- package/dist/esm/project-run/task-scheduler/measurement/diagnostics.mjs.map +1 -1
- package/dist/esm/project-run/task-scheduler/measurement/timing.mjs +12 -6
- package/dist/esm/project-run/task-scheduler/measurement/timing.mjs.map +1 -1
- package/dist/esm/project-run/task-scheduler/scheduler-observation.mjs +3 -1
- package/dist/esm/project-run/task-scheduler/scheduler-observation.mjs.map +1 -1
- package/dist/esm/project-run/task-scheduler/scheduler-terminal-measurement.mjs +17 -17
- package/dist/esm/project-run/task-scheduler/scheduler-terminal-measurement.mjs.map +1 -1
- package/dist/esm/project-run/task-scheduler/scheduler.mjs +18 -6
- package/dist/esm/project-run/task-scheduler/scheduler.mjs.map +1 -1
- package/docs/api-mechanics.md +147 -28
- package/docs/changelog.md +145 -2
- package/docs/checks/duplicate-detection.md +22 -3
- package/docs/checks/file-metrics.md +25 -6
- package/docs/checks/function-metrics.md +21 -2
- package/docs/checks/json-schema-validation.md +25 -4
- package/docs/checks/json-validation.md +24 -5
- package/docs/checks/maintenance-reminders.md +30 -6
- package/docs/checks/markdown-link-validation.md +24 -4
- package/docs/checks/markdown-lint.md +167 -0
- package/docs/checks/secret-detection.md +31 -7
- package/docs/examples/artifacts/mixed-outcomes/definition.ts +10 -10
- package/docs/guides/building-project-gate.md +706 -0
- package/docs/guides/callbacks.md +81 -22
- package/docs/guides/check-dependencies.md +41 -10
- package/docs/guides/collecting-project-files.md +7 -7
- package/docs/guides/command-check.md +155 -0
- package/docs/guides/data-boundaries.md +140 -0
- package/docs/guides/extending-check-lifecycle.md +77 -25
- package/docs/guides/finding-waivers.md +43 -1
- package/docs/guides/learned-scheduling.md +1 -1
- package/docs/guides/run-outputs.md +35 -9
- package/docs/guides/scheduling.md +15 -15
- package/docs/output.md +6 -5
- package/package.json +2 -1
- package/src/check/check.ts +332 -92
- package/src/check/flag-enablement.ts +76 -0
- package/src/check/handoff-provider-identity.ts +34 -0
- package/src/check/inherited-collection.ts +1 -1
- package/src/check/project-changes.ts +14 -0
- package/src/check/project-context.ts +11 -0
- package/src/check-settlement/facts.ts +1 -1
- package/src/check-settlement/record-store.ts +1 -1
- package/src/data-boundary/canonical-data.ts +36 -9
- package/src/data-boundary/canonical-json.ts +18 -1
- package/src/data-boundary/closed-values.ts +26 -6
- package/src/data-boundary/config-glob.ts +17 -0
- package/src/data-boundary/project-path.ts +21 -0
- package/src/index.ts +72 -11
- package/src/machine-output/v4/atomic-publication.ts +3 -1
- package/src/package-checks/check-authoring.ts +136 -0
- package/src/package-checks/code-quality-findings/finding-waiver-authoring.ts +1 -1
- package/src/package-checks/code-quality-findings/finding-waiver-evidence.ts +1 -1
- package/src/package-checks/command-check/command-check.ts +152 -0
- package/src/package-checks/command-check/contract.ts +168 -0
- package/src/package-checks/command-check/execution.ts +211 -0
- package/src/package-checks/command-check/options.ts +331 -0
- package/src/package-checks/command-check/transcript.ts +35 -0
- package/src/package-checks/duplicate-detection/default-check.ts +37 -6
- package/src/package-checks/duplicate-detection/execution.ts +2 -4
- package/src/package-checks/duplicate-detection/finding-messages.ts +2 -2
- package/src/package-checks/duplicate-detection/jscpd/availability.ts +1 -1
- package/src/package-checks/duplicate-detection/options.ts +6 -3
- package/src/package-checks/duplicate-detection/records.ts +1 -1
- package/src/package-checks/file-metrics/constructor.ts +29 -6
- package/src/package-checks/file-metrics/execution.ts +2 -4
- package/src/package-checks/file-metrics/finding-messages.ts +1 -1
- package/src/package-checks/file-metrics/options.ts +6 -3
- package/src/package-checks/file-metrics/records.ts +1 -1
- package/src/package-checks/file-metrics/scc/availability.ts +1 -1
- package/src/package-checks/file-metrics/scc/batch-planner.ts +56 -0
- package/src/package-checks/file-metrics/scc/logical-scan-resources.ts +59 -0
- package/src/package-checks/file-metrics/scc/scanner.ts +134 -32
- package/src/package-checks/function-metrics/analysis.ts +7 -2
- package/src/package-checks/function-metrics/analyzer/analysis-model.ts +1 -1
- package/src/package-checks/function-metrics/analyzer/extension-output.ts +14 -6
- package/src/package-checks/function-metrics/analyzer/extensions/lizardcomplextags.ts +1 -3
- package/src/package-checks/function-metrics/analyzer/extensions/protocol.ts +3 -3
- package/src/package-checks/function-metrics/analyzer/pipeline.ts +4 -2
- package/src/package-checks/function-metrics/analyzer/readers/erlang.ts +6 -6
- package/src/package-checks/function-metrics/analyzer/readers/fortran.ts +1 -1
- package/src/package-checks/function-metrics/analyzer/readers/objc.ts +9 -3
- package/src/package-checks/function-metrics/analyzer/readers/php-states.ts +14 -7
- package/src/package-checks/function-metrics/analyzer/readers/plsql.ts +8 -4
- package/src/package-checks/function-metrics/analyzer/readers/python.ts +4 -3
- package/src/package-checks/function-metrics/analyzer/readers/r.ts +2 -1
- package/src/package-checks/function-metrics/analyzer/readers/ttcn.ts +9 -3
- package/src/package-checks/function-metrics/analyzer/readers/typescript.ts +9 -3
- package/src/package-checks/function-metrics/analyzer/readers/zig.ts +2 -1
- package/src/package-checks/function-metrics/analyzer/shared/code-reader.ts +3 -1
- package/src/package-checks/function-metrics/analyzer/shared/js-style-regex.ts +10 -5
- package/src/package-checks/function-metrics/analyzer-worker-port.ts +20 -6
- package/src/package-checks/function-metrics/constructor.ts +30 -7
- package/src/package-checks/function-metrics/execution.ts +2 -4
- package/src/package-checks/function-metrics/finding-messages.ts +2 -2
- package/src/package-checks/function-metrics/measurement.ts +3 -1
- package/src/package-checks/function-metrics/options.ts +6 -3
- package/src/package-checks/function-metrics/records.ts +1 -1
- package/src/package-checks/host-environment/git.ts +11 -0
- package/src/package-checks/host-environment/path.ts +1 -20
- package/src/package-checks/host-environment/process/contract.ts +17 -9
- package/src/package-checks/host-environment/process/result.ts +48 -20
- package/src/package-checks/host-environment/process/runner.ts +8 -4
- package/src/package-checks/json-schema-validation/default-check.ts +38 -5
- package/src/package-checks/json-schema-validation/options.ts +4 -1
- package/src/package-checks/json-schema-validation/reference-resolver.ts +6 -2
- package/src/package-checks/json-schema-validation/schema-policy.ts +10 -5
- package/src/package-checks/json-validation/default-check.ts +27 -6
- package/src/package-checks/json-validation/options.ts +4 -1
- package/src/package-checks/local-cache-options.ts +40 -0
- package/src/package-checks/maintenance-reminders/maintenance-reminders.ts +89 -9
- package/src/package-checks/maintenance-reminders/maintenance-support.ts +3 -3
- package/src/package-checks/markdown-link-validation/default-check.ts +48 -5
- package/src/package-checks/markdown-link-validation/execution.ts +1 -1
- package/src/package-checks/markdown-link-validation/finding-messages.ts +1 -1
- package/src/package-checks/markdown-link-validation/markdown-parser.ts +1 -5
- package/src/package-checks/markdown-link-validation/options-resolution.ts +2 -19
- package/src/package-checks/markdown-link-validation/options-validation.ts +2 -17
- package/src/package-checks/markdown-link-validation/options.ts +6 -7
- package/src/package-checks/markdown-link-validation/parse-facts-cache-payload.ts +4 -5
- package/src/package-checks/markdown-lint/adapter.ts +167 -0
- package/src/package-checks/markdown-lint/default-check.ts +92 -0
- package/src/package-checks/markdown-lint/execution.ts +266 -0
- package/src/package-checks/markdown-lint/final-data.ts +33 -0
- package/src/package-checks/markdown-lint/finding-messages.ts +87 -0
- package/src/package-checks/markdown-lint/finding-waiver-identity.ts +54 -0
- package/src/package-checks/markdown-lint/findings-cache.ts +141 -0
- package/src/package-checks/markdown-lint/options-resolution.ts +102 -0
- package/src/package-checks/markdown-lint/options-validation.ts +50 -0
- package/src/package-checks/markdown-lint/options.ts +82 -0
- package/src/package-checks/markdown-lint/records.ts +132 -0
- package/src/package-checks/markdown-lint/unavailable-reasons.ts +33 -0
- package/src/package-checks/project-files/collection.ts +38 -22
- package/src/package-checks/project-files/config-glob.ts +1 -17
- package/src/package-checks/project-files/configuration.ts +1 -1
- package/src/package-checks/project-files/gitlink-revision.ts +4 -6
- package/src/package-checks/project-files/gitlink-worktree.ts +35 -7
- package/src/package-checks/project-files/public-collection.ts +1 -1
- package/src/package-checks/project-files/revision-paths.ts +3 -3
- package/src/package-checks/project-files/revision-worktree-files.ts +16 -16
- package/src/package-checks/secret-detection/default-check.ts +29 -6
- package/src/package-checks/secret-detection/execution.ts +2 -2
- package/src/package-checks/secret-detection/input-preparation.ts +64 -7
- package/src/package-checks/secret-detection/options.ts +5 -2
- package/src/package-checks/secret-detection/records.ts +1 -1
- package/src/package-checks/secret-detection/secretlint/adapter.ts +3 -4
- package/src/package-tools/admission-policy/define-admission-policy.ts +54 -0
- package/src/{cache → package-tools/cache}/cache-json-by-key.ts +13 -17
- package/src/{check → package-tools/finding-presentation}/finding-presentation.ts +3 -1
- package/src/{finding-waivers → package-tools/finding-waivers}/reconciliation.ts +16 -8
- package/src/{learned-critical-path → package-tools/learned-critical-path}/duration-model/prediction.ts +5 -2
- package/src/{learned-critical-path → package-tools/learned-critical-path}/duration-model/preparation.ts +5 -3
- package/src/{learned-critical-path → package-tools/learned-critical-path}/duration-model/recording.ts +5 -4
- package/src/{learned-critical-path → package-tools/learned-critical-path}/duration-model/storage.ts +9 -10
- package/src/{learned-critical-path → package-tools/learned-critical-path}/selection-layers.ts +2 -3
- package/src/{learned-critical-path → package-tools/learned-critical-path}/static-decision.ts +1 -1
- package/src/{learned-critical-path → package-tools/learned-critical-path}/strategy.ts +7 -4
- package/src/project-definition/check-tree/authoring.ts +15 -8
- package/src/project-definition/check-tree/check-fields-authoring.ts +106 -91
- package/src/project-definition/check-tree/flag-conditions.ts +99 -0
- package/src/project-definition/check-tree/materialization.ts +12 -8
- package/src/project-definition/check-tree/resolution.ts +13 -15
- package/src/project-definition/declarative-snapshot.ts +9 -2
- package/src/project-definition/project-changes.ts +112 -0
- package/src/project-definition/project-definition-validation.ts +58 -10
- package/src/project-definition/project-definition.ts +41 -68
- package/src/project-definition/scheduler-policy.ts +6 -3
- package/src/project-run/admission-strategy-provider/custom-strategy-preparation.ts +11 -8
- package/src/project-run/admission-strategy-provider/prepared-admission-strategy.ts +2 -2
- package/src/project-run/aggregation.ts +51 -74
- package/src/project-run/changes/git.ts +206 -0
- package/src/project-run/check-execution/admitted-check-execution.ts +62 -0
- package/src/project-run/check-execution/callback.ts +3 -2
- package/src/project-run/check-execution/dependencies.ts +120 -6
- package/src/project-run/check-execution/execution-finalization.ts +6 -4
- package/src/project-run/check-execution/execution-settlement.ts +88 -29
- package/src/project-run/check-execution/flag-controls.ts +22 -8
- package/src/project-run/check-execution/lifecycle.ts +14 -6
- package/src/project-run/check-execution/{preflight-result.ts → preparation-result.ts} +34 -32
- package/src/project-run/check-execution/{preflight.ts → preparation.ts} +92 -84
- package/src/project-run/check-execution/ready-check-execution.ts +97 -0
- package/src/project-run/check-execution/resolved-checks.ts +40 -219
- package/src/project-run/check-execution/scheduled-check-run.ts +119 -0
- package/src/project-run/check-execution/terminal-result.ts +108 -29
- package/src/project-run/completion/completion.ts +17 -3
- package/src/project-run/controls/contract.ts +6 -16
- package/src/project-run/controls/validation.ts +7 -60
- package/src/project-run/diagnostic-logging/diagnostic-detail-rendering.ts +1 -2
- package/src/project-run/diagnostic-logging/observation-rendering.ts +1 -1
- package/src/project-run/invocation/candidate.ts +28 -15
- package/src/project-run/invocation/candidates.ts +56 -0
- package/src/project-run/invocation/creation.ts +7 -3
- package/src/project-run/invocation/execution.ts +136 -0
- package/src/project-run/invocation/run.ts +15 -179
- package/src/project-run/invocation/scheduler.ts +13 -6
- package/src/project-run/outputs/status.ts +15 -15
- package/src/project-run/progress-rendering/presentation.ts +35 -13
- package/src/project-run/progress-rendering/renderer-formatting.ts +20 -7
- package/src/project-run/progress-rendering/renderer-lifecycle.ts +23 -6
- package/src/project-run/progress-rendering/renderer.ts +10 -4
- package/src/project-run/project-context.ts +8 -4
- package/src/project-run/result.ts +5 -5
- package/src/project-run/run.ts +1 -1
- package/src/project-run/task-scheduler/admission-core/compiled-graph-lookup.ts +71 -0
- package/src/project-run/task-scheduler/admission-core/compiled-graph.ts +9 -4
- package/src/project-run/task-scheduler/admission-core/selection-query.ts +6 -4
- package/src/project-run/task-scheduler/admission-core/selection-seed.ts +36 -6
- package/src/project-run/task-scheduler/admission-core/selection-transition.ts +17 -8
- package/src/project-run/task-scheduler/execution-state.ts +4 -4
- package/src/project-run/task-scheduler/measurement/diagnostics.ts +10 -4
- package/src/project-run/task-scheduler/measurement/timing.ts +13 -5
- package/src/project-run/task-scheduler/scheduler-observation.ts +3 -1
- package/src/project-run/task-scheduler/scheduler-terminal-measurement.ts +24 -22
- package/src/project-run/task-scheduler/scheduler.ts +23 -6
- package/types/check/check.d.ts +178 -67
- package/types/check/flag-enablement.d.ts +42 -0
- package/types/check/handoff-provider-identity.d.ts +12 -0
- package/types/check/project-changes.d.ts +13 -0
- package/types/check/project-context.d.ts +10 -0
- package/types/check-settlement/facts.d.ts +1 -1
- package/types/data-boundary/canonical-data.d.ts +28 -5
- package/types/data-boundary/canonical-json.d.ts +18 -1
- package/types/data-boundary/closed-values.d.ts +17 -1
- package/types/data-boundary/config-glob.d.ts +5 -0
- package/types/data-boundary/project-path.d.ts +4 -0
- package/types/index.d.ts +27 -11
- package/types/package-checks/check-authoring.d.ts +45 -0
- package/types/package-checks/code-quality-findings/finding-waiver-authoring.d.ts +1 -1
- package/types/package-checks/code-quality-findings/finding-waiver-evidence.d.ts +1 -1
- package/types/package-checks/command-check/command-check.d.ts +48 -0
- package/types/package-checks/command-check/contract.d.ts +108 -0
- package/types/package-checks/command-check/execution.d.ts +7 -0
- package/types/package-checks/command-check/options.d.ts +11 -0
- package/types/package-checks/command-check/transcript.d.ts +8 -0
- package/types/package-checks/duplicate-detection/default-check.d.ts +5 -2
- package/types/package-checks/duplicate-detection/finding-messages.d.ts +1 -1
- package/types/package-checks/duplicate-detection/options.d.ts +4 -3
- package/types/package-checks/duplicate-detection/records.d.ts +1 -1
- package/types/package-checks/file-metrics/constructor.d.ts +5 -2
- package/types/package-checks/file-metrics/options.d.ts +4 -3
- package/types/package-checks/file-metrics/records.d.ts +1 -1
- package/types/package-checks/file-metrics/scc/batch-planner.d.ts +18 -0
- package/types/package-checks/file-metrics/scc/logical-scan-resources.d.ts +14 -0
- package/types/package-checks/function-metrics/analyzer/extensions/protocol.d.ts +3 -3
- package/types/package-checks/function-metrics/constructor.d.ts +5 -2
- package/types/package-checks/function-metrics/finding-messages.d.ts +1 -1
- package/types/package-checks/function-metrics/options.d.ts +4 -3
- package/types/package-checks/function-metrics/records.d.ts +1 -1
- package/types/package-checks/host-environment/git.d.ts +2 -0
- package/types/package-checks/host-environment/path.d.ts +1 -3
- package/types/package-checks/host-environment/process/contract.d.ts +17 -9
- package/types/package-checks/json-schema-validation/default-check.d.ts +4 -1
- package/types/package-checks/json-schema-validation/options.d.ts +2 -1
- package/types/package-checks/json-validation/default-check.d.ts +4 -1
- package/types/package-checks/json-validation/options.d.ts +2 -1
- package/types/package-checks/local-cache-options.d.ts +9 -0
- package/types/package-checks/maintenance-reminders/maintenance-reminders.d.ts +11 -2
- package/types/package-checks/markdown-link-validation/default-check.d.ts +4 -1
- package/types/package-checks/markdown-link-validation/options.d.ts +4 -7
- package/types/package-checks/markdown-lint/adapter.d.ts +10 -0
- package/types/package-checks/markdown-lint/default-check.d.ts +37 -0
- package/types/package-checks/markdown-lint/execution.d.ts +24 -0
- package/types/package-checks/markdown-lint/final-data.d.ts +8 -0
- package/types/package-checks/markdown-lint/finding-messages.d.ts +6 -0
- package/types/package-checks/markdown-lint/finding-waiver-identity.d.ts +3 -0
- package/types/package-checks/markdown-lint/findings-cache.d.ts +17 -0
- package/types/package-checks/markdown-lint/options-resolution.d.ts +3 -0
- package/types/package-checks/markdown-lint/options-validation.d.ts +2 -0
- package/types/package-checks/markdown-lint/options.d.ts +65 -0
- package/types/package-checks/markdown-lint/records.d.ts +39 -0
- package/types/package-checks/markdown-lint/unavailable-reasons.d.ts +3 -0
- package/types/package-checks/secret-detection/default-check.d.ts +4 -1
- package/types/package-checks/secret-detection/options.d.ts +3 -2
- package/types/package-tools/admission-policy/define-admission-policy.d.ts +26 -0
- package/types/{check → package-tools/finding-presentation}/finding-presentation.d.ts +3 -1
- package/types/{finding-waivers → package-tools/finding-waivers}/reconciliation.d.ts +3 -3
- package/types/{learned-critical-path → package-tools/learned-critical-path}/duration-model/prediction.d.ts +2 -2
- package/types/{learned-critical-path → package-tools/learned-critical-path}/duration-model/preparation.d.ts +1 -1
- package/types/{learned-critical-path → package-tools/learned-critical-path}/duration-model/recording.d.ts +1 -1
- package/types/{learned-critical-path → package-tools/learned-critical-path}/selection-layers.d.ts +1 -1
- package/types/{learned-critical-path → package-tools/learned-critical-path}/static-decision.d.ts +1 -1
- package/types/{learned-critical-path → package-tools/learned-critical-path}/strategy.d.ts +1 -1
- package/types/project-definition/check-tree/authoring.d.ts +5 -3
- package/types/project-definition/check-tree/check-fields-authoring.d.ts +12 -7
- package/types/project-definition/check-tree/flag-conditions.d.ts +5 -0
- package/types/project-definition/check-tree/resolution.d.ts +6 -4
- package/types/project-definition/declarative-snapshot.d.ts +4 -1
- package/types/project-definition/project-changes.d.ts +30 -0
- package/types/project-definition/project-definition.d.ts +15 -30
- package/types/project-definition/scheduler-policy.d.ts +3 -3
- package/types/project-run/admission-strategy-provider/prepared-admission-strategy.d.ts +2 -2
- package/types/project-run/aggregation.d.ts +8 -6
- package/types/project-run/changes/git.d.ts +14 -0
- package/types/project-run/check-execution/admitted-check-execution.d.ts +18 -0
- package/types/project-run/check-execution/dependencies.d.ts +3 -0
- package/types/project-run/check-execution/execution-finalization.d.ts +1 -1
- package/types/project-run/check-execution/execution-settlement.d.ts +15 -7
- package/types/project-run/check-execution/flag-controls.d.ts +1 -1
- package/types/project-run/check-execution/lifecycle.d.ts +9 -5
- package/types/project-run/check-execution/{preflight-result.d.ts → preparation-result.d.ts} +3 -3
- package/types/project-run/check-execution/{preflight.d.ts → preparation.d.ts} +10 -9
- package/types/project-run/check-execution/ready-check-execution.d.ts +18 -0
- package/types/project-run/check-execution/resolved-checks.d.ts +12 -13
- package/types/project-run/check-execution/scheduled-check-run.d.ts +10 -0
- package/types/project-run/check-execution/terminal-result.d.ts +13 -1
- package/types/project-run/completion/completion.d.ts +3 -1
- package/types/project-run/controls/contract.d.ts +6 -16
- package/types/project-run/invocation/candidates.d.ts +8 -0
- package/types/project-run/invocation/execution.d.ts +5 -0
- package/types/project-run/invocation/run.d.ts +2 -2
- package/types/project-run/outputs/status.d.ts +4 -4
- package/types/project-run/progress-rendering/presentation.d.ts +4 -3
- package/types/project-run/progress-rendering/renderer-formatting.d.ts +5 -2
- package/types/project-run/progress-rendering/renderer-lifecycle.d.ts +2 -0
- package/types/project-run/progress-rendering/renderer.d.ts +4 -2
- package/types/project-run/project-context.d.ts +3 -3
- package/types/project-run/result.d.ts +3 -3
- package/types/project-run/run.d.ts +1 -1
- package/types/project-run/task-scheduler/admission-core/compiled-graph-lookup.d.ts +10 -0
- package/types/project-run/task-scheduler/execution-state.d.ts +4 -4
- package/types/project-run/task-scheduler/measurement/diagnostics.d.ts +2 -2
- package/types/project-run/task-scheduler/scheduler-terminal-measurement.d.ts +1 -1
- package/dist/esm/cache/cache-json-by-key.mjs.map +0 -1
- package/dist/esm/check/finding-presentation.mjs.map +0 -1
- package/dist/esm/finding-waivers/reconciliation.mjs.map +0 -1
- package/dist/esm/learned-critical-path/duration-model/bounded-history.mjs.map +0 -1
- package/dist/esm/learned-critical-path/duration-model/prediction.mjs.map +0 -1
- package/dist/esm/learned-critical-path/duration-model/preparation.mjs.map +0 -1
- package/dist/esm/learned-critical-path/duration-model/recording.mjs.map +0 -1
- package/dist/esm/learned-critical-path/duration-model/storage.mjs.map +0 -1
- package/dist/esm/learned-critical-path/selection-layers.mjs.map +0 -1
- package/dist/esm/learned-critical-path/static-decision.mjs.map +0 -1
- package/dist/esm/learned-critical-path/strategy.mjs.map +0 -1
- package/dist/esm/package-checks/project-files/config-glob.mjs.map +0 -1
- package/dist/esm/project-run/check-execution/preflight-result.mjs.map +0 -1
- package/dist/esm/project-run/check-execution/preflight.mjs.map +0 -1
- package/dist/esm/project-run/task-scheduler/critical-path-ranking.mjs.map +0 -1
- package/types/package-checks/project-files/config-glob.d.ts +0 -5
- /package/dist/esm/{check → package-tools/finding-presentation}/finding-presentation.mjs +0 -0
- /package/dist/esm/{project-run/task-scheduler → package-tools/learned-critical-path}/critical-path-ranking.mjs +0 -0
- /package/dist/esm/{learned-critical-path → package-tools/learned-critical-path}/duration-model/bounded-history.mjs +0 -0
- /package/dist/esm/{learned-critical-path → package-tools/learned-critical-path}/duration-model/recording.mjs +0 -0
- /package/dist/esm/{learned-critical-path → package-tools/learned-critical-path}/static-decision.mjs +0 -0
- /package/src/{project-run/task-scheduler → package-tools/learned-critical-path}/critical-path-ranking.ts +0 -0
- /package/src/{learned-critical-path → package-tools/learned-critical-path}/duration-model/bounded-history.ts +0 -0
- /package/types/{cache → package-tools/cache}/cache-json-by-key.d.ts +0 -0
- /package/types/{project-run/task-scheduler → package-tools/learned-critical-path}/critical-path-ranking.d.ts +0 -0
- /package/types/{learned-critical-path → package-tools/learned-critical-path}/duration-model/bounded-history.d.ts +0 -0
- /package/types/{learned-critical-path → package-tools/learned-critical-path}/duration-model/storage.d.ts +0 -0
package/types/index.d.ts
CHANGED
|
@@ -4,9 +4,13 @@
|
|
|
4
4
|
*
|
|
5
5
|
* @packageDocumentation
|
|
6
6
|
*/
|
|
7
|
-
export { cacheJsonByKey } from "./cache/cache-json-by-key.ts";
|
|
8
|
-
export type { CacheJsonByKeyOptions, CacheJsonByKeyResult } from "./cache/cache-json-by-key.ts";
|
|
7
|
+
export { cacheJsonByKey } from "./package-tools/cache/cache-json-by-key.ts";
|
|
8
|
+
export type { CacheJsonByKeyOptions, CacheJsonByKeyResult } from "./package-tools/cache/cache-json-by-key.ts";
|
|
9
|
+
export { canonicalizeJsonObject, canonicalizeJsonValue, canonicalJsonBytes, canonicalJsonText } from "./data-boundary/canonical-data.ts";
|
|
10
|
+
export type { CanonicalJsonObject, CanonicalJsonPrimitive, CanonicalJsonValue } from "./data-boundary/canonical-data.ts";
|
|
11
|
+
export { snapshotClosedArray, snapshotExactClosedRecord } from "./data-boundary/closed-values.ts";
|
|
9
12
|
export { duplicateDetection } from "./package-checks/duplicate-detection/default-check.ts";
|
|
13
|
+
export type { PackageCheckAuthoringOptions } from "./package-checks/check-authoring.ts";
|
|
10
14
|
export { parseDuplicateDetectionData } from "./package-checks/duplicate-detection/final-data.ts";
|
|
11
15
|
export type { DuplicateDetectionFinalData } from "./package-checks/duplicate-detection/final-data.ts";
|
|
12
16
|
export type { DuplicateDetectionFindingIdentity, DuplicateDetectionFindingLocation, DuplicateDetectionFindingWaiver, DuplicateDetectionOptions, ResolvedDuplicateDetectionOptions } from "./package-checks/duplicate-detection/options.ts";
|
|
@@ -40,10 +44,18 @@ export { parseJsonValidationData } from "./package-checks/json-validation/final-
|
|
|
40
44
|
export type { JsonValidationFinalData } from "./package-checks/json-validation/final-data.ts";
|
|
41
45
|
export type { JsonValidationOptions, ResolvedJsonValidationOptions } from "./package-checks/json-validation/options.ts";
|
|
42
46
|
export type { JsonValidationRecordData, JsonValidationRecordReason, JsonValidationUnavailableCode } from "./package-checks/json-validation/json-validation.ts";
|
|
47
|
+
export { commandCheck } from "./package-checks/command-check/command-check.ts";
|
|
48
|
+
export type { AfterCommand, AfterCommandContext, AfterCommandExecution, CommandCheck, CommandCheckEnvironment, CommandCheckWithAfterCommand, CommandEnvironmentContext, CommandEnvironmentResolver, CompletedCommand, CommandCheckFinalData, CommandCheckInput, CommandCheckOutput, CommandCheckUnavailableReasonCode, TypedCommandCheck } from "./package-checks/command-check/command-check.ts";
|
|
43
49
|
export { maintenanceReminders } from "./package-checks/maintenance-reminders/maintenance-reminders.ts";
|
|
44
|
-
export type { MaintenanceReminder, MaintenanceReminderOptions, MaintenanceRemindersUnavailableCode } from "./package-checks/maintenance-reminders/maintenance-reminders.ts";
|
|
50
|
+
export type { MaintenanceReminder, MaintenanceReminderOptions, MaintenanceRemindersInput, MaintenanceRemindersUnavailableCode } from "./package-checks/maintenance-reminders/maintenance-reminders.ts";
|
|
45
51
|
export { parseMaintenanceRemindersData } from "./package-checks/maintenance-reminders/final-data.ts";
|
|
46
52
|
export type { MaintenanceReminderAssessment, MaintenanceReminderUnavailableReason, MaintenanceRemindersFinalData } from "./package-checks/maintenance-reminders/final-data.ts";
|
|
53
|
+
export { markdownLint } from "./package-checks/markdown-lint/default-check.ts";
|
|
54
|
+
export { parseMarkdownLintData } from "./package-checks/markdown-lint/final-data.ts";
|
|
55
|
+
export type { MarkdownLintFinalData } from "./package-checks/markdown-lint/final-data.ts";
|
|
56
|
+
export type { MarkdownLintFindingIdentity, MarkdownLintFindingWaiver, MarkdownLintOptions, MarkdownLintRuleName, ResolvedMarkdownLintOptions } from "./package-checks/markdown-lint/options.ts";
|
|
57
|
+
export type { MarkdownLintFindingWaiverAuditRecordData, MarkdownLintRecordData } from "./package-checks/markdown-lint/records.ts";
|
|
58
|
+
export type { MarkdownLintUnavailableReason } from "./package-checks/markdown-lint/execution.ts";
|
|
47
59
|
export { markdownLinkValidation } from "./package-checks/markdown-link-validation/default-check.ts";
|
|
48
60
|
export { parseMarkdownLinkValidationData } from "./package-checks/markdown-link-validation/final-data.ts";
|
|
49
61
|
export type { MarkdownLinkValidationFinalData } from "./package-checks/markdown-link-validation/final-data.ts";
|
|
@@ -52,20 +64,24 @@ export type { MarkdownLinkValidationUnavailableReason } from "./package-checks/m
|
|
|
52
64
|
export type { MarkdownLinkValidationRecordData } from "./package-checks/markdown-link-validation/records.ts";
|
|
53
65
|
export type { MarkdownLinkFindingReason } from "./package-checks/markdown-link-validation/local-resolver.ts";
|
|
54
66
|
export type { FindingPolicy } from "./package-checks/code-quality-findings/policy.ts";
|
|
55
|
-
export { reconcileFindingWaivers } from "./finding-waivers/reconciliation.ts";
|
|
56
|
-
export { presentCheckFindings } from "./
|
|
57
|
-
export type { FindingWaiver, FindingWaiverAudit, FindingWaiverReconciliation, MaterializedFindingWaiver, ReconciledFinding, ReconcileFindingWaiversOptions } from "./finding-waivers/reconciliation.ts";
|
|
67
|
+
export { reconcileFindingWaivers } from "./package-tools/finding-waivers/reconciliation.ts";
|
|
68
|
+
export { presentCheckFindings } from "./package-tools/finding-presentation/finding-presentation.ts";
|
|
69
|
+
export type { FindingWaiver, FindingWaiverAudit, FindingWaiverReconciliation, MaterializedFindingWaiver, ReconciledFinding, ReconcileFindingWaiversOptions } from "./package-tools/finding-waivers/reconciliation.ts";
|
|
58
70
|
export { defaultProjectFileSelection } from "./package-checks/project-files/configuration.ts";
|
|
59
71
|
export { collectProjectFiles } from "./package-checks/project-files/public-collection.ts";
|
|
60
72
|
export type { CollectProjectFilesOptions } from "./package-checks/project-files/public-collection.ts";
|
|
61
73
|
export type { ProjectFileSelection, ProjectFileSelectionOptions, ProjectFileSource } from "./package-checks/project-files/configuration.ts";
|
|
62
74
|
export { defineCheck, inherit } from "./check/check.ts";
|
|
63
|
-
export
|
|
64
|
-
export {
|
|
65
|
-
export {
|
|
66
|
-
export
|
|
75
|
+
export { all, any, changeFlag, exactlyOne, none, not, notAll } from "./check/flag-enablement.ts";
|
|
76
|
+
export type { Check, CheckDependencies, CheckExecution, CheckExecutionContext, CheckFlagCondition, CheckFlagEnablement, CheckPreparation, CheckPreparationResult, CheckProjectContext, CheckResourceClaims, CheckOutcome, ProjectChanges, CheckResult, CheckUnavailableReason, InheritableCheckCollection } from "./check/check.ts";
|
|
77
|
+
export { defineAdmissionPolicy } from "./package-tools/admission-policy/define-admission-policy.ts";
|
|
78
|
+
export { defineConfig } from "./project-definition/project-definition.ts";
|
|
79
|
+
export { createLearnedCriticalPathStrategy } from "./package-tools/learned-critical-path/strategy.ts";
|
|
80
|
+
export type { LearnedCriticalPathObservation, LearnedCriticalPathStrategyOptions } from "./package-tools/learned-critical-path/strategy.ts";
|
|
67
81
|
export { createAdmissionGraph } from "./project-run/task-scheduler/admission-core/core.ts";
|
|
68
|
-
export type { AdmissionPolicy, AdmissionPolicyContext, AdmissionPolicyMeasurement, AdmissionProposal, AdmissionCatalog, AdmissionGraph, AdmissionGraphInput, AdmissionInspection, AdmissionNonSelectableTask, AdmissionRejectionReason, AdmissionScopeLifecycle, AdmissionSelectionRejectionReason, AdmissionSelectionValidation, AdmissionSelectionValidationRejectionReason, AdmissionSettlementOutcome, AdmissionSettledTask, AdmissionState, AdmissionTransitionResult, CustomAdmissionPreparationContext, CustomAdmissionStrategy, PreparedCustomAdmissionStrategy, ProgressPreviewFormatter, ProjectOutputs, ProjectDefinition, SchedulerDecisionMeasurementCumulative, SchedulerGraphSnapshot, SchedulerMeasurementContext,
|
|
82
|
+
export type { AdmissionPolicy, AdmissionPolicyContext, AdmissionPolicyMeasurement, AdmissionProposal, AdmissionCatalog, AdmissionGraph, AdmissionGraphInput, AdmissionInspection, AdmissionNonSelectableTask, AdmissionRejectionReason, AdmissionScopeLifecycle, AdmissionSelectionRejectionReason, AdmissionSelectionValidation, AdmissionSelectionValidationRejectionReason, AdmissionSettlementOutcome, AdmissionSettledTask, AdmissionState, AdmissionTransitionResult, CustomAdmissionPreparationContext, CustomAdmissionStrategy, PreparedCustomAdmissionStrategy, ProgressPreviewFormatter, ProjectOutputs, ProjectDefinition, SchedulerDecisionMeasurementCumulative, SchedulerGraphSnapshot, SchedulerMeasurementContext, SchedulerTerminalEffect, SchedulerMeasurementIntervalContribution, SchedulerMeasurementActionObservationInterval, SchedulerMeasurementActionObservation, SchedulerMeasurementEffect, SchedulerRawMeasurement, SchedulerPolicy } from "./project-definition/project-definition.ts";
|
|
83
|
+
export type { ProjectChangeFlagRegion, ProjectChangeSource, ProjectChangesConfiguration } from "./project-definition/project-changes.ts";
|
|
84
|
+
export type { CoreCheck } from "./check-settlement/facts.ts";
|
|
69
85
|
export type { CheckAggregate, CheckAggregation, RunControls } from "./project-run/controls/contract.ts";
|
|
70
86
|
export { run } from "./project-run/run.ts";
|
|
71
87
|
export type { RunOutputStatus, RunOutputStatuses } from "./project-run/outputs/status.ts";
|
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
import type { Check, CheckFlagEnablement, CheckResourceClaims, InheritableCheckCollection } from "../check/check.ts";
|
|
2
|
+
/** 固定身份随包 Check 构造器与领域 policy 并列接收的项目声明字段;Project Definition 保留语义校验所有权。 */
|
|
3
|
+
export interface PackageCheckAuthoringOptions<Id extends string = string> {
|
|
4
|
+
/** Overrides the constructor's package default identity. */
|
|
5
|
+
readonly checkId?: Id;
|
|
6
|
+
/** Overrides the constructor's package default presentation name. */
|
|
7
|
+
readonly displayName?: string;
|
|
8
|
+
readonly enabledByFlags?: CheckFlagEnablement;
|
|
9
|
+
readonly checks?: readonly Check[];
|
|
10
|
+
readonly dependsOn?: InheritableCheckCollection<string>;
|
|
11
|
+
readonly observes?: InheritableCheckCollection<string>;
|
|
12
|
+
readonly maxParallel?: number;
|
|
13
|
+
readonly admissionPriority?: number;
|
|
14
|
+
readonly mutex?: InheritableCheckCollection<string>;
|
|
15
|
+
readonly resourceClaims?: CheckResourceClaims;
|
|
16
|
+
/** `false` explicitly restores the package default of rendering quiet passed rows. */
|
|
17
|
+
readonly omitQuietPassedRow?: boolean;
|
|
18
|
+
}
|
|
19
|
+
/** 自定义随包 Check identity 时必须声明与返回类型一致的 runtime `checkId`。 */
|
|
20
|
+
export type PackageCheckIdentityInput<Id extends string> = Readonly<{
|
|
21
|
+
readonly checkId: Id;
|
|
22
|
+
}>;
|
|
23
|
+
type PackageCheckDefinition<Id extends string> = Readonly<{
|
|
24
|
+
readonly checkId: Id;
|
|
25
|
+
readonly displayName: string;
|
|
26
|
+
readonly enabledByFlags?: CheckFlagEnablement;
|
|
27
|
+
readonly checks?: readonly Check[];
|
|
28
|
+
readonly dependsOn?: InheritableCheckCollection<string>;
|
|
29
|
+
readonly observes?: InheritableCheckCollection<string>;
|
|
30
|
+
readonly maxParallel?: number;
|
|
31
|
+
readonly admissionPriority?: number;
|
|
32
|
+
readonly mutex?: InheritableCheckCollection<string>;
|
|
33
|
+
readonly resourceClaims?: CheckResourceClaims;
|
|
34
|
+
readonly omitQuietPassedRow?: true;
|
|
35
|
+
}>;
|
|
36
|
+
/** 对一个 closed 构造输入执行安全 shape 校验,并分流领域 policy 与普通 Check 声明字段。 */
|
|
37
|
+
export declare function resolvePackageCheckAuthoringInput<const Id extends string>(input: PackageCheckAuthoringOptions<Id> & object, domainKeys: readonly string[], defaults: Readonly<{
|
|
38
|
+
readonly checkId: string;
|
|
39
|
+
readonly displayName: string;
|
|
40
|
+
readonly omitQuietPassedRow?: true;
|
|
41
|
+
}>): Readonly<{
|
|
42
|
+
readonly definition: PackageCheckDefinition<Id>;
|
|
43
|
+
readonly domainOptions: Readonly<Record<string, unknown>>;
|
|
44
|
+
}> | undefined;
|
|
45
|
+
export {};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { FindingWaiver } from "../../finding-waivers/reconciliation.ts";
|
|
1
|
+
import type { FindingWaiver } from "../../package-tools/finding-waivers/reconciliation.ts";
|
|
2
2
|
/**
|
|
3
3
|
* Snapshots the shared closed waiver envelope while leaving identity grammar to the producing Check.
|
|
4
4
|
*/
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import type { CheckExecutionContext } from "../../check/check.ts";
|
|
2
|
-
import type { FindingWaiverAudit, FindingWaiverReconciliation } from "../../finding-waivers/reconciliation.ts";
|
|
2
|
+
import type { FindingWaiverAudit, FindingWaiverReconciliation } from "../../package-tools/finding-waivers/reconciliation.ts";
|
|
3
3
|
interface CodeQualityFindingCandidate {
|
|
4
4
|
readonly data: Readonly<{
|
|
5
5
|
readonly blocking: boolean;
|
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
import type { CheckDataParser } from "../../check/check.ts";
|
|
2
|
+
import type { AfterCommandExecution, CommandCheck, CommandCheckInput, CommandCheckWithAfterCommand, TypedCommandCheck } from "./contract.ts";
|
|
3
|
+
export type { AfterCommand, AfterCommandContext, AfterCommandExecution, CommandCheckWithAfterCommand, CommandEnvironmentContext, CommandEnvironmentResolver, CompletedCommand, CommandCheck, CommandCheckEnvironment, CommandCheckFinalData, CommandCheckInput, CommandCheckOutput, CommandCheckUnavailableReasonCode, TypedCommandCheck } from "./contract.ts";
|
|
4
|
+
/**
|
|
5
|
+
* 构造一个单一 no-shell executable 的 ordinary Check。
|
|
6
|
+
*
|
|
7
|
+
* @remarks constructor 会闭合并冻结 command-owned options;ordinary selection、relation 与 scheduling fields 仍按普通 Check lifecycle 传递。默认 exact-empty environment 与 discard output 不会把 ambient variables、child stdout/stderr 或 native error text 发布到 Check facts。`output: { mode: "transcript" }` 仅在 invocation 授予此 Check artifact directory 时,将 raw stdout/stderr 写入固定 `process.log`。
|
|
8
|
+
* @example 以 process.execPath 构造无 shell command Check
|
|
9
|
+
* ```ts
|
|
10
|
+
* import { commandCheck, defineConfig, run } from "@zxyycom/vibe-check";
|
|
11
|
+
*
|
|
12
|
+
* const nodeProbe = commandCheck({
|
|
13
|
+
* checkId: "node-probe",
|
|
14
|
+
* displayName: "Node probe",
|
|
15
|
+
* executable: process.execPath,
|
|
16
|
+
* arguments: ["--eval", "process.exit(0)"],
|
|
17
|
+
* timeoutMs: 5_000,
|
|
18
|
+
* outputByteLimit: 64 * 1024
|
|
19
|
+
* });
|
|
20
|
+
*
|
|
21
|
+
* const definition = defineConfig({
|
|
22
|
+
* checks: [nodeProbe],
|
|
23
|
+
* outputs: {
|
|
24
|
+
* diagnosticLogging: { enabled: false },
|
|
25
|
+
* machinePublication: { enabled: false },
|
|
26
|
+
* progressRendering: { enabled: false }
|
|
27
|
+
* }
|
|
28
|
+
* });
|
|
29
|
+
*
|
|
30
|
+
* const result = await run(definition);
|
|
31
|
+
* if (result.kind !== "completed") throw new Error(`Run did not complete: ${result.kind}`);
|
|
32
|
+
* const outcome = result.snapshot.checks.find(
|
|
33
|
+
* ({ checkId }) => checkId === nodeProbe.checkId
|
|
34
|
+
* )?.outcome;
|
|
35
|
+
* if (outcome?.status !== "passed" || outcome.data.exitCode !== 0) {
|
|
36
|
+
* throw new Error("Node probe did not produce the expected passed outcome");
|
|
37
|
+
* }
|
|
38
|
+
* ```
|
|
39
|
+
*/
|
|
40
|
+
export declare function commandCheck<const Id extends string, const FinalData extends object>(input: CommandCheckInput<Id, Readonly<{
|
|
41
|
+
readonly execute: AfterCommandExecution<FinalData>;
|
|
42
|
+
readonly parseData?: never;
|
|
43
|
+
}>>): CommandCheckWithAfterCommand<Id, FinalData>;
|
|
44
|
+
export declare function commandCheck<const Id extends string, const Parser extends CheckDataParser>(input: CommandCheckInput<Id, Readonly<{
|
|
45
|
+
readonly execute: AfterCommandExecution<NoInfer<ReturnType<Parser>>>;
|
|
46
|
+
readonly parseData: Parser;
|
|
47
|
+
}>>): TypedCommandCheck<Id, Parser>;
|
|
48
|
+
export declare function commandCheck<const Id extends string>(input: CommandCheckInput<Id>): CommandCheck<Id>;
|
|
@@ -0,0 +1,108 @@
|
|
|
1
|
+
import type { Check, CheckDataParser, CheckDependencies, CheckExecutionContext, CheckFlagEnablement, CheckProjectContext, CheckResourceClaims, CheckResult, CheckWithOptions, DeepReadonly, InheritableCheckCollection, TypedCheckWithOptions } from "../../check/check.ts";
|
|
2
|
+
/** command Check 的显式环境策略;默认 exact-empty,避免定义时读取 ambient environment。 */
|
|
3
|
+
export type CommandCheckEnvironment = Readonly<{
|
|
4
|
+
readonly mode: "exact";
|
|
5
|
+
readonly variables?: Readonly<Record<string, string>>;
|
|
6
|
+
}> | Readonly<{
|
|
7
|
+
readonly mode: "inherit";
|
|
8
|
+
readonly overrides?: Readonly<Record<string, string | null>>;
|
|
9
|
+
}>;
|
|
10
|
+
/** child stdout/stderr 的处理边界;默认 discard。 */
|
|
11
|
+
export type CommandCheckOutput = Readonly<{
|
|
12
|
+
readonly mode: "discard" | "transcript";
|
|
13
|
+
}>;
|
|
14
|
+
/** command 以 numeric exit status 结束时发布的唯一 final data。 */
|
|
15
|
+
export interface CommandCheckFinalData {
|
|
16
|
+
/** child process 的 numeric exit status。 */
|
|
17
|
+
readonly exitCode: number;
|
|
18
|
+
}
|
|
19
|
+
/** 已完整结束且只在 invocation-local callback 中可见的 child material。 */
|
|
20
|
+
export interface CompletedCommand {
|
|
21
|
+
readonly exitCode: number;
|
|
22
|
+
readonly stderr: string;
|
|
23
|
+
readonly stdout: string;
|
|
24
|
+
}
|
|
25
|
+
/** spawn 前 environment resolver 可读取的最小 invocation context。 */
|
|
26
|
+
export interface CommandEnvironmentContext {
|
|
27
|
+
readonly dependencies: CheckDependencies;
|
|
28
|
+
readonly options: DeepReadonly<ResolvedCommandCheckOptions>;
|
|
29
|
+
readonly project: CheckProjectContext;
|
|
30
|
+
readonly signal: AbortSignal;
|
|
31
|
+
}
|
|
32
|
+
/** 完整 command 后 caller-owned settlement 可读取的 context。 */
|
|
33
|
+
export type AfterCommandContext = CheckExecutionContext<ResolvedCommandCheckOptions> & Readonly<{
|
|
34
|
+
readonly command: CompletedCommand;
|
|
35
|
+
}>;
|
|
36
|
+
/** 完整 command 的 caller-owned settlement callback。 */
|
|
37
|
+
export type AfterCommandExecution<FinalData extends object = object> = (this: void, context: AfterCommandContext) => CheckResult<FinalData> | Promise<CheckResult<FinalData>>;
|
|
38
|
+
/** command 完成后的可选 caller-owned settlement 与 typed-provider parser。 */
|
|
39
|
+
export type AfterCommand<FinalData extends object = object> = Readonly<{
|
|
40
|
+
readonly execute: AfterCommandExecution<FinalData>;
|
|
41
|
+
readonly parseData?: CheckDataParser | undefined;
|
|
42
|
+
}>;
|
|
43
|
+
/** spawn 前解析此次 command closed environment policy 的 callback。 */
|
|
44
|
+
export type CommandEnvironmentResolver = (this: void, context: CommandEnvironmentContext) => CommandCheckEnvironment | Promise<CommandCheckEnvironment>;
|
|
45
|
+
/** command Check 自己产生的 stable unavailable reason code。 */
|
|
46
|
+
export type CommandCheckUnavailableReasonCode = "command-environment-resolution-failed" | "command-output-limit-exceeded" | "command-start-failed" | "command-terminated-by-signal" | "command-timeout" | "command-transcript-unavailable" | "invalid-options";
|
|
47
|
+
/** `commandCheck` 的 closed authoring input;ordinary Check composition fields 原样交由 Core 处理。 */
|
|
48
|
+
interface CommandCheckBaseInput<Id extends string> {
|
|
49
|
+
readonly checkId: Id;
|
|
50
|
+
readonly displayName: string;
|
|
51
|
+
readonly executable: string;
|
|
52
|
+
readonly arguments?: readonly string[];
|
|
53
|
+
readonly workingDirectory?: string;
|
|
54
|
+
readonly timeoutMs: number;
|
|
55
|
+
readonly outputByteLimit: number;
|
|
56
|
+
readonly output?: CommandCheckOutput;
|
|
57
|
+
readonly enabledByFlags?: CheckFlagEnablement;
|
|
58
|
+
readonly checks?: readonly Check[];
|
|
59
|
+
readonly dependsOn?: InheritableCheckCollection<string>;
|
|
60
|
+
readonly observes?: InheritableCheckCollection<string>;
|
|
61
|
+
readonly maxParallel?: number;
|
|
62
|
+
readonly admissionPriority?: number;
|
|
63
|
+
readonly mutex?: InheritableCheckCollection<string>;
|
|
64
|
+
readonly resourceClaims?: CheckResourceClaims;
|
|
65
|
+
readonly omitQuietPassedRow?: true;
|
|
66
|
+
}
|
|
67
|
+
/** Static environment 与 invocation-time resolver 互斥;两者都省略时使用 exact-empty。 */
|
|
68
|
+
export type CommandCheckInput<Id extends string = string, After extends AfterCommand | undefined = undefined> = CommandCheckBaseInput<Id> & (Readonly<{
|
|
69
|
+
readonly environment?: CommandCheckEnvironment;
|
|
70
|
+
readonly resolveEnvironment?: never;
|
|
71
|
+
}> | Readonly<{
|
|
72
|
+
readonly environment?: never;
|
|
73
|
+
readonly resolveEnvironment: CommandEnvironmentResolver;
|
|
74
|
+
}>) & (After extends undefined ? Readonly<{
|
|
75
|
+
readonly afterCommand?: undefined;
|
|
76
|
+
}> : Readonly<{
|
|
77
|
+
readonly afterCommand: After;
|
|
78
|
+
}>);
|
|
79
|
+
/** command constructor materializes、冻结并在 preparation 再次验证的内部完整 options。 */
|
|
80
|
+
export interface ResolvedCommandCheckOptions {
|
|
81
|
+
readonly arguments: readonly string[];
|
|
82
|
+
readonly environment: Readonly<{
|
|
83
|
+
readonly mode: "exact";
|
|
84
|
+
readonly variables: Readonly<Record<string, string>>;
|
|
85
|
+
}> | Readonly<{
|
|
86
|
+
readonly mode: "inherit";
|
|
87
|
+
readonly overrides: Readonly<Record<string, string | null>>;
|
|
88
|
+
}>;
|
|
89
|
+
readonly executable: string;
|
|
90
|
+
readonly output: Readonly<{
|
|
91
|
+
readonly mode: "discard" | "transcript";
|
|
92
|
+
}>;
|
|
93
|
+
readonly outputByteLimit: number;
|
|
94
|
+
readonly timeoutMs: number;
|
|
95
|
+
/** `null` 表示 execution 时使用 invocation project root。 */
|
|
96
|
+
readonly workingDirectory: string | null;
|
|
97
|
+
}
|
|
98
|
+
/** 可放入普通 Project Definition 的 process-backed Check。 */
|
|
99
|
+
export type CommandCheck<Id extends string = string> = CheckWithOptions<Id, ResolvedCommandCheckOptions> & Readonly<{
|
|
100
|
+
execute(this: void, context: CheckExecutionContext<ResolvedCommandCheckOptions>): CheckResult<CommandCheckFinalData> | Promise<CheckResult<CommandCheckFinalData>>;
|
|
101
|
+
}>;
|
|
102
|
+
/** 带 caller-owned completion callback 的 ordinary command Check。 */
|
|
103
|
+
export type CommandCheckWithAfterCommand<Id extends string, FinalData extends object> = Omit<CheckWithOptions<Id, ResolvedCommandCheckOptions>, "execute"> & Readonly<{
|
|
104
|
+
execute(this: void, context: CheckExecutionContext<ResolvedCommandCheckOptions>): CheckResult<FinalData> | Promise<CheckResult<FinalData>>;
|
|
105
|
+
}>;
|
|
106
|
+
/** 带 caller-owned completion callback 与 parser 的 typed-provider command Check。 */
|
|
107
|
+
export type TypedCommandCheck<Id extends string, Parser extends CheckDataParser> = TypedCheckWithOptions<Id, ResolvedCommandCheckOptions, Parser>;
|
|
108
|
+
export {};
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import type { CheckExecutionContext, CheckResult } from "../../check/check.ts";
|
|
2
|
+
import type { AfterCommand, CommandEnvironmentResolver, ResolvedCommandCheckOptions } from "./contract.ts";
|
|
3
|
+
/** Executes one validated no-shell command and releases all child material after optional transcript persistence. */
|
|
4
|
+
export declare function executeCommandCheck(context: CheckExecutionContext<ResolvedCommandCheckOptions>, executionExtensions?: Readonly<{
|
|
5
|
+
readonly afterCommand?: AfterCommand | undefined;
|
|
6
|
+
readonly resolveEnvironment?: CommandEnvironmentResolver | undefined;
|
|
7
|
+
}>): Promise<CheckResult>;
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import type { AfterCommand, CommandEnvironmentResolver, ResolvedCommandCheckOptions } from "./contract.ts";
|
|
2
|
+
/** Snapshots one closed constructor input and materializes every command-owned omission. */
|
|
3
|
+
export declare function resolveCommandCheckInput(input: unknown): Readonly<{
|
|
4
|
+
readonly afterCommand: AfterCommand | undefined;
|
|
5
|
+
readonly options: ResolvedCommandCheckOptions;
|
|
6
|
+
readonly resolveEnvironment: CommandEnvironmentResolver | undefined;
|
|
7
|
+
}> | undefined;
|
|
8
|
+
/** Resolves one callback-produced environment to the same complete closed shape as static input. */
|
|
9
|
+
export declare function resolveCommandCheckEnvironment(value: unknown): ResolvedCommandCheckOptions["environment"] | undefined;
|
|
10
|
+
/** Revalidates the complete resolved shape before execution. */
|
|
11
|
+
export declare function isValidResolvedCommandCheckOptions(value: unknown): value is ResolvedCommandCheckOptions;
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
/** Atomically replaces this Check-local fixed transcript without exposing command inputs or native errors. */
|
|
2
|
+
export declare function writeCommandTranscript(artifactDirectory: string, contents: string): Promise<boolean>;
|
|
3
|
+
export declare function runningTranscript(): string;
|
|
4
|
+
export declare function closedTranscript(input: {
|
|
5
|
+
readonly status: "passed" | "failed" | "unavailable";
|
|
6
|
+
readonly stderr: string;
|
|
7
|
+
readonly stdout: string;
|
|
8
|
+
}): string;
|
|
@@ -1,11 +1,14 @@
|
|
|
1
1
|
import { type TypedCheckWithOptions } from "../../check/check.ts";
|
|
2
|
+
import { type PackageCheckIdentityInput } from "../check-authoring.ts";
|
|
2
3
|
import { parseDuplicateDetectionData } from "./final-data.ts";
|
|
3
4
|
import type { DuplicateDetectionOptions, ResolvedDuplicateDetectionOptions } from "./options.ts";
|
|
4
5
|
/**
|
|
5
6
|
* 使用可省略的区域、cache 与 scanner policy 构造一个完整 duplicate-detection Check。
|
|
6
7
|
*
|
|
7
8
|
* @param options - 省略字段由 package 补齐;显式 files 数组作为对应字段的完整替换值。
|
|
8
|
-
* @returns 固定 `duplicate-detection` identity、完整冻结 options、
|
|
9
|
+
* @returns 固定 `duplicate-detection` identity、完整冻结 options、preparation 与 execution。
|
|
9
10
|
* @throws {TypeError} input 含未知字段、空 area、非法阈值、非法 cache 或 scanner policy 时抛出。
|
|
10
11
|
*/
|
|
11
|
-
export declare function duplicateDetection(options?: DuplicateDetectionOptions): TypedCheckWithOptions<"duplicate-detection", ResolvedDuplicateDetectionOptions, typeof parseDuplicateDetectionData>;
|
|
12
|
+
export declare function duplicateDetection(options?: DuplicateDetectionOptions<"duplicate-detection">): TypedCheckWithOptions<"duplicate-detection", ResolvedDuplicateDetectionOptions, typeof parseDuplicateDetectionData>;
|
|
13
|
+
export declare function duplicateDetection<const Id extends string>(options: DuplicateDetectionOptions<Id> & PackageCheckIdentityInput<Id>): TypedCheckWithOptions<Id, ResolvedDuplicateDetectionOptions, typeof parseDuplicateDetectionData>;
|
|
14
|
+
export declare function duplicateDetection(options: DuplicateDetectionOptions): TypedCheckWithOptions<string, ResolvedDuplicateDetectionOptions, typeof parseDuplicateDetectionData>;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import type { CheckMessage } from "../../check/check.ts";
|
|
2
|
-
import type { FindingWaiverReconciliation } from "../../finding-waivers/reconciliation.ts";
|
|
2
|
+
import type { FindingWaiverReconciliation } from "../../package-tools/finding-waivers/reconciliation.ts";
|
|
3
3
|
import { type DuplicateRecordCandidate } from "./records.ts";
|
|
4
4
|
/** Projects duplicate Records into bounded, project-relative terminal summaries. */
|
|
5
5
|
export declare function duplicateFindingMessages(candidates: readonly DuplicateRecordCandidate[]): readonly CheckMessage[];
|
|
@@ -1,6 +1,7 @@
|
|
|
1
|
+
import type { PackageCheckAuthoringOptions } from "../check-authoring.ts";
|
|
1
2
|
import type { ProjectFileSelection, ProjectFileSelectionOptions } from "../project-files/configuration.ts";
|
|
2
3
|
import type { FindingPolicy } from "../code-quality-findings/policy.ts";
|
|
3
|
-
import type { FindingWaiver } from "../../finding-waivers/reconciliation.ts";
|
|
4
|
+
import type { FindingWaiver } from "../../package-tools/finding-waivers/reconciliation.ts";
|
|
4
5
|
export type DuplicateDetectionScannerCommand =
|
|
5
6
|
/** 使用随 `@zxyycom/vibe-check` 安装的 jscpd。 */
|
|
6
7
|
Readonly<{
|
|
@@ -51,7 +52,7 @@ export interface DuplicateDetectionCodeAreaOptions {
|
|
|
51
52
|
readonly minimumTokens?: number;
|
|
52
53
|
}
|
|
53
54
|
/** `duplicateDetection(options?)` 接受并补齐默认值的公开策略。 */
|
|
54
|
-
export interface DuplicateDetectionOptions {
|
|
55
|
+
export interface DuplicateDetectionOptions<Id extends string = string> extends PackageCheckAuthoringOptions<Id> {
|
|
55
56
|
/** 省略时建立默认 `project` 区域;显式映射必须非空。 */
|
|
56
57
|
readonly codeAreas?: Readonly<Record<string, DuplicateDetectionCodeAreaOptions>>;
|
|
57
58
|
readonly cache?: DuplicateDetectionCacheOptions;
|
|
@@ -61,7 +62,7 @@ export interface DuplicateDetectionOptions {
|
|
|
61
62
|
readonly findingWaivers?: readonly DuplicateDetectionFindingWaiver[];
|
|
62
63
|
readonly scanner?: DuplicateDetectionScannerOptions;
|
|
63
64
|
}
|
|
64
|
-
/** 构造函数生成并由 Check
|
|
65
|
+
/** 构造函数生成并由 Check preparation/execution 消费的完整 options。 */
|
|
65
66
|
export interface ResolvedDuplicateDetectionOptions {
|
|
66
67
|
readonly cache: Readonly<{
|
|
67
68
|
readonly directory: string;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { MaterializedFindingWaiver } from "../../finding-waivers/reconciliation.ts";
|
|
1
|
+
import type { MaterializedFindingWaiver } from "../../package-tools/finding-waivers/reconciliation.ts";
|
|
2
2
|
import { type FindingWaiverAuditRecordData, type FindingWaiverRecordAudit } from "../code-quality-findings/finding-waiver-evidence.ts";
|
|
3
3
|
import type { DuplicateCodeFragment } from "./measurement-model.ts";
|
|
4
4
|
import type { DuplicateDetectionFindingIdentity, ResolvedDuplicateDetectionOptions } from "./options.ts";
|
|
@@ -1,11 +1,14 @@
|
|
|
1
1
|
import { type TypedCheckWithOptions } from "../../check/check.ts";
|
|
2
|
+
import { type PackageCheckIdentityInput } from "../check-authoring.ts";
|
|
2
3
|
import { parseFileMetricsData } from "./final-data.ts";
|
|
3
4
|
import type { FileMetricsOptions, ResolvedFileMetricsOptions } from "./options.ts";
|
|
4
5
|
/**
|
|
5
6
|
* 使用可省略的区域、代码行与 scanner policy 构造一个完整 file-metrics Check。
|
|
6
7
|
*
|
|
7
8
|
* @param options - 省略字段由 package 补齐;显式 files 数组作为对应字段的完整替换值。
|
|
8
|
-
* @returns 固定 `file-metrics` identity、完整冻结 options、
|
|
9
|
+
* @returns 固定 `file-metrics` identity、完整冻结 options、preparation 与 execution。
|
|
9
10
|
* @throws {TypeError} input 含未知字段、空 area、非法代码行 policy、非法 waiver 或空 executable 时抛出。
|
|
10
11
|
*/
|
|
11
|
-
export declare function fileMetrics(options?: FileMetricsOptions): TypedCheckWithOptions<"file-metrics", ResolvedFileMetricsOptions, typeof parseFileMetricsData>;
|
|
12
|
+
export declare function fileMetrics(options?: FileMetricsOptions<"file-metrics">): TypedCheckWithOptions<"file-metrics", ResolvedFileMetricsOptions, typeof parseFileMetricsData>;
|
|
13
|
+
export declare function fileMetrics<const Id extends string>(options: FileMetricsOptions<Id> & PackageCheckIdentityInput<Id>): TypedCheckWithOptions<Id, ResolvedFileMetricsOptions, typeof parseFileMetricsData>;
|
|
14
|
+
export declare function fileMetrics(options: FileMetricsOptions): TypedCheckWithOptions<string, ResolvedFileMetricsOptions, typeof parseFileMetricsData>;
|
|
@@ -1,6 +1,7 @@
|
|
|
1
|
+
import type { PackageCheckAuthoringOptions } from "../check-authoring.ts";
|
|
1
2
|
import type { ProjectFileSelection, ProjectFileSelectionOptions } from "../project-files/configuration.ts";
|
|
2
3
|
import type { FindingPolicy } from "../code-quality-findings/policy.ts";
|
|
3
|
-
import type { FindingWaiver } from "../../finding-waivers/reconciliation.ts";
|
|
4
|
+
import type { FindingWaiver } from "../../package-tools/finding-waivers/reconciliation.ts";
|
|
4
5
|
/** `fileMetrics` 构造函数可省略的 SCC 可执行文件策略。 */
|
|
5
6
|
export interface FileMetricsScannerOptions {
|
|
6
7
|
/** 省略时直接执行 `scc`;显式命令必须直接接受 adapter 拥有的 SCC 参数。 */
|
|
@@ -41,7 +42,7 @@ export interface FileMetricsFindingIdentity {
|
|
|
41
42
|
/** 一项 file-metrics finding 的声明式豁免;执行时仍会扫描并发布该 finding。 */
|
|
42
43
|
export type FileMetricsFindingWaiver = FindingWaiver<FileMetricsFindingIdentity>;
|
|
43
44
|
/** `fileMetrics(options?)` 接受并补齐默认值的公开策略。 */
|
|
44
|
-
export interface FileMetricsOptions {
|
|
45
|
+
export interface FileMetricsOptions<Id extends string = string> extends PackageCheckAuthoringOptions<Id> {
|
|
45
46
|
/** 省略时建立默认 `project` 区域;显式映射必须非空。 */
|
|
46
47
|
readonly codeAreas?: Readonly<Record<string, FileMetricsCodeAreaOptions>>;
|
|
47
48
|
/** 省略时为 `non-blocking`;区域可局部覆盖。 */
|
|
@@ -51,7 +52,7 @@ export interface FileMetricsOptions {
|
|
|
51
52
|
/** 省略时直接执行 `scc`;CLI 协议由 owning adapter 固定。 */
|
|
52
53
|
readonly scanner?: FileMetricsScannerOptions;
|
|
53
54
|
}
|
|
54
|
-
/** 构造函数生成并由 Check
|
|
55
|
+
/** 构造函数生成并由 Check preparation/execution 消费的完整 options。 */
|
|
55
56
|
export interface ResolvedFileMetricsOptions {
|
|
56
57
|
readonly codeAreas: Readonly<Record<string, ResolvedFileMetricsCodeAreaOptions>>;
|
|
57
58
|
readonly findingWaivers: readonly FileMetricsFindingWaiver[];
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import type { FileMetric } from "./measurement-model.ts";
|
|
2
2
|
import type { FileMetricsFindingIdentity, ResolvedFileMetricsCodeAreaOptions } from "./options.ts";
|
|
3
|
-
import type { MaterializedFindingWaiver } from "../../finding-waivers/reconciliation.ts";
|
|
3
|
+
import type { MaterializedFindingWaiver } from "../../package-tools/finding-waivers/reconciliation.ts";
|
|
4
4
|
import { type FindingWaiverAuditRecordData, type FindingWaiverRecordAudit } from "../code-quality-findings/finding-waiver-evidence.ts";
|
|
5
5
|
interface FileMetricsAreaPolicyContext {
|
|
6
6
|
readonly areaIdsByPath: ReadonlyMap<string, readonly string[]>;
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
/** SCC adapter 的私有 Windows argv 传输上限;不属于 scanner options。 */
|
|
2
|
+
export declare const SCC_BATCH_COMMAND_LINE_CEILING = 28000;
|
|
3
|
+
export type SccBatchPlan = {
|
|
4
|
+
readonly batches: readonly (readonly string[])[];
|
|
5
|
+
readonly ok: true;
|
|
6
|
+
} | {
|
|
7
|
+
readonly error: string;
|
|
8
|
+
readonly ok: false;
|
|
9
|
+
};
|
|
10
|
+
/**
|
|
11
|
+
* 返回 Windows command-line serialization 的保守 UTF-16 code-unit 上界。
|
|
12
|
+
*
|
|
13
|
+
* 每个 argument 都按最多双倍转义并保留一对引号,arguments 之间保留一个分隔符,
|
|
14
|
+
* 最后保留 CreateProcessW 所需的终止 NUL。
|
|
15
|
+
*/
|
|
16
|
+
export declare function estimateSccCommandLineCodeUnits(argumentsToEstimate: readonly string[]): number;
|
|
17
|
+
/** 将已批准的 exact paths 按固定 SCC protocol 稳定地切为可传输 batches。 */
|
|
18
|
+
export declare function planSccBatches(executable: string, fixedArguments: readonly string[], includePaths: readonly string[], ceiling?: number): SccBatchPlan;
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
export declare const SCC_LOGICAL_SCAN_TIMEOUT_MS = 300000;
|
|
2
|
+
export interface SccLogicalScanResources {
|
|
3
|
+
readonly deadlineNanoseconds: bigint;
|
|
4
|
+
stderrRemainingBytes: number;
|
|
5
|
+
stdoutRemainingBytes: number;
|
|
6
|
+
}
|
|
7
|
+
/** 为一次 logical SCC scan 建立共享 deadline 与 stdout/stderr 预算。 */
|
|
8
|
+
export declare function beginSccLogicalScanResources(startedNanoseconds: bigint, timeoutMilliseconds?: number, outputBudgetBytes?: number): SccLogicalScanResources;
|
|
9
|
+
/** 计算下一个 batch 可使用的完整毫秒数;deadline 到期时不再启动 process。 */
|
|
10
|
+
export declare function remainingSccBatchTimeoutMs(resources: SccLogicalScanResources, nowNanoseconds: bigint): number | null;
|
|
11
|
+
/** 以两个 stream 中较小的余量限制本次 process 的 maxBuffer。 */
|
|
12
|
+
export declare function remainingSccBatchMaxBuffer(resources: SccLogicalScanResources): number | null;
|
|
13
|
+
/** 记录一次 process 的 UTF-8 output;任一 stream 超出完整 logical-scan 预算即失败。 */
|
|
14
|
+
export declare function consumeSccProcessOutput(resources: SccLogicalScanResources, stdout: string, stderr: string): boolean;
|
|
@@ -61,9 +61,9 @@ export interface LizardExtension {
|
|
|
61
61
|
}
|
|
62
62
|
/** Python resolves extension class attributes and static methods through instances. */
|
|
63
63
|
export interface LizardExtensionClassMetadata {
|
|
64
|
-
readonly ordering_index?: number;
|
|
65
|
-
readonly FUNCTION_INFO?: FunctionInfoDefinitions;
|
|
66
|
-
readonly silent_all_others?: boolean;
|
|
64
|
+
readonly ordering_index?: number | undefined;
|
|
65
|
+
readonly FUNCTION_INFO?: FunctionInfoDefinitions | undefined;
|
|
66
|
+
readonly silent_all_others?: boolean | undefined;
|
|
67
67
|
}
|
|
68
68
|
/** A directly registered class is an opaque descriptor, not a constructor to invoke at load time. */
|
|
69
69
|
export type LizardExtensionConstructor = LizardExtensionClassMetadata & {
|
|
@@ -1,11 +1,14 @@
|
|
|
1
1
|
import { type TypedCheckWithOptions } from "../../check/check.ts";
|
|
2
|
+
import { type PackageCheckIdentityInput } from "../check-authoring.ts";
|
|
2
3
|
import { parseFunctionMetricsData } from "./final-data.ts";
|
|
3
4
|
import type { FunctionMetricsOptions, ResolvedFunctionMetricsOptions } from "./options.ts";
|
|
4
5
|
/**
|
|
5
6
|
* 使用可省略的区域、阈值与 finding policy 构造一个完整 function-metrics Check。
|
|
6
7
|
*
|
|
7
8
|
* @param options - 省略字段由 package 补齐;显式 files 数组完整替换对应字段的默认数组。
|
|
8
|
-
* @returns 固定 `function-metrics` identity、完整冻结 options、
|
|
9
|
+
* @returns 固定 `function-metrics` identity、完整冻结 options、preparation 与 execution。
|
|
9
10
|
* @throws {TypeError} input 含未知字段、空 area、非法 finding policy/waiver 或非法 limit 时抛出。
|
|
10
11
|
*/
|
|
11
|
-
export declare function functionMetrics(options?: FunctionMetricsOptions): TypedCheckWithOptions<"function-metrics", ResolvedFunctionMetricsOptions, typeof parseFunctionMetricsData>;
|
|
12
|
+
export declare function functionMetrics(options?: FunctionMetricsOptions<"function-metrics">): TypedCheckWithOptions<"function-metrics", ResolvedFunctionMetricsOptions, typeof parseFunctionMetricsData>;
|
|
13
|
+
export declare function functionMetrics<const Id extends string>(options: FunctionMetricsOptions<Id> & PackageCheckIdentityInput<Id>): TypedCheckWithOptions<Id, ResolvedFunctionMetricsOptions, typeof parseFunctionMetricsData>;
|
|
14
|
+
export declare function functionMetrics(options: FunctionMetricsOptions): TypedCheckWithOptions<string, ResolvedFunctionMetricsOptions, typeof parseFunctionMetricsData>;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import type { CheckMessage } from "../../check/check.ts";
|
|
2
|
-
import type { FindingWaiverReconciliation } from "../../finding-waivers/reconciliation.ts";
|
|
2
|
+
import type { FindingWaiverReconciliation } from "../../package-tools/finding-waivers/reconciliation.ts";
|
|
3
3
|
import { type FunctionInputRejectedCandidate, type FunctionRecordCandidate } from "./records.ts";
|
|
4
4
|
type FunctionFindingCandidate = FunctionRecordCandidate | FunctionInputRejectedCandidate;
|
|
5
5
|
/** Projects metric and rejected-input Records into bounded terminal summaries. */
|
|
@@ -1,6 +1,7 @@
|
|
|
1
|
+
import type { PackageCheckAuthoringOptions } from "../check-authoring.ts";
|
|
1
2
|
import type { ProjectFileSelection, ProjectFileSelectionOptions } from "../project-files/configuration.ts";
|
|
2
3
|
import type { FindingPolicy } from "../code-quality-findings/policy.ts";
|
|
3
|
-
import type { FindingWaiver } from "../../finding-waivers/reconciliation.ts";
|
|
4
|
+
import type { FindingWaiver } from "../../package-tools/finding-waivers/reconciliation.ts";
|
|
4
5
|
/** `functionMetrics` 构造函数可省略的文件选择策略。 */
|
|
5
6
|
export type FunctionMetricsFileOptions = ProjectFileSelectionOptions;
|
|
6
7
|
/** `functionMetrics` 构造函数可省略的函数指标上限。 */
|
|
@@ -51,7 +52,7 @@ export interface FunctionMetricsFindingIdentity {
|
|
|
51
52
|
/** 一项 function-metrics metric finding 的声明式豁免。 */
|
|
52
53
|
export type FunctionMetricsFindingWaiver = FindingWaiver<FunctionMetricsFindingIdentity>;
|
|
53
54
|
/** `functionMetrics(options?)` 接受并补齐默认值的公开策略。 */
|
|
54
|
-
export interface FunctionMetricsOptions {
|
|
55
|
+
export interface FunctionMetricsOptions<Id extends string = string> extends PackageCheckAuthoringOptions<Id> {
|
|
55
56
|
/** 省略时建立默认 `project` 区域;显式映射必须非空,且每个区域必须声明 `files`。 */
|
|
56
57
|
readonly codeAreas?: Readonly<Record<string, FunctionMetricsCodeAreaOptions>>;
|
|
57
58
|
/** 省略时为 `non-blocking`;区域可局部覆盖。 */
|
|
@@ -59,7 +60,7 @@ export interface FunctionMetricsOptions {
|
|
|
59
60
|
/** 省略时没有豁免;只匹配 normal metric finding,不匹配 input rejection。 */
|
|
60
61
|
readonly findingWaivers?: readonly FunctionMetricsFindingWaiver[];
|
|
61
62
|
}
|
|
62
|
-
/** 构造函数生成并由 Check
|
|
63
|
+
/** 构造函数生成并由 Check preparation/execution 消费的完整 options。 */
|
|
63
64
|
export interface ResolvedFunctionMetricsOptions {
|
|
64
65
|
readonly codeAreas: Readonly<Record<string, ResolvedFunctionMetricsCodeAreaOptions>>;
|
|
65
66
|
readonly findingWaivers: readonly FunctionMetricsFindingWaiver[];
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { type FunctionMetricAnalysis } from "./analysis.ts";
|
|
2
|
-
import type { MaterializedFindingWaiver } from "../../finding-waivers/reconciliation.ts";
|
|
2
|
+
import type { MaterializedFindingWaiver } from "../../package-tools/finding-waivers/reconciliation.ts";
|
|
3
3
|
import { type FindingWaiverAuditRecordData, type FindingWaiverRecordAudit } from "../code-quality-findings/finding-waiver-evidence.ts";
|
|
4
4
|
import type { FunctionMetricsAreaInput } from "./measurement-model.ts";
|
|
5
5
|
import type { FunctionMetricsFindingIdentity, FunctionMetricsFindingMetric } from "./options.ts";
|
|
@@ -5,6 +5,8 @@ export type GitCommitOptions = {
|
|
|
5
5
|
readonly sha: string;
|
|
6
6
|
};
|
|
7
7
|
export declare function runGit(options: RunGitOptions): ProcessResult;
|
|
8
|
+
/** Renders the actionable failure evidence shared by Git operation boundaries. */
|
|
9
|
+
export declare function gitFailureDetail(result: ProcessResult): string;
|
|
8
10
|
export declare function gitHeadSha(cwd: string): string | null;
|
|
9
11
|
export declare function gitCommitDate(options: GitCommitOptions): string | null;
|
|
10
12
|
export declare function gitCommitTitle(options: GitCommitOptions): string | null;
|
|
@@ -1,3 +1 @@
|
|
|
1
|
-
export
|
|
2
|
-
/** 判断值是否已是跨平台可稳定发布的 project-root-relative slash path。 */
|
|
3
|
-
export declare function isNormalizedProjectRelativePath(value: unknown): value is string;
|
|
1
|
+
export { isNormalizedProjectRelativePath, toSlashPath } from "../../data-boundary/project-path.ts";
|