@shrkcrft/cli 0.1.0-alpha.29 → 0.1.0-alpha.31
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/dist/asset-preview/apply-asset-preview.js +1 -1
- package/dist/authoring/authoring-kit.d.ts +9 -1
- package/dist/authoring/authoring-kit.d.ts.map +1 -1
- package/dist/authoring/authoring-kit.js +26 -13
- package/dist/bootstrap/unlinked-workspace-dependency.d.ts +11 -0
- package/dist/bootstrap/unlinked-workspace-dependency.d.ts.map +1 -0
- package/dist/bootstrap/unlinked-workspace-dependency.js +99 -0
- package/dist/command-registry.d.ts +100 -1
- package/dist/command-registry.d.ts.map +1 -1
- package/dist/command-registry.js +130 -3
- package/dist/commands/api-diff.command.d.ts.map +1 -1
- package/dist/commands/api-diff.command.js +12 -0
- package/dist/commands/apply.command.d.ts.map +1 -1
- package/dist/commands/apply.command.js +3 -0
- package/dist/commands/arch.command.d.ts.map +1 -1
- package/dist/commands/arch.command.js +26 -7
- package/dist/commands/architecture.command.d.ts.map +1 -1
- package/dist/commands/architecture.command.js +8 -2
- package/dist/commands/baseline.command.d.ts +76 -0
- package/dist/commands/baseline.command.d.ts.map +1 -1
- package/dist/commands/baseline.command.js +599 -75
- package/dist/commands/biome.command.d.ts.map +1 -1
- package/dist/commands/biome.command.js +20 -0
- package/dist/commands/boundaries.command.d.ts +9 -1
- package/dist/commands/boundaries.command.d.ts.map +1 -1
- package/dist/commands/boundaries.command.js +88 -20
- package/dist/commands/bundle.command.d.ts.map +1 -1
- package/dist/commands/bundle.command.js +57 -11
- package/dist/commands/cache-align.command.d.ts.map +1 -1
- package/dist/commands/cache-align.command.js +3 -1
- package/dist/commands/changelog-data.d.ts.map +1 -1
- package/dist/commands/changelog-data.js +164 -0
- package/dist/commands/changes.command.d.ts.map +1 -1
- package/dist/commands/changes.command.js +15 -0
- package/dist/commands/check.command.d.ts.map +1 -1
- package/dist/commands/check.command.js +1260 -324
- package/dist/commands/checks.command.d.ts.map +1 -1
- package/dist/commands/checks.command.js +188 -40
- package/dist/commands/ci.command.d.ts.map +1 -1
- package/dist/commands/ci.command.js +35 -2
- package/dist/commands/code-intel.command.d.ts.map +1 -1
- package/dist/commands/code-intel.command.js +8 -1
- package/dist/commands/command-catalog.d.ts +23 -1
- package/dist/commands/command-catalog.d.ts.map +1 -1
- package/dist/commands/command-catalog.js +152 -35
- package/dist/commands/commands.command.d.ts +21 -3
- package/dist/commands/commands.command.d.ts.map +1 -1
- package/dist/commands/commands.command.js +172 -27
- package/dist/commands/compress.command.d.ts.map +1 -1
- package/dist/commands/compress.command.js +4 -0
- package/dist/commands/constructs.command.d.ts.map +1 -1
- package/dist/commands/constructs.command.js +50 -12
- package/dist/commands/context.command.d.ts.map +1 -1
- package/dist/commands/context.command.js +40 -5
- package/dist/commands/contract-templates.command.d.ts.map +1 -1
- package/dist/commands/contract-templates.command.js +9 -1
- package/dist/commands/contract.command.d.ts.map +1 -1
- package/dist/commands/contract.command.js +35 -0
- package/dist/commands/conventions.command.d.ts.map +1 -1
- package/dist/commands/conventions.command.js +189 -29
- package/dist/commands/coverage.command.d.ts.map +1 -1
- package/dist/commands/coverage.command.js +9 -0
- package/dist/commands/daily.commands.d.ts +0 -1
- package/dist/commands/daily.commands.d.ts.map +1 -1
- package/dist/commands/daily.commands.js +12 -76
- package/dist/commands/dashboard.command.d.ts.map +1 -1
- package/dist/commands/dashboard.command.js +10 -0
- package/dist/commands/dev.command.d.ts.map +1 -1
- package/dist/commands/dev.command.js +45 -2
- package/dist/commands/diagnostics.command.d.ts +0 -2
- package/dist/commands/diagnostics.command.d.ts.map +1 -1
- package/dist/commands/diagnostics.command.js +5 -78
- package/dist/commands/diff-check.command.d.ts +6 -4
- package/dist/commands/diff-check.command.d.ts.map +1 -1
- package/dist/commands/diff-check.command.js +190 -103
- package/dist/commands/docs-references.command.d.ts +20 -0
- package/dist/commands/docs-references.command.d.ts.map +1 -0
- package/dist/commands/docs-references.command.js +520 -0
- package/dist/commands/doctor.command.d.ts.map +1 -1
- package/dist/commands/doctor.command.js +60 -5
- package/dist/commands/drift.command.d.ts.map +1 -1
- package/dist/commands/drift.command.js +17 -4
- package/dist/commands/eslint.command.d.ts.map +1 -1
- package/dist/commands/eslint.command.js +20 -0
- package/dist/commands/export.command.d.ts.map +1 -1
- package/dist/commands/export.command.js +23 -1
- package/dist/commands/feedback-dispatch.command.d.ts.map +1 -1
- package/dist/commands/feedback-dispatch.command.js +29 -0
- package/dist/commands/feedback.command.d.ts.map +1 -1
- package/dist/commands/feedback.command.js +6 -1
- package/dist/commands/finish.command.d.ts.map +1 -1
- package/dist/commands/finish.command.js +32 -8
- package/dist/commands/fix.command.d.ts.map +1 -1
- package/dist/commands/fix.command.js +19 -0
- package/dist/commands/gate.command.d.ts +6 -1
- package/dist/commands/gate.command.d.ts.map +1 -1
- package/dist/commands/gate.command.js +50 -124
- package/dist/commands/gates.command.d.ts +54 -0
- package/dist/commands/gates.command.d.ts.map +1 -1
- package/dist/commands/gates.command.js +1314 -64
- package/dist/commands/gen.command.d.ts.map +1 -1
- package/dist/commands/gen.command.js +4 -0
- package/dist/commands/generated.command.d.ts +62 -0
- package/dist/commands/generated.command.d.ts.map +1 -1
- package/dist/commands/generated.command.js +639 -156
- package/dist/commands/graph-code-subverbs.d.ts +15 -0
- package/dist/commands/graph-code-subverbs.d.ts.map +1 -1
- package/dist/commands/graph-code-subverbs.js +203 -25
- package/dist/commands/graph.command.d.ts.map +1 -1
- package/dist/commands/graph.command.js +79 -37
- package/dist/commands/help.command.d.ts +30 -6
- package/dist/commands/help.command.d.ts.map +1 -1
- package/dist/commands/help.command.js +323 -199
- package/dist/commands/helper.command.d.ts +1 -0
- package/dist/commands/helper.command.d.ts.map +1 -1
- package/dist/commands/helper.command.js +195 -56
- package/dist/commands/impact.command.d.ts.map +1 -1
- package/dist/commands/impact.command.js +115 -12
- package/dist/commands/infer.command.d.ts.map +1 -1
- package/dist/commands/infer.command.js +20 -45
- package/dist/commands/ingest.command.d.ts +0 -1
- package/dist/commands/ingest.command.d.ts.map +1 -1
- package/dist/commands/ingest.command.js +25 -41
- package/dist/commands/knowledge-author.command.d.ts +0 -3
- package/dist/commands/knowledge-author.command.d.ts.map +1 -1
- package/dist/commands/knowledge-author.command.js +10 -23
- package/dist/commands/knowledge.command.d.ts.map +1 -1
- package/dist/commands/knowledge.command.js +469 -129
- package/dist/commands/languages.command.d.ts.map +1 -1
- package/dist/commands/languages.command.js +27 -0
- package/dist/commands/lint.command.d.ts.map +1 -1
- package/dist/commands/lint.command.js +3 -0
- package/dist/commands/mcp.command.d.ts +18 -0
- package/dist/commands/mcp.command.d.ts.map +1 -1
- package/dist/commands/mcp.command.js +33 -8
- package/dist/commands/onboard.command.d.ts.map +1 -1
- package/dist/commands/onboard.command.js +20 -0
- package/dist/commands/owners.command.d.ts.map +1 -1
- package/dist/commands/owners.command.js +14 -2
- package/dist/commands/packs-new.d.ts +13 -1
- package/dist/commands/packs-new.d.ts.map +1 -1
- package/dist/commands/packs-new.js +500 -335
- package/dist/commands/packs.command.d.ts.map +1 -1
- package/dist/commands/packs.command.js +378 -36
- package/dist/commands/paths.command.d.ts.map +1 -1
- package/dist/commands/paths.command.js +9 -1
- package/dist/commands/pipelines.command.d.ts.map +1 -1
- package/dist/commands/pipelines.command.js +7 -1
- package/dist/commands/plan-check.command.d.ts.map +1 -1
- package/dist/commands/plan-check.command.js +3 -0
- package/dist/commands/plan.command.d.ts.map +1 -1
- package/dist/commands/plan.command.js +3 -0
- package/dist/commands/playbooks.command.d.ts.map +1 -1
- package/dist/commands/playbooks.command.js +7 -2
- package/dist/commands/policy-lint.command.d.ts +19 -2
- package/dist/commands/policy-lint.command.d.ts.map +1 -1
- package/dist/commands/policy-lint.command.js +224 -65
- package/dist/commands/policy.command.d.ts.map +1 -1
- package/dist/commands/policy.command.js +6 -1
- package/dist/commands/pr.command.d.ts.map +1 -1
- package/dist/commands/pr.command.js +14 -0
- package/dist/commands/presets.command.d.ts.map +1 -1
- package/dist/commands/presets.command.js +12 -27
- package/dist/commands/profiles.command.d.ts.map +1 -1
- package/dist/commands/profiles.command.js +94 -26
- package/dist/commands/provenance.command.js +1 -1
- package/dist/commands/quality.command.d.ts.map +1 -1
- package/dist/commands/quality.command.js +129 -33
- package/dist/commands/recommend.command.d.ts +20 -4
- package/dist/commands/recommend.command.d.ts.map +1 -1
- package/dist/commands/recommend.command.js +172 -278
- package/dist/commands/registrations.command.d.ts.map +1 -1
- package/dist/commands/registrations.command.js +138 -13
- package/dist/commands/registry-lifecycle-run.d.ts +14 -0
- package/dist/commands/registry-lifecycle-run.d.ts.map +1 -0
- package/dist/commands/registry-lifecycle-run.js +336 -0
- package/dist/commands/registry.command.d.ts.map +1 -1
- package/dist/commands/registry.command.js +235 -62
- package/dist/commands/release.command.d.ts.map +1 -1
- package/dist/commands/release.command.js +99 -20
- package/dist/commands/report.command.d.ts.map +1 -1
- package/dist/commands/report.command.js +38 -2
- package/dist/commands/reuse-coverage.command.d.ts +23 -0
- package/dist/commands/reuse-coverage.command.d.ts.map +1 -0
- package/dist/commands/reuse-coverage.command.js +536 -0
- package/dist/commands/reuse.command.d.ts +3 -18
- package/dist/commands/reuse.command.d.ts.map +1 -1
- package/dist/commands/reuse.command.js +395 -244
- package/dist/commands/review.command.d.ts.map +1 -1
- package/dist/commands/review.command.js +33 -1
- package/dist/commands/rounds.command.d.ts.map +1 -1
- package/dist/commands/rounds.command.js +5 -0
- package/dist/commands/safety.command.d.ts.map +1 -1
- package/dist/commands/safety.command.js +9 -0
- package/dist/commands/scaffolds.command.d.ts.map +1 -1
- package/dist/commands/scaffolds.command.js +97 -25
- package/dist/commands/search.command.d.ts +0 -8
- package/dist/commands/search.command.d.ts.map +1 -1
- package/dist/commands/search.command.js +136 -28
- package/dist/commands/self-config-xrefs.command.d.ts +24 -0
- package/dist/commands/self-config-xrefs.command.d.ts.map +1 -0
- package/dist/commands/self-config-xrefs.command.js +170 -0
- package/dist/commands/self-config.command.d.ts.map +1 -1
- package/dist/commands/self-config.command.js +261 -65
- package/dist/commands/smart-context.command.d.ts.map +1 -1
- package/dist/commands/smart-context.command.js +39 -3
- package/dist/commands/spec.command.d.ts.map +1 -1
- package/dist/commands/spec.command.js +3 -0
- package/dist/commands/stats.command.d.ts.map +1 -1
- package/dist/commands/stats.command.js +3 -0
- package/dist/commands/surface.command.d.ts +6 -1
- package/dist/commands/surface.command.d.ts.map +1 -1
- package/dist/commands/surface.command.js +256 -54
- package/dist/commands/task-context.command.js +1 -1
- package/dist/commands/task.command.d.ts.map +1 -1
- package/dist/commands/task.command.js +22 -1
- package/dist/commands/templates.command.d.ts +4 -0
- package/dist/commands/templates.command.d.ts.map +1 -1
- package/dist/commands/templates.command.js +109 -22
- package/dist/commands/test.command.d.ts.map +1 -1
- package/dist/commands/test.command.js +161 -33
- package/dist/commands/tests.command.d.ts.map +1 -1
- package/dist/commands/tests.command.js +29 -3
- package/dist/commands/trace.command.d.ts.map +1 -1
- package/dist/commands/trace.command.js +29 -4
- package/dist/commands/watch.command.d.ts.map +1 -1
- package/dist/commands/watch.command.js +3 -0
- package/dist/commands/why.command.d.ts.map +1 -1
- package/dist/commands/why.command.js +3 -0
- package/dist/commands/wiring.command.d.ts +18 -4
- package/dist/commands/wiring.command.d.ts.map +1 -1
- package/dist/commands/wiring.command.js +362 -74
- package/dist/dashboard/code-intelligence-data.js +4 -4
- package/dist/diff/deleted-orphan-coverage.d.ts +32 -0
- package/dist/diff/deleted-orphan-coverage.d.ts.map +1 -0
- package/dist/diff/deleted-orphan-coverage.js +107 -0
- package/dist/diff/deleted-orphan-scope-notes.d.ts +23 -0
- package/dist/diff/deleted-orphan-scope-notes.d.ts.map +1 -0
- package/dist/diff/deleted-orphan-scope-notes.js +49 -0
- package/dist/diff/deleted-orphans.d.ts +32 -0
- package/dist/diff/deleted-orphans.d.ts.map +1 -1
- package/dist/diff/deleted-orphans.js +42 -2
- package/dist/dispatch/closest-match.d.ts +15 -0
- package/dist/dispatch/closest-match.d.ts.map +1 -0
- package/dist/dispatch/closest-match.js +47 -0
- package/dist/dispatch/global-flags.d.ts +94 -0
- package/dist/dispatch/global-flags.d.ts.map +1 -0
- package/dist/dispatch/global-flags.js +123 -0
- package/dist/dispatch/guard-invocation-input.d.ts +24 -0
- package/dist/dispatch/guard-invocation-input.d.ts.map +1 -0
- package/dist/dispatch/guard-invocation-input.js +1 -0
- package/dist/dispatch/guard-invocation.d.ts +33 -0
- package/dist/dispatch/guard-invocation.d.ts.map +1 -0
- package/dist/dispatch/guard-invocation.js +183 -0
- package/dist/dispatch/help-intercept.d.ts +22 -0
- package/dist/dispatch/help-intercept.d.ts.map +1 -0
- package/dist/dispatch/help-intercept.js +42 -0
- package/dist/dispatch/i-declared-invocation.d.ts +17 -0
- package/dist/dispatch/i-declared-invocation.d.ts.map +1 -0
- package/dist/dispatch/i-declared-invocation.js +1 -0
- package/dist/dispatch/i-unknown-flag-refusal-input.d.ts +28 -0
- package/dist/dispatch/i-unknown-flag-refusal-input.d.ts.map +1 -0
- package/dist/dispatch/i-unknown-flag-refusal-input.js +1 -0
- package/dist/dispatch/invocation-rejection-kind.d.ts +15 -0
- package/dist/dispatch/invocation-rejection-kind.d.ts.map +1 -0
- package/dist/dispatch/invocation-rejection-kind.js +15 -0
- package/dist/dispatch/invocation-rejection.d.ts +18 -0
- package/dist/dispatch/invocation-rejection.d.ts.map +1 -0
- package/dist/dispatch/invocation-rejection.js +1 -0
- package/dist/dispatch/judge-invocation.d.ts +24 -0
- package/dist/dispatch/judge-invocation.d.ts.map +1 -0
- package/dist/dispatch/judge-invocation.js +50 -0
- package/dist/dispatch/positional-mode.d.ts +18 -0
- package/dist/dispatch/positional-mode.d.ts.map +1 -0
- package/dist/dispatch/positional-mode.js +18 -0
- package/dist/dispatch/read-tracking-map.d.ts +28 -0
- package/dist/dispatch/read-tracking-map.d.ts.map +1 -0
- package/dist/dispatch/read-tracking-map.js +58 -0
- package/dist/dispatch/refuse-sibling-valve-flags.d.ts +30 -0
- package/dist/dispatch/refuse-sibling-valve-flags.d.ts.map +1 -0
- package/dist/dispatch/refuse-sibling-valve-flags.js +65 -0
- package/dist/dispatch/subverb-spec.d.ts +26 -0
- package/dist/dispatch/subverb-spec.d.ts.map +1 -0
- package/dist/dispatch/subverb-spec.js +1 -0
- package/dist/dispatch/undocumented-flag-reads.d.ts +22 -0
- package/dist/dispatch/undocumented-flag-reads.d.ts.map +1 -0
- package/dist/dispatch/undocumented-flag-reads.js +283 -0
- package/dist/dispatch/unknown-flag-refusal-mode.d.ts +13 -0
- package/dist/dispatch/unknown-flag-refusal-mode.d.ts.map +1 -0
- package/dist/dispatch/unknown-flag-refusal-mode.js +13 -0
- package/dist/dispatch/unknown-flag-refusal.d.ts +22 -0
- package/dist/dispatch/unknown-flag-refusal.d.ts.map +1 -0
- package/dist/dispatch/unknown-flag-refusal.js +57 -0
- package/dist/dispatch/unread-flags.d.ts +152 -0
- package/dist/dispatch/unread-flags.d.ts.map +1 -0
- package/dist/dispatch/unread-flags.js +295 -0
- package/dist/dispatch/verdict-valve-flag.d.ts +21 -0
- package/dist/dispatch/verdict-valve-flag.d.ts.map +1 -0
- package/dist/dispatch/verdict-valve-flag.js +21 -0
- package/dist/dispatch/walk-declared-subverbs.d.ts +14 -0
- package/dist/dispatch/walk-declared-subverbs.d.ts.map +1 -0
- package/dist/dispatch/walk-declared-subverbs.js +28 -0
- package/dist/exit-codes.d.ts +41 -3
- package/dist/exit-codes.d.ts.map +1 -1
- package/dist/exit-codes.js +153 -14
- package/dist/finish/run-finish.d.ts +72 -5
- package/dist/finish/run-finish.d.ts.map +1 -1
- package/dist/finish/run-finish.js +453 -104
- package/dist/gates/accepted-empty-note.d.ts +10 -0
- package/dist/gates/accepted-empty-note.d.ts.map +1 -0
- package/dist/gates/accepted-empty-note.js +11 -0
- package/dist/gates/allow-empty.d.ts +25 -0
- package/dist/gates/allow-empty.d.ts.map +1 -0
- package/dist/gates/allow-empty.js +27 -0
- package/dist/gates/asset-doctor-failing-units.d.ts +16 -0
- package/dist/gates/asset-doctor-failing-units.d.ts.map +1 -0
- package/dist/gates/asset-doctor-failing-units.js +14 -0
- package/dist/gates/asset-doctor-failure-line.d.ts +16 -0
- package/dist/gates/asset-doctor-failure-line.d.ts.map +1 -0
- package/dist/gates/asset-doctor-failure-line.js +28 -0
- package/dist/gates/empty-rule-advice-lines.d.ts +15 -0
- package/dist/gates/empty-rule-advice-lines.d.ts.map +1 -0
- package/dist/gates/empty-rule-advice-lines.js +20 -0
- package/dist/gates/gate-envelope.d.ts +85 -8
- package/dist/gates/gate-envelope.d.ts.map +1 -1
- package/dist/gates/gate-envelope.js +56 -7
- package/dist/gates/gate-rule-globs.d.ts +67 -0
- package/dist/gates/gate-rule-globs.d.ts.map +1 -0
- package/dist/gates/gate-rule-globs.js +139 -0
- package/dist/gates/gate-rule-view.d.ts +25 -6
- package/dist/gates/gate-rule-view.d.ts.map +1 -1
- package/dist/gates/gate-rule-view.js +105 -77
- package/dist/gates/i-coverage-dead-glob.d.ts +19 -0
- package/dist/gates/i-coverage-dead-glob.d.ts.map +1 -0
- package/dist/gates/i-coverage-dead-glob.js +1 -0
- package/dist/gates/i-coverage-negation.d.ts +13 -0
- package/dist/gates/i-coverage-negation.d.ts.map +1 -0
- package/dist/gates/i-coverage-negation.js +1 -0
- package/dist/gates/i-registration-query-settle-input.d.ts +18 -0
- package/dist/gates/i-registration-query-settle-input.d.ts.map +1 -0
- package/dist/gates/i-registration-query-settle-input.js +1 -0
- package/dist/gates/i-unit-state-note-row.d.ts +16 -0
- package/dist/gates/i-unit-state-note-row.d.ts.map +1 -0
- package/dist/gates/i-unit-state-note-row.js +1 -0
- package/dist/gates/i-unit-state-notes.d.ts +32 -0
- package/dist/gates/i-unit-state-notes.d.ts.map +1 -0
- package/dist/gates/i-unit-state-notes.js +1 -0
- package/dist/gates/incomplete-registry-inventory.d.ts +19 -0
- package/dist/gates/incomplete-registry-inventory.d.ts.map +1 -0
- package/dist/gates/incomplete-registry-inventory.js +63 -0
- package/dist/gates/measure-registration-roles.d.ts +10 -0
- package/dist/gates/measure-registration-roles.d.ts.map +1 -0
- package/dist/gates/measure-registration-roles.js +9 -0
- package/dist/gates/plane-verdict.d.ts +14 -0
- package/dist/gates/plane-verdict.d.ts.map +1 -0
- package/dist/gates/plane-verdict.js +22 -0
- package/dist/gates/qualify-clean-for-units.d.ts +12 -0
- package/dist/gates/qualify-clean-for-units.d.ts.map +1 -0
- package/dist/gates/qualify-clean-for-units.js +18 -0
- package/dist/gates/registration-graph-verdict.d.ts +34 -0
- package/dist/gates/registration-graph-verdict.d.ts.map +1 -0
- package/dist/gates/registration-graph-verdict.js +70 -0
- package/dist/gates/registration-roles.d.ts +9 -0
- package/dist/gates/registration-roles.d.ts.map +1 -0
- package/dist/gates/registration-roles.js +1 -0
- package/dist/gates/registry-liveness.d.ts +11 -0
- package/dist/gates/registry-liveness.d.ts.map +1 -0
- package/dist/gates/registry-liveness.js +13 -0
- package/dist/gates/rule-coverage.d.ts +225 -4
- package/dist/gates/rule-coverage.d.ts.map +1 -1
- package/dist/gates/rule-coverage.js +610 -43
- package/dist/gates/run-gate-planes.d.ts +58 -0
- package/dist/gates/run-gate-planes.d.ts.map +1 -0
- package/dist/gates/run-gate-planes.js +403 -0
- package/dist/gates/scaffold-selftest.d.ts +56 -0
- package/dist/gates/scaffold-selftest.d.ts.map +1 -0
- package/dist/gates/scaffold-selftest.js +119 -0
- package/dist/gates/seam-rejected-rules.d.ts +28 -0
- package/dist/gates/seam-rejected-rules.d.ts.map +1 -0
- package/dist/gates/seam-rejected-rules.js +95 -0
- package/dist/gates/self-test-check.d.ts +29 -0
- package/dist/gates/self-test-check.d.ts.map +1 -0
- package/dist/gates/self-test-check.js +1 -0
- package/dist/gates/self-test-subject.d.ts +28 -0
- package/dist/gates/self-test-subject.d.ts.map +1 -0
- package/dist/gates/self-test-subject.js +1 -0
- package/dist/gates/self-test.d.ts +20 -0
- package/dist/gates/self-test.d.ts.map +1 -0
- package/dist/gates/self-test.js +82 -0
- package/dist/gates/settle-verdict.d.ts +14 -0
- package/dist/gates/settle-verdict.d.ts.map +1 -0
- package/dist/gates/settle-verdict.js +13 -0
- package/dist/gates/settled-verdict.d.ts +8 -0
- package/dist/gates/settled-verdict.d.ts.map +1 -0
- package/dist/gates/settled-verdict.js +1 -0
- package/dist/gates/template-registry-coverage.d.ts +18 -0
- package/dist/gates/template-registry-coverage.d.ts.map +1 -0
- package/dist/gates/template-registry-coverage.js +24 -0
- package/dist/gates/unit-state-notes.d.ts +40 -0
- package/dist/gates/unit-state-notes.d.ts.map +1 -0
- package/dist/gates/unit-state-notes.js +71 -0
- package/dist/gates/verdict-line.d.ts +18 -0
- package/dist/gates/verdict-line.d.ts.map +1 -0
- package/dist/gates/verdict-line.js +40 -0
- package/dist/graph/graph-reuse-lookup.d.ts +10 -0
- package/dist/graph/graph-reuse-lookup.d.ts.map +1 -0
- package/dist/graph/graph-reuse-lookup.js +41 -0
- package/dist/graph/index-behind-hint.d.ts +11 -0
- package/dist/graph/index-behind-hint.d.ts.map +1 -0
- package/dist/graph/index-behind-hint.js +27 -0
- package/dist/knowledge/knowledge-stale-gate-flags.d.ts +3 -0
- package/dist/knowledge/knowledge-stale-gate-flags.d.ts.map +1 -0
- package/dist/knowledge/knowledge-stale-gate-flags.js +1 -0
- package/dist/knowledge/knowledge-stale-gate-input.d.ts +3 -0
- package/dist/knowledge/knowledge-stale-gate-input.d.ts.map +1 -0
- package/dist/knowledge/knowledge-stale-gate-input.js +1 -0
- package/dist/knowledge/knowledge-stale-gate-result.d.ts +3 -0
- package/dist/knowledge/knowledge-stale-gate-result.d.ts.map +1 -0
- package/dist/knowledge/knowledge-stale-gate-result.js +1 -0
- package/dist/knowledge/knowledge-stale-gate.d.ts +10 -0
- package/dist/knowledge/knowledge-stale-gate.d.ts.map +1 -0
- package/dist/knowledge/knowledge-stale-gate.js +9 -0
- package/dist/main.d.ts.map +1 -1
- package/dist/main.js +204 -83
- package/dist/output/failure-hints.d.ts.map +1 -1
- package/dist/output/failure-hints.js +11 -9
- package/dist/output/rejected-entries-note.d.ts +57 -0
- package/dist/output/rejected-entries-note.d.ts.map +1 -0
- package/dist/output/rejected-entries-note.js +103 -0
- package/dist/output/stdout-is-pipe.d.ts +13 -0
- package/dist/output/stdout-is-pipe.d.ts.map +1 -0
- package/dist/output/stdout-is-pipe.js +21 -0
- package/dist/packs/stale-build-warning.d.ts +11 -0
- package/dist/packs/stale-build-warning.d.ts.map +1 -0
- package/dist/packs/stale-build-warning.js +23 -0
- package/dist/quality/run-quality.d.ts +123 -0
- package/dist/quality/run-quality.d.ts.map +1 -0
- package/dist/quality/run-quality.js +442 -0
- package/dist/schemas/json-schemas.d.ts +184 -3
- package/dist/schemas/json-schemas.d.ts.map +1 -1
- package/dist/schemas/json-schemas.js +113 -2
- package/dist/shrk.d.ts +3 -0
- package/dist/shrk.d.ts.map +1 -0
- package/dist/shrk.js +30 -0
- package/dist/surface/audience-applicability.d.ts +26 -0
- package/dist/surface/audience-applicability.d.ts.map +1 -0
- package/dist/surface/audience-applicability.js +60 -0
- package/dist/surface/catalog-command-safety.d.ts +18 -0
- package/dist/surface/catalog-command-safety.d.ts.map +1 -0
- package/dist/surface/catalog-command-safety.js +62 -0
- package/dist/surface/cli-command-resolver.d.ts +21 -0
- package/dist/surface/cli-command-resolver.d.ts.map +1 -0
- package/dist/surface/cli-command-resolver.js +87 -0
- package/dist/surface/command-dispatch-kind.d.ts +20 -0
- package/dist/surface/command-dispatch-kind.d.ts.map +1 -0
- package/dist/surface/command-dispatch-kind.js +20 -0
- package/dist/surface/command-index-entry.d.ts +40 -0
- package/dist/surface/command-index-entry.d.ts.map +1 -0
- package/dist/surface/command-index-entry.js +1 -0
- package/dist/surface/command-index.d.ts +77 -0
- package/dist/surface/command-index.d.ts.map +1 -0
- package/dist/surface/command-index.js +323 -0
- package/dist/surface/i-command-index.d.ts +22 -0
- package/dist/surface/i-command-index.d.ts.map +1 -0
- package/dist/surface/i-command-index.js +1 -0
- package/dist/surface/i-command-string-context.d.ts +20 -0
- package/dist/surface/i-command-string-context.d.ts.map +1 -0
- package/dist/surface/i-command-string-context.js +1 -0
- package/dist/surface/i-surface-denial.d.ts +13 -0
- package/dist/surface/i-surface-denial.d.ts.map +1 -0
- package/dist/surface/i-surface-denial.js +1 -0
- package/dist/surface/load-surface-context.d.ts +17 -1
- package/dist/surface/load-surface-context.d.ts.map +1 -1
- package/dist/surface/load-surface-context.js +48 -10
- package/dist/surface/not-enabled-error.d.ts +38 -4
- package/dist/surface/not-enabled-error.d.ts.map +1 -1
- package/dist/surface/not-enabled-error.js +96 -6
- package/dist/surface/profiles.d.ts +7 -0
- package/dist/surface/profiles.d.ts.map +1 -1
- package/dist/surface/resolve-command-string.d.ts +10 -0
- package/dist/surface/resolve-command-string.d.ts.map +1 -0
- package/dist/surface/resolve-command-string.js +572 -0
- package/dist/surface/surface-config-writer.d.ts +7 -2
- package/dist/surface/surface-config-writer.d.ts.map +1 -1
- package/dist/surface/surface-config-writer.js +25 -6
- package/dist/surface/surface-layer.d.ts +11 -0
- package/dist/surface/surface-layer.d.ts.map +1 -0
- package/dist/surface/surface-layer.js +11 -0
- package/dist/surface/surface-refusal-reason.d.ts +16 -0
- package/dist/surface/surface-refusal-reason.d.ts.map +1 -0
- package/dist/surface/surface-refusal-reason.js +16 -0
- package/dist/surface/surface-selector.d.ts +26 -0
- package/dist/surface/surface-selector.d.ts.map +1 -0
- package/dist/surface/surface-selector.js +42 -0
- package/dist/surface/surface-summary.d.ts +61 -18
- package/dist/surface/surface-summary.d.ts.map +1 -1
- package/dist/surface/surface-summary.js +147 -60
- package/dist/surface/tier.d.ts +85 -22
- package/dist/surface/tier.d.ts.map +1 -1
- package/dist/surface/tier.js +132 -30
- package/dist/usage/usage-log.d.ts +6 -1
- package/dist/usage/usage-log.d.ts.map +1 -1
- package/dist/usage/usage-log.js +7 -2
- package/dist/validation/run-validation-loop.d.ts +9 -0
- package/dist/validation/run-validation-loop.d.ts.map +1 -1
- package/dist/validation/run-validation-loop.js +14 -11
- package/dist/validation/typecheck-emitted.d.ts +8 -9
- package/dist/validation/typecheck-emitted.d.ts.map +1 -1
- package/dist/validation/typecheck-emitted.js +17 -97
- package/package.json +34 -34
package/dist/exit-codes.js
CHANGED
|
@@ -84,46 +84,185 @@ export function argvHasExitTrailer(argv) {
|
|
|
84
84
|
return false;
|
|
85
85
|
}
|
|
86
86
|
/**
|
|
87
|
-
*
|
|
88
|
-
*
|
|
89
|
-
*
|
|
90
|
-
*
|
|
91
|
-
*
|
|
87
|
+
* THE verdict-verb registry: command paths (space-joined, as `runCli` derives
|
|
88
|
+
* them with `extractCommandPath(argv, VERDICT_PATH_TOKENS)` — at most THREE
|
|
89
|
+
* leading positional tokens) whose exit code is an HONEST verdict an agent
|
|
90
|
+
* chains on — the set for which a masked exit is a real hazard.
|
|
91
|
+
*
|
|
92
|
+
* Register the SHORTEST path that is a verdict and nothing wider: `docs
|
|
93
|
+
* references check` is three tokens because its siblings `docs references
|
|
94
|
+
* list` / `explain` are informational, and registering `docs references` would
|
|
95
|
+
* make them verdict verbs too (the trailer would print `shrk-exit: 0` for a
|
|
96
|
+
* listing). A two-token entry covers every deeper path under it.
|
|
97
|
+
*
|
|
98
|
+
* Membership enables {@link emitPipeExitSignal}'s stderr note and the
|
|
99
|
+
* `--exit-trailer` line, never behaviour. It is also the list the round-11
|
|
100
|
+
* contract test iterates: every entry must have a row in
|
|
101
|
+
* `r75-verdict-coverage-contract.test.ts`, every verb that builds a gate
|
|
102
|
+
* envelope must be in here, and every CLI file that settles a verdict through
|
|
103
|
+
* `settleVerdict(` names its verbs (each registered) or a reasoned exemption in
|
|
104
|
+
* that test's two-way settle-site ledger. A NEW verdict verb therefore adds itself here, or
|
|
105
|
+
* CI fails — the registry and the contract cannot drift apart.
|
|
92
106
|
*/
|
|
93
|
-
const GATE_VERB_PATHS = new Set([
|
|
107
|
+
export const GATE_VERB_PATHS = new Set([
|
|
94
108
|
'finish',
|
|
95
109
|
'gate',
|
|
96
110
|
'arch',
|
|
97
111
|
'doctor',
|
|
98
112
|
'diff-check',
|
|
113
|
+
// Bare `shrk check` — the SharkCraft-level sweep (doctor / knowledge /
|
|
114
|
+
// templates / pipelines / packs / action hints) settles 0/1/2 through
|
|
115
|
+
// settleVerdict; a doctor shortfall is 2 (round 11). Every `check` subverb is
|
|
116
|
+
// a verdict as well (it has no list/explain siblings), so the one-token entry
|
|
117
|
+
// is the shortest verdict path and misclassifies nothing. The `check <plane>`
|
|
118
|
+
// entries stay because the contract matrix records which emit the envelope.
|
|
119
|
+
'check',
|
|
99
120
|
'check boundaries',
|
|
100
121
|
'check wiring',
|
|
101
122
|
'check orphans',
|
|
102
|
-
'check policy',
|
|
103
123
|
'check imports',
|
|
124
|
+
'check registry-lifecycle',
|
|
104
125
|
'wiring unprovided',
|
|
105
126
|
'wiring orphans',
|
|
106
127
|
'wiring chain',
|
|
107
128
|
'registry',
|
|
129
|
+
// The lifecycle subverb emits the settled gate envelope (the MATRIX row says
|
|
130
|
+
// so precisely); `registry <name> exists|where|duplicates` keep the plain
|
|
131
|
+
// exit contract under the `registry` entry above.
|
|
132
|
+
'registry lifecycle',
|
|
108
133
|
'graph why',
|
|
109
134
|
'graph cycles',
|
|
135
|
+
// The data-defined gate verbs, the aggregate, and the corpus check — each
|
|
136
|
+
// exits 0/1/2/3 on purpose, and until round 11 none of them honoured
|
|
137
|
+
// `--exit-trailer`, although they are the verbs most often piped in CI.
|
|
138
|
+
'gates check',
|
|
139
|
+
'gates coverage',
|
|
140
|
+
'quality',
|
|
141
|
+
'policy-lint',
|
|
142
|
+
'baseline check',
|
|
143
|
+
// The bless step (round 11): a value computed from an incomplete read (a file
|
|
144
|
+
// over the read cap) is refused and the run settles 2 — a refusal a pipe must
|
|
145
|
+
// not mask. Its siblings `list` / `diff` / `explain` are informational, so the
|
|
146
|
+
// entry is two tokens, never `baseline`.
|
|
147
|
+
'baseline update',
|
|
148
|
+
'generated check',
|
|
149
|
+
'docs references check',
|
|
150
|
+
'knowledge stale-check',
|
|
151
|
+
'knowledge verify',
|
|
152
|
+
// Curated reusePrimitives[] vs the public export surface (round 11 §2.4).
|
|
153
|
+
'reuse coverage',
|
|
154
|
+
// Helper files loaded + validated — 0/1/2 (+ --allow-empty) (round 11 §3.6).
|
|
155
|
+
'helper doctor',
|
|
156
|
+
// The self-config and asset doctors (round 11 §1.3 / §1.6): 0 pass · 1
|
|
157
|
+
// errors (or warnings under --strict, dead units under --fail-on-dead-units)
|
|
158
|
+
// · 2 a dead selector or an unverifiable unit — settled against coverage.
|
|
159
|
+
'self-config doctor',
|
|
160
|
+
// Broken self-config references (round 11 review): 0 none · 1 a broken
|
|
161
|
+
// reference · 2 an id that could not be looked up — settled through
|
|
162
|
+
// settleVerdict; its `2` must survive a pipe, and a bad flag is `3`.
|
|
163
|
+
'self-config broken-links',
|
|
164
|
+
// Round 13 (lane A): the report writer settles THE self-config verdict
|
|
165
|
+
// (`self-config doctor`'s, --strict / --fail-on-dead-units included) — its
|
|
166
|
+
// `2` must survive a pipe, and a bad flag is `3`, never that `2`.
|
|
167
|
+
'self-config report',
|
|
168
|
+
'registrations doctor',
|
|
169
|
+
'scaffolds doctor',
|
|
170
|
+
'search tuning doctor',
|
|
171
|
+
// The pack + template verdicts (round 11 §1.4 / §3.2 / §3.3): each settles
|
|
172
|
+
// against its coverage (packs discovered, TS files type-checked, compiled
|
|
173
|
+
// artifacts with a build record, templates whose operations were checked),
|
|
174
|
+
// so a `2` is real and must survive a pipe.
|
|
175
|
+
'packs doctor',
|
|
176
|
+
'packs release-check',
|
|
177
|
+
'packs signature-status',
|
|
178
|
+
'packs test',
|
|
179
|
+
'templates doctor',
|
|
180
|
+
// The custom-checks and conventions doctors (round 11 §3.2 / §4.6): 0
|
|
181
|
+
// validated · 1 a declaration that can never run (or a warning under
|
|
182
|
+
// --strict) · 2 nothing declared (--allow-empty) or a file never read.
|
|
183
|
+
'checks doctor',
|
|
184
|
+
'conventions doctor',
|
|
185
|
+
// Round 13: `conventions check` settles through the gate envelope — 0 no
|
|
186
|
+
// error-severity hit · 1 an error-severity hit · 2 no file in scope, no
|
|
187
|
+
// convention declared (--allow-empty accepts either) or a convention file
|
|
188
|
+
// never read. It printed "ok — no violations" at 0 over an empty scope.
|
|
189
|
+
'conventions check',
|
|
190
|
+
// Agent-contract and context tests (round 11, doctor lane): 0 every test
|
|
191
|
+
// passed · 1 a test failed · 2 a test could not be evaluated, or none are
|
|
192
|
+
// configured (--allow-empty accepts that) · 3 an `--id` that selects nothing.
|
|
193
|
+
'test agent',
|
|
194
|
+
'test context',
|
|
195
|
+
// The rule-authoring REPL (round 11, dispatcher lane): 0 the candidate's
|
|
196
|
+
// selfTest held · 1 an expectation failed · 2 the candidate could not be
|
|
197
|
+
// evaluated · 3 a malformed spec or an unknown flag.
|
|
198
|
+
'gates try',
|
|
199
|
+
// The selfTest scaffolder (round 11 review): it refuses to scaffold from a
|
|
200
|
+
// count read off an incomplete scan and settles 2 (settleVerdict) — like
|
|
201
|
+
// `baseline update`, a refusal a pipe must not mask. Its siblings `list` /
|
|
202
|
+
// `explain` are informational, so the entry is two tokens.
|
|
203
|
+
'gates scaffold-selftest',
|
|
204
|
+
// Round 11 review (R11-GAP-5 / R11-GAP-3): verdict-shaped verbs this round
|
|
205
|
+
// changed. Each exits a code an agent chains on, so it must survive a pipe
|
|
206
|
+
// (`--exit-trailer`) and must never collide with a usage error (now 3):
|
|
207
|
+
// - `boundaries suggest`: 2 over zero rules (nothing was checked);
|
|
208
|
+
// - `packs contributions`: 1 on an error-severity conflict (a contribution
|
|
209
|
+
// file that failed to load, a duplicate id) or an entry a loader
|
|
210
|
+
// REJECTED; 2 (round 12) when only references whose kind's registry is
|
|
211
|
+
// empty or undeclarable remain — settled through settleVerdict;
|
|
212
|
+
// - `self-config resolve`: 0 resolved · 1 unresolved — a lookup verdict,
|
|
213
|
+
// like `registry <name> exists`;
|
|
214
|
+
// - `recommend`: 0 by default and 2 under `--require-confident` when
|
|
215
|
+
// nothing matched with confidence — registered so a bad flag is 3, never
|
|
216
|
+
// that 2 (the verdict is flag-keyed, but the collision is not);
|
|
217
|
+
// - `drift` (and `drift rules --strict`): 1 on an error finding, 2 when a
|
|
218
|
+
// boundary scope it reads was never fully examined;
|
|
219
|
+
// - `architecture violations`: 1 on a violation, 2 over zero boundary
|
|
220
|
+
// rules or an unexamined scope (the boundary orchestrator's verdict);
|
|
221
|
+
// - `checks list`: 1 on a declaration that can never run, 3 on a `--rule`
|
|
222
|
+
// naming no rule — its advertised exit contract (the contract test's
|
|
223
|
+
// "advertises an exit" ledger found it).
|
|
224
|
+
'checks list',
|
|
225
|
+
'boundaries suggest',
|
|
226
|
+
'packs contributions',
|
|
227
|
+
'self-config resolve',
|
|
228
|
+
'recommend',
|
|
229
|
+
'drift',
|
|
230
|
+
'architecture violations',
|
|
110
231
|
]);
|
|
232
|
+
/**
|
|
233
|
+
* How many leading positional tokens `runCli` reads to decide whether a verb is
|
|
234
|
+
* a verdict verb — the deepest {@link GATE_VERB_PATHS} entry. (Usage logging
|
|
235
|
+
* keeps its own two-token paths; this only feeds {@link emitPipeExitSignal}.)
|
|
236
|
+
*/
|
|
237
|
+
export const VERDICT_PATH_TOKENS = 3;
|
|
111
238
|
/**
|
|
112
239
|
* Is `commandPath` (space-joined, e.g. `check boundaries` / `wiring unprovided`
|
|
113
|
-
* / `finish`) a gate/verify verb whose exit code
|
|
114
|
-
* Matches the exact path
|
|
115
|
-
* so `check boundaries --json
|
|
240
|
+
* / `finish` / `docs references check`) a gate/verify verb whose exit code
|
|
241
|
+
* carries a chained verdict? Matches the exact path or any of its one-, two- or
|
|
242
|
+
* three-token prefixes — so `check boundaries --json`, a bare `finish` and
|
|
243
|
+
* `graph why a b` all resolve, while `docs references list` does not.
|
|
116
244
|
*/
|
|
117
245
|
export function isGateVerb(commandPath) {
|
|
118
246
|
if (GATE_VERB_PATHS.has(commandPath))
|
|
119
247
|
return true;
|
|
120
248
|
const parts = commandPath.split(' ').filter((p) => p.length > 0);
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
249
|
+
for (let n = Math.min(parts.length, VERDICT_PATH_TOKENS); n >= 1; n -= 1) {
|
|
250
|
+
if (GATE_VERB_PATHS.has(parts.slice(0, n).join(' ')))
|
|
251
|
+
return true;
|
|
252
|
+
}
|
|
125
253
|
return false;
|
|
126
254
|
}
|
|
255
|
+
/**
|
|
256
|
+
* The exit code for a malformed invocation of `commandPath` — an unknown
|
|
257
|
+
* subcommand, an unknown flag, a verb-shaped token that is no subverb and no
|
|
258
|
+
* file, an input the command silently ignored. THE documented split: `3`
|
|
259
|
+
* (UsageError) on a verdict verb, whose `2` must keep meaning "ran but proved
|
|
260
|
+
* nothing"; `2` everywhere else. The dispatcher guard and the post-run
|
|
261
|
+
* unknown-flag detector both read it, so one invocation mistake exits one way.
|
|
262
|
+
*/
|
|
263
|
+
export function usageExitFor(commandPath) {
|
|
264
|
+
return isGateVerb(commandPath) ? ExitCode.UsageError : ExitCode.NotVerified;
|
|
265
|
+
}
|
|
127
266
|
/**
|
|
128
267
|
* True when the argv carries the global `--no-hints` (before the `--`
|
|
129
268
|
* sentinel). Suppresses advisory one-liners like the piped-exit note while
|
|
@@ -1,8 +1,15 @@
|
|
|
1
1
|
import { type IChangedScopeOptions } from '@shrkcrft/inspector';
|
|
2
|
+
import { type IVerdictCoverage } from '@shrkcrft/core';
|
|
2
3
|
import { ExitCode } from '../exit-codes.js';
|
|
4
|
+
import { type IGateEnvelope } from '../gates/gate-envelope.js';
|
|
3
5
|
export declare const FINISH_SCHEMA: "sharkcraft.finish/v1";
|
|
4
|
-
/**
|
|
5
|
-
|
|
6
|
+
/**
|
|
7
|
+
* Outcome of one sub-gate. `skipped` = nothing to evaluate (loud, never silent
|
|
8
|
+
* green). `partial` = ran, found nothing wrong, and did NOT examine all of its
|
|
9
|
+
* scope (a coverage shortfall) — set ONLY by runFinishGates' settle step, never
|
|
10
|
+
* by a sub-gate producer, so text and --json report the same word.
|
|
11
|
+
*/
|
|
12
|
+
export type FinishGateStatus = 'pass' | 'fail' | 'skipped' | 'partial';
|
|
6
13
|
/** One failing/relevant item, with file:line where the engine provides it. */
|
|
7
14
|
export interface IFinishItem {
|
|
8
15
|
readonly file?: string;
|
|
@@ -26,6 +33,36 @@ export interface IFinishGate {
|
|
|
26
33
|
* to this changeset.
|
|
27
34
|
*/
|
|
28
35
|
readonly advisory?: boolean;
|
|
36
|
+
/**
|
|
37
|
+
* What the sub-gate examined against what it was asked to (round 11). A
|
|
38
|
+
* `pass` whose coverage has a shortfall proved nothing about the rest: the
|
|
39
|
+
* settle step reports it `partial` and the composite is not-verified (2).
|
|
40
|
+
* Set by the boundaries, wiring, policy and orphans sub-gates.
|
|
41
|
+
*/
|
|
42
|
+
readonly coverage?: IVerdictCoverage;
|
|
43
|
+
/**
|
|
44
|
+
* Further coverage records the sub-gate settled beside {@link coverage}
|
|
45
|
+
* (round 13 review). The unprovided sub-gate reads one role record per idiom
|
|
46
|
+
* (and each idiom's expectEmpty acceptance) plus the graph's read scope; a
|
|
47
|
+
* single `coverage` kept one of them, so a second idiom's acceptance was
|
|
48
|
+
* never printed and a second dead role never named. Each becomes its own
|
|
49
|
+
* envelope row, and the settle step derives `partial` / `shortfall` over
|
|
50
|
+
* every record.
|
|
51
|
+
*/
|
|
52
|
+
readonly extraCoverage?: readonly IVerdictCoverage[];
|
|
53
|
+
/**
|
|
54
|
+
* The coverage shortfall, derived by the settle step (a producer's value is
|
|
55
|
+
* overwritten) — present whenever {@link coverage} has one, so a --json
|
|
56
|
+
* reader sees WHY a gate is `partial` (or what a failing gate never examined).
|
|
57
|
+
*/
|
|
58
|
+
readonly shortfall?: string;
|
|
59
|
+
/**
|
|
60
|
+
* Advisory notes that NEVER decide the verdict and are not items (round 13):
|
|
61
|
+
* the boundaries sub-gate lists its dead selector units and went-live
|
|
62
|
+
* expectEmpty markers here — what `check boundaries` withholds its ✓ for —
|
|
63
|
+
* without turning them into envelope violations.
|
|
64
|
+
*/
|
|
65
|
+
readonly notes?: readonly string[];
|
|
29
66
|
}
|
|
30
67
|
export interface IFinishImpact {
|
|
31
68
|
readonly ran: boolean;
|
|
@@ -48,13 +85,14 @@ export interface IFinishReport {
|
|
|
48
85
|
* The honest tri-state verdict:
|
|
49
86
|
* `fail` — a deciding gate failed (or the config could not load).
|
|
50
87
|
* `not-verified` — NOTHING was actually evaluated (every deciding gate
|
|
51
|
-
* skipped / the changed scope had nothing to gate)
|
|
88
|
+
* skipped / the changed scope had nothing to gate), or a
|
|
89
|
+
* deciding gate passed over part of its scope. Never a
|
|
52
90
|
* green `pass` — "evaluated nothing" is `2`, not `0`.
|
|
53
91
|
* `pass` — at least one deciding gate ran over a real scope and every
|
|
54
|
-
* deciding gate passed.
|
|
92
|
+
* deciding gate passed over all of it.
|
|
55
93
|
*/
|
|
56
94
|
readonly verdict: 'pass' | 'fail' | 'not-verified';
|
|
57
|
-
/** The exit code this verdict maps to (0 pass / 1 fail / 2 not-verified). */
|
|
95
|
+
/** The exit code this verdict maps to (0 pass / 1 fail / 2 not-verified). Equals `gate.exit`. */
|
|
58
96
|
readonly exit: ExitCode;
|
|
59
97
|
/** Total warning-severity findings across gates (non-blocking). */
|
|
60
98
|
readonly warnings: number;
|
|
@@ -62,11 +100,24 @@ export interface IFinishReport {
|
|
|
62
100
|
readonly configError?: string;
|
|
63
101
|
readonly summary: string;
|
|
64
102
|
readonly nextAction: string;
|
|
103
|
+
/**
|
|
104
|
+
* The shared gate envelope (round 11): one row per deciding sub-gate that
|
|
105
|
+
* evaluated something, settled against every sub-gate's coverage. The exit
|
|
106
|
+
* and verdict above ARE this envelope's — finish folds through the same
|
|
107
|
+
* builder every verdict verb uses, never a private fold.
|
|
108
|
+
*/
|
|
109
|
+
readonly gate: IGateEnvelope;
|
|
65
110
|
}
|
|
66
111
|
export interface IRunFinishInput {
|
|
67
112
|
readonly cwd: string;
|
|
68
113
|
readonly mode: 'worktree' | 'staged' | 'since' | 'files';
|
|
69
114
|
readonly scope: IChangedScopeOptions;
|
|
115
|
+
/**
|
|
116
|
+
* The `--allow-empty` valve, supplied by the command (`allowEmptyValve(args,
|
|
117
|
+
* expected)`), applied to the run coverage: a changeset with nothing any
|
|
118
|
+
* deciding gate could evaluate settles to 0 only when the caller accepted it.
|
|
119
|
+
*/
|
|
120
|
+
readonly emptyValve?: (expected: number) => Pick<IVerdictCoverage, 'acceptedBy'>;
|
|
70
121
|
}
|
|
71
122
|
/**
|
|
72
123
|
* The composite "is this changeset safe to finish?" orchestrator. Runs every
|
|
@@ -78,4 +129,20 @@ export interface IRunFinishInput {
|
|
|
78
129
|
* semantics so a no-op sub-check is reported, never silently passed. Read-only.
|
|
79
130
|
*/
|
|
80
131
|
export declare function runFinishGates(input: IRunFinishInput): Promise<IFinishReport>;
|
|
132
|
+
/**
|
|
133
|
+
* One sub-gate's coverage over the rules its changeset SELECTED, folded from
|
|
134
|
+
* each rule's ENGINE coverage through core's `coverageShortfall` — the rule
|
|
135
|
+
* `check wiring --changed-only` / `policy-lint --changed-only` / `check
|
|
136
|
+
* boundaries --changed-only` settle their exit on — so a rule that passed over
|
|
137
|
+
* part of its scope, or examined nothing at all, is unexamined here exactly as
|
|
138
|
+
* those verbs count it. Returns the record and the ` — NOT VERIFIED: <rule>:
|
|
139
|
+
* <shortfall>` detail suffix. `diff-check` folds its boundaries row with it too.
|
|
140
|
+
*/
|
|
141
|
+
export declare function ruleSetCoverage(unit: string, rules: readonly {
|
|
142
|
+
readonly ruleId: string;
|
|
143
|
+
readonly coverage: IVerdictCoverage;
|
|
144
|
+
}[], reason: string): {
|
|
145
|
+
readonly coverage: IVerdictCoverage;
|
|
146
|
+
readonly notVerified: string;
|
|
147
|
+
};
|
|
81
148
|
//# sourceMappingURL=run-finish.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"run-finish.d.ts","sourceRoot":"","sources":["../../src/finish/run-finish.ts"],"names":[],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