UNPKG

blue-beatle

Version:

šŸ¤– AI-Powered Development Assistant - Intelligent code analysis, problem solving, and terminal automation using Gemini API

70 lines (55 loc) • 2.76 kB
#!/usr/bin/env node /** * šŸ¤– Blue Beatle - Permanent AI Agent Launcher * World-class agentic AI with permanent workspace presence */ const WorkspaceIntegration = require('../src/workspace-integration'); const chalk = require('chalk'); const figlet = require('figlet'); async function launchPermanentAgent() { // Show impressive startup banner console.clear(); const banner = figlet.textSync('BLUE BEATLE', { font: 'ANSI Shadow', horizontalLayout: 'default' }); console.log(chalk.cyan(banner)); console.log(chalk.yellow('šŸ¤– AGENTIC AI - PERMANENT WORKSPACE INTEGRATION\n')); console.log(chalk.green('šŸš€ WORLD-CLASS AI CAPABILITIES:')); console.log(chalk.gray('━'.repeat(60))); console.log(chalk.white('🧠 Autonomous Intelligence - Self-directed problem solving')); console.log(chalk.white('šŸ” Real-time Code Analysis - Continuous workspace monitoring')); console.log(chalk.white('⚔ Proactive Assistance - Anticipates your needs')); console.log(chalk.white('šŸŽÆ Context Awareness - Understands your entire project')); console.log(chalk.white('šŸ› ļø Auto-fix Capabilities - Fixes issues automatically')); console.log(chalk.white('šŸ“Š Predictive Analytics - Prevents problems before they occur')); console.log(chalk.white('šŸ”„ Self-improving - Learns from every interaction')); console.log(chalk.white('🌐 Workspace Integration - Seamlessly embedded in your workflow\n')); try { const integration = new WorkspaceIntegration(); console.log(chalk.cyan('šŸ”§ Initializing workspace integration...')); await integration.initialize(); console.log(chalk.green('āœ… Blue Beatle AI Agent is now permanently integrated!')); console.log(chalk.yellow('šŸŽÆ The AI is watching your workspace and ready to assist...\n')); // Start the permanent agent await integration.startPermanentAgent(); } catch (error) { console.error(chalk.red('āŒ Failed to start AI Agent:'), error.message); console.log(chalk.yellow('šŸ’” Try running: npm install (to ensure all dependencies are available)')); process.exit(1); } } // Handle graceful shutdown process.on('SIGINT', () => { console.log(chalk.yellow('\nšŸ‘‹ Shutting down Blue Beatle AI Agent...')); process.exit(0); }); process.on('SIGTERM', () => { console.log(chalk.yellow('\nšŸ‘‹ Blue Beatle AI Agent terminated')); process.exit(0); }); // Launch the permanent agent if (require.main === module) { launchPermanentAgent().catch(console.error); } module.exports = { launchPermanentAgent };