Skip to main content

Module design_systems

Module design_systems 

Source
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 + the DESIGN.md parser) → 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_overrides table) → the Postgres migration under migrations/, and the SurrealDB schema in migrations/surrealdb/schema.surql, both consumed via store.
  • flint-forge/crates/fdb-gateway/src/a2ui_embedder.rs (Postgres LISTEN/NOTIFY embedding worker) → embedder, re-architected around UAR’s EmbeddingBackend trait and DesignSystemStore instead of a Postgres-specific channel listener (see embedder’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 store::SharedDesignSystemStore;
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 DesignMd document (or raw W3C tokens) into a persisted DesignSystem plus per-component ComponentOverrideRecords.
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.