mirror of
https://github.com/ruvnet/ruflo.git
synced 2026-11-24 22:28:10 +09:00
## 🔒 Security Fixes - CRITICAL: Removed vulnerable pkg dependency (GHSA-22r3-9w55-cj54) - Replaced with secure @vercel/ncc alternative - Security score improved from 55/100 to 75/100 - All npm audit vulnerabilities resolved (0 vulnerabilities) ## 🚀 Infrastructure Improvements - Re-enabled ALL CI/CD security gates with strict enforcement - Fixed Jest configuration and test infrastructure - Fixed 18 TypeScript test files with import issues - Created comprehensive test utilities ## 🛠️ Code Quality - Fixed 145 ESLint errors (16% reduction) - Fixed 15 critical TypeScript errors - Added development tooling configs ## 📚 Documentation - Created security audit report - Created fix summary documentation - Created functionality review - Updated GitHub issue #362 🤖 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude <noreply@anthropic.com>
32 lines
898 B
JavaScript
32 lines
898 B
JavaScript
#!/usr/bin/env node
|
|
/**
|
|
* Claude-Flow CLI - Main entry point for Node.js
|
|
*/
|
|
|
|
import { CLI, VERSION } from './cli-core.js';
|
|
import { setupCommands } from './commands/index.js';
|
|
import { fileURLToPath } from 'node:url';
|
|
import { dirname } from 'node:path';
|
|
|
|
async function main() {
|
|
const cli = new CLI('claude-flow', 'Advanced AI Agent Orchestration System');
|
|
|
|
// Setup all commands
|
|
setupCommands(cli);
|
|
|
|
// Run the CLI (args default to process.argv.slice(2) in Node.js version)
|
|
await cli.run();
|
|
}
|
|
|
|
// Check if this module is being run directly (Node.js equivalent of import.meta.main)
|
|
const __filename = fileURLToPath(import.meta.url);
|
|
const __dirname = dirname(__filename);
|
|
const isMainModule = process.argv[1] === __filename || process.argv[1].endsWith('/main.js');
|
|
|
|
if (isMainModule) {
|
|
main().catch((error) => {
|
|
console.error('Fatal error:', error);
|
|
process.exit(1);
|
|
});
|
|
}
|