@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
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
import type { ICommandHandler, ParsedArgs } from '../command-registry.js';
|
|
2
|
+
import type { ICommandIndex } from '../surface/i-command-index.js';
|
|
3
|
+
import type { IInvocationRejection } from './invocation-rejection.js';
|
|
4
|
+
/**
|
|
5
|
+
* THE pre-run refusal of a VERDICT-VALVE flag ({@link VerdictValveFlag}) the
|
|
6
|
+
* resolved subverb does not document (round 13, K1) — part of the one
|
|
7
|
+
* `judgeInvocation`, so the dispatcher and the command-string resolver refuse
|
|
8
|
+
* the same string.
|
|
9
|
+
*
|
|
10
|
+
* `shrk check --fail-on-dead-units` ran the whole sweep and only then exited 3
|
|
11
|
+
* (the post-run judgement of a sibling-only flag): only `check boundaries`
|
|
12
|
+
* documents the flag. A valve changes what the exit MEANS, so a run that
|
|
13
|
+
* ignored one must not print a verdict first. The invocation's documentation
|
|
14
|
+
* is {@link invocationFlagDocumentation} — its walked usages, the index entries
|
|
15
|
+
* its path passes through and the handler's `UNDOCUMENTED_FLAG_READS` row — and
|
|
16
|
+
* the message names the subverbs that do accept the flag. Exits
|
|
17
|
+
* `usageExitFor(path)`: 3 on a verdict verb, 2 elsewhere.
|
|
18
|
+
*
|
|
19
|
+
* The group-level refusal (`refuseUndocumentedFlags`) has already refused a
|
|
20
|
+
* flag no documentation of the group names, so every flag judged here is one
|
|
21
|
+
* a SIBLING documents. The index is built only when the walked usages leave a
|
|
22
|
+
* supplied valve flag unexplained.
|
|
23
|
+
*/
|
|
24
|
+
export declare function refuseSiblingValveFlags(input: {
|
|
25
|
+
readonly handler: ICommandHandler;
|
|
26
|
+
readonly matchedPath: readonly string[];
|
|
27
|
+
readonly parsed: ParsedArgs;
|
|
28
|
+
readonly index: () => ICommandIndex;
|
|
29
|
+
}): IInvocationRejection | undefined;
|
|
30
|
+
//# sourceMappingURL=refuse-sibling-valve-flags.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"refuse-sibling-valve-flags.d.ts","sourceRoot":"","sources":["../../src/dispatch/refuse-sibling-valve-flags.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,eAAe,EAAE,UAAU,EAAE,MAAM,wBAAwB,CAAC;AAE1E,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,+BAA+B,CAAC;AAEnE,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,2BAA2B,CAAC;AActE;;;;;;;;;;;;;;;;;;;GAmBG;AACH,wBAAgB,uBAAuB,CAAC,KAAK,EAAE;IAC7C,QAAQ,CAAC,OAAO,EAAE,eAAe,CAAC;IAClC,QAAQ,CAAC,WAAW,EAAE,SAAS,MAAM,EAAE,CAAC;IACxC,QAAQ,CAAC,MAAM,EAAE,UAAU,CAAC;IAC5B,QAAQ,CAAC,KAAK,EAAE,MAAM,aAAa,CAAC;CACrC,GAAG,oBAAoB,GAAG,SAAS,CAgCnC"}
|
|
@@ -0,0 +1,65 @@
|
|
|
1
|
+
import { usageExitFor } from "../exit-codes.js";
|
|
2
|
+
import { GLOBAL_FLAGS } from "./global-flags.js";
|
|
3
|
+
import { unknownFlagRefusal } from "./unknown-flag-refusal.js";
|
|
4
|
+
import { UnknownFlagRefusalMode } from "./unknown-flag-refusal-mode.js";
|
|
5
|
+
import { documentedFlagNames, invocationFlagDocumentation, isFlagDocumented, siblingsDocumenting, } from "./unread-flags.js";
|
|
6
|
+
import { VerdictValveFlag } from "./verdict-valve-flag.js";
|
|
7
|
+
import { walkDeclaredSubverbs } from "./walk-declared-subverbs.js";
|
|
8
|
+
const VALVE_FLAGS = new Set(Object.values(VerdictValveFlag));
|
|
9
|
+
/**
|
|
10
|
+
* THE pre-run refusal of a VERDICT-VALVE flag ({@link VerdictValveFlag}) the
|
|
11
|
+
* resolved subverb does not document (round 13, K1) — part of the one
|
|
12
|
+
* `judgeInvocation`, so the dispatcher and the command-string resolver refuse
|
|
13
|
+
* the same string.
|
|
14
|
+
*
|
|
15
|
+
* `shrk check --fail-on-dead-units` ran the whole sweep and only then exited 3
|
|
16
|
+
* (the post-run judgement of a sibling-only flag): only `check boundaries`
|
|
17
|
+
* documents the flag. A valve changes what the exit MEANS, so a run that
|
|
18
|
+
* ignored one must not print a verdict first. The invocation's documentation
|
|
19
|
+
* is {@link invocationFlagDocumentation} — its walked usages, the index entries
|
|
20
|
+
* its path passes through and the handler's `UNDOCUMENTED_FLAG_READS` row — and
|
|
21
|
+
* the message names the subverbs that do accept the flag. Exits
|
|
22
|
+
* `usageExitFor(path)`: 3 on a verdict verb, 2 elsewhere.
|
|
23
|
+
*
|
|
24
|
+
* The group-level refusal (`refuseUndocumentedFlags`) has already refused a
|
|
25
|
+
* flag no documentation of the group names, so every flag judged here is one
|
|
26
|
+
* a SIBLING documents. The index is built only when the walked usages leave a
|
|
27
|
+
* supplied valve flag unexplained.
|
|
28
|
+
*/
|
|
29
|
+
export function refuseSiblingValveFlags(input) {
|
|
30
|
+
const supplied = [...input.parsed.flags.keys()].filter((key) => VALVE_FLAGS.has(key) && !GLOBAL_FLAGS.has(key));
|
|
31
|
+
if (supplied.length === 0)
|
|
32
|
+
return undefined;
|
|
33
|
+
const walk = walkDeclaredSubverbs(input.handler, input.matchedPath, input.parsed.positional);
|
|
34
|
+
// The cheap path: the handler's own usage and the walked level's usage.
|
|
35
|
+
const own = [input.handler.usage, walk.level.usage];
|
|
36
|
+
const unsure = supplied.filter((key) => !isFlagDocumented(key, own));
|
|
37
|
+
if (unsure.length === 0)
|
|
38
|
+
return undefined;
|
|
39
|
+
const index = input.index();
|
|
40
|
+
const docs = invocationFlagDocumentation({
|
|
41
|
+
handler: input.handler,
|
|
42
|
+
matchedPath: input.matchedPath,
|
|
43
|
+
positional: input.parsed.positional,
|
|
44
|
+
index,
|
|
45
|
+
});
|
|
46
|
+
const refused = unsure.filter((key) => !isFlagDocumented(key, docs));
|
|
47
|
+
if (refused.length === 0)
|
|
48
|
+
return undefined;
|
|
49
|
+
const label = walk.path.join(' ');
|
|
50
|
+
const documentedOn = {};
|
|
51
|
+
for (const key of refused) {
|
|
52
|
+
const owners = siblingsDocumenting(key, input.matchedPath, walk.path, index);
|
|
53
|
+
if (owners.length > 0)
|
|
54
|
+
documentedOn[key] = owners;
|
|
55
|
+
}
|
|
56
|
+
return unknownFlagRefusal({
|
|
57
|
+
label,
|
|
58
|
+
flags: refused,
|
|
59
|
+
known: documentedFlagNames(docs),
|
|
60
|
+
documentedOn,
|
|
61
|
+
...(input.parsed.argv !== undefined ? { argv: input.parsed.argv } : {}),
|
|
62
|
+
exitCode: usageExitFor(label),
|
|
63
|
+
mode: UnknownFlagRefusalMode.BeforeRun,
|
|
64
|
+
});
|
|
65
|
+
}
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import type { PositionalMode } from './positional-mode.js';
|
|
2
|
+
/**
|
|
3
|
+
* One internally-dispatched subverb a handler accepts on `positional[0]`
|
|
4
|
+
* (`shrk check wiring`, `shrk self-config doctor`).
|
|
5
|
+
*
|
|
6
|
+
* Declared on {@link ICommandHandler.subverbs}. The command index lists every
|
|
7
|
+
* declared subverb as a first-class command, so `surface list`, `help` and the
|
|
8
|
+
* command-string resolver see it without a catalog row having to vouch for it.
|
|
9
|
+
*/
|
|
10
|
+
export interface ISubverbSpec {
|
|
11
|
+
readonly name: string;
|
|
12
|
+
readonly description: string;
|
|
13
|
+
readonly usage: string;
|
|
14
|
+
readonly aliases?: readonly string[];
|
|
15
|
+
/** The complete accepted flag set for this subverb, when declared. */
|
|
16
|
+
readonly flags?: ReadonlySet<string>;
|
|
17
|
+
/** What this subverb's own positional[0] means (see {@link PositionalMode}). */
|
|
18
|
+
readonly positionals?: PositionalMode;
|
|
19
|
+
/**
|
|
20
|
+
* Subverbs this subverb dispatches from ITS next positional (`search tuning
|
|
21
|
+
* list|doctor|explain`, `onboard adopt status|…`). Indexed as first-class
|
|
22
|
+
* commands and walked by the dispatcher guard exactly like the top level.
|
|
23
|
+
*/
|
|
24
|
+
readonly subverbs?: readonly ISubverbSpec[];
|
|
25
|
+
}
|
|
26
|
+
//# sourceMappingURL=subverb-spec.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"subverb-spec.d.ts","sourceRoot":"","sources":["../../src/dispatch/subverb-spec.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,sBAAsB,CAAC;AAE3D;;;;;;;GAOG;AACH,MAAM,WAAW,YAAY;IAC3B,QAAQ,CAAC,IAAI,EAAE,MAAM,CAAC;IACtB,QAAQ,CAAC,WAAW,EAAE,MAAM,CAAC;IAC7B,QAAQ,CAAC,KAAK,EAAE,MAAM,CAAC;IACvB,QAAQ,CAAC,OAAO,CAAC,EAAE,SAAS,MAAM,EAAE,CAAC;IACrC,sEAAsE;IACtE,QAAQ,CAAC,KAAK,CAAC,EAAE,WAAW,CAAC,MAAM,CAAC,CAAC;IACrC,gFAAgF;IAChF,QAAQ,CAAC,WAAW,CAAC,EAAE,cAAc,CAAC;IACtC;;;;OAIG;IACH,QAAQ,CAAC,QAAQ,CAAC,EAAE,SAAS,YAAY,EAAE,CAAC;CAC7C"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* THE ledger of flags a command's code READS that its usage does not show yet
|
|
3
|
+
* — keyed by the registered (trie) path, flags sorted.
|
|
4
|
+
*
|
|
5
|
+
* The post-run unknown-flag detector (`unread-flags.ts`) turns a `0` into
|
|
6
|
+
* `usageExitFor(path)` when a supplied flag was never read and is not a flag
|
|
7
|
+
* of the command. "A flag of the command" is its usage documentation PLUS this
|
|
8
|
+
* ledger: many flags are read only behind a branch (`--force` only when the
|
|
9
|
+
* output already exists, `--plan-format` only with `--plan`), so a run that
|
|
10
|
+
* skipped the branch left a real flag unread — and without this ledger, a real
|
|
11
|
+
* flag no usage names read as dropped input (`export claude-md --write
|
|
12
|
+
* --force` wrote the file, then exited 2).
|
|
13
|
+
*
|
|
14
|
+
* Locked two-way against the code by `r75-flag-read-ledger`: every flag
|
|
15
|
+
* literal a tracked handler can reach is documented or listed here, and every
|
|
16
|
+
* entry here is still read and still undocumented. It is a RATCHET — the fix
|
|
17
|
+
* for an entry is to document the flag in the command's usage, after which the
|
|
18
|
+
* lock fails until the entry is deleted. On drift the lock prints the entries
|
|
19
|
+
* as they should read.
|
|
20
|
+
*/
|
|
21
|
+
export declare const UNDOCUMENTED_FLAG_READS: ReadonlyMap<string, readonly string[]>;
|
|
22
|
+
//# sourceMappingURL=undocumented-flag-reads.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"undocumented-flag-reads.d.ts","sourceRoot":"","sources":["../../src/dispatch/undocumented-flag-reads.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;GAmBG;AACH,eAAO,MAAM,uBAAuB,EAAE,WAAW,CAAC,MAAM,EAAE,SAAS,MAAM,EAAE,CAsQzE,CAAC"}
|
|
@@ -0,0 +1,283 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* THE ledger of flags a command's code READS that its usage does not show yet
|
|
3
|
+
* — keyed by the registered (trie) path, flags sorted.
|
|
4
|
+
*
|
|
5
|
+
* The post-run unknown-flag detector (`unread-flags.ts`) turns a `0` into
|
|
6
|
+
* `usageExitFor(path)` when a supplied flag was never read and is not a flag
|
|
7
|
+
* of the command. "A flag of the command" is its usage documentation PLUS this
|
|
8
|
+
* ledger: many flags are read only behind a branch (`--force` only when the
|
|
9
|
+
* output already exists, `--plan-format` only with `--plan`), so a run that
|
|
10
|
+
* skipped the branch left a real flag unread — and without this ledger, a real
|
|
11
|
+
* flag no usage names read as dropped input (`export claude-md --write
|
|
12
|
+
* --force` wrote the file, then exited 2).
|
|
13
|
+
*
|
|
14
|
+
* Locked two-way against the code by `r75-flag-read-ledger`: every flag
|
|
15
|
+
* literal a tracked handler can reach is documented or listed here, and every
|
|
16
|
+
* entry here is still read and still undocumented. It is a RATCHET — the fix
|
|
17
|
+
* for an entry is to document the flag in the command's usage, after which the
|
|
18
|
+
* lock fails until the entry is deleted. On drift the lock prints the entries
|
|
19
|
+
* as they should read.
|
|
20
|
+
*/
|
|
21
|
+
export const UNDOCUMENTED_FLAG_READS = new Map([
|
|
22
|
+
[
|
|
23
|
+
'apply',
|
|
24
|
+
[
|
|
25
|
+
'all-verifications', 'allow-delete-folder', 'allow-folder-ops', 'allow-pack-commands', 'approval',
|
|
26
|
+
'command', 'contract', 'validate-strict', 'verification',
|
|
27
|
+
],
|
|
28
|
+
],
|
|
29
|
+
['architecture map', ['json']],
|
|
30
|
+
['architecture violations', ['json']],
|
|
31
|
+
['audit project-coupling', ['fail-on', 'format', 'json', 'no-word-boundary', 'output']],
|
|
32
|
+
['baseline diff', ['changed-only', 'since']],
|
|
33
|
+
['baseline explain', ['changed-only', 'since']],
|
|
34
|
+
['baseline list', ['changed-only', 'id', 'since']],
|
|
35
|
+
['baseline update', ['changed-only', 'since']],
|
|
36
|
+
['boundaries enforce', ['json']],
|
|
37
|
+
['brief', ['chunked']],
|
|
38
|
+
[
|
|
39
|
+
'bundle',
|
|
40
|
+
[
|
|
41
|
+
'agent-tests', 'all-suggested', 'all-verifications', 'boundaries', 'context-tests', 'coverage', 'drift',
|
|
42
|
+
'from-pipeline', 'html', 'name', 'report', 'session', 'since', 'template', 'test-impact',
|
|
43
|
+
'validate-after-group', 'validate-final', 'var', 'verification', 'write-script',
|
|
44
|
+
],
|
|
45
|
+
],
|
|
46
|
+
['changes', ['json', 'label']],
|
|
47
|
+
[
|
|
48
|
+
'ci',
|
|
49
|
+
[
|
|
50
|
+
'changed-only', 'polyglot', 'pr-comment', 'preset', 'quickstart', 'with-agent-tests', 'with-doctor',
|
|
51
|
+
'with-pack-signature-status', 'with-pr-checks', 'with-self-config-doctor',
|
|
52
|
+
],
|
|
53
|
+
],
|
|
54
|
+
['codemod', ['top']],
|
|
55
|
+
['completion', ['shell']],
|
|
56
|
+
[
|
|
57
|
+
'context',
|
|
58
|
+
[
|
|
59
|
+
'brief', 'commands-first', 'force', 'format', 'include-commands', 'include-docs', 'machine-json',
|
|
60
|
+
'maxTokens', 'no-examples', 'no-paths', 'no-rules', 'no-templates', 'preset', 'scope', 'summary', 'tag',
|
|
61
|
+
],
|
|
62
|
+
],
|
|
63
|
+
['contract', ['approval', 'expires', 'expires-at', 'expires-in', 'gates', 'intent', 'plan', 'secret-env']],
|
|
64
|
+
['dashboard diff', ['json']],
|
|
65
|
+
['dashboard export', ['json']],
|
|
66
|
+
[
|
|
67
|
+
'dev',
|
|
68
|
+
[
|
|
69
|
+
'all', 'all-verifications', 'allow-pack-commands', 'brief', 'command', 'name', 'open', 'sign',
|
|
70
|
+
'template', 'var', 'verification',
|
|
71
|
+
],
|
|
72
|
+
],
|
|
73
|
+
[
|
|
74
|
+
'doctor',
|
|
75
|
+
[
|
|
76
|
+
'debug', 'fail-on-expired-acknowledgement', 'hide-acknowledged', 'loader-timeout', 'no-cache', 'paths',
|
|
77
|
+
'show-na', 'strict-all', 'strict-errors', 'strict-warnings', 'verbose',
|
|
78
|
+
],
|
|
79
|
+
],
|
|
80
|
+
['drift', ['changed-only', 'files', 'since', 'staged']],
|
|
81
|
+
['explain', ['changed-only', 'id', 'no-cache', 'plane', 'since']],
|
|
82
|
+
['explore', ['json']],
|
|
83
|
+
['feedback', ['legacy']],
|
|
84
|
+
[
|
|
85
|
+
'fix',
|
|
86
|
+
[
|
|
87
|
+
'all', 'boundary', 'broken-agent-test-reference', 'broken-helper-reference',
|
|
88
|
+
'broken-playbook-reference', 'broken-routing-hint-reference', 'convention', 'doctor', 'list',
|
|
89
|
+
'missing-command-hint', 'missing-convention-reference', 'missing-template-reference', 'pack-conflicts',
|
|
90
|
+
'self-config', 'stale-pack-signature',
|
|
91
|
+
],
|
|
92
|
+
],
|
|
93
|
+
['framework', ['no-packs']],
|
|
94
|
+
['gates explain', ['changed-only', 'id', 'no-cache', 'plane', 'since']],
|
|
95
|
+
['gates list', ['no-cache']],
|
|
96
|
+
['gates scaffold-selftest', ['no-cache']],
|
|
97
|
+
['gen', ['overwrite', 'sign']],
|
|
98
|
+
['generated list', ['id']],
|
|
99
|
+
['graph', ['compact', 'has-unresolved-imports', 'table']],
|
|
100
|
+
['help', ['full-help', 'verbose']],
|
|
101
|
+
['helper', ['output', 'save-plan', 'sign', 'source']],
|
|
102
|
+
[
|
|
103
|
+
'impact',
|
|
104
|
+
[
|
|
105
|
+
'language', 'no-persist', 'no-polyglot', 'plan-format', 'polyglot-mode', 'polyglot-only', 'task',
|
|
106
|
+
'via-graph', 'write-starter',
|
|
107
|
+
],
|
|
108
|
+
],
|
|
109
|
+
['import', ['out']],
|
|
110
|
+
[
|
|
111
|
+
'ingest',
|
|
112
|
+
[
|
|
113
|
+
'adopt', 'depth', 'docs-first', 'dry-run', 'exclude', 'include', 'json', 'output', 'preset', 'profile',
|
|
114
|
+
'task', 'write-patch',
|
|
115
|
+
],
|
|
116
|
+
],
|
|
117
|
+
['init', ['with-skill']],
|
|
118
|
+
['install smoke', ['temp-dir']],
|
|
119
|
+
[
|
|
120
|
+
'knowledge add',
|
|
121
|
+
[
|
|
122
|
+
'add-applies-when', 'add-forbidden-path', 'add-related', 'add-required-profile', 'add-scope', 'add-tag',
|
|
123
|
+
'remove-anchor-id', 'remove-applies-when', 'remove-forbidden-path', 'remove-reference',
|
|
124
|
+
'remove-related', 'remove-required-profile', 'remove-scope', 'remove-tag',
|
|
125
|
+
],
|
|
126
|
+
],
|
|
127
|
+
['knowledge remove', ['id']],
|
|
128
|
+
['knowledge search', ['appliesWhen', 'tag']],
|
|
129
|
+
['knowledge stale-check', ['paths']],
|
|
130
|
+
[
|
|
131
|
+
'knowledge update',
|
|
132
|
+
[
|
|
133
|
+
'add-applies-when', 'add-forbidden-path', 'add-required-profile', 'add-scope', 'add-tag',
|
|
134
|
+
'applies-when', 'id', 'related', 'remove-applies-when', 'remove-forbidden-path',
|
|
135
|
+
'remove-required-profile', 'remove-scope', 'remove-tag', 'scope', 'tag',
|
|
136
|
+
],
|
|
137
|
+
],
|
|
138
|
+
['knowledge verify', ['paths']],
|
|
139
|
+
['languages', ['explain-policy']],
|
|
140
|
+
['memory diff', ['json']],
|
|
141
|
+
['memory drift', ['json']],
|
|
142
|
+
['memory reset', ['json']],
|
|
143
|
+
['onboard', ['diff-format', 'force', 'format', 'no-auto-regenerate', 'output']],
|
|
144
|
+
['owners impact', ['json']],
|
|
145
|
+
['owners match', ['json']],
|
|
146
|
+
['ownership for', ['files']],
|
|
147
|
+
[
|
|
148
|
+
'pack author preview',
|
|
149
|
+
[
|
|
150
|
+
'applies-when', 'bad', 'description', 'forbidden', 'forbidden-path', 'good', 'owner', 'produced-anchor',
|
|
151
|
+
'rationale', 'registration-hint', 'required-anchor', 'required-helper', 'required-profile', 'scope',
|
|
152
|
+
'tag', 'verification',
|
|
153
|
+
],
|
|
154
|
+
],
|
|
155
|
+
['packs conflicts', ['json']],
|
|
156
|
+
['packs contributions', ['json']],
|
|
157
|
+
['packs sign', ['out']],
|
|
158
|
+
['packs signature-status', ['json']],
|
|
159
|
+
['packs watch', ['consumer', 'json']],
|
|
160
|
+
['paths best', ['json']],
|
|
161
|
+
['paths search', ['json']],
|
|
162
|
+
['pipelines context', ['maxTokens', 'scope']],
|
|
163
|
+
['plan simulate', ['json']],
|
|
164
|
+
[
|
|
165
|
+
'policy check',
|
|
166
|
+
[
|
|
167
|
+
'changed-only', 'explain-overrides', 'files', 'local-files', 'no-pack-policies',
|
|
168
|
+
'record-override-audit', 'require-signed-policy-packs', 'since', 'staged',
|
|
169
|
+
],
|
|
170
|
+
],
|
|
171
|
+
[
|
|
172
|
+
'policy get',
|
|
173
|
+
[
|
|
174
|
+
'bundle', 'local-files', 'no-pack-policies', 'plan', 'require-signed-policy-packs', 'session',
|
|
175
|
+
],
|
|
176
|
+
],
|
|
177
|
+
['policy list', ['bundle', 'local-files', 'plan', 'session']],
|
|
178
|
+
['policy run', ['local-files', 'session']],
|
|
179
|
+
['policy-lint explain', ['id']],
|
|
180
|
+
['pr', ['from-bundle', 'from-session', 'full', 'json', 'verbose']],
|
|
181
|
+
['provenance show', ['id']],
|
|
182
|
+
['recommend', ['actions-only', 'full', 'include-gated', 'machine-json', 'top']],
|
|
183
|
+
[
|
|
184
|
+
'release',
|
|
185
|
+
[
|
|
186
|
+
'consumer-root', 'include-docs-check', 'include-examples-check', 'no-assertions', 'target',
|
|
187
|
+
'with-knowledge-check', 'with-product-check',
|
|
188
|
+
],
|
|
189
|
+
],
|
|
190
|
+
[
|
|
191
|
+
'report',
|
|
192
|
+
[
|
|
193
|
+
'bundle', 'bundle-diff', 'impact-dir', 'include-boundaries', 'include-memory', 'review',
|
|
194
|
+
'runtime-compat', 'safety-matrix',
|
|
195
|
+
],
|
|
196
|
+
],
|
|
197
|
+
['review', ['bundle', 'quality-baseline', 'v2', 'v3']],
|
|
198
|
+
['risk', ['include-memory']],
|
|
199
|
+
['rounds show', ['id']],
|
|
200
|
+
[
|
|
201
|
+
'rules add',
|
|
202
|
+
[
|
|
203
|
+
'add-applies-when', 'add-forbidden-path', 'add-related', 'add-required-profile', 'add-scope', 'add-tag',
|
|
204
|
+
'remove-anchor-id', 'remove-applies-when', 'remove-forbidden-path', 'remove-reference',
|
|
205
|
+
'remove-related', 'remove-required-profile', 'remove-scope', 'remove-tag', 'type',
|
|
206
|
+
],
|
|
207
|
+
],
|
|
208
|
+
['rules relevant', ['appliesWhen', 'tag']],
|
|
209
|
+
['rules remove', ['id']],
|
|
210
|
+
['rules scaffold', ['reason']],
|
|
211
|
+
[
|
|
212
|
+
'rules update',
|
|
213
|
+
[
|
|
214
|
+
'add-applies-when', 'add-forbidden-path', 'add-required-profile', 'add-scope', 'add-tag',
|
|
215
|
+
'applies-when', 'id', 'related', 'remove-anchor-id', 'remove-applies-when', 'remove-forbidden-path',
|
|
216
|
+
'remove-required-profile', 'remove-scope', 'remove-tag', 'scope', 'tag',
|
|
217
|
+
],
|
|
218
|
+
],
|
|
219
|
+
['schemas inventory', ['json']],
|
|
220
|
+
['schemas write', ['json']],
|
|
221
|
+
['search', ['full', 'json', 'top', 'type', 'verbose']],
|
|
222
|
+
['search-structural', ['description', 'force', 'id', 'title']],
|
|
223
|
+
['self-config', ['source']],
|
|
224
|
+
[
|
|
225
|
+
'smart-context plan-ahead',
|
|
226
|
+
[
|
|
227
|
+
'ai-plan', 'budget', 'cache-reference-threshold', 'cache-replay-threshold', 'debug', 'enhance',
|
|
228
|
+
'enhance-passes', 'expansion-limit', 'expansion-tokens', 'focused', 'log-prompt', 'no-cache',
|
|
229
|
+
'no-enhance', 'no-instructions', 'no-polish', 'no-refresh-index', 'plan', 'plus', 'refresh', 'save',
|
|
230
|
+
'save-conversation', 'seed-tokens', 'since', 'stage1-max-tokens', 'stream', 'task-type', 'tiny-only',
|
|
231
|
+
],
|
|
232
|
+
],
|
|
233
|
+
[
|
|
234
|
+
'spec',
|
|
235
|
+
[
|
|
236
|
+
'all-verifications', 'allow-delete-folder', 'allow-folder-ops', 'allow-pack-commands',
|
|
237
|
+
'allow-unknown-target', 'approval', 'asset-preview', 'batch', 'command', 'contract', 'explain-dispatch',
|
|
238
|
+
'no-verify-signature', 'report', 'require-signature', 'session', 'target', 'trace', 'validate',
|
|
239
|
+
'validate-strict', 'verification', 'verify-signature',
|
|
240
|
+
],
|
|
241
|
+
],
|
|
242
|
+
[
|
|
243
|
+
'spec implement',
|
|
244
|
+
[
|
|
245
|
+
'all-verifications', 'allow-delete-folder', 'allow-folder-ops', 'allow-pack-commands',
|
|
246
|
+
'allow-unknown-target', 'approval', 'asset-preview', 'batch', 'command', 'contract', 'explain-dispatch',
|
|
247
|
+
'force', 'no-verify-signature', 'reason', 'report', 'require-signature', 'session', 'target', 'trace',
|
|
248
|
+
'validate', 'validate-strict', 'verification', 'verify-signature', 'write',
|
|
249
|
+
],
|
|
250
|
+
],
|
|
251
|
+
['spec verify', ['apply']],
|
|
252
|
+
[
|
|
253
|
+
'task',
|
|
254
|
+
[
|
|
255
|
+
'actions-only', 'brief', 'commands-first', 'compact', 'show-coverage-gaps', 'summary', 'verbose',
|
|
256
|
+
],
|
|
257
|
+
],
|
|
258
|
+
['templates drift', ['paths']],
|
|
259
|
+
['templates preview', ['json']],
|
|
260
|
+
['templates remove', ['id']],
|
|
261
|
+
['templates search', ['json']],
|
|
262
|
+
[
|
|
263
|
+
'templates smoke',
|
|
264
|
+
[
|
|
265
|
+
'ci', 'debounce', 'format', 'hide', 'llm-recommendations', 'min-severity', 'once', 'output', 'pack',
|
|
266
|
+
'paths', 'provider', 'report', 'template', 'var', 'watch',
|
|
267
|
+
],
|
|
268
|
+
],
|
|
269
|
+
['templates snapshot', ['json']],
|
|
270
|
+
[
|
|
271
|
+
'templates update',
|
|
272
|
+
[
|
|
273
|
+
'applies-when', 'id', 'reference', 'related', 'remove-anchor-id', 'remove-reference', 'scope', 'tag',
|
|
274
|
+
],
|
|
275
|
+
],
|
|
276
|
+
['test', ['debounce', 'once', 'paths', 'pipeline', 'rule', 'template']],
|
|
277
|
+
['tests impact', ['json']],
|
|
278
|
+
['tests missing', ['json']],
|
|
279
|
+
['trace', ['language']],
|
|
280
|
+
['understand-task', ['explain', 'task']],
|
|
281
|
+
['validate-change', ['json']],
|
|
282
|
+
['watch', ['replace']],
|
|
283
|
+
]);
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* When a flag is refused — which decides the one sentence after the `! …`
|
|
3
|
+
* lines of {@link unknownFlagRefusal} (round 13: one format, three moments).
|
|
4
|
+
*/
|
|
5
|
+
export declare enum UnknownFlagRefusalMode {
|
|
6
|
+
/** Refused before anything ran (the pre-run judgement, or a verb's own allow-list). */
|
|
7
|
+
BeforeRun = "before-run",
|
|
8
|
+
/** The run ignored it and its result is refused — the exit becomes `usageExitFor(path)`. */
|
|
9
|
+
RefusedAfterRun = "refused-after-run",
|
|
10
|
+
/** The run ignored it; the exit is kept (a found failure, a presentation flag, a non-verdict verb). */
|
|
11
|
+
WarnedAfterRun = "warned-after-run"
|
|
12
|
+
}
|
|
13
|
+
//# sourceMappingURL=unknown-flag-refusal-mode.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"unknown-flag-refusal-mode.d.ts","sourceRoot":"","sources":["../../src/dispatch/unknown-flag-refusal-mode.ts"],"names":[],"mappings":"AAAA;;;GAGG;AACH,oBAAY,sBAAsB;IAChC,uFAAuF;IACvF,SAAS,eAAe;IACxB,4FAA4F;IAC5F,eAAe,sBAAsB;IACrC,uGAAuG;IACvG,cAAc,qBAAqB;CACpC"}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* When a flag is refused — which decides the one sentence after the `! …`
|
|
3
|
+
* lines of {@link unknownFlagRefusal} (round 13: one format, three moments).
|
|
4
|
+
*/
|
|
5
|
+
export var UnknownFlagRefusalMode;
|
|
6
|
+
(function (UnknownFlagRefusalMode) {
|
|
7
|
+
/** Refused before anything ran (the pre-run judgement, or a verb's own allow-list). */
|
|
8
|
+
UnknownFlagRefusalMode["BeforeRun"] = "before-run";
|
|
9
|
+
/** The run ignored it and its result is refused — the exit becomes `usageExitFor(path)`. */
|
|
10
|
+
UnknownFlagRefusalMode["RefusedAfterRun"] = "refused-after-run";
|
|
11
|
+
/** The run ignored it; the exit is kept (a found failure, a presentation flag, a non-verdict verb). */
|
|
12
|
+
UnknownFlagRefusalMode["WarnedAfterRun"] = "warned-after-run";
|
|
13
|
+
})(UnknownFlagRefusalMode || (UnknownFlagRefusalMode = {}));
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import type { IInvocationRejection } from './invocation-rejection.js';
|
|
2
|
+
import type { IUnknownFlagRefusalInput } from './i-unknown-flag-refusal-input.js';
|
|
3
|
+
/**
|
|
4
|
+
* THE wording of a refused flag (round 13) — one format on every path that
|
|
5
|
+
* refuses one:
|
|
6
|
+
*
|
|
7
|
+
* ! `shrk gates check`: --fail-on-dead-units is not a flag of this command. Did you mean --allow-empty?
|
|
8
|
+
* Accepts: --json, --margin, … (only when the command declares its complete flag set)
|
|
9
|
+
* Refused before anything ran — a result that ignored --fail-on-dead-units would not be a pass (exit 3). Run `shrk help gates check` for the flags it accepts.
|
|
10
|
+
*
|
|
11
|
+
* There were two: the declared-flag guard printed `Unknown flag "--x" for
|
|
12
|
+
* \`shrk gates check\`. Accepts: …` while the documentation refusal printed
|
|
13
|
+
* `! \`shrk policy-lint\`: --x is not a flag of this command.` — two refusal
|
|
14
|
+
* paths for one judgement (`judgeInvocation`), and `check boundaries` / `reuse
|
|
15
|
+
* coverage` kept a third inside their bodies. Every one now builds its message
|
|
16
|
+
* here; only the closing sentence says WHEN (the {@link UnknownFlagRefusalMode}):
|
|
17
|
+
* before the run, or after a run that ignored the flag. A flag a sibling
|
|
18
|
+
* subverb documents says which (`— only \`shrk check boundaries\` documents
|
|
19
|
+
* it`). A `--offset -1` misread names the flag the number was meant for.
|
|
20
|
+
*/
|
|
21
|
+
export declare function unknownFlagRefusal(input: IUnknownFlagRefusalInput): IInvocationRejection;
|
|
22
|
+
//# sourceMappingURL=unknown-flag-refusal.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"unknown-flag-refusal.d.ts","sourceRoot":"","sources":["../../src/dispatch/unknown-flag-refusal.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,2BAA2B,CAAC;AAEtE,OAAO,KAAK,EAAE,wBAAwB,EAAE,MAAM,mCAAmC,CAAC;AAGlF;;;;;;;;;;;;;;;;;GAiBG;AACH,wBAAgB,kBAAkB,CAAC,KAAK,EAAE,wBAAwB,GAAG,oBAAoB,CAkCxF"}
|
|
@@ -0,0 +1,57 @@
|
|
|
1
|
+
import { misreadValueHint, spellFlagAsTyped } from "../command-registry.js";
|
|
2
|
+
import { closestMatches } from "./closest-match.js";
|
|
3
|
+
import { InvocationRejectionKind } from "./invocation-rejection-kind.js";
|
|
4
|
+
import { UnknownFlagRefusalMode } from "./unknown-flag-refusal-mode.js";
|
|
5
|
+
/**
|
|
6
|
+
* THE wording of a refused flag (round 13) — one format on every path that
|
|
7
|
+
* refuses one:
|
|
8
|
+
*
|
|
9
|
+
* ! `shrk gates check`: --fail-on-dead-units is not a flag of this command. Did you mean --allow-empty?
|
|
10
|
+
* Accepts: --json, --margin, … (only when the command declares its complete flag set)
|
|
11
|
+
* Refused before anything ran — a result that ignored --fail-on-dead-units would not be a pass (exit 3). Run `shrk help gates check` for the flags it accepts.
|
|
12
|
+
*
|
|
13
|
+
* There were two: the declared-flag guard printed `Unknown flag "--x" for
|
|
14
|
+
* \`shrk gates check\`. Accepts: …` while the documentation refusal printed
|
|
15
|
+
* `! \`shrk policy-lint\`: --x is not a flag of this command.` — two refusal
|
|
16
|
+
* paths for one judgement (`judgeInvocation`), and `check boundaries` / `reuse
|
|
17
|
+
* coverage` kept a third inside their bodies. Every one now builds its message
|
|
18
|
+
* here; only the closing sentence says WHEN (the {@link UnknownFlagRefusalMode}):
|
|
19
|
+
* before the run, or after a run that ignored the flag. A flag a sibling
|
|
20
|
+
* subverb documents says which (`— only \`shrk check boundaries\` documents
|
|
21
|
+
* it`). A `--offset -1` misread names the flag the number was meant for.
|
|
22
|
+
*/
|
|
23
|
+
export function unknownFlagRefusal(input) {
|
|
24
|
+
const closest = [];
|
|
25
|
+
let message = '';
|
|
26
|
+
for (const key of input.flags) {
|
|
27
|
+
const misread = misreadValueHint(key, input.argv);
|
|
28
|
+
const near = misread === undefined ? closestMatches(key, input.known, 1)[0] : undefined;
|
|
29
|
+
if (near !== undefined)
|
|
30
|
+
closest.push(`shrk ${input.label} --${near}`);
|
|
31
|
+
const owners = input.documentedOn?.[key] ?? [];
|
|
32
|
+
const only = owners.length > 0 ? ` — only ${owners.map((p) => `\`shrk ${p}\``).join(' and ')} document${owners.length > 1 ? '' : 's'} it` : '';
|
|
33
|
+
message +=
|
|
34
|
+
misread !== undefined
|
|
35
|
+
? `! \`shrk ${input.label}\`: ${misread}.\n`
|
|
36
|
+
: `! \`shrk ${input.label}\`: ${spellFlagAsTyped(key, input.argv)} is not a flag of this command${only}.` +
|
|
37
|
+
`${near !== undefined ? ` Did you mean --${near}?` : ''}\n`;
|
|
38
|
+
}
|
|
39
|
+
if (input.accepts !== undefined && input.accepts.length > 0) {
|
|
40
|
+
message += ` Accepts: ${input.accepts.map((f) => `--${f}`).join(', ')}.\n`;
|
|
41
|
+
}
|
|
42
|
+
const spelled = input.flags.map((key) => spellFlagAsTyped(key, input.argv)).join(', ');
|
|
43
|
+
const help = `Run \`shrk help ${input.label}\` for the flags it accepts.`;
|
|
44
|
+
const mode = input.mode ?? UnknownFlagRefusalMode.BeforeRun;
|
|
45
|
+
message +=
|
|
46
|
+
mode === UnknownFlagRefusalMode.BeforeRun
|
|
47
|
+
? ` Refused before anything ran — a result that ignored ${spelled} would not be a pass (exit ${input.exitCode}). ${help}\n`
|
|
48
|
+
: mode === UnknownFlagRefusalMode.RefusedAfterRun
|
|
49
|
+
? ` The run ignored ${spelled}, so its result is refused — not a pass (exit ${input.exitCode}). ${help}\n`
|
|
50
|
+
: ` The run ignored ${spelled} (exit ${input.exitCode} kept). ${help}\n`;
|
|
51
|
+
return {
|
|
52
|
+
message,
|
|
53
|
+
exitCode: input.exitCode,
|
|
54
|
+
kind: InvocationRejectionKind.UnknownFlag,
|
|
55
|
+
...(closest.length > 0 ? { closest } : {}),
|
|
56
|
+
};
|
|
57
|
+
}
|