Files
admin b52318eeae feat: Add intelligent auto-router and enhanced integrations
- 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>
2026-01-28 00:27:56 +04:00

39 lines
1.2 KiB
JavaScript

#!/usr/bin/env node
import 'dotenv/config';
import { DextoAgent } from '@dexto/core';
import { loadAgentConfig, enrichAgentConfig } from '@dexto/agent-management';
import { startTelegramBot } from './bot.js';
async function main() {
try {
// Load agent configuration from local agent-config.yml
console.log('🚀 Initializing Telegram 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 Telegram bot
console.log('📡 Starting Telegram bot connection...');
await startTelegramBot(agent);
console.log('✅ Telegram bot is running! Start with /start command.');
// Graceful shutdown
process.on('SIGINT', async () => {
console.log('\n🛑 Shutting down...');
await agent.stop();
process.exit(0);
});
} catch (error) {
console.error('❌ Failed to start Telegram bot:', error);
process.exit(1);
}
}
main();