@shrkcrft/inspector 0.1.0-alpha.29 → 0.1.0-alpha.31
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/acceptance-replay.js +1 -1
- package/dist/agent-contract-templates.js +6 -6
- package/dist/agent-contract.d.ts.map +1 -1
- package/dist/agent-contract.js +13 -8
- package/dist/agent-orchestration.js +2 -2
- package/dist/agent-task-prep.d.ts +16 -0
- package/dist/agent-task-prep.d.ts.map +1 -1
- package/dist/agent-task-prep.js +51 -4
- package/dist/ai-readiness.d.ts.map +1 -1
- package/dist/ai-readiness.js +21 -3
- package/dist/architecture-map.d.ts +16 -0
- package/dist/architecture-map.d.ts.map +1 -1
- package/dist/architecture-map.js +42 -26
- package/dist/area-explore.d.ts +2 -2
- package/dist/area-explore.d.ts.map +1 -1
- package/dist/area-explore.js +36 -16
- package/dist/area-map.d.ts +56 -11
- package/dist/area-map.d.ts.map +1 -1
- package/dist/area-map.js +106 -25
- package/dist/asset-doctor-proposed-exit.d.ts +21 -0
- package/dist/asset-doctor-proposed-exit.d.ts.map +1 -0
- package/dist/asset-doctor-proposed-exit.js +22 -0
- package/dist/asset-provenance.js +1 -1
- package/dist/boundaries-changed-only.d.ts +24 -1
- package/dist/boundaries-changed-only.d.ts.map +1 -1
- package/dist/boundaries-changed-only.js +12 -2
- package/dist/boundary-check-options.model.d.ts +40 -0
- package/dist/boundary-check-options.model.d.ts.map +1 -0
- package/dist/boundary-check-options.model.js +1 -0
- package/dist/boundary-check-result.model.d.ts +89 -0
- package/dist/boundary-check-result.model.d.ts.map +1 -0
- package/dist/boundary-check-result.model.js +1 -0
- package/dist/boundary-configuration-status.d.ts +38 -0
- package/dist/boundary-configuration-status.d.ts.map +1 -0
- package/dist/boundary-configuration-status.js +118 -0
- package/dist/boundary-configuration-status.model.d.ts +37 -0
- package/dist/boundary-configuration-status.model.d.ts.map +1 -0
- package/dist/boundary-configuration-status.model.js +1 -0
- package/dist/boundary-load-issue.model.d.ts +30 -0
- package/dist/boundary-load-issue.model.d.ts.map +1 -0
- package/dist/boundary-load-issue.model.js +1 -0
- package/dist/boundary-rule-check.model.d.ts +44 -0
- package/dist/boundary-rule-check.model.d.ts.map +1 -0
- package/dist/boundary-rule-check.model.js +1 -0
- package/dist/boundary-rule-invalidation.model.d.ts +31 -0
- package/dist/boundary-rule-invalidation.model.d.ts.map +1 -0
- package/dist/boundary-rule-invalidation.model.js +1 -0
- package/dist/boundary-rule-set-diff.model.d.ts +75 -0
- package/dist/boundary-rule-set-diff.model.d.ts.map +1 -0
- package/dist/boundary-rule-set-diff.model.js +1 -0
- package/dist/boundary-rule-sources.d.ts +28 -0
- package/dist/boundary-rule-sources.d.ts.map +1 -0
- package/dist/boundary-rule-sources.js +110 -0
- package/dist/boundary-stale-exception-finding.model.d.ts +12 -0
- package/dist/boundary-stale-exception-finding.model.d.ts.map +1 -0
- package/dist/boundary-stale-exception-finding.model.js +1 -0
- package/dist/boundary-unit-liveness.d.ts +35 -0
- package/dist/boundary-unit-liveness.d.ts.map +1 -0
- package/dist/boundary-unit-liveness.js +71 -0
- package/dist/change-intent.d.ts +3 -0
- package/dist/change-intent.d.ts.map +1 -1
- package/dist/change-intent.js +61 -27
- package/dist/changes-summary.d.ts.map +1 -1
- package/dist/changes-summary.js +19 -9
- package/dist/ci-integrity-report.js +1 -1
- package/dist/ci-predict.d.ts.map +1 -1
- package/dist/ci-predict.js +38 -5
- package/dist/code-intelligence-doctor.d.ts +40 -0
- package/dist/code-intelligence-doctor.d.ts.map +1 -1
- package/dist/code-intelligence-doctor.js +86 -12
- package/dist/command-recommender.d.ts +45 -2
- package/dist/command-recommender.d.ts.map +1 -1
- package/dist/command-recommender.js +41 -263
- package/dist/command-resolution-status.d.ts +44 -0
- package/dist/command-resolution-status.d.ts.map +1 -0
- package/dist/command-resolution-status.js +44 -0
- package/dist/command-safety-level.d.ts +15 -0
- package/dist/command-safety-level.d.ts.map +1 -0
- package/dist/command-safety-level.js +43 -0
- package/dist/command-taxonomy.js +1 -1
- package/dist/compliance-evidence.js +1 -1
- package/dist/compliance-profiles.js +1 -1
- package/dist/construct-registry.d.ts +40 -0
- package/dist/construct-registry.d.ts.map +1 -1
- package/dist/construct-registry.js +186 -82
- package/dist/context-tuning.d.ts +4 -0
- package/dist/context-tuning.d.ts.map +1 -1
- package/dist/context-tuning.js +10 -7
- package/dist/contract-template-registry.d.ts +10 -0
- package/dist/contract-template-registry.d.ts.map +1 -1
- package/dist/contract-template-registry.js +59 -33
- package/dist/contribution-kind.d.ts +52 -0
- package/dist/contribution-kind.d.ts.map +1 -0
- package/dist/contribution-kind.js +52 -0
- package/dist/contribution-load-failures.d.ts +106 -0
- package/dist/contribution-load-failures.d.ts.map +1 -0
- package/dist/contribution-load-failures.js +575 -0
- package/dist/contributions-report.d.ts +28 -0
- package/dist/contributions-report.d.ts.map +1 -0
- package/dist/contributions-report.js +242 -0
- package/dist/convention-registry.d.ts +22 -0
- package/dist/convention-registry.d.ts.map +1 -1
- package/dist/convention-registry.js +79 -39
- package/dist/coverage-report.d.ts.map +1 -1
- package/dist/coverage-report.js +6 -6
- package/dist/custom-checks.d.ts +60 -1
- package/dist/custom-checks.d.ts.map +1 -1
- package/dist/custom-checks.js +159 -6
- package/dist/dashboard/dashboard-data.d.ts +6 -0
- package/dist/dashboard/dashboard-data.d.ts.map +1 -1
- package/dist/dashboard/dashboard-data.js +99 -8
- package/dist/dashboard/dashboard-knowledge.d.ts.map +1 -1
- package/dist/dashboard/dashboard-knowledge.js +14 -2
- package/dist/decision-records.d.ts +20 -0
- package/dist/decision-records.d.ts.map +1 -1
- package/dist/decision-records.js +68 -20
- package/dist/declared-cross-references.d.ts +61 -0
- package/dist/declared-cross-references.d.ts.map +1 -0
- package/dist/declared-cross-references.js +550 -0
- package/dist/declared-gate-plane-rules.d.ts +24 -0
- package/dist/declared-gate-plane-rules.d.ts.map +1 -0
- package/dist/declared-gate-plane-rules.js +39 -0
- package/dist/declared-reference-coverage.d.ts +27 -0
- package/dist/declared-reference-coverage.d.ts.map +1 -0
- package/dist/declared-reference-coverage.js +50 -0
- package/dist/declared-xref-status.d.ts +19 -0
- package/dist/declared-xref-status.d.ts.map +1 -0
- package/dist/declared-xref-status.js +19 -0
- package/dist/delegate-pack-recipes.d.ts +13 -2
- package/dist/delegate-pack-recipes.d.ts.map +1 -1
- package/dist/delegate-pack-recipes.js +45 -14
- package/dist/demo-package.js +2 -2
- package/dist/demo-script.js +2 -2
- package/dist/demo-workflow.js +3 -3
- package/dist/dev-cycle.js +1 -1
- package/dist/dev-session.js +1 -1
- package/dist/doc-references.d.ts +80 -0
- package/dist/doc-references.d.ts.map +1 -0
- package/dist/doc-references.js +269 -0
- package/dist/doctor-result.d.ts +8 -0
- package/dist/doctor-result.d.ts.map +1 -1
- package/dist/doctor-verdict-kind.d.ts +19 -0
- package/dist/doctor-verdict-kind.d.ts.map +1 -0
- package/dist/doctor-verdict-kind.js +19 -0
- package/dist/doctor-verdict.d.ts +18 -0
- package/dist/doctor-verdict.d.ts.map +1 -0
- package/dist/doctor-verdict.js +28 -0
- package/dist/drift.d.ts +17 -0
- package/dist/drift.d.ts.map +1 -1
- package/dist/drift.js +40 -10
- package/dist/entrypoint-matrix.d.ts.map +1 -1
- package/dist/entrypoint-matrix.js +4 -1
- package/dist/feedback-ingestion.d.ts +28 -2
- package/dist/feedback-ingestion.d.ts.map +1 -1
- package/dist/feedback-ingestion.js +68 -19
- package/dist/fix-preview.d.ts.map +1 -1
- package/dist/fix-preview.js +9 -5
- package/dist/framework-extractor-outcomes.d.ts +27 -0
- package/dist/framework-extractor-outcomes.d.ts.map +1 -0
- package/dist/framework-extractor-outcomes.js +83 -0
- package/dist/fuzzy-impact.d.ts.map +1 -1
- package/dist/fuzzy-impact.js +12 -21
- package/dist/healing-plan.d.ts.map +1 -1
- package/dist/healing-plan.js +3 -4
- package/dist/helper-catalog.d.ts +25 -0
- package/dist/helper-catalog.d.ts.map +1 -0
- package/dist/helper-catalog.js +91 -0
- package/dist/helper-registry.d.ts.map +1 -1
- package/dist/helper-registry.js +17 -1
- package/dist/helper-view.d.ts +33 -0
- package/dist/helper-view.d.ts.map +1 -0
- package/dist/helper-view.js +1 -0
- package/dist/i-asset-doctor-flags.d.ts +16 -0
- package/dist/i-asset-doctor-flags.d.ts.map +1 -0
- package/dist/i-asset-doctor-flags.js +1 -0
- package/dist/i-command-resolution.d.ts +22 -0
- package/dist/i-command-resolution.d.ts.map +1 -0
- package/dist/i-command-resolution.js +1 -0
- package/dist/i-command-resolve-options.d.ts +24 -0
- package/dist/i-command-resolve-options.d.ts.map +1 -0
- package/dist/i-command-resolve-options.js +1 -0
- package/dist/i-command-safety.d.ts +13 -0
- package/dist/i-command-safety.d.ts.map +1 -0
- package/dist/i-command-safety.js +1 -0
- package/dist/i-contribution-accepted-entry.d.ts +18 -0
- package/dist/i-contribution-accepted-entry.d.ts.map +1 -0
- package/dist/i-contribution-accepted-entry.js +1 -0
- package/dist/i-contribution-entry-rejection.d.ts +21 -0
- package/dist/i-contribution-entry-rejection.d.ts.map +1 -0
- package/dist/i-contribution-entry-rejection.js +1 -0
- package/dist/i-contribution-file-issue.d.ts +18 -0
- package/dist/i-contribution-file-issue.d.ts.map +1 -0
- package/dist/i-contribution-file-issue.js +1 -0
- package/dist/i-contribution-file-report.d.ts +40 -0
- package/dist/i-contribution-file-report.d.ts.map +1 -0
- package/dist/i-contribution-file-report.js +1 -0
- package/dist/i-contribution-file-validation.d.ts +24 -0
- package/dist/i-contribution-file-validation.d.ts.map +1 -0
- package/dist/i-contribution-file-validation.js +1 -0
- package/dist/i-contributions-report.d.ts +31 -0
- package/dist/i-contributions-report.d.ts.map +1 -0
- package/dist/i-contributions-report.js +1 -0
- package/dist/i-declared-xref-field.d.ts +25 -0
- package/dist/i-declared-xref-field.d.ts.map +1 -0
- package/dist/i-declared-xref-field.js +1 -0
- package/dist/i-declared-xref-issue.d.ts +25 -0
- package/dist/i-declared-xref-issue.d.ts.map +1 -0
- package/dist/i-declared-xref-issue.js +1 -0
- package/dist/i-declared-xref-report.d.ts +48 -0
- package/dist/i-declared-xref-report.d.ts.map +1 -0
- package/dist/i-declared-xref-report.js +1 -0
- package/dist/i-declared-xref-row.d.ts +29 -0
- package/dist/i-declared-xref-row.d.ts.map +1 -0
- package/dist/i-declared-xref-row.js +1 -0
- package/dist/i-doctor-verdict.d.ts +10 -0
- package/dist/i-doctor-verdict.d.ts.map +1 -0
- package/dist/i-doctor-verdict.js +1 -0
- package/dist/i-kind-outcomes.d.ts +13 -0
- package/dist/i-kind-outcomes.d.ts.map +1 -0
- package/dist/i-kind-outcomes.js +1 -0
- package/dist/i-pack-doctor-verdict.d.ts +15 -0
- package/dist/i-pack-doctor-verdict.d.ts.map +1 -0
- package/dist/i-pack-doctor-verdict.js +1 -0
- package/dist/i-probed-id-field.d.ts +17 -0
- package/dist/i-probed-id-field.d.ts.map +1 -0
- package/dist/i-probed-id-field.js +1 -0
- package/dist/i-reference-kind-declaration.d.ts +38 -0
- package/dist/i-reference-kind-declaration.d.ts.map +1 -0
- package/dist/i-reference-kind-declaration.js +1 -0
- package/dist/i-reference-warm-options.d.ts +21 -0
- package/dist/i-reference-warm-options.d.ts.map +1 -0
- package/dist/i-reference-warm-options.js +1 -0
- package/dist/i-registry-outcomes.d.ts +16 -0
- package/dist/i-registry-outcomes.d.ts.map +1 -0
- package/dist/i-registry-outcomes.js +1 -0
- package/dist/i-scaffold-pattern-doctor-report.d.ts +35 -0
- package/dist/i-scaffold-pattern-doctor-report.d.ts.map +1 -0
- package/dist/i-scaffold-pattern-doctor-report.js +1 -0
- package/dist/i-search-tuning-key-probe.d.ts +30 -0
- package/dist/i-search-tuning-key-probe.d.ts.map +1 -0
- package/dist/i-search-tuning-key-probe.js +1 -0
- package/dist/i-search-tuning-lint-issue.d.ts +61 -0
- package/dist/i-search-tuning-lint-issue.d.ts.map +1 -0
- package/dist/i-search-tuning-lint-issue.js +1 -0
- package/dist/i-search-tuning-lint-report.d.ts +38 -0
- package/dist/i-search-tuning-lint-report.d.ts.map +1 -0
- package/dist/i-search-tuning-lint-report.js +1 -0
- package/dist/i-unresolvable-reference-scan.d.ts +14 -0
- package/dist/i-unresolvable-reference-scan.d.ts.map +1 -0
- package/dist/i-unresolvable-reference-scan.js +1 -0
- package/dist/i-unresolvable-reference.d.ts +29 -0
- package/dist/i-unresolvable-reference.d.ts.map +1 -0
- package/dist/i-unresolvable-reference.js +1 -0
- package/dist/i-workspace-profile-payload.d.ts +12 -0
- package/dist/i-workspace-profile-payload.d.ts.map +1 -0
- package/dist/i-workspace-profile-payload.js +1 -0
- package/dist/impact-analysis.d.ts +15 -0
- package/dist/impact-analysis.d.ts.map +1 -1
- package/dist/impact-analysis.js +58 -13
- package/dist/impact-render.d.ts.map +1 -1
- package/dist/impact-render.js +22 -0
- package/dist/import-hygiene.d.ts +35 -1
- package/dist/import-hygiene.d.ts.map +1 -1
- package/dist/import-hygiene.js +107 -13
- package/dist/index.d.ts +145 -0
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +176 -0
- package/dist/inspection-discovery.d.ts +45 -0
- package/dist/inspection-discovery.d.ts.map +1 -0
- package/dist/inspection-discovery.js +70 -0
- package/dist/knowledge-advisory-code.d.ts +17 -0
- package/dist/knowledge-advisory-code.d.ts.map +1 -0
- package/dist/knowledge-advisory-code.js +17 -0
- package/dist/knowledge-aged-entry.d.ts +10 -0
- package/dist/knowledge-aged-entry.d.ts.map +1 -0
- package/dist/knowledge-aged-entry.js +1 -0
- package/dist/knowledge-authoring.d.ts +24 -1
- package/dist/knowledge-authoring.d.ts.map +1 -1
- package/dist/knowledge-authoring.js +46 -7
- package/dist/knowledge-entry-verdict-record.d.ts +22 -0
- package/dist/knowledge-entry-verdict-record.d.ts.map +1 -0
- package/dist/knowledge-entry-verdict-record.js +1 -0
- package/dist/knowledge-entry-verdict.d.ts +17 -0
- package/dist/knowledge-entry-verdict.d.ts.map +1 -0
- package/dist/knowledge-entry-verdict.js +17 -0
- package/dist/knowledge-graph.d.ts +6 -0
- package/dist/knowledge-graph.d.ts.map +1 -1
- package/dist/knowledge-graph.js +18 -7
- package/dist/knowledge-kind-bucket.d.ts +19 -0
- package/dist/knowledge-kind-bucket.d.ts.map +1 -0
- package/dist/knowledge-kind-bucket.js +1 -0
- package/dist/knowledge-load-failure.d.ts +23 -0
- package/dist/knowledge-load-failure.d.ts.map +1 -0
- package/dist/knowledge-load-failure.js +1 -0
- package/dist/knowledge-reference-kind-bucket.d.ts +11 -0
- package/dist/knowledge-reference-kind-bucket.d.ts.map +1 -0
- package/dist/knowledge-reference-kind-bucket.js +1 -0
- package/dist/knowledge-stale-advisory.d.ts +14 -0
- package/dist/knowledge-stale-advisory.d.ts.map +1 -0
- package/dist/knowledge-stale-advisory.js +1 -0
- package/dist/knowledge-stale-coverage.d.ts +19 -0
- package/dist/knowledge-stale-coverage.d.ts.map +1 -0
- package/dist/knowledge-stale-coverage.js +1 -0
- package/dist/knowledge-stale-gate-flags.d.ts +33 -0
- package/dist/knowledge-stale-gate-flags.d.ts.map +1 -0
- package/dist/knowledge-stale-gate-flags.js +1 -0
- package/dist/knowledge-stale-gate-input.d.ts +46 -0
- package/dist/knowledge-stale-gate-input.d.ts.map +1 -0
- package/dist/knowledge-stale-gate-input.js +1 -0
- package/dist/knowledge-stale-gate-result.d.ts +33 -0
- package/dist/knowledge-stale-gate-result.d.ts.map +1 -0
- package/dist/knowledge-stale-gate-result.js +1 -0
- package/dist/knowledge-stale-gate-rule.d.ts +33 -0
- package/dist/knowledge-stale-gate-rule.d.ts.map +1 -0
- package/dist/knowledge-stale-gate-rule.js +1 -0
- package/dist/knowledge-stale-gate-violation.d.ts +13 -0
- package/dist/knowledge-stale-gate-violation.d.ts.map +1 -0
- package/dist/knowledge-stale-gate-violation.js +1 -0
- package/dist/knowledge-stale-gate.d.ts +83 -0
- package/dist/knowledge-stale-gate.d.ts.map +1 -0
- package/dist/knowledge-stale-gate.js +429 -0
- package/dist/knowledge-stale-quality-gate.d.ts +26 -0
- package/dist/knowledge-stale-quality-gate.d.ts.map +1 -0
- package/dist/knowledge-stale-quality-gate.js +110 -0
- package/dist/knowledge-stale.d.ts +122 -9
- package/dist/knowledge-stale.d.ts.map +1 -1
- package/dist/knowledge-stale.js +1002 -316
- package/dist/knowledge-unverifiable-reason.d.ts +12 -0
- package/dist/knowledge-unverifiable-reason.d.ts.map +1 -0
- package/dist/knowledge-unverifiable-reason.js +12 -0
- package/dist/loader-diagnostics.d.ts +14 -2
- package/dist/loader-diagnostics.d.ts.map +1 -1
- package/dist/match-terms.d.ts +48 -0
- package/dist/match-terms.d.ts.map +1 -0
- package/dist/match-terms.js +155 -0
- package/dist/migration-profile-registry.d.ts +10 -0
- package/dist/migration-profile-registry.d.ts.map +1 -1
- package/dist/migration-profile-registry.js +57 -34
- package/dist/migration-readiness.d.ts.map +1 -1
- package/dist/migration-readiness.js +1 -3
- package/dist/nearest-id.d.ts +14 -0
- package/dist/nearest-id.d.ts.map +1 -0
- package/dist/nearest-id.js +12 -0
- package/dist/pack-asset-freshness.d.ts +65 -0
- package/dist/pack-asset-freshness.d.ts.map +1 -0
- package/dist/pack-asset-freshness.js +340 -0
- package/dist/pack-author-ux.d.ts +24 -3
- package/dist/pack-author-ux.d.ts.map +1 -1
- package/dist/pack-author-ux.js +87 -93
- package/dist/pack-contributions-inventory.d.ts +79 -39
- package/dist/pack-contributions-inventory.d.ts.map +1 -1
- package/dist/pack-contributions-inventory.js +443 -286
- package/dist/pack-doctor-verdict.d.ts +29 -0
- package/dist/pack-doctor-verdict.d.ts.map +1 -0
- package/dist/pack-doctor-verdict.js +45 -0
- package/dist/pack-doctor.d.ts +74 -1
- package/dist/pack-doctor.d.ts.map +1 -1
- package/dist/pack-doctor.js +281 -1
- package/dist/pack-helper-plan.d.ts +24 -0
- package/dist/pack-helper-plan.d.ts.map +1 -0
- package/dist/pack-helper-plan.js +77 -0
- package/dist/pack-helper-registry.d.ts +14 -0
- package/dist/pack-helper-registry.d.ts.map +1 -1
- package/dist/pack-helper-registry.js +76 -37
- package/dist/pack-manifest-reader.d.ts +8 -0
- package/dist/pack-manifest-reader.d.ts.map +1 -0
- package/dist/pack-manifest-reader.js +79 -0
- package/dist/pack-release-check.d.ts +14 -1
- package/dist/pack-release-check.d.ts.map +1 -1
- package/dist/pack-release-check.js +23 -1
- package/dist/pack-signature-status.d.ts +18 -6
- package/dist/pack-signature-status.d.ts.map +1 -1
- package/dist/pack-signature-status.js +59 -105
- package/dist/pack-test-runner.d.ts +27 -5
- package/dist/pack-test-runner.d.ts.map +1 -1
- package/dist/pack-test-runner.js +91 -35
- package/dist/pack-typecheck.d.ts +8 -0
- package/dist/pack-typecheck.d.ts.map +1 -0
- package/dist/pack-typecheck.js +76 -0
- package/dist/plan-review.d.ts +2 -0
- package/dist/plan-review.d.ts.map +1 -1
- package/dist/plan-review.js +17 -5
- package/dist/plan-simulation.d.ts.map +1 -1
- package/dist/plan-simulation.js +16 -5
- package/dist/playbook-load-issue.d.ts +16 -0
- package/dist/playbook-load-issue.d.ts.map +1 -0
- package/dist/playbook-load-issue.js +1 -0
- package/dist/playbook-registry.d.ts +32 -1
- package/dist/playbook-registry.d.ts.map +1 -1
- package/dist/playbook-registry.js +144 -55
- package/dist/policy-declaration.d.ts +18 -0
- package/dist/policy-declaration.d.ts.map +1 -0
- package/dist/policy-declaration.js +1 -0
- package/dist/policy-engine.d.ts +8 -0
- package/dist/policy-engine.d.ts.map +1 -1
- package/dist/policy-engine.js +26 -9
- package/dist/policy-overrides.d.ts.map +1 -1
- package/dist/policy-overrides.js +4 -4
- package/dist/policy-registry.d.ts +42 -0
- package/dist/policy-registry.d.ts.map +1 -0
- package/dist/policy-registry.js +131 -0
- package/dist/probed-id-fields.d.ts +21 -0
- package/dist/probed-id-fields.d.ts.map +1 -0
- package/dist/probed-id-fields.js +25 -0
- package/dist/probed-id-source.d.ts +11 -0
- package/dist/probed-id-source.d.ts.map +1 -0
- package/dist/probed-id-source.js +11 -0
- package/dist/profile-registry.d.ts +25 -2
- package/dist/profile-registry.d.ts.map +1 -1
- package/dist/profile-registry.js +59 -6
- package/dist/quality-gate-examination.d.ts +15 -0
- package/dist/quality-gate-examination.d.ts.map +1 -0
- package/dist/quality-gate-examination.js +15 -0
- package/dist/quality-gate-row-status.d.ts +19 -0
- package/dist/quality-gate-row-status.d.ts.map +1 -0
- package/dist/quality-gate-row-status.js +28 -0
- package/dist/quality-gate-status.d.ts +16 -0
- package/dist/quality-gate-status.d.ts.map +1 -0
- package/dist/quality-gate-status.js +16 -0
- package/dist/quality-html.d.ts.map +1 -1
- package/dist/quality-html.js +14 -3
- package/dist/quality-report-coverage.d.ts +26 -0
- package/dist/quality-report-coverage.d.ts.map +1 -0
- package/dist/quality-report-coverage.js +48 -0
- package/dist/quality-report.d.ts +28 -1
- package/dist/quality-report.d.ts.map +1 -1
- package/dist/quality-report.js +263 -35
- package/dist/query-intent-kind.d.ts +18 -0
- package/dist/query-intent-kind.d.ts.map +1 -0
- package/dist/query-intent-kind.js +18 -0
- package/dist/query-intent-result.d.ts +23 -0
- package/dist/query-intent-result.d.ts.map +1 -0
- package/dist/query-intent-result.js +1 -0
- package/dist/query-intent.d.ts +18 -0
- package/dist/query-intent.d.ts.map +1 -0
- package/dist/query-intent.js +336 -0
- package/dist/query-resolver.d.ts +18 -0
- package/dist/query-resolver.d.ts.map +1 -1
- package/dist/query-resolver.js +15 -12
- package/dist/ranked-recommendations.d.ts +36 -0
- package/dist/ranked-recommendations.d.ts.map +1 -0
- package/dist/ranked-recommendations.js +1 -0
- package/dist/ranker-explainability.d.ts.map +1 -1
- package/dist/ranker-explainability.js +38 -10
- package/dist/recommend-recipe.d.ts +17 -0
- package/dist/recommend-recipe.d.ts.map +1 -0
- package/dist/recommend-recipe.js +1 -0
- package/dist/recommend-recipes.d.ts +9 -0
- package/dist/recommend-recipes.d.ts.map +1 -0
- package/dist/recommend-recipes.js +106 -0
- package/dist/recommendation-candidate.d.ts +30 -0
- package/dist/recommendation-candidate.d.ts.map +1 -0
- package/dist/recommendation-candidate.js +1 -0
- package/dist/recommendation-confidence.d.ts +27 -0
- package/dist/recommendation-confidence.d.ts.map +1 -0
- package/dist/recommendation-confidence.js +1 -0
- package/dist/recommendation-ranking-options.d.ts +24 -0
- package/dist/recommendation-ranking-options.d.ts.map +1 -0
- package/dist/recommendation-ranking-options.js +1 -0
- package/dist/recommendation-ranking.d.ts +50 -0
- package/dist/recommendation-ranking.d.ts.map +1 -0
- package/dist/recommendation-ranking.js +527 -0
- package/dist/recommendation-source.d.ts +23 -0
- package/dist/recommendation-source.d.ts.map +1 -0
- package/dist/recommendation-source.js +23 -0
- package/dist/recommendation-suppression.d.ts +14 -0
- package/dist/recommendation-suppression.d.ts.map +1 -0
- package/dist/recommendation-suppression.js +14 -0
- package/dist/reference-asset-kind.d.ts +14 -0
- package/dist/reference-asset-kind.d.ts.map +1 -0
- package/dist/reference-asset-kind.js +14 -0
- package/dist/reference-content-check.d.ts +32 -0
- package/dist/reference-content-check.d.ts.map +1 -0
- package/dist/reference-content-check.js +143 -0
- package/dist/reference-failure.d.ts +31 -0
- package/dist/reference-failure.d.ts.map +1 -0
- package/dist/reference-failure.js +31 -0
- package/dist/reference-id-status.d.ts +15 -0
- package/dist/reference-id-status.d.ts.map +1 -0
- package/dist/reference-id-status.js +15 -0
- package/dist/reference-kind-declarations.d.ts +42 -0
- package/dist/reference-kind-declarations.d.ts.map +1 -0
- package/dist/reference-kind-declarations.js +142 -0
- package/dist/reference-lookup.d.ts +6 -0
- package/dist/reference-lookup.d.ts.map +1 -1
- package/dist/reference-lookup.js +13 -5
- package/dist/reference-registry.d.ts +210 -0
- package/dist/reference-registry.d.ts.map +1 -0
- package/dist/reference-registry.js +395 -0
- package/dist/reference-subject.d.ts +20 -0
- package/dist/reference-subject.d.ts.map +1 -0
- package/dist/reference-subject.js +1 -0
- package/dist/registration-hint-discovery-status.d.ts +25 -0
- package/dist/registration-hint-discovery-status.d.ts.map +1 -0
- package/dist/registration-hint-discovery-status.js +25 -0
- package/dist/registration-hint-registry.d.ts +80 -0
- package/dist/registration-hint-registry.d.ts.map +1 -1
- package/dist/registration-hint-registry.js +356 -138
- package/dist/registry-lifecycle.d.ts +200 -19
- package/dist/registry-lifecycle.d.ts.map +1 -1
- package/dist/registry-lifecycle.js +526 -136
- package/dist/release-readiness.d.ts.map +1 -1
- package/dist/release-readiness.js +10 -7
- package/dist/release-smoke.d.ts.map +1 -1
- package/dist/release-smoke.js +11 -7
- package/dist/report-site.d.ts.map +1 -1
- package/dist/report-site.js +25 -7
- package/dist/repository-intelligence.d.ts.map +1 -1
- package/dist/repository-intelligence.js +3 -2
- package/dist/repository-knowledge-model.d.ts.map +1 -1
- package/dist/repository-knowledge-model.js +18 -5
- package/dist/resolve-project-config.d.ts +64 -0
- package/dist/resolve-project-config.d.ts.map +1 -1
- package/dist/resolve-project-config.js +258 -32
- package/dist/reuse/compute-reuse-coverage.d.ts +29 -0
- package/dist/reuse/compute-reuse-coverage.d.ts.map +1 -0
- package/dist/reuse/compute-reuse-coverage.js +198 -0
- package/dist/reuse/rank-reuse-candidates.d.ts +38 -0
- package/dist/reuse/rank-reuse-candidates.d.ts.map +1 -0
- package/dist/reuse/rank-reuse-candidates.js +212 -0
- package/dist/reuse/rank-reuse-options.d.ts +20 -0
- package/dist/reuse/rank-reuse-options.d.ts.map +1 -0
- package/dist/reuse/rank-reuse-options.js +1 -0
- package/dist/reuse/rank-reuse-suggestions.d.ts +15 -0
- package/dist/reuse/rank-reuse-suggestions.d.ts.map +1 -0
- package/dist/reuse/rank-reuse-suggestions.js +31 -0
- package/dist/reuse/resolve-curated-reuse.d.ts +43 -0
- package/dist/reuse/resolve-curated-reuse.d.ts.map +1 -0
- package/dist/reuse/resolve-curated-reuse.js +115 -0
- package/dist/reuse/reuse-candidate.d.ts +29 -0
- package/dist/reuse/reuse-candidate.d.ts.map +1 -0
- package/dist/reuse/reuse-candidate.js +1 -0
- package/dist/reuse/reuse-coverage-report.d.ts +74 -0
- package/dist/reuse/reuse-coverage-report.d.ts.map +1 -0
- package/dist/reuse/reuse-coverage-report.js +1 -0
- package/dist/reuse/reuse-curated-coverage.d.ts +36 -0
- package/dist/reuse/reuse-curated-coverage.d.ts.map +1 -0
- package/dist/reuse/reuse-curated-coverage.js +1 -0
- package/dist/reuse/reuse-curated-resolution.d.ts +36 -0
- package/dist/reuse/reuse-curated-resolution.d.ts.map +1 -0
- package/dist/reuse/reuse-curated-resolution.js +1 -0
- package/dist/reuse/reuse-curated-status.d.ts +21 -0
- package/dist/reuse/reuse-curated-status.d.ts.map +1 -0
- package/dist/reuse/reuse-curated-status.js +21 -0
- package/dist/reuse/reuse-match-detail.d.ts +15 -0
- package/dist/reuse/reuse-match-detail.d.ts.map +1 -0
- package/dist/reuse/reuse-match-detail.js +1 -0
- package/dist/reuse/reuse-ranking.d.ts +37 -0
- package/dist/reuse/reuse-ranking.d.ts.map +1 -0
- package/dist/reuse/reuse-ranking.js +1 -0
- package/dist/reuse/reuse-suggestion.d.ts +19 -0
- package/dist/reuse/reuse-suggestion.d.ts.map +1 -0
- package/dist/reuse/reuse-suggestion.js +1 -0
- package/dist/reuse/reuse-symbol-lookup.d.ts +28 -0
- package/dist/reuse/reuse-symbol-lookup.d.ts.map +1 -0
- package/dist/reuse/reuse-symbol-lookup.js +1 -0
- package/dist/reuse/reuse-tokenize.d.ts +11 -0
- package/dist/reuse/reuse-tokenize.d.ts.map +1 -0
- package/dist/reuse/reuse-tokenize.js +26 -0
- package/dist/reuse/score-reuse-name.d.ts +16 -0
- package/dist/reuse/score-reuse-name.d.ts.map +1 -0
- package/dist/reuse/score-reuse-name.js +35 -0
- package/dist/reuse/score-reuse-primitive.d.ts +33 -0
- package/dist/reuse/score-reuse-primitive.d.ts.map +1 -0
- package/dist/reuse/score-reuse-primitive.js +92 -0
- package/dist/review-packet.d.ts +2 -0
- package/dist/review-packet.d.ts.map +1 -1
- package/dist/review-packet.js +13 -6
- package/dist/role-views.d.ts.map +1 -1
- package/dist/role-views.js +16 -16
- package/dist/routing-recommends-channels.d.ts +24 -0
- package/dist/routing-recommends-channels.d.ts.map +1 -0
- package/dist/routing-recommends-channels.js +19 -0
- package/dist/run-boundary-check.d.ts +118 -0
- package/dist/run-boundary-check.d.ts.map +1 -0
- package/dist/run-boundary-check.js +592 -0
- package/dist/safety-audit.js +1 -1
- package/dist/scaffold-coverage.js +1 -1
- package/dist/scaffold-pattern-doctor-report.d.ts +19 -0
- package/dist/scaffold-pattern-doctor-report.d.ts.map +1 -0
- package/dist/scaffold-pattern-doctor-report.js +54 -0
- package/dist/scaffold-patterns.d.ts +75 -1
- package/dist/scaffold-patterns.d.ts.map +1 -1
- package/dist/scaffold-patterns.js +375 -84
- package/dist/schema-inventory.d.ts.map +1 -1
- package/dist/schema-inventory.js +4 -3
- package/dist/search-document-id.d.ts +52 -0
- package/dist/search-document-id.d.ts.map +1 -0
- package/dist/search-document-id.js +72 -0
- package/dist/search-document-prefix.d.ts +7 -0
- package/dist/search-document-prefix.d.ts.map +1 -0
- package/dist/search-document-prefix.js +1 -0
- package/dist/search-index.d.ts.map +1 -1
- package/dist/search-index.js +20 -23
- package/dist/search-tuning-explain.d.ts +6 -0
- package/dist/search-tuning-explain.d.ts.map +1 -1
- package/dist/search-tuning-explain.js +19 -17
- package/dist/search-tuning-key-probes.d.ts +16 -0
- package/dist/search-tuning-key-probes.d.ts.map +1 -0
- package/dist/search-tuning-key-probes.js +65 -0
- package/dist/search-tuning-key-resolution.d.ts +25 -0
- package/dist/search-tuning-key-resolution.d.ts.map +1 -0
- package/dist/search-tuning-key-resolution.js +1 -0
- package/dist/search-tuning-key-resolver.d.ts +4 -0
- package/dist/search-tuning-key-resolver.d.ts.map +1 -0
- package/dist/search-tuning-key-resolver.js +107 -0
- package/dist/search-tuning-key-status.d.ts +24 -0
- package/dist/search-tuning-key-status.d.ts.map +1 -0
- package/dist/search-tuning-key-status.js +24 -0
- package/dist/search-tuning-lint.d.ts +9 -0
- package/dist/search-tuning-lint.d.ts.map +1 -0
- package/dist/search-tuning-lint.js +468 -0
- package/dist/search-tuning-registry.d.ts +43 -0
- package/dist/search-tuning-registry.d.ts.map +1 -1
- package/dist/search-tuning-registry.js +214 -49
- package/dist/self-audit.d.ts +12 -0
- package/dist/self-audit.d.ts.map +1 -1
- package/dist/self-audit.js +36 -10
- package/dist/self-config-doctor-v2.d.ts +145 -3
- package/dist/self-config-doctor-v2.d.ts.map +1 -1
- package/dist/self-config-doctor-v2.js +1329 -255
- package/dist/self-config-doctor.d.ts +20 -1
- package/dist/self-config-doctor.d.ts.map +1 -1
- package/dist/self-config-doctor.js +65 -309
- package/dist/settled-unit-states.d.ts +9 -0
- package/dist/settled-unit-states.d.ts.map +1 -0
- package/dist/settled-unit-states.js +14 -0
- package/dist/sharkcraft-inspector.d.ts +47 -1
- package/dist/sharkcraft-inspector.d.ts.map +1 -1
- package/dist/sharkcraft-inspector.js +278 -29
- package/dist/spec/spec-evidence.d.ts.map +1 -1
- package/dist/spec/spec-evidence.js +14 -20
- package/dist/split-identifier.d.ts +21 -0
- package/dist/split-identifier.d.ts.map +1 -0
- package/dist/split-identifier.js +27 -0
- package/dist/start-here.d.ts.map +1 -1
- package/dist/start-here.js +1 -2
- package/dist/substitute-placeholders.d.ts +8 -0
- package/dist/substitute-placeholders.d.ts.map +1 -0
- package/dist/substitute-placeholders.js +9 -0
- package/dist/symbol-index.d.ts +33 -0
- package/dist/symbol-index.d.ts.map +1 -1
- package/dist/symbol-index.js +241 -3
- package/dist/symbol-member-entry.d.ts +26 -0
- package/dist/symbol-member-entry.d.ts.map +1 -0
- package/dist/symbol-member-entry.js +1 -0
- package/dist/symbol-member-kind.d.ts +14 -0
- package/dist/symbol-member-kind.d.ts.map +1 -0
- package/dist/symbol-member-kind.js +14 -0
- package/dist/task-packet.d.ts.map +1 -1
- package/dist/task-packet.js +52 -9
- package/dist/task-ranker.d.ts +8 -0
- package/dist/task-ranker.d.ts.map +1 -1
- package/dist/task-ranker.js +25 -13
- package/dist/task-risk.js +1 -1
- package/dist/task-routing-hint-registry.d.ts +20 -1
- package/dist/task-routing-hint-registry.d.ts.map +1 -1
- package/dist/task-routing-hint-registry.js +186 -42
- package/dist/template-drift.d.ts.map +1 -1
- package/dist/template-drift.js +30 -9
- package/dist/template-lint.d.ts.map +1 -1
- package/dist/template-lint.js +160 -2
- package/dist/term-query.d.ts +10 -0
- package/dist/term-query.d.ts.map +1 -0
- package/dist/term-query.js +1 -0
- package/dist/test-definitions.d.ts +6 -3
- package/dist/test-definitions.d.ts.map +1 -1
- package/dist/test-runner.d.ts +95 -10
- package/dist/test-runner.d.ts.map +1 -1
- package/dist/test-runner.js +309 -318
- package/dist/tuning-query-tokens.d.ts +29 -0
- package/dist/tuning-query-tokens.d.ts.map +1 -0
- package/dist/tuning-query-tokens.js +51 -0
- package/dist/typecheck-files.d.ts +36 -0
- package/dist/typecheck-files.d.ts.map +1 -0
- package/dist/typecheck-files.js +158 -0
- package/dist/uncertainty.js +1 -1
- package/dist/universal-search.d.ts.map +1 -1
- package/dist/universal-search.js +5 -3
- package/dist/unregistered-exports.d.ts +19 -0
- package/dist/unregistered-exports.d.ts.map +1 -0
- package/dist/unregistered-exports.js +141 -0
- package/dist/unresolvable-reason.d.ts +11 -0
- package/dist/unresolvable-reason.d.ts.map +1 -0
- package/dist/unresolvable-reason.js +11 -0
- package/dist/upgrade-advisor.d.ts.map +1 -1
- package/dist/upgrade-advisor.js +16 -9
- package/dist/validate-contribution-file.d.ts +4 -0
- package/dist/validate-contribution-file.d.ts.map +1 -0
- package/dist/validate-contribution-file.js +228 -0
- package/dist/why-file.d.ts +3 -0
- package/dist/why-file.d.ts.map +1 -1
- package/dist/why-file.js +7 -3
- package/package.json +17 -17
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"i-registry-outcomes.d.ts","sourceRoot":"","sources":["../src/i-registry-outcomes.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,0BAA0B,EAAE,MAAM,oCAAoC,CAAC;AACrF,OAAO,KAAK,EAAE,2BAA2B,EAAE,MAAM,qCAAqC,CAAC;AACvF,OAAO,KAAK,EAAE,wBAAwB,EAAE,MAAM,iCAAiC,CAAC;AAEhF;;;;;;GAMG;AACH,MAAM,WAAW,iBAAiB;IAChC,QAAQ,CAAC,YAAY,EAAE,SAAS,wBAAwB,EAAE,CAAC;IAC3D,QAAQ,CAAC,UAAU,EAAE,SAAS,2BAA2B,EAAE,CAAC;IAC5D,QAAQ,CAAC,QAAQ,EAAE,SAAS,0BAA0B,EAAE,CAAC;CAC1D"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
import type { IRejectedEntry, IVerdictCoverage } from '@shrkcrft/core';
|
|
2
|
+
import type { IScaffoldPatternCoverage, IScaffoldPatternIssue, IScaffoldPatternWithSource, scaffoldPatternCoverage } from './scaffold-patterns.js';
|
|
3
|
+
/**
|
|
4
|
+
* THE scaffold-pattern doctor's findings (`buildScaffoldPatternDoctorReport`)
|
|
5
|
+
* — what `shrk scaffolds doctor` and MCP `get_scaffold_pattern_doctor` both
|
|
6
|
+
* render and settle (round 13), so the two cannot disagree.
|
|
7
|
+
*/
|
|
8
|
+
export interface IScaffoldPatternDoctorReport {
|
|
9
|
+
/** Every accepted pattern (loaded, normalised; a pack's markers stamped). */
|
|
10
|
+
readonly patterns: readonly IScaffoldPatternWithSource[];
|
|
11
|
+
/** FILE-level load problems (missing, not an array, failed to import). */
|
|
12
|
+
readonly loadWarnings: readonly string[];
|
|
13
|
+
/** Every pattern its loader REFUSED (THE rejection channel) — each counts as an error. */
|
|
14
|
+
readonly rejected: readonly IRejectedEntry[];
|
|
15
|
+
/** The definition checks plus the per-unit findings, from THE settles. */
|
|
16
|
+
readonly issues: readonly IScaffoldPatternIssue[];
|
|
17
|
+
/** Error issues plus refused entries. */
|
|
18
|
+
readonly errors: number;
|
|
19
|
+
readonly warnings: number;
|
|
20
|
+
/** THE settles over the enumeration (`scaffoldPatternCoverage`): their coverage, unmarked dead list and units. */
|
|
21
|
+
readonly measured: ReturnType<typeof scaffoldPatternCoverage>;
|
|
22
|
+
/**
|
|
23
|
+
* The verdict's coverage: `measured.coverage`, plus — over zero patterns — a
|
|
24
|
+
* "nothing declared" record (NOT VERIFIED unless the empty acceptance the
|
|
25
|
+
* caller passed accepts it, printed).
|
|
26
|
+
*/
|
|
27
|
+
readonly coverage: readonly IVerdictCoverage[];
|
|
28
|
+
/** Per pattern: files matched after `excludePaths`, and per `matchPaths` glob — for `--json`. */
|
|
29
|
+
readonly patternCoverage: readonly {
|
|
30
|
+
readonly patternId: string;
|
|
31
|
+
readonly files: number;
|
|
32
|
+
readonly perMatchPath: IScaffoldPatternCoverage['perMatchPath'];
|
|
33
|
+
}[];
|
|
34
|
+
}
|
|
35
|
+
//# sourceMappingURL=i-scaffold-pattern-doctor-report.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"i-scaffold-pattern-doctor-report.d.ts","sourceRoot":"","sources":["../src/i-scaffold-pattern-doctor-report.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,cAAc,EAAE,gBAAgB,EAAE,MAAM,gBAAgB,CAAC;AACvE,OAAO,KAAK,EACV,wBAAwB,EACxB,qBAAqB,EACrB,0BAA0B,EAC1B,uBAAuB,EACxB,MAAM,wBAAwB,CAAC;AAEhC;;;;GAIG;AACH,MAAM,WAAW,4BAA4B;IAC3C,6EAA6E;IAC7E,QAAQ,CAAC,QAAQ,EAAE,SAAS,0BAA0B,EAAE,CAAC;IACzD,0EAA0E;IAC1E,QAAQ,CAAC,YAAY,EAAE,SAAS,MAAM,EAAE,CAAC;IACzC,0FAA0F;IAC1F,QAAQ,CAAC,QAAQ,EAAE,SAAS,cAAc,EAAE,CAAC;IAC7C,0EAA0E;IAC1E,QAAQ,CAAC,MAAM,EAAE,SAAS,qBAAqB,EAAE,CAAC;IAClD,yCAAyC;IACzC,QAAQ,CAAC,MAAM,EAAE,MAAM,CAAC;IACxB,QAAQ,CAAC,QAAQ,EAAE,MAAM,CAAC;IAC1B,kHAAkH;IAClH,QAAQ,CAAC,QAAQ,EAAE,UAAU,CAAC,OAAO,uBAAuB,CAAC,CAAC;IAC9D;;;;OAIG;IACH,QAAQ,CAAC,QAAQ,EAAE,SAAS,gBAAgB,EAAE,CAAC;IAC/C,iGAAiG;IACjG,QAAQ,CAAC,eAAe,EAAE,SAAS;QACjC,QAAQ,CAAC,SAAS,EAAE,MAAM,CAAC;QAC3B,QAAQ,CAAC,KAAK,EAAE,MAAM,CAAC;QACvB,QAAQ,CAAC,YAAY,EAAE,wBAAwB,CAAC,cAAc,CAAC,CAAC;KACjE,EAAE,CAAC;CACL"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
import type { IUnitMark } from '@shrkcrft/core';
|
|
2
|
+
import type { ISearchTuningKeyResolution } from './search-tuning-key-resolution.js';
|
|
3
|
+
/**
|
|
4
|
+
* One search-tuning entry's declaration of one boost key (`boostIds` /
|
|
5
|
+
* `taskHints[].boostIds`), resolved through THE key resolver — what
|
|
6
|
+
* `searchTuningKeyProbes` returns. The lint settles and words these; the
|
|
7
|
+
* self-config doctor's unresolvable-reference scan (and so `packs
|
|
8
|
+
* contributions`) reads the SAME probes, so the two can never disagree about
|
|
9
|
+
* whether a contributed boost key could be checked (round 13).
|
|
10
|
+
*/
|
|
11
|
+
export interface ISearchTuningKeyProbe {
|
|
12
|
+
readonly tuningId: string;
|
|
13
|
+
/** The boost key exactly as declared — the unit an expectEmpty marker names. */
|
|
14
|
+
readonly key: string;
|
|
15
|
+
/** Every id boost map of the entry that declares the key, in order (`boostIds`, `taskHints[<i>].boostIds`). */
|
|
16
|
+
readonly lists: readonly string[];
|
|
17
|
+
/** The entry's expectEmpty markers on the key — one per marked map, stamped with the contributing pack. */
|
|
18
|
+
readonly marks: readonly IUnitMark[];
|
|
19
|
+
/** THE key resolver's answer (one resolution per distinct key, shared by every entry declaring it). */
|
|
20
|
+
readonly resolution: ISearchTuningKeyResolution;
|
|
21
|
+
/** The entry's `appliesToKinds` — set when it excludes the key's document kind. */
|
|
22
|
+
readonly appliesToKinds?: readonly string[];
|
|
23
|
+
/** The document kind `appliesToKinds` excludes: the matcher skips the entry, so the boost never fires. */
|
|
24
|
+
readonly excludedKind?: string;
|
|
25
|
+
/** Where the entry was declared (project- or pack-relative, as the loader records it). */
|
|
26
|
+
readonly sourceFile?: string;
|
|
27
|
+
/** The contributing pack, for a pack entry. */
|
|
28
|
+
readonly packageName?: string;
|
|
29
|
+
}
|
|
30
|
+
//# sourceMappingURL=i-search-tuning-key-probe.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"i-search-tuning-key-probe.d.ts","sourceRoot":"","sources":["../src/i-search-tuning-key-probe.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,gBAAgB,CAAC;AAChD,OAAO,KAAK,EAAE,0BAA0B,EAAE,MAAM,mCAAmC,CAAC;AAEpF;;;;;;;GAOG;AACH,MAAM,WAAW,qBAAqB;IACpC,QAAQ,CAAC,QAAQ,EAAE,MAAM,CAAC;IAC1B,gFAAgF;IAChF,QAAQ,CAAC,GAAG,EAAE,MAAM,CAAC;IACrB,+GAA+G;IAC/G,QAAQ,CAAC,KAAK,EAAE,SAAS,MAAM,EAAE,CAAC;IAClC,2GAA2G;IAC3G,QAAQ,CAAC,KAAK,EAAE,SAAS,SAAS,EAAE,CAAC;IACrC,uGAAuG;IACvG,QAAQ,CAAC,UAAU,EAAE,0BAA0B,CAAC;IAChD,mFAAmF;IACnF,QAAQ,CAAC,cAAc,CAAC,EAAE,SAAS,MAAM,EAAE,CAAC;IAC5C,0GAA0G;IAC1G,QAAQ,CAAC,YAAY,CAAC,EAAE,MAAM,CAAC;IAC/B,0FAA0F;IAC1F,QAAQ,CAAC,UAAU,CAAC,EAAE,MAAM,CAAC;IAC7B,+CAA+C;IAC/C,QAAQ,CAAC,WAAW,CAAC,EAAE,MAAM,CAAC;CAC/B"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,61 @@
|
|
|
1
|
+
import type { ReferenceKind } from './reference-registry.js';
|
|
2
|
+
import type { SearchTuningKeyStatus } from './search-tuning-key-status.js';
|
|
3
|
+
/**
|
|
4
|
+
* One finding of THE search-tuning lint (`lintSearchTuning`). `search tuning
|
|
5
|
+
* doctor` prints it as-is; the self-config doctor prefixes the code
|
|
6
|
+
* (`search-tuning-<code>`) — one lint, two renderers.
|
|
7
|
+
*/
|
|
8
|
+
export interface ISearchTuningLintIssue {
|
|
9
|
+
readonly severity: 'info' | 'warning' | 'error';
|
|
10
|
+
/**
|
|
11
|
+
* `target-missing` · `key-unprefixed` · `key-unknown-kind` ·
|
|
12
|
+
* `boost-excluded-by-kind` · `duplicate-trigger` · `unreachable-trigger` ·
|
|
13
|
+
* `unknown-kind` · `unknown-source` · `cap-discards`.
|
|
14
|
+
*/
|
|
15
|
+
readonly code: string;
|
|
16
|
+
readonly message: string;
|
|
17
|
+
/** The tuning entry (for `cap-discards`: the contributing entries, `+`-joined). */
|
|
18
|
+
readonly tuningId: string;
|
|
19
|
+
readonly source?: string;
|
|
20
|
+
/** The boost key, exactly as declared. */
|
|
21
|
+
readonly key?: string;
|
|
22
|
+
readonly status?: SearchTuningKeyStatus;
|
|
23
|
+
/**
|
|
24
|
+
* The registry the target id resolves (or would resolve) in: set for every
|
|
25
|
+
* key THE key resolver could place (a resolvable bare key included), and for
|
|
26
|
+
* a `cap-discards` document whose prefix has an id registry. Absent means
|
|
27
|
+
* the target is not a registry id (a registry-less document, a declaration)
|
|
28
|
+
* or resolves nowhere.
|
|
29
|
+
*/
|
|
30
|
+
readonly referenceKind?: ReferenceKind;
|
|
31
|
+
/**
|
|
32
|
+
* The bare id the key names (or the whole key when unprefixed); for a
|
|
33
|
+
* `cap-discards` document with an id registry, its bare id
|
|
34
|
+
* (`knowledge:gamma.entry` → `gamma.entry`).
|
|
35
|
+
*/
|
|
36
|
+
readonly targetId?: string;
|
|
37
|
+
/** How many boost maps of this entry declare the key — one issue, not one per map. */
|
|
38
|
+
readonly occurrences?: number;
|
|
39
|
+
/** The key (or kind) to write instead. */
|
|
40
|
+
readonly suggestion?: string;
|
|
41
|
+
/** `duplicate-trigger` / `unreachable-trigger`: the task hint's `whenTokens`. */
|
|
42
|
+
readonly trigger?: readonly string[];
|
|
43
|
+
/**
|
|
44
|
+
* `cap-discards`: the document the global cap clips. When its prefix has an
|
|
45
|
+
* id registry the issue ALSO carries `referenceKind` + the bare `targetId`,
|
|
46
|
+
* so the document is named in its registry, never as an unknown id.
|
|
47
|
+
*/
|
|
48
|
+
readonly docId?: string;
|
|
49
|
+
/** `cap-discards`: how much of the composed delta the cap discards. */
|
|
50
|
+
readonly discarded?: number;
|
|
51
|
+
/**
|
|
52
|
+
* The declaration a SHAPE finding is about — it names no id: the task hint's
|
|
53
|
+
* `taskHints[<i>].whenTokens` (`duplicate-trigger`, `unreachable-trigger`),
|
|
54
|
+
* `appliesToKinds` / `taskHints[<i>].boostKinds` (`unknown-kind`),
|
|
55
|
+
* `boostSources` (`unknown-source`).
|
|
56
|
+
*/
|
|
57
|
+
readonly field?: string;
|
|
58
|
+
/** The `cap-discards` summary issue: how many more documents the cap clips past the per-run issue cap. */
|
|
59
|
+
readonly moreDocuments?: number;
|
|
60
|
+
}
|
|
61
|
+
//# sourceMappingURL=i-search-tuning-lint-issue.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"i-search-tuning-lint-issue.d.ts","sourceRoot":"","sources":["../src/i-search-tuning-lint-issue.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,yBAAyB,CAAC;AAC7D,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,+BAA+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|
|
3
|
+
import type { ISearchTuningLintIssue } from './i-search-tuning-lint-issue.js';
|
|
4
|
+
/** What {@link lintSearchTuning} found over every loaded search-tuning entry. */
|
|
5
|
+
export interface ISearchTuningLintReport {
|
|
6
|
+
readonly entries: number;
|
|
7
|
+
readonly issues: readonly ISearchTuningLintIssue[];
|
|
8
|
+
/**
|
|
9
|
+
* Distinct boost keys probed, by resolution status — printed on one line, so
|
|
10
|
+
* a 100% failure rate reads as a probe fault rather than N content errors.
|
|
11
|
+
*/
|
|
12
|
+
readonly probes: Readonly<{
|
|
13
|
+
probed: number;
|
|
14
|
+
resolved: number;
|
|
15
|
+
missing: number;
|
|
16
|
+
unprefixed: number;
|
|
17
|
+
unknownKind: number;
|
|
18
|
+
unverified: number;
|
|
19
|
+
}>;
|
|
20
|
+
/**
|
|
21
|
+
* Per-unit coverage, from THE settles (round 13): `boost keys` (live =
|
|
22
|
+
* resolves AND admitted by an entry's `appliesToKinds`; a marked missing
|
|
23
|
+
* target is its own printed `acceptedBy: expectEmpty` record) and `task hints`
|
|
24
|
+
* (reachable triggers). A dead or unverifiable unit is a shortfall, so a
|
|
25
|
+
* verdict can never pass over it.
|
|
26
|
+
*/
|
|
27
|
+
readonly coverage: readonly IVerdictCoverage[];
|
|
28
|
+
/** Every UNMARKED dead unit (never fires), labelled — THE settles' `dead`. */
|
|
29
|
+
readonly deadUnits: readonly string[];
|
|
30
|
+
/**
|
|
31
|
+
* THE settles (round 13): boost keys, then task hints — each unit's state and
|
|
32
|
+
* marker, what `--fail-on-dead-units` decides on (`selectorUnitFails`).
|
|
33
|
+
*/
|
|
34
|
+
readonly liveness: readonly ISettledUnitLiveness[];
|
|
35
|
+
/** THE key probes the lint judged (`searchTuningKeyProbes`) — the unresolvable-reference scan reads them. */
|
|
36
|
+
readonly keyProbes: readonly ISearchTuningKeyProbe[];
|
|
37
|
+
}
|
|
38
|
+
//# sourceMappingURL=i-search-tuning-lint-report.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"i-search-tuning-lint-report.d.ts","sourceRoot":"","sources":["../src/i-search-tuning-lint-report.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,oBAAoB,EAAE,gBAAgB,EAAE,MAAM,gBAAgB,CAAC;AAC7E,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,gCAAgC,CAAC;AAC5E,OAAO,KAAK,EAAE,sBAAsB,EAAE,MAAM,iCAAiC,CAAC;AAE9E,iFAAiF;AACjF,MAAM,WAAW,uBAAuB;IACtC,QAAQ,CAAC,OAAO,EAAE,MAAM,CAAC;IACzB,QAAQ,CAAC,MAAM,EAAE,SAAS,sBAAsB,EAAE,CAAC;IACnD;;;OAGG;IACH,QAAQ,CAAC,MAAM,EAAE,QAAQ,CAAC;QACxB,MAAM,EAAE,MAAM,CAAC;QACf,QAAQ,EAAE,MAAM,CAAC;QACjB,OAAO,EAAE,MAAM,CAAC;QAChB,UAAU,EAAE,MAAM,CAAC;QACnB,WAAW,EAAE,MAAM,CAAC;QACpB,UAAU,EAAE,MAAM,CAAC;KACpB,CAAC,CAAC;IACH;;;;;;OAMG;IACH,QAAQ,CAAC,QAAQ,EAAE,SAAS,gBAAgB,EAAE,CAAC;IAC/C,8EAA8E;IAC9E,QAAQ,CAAC,SAAS,EAAE,SAAS,MAAM,EAAE,CAAC;IACtC;;;OAGG;IACH,QAAQ,CAAC,QAAQ,EAAE,SAAS,oBAAoB,EAAE,CAAC;IACnD,6GAA6G;IAC7G,QAAQ,CAAC,SAAS,EAAE,SAAS,qBAAqB,EAAE,CAAC;CACtD"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import type { IUnresolvableReference } from './i-unresolvable-reference.js';
|
|
2
|
+
/**
|
|
3
|
+
* What the self-config doctor's REFERENCE probes examined (round 12,
|
|
4
|
+
* ONE-CHANGE): every declared reference id they probed (`expected`), how many
|
|
5
|
+
* could be checked (`examined`), and each one that could not. The same probes
|
|
6
|
+
* the doctor reports — `collectUnresolvableReferences` runs them, and
|
|
7
|
+
* `buildSelfConfigDoctorReportV2` carries the same list.
|
|
8
|
+
*/
|
|
9
|
+
export interface IUnresolvableReferenceScan {
|
|
10
|
+
readonly expected: number;
|
|
11
|
+
readonly examined: number;
|
|
12
|
+
readonly references: readonly IUnresolvableReference[];
|
|
13
|
+
}
|
|
14
|
+
//# sourceMappingURL=i-unresolvable-reference-scan.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"i-unresolvable-reference-scan.d.ts","sourceRoot":"","sources":["../src/i-unresolvable-reference-scan.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,sBAAsB,EAAE,MAAM,+BAA+B,CAAC;AAE5E;;;;;;GAMG;AACH,MAAM,WAAW,0BAA0B;IACzC,QAAQ,CAAC,QAAQ,EAAE,MAAM,CAAC;IAC1B,QAAQ,CAAC,QAAQ,EAAE,MAAM,CAAC;IAC1B,QAAQ,CAAC,UAAU,EAAE,SAAS,sBAAsB,EAAE,CAAC;CACxD"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
import type { ReferenceKind } from './reference-registry.js';
|
|
2
|
+
import type { UnresolvableReason } from './unresolvable-reason.js';
|
|
3
|
+
/**
|
|
4
|
+
* One declared reference the self-config doctor's reference probes could not
|
|
5
|
+
* check — its kind's registry is empty here, or can never be filled — with the
|
|
6
|
+
* file and field that declare it (round 12, ONE-CHANGE). The doctor's coverage
|
|
7
|
+
* counts each as an unexamined unit; the contributions report groups them by
|
|
8
|
+
* file. Both read the same probes, so they cannot disagree.
|
|
9
|
+
*/
|
|
10
|
+
export interface IUnresolvableReference {
|
|
11
|
+
/** Absolute path of the declaring file, when the asset records one. */
|
|
12
|
+
readonly file?: string;
|
|
13
|
+
/** Owning pack, when the asset is a pack contribution. */
|
|
14
|
+
readonly packageName?: string;
|
|
15
|
+
/** The declaring asset's kind (`registration-hint`, `convention`, `template`, …). */
|
|
16
|
+
readonly sourceKind: string;
|
|
17
|
+
readonly sourceId: string;
|
|
18
|
+
/** The declaring field (`discovery.profileIds`, `recommends.templates`, `related`, …). */
|
|
19
|
+
readonly field: string;
|
|
20
|
+
/**
|
|
21
|
+
* The kind the id resolves against — `any` for a declared field that accepts
|
|
22
|
+
* every kind; `search-document` for a search-tuning boost key whose document
|
|
23
|
+
* kind has no id registry at all (`doc:`, `preset:`, …; round 13).
|
|
24
|
+
*/
|
|
25
|
+
readonly kind: ReferenceKind | 'any' | 'search-document';
|
|
26
|
+
readonly id: string;
|
|
27
|
+
readonly reason: UnresolvableReason;
|
|
28
|
+
}
|
|
29
|
+
//# sourceMappingURL=i-unresolvable-reference.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"i-unresolvable-reference.d.ts","sourceRoot":"","sources":["../src/i-unresolvable-reference.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,yBAAyB,CAAC;AAC7D,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,0BAA0B,CAAC;AAEnE;;;;;;GAMG;AACH,MAAM,WAAW,sBAAsB;IACrC,uEAAuE;IACvE,QAAQ,CAAC,IAAI,CAAC,EAAE,MAAM,CAAC;IACvB,0DAA0D;IAC1D,QAAQ,CAAC,WAAW,CAAC,EAAE,MAAM,CAAC;IAC9B,qFAAqF;IACrF,QAAQ,CAAC,UAAU,EAAE,MAAM,CAAC;IAC5B,QAAQ,CAAC,QAAQ,EAAE,MAAM,CAAC;IAC1B,0FAA0F;IAC1F,QAAQ,CAAC,KAAK,EAAE,MAAM,CAAC;IACvB;;;;OAIG;IACH,QAAQ,CAAC,IAAI,EAAE,aAAa,GAAG,KAAK,GAAG,iBAAiB,CAAC;IACzD,QAAQ,CAAC,EAAE,EAAE,MAAM,CAAC;IACpB,QAAQ,CAAC,MAAM,EAAE,kBAAkB,CAAC;CACrC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* The payload of a builtin `workspace` profile entry
|
|
3
|
+
* (`ProfileKind.Workspace`): whether THIS repo exhibits the profile, and the
|
|
4
|
+
* detector's evidence when it does. The id itself is valid either way — the
|
|
5
|
+
* vocabulary is the engine's, detection is the repo's.
|
|
6
|
+
*/
|
|
7
|
+
export interface IWorkspaceProfilePayload {
|
|
8
|
+
readonly detected: boolean;
|
|
9
|
+
/** The detector's evidence (`tsconfig.json or typescript dependency present`); set only when detected. */
|
|
10
|
+
readonly reason?: string;
|
|
11
|
+
}
|
|
12
|
+
//# sourceMappingURL=i-workspace-profile-payload.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"i-workspace-profile-payload.d.ts","sourceRoot":"","sources":["../src/i-workspace-profile-payload.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AACH,MAAM,WAAW,wBAAwB;IACvC,QAAQ,CAAC,QAAQ,EAAE,OAAO,CAAC;IAC3B,0GAA0G;IAC1G,QAAQ,CAAC,MAAM,CAAC,EAAE,MAAM,CAAC;CAC1B"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -47,6 +47,15 @@ export interface IImpactAreaSummary {
|
|
|
47
47
|
kind: AreaKind;
|
|
48
48
|
fileCount: number;
|
|
49
49
|
}
|
|
50
|
+
/** The area map's coverage, carried into the impact view that is built on it. */
|
|
51
|
+
export interface IImpactAreaCoverage {
|
|
52
|
+
/** Share of the repo the area map classified (0..1). */
|
|
53
|
+
readonly classificationRate: number;
|
|
54
|
+
/** The area map's own `degraded` verdict (rate below its configured minimum). */
|
|
55
|
+
readonly degraded: boolean;
|
|
56
|
+
/** Normalized targets no area pattern classifies — invisible to area-derived signals. */
|
|
57
|
+
readonly unclassifiedTargets: readonly string[];
|
|
58
|
+
}
|
|
50
59
|
export interface IImpactWorkspaceSummary {
|
|
51
60
|
name: string;
|
|
52
61
|
directory: string;
|
|
@@ -137,6 +146,12 @@ export interface IImpactAnalysis {
|
|
|
137
146
|
id: string;
|
|
138
147
|
name: string;
|
|
139
148
|
}[];
|
|
149
|
+
/**
|
|
150
|
+
* How far the area attribution above can be trusted. Area-derived signals
|
|
151
|
+
* (affected areas, boundary risks, `core-area`) are only as complete as the
|
|
152
|
+
* area map's classification: an unclassified target is invisible to them.
|
|
153
|
+
*/
|
|
154
|
+
areaCoverage: IImpactAreaCoverage;
|
|
140
155
|
/** Risk classification + reasons. */
|
|
141
156
|
risk: ImpactRisk;
|
|
142
157
|
riskReasons: readonly IImpactReason[];
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"impact-analysis.d.ts","sourceRoot":"","sources":["../src/impact-analysis.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,2BAA2B,CAAC;AACvE,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,eAAe,CAAC;AAC9C,OAAO,
|
|
1
|
+
{"version":3,"file":"impact-analysis.d.ts","sourceRoot":"","sources":["../src/impact-analysis.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,2BAA2B,CAAC;AACvE,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,eAAe,CAAC;AAC9C,OAAO,EACL,QAAQ,EAMT,MAAM,eAAe,CAAC;AAEvB,OAAO,EAAiC,KAAK,gBAAgB,EAAE,MAAM,gBAAgB,CAAC;AAEtF,eAAO,MAAM,sBAAsB,kCAAkC,CAAC;AAEtE,oBAAY,UAAU;IACpB,GAAG,QAAQ;IACX,MAAM,WAAW;IACjB,IAAI,SAAS;IACb,QAAQ,aAAa;CACtB;AAED,oBAAY,eAAe;IACzB,IAAI,SAAS;IACb,KAAK,UAAU;IACf,SAAS,cAAc;IACvB,KAAK,UAAU;IACf,MAAM,WAAW;IACjB,IAAI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AS,iBAAiB,EAAE,CAAC;IAC1C,iEAAiE;IACjE,WAAW,EAAE,SAAS,MAAM,EAAE,CAAC;CAChC;AAkkBD,wBAAsB,aAAa,CACjC,UAAU,EAAE,qBAAqB,EACjC,KAAK,EAAE,oBAAoB,GAC1B,OAAO,CAAC,eAAe,CAAC,CAiO1B"}
|
package/dist/impact-analysis.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { existsSync, readFileSync } from 'node:fs';
|
|
2
2
|
import * as nodePath from 'node:path';
|
|
3
|
-
import { scanImports, loadTsconfigPaths } from '@shrkcrft/boundaries';
|
|
4
|
-
import { AreaKind, buildAreaMap } from "./area-map.js";
|
|
3
|
+
import { boundaryRuleSeverity, scanImports, loadTsconfigPaths } from '@shrkcrft/boundaries';
|
|
4
|
+
import { AreaKind, areaIdOf, buildAreaMap, createAreaClassifier, formatClassificationRate, } from "./area-map.js";
|
|
5
5
|
import { rankAll } from "./task-ranker.js";
|
|
6
6
|
import { loadOwnershipRules, impactFor } from "./ownership.js";
|
|
7
7
|
export const IMPACT_ANALYSIS_SCHEMA = 'sharkcraft.impact-analysis/v2';
|
|
@@ -243,16 +243,30 @@ function detectWorkspaces(ctx) {
|
|
|
243
243
|
}
|
|
244
244
|
return [...out.values()].sort((a, b) => b.fileCount - a.fileCount);
|
|
245
245
|
}
|
|
246
|
+
/**
|
|
247
|
+
* The areas the touched files are IN: each file goes through the one
|
|
248
|
+
* classifier and is keyed by `areaIdOf`, exactly as `buildAreaMap` keys its
|
|
249
|
+
* entries, so `boundaryRisks` finds the same entry by id.
|
|
250
|
+
*
|
|
251
|
+
* A prefix match on an entry's `paths` answered a different question.
|
|
252
|
+
* `paths` holds only the top segment, so with a config pattern for
|
|
253
|
+
* `libs/<group>/core/**` EVERY `libs/…` file hit the core area and earned a
|
|
254
|
+
* false `core-area` risk, while `areaCoverage` called the same file
|
|
255
|
+
* unclassified. A touched file whose area has no map entry yet (a planned file
|
|
256
|
+
* in a new directory) still reports the area it would be in.
|
|
257
|
+
*/
|
|
246
258
|
function affectedAreaSummary(ctx) {
|
|
247
|
-
const allTouched = unique([...ctx.files]);
|
|
248
259
|
const out = new Map();
|
|
249
|
-
for (const
|
|
250
|
-
const
|
|
251
|
-
|
|
252
|
-
|
|
253
|
-
|
|
260
|
+
for (const f of unique([...ctx.files])) {
|
|
261
|
+
const classification = ctx.classify(f);
|
|
262
|
+
const id = areaIdOf(classification, f);
|
|
263
|
+
const hit = out.get(id);
|
|
264
|
+
if (hit)
|
|
265
|
+
hit.fileCount += 1;
|
|
266
|
+
else
|
|
267
|
+
out.set(id, { id, kind: classification.kind, fileCount: 1 });
|
|
254
268
|
}
|
|
255
|
-
return [...out.values()].sort((a, b) => b.fileCount - a.fileCount);
|
|
269
|
+
return [...out.values()].sort((a, b) => b.fileCount - a.fileCount || a.id.localeCompare(b.id));
|
|
256
270
|
}
|
|
257
271
|
function boundaryRisks(ctx, affected) {
|
|
258
272
|
const risks = [];
|
|
@@ -272,7 +286,8 @@ function boundaryRisks(ctx, affected) {
|
|
|
272
286
|
risks.push({
|
|
273
287
|
ruleId,
|
|
274
288
|
reason: `Affects area ${a.id}; rule ${ruleId} guards that area.`,
|
|
275
|
-
severity
|
|
289
|
+
// The ENFORCED severity — an unset one is `error` (one authority).
|
|
290
|
+
severity: boundaryRuleSeverity(rule),
|
|
276
291
|
});
|
|
277
292
|
}
|
|
278
293
|
}
|
|
@@ -377,8 +392,11 @@ function affectedPolicies(ctx, affected, boundary) {
|
|
|
377
392
|
}
|
|
378
393
|
async function ownershipImpactFor(ctx) {
|
|
379
394
|
try {
|
|
380
|
-
|
|
381
|
-
|
|
395
|
+
// The DECLARED ownership-source key — the one `shrk ownership`, `shrk
|
|
396
|
+
// owners` and the MCP ownership tools read. The old `ownership.sources`
|
|
397
|
+
// read named a key the strict schema rejects, so impact silently fell back
|
|
398
|
+
// to the defaults even when `ownershipFiles` was configured.
|
|
399
|
+
const sources = ctx.inspection.config?.ownershipFiles;
|
|
382
400
|
const { rules } = await loadOwnershipRules(ctx.inspection.projectRoot, sources);
|
|
383
401
|
if (rules.length === 0)
|
|
384
402
|
return null;
|
|
@@ -552,6 +570,9 @@ export async function analyzeImpact(inspection, input) {
|
|
|
552
570
|
}
|
|
553
571
|
const files = unique([...explicitFiles, ...planTargets, ...specifierTargets]);
|
|
554
572
|
const task = (input.task ?? '').trim() || files.join(' ') || (input.specifier ?? '');
|
|
573
|
+
// THE classifier — the one buildAreaMap keys its entries by. Affected areas,
|
|
574
|
+
// `core-area`, boundary risks and `areaCoverage` all answer through it.
|
|
575
|
+
const classify = createAreaClassifier(inspection.config?.areaMap);
|
|
555
576
|
const ctx = {
|
|
556
577
|
inspection,
|
|
557
578
|
files,
|
|
@@ -561,6 +582,7 @@ export async function analyzeImpact(inspection, input) {
|
|
|
561
582
|
maxDepth,
|
|
562
583
|
limit,
|
|
563
584
|
areaMap,
|
|
585
|
+
classify,
|
|
564
586
|
};
|
|
565
587
|
const { direct, transitive, paths } = closeDependents(reverse, files, maxDepth);
|
|
566
588
|
const directDependents = direct.slice(0, limit);
|
|
@@ -623,7 +645,7 @@ export async function analyzeImpact(inspection, input) {
|
|
|
623
645
|
const hitsPolicy = files.some((f) => f.includes('policy') || f.includes('policy-engine'));
|
|
624
646
|
const hitsTemplates = templates.length > 0 || pipelines.length > 0;
|
|
625
647
|
const ownershipReview = (ownership?.requiredReviewFiles.length ?? 0) > 0;
|
|
626
|
-
const { risk, reasons:
|
|
648
|
+
const { risk, reasons: classifiedReasons } = classifyRisk({
|
|
627
649
|
directCount: direct.length,
|
|
628
650
|
transitiveCount: transitive.length,
|
|
629
651
|
boundaryCount: boundaryConcerns.length,
|
|
@@ -636,6 +658,28 @@ export async function analyzeImpact(inspection, input) {
|
|
|
636
658
|
hitsPolicy,
|
|
637
659
|
hitsTemplates,
|
|
638
660
|
});
|
|
661
|
+
// A derived view inherits its input's coverage and prints it: affected
|
|
662
|
+
// areas, boundary risks and `core-area` are only as complete as the area
|
|
663
|
+
// classification. Targets go through the SAME classifier the map uses.
|
|
664
|
+
const areaCoverage = {
|
|
665
|
+
classificationRate: areaMap.classificationRate,
|
|
666
|
+
degraded: areaMap.degraded,
|
|
667
|
+
unclassifiedTargets: files.filter((f) => classify(f).kind === AreaKind.Unknown),
|
|
668
|
+
};
|
|
669
|
+
// It flags, it does not lower the risk: the area-derived signals may be
|
|
670
|
+
// understated, which is the opposite of reassuring.
|
|
671
|
+
const riskReasons = areaCoverage.degraded || areaCoverage.unclassifiedTargets.length > 0
|
|
672
|
+
? [
|
|
673
|
+
...classifiedReasons,
|
|
674
|
+
{
|
|
675
|
+
code: 'area-attribution-degraded',
|
|
676
|
+
message: `Area attribution ${areaCoverage.degraded ? 'degraded' : 'partial'}: ` +
|
|
677
|
+
`${formatClassificationRate(areaCoverage.classificationRate)} of the repo classified; ` +
|
|
678
|
+
`${areaCoverage.unclassifiedTargets.length}/${files.length} target(s) in no known area — ` +
|
|
679
|
+
'core/boundary/area signals may be understated (add areaMap.patterns to sharkcraft.config.ts).',
|
|
680
|
+
},
|
|
681
|
+
]
|
|
682
|
+
: classifiedReasons;
|
|
639
683
|
const truncations = [];
|
|
640
684
|
if (direct.length > limit) {
|
|
641
685
|
truncations.push({ list: 'directDependents', total: direct.length, shown: limit });
|
|
@@ -684,6 +728,7 @@ export async function analyzeImpact(inspection, input) {
|
|
|
684
728
|
suggestedReviewCommands,
|
|
685
729
|
relatedRules,
|
|
686
730
|
relatedTemplates,
|
|
731
|
+
areaCoverage,
|
|
687
732
|
risk,
|
|
688
733
|
riskReasons,
|
|
689
734
|
explanation,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"impact-render.d.ts","sourceRoot":"","sources":["../src/impact-render.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,sBAAsB,CAAC;
|
|
1
|
+
{"version":3,"file":"impact-render.d.ts","sourceRoot":"","sources":["../src/impact-render.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,sBAAsB,CAAC;AAkB5D,MAAM,WAAW,oBAAoB;IACnC,kEAAkE;IAClE,IAAI,CAAC,EAAE,OAAO,CAAC;IACf,gDAAgD;IAChD,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB;AA6BD,UAAU,SAAS;IACjB,IAAI,EAAE,MAAM,CAAC;IACb,QAAQ,EAAE,SAAS,EAAE,CAAC;CACvB;AAED,uEAAuE;AACvE,wBAAgB,eAAe,CAC7B,MAAM,EAAE,eAAe,EACvB,IAAI,GAAE;IAAE,KAAK,CAAC,EAAE,MAAM,CAAC;IAAC,KAAK,CAAC,EAAE,MAAM,CAAA;CAAO,GAC5C,SAAS,EAAE,CA0Cb;AAiCD,wBAAgB,gBAAgB,CAC9B,MAAM,EAAE,eAAe,EACvB,IAAI,GAAE,oBAAyB,GAC9B,MAAM,CAkER;AAED,wBAAgB,oBAAoB,CAClC,MAAM,EAAE,eAAe,EACvB,IAAI,GAAE,oBAAyB,GAC9B,MAAM,CA8GR;AAED,wBAAgB,gBAAgB,CAC9B,MAAM,EAAE,eAAe,EACvB,IAAI,GAAE,oBAAyB,GAC9B,MAAM,CAiIR"}
|
package/dist/impact-render.js
CHANGED
|
@@ -1,3 +1,17 @@
|
|
|
1
|
+
import { formatClassificationRate } from "./area-map.js";
|
|
2
|
+
/**
|
|
3
|
+
* `Area attribution: degraded (…)` — printed whenever the area map behind this
|
|
4
|
+
* impact view classified too little of the repo, or left a target in no area.
|
|
5
|
+
* Report only: it changes no exit, it says how far the area signals reach.
|
|
6
|
+
*/
|
|
7
|
+
function areaAttributionLine(impact) {
|
|
8
|
+
const ac = impact.areaCoverage;
|
|
9
|
+
if (!ac || (!ac.degraded && ac.unclassifiedTargets.length === 0))
|
|
10
|
+
return undefined;
|
|
11
|
+
return (`Area attribution: ${ac.degraded ? 'degraded' : 'partial'} ` +
|
|
12
|
+
`(${formatClassificationRate(ac.classificationRate)} of repo classified; ` +
|
|
13
|
+
`${ac.unclassifiedTargets.length}/${impact.normalizedTargets.length} target(s) unclassified)`);
|
|
14
|
+
}
|
|
1
15
|
function riskBadgeTag(risk) {
|
|
2
16
|
switch (risk) {
|
|
3
17
|
case 'low':
|
|
@@ -111,6 +125,9 @@ export function renderImpactText(impact, opts = {}) {
|
|
|
111
125
|
for (const r of impact.riskReasons.slice(0, 6))
|
|
112
126
|
lines.push(` - ${r.code}: ${r.message}`);
|
|
113
127
|
}
|
|
128
|
+
const areaLine = areaAttributionLine(impact);
|
|
129
|
+
if (areaLine)
|
|
130
|
+
lines.push(areaLine);
|
|
114
131
|
lines.push(`Targets (${impact.normalizedTargets.length}):`);
|
|
115
132
|
for (const f of impact.normalizedTargets.slice(0, 12))
|
|
116
133
|
lines.push(` • ${f}`);
|
|
@@ -197,6 +214,11 @@ export function renderImpactMarkdown(impact, opts = {}) {
|
|
|
197
214
|
lines.push('_None._');
|
|
198
215
|
for (const r of impact.riskReasons)
|
|
199
216
|
lines.push(`- **${r.code}** — ${r.message}`);
|
|
217
|
+
const areaLine = areaAttributionLine(impact);
|
|
218
|
+
if (areaLine) {
|
|
219
|
+
lines.push('');
|
|
220
|
+
lines.push(`> ${areaLine}`);
|
|
221
|
+
}
|
|
200
222
|
lines.push('');
|
|
201
223
|
lines.push(`## Direct dependents (${impact.directDependents.length})`);
|
|
202
224
|
lines.push('');
|
package/dist/import-hygiene.d.ts
CHANGED
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import type { IVerdictCoverage } from '@shrkcrft/core';
|
|
1
2
|
export declare const IMPORT_HYGIENE_SCHEMA = "sharkcraft.import-hygiene/v1";
|
|
2
3
|
export declare enum ImportHygieneFindingKind {
|
|
3
4
|
InlineTypeImport = "inline-type-import",
|
|
@@ -24,6 +25,18 @@ export interface IImportHygieneReport {
|
|
|
24
25
|
readonly counts: Readonly<Record<string, number>>;
|
|
25
26
|
readonly verdict: 'ok' | 'warnings' | 'errors';
|
|
26
27
|
readonly nextCommand: string;
|
|
28
|
+
/**
|
|
29
|
+
* Source files the check was asked to read — the subject list
|
|
30
|
+
* (`importHygieneSubjects` for an explicit `files` request, the tree walk
|
|
31
|
+
* otherwise). Always set by `buildImportHygieneReport`.
|
|
32
|
+
*/
|
|
33
|
+
readonly filesInScope?: number;
|
|
34
|
+
/**
|
|
35
|
+
* In-scope files that could not be read (project-relative). Their imports
|
|
36
|
+
* were never checked, so a verdict over them is NOT VERIFIED — never "ok".
|
|
37
|
+
* Always set by `buildImportHygieneReport`.
|
|
38
|
+
*/
|
|
39
|
+
readonly unread?: readonly string[];
|
|
27
40
|
}
|
|
28
41
|
export interface IImportHygieneOptions {
|
|
29
42
|
/** Restrict scan to a set of relative file paths (e.g. changed files). */
|
|
@@ -58,7 +71,23 @@ export interface IAllowlistEntry {
|
|
|
58
71
|
/** Optional ISO date after which this allowlist entry should be re-evaluated. */
|
|
59
72
|
readonly expiresAt?: string;
|
|
60
73
|
}
|
|
74
|
+
/**
|
|
75
|
+
* The files of `files` import hygiene actually READS — existing `.ts`/`.tsx`
|
|
76
|
+
* sources, no declarations, no test fixtures (absolute paths). THE authority
|
|
77
|
+
* for "did the hygiene check examine anything?": `buildImportHygieneReport`
|
|
78
|
+
* scans exactly this list, and finish / diff-check count it, so a changeset of
|
|
79
|
+
* deleted files, `.js` edits or test fixtures can never read as a hygiene pass
|
|
80
|
+
* over nothing (round 11).
|
|
81
|
+
*/
|
|
82
|
+
export declare function importHygieneSubjects(projectRoot: string, files: readonly string[]): string[];
|
|
61
83
|
export declare function buildImportHygieneReport(projectRoot: string, options?: IImportHygieneOptions): IImportHygieneReport;
|
|
84
|
+
/**
|
|
85
|
+
* What an import-hygiene run examined, as one coverage record: in-scope files
|
|
86
|
+
* read of in-scope files, naming each unreadable one. THE fold finish,
|
|
87
|
+
* `diff-check` (CLI + MCP) and `check imports` settle on, so an unreadable
|
|
88
|
+
* changed file is NOT VERIFIED (2) on every surface — never a clean pass.
|
|
89
|
+
*/
|
|
90
|
+
export declare function importHygieneCoverage(report: Pick<IImportHygieneReport, 'filesInScope' | 'unread'>, unit?: string): IVerdictCoverage;
|
|
62
91
|
export interface IImportHygieneAllowlistDraft {
|
|
63
92
|
readonly schema: 'sharkcraft.import-hygiene-allowlist/v1';
|
|
64
93
|
readonly comment: string;
|
|
@@ -89,5 +118,10 @@ export interface IEmitAllowlistOptions {
|
|
|
89
118
|
* patterns require per-case justification.
|
|
90
119
|
*/
|
|
91
120
|
export declare function emitImportHygieneAllowlistDraft(report: IImportHygieneReport, options?: IEmitAllowlistOptions): IImportHygieneAllowlistDraft;
|
|
92
|
-
|
|
121
|
+
/**
|
|
122
|
+
* Text rendering. `headline` overrides the header word — the CLI passes the
|
|
123
|
+
* SETTLED verdict (`NOT VERIFIED`) so a run that examined nothing, or not
|
|
124
|
+
* everything, never prints `(OK)` above its own NOT VERIFIED line.
|
|
125
|
+
*/
|
|
126
|
+
export declare function renderImportHygieneText(report: IImportHygieneReport, headline?: string): string;
|
|
93
127
|
//# sourceMappingURL=import-hygiene.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"import-hygiene.d.ts","sourceRoot":"","sources":["../src/import-hygiene.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"import-hygiene.d.ts","sourceRoot":"","sources":["../src/import-hygiene.ts"],"names":[],"mappings":"AAqBA,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,gBAAgB,CAAC;AAEvD,eAAO,MAAM,qBAAqB,iCAAiC,CAAC;AAEpE,oBAAY,wBAAwB;IAClC,gBAAgB,uBAAuB;IACvC,cAAc,oBAAoB;IAClC,aAAa,mBAAmB;CACjC;AAED,MAAM,MAAM,qBAAqB,GAAG,MAAM,GAAG,SAAS,GAAG,OAAO,CAAC;AAEjE,MAAM,WAAW,qBAAqB;IACpC,QAAQ,CAAC,IAAI,EAAE,MAAM,CAAC;IACtB,QAAQ,CAAC,IAAI,EAA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