// Use the existing API endpoint to check the database
const projectId = 'Sih2VRdZeBglpVNc4eFS'; // Your project ID

async function checkDB() {
  try {
    // Try to fetch extraction handoff
    const response = await fetch(`http://localhost:3000/api/projects/${projectId}/extraction-handoff`);
    
    if (response.ok) {
      const data = await response.json();
      console.log('\n=== EXTRACTION HANDOFF ===');
      console.log(JSON.stringify(data.handoff, null, 2));
    } else {
      console.log('Extraction handoff response:', response.status, await response.text());
    }
    
  } catch (error) {
    console.error('Error:', error.message);
  }
}

checkDB();
