@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
|
@@ -2,7 +2,13 @@ import { canonicalizeJsonObject } from "../data-boundary/canonical-data.ts";
|
|
|
2
2
|
import type { CheckOutcome } from "../check/check.ts";
|
|
3
3
|
import { validateCheckDescriptor } from "../check/descriptor-validation.ts";
|
|
4
4
|
import type { CoreCheck, CoreRecord, CoreSnapshot } from "./facts.ts";
|
|
5
|
-
import {
|
|
5
|
+
import {
|
|
6
|
+
hasExactPlainRecordKeys,
|
|
7
|
+
hasRequiredAndOptionalRecordKeys,
|
|
8
|
+
snapshotClosedArray,
|
|
9
|
+
snapshotClosedRecord
|
|
10
|
+
} from "../data-boundary/closed-values.ts";
|
|
11
|
+
import { isClosedCheckReason } from "./reason-shape.ts";
|
|
6
12
|
|
|
7
13
|
export interface ValidationIssue {
|
|
8
14
|
readonly path: string;
|
|
@@ -22,7 +28,7 @@ export type ValidationResult<T> = Readonly<
|
|
|
22
28
|
|
|
23
29
|
export function validateCoreSnapshot(value: unknown): ValidationResult<CoreSnapshot> {
|
|
24
30
|
const snapshot = snapshotClosedRecord(value);
|
|
25
|
-
if (snapshot === undefined || !
|
|
31
|
+
if (snapshot === undefined || !hasExactPlainRecordKeys(snapshot, ["checks", "records"])) {
|
|
26
32
|
return invalid("$", "Core snapshot must contain only checks and records");
|
|
27
33
|
}
|
|
28
34
|
const checksInput = snapshotClosedArray(snapshot.checks);
|
|
@@ -63,7 +69,10 @@ function validateChecks(values: readonly unknown[]): ValidationResult<readonly C
|
|
|
63
69
|
let previousCheckId: string | undefined;
|
|
64
70
|
for (const [index, value] of values.entries()) {
|
|
65
71
|
const check = snapshotClosedRecord(value);
|
|
66
|
-
if (
|
|
72
|
+
if (
|
|
73
|
+
check === undefined ||
|
|
74
|
+
!hasExactPlainRecordKeys(check, ["checkId", "displayName", "outcome"])
|
|
75
|
+
) {
|
|
67
76
|
return invalid(`$.checks[${index}]`, "Core Check must be closed");
|
|
68
77
|
}
|
|
69
78
|
const definition = validateCheckDescriptor({
|
|
@@ -126,7 +135,7 @@ function validateRecordRow(
|
|
|
126
135
|
ownerIds: ReadonlySet<string>
|
|
127
136
|
): ValidationResult<CoreRecord> {
|
|
128
137
|
const record = snapshotClosedRecord(value);
|
|
129
|
-
if (record === undefined || !
|
|
138
|
+
if (record === undefined || !hasExactPlainRecordKeys(record, ["checkId", "id", "data"]))
|
|
130
139
|
return invalid(`$.records[${index}]`, "Core Record must be closed");
|
|
131
140
|
if (
|
|
132
141
|
typeof record.checkId !== "string" ||
|
|
@@ -159,7 +168,7 @@ function validateFinalOutcome(
|
|
|
159
168
|
path: string
|
|
160
169
|
): ValidationResult<CheckOutcome> {
|
|
161
170
|
if (outcome.status === "passed" || outcome.status === "failed") {
|
|
162
|
-
if (!
|
|
171
|
+
if (!hasExactPlainRecordKeys(outcome, ["status", "data"]))
|
|
163
172
|
return invalid(path, "Final outcome is not closed");
|
|
164
173
|
const data = canonicalizeJsonObject(outcome.data);
|
|
165
174
|
return data === undefined
|
|
@@ -173,7 +182,12 @@ function validateNotApplicableOutcome(
|
|
|
173
182
|
outcome: Readonly<Record<string, unknown>>,
|
|
174
183
|
path: string
|
|
175
184
|
): ValidationResult<CheckOutcome> {
|
|
176
|
-
if (
|
|
185
|
+
if (
|
|
186
|
+
!hasRequiredAndOptionalRecordKeys(outcome, {
|
|
187
|
+
optional: ["reason"],
|
|
188
|
+
required: ["status"]
|
|
189
|
+
})
|
|
190
|
+
)
|
|
177
191
|
return invalid(path, "Not-applicable outcome is not closed");
|
|
178
192
|
const reason = validateReason(outcome.reason, false);
|
|
179
193
|
return reason === null
|
|
@@ -189,7 +203,7 @@ function validateUnavailableOutcome(
|
|
|
189
203
|
outcome: Readonly<Record<string, unknown>>,
|
|
190
204
|
path: string
|
|
191
205
|
): ValidationResult<CheckOutcome> {
|
|
192
|
-
if (!
|
|
206
|
+
if (!hasExactPlainRecordKeys(outcome, ["status", "reason"]))
|
|
193
207
|
return invalid(path, "Unavailable outcome is not closed");
|
|
194
208
|
const reason = validateReason(outcome.reason, true);
|
|
195
209
|
return reason === null || reason === undefined
|
|
@@ -203,26 +217,20 @@ function validateReason(
|
|
|
203
217
|
): Readonly<{ readonly code: string; readonly checkIds?: readonly string[] }> | null | undefined {
|
|
204
218
|
if (value === undefined) return undefined;
|
|
205
219
|
const reason = snapshotClosedRecord(value);
|
|
206
|
-
if (!
|
|
207
|
-
if (
|
|
220
|
+
if (!isClosedCheckReason(reason, allowCheckIds)) return null;
|
|
221
|
+
if (
|
|
222
|
+
!hasRequiredAndOptionalRecordKeys(reason, {
|
|
223
|
+
optional: allowCheckIds ? ["checkIds"] : [],
|
|
224
|
+
required: ["code"]
|
|
225
|
+
})
|
|
226
|
+
)
|
|
227
|
+
return null;
|
|
208
228
|
if (!Object.hasOwn(reason, "checkIds")) return Object.freeze({ code: reason.code });
|
|
209
229
|
const normalizedCheckIds = normalizedReasonCheckIds(reason.checkIds, allowCheckIds);
|
|
210
230
|
if (normalizedCheckIds === undefined) return null;
|
|
211
231
|
return Object.freeze({ code: reason.code, checkIds: Object.freeze(normalizedCheckIds) });
|
|
212
232
|
}
|
|
213
233
|
|
|
214
|
-
function isClosedReason(
|
|
215
|
-
value: Readonly<Record<string, unknown>> | undefined,
|
|
216
|
-
allowCheckIds: boolean
|
|
217
|
-
): value is Readonly<Record<string, unknown>> & Readonly<{ readonly code: string }> {
|
|
218
|
-
return (
|
|
219
|
-
value !== undefined &&
|
|
220
|
-
typeof value.code === "string" &&
|
|
221
|
-
value.code.length > 0 &&
|
|
222
|
-
hasOptionalKeys(value, ["code"], allowCheckIds ? ["checkIds"] : [])
|
|
223
|
-
);
|
|
224
|
-
}
|
|
225
|
-
|
|
226
234
|
function normalizedReasonCheckIds(
|
|
227
235
|
value: unknown,
|
|
228
236
|
allowCheckIds: boolean
|
|
@@ -243,24 +251,6 @@ function normalizedReasonCheckIds(
|
|
|
243
251
|
return Object.freeze(normalizedCheckIds);
|
|
244
252
|
}
|
|
245
253
|
|
|
246
|
-
function hasExactKeys(value: Readonly<Record<string, unknown>>, keys: readonly string[]): boolean {
|
|
247
|
-
return (
|
|
248
|
-
Object.keys(value).length === keys.length && keys.every((key) => Object.hasOwn(value, key))
|
|
249
|
-
);
|
|
250
|
-
}
|
|
251
|
-
|
|
252
|
-
function hasOptionalKeys(
|
|
253
|
-
value: Readonly<Record<string, unknown>>,
|
|
254
|
-
required: readonly string[],
|
|
255
|
-
optional: readonly string[]
|
|
256
|
-
): boolean {
|
|
257
|
-
const supported = new Set([...required, ...optional]);
|
|
258
|
-
return (
|
|
259
|
-
required.every((key) => Object.hasOwn(value, key)) &&
|
|
260
|
-
Object.keys(value).every((key) => supported.has(key))
|
|
261
|
-
);
|
|
262
|
-
}
|
|
263
|
-
|
|
264
254
|
function accepted<T>(value: T): ValidationResult<T> {
|
|
265
255
|
return Object.freeze({ ok: true, value });
|
|
266
256
|
}
|
|
@@ -1,6 +1,12 @@
|
|
|
1
1
|
import type { CheckOutcome } from "../check/check.ts";
|
|
2
2
|
import { canonicalizeJsonObject } from "../data-boundary/canonical-data.ts";
|
|
3
|
-
import {
|
|
3
|
+
import {
|
|
4
|
+
hasExactPlainRecordKeys,
|
|
5
|
+
hasRequiredAndOptionalRecordKeys,
|
|
6
|
+
snapshotClosedArray,
|
|
7
|
+
snapshotClosedRecord
|
|
8
|
+
} from "../data-boundary/closed-values.ts";
|
|
9
|
+
import { isClosedCheckReason } from "./reason-shape.ts";
|
|
4
10
|
|
|
5
11
|
interface OutcomeNormalizationInput {
|
|
6
12
|
readonly knownCheckIds: ReadonlySet<string>;
|
|
@@ -28,7 +34,7 @@ function normalizeFinalOutcome(
|
|
|
28
34
|
outcome: Readonly<Record<string, unknown>>
|
|
29
35
|
): CheckOutcome | undefined {
|
|
30
36
|
if (outcome.status !== "passed" && outcome.status !== "failed") return undefined;
|
|
31
|
-
if (!
|
|
37
|
+
if (!hasExactPlainRecordKeys(outcome, ["status", "data"])) return undefined;
|
|
32
38
|
const data = canonicalizeJsonObject(outcome.data);
|
|
33
39
|
return data === undefined ? undefined : Object.freeze({ status: outcome.status, data });
|
|
34
40
|
}
|
|
@@ -37,7 +43,13 @@ function normalizeNotApplicableOutcome(
|
|
|
37
43
|
outcome: Readonly<Record<string, unknown>>,
|
|
38
44
|
knownCheckIds: ReadonlySet<string>
|
|
39
45
|
): CheckOutcome | undefined {
|
|
40
|
-
if (
|
|
46
|
+
if (
|
|
47
|
+
!hasRequiredAndOptionalRecordKeys(outcome, {
|
|
48
|
+
optional: ["reason"],
|
|
49
|
+
required: ["status"]
|
|
50
|
+
})
|
|
51
|
+
)
|
|
52
|
+
return undefined;
|
|
41
53
|
if (outcome.reason === undefined) return Object.freeze({ status: "not-applicable" });
|
|
42
54
|
const reason = normalizeReason(outcome.reason, false, knownCheckIds);
|
|
43
55
|
return reason === undefined ? undefined : Object.freeze({ status: "not-applicable", reason });
|
|
@@ -48,7 +60,7 @@ function normalizeUnavailableOutcome(
|
|
|
48
60
|
productOutcome: boolean,
|
|
49
61
|
knownCheckIds: ReadonlySet<string>
|
|
50
62
|
): CheckOutcome | undefined {
|
|
51
|
-
if (!
|
|
63
|
+
if (!hasExactPlainRecordKeys(outcome, ["status", "reason"])) return undefined;
|
|
52
64
|
const reason = normalizeReason(outcome.reason, productOutcome, knownCheckIds);
|
|
53
65
|
return reason === undefined ? undefined : Object.freeze({ status: "unavailable", reason });
|
|
54
66
|
}
|
|
@@ -59,24 +71,12 @@ function normalizeReason(
|
|
|
59
71
|
knownCheckIds: ReadonlySet<string>
|
|
60
72
|
): Readonly<{ readonly code: string; readonly checkIds?: readonly string[] }> | undefined {
|
|
61
73
|
const reason = snapshotClosedRecord(value);
|
|
62
|
-
if (!
|
|
74
|
+
if (!isClosedCheckReason(reason, allowCheckIds)) return undefined;
|
|
63
75
|
if (!Object.hasOwn(reason, "checkIds")) return Object.freeze({ code: reason.code });
|
|
64
76
|
const checkIds = normalizedSessionReasonCheckIds(reason.checkIds, allowCheckIds, knownCheckIds);
|
|
65
77
|
return checkIds === undefined ? undefined : Object.freeze({ code: reason.code, checkIds });
|
|
66
78
|
}
|
|
67
79
|
|
|
68
|
-
function isClosedSessionReason(
|
|
69
|
-
value: Readonly<Record<string, unknown>> | undefined,
|
|
70
|
-
allowCheckIds: boolean
|
|
71
|
-
): value is Readonly<Record<string, unknown>> & Readonly<{ readonly code: string }> {
|
|
72
|
-
return (
|
|
73
|
-
value !== undefined &&
|
|
74
|
-
typeof value.code === "string" &&
|
|
75
|
-
value.code.length > 0 &&
|
|
76
|
-
hasOptionalKeys(value, ["code"], allowCheckIds ? ["checkIds"] : [])
|
|
77
|
-
);
|
|
78
|
-
}
|
|
79
|
-
|
|
80
80
|
function normalizedSessionReasonCheckIds(
|
|
81
81
|
value: unknown,
|
|
82
82
|
allowCheckIds: boolean,
|
|
@@ -98,21 +98,3 @@ function normalizedSessionReasonCheckIds(
|
|
|
98
98
|
}
|
|
99
99
|
return Object.freeze(checkIds);
|
|
100
100
|
}
|
|
101
|
-
|
|
102
|
-
function hasExactKeys(value: Readonly<Record<string, unknown>>, keys: readonly string[]): boolean {
|
|
103
|
-
return (
|
|
104
|
-
Object.keys(value).length === keys.length && keys.every((key) => Object.hasOwn(value, key))
|
|
105
|
-
);
|
|
106
|
-
}
|
|
107
|
-
|
|
108
|
-
function hasOptionalKeys(
|
|
109
|
-
value: Readonly<Record<string, unknown>>,
|
|
110
|
-
required: readonly string[],
|
|
111
|
-
optional: readonly string[]
|
|
112
|
-
): boolean {
|
|
113
|
-
const supported = new Set([...required, ...optional]);
|
|
114
|
-
return (
|
|
115
|
-
required.every((key) => Object.hasOwn(value, key)) &&
|
|
116
|
-
Object.keys(value).every((key) => supported.has(key))
|
|
117
|
-
);
|
|
118
|
-
}
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import { hasRequiredAndOptionalRecordKeys } from "../data-boundary/closed-values.ts";
|
|
2
|
+
|
|
3
|
+
export type ClosedCheckReason = Readonly<Record<string, unknown>> &
|
|
4
|
+
Readonly<{ readonly code: string }>;
|
|
5
|
+
|
|
6
|
+
/** Recognizes the shared closed reason shape before owner-specific ID validation. */
|
|
7
|
+
export function isClosedCheckReason(
|
|
8
|
+
value: Readonly<Record<string, unknown>> | undefined,
|
|
9
|
+
allowCheckIds: boolean
|
|
10
|
+
): value is ClosedCheckReason {
|
|
11
|
+
return (
|
|
12
|
+
value !== undefined &&
|
|
13
|
+
typeof value.code === "string" &&
|
|
14
|
+
value.code.length > 0 &&
|
|
15
|
+
hasRequiredAndOptionalRecordKeys(value, {
|
|
16
|
+
optional: allowCheckIds ? ["checkIds"] : [],
|
|
17
|
+
required: ["code"]
|
|
18
|
+
})
|
|
19
|
+
);
|
|
20
|
+
}
|
|
@@ -3,15 +3,16 @@ import type { CoreRecord } from "./facts.ts";
|
|
|
3
3
|
import { snapshotClosedRecord } from "../data-boundary/closed-values.ts";
|
|
4
4
|
|
|
5
5
|
export type RecordSubmissionResult = "committed" | "rejected";
|
|
6
|
+
|
|
7
|
+
const EMPTY_RECORDS: readonly CoreRecord[] = Object.freeze([]);
|
|
6
8
|
export type RecordDiagnostic = "record-conflict" | "record-invalid";
|
|
7
9
|
|
|
8
10
|
export interface CoreRecordSlot {
|
|
9
11
|
readonly checkId: string;
|
|
10
12
|
readonly diagnostics: Set<RecordDiagnostic>;
|
|
11
|
-
readonly recordIds: Set<string>;
|
|
12
13
|
}
|
|
13
14
|
|
|
14
|
-
/** Holds
|
|
15
|
+
/** Holds Check-local supplemental Records without inventing a composite string identity. */
|
|
15
16
|
export class CoreRecordStore {
|
|
16
17
|
readonly #recordsByCheckId = new Map<string, Map<string, CoreRecord>>();
|
|
17
18
|
|
|
@@ -23,30 +24,32 @@ export class CoreRecordStore {
|
|
|
23
24
|
const id = recordId(rawIdentity);
|
|
24
25
|
const data = canonicalizeJsonObject(rawData);
|
|
25
26
|
if (id === undefined || data === undefined) return this.#reject(slot, "record-invalid");
|
|
26
|
-
if (slot.recordIds.has(id)) return this.#reject(slot, "record-conflict");
|
|
27
27
|
|
|
28
|
-
const record: CoreRecord = Object.freeze({ checkId: slot.checkId, id, data });
|
|
29
28
|
let records = this.#recordsByCheckId.get(slot.checkId);
|
|
29
|
+
if (records?.has(id)) return this.#reject(slot, "record-conflict");
|
|
30
30
|
if (records === undefined) {
|
|
31
31
|
records = new Map<string, CoreRecord>();
|
|
32
32
|
this.#recordsByCheckId.set(slot.checkId, records);
|
|
33
33
|
}
|
|
34
|
+
const record: CoreRecord = Object.freeze({ checkId: slot.checkId, id, data });
|
|
34
35
|
records.set(id, record);
|
|
35
|
-
slot.recordIds.add(id);
|
|
36
36
|
return "committed";
|
|
37
37
|
}
|
|
38
38
|
|
|
39
|
+
public recordsForCheckInCanonicalOrder(checkId: string): readonly CoreRecord[] {
|
|
40
|
+
const recordsById = this.#recordsByCheckId.get(checkId);
|
|
41
|
+
if (recordsById === undefined) return EMPTY_RECORDS;
|
|
42
|
+
return Object.freeze(
|
|
43
|
+
[...recordsById.values()].sort((left, right) => compareText(left.id, right.id))
|
|
44
|
+
);
|
|
45
|
+
}
|
|
46
|
+
|
|
39
47
|
public recordsInCanonicalOrder(): readonly CoreRecord[] {
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
const record = byId.get(id);
|
|
46
|
-
if (record !== undefined) records.push(record);
|
|
47
|
-
}
|
|
48
|
-
}
|
|
49
|
-
return Object.freeze(records);
|
|
48
|
+
return Object.freeze(
|
|
49
|
+
[...this.#recordsByCheckId.keys()]
|
|
50
|
+
.sort(compareText)
|
|
51
|
+
.flatMap((checkId) => this.recordsForCheckInCanonicalOrder(checkId))
|
|
52
|
+
);
|
|
50
53
|
}
|
|
51
54
|
|
|
52
55
|
#reject(slot: CoreRecordSlot, diagnostic: RecordDiagnostic): "rejected" {
|
|
@@ -6,7 +6,7 @@ import {
|
|
|
6
6
|
type RecordDiagnostic,
|
|
7
7
|
type RecordSubmissionResult
|
|
8
8
|
} from "./record-store.ts";
|
|
9
|
-
import type { CoreCheck, CoreSnapshot } from "./facts.ts";
|
|
9
|
+
import type { CoreCheck, CoreRecord, CoreSnapshot } from "./facts.ts";
|
|
10
10
|
import { validateCheckDescriptor } from "../check/descriptor-validation.ts";
|
|
11
11
|
import { normalizeCheckOutcome } from "./outcome-normalization.ts";
|
|
12
12
|
|
|
@@ -39,6 +39,8 @@ export interface AuthorCheckSettlement {
|
|
|
39
39
|
export interface CoreCheckSession {
|
|
40
40
|
openCheckScope(checkId: string): TrustedCheckScope;
|
|
41
41
|
readSettledCheckOutcome(checkId: string): CheckOutcome;
|
|
42
|
+
/** Product-private readback used only after this Check's terminal settlement. */
|
|
43
|
+
readSettledCheckRecords(checkId: string): readonly CoreRecord[];
|
|
42
44
|
closeUnresolvedAsCancelled(): readonly CancelledCheckClosure[];
|
|
43
45
|
freeze(): CoreSnapshot;
|
|
44
46
|
}
|
|
@@ -95,8 +97,7 @@ function createSlots(registrations: readonly CoreCheckRegistration[]): CoreSlot[
|
|
|
95
97
|
checkId: definition.value.checkId,
|
|
96
98
|
definition: definition.value,
|
|
97
99
|
diagnostics: new Set(),
|
|
98
|
-
lifecycle: { kind: "registered" }
|
|
99
|
-
recordIds: new Set()
|
|
100
|
+
lifecycle: { kind: "registered" }
|
|
100
101
|
});
|
|
101
102
|
}
|
|
102
103
|
return slots.sort((left, right) =>
|
|
@@ -139,6 +140,14 @@ class CoreCheckSessionImpl implements CoreCheckSession {
|
|
|
139
140
|
return slot.lifecycle.outcome;
|
|
140
141
|
}
|
|
141
142
|
|
|
143
|
+
public readSettledCheckRecords(checkId: string): readonly CoreRecord[] {
|
|
144
|
+
const slot = this.#slotFor(checkId);
|
|
145
|
+
if (slot.lifecycle.kind !== "settled") {
|
|
146
|
+
coreInvariant("Core settled Check Records are not available");
|
|
147
|
+
}
|
|
148
|
+
return this.#recordStore.recordsForCheckInCanonicalOrder(checkId);
|
|
149
|
+
}
|
|
150
|
+
|
|
142
151
|
public closeUnresolvedAsCancelled(): readonly CancelledCheckClosure[] {
|
|
143
152
|
if (this.#snapshot !== undefined) {
|
|
144
153
|
coreInvariant("Cancelled closure cannot mutate a frozen Core snapshot");
|
|
@@ -72,6 +72,15 @@ export function snapshotClosedRecord(
|
|
|
72
72
|
}
|
|
73
73
|
}
|
|
74
74
|
|
|
75
|
+
/** Snapshots a closed plain record only when it has exactly the declared own keys. */
|
|
76
|
+
export function snapshotExactClosedRecord(
|
|
77
|
+
value: unknown,
|
|
78
|
+
keys: readonly string[]
|
|
79
|
+
): Readonly<Record<string, unknown>> | undefined {
|
|
80
|
+
const record = snapshotClosedRecord(value);
|
|
81
|
+
return record !== undefined && hasExactPlainRecordKeys(record, keys) ? record : undefined;
|
|
82
|
+
}
|
|
83
|
+
|
|
75
84
|
function closedArrayLength(shape: OwnDataShape): number | undefined {
|
|
76
85
|
const descriptor = shape.descriptors.length;
|
|
77
86
|
if (typeof descriptor?.value !== "number" || descriptor.enumerable !== false) return undefined;
|
|
@@ -124,3 +133,23 @@ export function hasRequiredAndOptionalRecordKeys(
|
|
|
124
133
|
Object.keys(value).every((key) => supportedKeys.has(key))
|
|
125
134
|
);
|
|
126
135
|
}
|
|
136
|
+
|
|
137
|
+
export interface ClosedPolicyRecordKeys {
|
|
138
|
+
readonly optional?: readonly string[];
|
|
139
|
+
readonly required?: readonly string[];
|
|
140
|
+
}
|
|
141
|
+
|
|
142
|
+
/** Snapshots an authoring record whose keys are limited to one required/optional policy. */
|
|
143
|
+
export function snapshotClosedPolicyRecord(
|
|
144
|
+
value: unknown,
|
|
145
|
+
keys: ClosedPolicyRecordKeys
|
|
146
|
+
): Readonly<Record<string, unknown>> | undefined {
|
|
147
|
+
const record = snapshotClosedRecord(value);
|
|
148
|
+
return record !== undefined &&
|
|
149
|
+
hasRequiredAndOptionalRecordKeys(record, {
|
|
150
|
+
optional: keys.optional ?? [],
|
|
151
|
+
required: keys.required ?? []
|
|
152
|
+
})
|
|
153
|
+
? record
|
|
154
|
+
: undefined;
|
|
155
|
+
}
|
|
@@ -13,3 +13,15 @@ export function isUnknownArray(value: unknown): value is unknown[] {
|
|
|
13
13
|
export function isStringArray(value: unknown): value is string[] {
|
|
14
14
|
return isUnknownArray(value) && value.every((item) => typeof item === "string");
|
|
15
15
|
}
|
|
16
|
+
|
|
17
|
+
export function isNonEmptyString(value: unknown): value is string {
|
|
18
|
+
return typeof value === "string" && value.length > 0;
|
|
19
|
+
}
|
|
20
|
+
|
|
21
|
+
export function isPositiveSafeInteger(value: unknown): value is number {
|
|
22
|
+
return typeof value === "number" && Number.isSafeInteger(value) && value > 0;
|
|
23
|
+
}
|
|
24
|
+
|
|
25
|
+
export function isNonNegativeSafeInteger(value: unknown): value is number {
|
|
26
|
+
return typeof value === "number" && Number.isSafeInteger(value) && value >= 0;
|
|
27
|
+
}
|
package/src/index.ts
CHANGED
|
@@ -1,13 +1,18 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* Vibe Check 是由项目在
|
|
2
|
+
* Vibe Check 是由项目在 Node runtime 中调用的 TypeScript API,用于定义并执行项目质量 Check。
|
|
3
3
|
* 所有公开能力从 package root 导入;package `README.md` 说明 consumer authoring、结果读取和分发范围。
|
|
4
4
|
*
|
|
5
5
|
* @packageDocumentation
|
|
6
6
|
*/
|
|
7
|
+
export { cacheJsonByKey } from "./cache/cache-json-by-key.ts";
|
|
8
|
+
export type { CacheJsonByKeyOptions, CacheJsonByKeyResult } from "./cache/cache-json-by-key.ts";
|
|
7
9
|
export { duplicateDetection } from "./package-checks/duplicate-detection/default-check.ts";
|
|
8
10
|
export { parseDuplicateDetectionData } from "./package-checks/duplicate-detection/final-data.ts";
|
|
9
11
|
export type { DuplicateDetectionFinalData } from "./package-checks/duplicate-detection/final-data.ts";
|
|
10
12
|
export type {
|
|
13
|
+
DuplicateDetectionFindingIdentity,
|
|
14
|
+
DuplicateDetectionFindingLocation,
|
|
15
|
+
DuplicateDetectionFindingWaiver,
|
|
11
16
|
DuplicateDetectionOptions,
|
|
12
17
|
ResolvedDuplicateDetectionOptions
|
|
13
18
|
} from "./package-checks/duplicate-detection/options.ts";
|
|
@@ -28,16 +33,36 @@ export { functionMetrics } from "./package-checks/function-metrics/constructor.t
|
|
|
28
33
|
export { parseFunctionMetricsData } from "./package-checks/function-metrics/final-data.ts";
|
|
29
34
|
export type { FunctionMetricsFinalData } from "./package-checks/function-metrics/final-data.ts";
|
|
30
35
|
export type {
|
|
36
|
+
FunctionMetricsFindingIdentity,
|
|
37
|
+
FunctionMetricsFindingMetric,
|
|
38
|
+
FunctionMetricsFindingWaiver,
|
|
31
39
|
FunctionMetricsOptions,
|
|
32
40
|
ResolvedFunctionMetricsOptions
|
|
33
41
|
} from "./package-checks/function-metrics/options.ts";
|
|
34
42
|
export type { FunctionMetricsUnavailableReasonCode } from "./package-checks/function-metrics/execution.ts";
|
|
35
43
|
export type { FunctionMetricsRecordData } from "./package-checks/function-metrics/records.ts";
|
|
44
|
+
export { secretDetection } from "./package-checks/secret-detection/default-check.ts";
|
|
45
|
+
export { parseSecretDetectionData } from "./package-checks/secret-detection/final-data.ts";
|
|
46
|
+
export type { SecretDetectionFinalData } from "./package-checks/secret-detection/final-data.ts";
|
|
47
|
+
export type {
|
|
48
|
+
ResolvedSecretDetectionOptions,
|
|
49
|
+
SecretDetectionFindingIdentity,
|
|
50
|
+
SecretDetectionFindingWaiver,
|
|
51
|
+
SecretDetectionOptions
|
|
52
|
+
} from "./package-checks/secret-detection/options.ts";
|
|
53
|
+
export type { SecretDetectionUnavailableReasonCode } from "./package-checks/secret-detection/execution.ts";
|
|
54
|
+
export type { SecretDetectionRecordData } from "./package-checks/secret-detection/records.ts";
|
|
36
55
|
export { jsonSchemaValidation } from "./package-checks/json-schema-validation/default-check.ts";
|
|
37
56
|
export { parseJsonSchemaValidationData } from "./package-checks/json-schema-validation/final-data.ts";
|
|
38
57
|
export type { JsonSchemaValidationFinalData } from "./package-checks/json-schema-validation/final-data.ts";
|
|
39
58
|
export type {
|
|
59
|
+
JsonSchemaIdentity,
|
|
60
|
+
JsonSchemaIdentityMode,
|
|
61
|
+
JsonSchemaInstanceBinding,
|
|
62
|
+
JsonSchemaReferenceResolution,
|
|
63
|
+
JsonSchemaReferenceSource,
|
|
40
64
|
JsonSchemaValidationOptions,
|
|
65
|
+
RegisteredJsonSchema,
|
|
41
66
|
ResolvedJsonSchemaValidationOptions
|
|
42
67
|
} from "./package-checks/json-schema-validation/options.ts";
|
|
43
68
|
export type {
|
|
@@ -82,6 +107,7 @@ export type { MarkdownLinkValidationRecordData } from "./package-checks/markdown
|
|
|
82
107
|
export type { MarkdownLinkFindingReason } from "./package-checks/markdown-link-validation/local-resolver.ts";
|
|
83
108
|
export type { FindingPolicy } from "./package-checks/code-quality-findings/policy.ts";
|
|
84
109
|
export { reconcileFindingWaivers } from "./finding-waivers/reconciliation.ts";
|
|
110
|
+
export { presentCheckFindings } from "./check/finding-presentation.ts";
|
|
85
111
|
export type {
|
|
86
112
|
FindingWaiver,
|
|
87
113
|
FindingWaiverAudit,
|
|
@@ -91,6 +117,8 @@ export type {
|
|
|
91
117
|
ReconcileFindingWaiversOptions
|
|
92
118
|
} from "./finding-waivers/reconciliation.ts";
|
|
93
119
|
export { defaultProjectFileSelection } from "./package-checks/project-files/configuration.ts";
|
|
120
|
+
export { collectProjectFiles } from "./package-checks/project-files/public-collection.ts";
|
|
121
|
+
export type { CollectProjectFilesOptions } from "./package-checks/project-files/public-collection.ts";
|
|
94
122
|
export type {
|
|
95
123
|
ProjectFileSelection,
|
|
96
124
|
ProjectFileSelectionOptions,
|
|
@@ -99,19 +127,58 @@ export type {
|
|
|
99
127
|
export { defineCheck, inherit } from "./check/check.ts";
|
|
100
128
|
export type {
|
|
101
129
|
Check,
|
|
130
|
+
CheckDependencies,
|
|
102
131
|
CheckExecution,
|
|
103
132
|
CheckExecutionContext,
|
|
104
133
|
CheckPreflight,
|
|
105
134
|
CheckPreflightResult,
|
|
135
|
+
CheckResourceClaims,
|
|
106
136
|
CheckOutcome,
|
|
107
137
|
CheckResult,
|
|
108
138
|
CheckUnavailableReason,
|
|
109
139
|
InheritableCheckCollection
|
|
110
140
|
} from "./check/check.ts";
|
|
111
|
-
export { defineConfig } from "./project-definition/project-definition.ts";
|
|
141
|
+
export { defineAdmissionPolicy, defineConfig } from "./project-definition/project-definition.ts";
|
|
142
|
+
export { createLearnedCriticalPathStrategy } from "./learned-critical-path/strategy.ts";
|
|
143
|
+
export type {
|
|
144
|
+
LearnedCriticalPathObservation,
|
|
145
|
+
LearnedCriticalPathStrategyOptions
|
|
146
|
+
} from "./learned-critical-path/strategy.ts";
|
|
147
|
+
export { createAdmissionGraph } from "./project-run/task-scheduler/admission-core/core.ts";
|
|
112
148
|
export type {
|
|
149
|
+
AdmissionPolicy,
|
|
150
|
+
AdmissionPolicyContext,
|
|
151
|
+
AdmissionPolicyMeasurement,
|
|
152
|
+
AdmissionProposal,
|
|
153
|
+
AdmissionCatalog,
|
|
154
|
+
AdmissionGraph,
|
|
155
|
+
AdmissionGraphInput,
|
|
156
|
+
AdmissionInspection,
|
|
157
|
+
AdmissionNonSelectableTask,
|
|
158
|
+
AdmissionRejectionReason,
|
|
159
|
+
AdmissionScopeLifecycle,
|
|
160
|
+
AdmissionSelectionRejectionReason,
|
|
161
|
+
AdmissionSelectionValidation,
|
|
162
|
+
AdmissionSelectionValidationRejectionReason,
|
|
163
|
+
AdmissionSettlementOutcome,
|
|
164
|
+
AdmissionSettledTask,
|
|
165
|
+
AdmissionState,
|
|
166
|
+
AdmissionTransitionResult,
|
|
167
|
+
CustomAdmissionPreparationContext,
|
|
168
|
+
CustomAdmissionStrategy,
|
|
169
|
+
PreparedCustomAdmissionStrategy,
|
|
170
|
+
ProgressPreviewFormatter,
|
|
113
171
|
ProjectOutputs,
|
|
114
172
|
ProjectDefinition,
|
|
173
|
+
SchedulerDecisionMeasurementCumulative,
|
|
174
|
+
SchedulerGraphSnapshot,
|
|
175
|
+
SchedulerMeasurementContext,
|
|
176
|
+
SchedulerMeasurementHook,
|
|
177
|
+
SchedulerMeasurementIntervalContribution,
|
|
178
|
+
SchedulerMeasurementActionObservationInterval,
|
|
179
|
+
SchedulerMeasurementActionObservation,
|
|
180
|
+
SchedulerMeasurementEffect,
|
|
181
|
+
SchedulerRawMeasurement,
|
|
115
182
|
SchedulerPolicy
|
|
116
183
|
} from "./project-definition/project-definition.ts";
|
|
117
184
|
export type {
|
|
@@ -120,4 +187,5 @@ export type {
|
|
|
120
187
|
RunControls
|
|
121
188
|
} from "./project-run/controls/contract.ts";
|
|
122
189
|
export { run } from "./project-run/run.ts";
|
|
190
|
+
export type { RunOutputStatus, RunOutputStatuses } from "./project-run/outputs/status.ts";
|
|
123
191
|
export type { RunResult } from "./project-run/result.ts";
|
|
@@ -0,0 +1,108 @@
|
|
|
1
|
+
export const SCHEDULER_HISTORY_ENVELOPE_VERSION = "scheduler-history-envelope-v1";
|
|
2
|
+
export const SCHEDULER_HISTORY_FILE_NAME = "scheduler-history.json";
|
|
3
|
+
export const SCHEDULER_HISTORY_MODEL_VERSION = "scheduler-duration-model-v1";
|
|
4
|
+
export const MAX_SCHEDULER_HISTORY_SAMPLES_PER_SERIES = 32;
|
|
5
|
+
export const MAX_SCHEDULER_HISTORY_SERIES = 4_096;
|
|
6
|
+
|
|
7
|
+
/** Bound persisted task-active durations so aggregates remain exact safe integers. */
|
|
8
|
+
export const MAX_SCHEDULER_HISTORY_DURATION_MS = 2_147_483_647;
|
|
9
|
+
|
|
10
|
+
/** Persisted terminal kind vocabulary; duration storage does not depend on Scheduler ownership. */
|
|
11
|
+
export type SchedulerDurationSettlementKind =
|
|
12
|
+
| "completed"
|
|
13
|
+
| "prerequisite-unsatisfied"
|
|
14
|
+
| "failed"
|
|
15
|
+
| "blocked"
|
|
16
|
+
| "cancelled-before-start";
|
|
17
|
+
|
|
18
|
+
export interface SchedulerHistorySample {
|
|
19
|
+
readonly durationMs: number;
|
|
20
|
+
readonly observationSequence: number;
|
|
21
|
+
readonly settlementKind: SchedulerDurationSettlementKind;
|
|
22
|
+
}
|
|
23
|
+
|
|
24
|
+
export interface SchedulerHistorySeries {
|
|
25
|
+
readonly identityDigest: string;
|
|
26
|
+
readonly latestObservationSequence: number;
|
|
27
|
+
readonly samples: readonly SchedulerHistorySample[];
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
/** Immutable, Product-private local model; the only persisted state is its closed envelope. */
|
|
31
|
+
export interface SchedulerHistoryModel {
|
|
32
|
+
readonly latestObservationSequence: number;
|
|
33
|
+
readonly series: readonly SchedulerHistorySeries[];
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
export function emptySchedulerHistory(): SchedulerHistoryModel {
|
|
37
|
+
return Object.freeze({ latestObservationSequence: 0, series: Object.freeze([]) });
|
|
38
|
+
}
|
|
39
|
+
|
|
40
|
+
export function schedulerHistorySeries(
|
|
41
|
+
history: SchedulerHistoryModel,
|
|
42
|
+
identityDigest: string
|
|
43
|
+
): SchedulerHistorySeries | undefined {
|
|
44
|
+
return history.series.find((series) => series.identityDigest === identityDigest);
|
|
45
|
+
}
|
|
46
|
+
|
|
47
|
+
export function freezeSchedulerHistoryModel(input: {
|
|
48
|
+
readonly latestObservationSequence: number;
|
|
49
|
+
readonly series: readonly SchedulerHistorySeries[];
|
|
50
|
+
}): SchedulerHistoryModel {
|
|
51
|
+
return Object.freeze({
|
|
52
|
+
latestObservationSequence: input.latestObservationSequence,
|
|
53
|
+
series: Object.freeze(
|
|
54
|
+
[...input.series]
|
|
55
|
+
.sort((left, right) => compareText(left.identityDigest, right.identityDigest))
|
|
56
|
+
.map((series) =>
|
|
57
|
+
Object.freeze({
|
|
58
|
+
identityDigest: series.identityDigest,
|
|
59
|
+
latestObservationSequence: series.latestObservationSequence,
|
|
60
|
+
samples: Object.freeze(
|
|
61
|
+
series.samples.map((sample) =>
|
|
62
|
+
Object.freeze({
|
|
63
|
+
durationMs: sample.durationMs,
|
|
64
|
+
observationSequence: sample.observationSequence,
|
|
65
|
+
settlementKind: sample.settlementKind
|
|
66
|
+
})
|
|
67
|
+
)
|
|
68
|
+
)
|
|
69
|
+
})
|
|
70
|
+
)
|
|
71
|
+
)
|
|
72
|
+
});
|
|
73
|
+
}
|
|
74
|
+
|
|
75
|
+
export function isSchedulerHistoryIdentityDigest(value: unknown): value is string {
|
|
76
|
+
return typeof value === "string" && /^sha256:[0-9a-f]{64}$/.test(value);
|
|
77
|
+
}
|
|
78
|
+
|
|
79
|
+
export function isSchedulerSettlementKind(
|
|
80
|
+
value: unknown
|
|
81
|
+
): value is SchedulerDurationSettlementKind {
|
|
82
|
+
return (
|
|
83
|
+
value === "completed" ||
|
|
84
|
+
value === "prerequisite-unsatisfied" ||
|
|
85
|
+
value === "failed" ||
|
|
86
|
+
value === "blocked" ||
|
|
87
|
+
value === "cancelled-before-start"
|
|
88
|
+
);
|
|
89
|
+
}
|
|
90
|
+
|
|
91
|
+
export function isBoundedDurationMs(value: unknown): value is number {
|
|
92
|
+
return (
|
|
93
|
+
typeof value === "number" &&
|
|
94
|
+
Number.isFinite(value) &&
|
|
95
|
+
value >= 0 &&
|
|
96
|
+
value <= MAX_SCHEDULER_HISTORY_DURATION_MS
|
|
97
|
+
);
|
|
98
|
+
}
|
|
99
|
+
|
|
100
|
+
export function isObservationSequence(value: unknown): value is number {
|
|
101
|
+
return typeof value === "number" && Number.isSafeInteger(value) && value >= 0;
|
|
102
|
+
}
|
|
103
|
+
|
|
104
|
+
function compareText(left: string, right: string): number {
|
|
105
|
+
if (left < right) return -1;
|
|
106
|
+
if (left > right) return 1;
|
|
107
|
+
return 0;
|
|
108
|
+
}
|