Merge commit 'd803bfe2b1fe7f5e219e50ac20d6801a0a58ac75' as 'vendor/ruvector'
This commit is contained in:
19
vendor/ruvector/npm/packages/ruvbot/bin/cli.js
vendored
Executable file
19
vendor/ruvector/npm/packages/ruvbot/bin/cli.js
vendored
Executable file
@@ -0,0 +1,19 @@
|
||||
#!/usr/bin/env node
|
||||
|
||||
/**
|
||||
* RuvBot CLI entry point
|
||||
*
|
||||
* Usage:
|
||||
* npx @ruvector/ruvbot init
|
||||
* npx @ruvector/ruvbot start
|
||||
* npx @ruvector/ruvbot config
|
||||
* npx @ruvector/ruvbot skills list
|
||||
* npx @ruvector/ruvbot status
|
||||
*/
|
||||
|
||||
import { main } from '../dist/cli/index.mjs';
|
||||
|
||||
main().catch((error) => {
|
||||
console.error('Error:', error.message);
|
||||
process.exit(1);
|
||||
});
|
||||
47
vendor/ruvector/npm/packages/ruvbot/bin/ruvbot.js
vendored
Normal file
47
vendor/ruvector/npm/packages/ruvbot/bin/ruvbot.js
vendored
Normal file
@@ -0,0 +1,47 @@
|
||||
#!/usr/bin/env node
|
||||
|
||||
/**
|
||||
* RuvBot CLI Entry Point
|
||||
*
|
||||
* Usage:
|
||||
* npx ruvbot <command> [options]
|
||||
* ruvbot <command> [options]
|
||||
*
|
||||
* Commands:
|
||||
* start Start the RuvBot server
|
||||
* init Initialize RuvBot in current directory
|
||||
* doctor Run diagnostics and health checks
|
||||
* config Manage configuration
|
||||
* memory Memory management commands
|
||||
* security Security scanning and audit
|
||||
* plugins Plugin management
|
||||
* agent Agent management
|
||||
* status Show bot status
|
||||
*/
|
||||
|
||||
require('dotenv/config');
|
||||
|
||||
async function run() {
|
||||
try {
|
||||
// Try CJS build first
|
||||
const { main } = require('../dist/cli/index.js');
|
||||
await main();
|
||||
} catch (cjsError) {
|
||||
// Fall back to dynamic import for ESM
|
||||
try {
|
||||
const { main } = await import('../dist/esm/cli/index.js');
|
||||
await main();
|
||||
} catch (esmError) {
|
||||
console.error('Failed to load RuvBot CLI');
|
||||
console.error('CJS Error:', cjsError.message);
|
||||
console.error('ESM Error:', esmError.message);
|
||||
console.error('\nTry running: npm run build');
|
||||
process.exit(1);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
run().catch((error) => {
|
||||
console.error('Fatal error:', error.message);
|
||||
process.exit(1);
|
||||
});
|
||||
Reference in New Issue
Block a user