blue-beatle
Version:
🤖 AI-Powered Development Assistant - Intelligent code analysis, problem solving, and terminal automation using Gemini API
53 lines (44 loc) • 1.82 kB
JavaScript
/**
* 🚀 MacAdida Post-Install Script
* Runs after npm installation to set up the environment
*/
const fs = require('fs');
const path = require('path');
const os = require('os');
function postInstall() {
try {
console.log('🤖 Blue Beatle: Setting up your AI development assistant...');
// Make binary executable on Unix systems
if (process.platform !== 'win32') {
try {
const { execSync } = require('child_process');
execSync('chmod +x bin/blue-beatle.js', { stdio: 'ignore' });
} catch (error) {
// Ignore chmod errors
}
}
// Create config directory
const configDir = path.join(os.homedir(), '.blue-beatle');
if (!fs.existsSync(configDir)) {
fs.mkdirSync(configDir, { recursive: true });
}
console.log('✅ Blue Beatle installation complete!');
console.log('');
console.log('🚀 Quick Start:');
console.log(' blue-beatle setup - Run initial setup');
console.log(' blue-beatle ai "help" - Ask AI for help');
console.log(' blue-beatle interactive - Start interactive mode');
console.log('');
console.log('📖 Documentation: https://github.com/engineermarcus/marcus-alias');
console.log('🔑 Get API key: https://makersuite.google.com/app/apikey');
} catch (error) {
// Silent fail - don't break installation
console.log('⚠️ Post-install setup completed with warnings');
}
}
// Only run if called directly (not during npm test)
if (require.main === module && process.env.NODE_ENV !== 'test') {
postInstall();
}
module.exports = postInstall;