"use strict";
/**
 * FAF Integration System
 *
 * Championship-grade integration detection and context generation
 *
 * Phase 1: Core integrations (React, Next, Svelte, TypeScript, Vite, n8n)
 * Minimum quality: 85% (Bronze tier)
 */
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
    if (k2 === undefined) k2 = k;
    var desc = Object.getOwnPropertyDescriptor(m, k);
    if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
      desc = { enumerable: true, get: function() { return m[k]; } };
    }
    Object.defineProperty(o, k2, desc);
}) : (function(o, m, k, k2) {
    if (k2 === undefined) k2 = k;
    o[k2] = m[k];
}));
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
    Object.defineProperty(o, "default", { enumerable: true, value: v });
}) : function(o, v) {
    o["default"] = v;
});
var __importStar = (this && this.__importStar) || (function () {
    var ownKeys = function(o) {
        ownKeys = Object.getOwnPropertyNames || function (o) {
            var ar = [];
            for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
            return ar;
        };
        return ownKeys(o);
    };
    return function (mod) {
        if (mod && mod.__esModule) return mod;
        var result = {};
        if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
        __setModuleDefault(result, mod);
        return result;
    };
})();
Object.defineProperty(exports, "__esModule", { value: true });
exports.n8nDetector = exports.viteDetector = exports.typescriptDetector = exports.svelteDetector = exports.nextDetector = exports.reactDetector = exports.integrationRegistry = exports.FafIntegrationRegistry = void 0;
exports.detectAndGenerate = detectAndGenerate;
// Export registry (primary interface)
var registry_js_1 = require("./registry.js");
Object.defineProperty(exports, "FafIntegrationRegistry", { enumerable: true, get: function () { return registry_js_1.FafIntegrationRegistry; } });
Object.defineProperty(exports, "integrationRegistry", { enumerable: true, get: function () { return registry_js_1.integrationRegistry; } });
// Export individual detectors (for direct use)
var react_js_1 = require("./detectors/react.js");
Object.defineProperty(exports, "reactDetector", { enumerable: true, get: function () { return react_js_1.reactDetector; } });
var next_js_1 = require("./detectors/next.js");
Object.defineProperty(exports, "nextDetector", { enumerable: true, get: function () { return next_js_1.nextDetector; } });
var svelte_js_1 = require("./detectors/svelte.js");
Object.defineProperty(exports, "svelteDetector", { enumerable: true, get: function () { return svelte_js_1.svelteDetector; } });
var typescript_js_1 = require("./detectors/typescript.js");
Object.defineProperty(exports, "typescriptDetector", { enumerable: true, get: function () { return typescript_js_1.typescriptDetector; } });
var vite_js_1 = require("./detectors/vite.js");
Object.defineProperty(exports, "viteDetector", { enumerable: true, get: function () { return vite_js_1.viteDetector; } });
var n8n_js_1 = require("./detectors/n8n.js");
Object.defineProperty(exports, "n8nDetector", { enumerable: true, get: function () { return n8n_js_1.n8nDetector; } });
// Convenience function: Detect and generate context in one call
async function detectAndGenerate(projectPath) {
    const { integrationRegistry } = await Promise.resolve().then(() => __importStar(require('./registry.js')));
    const detected = await integrationRegistry.detectAll(projectPath);
    const context = await integrationRegistry.generateContext(projectPath);
    return {
        detected,
        context,
    };
}
//# sourceMappingURL=index.js.map