import { proxyWorker, withOwnedJob } from '@/lib/agent-worker-proxy';

export const GET = async (
  _request: Request,
  context: { params: Promise<{ jobId: string }> },
) =>
  await withOwnedJob(
    context,
    async (jobId) =>
      await proxyWorker(jobId, 'agent/status', { method: 'GET' }),
  );
