@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,584 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Polyglot language detection.
|
|
3
|
+
*
|
|
4
|
+
* Builds an `ILanguageProfile` per detected language by scanning the project
|
|
5
|
+
* tree for canonical build/manifest files and counting source files. Pure
|
|
6
|
+
* file/manifest scanning — no compiler integration, no AST library.
|
|
7
|
+
*/
|
|
8
|
+
import { existsSync, readFileSync, readdirSync, statSync } from 'node:fs';
|
|
9
|
+
import * as nodePath from 'node:path';
|
|
10
|
+
import { LanguageId } from "./language-id.js";
|
|
11
|
+
export const LANGUAGE_PROFILE_SCHEMA = 'sharkcraft.language-profile/v1';
|
|
12
|
+
const IGNORED_DIR_NAMES = new Set([
|
|
13
|
+
'node_modules',
|
|
14
|
+
'.git',
|
|
15
|
+
'target',
|
|
16
|
+
'build',
|
|
17
|
+
'bin',
|
|
18
|
+
'obj',
|
|
19
|
+
'dist',
|
|
20
|
+
'out',
|
|
21
|
+
'__pycache__',
|
|
22
|
+
'.venv',
|
|
23
|
+
'venv',
|
|
24
|
+
'.idea',
|
|
25
|
+
'.vscode',
|
|
26
|
+
'.next',
|
|
27
|
+
'.nuxt',
|
|
28
|
+
'.svelte-kit',
|
|
29
|
+
'.gradle',
|
|
30
|
+
'.mvn',
|
|
31
|
+
'vendor',
|
|
32
|
+
]);
|
|
33
|
+
function walkLimited(root, maxFiles = 25000) {
|
|
34
|
+
const out = [];
|
|
35
|
+
const stack = [root];
|
|
36
|
+
while (stack.length > 0 && out.length < maxFiles) {
|
|
37
|
+
const cur = stack.pop();
|
|
38
|
+
let entries;
|
|
39
|
+
try {
|
|
40
|
+
entries = readdirSync(cur);
|
|
41
|
+
}
|
|
42
|
+
catch {
|
|
43
|
+
continue;
|
|
44
|
+
}
|
|
45
|
+
for (const e of entries) {
|
|
46
|
+
if (IGNORED_DIR_NAMES.has(e))
|
|
47
|
+
continue;
|
|
48
|
+
const abs = nodePath.join(cur, e);
|
|
49
|
+
let st;
|
|
50
|
+
try {
|
|
51
|
+
st = statSync(abs);
|
|
52
|
+
}
|
|
53
|
+
catch {
|
|
54
|
+
continue;
|
|
55
|
+
}
|
|
56
|
+
if (st.isDirectory()) {
|
|
57
|
+
stack.push(abs);
|
|
58
|
+
continue;
|
|
59
|
+
}
|
|
60
|
+
if (st.isFile())
|
|
61
|
+
out.push(abs);
|
|
62
|
+
}
|
|
63
|
+
}
|
|
64
|
+
return { files: out };
|
|
65
|
+
}
|
|
66
|
+
function rel(root, abs) {
|
|
67
|
+
const r = nodePath.relative(root, abs).replace(/\\/g, '/');
|
|
68
|
+
return r;
|
|
69
|
+
}
|
|
70
|
+
function pushUnique(list, value) {
|
|
71
|
+
if (!list.includes(value))
|
|
72
|
+
list.push(value);
|
|
73
|
+
}
|
|
74
|
+
function detectJsTs(root, files) {
|
|
75
|
+
const tsFiles = files.filter((f) => f.endsWith('.ts') || f.endsWith('.tsx'));
|
|
76
|
+
const jsFiles = files.filter((f) => f.endsWith('.js') || f.endsWith('.jsx') || f.endsWith('.mjs') || f.endsWith('.cjs'));
|
|
77
|
+
const pkgJson = nodePath.join(root, 'package.json');
|
|
78
|
+
const tsconfig = nodePath.join(root, 'tsconfig.json');
|
|
79
|
+
const hasPkg = existsSync(pkgJson);
|
|
80
|
+
const hasTsconfig = existsSync(tsconfig);
|
|
81
|
+
const out = [];
|
|
82
|
+
if (tsFiles.length > 0 || hasTsconfig) {
|
|
83
|
+
let packageManager;
|
|
84
|
+
if (existsSync(nodePath.join(root, 'bun.lockb')))
|
|
85
|
+
packageManager = 'bun';
|
|
86
|
+
else if (existsSync(nodePath.join(root, 'pnpm-lock.yaml')))
|
|
87
|
+
packageManager = 'pnpm';
|
|
88
|
+
else if (existsSync(nodePath.join(root, 'yarn.lock')))
|
|
89
|
+
packageManager = 'yarn';
|
|
90
|
+
else if (existsSync(nodePath.join(root, 'package-lock.json')))
|
|
91
|
+
packageManager = 'npm';
|
|
92
|
+
out.push({
|
|
93
|
+
schema: LANGUAGE_PROFILE_SCHEMA,
|
|
94
|
+
language: LanguageId.TypeScript,
|
|
95
|
+
confidence: tsFiles.length > 50 ? 'high' : tsFiles.length > 5 ? 'medium' : 'low',
|
|
96
|
+
fileCount: tsFiles.length,
|
|
97
|
+
sourceRoots: collectRoots(root, tsFiles, ['src', 'packages', 'libs', 'app', 'apps']),
|
|
98
|
+
testRoots: collectRoots(root, tsFiles, ['__tests__', 'tests', 'spec']),
|
|
99
|
+
buildFiles: [hasTsconfig ? 'tsconfig.json' : '', hasPkg ? 'package.json' : ''].filter(Boolean),
|
|
100
|
+
dependencyFiles: [hasPkg ? 'package.json' : ''].filter(Boolean),
|
|
101
|
+
...(packageManager ? { packageManager } : {}),
|
|
102
|
+
...(packageManager ? { buildTool: packageManager } : {}),
|
|
103
|
+
testFrameworks: detectJsTestFrameworks(root, pkgJson),
|
|
104
|
+
frameworkSignals: detectJsFrameworks(root, pkgJson),
|
|
105
|
+
likelyCommands: [
|
|
106
|
+
packageManager === 'bun' ? 'bun test' : 'npm test',
|
|
107
|
+
'bun x tsc --noEmit',
|
|
108
|
+
],
|
|
109
|
+
riskNotes: [],
|
|
110
|
+
});
|
|
111
|
+
}
|
|
112
|
+
if (jsFiles.length > 0 && tsFiles.length === 0) {
|
|
113
|
+
out.push({
|
|
114
|
+
schema: LANGUAGE_PROFILE_SCHEMA,
|
|
115
|
+
language: LanguageId.JavaScript,
|
|
116
|
+
confidence: jsFiles.length > 20 ? 'high' : 'medium',
|
|
117
|
+
fileCount: jsFiles.length,
|
|
118
|
+
sourceRoots: collectRoots(root, jsFiles, ['src', 'lib']),
|
|
119
|
+
testRoots: collectRoots(root, jsFiles, ['test', 'tests', '__tests__']),
|
|
120
|
+
buildFiles: hasPkg ? ['package.json'] : [],
|
|
121
|
+
dependencyFiles: hasPkg ? ['package.json'] : [],
|
|
122
|
+
testFrameworks: detectJsTestFrameworks(root, pkgJson),
|
|
123
|
+
frameworkSignals: detectJsFrameworks(root, pkgJson),
|
|
124
|
+
likelyCommands: ['npm test'],
|
|
125
|
+
riskNotes: [],
|
|
126
|
+
});
|
|
127
|
+
}
|
|
128
|
+
return out;
|
|
129
|
+
}
|
|
130
|
+
function detectJsTestFrameworks(root, pkgJsonPath) {
|
|
131
|
+
if (!existsSync(pkgJsonPath))
|
|
132
|
+
return [];
|
|
133
|
+
try {
|
|
134
|
+
const json = JSON.parse(readFileSync(pkgJsonPath, 'utf8'));
|
|
135
|
+
const deps = { ...(json['dependencies'] ?? {}), ...(json['devDependencies'] ?? {}) };
|
|
136
|
+
const out = [];
|
|
137
|
+
if ('jest' in deps || 'ts-jest' in deps)
|
|
138
|
+
out.push('jest');
|
|
139
|
+
if ('vitest' in deps)
|
|
140
|
+
out.push('vitest');
|
|
141
|
+
if ('mocha' in deps)
|
|
142
|
+
out.push('mocha');
|
|
143
|
+
if (existsSync(nodePath.join(root, 'bun.lockb')) || '@types/bun' in deps)
|
|
144
|
+
out.push('bun:test');
|
|
145
|
+
if ('@playwright/test' in deps)
|
|
146
|
+
out.push('playwright');
|
|
147
|
+
return out;
|
|
148
|
+
}
|
|
149
|
+
catch {
|
|
150
|
+
return [];
|
|
151
|
+
}
|
|
152
|
+
}
|
|
153
|
+
function detectJsFrameworks(_root, pkgJsonPath) {
|
|
154
|
+
if (!existsSync(pkgJsonPath))
|
|
155
|
+
return [];
|
|
156
|
+
try {
|
|
157
|
+
const json = JSON.parse(readFileSync(pkgJsonPath, 'utf8'));
|
|
158
|
+
const deps = { ...(json['dependencies'] ?? {}), ...(json['devDependencies'] ?? {}) };
|
|
159
|
+
const out = [];
|
|
160
|
+
if ('next' in deps)
|
|
161
|
+
out.push('next');
|
|
162
|
+
if ('react' in deps)
|
|
163
|
+
out.push('react');
|
|
164
|
+
if ('@nestjs/core' in deps)
|
|
165
|
+
out.push('nest');
|
|
166
|
+
if ('express' in deps)
|
|
167
|
+
out.push('express');
|
|
168
|
+
if ('fastify' in deps)
|
|
169
|
+
out.push('fastify');
|
|
170
|
+
if ('hono' in deps)
|
|
171
|
+
out.push('hono');
|
|
172
|
+
return out;
|
|
173
|
+
}
|
|
174
|
+
catch {
|
|
175
|
+
return [];
|
|
176
|
+
}
|
|
177
|
+
}
|
|
178
|
+
function detectJava(root, files) {
|
|
179
|
+
const javaFiles = files.filter((f) => f.endsWith('.java'));
|
|
180
|
+
const hasPom = existsSync(nodePath.join(root, 'pom.xml'));
|
|
181
|
+
const hasGradleGroovy = existsSync(nodePath.join(root, 'build.gradle'));
|
|
182
|
+
const hasGradleKts = existsSync(nodePath.join(root, 'build.gradle.kts'));
|
|
183
|
+
const hasSettingsGradle = existsSync(nodePath.join(root, 'settings.gradle')) || existsSync(nodePath.join(root, 'settings.gradle.kts'));
|
|
184
|
+
if (javaFiles.length === 0 && !hasPom && !hasGradleGroovy && !hasGradleKts)
|
|
185
|
+
return null;
|
|
186
|
+
const buildTool = hasPom ? 'maven' : hasGradleGroovy || hasGradleKts ? 'gradle' : 'java';
|
|
187
|
+
const testRoots = [];
|
|
188
|
+
const sourceRoots = [];
|
|
189
|
+
for (const f of javaFiles) {
|
|
190
|
+
const r = rel(root, f);
|
|
191
|
+
if (r.includes('/test/java/')) {
|
|
192
|
+
pushUnique(testRoots, r.replace(/\/[^/]+\.java$/, '').replace(/\/test\/java\/.*$/, '/test/java'));
|
|
193
|
+
}
|
|
194
|
+
else if (r.includes('/main/java/')) {
|
|
195
|
+
pushUnique(sourceRoots, r.replace(/\/[^/]+\.java$/, '').replace(/\/main\/java\/.*$/, '/main/java'));
|
|
196
|
+
}
|
|
197
|
+
}
|
|
198
|
+
const frameworkSignals = [];
|
|
199
|
+
if (hasPom) {
|
|
200
|
+
try {
|
|
201
|
+
const pom = readFileSync(nodePath.join(root, 'pom.xml'), 'utf8');
|
|
202
|
+
if (/spring-boot/i.test(pom))
|
|
203
|
+
frameworkSignals.push('spring-boot');
|
|
204
|
+
if (/junit/i.test(pom))
|
|
205
|
+
frameworkSignals.push('junit');
|
|
206
|
+
if (/testng/i.test(pom))
|
|
207
|
+
frameworkSignals.push('testng');
|
|
208
|
+
}
|
|
209
|
+
catch {
|
|
210
|
+
/* ignore */
|
|
211
|
+
}
|
|
212
|
+
}
|
|
213
|
+
if (hasGradleGroovy || hasGradleKts) {
|
|
214
|
+
try {
|
|
215
|
+
const gFile = hasGradleKts ? 'build.gradle.kts' : 'build.gradle';
|
|
216
|
+
const g = readFileSync(nodePath.join(root, gFile), 'utf8');
|
|
217
|
+
if (/spring-boot/i.test(g))
|
|
218
|
+
frameworkSignals.push('spring-boot');
|
|
219
|
+
if (/junit/i.test(g))
|
|
220
|
+
frameworkSignals.push('junit');
|
|
221
|
+
if (/testng/i.test(g))
|
|
222
|
+
frameworkSignals.push('testng');
|
|
223
|
+
}
|
|
224
|
+
catch {
|
|
225
|
+
/* ignore */
|
|
226
|
+
}
|
|
227
|
+
}
|
|
228
|
+
const testFrameworks = frameworkSignals.filter((s) => s === 'junit' || s === 'testng');
|
|
229
|
+
const buildFiles = [];
|
|
230
|
+
if (hasPom)
|
|
231
|
+
buildFiles.push('pom.xml');
|
|
232
|
+
if (hasGradleGroovy)
|
|
233
|
+
buildFiles.push('build.gradle');
|
|
234
|
+
if (hasGradleKts)
|
|
235
|
+
buildFiles.push('build.gradle.kts');
|
|
236
|
+
if (hasSettingsGradle)
|
|
237
|
+
buildFiles.push(existsSync(nodePath.join(root, 'settings.gradle')) ? 'settings.gradle' : 'settings.gradle.kts');
|
|
238
|
+
const likelyCommands = [];
|
|
239
|
+
if (buildTool === 'maven') {
|
|
240
|
+
likelyCommands.push('mvn test', 'mvn verify', 'mvn package');
|
|
241
|
+
if (frameworkSignals.includes('spring-boot'))
|
|
242
|
+
likelyCommands.push('mvn spring-boot:run');
|
|
243
|
+
}
|
|
244
|
+
else if (buildTool === 'gradle') {
|
|
245
|
+
likelyCommands.push('./gradlew test', './gradlew build', './gradlew check');
|
|
246
|
+
if (frameworkSignals.includes('spring-boot'))
|
|
247
|
+
likelyCommands.push('./gradlew bootRun');
|
|
248
|
+
}
|
|
249
|
+
return {
|
|
250
|
+
schema: LANGUAGE_PROFILE_SCHEMA,
|
|
251
|
+
language: LanguageId.Java,
|
|
252
|
+
confidence: javaFiles.length > 5 || hasPom || hasGradleGroovy || hasGradleKts ? 'high' : 'medium',
|
|
253
|
+
fileCount: javaFiles.length,
|
|
254
|
+
sourceRoots,
|
|
255
|
+
testRoots,
|
|
256
|
+
buildFiles,
|
|
257
|
+
dependencyFiles: buildFiles,
|
|
258
|
+
packageManager: buildTool,
|
|
259
|
+
buildTool,
|
|
260
|
+
testFrameworks: testFrameworks.length > 0 ? testFrameworks : ['junit'],
|
|
261
|
+
frameworkSignals,
|
|
262
|
+
likelyCommands,
|
|
263
|
+
riskNotes: [],
|
|
264
|
+
};
|
|
265
|
+
}
|
|
266
|
+
function detectCSharp(root, files) {
|
|
267
|
+
const csFiles = files.filter((f) => f.endsWith('.cs'));
|
|
268
|
+
const csprojFiles = files.filter((f) => f.endsWith('.csproj')).map((f) => rel(root, f));
|
|
269
|
+
const slnFiles = files.filter((f) => f.endsWith('.sln')).map((f) => rel(root, f));
|
|
270
|
+
if (csFiles.length === 0 && csprojFiles.length === 0)
|
|
271
|
+
return null;
|
|
272
|
+
const testProjects = csprojFiles.filter((f) => /\.tests?\.csproj$/i.test(f) || /\bTests?\b/i.test(f));
|
|
273
|
+
const frameworkSignals = [];
|
|
274
|
+
const testFrameworks = [];
|
|
275
|
+
for (const proj of csprojFiles) {
|
|
276
|
+
try {
|
|
277
|
+
const body = readFileSync(nodePath.join(root, proj), 'utf8');
|
|
278
|
+
if (/xunit/i.test(body))
|
|
279
|
+
testFrameworks.push('xunit');
|
|
280
|
+
if (/nunit/i.test(body))
|
|
281
|
+
testFrameworks.push('nunit');
|
|
282
|
+
if (/mstest|microsoft\.net\.test\.sdk/i.test(body))
|
|
283
|
+
testFrameworks.push('mstest');
|
|
284
|
+
if (/microsoft\.aspnetcore/i.test(body))
|
|
285
|
+
frameworkSignals.push('aspnet-core');
|
|
286
|
+
if (/microsoft\.entityframeworkcore/i.test(body))
|
|
287
|
+
frameworkSignals.push('entity-framework-core');
|
|
288
|
+
}
|
|
289
|
+
catch {
|
|
290
|
+
/* ignore */
|
|
291
|
+
}
|
|
292
|
+
}
|
|
293
|
+
return {
|
|
294
|
+
schema: LANGUAGE_PROFILE_SCHEMA,
|
|
295
|
+
language: LanguageId.CSharp,
|
|
296
|
+
confidence: csFiles.length > 5 || csprojFiles.length > 0 ? 'high' : 'medium',
|
|
297
|
+
fileCount: csFiles.length,
|
|
298
|
+
sourceRoots: collectRoots(root, csFiles, ['src', 'Controllers']),
|
|
299
|
+
testRoots: testProjects,
|
|
300
|
+
buildFiles: [...slnFiles, ...csprojFiles],
|
|
301
|
+
dependencyFiles: csprojFiles,
|
|
302
|
+
packageManager: 'nuget',
|
|
303
|
+
buildTool: 'dotnet',
|
|
304
|
+
testFrameworks: [...new Set(testFrameworks)],
|
|
305
|
+
frameworkSignals: [...new Set(frameworkSignals)],
|
|
306
|
+
likelyCommands: ['dotnet restore', 'dotnet build', 'dotnet test', 'dotnet format'],
|
|
307
|
+
riskNotes: [],
|
|
308
|
+
};
|
|
309
|
+
}
|
|
310
|
+
function detectPython(root, files) {
|
|
311
|
+
const pyFiles = files.filter((f) => f.endsWith('.py'));
|
|
312
|
+
const hasPyproject = existsSync(nodePath.join(root, 'pyproject.toml'));
|
|
313
|
+
const hasRequirements = existsSync(nodePath.join(root, 'requirements.txt'));
|
|
314
|
+
const hasSetupPy = existsSync(nodePath.join(root, 'setup.py'));
|
|
315
|
+
const hasPoetryLock = existsSync(nodePath.join(root, 'poetry.lock'));
|
|
316
|
+
const hasUvLock = existsSync(nodePath.join(root, 'uv.lock'));
|
|
317
|
+
if (pyFiles.length === 0 && !hasPyproject && !hasRequirements && !hasSetupPy)
|
|
318
|
+
return null;
|
|
319
|
+
const frameworkSignals = [];
|
|
320
|
+
const testFrameworks = [];
|
|
321
|
+
if (hasPyproject) {
|
|
322
|
+
try {
|
|
323
|
+
const body = readFileSync(nodePath.join(root, 'pyproject.toml'), 'utf8');
|
|
324
|
+
if (/pytest/i.test(body))
|
|
325
|
+
testFrameworks.push('pytest');
|
|
326
|
+
if (/fastapi/i.test(body))
|
|
327
|
+
frameworkSignals.push('fastapi');
|
|
328
|
+
if (/django/i.test(body))
|
|
329
|
+
frameworkSignals.push('django');
|
|
330
|
+
if (/flask/i.test(body))
|
|
331
|
+
frameworkSignals.push('flask');
|
|
332
|
+
if (/ruff/i.test(body))
|
|
333
|
+
frameworkSignals.push('ruff');
|
|
334
|
+
if (/mypy/i.test(body))
|
|
335
|
+
frameworkSignals.push('mypy');
|
|
336
|
+
}
|
|
337
|
+
catch {
|
|
338
|
+
/* ignore */
|
|
339
|
+
}
|
|
340
|
+
}
|
|
341
|
+
if (hasRequirements) {
|
|
342
|
+
try {
|
|
343
|
+
const body = readFileSync(nodePath.join(root, 'requirements.txt'), 'utf8');
|
|
344
|
+
if (/pytest/i.test(body))
|
|
345
|
+
testFrameworks.push('pytest');
|
|
346
|
+
if (/fastapi/i.test(body))
|
|
347
|
+
frameworkSignals.push('fastapi');
|
|
348
|
+
if (/django/i.test(body))
|
|
349
|
+
frameworkSignals.push('django');
|
|
350
|
+
if (/flask/i.test(body))
|
|
351
|
+
frameworkSignals.push('flask');
|
|
352
|
+
}
|
|
353
|
+
catch {
|
|
354
|
+
/* ignore */
|
|
355
|
+
}
|
|
356
|
+
}
|
|
357
|
+
const packageManager = hasPoetryLock ? 'poetry' : hasUvLock ? 'uv' : hasPyproject ? 'pip' : 'pip';
|
|
358
|
+
const buildFiles = [];
|
|
359
|
+
if (hasPyproject)
|
|
360
|
+
buildFiles.push('pyproject.toml');
|
|
361
|
+
if (hasRequirements)
|
|
362
|
+
buildFiles.push('requirements.txt');
|
|
363
|
+
if (hasSetupPy)
|
|
364
|
+
buildFiles.push('setup.py');
|
|
365
|
+
if (hasPoetryLock)
|
|
366
|
+
buildFiles.push('poetry.lock');
|
|
367
|
+
if (hasUvLock)
|
|
368
|
+
buildFiles.push('uv.lock');
|
|
369
|
+
const likelyCommands = [];
|
|
370
|
+
if (packageManager === 'uv')
|
|
371
|
+
likelyCommands.push('uv run pytest', 'uv run ruff check .', 'uv run mypy .');
|
|
372
|
+
else if (packageManager === 'poetry')
|
|
373
|
+
likelyCommands.push('poetry run pytest', 'poetry run ruff check .', 'poetry run mypy .');
|
|
374
|
+
else
|
|
375
|
+
likelyCommands.push('python -m pytest', 'ruff check .', 'mypy .');
|
|
376
|
+
if (hasPyproject)
|
|
377
|
+
likelyCommands.push('python -m build');
|
|
378
|
+
return {
|
|
379
|
+
schema: LANGUAGE_PROFILE_SCHEMA,
|
|
380
|
+
language: LanguageId.Python,
|
|
381
|
+
confidence: pyFiles.length > 5 || hasPyproject ? 'high' : 'medium',
|
|
382
|
+
fileCount: pyFiles.length,
|
|
383
|
+
sourceRoots: collectRoots(root, pyFiles, ['src', 'app']),
|
|
384
|
+
testRoots: collectRoots(root, pyFiles, ['tests', 'test']),
|
|
385
|
+
buildFiles,
|
|
386
|
+
dependencyFiles: buildFiles,
|
|
387
|
+
packageManager,
|
|
388
|
+
buildTool: packageManager,
|
|
389
|
+
testFrameworks: [...new Set(testFrameworks)],
|
|
390
|
+
frameworkSignals: [...new Set(frameworkSignals)],
|
|
391
|
+
likelyCommands,
|
|
392
|
+
riskNotes: [],
|
|
393
|
+
};
|
|
394
|
+
}
|
|
395
|
+
function detectGo(root, files) {
|
|
396
|
+
const goFiles = files.filter((f) => f.endsWith('.go'));
|
|
397
|
+
const hasGoMod = existsSync(nodePath.join(root, 'go.mod'));
|
|
398
|
+
const hasGoSum = existsSync(nodePath.join(root, 'go.sum'));
|
|
399
|
+
if (goFiles.length === 0 && !hasGoMod)
|
|
400
|
+
return null;
|
|
401
|
+
const frameworkSignals = [];
|
|
402
|
+
if (hasGoMod) {
|
|
403
|
+
try {
|
|
404
|
+
const body = readFileSync(nodePath.join(root, 'go.mod'), 'utf8');
|
|
405
|
+
if (/gin-gonic\/gin/i.test(body))
|
|
406
|
+
frameworkSignals.push('gin');
|
|
407
|
+
if (/labstack\/echo/i.test(body))
|
|
408
|
+
frameworkSignals.push('echo');
|
|
409
|
+
if (/cobra/i.test(body))
|
|
410
|
+
frameworkSignals.push('cobra');
|
|
411
|
+
if (/gofiber/i.test(body))
|
|
412
|
+
frameworkSignals.push('fiber');
|
|
413
|
+
}
|
|
414
|
+
catch {
|
|
415
|
+
/* ignore */
|
|
416
|
+
}
|
|
417
|
+
}
|
|
418
|
+
const testFiles = goFiles.filter((f) => f.endsWith('_test.go'));
|
|
419
|
+
const buildFiles = [];
|
|
420
|
+
if (hasGoMod)
|
|
421
|
+
buildFiles.push('go.mod');
|
|
422
|
+
if (hasGoSum)
|
|
423
|
+
buildFiles.push('go.sum');
|
|
424
|
+
return {
|
|
425
|
+
schema: LANGUAGE_PROFILE_SCHEMA,
|
|
426
|
+
language: LanguageId.Go,
|
|
427
|
+
confidence: goFiles.length > 5 || hasGoMod ? 'high' : 'medium',
|
|
428
|
+
fileCount: goFiles.length,
|
|
429
|
+
sourceRoots: collectRoots(root, goFiles.filter((f) => !f.endsWith('_test.go')), ['cmd', 'pkg', 'internal']),
|
|
430
|
+
testRoots: collectRoots(root, testFiles, ['cmd', 'pkg', 'internal']),
|
|
431
|
+
buildFiles,
|
|
432
|
+
dependencyFiles: hasGoMod ? ['go.mod'] : [],
|
|
433
|
+
packageManager: 'go-modules',
|
|
434
|
+
buildTool: 'go',
|
|
435
|
+
testFrameworks: ['testing'],
|
|
436
|
+
frameworkSignals,
|
|
437
|
+
likelyCommands: ['go test ./...', 'go vet ./...', 'go build ./...', 'gofmt -l .'],
|
|
438
|
+
riskNotes: [],
|
|
439
|
+
};
|
|
440
|
+
}
|
|
441
|
+
function detectRust(root, files) {
|
|
442
|
+
const rsFiles = files.filter((f) => f.endsWith('.rs'));
|
|
443
|
+
const hasCargoToml = existsSync(nodePath.join(root, 'Cargo.toml'));
|
|
444
|
+
const hasCargoLock = existsSync(nodePath.join(root, 'Cargo.lock'));
|
|
445
|
+
if (rsFiles.length === 0 && !hasCargoToml)
|
|
446
|
+
return null;
|
|
447
|
+
const frameworkSignals = [];
|
|
448
|
+
if (hasCargoToml) {
|
|
449
|
+
try {
|
|
450
|
+
const body = readFileSync(nodePath.join(root, 'Cargo.toml'), 'utf8');
|
|
451
|
+
if (/tokio/i.test(body))
|
|
452
|
+
frameworkSignals.push('tokio');
|
|
453
|
+
if (/actix-web/i.test(body))
|
|
454
|
+
frameworkSignals.push('actix-web');
|
|
455
|
+
if (/axum/i.test(body))
|
|
456
|
+
frameworkSignals.push('axum');
|
|
457
|
+
if (/rocket/i.test(body))
|
|
458
|
+
frameworkSignals.push('rocket');
|
|
459
|
+
if (/serde/i.test(body))
|
|
460
|
+
frameworkSignals.push('serde');
|
|
461
|
+
}
|
|
462
|
+
catch {
|
|
463
|
+
/* ignore */
|
|
464
|
+
}
|
|
465
|
+
}
|
|
466
|
+
const buildFiles = [];
|
|
467
|
+
if (hasCargoToml)
|
|
468
|
+
buildFiles.push('Cargo.toml');
|
|
469
|
+
if (hasCargoLock)
|
|
470
|
+
buildFiles.push('Cargo.lock');
|
|
471
|
+
return {
|
|
472
|
+
schema: LANGUAGE_PROFILE_SCHEMA,
|
|
473
|
+
language: LanguageId.Rust,
|
|
474
|
+
confidence: rsFiles.length > 5 || hasCargoToml ? 'high' : 'medium',
|
|
475
|
+
fileCount: rsFiles.length,
|
|
476
|
+
sourceRoots: collectRoots(root, rsFiles, ['src', 'crates']),
|
|
477
|
+
testRoots: collectRoots(root, rsFiles, ['tests']),
|
|
478
|
+
buildFiles,
|
|
479
|
+
dependencyFiles: hasCargoToml ? ['Cargo.toml'] : [],
|
|
480
|
+
packageManager: 'cargo',
|
|
481
|
+
buildTool: 'cargo',
|
|
482
|
+
testFrameworks: ['cargo-test'],
|
|
483
|
+
frameworkSignals,
|
|
484
|
+
likelyCommands: ['cargo test', 'cargo check', 'cargo clippy', 'cargo fmt --check', 'cargo build'],
|
|
485
|
+
riskNotes: [],
|
|
486
|
+
};
|
|
487
|
+
}
|
|
488
|
+
function collectRoots(root, files, candidates) {
|
|
489
|
+
const out = [];
|
|
490
|
+
for (const c of candidates) {
|
|
491
|
+
if (files.some((f) => rel(root, f).includes(`/${c}/`) || rel(root, f).startsWith(`${c}/`))) {
|
|
492
|
+
pushUnique(out, c);
|
|
493
|
+
}
|
|
494
|
+
}
|
|
495
|
+
return out;
|
|
496
|
+
}
|
|
497
|
+
export function detectLanguageProfiles(projectRoot) {
|
|
498
|
+
const { files } = walkLimited(projectRoot);
|
|
499
|
+
const profiles = [];
|
|
500
|
+
profiles.push(...detectJsTs(projectRoot, files));
|
|
501
|
+
const java = detectJava(projectRoot, files);
|
|
502
|
+
if (java)
|
|
503
|
+
profiles.push(java);
|
|
504
|
+
const csharp = detectCSharp(projectRoot, files);
|
|
505
|
+
if (csharp)
|
|
506
|
+
profiles.push(csharp);
|
|
507
|
+
const python = detectPython(projectRoot, files);
|
|
508
|
+
if (python)
|
|
509
|
+
profiles.push(python);
|
|
510
|
+
const go = detectGo(projectRoot, files);
|
|
511
|
+
if (go)
|
|
512
|
+
profiles.push(go);
|
|
513
|
+
const rust = detectRust(projectRoot, files);
|
|
514
|
+
if (rust)
|
|
515
|
+
profiles.push(rust);
|
|
516
|
+
const dominant = profiles
|
|
517
|
+
.filter((p) => p.language !== LanguageId.JavaScript) // prefer typed/strong languages when tied
|
|
518
|
+
.sort((a, b) => b.fileCount - a.fileCount)[0]?.language ?? profiles[0]?.language ?? LanguageId.Unknown;
|
|
519
|
+
const allDom = profiles.filter((p) => p.confidence === 'high');
|
|
520
|
+
const finalDominant = profiles.length > 1 && allDom.length > 1 && allDom[0].language !== allDom[1].language
|
|
521
|
+
? (Math.abs(allDom[0].fileCount - allDom[1].fileCount) < 5 ? LanguageId.Mixed : dominant)
|
|
522
|
+
: dominant;
|
|
523
|
+
return {
|
|
524
|
+
schema: LANGUAGE_PROFILE_SCHEMA,
|
|
525
|
+
generatedAt: new Date().toISOString(),
|
|
526
|
+
projectRoot,
|
|
527
|
+
dominantLanguage: finalDominant,
|
|
528
|
+
profiles,
|
|
529
|
+
warnings: profiles.length === 0 ? ['No recognised language detected.'] : [],
|
|
530
|
+
};
|
|
531
|
+
}
|
|
532
|
+
export function renderLanguageProfilesText(r) {
|
|
533
|
+
let out = `=== Language profiles ===\n`;
|
|
534
|
+
out += ` project root ${r.projectRoot}\n`;
|
|
535
|
+
out += ` dominant ${r.dominantLanguage}\n`;
|
|
536
|
+
out += ` profiles ${r.profiles.length}\n\n`;
|
|
537
|
+
for (const p of r.profiles) {
|
|
538
|
+
out += `[${p.language}] files=${p.fileCount} confidence=${p.confidence} buildTool=${p.buildTool ?? '(none)'}\n`;
|
|
539
|
+
if (p.sourceRoots.length)
|
|
540
|
+
out += ` src roots: ${p.sourceRoots.join(', ')}\n`;
|
|
541
|
+
if (p.testRoots.length)
|
|
542
|
+
out += ` test roots: ${p.testRoots.join(', ')}\n`;
|
|
543
|
+
if (p.buildFiles.length)
|
|
544
|
+
out += ` build: ${p.buildFiles.join(', ')}\n`;
|
|
545
|
+
if (p.testFrameworks.length)
|
|
546
|
+
out += ` tests: ${p.testFrameworks.join(', ')}\n`;
|
|
547
|
+
if (p.frameworkSignals.length)
|
|
548
|
+
out += ` frameworks: ${p.frameworkSignals.join(', ')}\n`;
|
|
549
|
+
if (p.likelyCommands.length) {
|
|
550
|
+
out += ` commands:\n`;
|
|
551
|
+
for (const c of p.likelyCommands)
|
|
552
|
+
out += ` • ${c}\n`;
|
|
553
|
+
}
|
|
554
|
+
out += `\n`;
|
|
555
|
+
}
|
|
556
|
+
if (r.warnings.length) {
|
|
557
|
+
out += `Warnings:\n`;
|
|
558
|
+
for (const w of r.warnings)
|
|
559
|
+
out += ` • ${w}\n`;
|
|
560
|
+
}
|
|
561
|
+
return out;
|
|
562
|
+
}
|
|
563
|
+
export function renderLanguageProfilesMarkdown(r) {
|
|
564
|
+
let out = `# Language profiles\n\n`;
|
|
565
|
+
out += `- **project root**: ${r.projectRoot}\n`;
|
|
566
|
+
out += `- **dominant**: \`${r.dominantLanguage}\`\n`;
|
|
567
|
+
out += `- **profiles**: ${r.profiles.length}\n\n`;
|
|
568
|
+
out += `| Language | Files | Confidence | Build tool | Test framework(s) | Frameworks |\n`;
|
|
569
|
+
out += `| --- | --- | --- | --- | --- | --- |\n`;
|
|
570
|
+
for (const p of r.profiles) {
|
|
571
|
+
out += `| \`${p.language}\` | ${p.fileCount} | ${p.confidence} | ${p.buildTool ?? ''} | ${p.testFrameworks.join(', ')} | ${p.frameworkSignals.join(', ')} |\n`;
|
|
572
|
+
}
|
|
573
|
+
out += `\n`;
|
|
574
|
+
for (const p of r.profiles) {
|
|
575
|
+
out += `## ${p.language}\n`;
|
|
576
|
+
if (p.likelyCommands.length) {
|
|
577
|
+
out += `**Likely commands**:\n`;
|
|
578
|
+
for (const c of p.likelyCommands)
|
|
579
|
+
out += `- \`${c}\`\n`;
|
|
580
|
+
out += `\n`;
|
|
581
|
+
}
|
|
582
|
+
}
|
|
583
|
+
return out;
|
|
584
|
+
}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Stable language identifiers used by every polyglot module.
|
|
3
|
+
*/
|
|
4
|
+
export declare enum LanguageId {
|
|
5
|
+
TypeScript = "typescript",
|
|
6
|
+
JavaScript = "javascript",
|
|
7
|
+
Java = "java",
|
|
8
|
+
CSharp = "csharp",
|
|
9
|
+
Python = "python",
|
|
10
|
+
Go = "go",
|
|
11
|
+
Rust = "rust",
|
|
12
|
+
Mixed = "mixed",
|
|
13
|
+
Unknown = "unknown"
|
|
14
|
+
}
|
|
15
|
+
//# sourceMappingURL=language-id.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"language-id.d.ts","sourceRoot":"","sources":["../../src/languages/language-id.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH,oBAAY,UAAU;IACpB,UAAU,eAAe;IACzB,UAAU,eAAe;IACzB,IAAI,SAAS;IACb,MAAM,WAAW;IACjB,MAAM,WAAW;IACjB,EAAE,OAAO;IACT,IAAI,SAAS;IACb,KAAK,UAAU;IACf,OAAO,YAAY;CACpB"}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Stable language identifiers used by every polyglot module.
|
|
3
|
+
*/
|
|
4
|
+
export var LanguageId;
|
|
5
|
+
(function (LanguageId) {
|
|
6
|
+
LanguageId["TypeScript"] = "typescript";
|
|
7
|
+
LanguageId["JavaScript"] = "javascript";
|
|
8
|
+
LanguageId["Java"] = "java";
|
|
9
|
+
LanguageId["CSharp"] = "csharp";
|
|
10
|
+
LanguageId["Python"] = "python";
|
|
11
|
+
LanguageId["Go"] = "go";
|
|
12
|
+
LanguageId["Rust"] = "rust";
|
|
13
|
+
LanguageId["Mixed"] = "mixed";
|
|
14
|
+
LanguageId["Unknown"] = "unknown";
|
|
15
|
+
})(LanguageId || (LanguageId = {}));
|