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

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

export async function POST(_req, { params }) {
  const { id } = await params;
  return Response.json({ run: cancelAgentRun(id) });
}
