// SPEC-597-EXEMPT: canonical mapping (npm-package↔framework, keyword catalogue)
// — must enumerate framework names by design; no detection logic to migrate.
// engine/ai-integration/gemini/extensions-advisor.ts — Gemini extensions advisor (SPEC-267)
const EXTENSION_CATALOG = [
    {
        name: 'Conductor',
        url: 'https://geminicli.com/extensions/conductor',
        reason: 'Feature specification and planning',
        stackSignals: ['python', 'django', 'fastapi'],
    },
    {
        name: 'BigQuery Extension',
        url: 'https://geminicli.com/extensions/bigquery',
        reason: 'BigQuery metadata discovery and queries',
        stackSignals: ['bigquery', 'gcp', 'google-cloud', 'data'],
    },
    {
        name: 'AlloyDB Extension',
        url: 'https://geminicli.com/extensions/alloydb',
        reason: 'AlloyDB for PostgreSQL management',
        stackSignals: ['alloydb', 'postgresql', 'postgres', 'gcp'],
    },
    {
        name: 'Figma Extension',
        url: 'https://geminicli.com/extensions/figma',
        reason: 'Figma design file access',
        stackSignals: ['figma', 'design', 'frontend', 'react', 'vue'],
    },
    {
        name: 'GitHub Extension',
        url: 'https://geminicli.com/extensions/github',
        reason: 'GitHub issues, PRs, and repo management',
        stackSignals: ['github', 'git', 'typescript', 'javascript', 'node'],
    },
    {
        name: 'Firebase Extension',
        url: 'https://geminicli.com/extensions/firebase',
        reason: 'Firebase project management and Firestore queries',
        stackSignals: ['firebase', 'firestore', 'gcp', 'react-native', 'flutter'],
    },
    {
        name: 'Kubernetes Extension',
        url: 'https://geminicli.com/extensions/kubernetes',
        reason: 'Kubernetes cluster inspection and deployment management',
        stackSignals: ['kubernetes', 'k8s', 'docker', 'helm', 'gcp'],
    },
    {
        name: 'Terraform Extension',
        url: 'https://geminicli.com/extensions/terraform',
        reason: 'Terraform plan inspection and infrastructure management',
        stackSignals: ['terraform', 'aws', 'azure', 'gcp', 'infrastructure'],
    },
];
export function getRecommendedExtensions(stack) {
    const normalizedStack = stack.map((s) => s.toLowerCase());
    return EXTENSION_CATALOG.filter((ext) => ext.stackSignals.some((signal) => normalizedStack.includes(signal)));
}
export function formatExtensionSuggestions(suggestions) {
    if (suggestions.length === 0) {
        return '> No Gemini CLI extensions recommended for the detected stack.';
    }
    const header = '## Recommended Gemini CLI Extensions\n';
    const rows = suggestions.map((s) => `- **[${s.name}](${s.url})** — ${s.reason}`).join('\n');
    return header + '\n' + rows;
}
//# sourceMappingURL=extensions-advisor.js.map