Elysia 2 adapter: the same surface as @xtandard/audit/elysia
(auditPanel(), the typed auditElysia() plugin, auditContext()), built against
Elysia 2 and @elysia/eden.
Request-context plugin: resolves the actor / tenant from Elysia’s context (whatever your auth plugin derived) and opens an audit context scope for the handler, so every audit.record() inside it is attributed. Register it after the plugin that derives your user.
Typed Elysia plugin exposing the API so the Eden client can call it with full path/method/param typing (client.audit.api.tenants.get()). Routes are declared for the typed surface; every handler delegates to the shared fetch pipeline (auth, authorization, portal scoping, error mapping reused). A catch-all also serves the bundled UI.