@zxyycom/vibe-check 0.0.1 → 0.0.2
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 +47 -74
- package/dist/esm/cache/cache-json-by-key.mjs +189 -0
- package/dist/esm/cache/cache-json-by-key.mjs.map +1 -0
- package/dist/esm/check/check.mjs.map +1 -1
- package/dist/esm/check/finding-presentation.mjs +40 -0
- package/dist/esm/check/finding-presentation.mjs.map +1 -0
- package/dist/esm/check/inherited-collection.mjs +1 -1
- package/dist/esm/check/inherited-collection.mjs.map +1 -1
- package/dist/esm/check-settlement/fact-validation.mjs +17 -23
- package/dist/esm/check-settlement/fact-validation.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/closed-values.mjs +16 -0
- package/dist/esm/data-boundary/closed-values.mjs.map +1 -1
- 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 +9 -2
- package/dist/esm/index.mjs.map +1 -1
- package/dist/esm/learned-critical-path/duration-model/bounded-history.mjs +56 -0
- package/dist/esm/learned-critical-path/duration-model/bounded-history.mjs.map +1 -0
- package/dist/esm/learned-critical-path/duration-model/prediction.mjs +122 -0
- package/dist/esm/learned-critical-path/duration-model/prediction.mjs.map +1 -0
- package/dist/esm/learned-critical-path/duration-model/preparation.mjs +41 -0
- package/dist/esm/learned-critical-path/duration-model/preparation.mjs.map +1 -0
- package/dist/esm/learned-critical-path/duration-model/recording.mjs +109 -0
- package/dist/esm/learned-critical-path/duration-model/recording.mjs.map +1 -0
- package/dist/esm/learned-critical-path/duration-model/storage.mjs +187 -0
- package/dist/esm/learned-critical-path/duration-model/storage.mjs.map +1 -0
- package/dist/esm/learned-critical-path/selection-layers.mjs +28 -0
- package/dist/esm/learned-critical-path/selection-layers.mjs.map +1 -0
- package/dist/esm/learned-critical-path/static-decision.mjs +55 -0
- package/dist/esm/learned-critical-path/static-decision.mjs.map +1 -0
- package/dist/esm/learned-critical-path/strategy.mjs +179 -0
- package/dist/esm/learned-critical-path/strategy.mjs.map +1 -0
- package/dist/esm/machine-output/v4/atomic-publication.mjs +1 -15
- package/dist/esm/machine-output/v4/atomic-publication.mjs.map +1 -1
- 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/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 +1 -1
- package/dist/esm/package-checks/duplicate-detection/default-check.mjs.map +1 -1
- package/dist/esm/package-checks/duplicate-detection/execution.mjs +44 -18
- 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 +1 -1
- 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/execution.mjs +10 -17
- 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/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 +1 -1
- package/dist/esm/package-checks/file-metrics/scc/availability.mjs.map +1 -1
- 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 +2 -2
- package/dist/esm/package-checks/file-metrics/scc/scanner.mjs.map +1 -1
- package/dist/esm/package-checks/function-metrics/analysis.mjs +56 -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 +24 -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 +217 -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 +100 -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 +260 -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 +402 -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 +214 -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 +79 -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 +606 -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 +23 -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 +542 -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 +62 -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 +108 -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 +2 -2
- package/dist/esm/package-checks/function-metrics/constructor.mjs.map +1 -1
- package/dist/esm/package-checks/function-metrics/execution.mjs +51 -33
- 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 +161 -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/{file-metrics/scc → 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 +1 -1
- package/dist/esm/package-checks/host-environment/git.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/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-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/maintenance-reminders/final-data.mjs.map +1 -1
- package/dist/esm/package-checks/markdown-link-validation/default-check.mjs +9 -3
- 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/options-resolution.mjs +26 -4
- 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 +24 -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 +185 -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/project-files/collection.mjs +1 -1
- package/dist/esm/package-checks/project-files/collection.mjs.map +1 -1
- package/dist/esm/package-checks/project-files/configuration.mjs +2 -10
- package/dist/esm/package-checks/project-files/configuration.mjs.map +1 -1
- package/dist/esm/package-checks/project-files/gitlink-revision.mjs +1 -1
- package/dist/esm/package-checks/project-files/gitlink-revision.mjs.map +1 -1
- package/dist/esm/package-checks/project-files/gitlink-worktree.mjs +1 -1
- 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-worktree-files.mjs +1 -1
- 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 +39 -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 +153 -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 +85 -0
- package/dist/esm/package-checks/secret-detection/secretlint/adapter.mjs.map +1 -0
- package/dist/esm/project-definition/check-tree/authoring.mjs +12 -172
- package/dist/esm/project-definition/check-tree/authoring.mjs.map +1 -1
- package/dist/esm/project-definition/check-tree/check-fields-authoring.mjs +171 -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/materialization.mjs +9 -1
- package/dist/esm/project-definition/check-tree/materialization.mjs.map +1 -1
- package/dist/esm/project-definition/check-tree/resolution.mjs +45 -13
- 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 +73 -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-definition-validation.mjs +100 -16
- package/dist/esm/project-definition/project-definition-validation.mjs.map +1 -1
- package/dist/esm/project-definition/project-definition.mjs +52 -47
- 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 +54 -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 +7 -5
- package/dist/esm/project-run/aggregation.mjs.map +1 -1
- package/dist/esm/project-run/check-execution/callback.mjs +35 -8
- 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 +21 -3
- package/dist/esm/project-run/check-execution/dependencies.mjs.map +1 -1
- package/dist/esm/project-run/check-execution/execution-finalization.mjs +54 -13
- package/dist/esm/project-run/check-execution/execution-finalization.mjs.map +1 -1
- package/dist/esm/project-run/check-execution/execution-settlement.mjs +13 -9
- package/dist/esm/project-run/check-execution/execution-settlement.mjs.map +1 -1
- package/dist/esm/project-run/check-execution/flag-controls.mjs +87 -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.mjs +18 -32
- package/dist/esm/project-run/check-execution/preflight.mjs.map +1 -1
- package/dist/esm/project-run/check-execution/resolved-checks.mjs +100 -58
- 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/{completion.mjs → completion/completion.mjs} +16 -38
- 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 +75 -11
- package/dist/esm/project-run/controls/validation.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 +61 -0
- package/dist/esm/project-run/invocation/candidate.mjs.map +1 -0
- package/dist/esm/project-run/invocation/creation.mjs +79 -0
- package/dist/esm/project-run/invocation/creation.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.mjs → invocation/run.mjs} +78 -92
- package/dist/esm/project-run/invocation/run.mjs.map +1 -0
- package/dist/esm/project-run/invocation/scheduler.mjs +57 -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 +112 -18
- package/dist/esm/project-run/progress-rendering/presentation.mjs.map +1 -1
- package/dist/esm/project-run/progress-rendering/renderer-formatting.mjs +108 -19
- package/dist/esm/project-run/progress-rendering/renderer-formatting.mjs.map +1 -1
- package/dist/esm/project-run/progress-rendering/renderer-lifecycle.mjs +30 -4
- package/dist/esm/project-run/progress-rendering/renderer-lifecycle.mjs.map +1 -1
- package/dist/esm/project-run/progress-rendering/renderer.mjs +5 -2
- package/dist/esm/project-run/progress-rendering/renderer.mjs.map +1 -1
- package/dist/esm/project-run/project-context.mjs +1 -1
- 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.mjs +166 -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 +198 -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 +151 -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/critical-path-ranking.mjs +46 -0
- package/dist/esm/project-run/task-scheduler/critical-path-ranking.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 +207 -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 +158 -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 +89 -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 +171 -114
- package/dist/esm/project-run/task-scheduler/scheduler.mjs.map +1 -1
- package/docs/api-mechanics.md +64 -137
- package/docs/changelog.md +157 -0
- package/docs/checks/duplicate-detection.md +111 -59
- package/docs/checks/file-metrics.md +46 -43
- package/docs/checks/function-metrics.md +100 -163
- package/docs/checks/json-schema-validation.md +43 -36
- package/docs/checks/json-validation.md +38 -25
- package/docs/checks/maintenance-reminders.md +41 -29
- package/docs/checks/markdown-link-validation.md +82 -54
- package/docs/checks/secret-detection.md +129 -0
- package/docs/examples/artifacts/mixed-outcomes/definition.ts +5 -5
- package/docs/guides/cache-results.md +63 -0
- package/docs/guides/callbacks.md +34 -0
- package/docs/guides/check-dependencies.md +121 -0
- package/docs/guides/collecting-project-files.md +59 -0
- package/docs/guides/extending-check-lifecycle.md +112 -0
- package/docs/guides/finding-waivers.md +45 -0
- package/docs/guides/learned-scheduling.md +83 -0
- package/docs/guides/presenting-findings.md +54 -0
- package/docs/guides/run-outputs.md +145 -0
- package/docs/guides/scheduling.md +208 -0
- package/docs/guides/simulating-admission.md +55 -0
- package/docs/output.md +11 -20
- 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 +18 -6
- package/src/cache/cache-json-by-key.ts +304 -0
- package/src/check/check.ts +67 -17
- package/src/check/finding-presentation.ts +67 -0
- package/src/check/inherited-collection.ts +1 -1
- package/src/check-settlement/fact-validation.ts +29 -39
- 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/closed-values.ts +29 -0
- package/src/data-boundary/value-shapes.ts +12 -0
- package/src/index.ts +70 -2
- package/src/learned-critical-path/duration-model/bounded-history.ts +108 -0
- package/src/learned-critical-path/duration-model/prediction.ts +181 -0
- package/src/learned-critical-path/duration-model/preparation.ts +77 -0
- package/src/learned-critical-path/duration-model/recording.ts +208 -0
- package/src/learned-critical-path/duration-model/storage.ts +252 -0
- package/src/learned-critical-path/selection-layers.ts +72 -0
- package/src/learned-critical-path/static-decision.ts +105 -0
- package/src/learned-critical-path/strategy.ts +299 -0
- package/src/machine-output/v4/atomic-publication.ts +1 -16
- 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/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 +1 -1
- package/src/package-checks/duplicate-detection/execution.ts +82 -22
- 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 +1 -1
- 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 +21 -1
- package/src/package-checks/duplicate-detection/records.ts +65 -12
- package/src/package-checks/file-metrics/execution.ts +16 -17
- 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/records.ts +11 -23
- package/src/package-checks/file-metrics/scc/availability.ts +1 -1
- package/src/package-checks/file-metrics/scc/parser.ts +4 -4
- package/src/package-checks/file-metrics/scc/scanner.ts +2 -2
- package/src/package-checks/function-metrics/analysis.ts +76 -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 +261 -0
- package/src/package-checks/function-metrics/analyzer/extensions/extension-base.ts +33 -0
- package/src/package-checks/function-metrics/analyzer/extensions/lizardcomplextags.ts +27 -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 +311 -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 +107 -0
- package/src/package-checks/function-metrics/analyzer/readers/perl.ts +340 -0
- package/src/package-checks/function-metrics/analyzer/readers/php-states.ts +246 -0
- package/src/package-checks/function-metrics/analyzer/readers/php.ts +63 -0
- package/src/package-checks/function-metrics/analyzer/readers/plsql.ts +306 -0
- package/src/package-checks/function-metrics/analyzer/readers/python.ts +431 -0
- package/src/package-checks/function-metrics/analyzer/readers/r.ts +234 -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 +90 -0
- package/src/package-checks/function-metrics/analyzer/readers/typescript.ts +593 -0
- package/src/package-checks/function-metrics/analyzer/readers/vue.ts +43 -0
- package/src/package-checks/function-metrics/analyzer/readers/zig.ts +35 -0
- package/src/package-checks/function-metrics/analyzer/shared/clike.ts +541 -0
- package/src/package-checks/function-metrics/analyzer/shared/code-reader.ts +682 -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 +75 -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 +150 -0
- package/src/package-checks/function-metrics/analyzer-worker.ts +31 -0
- package/src/package-checks/function-metrics/constructor.ts +2 -2
- package/src/package-checks/function-metrics/execution.ts +94 -39
- 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 +221 -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 +27 -11
- 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 +2 -2
- package/src/package-checks/host-environment/process.ts +10 -0
- 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 +23 -0
- 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/maintenance-reminders/final-data.ts +18 -0
- package/src/package-checks/markdown-link-validation/default-check.ts +9 -3
- 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/options-resolution.ts +31 -3
- package/src/package-checks/markdown-link-validation/options-validation.ts +27 -19
- package/src/package-checks/markdown-link-validation/options.ts +15 -0
- package/src/package-checks/markdown-link-validation/parse-facts-cache-payload.ts +246 -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/project-files/collection.ts +1 -1
- package/src/package-checks/project-files/configuration.ts +3 -14
- package/src/package-checks/project-files/gitlink-revision.ts +1 -1
- package/src/package-checks/project-files/gitlink-worktree.ts +1 -1
- package/src/package-checks/project-files/public-collection.ts +92 -0
- package/src/package-checks/project-files/revision-worktree-files.ts +1 -1
- package/src/package-checks/secret-detection/classification.ts +30 -0
- package/src/package-checks/secret-detection/default-check.ts +50 -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 +233 -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 +36 -0
- package/src/package-checks/secret-detection/records.ts +77 -0
- package/src/package-checks/secret-detection/secretlint/adapter.ts +123 -0
- package/src/project-definition/check-tree/authoring.ts +29 -230
- package/src/project-definition/check-tree/check-fields-authoring.ts +227 -0
- package/src/project-definition/check-tree/collection-authoring.ts +13 -0
- package/src/project-definition/check-tree/materialization.ts +9 -1
- package/src/project-definition/check-tree/resolution.ts +80 -22
- package/src/project-definition/check-tree/scheduling-authoring.ts +114 -0
- package/src/project-definition/declarative-snapshot.ts +87 -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-definition-validation.ts +117 -18
- package/src/project-definition/project-definition.ts +198 -61
- package/src/project-definition/resource-unit-mapping.ts +25 -0
- package/src/project-definition/scheduler-policy.ts +553 -0
- package/src/project-run/admission-strategy-provider/custom-strategy-preparation.ts +80 -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 +10 -5
- package/src/project-run/check-execution/callback.ts +50 -8
- package/src/project-run/check-execution/console-capture.ts +262 -0
- package/src/project-run/check-execution/dependencies.ts +43 -6
- package/src/project-run/check-execution/execution-finalization.ts +99 -25
- package/src/project-run/check-execution/execution-settlement.ts +19 -11
- package/src/project-run/check-execution/flag-controls.ts +132 -0
- package/src/project-run/check-execution/lifecycle.ts +21 -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.ts +23 -43
- package/src/project-run/check-execution/resolved-checks.ts +165 -126
- package/src/project-run/check-execution/resolved-execution-result.ts +22 -0
- package/src/project-run/{completion.ts → completion/completion.ts} +17 -57
- 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 +25 -2
- 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 +107 -12
- 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 +86 -0
- package/src/project-run/invocation/creation.ts +116 -0
- package/src/project-run/invocation/paths.ts +154 -0
- package/src/project-run/invocation/progress.ts +38 -0
- package/src/project-run/{invocation.ts → invocation/run.ts} +125 -120
- package/src/project-run/invocation/scheduler.ts +75 -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 +118 -26
- package/src/project-run/progress-rendering/renderer-formatting.ts +166 -19
- package/src/project-run/progress-rendering/renderer-lifecycle.ts +38 -3
- package/src/project-run/progress-rendering/renderer.ts +13 -2
- package/src/project-run/project-context.ts +3 -2
- package/src/project-run/result.ts +49 -3
- package/src/project-run/run.ts +7 -6
- package/src/project-run/task-scheduler/admission-core/compiled-graph.ts +316 -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 +295 -0
- package/src/project-run/task-scheduler/admission-core/selection-seed.ts +252 -0
- package/src/project-run/task-scheduler/admission-core/selection-transition.ts +236 -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/critical-path-ranking.ts +76 -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 +261 -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 +190 -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 +124 -0
- package/src/project-run/task-scheduler/scheduler-task-lifecycle.ts +150 -0
- package/src/project-run/task-scheduler/scheduler-terminal-measurement.ts +95 -0
- package/src/project-run/task-scheduler/scheduler.ts +216 -171
- package/types/cache/cache-json-by-key.d.ts +53 -0
- package/types/check/check.d.ts +62 -17
- package/types/check/finding-presentation.d.ts +25 -0
- package/types/check/inherited-collection.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/closed-values.d.ts +8 -0
- package/types/data-boundary/value-shapes.d.ts +3 -0
- package/types/index.d.ts +22 -7
- package/types/learned-critical-path/duration-model/bounded-history.d.ts +34 -0
- package/types/learned-critical-path/duration-model/prediction.d.ts +32 -0
- package/types/learned-critical-path/duration-model/preparation.d.ts +28 -0
- package/types/learned-critical-path/duration-model/recording.d.ts +28 -0
- package/types/learned-critical-path/duration-model/storage.d.ts +12 -0
- package/types/learned-critical-path/selection-layers.d.ts +14 -0
- package/types/learned-critical-path/static-decision.d.ts +3 -0
- package/types/learned-critical-path/strategy.d.ts +35 -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/duplicate-detection/area-policy.d.ts +1 -1
- 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 +18 -1
- package/types/package-checks/duplicate-detection/records.d.ts +20 -3
- package/types/package-checks/file-metrics/finding-messages.d.ts +4 -0
- package/types/package-checks/file-metrics/records.d.ts +5 -10
- 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 +1 -1
- 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 +23 -10
- 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 +1 -1
- package/types/package-checks/host-environment/process.d.ts +5 -0
- package/types/package-checks/json-schema-validation/final-data.d.ts +8 -0
- package/types/package-checks/json-schema-validation/options.d.ts +31 -3
- package/types/package-checks/json-validation/final-data.d.ts +5 -0
- package/types/package-checks/maintenance-reminders/final-data.d.ts +18 -0
- package/types/package-checks/markdown-link-validation/default-check.d.ts +9 -3
- 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 +15 -0
- 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/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 +11 -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 +32 -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/project-definition/check-tree/authoring.d.ts +11 -14
- package/types/project-definition/check-tree/check-fields-authoring.d.ts +25 -0
- package/types/project-definition/check-tree/collection-authoring.d.ts +2 -0
- package/types/project-definition/check-tree/resolution.d.ts +8 -3
- package/types/project-definition/check-tree/scheduling-authoring.d.ts +19 -0
- package/types/project-definition/declarative-snapshot.d.ts +7 -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-definition.d.ts +61 -16
- 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 +1 -1
- 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 +1 -1
- package/types/project-run/check-execution/execution-finalization.d.ts +17 -7
- package/types/project-run/check-execution/execution-settlement.d.ts +5 -2
- package/types/project-run/check-execution/flag-controls.d.ts +27 -0
- package/types/project-run/check-execution/lifecycle.d.ts +20 -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.d.ts +6 -5
- package/types/project-run/check-execution/resolved-checks.d.ts +32 -38
- package/types/project-run/check-execution/resolved-execution-result.d.ts +21 -0
- package/types/project-run/{completion.d.ts → completion/completion.d.ts} +4 -4
- 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 +25 -2
- 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-creation.d.ts → invocation/creation.d.ts} +3 -3
- 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 +9 -5
- package/types/project-run/progress-rendering/renderer-formatting.d.ts +8 -0
- package/types/project-run/progress-rendering/renderer-lifecycle.d.ts +6 -1
- package/types/project-run/progress-rendering/renderer.d.ts +7 -1
- package/types/project-run/project-context.d.ts +2 -1
- package/types/project-run/result.d.ts +37 -3
- package/types/project-run/run.d.ts +6 -5
- 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/critical-path-ranking.d.ts +19 -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/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 +0 -17
- 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/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.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/invocation-creation.ts +0 -160
- 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/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,15 +1,27 @@
|
|
|
1
1
|
import type { FindingPolicy } from "../code-quality-findings/policy.ts";
|
|
2
2
|
import type { ResolvedFunctionMetricsLimits } from "./options.ts";
|
|
3
3
|
export interface MetricValue {
|
|
4
|
-
readonly source: "
|
|
4
|
+
readonly source: "typescript-analyzer";
|
|
5
5
|
readonly value: number | null;
|
|
6
6
|
}
|
|
7
|
+
/** One CCN-contributing token and its one-based source line. */
|
|
8
|
+
export interface ComplexityContributor {
|
|
9
|
+
readonly line: number;
|
|
10
|
+
readonly token: string;
|
|
11
|
+
}
|
|
12
|
+
/** A nesting-depth value is complete for every function admitted to this Product metric. */
|
|
13
|
+
export interface NestingDepthMetricValue {
|
|
14
|
+
readonly source: "typescript-analyzer";
|
|
15
|
+
readonly value: number;
|
|
16
|
+
}
|
|
7
17
|
export interface FunctionMetric {
|
|
18
|
+
readonly complexityContributors: readonly ComplexityContributor[];
|
|
8
19
|
readonly cyclomaticComplexity: MetricValue;
|
|
9
20
|
readonly endLine: number;
|
|
10
21
|
readonly file: string;
|
|
11
22
|
readonly lines: number;
|
|
12
23
|
readonly name: string;
|
|
24
|
+
readonly nestingDepth: NestingDepthMetricValue;
|
|
13
25
|
readonly parameterCount: number;
|
|
14
26
|
readonly startLine: number;
|
|
15
27
|
}
|
|
@@ -1,21 +1,36 @@
|
|
|
1
|
+
import { type FunctionMetricsWorkerPort } from "./analyzer-worker-port.ts";
|
|
1
2
|
import type { FunctionMetric, FunctionMetricsExactInputSet } from "./measurement-model.ts";
|
|
2
|
-
import type { ResolvedFunctionMetricsScannerOptions } from "./options.ts";
|
|
3
3
|
export type FunctionMeasurementResult = Readonly<{
|
|
4
|
+
kind: "analysis-failed";
|
|
5
|
+
} | {
|
|
4
6
|
kind: "cancelled";
|
|
5
7
|
} | {
|
|
6
8
|
kind: "complete";
|
|
7
9
|
metrics: readonly FunctionMetric[];
|
|
8
10
|
} | {
|
|
9
|
-
kind: "
|
|
10
|
-
} | {
|
|
11
|
-
kind: "invalid-result";
|
|
11
|
+
kind: "resource-limit-exceeded";
|
|
12
12
|
} | {
|
|
13
|
-
kind: "unavailable";
|
|
13
|
+
kind: "source-unavailable";
|
|
14
14
|
}>;
|
|
15
15
|
interface FunctionMeasurementInput {
|
|
16
|
-
readonly dependency: ResolvedFunctionMetricsScannerOptions;
|
|
17
16
|
readonly input: FunctionMetricsExactInputSet;
|
|
18
17
|
readonly signal: AbortSignal;
|
|
19
18
|
}
|
|
20
|
-
export
|
|
19
|
+
export interface FunctionMeasurementDependencies {
|
|
20
|
+
readonly createWorker: () => FunctionMetricsWorkerPort;
|
|
21
|
+
readonly yieldAdmission: () => Promise<void>;
|
|
22
|
+
}
|
|
23
|
+
/**
|
|
24
|
+
* The Check parent admits exactly its selected sources and bounds their bytes;
|
|
25
|
+
* one Worker only analyzes those source texts and never discovers or reads paths.
|
|
26
|
+
*/
|
|
27
|
+
export declare function measureFunctionMetrics({ input, signal }: FunctionMeasurementInput, dependencies?: Partial<FunctionMeasurementDependencies>): Promise<FunctionMeasurementResult>;
|
|
28
|
+
/**
|
|
29
|
+
* Product-owned replacement for Lizard 1.24 `auto_open.auto_read` at the
|
|
30
|
+
* admitted-source boundary. A valid initial UTF-8 BOM is `utf-8-sig` and text
|
|
31
|
+
* newlines are universal; a decoding failure retries the complete byte sequence
|
|
32
|
+
* with Python's `errors="ignore"`, which deliberately retains an initial BOM
|
|
33
|
+
* and raw newlines on that retry.
|
|
34
|
+
*/
|
|
35
|
+
export declare function decodeLizardAutoRead(bytes: Uint8Array): string;
|
|
21
36
|
export {};
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import type { ProjectFileSelection, ProjectFileSelectionOptions } from "../project-files/configuration.ts";
|
|
2
2
|
import type { FindingPolicy } from "../code-quality-findings/policy.ts";
|
|
3
|
+
import type { FindingWaiver } from "../../finding-waivers/reconciliation.ts";
|
|
3
4
|
/** `functionMetrics` 构造函数可省略的文件选择策略。 */
|
|
4
5
|
export type FunctionMetricsFileOptions = ProjectFileSelectionOptions;
|
|
5
6
|
/** `functionMetrics` 构造函数可省略的函数指标上限。 */
|
|
@@ -18,6 +19,10 @@ export interface FunctionMetricsLimitOptions {
|
|
|
18
19
|
/** 省略时为 `12`。 */
|
|
19
20
|
readonly maximum?: number;
|
|
20
21
|
}>;
|
|
22
|
+
readonly nestingDepth?: Readonly<{
|
|
23
|
+
/** 省略时为 `7`。 */
|
|
24
|
+
readonly maximum?: number;
|
|
25
|
+
}>;
|
|
21
26
|
readonly parameters?: Readonly<{
|
|
22
27
|
/** 省略时为 `6`。 */
|
|
23
28
|
readonly maximum?: number;
|
|
@@ -32,24 +37,32 @@ export interface FunctionMetricsCodeAreaOptions {
|
|
|
32
37
|
/** 省略的嵌套上限使用 package 默认值。 */
|
|
33
38
|
readonly limits?: FunctionMetricsLimitOptions;
|
|
34
39
|
}
|
|
35
|
-
/**
|
|
36
|
-
export
|
|
37
|
-
|
|
38
|
-
|
|
40
|
+
/** function-metrics 可形成 Finding 的封闭 metric 名称。 */
|
|
41
|
+
export type FunctionMetricsFindingMetric = "cyclomatic-complexity" | "function-code-density" | "nesting-depth" | "parameter-count";
|
|
42
|
+
/** function-metrics 用于精确识别一条可豁免 metric finding 的稳定字段。 */
|
|
43
|
+
export interface FunctionMetricsFindingIdentity {
|
|
44
|
+
readonly functionName: string;
|
|
45
|
+
readonly metric: FunctionMetricsFindingMetric;
|
|
46
|
+
/** 已 normalized 的 project-root-relative slash path。 */
|
|
47
|
+
readonly path: string;
|
|
48
|
+
/** 该次 finding 中函数起始位置的一基行号;位置变化会让旧 waiver 进入 unused audit。 */
|
|
49
|
+
readonly startLine: number;
|
|
39
50
|
}
|
|
51
|
+
/** 一项 function-metrics metric finding 的声明式豁免。 */
|
|
52
|
+
export type FunctionMetricsFindingWaiver = FindingWaiver<FunctionMetricsFindingIdentity>;
|
|
40
53
|
/** `functionMetrics(options?)` 接受并补齐默认值的公开策略。 */
|
|
41
54
|
export interface FunctionMetricsOptions {
|
|
42
55
|
/** 省略时建立默认 `project` 区域;显式映射必须非空,且每个区域必须声明 `files`。 */
|
|
43
56
|
readonly codeAreas?: Readonly<Record<string, FunctionMetricsCodeAreaOptions>>;
|
|
44
57
|
/** 省略时为 `non-blocking`;区域可局部覆盖。 */
|
|
45
58
|
readonly findingPolicy?: FindingPolicy;
|
|
46
|
-
/**
|
|
47
|
-
readonly
|
|
59
|
+
/** 省略时没有豁免;只匹配 normal metric finding,不匹配 input rejection。 */
|
|
60
|
+
readonly findingWaivers?: readonly FunctionMetricsFindingWaiver[];
|
|
48
61
|
}
|
|
49
62
|
/** 构造函数生成并由 Check preflight/execution 消费的完整 options。 */
|
|
50
63
|
export interface ResolvedFunctionMetricsOptions {
|
|
51
64
|
readonly codeAreas: Readonly<Record<string, ResolvedFunctionMetricsCodeAreaOptions>>;
|
|
52
|
-
readonly
|
|
65
|
+
readonly findingWaivers: readonly FunctionMetricsFindingWaiver[];
|
|
53
66
|
}
|
|
54
67
|
export interface ResolvedFunctionMetricsCodeAreaOptions {
|
|
55
68
|
readonly files: ProjectFileSelection;
|
|
@@ -67,10 +80,10 @@ export interface ResolvedFunctionMetricsLimits {
|
|
|
67
80
|
readonly cyclomaticComplexity: Readonly<{
|
|
68
81
|
readonly maximum: number;
|
|
69
82
|
}>;
|
|
83
|
+
readonly nestingDepth: Readonly<{
|
|
84
|
+
readonly maximum: number;
|
|
85
|
+
}>;
|
|
70
86
|
readonly parameters: Readonly<{
|
|
71
87
|
readonly maximum: number;
|
|
72
88
|
}>;
|
|
73
89
|
}
|
|
74
|
-
export interface ResolvedFunctionMetricsScannerOptions {
|
|
75
|
-
readonly executable: string;
|
|
76
|
-
}
|
|
@@ -1,17 +1,30 @@
|
|
|
1
1
|
import { type FunctionMetricAnalysis } from "./analysis.ts";
|
|
2
|
+
import type { MaterializedFindingWaiver } from "../../finding-waivers/reconciliation.ts";
|
|
3
|
+
import { type FindingWaiverAuditRecordData, type FindingWaiverRecordAudit } from "../code-quality-findings/finding-waiver-evidence.ts";
|
|
2
4
|
import type { FunctionMetricsAreaInput } from "./measurement-model.ts";
|
|
3
|
-
type
|
|
5
|
+
import type { FunctionMetricsFindingIdentity, FunctionMetricsFindingMetric } from "./options.ts";
|
|
4
6
|
/** 一条超出函数 metric 上限的 supplemental Record data。 */
|
|
5
7
|
export type FunctionMetricsFindingRecordData = Readonly<{
|
|
6
8
|
readonly blocking: boolean;
|
|
7
9
|
readonly codeAreas: readonly string[];
|
|
10
|
+
/** Complete source-ordered CCN contributors; present only for CCN findings. */
|
|
11
|
+
readonly complexityContributors?: readonly Readonly<{
|
|
12
|
+
readonly line: number;
|
|
13
|
+
readonly token: string;
|
|
14
|
+
}>[];
|
|
8
15
|
readonly functionName: string;
|
|
9
16
|
readonly limit: number;
|
|
10
|
-
readonly metric:
|
|
17
|
+
readonly metric: FunctionMetricsFindingMetric;
|
|
11
18
|
readonly path: string;
|
|
12
19
|
readonly startLine: number;
|
|
13
20
|
readonly value: number;
|
|
21
|
+
/** 精确匹配 waiver 时保留理由,并令该 finding 不再参与 actionable settlement。 */
|
|
22
|
+
readonly waiver?: Readonly<{
|
|
23
|
+
readonly reason: string;
|
|
24
|
+
}>;
|
|
14
25
|
}>;
|
|
26
|
+
/** 未使用或过宽 function-metrics waiver 的 supplemental audit Record data。 */
|
|
27
|
+
export type FunctionMetricsFindingWaiverAuditRecordData = FindingWaiverAuditRecordData<FunctionMetricsFindingIdentity>;
|
|
15
28
|
/** 一条已被 files policy 选中、但不受 functionMetrics 支持的输入 Finding。 */
|
|
16
29
|
export type FunctionMetricsInputRejectedRecordData = Readonly<{
|
|
17
30
|
readonly blocking: false;
|
|
@@ -20,8 +33,8 @@ export type FunctionMetricsInputRejectedRecordData = Readonly<{
|
|
|
20
33
|
readonly path: string;
|
|
21
34
|
readonly reason: "unsupported-file-type";
|
|
22
35
|
}>;
|
|
23
|
-
/** functionMetrics 发布的 metric 或
|
|
24
|
-
export type FunctionMetricsRecordData = FunctionMetricsFindingRecordData | FunctionMetricsInputRejectedRecordData;
|
|
36
|
+
/** functionMetrics 发布的 metric、input-rejection 或 finding-waiver audit Record data。 */
|
|
37
|
+
export type FunctionMetricsRecordData = FunctionMetricsFindingRecordData | FunctionMetricsInputRejectedRecordData | FunctionMetricsFindingWaiverAuditRecordData;
|
|
25
38
|
export interface FunctionRecordCandidate {
|
|
26
39
|
readonly data: FunctionMetricsFindingRecordData;
|
|
27
40
|
readonly id: string;
|
|
@@ -32,6 +45,12 @@ export interface FunctionInputRejectedCandidate {
|
|
|
32
45
|
}
|
|
33
46
|
/** 为每个 rejected path 构造一条 area-aware、固定 non-blocking 的 Finding。 */
|
|
34
47
|
export declare function buildFunctionInputRejectedCandidates(codeAreasByPath: ReadonlyMap<string, readonly string[]>): readonly FunctionInputRejectedCandidate[];
|
|
48
|
+
export declare function functionMetricsFindingIdentity(candidate: FunctionRecordCandidate): FunctionMetricsFindingIdentity;
|
|
49
|
+
export declare function functionMetricsWaiverIdentity(waiver: MaterializedFindingWaiver): FunctionMetricsFindingIdentity;
|
|
50
|
+
/** 为一项未使用或过宽 waiver 构造 Check-owned audit Record。 */
|
|
51
|
+
export declare function functionMetricsWaiverAuditRecord(audit: FindingWaiverRecordAudit): Readonly<{
|
|
52
|
+
readonly data: FunctionMetricsFindingWaiverAuditRecordData;
|
|
53
|
+
readonly id: string;
|
|
54
|
+
}>;
|
|
35
55
|
/** 为每个超过 matching-area 最严格阈值的 metric 构造 supplemental fact。 */
|
|
36
56
|
export declare function buildFunctionRecordCandidates(analysis: FunctionMetricAnalysis, areas: readonly FunctionMetricsAreaInput[]): readonly FunctionRecordCandidate[] | undefined;
|
|
37
|
-
export {};
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
-
/** functionMetrics
|
|
2
|
-
export declare const
|
|
3
|
-
|
|
1
|
+
/** functionMetrics default files.include uses the adapter's case-insensitive suffix capability. */
|
|
2
|
+
export declare const FUNCTION_METRICS_SUPPORTED_FILE_GLOBS: readonly string[];
|
|
3
|
+
/** Whether an exact project-relative path has a translated analyzer reader. */
|
|
4
|
+
export declare function isFunctionMetricsTarget(filePath: string): boolean;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { ProcessResult, RunProcessSyncOptions } from "./process
|
|
1
|
+
import type { ProcessResult, RunProcessSyncOptions } from "./process.ts";
|
|
2
2
|
export type RunGitOptions = Omit<RunProcessSyncOptions, "command">;
|
|
3
3
|
export type GitCommitOptions = {
|
|
4
4
|
readonly cwd: string;
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
export { processFailure, processFailureFromResult, processFailed } from "./process/failure.ts";
|
|
2
|
+
export { PLAIN_TEXT_PROCESS_ENV, plainTextProcessEnv } from "./process/env.ts";
|
|
3
|
+
export { runProcess, runProcessSync } from "./process/runner.ts";
|
|
4
|
+
export { DEFAULT_PROCESS_MAX_BUFFER_BYTES } from "./process/contract.ts";
|
|
5
|
+
export type { ProcessFailure, ProcessResult, RunProcessOptions, RunProcessSyncOptions } from "./process/contract.ts";
|
|
@@ -2,13 +2,21 @@
|
|
|
2
2
|
export declare const MAX_REPORTED_JSON_SCHEMA_ISSUES = 100;
|
|
3
3
|
/** `json-schema-validation` 在 passed/failed outcome 中发布的主数据。 */
|
|
4
4
|
export interface JsonSchemaValidationFinalData {
|
|
5
|
+
/** Definition 中已声明的 binding 总数。 */
|
|
5
6
|
readonly bindingCount: number;
|
|
7
|
+
/** 因所引用 schema 存在 document 或 compile issue 而未验证 instance 的 binding 数。 */
|
|
6
8
|
readonly blockedBindingCount: number;
|
|
9
|
+
/** instance out-of-scope、document invalid 或不符合对应 schema 的 binding 数。 */
|
|
7
10
|
readonly invalidBindingCount: number;
|
|
11
|
+
/** schema document、compile、instance 与 keyword issue 的总数。 */
|
|
8
12
|
readonly issueCount: number;
|
|
13
|
+
/** 是否因发布上限而省略了一个或多个 issue Record。 */
|
|
9
14
|
readonly issuesTruncated: boolean;
|
|
15
|
+
/** 实际发布为 Record 的 issue 数。 */
|
|
10
16
|
readonly reportedIssueCount: number;
|
|
17
|
+
/** Definition 中声明的不同 schema identity 数。 */
|
|
11
18
|
readonly schemaCount: number;
|
|
19
|
+
/** input 符合对应 schema 的 binding 数。 */
|
|
12
20
|
readonly validBindingCount: number;
|
|
13
21
|
}
|
|
14
22
|
/** 验证计数与截断不变量并脱离 canonical final data。 */
|
|
@@ -1,30 +1,58 @@
|
|
|
1
1
|
import type { ProjectFileSelection, ProjectFileSelectionOptions } from "../project-files/configuration.ts";
|
|
2
|
-
|
|
2
|
+
/** 已注册 schema 的 root `$id` 与配置 identity 之间的全 Check 统一规则。 */
|
|
3
|
+
export type JsonSchemaIdentityMode =
|
|
4
|
+
/** root `$id` 必须等于 `schemas[].id`,该配置 ID 也是 engine identity。 */
|
|
5
|
+
"require-match"
|
|
6
|
+
/** 配置 ID 是 engine identity;object schema 的 invocation-local compile copy 使用该 `$id`。 */
|
|
7
|
+
| "configuration-authoritative"
|
|
8
|
+
/** 安全的 root `$id` 是 engine identity;配置 ID 仍是 binding 与公开事实的标签。 */
|
|
9
|
+
| "document-authoritative";
|
|
10
|
+
/** 整个 Check 共用、不能按单个 schema 混用的 root schema identity policy。 */
|
|
3
11
|
export interface JsonSchemaIdentity {
|
|
12
|
+
/** root `$id` 与配置 `schemas[].id` 的关系。 */
|
|
4
13
|
readonly mode: JsonSchemaIdentityMode;
|
|
5
14
|
}
|
|
6
|
-
|
|
15
|
+
/** allowlisted 引用解析可读取的单一 Schema 来源及其固定边界。 */
|
|
16
|
+
export type JsonSchemaReferenceSource =
|
|
17
|
+
/** Package 固定的 JSON Schema catalog;它不授权网络请求。 */
|
|
18
|
+
Readonly<{
|
|
7
19
|
readonly kind: "bundled";
|
|
8
20
|
readonly catalog: "json-schema-2020-12";
|
|
9
21
|
}> | Readonly<{
|
|
22
|
+
/** 只允许本 source 明确限定的 HTTPS reference scope。 */
|
|
10
23
|
readonly kind: "https";
|
|
24
|
+
/** 调用方为本 source 选择的安全稳定 identity,不是请求 URL。 */
|
|
11
25
|
readonly id: string;
|
|
26
|
+
/** 精确 HTTPS origin;不含 path、credentials、query 或 fragment。 */
|
|
12
27
|
readonly origin: string;
|
|
28
|
+
/** 已授权 URL path 的边界;从 `/` 开始,非 root prefix 必须以 `/` 结束。 */
|
|
13
29
|
readonly pathPrefix: string;
|
|
14
30
|
}>;
|
|
15
|
-
|
|
31
|
+
/** 本次 Check 解析 local、bundled 与 allowlisted Schema 引用的封闭策略。 */
|
|
32
|
+
export type JsonSchemaReferenceResolution =
|
|
33
|
+
/** 只使用 local schemas 和允许的 bundled catalog,不读取额外 HTTPS schema。 */
|
|
34
|
+
Readonly<{
|
|
16
35
|
readonly mode: "offline";
|
|
17
36
|
}> | Readonly<{
|
|
37
|
+
/** 只从 `sources` 的精确 scope 读取额外 schema;没有 implicit registry、headers 或 redirects。 */
|
|
18
38
|
readonly mode: "allowlisted";
|
|
39
|
+
/** 完整替换的明确 source 集合;每项决定自身可读取的 reference scope。 */
|
|
19
40
|
readonly sources: readonly JsonSchemaReferenceSource[];
|
|
20
41
|
}>;
|
|
42
|
+
/** 调用方注册的一份 local schema resource;注册表不自动发现 schema。 */
|
|
21
43
|
export interface RegisteredJsonSchema {
|
|
44
|
+
/** binding 与公开 facts 使用的安全 schema identity。 */
|
|
22
45
|
readonly id: string;
|
|
46
|
+
/** 已由 `files` selection 批准的 normalized project-relative `.json` path。 */
|
|
23
47
|
readonly path: string;
|
|
24
48
|
}
|
|
49
|
+
/** 调用方将一个已批准 local JSON instance 明确绑定到已注册 schema 的关系。 */
|
|
25
50
|
export interface JsonSchemaInstanceBinding {
|
|
51
|
+
/** 本次 Check 内唯一、用于公开 facts 的 binding identity。 */
|
|
26
52
|
readonly id: string;
|
|
53
|
+
/** 已由 `files` selection 批准的 normalized project-relative `.json` instance path。 */
|
|
27
54
|
readonly instancePath: string;
|
|
55
|
+
/** 必须引用 `schemas` 中已注册 schema 的 identity。 */
|
|
28
56
|
readonly schemaId: string;
|
|
29
57
|
}
|
|
30
58
|
/** `jsonSchemaValidation(options?)` 接受的可省略 authoring policy。 */
|
|
@@ -1,9 +1,14 @@
|
|
|
1
1
|
/** `json-validation` 在 passed/failed outcome 中发布的主数据。 */
|
|
2
2
|
export interface JsonValidationFinalData {
|
|
3
|
+
/** 已完成 JSON parse 判定的文件数,恒等于 validFileCount 与 invalidFileCount 之和。 */
|
|
3
4
|
readonly scannedFileCount: number;
|
|
5
|
+
/** 被 bounded strict-document boundary 接受为有效 JSON 的文件数。 */
|
|
4
6
|
readonly validFileCount: number;
|
|
7
|
+
/** 形成 `too-large`、encoding、syntax 或 duplicate-key document issue 的文件数。 */
|
|
5
8
|
readonly invalidFileCount: number;
|
|
9
|
+
/** 全部 invalid file 与 rejected input 的合计问题数。 */
|
|
6
10
|
readonly issueCount: number;
|
|
11
|
+
/** files policy 已选中、但因不是 lower-case `.json` path 而被拒绝的输入数。 */
|
|
7
12
|
readonly rejectedInputCount: number;
|
|
8
13
|
}
|
|
9
14
|
/** 验证计数不变量并脱离一份 `json-validation` canonical final-data object。 */
|
|
@@ -17,30 +17,48 @@ export declare function isMaintenanceReminderId(value: unknown): value is string
|
|
|
17
17
|
/** 判断 unknown value 是否为 Git 的完整 SHA-1 或 SHA-256 commit ID。 */
|
|
18
18
|
export declare function isMaintenanceCommitId(value: unknown): value is string;
|
|
19
19
|
export type MeasuredMaintenanceReminderAssessment = Readonly<{
|
|
20
|
+
/** 未超过任何阈值时为 clear;至少严格超过一个阈值时为 due。 */
|
|
20
21
|
readonly assessment: "clear" | "due";
|
|
22
|
+
/** reminder 配置锁定的完整基线 commit ID。 */
|
|
21
23
|
readonly baseCommit: string;
|
|
24
|
+
/** first-parent 区间内 numstat additions 与 deletions 的总和。 */
|
|
22
25
|
readonly changedLines: number;
|
|
26
|
+
/** 从 HEAD 沿 first-parent 到 baseCommit 的 commit 数。 */
|
|
23
27
|
readonly commitCount: number;
|
|
28
|
+
/** 实际值严格超过配置上限的维度;clear assessment 时为空。 */
|
|
24
29
|
readonly exceeded: readonly ("commits" | "changed-lines")[];
|
|
30
|
+
/** 测量时 HEAD 的完整 commit ID。 */
|
|
25
31
|
readonly headCommit: string;
|
|
32
|
+
/** Definition 中该 reminder 的稳定局部 ID。 */
|
|
26
33
|
readonly id: string;
|
|
34
|
+
/** due 或 unavailable 是否阻断 Check 的配置模式。 */
|
|
27
35
|
readonly mode: MaintenanceReminderMode;
|
|
28
36
|
}>;
|
|
29
37
|
export type UnavailableMaintenanceReminderAssessment = Readonly<{
|
|
38
|
+
/** 表示该 reminder 未能形成计数测量。 */
|
|
30
39
|
readonly assessment: "unavailable";
|
|
40
|
+
/** reminder 配置锁定的完整基线 commit ID。 */
|
|
31
41
|
readonly baseCommit: string;
|
|
42
|
+
/** unavailable assessment 不发布 partial changed-line count。 */
|
|
32
43
|
readonly changedLines: null;
|
|
44
|
+
/** unavailable assessment 不发布 partial commit count。 */
|
|
33
45
|
readonly commitCount: null;
|
|
46
|
+
/** unavailable assessment 不判定任何阈值已超过。 */
|
|
34
47
|
readonly exceeded: readonly [];
|
|
48
|
+
/** 已成功解析时的完整 HEAD commit ID;解析 HEAD 失败时为 null。 */
|
|
35
49
|
readonly headCommit: string | null;
|
|
50
|
+
/** Definition 中该 reminder 的稳定局部 ID。 */
|
|
36
51
|
readonly id: string;
|
|
52
|
+
/** due 或 unavailable 是否阻断 Check 的配置模式。 */
|
|
37
53
|
readonly mode: MaintenanceReminderMode;
|
|
54
|
+
/** 未能测量的稳定机器可读原因。 */
|
|
38
55
|
readonly reason: MaintenanceReminderUnavailableReason;
|
|
39
56
|
}>;
|
|
40
57
|
/** 单条维护提醒的 measured 或 unavailable discriminated assessment。 */
|
|
41
58
|
export type MaintenanceReminderAssessment = MeasuredMaintenanceReminderAssessment | UnavailableMaintenanceReminderAssessment;
|
|
42
59
|
/** `maintenance-reminders` 在 passed/failed outcome 中发布的主数据。 */
|
|
43
60
|
export interface MaintenanceRemindersFinalData {
|
|
61
|
+
/** 每个已配置 reminder 的唯一 assessment,按 Definition 顺序发布。 */
|
|
44
62
|
readonly entries: readonly MaintenanceReminderAssessment[];
|
|
45
63
|
}
|
|
46
64
|
/** 验证 discriminated entry assessments 并脱离 canonical final data。 */
|
|
@@ -4,15 +4,21 @@ import type { MarkdownLinkValidationOptions, ResolvedMarkdownLinkValidationOptio
|
|
|
4
4
|
/**
|
|
5
5
|
* 使用可省略的 source、target 与 work-limit policy 构造离线 Markdown 引用 Check。
|
|
6
6
|
*
|
|
7
|
-
* @param options - 省略字段由 package 补齐;files 数组是完整替换值,limits fields
|
|
7
|
+
* @param options - 省略字段由 package 补齐;files 数组是完整替换值,limits fields 可分别省略;cache 省略时关闭,启用时由调用方提供 absolute、可信且可删除的 directory,其中本 Check 只维护一个 source-derived JSONL local state;调用方负责容量和删除,cache 不可用不改变 Check 结果。
|
|
8
8
|
* @returns 固定 `markdown-link-validation` identity、完整冻结 options、parser 与执行逻辑。
|
|
9
|
-
* @throws {TypeError} input 含未知字段、非法 target policy 或非法 work limit 时抛出。
|
|
9
|
+
* @throws {TypeError} input 含未知字段、非法 target policy、cache branch/directory 或非法 work limit 时抛出。
|
|
10
10
|
* @example 离线 Markdown 本地链接完整性
|
|
11
11
|
* ```ts
|
|
12
12
|
* import { defineConfig, markdownLinkValidation, run } from "@zxyycom/vibe-check";
|
|
13
13
|
*
|
|
14
|
+
* // 此调用方自有目录是 absolute、可删除的,并且可能保存 source-derived parse facts。
|
|
15
|
+
* const cacheDirectory = new URL(".vibe-check/markdown-link-parse-cache", import.meta.url).pathname;
|
|
14
16
|
* const definition = defineConfig({
|
|
15
|
-
* checks: [
|
|
17
|
+
* checks: [
|
|
18
|
+
* markdownLinkValidation({
|
|
19
|
+
* cache: { enabled: true, directory: cacheDirectory }
|
|
20
|
+
* })
|
|
21
|
+
* ],
|
|
16
22
|
* outputs: {
|
|
17
23
|
* diagnosticLogging: { enabled: false },
|
|
18
24
|
* machinePublication: { enabled: false },
|
|
@@ -1,12 +1,10 @@
|
|
|
1
1
|
import type { ResolvedMarkdownLinkValidationOptions } from "./options.ts";
|
|
2
2
|
import type { CheckExecutionContext, CheckResult } from "../../check/check.ts";
|
|
3
|
-
import { type MarkdownLocalResolutionReason, type MarkdownSourceReadFailureReason } from "./local-resolver.ts";
|
|
4
3
|
import type { MarkdownLinkValidationFinalData } from "./final-data.ts";
|
|
4
|
+
export type { MarkdownLinkValidationUnavailableReason } from "./unavailable-reasons.ts";
|
|
5
5
|
export declare const MARKDOWN_LINK_VALIDATION_CHECK_DEFINITION: {
|
|
6
6
|
readonly checkId: "markdown-link-validation";
|
|
7
7
|
readonly displayName: "Markdown link validation";
|
|
8
8
|
};
|
|
9
|
-
/** `markdown-link-validation` whole-Check unavailable outcome 的稳定 reason code。 */
|
|
10
|
-
export type MarkdownLinkValidationUnavailableReason = "invalid-options" | "cancelled" | "occurrence-limit-exceeded" | "project-root-unavailable" | MarkdownLocalResolutionReason | MarkdownSourceReadFailureReason;
|
|
11
9
|
/** 验证本 Check 选中的 Markdown source 的离线本地链接完整性。 */
|
|
12
10
|
export declare function executeMarkdownLinkValidation(context: CheckExecutionContext<ResolvedMarkdownLinkValidationOptions>): Promise<CheckResult<MarkdownLinkValidationFinalData>>;
|
|
@@ -1,9 +1,14 @@
|
|
|
1
1
|
/** `markdown-link-validation` 在 passed/failed outcome 中发布的主数据。 */
|
|
2
2
|
export interface MarkdownLinkValidationFinalData {
|
|
3
|
+
/** 已成功读取并完成 Markdown link occurrence 提取的 source 文件数。 */
|
|
3
4
|
readonly sourceFileCount: number;
|
|
5
|
+
/** 从已处理 source 中提取的 semantic link occurrence 数。 */
|
|
4
6
|
readonly occurrenceCount: number;
|
|
7
|
+
/** 进入 direct endpoint validation 的 logical occurrence 数,包括 target memo hit。 */
|
|
5
8
|
readonly targetReadCount: number;
|
|
9
|
+
/** occurrence finding 与 rejected input 的合计数。 */
|
|
6
10
|
readonly findingCount: number;
|
|
11
|
+
/** files policy 已选中、但因不是 `.md`/`.markdown` path 而被拒绝的输入数。 */
|
|
7
12
|
readonly rejectedInputCount: number;
|
|
8
13
|
}
|
|
9
14
|
/** 验证计数不变量并脱离一份 canonical final-data object。 */
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import type { CheckMessage } from "../../check/check.ts";
|
|
2
|
+
import type { MarkdownLinkRecordCandidate } from "./records.ts";
|
|
3
|
+
/** Projects completed Link findings without copying raw destinations into presentation. */
|
|
4
|
+
export declare function markdownFindingMessages(candidates: readonly MarkdownLinkRecordCandidate[], rejectedPaths: readonly string[], blocking: boolean): readonly CheckMessage[];
|
|
@@ -11,6 +11,7 @@ interface MarkdownLinkSource {
|
|
|
11
11
|
interface MarkdownLocalResolver {
|
|
12
12
|
readSource(rootRelativePath: string, maxMarkdownBytes: number): Promise<MarkdownSourceReadResult>;
|
|
13
13
|
resolve(request: MarkdownLocalResolutionRequest): Promise<MarkdownLocalResolution>;
|
|
14
|
+
finalize(): Promise<void>;
|
|
14
15
|
readonly targetReadCount: number;
|
|
15
16
|
}
|
|
16
17
|
interface MarkdownLocalResolutionRequest {
|
|
@@ -62,18 +63,23 @@ interface ParsedLocalDestination {
|
|
|
62
63
|
readonly fragment: string | null;
|
|
63
64
|
readonly isAbsolute: boolean;
|
|
64
65
|
}
|
|
65
|
-
|
|
66
|
-
readonly kind: "contained"
|
|
66
|
+
type RootProbe = Readonly<{
|
|
67
|
+
readonly kind: "contained";
|
|
67
68
|
readonly absolutePath: string;
|
|
68
|
-
|
|
69
|
-
|
|
69
|
+
/** The final component observation is present when containment walked it. */
|
|
70
|
+
readonly endpoint?: ExistingEndpointProbe;
|
|
71
|
+
}> | Readonly<{
|
|
72
|
+
readonly kind: "missing";
|
|
73
|
+
readonly absolutePath: string;
|
|
74
|
+
}> | Readonly<{
|
|
70
75
|
readonly kind: "outside";
|
|
71
76
|
}> | Readonly<{
|
|
72
77
|
readonly kind: "unavailable";
|
|
73
78
|
}>;
|
|
74
79
|
type EndpointProbe = Readonly<{
|
|
75
80
|
readonly kind: "missing";
|
|
76
|
-
}> |
|
|
81
|
+
}> | ExistingEndpointProbe;
|
|
82
|
+
type ExistingEndpointProbe = Readonly<{
|
|
77
83
|
readonly kind: "directory" | "file" | "unsupported" | "unavailable";
|
|
78
84
|
}>;
|
|
79
85
|
export declare function parseLocalDestination(rawDestination: string): ParsedLocalDestination | "not-local" | null;
|
|
@@ -89,4 +95,4 @@ export declare function sourceUnavailable(): MarkdownSourceReadResult;
|
|
|
89
95
|
export declare function valid(target: MarkdownSafeTargetDescriptor): MarkdownLocalResolution;
|
|
90
96
|
export declare function finding(reason: MarkdownLinkFindingReason, target: MarkdownSafeTargetDescriptor): MarkdownLocalResolution;
|
|
91
97
|
export declare function unavailable(reason: MarkdownLocalResolutionReason): MarkdownLocalResolution;
|
|
92
|
-
export type { MarkdownLinkSource, MarkdownLocalResolution, MarkdownLocalResolutionReason, MarkdownLocalResolver, MarkdownLocalResolverCreation, MarkdownLocalResolutionRequest, MarkdownSafeTargetDescriptor, MarkdownSourceReadResult, MarkdownSourceReadFailureReason, RootProbe, EndpointProbe, RootExternalTargetMode };
|
|
98
|
+
export type { MarkdownLinkSource, MarkdownLocalResolution, MarkdownLocalResolutionReason, MarkdownLocalResolver, MarkdownLocalResolverCreation, MarkdownLocalResolutionRequest, MarkdownSafeTargetDescriptor, MarkdownSourceReadResult, MarkdownSourceReadFailureReason, RootProbe, EndpointProbe, ExistingEndpointProbe, RootExternalTargetMode };
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import type { MarkdownLocalResolverCreation } from "./local-resolution.ts";
|
|
2
|
+
import type { ResolvedMarkdownLinkValidationOptions } from "./options.ts";
|
|
2
3
|
/** Link-private, per-invocation state for source reads and direct local targets. */
|
|
3
|
-
export declare function createMarkdownLocalResolver(projectRoot: string, maxTargetReads: number): Promise<MarkdownLocalResolverCreation>;
|
|
4
|
+
export declare function createMarkdownLocalResolver(projectRoot: string, maxTargetReads: number, cache: ResolvedMarkdownLinkValidationOptions["cache"], signal: AbortSignal): Promise<MarkdownLocalResolverCreation>;
|
|
4
5
|
export { anchorResolution, finding, isMarkdownPath, isNotFound, isRootRelativePath, isWithinRoot, parseLocalDestination, relativeSegments, sameRootRelativePath, sourceUnavailable, toSlashPath, unavailable, valid } from "./local-resolution.ts";
|
|
5
6
|
export type { EndpointProbe, MarkdownLinkFindingReason, MarkdownLinkSource, MarkdownLocalResolution, MarkdownLocalResolutionReason, MarkdownLocalResolutionRequest, MarkdownLocalResolver, MarkdownLocalResolverCreation, MarkdownSafeTargetDescriptor, MarkdownSourceReadFailureReason, MarkdownSourceReadResult, RootExternalTargetMode, RootProbe } from "./local-resolution.ts";
|
|
@@ -1,6 +1,13 @@
|
|
|
1
1
|
import type { ProjectFileSelection, ProjectFileSelectionOptions } from "../project-files/configuration.ts";
|
|
2
2
|
import type { FindingPolicy } from "../code-quality-findings/policy.ts";
|
|
3
3
|
export type MarkdownRootExternalTargetMode = "ignore" | "report" | "validate";
|
|
4
|
+
/** 调用方显式拥有的 Link-private parse-facts local cache policy。 */
|
|
5
|
+
type MarkdownLinkValidationCacheOptions = Readonly<{
|
|
6
|
+
readonly enabled: false;
|
|
7
|
+
}> | Readonly<{
|
|
8
|
+
readonly enabled: true;
|
|
9
|
+
readonly directory: string;
|
|
10
|
+
}>;
|
|
4
11
|
/** 可省略的 Markdown validation work limits。 */
|
|
5
12
|
export interface MarkdownLinkValidationLimitOptions {
|
|
6
13
|
readonly maxMarkdownBytes?: number;
|
|
@@ -25,6 +32,12 @@ export interface MarkdownLinkValidationOptions {
|
|
|
25
32
|
readonly requireNonEmptyDirectories?: boolean;
|
|
26
33
|
/** 每次运行的 Markdown 内容、occurrence 和 direct target work 上限。 */
|
|
27
34
|
readonly limits?: MarkdownLinkValidationLimitOptions;
|
|
35
|
+
/**
|
|
36
|
+
* 显式启用的、调用方拥有的 Link parse-facts persistent cache。省略时关闭;enabled directory 必须 absolute、可信且可删除。
|
|
37
|
+
* 本 Check 只在其中使用 `markdown-link-parse-facts-v1.jsonl` 保存 source-derived facts;调用方负责容量和删除,且不提供
|
|
38
|
+
* confidentiality、automatic cleanup、concurrency 或 durability guarantees。cache 不可用时 fresh-parse,Check 结果不变。
|
|
39
|
+
*/
|
|
40
|
+
readonly cache?: MarkdownLinkValidationCacheOptions;
|
|
28
41
|
}
|
|
29
42
|
/** `markdown-link-validation` execution 消费的完整、冻结 options。 */
|
|
30
43
|
export interface ResolvedMarkdownLinkValidationOptions {
|
|
@@ -35,9 +48,11 @@ export interface ResolvedMarkdownLinkValidationOptions {
|
|
|
35
48
|
readonly validateCrossDocumentAnchors: boolean;
|
|
36
49
|
readonly rootExternalTargetMode: MarkdownRootExternalTargetMode;
|
|
37
50
|
readonly requireNonEmptyDirectories: boolean;
|
|
51
|
+
readonly cache: MarkdownLinkValidationCacheOptions;
|
|
38
52
|
readonly limits: Readonly<{
|
|
39
53
|
readonly maxMarkdownBytes: number;
|
|
40
54
|
readonly maxOccurrences: number;
|
|
41
55
|
readonly maxTargetReads: number;
|
|
42
56
|
}>;
|
|
43
57
|
}
|
|
58
|
+
export {};
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import type { MarkdownHeading, MarkdownLinkOccurrence, ParsedMarkdownLinkFacts } from "./markdown-parser.ts";
|
|
2
|
+
/** Version the resolver memo and persistent identity share when parser facts change. */
|
|
3
|
+
export declare const MARKDOWN_LINK_PARSE_FACTS_PARSER_CONTRACT_VERSION = "mdast-gfm-frontmatter-github-slug-v1";
|
|
4
|
+
type MarkdownLinkParseFactsPayload = Readonly<{
|
|
5
|
+
readonly occurrences: readonly MarkdownLinkOccurrence[];
|
|
6
|
+
readonly headings: readonly MarkdownHeading[];
|
|
7
|
+
}>;
|
|
8
|
+
/**
|
|
9
|
+
* Serializes one complete Link-private JSONL envelope from immutable parser facts.
|
|
10
|
+
* The session owns when this line is appended; this codec owns its shape and identity.
|
|
11
|
+
*/
|
|
12
|
+
export declare function cacheEnvelopeLine(identityDigest: string, facts: ParsedMarkdownLinkFacts): string;
|
|
13
|
+
/** Restores one complete, current-version JSONL envelope or rejects it as a cache miss. */
|
|
14
|
+
export declare function parseCacheEnvelopeLine(line: string): Readonly<{
|
|
15
|
+
readonly identityDigest: string;
|
|
16
|
+
readonly facts: ParsedMarkdownLinkFacts;
|
|
17
|
+
}> | undefined;
|
|
18
|
+
/** SHA-256 identity over the current, exact authorized Markdown bytes. */
|
|
19
|
+
export declare function markdownBytesDigest(bytes: Uint8Array): string;
|
|
20
|
+
/** Converts parser-owned immutable facts to the closed persistent JSON payload. */
|
|
21
|
+
export declare function projectMarkdownLinkParseFactsPayload(facts: ParsedMarkdownLinkFacts): MarkdownLinkParseFactsPayload;
|
|
22
|
+
/** Strictly restores the Link-private persistent JSON payload to immutable parser facts. */
|
|
23
|
+
export declare function parseMarkdownLinkParseFactsPayload(value: unknown): ParsedMarkdownLinkFacts;
|
|
24
|
+
export {};
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { type MarkdownLinkParseResult } from "./markdown-parser.ts";
|
|
2
|
+
import type { ResolvedMarkdownLinkValidationOptions } from "./options.ts";
|
|
3
|
+
/**
|
|
4
|
+
* Link-private state for one resolver invocation's parse-facts cache lifecycle.
|
|
5
|
+
* It restores at most once, collects successful fresh facts by identity, and
|
|
6
|
+
* publishes at the execution terminal boundary.
|
|
7
|
+
*/
|
|
8
|
+
export declare class MarkdownLinkParseFactsSession {
|
|
9
|
+
#private;
|
|
10
|
+
constructor(cache: ResolvedMarkdownLinkValidationOptions["cache"]);
|
|
11
|
+
parse(bytes: Uint8Array, signal: AbortSignal): Promise<MarkdownLinkParseResult | undefined>;
|
|
12
|
+
finalize(signal: AbortSignal): Promise<void>;
|
|
13
|
+
}
|
|
@@ -1,13 +1,15 @@
|
|
|
1
|
-
import { type MarkdownLocalResolution, type MarkdownLocalResolutionRequest, type MarkdownLocalResolver, type MarkdownSafeTargetDescriptor, type
|
|
1
|
+
import { type MarkdownLocalResolution, type MarkdownLocalResolutionRequest, type MarkdownLocalResolver, type MarkdownSafeTargetDescriptor, type EndpointProbe } from "./local-resolution.ts";
|
|
2
|
+
import type { ResolvedMarkdownLinkValidationOptions } from "./options.ts";
|
|
2
3
|
export declare class LinkLocalResolver implements MarkdownLocalResolver {
|
|
3
4
|
#private;
|
|
4
|
-
constructor(canonicalProjectRoot: string, maxTargetReads: number);
|
|
5
|
+
constructor(canonicalProjectRoot: string, maxTargetReads: number, cache: ResolvedMarkdownLinkValidationOptions["cache"], signal: AbortSignal);
|
|
5
6
|
get targetReadCount(): number;
|
|
6
|
-
|
|
7
|
+
finalize(): Promise<void>;
|
|
8
|
+
readSource(rootRelativePath: string, maxMarkdownBytes: number): Promise<import("./local-resolution.ts").MarkdownSourceReadResult>;
|
|
7
9
|
resolve(request: MarkdownLocalResolutionRequest): Promise<MarkdownLocalResolution>;
|
|
8
10
|
resolveRootContainedTarget(targetPath: string, fragment: string | null, request: MarkdownLocalResolutionRequest): Promise<MarkdownLocalResolution>;
|
|
9
11
|
resolveExternalTarget(targetPath: string, fragment: string | null, request: MarkdownLocalResolutionRequest): Promise<MarkdownLocalResolution>;
|
|
10
|
-
resolveEndpoint(targetPath: string, fragment: string | null, request: MarkdownLocalResolutionRequest, target: MarkdownSafeTargetDescriptor): Promise<MarkdownLocalResolution>;
|
|
12
|
+
resolveEndpoint(endpoint: EndpointProbe, targetPath: string, fragment: string | null, request: MarkdownLocalResolutionRequest, target: MarkdownSafeTargetDescriptor): Promise<MarkdownLocalResolution>;
|
|
11
13
|
resolveFile(targetPath: string, fragment: string | null, request: MarkdownLocalResolutionRequest, target: MarkdownSafeTargetDescriptor): Promise<MarkdownLocalResolution>;
|
|
12
14
|
resolveDirectory(targetPath: string, fragment: string | null, request: MarkdownLocalResolutionRequest, target: MarkdownSafeTargetDescriptor): Promise<MarkdownLocalResolution>;
|
|
13
15
|
beginTargetValidation(): boolean;
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import type { MarkdownLinkParseResult } from "./markdown-parser.ts";
|
|
2
|
+
import { type MarkdownSourceReadResult } from "./local-resolution.ts";
|
|
3
|
+
export interface RootContainedMarkdownSourceReadRequest {
|
|
4
|
+
readonly canonicalProjectRoot: string;
|
|
5
|
+
readonly maxMarkdownBytes: number;
|
|
6
|
+
readonly parseMarkdownBytes: (bytes: Uint8Array) => Promise<MarkdownLinkParseResult | undefined>;
|
|
7
|
+
readonly rootRelativePath: string;
|
|
8
|
+
readonly signal: AbortSignal;
|
|
9
|
+
}
|
|
10
|
+
/** Reads one authorized Markdown source without granting target-resolution behavior. */
|
|
11
|
+
export declare function readRootContainedMarkdownSource(request: RootContainedMarkdownSourceReadRequest): Promise<MarkdownSourceReadResult>;
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import type { MarkdownLocalResolutionReason, MarkdownSourceReadFailureReason } from "./local-resolver.ts";
|
|
2
|
+
/** `markdown-link-validation` whole-Check unavailable outcome 的稳定 reason code。 */
|
|
3
|
+
export type MarkdownLinkValidationUnavailableReason = "invalid-options" | "cancelled" | "occurrence-limit-exceeded" | "project-root-unavailable" | MarkdownLocalResolutionReason | MarkdownSourceReadFailureReason;
|
|
4
|
+
export declare function markdownLinkUnavailableMessage(reason: MarkdownLinkValidationUnavailableReason): string;
|