@zxyycom/vibe-check 0.0.1 → 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 +79 -75
- 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 +2 -2
- 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/fact-validation.mjs +17 -23
- package/dist/esm/check-settlement/fact-validation.mjs.map +1 -1
- package/dist/esm/check-settlement/facts.mjs.map +1 -1
- package/dist/esm/check-settlement/outcome-normalization.mjs +9 -19
- package/dist/esm/check-settlement/outcome-normalization.mjs.map +1 -1
- package/dist/esm/check-settlement/reason-shape.mjs +12 -0
- package/dist/esm/check-settlement/reason-shape.mjs.map +1 -0
- package/dist/esm/check-settlement/record-store.mjs +14 -17
- package/dist/esm/check-settlement/record-store.mjs.map +1 -1
- package/dist/esm/check-settlement/session.mjs +8 -2
- package/dist/esm/check-settlement/session.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 +43 -3
- 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/data-boundary/value-shapes.mjs +9 -0
- package/dist/esm/data-boundary/value-shapes.mjs.map +1 -1
- package/dist/esm/index.mjs +16 -2
- package/dist/esm/index.mjs.map +1 -1
- package/dist/esm/machine-output/v4/atomic-publication.mjs +5 -16
- 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 +40 -0
- package/dist/esm/package-checks/code-quality-findings/finding-waiver-authoring.mjs.map +1 -0
- package/dist/esm/package-checks/code-quality-findings/finding-waiver-evidence.mjs +48 -0
- package/dist/esm/package-checks/code-quality-findings/finding-waiver-evidence.mjs.map +1 -0
- package/dist/esm/package-checks/code-quality-findings/policy.mjs +20 -0
- package/dist/esm/package-checks/code-quality-findings/policy.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/area-policy.mjs +15 -7
- package/dist/esm/package-checks/duplicate-detection/area-policy.mjs.map +1 -1
- package/dist/esm/package-checks/duplicate-detection/cache/identity.mjs +1 -1
- package/dist/esm/package-checks/duplicate-detection/cache/identity.mjs.map +1 -1
- package/dist/esm/package-checks/duplicate-detection/default-check.mjs +10 -12
- package/dist/esm/package-checks/duplicate-detection/default-check.mjs.map +1 -1
- package/dist/esm/package-checks/duplicate-detection/execution.mjs +44 -20
- package/dist/esm/package-checks/duplicate-detection/execution.mjs.map +1 -1
- package/dist/esm/package-checks/duplicate-detection/finding-messages.mjs +59 -0
- package/dist/esm/package-checks/duplicate-detection/finding-messages.mjs.map +1 -0
- package/dist/esm/package-checks/duplicate-detection/finding-waiver-identity.mjs +55 -0
- package/dist/esm/package-checks/duplicate-detection/finding-waiver-identity.mjs.map +1 -0
- package/dist/esm/package-checks/duplicate-detection/jscpd/availability.mjs +2 -2
- package/dist/esm/package-checks/duplicate-detection/jscpd/availability.mjs.map +1 -1
- package/dist/esm/package-checks/duplicate-detection/jscpd/command-resolution.mjs +1 -1
- package/dist/esm/package-checks/duplicate-detection/jscpd/command-resolution.mjs.map +1 -1
- package/dist/esm/package-checks/duplicate-detection/jscpd/json-report.mjs +15 -5
- package/dist/esm/package-checks/duplicate-detection/jscpd/json-report.mjs.map +1 -1
- package/dist/esm/package-checks/duplicate-detection/jscpd/scanner.mjs +5 -4
- package/dist/esm/package-checks/duplicate-detection/jscpd/scanner.mjs.map +1 -1
- package/dist/esm/package-checks/duplicate-detection/options-resolution.mjs +22 -47
- package/dist/esm/package-checks/duplicate-detection/options-resolution.mjs.map +1 -1
- package/dist/esm/package-checks/duplicate-detection/options-validation.mjs +20 -25
- package/dist/esm/package-checks/duplicate-detection/options-validation.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 +27 -6
- 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 +11 -20
- package/dist/esm/package-checks/file-metrics/execution.mjs.map +1 -1
- package/dist/esm/package-checks/file-metrics/finding-messages.mjs +22 -0
- package/dist/esm/package-checks/file-metrics/finding-messages.mjs.map +1 -0
- package/dist/esm/package-checks/file-metrics/options-resolution.mjs +11 -43
- package/dist/esm/package-checks/file-metrics/options-resolution.mjs.map +1 -1
- package/dist/esm/package-checks/file-metrics/options-validation.mjs +15 -25
- package/dist/esm/package-checks/file-metrics/options-validation.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 +2 -9
- package/dist/esm/package-checks/file-metrics/records.mjs.map +1 -1
- package/dist/esm/package-checks/file-metrics/scc/availability.mjs +2 -2
- 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/parser.mjs +4 -4
- package/dist/esm/package-checks/file-metrics/scc/parser.mjs.map +1 -1
- package/dist/esm/package-checks/file-metrics/scc/scanner.mjs +104 -31
- package/dist/esm/package-checks/file-metrics/scc/scanner.mjs.map +1 -1
- package/dist/esm/package-checks/function-metrics/analysis.mjs +61 -15
- package/dist/esm/package-checks/function-metrics/analysis.mjs.map +1 -1
- package/dist/esm/package-checks/function-metrics/analyzer/analysis-context.mjs +550 -0
- package/dist/esm/package-checks/function-metrics/analyzer/analysis-context.mjs.map +1 -0
- package/dist/esm/package-checks/function-metrics/analyzer/analysis-model.mjs +332 -0
- package/dist/esm/package-checks/function-metrics/analyzer/analysis-model.mjs.map +1 -0
- package/dist/esm/package-checks/function-metrics/analyzer/contracts.mjs +7 -0
- package/dist/esm/package-checks/function-metrics/analyzer/contracts.mjs.map +1 -0
- package/dist/esm/package-checks/function-metrics/analyzer/extensions/lizardcomplextags.mjs +22 -0
- package/dist/esm/package-checks/function-metrics/analyzer/extensions/lizardcomplextags.mjs.map +1 -0
- package/dist/esm/package-checks/function-metrics/analyzer/extensions/lizardnd.mjs +113 -0
- package/dist/esm/package-checks/function-metrics/analyzer/extensions/lizardnd.mjs.map +1 -0
- package/dist/esm/package-checks/function-metrics/analyzer/extensions/protocol.mjs +180 -0
- package/dist/esm/package-checks/function-metrics/analyzer/extensions/protocol.mjs.map +1 -0
- package/dist/esm/package-checks/function-metrics/analyzer/extensions/registry.mjs +121 -0
- package/dist/esm/package-checks/function-metrics/analyzer/extensions/registry.mjs.map +1 -0
- package/dist/esm/package-checks/function-metrics/analyzer/pipeline.mjs +218 -0
- package/dist/esm/package-checks/function-metrics/analyzer/pipeline.mjs.map +1 -0
- package/dist/esm/package-checks/function-metrics/analyzer/port-facade.mjs +96 -0
- package/dist/esm/package-checks/function-metrics/analyzer/port-facade.mjs.map +1 -0
- package/dist/esm/package-checks/function-metrics/analyzer/reader-registry.mjs +76 -0
- package/dist/esm/package-checks/function-metrics/analyzer/reader-registry.mjs.map +1 -0
- package/dist/esm/package-checks/function-metrics/analyzer/readers/csharp.mjs +88 -0
- package/dist/esm/package-checks/function-metrics/analyzer/readers/csharp.mjs.map +1 -0
- package/dist/esm/package-checks/function-metrics/analyzer/readers/erlang.mjs +466 -0
- package/dist/esm/package-checks/function-metrics/analyzer/readers/erlang.mjs.map +1 -0
- package/dist/esm/package-checks/function-metrics/analyzer/readers/fortran.mjs +289 -0
- package/dist/esm/package-checks/function-metrics/analyzer/readers/fortran.mjs.map +1 -0
- package/dist/esm/package-checks/function-metrics/analyzer/readers/gdscript.mjs +38 -0
- package/dist/esm/package-checks/function-metrics/analyzer/readers/gdscript.mjs.map +1 -0
- package/dist/esm/package-checks/function-metrics/analyzer/readers/go.mjs +44 -0
- package/dist/esm/package-checks/function-metrics/analyzer/readers/go.mjs.map +1 -0
- package/dist/esm/package-checks/function-metrics/analyzer/readers/java-body-states.mjs +113 -0
- package/dist/esm/package-checks/function-metrics/analyzer/readers/java-body-states.mjs.map +1 -0
- package/dist/esm/package-checks/function-metrics/analyzer/readers/java.mjs +247 -0
- package/dist/esm/package-checks/function-metrics/analyzer/readers/java.mjs.map +1 -0
- package/dist/esm/package-checks/function-metrics/analyzer/readers/javascript.mjs +16 -0
- package/dist/esm/package-checks/function-metrics/analyzer/readers/javascript.mjs.map +1 -0
- package/dist/esm/package-checks/function-metrics/analyzer/readers/kotlin.mjs +103 -0
- package/dist/esm/package-checks/function-metrics/analyzer/readers/kotlin.mjs.map +1 -0
- package/dist/esm/package-checks/function-metrics/analyzer/readers/lua.mjs +55 -0
- package/dist/esm/package-checks/function-metrics/analyzer/readers/lua.mjs.map +1 -0
- package/dist/esm/package-checks/function-metrics/analyzer/readers/objc.mjs +106 -0
- package/dist/esm/package-checks/function-metrics/analyzer/readers/objc.mjs.map +1 -0
- package/dist/esm/package-checks/function-metrics/analyzer/readers/perl.mjs +367 -0
- package/dist/esm/package-checks/function-metrics/analyzer/readers/perl.mjs.map +1 -0
- package/dist/esm/package-checks/function-metrics/analyzer/readers/php-states.mjs +265 -0
- package/dist/esm/package-checks/function-metrics/analyzer/readers/php-states.mjs.map +1 -0
- package/dist/esm/package-checks/function-metrics/analyzer/readers/php.mjs +53 -0
- package/dist/esm/package-checks/function-metrics/analyzer/readers/php.mjs.map +1 -0
- package/dist/esm/package-checks/function-metrics/analyzer/readers/plsql.mjs +306 -0
- package/dist/esm/package-checks/function-metrics/analyzer/readers/plsql.mjs.map +1 -0
- package/dist/esm/package-checks/function-metrics/analyzer/readers/python.mjs +404 -0
- package/dist/esm/package-checks/function-metrics/analyzer/readers/python.mjs.map +1 -0
- package/dist/esm/package-checks/function-metrics/analyzer/readers/r.mjs +216 -0
- package/dist/esm/package-checks/function-metrics/analyzer/readers/r.mjs.map +1 -0
- package/dist/esm/package-checks/function-metrics/analyzer/readers/ruby.mjs +75 -0
- package/dist/esm/package-checks/function-metrics/analyzer/readers/ruby.mjs.map +1 -0
- package/dist/esm/package-checks/function-metrics/analyzer/readers/rust.mjs +32 -0
- package/dist/esm/package-checks/function-metrics/analyzer/readers/rust.mjs.map +1 -0
- package/dist/esm/package-checks/function-metrics/analyzer/readers/scala.mjs +47 -0
- package/dist/esm/package-checks/function-metrics/analyzer/readers/scala.mjs.map +1 -0
- package/dist/esm/package-checks/function-metrics/analyzer/readers/solidity.mjs +22 -0
- package/dist/esm/package-checks/function-metrics/analyzer/readers/solidity.mjs.map +1 -0
- package/dist/esm/package-checks/function-metrics/analyzer/readers/st.mjs +142 -0
- package/dist/esm/package-checks/function-metrics/analyzer/readers/st.mjs.map +1 -0
- package/dist/esm/package-checks/function-metrics/analyzer/readers/swift.mjs +94 -0
- package/dist/esm/package-checks/function-metrics/analyzer/readers/swift.mjs.map +1 -0
- package/dist/esm/package-checks/function-metrics/analyzer/readers/tsx.mjs +149 -0
- package/dist/esm/package-checks/function-metrics/analyzer/readers/tsx.mjs.map +1 -0
- package/dist/esm/package-checks/function-metrics/analyzer/readers/ttcn.mjs +85 -0
- package/dist/esm/package-checks/function-metrics/analyzer/readers/ttcn.mjs.map +1 -0
- package/dist/esm/package-checks/function-metrics/analyzer/readers/typescript.mjs +612 -0
- package/dist/esm/package-checks/function-metrics/analyzer/readers/typescript.mjs.map +1 -0
- package/dist/esm/package-checks/function-metrics/analyzer/readers/vue.mjs +31 -0
- package/dist/esm/package-checks/function-metrics/analyzer/readers/vue.mjs.map +1 -0
- package/dist/esm/package-checks/function-metrics/analyzer/readers/zig.mjs +25 -0
- package/dist/esm/package-checks/function-metrics/analyzer/readers/zig.mjs.map +1 -0
- package/dist/esm/package-checks/function-metrics/analyzer/shared/clike.mjs +492 -0
- package/dist/esm/package-checks/function-metrics/analyzer/shared/clike.mjs.map +1 -0
- package/dist/esm/package-checks/function-metrics/analyzer/shared/code-reader.mjs +544 -0
- package/dist/esm/package-checks/function-metrics/analyzer/shared/code-reader.mjs.map +1 -0
- package/dist/esm/package-checks/function-metrics/analyzer/shared/golike.mjs +141 -0
- package/dist/esm/package-checks/function-metrics/analyzer/shared/golike.mjs.map +1 -0
- package/dist/esm/package-checks/function-metrics/analyzer/shared/js-style-regex.mjs +69 -0
- package/dist/esm/package-checks/function-metrics/analyzer/shared/js-style-regex.mjs.map +1 -0
- package/dist/esm/package-checks/function-metrics/analyzer/shared/rubylike.mjs +154 -0
- package/dist/esm/package-checks/function-metrics/analyzer/shared/rubylike.mjs.map +1 -0
- package/dist/esm/package-checks/function-metrics/analyzer/shared/script-language.mjs +36 -0
- package/dist/esm/package-checks/function-metrics/analyzer/shared/script-language.mjs.map +1 -0
- package/dist/esm/package-checks/function-metrics/analyzer-adapter.mjs +56 -0
- package/dist/esm/package-checks/function-metrics/analyzer-adapter.mjs.map +1 -0
- package/dist/esm/package-checks/function-metrics/analyzer-worker-contract.mjs +2 -0
- package/dist/esm/package-checks/function-metrics/analyzer-worker-contract.mjs.map +1 -0
- package/dist/esm/package-checks/function-metrics/analyzer-worker-port.mjs +120 -0
- package/dist/esm/package-checks/function-metrics/analyzer-worker-port.mjs.map +1 -0
- package/dist/esm/package-checks/function-metrics/analyzer-worker.mjs +24 -0
- package/dist/esm/package-checks/function-metrics/analyzer-worker.mjs.map +1 -0
- package/dist/esm/package-checks/function-metrics/constructor.mjs +10 -12
- package/dist/esm/package-checks/function-metrics/constructor.mjs.map +1 -1
- package/dist/esm/package-checks/function-metrics/execution.mjs +51 -35
- package/dist/esm/package-checks/function-metrics/execution.mjs.map +1 -1
- package/dist/esm/package-checks/function-metrics/finding-messages.mjs +75 -0
- package/dist/esm/package-checks/function-metrics/finding-messages.mjs.map +1 -0
- package/dist/esm/package-checks/function-metrics/finding-waiver-identity.mjs +28 -0
- package/dist/esm/package-checks/function-metrics/finding-waiver-identity.mjs.map +1 -0
- package/dist/esm/package-checks/function-metrics/measurement-model.mjs.map +1 -1
- package/dist/esm/package-checks/function-metrics/measurement.mjs +163 -26
- package/dist/esm/package-checks/function-metrics/measurement.mjs.map +1 -1
- package/dist/esm/package-checks/function-metrics/options-resolution.mjs +30 -63
- package/dist/esm/package-checks/function-metrics/options-resolution.mjs.map +1 -1
- package/dist/esm/package-checks/function-metrics/options-validation.mjs +27 -32
- package/dist/esm/package-checks/function-metrics/options-validation.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 +31 -1
- package/dist/esm/package-checks/function-metrics/records.mjs.map +1 -1
- package/dist/esm/package-checks/function-metrics/target-files.mjs +6 -67
- package/dist/esm/package-checks/function-metrics/target-files.mjs.map +1 -1
- package/dist/esm/package-checks/{function-metrics/lizard → host-environment}/csv.mjs +1 -0
- package/dist/esm/package-checks/host-environment/csv.mjs.map +1 -0
- package/dist/esm/package-checks/host-environment/git.mjs +12 -1
- 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/host-environment/process.mjs +5 -0
- package/dist/esm/package-checks/host-environment/process.mjs.map +1 -0
- 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/final-data.mjs.map +1 -1
- package/dist/esm/package-checks/json-schema-validation/options-validation.mjs +15 -17
- package/dist/esm/package-checks/json-schema-validation/options-validation.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/final-data.mjs.map +1 -1
- package/dist/esm/package-checks/json-validation/options-validation.mjs +4 -10
- package/dist/esm/package-checks/json-validation/options-validation.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/final-data.mjs.map +1 -1
- 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 -27
- package/dist/esm/package-checks/markdown-link-validation/default-check.mjs.map +1 -1
- package/dist/esm/package-checks/markdown-link-validation/execution.mjs +27 -24
- package/dist/esm/package-checks/markdown-link-validation/execution.mjs.map +1 -1
- package/dist/esm/package-checks/markdown-link-validation/filesystem-probes.mjs +82 -53
- package/dist/esm/package-checks/markdown-link-validation/filesystem-probes.mjs.map +1 -1
- package/dist/esm/package-checks/markdown-link-validation/final-data.mjs.map +1 -1
- package/dist/esm/package-checks/markdown-link-validation/finding-messages.mjs +36 -0
- package/dist/esm/package-checks/markdown-link-validation/finding-messages.mjs.map +1 -0
- package/dist/esm/package-checks/markdown-link-validation/local-resolution.mjs.map +1 -1
- package/dist/esm/package-checks/markdown-link-validation/local-resolver.mjs +2 -2
- package/dist/esm/package-checks/markdown-link-validation/local-resolver.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 +10 -3
- 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 +12 -11
- 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 +184 -0
- package/dist/esm/package-checks/markdown-link-validation/parse-facts-cache-payload.mjs.map +1 -0
- package/dist/esm/package-checks/markdown-link-validation/parse-facts-cache.mjs +131 -0
- package/dist/esm/package-checks/markdown-link-validation/parse-facts-cache.mjs.map +1 -0
- package/dist/esm/package-checks/markdown-link-validation/resolver-engine.mjs +58 -57
- package/dist/esm/package-checks/markdown-link-validation/resolver-engine.mjs.map +1 -1
- package/dist/esm/package-checks/markdown-link-validation/source-reader.mjs +54 -0
- package/dist/esm/package-checks/markdown-link-validation/source-reader.mjs.map +1 -0
- package/dist/esm/package-checks/markdown-link-validation/unavailable-reasons.mjs +16 -0
- package/dist/esm/package-checks/markdown-link-validation/unavailable-reasons.mjs.map +1 -0
- 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 +24 -20
- package/dist/esm/package-checks/project-files/collection.mjs.map +1 -1
- package/dist/esm/package-checks/project-files/configuration.mjs +3 -11
- package/dist/esm/package-checks/project-files/configuration.mjs.map +1 -1
- package/dist/esm/package-checks/project-files/gitlink-revision.mjs +3 -6
- package/dist/esm/package-checks/project-files/gitlink-revision.mjs.map +1 -1
- package/dist/esm/package-checks/project-files/gitlink-worktree.mjs +23 -7
- package/dist/esm/package-checks/project-files/gitlink-worktree.mjs.map +1 -1
- package/dist/esm/package-checks/project-files/public-collection.mjs +56 -0
- package/dist/esm/package-checks/project-files/public-collection.mjs.map +1 -0
- 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 +12 -16
- package/dist/esm/package-checks/project-files/revision-worktree-files.mjs.map +1 -1
- package/dist/esm/package-checks/secret-detection/classification.mjs +15 -0
- package/dist/esm/package-checks/secret-detection/classification.mjs.map +1 -0
- package/dist/esm/package-checks/secret-detection/default-check.mjs +37 -0
- package/dist/esm/package-checks/secret-detection/default-check.mjs.map +1 -0
- package/dist/esm/package-checks/secret-detection/execution.mjs +172 -0
- package/dist/esm/package-checks/secret-detection/execution.mjs.map +1 -0
- package/dist/esm/package-checks/secret-detection/final-data.mjs +33 -0
- package/dist/esm/package-checks/secret-detection/final-data.mjs.map +1 -0
- package/dist/esm/package-checks/secret-detection/finding-waiver-identity.mjs +30 -0
- package/dist/esm/package-checks/secret-detection/finding-waiver-identity.mjs.map +1 -0
- package/dist/esm/package-checks/secret-detection/input-preparation.mjs +192 -0
- package/dist/esm/package-checks/secret-detection/input-preparation.mjs.map +1 -0
- package/dist/esm/package-checks/secret-detection/options-resolution.mjs +40 -0
- package/dist/esm/package-checks/secret-detection/options-resolution.mjs.map +1 -0
- package/dist/esm/package-checks/secret-detection/options-validation.mjs +22 -0
- package/dist/esm/package-checks/secret-detection/options-validation.mjs.map +1 -0
- package/dist/esm/package-checks/secret-detection/options.mjs +2 -0
- package/dist/esm/package-checks/secret-detection/options.mjs.map +1 -0
- package/dist/esm/package-checks/secret-detection/records.mjs +31 -0
- package/dist/esm/package-checks/secret-detection/records.mjs.map +1 -0
- package/dist/esm/package-checks/secret-detection/secretlint/adapter.mjs +84 -0
- package/dist/esm/package-checks/secret-detection/secretlint/adapter.mjs.map +1 -0
- 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/package-tools/cache/cache-json-by-key.mjs +188 -0
- package/dist/esm/package-tools/cache/cache-json-by-key.mjs.map +1 -0
- package/dist/esm/package-tools/finding-presentation/finding-presentation.mjs +40 -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 +46 -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 +56 -0
- package/dist/esm/package-tools/learned-critical-path/duration-model/bounded-history.mjs.map +1 -0
- package/dist/esm/package-tools/learned-critical-path/duration-model/prediction.mjs +122 -0
- package/dist/esm/package-tools/learned-critical-path/duration-model/prediction.mjs.map +1 -0
- package/dist/esm/package-tools/learned-critical-path/duration-model/preparation.mjs +43 -0
- 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 +109 -0
- package/dist/esm/package-tools/learned-critical-path/duration-model/recording.mjs.map +1 -0
- package/dist/esm/package-tools/learned-critical-path/duration-model/storage.mjs +187 -0
- package/dist/esm/package-tools/learned-critical-path/duration-model/storage.mjs.map +1 -0
- package/dist/esm/package-tools/learned-critical-path/selection-layers.mjs +27 -0
- 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 +55 -0
- package/dist/esm/package-tools/learned-critical-path/static-decision.mjs.map +1 -0
- package/dist/esm/package-tools/learned-critical-path/strategy.mjs +179 -0
- package/dist/esm/package-tools/learned-critical-path/strategy.mjs.map +1 -0
- package/dist/esm/project-definition/check-tree/authoring.mjs +19 -176
- package/dist/esm/project-definition/check-tree/authoring.mjs.map +1 -1
- package/dist/esm/project-definition/check-tree/check-fields-authoring.mjs +184 -0
- package/dist/esm/project-definition/check-tree/check-fields-authoring.mjs.map +1 -0
- package/dist/esm/project-definition/check-tree/collection-authoring.mjs +16 -0
- package/dist/esm/project-definition/check-tree/collection-authoring.mjs.map +1 -0
- 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 +22 -9
- package/dist/esm/project-definition/check-tree/materialization.mjs.map +1 -1
- package/dist/esm/project-definition/check-tree/resolution.mjs +52 -19
- package/dist/esm/project-definition/check-tree/resolution.mjs.map +1 -1
- package/dist/esm/project-definition/check-tree/scheduling-authoring.mjs +73 -0
- package/dist/esm/project-definition/check-tree/scheduling-authoring.mjs.map +1 -0
- package/dist/esm/project-definition/declarative-snapshot.mjs +74 -0
- package/dist/esm/project-definition/declarative-snapshot.mjs.map +1 -0
- package/dist/esm/project-definition/output-defaults.mjs +18 -1
- package/dist/esm/project-definition/output-defaults.mjs.map +1 -1
- package/dist/esm/project-definition/output-validation.mjs +15 -15
- package/dist/esm/project-definition/output-validation.mjs.map +1 -1
- package/dist/esm/project-definition/progress-rendering-output.mjs +52 -0
- package/dist/esm/project-definition/progress-rendering-output.mjs.map +1 -0
- 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 +132 -16
- package/dist/esm/project-definition/project-definition-validation.mjs.map +1 -1
- package/dist/esm/project-definition/project-definition.mjs +62 -50
- package/dist/esm/project-definition/project-definition.mjs.map +1 -1
- package/dist/esm/project-definition/resource-unit-mapping.mjs +21 -0
- package/dist/esm/project-definition/resource-unit-mapping.mjs.map +1 -0
- package/dist/esm/project-definition/scheduler-policy.mjs +2 -0
- package/dist/esm/project-definition/scheduler-policy.mjs.map +1 -0
- package/dist/esm/project-run/admission-strategy-provider/custom-strategy-preparation.mjs +57 -0
- package/dist/esm/project-run/admission-strategy-provider/custom-strategy-preparation.mjs.map +1 -0
- package/dist/esm/project-run/admission-strategy-provider/prepared-admission-strategy.mjs +2 -0
- package/dist/esm/project-run/admission-strategy-provider/prepared-admission-strategy.mjs.map +1 -0
- package/dist/esm/project-run/admission-strategy-provider/provider.mjs +23 -0
- package/dist/esm/project-run/admission-strategy-provider/provider.mjs.map +1 -0
- package/dist/esm/project-run/aggregation.mjs +42 -57
- 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 +37 -9
- package/dist/esm/project-run/check-execution/callback.mjs.map +1 -1
- package/dist/esm/project-run/check-execution/console-capture.mjs +220 -0
- package/dist/esm/project-run/check-execution/console-capture.mjs.map +1 -0
- package/dist/esm/project-run/check-execution/dependencies.mjs +99 -6
- package/dist/esm/project-run/check-execution/dependencies.mjs.map +1 -1
- package/dist/esm/project-run/check-execution/execution-finalization.mjs +57 -14
- package/dist/esm/project-run/check-execution/execution-finalization.mjs.map +1 -1
- package/dist/esm/project-run/check-execution/execution-settlement.mjs +44 -19
- package/dist/esm/project-run/check-execution/execution-settlement.mjs.map +1 -1
- package/dist/esm/project-run/check-execution/flag-controls.mjs +95 -0
- package/dist/esm/project-run/check-execution/flag-controls.mjs.map +1 -0
- package/dist/esm/project-run/check-execution/lifecycle.mjs +2 -0
- package/dist/esm/project-run/check-execution/lifecycle.mjs.map +1 -0
- package/dist/esm/project-run/check-execution/messages.mjs +5 -0
- package/dist/esm/project-run/check-execution/messages.mjs.map +1 -1
- package/dist/esm/project-run/check-execution/plan.mjs +9 -5
- package/dist/esm/project-run/check-execution/plan.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/preparation.mjs +172 -0
- 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 +44 -139
- package/dist/esm/project-run/check-execution/resolved-checks.mjs.map +1 -1
- package/dist/esm/project-run/check-execution/resolved-execution-result.mjs +2 -0
- package/dist/esm/project-run/check-execution/resolved-execution-result.mjs.map +1 -0
- 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.mjs → completion/completion.mjs} +34 -39
- package/dist/esm/project-run/completion/completion.mjs.map +1 -0
- package/dist/esm/project-run/{machine-publication.mjs → completion/machine-publication.mjs} +1 -1
- package/dist/esm/project-run/completion/machine-publication.mjs.map +1 -0
- package/dist/esm/project-run/completion/result-resolver.mjs +36 -0
- package/dist/esm/project-run/completion/result-resolver.mjs.map +1 -0
- package/dist/esm/project-run/controls/contract.mjs.map +1 -1
- package/dist/esm/project-run/controls/outputs-override-validation.mjs +67 -47
- package/dist/esm/project-run/controls/outputs-override-validation.mjs.map +1 -1
- package/dist/esm/project-run/controls/validation-result.mjs.map +1 -1
- package/dist/esm/project-run/controls/validation.mjs +79 -62
- 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/logger.mjs +100 -161
- package/dist/esm/project-run/diagnostic-logging/logger.mjs.map +1 -1
- package/dist/esm/project-run/diagnostic-logging/observation-rendering.mjs +159 -0
- package/dist/esm/project-run/diagnostic-logging/observation-rendering.mjs.map +1 -0
- package/dist/esm/project-run/invocation/candidate.mjs +65 -0
- package/dist/esm/project-run/invocation/candidate.mjs.map +1 -0
- 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 +83 -0
- package/dist/esm/project-run/invocation/creation.mjs.map +1 -0
- 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/paths.mjs +77 -0
- package/dist/esm/project-run/invocation/paths.mjs.map +1 -0
- package/dist/esm/project-run/invocation/progress.mjs +30 -0
- package/dist/esm/project-run/invocation/progress.mjs.map +1 -0
- package/dist/esm/project-run/invocation/run.mjs +82 -0
- package/dist/esm/project-run/invocation/run.mjs.map +1 -0
- package/dist/esm/project-run/invocation/scheduler.mjs +64 -0
- package/dist/esm/project-run/invocation/scheduler.mjs.map +1 -0
- package/dist/esm/project-run/{output-configuration.mjs → outputs/configuration.mjs} +3 -2
- package/dist/esm/project-run/outputs/configuration.mjs.map +1 -0
- package/dist/esm/project-run/outputs/status.mjs +105 -0
- package/dist/esm/project-run/outputs/status.mjs.map +1 -0
- package/dist/esm/project-run/progress-rendering/presentation.mjs +140 -26
- package/dist/esm/project-run/progress-rendering/presentation.mjs.map +1 -1
- package/dist/esm/project-run/progress-rendering/renderer-formatting.mjs +118 -22
- package/dist/esm/project-run/progress-rendering/renderer-formatting.mjs.map +1 -1
- package/dist/esm/project-run/progress-rendering/renderer-lifecycle.mjs +50 -10
- package/dist/esm/project-run/progress-rendering/renderer-lifecycle.mjs.map +1 -1
- package/dist/esm/project-run/progress-rendering/renderer.mjs +11 -4
- package/dist/esm/project-run/progress-rendering/renderer.mjs.map +1 -1
- package/dist/esm/project-run/project-context.mjs +3 -2
- package/dist/esm/project-run/project-context.mjs.map +1 -1
- package/dist/esm/project-run/result.mjs +2 -0
- package/dist/esm/project-run/result.mjs.map +1 -1
- package/dist/esm/project-run/run.mjs +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 +171 -0
- package/dist/esm/project-run/task-scheduler/admission-core/compiled-graph.mjs.map +1 -0
- package/dist/esm/project-run/task-scheduler/admission-core/core.mjs +163 -0
- package/dist/esm/project-run/task-scheduler/admission-core/core.mjs.map +1 -0
- package/dist/esm/project-run/task-scheduler/admission-core/input.mjs +119 -0
- package/dist/esm/project-run/task-scheduler/admission-core/input.mjs.map +1 -0
- package/dist/esm/project-run/task-scheduler/admission-core/projection.mjs +124 -0
- package/dist/esm/project-run/task-scheduler/admission-core/projection.mjs.map +1 -0
- package/dist/esm/project-run/task-scheduler/admission-core/selection-index.mjs +99 -0
- package/dist/esm/project-run/task-scheduler/admission-core/selection-index.mjs.map +1 -0
- package/dist/esm/project-run/task-scheduler/admission-core/selection-query.mjs +196 -0
- package/dist/esm/project-run/task-scheduler/admission-core/selection-query.mjs.map +1 -0
- package/dist/esm/project-run/task-scheduler/admission-core/selection-seed.mjs +168 -0
- package/dist/esm/project-run/task-scheduler/admission-core/selection-seed.mjs.map +1 -0
- package/dist/esm/project-run/task-scheduler/admission-core/selection-transition.mjs +121 -0
- package/dist/esm/project-run/task-scheduler/admission-core/selection-transition.mjs.map +1 -0
- package/dist/esm/project-run/task-scheduler/admission-core/selection.mjs +65 -0
- package/dist/esm/project-run/task-scheduler/admission-core/selection.mjs.map +1 -0
- package/dist/esm/project-run/task-scheduler/admission-scope-layers.mjs +25 -0
- package/dist/esm/project-run/task-scheduler/admission-scope-layers.mjs.map +1 -0
- package/dist/esm/project-run/task-scheduler/admission-selection-policy.mjs +55 -0
- package/dist/esm/project-run/task-scheduler/admission-selection-policy.mjs.map +1 -0
- package/dist/esm/project-run/task-scheduler/custom-admission-policy.mjs +110 -0
- package/dist/esm/project-run/task-scheduler/custom-admission-policy.mjs.map +1 -0
- package/dist/esm/project-run/task-scheduler/execution-state.mjs +34 -5
- package/dist/esm/project-run/task-scheduler/execution-state.mjs.map +1 -1
- package/dist/esm/project-run/task-scheduler/forced-block-effect-replay.mjs +46 -0
- package/dist/esm/project-run/task-scheduler/forced-block-effect-replay.mjs.map +1 -0
- package/dist/esm/project-run/task-scheduler/graph-validation.mjs +54 -26
- package/dist/esm/project-run/task-scheduler/graph-validation.mjs.map +1 -1
- package/dist/esm/project-run/task-scheduler/graph.mjs +79 -3
- package/dist/esm/project-run/task-scheduler/graph.mjs.map +1 -1
- package/dist/esm/project-run/task-scheduler/measurement/diagnostics.mjs +211 -0
- package/dist/esm/project-run/task-scheduler/measurement/diagnostics.mjs.map +1 -0
- package/dist/esm/project-run/task-scheduler/measurement/integrals.mjs +116 -0
- package/dist/esm/project-run/task-scheduler/measurement/integrals.mjs.map +1 -0
- package/dist/esm/project-run/task-scheduler/measurement/policy.mjs +67 -0
- package/dist/esm/project-run/task-scheduler/measurement/policy.mjs.map +1 -0
- package/dist/esm/project-run/task-scheduler/measurement/summary.mjs +123 -0
- package/dist/esm/project-run/task-scheduler/measurement/summary.mjs.map +1 -0
- package/dist/esm/project-run/task-scheduler/measurement/timing.mjs +164 -0
- package/dist/esm/project-run/task-scheduler/measurement/timing.mjs.map +1 -0
- package/dist/esm/project-run/task-scheduler/scheduler-admission-decision.mjs +90 -62
- package/dist/esm/project-run/task-scheduler/scheduler-admission-decision.mjs.map +1 -1
- package/dist/esm/project-run/task-scheduler/scheduler-blocker-summary.mjs +20 -6
- package/dist/esm/project-run/task-scheduler/scheduler-blocker-summary.mjs.map +1 -1
- package/dist/esm/project-run/task-scheduler/scheduler-decision-inspection.mjs +5 -105
- package/dist/esm/project-run/task-scheduler/scheduler-decision-inspection.mjs.map +1 -1
- package/dist/esm/project-run/task-scheduler/scheduler-decision-model.mjs +0 -9
- package/dist/esm/project-run/task-scheduler/scheduler-decision-model.mjs.map +1 -1
- package/dist/esm/project-run/task-scheduler/scheduler-decision.mjs +48 -28
- package/dist/esm/project-run/task-scheduler/scheduler-decision.mjs.map +1 -1
- package/dist/esm/project-run/task-scheduler/scheduler-observation.mjs +91 -0
- package/dist/esm/project-run/task-scheduler/scheduler-observation.mjs.map +1 -0
- package/dist/esm/project-run/task-scheduler/scheduler-task-lifecycle.mjs +94 -0
- package/dist/esm/project-run/task-scheduler/scheduler-task-lifecycle.mjs.map +1 -0
- package/dist/esm/project-run/task-scheduler/scheduler-terminal-measurement.mjs +66 -0
- package/dist/esm/project-run/task-scheduler/scheduler-terminal-measurement.mjs.map +1 -0
- package/dist/esm/project-run/task-scheduler/scheduler.mjs +183 -114
- package/dist/esm/project-run/task-scheduler/scheduler.mjs.map +1 -1
- package/docs/api-mechanics.md +167 -121
- package/docs/changelog.md +300 -0
- package/docs/checks/duplicate-detection.md +131 -60
- package/docs/checks/file-metrics.md +68 -46
- package/docs/checks/function-metrics.md +119 -163
- package/docs/checks/json-schema-validation.md +65 -37
- package/docs/checks/json-validation.md +59 -27
- package/docs/checks/maintenance-reminders.md +68 -32
- package/docs/checks/markdown-link-validation.md +104 -56
- package/docs/checks/markdown-lint.md +167 -0
- package/docs/checks/secret-detection.md +153 -0
- package/docs/examples/artifacts/mixed-outcomes/definition.ts +14 -14
- package/docs/guides/building-project-gate.md +706 -0
- package/docs/guides/cache-results.md +63 -0
- package/docs/guides/callbacks.md +93 -0
- package/docs/guides/check-dependencies.md +152 -0
- package/docs/guides/collecting-project-files.md +59 -0
- package/docs/guides/command-check.md +155 -0
- package/docs/guides/data-boundaries.md +140 -0
- package/docs/guides/extending-check-lifecycle.md +164 -0
- package/docs/guides/finding-waivers.md +87 -0
- package/docs/guides/learned-scheduling.md +83 -0
- package/docs/guides/presenting-findings.md +54 -0
- package/docs/guides/run-outputs.md +171 -0
- package/docs/guides/scheduling.md +208 -0
- package/docs/guides/simulating-admission.md +55 -0
- package/docs/output.md +13 -21
- package/licenses/Lizard-1.24.0-MIT.txt +30 -0
- package/{third-party-licenses/momoa-3.3.12-LICENSE → licenses/Lizard-1.24.0-lizard.py-Apache-2.0.txt} +1 -0
- package/licenses/Pygments-2.18.0-BSD-2-Clause.txt +25 -0
- package/licenses/analyzer-translations-NOTICE.md +24 -0
- package/licenses/lizard-1.24.0-provenance.json +957 -0
- package/package.json +19 -6
- package/src/check/check.ts +382 -92
- package/src/check/flag-enablement.ts +76 -0
- package/src/check/handoff-provider-identity.ts +34 -0
- package/src/check/inherited-collection.ts +2 -2
- package/src/check/project-changes.ts +14 -0
- package/src/check/project-context.ts +11 -0
- package/src/check-settlement/fact-validation.ts +29 -39
- package/src/check-settlement/facts.ts +1 -1
- package/src/check-settlement/outcome-normalization.ts +17 -35
- package/src/check-settlement/reason-shape.ts +20 -0
- package/src/check-settlement/record-store.ts +18 -15
- package/src/check-settlement/session.ts +12 -3
- 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 +54 -5
- package/src/data-boundary/config-glob.ts +17 -0
- package/src/data-boundary/project-path.ts +21 -0
- package/src/data-boundary/value-shapes.ts +12 -0
- package/src/index.ts +134 -5
- package/src/machine-output/v4/atomic-publication.ts +4 -17
- package/src/package-checks/check-authoring.ts +136 -0
- package/src/package-checks/code-quality-findings/finding-waiver-authoring.ts +46 -0
- package/src/package-checks/code-quality-findings/finding-waiver-evidence.ts +95 -0
- package/src/package-checks/code-quality-findings/policy.ts +23 -0
- 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/area-policy.ts +24 -13
- package/src/package-checks/duplicate-detection/cache/identity.ts +1 -1
- package/src/package-checks/duplicate-detection/default-check.ts +38 -7
- package/src/package-checks/duplicate-detection/execution.ts +82 -24
- package/src/package-checks/duplicate-detection/finding-messages.ts +75 -0
- package/src/package-checks/duplicate-detection/finding-waiver-identity.ts +68 -0
- package/src/package-checks/duplicate-detection/jscpd/availability.ts +2 -2
- package/src/package-checks/duplicate-detection/jscpd/command-resolution.ts +1 -1
- package/src/package-checks/duplicate-detection/jscpd/json-report.ts +24 -5
- package/src/package-checks/duplicate-detection/jscpd/scanner.ts +6 -7
- package/src/package-checks/duplicate-detection/options-resolution.ts +32 -57
- package/src/package-checks/duplicate-detection/options-validation.ts +23 -31
- package/src/package-checks/duplicate-detection/options.ts +26 -3
- package/src/package-checks/duplicate-detection/records.ts +65 -12
- package/src/package-checks/file-metrics/constructor.ts +29 -6
- package/src/package-checks/file-metrics/execution.ts +17 -20
- package/src/package-checks/file-metrics/finding-messages.ts +29 -0
- package/src/package-checks/file-metrics/options-resolution.ts +19 -52
- package/src/package-checks/file-metrics/options-validation.ts +23 -32
- package/src/package-checks/file-metrics/options.ts +6 -3
- package/src/package-checks/file-metrics/records.ts +11 -23
- package/src/package-checks/file-metrics/scc/availability.ts +2 -2
- 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/parser.ts +4 -4
- package/src/package-checks/file-metrics/scc/scanner.ts +135 -33
- package/src/package-checks/function-metrics/analysis.ts +81 -21
- package/src/package-checks/function-metrics/analyzer/analysis-context.ts +749 -0
- package/src/package-checks/function-metrics/analyzer/analysis-model.ts +421 -0
- package/src/package-checks/function-metrics/analyzer/contracts.ts +54 -0
- package/src/package-checks/function-metrics/analyzer/extension-output.ts +269 -0
- package/src/package-checks/function-metrics/analyzer/extensions/extension-base.ts +33 -0
- package/src/package-checks/function-metrics/analyzer/extensions/lizardcomplextags.ts +25 -0
- package/src/package-checks/function-metrics/analyzer/extensions/lizardnd.ts +144 -0
- package/src/package-checks/function-metrics/analyzer/extensions/protocol.ts +345 -0
- package/src/package-checks/function-metrics/analyzer/extensions/registry.ts +157 -0
- package/src/package-checks/function-metrics/analyzer/pipeline.ts +313 -0
- package/src/package-checks/function-metrics/analyzer/port-facade.ts +142 -0
- package/src/package-checks/function-metrics/analyzer/reader-registry.ts +84 -0
- package/src/package-checks/function-metrics/analyzer/readers/csharp.ts +110 -0
- package/src/package-checks/function-metrics/analyzer/readers/erlang.ts +501 -0
- package/src/package-checks/function-metrics/analyzer/readers/fortran.ts +294 -0
- package/src/package-checks/function-metrics/analyzer/readers/gdscript.ts +42 -0
- package/src/package-checks/function-metrics/analyzer/readers/go.ts +53 -0
- package/src/package-checks/function-metrics/analyzer/readers/java-body-states.ts +141 -0
- package/src/package-checks/function-metrics/analyzer/readers/java.ts +270 -0
- package/src/package-checks/function-metrics/analyzer/readers/javascript.ts +19 -0
- package/src/package-checks/function-metrics/analyzer/readers/kotlin.ts +120 -0
- package/src/package-checks/function-metrics/analyzer/readers/lua.ts +68 -0
- package/src/package-checks/function-metrics/analyzer/readers/objc.ts +113 -0
- package/src/package-checks/function-metrics/analyzer/readers/perl.ts +340 -0
- package/src/package-checks/function-metrics/analyzer/readers/php-states.ts +253 -0
- package/src/package-checks/function-metrics/analyzer/readers/php.ts +63 -0
- package/src/package-checks/function-metrics/analyzer/readers/plsql.ts +310 -0
- package/src/package-checks/function-metrics/analyzer/readers/python.ts +432 -0
- package/src/package-checks/function-metrics/analyzer/readers/r.ts +235 -0
- package/src/package-checks/function-metrics/analyzer/readers/ruby.ts +88 -0
- package/src/package-checks/function-metrics/analyzer/readers/rust.ts +47 -0
- package/src/package-checks/function-metrics/analyzer/readers/scala.ts +60 -0
- package/src/package-checks/function-metrics/analyzer/readers/solidity.ts +32 -0
- package/src/package-checks/function-metrics/analyzer/readers/st.ts +161 -0
- package/src/package-checks/function-metrics/analyzer/readers/swift.ts +116 -0
- package/src/package-checks/function-metrics/analyzer/readers/tsx.ts +165 -0
- package/src/package-checks/function-metrics/analyzer/readers/ttcn.ts +96 -0
- package/src/package-checks/function-metrics/analyzer/readers/typescript.ts +599 -0
- package/src/package-checks/function-metrics/analyzer/readers/vue.ts +43 -0
- package/src/package-checks/function-metrics/analyzer/readers/zig.ts +36 -0
- package/src/package-checks/function-metrics/analyzer/shared/clike.ts +541 -0
- package/src/package-checks/function-metrics/analyzer/shared/code-reader.ts +684 -0
- package/src/package-checks/function-metrics/analyzer/shared/golike.ts +143 -0
- package/src/package-checks/function-metrics/analyzer/shared/js-style-regex.ts +80 -0
- package/src/package-checks/function-metrics/analyzer/shared/rubylike.ts +161 -0
- package/src/package-checks/function-metrics/analyzer/shared/script-language.ts +50 -0
- package/src/package-checks/function-metrics/analyzer-adapter.ts +84 -0
- package/src/package-checks/function-metrics/analyzer-worker-contract.ts +10 -0
- package/src/package-checks/function-metrics/analyzer-worker-port.ts +164 -0
- package/src/package-checks/function-metrics/analyzer-worker.ts +31 -0
- package/src/package-checks/function-metrics/constructor.ts +32 -9
- package/src/package-checks/function-metrics/execution.ts +94 -41
- package/src/package-checks/function-metrics/finding-messages.ts +95 -0
- package/src/package-checks/function-metrics/finding-waiver-identity.ts +36 -0
- package/src/package-checks/function-metrics/measurement-model.ts +15 -1
- package/src/package-checks/function-metrics/measurement.ts +223 -36
- package/src/package-checks/function-metrics/options-resolution.ts +39 -75
- package/src/package-checks/function-metrics/options-validation.ts +30 -39
- package/src/package-checks/function-metrics/options.ts +32 -13
- package/src/package-checks/function-metrics/records.ts +73 -7
- package/src/package-checks/function-metrics/target-files.ts +10 -70
- package/src/package-checks/{file-metrics/scc → host-environment}/csv.ts +1 -2
- package/src/package-checks/host-environment/git.ts +13 -2
- 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/host-environment/process.ts +10 -0
- package/src/package-checks/json-schema-validation/default-check.ts +38 -5
- package/src/package-checks/json-schema-validation/final-data.ts +8 -0
- package/src/package-checks/json-schema-validation/options-validation.ts +16 -23
- package/src/package-checks/json-schema-validation/options.ts +27 -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/final-data.ts +5 -0
- package/src/package-checks/json-validation/options-validation.ts +4 -18
- 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/final-data.ts +18 -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 +57 -8
- package/src/package-checks/markdown-link-validation/execution.ts +51 -57
- package/src/package-checks/markdown-link-validation/filesystem-probes.ts +108 -51
- package/src/package-checks/markdown-link-validation/final-data.ts +5 -0
- package/src/package-checks/markdown-link-validation/finding-messages.ts +48 -0
- package/src/package-checks/markdown-link-validation/local-resolution.ts +17 -9
- package/src/package-checks/markdown-link-validation/local-resolver.ts +5 -2
- package/src/package-checks/markdown-link-validation/markdown-parser.ts +1 -5
- package/src/package-checks/markdown-link-validation/options-resolution.ts +14 -3
- package/src/package-checks/markdown-link-validation/options-validation.ts +12 -19
- package/src/package-checks/markdown-link-validation/options.ts +15 -1
- package/src/package-checks/markdown-link-validation/parse-facts-cache-payload.ts +245 -0
- package/src/package-checks/markdown-link-validation/parse-facts-cache.ts +154 -0
- package/src/package-checks/markdown-link-validation/resolver-engine.ts +75 -65
- package/src/package-checks/markdown-link-validation/source-reader.ts +86 -0
- package/src/package-checks/markdown-link-validation/unavailable-reasons.ts +42 -0
- 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 +39 -23
- package/src/package-checks/project-files/config-glob.ts +1 -17
- package/src/package-checks/project-files/configuration.ts +4 -15
- package/src/package-checks/project-files/gitlink-revision.ts +5 -7
- package/src/package-checks/project-files/gitlink-worktree.ts +36 -8
- package/src/package-checks/project-files/public-collection.ts +92 -0
- package/src/package-checks/project-files/revision-paths.ts +3 -3
- package/src/package-checks/project-files/revision-worktree-files.ts +17 -17
- package/src/package-checks/secret-detection/classification.ts +30 -0
- package/src/package-checks/secret-detection/default-check.ts +73 -0
- package/src/package-checks/secret-detection/execution.ts +247 -0
- package/src/package-checks/secret-detection/final-data.ts +57 -0
- package/src/package-checks/secret-detection/finding-waiver-identity.ts +37 -0
- package/src/package-checks/secret-detection/input-preparation.ts +290 -0
- package/src/package-checks/secret-detection/options-resolution.ts +65 -0
- package/src/package-checks/secret-detection/options-validation.ts +27 -0
- package/src/package-checks/secret-detection/options.ts +39 -0
- package/src/package-checks/secret-detection/records.ts +77 -0
- package/src/package-checks/secret-detection/secretlint/adapter.ts +122 -0
- package/src/package-tools/admission-policy/define-admission-policy.ts +54 -0
- package/src/package-tools/cache/cache-json-by-key.ts +300 -0
- package/src/package-tools/finding-presentation/finding-presentation.ts +69 -0
- package/src/{finding-waivers → package-tools/finding-waivers}/reconciliation.ts +16 -8
- package/src/package-tools/learned-critical-path/critical-path-ranking.ts +76 -0
- package/src/package-tools/learned-critical-path/duration-model/bounded-history.ts +108 -0
- package/src/package-tools/learned-critical-path/duration-model/prediction.ts +184 -0
- package/src/package-tools/learned-critical-path/duration-model/preparation.ts +79 -0
- package/src/package-tools/learned-critical-path/duration-model/recording.ts +209 -0
- package/src/package-tools/learned-critical-path/duration-model/storage.ts +251 -0
- package/src/package-tools/learned-critical-path/selection-layers.ts +71 -0
- package/src/package-tools/learned-critical-path/static-decision.ts +105 -0
- package/src/package-tools/learned-critical-path/strategy.ts +302 -0
- package/src/project-definition/check-tree/authoring.ts +40 -234
- package/src/project-definition/check-tree/check-fields-authoring.ts +242 -0
- package/src/project-definition/check-tree/collection-authoring.ts +13 -0
- package/src/project-definition/check-tree/flag-conditions.ts +99 -0
- package/src/project-definition/check-tree/materialization.ts +21 -9
- package/src/project-definition/check-tree/resolution.ts +84 -28
- package/src/project-definition/check-tree/scheduling-authoring.ts +114 -0
- package/src/project-definition/declarative-snapshot.ts +94 -0
- package/src/project-definition/output-defaults.ts +32 -1
- package/src/project-definition/output-validation.ts +15 -15
- package/src/project-definition/progress-rendering-output.ts +121 -0
- package/src/project-definition/project-changes.ts +112 -0
- package/src/project-definition/project-definition-validation.ts +166 -19
- package/src/project-definition/project-definition.ts +177 -67
- package/src/project-definition/resource-unit-mapping.ts +25 -0
- package/src/project-definition/scheduler-policy.ts +556 -0
- package/src/project-run/admission-strategy-provider/custom-strategy-preparation.ts +83 -0
- package/src/project-run/admission-strategy-provider/prepared-admission-strategy.ts +27 -0
- package/src/project-run/admission-strategy-provider/provider.ts +45 -0
- package/src/project-run/aggregation.ts +52 -70
- 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 +52 -9
- package/src/project-run/check-execution/console-capture.ts +262 -0
- package/src/project-run/check-execution/dependencies.ts +161 -10
- package/src/project-run/check-execution/execution-finalization.ts +103 -27
- package/src/project-run/check-execution/execution-settlement.ts +99 -32
- package/src/project-run/check-execution/flag-controls.ts +146 -0
- package/src/project-run/check-execution/lifecycle.ts +29 -0
- package/src/project-run/check-execution/messages.ts +8 -0
- package/src/project-run/check-execution/plan.ts +12 -8
- package/src/project-run/check-execution/{preflight-result.ts → preparation-result.ts} +34 -32
- package/src/project-run/check-execution/preparation.ts +309 -0
- package/src/project-run/check-execution/ready-check-execution.ts +97 -0
- package/src/project-run/check-execution/resolved-checks.ts +92 -232
- package/src/project-run/check-execution/resolved-execution-result.ts +22 -0
- 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.ts → completion/completion.ts} +33 -59
- package/src/project-run/{machine-publication.ts → completion/machine-publication.ts} +4 -4
- package/src/project-run/completion/result-resolver.ts +60 -0
- package/src/project-run/controls/contract.ts +22 -9
- package/src/project-run/controls/outputs-override-validation.ts +83 -60
- package/src/project-run/controls/validation-result.ts +17 -6
- package/src/project-run/controls/validation.ts +110 -68
- package/src/project-run/diagnostic-logging/diagnostic-detail-rendering.ts +1 -2
- package/src/project-run/diagnostic-logging/logger.ts +132 -207
- package/src/project-run/diagnostic-logging/observation-rendering.ts +203 -0
- package/src/project-run/invocation/candidate.ts +99 -0
- package/src/project-run/invocation/candidates.ts +56 -0
- package/src/project-run/invocation/creation.ts +120 -0
- package/src/project-run/invocation/execution.ts +136 -0
- package/src/project-run/invocation/paths.ts +154 -0
- package/src/project-run/invocation/progress.ts +38 -0
- package/src/project-run/invocation/run.ts +144 -0
- package/src/project-run/invocation/scheduler.ts +82 -0
- package/src/project-run/{output-configuration.ts → outputs/configuration.ts} +6 -5
- package/src/project-run/outputs/status.ts +161 -0
- package/src/project-run/progress-rendering/presentation.ts +150 -36
- package/src/project-run/progress-rendering/renderer-formatting.ts +185 -25
- package/src/project-run/progress-rendering/renderer-lifecycle.ts +61 -9
- package/src/project-run/progress-rendering/renderer.ts +23 -6
- package/src/project-run/project-context.ts +10 -5
- package/src/project-run/result.ts +50 -4
- package/src/project-run/run.ts +7 -6
- 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 +321 -0
- package/src/project-run/task-scheduler/admission-core/core.ts +278 -0
- package/src/project-run/task-scheduler/admission-core/input.ts +138 -0
- package/src/project-run/task-scheduler/admission-core/projection.ts +164 -0
- package/src/project-run/task-scheduler/admission-core/selection-index.ts +165 -0
- package/src/project-run/task-scheduler/admission-core/selection-query.ts +297 -0
- package/src/project-run/task-scheduler/admission-core/selection-seed.ts +282 -0
- package/src/project-run/task-scheduler/admission-core/selection-transition.ts +245 -0
- package/src/project-run/task-scheduler/admission-core/selection.ts +140 -0
- package/src/project-run/task-scheduler/admission-core/trace.ts +177 -0
- package/src/project-run/task-scheduler/admission-scope-layers.ts +44 -0
- package/src/project-run/task-scheduler/admission-selection-policy.ts +116 -0
- package/src/project-run/task-scheduler/custom-admission-policy.ts +128 -0
- package/src/project-run/task-scheduler/execution-state.ts +97 -6
- package/src/project-run/task-scheduler/forced-block-effect-replay.ts +68 -0
- package/src/project-run/task-scheduler/graph-validation.ts +77 -31
- package/src/project-run/task-scheduler/graph.ts +111 -3
- package/src/project-run/task-scheduler/measurement/diagnostics.ts +267 -0
- package/src/project-run/task-scheduler/measurement/integrals.ts +177 -0
- package/src/project-run/task-scheduler/measurement/policy.ts +105 -0
- package/src/project-run/task-scheduler/measurement/summary.ts +175 -0
- package/src/project-run/task-scheduler/measurement/timing.ts +198 -0
- package/src/project-run/task-scheduler/scheduler-admission-decision.ts +143 -134
- package/src/project-run/task-scheduler/scheduler-blocker-summary.ts +34 -9
- package/src/project-run/task-scheduler/scheduler-decision-inspection.ts +28 -170
- package/src/project-run/task-scheduler/scheduler-decision-model.ts +36 -40
- package/src/project-run/task-scheduler/scheduler-decision.ts +68 -36
- package/src/project-run/task-scheduler/scheduler-observation.ts +126 -0
- package/src/project-run/task-scheduler/scheduler-task-lifecycle.ts +150 -0
- package/src/project-run/task-scheduler/scheduler-terminal-measurement.ts +97 -0
- package/src/project-run/task-scheduler/scheduler.ts +233 -171
- package/types/check/check.d.ts +225 -69
- package/types/check/flag-enablement.d.ts +42 -0
- package/types/check/handoff-provider-identity.d.ts +12 -0
- package/types/check/inherited-collection.d.ts +1 -1
- 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/check-settlement/reason-shape.d.ts +5 -0
- package/types/check-settlement/record-store.d.ts +2 -2
- package/types/check-settlement/session.d.ts +3 -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 +24 -0
- package/types/data-boundary/config-glob.d.ts +5 -0
- package/types/data-boundary/project-path.d.ts +4 -0
- package/types/data-boundary/value-shapes.d.ts +3 -0
- package/types/index.d.ts +40 -9
- package/types/package-checks/check-authoring.d.ts +45 -0
- package/types/package-checks/code-quality-findings/finding-waiver-authoring.d.ts +7 -0
- package/types/package-checks/code-quality-findings/finding-waiver-evidence.d.ts +34 -0
- package/types/package-checks/code-quality-findings/policy.d.ts +4 -0
- 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/area-policy.d.ts +1 -1
- package/types/package-checks/duplicate-detection/default-check.d.ts +5 -2
- package/types/package-checks/duplicate-detection/finding-messages.d.ts +7 -0
- package/types/package-checks/duplicate-detection/finding-waiver-identity.d.ts +3 -0
- package/types/package-checks/duplicate-detection/jscpd/command-resolution.d.ts +1 -1
- package/types/package-checks/duplicate-detection/options.d.ts +21 -3
- package/types/package-checks/duplicate-detection/records.d.ts +20 -3
- package/types/package-checks/file-metrics/constructor.d.ts +5 -2
- package/types/package-checks/file-metrics/finding-messages.d.ts +4 -0
- package/types/package-checks/file-metrics/options.d.ts +4 -3
- package/types/package-checks/file-metrics/records.d.ts +5 -10
- 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/file-metrics/scc/parser.d.ts +4 -4
- package/types/package-checks/function-metrics/analysis.d.ts +1 -1
- package/types/package-checks/function-metrics/analyzer/analysis-context.d.ts +174 -0
- package/types/package-checks/function-metrics/analyzer/analysis-model.d.ts +135 -0
- package/types/package-checks/function-metrics/analyzer/contracts.d.ts +48 -0
- package/types/package-checks/function-metrics/analyzer/extensions/lizardcomplextags.d.ts +13 -0
- package/types/package-checks/function-metrics/analyzer/extensions/lizardnd.d.ts +28 -0
- package/types/package-checks/function-metrics/analyzer/extensions/protocol.d.ts +99 -0
- package/types/package-checks/function-metrics/analyzer/extensions/registry.d.ts +34 -0
- package/types/package-checks/function-metrics/analyzer/pipeline.d.ts +67 -0
- package/types/package-checks/function-metrics/analyzer/port-facade.d.ts +38 -0
- package/types/package-checks/function-metrics/analyzer/reader-registry.d.ts +18 -0
- package/types/package-checks/function-metrics/analyzer/readers/csharp.d.ts +22 -0
- package/types/package-checks/function-metrics/analyzer/readers/erlang.d.ts +22 -0
- package/types/package-checks/function-metrics/analyzer/readers/fortran.d.ts +29 -0
- package/types/package-checks/function-metrics/analyzer/readers/gdscript.d.ts +18 -0
- package/types/package-checks/function-metrics/analyzer/readers/go.d.ts +18 -0
- package/types/package-checks/function-metrics/analyzer/readers/java-body-states.d.ts +18 -0
- package/types/package-checks/function-metrics/analyzer/readers/java.d.ts +44 -0
- package/types/package-checks/function-metrics/analyzer/readers/javascript.d.ts +14 -0
- package/types/package-checks/function-metrics/analyzer/readers/kotlin.d.ts +23 -0
- package/types/package-checks/function-metrics/analyzer/readers/lua.d.ts +16 -0
- package/types/package-checks/function-metrics/analyzer/readers/objc.d.ts +18 -0
- package/types/package-checks/function-metrics/analyzer/readers/perl.d.ts +28 -0
- package/types/package-checks/function-metrics/analyzer/readers/php-states.d.ts +41 -0
- package/types/package-checks/function-metrics/analyzer/readers/php.d.ts +22 -0
- package/types/package-checks/function-metrics/analyzer/readers/plsql.d.ts +24 -0
- package/types/package-checks/function-metrics/analyzer/readers/python.d.ts +50 -0
- package/types/package-checks/function-metrics/analyzer/readers/r.d.ts +22 -0
- package/types/package-checks/function-metrics/analyzer/readers/ruby.d.ts +16 -0
- package/types/package-checks/function-metrics/analyzer/readers/rust.d.ts +20 -0
- package/types/package-checks/function-metrics/analyzer/readers/scala.d.ts +20 -0
- package/types/package-checks/function-metrics/analyzer/readers/solidity.d.ts +19 -0
- package/types/package-checks/function-metrics/analyzer/readers/st.d.ts +37 -0
- package/types/package-checks/function-metrics/analyzer/readers/swift.d.ts +30 -0
- package/types/package-checks/function-metrics/analyzer/readers/tsx.d.ts +15 -0
- package/types/package-checks/function-metrics/analyzer/readers/ttcn.d.ts +22 -0
- package/types/package-checks/function-metrics/analyzer/readers/typescript.d.ts +35 -0
- package/types/package-checks/function-metrics/analyzer/readers/vue.d.ts +18 -0
- package/types/package-checks/function-metrics/analyzer/readers/zig.d.ts +19 -0
- package/types/package-checks/function-metrics/analyzer/shared/clike.d.ts +101 -0
- package/types/package-checks/function-metrics/analyzer/shared/code-reader.d.ts +176 -0
- package/types/package-checks/function-metrics/analyzer/shared/golike.d.ts +39 -0
- package/types/package-checks/function-metrics/analyzer/shared/js-style-regex.d.ts +16 -0
- package/types/package-checks/function-metrics/analyzer/shared/rubylike.d.ts +40 -0
- package/types/package-checks/function-metrics/analyzer/shared/script-language.d.ts +17 -0
- package/types/package-checks/function-metrics/analyzer-adapter.d.ts +26 -0
- package/types/package-checks/function-metrics/analyzer-worker-contract.d.ts +5 -0
- package/types/package-checks/function-metrics/analyzer-worker-port.d.ts +24 -0
- package/types/package-checks/function-metrics/analyzer-worker.d.ts +1 -0
- package/types/package-checks/function-metrics/constructor.d.ts +6 -3
- package/types/package-checks/function-metrics/execution.d.ts +5 -2
- package/types/package-checks/function-metrics/finding-messages.d.ts +9 -0
- package/types/package-checks/function-metrics/finding-waiver-identity.d.ts +2 -0
- package/types/package-checks/function-metrics/measurement-model.d.ts +13 -1
- package/types/package-checks/function-metrics/measurement.d.ts +22 -7
- package/types/package-checks/function-metrics/options.d.ts +26 -12
- package/types/package-checks/function-metrics/records.d.ts +24 -5
- package/types/package-checks/function-metrics/target-files.d.ts +4 -3
- package/types/package-checks/host-environment/csv.d.ts +2 -0
- package/types/package-checks/host-environment/git.d.ts +3 -1
- 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/host-environment/process.d.ts +5 -0
- package/types/package-checks/json-schema-validation/default-check.d.ts +4 -1
- package/types/package-checks/json-schema-validation/final-data.d.ts +8 -0
- package/types/package-checks/json-schema-validation/options.d.ts +33 -4
- package/types/package-checks/json-validation/default-check.d.ts +4 -1
- package/types/package-checks/json-validation/final-data.d.ts +5 -0
- 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/final-data.d.ts +18 -0
- package/types/package-checks/maintenance-reminders/maintenance-reminders.d.ts +11 -2
- package/types/package-checks/markdown-link-validation/default-check.d.ts +13 -4
- package/types/package-checks/markdown-link-validation/execution.d.ts +1 -3
- package/types/package-checks/markdown-link-validation/final-data.d.ts +5 -0
- package/types/package-checks/markdown-link-validation/finding-messages.d.ts +4 -0
- package/types/package-checks/markdown-link-validation/local-resolution.d.ts +12 -6
- package/types/package-checks/markdown-link-validation/local-resolver.d.ts +2 -1
- package/types/package-checks/markdown-link-validation/options.d.ts +13 -1
- package/types/package-checks/markdown-link-validation/parse-facts-cache-payload.d.ts +24 -0
- package/types/package-checks/markdown-link-validation/parse-facts-cache.d.ts +13 -0
- package/types/package-checks/markdown-link-validation/resolver-engine.d.ts +6 -4
- package/types/package-checks/markdown-link-validation/source-reader.d.ts +11 -0
- package/types/package-checks/markdown-link-validation/unavailable-reasons.d.ts +4 -0
- 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/project-files/public-collection.d.ts +16 -0
- package/types/package-checks/secret-detection/classification.d.ts +12 -0
- package/types/package-checks/secret-detection/default-check.d.ts +14 -0
- package/types/package-checks/secret-detection/execution.d.ts +14 -0
- package/types/package-checks/secret-detection/final-data.d.ts +15 -0
- package/types/package-checks/secret-detection/finding-waiver-identity.d.ts +5 -0
- package/types/package-checks/secret-detection/input-preparation.d.ts +24 -0
- package/types/package-checks/secret-detection/options-resolution.d.ts +6 -0
- package/types/package-checks/secret-detection/options-validation.d.ts +3 -0
- package/types/package-checks/secret-detection/options.d.ts +33 -0
- package/types/package-checks/secret-detection/records.d.ts +35 -0
- package/types/package-checks/secret-detection/secretlint/adapter.d.ts +28 -0
- package/types/package-tools/admission-policy/define-admission-policy.d.ts +26 -0
- package/types/package-tools/cache/cache-json-by-key.d.ts +53 -0
- package/types/package-tools/finding-presentation/finding-presentation.d.ts +27 -0
- package/types/{finding-waivers → package-tools/finding-waivers}/reconciliation.d.ts +3 -3
- package/types/package-tools/learned-critical-path/critical-path-ranking.d.ts +19 -0
- package/types/package-tools/learned-critical-path/duration-model/bounded-history.d.ts +34 -0
- package/types/package-tools/learned-critical-path/duration-model/prediction.d.ts +32 -0
- package/types/package-tools/learned-critical-path/duration-model/preparation.d.ts +28 -0
- package/types/package-tools/learned-critical-path/duration-model/recording.d.ts +28 -0
- package/types/package-tools/learned-critical-path/duration-model/storage.d.ts +12 -0
- package/types/package-tools/learned-critical-path/selection-layers.d.ts +14 -0
- package/types/package-tools/learned-critical-path/static-decision.d.ts +3 -0
- package/types/package-tools/learned-critical-path/strategy.d.ts +35 -0
- package/types/project-definition/check-tree/authoring.d.ts +13 -14
- package/types/project-definition/check-tree/check-fields-authoring.d.ts +30 -0
- package/types/project-definition/check-tree/collection-authoring.d.ts +2 -0
- package/types/project-definition/check-tree/flag-conditions.d.ts +5 -0
- package/types/project-definition/check-tree/resolution.d.ts +13 -6
- package/types/project-definition/check-tree/scheduling-authoring.d.ts +19 -0
- package/types/project-definition/declarative-snapshot.d.ts +10 -0
- package/types/project-definition/output-defaults.d.ts +7 -0
- package/types/project-definition/output-validation.d.ts +2 -1
- package/types/project-definition/progress-rendering-output.d.ts +41 -0
- package/types/project-definition/project-changes.d.ts +30 -0
- package/types/project-definition/project-definition.d.ts +49 -19
- package/types/project-definition/resource-unit-mapping.d.ts +4 -0
- package/types/project-definition/scheduler-policy.d.ts +497 -0
- package/types/project-run/admission-strategy-provider/custom-strategy-preparation.d.ts +9 -0
- package/types/project-run/admission-strategy-provider/prepared-admission-strategy.d.ts +23 -0
- package/types/project-run/admission-strategy-provider/provider.d.ts +13 -0
- 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/callback.d.ts +5 -1
- package/types/project-run/check-execution/console-capture.d.ts +18 -0
- package/types/project-run/check-execution/dependencies.d.ts +4 -1
- package/types/project-run/check-execution/execution-finalization.d.ts +18 -8
- package/types/project-run/check-execution/execution-settlement.d.ts +18 -7
- package/types/project-run/check-execution/flag-controls.d.ts +27 -0
- package/types/project-run/check-execution/lifecycle.d.ts +24 -0
- package/types/project-run/check-execution/messages.d.ts +2 -0
- package/types/project-run/check-execution/plan.d.ts +2 -3
- package/types/project-run/check-execution/{preflight-result.d.ts → preparation-result.d.ts} +3 -3
- package/types/project-run/check-execution/preparation.d.ts +29 -0
- package/types/project-run/check-execution/ready-check-execution.d.ts +18 -0
- package/types/project-run/check-execution/resolved-checks.d.ts +37 -44
- package/types/project-run/check-execution/resolved-execution-result.d.ts +21 -0
- 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.d.ts → completion/completion.d.ts} +7 -5
- package/types/project-run/{machine-publication.d.ts → completion/machine-publication.d.ts} +3 -3
- package/types/project-run/completion/result-resolver.d.ts +4 -0
- package/types/project-run/controls/contract.d.ts +22 -9
- package/types/project-run/controls/outputs-override-validation.d.ts +2 -1
- package/types/project-run/controls/validation-result.d.ts +12 -4
- package/types/project-run/diagnostic-logging/logger.d.ts +34 -4
- package/types/project-run/diagnostic-logging/observation-rendering.d.ts +7 -0
- package/types/project-run/invocation/candidate.d.ts +12 -0
- package/types/project-run/invocation/candidates.d.ts +8 -0
- package/types/project-run/{invocation-creation.d.ts → invocation/creation.d.ts} +3 -3
- package/types/project-run/invocation/execution.d.ts +5 -0
- package/types/project-run/invocation/paths.d.ts +40 -0
- package/types/project-run/invocation/progress.d.ts +11 -0
- package/types/project-run/invocation/run.d.ts +43 -0
- package/types/project-run/invocation/scheduler.d.ts +16 -0
- package/types/project-run/outputs/configuration.d.ts +3 -0
- package/types/project-run/outputs/status.d.ts +48 -0
- package/types/project-run/progress-rendering/presentation.d.ts +12 -7
- package/types/project-run/progress-rendering/renderer-formatting.d.ts +13 -2
- package/types/project-run/progress-rendering/renderer-lifecycle.d.ts +8 -1
- package/types/project-run/progress-rendering/renderer.d.ts +11 -3
- package/types/project-run/project-context.d.ts +5 -4
- package/types/project-run/result.d.ts +38 -4
- package/types/project-run/run.d.ts +6 -5
- package/types/project-run/task-scheduler/admission-core/compiled-graph-lookup.d.ts +10 -0
- package/types/project-run/task-scheduler/admission-core/compiled-graph.d.ts +31 -0
- package/types/project-run/task-scheduler/admission-core/core.d.ts +57 -0
- package/types/project-run/task-scheduler/admission-core/input.d.ts +4 -0
- package/types/project-run/task-scheduler/admission-core/projection.d.ts +22 -0
- package/types/project-run/task-scheduler/admission-core/selection-index.d.ts +61 -0
- package/types/project-run/task-scheduler/admission-core/selection-query.d.ts +28 -0
- package/types/project-run/task-scheduler/admission-core/selection-seed.d.ts +9 -0
- package/types/project-run/task-scheduler/admission-core/selection-transition.d.ts +4 -0
- package/types/project-run/task-scheduler/admission-core/selection.d.ts +20 -0
- package/types/project-run/task-scheduler/admission-scope-layers.d.ts +8 -0
- package/types/project-run/task-scheduler/admission-selection-policy.d.ts +31 -0
- package/types/project-run/task-scheduler/custom-admission-policy.d.ts +6 -0
- package/types/project-run/task-scheduler/execution-state.d.ts +43 -1
- package/types/project-run/task-scheduler/forced-block-effect-replay.d.ts +9 -0
- package/types/project-run/task-scheduler/graph-validation.d.ts +3 -2
- package/types/project-run/task-scheduler/graph.d.ts +15 -0
- package/types/project-run/task-scheduler/measurement/diagnostics.d.ts +47 -0
- package/types/project-run/task-scheduler/measurement/integrals.d.ts +27 -0
- package/types/project-run/task-scheduler/measurement/policy.d.ts +10 -0
- package/types/project-run/task-scheduler/measurement/summary.d.ts +3 -0
- package/types/project-run/task-scheduler/measurement/timing.d.ts +33 -0
- package/types/project-run/task-scheduler/scheduler-admission-decision.d.ts +13 -1
- package/types/project-run/task-scheduler/scheduler-decision-inspection.d.ts +20 -19
- package/types/project-run/task-scheduler/scheduler-decision-model.d.ts +38 -22
- package/types/project-run/task-scheduler/scheduler-decision.d.ts +4 -1
- package/types/project-run/task-scheduler/scheduler-observation.d.ts +14 -0
- package/types/project-run/task-scheduler/scheduler-task-lifecycle.d.ts +18 -0
- package/types/project-run/task-scheduler/scheduler-terminal-measurement.d.ts +9 -0
- package/dist/esm/finding-waivers/reconciliation.mjs.map +0 -1
- package/dist/esm/package-checks/file-metrics/scc/csv.mjs +0 -17
- package/dist/esm/package-checks/file-metrics/scc/csv.mjs.map +0 -1
- package/dist/esm/package-checks/function-metrics/lizard/availability.mjs +0 -64
- package/dist/esm/package-checks/function-metrics/lizard/availability.mjs.map +0 -1
- package/dist/esm/package-checks/function-metrics/lizard/csv.mjs.map +0 -1
- package/dist/esm/package-checks/function-metrics/lizard/parser.mjs +0 -138
- package/dist/esm/package-checks/function-metrics/lizard/parser.mjs.map +0 -1
- package/dist/esm/package-checks/function-metrics/lizard/scanner.mjs +0 -35
- package/dist/esm/package-checks/function-metrics/lizard/scanner.mjs.map +0 -1
- package/dist/esm/package-checks/host-environment/process/command.mjs +0 -13
- package/dist/esm/package-checks/host-environment/process/command.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 +0 -186
- package/dist/esm/project-run/check-execution/preflight.mjs.map +0 -1
- package/dist/esm/project-run/completion.mjs.map +0 -1
- package/dist/esm/project-run/invocation-creation.mjs +0 -111
- package/dist/esm/project-run/invocation-creation.mjs.map +0 -1
- package/dist/esm/project-run/invocation.mjs +0 -195
- package/dist/esm/project-run/invocation.mjs.map +0 -1
- package/dist/esm/project-run/machine-publication.mjs.map +0 -1
- package/dist/esm/project-run/output-configuration.mjs.map +0 -1
- package/dist/esm/project-run/output-status.mjs +0 -43
- package/dist/esm/project-run/output-status.mjs.map +0 -1
- package/src/package-checks/function-metrics/lizard/availability.ts +0 -90
- package/src/package-checks/function-metrics/lizard/csv.ts +0 -20
- package/src/package-checks/function-metrics/lizard/parser.ts +0 -179
- package/src/package-checks/function-metrics/lizard/scanner.ts +0 -62
- package/src/package-checks/host-environment/process/command.ts +0 -21
- package/src/project-run/check-execution/preflight.ts +0 -321
- package/src/project-run/invocation-creation.ts +0 -160
- package/src/project-run/invocation.ts +0 -303
- package/src/project-run/output-status.ts +0 -69
- package/types/package-checks/file-metrics/scc/csv.d.ts +0 -1
- package/types/package-checks/function-metrics/lizard/availability.d.ts +0 -11
- package/types/package-checks/function-metrics/lizard/csv.d.ts +0 -1
- package/types/package-checks/function-metrics/lizard/parser.d.ts +0 -17
- package/types/package-checks/function-metrics/lizard/scanner.d.ts +0 -15
- package/types/package-checks/host-environment/process/command.d.ts +0 -7
- package/types/package-checks/project-files/config-glob.d.ts +0 -5
- package/types/project-run/check-execution/preflight.d.ts +0 -27
- package/types/project-run/invocation.d.ts +0 -34
- package/types/project-run/output-configuration.d.ts +0 -3
- package/types/project-run/output-status.d.ts +0 -21
|
@@ -1,5 +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";
|
|
4
|
+
import type { FindingWaiver } from "../../package-tools/finding-waivers/reconciliation.ts";
|
|
3
5
|
export type DuplicateDetectionScannerCommand =
|
|
4
6
|
/** 使用随 `@zxyycom/vibe-check` 安装的 jscpd。 */
|
|
5
7
|
Readonly<{
|
|
@@ -23,9 +25,22 @@ export interface DuplicateDetectionScannerOptions {
|
|
|
23
25
|
/** 省略时使用随 `@zxyycom/vibe-check` 安装的 jscpd。 */
|
|
24
26
|
readonly command?: DuplicateDetectionScannerCommand;
|
|
25
27
|
}
|
|
28
|
+
/** duplicate-detection identity 的 locations 数组中的一段 project-relative range。 */
|
|
29
|
+
export interface DuplicateDetectionFindingLocation {
|
|
30
|
+
readonly endLine: number;
|
|
31
|
+
readonly path: string;
|
|
32
|
+
readonly startLine: number;
|
|
33
|
+
}
|
|
34
|
+
/** duplicate-detection 用于精确识别一条可豁免 finding 的稳定字段。 */
|
|
35
|
+
export interface DuplicateDetectionFindingIdentity {
|
|
36
|
+
readonly locations: readonly DuplicateDetectionFindingLocation[];
|
|
37
|
+
readonly metric: "duplicate-tokens";
|
|
38
|
+
}
|
|
39
|
+
/** 一项 duplicate-detection finding 的声明式豁免。 */
|
|
40
|
+
export type DuplicateDetectionFindingWaiver = FindingWaiver<DuplicateDetectionFindingIdentity>;
|
|
26
41
|
/** 重复代码区域可省略并由构造函数补齐的文件策略。 */
|
|
27
42
|
export type DuplicateDetectionFileOptions = ProjectFileSelectionOptions;
|
|
28
|
-
/**
|
|
43
|
+
/** 同时拥有文件选择、比较边界、阈值和 finding policy 的重复代码区域。 */
|
|
29
44
|
export interface DuplicateDetectionCodeAreaOptions {
|
|
30
45
|
/** 显式区域必须声明本字段;其中各子字段可省略并使用 package 默认值。 */
|
|
31
46
|
readonly files: DuplicateDetectionFileOptions;
|
|
@@ -37,21 +52,24 @@ export interface DuplicateDetectionCodeAreaOptions {
|
|
|
37
52
|
readonly minimumTokens?: number;
|
|
38
53
|
}
|
|
39
54
|
/** `duplicateDetection(options?)` 接受并补齐默认值的公开策略。 */
|
|
40
|
-
export interface DuplicateDetectionOptions {
|
|
55
|
+
export interface DuplicateDetectionOptions<Id extends string = string> extends PackageCheckAuthoringOptions<Id> {
|
|
41
56
|
/** 省略时建立默认 `project` 区域;显式映射必须非空。 */
|
|
42
57
|
readonly codeAreas?: Readonly<Record<string, DuplicateDetectionCodeAreaOptions>>;
|
|
43
58
|
readonly cache?: DuplicateDetectionCacheOptions;
|
|
44
59
|
/** 省略时为 `non-blocking`;区域可局部覆盖。 */
|
|
45
60
|
readonly findingPolicy?: FindingPolicy;
|
|
61
|
+
/** 省略时没有豁免;identity 使用 Finding 发布的完整排序 location ranges。 */
|
|
62
|
+
readonly findingWaivers?: readonly DuplicateDetectionFindingWaiver[];
|
|
46
63
|
readonly scanner?: DuplicateDetectionScannerOptions;
|
|
47
64
|
}
|
|
48
|
-
/** 构造函数生成并由 Check
|
|
65
|
+
/** 构造函数生成并由 Check preparation/execution 消费的完整 options。 */
|
|
49
66
|
export interface ResolvedDuplicateDetectionOptions {
|
|
50
67
|
readonly cache: Readonly<{
|
|
51
68
|
readonly directory: string;
|
|
52
69
|
readonly enabled: boolean;
|
|
53
70
|
}>;
|
|
54
71
|
readonly codeAreas: Readonly<Record<string, ResolvedDuplicateDetectionCodeAreaOptions>>;
|
|
72
|
+
readonly findingWaivers: readonly DuplicateDetectionFindingWaiver[];
|
|
55
73
|
readonly scanner: ResolvedDuplicateDetectionScannerOptions;
|
|
56
74
|
}
|
|
57
75
|
export interface ResolvedDuplicateDetectionCodeAreaOptions {
|
|
@@ -1,7 +1,9 @@
|
|
|
1
|
+
import type { MaterializedFindingWaiver } from "../../package-tools/finding-waivers/reconciliation.ts";
|
|
2
|
+
import { type FindingWaiverAuditRecordData, type FindingWaiverRecordAudit } from "../code-quality-findings/finding-waiver-evidence.ts";
|
|
1
3
|
import type { DuplicateCodeFragment } from "./measurement-model.ts";
|
|
2
|
-
import type { ResolvedDuplicateDetectionOptions } from "./options.ts";
|
|
4
|
+
import type { DuplicateDetectionFindingIdentity, ResolvedDuplicateDetectionOptions } from "./options.ts";
|
|
3
5
|
/** 一条可信重复片段 supplemental Record 的 data。 */
|
|
4
|
-
export type
|
|
6
|
+
export type DuplicateDetectionFindingRecordData = Readonly<{
|
|
5
7
|
readonly blocking: boolean;
|
|
6
8
|
readonly codeAreas: readonly string[];
|
|
7
9
|
readonly lineCount: number;
|
|
@@ -12,11 +14,26 @@ export type DuplicateDetectionRecordData = Readonly<{
|
|
|
12
14
|
}>[];
|
|
13
15
|
readonly metric: "duplicate-tokens";
|
|
14
16
|
readonly tokenCount: number;
|
|
17
|
+
/** 精确匹配 waiver 时保留理由,并令该 finding 不再参与 actionable settlement。 */
|
|
18
|
+
readonly waiver?: Readonly<{
|
|
19
|
+
readonly reason: string;
|
|
20
|
+
}>;
|
|
15
21
|
}>;
|
|
22
|
+
/** 未使用或过宽 duplicate-detection waiver 的 supplemental audit Record data。 */
|
|
23
|
+
export type DuplicateDetectionFindingWaiverAuditRecordData = FindingWaiverAuditRecordData<DuplicateDetectionFindingIdentity>;
|
|
24
|
+
/** duplicateDetection 发布的 normal finding 或 waiver-audit Record data。 */
|
|
25
|
+
export type DuplicateDetectionRecordData = DuplicateDetectionFindingRecordData | DuplicateDetectionFindingWaiverAuditRecordData;
|
|
16
26
|
export interface DuplicateRecordCandidate {
|
|
17
|
-
readonly data:
|
|
27
|
+
readonly data: DuplicateDetectionFindingRecordData;
|
|
18
28
|
readonly id: string;
|
|
19
29
|
}
|
|
30
|
+
export declare function duplicateDetectionFindingIdentity(candidate: DuplicateRecordCandidate): DuplicateDetectionFindingIdentity;
|
|
31
|
+
export declare function duplicateDetectionWaiverIdentity(waiver: MaterializedFindingWaiver): DuplicateDetectionFindingIdentity;
|
|
32
|
+
/** 为一项未使用或过宽 waiver 构造 Check-owned audit Record。 */
|
|
33
|
+
export declare function duplicateDetectionWaiverAuditRecord(audit: FindingWaiverRecordAudit): Readonly<{
|
|
34
|
+
readonly data: DuplicateDetectionFindingWaiverAuditRecordData;
|
|
35
|
+
readonly id: string;
|
|
36
|
+
}>;
|
|
20
37
|
/** Builds Check-owned supplemental facts without adding a Product record catalog. */
|
|
21
38
|
export declare function buildDuplicateRecordCandidates(fragments: readonly DuplicateCodeFragment[], codeAreas: ResolvedDuplicateDetectionOptions["codeAreas"]): readonly DuplicateRecordCandidate[] | undefined;
|
|
22
39
|
export declare function isValidDuplicateFragment(fragment: DuplicateCodeFragment): boolean;
|
|
@@ -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>;
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import type { CheckMessage } from "../../check/check.ts";
|
|
2
|
+
import type { FileRecordCandidate } from "./records.ts";
|
|
3
|
+
/** Projects actionable file-metric Records into bounded terminal summaries. */
|
|
4
|
+
export declare function fileMetricFindingMessages(findings: readonly FileRecordCandidate[]): 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
|
/** `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,7 @@
|
|
|
1
1
|
import type { FileMetric } from "./measurement-model.ts";
|
|
2
2
|
import type { FileMetricsFindingIdentity, ResolvedFileMetricsCodeAreaOptions } from "./options.ts";
|
|
3
|
-
import type {
|
|
3
|
+
import type { MaterializedFindingWaiver } from "../../package-tools/finding-waivers/reconciliation.ts";
|
|
4
|
+
import { type FindingWaiverAuditRecordData, type FindingWaiverRecordAudit } from "../code-quality-findings/finding-waiver-evidence.ts";
|
|
4
5
|
interface FileMetricsAreaPolicyContext {
|
|
5
6
|
readonly areaIdsByPath: ReadonlyMap<string, readonly string[]>;
|
|
6
7
|
readonly codeAreas: Readonly<Record<string, ResolvedFileMetricsCodeAreaOptions>>;
|
|
@@ -19,13 +20,7 @@ export type FileMetricsFindingRecordData = Readonly<{
|
|
|
19
20
|
}>;
|
|
20
21
|
}>;
|
|
21
22
|
/** 未使用或过宽 file-metrics waiver 的 supplemental audit Record data。 */
|
|
22
|
-
export type FileMetricsFindingWaiverAuditRecordData =
|
|
23
|
-
readonly identity: FileMetricsFindingIdentity;
|
|
24
|
-
readonly kind: "finding-waiver-audit";
|
|
25
|
-
readonly matchCount: number;
|
|
26
|
-
readonly reason: string;
|
|
27
|
-
readonly status: "overmatched" | "unused";
|
|
28
|
-
}>;
|
|
23
|
+
export type FileMetricsFindingWaiverAuditRecordData = FindingWaiverAuditRecordData<FileMetricsFindingIdentity>;
|
|
29
24
|
/** file-metrics 发布的 finding 或 waiver-audit supplemental Record data。 */
|
|
30
25
|
export type FileMetricsRecordData = FileMetricsFindingRecordData | FileMetricsFindingWaiverAuditRecordData;
|
|
31
26
|
export interface FileRecordCandidate {
|
|
@@ -33,10 +28,10 @@ export interface FileRecordCandidate {
|
|
|
33
28
|
readonly id: string;
|
|
34
29
|
}
|
|
35
30
|
/** 仅为未使用和过宽 waiver 构造补充 audit Record;正常 applied waiver 由 finding Record 自己保留。 */
|
|
36
|
-
export declare function fileMetricsWaiverAuditRecord(audit:
|
|
31
|
+
export declare function fileMetricsWaiverAuditRecord(audit: FindingWaiverRecordAudit): Readonly<{
|
|
37
32
|
readonly data: FileMetricsFindingWaiverAuditRecordData;
|
|
38
33
|
readonly id: string;
|
|
39
|
-
}
|
|
34
|
+
}>;
|
|
40
35
|
export declare function fileMetricsWaiverIdentity(waiver: MaterializedFindingWaiver): FileMetricsFindingIdentity;
|
|
41
36
|
/** Converts trusted scanner metrics into area-policy-owned supplemental facts. */
|
|
42
37
|
export declare function buildFileRecordCandidates(metrics: readonly FileMetric[], areaPolicy: FileMetricsAreaPolicyContext): readonly FileRecordCandidate[] | undefined;
|
|
@@ -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;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import type { ExactInputMeasurement } from "../../project-files/exact-input-measurement.ts";
|
|
2
2
|
import type { FileMetric } from "../measurement-model.ts";
|
|
3
|
-
export declare const SCC_VERSION = "
|
|
4
|
-
export declare const SCC_VERSION_OUTPUT = "scc version
|
|
3
|
+
export declare const SCC_VERSION = "4.0.0";
|
|
4
|
+
export declare const SCC_VERSION_OUTPUT = "scc version 4.0.0";
|
|
5
5
|
export declare const SCC_BY_FILE_CSV_HEADER = "Language,Provider,Filename,Lines,Code,Comments,Blanks,Complexity,Bytes,ULOC";
|
|
6
6
|
export type SccScanResult = {
|
|
7
7
|
readonly measurements: readonly ExactInputMeasurement<FileMetric>[];
|
|
@@ -14,12 +14,12 @@ export type SccScanResult = {
|
|
|
14
14
|
/**
|
|
15
15
|
* 解析 scc CSV 输出。
|
|
16
16
|
*
|
|
17
|
-
* scc
|
|
17
|
+
* scc 4.0.0 `--no-config --by-file --format csv` 列:
|
|
18
18
|
* Language,Provider,Filename,Lines,Code,Comments,Blanks,Complexity,Bytes,ULOC
|
|
19
19
|
*
|
|
20
20
|
* - Lines 包含所有行(code + comments + blanks)
|
|
21
21
|
* - Code 是文件级代码行数,用于 code-line finding
|
|
22
22
|
* - Complexity 是 scc complexitychecks token 命中数,用于 low-decision-token allowance,不是函数级 CC
|
|
23
|
-
* - ULOC (Usable Lines of Code) 由
|
|
23
|
+
* - ULOC (Usable Lines of Code) 由 4.0.0 输出,但首期不进入稳定 metrics
|
|
24
24
|
*/
|
|
25
25
|
export declare function parseSccCSV(csv: string, cwd: string): SccScanResult;
|
|
@@ -6,5 +6,5 @@ export interface FunctionMetricInstance {
|
|
|
6
6
|
export interface FunctionMetricAnalysis {
|
|
7
7
|
readonly instances: readonly FunctionMetricInstance[];
|
|
8
8
|
}
|
|
9
|
-
export declare function analyzeFunctionMetrics(metrics: readonly
|
|
9
|
+
export declare function analyzeFunctionMetrics(metrics: readonly unknown[]): FunctionMetricAnalysis | undefined;
|
|
10
10
|
export declare function isStableFunctionName(name: string): boolean;
|
|
@@ -0,0 +1,174 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Derived from terryyin/lizard 1.24.0.
|
|
3
|
+
* Sources: lizard.py nesting stack and FileInfoBuilder lifecycle;
|
|
4
|
+
* lizard_ext/lizardnd.py typed FileInfoBuilder lifecycle seam.
|
|
5
|
+
* Upstream revision: 308b1c3efd8c1c69bcc3eb82deeaec64fd3662ec.
|
|
6
|
+
* SPDX-License-Identifier: Apache-2.0 AND MIT
|
|
7
|
+
* Modified: mutable analysis context isolated from result models and pipeline.
|
|
8
|
+
*/
|
|
9
|
+
import { FunctionInfo, FileInformation, Nesting } from "./analysis-model.ts";
|
|
10
|
+
export interface NestingStackLike {
|
|
11
|
+
withNamespace(name: string): string;
|
|
12
|
+
addBareNesting(): void;
|
|
13
|
+
addNamespace(token: string): void;
|
|
14
|
+
startNewFunctionNesting(functionInfo: FunctionInfo): void;
|
|
15
|
+
popNesting(): Nesting | undefined;
|
|
16
|
+
readonly currentNestingLevel: number;
|
|
17
|
+
readonly lastFunction: FunctionInfo | undefined;
|
|
18
|
+
}
|
|
19
|
+
/**
|
|
20
|
+
* The source spelling exposed by Python's FileInfoBuilder.__getattr__.
|
|
21
|
+
*
|
|
22
|
+
* A translated extension may only implement the methods it decorates, as
|
|
23
|
+
* lizardduplicate's NestingStackWithUnifiedTokens does. The adapter below
|
|
24
|
+
* supplies all remaining names from its wrapped stack just like __getattr__.
|
|
25
|
+
*/
|
|
26
|
+
export interface SourceNestingStackLike {
|
|
27
|
+
nesting_stack: Nesting[];
|
|
28
|
+
pending_function: FunctionInfo | undefined;
|
|
29
|
+
with_namespace(name: string): string;
|
|
30
|
+
add_bare_nesting(): void;
|
|
31
|
+
add_namespace(token: string): void;
|
|
32
|
+
start_new_function_nesting(functionInfo: FunctionInfo): void;
|
|
33
|
+
pop_nesting(): Nesting | undefined;
|
|
34
|
+
readonly current_nesting_level: number;
|
|
35
|
+
readonly last_function: FunctionInfo | undefined;
|
|
36
|
+
}
|
|
37
|
+
/** The complete spelling bridge passed to source-aligned nesting decorators. */
|
|
38
|
+
export interface NestingStackAdapter extends NestingStackLike, SourceNestingStackLike {
|
|
39
|
+
}
|
|
40
|
+
/** A source-aligned nesting-stack decorator constructor. */
|
|
41
|
+
export interface NestingStackDecorator<Decorated extends object = NestingStackLike> {
|
|
42
|
+
new (decorated: NestingStackAdapter): Decorated;
|
|
43
|
+
}
|
|
44
|
+
/** The nesting stack that readers use to qualify and complete functions. */
|
|
45
|
+
export declare class NestingStack implements NestingStackAdapter {
|
|
46
|
+
private nestingStack;
|
|
47
|
+
private pendingFunction;
|
|
48
|
+
/** Source-name aliases retain the mutable stack storage for decorators. */
|
|
49
|
+
get nesting_stack(): Nesting[];
|
|
50
|
+
set nesting_stack(value: Nesting[]);
|
|
51
|
+
get pending_function(): FunctionInfo | undefined;
|
|
52
|
+
set pending_function(value: FunctionInfo | undefined);
|
|
53
|
+
withNamespace(name: string): string;
|
|
54
|
+
with_namespace(name: string): string;
|
|
55
|
+
addBareNesting(): void;
|
|
56
|
+
add_bare_nesting(): void;
|
|
57
|
+
addNamespace(token: string): void;
|
|
58
|
+
add_namespace(token: string): void;
|
|
59
|
+
startNewFunctionNesting(functionInfo: FunctionInfo): void;
|
|
60
|
+
start_new_function_nesting(functionInfo: FunctionInfo): void;
|
|
61
|
+
popNesting(): Nesting | undefined;
|
|
62
|
+
pop_nesting(): Nesting | undefined;
|
|
63
|
+
get currentNestingLevel(): number;
|
|
64
|
+
get current_nesting_level(): number;
|
|
65
|
+
get lastFunction(): FunctionInfo | undefined;
|
|
66
|
+
get last_function(): FunctionInfo | undefined;
|
|
67
|
+
private createNesting;
|
|
68
|
+
}
|
|
69
|
+
/**
|
|
70
|
+
* The reader context used to build one file and its function list. It keeps
|
|
71
|
+
* the mutable state that upstream readers intentionally share across stages.
|
|
72
|
+
*/
|
|
73
|
+
export declare class FileInfoBuilder {
|
|
74
|
+
fileinfo: FileInformation;
|
|
75
|
+
currentLine: number;
|
|
76
|
+
forgive: boolean;
|
|
77
|
+
forgiveGlobal: boolean;
|
|
78
|
+
newline: boolean;
|
|
79
|
+
globalPseudoFunction: FunctionInfo;
|
|
80
|
+
currentFunction: FunctionInfo;
|
|
81
|
+
stackedFunctions: FunctionInfo[];
|
|
82
|
+
private nestingStack;
|
|
83
|
+
private readonly decoratedStackFallbacks;
|
|
84
|
+
constructor(filename: string);
|
|
85
|
+
/**
|
|
86
|
+
* These aliases preserve the source extension/context protocol while keeping
|
|
87
|
+
* a single mutable storage location for each analyzer value.
|
|
88
|
+
*/
|
|
89
|
+
get current_line(): number;
|
|
90
|
+
set current_line(value: number);
|
|
91
|
+
get forgive_global(): boolean;
|
|
92
|
+
set forgive_global(value: boolean);
|
|
93
|
+
get global_pseudo_function(): FunctionInfo;
|
|
94
|
+
set global_pseudo_function(value: FunctionInfo);
|
|
95
|
+
get current_function(): FunctionInfo;
|
|
96
|
+
set current_function(value: FunctionInfo);
|
|
97
|
+
get stacked_functions(): FunctionInfo[];
|
|
98
|
+
set stacked_functions(value: FunctionInfo[]);
|
|
99
|
+
get _nesting_stack(): object;
|
|
100
|
+
set _nesting_stack(value: object);
|
|
101
|
+
withNamespace(name: string): string;
|
|
102
|
+
with_namespace(name: string): string;
|
|
103
|
+
addBareNesting(): void;
|
|
104
|
+
add_bare_nesting(): void;
|
|
105
|
+
addNamespace(token: string): void;
|
|
106
|
+
add_namespace(token: string): void;
|
|
107
|
+
startNewFunctionNesting(functionInfo: FunctionInfo): void;
|
|
108
|
+
start_new_function_nesting(functionInfo: FunctionInfo): void;
|
|
109
|
+
get currentNestingLevel(): number;
|
|
110
|
+
get current_nesting_level(): number;
|
|
111
|
+
get lastFunction(): FunctionInfo | undefined;
|
|
112
|
+
get last_function(): FunctionInfo | undefined;
|
|
113
|
+
/** Equivalent to Python's decorate_nesting_stack extension seam. */
|
|
114
|
+
decorateNestingStack<Decorated extends object>(decorateClass: NestingStackDecorator<Decorated>): Decorated;
|
|
115
|
+
decorate_nesting_stack<Decorated extends object>(decorateClass: NestingStackDecorator<Decorated>): Decorated;
|
|
116
|
+
popNesting(): void;
|
|
117
|
+
pop_nesting(): void;
|
|
118
|
+
private finishPoppedNesting;
|
|
119
|
+
addNloc(count: number): void;
|
|
120
|
+
add_nloc(count: number): void;
|
|
121
|
+
tryNewFunction(name: string): void;
|
|
122
|
+
try_new_function(name: string): void;
|
|
123
|
+
confirmNewFunction(): void;
|
|
124
|
+
confirm_new_function(): void;
|
|
125
|
+
restartNewFunction(name: string): void;
|
|
126
|
+
restart_new_function(name: string): void;
|
|
127
|
+
pushNewFunction(name: string): void;
|
|
128
|
+
push_new_function(name: string): void;
|
|
129
|
+
addCondition(increment?: number): void;
|
|
130
|
+
add_condition(increment?: number): void;
|
|
131
|
+
/** Source lizardnd.py's monkey-patched FileInfoBuilder method surface. */
|
|
132
|
+
addNdCondition(increment?: number): number;
|
|
133
|
+
add_nd_condition(increment?: number): number;
|
|
134
|
+
resetNdComplexity(): void;
|
|
135
|
+
reset_nd_complexity(): void;
|
|
136
|
+
addHiddenBracketCondition(increment?: number): void;
|
|
137
|
+
add_hidden_bracket_condition(increment?: number): void;
|
|
138
|
+
getHiddenBracket(): number;
|
|
139
|
+
get_hidden_bracket(): number;
|
|
140
|
+
loopBracketStatus(): void;
|
|
141
|
+
loop_bracket_status(): void;
|
|
142
|
+
getLoopStatus(): boolean;
|
|
143
|
+
get_loop_status(): boolean;
|
|
144
|
+
setInCondition(inCondition: boolean): void;
|
|
145
|
+
set_in_condition(inCondition: boolean): void;
|
|
146
|
+
getInCondition(): boolean;
|
|
147
|
+
get_in_condition(): boolean;
|
|
148
|
+
incrementConditionDepth(): void;
|
|
149
|
+
increment_condition_depth(): void;
|
|
150
|
+
decrementConditionDepth(): void;
|
|
151
|
+
decrement_condition_depth(): void;
|
|
152
|
+
getConditionDepth(): number;
|
|
153
|
+
get_condition_depth(): number;
|
|
154
|
+
resetConditionTracking(): void;
|
|
155
|
+
reset_condition_tracking(): void;
|
|
156
|
+
setLogicalOperatorAdded(added: boolean): void;
|
|
157
|
+
set_logical_operator_added(added: boolean): void;
|
|
158
|
+
getLogicalOperatorAdded(): boolean;
|
|
159
|
+
get_logical_operator_added(): boolean;
|
|
160
|
+
setPrevWasElse(value: boolean): void;
|
|
161
|
+
set_prev_was_else(value: boolean): void;
|
|
162
|
+
getPrevWasElse(): boolean;
|
|
163
|
+
get_prev_was_else(): boolean;
|
|
164
|
+
clearPrevWasElse(): void;
|
|
165
|
+
clear_prev_was_else(): void;
|
|
166
|
+
addToLongFunctionName(appended: string): void;
|
|
167
|
+
add_to_long_function_name(appended: string): void;
|
|
168
|
+
addToFunctionName(appended: string): void;
|
|
169
|
+
add_to_function_name(appended: string): void;
|
|
170
|
+
parameter(token: string): void;
|
|
171
|
+
endOfFunction(): void;
|
|
172
|
+
end_of_function(): void;
|
|
173
|
+
private get nestingStackAdapter();
|
|
174
|
+
}
|
|
@@ -0,0 +1,135 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Derived from terryyin/lizard 1.24.0.
|
|
3
|
+
* Sources: lizard.py FunctionInfo and FileInformation; lizard_ext/lizardcomplextags.py
|
|
4
|
+
* and lizard_ext/lizardnd.py FunctionInfo lifecycle seams.
|
|
5
|
+
* Upstream revision: 308b1c3efd8c1c69bcc3eb82deeaec64fd3662ec.
|
|
6
|
+
* SPDX-License-Identifier: Apache-2.0 AND MIT
|
|
7
|
+
* Modified: mutable analysis result state isolated from execution and reporting.
|
|
8
|
+
*/
|
|
9
|
+
export declare class AttributeError extends Error {
|
|
10
|
+
constructor(targetName: string, attributeName: string);
|
|
11
|
+
}
|
|
12
|
+
/** One lexical nesting level. */
|
|
13
|
+
export declare class Nesting {
|
|
14
|
+
get nameInSpace(): string;
|
|
15
|
+
get name_in_space(): string;
|
|
16
|
+
}
|
|
17
|
+
export declare const BARE_NESTING: Nesting;
|
|
18
|
+
/** A named namespace/class scope in a function name. */
|
|
19
|
+
export declare class Namespace extends Nesting {
|
|
20
|
+
readonly name: string;
|
|
21
|
+
constructor(name: string);
|
|
22
|
+
get nameInSpace(): string;
|
|
23
|
+
}
|
|
24
|
+
/** Lizard's mutable per-function metrics model. */
|
|
25
|
+
export declare class FunctionInfo extends Nesting {
|
|
26
|
+
name: string;
|
|
27
|
+
filename: string;
|
|
28
|
+
startLine: number;
|
|
29
|
+
cyclomaticComplexity: number;
|
|
30
|
+
nloc: number;
|
|
31
|
+
tokenCount: number;
|
|
32
|
+
longName: string;
|
|
33
|
+
endLine: number;
|
|
34
|
+
fullParameters: string[];
|
|
35
|
+
topNestingLevel: number;
|
|
36
|
+
fanIn: number;
|
|
37
|
+
fanOut: number;
|
|
38
|
+
generalFanOut: number;
|
|
39
|
+
maxNestingDepth: number;
|
|
40
|
+
/** Source lizardcomplextags.py storage; absent until its processor observes a token. */
|
|
41
|
+
complexTags: [string, number][] | undefined;
|
|
42
|
+
/** Source lizardnd.py's per-function mutable processor state. */
|
|
43
|
+
nestingDepth: number;
|
|
44
|
+
hiddenBracket: number;
|
|
45
|
+
bracketLoop: boolean;
|
|
46
|
+
inCondition: boolean;
|
|
47
|
+
conditionDepth: number;
|
|
48
|
+
logicalOperatorAdded: boolean;
|
|
49
|
+
prevWasElse: boolean;
|
|
50
|
+
forgivenMetrics: Set<string>;
|
|
51
|
+
constructor(name: string, filename: string, startLine?: number, ccn?: number);
|
|
52
|
+
/**
|
|
53
|
+
* Source-name aliases share the camel-case storage above. They are an
|
|
54
|
+
* analyzer-internal translation seam for extension bodies, not a Product API.
|
|
55
|
+
*/
|
|
56
|
+
get cyclomatic_complexity(): number;
|
|
57
|
+
set cyclomatic_complexity(value: number);
|
|
58
|
+
get token_count(): number;
|
|
59
|
+
set token_count(value: number);
|
|
60
|
+
get long_name(): string;
|
|
61
|
+
set long_name(value: string);
|
|
62
|
+
get start_line(): number;
|
|
63
|
+
set start_line(value: number);
|
|
64
|
+
get end_line(): number;
|
|
65
|
+
set end_line(value: number);
|
|
66
|
+
get full_parameters(): string[];
|
|
67
|
+
set full_parameters(value: string[]);
|
|
68
|
+
get top_nesting_level(): number;
|
|
69
|
+
set top_nesting_level(value: number);
|
|
70
|
+
get fan_in(): number;
|
|
71
|
+
set fan_in(value: number);
|
|
72
|
+
get fan_out(): number;
|
|
73
|
+
set fan_out(value: number);
|
|
74
|
+
get general_fan_out(): number;
|
|
75
|
+
set general_fan_out(value: number);
|
|
76
|
+
get max_nesting_depth(): number;
|
|
77
|
+
set max_nesting_depth(value: number);
|
|
78
|
+
get complex_tags(): [string, number][] | undefined;
|
|
79
|
+
set complex_tags(value: [string, number][] | undefined);
|
|
80
|
+
get nesting_depth(): number;
|
|
81
|
+
set nesting_depth(value: number);
|
|
82
|
+
get hidden_bracket(): number;
|
|
83
|
+
set hidden_bracket(value: number);
|
|
84
|
+
get bracket_loop(): boolean;
|
|
85
|
+
set bracket_loop(value: boolean);
|
|
86
|
+
get in_condition(): boolean;
|
|
87
|
+
set in_condition(value: boolean);
|
|
88
|
+
get condition_depth(): number;
|
|
89
|
+
set condition_depth(value: number);
|
|
90
|
+
get logical_operator_added(): boolean;
|
|
91
|
+
set logical_operator_added(value: boolean);
|
|
92
|
+
get prev_was_else(): boolean;
|
|
93
|
+
set prev_was_else(value: boolean);
|
|
94
|
+
get forgiven_metrics(): Set<string>;
|
|
95
|
+
set forgiven_metrics(value: Set<string>);
|
|
96
|
+
get nameInSpace(): string;
|
|
97
|
+
get unqualifiedName(): string;
|
|
98
|
+
get unqualified_name(): string;
|
|
99
|
+
get location(): string;
|
|
100
|
+
get parameterCount(): number;
|
|
101
|
+
get parameter_count(): number;
|
|
102
|
+
get parameters(): string[];
|
|
103
|
+
get length(): number;
|
|
104
|
+
addToFunctionName(appended: string): void;
|
|
105
|
+
add_to_function_name(appended: string): void;
|
|
106
|
+
addToLongName(appended: string): void;
|
|
107
|
+
add_to_long_name(appended: string): void;
|
|
108
|
+
addParameter(token: string): void;
|
|
109
|
+
add_parameter(token: string): void;
|
|
110
|
+
}
|
|
111
|
+
/** Lizard's mutable aggregate for a single source file. */
|
|
112
|
+
export declare class FileInformation {
|
|
113
|
+
filename: string;
|
|
114
|
+
nloc: number;
|
|
115
|
+
functionList: FunctionInfo[];
|
|
116
|
+
tokenCount: number;
|
|
117
|
+
constructor(filename: string, nloc: number, functionList?: FunctionInfo[]);
|
|
118
|
+
/** Source-name aliases share the camel-case storage for internal extensions. */
|
|
119
|
+
get function_list(): FunctionInfo[];
|
|
120
|
+
set function_list(value: FunctionInfo[]);
|
|
121
|
+
get token_count(): number;
|
|
122
|
+
set token_count(value: number);
|
|
123
|
+
get averageNloc(): number;
|
|
124
|
+
get average_nloc(): number;
|
|
125
|
+
get averageTokenCount(): number;
|
|
126
|
+
get average_token_count(): number;
|
|
127
|
+
get averageCyclomaticComplexity(): number;
|
|
128
|
+
get average_cyclomatic_complexity(): number;
|
|
129
|
+
get ccn(): number;
|
|
130
|
+
get CCN(): number;
|
|
131
|
+
get nestingDepth(): number;
|
|
132
|
+
get ND(): number;
|
|
133
|
+
functionsAverage(attribute: string): number;
|
|
134
|
+
functions_average(attribute: string): number;
|
|
135
|
+
}
|
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Analyzer-internal TypeScript contracts for reader and token-processor composition.
|
|
3
|
+
* This type-only host seam is erased at runtime: it neither copies nor implements
|
|
4
|
+
* translated Lizard behavior and is intentionally outside translated-source provenance.
|
|
5
|
+
*/
|
|
6
|
+
import type { FileInfoBuilder } from "./analysis-context.ts";
|
|
7
|
+
import type { LizardExtension } from "./extensions/protocol.ts";
|
|
8
|
+
export type TokenStream = Iterable<string>;
|
|
9
|
+
/** The minimum reader contract used by the in-memory Lizard pipeline. */
|
|
10
|
+
export interface AnalyzerReader {
|
|
11
|
+
readonly conditions: ReadonlySet<string>;
|
|
12
|
+
readonly controlFlowKeywords: ReadonlySet<string>;
|
|
13
|
+
readonly logicalOperators: ReadonlySet<string>;
|
|
14
|
+
readonly caseKeywords: ReadonlySet<string>;
|
|
15
|
+
readonly ternaryOperators: ReadonlySet<string>;
|
|
16
|
+
readonly control_flow_keywords: ReadonlySet<string>;
|
|
17
|
+
readonly logical_operators: ReadonlySet<string>;
|
|
18
|
+
readonly case_keywords: ReadonlySet<string>;
|
|
19
|
+
readonly ternary_operators: ReadonlySet<string>;
|
|
20
|
+
readonly ext: readonly string[];
|
|
21
|
+
readonly languages: unknown;
|
|
22
|
+
readonly languageNames: readonly string[];
|
|
23
|
+
/** Source `language_names` alias used by translated internal extensions. */
|
|
24
|
+
readonly language_names: readonly string[];
|
|
25
|
+
readonly extraSubclasses: ReadonlySet<unknown>;
|
|
26
|
+
readonly extra_subclasses: ReadonlySet<unknown>;
|
|
27
|
+
readonly parallelStates: readonly unknown[];
|
|
28
|
+
readonly parallel_states: readonly unknown[];
|
|
29
|
+
readonly context: FileInfoBuilder;
|
|
30
|
+
/** Optional source reader attributes consumed by lizardnd.py. */
|
|
31
|
+
readonly loops?: readonly string[] | ReadonlySet<string>;
|
|
32
|
+
readonly bracket?: string;
|
|
33
|
+
readonly loop_indicator?: string;
|
|
34
|
+
readonly indent_indicator?: string;
|
|
35
|
+
__call__(tokens: TokenStream, reader: AnalyzerReader): TokenStream;
|
|
36
|
+
getCommentFromToken(token: string): string | undefined;
|
|
37
|
+
process(tokens: TokenStream): TokenStream;
|
|
38
|
+
preprocess?(tokens: TokenStream): TokenStream;
|
|
39
|
+
}
|
|
40
|
+
/** A concrete reader supplies its tokenizer and receives a per-file context. */
|
|
41
|
+
export interface ReaderConstructor<Reader extends AnalyzerReader = AnalyzerReader> {
|
|
42
|
+
new (context: FileInfoBuilder): Reader;
|
|
43
|
+
generateTokens(sourceCode: string): TokenStream;
|
|
44
|
+
}
|
|
45
|
+
/** One source-aligned stage between tokenization and reader state processing. */
|
|
46
|
+
export type TokenProcessor = (tokens: TokenStream, reader: AnalyzerReader) => TokenStream;
|
|
47
|
+
/** A core processor or one internal Lizard extension processor. */
|
|
48
|
+
export type AnalyzerProcessor = TokenProcessor | LizardExtension;
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Derived from terryyin/lizard 1.24.0.
|
|
3
|
+
* Source: lizard_ext/lizardcomplextags.py.
|
|
4
|
+
* Upstream revision: 308b1c3efd8c1c69bcc3eb82deeaec64fd3662ec.
|
|
5
|
+
* SPDX-License-Identifier: MIT
|
|
6
|
+
* Modified: mechanically translated to the Check-private TypeScript port.
|
|
7
|
+
*/
|
|
8
|
+
import type { AnalyzerReader, TokenStream } from "../contracts.ts";
|
|
9
|
+
import type { LizardExtension as LizardExtensionProtocol } from "./protocol.ts";
|
|
10
|
+
/** Records every source reader condition token with its current source line. */
|
|
11
|
+
export declare class LizardExtension implements LizardExtensionProtocol {
|
|
12
|
+
__call__(tokens: TokenStream, reader: AnalyzerReader): Generator<string>;
|
|
13
|
+
}
|