@shrkcrft/inspector 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/acceptance-replay.d.ts +63 -0
- package/dist/acceptance-replay.d.ts.map +1 -0
- package/dist/acceptance-replay.js +240 -0
- package/dist/action-hint-diagnostics.d.ts +32 -0
- package/dist/action-hint-diagnostics.d.ts.map +1 -0
- package/dist/action-hint-diagnostics.js +133 -0
- package/dist/adoption-check.d.ts +28 -0
- package/dist/adoption-check.d.ts.map +1 -0
- package/dist/adoption-check.js +181 -0
- package/dist/adoption-checkpoint.d.ts +97 -0
- package/dist/adoption-checkpoint.d.ts.map +1 -0
- package/dist/adoption-checkpoint.js +209 -0
- package/dist/adoption-merge-preview.d.ts +28 -0
- package/dist/adoption-merge-preview.d.ts.map +1 -0
- package/dist/adoption-merge-preview.js +254 -0
- package/dist/adoption-report-renderer.d.ts +33 -0
- package/dist/adoption-report-renderer.d.ts.map +1 -0
- package/dist/adoption-report-renderer.js +257 -0
- package/dist/adoption-state.d.ts +100 -0
- package/dist/adoption-state.d.ts.map +1 -0
- package/dist/adoption-state.js +296 -0
- package/dist/adoption-three-way.d.ts +46 -0
- package/dist/adoption-three-way.d.ts.map +1 -0
- package/dist/adoption-three-way.js +181 -0
- package/dist/agent-brief.d.ts +77 -0
- package/dist/agent-brief.d.ts.map +1 -0
- package/dist/agent-brief.js +490 -0
- package/dist/agent-contract-gate.d.ts +108 -0
- package/dist/agent-contract-gate.d.ts.map +1 -0
- package/dist/agent-contract-gate.js +412 -0
- package/dist/agent-contract-templates.d.ts +63 -0
- package/dist/agent-contract-templates.d.ts.map +1 -0
- package/dist/agent-contract-templates.js +346 -0
- package/dist/agent-contract.d.ts +65 -0
- package/dist/agent-contract.d.ts.map +1 -0
- package/dist/agent-contract.js +555 -0
- package/dist/agent-handoff.d.ts +123 -0
- package/dist/agent-handoff.d.ts.map +1 -0
- package/dist/agent-handoff.js +470 -0
- package/dist/agent-instructions.d.ts +2 -0
- package/dist/agent-instructions.d.ts.map +1 -0
- package/dist/agent-instructions.js +21 -0
- package/dist/agent-orchestration.d.ts +61 -0
- package/dist/agent-orchestration.d.ts.map +1 -0
- package/dist/agent-orchestration.js +285 -0
- package/dist/agent-task-prep.d.ts +31 -0
- package/dist/agent-task-prep.d.ts.map +1 -0
- package/dist/agent-task-prep.js +73 -0
- package/dist/ai-readiness.d.ts +30 -0
- package/dist/ai-readiness.d.ts.map +1 -0
- package/dist/ai-readiness.js +279 -0
- package/dist/api-report.d.ts +51 -0
- package/dist/api-report.d.ts.map +1 -0
- package/dist/api-report.js +254 -0
- package/dist/apply-dispatch-trace.d.ts +93 -0
- package/dist/apply-dispatch-trace.d.ts.map +1 -0
- package/dist/apply-dispatch-trace.js +283 -0
- package/dist/apply-gate-result.d.ts +52 -0
- package/dist/apply-gate-result.d.ts.map +1 -0
- package/dist/apply-gate-result.js +44 -0
- package/dist/architecture-map.d.ts +118 -0
- package/dist/architecture-map.d.ts.map +1 -0
- package/dist/architecture-map.js +543 -0
- package/dist/area-explore.d.ts +75 -0
- package/dist/area-explore.d.ts.map +1 -0
- package/dist/area-explore.js +438 -0
- package/dist/area-map.d.ts +43 -0
- package/dist/area-map.d.ts.map +1 -0
- package/dist/area-map.js +197 -0
- package/dist/asset-provenance.d.ts +123 -0
- package/dist/asset-provenance.d.ts.map +1 -0
- package/dist/asset-provenance.js +209 -0
- package/dist/barrel-operations.d.ts +45 -0
- package/dist/barrel-operations.d.ts.map +1 -0
- package/dist/barrel-operations.js +159 -0
- package/dist/boundaries-changed-only.d.ts +62 -0
- package/dist/boundaries-changed-only.d.ts.map +1 -0
- package/dist/boundaries-changed-only.js +97 -0
- package/dist/boundary-suggestions.d.ts +20 -0
- package/dist/boundary-suggestions.d.ts.map +1 -0
- package/dist/boundary-suggestions.js +51 -0
- package/dist/bundle-diff.d.ts +98 -0
- package/dist/bundle-diff.d.ts.map +1 -0
- package/dist/bundle-diff.js +531 -0
- package/dist/bundle-replay.d.ts +68 -0
- package/dist/bundle-replay.d.ts.map +1 -0
- package/dist/bundle-replay.js +273 -0
- package/dist/bundle-validate-html.d.ts +11 -0
- package/dist/bundle-validate-html.d.ts.map +1 -0
- package/dist/bundle-validate-html.js +60 -0
- package/dist/change-intent.d.ts +36 -0
- package/dist/change-intent.d.ts.map +1 -0
- package/dist/change-intent.js +259 -0
- package/dist/changed-preflight.d.ts +59 -0
- package/dist/changed-preflight.d.ts.map +1 -0
- package/dist/changed-preflight.js +358 -0
- package/dist/changed-scope.d.ts +112 -0
- package/dist/changed-scope.d.ts.map +1 -0
- package/dist/changed-scope.js +172 -0
- package/dist/changes-summary.d.ts +87 -0
- package/dist/changes-summary.d.ts.map +1 -0
- package/dist/changes-summary.js +323 -0
- package/dist/check-result-v1.d.ts +90 -0
- package/dist/check-result-v1.d.ts.map +1 -0
- package/dist/check-result-v1.js +335 -0
- package/dist/ci-integrity-report.d.ts +38 -0
- package/dist/ci-integrity-report.d.ts.map +1 -0
- package/dist/ci-integrity-report.js +324 -0
- package/dist/ci-permissions-fix.d.ts +38 -0
- package/dist/ci-permissions-fix.d.ts.map +1 -0
- package/dist/ci-permissions-fix.js +201 -0
- package/dist/ci-permissions.d.ts +51 -0
- package/dist/ci-permissions.d.ts.map +1 -0
- package/dist/ci-permissions.js +431 -0
- package/dist/ci-predict.d.ts +42 -0
- package/dist/ci-predict.d.ts.map +1 -0
- package/dist/ci-predict.js +300 -0
- package/dist/ci-scaffold.d.ts +47 -0
- package/dist/ci-scaffold.d.ts.map +1 -0
- package/dist/ci-scaffold.js +638 -0
- package/dist/codemod-assist.d.ts +97 -0
- package/dist/codemod-assist.d.ts.map +1 -0
- package/dist/codemod-assist.js +261 -0
- package/dist/command-recommender.d.ts +25 -0
- package/dist/command-recommender.d.ts.map +1 -0
- package/dist/command-recommender.js +145 -0
- package/dist/command-suggester.d.ts +61 -0
- package/dist/command-suggester.d.ts.map +1 -0
- package/dist/command-suggester.js +159 -0
- package/dist/command-taxonomy.d.ts +38 -0
- package/dist/command-taxonomy.d.ts.map +1 -0
- package/dist/command-taxonomy.js +164 -0
- package/dist/compliance-evidence.d.ts +58 -0
- package/dist/compliance-evidence.d.ts.map +1 -0
- package/dist/compliance-evidence.js +260 -0
- package/dist/compliance-profiles.d.ts +42 -0
- package/dist/compliance-profiles.d.ts.map +1 -0
- package/dist/compliance-profiles.js +171 -0
- package/dist/construct-adoption-diff.d.ts +55 -0
- package/dist/construct-adoption-diff.d.ts.map +1 -0
- package/dist/construct-adoption-diff.js +331 -0
- package/dist/construct-adoption.d.ts +71 -0
- package/dist/construct-adoption.d.ts.map +1 -0
- package/dist/construct-adoption.js +331 -0
- package/dist/construct-inference.d.ts +44 -0
- package/dist/construct-inference.d.ts.map +1 -0
- package/dist/construct-inference.js +391 -0
- package/dist/construct-registry.d.ts +32 -0
- package/dist/construct-registry.d.ts.map +1 -0
- package/dist/construct-registry.js +198 -0
- package/dist/contract-file-rule.d.ts +37 -0
- package/dist/contract-file-rule.d.ts.map +1 -0
- package/dist/contract-file-rule.js +99 -0
- package/dist/contract-template-registry.d.ts +28 -0
- package/dist/contract-template-registry.d.ts.map +1 -0
- package/dist/contract-template-registry.js +161 -0
- package/dist/contradictions.d.ts +52 -0
- package/dist/contradictions.d.ts.map +1 -0
- package/dist/contradictions.js +391 -0
- package/dist/convention-registry.d.ts +44 -0
- package/dist/convention-registry.d.ts.map +1 -0
- package/dist/convention-registry.js +195 -0
- package/dist/coverage-report.d.ts +25 -0
- package/dist/coverage-report.d.ts.map +1 -0
- package/dist/coverage-report.js +190 -0
- package/dist/custom-checks.d.ts +146 -0
- package/dist/custom-checks.d.ts.map +1 -0
- package/dist/custom-checks.js +260 -0
- package/dist/dashboard/dashboard-data.d.ts +59 -0
- package/dist/dashboard/dashboard-data.d.ts.map +1 -0
- package/dist/dashboard/dashboard-data.js +653 -0
- package/dist/dashboard-export.d.ts +67 -0
- package/dist/dashboard-export.d.ts.map +1 -0
- package/dist/dashboard-export.js +203 -0
- package/dist/decision-records.d.ts +47 -0
- package/dist/decision-records.d.ts.map +1 -0
- package/dist/decision-records.js +255 -0
- package/dist/demo-package.d.ts +49 -0
- package/dist/demo-package.d.ts.map +1 -0
- package/dist/demo-package.js +305 -0
- package/dist/demo-script.d.ts +25 -0
- package/dist/demo-script.d.ts.map +1 -0
- package/dist/demo-script.js +198 -0
- package/dist/demo-workflow.d.ts +28 -0
- package/dist/demo-workflow.d.ts.map +1 -0
- package/dist/demo-workflow.js +178 -0
- package/dist/dev-cycle.d.ts +41 -0
- package/dist/dev-cycle.d.ts.map +1 -0
- package/dist/dev-cycle.js +94 -0
- package/dist/dev-session-html.d.ts +13 -0
- package/dist/dev-session-html.d.ts.map +1 -0
- package/dist/dev-session-html.js +223 -0
- package/dist/dev-session-report.d.ts +11 -0
- package/dist/dev-session-report.d.ts.map +1 -0
- package/dist/dev-session-report.js +206 -0
- package/dist/dev-session.d.ts +257 -0
- package/dist/dev-session.d.ts.map +1 -0
- package/dist/dev-session.js +568 -0
- package/dist/diagnostics-suggest.d.ts +17 -0
- package/dist/diagnostics-suggest.d.ts.map +1 -0
- package/dist/diagnostics-suggest.js +69 -0
- package/dist/docs-check.d.ts +40 -0
- package/dist/docs-check.d.ts.map +1 -0
- package/dist/docs-check.js +221 -0
- package/dist/doctor-acknowledgements.d.ts +69 -0
- package/dist/doctor-acknowledgements.d.ts.map +1 -0
- package/dist/doctor-acknowledgements.js +150 -0
- package/dist/doctor-result.d.ts +51 -0
- package/dist/doctor-result.d.ts.map +1 -0
- package/dist/doctor-result.js +7 -0
- package/dist/doctor-suppressions.d.ts +91 -0
- package/dist/doctor-suppressions.d.ts.map +1 -0
- package/dist/doctor-suppressions.js +238 -0
- package/dist/drift-baseline.d.ts +29 -0
- package/dist/drift-baseline.d.ts.map +1 -0
- package/dist/drift-baseline.js +80 -0
- package/dist/drift.d.ts +38 -0
- package/dist/drift.d.ts.map +1 -0
- package/dist/drift.js +107 -0
- package/dist/entrypoint-matrix.d.ts +61 -0
- package/dist/entrypoint-matrix.d.ts.map +1 -0
- package/dist/entrypoint-matrix.js +221 -0
- package/dist/examples-check.d.ts +36 -0
- package/dist/examples-check.d.ts.map +1 -0
- package/dist/examples-check.js +168 -0
- package/dist/execution-graph.d.ts +98 -0
- package/dist/execution-graph.d.ts.map +1 -0
- package/dist/execution-graph.js +484 -0
- package/dist/export-bundle.d.ts +10 -0
- package/dist/export-bundle.d.ts.map +1 -0
- package/dist/export-bundle.js +90 -0
- package/dist/failure-diagnostics.d.ts +63 -0
- package/dist/failure-diagnostics.d.ts.map +1 -0
- package/dist/failure-diagnostics.js +243 -0
- package/dist/feature-bundle.d.ts +111 -0
- package/dist/feature-bundle.d.ts.map +1 -0
- package/dist/feature-bundle.js +211 -0
- package/dist/feedback-actions-v2.d.ts +65 -0
- package/dist/feedback-actions-v2.d.ts.map +1 -0
- package/dist/feedback-actions-v2.js +183 -0
- package/dist/feedback-ingestion.d.ts +96 -0
- package/dist/feedback-ingestion.d.ts.map +1 -0
- package/dist/feedback-ingestion.js +400 -0
- package/dist/fix-preview.d.ts +82 -0
- package/dist/fix-preview.d.ts.map +1 -0
- package/dist/fix-preview.js +365 -0
- package/dist/fuzzy-impact.d.ts +50 -0
- package/dist/fuzzy-impact.d.ts.map +1 -0
- package/dist/fuzzy-impact.js +446 -0
- package/dist/generated-code.d.ts +97 -0
- package/dist/generated-code.d.ts.map +1 -0
- package/dist/generated-code.js +395 -0
- package/dist/git-helpers.d.ts +26 -0
- package/dist/git-helpers.d.ts.map +1 -0
- package/dist/git-helpers.js +110 -0
- package/dist/golden-output.d.ts +33 -0
- package/dist/golden-output.d.ts.map +1 -0
- package/dist/golden-output.js +92 -0
- package/dist/grounding/build-grounding.d.ts +53 -0
- package/dist/grounding/build-grounding.d.ts.map +1 -0
- package/dist/grounding/build-grounding.js +51 -0
- package/dist/grounding/nx-projects.d.ts +29 -0
- package/dist/grounding/nx-projects.d.ts.map +1 -0
- package/dist/grounding/nx-projects.js +109 -0
- package/dist/grounding/validate-extracted-plan.d.ts +20 -0
- package/dist/grounding/validate-extracted-plan.d.ts.map +1 -0
- package/dist/grounding/validate-extracted-plan.js +127 -0
- package/dist/healing-plan.d.ts +33 -0
- package/dist/healing-plan.d.ts.map +1 -0
- package/dist/healing-plan.js +346 -0
- package/dist/helper-registry.d.ts +90 -0
- package/dist/helper-registry.d.ts.map +1 -0
- package/dist/helper-registry.js +529 -0
- package/dist/impact-analysis.d.ts +150 -0
- package/dist/impact-analysis.d.ts.map +1 -0
- package/dist/impact-analysis.js +697 -0
- package/dist/impact-graph-render.d.ts +51 -0
- package/dist/impact-graph-render.d.ts.map +1 -0
- package/dist/impact-graph-render.js +139 -0
- package/dist/impact-graph.d.ts +17 -0
- package/dist/impact-graph.d.ts.map +1 -0
- package/dist/impact-graph.js +119 -0
- package/dist/impact-render.d.ts +22 -0
- package/dist/impact-render.d.ts.map +1 -0
- package/dist/impact-render.js +413 -0
- package/dist/import-graph-analysis.d.ts +28 -0
- package/dist/import-graph-analysis.d.ts.map +1 -0
- package/dist/import-graph-analysis.js +193 -0
- package/dist/import-hygiene.d.ts +93 -0
- package/dist/import-hygiene.d.ts.map +1 -0
- package/dist/import-hygiene.js +366 -0
- package/dist/index.d.ts +223 -0
- package/dist/index.d.ts.map +1 -0
- package/dist/index.js +233 -0
- package/dist/ingest-adoption.d.ts +50 -0
- package/dist/ingest-adoption.d.ts.map +1 -0
- package/dist/ingest-adoption.js +183 -0
- package/dist/ingest-apply.d.ts +80 -0
- package/dist/ingest-apply.d.ts.map +1 -0
- package/dist/ingest-apply.js +227 -0
- package/dist/ingest-body-extractor.d.ts +28 -0
- package/dist/ingest-body-extractor.d.ts.map +1 -0
- package/dist/ingest-body-extractor.js +129 -0
- package/dist/ingest-drafts.d.ts +16 -0
- package/dist/ingest-drafts.d.ts.map +1 -0
- package/dist/ingest-drafts.js +482 -0
- package/dist/inspector-cache.d.ts +41 -0
- package/dist/inspector-cache.d.ts.map +1 -0
- package/dist/inspector-cache.js +104 -0
- package/dist/install-smoke.d.ts +44 -0
- package/dist/install-smoke.d.ts.map +1 -0
- package/dist/install-smoke.js +31 -0
- package/dist/knowledge-authoring.d.ts +151 -0
- package/dist/knowledge-authoring.d.ts.map +1 -0
- package/dist/knowledge-authoring.js +586 -0
- package/dist/knowledge-graph.d.ts +76 -0
- package/dist/knowledge-graph.d.ts.map +1 -0
- package/dist/knowledge-graph.js +336 -0
- package/dist/knowledge-lint.d.ts +97 -0
- package/dist/knowledge-lint.d.ts.map +1 -0
- package/dist/knowledge-lint.js +302 -0
- package/dist/knowledge-rename.d.ts +38 -0
- package/dist/knowledge-rename.d.ts.map +1 -0
- package/dist/knowledge-rename.js +88 -0
- package/dist/knowledge-stale.d.ts +124 -0
- package/dist/knowledge-stale.d.ts.map +1 -0
- package/dist/knowledge-stale.js +892 -0
- package/dist/languages/command-inference.d.ts +27 -0
- package/dist/languages/command-inference.d.ts.map +1 -0
- package/dist/languages/command-inference.js +214 -0
- package/dist/languages/dependency-scan.d.ts +33 -0
- package/dist/languages/dependency-scan.d.ts.map +1 -0
- package/dist/languages/dependency-scan.js +343 -0
- package/dist/languages/index.d.ts +14 -0
- package/dist/languages/index.d.ts.map +1 -0
- package/dist/languages/index.js +13 -0
- package/dist/languages/language-boundaries.d.ts +30 -0
- package/dist/languages/language-boundaries.d.ts.map +1 -0
- package/dist/languages/language-boundaries.js +176 -0
- package/dist/languages/language-cache.d.ts +54 -0
- package/dist/languages/language-cache.d.ts.map +1 -0
- package/dist/languages/language-cache.js +236 -0
- package/dist/languages/language-detection.d.ts +30 -0
- package/dist/languages/language-detection.d.ts.map +1 -0
- package/dist/languages/language-detection.js +584 -0
- package/dist/languages/language-id.d.ts +15 -0
- package/dist/languages/language-id.d.ts.map +1 -0
- package/dist/languages/language-id.js +15 -0
- package/dist/languages/language-runner.d.ts +90 -0
- package/dist/languages/language-runner.d.ts.map +1 -0
- package/dist/languages/language-runner.js +346 -0
- package/dist/languages/polyglot-boundary.d.ts +80 -0
- package/dist/languages/polyglot-boundary.d.ts.map +1 -0
- package/dist/languages/polyglot-boundary.js +373 -0
- package/dist/languages/polyglot-ci.d.ts +25 -0
- package/dist/languages/polyglot-ci.d.ts.map +1 -0
- package/dist/languages/polyglot-ci.js +278 -0
- package/dist/languages/test-impact.d.ts +19 -0
- package/dist/languages/test-impact.d.ts.map +1 -0
- package/dist/languages/test-impact.js +157 -0
- package/dist/loader-diagnostics.d.ts +40 -0
- package/dist/loader-diagnostics.d.ts.map +1 -0
- package/dist/loader-diagnostics.js +49 -0
- package/dist/memory-diff.d.ts +60 -0
- package/dist/memory-diff.d.ts.map +1 -0
- package/dist/memory-diff.js +302 -0
- package/dist/migration-profile-registry.d.ts +26 -0
- package/dist/migration-profile-registry.d.ts.map +1 -0
- package/dist/migration-profile-registry.js +135 -0
- package/dist/migration-readiness.d.ts +101 -0
- package/dist/migration-readiness.d.ts.map +1 -0
- package/dist/migration-readiness.js +253 -0
- package/dist/monorepo-onboarding.d.ts +51 -0
- package/dist/monorepo-onboarding.d.ts.map +1 -0
- package/dist/monorepo-onboarding.js +235 -0
- package/dist/onboarding-adoption-diff.d.ts +53 -0
- package/dist/onboarding-adoption-diff.d.ts.map +1 -0
- package/dist/onboarding-adoption-diff.js +285 -0
- package/dist/onboarding-adoption.d.ts +136 -0
- package/dist/onboarding-adoption.d.ts.map +1 -0
- package/dist/onboarding-adoption.js +702 -0
- package/dist/onboarding-agent-import.d.ts +40 -0
- package/dist/onboarding-agent-import.d.ts.map +1 -0
- package/dist/onboarding-agent-import.js +114 -0
- package/dist/onboarding-diff.d.ts +39 -0
- package/dist/onboarding-diff.d.ts.map +1 -0
- package/dist/onboarding-diff.js +240 -0
- package/dist/onboarding-drafts.d.ts +28 -0
- package/dist/onboarding-drafts.d.ts.map +1 -0
- package/dist/onboarding-drafts.js +234 -0
- package/dist/onboarding-report.d.ts +8 -0
- package/dist/onboarding-report.d.ts.map +1 -0
- package/dist/onboarding-report.js +239 -0
- package/dist/onboarding.d.ts +134 -0
- package/dist/onboarding.d.ts.map +1 -0
- package/dist/onboarding.js +729 -0
- package/dist/ownership.d.ts +38 -0
- package/dist/ownership.d.ts.map +1 -0
- package/dist/ownership.js +102 -0
- package/dist/pack-author-ux.d.ts +58 -0
- package/dist/pack-author-ux.d.ts.map +1 -0
- package/dist/pack-author-ux.js +219 -0
- package/dist/pack-author.d.ts +94 -0
- package/dist/pack-author.d.ts.map +1 -0
- package/dist/pack-author.js +208 -0
- package/dist/pack-compatibility.d.ts +21 -0
- package/dist/pack-compatibility.d.ts.map +1 -0
- package/dist/pack-compatibility.js +114 -0
- package/dist/pack-contributions-inventory.d.ts +121 -0
- package/dist/pack-contributions-inventory.d.ts.map +1 -0
- package/dist/pack-contributions-inventory.js +732 -0
- package/dist/pack-docs.d.ts +11 -0
- package/dist/pack-docs.d.ts.map +1 -0
- package/dist/pack-docs.js +101 -0
- package/dist/pack-doctor.d.ts +50 -0
- package/dist/pack-doctor.d.ts.map +1 -0
- package/dist/pack-doctor.js +302 -0
- package/dist/pack-helper-registry.d.ts +29 -0
- package/dist/pack-helper-registry.d.ts.map +1 -0
- package/dist/pack-helper-registry.js +144 -0
- package/dist/pack-pending.d.ts +68 -0
- package/dist/pack-pending.d.ts.map +1 -0
- package/dist/pack-pending.js +189 -0
- package/dist/pack-quality-score.d.ts +44 -0
- package/dist/pack-quality-score.d.ts.map +1 -0
- package/dist/pack-quality-score.js +155 -0
- package/dist/pack-release-check.d.ts +24 -0
- package/dist/pack-release-check.d.ts.map +1 -0
- package/dist/pack-release-check.js +258 -0
- package/dist/pack-signature-status.d.ts +72 -0
- package/dist/pack-signature-status.d.ts.map +1 -0
- package/dist/pack-signature-status.js +222 -0
- package/dist/pack-symbol-compat.d.ts +60 -0
- package/dist/pack-symbol-compat.d.ts.map +1 -0
- package/dist/pack-symbol-compat.js +371 -0
- package/dist/pack-test-runner.d.ts +59 -0
- package/dist/pack-test-runner.d.ts.map +1 -0
- package/dist/pack-test-runner.js +211 -0
- package/dist/pipeline-command-dictionary.d.ts +2 -0
- package/dist/pipeline-command-dictionary.d.ts.map +1 -0
- package/dist/pipeline-command-dictionary.js +20 -0
- package/dist/pipeline-lint.d.ts +30 -0
- package/dist/pipeline-lint.d.ts.map +1 -0
- package/dist/pipeline-lint.js +134 -0
- package/dist/plan-dependency-graph.d.ts +25 -0
- package/dist/plan-dependency-graph.d.ts.map +1 -0
- package/dist/plan-dependency-graph.js +195 -0
- package/dist/plan-review.d.ts +64 -0
- package/dist/plan-review.d.ts.map +1 -0
- package/dist/plan-review.js +242 -0
- package/dist/plan-simulation.d.ts +108 -0
- package/dist/plan-simulation.d.ts.map +1 -0
- package/dist/plan-simulation.js +767 -0
- package/dist/playbook-registry.d.ts +25 -0
- package/dist/playbook-registry.d.ts.map +1 -0
- package/dist/playbook-registry.js +148 -0
- package/dist/playbook-script.d.ts +60 -0
- package/dist/playbook-script.d.ts.map +1 -0
- package/dist/playbook-script.js +161 -0
- package/dist/plugin-lifecycle-profile-registry.d.ts +52 -0
- package/dist/plugin-lifecycle-profile-registry.d.ts.map +1 -0
- package/dist/plugin-lifecycle-profile-registry.js +202 -0
- package/dist/plugin-lifecycle.d.ts +132 -0
- package/dist/plugin-lifecycle.d.ts.map +1 -0
- package/dist/plugin-lifecycle.js +477 -0
- package/dist/policy-engine.d.ts +101 -0
- package/dist/policy-engine.d.ts.map +1 -0
- package/dist/policy-engine.js +321 -0
- package/dist/policy-override-audit.d.ts +18 -0
- package/dist/policy-override-audit.d.ts.map +1 -0
- package/dist/policy-override-audit.js +54 -0
- package/dist/policy-overrides.d.ts +35 -0
- package/dist/policy-overrides.d.ts.map +1 -0
- package/dist/policy-overrides.js +84 -0
- package/dist/policy-test.d.ts +83 -0
- package/dist/policy-test.d.ts.map +1 -0
- package/dist/policy-test.js +342 -0
- package/dist/pr-summary.d.ts +34 -0
- package/dist/pr-summary.d.ts.map +1 -0
- package/dist/pr-summary.js +220 -0
- package/dist/product-coherence.d.ts +21 -0
- package/dist/product-coherence.d.ts.map +1 -0
- package/dist/product-coherence.js +158 -0
- package/dist/profile-registry.d.ts +42 -0
- package/dist/profile-registry.d.ts.map +1 -0
- package/dist/profile-registry.js +104 -0
- package/dist/project-coupling-audit.d.ts +64 -0
- package/dist/project-coupling-audit.d.ts.map +1 -0
- package/dist/project-coupling-audit.js +282 -0
- package/dist/project-overview.d.ts +14 -0
- package/dist/project-overview.d.ts.map +1 -0
- package/dist/project-overview.js +27 -0
- package/dist/propose-knowledge.d.ts +64 -0
- package/dist/propose-knowledge.d.ts.map +1 -0
- package/dist/propose-knowledge.js +367 -0
- package/dist/quality-baseline.d.ts +123 -0
- package/dist/quality-baseline.d.ts.map +1 -0
- package/dist/quality-baseline.js +433 -0
- package/dist/quality-html.d.ts +7 -0
- package/dist/quality-html.d.ts.map +1 -0
- package/dist/quality-html.js +64 -0
- package/dist/quality-report.d.ts +49 -0
- package/dist/quality-report.d.ts.map +1 -0
- package/dist/quality-report.js +296 -0
- package/dist/query-resolver.d.ts +38 -0
- package/dist/query-resolver.d.ts.map +1 -0
- package/dist/query-resolver.js +163 -0
- package/dist/ranker-explainability.d.ts +91 -0
- package/dist/ranker-explainability.d.ts.map +1 -0
- package/dist/ranker-explainability.js +550 -0
- package/dist/reference-lookup.d.ts +8 -0
- package/dist/reference-lookup.d.ts.map +1 -0
- package/dist/reference-lookup.js +18 -0
- package/dist/registration-hint-registry.d.ts +55 -0
- package/dist/registration-hint-registry.d.ts.map +1 -0
- package/dist/registration-hint-registry.js +327 -0
- package/dist/registry-lifecycle.d.ts +47 -0
- package/dist/registry-lifecycle.d.ts.map +1 -0
- package/dist/registry-lifecycle.js +214 -0
- package/dist/release-readiness.d.ts +64 -0
- package/dist/release-readiness.d.ts.map +1 -0
- package/dist/release-readiness.js +456 -0
- package/dist/release-smoke.d.ts +138 -0
- package/dist/release-smoke.d.ts.map +1 -0
- package/dist/release-smoke.js +459 -0
- package/dist/release-train.d.ts +33 -0
- package/dist/release-train.d.ts.map +1 -0
- package/dist/release-train.js +104 -0
- package/dist/repo-memory.d.ts +95 -0
- package/dist/repo-memory.d.ts.map +1 -0
- package/dist/repo-memory.js +614 -0
- package/dist/report-site.d.ts +92 -0
- package/dist/report-site.d.ts.map +1 -0
- package/dist/report-site.js +658 -0
- package/dist/reposet.d.ts +56 -0
- package/dist/reposet.d.ts.map +1 -0
- package/dist/reposet.js +160 -0
- package/dist/repository-intelligence.d.ts +145 -0
- package/dist/repository-intelligence.d.ts.map +1 -0
- package/dist/repository-intelligence.js +729 -0
- package/dist/repository-knowledge-model.d.ts +218 -0
- package/dist/repository-knowledge-model.d.ts.map +1 -0
- package/dist/repository-knowledge-model.js +939 -0
- package/dist/repository-map.d.ts +72 -0
- package/dist/repository-map.d.ts.map +1 -0
- package/dist/repository-map.js +332 -0
- package/dist/repository-stats.d.ts +66 -0
- package/dist/repository-stats.d.ts.map +1 -0
- package/dist/repository-stats.js +329 -0
- package/dist/review-comment-renderer.d.ts +59 -0
- package/dist/review-comment-renderer.d.ts.map +1 -0
- package/dist/review-comment-renderer.js +181 -0
- package/dist/review-comment-v2.d.ts +9 -0
- package/dist/review-comment-v2.d.ts.map +1 -0
- package/dist/review-comment-v2.js +178 -0
- package/dist/review-html.d.ts +13 -0
- package/dist/review-html.d.ts.map +1 -0
- package/dist/review-html.js +79 -0
- package/dist/review-packet-v2.d.ts +29 -0
- package/dist/review-packet-v2.d.ts.map +1 -0
- package/dist/review-packet-v2.js +71 -0
- package/dist/review-packet-v3.d.ts +22 -0
- package/dist/review-packet-v3.d.ts.map +1 -0
- package/dist/review-packet-v3.js +181 -0
- package/dist/review-packet.d.ts +49 -0
- package/dist/review-packet.d.ts.map +1 -0
- package/dist/review-packet.js +129 -0
- package/dist/risk-signals.d.ts +28 -0
- package/dist/risk-signals.d.ts.map +1 -0
- package/dist/risk-signals.js +68 -0
- package/dist/role-views.d.ts +50 -0
- package/dist/role-views.d.ts.map +1 -0
- package/dist/role-views.js +334 -0
- package/dist/rounds.d.ts +52 -0
- package/dist/rounds.d.ts.map +1 -0
- package/dist/rounds.js +172 -0
- package/dist/rule-drift.d.ts +42 -0
- package/dist/rule-drift.d.ts.map +1 -0
- package/dist/rule-drift.js +148 -0
- package/dist/rule-quality.d.ts +73 -0
- package/dist/rule-quality.d.ts.map +1 -0
- package/dist/rule-quality.js +356 -0
- package/dist/rule-scaffold.d.ts +71 -0
- package/dist/rule-scaffold.d.ts.map +1 -0
- package/dist/rule-scaffold.js +258 -0
- package/dist/safety-audit-deep.d.ts +38 -0
- package/dist/safety-audit-deep.d.ts.map +1 -0
- package/dist/safety-audit-deep.js +162 -0
- package/dist/safety-audit.d.ts +91 -0
- package/dist/safety-audit.d.ts.map +1 -0
- package/dist/safety-audit.js +138 -0
- package/dist/safety-html.d.ts +7 -0
- package/dist/safety-html.d.ts.map +1 -0
- package/dist/safety-html.js +70 -0
- package/dist/scaffold-coverage.d.ts +46 -0
- package/dist/scaffold-coverage.d.ts.map +1 -0
- package/dist/scaffold-coverage.js +273 -0
- package/dist/scaffold-patterns.d.ts +38 -0
- package/dist/scaffold-patterns.d.ts.map +1 -0
- package/dist/scaffold-patterns.js +282 -0
- package/dist/schema-inventory.d.ts +55 -0
- package/dist/schema-inventory.d.ts.map +1 -0
- package/dist/schema-inventory.js +301 -0
- package/dist/search-index.d.ts +75 -0
- package/dist/search-index.d.ts.map +1 -0
- package/dist/search-index.js +531 -0
- package/dist/search-tuning-explain.d.ts +68 -0
- package/dist/search-tuning-explain.d.ts.map +1 -0
- package/dist/search-tuning-explain.js +207 -0
- package/dist/search-tuning-registry.d.ts +54 -0
- package/dist/search-tuning-registry.d.ts.map +1 -0
- package/dist/search-tuning-registry.js +303 -0
- package/dist/self-audit.d.ts +59 -0
- package/dist/self-audit.d.ts.map +1 -0
- package/dist/self-audit.js +192 -0
- package/dist/self-config-doctor-v2.d.ts +57 -0
- package/dist/self-config-doctor-v2.d.ts.map +1 -0
- package/dist/self-config-doctor-v2.js +653 -0
- package/dist/self-config-doctor.d.ts +47 -0
- package/dist/self-config-doctor.d.ts.map +1 -0
- package/dist/self-config-doctor.js +432 -0
- package/dist/sharkcraft-inspector.d.ts +73 -0
- package/dist/sharkcraft-inspector.d.ts.map +1 -0
- package/dist/sharkcraft-inspector.js +745 -0
- package/dist/spec/spec-cross-validate.d.ts +17 -0
- package/dist/spec/spec-cross-validate.d.ts.map +1 -0
- package/dist/spec/spec-cross-validate.js +53 -0
- package/dist/spec/spec-discovery.d.ts +27 -0
- package/dist/spec/spec-discovery.d.ts.map +1 -0
- package/dist/spec/spec-discovery.js +78 -0
- package/dist/spec/spec-review.d.ts +36 -0
- package/dist/spec/spec-review.d.ts.map +1 -0
- package/dist/spec/spec-review.js +37 -0
- package/dist/stability-map.d.ts +62 -0
- package/dist/stability-map.d.ts.map +1 -0
- package/dist/stability-map.js +404 -0
- package/dist/start-here.d.ts +49 -0
- package/dist/start-here.d.ts.map +1 -0
- package/dist/start-here.js +259 -0
- package/dist/surface-profile-detect.d.ts +42 -0
- package/dist/surface-profile-detect.d.ts.map +1 -0
- package/dist/surface-profile-detect.js +76 -0
- package/dist/symbol-index.d.ts +108 -0
- package/dist/symbol-index.d.ts.map +1 -0
- package/dist/symbol-index.js +483 -0
- package/dist/task-decompose.d.ts +38 -0
- package/dist/task-decompose.d.ts.map +1 -0
- package/dist/task-decompose.js +154 -0
- package/dist/task-packet.d.ts +104 -0
- package/dist/task-packet.d.ts.map +1 -0
- package/dist/task-packet.js +156 -0
- package/dist/task-ranker.d.ts +51 -0
- package/dist/task-ranker.d.ts.map +1 -0
- package/dist/task-ranker.js +410 -0
- package/dist/task-risk.d.ts +84 -0
- package/dist/task-risk.d.ts.map +1 -0
- package/dist/task-risk.js +731 -0
- package/dist/task-routing-hint-registry.d.ts +36 -0
- package/dist/task-routing-hint-registry.d.ts.map +1 -0
- package/dist/task-routing-hint-registry.js +186 -0
- package/dist/template-authoring.d.ts +113 -0
- package/dist/template-authoring.d.ts.map +1 -0
- package/dist/template-authoring.js +521 -0
- package/dist/template-body-inference-v2.d.ts +19 -0
- package/dist/template-body-inference-v2.d.ts.map +1 -0
- package/dist/template-body-inference-v2.js +468 -0
- package/dist/template-body-inference.d.ts +59 -0
- package/dist/template-body-inference.d.ts.map +1 -0
- package/dist/template-body-inference.js +277 -0
- package/dist/template-drift.d.ts +39 -0
- package/dist/template-drift.d.ts.map +1 -0
- package/dist/template-drift.js +353 -0
- package/dist/template-lint.d.ts +31 -0
- package/dist/template-lint.d.ts.map +1 -0
- package/dist/template-lint.js +113 -0
- package/dist/test-definitions.d.ts +41 -0
- package/dist/test-definitions.d.ts.map +1 -0
- package/dist/test-definitions.js +6 -0
- package/dist/test-impact.d.ts +30 -0
- package/dist/test-impact.d.ts.map +1 -0
- package/dist/test-impact.js +173 -0
- package/dist/test-runner.d.ts +87 -0
- package/dist/test-runner.d.ts.map +1 -0
- package/dist/test-runner.js +560 -0
- package/dist/uncertainty-report.d.ts +46 -0
- package/dist/uncertainty-report.d.ts.map +1 -0
- package/dist/uncertainty-report.js +108 -0
- package/dist/uncertainty.d.ts +38 -0
- package/dist/uncertainty.d.ts.map +1 -0
- package/dist/uncertainty.js +115 -0
- package/dist/universal-search.d.ts +64 -0
- package/dist/universal-search.d.ts.map +1 -0
- package/dist/universal-search.js +347 -0
- package/dist/upgrade-advisor.d.ts +22 -0
- package/dist/upgrade-advisor.d.ts.map +1 -0
- package/dist/upgrade-advisor.js +109 -0
- package/dist/why-file.d.ts +75 -0
- package/dist/why-file.d.ts.map +1 -0
- package/dist/why-file.js +202 -0
- package/dist/workflow-simulation.d.ts +46 -0
- package/dist/workflow-simulation.d.ts.map +1 -0
- package/dist/workflow-simulation.js +154 -0
- package/package.json +66 -0
|
@@ -0,0 +1,302 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Knowledge lint + fix-preview.
|
|
3
|
+
*
|
|
4
|
+
* Pure inspector — classifies findings on the current knowledge entries.
|
|
5
|
+
* Never fills meaningful prose with fake content. Stub candidates use
|
|
6
|
+
* explicit TODO markers so a human / agent must finish the wording.
|
|
7
|
+
*
|
|
8
|
+
* Output schemas:
|
|
9
|
+
* - sharkcraft.knowledge-lint/v1
|
|
10
|
+
* - sharkcraft.knowledge-lint-fix-preview/v1
|
|
11
|
+
*/
|
|
12
|
+
export const KNOWLEDGE_LINT_SCHEMA = 'sharkcraft.knowledge-lint/v1';
|
|
13
|
+
export const KNOWLEDGE_LINT_FIX_PREVIEW_SCHEMA = 'sharkcraft.knowledge-lint-fix-preview/v1';
|
|
14
|
+
export var KnowledgeLintCategory;
|
|
15
|
+
(function (KnowledgeLintCategory) {
|
|
16
|
+
KnowledgeLintCategory["SafeMechanicalStub"] = "safe-mechanical-stub";
|
|
17
|
+
KnowledgeLintCategory["NeedsHumanWording"] = "needs-human-wording";
|
|
18
|
+
KnowledgeLintCategory["ShouldAcknowledge"] = "should-acknowledge";
|
|
19
|
+
KnowledgeLintCategory["ObsoleteEntry"] = "obsolete-entry";
|
|
20
|
+
KnowledgeLintCategory["StaleReference"] = "stale-reference";
|
|
21
|
+
KnowledgeLintCategory["MissingProvenance"] = "missing-provenance";
|
|
22
|
+
KnowledgeLintCategory["MissingActionHints"] = "missing-action-hints";
|
|
23
|
+
})(KnowledgeLintCategory || (KnowledgeLintCategory = {}));
|
|
24
|
+
export var KnowledgeLintSeverity;
|
|
25
|
+
(function (KnowledgeLintSeverity) {
|
|
26
|
+
KnowledgeLintSeverity["Info"] = "info";
|
|
27
|
+
KnowledgeLintSeverity["Warning"] = "warning";
|
|
28
|
+
})(KnowledgeLintSeverity || (KnowledgeLintSeverity = {}));
|
|
29
|
+
export function lintKnowledge(entries, options = {}) {
|
|
30
|
+
const findings = [];
|
|
31
|
+
const includeAdvisory = options.includeAdvisory ?? true;
|
|
32
|
+
const stale = new Set(options.staleReferenceEntryIds ?? []);
|
|
33
|
+
const entryFilter = options.entryIds && options.entryIds.length > 0 ? new Set(options.entryIds) : null;
|
|
34
|
+
for (const e of entries) {
|
|
35
|
+
if (entryFilter && !entryFilter.has(e.id))
|
|
36
|
+
continue;
|
|
37
|
+
// 1) Summary is missing — safe mechanical stub.
|
|
38
|
+
if (!e.summary || e.summary.trim().length === 0) {
|
|
39
|
+
findings.push({
|
|
40
|
+
code: 'knowledge.summary-missing',
|
|
41
|
+
category: KnowledgeLintCategory.SafeMechanicalStub,
|
|
42
|
+
severity: KnowledgeLintSeverity.Info,
|
|
43
|
+
entryId: e.id,
|
|
44
|
+
field: 'summary',
|
|
45
|
+
message: `Entry "${e.id}" has no summary.`,
|
|
46
|
+
stubSuggestion: stubSummaryFor(e),
|
|
47
|
+
});
|
|
48
|
+
}
|
|
49
|
+
else if (e.summary.length > 320) {
|
|
50
|
+
findings.push({
|
|
51
|
+
code: 'knowledge.summary-too-long',
|
|
52
|
+
category: KnowledgeLintCategory.NeedsHumanWording,
|
|
53
|
+
severity: KnowledgeLintSeverity.Info,
|
|
54
|
+
entryId: e.id,
|
|
55
|
+
field: 'summary',
|
|
56
|
+
message: `Summary is ${e.summary.length} chars (> 320). Consider tightening the wording.`,
|
|
57
|
+
});
|
|
58
|
+
}
|
|
59
|
+
// 2) Tags missing — safe mechanical stub.
|
|
60
|
+
if (!e.tags || e.tags.length === 0) {
|
|
61
|
+
findings.push({
|
|
62
|
+
code: 'knowledge.tags-missing',
|
|
63
|
+
category: KnowledgeLintCategory.SafeMechanicalStub,
|
|
64
|
+
severity: KnowledgeLintSeverity.Info,
|
|
65
|
+
entryId: e.id,
|
|
66
|
+
field: 'tags',
|
|
67
|
+
message: `Entry "${e.id}" has no tags.`,
|
|
68
|
+
stubSuggestion: stubTagsFor(e).join(','),
|
|
69
|
+
});
|
|
70
|
+
}
|
|
71
|
+
// 3) Content is a stub.
|
|
72
|
+
const trimmed = (e.content ?? '').trim();
|
|
73
|
+
if (trimmed.length === 0 || trimmed.startsWith('TODO') || trimmed === '...') {
|
|
74
|
+
findings.push({
|
|
75
|
+
code: 'knowledge.content-stub',
|
|
76
|
+
category: KnowledgeLintCategory.NeedsHumanWording,
|
|
77
|
+
severity: KnowledgeLintSeverity.Warning,
|
|
78
|
+
entryId: e.id,
|
|
79
|
+
field: 'content',
|
|
80
|
+
message: `Entry "${e.id}" has placeholder content. Human wording required.`,
|
|
81
|
+
});
|
|
82
|
+
}
|
|
83
|
+
else if (trimmed.length < 60) {
|
|
84
|
+
findings.push({
|
|
85
|
+
code: 'knowledge.content-too-short',
|
|
86
|
+
category: KnowledgeLintCategory.NeedsHumanWording,
|
|
87
|
+
severity: KnowledgeLintSeverity.Info,
|
|
88
|
+
entryId: e.id,
|
|
89
|
+
field: 'content',
|
|
90
|
+
message: `Entry "${e.id}" has a very short content body (${trimmed.length} chars).`,
|
|
91
|
+
});
|
|
92
|
+
}
|
|
93
|
+
// 4) Stale references — surfaced from external input.
|
|
94
|
+
if (stale.has(e.id)) {
|
|
95
|
+
findings.push({
|
|
96
|
+
code: 'knowledge.stale-reference',
|
|
97
|
+
category: KnowledgeLintCategory.StaleReference,
|
|
98
|
+
severity: KnowledgeLintSeverity.Warning,
|
|
99
|
+
entryId: e.id,
|
|
100
|
+
field: 'references',
|
|
101
|
+
message: `Entry "${e.id}" has stale or missing references. Run \`shrk knowledge stale-check\` for details.`,
|
|
102
|
+
});
|
|
103
|
+
}
|
|
104
|
+
// 5) Deprecated marker present.
|
|
105
|
+
const md = (e.metadata ?? {});
|
|
106
|
+
if (md.deprecated) {
|
|
107
|
+
findings.push({
|
|
108
|
+
code: 'knowledge.obsolete-entry',
|
|
109
|
+
category: KnowledgeLintCategory.ObsoleteEntry,
|
|
110
|
+
severity: KnowledgeLintSeverity.Info,
|
|
111
|
+
entryId: e.id,
|
|
112
|
+
field: 'metadata.deprecated',
|
|
113
|
+
message: `Entry "${e.id}" is marked deprecated. Consider removing or migrating its references.`,
|
|
114
|
+
});
|
|
115
|
+
}
|
|
116
|
+
// 6) Missing provenance — advisory.
|
|
117
|
+
if (includeAdvisory) {
|
|
118
|
+
const authoring = md.authoring ?? undefined;
|
|
119
|
+
const source = e.source;
|
|
120
|
+
if (!authoring && !source) {
|
|
121
|
+
findings.push({
|
|
122
|
+
code: 'knowledge.missing-provenance',
|
|
123
|
+
category: KnowledgeLintCategory.MissingProvenance,
|
|
124
|
+
severity: KnowledgeLintSeverity.Info,
|
|
125
|
+
entryId: e.id,
|
|
126
|
+
field: 'metadata.authoring',
|
|
127
|
+
message: `Entry "${e.id}" has no provenance metadata. Consider recording who/why on the next update.`,
|
|
128
|
+
advisory: true,
|
|
129
|
+
});
|
|
130
|
+
}
|
|
131
|
+
}
|
|
132
|
+
// 7) Missing action hints — advisory for high-priority entries.
|
|
133
|
+
if (includeAdvisory && (e.priority === 'critical' || e.priority === 'high')) {
|
|
134
|
+
if (!e.actionHints) {
|
|
135
|
+
findings.push({
|
|
136
|
+
code: 'knowledge.missing-action-hints',
|
|
137
|
+
category: KnowledgeLintCategory.MissingActionHints,
|
|
138
|
+
severity: KnowledgeLintSeverity.Info,
|
|
139
|
+
entryId: e.id,
|
|
140
|
+
field: 'actionHints',
|
|
141
|
+
message: `High-priority entry "${e.id}" has no actionHints. Consider adding mcpTools / commands.`,
|
|
142
|
+
advisory: true,
|
|
143
|
+
});
|
|
144
|
+
}
|
|
145
|
+
}
|
|
146
|
+
// 8) appliesWhen missing — should-acknowledge if intentional.
|
|
147
|
+
if (!e.appliesWhen || e.appliesWhen.length === 0) {
|
|
148
|
+
findings.push({
|
|
149
|
+
code: 'knowledge.appliesWhen-missing',
|
|
150
|
+
category: KnowledgeLintCategory.ShouldAcknowledge,
|
|
151
|
+
severity: KnowledgeLintSeverity.Info,
|
|
152
|
+
entryId: e.id,
|
|
153
|
+
field: 'appliesWhen',
|
|
154
|
+
message: `Entry "${e.id}" has no appliesWhen markers. If this is intentional (e.g. background reading) consider documenting it.`,
|
|
155
|
+
});
|
|
156
|
+
}
|
|
157
|
+
}
|
|
158
|
+
const counts = {
|
|
159
|
+
[KnowledgeLintCategory.SafeMechanicalStub]: 0,
|
|
160
|
+
[KnowledgeLintCategory.NeedsHumanWording]: 0,
|
|
161
|
+
[KnowledgeLintCategory.ShouldAcknowledge]: 0,
|
|
162
|
+
[KnowledgeLintCategory.ObsoleteEntry]: 0,
|
|
163
|
+
[KnowledgeLintCategory.StaleReference]: 0,
|
|
164
|
+
[KnowledgeLintCategory.MissingProvenance]: 0,
|
|
165
|
+
[KnowledgeLintCategory.MissingActionHints]: 0,
|
|
166
|
+
};
|
|
167
|
+
for (const f of findings)
|
|
168
|
+
counts[f.category]++;
|
|
169
|
+
return {
|
|
170
|
+
schema: KNOWLEDGE_LINT_SCHEMA,
|
|
171
|
+
generatedAt: new Date().toISOString(),
|
|
172
|
+
entries: entries.length,
|
|
173
|
+
findings,
|
|
174
|
+
counts,
|
|
175
|
+
};
|
|
176
|
+
}
|
|
177
|
+
export function buildKnowledgeLintFixPreview(report) {
|
|
178
|
+
const safeStubs = report.findings
|
|
179
|
+
.filter((f) => f.category === KnowledgeLintCategory.SafeMechanicalStub && f.stubSuggestion)
|
|
180
|
+
.map((f) => ({
|
|
181
|
+
entryId: f.entryId,
|
|
182
|
+
code: f.code,
|
|
183
|
+
field: f.field,
|
|
184
|
+
suggestion: f.stubSuggestion,
|
|
185
|
+
}));
|
|
186
|
+
const todos = report.findings
|
|
187
|
+
.filter((f) => f.category === KnowledgeLintCategory.NeedsHumanWording ||
|
|
188
|
+
f.category === KnowledgeLintCategory.StaleReference ||
|
|
189
|
+
f.category === KnowledgeLintCategory.ObsoleteEntry)
|
|
190
|
+
.map((f) => ({
|
|
191
|
+
entryId: f.entryId,
|
|
192
|
+
code: f.code,
|
|
193
|
+
field: f.field,
|
|
194
|
+
description: f.message,
|
|
195
|
+
}));
|
|
196
|
+
const acknowledgements = report.findings
|
|
197
|
+
.filter((f) => f.category === KnowledgeLintCategory.ShouldAcknowledge ||
|
|
198
|
+
f.category === KnowledgeLintCategory.MissingProvenance ||
|
|
199
|
+
f.category === KnowledgeLintCategory.MissingActionHints)
|
|
200
|
+
.map((f) => ({
|
|
201
|
+
entryId: f.entryId,
|
|
202
|
+
code: f.code,
|
|
203
|
+
field: f.field,
|
|
204
|
+
description: f.message,
|
|
205
|
+
}));
|
|
206
|
+
return {
|
|
207
|
+
schema: KNOWLEDGE_LINT_FIX_PREVIEW_SCHEMA,
|
|
208
|
+
generatedAt: new Date().toISOString(),
|
|
209
|
+
safeStubs,
|
|
210
|
+
todos,
|
|
211
|
+
acknowledgements,
|
|
212
|
+
basedOn: KNOWLEDGE_LINT_SCHEMA,
|
|
213
|
+
files: [
|
|
214
|
+
{ path: '.sharkcraft/fixes/knowledge-lint.preview.md', purpose: 'markdown-summary', language: 'markdown' },
|
|
215
|
+
{ path: '.sharkcraft/fixes/knowledge-lint.todos.json', purpose: 'todos-json', language: 'json' },
|
|
216
|
+
{ path: '.sharkcraft/fixes/knowledge-lint.patch', purpose: 'patch', language: 'typescript' },
|
|
217
|
+
],
|
|
218
|
+
nextCommands: [
|
|
219
|
+
'shrk knowledge lint --json',
|
|
220
|
+
'shrk knowledge stale-check --ci',
|
|
221
|
+
'shrk self-config doctor',
|
|
222
|
+
],
|
|
223
|
+
};
|
|
224
|
+
}
|
|
225
|
+
export function renderKnowledgeLintMarkdown(report) {
|
|
226
|
+
const lines = [];
|
|
227
|
+
lines.push('# Knowledge lint');
|
|
228
|
+
lines.push('');
|
|
229
|
+
lines.push(`Entries scanned: ${report.entries}`);
|
|
230
|
+
lines.push(`Findings: ${report.findings.length}`);
|
|
231
|
+
lines.push('');
|
|
232
|
+
lines.push('## Counts');
|
|
233
|
+
lines.push('');
|
|
234
|
+
for (const [cat, n] of Object.entries(report.counts)) {
|
|
235
|
+
if (n > 0)
|
|
236
|
+
lines.push(`- ${cat}: ${n}`);
|
|
237
|
+
}
|
|
238
|
+
lines.push('');
|
|
239
|
+
if (report.findings.length > 0) {
|
|
240
|
+
lines.push('## Findings');
|
|
241
|
+
lines.push('');
|
|
242
|
+
for (const f of report.findings) {
|
|
243
|
+
lines.push(`- **${f.severity.toUpperCase()}** \`${f.code}\` ${f.entryId} → ${f.field}${f.advisory ? ' _(advisory)_' : ''}`);
|
|
244
|
+
lines.push(` - ${f.message}`);
|
|
245
|
+
if (f.stubSuggestion)
|
|
246
|
+
lines.push(` - stub: \`${f.stubSuggestion}\``);
|
|
247
|
+
}
|
|
248
|
+
lines.push('');
|
|
249
|
+
}
|
|
250
|
+
return lines.join('\n');
|
|
251
|
+
}
|
|
252
|
+
export function renderKnowledgeLintFixPreviewMarkdown(preview) {
|
|
253
|
+
const lines = [];
|
|
254
|
+
lines.push('# Knowledge lint — fix preview');
|
|
255
|
+
lines.push('');
|
|
256
|
+
lines.push(`Safe mechanical stubs: ${preview.safeStubs.length}`);
|
|
257
|
+
lines.push(`Items needing human wording: ${preview.todos.length}`);
|
|
258
|
+
lines.push(`Items to acknowledge: ${preview.acknowledgements.length}`);
|
|
259
|
+
lines.push('');
|
|
260
|
+
lines.push('## Safe mechanical stubs');
|
|
261
|
+
lines.push('');
|
|
262
|
+
if (preview.safeStubs.length === 0)
|
|
263
|
+
lines.push('_(none)_');
|
|
264
|
+
for (const s of preview.safeStubs) {
|
|
265
|
+
lines.push(`- \`${s.entryId}\` → \`${s.field}\`: \`${s.suggestion}\``);
|
|
266
|
+
}
|
|
267
|
+
lines.push('');
|
|
268
|
+
lines.push('## TODOs (human wording required)');
|
|
269
|
+
lines.push('');
|
|
270
|
+
if (preview.todos.length === 0)
|
|
271
|
+
lines.push('_(none)_');
|
|
272
|
+
for (const t of preview.todos) {
|
|
273
|
+
lines.push(`- [ ] \`${t.entryId}\` → \`${t.field}\` — ${t.description}`);
|
|
274
|
+
}
|
|
275
|
+
lines.push('');
|
|
276
|
+
lines.push('## Acknowledgements (intentional, advisory)');
|
|
277
|
+
lines.push('');
|
|
278
|
+
if (preview.acknowledgements.length === 0)
|
|
279
|
+
lines.push('_(none)_');
|
|
280
|
+
for (const a of preview.acknowledgements) {
|
|
281
|
+
lines.push(`- \`${a.entryId}\` → \`${a.field}\` — ${a.description}`);
|
|
282
|
+
}
|
|
283
|
+
lines.push('');
|
|
284
|
+
lines.push('## Next commands');
|
|
285
|
+
lines.push('');
|
|
286
|
+
for (const c of preview.nextCommands)
|
|
287
|
+
lines.push(`- \`${c}\``);
|
|
288
|
+
lines.push('');
|
|
289
|
+
return lines.join('\n');
|
|
290
|
+
}
|
|
291
|
+
function stubSummaryFor(e) {
|
|
292
|
+
return `TODO(summary): one-line summary of "${e.title || e.id}".`;
|
|
293
|
+
}
|
|
294
|
+
function stubTagsFor(e) {
|
|
295
|
+
const out = new Set();
|
|
296
|
+
const idTokens = e.id.split(/[.\-]/g).filter((t) => t.length > 1);
|
|
297
|
+
for (const t of idTokens.slice(0, 3))
|
|
298
|
+
out.add(t);
|
|
299
|
+
if (e.type)
|
|
300
|
+
out.add(String(e.type));
|
|
301
|
+
return [...out];
|
|
302
|
+
}
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Preview only. Source-side rename remains out of scope (would need
|
|
3
|
+
* an AST pass). Existing `sharkcraft/knowledge-updates/` patch files
|
|
4
|
+
* on disk are left alone (users may have generated them
|
|
5
|
+
* deliberately).
|
|
6
|
+
*
|
|
7
|
+
* Schema: sharkcraft.knowledge-rename/v2.
|
|
8
|
+
*/
|
|
9
|
+
import type { IKnowledgeAnchor, IKnowledgeReference } from '@shrkcrft/knowledge';
|
|
10
|
+
import type { ISharkcraftInspection } from './sharkcraft-inspector.js';
|
|
11
|
+
export declare const KNOWLEDGE_RENAME_SCHEMA = "sharkcraft.knowledge-rename/v2";
|
|
12
|
+
export interface IKnowledgeRenameMatch {
|
|
13
|
+
entryId: string;
|
|
14
|
+
field: 'reference' | 'anchor';
|
|
15
|
+
before: IKnowledgeReference | IKnowledgeAnchor;
|
|
16
|
+
after: IKnowledgeReference | IKnowledgeAnchor;
|
|
17
|
+
}
|
|
18
|
+
export interface IKnowledgeRenamePlan {
|
|
19
|
+
schema: typeof KNOWLEDGE_RENAME_SCHEMA;
|
|
20
|
+
kind: 'rename-symbol' | 'rename-file' | 'update-anchor';
|
|
21
|
+
from: string;
|
|
22
|
+
to: string;
|
|
23
|
+
matches: ReadonlyArray<IKnowledgeRenameMatch>;
|
|
24
|
+
}
|
|
25
|
+
export interface IKnowledgeRenameOptions {
|
|
26
|
+
from: string;
|
|
27
|
+
to: string;
|
|
28
|
+
}
|
|
29
|
+
export declare function buildRenameSymbolPlan(inspection: ISharkcraftInspection, opts: IKnowledgeRenameOptions): IKnowledgeRenamePlan;
|
|
30
|
+
export declare function buildRenameFilePlan(inspection: ISharkcraftInspection, opts: IKnowledgeRenameOptions): IKnowledgeRenamePlan;
|
|
31
|
+
export interface IAnchorUpdateOptions {
|
|
32
|
+
anchorId: string;
|
|
33
|
+
toSymbol?: string;
|
|
34
|
+
toPath?: string;
|
|
35
|
+
toTargetId?: string;
|
|
36
|
+
}
|
|
37
|
+
export declare function buildAnchorUpdatePlan(inspection: ISharkcraftInspection, opts: IAnchorUpdateOptions): IKnowledgeRenamePlan;
|
|
38
|
+
//# sourceMappingURL=knowledge-rename.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"knowledge-rename.d.ts","sourceRoot":"","sources":["../src/knowledge-rename.ts"],"names":[],"mappings":"AAAA;;;;;;;GAOG;AAEH,OAAO,KAAK,EACV,gBAAgB,EAEhB,mBAAmB,EACpB,MAAM,qBAAqB,CAAC;AAC7B,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,2BAA2B,CAAC;AAEvE,eAAO,MAAM,uBAAuB,mCAAmC,CAAC;AAExE,MAAM,WAAW,qBAAqB;IACpC,OAAO,EAAE,MAAM,CAAC;IAChB,KAAK,EAAE,WAAW,GAAG,QAAQ,CAAC;IAC9B,MAAM,EAAE,mBAAmB,GAAG,gBAAgB,CAAC;IAC/C,KAAK,EAAE,mBAAmB,GAAG,gBAAgB,CAAC;CAC/C;AAED,MAAM,WAAW,oBAAoB;IACnC,MAAM,EAAE,OAAO,uBAAuB,CAAC;IACvC,IAAI,EAAE,eAAe,GAAG,aAAa,GAAG,eAAe,CAAC;IACxD,IAAI,EAAE,MAAM,CAAC;IACb,EAAE,EAAE,MAAM,CAAC;IACX,OAAO,EAAE,aAAa,CAAC,qBAAqB,CAAC,CAAC;CAC/C;AAED,MAAM,WAAW,uBAAuB;IACtC,IAAI,EAAE,MAAM,CAAC;IACb,EAAE,EAAE,MAAM,CAAC;CACZ;AAMD,wBAAgB,qBAAqB,CACnC,UAAU,EAAE,qBAAqB,EACjC,IAAI,EAAE,uBAAuB,GAC5B,oBAAoB,CAyBtB;AAED,wBAAgB,mBAAmB,CACjC,UAAU,EAAE,qBAAqB,EACjC,IAAI,EAAE,uBAAuB,GAC5B,oBAAoB,CAyBtB;AAED,MAAM,WAAW,oBAAoB;IACnC,QAAQ,EAAE,MAAM,CAAC;IACjB,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,UAAU,CAAC,EAAE,MAAM,CAAC;CACrB;AAED,wBAAgB,qBAAqB,CACnC,UAAU,EAAE,qBAAqB,EACjC,IAAI,EAAE,oBAAoB,GACzB,oBAAoB,CAmBtB"}
|
|
@@ -0,0 +1,88 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Preview only. Source-side rename remains out of scope (would need
|
|
3
|
+
* an AST pass). Existing `sharkcraft/knowledge-updates/` patch files
|
|
4
|
+
* on disk are left alone (users may have generated them
|
|
5
|
+
* deliberately).
|
|
6
|
+
*
|
|
7
|
+
* Schema: sharkcraft.knowledge-rename/v2.
|
|
8
|
+
*/
|
|
9
|
+
export const KNOWLEDGE_RENAME_SCHEMA = 'sharkcraft.knowledge-rename/v2';
|
|
10
|
+
function clone(v) {
|
|
11
|
+
return JSON.parse(JSON.stringify(v));
|
|
12
|
+
}
|
|
13
|
+
export function buildRenameSymbolPlan(inspection, opts) {
|
|
14
|
+
const matches = [];
|
|
15
|
+
for (const entry of inspection.knowledgeEntries) {
|
|
16
|
+
for (const ref of entry.references ?? []) {
|
|
17
|
+
if (ref.kind === 'symbol' && ref.symbol === opts.from) {
|
|
18
|
+
const after = clone(ref);
|
|
19
|
+
after.symbol = opts.to;
|
|
20
|
+
matches.push({ entryId: entry.id, field: 'reference', before: ref, after });
|
|
21
|
+
}
|
|
22
|
+
}
|
|
23
|
+
for (const anchor of entry.anchors ?? []) {
|
|
24
|
+
if (anchor.kind === 'symbol' && anchor.symbol === opts.from) {
|
|
25
|
+
const after = clone(anchor);
|
|
26
|
+
after.symbol = opts.to;
|
|
27
|
+
matches.push({ entryId: entry.id, field: 'anchor', before: anchor, after });
|
|
28
|
+
}
|
|
29
|
+
}
|
|
30
|
+
}
|
|
31
|
+
return {
|
|
32
|
+
schema: KNOWLEDGE_RENAME_SCHEMA,
|
|
33
|
+
kind: 'rename-symbol',
|
|
34
|
+
from: opts.from,
|
|
35
|
+
to: opts.to,
|
|
36
|
+
matches,
|
|
37
|
+
};
|
|
38
|
+
}
|
|
39
|
+
export function buildRenameFilePlan(inspection, opts) {
|
|
40
|
+
const matches = [];
|
|
41
|
+
for (const entry of inspection.knowledgeEntries) {
|
|
42
|
+
for (const ref of entry.references ?? []) {
|
|
43
|
+
if (ref.path === opts.from) {
|
|
44
|
+
const after = clone(ref);
|
|
45
|
+
after.path = opts.to;
|
|
46
|
+
matches.push({ entryId: entry.id, field: 'reference', before: ref, after });
|
|
47
|
+
}
|
|
48
|
+
}
|
|
49
|
+
for (const anchor of entry.anchors ?? []) {
|
|
50
|
+
if (anchor.path === opts.from) {
|
|
51
|
+
const after = clone(anchor);
|
|
52
|
+
after.path = opts.to;
|
|
53
|
+
matches.push({ entryId: entry.id, field: 'anchor', before: anchor, after });
|
|
54
|
+
}
|
|
55
|
+
}
|
|
56
|
+
}
|
|
57
|
+
return {
|
|
58
|
+
schema: KNOWLEDGE_RENAME_SCHEMA,
|
|
59
|
+
kind: 'rename-file',
|
|
60
|
+
from: opts.from,
|
|
61
|
+
to: opts.to,
|
|
62
|
+
matches,
|
|
63
|
+
};
|
|
64
|
+
}
|
|
65
|
+
export function buildAnchorUpdatePlan(inspection, opts) {
|
|
66
|
+
const matches = [];
|
|
67
|
+
for (const entry of inspection.knowledgeEntries) {
|
|
68
|
+
for (const anchor of entry.anchors ?? []) {
|
|
69
|
+
if (anchor.id !== opts.anchorId)
|
|
70
|
+
continue;
|
|
71
|
+
const after = clone(anchor);
|
|
72
|
+
if (opts.toSymbol !== undefined)
|
|
73
|
+
after.symbol = opts.toSymbol;
|
|
74
|
+
if (opts.toPath !== undefined)
|
|
75
|
+
after.path = opts.toPath;
|
|
76
|
+
if (opts.toTargetId !== undefined)
|
|
77
|
+
after.targetId = opts.toTargetId;
|
|
78
|
+
matches.push({ entryId: entry.id, field: 'anchor', before: anchor, after });
|
|
79
|
+
}
|
|
80
|
+
}
|
|
81
|
+
return {
|
|
82
|
+
schema: KNOWLEDGE_RENAME_SCHEMA,
|
|
83
|
+
kind: 'update-anchor',
|
|
84
|
+
from: opts.anchorId,
|
|
85
|
+
to: opts.toSymbol ?? opts.toPath ?? opts.toTargetId ?? '?',
|
|
86
|
+
matches,
|
|
87
|
+
};
|
|
88
|
+
}
|
|
@@ -0,0 +1,124 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Knowledge stale-check.
|
|
3
|
+
*
|
|
4
|
+
* Walks every knowledge entry's `references[]` + `anchors[]` and checks
|
|
5
|
+
* whether each target still resolves against the current workspace.
|
|
6
|
+
*
|
|
7
|
+
* Pure file-system + registry lookups — no network, no AST compilation.
|
|
8
|
+
* Symbol checks are deterministic best-effort text scans so the doctor
|
|
9
|
+
* stays cheap.
|
|
10
|
+
*
|
|
11
|
+
* Schema: sharkcraft.knowledge-stale/v1
|
|
12
|
+
*/
|
|
13
|
+
import type { IKnowledgeAnchor, IKnowledgeReference } from '@shrkcrft/knowledge';
|
|
14
|
+
import type { ISharkcraftInspection } from './sharkcraft-inspector.js';
|
|
15
|
+
export declare const KNOWLEDGE_STALE_SCHEMA = "sharkcraft.knowledge-stale/v1";
|
|
16
|
+
export declare enum ReferenceCheckOutcome {
|
|
17
|
+
Ok = "ok",
|
|
18
|
+
Stale = "stale",
|
|
19
|
+
Missing = "missing",
|
|
20
|
+
Unknown = "unknown"
|
|
21
|
+
}
|
|
22
|
+
export declare enum SymbolConfidence {
|
|
23
|
+
Exact = "exact",
|
|
24
|
+
Probable = "probable",
|
|
25
|
+
Missing = "missing",
|
|
26
|
+
Unknown = "unknown"
|
|
27
|
+
}
|
|
28
|
+
/**
|
|
29
|
+
* Rename detection strategy.
|
|
30
|
+
*
|
|
31
|
+
* - `strict` (default): emit `replaceWith.path` only when there is
|
|
32
|
+
* exactly one unambiguous candidate.
|
|
33
|
+
* - `wide`: also surface multiple candidates above a confidence
|
|
34
|
+
* threshold. When one candidate is meaningfully ahead of the second,
|
|
35
|
+
* it still auto-applies; otherwise the candidate list is returned
|
|
36
|
+
* without `path` so the user can disambiguate manually.
|
|
37
|
+
*/
|
|
38
|
+
export declare enum RenameStrategy {
|
|
39
|
+
Strict = "strict",
|
|
40
|
+
Wide = "wide"
|
|
41
|
+
}
|
|
42
|
+
/**
|
|
43
|
+
* One scored candidate in a wide-strategy replacement.
|
|
44
|
+
*
|
|
45
|
+
* `score` is 0..1; higher is better. `rationale` is a one-line
|
|
46
|
+
* human-readable explanation suitable for the preview output.
|
|
47
|
+
*/
|
|
48
|
+
export interface IReplacementCandidate {
|
|
49
|
+
path?: string;
|
|
50
|
+
symbol?: string;
|
|
51
|
+
id?: string;
|
|
52
|
+
score: number;
|
|
53
|
+
rationale: string;
|
|
54
|
+
}
|
|
55
|
+
/**
|
|
56
|
+
* Structured replacement signal.
|
|
57
|
+
*
|
|
58
|
+
* When the engine can identify the new location of a moved symbol /
|
|
59
|
+
* renamed file with high confidence, it emits a structured payload the
|
|
60
|
+
* apply path can act on without parsing the free-form `suggestion`
|
|
61
|
+
* text. Strict mode emits `path` (or `id` / `symbol`) only when the
|
|
62
|
+
* resolution is unambiguous (exactly one candidate match across the
|
|
63
|
+
* source tree). Wide mode additionally surfaces `candidates[]` for the
|
|
64
|
+
* ambiguous cases the user previously got nothing for.
|
|
65
|
+
*/
|
|
66
|
+
export interface IReferenceReplacement {
|
|
67
|
+
/** New path for symbol or file/directory references that moved. */
|
|
68
|
+
path?: string;
|
|
69
|
+
/** New id for id-keyed references. */
|
|
70
|
+
id?: string;
|
|
71
|
+
/** New symbol for renamed symbols. */
|
|
72
|
+
symbol?: string;
|
|
73
|
+
/** One-line "why this is the right replacement" for human review. */
|
|
74
|
+
rationale: string;
|
|
75
|
+
/** Under wide strategy, full ranked candidate list. */
|
|
76
|
+
candidates?: readonly IReplacementCandidate[];
|
|
77
|
+
/** Strategy that produced this replacement. */
|
|
78
|
+
strategy?: RenameStrategy;
|
|
79
|
+
}
|
|
80
|
+
export interface IKnowledgeReferenceCheck {
|
|
81
|
+
entryId: string;
|
|
82
|
+
reference: IKnowledgeReference;
|
|
83
|
+
outcome: ReferenceCheckOutcome;
|
|
84
|
+
/** Confidence for symbol references; undefined for other kinds. */
|
|
85
|
+
symbolConfidence?: SymbolConfidence;
|
|
86
|
+
message: string;
|
|
87
|
+
suggestion?: string;
|
|
88
|
+
/** Structured replacement when the engine can identify the new location. */
|
|
89
|
+
replaceWith?: IReferenceReplacement;
|
|
90
|
+
}
|
|
91
|
+
export interface IKnowledgeAnchorCheck {
|
|
92
|
+
entryId: string;
|
|
93
|
+
anchor: IKnowledgeAnchor;
|
|
94
|
+
outcome: ReferenceCheckOutcome;
|
|
95
|
+
message: string;
|
|
96
|
+
}
|
|
97
|
+
export interface IKnowledgeStaleReport {
|
|
98
|
+
schema: typeof KNOWLEDGE_STALE_SCHEMA;
|
|
99
|
+
entries: number;
|
|
100
|
+
totalReferences: number;
|
|
101
|
+
totalAnchors: number;
|
|
102
|
+
counts: {
|
|
103
|
+
ok: number;
|
|
104
|
+
stale: number;
|
|
105
|
+
missing: number;
|
|
106
|
+
unknown: number;
|
|
107
|
+
};
|
|
108
|
+
referenceChecks: ReadonlyArray<IKnowledgeReferenceCheck>;
|
|
109
|
+
anchorChecks: ReadonlyArray<IKnowledgeAnchorCheck>;
|
|
110
|
+
}
|
|
111
|
+
export interface IKnowledgeStaleCheckOptions {
|
|
112
|
+
/** When provided, only entries referencing one of these files are checked. */
|
|
113
|
+
changedFiles?: ReadonlyArray<string>;
|
|
114
|
+
/**
|
|
115
|
+
* Rename detection strategy. Default `strict`: only emit a candidate
|
|
116
|
+
* when one is unambiguous. `wide` surfaces multi-candidate matches
|
|
117
|
+
* that strict silently drops, and applies a path-overlap score so
|
|
118
|
+
* the apply path can still auto-select when one candidate clearly
|
|
119
|
+
* leads.
|
|
120
|
+
*/
|
|
121
|
+
renameStrategy?: RenameStrategy;
|
|
122
|
+
}
|
|
123
|
+
export declare function buildKnowledgeStaleReport(inspection: ISharkcraftInspection, options?: IKnowledgeStaleCheckOptions): IKnowledgeStaleReport;
|
|
124
|
+
//# sourceMappingURL=knowledge-stale.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"knowledge-stale.d.ts","sourceRoot":"","sources":["../src/knowledge-stale.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;GAWG;AAIH,OAAO,KAAK,EACV,gBAAgB,EAEhB,mBAAmB,EAEpB,MAAM,qBAAqB,CAAC;AAC7B,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,2BAA2B,CAAC;AAIvE,eAAO,MAAM,sBAAsB,kCAAkC,CAAC;AAEtE,oBAAY,qBAAqB;IAC/B,EAAE,OAAO;IACT,KAAK,UAAU;IACf,OAAO,YAAY;IACnB,OAAO,YAAY;CACpB;AAED,oBAAY,gBAAgB;IAC1B,KAAK,UAAU;IACf,QAAQ,aAAa;IACrB,OAAO,YAAY;IACnB,OAAO,YAAY;CACpB;AAED;;;;;;;;;GASG;AACH,oBAAY,cAAc;IACxB,MAAM,WAAW;IACjB,IAAI,SAAS;CACd;AAED;;;;;GAKG;AACH,MAAM,WAAW,qBAAqB;IACpC,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,EAAE,CAAC,EAAE,MAAM,CAAC;IACZ,KAAK,EAAE,MAAM,CAAC;IACd,SAAS,EAAE,MAAM,CAAC;CACnB;AAED;;;;;;;;;;GAUG;AACH,MAAM,WAAW,qBAAqB;IACpC,mEAAmE;IACnE,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,sCAAsC;IACtC,EAAE,CAAC,EAAE,MAAM,CAAC;IACZ,sCAAsC;IACtC,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,qEAAqE;IACrE,SAAS,EAAE,MAAM,CAAC;IAClB,uDAAuD;IACvD,UAAU,CAAC,EAAE,SAAS,qBAAqB,EAAE,CAAC;IAC9C,+CAA+C;IAC/C,QAAQ,CAAC,EAAE,cAAc,CAAC;CAC3B;AAED,MAAM,WAAW,wBAAwB;IACvC,OAAO,EAAE,MAAM,CAAC;IAChB,SAAS,EAAE,mBAAmB,CAAC;IAC/B,OAAO,EAAE,qBAAqB,CAAC;IAC/B,mEAAmE;IACnE,gBAAgB,CAAC,EAAE,gBAAgB,CAAC;IACpC,OAAO,EAAE,MAAM,CAAC;IAChB,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,4EAA4E;IAC5E,WAAW,CAAC,EAAE,qBAAqB,CAAC;CACrC;AAED,MAAM,WAAW,qBAAqB;IACpC,OAAO,EAAE,MAAM,CAAC;IAChB,MAAM,EAAE,gBAAgB,CAAC;IACzB,OAAO,EAAE,qBAAqB,CAAC;IAC/B,OAAO,EAAE,MAAM,CAAC;CACjB;AAED,MAAM,WAAW,qBAAqB;IACpC,MAAM,EAAE,OAAO,sBAAsB,CAAC;IACtC,OAAO,EAAE,MAAM,CAAC;IAChB,eAAe,EAAE,MAAM,CAAC;IACxB,YAAY,EAAE,MAAM,CAAC;IACrB,MAAM,EAAE;QAAE,EAAE,EAAE,MAAM,CAAC;QAAC,KAAK,EAAE,MAAM,CAAC;QAAC,OAAO,EAAE,MAAM,CAAC;QAAC,OAAO,EAAE,MAAM,CAAA;KAAE,CAAC;IACxE,eAAe,EAAE,aAAa,CAAC,wBAAwB,CAAC,CAAC;IACzD,YAAY,EAAE,aAAa,CAAC,qBAAqB,CAAC,CAAC;CACpD;AAED,MAAM,WAAW,2BAA2B;IAC1C,8EAA8E;IAC9E,YAAY,CAAC,EAAE,aAAa,CAAC,MAAM,CAAC,CAAC;IACrC;;;;;;OAMG;IACH,cAAc,CAAC,EAAE,cAAc,CAAC;CACjC;AAwWD,wBAAgB,yBAAyB,CACvC,UAAU,EAAE,qBAAqB,EACjC,OAAO,GAAE,2BAAgC,GACxC,qBAAqB,CAgJvB"}
|