"use strict";
/**
 * ⚡️ FAF VIBE Command - For No-Code/Low-Code Builders
 * Detects platform type (no-code vs professional)
 */
Object.defineProperty(exports, "__esModule", { value: true });
exports.vibeCommand = vibeCommand;
const colors_1 = require("../fix-once/colors");
const platform_detector_1 = require("../utils/platform-detector");
const championship_style_1 = require("../utils/championship-style");
const turbo_cat_1 = require("../utils/turbo-cat");
async function vibeCommand(options = {}) {
    console.log();
    console.log(championship_style_1.FAF_COLORS.fafOrange('⚡️ FAF VIBE - No-Code Builder Edition 😽'));
    console.log(championship_style_1.FAF_COLORS.fafCyan('━'.repeat(45)));
    const detector = new platform_detector_1.PlatformDetector();
    const platform = await detector.detectPlatform();
    const pricing = detector.getPricingTier(platform);
    console.log();
    if (platform.detected) {
        console.log(championship_style_1.FAF_COLORS.fafGreen(`✓ Platform Detected!`));
        console.log(championship_style_1.FAF_COLORS.fafWhite(`   Platform: ${colors_1.chalk.bold(platform.platform)}`));
        console.log(championship_style_1.FAF_COLORS.fafWhite(`   Confidence: ${platform.confidence}%`));
        console.log(championship_style_1.FAF_COLORS.fafWhite(`   Indicators: ${platform.indicators.join(', ')}`));
        console.log();
        if (platform.tier === 'vibe') {
            console.log(championship_style_1.FAF_COLORS.fafOrange(`${championship_style_1.FAF_ICONS.lightning} NO-CODE PLATFORM DETECTED! ${championship_style_1.FAF_ICONS.turbo_cat}`));
            console.log(championship_style_1.FAF_COLORS.fafGreen(`   ${championship_style_1.FAF_ICONS.gem} Platform: ${pricing.name}`));
            console.log(championship_style_1.FAF_COLORS.fafWhite(`   ${championship_style_1.FAF_ICONS.rocket} FREE CLI for all platforms`));
            console.log(championship_style_1.FAF_COLORS.fafCyan(`   ${championship_style_1.FAF_ICONS.heart_orange} Because builders come in all forms`));
            // Show TURBO-CAT message
            console.log();
            console.log(championship_style_1.FAF_COLORS.fafCyan(`${championship_style_1.FAF_ICONS.turbo_cat} TURBO-CAT says:`) +
                championship_style_1.FAF_COLORS.fafWhite(' "Meow! Let\'s make your AI happy!"'));
        }
        else {
            console.log(championship_style_1.FAF_COLORS.fafCyan(`${championship_style_1.FAF_ICONS.trophy} ${pricing.name}`));
            console.log(championship_style_1.FAF_COLORS.fafWhite(`   ${championship_style_1.FAF_ICONS.rocket} FREE CLI for all users`));
            console.log(championship_style_1.FAF_COLORS.fafWhite(`   F1-Inspired Software Engineering`));
        }
    }
    else {
        console.log(championship_style_1.FAF_COLORS.fafOrange(`${championship_style_1.FAF_ICONS.magnify} No platform detected`));
        console.log(championship_style_1.FAF_COLORS.fafWhite('   Running in standard environment'));
        console.log();
        console.log(championship_style_1.FAF_COLORS.fafCyan('FAF VIBE is for no-code/low-code platforms:'));
        console.log(championship_style_1.FAF_COLORS.fafWhite('   • Replit'));
        console.log(championship_style_1.FAF_COLORS.fafWhite('   • Lovable'));
        console.log(championship_style_1.FAF_COLORS.fafWhite('   • Wix/Base44'));
        console.log(championship_style_1.FAF_COLORS.fafWhite('   • Glitch'));
        console.log(championship_style_1.FAF_COLORS.fafWhite('   • CodeSandbox'));
        console.log(championship_style_1.FAF_COLORS.fafWhite('   • Stackblitz'));
        console.log();
        console.log(championship_style_1.FAF_COLORS.fafCyan(`${championship_style_1.FAF_ICONS.trophy} Platform: Professional Development`));
    }
    // Show quick TURBO-CAT discovery preview
    if (options.preview) {
        console.log();
        console.log(championship_style_1.FAF_COLORS.fafCyan('━'.repeat(45)));
        console.log(championship_style_1.FAF_COLORS.fafOrange(`${championship_style_1.FAF_ICONS.turbo_cat} TURBO-CAT Format Discovery:`));
        const turboCat = new turbo_cat_1.TurboCat();
        const discovery = await turboCat.discoverFormats(process.cwd());
        console.log(championship_style_1.FAF_COLORS.fafWhite(`   Discovered: ${discovery.discoveredFormats.length} formats`));
        console.log(championship_style_1.FAF_COLORS.fafWhite(`   Intelligence: ${discovery.totalIntelligenceScore}%`));
        console.log(championship_style_1.FAF_COLORS.fafWhite(`   Stack: ${discovery.stackSignature}`));
    }
    console.log();
    console.log(championship_style_1.FAF_COLORS.fafCyan('━'.repeat(45)));
    console.log(championship_style_1.FAF_COLORS.fafWhite('⚡️ This is FAF VIBE - Lightning not rainbows!'));
    console.log();
}
exports.default = vibeCommand;
//# sourceMappingURL=vibe.js.map