A lightweight design agent built with libfx. Describe a page and an agent writes it as one HTML file.
import { cancelCurrent } from '../../../lib/agent' import { withSessionRoute } from '../../../lib/route-auth' export const maxDuration = 800 export const POST = withSessionRoute(async (_request, { host }) => { return Response.json({ cancelled: await cancelCurrent(host) }) })