// Manually trigger extraction to see what happens
const projectId = 'Sih2VRdZeBglpVNc4eFS';

async function triggerExtraction() {
  try {
    console.log('Triggering extraction for project:', projectId);
    console.log('Watch the terminal running "npm run dev" for logs...\n');
    
    const response = await fetch(`http://localhost:3000/api/projects/${projectId}/run-extraction`, {
      method: 'POST',
      headers: {
        'Content-Type': 'application/json',
        'Authorization': 'Bearer fake-token-for-local-dev' // Will fail auth but trigger logging
      }
    });
    
    const text = await response.text();
    console.log('Response status:', response.status);
    console.log('Response body:', text);
    
  } catch (error) {
    console.error('Error:', error.message);
  }
}

triggerExtraction();

