import { proxyBox, withBox } from '@/lib/agent-worker-proxy';

export const POST = async (request: Request) =>
  await withBox(
    async (username) =>
      await proxyBox(username, 'lifecycle', {
        method: 'POST',
        body: await request.text(),
      }),
  );
