- Add intelligent-router.sh hook for automatic agent routing - Add AUTO-TRIGGER-SUMMARY.md documentation - Add FINAL-INTEGRATION-SUMMARY.md documentation - Complete Prometheus integration (6 commands + 4 tools) - Complete Dexto integration (12 commands + 5 tools) - Enhanced Ralph with access to all agents - Fix /clawd command (removed disable-model-invocation) - Update hooks.json to v5 with intelligent routing - 291 total skills now available - All 21 commands with automatic routing 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <noreply@anthropic.com>
40 lines
1.3 KiB
JavaScript
40 lines
1.3 KiB
JavaScript
#!/usr/bin/env node
|
|
|
|
import 'dotenv/config';
|
|
import { DextoAgent } from '@dexto/core';
|
|
import { loadAgentConfig, enrichAgentConfig } from '@dexto/agent-management';
|
|
import { startDiscordBot } from './bot.js';
|
|
|
|
async function main() {
|
|
try {
|
|
// Load agent configuration from local agent-config.yml
|
|
console.log('🚀 Initializing Discord bot...');
|
|
const configPath = './agent-config.yml';
|
|
const config = await loadAgentConfig(configPath);
|
|
const enrichedConfig = enrichAgentConfig(config, configPath);
|
|
|
|
// Create and start the Dexto agent
|
|
const agent = new DextoAgent(enrichedConfig, configPath);
|
|
await agent.start();
|
|
|
|
// Start the Discord bot
|
|
console.log('📡 Starting Discord bot connection...');
|
|
startDiscordBot(agent);
|
|
|
|
console.log('✅ Discord bot is running! Send messages or use !ask <question> prefix.');
|
|
console.log(' In DMs, just send your message without the !ask prefix.');
|
|
|
|
// Graceful shutdown
|
|
process.on('SIGINT', async () => {
|
|
console.log('\n🛑 Shutting down...');
|
|
await agent.stop();
|
|
process.exit(0);
|
|
});
|
|
} catch (error) {
|
|
console.error('❌ Failed to start Discord bot:', error);
|
|
process.exit(1);
|
|
}
|
|
}
|
|
|
|
main();
|