build_runner factory entry point for the per-package factory function
emitter. Reads each curated library's lib/src/widget_catalog/catalog.json
and writes lib/src/registration.g.dart declaring a const
Map<String, LocalWidgetBuilder> consumed by the SDK runtime.
build_runner factory entry point for the package-wide A2UI catalog emitter.
Walks every lib/**.dart for @RestageWidget-annotated classes, assembles
the analyzer-fed A2UI seams off the resolved elements, and emits a single
lib/restage_a2ui_catalog.g.dart declaring buildRestageCatalogItems() (the
genui Catalog source) plus the companion restage_a2ui_catalog.a2ui.json
capability stamp. Opt-in (not applied to dependents) — the emitted code
imports the genui runtime, so a consumer enables it only when they want an
A2UI catalog.
build_runner factory entry point for the package-wide customer-catalog
emitter. Walks every lib/**.dart for @RestageWidget-annotated
classes and emits a single lib/user_catalog.g.dart aggregating them.
build_runner factory entry point for the package-wide customer-catalog
JSON emitter. Walks every lib/**.dart for @RestageWidget-annotated
classes and emits lib/src/widget_catalog/catalog.json from the same
allocation as lib/user_catalog.g.dart, so a paywall referencing a
registered custom widget resolves it against the catalog.
build_runner factory entry point for the package-wide customer-factory
emitter. Walks every lib/**.dart for @RestageWidget-annotated
classes, generates per-widget LocalWidgetBuilder closures, and emits
a single lib/user_factories.g.dart exposing a
registerRestageCustomerWidgets() helper the customer calls once at
startup.