import { NextRequest, NextResponse } from 'next/server';
import { createSupervisorClient } from '@/lib/supervisor/client';
import { withLogging } from '@/lib/utils/api-logger';
export const POST = withLogging(async (request: NextRequest) => {
const client = createSupervisorClient();
const results = await client.clearAllProcessLogs();
return NextResponse.json({
success: true,
message: 'All process logs cleared',
results,
});
}, 'clearAllProcessLogs');