// tools/suggest-tooling/idp-catalog.ts — SPEC-048
// Builds IDP and platform engineering tooling recommendations.
import { buildIdpToolingLines } from '../../engine/platform-engineering/golden-path-generator.js';
import { buildDoraToolingLines } from '../../engine/platform-engineering/dora-advisor.js';
import { detectTeamScale } from '../../engine/platform-engineering/idp-detector.js';
/**
 * Builds IDP tooling recommendation lines if the project is multi-team or platform candidate.
 * Called from handleSuggestTooling as an additional section.
 */
export async function buildIdpRecommendationLines(knowledge) {
    const teamScale = await detectTeamScale(knowledge.projectPath);
    if (teamScale === 'solo' || teamScale === 'small-team') {
        return [];
    }
    const idpLines = buildIdpToolingLines(teamScale);
    const doraLines = buildDoraToolingLines();
    return [
        ...idpLines,
        ...doraLines,
        '## Compliance as Code',
        '',
        '| Tool | Type | Use Case |',
        '|------|------|----------|',
        '| [OPA + Conftest](https://conftest.dev) | Open-source | Policy enforcement in CI (Terraform, K8s manifests) |',
        '| [Kyverno](https://kyverno.io) | Open-source | Kubernetes admission control — mutate/validate resources |',
        '| [Drata](https://drata.com) | SaaS | SOC2 / ISO27001 continuous compliance automation |',
        '',
        '## Reproducible Dev Environments',
        '',
        '| Tool | Type | Best For |',
        '|------|------|----------|',
        '| [Dev Containers](https://containers.dev) | Open spec | VS Code, JetBrains, GitHub Codespaces — zero setup |',
        '| [Nix](https://nixos.org) | Open-source | Hermetic builds, exact dependency pinning, multi-language |',
        '| [GitHub Codespaces](https://github.com/features/codespaces) | SaaS | Instant cloud dev environments, browser or VS Code |',
        '',
    ];
}
//# sourceMappingURL=idp-catalog.js.map