UNPKG

@vfarcic/dot-ai

Version:

AI-powered development productivity platform that enhances software development workflows through intelligent automation and AI-driven assistance

63 lines (62 loc) • 3.02 kB
#!/usr/bin/env node "use strict"; /** * Platform-Wide AI Model Synthesis Runner * * Executes comprehensive cross-tool analysis using all individual evaluation reports * Generates platform-wide insights, decision matrices, and usage recommendations */ Object.defineProperty(exports, "__esModule", { value: true }); const platform_synthesizer_js_1 = require("./platform-synthesizer.js"); const vercel_provider_js_1 = require("../core/providers/vercel-provider.js"); const model_config_js_1 = require("../core/model-config.js"); async function runPlatformSynthesis() { console.log('šŸš€ Starting Platform-Wide AI Model Synthesis...\n'); try { // Parse command line arguments for graph filtering const args = process.argv.slice(2); let graphsToGenerate; let skipReport = false; if (args.length > 0) { const graphArg = args.find(arg => arg.startsWith('--graphs=')); if (graphArg) { graphsToGenerate = graphArg.split('=')[1].split(','); console.log(`šŸ“Š Generating specific graphs: ${graphsToGenerate.join(', ')}\n`); } skipReport = args.includes('--skip-report'); if (skipReport) { console.log('ā­ļø Skipping AI report generation (graphs only)\n'); } } // Initialize AI provider for synthesis analysis (use Claude for comprehensive analysis) const aiProvider = new vercel_provider_js_1.VercelProvider({ provider: 'anthropic', apiKey: process.env.ANTHROPIC_API_KEY, model: (0, model_config_js_1.getCurrentModel)('anthropic'), debugMode: process.env.DEBUG_DOT_AI === 'true' }); // Initialize synthesizer const synthesizer = new platform_synthesizer_js_1.PlatformSynthesizer(aiProvider); // Generate comprehensive platform-wide analysis (or just graphs if skip-report is set) console.log('šŸ“Š Generating platform-wide analysis...'); const markdownReport = await synthesizer.generatePlatformWideAnalysis(graphsToGenerate, skipReport); // Save synthesis report only if we generated it if (!skipReport) { console.log('\nšŸ’¾ Saving synthesis report...'); await synthesizer.saveSynthesisReport(markdownReport); } console.log('\nāœ… Platform-wide synthesis complete!'); console.log('šŸ“„ Report saved: ./eval/analysis/platform/synthesis-report.md'); console.log('\n✨ AI-generated comprehensive report includes:'); console.log(' • Detailed model profiles with strengths/weaknesses'); console.log(' • Production recommendations by priority'); console.log(' • Cross-tool performance insights'); console.log(' • Critical warnings and actionable guidance'); } catch (error) { console.error('āŒ Platform synthesis failed:', error); process.exit(1); } } // Run synthesis runPlatformSynthesis();