Elysia 1.x adapter: flagsPanel to .mount() the admin panel, and
flagsElysia, a typed plugin for the Eden client. Optional peer dependency:
elysia 1.x (for Elysia 2, use @xtandard/flags/elysia2).
Entry point for the @xtandard/flags/elysia subpath export.
Typed Elysia plugin exposing the admin API so the Eden client can call it with full path/method/param typing (edenClient.flags.api.projects.get()). Routes are declared for the typed surface; every handler delegates to the shared fetch pipeline (auth, authorization, validation, error mapping reused). A catch-all also serves the bundled UI.
What flagsElysia returns: an Elysia 1.x plugin (new Elysia({ prefix, name: "xtandard-flags" })) that declares every admin route — method, path, params and body schemas — under prefix, plus a catch-all for the bundled UI. .use() it on your app and treaty<typeof app>() sees the routes. Named so the reference doesn’t spell out the inferred Elysia generics; it is exactly the inferred plugin type, so Eden typing is unchanged.