/** * Auth-UI Registry (#469 — slot→file map + name→handler map). * * Built per OAuth scope from the scope's resolved auth options: * - `auth.ui` — a {@link AuthSlot} → relative `.tsx`/`.jsx` PATH map, and * - `auth.extras` — an extra-name → server HANDLER function map. * * It resolves each slot's file against the scope's captured source directory * (the `@FrontMcp`/`@App` `__sourceDir`; absolute paths pass through) and owns * the cross-cutting SERVER-side concerns the client contract delegates to the * server: * - CSRF minting + verifying (per pending-auth id), * - the per-(pending-auth, extra) ACCUMULATOR that backs `useAddedItems(name)`, * - the per-slot {@link AuthUiFileSource} the page builder transpiles. * * The auth pages render ENTIRELY in the browser from a server-side single-file * TRANSFORM routed through `@frontmcp/uipack`'s pluggable `renderComponent`: the * slot's `.tsx` is transpiled with esbuild `transformSync` (deps stay external) * and inlined as a `