@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,234 @@
|
|
|
1
|
+
import { existsSync, mkdirSync, writeFileSync } from 'node:fs';
|
|
2
|
+
import * as nodePath from 'node:path';
|
|
3
|
+
import { renderOnboardingReport } from "./onboarding-report.js";
|
|
4
|
+
/**
|
|
5
|
+
* Write onboarding drafts under sharkcraft/onboarding/. This function NEVER
|
|
6
|
+
* writes outside that subdirectory (the caller can override the location, but
|
|
7
|
+
* the function refuses any path that escapes the resolved outDir).
|
|
8
|
+
*/
|
|
9
|
+
export function writeOnboardingDrafts(plan, options) {
|
|
10
|
+
const outDir = nodePath.resolve(options.outDir ??
|
|
11
|
+
nodePath.join(options.projectRoot, 'sharkcraft', 'onboarding'));
|
|
12
|
+
ensureDir(outDir);
|
|
13
|
+
const files = [];
|
|
14
|
+
const write = (name, body) => {
|
|
15
|
+
const full = nodePath.join(outDir, name);
|
|
16
|
+
// Belt-and-braces: refuse anything that escapes outDir.
|
|
17
|
+
if (!full.startsWith(outDir + nodePath.sep)) {
|
|
18
|
+
throw new Error(`draft path escapes outDir: ${name}`);
|
|
19
|
+
}
|
|
20
|
+
writeFileSync(full, body, 'utf8');
|
|
21
|
+
files.push({ path: full, bytes: Buffer.byteLength(body, 'utf8') });
|
|
22
|
+
};
|
|
23
|
+
write('onboarding-report.md', renderOnboardingReport(plan));
|
|
24
|
+
write('inferred-rules.draft.ts', renderInferredRulesDraft(plan));
|
|
25
|
+
write('inferred-paths.draft.ts', renderInferredPathsDraft(plan));
|
|
26
|
+
write('inferred-templates.draft.ts', renderInferredTemplatesDraft(plan));
|
|
27
|
+
write('inferred-boundaries.draft.ts', renderInferredBoundariesDraft(plan));
|
|
28
|
+
write('inferred-pipelines.draft.ts', renderInferredPipelinesDraft(plan));
|
|
29
|
+
if (options.importedAgentRules && options.importedAgentRules.entries.length > 0) {
|
|
30
|
+
write('imported-agent-rules.draft.ts', renderImportedAgentRulesDraft(options.importedAgentRules));
|
|
31
|
+
}
|
|
32
|
+
return { outDir, files };
|
|
33
|
+
}
|
|
34
|
+
// ─── Renderers ───────────────────────────────────────────────────────────────
|
|
35
|
+
function renderInferredRulesDraft(plan) {
|
|
36
|
+
const lines = [];
|
|
37
|
+
lines.push(`// Inferred rules draft — generated by \`shrk onboard\`. Review before adopting.`);
|
|
38
|
+
lines.push(`// Move keepers into sharkcraft/rules.ts.`);
|
|
39
|
+
lines.push(`export default [`);
|
|
40
|
+
for (const r of plan.inferredRules) {
|
|
41
|
+
lines.push(` {`);
|
|
42
|
+
lines.push(` id: ${literal(r.id)},`);
|
|
43
|
+
lines.push(` type: 'rule',`);
|
|
44
|
+
lines.push(` title: ${literal(r.title)},`);
|
|
45
|
+
lines.push(` priority: ${literal(r.priority)},`);
|
|
46
|
+
lines.push(` content: ${literal(r.content)},`);
|
|
47
|
+
lines.push(` tags: ${literal(['inferred', r.source])},`);
|
|
48
|
+
lines.push(` // reason: ${escapeSingleLineComment(r.reason)}`);
|
|
49
|
+
lines.push(` },`);
|
|
50
|
+
}
|
|
51
|
+
lines.push(`];`);
|
|
52
|
+
return lines.join('\n') + '\n';
|
|
53
|
+
}
|
|
54
|
+
function renderInferredPathsDraft(plan) {
|
|
55
|
+
const lines = [];
|
|
56
|
+
lines.push(`// Inferred path conventions draft — generated by \`shrk onboard\`. Review before adopting.`);
|
|
57
|
+
lines.push(`// Move keepers into sharkcraft/paths.ts.`);
|
|
58
|
+
lines.push(`export default [`);
|
|
59
|
+
for (const p of plan.inferredPathConventions) {
|
|
60
|
+
lines.push(` {`);
|
|
61
|
+
lines.push(` id: ${literal(p.id)},`);
|
|
62
|
+
lines.push(` type: 'path',`);
|
|
63
|
+
lines.push(` title: ${literal(p.title)},`);
|
|
64
|
+
lines.push(` content: ${literal(p.content)},`);
|
|
65
|
+
lines.push(` patterns: ${literal(p.patterns)},`);
|
|
66
|
+
lines.push(` tags: ${literal(['inferred', 'path'])},`);
|
|
67
|
+
lines.push(` // reason: ${escapeSingleLineComment(p.reason)}`);
|
|
68
|
+
lines.push(` },`);
|
|
69
|
+
}
|
|
70
|
+
lines.push(`];`);
|
|
71
|
+
return lines.join('\n') + '\n';
|
|
72
|
+
}
|
|
73
|
+
function renderInferredTemplatesDraft(plan) {
|
|
74
|
+
const lines = [];
|
|
75
|
+
const anyScaffolded = plan.inferredTemplateCandidates.some((t) => t.scaffold);
|
|
76
|
+
lines.push(`// Inferred template candidates — generated by \`shrk onboard\`.`);
|
|
77
|
+
if (anyScaffolded) {
|
|
78
|
+
lines.push(`// Entries with \`runnable: true\` ship a draft body with placeholder variables.`);
|
|
79
|
+
lines.push(`// Review carefully (especially low-confidence entries) before moving to sharkcraft/templates.ts.`);
|
|
80
|
+
}
|
|
81
|
+
else {
|
|
82
|
+
lines.push(`// NOT runnable until you fill in targetPath + content. Re-run with \`--scaffold-templates\` to draft bodies.`);
|
|
83
|
+
}
|
|
84
|
+
lines.push(`export default [`);
|
|
85
|
+
for (const t of plan.inferredTemplateCandidates) {
|
|
86
|
+
renderTemplateCandidate(lines, t);
|
|
87
|
+
}
|
|
88
|
+
lines.push(`];`);
|
|
89
|
+
return lines.join('\n') + '\n';
|
|
90
|
+
}
|
|
91
|
+
function renderTemplateCandidate(lines, t) {
|
|
92
|
+
lines.push(` {`);
|
|
93
|
+
lines.push(` id: ${literal(t.id)},`);
|
|
94
|
+
lines.push(` name: ${literal(t.name)},`);
|
|
95
|
+
lines.push(` description: ${literal(t.description)},`);
|
|
96
|
+
lines.push(` confidence: ${literal(t.confidence)},`);
|
|
97
|
+
if (t.targetPathHint) {
|
|
98
|
+
lines.push(` // targetPath hint: ${escapeSingleLineComment(t.targetPathHint)}`);
|
|
99
|
+
}
|
|
100
|
+
if (t.sample) {
|
|
101
|
+
lines.push(` // sample: ${escapeSingleLineComment(t.sample)}`);
|
|
102
|
+
}
|
|
103
|
+
lines.push(` // reason: ${escapeSingleLineComment(t.reason)}`);
|
|
104
|
+
if (t.scaffold) {
|
|
105
|
+
lines.push(` runnable: true,`);
|
|
106
|
+
lines.push(` scaffold: {`);
|
|
107
|
+
lines.push(` id: ${literal(t.scaffold.id)},`);
|
|
108
|
+
lines.push(` name: ${literal(t.scaffold.name)},`);
|
|
109
|
+
lines.push(` description: ${literal(t.scaffold.description)},`);
|
|
110
|
+
lines.push(` targetPath: ${literal(t.scaffold.targetPath)},`);
|
|
111
|
+
lines.push(` variables: [`);
|
|
112
|
+
for (const v of t.scaffold.variables) {
|
|
113
|
+
lines.push(` {`);
|
|
114
|
+
lines.push(` name: ${literal(v.name)},`);
|
|
115
|
+
lines.push(` description: ${literal(v.description)},`);
|
|
116
|
+
if (typeof v.default === 'string') {
|
|
117
|
+
lines.push(` default: ${literal(v.default)},`);
|
|
118
|
+
}
|
|
119
|
+
lines.push(` },`);
|
|
120
|
+
}
|
|
121
|
+
lines.push(` ],`);
|
|
122
|
+
lines.push(` content: ${renderMultilineTemplateLiteral(t.scaffold.content)},`);
|
|
123
|
+
if (t.scaffold.warnings.length > 0) {
|
|
124
|
+
lines.push(` // warnings:`);
|
|
125
|
+
for (const w of t.scaffold.warnings) {
|
|
126
|
+
lines.push(` // - ${escapeSingleLineComment(w)}`);
|
|
127
|
+
}
|
|
128
|
+
}
|
|
129
|
+
lines.push(` },`);
|
|
130
|
+
}
|
|
131
|
+
lines.push(` },`);
|
|
132
|
+
}
|
|
133
|
+
function renderMultilineTemplateLiteral(content) {
|
|
134
|
+
// Use a tagged template literal-safe form. Backticks and ${ must be escaped.
|
|
135
|
+
const escaped = content.replace(/\\/g, '\\\\').replace(/`/g, '\\`').replace(/\$\{/g, '\\${');
|
|
136
|
+
return '`' + escaped + '`';
|
|
137
|
+
}
|
|
138
|
+
function renderInferredBoundariesDraft(plan) {
|
|
139
|
+
const lines = [];
|
|
140
|
+
lines.push(`// Inferred boundary rules draft — generated by \`shrk onboard\`. Review before adopting.`);
|
|
141
|
+
lines.push(`// Drop into sharkcraft/boundaries.ts (and register via sharkcraft.config.ts boundaryFiles).`);
|
|
142
|
+
lines.push(`export default [`);
|
|
143
|
+
for (const b of plan.inferredBoundaryRules) {
|
|
144
|
+
lines.push(` {`);
|
|
145
|
+
lines.push(` id: ${literal(b.id)},`);
|
|
146
|
+
lines.push(` title: ${literal(b.title)},`);
|
|
147
|
+
lines.push(` severity: ${literal(b.severity)},`);
|
|
148
|
+
lines.push(` from: ${literal(b.from)},`);
|
|
149
|
+
if (b.forbiddenImports) {
|
|
150
|
+
lines.push(` forbiddenImports: ${literal(b.forbiddenImports)},`);
|
|
151
|
+
}
|
|
152
|
+
if (b.allowedImports) {
|
|
153
|
+
lines.push(` allowedImports: ${literal(b.allowedImports)},`);
|
|
154
|
+
}
|
|
155
|
+
lines.push(` suggestedFix: ${literal(b.suggestedFix)},`);
|
|
156
|
+
lines.push(` // reason: ${escapeSingleLineComment(b.reason)}`);
|
|
157
|
+
lines.push(` },`);
|
|
158
|
+
}
|
|
159
|
+
lines.push(`];`);
|
|
160
|
+
return lines.join('\n') + '\n';
|
|
161
|
+
}
|
|
162
|
+
function renderInferredPipelinesDraft(plan) {
|
|
163
|
+
const lines = [];
|
|
164
|
+
lines.push(`// Inferred pipelines draft — generated by \`shrk onboard\`. Review before adopting.`);
|
|
165
|
+
lines.push(`// Move keepers into sharkcraft/pipelines.ts.`);
|
|
166
|
+
lines.push(`export default [`);
|
|
167
|
+
for (const p of plan.inferredPipelines) {
|
|
168
|
+
lines.push(` {`);
|
|
169
|
+
lines.push(` id: ${literal(p.id)},`);
|
|
170
|
+
lines.push(` title: ${literal(p.title)},`);
|
|
171
|
+
lines.push(` description: ${literal(p.description)},`);
|
|
172
|
+
lines.push(` steps: ${renderSteps(p.steps)},`);
|
|
173
|
+
lines.push(` // reason: ${escapeSingleLineComment(p.reason)}`);
|
|
174
|
+
lines.push(` },`);
|
|
175
|
+
}
|
|
176
|
+
lines.push(`];`);
|
|
177
|
+
return lines.join('\n') + '\n';
|
|
178
|
+
}
|
|
179
|
+
function renderSteps(steps) {
|
|
180
|
+
const items = steps.map((id) => ` { id: ${literal(id)}, title: ${literal(id)} }`);
|
|
181
|
+
return `[\n${items.join(',\n')}\n ]`;
|
|
182
|
+
}
|
|
183
|
+
// ─── Util ────────────────────────────────────────────────────────────────────
|
|
184
|
+
function literal(v) {
|
|
185
|
+
if (Array.isArray(v)) {
|
|
186
|
+
return `[${v.map((x) => literal(x)).join(', ')}]`;
|
|
187
|
+
}
|
|
188
|
+
if (typeof v === 'string') {
|
|
189
|
+
// Use JSON.stringify for safe escaping.
|
|
190
|
+
return JSON.stringify(v);
|
|
191
|
+
}
|
|
192
|
+
return JSON.stringify(v);
|
|
193
|
+
}
|
|
194
|
+
function escapeSingleLineComment(s) {
|
|
195
|
+
return s.replace(/\r?\n/g, ' ').replace(/\*\//g, '*/');
|
|
196
|
+
}
|
|
197
|
+
function ensureDir(dir) {
|
|
198
|
+
if (existsSync(dir))
|
|
199
|
+
return;
|
|
200
|
+
mkdirSync(dir, { recursive: true });
|
|
201
|
+
}
|
|
202
|
+
function renderImportedAgentRulesDraft(bundle) {
|
|
203
|
+
const lines = [];
|
|
204
|
+
lines.push(`// Imported agent rules draft — generated by \`shrk onboard --import-agents\`.`);
|
|
205
|
+
lines.push(`// Source files: ${bundle.sourceFiles.map((s) => escapeSingleLineComment(s)).join(', ') || '(none)'}`);
|
|
206
|
+
lines.push(`// Review before adopting; entries flagged "ambiguous" may need a manual rewrite.`);
|
|
207
|
+
lines.push(`export default [`);
|
|
208
|
+
for (const e of bundle.entries) {
|
|
209
|
+
lines.push(` {`);
|
|
210
|
+
lines.push(` id: ${literal(e.id)},`);
|
|
211
|
+
lines.push(` type: ${literal(e.type)},`);
|
|
212
|
+
lines.push(` title: ${literal(e.title)},`);
|
|
213
|
+
lines.push(` content: ${literal(e.content)},`);
|
|
214
|
+
lines.push(` tags: ${literal(e.tags)},`);
|
|
215
|
+
if (e.scope?.length)
|
|
216
|
+
lines.push(` scope: ${literal(e.scope)},`);
|
|
217
|
+
if (e.source?.origin) {
|
|
218
|
+
lines.push(` // origin: ${escapeSingleLineComment(e.source.origin)}`);
|
|
219
|
+
}
|
|
220
|
+
if (e.flaggedAmbiguous) {
|
|
221
|
+
lines.push(` // ambiguous: please review the wording before adopting`);
|
|
222
|
+
}
|
|
223
|
+
lines.push(` },`);
|
|
224
|
+
}
|
|
225
|
+
lines.push(`];`);
|
|
226
|
+
if (bundle.warnings.length > 0) {
|
|
227
|
+
lines.push('');
|
|
228
|
+
lines.push('// Warnings:');
|
|
229
|
+
for (const w of bundle.warnings) {
|
|
230
|
+
lines.push(`// - ${escapeSingleLineComment(w)}`);
|
|
231
|
+
}
|
|
232
|
+
}
|
|
233
|
+
return lines.join('\n') + '\n';
|
|
234
|
+
}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import type { IOnboardingPlan } from './onboarding.js';
|
|
2
|
+
/**
|
|
3
|
+
* Render an onboarding plan as a Markdown report. The output is intentionally
|
|
4
|
+
* stable and human-readable: it is the artifact a user reads when deciding
|
|
5
|
+
* whether to adopt SharkCraft drafts.
|
|
6
|
+
*/
|
|
7
|
+
export declare function renderOnboardingReport(plan: IOnboardingPlan): string;
|
|
8
|
+
//# sourceMappingURL=onboarding-report.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"onboarding-report.d.ts","sourceRoot":"","sources":["../src/onboarding-report.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,iBAAiB,CAAC;AAEvD;;;;GAIG;AACH,wBAAgB,sBAAsB,CAAC,IAAI,EAAE,eAAe,GAAG,MAAM,CA0PpE"}
|
|
@@ -0,0 +1,239 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Render an onboarding plan as a Markdown report. The output is intentionally
|
|
3
|
+
* stable and human-readable: it is the artifact a user reads when deciding
|
|
4
|
+
* whether to adopt SharkCraft drafts.
|
|
5
|
+
*/
|
|
6
|
+
export function renderOnboardingReport(plan) {
|
|
7
|
+
const out = [];
|
|
8
|
+
out.push('# SharkCraft onboarding report');
|
|
9
|
+
out.push('');
|
|
10
|
+
// ── Project summary ────────────────────────────────────────────────────
|
|
11
|
+
out.push('## Project summary');
|
|
12
|
+
out.push('');
|
|
13
|
+
const s = plan.projectSummary;
|
|
14
|
+
out.push(`- Project root: \`${s.projectRoot}\``);
|
|
15
|
+
if (s.projectName)
|
|
16
|
+
out.push(`- Name: \`${s.projectName}\``);
|
|
17
|
+
if (s.description)
|
|
18
|
+
out.push(`- Description: ${s.description}`);
|
|
19
|
+
out.push(`- Package manager: \`${s.packageManager}\``);
|
|
20
|
+
out.push(`- SharkCraft folder present: ${s.hasSharkcraftFolder ? 'yes' : 'no'}`);
|
|
21
|
+
if (s.profiles.length) {
|
|
22
|
+
out.push(`- Profiles: ${s.profiles.map((p) => `\`${p}\``).join(', ')}`);
|
|
23
|
+
}
|
|
24
|
+
else {
|
|
25
|
+
out.push('- Profiles: none detected');
|
|
26
|
+
}
|
|
27
|
+
out.push('');
|
|
28
|
+
// ── AI-readiness ──────────────────────────────────────────────────────
|
|
29
|
+
out.push('## AI-readiness — current vs. expected');
|
|
30
|
+
out.push('');
|
|
31
|
+
out.push(`- Current: **${plan.readiness.current}** (score ${plan.readiness.currentScore}/100)`);
|
|
32
|
+
out.push(`- Expected after drafts: **${plan.readiness.expected}** (score ~${plan.readiness.expectedScore}/100)`);
|
|
33
|
+
out.push('');
|
|
34
|
+
if (plan.readiness.topImprovements.length) {
|
|
35
|
+
out.push('Top improvements:');
|
|
36
|
+
for (const i of plan.readiness.topImprovements)
|
|
37
|
+
out.push(`- ${i}`);
|
|
38
|
+
out.push('');
|
|
39
|
+
}
|
|
40
|
+
// ── Recommended presets ───────────────────────────────────────────────
|
|
41
|
+
if (plan.recommendedPresets.length) {
|
|
42
|
+
out.push('## Recommended presets');
|
|
43
|
+
out.push('');
|
|
44
|
+
for (const r of plan.recommendedPresets) {
|
|
45
|
+
out.push(`- **${r.preset.id}** (${r.confidence}, score ${r.score}) — ${r.preset.title}`);
|
|
46
|
+
if (r.reasons.length) {
|
|
47
|
+
for (const reason of r.reasons)
|
|
48
|
+
out.push(` - ${reason}`);
|
|
49
|
+
}
|
|
50
|
+
}
|
|
51
|
+
out.push('');
|
|
52
|
+
}
|
|
53
|
+
// ── Suggested files ───────────────────────────────────────────────────
|
|
54
|
+
out.push('## Suggested files');
|
|
55
|
+
out.push('');
|
|
56
|
+
out.push('Drafts are written under `sharkcraft/onboarding/` only.');
|
|
57
|
+
out.push('No existing rules.ts / paths.ts / templates.ts is overwritten.');
|
|
58
|
+
out.push('');
|
|
59
|
+
for (const f of plan.suggestedFiles)
|
|
60
|
+
out.push(`- \`${f}\``);
|
|
61
|
+
out.push('');
|
|
62
|
+
// ── Path conventions ──────────────────────────────────────────────────
|
|
63
|
+
out.push('## Suggested path conventions');
|
|
64
|
+
out.push('');
|
|
65
|
+
if (plan.inferredPathConventions.length === 0) {
|
|
66
|
+
out.push('_No path conventions inferred._');
|
|
67
|
+
}
|
|
68
|
+
else {
|
|
69
|
+
for (const p of plan.inferredPathConventions) {
|
|
70
|
+
out.push(`- **${p.id}** — ${p.title}`);
|
|
71
|
+
out.push(` - patterns: ${p.patterns.map((x) => `\`${x}\``).join(', ')}`);
|
|
72
|
+
out.push(` - reason: ${p.reason}`);
|
|
73
|
+
}
|
|
74
|
+
}
|
|
75
|
+
out.push('');
|
|
76
|
+
// ── Rules ─────────────────────────────────────────────────────────────
|
|
77
|
+
out.push('## Suggested rules');
|
|
78
|
+
out.push('');
|
|
79
|
+
if (plan.inferredRules.length === 0) {
|
|
80
|
+
out.push('_No rules inferred._');
|
|
81
|
+
}
|
|
82
|
+
else {
|
|
83
|
+
for (const r of plan.inferredRules) {
|
|
84
|
+
out.push(`- **${r.id}** (${r.priority}) — ${r.title}`);
|
|
85
|
+
out.push(` - reason: ${r.reason}`);
|
|
86
|
+
}
|
|
87
|
+
}
|
|
88
|
+
out.push('');
|
|
89
|
+
// ── Boundary rules ────────────────────────────────────────────────────
|
|
90
|
+
out.push('## Suggested boundary rules');
|
|
91
|
+
out.push('');
|
|
92
|
+
if (plan.inferredBoundaryRules.length === 0) {
|
|
93
|
+
out.push('_No boundary rules inferred — layer structure not clear enough._');
|
|
94
|
+
}
|
|
95
|
+
else {
|
|
96
|
+
for (const b of plan.inferredBoundaryRules) {
|
|
97
|
+
out.push(`- **${b.id}** (${b.severity}) — ${b.title}`);
|
|
98
|
+
out.push(` - from: ${b.from.map((x) => `\`${x}\``).join(', ')}`);
|
|
99
|
+
if (b.forbiddenImports?.length) {
|
|
100
|
+
out.push(` - forbids: ${b.forbiddenImports.map((x) => `\`${x}\``).join(', ')}`);
|
|
101
|
+
}
|
|
102
|
+
out.push(` - fix: ${b.suggestedFix}`);
|
|
103
|
+
out.push(` - reason: ${b.reason}`);
|
|
104
|
+
}
|
|
105
|
+
}
|
|
106
|
+
out.push('');
|
|
107
|
+
// ── Template candidates ───────────────────────────────────────────────
|
|
108
|
+
out.push('## Suggested templates');
|
|
109
|
+
out.push('');
|
|
110
|
+
if (plan.inferredTemplateCandidates.length === 0) {
|
|
111
|
+
out.push('_No template candidates detected._');
|
|
112
|
+
}
|
|
113
|
+
else {
|
|
114
|
+
for (const t of plan.inferredTemplateCandidates) {
|
|
115
|
+
out.push(`- **${t.id}** (${t.confidence}) — ${t.name}`);
|
|
116
|
+
out.push(` - ${t.description}`);
|
|
117
|
+
if (t.targetPathHint)
|
|
118
|
+
out.push(` - target: \`${t.targetPathHint}\``);
|
|
119
|
+
if (t.sample)
|
|
120
|
+
out.push(` - sample: \`${t.sample}\``);
|
|
121
|
+
out.push(` - reason: ${t.reason}`);
|
|
122
|
+
}
|
|
123
|
+
}
|
|
124
|
+
out.push('');
|
|
125
|
+
// ── Pipelines ─────────────────────────────────────────────────────────
|
|
126
|
+
out.push('## Suggested pipelines');
|
|
127
|
+
out.push('');
|
|
128
|
+
if (plan.inferredPipelines.length === 0) {
|
|
129
|
+
out.push('_No pipelines inferred._');
|
|
130
|
+
}
|
|
131
|
+
else {
|
|
132
|
+
for (const p of plan.inferredPipelines) {
|
|
133
|
+
out.push(`- **${p.id}** — ${p.title}`);
|
|
134
|
+
out.push(` - steps: ${p.steps.map((s) => `\`${s}\``).join(' → ')}`);
|
|
135
|
+
out.push(` - reason: ${p.reason}`);
|
|
136
|
+
}
|
|
137
|
+
}
|
|
138
|
+
out.push('');
|
|
139
|
+
// ── Verification commands ─────────────────────────────────────────────
|
|
140
|
+
out.push('## Verification commands');
|
|
141
|
+
out.push('');
|
|
142
|
+
if (plan.inferredVerificationCommands.length === 0) {
|
|
143
|
+
out.push('_No verification commands inferred — add scripts to package.json so apply can validate._');
|
|
144
|
+
}
|
|
145
|
+
else {
|
|
146
|
+
for (const v of plan.inferredVerificationCommands) {
|
|
147
|
+
out.push(`- **${v.id}** — \`${v.command}\``);
|
|
148
|
+
out.push(` - reason: ${v.reason}`);
|
|
149
|
+
}
|
|
150
|
+
}
|
|
151
|
+
out.push('');
|
|
152
|
+
// ── Existing instruction files ────────────────────────────────────────
|
|
153
|
+
if (plan.detectedInstructionFiles.length) {
|
|
154
|
+
out.push('## Existing instruction files detected');
|
|
155
|
+
out.push('');
|
|
156
|
+
for (const f of plan.detectedInstructionFiles) {
|
|
157
|
+
out.push(`- \`${f.path}\` — import with: \`${f.importCommand}\``);
|
|
158
|
+
}
|
|
159
|
+
out.push('');
|
|
160
|
+
}
|
|
161
|
+
// ── Monorepo summary ──────────────────────────────────────────────────
|
|
162
|
+
if (plan.monorepoSummary) {
|
|
163
|
+
const m = plan.monorepoSummary;
|
|
164
|
+
out.push('## Monorepo summary');
|
|
165
|
+
out.push('');
|
|
166
|
+
out.push(`- Apps: ${m.apps.length}, Packages: ${m.packages.length}, Libs: ${m.libs.length}`);
|
|
167
|
+
if (m.workspaces.length > 0) {
|
|
168
|
+
out.push(`- Workspaces: ${m.workspaces.map((w) => `\`${w}\``).join(', ')}`);
|
|
169
|
+
}
|
|
170
|
+
if (m.notes.length) {
|
|
171
|
+
for (const n of m.notes)
|
|
172
|
+
out.push(`- ${n}`);
|
|
173
|
+
}
|
|
174
|
+
out.push('');
|
|
175
|
+
if (m.apps.length + m.packages.length + m.libs.length > 0) {
|
|
176
|
+
out.push('### Detected workspaces');
|
|
177
|
+
out.push('');
|
|
178
|
+
for (const p of [...m.apps, ...m.packages, ...m.libs]) {
|
|
179
|
+
const scriptList = Object.keys(p.scripts).slice(0, 4).join(', ');
|
|
180
|
+
out.push(`- \`${p.path}\`${p.name ? ` (\`${p.name}\`)` : ''}${scriptList ? ` — scripts: ${scriptList}` : ''}`);
|
|
181
|
+
}
|
|
182
|
+
out.push('');
|
|
183
|
+
}
|
|
184
|
+
if (m.rootVerificationCommands.length) {
|
|
185
|
+
out.push('### Root verification commands');
|
|
186
|
+
out.push('');
|
|
187
|
+
for (const c of m.rootVerificationCommands)
|
|
188
|
+
out.push(`- \`${c}\``);
|
|
189
|
+
out.push('');
|
|
190
|
+
}
|
|
191
|
+
if (m.perPackageVerificationHints.length) {
|
|
192
|
+
out.push('### Per-package verification hints');
|
|
193
|
+
out.push('');
|
|
194
|
+
for (const h of m.perPackageVerificationHints.slice(0, 24)) {
|
|
195
|
+
out.push(`- \`${h.packagePath}\` — \`${h.command}\``);
|
|
196
|
+
}
|
|
197
|
+
if (m.perPackageVerificationHints.length > 24) {
|
|
198
|
+
out.push(`- …and ${m.perPackageVerificationHints.length - 24} more.`);
|
|
199
|
+
}
|
|
200
|
+
out.push('');
|
|
201
|
+
}
|
|
202
|
+
if (m.boundaryCandidates.length) {
|
|
203
|
+
out.push('### Boundary candidates (from layout)');
|
|
204
|
+
out.push('');
|
|
205
|
+
for (const b of m.boundaryCandidates) {
|
|
206
|
+
out.push(`- **${b.id}** — ${b.title}`);
|
|
207
|
+
out.push(` - from: ${b.from.map((x) => `\`${x}\``).join(', ')}`);
|
|
208
|
+
out.push(` - forbids: ${b.forbiddenImports.map((x) => `\`${x}\``).join(', ')}`);
|
|
209
|
+
out.push(` - reason: ${b.reason}`);
|
|
210
|
+
}
|
|
211
|
+
out.push('');
|
|
212
|
+
}
|
|
213
|
+
if (m.presetRecommendations.length) {
|
|
214
|
+
out.push('### Preset recommendations for monorepo root');
|
|
215
|
+
out.push('');
|
|
216
|
+
for (const p of m.presetRecommendations)
|
|
217
|
+
out.push(`- \`${p}\``);
|
|
218
|
+
out.push('');
|
|
219
|
+
}
|
|
220
|
+
}
|
|
221
|
+
// ── Risks / warnings ──────────────────────────────────────────────────
|
|
222
|
+
if (plan.risks.length) {
|
|
223
|
+
out.push('## Risks / warnings');
|
|
224
|
+
out.push('');
|
|
225
|
+
for (const r of plan.risks)
|
|
226
|
+
out.push(`- ${r}`);
|
|
227
|
+
out.push('');
|
|
228
|
+
}
|
|
229
|
+
// ── Next commands ─────────────────────────────────────────────────────
|
|
230
|
+
out.push('## Next commands');
|
|
231
|
+
out.push('');
|
|
232
|
+
for (const c of plan.nextCommands)
|
|
233
|
+
out.push(`- \`${c}\``);
|
|
234
|
+
out.push('');
|
|
235
|
+
out.push('---');
|
|
236
|
+
out.push('');
|
|
237
|
+
out.push('Drafts are advisory. SharkCraft never overwrites rules.ts / paths.ts / templates.ts — adopt by hand.');
|
|
238
|
+
return out.join('\n');
|
|
239
|
+
}
|
|
@@ -0,0 +1,134 @@
|
|
|
1
|
+
import { PackageManager, WorkspaceProfile, type IWorkspaceSummary } from '@shrkcrft/workspace';
|
|
2
|
+
import { type IPresetRecommendation } from '@shrkcrft/presets';
|
|
3
|
+
import type { ISharkcraftInspection } from './sharkcraft-inspector.js';
|
|
4
|
+
import { type ReadinessGrade } from './ai-readiness.js';
|
|
5
|
+
import { type IInferredTemplateScaffold } from './template-body-inference.js';
|
|
6
|
+
import { type IMonorepoSummary } from './monorepo-onboarding.js';
|
|
7
|
+
export interface IInferredPathConvention {
|
|
8
|
+
id: string;
|
|
9
|
+
title: string;
|
|
10
|
+
content: string;
|
|
11
|
+
/** Glob patterns matching files this convention applies to. */
|
|
12
|
+
patterns: readonly string[];
|
|
13
|
+
reason: string;
|
|
14
|
+
}
|
|
15
|
+
export interface IInferredVerificationCommand {
|
|
16
|
+
id: string;
|
|
17
|
+
label: string;
|
|
18
|
+
command: string;
|
|
19
|
+
trusted: boolean;
|
|
20
|
+
reason: string;
|
|
21
|
+
}
|
|
22
|
+
export interface IInferredBoundaryRule {
|
|
23
|
+
id: string;
|
|
24
|
+
title: string;
|
|
25
|
+
severity: 'error' | 'warning';
|
|
26
|
+
from: readonly string[];
|
|
27
|
+
forbiddenImports?: readonly string[];
|
|
28
|
+
allowedImports?: readonly string[];
|
|
29
|
+
suggestedFix: string;
|
|
30
|
+
reason: string;
|
|
31
|
+
}
|
|
32
|
+
export interface IInferredTemplateCandidate {
|
|
33
|
+
id: string;
|
|
34
|
+
name: string;
|
|
35
|
+
description: string;
|
|
36
|
+
/** Sample file we'd model the template on (if any). */
|
|
37
|
+
sample?: string;
|
|
38
|
+
/** Suggested targetPath pattern relative to projectRoot. */
|
|
39
|
+
targetPathHint?: string;
|
|
40
|
+
/** Whether we are confident enough to emit a draft. */
|
|
41
|
+
confidence: 'high' | 'medium' | 'low';
|
|
42
|
+
reason: string;
|
|
43
|
+
/**
|
|
44
|
+
* Runnable scaffold body — only populated when the caller passed
|
|
45
|
+
* `scaffoldTemplates: true` AND scaffolding succeeded for this candidate.
|
|
46
|
+
* Drafts use this to emit a runnable template body; absence means the user
|
|
47
|
+
* gets the conservative metadata-only entry.
|
|
48
|
+
*/
|
|
49
|
+
scaffold?: IInferredTemplateScaffold;
|
|
50
|
+
}
|
|
51
|
+
export interface IInferredRule {
|
|
52
|
+
id: string;
|
|
53
|
+
title: string;
|
|
54
|
+
content: string;
|
|
55
|
+
priority: 'critical' | 'high' | 'medium' | 'low';
|
|
56
|
+
source: 'package-json' | 'tsconfig' | 'folder-structure' | 'imports' | 'agents-md';
|
|
57
|
+
reason: string;
|
|
58
|
+
}
|
|
59
|
+
export interface IInferredPipeline {
|
|
60
|
+
id: string;
|
|
61
|
+
title: string;
|
|
62
|
+
description: string;
|
|
63
|
+
/** Suggested step ids in order. */
|
|
64
|
+
steps: readonly string[];
|
|
65
|
+
reason: string;
|
|
66
|
+
}
|
|
67
|
+
export interface IDetectedInstructionFile {
|
|
68
|
+
kind: 'agents-md' | 'claude-md' | 'cursor-rules';
|
|
69
|
+
/** Project-relative path. */
|
|
70
|
+
path: string;
|
|
71
|
+
/** The CLI command we'd recommend running. */
|
|
72
|
+
importCommand: string;
|
|
73
|
+
}
|
|
74
|
+
export interface IReadinessEstimate {
|
|
75
|
+
current: ReadinessGrade;
|
|
76
|
+
expected: ReadinessGrade;
|
|
77
|
+
currentScore: number;
|
|
78
|
+
expectedScore: number;
|
|
79
|
+
topImprovements: readonly string[];
|
|
80
|
+
}
|
|
81
|
+
export interface IOnboardingProjectSummary {
|
|
82
|
+
projectRoot: string;
|
|
83
|
+
projectName?: string;
|
|
84
|
+
description?: string;
|
|
85
|
+
packageManager: PackageManager;
|
|
86
|
+
profiles: readonly WorkspaceProfile[];
|
|
87
|
+
hasSharkcraftFolder: boolean;
|
|
88
|
+
}
|
|
89
|
+
export interface IOnboardingPlan {
|
|
90
|
+
projectSummary: IOnboardingProjectSummary;
|
|
91
|
+
/** Best-fit presets ranked against detected profiles. */
|
|
92
|
+
recommendedPresets: readonly IPresetRecommendation[];
|
|
93
|
+
/** Suggested sharkcraft/* files to scaffold. */
|
|
94
|
+
suggestedFiles: readonly string[];
|
|
95
|
+
inferredPathConventions: readonly IInferredPathConvention[];
|
|
96
|
+
inferredVerificationCommands: readonly IInferredVerificationCommand[];
|
|
97
|
+
inferredBoundaryRules: readonly IInferredBoundaryRule[];
|
|
98
|
+
inferredTemplateCandidates: readonly IInferredTemplateCandidate[];
|
|
99
|
+
inferredRules: readonly IInferredRule[];
|
|
100
|
+
inferredPipelines: readonly IInferredPipeline[];
|
|
101
|
+
/** AGENTS.md / CLAUDE.md / .cursor/rules detected for optional import. */
|
|
102
|
+
detectedInstructionFiles: readonly IDetectedInstructionFile[];
|
|
103
|
+
/** Risks/warnings — things we couldn't infer or need human review. */
|
|
104
|
+
risks: readonly string[];
|
|
105
|
+
/** Suggested commands the user can run next. */
|
|
106
|
+
nextCommands: readonly string[];
|
|
107
|
+
readiness: IReadinessEstimate;
|
|
108
|
+
/**
|
|
109
|
+
* Monorepo overview when the project has workspaces / Nx / packages+libs+apps.
|
|
110
|
+
* `null` for plain single-package repos.
|
|
111
|
+
*/
|
|
112
|
+
monorepoSummary: IMonorepoSummary | null;
|
|
113
|
+
}
|
|
114
|
+
export interface IBuildOnboardingPlanOptions {
|
|
115
|
+
/** Pinned preset id to surface first in the recommendation list. */
|
|
116
|
+
preferredPreset?: string;
|
|
117
|
+
/**
|
|
118
|
+
* When true, attempt to produce runnable scaffolded bodies for high- and
|
|
119
|
+
* medium-confidence template candidates. Default false (metadata only).
|
|
120
|
+
*/
|
|
121
|
+
scaffoldTemplates?: boolean;
|
|
122
|
+
}
|
|
123
|
+
export declare function buildOnboardingPlan(inspection: ISharkcraftInspection, options?: IBuildOnboardingPlanOptions): IOnboardingPlan;
|
|
124
|
+
export declare function inferPathConventions(ws: IWorkspaceSummary, subDirs: ReadonlyMap<string, readonly string[]>): IInferredPathConvention[];
|
|
125
|
+
export declare function inferVerificationCommands(ws: IWorkspaceSummary): IInferredVerificationCommand[];
|
|
126
|
+
export declare function inferBoundaryRules(ws: IWorkspaceSummary, subDirs: ReadonlyMap<string, readonly string[]>): IInferredBoundaryRule[];
|
|
127
|
+
export interface IInferTemplateCandidatesOptions {
|
|
128
|
+
scaffoldTemplates?: boolean;
|
|
129
|
+
}
|
|
130
|
+
export declare function inferTemplateCandidates(ws: IWorkspaceSummary, options?: IInferTemplateCandidatesOptions): IInferredTemplateCandidate[];
|
|
131
|
+
export declare function inferRules(ws: IWorkspaceSummary): IInferredRule[];
|
|
132
|
+
export declare function inferPipelines(ws: IWorkspaceSummary, verification: readonly IInferredVerificationCommand[]): IInferredPipeline[];
|
|
133
|
+
export declare function detectInstructionFiles(projectRoot: string): IDetectedInstructionFile[];
|
|
134
|
+
//# sourceMappingURL=onboarding.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"onboarding.d.ts","sourceRoot":"","sources":["../src/onboarding.ts"],"names":[],"mappings":"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"}
|