import { getTaskLiveRuns } from '@/lib/delegation.js';

export const runtime = 'nodejs';
export const dynamic = 'force-dynamic';

export async function GET(_req, { params }) {
  const { id } = await params;
  return Response.json({ runs: getTaskLiveRuns(id) });
}
