#!/usr/bin/env node /** * Simple test script to verify the demo application */ import { robotics } from 'lerobot-arena-client'; console.log('šŸ¤– Testing LeRobot Arena Demo'); console.log('āœ… Successfully imported robotics client'); // Test that we can create clients try { const producer = new robotics.RoboticsProducer('http://localhost:8000'); console.log('āœ… Producer client created successfully'); const consumer = new robotics.RoboticsConsumer('http://localhost:8000'); console.log('āœ… Consumer client created successfully'); console.log('\nšŸŽ‰ Demo application is ready!'); console.log('šŸ“Š Available routes:'); console.log(' - / (Dashboard)'); console.log(' - /robotics (Robotics Control)'); console.log(' - /robotics/producer (Producer Interface)'); console.log(' - /robotics/consumer (Consumer Interface)'); console.log(' - /robotics/producer/[roomId] (Room-specific Producer)'); console.log(' - /robotics/consumer/[roomId] (Room-specific Consumer)'); console.log(' - /video (Video placeholder)'); console.log('\nšŸ’” To test the demo:'); console.log(' 1. Start the LeRobot Arena server on port 8000'); console.log(' 2. Run: bun run dev'); console.log(' 3. Open http://localhost:5173 in your browser'); } catch (error) { console.error('āŒ Error testing demo:', error); process.exit(1); }