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 message screen codegen. Same machinery
as the onboarding screen builder, scoped to the lib/message/screens/
source root by the surface parameter.
build_runner factory entry point for the one builder that materializes
per-library generated Dart. It owns the whole <stem>.restage.g.dart
family, so a library declaring both a screen and a flow still has exactly
one generated part with one claimant.
build_runner factory entry point for the unified generated-output
builder: one deterministic bundle per authored library, its optional
inspection report, and the package-wide output index/publication
manifest, all resolved once from RestageOutputsBuilder's placement plan.
build_runner factory entry point for the package-wide Restage source and
output ownership roster. The builder is intentionally separate from all
artifact emitters: it discovers legacy source declarations through the
tracked package graph and writes the deterministic package index/roster
before later compiler lanes consume the ownership contract.
build_runner factory entry point for survey screen codegen. Same machinery
as the onboarding screen builder, scoped to lib/survey/screens/ by the
surface parameter.
build_runner factory entry point for the package-wide A2UI catalog emitter.
Scans every lib/**.dart and walks the files that spell a
Restage annotation (or an alias of one) for @RestageWidget-annotated
classes, assembles
the analyzer-fed A2UI seams off the resolved elements, and emits a single
lib/generated/restage_a2ui_catalog.g.dart declaring
buildRestageCatalogItems() (the genui Catalog source) plus the colocated
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 widget catalog
emitter. Scans every lib/**.dart and walks the files that spell a
Restage annotation (or an alias of one) for @RestageWidget-annotated
classes and emits a single lib/user_catalog.g.dart aggregating them.
build_runner factory entry point for the package-wide widget catalog
JSON emitter. Scans every lib/**.dart and walks the files that spell a
Restage annotation (or an alias of one) 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 widget factory
emitter. Scans every lib/**.dart and walks the files that spell a
Restage annotation (or an alias of one) for @RestageWidget-annotated
classes, generates per-widget LocalWidgetBuilder closures, and emits
a single lib/user_factories.g.dart exposing a
registerRestageWidgets() helper the app calls once at
startup.