@shrkcrft/cli 0.1.0-alpha.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE +21 -0
- package/README.md +15 -0
- package/dist/asset-preview/apply-action-hint-stub.d.ts +28 -0
- package/dist/asset-preview/apply-action-hint-stub.d.ts.map +1 -0
- package/dist/asset-preview/apply-action-hint-stub.js +170 -0
- package/dist/asset-preview/apply-asset-preview.d.ts +31 -0
- package/dist/asset-preview/apply-asset-preview.d.ts.map +1 -0
- package/dist/asset-preview/apply-asset-preview.js +210 -0
- package/dist/asset-preview/apply-knowledge-stale-fix.d.ts +37 -0
- package/dist/asset-preview/apply-knowledge-stale-fix.d.ts.map +1 -0
- package/dist/asset-preview/apply-knowledge-stale-fix.js +344 -0
- package/dist/asset-preview/apply-missing-barrel.d.ts +15 -0
- package/dist/asset-preview/apply-missing-barrel.d.ts.map +1 -0
- package/dist/asset-preview/apply-missing-barrel.js +65 -0
- package/dist/asset-preview/apply-template-drift-fix.d.ts +21 -0
- package/dist/asset-preview/apply-template-drift-fix.d.ts.map +1 -0
- package/dist/asset-preview/apply-template-drift-fix.js +125 -0
- package/dist/asset-preview/apply-template-update.d.ts +43 -0
- package/dist/asset-preview/apply-template-update.d.ts.map +1 -0
- package/dist/asset-preview/apply-template-update.js +257 -0
- package/dist/asset-preview/entry-mutator.d.ts +106 -0
- package/dist/asset-preview/entry-mutator.d.ts.map +1 -0
- package/dist/asset-preview/entry-mutator.js +428 -0
- package/dist/authoring/authoring-kit.d.ts +36 -0
- package/dist/authoring/authoring-kit.d.ts.map +1 -0
- package/dist/authoring/authoring-kit.js +106 -0
- package/dist/command-registry.d.ts +158 -0
- package/dist/command-registry.d.ts.map +1 -0
- package/dist/command-registry.js +348 -0
- package/dist/commands/apply.command.d.ts +3 -0
- package/dist/commands/apply.command.d.ts.map +1 -0
- package/dist/commands/apply.command.js +879 -0
- package/dist/commands/architecture.command.d.ts +5 -0
- package/dist/commands/architecture.command.d.ts.map +1 -0
- package/dist/commands/architecture.command.js +141 -0
- package/dist/commands/ask.command.d.ts +3 -0
- package/dist/commands/ask.command.d.ts.map +1 -0
- package/dist/commands/ask.command.js +58 -0
- package/dist/commands/audit.command.d.ts +3 -0
- package/dist/commands/audit.command.d.ts.map +1 -0
- package/dist/commands/audit.command.js +141 -0
- package/dist/commands/biome.command.d.ts +7 -0
- package/dist/commands/biome.command.d.ts.map +1 -0
- package/dist/commands/biome.command.js +350 -0
- package/dist/commands/boundaries.command.d.ts +9 -0
- package/dist/commands/boundaries.command.d.ts.map +1 -0
- package/dist/commands/boundaries.command.js +314 -0
- package/dist/commands/brief.command.d.ts +3 -0
- package/dist/commands/brief.command.d.ts.map +1 -0
- package/dist/commands/brief.command.js +206 -0
- package/dist/commands/bundle.command.d.ts +3 -0
- package/dist/commands/bundle.command.d.ts.map +1 -0
- package/dist/commands/bundle.command.js +1183 -0
- package/dist/commands/changes.command.d.ts +3 -0
- package/dist/commands/changes.command.d.ts.map +1 -0
- package/dist/commands/changes.command.js +155 -0
- package/dist/commands/check.command.d.ts +3 -0
- package/dist/commands/check.command.d.ts.map +1 -0
- package/dist/commands/check.command.js +553 -0
- package/dist/commands/checks.command.d.ts +29 -0
- package/dist/commands/checks.command.d.ts.map +1 -0
- package/dist/commands/checks.command.js +521 -0
- package/dist/commands/ci.command.d.ts +3 -0
- package/dist/commands/ci.command.d.ts.map +1 -0
- package/dist/commands/ci.command.js +680 -0
- package/dist/commands/codemod.command.d.ts +3 -0
- package/dist/commands/codemod.command.d.ts.map +1 -0
- package/dist/commands/codemod.command.js +130 -0
- package/dist/commands/command-catalog.d.ts +265 -0
- package/dist/commands/command-catalog.d.ts.map +1 -0
- package/dist/commands/command-catalog.js +3242 -0
- package/dist/commands/commands.command.d.ts +92 -0
- package/dist/commands/commands.command.d.ts.map +1 -0
- package/dist/commands/commands.command.js +1208 -0
- package/dist/commands/constructs.command.d.ts +15 -0
- package/dist/commands/constructs.command.d.ts.map +1 -0
- package/dist/commands/constructs.command.js +669 -0
- package/dist/commands/context.command.d.ts +3 -0
- package/dist/commands/context.command.d.ts.map +1 -0
- package/dist/commands/context.command.js +120 -0
- package/dist/commands/contract-gate.command.d.ts +5 -0
- package/dist/commands/contract-gate.command.d.ts.map +1 -0
- package/dist/commands/contract-gate.command.js +208 -0
- package/dist/commands/contract-templates.command.d.ts +8 -0
- package/dist/commands/contract-templates.command.d.ts.map +1 -0
- package/dist/commands/contract-templates.command.js +151 -0
- package/dist/commands/contract.command.d.ts +3 -0
- package/dist/commands/contract.command.d.ts.map +1 -0
- package/dist/commands/contract.command.js +105 -0
- package/dist/commands/conventions.command.d.ts +8 -0
- package/dist/commands/conventions.command.d.ts.map +1 -0
- package/dist/commands/conventions.command.js +169 -0
- package/dist/commands/coverage.command.d.ts +3 -0
- package/dist/commands/coverage.command.d.ts.map +1 -0
- package/dist/commands/coverage.command.js +56 -0
- package/dist/commands/daily.commands.d.ts +5 -0
- package/dist/commands/daily.commands.d.ts.map +1 -0
- package/dist/commands/daily.commands.js +224 -0
- package/dist/commands/dashboard-export.command.d.ts +4 -0
- package/dist/commands/dashboard-export.command.d.ts.map +1 -0
- package/dist/commands/dashboard-export.command.js +86 -0
- package/dist/commands/dashboard.command.d.ts +3 -0
- package/dist/commands/dashboard.command.d.ts.map +1 -0
- package/dist/commands/dashboard.command.js +106 -0
- package/dist/commands/dev.command.d.ts +3 -0
- package/dist/commands/dev.command.d.ts.map +1 -0
- package/dist/commands/dev.command.js +1392 -0
- package/dist/commands/diagnostics.command.d.ts +5 -0
- package/dist/commands/diagnostics.command.d.ts.map +1 -0
- package/dist/commands/diagnostics.command.js +97 -0
- package/dist/commands/docs.command.d.ts +4 -0
- package/dist/commands/docs.command.d.ts.map +1 -0
- package/dist/commands/docs.command.js +34 -0
- package/dist/commands/doctor.command.d.ts +7 -0
- package/dist/commands/doctor.command.d.ts.map +1 -0
- package/dist/commands/doctor.command.js +681 -0
- package/dist/commands/drift.command.d.ts +3 -0
- package/dist/commands/drift.command.d.ts.map +1 -0
- package/dist/commands/drift.command.js +124 -0
- package/dist/commands/eslint.command.d.ts +7 -0
- package/dist/commands/eslint.command.d.ts.map +1 -0
- package/dist/commands/eslint.command.js +423 -0
- package/dist/commands/explore.command.d.ts +3 -0
- package/dist/commands/explore.command.d.ts.map +1 -0
- package/dist/commands/explore.command.js +65 -0
- package/dist/commands/export-bundle.command.d.ts +6 -0
- package/dist/commands/export-bundle.command.d.ts.map +1 -0
- package/dist/commands/export-bundle.command.js +96 -0
- package/dist/commands/export.command.d.ts +3 -0
- package/dist/commands/export.command.d.ts.map +1 -0
- package/dist/commands/export.command.js +83 -0
- package/dist/commands/feedback-dispatch.command.d.ts +12 -0
- package/dist/commands/feedback-dispatch.command.d.ts.map +1 -0
- package/dist/commands/feedback-dispatch.command.js +63 -0
- package/dist/commands/feedback.command.d.ts +11 -0
- package/dist/commands/feedback.command.d.ts.map +1 -0
- package/dist/commands/feedback.command.js +336 -0
- package/dist/commands/fix.command.d.ts +3 -0
- package/dist/commands/fix.command.d.ts.map +1 -0
- package/dist/commands/fix.command.js +776 -0
- package/dist/commands/gen.command.d.ts +3 -0
- package/dist/commands/gen.command.d.ts.map +1 -0
- package/dist/commands/gen.command.js +136 -0
- package/dist/commands/git.command.d.ts +6 -0
- package/dist/commands/git.command.d.ts.map +1 -0
- package/dist/commands/git.command.js +81 -0
- package/dist/commands/graph.command.d.ts +3 -0
- package/dist/commands/graph.command.d.ts.map +1 -0
- package/dist/commands/graph.command.js +287 -0
- package/dist/commands/grounding.command.d.ts +7 -0
- package/dist/commands/grounding.command.d.ts.map +1 -0
- package/dist/commands/grounding.command.js +54 -0
- package/dist/commands/help.command.d.ts +20 -0
- package/dist/commands/help.command.d.ts.map +1 -0
- package/dist/commands/help.command.js +127 -0
- package/dist/commands/helper.command.d.ts +6 -0
- package/dist/commands/helper.command.d.ts.map +1 -0
- package/dist/commands/helper.command.js +170 -0
- package/dist/commands/ide.command.d.ts +6 -0
- package/dist/commands/ide.command.d.ts.map +1 -0
- package/dist/commands/ide.command.js +340 -0
- package/dist/commands/impact.command.d.ts +3 -0
- package/dist/commands/impact.command.d.ts.map +1 -0
- package/dist/commands/impact.command.js +819 -0
- package/dist/commands/import.command.d.ts +3 -0
- package/dist/commands/import.command.d.ts.map +1 -0
- package/dist/commands/import.command.js +115 -0
- package/dist/commands/infer.command.d.ts +3 -0
- package/dist/commands/infer.command.d.ts.map +1 -0
- package/dist/commands/infer.command.js +227 -0
- package/dist/commands/ingest.command.d.ts +6 -0
- package/dist/commands/ingest.command.d.ts.map +1 -0
- package/dist/commands/ingest.command.js +532 -0
- package/dist/commands/init.command.d.ts +3 -0
- package/dist/commands/init.command.d.ts.map +1 -0
- package/dist/commands/init.command.js +301 -0
- package/dist/commands/inspect.command.d.ts +3 -0
- package/dist/commands/inspect.command.d.ts.map +1 -0
- package/dist/commands/inspect.command.js +122 -0
- package/dist/commands/knowledge-author.command.d.ts +22 -0
- package/dist/commands/knowledge-author.command.d.ts.map +1 -0
- package/dist/commands/knowledge-author.command.js +366 -0
- package/dist/commands/knowledge-propose.command.d.ts +3 -0
- package/dist/commands/knowledge-propose.command.d.ts.map +1 -0
- package/dist/commands/knowledge-propose.command.js +125 -0
- package/dist/commands/knowledge.command.d.ts +18 -0
- package/dist/commands/knowledge.command.d.ts.map +1 -0
- package/dist/commands/knowledge.command.js +538 -0
- package/dist/commands/languages.command.d.ts +3 -0
- package/dist/commands/languages.command.d.ts.map +1 -0
- package/dist/commands/languages.command.js +300 -0
- package/dist/commands/lint.command.d.ts +15 -0
- package/dist/commands/lint.command.d.ts.map +1 -0
- package/dist/commands/lint.command.js +194 -0
- package/dist/commands/mcp.command.d.ts +3 -0
- package/dist/commands/mcp.command.d.ts.map +1 -0
- package/dist/commands/mcp.command.js +74 -0
- package/dist/commands/memory.command.d.ts +11 -0
- package/dist/commands/memory.command.d.ts.map +1 -0
- package/dist/commands/memory.command.js +264 -0
- package/dist/commands/onboard.command.d.ts +3 -0
- package/dist/commands/onboard.command.d.ts.map +1 -0
- package/dist/commands/onboard.command.js +650 -0
- package/dist/commands/orchestrate.command.d.ts +3 -0
- package/dist/commands/orchestrate.command.d.ts.map +1 -0
- package/dist/commands/orchestrate.command.js +49 -0
- package/dist/commands/owners.command.d.ts +5 -0
- package/dist/commands/owners.command.d.ts.map +1 -0
- package/dist/commands/owners.command.js +113 -0
- package/dist/commands/ownership.command.d.ts +5 -0
- package/dist/commands/ownership.command.d.ts.map +1 -0
- package/dist/commands/ownership.command.js +117 -0
- package/dist/commands/pack-author.command.d.ts +30 -0
- package/dist/commands/pack-author.command.d.ts.map +1 -0
- package/dist/commands/pack-author.command.js +242 -0
- package/dist/commands/packs-new.d.ts +27 -0
- package/dist/commands/packs-new.d.ts.map +1 -0
- package/dist/commands/packs-new.js +805 -0
- package/dist/commands/packs.command.d.ts +15 -0
- package/dist/commands/packs.command.d.ts.map +1 -0
- package/dist/commands/packs.command.js +958 -0
- package/dist/commands/paths.command.d.ts +6 -0
- package/dist/commands/paths.command.d.ts.map +1 -0
- package/dist/commands/paths.command.js +97 -0
- package/dist/commands/pipelines.command.d.ts +9 -0
- package/dist/commands/pipelines.command.d.ts.map +1 -0
- package/dist/commands/pipelines.command.js +308 -0
- package/dist/commands/plan-check.command.d.ts +27 -0
- package/dist/commands/plan-check.command.d.ts.map +1 -0
- package/dist/commands/plan-check.command.js +150 -0
- package/dist/commands/plan-simulate.command.d.ts +3 -0
- package/dist/commands/plan-simulate.command.d.ts.map +1 -0
- package/dist/commands/plan-simulate.command.js +60 -0
- package/dist/commands/plan.command.d.ts +8 -0
- package/dist/commands/plan.command.d.ts.map +1 -0
- package/dist/commands/plan.command.js +139 -0
- package/dist/commands/playbooks.command.d.ts +10 -0
- package/dist/commands/playbooks.command.d.ts.map +1 -0
- package/dist/commands/playbooks.command.js +296 -0
- package/dist/commands/plugin.command.d.ts +11 -0
- package/dist/commands/plugin.command.d.ts.map +1 -0
- package/dist/commands/plugin.command.js +394 -0
- package/dist/commands/policy.command.d.ts +8 -0
- package/dist/commands/policy.command.d.ts.map +1 -0
- package/dist/commands/policy.command.js +451 -0
- package/dist/commands/pr.command.d.ts +3 -0
- package/dist/commands/pr.command.d.ts.map +1 -0
- package/dist/commands/pr.command.js +132 -0
- package/dist/commands/preflight.command.d.ts +3 -0
- package/dist/commands/preflight.command.d.ts.map +1 -0
- package/dist/commands/preflight.command.js +102 -0
- package/dist/commands/presets.command.d.ts +17 -0
- package/dist/commands/presets.command.d.ts.map +1 -0
- package/dist/commands/presets.command.js +647 -0
- package/dist/commands/profiles.command.d.ts +7 -0
- package/dist/commands/profiles.command.d.ts.map +1 -0
- package/dist/commands/profiles.command.js +151 -0
- package/dist/commands/provenance.command.d.ts +26 -0
- package/dist/commands/provenance.command.d.ts.map +1 -0
- package/dist/commands/provenance.command.js +237 -0
- package/dist/commands/quality.command.d.ts +5 -0
- package/dist/commands/quality.command.d.ts.map +1 -0
- package/dist/commands/quality.command.js +69 -0
- package/dist/commands/recommend.command.d.ts +4 -0
- package/dist/commands/recommend.command.d.ts.map +1 -0
- package/dist/commands/recommend.command.js +270 -0
- package/dist/commands/registrations.command.d.ts +3 -0
- package/dist/commands/registrations.command.d.ts.map +1 -0
- package/dist/commands/registrations.command.js +300 -0
- package/dist/commands/registry.command.d.ts +4 -0
- package/dist/commands/registry.command.d.ts.map +1 -0
- package/dist/commands/registry.command.js +37 -0
- package/dist/commands/release.command.d.ts +4 -0
- package/dist/commands/release.command.d.ts.map +1 -0
- package/dist/commands/release.command.js +639 -0
- package/dist/commands/repo.command.d.ts +3 -0
- package/dist/commands/repo.command.d.ts.map +1 -0
- package/dist/commands/repo.command.js +24 -0
- package/dist/commands/report.command.d.ts +3 -0
- package/dist/commands/report.command.d.ts.map +1 -0
- package/dist/commands/report.command.js +511 -0
- package/dist/commands/reposet.command.d.ts +6 -0
- package/dist/commands/reposet.command.d.ts.map +1 -0
- package/dist/commands/reposet.command.js +120 -0
- package/dist/commands/review.command.d.ts +3 -0
- package/dist/commands/review.command.d.ts.map +1 -0
- package/dist/commands/review.command.js +354 -0
- package/dist/commands/risk.command.d.ts +3 -0
- package/dist/commands/risk.command.d.ts.map +1 -0
- package/dist/commands/risk.command.js +56 -0
- package/dist/commands/rounds.command.d.ts +8 -0
- package/dist/commands/rounds.command.d.ts.map +1 -0
- package/dist/commands/rounds.command.js +180 -0
- package/dist/commands/rules.command.d.ts +49 -0
- package/dist/commands/rules.command.d.ts.map +1 -0
- package/dist/commands/rules.command.js +435 -0
- package/dist/commands/runtime.command.d.ts +3 -0
- package/dist/commands/runtime.command.d.ts.map +1 -0
- package/dist/commands/runtime.command.js +56 -0
- package/dist/commands/safety.command.d.ts +3 -0
- package/dist/commands/safety.command.d.ts.map +1 -0
- package/dist/commands/safety.command.js +117 -0
- package/dist/commands/scaffolds.command.d.ts +5 -0
- package/dist/commands/scaffolds.command.d.ts.map +1 -0
- package/dist/commands/scaffolds.command.js +122 -0
- package/dist/commands/schemas.command.d.ts +21 -0
- package/dist/commands/schemas.command.d.ts.map +1 -0
- package/dist/commands/schemas.command.js +296 -0
- package/dist/commands/search.command.d.ts +12 -0
- package/dist/commands/search.command.d.ts.map +1 -0
- package/dist/commands/search.command.js +275 -0
- package/dist/commands/self-config.command.d.ts +7 -0
- package/dist/commands/self-config.command.d.ts.map +1 -0
- package/dist/commands/self-config.command.js +156 -0
- package/dist/commands/self.command.d.ts +3 -0
- package/dist/commands/self.command.d.ts.map +1 -0
- package/dist/commands/self.command.js +117 -0
- package/dist/commands/simulate.command.d.ts +3 -0
- package/dist/commands/simulate.command.d.ts.map +1 -0
- package/dist/commands/simulate.command.js +54 -0
- package/dist/commands/spec.command.d.ts +29 -0
- package/dist/commands/spec.command.d.ts.map +1 -0
- package/dist/commands/spec.command.js +985 -0
- package/dist/commands/start-here.command.d.ts +3 -0
- package/dist/commands/start-here.command.d.ts.map +1 -0
- package/dist/commands/start-here.command.js +35 -0
- package/dist/commands/stats.command.d.ts +3 -0
- package/dist/commands/stats.command.d.ts.map +1 -0
- package/dist/commands/stats.command.js +88 -0
- package/dist/commands/surface.command.d.ts +15 -0
- package/dist/commands/surface.command.d.ts.map +1 -0
- package/dist/commands/surface.command.js +328 -0
- package/dist/commands/task-context.command.d.ts +7 -0
- package/dist/commands/task-context.command.d.ts.map +1 -0
- package/dist/commands/task-context.command.js +646 -0
- package/dist/commands/task.command.d.ts +3 -0
- package/dist/commands/task.command.d.ts.map +1 -0
- package/dist/commands/task.command.js +301 -0
- package/dist/commands/template-quality.command.d.ts +5 -0
- package/dist/commands/template-quality.command.d.ts.map +1 -0
- package/dist/commands/template-quality.command.js +128 -0
- package/dist/commands/templates.command.d.ts +26 -0
- package/dist/commands/templates.command.d.ts.map +1 -0
- package/dist/commands/templates.command.js +964 -0
- package/dist/commands/test.command.d.ts +3 -0
- package/dist/commands/test.command.d.ts.map +1 -0
- package/dist/commands/test.command.js +262 -0
- package/dist/commands/tests.command.d.ts +5 -0
- package/dist/commands/tests.command.d.ts.map +1 -0
- package/dist/commands/tests.command.js +97 -0
- package/dist/commands/trace.command.d.ts +3 -0
- package/dist/commands/trace.command.d.ts.map +1 -0
- package/dist/commands/trace.command.js +121 -0
- package/dist/commands/upgrade.command.d.ts +4 -0
- package/dist/commands/upgrade.command.d.ts.map +1 -0
- package/dist/commands/upgrade.command.js +43 -0
- package/dist/commands/version.command.d.ts +3 -0
- package/dist/commands/version.command.d.ts.map +1 -0
- package/dist/commands/version.command.js +10 -0
- package/dist/commands/why.command.d.ts +24 -0
- package/dist/commands/why.command.d.ts.map +1 -0
- package/dist/commands/why.command.js +119 -0
- package/dist/dashboard/dashboard-api-server.d.ts +21 -0
- package/dist/dashboard/dashboard-api-server.d.ts.map +1 -0
- package/dist/dashboard/dashboard-api-server.js +410 -0
- package/dist/dashboard/live-session-server.d.ts +18 -0
- package/dist/dashboard/live-session-server.d.ts.map +1 -0
- package/dist/dashboard/live-session-server.js +133 -0
- package/dist/diff/collect-changed-paths.d.ts +27 -0
- package/dist/diff/collect-changed-paths.d.ts.map +1 -0
- package/dist/diff/collect-changed-paths.js +68 -0
- package/dist/doctor/doctor-tags.d.ts +63 -0
- package/dist/doctor/doctor-tags.d.ts.map +1 -0
- package/dist/doctor/doctor-tags.js +146 -0
- package/dist/export/export-formats.d.ts +22 -0
- package/dist/export/export-formats.d.ts.map +1 -0
- package/dist/export/export-formats.js +135 -0
- package/dist/index.d.ts +22 -0
- package/dist/index.d.ts.map +1 -0
- package/dist/index.js +21 -0
- package/dist/init/detected-block.d.ts +57 -0
- package/dist/init/detected-block.d.ts.map +1 -0
- package/dist/init/detected-block.js +197 -0
- package/dist/init/gitignore.d.ts +30 -0
- package/dist/init/gitignore.d.ts.map +1 -0
- package/dist/init/gitignore.js +110 -0
- package/dist/init/init-templates.d.ts +6 -0
- package/dist/init/init-templates.d.ts.map +1 -0
- package/dist/init/init-templates.js +413 -0
- package/dist/main.d.ts +18 -0
- package/dist/main.d.ts.map +1 -0
- package/dist/main.js +699 -0
- package/dist/output/failure-hints.d.ts +55 -0
- package/dist/output/failure-hints.d.ts.map +1 -0
- package/dist/output/failure-hints.js +159 -0
- package/dist/output/format-output.d.ts +9 -0
- package/dist/output/format-output.d.ts.map +1 -0
- package/dist/output/format-output.js +26 -0
- package/dist/output/print-error.d.ts +3 -0
- package/dist/output/print-error.d.ts.map +1 -0
- package/dist/output/print-error.js +14 -0
- package/dist/output/watch-loop.d.ts +37 -0
- package/dist/output/watch-loop.d.ts.map +1 -0
- package/dist/output/watch-loop.js +115 -0
- package/dist/schemas/json-schemas.d.ts +1630 -0
- package/dist/schemas/json-schemas.d.ts.map +1 -0
- package/dist/schemas/json-schemas.js +811 -0
- package/dist/surface/about.d.ts +10 -0
- package/dist/surface/about.d.ts.map +1 -0
- package/dist/surface/about.js +53 -0
- package/dist/surface/load-surface-context.d.ts +34 -0
- package/dist/surface/load-surface-context.d.ts.map +1 -0
- package/dist/surface/load-surface-context.js +100 -0
- package/dist/surface/no-args-landing.d.ts +7 -0
- package/dist/surface/no-args-landing.d.ts.map +1 -0
- package/dist/surface/no-args-landing.js +36 -0
- package/dist/surface/not-enabled-error.d.ts +24 -0
- package/dist/surface/not-enabled-error.d.ts.map +1 -0
- package/dist/surface/not-enabled-error.js +36 -0
- package/dist/surface/profiles.d.ts +37 -0
- package/dist/surface/profiles.d.ts.map +1 -0
- package/dist/surface/profiles.js +151 -0
- package/dist/surface/shape-defaults.d.ts +21 -0
- package/dist/surface/shape-defaults.d.ts.map +1 -0
- package/dist/surface/shape-defaults.js +50 -0
- package/dist/surface/spine-extractor.d.ts +38 -0
- package/dist/surface/spine-extractor.d.ts.map +1 -0
- package/dist/surface/spine-extractor.js +100 -0
- package/dist/surface/surface-config-writer.d.ts +59 -0
- package/dist/surface/surface-config-writer.d.ts.map +1 -0
- package/dist/surface/surface-config-writer.js +135 -0
- package/dist/surface/surface-summary.d.ts +66 -0
- package/dist/surface/surface-summary.d.ts.map +1 -0
- package/dist/surface/surface-summary.js +162 -0
- package/dist/surface/tier.d.ts +100 -0
- package/dist/surface/tier.d.ts.map +1 -0
- package/dist/surface/tier.js +172 -0
- package/dist/task-next/apply-batch-runner.d.ts +42 -0
- package/dist/task-next/apply-batch-runner.d.ts.map +1 -0
- package/dist/task-next/apply-batch-runner.js +192 -0
- package/dist/task-next/task-next-ranker.d.ts +75 -0
- package/dist/task-next/task-next-ranker.d.ts.map +1 -0
- package/dist/task-next/task-next-ranker.js +179 -0
- package/dist/usage/usage-log.d.ts +54 -0
- package/dist/usage/usage-log.d.ts.map +1 -0
- package/dist/usage/usage-log.js +105 -0
- package/dist/validation/run-validation-loop.d.ts +38 -0
- package/dist/validation/run-validation-loop.d.ts.map +1 -0
- package/dist/validation/run-validation-loop.js +100 -0
- package/package.json +73 -0
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"codemod.command.d.ts","sourceRoot":"","sources":["../../src/commands/codemod.command.ts"],"names":[],"mappings":"AAgBA,OAAO,EAKL,KAAK,eAAe,EAErB,MAAM,wBAAwB,CAAC;AAoDhC,eAAO,MAAM,cAAc,EAAE,eAoE5B,CAAC"}
|
|
@@ -0,0 +1,130 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* `shrk codemod` (codemod-assist, NOT a codemod engine).
|
|
3
|
+
*
|
|
4
|
+
* Inventory + plan + checklist for a rule. Never rewrites source. The
|
|
5
|
+
* preview surface mirrors `shrk fix preview` — write only under
|
|
6
|
+
* `.sharkcraft/fixes/`.
|
|
7
|
+
*/
|
|
8
|
+
import { existsSync, mkdirSync, writeFileSync } from 'node:fs';
|
|
9
|
+
import * as nodePath from 'node:path';
|
|
10
|
+
import { affectedFromCheckReport, buildCodemodAssistReport, inspectSharkcraft, parseCustomCheckReportFromFile, renderCodemodAssistMarkdown, } from '@shrkcrft/inspector';
|
|
11
|
+
import { flagBool, flagString, flagList, resolveCwd, } from "../command-registry.js";
|
|
12
|
+
import { asJson, header } from "../output/format-output.js";
|
|
13
|
+
async function loadRule(args) {
|
|
14
|
+
const ruleId = flagString(args, 'rule');
|
|
15
|
+
if (!ruleId) {
|
|
16
|
+
process.stderr.write('Missing --rule <ruleId>\n');
|
|
17
|
+
return null;
|
|
18
|
+
}
|
|
19
|
+
const cwd = resolveCwd(args);
|
|
20
|
+
const inspection = await inspectSharkcraft({ cwd });
|
|
21
|
+
const rule = inspection.ruleService.get(ruleId);
|
|
22
|
+
if (!rule) {
|
|
23
|
+
process.stderr.write(`No rule with id "${ruleId}".\n`);
|
|
24
|
+
return null;
|
|
25
|
+
}
|
|
26
|
+
return { rule, cwd };
|
|
27
|
+
}
|
|
28
|
+
async function gatherAffected(args) {
|
|
29
|
+
const fromReport = flagString(args, 'from-report');
|
|
30
|
+
const out = [];
|
|
31
|
+
if (fromReport) {
|
|
32
|
+
const parsed = parseCustomCheckReportFromFile(fromReport);
|
|
33
|
+
if (parsed.ok) {
|
|
34
|
+
for (const f of affectedFromCheckReport(parsed.report))
|
|
35
|
+
out.push({ path: f.path, note: f.note });
|
|
36
|
+
}
|
|
37
|
+
else {
|
|
38
|
+
process.stderr.write(`Warning: --from-report parse failed: ${parsed.reason}\n`);
|
|
39
|
+
}
|
|
40
|
+
}
|
|
41
|
+
for (const t of flagList(args, 'targets')) {
|
|
42
|
+
out.push({ path: t });
|
|
43
|
+
}
|
|
44
|
+
return out;
|
|
45
|
+
}
|
|
46
|
+
function writeAssistOutputs(cwd, ruleId, markdown, scriptTemplate) {
|
|
47
|
+
const dir = nodePath.join(cwd, '.sharkcraft', 'fixes');
|
|
48
|
+
if (!existsSync(dir))
|
|
49
|
+
mkdirSync(dir, { recursive: true });
|
|
50
|
+
const safe = ruleId.replace(/[^a-zA-Z0-9]+/g, '-');
|
|
51
|
+
const mdPath = nodePath.join(dir, `codemod-${safe}.md`);
|
|
52
|
+
const scriptAbs = nodePath.join(cwd, scriptTemplate.path);
|
|
53
|
+
writeFileSync(mdPath, markdown, 'utf8');
|
|
54
|
+
writeFileSync(scriptAbs, scriptTemplate.body, 'utf8');
|
|
55
|
+
return [mdPath, scriptAbs];
|
|
56
|
+
}
|
|
57
|
+
export const codemodCommand = {
|
|
58
|
+
name: 'codemod',
|
|
59
|
+
description: 'Codemod-assist (NOT a codemod engine). Inventory + risk grouping + checklist + project-script template. Never rewrites source.',
|
|
60
|
+
usage: 'shrk codemod <inventory|plan|checklist> --rule <ruleId> [--from-report <path>] [--targets a,b,c] [--write-preview] [--json]',
|
|
61
|
+
async run(args) {
|
|
62
|
+
const sub = args.positional[0] ?? 'plan';
|
|
63
|
+
if (!['inventory', 'plan', 'checklist'].includes(sub)) {
|
|
64
|
+
process.stderr.write('Usage: shrk codemod <inventory|plan|checklist> --rule <ruleId>\n');
|
|
65
|
+
return 2;
|
|
66
|
+
}
|
|
67
|
+
const inner = { ...args, positional: args.positional.slice(1) };
|
|
68
|
+
const loaded = await loadRule(inner);
|
|
69
|
+
if (!loaded)
|
|
70
|
+
return 1;
|
|
71
|
+
const { rule, cwd } = loaded;
|
|
72
|
+
const affectedFiles = await gatherAffected(inner);
|
|
73
|
+
const report = buildCodemodAssistReport({
|
|
74
|
+
rule,
|
|
75
|
+
affectedFiles,
|
|
76
|
+
});
|
|
77
|
+
let exitCode = 0;
|
|
78
|
+
if (sub === 'inventory') {
|
|
79
|
+
// Just affected files — no checklist body.
|
|
80
|
+
if (flagBool(inner, 'json')) {
|
|
81
|
+
process.stdout.write(asJson({ schema: report.schema, ruleId: report.ruleId, affectedFiles: report.affectedFiles, riskGroups: report.riskGroups }) + '\n');
|
|
82
|
+
}
|
|
83
|
+
else {
|
|
84
|
+
process.stdout.write(header(`Codemod inventory: ${report.ruleId}`));
|
|
85
|
+
if (report.affectedFiles.length === 0) {
|
|
86
|
+
process.stdout.write(' (no affected files supplied — pass --from-report or --targets)\n');
|
|
87
|
+
}
|
|
88
|
+
for (const f of report.affectedFiles) {
|
|
89
|
+
process.stdout.write(` ${f.risk.padEnd(7)} ${f.path}${f.consumerCount !== undefined ? ` (consumers: ${f.consumerCount})` : ''}\n`);
|
|
90
|
+
}
|
|
91
|
+
}
|
|
92
|
+
}
|
|
93
|
+
else if (sub === 'checklist') {
|
|
94
|
+
if (flagBool(inner, 'json')) {
|
|
95
|
+
process.stdout.write(asJson({ schema: report.schema, ruleId: report.ruleId, checklist: report.checklist, validationCommands: report.validationCommands }) + '\n');
|
|
96
|
+
}
|
|
97
|
+
else {
|
|
98
|
+
process.stdout.write(header(`Codemod checklist: ${report.ruleId}`));
|
|
99
|
+
for (const c of report.checklist) {
|
|
100
|
+
process.stdout.write(` - [ ] (${c.risk}) ${c.description}\n`);
|
|
101
|
+
if (c.suggestedCommand)
|
|
102
|
+
process.stdout.write(` $ ${c.suggestedCommand}\n`);
|
|
103
|
+
}
|
|
104
|
+
process.stdout.write('\nValidation:\n');
|
|
105
|
+
for (const v of report.validationCommands)
|
|
106
|
+
process.stdout.write(` $ ${v}\n`);
|
|
107
|
+
}
|
|
108
|
+
}
|
|
109
|
+
else {
|
|
110
|
+
// plan — full report
|
|
111
|
+
if (flagBool(inner, 'json')) {
|
|
112
|
+
process.stdout.write(asJson(report) + '\n');
|
|
113
|
+
}
|
|
114
|
+
else {
|
|
115
|
+
process.stdout.write(renderCodemodAssistMarkdown(report));
|
|
116
|
+
}
|
|
117
|
+
}
|
|
118
|
+
if (flagBool(inner, 'write-preview')) {
|
|
119
|
+
const md = renderCodemodAssistMarkdown(report);
|
|
120
|
+
const written = writeAssistOutputs(cwd, report.ruleId, md, report.scriptTemplate);
|
|
121
|
+
process.stdout.write(`\nWrote ${written.length} files:\n`);
|
|
122
|
+
for (const w of written)
|
|
123
|
+
process.stdout.write(` ${w}\n`);
|
|
124
|
+
}
|
|
125
|
+
else if (sub === 'plan' && !flagBool(inner, 'json')) {
|
|
126
|
+
process.stdout.write('\n (preview only — pass --write-preview to materialise under .sharkcraft/fixes/)\n');
|
|
127
|
+
}
|
|
128
|
+
return exitCode;
|
|
129
|
+
},
|
|
130
|
+
};
|
|
@@ -0,0 +1,265 @@
|
|
|
1
|
+
export declare enum SafetyLevel {
|
|
2
|
+
ReadOnly = "read-only",
|
|
3
|
+
WritesSessionOnly = "writes-session",
|
|
4
|
+
WritesDraftsOnly = "writes-drafts",
|
|
5
|
+
WritesSource = "writes-source",
|
|
6
|
+
RunsShell = "runs-shell",
|
|
7
|
+
RequiresReview = "requires-review"
|
|
8
|
+
}
|
|
9
|
+
/**
|
|
10
|
+
* Surface classification for "which command should I reach for first?"
|
|
11
|
+
*
|
|
12
|
+
* Distinct axis from {@link SafetyLevel}. Many `read-only` commands are
|
|
13
|
+
* machine-oriented or legacy; many `writes-source` commands are the canonical
|
|
14
|
+
* generate path.
|
|
15
|
+
*/
|
|
16
|
+
export declare enum CommandSurface {
|
|
17
|
+
Primary = "primary",
|
|
18
|
+
Common = "common",
|
|
19
|
+
Advanced = "advanced",
|
|
20
|
+
Machine = "machine",
|
|
21
|
+
Internal = "internal",
|
|
22
|
+
Legacy = "legacy"
|
|
23
|
+
}
|
|
24
|
+
/** Who is the command for? */
|
|
25
|
+
export declare enum CommandAudience {
|
|
26
|
+
Human = "human",
|
|
27
|
+
Agent = "agent",
|
|
28
|
+
Ci = "ci",
|
|
29
|
+
PackAuthor = "pack-author",
|
|
30
|
+
Maintainer = "maintainer"
|
|
31
|
+
}
|
|
32
|
+
/**
|
|
33
|
+
* User-journey role. Distinct from {@link SafetyLevel} and from the
|
|
34
|
+
* domain-grouping `category` field.
|
|
35
|
+
*
|
|
36
|
+
* Existing entries that don't set
|
|
37
|
+
* {@link ICommandCatalogEntry.taskRole} are unaffected.
|
|
38
|
+
*/
|
|
39
|
+
export declare enum CommandTaskRole {
|
|
40
|
+
Start = "start",
|
|
41
|
+
Context = "context",
|
|
42
|
+
Search = "search",
|
|
43
|
+
Explain = "explain",
|
|
44
|
+
Generate = "generate",
|
|
45
|
+
Review = "review",
|
|
46
|
+
Validate = "validate",
|
|
47
|
+
Release = "release",
|
|
48
|
+
Diagnose = "diagnose",
|
|
49
|
+
Inspect = "inspect",
|
|
50
|
+
Apply = "apply",
|
|
51
|
+
Config = "config"
|
|
52
|
+
}
|
|
53
|
+
/**
|
|
54
|
+
* Lifecycle axis (orthogonal to {@link CommandSurface}). Captures
|
|
55
|
+
* whether a command is the current canonical answer, an alias, deprecated,
|
|
56
|
+
* or retired.
|
|
57
|
+
*
|
|
58
|
+
* Defaults to {@link CommandLifecycle.Active} when omitted.
|
|
59
|
+
*/
|
|
60
|
+
export declare enum CommandLifecycle {
|
|
61
|
+
Active = "active",
|
|
62
|
+
Preferred = "preferred",
|
|
63
|
+
Alias = "alias",
|
|
64
|
+
Deprecated = "deprecated",
|
|
65
|
+
Retired = "retired"
|
|
66
|
+
}
|
|
67
|
+
/**
|
|
68
|
+
* Tier axis. Orthogonal to {@link CommandSurface} and
|
|
69
|
+
* {@link CommandLifecycle}.
|
|
70
|
+
*
|
|
71
|
+
* - `Core` — always visible, always callable. Bootstrap commands +
|
|
72
|
+
* anything referenced from the spine pipelines. Cannot be hidden
|
|
73
|
+
* or disabled by config.
|
|
74
|
+
* - `Extended` — visible in `--help` (subject to
|
|
75
|
+
* {@link defaultShowInHelp}), always callable. Default for the
|
|
76
|
+
* bulk of catalog entries. Can be hidden via
|
|
77
|
+
* `sharkcraft.config.ts surface.hidden`.
|
|
78
|
+
* - `Experimental` — visible only in `shrk surface list`; refuses
|
|
79
|
+
* invocation with a structured not-enabled error unless added to
|
|
80
|
+
* `sharkcraft.config.ts surface.enabled`. Default for
|
|
81
|
+
* pack-contributed commands and any catalog entry with the
|
|
82
|
+
* catalog override `tier: CommandTier.Experimental`.
|
|
83
|
+
*
|
|
84
|
+
* The tier of any given command is computed by the resolver in
|
|
85
|
+
* `packages/cli/src/surface/tier-resolver.ts` — the catalog field
|
|
86
|
+
* `tier?:` is an override for narrow corner cases only. Mechanical
|
|
87
|
+
* derivation (bootstrap ∪ spine) wins over any override that would
|
|
88
|
+
* downgrade a core command.
|
|
89
|
+
*/
|
|
90
|
+
export declare enum CommandTier {
|
|
91
|
+
Core = "core",
|
|
92
|
+
Extended = "extended",
|
|
93
|
+
Experimental = "experimental"
|
|
94
|
+
}
|
|
95
|
+
export interface ICommandCatalogEntry {
|
|
96
|
+
command: string;
|
|
97
|
+
description: string;
|
|
98
|
+
category: string;
|
|
99
|
+
safetyLevel: SafetyLevel;
|
|
100
|
+
writesFiles: boolean;
|
|
101
|
+
writesSource: boolean;
|
|
102
|
+
runsShell: boolean;
|
|
103
|
+
requiresReview: boolean;
|
|
104
|
+
mcpAvailable: boolean;
|
|
105
|
+
aliases: readonly string[];
|
|
106
|
+
/**
|
|
107
|
+
* Optional surface classification. When omitted the helper
|
|
108
|
+
* `commandSurface(entry)` derives a default from existing fields
|
|
109
|
+
* (writesSource ⇒ Common; runsShell ⇒ Advanced; everything else ⇒ Common).
|
|
110
|
+
*/
|
|
111
|
+
surface?: CommandSurface;
|
|
112
|
+
/** Optional intended audience list. Defaults to `[Human]`. */
|
|
113
|
+
intendedAudience?: readonly CommandAudience[];
|
|
114
|
+
/** Optional user-journey role. */
|
|
115
|
+
taskRole?: CommandTaskRole;
|
|
116
|
+
/**
|
|
117
|
+
* When this command is *not* the canonical entrypoint, a short string
|
|
118
|
+
* (a CLI invocation) pointing to the one users should reach for first.
|
|
119
|
+
* E.g. on `task` ⇒ `'shrk recommend "<task>"'`.
|
|
120
|
+
*/
|
|
121
|
+
preferredCommand?: string;
|
|
122
|
+
/**
|
|
123
|
+
* Other commands that overlap with this one. Renderer surfaces the
|
|
124
|
+
* relationship; doctor flags any overlapping entry without a
|
|
125
|
+
* `preferredCommand`.
|
|
126
|
+
*/
|
|
127
|
+
overlapsWith?: readonly string[];
|
|
128
|
+
/** If the command is legacy/deprecated, what replaces it. */
|
|
129
|
+
replacedBy?: string;
|
|
130
|
+
/**
|
|
131
|
+
* True if the command's primary consumer is machines / JSON pipes.
|
|
132
|
+
* Doctor flags `machineOnly && surface=Primary` as a UX warning.
|
|
133
|
+
*/
|
|
134
|
+
machineOnly?: boolean;
|
|
135
|
+
/**
|
|
136
|
+
* Optional lifecycle classification. Defaults to
|
|
137
|
+
* {@link CommandLifecycle.Active}. Set to `Alias` when the entry is a
|
|
138
|
+
* synonym pointing at a canonical command (see {@link replacedBy} or
|
|
139
|
+
* {@link preferredCommand}); `Deprecated` when scheduled for removal;
|
|
140
|
+
* `Retired` for tombstone entries kept only for catalog history.
|
|
141
|
+
*/
|
|
142
|
+
lifecycle?: CommandLifecycle;
|
|
143
|
+
/** Round / version where the lifecycle status started. */
|
|
144
|
+
deprecatedSince?: string;
|
|
145
|
+
/** Round / version after which the entry should be removed. */
|
|
146
|
+
removeAfter?: string;
|
|
147
|
+
/**
|
|
148
|
+
* Free-form reason explaining the lifecycle status. Surfaced by
|
|
149
|
+
* `shrk commands deprecated` / `commands retirement-plan` and by the
|
|
150
|
+
* `commands ux-check` doctor.
|
|
151
|
+
*/
|
|
152
|
+
reason?: string;
|
|
153
|
+
/**
|
|
154
|
+
* Override default-help visibility. When omitted the renderer
|
|
155
|
+
* uses {@link defaultShowInHelp} (primary + common visible; advanced /
|
|
156
|
+
* machine / internal / legacy hidden unless explicitly requested).
|
|
157
|
+
*/
|
|
158
|
+
showInDefaultHelp?: boolean;
|
|
159
|
+
/**
|
|
160
|
+
* Optional explicit tier. When set, overrides the mechanical
|
|
161
|
+
* derivation in the tier resolver UNLESS the command is in the
|
|
162
|
+
* bootstrap set or referenced from the spine — those always resolve
|
|
163
|
+
* to {@link CommandTier.Core} regardless of this field.
|
|
164
|
+
*
|
|
165
|
+
* Use sparingly: the right place to mark a command as
|
|
166
|
+
* `Experimental` is via the pruning overlay or by giving it the
|
|
167
|
+
* surface `Internal`/`Legacy` classification. This field exists for
|
|
168
|
+
* cases where the tier needs to differ from what surface + lifecycle
|
|
169
|
+
* imply.
|
|
170
|
+
*/
|
|
171
|
+
tier?: CommandTier;
|
|
172
|
+
}
|
|
173
|
+
/**
|
|
174
|
+
* Static catalog of `shrk` commands. The metadata is curated rather than
|
|
175
|
+
* derived so that it stays accurate even when commands evolve. Tests check
|
|
176
|
+
* the structural invariants (no duplicate commands, every entry has a
|
|
177
|
+
* non-empty description).
|
|
178
|
+
*/
|
|
179
|
+
export declare const COMMAND_CATALOG: readonly ICommandCatalogEntry[];
|
|
180
|
+
/** Return every canonical command string in the catalog. */
|
|
181
|
+
export declare function listCatalogCommandStrings(): string[];
|
|
182
|
+
/**
|
|
183
|
+
* Pruning overlay. Maps catalog `command` strings to a hide/deprecate verdict.
|
|
184
|
+
*
|
|
185
|
+
* The overlay is a back-stop for `hidden` verdicts that would be tedious to
|
|
186
|
+
* express as inline `surface: Advanced` on every variant of a parent entry.
|
|
187
|
+
*
|
|
188
|
+
* The export name remains `R46_OVERLAY` for stability — tests and
|
|
189
|
+
* docs still reference it.
|
|
190
|
+
*
|
|
191
|
+
* - `deprecated` entries are treated as `lifecycle: Deprecated` for
|
|
192
|
+
* the purposes of `commandLifecycle()` / `defaultShowInHelp()`.
|
|
193
|
+
* They remain executable; the help renderer hides them and the
|
|
194
|
+
* deprecation banner instructs callers to use the canonical
|
|
195
|
+
* replacement.
|
|
196
|
+
* - `retired` entries are deprecated + reserved for full removal
|
|
197
|
+
* after the version listed in `removeAfter`.
|
|
198
|
+
* - `hidden` entries are visible only under `shrk help --all` /
|
|
199
|
+
* `--advanced`.
|
|
200
|
+
*/
|
|
201
|
+
export interface IR46OverlayEntry {
|
|
202
|
+
readonly verdict: 'deprecated' | 'retired' | 'hidden';
|
|
203
|
+
readonly replacedBy?: string;
|
|
204
|
+
readonly reason?: string;
|
|
205
|
+
readonly removeAfter?: string;
|
|
206
|
+
}
|
|
207
|
+
export declare const R46_OVERLAY: Readonly<Record<string, IR46OverlayEntry>>;
|
|
208
|
+
/** Look up the pruning overlay for a command. */
|
|
209
|
+
export declare function r46Overlay(command: string): IR46OverlayEntry | undefined;
|
|
210
|
+
/**
|
|
211
|
+
* Surface resolver. Default is `Advanced` (hidden) so the spine is
|
|
212
|
+
* **opt-in**: only entries that set `surface: Primary | Common` explicitly
|
|
213
|
+
* appear in default help.
|
|
214
|
+
*
|
|
215
|
+
* Without this flip, omitted `surface` fields would inherit Common and the
|
|
216
|
+
* default help would balloon into hundreds of commands. With it, only the
|
|
217
|
+
* curated spine (~32 commands) is visible by default; everything else
|
|
218
|
+
* lands under `shrk commands --all` / `--advanced`.
|
|
219
|
+
*/
|
|
220
|
+
export declare function commandSurface(e: ICommandCatalogEntry): CommandSurface;
|
|
221
|
+
/** Default audience: humans, plus agents if `mcpAvailable`. */
|
|
222
|
+
export declare function commandAudience(e: ICommandCatalogEntry): readonly CommandAudience[];
|
|
223
|
+
/** Task role (or `undefined` when not classified). */
|
|
224
|
+
export declare function commandTaskRole(e: ICommandCatalogEntry): CommandTaskRole | undefined;
|
|
225
|
+
/**
|
|
226
|
+
* Lifecycle resolution. Inference order:
|
|
227
|
+
* 1. Explicit `lifecycle` value.
|
|
228
|
+
* 2. `replacedBy` set ⇒ {@link CommandLifecycle.Deprecated}.
|
|
229
|
+
* 3. `surface=Legacy` ⇒ {@link CommandLifecycle.Deprecated}.
|
|
230
|
+
* 4. Otherwise {@link CommandLifecycle.Active}.
|
|
231
|
+
*
|
|
232
|
+
* Aliases (synonyms for canonical verbs) and `Retired` (tombstone)
|
|
233
|
+
* must be set explicitly — they're never inferred.
|
|
234
|
+
*/
|
|
235
|
+
export declare function commandLifecycle(e: ICommandCatalogEntry): CommandLifecycle;
|
|
236
|
+
/**
|
|
237
|
+
* Default-help visibility rule. Honors an explicit
|
|
238
|
+
* {@link ICommandCatalogEntry.showInDefaultHelp} when set; otherwise
|
|
239
|
+
* primary + common are visible and advanced / machine / internal / legacy
|
|
240
|
+
* are hidden. Deprecated and retired commands are always hidden by
|
|
241
|
+
* default regardless of surface.
|
|
242
|
+
*/
|
|
243
|
+
export declare function defaultShowInHelp(e: ICommandCatalogEntry): boolean;
|
|
244
|
+
/**
|
|
245
|
+
* Short "Use this when…" line derived from `surface`, `taskRole`,
|
|
246
|
+
* `preferredCommand`, `replacedBy`, and `machineOnly`. Empty string when
|
|
247
|
+
* no metadata-driven hint is available.
|
|
248
|
+
*/
|
|
249
|
+
export declare function commandUseWhen(e: ICommandCatalogEntry): string;
|
|
250
|
+
export interface ICommandSafetyMatrixRow {
|
|
251
|
+
command: string;
|
|
252
|
+
category: string;
|
|
253
|
+
readsFiles: boolean;
|
|
254
|
+
writesDrafts: boolean;
|
|
255
|
+
writesSession: boolean;
|
|
256
|
+
writesSource: boolean;
|
|
257
|
+
runsShell: boolean;
|
|
258
|
+
mcpAvailable: boolean;
|
|
259
|
+
requiresReview: boolean;
|
|
260
|
+
safeForCi: boolean;
|
|
261
|
+
safeForMcp: boolean;
|
|
262
|
+
}
|
|
263
|
+
export declare function buildCommandSafetyMatrix(): readonly ICommandSafetyMatrixRow[];
|
|
264
|
+
export declare function renderCommandSafetyMatrixMarkdown(rows: readonly ICommandSafetyMatrixRow[]): string;
|
|
265
|
+
//# sourceMappingURL=command-catalog.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"command-catalog.d.ts","sourceRoot":"","sources":["../../src/commands/command-catalog.ts"],"names":[],"mappings":"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"}
|