@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,40 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* One entry as emitted into the imported-agent-rules draft. Strips importer
|
|
3
|
+
* machinery (KnowledgeType / KnowledgePriority enums) to plain strings that
|
|
4
|
+
* the draft renderer can splat into the generated TypeScript without
|
|
5
|
+
* needing to import importer types at runtime.
|
|
6
|
+
*/
|
|
7
|
+
export interface IDraftAgentEntry {
|
|
8
|
+
id: string;
|
|
9
|
+
type: string;
|
|
10
|
+
title: string;
|
|
11
|
+
content: string;
|
|
12
|
+
tags: readonly string[];
|
|
13
|
+
scope?: readonly string[];
|
|
14
|
+
source?: {
|
|
15
|
+
origin: string;
|
|
16
|
+
};
|
|
17
|
+
/** True when the importer flagged the bullet as ambiguous. */
|
|
18
|
+
flaggedAmbiguous?: boolean;
|
|
19
|
+
}
|
|
20
|
+
export interface IImportedAgentRulesBundle {
|
|
21
|
+
sourceFiles: readonly string[];
|
|
22
|
+
entries: readonly IDraftAgentEntry[];
|
|
23
|
+
warnings: readonly string[];
|
|
24
|
+
/** Per-source counts the report can echo back. */
|
|
25
|
+
perSource: readonly {
|
|
26
|
+
kind: 'agents-md' | 'claude-md' | 'cursor-rules';
|
|
27
|
+
path: string;
|
|
28
|
+
entryCount: number;
|
|
29
|
+
}[];
|
|
30
|
+
}
|
|
31
|
+
export interface IImportAgentRulesOptions {
|
|
32
|
+
projectRoot: string;
|
|
33
|
+
}
|
|
34
|
+
/**
|
|
35
|
+
* Probe AGENTS.md, CLAUDE.md, and .cursor/rules under projectRoot and return
|
|
36
|
+
* a single bundle the onboarding flow can render to a draft. Read-only:
|
|
37
|
+
* never writes a file.
|
|
38
|
+
*/
|
|
39
|
+
export declare function importAgentRulesForOnboarding(options: IImportAgentRulesOptions): IImportedAgentRulesBundle;
|
|
40
|
+
//# sourceMappingURL=onboarding-agent-import.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"onboarding-agent-import.d.ts","sourceRoot":"","sources":["../src/onboarding-agent-import.ts"],"names":[],"mappings":"AAUA;;;;;GAKG;AACH,MAAM,WAAW,gBAAgB;IAC/B,EAAE,EAAE,MAAM,CAAC;IACX,IAAI,EAAE,MAAM,CAAC;IACb,KAAK,EAAE,MAAM,CAAC;IACd,OAAO,EAAE,MAAM,CAAC;IAChB,IAAI,EAAE,SAAS,MAAM,EAAE,CAAC;IACxB,KAAK,CAAC,EAAE,SAAS,MAAM,EAAE,CAAC;IAC1B,MAAM,CAAC,EAAE;QAAE,MAAM,EAAE,MAAM,CAAA;KAAE,CAAC;IAC5B,8DAA8D;IAC9D,gBAAgB,CAAC,EAAE,OAAO,CAAC;CAC5B;AAED,MAAM,WAAW,yBAAyB;IACxC,WAAW,EAAE,SAAS,MAAM,EAAE,CAAC;IAC/B,OAAO,EAAE,SAAS,gBAAgB,EAAE,CAAC;IACrC,QAAQ,EAAE,SAAS,MAAM,EAAE,CAAC;IAC5B,kDAAkD;IAClD,SAAS,EAAE,SAAS;QAClB,IAAI,EAAE,WAAW,GAAG,WAAW,GAAG,cAAc,CAAC;QACjD,IAAI,EAAE,MAAM,CAAC;QACb,UAAU,EAAE,MAAM,CAAC;KACpB,EAAE,CAAC;CACL;AAED,MAAM,WAAW,wBAAwB;IACvC,WAAW,EAAE,MAAM,CAAC;CACrB;AAED;;;;GAIG;AACH,wBAAgB,6BAA6B,CAC3C,OAAO,EAAE,wBAAwB,GAChC,yBAAyB,CA+D3B"}
|
|
@@ -0,0 +1,114 @@
|
|
|
1
|
+
import { existsSync, statSync } from 'node:fs';
|
|
2
|
+
import * as nodePath from 'node:path';
|
|
3
|
+
import { importAgentsMd, importClaudeMd, importCursorRules, } from '@shrkcrft/importer';
|
|
4
|
+
/**
|
|
5
|
+
* Probe AGENTS.md, CLAUDE.md, and .cursor/rules under projectRoot and return
|
|
6
|
+
* a single bundle the onboarding flow can render to a draft. Read-only:
|
|
7
|
+
* never writes a file.
|
|
8
|
+
*/
|
|
9
|
+
export function importAgentRulesForOnboarding(options) {
|
|
10
|
+
const root = options.projectRoot;
|
|
11
|
+
const sourceFiles = [];
|
|
12
|
+
const entries = [];
|
|
13
|
+
const warnings = [];
|
|
14
|
+
const perSource = [];
|
|
15
|
+
// AGENTS.md
|
|
16
|
+
const agentsPath = nodePath.join(root, 'AGENTS.md');
|
|
17
|
+
if (existsSync(agentsPath)) {
|
|
18
|
+
const result = importAgentsMd({ filePath: agentsPath, projectRoot: root });
|
|
19
|
+
sourceFiles.push(...result.sourceFiles);
|
|
20
|
+
const mapped = result.entries.map((e) => toDraftEntry(e, 'agents-md'));
|
|
21
|
+
entries.push(...mapped);
|
|
22
|
+
for (const w of result.warnings)
|
|
23
|
+
warnings.push(formatWarning(w));
|
|
24
|
+
perSource.push({
|
|
25
|
+
kind: 'agents-md',
|
|
26
|
+
path: 'AGENTS.md',
|
|
27
|
+
entryCount: mapped.length,
|
|
28
|
+
});
|
|
29
|
+
}
|
|
30
|
+
// CLAUDE.md
|
|
31
|
+
const claudePath = nodePath.join(root, 'CLAUDE.md');
|
|
32
|
+
if (existsSync(claudePath)) {
|
|
33
|
+
const result = importClaudeMd({ filePath: claudePath, projectRoot: root });
|
|
34
|
+
sourceFiles.push(...result.sourceFiles);
|
|
35
|
+
const mapped = result.entries.map((e) => toDraftEntry(e, 'claude-md'));
|
|
36
|
+
entries.push(...mapped);
|
|
37
|
+
for (const w of result.warnings)
|
|
38
|
+
warnings.push(formatWarning(w));
|
|
39
|
+
perSource.push({
|
|
40
|
+
kind: 'claude-md',
|
|
41
|
+
path: 'CLAUDE.md',
|
|
42
|
+
entryCount: mapped.length,
|
|
43
|
+
});
|
|
44
|
+
}
|
|
45
|
+
// .cursor/rules — directory; the cursor importer walks the dir itself.
|
|
46
|
+
const cursorRoot = nodePath.join(root, '.cursor', 'rules');
|
|
47
|
+
if (existsSync(cursorRoot) && safeIsDir(cursorRoot)) {
|
|
48
|
+
const result = importCursorRules({
|
|
49
|
+
filePath: cursorRoot,
|
|
50
|
+
projectRoot: root,
|
|
51
|
+
});
|
|
52
|
+
sourceFiles.push(...result.sourceFiles);
|
|
53
|
+
const mapped = result.entries.map((e) => toDraftEntry(e, 'cursor-rules'));
|
|
54
|
+
entries.push(...mapped);
|
|
55
|
+
for (const w of result.warnings)
|
|
56
|
+
warnings.push(formatWarning(w));
|
|
57
|
+
perSource.push({
|
|
58
|
+
kind: 'cursor-rules',
|
|
59
|
+
path: '.cursor/rules',
|
|
60
|
+
entryCount: mapped.length,
|
|
61
|
+
});
|
|
62
|
+
}
|
|
63
|
+
return {
|
|
64
|
+
sourceFiles: dedupe(sourceFiles),
|
|
65
|
+
entries: dedupeById(entries),
|
|
66
|
+
warnings,
|
|
67
|
+
perSource,
|
|
68
|
+
};
|
|
69
|
+
}
|
|
70
|
+
// ── Helpers ──────────────────────────────────────────────────────────────
|
|
71
|
+
function toDraftEntry(entry, source) {
|
|
72
|
+
const flaggedAmbiguous = (entry.importerNotes ?? []).some((n) => n.toLowerCase().includes('ambiguous'));
|
|
73
|
+
return {
|
|
74
|
+
id: prefixId(entry.id, source),
|
|
75
|
+
type: String(entry.type),
|
|
76
|
+
title: entry.title,
|
|
77
|
+
content: entry.content,
|
|
78
|
+
tags: [...new Set(['imported', source, ...entry.tags])],
|
|
79
|
+
...(entry.origin ? { source: { origin: entry.origin } } : {}),
|
|
80
|
+
...(flaggedAmbiguous ? { flaggedAmbiguous: true } : {}),
|
|
81
|
+
};
|
|
82
|
+
}
|
|
83
|
+
function prefixId(id, source) {
|
|
84
|
+
if (id.startsWith(`imported.${source}.`))
|
|
85
|
+
return id;
|
|
86
|
+
if (id.includes('.'))
|
|
87
|
+
return `imported.${source}.${id}`;
|
|
88
|
+
return `imported.${source}.${id}`;
|
|
89
|
+
}
|
|
90
|
+
function formatWarning(w) {
|
|
91
|
+
return `${w.origin}: ${w.message}`;
|
|
92
|
+
}
|
|
93
|
+
function dedupe(xs) {
|
|
94
|
+
return [...new Set(xs)];
|
|
95
|
+
}
|
|
96
|
+
function dedupeById(xs) {
|
|
97
|
+
const seen = new Set();
|
|
98
|
+
const out = [];
|
|
99
|
+
for (const e of xs) {
|
|
100
|
+
if (seen.has(e.id))
|
|
101
|
+
continue;
|
|
102
|
+
seen.add(e.id);
|
|
103
|
+
out.push(e);
|
|
104
|
+
}
|
|
105
|
+
return out;
|
|
106
|
+
}
|
|
107
|
+
function safeIsDir(p) {
|
|
108
|
+
try {
|
|
109
|
+
return statSync(p).isDirectory();
|
|
110
|
+
}
|
|
111
|
+
catch {
|
|
112
|
+
return false;
|
|
113
|
+
}
|
|
114
|
+
}
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
import type { ISharkcraftInspection } from './sharkcraft-inspector.js';
|
|
2
|
+
import type { IOnboardingPlan } from './onboarding.js';
|
|
3
|
+
export type DiffStatus = 'already-covered' | 'missing' | 'conflicting' | 'low-confidence-only';
|
|
4
|
+
export interface IDiffEntry {
|
|
5
|
+
id: string;
|
|
6
|
+
status: DiffStatus;
|
|
7
|
+
/** Short description of what this entry would add. */
|
|
8
|
+
summary: string;
|
|
9
|
+
/** Optional manual merge hint (e.g. file to edit). */
|
|
10
|
+
mergeHint?: string;
|
|
11
|
+
}
|
|
12
|
+
export interface IDiffCategory {
|
|
13
|
+
/** Category name shown in the report. */
|
|
14
|
+
name: string;
|
|
15
|
+
entries: readonly IDiffEntry[];
|
|
16
|
+
counts: {
|
|
17
|
+
alreadyCovered: number;
|
|
18
|
+
missing: number;
|
|
19
|
+
conflicting: number;
|
|
20
|
+
lowConfidenceOnly: number;
|
|
21
|
+
};
|
|
22
|
+
}
|
|
23
|
+
export interface IOnboardingDiff {
|
|
24
|
+
rules: IDiffCategory;
|
|
25
|
+
paths: IDiffCategory;
|
|
26
|
+
templates: IDiffCategory;
|
|
27
|
+
pipelines: IDiffCategory;
|
|
28
|
+
boundaries: IDiffCategory;
|
|
29
|
+
verificationCommands: IDiffCategory;
|
|
30
|
+
/** Suggested manual steps the user can run to adopt the missing entries. */
|
|
31
|
+
manualMergeSteps: readonly string[];
|
|
32
|
+
}
|
|
33
|
+
/**
|
|
34
|
+
* Compare the inferred plan against the live SharkCraft configuration.
|
|
35
|
+
* Does NOT mutate anything. The output is intended for the `--diff` CLI flag.
|
|
36
|
+
*/
|
|
37
|
+
export declare function buildOnboardingDiff(inspection: ISharkcraftInspection, plan: IOnboardingPlan): IOnboardingDiff;
|
|
38
|
+
export declare function renderOnboardingDiff(diff: IOnboardingDiff): string;
|
|
39
|
+
//# sourceMappingURL=onboarding-diff.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"onboarding-diff.d.ts","sourceRoot":"","sources":["../src/onboarding-diff.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,2BAA2B,CAAC;AACvE,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,iBAAiB,CAAC;AAEvD,MAAM,MAAM,UAAU,GAAG,iBAAiB,GAAG,SAAS,GAAG,aAAa,GAAG,qBAAqB,CAAC;AAE/F,MAAM,WAAW,UAAU;IACzB,EAAE,EAAE,MAAM,CAAC;IACX,MAAM,EAAE,UAAU,CAAC;IACnB,sDAAsD;IACtD,OAAO,EAAE,MAAM,CAAC;IAChB,sDAAsD;IACtD,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB;AAED,MAAM,WAAW,aAAa;IAC5B,yCAAyC;IACzC,IAAI,EAAE,MAAM,CAAC;IACb,OAAO,EAAE,SAAS,UAAU,EAAE,CAAC;IAC/B,MAAM,EAAE;QACN,cAAc,EAAE,MAAM,CAAC;QACvB,OAAO,EAAE,MAAM,CAAC;QAChB,WAAW,EAAE,MAAM,CAAC;QACpB,iBAAiB,EAAE,MAAM,CAAC;KAC3B,CAAC;CACH;AAED,MAAM,WAAW,eAAe;IAC9B,KAAK,EAAE,aAAa,CAAC;IACrB,KAAK,EAAE,aAAa,CAAC;IACrB,SAAS,EAAE,aAAa,CAAC;IACzB,SAAS,EAAE,aAAa,CAAC;IACzB,UAAU,EAAE,aAAa,CAAC;IAC1B,oBAAoB,EAAE,aAAa,CAAC;IACpC,4EAA4E;IAC5E,gBAAgB,EAAE,SAAS,MAAM,EAAE,CAAC;CACrC;AAED;;;GAGG;AACH,wBAAgB,mBAAmB,CACjC,UAAU,EAAE,qBAAqB,EACjC,IAAI,EAAE,eAAe,GACpB,eAAe,CAkKjB;AAiDD,wBAAgB,oBAAoB,CAAC,IAAI,EAAE,eAAe,GAAG,MAAM,CA0ClE"}
|
|
@@ -0,0 +1,240 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Compare the inferred plan against the live SharkCraft configuration.
|
|
3
|
+
* Does NOT mutate anything. The output is intended for the `--diff` CLI flag.
|
|
4
|
+
*/
|
|
5
|
+
export function buildOnboardingDiff(inspection, plan) {
|
|
6
|
+
// ── Rules ─────────────────────────────────────────────────────────────
|
|
7
|
+
const liveRuleIds = new Set(inspection.ruleService.list().map((r) => r.id));
|
|
8
|
+
const rulesEntries = [];
|
|
9
|
+
for (const r of plan.inferredRules) {
|
|
10
|
+
if (liveRuleIds.has(r.id)) {
|
|
11
|
+
rulesEntries.push({
|
|
12
|
+
id: r.id,
|
|
13
|
+
status: 'already-covered',
|
|
14
|
+
summary: `Rule ${r.id} already present in sharkcraft/rules.ts.`,
|
|
15
|
+
});
|
|
16
|
+
}
|
|
17
|
+
else {
|
|
18
|
+
rulesEntries.push({
|
|
19
|
+
id: r.id,
|
|
20
|
+
status: 'missing',
|
|
21
|
+
summary: `${r.priority} priority — ${r.title}`,
|
|
22
|
+
mergeHint: 'Copy keepers from sharkcraft/onboarding/inferred-rules.draft.ts into sharkcraft/rules.ts.',
|
|
23
|
+
});
|
|
24
|
+
}
|
|
25
|
+
}
|
|
26
|
+
// ── Paths ─────────────────────────────────────────────────────────────
|
|
27
|
+
const livePathIds = new Set(inspection.pathService.list().map((p) => p.id));
|
|
28
|
+
const pathsEntries = [];
|
|
29
|
+
for (const p of plan.inferredPathConventions) {
|
|
30
|
+
if (livePathIds.has(p.id)) {
|
|
31
|
+
pathsEntries.push({
|
|
32
|
+
id: p.id,
|
|
33
|
+
status: 'already-covered',
|
|
34
|
+
summary: `Path convention ${p.id} already present.`,
|
|
35
|
+
});
|
|
36
|
+
}
|
|
37
|
+
else {
|
|
38
|
+
pathsEntries.push({
|
|
39
|
+
id: p.id,
|
|
40
|
+
status: 'missing',
|
|
41
|
+
summary: p.title,
|
|
42
|
+
mergeHint: 'Add to sharkcraft/paths.ts from the draft.',
|
|
43
|
+
});
|
|
44
|
+
}
|
|
45
|
+
}
|
|
46
|
+
// ── Templates ─────────────────────────────────────────────────────────
|
|
47
|
+
const liveTemplateIds = new Set(inspection.templateRegistry.list().map((t) => t.id));
|
|
48
|
+
const templatesEntries = [];
|
|
49
|
+
for (const t of plan.inferredTemplateCandidates) {
|
|
50
|
+
// High-confidence templates with scaffolds are "missing" candidates.
|
|
51
|
+
// Low-confidence templates without scaffolds are flagged as such.
|
|
52
|
+
const live = liveTemplateIds.has(t.id) || liveTemplateIds.has(t.scaffold?.id ?? '');
|
|
53
|
+
if (live) {
|
|
54
|
+
templatesEntries.push({
|
|
55
|
+
id: t.id,
|
|
56
|
+
status: 'already-covered',
|
|
57
|
+
summary: `Template ${t.id} already registered.`,
|
|
58
|
+
});
|
|
59
|
+
}
|
|
60
|
+
else if (t.confidence === 'low' && !t.scaffold) {
|
|
61
|
+
templatesEntries.push({
|
|
62
|
+
id: t.id,
|
|
63
|
+
status: 'low-confidence-only',
|
|
64
|
+
summary: `${t.name} — only ${t.reason}; not promoted.`,
|
|
65
|
+
mergeHint: 'Add another sample file or scaffold manually before promoting.',
|
|
66
|
+
});
|
|
67
|
+
}
|
|
68
|
+
else {
|
|
69
|
+
templatesEntries.push({
|
|
70
|
+
id: t.id,
|
|
71
|
+
status: 'missing',
|
|
72
|
+
summary: t.scaffold
|
|
73
|
+
? `${t.name} scaffold available in inferred-templates.draft.ts (${t.confidence} confidence).`
|
|
74
|
+
: `${t.name} candidate — fill in body before adopting.`,
|
|
75
|
+
mergeHint: t.scaffold
|
|
76
|
+
? 'Move scaffold.content into sharkcraft/templates.ts via defineTemplate().'
|
|
77
|
+
: 'Re-run `shrk onboard --write-drafts --scaffold-templates` to draft the body.',
|
|
78
|
+
});
|
|
79
|
+
}
|
|
80
|
+
}
|
|
81
|
+
// ── Pipelines ─────────────────────────────────────────────────────────
|
|
82
|
+
const livePipelineIds = new Set(inspection.pipelineRegistry.list().map((p) => p.id));
|
|
83
|
+
const pipelinesEntries = [];
|
|
84
|
+
for (const p of plan.inferredPipelines) {
|
|
85
|
+
if (livePipelineIds.has(p.id)) {
|
|
86
|
+
pipelinesEntries.push({
|
|
87
|
+
id: p.id,
|
|
88
|
+
status: 'already-covered',
|
|
89
|
+
summary: `Pipeline ${p.id} already present.`,
|
|
90
|
+
});
|
|
91
|
+
}
|
|
92
|
+
else {
|
|
93
|
+
pipelinesEntries.push({
|
|
94
|
+
id: p.id,
|
|
95
|
+
status: 'missing',
|
|
96
|
+
summary: p.title,
|
|
97
|
+
mergeHint: 'Add to sharkcraft/pipelines.ts via definePipeline().',
|
|
98
|
+
});
|
|
99
|
+
}
|
|
100
|
+
}
|
|
101
|
+
// ── Boundary rules ────────────────────────────────────────────────────
|
|
102
|
+
const liveBoundaryIds = new Set(inspection.boundaryRegistry.list().map((b) => b.id));
|
|
103
|
+
const boundariesEntries = [];
|
|
104
|
+
for (const b of plan.inferredBoundaryRules) {
|
|
105
|
+
if (liveBoundaryIds.has(b.id)) {
|
|
106
|
+
boundariesEntries.push({
|
|
107
|
+
id: b.id,
|
|
108
|
+
status: 'already-covered',
|
|
109
|
+
summary: `Boundary rule ${b.id} already registered.`,
|
|
110
|
+
});
|
|
111
|
+
}
|
|
112
|
+
else {
|
|
113
|
+
boundariesEntries.push({
|
|
114
|
+
id: b.id,
|
|
115
|
+
status: 'missing',
|
|
116
|
+
summary: b.title,
|
|
117
|
+
mergeHint: 'Add the rule to sharkcraft/boundaries.ts (or your pack) and register via boundaryFiles.',
|
|
118
|
+
});
|
|
119
|
+
}
|
|
120
|
+
}
|
|
121
|
+
// ── Verification commands ─────────────────────────────────────────────
|
|
122
|
+
const liveVerificationIds = collectLiveVerificationIds(inspection);
|
|
123
|
+
const verificationEntries = [];
|
|
124
|
+
for (const v of plan.inferredVerificationCommands) {
|
|
125
|
+
if (liveVerificationIds.has(v.id)) {
|
|
126
|
+
verificationEntries.push({
|
|
127
|
+
id: v.id,
|
|
128
|
+
status: 'already-covered',
|
|
129
|
+
summary: `Verification "${v.id}" already configured.`,
|
|
130
|
+
});
|
|
131
|
+
}
|
|
132
|
+
else {
|
|
133
|
+
verificationEntries.push({
|
|
134
|
+
id: v.id,
|
|
135
|
+
status: 'missing',
|
|
136
|
+
summary: `${v.label} (${v.command})`,
|
|
137
|
+
mergeHint: 'Add to sharkcraft.config.ts verificationCommands[] to make it trusted for `apply --validate`.',
|
|
138
|
+
});
|
|
139
|
+
}
|
|
140
|
+
}
|
|
141
|
+
const manualMergeSteps = buildManualMergeSteps([
|
|
142
|
+
{ name: 'rules', entries: rulesEntries },
|
|
143
|
+
{ name: 'paths', entries: pathsEntries },
|
|
144
|
+
{ name: 'templates', entries: templatesEntries },
|
|
145
|
+
{ name: 'pipelines', entries: pipelinesEntries },
|
|
146
|
+
{ name: 'boundaries', entries: boundariesEntries },
|
|
147
|
+
{ name: 'verification commands', entries: verificationEntries },
|
|
148
|
+
]);
|
|
149
|
+
return {
|
|
150
|
+
rules: toCategory('Rules', rulesEntries),
|
|
151
|
+
paths: toCategory('Path conventions', pathsEntries),
|
|
152
|
+
templates: toCategory('Templates', templatesEntries),
|
|
153
|
+
pipelines: toCategory('Pipelines', pipelinesEntries),
|
|
154
|
+
boundaries: toCategory('Boundary rules', boundariesEntries),
|
|
155
|
+
verificationCommands: toCategory('Verification commands', verificationEntries),
|
|
156
|
+
manualMergeSteps,
|
|
157
|
+
};
|
|
158
|
+
}
|
|
159
|
+
function toCategory(name, entries) {
|
|
160
|
+
const counts = {
|
|
161
|
+
alreadyCovered: 0,
|
|
162
|
+
missing: 0,
|
|
163
|
+
conflicting: 0,
|
|
164
|
+
lowConfidenceOnly: 0,
|
|
165
|
+
};
|
|
166
|
+
for (const e of entries) {
|
|
167
|
+
if (e.status === 'already-covered')
|
|
168
|
+
counts.alreadyCovered += 1;
|
|
169
|
+
else if (e.status === 'missing')
|
|
170
|
+
counts.missing += 1;
|
|
171
|
+
else if (e.status === 'conflicting')
|
|
172
|
+
counts.conflicting += 1;
|
|
173
|
+
else if (e.status === 'low-confidence-only')
|
|
174
|
+
counts.lowConfidenceOnly += 1;
|
|
175
|
+
}
|
|
176
|
+
return { name, entries, counts };
|
|
177
|
+
}
|
|
178
|
+
function collectLiveVerificationIds(inspection) {
|
|
179
|
+
const out = new Set();
|
|
180
|
+
const cfg = inspection.config;
|
|
181
|
+
for (const vc of cfg?.verificationCommands ?? []) {
|
|
182
|
+
if (typeof vc?.id === 'string')
|
|
183
|
+
out.add(vc.id);
|
|
184
|
+
}
|
|
185
|
+
return out;
|
|
186
|
+
}
|
|
187
|
+
function buildManualMergeSteps(categories) {
|
|
188
|
+
const out = [];
|
|
189
|
+
for (const c of categories) {
|
|
190
|
+
const missing = c.entries.filter((e) => e.status === 'missing').length;
|
|
191
|
+
if (missing > 0) {
|
|
192
|
+
out.push(`Review ${missing} missing ${c.name} entr${missing === 1 ? 'y' : 'ies'} in the draft and copy keepers into the live config.`);
|
|
193
|
+
}
|
|
194
|
+
}
|
|
195
|
+
if (out.length === 0) {
|
|
196
|
+
out.push('No missing entries — the live config already covers the inferred plan.');
|
|
197
|
+
}
|
|
198
|
+
return out;
|
|
199
|
+
}
|
|
200
|
+
export function renderOnboardingDiff(diff) {
|
|
201
|
+
const out = [];
|
|
202
|
+
out.push('# SharkCraft onboarding diff');
|
|
203
|
+
out.push('');
|
|
204
|
+
out.push('Compares the inferred plan against the live SharkCraft config. Nothing is changed.');
|
|
205
|
+
out.push('');
|
|
206
|
+
for (const cat of [
|
|
207
|
+
diff.rules,
|
|
208
|
+
diff.paths,
|
|
209
|
+
diff.templates,
|
|
210
|
+
diff.pipelines,
|
|
211
|
+
diff.boundaries,
|
|
212
|
+
diff.verificationCommands,
|
|
213
|
+
]) {
|
|
214
|
+
out.push(`## ${cat.name}`);
|
|
215
|
+
out.push('');
|
|
216
|
+
out.push(`- already covered: ${cat.counts.alreadyCovered}` +
|
|
217
|
+
`, missing: ${cat.counts.missing}` +
|
|
218
|
+
`, low-confidence only: ${cat.counts.lowConfidenceOnly}` +
|
|
219
|
+
`, conflicting: ${cat.counts.conflicting}`);
|
|
220
|
+
out.push('');
|
|
221
|
+
if (cat.entries.length === 0) {
|
|
222
|
+
out.push('_No entries._');
|
|
223
|
+
out.push('');
|
|
224
|
+
continue;
|
|
225
|
+
}
|
|
226
|
+
for (const e of cat.entries) {
|
|
227
|
+
out.push(`- **${e.id}** — ${e.status}`);
|
|
228
|
+
out.push(` - ${e.summary}`);
|
|
229
|
+
if (e.mergeHint)
|
|
230
|
+
out.push(` - hint: ${e.mergeHint}`);
|
|
231
|
+
}
|
|
232
|
+
out.push('');
|
|
233
|
+
}
|
|
234
|
+
out.push('## Suggested manual merge steps');
|
|
235
|
+
out.push('');
|
|
236
|
+
for (const s of diff.manualMergeSteps)
|
|
237
|
+
out.push(`- ${s}`);
|
|
238
|
+
out.push('');
|
|
239
|
+
return out.join('\n');
|
|
240
|
+
}
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
import type { IOnboardingPlan } from './onboarding.js';
|
|
2
|
+
import type { IImportedAgentRulesBundle } from './onboarding-agent-import.js';
|
|
3
|
+
export interface IWrittenDraft {
|
|
4
|
+
path: string;
|
|
5
|
+
bytes: number;
|
|
6
|
+
}
|
|
7
|
+
export interface IWriteOnboardingDraftsOptions {
|
|
8
|
+
projectRoot: string;
|
|
9
|
+
/** Override the output directory. Default: `<projectRoot>/sharkcraft/onboarding`. */
|
|
10
|
+
outDir?: string;
|
|
11
|
+
/**
|
|
12
|
+
* When provided, write an additional `imported-agent-rules.draft.ts` file
|
|
13
|
+
* containing the entries parsed from AGENTS.md / CLAUDE.md / .cursor/rules.
|
|
14
|
+
* The file is still under the onboarding/ subdir — never written to rules.ts.
|
|
15
|
+
*/
|
|
16
|
+
importedAgentRules?: IImportedAgentRulesBundle;
|
|
17
|
+
}
|
|
18
|
+
export interface IWriteOnboardingDraftsResult {
|
|
19
|
+
outDir: string;
|
|
20
|
+
files: IWrittenDraft[];
|
|
21
|
+
}
|
|
22
|
+
/**
|
|
23
|
+
* Write onboarding drafts under sharkcraft/onboarding/. This function NEVER
|
|
24
|
+
* writes outside that subdirectory (the caller can override the location, but
|
|
25
|
+
* the function refuses any path that escapes the resolved outDir).
|
|
26
|
+
*/
|
|
27
|
+
export declare function writeOnboardingDrafts(plan: IOnboardingPlan, options: IWriteOnboardingDraftsOptions): IWriteOnboardingDraftsResult;
|
|
28
|
+
//# sourceMappingURL=onboarding-drafts.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"onboarding-drafts.d.ts","sourceRoot":"","sources":["../src/onboarding-drafts.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,eAAe,EAA8B,MAAM,iBAAiB,CAAC;AAEnF,OAAO,KAAK,EAAE,yBAAyB,EAAE,MAAM,8BAA8B,CAAC;AAE9E,MAAM,WAAW,aAAa;IAC5B,IAAI,EAAE,MAAM,CAAC;IACb,KAAK,EAAE,MAAM,CAAC;CACf;AAED,MAAM,WAAW,6BAA6B;IAC5C,WAAW,EAAE,MAAM,CAAC;IACpB,qFAAqF;IACrF,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB;;;;OAIG;IACH,kBAAkB,CAAC,EAAE,yBAAyB,CAAC;CAChD;AAED,MAAM,WAAW,4BAA4B;IAC3C,MAAM,EAAE,MAAM,CAAC;IACf,KAAK,EAAE,aAAa,EAAE,CAAC;CACxB;AAED;;;;GAIG;AACH,wBAAgB,qBAAqB,CACnC,IAAI,EAAE,eAAe,EACrB,OAAO,EAAE,6BAA6B,GACrC,4BAA4B,CA+B9B"}
|