presentation/widgets/access_token_dialog library

Classes

AccessTokenDialog
Dialog that captures a Supabase access token and runs the provisioning flow via SupabaseProvisioner. The token lives in a TextEditingController that is disposed when the dialog closes — it never escapes this widget.
FunctionBundle
Source files + entrypoint for one bundled Edge Function.

Enums

AccessTokenDialogMode
Controls whether the dialog runs the full bootstrap flow (schema + all Edge Functions) or only the function-redeploy subset.

Functions

defaultFunctionBundleLoader(String slug) Future<FunctionBundle>
Default implementation: read assets/functions/<slug>.files.txt (a newline-separated manifest emitted by ./dto schema bundle), then load each listed file from assets/functions/<slug>/<relative>.
defaultSchemaSqlLoader() Future<String>
Default schema loader: assets/schema/schema.sql.

Typedefs

FunctionBundleLoader = Future<FunctionBundle> Function(String slug)
Loader for a bundled Edge Function's source files. Returns the entrypoint path (e.g. index.ts) plus every file the Management API should receive in the multipart upload, keyed by relative path. Injectable for tests.
SchemaSqlLoader = Future<String> Function()
Loader for the bundled assets/schema/schema.sql. Injectable so widget tests can return canned content instead of hitting rootBundle.