@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,296 @@
|
|
|
1
|
+
import { evaluateBoundaries, loadTsconfigPaths, scanImports, } from '@shrkcrft/boundaries';
|
|
2
|
+
import { buildAiReadinessReport } from "./ai-readiness.js";
|
|
3
|
+
import { buildCoverageReport } from "./coverage-report.js";
|
|
4
|
+
import { buildDriftReport } from "./drift.js";
|
|
5
|
+
import { buildPackDoctorReport } from "./pack-doctor.js";
|
|
6
|
+
import { runDoctor } from "./sharkcraft-inspector.js";
|
|
7
|
+
import { loadAgentContractTests, loadContextTests, runAgentContractTest, runContextTest, } from "./test-runner.js";
|
|
8
|
+
/**
|
|
9
|
+
* Build a quality report from an inspection. Pure orchestration over the
|
|
10
|
+
* existing inspector helpers — no IO outside what those helpers already do.
|
|
11
|
+
*/
|
|
12
|
+
export async function buildQualityReport(input) {
|
|
13
|
+
const { inspection, config, strict = false, skipShell = false } = input;
|
|
14
|
+
const gates = [];
|
|
15
|
+
// 1. Doctor.
|
|
16
|
+
const doctor = runDoctor(inspection);
|
|
17
|
+
gates.push({
|
|
18
|
+
id: 'doctor',
|
|
19
|
+
label: 'Project doctor',
|
|
20
|
+
passed: doctor.summary.errors === 0,
|
|
21
|
+
blocking: true,
|
|
22
|
+
runsShell: false,
|
|
23
|
+
executed: true,
|
|
24
|
+
notes: doctor.checks
|
|
25
|
+
.filter((c) => c.severity === 'error')
|
|
26
|
+
.map((c) => `${c.title}: ${c.message}`),
|
|
27
|
+
data: {
|
|
28
|
+
errors: doctor.summary.errors,
|
|
29
|
+
warnings: doctor.summary.warnings,
|
|
30
|
+
ok: doctor.summary.ok,
|
|
31
|
+
},
|
|
32
|
+
});
|
|
33
|
+
// 2. Readiness threshold.
|
|
34
|
+
const readiness = buildAiReadinessReport(inspection);
|
|
35
|
+
const readinessMin = config.minReadiness ?? 0;
|
|
36
|
+
gates.push({
|
|
37
|
+
id: 'readiness',
|
|
38
|
+
label: 'AI readiness',
|
|
39
|
+
passed: readiness.score >= readinessMin,
|
|
40
|
+
blocking: readinessMin > 0 || strict,
|
|
41
|
+
runsShell: false,
|
|
42
|
+
executed: true,
|
|
43
|
+
notes: readiness.score < readinessMin
|
|
44
|
+
? [`Readiness ${readiness.score} below threshold ${readinessMin}`]
|
|
45
|
+
: [],
|
|
46
|
+
data: { score: readiness.score, min: readinessMin, grade: readiness.grade },
|
|
47
|
+
});
|
|
48
|
+
// 3. Boundaries. The boundary scan reads files from disk but does not run
|
|
49
|
+
// shell commands; safe for MCP.
|
|
50
|
+
const boundaries = checkBoundaries(inspection);
|
|
51
|
+
gates.push({
|
|
52
|
+
id: 'boundaries',
|
|
53
|
+
label: 'Boundary check',
|
|
54
|
+
passed: boundaries.errors === 0,
|
|
55
|
+
blocking: config.requireBoundaryClean === true || strict,
|
|
56
|
+
runsShell: false,
|
|
57
|
+
executed: true,
|
|
58
|
+
notes: boundaries.notes,
|
|
59
|
+
data: { errors: boundaries.errors, warnings: boundaries.warnings },
|
|
60
|
+
});
|
|
61
|
+
// 4. Coverage.
|
|
62
|
+
const cov = buildCoverageReport(inspection);
|
|
63
|
+
const coverageGaps = cov.categories.filter((c) => c.score < 80).length;
|
|
64
|
+
gates.push({
|
|
65
|
+
id: 'coverage',
|
|
66
|
+
label: 'Coverage report',
|
|
67
|
+
passed: coverageGaps === 0,
|
|
68
|
+
blocking: strict,
|
|
69
|
+
runsShell: false,
|
|
70
|
+
executed: true,
|
|
71
|
+
notes: coverageGaps > 0
|
|
72
|
+
? cov.categories.filter((c) => c.score < 80).slice(0, 3).map((c) => `${c.id} at ${c.score}%`)
|
|
73
|
+
: [],
|
|
74
|
+
data: { gaps: coverageGaps, overall: cov.overall },
|
|
75
|
+
});
|
|
76
|
+
// 5. Drift gate. Pure deterministic check — no shell.
|
|
77
|
+
let drift;
|
|
78
|
+
try {
|
|
79
|
+
drift = buildDriftReport(inspection);
|
|
80
|
+
const errors = drift.counts.error;
|
|
81
|
+
const warnings = drift.counts.warning;
|
|
82
|
+
const passed = errors === 0 && (config.requireDriftClean !== true || warnings === 0);
|
|
83
|
+
gates.push({
|
|
84
|
+
id: 'drift',
|
|
85
|
+
label: 'Drift report',
|
|
86
|
+
passed,
|
|
87
|
+
blocking: config.requireDriftClean === true || strict,
|
|
88
|
+
runsShell: false,
|
|
89
|
+
executed: true,
|
|
90
|
+
notes: drift.findings
|
|
91
|
+
.filter((f) => f.severity === 'error' || (config.requireDriftClean && f.severity === 'warning'))
|
|
92
|
+
.slice(0, 5)
|
|
93
|
+
.map((f) => `${f.severity}: ${f.category} — ${f.message}`),
|
|
94
|
+
data: {
|
|
95
|
+
errors,
|
|
96
|
+
warnings,
|
|
97
|
+
info: drift.counts.info,
|
|
98
|
+
findings: drift.findings.length,
|
|
99
|
+
},
|
|
100
|
+
});
|
|
101
|
+
}
|
|
102
|
+
catch (e) {
|
|
103
|
+
gates.push({
|
|
104
|
+
id: 'drift',
|
|
105
|
+
label: 'Drift report',
|
|
106
|
+
passed: true,
|
|
107
|
+
blocking: false,
|
|
108
|
+
runsShell: false,
|
|
109
|
+
executed: false,
|
|
110
|
+
notes: [`could not run drift report: ${e.message}`],
|
|
111
|
+
});
|
|
112
|
+
}
|
|
113
|
+
// 6. Context tests. These don't run shell — they just evaluate retrieval
|
|
114
|
+
// results against expectations.
|
|
115
|
+
try {
|
|
116
|
+
const all = await loadContextTests(inspection);
|
|
117
|
+
const results = all.map((t) => runContextTest(inspection, t));
|
|
118
|
+
const failed = results.filter((r) => !r.passed).length;
|
|
119
|
+
gates.push({
|
|
120
|
+
id: 'context-tests',
|
|
121
|
+
label: 'Context tests',
|
|
122
|
+
passed: failed === 0,
|
|
123
|
+
blocking: config.requireContextTests === true || strict,
|
|
124
|
+
runsShell: false,
|
|
125
|
+
executed: true,
|
|
126
|
+
notes: failed > 0 ? [`${failed}/${results.length} context tests failed`] : [],
|
|
127
|
+
data: { total: results.length, failed },
|
|
128
|
+
});
|
|
129
|
+
}
|
|
130
|
+
catch (e) {
|
|
131
|
+
gates.push({
|
|
132
|
+
id: 'context-tests',
|
|
133
|
+
label: 'Context tests',
|
|
134
|
+
passed: true,
|
|
135
|
+
blocking: false,
|
|
136
|
+
runsShell: false,
|
|
137
|
+
executed: false,
|
|
138
|
+
notes: [`could not load context tests: ${e.message}`],
|
|
139
|
+
});
|
|
140
|
+
}
|
|
141
|
+
// 7. Agent tests. Likewise, pure orchestration.
|
|
142
|
+
try {
|
|
143
|
+
const all = await loadAgentContractTests(inspection);
|
|
144
|
+
const results = all.map((t) => runAgentContractTest(inspection, t));
|
|
145
|
+
const failed = results.filter((r) => !r.passed).length;
|
|
146
|
+
gates.push({
|
|
147
|
+
id: 'agent-tests',
|
|
148
|
+
label: 'Agent contract tests',
|
|
149
|
+
passed: failed === 0,
|
|
150
|
+
blocking: config.requireAgentTests === true || strict,
|
|
151
|
+
runsShell: false,
|
|
152
|
+
executed: true,
|
|
153
|
+
notes: failed > 0 ? [`${failed}/${results.length} agent tests failed`] : [],
|
|
154
|
+
data: { total: results.length, failed },
|
|
155
|
+
});
|
|
156
|
+
}
|
|
157
|
+
catch (e) {
|
|
158
|
+
gates.push({
|
|
159
|
+
id: 'agent-tests',
|
|
160
|
+
label: 'Agent contract tests',
|
|
161
|
+
passed: true,
|
|
162
|
+
blocking: false,
|
|
163
|
+
runsShell: false,
|
|
164
|
+
executed: false,
|
|
165
|
+
notes: [`could not load agent tests: ${e.message}`],
|
|
166
|
+
});
|
|
167
|
+
}
|
|
168
|
+
// 8. Packs doctor. Signature verification reads files but does not exec.
|
|
169
|
+
try {
|
|
170
|
+
const report = buildPackDoctorReport(inspection, {
|
|
171
|
+
requireSignatures: config.requirePackSignatures === true,
|
|
172
|
+
});
|
|
173
|
+
gates.push({
|
|
174
|
+
id: 'packs',
|
|
175
|
+
label: 'Packs doctor',
|
|
176
|
+
passed: report.passed,
|
|
177
|
+
blocking: config.requirePackSignatures === true || strict,
|
|
178
|
+
runsShell: false,
|
|
179
|
+
executed: true,
|
|
180
|
+
notes: report.issues
|
|
181
|
+
.filter((i) => i.severity === 'error')
|
|
182
|
+
.slice(0, 5)
|
|
183
|
+
.map((i) => `${i.packageName}: ${i.message}`),
|
|
184
|
+
data: {
|
|
185
|
+
errors: report.summary.errors,
|
|
186
|
+
warnings: report.summary.warnings,
|
|
187
|
+
},
|
|
188
|
+
});
|
|
189
|
+
}
|
|
190
|
+
catch (e) {
|
|
191
|
+
gates.push({
|
|
192
|
+
id: 'packs',
|
|
193
|
+
label: 'Packs doctor',
|
|
194
|
+
passed: true,
|
|
195
|
+
blocking: false,
|
|
196
|
+
runsShell: false,
|
|
197
|
+
executed: false,
|
|
198
|
+
notes: [`could not run pack doctor: ${e.message}`],
|
|
199
|
+
});
|
|
200
|
+
}
|
|
201
|
+
// If `skipShell` were true and any gate listed runsShell=true, we'd record
|
|
202
|
+
// it as skipped here. Today every gate is pure inspection — no shell. The
|
|
203
|
+
// flag is kept so MCP callers can pre-declare the intent and future gates
|
|
204
|
+
// (e.g. a real "verification commands" gate) can honour it.
|
|
205
|
+
if (skipShell) {
|
|
206
|
+
for (const g of gates) {
|
|
207
|
+
if (g.runsShell) {
|
|
208
|
+
// Force skip: don't pretend it passed; mark not executed.
|
|
209
|
+
const idx = gates.indexOf(g);
|
|
210
|
+
gates[idx] = {
|
|
211
|
+
...g,
|
|
212
|
+
executed: false,
|
|
213
|
+
notes: [...g.notes, 'skipped: MCP does not execute shell commands. Run via CLI.'],
|
|
214
|
+
passed: false,
|
|
215
|
+
};
|
|
216
|
+
}
|
|
217
|
+
}
|
|
218
|
+
}
|
|
219
|
+
const blockers = gates.filter((g) => g.blocking && !g.passed).length;
|
|
220
|
+
const warnings = gates.filter((g) => !g.blocking && !g.passed).length;
|
|
221
|
+
const executed = gates.filter((g) => g.executed).length;
|
|
222
|
+
const passCount = gates.filter((g) => g.passed).length;
|
|
223
|
+
const score = executed > 0 ? Math.round((passCount / executed) * 100) : 100;
|
|
224
|
+
const overall = blockers > 0 ? 'fail' : warnings > 0 ? 'warn' : 'pass';
|
|
225
|
+
const nextRecommendations = buildRecommendations(gates);
|
|
226
|
+
const report = {
|
|
227
|
+
overall,
|
|
228
|
+
blockers,
|
|
229
|
+
warnings,
|
|
230
|
+
score,
|
|
231
|
+
gates,
|
|
232
|
+
nextRecommendations,
|
|
233
|
+
};
|
|
234
|
+
if (drift)
|
|
235
|
+
report.drift = drift;
|
|
236
|
+
return report;
|
|
237
|
+
}
|
|
238
|
+
function checkBoundaries(inspection) {
|
|
239
|
+
const rules = inspection.boundaryRegistry.list();
|
|
240
|
+
if (rules.length === 0) {
|
|
241
|
+
return { errors: 0, warnings: 0, notes: ['no boundary rules configured'] };
|
|
242
|
+
}
|
|
243
|
+
try {
|
|
244
|
+
const scan = scanImports({ projectRoot: inspection.projectRoot });
|
|
245
|
+
const tsconfigPaths = loadTsconfigPaths(inspection.projectRoot);
|
|
246
|
+
const evalResult = evaluateBoundaries(scan, rules, {
|
|
247
|
+
...(tsconfigPaths.aliases.size > 0 ? { tsconfigPaths } : {}),
|
|
248
|
+
});
|
|
249
|
+
return {
|
|
250
|
+
errors: evalResult.counts.error,
|
|
251
|
+
warnings: evalResult.counts.warning,
|
|
252
|
+
notes: evalResult.violations
|
|
253
|
+
.slice(0, 5)
|
|
254
|
+
.map((v) => `${v.severity}: ${v.file}:${v.line} → ${v.importSpecifier}`),
|
|
255
|
+
};
|
|
256
|
+
}
|
|
257
|
+
catch (e) {
|
|
258
|
+
return { errors: 0, warnings: 0, notes: [`boundary scan failed: ${e.message}`] };
|
|
259
|
+
}
|
|
260
|
+
}
|
|
261
|
+
function buildRecommendations(gates) {
|
|
262
|
+
const out = [];
|
|
263
|
+
for (const g of gates) {
|
|
264
|
+
if (g.passed)
|
|
265
|
+
continue;
|
|
266
|
+
switch (g.id) {
|
|
267
|
+
case 'doctor':
|
|
268
|
+
out.push('Run `shrk doctor` and fix the errors before opening a PR.');
|
|
269
|
+
break;
|
|
270
|
+
case 'readiness':
|
|
271
|
+
out.push('Improve AI readiness — `shrk coverage` to see missing dimensions.');
|
|
272
|
+
break;
|
|
273
|
+
case 'boundaries':
|
|
274
|
+
out.push('Run `shrk check boundaries` to inspect cross-layer imports.');
|
|
275
|
+
break;
|
|
276
|
+
case 'coverage':
|
|
277
|
+
out.push('Run `shrk coverage` to see what knowledge axes are missing.');
|
|
278
|
+
break;
|
|
279
|
+
case 'drift':
|
|
280
|
+
out.push('Run `shrk drift --json` to inspect drift findings in detail.');
|
|
281
|
+
break;
|
|
282
|
+
case 'context-tests':
|
|
283
|
+
out.push('Run `shrk test context` to inspect failing retrieval contracts.');
|
|
284
|
+
break;
|
|
285
|
+
case 'agent-tests':
|
|
286
|
+
out.push('Run `shrk test agent` to inspect failing task-packet contracts.');
|
|
287
|
+
break;
|
|
288
|
+
case 'packs':
|
|
289
|
+
out.push('Run `shrk packs doctor --require-signatures` to inspect pack issues.');
|
|
290
|
+
break;
|
|
291
|
+
default:
|
|
292
|
+
break;
|
|
293
|
+
}
|
|
294
|
+
}
|
|
295
|
+
return out;
|
|
296
|
+
}
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
import type { ISharkcraftInspection } from './sharkcraft-inspector.js';
|
|
2
|
+
export declare const QUERY_RESOLUTION_SCHEMA = "sharkcraft.query-resolution/v1";
|
|
3
|
+
export declare enum QueryMatchKind {
|
|
4
|
+
File = "file",
|
|
5
|
+
Construct = "construct",
|
|
6
|
+
Knowledge = "knowledge",
|
|
7
|
+
Template = "template",
|
|
8
|
+
Helper = "helper",
|
|
9
|
+
Playbook = "playbook",
|
|
10
|
+
Policy = "policy",
|
|
11
|
+
Command = "command",
|
|
12
|
+
Symbol = "symbol",
|
|
13
|
+
PluginKey = "plugin-key",
|
|
14
|
+
EventToken = "event-token",
|
|
15
|
+
DIToken = "di-token"
|
|
16
|
+
}
|
|
17
|
+
export interface IQueryMatch {
|
|
18
|
+
kind: QueryMatchKind;
|
|
19
|
+
id: string;
|
|
20
|
+
label: string;
|
|
21
|
+
score: number;
|
|
22
|
+
reason: string;
|
|
23
|
+
}
|
|
24
|
+
export interface IQueryResolution {
|
|
25
|
+
schema: typeof QUERY_RESOLUTION_SCHEMA;
|
|
26
|
+
query: string;
|
|
27
|
+
bestMatch?: IQueryMatch;
|
|
28
|
+
alternatives: ReadonlyArray<IQueryMatch>;
|
|
29
|
+
confidence: 'exact' | 'high' | 'medium' | 'low' | 'unknown';
|
|
30
|
+
}
|
|
31
|
+
export interface IQueryResolveOptions {
|
|
32
|
+
/** Limit number of alternatives returned. */
|
|
33
|
+
limit?: number;
|
|
34
|
+
/** Restrict to a subset of match kinds. */
|
|
35
|
+
kinds?: ReadonlyArray<QueryMatchKind>;
|
|
36
|
+
}
|
|
37
|
+
export declare function resolveQuery(inspection: ISharkcraftInspection, query: string, options?: IQueryResolveOptions): IQueryResolution;
|
|
38
|
+
//# sourceMappingURL=query-resolver.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"query-resolver.d.ts","sourceRoot":"","sources":["../src/query-resolver.ts"],"names":[],"mappings":"AAaA,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,2BAA2B,CAAC;AAGvE,eAAO,MAAM,uBAAuB,mCAAmC,CAAC;AAExE,oBAAY,cAAc;IACxB,IAAI,SAAS;IACb,SAAS,cAAc;IACvB,SAAS,cAAc;IACvB,QAAQ,aAAa;IACrB,MAAM,WAAW;IACjB,QAAQ,aAAa;IACrB,MAAM,WAAW;IACjB,OAAO,YAAY;IACnB,MAAM,WAAW;IACjB,SAAS,eAAe;IACxB,UAAU,gBAAgB;IAC1B,OAAO,aAAa;CACrB;AAED,MAAM,WAAW,WAAW;IAC1B,IAAI,EAAE,cAAc,CAAC;IACrB,EAAE,EAAE,MAAM,CAAC;IACX,KAAK,EAAE,MAAM,CAAC;IACd,KAAK,EAAE,MAAM,CAAC;IACd,MAAM,EAAE,MAAM,CAAC;CAChB;AAED,MAAM,WAAW,gBAAgB;IAC/B,MAAM,EAAE,OAAO,uBAAuB,CAAC;IACvC,KAAK,EAAE,MAAM,CAAC;IACd,SAAS,CAAC,EAAE,WAAW,CAAC;IACxB,YAAY,EAAE,aAAa,CAAC,WAAW,CAAC,CAAC;IACzC,UAAU,EAAE,OAAO,GAAG,MAAM,GAAG,QAAQ,GAAG,KAAK,GAAG,SAAS,CAAC;CAC7D;AAED,MAAM,WAAW,oBAAoB;IACnC,6CAA6C;IAC7C,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,2CAA2C;IAC3C,KAAK,CAAC,EAAE,aAAa,CAAC,cAAc,CAAC,CAAC;CACvC;AAoID,wBAAgB,YAAY,CAC1B,UAAU,EAAE,qBAAqB,EACjC,KAAK,EAAE,MAAM,EACb,OAAO,GAAE,oBAAyB,GACjC,gBAAgB,CA8BlB"}
|
|
@@ -0,0 +1,163 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Query resolver for fuzzy trace / impact.
|
|
3
|
+
*
|
|
4
|
+
* Resolves a free-form query against multiple registries — files,
|
|
5
|
+
* constructs, knowledge entries, templates, helpers, playbooks,
|
|
6
|
+
* policies, commands, and best-effort symbol matches. The caller decides
|
|
7
|
+
* how to render the result; this module returns the structured match set
|
|
8
|
+
* plus a confidence rating.
|
|
9
|
+
*
|
|
10
|
+
* Schema: sharkcraft.query-resolution/v1
|
|
11
|
+
*/
|
|
12
|
+
import { existsSync } from 'node:fs';
|
|
13
|
+
import * as nodePath from 'node:path';
|
|
14
|
+
import { HELPERS } from "./helper-registry.js";
|
|
15
|
+
export const QUERY_RESOLUTION_SCHEMA = 'sharkcraft.query-resolution/v1';
|
|
16
|
+
export var QueryMatchKind;
|
|
17
|
+
(function (QueryMatchKind) {
|
|
18
|
+
QueryMatchKind["File"] = "file";
|
|
19
|
+
QueryMatchKind["Construct"] = "construct";
|
|
20
|
+
QueryMatchKind["Knowledge"] = "knowledge";
|
|
21
|
+
QueryMatchKind["Template"] = "template";
|
|
22
|
+
QueryMatchKind["Helper"] = "helper";
|
|
23
|
+
QueryMatchKind["Playbook"] = "playbook";
|
|
24
|
+
QueryMatchKind["Policy"] = "policy";
|
|
25
|
+
QueryMatchKind["Command"] = "command";
|
|
26
|
+
QueryMatchKind["Symbol"] = "symbol";
|
|
27
|
+
QueryMatchKind["PluginKey"] = "plugin-key";
|
|
28
|
+
QueryMatchKind["EventToken"] = "event-token";
|
|
29
|
+
QueryMatchKind["DIToken"] = "di-token";
|
|
30
|
+
})(QueryMatchKind || (QueryMatchKind = {}));
|
|
31
|
+
function normalize(s) {
|
|
32
|
+
return s.toLowerCase().trim();
|
|
33
|
+
}
|
|
34
|
+
function scoreText(haystack, query) {
|
|
35
|
+
if (!haystack)
|
|
36
|
+
return 0;
|
|
37
|
+
const h = normalize(haystack);
|
|
38
|
+
const q = normalize(query);
|
|
39
|
+
if (!q)
|
|
40
|
+
return 0;
|
|
41
|
+
if (h === q)
|
|
42
|
+
return 100;
|
|
43
|
+
if (h.startsWith(q))
|
|
44
|
+
return 80;
|
|
45
|
+
if (h.endsWith(q))
|
|
46
|
+
return 70;
|
|
47
|
+
if (h.includes(q))
|
|
48
|
+
return 60;
|
|
49
|
+
// token overlap
|
|
50
|
+
const hTokens = new Set(h.split(/[^a-z0-9]+/).filter(Boolean));
|
|
51
|
+
const qTokens = q.split(/[^a-z0-9]+/).filter(Boolean);
|
|
52
|
+
let overlap = 0;
|
|
53
|
+
for (const t of qTokens)
|
|
54
|
+
if (hTokens.has(t))
|
|
55
|
+
overlap += 1;
|
|
56
|
+
if (overlap === 0)
|
|
57
|
+
return 0;
|
|
58
|
+
return Math.min(50, 10 + overlap * 10);
|
|
59
|
+
}
|
|
60
|
+
function fileMatches(query, projectRoot) {
|
|
61
|
+
// If `query` looks like a path AND the file exists, mark exact.
|
|
62
|
+
if (query.includes('/') || query.includes('.')) {
|
|
63
|
+
if (existsSync(nodePath.join(projectRoot, query))) {
|
|
64
|
+
return {
|
|
65
|
+
kind: QueryMatchKind.File,
|
|
66
|
+
id: query,
|
|
67
|
+
label: query,
|
|
68
|
+
score: 100,
|
|
69
|
+
reason: 'file path exists',
|
|
70
|
+
};
|
|
71
|
+
}
|
|
72
|
+
}
|
|
73
|
+
return null;
|
|
74
|
+
}
|
|
75
|
+
function getList(obj, fnName) {
|
|
76
|
+
const reg = obj;
|
|
77
|
+
if (typeof reg?.[fnName] === 'function') {
|
|
78
|
+
try {
|
|
79
|
+
return reg[fnName]();
|
|
80
|
+
}
|
|
81
|
+
catch {
|
|
82
|
+
return [];
|
|
83
|
+
}
|
|
84
|
+
}
|
|
85
|
+
return [];
|
|
86
|
+
}
|
|
87
|
+
function rankList(list, query, kind, reason = (t) => `${kind} id matched`) {
|
|
88
|
+
const out = [];
|
|
89
|
+
for (const item of list) {
|
|
90
|
+
const idScore = scoreText(item.id, query);
|
|
91
|
+
const nameScore = Math.max(scoreText(item.name ?? '', query), scoreText(item.title ?? '', query));
|
|
92
|
+
const score = Math.max(idScore, nameScore * 0.9);
|
|
93
|
+
if (score >= 10) {
|
|
94
|
+
out.push({
|
|
95
|
+
kind,
|
|
96
|
+
id: item.id,
|
|
97
|
+
label: item.name ?? item.title ?? item.id,
|
|
98
|
+
score,
|
|
99
|
+
reason: reason(item),
|
|
100
|
+
});
|
|
101
|
+
}
|
|
102
|
+
}
|
|
103
|
+
return out;
|
|
104
|
+
}
|
|
105
|
+
function rankConstructs(inspection, query) {
|
|
106
|
+
const reg = inspection.constructRegistry;
|
|
107
|
+
const list = getList(reg, 'list');
|
|
108
|
+
return rankList(list, query, QueryMatchKind.Construct);
|
|
109
|
+
}
|
|
110
|
+
function rankKnowledge(inspection, query) {
|
|
111
|
+
return rankList(inspection.knowledgeEntries.map((e) => ({ id: e.id, title: e.title })), query, QueryMatchKind.Knowledge);
|
|
112
|
+
}
|
|
113
|
+
function rankTemplates(inspection, query) {
|
|
114
|
+
return rankList(inspection.templates.map((t) => ({ id: t.id, name: t.name })), query, QueryMatchKind.Template);
|
|
115
|
+
}
|
|
116
|
+
function rankHelpers(query) {
|
|
117
|
+
return rankList(HELPERS, query, QueryMatchKind.Helper);
|
|
118
|
+
}
|
|
119
|
+
function rankPlaybooks(inspection, query) {
|
|
120
|
+
const reg = inspection.playbookRegistry;
|
|
121
|
+
const list = getList(reg, 'list');
|
|
122
|
+
return rankList(list, query, QueryMatchKind.Playbook);
|
|
123
|
+
}
|
|
124
|
+
function rankPolicies(inspection, query) {
|
|
125
|
+
const checks = inspection.policyChecks ?? [];
|
|
126
|
+
return rankList(checks, query, QueryMatchKind.Policy);
|
|
127
|
+
}
|
|
128
|
+
function rankCommands(inspection, query) {
|
|
129
|
+
const cat = inspection.commandCatalog ?? [];
|
|
130
|
+
return rankList(cat, query, QueryMatchKind.Command);
|
|
131
|
+
}
|
|
132
|
+
function pickConfidence(top) {
|
|
133
|
+
if (!top)
|
|
134
|
+
return 'unknown';
|
|
135
|
+
if (top.score >= 95)
|
|
136
|
+
return 'exact';
|
|
137
|
+
if (top.score >= 70)
|
|
138
|
+
return 'high';
|
|
139
|
+
if (top.score >= 40)
|
|
140
|
+
return 'medium';
|
|
141
|
+
return 'low';
|
|
142
|
+
}
|
|
143
|
+
export function resolveQuery(inspection, query, options = {}) {
|
|
144
|
+
const matches = [];
|
|
145
|
+
// 1) file path → exact match wins.
|
|
146
|
+
const file = fileMatches(query, inspection.projectRoot);
|
|
147
|
+
if (file)
|
|
148
|
+
matches.push(file);
|
|
149
|
+
matches.push(...rankConstructs(inspection, query), ...rankKnowledge(inspection, query), ...rankTemplates(inspection, query), ...rankHelpers(query), ...rankPlaybooks(inspection, query), ...rankPolicies(inspection, query), ...rankCommands(inspection, query));
|
|
150
|
+
const filtered = options.kinds && options.kinds.length > 0
|
|
151
|
+
? matches.filter((m) => options.kinds.includes(m.kind))
|
|
152
|
+
: matches;
|
|
153
|
+
filtered.sort((a, b) => b.score - a.score);
|
|
154
|
+
const limit = options.limit ?? 10;
|
|
155
|
+
const top = filtered[0];
|
|
156
|
+
return {
|
|
157
|
+
schema: QUERY_RESOLUTION_SCHEMA,
|
|
158
|
+
query,
|
|
159
|
+
...(top ? { bestMatch: top } : {}),
|
|
160
|
+
alternatives: filtered.slice(1, limit + 1),
|
|
161
|
+
confidence: pickConfidence(top),
|
|
162
|
+
};
|
|
163
|
+
}
|
|
@@ -0,0 +1,91 @@
|
|
|
1
|
+
import type { ISharkcraftInspection } from './sharkcraft-inspector.js';
|
|
2
|
+
export declare const RANKER_EXPLAINABILITY_SCHEMA = "sharkcraft.ranker-explainability/v1";
|
|
3
|
+
export declare enum RankerExplainKind {
|
|
4
|
+
Knowledge = "knowledge",
|
|
5
|
+
Template = "template",
|
|
6
|
+
Rule = "rule",
|
|
7
|
+
Helper = "helper",
|
|
8
|
+
Playbook = "playbook",
|
|
9
|
+
Construct = "construct",
|
|
10
|
+
Policy = "policy",
|
|
11
|
+
Command = "command",
|
|
12
|
+
Path = "path",
|
|
13
|
+
Preset = "preset",
|
|
14
|
+
Pipeline = "pipeline"
|
|
15
|
+
}
|
|
16
|
+
export interface IRankerExplainRequest {
|
|
17
|
+
/** Target id to explain. Required. */
|
|
18
|
+
id: string;
|
|
19
|
+
/** Either a task or a query — at least one. */
|
|
20
|
+
task?: string;
|
|
21
|
+
query?: string;
|
|
22
|
+
/** Optional kind hint. */
|
|
23
|
+
kind?: RankerExplainKind;
|
|
24
|
+
}
|
|
25
|
+
export interface IRankerOutrankedBy {
|
|
26
|
+
id: string;
|
|
27
|
+
kind: string;
|
|
28
|
+
score: number;
|
|
29
|
+
/** First few reasons surfaced by the ranker. */
|
|
30
|
+
reasons: readonly string[];
|
|
31
|
+
}
|
|
32
|
+
export interface IRankerExplainNearestId {
|
|
33
|
+
id: string;
|
|
34
|
+
kind: string;
|
|
35
|
+
/** Edit-distance / similarity. Lower is closer. */
|
|
36
|
+
distance: number;
|
|
37
|
+
}
|
|
38
|
+
export interface IRankerExplainSignal {
|
|
39
|
+
signal: string;
|
|
40
|
+
matched: boolean;
|
|
41
|
+
detail?: string;
|
|
42
|
+
}
|
|
43
|
+
export interface IRankerExplainTuningTrace {
|
|
44
|
+
tuningId: string;
|
|
45
|
+
reasons: readonly string[];
|
|
46
|
+
delta: number;
|
|
47
|
+
}
|
|
48
|
+
export interface IRankerExplainReport {
|
|
49
|
+
schema: typeof RANKER_EXPLAINABILITY_SCHEMA;
|
|
50
|
+
generatedAt: string;
|
|
51
|
+
request: IRankerExplainRequest;
|
|
52
|
+
/** Whether the id was found in any registry. */
|
|
53
|
+
found: boolean;
|
|
54
|
+
/** Detected registry/kind when found. */
|
|
55
|
+
resolvedKind?: string;
|
|
56
|
+
/** Whether the entry was included in the rendered top-N when ranking for the given task. */
|
|
57
|
+
included: boolean;
|
|
58
|
+
/** Position in the top-N (1-based) when included; undefined otherwise. */
|
|
59
|
+
rank?: number;
|
|
60
|
+
/** Final score (post-tuning where applicable). */
|
|
61
|
+
score?: number;
|
|
62
|
+
/** Threshold the entry would have to clear to make the top-N for this task. */
|
|
63
|
+
threshold?: number;
|
|
64
|
+
/** Signals that matched (e.g. token hits, domain tags, appliesWhen, …). */
|
|
65
|
+
matchedSignals: readonly IRankerExplainSignal[];
|
|
66
|
+
/** Signals that did NOT match (i.e. what the entry is missing to rank higher). */
|
|
67
|
+
missingSignals: readonly IRankerExplainSignal[];
|
|
68
|
+
/** Items that outranked the target for this task. */
|
|
69
|
+
outrankedBy: readonly IRankerOutrankedBy[];
|
|
70
|
+
/** Tuning trace (which tuning entries touched this id and by how much). */
|
|
71
|
+
tuningTrace: readonly IRankerExplainTuningTrace[];
|
|
72
|
+
/** Suggested metadata fixes — concrete editorial guidance. */
|
|
73
|
+
suggestedMetadataFixes: readonly string[];
|
|
74
|
+
/** Suggested follow-up commands. */
|
|
75
|
+
suggestedCommands: readonly string[];
|
|
76
|
+
/** Nearest ids (used when the target id is missing entirely). */
|
|
77
|
+
nearestIds: readonly IRankerExplainNearestId[];
|
|
78
|
+
/** Free-form diagnostics. */
|
|
79
|
+
diagnostics: readonly string[];
|
|
80
|
+
}
|
|
81
|
+
export interface IExplainRankerOptions {
|
|
82
|
+
/** If true, return why-not behaviour. */
|
|
83
|
+
whyNot?: boolean;
|
|
84
|
+
/** Top-N considered for ranking. Default 10. */
|
|
85
|
+
topN?: number;
|
|
86
|
+
}
|
|
87
|
+
export declare function explainRankerDecision(inspection: ISharkcraftInspection, request: IRankerExplainRequest, options?: IExplainRankerOptions): IRankerExplainReport;
|
|
88
|
+
export declare function renderRankerExplainText(report: IRankerExplainReport, whyNot: boolean): string;
|
|
89
|
+
export declare function renderRankerExplainMarkdown(report: IRankerExplainReport, whyNot: boolean): string;
|
|
90
|
+
export declare function renderRankerExplainHtml(report: IRankerExplainReport, whyNot: boolean): string;
|
|
91
|
+
//# sourceMappingURL=ranker-explainability.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ranker-explainability.d.ts","sourceRoot":"","sources":["../src/ranker-explainability.ts"],"names":[],"mappings":"AA6BA,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,2BAA2B,CAAC;AAEvE,eAAO,MAAM,4BAA4B,wCAAwC,CAAC;AAElF,oBAAY,iBAAiB;IAC3B,SAAS,cAAc;IACvB,QAAQ,aAAa;IACrB,IAAI,SAAS;IACb,MAAM,WAAW;IACjB,QAAQ,aAAa;IACrB,SAAS,cAAc;IACvB,MAAM,WAAW;IACjB,OAAO,YAAY;IACnB,IAAI,SAAS;IACb,MAAM,WAAW;IACjB,QAAQ,aAAa;CACtB;AAED,MAAM,WAAW,qBAAqB;IACpC,sCAAsC;IACtC,EAAE,EAAE,MAAM,CAAC;IACX,+CAA+C;IAC/C,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,0BAA0B;IAC1B,IAAI,CAAC,EAAE,iBAAiB,CAAC;CAC1B;AAED,MAAM,WAAW,kBAAkB;IACjC,EAAE,EAAE,MAAM,CAAC;IACX,IAAI,EAAE,MAAM,CAAC;IACb,KAAK,EAAE,MAAM,CAAC;IACd,gDAAgD;IAChD,OAAO,EAAE,SAAS,MAAM,EAAE,CAAC;CAC5B;AAED,MAAM,WAAW,uBAAuB;IACtC,EAAE,EAAE,MAAM,CAAC;IACX,IAAI,EAAE,MAAM,CAAC;IACb,mDAAmD;IACnD,QAAQ,EAAE,MAAM,CAAC;CAClB;AAED,MAAM,WAAW,oBAAoB;IACnC,MAAM,EAAE,MAAM,CAAC;IACf,OAAO,EAAE,OAAO,CAAC;IACjB,MAAM,CAAC,EAAE,MAAM,CAAC;CACjB;AAED,MAAM,WAAW,yBAAyB;IACxC,QAAQ,EAAE,MAAM,CAAC;IACjB,OAAO,EAAE,SAAS,MAAM,EAAE,CAAC;IAC3B,KAAK,EAAE,MAAM,CAAC;CACf;AAED,MAAM,WAAW,oBAAoB;IACnC,MAAM,EAAE,OAAO,4BAA4B,CAAC;IAC5C,WAAW,EAAE,MAAM,CAAC;IACpB,OAAO,EAAE,qBAAqB,CAAC;IAC/B,gDAAgD;IAChD,KAAK,EAAE,OAAO,CAAC;IACf,yCAAyC;IACzC,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,4FAA4F;IAC5F,QAAQ,EAAE,OAAO,CAAC;IAClB,0EAA0E;IAC1E,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,kDAAkD;IAClD,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,+EAA+E;IAC/E,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,2EAA2E;IAC3E,cAAc,EAAE,SAAS,oBAAoB,EAAE,CAAC;IAChD,kFAAkF;IAClF,cAAc,EAAE,SAAS,oBAAoB,EAAE,CAAC;IAChD,qDAAqD;IACrD,WAAW,EAAE,SAAS,kBAAkB,EAAE,CAAC;IAC3C,2EAA2E;IAC3E,WAAW,EAAE,SAAS,yBAAyB,EAAE,CAAC;IAClD,8DAA8D;IAC9D,sBAAsB,EAAE,SAAS,MAAM,EAAE,CAAC;IAC1C,oCAAoC;IACpC,iBAAiB,EAAE,SAAS,MAAM,EAAE,CAAC;IACrC,iEAAiE;IACjE,UAAU,EAAE,SAAS,uBAAuB,EAAE,CAAC;IAC/C,6BAA6B;IAC7B,WAAW,EAAE,SAAS,MAAM,EAAE,CAAC;CAChC;AA6RD,MAAM,WAAW,qBAAqB;IACpC,yCAAyC;IACzC,MAAM,CAAC,EAAE,OAAO,CAAC;IACjB,gDAAgD;IAChD,IAAI,CAAC,EAAE,MAAM,CAAC;CACf;AAED,wBAAgB,qBAAqB,CACnC,UAAU,EAAE,qBAAqB,EACjC,OAAO,EAAE,qBAAqB,EAC9B,OAAO,GAAE,qBAA0B,GAClC,oBAAoB,CA+GtB;AAID,wBAAgB,uBAAuB,CAAC,MAAM,EAAE,oBAAoB,EAAE,MAAM,EAAE,OAAO,GAAG,MAAM,CA+D7F;AAMD,wBAAgB,2BAA2B,CAAC,MAAM,EAAE,oBAAoB,EAAE,MAAM,EAAE,OAAO,GAAG,MAAM,CA4DjG;AAED,wBAAgB,uBAAuB,CAAC,MAAM,EAAE,oBAAoB,EAAE,MAAM,EAAE,OAAO,GAAG,MAAM,CAS7F"}
|