Expand description
A2UI design-system bridge — component catalog, design-token import, and semantic-search embeddings for A2UI surfaces.
Migrated from flint-forge:
flint-forge/crates/fdb-app/src/a2ui/(domain types + theDESIGN.mdparser) →types+design_md_parser, ported near-verbatim (pure Rust, no database dependency).flint-forge/migrations/0009_flint_a2ui_design_systems.sql(design system provenance columns +component_overridestable) → the Postgres migration undermigrations/, and the SurrealDB schema inmigrations/surrealdb/schema.surql, both consumed viastore.flint-forge/crates/fdb-gateway/src/a2ui_embedder.rs(PostgresLISTEN/NOTIFYembedding worker) →embedder, re-architected around UAR’sEmbeddingBackendtrait andDesignSystemStoreinstead of a Postgres-specific channel listener (seeembedder’s module docs for the full rationale).
import is new UAR-side glue connecting the parser to the store,
since flint-forge’s own “apply a parsed DESIGN.md” use case lives in its
interface layer (out of scope for this migration).
See openspec/changes/a2ui-migrate-design-systems-embedder-from-flint-forge/
for the full audit of what was and wasn’t migrated, and why.
Re-exports§
pub use import::ImportError;pub use import::ImportReport;pub use import::import_design_md;pub use import::import_w3c_tokens;pub use store::SurrealDesignSystemStore;pub use store::DesignSystemStore;pub use store::InMemoryDesignSystemStore;pub use types::Component;pub use types::ComponentOverrideRecord;pub use types::DesignSystem;pub use types::DesignToken;pub use types::DesignTokenMap;pub use types::Renderers;pub use types::ResolvedComponent;pub use types::SourceFormat;
Modules§
- design_
md_ parser - DESIGN.md parser — 9-section Flint design specification format.
- embedder
- Component embedder — computes and stores semantic-search embeddings for the A2UI design-system component catalog.
- import
- Import pipeline — turns a parsed
DesignMddocument (or raw W3C tokens) into a persistedDesignSystemplus per-componentComponentOverrideRecords. - store
- Storage for design systems, their base component catalog, and per-design-system component overrides.
- types
- Domain types for the UAR A2UI design-system bridge.