UNPKG

faf-cli

Version:

๐Ÿ˜ฝ TURBO-CAT: The Rapid Catalytic Converter โ€ข Project DNA โœจ for ANY AI โ€ข Fully Integrated with React, Next.js, Svelte, TypeScript, Vite & n8n โ€ข FREE FOREVER โ€ข 10,000+ developers โ€ข Championship Edition

68 lines โ€ข 2.19 kB
"use strict"; /** * Test Chrome Extension fuzzy detection */ Object.defineProperty(exports, "__esModule", { value: true }); const chrome_extension_detector_1 = require("../utils/chrome-extension-detector"); const colors_1 = require("../fix-once/colors"); console.log(colors_1.chalk.cyan('๐Ÿงช Testing Chrome Extension Fuzzy Detection')); console.log('='.repeat(50)); const testCases = [ // High confidence (should auto-detect) 'chrome extension', 'Chrome Extension for tab management', 'browser extension', 'chrome addon', // Medium confidence (needs confirmation) 'chr ext', 'c ext', 'CE for managing tabs', 'chrome-ext', 'chr extension', // Typos (should auto-correct) 'chrom extention', 'chrome exension', 'crome extension', 'chrome extnsion', // Low confidence 'extension', 'popup manager', 'browser tool', // Spaced patterns 'c e x t', 'ch ext', // Should NOT detect 'react app', 'cli tool', 'web application' ]; console.log(); for (const testCase of testCases) { const result = chrome_extension_detector_1.ChromeExtensionDetector.detect(testCase); let icon = 'โŒ'; let status = 'Not detected'; if (result.detected) { icon = 'โœ…'; status = `Detected (${result.confidence})`; } else if (result.confidence === 'low') { icon = '๐Ÿ’ญ'; status = `Maybe (${result.confidence})`; } console.log(`${icon} "${testCase}"`); console.log(` โ†’ ${status}`); if (result.suggestion) { console.log(` โ†’ Suggestion: ${result.suggestion}`); } if (result.needsConfirmation) { console.log(colors_1.chalk.yellow(` โ†’ Needs confirmation: "Did you mean Chrome Extension?"`)); } console.log(); } // Summary console.log('='.repeat(50)); console.log(colors_1.chalk.green('โœ… High Confidence: Auto-accepts Chrome Extension')); console.log(colors_1.chalk.yellow('๐Ÿ’ญ Medium/Low: Asks for confirmation')); console.log(colors_1.chalk.blue('๐Ÿ”ง Typos: Auto-corrected')); console.log(colors_1.chalk.red('โŒ Non-matches: Correctly ignored')); //# sourceMappingURL=test-chrome-fuzzy.js.map