// Test the live decisions API directly
async function testLiveDecisions() {
  try {
    console.log('🧪 Testing live decisions API...');
    
    const response = await fetch('http://localhost:9001/api/automation/live-decisions');
    console.log('📊 Response status:', response.status);
    
    const text = await response.text();
    
    if (text.startsWith('<!DOCTYPE html>')) {
      console.log('❌ Got error page instead of JSON');
      console.log('Error details:', text.substring(0, 500));
    } else {
      console.log('✅ Got JSON response');
      const data = JSON.parse(text);
      console.log('📋 Live decisions:', data);
    }
    
  } catch (error) {
    console.error('❌ Error testing API:', error.message);
  }
}

testLiveDecisions();
