UNPKG

tops-bmad

Version:

CLI tool to install BMAD workflow files into any project with integrated Shai-Hulud 2.0 security scanning

32 lines (23 loc) 798 B
#!/usr/bin/env node /** * TOPS BMAD Security Scanner - Dashboard Generator */ import { resolve, dirname } from 'path'; import { fileURLToPath } from 'url'; import { spawn } from 'child_process'; const __filename = fileURLToPath(import.meta.url); const __dirname = dirname(__filename); const PROJECT_ROOT = resolve(__dirname, '..'); const DASHBOARD_SCRIPT = resolve(PROJECT_ROOT, 'security-tools', 'scripts', 'security-dashboard.js'); const args = process.argv.slice(2); const dashboardProcess = spawn('node', [DASHBOARD_SCRIPT, ...args], { stdio: 'inherit', cwd: PROJECT_ROOT }); dashboardProcess.on('close', (code) => { process.exit(code || 0); }); dashboardProcess.on('error', (error) => { console.error('❌ Error generating dashboard:', error.message); process.exit(1); });