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
JavaScript
/**
* š¤ 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 };