UNPKG

ai-debug-local-mcp

Version:

🎯 ENHANCED AI GUIDANCE v4.1.2: Dramatically improved tool descriptions help AI users choose the right tools instead of 'close enough' options. Ultra-fast keyboard automation (10x speed), universal recording, multi-ecosystem debugging support, and compreh

48 lines (39 loc) • 1.34 kB
#!/usr/bin/env node const { execSync } = require('child_process'); const path = require('path'); const fs = require('fs'); const coreDir = path.join(__dirname, '..', 'core'); // Only run in development or if explicitly requested if (process.env.NODE_ENV === 'production' && !process.env.FORCE_ELIXIR_SETUP) { console.log('Skipping Elixir setup in production. Use FORCE_ELIXIR_SETUP=1 to override.'); process.exit(0); } // Check if we're in a CI environment if (process.env.CI) { console.log('Skipping Elixir setup in CI environment.'); process.exit(0); } // Check if Elixir is available try { execSync('elixir --version', { stdio: 'ignore' }); } catch (e) { console.log('Elixir not found. The npm wrapper will guide you through installation when needed.'); process.exit(0); } // Check if core directory exists if (!fs.existsSync(coreDir)) { console.log('Core directory not found. This might be a production install.'); process.exit(0); } console.log('Setting up Elixir core dependencies...'); try { // Get Mix dependencies execSync('mix deps.get', { cwd: coreDir, stdio: 'inherit' }); console.log('✓ Elixir core setup complete!'); } catch (e) { console.error('Warning: Failed to set up Elixir core:', e.message); console.log('You can manually set up by running: cd core && mix deps.get'); }