import 'dotenv/config';
import { NodeAgent } from './index';

const HUB_URL = process.env.HUB_URL || 'http://localhost:3000';

const agent = new NodeAgent(HUB_URL);

agent.start().catch(err => {
  console.error('[Agent] Fatal error:', err);
  process.exit(1);
});
