import { NextResponse } from 'next/server'; import { createSupervisorClient } from '@/lib/supervisor/client'; // POST - Clear all process logs export async function POST() { try { const client = createSupervisorClient(); const results = await client.clearAllProcessLogs(); return NextResponse.json({ success: true, message: 'All process logs cleared', results }); } catch (error: any) { console.error('Supervisor clear all logs error:', error); return NextResponse.json( { error: error.message || 'Failed to clear all logs' }, { status: 500 } ); } }