@uibot/mcp-server 0.15.1 → 0.16.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -0,0 +1 @@
1
+ {"schemaVersion":"uibot.public-resources.v1","release":{"version":"0.16.0","sourceHash":"913715dffd31a968ff9ec423730118075c98e8f131410af97be313f873c240c5"},"index":{"schemaVersion":"uibot.resource.index.v1","resources":[{"id":"block:chat-surface","kind":"block","title":"AI Chat Surface","description":"A real conversation surface with fixture messages and host-owned actions.","tags":["block"],"aliases":["chat-surface"],"capabilities":[],"dependencies":["package:uibot-ai-chat"],"source":{"type":"registry","id":"chat-surface","version":"0.16.0","license":"MIT"},"receipt":{"level":"declared","maturity":"experimental","checks":{"source":"declared","license":"declared","contract":"declared","states":"missing","accessibility":"missing","light-theme":"missing","dark-theme":"missing","responsive":"missing","dependency-closure":"missing","packed-install":"missing","typecheck":"missing","browser":"missing"},"evidence":[]}},{"id":"block:collection-cell-editor","kind":"block","title":"collection-cell-editor","description":"Design-system cell editors for PagedCollectionGrid's renderCellEditor: text, number, long text, checkbox, single/multiple select, calendar dates (timestamps keep their time) and a searchable relation picker.","tags":["block"],"aliases":["collection-cell-editor"],"capabilities":[],"dependencies":["block:collection-shared"],"source":{"type":"registry","id":"collection-cell-editor","version":"0.16.0","license":"MIT"},"receipt":{"level":"declared","maturity":"experimental","checks":{"source":"declared","license":"declared","contract":"declared","states":"missing","accessibility":"missing","light-theme":"missing","dark-theme":"missing","responsive":"missing","dependency-closure":"missing","packed-install":"missing","typecheck":"missing","browser":"missing"},"evidence":[]}},{"id":"block:collection-panel-drawer","kind":"block","title":"collection-panel-drawer","description":"Right-hand drawer for PagedCollectionWorkspace's renderPanel; a busy panel stays open and unsaved edits ask before closing.","tags":["block"],"aliases":["collection-panel-drawer"],"capabilities":[],"dependencies":["block:collection-shared"],"source":{"type":"registry","id":"collection-panel-drawer","version":"0.16.0","license":"MIT"},"receipt":{"level":"declared","maturity":"experimental","checks":{"source":"declared","license":"declared","contract":"declared","states":"missing","accessibility":"missing","light-theme":"missing","dark-theme":"missing","responsive":"missing","dependency-closure":"missing","packed-install":"missing","typecheck":"missing","browser":"missing"},"evidence":[]}},{"id":"block:collection-record-menu","kind":"block","title":"collection-record-menu","description":"Right-click record actions (expand, duplicate, copy cells, delete) for renderRecordContextMenu.","tags":["block"],"aliases":["collection-record-menu"],"capabilities":[],"dependencies":["block:collection-shared"],"source":{"type":"registry","id":"collection-record-menu","version":"0.16.0","license":"MIT"},"receipt":{"level":"declared","maturity":"experimental","checks":{"source":"declared","license":"declared","contract":"declared","states":"missing","accessibility":"missing","light-theme":"missing","dark-theme":"missing","responsive":"missing","dependency-closure":"missing","packed-install":"missing","typecheck":"missing","browser":"missing"},"evidence":[]}},{"id":"block:collection-shared","kind":"block","title":"collection-shared","description":"Copy (zh/en), editor prop types and Tab-commit helper shared by the UIBot collection blocks.","tags":["block"],"aliases":["collection-shared"],"capabilities":[],"dependencies":[],"source":{"type":"registry","id":"collection-shared","version":"0.16.0","license":"MIT"},"receipt":{"level":"declared","maturity":"experimental","checks":{"source":"declared","license":"declared","contract":"declared","states":"missing","accessibility":"missing","light-theme":"missing","dark-theme":"missing","responsive":"missing","dependency-closure":"missing","packed-install":"missing","typecheck":"missing","browser":"missing"},"evidence":[]}},{"id":"block:collection-workspace","kind":"block","title":"Collection Workspace","description":"Editable tables, schema, saved views and records with a local in-memory host.","tags":["block"],"aliases":["collection-workspace"],"capabilities":[],"dependencies":["package:uibot-renderer-react"],"source":{"type":"registry","id":"collection-workspace","version":"0.16.0","license":"MIT"},"receipt":{"level":"declared","maturity":"experimental","checks":{"source":"declared","license":"declared","contract":"declared","states":"missing","accessibility":"missing","light-theme":"missing","dark-theme":"missing","responsive":"missing","dependency-closure":"missing","packed-install":"missing","typecheck":"missing","browser":"missing"},"evidence":[]}},{"id":"block:creation-html-generation","kind":"block","title":"creation-html-generation","description":"Generate a new HTML artifact or rewrite the current revision, with at-most-once dispatch and reconcile from @uibot/creation-kit.","tags":["block"],"aliases":["creation-html-generation"],"capabilities":[],"dependencies":["block:creation-shared"],"source":{"type":"registry","id":"creation-html-generation","version":"0.16.0","license":"MIT"},"receipt":{"level":"declared","maturity":"experimental","checks":{"source":"declared","license":"declared","contract":"declared","states":"missing","accessibility":"missing","light-theme":"missing","dark-theme":"missing","responsive":"missing","dependency-closure":"missing","packed-install":"missing","typecheck":"missing","browser":"missing"},"evidence":[]}},{"id":"block:creation-reference-generation","kind":"block","title":"creation-reference-generation","description":"Generate a presentation from an explicitly chosen saved HTML revision.","tags":["block"],"aliases":["creation-reference-generation"],"capabilities":[],"dependencies":["block:creation-shared"],"source":{"type":"registry","id":"creation-reference-generation","version":"0.16.0","license":"MIT"},"receipt":{"level":"declared","maturity":"experimental","checks":{"source":"declared","license":"declared","contract":"declared","states":"missing","accessibility":"missing","light-theme":"missing","dark-theme":"missing","responsive":"missing","dependency-closure":"missing","packed-install":"missing","typecheck":"missing","browser":"missing"},"evidence":[]}},{"id":"block:creation-revision-export","kind":"block","title":"creation-revision-export","description":"Download a saved HTML revision (PPTX for presentations) once no model request is open; the host supplies the export transport.","tags":["block"],"aliases":["creation-revision-export"],"capabilities":[],"dependencies":["block:creation-shared"],"source":{"type":"registry","id":"creation-revision-export","version":"0.16.0","license":"MIT"},"receipt":{"level":"declared","maturity":"experimental","checks":{"source":"declared","license":"declared","contract":"declared","states":"missing","accessibility":"missing","light-theme":"missing","dark-theme":"missing","responsive":"missing","dependency-closure":"missing","packed-install":"missing","typecheck":"missing","browser":"missing"},"evidence":[]}},{"id":"block:creation-shared","kind":"block","title":"creation-shared","description":"Copy (zh/en), domain filters and run checks shared by the UIBot creation blocks.","tags":["block"],"aliases":["creation-shared"],"capabilities":[],"dependencies":[],"source":{"type":"registry","id":"creation-shared","version":"0.16.0","license":"MIT"},"receipt":{"level":"declared","maturity":"experimental","checks":{"source":"declared","license":"declared","contract":"declared","states":"missing","accessibility":"missing","light-theme":"missing","dark-theme":"missing","responsive":"missing","dependency-closure":"missing","packed-install":"missing","typecheck":"missing","browser":"missing"},"evidence":[]}},{"id":"block:creation-variant-compare","kind":"block","title":"creation-variant-compare","description":"Generate two or three HTML candidates side by side (project design, design guides or custom directions) and adopt one as the next revision, over useCreationVariants.","tags":["block"],"aliases":["creation-variant-compare"],"capabilities":[],"dependencies":["block:creation-shared"],"source":{"type":"registry","id":"creation-variant-compare","version":"0.16.0","license":"MIT"},"receipt":{"level":"declared","maturity":"experimental","checks":{"source":"declared","license":"declared","contract":"declared","states":"missing","accessibility":"missing","light-theme":"missing","dark-theme":"missing","responsive":"missing","dependency-closure":"missing","packed-install":"missing","typecheck":"missing","browser":"missing"},"evidence":[]}},{"id":"block:creation-workspace","kind":"block","title":"creation-workspace","description":"Manual HTML creation workspace (projects, artifacts, CAS saves with a conflict step, generation, export) over useCreationWorkspace; the host renders the editor.","tags":["block"],"aliases":["creation-workspace"],"capabilities":[],"dependencies":["block:creation-html-generation","block:creation-reference-generation","block:creation-revision-export","block:creation-shared","block:creation-variant-compare"],"source":{"type":"registry","id":"creation-workspace","version":"0.16.0","license":"MIT"},"receipt":{"level":"declared","maturity":"experimental","checks":{"source":"declared","license":"declared","contract":"declared","states":"missing","accessibility":"missing","light-theme":"missing","dark-theme":"missing","responsive":"missing","dependency-closure":"missing","packed-install":"missing","typecheck":"missing","browser":"missing"},"evidence":[]}},{"id":"block:document-editor","kind":"block","title":"Document Editor","description":"BlockNote-backed public React editing with local memory content.","tags":["block"],"aliases":["document-editor"],"capabilities":[],"dependencies":["package:uibot-document-editor"],"source":{"type":"registry","id":"document-editor","version":"0.16.0","license":"MIT"},"receipt":{"level":"declared","maturity":"experimental","checks":{"source":"declared","license":"declared","contract":"declared","states":"missing","accessibility":"missing","light-theme":"missing","dark-theme":"missing","responsive":"missing","dependency-closure":"missing","packed-install":"missing","typecheck":"missing","browser":"missing"},"evidence":[]}},{"id":"block:html-source-editor","kind":"block","title":"HTML Source Editor","description":"Draft protection, revision compare-and-swap and isolated HTML preview.","tags":["block"],"aliases":["html-source-editor"],"capabilities":[],"dependencies":["package:uibot-renderer-react"],"source":{"type":"registry","id":"html-source-editor","version":"0.16.0","license":"MIT"},"receipt":{"level":"declared","maturity":"experimental","checks":{"source":"declared","license":"declared","contract":"declared","states":"missing","accessibility":"missing","light-theme":"missing","dark-theme":"missing","responsive":"missing","dependency-closure":"missing","packed-install":"missing","typecheck":"missing","browser":"missing"},"evidence":[]}},{"id":"block:preview-device-frame","kind":"block","title":"preview-device-frame","description":"CSS-only preview shell with a phone / tablet / desktop width switch (no nested iframe).","tags":["block"],"aliases":["preview-device-frame"],"capabilities":[],"dependencies":[],"source":{"type":"registry","id":"preview-device-frame","version":"0.16.0","license":"MIT"},"receipt":{"level":"declared","maturity":"experimental","checks":{"source":"declared","license":"declared","contract":"declared","states":"missing","accessibility":"missing","light-theme":"missing","dark-theme":"missing","responsive":"missing","dependency-closure":"missing","packed-install":"missing","typecheck":"missing","browser":"missing"},"evidence":[]}},{"id":"component:accordion-list","kind":"component","title":"AccordionList","description":"General-purpose content accordion on native <details>/<summary> — fully functional with zero JS. Each row is a standalone hairline card with an optional leading icon chip, a title and a body. `defaultOpenFirst` opens the first row. (Faq is the divided-single-card Q&A variant.)","category":"presentation","tags":["accordion","content","details","marketing"],"aliases":["AccordionList"],"capabilities":["catalog:component"],"dependencies":[],"source":{"type":"catalog","id":"AccordionList","license":"MIT"},"receipt":{"level":"declared","maturity":"experimental","checks":{"source":"declared","license":"declared","contract":"declared","states":"missing","accessibility":"missing","light-theme":"missing","dark-theme":"missing","responsive":"missing","dependency-closure":"missing","packed-install":"missing","typecheck":"missing","browser":"missing"},"evidence":[]}},{"id":"component:alert","kind":"component","title":"Alert","description":"Inline alert with icon, title and description. destructive uses role=alert; other variants role=status. Status is conveyed by icon and hidden label text, not colour alone.","category":"primitive","tags":["alert","feedback","notice"],"aliases":["Alert"],"capabilities":["catalog:component"],"dependencies":[],"source":{"type":"catalog","id":"Alert","license":"MIT"},"receipt":{"level":"declared","maturity":"experimental","checks":{"source":"declared","license":"declared","contract":"declared","states":"missing","accessibility":"missing","light-theme":"missing","dark-theme":"missing","responsive":"missing","dependency-closure":"missing","packed-install":"missing","typecheck":"missing","browser":"missing"},"evidence":[]}},{"id":"component:app-navigation","kind":"component","title":"AppNavigation","description":"Workspace navigation with configured groups, brand and account","category":"composite","tags":["navigation"],"aliases":["AppNavigation"],"capabilities":["catalog:component"],"dependencies":[],"source":{"type":"catalog","id":"AppNavigation","license":"MIT"},"receipt":{"level":"declared","maturity":"experimental","checks":{"source":"declared","license":"declared","contract":"declared","states":"missing","accessibility":"missing","light-theme":"missing","dark-theme":"missing","responsive":"missing","dependency-closure":"missing","packed-install":"missing","typecheck":"missing","browser":"missing"},"evidence":[]}},{"id":"component:avatar-list","kind":"component","title":"AvatarList","description":"Compact people and activity list","category":"composite","tags":["list"],"aliases":["AvatarList"],"capabilities":["catalog:component"],"dependencies":[],"source":{"type":"catalog","id":"AvatarList","license":"MIT"},"receipt":{"level":"declared","maturity":"experimental","checks":{"source":"declared","license":"declared","contract":"declared","states":"missing","accessibility":"missing","light-theme":"missing","dark-theme":"missing","responsive":"missing","dependency-closure":"missing","packed-install":"missing","typecheck":"missing","browser":"missing"},"evidence":[]}},{"id":"component:badge","kind":"component","title":"Badge","description":"Small status label. Text is the status; colour is only reinforcement. Children or `label` provide the text.","category":"primitive","tags":["badge","label","status"],"aliases":["Badge"],"capabilities":["catalog:component"],"dependencies":[],"source":{"type":"catalog","id":"Badge","license":"MIT"},"receipt":{"level":"declared","maturity":"experimental","checks":{"source":"declared","license":"declared","contract":"declared","states":"missing","accessibility":"missing","light-theme":"missing","dark-theme":"missing","responsive":"missing","dependency-closure":"missing","packed-install":"missing","typecheck":"missing","browser":"missing"},"evidence":[]}},{"id":"component:badge-group","kind":"component","title":"BadgeGroup","description":"Horizontal group of status badges. Items may be plain strings or {label, tone}.","category":"composite","tags":["badge","status","tags"],"aliases":["BadgeGroup"],"capabilities":["catalog:component"],"dependencies":[],"source":{"type":"catalog","id":"BadgeGroup","license":"MIT"},"receipt":{"level":"declared","maturity":"experimental","checks":{"source":"declared","license":"declared","contract":"declared","states":"missing","accessibility":"missing","light-theme":"missing","dark-theme":"missing","responsive":"missing","dependency-closure":"missing","packed-install":"missing","typecheck":"missing","browser":"missing"},"evidence":[]}},{"id":"component:banner","kind":"component","title":"Banner","description":"Slim full-width announcement bar: optional icon + message, an inline CTA link and a decorative dismiss '×'. `tone` picks one of the four brand accents; `solid` fills the strip with the accent instead of a soft tint.","category":"presentation","tags":["announcement","banner","marketing","notice"],"aliases":["Banner"],"capabilities":["catalog:component"],"dependencies":[],"source":{"type":"catalog","id":"Banner","license":"MIT"},"receipt":{"level":"declared","maturity":"experimental","checks":{"source":"declared","license":"declared","contract":"declared","states":"missing","accessibility":"missing","light-theme":"missing","dark-theme":"missing","responsive":"missing","dependency-closure":"missing","packed-install":"missing","typecheck":"missing","browser":"missing"},"evidence":[]}},{"id":"component:bar-chart","kind":"component","title":"BarChart","description":"Accessible deterministic bar series with visible labels and hover values","category":"composite","tags":["chart"],"aliases":["BarChart"],"capabilities":["catalog:component"],"dependencies":[],"source":{"type":"catalog","id":"BarChart","license":"MIT"},"receipt":{"level":"declared","maturity":"experimental","checks":{"source":"declared","license":"declared","contract":"declared","states":"missing","accessibility":"missing","light-theme":"missing","dark-theme":"missing","responsive":"missing","dependency-closure":"missing","packed-install":"missing","typecheck":"missing","browser":"missing"},"evidence":[]}},{"id":"component:bento-cell","kind":"component","title":"BentoCell","description":"A single bento tile, usable standalone inside a BentoGrid. Reads span.col / span.row and maps them to static span classes so the cell can be as wide/tall as the mosaic needs. Optional icon/title/desc plus composed children.","category":"presentation","tags":["bento","card","cell","marketing"],"aliases":["BentoCell"],"capabilities":["catalog:component"],"dependencies":[],"source":{"type":"catalog","id":"BentoCell","license":"MIT"},"receipt":{"level":"declared","maturity":"experimental","checks":{"source":"declared","license":"declared","contract":"declared","states":"missing","accessibility":"missing","light-theme":"missing","dark-theme":"missing","responsive":"missing","dependency-closure":"missing","packed-install":"missing","typecheck":"missing","browser":"missing"},"evidence":[]}},{"id":"component:bento-grid","kind":"component","title":"BentoGrid","description":"Asymmetric bento layout. Lays BentoCell children, or an `items` array, onto a CSS grid whose base column count is `cols`; cells opt into col/row spans to break the rhythm into a mixed-size mosaic. Hairline cards, per-cell accent tone.","category":"presentation","tags":["bento","grid","layout","marketing"],"aliases":["BentoGrid"],"capabilities":["catalog:component"],"dependencies":[],"source":{"type":"catalog","id":"BentoGrid","license":"MIT"},"receipt":{"level":"declared","maturity":"experimental","checks":{"source":"declared","license":"declared","contract":"declared","states":"missing","accessibility":"missing","light-theme":"missing","dark-theme":"missing","responsive":"missing","dependency-closure":"missing","packed-install":"missing","typecheck":"missing","browser":"missing"},"evidence":[]}},{"id":"component:box","kind":"component","title":"Box","description":"Flex container for composing layout. Use as a row or column spacer between other blocks.","category":"primitive","tags":["container","layout"],"aliases":["Box"],"capabilities":["catalog:component"],"dependencies":[],"source":{"type":"catalog","id":"Box","license":"MIT"},"receipt":{"level":"declared","maturity":"experimental","checks":{"source":"declared","license":"declared","contract":"declared","states":"missing","accessibility":"missing","light-theme":"missing","dark-theme":"missing","responsive":"missing","dependency-closure":"missing","packed-install":"missing","typecheck":"missing","browser":"missing"},"evidence":[]}},{"id":"component:breadcrumb","kind":"component","title":"Breadcrumb","description":"Hierarchical page path trail. Pass an items array of {label, href?}.","category":"composite","tags":["breadcrumb","nav"],"aliases":["Breadcrumb"],"capabilities":["catalog:component"],"dependencies":[],"source":{"type":"catalog","id":"Breadcrumb","license":"MIT"},"receipt":{"level":"declared","maturity":"experimental","checks":{"source":"declared","license":"declared","contract":"declared","states":"missing","accessibility":"missing","light-theme":"missing","dark-theme":"missing","responsive":"missing","dependency-closure":"missing","packed-install":"missing","typecheck":"missing","browser":"missing"},"evidence":[]}},{"id":"component:browser-frame","kind":"component","title":"BrowserFrame","description":"Product-screenshot window shell: frames its `content` slot (or children) in a precise browser/app chrome — three traffic-light dots + a mono title/address bar — with a hairline border, long soft shadow, and an optional 3D tilt. Used to present a live-rendered UI as a product-shot visual (dogfood) instead of a static screenshot.","category":"presentation","tags":["browser","frame","marketing","screenshot","window"],"aliases":["BrowserFrame"],"capabilities":["catalog:component"],"dependencies":[],"source":{"type":"catalog","id":"BrowserFrame","license":"MIT"},"receipt":{"level":"declared","maturity":"experimental","checks":{"source":"declared","license":"declared","contract":"declared","states":"missing","accessibility":"missing","light-theme":"missing","dark-theme":"missing","responsive":"missing","dependency-closure":"missing","packed-install":"missing","typecheck":"missing","browser":"missing"},"evidence":[]}},{"id":"component:button","kind":"component","title":"Button","description":"Standalone action button. Six visual variants and five sizes. Does not submit forms — use Form.Submit for that.","category":"primitive","tags":["action","button"],"aliases":["Button"],"capabilities":["catalog:component"],"dependencies":[],"source":{"type":"catalog","id":"Button","license":"MIT"},"receipt":{"level":"declared","maturity":"experimental","checks":{"source":"declared","license":"declared","contract":"declared","states":"missing","accessibility":"missing","light-theme":"missing","dark-theme":"missing","responsive":"missing","dependency-closure":"missing","packed-install":"missing","typecheck":"missing","browser":"missing"},"evidence":[]}},{"id":"component:callout","kind":"component","title":"Callout","description":"Emphasis callout panel: a tinted box (semantic or brand colour) with an icon, optional title and body. color-mix against the chosen token keeps the wash subtle and legible in light and dark.","category":"presentation","tags":["alert","callout","marketing","note"],"aliases":["Callout"],"capabilities":["catalog:component"],"dependencies":[],"source":{"type":"catalog","id":"Callout","license":"MIT"},"receipt":{"level":"declared","maturity":"experimental","checks":{"source":"declared","license":"declared","contract":"declared","states":"missing","accessibility":"missing","light-theme":"missing","dark-theme":"missing","responsive":"missing","dependency-closure":"missing","packed-install":"missing","typecheck":"missing","browser":"missing"},"evidence":[]}},{"id":"component:card","kind":"component","title":"Card","description":"Surface container with rounded border and optional header (title + description + actions slot).","category":"composite","tags":["card","surface"],"aliases":["Card"],"capabilities":["catalog:component"],"dependencies":[],"source":{"type":"catalog","id":"Card","license":"MIT"},"receipt":{"level":"declared","maturity":"experimental","checks":{"source":"declared","license":"declared","contract":"declared","states":"missing","accessibility":"missing","light-theme":"missing","dark-theme":"missing","responsive":"missing","dependency-closure":"missing","packed-install":"missing","typecheck":"missing","browser":"missing"},"evidence":[]}},{"id":"component:chat-panel","kind":"component","title":"ChatPanel","description":"Conversation selector and controlled message composition","category":"composite","tags":["interactive"],"aliases":["ChatPanel"],"capabilities":["catalog:component"],"dependencies":[],"source":{"type":"catalog","id":"ChatPanel","license":"MIT"},"receipt":{"level":"declared","maturity":"experimental","checks":{"source":"declared","license":"declared","contract":"declared","states":"missing","accessibility":"missing","light-theme":"missing","dark-theme":"missing","responsive":"missing","dependency-closure":"missing","packed-install":"missing","typecheck":"missing","browser":"missing"},"evidence":[]}},{"id":"component:code-showcase","kind":"component","title":"CodeShowcase","description":"Mono code panel with window chrome (three dots) and line numbers, used to showcase a UIBot YAML/JSON spec. Pure CSS, no syntax-highlighter dependency.","category":"presentation","tags":["code","marketing","showcase","spec"],"aliases":["CodeShowcase"],"capabilities":["catalog:component"],"dependencies":[],"source":{"type":"catalog","id":"CodeShowcase","license":"MIT"},"receipt":{"level":"declared","maturity":"experimental","checks":{"source":"declared","license":"declared","contract":"declared","states":"missing","accessibility":"missing","light-theme":"missing","dark-theme":"missing","responsive":"missing","dependency-closure":"missing","packed-install":"missing","typecheck":"missing","browser":"missing"},"evidence":[]}},{"id":"component:comparison-table","kind":"component","title":"ComparisonTable","description":"Feature comparison table across products/plans. The header lists columns (a `highlighted` column gets an amber-washed spine); each row pairs a feature label with one value per column — booleans render as amber check / muted cross glyphs, strings render verbatim. Horizontally scrollable on small screens.","category":"presentation","tags":["comparison","marketing","pricing","table"],"aliases":["ComparisonTable"],"capabilities":["catalog:component"],"dependencies":[],"source":{"type":"catalog","id":"ComparisonTable","license":"MIT"},"receipt":{"level":"declared","maturity":"experimental","checks":{"source":"declared","license":"declared","contract":"declared","states":"missing","accessibility":"missing","light-theme":"missing","dark-theme":"missing","responsive":"missing","dependency-closure":"missing","packed-install":"missing","typecheck":"missing","browser":"missing"},"evidence":[]}},{"id":"component:cta-band","kind":"component","title":"CtaBand","description":"Inverted ink-black call-to-action band with grain overlay and a single amber CTA. Closes a landing page with high contrast.","category":"presentation","tags":["band","conversion","cta","marketing"],"aliases":["CtaBand"],"capabilities":["catalog:component"],"dependencies":[],"source":{"type":"catalog","id":"CtaBand","license":"MIT"},"receipt":{"level":"declared","maturity":"experimental","checks":{"source":"declared","license":"declared","contract":"declared","states":"missing","accessibility":"missing","light-theme":"missing","dark-theme":"missing","responsive":"missing","dependency-closure":"missing","packed-install":"missing","typecheck":"missing","browser":"missing"},"evidence":[]}},{"id":"component:data-table","kind":"component","title":"DataTable","description":"Configurable record table with search, facets, sorting, stable selection and pagination. Server mode emits query intent without filtering current-page rows.","category":"composite","tags":["admin","records","table"],"aliases":["DataTable"],"capabilities":["catalog:component"],"dependencies":[],"source":{"type":"catalog","id":"DataTable","license":"MIT"},"receipt":{"level":"declared","maturity":"experimental","checks":{"source":"declared","license":"declared","contract":"declared","states":"missing","accessibility":"missing","light-theme":"missing","dark-theme":"missing","responsive":"missing","dependency-closure":"missing","packed-install":"missing","typecheck":"missing","browser":"missing"},"evidence":[]}},{"id":"component:detail-field","kind":"component","title":"DetailField","description":"Label + value display row, for use inside a detail pane.","category":"primitive","tags":["detail","display","field"],"aliases":["DetailField"],"capabilities":["catalog:component"],"dependencies":[],"source":{"type":"catalog","id":"DetailField","license":"MIT"},"receipt":{"level":"declared","maturity":"experimental","checks":{"source":"declared","license":"declared","contract":"declared","states":"missing","accessibility":"missing","light-theme":"missing","dark-theme":"missing","responsive":"missing","dependency-closure":"missing","packed-install":"missing","typecheck":"missing","browser":"missing"},"evidence":[]}},{"id":"component:diagnostics-list","kind":"component","title":"DiagnosticsList","description":"Levelled diagnostics list with a coloured left bar and glyph per severity (info / warn / error).","category":"composite","tags":["diagnostics","list","overview","status"],"aliases":["DiagnosticsList"],"capabilities":["catalog:component"],"dependencies":[],"source":{"type":"catalog","id":"DiagnosticsList","license":"MIT"},"receipt":{"level":"declared","maturity":"experimental","checks":{"source":"declared","license":"declared","contract":"declared","states":"missing","accessibility":"missing","light-theme":"missing","dark-theme":"missing","responsive":"missing","dependency-closure":"missing","packed-install":"missing","typecheck":"missing","browser":"missing"},"evidence":[]}},{"id":"component:dialog","kind":"component","title":"Dialog","description":"Confirmation with explicit action intents. Boolean open uses a native modal; omitted open keeps an inline composition.","category":"composite","tags":["confirm","dialog","modal"],"aliases":["Dialog"],"capabilities":["catalog:component"],"dependencies":[],"source":{"type":"catalog","id":"Dialog","license":"MIT"},"receipt":{"level":"declared","maturity":"experimental","checks":{"source":"declared","license":"declared","contract":"declared","states":"missing","accessibility":"missing","light-theme":"missing","dark-theme":"missing","responsive":"missing","dependency-closure":"missing","packed-install":"missing","typecheck":"missing","browser":"missing"},"evidence":[]}},{"id":"component:divider","kind":"component","title":"Divider","description":"Thin horizontal (default) or vertical separator line.","category":"primitive","tags":["separator"],"aliases":["Divider"],"capabilities":["catalog:component"],"dependencies":[],"source":{"type":"catalog","id":"Divider","license":"MIT"},"receipt":{"level":"declared","maturity":"experimental","checks":{"source":"declared","license":"declared","contract":"declared","states":"missing","accessibility":"missing","light-theme":"missing","dark-theme":"missing","responsive":"missing","dependency-closure":"missing","packed-install":"missing","typecheck":"missing","browser":"missing"},"evidence":[]}},{"id":"component:drawer","kind":"component","title":"Drawer","description":"Off-canvas side panel for secondary context (filters, details, comments). Rendered inline in preview.","category":"composite","tags":["drawer","overlay"],"aliases":["Drawer"],"capabilities":["catalog:component"],"dependencies":[],"source":{"type":"catalog","id":"Drawer","license":"MIT"},"receipt":{"level":"declared","maturity":"experimental","checks":{"source":"declared","license":"declared","contract":"declared","states":"missing","accessibility":"missing","light-theme":"missing","dark-theme":"missing","responsive":"missing","dependency-closure":"missing","packed-install":"missing","typecheck":"missing","browser":"missing"},"evidence":[]}},{"id":"component:empty-state","kind":"component","title":"EmptyState","description":"Empty or recoverable status panel (role=status) with title, message and an optional action button.","category":"primitive","tags":["empty","placeholder","status"],"aliases":["EmptyState"],"capabilities":["catalog:component"],"dependencies":[],"source":{"type":"catalog","id":"EmptyState","license":"MIT"},"receipt":{"level":"declared","maturity":"experimental","checks":{"source":"declared","license":"declared","contract":"declared","states":"missing","accessibility":"missing","light-theme":"missing","dark-theme":"missing","responsive":"missing","dependency-closure":"missing","packed-install":"missing","typecheck":"missing","browser":"missing"},"evidence":[]}},{"id":"component:fact-list","kind":"component","title":"FactList","description":"Key/value fact list (dl). Pass `items` or FactRow children. Not a KPI card; use StatCard for metrics.","category":"composite","tags":["details","facts","key-value"],"aliases":["FactList"],"capabilities":["catalog:component"],"dependencies":[],"source":{"type":"catalog","id":"FactList","license":"MIT"},"receipt":{"level":"declared","maturity":"experimental","checks":{"source":"declared","license":"declared","contract":"declared","states":"missing","accessibility":"missing","light-theme":"missing","dark-theme":"missing","responsive":"missing","dependency-closure":"missing","packed-install":"missing","typecheck":"missing","browser":"missing"},"evidence":[]}},{"id":"component:fact-row","kind":"component","title":"FactRow","description":"One fact row inside FactList. `code` renders the value monospaced; `href` / `hrefSection` (-> #section) render a link; onClick makes the value a button.","category":"primitive","tags":["facts","key-value"],"aliases":["FactRow"],"capabilities":["catalog:component"],"dependencies":[],"source":{"type":"catalog","id":"FactRow","license":"MIT"},"receipt":{"level":"declared","maturity":"experimental","checks":{"source":"declared","license":"declared","contract":"declared","states":"missing","accessibility":"missing","light-theme":"missing","dark-theme":"missing","responsive":"missing","dependency-closure":"missing","packed-install":"missing","typecheck":"missing","browser":"missing"},"evidence":[]}},{"id":"component:faq","kind":"component","title":"Faq","description":"Editorial accordion FAQ built on native <details>/<summary> — fully functional with zero JS / state wiring. Optional eyebrow/title/lead header; rows carry a mono index numeral, a hairline plus-mark that rotates 45° into a close-mark on open, and a grid-rows expand transition.","category":"presentation","tags":["accordion","content","faq","marketing"],"aliases":["Faq"],"capabilities":["catalog:component"],"dependencies":[],"source":{"type":"catalog","id":"Faq","license":"MIT"},"receipt":{"level":"declared","maturity":"experimental","checks":{"source":"declared","license":"declared","contract":"declared","states":"missing","accessibility":"missing","light-theme":"missing","dark-theme":"missing","responsive":"missing","dependency-closure":"missing","packed-install":"missing","typecheck":"missing","browser":"missing"},"evidence":[]}},{"id":"component:feature-card","kind":"component","title":"FeatureCard","description":"Single hairline feature card: inline-SVG icon, serif title, body copy, and optional children. Designed to sit inside a FeatureGrid but works standalone.","category":"presentation","tags":["card","feature","marketing"],"aliases":["FeatureCard"],"capabilities":["catalog:component"],"dependencies":[],"source":{"type":"catalog","id":"FeatureCard","license":"MIT"},"receipt":{"level":"declared","maturity":"experimental","checks":{"source":"declared","license":"declared","contract":"declared","states":"missing","accessibility":"missing","light-theme":"missing","dark-theme":"missing","responsive":"missing","dependency-closure":"missing","packed-install":"missing","typecheck":"missing","browser":"missing"},"evidence":[]}},{"id":"component:feature-grid","kind":"component","title":"FeatureGrid","description":"Responsive grid of hairline feature cards with hover lift. Renders an `items` array (icon name + title + desc) into FeatureCards, or lays out FeatureCard children directly.","category":"presentation","tags":["cards","features","grid","marketing"],"aliases":["FeatureGrid"],"capabilities":["catalog:component"],"dependencies":[],"source":{"type":"catalog","id":"FeatureGrid","license":"MIT"},"receipt":{"level":"declared","maturity":"experimental","checks":{"source":"declared","license":"declared","contract":"declared","states":"missing","accessibility":"missing","light-theme":"missing","dark-theme":"missing","responsive":"missing","dependency-closure":"missing","packed-install":"missing","typecheck":"missing","browser":"missing"},"evidence":[]}},{"id":"component:feature-split","kind":"component","title":"FeatureSplit","description":"Alternating two-column feature section: an editorial text column (eyebrow, serif title, body, bulleted benefits, optional CTA) beside a visual column. The visual renders the `visual` slot (or children) — e.g. a BrowserFrame — falling back to a tinted blueprint placeholder. `reverse` flips the column order for an alternating page rhythm.","category":"presentation","tags":["feature","marketing","split","two-column"],"aliases":["FeatureSplit"],"capabilities":["catalog:component"],"dependencies":[],"source":{"type":"catalog","id":"FeatureSplit","license":"MIT"},"receipt":{"level":"declared","maturity":"experimental","checks":{"source":"declared","license":"declared","contract":"declared","states":"missing","accessibility":"missing","light-theme":"missing","dark-theme":"missing","responsive":"missing","dependency-closure":"missing","packed-install":"missing","typecheck":"missing","browser":"missing"},"evidence":[]}},{"id":"component:field","kind":"component","title":"Field","description":"Accessible controlled or local form field; native validation and scalar event values","category":"composite","tags":["form"],"aliases":["Field"],"capabilities":["catalog:component"],"dependencies":[],"source":{"type":"catalog","id":"Field","license":"MIT"},"receipt":{"level":"declared","maturity":"experimental","checks":{"source":"declared","license":"declared","contract":"declared","states":"missing","accessibility":"missing","light-theme":"missing","dark-theme":"missing","responsive":"missing","dependency-closure":"missing","packed-install":"missing","typecheck":"missing","browser":"missing"},"evidence":[]}},{"id":"component:footer","kind":"component","title":"Footer","description":"Multi-column marketing footer: a brand block (serif wordmark + tagline) beside grouped link columns, with a bottom rule carrying a copyright line and small print. Pure layout off theme tokens.","category":"presentation","tags":["footer","layout","marketing","navigation"],"aliases":["Footer"],"capabilities":["catalog:component"],"dependencies":[],"source":{"type":"catalog","id":"Footer","license":"MIT"},"receipt":{"level":"declared","maturity":"experimental","checks":{"source":"declared","license":"declared","contract":"declared","states":"missing","accessibility":"missing","light-theme":"missing","dark-theme":"missing","responsive":"missing","dependency-closure":"missing","packed-install":"missing","typecheck":"missing","browser":"missing"},"evidence":[]}},{"id":"component:form","kind":"component","title":"Form","description":"Form wrapper that prevents default submission. Place Form.Input, Form.Select, etc. as children and end with Form.Submit.","category":"composite","tags":["form","input"],"aliases":["Form"],"capabilities":["catalog:component"],"dependencies":[],"source":{"type":"catalog","id":"Form","license":"MIT"},"receipt":{"level":"declared","maturity":"experimental","checks":{"source":"declared","license":"declared","contract":"declared","states":"missing","accessibility":"missing","light-theme":"missing","dark-theme":"missing","responsive":"missing","dependency-closure":"missing","packed-install":"missing","typecheck":"missing","browser":"missing"},"evidence":[]}},{"id":"component:form-checkbox","kind":"component","title":"Form.Checkbox","description":"Single boolean checkbox with optional description beneath the label.","category":"primitive","tags":["checkbox","form"],"aliases":["Form.Checkbox"],"capabilities":["catalog:component"],"dependencies":[],"source":{"type":"catalog","id":"Form.Checkbox","license":"MIT"},"receipt":{"level":"declared","maturity":"experimental","checks":{"source":"declared","license":"declared","contract":"declared","states":"missing","accessibility":"missing","light-theme":"missing","dark-theme":"missing","responsive":"missing","dependency-closure":"missing","packed-install":"missing","typecheck":"missing","browser":"missing"},"evidence":[]}},{"id":"component:form-input","kind":"component","title":"Form.Input","description":"Single-line text field. Supports text, email, password, number, tel, url, date types.","category":"primitive","tags":["form","input"],"aliases":["Form.Input"],"capabilities":["catalog:component"],"dependencies":[],"source":{"type":"catalog","id":"Form.Input","license":"MIT"},"receipt":{"level":"declared","maturity":"experimental","checks":{"source":"declared","license":"declared","contract":"declared","states":"missing","accessibility":"missing","light-theme":"missing","dark-theme":"missing","responsive":"missing","dependency-closure":"missing","packed-install":"missing","typecheck":"missing","browser":"missing"},"evidence":[]}},{"id":"component:form-select","kind":"component","title":"Form.Select","description":"Dropdown select field with an options array [{value, label}].","category":"primitive","tags":["form","select"],"aliases":["Form.Select"],"capabilities":["catalog:component"],"dependencies":[],"source":{"type":"catalog","id":"Form.Select","license":"MIT"},"receipt":{"level":"declared","maturity":"experimental","checks":{"source":"declared","license":"declared","contract":"declared","states":"missing","accessibility":"missing","light-theme":"missing","dark-theme":"missing","responsive":"missing","dependency-closure":"missing","packed-install":"missing","typecheck":"missing","browser":"missing"},"evidence":[]}},{"id":"component:form-submit","kind":"component","title":"Form.Submit","description":"Form submit button. Use variant=destructive for irreversible actions.","category":"primitive","tags":["button","form"],"aliases":["Form.Submit"],"capabilities":["catalog:component"],"dependencies":[],"source":{"type":"catalog","id":"Form.Submit","license":"MIT"},"receipt":{"level":"declared","maturity":"experimental","checks":{"source":"declared","license":"declared","contract":"declared","states":"missing","accessibility":"missing","light-theme":"missing","dark-theme":"missing","responsive":"missing","dependency-closure":"missing","packed-install":"missing","typecheck":"missing","browser":"missing"},"evidence":[]}},{"id":"component:form-text-area","kind":"component","title":"Form.TextArea","description":"Multi-line text input. Use for descriptions, messages, or any free-form long text.","category":"primitive","tags":["form","textarea"],"aliases":["Form.TextArea"],"capabilities":["catalog:component"],"dependencies":[],"source":{"type":"catalog","id":"Form.TextArea","license":"MIT"},"receipt":{"level":"declared","maturity":"experimental","checks":{"source":"declared","license":"declared","contract":"declared","states":"missing","accessibility":"missing","light-theme":"missing","dark-theme":"missing","responsive":"missing","dependency-closure":"missing","packed-install":"missing","typecheck":"missing","browser":"missing"},"evidence":[]}},{"id":"component:gallery-grid","kind":"component","title":"GalleryGrid","description":"Caption gallery grid. Lays image tiles (or, with no `src`, a tinted blueprint placeholder) onto a 2–4 column responsive grid; a tile may opt into `wide` to span two columns for a mixed-rhythm mosaic. Captions sit on a gradient scrim over each tile. Hairline framing, hover lift — no external images required.","category":"presentation","tags":["gallery","grid","images","marketing"],"aliases":["GalleryGrid"],"capabilities":["catalog:component"],"dependencies":[],"source":{"type":"catalog","id":"GalleryGrid","license":"MIT"},"receipt":{"level":"declared","maturity":"experimental","checks":{"source":"declared","license":"declared","contract":"declared","states":"missing","accessibility":"missing","light-theme":"missing","dark-theme":"missing","responsive":"missing","dependency-closure":"missing","packed-install":"missing","typecheck":"missing","browser":"missing"},"evidence":[]}},{"id":"component:grid","kind":"component","title":"Grid","description":"Declarative grid layout. Maps cols/gap/responsive props to Tailwind grid classes; children become grid cells directly.","category":"primitive","tags":["container","grid","layout"],"aliases":["Grid"],"capabilities":["catalog:component"],"dependencies":[],"source":{"type":"catalog","id":"Grid","license":"MIT"},"receipt":{"level":"declared","maturity":"experimental","checks":{"source":"declared","license":"declared","contract":"declared","states":"missing","accessibility":"missing","light-theme":"missing","dark-theme":"missing","responsive":"missing","dependency-closure":"missing","packed-install":"missing","typecheck":"missing","browser":"missing"},"evidence":[]}},{"id":"component:heading","kind":"component","title":"Heading","description":"Semantic heading tag h1–h6 with size automatically mapped to the level.","category":"primitive","tags":["heading","text","typography"],"aliases":["Heading"],"capabilities":["catalog:component"],"dependencies":[],"source":{"type":"catalog","id":"Heading","license":"MIT"},"receipt":{"level":"declared","maturity":"experimental","checks":{"source":"declared","license":"declared","contract":"declared","states":"missing","accessibility":"missing","light-theme":"missing","dark-theme":"missing","responsive":"missing","dependency-closure":"missing","packed-install":"missing","typecheck":"missing","browser":"missing"},"evidence":[]}},{"id":"component:heatmap","kind":"component","title":"Heatmap","description":"Alias of Matrix — two-dimensional 0..1 intensity grid.","category":"composite","tags":["grid","heatmap","matrix"],"aliases":["Heatmap"],"capabilities":["catalog:component"],"dependencies":[],"source":{"type":"catalog","id":"Heatmap","license":"MIT"},"receipt":{"level":"declared","maturity":"experimental","checks":{"source":"declared","license":"declared","contract":"declared","states":"missing","accessibility":"missing","light-theme":"missing","dark-theme":"missing","responsive":"missing","dependency-closure":"missing","packed-install":"missing","typecheck":"missing","browser":"missing"},"evidence":[]}},{"id":"component:hero","kind":"component","title":"Hero","description":"Asymmetric editorial hero: serif display title (with optional italic emphasis word), mono eyebrow with amber dot, warm radial-glow + blueprint dot-grid backdrop, grain overlay, staggered reveal, and primary/secondary CTAs. An optional right-side visual renders via the `aside` slot or children.","category":"presentation","tags":["editorial","hero","landing","marketing"],"aliases":["Hero"],"capabilities":["catalog:component"],"dependencies":[],"source":{"type":"catalog","id":"Hero","license":"MIT"},"receipt":{"level":"declared","maturity":"experimental","checks":{"source":"declared","license":"declared","contract":"declared","states":"missing","accessibility":"missing","light-theme":"missing","dark-theme":"missing","responsive":"missing","dependency-closure":"missing","packed-install":"missing","typecheck":"missing","browser":"missing"},"evidence":[]}},{"id":"component:icon-list","kind":"component","title":"IconList","description":"Benefit / checklist list with icons. Each item shows a tinted icon chip, a title and optional supporting line, laid into a 1–3 column grid; tints cycle the four accents. Lighter-weight than FeatureGrid (no card material) — for inline benefit/checklist runs.","category":"presentation","tags":["benefits","checklist","list","marketing"],"aliases":["IconList"],"capabilities":["catalog:component"],"dependencies":[],"source":{"type":"catalog","id":"IconList","license":"MIT"},"receipt":{"level":"declared","maturity":"experimental","checks":{"source":"declared","license":"declared","contract":"declared","states":"missing","accessibility":"missing","light-theme":"missing","dark-theme":"missing","responsive":"missing","dependency-closure":"missing","packed-install":"missing","typecheck":"missing","browser":"missing"},"evidence":[]}},{"id":"component:integration-grid","kind":"component","title":"IntegrationGrid","description":"Searchable integrations with explicit capability availability","category":"composite","tags":["data"],"aliases":["IntegrationGrid"],"capabilities":["catalog:component"],"dependencies":[],"source":{"type":"catalog","id":"IntegrationGrid","license":"MIT"},"receipt":{"level":"declared","maturity":"experimental","checks":{"source":"declared","license":"declared","contract":"declared","states":"missing","accessibility":"missing","light-theme":"missing","dark-theme":"missing","responsive":"missing","dependency-closure":"missing","packed-install":"missing","typecheck":"missing","browser":"missing"},"evidence":[]}},{"id":"component:kanban-board","kind":"component","title":"KanbanBoard","description":"Horizontal kanban board: columns as swimlanes, cards grouped by their column id. Read-only display.","category":"composite","tags":["board","kanban","operations"],"aliases":["KanbanBoard"],"capabilities":["catalog:component"],"dependencies":[],"source":{"type":"catalog","id":"KanbanBoard","license":"MIT"},"receipt":{"level":"declared","maturity":"experimental","checks":{"source":"declared","license":"declared","contract":"declared","states":"missing","accessibility":"missing","light-theme":"missing","dark-theme":"missing","responsive":"missing","dependency-closure":"missing","packed-install":"missing","typecheck":"missing","browser":"missing"},"evidence":[]}},{"id":"component:key-value-grid","kind":"component","title":"KeyValueGrid","description":"Compact key/value grid for metadata. Accepts an items array or a plain record object.","category":"composite","tags":["display","grid","key-value","metadata"],"aliases":["KeyValueGrid"],"capabilities":["catalog:component"],"dependencies":[],"source":{"type":"catalog","id":"KeyValueGrid","license":"MIT"},"receipt":{"level":"declared","maturity":"experimental","checks":{"source":"declared","license":"declared","contract":"declared","states":"missing","accessibility":"missing","light-theme":"missing","dark-theme":"missing","responsive":"missing","dependency-closure":"missing","packed-install":"missing","typecheck":"missing","browser":"missing"},"evidence":[]}},{"id":"component:line-chart","kind":"component","title":"LineChart","description":"Alias of TrendChart — pure-SVG multi-series line / area chart.","category":"composite","tags":["chart","line","svg"],"aliases":["LineChart"],"capabilities":["catalog:component"],"dependencies":[],"source":{"type":"catalog","id":"LineChart","license":"MIT"},"receipt":{"level":"declared","maturity":"experimental","checks":{"source":"declared","license":"declared","contract":"declared","states":"missing","accessibility":"missing","light-theme":"missing","dark-theme":"missing","responsive":"missing","dependency-closure":"missing","packed-install":"missing","typecheck":"missing","browser":"missing"},"evidence":[]}},{"id":"component:link","kind":"component","title":"Link","description":"Inline hyperlink. Variants: default (blue underline), muted (gray), button (filled CTA), outline (bordered CTA).","category":"primitive","tags":["link"],"aliases":["Link"],"capabilities":["catalog:component"],"dependencies":[],"source":{"type":"catalog","id":"Link","license":"MIT"},"receipt":{"level":"declared","maturity":"experimental","checks":{"source":"declared","license":"declared","contract":"declared","states":"missing","accessibility":"missing","light-theme":"missing","dark-theme":"missing","responsive":"missing","dependency-closure":"missing","packed-install":"missing","typecheck":"missing","browser":"missing"},"evidence":[]}},{"id":"component:list","kind":"component","title":"List","description":"Unordered list of child blocks. Use with divided or compact for different visual densities.","category":"composite","tags":["list"],"aliases":["List"],"capabilities":["catalog:component"],"dependencies":[],"source":{"type":"catalog","id":"List","license":"MIT"},"receipt":{"level":"declared","maturity":"experimental","checks":{"source":"declared","license":"declared","contract":"declared","states":"missing","accessibility":"missing","light-theme":"missing","dark-theme":"missing","responsive":"missing","dependency-closure":"missing","packed-install":"missing","typecheck":"missing","browser":"missing"},"evidence":[]}},{"id":"component:logo-cloud","kind":"component","title":"LogoCloud","description":"A single grayscale 'trusted by' logo strip. With no external images each logo is a mono wordmark (initials for long names); the row is dimmed/desaturated and lifts to full foreground on hover. Optional mono `label` above the row.","category":"presentation","tags":["brands","logos","marketing","social-proof"],"aliases":["LogoCloud"],"capabilities":["catalog:component"],"dependencies":[],"source":{"type":"catalog","id":"LogoCloud","license":"MIT"},"receipt":{"level":"declared","maturity":"experimental","checks":{"source":"declared","license":"declared","contract":"declared","states":"missing","accessibility":"missing","light-theme":"missing","dark-theme":"missing","responsive":"missing","dependency-closure":"missing","packed-install":"missing","typecheck":"missing","browser":"missing"},"evidence":[]}},{"id":"component:markdown","kind":"component","title":"Markdown","description":"Renders Markdown source into HTML. Supports # headings, **bold**, *italic*, `code`, and - lists.","category":"primitive","tags":["content","markdown","text"],"aliases":["Markdown"],"capabilities":["catalog:component"],"dependencies":[],"source":{"type":"catalog","id":"Markdown","license":"MIT"},"receipt":{"level":"declared","maturity":"experimental","checks":{"source":"declared","license":"declared","contract":"declared","states":"missing","accessibility":"missing","light-theme":"missing","dark-theme":"missing","responsive":"missing","dependency-closure":"missing","packed-install":"missing","typecheck":"missing","browser":"missing"},"evidence":[]}},{"id":"component:matrix","kind":"component","title":"Matrix","description":"Two-dimensional intensity grid (heatmap). Cell intensities are 0..1 and map to a color-mix of the primary token via inline style. Alias: Heatmap.","category":"composite","tags":["governance","grid","heatmap","matrix"],"aliases":["Matrix"],"capabilities":["catalog:component"],"dependencies":[],"source":{"type":"catalog","id":"Matrix","license":"MIT"},"receipt":{"level":"declared","maturity":"experimental","checks":{"source":"declared","license":"declared","contract":"declared","states":"missing","accessibility":"missing","light-theme":"missing","dark-theme":"missing","responsive":"missing","dependency-closure":"missing","packed-install":"missing","typecheck":"missing","browser":"missing"},"evidence":[]}},{"id":"component:menu-group","kind":"component","title":"MenuGroup","description":"Labeled group of MenuLink items inside PageSiderMenu.","category":"composite","tags":["nav","sidebar"],"aliases":["MenuGroup"],"capabilities":["catalog:component"],"dependencies":[],"source":{"type":"catalog","id":"MenuGroup","license":"MIT"},"receipt":{"level":"declared","maturity":"experimental","checks":{"source":"declared","license":"declared","contract":"declared","states":"missing","accessibility":"missing","light-theme":"missing","dark-theme":"missing","responsive":"missing","dependency-closure":"missing","packed-install":"missing","typecheck":"missing","browser":"missing"},"evidence":[]}},{"id":"component:menu-link","kind":"component","title":"MenuLink","description":"Single navigation item inside a PageSiderMenu. Renders as an anchor with optional icon and badge.","category":"primitive","tags":["link","nav"],"aliases":["MenuLink"],"capabilities":["catalog:component"],"dependencies":[],"source":{"type":"catalog","id":"MenuLink","license":"MIT"},"receipt":{"level":"declared","maturity":"experimental","checks":{"source":"declared","license":"declared","contract":"declared","states":"missing","accessibility":"missing","light-theme":"missing","dark-theme":"missing","responsive":"missing","dependency-closure":"missing","packed-install":"missing","typecheck":"missing","browser":"missing"},"evidence":[]}},{"id":"component:metric-card","kind":"component","title":"MetricCard","description":"KPI metric card with an inline pure-SVG sparkline: a mono label, a big value, a trend delta pill (up = amber, down = rose) and a sparkline drawn from a `points` series — no chart dependency. A `.mkt-card` with hover lift; `tone` selects the accent. Designed to sit in a Grid/StatGrid for a metrics row.","category":"presentation","tags":["card","dashboard","kpi","metric","sparkline"],"aliases":["MetricCard"],"capabilities":["catalog:component"],"dependencies":[],"source":{"type":"catalog","id":"MetricCard","license":"MIT"},"receipt":{"level":"declared","maturity":"experimental","checks":{"source":"declared","license":"declared","contract":"declared","states":"missing","accessibility":"missing","light-theme":"missing","dark-theme":"missing","responsive":"missing","dependency-closure":"missing","packed-install":"missing","typecheck":"missing","browser":"missing"},"evidence":[]}},{"id":"component:modal","kind":"component","title":"Modal","description":"Centered overlay dialog for focused tasks or confirmations. Rendered inline in preview.","category":"composite","tags":["modal","overlay"],"aliases":["Modal"],"capabilities":["catalog:component"],"dependencies":[],"source":{"type":"catalog","id":"Modal","license":"MIT"},"receipt":{"level":"declared","maturity":"experimental","checks":{"source":"declared","license":"declared","contract":"declared","states":"missing","accessibility":"missing","light-theme":"missing","dark-theme":"missing","responsive":"missing","dependency-closure":"missing","packed-install":"missing","typecheck":"missing","browser":"missing"},"evidence":[]}},{"id":"component:newsletter","kind":"component","title":"Newsletter","description":"Email-capture band: serif title + supporting line, then a token-styled email input beside a CTA anchor. Presentational — the input is decorative and the CTA navigates via {label, href}; wire real submission at the host.","category":"presentation","tags":["email","marketing","newsletter","subscribe"],"aliases":["Newsletter"],"capabilities":["catalog:component"],"dependencies":[],"source":{"type":"catalog","id":"Newsletter","license":"MIT"},"receipt":{"level":"declared","maturity":"experimental","checks":{"source":"declared","license":"declared","contract":"declared","states":"missing","accessibility":"missing","light-theme":"missing","dark-theme":"missing","responsive":"missing","dependency-closure":"missing","packed-install":"missing","typecheck":"missing","browser":"missing"},"evidence":[]}},{"id":"component:page-layout","kind":"component","title":"PageLayout","description":"Application scaffold with header, navigation, scrollable content and footer.","category":"composite","tags":["layout","page"],"aliases":["PageLayout"],"capabilities":["catalog:component"],"dependencies":[],"source":{"type":"catalog","id":"PageLayout","license":"MIT"},"receipt":{"level":"declared","maturity":"experimental","checks":{"source":"declared","license":"declared","contract":"declared","states":"missing","accessibility":"missing","light-theme":"missing","dark-theme":"missing","responsive":"missing","dependency-closure":"missing","packed-install":"missing","typecheck":"missing","browser":"missing"},"evidence":[]}},{"id":"component:page-sider-menu","kind":"component","title":"PageSiderMenu","description":"Vertical sidebar navigation. Place MenuLink or MenuGroup blocks as children. Usually placed in the PageLayout sidebar slot.","category":"composite","tags":["nav","sidebar"],"aliases":["PageSiderMenu"],"capabilities":["catalog:component"],"dependencies":[],"source":{"type":"catalog","id":"PageSiderMenu","license":"MIT"},"receipt":{"level":"declared","maturity":"experimental","checks":{"source":"declared","license":"declared","contract":"declared","states":"missing","accessibility":"missing","light-theme":"missing","dark-theme":"missing","responsive":"missing","dependency-closure":"missing","packed-install":"missing","typecheck":"missing","browser":"missing"},"evidence":[]}},{"id":"component:panel-header","kind":"component","title":"PanelHeader","description":"Section title with optional eyebrow, description and an `actions` slot for buttons or links.","category":"primitive","tags":["header","section","title"],"aliases":["PanelHeader"],"capabilities":["catalog:component"],"dependencies":[],"source":{"type":"catalog","id":"PanelHeader","license":"MIT"},"receipt":{"level":"declared","maturity":"experimental","checks":{"source":"declared","license":"declared","contract":"declared","states":"missing","accessibility":"missing","light-theme":"missing","dark-theme":"missing","responsive":"missing","dependency-closure":"missing","packed-install":"missing","typecheck":"missing","browser":"missing"},"evidence":[]}},{"id":"component:paragraph","kind":"component","title":"Paragraph","description":"Body text block. Use size='lg' for lead copy, size='sm' for captions.","category":"primitive","tags":["text","typography"],"aliases":["Paragraph"],"capabilities":["catalog:component"],"dependencies":[],"source":{"type":"catalog","id":"Paragraph","license":"MIT"},"receipt":{"level":"declared","maturity":"experimental","checks":{"source":"declared","license":"declared","contract":"declared","states":"missing","accessibility":"missing","light-theme":"missing","dark-theme":"missing","responsive":"missing","dependency-closure":"missing","packed-install":"missing","typecheck":"missing","browser":"missing"},"evidence":[]}},{"id":"component:pricing-table","kind":"component","title":"PricingTable","description":"Responsive 2–4 column pricing grid of hairline cards. The `highlighted` plan gets an amber border + 'Popular' badge + solid amber CTA; others use an outline CTA. Features list with amber check glyphs. CTAs are {label, href} anchors.","category":"presentation","tags":["conversion","marketing","plans","pricing"],"aliases":["PricingTable"],"capabilities":["catalog:component"],"dependencies":[],"source":{"type":"catalog","id":"PricingTable","license":"MIT"},"receipt":{"level":"declared","maturity":"experimental","checks":{"source":"declared","license":"declared","contract":"declared","states":"missing","accessibility":"missing","light-theme":"missing","dark-theme":"missing","responsive":"missing","dependency-closure":"missing","packed-install":"missing","typecheck":"missing","browser":"missing"},"evidence":[]}},{"id":"component:roadmap","kind":"component","title":"Roadmap","description":"Product roadmap / milestone timeline. A vertical rail with one node per milestone; node state drives the dot — a filled amber check for 'done', an amber ring + rocket for 'active', an outline flag for 'planned'. A marketing roadmap (distinct from the operational TimelineList activity log).","category":"presentation","tags":["marketing","milestones","roadmap","timeline"],"aliases":["Roadmap"],"capabilities":["catalog:component"],"dependencies":[],"source":{"type":"catalog","id":"Roadmap","license":"MIT"},"receipt":{"level":"declared","maturity":"experimental","checks":{"source":"declared","license":"declared","contract":"declared","states":"missing","accessibility":"missing","light-theme":"missing","dark-theme":"missing","responsive":"missing","dependency-closure":"missing","packed-install":"missing","typecheck":"missing","browser":"missing"},"evidence":[]}},{"id":"component:searchable-table","kind":"component","title":"SearchableTable","description":"Table with a built-in search box. Typing dispatches SetState onto searchKey and filters the resolved rows (case-insensitive substring across all columns).","category":"feature","tags":["data","interactive","search","table"],"aliases":["SearchableTable"],"capabilities":["catalog:component"],"dependencies":[],"source":{"type":"catalog","id":"SearchableTable","license":"MIT"},"receipt":{"level":"declared","maturity":"experimental","checks":{"source":"declared","license":"declared","contract":"declared","states":"missing","accessibility":"missing","light-theme":"missing","dark-theme":"missing","responsive":"missing","dependency-closure":"missing","packed-install":"missing","typecheck":"missing","browser":"missing"},"evidence":[]}},{"id":"component:section-header","kind":"component","title":"SectionHeader","description":"Editorial section header: oversized mono section number (e.g. '01'), mono eyebrow, serif title, and a lead paragraph. Sets the rhythm between page sections.","category":"presentation","tags":["editorial","header","marketing","section"],"aliases":["SectionHeader"],"capabilities":["catalog:component"],"dependencies":[],"source":{"type":"catalog","id":"SectionHeader","license":"MIT"},"receipt":{"level":"declared","maturity":"experimental","checks":{"source":"declared","license":"declared","contract":"declared","states":"missing","accessibility":"missing","light-theme":"missing","dark-theme":"missing","responsive":"missing","dependency-closure":"missing","packed-install":"missing","typecheck":"missing","browser":"missing"},"evidence":[]}},{"id":"component:skeleton","kind":"component","title":"Skeleton","description":"Animated loading placeholder. Three presets: lines (text), card (avatar + lines), table (header + rows).","category":"primitive","tags":["loading","placeholder","skeleton"],"aliases":["Skeleton"],"capabilities":["catalog:component"],"dependencies":[],"source":{"type":"catalog","id":"Skeleton","license":"MIT"},"receipt":{"level":"declared","maturity":"experimental","checks":{"source":"declared","license":"declared","contract":"declared","states":"missing","accessibility":"missing","light-theme":"missing","dark-theme":"missing","responsive":"missing","dependency-closure":"missing","packed-install":"missing","typecheck":"missing","browser":"missing"},"evidence":[]}},{"id":"component:split-master-detail","kind":"component","title":"SplitMasterDetail","description":"Master/detail split: a selectable left list and a right detail pane. Clicking an item dispatches SetState onto selectKey; the detail slot (or children) renders the right pane.","category":"feature","tags":["interactive","layout","master-detail","split"],"aliases":["SplitMasterDetail"],"capabilities":["catalog:component"],"dependencies":[],"source":{"type":"catalog","id":"SplitMasterDetail","license":"MIT"},"receipt":{"level":"declared","maturity":"experimental","checks":{"source":"declared","license":"declared","contract":"declared","states":"missing","accessibility":"missing","light-theme":"missing","dark-theme":"missing","responsive":"missing","dependency-closure":"missing","packed-install":"missing","typecheck":"missing","browser":"missing"},"evidence":[]}},{"id":"component:stat","kind":"component","title":"Stat","description":"KPI metric card: large value, label, optional trend arrow, and change string.","category":"primitive","tags":["kpi","metric","stat"],"aliases":["Stat"],"capabilities":["catalog:component"],"dependencies":[],"source":{"type":"catalog","id":"Stat","license":"MIT"},"receipt":{"level":"declared","maturity":"experimental","checks":{"source":"declared","license":"declared","contract":"declared","states":"missing","accessibility":"missing","light-theme":"missing","dark-theme":"missing","responsive":"missing","dependency-closure":"missing","packed-install":"missing","typecheck":"missing","browser":"missing"},"evidence":[]}},{"id":"component:stat-band","kind":"component","title":"StatBand","description":"Big-number statistics band: oversized serif values with mono labels, divided by hairline rules. `tone` switches the surface — plain, muted (soft card panel) or inverse (ink-black panel with warm amber→rose glow + grain).","category":"presentation","tags":["band","marketing","metrics","stats"],"aliases":["StatBand"],"capabilities":["catalog:component"],"dependencies":[],"source":{"type":"catalog","id":"StatBand","license":"MIT"},"receipt":{"level":"declared","maturity":"experimental","checks":{"source":"declared","license":"declared","contract":"declared","states":"missing","accessibility":"missing","light-theme":"missing","dark-theme":"missing","responsive":"missing","dependency-closure":"missing","packed-install":"missing","typecheck":"missing","browser":"missing"},"evidence":[]}},{"id":"component:stat-card","kind":"component","title":"StatCard","description":"Metric with label, value and supporting text","category":"composite","tags":["metric"],"aliases":["StatCard"],"capabilities":["catalog:component"],"dependencies":[],"source":{"type":"catalog","id":"StatCard","license":"MIT"},"receipt":{"level":"declared","maturity":"experimental","checks":{"source":"declared","license":"declared","contract":"declared","states":"missing","accessibility":"missing","light-theme":"missing","dark-theme":"missing","responsive":"missing","dependency-closure":"missing","packed-install":"missing","typecheck":"missing","browser":"missing"},"evidence":[]}},{"id":"component:stat-grid","kind":"component","title":"StatGrid","description":"Responsive grid of KPI cards. Prefers child Stat blocks; falls back to inline rendering of an items array when there are no children.","category":"composite","tags":["dashboard","grid","kpi","stat"],"aliases":["StatGrid"],"capabilities":["catalog:component"],"dependencies":[],"source":{"type":"catalog","id":"StatGrid","license":"MIT"},"receipt":{"level":"declared","maturity":"experimental","checks":{"source":"declared","license":"declared","contract":"declared","states":"missing","accessibility":"missing","light-theme":"missing","dark-theme":"missing","responsive":"missing","dependency-closure":"missing","packed-install":"missing","typecheck":"missing","browser":"missing"},"evidence":[]}},{"id":"component:stat-highlight","kind":"component","title":"StatHighlight","description":"Single big-number spotlight: an oversized serif value with an optional trend delta (up = amber, down = rose), a mono label and supporting copy. Draws the eye to one headline metric (distinct from StatBand's multi-stat row).","category":"presentation","tags":["highlight","marketing","metric","stat"],"aliases":["StatHighlight"],"capabilities":["catalog:component"],"dependencies":[],"source":{"type":"catalog","id":"StatHighlight","license":"MIT"},"receipt":{"level":"declared","maturity":"experimental","checks":{"source":"declared","license":"declared","contract":"declared","states":"missing","accessibility":"missing","light-theme":"missing","dark-theme":"missing","responsive":"missing","dependency-closure":"missing","packed-install":"missing","typecheck":"missing","browser":"missing"},"evidence":[]}},{"id":"component:steps","kind":"component","title":"Steps","description":"'How it works' steps with oversized mono numerals. variant 'numbered' (default) is a responsive card row; variant 'connected' is a vertical rail with a connecting line between numbered dots.","category":"presentation","tags":["how-it-works","marketing","process","steps"],"aliases":["Steps"],"capabilities":["catalog:component"],"dependencies":[],"source":{"type":"catalog","id":"Steps","license":"MIT"},"receipt":{"level":"declared","maturity":"experimental","checks":{"source":"declared","license":"declared","contract":"declared","states":"missing","accessibility":"missing","light-theme":"missing","dark-theme":"missing","responsive":"missing","dependency-closure":"missing","packed-install":"missing","typecheck":"missing","browser":"missing"},"evidence":[]}},{"id":"component:switch","kind":"component","title":"Switch","description":"Controlled boolean switch (role=switch) with accessible label. Supports _bindState on checked; onChange carries event.checked.","category":"primitive","tags":["form","switch","toggle"],"aliases":["Switch"],"capabilities":["catalog:component"],"dependencies":[],"source":{"type":"catalog","id":"Switch","license":"MIT"},"receipt":{"level":"declared","maturity":"experimental","checks":{"source":"declared","license":"declared","contract":"declared","states":"missing","accessibility":"missing","light-theme":"missing","dark-theme":"missing","responsive":"missing","dependency-closure":"missing","packed-install":"missing","typecheck":"missing","browser":"missing"},"evidence":[]}},{"id":"component:table","kind":"component","title":"Table","description":"Data grid with typed columns and row data. Columns define keys and display labels.","category":"composite","tags":["data","grid","table"],"aliases":["Table"],"capabilities":["catalog:component"],"dependencies":[],"source":{"type":"catalog","id":"Table","license":"MIT"},"receipt":{"level":"declared","maturity":"experimental","checks":{"source":"declared","license":"declared","contract":"declared","states":"missing","accessibility":"missing","light-theme":"missing","dark-theme":"missing","responsive":"missing","dependency-closure":"missing","packed-install":"missing","typecheck":"missing","browser":"missing"},"evidence":[]}},{"id":"component:tabs","kind":"component","title":"Tabs","description":"Tab switcher. Each child maps to the tab at the same index. Supports up to 6 tabs.","category":"composite","tags":["navigation","tabs"],"aliases":["Tabs"],"capabilities":["catalog:component"],"dependencies":[],"source":{"type":"catalog","id":"Tabs","license":"MIT"},"receipt":{"level":"declared","maturity":"experimental","checks":{"source":"declared","license":"declared","contract":"declared","states":"missing","accessibility":"missing","light-theme":"missing","dark-theme":"missing","responsive":"missing","dependency-closure":"missing","packed-install":"missing","typecheck":"missing","browser":"missing"},"evidence":[]}},{"id":"component:team-grid","kind":"component","title":"TeamGrid","description":"Grid of team-member cards. Each shows an avatar (image when `avatar` is a URL, otherwise tinted initials), name, mono role and optional bio. Hairline cards with hover lift.","category":"presentation","tags":["grid","marketing","people","team"],"aliases":["TeamGrid"],"capabilities":["catalog:component"],"dependencies":[],"source":{"type":"catalog","id":"TeamGrid","license":"MIT"},"receipt":{"level":"declared","maturity":"experimental","checks":{"source":"declared","license":"declared","contract":"declared","states":"missing","accessibility":"missing","light-theme":"missing","dark-theme":"missing","responsive":"missing","dependency-closure":"missing","packed-install":"missing","typecheck":"missing","browser":"missing"},"evidence":[]}},{"id":"component:testimonials","kind":"component","title":"Testimonials","description":"Grid of testimonial cards (hairline `.mkt-card`, hover lift): optional star rating, serif italic pull-quote, and an initials avatar token + author + role. `columns` (1–3) controls the grid; avatar tints cycle the four accents.","category":"presentation","tags":["marketing","quotes","social-proof","testimonials"],"aliases":["Testimonials"],"capabilities":["catalog:component"],"dependencies":[],"source":{"type":"catalog","id":"Testimonials","license":"MIT"},"receipt":{"level":"declared","maturity":"experimental","checks":{"source":"declared","license":"declared","contract":"declared","states":"missing","accessibility":"missing","light-theme":"missing","dark-theme":"missing","responsive":"missing","dependency-closure":"missing","packed-install":"missing","typecheck":"missing","browser":"missing"},"evidence":[]}},{"id":"component:timeline-list","kind":"component","title":"TimelineList","description":"Vertical timeline with a left rail and a status dot per item (ok / warn / error).","category":"composite","tags":["activity","operations","timeline"],"aliases":["TimelineList"],"capabilities":["catalog:component"],"dependencies":[],"source":{"type":"catalog","id":"TimelineList","license":"MIT"},"receipt":{"level":"declared","maturity":"experimental","checks":{"source":"declared","license":"declared","contract":"declared","states":"missing","accessibility":"missing","light-theme":"missing","dark-theme":"missing","responsive":"missing","dependency-closure":"missing","packed-install":"missing","typecheck":"missing","browser":"missing"},"evidence":[]}},{"id":"component:toast","kind":"component","title":"Toast","description":"Alert banner (info, success, warning, error); placement top-right floats it as a dismissible corner notice.","category":"primitive","tags":["alert","notification","toast"],"aliases":["Toast"],"capabilities":["catalog:component"],"dependencies":[],"source":{"type":"catalog","id":"Toast","license":"MIT"},"receipt":{"level":"declared","maturity":"experimental","checks":{"source":"declared","license":"declared","contract":"declared","states":"missing","accessibility":"missing","light-theme":"missing","dark-theme":"missing","responsive":"missing","dependency-closure":"missing","packed-install":"missing","typecheck":"missing","browser":"missing"},"evidence":[]}},{"id":"component:trend-chart","kind":"component","title":"TrendChart","description":"Pure-SVG line / area chart with no third-party dependency. Draws one polyline per series on a shared vertical scale. Alias: LineChart.","category":"composite","tags":["chart","line","svg","trend"],"aliases":["TrendChart"],"capabilities":["catalog:component"],"dependencies":[],"source":{"type":"catalog","id":"TrendChart","license":"MIT"},"receipt":{"level":"declared","maturity":"experimental","checks":{"source":"declared","license":"declared","contract":"declared","states":"missing","accessibility":"missing","light-theme":"missing","dark-theme":"missing","responsive":"missing","dependency-closure":"missing","packed-install":"missing","typecheck":"missing","browser":"missing"},"evidence":[]}},{"id":"design-guide:claude-design","kind":"design-guide","title":"Claude Design System","description":"1. Visual Theme & Atmosphere","category":"brand","tags":["coral","cream-paper","editorial","humane","light-first","serif-accents","warm","人文","温暖","纸张","编辑","衬线"],"aliases":["claude-design","Claude Design System"],"capabilities":["designMd:source"],"dependencies":[],"source":{"type":"design-md","id":"claude-design","license":"MIT"},"receipt":{"level":"declared","maturity":"experimental","checks":{"source":"declared","license":"declared","contract":"declared","states":"missing","accessibility":"missing","light-theme":"missing","dark-theme":"missing","responsive":"missing","dependency-closure":"missing","packed-install":"missing","typecheck":"missing","browser":"missing"},"evidence":[]}},{"id":"design-guide:control-console","kind":"design-guide","title":"Control Console","description":"Dense control / ops console for UIBot Spec. This is the **unified lane DESIGN.md**","category":"admin","tags":["admin","carbon","console","dashboard","dense","ops","shadcn","status","仪表盘","后台","控制台","数据密集","状态","管理","运维"],"aliases":["control-console"],"capabilities":["designMd:source"],"dependencies":[],"source":{"type":"design-md","id":"control-console","url":"https://github.com/Foundj/uibot/blob/main/examples/uibot-starter/.uibot/design-md/shadcn-admin-dashboard.md","license":"MIT"},"receipt":{"level":"declared","maturity":"experimental","checks":{"source":"declared","license":"declared","contract":"declared","states":"missing","accessibility":"missing","light-theme":"missing","dark-theme":"missing","responsive":"missing","dependency-closure":"missing","packed-install":"missing","typecheck":"missing","browser":"missing"},"evidence":[]}},{"id":"design-guide:figma-design","kind":"design-guide","title":"Figma Design System","description":"Adapted from the public VoltAgent awesome-design-md Figma analysis (MIT).","category":"brand","tags":["editorial","light-first","marketing","pastel","playful","product","产品","活泼","营销","设计工具"],"aliases":["figma-design","Figma Design System"],"capabilities":["designMd:source"],"dependencies":[],"source":{"type":"design-md","id":"figma-design","url":"https://github.com/VoltAgent/awesome-design-md/blob/main/design-md/figma/DESIGN.md","license":"MIT"},"receipt":{"level":"declared","maturity":"experimental","checks":{"source":"declared","license":"declared","contract":"declared","states":"missing","accessibility":"missing","light-theme":"missing","dark-theme":"missing","responsive":"missing","dependency-closure":"missing","packed-install":"missing","typecheck":"missing","browser":"missing"},"evidence":[]}},{"id":"design-guide:frontend-principles","kind":"design-guide","title":"Frontend Design Principles","description":"House-style anti-slop guide for UIBot Spec / page UI. Not a brand system.","category":"general","tags":["animation","anti-slop","design-quality","frontend-design","theme","typography","主题","前端","动效","反套路","排版","设计质量"],"aliases":["Frontend Design Principles","frontend-principles"],"capabilities":["designMd:source"],"dependencies":[],"source":{"type":"design-md","id":"frontend-principles","url":"https://github.com/microsoft/agent-academy/blob/main/.github/skills/frontend-design/SKILL.md","license":"MIT"},"receipt":{"level":"declared","maturity":"experimental","checks":{"source":"declared","license":"declared","contract":"declared","states":"missing","accessibility":"missing","light-theme":"missing","dark-theme":"missing","responsive":"missing","dependency-closure":"missing","packed-install":"missing","typecheck":"missing","browser":"missing"},"evidence":[]}},{"id":"design-guide:ibm-design","kind":"design-guide","title":"IBM Carbon Design System","description":"Adapted from the public VoltAgent awesome-design-md IBM / Carbon analysis","category":"brand","tags":["admin","carbon","enterprise","ibm-blue","light-first","saas-chrome","square","严谨","企业","后台","管理系统"],"aliases":["IBM Carbon Design System","ibm-design"],"capabilities":["designMd:source"],"dependencies":[],"source":{"type":"design-md","id":"ibm-design","url":"https://github.com/VoltAgent/awesome-design-md/blob/main/design-md/ibm/DESIGN.md","license":"MIT"},"receipt":{"level":"declared","maturity":"experimental","checks":{"source":"declared","license":"declared","contract":"declared","states":"missing","accessibility":"missing","light-theme":"missing","dark-theme":"missing","responsive":"missing","dependency-closure":"missing","packed-install":"missing","typecheck":"missing","browser":"missing"},"evidence":[]}},{"id":"design-guide:ink","kind":"design-guide","title":"Ink","description":"Overview","category":"app","tags":["app","dark-first","themes","tokens","墨","应用","深色"],"aliases":["ink"],"capabilities":["designMd:source"],"dependencies":[],"source":{"type":"design-md","id":"ink","license":"MIT"},"receipt":{"level":"declared","maturity":"experimental","checks":{"source":"declared","license":"declared","contract":"declared","states":"missing","accessibility":"missing","light-theme":"missing","dark-theme":"missing","responsive":"missing","dependency-closure":"missing","packed-install":"missing","typecheck":"missing","browser":"missing"},"evidence":[]}},{"id":"design-guide:linear-design","kind":"design-guide","title":"Linear Design System","description":"1. Visual Theme & Atmosphere","category":"brand","tags":["dark-first","indigo","low-elevation","minimal","product","tight-tracking","产品","暗色","极简","深色"],"aliases":["linear-design","Linear Design System"],"capabilities":["designMd:source"],"dependencies":[],"source":{"type":"design-md","id":"linear-design","license":"MIT"},"receipt":{"level":"declared","maturity":"experimental","checks":{"source":"declared","license":"declared","contract":"declared","states":"missing","accessibility":"missing","light-theme":"missing","dark-theme":"missing","responsive":"missing","dependency-closure":"missing","packed-install":"missing","typecheck":"missing","browser":"missing"},"evidence":[]}},{"id":"design-guide:notion-design","kind":"design-guide","title":"Notion Design System","description":"1. Visual Theme & Atmosphere","category":"brand","tags":["calm","content-first","light-first","serif-accents","soft","warm-neutral","内容","文档","柔和","温暖","笔记"],"aliases":["notion-design","Notion Design System"],"capabilities":["designMd:source"],"dependencies":[],"source":{"type":"design-md","id":"notion-design","license":"MIT"},"receipt":{"level":"declared","maturity":"experimental","checks":{"source":"declared","license":"declared","contract":"declared","states":"missing","accessibility":"missing","light-theme":"missing","dark-theme":"missing","responsive":"missing","dependency-closure":"missing","packed-install":"missing","typecheck":"missing","browser":"missing"},"evidence":[]}},{"id":"design-guide:paper","kind":"design-guide","title":"Paper","description":"Overview","category":"app","tags":["app","light","reading","tokens","warm","应用","浅色","纸"],"aliases":["paper"],"capabilities":["designMd:source"],"dependencies":[],"source":{"type":"design-md","id":"paper","license":"MIT"},"receipt":{"level":"declared","maturity":"experimental","checks":{"source":"declared","license":"declared","contract":"declared","states":"missing","accessibility":"missing","light-theme":"missing","dark-theme":"missing","responsive":"missing","dependency-closure":"missing","packed-install":"missing","typecheck":"missing","browser":"missing"},"evidence":[]}},{"id":"design-guide:raycast-design","kind":"design-guide","title":"Raycast Design System","description":"Adapted from the public VoltAgent awesome-design-md Raycast analysis (MIT).","category":"brand","tags":["command-palette","dark-first","dense","developer-tools","monochrome","product","单色","命令面板","开发者","效率","暗色","深色"],"aliases":["raycast-design","Raycast Design System"],"capabilities":["designMd:source"],"dependencies":[],"source":{"type":"design-md","id":"raycast-design","url":"https://github.com/VoltAgent/awesome-design-md/blob/main/design-md/raycast/DESIGN.md","license":"MIT"},"receipt":{"level":"declared","maturity":"experimental","checks":{"source":"declared","license":"declared","contract":"declared","states":"missing","accessibility":"missing","light-theme":"missing","dark-theme":"missing","responsive":"missing","dependency-closure":"missing","packed-install":"missing","typecheck":"missing","browser":"missing"},"evidence":[]}},{"id":"design-guide:stripe-design","kind":"design-guide","title":"Stripe Design System","description":"1. Visual Theme & Atmosphere","category":"brand","tags":["blurple","fintech","generous-whitespace","layered","light-first","polished","支付","浅色","留白","精致","营销","金融"],"aliases":["stripe-design","Stripe Design System"],"capabilities":["designMd:source"],"dependencies":[],"source":{"type":"design-md","id":"stripe-design","license":"MIT"},"receipt":{"level":"declared","maturity":"experimental","checks":{"source":"declared","license":"declared","contract":"declared","states":"missing","accessibility":"missing","light-theme":"missing","dark-theme":"missing","responsive":"missing","dependency-closure":"missing","packed-install":"missing","typecheck":"missing","browser":"missing"},"evidence":[]}},{"id":"design-guide:supabase-design","kind":"design-guide","title":"Supabase Design System","description":"1. Visual Theme & Atmosphere","category":"brand","tags":["dark-first","data-dense","developer","emerald","monospace","technical","开发者","技术","数据密集","数据库","暗色","深色"],"aliases":["supabase-design","Supabase Design System"],"capabilities":["designMd:source"],"dependencies":[],"source":{"type":"design-md","id":"supabase-design","license":"MIT"},"receipt":{"level":"declared","maturity":"experimental","checks":{"source":"declared","license":"declared","contract":"declared","states":"missing","accessibility":"missing","light-theme":"missing","dark-theme":"missing","responsive":"missing","dependency-closure":"missing","packed-install":"missing","typecheck":"missing","browser":"missing"},"evidence":[]}},{"id":"design-guide:vercel-design","kind":"design-guide","title":"Vercel Design System","description":"1. Visual Theme & Atmosphere","category":"brand","tags":["developer","geist","high-contrast","minimal","monochrome","sharp","开发者","极简","高对比","黑白"],"aliases":["vercel-design","Vercel Design System"],"capabilities":["designMd:source"],"dependencies":[],"source":{"type":"design-md","id":"vercel-design","license":"MIT"},"receipt":{"level":"declared","maturity":"experimental","checks":{"source":"declared","license":"declared","contract":"declared","states":"missing","accessibility":"missing","light-theme":"missing","dark-theme":"missing","responsive":"missing","dependency-closure":"missing","packed-install":"missing","typecheck":"missing","browser":"missing"},"evidence":[]}},{"id":"example:admin-dashboard-example","kind":"example","title":"admin-dashboard Example","description":"Acme Admin","category":"template","tags":["admin-dashboard","uibot-template"],"aliases":["admin-dashboard-example"],"capabilities":["example:template"],"dependencies":["template:admin-dashboard"],"source":{"type":"example","id":"admin-dashboard-example"},"receipt":{"level":"declared","maturity":"experimental","checks":{"source":"declared","license":"missing","contract":"declared","states":"missing","accessibility":"missing","light-theme":"missing","dark-theme":"missing","responsive":"missing","dependency-closure":"missing","packed-install":"missing","typecheck":"missing","browser":"missing"},"evidence":[]}},{"id":"example:ai-chat-example","kind":"example","title":"ai-chat Example","description":"Nova — Chat","category":"template","tags":["ai-chat","uibot-template"],"aliases":["ai-chat-example"],"capabilities":["example:template"],"dependencies":["template:ai-chat"],"source":{"type":"example","id":"ai-chat-example"},"receipt":{"level":"declared","maturity":"experimental","checks":{"source":"declared","license":"missing","contract":"declared","states":"missing","accessibility":"missing","light-theme":"missing","dark-theme":"missing","responsive":"missing","dependency-closure":"missing","packed-install":"missing","typecheck":"missing","browser":"missing"},"evidence":[]}},{"id":"example:analytics-dashboard-example","kind":"example","title":"analytics-dashboard Example","description":"Analytics","category":"template","tags":["analytics-dashboard","uibot-template"],"aliases":["analytics-dashboard-example"],"capabilities":["example:template"],"dependencies":["template:analytics-dashboard"],"source":{"type":"example","id":"analytics-dashboard-example"},"receipt":{"level":"declared","maturity":"experimental","checks":{"source":"declared","license":"missing","contract":"declared","states":"missing","accessibility":"missing","light-theme":"missing","dark-theme":"missing","responsive":"missing","dependency-closure":"missing","packed-install":"missing","typecheck":"missing","browser":"missing"},"evidence":[]}},{"id":"example:auth-example","kind":"example","title":"auth Example","description":"Sign in","category":"template","tags":["auth","uibot-template"],"aliases":["auth-example"],"capabilities":["example:template"],"dependencies":["template:auth"],"source":{"type":"example","id":"auth-example"},"receipt":{"level":"declared","maturity":"experimental","checks":{"source":"declared","license":"missing","contract":"declared","states":"missing","accessibility":"missing","light-theme":"missing","dark-theme":"missing","responsive":"missing","dependency-closure":"missing","packed-install":"missing","typecheck":"missing","browser":"missing"},"evidence":[]}},{"id":"example:blog-example","kind":"example","title":"blog Example","description":"The Northwind Journal","category":"template","tags":["blog","uibot-template"],"aliases":["blog-example"],"capabilities":["example:template"],"dependencies":["template:blog"],"source":{"type":"example","id":"blog-example"},"receipt":{"level":"declared","maturity":"experimental","checks":{"source":"declared","license":"missing","contract":"declared","states":"missing","accessibility":"missing","light-theme":"missing","dark-theme":"missing","responsive":"missing","dependency-closure":"missing","packed-install":"missing","typecheck":"missing","browser":"missing"},"evidence":[]}},{"id":"example:crm-example","kind":"example","title":"crm Example","description":"Pipeline — CRM","category":"template","tags":["crm","uibot-template"],"aliases":["crm-example"],"capabilities":["example:template"],"dependencies":["template:crm"],"source":{"type":"example","id":"crm-example"},"receipt":{"level":"declared","maturity":"experimental","checks":{"source":"declared","license":"missing","contract":"declared","states":"missing","accessibility":"missing","light-theme":"missing","dark-theme":"missing","responsive":"missing","dependency-closure":"missing","packed-install":"missing","typecheck":"missing","browser":"missing"},"evidence":[]}},{"id":"example:ecommerce-example","kind":"example","title":"ecommerce Example","description":"Shop — All products","category":"template","tags":["ecommerce","uibot-template"],"aliases":["ecommerce-example"],"capabilities":["example:template"],"dependencies":["template:ecommerce"],"source":{"type":"example","id":"ecommerce-example"},"receipt":{"level":"declared","maturity":"experimental","checks":{"source":"declared","license":"missing","contract":"declared","states":"missing","accessibility":"missing","light-theme":"missing","dark-theme":"missing","responsive":"missing","dependency-closure":"missing","packed-install":"missing","typecheck":"missing","browser":"missing"},"evidence":[]}},{"id":"example:lms-example","kind":"example","title":"lms Example","description":"Learn — Dashboard","category":"template","tags":["lms","uibot-template"],"aliases":["lms-example"],"capabilities":["example:template"],"dependencies":["template:lms"],"source":{"type":"example","id":"lms-example"},"receipt":{"level":"declared","maturity":"experimental","checks":{"source":"declared","license":"missing","contract":"declared","states":"missing","accessibility":"missing","light-theme":"missing","dark-theme":"missing","responsive":"missing","dependency-closure":"missing","packed-install":"missing","typecheck":"missing","browser":"missing"},"evidence":[]}},{"id":"example:portfolio-example","kind":"example","title":"portfolio Example","description":"Ada Lovelace — Designer & Engineer","category":"template","tags":["portfolio","uibot-template"],"aliases":["portfolio-example"],"capabilities":["example:template"],"dependencies":["template:portfolio"],"source":{"type":"example","id":"portfolio-example"},"receipt":{"level":"declared","maturity":"experimental","checks":{"source":"declared","license":"missing","contract":"declared","states":"missing","accessibility":"missing","light-theme":"missing","dark-theme":"missing","responsive":"missing","dependency-closure":"missing","packed-install":"missing","typecheck":"missing","browser":"missing"},"evidence":[]}},{"id":"example:pricing-example","kind":"example","title":"pricing Example","description":"Pricing","category":"template","tags":["pricing","uibot-template"],"aliases":["pricing-example"],"capabilities":["example:template"],"dependencies":["template:pricing"],"source":{"type":"example","id":"pricing-example"},"receipt":{"level":"declared","maturity":"experimental","checks":{"source":"declared","license":"missing","contract":"declared","states":"missing","accessibility":"missing","light-theme":"missing","dark-theme":"missing","responsive":"missing","dependency-closure":"missing","packed-install":"missing","typecheck":"missing","browser":"missing"},"evidence":[]}},{"id":"example:saas-landing-example","kind":"example","title":"saas-landing Example","description":"Northwind — Ship in one surface","category":"template","tags":["saas-landing","uibot-template"],"aliases":["saas-landing-example"],"capabilities":["example:template"],"dependencies":["template:saas-landing"],"source":{"type":"example","id":"saas-landing-example"},"receipt":{"level":"declared","maturity":"experimental","checks":{"source":"declared","license":"missing","contract":"declared","states":"missing","accessibility":"missing","light-theme":"missing","dark-theme":"missing","responsive":"missing","dependency-closure":"missing","packed-install":"missing","typecheck":"missing","browser":"missing"},"evidence":[]}},{"id":"example:settings-example","kind":"example","title":"settings Example","description":"Settings","category":"template","tags":["settings","uibot-template"],"aliases":["settings-example"],"capabilities":["example:template"],"dependencies":["template:settings"],"source":{"type":"example","id":"settings-example"},"receipt":{"level":"declared","maturity":"experimental","checks":{"source":"declared","license":"missing","contract":"declared","states":"missing","accessibility":"missing","light-theme":"missing","dark-theme":"missing","responsive":"missing","dependency-closure":"missing","packed-install":"missing","typecheck":"missing","browser":"missing"},"evidence":[]}},{"id":"example:shadcn-admin-example","kind":"example","title":"UiBot Admin Example","description":"Dashboard","category":"template","tags":["shadcn-admin","uibot-template"],"aliases":["shadcn-admin-example","UiBot Admin Example"],"capabilities":["example:template"],"dependencies":["template:shadcn-admin"],"source":{"type":"example","id":"shadcn-admin-example"},"receipt":{"level":"declared","maturity":"experimental","checks":{"source":"declared","license":"missing","contract":"declared","states":"missing","accessibility":"missing","light-theme":"missing","dark-theme":"missing","responsive":"missing","dependency-closure":"missing","packed-install":"missing","typecheck":"missing","browser":"missing"},"evidence":[]}},{"id":"example:store-example","kind":"example","title":"store Example","description":"Verdant — Storefront","category":"template","tags":["store","uibot-template"],"aliases":["store-example"],"capabilities":["example:template"],"dependencies":["template:store"],"source":{"type":"example","id":"store-example"},"receipt":{"level":"declared","maturity":"experimental","checks":{"source":"declared","license":"missing","contract":"declared","states":"missing","accessibility":"missing","light-theme":"missing","dark-theme":"missing","responsive":"missing","dependency-closure":"missing","packed-install":"missing","typecheck":"missing","browser":"missing"},"evidence":[]}},{"id":"example:support-inbox-example","kind":"example","title":"support-inbox Example","description":"Support Inbox","category":"template","tags":["support-inbox","uibot-template"],"aliases":["support-inbox-example"],"capabilities":["example:template"],"dependencies":["template:support-inbox"],"source":{"type":"example","id":"support-inbox-example"},"receipt":{"level":"declared","maturity":"experimental","checks":{"source":"declared","license":"missing","contract":"declared","states":"missing","accessibility":"missing","light-theme":"missing","dark-theme":"missing","responsive":"missing","dependency-closure":"missing","packed-install":"missing","typecheck":"missing","browser":"missing"},"evidence":[]}},{"id":"example:team-directory-example","kind":"example","title":"team-directory Example","description":"Team Directory","category":"template","tags":["team-directory","uibot-template"],"aliases":["team-directory-example"],"capabilities":["example:template"],"dependencies":["template:team-directory"],"source":{"type":"example","id":"team-directory-example"},"receipt":{"level":"declared","maturity":"experimental","checks":{"source":"declared","license":"missing","contract":"declared","states":"missing","accessibility":"missing","light-theme":"missing","dark-theme":"missing","responsive":"missing","dependency-closure":"missing","packed-install":"missing","typecheck":"missing","browser":"missing"},"evidence":[]}},{"id":"package:uibot-agents","kind":"package","title":"@uibot/agents","description":"@uibot/agents public SDK","tags":["package"],"aliases":["@uibot/agents"],"capabilities":[],"dependencies":["package:uibot-context","package:uibot-contracts"],"source":{"type":"package","id":"@uibot/agents","version":"0.16.0","license":"MIT"},"receipt":{"level":"declared","maturity":"experimental","checks":{"source":"declared","license":"declared","contract":"declared","states":"missing","accessibility":"missing","light-theme":"missing","dark-theme":"missing","responsive":"missing","dependency-closure":"missing","packed-install":"missing","typecheck":"missing","browser":"missing"},"evidence":[]}},{"id":"package:uibot-ai-chat","kind":"package","title":"@uibot/ai-chat","description":"@uibot/ai-chat public SDK","tags":["package"],"aliases":["@uibot/ai-chat"],"capabilities":[],"dependencies":["package:uibot-contracts"],"source":{"type":"package","id":"@uibot/ai-chat","version":"0.16.0","license":"MIT"},"receipt":{"level":"declared","maturity":"experimental","checks":{"source":"declared","license":"declared","contract":"declared","states":"missing","accessibility":"missing","light-theme":"missing","dark-theme":"missing","responsive":"missing","dependency-closure":"missing","packed-install":"missing","typecheck":"missing","browser":"missing"},"evidence":[]}},{"id":"package:uibot-application","kind":"package","title":"@uibot/application","description":"@uibot/application public SDK","tags":["package"],"aliases":["@uibot/application"],"capabilities":[],"dependencies":["package:uibot-artifact-exporters","package:uibot-compiler","package:uibot-context","package:uibot-context-code","package:uibot-contracts","package:uibot-design-md","package:uibot-page-annotation","package:uibot-registry","package:uibot-renderer-react","package:uibot-runtime","package:uibot-web-preview"],"source":{"type":"package","id":"@uibot/application","version":"0.16.0","license":"MIT"},"receipt":{"level":"declared","maturity":"experimental","checks":{"source":"declared","license":"declared","contract":"declared","states":"missing","accessibility":"missing","light-theme":"missing","dark-theme":"missing","responsive":"missing","dependency-closure":"missing","packed-install":"missing","typecheck":"missing","browser":"missing"},"evidence":[]}},{"id":"package:uibot-artifact-exporters","kind":"package","title":"@uibot/artifact-exporters","description":"@uibot/artifact-exporters public SDK","tags":["package"],"aliases":["@uibot/artifact-exporters"],"capabilities":[],"dependencies":[],"source":{"type":"package","id":"@uibot/artifact-exporters","version":"0.16.0","license":"MIT"},"receipt":{"level":"declared","maturity":"experimental","checks":{"source":"declared","license":"declared","contract":"declared","states":"missing","accessibility":"missing","light-theme":"missing","dark-theme":"missing","responsive":"missing","dependency-closure":"missing","packed-install":"missing","typecheck":"missing","browser":"missing"},"evidence":[]}},{"id":"package:uibot-blocks-base","kind":"package","title":"@uibot/blocks-base","description":"@uibot/blocks-base public SDK","tags":["package"],"aliases":["@uibot/blocks-base"],"capabilities":[],"dependencies":["package:uibot-contracts","package:uibot-plugin-sdk","package:uibot-renderer-react"],"source":{"type":"package","id":"@uibot/blocks-base","version":"0.16.0","license":"MIT"},"receipt":{"level":"declared","maturity":"experimental","checks":{"source":"declared","license":"declared","contract":"declared","states":"missing","accessibility":"missing","light-theme":"missing","dark-theme":"missing","responsive":"missing","dependency-closure":"missing","packed-install":"missing","typecheck":"missing","browser":"missing"},"evidence":[]}},{"id":"package:uibot-blocks-shadcn","kind":"package","title":"@uibot/blocks-shadcn","description":"@uibot/blocks-shadcn public SDK","tags":["package"],"aliases":["@uibot/blocks-shadcn"],"capabilities":[],"dependencies":[],"source":{"type":"package","id":"@uibot/blocks-shadcn","version":"0.16.0","license":"MIT"},"receipt":{"level":"declared","maturity":"experimental","checks":{"source":"declared","license":"declared","contract":"declared","states":"missing","accessibility":"missing","light-theme":"missing","dark-theme":"missing","responsive":"missing","dependency-closure":"missing","packed-install":"missing","typecheck":"missing","browser":"missing"},"evidence":[]}},{"id":"package:uibot-blocks-studio","kind":"package","title":"@uibot/blocks-studio","description":"@uibot/blocks-studio public SDK","tags":["package"],"aliases":["@uibot/blocks-studio"],"capabilities":[],"dependencies":["package:uibot-contracts","package:uibot-plugin-sdk","package:uibot-renderer-react"],"source":{"type":"package","id":"@uibot/blocks-studio","version":"0.16.0","license":"MIT"},"receipt":{"level":"declared","maturity":"experimental","checks":{"source":"declared","license":"declared","contract":"declared","states":"missing","accessibility":"missing","light-theme":"missing","dark-theme":"missing","responsive":"missing","dependency-closure":"missing","packed-install":"missing","typecheck":"missing","browser":"missing"},"evidence":[]}},{"id":"package:uibot-cli","kind":"package","title":"@uibot/cli","description":"@uibot/cli public SDK","tags":["package"],"aliases":["@uibot/cli"],"capabilities":[],"dependencies":["package:uibot-blocks-shadcn","package:uibot-blocks-studio","package:uibot-contracts","package:uibot-design-md","package:uibot-evaluation","package:uibot-registry","package:uibot-skills"],"source":{"type":"package","id":"@uibot/cli","version":"0.16.0","license":"MIT"},"receipt":{"level":"declared","maturity":"experimental","checks":{"source":"declared","license":"declared","contract":"declared","states":"missing","accessibility":"missing","light-theme":"missing","dark-theme":"missing","responsive":"missing","dependency-closure":"missing","packed-install":"missing","typecheck":"missing","browser":"missing"},"evidence":[]}},{"id":"package:uibot-compiler","kind":"package","title":"@uibot/compiler","description":"@uibot/compiler public SDK","tags":["package"],"aliases":["@uibot/compiler"],"capabilities":[],"dependencies":["package:uibot-contracts"],"source":{"type":"package","id":"@uibot/compiler","version":"0.16.0","license":"MIT"},"receipt":{"level":"declared","maturity":"experimental","checks":{"source":"declared","license":"declared","contract":"declared","states":"missing","accessibility":"missing","light-theme":"missing","dark-theme":"missing","responsive":"missing","dependency-closure":"missing","packed-install":"missing","typecheck":"missing","browser":"missing"},"evidence":[]}},{"id":"package:uibot-connection-http","kind":"package","title":"@uibot/connection-http","description":"@uibot/connection-http public SDK","tags":["package"],"aliases":["@uibot/connection-http"],"capabilities":[],"dependencies":["package:uibot-contracts","package:uibot-plugin-sdk"],"source":{"type":"package","id":"@uibot/connection-http","version":"0.16.0","license":"MIT"},"receipt":{"level":"declared","maturity":"experimental","checks":{"source":"declared","license":"declared","contract":"declared","states":"missing","accessibility":"missing","light-theme":"missing","dark-theme":"missing","responsive":"missing","dependency-closure":"missing","packed-install":"missing","typecheck":"missing","browser":"missing"},"evidence":[]}},{"id":"package:uibot-connection-mock","kind":"package","title":"@uibot/connection-mock","description":"@uibot/connection-mock public SDK","tags":["package"],"aliases":["@uibot/connection-mock"],"capabilities":[],"dependencies":["package:uibot-contracts","package:uibot-plugin-sdk"],"source":{"type":"package","id":"@uibot/connection-mock","version":"0.16.0","license":"MIT"},"receipt":{"level":"declared","maturity":"experimental","checks":{"source":"declared","license":"declared","contract":"declared","states":"missing","accessibility":"missing","light-theme":"missing","dark-theme":"missing","responsive":"missing","dependency-closure":"missing","packed-install":"missing","typecheck":"missing","browser":"missing"},"evidence":[]}},{"id":"package:uibot-connection-nowapi","kind":"package","title":"@uibot/connection-nowapi","description":"@uibot/connection-nowapi public SDK","tags":["package"],"aliases":["@uibot/connection-nowapi"],"capabilities":[],"dependencies":["package:uibot-contracts","package:uibot-plugin-sdk"],"source":{"type":"package","id":"@uibot/connection-nowapi","version":"0.16.0","license":"MIT"},"receipt":{"level":"declared","maturity":"experimental","checks":{"source":"declared","license":"declared","contract":"declared","states":"missing","accessibility":"missing","light-theme":"missing","dark-theme":"missing","responsive":"missing","dependency-closure":"missing","packed-install":"missing","typecheck":"missing","browser":"missing"},"evidence":[]}},{"id":"package:uibot-connection-pg","kind":"package","title":"@uibot/connection-pg","description":"@uibot/connection-pg public SDK","tags":["package"],"aliases":["@uibot/connection-pg"],"capabilities":[],"dependencies":["package:uibot-contracts","package:uibot-plugin-sdk"],"source":{"type":"package","id":"@uibot/connection-pg","version":"0.16.0","license":"MIT"},"receipt":{"level":"declared","maturity":"experimental","checks":{"source":"declared","license":"declared","contract":"declared","states":"missing","accessibility":"missing","light-theme":"missing","dark-theme":"missing","responsive":"missing","dependency-closure":"missing","packed-install":"missing","typecheck":"missing","browser":"missing"},"evidence":[]}},{"id":"package:uibot-context","kind":"package","title":"@uibot/context","description":"@uibot/context public SDK","tags":["package"],"aliases":["@uibot/context"],"capabilities":[],"dependencies":["package:uibot-contracts"],"source":{"type":"package","id":"@uibot/context","version":"0.16.0","license":"MIT"},"receipt":{"level":"declared","maturity":"experimental","checks":{"source":"declared","license":"declared","contract":"declared","states":"missing","accessibility":"missing","light-theme":"missing","dark-theme":"missing","responsive":"missing","dependency-closure":"missing","packed-install":"missing","typecheck":"missing","browser":"missing"},"evidence":[]}},{"id":"package:uibot-context-code","kind":"package","title":"@uibot/context-code","description":"@uibot/context-code public SDK","tags":["package"],"aliases":["@uibot/context-code"],"capabilities":[],"dependencies":["package:uibot-context"],"source":{"type":"package","id":"@uibot/context-code","version":"0.16.0","license":"MIT"},"receipt":{"level":"declared","maturity":"experimental","checks":{"source":"declared","license":"declared","contract":"declared","states":"missing","accessibility":"missing","light-theme":"missing","dark-theme":"missing","responsive":"missing","dependency-closure":"missing","packed-install":"missing","typecheck":"missing","browser":"missing"},"evidence":[]}},{"id":"package:uibot-contracts","kind":"package","title":"@uibot/contracts","description":"@uibot/contracts public SDK","tags":["package"],"aliases":["@uibot/contracts"],"capabilities":[],"dependencies":[],"source":{"type":"package","id":"@uibot/contracts","version":"0.16.0","license":"MIT"},"receipt":{"level":"declared","maturity":"experimental","checks":{"source":"declared","license":"declared","contract":"declared","states":"missing","accessibility":"missing","light-theme":"missing","dark-theme":"missing","responsive":"missing","dependency-closure":"missing","packed-install":"missing","typecheck":"missing","browser":"missing"},"evidence":[]}},{"id":"package:uibot-core","kind":"package","title":"@uibot/core","description":"@uibot/core public SDK","tags":["package"],"aliases":["@uibot/core"],"capabilities":[],"dependencies":["package:uibot-application","package:uibot-contracts","package:uibot-kernel","package:uibot-plugin-sdk"],"source":{"type":"package","id":"@uibot/core","version":"0.16.0","license":"MIT"},"receipt":{"level":"declared","maturity":"experimental","checks":{"source":"declared","license":"declared","contract":"declared","states":"missing","accessibility":"missing","light-theme":"missing","dark-theme":"missing","responsive":"missing","dependency-closure":"missing","packed-install":"missing","typecheck":"missing","browser":"missing"},"evidence":[]}},{"id":"package:uibot-creation-kit","kind":"package","title":"@uibot/creation-kit","description":"@uibot/creation-kit public SDK","tags":["package"],"aliases":["@uibot/creation-kit"],"capabilities":[],"dependencies":["package:uibot-ai-chat","package:uibot-contracts"],"source":{"type":"package","id":"@uibot/creation-kit","version":"0.16.0","license":"MIT"},"receipt":{"level":"declared","maturity":"experimental","checks":{"source":"declared","license":"declared","contract":"declared","states":"missing","accessibility":"missing","light-theme":"missing","dark-theme":"missing","responsive":"missing","dependency-closure":"missing","packed-install":"missing","typecheck":"missing","browser":"missing"},"evidence":[]}},{"id":"package:uibot-design-md","kind":"package","title":"@uibot/design-md","description":"@uibot/design-md public SDK","tags":["package"],"aliases":["@uibot/design-md"],"capabilities":[],"dependencies":["package:uibot-contracts","package:uibot-plugin-sdk"],"source":{"type":"package","id":"@uibot/design-md","version":"0.16.0","license":"MIT"},"receipt":{"level":"declared","maturity":"experimental","checks":{"source":"declared","license":"declared","contract":"declared","states":"missing","accessibility":"missing","light-theme":"missing","dark-theme":"missing","responsive":"missing","dependency-closure":"missing","packed-install":"missing","typecheck":"missing","browser":"missing"},"evidence":[]}},{"id":"package:uibot-design-md-importer","kind":"package","title":"@uibot/design-md-importer","description":"@uibot/design-md-importer public SDK","tags":["package"],"aliases":["@uibot/design-md-importer"],"capabilities":[],"dependencies":["package:uibot-contracts"],"source":{"type":"package","id":"@uibot/design-md-importer","version":"0.16.0","license":"MIT"},"receipt":{"level":"declared","maturity":"experimental","checks":{"source":"declared","license":"declared","contract":"declared","states":"missing","accessibility":"missing","light-theme":"missing","dark-theme":"missing","responsive":"missing","dependency-closure":"missing","packed-install":"missing","typecheck":"missing","browser":"missing"},"evidence":[]}},{"id":"package:uibot-document-editor","kind":"package","title":"@uibot/document-editor","description":"@uibot/document-editor public SDK","tags":["package"],"aliases":["@uibot/document-editor"],"capabilities":[],"dependencies":["package:uibot-contracts"],"source":{"type":"package","id":"@uibot/document-editor","version":"0.16.0","license":"MIT"},"receipt":{"level":"declared","maturity":"experimental","checks":{"source":"declared","license":"declared","contract":"declared","states":"missing","accessibility":"missing","light-theme":"missing","dark-theme":"missing","responsive":"missing","dependency-closure":"missing","packed-install":"missing","typecheck":"missing","browser":"missing"},"evidence":[]}},{"id":"package:uibot-engine","kind":"package","title":"@uibot/engine","description":"@uibot/engine public SDK","tags":["package"],"aliases":["@uibot/engine"],"capabilities":[],"dependencies":["package:uibot-contracts"],"source":{"type":"package","id":"@uibot/engine","version":"0.16.0","license":"MIT"},"receipt":{"level":"declared","maturity":"experimental","checks":{"source":"declared","license":"declared","contract":"declared","states":"missing","accessibility":"missing","light-theme":"missing","dark-theme":"missing","responsive":"missing","dependency-closure":"missing","packed-install":"missing","typecheck":"missing","browser":"missing"},"evidence":[]}},{"id":"package:uibot-evaluation","kind":"package","title":"@uibot/evaluation","description":"@uibot/evaluation public SDK","tags":["package"],"aliases":["@uibot/evaluation"],"capabilities":[],"dependencies":["package:uibot-contracts"],"source":{"type":"package","id":"@uibot/evaluation","version":"0.16.0","license":"MIT"},"receipt":{"level":"declared","maturity":"experimental","checks":{"source":"declared","license":"declared","contract":"declared","states":"missing","accessibility":"missing","light-theme":"missing","dark-theme":"missing","responsive":"missing","dependency-closure":"missing","packed-install":"missing","typecheck":"missing","browser":"missing"},"evidence":[]}},{"id":"package:uibot-execution-docker","kind":"package","title":"@uibot/execution-docker","description":"@uibot/execution-docker public SDK","tags":["package"],"aliases":["@uibot/execution-docker"],"capabilities":[],"dependencies":["package:uibot-contracts"],"source":{"type":"package","id":"@uibot/execution-docker","version":"0.16.0","license":"MIT"},"receipt":{"level":"declared","maturity":"experimental","checks":{"source":"declared","license":"declared","contract":"declared","states":"missing","accessibility":"missing","light-theme":"missing","dark-theme":"missing","responsive":"missing","dependency-closure":"missing","packed-install":"missing","typecheck":"missing","browser":"missing"},"evidence":[]}},{"id":"package:uibot-execution-microsandbox","kind":"package","title":"@uibot/execution-microsandbox","description":"@uibot/execution-microsandbox public SDK","tags":["package"],"aliases":["@uibot/execution-microsandbox"],"capabilities":[],"dependencies":["package:uibot-contracts"],"source":{"type":"package","id":"@uibot/execution-microsandbox","version":"0.16.0","license":"MIT"},"receipt":{"level":"declared","maturity":"experimental","checks":{"source":"declared","license":"declared","contract":"declared","states":"missing","accessibility":"missing","light-theme":"missing","dark-theme":"missing","responsive":"missing","dependency-closure":"missing","packed-install":"missing","typecheck":"missing","browser":"missing"},"evidence":[]}},{"id":"package:uibot-hub-runtime","kind":"package","title":"@uibot/hub-runtime","description":"@uibot/hub-runtime public SDK","tags":["package"],"aliases":["@uibot/hub-runtime"],"capabilities":[],"dependencies":["package:uibot-contracts","package:uibot-plugin-sdk"],"source":{"type":"package","id":"@uibot/hub-runtime","version":"0.16.0","license":"MIT"},"receipt":{"level":"declared","maturity":"experimental","checks":{"source":"declared","license":"declared","contract":"declared","states":"missing","accessibility":"missing","light-theme":"missing","dark-theme":"missing","responsive":"missing","dependency-closure":"missing","packed-install":"missing","typecheck":"missing","browser":"missing"},"evidence":[]}},{"id":"package:uibot-kernel","kind":"package","title":"@uibot/kernel","description":"@uibot/kernel public SDK","tags":["package"],"aliases":["@uibot/kernel"],"capabilities":[],"dependencies":["package:uibot-contracts","package:uibot-plugin-sdk"],"source":{"type":"package","id":"@uibot/kernel","version":"0.16.0","license":"MIT"},"receipt":{"level":"declared","maturity":"experimental","checks":{"source":"declared","license":"declared","contract":"declared","states":"missing","accessibility":"missing","light-theme":"missing","dark-theme":"missing","responsive":"missing","dependency-closure":"missing","packed-install":"missing","typecheck":"missing","browser":"missing"},"evidence":[]}},{"id":"package:uibot-mcp-server","kind":"package","title":"@uibot/mcp-server","description":"@uibot/mcp-server public SDK","tags":["package"],"aliases":["@uibot/mcp-server"],"capabilities":[],"dependencies":[],"source":{"type":"package","id":"@uibot/mcp-server","version":"0.16.0","license":"MIT"},"receipt":{"level":"declared","maturity":"experimental","checks":{"source":"declared","license":"declared","contract":"declared","states":"missing","accessibility":"missing","light-theme":"missing","dark-theme":"missing","responsive":"missing","dependency-closure":"missing","packed-install":"missing","typecheck":"missing","browser":"missing"},"evidence":[]}},{"id":"package:uibot-model","kind":"package","title":"@uibot/model","description":"@uibot/model public SDK","tags":["package"],"aliases":["@uibot/model"],"capabilities":[],"dependencies":["package:uibot-contracts"],"source":{"type":"package","id":"@uibot/model","version":"0.16.0","license":"MIT"},"receipt":{"level":"declared","maturity":"experimental","checks":{"source":"declared","license":"declared","contract":"declared","states":"missing","accessibility":"missing","light-theme":"missing","dark-theme":"missing","responsive":"missing","dependency-closure":"missing","packed-install":"missing","typecheck":"missing","browser":"missing"},"evidence":[]}},{"id":"package:uibot-model-catalog","kind":"package","title":"@uibot/model-catalog","description":"@uibot/model-catalog public SDK","tags":["package"],"aliases":["@uibot/model-catalog"],"capabilities":[],"dependencies":["package:uibot-contracts"],"source":{"type":"package","id":"@uibot/model-catalog","version":"0.16.0","license":"MIT"},"receipt":{"level":"declared","maturity":"experimental","checks":{"source":"declared","license":"declared","contract":"declared","states":"missing","accessibility":"missing","light-theme":"missing","dark-theme":"missing","responsive":"missing","dependency-closure":"missing","packed-install":"missing","typecheck":"missing","browser":"missing"},"evidence":[]}},{"id":"package:uibot-page-annotation","kind":"package","title":"@uibot/page-annotation","description":"@uibot/page-annotation public SDK","tags":["package"],"aliases":["@uibot/page-annotation"],"capabilities":[],"dependencies":["package:uibot-contracts"],"source":{"type":"package","id":"@uibot/page-annotation","version":"0.16.0","license":"MIT"},"receipt":{"level":"declared","maturity":"experimental","checks":{"source":"declared","license":"declared","contract":"declared","states":"missing","accessibility":"missing","light-theme":"missing","dark-theme":"missing","responsive":"missing","dependency-closure":"missing","packed-install":"missing","typecheck":"missing","browser":"missing"},"evidence":[]}},{"id":"package:uibot-plugin-sdk","kind":"package","title":"@uibot/plugin-sdk","description":"@uibot/plugin-sdk public SDK","tags":["package"],"aliases":["@uibot/plugin-sdk"],"capabilities":[],"dependencies":["package:uibot-contracts"],"source":{"type":"package","id":"@uibot/plugin-sdk","version":"0.16.0","license":"MIT"},"receipt":{"level":"declared","maturity":"experimental","checks":{"source":"declared","license":"declared","contract":"declared","states":"missing","accessibility":"missing","light-theme":"missing","dark-theme":"missing","responsive":"missing","dependency-closure":"missing","packed-install":"missing","typecheck":"missing","browser":"missing"},"evidence":[]}},{"id":"package:uibot-registry","kind":"package","title":"@uibot/registry","description":"@uibot/registry public SDK","tags":["package"],"aliases":["@uibot/registry"],"capabilities":[],"dependencies":["package:uibot-contracts"],"source":{"type":"package","id":"@uibot/registry","version":"0.16.0","license":"MIT"},"receipt":{"level":"declared","maturity":"experimental","checks":{"source":"declared","license":"declared","contract":"declared","states":"missing","accessibility":"missing","light-theme":"missing","dark-theme":"missing","responsive":"missing","dependency-closure":"missing","packed-install":"missing","typecheck":"missing","browser":"missing"},"evidence":[]}},{"id":"package:uibot-renderer-react","kind":"package","title":"@uibot/renderer-react","description":"@uibot/renderer-react public SDK","tags":["package"],"aliases":["@uibot/renderer-react"],"capabilities":[],"dependencies":["package:uibot-contracts","package:uibot-engine"],"source":{"type":"package","id":"@uibot/renderer-react","version":"0.16.0","license":"MIT"},"receipt":{"level":"declared","maturity":"experimental","checks":{"source":"declared","license":"declared","contract":"declared","states":"missing","accessibility":"missing","light-theme":"missing","dark-theme":"missing","responsive":"missing","dependency-closure":"missing","packed-install":"missing","typecheck":"missing","browser":"missing"},"evidence":[]}},{"id":"package:uibot-runtime","kind":"package","title":"@uibot/runtime","description":"@uibot/runtime public SDK","tags":["package"],"aliases":["@uibot/runtime"],"capabilities":[],"dependencies":["package:uibot-contracts","package:uibot-engine","package:uibot-renderer-react"],"source":{"type":"package","id":"@uibot/runtime","version":"0.16.0","license":"MIT"},"receipt":{"level":"declared","maturity":"experimental","checks":{"source":"declared","license":"declared","contract":"declared","states":"missing","accessibility":"missing","light-theme":"missing","dark-theme":"missing","responsive":"missing","dependency-closure":"missing","packed-install":"missing","typecheck":"missing","browser":"missing"},"evidence":[]}},{"id":"package:uibot-skills","kind":"package","title":"@uibot/skills","description":"@uibot/skills public SDK","tags":["package"],"aliases":["@uibot/skills"],"capabilities":[],"dependencies":["package:uibot-contracts","package:uibot-plugin-sdk"],"source":{"type":"package","id":"@uibot/skills","version":"0.16.0","license":"MIT"},"receipt":{"level":"declared","maturity":"experimental","checks":{"source":"declared","license":"declared","contract":"declared","states":"missing","accessibility":"missing","light-theme":"missing","dark-theme":"missing","responsive":"missing","dependency-closure":"missing","packed-install":"missing","typecheck":"missing","browser":"missing"},"evidence":[]}},{"id":"package:uibot-testing","kind":"package","title":"@uibot/testing","description":"@uibot/testing public SDK","tags":["package"],"aliases":["@uibot/testing"],"capabilities":[],"dependencies":["package:uibot-compiler","package:uibot-contracts","package:uibot-engine"],"source":{"type":"package","id":"@uibot/testing","version":"0.16.0","license":"MIT"},"receipt":{"level":"declared","maturity":"experimental","checks":{"source":"declared","license":"declared","contract":"declared","states":"missing","accessibility":"missing","light-theme":"missing","dark-theme":"missing","responsive":"missing","dependency-closure":"missing","packed-install":"missing","typecheck":"missing","browser":"missing"},"evidence":[]}},{"id":"package:uibot-vite","kind":"package","title":"@uibot/vite","description":"@uibot/vite public SDK","tags":["package"],"aliases":["@uibot/vite"],"capabilities":[],"dependencies":["package:uibot-compiler","package:uibot-contracts"],"source":{"type":"package","id":"@uibot/vite","version":"0.16.0","license":"MIT"},"receipt":{"level":"declared","maturity":"experimental","checks":{"source":"declared","license":"declared","contract":"declared","states":"missing","accessibility":"missing","light-theme":"missing","dark-theme":"missing","responsive":"missing","dependency-closure":"missing","packed-install":"missing","typecheck":"missing","browser":"missing"},"evidence":[]}},{"id":"package:uibot-vlm-scorer","kind":"package","title":"@uibot/vlm-scorer","description":"@uibot/vlm-scorer public SDK","tags":["package"],"aliases":["@uibot/vlm-scorer"],"capabilities":[],"dependencies":["package:uibot-compiler","package:uibot-contracts","package:uibot-evaluation","package:uibot-renderer-react","package:uibot-web-preview"],"source":{"type":"package","id":"@uibot/vlm-scorer","version":"0.16.0","license":"MIT"},"receipt":{"level":"declared","maturity":"experimental","checks":{"source":"declared","license":"declared","contract":"declared","states":"missing","accessibility":"missing","light-theme":"missing","dark-theme":"missing","responsive":"missing","dependency-closure":"missing","packed-install":"missing","typecheck":"missing","browser":"missing"},"evidence":[]}},{"id":"package:uibot-web-preview","kind":"package","title":"@uibot/web-preview","description":"@uibot/web-preview public SDK","tags":["package"],"aliases":["@uibot/web-preview"],"capabilities":[],"dependencies":[],"source":{"type":"package","id":"@uibot/web-preview","version":"0.16.0","license":"MIT"},"receipt":{"level":"declared","maturity":"experimental","checks":{"source":"declared","license":"declared","contract":"declared","states":"missing","accessibility":"missing","light-theme":"missing","dark-theme":"missing","responsive":"missing","dependency-closure":"missing","packed-install":"missing","typecheck":"missing","browser":"missing"},"evidence":[]}},{"id":"template:admin-dashboard","kind":"template","title":"admin-dashboard","description":"Acme Admin","category":"template","tags":["admin-dashboard","uibot-template"],"aliases":["admin-dashboard"],"capabilities":[],"dependencies":["component:badge-group","component:box","component:button","component:card","component:grid","component:heading","component:menu-link","component:page-layout","component:page-sider-menu","component:paragraph","component:stat-grid","component:table","component:timeline-list","component:toast","component:trend-chart","template:app-shell-sidebar"],"source":{"type":"template-contract","id":"admin-dashboard","license":"MIT"},"receipt":{"level":"declared","maturity":"experimental","checks":{"source":"declared","license":"declared","contract":"declared","states":"missing","accessibility":"missing","light-theme":"missing","dark-theme":"missing","responsive":"missing","dependency-closure":"missing","packed-install":"missing","typecheck":"missing","browser":"missing"},"evidence":[]}},{"id":"template:ai-chat","kind":"template","title":"ai-chat","description":"Nova — Chat","category":"template","tags":["ai-chat","uibot-template"],"aliases":["ai-chat"],"capabilities":[],"dependencies":["component:badge-group","component:box","component:button","component:card","component:form","component:form-checkbox","component:form-input","component:form-select","component:form-submit","component:form-text-area","component:heading","component:markdown","component:page-layout","component:paragraph","component:searchable-table","component:split-master-detail","component:stat-grid","component:table","component:tabs","component:trend-chart","template:app-shell-sidebar"],"source":{"type":"template-contract","id":"ai-chat","license":"MIT"},"receipt":{"level":"declared","maturity":"experimental","checks":{"source":"declared","license":"declared","contract":"declared","states":"missing","accessibility":"missing","light-theme":"missing","dark-theme":"missing","responsive":"missing","dependency-closure":"missing","packed-install":"missing","typecheck":"missing","browser":"missing"},"evidence":[]}},{"id":"template:analytics-dashboard","kind":"template","title":"analytics-dashboard","description":"Analytics","category":"template","tags":["analytics-dashboard","uibot-template"],"aliases":["analytics-dashboard"],"capabilities":[],"dependencies":["component:badge-group","component:box","component:button","component:card","component:grid","component:heading","component:key-value-grid","component:matrix","component:page-layout","component:paragraph","component:stat-grid","component:table","component:trend-chart"],"source":{"type":"template-contract","id":"analytics-dashboard","license":"MIT"},"receipt":{"level":"declared","maturity":"experimental","checks":{"source":"declared","license":"declared","contract":"declared","states":"missing","accessibility":"missing","light-theme":"missing","dark-theme":"missing","responsive":"missing","dependency-closure":"missing","packed-install":"missing","typecheck":"missing","browser":"missing"},"evidence":[]}},{"id":"template:app-shell-floating","kind":"template","title":"app-shell-floating","description":"Floating App","category":"feature","tags":["app-shell-floating","uibot-template"],"aliases":["app-shell-floating"],"capabilities":[],"dependencies":["component:heading","component:menu-group","component:menu-link","component:page-layout","component:page-sider-menu","component:paragraph"],"source":{"type":"template-contract","id":"app-shell-floating","license":"MIT"},"receipt":{"level":"declared","maturity":"experimental","checks":{"source":"declared","license":"declared","contract":"declared","states":"missing","accessibility":"missing","light-theme":"missing","dark-theme":"missing","responsive":"missing","dependency-closure":"missing","packed-install":"missing","typecheck":"missing","browser":"missing"},"evidence":[]}},{"id":"template:app-shell-icon-rail","kind":"template","title":"app-shell-icon-rail","description":"Icon Rail","category":"feature","tags":["app-shell-icon-rail","uibot-template"],"aliases":["app-shell-icon-rail"],"capabilities":[],"dependencies":["component:heading","component:menu-group","component:menu-link","component:page-layout","component:page-sider-menu","component:paragraph"],"source":{"type":"template-contract","id":"app-shell-icon-rail","license":"MIT"},"receipt":{"level":"declared","maturity":"experimental","checks":{"source":"declared","license":"declared","contract":"declared","states":"missing","accessibility":"missing","light-theme":"missing","dark-theme":"missing","responsive":"missing","dependency-closure":"missing","packed-install":"missing","typecheck":"missing","browser":"missing"},"evidence":[]}},{"id":"template:app-shell-inset","kind":"template","title":"app-shell-inset","description":"Inset App","category":"feature","tags":["app-shell-inset","uibot-template"],"aliases":["app-shell-inset"],"capabilities":[],"dependencies":["component:heading","component:menu-group","component:menu-link","component:page-layout","component:page-sider-menu","component:paragraph"],"source":{"type":"template-contract","id":"app-shell-inset","license":"MIT"},"receipt":{"level":"declared","maturity":"experimental","checks":{"source":"declared","license":"declared","contract":"declared","states":"missing","accessibility":"missing","light-theme":"missing","dark-theme":"missing","responsive":"missing","dependency-closure":"missing","packed-install":"missing","typecheck":"missing","browser":"missing"},"evidence":[]}},{"id":"template:app-shell-settings","kind":"template","title":"app-shell-settings","description":"Settings","category":"feature","tags":["app-shell-settings","uibot-template"],"aliases":["app-shell-settings"],"capabilities":[],"dependencies":["component:heading","component:menu-group","component:menu-link","component:page-layout","component:page-sider-menu","component:paragraph"],"source":{"type":"template-contract","id":"app-shell-settings","license":"MIT"},"receipt":{"level":"declared","maturity":"experimental","checks":{"source":"declared","license":"declared","contract":"declared","states":"missing","accessibility":"missing","light-theme":"missing","dark-theme":"missing","responsive":"missing","dependency-closure":"missing","packed-install":"missing","typecheck":"missing","browser":"missing"},"evidence":[]}},{"id":"template:app-shell-sidebar","kind":"template","title":"app-shell-sidebar","description":"App","category":"feature","tags":["app-shell-sidebar","uibot-template"],"aliases":["app-shell-sidebar"],"capabilities":[],"dependencies":["component:heading","component:menu-group","component:menu-link","component:page-layout","component:page-sider-menu","component:paragraph"],"source":{"type":"template-contract","id":"app-shell-sidebar","license":"MIT"},"receipt":{"level":"declared","maturity":"experimental","checks":{"source":"declared","license":"declared","contract":"declared","states":"missing","accessibility":"missing","light-theme":"missing","dark-theme":"missing","responsive":"missing","dependency-closure":"missing","packed-install":"missing","typecheck":"missing","browser":"missing"},"evidence":[]}},{"id":"template:app-shell-workspace","kind":"template","title":"app-shell-workspace","description":"Workspace","category":"feature","tags":["app-shell-workspace","uibot-template"],"aliases":["app-shell-workspace"],"capabilities":[],"dependencies":["component:heading","component:menu-group","component:menu-link","component:page-layout","component:page-sider-menu","component:paragraph"],"source":{"type":"template-contract","id":"app-shell-workspace","license":"MIT"},"receipt":{"level":"declared","maturity":"experimental","checks":{"source":"declared","license":"declared","contract":"declared","states":"missing","accessibility":"missing","light-theme":"missing","dark-theme":"missing","responsive":"missing","dependency-closure":"missing","packed-install":"missing","typecheck":"missing","browser":"missing"},"evidence":[]}},{"id":"template:auth","kind":"template","title":"auth","description":"Sign in","category":"template","tags":["auth","uibot-template"],"aliases":["auth"],"capabilities":[],"dependencies":["component:box","component:button","component:card","component:divider","component:form","component:form-checkbox","component:form-input","component:form-submit","component:heading","component:link","component:paragraph"],"source":{"type":"template-contract","id":"auth","license":"MIT"},"receipt":{"level":"declared","maturity":"experimental","checks":{"source":"declared","license":"declared","contract":"declared","states":"missing","accessibility":"missing","light-theme":"missing","dark-theme":"missing","responsive":"missing","dependency-closure":"missing","packed-install":"missing","typecheck":"missing","browser":"missing"},"evidence":[]}},{"id":"template:blog","kind":"template","title":"blog","description":"The Northwind Journal","category":"template","tags":["blog","uibot-template"],"aliases":["blog"],"capabilities":[],"dependencies":["component:badge-group","component:box","component:card","component:form","component:form-input","component:form-submit","component:grid","component:heading","component:link","component:list","component:markdown","component:page-layout","component:paragraph"],"source":{"type":"template-contract","id":"blog","license":"MIT"},"receipt":{"level":"declared","maturity":"experimental","checks":{"source":"declared","license":"declared","contract":"declared","states":"missing","accessibility":"missing","light-theme":"missing","dark-theme":"missing","responsive":"missing","dependency-closure":"missing","packed-install":"missing","typecheck":"missing","browser":"missing"},"evidence":[]}},{"id":"template:crm","kind":"template","title":"crm","description":"Pipeline — CRM","category":"template","tags":["crm","uibot-template"],"aliases":["crm"],"capabilities":[],"dependencies":["component:badge-group","component:box","component:button","component:card","component:heading","component:kanban-board","component:menu-link","component:page-layout","component:page-sider-menu","component:paragraph","component:stat-grid","component:table","component:toast","template:app-shell-sidebar"],"source":{"type":"template-contract","id":"crm","license":"MIT"},"receipt":{"level":"declared","maturity":"experimental","checks":{"source":"declared","license":"declared","contract":"declared","states":"missing","accessibility":"missing","light-theme":"missing","dark-theme":"missing","responsive":"missing","dependency-closure":"missing","packed-install":"missing","typecheck":"missing","browser":"missing"},"evidence":[]}},{"id":"template:ecommerce","kind":"template","title":"ecommerce","description":"Shop — All products","category":"template","tags":["ecommerce","uibot-template"],"aliases":["ecommerce"],"capabilities":[],"dependencies":["component:badge-group","component:box","component:button","component:card","component:form","component:form-select","component:form-submit","component:grid","component:heading","component:link","component:page-layout","component:paragraph","component:stat"],"source":{"type":"template-contract","id":"ecommerce","license":"MIT"},"receipt":{"level":"declared","maturity":"experimental","checks":{"source":"declared","license":"declared","contract":"declared","states":"missing","accessibility":"missing","light-theme":"missing","dark-theme":"missing","responsive":"missing","dependency-closure":"missing","packed-install":"missing","typecheck":"missing","browser":"missing"},"evidence":[]}},{"id":"template:lms","kind":"template","title":"lms","description":"Learn — Dashboard","category":"template","tags":["lms","uibot-template"],"aliases":["lms"],"capabilities":[],"dependencies":["component:badge-group","component:box","component:breadcrumb","component:button","component:card","component:divider","component:grid","component:heading","component:key-value-grid","component:markdown","component:page-layout","component:paragraph","component:searchable-table","component:split-master-detail","component:stat-grid","component:table","component:timeline-list","component:toast","component:trend-chart","template:app-shell-sidebar"],"source":{"type":"template-contract","id":"lms","license":"MIT"},"receipt":{"level":"declared","maturity":"experimental","checks":{"source":"declared","license":"declared","contract":"declared","states":"missing","accessibility":"missing","light-theme":"missing","dark-theme":"missing","responsive":"missing","dependency-closure":"missing","packed-install":"missing","typecheck":"missing","browser":"missing"},"evidence":[]}},{"id":"template:portfolio","kind":"template","title":"portfolio","description":"Ada Lovelace — Designer & Engineer","category":"template","tags":["portfolio","uibot-template"],"aliases":["portfolio"],"capabilities":[],"dependencies":["component:badge-group","component:box","component:button","component:card","component:divider","component:grid","component:heading","component:key-value-grid","component:link","component:page-layout","component:paragraph"],"source":{"type":"template-contract","id":"portfolio","license":"MIT"},"receipt":{"level":"declared","maturity":"experimental","checks":{"source":"declared","license":"declared","contract":"declared","states":"missing","accessibility":"missing","light-theme":"missing","dark-theme":"missing","responsive":"missing","dependency-closure":"missing","packed-install":"missing","typecheck":"missing","browser":"missing"},"evidence":[]}},{"id":"template:pricing","kind":"template","title":"pricing","description":"Pricing","category":"template","tags":["pricing","uibot-template"],"aliases":["pricing"],"capabilities":[],"dependencies":["component:badge-group","component:box","component:button","component:card","component:divider","component:grid","component:heading","component:link","component:list","component:page-layout","component:paragraph","component:stat"],"source":{"type":"template-contract","id":"pricing","license":"MIT"},"receipt":{"level":"declared","maturity":"experimental","checks":{"source":"declared","license":"declared","contract":"declared","states":"missing","accessibility":"missing","light-theme":"missing","dark-theme":"missing","responsive":"missing","dependency-closure":"missing","packed-install":"missing","typecheck":"missing","browser":"missing"},"evidence":[]}},{"id":"template:saas-landing","kind":"template","title":"saas-landing","description":"Northwind — Ship in one surface","category":"template","tags":["saas-landing","uibot-template"],"aliases":["saas-landing"],"capabilities":[],"dependencies":["component:box","component:button","component:card","component:grid","component:heading","component:key-value-grid","component:link","component:page-layout","component:paragraph"],"source":{"type":"template-contract","id":"saas-landing","license":"MIT"},"receipt":{"level":"declared","maturity":"experimental","checks":{"source":"declared","license":"declared","contract":"declared","states":"missing","accessibility":"missing","light-theme":"missing","dark-theme":"missing","responsive":"missing","dependency-closure":"missing","packed-install":"missing","typecheck":"missing","browser":"missing"},"evidence":[]}},{"id":"template:settings","kind":"template","title":"settings","description":"Settings","category":"template","tags":["settings","uibot-template"],"aliases":["settings"],"capabilities":[],"dependencies":["component:badge-group","component:box","component:card","component:form","component:form-checkbox","component:form-input","component:form-select","component:form-submit","component:form-text-area","component:grid","component:heading","component:menu-group","component:menu-link","component:page-layout","component:page-sider-menu","component:paragraph","component:tabs","component:toast","template:app-shell-sidebar"],"source":{"type":"template-contract","id":"settings","license":"MIT"},"receipt":{"level":"declared","maturity":"experimental","checks":{"source":"declared","license":"declared","contract":"declared","states":"missing","accessibility":"missing","light-theme":"missing","dark-theme":"missing","responsive":"missing","dependency-closure":"missing","packed-install":"missing","typecheck":"missing","browser":"missing"},"evidence":[]}},{"id":"template:shadcn-admin","kind":"template","title":"UiBot Admin","description":"Dashboard","category":"template","tags":["shadcn-admin","uibot-template"],"aliases":["shadcn-admin","UiBot Admin"],"capabilities":[],"dependencies":["component:avatar-list","component:bar-chart","component:box","component:button","component:card","component:chat-panel","component:data-table","component:divider","component:drawer","component:field","component:form","component:form-submit","component:heading","component:integration-grid","component:link","component:modal","component:page-layout","component:paragraph","component:stat-card","component:tabs","template:shadcn-admin-shell"],"source":{"type":"template-contract","id":"shadcn-admin","license":"MIT"},"receipt":{"level":"declared","maturity":"experimental","checks":{"source":"declared","license":"declared","contract":"declared","states":"missing","accessibility":"missing","light-theme":"missing","dark-theme":"missing","responsive":"missing","dependency-closure":"missing","packed-install":"missing","typecheck":"missing","browser":"missing"},"evidence":[]}},{"id":"template:shadcn-admin-shell","kind":"template","title":"UiBot Admin Shell","description":"Shadcn Admin Shell template","category":"feature","tags":["shadcn-admin-shell","uibot-template"],"aliases":["shadcn-admin-shell","UiBot Admin Shell"],"capabilities":[],"dependencies":["component:app-navigation","component:page-layout"],"source":{"type":"template-contract","id":"shadcn-admin-shell","license":"MIT"},"receipt":{"level":"declared","maturity":"experimental","checks":{"source":"declared","license":"declared","contract":"declared","states":"missing","accessibility":"missing","light-theme":"missing","dark-theme":"missing","responsive":"missing","dependency-closure":"missing","packed-install":"missing","typecheck":"missing","browser":"missing"},"evidence":[]}},{"id":"template:store","kind":"template","title":"store","description":"Verdant — Storefront","category":"template","tags":["store","uibot-template"],"aliases":["store"],"capabilities":[],"dependencies":["component:badge-group","component:box","component:breadcrumb","component:button","component:card","component:divider","component:form","component:form-checkbox","component:form-input","component:form-select","component:form-submit","component:grid","component:heading","component:key-value-grid","component:link","component:markdown","component:page-layout","component:paragraph","component:stat","component:table","component:toast","template:app-shell-sidebar"],"source":{"type":"template-contract","id":"store","license":"MIT"},"receipt":{"level":"declared","maturity":"experimental","checks":{"source":"declared","license":"declared","contract":"declared","states":"missing","accessibility":"missing","light-theme":"missing","dark-theme":"missing","responsive":"missing","dependency-closure":"missing","packed-install":"missing","typecheck":"missing","browser":"missing"},"evidence":[]}},{"id":"template:support-inbox","kind":"template","title":"support-inbox","description":"Support Inbox","category":"template","tags":["support-inbox","uibot-template"],"aliases":["support-inbox"],"capabilities":[],"dependencies":["component:badge-group","component:button","component:card","component:divider","component:form","component:form-submit","component:form-text-area","component:key-value-grid","component:markdown","component:page-layout","component:split-master-detail","component:stat-grid"],"source":{"type":"template-contract","id":"support-inbox","license":"MIT"},"receipt":{"level":"declared","maturity":"experimental","checks":{"source":"declared","license":"declared","contract":"declared","states":"missing","accessibility":"missing","light-theme":"missing","dark-theme":"missing","responsive":"missing","dependency-closure":"missing","packed-install":"missing","typecheck":"missing","browser":"missing"},"evidence":[]}},{"id":"template:team-directory","kind":"template","title":"team-directory","description":"Team Directory","category":"template","tags":["team-directory","uibot-template"],"aliases":["team-directory"],"capabilities":[],"dependencies":["component:badge-group","component:box","component:button","component:card","component:heading","component:page-layout","component:paragraph","component:searchable-table","component:stat-grid"],"source":{"type":"template-contract","id":"team-directory","license":"MIT"},"receipt":{"level":"declared","maturity":"experimental","checks":{"source":"declared","license":"declared","contract":"declared","states":"missing","accessibility":"missing","light-theme":"missing","dark-theme":"missing","responsive":"missing","dependency-closure":"missing","packed-install":"missing","typecheck":"missing","browser":"missing"},"evidence":[]}},{"id":"theme:amber-editorial","kind":"theme","title":"Amber Editorial","description":"Current UIBot brand — warm amber over a faintly warm neutral.","tags":["theme"],"aliases":["amber-editorial"],"capabilities":[],"dependencies":[],"source":{"type":"theme","id":"amber-editorial","version":"0.16.0","license":"MIT"},"receipt":{"level":"declared","maturity":"experimental","checks":{"source":"declared","license":"declared","contract":"declared","states":"missing","accessibility":"missing","light-theme":"missing","dark-theme":"missing","responsive":"missing","dependency-closure":"missing","packed-install":"missing","typecheck":"missing","browser":"missing"},"evidence":[]}},{"id":"theme:citrus","kind":"theme","title":"Citrus","description":"Bright lime-yellow energy over a clean neutral.","tags":["theme"],"aliases":["citrus"],"capabilities":[],"dependencies":[],"source":{"type":"theme","id":"citrus","version":"0.16.0","license":"MIT"},"receipt":{"level":"declared","maturity":"experimental","checks":{"source":"declared","license":"declared","contract":"declared","states":"missing","accessibility":"missing","light-theme":"missing","dark-theme":"missing","responsive":"missing","dependency-closure":"missing","packed-install":"missing","typecheck":"missing","browser":"missing"},"evidence":[]}},{"id":"theme:forest","kind":"theme","title":"Forest","description":"Grounded green with an organic, earthy neutral.","tags":["theme"],"aliases":["forest"],"capabilities":[],"dependencies":[],"source":{"type":"theme","id":"forest","version":"0.16.0","license":"MIT"},"receipt":{"level":"declared","maturity":"experimental","checks":{"source":"declared","license":"declared","contract":"declared","states":"missing","accessibility":"missing","light-theme":"missing","dark-theme":"missing","responsive":"missing","dependency-closure":"missing","packed-install":"missing","typecheck":"missing","browser":"missing"},"evidence":[]}},{"id":"theme:indigo","kind":"theme","title":"Indigo","description":"Vivid indigo, modern product feel.","tags":["theme"],"aliases":["indigo"],"capabilities":[],"dependencies":[],"source":{"type":"theme","id":"indigo","version":"0.16.0","license":"MIT"},"receipt":{"level":"declared","maturity":"experimental","checks":{"source":"declared","license":"declared","contract":"declared","states":"missing","accessibility":"missing","light-theme":"missing","dark-theme":"missing","responsive":"missing","dependency-closure":"missing","packed-install":"missing","typecheck":"missing","browser":"missing"},"evidence":[]}},{"id":"theme:midnight","kind":"theme","title":"Midnight","description":"Deep blue-violet accent tuned for dark-first surfaces.","tags":["theme"],"aliases":["midnight"],"capabilities":[],"dependencies":[],"source":{"type":"theme","id":"midnight","version":"0.16.0","license":"MIT"},"receipt":{"level":"declared","maturity":"experimental","checks":{"source":"declared","license":"declared","contract":"declared","states":"missing","accessibility":"missing","light-theme":"missing","dark-theme":"missing","responsive":"missing","dependency-closure":"missing","packed-install":"missing","typecheck":"missing","browser":"missing"},"evidence":[]}},{"id":"theme:mono","kind":"theme","title":"Mono","description":"Pure greyscale — zero-chroma accent for a stark, typographic look.","tags":["theme"],"aliases":["mono"],"capabilities":[],"dependencies":[],"source":{"type":"theme","id":"mono","version":"0.16.0","license":"MIT"},"receipt":{"level":"declared","maturity":"experimental","checks":{"source":"declared","license":"declared","contract":"declared","states":"missing","accessibility":"missing","light-theme":"missing","dark-theme":"missing","responsive":"missing","dependency-closure":"missing","packed-install":"missing","typecheck":"missing","browser":"missing"},"evidence":[]}},{"id":"theme:rose","kind":"theme","title":"Rose","description":"Warm rose accent, soft and editorial.","tags":["theme"],"aliases":["rose"],"capabilities":[],"dependencies":[],"source":{"type":"theme","id":"rose","version":"0.16.0","license":"MIT"},"receipt":{"level":"declared","maturity":"experimental","checks":{"source":"declared","license":"declared","contract":"declared","states":"missing","accessibility":"missing","light-theme":"missing","dark-theme":"missing","responsive":"missing","dependency-closure":"missing","packed-install":"missing","typecheck":"missing","browser":"missing"},"evidence":[]}},{"id":"theme:slate","kind":"theme","title":"Slate","description":"Cool, professional blue-grey. Calm and neutral.","tags":["theme"],"aliases":["slate"],"capabilities":[],"dependencies":[],"source":{"type":"theme","id":"slate","version":"0.16.0","license":"MIT"},"receipt":{"level":"declared","maturity":"experimental","checks":{"source":"declared","license":"declared","contract":"declared","states":"missing","accessibility":"missing","light-theme":"missing","dark-theme":"missing","responsive":"missing","dependency-closure":"missing","packed-install":"missing","typecheck":"missing","browser":"missing"},"evidence":[]}}],"aliases":{"accordion list":["component:accordion-list"],"admin dashboard":["template:admin-dashboard"],"admin dashboard example":["example:admin-dashboard-example"],"ai chat":["template:ai-chat"],"ai chat example":["example:ai-chat-example"],"alert":["component:alert"],"amber editorial":["theme:amber-editorial"],"analytics dashboard":["template:analytics-dashboard"],"analytics dashboard example":["example:analytics-dashboard-example"],"app navigation":["component:app-navigation"],"app shell floating":["template:app-shell-floating"],"app shell icon rail":["template:app-shell-icon-rail"],"app shell inset":["template:app-shell-inset"],"app shell settings":["template:app-shell-settings"],"app shell sidebar":["template:app-shell-sidebar"],"app shell workspace":["template:app-shell-workspace"],"auth":["template:auth"],"auth example":["example:auth-example"],"avatar list":["component:avatar-list"],"badge":["component:badge"],"badge group":["component:badge-group"],"banner":["component:banner"],"bar chart":["component:bar-chart"],"bento cell":["component:bento-cell"],"bento grid":["component:bento-grid"],"blog":["template:blog"],"blog example":["example:blog-example"],"box":["component:box"],"breadcrumb":["component:breadcrumb"],"browser frame":["component:browser-frame"],"button":["component:button"],"callout":["component:callout"],"card":["component:card"],"chat panel":["component:chat-panel"],"chat surface":["block:chat-surface"],"citrus":["theme:citrus"],"claude design":["design-guide:claude-design"],"claude design system":["design-guide:claude-design"],"code showcase":["component:code-showcase"],"collection cell editor":["block:collection-cell-editor"],"collection panel drawer":["block:collection-panel-drawer"],"collection record menu":["block:collection-record-menu"],"collection shared":["block:collection-shared"],"collection workspace":["block:collection-workspace"],"comparison table":["component:comparison-table"],"control console":["design-guide:control-console"],"creation html generation":["block:creation-html-generation"],"creation reference generation":["block:creation-reference-generation"],"creation revision export":["block:creation-revision-export"],"creation shared":["block:creation-shared"],"creation variant compare":["block:creation-variant-compare"],"creation workspace":["block:creation-workspace"],"crm":["template:crm"],"crm example":["example:crm-example"],"cta band":["component:cta-band"],"data table":["component:data-table"],"detail field":["component:detail-field"],"diagnostics list":["component:diagnostics-list"],"dialog":["component:dialog"],"divider":["component:divider"],"document editor":["block:document-editor"],"drawer":["component:drawer"],"ecommerce":["template:ecommerce"],"ecommerce example":["example:ecommerce-example"],"empty state":["component:empty-state"],"fact list":["component:fact-list"],"fact row":["component:fact-row"],"faq":["component:faq"],"feature card":["component:feature-card"],"feature grid":["component:feature-grid"],"feature split":["component:feature-split"],"field":["component:field"],"figma design":["design-guide:figma-design"],"figma design system":["design-guide:figma-design"],"footer":["component:footer"],"forest":["theme:forest"],"form":["component:form"],"form checkbox":["component:form-checkbox"],"form input":["component:form-input"],"form select":["component:form-select"],"form submit":["component:form-submit"],"form text area":["component:form-text-area"],"frontend design principles":["design-guide:frontend-principles"],"frontend principles":["design-guide:frontend-principles"],"gallery grid":["component:gallery-grid"],"grid":["component:grid"],"heading":["component:heading"],"heatmap":["component:heatmap"],"hero":["component:hero"],"html source editor":["block:html-source-editor"],"ibm carbon design system":["design-guide:ibm-design"],"ibm design":["design-guide:ibm-design"],"icon list":["component:icon-list"],"indigo":["theme:indigo"],"ink":["design-guide:ink"],"integration grid":["component:integration-grid"],"kanban board":["component:kanban-board"],"key value grid":["component:key-value-grid"],"line chart":["component:line-chart"],"linear design":["design-guide:linear-design"],"linear design system":["design-guide:linear-design"],"link":["component:link"],"list":["component:list"],"lms":["template:lms"],"lms example":["example:lms-example"],"logo cloud":["component:logo-cloud"],"markdown":["component:markdown"],"matrix":["component:matrix"],"menu group":["component:menu-group"],"menu link":["component:menu-link"],"metric card":["component:metric-card"],"midnight":["theme:midnight"],"modal":["component:modal"],"mono":["theme:mono"],"newsletter":["component:newsletter"],"notion design":["design-guide:notion-design"],"notion design system":["design-guide:notion-design"],"page layout":["component:page-layout"],"page sider menu":["component:page-sider-menu"],"panel header":["component:panel-header"],"paper":["design-guide:paper"],"paragraph":["component:paragraph"],"portfolio":["template:portfolio"],"portfolio example":["example:portfolio-example"],"preview device frame":["block:preview-device-frame"],"pricing":["template:pricing"],"pricing example":["example:pricing-example"],"pricing table":["component:pricing-table"],"raycast design":["design-guide:raycast-design"],"raycast design system":["design-guide:raycast-design"],"roadmap":["component:roadmap"],"rose":["theme:rose"],"saas landing":["template:saas-landing"],"saas landing example":["example:saas-landing-example"],"searchable table":["component:searchable-table"],"section header":["component:section-header"],"settings":["template:settings"],"settings example":["example:settings-example"],"shadcn admin":["template:shadcn-admin"],"shadcn admin example":["example:shadcn-admin-example"],"shadcn admin shell":["template:shadcn-admin-shell"],"skeleton":["component:skeleton"],"slate":["theme:slate"],"split master detail":["component:split-master-detail"],"stat":["component:stat"],"stat band":["component:stat-band"],"stat card":["component:stat-card"],"stat grid":["component:stat-grid"],"stat highlight":["component:stat-highlight"],"steps":["component:steps"],"store":["template:store"],"store example":["example:store-example"],"stripe design":["design-guide:stripe-design"],"stripe design system":["design-guide:stripe-design"],"supabase design":["design-guide:supabase-design"],"supabase design system":["design-guide:supabase-design"],"support inbox":["template:support-inbox"],"support inbox example":["example:support-inbox-example"],"switch":["component:switch"],"table":["component:table"],"tabs":["component:tabs"],"team directory":["template:team-directory"],"team directory example":["example:team-directory-example"],"team grid":["component:team-grid"],"testimonials":["component:testimonials"],"timeline list":["component:timeline-list"],"toast":["component:toast"],"trend chart":["component:trend-chart"],"ui bot admin":["template:shadcn-admin"],"ui bot admin example":["example:shadcn-admin-example"],"ui bot admin shell":["template:shadcn-admin-shell"],"uibot agents":["package:uibot-agents"],"uibot ai chat":["package:uibot-ai-chat"],"uibot application":["package:uibot-application"],"uibot artifact exporters":["package:uibot-artifact-exporters"],"uibot blocks base":["package:uibot-blocks-base"],"uibot blocks shadcn":["package:uibot-blocks-shadcn"],"uibot blocks studio":["package:uibot-blocks-studio"],"uibot cli":["package:uibot-cli"],"uibot compiler":["package:uibot-compiler"],"uibot connection http":["package:uibot-connection-http"],"uibot connection mock":["package:uibot-connection-mock"],"uibot connection nowapi":["package:uibot-connection-nowapi"],"uibot connection pg":["package:uibot-connection-pg"],"uibot context":["package:uibot-context"],"uibot context code":["package:uibot-context-code"],"uibot contracts":["package:uibot-contracts"],"uibot core":["package:uibot-core"],"uibot creation kit":["package:uibot-creation-kit"],"uibot design md":["package:uibot-design-md"],"uibot design md importer":["package:uibot-design-md-importer"],"uibot document editor":["package:uibot-document-editor"],"uibot engine":["package:uibot-engine"],"uibot evaluation":["package:uibot-evaluation"],"uibot execution docker":["package:uibot-execution-docker"],"uibot execution microsandbox":["package:uibot-execution-microsandbox"],"uibot hub runtime":["package:uibot-hub-runtime"],"uibot kernel":["package:uibot-kernel"],"uibot mcp server":["package:uibot-mcp-server"],"uibot model":["package:uibot-model"],"uibot model catalog":["package:uibot-model-catalog"],"uibot page annotation":["package:uibot-page-annotation"],"uibot plugin sdk":["package:uibot-plugin-sdk"],"uibot registry":["package:uibot-registry"],"uibot renderer react":["package:uibot-renderer-react"],"uibot runtime":["package:uibot-runtime"],"uibot skills":["package:uibot-skills"],"uibot testing":["package:uibot-testing"],"uibot vite":["package:uibot-vite"],"uibot vlm scorer":["package:uibot-vlm-scorer"],"uibot web preview":["package:uibot-web-preview"],"vercel design":["design-guide:vercel-design"],"vercel design system":["design-guide:vercel-design"]}},"showcases":{"block:creation-shared":{"resourceId":"block:creation-shared","title":{"zh":"creation-shared","en":"creation-shared"},"docs":{"zh":"Copy (zh/en), domain filters and run checks shared by the UIBot creation blocks.","en":"Copy (zh/en), domain filters and run checks shared by the UIBot creation blocks."},"internal":true,"distributions":[{"channel":"shadcn","name":"creation-shared","version":"0.16.0","availability":"source","dependencies":{"react":"*","@uibot/contracts":"^0.16.0","@uibot/creation-kit":"^0.16.0"},"registryDependencies":[]}],"examples":[{"id":"creation-shared-0","title":"components/uibot/creation/creation-shared.ts","mode":"source","language":"ts","code":"import type { CreationDomain, CreationProject } from \"@uibot/contracts\";\nimport { type CreationLocale, unresolvedCreationRuns } from \"@uibot/creation-kit\";\n\n/** What the generation blocks need from the creation configuration endpoint. */\nexport interface CreationGenerationCapabilities {\n domains: CreationDomain[];\n generation?: { ready: boolean };\n}\n\nconst MESSAGES = {\n zh: {\n htmlTitle: \"HTML 生成\",\n generationUnavailable: \"当前模型生成不可用,仍可手工编辑 HTML。\",\n saveBeforeGenerate: \"请先保存或放弃草稿,再生成。\",\n kindLabel: \"生成类型\",\n kindPlaceholder: \"请选择可用类型\",\n intentLabel: \"生成描述\",\n generateNew: \"生成新 HTML 工件\",\n rewriteCurrent: \"重写当前 HTML 修订\",\n reconcile: \"核对生成状态\",\n referenceTitle: \"从已保存修订生成演示文稿\",\n presentationUnavailable: \"当前演示文稿生成不可用。\",\n saveBeforeReference: \"请先保存或放弃草稿,再引用已保存修订。\",\n referenceArtifactLabel: \"参考作品\",\n referenceArtifactPlaceholder: \"选择已保存 HTML 工件\",\n referenceRevisionLabel: \"参考修订\",\n referenceRevisionPlaceholder: \"明确选择已保存修订\",\n revisionOption: (number: number) => `修订 ${number}`,\n presentationIntentLabel: \"演示文稿描述\",\n generatePresentation: \"生成演示文稿\",\n exportTitle: \"导出已保存修订\",\n exporting: \"正在导出…\",\n exportHtml: (number: number) => `导出 HTML 修订 ${number}`,\n exportPptx: (number: number) => `导出 PPTX 修订 ${number}`,\n saveBeforeExport: \"请先保存或放弃草稿,再导出已保存修订。\",\n exportBlocked: \"原模型请求待核对期间不可导出。\",\n refreshingStatus: \"正在读取生成状态…\",\n refreshStatus: \"刷新生成状态\",\n exportFailed: \"导出失败,请稍后重试。\",\n refreshFailed: \"无法读取最新生成状态。\",\n workspaceLabel: \"作品工作区\",\n workspaceEyebrow: \"手工 HTML 工作区\",\n workspaceLoading: \"正在读取作品…\",\n workspaceLoadFailed: \"无法读取作品能力,请稍后重试。\",\n newProject: \"新建作品\",\n conflict: \"版本已更新。你的草稿仍保留;重新读取后再编辑。\",\n reread: \"重新读取\",\n projectTitleLabel: \"作品名称\",\n createProject: \"创建作品\",\n cancel: \"取消\",\n selectProjectLabel: \"选择作品\",\n artifactTitleLabel: \"工件标题\",\n artifactKindLabel: \"工件类型\",\n unavailableKindOption: (kind: string) => `${kind}(已不可用)`,\n refreshingCapabilities: \"正在刷新能力…\",\n refreshCapabilities: \"刷新工件能力\",\n appendArtifact: \"添加 HTML 工件\",\n kindUnavailable: (kind: string) => `所选工件类型“${kind}”已不可用,请重新选择或刷新能力。`,\n noHtmlDomains: \"当前没有启用的 HTML 工件类型\",\n htmlContentLabel: \"HTML 内容\",\n saveRevision: \"保存版本\",\n savedRevisionsLabel: \"已保存版本\",\n historyRevision: (number: number) => `历史版本 ${number}`,\n variantsTitle: \"多方案对比\",\n variantsIntentLabel: \"多方案描述\",\n variantDirectionLabel: (index: number) => `方案 ${index} 的方向`,\n variantProjectDesign: \"按项目设计\",\n variantCustomDirection: \"自定义文字\",\n variantDirectionText: (index: number) => `方案 ${index} 的方向描述`,\n addVariant: \"增加一个方案\",\n removeVariant: (index: number) => `移除方案 ${index}`,\n generateVariants: (count: number) => `生成 ${count} 个方案`,\n variantColumn: (index: number) => `方案 ${index}`,\n variantPreview: (index: number) => `方案 ${index} 预览`,\n variantStatus: {\n sending: \"正在提交…\",\n unknown: \"提交结果未知\",\n queued: \"排队中…\",\n running: \"生成中…\",\n interrupted: \"已中断\",\n held: \"可采用\",\n completed: \"已采用\",\n failed: \"生成失败\",\n cancelled: \"已作废\",\n conflict: \"版本冲突\",\n } as Record<string, string>,\n adoptVariant: (index: number) => `采用方案 ${index}`,\n discardVariants: \"全部放弃\",\n retryVariants: \"重试提交\",\n variantsAdopted: \"已采用所选方案,作品已保存为新修订。\",\n variantsDiscarded: \"这一组方案已放弃,作品未改变。\",\n newVariantSet: \"开始新一组\",\n },\n en: {\n htmlTitle: \"HTML generation\",\n generationUnavailable: \"Model generation is unavailable; you can still edit HTML by hand.\",\n saveBeforeGenerate: \"Save or discard the draft before generating.\",\n kindLabel: \"Generation type\",\n kindPlaceholder: \"Choose an available type\",\n intentLabel: \"Generation brief\",\n generateNew: \"Generate new HTML artifact\",\n rewriteCurrent: \"Rewrite current HTML revision\",\n reconcile: \"Check generation status\",\n referenceTitle: \"Generate a presentation from a saved revision\",\n presentationUnavailable: \"Presentation generation is unavailable.\",\n saveBeforeReference: \"Save or discard the draft before referencing a saved revision.\",\n referenceArtifactLabel: \"Reference artifact\",\n referenceArtifactPlaceholder: \"Choose a saved HTML artifact\",\n referenceRevisionLabel: \"Reference revision\",\n referenceRevisionPlaceholder: \"Choose a saved revision\",\n revisionOption: (number: number) => `Revision ${number}`,\n presentationIntentLabel: \"Presentation brief\",\n generatePresentation: \"Generate presentation\",\n exportTitle: \"Export saved revision\",\n exporting: \"Exporting…\",\n exportHtml: (number: number) => `Export HTML revision ${number}`,\n exportPptx: (number: number) => `Export PPTX revision ${number}`,\n saveBeforeExport: \"Save or discard the draft before exporting a saved revision.\",\n exportBlocked: \"Export is unavailable while the original model request is being checked.\",\n refreshingStatus: \"Reading generation status…\",\n refreshStatus: \"Refresh generation status\",\n exportFailed: \"Export failed. Try again later.\",\n refreshFailed: \"Could not read the latest generation status.\",\n workspaceLabel: \"Creation workspace\",\n workspaceEyebrow: \"Manual HTML workspace\",\n workspaceLoading: \"Loading projects…\",\n workspaceLoadFailed: \"Could not read creation capabilities. Try again later.\",\n newProject: \"New project\",\n conflict: \"This revision changed. Your draft is kept; reread before editing again.\",\n reread: \"Reread\",\n projectTitleLabel: \"Project name\",\n createProject: \"Create project\",\n cancel: \"Cancel\",\n selectProjectLabel: \"Select project\",\n artifactTitleLabel: \"Artifact title\",\n artifactKindLabel: \"Artifact type\",\n unavailableKindOption: (kind: string) => `${kind} (unavailable)`,\n refreshingCapabilities: \"Refreshing capabilities…\",\n refreshCapabilities: \"Refresh artifact capabilities\",\n appendArtifact: \"Add HTML artifact\",\n kindUnavailable: (kind: string) =>\n `The selected artifact type \"${kind}\" is unavailable; choose another or refresh capabilities.`,\n noHtmlDomains: \"No HTML artifact types are enabled\",\n htmlContentLabel: \"HTML content\",\n saveRevision: \"Save revision\",\n savedRevisionsLabel: \"Saved revisions\",\n historyRevision: (number: number) => `Revision ${number}`,\n variantsTitle: \"Compare variants\",\n variantsIntentLabel: \"Variants description\",\n variantDirectionLabel: (index: number) => `Direction for variant ${index}`,\n variantProjectDesign: \"Project design\",\n variantCustomDirection: \"Custom text\",\n variantDirectionText: (index: number) => `Direction text for variant ${index}`,\n addVariant: \"Add a variant\",\n removeVariant: (index: number) => `Remove variant ${index}`,\n generateVariants: (count: number) => `Generate ${count} variants`,\n variantColumn: (index: number) => `Variant ${index}`,\n variantPreview: (index: number) => `Variant ${index} preview`,\n variantStatus: {\n sending: \"Sending…\",\n unknown: \"Send result unknown\",\n queued: \"Queued…\",\n running: \"Generating…\",\n interrupted: \"Interrupted\",\n held: \"Ready\",\n completed: \"Adopted\",\n failed: \"Failed\",\n cancelled: \"Discarded\",\n conflict: \"Revision conflict\",\n } as Record<string, string>,\n adoptVariant: (index: number) => `Adopt variant ${index}`,\n discardVariants: \"Discard all\",\n retryVariants: \"Retry sending\",\n variantsAdopted: \"The chosen variant is saved as the artifact's new revision.\",\n variantsDiscarded: \"This variant set was discarded; the artifact is unchanged.\",\n newVariantSet: \"Start a new set\",\n },\n} satisfies Record<CreationLocale, unknown>;\n\nexport type CreationBlockMessages = (typeof MESSAGES)[\"en\"];\n\nexport function creationBlockMessages(locale: CreationLocale = \"en\"): CreationBlockMessages {\n return MESSAGES[locale];\n}\n\n/** A domain that can produce HTML (directly or through HTML generation instructions). */\nexport function generatesHtml(domain: CreationDomain): boolean {\n return (\n domain.enabled &&\n domain.formats.includes(\"html\") &&\n (domain.outputFormat === \"html\" || !!domain.generationInstructions?.html)\n );\n}\n\n/** HTML-capable domains, first one per artifact kind. */\nexport function htmlGenerationDomains(domains: CreationDomain[]): CreationDomain[] {\n return domains.filter(\n (domain, index, all) =>\n generatesHtml(domain) &&\n all.findIndex((candidate) => candidate.artifactKind === domain.artifactKind) === index,\n );\n}\n\n/** True while any run may still produce a result; a malformed `runs` field fails closed. */\nexport function hasUnresolvedRun(project: CreationProject): boolean {\n const runs: unknown = project.runs;\n if (!Array.isArray(runs)) return true;\n // Checked here too: `@uibot/creation-kit` before 0.4 throws on non-object entries.\n if (runs.some((run) => !run || typeof run !== \"object\" || Array.isArray(run))) return true;\n return unresolvedCreationRuns(runs).length > 0;\n}\n\n/** Artifact kinds whose saved HTML revisions can be exported or referenced. */\nexport const HTML_DOCUMENT_KINDS = [\"web\", \"presentation\"];\n\n/** Shared field styling for the native controls the blocks use. */\nexport const FIELD_CLASS =\n \"flex w-full rounded-md border border-input bg-transparent px-3 py-2 text-sm shadow-xs outline-none focus-visible:ring-2 focus-visible:ring-ring disabled:cursor-not-allowed disabled:opacity-50\";\n","dependencies":["react","@uibot/contracts@^0.16.0","@uibot/creation-kit@^0.16.0"]}]},"block:creation-html-generation":{"resourceId":"block:creation-html-generation","title":{"zh":"creation-html-generation","en":"creation-html-generation"},"docs":{"zh":"Generate a new HTML artifact or rewrite the current revision, with at-most-once dispatch and reconcile from @uibot/creation-kit.\n\n## TypeScript props, callbacks and slots\n\nSource: packages/creation-kit/registry/creation/creation-html-generation.tsx\n\n```tsx\nexport interface CreationHtmlGenerationProps {\n client: Pick<CreationClient, \"getProject\" | \"startRun\">;\n project: CreationProject;\n capabilities: CreationGenerationCapabilities;\n /** The selected artifact; enables rewriting its current HTML revision. */\n artifact?: CreationArtifact;\n /** Unsaved draft edits: generation waits until they are saved or discarded. */\n dirty: boolean;\n busy: boolean;\n /** Reservation key; include the signed-in identity and the project id. */\n storageKey: string;\n /**\n * Changes when the session, token or tenant changes; responses that arrive after a change are\n * dropped. Hosts with sign-in must pass it.\n */\n authority?: () => string;\n locale?: CreationLocale;\n onPending?: (blocked: boolean) => void;\n onProject: (project: CreationProject, artifactId?: string) => void;\n}\n```","en":"Generate a new HTML artifact or rewrite the current revision, with at-most-once dispatch and reconcile from @uibot/creation-kit.\n\n## TypeScript props, callbacks and slots\n\nSource: packages/creation-kit/registry/creation/creation-html-generation.tsx\n\n```tsx\nexport interface CreationHtmlGenerationProps {\n client: Pick<CreationClient, \"getProject\" | \"startRun\">;\n project: CreationProject;\n capabilities: CreationGenerationCapabilities;\n /** The selected artifact; enables rewriting its current HTML revision. */\n artifact?: CreationArtifact;\n /** Unsaved draft edits: generation waits until they are saved or discarded. */\n dirty: boolean;\n busy: boolean;\n /** Reservation key; include the signed-in identity and the project id. */\n storageKey: string;\n /**\n * Changes when the session, token or tenant changes; responses that arrive after a change are\n * dropped. Hosts with sign-in must pass it.\n */\n authority?: () => string;\n locale?: CreationLocale;\n onPending?: (blocked: boolean) => void;\n onProject: (project: CreationProject, artifactId?: string) => void;\n}\n```"},"internal":false,"distributions":[{"channel":"shadcn","name":"creation-html-generation","version":"0.16.0","availability":"source","dependencies":{"react":"*","@uibot/contracts":"^0.16.0","@uibot/creation-kit":"^0.16.0"},"registryDependencies":["button","label","textarea","@uibot/creation-shared"]}],"examples":[{"id":"creation-html-generation-demo","title":"Interactive memory demonstration","mode":"tsx","language":"tsx","code":"/* @uibot-story\n{\n \"initial\": {\"dirty\": false, \"busy\": false, \"locale\": \"zh\"},\n \"controls\": {\"dirty\": {\"type\": \"boolean\"}, \"busy\": {\"type\": \"boolean\"}, \"locale\": {\"enum\": [\"zh\", \"en\"]}},\n \"variants\": [{\"name\": \"Unsaved changes\", \"args\": {\"dirty\": true}}, {\"name\": \"Busy\", \"args\": {\"busy\": true}}]\n}\n*/\nimport { useState } from \"react\";\nimport type { CreationProject, CreationDomain } from \"@uibot/contracts\";\nimport type { CreationWorkspaceClient, CreationClient } from \"@uibot/creation-kit\";\nconst domain: CreationDomain = {\n id: \"web\",\n version: \"1\",\n title: \"网页\",\n artifactKind: \"web\",\n formats: [\"html\"],\n outputFormat: \"html\",\n exports: [],\n agentId: \"\",\n skillId: \"\",\n enabled: true,\n};\nconst capabilities = { domains: [domain], generation: { ready: false } };\nconst initial: CreationProject = {\n contract: \"uibot.creation.project.v1\",\n id: \"demo\",\n title: \"本地创作示例\",\n version: 1,\n createdAt: \"2026-10-25T00:00:00Z\",\n updatedAt: \"2026-10-25T00:00:00Z\",\n sources: [],\n runs: [],\n messages: [],\n artifacts: [\n {\n id: \"page\",\n title: \"欢迎页面\",\n kind: \"web\",\n domainPluginId: \"web\",\n domainVersion: \"1\",\n currentRevisionId: \"r1\",\n revisions: [\n {\n id: \"r1\",\n number: 1,\n createdAt: \"2026-10-25T00:00:00Z\",\n source: {\n format: \"html\",\n schemaVersion: \"1\",\n content: \"<main><h1>Hello UIBot</h1></main>\",\n },\n references: [],\n sourceIds: [],\n },\n ],\n },\n ],\n};\nfunction memoryClient(): CreationWorkspaceClient & Pick<CreationClient, \"startRun\"> {\n const projects = new Map([[initial.id, structuredClone(initial)]]);\n const get = (id: string) => {\n const p = projects.get(id);\n if (!p) throw Error(\"project-not-found\");\n return p;\n };\n return {\n getConfiguration: async () => capabilities,\n listProjects: async () => ({\n projects: [...projects.values()].map((p) => ({\n id: p.id,\n title: p.title,\n updatedAt: p.updatedAt,\n artifactCount: p.artifacts.length,\n })),\n }),\n getProject: async (id) => structuredClone(get(id)),\n createProject: async (input) => {\n const p = {\n ...structuredClone(initial),\n id: input.requestId,\n title: input.title,\n artifacts: [],\n };\n projects.set(p.id, p);\n return structuredClone(p);\n },\n appendArtifact: async (id, input) => {\n const p = get(id);\n const revision = {\n id: crypto.randomUUID(),\n number: 1,\n createdAt: new Date().toISOString(),\n source: input.source,\n references: [],\n sourceIds: [],\n };\n p.artifacts.push({\n id: crypto.randomUUID(),\n title: input.title,\n kind: input.kind,\n domainPluginId: domain.id,\n domainVersion: domain.version,\n currentRevisionId: revision.id,\n revisions: [revision],\n });\n p.version++;\n return structuredClone(p);\n },\n saveRevision: async (id, aid, input) => {\n const p = get(id);\n const a = p.artifacts.find((a) => a.id === aid);\n if (!a || a.currentRevisionId !== input.expectedRevisionId) throw Error(\"revision-conflict\");\n const r = {\n ...required(a.revisions.at(-1)),\n id: crypto.randomUUID(),\n number: a.revisions.length + 1,\n source: input.source,\n };\n a.revisions.push(r);\n a.currentRevisionId = r.id;\n p.version++;\n return structuredClone(p);\n },\n startRun: async () => {\n throw Error(\"Model generation is unavailable in this memory demonstration\");\n },\n };\n}\nimport { CreationHtmlGeneration } from \"@uibot/blocks/creation-html-generation\";\nexport default function Example(\n args: { dirty: boolean; busy: boolean; locale: \"zh\" | \"en\" } = {\n dirty: false,\n busy: false,\n locale: \"zh\",\n },\n) {\n const [client] = useState(memoryClient);\n const [project, setProject] = useState(initial);\n return (\n <main className=\"mx-auto max-w-xl space-y-4 p-6\">\n <p className=\"text-sm text-muted-foreground\">真实公共组件 · 本地演示宿主 · 未连接模型</p>\n <CreationHtmlGeneration\n client={client}\n project={project}\n capabilities={capabilities}\n dirty={args.dirty}\n busy={args.busy}\n storageKey=\"demo-run\"\n locale={args.locale}\n onProject={setProject}\n />\n </main>\n );\n}\n\nfunction required<T>(value: T | null | undefined): T {\n if (value === null || value === undefined) throw Error(\"Missing demo value\");\n return value;\n}\n","dependencies":["react","@uibot/contracts@^0.16.0","@uibot/creation-kit@^0.16.0","button","label","textarea","@uibot/creation-shared"]},{"id":"creation-html-generation-0","title":"components/uibot/creation/creation-html-generation.tsx","mode":"source","language":"tsx","code":"import { Button } from \"@/components/ui/button\";\nimport { Label } from \"@/components/ui/label\";\nimport { Textarea } from \"@/components/ui/textarea\";\nimport type { CreationArtifact, CreationProject } from \"@uibot/contracts\";\nimport { type CreationClient, type CreationLocale, useCreationRun } from \"@uibot/creation-kit\";\nimport { useId, useState } from \"react\";\n\nimport {\n type CreationGenerationCapabilities,\n creationBlockMessages,\n FIELD_CLASS,\n htmlGenerationDomains,\n} from \"./creation-shared\";\n\nexport interface CreationHtmlGenerationProps {\n client: Pick<CreationClient, \"getProject\" | \"startRun\">;\n project: CreationProject;\n capabilities: CreationGenerationCapabilities;\n /** The selected artifact; enables rewriting its current HTML revision. */\n artifact?: CreationArtifact;\n /** Unsaved draft edits: generation waits until they are saved or discarded. */\n dirty: boolean;\n busy: boolean;\n /** Reservation key; include the signed-in identity and the project id. */\n storageKey: string;\n /**\n * Changes when the session, token or tenant changes; responses that arrive after a change are\n * dropped. Hosts with sign-in must pass it.\n */\n authority?: () => string;\n locale?: CreationLocale;\n onPending?: (blocked: boolean) => void;\n onProject: (project: CreationProject, artifactId?: string) => void;\n}\n\n/** Generate a new HTML artifact or rewrite the current HTML revision. */\nexport function CreationHtmlGeneration({\n client,\n project,\n capabilities,\n artifact,\n dirty,\n busy,\n storageKey,\n authority,\n locale,\n onPending,\n onProject,\n}: CreationHtmlGenerationProps) {\n const t = creationBlockMessages(locale);\n const id = useId();\n const domains = htmlGenerationDomains(capabilities.domains);\n const [kind, setKind] = useState(domains[0]?.artifactKind ?? \"\");\n const [intent, setIntent] = useState(\"\");\n const run = useCreationRun({\n client,\n project,\n storageKey,\n onProject,\n ...(onPending ? { onPending } : {}),\n ...(authority ? { authority } : {}),\n ...(locale ? { locale } : {}),\n });\n const selectedDomain = domains.find((domain) => domain.artifactKind === kind);\n const tip = artifact?.revisions.find((revision) => revision.id === artifact.currentRevisionId);\n const rewriteDomain = domains.find((domain) => domain.artifactKind === artifact?.kind);\n const ready = !!capabilities.generation?.ready;\n const disabled = busy || dirty || run.pending || !ready || !intent.trim();\n\n function generate(rewrite: boolean) {\n const domain = rewrite ? rewriteDomain : selectedDomain;\n if (disabled || !domain || (rewrite && tip?.source.format !== \"html\")) return;\n void run.start({\n kind: domain.artifactKind,\n intent: intent.trim(),\n outputFormat: \"html\",\n sourceIds: (project.sources ?? []).map((source) => source.id),\n ...(rewrite && artifact && tip\n ? { artifactId: artifact.id, expectedRevisionId: tip.id }\n : {}),\n });\n }\n\n return (\n <section aria-label={t.htmlTitle} className=\"flex flex-col gap-3 rounded-lg border p-4\">\n <h2 className=\"text-sm font-medium\">{t.htmlTitle}</h2>\n {!ready && <p className=\"text-sm text-muted-foreground\">{t.generationUnavailable}</p>}\n {dirty && <p className=\"text-sm text-muted-foreground\">{t.saveBeforeGenerate}</p>}\n <div className=\"flex flex-col gap-1.5\">\n <Label htmlFor={`${id}-kind`}>{t.kindLabel}</Label>\n <select\n id={`${id}-kind`}\n aria-label={t.kindLabel}\n className={FIELD_CLASS}\n value={kind}\n onChange={(event) => setKind(event.target.value)}\n disabled={busy || run.pending}\n >\n {!selectedDomain && <option value=\"\">{t.kindPlaceholder}</option>}\n {domains.map((domain) => (\n <option key={domain.artifactKind} value={domain.artifactKind}>\n {domain.title}\n </option>\n ))}\n </select>\n </div>\n <div className=\"flex flex-col gap-1.5\">\n <Label htmlFor={`${id}-intent`}>{t.intentLabel}</Label>\n <Textarea\n id={`${id}-intent`}\n aria-label={t.intentLabel}\n value={intent}\n onChange={(event) => setIntent(event.target.value)}\n disabled={busy || run.pending}\n />\n </div>\n <div className=\"flex flex-wrap gap-2\">\n <Button\n type=\"button\"\n disabled={disabled || !selectedDomain}\n onClick={() => generate(false)}\n >\n {t.generateNew}\n </Button>\n <Button\n type=\"button\"\n variant=\"outline\"\n disabled={disabled || !rewriteDomain || tip?.source.format !== \"html\"}\n onClick={() => generate(true)}\n >\n {t.rewriteCurrent}\n </Button>\n </div>\n {run.message && (\n <p role=\"status\" className=\"text-sm\">\n {run.message}\n </p>\n )}\n {run.canReconcile && (\n <Button\n type=\"button\"\n variant=\"outline\"\n disabled={run.sending || run.checking}\n onClick={() => void run.reconcile()}\n >\n {t.reconcile}\n </Button>\n )}\n </section>\n );\n}\n","dependencies":["react","@uibot/contracts@^0.16.0","@uibot/creation-kit@^0.16.0"]}]},"block:creation-reference-generation":{"resourceId":"block:creation-reference-generation","title":{"zh":"creation-reference-generation","en":"creation-reference-generation"},"docs":{"zh":"Generate a presentation from an explicitly chosen saved HTML revision.\n\n## TypeScript props, callbacks and slots\n\nSource: packages/creation-kit/registry/creation/creation-reference-generation.tsx\n\n```tsx\nexport interface CreationReferenceGenerationProps {\n client: Pick<CreationClient, \"getProject\" | \"startRun\">;\n project: CreationProject;\n capabilities: CreationGenerationCapabilities;\n dirty: boolean;\n busy: boolean;\n /** Reservation key; share it with the other generation blocks of the project. */\n storageKey: string;\n /**\n * Changes when the session, token or tenant changes; responses that arrive after a change are\n * dropped. Hosts with sign-in must pass it.\n */\n authority?: () => string;\n locale?: CreationLocale;\n onPending?: (blocked: boolean) => void;\n onProject: (project: CreationProject, artifactId?: string) => void;\n}\n```","en":"Generate a presentation from an explicitly chosen saved HTML revision.\n\n## TypeScript props, callbacks and slots\n\nSource: packages/creation-kit/registry/creation/creation-reference-generation.tsx\n\n```tsx\nexport interface CreationReferenceGenerationProps {\n client: Pick<CreationClient, \"getProject\" | \"startRun\">;\n project: CreationProject;\n capabilities: CreationGenerationCapabilities;\n dirty: boolean;\n busy: boolean;\n /** Reservation key; share it with the other generation blocks of the project. */\n storageKey: string;\n /**\n * Changes when the session, token or tenant changes; responses that arrive after a change are\n * dropped. Hosts with sign-in must pass it.\n */\n authority?: () => string;\n locale?: CreationLocale;\n onPending?: (blocked: boolean) => void;\n onProject: (project: CreationProject, artifactId?: string) => void;\n}\n```"},"internal":false,"distributions":[{"channel":"shadcn","name":"creation-reference-generation","version":"0.16.0","availability":"source","dependencies":{"react":"*","@uibot/contracts":"^0.16.0","@uibot/creation-kit":"^0.16.0"},"registryDependencies":["button","label","textarea","@uibot/creation-shared"]}],"examples":[{"id":"creation-reference-generation-demo","title":"Interactive memory demonstration","mode":"tsx","language":"tsx","code":"/* @uibot-story\n{\n \"initial\": {\"dirty\": false, \"busy\": false, \"locale\": \"zh\"},\n \"controls\": {\"dirty\": {\"type\": \"boolean\"}, \"busy\": {\"type\": \"boolean\"}, \"locale\": {\"enum\": [\"zh\", \"en\"]}},\n \"variants\": [{\"name\": \"Unsaved changes\", \"args\": {\"dirty\": true}}, {\"name\": \"Busy\", \"args\": {\"busy\": true}}]\n}\n*/\nimport { useState } from \"react\";\nimport type { CreationProject, CreationDomain } from \"@uibot/contracts\";\nimport type { CreationWorkspaceClient, CreationClient } from \"@uibot/creation-kit\";\nconst domain: CreationDomain = {\n id: \"web\",\n version: \"1\",\n title: \"网页\",\n artifactKind: \"web\",\n formats: [\"html\"],\n outputFormat: \"html\",\n exports: [],\n agentId: \"\",\n skillId: \"\",\n enabled: true,\n};\nconst capabilities = { domains: [domain], generation: { ready: false } };\nconst initial: CreationProject = {\n contract: \"uibot.creation.project.v1\",\n id: \"demo\",\n title: \"本地创作示例\",\n version: 1,\n createdAt: \"2026-10-25T00:00:00Z\",\n updatedAt: \"2026-10-25T00:00:00Z\",\n sources: [],\n runs: [],\n messages: [],\n artifacts: [\n {\n id: \"page\",\n title: \"欢迎页面\",\n kind: \"web\",\n domainPluginId: \"web\",\n domainVersion: \"1\",\n currentRevisionId: \"r1\",\n revisions: [\n {\n id: \"r1\",\n number: 1,\n createdAt: \"2026-10-25T00:00:00Z\",\n source: {\n format: \"html\",\n schemaVersion: \"1\",\n content: \"<main><h1>Hello UIBot</h1></main>\",\n },\n references: [],\n sourceIds: [],\n },\n ],\n },\n ],\n};\nfunction memoryClient(): CreationWorkspaceClient & Pick<CreationClient, \"startRun\"> {\n const projects = new Map([[initial.id, structuredClone(initial)]]);\n const get = (id: string) => {\n const p = projects.get(id);\n if (!p) throw Error(\"project-not-found\");\n return p;\n };\n return {\n getConfiguration: async () => capabilities,\n listProjects: async () => ({\n projects: [...projects.values()].map((p) => ({\n id: p.id,\n title: p.title,\n updatedAt: p.updatedAt,\n artifactCount: p.artifacts.length,\n })),\n }),\n getProject: async (id) => structuredClone(get(id)),\n createProject: async (input) => {\n const p = {\n ...structuredClone(initial),\n id: input.requestId,\n title: input.title,\n artifacts: [],\n };\n projects.set(p.id, p);\n return structuredClone(p);\n },\n appendArtifact: async (id, input) => {\n const p = get(id);\n const revision = {\n id: crypto.randomUUID(),\n number: 1,\n createdAt: new Date().toISOString(),\n source: input.source,\n references: [],\n sourceIds: [],\n };\n p.artifacts.push({\n id: crypto.randomUUID(),\n title: input.title,\n kind: input.kind,\n domainPluginId: domain.id,\n domainVersion: domain.version,\n currentRevisionId: revision.id,\n revisions: [revision],\n });\n p.version++;\n return structuredClone(p);\n },\n saveRevision: async (id, aid, input) => {\n const p = get(id);\n const a = p.artifacts.find((a) => a.id === aid);\n if (!a || a.currentRevisionId !== input.expectedRevisionId) throw Error(\"revision-conflict\");\n const r = {\n ...required(a.revisions.at(-1)),\n id: crypto.randomUUID(),\n number: a.revisions.length + 1,\n source: input.source,\n };\n a.revisions.push(r);\n a.currentRevisionId = r.id;\n p.version++;\n return structuredClone(p);\n },\n startRun: async () => {\n throw Error(\"Model generation is unavailable in this memory demonstration\");\n },\n };\n}\nimport { CreationReferenceGeneration } from \"@uibot/blocks/creation-reference-generation\";\nexport default function Example(\n args: { dirty: boolean; busy: boolean; locale: \"zh\" | \"en\" } = {\n dirty: false,\n busy: false,\n locale: \"zh\",\n },\n) {\n const [client] = useState(memoryClient);\n const [project, setProject] = useState(initial);\n return (\n <main className=\"mx-auto max-w-xl space-y-4 p-6\">\n <p className=\"text-sm text-muted-foreground\">保存的 HTML 修订可选择;此演示没有模型配置。</p>\n <CreationReferenceGeneration\n client={client}\n project={project}\n capabilities={capabilities}\n dirty={args.dirty}\n busy={args.busy}\n storageKey=\"demo-run\"\n locale={args.locale}\n onProject={setProject}\n />\n </main>\n );\n}\n\nfunction required<T>(value: T | null | undefined): T {\n if (value === null || value === undefined) throw Error(\"Missing demo value\");\n return value;\n}\n","dependencies":["react","@uibot/contracts@^0.16.0","@uibot/creation-kit@^0.16.0","button","label","textarea","@uibot/creation-shared"]},{"id":"creation-reference-generation-0","title":"components/uibot/creation/creation-reference-generation.tsx","mode":"source","language":"tsx","code":"import { Button } from \"@/components/ui/button\";\nimport { Label } from \"@/components/ui/label\";\nimport { Textarea } from \"@/components/ui/textarea\";\nimport type { CreationProject } from \"@uibot/contracts\";\nimport { type CreationClient, type CreationLocale, useCreationRun } from \"@uibot/creation-kit\";\nimport { useId, useState } from \"react\";\n\nimport {\n type CreationGenerationCapabilities,\n creationBlockMessages,\n FIELD_CLASS,\n generatesHtml,\n HTML_DOCUMENT_KINDS,\n} from \"./creation-shared\";\n\nexport interface CreationReferenceGenerationProps {\n client: Pick<CreationClient, \"getProject\" | \"startRun\">;\n project: CreationProject;\n capabilities: CreationGenerationCapabilities;\n dirty: boolean;\n busy: boolean;\n /** Reservation key; share it with the other generation blocks of the project. */\n storageKey: string;\n /**\n * Changes when the session, token or tenant changes; responses that arrive after a change are\n * dropped. Hosts with sign-in must pass it.\n */\n authority?: () => string;\n locale?: CreationLocale;\n onPending?: (blocked: boolean) => void;\n onProject: (project: CreationProject, artifactId?: string) => void;\n}\n\n/**\n * Generate a presentation from a saved HTML revision. The reference always names saved content;\n * draft HTML is never sent in its place.\n */\nexport function CreationReferenceGeneration({\n client,\n project,\n capabilities,\n dirty,\n busy,\n storageKey,\n authority,\n locale,\n onPending,\n onProject,\n}: CreationReferenceGenerationProps) {\n const t = creationBlockMessages(locale);\n const id = useId();\n const [artifactId, setArtifactId] = useState(\"\");\n const [revisionId, setRevisionId] = useState(\"\");\n const [intent, setIntent] = useState(\"\");\n const run = useCreationRun({\n client,\n project,\n storageKey,\n onProject,\n ...(onPending ? { onPending } : {}),\n ...(authority ? { authority } : {}),\n ...(locale ? { locale } : {}),\n });\n const references = project.artifacts.filter(\n (artifact) =>\n HTML_DOCUMENT_KINDS.includes(artifact.kind) &&\n artifact.revisions.some((revision) => revision.source.format === \"html\"),\n );\n const artifact = references.find((candidate) => candidate.id === artifactId);\n const revision = artifact?.revisions.find(\n (candidate) => candidate.id === revisionId && candidate.source.format === \"html\",\n );\n const domain = capabilities.domains.find(\n (candidate) => candidate.artifactKind === \"presentation\" && generatesHtml(candidate),\n );\n const ready = !!capabilities.generation?.ready;\n const disabled = busy || dirty || run.pending || !ready || !domain || !revision || !intent.trim();\n\n function generate() {\n if (disabled || !artifact || !revision || !domain) return;\n void run.start({\n kind: domain.artifactKind,\n intent: intent.trim(),\n outputFormat: \"html\",\n sourceIds: (project.sources ?? []).map((source) => source.id),\n reference: { artifactId: artifact.id, revisionId: revision.id },\n });\n }\n\n return (\n <section aria-label={t.referenceTitle} className=\"flex flex-col gap-3 rounded-lg border p-4\">\n <h2 className=\"text-sm font-medium\">{t.referenceTitle}</h2>\n {(!ready || !domain) && (\n <p className=\"text-sm text-muted-foreground\">{t.presentationUnavailable}</p>\n )}\n {dirty && <p className=\"text-sm text-muted-foreground\">{t.saveBeforeReference}</p>}\n <div className=\"flex flex-col gap-1.5\">\n <Label htmlFor={`${id}-artifact`}>{t.referenceArtifactLabel}</Label>\n <select\n id={`${id}-artifact`}\n aria-label={t.referenceArtifactLabel}\n className={FIELD_CLASS}\n value={artifactId}\n onChange={(event) => {\n setArtifactId(event.target.value);\n setRevisionId(\"\");\n }}\n disabled={busy || run.pending}\n >\n <option value=\"\">{t.referenceArtifactPlaceholder}</option>\n {references.map((item) => (\n <option key={item.id} value={item.id}>\n {item.title}\n </option>\n ))}\n </select>\n </div>\n <div className=\"flex flex-col gap-1.5\">\n <Label htmlFor={`${id}-revision`}>{t.referenceRevisionLabel}</Label>\n <select\n id={`${id}-revision`}\n aria-label={t.referenceRevisionLabel}\n className={FIELD_CLASS}\n value={revisionId}\n onChange={(event) => setRevisionId(event.target.value)}\n disabled={busy || run.pending || !artifact}\n >\n <option value=\"\">{t.referenceRevisionPlaceholder}</option>\n {artifact?.revisions\n .filter((item) => item.source.format === \"html\")\n .map((item) => (\n <option key={item.id} value={item.id}>\n {t.revisionOption(item.number)}\n </option>\n ))}\n </select>\n </div>\n <div className=\"flex flex-col gap-1.5\">\n <Label htmlFor={`${id}-intent`}>{t.presentationIntentLabel}</Label>\n <Textarea\n id={`${id}-intent`}\n aria-label={t.presentationIntentLabel}\n value={intent}\n onChange={(event) => setIntent(event.target.value)}\n disabled={busy || run.pending}\n />\n </div>\n <Button type=\"button\" disabled={disabled} onClick={generate}>\n {t.generatePresentation}\n </Button>\n {run.message && (\n <p role=\"status\" className=\"text-sm\">\n {run.message}\n </p>\n )}\n {run.canReconcile && (\n <Button\n type=\"button\"\n variant=\"outline\"\n disabled={run.sending || run.checking}\n onClick={() => void run.reconcile()}\n >\n {t.reconcile}\n </Button>\n )}\n </section>\n );\n}\n","dependencies":["react","@uibot/contracts@^0.16.0","@uibot/creation-kit@^0.16.0"]}]},"block:creation-revision-export":{"resourceId":"block:creation-revision-export","title":{"zh":"creation-revision-export","en":"creation-revision-export"},"docs":{"zh":"Download a saved HTML revision (PPTX for presentations) once no model request is open; the host supplies the export transport.\n\n## TypeScript props, callbacks and slots\n\nSource: packages/creation-kit/registry/creation/creation-revision-export.tsx\n\n```tsx\nexport interface CreationRevisionExportProps {\n client: Pick<CreationClient, \"getProject\">;\n /** Host transport that renders a saved revision server-side. */\n exportRevision: (input: CreationRevisionExportInput) => Promise<Blob>;\n project: CreationProject;\n artifact: CreationArtifact;\n revision: CreationRevision;\n /** The generation reservation key; export waits while a reservation exists. */\n storageKey?: string;\n /** Changes when the signed-in session changes; stale results are dropped. */\n sessionIdentity: string;\n isSessionCurrent?: () => boolean;\n onProject?: (project: CreationProject) => void;\n dirty: boolean;\n locale?: CreationLocale;\n}\n```","en":"Download a saved HTML revision (PPTX for presentations) once no model request is open; the host supplies the export transport.\n\n## TypeScript props, callbacks and slots\n\nSource: packages/creation-kit/registry/creation/creation-revision-export.tsx\n\n```tsx\nexport interface CreationRevisionExportProps {\n client: Pick<CreationClient, \"getProject\">;\n /** Host transport that renders a saved revision server-side. */\n exportRevision: (input: CreationRevisionExportInput) => Promise<Blob>;\n project: CreationProject;\n artifact: CreationArtifact;\n revision: CreationRevision;\n /** The generation reservation key; export waits while a reservation exists. */\n storageKey?: string;\n /** Changes when the signed-in session changes; stale results are dropped. */\n sessionIdentity: string;\n isSessionCurrent?: () => boolean;\n onProject?: (project: CreationProject) => void;\n dirty: boolean;\n locale?: CreationLocale;\n}\n```"},"internal":false,"distributions":[{"channel":"shadcn","name":"creation-revision-export","version":"0.16.0","availability":"source","dependencies":{"react":"*","@uibot/contracts":"^0.16.0","@uibot/creation-kit":"^0.16.0"},"registryDependencies":["button","@uibot/creation-shared"]}],"examples":[{"id":"creation-revision-export-demo","title":"Interactive memory demonstration","mode":"tsx","language":"tsx","code":"/* @uibot-story\n{\n \"initial\": {\"dirty\": false, \"locale\": \"zh\"},\n \"controls\": {\"dirty\": {\"type\": \"boolean\"}, \"locale\": {\"enum\": [\"zh\", \"en\"]}},\n \"variants\": [{\"name\": \"Unsaved changes\", \"args\": {\"dirty\": true}}, {\"name\": \"English\", \"args\": {\"locale\": \"en\"}}]\n}\n*/\nimport { useState } from \"react\";\nimport type { CreationProject, CreationDomain } from \"@uibot/contracts\";\nimport type { CreationWorkspaceClient, CreationClient } from \"@uibot/creation-kit\";\nconst domain: CreationDomain = {\n id: \"web\",\n version: \"1\",\n title: \"网页\",\n artifactKind: \"web\",\n formats: [\"html\"],\n outputFormat: \"html\",\n exports: [],\n agentId: \"\",\n skillId: \"\",\n enabled: true,\n};\nconst capabilities = { domains: [domain], generation: { ready: false } };\nconst initial: CreationProject = {\n contract: \"uibot.creation.project.v1\",\n id: \"demo\",\n title: \"本地创作示例\",\n version: 1,\n createdAt: \"2026-10-25T00:00:00Z\",\n updatedAt: \"2026-10-25T00:00:00Z\",\n sources: [],\n runs: [],\n messages: [],\n artifacts: [\n {\n id: \"page\",\n title: \"欢迎页面\",\n kind: \"web\",\n domainPluginId: \"web\",\n domainVersion: \"1\",\n currentRevisionId: \"r1\",\n revisions: [\n {\n id: \"r1\",\n number: 1,\n createdAt: \"2026-10-25T00:00:00Z\",\n source: {\n format: \"html\",\n schemaVersion: \"1\",\n content: \"<main><h1>Hello UIBot</h1></main>\",\n },\n references: [],\n sourceIds: [],\n },\n ],\n },\n ],\n};\nfunction memoryClient(): CreationWorkspaceClient & Pick<CreationClient, \"startRun\"> {\n const projects = new Map([[initial.id, structuredClone(initial)]]);\n const get = (id: string) => {\n const p = projects.get(id);\n if (!p) throw Error(\"project-not-found\");\n return p;\n };\n return {\n getConfiguration: async () => capabilities,\n listProjects: async () => ({\n projects: [...projects.values()].map((p) => ({\n id: p.id,\n title: p.title,\n updatedAt: p.updatedAt,\n artifactCount: p.artifacts.length,\n })),\n }),\n getProject: async (id) => structuredClone(get(id)),\n createProject: async (input) => {\n const p = {\n ...structuredClone(initial),\n id: input.requestId,\n title: input.title,\n artifacts: [],\n };\n projects.set(p.id, p);\n return structuredClone(p);\n },\n appendArtifact: async (id, input) => {\n const p = get(id);\n const revision = {\n id: crypto.randomUUID(),\n number: 1,\n createdAt: new Date().toISOString(),\n source: input.source,\n references: [],\n sourceIds: [],\n };\n p.artifacts.push({\n id: crypto.randomUUID(),\n title: input.title,\n kind: input.kind,\n domainPluginId: domain.id,\n domainVersion: domain.version,\n currentRevisionId: revision.id,\n revisions: [revision],\n });\n p.version++;\n return structuredClone(p);\n },\n saveRevision: async (id, aid, input) => {\n const p = get(id);\n const a = p.artifacts.find((a) => a.id === aid);\n if (!a || a.currentRevisionId !== input.expectedRevisionId) throw Error(\"revision-conflict\");\n const r = {\n ...required(a.revisions.at(-1)),\n id: crypto.randomUUID(),\n number: a.revisions.length + 1,\n source: input.source,\n };\n a.revisions.push(r);\n a.currentRevisionId = r.id;\n p.version++;\n return structuredClone(p);\n },\n startRun: async () => {\n throw Error(\"Model generation is unavailable in this memory demonstration\");\n },\n };\n}\nimport { CreationRevisionExport } from \"@uibot/blocks/creation-revision-export\";\nexport default function Example(\n args: { dirty: boolean; locale: \"zh\" | \"en\" } = { dirty: false, locale: \"zh\" },\n) {\n const [client] = useState(memoryClient);\n const [receipt, setReceipt] = useState(\"\");\n const artifact = required(initial.artifacts[0]);\n return (\n <main className=\"mx-auto max-w-xl space-y-4 p-6\">\n <p className=\"text-sm text-muted-foreground\">\n 真实导出组件。隔离预览禁止下载,导出回调在此展示源内容;请使用门户的源码导出保存示例。\n </p>\n <CreationRevisionExport\n client={client}\n project={initial}\n artifact={artifact}\n revision={required(artifact.revisions[0])}\n dirty={args.dirty}\n sessionIdentity=\"local-demo\"\n locale={args.locale}\n exportRevision={async () => {\n setReceipt(required(artifact.revisions[0]).source.content);\n return new Blob([required(artifact.revisions[0]).source.content], { type: \"text/html\" });\n }}\n />\n <pre role=\"status\">{receipt}</pre>\n </main>\n );\n}\n\nfunction required<T>(value: T | null | undefined): T {\n if (value === null || value === undefined) throw Error(\"Missing demo value\");\n return value;\n}\n","dependencies":["react","@uibot/contracts@^0.16.0","@uibot/creation-kit@^0.16.0","button","@uibot/creation-shared"]},{"id":"creation-revision-export-0","title":"components/uibot/creation/creation-revision-export.tsx","mode":"source","language":"tsx","code":"import { Button } from \"@/components/ui/button\";\nimport type { CreationArtifact, CreationProject, CreationRevision } from \"@uibot/contracts\";\nimport {\n CREATION_RUN_CHANGED_EVENT,\n type CreationClient,\n type CreationLocale,\n} from \"@uibot/creation-kit\";\nimport { useEffect, useLayoutEffect, useRef, useState } from \"react\";\n\nimport { creationBlockMessages, HTML_DOCUMENT_KINDS, hasUnresolvedRun } from \"./creation-shared\";\n\nexport type CreationExportFormat = \"html\" | \"pptx\";\n\nexport interface CreationRevisionExportInput {\n projectId: string;\n artifactId: string;\n revisionId: string;\n format: CreationExportFormat;\n}\n\nexport interface CreationRevisionExportProps {\n client: Pick<CreationClient, \"getProject\">;\n /** Host transport that renders a saved revision server-side. */\n exportRevision: (input: CreationRevisionExportInput) => Promise<Blob>;\n project: CreationProject;\n artifact: CreationArtifact;\n revision: CreationRevision;\n /** The generation reservation key; export waits while a reservation exists. */\n storageKey?: string;\n /** Changes when the signed-in session changes; stale results are dropped. */\n sessionIdentity: string;\n isSessionCurrent?: () => boolean;\n onProject?: (project: CreationProject) => void;\n dirty: boolean;\n locale?: CreationLocale;\n}\n\nfunction hasPendingRequest(key: string | undefined): boolean {\n if (!key) return false;\n try {\n return window.localStorage.getItem(key) !== null;\n } catch {\n // Unreadable storage cannot prove there is no reservation.\n return true;\n }\n}\n\nfunction safeFilename(title: string, revision: number, format: CreationExportFormat): string {\n const safeTitle = title\n .normalize(\"NFKC\")\n .replace(/[^\\p{L}\\p{N}._-]+/gu, \"-\")\n .replace(/^[.-]+|[.-]+$/g, \"\")\n .slice(0, 80);\n return `${safeTitle || \"creation\"}-revision-${revision}.${format}`;\n}\n\n/** Download a saved HTML revision (and PPTX for presentations) once no model request is open. */\nexport function CreationRevisionExport({\n client,\n exportRevision,\n project,\n artifact,\n revision,\n storageKey,\n sessionIdentity,\n isSessionCurrent = () => true,\n onProject = () => {},\n dirty,\n locale,\n}: CreationRevisionExportProps) {\n const t = creationBlockMessages(locale);\n const [busy, setBusy] = useState(false);\n const [refreshing, setRefreshing] = useState(false);\n const [error, setError] = useState(\"\");\n const [pendingRequest, setPendingRequest] = useState(() => hasPendingRequest(storageKey));\n const operation = useRef(0);\n const busyRef = useRef(false);\n const refreshBusyRef = useRef(false);\n const mounted = useRef(false);\n const urls = useRef(new Set<string>());\n const timers = useRef(new Set<ReturnType<typeof setTimeout>>());\n const serverBlocked = hasUnresolvedRun(project);\n const blocked = serverBlocked || pendingRequest;\n const identity = JSON.stringify([sessionIdentity, project.id, artifact.id, revision.id]);\n const scope = JSON.stringify([identity, dirty, blocked]);\n const current = useRef({ scope, identity, dirty, blocked });\n const previousScope = useRef(scope);\n current.current = { scope, identity, dirty, blocked };\n\n // A new selection, draft state or block invalidates any in-flight operation.\n useLayoutEffect(() => {\n if (previousScope.current === scope) return;\n previousScope.current = scope;\n operation.current += 1;\n busyRef.current = false;\n refreshBusyRef.current = false;\n setBusy(false);\n setRefreshing(false);\n }, [scope]);\n\n useLayoutEffect(() => {\n setPendingRequest(hasPendingRequest(storageKey));\n }, [storageKey]);\n\n useEffect(() => {\n const refresh = () => setPendingRequest(hasPendingRequest(storageKey));\n window.addEventListener(CREATION_RUN_CHANGED_EVENT, refresh);\n window.addEventListener(\"storage\", refresh);\n return () => {\n window.removeEventListener(CREATION_RUN_CHANGED_EVENT, refresh);\n window.removeEventListener(\"storage\", refresh);\n };\n }, [storageKey]);\n\n useEffect(() => {\n mounted.current = true;\n return () => {\n mounted.current = false;\n operation.current += 1;\n for (const timer of timers.current) clearTimeout(timer);\n timers.current.clear();\n for (const url of urls.current) URL.revokeObjectURL(url);\n urls.current.clear();\n };\n }, []);\n\n async function download(format: CreationExportFormat) {\n const reservationExists = hasPendingRequest(storageKey);\n if (reservationExists) setPendingRequest(true);\n if (\n busyRef.current ||\n dirty ||\n serverBlocked ||\n reservationExists ||\n revision.source.format !== \"html\" ||\n !HTML_DOCUMENT_KINDS.includes(artifact.kind) ||\n (format === \"pptx\" && artifact.kind !== \"presentation\")\n )\n return;\n const selectedIdentity = identity;\n const request = ++operation.current;\n const sessionWasCurrent = isSessionCurrent();\n const selectionIsCurrent = () =>\n mounted.current &&\n sessionWasCurrent &&\n isSessionCurrent() &&\n operation.current === request &&\n current.current.identity === selectedIdentity &&\n !current.current.dirty &&\n !current.current.blocked &&\n !hasPendingRequest(storageKey);\n setBusy(true);\n busyRef.current = true;\n setError(\"\");\n try {\n const blob = await exportRevision({\n projectId: project.id,\n artifactId: artifact.id,\n revisionId: revision.id,\n format,\n });\n if (!selectionIsCurrent()) return;\n const url = URL.createObjectURL(blob);\n urls.current.add(url);\n const anchor = document.createElement(\"a\");\n anchor.href = url;\n anchor.download = safeFilename(artifact.title, revision.number, format);\n anchor.style.display = \"none\";\n document.body.append(anchor);\n try {\n anchor.click();\n } finally {\n anchor.remove();\n }\n const timer = setTimeout(() => {\n URL.revokeObjectURL(url);\n urls.current.delete(url);\n timers.current.delete(timer);\n }, 0);\n timers.current.add(timer);\n } catch {\n if (selectionIsCurrent()) setError(t.exportFailed);\n } finally {\n if (mounted.current && operation.current === request) {\n busyRef.current = false;\n setBusy(false);\n }\n }\n }\n\n async function refreshProject() {\n if (dirty || !serverBlocked || refreshBusyRef.current) return;\n refreshBusyRef.current = true;\n const selectedIdentity = identity;\n const request = ++operation.current;\n const sessionWasCurrent = isSessionCurrent();\n const isCurrent = () =>\n mounted.current &&\n sessionWasCurrent &&\n isSessionCurrent() &&\n operation.current === request &&\n current.current.identity === selectedIdentity &&\n !current.current.dirty;\n setRefreshing(true);\n setError(\"\");\n try {\n const updated = await client.getProject(project.id);\n if (!isCurrent()) return;\n refreshBusyRef.current = false;\n setRefreshing(false);\n onProject(updated);\n } catch {\n if (isCurrent()) setError(t.refreshFailed);\n } finally {\n if (mounted.current && operation.current === request) {\n refreshBusyRef.current = false;\n setRefreshing(false);\n }\n }\n }\n\n if (revision.source.format !== \"html\" || !HTML_DOCUMENT_KINDS.includes(artifact.kind))\n return null;\n const disabled = dirty || blocked || busy;\n return (\n <section aria-label={t.exportTitle} className=\"flex flex-col gap-2\">\n <div className=\"flex flex-wrap gap-2\">\n <Button\n type=\"button\"\n variant=\"outline\"\n disabled={disabled}\n onClick={() => void download(\"html\")}\n >\n {busy ? t.exporting : t.exportHtml(revision.number)}\n </Button>\n {artifact.kind === \"presentation\" && (\n <Button\n type=\"button\"\n variant=\"outline\"\n disabled={disabled}\n onClick={() => void download(\"pptx\")}\n >\n {busy ? t.exporting : t.exportPptx(revision.number)}\n </Button>\n )}\n </div>\n {dirty && <p className=\"text-sm text-muted-foreground\">{t.saveBeforeExport}</p>}\n {blocked && <p className=\"text-sm text-muted-foreground\">{t.exportBlocked}</p>}\n {serverBlocked && (\n <Button\n type=\"button\"\n variant=\"outline\"\n disabled={refreshing || dirty}\n onClick={() => void refreshProject()}\n >\n {refreshing ? t.refreshingStatus : t.refreshStatus}\n </Button>\n )}\n {error && (\n <p role=\"alert\" className=\"text-sm text-destructive\">\n {error}\n </p>\n )}\n </section>\n );\n}\n","dependencies":["react","@uibot/contracts@^0.16.0","@uibot/creation-kit@^0.16.0"]}]},"block:creation-variant-compare":{"resourceId":"block:creation-variant-compare","title":{"zh":"creation-variant-compare","en":"creation-variant-compare"},"docs":{"zh":"Generate two or three HTML candidates side by side (project design, design guides or custom directions) and adopt one as the next revision, over useCreationVariants.\n\n## TypeScript props, callbacks and slots\n\nSource: packages/creation-kit/registry/creation/creation-variant-compare.tsx\n\n```tsx\nexport interface CreationVariantCompareProps {\n client: CreationVariantsClient;\n projectId: string;\n /** Artifact kind generated (an HTML domain, e.g. `web`). */\n kind: string;\n /** Update this artifact; omit to create a new one from the adopted candidate. */\n artifactId?: string;\n expectedRevisionId?: string | null;\n /** Set reservation key; scope it to the signed-in identity and project. */\n storageKey: string;\n storage?: CreationRunStorage;\n locale?: CreationLocale;\n initialIntent?: string;\n /** Called after a candidate is adopted, with the committed revision. */\n onAdopted?: (revisionId: string) => void;\n /** Poll interval while candidates generate (default 1500 ms). */\n pollMs?: number;\n /** Blocks starting and adopting (e.g. while the host has an unsaved draft). */\n disabled?: boolean;\n}\n```","en":"Generate two or three HTML candidates side by side (project design, design guides or custom directions) and adopt one as the next revision, over useCreationVariants.\n\n## TypeScript props, callbacks and slots\n\nSource: packages/creation-kit/registry/creation/creation-variant-compare.tsx\n\n```tsx\nexport interface CreationVariantCompareProps {\n client: CreationVariantsClient;\n projectId: string;\n /** Artifact kind generated (an HTML domain, e.g. `web`). */\n kind: string;\n /** Update this artifact; omit to create a new one from the adopted candidate. */\n artifactId?: string;\n expectedRevisionId?: string | null;\n /** Set reservation key; scope it to the signed-in identity and project. */\n storageKey: string;\n storage?: CreationRunStorage;\n locale?: CreationLocale;\n initialIntent?: string;\n /** Called after a candidate is adopted, with the committed revision. */\n onAdopted?: (revisionId: string) => void;\n /** Poll interval while candidates generate (default 1500 ms). */\n pollMs?: number;\n /** Blocks starting and adopting (e.g. while the host has an unsaved draft). */\n disabled?: boolean;\n}\n```"},"internal":false,"distributions":[{"channel":"shadcn","name":"creation-variant-compare","version":"0.16.0","availability":"source","dependencies":{"react":"*","@uibot/contracts":"^0.16.0","@uibot/creation-kit":"^0.16.0","@uibot/web-preview":"^0.16.0"},"registryDependencies":["button","input","label","textarea","@uibot/creation-shared"]}],"examples":[{"id":"creation-variant-compare-demo","title":"Interactive memory demonstration","mode":"tsx","language":"tsx","code":"/* @uibot-story\n{\n \"initial\": {\"locale\": \"zh\", \"disabled\": true},\n \"controls\": {\"locale\": {\"enum\": [\"zh\", \"en\"]}, \"disabled\": {\"type\": \"boolean\"}},\n \"variants\": [{\"name\": \"English\", \"args\": {\"locale\": \"en\"}}]\n}\n*/\nimport { useState } from \"react\";\nimport type { CreationProject } from \"@uibot/contracts\";\nimport type { CreationVariantsClient } from \"@uibot/creation-kit\";\nimport { CreationVariantCompare } from \"@uibot/blocks/creation-variant-compare\";\n\nfunction memoryClient(): CreationVariantsClient {\n const project: CreationProject = {\n contract: \"uibot.creation.project.v1\",\n id: \"directions-demo\",\n title: \"Design directions\",\n version: 1,\n createdAt: \"2026-10-26T00:00:00Z\",\n updatedAt: \"2026-10-26T00:00:00Z\",\n sources: [],\n artifacts: [],\n runs: [],\n messages: [],\n };\n const unavailable = async (): Promise<CreationProject> => {\n throw Error(\"Model generation and candidate writes require a configured host.\");\n };\n return {\n getProject: async () => structuredClone(project),\n listVariantDesigns: async () => ({\n designs: [\n { id: \"ink\", title: \"Ink\" },\n { id: \"paper\", title: \"Paper\" },\n ],\n }),\n startRun: unavailable,\n adoptVariant: unavailable,\n discardVariantGroup: unavailable,\n };\n}\n\nexport default function Example(\n args: { locale: \"zh\" | \"en\"; disabled: boolean } = { locale: \"zh\", disabled: true },\n) {\n const [client] = useState(memoryClient);\n const [storage] = useState(() => {\n const values = new Map<string, string>();\n return {\n getItem: (key: string) => values.get(key) ?? null,\n setItem: (key: string, value: string) => void values.set(key, value),\n removeItem: (key: string) => void values.delete(key),\n };\n });\n return (\n <main className=\"space-y-4 p-4\">\n <p className=\"text-sm text-muted-foreground\">\n {args.locale === \"zh\"\n ? \"本地演示:可编辑方案描述、方向并增删方案。模型生成、采用和放弃需要接入宿主,此处默认禁用生成。\"\n : \"Local demonstration: edit directions and add or remove options. Generation, adoption and discard require a configured host; generation is disabled by default.\"}\n </p>\n <CreationVariantCompare\n client={client}\n projectId=\"directions-demo\"\n kind=\"web\"\n storageKey=\"directions-demo\"\n storage={storage}\n locale={args.locale}\n disabled={args.disabled ?? true}\n initialIntent={args.locale === \"zh\" ? \"设计一个资源门户首页\" : \"Design a resource library\"}\n />\n </main>\n );\n}\n","dependencies":["react","@uibot/contracts@^0.16.0","@uibot/creation-kit@^0.16.0","@uibot/web-preview@^0.16.0","button","input","label","textarea","@uibot/creation-shared"]},{"id":"creation-variant-compare-0","title":"components/uibot/creation/creation-variant-compare.tsx","mode":"source","language":"tsx","code":"import { Button } from \"@/components/ui/button\";\nimport { Input } from \"@/components/ui/input\";\nimport { Label } from \"@/components/ui/label\";\nimport { Textarea } from \"@/components/ui/textarea\";\nimport {\n type CreationLocale,\n type CreationRunStorage,\n type CreationVariantDirection,\n type CreationVariantsClient,\n defaultVariantDirections,\n useCreationVariants,\n} from \"@uibot/creation-kit\";\nimport {\n APP_SRCDOC_CSP,\n buildErrorBridgeScript,\n cspMetaTag,\n SANDBOX_STORAGE_SHIM_SCRIPT,\n} from \"@uibot/web-preview\";\nimport { useEffect, useId, useRef, useState } from \"react\";\nimport { creationBlockMessages, FIELD_CLASS } from \"./creation-shared\";\n\nexport interface CreationVariantCompareProps {\n client: CreationVariantsClient;\n projectId: string;\n /** Artifact kind generated (an HTML domain, e.g. `web`). */\n kind: string;\n /** Update this artifact; omit to create a new one from the adopted candidate. */\n artifactId?: string;\n expectedRevisionId?: string | null;\n /** Set reservation key; scope it to the signed-in identity and project. */\n storageKey: string;\n storage?: CreationRunStorage;\n locale?: CreationLocale;\n initialIntent?: string;\n /** Called after a candidate is adopted, with the committed revision. */\n onAdopted?: (revisionId: string) => void;\n /** Poll interval while candidates generate (default 1500 ms). */\n pollMs?: number;\n /** Blocks starting and adopting (e.g. while the host has an unsaved draft). */\n disabled?: boolean;\n}\n\nconst CUSTOM = \"__custom__\";\nconst PROJECT = \"__project__\";\n\n/** Candidate HTML in a sandboxed frame, with the same shims and CSP as the preview. */\nfunction previewDocument(html: string): string {\n const shims = `${cspMetaTag(APP_SRCDOC_CSP)}${SANDBOX_STORAGE_SHIM_SCRIPT}${buildErrorBridgeScript()}`;\n const head = /<head\\b[^>]*>/i.exec(html);\n return head ? html.replace(head[0], (tag) => `${tag}${shims}`) : `${shims}${html}`;\n}\n\n/**\n * Generate two or three HTML candidates side by side and adopt one (the rest are cancelled) or\n * discard the set. Logic lives in `useCreationVariants`; the host passes transport and storage.\n * Key the component by identity, project and artifact so a switch starts fresh.\n */\nexport function CreationVariantCompare({\n client,\n projectId,\n kind,\n artifactId,\n expectedRevisionId,\n storageKey,\n storage,\n locale,\n initialIntent = \"\",\n onAdopted,\n pollMs,\n disabled = false,\n}: CreationVariantCompareProps) {\n const t = creationBlockMessages(locale);\n const id = useId();\n const variants = useCreationVariants({\n client,\n projectId,\n storageKey,\n ...(storage ? { storage } : {}),\n ...(locale ? { locale } : {}),\n ...(pollMs ? { pollMs } : {}),\n });\n const [intent, setIntent] = useState(initialIntent);\n // Rows keep a stable key so removing one does not remount the others.\n const [rows, setRows] = useState<{ key: number; direction: CreationVariantDirection }[] | null>(\n null,\n );\n const nextKey = useRef(3);\n const shownRows =\n rows ??\n defaultVariantDirections(variants.designs).map((direction, key) => ({ key, direction }));\n const shown = shownRows.map((row) => row.direction);\n const update = (index: number, direction: CreationVariantDirection) =>\n setRows(shownRows.map((row, position) => (position === index ? { ...row, direction } : row)));\n\n const adoptedRevisionId = variants.adoptedRevisionId;\n useEffect(() => {\n if (adoptedRevisionId) onAdopted?.(adoptedRevisionId);\n }, [adoptedRevisionId, onAdopted]);\n\n const selection = (direction: CreationVariantDirection) =>\n direction.designMdId ?? (direction.text !== undefined ? CUSTOM : PROJECT);\n\n return (\n <section aria-label={t.variantsTitle} className=\"flex flex-col gap-3 rounded-lg border p-4\">\n <h2 className=\"text-sm font-semibold\">{t.variantsTitle}</h2>\n {variants.message && (\n <p role=\"status\" className=\"text-sm\">\n {variants.message}\n </p>\n )}\n {variants.phase === \"idle\" && (\n <form\n className=\"flex flex-col gap-3\"\n onSubmit={(event) => {\n event.preventDefault();\n void variants.start({\n kind,\n intent,\n ...(artifactId ? { artifactId } : {}),\n ...(expectedRevisionId !== undefined ? { expectedRevisionId } : {}),\n directions: shown,\n });\n }}\n >\n <div className=\"flex flex-col gap-1.5\">\n <Label htmlFor={`${id}-intent`}>{t.variantsIntentLabel}</Label>\n <Textarea\n id={`${id}-intent`}\n value={intent}\n onChange={(event) => setIntent(event.target.value)}\n />\n </div>\n {shownRows.map(({ key, direction }, index) => (\n <div key={key} className=\"flex flex-wrap items-end gap-2\">\n <div className=\"flex flex-col gap-1.5\">\n <Label htmlFor={`${id}-direction-${index}`}>\n {t.variantDirectionLabel(index + 1)}\n </Label>\n <select\n id={`${id}-direction-${index}`}\n className={FIELD_CLASS}\n value={selection(direction)}\n onChange={(event) => {\n const value = event.target.value;\n update(\n index,\n value === PROJECT\n ? {}\n : value === CUSTOM\n ? { text: \"\" }\n : { designMdId: value },\n );\n }}\n >\n <option value={PROJECT}>{t.variantProjectDesign}</option>\n {variants.designs.map((design) => (\n <option key={design.id} value={design.id}>\n {design.title}\n </option>\n ))}\n <option value={CUSTOM}>{t.variantCustomDirection}</option>\n </select>\n </div>\n {direction.text !== undefined && (\n <Input\n aria-label={t.variantDirectionText(index + 1)}\n value={direction.text}\n onChange={(event) => update(index, { text: event.target.value })}\n />\n )}\n {shown.length > 2 && (\n <Button\n type=\"button\"\n variant=\"ghost\"\n onClick={() => setRows(shownRows.filter((_, position) => position !== index))}\n >\n {t.removeVariant(index + 1)}\n </Button>\n )}\n </div>\n ))}\n <div className=\"flex flex-wrap gap-2\">\n {shown.length < 3 && (\n <Button\n type=\"button\"\n variant=\"outline\"\n onClick={() => setRows([...shownRows, { key: nextKey.current++, direction: {} }])}\n >\n {t.addVariant}\n </Button>\n )}\n <Button\n type=\"submit\"\n disabled={\n disabled ||\n variants.busy ||\n !intent.trim() ||\n shown.some((direction) => direction.text !== undefined && !direction.text.trim())\n }\n >\n {t.generateVariants(shown.length)}\n </Button>\n </div>\n </form>\n )}\n {(variants.phase === \"generating\" || variants.phase === \"choosing\") && (\n <>\n <div\n className=\"grid gap-3\"\n style={{ gridTemplateColumns: `repeat(${variants.candidates.length}, minmax(0, 1fr))` }}\n >\n {variants.candidates.map((candidate) => (\n <article\n key={candidate.requestId}\n aria-label={t.variantColumn(candidate.index + 1)}\n className=\"flex min-w-0 flex-col gap-2\"\n >\n <header className=\"flex items-center justify-between gap-2 text-sm\">\n <span className=\"font-medium\">{t.variantColumn(candidate.index + 1)}</span>\n <span className=\"text-muted-foreground\">\n {t.variantStatus[candidate.status] ?? candidate.status}\n </span>\n </header>\n {candidate.html ? (\n <iframe\n title={t.variantPreview(candidate.index + 1)}\n sandbox=\"allow-scripts\"\n srcDoc={previewDocument(candidate.html)}\n className=\"h-80 w-full rounded-md border bg-background\"\n />\n ) : (\n <div className=\"flex h-80 items-center justify-center rounded-md border text-sm text-muted-foreground\">\n {candidate.error ?? \"\"}\n </div>\n )}\n {candidate.status === \"held\" && candidate.runId && (\n <Button\n type=\"button\"\n disabled={disabled || variants.busy}\n onClick={() => candidate.runId && void variants.adopt(candidate.runId)}\n >\n {t.adoptVariant(candidate.index + 1)}\n </Button>\n )}\n </article>\n ))}\n </div>\n <div className=\"flex flex-wrap gap-2\">\n {variants.candidates.some((candidate) => candidate.status === \"unknown\") && (\n <Button\n type=\"button\"\n variant=\"outline\"\n disabled={variants.busy}\n onClick={() => void variants.retrySend()}\n >\n {t.retryVariants}\n </Button>\n )}\n <Button\n type=\"button\"\n variant=\"outline\"\n disabled={variants.busy}\n onClick={() => void variants.discard()}\n >\n {t.discardVariants}\n </Button>\n </div>\n </>\n )}\n {(variants.phase === \"adopted\" || variants.phase === \"discarded\") && (\n <div className=\"flex flex-wrap items-center gap-3 text-sm\">\n <p role=\"status\">\n {variants.phase === \"adopted\" ? t.variantsAdopted : t.variantsDiscarded}\n </p>\n <Button\n type=\"button\"\n variant=\"outline\"\n onClick={() => {\n setRows(null);\n variants.reset();\n }}\n >\n {t.newVariantSet}\n </Button>\n </div>\n )}\n </section>\n );\n}\n","dependencies":["react","@uibot/contracts@^0.16.0","@uibot/creation-kit@^0.16.0","@uibot/web-preview@^0.16.0"]}]},"block:creation-workspace":{"resourceId":"block:creation-workspace","title":{"zh":"creation-workspace","en":"creation-workspace"},"docs":{"zh":"Manual HTML creation workspace (projects, artifacts, CAS saves with a conflict step, generation, export) over useCreationWorkspace; the host renders the editor.\n\n## TypeScript props, callbacks and slots\n\nSource: packages/creation-kit/registry/creation/creation-workspace.tsx\n\n```tsx\n/** What the host's editor receives; `HtmlSourceEditor` from `@uibot/renderer-react` accepts it. */\nexport interface CreationWorkspaceEditorProps {\n projectId: string;\n artifactId: string;\n title: string;\n revision: { id: string; number: number };\n source: CreationContent;\n onDirty: (dirty: boolean) => void;\n saveRevision: (input: CreationWorkspaceSaveInput) => Promise<CreationWorkspaceSaveResult>;\n renderSaveAction: (action: { disabled: boolean; onSave: () => void }) => ReactNode;\n}\n\nexport interface CreationWorkspaceProps {\n client: CreationWorkspaceClient &\n Pick<\n CreationClient,\n \"startRun\" | \"adoptVariant\" | \"discardVariantGroup\" | \"listVariantDesigns\"\n >;\n exportRevision: CreationRevisionExportProps[\"exportRevision\"];\n /** Run reservation key for a project; scope it to the signed-in identity. */\n runStorageKey: (projectId: string) => string;\n /** Changes when the signed-in actor or tenant changes. Hosts with sign-in must pass it. */\n authority?: () => string;\n /** Identity the export block binds a download to. */\n sessionIdentity: string;\n isSessionCurrent?: () => boolean;\n locale?: CreationLocale;\n /** The host's HTML editor (preview transport, data bridge); usually `HtmlSourceEditor`. */\n renderEditor: (editor: CreationWorkspaceEditorProps) => ReactNode;\n initialSource?: string;\n /** Host overlays rendered inside the workspace (e.g. approval dialogs). */\n children?: ReactNode;\n}\n```","en":"Manual HTML creation workspace (projects, artifacts, CAS saves with a conflict step, generation, export) over useCreationWorkspace; the host renders the editor.\n\n## TypeScript props, callbacks and slots\n\nSource: packages/creation-kit/registry/creation/creation-workspace.tsx\n\n```tsx\n/** What the host's editor receives; `HtmlSourceEditor` from `@uibot/renderer-react` accepts it. */\nexport interface CreationWorkspaceEditorProps {\n projectId: string;\n artifactId: string;\n title: string;\n revision: { id: string; number: number };\n source: CreationContent;\n onDirty: (dirty: boolean) => void;\n saveRevision: (input: CreationWorkspaceSaveInput) => Promise<CreationWorkspaceSaveResult>;\n renderSaveAction: (action: { disabled: boolean; onSave: () => void }) => ReactNode;\n}\n\nexport interface CreationWorkspaceProps {\n client: CreationWorkspaceClient &\n Pick<\n CreationClient,\n \"startRun\" | \"adoptVariant\" | \"discardVariantGroup\" | \"listVariantDesigns\"\n >;\n exportRevision: CreationRevisionExportProps[\"exportRevision\"];\n /** Run reservation key for a project; scope it to the signed-in identity. */\n runStorageKey: (projectId: string) => string;\n /** Changes when the signed-in actor or tenant changes. Hosts with sign-in must pass it. */\n authority?: () => string;\n /** Identity the export block binds a download to. */\n sessionIdentity: string;\n isSessionCurrent?: () => boolean;\n locale?: CreationLocale;\n /** The host's HTML editor (preview transport, data bridge); usually `HtmlSourceEditor`. */\n renderEditor: (editor: CreationWorkspaceEditorProps) => ReactNode;\n initialSource?: string;\n /** Host overlays rendered inside the workspace (e.g. approval dialogs). */\n children?: ReactNode;\n}\n```"},"internal":false,"distributions":[{"channel":"shadcn","name":"creation-workspace","version":"0.16.0","availability":"source","dependencies":{"react":"*","@uibot/contracts":"^0.16.0","@uibot/creation-kit":"^0.16.0","@uibot/web-preview":"^0.16.0"},"registryDependencies":["button","input","label","textarea","@uibot/creation-shared","@uibot/creation-html-generation","@uibot/creation-reference-generation","@uibot/creation-revision-export","@uibot/creation-variant-compare"]}],"examples":[{"id":"creation-workspace-demo","title":"Interactive memory demonstration","mode":"tsx","language":"tsx","code":"/* @uibot-story\n{\n \"initial\": {\"locale\": \"zh\"},\n \"controls\": {\"locale\": {\"enum\": [\"zh\", \"en\"]}},\n \"variants\": [{\"name\": \"English\", \"args\": {\"locale\": \"en\"}}]\n}\n*/\nimport { useState } from \"react\";\nimport type { CreationProject, CreationDomain } from \"@uibot/contracts\";\nimport type { CreationWorkspaceClient, CreationClient } from \"@uibot/creation-kit\";\nconst domain: CreationDomain = {\n id: \"web\",\n version: \"1\",\n title: \"网页\",\n artifactKind: \"web\",\n formats: [\"html\"],\n outputFormat: \"html\",\n exports: [],\n agentId: \"\",\n skillId: \"\",\n enabled: true,\n};\nconst capabilities = { domains: [domain], generation: { ready: false } };\nconst initial: CreationProject = {\n contract: \"uibot.creation.project.v1\",\n id: \"demo\",\n title: \"本地创作示例\",\n version: 1,\n createdAt: \"2026-10-25T00:00:00Z\",\n updatedAt: \"2026-10-25T00:00:00Z\",\n sources: [],\n runs: [],\n messages: [],\n artifacts: [\n {\n id: \"page\",\n title: \"欢迎页面\",\n kind: \"web\",\n domainPluginId: \"web\",\n domainVersion: \"1\",\n currentRevisionId: \"r1\",\n revisions: [\n {\n id: \"r1\",\n number: 1,\n createdAt: \"2026-10-25T00:00:00Z\",\n source: {\n format: \"html\",\n schemaVersion: \"1\",\n content: \"<main><h1>Hello UIBot</h1></main>\",\n },\n references: [],\n sourceIds: [],\n },\n ],\n },\n ],\n};\nfunction memoryClient(): CreationWorkspaceClient &\n Pick<CreationClient, \"startRun\" | \"adoptVariant\" | \"discardVariantGroup\" | \"listVariantDesigns\"> {\n const projects = new Map([[initial.id, structuredClone(initial)]]);\n const get = (id: string) => {\n const p = projects.get(id);\n if (!p) throw Error(\"project-not-found\");\n return p;\n };\n return {\n getConfiguration: async () => capabilities,\n listProjects: async () => ({\n projects: [...projects.values()].map((p) => ({\n id: p.id,\n title: p.title,\n updatedAt: p.updatedAt,\n artifactCount: p.artifacts.length,\n })),\n }),\n getProject: async (id) => structuredClone(get(id)),\n createProject: async (input) => {\n const p = {\n ...structuredClone(initial),\n id: input.requestId,\n title: input.title,\n artifacts: [],\n };\n projects.set(p.id, p);\n return structuredClone(p);\n },\n appendArtifact: async (id, input) => {\n const p = get(id);\n const revision = {\n id: crypto.randomUUID(),\n number: 1,\n createdAt: new Date().toISOString(),\n source: input.source,\n references: [],\n sourceIds: [],\n };\n p.artifacts.push({\n id: crypto.randomUUID(),\n title: input.title,\n kind: input.kind,\n domainPluginId: domain.id,\n domainVersion: domain.version,\n currentRevisionId: revision.id,\n revisions: [revision],\n });\n p.version++;\n return structuredClone(p);\n },\n saveRevision: async (id, aid, input) => {\n const p = get(id);\n const a = p.artifacts.find((a) => a.id === aid);\n if (!a || a.currentRevisionId !== input.expectedRevisionId) throw Error(\"revision-conflict\");\n const r = {\n ...required(a.revisions.at(-1)),\n id: crypto.randomUUID(),\n number: a.revisions.length + 1,\n source: input.source,\n };\n a.revisions.push(r);\n a.currentRevisionId = r.id;\n p.version++;\n return structuredClone(p);\n },\n startRun: async () => {\n throw Error(\"Model generation is unavailable in this memory demonstration\");\n },\n listVariantDesigns: async () => ({ designs: [] }),\n adoptVariant: async () => {\n throw Error(\"No generated candidates exist in this memory demonstration\");\n },\n discardVariantGroup: async () => {\n throw Error(\"No generated candidates exist in this memory demonstration\");\n },\n };\n}\nimport { CreationWorkspace } from \"@uibot/blocks/creation-workspace\";\nimport { HtmlSourceEditor } from \"@uibot/renderer-react\";\nexport default function Example(args: { locale: \"zh\" | \"en\" } = { locale: \"zh\" }) {\n const [client] = useState(memoryClient);\n return (\n <main className=\"space-y-4 p-4\">\n <p className=\"text-sm text-muted-foreground\">\n 内存演示:可创建项目、作品并保存修订;无模型和外部网络。\n </p>\n <CreationWorkspace\n client={client}\n sessionIdentity=\"local-demo\"\n runStorageKey={(id) => `demo-${id}`}\n locale={args.locale}\n exportRevision={async () => {\n throw Error(\"Use the portal source export outside the sandbox\");\n }}\n renderEditor={(editor) => (\n <HtmlSourceEditor\n {...editor}\n sandbox=\"allow-scripts\"\n view=\"split\"\n openPreview={async ({ html }) => {\n const shellUrl = URL.createObjectURL(new Blob([html], { type: \"text/html\" }));\n return { shellUrl, dispose: () => URL.revokeObjectURL(shellUrl) };\n }}\n />\n )}\n />\n </main>\n );\n}\n\nfunction required<T>(value: T | null | undefined): T {\n if (value === null || value === undefined) throw Error(\"Missing demo value\");\n return value;\n}\n","dependencies":["react","@uibot/contracts@^0.16.0","@uibot/creation-kit@^0.16.0","@uibot/web-preview@^0.16.0","button","input","label","textarea","@uibot/creation-shared","@uibot/creation-html-generation","@uibot/creation-reference-generation","@uibot/creation-revision-export","@uibot/creation-variant-compare"]},{"id":"creation-workspace-0","title":"components/uibot/creation/creation-workspace.tsx","mode":"source","language":"tsx","code":"import { Button } from \"@/components/ui/button\";\nimport { Input } from \"@/components/ui/input\";\nimport { Label } from \"@/components/ui/label\";\nimport { Textarea } from \"@/components/ui/textarea\";\nimport type { CreationContent } from \"@uibot/contracts\";\nimport {\n type CreationClient,\n type CreationLocale,\n type CreationWorkspaceClient,\n type CreationWorkspaceSaveInput,\n type CreationWorkspaceSaveResult,\n useCreationWorkspace,\n} from \"@uibot/creation-kit\";\nimport { Fragment, type ReactNode, useId, useState } from \"react\";\nimport { CreationHtmlGeneration } from \"./creation-html-generation\";\nimport { CreationReferenceGeneration } from \"./creation-reference-generation\";\nimport { CreationVariantCompare } from \"./creation-variant-compare\";\nimport {\n CreationRevisionExport,\n type CreationRevisionExportProps,\n} from \"./creation-revision-export\";\nimport { creationBlockMessages, FIELD_CLASS } from \"./creation-shared\";\n\n/** What the host's editor receives; `HtmlSourceEditor` from `@uibot/renderer-react` accepts it. */\nexport interface CreationWorkspaceEditorProps {\n projectId: string;\n artifactId: string;\n title: string;\n revision: { id: string; number: number };\n source: CreationContent;\n onDirty: (dirty: boolean) => void;\n saveRevision: (input: CreationWorkspaceSaveInput) => Promise<CreationWorkspaceSaveResult>;\n renderSaveAction: (action: { disabled: boolean; onSave: () => void }) => ReactNode;\n}\n\nexport interface CreationWorkspaceProps {\n client: CreationWorkspaceClient &\n Pick<\n CreationClient,\n \"startRun\" | \"adoptVariant\" | \"discardVariantGroup\" | \"listVariantDesigns\"\n >;\n exportRevision: CreationRevisionExportProps[\"exportRevision\"];\n /** Run reservation key for a project; scope it to the signed-in identity. */\n runStorageKey: (projectId: string) => string;\n /** Changes when the signed-in actor or tenant changes. Hosts with sign-in must pass it. */\n authority?: () => string;\n /** Identity the export block binds a download to. */\n sessionIdentity: string;\n isSessionCurrent?: () => boolean;\n locale?: CreationLocale;\n /** The host's HTML editor (preview transport, data bridge); usually `HtmlSourceEditor`. */\n renderEditor: (editor: CreationWorkspaceEditorProps) => ReactNode;\n initialSource?: string;\n /** Host overlays rendered inside the workspace (e.g. approval dialogs). */\n children?: ReactNode;\n}\n\n/**\n * Manual HTML creation workspace: projects, artifacts, saved revisions, generation and export.\n * State lives in `useCreationWorkspace`; key the component by identity/tenant so a switch starts\n * a fresh workspace.\n */\nexport function CreationWorkspace({\n client,\n exportRevision,\n runStorageKey,\n authority,\n sessionIdentity,\n isSessionCurrent,\n locale,\n renderEditor,\n initialSource = \"<main>\\n <h1>My page</h1>\\n</main>\",\n children,\n}: CreationWorkspaceProps) {\n const t = creationBlockMessages(locale);\n const id = useId();\n const workspace = useCreationWorkspace({ client, ...(locale ? { locale } : {}) });\n const [showCreateProject, setShowCreateProject] = useState(false);\n const [projectTitle, setProjectTitle] = useState(\"\");\n const [artifactTitle, setArtifactTitle] = useState(\"\");\n const [newSource, setNewSource] = useState(initialSource);\n const {\n project,\n selectedArtifact,\n selectedRevision,\n enabledDomain,\n busy,\n refreshingDomains,\n generationPending,\n editorDirty,\n } = workspace;\n // Variants generate HTML: for the selected artifact, or a new artifact of the chosen kind.\n const variantKind = selectedArtifact\n ? selectedRevision?.source.format === \"html\"\n ? selectedArtifact.kind\n : undefined\n : enabledDomain?.artifactKind;\n const runProps = {\n client,\n ...(authority ? { authority } : {}),\n ...(locale ? { locale } : {}),\n };\n\n if (workspace.status !== \"ready\")\n return (\n <section aria-label={t.workspaceLabel}>\n {workspace.status === \"loading\" ? (\n <p>{t.workspaceLoading}</p>\n ) : (\n <p role=\"alert\">{t.workspaceLoadFailed}</p>\n )}\n </section>\n );\n\n return (\n <section\n aria-label={t.workspaceLabel}\n data-testid=\"creation-workspace\"\n className=\"mx-auto flex max-w-6xl flex-col gap-4 p-6\"\n >\n <header className=\"flex items-center justify-between gap-4\">\n <div>\n <p className=\"text-xs text-muted-foreground\">{t.workspaceEyebrow}</p>\n <h1 className=\"text-xl font-semibold\">{t.workspaceLabel}</h1>\n </div>\n <Button type=\"button\" onClick={() => setShowCreateProject(true)} disabled={busy}>\n {t.newProject}\n </Button>\n </header>\n {workspace.message && (\n <p role=\"status\" className=\"text-sm\">\n {workspace.message}\n </p>\n )}\n {workspace.conflict && (\n <div role=\"alert\" className=\"flex items-center gap-3 text-sm\">\n <span>{t.conflict}</span>\n <Button\n type=\"button\"\n variant=\"outline\"\n onClick={() => void workspace.rereadProject()}\n disabled={busy}\n >\n {t.reread}\n </Button>\n </div>\n )}\n {showCreateProject && (\n <form\n onSubmit={(event) => {\n event.preventDefault();\n void workspace.createProject(projectTitle).then((created) => {\n if (!created) return;\n setShowCreateProject(false);\n setProjectTitle(\"\");\n });\n }}\n className=\"flex flex-wrap items-end gap-2\"\n >\n <div className=\"flex flex-col gap-1.5\">\n <Label htmlFor={`${id}-project-title`}>{t.projectTitleLabel}</Label>\n <Input\n id={`${id}-project-title`}\n aria-label={t.projectTitleLabel}\n value={projectTitle}\n onChange={(event) => setProjectTitle(event.target.value)}\n />\n </div>\n <Button type=\"submit\" disabled={busy || !projectTitle.trim()}>\n {t.createProject}\n </Button>\n <Button type=\"button\" variant=\"outline\" onClick={() => setShowCreateProject(false)}>\n {t.cancel}\n </Button>\n </form>\n )}\n {!!workspace.projects.length && (\n <div className=\"flex flex-col gap-1.5\">\n <Label htmlFor={`${id}-project`}>{t.selectProjectLabel}</Label>\n <select\n id={`${id}-project`}\n aria-label={t.selectProjectLabel}\n className={FIELD_CLASS}\n value={project?.id ?? \"\"}\n disabled={busy}\n onChange={(event) => void workspace.selectProject(event.target.value)}\n >\n {workspace.projects.map((item) => (\n <option key={item.id} value={item.id}>\n {item.title}\n </option>\n ))}\n </select>\n </div>\n )}\n {project && (\n <>\n <CreationHtmlGeneration\n key={`html-generation:${project.id}`}\n {...runProps}\n storageKey={runStorageKey(project.id)}\n project={project}\n capabilities={workspace.capabilities}\n artifact={selectedArtifact}\n dirty={editorDirty}\n busy={busy || refreshingDomains}\n onPending={(pending) => workspace.setGenerationPending(\"html\", pending)}\n onProject={workspace.applyProject}\n />\n <CreationReferenceGeneration\n key={`reference-generation:${project.id}`}\n {...runProps}\n storageKey={runStorageKey(project.id)}\n project={project}\n capabilities={workspace.capabilities}\n dirty={editorDirty}\n busy={busy || refreshingDomains}\n onPending={(pending) => workspace.setGenerationPending(\"reference\", pending)}\n onProject={workspace.applyProject}\n />\n {variantKind && (\n <CreationVariantCompare\n key={`variants:${project.id}:${selectedArtifact?.id ?? \"new\"}:${selectedArtifact?.currentRevisionId ?? \"\"}`}\n client={client}\n projectId={project.id}\n kind={variantKind}\n {...(selectedArtifact\n ? {\n artifactId: selectedArtifact.id,\n expectedRevisionId: selectedArtifact.currentRevisionId,\n }\n : {})}\n storageKey={`${runStorageKey(project.id)}:variants`}\n {...(typeof window === \"undefined\" ? {} : { storage: window.localStorage })}\n {...(locale ? { locale } : {})}\n disabled={editorDirty || busy || refreshingDomains || generationPending}\n onAdopted={(revisionId) =>\n void client\n .getProject(project.id)\n .then((updated) =>\n workspace.applyProject(\n updated,\n updated.artifacts.find((artifact) =>\n artifact.revisions.some((revision) => revision.id === revisionId),\n )?.id,\n ),\n )\n }\n />\n )}\n <div className=\"flex flex-wrap items-end gap-3 rounded-lg border p-4\">\n <div className=\"flex flex-col gap-1.5\">\n <Label htmlFor={`${id}-artifact-title`}>{t.artifactTitleLabel}</Label>\n <Input\n id={`${id}-artifact-title`}\n aria-label={t.artifactTitleLabel}\n value={artifactTitle}\n onChange={(event) => setArtifactTitle(event.target.value)}\n />\n </div>\n <div className=\"flex flex-col gap-1.5\">\n <Label htmlFor={`${id}-artifact-kind`}>{t.artifactKindLabel}</Label>\n <select\n id={`${id}-artifact-kind`}\n aria-label={t.artifactKindLabel}\n className={FIELD_CLASS}\n value={workspace.selectedDomainKind}\n onChange={(event) => workspace.selectDomain(event.target.value)}\n disabled={!workspace.domains.length || busy || refreshingDomains}\n >\n {workspace.selectedDomainKind && !enabledDomain && (\n <option value={workspace.selectedDomainKind} disabled>\n {t.unavailableKindOption(workspace.selectedDomainKind)}\n </option>\n )}\n {workspace.domains.map((domain) => (\n <option\n key={`${domain.artifactKind}:${domain.version}`}\n value={domain.artifactKind}\n >\n {domain.title}\n </option>\n ))}\n </select>\n </div>\n <Button\n type=\"button\"\n variant=\"outline\"\n onClick={() => void workspace.refreshDomains()}\n disabled={busy || refreshingDomains || editorDirty || generationPending}\n >\n {refreshingDomains ? t.refreshingCapabilities : t.refreshCapabilities}\n </Button>\n <Button\n type=\"button\"\n onClick={() =>\n void workspace\n .appendArtifact({\n title: artifactTitle,\n source: { format: \"html\", schemaVersion: \"1\", content: newSource },\n })\n .then((appended) => {\n if (appended) setArtifactTitle(\"\");\n })\n }\n disabled={\n busy ||\n refreshingDomains ||\n generationPending ||\n !workspace.capabilitiesFresh ||\n !enabledDomain ||\n !artifactTitle.trim()\n }\n >\n {t.appendArtifact}\n </Button>\n </div>\n {workspace.selectedDomainKind && !enabledDomain && (\n <p role=\"status\" className=\"text-sm text-muted-foreground\">\n {t.kindUnavailable(workspace.selectedDomainKind)}\n </p>\n )}\n {!workspace.domains.length && (\n <p role=\"status\" className=\"text-sm text-muted-foreground\">\n {t.noHtmlDomains}\n </p>\n )}\n {!selectedArtifact && (\n <div className=\"flex flex-col gap-1.5\">\n <Label htmlFor={`${id}-source`}>{t.htmlContentLabel}</Label>\n <Textarea\n id={`${id}-source`}\n aria-label={t.htmlContentLabel}\n value={newSource}\n onChange={(event) => setNewSource(event.target.value)}\n disabled={busy}\n />\n </div>\n )}\n {selectedArtifact && selectedRevision?.source.format === \"html\" && (\n <fieldset\n disabled={refreshingDomains || generationPending}\n className=\"m-0 min-w-0 border-0 p-0\"\n >\n <Fragment\n key={`${project.id}:${selectedArtifact.id}:${workspace.editorResetGeneration}`}\n >\n {renderEditor({\n projectId: project.id,\n artifactId: selectedArtifact.id,\n title: selectedArtifact.title,\n revision: { id: selectedRevision.id, number: selectedRevision.number },\n source: selectedRevision.source,\n onDirty: workspace.setEditorDirty,\n saveRevision: workspace.saveRevision,\n renderSaveAction: ({ disabled, onSave }) => (\n <Button\n type=\"button\"\n onClick={onSave}\n disabled={disabled || busy || refreshingDomains || generationPending}\n >\n {t.saveRevision}\n </Button>\n ),\n })}\n </Fragment>\n </fieldset>\n )}\n {selectedArtifact && selectedRevision && (\n <>\n <fieldset\n aria-label={t.savedRevisionsLabel}\n className=\"m-0 flex min-w-0 flex-wrap gap-2 border-0 p-0\"\n >\n {selectedArtifact.revisions.map((revision) => (\n <Button\n key={revision.id}\n type=\"button\"\n variant=\"outline\"\n aria-pressed={\n (workspace.exportRevisionId || selectedRevision.id) === revision.id\n }\n onClick={() => workspace.selectExportRevision(revision.id)}\n disabled={busy}\n >\n {t.historyRevision(revision.number)}\n </Button>\n ))}\n </fieldset>\n <CreationRevisionExport\n client={client}\n exportRevision={exportRevision}\n {...(locale ? { locale } : {})}\n project={project}\n artifact={selectedArtifact}\n storageKey={runStorageKey(project.id)}\n sessionIdentity={sessionIdentity}\n {...(isSessionCurrent ? { isSessionCurrent } : {})}\n onProject={(updated) => workspace.applyProject(updated)}\n revision={\n selectedArtifact.revisions.find(\n (revision) => revision.id === workspace.exportRevisionId,\n ) ?? selectedRevision\n }\n dirty={editorDirty || busy || refreshingDomains || generationPending}\n />\n </>\n )}\n </>\n )}\n {children}\n </section>\n );\n}\n","dependencies":["react","@uibot/contracts@^0.16.0","@uibot/creation-kit@^0.16.0","@uibot/web-preview@^0.16.0"]}]},"block:collection-shared":{"resourceId":"block:collection-shared","title":{"zh":"collection-shared","en":"collection-shared"},"docs":{"zh":"Copy (zh/en), editor prop types and Tab-commit helper shared by the UIBot collection blocks.","en":"Copy (zh/en), editor prop types and Tab-commit helper shared by the UIBot collection blocks."},"internal":true,"distributions":[{"channel":"shadcn","name":"collection-shared","version":"0.16.0","availability":"source","dependencies":{"react":"*","@uibot/renderer-react":"^0.16.0"},"registryDependencies":[]}],"examples":[{"id":"collection-shared-0","title":"components/uibot/collection/collection-shared.ts","mode":"source","language":"ts","code":"import type { PagedCollectionGridProps } from \"@uibot/renderer-react/collection-grid\";\nimport type { KeyboardEvent } from \"react\";\n\nexport type CollectionLocale = \"zh\" | \"en\";\n\n/** What the grid passes to `renderCellEditor`, plus the copy locale. */\nexport type CollectionCellEditorProps = Parameters<\n NonNullable<PagedCollectionGridProps[\"renderCellEditor\"]>\n>[0] & { locale?: CollectionLocale };\n\n/** What the grid passes to `renderRecordContextMenu`, plus the copy locale. */\nexport type CollectionRecordMenuProps = Parameters<\n NonNullable<PagedCollectionGridProps[\"renderRecordContextMenu\"]>\n>[0] & { locale?: CollectionLocale };\n\nconst MESSAGES = {\n zh: {\n edit: (field: string) => `编辑 ${field}`,\n chooseOption: \"选择选项\",\n clearChoice: \"清空选择\",\n removedOption: (value: string) => `${value}(选项已移除)`,\n noOptions: \"尚未配置选项\",\n noMatchingOptions: \"没有匹配的选项\",\n searchOptions: \"搜索选项\",\n searchOptionsOf: (field: string) => `搜索${field}选项`,\n optionsOf: (field: string) => `${field}选项`,\n selectedCount: (field: string, count: number) => `${field} · 已选 ${count} 项`,\n cancel: \"取消\",\n save: \"保存\",\n empty: \"未填写\",\n yes: \"是\",\n no: \"否\",\n chooseDate: \"选择日期\",\n clearDate: \"清空日期\",\n time: \"时间\",\n timeOf: (field: string) => `${field}时间`,\n unlinked: \"未关联\",\n currentLink: \"当前关联记录\",\n chooseRecord: (field: string) => `选择${field}`,\n searchRecords: (field: string) => `搜索${field}`,\n searchRecordsPlaceholder: \"搜索关联记录…\",\n recordCandidates: \"关联记录候选项\",\n noMatchingRecords: \"没有匹配的记录\",\n loading: \"加载中…\",\n lookupFailed: \"关联记录加载失败,请重试\",\n retry: \"重试\",\n loadMore: \"加载更多记录\",\n expandRecord: \"展开记录\",\n duplicate: (count: number) => `创建 ${count} 条副本`,\n copyCells: \"复制单元格\",\n deleteRecords: (count: number) => `删除 ${count} 条记录`,\n discardTitle: \"放弃未保存的修改?\",\n discardDescription: \"关闭后当前面板中的修改将丢失。\",\n keepEditing: \"继续编辑\",\n discard: \"放弃修改\",\n },\n en: {\n edit: (field: string) => `Edit ${field}`,\n chooseOption: \"Choose an option\",\n clearChoice: \"Clear selection\",\n removedOption: (value: string) => `${value} (option removed)`,\n noOptions: \"No options yet\",\n noMatchingOptions: \"No matching options\",\n searchOptions: \"Search options\",\n searchOptionsOf: (field: string) => `Search ${field} options`,\n optionsOf: (field: string) => `${field} options`,\n selectedCount: (field: string, count: number) => `${field} · ${count} selected`,\n cancel: \"Cancel\",\n save: \"Save\",\n empty: \"Empty\",\n yes: \"Yes\",\n no: \"No\",\n chooseDate: \"Choose a date\",\n clearDate: \"Clear date\",\n time: \"Time\",\n timeOf: (field: string) => `${field} time`,\n unlinked: \"Not linked\",\n currentLink: \"Linked record\",\n chooseRecord: (field: string) => `Choose ${field}`,\n searchRecords: (field: string) => `Search ${field}`,\n searchRecordsPlaceholder: \"Search linked records…\",\n recordCandidates: \"Linked record candidates\",\n noMatchingRecords: \"No matching records\",\n loading: \"Loading…\",\n lookupFailed: \"Could not load linked records. Try again.\",\n retry: \"Retry\",\n loadMore: \"Load more records\",\n expandRecord: \"Expand record\",\n duplicate: (count: number) => `Duplicate ${count} ${count === 1 ? \"record\" : \"records\"}`,\n copyCells: \"Copy cells\",\n deleteRecords: (count: number) => `Delete ${count} ${count === 1 ? \"record\" : \"records\"}`,\n discardTitle: \"Discard unsaved changes?\",\n discardDescription: \"Closing loses the changes in this panel.\",\n keepEditing: \"Keep editing\",\n discard: \"Discard\",\n },\n};\n\nexport type CollectionChromeMessages = (typeof MESSAGES)[\"en\"];\n\nexport function collectionChromeMessages(\n locale: CollectionLocale = \"en\",\n): CollectionChromeMessages {\n return MESSAGES[locale];\n}\n\n/** Grid editors commit before Tab leaves the cell; form editors (`autoOpen: false`) keep native Tab. */\nexport function commitEditorTab(event: KeyboardEvent, props: CollectionCellEditorProps): void {\n if (event.key !== \"Tab\" || props.autoOpen === false || props.disabled) return;\n event.preventDefault();\n event.stopPropagation();\n props.onSave(event.shiftKey ? \"previous\" : \"next\");\n}\n\n/** Borderless full-cell control for grid editing. */\nexport const CELL_CONTROL_CLASS =\n \"h-full min-h-0 w-full min-w-0 rounded-none border-0 bg-transparent px-[7px] py-0 text-[inherit] shadow-none outline-none focus-visible:border-transparent focus-visible:ring-0\";\n","dependencies":["react","@uibot/renderer-react@^0.16.0"]}]},"block:collection-cell-editor":{"resourceId":"block:collection-cell-editor","title":{"zh":"collection-cell-editor","en":"collection-cell-editor"},"docs":{"zh":"Design-system cell editors for PagedCollectionGrid's renderCellEditor: text, number, long text, checkbox, single/multiple select, calendar dates (timestamps keep their time) and a searchable relation picker.","en":"Design-system cell editors for PagedCollectionGrid's renderCellEditor: text, number, long text, checkbox, single/multiple select, calendar dates (timestamps keep their time) and a searchable relation picker."},"internal":false,"distributions":[{"channel":"shadcn","name":"collection-cell-editor","version":"0.16.0","availability":"source","dependencies":{"react":"*","@uibot/renderer-react":"^0.16.0","cmdk":"^1","date-fns":"^4","lucide-react":"*","react-day-picker":"^9"},"registryDependencies":["button","calendar","checkbox","input","popover","select","@uibot/collection-shared"]}],"examples":[{"id":"collection-cell-editor-demo","title":"Interactive memory demonstration","mode":"tsx","language":"tsx","code":"/* @uibot-story\n{\n \"initial\": {\"disabled\": false, \"autoOpen\": false, \"locale\": \"zh\"},\n \"controls\": {\"disabled\": {\"type\": \"boolean\"}, \"autoOpen\": {\"type\": \"boolean\"}, \"locale\": {\"enum\": [\"zh\", \"en\"]}},\n \"variants\": [{\"name\": \"Disabled\", \"args\": {\"disabled\": true}}, {\"name\": \"Auto focus\", \"args\": {\"autoOpen\": true}}]\n}\n*/\nimport { useState } from \"react\";\nimport { CollectionCellEditor } from \"@uibot/blocks/collection-cell-editor\";\nexport default function Example(\n args: { disabled: boolean; autoOpen: boolean; locale: \"zh\" | \"en\" } = {\n disabled: false,\n autoOpen: false,\n locale: \"zh\",\n },\n) {\n const [text, setText] = useState(\"UIBot resource library\");\n const [saved, setSaved] = useState(text);\n return (\n <main className=\"mx-auto max-w-lg space-y-4 p-8\">\n <h1 className=\"text-2xl font-semibold\">编辑单元格</h1>\n <p className=\"text-muted-foreground\">内存演示,Enter 保存、Escape 恢复。</p>\n <CollectionCellEditor\n field={{ id: \"title\", name: \"标题\", type: \"singleLineText\" }}\n text={text}\n onChange={setText}\n onSave={() => setSaved(text)}\n onCancel={() => setText(saved)}\n autoOpen={args.autoOpen}\n disabled={args.disabled}\n locale={args.locale}\n />\n <p role=\"status\">已保存:{saved}</p>\n </main>\n );\n}\n","dependencies":["react","@uibot/renderer-react@^0.16.0","cmdk@^1","date-fns@^4","lucide-react","react-day-picker@^9","button","calendar","checkbox","input","popover","select","@uibot/collection-shared"]},{"id":"collection-cell-editor-0","title":"components/uibot/collection/collection-cell-editor.tsx","mode":"source","language":"tsx","code":"import { Button } from \"@/components/ui/button\";\nimport { Calendar } from \"@/components/ui/calendar\";\nimport { Checkbox } from \"@/components/ui/checkbox\";\nimport { Input } from \"@/components/ui/input\";\nimport { Popover, PopoverContent, PopoverTrigger } from \"@/components/ui/popover\";\nimport {\n Select,\n SelectContent,\n SelectItem,\n SelectTrigger,\n SelectValue,\n} from \"@/components/ui/select\";\nimport { format, isValid } from \"date-fns\";\nimport { enUS, zhCN } from \"react-day-picker/locale\";\nimport { CalendarDays, ChevronDown } from \"lucide-react\";\nimport { type KeyboardEvent, useEffect, useRef, useState } from \"react\";\nimport { CollectionRelationEditor } from \"./collection-relation-editor\";\nimport {\n CELL_CONTROL_CLASS,\n type CollectionCellEditorProps,\n collectionChromeMessages,\n commitEditorTab,\n} from \"./collection-shared\";\n\nconst TIMESTAMP = /^\\d{4}-\\d{2}-\\d{2}T.*(?:Z|[+-]\\d{2}:\\d{2})$/i;\nconst EMPTY = \"__uibot_empty_option__\";\n\n/**\n * Design-system cell editor for `PagedCollectionGrid`'s `renderCellEditor`. Linked-record fields\n * keep the grid's built-in picker: return `undefined` for them, e.g.\n * `renderCellEditor={(input) => input.field.type === \"linkedRecord\" ? undefined : <CollectionCellEditor {...input} />}`.\n */\nexport function CollectionCellEditor(props: CollectionCellEditorProps) {\n const t = collectionChromeMessages(props.locale);\n const { field } = props;\n if (field.type === \"singleSelect\" || field.type === \"multipleSelect\")\n return <CollectionChoiceEditor {...props} />;\n if (field.type === \"relation\") return <CollectionRelationEditor {...props} />;\n if (field.type === \"date\") return <CollectionDateEditor {...props} />;\n if (field.type === \"checkbox\" && props.mode === \"inline\")\n return (\n <div className=\"flex h-full w-full items-center\">\n <Checkbox\n id={props.id}\n aria-label={props.label ?? t.edit(field.name)}\n disabled={props.disabled}\n checked={props.text === \"true\"}\n onCheckedChange={(checked) => props.onChange(checked === true ? \"true\" : \"false\")}\n />\n </div>\n );\n if (field.type === \"checkbox\")\n return (\n <Select\n disabled={props.disabled}\n value={props.text || (field.required ? undefined : EMPTY)}\n onValueChange={(value) => props.onChange(value === EMPTY ? \"\" : value)}\n >\n <SelectTrigger\n id={props.id}\n onKeyDown={(event) => commitEditorTab(event, props)}\n aria-label={props.label ?? t.edit(field.name)}\n className={\n props.autoOpen === false\n ? \"h-9 w-full\"\n : \"h-full w-full rounded-none border-0 px-[7px] shadow-none focus-visible:ring-0\"\n }\n >\n <SelectValue placeholder={t.empty} />\n </SelectTrigger>\n <SelectContent\n onEscapeKeyDown={props.onCancel}\n onKeyDown={(event) => commitEditorTab(event, props)}\n >\n {!field.required && <SelectItem value={EMPTY}>{t.empty}</SelectItem>}\n <SelectItem value=\"true\">{t.yes}</SelectItem>\n <SelectItem value=\"false\">{t.no}</SelectItem>\n </SelectContent>\n </Select>\n );\n return <CollectionTextEditor {...props} />;\n}\n\n/** Text, number and long-text cells. Enter saves (Ctrl/Cmd+Enter for multiline), Escape cancels. */\nexport function CollectionTextEditor(props: CollectionCellEditorProps) {\n const { field, text, disabled, onChange, onSave, onCancel, autoOpen = true, id, label } = props;\n const t = collectionChromeMessages(props.locale);\n const ref = useRef<HTMLInputElement & HTMLTextAreaElement>(null);\n useEffect(() => {\n if (autoOpen) ref.current?.focus();\n }, [autoOpen]);\n const multiline = field.type === \"longText\" || field.type === \"json\";\n const keyDown = (event: KeyboardEvent<HTMLInputElement | HTMLTextAreaElement>) => {\n event.stopPropagation();\n if (event.key === \"Tab\" && autoOpen && !disabled) {\n event.preventDefault();\n onSave(event.shiftKey ? \"previous\" : \"next\");\n }\n if (event.key === \"Escape\") {\n event.preventDefault();\n onCancel();\n }\n if (\n event.key === \"Enter\" &&\n !event.shiftKey &&\n (!multiline || event.ctrlKey || event.metaKey)\n ) {\n event.preventDefault();\n onSave();\n }\n };\n const common = {\n ref,\n id,\n \"aria-label\": label ?? t.edit(field.name),\n disabled,\n value: text,\n onKeyDown: keyDown,\n onChange: (event: { target: { value: string } }) => onChange(event.target.value),\n };\n if (multiline)\n return (\n <textarea\n {...common}\n data-slot=\"textarea\"\n rows={autoOpen ? 1 : 3}\n className={\n autoOpen\n ? `${CELL_CONTROL_CLASS} resize-none`\n : \"w-full rounded-lg border border-input bg-transparent px-3 py-2 text-sm outline-none focus-visible:ring-2 focus-visible:ring-ring/50\"\n }\n />\n );\n return (\n <Input\n {...common}\n {...(autoOpen ? { className: CELL_CONTROL_CLASS } : {})}\n inputMode={field.type === \"number\" ? \"decimal\" : undefined}\n readOnly={field.type === \"blob\"}\n />\n );\n}\n\n/** Calendar picker. A timestamp keeps its time of day (editable below the calendar); a date stays a date. */\nexport function CollectionDateEditor(props: CollectionCellEditorProps) {\n const { field, text, disabled, onChange, onCancel, autoOpen = true, id, label } = props;\n const t = collectionChromeMessages(props.locale);\n const [open, setOpen] = useState(autoOpen);\n const timestamp = TIMESTAMP.test(text);\n const parsed = text ? new Date(timestamp ? text : `${text}T00:00:00`) : undefined;\n const selected = parsed && isValid(parsed) ? parsed : undefined;\n const selectDate = (date: Date | undefined) => {\n if (!date || disabled) return;\n if (timestamp && selected) {\n const next = new Date(selected);\n next.setFullYear(date.getFullYear(), date.getMonth(), date.getDate());\n onChange(next.getTime() === selected.getTime() ? text : next.toISOString());\n } else onChange(format(date, \"yyyy-MM-dd\"));\n setOpen(false);\n };\n return (\n <Popover open={open} onOpenChange={setOpen}>\n <PopoverTrigger asChild>\n <Button\n id={id}\n aria-label={label ?? t.edit(field.name)}\n disabled={disabled}\n variant=\"ghost\"\n className={\n autoOpen\n ? `${CELL_CONTROL_CLASS} justify-start font-normal`\n : \"h-9 w-full justify-start border border-input font-normal\"\n }\n onKeyDown={(event) => {\n event.stopPropagation();\n commitEditorTab(event, props);\n if (event.key === \"Escape\") onCancel();\n }}\n >\n <span className=\"truncate\">\n {selected\n ? format(selected, timestamp ? \"yyyy-MM-dd HH:mm:ss\" : \"yyyy-MM-dd\")\n : text || t.chooseDate}\n </span>\n <CalendarDays className=\"ml-auto size-3.5 opacity-60\" />\n </Button>\n </PopoverTrigger>\n <PopoverContent align=\"start\" className=\"w-auto p-0\" onEscapeKeyDown={onCancel}>\n <Calendar\n mode=\"single\"\n locale={props.locale === \"zh\" ? zhCN : enUS}\n selected={selected}\n defaultMonth={selected}\n onSelect={selectDate}\n disabled={disabled}\n autoFocus\n />\n {timestamp && selected && (\n <div className=\"flex items-center gap-2 border-t px-3 py-2 text-xs\">\n <span className=\"shrink-0\">{t.time}</span>\n <Input\n type=\"time\"\n aria-label={t.timeOf(field.name)}\n step=\"0.001\"\n disabled={disabled}\n value={format(selected, \"HH:mm:ss.SSS\")}\n onChange={(event) => {\n const parts = event.target.value.match(\n /^(\\d{2}):(\\d{2})(?::(\\d{2})(?:\\.(\\d{1,3}))?)?$/,\n );\n if (!parts) return;\n const next = new Date(selected);\n next.setHours(\n Number(parts[1]),\n Number(parts[2]),\n Number(parts[3] ?? 0),\n Number((parts[4] ?? \"\").padEnd(3, \"0\")),\n );\n onChange(next.toISOString());\n }}\n />\n </div>\n )}\n {!field.required && (\n <div className=\"border-t p-2\">\n <Button\n variant=\"ghost\"\n size=\"sm\"\n disabled={disabled}\n onClick={() => {\n onChange(\"\");\n setOpen(false);\n }}\n >\n {t.clearDate}\n </Button>\n </div>\n )}\n </PopoverContent>\n </Popover>\n );\n}\n\n/** Single select is a dropdown; multiple select is a searchable checklist saved explicitly. Values are option ids. */\nexport function CollectionChoiceEditor(props: CollectionCellEditorProps) {\n const { field, text, disabled, onChange, onSave, onCancel, autoOpen = true, id, label } = props;\n const t = collectionChromeMessages(props.locale);\n const [search, setSearch] = useState(\"\");\n const [open, setOpen] = useState(autoOpen);\n const options = field.options ?? [];\n if (field.type === \"singleSelect\")\n return (\n <Select\n defaultOpen={autoOpen}\n disabled={disabled}\n value={text ? `option:${text}` : \"empty\"}\n onValueChange={(value) => onChange(value === \"empty\" ? \"\" : value.slice(7))}\n >\n <SelectTrigger\n id={id}\n onKeyDown={(event) => commitEditorTab(event, props)}\n aria-label={label ?? t.edit(field.name)}\n className={\n autoOpen\n ? \"h-full w-full rounded-none border-0 bg-transparent px-[7px] shadow-none focus-visible:ring-0\"\n : \"h-9 w-full\"\n }\n >\n <SelectValue placeholder={t.chooseOption}>\n {text ? (options.find((option) => option.id === text)?.name ?? text) : t.chooseOption}\n </SelectValue>\n </SelectTrigger>\n <SelectContent\n onEscapeKeyDown={onCancel}\n onKeyDown={(event) => commitEditorTab(event, props)}\n >\n {!field.required && <SelectItem value=\"empty\">{t.clearChoice}</SelectItem>}\n {options.map((option) => (\n <SelectItem key={option.id} value={`option:${option.id}`}>\n {option.name}\n </SelectItem>\n ))}\n {text && !options.some((option) => option.id === text) && (\n <SelectItem value={`option:${text}`} disabled>\n {t.removedOption(text)}\n </SelectItem>\n )}\n {!options.length && (\n <p className=\"px-2 py-3 text-sm text-muted-foreground\">{t.noOptions}</p>\n )}\n </SelectContent>\n </Select>\n );\n const selected = text.split(\",\").filter(Boolean);\n const visible = options.filter((option) =>\n option.name.toLocaleLowerCase().includes(search.toLocaleLowerCase()),\n );\n return (\n <Popover open={open} onOpenChange={setOpen}>\n <PopoverTrigger asChild>\n <Button\n disabled={disabled}\n variant=\"ghost\"\n className={\n autoOpen\n ? \"h-full w-full justify-between rounded-none border-0 bg-transparent px-[7px] font-normal shadow-none focus-visible:ring-0\"\n : \"h-9 w-full justify-between border border-input px-3\"\n }\n id={id}\n onKeyDown={(event) => commitEditorTab(event, props)}\n aria-label={label ?? t.edit(field.name)}\n >\n <span className=\"truncate\">\n {selected\n .map((value) => options.find((option) => option.id === value)?.name ?? value)\n .join(props.locale === \"zh\" ? \"、\" : \", \") || t.chooseOption}\n </span>\n <ChevronDown size={12} />\n </Button>\n </PopoverTrigger>\n <PopoverContent\n align=\"start\"\n className=\"w-64\"\n onEscapeKeyDown={onCancel}\n onKeyDown={(event) => commitEditorTab(event, props)}\n >\n <p className=\"px-1 text-xs text-muted-foreground\">\n {t.selectedCount(field.name, selected.length)}\n </p>\n <Input\n aria-label={t.searchOptionsOf(field.name)}\n placeholder={t.searchOptions}\n value={search}\n onChange={(event) => setSearch(event.target.value)}\n className=\"h-8\"\n />\n <fieldset\n className=\"m-0 max-h-56 min-w-0 overflow-y-auto border-0 p-0\"\n aria-label={t.optionsOf(field.name)}\n >\n {visible.map((option) => (\n <Button\n key={option.id}\n role=\"checkbox\"\n aria-checked={selected.includes(option.id)}\n disabled={disabled}\n variant=\"ghost\"\n className=\"h-8 w-full justify-start px-2\"\n onClick={() =>\n onChange(\n (selected.includes(option.id)\n ? selected.filter((value) => value !== option.id)\n : [...selected, option.id]\n ).join(\",\"),\n )\n }\n >\n <span aria-hidden=\"true\" className=\"w-4\">\n {selected.includes(option.id) ? \"✓\" : \"\"}\n </span>\n {option.name}\n </Button>\n ))}\n {!visible.length && (\n <p className=\"px-2 py-3 text-sm text-muted-foreground\">\n {options.length ? t.noMatchingOptions : t.noOptions}\n </p>\n )}\n </fieldset>\n <div className=\"flex justify-end gap-2 border-t pt-2\">\n <Button\n variant=\"ghost\"\n size=\"sm\"\n disabled={disabled}\n onClick={() => {\n setOpen(false);\n onCancel();\n }}\n >\n {t.cancel}\n </Button>\n <Button\n size=\"sm\"\n disabled={disabled}\n onClick={() => {\n setOpen(false);\n onSave();\n }}\n >\n {t.save}\n </Button>\n </div>\n </PopoverContent>\n </Popover>\n );\n}\n","dependencies":["react","@uibot/renderer-react@^0.16.0","cmdk@^1","date-fns@^4","lucide-react","react-day-picker@^9"]},{"id":"collection-cell-editor-1","title":"components/uibot/collection/collection-relation-editor.tsx","mode":"source","language":"tsx","code":"import { Button } from \"@/components/ui/button\";\nimport { Input } from \"@/components/ui/input\";\nimport { Popover, PopoverContent, PopoverTrigger } from \"@/components/ui/popover\";\nimport { Command } from \"cmdk\";\nimport { Check, ChevronsUpDown } from \"lucide-react\";\nimport { useEffect, useId, useRef, useState } from \"react\";\nimport {\n type CollectionCellEditorProps,\n collectionChromeMessages,\n commitEditorTab,\n} from \"./collection-shared\";\n\nconst ITEM_CLASS =\n \"flex cursor-default items-center gap-2 rounded-md px-2 py-2 text-sm data-[selected=true]:bg-accent data-[selected=true]:text-accent-foreground\";\n\n/**\n * Searchable picker for `relation` fields over the grid's `getRelationOptions` lookup (paged,\n * debounced). The stored value stays the record id; labels are only displayed.\n */\nexport function CollectionRelationEditor(props: CollectionCellEditorProps) {\n const {\n field,\n text,\n disabled,\n getRelationOptions,\n onChange,\n onCancel,\n autoOpen = true,\n id,\n label,\n } = props;\n const t = collectionChromeMessages(props.locale);\n const [open, setOpen] = useState(autoOpen && !disabled);\n const [search, setSearch] = useState(\"\");\n const [cursor, setCursor] = useState<string>();\n const [next, setNext] = useState<string | null>(null);\n const [options, setOptions] = useState<{ id: string; label: string }[]>([]);\n const [loading, setLoading] = useState(false);\n const [error, setError] = useState(\"\");\n const [retry, setRetry] = useState(0);\n const labels = useRef(new Map<string, string>());\n const listId = useId();\n const provider = useRef(getRelationOptions);\n provider.current = getRelationOptions;\n const lookupFailed = useRef(t.lookupFailed);\n lookupFailed.current = t.lookupFailed;\n const collectionId = field.relation?.collectionId;\n const labelFieldId = field.relation?.labelFieldId;\n const available = Boolean(collectionId && getRelationOptions);\n // biome-ignore lint/correctness/useExhaustiveDependencies: retry explicitly restarts a failed lookup.\n useEffect(() => {\n if (!open || disabled || !collectionId || !available) return;\n let cancelled = false;\n setLoading(true);\n setError(\"\");\n const timer = setTimeout(\n () => {\n void provider\n .current?.({ collectionId, labelFieldId, search, cursor, limit: 50 })\n .then((result) => {\n if (cancelled) return;\n if (!result.ok) {\n setError(result.error.message);\n setNext(null);\n return;\n }\n for (const item of result.data.items) labels.current.set(item.id, item.label);\n setOptions((old) => [\n ...new Map(\n (cursor ? [...old, ...result.data.items] : result.data.items).map((item) => [\n item.id,\n item,\n ]),\n ).values(),\n ]);\n setNext(result.data.nextCursor);\n })\n .catch(() => {\n if (!cancelled) setError(lookupFailed.current);\n })\n .finally(() => {\n if (!cancelled) setLoading(false);\n });\n },\n search ? 180 : 0,\n );\n return () => {\n cancelled = true;\n clearTimeout(timer);\n };\n }, [open, disabled, collectionId, labelFieldId, search, cursor, available, retry]);\n const select = (value: string) => {\n if (disabled) return;\n onChange(value);\n setOpen(false);\n };\n return (\n <Popover open={open && !disabled} onOpenChange={setOpen}>\n <PopoverTrigger asChild>\n <Button\n id={id}\n onKeyDown={(event) => commitEditorTab(event, props)}\n variant=\"outline\"\n role=\"combobox\"\n aria-label={label ?? t.edit(field.name)}\n aria-expanded={open && !disabled}\n aria-controls={listId}\n disabled={disabled || !available}\n className={\n autoOpen\n ? \"h-full min-h-0 w-full min-w-0 justify-between rounded-none border-0 bg-transparent px-[7px] py-0 text-[inherit] shadow-none focus-visible:ring-0\"\n : \"h-9 w-full min-w-0 justify-between\"\n }\n >\n <span\n className=\"min-w-0 truncate\"\n title={text ? (labels.current.get(text) ?? text) : undefined}\n >\n {text ? (labels.current.get(text) ?? t.currentLink) : t.unlinked}\n </span>\n <ChevronsUpDown size={14} className=\"shrink-0 text-muted-foreground\" />\n </Button>\n </PopoverTrigger>\n <PopoverContent\n align=\"start\"\n className=\"w-80 max-w-[calc(100vw-2rem)] gap-0 p-1\"\n onEscapeKeyDown={(event) => {\n event.stopPropagation();\n onCancel();\n }}\n onKeyDown={(event) => {\n event.stopPropagation();\n commitEditorTab(event, props);\n }}\n >\n <Command shouldFilter={false} label={t.chooseRecord(field.name)}>\n <Command.Input\n asChild\n value={search}\n onValueChange={(value) => {\n setSearch(value);\n setCursor(undefined);\n setNext(null);\n setOptions([]);\n }}\n >\n <Input\n aria-label={t.searchRecords(field.name)}\n placeholder={t.searchRecordsPlaceholder}\n className=\"mb-1 h-8\"\n />\n </Command.Input>\n <Command.List\n id={listId}\n className=\"max-h-64 overflow-y-auto\"\n aria-busy={loading}\n aria-label={t.recordCandidates}\n >\n {!field.required && !search && (\n <Command.Item value=\"__empty__\" onSelect={() => select(\"\")} className={ITEM_CLASS}>\n <Check size={14} className={text ? \"invisible\" : \"\"} />\n {t.unlinked}\n </Command.Item>\n )}\n {!loading && !error && options.length === 0 && (\n <Command.Empty className=\"px-2 py-4 text-sm text-muted-foreground\">\n {t.noMatchingRecords}\n </Command.Empty>\n )}\n {options.map((option) => (\n <Command.Item\n key={option.id}\n value={option.id}\n onSelect={() => select(option.id)}\n className={ITEM_CLASS}\n >\n <Check\n size={14}\n className={text === option.id ? \"shrink-0\" : \"invisible shrink-0\"}\n />\n <span className=\"min-w-0 truncate\" title={option.label}>\n {option.label}\n </span>\n </Command.Item>\n ))}\n </Command.List>\n </Command>\n {loading && (\n <p role=\"status\" className=\"px-2 py-2 text-xs text-muted-foreground\">\n {t.loading}\n </p>\n )}\n {error && (\n <div role=\"alert\" className=\"p-2 text-sm\">\n <p>{error}</p>\n <Button variant=\"ghost\" size=\"sm\" onClick={() => setRetry((value) => value + 1)}>\n {t.retry}\n </Button>\n </div>\n )}\n {next && (\n <Button variant=\"ghost\" size=\"sm\" disabled={loading} onClick={() => setCursor(next)}>\n {t.loadMore}\n </Button>\n )}\n </PopoverContent>\n </Popover>\n );\n}\n","dependencies":["react","@uibot/renderer-react@^0.16.0","cmdk@^1","date-fns@^4","lucide-react","react-day-picker@^9"]}]},"block:collection-record-menu":{"resourceId":"block:collection-record-menu","title":{"zh":"collection-record-menu","en":"collection-record-menu"},"docs":{"zh":"Right-click record actions (expand, duplicate, copy cells, delete) for renderRecordContextMenu.","en":"Right-click record actions (expand, duplicate, copy cells, delete) for renderRecordContextMenu."},"internal":false,"distributions":[{"channel":"shadcn","name":"collection-record-menu","version":"0.16.0","availability":"source","dependencies":{"react":"*","@uibot/renderer-react":"^0.16.0"},"registryDependencies":["context-menu","@uibot/collection-shared"]}],"examples":[{"id":"collection-record-menu-demo","title":"Interactive memory demonstration","mode":"tsx","language":"tsx","code":"/* @uibot-story\n{\n \"initial\": {\"disabled\": false, \"locale\": \"zh\"},\n \"controls\": {\"disabled\": {\"type\": \"boolean\"}, \"locale\": {\"enum\": [\"zh\", \"en\"]}},\n \"variants\": [{\"name\": \"Disabled\", \"args\": {\"disabled\": true}}, {\"name\": \"English\", \"args\": {\"locale\": \"en\"}}]\n}\n*/\nimport { useState } from \"react\";\nimport { CollectionRecordMenu } from \"@uibot/blocks/collection-record-menu\";\nexport default function Example(\n args: { disabled: boolean; locale: \"zh\" | \"en\" } = { disabled: false, locale: \"zh\" },\n) {\n const [receipt, setReceipt] = useState(\"右键,或聚焦卡片后按 Shift+F10\");\n return (\n <main className=\"mx-auto max-w-lg space-y-4 p-8\">\n <h1 className=\"text-2xl font-semibold\">记录操作菜单</h1>\n <CollectionRecordMenu\n recordIds={[\"demo-1\"]}\n disabled={args.disabled}\n locale={args.locale}\n onDelete={() => setReceipt(\"演示:删除回调,无服务端写入\")}\n onCopy={() => setReceipt(\"演示:复制回调\")}\n onDuplicate={() => setReceipt(\"演示:复制记录回调\")}\n onExpand={() => setReceipt(\"演示:展开记录回调\")}\n >\n <button type=\"button\" className=\"w-full rounded-xl border p-8 text-left\">\n UIBot · 资源发布任务\n </button>\n </CollectionRecordMenu>\n <p role=\"status\">{receipt}</p>\n </main>\n );\n}\n","dependencies":["react","@uibot/renderer-react@^0.16.0","context-menu","@uibot/collection-shared"]},{"id":"collection-record-menu-0","title":"components/uibot/collection/collection-record-menu.tsx","mode":"source","language":"tsx","code":"import {\n ContextMenu,\n ContextMenuContent,\n ContextMenuItem,\n ContextMenuTrigger,\n} from \"@/components/ui/context-menu\";\nimport { type CollectionRecordMenuProps, collectionChromeMessages } from \"./collection-shared\";\n\n/**\n * Right-click record actions for `PagedCollectionGrid`'s `renderRecordContextMenu`. The grid keeps\n * selection and mutations; this only offers the actions it passes.\n */\nexport function CollectionRecordMenu({\n children,\n recordIds,\n disabled,\n onDelete,\n onExpand,\n onCopy,\n onDuplicate,\n locale,\n}: CollectionRecordMenuProps) {\n const t = collectionChromeMessages(locale);\n return (\n <ContextMenu>\n <ContextMenuTrigger asChild>{children}</ContextMenuTrigger>\n <ContextMenuContent>\n {onExpand ? <ContextMenuItem onSelect={onExpand}>{t.expandRecord}</ContextMenuItem> : null}\n {onDuplicate ? (\n <ContextMenuItem disabled={disabled} onSelect={onDuplicate}>\n {t.duplicate(recordIds.length)}\n </ContextMenuItem>\n ) : null}\n <ContextMenuItem disabled={recordIds.length === 0} onSelect={onCopy}>\n {t.copyCells}\n </ContextMenuItem>\n <ContextMenuItem\n className=\"text-destructive focus:text-destructive\"\n disabled={disabled}\n onSelect={onDelete}\n >\n {t.deleteRecords(recordIds.length)}\n </ContextMenuItem>\n </ContextMenuContent>\n </ContextMenu>\n );\n}\n","dependencies":["react","@uibot/renderer-react@^0.16.0"]}]},"block:collection-panel-drawer":{"resourceId":"block:collection-panel-drawer","title":{"zh":"collection-panel-drawer","en":"collection-panel-drawer"},"docs":{"zh":"Right-hand drawer for PagedCollectionWorkspace's renderPanel; a busy panel stays open and unsaved edits ask before closing.\n\n## TypeScript props, callbacks and slots\n\nSource: packages/renderer-react/registry/collection/collection-panel-drawer.tsx\n\n```tsx\nexport type CollectionPanelDrawerProps = Pick<\n Parameters<NonNullable<PagedCollectionWorkspaceProps[\"renderPanel\"]>>[0],\n \"title\" | \"dirty\" | \"busy\" | \"onClose\"\n> & { children: ReactNode; locale?: CollectionLocale };\n```","en":"Right-hand drawer for PagedCollectionWorkspace's renderPanel; a busy panel stays open and unsaved edits ask before closing.\n\n## TypeScript props, callbacks and slots\n\nSource: packages/renderer-react/registry/collection/collection-panel-drawer.tsx\n\n```tsx\nexport type CollectionPanelDrawerProps = Pick<\n Parameters<NonNullable<PagedCollectionWorkspaceProps[\"renderPanel\"]>>[0],\n \"title\" | \"dirty\" | \"busy\" | \"onClose\"\n> & { children: ReactNode; locale?: CollectionLocale };\n```"},"internal":false,"distributions":[{"channel":"shadcn","name":"collection-panel-drawer","version":"0.16.0","availability":"source","dependencies":{"react":"*","@uibot/renderer-react":"^0.16.0"},"registryDependencies":["button","dialog","@uibot/collection-shared"]}],"examples":[{"id":"collection-panel-drawer-demo","title":"Interactive memory demonstration","mode":"tsx","language":"tsx","code":"/* @uibot-story\n{\n \"initial\": {\"title\": \"编辑记录\", \"busy\": false, \"locale\": \"zh\"},\n \"controls\": {\"title\": {\"type\": \"string\"}, \"busy\": {\"type\": \"boolean\"}, \"locale\": {\"enum\": [\"zh\", \"en\"]}},\n \"variants\": [{\"name\": \"Busy\", \"args\": {\"busy\": true}}, {\"name\": \"English\", \"args\": {\"locale\": \"en\", \"title\": \"Edit record\"}}]\n}\n*/\nimport { useState } from \"react\";\nimport { CollectionPanelDrawer } from \"@uibot/blocks/collection-panel-drawer\";\nexport default function Example(\n args: { title: string; busy: boolean; locale: \"zh\" | \"en\" } = {\n title: \"编辑记录\",\n busy: false,\n locale: \"zh\",\n },\n) {\n const [open, setOpen] = useState(false);\n const [text, setText] = useState(\"Release notes\");\n return (\n <main className=\"p-8\">\n <button\n type=\"button\"\n className=\"rounded-md bg-primary px-4 py-2 text-primary-foreground\"\n onClick={() => setOpen(true)}\n >\n 打开记录\n </button>\n {open && (\n <CollectionPanelDrawer\n title={args.title}\n dirty={text !== \"Release notes\"}\n busy={args.busy}\n onClose={() => setOpen(false)}\n locale={args.locale}\n >\n <label className=\"flex flex-col gap-2\">\n 标题\n <input\n className=\"rounded border p-2\"\n value={text}\n onChange={(e) => setText(e.target.value)}\n />\n </label>\n <p className=\"mt-4 text-sm text-muted-foreground\">\n 修改后关闭,检查草稿保护提示。此演示只在内存保存。\n </p>\n </CollectionPanelDrawer>\n )}\n </main>\n );\n}\n","dependencies":["react","@uibot/renderer-react@^0.16.0","button","dialog","@uibot/collection-shared"]},{"id":"collection-panel-drawer-0","title":"components/uibot/collection/collection-panel-drawer.tsx","mode":"source","language":"tsx","code":"import { Button } from \"@/components/ui/button\";\nimport { Dialog, DialogContent, DialogDescription, DialogTitle } from \"@/components/ui/dialog\";\nimport type { PagedCollectionWorkspaceProps } from \"@uibot/renderer-react/collection-workspace\";\nimport { type ReactNode, useState } from \"react\";\nimport { type CollectionLocale, collectionChromeMessages } from \"./collection-shared\";\n\nexport type CollectionPanelDrawerProps = Pick<\n Parameters<NonNullable<PagedCollectionWorkspaceProps[\"renderPanel\"]>>[0],\n \"title\" | \"dirty\" | \"busy\" | \"onClose\"\n> & { children: ReactNode; locale?: CollectionLocale };\n\n/**\n * Right-hand drawer for `PagedCollectionWorkspace`'s `renderPanel` (record, field and view panels).\n * A busy panel stays open; unsaved edits ask before closing.\n */\nexport function CollectionPanelDrawer({\n title,\n dirty,\n busy,\n children,\n onClose,\n locale,\n}: CollectionPanelDrawerProps) {\n const t = collectionChromeMessages(locale);\n const [confirming, setConfirming] = useState(false);\n const requestClose = () => {\n if (busy) return;\n if (dirty) setConfirming(true);\n else onClose();\n };\n return (\n <>\n <Dialog open onOpenChange={(open) => !open && requestClose()}>\n <DialogContent\n data-slot=\"collection-panel-drawer\"\n // The panels handle Escape themselves (and confirm discarding), so the drawer must not ask twice.\n onEscapeKeyDown={(event) => event.preventDefault()}\n className=\"top-0 right-0 left-auto flex h-dvh max-h-none w-full max-w-xl translate-x-0 translate-y-0 flex-col gap-4 rounded-none rounded-l-xl border-y-0 border-r-0 sm:max-w-xl\"\n >\n <DialogTitle className=\"pr-8 text-lg font-semibold\">{title}</DialogTitle>\n <DialogDescription className=\"sr-only\">{title}</DialogDescription>\n <div className=\"min-h-0 flex-1 overflow-y-auto\">{children}</div>\n </DialogContent>\n </Dialog>\n <Dialog open={confirming} onOpenChange={setConfirming}>\n <DialogContent>\n <DialogTitle className=\"pr-6 text-lg font-semibold\">{t.discardTitle}</DialogTitle>\n <DialogDescription className=\"text-sm text-muted-foreground\">\n {t.discardDescription}\n </DialogDescription>\n <div className=\"flex justify-end gap-2\">\n <Button variant=\"outline\" size=\"sm\" onClick={() => setConfirming(false)}>\n {t.keepEditing}\n </Button>\n <Button\n variant=\"destructive\"\n size=\"sm\"\n onClick={() => {\n setConfirming(false);\n onClose();\n }}\n >\n {t.discard}\n </Button>\n </div>\n </DialogContent>\n </Dialog>\n </>\n );\n}\n","dependencies":["react","@uibot/renderer-react@^0.16.0"]}]},"block:preview-device-frame":{"resourceId":"block:preview-device-frame","title":{"zh":"preview-device-frame","en":"preview-device-frame"},"docs":{"zh":"CSS-only preview shell with a phone / tablet / desktop width switch (no nested iframe).\n\n## TypeScript props, callbacks and slots\n\nSource: packages/web-preview/registry/preview/preview-device-frame.tsx\n\n```tsx\nexport interface DeviceFrameProps {\n children: ReactNode;\n /** Controlled preset; omit to keep it internal (default phone). */\n preset?: DeviceFramePreset;\n onPresetChange?: (preset: DeviceFramePreset) => void;\n locale?: DeviceFrameLocale;\n className?: string;\n}\n```","en":"CSS-only preview shell with a phone / tablet / desktop width switch (no nested iframe).\n\n## TypeScript props, callbacks and slots\n\nSource: packages/web-preview/registry/preview/preview-device-frame.tsx\n\n```tsx\nexport interface DeviceFrameProps {\n children: ReactNode;\n /** Controlled preset; omit to keep it internal (default phone). */\n preset?: DeviceFramePreset;\n onPresetChange?: (preset: DeviceFramePreset) => void;\n locale?: DeviceFrameLocale;\n className?: string;\n}\n```"},"internal":false,"distributions":[{"channel":"shadcn","name":"preview-device-frame","version":"0.16.0","availability":"source","dependencies":{"react":"*","lucide-react":"*"},"registryDependencies":["button"]}],"examples":[{"id":"preview-device-frame-demo","title":"Interactive memory demonstration","mode":"tsx","language":"tsx","code":"/* @uibot-story\n{\n \"initial\": {\"preset\": \"phone\", \"locale\": \"zh\"},\n \"controls\": {\"preset\": {\"enum\": [\"phone\", \"tablet\", \"desktop\"]}, \"locale\": {\"enum\": [\"zh\", \"en\"]}},\n \"variants\": [{\"name\": \"Tablet\", \"args\": {\"preset\": \"tablet\"}}, {\"name\": \"Desktop\", \"args\": {\"preset\": \"desktop\"}}]\n}\n*/\nimport { useState, type ReactNode } from \"react\";\nimport { DeviceFrame } from \"@uibot/blocks/preview-device-frame\";\nfunction ControlledFrame({\n args,\n children,\n}: {\n args: { preset: \"phone\" | \"tablet\" | \"desktop\"; locale: \"zh\" | \"en\" };\n children: ReactNode;\n}) {\n const [preset, setPreset] = useState(args.preset);\n return (\n <DeviceFrame preset={preset} onPresetChange={setPreset} locale={args.locale}>\n {children}\n </DeviceFrame>\n );\n}\nexport default function Example(\n args: { preset: \"phone\" | \"tablet\" | \"desktop\"; locale: \"zh\" | \"en\" } = {\n preset: \"phone\",\n locale: \"zh\",\n },\n) {\n return (\n <main className=\"min-h-screen bg-muted p-4\">\n <ControlledFrame key={`${args.preset}:${args.locale}`} args={args}>\n <article className=\"space-y-4 bg-background p-8\">\n <p className=\"text-sm text-muted-foreground\">UIBot Preview</p>\n <h1 className=\"text-3xl font-semibold\">One interface. Every screen.</h1>\n <p>切换手机、平板与桌面,检查真实布局。</p>\n <button type=\"button\" className=\"rounded-md bg-primary px-4 py-2 text-primary-foreground\">\n 开始探索\n </button>\n </article>\n </ControlledFrame>\n </main>\n );\n}\n","dependencies":["react","lucide-react","button"]},{"id":"preview-device-frame-0","title":"components/uibot/preview/preview-device-frame.tsx","mode":"source","language":"tsx","code":"import { Button } from \"@/components/ui/button\";\nimport { Monitor, Smartphone, Tablet } from \"lucide-react\";\nimport { type ReactNode, useState } from \"react\";\n\nexport type DeviceFramePreset = \"phone\" | \"tablet\" | \"desktop\";\nexport type DeviceFrameLocale = \"zh\" | \"en\";\n\n/** Phone and tablet cap the width; desktop is fluid. */\nexport const DEVICE_FRAME_WIDTHS: Record<DeviceFramePreset, string | null> = {\n phone: \"390px\",\n tablet: \"768px\",\n desktop: null,\n};\n\nconst MESSAGES = {\n zh: { toolbar: \"预览设备尺寸\", phone: \"手机\", tablet: \"平板\", desktop: \"桌面\" },\n en: { toolbar: \"Preview device size\", phone: \"Phone\", tablet: \"Tablet\", desktop: \"Desktop\" },\n};\n\nconst ICONS = { phone: Smartphone, tablet: Tablet, desktop: Monitor };\n\nexport interface DeviceFrameProps {\n children: ReactNode;\n /** Controlled preset; omit to keep it internal (default phone). */\n preset?: DeviceFramePreset;\n onPresetChange?: (preset: DeviceFramePreset) => void;\n locale?: DeviceFrameLocale;\n className?: string;\n}\n\n/** CSS-only preview shell with a phone / tablet / desktop switch. No nested iframe. */\nexport function DeviceFrame({\n children,\n preset: controlled,\n onPresetChange,\n locale = \"en\",\n className,\n}: DeviceFrameProps) {\n const t = MESSAGES[locale];\n const [internal, setInternal] = useState<DeviceFramePreset>(\"phone\");\n const preset = controlled ?? internal;\n const setPreset = (next: DeviceFramePreset) => {\n if (controlled === undefined) setInternal(next);\n onPresetChange?.(next);\n };\n const maxWidth = DEVICE_FRAME_WIDTHS[preset];\n return (\n <div className={`flex min-h-0 flex-1 flex-col gap-2${className ? ` ${className}` : \"\"}`}>\n <fieldset\n aria-label={t.toolbar}\n className=\"m-0 flex min-w-0 shrink-0 items-center gap-1 border-0 p-0\"\n >\n {(Object.keys(DEVICE_FRAME_WIDTHS) as DeviceFramePreset[]).map((key) => {\n const Icon = ICONS[key];\n return (\n <Button\n key={key}\n type=\"button\"\n size=\"sm\"\n variant={preset === key ? \"secondary\" : \"ghost\"}\n aria-pressed={preset === key}\n onClick={() => setPreset(key)}\n >\n <Icon />\n {t[key]}\n </Button>\n );\n })}\n </fieldset>\n <div className=\"flex min-h-0 flex-1 justify-center overflow-auto p-1\">\n <div\n data-preset={preset}\n className={\n preset === \"desktop\"\n ? \"flex min-h-0 w-full flex-1 flex-col overflow-hidden rounded-md border bg-background\"\n : \"flex min-h-0 w-full flex-1 flex-col overflow-hidden rounded-[1.25rem] border bg-background shadow-sm\"\n }\n style={maxWidth ? { maxWidth, width: \"100%\" } : { width: \"100%\" }}\n >\n {children}\n </div>\n </div>\n </div>\n );\n}\n","dependencies":["react","lucide-react"]}]},"package:uibot-agents":{"resourceId":"package:uibot-agents","title":{"zh":"@uibot/agents","en":"@uibot/agents"},"docs":{"zh":"# @uibot/agents\n\n@uibot/agents public SDK\n\nSee the public exports and integration examples. Host configuration is required.","en":"# @uibot/agents\n\n@uibot/agents public SDK\n\nSee the public exports and integration examples. Host configuration is required."},"examples":[{"id":"agents","title":"@uibot/agents integration","mode":"source","language":"ts","code":"import { parseAgentFrontmatter } from \"@uibot/agents\";\n\nconsole.log(parseAgentFrontmatter(\"---\\nid: assistant\\nname: Assistant\\n---\\nHelp with UI tasks.\"));\n","dependencies":["@uibot/agents@0.16.0"]}],"distributions":[{"channel":"npm","name":"@uibot/agents","version":"0.16.0","availability":"source","dependencies":{"@uibot/context":"0.16.0","@uibot/contracts":"0.16.0","@langchain/anthropic":"^1.5.5","@langchain/core":"^1.2.6","@langchain/langgraph":"^1.4.4","@langchain/langgraph-checkpoint":"^1.1.2","@langchain/langgraph-sdk":"^1.9.23","@langchain/openai":"^1.5.7","deepagents":"^1.12.3","langchain":"1.5.6","langsmith":"^0.7.1","yaml":"2.9.1","zod":"^4.4.3"}}]},"package:uibot-ai-chat":{"resourceId":"package:uibot-ai-chat","title":{"zh":"@uibot/ai-chat","en":"@uibot/ai-chat"},"docs":{"zh":"# @uibot/ai-chat\n\n@uibot/ai-chat public SDK\n\nSee the public exports and integration examples. Host configuration is required.","en":"# @uibot/ai-chat\n\n@uibot/ai-chat public SDK\n\nSee the public exports and integration examples. Host configuration is required."},"examples":[{"id":"ai-chat","title":"@uibot/ai-chat integration","mode":"tsx","language":"tsx","code":"/* @uibot-story\n{\n \"initial\": {\"status\": \"ready\", \"thread\": \"conversation\"},\n \"controls\": {\"status\": {\"enum\": [\"ready\", \"submitted\", \"streaming\", \"error\"]}, \"thread\": {\"enum\": [\"conversation\", \"complete\", \"empty\"]}},\n \"variants\": [{\"name\": \"Streaming\", \"args\": {\"status\": \"streaming\"}}, {\"name\": \"Rich content\", \"args\": {\"thread\": \"complete\"}}, {\"name\": \"Empty\", \"args\": {\"thread\": \"empty\"}}]\n}\n*/\nimport { ChatSurface, CANNED_CHAT_MESSAGES } from \"@uibot/ai-chat\";\nexport default function Example(\n args: {\n status: \"ready\" | \"submitted\" | \"streaming\" | \"error\";\n thread: \"conversation\" | \"complete\" | \"empty\";\n } = { status: \"ready\", thread: \"conversation\" },\n) {\n return (\n <main className=\"flex h-screen min-h-0 flex-col p-4\">\n <ChatSurface\n messages={\n args.thread === \"empty\"\n ? []\n : args.thread === \"complete\"\n ? CANNED_CHAT_MESSAGES\n : CANNED_CHAT_MESSAGES.slice(0, 2).map((message) => ({\n ...message,\n parts: message.parts.filter((part) => part.type === \"text\"),\n }))\n }\n status={args.status}\n />\n </main>\n );\n}\n","dependencies":["@uibot/ai-chat@0.16.0"]}],"distributions":[{"channel":"npm","name":"@uibot/ai-chat","version":"0.16.0","availability":"source","dependencies":{"@ai-sdk/react":"4.0.126","@uibot/contracts":"0.16.0","@shadcn/react":"0.3.1","@streamdown/code":"2.0.0","@streamdown/math":"1.0.3","@streamdown/mermaid":"1.0.3","ai":"7.0.123","class-variance-authority":"^0.7.1","clsx":"^2.1.1","katex":"0.16.47","lucide-react":"^1.56.0","radix-ui":"1.4.3","remend":"1.4.0","streamdown":"2.7.0","zod":"4.6.7","react":">=18","react-dom":">=18"}}]},"package:uibot-application":{"resourceId":"package:uibot-application","title":{"zh":"@uibot/application","en":"@uibot/application"},"docs":{"zh":"# @uibot/application\n\n@uibot/application public SDK\n\nSee the public exports and integration examples. Host configuration is required.","en":"# @uibot/application\n\n@uibot/application public SDK\n\nSee the public exports and integration examples. Host configuration is required."},"examples":[{"id":"application","title":"@uibot/application integration","mode":"source","language":"ts","code":"import {\n createUIBotStudioHttpHandler,\n type CreateUIBotStudioHttpHandlerOptions,\n} from \"@uibot/application\";\n\n// Server-only integration; the host supplies service, authentication and tenancy.\nexport function snapshotRoute(options: CreateUIBotStudioHttpHandlerOptions) {\n return createUIBotStudioHttpHandler(options);\n}\n","dependencies":["@uibot/application@0.16.0"]}],"distributions":[{"channel":"npm","name":"@uibot/application","version":"0.16.0","availability":"source","dependencies":{"@uibot/artifact-exporters":"0.16.0","@uibot/compiler":"0.16.0","@uibot/context":"0.16.0","@uibot/context-code":"0.16.0","@uibot/contracts":"0.16.0","@uibot/design-md":"0.16.0","@uibot/registry":"0.16.0","@uibot/renderer-react":"0.16.0","@uibot/runtime":"0.16.0","parse5":"7.3.0","@uibot/page-annotation":"0.16.0","@uibot/web-preview":"0.16.0"}}]},"package:uibot-artifact-exporters":{"resourceId":"package:uibot-artifact-exporters","title":{"zh":"@uibot/artifact-exporters","en":"@uibot/artifact-exporters"},"docs":{"zh":"# @uibot/artifact-exporters\n\n@uibot/artifact-exporters public SDK\n\nSee the public exports and integration examples. Host configuration is required.","en":"# @uibot/artifact-exporters\n\n@uibot/artifact-exporters public SDK\n\nSee the public exports and integration examples. Host configuration is required."},"examples":[{"id":"artifact-exporters","title":"@uibot/artifact-exporters integration","mode":"source","language":"ts","code":"import { buildStandaloneHtml } from \"@uibot/artifact-exporters\";\n\nconsole.log(buildStandaloneHtml(\"<main><h1>Hello</h1></main>\", \"My page\"));\n","dependencies":["@uibot/artifact-exporters@0.16.0"]}],"distributions":[{"channel":"npm","name":"@uibot/artifact-exporters","version":"0.16.0","availability":"source","dependencies":{}}]},"package:uibot-blocks-base":{"resourceId":"package:uibot-blocks-base","title":{"zh":"@uibot/blocks-base","en":"@uibot/blocks-base"},"docs":{"zh":"# @uibot/blocks-base\n\n@uibot/blocks-base public SDK\n\nSee the public exports and integration examples. Host configuration is required.","en":"# @uibot/blocks-base\n\n@uibot/blocks-base public SDK\n\nSee the public exports and integration examples. Host configuration is required."},"examples":[{"id":"blocks-base","title":"@uibot/blocks-base integration","mode":"source","language":"ts","code":"import { createUIBotBlocksBasePlugin } from \"@uibot/blocks-base\";\n\nexport const plugin = createUIBotBlocksBasePlugin();\n","dependencies":["@uibot/blocks-base@0.16.0"]}],"distributions":[{"channel":"npm","name":"@uibot/blocks-base","version":"0.16.0","availability":"source","dependencies":{"@uibot/contracts":"0.16.0","@uibot/plugin-sdk":"0.16.0","@uibot/renderer-react":"0.16.0","react":">=18","react-dom":">=18"}}]},"package:uibot-blocks-shadcn":{"resourceId":"package:uibot-blocks-shadcn","title":{"zh":"@uibot/blocks-shadcn","en":"@uibot/blocks-shadcn"},"docs":{"zh":"# @uibot/blocks-shadcn\n\n@uibot/blocks-shadcn public SDK\n\nSee the public exports and integration examples. Host configuration is required.","en":"# @uibot/blocks-shadcn\n\n@uibot/blocks-shadcn public SDK\n\nSee the public exports and integration examples. Host configuration is required."},"examples":[{"id":"blocks-shadcn","title":"@uibot/blocks-shadcn integration","mode":"source","language":"ts","code":"import { createShadcnReactRegistry } from \"@uibot/blocks-shadcn\";\n\nexport const registry = createShadcnReactRegistry();\n","dependencies":["@uibot/blocks-shadcn@0.16.0"]}],"distributions":[{"channel":"npm","name":"@uibot/blocks-shadcn","version":"0.16.0","availability":"source","dependencies":{"radix-ui":"1.8.1","react-day-picker":"^9.14.0","@uibot/contracts":">=0.16.0","@uibot/plugin-sdk":">=0.16.0","@uibot/renderer-react":">=0.16.0","react":">=18","react-dom":">=18"}}]},"package:uibot-blocks-studio":{"resourceId":"package:uibot-blocks-studio","title":{"zh":"@uibot/blocks-studio","en":"@uibot/blocks-studio"},"docs":{"zh":"# @uibot/blocks-studio\n\n@uibot/blocks-studio public SDK\n\nSee the public exports and integration examples. Host configuration is required.","en":"# @uibot/blocks-studio\n\n@uibot/blocks-studio public SDK\n\nSee the public exports and integration examples. Host configuration is required."},"examples":[{"id":"blocks-studio","title":"@uibot/blocks-studio integration","mode":"source","language":"ts","code":"import { createStudioReactRegistry } from \"@uibot/blocks-studio\";\n\nexport const registry = createStudioReactRegistry();\n","dependencies":["@uibot/blocks-studio@0.16.0"]}],"distributions":[{"channel":"npm","name":"@uibot/blocks-studio","version":"0.16.0","availability":"source","dependencies":{"@uibot/contracts":"0.16.0","@uibot/plugin-sdk":"0.16.0","@uibot/renderer-react":"0.16.0","react":">=18","react-dom":">=18"}}]},"package:uibot-cli":{"resourceId":"package:uibot-cli","title":{"zh":"@uibot/cli","en":"@uibot/cli"},"docs":{"zh":"# @uibot/cli\n\n@uibot/cli public SDK\n\nSee the public exports and integration examples. Host configuration is required.","en":"# @uibot/cli\n\n@uibot/cli public SDK\n\nSee the public exports and integration examples. Host configuration is required."},"examples":[{"id":"cli","title":"@uibot/cli integration","mode":"source","language":"ts","code":"import { loadBuiltInResourceQueryService, runResourceCommand } from \"@uibot/cli\";\n\nconst queryService = await loadBuiltInResourceQueryService();\nawait runResourceCommand(\"install-plan\", [\"template:shadcn-admin\", \"--mode\", \"json\"], {\n queryService,\n});\n","dependencies":["@uibot/cli@0.16.0"]}],"distributions":[{"channel":"npm","name":"@uibot/cli","version":"0.16.0","availability":"source","dependencies":{"@uibot/blocks-shadcn":"0.16.0","@uibot/blocks-studio":"0.16.0","@uibot/contracts":"0.16.0","@uibot/design-md":"0.16.0","@uibot/evaluation":"0.16.0","@uibot/registry":"0.16.0","@uibot/skills":"0.16.0"}}]},"package:uibot-compiler":{"resourceId":"package:uibot-compiler","title":{"zh":"@uibot/compiler","en":"@uibot/compiler"},"docs":{"zh":"# @uibot/compiler\n\n@uibot/compiler public SDK\n\nSee the public exports and integration examples. Host configuration is required.","en":"# @uibot/compiler\n\n@uibot/compiler public SDK\n\nSee the public exports and integration examples. Host configuration is required."},"examples":[{"id":"compiler","title":"@uibot/compiler integration","mode":"source","language":"ts","code":"import { compileSpec } from \"@uibot/compiler\";\n\nconst spec = { version: \"2.0\" as const, pages: [{ id: \"home\", path: \"/\", blocks: [] }] };\nconst result = await compileSpec(\n spec,\n { components: {}, actions: {}, templates: {} },\n { strict: true },\n);\nconsole.log(result.spec.pages, result.gaps);\n","dependencies":["@uibot/compiler@0.16.0"]}],"distributions":[{"channel":"npm","name":"@uibot/compiler","version":"0.16.0","availability":"source","dependencies":{"@uibot/contracts":"0.16.0","yaml":"^2.8.1"}}]},"package:uibot-connection-http":{"resourceId":"package:uibot-connection-http","title":{"zh":"@uibot/connection-http","en":"@uibot/connection-http"},"docs":{"zh":"# @uibot/connection-http\n\n@uibot/connection-http public SDK\n\nSee the public exports and integration examples. Host configuration is required.","en":"# @uibot/connection-http\n\n@uibot/connection-http public SDK\n\nSee the public exports and integration examples. Host configuration is required."},"examples":[{"id":"connection-http","title":"@uibot/connection-http integration","mode":"source","language":"ts","code":"import { createUIBotConnectionHttpPlugin } from \"@uibot/connection-http\";\n\nexport const plugin = createUIBotConnectionHttpPlugin();\n// Register with your PluginHost. The host supplies connections and secret resolution.\n","dependencies":["@uibot/connection-http@0.16.0"]}],"distributions":[{"channel":"npm","name":"@uibot/connection-http","version":"0.16.0","availability":"source","dependencies":{"@uibot/contracts":"0.16.0","@uibot/plugin-sdk":"0.16.0"}}]},"package:uibot-connection-mock":{"resourceId":"package:uibot-connection-mock","title":{"zh":"@uibot/connection-mock","en":"@uibot/connection-mock"},"docs":{"zh":"# @uibot/connection-mock\n\n@uibot/connection-mock public SDK\n\nSee the public exports and integration examples. Host configuration is required.","en":"# @uibot/connection-mock\n\n@uibot/connection-mock public SDK\n\nSee the public exports and integration examples. Host configuration is required."},"examples":[{"id":"connection-mock","title":"@uibot/connection-mock integration","mode":"source","language":"ts","code":"import { createMockPluginWithSeeds } from \"@uibot/connection-mock\";\n\nexport const plugin = createMockPluginWithSeeds({ tasks: [{ id: \"1\", title: \"Explore UIBot\" }] });\n// Memory demonstration data; this is not durable storage.\n","dependencies":["@uibot/connection-mock@0.16.0"]}],"distributions":[{"channel":"npm","name":"@uibot/connection-mock","version":"0.16.0","availability":"source","dependencies":{"@uibot/contracts":"0.16.0","@uibot/plugin-sdk":"0.16.0"}}]},"package:uibot-connection-nowapi":{"resourceId":"package:uibot-connection-nowapi","title":{"zh":"@uibot/connection-nowapi","en":"@uibot/connection-nowapi"},"docs":{"zh":"# @uibot/connection-nowapi\n\n@uibot/connection-nowapi public SDK\n\nSee the public exports and integration examples. Host configuration is required.","en":"# @uibot/connection-nowapi\n\n@uibot/connection-nowapi public SDK\n\nSee the public exports and integration examples. Host configuration is required."},"examples":[{"id":"connection-nowapi","title":"@uibot/connection-nowapi integration","mode":"source","language":"ts","code":"import { createUIBotConnectionNowAPIPlugin } from \"@uibot/connection-nowapi\";\n\nexport const plugin = createUIBotConnectionNowAPIPlugin();\n// Server host configures NOWAPI_URL and NOWAPI_PROJECT; keep credentials server-side.\n","dependencies":["@uibot/connection-nowapi@0.16.0"]}],"distributions":[{"channel":"npm","name":"@uibot/connection-nowapi","version":"0.16.0","availability":"source","dependencies":{"@uibot/contracts":"0.16.0","@uibot/plugin-sdk":"0.16.0"}}]},"package:uibot-connection-pg":{"resourceId":"package:uibot-connection-pg","title":{"zh":"@uibot/connection-pg","en":"@uibot/connection-pg"},"docs":{"zh":"# @uibot/connection-pg\n\n@uibot/connection-pg public SDK\n\nSee the public exports and integration examples. Host configuration is required.","en":"# @uibot/connection-pg\n\n@uibot/connection-pg public SDK\n\nSee the public exports and integration examples. Host configuration is required."},"examples":[{"id":"connection-pg","title":"@uibot/connection-pg integration","mode":"source","language":"ts","code":"import { createUIBotConnectionPgPlugin } from \"@uibot/connection-pg\";\n\nexport const plugin = createUIBotConnectionPgPlugin();\n// Server-only. The host supplies PG configuration, table allowlists and actor authorization.\n","dependencies":["@uibot/connection-pg@0.16.0"]}],"distributions":[{"channel":"npm","name":"@uibot/connection-pg","version":"0.16.0","availability":"source","dependencies":{"@uibot/contracts":"0.16.0","@uibot/plugin-sdk":"0.16.0","postgres":"3.4.9"}}]},"package:uibot-context":{"resourceId":"package:uibot-context","title":{"zh":"@uibot/context","en":"@uibot/context"},"docs":{"zh":"# @uibot/context\n\n@uibot/context public SDK\n\nSee the public exports and integration examples. Host configuration is required.","en":"# @uibot/context\n\n@uibot/context public SDK\n\nSee the public exports and integration examples. Host configuration is required."},"examples":[{"id":"context","title":"@uibot/context integration","mode":"source","language":"ts","code":"import { createContextFragment } from \"@uibot/context\";\n\nconsole.log(\n createContextFragment({\n id: \"public-intro\",\n kind: \"doc\",\n body: \"UIBot resource library\",\n sensitivity: \"public\",\n }),\n);\n","dependencies":["@uibot/context@0.16.0"]}],"distributions":[{"channel":"npm","name":"@uibot/context","version":"0.16.0","availability":"source","dependencies":{"@uibot/contracts":"0.16.0"}}]},"package:uibot-context-code":{"resourceId":"package:uibot-context-code","title":{"zh":"@uibot/context-code","en":"@uibot/context-code"},"docs":{"zh":"# @uibot/context-code\n\n@uibot/context-code public SDK\n\nSee the public exports and integration examples. Host configuration is required.","en":"# @uibot/context-code\n\n@uibot/context-code public SDK\n\nSee the public exports and integration examples. Host configuration is required."},"examples":[{"id":"context-code","title":"@uibot/context-code integration","mode":"source","language":"ts","code":"import { Bm25Index } from \"@uibot/context-code\";\n\nconst index = new Bm25Index([]);\nconsole.log(index.search(\"collection\"));\n// Supply authorized CodeChunk records from your project scanner.\n","dependencies":["@uibot/context-code@0.16.0"]}],"distributions":[{"channel":"npm","name":"@uibot/context-code","version":"0.16.0","availability":"source","dependencies":{"@uibot/context":"0.16.0"}}]},"package:uibot-contracts":{"resourceId":"package:uibot-contracts","title":{"zh":"@uibot/contracts","en":"@uibot/contracts"},"docs":{"zh":"# @uibot/contracts\n\n@uibot/contracts public SDK\n\nSee the public exports and integration examples. Host configuration is required.","en":"# @uibot/contracts\n\n@uibot/contracts public SDK\n\nSee the public exports and integration examples. Host configuration is required."},"examples":[{"id":"contracts","title":"@uibot/contracts integration","mode":"source","language":"ts","code":"import { createHtmlEditorSession } from \"@uibot/contracts\";\n\n// The host owns persistence; this pure draft state contains no credentials.\nexport const session = createHtmlEditorSession({\n revisionId: \"r1\",\n content: { format: \"html\", schemaVersion: \"1\", content: \"<main>Hello</main>\" },\n});\n","dependencies":["@uibot/contracts@0.16.0"]}],"distributions":[{"channel":"npm","name":"@uibot/contracts","version":"0.16.0","availability":"source","dependencies":{}}]},"package:uibot-core":{"resourceId":"package:uibot-core","title":{"zh":"@uibot/core","en":"@uibot/core"},"docs":{"zh":"# @uibot/core\n\n@uibot/core public SDK\n\nSee the public exports and integration examples. Host configuration is required.","en":"# @uibot/core\n\n@uibot/core public SDK\n\nSee the public exports and integration examples. Host configuration is required."},"examples":[{"id":"core","title":"@uibot/core integration","mode":"source","language":"ts","code":"import {\n createUIBotStudioHttpHandler,\n type CreateUIBotStudioHttpHandlerOptions,\n} from \"@uibot/core\";\n\n// Compatibility facade. Prefer the narrow application contract for new server integrations.\nexport const snapshotRoute = (options: CreateUIBotStudioHttpHandlerOptions) =>\n createUIBotStudioHttpHandler(options);\n","dependencies":["@uibot/core@0.16.0"]}],"distributions":[{"channel":"npm","name":"@uibot/core","version":"0.16.0","availability":"source","dependencies":{"@uibot/application":"0.16.0","@uibot/contracts":"0.16.0","@uibot/kernel":"0.16.0","@uibot/plugin-sdk":"0.16.0"}}]},"package:uibot-creation-kit":{"resourceId":"package:uibot-creation-kit","title":{"zh":"@uibot/creation-kit","en":"@uibot/creation-kit"},"docs":{"zh":"# @uibot/creation-kit\n\n@uibot/creation-kit public SDK\n\nSee the public exports and integration examples. Host configuration is required.","en":"# @uibot/creation-kit\n\n@uibot/creation-kit public SDK\n\nSee the public exports and integration examples. Host configuration is required."},"examples":[{"id":"creation-kit","title":"@uibot/creation-kit integration","mode":"source","language":"ts","code":"import { createCreationKindRegistry } from \"@uibot/creation-kit\";\n\nexport const kinds = createCreationKindRegistry([]);\nconsole.log(kinds.taskKinds());\n// Hosts explicitly register domain plugins and inject their UI and data ports.\n","dependencies":["@uibot/creation-kit@0.16.0"]}],"distributions":[{"channel":"npm","name":"@uibot/creation-kit","version":"0.16.0","availability":"source","dependencies":{"@uibot/contracts":"0.16.0","@uibot/ai-chat":"0.16.0","lucide-react":"^1.56.0","clsx":"^2.1.1","tailwind-merge":"^3.7.0","react":"^19","react-dom":"^19"}}]},"package:uibot-design-md":{"resourceId":"package:uibot-design-md","title":{"zh":"@uibot/design-md","en":"@uibot/design-md"},"docs":{"zh":"# @uibot/design-md\n\n@uibot/design-md public SDK\n\nSee the public exports and integration examples. Host configuration is required.","en":"# @uibot/design-md\n\n@uibot/design-md public SDK\n\nSee the public exports and integration examples. Host configuration is required."},"examples":[{"id":"design-md","title":"@uibot/design-md integration","mode":"source","language":"ts","code":"import { projectDesignMdTemplate } from \"@uibot/design-md\";\n\nconsole.log(projectDesignMdTemplate(\"My product\"));\n","dependencies":["@uibot/design-md@0.16.0"]}],"distributions":[{"channel":"npm","name":"@uibot/design-md","version":"0.16.0","availability":"source","dependencies":{"@uibot/contracts":"0.16.0","@uibot/plugin-sdk":"0.16.0","yaml":"2.9.1"}}]},"package:uibot-design-md-importer":{"resourceId":"package:uibot-design-md-importer","title":{"zh":"@uibot/design-md-importer","en":"@uibot/design-md-importer"},"docs":{"zh":"# @uibot/design-md-importer\n\n@uibot/design-md-importer public SDK\n\nSee the public exports and integration examples. Host configuration is required.","en":"# @uibot/design-md-importer\n\n@uibot/design-md-importer public SDK\n\nSee the public exports and integration examples. Host configuration is required."},"examples":[{"id":"design-md-importer","title":"@uibot/design-md-importer integration","mode":"source","language":"ts","code":"import { scanCssVariables } from \"@uibot/design-md-importer\";\n\n// Read-only local project scan. Point only at a project you own.\nconst projectRoot = process.argv[2];\nif (projectRoot) console.log(scanCssVariables(projectRoot));\n","dependencies":["@uibot/design-md-importer@0.16.0"]}],"distributions":[{"channel":"npm","name":"@uibot/design-md-importer","version":"0.16.0","availability":"source","dependencies":{"@uibot/contracts":"0.16.0","@babel/parser":"^7.26.0","@babel/traverse":"^7.26.0"}}]},"package:uibot-document-editor":{"resourceId":"package:uibot-document-editor","title":{"zh":"@uibot/document-editor","en":"@uibot/document-editor"},"docs":{"zh":"# @uibot/document-editor\n\n@uibot/document-editor public SDK\n\nSee the public exports and integration examples. Host configuration is required.","en":"# @uibot/document-editor\n\n@uibot/document-editor public SDK\n\nSee the public exports and integration examples. Host configuration is required."},"examples":[{"id":"document-editor","title":"@uibot/document-editor integration","mode":"tsx","language":"tsx","code":"/* @uibot-story\n{\n \"initial\": {\"readOnly\": false, \"locale\": \"zh-CN\"},\n \"controls\": {\"readOnly\": {\"type\": \"boolean\"}, \"locale\": {\"enum\": [\"zh-CN\", \"en\"]}},\n \"variants\": [{\"name\": \"Read only\", \"args\": {\"readOnly\": true}}, {\"name\": \"English\", \"args\": {\"locale\": \"en\"}}]\n}\n*/\nimport { useState } from \"react\";\nimport { BlockEditor } from \"@uibot/document-editor\";\nexport default function Example(\n args: { readOnly: boolean; locale: \"zh-CN\" | \"en\" } = { readOnly: false, locale: \"zh-CN\" },\n) {\n const [markdown, setMarkdown] = useState(\"# Your next idea\\n\\nWrite something useful.\");\n return (\n <main className=\"p-6\">\n <BlockEditor\n blocks={null}\n markdown={markdown}\n locale={args.locale}\n readOnly={args.readOnly}\n onChange={(value) => setMarkdown(value.markdown)}\n />\n <details>\n <summary>Markdown · local memory</summary>\n <pre>{markdown}</pre>\n </details>\n </main>\n );\n}\n","dependencies":["@uibot/document-editor@0.16.0"]}],"distributions":[{"channel":"npm","name":"@uibot/document-editor","version":"0.16.0","availability":"source","dependencies":{"@blocknote/core":"0.56.0","@blocknote/mantine":"0.56.0","@blocknote/react":"0.56.0","@uibot/contracts":"0.16.0","react":">=18","react-dom":">=18"}}]},"package:uibot-engine":{"resourceId":"package:uibot-engine","title":{"zh":"@uibot/engine","en":"@uibot/engine"},"docs":{"zh":"# @uibot/engine\n\n@uibot/engine public SDK\n\nSee the public exports and integration examples. Host configuration is required.","en":"# @uibot/engine\n\n@uibot/engine public SDK\n\nSee the public exports and integration examples. Host configuration is required."},"examples":[{"id":"engine","title":"@uibot/engine integration","mode":"source","language":"ts","code":"import { createStateStore } from \"@uibot/engine\";\n\nconst state = createStateStore({ count: 0 });\nstate.set(\"count\", 1);\nconsole.log(state.get(\"count\"));\n","dependencies":["@uibot/engine@0.16.0"]}],"distributions":[{"channel":"npm","name":"@uibot/engine","version":"0.16.0","availability":"source","dependencies":{"@uibot/contracts":"0.16.0"}}]},"package:uibot-evaluation":{"resourceId":"package:uibot-evaluation","title":{"zh":"@uibot/evaluation","en":"@uibot/evaluation"},"docs":{"zh":"# @uibot/evaluation\n\n@uibot/evaluation public SDK\n\nSee the public exports and integration examples. Host configuration is required.","en":"# @uibot/evaluation\n\n@uibot/evaluation public SDK\n\nSee the public exports and integration examples. Host configuration is required."},"examples":[{"id":"evaluation","title":"@uibot/evaluation integration","mode":"source","language":"ts","code":"import { visualSubjectHash, isVisualScore } from \"@uibot/evaluation\";\n\nconsole.log(visualSubjectHash(\"<main>Hello</main>\", \"A welcome page\"));\nconsole.log(isVisualScore(0.8));\n// A hash is identity, not a model or human quality assessment.\n","dependencies":["@uibot/evaluation@0.16.0"]}],"distributions":[{"channel":"npm","name":"@uibot/evaluation","version":"0.16.0","availability":"source","dependencies":{"@uibot/contracts":"0.16.0"}}]},"package:uibot-execution-docker":{"resourceId":"package:uibot-execution-docker","title":{"zh":"@uibot/execution-docker","en":"@uibot/execution-docker"},"docs":{"zh":"# @uibot/execution-docker\n\n@uibot/execution-docker public SDK\n\nSee the public exports and integration examples. Host configuration is required.","en":"# @uibot/execution-docker\n\n@uibot/execution-docker public SDK\n\nSee the public exports and integration examples. Host configuration is required."},"examples":[{"id":"execution-docker","title":"@uibot/execution-docker integration","mode":"source","language":"ts","code":"import { createDockerRuntime } from \"@uibot/execution-docker\";\n\nexport const runtime = createDockerRuntime();\n// Server-only opt-in. The host authorizes execution and provides Docker; constructing this port does not run a container.\n","dependencies":["@uibot/execution-docker@0.16.0"]}],"distributions":[{"channel":"npm","name":"@uibot/execution-docker","version":"0.16.0","availability":"source","dependencies":{"@uibot/contracts":"0.16.0"}}]},"package:uibot-execution-microsandbox":{"resourceId":"package:uibot-execution-microsandbox","title":{"zh":"@uibot/execution-microsandbox","en":"@uibot/execution-microsandbox"},"docs":{"zh":"# @uibot/execution-microsandbox\n\n@uibot/execution-microsandbox public SDK\n\nSee the public exports and integration examples. Host configuration is required.","en":"# @uibot/execution-microsandbox\n\n@uibot/execution-microsandbox public SDK\n\nSee the public exports and integration examples. Host configuration is required."},"examples":[{"id":"execution-microsandbox","title":"@uibot/execution-microsandbox integration","mode":"source","language":"ts","code":"import { createMicrosandboxRuntime } from \"@uibot/execution-microsandbox\";\n\nexport const runtime = createMicrosandboxRuntime();\n// Server-only opt-in. A running, authorized Microsandbox host is required before execution.\n","dependencies":["@uibot/execution-microsandbox@0.16.0"]}],"distributions":[{"channel":"npm","name":"@uibot/execution-microsandbox","version":"0.16.0","availability":"source","dependencies":{"@uibot/contracts":"0.16.0","microsandbox":"^0.3.14"}}]},"package:uibot-hub-runtime":{"resourceId":"package:uibot-hub-runtime","title":{"zh":"@uibot/hub-runtime","en":"@uibot/hub-runtime"},"docs":{"zh":"# @uibot/hub-runtime\n\n@uibot/hub-runtime public SDK\n\nSee the public exports and integration examples. Host configuration is required.","en":"# @uibot/hub-runtime\n\n@uibot/hub-runtime public SDK\n\nSee the public exports and integration examples. Host configuration is required."},"examples":[{"id":"hub-runtime","title":"@uibot/hub-runtime integration","mode":"source","language":"ts","code":"import { createUIBotHubService, type CreateUIBotHubServiceOptions } from \"@uibot/hub-runtime\";\n\n// Server host owns execution, models and task persistence.\nexport function createHub(options: CreateUIBotHubServiceOptions) {\n return createUIBotHubService(options);\n}\n","dependencies":["@uibot/hub-runtime@0.16.0"]}],"distributions":[{"channel":"npm","name":"@uibot/hub-runtime","version":"0.16.0","availability":"source","dependencies":{"@uibot/contracts":"0.16.0","@uibot/plugin-sdk":"0.16.0"}}]},"package:uibot-kernel":{"resourceId":"package:uibot-kernel","title":{"zh":"@uibot/kernel","en":"@uibot/kernel"},"docs":{"zh":"# @uibot/kernel\n\n@uibot/kernel public SDK\n\nSee the public exports and integration examples. Host configuration is required.","en":"# @uibot/kernel\n\n@uibot/kernel public SDK\n\nSee the public exports and integration examples. Host configuration is required."},"examples":[{"id":"kernel","title":"@uibot/kernel integration","mode":"source","language":"ts","code":"import { PluginHost } from \"@uibot/kernel\";\n\nexport const host = new PluginHost({ engineVersion: \"0.14.0\", sdkVersion: \"0.14.0\" });\nconsole.log(host.getAllCapabilities());\n// Register explicitly selected plugins; installing an artifact does not execute it.\n","dependencies":["@uibot/kernel@0.16.0"]}],"distributions":[{"channel":"npm","name":"@uibot/kernel","version":"0.16.0","availability":"source","dependencies":{"@uibot/contracts":"0.16.0","@uibot/plugin-sdk":"0.16.0"}}]},"package:uibot-mcp-server":{"resourceId":"package:uibot-mcp-server","title":{"zh":"@uibot/mcp-server","en":"@uibot/mcp-server"},"docs":{"zh":"# @uibot/mcp-server\n\n@uibot/mcp-server public SDK\n\nSee the public exports and integration examples. Host configuration is required.","en":"# @uibot/mcp-server\n\n@uibot/mcp-server public SDK\n\nSee the public exports and integration examples. Host configuration is required."},"examples":[{"id":"mcp-server","title":"@uibot/mcp-server integration","mode":"source","language":"ts","code":"import {\n createUIBotMcpHttpHandler,\n type CreateUIBotMcpHttpHandlerOptions,\n} from \"@uibot/mcp-server/http\";\n\n// Public read-only resource service, with explicit permitted origins.\nexport const resourceMcp = (options: CreateUIBotMcpHttpHandlerOptions) =>\n createUIBotMcpHttpHandler(options);\n","dependencies":["@uibot/mcp-server@0.16.0"]}],"distributions":[{"channel":"npm","name":"@uibot/mcp-server","version":"0.16.0","availability":"source","dependencies":{"@modelcontextprotocol/sdk":"^1.30.0"}}]},"package:uibot-model":{"resourceId":"package:uibot-model","title":{"zh":"@uibot/model","en":"@uibot/model"},"docs":{"zh":"# @uibot/model\n\n@uibot/model public SDK\n\nSee the public exports and integration examples. Host configuration is required.","en":"# @uibot/model\n\n@uibot/model public SDK\n\nSee the public exports and integration examples. Host configuration is required."},"examples":[{"id":"model","title":"@uibot/model integration","mode":"source","language":"ts","code":"import { createModelRegistry } from \"@uibot/model\";\n\nexport const registry = createModelRegistry();\n// Configure host-owned providers before requesting generation. Never embed API keys in browser code.\n","dependencies":["@uibot/model@0.16.0"]}],"distributions":[{"channel":"npm","name":"@uibot/model","version":"0.16.0","availability":"source","dependencies":{"@uibot/contracts":"0.16.0"}}]},"package:uibot-model-catalog":{"resourceId":"package:uibot-model-catalog","title":{"zh":"@uibot/model-catalog","en":"@uibot/model-catalog"},"docs":{"zh":"# @uibot/model-catalog\n\n@uibot/model-catalog public SDK\n\nSee the public exports and integration examples. Host configuration is required.","en":"# @uibot/model-catalog\n\n@uibot/model-catalog public SDK\n\nSee the public exports and integration examples. Host configuration is required."},"examples":[{"id":"model-catalog","title":"@uibot/model-catalog integration","mode":"source","language":"ts","code":"import { parseModelCatalogConfig } from \"@uibot/model-catalog\";\n\nconsole.log(parseModelCatalogConfig(null));\n// A local configuration view. No live provider/model capability claim is made.\n","dependencies":["@uibot/model-catalog@0.16.0"]}],"distributions":[{"channel":"npm","name":"@uibot/model-catalog","version":"0.16.0","availability":"source","dependencies":{"@uibot/contracts":"0.16.0"}}]},"package:uibot-page-annotation":{"resourceId":"package:uibot-page-annotation","title":{"zh":"@uibot/page-annotation","en":"@uibot/page-annotation"},"docs":{"zh":"# @uibot/page-annotation\n\n@uibot/page-annotation public SDK\n\n# @uibot/page-annotation\n\n网页标注:在页面上框选、圈画、写评论,产出给 AI 的修改上下文。UIBot 维护这份唯一实现;InfoOS 桌面端与 Web 端都从这里引用(ADR 0012 B6)。来源是 InfoOS `packages/page-annotation`(2026-10-23 起收归 UIBot,InfoOS 不再保留副本)。\n\n| 入口 | 内容 |\n| --- | --- |\n| `.` | 标注模型、归一化、选择器、composer 附件(`withComposerAnnotations`、`splitComposerImages`)、主题校验、UIBot 格式化 |\n| `./runtime` | 运行时端口与 overlay;`ANNOTATOR_IIFE` 是惰性脚本,HTML 预览按需启动 |\n| `./host` | 浏览器宿主控制器与 Studio 主题映射 |\n| `./guest` | 桌面宿主注入访客页的脚本:`annotatorBootScript(theme?)`(加载即启动的 IIFE)、快照/更新/删除/截图脚本、控制台标记判断 |\n\n目录:`src/core/` 是模型与运行时;`src/uibot/` 是 iframe 传输、宿主控制器、体验增强与格式化;`src/guest.ts` 是桌面访客脚本。页面全局名与控制台标记统一用 `__uibot` 前缀。\n\n两份 IIFE(`src/core/inject.ts`、`src/uibot/inject.ts`)是生成文件:改 overlay 或入口后运行 `bun run scripts/build-page-annotation.ts`;`scripts/build-page-annotation.test.ts` 在测试中以 `--check` 重建并比对,过期即失败。\n\n## 主题 token\n\n包根与 `./runtime` 导出 `AnnotationTheme`、`validateAnnotationTheme` 与\n`applyAnnotationTheme(host, theme?)`。创建 overlay 时可传\n`startAnnotationRuntime({ theme }, runtimeHost)`;运行中对同一 shadow host 再调用\n`applyAnnotationTheme` 即时更新,无需重建。函数替换完整 token map;传 `{}` 或省略\n清除旧覆盖。也可从宿主 CSS 继承这些变量。每个使用位置保留原颜色 fallback;同一语义\n在旧 UI 不同位置可能有不同默认值,因此下表列出所有原值。未传主题时使用下表的默认值。\n\n| Token | 用途 | 默认值(按位置回落) |\n| --- | --- | --- |\n| `--pa-accent` | 边框、标记、主要强调 | `#7c2d34` |\n| `--pa-accent-soft` | 选中/区域高亮底色 | `rgba(124,45,52,0.10)`, `rgba(124,45,52,0.06)`, `rgba(124,45,52,.10)` |\n| `--pa-outline` | 高亮轮廓 | `rgba(255,255,255,0.4)`, `rgba(241,240,237,0.35)` |\n| `--pa-accent-contrast` | 强调/选中控件文字 | `#f1f0ed`, `#7c2d34`, `#17171a` |\n| `--pa-surface` | 工具条、编辑面板 | `rgba(23,23,26,0.94)`, `#17171a`, `rgba(23,23,26,.9)` |\n| `--pa-surface-contrast` | 面板/工具条文字 | `#fff`, `#f1f0ed`, `#ece7df`, `#cfc8bb`, `#e7e0d4`, `#17171a` |\n| `--pa-shadow` | 投影 | `rgba(0,0,0,0.28)`, `rgba(60,40,15,0.18)`, `rgba(0,0,0,0.2)`, `rgba(0,0,0,0.3)`, `rgba(0,0,0,.75)`, `rgba(0,0,0,.45)`, `rgba(0,0,0,.28)`, `rgba(0,0,0,0.5)` |\n| `--pa-muted` | 次要文案、图标、低优先级 | `rgba(255,255,255,0.72)`, `#b69b73`, `rgba(255,255,255,.72)`, `#b9b1a4`, `#8a8275`, `#6f685c`, `#a9a194`, `#737373` |\n| `--pa-hover` | 悬停背景 | `rgba(255,255,255,0.14)`, `rgba(255,255,255,0.26)`, `#f6ecdb`, `rgba(255,255,255,0.16)`, `#3b352e`, `rgba(255,255,255,0.06)`, `#f0ece4`, `#37322b` |\n| `--pa-border` | 控件、分隔线边框 | `#e6d6bf`, `#d2bd9c`, `#ecdcc4`, `rgba(255,255,255,.24)`, `rgba(255,255,255,.18)`, `#3a352f`, `#332f29`, `rgba(255,255,255,0.28)`, `#4a443c`, `#5a5347` |\n| `--pa-popover-contrast` | 下拉菜单文字 | `#3b3024` |\n| `--pa-popover` | 下拉菜单底色 | `#fff` |\n| `--pa-focus` | 焦点边框/光圈 | `rgba(124,45,52,0.14)`, `rgba(124,45,52,0.18)` |\n| `--pa-selected` | 分段、菜单选中底色 | `#f1f0ed`, `#3f372c` |\n| `--pa-accent-halo` | 定位闪光光晕 | `rgba(124,45,52,0.45)`, `rgba(124,45,52,0)` |\n| `--pa-field` | 输入框、分组底色 | `rgba(255,255,255,0.12)`, `rgba(0,0,0,.25)`, `#1d1b19`, `#2b2723` |\n| `--pa-checker` | 透明棋盘 | `#555` |\n| `--pa-success-contrast` | 成功提示文字 | `#fff` |\n| `--pa-danger-contrast` | 失败提示文字 | `#fff` |\n| `--pa-success` | 成功提示 | `#15803d` |\n| `--pa-danger` | 失败提示、阻塞优先级 | `#5c151c`, `#b91c1c` |\n| `--pa-color-default` | 原生颜色选择器无可解析颜色时的初值 | `#000000` |\n\n```ts\nimport { applyAnnotationTheme } from \"@uibot/page-annotation\";\napplyAnnotationTheme(host, {\n \"--pa-accent\": \"#2563eb\",\n \"--pa-accent-soft\": \"color-mix(in srgb, #2563eb 10%, transparent)\",\n \"--pa-accent-contrast\": \"#ffffff\",\n});\n```\n\n主题 map 最大 8 KiB,单值最大 256 字符;未知 key、无效颜色、变量引用、URL、\n分号/花括号/转义/注释被丢弃,超大 map 整体丢弃。支持 hex、CSS 命名色、\nrgb/hsl/hwb/lab/lch/oklab/oklch、标准色域 `color()` 与具体颜色的 srgb `color-mix()`。\n原生颜色输入框先读取 computed 色,再经 canvas 解析为真实 hex,绝不将 `var()`\n传入 canvas。作品本身的颜色与区域绘图的固定标记色属于内容数据,保持原契约。\n\n`./host`\n另导出 `resolveStudioAnnotationTheme(element)` 与 `observeStudioAnnotationTheme`:\n页面标记(强调色、对比文字、选中态、描边)叠在作品页面上,与 Studio 的浅/深色无关,固定为深色强调加浅色描边,在浅色和深色页面上都可见;其余界面色随 Studio:card/card-foreground 映射表面与文字,\npopover/popover-foreground 映射菜单,border/destructive/ring/muted 等映射对应角色。\n缺失值使用中性浅色回落。Studio 创建 controller 时传 `theme`,class/style 与\nprefers-color-scheme 变化时调用 `controller.update({ theme })`;停止绑定会清除监听。\n主题只通过既有 source/nonce 校验后的 sync 消息传递,shell 与 page 均复用源头校验。\n它不改变 sandbox、作品源、权限或导出。宿主负责成对设置前景/背景以保持对比度。\n\n回归夹具 `src/core/runtime/styles.before.txt` 保存改前文本;测试剥离 `var` 包装后\n逐字比较,覆盖全部默认规则。该证据证明默认样式等价,不是浏览器截图像素比对。\n","en":"# @uibot/page-annotation\n\n@uibot/page-annotation public SDK\n\n# @uibot/page-annotation\n\n网页标注:在页面上框选、圈画、写评论,产出给 AI 的修改上下文。UIBot 维护这份唯一实现;InfoOS 桌面端与 Web 端都从这里引用(ADR 0012 B6)。来源是 InfoOS `packages/page-annotation`(2026-10-23 起收归 UIBot,InfoOS 不再保留副本)。\n\n| 入口 | 内容 |\n| --- | --- |\n| `.` | 标注模型、归一化、选择器、composer 附件(`withComposerAnnotations`、`splitComposerImages`)、主题校验、UIBot 格式化 |\n| `./runtime` | 运行时端口与 overlay;`ANNOTATOR_IIFE` 是惰性脚本,HTML 预览按需启动 |\n| `./host` | 浏览器宿主控制器与 Studio 主题映射 |\n| `./guest` | 桌面宿主注入访客页的脚本:`annotatorBootScript(theme?)`(加载即启动的 IIFE)、快照/更新/删除/截图脚本、控制台标记判断 |\n\n目录:`src/core/` 是模型与运行时;`src/uibot/` 是 iframe 传输、宿主控制器、体验增强与格式化;`src/guest.ts` 是桌面访客脚本。页面全局名与控制台标记统一用 `__uibot` 前缀。\n\n两份 IIFE(`src/core/inject.ts`、`src/uibot/inject.ts`)是生成文件:改 overlay 或入口后运行 `bun run scripts/build-page-annotation.ts`;`scripts/build-page-annotation.test.ts` 在测试中以 `--check` 重建并比对,过期即失败。\n\n## 主题 token\n\n包根与 `./runtime` 导出 `AnnotationTheme`、`validateAnnotationTheme` 与\n`applyAnnotationTheme(host, theme?)`。创建 overlay 时可传\n`startAnnotationRuntime({ theme }, runtimeHost)`;运行中对同一 shadow host 再调用\n`applyAnnotationTheme` 即时更新,无需重建。函数替换完整 token map;传 `{}` 或省略\n清除旧覆盖。也可从宿主 CSS 继承这些变量。每个使用位置保留原颜色 fallback;同一语义\n在旧 UI 不同位置可能有不同默认值,因此下表列出所有原值。未传主题时使用下表的默认值。\n\n| Token | 用途 | 默认值(按位置回落) |\n| --- | --- | --- |\n| `--pa-accent` | 边框、标记、主要强调 | `#7c2d34` |\n| `--pa-accent-soft` | 选中/区域高亮底色 | `rgba(124,45,52,0.10)`, `rgba(124,45,52,0.06)`, `rgba(124,45,52,.10)` |\n| `--pa-outline` | 高亮轮廓 | `rgba(255,255,255,0.4)`, `rgba(241,240,237,0.35)` |\n| `--pa-accent-contrast` | 强调/选中控件文字 | `#f1f0ed`, `#7c2d34`, `#17171a` |\n| `--pa-surface` | 工具条、编辑面板 | `rgba(23,23,26,0.94)`, `#17171a`, `rgba(23,23,26,.9)` |\n| `--pa-surface-contrast` | 面板/工具条文字 | `#fff`, `#f1f0ed`, `#ece7df`, `#cfc8bb`, `#e7e0d4`, `#17171a` |\n| `--pa-shadow` | 投影 | `rgba(0,0,0,0.28)`, `rgba(60,40,15,0.18)`, `rgba(0,0,0,0.2)`, `rgba(0,0,0,0.3)`, `rgba(0,0,0,.75)`, `rgba(0,0,0,.45)`, `rgba(0,0,0,.28)`, `rgba(0,0,0,0.5)` |\n| `--pa-muted` | 次要文案、图标、低优先级 | `rgba(255,255,255,0.72)`, `#b69b73`, `rgba(255,255,255,.72)`, `#b9b1a4`, `#8a8275`, `#6f685c`, `#a9a194`, `#737373` |\n| `--pa-hover` | 悬停背景 | `rgba(255,255,255,0.14)`, `rgba(255,255,255,0.26)`, `#f6ecdb`, `rgba(255,255,255,0.16)`, `#3b352e`, `rgba(255,255,255,0.06)`, `#f0ece4`, `#37322b` |\n| `--pa-border` | 控件、分隔线边框 | `#e6d6bf`, `#d2bd9c`, `#ecdcc4`, `rgba(255,255,255,.24)`, `rgba(255,255,255,.18)`, `#3a352f`, `#332f29`, `rgba(255,255,255,0.28)`, `#4a443c`, `#5a5347` |\n| `--pa-popover-contrast` | 下拉菜单文字 | `#3b3024` |\n| `--pa-popover` | 下拉菜单底色 | `#fff` |\n| `--pa-focus` | 焦点边框/光圈 | `rgba(124,45,52,0.14)`, `rgba(124,45,52,0.18)` |\n| `--pa-selected` | 分段、菜单选中底色 | `#f1f0ed`, `#3f372c` |\n| `--pa-accent-halo` | 定位闪光光晕 | `rgba(124,45,52,0.45)`, `rgba(124,45,52,0)` |\n| `--pa-field` | 输入框、分组底色 | `rgba(255,255,255,0.12)`, `rgba(0,0,0,.25)`, `#1d1b19`, `#2b2723` |\n| `--pa-checker` | 透明棋盘 | `#555` |\n| `--pa-success-contrast` | 成功提示文字 | `#fff` |\n| `--pa-danger-contrast` | 失败提示文字 | `#fff` |\n| `--pa-success` | 成功提示 | `#15803d` |\n| `--pa-danger` | 失败提示、阻塞优先级 | `#5c151c`, `#b91c1c` |\n| `--pa-color-default` | 原生颜色选择器无可解析颜色时的初值 | `#000000` |\n\n```ts\nimport { applyAnnotationTheme } from \"@uibot/page-annotation\";\napplyAnnotationTheme(host, {\n \"--pa-accent\": \"#2563eb\",\n \"--pa-accent-soft\": \"color-mix(in srgb, #2563eb 10%, transparent)\",\n \"--pa-accent-contrast\": \"#ffffff\",\n});\n```\n\n主题 map 最大 8 KiB,单值最大 256 字符;未知 key、无效颜色、变量引用、URL、\n分号/花括号/转义/注释被丢弃,超大 map 整体丢弃。支持 hex、CSS 命名色、\nrgb/hsl/hwb/lab/lch/oklab/oklch、标准色域 `color()` 与具体颜色的 srgb `color-mix()`。\n原生颜色输入框先读取 computed 色,再经 canvas 解析为真实 hex,绝不将 `var()`\n传入 canvas。作品本身的颜色与区域绘图的固定标记色属于内容数据,保持原契约。\n\n`./host`\n另导出 `resolveStudioAnnotationTheme(element)` 与 `observeStudioAnnotationTheme`:\n页面标记(强调色、对比文字、选中态、描边)叠在作品页面上,与 Studio 的浅/深色无关,固定为深色强调加浅色描边,在浅色和深色页面上都可见;其余界面色随 Studio:card/card-foreground 映射表面与文字,\npopover/popover-foreground 映射菜单,border/destructive/ring/muted 等映射对应角色。\n缺失值使用中性浅色回落。Studio 创建 controller 时传 `theme`,class/style 与\nprefers-color-scheme 变化时调用 `controller.update({ theme })`;停止绑定会清除监听。\n主题只通过既有 source/nonce 校验后的 sync 消息传递,shell 与 page 均复用源头校验。\n它不改变 sandbox、作品源、权限或导出。宿主负责成对设置前景/背景以保持对比度。\n\n回归夹具 `src/core/runtime/styles.before.txt` 保存改前文本;测试剥离 `var` 包装后\n逐字比较,覆盖全部默认规则。该证据证明默认样式等价,不是浏览器截图像素比对。\n"},"examples":[{"id":"page-annotation-0","title":"@uibot/page-annotation integration","mode":"source","language":"ts","code":"import { applyAnnotationTheme } from \"@uibot/page-annotation\";\napplyAnnotationTheme(host, {\n \"--pa-accent\": \"#2563eb\",\n \"--pa-accent-soft\": \"color-mix(in srgb, #2563eb 10%, transparent)\",\n \"--pa-accent-contrast\": \"#ffffff\",\n});\n","dependencies":["@uibot/page-annotation@0.16.0"]}],"distributions":[{"channel":"npm","name":"@uibot/page-annotation","version":"0.16.0","availability":"source","dependencies":{"@uibot/contracts":"0.16.0"}}]},"package:uibot-plugin-sdk":{"resourceId":"package:uibot-plugin-sdk","title":{"zh":"@uibot/plugin-sdk","en":"@uibot/plugin-sdk"},"docs":{"zh":"# @uibot/plugin-sdk\n\n@uibot/plugin-sdk public SDK\n\nSee the public exports and integration examples. Host configuration is required.","en":"# @uibot/plugin-sdk\n\n@uibot/plugin-sdk public SDK\n\nSee the public exports and integration examples. Host configuration is required."},"examples":[{"id":"plugin-sdk","title":"@uibot/plugin-sdk integration","mode":"source","language":"ts","code":"import { definePluginManifest } from \"@uibot/plugin-sdk\";\n\nexport const manifest = definePluginManifest({\n pluginId: \"example.ui\",\n version: \"1.0.0\",\n engineRange: \"^0.14.0\",\n sdkRange: \"^0.14.0\",\n displayName: \"Example UI\",\n description: \"An explicitly registered extension\",\n capabilities: [],\n permissions: [],\n});\n","dependencies":["@uibot/plugin-sdk@0.16.0"]}],"distributions":[{"channel":"npm","name":"@uibot/plugin-sdk","version":"0.16.0","availability":"source","dependencies":{"@uibot/contracts":"0.16.0","semver":"^7.7.3"}}]},"package:uibot-registry":{"resourceId":"package:uibot-registry","title":{"zh":"@uibot/registry","en":"@uibot/registry"},"docs":{"zh":"# @uibot/registry\n\n@uibot/registry public SDK\n\nSee the public exports and integration examples. Host configuration is required.","en":"# @uibot/registry\n\n@uibot/registry public SDK\n\nSee the public exports and integration examples. Host configuration is required."},"examples":[{"id":"registry","title":"@uibot/registry integration","mode":"source","language":"ts","code":"import { buildResourceIndex, createResourceQueryService } from \"@uibot/registry\";\n\nconst index = buildResourceIndex({ components: {}, templates: {} });\nconst resources = createResourceQueryService(index);\nconsole.log(resources.manifest());\n// Inject official definitions for discovery; use the installer separately for writes.\n","dependencies":["@uibot/registry@0.16.0"]}],"distributions":[{"channel":"npm","name":"@uibot/registry","version":"0.16.0","availability":"source","dependencies":{"@uibot/contracts":"0.16.0"}}]},"package:uibot-renderer-react":{"resourceId":"package:uibot-renderer-react","title":{"zh":"@uibot/renderer-react","en":"@uibot/renderer-react"},"docs":{"zh":"# @uibot/renderer-react\n\n@uibot/renderer-react public SDK\n\nSee the public exports and integration examples. Host configuration is required.","en":"# @uibot/renderer-react\n\n@uibot/renderer-react public SDK\n\nSee the public exports and integration examples. Host configuration is required."},"examples":[{"id":"renderer-react","title":"@uibot/renderer-react integration","mode":"tsx","language":"tsx","code":"/* @uibot-story\n{\n \"initial\": {\"title\": \"Memory example\", \"view\": \"split\"},\n \"controls\": {\"title\": {\"type\": \"string\"}, \"view\": {\"enum\": [\"split\", \"preview\", \"source\"]}},\n \"variants\": [{\"name\": \"Source\", \"args\": {\"view\": \"source\"}}, {\"name\": \"Preview\", \"args\": {\"view\": \"preview\"}}]\n}\n*/\nimport { useState } from \"react\";\nimport { HtmlSourceEditor } from \"@uibot/renderer-react\";\nexport default function Example(\n args: { title: string; view: \"split\" | \"preview\" | \"source\" } = {\n title: \"Memory example\",\n view: \"split\",\n },\n) {\n const [revision, setRevision] = useState({\n id: \"r1\",\n number: 1,\n content: \"<main><h1>Hello UIBot</h1></main>\",\n });\n return (\n <main className=\"p-4\">\n <HtmlSourceEditor\n projectId=\"memory\"\n artifactId=\"html\"\n title={args.title}\n view={args.view}\n revision={revision}\n source={{ format: \"html\", schemaVersion: \"1\", content: revision.content }}\n sandbox=\"allow-scripts\"\n openPreview={async ({ html }) => {\n const shellUrl = URL.createObjectURL(new Blob([html], { type: \"text/html\" }));\n return { shellUrl, dispose: () => URL.revokeObjectURL(shellUrl) };\n }}\n saveRevision={async (input) => {\n if (input.expectedRevisionId !== revision.id) throw Error(\"revision-conflict\");\n const next = {\n id: crypto.randomUUID(),\n number: revision.number + 1,\n content: input.source.content,\n };\n setRevision(next);\n return { revisionId: next.id, number: next.number, content: next.content };\n }}\n />\n </main>\n );\n}\n","dependencies":["@uibot/renderer-react@0.16.0"]}],"distributions":[{"channel":"npm","name":"@uibot/renderer-react","version":"0.16.0","availability":"source","dependencies":{"@dnd-kit/core":"6.3.1","@dnd-kit/sortable":"10.0.0","@dnd-kit/utilities":"3.2.2","@uibot/contracts":"0.16.0","@uibot/engine":"0.16.0","@tanstack/react-virtual":"3.14.13","react":">=18"}}]},"package:uibot-runtime":{"resourceId":"package:uibot-runtime","title":{"zh":"@uibot/runtime","en":"@uibot/runtime"},"docs":{"zh":"# @uibot/runtime\n\n@uibot/runtime public SDK\n\nSee the public exports and integration examples. Host configuration is required.","en":"# @uibot/runtime\n\n@uibot/runtime public SDK\n\nSee the public exports and integration examples. Host configuration is required."},"examples":[{"id":"runtime","title":"@uibot/runtime integration","mode":"source","language":"ts","code":"import { createLiveRuntimeAdapter } from \"@uibot/runtime\";\n// Client-safe adapter. Compile at build time; inject only host-authorized drivers.\nexport function createHostRuntime(options: Parameters<typeof createLiveRuntimeAdapter>[0]) {\n return createLiveRuntimeAdapter(options);\n}\n","dependencies":["@uibot/runtime@0.16.0"]}],"distributions":[{"channel":"npm","name":"@uibot/runtime","version":"0.16.0","availability":"source","dependencies":{"@uibot/contracts":"0.16.0","@uibot/engine":"0.16.0","@uibot/renderer-react":"0.16.0","react":">=18"}}]},"package:uibot-skills":{"resourceId":"package:uibot-skills","title":{"zh":"@uibot/skills","en":"@uibot/skills"},"docs":{"zh":"# @uibot/skills\n\n@uibot/skills public SDK\n\nSee the public exports and integration examples. Host configuration is required.","en":"# @uibot/skills\n\n@uibot/skills public SDK\n\nSee the public exports and integration examples. Host configuration is required."},"examples":[{"id":"skills","title":"@uibot/skills integration","mode":"source","language":"ts","code":"import { parseSkillFrontmatter } from \"@uibot/skills\";\n\nconsole.log(parseSkillFrontmatter(\"---\\nname: ui-review\\nversion: 1.0.0\\n---\\nReview a UI.\"));\n","dependencies":["@uibot/skills@0.16.0"]}],"distributions":[{"channel":"npm","name":"@uibot/skills","version":"0.16.0","availability":"source","dependencies":{"@uibot/contracts":"0.16.0","@uibot/plugin-sdk":"0.16.0","yaml":"2.9.1"}}]},"package:uibot-testing":{"resourceId":"package:uibot-testing","title":{"zh":"@uibot/testing","en":"@uibot/testing"},"docs":{"zh":"# @uibot/testing\n\n@uibot/testing public SDK\n\nSee the public exports and integration examples. Host configuration is required.","en":"# @uibot/testing\n\n@uibot/testing public SDK\n\nSee the public exports and integration examples. Host configuration is required."},"examples":[{"id":"testing","title":"@uibot/testing integration","mode":"source","language":"ts","code":"import { createSpecHarness } from \"@uibot/testing\";\n\nconst harness = await createSpecHarness(\n JSON.stringify({ version: \"2.0\", pages: [{ id: \"home\", path: \"/\", blocks: [] }] }),\n { components: {}, actions: {}, templates: {} },\n);\nconsole.log(harness.compiled.spec.pages);\n","dependencies":["@uibot/testing@0.16.0"]}],"distributions":[{"channel":"npm","name":"@uibot/testing","version":"0.16.0","availability":"source","dependencies":{"@uibot/compiler":"0.16.0","@uibot/contracts":"0.16.0","@uibot/engine":"0.16.0"}}]},"package:uibot-vite":{"resourceId":"package:uibot-vite","title":{"zh":"@uibot/vite","en":"@uibot/vite"},"docs":{"zh":"# @uibot/vite\n\n@uibot/vite public SDK\n\nSee the public exports and integration examples. Host configuration is required.","en":"# @uibot/vite\n\n@uibot/vite public SDK\n\nSee the public exports and integration examples. Host configuration is required."},"examples":[{"id":"vite","title":"@uibot/vite integration","mode":"source","language":"ts","code":"import { uibotSpecPlugin } from \"@uibot/vite\";\n\nexport const plugin = uibotSpecPlugin({\n catalog: { components: {}, actions: {}, templates: {} },\n strict: true,\n});\n// Add to Vite plugins after providing the real Catalog.\n","dependencies":["@uibot/vite@0.16.0"]}],"distributions":[{"channel":"npm","name":"@uibot/vite","version":"0.16.0","availability":"source","dependencies":{"@uibot/compiler":"0.16.0","@uibot/contracts":"0.16.0","vite":">=5"}}]},"package:uibot-vlm-scorer":{"resourceId":"package:uibot-vlm-scorer","title":{"zh":"@uibot/vlm-scorer","en":"@uibot/vlm-scorer"},"docs":{"zh":"# @uibot/vlm-scorer\n\n@uibot/vlm-scorer public SDK\n\nSee the public exports and integration examples. Host configuration is required.","en":"# @uibot/vlm-scorer\n\n@uibot/vlm-scorer public SDK\n\nSee the public exports and integration examples. Host configuration is required."},"examples":[{"id":"vlm-scorer","title":"@uibot/vlm-scorer integration","mode":"source","language":"ts","code":"import { createHeadlessHtmlSelfCheck, type HeadlessHtmlSelfCheckOptions } from \"@uibot/vlm-scorer\";\n\n// Server-only browser check; requires an explicitly configured Chrome executable.\nexport const createCheck = (options: HeadlessHtmlSelfCheckOptions) =>\n createHeadlessHtmlSelfCheck(options);\n","dependencies":["@uibot/vlm-scorer@0.16.0"]}],"distributions":[{"channel":"npm","name":"@uibot/vlm-scorer","version":"0.16.0","availability":"source","dependencies":{"@uibot/contracts":"0.16.0","@uibot/evaluation":"0.16.0","@uibot/compiler":"0.16.0","@uibot/renderer-react":"0.16.0","react-dom":"19.2.1","@uibot/web-preview":"0.16.0","puppeteer-core":"^23"}}]},"package:uibot-web-preview":{"resourceId":"package:uibot-web-preview","title":{"zh":"@uibot/web-preview","en":"@uibot/web-preview"},"docs":{"zh":"# @uibot/web-preview\n\n@uibot/web-preview public SDK\n\nSee the public exports and integration examples. Host configuration is required.","en":"# @uibot/web-preview\n\n@uibot/web-preview public SDK\n\nSee the public exports and integration examples. Host configuration is required."},"examples":[{"id":"web-preview","title":"@uibot/web-preview integration","mode":"source","language":"ts","code":"import { assessHtmlDocument } from \"@uibot/web-preview\";\n\nconsole.log(\n assessHtmlDocument(\n \"<!doctype html><html><head><title>Hello</title></head><body><main>Hello UIBot</main></body></html>\",\n ),\n);\n","dependencies":["@uibot/web-preview@0.16.0"]}],"distributions":[{"channel":"npm","name":"@uibot/web-preview","version":"0.16.0","availability":"source","dependencies":{}}]},"theme:amber-editorial":{"resourceId":"theme:amber-editorial","title":{"zh":"Amber Editorial","en":"Amber Editorial"},"docs":{"zh":"Current UIBot brand — warm amber over a faintly warm neutral.","en":"Current UIBot brand — warm amber over a faintly warm neutral."},"tokens":{"background":"oklch(1 0 0)","foreground":"oklch(0.16 0.01 65)","card":"oklch(0.995 0.004 65)","card-foreground":"oklch(0.16 0.01 65)","popover":"oklch(0.995 0.004 65)","popover-foreground":"oklch(0.16 0.01 65)","primary":"oklch(0.62 0.15 65)","primary-foreground":"oklch(0.18 0.01 65)","secondary":"oklch(0.967 0.006 65)","secondary-foreground":"oklch(0.21 0.01 65)","muted":"oklch(0.967 0.006 65)","muted-foreground":"oklch(0.552 0.012 65)","accent":"oklch(0.95 0.053 65)","accent-foreground":"oklch(0.21 0.045 65)","border":"oklch(0.92 0.006 65)","input":"oklch(0.92 0.006 65)","ring":"oklch(0.65 0.105 65)","destructive":"oklch(0.58 0.17 27)","destructive-foreground":"oklch(0.985 0.002 65)","success":"oklch(0.58 0.17 150)","success-foreground":"oklch(0.985 0.002 65)","warning":"oklch(0.58 0.17 70)","warning-foreground":"oklch(0.16 0.01 65)"},"examples":[{"id":"amber-editorial","title":"theme.css","mode":"source","language":"css","code":":root {\n --background: oklch(1 0 0);\n --foreground: oklch(0.16 0.01 65);\n --card: oklch(0.995 0.004 65);\n --card-foreground: oklch(0.16 0.01 65);\n --popover: oklch(0.995 0.004 65);\n --popover-foreground: oklch(0.16 0.01 65);\n --primary: oklch(0.62 0.15 65);\n --primary-foreground: oklch(0.18 0.01 65);\n --secondary: oklch(0.967 0.006 65);\n --secondary-foreground: oklch(0.21 0.01 65);\n --muted: oklch(0.967 0.006 65);\n --muted-foreground: oklch(0.552 0.012 65);\n --accent: oklch(0.95 0.053 65);\n --accent-foreground: oklch(0.21 0.045 65);\n --border: oklch(0.92 0.006 65);\n --input: oklch(0.92 0.006 65);\n --ring: oklch(0.65 0.105 65);\n --destructive: oklch(0.58 0.17 27);\n --destructive-foreground: oklch(0.985 0.002 65);\n --success: oklch(0.58 0.17 150);\n --success-foreground: oklch(0.985 0.002 65);\n --warning: oklch(0.58 0.17 70);\n --warning-foreground: oklch(0.16 0.01 65);\n --radius: 0.5rem;\n --font-display: \"Instrument Serif\", ui-serif, Georgia, \"Times New Roman\", serif;\n --font-body: ui-sans-serif, system-ui, -apple-system, \"Segoe UI\", sans-serif;\n --font-mono: ui-monospace, \"SFMono-Regular\", Menlo, Monaco, Consolas, monospace;\n}\n\n.dark {\n --background: oklch(0.16 0.012 65);\n --foreground: oklch(0.985 0.002 65);\n --card: oklch(0.215 0.014 65);\n --card-foreground: oklch(0.985 0.002 65);\n --popover: oklch(0.215 0.014 65);\n --popover-foreground: oklch(0.985 0.002 65);\n --primary: oklch(0.7 0.15 65);\n --primary-foreground: oklch(0.18 0.01 65);\n --secondary: oklch(0.275 0.014 65);\n --secondary-foreground: oklch(0.985 0.002 65);\n --muted: oklch(0.275 0.014 65);\n --muted-foreground: oklch(0.705 0.014 65);\n --accent: oklch(0.3 0.06 65);\n --accent-foreground: oklch(0.985 0.002 65);\n --border: oklch(0.31 0.014 65);\n --input: oklch(0.34 0.014 65);\n --ring: oklch(0.6 0.105 65);\n --destructive: oklch(0.68 0.17 27);\n --destructive-foreground: oklch(0.18 0.01 65);\n --success: oklch(0.68 0.17 150);\n --success-foreground: oklch(0.18 0.01 65);\n --warning: oklch(0.68 0.17 70);\n --warning-foreground: oklch(0.16 0.01 65);\n --radius: 0.5rem;\n}\n","dependencies":[]}],"distributions":[]},"theme:slate":{"resourceId":"theme:slate","title":{"zh":"Slate","en":"Slate"},"docs":{"zh":"Cool, professional blue-grey. Calm and neutral.","en":"Cool, professional blue-grey. Calm and neutral."},"tokens":{"background":"oklch(1 0 0)","foreground":"oklch(0.16 0.01 255)","card":"oklch(0.995 0.004 255)","card-foreground":"oklch(0.16 0.01 255)","popover":"oklch(0.995 0.004 255)","popover-foreground":"oklch(0.16 0.01 255)","primary":"oklch(0.62 0.07 255)","primary-foreground":"oklch(0.18 0.01 255)","secondary":"oklch(0.967 0.006 255)","secondary-foreground":"oklch(0.21 0.01 255)","muted":"oklch(0.967 0.006 255)","muted-foreground":"oklch(0.552 0.012 255)","accent":"oklch(0.95 0.025 255)","accent-foreground":"oklch(0.21 0.021 255)","border":"oklch(0.92 0.006 255)","input":"oklch(0.92 0.006 255)","ring":"oklch(0.65 0.049 255)","destructive":"oklch(0.58 0.17 27)","destructive-foreground":"oklch(0.985 0.002 255)","success":"oklch(0.58 0.17 150)","success-foreground":"oklch(0.985 0.002 255)","warning":"oklch(0.58 0.17 70)","warning-foreground":"oklch(0.16 0.01 255)"},"examples":[{"id":"slate","title":"theme.css","mode":"source","language":"css","code":":root {\n --background: oklch(1 0 0);\n --foreground: oklch(0.16 0.01 255);\n --card: oklch(0.995 0.004 255);\n --card-foreground: oklch(0.16 0.01 255);\n --popover: oklch(0.995 0.004 255);\n --popover-foreground: oklch(0.16 0.01 255);\n --primary: oklch(0.62 0.07 255);\n --primary-foreground: oklch(0.18 0.01 255);\n --secondary: oklch(0.967 0.006 255);\n --secondary-foreground: oklch(0.21 0.01 255);\n --muted: oklch(0.967 0.006 255);\n --muted-foreground: oklch(0.552 0.012 255);\n --accent: oklch(0.95 0.025 255);\n --accent-foreground: oklch(0.21 0.021 255);\n --border: oklch(0.92 0.006 255);\n --input: oklch(0.92 0.006 255);\n --ring: oklch(0.65 0.049 255);\n --destructive: oklch(0.58 0.17 27);\n --destructive-foreground: oklch(0.985 0.002 255);\n --success: oklch(0.58 0.17 150);\n --success-foreground: oklch(0.985 0.002 255);\n --warning: oklch(0.58 0.17 70);\n --warning-foreground: oklch(0.16 0.01 255);\n --radius: 0.5rem;\n --font-display: \"Inter\", \"Segoe UI\", ui-sans-serif, system-ui, sans-serif;\n --font-body: ui-sans-serif, system-ui, -apple-system, \"Segoe UI\", sans-serif;\n --font-mono: ui-monospace, \"SFMono-Regular\", Menlo, Monaco, Consolas, monospace;\n}\n\n.dark {\n --background: oklch(0.16 0.012 255);\n --foreground: oklch(0.985 0.002 255);\n --card: oklch(0.215 0.014 255);\n --card-foreground: oklch(0.985 0.002 255);\n --popover: oklch(0.215 0.014 255);\n --popover-foreground: oklch(0.985 0.002 255);\n --primary: oklch(0.7 0.07 255);\n --primary-foreground: oklch(0.18 0.01 255);\n --secondary: oklch(0.275 0.014 255);\n --secondary-foreground: oklch(0.985 0.002 255);\n --muted: oklch(0.275 0.014 255);\n --muted-foreground: oklch(0.705 0.014 255);\n --accent: oklch(0.3 0.028 255);\n --accent-foreground: oklch(0.985 0.002 255);\n --border: oklch(0.31 0.014 255);\n --input: oklch(0.34 0.014 255);\n --ring: oklch(0.6 0.049 255);\n --destructive: oklch(0.68 0.17 27);\n --destructive-foreground: oklch(0.18 0.01 255);\n --success: oklch(0.68 0.17 150);\n --success-foreground: oklch(0.18 0.01 255);\n --warning: oklch(0.68 0.17 70);\n --warning-foreground: oklch(0.16 0.01 255);\n --radius: 0.5rem;\n}\n","dependencies":[]}],"distributions":[]},"theme:forest":{"resourceId":"theme:forest","title":{"zh":"Forest","en":"Forest"},"docs":{"zh":"Grounded green with an organic, earthy neutral.","en":"Grounded green with an organic, earthy neutral."},"tokens":{"background":"oklch(1 0 0)","foreground":"oklch(0.16 0.01 140)","card":"oklch(0.995 0.004 140)","card-foreground":"oklch(0.16 0.01 140)","popover":"oklch(0.995 0.004 140)","popover-foreground":"oklch(0.16 0.01 140)","primary":"oklch(0.62 0.12 150)","primary-foreground":"oklch(0.18 0.01 140)","secondary":"oklch(0.967 0.006 140)","secondary-foreground":"oklch(0.21 0.01 140)","muted":"oklch(0.967 0.006 140)","muted-foreground":"oklch(0.552 0.012 140)","accent":"oklch(0.95 0.042 150)","accent-foreground":"oklch(0.21 0.036 150)","border":"oklch(0.92 0.006 140)","input":"oklch(0.92 0.006 140)","ring":"oklch(0.65 0.084 150)","destructive":"oklch(0.58 0.17 27)","destructive-foreground":"oklch(0.985 0.002 140)","success":"oklch(0.58 0.17 150)","success-foreground":"oklch(0.985 0.002 140)","warning":"oklch(0.58 0.17 70)","warning-foreground":"oklch(0.16 0.01 140)"},"examples":[{"id":"forest","title":"theme.css","mode":"source","language":"css","code":":root {\n --background: oklch(1 0 0);\n --foreground: oklch(0.16 0.01 140);\n --card: oklch(0.995 0.004 140);\n --card-foreground: oklch(0.16 0.01 140);\n --popover: oklch(0.995 0.004 140);\n --popover-foreground: oklch(0.16 0.01 140);\n --primary: oklch(0.62 0.12 150);\n --primary-foreground: oklch(0.18 0.01 140);\n --secondary: oklch(0.967 0.006 140);\n --secondary-foreground: oklch(0.21 0.01 140);\n --muted: oklch(0.967 0.006 140);\n --muted-foreground: oklch(0.552 0.012 140);\n --accent: oklch(0.95 0.042 150);\n --accent-foreground: oklch(0.21 0.036 150);\n --border: oklch(0.92 0.006 140);\n --input: oklch(0.92 0.006 140);\n --ring: oklch(0.65 0.084 150);\n --destructive: oklch(0.58 0.17 27);\n --destructive-foreground: oklch(0.985 0.002 140);\n --success: oklch(0.58 0.17 150);\n --success-foreground: oklch(0.985 0.002 140);\n --warning: oklch(0.58 0.17 70);\n --warning-foreground: oklch(0.16 0.01 140);\n --radius: 0.75rem;\n --font-display: \"Instrument Serif\", ui-serif, Georgia, \"Times New Roman\", serif;\n --font-body: ui-sans-serif, system-ui, -apple-system, \"Segoe UI\", sans-serif;\n --font-mono: ui-monospace, \"SFMono-Regular\", Menlo, Monaco, Consolas, monospace;\n}\n\n.dark {\n --background: oklch(0.16 0.012 140);\n --foreground: oklch(0.985 0.002 140);\n --card: oklch(0.215 0.014 140);\n --card-foreground: oklch(0.985 0.002 140);\n --popover: oklch(0.215 0.014 140);\n --popover-foreground: oklch(0.985 0.002 140);\n --primary: oklch(0.7 0.12 150);\n --primary-foreground: oklch(0.18 0.01 140);\n --secondary: oklch(0.275 0.014 140);\n --secondary-foreground: oklch(0.985 0.002 140);\n --muted: oklch(0.275 0.014 140);\n --muted-foreground: oklch(0.705 0.014 140);\n --accent: oklch(0.3 0.048 150);\n --accent-foreground: oklch(0.985 0.002 140);\n --border: oklch(0.31 0.014 140);\n --input: oklch(0.34 0.014 140);\n --ring: oklch(0.6 0.084 150);\n --destructive: oklch(0.68 0.17 27);\n --destructive-foreground: oklch(0.18 0.01 140);\n --success: oklch(0.68 0.17 150);\n --success-foreground: oklch(0.18 0.01 140);\n --warning: oklch(0.68 0.17 70);\n --warning-foreground: oklch(0.16 0.01 140);\n --radius: 0.75rem;\n}\n","dependencies":[]}],"distributions":[]},"theme:rose":{"resourceId":"theme:rose","title":{"zh":"Rose","en":"Rose"},"docs":{"zh":"Warm rose accent, soft and editorial.","en":"Warm rose accent, soft and editorial."},"tokens":{"background":"oklch(1 0 0)","foreground":"oklch(0.16 0.01 20)","card":"oklch(0.995 0.004 20)","card-foreground":"oklch(0.16 0.01 20)","popover":"oklch(0.995 0.004 20)","popover-foreground":"oklch(0.16 0.01 20)","primary":"oklch(0.62 0.14 15)","primary-foreground":"oklch(0.18 0.01 20)","secondary":"oklch(0.967 0.006 20)","secondary-foreground":"oklch(0.21 0.01 20)","muted":"oklch(0.967 0.006 20)","muted-foreground":"oklch(0.552 0.012 20)","accent":"oklch(0.95 0.049 15)","accent-foreground":"oklch(0.21 0.042 15)","border":"oklch(0.92 0.006 20)","input":"oklch(0.92 0.006 20)","ring":"oklch(0.65 0.098 15)","destructive":"oklch(0.58 0.17 27)","destructive-foreground":"oklch(0.985 0.002 20)","success":"oklch(0.58 0.17 150)","success-foreground":"oklch(0.985 0.002 20)","warning":"oklch(0.58 0.17 70)","warning-foreground":"oklch(0.16 0.01 20)"},"examples":[{"id":"rose","title":"theme.css","mode":"source","language":"css","code":":root {\n --background: oklch(1 0 0);\n --foreground: oklch(0.16 0.01 20);\n --card: oklch(0.995 0.004 20);\n --card-foreground: oklch(0.16 0.01 20);\n --popover: oklch(0.995 0.004 20);\n --popover-foreground: oklch(0.16 0.01 20);\n --primary: oklch(0.62 0.14 15);\n --primary-foreground: oklch(0.18 0.01 20);\n --secondary: oklch(0.967 0.006 20);\n --secondary-foreground: oklch(0.21 0.01 20);\n --muted: oklch(0.967 0.006 20);\n --muted-foreground: oklch(0.552 0.012 20);\n --accent: oklch(0.95 0.049 15);\n --accent-foreground: oklch(0.21 0.042 15);\n --border: oklch(0.92 0.006 20);\n --input: oklch(0.92 0.006 20);\n --ring: oklch(0.65 0.098 15);\n --destructive: oklch(0.58 0.17 27);\n --destructive-foreground: oklch(0.985 0.002 20);\n --success: oklch(0.58 0.17 150);\n --success-foreground: oklch(0.985 0.002 20);\n --warning: oklch(0.58 0.17 70);\n --warning-foreground: oklch(0.16 0.01 20);\n --radius: 0.75rem;\n --font-display: \"Instrument Serif\", ui-serif, Georgia, \"Times New Roman\", serif;\n --font-body: \"Inter\", \"Segoe UI\", ui-sans-serif, system-ui, sans-serif;\n --font-mono: ui-monospace, \"SFMono-Regular\", Menlo, Monaco, Consolas, monospace;\n}\n\n.dark {\n --background: oklch(0.16 0.012 20);\n --foreground: oklch(0.985 0.002 20);\n --card: oklch(0.215 0.014 20);\n --card-foreground: oklch(0.985 0.002 20);\n --popover: oklch(0.215 0.014 20);\n --popover-foreground: oklch(0.985 0.002 20);\n --primary: oklch(0.7 0.14 15);\n --primary-foreground: oklch(0.18 0.01 20);\n --secondary: oklch(0.275 0.014 20);\n --secondary-foreground: oklch(0.985 0.002 20);\n --muted: oklch(0.275 0.014 20);\n --muted-foreground: oklch(0.705 0.014 20);\n --accent: oklch(0.3 0.056 15);\n --accent-foreground: oklch(0.985 0.002 20);\n --border: oklch(0.31 0.014 20);\n --input: oklch(0.34 0.014 20);\n --ring: oklch(0.6 0.098 15);\n --destructive: oklch(0.68 0.17 27);\n --destructive-foreground: oklch(0.18 0.01 20);\n --success: oklch(0.68 0.17 150);\n --success-foreground: oklch(0.18 0.01 20);\n --warning: oklch(0.68 0.17 70);\n --warning-foreground: oklch(0.16 0.01 20);\n --radius: 0.75rem;\n}\n","dependencies":[]}],"distributions":[]},"theme:indigo":{"resourceId":"theme:indigo","title":{"zh":"Indigo","en":"Indigo"},"docs":{"zh":"Vivid indigo, modern product feel.","en":"Vivid indigo, modern product feel."},"tokens":{"background":"oklch(1 0 0)","foreground":"oklch(0.16 0.01 265)","card":"oklch(0.995 0.004 265)","card-foreground":"oklch(0.16 0.01 265)","popover":"oklch(0.995 0.004 265)","popover-foreground":"oklch(0.16 0.01 265)","primary":"oklch(0.62 0.16 265)","primary-foreground":"oklch(0.18 0.01 265)","secondary":"oklch(0.967 0.006 265)","secondary-foreground":"oklch(0.21 0.01 265)","muted":"oklch(0.967 0.006 265)","muted-foreground":"oklch(0.552 0.012 265)","accent":"oklch(0.95 0.056 265)","accent-foreground":"oklch(0.21 0.048 265)","border":"oklch(0.92 0.006 265)","input":"oklch(0.92 0.006 265)","ring":"oklch(0.65 0.112 265)","destructive":"oklch(0.58 0.17 27)","destructive-foreground":"oklch(0.985 0.002 265)","success":"oklch(0.58 0.17 150)","success-foreground":"oklch(0.985 0.002 265)","warning":"oklch(0.58 0.17 70)","warning-foreground":"oklch(0.16 0.01 265)"},"examples":[{"id":"indigo","title":"theme.css","mode":"source","language":"css","code":":root {\n --background: oklch(1 0 0);\n --foreground: oklch(0.16 0.01 265);\n --card: oklch(0.995 0.004 265);\n --card-foreground: oklch(0.16 0.01 265);\n --popover: oklch(0.995 0.004 265);\n --popover-foreground: oklch(0.16 0.01 265);\n --primary: oklch(0.62 0.16 265);\n --primary-foreground: oklch(0.18 0.01 265);\n --secondary: oklch(0.967 0.006 265);\n --secondary-foreground: oklch(0.21 0.01 265);\n --muted: oklch(0.967 0.006 265);\n --muted-foreground: oklch(0.552 0.012 265);\n --accent: oklch(0.95 0.056 265);\n --accent-foreground: oklch(0.21 0.048 265);\n --border: oklch(0.92 0.006 265);\n --input: oklch(0.92 0.006 265);\n --ring: oklch(0.65 0.112 265);\n --destructive: oklch(0.58 0.17 27);\n --destructive-foreground: oklch(0.985 0.002 265);\n --success: oklch(0.58 0.17 150);\n --success-foreground: oklch(0.985 0.002 265);\n --warning: oklch(0.58 0.17 70);\n --warning-foreground: oklch(0.16 0.01 265);\n --radius: 0.5rem;\n --font-display: \"Space Grotesk\", \"Inter\", ui-sans-serif, system-ui, sans-serif;\n --font-body: ui-sans-serif, system-ui, -apple-system, \"Segoe UI\", sans-serif;\n --font-mono: ui-monospace, \"SFMono-Regular\", Menlo, Monaco, Consolas, monospace;\n}\n\n.dark {\n --background: oklch(0.16 0.012 265);\n --foreground: oklch(0.985 0.002 265);\n --card: oklch(0.215 0.014 265);\n --card-foreground: oklch(0.985 0.002 265);\n --popover: oklch(0.215 0.014 265);\n --popover-foreground: oklch(0.985 0.002 265);\n --primary: oklch(0.7 0.16 265);\n --primary-foreground: oklch(0.18 0.01 265);\n --secondary: oklch(0.275 0.014 265);\n --secondary-foreground: oklch(0.985 0.002 265);\n --muted: oklch(0.275 0.014 265);\n --muted-foreground: oklch(0.705 0.014 265);\n --accent: oklch(0.3 0.064 265);\n --accent-foreground: oklch(0.985 0.002 265);\n --border: oklch(0.31 0.014 265);\n --input: oklch(0.34 0.014 265);\n --ring: oklch(0.6 0.112 265);\n --destructive: oklch(0.68 0.17 27);\n --destructive-foreground: oklch(0.18 0.01 265);\n --success: oklch(0.68 0.17 150);\n --success-foreground: oklch(0.18 0.01 265);\n --warning: oklch(0.68 0.17 70);\n --warning-foreground: oklch(0.16 0.01 265);\n --radius: 0.5rem;\n}\n","dependencies":[]}],"distributions":[]},"theme:midnight":{"resourceId":"theme:midnight","title":{"zh":"Midnight","en":"Midnight"},"docs":{"zh":"Deep blue-violet accent tuned for dark-first surfaces.","en":"Deep blue-violet accent tuned for dark-first surfaces."},"tokens":{"background":"oklch(1 0 0)","foreground":"oklch(0.16 0.01 275)","card":"oklch(0.995 0.004 275)","card-foreground":"oklch(0.16 0.01 275)","popover":"oklch(0.995 0.004 275)","popover-foreground":"oklch(0.16 0.01 275)","primary":"oklch(0.62 0.13 280)","primary-foreground":"oklch(0.18 0.01 275)","secondary":"oklch(0.967 0.006 275)","secondary-foreground":"oklch(0.21 0.01 275)","muted":"oklch(0.967 0.006 275)","muted-foreground":"oklch(0.552 0.012 275)","accent":"oklch(0.95 0.046 280)","accent-foreground":"oklch(0.21 0.039 280)","border":"oklch(0.92 0.006 275)","input":"oklch(0.92 0.006 275)","ring":"oklch(0.65 0.091 280)","destructive":"oklch(0.58 0.17 27)","destructive-foreground":"oklch(0.985 0.002 275)","success":"oklch(0.58 0.17 150)","success-foreground":"oklch(0.985 0.002 275)","warning":"oklch(0.58 0.17 70)","warning-foreground":"oklch(0.16 0.01 275)"},"examples":[{"id":"midnight","title":"theme.css","mode":"source","language":"css","code":":root {\n --background: oklch(1 0 0);\n --foreground: oklch(0.16 0.01 275);\n --card: oklch(0.995 0.004 275);\n --card-foreground: oklch(0.16 0.01 275);\n --popover: oklch(0.995 0.004 275);\n --popover-foreground: oklch(0.16 0.01 275);\n --primary: oklch(0.62 0.13 280);\n --primary-foreground: oklch(0.18 0.01 275);\n --secondary: oklch(0.967 0.006 275);\n --secondary-foreground: oklch(0.21 0.01 275);\n --muted: oklch(0.967 0.006 275);\n --muted-foreground: oklch(0.552 0.012 275);\n --accent: oklch(0.95 0.046 280);\n --accent-foreground: oklch(0.21 0.039 280);\n --border: oklch(0.92 0.006 275);\n --input: oklch(0.92 0.006 275);\n --ring: oklch(0.65 0.091 280);\n --destructive: oklch(0.58 0.17 27);\n --destructive-foreground: oklch(0.985 0.002 275);\n --success: oklch(0.58 0.17 150);\n --success-foreground: oklch(0.985 0.002 275);\n --warning: oklch(0.58 0.17 70);\n --warning-foreground: oklch(0.16 0.01 275);\n --radius: 0.25rem;\n --font-display: \"Space Grotesk\", \"Inter\", ui-sans-serif, system-ui, sans-serif;\n --font-body: ui-sans-serif, system-ui, -apple-system, \"Segoe UI\", sans-serif;\n --font-mono: ui-monospace, \"SFMono-Regular\", Menlo, Monaco, Consolas, monospace;\n}\n\n.dark {\n --background: oklch(0.16 0.012 275);\n --foreground: oklch(0.985 0.002 275);\n --card: oklch(0.215 0.014 275);\n --card-foreground: oklch(0.985 0.002 275);\n --popover: oklch(0.215 0.014 275);\n --popover-foreground: oklch(0.985 0.002 275);\n --primary: oklch(0.7 0.13 280);\n --primary-foreground: oklch(0.18 0.01 275);\n --secondary: oklch(0.275 0.014 275);\n --secondary-foreground: oklch(0.985 0.002 275);\n --muted: oklch(0.275 0.014 275);\n --muted-foreground: oklch(0.705 0.014 275);\n --accent: oklch(0.3 0.052 280);\n --accent-foreground: oklch(0.985 0.002 275);\n --border: oklch(0.31 0.014 275);\n --input: oklch(0.34 0.014 275);\n --ring: oklch(0.6 0.091 280);\n --destructive: oklch(0.68 0.17 27);\n --destructive-foreground: oklch(0.18 0.01 275);\n --success: oklch(0.68 0.17 150);\n --success-foreground: oklch(0.18 0.01 275);\n --warning: oklch(0.68 0.17 70);\n --warning-foreground: oklch(0.16 0.01 275);\n --radius: 0.25rem;\n}\n","dependencies":[]}],"distributions":[]},"theme:mono":{"resourceId":"theme:mono","title":{"zh":"Mono","en":"Mono"},"docs":{"zh":"Pure greyscale — zero-chroma accent for a stark, typographic look.","en":"Pure greyscale — zero-chroma accent for a stark, typographic look."},"tokens":{"background":"oklch(1 0 0)","foreground":"oklch(0.16 0.01 0)","card":"oklch(0.995 0.004 0)","card-foreground":"oklch(0.16 0.01 0)","popover":"oklch(0.995 0.004 0)","popover-foreground":"oklch(0.16 0.01 0)","primary":"oklch(0.62 0 0)","primary-foreground":"oklch(0.18 0.01 0)","secondary":"oklch(0.967 0.006 0)","secondary-foreground":"oklch(0.21 0.01 0)","muted":"oklch(0.967 0.006 0)","muted-foreground":"oklch(0.552 0.012 0)","accent":"oklch(0.95 0 0)","accent-foreground":"oklch(0.21 0 0)","border":"oklch(0.92 0.006 0)","input":"oklch(0.92 0.006 0)","ring":"oklch(0.65 0 0)","destructive":"oklch(0.58 0.17 27)","destructive-foreground":"oklch(0.985 0.002 0)","success":"oklch(0.58 0.17 150)","success-foreground":"oklch(0.985 0.002 0)","warning":"oklch(0.58 0.17 70)","warning-foreground":"oklch(0.16 0.01 0)"},"examples":[{"id":"mono","title":"theme.css","mode":"source","language":"css","code":":root {\n --background: oklch(1 0 0);\n --foreground: oklch(0.16 0.01 0);\n --card: oklch(0.995 0.004 0);\n --card-foreground: oklch(0.16 0.01 0);\n --popover: oklch(0.995 0.004 0);\n --popover-foreground: oklch(0.16 0.01 0);\n --primary: oklch(0.62 0 0);\n --primary-foreground: oklch(0.18 0.01 0);\n --secondary: oklch(0.967 0.006 0);\n --secondary-foreground: oklch(0.21 0.01 0);\n --muted: oklch(0.967 0.006 0);\n --muted-foreground: oklch(0.552 0.012 0);\n --accent: oklch(0.95 0 0);\n --accent-foreground: oklch(0.21 0 0);\n --border: oklch(0.92 0.006 0);\n --input: oklch(0.92 0.006 0);\n --ring: oklch(0.65 0 0);\n --destructive: oklch(0.58 0.17 27);\n --destructive-foreground: oklch(0.985 0.002 0);\n --success: oklch(0.58 0.17 150);\n --success-foreground: oklch(0.985 0.002 0);\n --warning: oklch(0.58 0.17 70);\n --warning-foreground: oklch(0.16 0.01 0);\n --radius: 0rem;\n --font-display: ui-monospace, \"SFMono-Regular\", Menlo, Monaco, Consolas, monospace;\n --font-body: ui-monospace, \"SFMono-Regular\", Menlo, Monaco, Consolas, monospace;\n --font-mono: ui-monospace, \"SFMono-Regular\", Menlo, Monaco, Consolas, monospace;\n}\n\n.dark {\n --background: oklch(0.16 0.012 0);\n --foreground: oklch(0.985 0.002 0);\n --card: oklch(0.215 0.014 0);\n --card-foreground: oklch(0.985 0.002 0);\n --popover: oklch(0.215 0.014 0);\n --popover-foreground: oklch(0.985 0.002 0);\n --primary: oklch(0.7 0 0);\n --primary-foreground: oklch(0.18 0.01 0);\n --secondary: oklch(0.275 0.014 0);\n --secondary-foreground: oklch(0.985 0.002 0);\n --muted: oklch(0.275 0.014 0);\n --muted-foreground: oklch(0.705 0.014 0);\n --accent: oklch(0.3 0 0);\n --accent-foreground: oklch(0.985 0.002 0);\n --border: oklch(0.31 0.014 0);\n --input: oklch(0.34 0.014 0);\n --ring: oklch(0.6 0 0);\n --destructive: oklch(0.68 0.17 27);\n --destructive-foreground: oklch(0.18 0.01 0);\n --success: oklch(0.68 0.17 150);\n --success-foreground: oklch(0.18 0.01 0);\n --warning: oklch(0.68 0.17 70);\n --warning-foreground: oklch(0.16 0.01 0);\n --radius: 0rem;\n}\n","dependencies":[]}],"distributions":[]},"theme:citrus":{"resourceId":"theme:citrus","title":{"zh":"Citrus","en":"Citrus"},"docs":{"zh":"Bright lime-yellow energy over a clean neutral.","en":"Bright lime-yellow energy over a clean neutral."},"tokens":{"background":"oklch(1 0 0)","foreground":"oklch(0.16 0.01 100)","card":"oklch(0.995 0.004 100)","card-foreground":"oklch(0.16 0.01 100)","popover":"oklch(0.995 0.004 100)","popover-foreground":"oklch(0.16 0.01 100)","primary":"oklch(0.62 0.15 110)","primary-foreground":"oklch(0.18 0.01 100)","secondary":"oklch(0.967 0.006 100)","secondary-foreground":"oklch(0.21 0.01 100)","muted":"oklch(0.967 0.006 100)","muted-foreground":"oklch(0.552 0.012 100)","accent":"oklch(0.95 0.053 110)","accent-foreground":"oklch(0.21 0.045 110)","border":"oklch(0.92 0.006 100)","input":"oklch(0.92 0.006 100)","ring":"oklch(0.65 0.105 110)","destructive":"oklch(0.58 0.17 27)","destructive-foreground":"oklch(0.985 0.002 100)","success":"oklch(0.58 0.17 150)","success-foreground":"oklch(0.985 0.002 100)","warning":"oklch(0.58 0.17 70)","warning-foreground":"oklch(0.16 0.01 100)"},"examples":[{"id":"citrus","title":"theme.css","mode":"source","language":"css","code":":root {\n --background: oklch(1 0 0);\n --foreground: oklch(0.16 0.01 100);\n --card: oklch(0.995 0.004 100);\n --card-foreground: oklch(0.16 0.01 100);\n --popover: oklch(0.995 0.004 100);\n --popover-foreground: oklch(0.16 0.01 100);\n --primary: oklch(0.62 0.15 110);\n --primary-foreground: oklch(0.18 0.01 100);\n --secondary: oklch(0.967 0.006 100);\n --secondary-foreground: oklch(0.21 0.01 100);\n --muted: oklch(0.967 0.006 100);\n --muted-foreground: oklch(0.552 0.012 100);\n --accent: oklch(0.95 0.053 110);\n --accent-foreground: oklch(0.21 0.045 110);\n --border: oklch(0.92 0.006 100);\n --input: oklch(0.92 0.006 100);\n --ring: oklch(0.65 0.105 110);\n --destructive: oklch(0.58 0.17 27);\n --destructive-foreground: oklch(0.985 0.002 100);\n --success: oklch(0.58 0.17 150);\n --success-foreground: oklch(0.985 0.002 100);\n --warning: oklch(0.58 0.17 70);\n --warning-foreground: oklch(0.16 0.01 100);\n --radius: 1rem;\n --font-display: \"Poppins\", \"Futura\", ui-sans-serif, system-ui, sans-serif;\n --font-body: ui-sans-serif, system-ui, -apple-system, \"Segoe UI\", sans-serif;\n --font-mono: ui-monospace, \"SFMono-Regular\", Menlo, Monaco, Consolas, monospace;\n}\n\n.dark {\n --background: oklch(0.16 0.012 100);\n --foreground: oklch(0.985 0.002 100);\n --card: oklch(0.215 0.014 100);\n --card-foreground: oklch(0.985 0.002 100);\n --popover: oklch(0.215 0.014 100);\n --popover-foreground: oklch(0.985 0.002 100);\n --primary: oklch(0.7 0.15 110);\n --primary-foreground: oklch(0.18 0.01 100);\n --secondary: oklch(0.275 0.014 100);\n --secondary-foreground: oklch(0.985 0.002 100);\n --muted: oklch(0.275 0.014 100);\n --muted-foreground: oklch(0.705 0.014 100);\n --accent: oklch(0.3 0.06 110);\n --accent-foreground: oklch(0.985 0.002 100);\n --border: oklch(0.31 0.014 100);\n --input: oklch(0.34 0.014 100);\n --ring: oklch(0.6 0.105 110);\n --destructive: oklch(0.68 0.17 27);\n --destructive-foreground: oklch(0.18 0.01 100);\n --success: oklch(0.68 0.17 150);\n --success-foreground: oklch(0.18 0.01 100);\n --warning: oklch(0.68 0.17 70);\n --warning-foreground: oklch(0.16 0.01 100);\n --radius: 1rem;\n}\n","dependencies":[]}],"distributions":[]},"block:collection-workspace":{"resourceId":"block:collection-workspace","title":{"zh":"Collection Workspace","en":"Collection Workspace"},"docs":{"zh":"# Collection Workspace\n\n真实 React 组件,示例采用本地内存宿主。可编辑预览和源码共享同一示例。\n\n数据权限、持久化和部署由宿主负责。示例不连接模型或生产后端。\n\n## TypeScript props, callbacks and slots\n\nSource: packages/renderer-react/src/collection-workspace.tsx\n\n```tsx\nexport interface PagedCollectionWorkspaceProps {\n client: PagedWorkspaceClient;\n locale?: PagedCollectionLocale;\n /** Grid and view feature flags; the workspace defaults to the `full` preset. */\n features?: PagedCollectionGridProps[\"features\"];\n ui?: CollectionUiSlots;\n /** Controlled table selection; omit to let the workspace pick the first table. */\n tableId?: string;\n onTableChange?(id: string): void;\n /** View to open first when the table has it (for example from a route). */\n initialViewId?: string;\n /** Exact controlled view selection. Unknown IDs never fall back to another view. */\n viewId?: string;\n /** Selection request, initialization or save acknowledgement; the host accepts by updating viewId. */\n onViewChange?(\n view: PagedCollectionView,\n reason: \"initialize\" | \"select\" | \"create\" | \"save\" | \"delete\",\n ): void;\n /** Synchronous host veto before user navigation. External prop changes remain host-owned. */\n onBeforeNavigate?(target: { tableId: string; viewId?: string }): boolean;\n /** Unique IDs for unsaved default, new and copied views. Omit to retain legacy ID generation. */\n createViewId?(tableId: string): string;\n /** Hide the table title row (hosts that render their own page title); toolbar actions stay. */\n hideHeader?: boolean;\n /** Reports every active view/schema/table/record draft and unconfirmed mutation. */\n onDirtyChange?(dirty: boolean): void;\n /** Reports any original mutation Promise in flight across the workspace. */\n onBusyChange?(busy: boolean): void;\n /** Show the table list on the left. Default true. */\n showTableList?: boolean;\n /** Overrides `client.capabilities`. Absent on both means the actor can do everything. */\n capabilities?: PagedCollectionCapabilities;\n /** Allow creating tables through `client.create`. Default follows `capabilities.schema`. */\n allowCreateTable?: boolean;\n pageSize?: number;\n renderCellEditor?: PagedCollectionGridProps[\"renderCellEditor\"];\n getRelationOptions?: PagedCollectionGridProps[\"getRelationOptions\"];\n /** Enables the sum bar: pick a number field and the whole filtered query is totalled server-side. */\n aggregateClient?: PagedCollectionAggregateClient;\n /** Disable the new footer protocol for legacy count/sum-only hosts. */\n serverFooterStats?: boolean;\n /**\n * Handles hosts that answer a destructive mutation with `approval_required`: show the impact,\n * ask the user, and return the approval receipt id, or undefined to cancel. The workspace then\n * retries the same request with `approvalReceiptId`.\n */\n requestApproval?(\n details: PagedCollectionApprovalRequired,\n request: PagedCollectionMutationRequest,\n ): Promise<string | undefined>;\n /** Field types offered in the schema editor. Default: the editor's seven basic types. */\n schemaFieldTypes?: PagedCollectionSchemaEditorProps[\"fieldTypes\"];\n /** Offer the full filter operator set and date modes. Default true; off for hosts that cannot run them. */\n advancedFilters?: boolean;\n /** Which per-field settings the schema editor offers. Hosts whose storage cannot keep a setting turn it off. */\n schemaSettings?: PagedCollectionSchemaEditorProps[\"settings\"];\n /**\n * Teable-style toolbar: hidden fields, filter, group and sort open as popovers next to search\n * instead of living in the view settings panel (which keeps name, type and row height).\n */\n inlineViewControls?: boolean;\n /** Suspend view toolbar edits, including portal content, without changing actor permissions. */\n viewControlsDisabled?: boolean;\n /** Success confirmations (\"View saved\") go here (e.g. a toast) instead of an inline status line; errors stay inline. */\n onNotify?(message: string): void;\n /** Existing fields can be renamed but not retyped or deleted; only new fields may be added. */\n addOnlySchema?: boolean;\n /** Show links between related tables (forward relations, and inverse records of the selected record). Default true. */\n relationNavigation?: boolean;\n /** Host menu wrapper for record actions in the grid. */\n renderRecordContextMenu?: PagedCollectionGridProps[\"renderRecordContextMenu\"];\n /** Host dialogs and drawers rendered inside the workspace with the live context (for example a table info sheet). */\n renderOverlay?(context: PagedWorkspaceContext): ReactNode;\n /** Replaces the message shown when the table list cannot be loaded (for example before access is granted). */\n renderListError?(\n error: { code: string | undefined; message: string },\n retry: () => void,\n ): ReactNode;\n /** Enables CSV import and export controls. */\n transferClient?: PagedCollectionTransferClient;\n /**\n * Enables AI fill: a toolbar entry opens a right-hand drawer that previews per-cell suggestions\n * from the host's model and applies the accepted ones by record version.\n */\n aiFillClient?: PagedCollectionAiFillClient;\n /**\n * Searches and opens the host's resources for hyperlink fields. Without it those fields take\n * typed URLs only and open them as plain links.\n */\n linkClient?: PagedCollectionLinkClient;\n /** Extra toolbar content (refresh, permissions, AI toggle, …). */\n toolbarActions?: ReactNode;\n /** Right-hand panel owned by the host (for example an AI assistant). */\n sidePanel?: ReactNode;\n /** Like `sidePanel`, but receives the live table, view and grid selection (for example to scope an AI prompt). */\n renderSidePanel?(context: PagedWorkspaceContext): ReactNode;\n /**\n * Hosts with their own drawer render the settings and schema panels in it. Call `onClose`\n * when the user finishes. Default: inline panels.\n */\n renderPanel?(panel: {\n kind: \"settings\" | \"schema\" | \"add\" | \"record\";\n /** The draft has unsaved edits; ask before calling `onClose`. */\n dirty: boolean;\n /** A save is in flight: keep the panel open. */\n busy: boolean;\n title: string;\n content: ReactNode;\n onClose(): void;\n }): ReactNode;\n}\n```","en":"# Collection Workspace\n\nEditable tables, schema, saved views and records with a local in-memory host.\n\nHost-owned persistence, authentication and model configuration are outside this memory demonstration.\n\n## TypeScript props, callbacks and slots\n\nSource: packages/renderer-react/src/collection-workspace.tsx\n\n```tsx\nexport interface PagedCollectionWorkspaceProps {\n client: PagedWorkspaceClient;\n locale?: PagedCollectionLocale;\n /** Grid and view feature flags; the workspace defaults to the `full` preset. */\n features?: PagedCollectionGridProps[\"features\"];\n ui?: CollectionUiSlots;\n /** Controlled table selection; omit to let the workspace pick the first table. */\n tableId?: string;\n onTableChange?(id: string): void;\n /** View to open first when the table has it (for example from a route). */\n initialViewId?: string;\n /** Exact controlled view selection. Unknown IDs never fall back to another view. */\n viewId?: string;\n /** Selection request, initialization or save acknowledgement; the host accepts by updating viewId. */\n onViewChange?(\n view: PagedCollectionView,\n reason: \"initialize\" | \"select\" | \"create\" | \"save\" | \"delete\",\n ): void;\n /** Synchronous host veto before user navigation. External prop changes remain host-owned. */\n onBeforeNavigate?(target: { tableId: string; viewId?: string }): boolean;\n /** Unique IDs for unsaved default, new and copied views. Omit to retain legacy ID generation. */\n createViewId?(tableId: string): string;\n /** Hide the table title row (hosts that render their own page title); toolbar actions stay. */\n hideHeader?: boolean;\n /** Reports every active view/schema/table/record draft and unconfirmed mutation. */\n onDirtyChange?(dirty: boolean): void;\n /** Reports any original mutation Promise in flight across the workspace. */\n onBusyChange?(busy: boolean): void;\n /** Show the table list on the left. Default true. */\n showTableList?: boolean;\n /** Overrides `client.capabilities`. Absent on both means the actor can do everything. */\n capabilities?: PagedCollectionCapabilities;\n /** Allow creating tables through `client.create`. Default follows `capabilities.schema`. */\n allowCreateTable?: boolean;\n pageSize?: number;\n renderCellEditor?: PagedCollectionGridProps[\"renderCellEditor\"];\n getRelationOptions?: PagedCollectionGridProps[\"getRelationOptions\"];\n /** Enables the sum bar: pick a number field and the whole filtered query is totalled server-side. */\n aggregateClient?: PagedCollectionAggregateClient;\n /** Disable the new footer protocol for legacy count/sum-only hosts. */\n serverFooterStats?: boolean;\n /**\n * Handles hosts that answer a destructive mutation with `approval_required`: show the impact,\n * ask the user, and return the approval receipt id, or undefined to cancel. The workspace then\n * retries the same request with `approvalReceiptId`.\n */\n requestApproval?(\n details: PagedCollectionApprovalRequired,\n request: PagedCollectionMutationRequest,\n ): Promise<string | undefined>;\n /** Field types offered in the schema editor. Default: the editor's seven basic types. */\n schemaFieldTypes?: PagedCollectionSchemaEditorProps[\"fieldTypes\"];\n /** Offer the full filter operator set and date modes. Default true; off for hosts that cannot run them. */\n advancedFilters?: boolean;\n /** Which per-field settings the schema editor offers. Hosts whose storage cannot keep a setting turn it off. */\n schemaSettings?: PagedCollectionSchemaEditorProps[\"settings\"];\n /**\n * Teable-style toolbar: hidden fields, filter, group and sort open as popovers next to search\n * instead of living in the view settings panel (which keeps name, type and row height).\n */\n inlineViewControls?: boolean;\n /** Suspend view toolbar edits, including portal content, without changing actor permissions. */\n viewControlsDisabled?: boolean;\n /** Success confirmations (\"View saved\") go here (e.g. a toast) instead of an inline status line; errors stay inline. */\n onNotify?(message: string): void;\n /** Existing fields can be renamed but not retyped or deleted; only new fields may be added. */\n addOnlySchema?: boolean;\n /** Show links between related tables (forward relations, and inverse records of the selected record). Default true. */\n relationNavigation?: boolean;\n /** Host menu wrapper for record actions in the grid. */\n renderRecordContextMenu?: PagedCollectionGridProps[\"renderRecordContextMenu\"];\n /** Host dialogs and drawers rendered inside the workspace with the live context (for example a table info sheet). */\n renderOverlay?(context: PagedWorkspaceContext): ReactNode;\n /** Replaces the message shown when the table list cannot be loaded (for example before access is granted). */\n renderListError?(\n error: { code: string | undefined; message: string },\n retry: () => void,\n ): ReactNode;\n /** Enables CSV import and export controls. */\n transferClient?: PagedCollectionTransferClient;\n /**\n * Enables AI fill: a toolbar entry opens a right-hand drawer that previews per-cell suggestions\n * from the host's model and applies the accepted ones by record version.\n */\n aiFillClient?: PagedCollectionAiFillClient;\n /**\n * Searches and opens the host's resources for hyperlink fields. Without it those fields take\n * typed URLs only and open them as plain links.\n */\n linkClient?: PagedCollectionLinkClient;\n /** Extra toolbar content (refresh, permissions, AI toggle, …). */\n toolbarActions?: ReactNode;\n /** Right-hand panel owned by the host (for example an AI assistant). */\n sidePanel?: ReactNode;\n /** Like `sidePanel`, but receives the live table, view and grid selection (for example to scope an AI prompt). */\n renderSidePanel?(context: PagedWorkspaceContext): ReactNode;\n /**\n * Hosts with their own drawer render the settings and schema panels in it. Call `onClose`\n * when the user finishes. Default: inline panels.\n */\n renderPanel?(panel: {\n kind: \"settings\" | \"schema\" | \"add\" | \"record\";\n /** The draft has unsaved edits; ask before calling `onClose`. */\n dirty: boolean;\n /** A save is in flight: keep the panel open. */\n busy: boolean;\n title: string;\n content: ReactNode;\n onClose(): void;\n }): ReactNode;\n}\n```"},"examples":[{"id":"collection-workspace","title":"Collection Workspace","mode":"tsx","language":"tsx","code":"/* @uibot-story\n{\n \"initial\": {\"preset\": \"workbench\", \"locale\": \"zh-CN\"},\n \"controls\": {\"preset\": {\"enum\": [\"workbench\", \"simple\", \"readonly\"]}, \"locale\": {\"enum\": [\"zh-CN\", \"en\"]}},\n \"variants\": [{\"name\": \"Simple\", \"args\": {\"preset\": \"simple\"}}, {\"name\": \"Read only\", \"args\": {\"preset\": \"readonly\"}}]\n}\n*/\nimport { useMemo } from \"react\";\nimport { PagedCollectionWorkspace } from \"@uibot/renderer-react/collection-workspace\";\nimport type {\n PagedCollectionDescriptor,\n PagedCollectionView,\n PagedCollectionClient,\n PagedCollectionFilterLeaf,\n PagedCollectionFilterNode,\n PagedCollectionMutationReceipt,\n PagedCollectionMutationRequest,\n PagedCollectionQuery,\n PagedCollectionRecord,\n PagedCollectionResult,\n PagedCollectionAggregateClient,\n PagedCollectionCapabilities,\n PagedCollectionField,\n} from \"@uibot/contracts\";\n// Standalone in-memory demonstration adapted from the engineering Storybook harness.\n// It grants no production data authority. Host persistence and ACL are separate ports.\n\nconst roadmap: PagedCollectionDescriptor = {\n id: \"roadmap\",\n name: \"Roadmap\",\n schemaVersion: 1,\n fields: [\n { id: \"title\", name: \"Task\", type: \"singleLineText\", required: true },\n {\n id: \"status\",\n name: \"Status\",\n type: \"singleSelect\",\n options: [\n { id: \"todo\", name: \"Todo\" },\n { id: \"doing\", name: \"In progress\" },\n { id: \"done\", name: \"Done\" },\n ],\n },\n {\n id: \"tags\",\n name: \"Tags\",\n type: \"multipleSelect\",\n options: [\n { id: \"design\", name: \"Design\" },\n { id: \"build\", name: \"Build\" },\n { id: \"growth\", name: \"Growth\" },\n ],\n },\n { id: \"points\", name: \"Points\", type: \"number\" },\n { id: \"due\", name: \"Due\", type: \"date\" },\n { id: \"accepted\", name: \"Accepted\", type: \"checkbox\" },\n { id: \"notes\", name: \"Notes\", type: \"longText\" },\n ],\n};\n\nconst roadmapRows: Array<Record<string, unknown>> = [\n {\n title: \"Sync engine refactor\",\n status: \"doing\",\n tags: [\"build\"],\n points: 13,\n due: \"2026-10-20T00:00:00.000Z\",\n accepted: false,\n notes: \"Split the batch endpoint\",\n },\n {\n title: \"Table visual upgrade\",\n status: \"doing\",\n tags: [\"design\", \"build\"],\n points: 8,\n due: \"2026-10-16T00:00:00.000Z\",\n accepted: false,\n notes: \"Match Feishu and Airtable density\",\n },\n {\n title: \"Link health checks\",\n status: \"todo\",\n tags: [\"build\", \"growth\"],\n points: 5,\n due: \"2026-10-28T00:00:00.000Z\",\n accepted: false,\n },\n {\n title: \"Global semantic search\",\n status: \"todo\",\n tags: [\"build\"],\n points: 21,\n due: \"2026-11-05T00:00:00.000Z\",\n accepted: false,\n notes: \"embedding v4, 1024 dims\",\n },\n {\n title: \"Instant tag feedback\",\n status: \"done\",\n tags: [\"design\"],\n points: 3,\n due: \"2026-10-10T00:00:00.000Z\",\n accepted: true,\n },\n {\n title: \"Desktop auto update\",\n status: \"done\",\n tags: [\"build\"],\n points: 5,\n due: \"2026-10-08T00:00:00.000Z\",\n accepted: true,\n notes: \"Published to R2\",\n },\n {\n title: \"Growth experiment A/B\",\n status: \"todo\",\n tags: [\"growth\"],\n points: 8,\n due: \"2026-10-31T00:00:00.000Z\",\n accepted: false,\n },\n {\n title: \"Brand logo rollout\",\n status: \"doing\",\n tags: [\"design\"],\n points: 2,\n due: \"2026-10-14T00:00:00.000Z\",\n accepted: false,\n notes: \"Slate + oxblood\",\n },\n];\n\nconst baseView = (overrides: Partial<PagedCollectionView> = {}): PagedCollectionView => ({\n id: \"default\",\n name: \"Default view\",\n version: 1,\n type: \"grid\",\n columnOrder: [],\n hiddenColumns: [],\n columnWidths: {},\n ...overrides,\n});\n\nconst ok = <T,>(data: T): PagedCollectionResult<T> => ({ ok: true, data });\nconst fail = <T,>(\n code: \"version_conflict\" | \"not_found\" | \"validation\",\n message: string,\n details?: unknown,\n): PagedCollectionResult<T> => ({\n ok: false,\n error: {\n code,\n status: code === \"not_found\" ? 404 : 409,\n message,\n ...(details ? { details } : {}),\n },\n});\n\nfunction matches(\n node: PagedCollectionFilterLeaf | PagedCollectionFilterNode,\n row: PagedCollectionRecord,\n): boolean {\n if (\"filterSet\" in node) {\n const results = node.filterSet.map((child) => matches(child, row));\n return node.conjunction === \"and\" ? results.every(Boolean) : results.some(Boolean);\n }\n const value = row.values[node.fieldId];\n switch (node.operator) {\n case \"is\":\n return value === node.value;\n case \"isNot\":\n return value !== node.value;\n case \"isEmpty\":\n return value == null || value === \"\" || (Array.isArray(value) && value.length === 0);\n case \"contains\":\n return String(value ?? \"\").includes(String(node.value ?? \"\"));\n case \"onOrAfter\":\n case \"gte\":\n return String(value ?? \"\") >= String(node.value ?? \"\");\n case \"before\":\n case \"lt\":\n return value != null && String(value) < String(node.value ?? \"\");\n case \"gt\":\n return String(value ?? \"\") > String(node.value ?? \"\");\n case \"lte\":\n return String(value ?? \"\") <= String(node.value ?? \"\");\n default:\n return true;\n }\n}\n\n/** Deterministic in-memory backend with the same CAS semantics a real host provides. */\nfunction createMemoryCollection(\n descriptor: PagedCollectionDescriptor,\n seed: Array<Record<string, unknown>>,\n options: { latencyMs?: number; mutationLatencyMs?: number; failMutations?: boolean } = {},\n) {\n let counter = 0;\n let rows: PagedCollectionRecord[] = seed.map((values) => ({\n id: `rec_${++counter}`,\n version: 1,\n values,\n }));\n const receipts = new Map<string, PagedCollectionMutationReceipt>();\n const wait = () =>\n options.latencyMs ? new Promise((r) => setTimeout(r, options.latencyMs)) : null;\n const rank = (fieldId: string, value: unknown) => {\n const field = descriptor.fields.find((f) => f.id === fieldId);\n if (field?.type !== \"singleSelect\") return value;\n const at = field.options?.findIndex((option) => option.id === value) ?? -1;\n return at < 0 ? Number.MAX_SAFE_INTEGER : at;\n };\n\n const client: Pick<PagedCollectionClient, \"query\" | \"mutate\"> = {\n async query(_id: string, query: PagedCollectionQuery) {\n await wait();\n const ids = query.ids?.filter((id) => id !== \"\").slice(0, 50);\n let result = ids?.length\n ? rows.filter((row) => ids.includes(row.id))\n : rows.filter((row) => (query.filter ? matches(query.filter, row) : true));\n if (!ids?.length && query.search) {\n const needle = query.search.toLowerCase();\n result = result.filter((row) =>\n JSON.stringify(Object.values(row.values)).toLowerCase().includes(needle),\n );\n }\n if (!ids?.length) {\n for (const sort of [...(query.sort ?? [])].reverse()) {\n result = [...result].sort((a, b) => {\n const x = rank(sort.fieldId, a.values[sort.fieldId]);\n const y = rank(sort.fieldId, b.values[sort.fieldId]);\n const cmp =\n typeof x === \"number\" && typeof y === \"number\"\n ? x - y\n : String(x ?? \"\").localeCompare(String(y ?? \"\"), \"zh-CN\");\n return sort.direction === \"asc\" ? cmp : -cmp;\n });\n }\n }\n const limit = query.limit ?? 50;\n const offset = ids?.length ? 0 : query.cursor ? Number(query.cursor) : 0;\n const end = offset + limit;\n return ok({\n items: result.slice(offset, end),\n total: result.length,\n limit,\n nextCursor: end < result.length ? String(end) : null,\n });\n },\n async mutate(_id: string, request: PagedCollectionMutationRequest) {\n await wait();\n if (options.mutationLatencyMs)\n await new Promise((r) => setTimeout(r, options.mutationLatencyMs));\n if (options.failMutations) return fail(\"validation\", \"Server rejected the change\");\n const replay = receipts.get(request.idempotencyKey);\n if (replay) return ok({ ...replay, replayed: true });\n const next = [...rows];\n const changed: PagedCollectionRecord[] = [];\n const deletedIds: string[] = [];\n for (const item of request.items) {\n if (item.op === \"insert\") {\n const created = { id: `rec_${++counter}`, version: 1, values: { ...item.values } };\n next.push(created);\n changed.push(created);\n continue;\n }\n const at = next.findIndex((row) => row.id === item.id);\n const current = next[at];\n if (!current) return fail(\"not_found\", \"Record not found\");\n if (current.version !== item.expectedVersion)\n return fail(\"version_conflict\", \"Record changed on the server\", { current });\n if (item.op === \"delete\") {\n next.splice(at, 1);\n deletedIds.push(item.id);\n } else {\n const updated = {\n ...current,\n version: current.version + 1,\n values: { ...current.values, ...item.values },\n };\n next[at] = updated;\n changed.push(updated);\n }\n }\n rows = next;\n const receipt: PagedCollectionMutationReceipt = {\n items: changed,\n deletedIds,\n replayed: false,\n };\n receipts.set(request.idempotencyKey, receipt);\n return ok(receipt);\n },\n };\n return { client, all: () => rows };\n}\n\nconst conflict = <T,>(message: string): PagedCollectionResult<T> => ({\n ok: false,\n error: { code: \"version_conflict\", status: 409, message },\n});\n\n/**\n * Multi-table in-memory host: tables, schema and view CAS, view deletion and capabilities,\n * everything `PagedCollectionWorkspace` asks of a `PagedCollectionClient`.\n */\nfunction createMemoryWorkspace(\n options: {\n capabilities?: PagedCollectionCapabilities;\n withDeleteView?: boolean;\n /** New tables start with no saved view, like hosts that create views lazily. */\n viewlessNewTables?: boolean;\n /** The first create succeeds on the server but its response is lost (a flaky network). */\n loseFirstCreateResponse?: boolean;\n /** Delay before create answers, to interleave other user actions. */\n createLatencyMs?: number;\n } = {},\n) {\n type Entry = {\n descriptor: PagedCollectionDescriptor;\n views: PagedCollectionView[];\n store: ReturnType<typeof createMemoryCollection>;\n };\n const tables = new Map<string, Entry>();\n const add = (descriptor: PagedCollectionDescriptor, seed: Array<Record<string, unknown>>) =>\n tables.set(descriptor.id, {\n descriptor,\n views: [baseView({ id: `${descriptor.id}-all`, name: \"All records\" })],\n store: createMemoryCollection(descriptor, seed),\n });\n add(roadmap, roadmapRows);\n add(\n {\n id: \"customers\",\n name: \"Customers\",\n schemaVersion: 1,\n icon: \"users\",\n fields: [\n { id: \"name\", name: \"Name\", type: \"singleLineText\", required: true },\n { id: \"city\", name: \"City\", type: \"singleLineText\" },\n ],\n },\n [{ name: \"Acme\", city: \"Shanghai\" }],\n );\n add(\n {\n id: \"followups\",\n name: \"Followups\",\n schemaVersion: 1,\n fields: [\n { id: \"note\", name: \"Note\", type: \"singleLineText\" },\n {\n id: \"customer\",\n name: \"Customer\",\n type: \"relation\",\n relation: { collectionId: \"customers\" },\n },\n ],\n },\n [\n { note: \"Call Acme\", customer: \"rec_1\" },\n { note: \"Orphan\", customer: \"rec_404\" },\n ],\n );\n const createdByKey = new Map<string, PagedCollectionDescriptor>();\n let responsesLost = options.loseFirstCreateResponse ? 1 : 0;\n const get = (id: string) => tables.get(id);\n const missing = <T,>(): PagedCollectionResult<T> => ({\n ok: false,\n error: { code: \"not_found\", status: 404, message: \"Table not found\" },\n });\n\n const client: PagedCollectionClient = {\n async list() {\n return ok([...tables.values()].map((entry) => entry.descriptor));\n },\n async create(input) {\n if (options.createLatencyMs) await new Promise((r) => setTimeout(r, options.createLatencyMs));\n const known = input.idempotencyKey ? createdByKey.get(input.idempotencyKey) : undefined;\n if (known) return ok(known);\n const id = `table_${tables.size + 1}`;\n add({ id, name: input.name, schemaVersion: 1, fields: input.fields }, []);\n if (options.viewlessNewTables) {\n const created = tables.get(id);\n if (created) created.views = [];\n }\n const created = tables.get(id)?.descriptor as PagedCollectionDescriptor;\n if (input.idempotencyKey) createdByKey.set(input.idempotencyKey, created);\n if (responsesLost > 0) {\n responsesLost -= 1;\n return { ok: false, error: { code: \"unavailable\", status: 503, message: \"Network lost\" } };\n }\n return ok(created);\n },\n async describe(id) {\n const entry = get(id);\n return entry ? ok(entry.descriptor) : missing();\n },\n async updateSchema(id, input) {\n const entry = get(id);\n if (!entry) return missing();\n if (entry.descriptor.schemaVersion !== input.expectedSchemaVersion)\n return conflict(\"Schema changed on the server\");\n const fields: PagedCollectionField[] = input.fields;\n entry.descriptor = {\n ...entry.descriptor,\n name: input.name,\n fields,\n schemaVersion: entry.descriptor.schemaVersion + 1,\n ...(input.icon ? { icon: input.icon } : {}),\n };\n return ok(entry.descriptor);\n },\n async query(id, query) {\n const entry = get(id);\n return entry ? entry.store.client.query(id, query) : missing();\n },\n async mutate(id, request) {\n const entry = get(id);\n return entry ? entry.store.client.mutate(id, request) : missing();\n },\n async views(id) {\n const entry = get(id);\n return entry ? ok(entry.views) : missing();\n },\n async saveView(id, input) {\n const entry = get(id);\n if (!entry) return missing();\n const current = entry.views.find((view) => view.id === input.view.id);\n if ((current?.version ?? 0) !== input.expectedVersion)\n return conflict(\"View changed on the server\");\n const saved = { ...input.view, version: (current?.version ?? 0) + 1 };\n entry.views = current\n ? entry.views.map((view) => (view.id === saved.id ? saved : view))\n : [...entry.views, saved];\n return ok(saved);\n },\n async capabilities() {\n return ok(options.capabilities ?? { read: true, write: true, schema: true });\n },\n };\n if (options.withDeleteView !== false) {\n client.deleteView = async (id, input) => {\n const entry = get(id);\n if (!entry) return missing();\n if (entry.views.length <= 1) return conflict(\"A table needs at least one view\");\n const current = entry.views.find((view) => view.id === input.viewId);\n if (!current || current.version !== input.expectedVersion)\n return conflict(\"View changed on the server\");\n entry.views = entry.views.filter((view) => view.id !== input.viewId);\n return ok({ id: input.viewId });\n };\n }\n /** Whole-query count and sum over the filtered rows, as a real host would compute server-side. */\n const aggregateClient: PagedCollectionAggregateClient = {\n async aggregate(id, input) {\n const entry = get(id);\n if (!entry) return missing();\n const page = await entry.store.client.query(id, {\n limit: 100000,\n search: input.search ?? \"\",\n ...(input.filter ? { filter: input.filter } : {}),\n });\n if (!page.ok) return page;\n const values: Record<string, number | null> = {};\n for (const spec of input.aggregates) {\n values[spec.as] =\n spec.fn === \"count\"\n ? page.data.items.length\n : page.data.items.reduce(\n (sum, row) => sum + (Number(row.values[spec.fieldId ?? \"\"]) || 0),\n 0,\n );\n }\n return ok([{ groups: {}, values }]);\n },\n };\n return { client, tables, aggregateClient };\n}\n\nexport default function Example(\n args: { preset: \"workbench\" | \"simple\" | \"readonly\"; locale: \"zh-CN\" | \"en\" } = {\n preset: \"workbench\",\n locale: \"zh-CN\",\n },\n) {\n const host = useMemo(() => createMemoryWorkspace({ withDeleteView: true }), []);\n return (\n <main className=\"space-y-3 p-4\">\n <p className=\"text-sm text-muted-foreground\">\n 本地内存数据 · 可编辑记录、切换视图、添加字段与表\n </p>\n <PagedCollectionWorkspace\n client={host.client}\n aggregateClient={host.aggregateClient}\n locale={args.locale}\n features={{ preset: args.preset }}\n />\n </main>\n );\n}\n","dependencies":["@uibot/renderer-react@0.16.0"]}],"distributions":[{"channel":"npm","name":"@uibot/renderer-react","version":"0.16.0","availability":"source"}]},"block:html-source-editor":{"resourceId":"block:html-source-editor","title":{"zh":"HTML Source Editor","en":"HTML Source Editor"},"docs":{"zh":"# HTML Source Editor\n\n真实 React 组件,示例采用本地内存宿主。可编辑预览和源码共享同一示例。\n\n数据权限、持久化和部署由宿主负责。示例不连接模型或生产后端。\n\n## TypeScript props, callbacks and slots\n\nSource: packages/renderer-react/src/HtmlSourceEditor.tsx\n\n```tsx\nexport interface HtmlSourceEditorProps {\n projectId: string;\n artifactId: string;\n title: string;\n revision: { id: string; number: number };\n historicalRevision?: { id: string; number: number; source: CreationContent };\n source: CreationContent;\n sandbox: string;\n /** `split`: source and preview side by side; `preview` / `source`: one pane. Default stacks both. */\n view?: \"split\" | \"preview\" | \"source\";\n onDirty?: (dirty: boolean) => void;\n onDraftChange?: (draft: string) => void;\n saveRevision: (input: HtmlSourceSaveInput) => Promise<HtmlSourceSaveResult>;\n openPreview: (input: { title: string; html: string }) => Promise<HtmlSourcePreviewResult>;\n /** The host validates bridge messages with its own nonce and permissions. */\n bindPreview?: (input: HtmlSourcePreviewBinding) => () => void;\n renderSaveAction?: (action: { disabled: boolean; onSave: () => void }) => ReactNode;\n}\n```","en":"# HTML Source Editor\n\nDraft protection, revision compare-and-swap and isolated HTML preview.\n\nHost-owned persistence, authentication and model configuration are outside this memory demonstration.\n\n## TypeScript props, callbacks and slots\n\nSource: packages/renderer-react/src/HtmlSourceEditor.tsx\n\n```tsx\nexport interface HtmlSourceEditorProps {\n projectId: string;\n artifactId: string;\n title: string;\n revision: { id: string; number: number };\n historicalRevision?: { id: string; number: number; source: CreationContent };\n source: CreationContent;\n sandbox: string;\n /** `split`: source and preview side by side; `preview` / `source`: one pane. Default stacks both. */\n view?: \"split\" | \"preview\" | \"source\";\n onDirty?: (dirty: boolean) => void;\n onDraftChange?: (draft: string) => void;\n saveRevision: (input: HtmlSourceSaveInput) => Promise<HtmlSourceSaveResult>;\n openPreview: (input: { title: string; html: string }) => Promise<HtmlSourcePreviewResult>;\n /** The host validates bridge messages with its own nonce and permissions. */\n bindPreview?: (input: HtmlSourcePreviewBinding) => () => void;\n renderSaveAction?: (action: { disabled: boolean; onSave: () => void }) => ReactNode;\n}\n```"},"examples":[{"id":"html-source-editor","title":"HTML Source Editor","mode":"tsx","language":"tsx","code":"/* @uibot-story\n{\n \"initial\": {\"title\": \"Memory example\", \"view\": \"split\"},\n \"controls\": {\"title\": {\"type\": \"string\"}, \"view\": {\"enum\": [\"split\", \"preview\", \"source\"]}},\n \"variants\": [{\"name\": \"Source\", \"args\": {\"view\": \"source\"}}, {\"name\": \"Preview\", \"args\": {\"view\": \"preview\"}}]\n}\n*/\nimport { useState } from \"react\";\nimport { HtmlSourceEditor } from \"@uibot/renderer-react\";\nexport default function Example(\n args: { title: string; view: \"split\" | \"preview\" | \"source\" } = {\n title: \"Memory example\",\n view: \"split\",\n },\n) {\n const [revision, setRevision] = useState({\n id: \"r1\",\n number: 1,\n content: \"<main><h1>Hello UIBot</h1></main>\",\n });\n return (\n <main className=\"p-4\">\n <HtmlSourceEditor\n projectId=\"memory\"\n artifactId=\"html\"\n title={args.title}\n view={args.view}\n revision={revision}\n source={{ format: \"html\", schemaVersion: \"1\", content: revision.content }}\n sandbox=\"allow-scripts\"\n openPreview={async ({ html }) => {\n const shellUrl = URL.createObjectURL(new Blob([html], { type: \"text/html\" }));\n return { shellUrl, dispose: () => URL.revokeObjectURL(shellUrl) };\n }}\n saveRevision={async (input) => {\n if (input.expectedRevisionId !== revision.id) throw Error(\"revision-conflict\");\n const next = {\n id: crypto.randomUUID(),\n number: revision.number + 1,\n content: input.source.content,\n };\n setRevision(next);\n return { revisionId: next.id, number: next.number, content: next.content };\n }}\n />\n </main>\n );\n}\n","dependencies":["@uibot/renderer-react@0.16.0"]}],"distributions":[{"channel":"npm","name":"@uibot/renderer-react","version":"0.16.0","availability":"source"}]},"block:chat-surface":{"resourceId":"block:chat-surface","title":{"zh":"AI Chat Surface","en":"AI Chat Surface"},"docs":{"zh":"# AI Chat Surface\n\n真实 React 组件,示例采用本地内存宿主。可编辑预览和源码共享同一示例。\n\n数据权限、持久化和部署由宿主负责。示例不连接模型或生产后端。\n\n## TypeScript props, callbacks and slots\n\nSource: packages/ai-chat/src/chat-surface.tsx\n\n```tsx\nexport interface ChatSurfaceProps {\n messages: UIMessage[];\n /** Host-owned copy labels; omitted labels preserve the English defaults. */\n copyLabels?: {\n copy: string;\n copied: string;\n failed: string;\n copyCode: string;\n copiedCode: string;\n };\n status?: ChatStatus;\n tokens?: ChatTokenSet;\n className?: string;\n viewportRef?: Ref<HTMLDivElement>;\n endRef?: Ref<HTMLDivElement>;\n onViewportScroll?: (event: UIEvent<HTMLDivElement>) => void;\n viewportTestId?: string;\n renderDataPart?: (part: UIMessage[\"parts\"][number], message: UIMessage) => ReactNode | undefined;\n renderFooter?: (message: UIMessage) => ReactNode;\n onExportArtifact?: (artifact: ChatArtifactData, format: ArtifactExportFormat) => void;\n onOpenArtifact?: (artifact: ChatArtifactData, message: UIMessage) => void;\n /** Regenerates the tail assistant message. Hosts own the existing regenerate path. */\n onRetry?: (message: UIMessage) => void;\n /** Resends a user message with replacement text. Hosts own the branch and transport. */\n onEdit?: (message: UIMessage, text: string) => void;\n /** Puts a selected passage into the composer as a quote. The host owns the draft. */\n onQuote?: (message: UIMessage, quoted: string) => void;\n suggestions?: readonly string[];\n onSuggest?: (text: string) => void;\n}\n```","en":"# AI Chat Surface\n\nA real conversation surface with fixture messages and host-owned actions.\n\nHost-owned persistence, authentication and model configuration are outside this memory demonstration.\n\n## TypeScript props, callbacks and slots\n\nSource: packages/ai-chat/src/chat-surface.tsx\n\n```tsx\nexport interface ChatSurfaceProps {\n messages: UIMessage[];\n /** Host-owned copy labels; omitted labels preserve the English defaults. */\n copyLabels?: {\n copy: string;\n copied: string;\n failed: string;\n copyCode: string;\n copiedCode: string;\n };\n status?: ChatStatus;\n tokens?: ChatTokenSet;\n className?: string;\n viewportRef?: Ref<HTMLDivElement>;\n endRef?: Ref<HTMLDivElement>;\n onViewportScroll?: (event: UIEvent<HTMLDivElement>) => void;\n viewportTestId?: string;\n renderDataPart?: (part: UIMessage[\"parts\"][number], message: UIMessage) => ReactNode | undefined;\n renderFooter?: (message: UIMessage) => ReactNode;\n onExportArtifact?: (artifact: ChatArtifactData, format: ArtifactExportFormat) => void;\n onOpenArtifact?: (artifact: ChatArtifactData, message: UIMessage) => void;\n /** Regenerates the tail assistant message. Hosts own the existing regenerate path. */\n onRetry?: (message: UIMessage) => void;\n /** Resends a user message with replacement text. Hosts own the branch and transport. */\n onEdit?: (message: UIMessage, text: string) => void;\n /** Puts a selected passage into the composer as a quote. The host owns the draft. */\n onQuote?: (message: UIMessage, quoted: string) => void;\n suggestions?: readonly string[];\n onSuggest?: (text: string) => void;\n}\n```"},"examples":[{"id":"chat-surface","title":"AI Chat Surface","mode":"tsx","language":"tsx","code":"/* @uibot-story\n{\n \"initial\": {\"status\": \"ready\", \"thread\": \"conversation\"},\n \"controls\": {\"status\": {\"enum\": [\"ready\", \"submitted\", \"streaming\", \"error\"]}, \"thread\": {\"enum\": [\"conversation\", \"complete\", \"empty\"]}},\n \"variants\": [{\"name\": \"Streaming\", \"args\": {\"status\": \"streaming\"}}, {\"name\": \"Rich content\", \"args\": {\"thread\": \"complete\"}}, {\"name\": \"Empty\", \"args\": {\"thread\": \"empty\"}}]\n}\n*/\nimport { ChatSurface, CANNED_CHAT_MESSAGES } from \"@uibot/ai-chat\";\nexport default function Example(\n args: {\n status: \"ready\" | \"submitted\" | \"streaming\" | \"error\";\n thread: \"conversation\" | \"complete\" | \"empty\";\n } = { status: \"ready\", thread: \"conversation\" },\n) {\n return (\n <main className=\"flex h-screen min-h-0 flex-col p-4\">\n <ChatSurface\n messages={\n args.thread === \"empty\"\n ? []\n : args.thread === \"complete\"\n ? CANNED_CHAT_MESSAGES\n : CANNED_CHAT_MESSAGES.slice(0, 2).map((message) => ({\n ...message,\n parts: message.parts.filter((part) => part.type === \"text\"),\n }))\n }\n status={args.status}\n />\n </main>\n );\n}\n","dependencies":["@uibot/ai-chat@0.16.0"]}],"distributions":[{"channel":"npm","name":"@uibot/ai-chat","version":"0.16.0","availability":"source"}]},"block:document-editor":{"resourceId":"block:document-editor","title":{"zh":"Document Editor","en":"Document Editor"},"docs":{"zh":"# Document Editor\n\n真实 React 组件,示例采用本地内存宿主。可编辑预览和源码共享同一示例。\n\n数据权限、持久化和部署由宿主负责。示例不连接模型或生产后端。\n\n## TypeScript props, callbacks and slots\n\nSource: packages/document-editor/src/block-editor.tsx\n\n```tsx\nexport interface BlockEditorProps {\n /** Initial block tree. Null/empty builds the tree from `markdown`. Remount (`key`) to reset. */\n blocks: unknown[] | null;\n markdown: string;\n /** Fires on real edits only: loading content and `setContent` never count. */\n onChange?(value: BlockEditorValue): void;\n readOnly?: boolean;\n locale?: \"zh-CN\" | \"en\";\n /** BlockNote theme: \"light\", \"dark\" or a theme object carrying the host's brand colours. */\n theme?: BlockEditorTheme;\n /** Uploads a dropped or pasted file and returns its URL. Absent means uploads are off. */\n uploadFile?(file: File): Promise<string>;\n className?: string;\n}\n```","en":"# Document Editor\n\nBlockNote-backed public React editing with local memory content.\n\nHost-owned persistence, authentication and model configuration are outside this memory demonstration.\n\n## TypeScript props, callbacks and slots\n\nSource: packages/document-editor/src/block-editor.tsx\n\n```tsx\nexport interface BlockEditorProps {\n /** Initial block tree. Null/empty builds the tree from `markdown`. Remount (`key`) to reset. */\n blocks: unknown[] | null;\n markdown: string;\n /** Fires on real edits only: loading content and `setContent` never count. */\n onChange?(value: BlockEditorValue): void;\n readOnly?: boolean;\n locale?: \"zh-CN\" | \"en\";\n /** BlockNote theme: \"light\", \"dark\" or a theme object carrying the host's brand colours. */\n theme?: BlockEditorTheme;\n /** Uploads a dropped or pasted file and returns its URL. Absent means uploads are off. */\n uploadFile?(file: File): Promise<string>;\n className?: string;\n}\n```"},"examples":[{"id":"document-editor","title":"Document Editor","mode":"tsx","language":"tsx","code":"/* @uibot-story\n{\n \"initial\": {\"readOnly\": false, \"locale\": \"zh-CN\"},\n \"controls\": {\"readOnly\": {\"type\": \"boolean\"}, \"locale\": {\"enum\": [\"zh-CN\", \"en\"]}},\n \"variants\": [{\"name\": \"Read only\", \"args\": {\"readOnly\": true}}, {\"name\": \"English\", \"args\": {\"locale\": \"en\"}}]\n}\n*/\nimport { useState } from \"react\";\nimport { BlockEditor } from \"@uibot/document-editor\";\nexport default function Example(\n args: { readOnly: boolean; locale: \"zh-CN\" | \"en\" } = { readOnly: false, locale: \"zh-CN\" },\n) {\n const [markdown, setMarkdown] = useState(\"# Your next idea\\n\\nWrite something useful.\");\n return (\n <main className=\"p-6\">\n <BlockEditor\n blocks={null}\n markdown={markdown}\n locale={args.locale}\n readOnly={args.readOnly}\n onChange={(value) => setMarkdown(value.markdown)}\n />\n <details>\n <summary>Markdown · local memory</summary>\n <pre>{markdown}</pre>\n </details>\n </main>\n );\n}\n","dependencies":["@uibot/document-editor@0.16.0"]}],"distributions":[{"channel":"npm","name":"@uibot/document-editor","version":"0.16.0","availability":"source"}]},"component:accordion-list":{"resourceId":"component:accordion-list","title":{"zh":"AccordionList","en":"AccordionList"},"docs":{"zh":"# AccordionList\n\nGeneral-purpose content accordion on native <details>/<summary> — fully functional with zero JS. Each row is a standalone hairline card with an optional leading icon chip, a title and a body. `defaultOpenFirst` opens the first row. (Faq is the divided-single-card Q&A variant.)\n\n","en":"# AccordionList\n\nGeneral-purpose content accordion on native <details>/<summary> — fully functional with zero JS. Each row is a standalone hairline card with an optional leading icon chip, a title and a body. `defaultOpenFirst` opens the first row. (Faq is the divided-single-card Q&A variant.)\n\n"},"api":{"name":"AccordionList","description":"General-purpose content accordion on native <details>/<summary> — fully functional with zero JS. Each row is a standalone hairline card with an optional leading icon chip, a title and a body. `defaultOpenFirst` opens the first row. (Faq is the divided-single-card Q&A variant.)","category":"presentation","level":"L2","tags":["accordion","details","content","marketing"],"props":{"title":{"type":"string","description":"Optional serif heading above the list"},"defaultOpenFirst":{"type":"boolean","default":false,"description":"Open the first row by default"},"items":{"type":"array","items":{"type":"object","properties":{"icon":{"type":"string","description":"Optional lucide icon for the row chip"},"title":{"type":"string"},"body":{"type":"string"}}},"description":"[{icon?, title, body}] — rows with an empty title are dropped"}},"usageScenarios":["Expandable feature explainers (icon + title + body) on a landing page","Docs 'details' sections with one card per topic"],"constraints":["Uses native <details> so multiple rows can be open at once (no single-open behaviour)","Bodies render as plain text; pass pre-formatted strings"]},"distributions":[{"channel":"shadcn","name":"sections","version":"0.16.0","availability":"source"},{"channel":"spec","name":"AccordionList","version":"0.16.0","availability":"source"}],"examples":[{"id":"AccordionList","title":"AccordionList","mode":"spec","language":"json","code":"{\n \"version\": \"2.0\",\n \"pages\": [\n {\n \"id\": \"demo\",\n \"path\": \"/\",\n \"title\": \"AccordionList\",\n \"blocks\": [\n {\n \"type\": \"AccordionList\",\n \"props\": {\n \"title\": \"Build something useful\",\n \"defaultOpenFirst\": false,\n \"items\": [\n {\n \"icon\": \"icon\",\n \"title\": \"Build something useful\",\n \"body\": \"body\"\n }\n ]\n }\n }\n ]\n }\n ]\n}","dependencies":[]}]},"component:alert":{"resourceId":"component:alert","title":{"zh":"Alert","en":"Alert"},"docs":{"zh":"# Alert\n\nInline alert with icon, title and description. destructive uses role=alert; other variants role=status. Status is conveyed by icon and hidden label text, not colour alone.\n\n","en":"# Alert\n\nInline alert with icon, title and description. destructive uses role=alert; other variants role=status. Status is conveyed by icon and hidden label text, not colour alone.\n\n"},"api":{"name":"Alert","description":"Inline alert with icon, title and description. destructive uses role=alert; other variants role=status. Status is conveyed by icon and hidden label text, not colour alone.","category":"primitive","level":"L1","tags":["alert","notice","feedback"],"props":{"variant":{"type":"string","enum":["default","destructive","warning","success"],"default":"default"},"title":{"type":"string"},"description":{"type":"string"},"message":{"type":"string","description":"Alias of description"}},"usageScenarios":["Guardrail notice","Save succeeded","Request failed"]},"distributions":[{"channel":"shadcn","name":"primitives","version":"0.16.0","availability":"source"},{"channel":"spec","name":"Alert","version":"0.16.0","availability":"source"}],"examples":[{"id":"Alert","title":"Alert","mode":"spec","language":"json","code":"{\n \"version\": \"2.0\",\n \"pages\": [\n {\n \"id\": \"demo\",\n \"path\": \"/\",\n \"title\": \"Alert\",\n \"blocks\": [\n {\n \"type\": \"Alert\",\n \"props\": {\n \"variant\": \"default\",\n \"title\": \"Build something useful\",\n \"description\": \"Explore the source and make it yours.\",\n \"message\": \"Your changes are saved.\"\n }\n }\n ]\n }\n ]\n}","dependencies":[]}]},"component:app-navigation":{"resourceId":"component:app-navigation","title":{"zh":"AppNavigation","en":"AppNavigation"},"docs":{"zh":"# AppNavigation\n\nWorkspace navigation with configured groups, brand and account\n\n","en":"# AppNavigation\n\nWorkspace navigation with configured groups, brand and account\n\n"},"api":{"name":"AppNavigation","tags":["navigation"],"description":"Workspace navigation with configured groups, brand and account","category":"composite","level":"L2","props":{"activePath":{"type":"string"},"brand":{"type":"string"},"logoSrc":{"type":"string","description":"Optional brand image URL; preserve its aspect ratio"},"subtitle":{"type":"string"},"groups":{"type":"array"},"workspaces":{"type":"array"},"userName":{"type":"string"},"email":{"type":"string"},"initials":{"type":"string"},"profileHref":{"type":"string"}},"events":{"onNavigate":{"description":"Serializable values in event.values"}}},"distributions":[{"channel":"shadcn","name":"admin-shell","version":"0.16.0","availability":"source"},{"channel":"spec","name":"AppNavigation","version":"0.16.0","availability":"source"}],"examples":[{"id":"AppNavigation","title":"AppNavigation","mode":"spec","language":"json","code":"{\n \"version\": \"2.0\",\n \"pages\": [\n {\n \"id\": \"demo\",\n \"path\": \"/\",\n \"title\": \"AppNavigation\",\n \"blocks\": [\n {\n \"type\": \"AppNavigation\",\n \"props\": {\n \"activePath\": \"#\",\n \"brand\": \"brand\",\n \"subtitle\": \"subtitle\",\n \"groups\": [],\n \"workspaces\": [],\n \"userName\": \"userName\",\n \"email\": \"email\",\n \"initials\": \"initials\",\n \"profileHref\": \"#\"\n }\n }\n ]\n }\n ]\n}","dependencies":[]}]},"component:avatar-list":{"resourceId":"component:avatar-list","title":{"zh":"AvatarList","en":"AvatarList"},"docs":{"zh":"# AvatarList\n\nCompact people and activity list\n\n","en":"# AvatarList\n\nCompact people and activity list\n\n"},"api":{"name":"AvatarList","tags":["list"],"description":"Compact people and activity list","category":"composite","level":"L2","props":{"items":{"type":"array"}},"events":{}},"distributions":[{"channel":"shadcn","name":"dashboard","version":"0.16.0","availability":"source"},{"channel":"spec","name":"AvatarList","version":"0.16.0","availability":"source"}],"examples":[{"id":"AvatarList","title":"AvatarList","mode":"spec","language":"json","code":"{\n \"version\": \"2.0\",\n \"pages\": [\n {\n \"id\": \"demo\",\n \"path\": \"/\",\n \"title\": \"AvatarList\",\n \"blocks\": [\n {\n \"type\": \"AvatarList\",\n \"props\": {\n \"items\": []\n }\n }\n ]\n }\n ]\n}","dependencies":[]}]},"component:badge":{"resourceId":"component:badge","title":{"zh":"Badge","en":"Badge"},"docs":{"zh":"# Badge\n\nSmall status label. Text is the status; colour is only reinforcement. Children or `label` provide the text.\n\n","en":"# Badge\n\nSmall status label. Text is the status; colour is only reinforcement. Children or `label` provide the text.\n\n"},"api":{"name":"Badge","description":"Small status label. Text is the status; colour is only reinforcement. Children or `label` provide the text.","category":"primitive","level":"L1","tags":["badge","status","label"],"props":{"variant":{"type":"string","enum":["default","secondary","outline","success","warning","destructive"],"default":"default"},"label":{"type":"string"}},"usageScenarios":["Provider state: Active / Disabled","Row status in a table"]},"distributions":[{"channel":"shadcn","name":"primitives","version":"0.16.0","availability":"source"},{"channel":"spec","name":"Badge","version":"0.16.0","availability":"source"}],"examples":[{"id":"Badge","title":"Badge","mode":"spec","language":"json","code":"{\n \"version\": \"2.0\",\n \"pages\": [\n {\n \"id\": \"demo\",\n \"path\": \"/\",\n \"title\": \"Badge\",\n \"blocks\": [\n {\n \"type\": \"Badge\",\n \"props\": {\n \"variant\": \"default\",\n \"label\": \"UIBot\"\n }\n }\n ]\n }\n ]\n}","dependencies":[]}]},"component:badge-group":{"resourceId":"component:badge-group","title":{"zh":"BadgeGroup","en":"BadgeGroup"},"docs":{"zh":"# BadgeGroup\n\nHorizontal group of status badges. Items may be plain strings or {label, tone}.\n\n","en":"# BadgeGroup\n\nHorizontal group of status badges. Items may be plain strings or {label, tone}.\n\n"},"api":{"name":"BadgeGroup","description":"Horizontal group of status badges. Items may be plain strings or {label, tone}.","category":"composite","level":"L1","tags":["badge","status","tags"],"props":{"items":{"type":"array","items":{"type":"object","properties":{"label":{"type":"string"},"tone":{"type":"string","enum":["default","success","warning","error","info"]}}},"description":"Array of strings or [{label, tone?}]"}},"usageScenarios":["Status / tag chips on a list row","Capability flags on an agent card"],"constraints":["tone defaults to 'default' when omitted or unrecognised"]},"distributions":[{"channel":"shadcn","name":"interactive","version":"0.16.0","availability":"source"},{"channel":"spec","name":"BadgeGroup","version":"0.16.0","availability":"source"}],"examples":[{"id":"BadgeGroup","title":"BadgeGroup","mode":"spec","language":"json","code":"{\n \"version\": \"2.0\",\n \"pages\": [\n {\n \"id\": \"demo\",\n \"path\": \"/\",\n \"title\": \"BadgeGroup\",\n \"blocks\": [\n {\n \"type\": \"BadgeGroup\",\n \"props\": {\n \"items\": [\n {\n \"label\": \"UIBot\",\n \"tone\": \"default\"\n }\n ]\n }\n }\n ]\n }\n ]\n}","dependencies":[]}]},"component:banner":{"resourceId":"component:banner","title":{"zh":"Banner","en":"Banner"},"docs":{"zh":"# Banner\n\nSlim full-width announcement bar: optional icon + message, an inline CTA link and a decorative dismiss '×'. `tone` picks one of the four brand accents; `solid` fills the strip with the accent instead of a soft tint.\n\n","en":"# Banner\n\nSlim full-width announcement bar: optional icon + message, an inline CTA link and a decorative dismiss '×'. `tone` picks one of the four brand accents; `solid` fills the strip with the accent instead of a soft tint.\n\n"},"api":{"name":"Banner","description":"Slim full-width announcement bar: optional icon + message, an inline CTA link and a decorative dismiss '×'. `tone` picks one of the four brand accents; `solid` fills the strip with the accent instead of a soft tint.","category":"presentation","level":"L1","tags":["banner","announcement","marketing","notice"],"props":{"message":{"type":"string","description":"Announcement text"},"icon":{"type":"string","description":"lucide icon name (defaults to 'sparkles')"},"tone":{"type":"string","enum":["0","1","2","3"],"default":"0","description":"Accent-hue index (0 amber · 1 teal · 2 rose · 3 indigo)"},"solid":{"type":"boolean","default":false,"description":"Fill the strip with the accent colour"},"cta":{"type":"object","properties":{"label":{"type":"string"},"href":{"type":"string"}},"description":"{label, href} — inline mono link on the right"},"dismissible":{"type":"boolean","default":true,"description":"Show the decorative × (presentational only)"}},"usageScenarios":["Top-of-page launch/announcement strip above the hero","Soft-tint 'new docs available' notice between sections"],"constraints":["The dismiss × is decorative — wire real dismissal at the host","tone is 0–3; CTA href defaults to '#'"]},"distributions":[{"channel":"shadcn","name":"sections","version":"0.16.0","availability":"source"},{"channel":"spec","name":"Banner","version":"0.16.0","availability":"source"}],"examples":[{"id":"Banner","title":"Banner","mode":"spec","language":"json","code":"{\n \"version\": \"2.0\",\n \"pages\": [\n {\n \"id\": \"demo\",\n \"path\": \"/\",\n \"title\": \"Banner\",\n \"blocks\": [\n {\n \"type\": \"Banner\",\n \"props\": {\n \"message\": \"Your changes are saved.\",\n \"icon\": \"icon\",\n \"tone\": \"0\",\n \"solid\": false,\n \"cta\": {\n \"label\": \"UIBot\",\n \"href\": \"#\"\n },\n \"dismissible\": true\n }\n }\n ]\n }\n ]\n}","dependencies":[]}]},"component:bar-chart":{"resourceId":"component:bar-chart","title":{"zh":"BarChart","en":"BarChart"},"docs":{"zh":"# BarChart\n\nAccessible deterministic bar series with visible labels and hover values\n\n","en":"# BarChart\n\nAccessible deterministic bar series with visible labels and hover values\n\n"},"api":{"name":"BarChart","tags":["chart"],"description":"Accessible deterministic bar series with visible labels and hover values","category":"composite","level":"L2","props":{"label":{"type":"string"},"data":{"type":"array"},"height":{"type":"number"},"prefix":{"type":"string"}},"events":{}},"distributions":[{"channel":"shadcn","name":"dashboard","version":"0.16.0","availability":"source"},{"channel":"spec","name":"BarChart","version":"0.16.0","availability":"source"}],"examples":[{"id":"BarChart","title":"BarChart","mode":"spec","language":"json","code":"{\n \"version\": \"2.0\",\n \"pages\": [\n {\n \"id\": \"demo\",\n \"path\": \"/\",\n \"title\": \"BarChart\",\n \"blocks\": [\n {\n \"type\": \"BarChart\",\n \"props\": {\n \"label\": \"UIBot\",\n \"data\": [],\n \"height\": 180,\n \"prefix\": \"prefix\"\n }\n }\n ]\n }\n ]\n}","dependencies":[]}]},"component:bento-cell":{"resourceId":"component:bento-cell","title":{"zh":"BentoCell","en":"BentoCell"},"docs":{"zh":"# BentoCell\n\nA single bento tile, usable standalone inside a BentoGrid. Reads span.col / span.row and maps them to static span classes so the cell can be as wide/tall as the mosaic needs. Optional icon/title/desc plus composed children.\n\n","en":"# BentoCell\n\nA single bento tile, usable standalone inside a BentoGrid. Reads span.col / span.row and maps them to static span classes so the cell can be as wide/tall as the mosaic needs. Optional icon/title/desc plus composed children.\n\n"},"api":{"name":"BentoCell","description":"A single bento tile, usable standalone inside a BentoGrid. Reads span.col / span.row and maps them to static span classes so the cell can be as wide/tall as the mosaic needs. Optional icon/title/desc plus composed children.","category":"presentation","level":"L1","tags":["bento","cell","card","marketing"],"props":{"title":{"type":"string"},"desc":{"type":"string"},"icon":{"type":"string","description":"lucide icon name"},"tone":{"type":"integer","description":"Accent-hue index 0–3 (amber/teal/rose/indigo)"},"span":{"type":"object","properties":{"col":{"type":"integer"},"row":{"type":"integer"}},"description":"{col?, row?} — col clamped 1–4, row clamped 1–3"}},"usageScenarios":["A hero tile (span col 2, row 2) holding a rendered preview inside a BentoGrid","Custom-bodied bento tile composed from child blocks"],"constraints":["Spans are clamped 1–4 (col) / 1–3 (row) and emitted as static classes","Designed to sit inside a BentoGrid; standalone it renders as a lone card"]},"distributions":[{"channel":"shadcn","name":"content","version":"0.16.0","availability":"source"},{"channel":"spec","name":"BentoCell","version":"0.16.0","availability":"source"}],"examples":[{"id":"BentoCell","title":"BentoCell","mode":"spec","language":"json","code":"{\n \"version\": \"2.0\",\n \"pages\": [\n {\n \"id\": \"demo\",\n \"path\": \"/\",\n \"title\": \"BentoCell\",\n \"blocks\": [\n {\n \"type\": \"BentoCell\",\n \"props\": {\n \"title\": \"Build something useful\",\n \"desc\": \"desc\",\n \"icon\": \"icon\",\n \"tone\": 2,\n \"span\": {\n \"col\": 2,\n \"row\": 2\n }\n },\n \"children\": [\n {\n \"type\": \"Paragraph\",\n \"props\": {\n \"text\": \"Compose this with your own content.\"\n }\n }\n ]\n }\n ]\n }\n ]\n}","dependencies":[]}]},"component:bento-grid":{"resourceId":"component:bento-grid","title":{"zh":"BentoGrid","en":"BentoGrid"},"docs":{"zh":"# BentoGrid\n\nAsymmetric bento layout. Lays BentoCell children, or an `items` array, onto a CSS grid whose base column count is `cols`; cells opt into col/row spans to break the rhythm into a mixed-size mosaic. Hairline cards, per-cell accent tone.\n\n","en":"# BentoGrid\n\nAsymmetric bento layout. Lays BentoCell children, or an `items` array, onto a CSS grid whose base column count is `cols`; cells opt into col/row spans to break the rhythm into a mixed-size mosaic. Hairline cards, per-cell accent tone.\n\n"},"api":{"name":"BentoGrid","description":"Asymmetric bento layout. Lays BentoCell children, or an `items` array, onto a CSS grid whose base column count is `cols`; cells opt into col/row spans to break the rhythm into a mixed-size mosaic. Hairline cards, per-cell accent tone.","category":"presentation","level":"L3","tags":["bento","grid","layout","marketing"],"props":{"cols":{"type":"string","enum":["2","3","4","6"],"default":"3","description":"Base column count of the grid (cells may span fewer/more)"},"gap":{"type":"string","enum":["none","sm","md","lg"],"default":"md"},"items":{"type":"array","items":{"type":"object","properties":{"title":{"type":"string"},"desc":{"type":"string"},"icon":{"type":"string","description":"lucide icon name"},"tone":{"type":"integer","description":"Accent-hue index 0–3 (amber/teal/rose/indigo)"},"span":{"type":"object","properties":{"col":{"type":"integer"},"row":{"type":"integer"}},"description":"Cell span; col 1–4, row 1–3"}}},"description":"Inline cells used when no BentoCell children are provided"}},"usageScenarios":["Feature mosaic where one tile is hero-sized (span col 2) and the rest are small","Capability bento mixing tall and wide tiles"],"constraints":["Provide either BentoCell children or items — children win when present","span.col is clamped to 1–4 and span.row to 1–3 via static class maps (no purge risk)"]},"distributions":[{"channel":"shadcn","name":"content","version":"0.16.0","availability":"source"},{"channel":"spec","name":"BentoGrid","version":"0.16.0","availability":"source"}],"examples":[{"id":"BentoGrid","title":"BentoGrid","mode":"spec","language":"json","code":"{\n \"version\": \"2.0\",\n \"pages\": [\n {\n \"id\": \"demo\",\n \"path\": \"/\",\n \"title\": \"BentoGrid\",\n \"blocks\": [\n {\n \"type\": \"BentoGrid\",\n \"props\": {\n \"cols\": \"3\",\n \"gap\": \"md\",\n \"items\": [\n {\n \"title\": \"Build something useful\",\n \"desc\": \"desc\",\n \"icon\": \"icon\",\n \"tone\": 2,\n \"span\": {\n \"col\": 2,\n \"row\": 2\n }\n }\n ]\n }\n }\n ]\n }\n ]\n}","dependencies":[]}]},"component:box":{"resourceId":"component:box","title":{"zh":"Box","en":"Box"},"docs":{"zh":"# Box\n\nFlex container for composing layout. Use as a row or column spacer between other blocks.\n\n","en":"# Box\n\nFlex container for composing layout. Use as a row or column spacer between other blocks.\n\n"},"api":{"name":"Box","description":"Flex container for composing layout. Use as a row or column spacer between other blocks.","category":"primitive","level":"L1","tags":["container","layout"],"props":{"className":{"type":"string","description":"Additional Tailwind utility classes"},"direction":{"type":"string","enum":["col","row"],"default":"col","description":"Flex direction"},"gap":{"type":"string","enum":["none","xs","sm","md","lg","xl"],"default":"md"},"padding":{"type":"string","enum":["none","xs","sm","md","lg","xl"]},"align":{"type":"string","enum":["start","center","end","stretch"]},"justify":{"type":"string","enum":["start","center","end","between","around"]},"wrap":{"type":"boolean","default":false},"full":{"type":"boolean","default":false}},"usageScenarios":["Horizontal row of action buttons","Vertical stack of form fields","Two-column grid using two Box[direction=row] with flex-1 children"],"constraints":["Do not use Box as a semantic section; prefer Card or PageLayout for major layout regions"]},"distributions":[{"channel":"shadcn","name":"layout","version":"0.16.0","availability":"source"},{"channel":"spec","name":"Box","version":"0.16.0","availability":"source"}],"examples":[{"id":"Box","title":"Box","mode":"spec","language":"json","code":"{\n \"version\": \"2.0\",\n \"pages\": [\n {\n \"id\": \"demo\",\n \"path\": \"/\",\n \"title\": \"Box\",\n \"blocks\": [\n {\n \"type\": \"Box\",\n \"props\": {\n \"className\": \"className\",\n \"direction\": \"col\",\n \"gap\": \"md\",\n \"padding\": \"none\",\n \"align\": \"start\",\n \"justify\": \"start\",\n \"wrap\": false,\n \"full\": false\n },\n \"children\": [\n {\n \"type\": \"Paragraph\",\n \"props\": {\n \"text\": \"Compose this with your own content.\"\n }\n }\n ]\n }\n ]\n }\n ]\n}","dependencies":[]}]},"component:breadcrumb":{"resourceId":"component:breadcrumb","title":{"zh":"Breadcrumb","en":"Breadcrumb"},"docs":{"zh":"# Breadcrumb\n\nHierarchical page path trail. Pass an items array of {label, href?}.\n\n","en":"# Breadcrumb\n\nHierarchical page path trail. Pass an items array of {label, href?}.\n\n"},"api":{"name":"Breadcrumb","description":"Hierarchical page path trail. Pass an items array of {label, href?}.","category":"composite","level":"L2","tags":["breadcrumb","nav"],"props":{"items":{"type":"array","items":{"type":"object","properties":{"label":{"type":"string"},"href":{"type":"string"}}},"description":"Path segments"}},"usageScenarios":["Page location context in an admin CRUD view","Multi-step wizard progress"],"constraints":[]},"distributions":[{"channel":"shadcn","name":"nav","version":"0.16.0","availability":"source"},{"channel":"spec","name":"Breadcrumb","version":"0.16.0","availability":"source"}],"examples":[{"id":"Breadcrumb","title":"Breadcrumb","mode":"spec","language":"json","code":"{\n \"version\": \"2.0\",\n \"pages\": [\n {\n \"id\": \"demo\",\n \"path\": \"/\",\n \"title\": \"Breadcrumb\",\n \"blocks\": [\n {\n \"type\": \"Breadcrumb\",\n \"props\": {\n \"items\": [\n {\n \"label\": \"UIBot\",\n \"href\": \"#\"\n }\n ]\n }\n }\n ]\n }\n ]\n}","dependencies":[]}]},"component:browser-frame":{"resourceId":"component:browser-frame","title":{"zh":"BrowserFrame","en":"BrowserFrame"},"docs":{"zh":"# BrowserFrame\n\nProduct-screenshot window shell: frames its `content` slot (or children) in a precise browser/app chrome — three traffic-light dots + a mono title/address bar — with a hairline border, long soft shadow, and an optional 3D tilt. Used to present a live-rendered UI as a product-shot visual (dogfood) instead of a static screenshot.\n\n","en":"# BrowserFrame\n\nProduct-screenshot window shell: frames its `content` slot (or children) in a precise browser/app chrome — three traffic-light dots + a mono title/address bar — with a hairline border, long soft shadow, and an optional 3D tilt. Used to present a live-rendered UI as a product-shot visual (dogfood) instead of a static screenshot.\n\n"},"api":{"name":"BrowserFrame","description":"Product-screenshot window shell: frames its `content` slot (or children) in a precise browser/app chrome — three traffic-light dots + a mono title/address bar — with a hairline border, long soft shadow, and an optional 3D tilt. Used to present a live-rendered UI as a product-shot visual (dogfood) instead of a static screenshot.","category":"presentation","level":"L2","tags":["frame","browser","window","screenshot","marketing"],"props":{"title":{"type":"string","description":"Address/title shown in the window chrome (defaults to 'app.uibot.studio')"},"variant":{"type":"string","enum":["flat","tilt"],"default":"flat","description":"'tilt' adds a subtle 3D perspective tilt for a product-shot feel"},"tone":{"type":"string","enum":["0","1","2","3"],"default":"0","description":"Accent-hue index for the chrome address bar wash (0 amber · 1 teal · 2 rose · 3 indigo)"}},"slots":{"content":{"description":"The UI rendered inside the frame; usually a real dashboard composed from data blocks"}},"usageScenarios":["Hero visual framing a live-rendered mini dashboard as the product shot","Showcase row of small frames each rendering a different UI from the same engine"],"constraints":["Frames the `content` slot, falling back to children; supply real spec blocks to render a live UI","Decorative chrome only — it does not add browser behaviour (no real address bar)"]},"distributions":[{"channel":"shadcn","name":"presentation","version":"0.16.0","availability":"source"},{"channel":"spec","name":"BrowserFrame","version":"0.16.0","availability":"source"}],"examples":[{"id":"BrowserFrame","title":"BrowserFrame","mode":"spec","language":"json","code":"{\n \"version\": \"2.0\",\n \"pages\": [\n {\n \"id\": \"demo\",\n \"path\": \"/\",\n \"title\": \"BrowserFrame\",\n \"blocks\": [\n {\n \"type\": \"BrowserFrame\",\n \"props\": {\n \"title\": \"Build something useful\",\n \"variant\": \"flat\",\n \"tone\": \"0\"\n },\n \"children\": [\n {\n \"type\": \"Paragraph\",\n \"props\": {\n \"text\": \"Compose this with your own content.\"\n }\n }\n ]\n }\n ]\n }\n ]\n}","dependencies":[]}]},"component:button":{"resourceId":"component:button","title":{"zh":"Button","en":"Button"},"docs":{"zh":"# Button\n\nStandalone action button. Six visual variants and five sizes. Does not submit forms — use Form.Submit for that.\n\n","en":"# Button\n\nStandalone action button. Six visual variants and five sizes. Does not submit forms — use Form.Submit for that.\n\n"},"api":{"name":"Button","description":"Standalone action button. Six visual variants and five sizes. Does not submit forms — use Form.Submit for that.","category":"primitive","level":"L1","tags":["button","action"],"props":{"label":{"type":"string"},"variant":{"type":"string","enum":["default","destructive","outline","secondary","ghost","link"],"default":"default"},"size":{"type":"string","enum":["xs","sm","default","lg","icon"],"default":"default"},"full":{"type":"boolean","default":false},"disabled":{"type":"boolean","default":false}},"events":{"onClick":{"description":"Runs with a plain click payload."}},"usageScenarios":["Primary CTA on a hero section","Row of outline action buttons in a Card actions slot","Ghost icon button in a toolbar"],"constraints":["Use Form.Submit, not Button[type=submit], inside a Form","Do not place more than 3 primary (default) buttons on the same view"]},"distributions":[{"channel":"shadcn","name":"feedback","version":"0.16.0","availability":"source"},{"channel":"spec","name":"Button","version":"0.16.0","availability":"source"}],"examples":[{"id":"Button","title":"Button","mode":"spec","language":"json","code":"{\n \"version\": \"2.0\",\n \"pages\": [\n {\n \"id\": \"demo\",\n \"path\": \"/\",\n \"title\": \"Button\",\n \"blocks\": [\n {\n \"type\": \"Button\",\n \"props\": {\n \"label\": \"UIBot\",\n \"variant\": \"default\",\n \"size\": \"default\",\n \"full\": false,\n \"disabled\": false\n }\n }\n ]\n }\n ]\n}","dependencies":[]}]},"component:callout":{"resourceId":"component:callout","title":{"zh":"Callout","en":"Callout"},"docs":{"zh":"# Callout\n\nEmphasis callout panel: a tinted box (semantic or brand colour) with an icon, optional title and body. color-mix against the chosen token keeps the wash subtle and legible in light and dark.\n\n","en":"# Callout\n\nEmphasis callout panel: a tinted box (semantic or brand colour) with an icon, optional title and body. color-mix against the chosen token keeps the wash subtle and legible in light and dark.\n\n"},"api":{"name":"Callout","description":"Emphasis callout panel: a tinted box (semantic or brand colour) with an icon, optional title and body. color-mix against the chosen token keeps the wash subtle and legible in light and dark.","category":"presentation","level":"L1","tags":["callout","note","alert","marketing"],"props":{"variant":{"type":"string","enum":["info","success","warn","accent"],"default":"info","description":"Colour/role: info (indigo) · success (green) · warn (amber) · accent (brand amber)"},"title":{"type":"string","description":"Emphasised lead line, coloured to the variant"},"body":{"type":"string","description":"Supporting paragraph"},"icon":{"type":"string","description":"Optional lucide icon name; defaults to a sensible glyph per variant"}},"usageScenarios":["Inline 'Note' / 'Tip' block inside docs or a landing section","Success confirmation or warning banner above content"],"constraints":["variant falls back to 'info' when omitted or unrecognised","icon defaults per variant (info→info, success→check, warn→alert, accent→sparkles)"]},"distributions":[{"channel":"shadcn","name":"content","version":"0.16.0","availability":"source"},{"channel":"spec","name":"Callout","version":"0.16.0","availability":"source"}],"examples":[{"id":"Callout","title":"Callout","mode":"spec","language":"json","code":"{\n \"version\": \"2.0\",\n \"pages\": [\n {\n \"id\": \"demo\",\n \"path\": \"/\",\n \"title\": \"Callout\",\n \"blocks\": [\n {\n \"type\": \"Callout\",\n \"props\": {\n \"variant\": \"info\",\n \"title\": \"Build something useful\",\n \"body\": \"body\",\n \"icon\": \"icon\"\n }\n }\n ]\n }\n ]\n}","dependencies":[]}]},"component:card":{"resourceId":"component:card","title":{"zh":"Card","en":"Card"},"docs":{"zh":"# Card\n\nSurface container with rounded border and optional header (title + description + actions slot).\n\n","en":"# Card\n\nSurface container with rounded border and optional header (title + description + actions slot).\n\n"},"api":{"name":"Card","description":"Surface container with rounded border and optional header (title + description + actions slot).","category":"composite","level":"L2","tags":["card","surface"],"props":{"className":{"type":"string","description":"Additional Tailwind utility classes"},"title":{"type":"string","description":"Card heading"},"description":{"type":"string","description":"Supporting subtitle text"}},"slots":{"actions":{"description":"Action buttons rendered in the top-right of the card header"},"default":{"description":"Card body content"}},"usageScenarios":["Stats overview section","User profile panel","Settings form container"],"constraints":["Avoid nesting Card directly inside another Card"]},"distributions":[{"channel":"shadcn","name":"layout","version":"0.16.0","availability":"source"},{"channel":"spec","name":"Card","version":"0.16.0","availability":"source"}],"examples":[{"id":"Card","title":"Card","mode":"spec","language":"json","code":"{\n \"version\": \"2.0\",\n \"pages\": [\n {\n \"id\": \"demo\",\n \"path\": \"/\",\n \"title\": \"Card\",\n \"blocks\": [\n {\n \"type\": \"Card\",\n \"props\": {\n \"className\": \"className\",\n \"title\": \"Build something useful\",\n \"description\": \"Explore the source and make it yours.\"\n },\n \"children\": [\n {\n \"type\": \"Paragraph\",\n \"props\": {\n \"text\": \"Compose this with your own content.\"\n }\n }\n ]\n }\n ]\n }\n ]\n}","dependencies":[]}]},"component:chat-panel":{"resourceId":"component:chat-panel","title":{"zh":"ChatPanel","en":"ChatPanel"},"docs":{"zh":"# ChatPanel\n\nConversation selector and controlled message composition\n\n","en":"# ChatPanel\n\nConversation selector and controlled message composition\n\n"},"api":{"name":"ChatPanel","tags":["interactive"],"description":"Conversation selector and controlled message composition","category":"composite","level":"L2","props":{"draft":{"type":"string"},"currentUserId":{"type":"string"},"conversations":{"type":"array"},"messages":{"type":"array"},"selectedId":{"type":"string"},"pending":{"type":"boolean"},"canSend":{"type":"boolean"},"error":{"type":"string"}},"events":{"onDraftChange":{"description":"Draft text in event.value; clear only after confirmed persistence"},"onSelect":{"description":"Serializable values in event.values"},"onSend":{"description":"Serializable values in event.values"}}},"distributions":[{"channel":"shadcn","name":"workspace","version":"0.16.0","availability":"source"},{"channel":"spec","name":"ChatPanel","version":"0.16.0","availability":"source"}],"examples":[{"id":"ChatPanel","title":"ChatPanel","mode":"spec","language":"json","code":"{\n \"version\": \"2.0\",\n \"pages\": [\n {\n \"id\": \"demo\",\n \"path\": \"/\",\n \"title\": \"ChatPanel\",\n \"blocks\": [\n {\n \"type\": \"ChatPanel\",\n \"props\": {\n \"draft\": \"draft\",\n \"currentUserId\": \"currentUserId\",\n \"conversations\": [],\n \"messages\": [],\n \"canSend\": false\n }\n }\n ]\n }\n ]\n}","dependencies":[]}]},"component:code-showcase":{"resourceId":"component:code-showcase","title":{"zh":"CodeShowcase","en":"CodeShowcase"},"docs":{"zh":"# CodeShowcase\n\nMono code panel with window chrome (three dots) and line numbers, used to showcase a UIBot YAML/JSON spec. Pure CSS, no syntax-highlighter dependency.\n\n","en":"# CodeShowcase\n\nMono code panel with window chrome (three dots) and line numbers, used to showcase a UIBot YAML/JSON spec. Pure CSS, no syntax-highlighter dependency.\n\n"},"api":{"name":"CodeShowcase","description":"Mono code panel with window chrome (three dots) and line numbers, used to showcase a UIBot YAML/JSON spec. Pure CSS, no syntax-highlighter dependency.","category":"presentation","level":"L2","tags":["code","spec","showcase","marketing"],"props":{"title":{"type":"string","description":"Filename / label shown in the window chrome"},"code":{"type":"string","description":"Raw code string; newline-separated, rendered with line numbers"},"caption":{"type":"string","description":"Caption under the panel"}},"usageScenarios":["Show an example UIBot YAML spec on the landing page","Before/after spec snippet in a docs section"],"constraints":["code is plain text rendered verbatim with line numbers; no highlighting/escaping beyond React's default"]},"distributions":[{"channel":"shadcn","name":"presentation","version":"0.16.0","availability":"source"},{"channel":"spec","name":"CodeShowcase","version":"0.16.0","availability":"source"}],"examples":[{"id":"CodeShowcase","title":"CodeShowcase","mode":"spec","language":"json","code":"{\n \"version\": \"2.0\",\n \"pages\": [\n {\n \"id\": \"demo\",\n \"path\": \"/\",\n \"title\": \"CodeShowcase\",\n \"blocks\": [\n {\n \"type\": \"CodeShowcase\",\n \"props\": {\n \"title\": \"Build something useful\",\n \"code\": \"code\",\n \"caption\": \"caption\"\n }\n }\n ]\n }\n ]\n}","dependencies":[]}]},"component:comparison-table":{"resourceId":"component:comparison-table","title":{"zh":"ComparisonTable","en":"ComparisonTable"},"docs":{"zh":"# ComparisonTable\n\nFeature comparison table across products/plans. The header lists columns (a `highlighted` column gets an amber-washed spine); each row pairs a feature label with one value per column — booleans render as amber check / muted cross glyphs, strings render verbatim. Horizontally scrollable on small screens.\n\n","en":"# ComparisonTable\n\nFeature comparison table across products/plans. The header lists columns (a `highlighted` column gets an amber-washed spine); each row pairs a feature label with one value per column — booleans render as amber check / muted cross glyphs, strings render verbatim. Horizontally scrollable on small screens.\n\n"},"api":{"name":"ComparisonTable","description":"Feature comparison table across products/plans. The header lists columns (a `highlighted` column gets an amber-washed spine); each row pairs a feature label with one value per column — booleans render as amber check / muted cross glyphs, strings render verbatim. Horizontally scrollable on small screens.","category":"presentation","level":"L3","tags":["comparison","table","pricing","marketing"],"props":{"featureLabel":{"type":"string","description":"Header label for the feature column (often blank)"},"columns":{"type":"array","items":{"type":"object","properties":{"name":{"type":"string"},"highlighted":{"type":"boolean"}}},"description":"Array of strings or [{name, highlighted?}] — column headers"},"rows":{"type":"array","items":{"type":"object","properties":{"feature":{"type":"string"},"values":{"type":"array","items":{},"description":"One value per column (boolean → ✓/✗, string → verbatim)"}}},"description":"[{feature, values[]}] — values align positionally with columns"}},"usageScenarios":["Plan feature comparison (Free / Pro / Enterprise) with a highlighted column","Product-vs-competitor capability matrix"],"constraints":["values align by index with columns; missing/falsey values render as a muted cross","Booleans (or 'yes'/'no'/'true'/'false') become glyphs; other strings render verbatim"]},"distributions":[{"channel":"shadcn","name":"sections","version":"0.16.0","availability":"source"},{"channel":"spec","name":"ComparisonTable","version":"0.16.0","availability":"source"}],"examples":[{"id":"ComparisonTable","title":"ComparisonTable","mode":"spec","language":"json","code":"{\n \"version\": \"2.0\",\n \"pages\": [\n {\n \"id\": \"demo\",\n \"path\": \"/\",\n \"title\": \"ComparisonTable\",\n \"blocks\": [\n {\n \"type\": \"ComparisonTable\",\n \"props\": {\n \"featureLabel\": \"featureLabel\",\n \"columns\": [\n {\n \"name\": \"resource\",\n \"highlighted\": false\n }\n ],\n \"rows\": [\n {\n \"feature\": \"feature\",\n \"values\": [\n \"128\"\n ]\n }\n ]\n }\n }\n ]\n }\n ]\n}","dependencies":[]}]},"component:cta-band":{"resourceId":"component:cta-band","title":{"zh":"CtaBand","en":"CtaBand"},"docs":{"zh":"# CtaBand\n\nInverted ink-black call-to-action band with grain overlay and a single amber CTA. Closes a landing page with high contrast.\n\n","en":"# CtaBand\n\nInverted ink-black call-to-action band with grain overlay and a single amber CTA. Closes a landing page with high contrast.\n\n"},"api":{"name":"CtaBand","description":"Inverted ink-black call-to-action band with grain overlay and a single amber CTA. Closes a landing page with high contrast.","category":"presentation","level":"L2","tags":["cta","band","marketing","conversion"],"props":{"title":{"type":"string","description":"Serif headline"},"subtitle":{"type":"string","description":"Supporting line"},"cta":{"type":"object","properties":{"label":{"type":"string"},"href":{"type":"string"}},"description":"{label, href} — solid amber button"}},"usageScenarios":["Final 'Start building' band at the bottom of the landing page","Newsletter / docs CTA between sections"],"constraints":["Single CTA by design; cta.href defaults to '#' when omitted"]},"distributions":[{"channel":"shadcn","name":"presentation","version":"0.16.0","availability":"source"},{"channel":"spec","name":"CtaBand","version":"0.16.0","availability":"source"}],"examples":[{"id":"CtaBand","title":"CtaBand","mode":"spec","language":"json","code":"{\n \"version\": \"2.0\",\n \"pages\": [\n {\n \"id\": \"demo\",\n \"path\": \"/\",\n \"title\": \"CtaBand\",\n \"blocks\": [\n {\n \"type\": \"CtaBand\",\n \"props\": {\n \"title\": \"Build something useful\",\n \"subtitle\": \"subtitle\",\n \"cta\": {\n \"label\": \"UIBot\",\n \"href\": \"#\"\n }\n }\n }\n ]\n }\n ]\n}","dependencies":[]}]},"component:data-table":{"resourceId":"component:data-table","title":{"zh":"DataTable","en":"DataTable"},"docs":{"zh":"# DataTable\n\nConfigurable record table with search, facets, sorting, stable selection and pagination. Server mode emits query intent without filtering current-page rows.\n\n","en":"# DataTable\n\nConfigurable record table with search, facets, sorting, stable selection and pagination. Server mode emits query intent without filtering current-page rows.\n\n"},"api":{"name":"DataTable","description":"Configurable record table with search, facets, sorting, stable selection and pagination. Server mode emits query intent without filtering current-page rows.","category":"composite","level":"L2","tags":["table","records","admin"],"props":{"rows":{"type":"array"},"columns":{"type":"array"},"filters":{"type":"array"},"actions":{"type":"array"},"bulkActions":{"type":"array"},"rowKey":{"type":"string","default":"id"},"searchKeys":{"type":"array"},"selectedIds":{"type":"array"},"view":{"description":"Controlled TableView object or JSON-encoded URL view"},"pageSize":{"type":"number","default":10},"server":{"type":"boolean"},"total":{"type":"number"},"hasNextPage":{"type":"boolean"},"loading":{"type":"boolean"},"error":{"type":"string"},"minWidth":{"type":"number"},"searchPlaceholder":{"type":"string"},"label":{"type":"string"},"selectable":{"type":"boolean"},"emptyText":{"type":"string"}},"events":{"onViewChange":{"description":"Query intent in event.values: search, filters JSON, sort, descending, page, pageSize"},"onSelectionChange":{"description":"Stable ids in event.values.ids"},"onRowAction":{"description":"event.values.id and action"},"onBulkAction":{"description":"event.values.ids and action"}}},"distributions":[{"channel":"shadcn","name":"data-table","version":"0.16.0","availability":"source"},{"channel":"spec","name":"DataTable","version":"0.16.0","availability":"source"}],"examples":[{"id":"DataTable","title":"DataTable","mode":"spec","language":"json","code":"{\n \"version\": \"2.0\",\n \"pages\": [\n {\n \"id\": \"demo\",\n \"path\": \"/\",\n \"title\": \"DataTable\",\n \"blocks\": [\n {\n \"type\": \"DataTable\",\n \"props\": {\n \"rows\": [],\n \"columns\": [],\n \"filters\": [],\n \"actions\": [],\n \"bulkActions\": [],\n \"rowKey\": \"id\",\n \"searchKeys\": [],\n \"pageSize\": 10,\n \"server\": false,\n \"total\": 2,\n \"hasNextPage\": false,\n \"minWidth\": 2,\n \"searchPlaceholder\": \"searchPlaceholder\",\n \"label\": \"UIBot\",\n \"selectable\": false,\n \"emptyText\": \"emptyText\"\n }\n }\n ]\n }\n ]\n}","dependencies":[]}]},"component:detail-field":{"resourceId":"component:detail-field","title":{"zh":"DetailField","en":"DetailField"},"docs":{"zh":"# DetailField\n\nLabel + value display row, for use inside a detail pane.\n\n","en":"# DetailField\n\nLabel + value display row, for use inside a detail pane.\n\n"},"api":{"name":"DetailField","description":"Label + value display row, for use inside a detail pane.","category":"primitive","level":"L1","tags":["detail","field","display"],"props":{"label":{"type":"string"},"value":{"type":"string","description":"Any scalar; rendered as '—' when empty"},"inline":{"type":"boolean","default":false,"description":"Render label and value on one line"}},"usageScenarios":["Field row inside a SplitMasterDetail detail pane","Read-only record summary"],"constraints":["Use for scalar values; for structured data prefer KeyValueGrid"]},"distributions":[{"channel":"shadcn","name":"interactive","version":"0.16.0","availability":"source"},{"channel":"spec","name":"DetailField","version":"0.16.0","availability":"source"}],"examples":[{"id":"DetailField","title":"DetailField","mode":"spec","language":"json","code":"{\n \"version\": \"2.0\",\n \"pages\": [\n {\n \"id\": \"demo\",\n \"path\": \"/\",\n \"title\": \"DetailField\",\n \"blocks\": [\n {\n \"type\": \"DetailField\",\n \"props\": {\n \"label\": \"UIBot\",\n \"inline\": false\n }\n }\n ]\n }\n ]\n}","dependencies":[]}]},"component:diagnostics-list":{"resourceId":"component:diagnostics-list","title":{"zh":"DiagnosticsList","en":"DiagnosticsList"},"docs":{"zh":"# DiagnosticsList\n\nLevelled diagnostics list with a coloured left bar and glyph per severity (info / warn / error).\n\n","en":"# DiagnosticsList\n\nLevelled diagnostics list with a coloured left bar and glyph per severity (info / warn / error).\n\n"},"api":{"name":"DiagnosticsList","description":"Levelled diagnostics list with a coloured left bar and glyph per severity (info / warn / error).","category":"composite","level":"L2","tags":["diagnostics","list","status","overview"],"props":{"items":{"type":"array","items":{"type":"object","properties":{"level":{"type":"string","enum":["info","warn","error"]},"title":{"type":"string"},"detail":{"type":"string"}}},"description":"[{level, title, detail?}]"}},"usageScenarios":["Overview page diagnostics slot","Spec validation results list"],"constraints":["level defaults to 'info' when omitted or unrecognised"]},"distributions":[{"channel":"shadcn","name":"data-studio","version":"0.16.0","availability":"source"},{"channel":"spec","name":"DiagnosticsList","version":"0.16.0","availability":"source"}],"examples":[{"id":"DiagnosticsList","title":"DiagnosticsList","mode":"spec","language":"json","code":"{\n \"version\": \"2.0\",\n \"pages\": [\n {\n \"id\": \"demo\",\n \"path\": \"/\",\n \"title\": \"DiagnosticsList\",\n \"blocks\": [\n {\n \"type\": \"DiagnosticsList\",\n \"props\": {\n \"items\": [\n {\n \"level\": \"info\",\n \"title\": \"Build something useful\",\n \"detail\": \"detail\"\n }\n ]\n }\n }\n ]\n }\n ]\n}","dependencies":[]}]},"component:dialog":{"resourceId":"component:dialog","title":{"zh":"Dialog","en":"Dialog"},"docs":{"zh":"# Dialog\n\nConfirmation with explicit action intents. Boolean open uses a native modal; omitted open keeps an inline composition.\n\n","en":"# Dialog\n\nConfirmation with explicit action intents. Boolean open uses a native modal; omitted open keeps an inline composition.\n\n"},"api":{"name":"Dialog","description":"Confirmation with explicit action intents. Boolean open uses a native modal; omitted open keeps an inline composition.","category":"composite","level":"L2","tags":["dialog","modal","confirm"],"props":{"open":{"type":"boolean","description":"Omit for inline."},"pending":{"type":"boolean","description":"Lock actions/dismissal."},"title":{"type":"string"},"description":{"type":"string"},"cancelLabel":{"type":"string"},"confirmLabel":{"type":"string"},"confirmVariant":{"type":"string","enum":["default","destructive","outline"],"default":"default"}},"events":{"onConfirm":{"description":"value=values.action=confirm."},"onCancel":{"description":"value=values.action=cancel."},"onClose":{"description":"Dismiss: value=values.open=false."}},"usageScenarios":["Delete confirmation prompt","Unsaved changes warning before navigation"],"constraints":["Host owns open/pending and persistence; no automatic close/write/retry."]},"distributions":[{"channel":"shadcn","name":"feedback","version":"0.16.0","availability":"source"},{"channel":"spec","name":"Dialog","version":"0.16.0","availability":"source"}],"examples":[{"id":"Dialog","title":"Dialog","mode":"spec","language":"json","code":"{\n \"version\": \"2.0\",\n \"pages\": [\n {\n \"id\": \"confirmation\",\n \"path\": \"/\",\n \"title\": \"Confirmation dialog\",\n \"state\": {\n \"open\": false,\n \"pending\": false,\n \"status\": \"This example changes local state only. No external request is made.\"\n },\n \"blocks\": [\n {\n \"type\": \"Box\",\n \"props\": { \"gap\": \"md\", \"padding\": \"lg\" },\n \"children\": [\n {\n \"type\": \"Heading\",\n \"props\": { \"text\": \"Confirm changes\", \"level\": 2 }\n },\n {\n \"type\": \"Paragraph\",\n \"props\": { \"text\": { \"_state\": \"status\" } }\n },\n {\n \"type\": \"Button\",\n \"props\": { \"label\": \"Open confirmation\" },\n \"events\": {\n \"onClick\": [\n { \"action\": \"SetState\", \"params\": { \"path\": \"pending\", \"value\": false } },\n { \"action\": \"SetState\", \"params\": { \"path\": \"open\", \"value\": true } }\n ]\n }\n },\n {\n \"type\": \"Dialog\",\n \"props\": {\n \"title\": \"Apply these local changes?\",\n \"description\": \"Confirmation is an intent. The host decides when to close after its result.\",\n \"open\": { \"_state\": \"open\" },\n \"pending\": { \"_state\": \"pending\" },\n \"cancelLabel\": \"Keep editing\",\n \"confirmLabel\": \"Confirm changes\"\n },\n \"children\": [\n {\n \"type\": \"Field\",\n \"props\": {\n \"kind\": \"switch\",\n \"name\": \"pending\",\n \"label\": \"Simulate pending state\",\n \"description\": \"Turn off to enable confirmation and dismissal again.\",\n \"value\": { \"_bindState\": \"pending\" }\n }\n }\n ],\n \"events\": {\n \"onConfirm\": [\n {\n \"action\": \"SetState\",\n \"params\": {\n \"path\": \"status\",\n \"value\": \"Confirmed locally. No external request was made.\"\n }\n },\n { \"action\": \"SetState\", \"params\": { \"path\": \"open\", \"value\": false } }\n ],\n \"onCancel\": [\n {\n \"action\": \"SetState\",\n \"params\": { \"path\": \"status\", \"value\": \"Changes kept for editing.\" }\n },\n { \"action\": \"SetState\", \"params\": { \"path\": \"open\", \"value\": false } }\n ],\n \"onClose\": [\n {\n \"action\": \"SetState\",\n \"params\": { \"path\": \"status\", \"value\": \"Confirmation dismissed.\" }\n },\n { \"action\": \"SetState\", \"params\": { \"path\": \"open\", \"value\": false } }\n ]\n }\n }\n ]\n }\n ]\n }\n ]\n}\n","dependencies":[]}]},"component:divider":{"resourceId":"component:divider","title":{"zh":"Divider","en":"Divider"},"docs":{"zh":"# Divider\n\nThin horizontal (default) or vertical separator line.\n\n","en":"# Divider\n\nThin horizontal (default) or vertical separator line.\n\n"},"api":{"name":"Divider","description":"Thin horizontal (default) or vertical separator line.","category":"primitive","level":"L1","tags":["separator"],"props":{"orientation":{"type":"string","enum":["horizontal","vertical"],"default":"horizontal"}},"usageScenarios":["Visual break between form sections","Vertical separator between two columns"],"constraints":[]},"distributions":[{"channel":"shadcn","name":"layout","version":"0.16.0","availability":"source"},{"channel":"spec","name":"Divider","version":"0.16.0","availability":"source"}],"examples":[{"id":"Divider","title":"Divider","mode":"spec","language":"json","code":"{\n \"version\": \"2.0\",\n \"pages\": [\n {\n \"id\": \"demo\",\n \"path\": \"/\",\n \"title\": \"Divider\",\n \"blocks\": [\n {\n \"type\": \"Divider\",\n \"props\": {\n \"orientation\": \"horizontal\"\n }\n }\n ]\n }\n ]\n}","dependencies":[]}]},"component:drawer":{"resourceId":"component:drawer","title":{"zh":"Drawer","en":"Drawer"},"docs":{"zh":"# Drawer\n\nOff-canvas side panel for secondary context (filters, details, comments). Rendered inline in preview.\n\n","en":"# Drawer\n\nOff-canvas side panel for secondary context (filters, details, comments). Rendered inline in preview.\n\n"},"api":{"name":"Drawer","description":"Off-canvas side panel for secondary context (filters, details, comments). Rendered inline in preview.","category":"composite","level":"L2","tags":["drawer","overlay"],"events":{"onClose":{"description":"Close requested; set controlled open false"}},"props":{"description":{"type":"string"},"open":{"type":"boolean"},"pending":{"type":"boolean"},"title":{"type":"string"}},"usageScenarios":["Filter panel for a table","Item detail side sheet"],"constraints":["Drawer is always visible in static preview — use conditionally in production via state"]},"distributions":[{"channel":"shadcn","name":"layout","version":"0.16.0","availability":"source"},{"channel":"spec","name":"Drawer","version":"0.16.0","availability":"source"}],"examples":[{"id":"Drawer","title":"Drawer","mode":"spec","language":"json","code":"{\n \"version\": \"2.0\",\n \"pages\": [\n {\n \"id\": \"demo\",\n \"path\": \"/\",\n \"title\": \"Drawer\",\n \"blocks\": [\n {\n \"type\": \"Drawer\",\n \"props\": {\n \"description\": \"Explore the source and make it yours.\",\n \"open\": false,\n \"title\": \"Build something useful\"\n }\n }\n ]\n }\n ]\n}","dependencies":[]}]},"component:empty-state":{"resourceId":"component:empty-state","title":{"zh":"EmptyState","en":"EmptyState"},"docs":{"zh":"# EmptyState\n\nEmpty or recoverable status panel (role=status) with title, message and an optional action button.\n\n","en":"# EmptyState\n\nEmpty or recoverable status panel (role=status) with title, message and an optional action button.\n\n"},"api":{"name":"EmptyState","description":"Empty or recoverable status panel (role=status) with title, message and an optional action button.","category":"primitive","level":"L1","tags":["empty","status","placeholder"],"props":{"title":{"type":"string"},"message":{"type":"string"},"description":{"type":"string","description":"Alias of message"},"actionLabel":{"type":"string","description":"Renders an action button when set"}},"events":{"onClick":{"description":"Action button click; onAction is accepted as an alias."}},"usageScenarios":["No results after filtering, with a Clear filters action"],"constraints":["Use Alert for errors that need immediate attention"]},"distributions":[{"channel":"shadcn","name":"primitives","version":"0.16.0","availability":"source"},{"channel":"spec","name":"EmptyState","version":"0.16.0","availability":"source"}],"examples":[{"id":"EmptyState","title":"EmptyState","mode":"spec","language":"json","code":"{\n \"version\": \"2.0\",\n \"pages\": [\n {\n \"id\": \"demo\",\n \"path\": \"/\",\n \"title\": \"EmptyState\",\n \"blocks\": [\n {\n \"type\": \"EmptyState\",\n \"props\": {\n \"title\": \"Build something useful\",\n \"message\": \"Your changes are saved.\",\n \"description\": \"Explore the source and make it yours.\",\n \"actionLabel\": \"actionLabel\"\n }\n }\n ]\n }\n ]\n}","dependencies":[]}]},"component:fact-list":{"resourceId":"component:fact-list","title":{"zh":"FactList","en":"FactList"},"docs":{"zh":"# FactList\n\nKey/value fact list (dl). Pass `items` or FactRow children. Not a KPI card; use StatCard for metrics.\n\n","en":"# FactList\n\nKey/value fact list (dl). Pass `items` or FactRow children. Not a KPI card; use StatCard for metrics.\n\n"},"api":{"name":"FactList","description":"Key/value fact list (dl). Pass `items` or FactRow children. Not a KPI card; use StatCard for metrics.","category":"composite","level":"L1","tags":["facts","key-value","details"],"props":{"items":{"type":"array","items":{"type":"object","properties":{"label":{"type":"string"},"value":{"type":"string"},"code":{"type":"boolean"},"href":{"type":"string"},"hrefSection":{"type":"string"}}}}},"usageScenarios":["Provider detail: base URL, model, revision"],"constraints":["Items render as plain rows or links; use FactRow children for onClick"]},"distributions":[{"channel":"shadcn","name":"primitives","version":"0.16.0","availability":"source"},{"channel":"spec","name":"FactList","version":"0.16.0","availability":"source"}],"examples":[{"id":"FactList","title":"FactList","mode":"spec","language":"json","code":"{\n \"version\": \"2.0\",\n \"pages\": [\n {\n \"id\": \"demo\",\n \"path\": \"/\",\n \"title\": \"FactList\",\n \"blocks\": [\n {\n \"type\": \"FactList\",\n \"props\": {\n \"items\": [\n {\n \"label\": \"UIBot\",\n \"value\": \"128\",\n \"code\": false,\n \"href\": \"#\",\n \"hrefSection\": \"#\"\n }\n ]\n }\n }\n ]\n }\n ]\n}","dependencies":[]}]},"component:fact-row":{"resourceId":"component:fact-row","title":{"zh":"FactRow","en":"FactRow"},"docs":{"zh":"# FactRow\n\nOne fact row inside FactList. `code` renders the value monospaced; `href` / `hrefSection` (-> #section) render a link; onClick makes the value a button.\n\n","en":"# FactRow\n\nOne fact row inside FactList. `code` renders the value monospaced; `href` / `hrefSection` (-> #section) render a link; onClick makes the value a button.\n\n"},"api":{"name":"FactRow","description":"One fact row inside FactList. `code` renders the value monospaced; `href` / `hrefSection` (-> #section) render a link; onClick makes the value a button.","category":"primitive","level":"L1","tags":["facts","key-value"],"props":{"label":{"type":"string"},"value":{"type":"string"},"code":{"type":"boolean","default":false},"href":{"type":"string"},"hrefSection":{"type":"string"}},"events":{"onClick":{"description":"Runs with a plain click payload."}},"constraints":["Place inside FactList"]},"distributions":[{"channel":"shadcn","name":"primitives","version":"0.16.0","availability":"source"},{"channel":"spec","name":"FactRow","version":"0.16.0","availability":"source"}],"examples":[{"id":"FactRow","title":"FactRow","mode":"spec","language":"json","code":"{\n \"version\": \"2.0\",\n \"pages\": [\n {\n \"id\": \"demo\",\n \"path\": \"/\",\n \"title\": \"FactRow\",\n \"blocks\": [\n {\n \"type\": \"FactRow\",\n \"props\": {\n \"label\": \"UIBot\",\n \"code\": false,\n \"href\": \"#\",\n \"hrefSection\": \"#\"\n }\n }\n ]\n }\n ]\n}","dependencies":[]}]},"component:faq":{"resourceId":"component:faq","title":{"zh":"Faq","en":"Faq"},"docs":{"zh":"# Faq\n\nEditorial accordion FAQ built on native <details>/<summary> — fully functional with zero JS / state wiring. Optional eyebrow/title/lead header; rows carry a mono index numeral, a hairline plus-mark that rotates 45° into a close-mark on open, and a grid-rows expand transition.\n\n","en":"# Faq\n\nEditorial accordion FAQ built on native <details>/<summary> — fully functional with zero JS / state wiring. Optional eyebrow/title/lead header; rows carry a mono index numeral, a hairline plus-mark that rotates 45° into a close-mark on open, and a grid-rows expand transition.\n\n"},"api":{"name":"Faq","description":"Editorial accordion FAQ built on native <details>/<summary> — fully functional with zero JS / state wiring. Optional eyebrow/title/lead header; rows carry a mono index numeral, a hairline plus-mark that rotates 45° into a close-mark on open, and a grid-rows expand transition.","category":"presentation","level":"L2","tags":["faq","accordion","marketing","content"],"props":{"eyebrow":{"type":"string","description":"Optional mono overline above the title (accent colored)"},"title":{"type":"string","description":"Optional serif heading above the list"},"lead":{"type":"string","description":"Optional muted intro line under the title"},"defaultOpenFirst":{"type":"boolean","description":"When true, the first row renders open on mount"},"items":{"type":"array","items":{"type":"object","properties":{"q":{"type":"string"},"a":{"type":"string"}}},"description":"[{q, a}] question/answer pairs; rows with an empty q are dropped"}},"usageScenarios":["Pricing / product FAQ section on a landing page","Docs 'common questions' block"],"constraints":["Uses native <details> so multiple rows can be open at once; no single-open behaviour","Answers render as plain text; pass pre-formatted strings"]},"distributions":[{"channel":"shadcn","name":"content","version":"0.16.0","availability":"source"},{"channel":"spec","name":"Faq","version":"0.16.0","availability":"source"}],"examples":[{"id":"Faq","title":"Faq","mode":"spec","language":"json","code":"{\n \"version\": \"2.0\",\n \"pages\": [\n {\n \"id\": \"demo\",\n \"path\": \"/\",\n \"title\": \"Faq\",\n \"blocks\": [\n {\n \"type\": \"Faq\",\n \"props\": {\n \"eyebrow\": \"eyebrow\",\n \"title\": \"Build something useful\",\n \"lead\": \"lead\",\n \"defaultOpenFirst\": false,\n \"items\": [\n {\n \"q\": \"Can I customize this?\",\n \"a\": \"Yes. The source is yours to edit.\"\n }\n ]\n }\n }\n ]\n }\n ]\n}","dependencies":[]}]},"component:feature-card":{"resourceId":"component:feature-card","title":{"zh":"FeatureCard","en":"FeatureCard"},"docs":{"zh":"# FeatureCard\n\nSingle hairline feature card: inline-SVG icon, serif title, body copy, and optional children. Designed to sit inside a FeatureGrid but works standalone.\n\n","en":"# FeatureCard\n\nSingle hairline feature card: inline-SVG icon, serif title, body copy, and optional children. Designed to sit inside a FeatureGrid but works standalone.\n\n"},"api":{"name":"FeatureCard","description":"Single hairline feature card: inline-SVG icon, serif title, body copy, and optional children. Designed to sit inside a FeatureGrid but works standalone.","category":"presentation","level":"L1","tags":["feature","card","marketing"],"props":{"icon":{"type":"string","description":"lucide icon name (see FeatureGrid)"},"title":{"type":"string"},"desc":{"type":"string"}},"usageScenarios":["A single emphasised feature beside a screenshot","Composed children inside a FeatureGrid for custom card bodies"],"constraints":["icon resolves against the built-in inline-SVG set; unknown → dot fallback"]},"distributions":[{"channel":"shadcn","name":"presentation","version":"0.16.0","availability":"source"},{"channel":"spec","name":"FeatureCard","version":"0.16.0","availability":"source"}],"examples":[{"id":"FeatureCard","title":"FeatureCard","mode":"spec","language":"json","code":"{\n \"version\": \"2.0\",\n \"pages\": [\n {\n \"id\": \"demo\",\n \"path\": \"/\",\n \"title\": \"FeatureCard\",\n \"blocks\": [\n {\n \"type\": \"FeatureCard\",\n \"props\": {\n \"icon\": \"icon\",\n \"title\": \"Build something useful\",\n \"desc\": \"desc\"\n }\n }\n ]\n }\n ]\n}","dependencies":[]}]},"component:feature-grid":{"resourceId":"component:feature-grid","title":{"zh":"FeatureGrid","en":"FeatureGrid"},"docs":{"zh":"# FeatureGrid\n\nResponsive grid of hairline feature cards with hover lift. Renders an `items` array (icon name + title + desc) into FeatureCards, or lays out FeatureCard children directly.\n\n","en":"# FeatureGrid\n\nResponsive grid of hairline feature cards with hover lift. Renders an `items` array (icon name + title + desc) into FeatureCards, or lays out FeatureCard children directly.\n\n"},"api":{"name":"FeatureGrid","description":"Responsive grid of hairline feature cards with hover lift. Renders an `items` array (icon name + title + desc) into FeatureCards, or lays out FeatureCard children directly.","category":"presentation","level":"L2","tags":["features","grid","cards","marketing"],"props":{"cols":{"type":"string","enum":["2","3","4"],"default":"3"},"items":{"type":"array","items":{"type":"object","properties":{"icon":{"type":"string","description":"lucide icon name (sparkles, zap, layers, code, cpu, workflow, gauge, shield, wand, boxes)"},"title":{"type":"string"},"desc":{"type":"string"}}},"description":"[{icon, title, desc}] feature entries"}},"usageScenarios":["Three-up feature highlights under a SectionHeader","Capability grid (declarative spec, gap recovery, plugin catalog)"],"constraints":["icon is a lucide name mapped to a built-in inline SVG; unknown names fall back to a dot","Provide either items or FeatureCard children — children win when present"]},"distributions":[{"channel":"shadcn","name":"presentation","version":"0.16.0","availability":"source"},{"channel":"spec","name":"FeatureGrid","version":"0.16.0","availability":"source"}],"examples":[{"id":"FeatureGrid","title":"FeatureGrid","mode":"spec","language":"json","code":"{\n \"version\": \"2.0\",\n \"pages\": [\n {\n \"id\": \"demo\",\n \"path\": \"/\",\n \"title\": \"FeatureGrid\",\n \"blocks\": [\n {\n \"type\": \"FeatureGrid\",\n \"props\": {\n \"cols\": \"3\",\n \"items\": [\n {\n \"icon\": \"icon\",\n \"title\": \"Build something useful\",\n \"desc\": \"desc\"\n }\n ]\n }\n }\n ]\n }\n ]\n}","dependencies":[]}]},"component:feature-split":{"resourceId":"component:feature-split","title":{"zh":"FeatureSplit","en":"FeatureSplit"},"docs":{"zh":"# FeatureSplit\n\nAlternating two-column feature section: an editorial text column (eyebrow, serif title, body, bulleted benefits, optional CTA) beside a visual column. The visual renders the `visual` slot (or children) — e.g. a BrowserFrame — falling back to a tinted blueprint placeholder. `reverse` flips the column order for an alternating page rhythm.\n\n","en":"# FeatureSplit\n\nAlternating two-column feature section: an editorial text column (eyebrow, serif title, body, bulleted benefits, optional CTA) beside a visual column. The visual renders the `visual` slot (or children) — e.g. a BrowserFrame — falling back to a tinted blueprint placeholder. `reverse` flips the column order for an alternating page rhythm.\n\n"},"api":{"name":"FeatureSplit","description":"Alternating two-column feature section: an editorial text column (eyebrow, serif title, body, bulleted benefits, optional CTA) beside a visual column. The visual renders the `visual` slot (or children) — e.g. a BrowserFrame — falling back to a tinted blueprint placeholder. `reverse` flips the column order for an alternating page rhythm.","category":"presentation","level":"L3","tags":["feature","split","two-column","marketing"],"props":{"eyebrow":{"type":"string","description":"Mono uppercase kicker"},"title":{"type":"string","description":"Serif feature title"},"body":{"type":"string","description":"Supporting paragraph"},"bullets":{"type":"array","items":{"type":"object","properties":{"icon":{"type":"string"},"text":{"type":"string"}}},"description":"Array of strings or [{icon?, text}] benefit rows"},"cta":{"type":"object","properties":{"label":{"type":"string"},"href":{"type":"string"}},"description":"{label, href} — solid amber button"},"reverse":{"type":"boolean","default":false,"description":"Place the visual on the left"},"tone":{"type":"string","enum":["0","1","2","3"],"default":"0","description":"Accent-hue index for the bullet chips / placeholder"}},"slots":{"visual":{"description":"Right-pane visual (BrowserFrame, rendered preview, image); falls back to children then a placeholder"}},"usageScenarios":["Alternating feature rows down a landing page (reverse every other)","Text + live BrowserFrame preview feature block"],"constraints":["Provide a visual slot/children for the right pane; otherwise a tinted placeholder renders","bullets accept strings or {icon?, text}; CTA href defaults to '#'"]},"distributions":[{"channel":"shadcn","name":"sections","version":"0.16.0","availability":"source"},{"channel":"spec","name":"FeatureSplit","version":"0.16.0","availability":"source"}],"examples":[{"id":"FeatureSplit","title":"FeatureSplit","mode":"spec","language":"json","code":"{\n \"version\": \"2.0\",\n \"pages\": [\n {\n \"id\": \"demo\",\n \"path\": \"/\",\n \"title\": \"FeatureSplit\",\n \"blocks\": [\n {\n \"type\": \"FeatureSplit\",\n \"props\": {\n \"eyebrow\": \"eyebrow\",\n \"title\": \"Build something useful\",\n \"body\": \"body\",\n \"bullets\": [\n {\n \"icon\": \"icon\",\n \"text\": \"A real component, ready to customize.\"\n }\n ],\n \"cta\": {\n \"label\": \"UIBot\",\n \"href\": \"#\"\n },\n \"reverse\": false,\n \"tone\": \"0\"\n },\n \"children\": [\n {\n \"type\": \"Paragraph\",\n \"props\": {\n \"text\": \"Compose this with your own content.\"\n }\n }\n ]\n }\n ]\n }\n ]\n}","dependencies":[]}]},"component:field":{"resourceId":"component:field","title":{"zh":"Field","en":"Field"},"docs":{"zh":"# Field\n\nAccessible controlled or local form field; native validation and scalar event values\n\n","en":"# Field\n\nAccessible controlled or local form field; native validation and scalar event values\n\n"},"api":{"name":"Field","tags":["form"],"description":"Accessible controlled or local form field; native validation and scalar event values","category":"composite","level":"L2","props":{"kind":{"type":"string"},"label":{"type":"string"},"name":{"type":"string"},"value":{"description":"String, boolean, or string array according to kind"},"defaultValue":{"description":"Initial string, boolean, or string array"},"options":{"type":"array"},"description":{"type":"string"},"error":{"type":"string"},"required":{"type":"boolean"},"disabled":{"type":"boolean"},"placeholder":{"type":"string"},"rows":{"type":"number"},"length":{"type":"number"},"autoComplete":{"type":"string"}},"events":{"onChange":{"description":"Serializable values in event.values"}}},"distributions":[{"channel":"shadcn","name":"field","version":"0.16.0","availability":"source"},{"channel":"spec","name":"Field","version":"0.16.0","availability":"source"}],"examples":[{"id":"Field","title":"Field","mode":"spec","language":"json","code":"{\n \"version\": \"2.0\",\n \"pages\": [\n {\n \"id\": \"demo\",\n \"path\": \"/\",\n \"title\": \"Field\",\n \"blocks\": [\n {\n \"type\": \"Field\",\n \"props\": {\n \"kind\": \"kind\",\n \"label\": \"UIBot\",\n \"name\": \"resource\",\n \"defaultValue\": \"128\",\n \"options\": [],\n \"description\": \"Explore the source and make it yours.\",\n \"required\": false,\n \"disabled\": false,\n \"placeholder\": \"Type here…\",\n \"rows\": 2,\n \"length\": 2,\n \"autoComplete\": \"autoComplete\"\n }\n }\n ]\n }\n ]\n}","dependencies":[]}]},"component:footer":{"resourceId":"component:footer","title":{"zh":"Footer","en":"Footer"},"docs":{"zh":"# Footer\n\nMulti-column marketing footer: a brand block (serif wordmark + tagline) beside grouped link columns, with a bottom rule carrying a copyright line and small print. Pure layout off theme tokens.\n\n","en":"# Footer\n\nMulti-column marketing footer: a brand block (serif wordmark + tagline) beside grouped link columns, with a bottom rule carrying a copyright line and small print. Pure layout off theme tokens.\n\n"},"api":{"name":"Footer","description":"Multi-column marketing footer: a brand block (serif wordmark + tagline) beside grouped link columns, with a bottom rule carrying a copyright line and small print. Pure layout off theme tokens.","category":"presentation","level":"L2","tags":["footer","navigation","marketing","layout"],"props":{"brand":{"type":"string","description":"Brand wordmark (serif display under .marketing)"},"tagline":{"type":"string","description":"Short brand tagline under the wordmark"},"groups":{"type":"array","items":{"type":"object","properties":{"title":{"type":"string"},"links":{"type":"array","items":{"type":"object","properties":{"label":{"type":"string"},"href":{"type":"string"}}}}}},"description":"[{title, links:[{label, href}]}] link columns"},"copyright":{"type":"string","description":"Bottom-left copyright line"},"note":{"type":"string","description":"Bottom-right mono small print"}},"usageScenarios":["Site-wide marketing footer with Product / Company / Legal columns","Compact footer with brand + a single link group"],"constraints":["link href defaults to '#' when omitted; empty groups/links are dropped","The bottom rule only renders when copyright or note is provided"]},"distributions":[{"channel":"shadcn","name":"sections","version":"0.16.0","availability":"source"},{"channel":"spec","name":"Footer","version":"0.16.0","availability":"source"}],"examples":[{"id":"Footer","title":"Footer","mode":"spec","language":"json","code":"{\n \"version\": \"2.0\",\n \"pages\": [\n {\n \"id\": \"demo\",\n \"path\": \"/\",\n \"title\": \"Footer\",\n \"blocks\": [\n {\n \"type\": \"Footer\",\n \"props\": {\n \"brand\": \"brand\",\n \"tagline\": \"tagline\",\n \"groups\": [\n {\n \"title\": \"Build something useful\",\n \"links\": [\n {\n \"label\": \"UIBot\",\n \"href\": \"#\"\n }\n ]\n }\n ],\n \"copyright\": \"copyright\",\n \"note\": \"note\"\n }\n }\n ]\n }\n ]\n}","dependencies":[]}]},"component:form":{"resourceId":"component:form","title":{"zh":"Form","en":"Form"},"docs":{"zh":"# Form\n\nForm wrapper that prevents default submission. Place Form.Input, Form.Select, etc. as children and end with Form.Submit.\n\n","en":"# Form\n\nForm wrapper that prevents default submission. Place Form.Input, Form.Select, etc. as children and end with Form.Submit.\n\n"},"api":{"name":"Form","description":"Form wrapper that prevents default submission. Place Form.Input, Form.Select, etc. as children and end with Form.Submit.","category":"composite","level":"L2","tags":["form","input"],"props":{"idempotent":{"type":"boolean","description":"Emit a stable event.value idempotency key while retrying unchanged form values"},"pending":{"type":"boolean"},"label":{"type":"string"},"layout":{"type":"string","enum":["vertical","horizontal"],"default":"vertical"}},"events":{"onChange":{"description":"Bubbled native field changes with { type, name, value, checked }."},"onSubmit":{"description":"Runs after native submission is prevented.","payload":{"type":"object","description":"{ type: 'submit', values: Record<string, value> }"}}},"usageScenarios":["Create / edit entity form","Login form","Search filter form"],"constraints":["Always include exactly one Form.Submit as the last child","Do not nest forms inside forms"]},"distributions":[{"channel":"shadcn","name":"form","version":"0.16.0","availability":"source"},{"channel":"spec","name":"Form","version":"0.16.0","availability":"source"}],"examples":[{"id":"Form","title":"Form","mode":"spec","language":"json","code":"{\n \"version\": \"2.0\",\n \"pages\": [\n {\n \"id\": \"demo\",\n \"path\": \"/\",\n \"title\": \"Form\",\n \"blocks\": [\n {\n \"type\": \"Form\",\n \"props\": {\n \"idempotent\": false,\n \"label\": \"UIBot\",\n \"layout\": \"vertical\"\n }\n }\n ]\n }\n ]\n}","dependencies":[]}]},"component:form-checkbox":{"resourceId":"component:form-checkbox","title":{"zh":"Form.Checkbox","en":"Form.Checkbox"},"docs":{"zh":"# Form.Checkbox\n\nSingle boolean checkbox with optional description beneath the label.\n\n","en":"# Form.Checkbox\n\nSingle boolean checkbox with optional description beneath the label.\n\n"},"api":{"name":"Form.Checkbox","description":"Single boolean checkbox with optional description beneath the label.","category":"primitive","level":"L1","tags":["form","checkbox"],"props":{"name":{"type":"string"},"label":{"type":"string"},"description":{"type":"string"},"checked":{"type":"boolean","description":"Supports {_bindState: 'path'} for two-way state."}},"events":{"onChange":{"description":"Runs with { type, name, value, checked }."}},"usageScenarios":["Terms & conditions consent","Opt-in notification preference"],"constraints":[]},"distributions":[{"channel":"shadcn","name":"form","version":"0.16.0","availability":"source"},{"channel":"spec","name":"Form.Checkbox","version":"0.16.0","availability":"source"}],"examples":[{"id":"Form.Checkbox","title":"Form.Checkbox","mode":"spec","language":"json","code":"{\n \"version\": \"2.0\",\n \"pages\": [\n {\n \"id\": \"demo\",\n \"path\": \"/\",\n \"title\": \"Form.Checkbox\",\n \"blocks\": [\n {\n \"type\": \"Form\",\n \"props\": {\n \"label\": \"Example form\"\n },\n \"children\": [\n {\n \"type\": \"Form.Checkbox\",\n \"props\": {\n \"name\": \"resource\",\n \"label\": \"UIBot\",\n \"description\": \"Explore the source and make it yours.\"\n }\n }\n ]\n }\n ]\n }\n ]\n}","dependencies":[]}]},"component:form-input":{"resourceId":"component:form-input","title":{"zh":"Form.Input","en":"Form.Input"},"docs":{"zh":"# Form.Input\n\nSingle-line text field. Supports text, email, password, number, tel, url, date types.\n\n","en":"# Form.Input\n\nSingle-line text field. Supports text, email, password, number, tel, url, date types.\n\n"},"api":{"name":"Form.Input","description":"Single-line text field. Supports text, email, password, number, tel, url, date types.","category":"primitive","level":"L1","tags":["form","input"],"props":{"name":{"type":"string","description":"Field identifier (must be unique in the form)"},"label":{"type":"string"},"type":{"type":"string","enum":["text","email","password","number","tel","url","date","search"],"default":"text"},"placeholder":{"type":"string"},"helpText":{"type":"string"},"error":{"type":"string"},"required":{"type":"boolean","default":false},"disabled":{"type":"boolean","default":false},"value":{"type":"string","description":"Supports {_bindState: 'path'} for two-way state."}},"events":{"onChange":{"description":"Runs with { type, name, value }."}},"usageScenarios":["Email address field in a login form","Search bar with type=search","Price input with type=number"],"constraints":["name prop is required and must be unique within the parent Form"]},"distributions":[{"channel":"shadcn","name":"form","version":"0.16.0","availability":"source"},{"channel":"spec","name":"Form.Input","version":"0.16.0","availability":"source"}],"examples":[{"id":"Form.Input","title":"Form.Input","mode":"spec","language":"json","code":"{\n \"version\": \"2.0\",\n \"pages\": [\n {\n \"id\": \"demo\",\n \"path\": \"/\",\n \"title\": \"Form.Input\",\n \"blocks\": [\n {\n \"type\": \"Form\",\n \"props\": {\n \"label\": \"Example form\"\n },\n \"children\": [\n {\n \"type\": \"Form.Input\",\n \"props\": {\n \"name\": \"resource\",\n \"label\": \"UIBot\",\n \"type\": \"text\",\n \"placeholder\": \"Type here…\",\n \"helpText\": \"helpText\",\n \"required\": false,\n \"disabled\": false\n }\n }\n ]\n }\n ]\n }\n ]\n}","dependencies":[]}]},"component:form-select":{"resourceId":"component:form-select","title":{"zh":"Form.Select","en":"Form.Select"},"docs":{"zh":"# Form.Select\n\nDropdown select field with an options array [{value, label}].\n\n","en":"# Form.Select\n\nDropdown select field with an options array [{value, label}].\n\n"},"api":{"name":"Form.Select","description":"Dropdown select field with an options array [{value, label}].","category":"primitive","level":"L1","tags":["form","select"],"props":{"name":{"type":"string"},"label":{"type":"string"},"options":{"type":"array","items":{"type":"object","properties":{"value":{"type":"string"},"label":{"type":"string"}}},"description":"[{value, label}]"},"placeholder":{"type":"string"},"required":{"type":"boolean","default":false},"value":{"type":"string","description":"Supports {_bindState: 'path'} for two-way state."}},"events":{"onChange":{"description":"Runs with { type, name, value }."}},"usageScenarios":["Role selector (Admin/Editor/Viewer)","Status filter dropdown"],"constraints":[]},"distributions":[{"channel":"shadcn","name":"form","version":"0.16.0","availability":"source"},{"channel":"spec","name":"Form.Select","version":"0.16.0","availability":"source"}],"examples":[{"id":"Form.Select","title":"Form.Select","mode":"spec","language":"json","code":"{\n \"version\": \"2.0\",\n \"pages\": [\n {\n \"id\": \"demo\",\n \"path\": \"/\",\n \"title\": \"Form.Select\",\n \"blocks\": [\n {\n \"type\": \"Form\",\n \"props\": {\n \"label\": \"Example form\"\n },\n \"children\": [\n {\n \"type\": \"Form.Select\",\n \"props\": {\n \"name\": \"resource\",\n \"label\": \"UIBot\",\n \"options\": [\n {\n \"value\": \"128\",\n \"label\": \"UIBot\"\n }\n ],\n \"placeholder\": \"Type here…\",\n \"required\": false\n }\n }\n ]\n }\n ]\n }\n ]\n}","dependencies":[]}]},"component:form-submit":{"resourceId":"component:form-submit","title":{"zh":"Form.Submit","en":"Form.Submit"},"docs":{"zh":"# Form.Submit\n\nForm submit button. Use variant=destructive for irreversible actions.\n\n","en":"# Form.Submit\n\nForm submit button. Use variant=destructive for irreversible actions.\n\n"},"api":{"name":"Form.Submit","description":"Form submit button. Use variant=destructive for irreversible actions.","category":"primitive","level":"L1","tags":["form","button"],"props":{"disabled":{"type":"boolean","default":false},"label":{"type":"string","default":"Submit"},"variant":{"type":"string","enum":["default","destructive","outline","ghost"],"default":"default"},"full":{"type":"boolean","default":false}},"events":{"onClick":{"description":"Runs with a plain click payload before the parent form submits."}},"usageScenarios":["Save button at the bottom of a form","Delete action with variant=destructive"],"constraints":["Must be inside a Form block"]},"distributions":[{"channel":"shadcn","name":"form","version":"0.16.0","availability":"source"},{"channel":"spec","name":"Form.Submit","version":"0.16.0","availability":"source"}],"examples":[{"id":"Form.Submit","title":"Form.Submit","mode":"spec","language":"json","code":"{\n \"version\": \"2.0\",\n \"pages\": [\n {\n \"id\": \"demo\",\n \"path\": \"/\",\n \"title\": \"Form.Submit\",\n \"blocks\": [\n {\n \"type\": \"Form\",\n \"props\": {\n \"label\": \"Example form\"\n },\n \"children\": [\n {\n \"type\": \"Form.Submit\",\n \"props\": {\n \"disabled\": false,\n \"label\": \"Submit\",\n \"variant\": \"default\",\n \"full\": false\n }\n }\n ]\n }\n ]\n }\n ]\n}","dependencies":[]}]},"component:form-text-area":{"resourceId":"component:form-text-area","title":{"zh":"Form.TextArea","en":"Form.TextArea"},"docs":{"zh":"# Form.TextArea\n\nMulti-line text input. Use for descriptions, messages, or any free-form long text.\n\n","en":"# Form.TextArea\n\nMulti-line text input. Use for descriptions, messages, or any free-form long text.\n\n"},"api":{"name":"Form.TextArea","description":"Multi-line text input. Use for descriptions, messages, or any free-form long text.","category":"primitive","level":"L1","tags":["form","textarea"],"props":{"name":{"type":"string"},"label":{"type":"string"},"placeholder":{"type":"string"},"rows":{"type":"integer","default":4},"helpText":{"type":"string"},"required":{"type":"boolean","default":false},"value":{"type":"string","description":"Supports {_bindState: 'path'} for two-way state."}},"events":{"onChange":{"description":"Runs with { type, name, value }."}},"usageScenarios":["Bio / description field on a profile form","Message body in a contact form"],"constraints":[]},"distributions":[{"channel":"shadcn","name":"form","version":"0.16.0","availability":"source"},{"channel":"spec","name":"Form.TextArea","version":"0.16.0","availability":"source"}],"examples":[{"id":"Form.TextArea","title":"Form.TextArea","mode":"spec","language":"json","code":"{\n \"version\": \"2.0\",\n \"pages\": [\n {\n \"id\": \"demo\",\n \"path\": \"/\",\n \"title\": \"Form.TextArea\",\n \"blocks\": [\n {\n \"type\": \"Form\",\n \"props\": {\n \"label\": \"Example form\"\n },\n \"children\": [\n {\n \"type\": \"Form.TextArea\",\n \"props\": {\n \"name\": \"resource\",\n \"label\": \"UIBot\",\n \"placeholder\": \"Type here…\",\n \"rows\": 4,\n \"helpText\": \"helpText\",\n \"required\": false\n }\n }\n ]\n }\n ]\n }\n ]\n}","dependencies":[]}]},"component:gallery-grid":{"resourceId":"component:gallery-grid","title":{"zh":"GalleryGrid","en":"GalleryGrid"},"docs":{"zh":"# GalleryGrid\n\nCaption gallery grid. Lays image tiles (or, with no `src`, a tinted blueprint placeholder) onto a 2–4 column responsive grid; a tile may opt into `wide` to span two columns for a mixed-rhythm mosaic. Captions sit on a gradient scrim over each tile. Hairline framing, hover lift — no external images required.\n\n","en":"# GalleryGrid\n\nCaption gallery grid. Lays image tiles (or, with no `src`, a tinted blueprint placeholder) onto a 2–4 column responsive grid; a tile may opt into `wide` to span two columns for a mixed-rhythm mosaic. Captions sit on a gradient scrim over each tile. Hairline framing, hover lift — no external images required.\n\n"},"api":{"name":"GalleryGrid","description":"Caption gallery grid. Lays image tiles (or, with no `src`, a tinted blueprint placeholder) onto a 2–4 column responsive grid; a tile may opt into `wide` to span two columns for a mixed-rhythm mosaic. Captions sit on a gradient scrim over each tile. Hairline framing, hover lift — no external images required.","category":"presentation","level":"L2","tags":["gallery","images","grid","marketing"],"props":{"columns":{"type":"string","enum":["2","3","4"],"default":"3"},"items":{"type":"array","items":{"type":"object","properties":{"src":{"type":"string","description":"Image URL; omit for a tinted placeholder"},"caption":{"type":"string","description":"Caption shown over a gradient scrim"},"tone":{"type":"integer","description":"Accent-hue index 0–3 for the placeholder"},"wide":{"type":"boolean","description":"Span two columns"}}},"description":"[{src?, caption?, tone?, wide?}] gallery tiles"}},"usageScenarios":["Screenshot gallery with a wide hero tile and smaller supporting tiles","Placeholder-driven layout mock before real imagery exists"],"constraints":["src is treated as an image when it looks like a URL (http(s):/data:/leading slash); otherwise a placeholder renders","wide spans two columns from the sm breakpoint up"]},"distributions":[{"channel":"shadcn","name":"sections","version":"0.16.0","availability":"source"},{"channel":"spec","name":"GalleryGrid","version":"0.16.0","availability":"source"}],"examples":[{"id":"GalleryGrid","title":"GalleryGrid","mode":"spec","language":"json","code":"{\n \"version\": \"2.0\",\n \"pages\": [\n {\n \"id\": \"demo\",\n \"path\": \"/\",\n \"title\": \"GalleryGrid\",\n \"blocks\": [\n {\n \"type\": \"GalleryGrid\",\n \"props\": {\n \"columns\": \"3\",\n \"items\": [\n {\n \"src\": \"src\",\n \"caption\": \"caption\",\n \"tone\": 2,\n \"wide\": false\n }\n ]\n }\n }\n ]\n }\n ]\n}","dependencies":[]}]},"component:grid":{"resourceId":"component:grid","title":{"zh":"Grid","en":"Grid"},"docs":{"zh":"# Grid\n\nDeclarative grid layout. Maps cols/gap/responsive props to Tailwind grid classes; children become grid cells directly.\n\n","en":"# Grid\n\nDeclarative grid layout. Maps cols/gap/responsive props to Tailwind grid classes; children become grid cells directly.\n\n"},"api":{"name":"Grid","description":"Declarative grid layout. Maps cols/gap/responsive props to Tailwind grid classes; children become grid cells directly.","category":"primitive","level":"L1","tags":["layout","grid","container"],"props":{"cols":{"enum":["1","2","3","4","5","6","auto",1,2,3,4,5,6],"default":"auto","description":"Column count, or 'auto' for auto-fit minmax(220px,1fr)"},"gap":{"type":"string","enum":["none","xs","sm","md","lg","xl"],"default":"md"},"responsive":{"type":"boolean","default":false,"description":"Use a mobile-first ladder (grid-cols-1 → sm:2 → lg:N) instead of a fixed column count"},"align":{"type":"string","enum":["start","center","end","stretch"]},"justify":{"type":"string","enum":["start","center","end","between","around"]}},"usageScenarios":["4-up Stat dashboard row (cols=4)","Responsive card gallery (cols=3, responsive=true)","Two-column form layout (cols=2)"],"constraints":["Grid children become grid cells directly; do not wrap each child in a Box","Use cols='auto' when the number of children is dynamic"]},"distributions":[{"channel":"shadcn","name":"grid","version":"0.16.0","availability":"source"},{"channel":"spec","name":"Grid","version":"0.16.0","availability":"source"}],"examples":[{"id":"Grid","title":"Grid","mode":"spec","language":"json","code":"{\n \"version\": \"2.0\",\n \"pages\": [\n {\n \"id\": \"demo\",\n \"path\": \"/\",\n \"title\": \"Grid\",\n \"blocks\": [\n {\n \"type\": \"Grid\",\n \"props\": {\n \"cols\": \"auto\",\n \"gap\": \"md\",\n \"responsive\": false,\n \"align\": \"start\",\n \"justify\": \"start\"\n },\n \"children\": [\n {\n \"type\": \"Paragraph\",\n \"props\": {\n \"text\": \"Compose this with your own content.\"\n }\n }\n ]\n }\n ]\n }\n ]\n}","dependencies":[]}]},"component:heading":{"resourceId":"component:heading","title":{"zh":"Heading","en":"Heading"},"docs":{"zh":"# Heading\n\nSemantic heading tag h1–h6 with size automatically mapped to the level.\n\n","en":"# Heading\n\nSemantic heading tag h1–h6 with size automatically mapped to the level.\n\n"},"api":{"name":"Heading","description":"Semantic heading tag h1–h6 with size automatically mapped to the level.","category":"primitive","level":"L1","tags":["text","heading","typography"],"props":{"className":{"type":"string","description":"Additional Tailwind utility classes"},"text":{"type":"string"},"level":{"type":"integer","default":2,"description":"1=largest, 6=smallest"},"muted":{"type":"boolean","default":false,"description":"Render in muted-foreground"}},"usageScenarios":["Section title above a Table or Card","Hero headline on a landing page"],"constraints":["Use only one h1 per page"]},"distributions":[{"channel":"shadcn","name":"data","version":"0.16.0","availability":"source"},{"channel":"spec","name":"Heading","version":"0.16.0","availability":"source"}],"examples":[{"id":"Heading","title":"Heading","mode":"spec","language":"json","code":"{\n \"version\": \"2.0\",\n \"pages\": [\n {\n \"id\": \"demo\",\n \"path\": \"/\",\n \"title\": \"Heading\",\n \"blocks\": [\n {\n \"type\": \"Heading\",\n \"props\": {\n \"className\": \"className\",\n \"text\": \"A real component, ready to customize.\",\n \"level\": 2,\n \"muted\": false\n }\n }\n ]\n }\n ]\n}","dependencies":[]}]},"component:heatmap":{"resourceId":"component:heatmap","title":{"zh":"Heatmap","en":"Heatmap"},"docs":{"zh":"# Heatmap\n\nAlias of Matrix — two-dimensional 0..1 intensity grid.\n\n","en":"# Heatmap\n\nAlias of Matrix — two-dimensional 0..1 intensity grid.\n\n"},"api":{"name":"Heatmap","description":"Alias of Matrix — two-dimensional 0..1 intensity grid.","category":"composite","level":"L3","tags":["heatmap","matrix","grid"],"props":{"caption":{"type":"string"},"rows":{"type":"array","items":{"type":"string"}},"cols":{"type":"array","items":{"type":"string"}},"cells":{"type":"array","items":{"type":"array","items":{"type":"number"}}},"showValues":{"type":"boolean","default":false}},"usageScenarios":["Same as Matrix"],"constraints":["Identical implementation to Matrix"]},"distributions":[{"channel":"shadcn","name":"data-studio","version":"0.16.0","availability":"source"},{"channel":"spec","name":"Heatmap","version":"0.16.0","availability":"source"}],"examples":[{"id":"Heatmap","title":"Heatmap","mode":"spec","language":"json","code":"{\n \"version\": \"2.0\",\n \"pages\": [\n {\n \"id\": \"demo\",\n \"path\": \"/\",\n \"title\": \"Heatmap\",\n \"blocks\": [\n {\n \"type\": \"Heatmap\",\n \"props\": {\n \"caption\": \"caption\",\n \"rows\": [\n \"rows\"\n ],\n \"cols\": [\n \"cols\"\n ],\n \"cells\": [\n [\n 2\n ]\n ],\n \"showValues\": false\n }\n }\n ]\n }\n ]\n}","dependencies":[]}]},"component:hero":{"resourceId":"component:hero","title":{"zh":"Hero","en":"Hero"},"docs":{"zh":"# Hero\n\nAsymmetric editorial hero: serif display title (with optional italic emphasis word), mono eyebrow with amber dot, warm radial-glow + blueprint dot-grid backdrop, grain overlay, staggered reveal, and primary/secondary CTAs. An optional right-side visual renders via the `aside` slot or children.\n\n","en":"# Hero\n\nAsymmetric editorial hero: serif display title (with optional italic emphasis word), mono eyebrow with amber dot, warm radial-glow + blueprint dot-grid backdrop, grain overlay, staggered reveal, and primary/secondary CTAs. An optional right-side visual renders via the `aside` slot or children.\n\n"},"api":{"name":"Hero","description":"Asymmetric editorial hero: serif display title (with optional italic emphasis word), mono eyebrow with amber dot, warm radial-glow + blueprint dot-grid backdrop, grain overlay, staggered reveal, and primary/secondary CTAs. An optional right-side visual renders via the `aside` slot or children.","category":"presentation","level":"L3","tags":["hero","marketing","landing","editorial"],"props":{"eyebrow":{"type":"string","description":"Mono uppercase kicker above the title"},"title":{"type":"string","description":"Serif display headline"},"titleEmphasis":{"type":"string","description":"Optional trailing word rendered italic + amber for emphasis"},"subtitle":{"type":"string","description":"Supporting lead paragraph"},"primaryCta":{"type":"object","properties":{"label":{"type":"string"},"href":{"type":"string"}},"description":"{label, href} — solid amber button"},"secondaryCta":{"type":"object","properties":{"label":{"type":"string"},"href":{"type":"string"}},"description":"{label, href} — outline button"},"note":{"type":"string","description":"Small mono note under the CTAs"}},"slots":{"aside":{"description":"Right-pane visual (e.g. a rendered spec preview); hidden on mobile"}},"usageScenarios":["Studio landing-page hero introducing 'AI writes the spec, the platform renders the UI'","Product launch hero with a spec snippet preview on the right"],"constraints":["CTA props are {label, href}; href defaults to '#' when omitted","Use titleEmphasis for a single emphasis word, not the whole title"]},"distributions":[{"channel":"shadcn","name":"presentation","version":"0.16.0","availability":"source"},{"channel":"spec","name":"Hero","version":"0.16.0","availability":"source"}],"examples":[{"id":"Hero","title":"Hero","mode":"spec","language":"json","code":"{\n \"version\": \"2.0\",\n \"pages\": [\n {\n \"id\": \"demo\",\n \"path\": \"/\",\n \"title\": \"Hero\",\n \"blocks\": [\n {\n \"type\": \"Hero\",\n \"props\": {\n \"eyebrow\": \"eyebrow\",\n \"title\": \"Build something useful\",\n \"titleEmphasis\": \"titleEmphasis\",\n \"subtitle\": \"subtitle\",\n \"primaryCta\": {\n \"label\": \"UIBot\",\n \"href\": \"#\"\n },\n \"secondaryCta\": {\n \"label\": \"UIBot\",\n \"href\": \"#\"\n },\n \"note\": \"note\"\n }\n }\n ]\n }\n ]\n}","dependencies":[]}]},"component:icon-list":{"resourceId":"component:icon-list","title":{"zh":"IconList","en":"IconList"},"docs":{"zh":"# IconList\n\nBenefit / checklist list with icons. Each item shows a tinted icon chip, a title and optional supporting line, laid into a 1–3 column grid; tints cycle the four accents. Lighter-weight than FeatureGrid (no card material) — for inline benefit/checklist runs.\n\n","en":"# IconList\n\nBenefit / checklist list with icons. Each item shows a tinted icon chip, a title and optional supporting line, laid into a 1–3 column grid; tints cycle the four accents. Lighter-weight than FeatureGrid (no card material) — for inline benefit/checklist runs.\n\n"},"api":{"name":"IconList","description":"Benefit / checklist list with icons. Each item shows a tinted icon chip, a title and optional supporting line, laid into a 1–3 column grid; tints cycle the four accents. Lighter-weight than FeatureGrid (no card material) — for inline benefit/checklist runs.","category":"presentation","level":"L1","tags":["benefits","checklist","list","marketing"],"props":{"columns":{"type":"string","enum":["1","2","3"],"default":"2"},"icon":{"type":"string","description":"Default lucide icon for items without their own (defaults to 'check')"},"items":{"type":"array","items":{"type":"object","properties":{"icon":{"type":"string"},"title":{"type":"string"},"desc":{"type":"string"}}},"description":"Array of strings or [{icon?, title, desc?}]"}},"usageScenarios":["Two-column 'what's included' benefit list","Checklist of capabilities under a SectionHeader"],"constraints":["items accept plain strings (→ title only) or {icon?, title, desc?}","icon falls back to the block-level `icon` (default 'check'); unknown names → dot"]},"distributions":[{"channel":"shadcn","name":"sections","version":"0.16.0","availability":"source"},{"channel":"spec","name":"IconList","version":"0.16.0","availability":"source"}],"examples":[{"id":"IconList","title":"IconList","mode":"spec","language":"json","code":"{\n \"version\": \"2.0\",\n \"pages\": [\n {\n \"id\": \"demo\",\n \"path\": \"/\",\n \"title\": \"IconList\",\n \"blocks\": [\n {\n \"type\": \"IconList\",\n \"props\": {\n \"columns\": \"2\",\n \"icon\": \"icon\",\n \"items\": [\n {\n \"icon\": \"icon\",\n \"title\": \"Build something useful\",\n \"desc\": \"desc\"\n }\n ]\n }\n }\n ]\n }\n ]\n}","dependencies":[]}]},"component:integration-grid":{"resourceId":"component:integration-grid","title":{"zh":"IntegrationGrid","en":"IntegrationGrid"},"docs":{"zh":"# IntegrationGrid\n\nSearchable integrations with explicit capability availability\n\n","en":"# IntegrationGrid\n\nSearchable integrations with explicit capability availability\n\n"},"api":{"name":"IntegrationGrid","tags":["data"],"description":"Searchable integrations with explicit capability availability","category":"composite","level":"L2","props":{"configurations":{"type":"array"},"configurable":{"type":"boolean"},"items":{"type":"array"},"pending":{"type":"boolean"},"error":{"type":"string"}},"events":{"onConfigure":{"description":"Workspace configuration intent and existing record version"},"onAction":{"description":"Serializable values in event.values"}}},"distributions":[{"channel":"shadcn","name":"workspace","version":"0.16.0","availability":"source"},{"channel":"spec","name":"IntegrationGrid","version":"0.16.0","availability":"source"}],"examples":[{"id":"IntegrationGrid","title":"IntegrationGrid","mode":"spec","language":"json","code":"{\n \"version\": \"2.0\",\n \"pages\": [\n {\n \"id\": \"demo\",\n \"path\": \"/\",\n \"title\": \"IntegrationGrid\",\n \"blocks\": [\n {\n \"type\": \"IntegrationGrid\",\n \"props\": {\n \"configurations\": [],\n \"configurable\": false,\n \"items\": []\n }\n }\n ]\n }\n ]\n}","dependencies":[]}]},"component:kanban-board":{"resourceId":"component:kanban-board","title":{"zh":"KanbanBoard","en":"KanbanBoard"},"docs":{"zh":"# KanbanBoard\n\nHorizontal kanban board: columns as swimlanes, cards grouped by their column id. Read-only display.\n\n","en":"# KanbanBoard\n\nHorizontal kanban board: columns as swimlanes, cards grouped by their column id. Read-only display.\n\n"},"api":{"name":"KanbanBoard","description":"Horizontal kanban board: columns as swimlanes, cards grouped by their column id. Read-only display.","category":"composite","level":"L3","tags":["kanban","board","operations"],"props":{"columns":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string"},"title":{"type":"string"}}},"description":"[{id, title}] swimlane definitions"},"cards":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string"},"column":{"type":"string"},"title":{"type":"string"},"subtitle":{"type":"string"},"badge":{"type":"string"}}},"description":"[{id, column, title, subtitle?, badge?}] — column must match a column id"}},"usageScenarios":["Operations task board (Todo / In progress / Done)","Release pipeline stages"],"constraints":["Each card.column must reference an existing column.id, else the card is dropped","Up to 4 columns fit the container as an equal-width grid (no scrollbar); 5+ columns switch to a horizontal scroll strip"]},"distributions":[{"channel":"shadcn","name":"kanban","version":"0.16.0","availability":"source"},{"channel":"spec","name":"KanbanBoard","version":"0.16.0","availability":"source"}],"examples":[{"id":"KanbanBoard","title":"KanbanBoard","mode":"spec","language":"json","code":"{\n \"version\": \"2.0\",\n \"pages\": [\n {\n \"id\": \"demo\",\n \"path\": \"/\",\n \"title\": \"KanbanBoard\",\n \"blocks\": [\n {\n \"type\": \"KanbanBoard\",\n \"props\": {\n \"columns\": [\n {\n \"id\": \"id\",\n \"title\": \"Build something useful\"\n }\n ],\n \"cards\": [\n {\n \"id\": \"id\",\n \"column\": \"column\",\n \"title\": \"Build something useful\",\n \"subtitle\": \"subtitle\",\n \"badge\": \"badge\"\n }\n ]\n }\n }\n ]\n }\n ]\n}","dependencies":[]}]},"component:key-value-grid":{"resourceId":"component:key-value-grid","title":{"zh":"KeyValueGrid","en":"KeyValueGrid"},"docs":{"zh":"# KeyValueGrid\n\nCompact key/value grid for metadata. Accepts an items array or a plain record object.\n\n","en":"# KeyValueGrid\n\nCompact key/value grid for metadata. Accepts an items array or a plain record object.\n\n"},"api":{"name":"KeyValueGrid","description":"Compact key/value grid for metadata. Accepts an items array or a plain record object.","category":"composite","level":"L1","tags":["key-value","metadata","grid","display"],"props":{"items":{"type":"array","items":{"type":"object","properties":{"key":{"type":"string"},"value":{"type":"string"}}},"description":"[{key, value}] pairs (or pass a plain object as `data`)"},"cols":{"enum":["1","2","3",1,2,3],"default":"2"}},"usageScenarios":["Model metadata panel (provider, context, pricing)","Request / response header summary"],"constraints":["Values are stringified for display; pass pre-formatted strings for control"]},"distributions":[{"channel":"shadcn","name":"interactive","version":"0.16.0","availability":"source"},{"channel":"spec","name":"KeyValueGrid","version":"0.16.0","availability":"source"}],"examples":[{"id":"KeyValueGrid","title":"KeyValueGrid","mode":"spec","language":"json","code":"{\n \"version\": \"2.0\",\n \"pages\": [\n {\n \"id\": \"demo\",\n \"path\": \"/\",\n \"title\": \"KeyValueGrid\",\n \"blocks\": [\n {\n \"type\": \"KeyValueGrid\",\n \"props\": {\n \"items\": [\n {\n \"key\": \"key\",\n \"value\": \"128\"\n }\n ],\n \"cols\": \"2\"\n }\n }\n ]\n }\n ]\n}","dependencies":[]}]},"component:line-chart":{"resourceId":"component:line-chart","title":{"zh":"LineChart","en":"LineChart"},"docs":{"zh":"# LineChart\n\nAlias of TrendChart — pure-SVG multi-series line / area chart.\n\n","en":"# LineChart\n\nAlias of TrendChart — pure-SVG multi-series line / area chart.\n\n"},"api":{"name":"LineChart","description":"Alias of TrendChart — pure-SVG multi-series line / area chart.","category":"composite","level":"L2","tags":["chart","line","svg"],"props":{"title":{"type":"string"},"series":{"type":"array","items":{"type":"object","properties":{"name":{"type":"string"},"points":{"type":"array","items":{"type":"number"}},"area":{"type":"boolean"}}}},"width":{"type":"integer","default":480},"height":{"type":"integer","default":160}},"usageScenarios":["Same as TrendChart; use whichever name reads better in the spec"],"constraints":["Identical implementation to TrendChart"]},"distributions":[{"channel":"shadcn","name":"charts","version":"0.16.0","availability":"source"},{"channel":"spec","name":"LineChart","version":"0.16.0","availability":"source"}],"examples":[{"id":"LineChart","title":"LineChart","mode":"spec","language":"json","code":"{\n \"version\": \"2.0\",\n \"pages\": [\n {\n \"id\": \"demo\",\n \"path\": \"/\",\n \"title\": \"LineChart\",\n \"blocks\": [\n {\n \"type\": \"LineChart\",\n \"props\": {\n \"title\": \"Build something useful\",\n \"series\": [\n {\n \"name\": \"resource\",\n \"points\": [\n 2\n ],\n \"area\": false\n }\n ],\n \"width\": 480,\n \"height\": 160\n }\n }\n ]\n }\n ]\n}","dependencies":[]}]},"component:link":{"resourceId":"component:link","title":{"zh":"Link","en":"Link"},"docs":{"zh":"# Link\n\nInline hyperlink. Variants: default (blue underline), muted (gray), button (filled CTA), outline (bordered CTA).\n\n","en":"# Link\n\nInline hyperlink. Variants: default (blue underline), muted (gray), button (filled CTA), outline (bordered CTA).\n\n"},"api":{"name":"Link","description":"Inline hyperlink. Variants: default (blue underline), muted (gray), button (filled CTA), outline (bordered CTA).","category":"primitive","level":"L1","tags":["link"],"props":{"label":{"type":"string"},"href":{"type":"string"},"variant":{"type":"string","enum":["default","muted","button","outline"],"default":"default"},"target":{"type":"string","enum":["_self","_blank"],"default":"_self"},"className":{"type":"string","description":"Extra utility classes appended to the variant chrome."}},"usageScenarios":["Inline 'Read more' link in a paragraph","CTA button-style link in a hero section"],"constraints":[]},"distributions":[{"channel":"shadcn","name":"nav","version":"0.16.0","availability":"source"},{"channel":"spec","name":"Link","version":"0.16.0","availability":"source"}],"examples":[{"id":"Link","title":"Link","mode":"spec","language":"json","code":"{\n \"version\": \"2.0\",\n \"pages\": [\n {\n \"id\": \"demo\",\n \"path\": \"/\",\n \"title\": \"Link\",\n \"blocks\": [\n {\n \"type\": \"Link\",\n \"props\": {\n \"label\": \"UIBot\",\n \"href\": \"#\",\n \"variant\": \"default\",\n \"target\": \"_self\",\n \"className\": \"className\"\n }\n }\n ]\n }\n ]\n}","dependencies":[]}]},"component:list":{"resourceId":"component:list","title":{"zh":"List","en":"List"},"docs":{"zh":"# List\n\nUnordered list of child blocks. Use with divided or compact for different visual densities.\n\n","en":"# List\n\nUnordered list of child blocks. Use with divided or compact for different visual densities.\n\n"},"api":{"name":"List","description":"Unordered list of child blocks. Use with divided or compact for different visual densities.","category":"composite","level":"L2","tags":["list"],"props":{"divided":{"type":"boolean","default":false,"description":"Add hairline dividers between items"},"compact":{"type":"boolean","default":false},"label":{"type":"string","description":"ARIA label"}},"usageScenarios":["Recent activity feed","Search result list"],"constraints":[]},"distributions":[{"channel":"shadcn","name":"data","version":"0.16.0","availability":"source"},{"channel":"spec","name":"List","version":"0.16.0","availability":"source"}],"examples":[{"id":"List","title":"List","mode":"spec","language":"json","code":"{\n \"version\": \"2.0\",\n \"pages\": [\n {\n \"id\": \"demo\",\n \"path\": \"/\",\n \"title\": \"List\",\n \"blocks\": [\n {\n \"type\": \"List\",\n \"props\": {\n \"divided\": false,\n \"compact\": false,\n \"label\": \"UIBot\"\n },\n \"children\": [\n {\n \"type\": \"Paragraph\",\n \"props\": {\n \"text\": \"Compose this with your own content.\"\n }\n }\n ]\n }\n ]\n }\n ]\n}","dependencies":[]}]},"component:logo-cloud":{"resourceId":"component:logo-cloud","title":{"zh":"LogoCloud","en":"LogoCloud"},"docs":{"zh":"# LogoCloud\n\nA single grayscale 'trusted by' logo strip. With no external images each logo is a mono wordmark (initials for long names); the row is dimmed/desaturated and lifts to full foreground on hover. Optional mono `label` above the row.\n\n","en":"# LogoCloud\n\nA single grayscale 'trusted by' logo strip. With no external images each logo is a mono wordmark (initials for long names); the row is dimmed/desaturated and lifts to full foreground on hover. Optional mono `label` above the row.\n\n"},"api":{"name":"LogoCloud","description":"A single grayscale 'trusted by' logo strip. With no external images each logo is a mono wordmark (initials for long names); the row is dimmed/desaturated and lifts to full foreground on hover. Optional mono `label` above the row.","category":"presentation","level":"L1","tags":["logos","social-proof","marketing","brands"],"props":{"label":{"type":"string","description":"Eyebrow above the row, e.g. 'Trusted by teams at'"},"logos":{"type":"array","items":{"type":"object","properties":{"name":{"type":"string"}}},"description":"Array of strings or [{name}] — rendered as mono wordmarks/initials"}},"usageScenarios":["Logo strip directly under the hero for social proof","Press/partner row between sections"],"constraints":["Text-only wordmarks — no external logo images are loaded","Names longer than 14 chars collapse to initials"]},"distributions":[{"channel":"shadcn","name":"marketing","version":"0.16.0","availability":"source"},{"channel":"spec","name":"LogoCloud","version":"0.16.0","availability":"source"}],"examples":[{"id":"LogoCloud","title":"LogoCloud","mode":"spec","language":"json","code":"{\n \"version\": \"2.0\",\n \"pages\": [\n {\n \"id\": \"demo\",\n \"path\": \"/\",\n \"title\": \"LogoCloud\",\n \"blocks\": [\n {\n \"type\": \"LogoCloud\",\n \"props\": {\n \"label\": \"UIBot\",\n \"logos\": [\n {\n \"name\": \"resource\"\n }\n ]\n }\n }\n ]\n }\n ]\n}","dependencies":[]}]},"component:markdown":{"resourceId":"component:markdown","title":{"zh":"Markdown","en":"Markdown"},"docs":{"zh":"# Markdown\n\nRenders Markdown source into HTML. Supports # headings, **bold**, *italic*, `code`, and - lists.\n\n","en":"# Markdown\n\nRenders Markdown source into HTML. Supports # headings, **bold**, *italic*, `code`, and - lists.\n\n"},"api":{"name":"Markdown","description":"Renders Markdown source into HTML. Supports # headings, **bold**, *italic*, `code`, and - lists.","category":"primitive","level":"L1","tags":["text","markdown","content"],"props":{"content":{"type":"string","description":"Markdown source text"}},"usageScenarios":["Documentation sections","Feature descriptions on a landing page","Release notes"],"constraints":["No HTML injection; only Markdown syntax is parsed"]},"distributions":[{"channel":"shadcn","name":"data","version":"0.16.0","availability":"source"},{"channel":"spec","name":"Markdown","version":"0.16.0","availability":"source"}],"examples":[{"id":"Markdown","title":"Markdown","mode":"spec","language":"json","code":"{\n \"version\": \"2.0\",\n \"pages\": [\n {\n \"id\": \"demo\",\n \"path\": \"/\",\n \"title\": \"Markdown\",\n \"blocks\": [\n {\n \"type\": \"Markdown\",\n \"props\": {\n \"content\": \"## UIBot\\nA composable resource library.\"\n }\n }\n ]\n }\n ]\n}","dependencies":[]}]},"component:matrix":{"resourceId":"component:matrix","title":{"zh":"Matrix","en":"Matrix"},"docs":{"zh":"# Matrix\n\nTwo-dimensional intensity grid (heatmap). Cell intensities are 0..1 and map to a color-mix of the primary token via inline style. Alias: Heatmap.\n\n","en":"# Matrix\n\nTwo-dimensional intensity grid (heatmap). Cell intensities are 0..1 and map to a color-mix of the primary token via inline style. Alias: Heatmap.\n\n"},"api":{"name":"Matrix","description":"Two-dimensional intensity grid (heatmap). Cell intensities are 0..1 and map to a color-mix of the primary token via inline style. Alias: Heatmap.","category":"composite","level":"L3","tags":["matrix","heatmap","grid","governance"],"props":{"caption":{"type":"string"},"rows":{"type":"array","items":{"type":"string"},"description":"Row labels"},"cols":{"type":"array","items":{"type":"string"},"description":"Column labels"},"cells":{"type":"array","items":{"type":"array","items":{"type":"number"}},"description":"rows×cols grid of intensities in [0,1]"},"showValues":{"type":"boolean","default":false,"description":"Print the numeric value in each cell"}},"usageScenarios":["Governance capability coverage matrix","Risk heatmap (likelihood × impact)"],"constraints":["Intensities are single-polar 0..1; negative / diverging scales are not supported","cells should be rows.length × cols.length; missing cells render as 0"]},"distributions":[{"channel":"shadcn","name":"data-studio","version":"0.16.0","availability":"source"},{"channel":"spec","name":"Matrix","version":"0.16.0","availability":"source"}],"examples":[{"id":"Matrix","title":"Matrix","mode":"spec","language":"json","code":"{\n \"version\": \"2.0\",\n \"pages\": [\n {\n \"id\": \"demo\",\n \"path\": \"/\",\n \"title\": \"Matrix\",\n \"blocks\": [\n {\n \"type\": \"Matrix\",\n \"props\": {\n \"caption\": \"caption\",\n \"rows\": [\n \"rows\"\n ],\n \"cols\": [\n \"cols\"\n ],\n \"cells\": [\n [\n 2\n ]\n ],\n \"showValues\": false\n }\n }\n ]\n }\n ]\n}","dependencies":[]}]},"component:menu-group":{"resourceId":"component:menu-group","title":{"zh":"MenuGroup","en":"MenuGroup"},"docs":{"zh":"# MenuGroup\n\nLabeled group of MenuLink items inside PageSiderMenu.\n\n","en":"# MenuGroup\n\nLabeled group of MenuLink items inside PageSiderMenu.\n\n"},"api":{"name":"MenuGroup","description":"Labeled group of MenuLink items inside PageSiderMenu.","category":"composite","level":"L2","tags":["sidebar","nav"],"props":{"title":{"type":"string","description":"Group heading shown above the links"}},"usageScenarios":["Platform vs Workspace nav groups","Settings section grouping"],"constraints":["Must be a direct child of PageSiderMenu"]},"distributions":[{"channel":"shadcn","name":"nav","version":"0.16.0","availability":"source"},{"channel":"spec","name":"MenuGroup","version":"0.16.0","availability":"source"}],"examples":[{"id":"MenuGroup","title":"MenuGroup","mode":"spec","language":"json","code":"{\n \"version\": \"2.0\",\n \"pages\": [\n {\n \"id\": \"demo\",\n \"path\": \"/\",\n \"title\": \"MenuGroup\",\n \"blocks\": [\n {\n \"type\": \"MenuGroup\",\n \"props\": {\n \"title\": \"Build something useful\"\n }\n }\n ]\n }\n ]\n}","dependencies":[]}]},"component:menu-link":{"resourceId":"component:menu-link","title":{"zh":"MenuLink","en":"MenuLink"},"docs":{"zh":"# MenuLink\n\nSingle navigation item inside a PageSiderMenu. Renders as an anchor with optional icon and badge.\n\n","en":"# MenuLink\n\nSingle navigation item inside a PageSiderMenu. Renders as an anchor with optional icon and badge.\n\n"},"api":{"name":"MenuLink","description":"Single navigation item inside a PageSiderMenu. Renders as an anchor with optional icon and badge.","category":"primitive","level":"L1","tags":["nav","link"],"props":{"label":{"type":"string"},"href":{"type":"string"},"icon":{"type":"string","description":"Emoji or Unicode glyph"},"badge":{"type":"string","description":"Count or label shown on the right"},"active":{"type":"boolean","default":false}},"usageScenarios":["Dashboard menu item","Settings section link with unread badge"],"constraints":["Must be a direct child of PageSiderMenu or MenuGroup"]},"distributions":[{"channel":"shadcn","name":"nav","version":"0.16.0","availability":"source"},{"channel":"spec","name":"MenuLink","version":"0.16.0","availability":"source"}],"examples":[{"id":"MenuLink","title":"MenuLink","mode":"spec","language":"json","code":"{\n \"version\": \"2.0\",\n \"pages\": [\n {\n \"id\": \"demo\",\n \"path\": \"/\",\n \"title\": \"MenuLink\",\n \"blocks\": [\n {\n \"type\": \"MenuLink\",\n \"props\": {\n \"label\": \"UIBot\",\n \"href\": \"#\",\n \"icon\": \"icon\",\n \"badge\": \"badge\",\n \"active\": false\n }\n }\n ]\n }\n ]\n}","dependencies":[]}]},"component:metric-card":{"resourceId":"component:metric-card","title":{"zh":"MetricCard","en":"MetricCard"},"docs":{"zh":"# MetricCard\n\nKPI metric card with an inline pure-SVG sparkline: a mono label, a big value, a trend delta pill (up = amber, down = rose) and a sparkline drawn from a `points` series — no chart dependency. A `.mkt-card` with hover lift; `tone` selects the accent. Designed to sit in a Grid/StatGrid for a metrics row.\n\n","en":"# MetricCard\n\nKPI metric card with an inline pure-SVG sparkline: a mono label, a big value, a trend delta pill (up = amber, down = rose) and a sparkline drawn from a `points` series — no chart dependency. A `.mkt-card` with hover lift; `tone` selects the accent. Designed to sit in a Grid/StatGrid for a metrics row.\n\n"},"api":{"name":"MetricCard","description":"KPI metric card with an inline pure-SVG sparkline: a mono label, a big value, a trend delta pill (up = amber, down = rose) and a sparkline drawn from a `points` series — no chart dependency. A `.mkt-card` with hover lift; `tone` selects the accent. Designed to sit in a Grid/StatGrid for a metrics row.","category":"presentation","level":"L2","tags":["metric","kpi","sparkline","card","dashboard"],"props":{"label":{"type":"string","description":"Mono uppercase metric label"},"value":{"type":"string","description":"Big display value"},"delta":{"type":"string","description":"Trend delta pill, e.g. '+8.2%'"},"trend":{"type":"string","enum":["up","down"],"default":"up","description":"Delta direction: up (amber) or down (rose)"},"tone":{"type":"string","enum":["0","1","2","3"],"default":"0","description":"Accent-hue index for the sparkline stroke/fill"},"points":{"type":"array","items":{"type":"number"},"description":"Numeric series for the inline sparkline (auto-scaled)"}},"usageScenarios":["Four-up KPI metrics row inside a Grid (revenue / users / latency / churn)","Single highlighted metric with a trend sparkline"],"constraints":["points are auto-scaled to the card's min/max; keep series small (~<60 points)","value/delta are display strings; the sparkline is hidden when points is empty"]},"distributions":[{"channel":"shadcn","name":"sections","version":"0.16.0","availability":"source"},{"channel":"spec","name":"MetricCard","version":"0.16.0","availability":"source"}],"examples":[{"id":"MetricCard","title":"MetricCard","mode":"spec","language":"json","code":"{\n \"version\": \"2.0\",\n \"pages\": [\n {\n \"id\": \"demo\",\n \"path\": \"/\",\n \"title\": \"MetricCard\",\n \"blocks\": [\n {\n \"type\": \"MetricCard\",\n \"props\": {\n \"label\": \"UIBot\",\n \"delta\": \"delta\",\n \"trend\": \"up\",\n \"tone\": \"0\",\n \"points\": [\n 2\n ]\n }\n }\n ]\n }\n ]\n}","dependencies":[]}]},"component:modal":{"resourceId":"component:modal","title":{"zh":"Modal","en":"Modal"},"docs":{"zh":"# Modal\n\nCentered overlay dialog for focused tasks or confirmations. Rendered inline in preview.\n\n","en":"# Modal\n\nCentered overlay dialog for focused tasks or confirmations. Rendered inline in preview.\n\n"},"api":{"name":"Modal","description":"Centered overlay dialog for focused tasks or confirmations. Rendered inline in preview.","category":"composite","level":"L2","tags":["modal","overlay"],"events":{"onClose":{"description":"Close requested; set controlled open false"}},"props":{"open":{"type":"boolean"},"pending":{"type":"boolean"},"title":{"type":"string"},"description":{"type":"string"}},"usageScenarios":["Create / edit form dialog","Image preview lightbox"],"constraints":["Modal is always visible in static preview — drive open/close state from actions in production"]},"distributions":[{"channel":"shadcn","name":"layout","version":"0.16.0","availability":"source"},{"channel":"spec","name":"Modal","version":"0.16.0","availability":"source"}],"examples":[{"id":"Modal","title":"Modal","mode":"spec","language":"json","code":"{\n \"version\": \"2.0\",\n \"pages\": [\n {\n \"id\": \"demo\",\n \"path\": \"/\",\n \"title\": \"Modal\",\n \"blocks\": [\n {\n \"type\": \"Modal\",\n \"props\": {\n \"open\": false,\n \"title\": \"Build something useful\",\n \"description\": \"Explore the source and make it yours.\"\n }\n }\n ]\n }\n ]\n}","dependencies":[]}]},"component:newsletter":{"resourceId":"component:newsletter","title":{"zh":"Newsletter","en":"Newsletter"},"docs":{"zh":"# Newsletter\n\nEmail-capture band: serif title + supporting line, then a token-styled email input beside a CTA anchor. Presentational — the input is decorative and the CTA navigates via {label, href}; wire real submission at the host.\n\n","en":"# Newsletter\n\nEmail-capture band: serif title + supporting line, then a token-styled email input beside a CTA anchor. Presentational — the input is decorative and the CTA navigates via {label, href}; wire real submission at the host.\n\n"},"api":{"name":"Newsletter","description":"Email-capture band: serif title + supporting line, then a token-styled email input beside a CTA anchor. Presentational — the input is decorative and the CTA navigates via {label, href}; wire real submission at the host.","category":"presentation","level":"L2","tags":["newsletter","subscribe","marketing","email"],"props":{"title":{"type":"string","description":"Serif headline"},"subtitle":{"type":"string","description":"Supporting line under the title"},"placeholder":{"type":"string","default":"you@example.com","description":"Email input placeholder"},"cta":{"type":"object","properties":{"label":{"type":"string"},"href":{"type":"string"}},"description":"{label, href} — solid amber submit button (defaults to 'Subscribe' / '#')"}},"usageScenarios":["End-of-page 'Stay in the loop' email signup","Docs/blog newsletter band between content sections"],"constraints":["Input is decorative; the form action points at cta.href — handle real submission upstream","Single email field + single CTA by design"]},"distributions":[{"channel":"shadcn","name":"marketing","version":"0.16.0","availability":"source"},{"channel":"spec","name":"Newsletter","version":"0.16.0","availability":"source"}],"examples":[{"id":"Newsletter","title":"Newsletter","mode":"spec","language":"json","code":"{\n \"version\": \"2.0\",\n \"pages\": [\n {\n \"id\": \"demo\",\n \"path\": \"/\",\n \"title\": \"Newsletter\",\n \"blocks\": [\n {\n \"type\": \"Newsletter\",\n \"props\": {\n \"title\": \"Build something useful\",\n \"subtitle\": \"subtitle\",\n \"placeholder\": \"you@example.com\",\n \"cta\": {\n \"label\": \"UIBot\",\n \"href\": \"#\"\n }\n }\n }\n ]\n }\n ]\n}","dependencies":[]}]},"component:page-layout":{"resourceId":"component:page-layout","title":{"zh":"PageLayout","en":"PageLayout"},"docs":{"zh":"# PageLayout\n\nApplication scaffold with header, navigation, scrollable content and footer.\n\n","en":"# PageLayout\n\nApplication scaffold with header, navigation, scrollable content and footer.\n\n"},"api":{"name":"PageLayout","description":"Application scaffold with header, navigation, scrollable content and footer.","category":"composite","level":"L2","tags":["page","layout"],"props":{"appearance":{"type":"string","enum":["default","admin","standalone"]},"layout":{"type":"object","properties":{"navigation":{"type":"string","enum":["sidebar","navbar"]},"container":{"type":"string","enum":["default","fluid","boxed"]},"navigationStyle":{"type":"string","enum":["attached","floating"]},"offcanvas":{"type":"string","enum":["attached","floating"]},"sidebar":{"type":"string","enum":["expanded","folded","hover"]}}},"routes":{"type":"array"},"headerLinks":{"type":"array"},"accountLinks":{"type":"array"},"tokens":{"type":"object","description":"Local CSS tokens."},"theme":{"type":"string"},"font":{"type":"string"},"direction":{"type":"string"},"initials":{"type":"string"},"title":{"type":"string","description":"Header title."},"variant":{"type":"string","enum":["sidebar","inset","floating"],"default":"sidebar"},"collapsible":{"type":"string","enum":["none","icon","offcanvas"],"default":"none"}},"events":{"onThemeChange":{"description":"Selected theme: event.value."}},"slots":{"headerActions":{"description":"Header action controls."},"sidebar":{"description":"Navigation content."},"footer":{"description":"Footer content."}},"usageScenarios":["Admin dashboard shell","Settings page with left navigation","Landing page with header and main content"],"constraints":["Use at most one PageLayout per page","Do not nest PageLayout inside another PageLayout"]},"distributions":[{"channel":"shadcn","name":"layout","version":"0.16.0","availability":"source"},{"channel":"spec","name":"PageLayout","version":"0.16.0","availability":"source"}],"examples":[{"id":"PageLayout","title":"PageLayout","mode":"spec","language":"json","code":"{\n \"version\": \"2.0\",\n \"pages\": [\n {\n \"id\": \"demo\",\n \"path\": \"/\",\n \"title\": \"PageLayout\",\n \"blocks\": [\n {\n \"type\": \"PageLayout\",\n \"props\": {\n \"appearance\": \"default\",\n \"layout\": {\n \"navigation\": \"sidebar\",\n \"container\": \"default\",\n \"navigationStyle\": \"attached\",\n \"offcanvas\": \"attached\",\n \"sidebar\": \"expanded\"\n },\n \"routes\": [],\n \"headerLinks\": [],\n \"accountLinks\": [],\n \"tokens\": {},\n \"theme\": \"theme\",\n \"font\": \"font\",\n \"direction\": \"direction\",\n \"initials\": \"initials\",\n \"title\": \"Build something useful\",\n \"variant\": \"sidebar\",\n \"collapsible\": \"none\"\n },\n \"children\": [\n {\n \"type\": \"Paragraph\",\n \"props\": {\n \"text\": \"Compose this with your own content.\"\n }\n }\n ]\n }\n ]\n }\n ]\n}","dependencies":[]}]},"component:page-sider-menu":{"resourceId":"component:page-sider-menu","title":{"zh":"PageSiderMenu","en":"PageSiderMenu"},"docs":{"zh":"# PageSiderMenu\n\nVertical sidebar navigation. Place MenuLink or MenuGroup blocks as children. Usually placed in the PageLayout sidebar slot.\n\n","en":"# PageSiderMenu\n\nVertical sidebar navigation. Place MenuLink or MenuGroup blocks as children. Usually placed in the PageLayout sidebar slot.\n\n"},"api":{"name":"PageSiderMenu","description":"Vertical sidebar navigation. Place MenuLink or MenuGroup blocks as children. Usually placed in the PageLayout sidebar slot.","category":"composite","level":"L2","tags":["sidebar","nav"],"props":{"title":{"type":"string","description":"Section heading above menu items"}},"slots":{"header":{"description":"Workspace switcher or brand above the menu list"},"footer":{"description":"User card or secondary links below the menu list"}},"usageScenarios":["Admin left nav (Dashboard, Users, Settings)","Docs section navigation"],"constraints":["Always use as a sibling inside PageLayout sidebar slot; do not place in main content area"]},"distributions":[{"channel":"shadcn","name":"nav","version":"0.16.0","availability":"source"},{"channel":"spec","name":"PageSiderMenu","version":"0.16.0","availability":"source"}],"examples":[{"id":"PageSiderMenu","title":"PageSiderMenu","mode":"spec","language":"json","code":"{\n \"version\": \"2.0\",\n \"pages\": [\n {\n \"id\": \"demo\",\n \"path\": \"/\",\n \"title\": \"PageSiderMenu\",\n \"blocks\": [\n {\n \"type\": \"PageSiderMenu\",\n \"props\": {\n \"title\": \"Build something useful\"\n }\n }\n ]\n }\n ]\n}","dependencies":[]}]},"component:panel-header":{"resourceId":"component:panel-header","title":{"zh":"PanelHeader","en":"PanelHeader"},"docs":{"zh":"# PanelHeader\n\nSection title with optional eyebrow, description and an `actions` slot for buttons or links.\n\n","en":"# PanelHeader\n\nSection title with optional eyebrow, description and an `actions` slot for buttons or links.\n\n"},"api":{"name":"PanelHeader","description":"Section title with optional eyebrow, description and an `actions` slot for buttons or links.","category":"primitive","level":"L1","tags":["header","section","title"],"props":{"eyebrow":{"type":"string"},"title":{"type":"string"},"description":{"type":"string"}},"slots":{"actions":{"description":"Buttons or links aligned to the right of the title"}},"usageScenarios":["Title and helper text above a table","Panel header with a Refresh button"],"constraints":["Use Heading for in-flow headings that need an explicit level"]},"distributions":[{"channel":"shadcn","name":"primitives","version":"0.16.0","availability":"source"},{"channel":"spec","name":"PanelHeader","version":"0.16.0","availability":"source"}],"examples":[{"id":"PanelHeader","title":"PanelHeader","mode":"spec","language":"json","code":"{\n \"version\": \"2.0\",\n \"pages\": [\n {\n \"id\": \"demo\",\n \"path\": \"/\",\n \"title\": \"PanelHeader\",\n \"blocks\": [\n {\n \"type\": \"PanelHeader\",\n \"props\": {\n \"eyebrow\": \"eyebrow\",\n \"title\": \"Build something useful\",\n \"description\": \"Explore the source and make it yours.\"\n }\n }\n ]\n }\n ]\n}","dependencies":[]}]},"component:paragraph":{"resourceId":"component:paragraph","title":{"zh":"Paragraph","en":"Paragraph"},"docs":{"zh":"# Paragraph\n\nBody text block. Use size='lg' for lead copy, size='sm' for captions.\n\n","en":"# Paragraph\n\nBody text block. Use size='lg' for lead copy, size='sm' for captions.\n\n"},"api":{"name":"Paragraph","description":"Body text block. Use size='lg' for lead copy, size='sm' for captions.","category":"primitive","level":"L1","tags":["text","typography"],"props":{"className":{"type":"string","description":"Additional Tailwind utility classes"},"text":{"type":"string"},"size":{"type":"string","enum":["sm","md","lg"],"default":"md"},"muted":{"type":"boolean","default":false}},"usageScenarios":["Feature description below a Heading","Helper caption below a form field"],"constraints":[]},"distributions":[{"channel":"shadcn","name":"data","version":"0.16.0","availability":"source"},{"channel":"spec","name":"Paragraph","version":"0.16.0","availability":"source"}],"examples":[{"id":"Paragraph","title":"Paragraph","mode":"spec","language":"json","code":"{\n \"version\": \"2.0\",\n \"pages\": [\n {\n \"id\": \"demo\",\n \"path\": \"/\",\n \"title\": \"Paragraph\",\n \"blocks\": [\n {\n \"type\": \"Paragraph\",\n \"props\": {\n \"className\": \"className\",\n \"text\": \"A real component, ready to customize.\",\n \"size\": \"md\",\n \"muted\": false\n }\n }\n ]\n }\n ]\n}","dependencies":[]}]},"component:pricing-table":{"resourceId":"component:pricing-table","title":{"zh":"PricingTable","en":"PricingTable"},"docs":{"zh":"# PricingTable\n\nResponsive 2–4 column pricing grid of hairline cards. The `highlighted` plan gets an amber border + 'Popular' badge + solid amber CTA; others use an outline CTA. Features list with amber check glyphs. CTAs are {label, href} anchors.\n\n","en":"# PricingTable\n\nResponsive 2–4 column pricing grid of hairline cards. The `highlighted` plan gets an amber border + 'Popular' badge + solid amber CTA; others use an outline CTA. Features list with amber check glyphs. CTAs are {label, href} anchors.\n\n"},"api":{"name":"PricingTable","description":"Responsive 2–4 column pricing grid of hairline cards. The `highlighted` plan gets an amber border + 'Popular' badge + solid amber CTA; others use an outline CTA. Features list with amber check glyphs. CTAs are {label, href} anchors.","category":"presentation","level":"L3","tags":["pricing","plans","marketing","conversion"],"props":{"plans":{"type":"array","items":{"type":"object","properties":{"name":{"type":"string"},"price":{"type":"string","description":"Display price, e.g. '$29' or 'Free'"},"period":{"type":"string","description":"Billing period suffix, e.g. '/mo'"},"description":{"type":"string","description":"Short plan summary line"},"features":{"type":"array","items":{"type":"string"},"description":"Bullet feature list"},"cta":{"type":"object","properties":{"label":{"type":"string"},"href":{"type":"string"}},"description":"{label, href} — solid amber when highlighted, else outline"},"highlighted":{"type":"boolean","default":false,"description":"Mark the featured/popular plan"}}},"description":"[{name, price, period?, description?, features[], cta{label,href}, highlighted?}]"},"billingNote":{"type":"string","description":"Mono note under the grid, e.g. 'Billed annually · cancel anytime'"}},"usageScenarios":["Three-tier SaaS pricing section (Starter / Pro / Enterprise)","Two-up free-vs-paid comparison with a highlighted paid plan"],"constraints":["Column count is derived from plans.length, clamped to 2–4","CTA props are {label, href}; href defaults to '#'","Mark at most one plan highlighted for a clear focal point"]},"distributions":[{"channel":"shadcn","name":"marketing","version":"0.16.0","availability":"source"},{"channel":"spec","name":"PricingTable","version":"0.16.0","availability":"source"}],"examples":[{"id":"PricingTable","title":"PricingTable","mode":"spec","language":"json","code":"{\n \"version\": \"2.0\",\n \"pages\": [\n {\n \"id\": \"demo\",\n \"path\": \"/\",\n \"title\": \"PricingTable\",\n \"blocks\": [\n {\n \"type\": \"PricingTable\",\n \"props\": {\n \"plans\": [\n {\n \"name\": \"resource\",\n \"price\": \"128\",\n \"period\": \"period\",\n \"description\": \"Explore the source and make it yours.\",\n \"features\": [\n \"features\"\n ],\n \"cta\": {\n \"label\": \"UIBot\",\n \"href\": \"#\"\n },\n \"highlighted\": false\n }\n ],\n \"billingNote\": \"billingNote\"\n }\n }\n ]\n }\n ]\n}","dependencies":[]}]},"component:roadmap":{"resourceId":"component:roadmap","title":{"zh":"Roadmap","en":"Roadmap"},"docs":{"zh":"# Roadmap\n\nProduct roadmap / milestone timeline. A vertical rail with one node per milestone; node state drives the dot — a filled amber check for 'done', an amber ring + rocket for 'active', an outline flag for 'planned'. A marketing roadmap (distinct from the operational TimelineList activity log).\n\n","en":"# Roadmap\n\nProduct roadmap / milestone timeline. A vertical rail with one node per milestone; node state drives the dot — a filled amber check for 'done', an amber ring + rocket for 'active', an outline flag for 'planned'. A marketing roadmap (distinct from the operational TimelineList activity log).\n\n"},"api":{"name":"Roadmap","description":"Product roadmap / milestone timeline. A vertical rail with one node per milestone; node state drives the dot — a filled amber check for 'done', an amber ring + rocket for 'active', an outline flag for 'planned'. A marketing roadmap (distinct from the operational TimelineList activity log).","category":"presentation","level":"L2","tags":["roadmap","milestones","timeline","marketing"],"props":{"milestones":{"type":"array","items":{"type":"object","properties":{"date":{"type":"string","description":"Quarter/date label, e.g. 'Q3 2026'"},"title":{"type":"string"},"desc":{"type":"string"},"state":{"type":"string","enum":["done","active","planned"]}}},"description":"[{date?, title, desc?, state?}] in sequence order"}},"usageScenarios":["Public product roadmap section (shipped / in progress / planned)","Launch sequence with dated milestones"],"constraints":["state defaults to 'planned' when omitted or unrecognised","milestones with an empty title are dropped"]},"distributions":[{"channel":"shadcn","name":"sections","version":"0.16.0","availability":"source"},{"channel":"spec","name":"Roadmap","version":"0.16.0","availability":"source"}],"examples":[{"id":"Roadmap","title":"Roadmap","mode":"spec","language":"json","code":"{\n \"version\": \"2.0\",\n \"pages\": [\n {\n \"id\": \"demo\",\n \"path\": \"/\",\n \"title\": \"Roadmap\",\n \"blocks\": [\n {\n \"type\": \"Roadmap\",\n \"props\": {\n \"milestones\": [\n {\n \"date\": \"date\",\n \"title\": \"Build something useful\",\n \"desc\": \"desc\",\n \"state\": \"done\"\n }\n ]\n }\n }\n ]\n }\n ]\n}","dependencies":[]}]},"component:searchable-table":{"resourceId":"component:searchable-table","title":{"zh":"SearchableTable","en":"SearchableTable"},"docs":{"zh":"# SearchableTable\n\nTable with a built-in search box. Typing dispatches SetState onto searchKey and filters the resolved rows (case-insensitive substring across all columns).\n\n","en":"# SearchableTable\n\nTable with a built-in search box. Typing dispatches SetState onto searchKey and filters the resolved rows (case-insensitive substring across all columns).\n\n"},"api":{"name":"SearchableTable","description":"Table with a built-in search box. Typing dispatches SetState onto searchKey and filters the resolved rows (case-insensitive substring across all columns).","category":"feature","level":"L3","tags":["table","search","interactive","data"],"props":{"columns":{"type":"array","items":{"type":"object","properties":{"key":{"type":"string"},"label":{"type":"string"},"align":{"type":"string","enum":["left","center","right"]}}}},"rows":{"type":"array","items":{"type":"object"},"description":"Row objects keyed to column.key"},"searchKey":{"type":"string","default":"search","description":"State path the search query writes to"},"placeholder":{"type":"string","default":"Search…"},"emptyText":{"type":"string","default":"No matching rows","description":"Copy shown when the filtered row set is empty"}},"usageScenarios":["Searchable plugins / catalog list in studio","User management table with live filtering"],"constraints":["Requires a live host (dispatch) for the search box to update host state; client-side filtering still works on already-resolved rows"]},"distributions":[{"channel":"shadcn","name":"interactive","version":"0.16.0","availability":"source"},{"channel":"spec","name":"SearchableTable","version":"0.16.0","availability":"source"}],"examples":[{"id":"SearchableTable","title":"SearchableTable","mode":"spec","language":"json","code":"{\n \"version\": \"2.0\",\n \"pages\": [\n {\n \"id\": \"demo\",\n \"path\": \"/\",\n \"title\": \"SearchableTable\",\n \"blocks\": [\n {\n \"type\": \"SearchableTable\",\n \"props\": {\n \"columns\": [\n {\n \"key\": \"key\",\n \"label\": \"UIBot\",\n \"align\": \"left\"\n }\n ],\n \"rows\": [\n {}\n ],\n \"searchKey\": \"search\",\n \"placeholder\": \"Search…\",\n \"emptyText\": \"No matching rows\"\n }\n }\n ]\n }\n ]\n}","dependencies":[]}]},"component:section-header":{"resourceId":"component:section-header","title":{"zh":"SectionHeader","en":"SectionHeader"},"docs":{"zh":"# SectionHeader\n\nEditorial section header: oversized mono section number (e.g. '01'), mono eyebrow, serif title, and a lead paragraph. Sets the rhythm between page sections.\n\n","en":"# SectionHeader\n\nEditorial section header: oversized mono section number (e.g. '01'), mono eyebrow, serif title, and a lead paragraph. Sets the rhythm between page sections.\n\n"},"api":{"name":"SectionHeader","description":"Editorial section header: oversized mono section number (e.g. '01'), mono eyebrow, serif title, and a lead paragraph. Sets the rhythm between page sections.","category":"presentation","level":"L2","tags":["section","header","marketing","editorial"],"props":{"sectionNo":{"type":"string","description":"Oversized mono numeral, e.g. '01'"},"eyebrow":{"type":"string","description":"Mono uppercase kicker"},"title":{"type":"string","description":"Serif section title"},"lead":{"type":"string","description":"Lead / intro paragraph"}},"usageScenarios":["Numbered section dividers on a landing page (01 Features, 02 How it works)","Editorial chapter header above a FeatureGrid"],"constraints":["sectionNo is display text; any string works (e.g. '01', 'A', '§1')"]},"distributions":[{"channel":"shadcn","name":"presentation","version":"0.16.0","availability":"source"},{"channel":"spec","name":"SectionHeader","version":"0.16.0","availability":"source"}],"examples":[{"id":"SectionHeader","title":"SectionHeader","mode":"spec","language":"json","code":"{\n \"version\": \"2.0\",\n \"pages\": [\n {\n \"id\": \"demo\",\n \"path\": \"/\",\n \"title\": \"SectionHeader\",\n \"blocks\": [\n {\n \"type\": \"SectionHeader\",\n \"props\": {\n \"sectionNo\": \"sectionNo\",\n \"eyebrow\": \"eyebrow\",\n \"title\": \"Build something useful\",\n \"lead\": \"lead\"\n }\n }\n ]\n }\n ]\n}","dependencies":[]}]},"component:skeleton":{"resourceId":"component:skeleton","title":{"zh":"Skeleton","en":"Skeleton"},"docs":{"zh":"# Skeleton\n\nAnimated loading placeholder. Three presets: lines (text), card (avatar + lines), table (header + rows).\n\n","en":"# Skeleton\n\nAnimated loading placeholder. Three presets: lines (text), card (avatar + lines), table (header + rows).\n\n"},"api":{"name":"Skeleton","description":"Animated loading placeholder. Three presets: lines (text), card (avatar + lines), table (header + rows).","category":"primitive","level":"L1","tags":["skeleton","loading","placeholder"],"props":{"lines":{"type":"integer","default":3,"description":"Number of skeleton rows (for lines and table types)"},"type":{"type":"string","enum":["lines","card","table"],"default":"lines"}},"usageScenarios":["Loading state while fetching table data","Card placeholder during profile load"],"constraints":["Replace with real content once data loads; do not keep Skeleton visible indefinitely"]},"distributions":[{"channel":"shadcn","name":"feedback","version":"0.16.0","availability":"source"},{"channel":"spec","name":"Skeleton","version":"0.16.0","availability":"source"}],"examples":[{"id":"Skeleton","title":"Skeleton","mode":"spec","language":"json","code":"{\n \"version\": \"2.0\",\n \"pages\": [\n {\n \"id\": \"demo\",\n \"path\": \"/\",\n \"title\": \"Skeleton\",\n \"blocks\": [\n {\n \"type\": \"Skeleton\",\n \"props\": {\n \"lines\": 3,\n \"type\": \"lines\"\n }\n }\n ]\n }\n ]\n}","dependencies":[]}]},"component:split-master-detail":{"resourceId":"component:split-master-detail","title":{"zh":"SplitMasterDetail","en":"SplitMasterDetail"},"docs":{"zh":"# SplitMasterDetail\n\nMaster/detail split: a selectable left list and a right detail pane. Clicking an item dispatches SetState onto selectKey; the detail slot (or children) renders the right pane.\n\n","en":"# SplitMasterDetail\n\nMaster/detail split: a selectable left list and a right detail pane. Clicking an item dispatches SetState onto selectKey; the detail slot (or children) renders the right pane.\n\n"},"api":{"name":"SplitMasterDetail","description":"Master/detail split: a selectable left list and a right detail pane. Clicking an item dispatches SetState onto selectKey; the detail slot (or children) renders the right pane.","category":"feature","level":"L3","tags":["split","master-detail","interactive","layout"],"props":{"items":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string"},"title":{"type":"string"},"subtitle":{"type":"string"}}},"description":"[{id, title, subtitle?}] left-list entries"},"selectKey":{"type":"string","default":"selectedId","description":"State path the selected id writes to"}},"slots":{"detail":{"description":"Right-pane content; usually host-composed from the selected item via _find"}},"usageScenarios":["Skills list → skill detail","Agents directory → agent inspector"],"constraints":["Selection defaults to the first item's id until the host updates selectKey"]},"distributions":[{"channel":"shadcn","name":"interactive","version":"0.16.0","availability":"source"},{"channel":"spec","name":"SplitMasterDetail","version":"0.16.0","availability":"source"}],"examples":[{"id":"SplitMasterDetail","title":"SplitMasterDetail","mode":"spec","language":"json","code":"{\n \"version\": \"2.0\",\n \"pages\": [\n {\n \"id\": \"demo\",\n \"path\": \"/\",\n \"title\": \"SplitMasterDetail\",\n \"blocks\": [\n {\n \"type\": \"SplitMasterDetail\",\n \"props\": {\n \"items\": [\n {\n \"id\": \"id\",\n \"title\": \"Build something useful\",\n \"subtitle\": \"subtitle\"\n }\n ],\n \"selectKey\": \"selectedId\"\n }\n }\n ]\n }\n ]\n}","dependencies":[]}]},"component:stat":{"resourceId":"component:stat","title":{"zh":"Stat","en":"Stat"},"docs":{"zh":"# Stat\n\nKPI metric card: large value, label, optional trend arrow, and change string.\n\n","en":"# Stat\n\nKPI metric card: large value, label, optional trend arrow, and change string.\n\n"},"api":{"name":"Stat","description":"KPI metric card: large value, label, optional trend arrow, and change string.","category":"primitive","level":"L2","tags":["stat","kpi","metric"],"props":{"label":{"type":"string"},"value":{"type":"string","description":"Main metric value, e.g. 1,234 or $12k"},"change":{"type":"string","description":"Change label, e.g. \"+12% vs last month\""},"trend":{"type":"string","enum":["up","down"]},"description":{"type":"string","description":"Secondary helper text"}},"usageScenarios":["Dashboard KPI row (4 Stat blocks side-by-side in a Box[direction=row])","Single revenue metric in a Card"],"constraints":["Do not put detailed charts inside a Stat; use Stat only for a single number + context"]},"distributions":[{"channel":"shadcn","name":"data","version":"0.16.0","availability":"source"},{"channel":"spec","name":"Stat","version":"0.16.0","availability":"source"}],"examples":[{"id":"Stat","title":"Stat","mode":"spec","language":"json","code":"{\n \"version\": \"2.0\",\n \"pages\": [\n {\n \"id\": \"demo\",\n \"path\": \"/\",\n \"title\": \"Stat\",\n \"blocks\": [\n {\n \"type\": \"Stat\",\n \"props\": {\n \"label\": \"UIBot\",\n \"change\": \"change\",\n \"trend\": \"up\",\n \"description\": \"Explore the source and make it yours.\"\n }\n }\n ]\n }\n ]\n}","dependencies":[]}]},"component:stat-band":{"resourceId":"component:stat-band","title":{"zh":"StatBand","en":"StatBand"},"docs":{"zh":"# StatBand\n\nBig-number statistics band: oversized serif values with mono labels, divided by hairline rules. `tone` switches the surface — plain, muted (soft card panel) or inverse (ink-black panel with warm amber→rose glow + grain).\n\n","en":"# StatBand\n\nBig-number statistics band: oversized serif values with mono labels, divided by hairline rules. `tone` switches the surface — plain, muted (soft card panel) or inverse (ink-black panel with warm amber→rose glow + grain).\n\n"},"api":{"name":"StatBand","description":"Big-number statistics band: oversized serif values with mono labels, divided by hairline rules. `tone` switches the surface — plain, muted (soft card panel) or inverse (ink-black panel with warm amber→rose glow + grain).","category":"presentation","level":"L2","tags":["stats","metrics","marketing","band"],"props":{"stats":{"type":"array","items":{"type":"object","properties":{"value":{"type":"string","description":"Big display value, e.g. '99.9%' or '12k+'"},"label":{"type":"string"},"sub":{"type":"string","description":"Optional sub-label under the metric"}}},"description":"[{value, label, sub?}]"},"tone":{"type":"string","enum":["plain","muted","inverse"],"default":"plain","description":"Surface treatment: plain (transparent) · muted (card panel) · inverse (ink-black glow panel)"}},"usageScenarios":["Four-up headline metrics band (uptime / users / latency / saved)","Inverse-tone impact band between marketing sections"],"constraints":["Column count derives from stats.length, clamped to 1–4","Values are display strings; pre-format numbers/units yourself"]},"distributions":[{"channel":"shadcn","name":"marketing","version":"0.16.0","availability":"source"},{"channel":"spec","name":"StatBand","version":"0.16.0","availability":"source"}],"examples":[{"id":"StatBand","title":"StatBand","mode":"spec","language":"json","code":"{\n \"version\": \"2.0\",\n \"pages\": [\n {\n \"id\": \"demo\",\n \"path\": \"/\",\n \"title\": \"StatBand\",\n \"blocks\": [\n {\n \"type\": \"StatBand\",\n \"props\": {\n \"stats\": [\n {\n \"value\": \"128\",\n \"label\": \"UIBot\",\n \"sub\": \"sub\"\n }\n ],\n \"tone\": \"plain\"\n }\n }\n ]\n }\n ]\n}","dependencies":[]}]},"component:stat-card":{"resourceId":"component:stat-card","title":{"zh":"StatCard","en":"StatCard"},"docs":{"zh":"# StatCard\n\nMetric with label, value and supporting text\n\n","en":"# StatCard\n\nMetric with label, value and supporting text\n\n"},"api":{"name":"StatCard","tags":["metric"],"description":"Metric with label, value and supporting text","category":"composite","level":"L2","props":{"label":{"type":"string"},"value":{"type":"string"},"description":{"type":"string"},"icon":{"type":"string"}},"events":{}},"distributions":[{"channel":"shadcn","name":"dashboard","version":"0.16.0","availability":"source"},{"channel":"spec","name":"StatCard","version":"0.16.0","availability":"source"}],"examples":[{"id":"StatCard","title":"StatCard","mode":"spec","language":"json","code":"{\n \"version\": \"2.0\",\n \"pages\": [\n {\n \"id\": \"demo\",\n \"path\": \"/\",\n \"title\": \"StatCard\",\n \"blocks\": [\n {\n \"type\": \"StatCard\",\n \"props\": {\n \"label\": \"UIBot\",\n \"description\": \"Explore the source and make it yours.\",\n \"icon\": \"icon\"\n }\n }\n ]\n }\n ]\n}","dependencies":[]}]},"component:stat-grid":{"resourceId":"component:stat-grid","title":{"zh":"StatGrid","en":"StatGrid"},"docs":{"zh":"# StatGrid\n\nResponsive grid of KPI cards. Prefers child Stat blocks; falls back to inline rendering of an items array when there are no children.\n\n","en":"# StatGrid\n\nResponsive grid of KPI cards. Prefers child Stat blocks; falls back to inline rendering of an items array when there are no children.\n\n"},"api":{"name":"StatGrid","description":"Responsive grid of KPI cards. Prefers child Stat blocks; falls back to inline rendering of an items array when there are no children.","category":"composite","level":"L2","tags":["stat","kpi","dashboard","grid"],"props":{"cols":{"type":"string","enum":["1","2","3","4","auto"],"default":"auto"},"items":{"type":"array","items":{"type":"object","properties":{"label":{"type":"string"},"value":{"type":"string"},"change":{"type":"string"},"trend":{"type":"string","enum":["up","down"]},"description":{"type":"string"}}},"description":"Inline KPI items used when no Stat children are provided"}},"usageScenarios":["Overview dashboard KPI row","Operations metrics summary above a table"],"constraints":["Provide either Stat children or items, not both — children win when present"]},"distributions":[{"channel":"shadcn","name":"data-studio","version":"0.16.0","availability":"source"},{"channel":"spec","name":"StatGrid","version":"0.16.0","availability":"source"}],"examples":[{"id":"StatGrid","title":"StatGrid","mode":"spec","language":"json","code":"{\n \"version\": \"2.0\",\n \"pages\": [\n {\n \"id\": \"demo\",\n \"path\": \"/\",\n \"title\": \"StatGrid\",\n \"blocks\": [\n {\n \"type\": \"StatGrid\",\n \"props\": {\n \"cols\": \"auto\",\n \"items\": [\n {\n \"label\": \"UIBot\",\n \"value\": \"128\",\n \"change\": \"change\",\n \"trend\": \"up\",\n \"description\": \"Explore the source and make it yours.\"\n }\n ]\n }\n }\n ]\n }\n ]\n}","dependencies":[]}]},"component:stat-highlight":{"resourceId":"component:stat-highlight","title":{"zh":"StatHighlight","en":"StatHighlight"},"docs":{"zh":"# StatHighlight\n\nSingle big-number spotlight: an oversized serif value with an optional trend delta (up = amber, down = rose), a mono label and supporting copy. Draws the eye to one headline metric (distinct from StatBand's multi-stat row).\n\n","en":"# StatHighlight\n\nSingle big-number spotlight: an oversized serif value with an optional trend delta (up = amber, down = rose), a mono label and supporting copy. Draws the eye to one headline metric (distinct from StatBand's multi-stat row).\n\n"},"api":{"name":"StatHighlight","description":"Single big-number spotlight: an oversized serif value with an optional trend delta (up = amber, down = rose), a mono label and supporting copy. Draws the eye to one headline metric (distinct from StatBand's multi-stat row).","category":"presentation","level":"L1","tags":["stat","metric","highlight","marketing"],"props":{"value":{"type":"string","description":"Big display value, e.g. '99.9%' or '12k+'"},"label":{"type":"string","description":"Mono uppercase label under the value"},"body":{"type":"string","description":"Supporting paragraph"},"delta":{"type":"string","description":"Trend delta pill text, e.g. '+12%'"},"trend":{"type":"string","enum":["up","down"],"default":"up","description":"Delta direction: up (amber, arrow up) or down (rose, arrow down)"}},"usageScenarios":["Centered headline metric between two content sections","Single KPI spotlight with a growth delta"],"constraints":["Values/deltas are display strings; pre-format numbers/units yourself","trend only affects the delta pill colour/arrow; omit delta to hide the pill"]},"distributions":[{"channel":"shadcn","name":"sections","version":"0.16.0","availability":"source"},{"channel":"spec","name":"StatHighlight","version":"0.16.0","availability":"source"}],"examples":[{"id":"StatHighlight","title":"StatHighlight","mode":"spec","language":"json","code":"{\n \"version\": \"2.0\",\n \"pages\": [\n {\n \"id\": \"demo\",\n \"path\": \"/\",\n \"title\": \"StatHighlight\",\n \"blocks\": [\n {\n \"type\": \"StatHighlight\",\n \"props\": {\n \"label\": \"UIBot\",\n \"body\": \"body\",\n \"delta\": \"delta\",\n \"trend\": \"up\"\n }\n }\n ]\n }\n ]\n}","dependencies":[]}]},"component:steps":{"resourceId":"component:steps","title":{"zh":"Steps","en":"Steps"},"docs":{"zh":"# Steps\n\n'How it works' steps with oversized mono numerals. variant 'numbered' (default) is a responsive card row; variant 'connected' is a vertical rail with a connecting line between numbered dots.\n\n","en":"# Steps\n\n'How it works' steps with oversized mono numerals. variant 'numbered' (default) is a responsive card row; variant 'connected' is a vertical rail with a connecting line between numbered dots.\n\n"},"api":{"name":"Steps","description":"'How it works' steps with oversized mono numerals. variant 'numbered' (default) is a responsive card row; variant 'connected' is a vertical rail with a connecting line between numbered dots.","category":"presentation","level":"L2","tags":["steps","how-it-works","process","marketing"],"props":{"variant":{"type":"string","enum":["numbered","connected"],"default":"numbered","description":"'numbered' = card row with big numerals; 'connected' = vertical rail with a line"},"steps":{"type":"array","items":{"type":"object","properties":{"title":{"type":"string"},"desc":{"type":"string"},"icon":{"type":"string","description":"Optional lucide icon name; replaces the numeral in the 'connected' dot"}}},"description":"[{title, desc?, icon?}] in sequence order; steps with an empty title are dropped"}},"usageScenarios":["Three-step onboarding ('Describe → Generate → Render')","Connected setup sequence in docs"],"constraints":["Numbering is automatic (01, 02, …) from array order","icon only affects the 'connected' variant's dot; the numbered variant always shows the numeral","Numbered variant derives its column count from the step count (clamped 2–4), so 4 steps fill one row"]},"distributions":[{"channel":"shadcn","name":"content","version":"0.16.0","availability":"source"},{"channel":"spec","name":"Steps","version":"0.16.0","availability":"source"}],"examples":[{"id":"Steps","title":"Steps","mode":"spec","language":"json","code":"{\n \"version\": \"2.0\",\n \"pages\": [\n {\n \"id\": \"demo\",\n \"path\": \"/\",\n \"title\": \"Steps\",\n \"blocks\": [\n {\n \"type\": \"Steps\",\n \"props\": {\n \"variant\": \"numbered\",\n \"steps\": [\n {\n \"title\": \"Build something useful\",\n \"desc\": \"desc\",\n \"icon\": \"icon\"\n }\n ]\n }\n }\n ]\n }\n ]\n}","dependencies":[]}]},"component:switch":{"resourceId":"component:switch","title":{"zh":"Switch","en":"Switch"},"docs":{"zh":"# Switch\n\nControlled boolean switch (role=switch) with accessible label. Supports _bindState on checked; onChange carries event.checked.\n\n","en":"# Switch\n\nControlled boolean switch (role=switch) with accessible label. Supports _bindState on checked; onChange carries event.checked.\n\n"},"api":{"name":"Switch","description":"Controlled boolean switch (role=switch) with accessible label. Supports _bindState on checked; onChange carries event.checked.","category":"primitive","level":"L1","tags":["switch","toggle","form"],"props":{"label":{"type":"string"},"checked":{"type":"boolean","default":false},"disabled":{"type":"boolean","default":false}},"events":{"onChange":{"description":"Runs with { type: 'change', checked }"}},"usageScenarios":["Enable or disable a provider","Feature flag toggle"],"constraints":["Always set label so the control has an accessible name"]},"distributions":[{"channel":"shadcn","name":"primitives","version":"0.16.0","availability":"source"},{"channel":"spec","name":"Switch","version":"0.16.0","availability":"source"}],"examples":[{"id":"Switch","title":"Switch","mode":"spec","language":"json","code":"{\n \"version\": \"2.0\",\n \"pages\": [\n {\n \"id\": \"demo\",\n \"path\": \"/\",\n \"title\": \"Switch\",\n \"blocks\": [\n {\n \"type\": \"Switch\",\n \"props\": {\n \"label\": \"UIBot\",\n \"disabled\": false\n }\n }\n ]\n }\n ]\n}","dependencies":[]}]},"component:table":{"resourceId":"component:table","title":{"zh":"Table","en":"Table"},"docs":{"zh":"# Table\n\nData grid with typed columns and row data. Columns define keys and display labels.\n\n","en":"# Table\n\nData grid with typed columns and row data. Columns define keys and display labels.\n\n"},"api":{"name":"Table","description":"Data grid with typed columns and row data. Columns define keys and display labels.","category":"composite","level":"L2","tags":["table","grid","data"],"props":{"columns":{"type":"array","items":{"type":"object","properties":{"key":{"type":"string"},"label":{"type":"string"},"align":{"type":"string","enum":["left","center","right"]}}},"description":"[{key, label, align?}]"},"rows":{"type":"array","items":{"type":"object"},"description":"Array of data objects keyed to column.key"},"emptyText":{"type":"string","default":"No data"},"striped":{"type":"boolean","default":true},"caption":{"type":"string"}},"usageScenarios":["User management list","Order history table","API endpoint catalog"],"constraints":["rows entries must have keys matching column.key; missing keys render empty string","Avoid more than 8 columns"]},"distributions":[{"channel":"shadcn","name":"data","version":"0.16.0","availability":"source"},{"channel":"spec","name":"Table","version":"0.16.0","availability":"source"}],"examples":[{"id":"Table","title":"Table","mode":"spec","language":"json","code":"{\n \"version\": \"2.0\",\n \"pages\": [\n {\n \"id\": \"demo\",\n \"path\": \"/\",\n \"title\": \"Table\",\n \"blocks\": [\n {\n \"type\": \"Table\",\n \"props\": {\n \"columns\": [\n {\n \"key\": \"key\",\n \"label\": \"UIBot\",\n \"align\": \"left\"\n }\n ],\n \"rows\": [\n {}\n ],\n \"emptyText\": \"No data\",\n \"striped\": true,\n \"caption\": \"caption\"\n }\n }\n ]\n }\n ]\n}","dependencies":[]}]},"component:tabs":{"resourceId":"component:tabs","title":{"zh":"Tabs","en":"Tabs"},"docs":{"zh":"# Tabs\n\nTab switcher. Each child maps to the tab at the same index. Supports up to 6 tabs.\n\n","en":"# Tabs\n\nTab switcher. Each child maps to the tab at the same index. Supports up to 6 tabs.\n\n"},"api":{"name":"Tabs","description":"Tab switcher. Each child maps to the tab at the same index. Supports up to 6 tabs.","category":"composite","level":"L2","tags":["tabs","navigation"],"props":{"variant":{"type":"string","enum":["underline","segmented"]},"disabledTabs":{"type":"array","items":{"type":"integer"}},"value":{"type":"integer"},"tabs":{"type":"array","items":{"type":"string"},"description":"Tab label list, e.g. [Overview, Details, Activity]"},"defaultTab":{"type":"integer","default":0,"description":"0-based index of the initially active tab"}},"usageScenarios":["Split view of Overview / Settings / Logs","Mobile-friendly section switcher"],"constraints":["Children count must equal tabs array length","Do not use more than 6 tabs"]},"distributions":[{"channel":"shadcn","name":"layout","version":"0.16.0","availability":"source"},{"channel":"spec","name":"Tabs","version":"0.16.0","availability":"source"}],"examples":[{"id":"Tabs","title":"Tabs","mode":"spec","language":"json","code":"{\n \"version\": \"2.0\",\n \"pages\": [\n {\n \"id\": \"demo\",\n \"path\": \"/\",\n \"title\": \"Tabs\",\n \"blocks\": [\n {\n \"type\": \"Tabs\",\n \"props\": {\n \"variant\": \"underline\",\n \"disabledTabs\": [\n 2\n ],\n \"tabs\": [\n \"Overview\",\n \"Details\"\n ],\n \"defaultTab\": 0\n },\n \"children\": [\n {\n \"type\": \"Paragraph\",\n \"props\": {\n \"text\": \"Overview content\"\n }\n },\n {\n \"type\": \"Paragraph\",\n \"props\": {\n \"text\": \"Details content\"\n }\n }\n ]\n }\n ]\n }\n ]\n}","dependencies":[]}]},"component:team-grid":{"resourceId":"component:team-grid","title":{"zh":"TeamGrid","en":"TeamGrid"},"docs":{"zh":"# TeamGrid\n\nGrid of team-member cards. Each shows an avatar (image when `avatar` is a URL, otherwise tinted initials), name, mono role and optional bio. Hairline cards with hover lift.\n\n","en":"# TeamGrid\n\nGrid of team-member cards. Each shows an avatar (image when `avatar` is a URL, otherwise tinted initials), name, mono role and optional bio. Hairline cards with hover lift.\n\n"},"api":{"name":"TeamGrid","description":"Grid of team-member cards. Each shows an avatar (image when `avatar` is a URL, otherwise tinted initials), name, mono role and optional bio. Hairline cards with hover lift.","category":"presentation","level":"L2","tags":["team","people","grid","marketing"],"props":{"columns":{"type":"string","enum":["2","3","4"],"default":"3"},"members":{"type":"array","items":{"type":"object","properties":{"name":{"type":"string"},"role":{"type":"string"},"bio":{"type":"string"},"avatar":{"type":"string","description":"Image URL, or short text/emoji shown as the avatar; falls back to initials"}}},"description":"[{name, role?, bio?, avatar?}] — members with an empty name are dropped"}},"usageScenarios":["About page 'meet the team' grid","Advisors / contributors showcase"],"constraints":["avatar is treated as an image when it looks like a URL (http(s):/data:/leading slash); otherwise rendered as text","Initials are derived from the name when no avatar is given"]},"distributions":[{"channel":"shadcn","name":"content","version":"0.16.0","availability":"source"},{"channel":"spec","name":"TeamGrid","version":"0.16.0","availability":"source"}],"examples":[{"id":"TeamGrid","title":"TeamGrid","mode":"spec","language":"json","code":"{\n \"version\": \"2.0\",\n \"pages\": [\n {\n \"id\": \"demo\",\n \"path\": \"/\",\n \"title\": \"TeamGrid\",\n \"blocks\": [\n {\n \"type\": \"TeamGrid\",\n \"props\": {\n \"columns\": \"3\",\n \"members\": [\n {\n \"name\": \"resource\",\n \"role\": \"role\",\n \"bio\": \"bio\",\n \"avatar\": \"avatar\"\n }\n ]\n }\n }\n ]\n }\n ]\n}","dependencies":[]}]},"component:testimonials":{"resourceId":"component:testimonials","title":{"zh":"Testimonials","en":"Testimonials"},"docs":{"zh":"# Testimonials\n\nGrid of testimonial cards (hairline `.mkt-card`, hover lift): optional star rating, serif italic pull-quote, and an initials avatar token + author + role. `columns` (1–3) controls the grid; avatar tints cycle the four accents.\n\n","en":"# Testimonials\n\nGrid of testimonial cards (hairline `.mkt-card`, hover lift): optional star rating, serif italic pull-quote, and an initials avatar token + author + role. `columns` (1–3) controls the grid; avatar tints cycle the four accents.\n\n"},"api":{"name":"Testimonials","description":"Grid of testimonial cards (hairline `.mkt-card`, hover lift): optional star rating, serif italic pull-quote, and an initials avatar token + author + role. `columns` (1–3) controls the grid; avatar tints cycle the four accents.","category":"presentation","level":"L2","tags":["testimonials","social-proof","marketing","quotes"],"props":{"items":{"type":"array","items":{"type":"object","properties":{"quote":{"type":"string"},"author":{"type":"string"},"role":{"type":"string","description":"Author title / company"},"avatar":{"type":"string","description":"Explicit avatar token; defaults to author initials"},"rating":{"type":"integer","description":"Optional 1–5 star rating"}}},"description":"[{quote, author, role?, avatar?, rating?}]"},"columns":{"type":"string","enum":["1","2","3"],"description":"Grid column count (defaults from item count)"}},"usageScenarios":["Three-up customer quote wall under a SectionHeader","Single highlighted testimonial beside a feature"],"constraints":["avatar defaults to first-letter initials of author; no external images","rating is clamped to 0–5 and omitted when absent"]},"distributions":[{"channel":"shadcn","name":"marketing","version":"0.16.0","availability":"source"},{"channel":"spec","name":"Testimonials","version":"0.16.0","availability":"source"}],"examples":[{"id":"Testimonials","title":"Testimonials","mode":"spec","language":"json","code":"{\n \"version\": \"2.0\",\n \"pages\": [\n {\n \"id\": \"demo\",\n \"path\": \"/\",\n \"title\": \"Testimonials\",\n \"blocks\": [\n {\n \"type\": \"Testimonials\",\n \"props\": {\n \"items\": [\n {\n \"quote\": \"Clear contracts make better interfaces.\",\n \"author\": \"UIBot team\",\n \"role\": \"role\",\n \"avatar\": \"avatar\",\n \"rating\": 2\n }\n ],\n \"columns\": \"1\"\n }\n }\n ]\n }\n ]\n}","dependencies":[]}]},"component:timeline-list":{"resourceId":"component:timeline-list","title":{"zh":"TimelineList","en":"TimelineList"},"docs":{"zh":"# TimelineList\n\nVertical timeline with a left rail and a status dot per item (ok / warn / error).\n\n","en":"# TimelineList\n\nVertical timeline with a left rail and a status dot per item (ok / warn / error).\n\n"},"api":{"name":"TimelineList","description":"Vertical timeline with a left rail and a status dot per item (ok / warn / error).","category":"composite","level":"L2","tags":["timeline","activity","operations"],"props":{"items":{"type":"array","items":{"type":"object","properties":{"time":{"type":"string"},"title":{"type":"string"},"desc":{"type":"string"},"status":{"type":"string","enum":["ok","warn","error"]}}},"description":"[{time, title, desc?, status?}]"}},"usageScenarios":["Operations event timeline","Deployment / audit history"],"constraints":["status defaults to 'ok' when omitted"]},"distributions":[{"channel":"shadcn","name":"data-studio","version":"0.16.0","availability":"source"},{"channel":"spec","name":"TimelineList","version":"0.16.0","availability":"source"}],"examples":[{"id":"TimelineList","title":"TimelineList","mode":"spec","language":"json","code":"{\n \"version\": \"2.0\",\n \"pages\": [\n {\n \"id\": \"demo\",\n \"path\": \"/\",\n \"title\": \"TimelineList\",\n \"blocks\": [\n {\n \"type\": \"TimelineList\",\n \"props\": {\n \"items\": [\n {\n \"time\": \"time\",\n \"title\": \"Build something useful\",\n \"desc\": \"desc\",\n \"status\": \"ok\"\n }\n ]\n }\n }\n ]\n }\n ]\n}","dependencies":[]}]},"component:toast":{"resourceId":"component:toast","title":{"zh":"Toast","en":"Toast"},"docs":{"zh":"# Toast\n\nAlert banner (info, success, warning, error); placement top-right floats it as a dismissible corner notice.\n\n","en":"# Toast\n\nAlert banner (info, success, warning, error); placement top-right floats it as a dismissible corner notice.\n\n"},"api":{"name":"Toast","description":"Alert banner (info, success, warning, error); placement top-right floats it as a dismissible corner notice.","category":"primitive","level":"L1","tags":["toast","alert","notification"],"props":{"message":{"type":"string"},"title":{"type":"string"},"level":{"type":"string","enum":["info","success","warning","error"],"default":"info"},"closeable":{"type":"boolean","default":true},"placement":{"type":"string","enum":["inline","top-right"],"default":"inline"},"duration":{"type":"number","description":"Auto-dismiss after ms"}},"usageScenarios":["Success message after form submit","Sample-data notice (top-right)"],"constraints":["Keep floating notices to a title and one or two short lines"]},"distributions":[{"channel":"shadcn","name":"feedback","version":"0.16.0","availability":"source"},{"channel":"spec","name":"Toast","version":"0.16.0","availability":"source"}],"examples":[{"id":"Toast","title":"Toast","mode":"spec","language":"json","code":"{\n \"version\": \"2.0\",\n \"pages\": [\n {\n \"id\": \"demo\",\n \"path\": \"/\",\n \"title\": \"Toast\",\n \"blocks\": [\n {\n \"type\": \"Toast\",\n \"props\": {\n \"message\": \"Your changes are saved.\",\n \"title\": \"Build something useful\",\n \"level\": \"info\",\n \"closeable\": true,\n \"placement\": \"inline\",\n \"duration\": 2\n }\n }\n ]\n }\n ]\n}","dependencies":[]}]},"component:trend-chart":{"resourceId":"component:trend-chart","title":{"zh":"TrendChart","en":"TrendChart"},"docs":{"zh":"# TrendChart\n\nPure-SVG line / area chart with no third-party dependency. Draws one polyline per series on a shared vertical scale. Alias: LineChart.\n\n","en":"# TrendChart\n\nPure-SVG line / area chart with no third-party dependency. Draws one polyline per series on a shared vertical scale. Alias: LineChart.\n\n"},"api":{"name":"TrendChart","description":"Pure-SVG line / area chart with no third-party dependency. Draws one polyline per series on a shared vertical scale. Alias: LineChart.","category":"composite","level":"L2","tags":["chart","trend","line","svg"],"props":{"title":{"type":"string"},"series":{"type":"array","items":{"type":"object","properties":{"name":{"type":"string"},"points":{"type":"array","items":{"type":"number"}},"area":{"type":"boolean","default":false}}},"description":"[{name, points:number[], area?}]"},"labels":{"type":"array","items":{"type":"string"},"description":"Optional x-axis labels"},"width":{"type":"integer","default":480},"height":{"type":"integer","default":160}},"usageScenarios":["Evolution score trend over versions","Daily active users line chart"],"constraints":["Keep each series under ~200 points; larger inputs produce heavy SVG DOM"]},"distributions":[{"channel":"shadcn","name":"charts","version":"0.16.0","availability":"source"},{"channel":"spec","name":"TrendChart","version":"0.16.0","availability":"source"}],"examples":[{"id":"TrendChart","title":"TrendChart","mode":"spec","language":"json","code":"{\n \"version\": \"2.0\",\n \"pages\": [\n {\n \"id\": \"demo\",\n \"path\": \"/\",\n \"title\": \"TrendChart\",\n \"blocks\": [\n {\n \"type\": \"TrendChart\",\n \"props\": {\n \"title\": \"Build something useful\",\n \"series\": [\n {\n \"name\": \"resource\",\n \"points\": [\n 2\n ],\n \"area\": false\n }\n ],\n \"labels\": [\n \"labels\"\n ],\n \"width\": 480,\n \"height\": 160\n }\n }\n ]\n }\n ]\n}","dependencies":[]}]},"design-guide:claude-design":{"resourceId":"design-guide:claude-design","title":{"zh":"Claude Design System","en":"Claude Design System"},"docs":{"zh":"# Claude Design System\n\n1. Visual Theme & Atmosphere\n\n## 1. Visual Theme & Atmosphere\n\nClaude feels warm, calm, and humane — like a beautifully typeset letter on good\npaper. The canvas is a soft cream rather than stark white, ink is a warm\nnear-black, and a single coral/clay accent adds gentle, friendly energy without\nshouting. The aesthetic is editorial and unhurried: comfortable reading sizes,\nsoft radii, restrained elevation, and plenty of room to think. The voice is\nthoughtful and approachable. Build interfaces that feel considerate of the\nreader — legible, low-stress, and quietly characterful, with warmth in every\nneutral.\n\n## 2. Color Palette & Roles\n\n| Role | Token | Value | Notes |\n| --- | --- | --- | --- |\n| Background | `--bg` | `#f5f4ee` | cream paper canvas |\n| Background alt | `--bg-alt` | `#efede5` | bands, soft panels |\n| Surface | `--surface` | `#fbfaf7` | cards (slightly lifted off cream) |\n| Foreground | `--fg` | `#1f1e1c` | warm near-black ink |\n| Muted foreground | `--fg-muted` | `#6b6862` | secondary text |\n| Subtle foreground | `--fg-subtle` | `#928e85` | meta, placeholders |\n| Accent | `--accent` | `#da7756` | coral/clay, primary action |\n| Accent hover | `--accent-hover` | `#c4633f` | hover |\n| Accent foreground | `--accent-fg` | `#ffffff` | text on accent |\n| Accent soft | `--accent-soft` | `#f3e2d9` | tinted backgrounds |\n| Border | `--border` | `#e3e0d6` | hairlines |\n| Border strong | `--border-strong` | `#d2cec1` | input borders |\n| Success | `--success` | `#5a8a5b` | positive |\n| Warning | `--warning` | `#c89a3c` | caution |\n| Danger | `--danger` | `#bc4b3c` | error, destructive |\n\n## 3. Typography Rules\n\n- **Serif (display/editorial):** `\"Tiempos\", \"Georgia\", \"Charter\", serif`\n- **Sans (body/UI):** `\"Styrene\", \"Inter\", -apple-system, \"Segoe UI\", sans-serif`\n- **Mono:** `\"Berkeley Mono\", \"SF Mono\", ui-monospace, monospace`\n\nSerif at display/headings gives an editorial, letter-like warmth; a humanist\nsans keeps body and UI friendly and legible. Reading sizes are comfortable with\ngenerous line-height.\n\n| Role | Size | Weight | Line-height | Tracking | Family |\n| --- | --- | --- | --- | --- | --- |\n| Display | `3rem` | `420` | `1.12` | `-0.015em` | serif |\n| H1 | `2rem` | `460` | `1.2` | `-0.01em` | serif |\n| H2 | `1.5rem` | `500` | `1.3` | `-0.005em` | serif |\n| H3 | `1.1875rem` | `560` | `1.4` | `0` | sans |\n| Body | `1.0625rem` | `400` | `1.65` | `0` | sans |\n| Small | `0.875rem` | `400` | `1.5` | `0` | sans |\n| Caption | `0.8125rem` | `400` | `1.4` | `0.01em` | sans |\n| Code | `0.875rem` | `400` | `1.5` | `0` | mono |\n\n## 4. Component Stylings\n\n### Buttons\n\n- **Primary:** bg `#da7756`, text `#ffffff`, radius `0.625rem`, padding\n `0.5rem 1rem`, weight `560`, font-size `0.9375rem`. Hover bg `#c4633f`.\n Active translateY `1px`. Focus ring `0 0 0 3px rgba(218,119,86,0.3)`.\n- **Secondary:** bg `#fbfaf7`, text `#1f1e1c`, border `1px solid #d2cec1`.\n Hover bg `#f3f1ea`.\n- **Ghost:** transparent, text `#6b6862`. Hover bg `rgba(31,30,28,0.05)`,\n text `#1f1e1c`.\n- **Disabled:** opacity `0.5`, no hover.\n\n### Cards\n\n- bg `#fbfaf7`, border `1px solid #e3e0d6`, radius `0.875rem`, padding `1.5rem`.\n- Resting shadow level 1; soft and warm, never harsh.\n\n### Inputs\n\n- bg `#fbfaf7`, border `1px solid #d2cec1`, radius `0.625rem`, height `2.5rem`,\n padding `0 0.75rem`, text `#1f1e1c`, placeholder `#928e85`.\n- Focus: border `#da7756`, ring `0 0 0 3px rgba(218,119,86,0.2)`.\n\n### Badges\n\n- Pill, radius `9999px`, font-size `0.75rem`, weight `500`, padding\n `0.1875rem 0.5rem`. Accent-soft: bg `#f3e2d9`, text `#a14e30`.\n\n### Navigation\n\n- Side or top, bg `#efede5`, border `1px solid #e3e0d6`. Items text `#6b6862`,\n weight `500`. Hover bg `rgba(31,30,28,0.05)`. Active bg `#f3e2d9`, text\n `#a14e30`. Comfortable `2.25rem` item height.\n\n## 5. Layout Principles\n\n- **Spacing scale:** `0.25rem · 0.5rem · 0.75rem · 1rem · 1.5rem · 2rem · 3rem · 4.5rem`.\n- **Container max-width:** `48rem` for reading content, `72rem` for app shells;\n centered with `1.5rem` side padding.\n- **Grid:** content single-column and centered (~72ch measure); galleries 2–3up\n with `1.5rem` gaps.\n- **Whitespace:** generous and warm; section rhythm `3rem`–`4.5rem`.\n- **Radius scale:** `sm 0.375rem · md 0.625rem · lg 0.875rem · xl 1.25rem · full 9999px`.\n\n## 6. Depth & Elevation\n\nElevation is soft and warm-tinted — paper that lifts gently, never floats hard.\n\n| Level | Use | Shadow |\n| --- | --- | --- |\n| 0 | flat / on cream | `none` |\n| 1 | card | `0 1px 3px rgba(31,30,28,0.06)` |\n| 2 | popover, menu | `0 6px 20px rgba(31,30,28,0.1)` |\n| 3 | modal, dialog | `0 20px 50px rgba(31,30,28,0.16)` |\n\n## 7. Do's and Don'ts\n\n**Do**\n\n- Use cream `#f5f4ee` instead of stark white, and warm ink `#1f1e1c`.\n- Keep coral `#da7756` as the single, friendly accent.\n- Use serif at display/headings for an editorial, letter-like warmth.\n- Keep reading comfortable: `1.0625rem` body, `1.65` line-height, ~72ch measure.\n- Use soft radii and gentle, warm-tinted shadows.\n\n**Don't**\n\n- Don't use pure white `#ffffff` canvases or cold gray neutrals.\n- Don't oversaturate or add a second loud accent next to coral.\n- Don't use harsh black shadows; keep elevation soft and warm.\n- Don't tighten body type or crowd the reading measure.\n- Don't make the interface feel clinical — warmth is the brand.\n\n## 8. Responsive Behavior\n\n| Breakpoint | Min width | Behavior |\n| --- | --- | --- |\n| `sm` | `640px` | single column, full-width cards |\n| `md` | `768px` | 2-up galleries; nav stays inline |\n| `lg` | `1024px` | centered `48rem` reading column + side rail |\n| `xl` | `1280px` | wider app shell `72rem`, persistent panels |\n\n- **Touch targets:** minimum `44px × 44px`; buttons keep `2.5rem` height.\n- **Collapsing strategy:** nav collapses to a drawer below `md`; galleries stack\n to one column; preserve the centered reading measure and warm spacing.\n\n## 9. Agent Prompt Guide\n\n### Quick Color Reference\n\n- Accent (coral/clay): `#da7756` (hover `#c4633f`, soft `#f3e2d9`)\n- Background (cream): `#f5f4ee` · Alt: `#efede5` · Surface: `#fbfaf7`\n- Ink: `#1f1e1c` · Muted: `#6b6862` · Subtle: `#928e85`\n- Border: `#e3e0d6` (strong `#d2cec1`)\n- Success `#5a8a5b` · Warning `#c89a3c` · Danger `#bc4b3c`\n\n### Example prompts (copy-paste)\n\n1. \"Generate an article/reading view in the Claude system: cream `#f5f4ee`\n canvas, a serif display heading at `3rem`/weight 420 with `-0.015em`\n tracking, body in `1.0625rem`/`1.65` warm ink `#1f1e1c`, centered to a\n `48rem` reading column. Calm, editorial, warm.\"\n2. \"Build a primary CTA card: surface `#fbfaf7`, radius `0.875rem`, level-1\n shadow `0 1px 3px rgba(31,30,28,0.06)`, `1.5rem` padding, a coral primary\n button (`#da7756`/white, radius `0.625rem`, `560` weight) and a secondary\n outline button (`#fbfaf7` / `1px #d2cec1`).\"\n3. \"Create a tag/badge row: accent-soft pills bg `#f3e2d9` text `#a14e30`, radius\n `9999px`, `0.75rem`/weight 500, on a cream `#f5f4ee` background with `#6b6862`\n captions underneath.\"\n\n### Iteration guide\n\n1. Warm the base: cream `#f5f4ee` canvas, warm ink `#1f1e1c`, no pure white.\n2. Add one friendly accent — coral `#da7756` — for actions and highlights.\n3. Bring in serif at display/headings for editorial warmth.\n4. Set comfortable reading: `1.0625rem` body, `1.65` line-height, ~72ch measure.\n5. Soften everything: larger radii and gentle warm-tinted shadows.","en":"# Claude Design System\n\n1. Visual Theme & Atmosphere\n\n## 1. Visual Theme & Atmosphere\n\nClaude feels warm, calm, and humane — like a beautifully typeset letter on good\npaper. The canvas is a soft cream rather than stark white, ink is a warm\nnear-black, and a single coral/clay accent adds gentle, friendly energy without\nshouting. The aesthetic is editorial and unhurried: comfortable reading sizes,\nsoft radii, restrained elevation, and plenty of room to think. The voice is\nthoughtful and approachable. Build interfaces that feel considerate of the\nreader — legible, low-stress, and quietly characterful, with warmth in every\nneutral.\n\n## 2. Color Palette & Roles\n\n| Role | Token | Value | Notes |\n| --- | --- | --- | --- |\n| Background | `--bg` | `#f5f4ee` | cream paper canvas |\n| Background alt | `--bg-alt` | `#efede5` | bands, soft panels |\n| Surface | `--surface` | `#fbfaf7` | cards (slightly lifted off cream) |\n| Foreground | `--fg` | `#1f1e1c` | warm near-black ink |\n| Muted foreground | `--fg-muted` | `#6b6862` | secondary text |\n| Subtle foreground | `--fg-subtle` | `#928e85` | meta, placeholders |\n| Accent | `--accent` | `#da7756` | coral/clay, primary action |\n| Accent hover | `--accent-hover` | `#c4633f` | hover |\n| Accent foreground | `--accent-fg` | `#ffffff` | text on accent |\n| Accent soft | `--accent-soft` | `#f3e2d9` | tinted backgrounds |\n| Border | `--border` | `#e3e0d6` | hairlines |\n| Border strong | `--border-strong` | `#d2cec1` | input borders |\n| Success | `--success` | `#5a8a5b` | positive |\n| Warning | `--warning` | `#c89a3c` | caution |\n| Danger | `--danger` | `#bc4b3c` | error, destructive |\n\n## 3. Typography Rules\n\n- **Serif (display/editorial):** `\"Tiempos\", \"Georgia\", \"Charter\", serif`\n- **Sans (body/UI):** `\"Styrene\", \"Inter\", -apple-system, \"Segoe UI\", sans-serif`\n- **Mono:** `\"Berkeley Mono\", \"SF Mono\", ui-monospace, monospace`\n\nSerif at display/headings gives an editorial, letter-like warmth; a humanist\nsans keeps body and UI friendly and legible. Reading sizes are comfortable with\ngenerous line-height.\n\n| Role | Size | Weight | Line-height | Tracking | Family |\n| --- | --- | --- | --- | --- | --- |\n| Display | `3rem` | `420` | `1.12` | `-0.015em` | serif |\n| H1 | `2rem` | `460` | `1.2` | `-0.01em` | serif |\n| H2 | `1.5rem` | `500` | `1.3` | `-0.005em` | serif |\n| H3 | `1.1875rem` | `560` | `1.4` | `0` | sans |\n| Body | `1.0625rem` | `400` | `1.65` | `0` | sans |\n| Small | `0.875rem` | `400` | `1.5` | `0` | sans |\n| Caption | `0.8125rem` | `400` | `1.4` | `0.01em` | sans |\n| Code | `0.875rem` | `400` | `1.5` | `0` | mono |\n\n## 4. Component Stylings\n\n### Buttons\n\n- **Primary:** bg `#da7756`, text `#ffffff`, radius `0.625rem`, padding\n `0.5rem 1rem`, weight `560`, font-size `0.9375rem`. Hover bg `#c4633f`.\n Active translateY `1px`. Focus ring `0 0 0 3px rgba(218,119,86,0.3)`.\n- **Secondary:** bg `#fbfaf7`, text `#1f1e1c`, border `1px solid #d2cec1`.\n Hover bg `#f3f1ea`.\n- **Ghost:** transparent, text `#6b6862`. Hover bg `rgba(31,30,28,0.05)`,\n text `#1f1e1c`.\n- **Disabled:** opacity `0.5`, no hover.\n\n### Cards\n\n- bg `#fbfaf7`, border `1px solid #e3e0d6`, radius `0.875rem`, padding `1.5rem`.\n- Resting shadow level 1; soft and warm, never harsh.\n\n### Inputs\n\n- bg `#fbfaf7`, border `1px solid #d2cec1`, radius `0.625rem`, height `2.5rem`,\n padding `0 0.75rem`, text `#1f1e1c`, placeholder `#928e85`.\n- Focus: border `#da7756`, ring `0 0 0 3px rgba(218,119,86,0.2)`.\n\n### Badges\n\n- Pill, radius `9999px`, font-size `0.75rem`, weight `500`, padding\n `0.1875rem 0.5rem`. Accent-soft: bg `#f3e2d9`, text `#a14e30`.\n\n### Navigation\n\n- Side or top, bg `#efede5`, border `1px solid #e3e0d6`. Items text `#6b6862`,\n weight `500`. Hover bg `rgba(31,30,28,0.05)`. Active bg `#f3e2d9`, text\n `#a14e30`. Comfortable `2.25rem` item height.\n\n## 5. Layout Principles\n\n- **Spacing scale:** `0.25rem · 0.5rem · 0.75rem · 1rem · 1.5rem · 2rem · 3rem · 4.5rem`.\n- **Container max-width:** `48rem` for reading content, `72rem` for app shells;\n centered with `1.5rem` side padding.\n- **Grid:** content single-column and centered (~72ch measure); galleries 2–3up\n with `1.5rem` gaps.\n- **Whitespace:** generous and warm; section rhythm `3rem`–`4.5rem`.\n- **Radius scale:** `sm 0.375rem · md 0.625rem · lg 0.875rem · xl 1.25rem · full 9999px`.\n\n## 6. Depth & Elevation\n\nElevation is soft and warm-tinted — paper that lifts gently, never floats hard.\n\n| Level | Use | Shadow |\n| --- | --- | --- |\n| 0 | flat / on cream | `none` |\n| 1 | card | `0 1px 3px rgba(31,30,28,0.06)` |\n| 2 | popover, menu | `0 6px 20px rgba(31,30,28,0.1)` |\n| 3 | modal, dialog | `0 20px 50px rgba(31,30,28,0.16)` |\n\n## 7. Do's and Don'ts\n\n**Do**\n\n- Use cream `#f5f4ee` instead of stark white, and warm ink `#1f1e1c`.\n- Keep coral `#da7756` as the single, friendly accent.\n- Use serif at display/headings for an editorial, letter-like warmth.\n- Keep reading comfortable: `1.0625rem` body, `1.65` line-height, ~72ch measure.\n- Use soft radii and gentle, warm-tinted shadows.\n\n**Don't**\n\n- Don't use pure white `#ffffff` canvases or cold gray neutrals.\n- Don't oversaturate or add a second loud accent next to coral.\n- Don't use harsh black shadows; keep elevation soft and warm.\n- Don't tighten body type or crowd the reading measure.\n- Don't make the interface feel clinical — warmth is the brand.\n\n## 8. Responsive Behavior\n\n| Breakpoint | Min width | Behavior |\n| --- | --- | --- |\n| `sm` | `640px` | single column, full-width cards |\n| `md` | `768px` | 2-up galleries; nav stays inline |\n| `lg` | `1024px` | centered `48rem` reading column + side rail |\n| `xl` | `1280px` | wider app shell `72rem`, persistent panels |\n\n- **Touch targets:** minimum `44px × 44px`; buttons keep `2.5rem` height.\n- **Collapsing strategy:** nav collapses to a drawer below `md`; galleries stack\n to one column; preserve the centered reading measure and warm spacing.\n\n## 9. Agent Prompt Guide\n\n### Quick Color Reference\n\n- Accent (coral/clay): `#da7756` (hover `#c4633f`, soft `#f3e2d9`)\n- Background (cream): `#f5f4ee` · Alt: `#efede5` · Surface: `#fbfaf7`\n- Ink: `#1f1e1c` · Muted: `#6b6862` · Subtle: `#928e85`\n- Border: `#e3e0d6` (strong `#d2cec1`)\n- Success `#5a8a5b` · Warning `#c89a3c` · Danger `#bc4b3c`\n\n### Example prompts (copy-paste)\n\n1. \"Generate an article/reading view in the Claude system: cream `#f5f4ee`\n canvas, a serif display heading at `3rem`/weight 420 with `-0.015em`\n tracking, body in `1.0625rem`/`1.65` warm ink `#1f1e1c`, centered to a\n `48rem` reading column. Calm, editorial, warm.\"\n2. \"Build a primary CTA card: surface `#fbfaf7`, radius `0.875rem`, level-1\n shadow `0 1px 3px rgba(31,30,28,0.06)`, `1.5rem` padding, a coral primary\n button (`#da7756`/white, radius `0.625rem`, `560` weight) and a secondary\n outline button (`#fbfaf7` / `1px #d2cec1`).\"\n3. \"Create a tag/badge row: accent-soft pills bg `#f3e2d9` text `#a14e30`, radius\n `9999px`, `0.75rem`/weight 500, on a cream `#f5f4ee` background with `#6b6862`\n captions underneath.\"\n\n### Iteration guide\n\n1. Warm the base: cream `#f5f4ee` canvas, warm ink `#1f1e1c`, no pure white.\n2. Add one friendly accent — coral `#da7756` — for actions and highlights.\n3. Bring in serif at display/headings for editorial warmth.\n4. Set comfortable reading: `1.0625rem` body, `1.65` line-height, ~72ch measure.\n5. Soften everything: larger radii and gentle warm-tinted shadows."},"distributions":[],"examples":[]},"design-guide:control-console":{"resourceId":"design-guide:control-console","title":{"zh":"Control Console","en":"Control Console"},"docs":{"zh":"# Control Console\n\nDense control / ops console for UIBot Spec. This is the **unified lane DESIGN.md**\n\nDense control / ops console for UIBot Spec. This is the **unified lane DESIGN.md**\nfor generated consoles. Pair with starter `shadcn-admin-dashboard` (user-layer\ntokens) and `ibm-design` (Carbon chrome) when those ids are selected. Not a\nbrand: it tells the generator how to compose existing admin blocks.\n\nPage structure follows a quiet ops chrome (status first, hairline layers).\nInterface density follows a three-surface stack (shell / canvas / surface),\ngrouped settings nav, and a 11–20 type ladder. Color is for state, not for\ncurrent-nav paint.\n\nPublic references (structure / density only, values written for UIBot):\n\n- Starter `examples/uibot-starter/.uibot/design-md/shadcn-admin-dashboard.md`\n- IBM Carbon-shaped `ibm-design` seed (awesome-design-md MIT analysis)\n\n## Visual Theme & Atmosphere\n\nAn operations surface for people who already know the product. Status is the\nhero: health, queue depth, failing checks, the next action. The sidebar is a\nquiet **shell**; the page is a **canvas**; cards/tables sit on **surface**.\nDensity beats whitespace. Color is semantic (success / warning / danger), not\ndecorative. Selected nav is a neutral mix of foreground on surface — never an\naccent wash. If you would put a marketing gradient on this page, you chose the\nwrong lane.\n\n## Color Palette & Roles\n\nUse token names, not a invented rainbow. Prefer the selected design-md hexes;\nthese are fallbacks when none match:\n\n| Role | Token | Value | Notes |\n| --- | --- | --- | --- |\n| Shell | `--shell` | `#111113` | sider / app chrome |\n| Canvas | `--bg` | `#09090b` | page canvas |\n| Surface | `--surface` | `#18181b` | tables, popovers |\n| Hover | `--hover` | mix 4% fg | row / nav hover |\n| Selected | `--selected` | mix 7% fg | current nav / row |\n| Foreground | `--fg` | `#fafafa` | primary text |\n| Muted | `--fg-muted` | `#a1a1aa` | labels, timestamps |\n| Accent | `--accent` | `#3b82f6` | focus / primary action only |\n| Border | `--border` | `#27272a` | hairlines |\n| Success | `--success` | `#22c55e` | healthy |\n| Warning | `--warning` | `#eab308` | degraded |\n| Danger | `--danger` | `#ef4444` | failing |\n\nLight variant: `--shell #f1f3f6`, `--bg #f7f8fa`, `--surface #ffffff`,\n`--fg #18212f`, `--border #e2e6ec`. Do not mix light and dark in one page.\n\n## Typography Rules\n\nProduct chrome uses this ladder (not the marketing 3-role cap):\n\n| Role | Size | Line-height | Use |\n| --- | --- | --- | --- |\n| micro | `11px` | `15px` | overlines, timestamps |\n| caption | `12px` | `16px` | helper, empty copy |\n| label | `13px` | `18px` | table headers, meta rows |\n| body | `14px` | `20px` | UI body |\n| title | `16px` | `24px` | section |\n| display | `20px` | `28px` | page title |\n\nTabular numbers for counts. No display serif. Sentence case. No ALL-CAPS\neyebrows on chrome.\n\n## Component Stylings / Spec recipes\n\nLead with status (`Toast` + `BadgeGroup` + `StatGrid`), then the primary\n`Table` / `SearchableTable` (always set `emptyText`) or log, then a single\nprimary action. Pair with `TrendChart` and `TimelineList` when the page needs\na series or a feed. Empty / loading / error are three different blocks —\nnever a zeroed KPI.\n\n```yaml\nid: ops-overview\ntitle: 运行概览\nblocks:\n - type: PageLayout\n props: { title: 运行概览, variant: sidebar }\n slots:\n sidebar:\n - type: PageSiderMenu\n props: { title: Control }\n children:\n - type: MenuLink\n props: { label: Overview, href: /ops, active: true }\n - type: MenuLink\n props: { label: Queues, href: /ops/queues, active: false }\n children:\n - type: Toast\n props: { level: warning, title: Status first, message: \"3 failing checks. Live visitors n/a.\" }\n - type: StatGrid\n props:\n cols: \"3\"\n items:\n - { label: Failing checks, value: \"3\", description: last 15m, trend: down }\n - { label: Queue depth, value: \"n/a\", description: source offline }\n - { label: Error rate, value: \"0.4%\", change: \"+0.1%\", trend: up }\n - type: SearchableTable\n props:\n searchKey: search\n emptyText: No failing checks in this window.\n```\n\nButtons: `default` for the one primary action, `outline` / `ghost` otherwise.\nNever nest a `Button` inside a clickable `Card`.\n\nUsage / quota: independent layers (quota, tasks, hourly) separated by a 1px\nhairline, not nested cards. Missing layers stay omitted with `n/a` copy — never\na zeroed chart. Percent windows may show a 4px meter track; unknown windows\nshow no bar.\n\nSettings: grouped sider (`工作区` / `应用与扩展` or English equivalents). Nav\nitems are names only. Current item uses `--selected`, not accent fill.\n\n## Layout Principles\n\n- `PageLayout` + `PageSiderMenu` (~224–240px) on `--shell`. Content on `--bg`.\n- Radius ladder: `3 / 4 / 6 / 8 / 12`. Buttons and inputs `md` (6px); sider\n items `lg` (8px).\n- Tables are first-class: numeric columns `align: right`, row actions in the\n last column as a single `Button` or `DropdownMenu`, not stacked icons.\n- Filters sit above the table in one row; they wrap on 375.\n- Empty / loading / error are three blocks. Do not nest an empty-state dashed\n card inside a layer card.\n\n## Depth & Elevation\n\nHairline borders, almost no shadow. Elevation is for popovers and dialogs only.\nDo not put `shadow-lg` on every card. Connection / status cards use a hairline\nplus a status mark — not a colored frame.\n\n## Do's and Don'ts\n\n- Do: honest `n/a` / empty-state copy when the number is unknown.\n- Do: semantic color on status text, badges, and 4px meters only.\n- Do: selected nav as `--selected` mix; hover as `--hover`.\n- Don't: purple hero, fake \"4,821 users\", illustration blobs, emoji as icons.\n- Don't: accent-wash current nav, nested empty-in-card, zero-filled omitted\n usage layers.\n- Don't: marketing type, full-bleed photography, unscoped global CSS.\n\n## Responsive Behavior\n\n| Width | Behavior |\n| --- | --- |\n| 375 | Sidebar offcanvas / stacked stats / table horizontal scroll or card list |\n| 768 | Collapsed icon rail optional; filters wrap |\n| 1440 | Full sider + KPI row + table |\n\nTouch targets ≥ 44px on 375. Status text stays readable at 14px.\n\n## Agent Prompt Guide\n\nIntent words: ops, console, control plane, status, queue, incident, admin\ndensity, providers, usage, settings. If the user says landing / marketing, do\n**not** use this guide.\n\nQuick tokens: `--shell` `--bg` `--surface` `--selected` `--accent: #3b82f6`\n`--danger: #ef4444`. Type: 11 / 12 / 13 / 14 / 16 / 20. Layers: hairline, not\nstacked cards. Nav: grouped labels, selected is a mix.\n\nExample: \"Generate a providers + usage console. Status first. Unknown stays\nn/a. Usage is three hairline layers. Settings nav is grouped. No accent-wash\ncurrent item.\"","en":"# Control Console\n\nDense control / ops console for UIBot Spec. This is the **unified lane DESIGN.md**\n\nDense control / ops console for UIBot Spec. This is the **unified lane DESIGN.md**\nfor generated consoles. Pair with starter `shadcn-admin-dashboard` (user-layer\ntokens) and `ibm-design` (Carbon chrome) when those ids are selected. Not a\nbrand: it tells the generator how to compose existing admin blocks.\n\nPage structure follows a quiet ops chrome (status first, hairline layers).\nInterface density follows a three-surface stack (shell / canvas / surface),\ngrouped settings nav, and a 11–20 type ladder. Color is for state, not for\ncurrent-nav paint.\n\nPublic references (structure / density only, values written for UIBot):\n\n- Starter `examples/uibot-starter/.uibot/design-md/shadcn-admin-dashboard.md`\n- IBM Carbon-shaped `ibm-design` seed (awesome-design-md MIT analysis)\n\n## Visual Theme & Atmosphere\n\nAn operations surface for people who already know the product. Status is the\nhero: health, queue depth, failing checks, the next action. The sidebar is a\nquiet **shell**; the page is a **canvas**; cards/tables sit on **surface**.\nDensity beats whitespace. Color is semantic (success / warning / danger), not\ndecorative. Selected nav is a neutral mix of foreground on surface — never an\naccent wash. If you would put a marketing gradient on this page, you chose the\nwrong lane.\n\n## Color Palette & Roles\n\nUse token names, not a invented rainbow. Prefer the selected design-md hexes;\nthese are fallbacks when none match:\n\n| Role | Token | Value | Notes |\n| --- | --- | --- | --- |\n| Shell | `--shell` | `#111113` | sider / app chrome |\n| Canvas | `--bg` | `#09090b` | page canvas |\n| Surface | `--surface` | `#18181b` | tables, popovers |\n| Hover | `--hover` | mix 4% fg | row / nav hover |\n| Selected | `--selected` | mix 7% fg | current nav / row |\n| Foreground | `--fg` | `#fafafa` | primary text |\n| Muted | `--fg-muted` | `#a1a1aa` | labels, timestamps |\n| Accent | `--accent` | `#3b82f6` | focus / primary action only |\n| Border | `--border` | `#27272a` | hairlines |\n| Success | `--success` | `#22c55e` | healthy |\n| Warning | `--warning` | `#eab308` | degraded |\n| Danger | `--danger` | `#ef4444` | failing |\n\nLight variant: `--shell #f1f3f6`, `--bg #f7f8fa`, `--surface #ffffff`,\n`--fg #18212f`, `--border #e2e6ec`. Do not mix light and dark in one page.\n\n## Typography Rules\n\nProduct chrome uses this ladder (not the marketing 3-role cap):\n\n| Role | Size | Line-height | Use |\n| --- | --- | --- | --- |\n| micro | `11px` | `15px` | overlines, timestamps |\n| caption | `12px` | `16px` | helper, empty copy |\n| label | `13px` | `18px` | table headers, meta rows |\n| body | `14px` | `20px` | UI body |\n| title | `16px` | `24px` | section |\n| display | `20px` | `28px` | page title |\n\nTabular numbers for counts. No display serif. Sentence case. No ALL-CAPS\neyebrows on chrome.\n\n## Component Stylings / Spec recipes\n\nLead with status (`Toast` + `BadgeGroup` + `StatGrid`), then the primary\n`Table` / `SearchableTable` (always set `emptyText`) or log, then a single\nprimary action. Pair with `TrendChart` and `TimelineList` when the page needs\na series or a feed. Empty / loading / error are three different blocks —\nnever a zeroed KPI.\n\n```yaml\nid: ops-overview\ntitle: 运行概览\nblocks:\n - type: PageLayout\n props: { title: 运行概览, variant: sidebar }\n slots:\n sidebar:\n - type: PageSiderMenu\n props: { title: Control }\n children:\n - type: MenuLink\n props: { label: Overview, href: /ops, active: true }\n - type: MenuLink\n props: { label: Queues, href: /ops/queues, active: false }\n children:\n - type: Toast\n props: { level: warning, title: Status first, message: \"3 failing checks. Live visitors n/a.\" }\n - type: StatGrid\n props:\n cols: \"3\"\n items:\n - { label: Failing checks, value: \"3\", description: last 15m, trend: down }\n - { label: Queue depth, value: \"n/a\", description: source offline }\n - { label: Error rate, value: \"0.4%\", change: \"+0.1%\", trend: up }\n - type: SearchableTable\n props:\n searchKey: search\n emptyText: No failing checks in this window.\n```\n\nButtons: `default` for the one primary action, `outline` / `ghost` otherwise.\nNever nest a `Button` inside a clickable `Card`.\n\nUsage / quota: independent layers (quota, tasks, hourly) separated by a 1px\nhairline, not nested cards. Missing layers stay omitted with `n/a` copy — never\na zeroed chart. Percent windows may show a 4px meter track; unknown windows\nshow no bar.\n\nSettings: grouped sider (`工作区` / `应用与扩展` or English equivalents). Nav\nitems are names only. Current item uses `--selected`, not accent fill.\n\n## Layout Principles\n\n- `PageLayout` + `PageSiderMenu` (~224–240px) on `--shell`. Content on `--bg`.\n- Radius ladder: `3 / 4 / 6 / 8 / 12`. Buttons and inputs `md` (6px); sider\n items `lg` (8px).\n- Tables are first-class: numeric columns `align: right`, row actions in the\n last column as a single `Button` or `DropdownMenu`, not stacked icons.\n- Filters sit above the table in one row; they wrap on 375.\n- Empty / loading / error are three blocks. Do not nest an empty-state dashed\n card inside a layer card.\n\n## Depth & Elevation\n\nHairline borders, almost no shadow. Elevation is for popovers and dialogs only.\nDo not put `shadow-lg` on every card. Connection / status cards use a hairline\nplus a status mark — not a colored frame.\n\n## Do's and Don'ts\n\n- Do: honest `n/a` / empty-state copy when the number is unknown.\n- Do: semantic color on status text, badges, and 4px meters only.\n- Do: selected nav as `--selected` mix; hover as `--hover`.\n- Don't: purple hero, fake \"4,821 users\", illustration blobs, emoji as icons.\n- Don't: accent-wash current nav, nested empty-in-card, zero-filled omitted\n usage layers.\n- Don't: marketing type, full-bleed photography, unscoped global CSS.\n\n## Responsive Behavior\n\n| Width | Behavior |\n| --- | --- |\n| 375 | Sidebar offcanvas / stacked stats / table horizontal scroll or card list |\n| 768 | Collapsed icon rail optional; filters wrap |\n| 1440 | Full sider + KPI row + table |\n\nTouch targets ≥ 44px on 375. Status text stays readable at 14px.\n\n## Agent Prompt Guide\n\nIntent words: ops, console, control plane, status, queue, incident, admin\ndensity, providers, usage, settings. If the user says landing / marketing, do\n**not** use this guide.\n\nQuick tokens: `--shell` `--bg` `--surface` `--selected` `--accent: #3b82f6`\n`--danger: #ef4444`. Type: 11 / 12 / 13 / 14 / 16 / 20. Layers: hairline, not\nstacked cards. Nav: grouped labels, selected is a mix.\n\nExample: \"Generate a providers + usage console. Status first. Unknown stays\nn/a. Usage is three hairline layers. Settings nav is grouped. No accent-wash\ncurrent item.\""},"distributions":[],"examples":[]},"design-guide:figma-design":{"resourceId":"design-guide:figma-design","title":{"zh":"Figma Design System","en":"Figma Design System"},"docs":{"zh":"# Figma Design System\n\nAdapted from the public VoltAgent awesome-design-md Figma analysis (MIT).\n\nAdapted from the public VoltAgent awesome-design-md Figma analysis (MIT).\nTokens are the documented marketing canvas from that file, rewritten as a\nUIBot 9-section seed with Spec recipes. Not a verbatim copy.\n\n## 1. Visual Theme & Atmosphere\n\nA confident black-and-white editorial frame interrupted by oversized pastel\nblocks — lime, lilac, cream, mint, pink — like sticky notes on a clean desk.\nTechnical and joyful at once. Personality lives in the color panels and the\nlight display type, not in a purple gradient kit.\n\n## 2. Color Palette & Roles\n\n| Role | Token | Value | Notes |\n| --- | --- | --- | --- |\n| Background | `--bg` | `#ffffff` | canvas |\n| Inverse | `--bg-inverse` | `#000000` | dark bands |\n| Foreground | `--fg` | `#000000` | ink |\n| Inverse ink | `--fg-inverse` | `#ffffff` | |\n| Hairline | `--border` | `#e6e6e6` | |\n| Soft surface | `--surface-soft` | `#f7f7f5` | |\n| Lime | `--block-lime` | `#dceeb1` | story panel |\n| Lilac | `--block-lilac` | `#c5b0f4` | |\n| Cream | `--block-cream` | `#f4ecd6` | |\n| Mint | `--block-mint` | `#c8e6cd` | |\n| Pink | `--block-pink` | `#efd4d4` | |\n| Coral | `--block-coral` | `#f3c9b6` | |\n| Magenta | `--accent` | `#ff3d8b` | rare punch |\n| Success | `--success` | `#1ea64a` | |\n\n## 3. Typography Rules\n\nUpstream uses Figma Sans (variable, light display ~340) + Figma Mono eyebrows.\nIn UIBot, approximate with a light grotesque display and a mono meta — do not\nfall back to Inter 400 as the whole page.\n\n| Role | Size | Weight | Tracking |\n| --- | --- | --- | --- |\n| Display | `4rem` | `340–400` | `-0.03em` |\n| Headline | `1.625rem` | `540` | `-0.01em` |\n| Body | `1.125rem` | `320–400` | `-0.01em` |\n| Eyebrow | `0.75rem` | `400` | `0.04em` mono |\n\n## 4. Component Stylings\n\n- CTA: black pill, white label (`rounded-full`). Inverse on dark bands.\n- Cards: large radius (`24–32px`) on story panels; 8px on tool chrome.\n- Do not put the same radius on every nested box.\n\n```yaml\n- type: Box\n props:\n className: \"rounded-[32px] bg-[#dceeb1] px-8 py-12\"\n children:\n - type: Heading\n props: { level: 2, text: \"Design together\" }\n - type: Button\n props: { text: \"Get started\", className: \"rounded-full bg-black text-white\" }\n```\n\n## 5. Layout Principles\n\n- Editorial frame, then a full-bleed color chapter, then white again.\n- Generous marketing padding (`4–6rem`); product chrome stays tighter.\n- Radius: `6px` / `8px` / `24px` / `32px` / pill.\n\n## 6. Depth & Elevation\n\nFlat. Color blocks replace shadows. Hairline `#e6e6e6` on white tool UI only.\n\n## 7. Do's and Don'ts\n\n- Do: one pastel chapter per scroll region; black pill CTA.\n- Do: light display type and real product language.\n- Don't: purple-on-white SaaS cards, equal grey tiles, fake community stats.\n- Don't: unscoped global CSS to paint the pastels — scope `className` on `Box`.\n\n## 8. Responsive Behavior\n\n375: display steps down, pastel panels go full width, CTA stretches.\n768: two-up chapters. 1440: wide editorial measure, oversized type.\nTouch ≥ 44px.\n\nQuick tokens: `--bg: #ffffff` `--fg: #000000` `--accent: #ff3d8b` `--block-lime: #dceeb1`\n\n## 9. Agent Prompt Guide\n\nUse for playful product marketing, design-tool landings, and colorful chapters.\nQuick colors: `#ffffff` `#000000` `#dceeb1` `#c5b0f4` `#ff3d8b`. If the brief\nis an ops console, use `control-console` instead.","en":"# Figma Design System\n\nAdapted from the public VoltAgent awesome-design-md Figma analysis (MIT).\n\nAdapted from the public VoltAgent awesome-design-md Figma analysis (MIT).\nTokens are the documented marketing canvas from that file, rewritten as a\nUIBot 9-section seed with Spec recipes. Not a verbatim copy.\n\n## 1. Visual Theme & Atmosphere\n\nA confident black-and-white editorial frame interrupted by oversized pastel\nblocks — lime, lilac, cream, mint, pink — like sticky notes on a clean desk.\nTechnical and joyful at once. Personality lives in the color panels and the\nlight display type, not in a purple gradient kit.\n\n## 2. Color Palette & Roles\n\n| Role | Token | Value | Notes |\n| --- | --- | --- | --- |\n| Background | `--bg` | `#ffffff` | canvas |\n| Inverse | `--bg-inverse` | `#000000` | dark bands |\n| Foreground | `--fg` | `#000000` | ink |\n| Inverse ink | `--fg-inverse` | `#ffffff` | |\n| Hairline | `--border` | `#e6e6e6` | |\n| Soft surface | `--surface-soft` | `#f7f7f5` | |\n| Lime | `--block-lime` | `#dceeb1` | story panel |\n| Lilac | `--block-lilac` | `#c5b0f4` | |\n| Cream | `--block-cream` | `#f4ecd6` | |\n| Mint | `--block-mint` | `#c8e6cd` | |\n| Pink | `--block-pink` | `#efd4d4` | |\n| Coral | `--block-coral` | `#f3c9b6` | |\n| Magenta | `--accent` | `#ff3d8b` | rare punch |\n| Success | `--success` | `#1ea64a` | |\n\n## 3. Typography Rules\n\nUpstream uses Figma Sans (variable, light display ~340) + Figma Mono eyebrows.\nIn UIBot, approximate with a light grotesque display and a mono meta — do not\nfall back to Inter 400 as the whole page.\n\n| Role | Size | Weight | Tracking |\n| --- | --- | --- | --- |\n| Display | `4rem` | `340–400` | `-0.03em` |\n| Headline | `1.625rem` | `540` | `-0.01em` |\n| Body | `1.125rem` | `320–400` | `-0.01em` |\n| Eyebrow | `0.75rem` | `400` | `0.04em` mono |\n\n## 4. Component Stylings\n\n- CTA: black pill, white label (`rounded-full`). Inverse on dark bands.\n- Cards: large radius (`24–32px`) on story panels; 8px on tool chrome.\n- Do not put the same radius on every nested box.\n\n```yaml\n- type: Box\n props:\n className: \"rounded-[32px] bg-[#dceeb1] px-8 py-12\"\n children:\n - type: Heading\n props: { level: 2, text: \"Design together\" }\n - type: Button\n props: { text: \"Get started\", className: \"rounded-full bg-black text-white\" }\n```\n\n## 5. Layout Principles\n\n- Editorial frame, then a full-bleed color chapter, then white again.\n- Generous marketing padding (`4–6rem`); product chrome stays tighter.\n- Radius: `6px` / `8px` / `24px` / `32px` / pill.\n\n## 6. Depth & Elevation\n\nFlat. Color blocks replace shadows. Hairline `#e6e6e6` on white tool UI only.\n\n## 7. Do's and Don'ts\n\n- Do: one pastel chapter per scroll region; black pill CTA.\n- Do: light display type and real product language.\n- Don't: purple-on-white SaaS cards, equal grey tiles, fake community stats.\n- Don't: unscoped global CSS to paint the pastels — scope `className` on `Box`.\n\n## 8. Responsive Behavior\n\n375: display steps down, pastel panels go full width, CTA stretches.\n768: two-up chapters. 1440: wide editorial measure, oversized type.\nTouch ≥ 44px.\n\nQuick tokens: `--bg: #ffffff` `--fg: #000000` `--accent: #ff3d8b` `--block-lime: #dceeb1`\n\n## 9. Agent Prompt Guide\n\nUse for playful product marketing, design-tool landings, and colorful chapters.\nQuick colors: `#ffffff` `#000000` `#dceeb1` `#c5b0f4` `#ff3d8b`. If the brief\nis an ops console, use `control-console` instead."},"distributions":[],"examples":[]},"design-guide:frontend-principles":{"resourceId":"design-guide:frontend-principles","title":{"zh":"Frontend Design Principles","en":"Frontend Design Principles"},"docs":{"zh":"# Frontend Design Principles\n\nHouse-style anti-slop guide for UIBot Spec / page UI. Not a brand system.\n\nHouse-style anti-slop guide for UIBot Spec / page UI. Not a brand system.\nAdapted from public frontend-design skills (do not treat this file as a\nverbatim copy):\n\n- Microsoft agent-academy `frontend-design` —\n https://github.com/microsoft/agent-academy/blob/main/.github/skills/frontend-design/SKILL.md\n- Anthropic skills `frontend-design` —\n https://github.com/anthropics/skills/blob/main/skills/frontend-design/SKILL.md\n\nThe default generation path force-includes this id. UI Craft baseline (lane\nselection + hard bans) is injected separately and always-on.\n\n## Why\n\nGenerated UI clusters on a statistical mean: grey canvas, 8px radius, centered\ncards, even padding, soft purple-blue gradients, Inter 400 everywhere. Real\nproducts take a stance. Pick the stance before you pick a color.\n\n## 1. Lane, then identity\n\nMatch the brief to one lane, then apply a design-md (or this guide):\n\n| Lane | Feel | Pair with |\n| --- | --- | --- |\n| control / ops console | restrained, status-first, dense tokens | `control-console`, `shadcn-admin-dashboard` |\n| marketing / landing | named aesthetic, one unforgettable moment | brand `*.design.md` |\n| admin / SaaS chrome | sidebar, table, form, quiet accent | `ibm-design`, `shadcn-admin-dashboard` |\n| UIBot Spec | execute the selected design-md tokens | picker or intent match |\n\nBold maximalism and refined minimalism both work. Intentionality matters more\nthan intensity (agent-academy). If a design-md is selected, it wins on tokens.\n\n## 2. Plan before pixels\n\nTwo passes (Anthropic process, UIBot-shaped):\n\n1. Compact token plan: 4–6 named hex roles, 1–2 type families, layout rhythm,\n 0–2 motion moments, one differentiator.\n2. Critique against the brief. If any axis looks like the generic default you\n would produce for any similar page, revise it and say why. Then write Spec.\n\nDo not open with a big number + small label + gradient accent unless that is\ntruly the best treatment for this subject.\n\n## 3. Typography\n\n- Marketing identity: three roles only (display / body / meta). Product chrome\n (control / admin) uses the lane guide's ladder — `control-console` is\n 11 / 12 / 13 / 14 / 16 / 20. Do not invent a third scale.\n- Pair typefaces on purpose. Avoid Inter / Roboto / Arial / generic system-ui\n as the **default marketing** face. Product chrome may use a restrained sans\n when the selected design-md names it (Linear Inter, IBM Plex, Geist).\n- Display tight (`leading-[0.95] tracking-tight`); body loose (`leading-7`).\n- Line length ≤ 75–80ch. Left-align long copy. Center only titles and single lines.\n- Avoid generated tells: one italic/colored word in a headline, ALL-CAPS\n eyebrows on every heading, `WORD — fragment` labels, `→` on every CTA.\n\n## 4. Color, surface, motion\n\n- 2 dominant + 1 accent. Neutrals carry ~90% of surface.\n- Flat white is a choice; compensate with shadow *or* border, not both on every card.\n- Dark mode is a redesigned palette, not inversion.\n- Motion signals, it does not perform. ≤ 200ms. One orchestrated moment beats\n fade-and-slide on every section. Custom easing over default `ease`.\n- Never use purple-gradient-on-white as the default marketing look.\n\n## 5. Break the centre\n\nOwn at least two axes against the AI mean (unless the brief or design-md pins them):\n\n| Mean | Stance |\n| --- | --- |\n| `rounded-lg` everywhere | `rounded-none` / `rounded-[2px]` / `rounded-full` |\n| Centered hero | Left display + asymmetric rail |\n| Soft purple wash | Single accent + paper/noise/flat |\n| Equal section padding | Alternate full-bleed and narrow prose |\n| Inter 400 | Named display + quiet body |\n| Card + shadow + border | One elevation language |\n\n## 6. UIBot Spec recipes\n\nPrefer catalog / resource blocks. Style via tokens / `className` the runtime\nunderstands. Do not emit `_js`. Empty, loading, and error must differ. Never\ninvent block types.\n\n**Marketing / landing** — when the aesthetic fits (Schematic Editorial / amber\nmarketing tokens `--marketing-accent`, `--font-display`), prefer `Hero`,\n`SectionHeader`, `FeatureGrid`, `PricingTable`, `CtaBand`, `Steps`,\n`LogoCloud`, `BrowserFrame`. A selected brand design-md (vercel / stripe / …)\nowns hex and type; still use those L2/L3 blocks instead of hand-rolled\n`Box`+`Card` grids for features and pricing.\n\n```yaml\nblocks:\n - type: Hero\n props:\n eyebrow: Issue tracker\n title: One surface for triage\n subtitle: Keyboard-first. No vanity KPIs.\n primaryCta: { label: Start free, href: /signup }\n secondaryCta: { label: View pricing, href: /pricing }\n - type: FeatureGrid\n props:\n cols: \"3\"\n items:\n - { icon: zap, title: Keyboard triage, desc: Assign without a mouse. }\n - { icon: layers, title: One canvas, desc: Issues stay on the roadmap. }\n - { icon: shield, title: Honest empty, desc: Unknown counts stay n/a. }\n - type: PricingTable\n props:\n billingNote: Published rates. Enterprise is a conversation.\n plans:\n - { name: Starter, price: \"$0\", period: \"/mo\", features: [\"3 projects\"], cta: { label: Start } }\n - { name: Pro, price: \"$24\", period: \"/mo\", highlighted: true, features: [\"SSO\"], cta: { label: Trial } }\n - type: CtaBand\n props:\n title: Create a workspace\n cta: { label: Get started free, href: /signup }\n```\n\nHard rule: never hand-roll a 3-tier pricing grid from `Card`+`Stat` when\n`PricingTable` is in the catalog.\n\n**Admin / ops** — prefer `PageLayout` + `PageSiderMenu`, `StatGrid`, `Toast`,\n`Table` / `SearchableTable` with `emptyText`, `TrendChart`, `TimelineList`,\n`BadgeGroup`. See `control-console`.\n\nHard bans in Spec output: nested Button, unscoped `html, body, *` CSS, invented\nmetrics, blocks not in the catalog.\n\n## 7. Responsive intent\n\nCheck 375 / 768 / 1440 before finishing. Stack navigation, keep type readable,\nno horizontal overflow, touch targets ≥ 44px on the 375 lane.\n\nQuick tokens (for extractors / Spec `style`): `--bg: #0f1011` `--fg: #f7f8f8`\n`--accent: #4cb782` `--danger: #eb5757`\n\n## Agent prompt\n\nCommit to a lane and a differentiator in one sentence, list tokens, then emit\none page YAML + matching HTML artifact. If `frontend-principles` and a brand\nguide both appear, the brand owns hex/type; this file owns anti-slop and Spec hygiene.","en":"# Frontend Design Principles\n\nHouse-style anti-slop guide for UIBot Spec / page UI. Not a brand system.\n\nHouse-style anti-slop guide for UIBot Spec / page UI. Not a brand system.\nAdapted from public frontend-design skills (do not treat this file as a\nverbatim copy):\n\n- Microsoft agent-academy `frontend-design` —\n https://github.com/microsoft/agent-academy/blob/main/.github/skills/frontend-design/SKILL.md\n- Anthropic skills `frontend-design` —\n https://github.com/anthropics/skills/blob/main/skills/frontend-design/SKILL.md\n\nThe default generation path force-includes this id. UI Craft baseline (lane\nselection + hard bans) is injected separately and always-on.\n\n## Why\n\nGenerated UI clusters on a statistical mean: grey canvas, 8px radius, centered\ncards, even padding, soft purple-blue gradients, Inter 400 everywhere. Real\nproducts take a stance. Pick the stance before you pick a color.\n\n## 1. Lane, then identity\n\nMatch the brief to one lane, then apply a design-md (or this guide):\n\n| Lane | Feel | Pair with |\n| --- | --- | --- |\n| control / ops console | restrained, status-first, dense tokens | `control-console`, `shadcn-admin-dashboard` |\n| marketing / landing | named aesthetic, one unforgettable moment | brand `*.design.md` |\n| admin / SaaS chrome | sidebar, table, form, quiet accent | `ibm-design`, `shadcn-admin-dashboard` |\n| UIBot Spec | execute the selected design-md tokens | picker or intent match |\n\nBold maximalism and refined minimalism both work. Intentionality matters more\nthan intensity (agent-academy). If a design-md is selected, it wins on tokens.\n\n## 2. Plan before pixels\n\nTwo passes (Anthropic process, UIBot-shaped):\n\n1. Compact token plan: 4–6 named hex roles, 1–2 type families, layout rhythm,\n 0–2 motion moments, one differentiator.\n2. Critique against the brief. If any axis looks like the generic default you\n would produce for any similar page, revise it and say why. Then write Spec.\n\nDo not open with a big number + small label + gradient accent unless that is\ntruly the best treatment for this subject.\n\n## 3. Typography\n\n- Marketing identity: three roles only (display / body / meta). Product chrome\n (control / admin) uses the lane guide's ladder — `control-console` is\n 11 / 12 / 13 / 14 / 16 / 20. Do not invent a third scale.\n- Pair typefaces on purpose. Avoid Inter / Roboto / Arial / generic system-ui\n as the **default marketing** face. Product chrome may use a restrained sans\n when the selected design-md names it (Linear Inter, IBM Plex, Geist).\n- Display tight (`leading-[0.95] tracking-tight`); body loose (`leading-7`).\n- Line length ≤ 75–80ch. Left-align long copy. Center only titles and single lines.\n- Avoid generated tells: one italic/colored word in a headline, ALL-CAPS\n eyebrows on every heading, `WORD — fragment` labels, `→` on every CTA.\n\n## 4. Color, surface, motion\n\n- 2 dominant + 1 accent. Neutrals carry ~90% of surface.\n- Flat white is a choice; compensate with shadow *or* border, not both on every card.\n- Dark mode is a redesigned palette, not inversion.\n- Motion signals, it does not perform. ≤ 200ms. One orchestrated moment beats\n fade-and-slide on every section. Custom easing over default `ease`.\n- Never use purple-gradient-on-white as the default marketing look.\n\n## 5. Break the centre\n\nOwn at least two axes against the AI mean (unless the brief or design-md pins them):\n\n| Mean | Stance |\n| --- | --- |\n| `rounded-lg` everywhere | `rounded-none` / `rounded-[2px]` / `rounded-full` |\n| Centered hero | Left display + asymmetric rail |\n| Soft purple wash | Single accent + paper/noise/flat |\n| Equal section padding | Alternate full-bleed and narrow prose |\n| Inter 400 | Named display + quiet body |\n| Card + shadow + border | One elevation language |\n\n## 6. UIBot Spec recipes\n\nPrefer catalog / resource blocks. Style via tokens / `className` the runtime\nunderstands. Do not emit `_js`. Empty, loading, and error must differ. Never\ninvent block types.\n\n**Marketing / landing** — when the aesthetic fits (Schematic Editorial / amber\nmarketing tokens `--marketing-accent`, `--font-display`), prefer `Hero`,\n`SectionHeader`, `FeatureGrid`, `PricingTable`, `CtaBand`, `Steps`,\n`LogoCloud`, `BrowserFrame`. A selected brand design-md (vercel / stripe / …)\nowns hex and type; still use those L2/L3 blocks instead of hand-rolled\n`Box`+`Card` grids for features and pricing.\n\n```yaml\nblocks:\n - type: Hero\n props:\n eyebrow: Issue tracker\n title: One surface for triage\n subtitle: Keyboard-first. No vanity KPIs.\n primaryCta: { label: Start free, href: /signup }\n secondaryCta: { label: View pricing, href: /pricing }\n - type: FeatureGrid\n props:\n cols: \"3\"\n items:\n - { icon: zap, title: Keyboard triage, desc: Assign without a mouse. }\n - { icon: layers, title: One canvas, desc: Issues stay on the roadmap. }\n - { icon: shield, title: Honest empty, desc: Unknown counts stay n/a. }\n - type: PricingTable\n props:\n billingNote: Published rates. Enterprise is a conversation.\n plans:\n - { name: Starter, price: \"$0\", period: \"/mo\", features: [\"3 projects\"], cta: { label: Start } }\n - { name: Pro, price: \"$24\", period: \"/mo\", highlighted: true, features: [\"SSO\"], cta: { label: Trial } }\n - type: CtaBand\n props:\n title: Create a workspace\n cta: { label: Get started free, href: /signup }\n```\n\nHard rule: never hand-roll a 3-tier pricing grid from `Card`+`Stat` when\n`PricingTable` is in the catalog.\n\n**Admin / ops** — prefer `PageLayout` + `PageSiderMenu`, `StatGrid`, `Toast`,\n`Table` / `SearchableTable` with `emptyText`, `TrendChart`, `TimelineList`,\n`BadgeGroup`. See `control-console`.\n\nHard bans in Spec output: nested Button, unscoped `html, body, *` CSS, invented\nmetrics, blocks not in the catalog.\n\n## 7. Responsive intent\n\nCheck 375 / 768 / 1440 before finishing. Stack navigation, keep type readable,\nno horizontal overflow, touch targets ≥ 44px on the 375 lane.\n\nQuick tokens (for extractors / Spec `style`): `--bg: #0f1011` `--fg: #f7f8f8`\n`--accent: #4cb782` `--danger: #eb5757`\n\n## Agent prompt\n\nCommit to a lane and a differentiator in one sentence, list tokens, then emit\none page YAML + matching HTML artifact. If `frontend-principles` and a brand\nguide both appear, the brand owns hex/type; this file owns anti-slop and Spec hygiene."},"distributions":[],"examples":[]},"design-guide:ibm-design":{"resourceId":"design-guide:ibm-design","title":{"zh":"IBM Carbon Design System","en":"IBM Carbon Design System"},"docs":{"zh":"# IBM Carbon Design System\n\nAdapted from the public VoltAgent awesome-design-md IBM / Carbon analysis\n\nAdapted from the public VoltAgent awesome-design-md IBM / Carbon analysis\n(MIT). Tokens follow the documented Carbon-shaped marketing canvas. Rewritten\nas a UIBot 9-section seed with Spec recipes. Not a verbatim copy.\n\n## 1. Visual Theme & Atmosphere\n\nEnterprise gravitas reframed for cloud: white surfaces, charcoal type, IBM\nBlue `#0f62fe` as the single accent, and a flat-square aesthetic (0–4px\nradius). Cards are thin-bordered tiles without shadow. This is the admin /\nSaaS chrome lane when the brief wants Carbon, not shadcn-dark.\n\n## 2. Color Palette & Roles\n\n| Role | Token | Value | Notes |\n| --- | --- | --- | --- |\n| Background | `--bg` | `#ffffff` | canvas |\n| Surface | `--surface` | `#f4f4f4` | rows / well |\n| Surface 2 | `--surface-2` | `#e0e0e0` | |\n| Foreground | `--fg` | `#161616` | ink |\n| Muted | `--fg-muted` | `#525252` | |\n| Subtle | `--fg-subtle` | `#8c8c8c` | |\n| Inverse bg | `--bg-inverse` | `#161616` | |\n| Inverse fg | `--fg-inverse` | `#ffffff` | |\n| Accent | `--accent` | `#0f62fe` | IBM Blue 60 |\n| Accent hover | `--accent-hover` | `#0050e6` | |\n| Accent deep | `--accent-deep` | `#002d9c` | |\n| Border | `--border` | `#e0e0e0` | |\n| Border strong | `--border-strong` | `#161616` | |\n| Success | `--success` | `#24a148` | |\n| Warning | `--warning` | `#f1c21b` | |\n| Danger | `--danger` | `#da1e28` | |\n\n## 3. Typography Rules\n\nIBM Plex Sans: display at weight 300 (the brand signature), body 400, emphasis\n600. In UIBot, set `className` with a Plex stack when available; otherwise a\nlight grotesque — not Inter-as-default-marketing.\n\n| Role | Size | Weight | Line-height |\n| --- | --- | --- | --- |\n| Display | `2.625rem` | `300` | `1.2` |\n| Headline | `2rem` | `400` | `1.25` |\n| Body | `1rem` | `400` | `1.5` |\n| Caption | `0.75rem` | `400` | `1.33` |\n| Button | `0.875rem` | `400` | `1.29` |\n\n## 4. Component Stylings\n\n- Primary button: square-ish (`rounded-none` / `rounded-[2px]`), IBM Blue fill,\n white label. Hover `#0050e6`.\n- Cards: 1px `#e0e0e0`, zero shadow, 0–4px radius.\n- Inputs: 1px strong border, square corners, clear focus ring in Blue.\n\n```yaml\n- type: PageLayout\n props: { title: Catalog, variant: sidebar }\n children:\n - type: Heading\n props: { level: 1, text: \"Resource catalog\", className: \"font-light tracking-tight\" }\n - type: Table\n props: { striped: false, emptyText: No resources in this space. }\n - type: Button\n props: { text: \"Create resource\", className: \"rounded-none bg-[#0f62fe] text-white\" }\n```\n\n## 5. Layout Principles\n\n- Section bands alternate `#ffffff` / `#f4f4f4`.\n- Spacing 4 / 8 / 16 / 24 / 32 / 48. Content max ~ `99rem` for enterprise, but\n UIBot pages should stay readable (`max-w-6xl` for app chrome).\n- Radius: `0` / `2px` / `4px` only.\n\n## 6. Depth & Elevation\n\nNone on cards. Inverse header (`#161616`) is the only dramatic surface.\nFocus is a 2px Blue outline.\n\n## 7. Do's and Don'ts\n\n- Do: one blue, square corners, Plex-light display, honest empty states.\n- Do: pair with `control-console` recipes for tables and KPIs.\n- Don't: rounded-xl marketing cards, purple gradients, drop shadows, fake\n \"trusted by 4,821 enterprises\" metrics.\n- Don't: unscoped element CSS to force Carbon; scope tokens on the root `Box`.\n\n## 8. Responsive Behavior\n\n375: stack sider offcanvas, full-width blue CTA, table as cards or scroll.\n768: compact header + filters. 1440: sider + data table. Touch ≥ 44px.\n\nQuick tokens: `--bg: #ffffff` `--fg: #161616` `--accent: #0f62fe` `--danger: #da1e28`\n\n## 9. Agent Prompt Guide\n\nUse for enterprise admin, Carbon-like SaaS chrome, documentation hubs.\nQuick colors: `#ffffff` `#161616` `#0f62fe` `#da1e28`. If the user wants a\ndark ops wall, prefer `control-console` + zinc tokens instead of inverting Blue.","en":"# IBM Carbon Design System\n\nAdapted from the public VoltAgent awesome-design-md IBM / Carbon analysis\n\nAdapted from the public VoltAgent awesome-design-md IBM / Carbon analysis\n(MIT). Tokens follow the documented Carbon-shaped marketing canvas. Rewritten\nas a UIBot 9-section seed with Spec recipes. Not a verbatim copy.\n\n## 1. Visual Theme & Atmosphere\n\nEnterprise gravitas reframed for cloud: white surfaces, charcoal type, IBM\nBlue `#0f62fe` as the single accent, and a flat-square aesthetic (0–4px\nradius). Cards are thin-bordered tiles without shadow. This is the admin /\nSaaS chrome lane when the brief wants Carbon, not shadcn-dark.\n\n## 2. Color Palette & Roles\n\n| Role | Token | Value | Notes |\n| --- | --- | --- | --- |\n| Background | `--bg` | `#ffffff` | canvas |\n| Surface | `--surface` | `#f4f4f4` | rows / well |\n| Surface 2 | `--surface-2` | `#e0e0e0` | |\n| Foreground | `--fg` | `#161616` | ink |\n| Muted | `--fg-muted` | `#525252` | |\n| Subtle | `--fg-subtle` | `#8c8c8c` | |\n| Inverse bg | `--bg-inverse` | `#161616` | |\n| Inverse fg | `--fg-inverse` | `#ffffff` | |\n| Accent | `--accent` | `#0f62fe` | IBM Blue 60 |\n| Accent hover | `--accent-hover` | `#0050e6` | |\n| Accent deep | `--accent-deep` | `#002d9c` | |\n| Border | `--border` | `#e0e0e0` | |\n| Border strong | `--border-strong` | `#161616` | |\n| Success | `--success` | `#24a148` | |\n| Warning | `--warning` | `#f1c21b` | |\n| Danger | `--danger` | `#da1e28` | |\n\n## 3. Typography Rules\n\nIBM Plex Sans: display at weight 300 (the brand signature), body 400, emphasis\n600. In UIBot, set `className` with a Plex stack when available; otherwise a\nlight grotesque — not Inter-as-default-marketing.\n\n| Role | Size | Weight | Line-height |\n| --- | --- | --- | --- |\n| Display | `2.625rem` | `300` | `1.2` |\n| Headline | `2rem` | `400` | `1.25` |\n| Body | `1rem` | `400` | `1.5` |\n| Caption | `0.75rem` | `400` | `1.33` |\n| Button | `0.875rem` | `400` | `1.29` |\n\n## 4. Component Stylings\n\n- Primary button: square-ish (`rounded-none` / `rounded-[2px]`), IBM Blue fill,\n white label. Hover `#0050e6`.\n- Cards: 1px `#e0e0e0`, zero shadow, 0–4px radius.\n- Inputs: 1px strong border, square corners, clear focus ring in Blue.\n\n```yaml\n- type: PageLayout\n props: { title: Catalog, variant: sidebar }\n children:\n - type: Heading\n props: { level: 1, text: \"Resource catalog\", className: \"font-light tracking-tight\" }\n - type: Table\n props: { striped: false, emptyText: No resources in this space. }\n - type: Button\n props: { text: \"Create resource\", className: \"rounded-none bg-[#0f62fe] text-white\" }\n```\n\n## 5. Layout Principles\n\n- Section bands alternate `#ffffff` / `#f4f4f4`.\n- Spacing 4 / 8 / 16 / 24 / 32 / 48. Content max ~ `99rem` for enterprise, but\n UIBot pages should stay readable (`max-w-6xl` for app chrome).\n- Radius: `0` / `2px` / `4px` only.\n\n## 6. Depth & Elevation\n\nNone on cards. Inverse header (`#161616`) is the only dramatic surface.\nFocus is a 2px Blue outline.\n\n## 7. Do's and Don'ts\n\n- Do: one blue, square corners, Plex-light display, honest empty states.\n- Do: pair with `control-console` recipes for tables and KPIs.\n- Don't: rounded-xl marketing cards, purple gradients, drop shadows, fake\n \"trusted by 4,821 enterprises\" metrics.\n- Don't: unscoped element CSS to force Carbon; scope tokens on the root `Box`.\n\n## 8. Responsive Behavior\n\n375: stack sider offcanvas, full-width blue CTA, table as cards or scroll.\n768: compact header + filters. 1440: sider + data table. Touch ≥ 44px.\n\nQuick tokens: `--bg: #ffffff` `--fg: #161616` `--accent: #0f62fe` `--danger: #da1e28`\n\n## 9. Agent Prompt Guide\n\nUse for enterprise admin, Carbon-like SaaS chrome, documentation hubs.\nQuick colors: `#ffffff` `#161616` `#0f62fe` `#da1e28`. If the user wants a\ndark ops wall, prefer `control-console` + zinc tokens instead of inverting Blue."},"distributions":[],"examples":[]},"design-guide:ink":{"resourceId":"design-guide:ink","title":{"zh":"Ink","en":"Ink"},"docs":{"zh":"# Ink\n\nOverview\n\n## Overview\n\nInk is a dark, calm application surface for generated apps: an ink-blue ground, near-white text\nand one teal primary. Qing is the light companion theme for the same app. Both are switched with\n`html[data-theme]`, so an app ships one stylesheet and never repaints components by hand.\n\n## Colors\n\nFour roles, each a CSS variable: `--background` is the page ground, `--foreground` the text,\n`--primary` the single accent for the main action and the current selection, `--sidebar` the\nnavigation shell. Derive borders and hover surfaces from these with `color-mix()` instead of adding\nnew hues. Status colors come from text and icons, not from new fills.\n\n## Typography\n\nGeist with Noto Sans SC for Chinese, falling back to the system sans. Keep a small ladder (page\ntitle, section title, body, helper) and let weight and spacing carry hierarchy.\n\n## Do's and Don'ts\n\n- Do use `var(--background)`, `var(--foreground)`, `var(--primary)` and `var(--sidebar)`.\n- Do switch themes with `html[data-theme=\"ink\"]` and `html[data-theme=\"qing\"]`.\n- Don't hardcode indigo or violet (`#6366f1`, `#7c3aed`, `#8b5cf6`).\n- Don't set `font-family` to Inter alone.\n- Don't ship a purple-on-white three-card landing page as the default look.","en":"# Ink\n\nOverview\n\n## Overview\n\nInk is a dark, calm application surface for generated apps: an ink-blue ground, near-white text\nand one teal primary. Qing is the light companion theme for the same app. Both are switched with\n`html[data-theme]`, so an app ships one stylesheet and never repaints components by hand.\n\n## Colors\n\nFour roles, each a CSS variable: `--background` is the page ground, `--foreground` the text,\n`--primary` the single accent for the main action and the current selection, `--sidebar` the\nnavigation shell. Derive borders and hover surfaces from these with `color-mix()` instead of adding\nnew hues. Status colors come from text and icons, not from new fills.\n\n## Typography\n\nGeist with Noto Sans SC for Chinese, falling back to the system sans. Keep a small ladder (page\ntitle, section title, body, helper) and let weight and spacing carry hierarchy.\n\n## Do's and Don'ts\n\n- Do use `var(--background)`, `var(--foreground)`, `var(--primary)` and `var(--sidebar)`.\n- Do switch themes with `html[data-theme=\"ink\"]` and `html[data-theme=\"qing\"]`.\n- Don't hardcode indigo or violet (`#6366f1`, `#7c3aed`, `#8b5cf6`).\n- Don't set `font-family` to Inter alone.\n- Don't ship a purple-on-white three-card landing page as the default look."},"distributions":[],"examples":[]},"design-guide:linear-design":{"resourceId":"design-guide:linear-design","title":{"zh":"Linear Design System","en":"Linear Design System"},"docs":{"zh":"# Linear Design System\n\n1. Visual Theme & Atmosphere\n\n## 1. Visual Theme & Atmosphere\n\nLinear feels like a precision instrument: dark, quiet, and fast. The canvas is\nnear-black, surfaces are barely lifted off it, and a single cool indigo carries\nall the energy. Nothing decorative competes for attention — type is tightly\ntracked, borders are hairlines, motion is short and snappy. The mood is\nfocused, engineered, calm under load. Build for keyboard-first power users who\nvalue density without clutter; every pixel should feel intentional and every\ninteraction should feel instant.\n\n## 2. Color Palette & Roles\n\n| Role | Token | Value | Notes |\n| --- | --- | --- | --- |\n| Background | `--bg` | `#08090a` | app canvas, near-black |\n| Surface | `--surface` | `#0f1011` | cards, panels |\n| Surface raised | `--surface-2` | `#16171a` | popovers, menus |\n| Foreground | `--fg` | `#f7f8f8` | primary text |\n| Muted foreground | `--fg-muted` | `#8a8f98` | secondary text, labels |\n| Subtle foreground | `--fg-subtle` | `#62666d` | timestamps, hints |\n| Accent | `--accent` | `#5e6ad2` | primary action, focus |\n| Accent hover | `--accent-hover` | `#6e79e0` | hover state |\n| Accent foreground | `--accent-fg` | `#ffffff` | text on accent |\n| Border | `--border` | `#23252a` | hairlines, dividers |\n| Border strong | `--border-strong` | `#34373d` | input borders |\n| Success | `--success` | `#4cb782` | done, healthy |\n| Warning | `--warning` | `#f2c94c` | attention |\n| Danger | `--danger` | `#eb5757` | destructive, blocked |\n\n## 3. Typography Rules\n\n- **Sans:** `\"Inter\", \"Inter var\", system-ui, -apple-system, sans-serif`\n- **Mono:** `\"Berkeley Mono\", \"SF Mono\", ui-monospace, monospace`\n\nInter is used as a variable font; favor fractional weights for optical balance.\nTracking is consistently negative at display sizes and neutral at body.\n\n| Role | Size | Weight | Line-height | Tracking |\n| --- | --- | --- | --- | --- |\n| Display | `2.5rem` | `560` | `1.05` | `-0.03em` |\n| H1 | `1.75rem` | `538` | `1.1` | `-0.022em` |\n| H2 | `1.3125rem` | `538` | `1.2` | `-0.018em` |\n| H3 | `1.0625rem` | `510` | `1.3` | `-0.012em` |\n| Body | `0.9375rem` | `400` | `1.5` | `-0.006em` |\n| Label | `0.8125rem` | `510` | `1.4` | `-0.004em` |\n| Caption | `0.75rem` | `400` | `1.4` | `0` |\n| Code | `0.8125rem` | `400` | `1.5` | `0` |\n\n## 4. Component Stylings\n\n### Buttons\n\n- **Primary:** bg `#5e6ad2`, text `#ffffff`, radius `0.5rem`, padding\n `0.4375rem 0.75rem`, weight `510`, font-size `0.8125rem`. Hover bg\n `#6e79e0`. Active scale `0.98`. Focus ring `0 0 0 2px rgba(94,106,210,0.4)`.\n- **Secondary:** bg `#16171a`, text `#f7f8f8`, border `1px solid #23252a`.\n Hover bg `#1c1d21`.\n- **Ghost:** transparent bg, text `#8a8f98`. Hover bg `rgba(255,255,255,0.04)`,\n text `#f7f8f8`.\n- **Disabled:** opacity `0.45`, no hover, `cursor: not-allowed`.\n\n### Cards\n\n- bg `#0f1011`, border `1px solid #23252a`, radius `0.75rem`, padding `1rem`.\n- No drop shadow at rest (level 1 only on hover for interactive cards).\n\n### Inputs\n\n- bg `#0f1011`, border `1px solid #34373d`, radius `0.5rem`, height `2rem`,\n padding `0 0.625rem`, text `#f7f8f8`, placeholder `#62666d`.\n- Focus: border `#5e6ad2`, ring `0 0 0 2px rgba(94,106,210,0.3)`.\n\n### Badges\n\n- Pill, radius `9999px`, font-size `0.75rem`, weight `510`, padding\n `0.125rem 0.5rem`. Tinted: bg `rgba(94,106,210,0.14)`, text `#a3abef`.\n\n### Navigation\n\n- Left sidebar, bg `#0c0d0e`, width `13.5rem`. Item height `1.875rem`, radius\n `0.375rem`, text `#8a8f98`. Active: bg `rgba(255,255,255,0.06)`, text\n `#f7f8f8`. Hover: bg `rgba(255,255,255,0.04)`.\n\n## 5. Layout Principles\n\n- **Spacing scale:** `0.25rem · 0.5rem · 0.75rem · 1rem · 1.5rem · 2rem · 3rem`.\n- **Container max-width:** `64rem` for content; full-bleed app shell.\n- **Grid:** 12-column, gutter `1rem`; dense list rows ~`2.25rem` tall.\n- **Whitespace:** tight but breathing — section gaps `1.5rem`, never crowd\n controls.\n- **Radius scale:** `sm 0.375rem · md 0.5rem · lg 0.75rem · xl 1rem · full 9999px`.\n\n## 6. Depth & Elevation\n\nElevation is deliberately restrained — depth comes from borders and subtle\nbackground steps, not heavy shadows.\n\n| Level | Use | Shadow |\n| --- | --- | --- |\n| 0 | flat surfaces | `none` |\n| 1 | hovered card | `0 1px 2px rgba(0,0,0,0.3)` |\n| 2 | dropdown, popover | `0 4px 16px rgba(0,0,0,0.4)` |\n| 3 | modal, command menu | `0 16px 48px rgba(0,0,0,0.55)` |\n\n## 7. Do's and Don'ts\n\n**Do**\n\n- Keep the canvas near-black and lift surfaces only one or two steps.\n- Use indigo `#5e6ad2` sparingly as the single source of color energy.\n- Apply negative tracking to headings; keep body close to neutral.\n- Prefer hairline borders and subtle background steps over shadows.\n- Keep motion under 150ms and use ease-out.\n\n**Don't**\n\n- Don't introduce a second saturated accent color.\n- Don't use pure black `#000000` or pure white `#ffffff` for large fills.\n- Don't add large drop shadows or glows on resting surfaces.\n- Don't loosen letter-spacing or use rounded, friendly type.\n- Don't pad controls generously — density is the point.\n\n## 8. Responsive Behavior\n\n| Breakpoint | Min width | Behavior |\n| --- | --- | --- |\n| `sm` | `640px` | sidebar collapses to icon rail or drawer |\n| `md` | `768px` | two-pane (list + detail) |\n| `lg` | `1024px` | full three-region shell (nav + list + detail) |\n| `xl` | `1280px` | wider detail pane, persistent peek panel |\n\n- **Touch targets:** minimum `36px` height for rows, `44px` for primary\n controls on touch.\n- **Collapsing strategy:** detail pane stacks below list on `sm`; sidebar\n becomes an overlay drawer; keep dense rows but increase tap height.\n\n## 9. Agent Prompt Guide\n\n### Quick Color Reference\n\n- Accent: `#5e6ad2` (hover `#6e79e0`)\n- Background: `#08090a` · Surface: `#0f1011` · Raised: `#16171a`\n- Text: `#f7f8f8` · Muted: `#8a8f98` · Subtle: `#62666d`\n- Border: `#23252a` (strong `#34373d`)\n- Success `#4cb782` · Warning `#f2c94c` · Danger `#eb5757`\n\n### Example prompts (copy-paste)\n\n1. \"Generate an issue-list row in the Linear system: near-black canvas\n `#08090a`, `0.9375rem` Inter at weight 400 with `-0.006em` tracking, a\n `9999px` status badge tinted `rgba(94,106,210,0.14)`/`#a3abef`, a `36px`\n tall row with a `rgba(255,255,255,0.06)` hover, hairline `#23252a` divider.\"\n2. \"Build a command-menu (cmd-k) modal: surface `#16171a`, radius `0.75rem`,\n level-3 shadow `0 16px 48px rgba(0,0,0,0.55)`, search input with focus border\n `#5e6ad2` and ring `rgba(94,106,210,0.3)`, results in muted `#8a8f98` with\n the active item highlighted on a `rgba(255,255,255,0.06)` background.\"\n3. \"Create a primary + secondary button pair: primary bg `#5e6ad2` / text white\n / radius `0.5rem` / weight `510` / `0.4375rem 0.75rem` padding / active scale\n `0.98`; secondary bg `#16171a` with a `1px #23252a` border. Both `0.8125rem`.\"\n\n### Iteration guide\n\n1. Start dark: lock background `#08090a` and one surface step `#0f1011`.\n2. Add exactly one accent (`#5e6ad2`); resist a second hue.\n3. Tighten type — apply negative tracking and Inter fractional weights.\n4. Replace any shadows on resting elements with hairline borders.\n5. Compress spacing toward the dense end of the scale; verify rows ≤ `36px`.","en":"# Linear Design System\n\n1. Visual Theme & Atmosphere\n\n## 1. Visual Theme & Atmosphere\n\nLinear feels like a precision instrument: dark, quiet, and fast. The canvas is\nnear-black, surfaces are barely lifted off it, and a single cool indigo carries\nall the energy. Nothing decorative competes for attention — type is tightly\ntracked, borders are hairlines, motion is short and snappy. The mood is\nfocused, engineered, calm under load. Build for keyboard-first power users who\nvalue density without clutter; every pixel should feel intentional and every\ninteraction should feel instant.\n\n## 2. Color Palette & Roles\n\n| Role | Token | Value | Notes |\n| --- | --- | --- | --- |\n| Background | `--bg` | `#08090a` | app canvas, near-black |\n| Surface | `--surface` | `#0f1011` | cards, panels |\n| Surface raised | `--surface-2` | `#16171a` | popovers, menus |\n| Foreground | `--fg` | `#f7f8f8` | primary text |\n| Muted foreground | `--fg-muted` | `#8a8f98` | secondary text, labels |\n| Subtle foreground | `--fg-subtle` | `#62666d` | timestamps, hints |\n| Accent | `--accent` | `#5e6ad2` | primary action, focus |\n| Accent hover | `--accent-hover` | `#6e79e0` | hover state |\n| Accent foreground | `--accent-fg` | `#ffffff` | text on accent |\n| Border | `--border` | `#23252a` | hairlines, dividers |\n| Border strong | `--border-strong` | `#34373d` | input borders |\n| Success | `--success` | `#4cb782` | done, healthy |\n| Warning | `--warning` | `#f2c94c` | attention |\n| Danger | `--danger` | `#eb5757` | destructive, blocked |\n\n## 3. Typography Rules\n\n- **Sans:** `\"Inter\", \"Inter var\", system-ui, -apple-system, sans-serif`\n- **Mono:** `\"Berkeley Mono\", \"SF Mono\", ui-monospace, monospace`\n\nInter is used as a variable font; favor fractional weights for optical balance.\nTracking is consistently negative at display sizes and neutral at body.\n\n| Role | Size | Weight | Line-height | Tracking |\n| --- | --- | --- | --- | --- |\n| Display | `2.5rem` | `560` | `1.05` | `-0.03em` |\n| H1 | `1.75rem` | `538` | `1.1` | `-0.022em` |\n| H2 | `1.3125rem` | `538` | `1.2` | `-0.018em` |\n| H3 | `1.0625rem` | `510` | `1.3` | `-0.012em` |\n| Body | `0.9375rem` | `400` | `1.5` | `-0.006em` |\n| Label | `0.8125rem` | `510` | `1.4` | `-0.004em` |\n| Caption | `0.75rem` | `400` | `1.4` | `0` |\n| Code | `0.8125rem` | `400` | `1.5` | `0` |\n\n## 4. Component Stylings\n\n### Buttons\n\n- **Primary:** bg `#5e6ad2`, text `#ffffff`, radius `0.5rem`, padding\n `0.4375rem 0.75rem`, weight `510`, font-size `0.8125rem`. Hover bg\n `#6e79e0`. Active scale `0.98`. Focus ring `0 0 0 2px rgba(94,106,210,0.4)`.\n- **Secondary:** bg `#16171a`, text `#f7f8f8`, border `1px solid #23252a`.\n Hover bg `#1c1d21`.\n- **Ghost:** transparent bg, text `#8a8f98`. Hover bg `rgba(255,255,255,0.04)`,\n text `#f7f8f8`.\n- **Disabled:** opacity `0.45`, no hover, `cursor: not-allowed`.\n\n### Cards\n\n- bg `#0f1011`, border `1px solid #23252a`, radius `0.75rem`, padding `1rem`.\n- No drop shadow at rest (level 1 only on hover for interactive cards).\n\n### Inputs\n\n- bg `#0f1011`, border `1px solid #34373d`, radius `0.5rem`, height `2rem`,\n padding `0 0.625rem`, text `#f7f8f8`, placeholder `#62666d`.\n- Focus: border `#5e6ad2`, ring `0 0 0 2px rgba(94,106,210,0.3)`.\n\n### Badges\n\n- Pill, radius `9999px`, font-size `0.75rem`, weight `510`, padding\n `0.125rem 0.5rem`. Tinted: bg `rgba(94,106,210,0.14)`, text `#a3abef`.\n\n### Navigation\n\n- Left sidebar, bg `#0c0d0e`, width `13.5rem`. Item height `1.875rem`, radius\n `0.375rem`, text `#8a8f98`. Active: bg `rgba(255,255,255,0.06)`, text\n `#f7f8f8`. Hover: bg `rgba(255,255,255,0.04)`.\n\n## 5. Layout Principles\n\n- **Spacing scale:** `0.25rem · 0.5rem · 0.75rem · 1rem · 1.5rem · 2rem · 3rem`.\n- **Container max-width:** `64rem` for content; full-bleed app shell.\n- **Grid:** 12-column, gutter `1rem`; dense list rows ~`2.25rem` tall.\n- **Whitespace:** tight but breathing — section gaps `1.5rem`, never crowd\n controls.\n- **Radius scale:** `sm 0.375rem · md 0.5rem · lg 0.75rem · xl 1rem · full 9999px`.\n\n## 6. Depth & Elevation\n\nElevation is deliberately restrained — depth comes from borders and subtle\nbackground steps, not heavy shadows.\n\n| Level | Use | Shadow |\n| --- | --- | --- |\n| 0 | flat surfaces | `none` |\n| 1 | hovered card | `0 1px 2px rgba(0,0,0,0.3)` |\n| 2 | dropdown, popover | `0 4px 16px rgba(0,0,0,0.4)` |\n| 3 | modal, command menu | `0 16px 48px rgba(0,0,0,0.55)` |\n\n## 7. Do's and Don'ts\n\n**Do**\n\n- Keep the canvas near-black and lift surfaces only one or two steps.\n- Use indigo `#5e6ad2` sparingly as the single source of color energy.\n- Apply negative tracking to headings; keep body close to neutral.\n- Prefer hairline borders and subtle background steps over shadows.\n- Keep motion under 150ms and use ease-out.\n\n**Don't**\n\n- Don't introduce a second saturated accent color.\n- Don't use pure black `#000000` or pure white `#ffffff` for large fills.\n- Don't add large drop shadows or glows on resting surfaces.\n- Don't loosen letter-spacing or use rounded, friendly type.\n- Don't pad controls generously — density is the point.\n\n## 8. Responsive Behavior\n\n| Breakpoint | Min width | Behavior |\n| --- | --- | --- |\n| `sm` | `640px` | sidebar collapses to icon rail or drawer |\n| `md` | `768px` | two-pane (list + detail) |\n| `lg` | `1024px` | full three-region shell (nav + list + detail) |\n| `xl` | `1280px` | wider detail pane, persistent peek panel |\n\n- **Touch targets:** minimum `36px` height for rows, `44px` for primary\n controls on touch.\n- **Collapsing strategy:** detail pane stacks below list on `sm`; sidebar\n becomes an overlay drawer; keep dense rows but increase tap height.\n\n## 9. Agent Prompt Guide\n\n### Quick Color Reference\n\n- Accent: `#5e6ad2` (hover `#6e79e0`)\n- Background: `#08090a` · Surface: `#0f1011` · Raised: `#16171a`\n- Text: `#f7f8f8` · Muted: `#8a8f98` · Subtle: `#62666d`\n- Border: `#23252a` (strong `#34373d`)\n- Success `#4cb782` · Warning `#f2c94c` · Danger `#eb5757`\n\n### Example prompts (copy-paste)\n\n1. \"Generate an issue-list row in the Linear system: near-black canvas\n `#08090a`, `0.9375rem` Inter at weight 400 with `-0.006em` tracking, a\n `9999px` status badge tinted `rgba(94,106,210,0.14)`/`#a3abef`, a `36px`\n tall row with a `rgba(255,255,255,0.06)` hover, hairline `#23252a` divider.\"\n2. \"Build a command-menu (cmd-k) modal: surface `#16171a`, radius `0.75rem`,\n level-3 shadow `0 16px 48px rgba(0,0,0,0.55)`, search input with focus border\n `#5e6ad2` and ring `rgba(94,106,210,0.3)`, results in muted `#8a8f98` with\n the active item highlighted on a `rgba(255,255,255,0.06)` background.\"\n3. \"Create a primary + secondary button pair: primary bg `#5e6ad2` / text white\n / radius `0.5rem` / weight `510` / `0.4375rem 0.75rem` padding / active scale\n `0.98`; secondary bg `#16171a` with a `1px #23252a` border. Both `0.8125rem`.\"\n\n### Iteration guide\n\n1. Start dark: lock background `#08090a` and one surface step `#0f1011`.\n2. Add exactly one accent (`#5e6ad2`); resist a second hue.\n3. Tighten type — apply negative tracking and Inter fractional weights.\n4. Replace any shadows on resting elements with hairline borders.\n5. Compress spacing toward the dense end of the scale; verify rows ≤ `36px`."},"distributions":[],"examples":[]},"design-guide:notion-design":{"resourceId":"design-guide:notion-design","title":{"zh":"Notion Design System","en":"Notion Design System"},"docs":{"zh":"# Notion Design System\n\n1. Visual Theme & Atmosphere\n\n## 1. Visual Theme & Atmosphere\n\nNotion feels like a calm, well-lit page — paper-like, warm, and unhurried. The\nbackground is an off-white that's easy on the eyes, ink is a soft near-black, and\ncolor appears only as gentle highlight tints. Serif type adds an editorial,\ndocumentary warmth at headings while a humanist sans keeps the body friendly.\nChrome recedes; content leads. Borders are barely-there, radii are soft, and\ninteraction states are quiet. Build interfaces that feel like a thoughtfully\ntypeset notebook: approachable, flexible, and content-first.\n\n## 2. Color Palette & Roles\n\n| Role | Token | Value | Notes |\n| --- | --- | --- | --- |\n| Background | `--bg` | `#ffffff` | page |\n| Background warm | `--bg-warm` | `#f7f6f3` | sidebar, soft panels |\n| Surface | `--surface` | `#ffffff` | cards, blocks |\n| Foreground | `--fg` | `#37352f` | primary ink, warm near-black |\n| Muted foreground | `--fg-muted` | `#787066` | secondary text |\n| Subtle foreground | `--fg-subtle` | `#9b9588` | placeholders, meta |\n| Accent | `--accent` | `#2383e2` | links, primary action (Notion blue) |\n| Accent foreground | `--accent-fg` | `#ffffff` | text on accent |\n| Border | `--border` | `#ebeae8` | hairlines |\n| Highlight yellow | `--hl-yellow` | `#fbf3db` | text highlight |\n| Highlight blue | `--hl-blue` | `#e7f3f8` | callout/highlight |\n| Success | `--success` | `#448361` | done |\n| Warning | `--warning` | `#cb912f` | caution |\n| Danger | `--danger` | `#d44c47` | error, delete |\n\n## 3. Typography Rules\n\n- **Serif (headings/accents):** `\"Lyon\", \"Georgia\", \"Times New Roman\", serif`\n- **Sans (body/UI):** `\"Inter\", -apple-system, \"Segoe UI\", sans-serif`\n- **Mono:** `\"iA Writer Mono\", \"SF Mono\", ui-monospace, monospace`\n\nHeadings may use the serif for editorial warmth; UI and body use the humanist\nsans. Generous line-height keeps long documents comfortable.\n\n| Role | Size | Weight | Line-height | Tracking | Family |\n| --- | --- | --- | --- | --- | --- |\n| Title | `2.5rem` | `700` | `1.2` | `-0.01em` | serif |\n| H1 | `1.875rem` | `600` | `1.3` | `-0.005em` | serif |\n| H2 | `1.5rem` | `600` | `1.3` | `0` | serif |\n| H3 | `1.25rem` | `600` | `1.4` | `0` | sans |\n| Body | `1rem` | `400` | `1.65` | `0` | sans |\n| Small | `0.875rem` | `400` | `1.5` | `0` | sans |\n| Caption | `0.75rem` | `400` | `1.4` | `0.01em` | sans |\n| Code | `0.85rem` | `400` | `1.5` | `0` | mono |\n\n## 4. Component Stylings\n\n### Buttons\n\n- **Primary:** bg `#2383e2`, text `#ffffff`, radius `0.375rem`, padding\n `0.375rem 0.75rem`, weight `500`, font-size `0.875rem`. Hover bg `#1a73d1`.\n Focus ring `0 0 0 2px rgba(35,131,226,0.3)`.\n- **Subtle (default UI):** bg `transparent`, text `#37352f`. Hover bg\n `rgba(55,53,47,0.06)`. This is the most common button in product chrome.\n- **Disabled:** opacity `0.5`.\n\n### Cards / Blocks\n\n- bg `#ffffff`, radius `0.5rem`, padding `1rem`, border `1px solid #ebeae8`.\n- Callouts: tinted bg (`#f7f6f3` / `#e7f3f8`), radius `0.375rem`, padding\n `1rem`, with a leading emoji/icon slot.\n\n### Inputs\n\n- bg `#ffffff`, border `1px solid #ebeae8`, radius `0.375rem`, height `2.25rem`,\n padding `0 0.625rem`, text `#37352f`, placeholder `#9b9588`.\n- Focus: border `#2383e2`, ring `0 0 0 2px rgba(35,131,226,0.2)`.\n- Inline editing: borderless until hover (bg `rgba(55,53,47,0.04)`).\n\n### Badges / Tags\n\n- Pill, radius `0.25rem`, font-size `0.75rem`, weight `500`, padding\n `0.0625rem 0.375rem`. Soft tints, e.g. bg `#fbf3db`, text `#7a5c1e`.\n\n### Navigation\n\n- Left sidebar, bg `#f7f6f3`, width `15rem`. Item height `1.75rem`, radius\n `0.375rem`, text `#787066`. Hover bg `rgba(55,53,47,0.06)`. Active bg\n `rgba(55,53,47,0.08)`, text `#37352f`.\n\n## 5. Layout Principles\n\n- **Spacing scale:** `0.25rem · 0.5rem · 0.75rem · 1rem · 1.5rem · 2rem · 3rem`.\n- **Container max-width:** `45rem` for reading documents; full-width app shell.\n- **Grid:** content is single-column and centered; optional 2–3 column block\n galleries with `0.75rem` gaps.\n- **Whitespace:** soft and even; comfortable reading measure (~70ch).\n- **Radius scale:** `sm 0.25rem · md 0.375rem · lg 0.5rem · xl 0.75rem`.\n\n## 6. Depth & Elevation\n\nDepth is minimal and warm — content sits on the page, popovers lift gently.\n\n| Level | Use | Shadow |\n| --- | --- | --- |\n| 0 | inline content | `none` |\n| 1 | hovered block | `0 1px 2px rgba(15,15,15,0.08)` |\n| 2 | popover, menu | `0 3px 12px rgba(15,15,15,0.12)` |\n| 3 | modal, page peek | `0 12px 36px rgba(15,15,15,0.16)` |\n\n## 7. Do's and Don'ts\n\n**Do**\n\n- Use warm neutrals (`#ffffff` / `#f7f6f3`) and warm ink `#37352f`.\n- Let content lead; keep chrome quiet and borders barely-there.\n- Reach for serif at titles/headings for editorial warmth.\n- Use soft tint highlights (`#fbf3db`, `#e7f3f8`) for callouts and tags.\n- Keep generous line-height (`1.65`) for readable documents.\n\n**Don't**\n\n- Don't use cold pure-gray neutrals or stark pure black `#000000`.\n- Don't over-border or box every element; prefer hover-revealed affordances.\n- Don't use heavy shadows or saturated fills on content blocks.\n- Don't crowd the reading measure beyond ~75 characters.\n- Don't let UI chrome compete visually with the content.\n\n## 8. Responsive Behavior\n\n| Breakpoint | Min width | Behavior |\n| --- | --- | --- |\n| `sm` | `640px` | sidebar collapses to drawer; single-column doc |\n| `md` | `768px` | persistent sidebar peek; doc centered |\n| `lg` | `1024px` | full sidebar + centered `45rem` reading column |\n| `xl` | `1280px` | wider gallery grids, comments panel |\n\n- **Touch targets:** minimum `36px` for list rows, `44px` for primary controls.\n- **Collapsing strategy:** sidebar becomes an overlay drawer below `md`; block\n galleries stack to one column; keep the reading measure centered and calm.\n\n## 9. Agent Prompt Guide\n\n### Quick Color Reference\n\n- Accent (Notion blue): `#2383e2`\n- Background: `#ffffff` · Warm panel: `#f7f6f3`\n- Ink: `#37352f` · Muted: `#787066` · Subtle: `#9b9588`\n- Border: `#ebeae8`\n- Highlights: yellow `#fbf3db` · blue `#e7f3f8`\n- Success `#448361` · Warning `#cb912f` · Danger `#d44c47`\n\n### Example prompts (copy-paste)\n\n1. \"Generate a document page in the Notion system: warm `#ffffff` canvas, a\n serif title at `2.5rem`/700, body in Inter `1rem`/`1.65` line-height in warm\n ink `#37352f`, centered to a `45rem` reading column with a calm, chrome-light\n feel.\"\n2. \"Build a callout block: tinted bg `#e7f3f8`, radius `0.375rem`, `1rem`\n padding, a leading emoji slot, body text `#37352f`, no hard border. Keep it\n soft and editorial.\"\n3. \"Create a left sidebar nav: `#f7f6f3` panel, `15rem` wide, rows `1.75rem`\n tall with `0.375rem` radius, text `#787066`, hover `rgba(55,53,47,0.06)`,\n active `rgba(55,53,47,0.08)` with ink `#37352f`.\"\n\n### Iteration guide\n\n1. Warm the neutrals: replace cold grays with `#ffffff`/`#f7f6f3` and ink\n `#37352f`.\n2. Promote content: shrink and quiet the chrome, reveal affordances on hover.\n3. Add serif at titles/headings for editorial character.\n4. Apply soft tint highlights for callouts/tags instead of saturated fills.\n5. Loosen line-height to `1.65` and constrain the reading measure.","en":"# Notion Design System\n\n1. Visual Theme & Atmosphere\n\n## 1. Visual Theme & Atmosphere\n\nNotion feels like a calm, well-lit page — paper-like, warm, and unhurried. The\nbackground is an off-white that's easy on the eyes, ink is a soft near-black, and\ncolor appears only as gentle highlight tints. Serif type adds an editorial,\ndocumentary warmth at headings while a humanist sans keeps the body friendly.\nChrome recedes; content leads. Borders are barely-there, radii are soft, and\ninteraction states are quiet. Build interfaces that feel like a thoughtfully\ntypeset notebook: approachable, flexible, and content-first.\n\n## 2. Color Palette & Roles\n\n| Role | Token | Value | Notes |\n| --- | --- | --- | --- |\n| Background | `--bg` | `#ffffff` | page |\n| Background warm | `--bg-warm` | `#f7f6f3` | sidebar, soft panels |\n| Surface | `--surface` | `#ffffff` | cards, blocks |\n| Foreground | `--fg` | `#37352f` | primary ink, warm near-black |\n| Muted foreground | `--fg-muted` | `#787066` | secondary text |\n| Subtle foreground | `--fg-subtle` | `#9b9588` | placeholders, meta |\n| Accent | `--accent` | `#2383e2` | links, primary action (Notion blue) |\n| Accent foreground | `--accent-fg` | `#ffffff` | text on accent |\n| Border | `--border` | `#ebeae8` | hairlines |\n| Highlight yellow | `--hl-yellow` | `#fbf3db` | text highlight |\n| Highlight blue | `--hl-blue` | `#e7f3f8` | callout/highlight |\n| Success | `--success` | `#448361` | done |\n| Warning | `--warning` | `#cb912f` | caution |\n| Danger | `--danger` | `#d44c47` | error, delete |\n\n## 3. Typography Rules\n\n- **Serif (headings/accents):** `\"Lyon\", \"Georgia\", \"Times New Roman\", serif`\n- **Sans (body/UI):** `\"Inter\", -apple-system, \"Segoe UI\", sans-serif`\n- **Mono:** `\"iA Writer Mono\", \"SF Mono\", ui-monospace, monospace`\n\nHeadings may use the serif for editorial warmth; UI and body use the humanist\nsans. Generous line-height keeps long documents comfortable.\n\n| Role | Size | Weight | Line-height | Tracking | Family |\n| --- | --- | --- | --- | --- | --- |\n| Title | `2.5rem` | `700` | `1.2` | `-0.01em` | serif |\n| H1 | `1.875rem` | `600` | `1.3` | `-0.005em` | serif |\n| H2 | `1.5rem` | `600` | `1.3` | `0` | serif |\n| H3 | `1.25rem` | `600` | `1.4` | `0` | sans |\n| Body | `1rem` | `400` | `1.65` | `0` | sans |\n| Small | `0.875rem` | `400` | `1.5` | `0` | sans |\n| Caption | `0.75rem` | `400` | `1.4` | `0.01em` | sans |\n| Code | `0.85rem` | `400` | `1.5` | `0` | mono |\n\n## 4. Component Stylings\n\n### Buttons\n\n- **Primary:** bg `#2383e2`, text `#ffffff`, radius `0.375rem`, padding\n `0.375rem 0.75rem`, weight `500`, font-size `0.875rem`. Hover bg `#1a73d1`.\n Focus ring `0 0 0 2px rgba(35,131,226,0.3)`.\n- **Subtle (default UI):** bg `transparent`, text `#37352f`. Hover bg\n `rgba(55,53,47,0.06)`. This is the most common button in product chrome.\n- **Disabled:** opacity `0.5`.\n\n### Cards / Blocks\n\n- bg `#ffffff`, radius `0.5rem`, padding `1rem`, border `1px solid #ebeae8`.\n- Callouts: tinted bg (`#f7f6f3` / `#e7f3f8`), radius `0.375rem`, padding\n `1rem`, with a leading emoji/icon slot.\n\n### Inputs\n\n- bg `#ffffff`, border `1px solid #ebeae8`, radius `0.375rem`, height `2.25rem`,\n padding `0 0.625rem`, text `#37352f`, placeholder `#9b9588`.\n- Focus: border `#2383e2`, ring `0 0 0 2px rgba(35,131,226,0.2)`.\n- Inline editing: borderless until hover (bg `rgba(55,53,47,0.04)`).\n\n### Badges / Tags\n\n- Pill, radius `0.25rem`, font-size `0.75rem`, weight `500`, padding\n `0.0625rem 0.375rem`. Soft tints, e.g. bg `#fbf3db`, text `#7a5c1e`.\n\n### Navigation\n\n- Left sidebar, bg `#f7f6f3`, width `15rem`. Item height `1.75rem`, radius\n `0.375rem`, text `#787066`. Hover bg `rgba(55,53,47,0.06)`. Active bg\n `rgba(55,53,47,0.08)`, text `#37352f`.\n\n## 5. Layout Principles\n\n- **Spacing scale:** `0.25rem · 0.5rem · 0.75rem · 1rem · 1.5rem · 2rem · 3rem`.\n- **Container max-width:** `45rem` for reading documents; full-width app shell.\n- **Grid:** content is single-column and centered; optional 2–3 column block\n galleries with `0.75rem` gaps.\n- **Whitespace:** soft and even; comfortable reading measure (~70ch).\n- **Radius scale:** `sm 0.25rem · md 0.375rem · lg 0.5rem · xl 0.75rem`.\n\n## 6. Depth & Elevation\n\nDepth is minimal and warm — content sits on the page, popovers lift gently.\n\n| Level | Use | Shadow |\n| --- | --- | --- |\n| 0 | inline content | `none` |\n| 1 | hovered block | `0 1px 2px rgba(15,15,15,0.08)` |\n| 2 | popover, menu | `0 3px 12px rgba(15,15,15,0.12)` |\n| 3 | modal, page peek | `0 12px 36px rgba(15,15,15,0.16)` |\n\n## 7. Do's and Don'ts\n\n**Do**\n\n- Use warm neutrals (`#ffffff` / `#f7f6f3`) and warm ink `#37352f`.\n- Let content lead; keep chrome quiet and borders barely-there.\n- Reach for serif at titles/headings for editorial warmth.\n- Use soft tint highlights (`#fbf3db`, `#e7f3f8`) for callouts and tags.\n- Keep generous line-height (`1.65`) for readable documents.\n\n**Don't**\n\n- Don't use cold pure-gray neutrals or stark pure black `#000000`.\n- Don't over-border or box every element; prefer hover-revealed affordances.\n- Don't use heavy shadows or saturated fills on content blocks.\n- Don't crowd the reading measure beyond ~75 characters.\n- Don't let UI chrome compete visually with the content.\n\n## 8. Responsive Behavior\n\n| Breakpoint | Min width | Behavior |\n| --- | --- | --- |\n| `sm` | `640px` | sidebar collapses to drawer; single-column doc |\n| `md` | `768px` | persistent sidebar peek; doc centered |\n| `lg` | `1024px` | full sidebar + centered `45rem` reading column |\n| `xl` | `1280px` | wider gallery grids, comments panel |\n\n- **Touch targets:** minimum `36px` for list rows, `44px` for primary controls.\n- **Collapsing strategy:** sidebar becomes an overlay drawer below `md`; block\n galleries stack to one column; keep the reading measure centered and calm.\n\n## 9. Agent Prompt Guide\n\n### Quick Color Reference\n\n- Accent (Notion blue): `#2383e2`\n- Background: `#ffffff` · Warm panel: `#f7f6f3`\n- Ink: `#37352f` · Muted: `#787066` · Subtle: `#9b9588`\n- Border: `#ebeae8`\n- Highlights: yellow `#fbf3db` · blue `#e7f3f8`\n- Success `#448361` · Warning `#cb912f` · Danger `#d44c47`\n\n### Example prompts (copy-paste)\n\n1. \"Generate a document page in the Notion system: warm `#ffffff` canvas, a\n serif title at `2.5rem`/700, body in Inter `1rem`/`1.65` line-height in warm\n ink `#37352f`, centered to a `45rem` reading column with a calm, chrome-light\n feel.\"\n2. \"Build a callout block: tinted bg `#e7f3f8`, radius `0.375rem`, `1rem`\n padding, a leading emoji slot, body text `#37352f`, no hard border. Keep it\n soft and editorial.\"\n3. \"Create a left sidebar nav: `#f7f6f3` panel, `15rem` wide, rows `1.75rem`\n tall with `0.375rem` radius, text `#787066`, hover `rgba(55,53,47,0.06)`,\n active `rgba(55,53,47,0.08)` with ink `#37352f`.\"\n\n### Iteration guide\n\n1. Warm the neutrals: replace cold grays with `#ffffff`/`#f7f6f3` and ink\n `#37352f`.\n2. Promote content: shrink and quiet the chrome, reveal affordances on hover.\n3. Add serif at titles/headings for editorial character.\n4. Apply soft tint highlights for callouts/tags instead of saturated fills.\n5. Loosen line-height to `1.65` and constrain the reading measure."},"distributions":[],"examples":[]},"design-guide:paper":{"resourceId":"design-guide:paper","title":{"zh":"Paper","en":"Paper"},"docs":{"zh":"# Paper\n\nOverview\n\n## Overview\n\nPaper is a warm, light reading surface for generated apps: a soft paper ground, ink-brown text and\none restrained brown accent. Prefer it for documents, forms and content-heavy tools where a cool or\ndark chrome would compete with the content.\n\n## Colors\n\nFour roles, each a CSS variable: `--background` is the paper ground, `--foreground` the ink text,\n`--primary` the single accent for the main action and the current selection, `--sidebar` the slightly\ndarker navigation shell. Borders and hover states mix these with `color-mix()`; do not add new hues.\n\n## Typography\n\nGeist with Noto Sans SC for Chinese, falling back to the system sans. Generous line height for\nreading; hierarchy comes from size and weight, not from color.\n\n## Do's and Don'ts\n\n- Do use `var(--background)`, `var(--foreground)`, `var(--primary)` and `var(--sidebar)`.\n- Do switch themes with `html[data-theme=\"paper\"]`.\n- Don't hardcode indigo or violet (`#6366f1`, `#7c3aed`, `#8b5cf6`).\n- Don't set `font-family` to Inter alone.\n- Don't ship a purple-on-white three-card landing page as the default look.","en":"# Paper\n\nOverview\n\n## Overview\n\nPaper is a warm, light reading surface for generated apps: a soft paper ground, ink-brown text and\none restrained brown accent. Prefer it for documents, forms and content-heavy tools where a cool or\ndark chrome would compete with the content.\n\n## Colors\n\nFour roles, each a CSS variable: `--background` is the paper ground, `--foreground` the ink text,\n`--primary` the single accent for the main action and the current selection, `--sidebar` the slightly\ndarker navigation shell. Borders and hover states mix these with `color-mix()`; do not add new hues.\n\n## Typography\n\nGeist with Noto Sans SC for Chinese, falling back to the system sans. Generous line height for\nreading; hierarchy comes from size and weight, not from color.\n\n## Do's and Don'ts\n\n- Do use `var(--background)`, `var(--foreground)`, `var(--primary)` and `var(--sidebar)`.\n- Do switch themes with `html[data-theme=\"paper\"]`.\n- Don't hardcode indigo or violet (`#6366f1`, `#7c3aed`, `#8b5cf6`).\n- Don't set `font-family` to Inter alone.\n- Don't ship a purple-on-white three-card landing page as the default look."},"distributions":[],"examples":[]},"design-guide:raycast-design":{"resourceId":"design-guide:raycast-design","title":{"zh":"Raycast Design System","en":"Raycast Design System"},"docs":{"zh":"# Raycast Design System\n\nAdapted from the public VoltAgent awesome-design-md Raycast analysis (MIT).\n\nAdapted from the public VoltAgent awesome-design-md Raycast analysis (MIT).\nTokens below are the publicly documented marketing/product chrome from that\nfile, rewritten as a UIBot 9-section seed with Spec recipes. Not a verbatim\ncopy of the upstream DESIGN.md.\n\n## 1. Visual Theme & Atmosphere\n\nRaycast reads as an extended product screenshot: near-black canvas, command\npalette chrome at marketing scale, hairline borders, and rare saturated\ncategory accents. The page never leaves dark mode. Energy comes from a red\ndiagonal hero stripe and real UI captures, not from purple SaaS gradients.\n\n## 2. Color Palette & Roles\n\n| Role | Token | Value | Notes |\n| --- | --- | --- | --- |\n| Background | `--bg` | `#07080a` | inky canvas |\n| Surface | `--surface` | `#0d0d0d` | panels |\n| Surface raised | `--surface-2` | `#101111` | elevated chrome |\n| Card | `--surface-card` | `#121212` | palette rows |\n| Foreground | `--fg` | `#f4f4f6` | ink |\n| Body | `--fg-body` | `#cdcdcd` | secondary |\n| Muted | `--fg-muted` | `#9c9c9d` | meta |\n| Border | `--border` | `#242728` | 1px hairline |\n| CTA | `--cta` | `#ffffff` | white pill on dark |\n| CTA ink | `--cta-fg` | `#000000` | |\n| Accent red | `--accent-red` | `#ff6161` | hero stripe / danger |\n| Accent yellow | `--accent-yellow` | `#ffc533` | category |\n| Accent green | `--accent-green` | `#59d499` | category |\n| Accent blue | `--accent-blue` | `#57c1ff` | category |\n\n## 3. Typography Rules\n\nUpstream marketing uses Inter with `ss03`. For UIBot, prefer a quiet grotesque\nalready in the runtime (or Geist) rather than inventing a new webfont. Keep\nthe **product** scale tight:\n\n| Role | Size | Weight | Line-height |\n| --- | --- | --- | --- |\n| Display | `3.5rem` | `600` | `1.1` |\n| H1 | `1.5rem` | `500` | `1.2` |\n| Body | `1rem` | `400` | `1.6` |\n| Meta | `0.875rem` | `500` | `1.4` |\n\n## 4. Component Stylings\n\n- Primary CTA: white pill (`rounded-full`), black label. One per hero.\n- Cards: 6–10px radius, 1px `#242728`, no heavy shadow.\n- Command-row recipe: icon slot + title + shortcut kbd on the right.\n- Category color is for tiles/illustrations, not for every badge.\n\n```yaml\n- type: Box\n props:\n className: \"rounded-[10px] border border-[#242728] bg-[#121212] px-3 py-2 flex items-center gap-3\"\n children:\n - type: Paragraph\n props: { text: \"Switch Window\" }\n - type: Badge\n props: { text: \"⌘ Tab\" }\n```\n\n## 5. Layout Principles\n\n- Continuous dark canvas. Section rhythm ~ `6rem` on marketing; `0.5–0.75rem`\n inside a palette.\n- Max content ~ `72rem`. Hero can full-bleed the red stripe.\n- Radius scale: `6px` / `10px` / pill.\n\n## 6. Depth & Elevation\n\nAlmost flat. Surfaces step `#07080a → #0d0d0d → #121212`. No drop-shadow\nladders. Focus is a 1px light hairline or accent ring.\n\n## 7. Do's and Don'ts\n\n- Do: command-palette density, keyboard hints, monochrome chrome.\n- Do: one white pill CTA; saturate only category art.\n- Don't: light-mode marketing, purple gradient hero, Inter-as-personality\n without the dark palette around it.\n- Don't: fake extension counts or store ratings.\n\n## 8. Responsive Behavior\n\n375: stack hero, hide shortcut kbd or wrap. 768: two-column feature tiles.\n1440: palette mock + copy rail. Touch targets ≥ 44px outside the dense list.\n\nQuick tokens: `--bg: #07080a` `--surface-card: #121212` `--cta: #ffffff` `--accent-red: #ff6161`\n\n## 9. Agent Prompt Guide\n\nUse for launcher / command palette / dark developer-tool chrome. Quick colors:\n`#07080a` `#121212` `#ffffff` `#ff6161`. Prefer `Box` + `Badge` + `Input` over\ncustom CSS. If the brief is a bright landing page, pick another brand.","en":"# Raycast Design System\n\nAdapted from the public VoltAgent awesome-design-md Raycast analysis (MIT).\n\nAdapted from the public VoltAgent awesome-design-md Raycast analysis (MIT).\nTokens below are the publicly documented marketing/product chrome from that\nfile, rewritten as a UIBot 9-section seed with Spec recipes. Not a verbatim\ncopy of the upstream DESIGN.md.\n\n## 1. Visual Theme & Atmosphere\n\nRaycast reads as an extended product screenshot: near-black canvas, command\npalette chrome at marketing scale, hairline borders, and rare saturated\ncategory accents. The page never leaves dark mode. Energy comes from a red\ndiagonal hero stripe and real UI captures, not from purple SaaS gradients.\n\n## 2. Color Palette & Roles\n\n| Role | Token | Value | Notes |\n| --- | --- | --- | --- |\n| Background | `--bg` | `#07080a` | inky canvas |\n| Surface | `--surface` | `#0d0d0d` | panels |\n| Surface raised | `--surface-2` | `#101111` | elevated chrome |\n| Card | `--surface-card` | `#121212` | palette rows |\n| Foreground | `--fg` | `#f4f4f6` | ink |\n| Body | `--fg-body` | `#cdcdcd` | secondary |\n| Muted | `--fg-muted` | `#9c9c9d` | meta |\n| Border | `--border` | `#242728` | 1px hairline |\n| CTA | `--cta` | `#ffffff` | white pill on dark |\n| CTA ink | `--cta-fg` | `#000000` | |\n| Accent red | `--accent-red` | `#ff6161` | hero stripe / danger |\n| Accent yellow | `--accent-yellow` | `#ffc533` | category |\n| Accent green | `--accent-green` | `#59d499` | category |\n| Accent blue | `--accent-blue` | `#57c1ff` | category |\n\n## 3. Typography Rules\n\nUpstream marketing uses Inter with `ss03`. For UIBot, prefer a quiet grotesque\nalready in the runtime (or Geist) rather than inventing a new webfont. Keep\nthe **product** scale tight:\n\n| Role | Size | Weight | Line-height |\n| --- | --- | --- | --- |\n| Display | `3.5rem` | `600` | `1.1` |\n| H1 | `1.5rem` | `500` | `1.2` |\n| Body | `1rem` | `400` | `1.6` |\n| Meta | `0.875rem` | `500` | `1.4` |\n\n## 4. Component Stylings\n\n- Primary CTA: white pill (`rounded-full`), black label. One per hero.\n- Cards: 6–10px radius, 1px `#242728`, no heavy shadow.\n- Command-row recipe: icon slot + title + shortcut kbd on the right.\n- Category color is for tiles/illustrations, not for every badge.\n\n```yaml\n- type: Box\n props:\n className: \"rounded-[10px] border border-[#242728] bg-[#121212] px-3 py-2 flex items-center gap-3\"\n children:\n - type: Paragraph\n props: { text: \"Switch Window\" }\n - type: Badge\n props: { text: \"⌘ Tab\" }\n```\n\n## 5. Layout Principles\n\n- Continuous dark canvas. Section rhythm ~ `6rem` on marketing; `0.5–0.75rem`\n inside a palette.\n- Max content ~ `72rem`. Hero can full-bleed the red stripe.\n- Radius scale: `6px` / `10px` / pill.\n\n## 6. Depth & Elevation\n\nAlmost flat. Surfaces step `#07080a → #0d0d0d → #121212`. No drop-shadow\nladders. Focus is a 1px light hairline or accent ring.\n\n## 7. Do's and Don'ts\n\n- Do: command-palette density, keyboard hints, monochrome chrome.\n- Do: one white pill CTA; saturate only category art.\n- Don't: light-mode marketing, purple gradient hero, Inter-as-personality\n without the dark palette around it.\n- Don't: fake extension counts or store ratings.\n\n## 8. Responsive Behavior\n\n375: stack hero, hide shortcut kbd or wrap. 768: two-column feature tiles.\n1440: palette mock + copy rail. Touch targets ≥ 44px outside the dense list.\n\nQuick tokens: `--bg: #07080a` `--surface-card: #121212` `--cta: #ffffff` `--accent-red: #ff6161`\n\n## 9. Agent Prompt Guide\n\nUse for launcher / command palette / dark developer-tool chrome. Quick colors:\n`#07080a` `#121212` `#ffffff` `#ff6161`. Prefer `Box` + `Badge` + `Input` over\ncustom CSS. If the brief is a bright landing page, pick another brand."},"distributions":[],"examples":[]},"design-guide:stripe-design":{"resourceId":"design-guide:stripe-design","title":{"zh":"Stripe Design System","en":"Stripe Design System"},"docs":{"zh":"# Stripe Design System\n\n1. Visual Theme & Atmosphere\n\n## 1. Visual Theme & Atmosphere\n\nStripe feels confident, optimistic, and impeccably engineered. The canvas is\nbright and clean, type is crisp, and the signature \"blurple\" anchors a palette\nthat can shift into gradients and gentle hue rotations without ever feeling\nloud. Depth is layered: cards float on soft, multi-stop shadows; sections stack\nwith generous whitespace; angled planes and subtle gradients add dimension.\nThe mood is trustworthy and premium — the look of infrastructure you'd hand\nyour money to. Favor clarity, breathing room, and quietly delightful detail.\n\n## 2. Color Palette & Roles\n\n| Role | Token | Value | Notes |\n| --- | --- | --- | --- |\n| Background | `--bg` | `#ffffff` | page canvas |\n| Background alt | `--bg-alt` | `#f6f9fc` | section bands, subtle fills |\n| Surface | `--surface` | `#ffffff` | cards on tinted bands |\n| Foreground | `--fg` | `#0a2540` | primary text, deep navy |\n| Muted foreground | `--fg-muted` | `#425466` | secondary text |\n| Subtle foreground | `--fg-subtle` | `#697386` | captions, meta |\n| Accent | `--accent` | `#635bff` | blurple, primary action |\n| Accent hover | `--accent-hover` | `#7a73ff` | hover |\n| Accent foreground | `--accent-fg` | `#ffffff` | text on accent |\n| Border | `--border` | `#e6e9ec` | hairlines |\n| Success | `--success` | `#3ecf8e` | positive |\n| Warning | `--warning` | `#f5be58` | caution |\n| Danger | `--danger` | `#df1b41` | error, decline |\n| Gradient | `--grad` | `linear-gradient(101deg,#a960ee,#635bff 40%,#21d4fd)` | hero accents |\n\n## 3. Typography Rules\n\n- **Sans:** `\"Söhne\", \"Inter\", -apple-system, \"Segoe UI\", sans-serif`\n- **Mono:** `\"Söhne Mono\", \"SF Mono\", ui-monospace, monospace`\n\nHeadings are tight and dark navy; body stays highly legible at comfortable\nsizes. Whitespace does the heavy lifting, so type can stay restrained.\n\n| Role | Size | Weight | Line-height | Tracking |\n| --- | --- | --- | --- | --- |\n| Display | `3.5rem` | `600` | `1.08` | `-0.02em` |\n| H1 | `2.5rem` | `600` | `1.12` | `-0.018em` |\n| H2 | `1.75rem` | `560` | `1.2` | `-0.012em` |\n| H3 | `1.25rem` | `560` | `1.3` | `-0.008em` |\n| Body | `1rem` | `400` | `1.6` | `0` |\n| Body large | `1.125rem` | `400` | `1.6` | `0` |\n| Label | `0.875rem` | `560` | `1.4` | `0.01em` |\n| Caption | `0.8125rem` | `420` | `1.5` | `0.01em` |\n\n## 4. Component Stylings\n\n### Buttons\n\n- **Primary:** bg `#635bff`, text `#ffffff`, radius `0.5rem`, padding\n `0.625rem 1rem`, weight `560`, font-size `0.9375rem`, shadow\n `0 2px 5px rgba(99,91,255,0.25)`. Hover bg `#7a73ff` + lift to\n `0 4px 12px rgba(99,91,255,0.3)`. Active translateY `1px`. Focus ring\n `0 0 0 3px rgba(99,91,255,0.35)`.\n- **Secondary:** bg `#ffffff`, text `#635bff`, border `1px solid #e6e9ec`,\n shadow `0 1px 2px rgba(10,37,64,0.08)`.\n- **Disabled:** opacity `0.5`, no lift.\n\n### Cards\n\n- bg `#ffffff`, radius `0.75rem`, padding `1.5rem`, border `1px solid #e6e9ec`,\n shadow `0 7px 14px rgba(50,50,93,0.1), 0 3px 6px rgba(0,0,0,0.07)`.\n\n### Inputs\n\n- bg `#ffffff`, border `1px solid #e6e9ec`, radius `0.5rem`, height `2.5rem`,\n padding `0 0.75rem`, text `#0a2540`, placeholder `#8792a2`, shadow\n `0 1px 2px rgba(10,37,64,0.06)`.\n- Focus: border `#635bff`, ring `0 0 0 3px rgba(99,91,255,0.2)`.\n\n### Badges\n\n- Pill, radius `9999px`, font-size `0.75rem`, weight `560`, padding\n `0.1875rem 0.625rem`. Success: bg `#d7f7e9`, text `#0e6245`.\n\n### Navigation\n\n- Top bar, bg `rgba(255,255,255,0.8)` with `backdrop-filter: blur(10px)`,\n height `4rem`, border-bottom `1px solid #e6e9ec`. Links `#425466`, weight\n `560`; hover `#0a2540`. CTA uses primary button.\n\n## 5. Layout Principles\n\n- **Spacing scale:** `0.25rem · 0.5rem · 1rem · 1.5rem · 2rem · 3rem · 5rem · 8rem`.\n- **Container max-width:** `73.125rem` (≈1170px), centered, side padding\n `1.5rem`.\n- **Grid:** 12-column, gutter `2rem`; cards in 3-up on desktop.\n- **Whitespace:** generous — section vertical rhythm `5rem`–`8rem`.\n- **Radius scale:** `sm 0.375rem · md 0.5rem · lg 0.75rem · xl 1rem · full 9999px`.\n\n## 6. Depth & Elevation\n\nShadows are soft, layered (two stops), and tinted cool — never harsh black.\n\n| Level | Use | Shadow |\n| --- | --- | --- |\n| 0 | flat / on tinted band | `none` |\n| 1 | input, subtle card | `0 1px 2px rgba(10,37,64,0.08)` |\n| 2 | card | `0 7px 14px rgba(50,50,93,0.1), 0 3px 6px rgba(0,0,0,0.07)` |\n| 3 | popover, hovered card | `0 13px 27px rgba(50,50,93,0.14), 0 8px 16px rgba(0,0,0,0.08)` |\n| 4 | modal | `0 30px 60px rgba(50,50,93,0.18), 0 18px 36px rgba(0,0,0,0.1)` |\n\n## 7. Do's and Don'ts\n\n**Do**\n\n- Keep the page bright; alternate white and `#f6f9fc` bands for rhythm.\n- Use blurple `#635bff` for primary actions and accent moments.\n- Layer soft two-stop shadows for floating cards.\n- Give sections generous vertical breathing room (`5rem`+).\n- Reach for the brand gradient only for hero/feature accents.\n\n**Don't**\n\n- Don't use harsh pure-black shadows; keep them cool and tinted.\n- Don't crowd content — whitespace is part of the brand.\n- Don't overuse the gradient as a flat background for text blocks.\n- Don't drop below `1rem` body size for primary reading.\n- Don't mix in a competing saturated accent next to blurple.\n\n## 8. Responsive Behavior\n\n| Breakpoint | Min width | Behavior |\n| --- | --- | --- |\n| `sm` | `640px` | single column, full-width cards |\n| `md` | `768px` | 2-up card grids, nav stays inline |\n| `lg` | `1024px` | 3-up grids, full multi-column sections |\n| `xl` | `1280px` | max container `73.125rem`, wider gutters |\n\n- **Touch targets:** minimum `44px × 44px`; buttons keep `2.5rem`+ height.\n- **Collapsing strategy:** nav collapses to a hamburger drawer below `md`;\n multi-column feature sections stack vertically while preserving whitespace.\n\n## 9. Agent Prompt Guide\n\n### Quick Color Reference\n\n- Accent (blurple): `#635bff` (hover `#7a73ff`)\n- Background: `#ffffff` · Band: `#f6f9fc`\n- Text: `#0a2540` · Muted: `#425466` · Subtle: `#697386`\n- Border: `#e6e9ec`\n- Success `#3ecf8e` · Warning `#f5be58` · Danger `#df1b41`\n- Gradient: `linear-gradient(101deg,#a960ee,#635bff 40%,#21d4fd)`\n\n### Example prompts (copy-paste)\n\n1. \"Generate a pricing card in the Stripe system: white surface, radius\n `0.75rem`, level-2 shadow `0 7px 14px rgba(50,50,93,0.1),0 3px 6px\n rgba(0,0,0,0.07)`, navy `#0a2540` heading, `#425466` body, a primary blurple\n `#635bff` CTA with `0 2px 5px rgba(99,91,255,0.25)` shadow, generous\n `1.5rem` padding.\"\n2. \"Build a feature hero: white canvas, a `73.125rem` centered container, an H1\n at `2.5rem`/weight 600/`-0.018em`, a subhead in `#425466` at `1.125rem`, and\n an accent flourish using the gradient `linear-gradient(101deg,#a960ee,#635bff\n 40%,#21d4fd)`. Vertical rhythm `5rem`.\"\n3. \"Create a form input + primary button row: input height `2.5rem`, border\n `#e6e9ec`, focus border `#635bff` with `0 0 0 3px rgba(99,91,255,0.2)` ring;\n button bg `#635bff`, radius `0.5rem`, lifting to `0 4px 12px\n rgba(99,91,255,0.3)` on hover.\"\n\n### Iteration guide\n\n1. Start light: white canvas, alternate `#f6f9fc` bands.\n2. Place blurple `#635bff` only on primary actions and accents.\n3. Increase whitespace until sections breathe (`5rem`+ vertical).\n4. Swap any flat shadow for a soft, cool, two-stop layered shadow.\n5. Reserve the gradient for one hero/feature moment, never body text.","en":"# Stripe Design System\n\n1. Visual Theme & Atmosphere\n\n## 1. Visual Theme & Atmosphere\n\nStripe feels confident, optimistic, and impeccably engineered. The canvas is\nbright and clean, type is crisp, and the signature \"blurple\" anchors a palette\nthat can shift into gradients and gentle hue rotations without ever feeling\nloud. Depth is layered: cards float on soft, multi-stop shadows; sections stack\nwith generous whitespace; angled planes and subtle gradients add dimension.\nThe mood is trustworthy and premium — the look of infrastructure you'd hand\nyour money to. Favor clarity, breathing room, and quietly delightful detail.\n\n## 2. Color Palette & Roles\n\n| Role | Token | Value | Notes |\n| --- | --- | --- | --- |\n| Background | `--bg` | `#ffffff` | page canvas |\n| Background alt | `--bg-alt` | `#f6f9fc` | section bands, subtle fills |\n| Surface | `--surface` | `#ffffff` | cards on tinted bands |\n| Foreground | `--fg` | `#0a2540` | primary text, deep navy |\n| Muted foreground | `--fg-muted` | `#425466` | secondary text |\n| Subtle foreground | `--fg-subtle` | `#697386` | captions, meta |\n| Accent | `--accent` | `#635bff` | blurple, primary action |\n| Accent hover | `--accent-hover` | `#7a73ff` | hover |\n| Accent foreground | `--accent-fg` | `#ffffff` | text on accent |\n| Border | `--border` | `#e6e9ec` | hairlines |\n| Success | `--success` | `#3ecf8e` | positive |\n| Warning | `--warning` | `#f5be58` | caution |\n| Danger | `--danger` | `#df1b41` | error, decline |\n| Gradient | `--grad` | `linear-gradient(101deg,#a960ee,#635bff 40%,#21d4fd)` | hero accents |\n\n## 3. Typography Rules\n\n- **Sans:** `\"Söhne\", \"Inter\", -apple-system, \"Segoe UI\", sans-serif`\n- **Mono:** `\"Söhne Mono\", \"SF Mono\", ui-monospace, monospace`\n\nHeadings are tight and dark navy; body stays highly legible at comfortable\nsizes. Whitespace does the heavy lifting, so type can stay restrained.\n\n| Role | Size | Weight | Line-height | Tracking |\n| --- | --- | --- | --- | --- |\n| Display | `3.5rem` | `600` | `1.08` | `-0.02em` |\n| H1 | `2.5rem` | `600` | `1.12` | `-0.018em` |\n| H2 | `1.75rem` | `560` | `1.2` | `-0.012em` |\n| H3 | `1.25rem` | `560` | `1.3` | `-0.008em` |\n| Body | `1rem` | `400` | `1.6` | `0` |\n| Body large | `1.125rem` | `400` | `1.6` | `0` |\n| Label | `0.875rem` | `560` | `1.4` | `0.01em` |\n| Caption | `0.8125rem` | `420` | `1.5` | `0.01em` |\n\n## 4. Component Stylings\n\n### Buttons\n\n- **Primary:** bg `#635bff`, text `#ffffff`, radius `0.5rem`, padding\n `0.625rem 1rem`, weight `560`, font-size `0.9375rem`, shadow\n `0 2px 5px rgba(99,91,255,0.25)`. Hover bg `#7a73ff` + lift to\n `0 4px 12px rgba(99,91,255,0.3)`. Active translateY `1px`. Focus ring\n `0 0 0 3px rgba(99,91,255,0.35)`.\n- **Secondary:** bg `#ffffff`, text `#635bff`, border `1px solid #e6e9ec`,\n shadow `0 1px 2px rgba(10,37,64,0.08)`.\n- **Disabled:** opacity `0.5`, no lift.\n\n### Cards\n\n- bg `#ffffff`, radius `0.75rem`, padding `1.5rem`, border `1px solid #e6e9ec`,\n shadow `0 7px 14px rgba(50,50,93,0.1), 0 3px 6px rgba(0,0,0,0.07)`.\n\n### Inputs\n\n- bg `#ffffff`, border `1px solid #e6e9ec`, radius `0.5rem`, height `2.5rem`,\n padding `0 0.75rem`, text `#0a2540`, placeholder `#8792a2`, shadow\n `0 1px 2px rgba(10,37,64,0.06)`.\n- Focus: border `#635bff`, ring `0 0 0 3px rgba(99,91,255,0.2)`.\n\n### Badges\n\n- Pill, radius `9999px`, font-size `0.75rem`, weight `560`, padding\n `0.1875rem 0.625rem`. Success: bg `#d7f7e9`, text `#0e6245`.\n\n### Navigation\n\n- Top bar, bg `rgba(255,255,255,0.8)` with `backdrop-filter: blur(10px)`,\n height `4rem`, border-bottom `1px solid #e6e9ec`. Links `#425466`, weight\n `560`; hover `#0a2540`. CTA uses primary button.\n\n## 5. Layout Principles\n\n- **Spacing scale:** `0.25rem · 0.5rem · 1rem · 1.5rem · 2rem · 3rem · 5rem · 8rem`.\n- **Container max-width:** `73.125rem` (≈1170px), centered, side padding\n `1.5rem`.\n- **Grid:** 12-column, gutter `2rem`; cards in 3-up on desktop.\n- **Whitespace:** generous — section vertical rhythm `5rem`–`8rem`.\n- **Radius scale:** `sm 0.375rem · md 0.5rem · lg 0.75rem · xl 1rem · full 9999px`.\n\n## 6. Depth & Elevation\n\nShadows are soft, layered (two stops), and tinted cool — never harsh black.\n\n| Level | Use | Shadow |\n| --- | --- | --- |\n| 0 | flat / on tinted band | `none` |\n| 1 | input, subtle card | `0 1px 2px rgba(10,37,64,0.08)` |\n| 2 | card | `0 7px 14px rgba(50,50,93,0.1), 0 3px 6px rgba(0,0,0,0.07)` |\n| 3 | popover, hovered card | `0 13px 27px rgba(50,50,93,0.14), 0 8px 16px rgba(0,0,0,0.08)` |\n| 4 | modal | `0 30px 60px rgba(50,50,93,0.18), 0 18px 36px rgba(0,0,0,0.1)` |\n\n## 7. Do's and Don'ts\n\n**Do**\n\n- Keep the page bright; alternate white and `#f6f9fc` bands for rhythm.\n- Use blurple `#635bff` for primary actions and accent moments.\n- Layer soft two-stop shadows for floating cards.\n- Give sections generous vertical breathing room (`5rem`+).\n- Reach for the brand gradient only for hero/feature accents.\n\n**Don't**\n\n- Don't use harsh pure-black shadows; keep them cool and tinted.\n- Don't crowd content — whitespace is part of the brand.\n- Don't overuse the gradient as a flat background for text blocks.\n- Don't drop below `1rem` body size for primary reading.\n- Don't mix in a competing saturated accent next to blurple.\n\n## 8. Responsive Behavior\n\n| Breakpoint | Min width | Behavior |\n| --- | --- | --- |\n| `sm` | `640px` | single column, full-width cards |\n| `md` | `768px` | 2-up card grids, nav stays inline |\n| `lg` | `1024px` | 3-up grids, full multi-column sections |\n| `xl` | `1280px` | max container `73.125rem`, wider gutters |\n\n- **Touch targets:** minimum `44px × 44px`; buttons keep `2.5rem`+ height.\n- **Collapsing strategy:** nav collapses to a hamburger drawer below `md`;\n multi-column feature sections stack vertically while preserving whitespace.\n\n## 9. Agent Prompt Guide\n\n### Quick Color Reference\n\n- Accent (blurple): `#635bff` (hover `#7a73ff`)\n- Background: `#ffffff` · Band: `#f6f9fc`\n- Text: `#0a2540` · Muted: `#425466` · Subtle: `#697386`\n- Border: `#e6e9ec`\n- Success `#3ecf8e` · Warning `#f5be58` · Danger `#df1b41`\n- Gradient: `linear-gradient(101deg,#a960ee,#635bff 40%,#21d4fd)`\n\n### Example prompts (copy-paste)\n\n1. \"Generate a pricing card in the Stripe system: white surface, radius\n `0.75rem`, level-2 shadow `0 7px 14px rgba(50,50,93,0.1),0 3px 6px\n rgba(0,0,0,0.07)`, navy `#0a2540` heading, `#425466` body, a primary blurple\n `#635bff` CTA with `0 2px 5px rgba(99,91,255,0.25)` shadow, generous\n `1.5rem` padding.\"\n2. \"Build a feature hero: white canvas, a `73.125rem` centered container, an H1\n at `2.5rem`/weight 600/`-0.018em`, a subhead in `#425466` at `1.125rem`, and\n an accent flourish using the gradient `linear-gradient(101deg,#a960ee,#635bff\n 40%,#21d4fd)`. Vertical rhythm `5rem`.\"\n3. \"Create a form input + primary button row: input height `2.5rem`, border\n `#e6e9ec`, focus border `#635bff` with `0 0 0 3px rgba(99,91,255,0.2)` ring;\n button bg `#635bff`, radius `0.5rem`, lifting to `0 4px 12px\n rgba(99,91,255,0.3)` on hover.\"\n\n### Iteration guide\n\n1. Start light: white canvas, alternate `#f6f9fc` bands.\n2. Place blurple `#635bff` only on primary actions and accents.\n3. Increase whitespace until sections breathe (`5rem`+ vertical).\n4. Swap any flat shadow for a soft, cool, two-stop layered shadow.\n5. Reserve the gradient for one hero/feature moment, never body text."},"distributions":[],"examples":[]},"design-guide:supabase-design":{"resourceId":"design-guide:supabase-design","title":{"zh":"Supabase Design System","en":"Supabase Design System"},"docs":{"zh":"# Supabase Design System\n\n1. Visual Theme & Atmosphere\n\n## 1. Visual Theme & Atmosphere\n\nSupabase feels like a developer console you actually enjoy using: dark, precise,\nand quietly energetic. The canvas is a deep neutral charcoal (not pure black),\nsurfaces step up in cool grays, and a vivid emerald green carries the brand's\nsignal — success, action, \"it's working.\" The voice is technical and confident;\nmonospace shows up wherever there's data, SQL, or a key. Tables, logs, and code\nare first-class citizens, so the system favors density, alignment, and clear\nstatus color. Build interfaces that respect engineers' attention: scannable,\nfast, and unmistakably green-accented.\n\n## 2. Color Palette & Roles\n\n| Role | Token | Value | Notes |\n| --- | --- | --- | --- |\n| Background | `--bg` | `#1c1c1c` | app canvas, warm charcoal |\n| Surface | `--surface` | `#232323` | cards, panels |\n| Surface raised | `--surface-2` | `#2a2a2a` | popovers, headers |\n| Foreground | `--fg` | `#ededed` | primary text |\n| Muted foreground | `--fg-muted` | `#a0a0a0` | secondary text |\n| Subtle foreground | `--fg-subtle` | `#707070` | meta, disabled |\n| Accent | `--accent` | `#3ecf8e` | emerald, primary action |\n| Accent hover | `--accent-hover` | `#34b87b` | hover |\n| Accent foreground | `--accent-fg` | `#11181c` | dark text on emerald |\n| Border | `--border` | `#2e2e2e` | hairlines |\n| Border strong | `--border-strong` | `#3d3d3d` | input borders |\n| Success | `--success` | `#3ecf8e` | healthy (same as accent) |\n| Warning | `--warning` | `#f5a623` | attention |\n| Danger | `--danger` | `#f56565` | error, destructive |\n\n## 3. Typography Rules\n\n- **Sans:** `\"Custom Sans\", \"Inter\", -apple-system, \"Segoe UI\", sans-serif`\n- **Mono:** `\"Source Code Pro\", \"SF Mono\", \"Berkeley Mono\", ui-monospace, monospace`\n\nSans for prose and chrome; mono for SQL, table values, API keys, and code\nblocks. Headings are clean and moderately tight; body stays compact for\ndata density.\n\n| Role | Size | Weight | Line-height | Tracking |\n| --- | --- | --- | --- | --- |\n| Display | `2.25rem` | `600` | `1.1` | `-0.02em` |\n| H1 | `1.5rem` | `600` | `1.2` | `-0.015em` |\n| H2 | `1.25rem` | `500` | `1.3` | `-0.01em` |\n| H3 | `1rem` | `500` | `1.4` | `-0.005em` |\n| Body | `0.875rem` | `400` | `1.5` | `0` |\n| Label | `0.8125rem` | `500` | `1.4` | `0` |\n| Caption | `0.75rem` | `400` | `1.4` | `0` |\n| Mono / cell | `0.8125rem` | `400` | `1.5` | `0` |\n\n## 4. Component Stylings\n\n### Buttons\n\n- **Primary:** bg `#3ecf8e`, text `#11181c`, radius `0.375rem`, padding\n `0.4375rem 0.875rem`, weight `500`, font-size `0.875rem`. Hover bg `#34b87b`.\n Focus ring `0 0 0 2px rgba(62,207,142,0.4)`.\n- **Secondary:** bg `#2a2a2a`, text `#ededed`, border `1px solid #3d3d3d`.\n Hover bg `#323232`.\n- **Ghost:** transparent, text `#a0a0a0`. Hover bg `rgba(255,255,255,0.05)`,\n text `#ededed`.\n- **Disabled:** opacity `0.5`, `cursor: not-allowed`.\n\n### Cards\n\n- bg `#232323`, border `1px solid #2e2e2e`, radius `0.5rem`, padding `1.25rem`.\n- No shadow at rest; structure from borders. Section headers on `#2a2a2a`.\n\n### Inputs\n\n- bg `#1c1c1c`, border `1px solid #3d3d3d`, radius `0.375rem`, height `2.25rem`,\n padding `0 0.625rem`, text `#ededed`, placeholder `#707070`. Mono variant for\n keys/SQL.\n- Focus: border `#3ecf8e`, ring `0 0 0 2px rgba(62,207,142,0.25)`.\n\n### Badges\n\n- Pill, radius `9999px`, font-size `0.75rem`, weight `500`, padding\n `0.125rem 0.5rem`. Status: success bg `rgba(62,207,142,0.15)` text `#3ecf8e`;\n error bg `rgba(245,101,101,0.15)` text `#f56565`.\n\n### Navigation\n\n- Left sidebar, bg `#1a1a1a`, width `14rem`. Item height `2rem`, radius\n `0.375rem`, text `#a0a0a0`. Active: bg `rgba(62,207,142,0.1)`, text `#3ecf8e`,\n left accent bar `2px #3ecf8e`. Hover: bg `rgba(255,255,255,0.04)`.\n\n### Tables (first-class)\n\n- Header row bg `#2a2a2a`, text `#a0a0a0`, `0.8125rem` uppercase labels.\n- Rows `2.25rem` tall, mono `#ededed` values, hairline `#2e2e2e` dividers,\n hover bg `rgba(255,255,255,0.03)`.\n\n## 5. Layout Principles\n\n- **Spacing scale:** `0.25rem · 0.5rem · 0.75rem · 1rem · 1.25rem · 2rem · 3rem`.\n- **Container max-width:** full-bleed dashboard; content panels `64rem`.\n- **Grid:** sidebar + main; main uses 12-column with `1rem` gutter; tables span\n full width.\n- **Whitespace:** efficient — favor density and alignment over padding.\n- **Radius scale:** `sm 0.25rem · md 0.375rem · lg 0.5rem · xl 0.75rem · full 9999px`.\n\n## 6. Depth & Elevation\n\nDark surfaces step in lightness; shadows appear only for true overlays.\n\n| Level | Use | Shadow |\n| --- | --- | --- |\n| 0 | flat surfaces | `none` |\n| 1 | hovered card | `0 1px 2px rgba(0,0,0,0.4)` |\n| 2 | dropdown, popover | `0 4px 16px rgba(0,0,0,0.5)` |\n| 3 | modal, dialog | `0 16px 48px rgba(0,0,0,0.6)` |\n\n## 7. Do's and Don'ts\n\n**Do**\n\n- Use warm charcoal `#1c1c1c`, not pure black, and step surfaces in cool grays.\n- Reserve emerald `#3ecf8e` for primary actions, success, and active nav.\n- Use monospace for SQL, table cells, API keys, and code.\n- Treat tables/logs as first-class: dense rows, hairline dividers, hover states.\n- Pair emerald text with dark `#11181c` foreground on filled buttons for\n contrast.\n\n**Don't**\n\n- Don't put light text directly on bright emerald — use dark foreground.\n- Don't use pure black `#000000` backgrounds.\n- Don't add a second saturated accent competing with emerald.\n- Don't loosen table density; engineers scan, they don't browse.\n- Don't rely on heavy shadows on resting surfaces — use borders.\n\n## 8. Responsive Behavior\n\n| Breakpoint | Min width | Behavior |\n| --- | --- | --- |\n| `sm` | `640px` | sidebar → drawer; tables scroll horizontally |\n| `md` | `768px` | sidebar icon rail + main panel |\n| `lg` | `1024px` | full sidebar + main + optional detail drawer |\n| `xl` | `1280px` | wider tables, persistent inspector panel |\n\n- **Touch targets:** minimum `36px` for table rows, `44px` for primary controls.\n- **Collapsing strategy:** sidebar collapses to a drawer below `md`; wide tables\n become horizontally scrollable with a sticky first column; keep status color\n visible when stacked.\n\n## 9. Agent Prompt Guide\n\n### Quick Color Reference\n\n- Accent (emerald): `#3ecf8e` (hover `#34b87b`, on it use `#11181c` text)\n- Background: `#1c1c1c` · Surface: `#232323` · Raised: `#2a2a2a`\n- Text: `#ededed` · Muted: `#a0a0a0` · Subtle: `#707070`\n- Border: `#2e2e2e` (strong `#3d3d3d`)\n- Warning `#f5a623` · Danger `#f56565`\n\n### Example prompts (copy-paste)\n\n1. \"Generate a database table view in the Supabase system: `#1c1c1c` canvas,\n header row `#2a2a2a` with `0.8125rem` uppercase `#a0a0a0` labels, `2.25rem`\n rows with mono `#ededed` values, `#2e2e2e` hairline dividers, row hover\n `rgba(255,255,255,0.03)`, and a green `#3ecf8e` 'Insert row' primary button.\"\n2. \"Build a project sidebar: `#1a1a1a` panel `14rem` wide, items `2rem` tall in\n `#a0a0a0`, active item bg `rgba(62,207,142,0.1)` with `#3ecf8e` text and a\n `2px` emerald left bar, hover `rgba(255,255,255,0.04)`.\"\n3. \"Create an API-key card: surface `#232323`, `1px #2e2e2e` border, radius\n `0.5rem`, a monospace key in `#ededed`, a success badge bg\n `rgba(62,207,142,0.15)`/text `#3ecf8e`, and a secondary 'Copy' button\n (`#2a2a2a` / `1px #3d3d3d`).\"\n\n### Iteration guide\n\n1. Set a warm charcoal base `#1c1c1c` and step surfaces `#232323`/`#2a2a2a`.\n2. Add emerald `#3ecf8e` only for actions, success, and active state.\n3. Switch data, keys, and code to monospace.\n4. Make tables dense and aligned with hairline dividers and hover rows.\n5. Verify emerald fills use dark `#11181c` text for legible contrast.","en":"# Supabase Design System\n\n1. Visual Theme & Atmosphere\n\n## 1. Visual Theme & Atmosphere\n\nSupabase feels like a developer console you actually enjoy using: dark, precise,\nand quietly energetic. The canvas is a deep neutral charcoal (not pure black),\nsurfaces step up in cool grays, and a vivid emerald green carries the brand's\nsignal — success, action, \"it's working.\" The voice is technical and confident;\nmonospace shows up wherever there's data, SQL, or a key. Tables, logs, and code\nare first-class citizens, so the system favors density, alignment, and clear\nstatus color. Build interfaces that respect engineers' attention: scannable,\nfast, and unmistakably green-accented.\n\n## 2. Color Palette & Roles\n\n| Role | Token | Value | Notes |\n| --- | --- | --- | --- |\n| Background | `--bg` | `#1c1c1c` | app canvas, warm charcoal |\n| Surface | `--surface` | `#232323` | cards, panels |\n| Surface raised | `--surface-2` | `#2a2a2a` | popovers, headers |\n| Foreground | `--fg` | `#ededed` | primary text |\n| Muted foreground | `--fg-muted` | `#a0a0a0` | secondary text |\n| Subtle foreground | `--fg-subtle` | `#707070` | meta, disabled |\n| Accent | `--accent` | `#3ecf8e` | emerald, primary action |\n| Accent hover | `--accent-hover` | `#34b87b` | hover |\n| Accent foreground | `--accent-fg` | `#11181c` | dark text on emerald |\n| Border | `--border` | `#2e2e2e` | hairlines |\n| Border strong | `--border-strong` | `#3d3d3d` | input borders |\n| Success | `--success` | `#3ecf8e` | healthy (same as accent) |\n| Warning | `--warning` | `#f5a623` | attention |\n| Danger | `--danger` | `#f56565` | error, destructive |\n\n## 3. Typography Rules\n\n- **Sans:** `\"Custom Sans\", \"Inter\", -apple-system, \"Segoe UI\", sans-serif`\n- **Mono:** `\"Source Code Pro\", \"SF Mono\", \"Berkeley Mono\", ui-monospace, monospace`\n\nSans for prose and chrome; mono for SQL, table values, API keys, and code\nblocks. Headings are clean and moderately tight; body stays compact for\ndata density.\n\n| Role | Size | Weight | Line-height | Tracking |\n| --- | --- | --- | --- | --- |\n| Display | `2.25rem` | `600` | `1.1` | `-0.02em` |\n| H1 | `1.5rem` | `600` | `1.2` | `-0.015em` |\n| H2 | `1.25rem` | `500` | `1.3` | `-0.01em` |\n| H3 | `1rem` | `500` | `1.4` | `-0.005em` |\n| Body | `0.875rem` | `400` | `1.5` | `0` |\n| Label | `0.8125rem` | `500` | `1.4` | `0` |\n| Caption | `0.75rem` | `400` | `1.4` | `0` |\n| Mono / cell | `0.8125rem` | `400` | `1.5` | `0` |\n\n## 4. Component Stylings\n\n### Buttons\n\n- **Primary:** bg `#3ecf8e`, text `#11181c`, radius `0.375rem`, padding\n `0.4375rem 0.875rem`, weight `500`, font-size `0.875rem`. Hover bg `#34b87b`.\n Focus ring `0 0 0 2px rgba(62,207,142,0.4)`.\n- **Secondary:** bg `#2a2a2a`, text `#ededed`, border `1px solid #3d3d3d`.\n Hover bg `#323232`.\n- **Ghost:** transparent, text `#a0a0a0`. Hover bg `rgba(255,255,255,0.05)`,\n text `#ededed`.\n- **Disabled:** opacity `0.5`, `cursor: not-allowed`.\n\n### Cards\n\n- bg `#232323`, border `1px solid #2e2e2e`, radius `0.5rem`, padding `1.25rem`.\n- No shadow at rest; structure from borders. Section headers on `#2a2a2a`.\n\n### Inputs\n\n- bg `#1c1c1c`, border `1px solid #3d3d3d`, radius `0.375rem`, height `2.25rem`,\n padding `0 0.625rem`, text `#ededed`, placeholder `#707070`. Mono variant for\n keys/SQL.\n- Focus: border `#3ecf8e`, ring `0 0 0 2px rgba(62,207,142,0.25)`.\n\n### Badges\n\n- Pill, radius `9999px`, font-size `0.75rem`, weight `500`, padding\n `0.125rem 0.5rem`. Status: success bg `rgba(62,207,142,0.15)` text `#3ecf8e`;\n error bg `rgba(245,101,101,0.15)` text `#f56565`.\n\n### Navigation\n\n- Left sidebar, bg `#1a1a1a`, width `14rem`. Item height `2rem`, radius\n `0.375rem`, text `#a0a0a0`. Active: bg `rgba(62,207,142,0.1)`, text `#3ecf8e`,\n left accent bar `2px #3ecf8e`. Hover: bg `rgba(255,255,255,0.04)`.\n\n### Tables (first-class)\n\n- Header row bg `#2a2a2a`, text `#a0a0a0`, `0.8125rem` uppercase labels.\n- Rows `2.25rem` tall, mono `#ededed` values, hairline `#2e2e2e` dividers,\n hover bg `rgba(255,255,255,0.03)`.\n\n## 5. Layout Principles\n\n- **Spacing scale:** `0.25rem · 0.5rem · 0.75rem · 1rem · 1.25rem · 2rem · 3rem`.\n- **Container max-width:** full-bleed dashboard; content panels `64rem`.\n- **Grid:** sidebar + main; main uses 12-column with `1rem` gutter; tables span\n full width.\n- **Whitespace:** efficient — favor density and alignment over padding.\n- **Radius scale:** `sm 0.25rem · md 0.375rem · lg 0.5rem · xl 0.75rem · full 9999px`.\n\n## 6. Depth & Elevation\n\nDark surfaces step in lightness; shadows appear only for true overlays.\n\n| Level | Use | Shadow |\n| --- | --- | --- |\n| 0 | flat surfaces | `none` |\n| 1 | hovered card | `0 1px 2px rgba(0,0,0,0.4)` |\n| 2 | dropdown, popover | `0 4px 16px rgba(0,0,0,0.5)` |\n| 3 | modal, dialog | `0 16px 48px rgba(0,0,0,0.6)` |\n\n## 7. Do's and Don'ts\n\n**Do**\n\n- Use warm charcoal `#1c1c1c`, not pure black, and step surfaces in cool grays.\n- Reserve emerald `#3ecf8e` for primary actions, success, and active nav.\n- Use monospace for SQL, table cells, API keys, and code.\n- Treat tables/logs as first-class: dense rows, hairline dividers, hover states.\n- Pair emerald text with dark `#11181c` foreground on filled buttons for\n contrast.\n\n**Don't**\n\n- Don't put light text directly on bright emerald — use dark foreground.\n- Don't use pure black `#000000` backgrounds.\n- Don't add a second saturated accent competing with emerald.\n- Don't loosen table density; engineers scan, they don't browse.\n- Don't rely on heavy shadows on resting surfaces — use borders.\n\n## 8. Responsive Behavior\n\n| Breakpoint | Min width | Behavior |\n| --- | --- | --- |\n| `sm` | `640px` | sidebar → drawer; tables scroll horizontally |\n| `md` | `768px` | sidebar icon rail + main panel |\n| `lg` | `1024px` | full sidebar + main + optional detail drawer |\n| `xl` | `1280px` | wider tables, persistent inspector panel |\n\n- **Touch targets:** minimum `36px` for table rows, `44px` for primary controls.\n- **Collapsing strategy:** sidebar collapses to a drawer below `md`; wide tables\n become horizontally scrollable with a sticky first column; keep status color\n visible when stacked.\n\n## 9. Agent Prompt Guide\n\n### Quick Color Reference\n\n- Accent (emerald): `#3ecf8e` (hover `#34b87b`, on it use `#11181c` text)\n- Background: `#1c1c1c` · Surface: `#232323` · Raised: `#2a2a2a`\n- Text: `#ededed` · Muted: `#a0a0a0` · Subtle: `#707070`\n- Border: `#2e2e2e` (strong `#3d3d3d`)\n- Warning `#f5a623` · Danger `#f56565`\n\n### Example prompts (copy-paste)\n\n1. \"Generate a database table view in the Supabase system: `#1c1c1c` canvas,\n header row `#2a2a2a` with `0.8125rem` uppercase `#a0a0a0` labels, `2.25rem`\n rows with mono `#ededed` values, `#2e2e2e` hairline dividers, row hover\n `rgba(255,255,255,0.03)`, and a green `#3ecf8e` 'Insert row' primary button.\"\n2. \"Build a project sidebar: `#1a1a1a` panel `14rem` wide, items `2rem` tall in\n `#a0a0a0`, active item bg `rgba(62,207,142,0.1)` with `#3ecf8e` text and a\n `2px` emerald left bar, hover `rgba(255,255,255,0.04)`.\"\n3. \"Create an API-key card: surface `#232323`, `1px #2e2e2e` border, radius\n `0.5rem`, a monospace key in `#ededed`, a success badge bg\n `rgba(62,207,142,0.15)`/text `#3ecf8e`, and a secondary 'Copy' button\n (`#2a2a2a` / `1px #3d3d3d`).\"\n\n### Iteration guide\n\n1. Set a warm charcoal base `#1c1c1c` and step surfaces `#232323`/`#2a2a2a`.\n2. Add emerald `#3ecf8e` only for actions, success, and active state.\n3. Switch data, keys, and code to monospace.\n4. Make tables dense and aligned with hairline dividers and hover rows.\n5. Verify emerald fills use dark `#11181c` text for legible contrast."},"distributions":[],"examples":[]},"design-guide:vercel-design":{"resourceId":"design-guide:vercel-design","title":{"zh":"Vercel Design System","en":"Vercel Design System"},"docs":{"zh":"# Vercel Design System\n\n1. Visual Theme & Atmosphere\n\n## 1. Visual Theme & Atmosphere\n\nVercel is uncompromising black-and-white minimalism. The system is built on pure\ncontrast: near-black ink on white (or the inverse in dark mode), with color used\nonly as a rare functional signal. Edges are crisp, geometry is exact, and the\nGeist typeface gives everything a clean, slightly technical voice. There is no\nornament — clarity and speed are the brand. Build interfaces that feel like a\nwell-set terminal turned into product UI: sharp, fast, legible, and confident in\ntheir restraint.\n\n## 2. Color Palette & Roles\n\n| Role | Token | Value | Notes |\n| --- | --- | --- | --- |\n| Background | `--bg` | `#ffffff` | light canvas |\n| Background dark | `--bg-dark` | `#000000` | dark canvas |\n| Surface | `--surface` | `#ffffff` | cards (light) |\n| Surface dark | `--surface-dark` | `#0a0a0a` | cards (dark) |\n| Foreground | `--fg` | `#000000` | primary ink (light) |\n| Foreground dark | `--fg-dark` | `#ededed` | primary ink (dark) |\n| Muted foreground | `--fg-muted` | `#666666` | secondary text |\n| Subtle foreground | `--fg-subtle` | `#8f8f8f` | meta, disabled |\n| Accent | `--accent` | `#0070f3` | functional blue (links/focus) |\n| Border | `--border` | `#eaeaea` | hairlines (light) |\n| Border dark | `--border-dark` | `#333333` | hairlines (dark) |\n| Success | `--success` | `#0070f3` | / use blue or green `#50e3c2` |\n| Warning | `--warning` | `#f5a623` | caution |\n| Danger | `--danger` | `#ee0000` | error, destructive |\n\n## 3. Typography Rules\n\n- **Sans:** `\"Geist\", \"Geist Sans\", -apple-system, \"Segoe UI\", sans-serif`\n- **Mono:** `\"Geist Mono\", \"SF Mono\", ui-monospace, monospace`\n\nGeist is geometric and even; headings are bold and tight, body is plain and\nhighly legible. Mono is used liberally for code, metrics, and labels to signal\nthe developer audience.\n\n| Role | Size | Weight | Line-height | Tracking |\n| --- | --- | --- | --- | --- |\n| Display | `3.75rem` | `700` | `1.0` | `-0.04em` |\n| H1 | `2.25rem` | `600` | `1.1` | `-0.03em` |\n| H2 | `1.5rem` | `600` | `1.2` | `-0.02em` |\n| H3 | `1.125rem` | `600` | `1.3` | `-0.012em` |\n| Body | `1rem` | `400` | `1.5` | `-0.005em` |\n| Label | `0.875rem` | `500` | `1.4` | `0` |\n| Caption | `0.8125rem` | `400` | `1.4` | `0` |\n| Mono | `0.875rem` | `400` | `1.5` | `0` |\n\n## 4. Component Stylings\n\n### Buttons\n\n- **Primary (light):** bg `#000000`, text `#ffffff`, radius `0.375rem`, padding\n `0.5rem 0.875rem`, weight `500`, font-size `0.875rem`. Hover bg `#383838`.\n Active bg `#000000`. Focus ring `0 0 0 2px #ffffff, 0 0 0 4px #000000`.\n- **Primary (dark):** bg `#ffffff`, text `#000000`. Hover bg `#cccccc`.\n- **Secondary:** bg `transparent`, text `#000000`, border `1px solid #eaeaea`.\n Hover border `#000000`.\n- **Disabled:** bg `#fafafa`, text `#8f8f8f`, border `#eaeaea`.\n\n### Cards\n\n- bg `#ffffff`, border `1px solid #eaeaea`, radius `0.5rem`, padding `1.5rem`.\n- No shadow at rest; rely on the hairline border. Optional level-1 on hover.\n\n### Inputs\n\n- bg `#ffffff`, border `1px solid #eaeaea`, radius `0.375rem`, height `2.5rem`,\n padding `0 0.75rem`, text `#000000`, placeholder `#8f8f8f`.\n- Focus: border `#000000`, ring `0 0 0 1px #000000`.\n\n### Badges\n\n- Pill, radius `9999px`, font-size `0.75rem`, weight `500`, padding\n `0.125rem 0.5rem`, border `1px solid #eaeaea`, text `#000000`. Status\n variants use a small `0.5rem` colored dot rather than a fill.\n\n### Navigation\n\n- Top bar, bg `rgba(255,255,255,0.8)` + `backdrop-filter: blur(8px)`,\n height `4rem`, border-bottom `1px solid #eaeaea`. Links `#666666`; active/hover\n `#000000`. Avatar/CTA on the right.\n\n## 5. Layout Principles\n\n- **Spacing scale:** `0.25rem · 0.5rem · 0.75rem · 1rem · 1.5rem · 2rem · 4rem · 6rem`.\n- **Container max-width:** `75rem` (1200px), side padding `1.5rem`.\n- **Grid:** 12-column, gutter `1.5rem`; precise, aligned to an `8px` baseline.\n- **Whitespace:** ample but exact — alignment matters more than padding size.\n- **Radius scale:** `sm 0.25rem · md 0.375rem · lg 0.5rem · xl 0.75rem · full 9999px`.\n\n## 6. Depth & Elevation\n\nElevation is mostly avoided; structure comes from borders and contrast.\n\n| Level | Use | Shadow |\n| --- | --- | --- |\n| 0 | flat (default) | `none` |\n| 1 | hovered card | `0 2px 4px rgba(0,0,0,0.06)` |\n| 2 | dropdown, popover | `0 4px 12px rgba(0,0,0,0.1)` |\n| 3 | modal | `0 12px 32px rgba(0,0,0,0.16)` |\n\n## 7. Do's and Don'ts\n\n**Do**\n\n- Lead with pure black and white; treat color as a rare functional signal.\n- Use hairline `#eaeaea` borders to define structure instead of shadows.\n- Use Geist Mono for code, metrics, and technical labels.\n- Apply tight negative tracking to large headings.\n- Keep edges sharp and alignment exact (snap to an `8px` grid).\n\n**Don't**\n\n- Don't introduce decorative gradients or multiple accent colors.\n- Don't soften the look with heavy shadows or large radii.\n- Don't reduce contrast below clearly legible black-on-white.\n- Don't add ornament; if it isn't functional, remove it.\n- Don't mix many font weights — bold for headings, regular for body.\n\n## 8. Responsive Behavior\n\n| Breakpoint | Min width | Behavior |\n| --- | --- | --- |\n| `sm` | `640px` | single column, full-width |\n| `md` | `768px` | 2-column grids |\n| `lg` | `1024px` | full 12-column layout |\n| `xl` | `1280px` | max container `75rem` |\n\n- **Touch targets:** minimum `44px × 44px`; buttons keep `2.5rem` height.\n- **Collapsing strategy:** nav collapses to a hamburger below `md`; multi-column\n grids stack to one column; preserve hairline dividers when stacked.\n\n## 9. Agent Prompt Guide\n\n### Quick Color Reference\n\n- Ink: `#000000` (dark mode `#ededed`)\n- Canvas: `#ffffff` (dark mode `#000000`)\n- Muted: `#666666` · Subtle: `#8f8f8f`\n- Border: `#eaeaea` (dark `#333333`)\n- Accent (functional): `#0070f3` · Danger `#ee0000` · Warning `#f5a623`\n\n### Example prompts (copy-paste)\n\n1. \"Generate a dashboard stat card in the Vercel system: white surface, `1px\n #eaeaea` border, radius `0.5rem`, no shadow; a metric in Geist Mono\n `0.875rem`, a label in `#666666`, and a tiny `0.5rem` status dot instead of a\n filled badge.\"\n2. \"Build a top nav: `4rem` tall, `rgba(255,255,255,0.8)` with `blur(8px)`,\n `1px #eaeaea` bottom border, links in `#666666` turning `#000000` on hover,\n and a black primary button (`#000000`/white, radius `0.375rem`) on the right.\"\n3. \"Create a deploy log panel: `#000000` canvas, `#ededed` text, Geist Mono\n `0.875rem`/`1.5` line-height, `#333333` hairline rows, blue `#0070f3` for\n active/link states only. Sharp corners, no shadow.\"\n\n### Iteration guide\n\n1. Strip color: render in pure black and white first.\n2. Define structure with `#eaeaea` hairlines, not shadows.\n3. Add Geist Mono wherever data or code appears.\n4. Tighten heading tracking and keep edges sharp (no large radii).\n5. Reintroduce one functional accent (`#0070f3`/`#ee0000`) only where it signals.","en":"# Vercel Design System\n\n1. Visual Theme & Atmosphere\n\n## 1. Visual Theme & Atmosphere\n\nVercel is uncompromising black-and-white minimalism. The system is built on pure\ncontrast: near-black ink on white (or the inverse in dark mode), with color used\nonly as a rare functional signal. Edges are crisp, geometry is exact, and the\nGeist typeface gives everything a clean, slightly technical voice. There is no\nornament — clarity and speed are the brand. Build interfaces that feel like a\nwell-set terminal turned into product UI: sharp, fast, legible, and confident in\ntheir restraint.\n\n## 2. Color Palette & Roles\n\n| Role | Token | Value | Notes |\n| --- | --- | --- | --- |\n| Background | `--bg` | `#ffffff` | light canvas |\n| Background dark | `--bg-dark` | `#000000` | dark canvas |\n| Surface | `--surface` | `#ffffff` | cards (light) |\n| Surface dark | `--surface-dark` | `#0a0a0a` | cards (dark) |\n| Foreground | `--fg` | `#000000` | primary ink (light) |\n| Foreground dark | `--fg-dark` | `#ededed` | primary ink (dark) |\n| Muted foreground | `--fg-muted` | `#666666` | secondary text |\n| Subtle foreground | `--fg-subtle` | `#8f8f8f` | meta, disabled |\n| Accent | `--accent` | `#0070f3` | functional blue (links/focus) |\n| Border | `--border` | `#eaeaea` | hairlines (light) |\n| Border dark | `--border-dark` | `#333333` | hairlines (dark) |\n| Success | `--success` | `#0070f3` | / use blue or green `#50e3c2` |\n| Warning | `--warning` | `#f5a623` | caution |\n| Danger | `--danger` | `#ee0000` | error, destructive |\n\n## 3. Typography Rules\n\n- **Sans:** `\"Geist\", \"Geist Sans\", -apple-system, \"Segoe UI\", sans-serif`\n- **Mono:** `\"Geist Mono\", \"SF Mono\", ui-monospace, monospace`\n\nGeist is geometric and even; headings are bold and tight, body is plain and\nhighly legible. Mono is used liberally for code, metrics, and labels to signal\nthe developer audience.\n\n| Role | Size | Weight | Line-height | Tracking |\n| --- | --- | --- | --- | --- |\n| Display | `3.75rem` | `700` | `1.0` | `-0.04em` |\n| H1 | `2.25rem` | `600` | `1.1` | `-0.03em` |\n| H2 | `1.5rem` | `600` | `1.2` | `-0.02em` |\n| H3 | `1.125rem` | `600` | `1.3` | `-0.012em` |\n| Body | `1rem` | `400` | `1.5` | `-0.005em` |\n| Label | `0.875rem` | `500` | `1.4` | `0` |\n| Caption | `0.8125rem` | `400` | `1.4` | `0` |\n| Mono | `0.875rem` | `400` | `1.5` | `0` |\n\n## 4. Component Stylings\n\n### Buttons\n\n- **Primary (light):** bg `#000000`, text `#ffffff`, radius `0.375rem`, padding\n `0.5rem 0.875rem`, weight `500`, font-size `0.875rem`. Hover bg `#383838`.\n Active bg `#000000`. Focus ring `0 0 0 2px #ffffff, 0 0 0 4px #000000`.\n- **Primary (dark):** bg `#ffffff`, text `#000000`. Hover bg `#cccccc`.\n- **Secondary:** bg `transparent`, text `#000000`, border `1px solid #eaeaea`.\n Hover border `#000000`.\n- **Disabled:** bg `#fafafa`, text `#8f8f8f`, border `#eaeaea`.\n\n### Cards\n\n- bg `#ffffff`, border `1px solid #eaeaea`, radius `0.5rem`, padding `1.5rem`.\n- No shadow at rest; rely on the hairline border. Optional level-1 on hover.\n\n### Inputs\n\n- bg `#ffffff`, border `1px solid #eaeaea`, radius `0.375rem`, height `2.5rem`,\n padding `0 0.75rem`, text `#000000`, placeholder `#8f8f8f`.\n- Focus: border `#000000`, ring `0 0 0 1px #000000`.\n\n### Badges\n\n- Pill, radius `9999px`, font-size `0.75rem`, weight `500`, padding\n `0.125rem 0.5rem`, border `1px solid #eaeaea`, text `#000000`. Status\n variants use a small `0.5rem` colored dot rather than a fill.\n\n### Navigation\n\n- Top bar, bg `rgba(255,255,255,0.8)` + `backdrop-filter: blur(8px)`,\n height `4rem`, border-bottom `1px solid #eaeaea`. Links `#666666`; active/hover\n `#000000`. Avatar/CTA on the right.\n\n## 5. Layout Principles\n\n- **Spacing scale:** `0.25rem · 0.5rem · 0.75rem · 1rem · 1.5rem · 2rem · 4rem · 6rem`.\n- **Container max-width:** `75rem` (1200px), side padding `1.5rem`.\n- **Grid:** 12-column, gutter `1.5rem`; precise, aligned to an `8px` baseline.\n- **Whitespace:** ample but exact — alignment matters more than padding size.\n- **Radius scale:** `sm 0.25rem · md 0.375rem · lg 0.5rem · xl 0.75rem · full 9999px`.\n\n## 6. Depth & Elevation\n\nElevation is mostly avoided; structure comes from borders and contrast.\n\n| Level | Use | Shadow |\n| --- | --- | --- |\n| 0 | flat (default) | `none` |\n| 1 | hovered card | `0 2px 4px rgba(0,0,0,0.06)` |\n| 2 | dropdown, popover | `0 4px 12px rgba(0,0,0,0.1)` |\n| 3 | modal | `0 12px 32px rgba(0,0,0,0.16)` |\n\n## 7. Do's and Don'ts\n\n**Do**\n\n- Lead with pure black and white; treat color as a rare functional signal.\n- Use hairline `#eaeaea` borders to define structure instead of shadows.\n- Use Geist Mono for code, metrics, and technical labels.\n- Apply tight negative tracking to large headings.\n- Keep edges sharp and alignment exact (snap to an `8px` grid).\n\n**Don't**\n\n- Don't introduce decorative gradients or multiple accent colors.\n- Don't soften the look with heavy shadows or large radii.\n- Don't reduce contrast below clearly legible black-on-white.\n- Don't add ornament; if it isn't functional, remove it.\n- Don't mix many font weights — bold for headings, regular for body.\n\n## 8. Responsive Behavior\n\n| Breakpoint | Min width | Behavior |\n| --- | --- | --- |\n| `sm` | `640px` | single column, full-width |\n| `md` | `768px` | 2-column grids |\n| `lg` | `1024px` | full 12-column layout |\n| `xl` | `1280px` | max container `75rem` |\n\n- **Touch targets:** minimum `44px × 44px`; buttons keep `2.5rem` height.\n- **Collapsing strategy:** nav collapses to a hamburger below `md`; multi-column\n grids stack to one column; preserve hairline dividers when stacked.\n\n## 9. Agent Prompt Guide\n\n### Quick Color Reference\n\n- Ink: `#000000` (dark mode `#ededed`)\n- Canvas: `#ffffff` (dark mode `#000000`)\n- Muted: `#666666` · Subtle: `#8f8f8f`\n- Border: `#eaeaea` (dark `#333333`)\n- Accent (functional): `#0070f3` · Danger `#ee0000` · Warning `#f5a623`\n\n### Example prompts (copy-paste)\n\n1. \"Generate a dashboard stat card in the Vercel system: white surface, `1px\n #eaeaea` border, radius `0.5rem`, no shadow; a metric in Geist Mono\n `0.875rem`, a label in `#666666`, and a tiny `0.5rem` status dot instead of a\n filled badge.\"\n2. \"Build a top nav: `4rem` tall, `rgba(255,255,255,0.8)` with `blur(8px)`,\n `1px #eaeaea` bottom border, links in `#666666` turning `#000000` on hover,\n and a black primary button (`#000000`/white, radius `0.375rem`) on the right.\"\n3. \"Create a deploy log panel: `#000000` canvas, `#ededed` text, Geist Mono\n `0.875rem`/`1.5` line-height, `#333333` hairline rows, blue `#0070f3` for\n active/link states only. Sharp corners, no shadow.\"\n\n### Iteration guide\n\n1. Strip color: render in pure black and white first.\n2. Define structure with `#eaeaea` hairlines, not shadows.\n3. Add Geist Mono wherever data or code appears.\n4. Tighten heading tracking and keep edges sharp (no large radii).\n5. Reintroduce one functional accent (`#0070f3`/`#ee0000`) only where it signals."},"distributions":[],"examples":[]},"example:admin-dashboard-example":{"resourceId":"example:admin-dashboard-example","title":{"zh":"admin-dashboard Example","en":"admin-dashboard Example"},"docs":{"zh":"# admin-dashboard Example\n\nAcme Admin\n\n","en":"# admin-dashboard Example\n\nAcme Admin\n\n"},"distributions":[],"examples":[{"id":"admin-dashboard-example","title":"admin-dashboard Example","mode":"spec","language":"yaml","code":"version: \"2.0\"\npages:\n - id: admin-dashboard\n path: /\n title: Acme Admin\n blocks:\n - type: PageLayout\n template: app-shell-sidebar\n props:\n title: Acme Console\n slots:\n headerActions:\n - type: Button\n props:\n label: New report\n size: sm\n variant: outline\n sidebar:\n - type: PageSiderMenu\n props:\n title: Workspace\n children:\n - type: MenuLink\n props:\n label: Overview\n href: \"#\"\n icon: \"▦\"\n active: true\n - type: MenuLink\n props:\n label: Customers\n href: \"#\"\n icon: \"◍\"\n badge: \"n/a\"\n - type: MenuLink\n props:\n label: Orders\n href: \"#\"\n icon: \"▤\"\n badge: \"38\"\n - type: MenuLink\n props:\n label: Analytics\n href: \"#\"\n icon: \"◔\"\n - type: MenuLink\n props:\n label: Settings\n href: \"#\"\n icon: \"⚙\"\n children:\n - type: Box\n props:\n className: \"flex items-end justify-between gap-4 mb-3 border-b border-border pb-3\"\n children:\n - type: Box\n children:\n - type: Heading\n props:\n level: 2\n text: Overview\n - type: Paragraph\n props:\n size: sm\n muted: true\n text: \"Demo window · last 30 days · Linear-like density\"\n - type: BadgeGroup\n props:\n items:\n - label: 3 failing checks\n tone: error\n - label: Queue healthy\n tone: success\n - type: Toast\n props:\n level: warning\n title: Status first\n message: \"Payment retry is failing for 3 orders. Sample data below — unknown live counts stay n/a.\"\n - type: StatGrid\n props:\n cols: \"4\"\n items:\n - label: Failing checks\n value: \"3\"\n change: \"needs triage\"\n trend: down\n - label: Open orders\n value: \"38\"\n description: \"in the demo table\"\n - label: Revenue (demo)\n value: \"$48,210\"\n change: \"+12.5%\"\n trend: up\n - label: Live visitors\n value: \"n/a\"\n description: \"source offline\"\n - type: Grid\n props:\n cols: \"3\"\n gap: lg\n children:\n - type: Box\n props:\n className: \"col-span-2\"\n children:\n - type: Card\n props:\n title: Revenue trend\n description: \"Demo series · hairline card, no drop shadow\"\n children:\n - type: TrendChart\n props:\n height: 200\n labels: [\"Jan\", \"Feb\", \"Mar\", \"Apr\", \"May\", \"Jun\"]\n series:\n - name: MRR\n area: true\n points: [18, 24, 22, 30, 38, 48]\n - name: Target\n points: [20, 25, 30, 32, 40, 44]\n - type: Card\n props:\n title: Pipeline\n children:\n - type: TimelineList\n props:\n items:\n - time: \"09:24\"\n title: \"Order #4821 shipped\"\n status: ok\n - time: \"08:50\"\n title: \"Refund requested\"\n desc: \"Customer #221\"\n status: warn\n - time: \"08:12\"\n title: \"Payment failed\"\n desc: \"Retrying in 1h\"\n status: error\n - time: \"07:40\"\n title: \"New signup\"\n status: ok\n - type: Card\n props:\n title: Recent orders\n description: \"Empty state is wired if the demo rows are cleared\"\n slots:\n actions:\n - type: Button\n props:\n label: Export\n variant: outline\n size: sm\n children:\n - type: Table\n props:\n emptyText: No orders in this window.\n columns:\n - key: id\n label: Order\n - key: customer\n label: Customer\n - key: total\n label: Total\n align: right\n - key: status\n label: Status\n rows:\n - id: \"#4821\"\n customer: Jane Cooper\n total: \"$210.00\"\n status: Shipped\n - id: \"#4820\"\n customer: Wade Warren\n total: \"$84.20\"\n status: Processing\n - id: \"#4819\"\n customer: Esther Howard\n total: \"$1,420.00\"\n status: Paid\n - id: \"#4818\"\n customer: Cameron W.\n total: \"$32.00\"\n status: Refunded\n","dependencies":["template:admin-dashboard"]}]},"example:ai-chat-example":{"resourceId":"example:ai-chat-example","title":{"zh":"ai-chat Example","en":"ai-chat Example"},"docs":{"zh":"# ai-chat Example\n\nNova — Chat\n\n","en":"# ai-chat Example\n\nNova — Chat\n\n"},"distributions":[],"examples":[{"id":"ai-chat-example","title":"ai-chat Example","mode":"spec","language":"yaml","code":"version: '2.0'\nmenus:\n items:\n - key: chat\n label: Chat\n path: /\n icon: ◫\n - key: history\n label: History\n path: /history\n icon: ▤\n - key: usage\n label: Usage\n path: /usage\n icon: ◔\n - key: settings\n label: Settings\n path: /settings\n icon: ⚙\npages:\n- id: chat\n path: /\n title: Nova — Chat\n state:\n selectedId: c-2\n blocks:\n - type: PageLayout\n props:\n title: Nova AI\n slots:\n headerActions:\n - type: Button\n props:\n label: + New chat\n size: sm\n children:\n - type: SplitMasterDetail\n props:\n selectKey: selectedId\n items:\n - id: c-1\n title: Refactor a React hook\n subtitle: GPT-4o · 2m ago\n - id: c-2\n title: Explain the chain rule\n subtitle: Claude 3.5 · 18m ago\n - id: c-3\n title: Draft a launch email\n subtitle: GPT-4o · 1h ago\n - id: c-4\n title: SQL window functions\n subtitle: Claude 3.5 · yesterday\n slots:\n detail:\n - type: Box\n props:\n className: \"flex min-h-[28rem] flex-col border border-border\"\n children:\n - type: Box\n props:\n className: \"flex items-center justify-between border-b border-border px-4 py-3\"\n children:\n - type: Box\n children:\n - type: Heading\n props:\n level: 3\n text: Explain the chain rule\n - type: Paragraph\n props:\n size: sm\n muted: true\n text: Claude 3.5 Sonnet · sample thread\n - type: BadgeGroup\n props:\n items:\n - label: temp 0.4\n tone: info\n - label: 1.2k tokens\n tone: default\n - type: Box\n props:\n className: \"flex flex-1 flex-col gap-3 px-4 py-4\"\n children:\n - type: Box\n props:\n className: \"max-w-[85%] self-end border border-border px-3 py-2\"\n children:\n - type: Paragraph\n props:\n size: sm\n muted: true\n text: You\n - type: Markdown\n props:\n content: Can you explain the **chain rule** in calculus with a quick example?\n - type: Box\n props:\n className: \"max-w-[85%] self-start bg-muted/40 px-3 py-2\"\n children:\n - type: Paragraph\n props:\n size: sm\n muted: true\n text: Nova\n - type: Markdown\n props:\n content: 'The **chain rule** differentiates a *composition* of functions.\n\n If `y = f(g(x))`, then `dy/dx = f''(g(x)) · g''(x)`.\n\n\n **Example** — for `y = (3x + 1)^5`:\n\n\n - Outer: `u^5` → derivative `5u^4`\n\n - Inner: `3x + 1` → derivative `3`\n\n\n So `dy/dx = 5(3x + 1)^4 · 3 = 15(3x + 1)^4`.\n\n '\n - type: Box\n props:\n className: \"border-t border-border px-4 py-3\"\n children:\n - type: Form\n children:\n - type: Form.TextArea\n props:\n name: message\n label: Message\n rows: 2\n placeholder: Ask a follow-up…\n - type: Form.Submit\n props:\n label: Send\n template: app-shell-sidebar\n- id: history\n path: /history\n title: Nova — History\n blocks:\n - type: PageLayout\n props:\n title: Nova AI\n slots:\n headerActions:\n - type: Button\n props:\n label: Clear all\n size: sm\n variant: outline\n children:\n - type: Box\n props:\n className: mb-2\n children:\n - type: Heading\n props:\n level: 2\n text: Conversation history\n - type: Paragraph\n props:\n size: sm\n muted: true\n text: 128 conversations · searchable across titles and models\n - type: Card\n props:\n title: All conversations\n children:\n - type: SearchableTable\n props:\n searchKey: chatSearch\n placeholder: Search conversations…\n emptyText: No conversations match this search.\n columns:\n - key: title\n label: Title\n - key: model\n label: Model\n - key: messages\n label: Messages\n align: center\n - key: tokens\n label: Tokens\n align: right\n - key: updated\n label: Updated\n rows:\n - title: Refactor a React hook\n model: GPT-4o\n messages: '8'\n tokens: 3,420\n updated: 2m ago\n - title: Explain the chain rule\n model: Claude 3.5\n messages: '2'\n tokens: 1,210\n updated: 18m ago\n - title: Draft a launch email\n model: GPT-4o\n messages: '6'\n tokens: 2,980\n updated: 1h ago\n - title: SQL window functions\n model: Claude 3.5\n messages: '12'\n tokens: 5,640\n updated: yesterday\n - title: Summarize a research paper\n model: GPT-4o\n messages: '4'\n tokens: 8,120\n updated: 2 days ago\n - title: Write a cover letter\n model: Claude 3.5\n messages: '5'\n tokens: 2,310\n updated: 3 days ago\n template: app-shell-sidebar\n- id: settings\n path: /settings\n title: Nova — Settings\n blocks:\n - type: PageLayout\n props:\n title: Nova AI\n children:\n - type: Box\n props:\n className: mb-2\n children:\n - type: Heading\n props:\n level: 2\n text: Settings\n - type: Paragraph\n props:\n size: sm\n muted: true\n text: Configure the default model, generation behavior, and API access.\n - type: Tabs\n props:\n tabs:\n - Model\n - API keys\n - Advanced\n children:\n - type: Card\n props:\n title: Default model\n description: Applied to new conversations\n children:\n - type: Form\n children:\n - type: Form.Select\n props:\n name: model\n label: Model\n options:\n - value: gpt-4o\n label: GPT-4o\n - value: claude-3-5-sonnet\n label: Claude 3.5 Sonnet\n - value: llama-3-70b\n label: Llama 3 70B\n - type: Form.Input\n props:\n name: temperature\n label: Temperature\n type: number\n placeholder: '0.4'\n helpText: 0 = deterministic, 1 = creative.\n - type: Form.Input\n props:\n name: maxTokens\n label: Max output tokens\n type: number\n placeholder: '2048'\n - type: Form.Checkbox\n props:\n name: streaming\n label: Stream responses\n description: Show tokens as they are generated.\n - type: Form.Submit\n props:\n label: Save model settings\n - type: Card\n props:\n title: API keys\n description: Keys are encrypted at rest\n children:\n - type: Form\n children:\n - type: Form.Input\n props:\n name: openaiKey\n label: OpenAI API key\n type: password\n placeholder: sk-…\n - type: Form.Input\n props:\n name: anthropicKey\n label: Anthropic API key\n type: password\n placeholder: sk-ant-…\n - type: Form.Submit\n props:\n label: Save keys\n - type: Card\n props:\n title: Advanced\n description: System behavior\n children:\n - type: Form\n children:\n - type: Form.TextArea\n props:\n name: systemPrompt\n label: System prompt\n rows: 4\n placeholder: You are a concise, helpful assistant…\n - type: Form.Checkbox\n props:\n name: telemetry\n label: Share anonymous usage data\n description: Helps improve model routing.\n - type: Form.Submit\n props:\n label: Save advanced settings\n template: app-shell-sidebar\n- id: usage\n path: /usage\n title: Nova — Usage\n blocks:\n - type: PageLayout\n props:\n title: Nova AI\n slots:\n headerActions:\n - type: Button\n props:\n label: Download CSV\n size: sm\n variant: outline\n children:\n - type: Box\n props:\n className: mb-2\n children:\n - type: Heading\n props:\n level: 2\n text: Usage & billing\n - type: Paragraph\n props:\n size: sm\n muted: true\n text: Current cycle · resets on the 1st\n - type: StatGrid\n props:\n cols: '4'\n items:\n - label: Tokens this month\n value: 1.84M\n change: +12%\n trend: up\n - label: Requests\n value: 3,420\n change: +8%\n trend: up\n - label: Est. cost\n value: $42.18\n change: +$5.10\n trend: up\n - label: Avg. latency\n value: 1.3s\n change: -0.2s\n trend: down\n - type: Card\n props:\n title: Token usage\n description: Daily tokens by model · last 7 days\n children:\n - type: TrendChart\n props:\n height: 220\n labels:\n - Mon\n - Tue\n - Wed\n - Thu\n - Fri\n - Sat\n - Sun\n series:\n - name: GPT-4o\n area: true\n points:\n - 180\n - 240\n - 210\n - 320\n - 290\n - 150\n - 120\n - name: Claude 3.5\n points:\n - 120\n - 160\n - 140\n - 200\n - 220\n - 90\n - 80\n - type: Card\n props:\n title: Usage by model\n children:\n - type: Table\n props:\n columns:\n - key: model\n label: Model\n - key: requests\n label: Requests\n align: center\n - key: tokens\n label: Tokens\n align: right\n - key: cost\n label: Cost\n align: right\n rows:\n - model: GPT-4o\n requests: 1,980\n tokens: 1.12M\n cost: $28.40\n - model: Claude 3.5 Sonnet\n requests: 1,210\n tokens: 0.61M\n cost: $12.18\n - model: Llama 3 70B\n requests: '230'\n tokens: 0.11M\n cost: $1.60\n template: app-shell-sidebar\n","dependencies":["template:ai-chat"]}]},"example:analytics-dashboard-example":{"resourceId":"example:analytics-dashboard-example","title":{"zh":"analytics-dashboard Example","en":"analytics-dashboard Example"},"docs":{"zh":"# analytics-dashboard Example\n\nAnalytics\n\n","en":"# analytics-dashboard Example\n\nAnalytics\n\n"},"distributions":[],"examples":[{"id":"analytics-dashboard-example","title":"analytics-dashboard Example","mode":"spec","language":"yaml","code":"version: \"2.0\"\npages:\n - id: analytics-dashboard\n path: /\n title: Analytics\n blocks:\n - type: PageLayout\n props:\n title: Insight\n slots:\n headerActions:\n - type: Button\n props:\n label: Last 7 days\n variant: outline\n size: sm\n - type: Button\n props:\n label: Share\n variant: ghost\n size: sm\n children:\n - type: Box\n props:\n className: \"flex items-end justify-between gap-4 mb-3 border-b border-border pb-3\"\n children:\n - type: Box\n children:\n - type: Heading\n props:\n level: 2\n text: Traffic\n - type: Paragraph\n props:\n size: sm\n muted: true\n text: \"Demo property · Linear density · bounce is the status signal\"\n - type: BadgeGroup\n props:\n items:\n - label: Bounce 38.1%\n tone: warning\n - label: Source lag\n tone: info\n - type: StatGrid\n props:\n cols: \"4\"\n items:\n - label: Bounce rate\n value: \"38.1%\"\n change: \"-1.2%\"\n trend: down\n - label: Visitors (demo)\n value: \"84.2k\"\n change: \"+9.4%\"\n trend: up\n - label: Page views\n value: \"312k\"\n change: \"+12.0%\"\n trend: up\n - label: Live now\n value: \"n/a\"\n description: \"stream disconnected\"\n - type: Grid\n props:\n cols: \"3\"\n gap: lg\n children:\n - type: Box\n props:\n className: \"col-span-2\"\n children:\n - type: Card\n props:\n title: Traffic over time\n description: \"Hairline panel · sample week\"\n children:\n - type: TrendChart\n props:\n height: 220\n labels: [\"Mon\", \"Tue\", \"Wed\", \"Thu\", \"Fri\", \"Sat\", \"Sun\"]\n series:\n - name: Visitors\n area: true\n points: [12, 18, 15, 22, 28, 19, 24]\n - name: Conversions\n points: [2, 3, 3, 5, 6, 4, 5]\n - type: Card\n props:\n title: Top sources\n children:\n - type: KeyValueGrid\n props:\n cols: \"1\"\n items:\n - key: Organic search\n value: \"42%\"\n - key: Direct\n value: \"28%\"\n - key: Referral\n value: \"18%\"\n - key: Social\n value: \"12%\"\n - type: Grid\n props:\n cols: \"2\"\n gap: lg\n children:\n - type: Card\n props:\n title: Engagement matrix\n description: \"Channel × day intensity\"\n children:\n - type: Matrix\n props:\n showValues: false\n rows: [\"Search\", \"Direct\", \"Social\"]\n cols: [\"Mon\", \"Tue\", \"Wed\", \"Thu\", \"Fri\"]\n cells:\n - [0.2, 0.4, 0.5, 0.8, 1.0]\n - [0.3, 0.3, 0.4, 0.6, 0.7]\n - [0.1, 0.2, 0.6, 0.4, 0.9]\n - type: Card\n props:\n title: Top pages\n description: \"Empty copy is ready if the table is filtered to zero\"\n children:\n - type: Table\n props:\n emptyText: No pages matched this window.\n columns:\n - key: path\n label: Page\n - key: views\n label: Views\n align: right\n - key: rate\n label: Conv.\n align: right\n rows:\n - path: \"/\"\n views: \"84,210\"\n rate: \"4.2%\"\n - path: \"/pricing\"\n views: \"31,002\"\n rate: \"8.1%\"\n - path: \"/blog\"\n views: \"22,540\"\n rate: \"1.9%\"\n - path: \"/docs\"\n views: \"18,330\"\n rate: \"2.4%\"\n","dependencies":["template:analytics-dashboard"]}]},"example:auth-example":{"resourceId":"example:auth-example","title":{"zh":"auth Example","en":"auth Example"},"docs":{"zh":"# auth Example\n\nSign in\n\n","en":"# auth Example\n\nSign in\n\n"},"distributions":[],"examples":[{"id":"auth-example","title":"auth Example","mode":"spec","language":"yaml","code":"version: \"2.0\"\npages:\n - id: auth-login\n path: /\n title: Sign in\n blocks:\n - type: Box\n props:\n className: \"min-h-screen flex items-center justify-center p-6 bg-background\"\n children:\n - type: Box\n props:\n className: \"w-full max-w-sm\"\n children:\n - type: Box\n props:\n className: \"flex flex-col items-start gap-1 mb-6\"\n children:\n - type: Paragraph\n props:\n size: sm\n muted: true\n text: \"Northwind\"\n - type: Heading\n props:\n level: 2\n text: \"Sign in\"\n - type: Paragraph\n props:\n size: sm\n muted: true\n text: \"Work email. No gradient chrome.\"\n - type: Card\n props:\n className: \"rounded-none border border-border shadow-none\"\n children:\n - type: Form\n props:\n label: \"\"\n children:\n - type: \"Form.Input\"\n props:\n name: email\n label: Email\n type: email\n placeholder: you@company.com\n required: true\n - type: \"Form.Input\"\n props:\n name: password\n label: Password\n type: password\n placeholder: \"••••••••\"\n required: true\n - type: Box\n props:\n className: \"flex items-center justify-between\"\n children:\n - type: \"Form.Checkbox\"\n props:\n name: remember\n label: Remember me\n - type: Link\n props:\n label: Forgot password?\n href: \"#\"\n variant: muted\n - type: \"Form.Submit\"\n props:\n label: Sign in\n full: true\n - type: Divider\n - type: Button\n props:\n label: \"Continue with Google\"\n variant: outline\n full: true\n - type: Box\n props:\n className: \"flex justify-start gap-1 mt-5 text-sm\"\n children:\n - type: Paragraph\n props:\n size: sm\n muted: true\n text: \"Don't have an account?\"\n - type: Link\n props:\n label: \"Sign up\"\n href: \"#\"\n","dependencies":["template:auth"]}]},"example:blog-example":{"resourceId":"example:blog-example","title":{"zh":"blog Example","en":"blog Example"},"docs":{"zh":"# blog Example\n\nThe Northwind Journal\n\n","en":"# blog Example\n\nThe Northwind Journal\n\n"},"distributions":[],"examples":[{"id":"blog-example","title":"blog Example","mode":"spec","language":"yaml","code":"version: \"2.0\"\npages:\n - id: blog\n path: /\n title: The Northwind Journal\n blocks:\n - type: PageLayout\n props:\n title: The Journal\n slots:\n headerActions:\n - type: Link\n props:\n label: Subscribe\n href: \"#\"\n variant: button\n children:\n - type: Box\n props:\n className: \"flex flex-col gap-2 py-10 border-b border-border mb-8\"\n children:\n - type: BadgeGroup\n props:\n items:\n - label: Engineering\n tone: info\n - type: Heading\n props:\n level: 1\n text: \"Building a local-first sync engine\"\n - type: Paragraph\n props:\n muted: true\n text: \"By Ada Lovelace · March 14, 2026 · 8 min read\"\n - type: Grid\n props:\n cols: \"3\"\n gap: lg\n children:\n # ── Article body ───────────────────────────────────\n - type: Box\n props:\n className: \"col-span-2\"\n children:\n - type: Markdown\n props:\n content: |\n Most apps treat the network as the source of truth. We flipped that.\n\n ## Why local-first?\n\n When the **local store** is authoritative, the UI never waits on a\n round-trip. Reads and writes resolve instantly, then sync in the\n background. The result is an interface that feels *native* even on\n flaky connections.\n\n - Zero perceived latency on every interaction\n - Conflict-free merges via CRDTs\n - Offline by default, online when possible\n\n ## The hard part\n\n Ordering. We assign each mutation a `lamport` timestamp and replay\n them deterministically across clients. The merge function is pure,\n so two clients always converge on the same state.\n\n > The best sync is the sync you never notice.\n\n Next week we'll dig into how we keep the wire format under 100 bytes\n per mutation.\n # ── Sidebar ────────────────────────────────────────\n - type: Box\n props:\n className: \"flex flex-col gap-4\"\n children:\n - type: Card\n props:\n title: More posts\n children:\n - type: List\n props:\n divided: true\n children:\n - type: Link\n props:\n label: \"Designing for keyboard-first teams\"\n href: \"#\"\n - type: Link\n props:\n label: \"How we cut bundle size by 40%\"\n href: \"#\"\n - type: Link\n props:\n label: \"A field guide to CRDTs\"\n href: \"#\"\n - type: Card\n props:\n title: Newsletter\n description: \"One thoughtful email a week\"\n children:\n - type: Form\n children:\n - type: \"Form.Input\"\n props:\n name: email\n type: email\n placeholder: you@company.com\n - type: \"Form.Submit\"\n props:\n label: Subscribe\n full: true\n","dependencies":["template:blog"]}]},"example:crm-example":{"resourceId":"example:crm-example","title":{"zh":"crm Example","en":"crm Example"},"docs":{"zh":"# crm Example\n\nPipeline — CRM\n\n","en":"# crm Example\n\nPipeline — CRM\n\n"},"distributions":[],"examples":[{"id":"crm-example","title":"crm Example","mode":"spec","language":"yaml","code":"version: \"2.0\"\npages:\n - id: crm\n path: /\n title: Pipeline — CRM\n blocks:\n - type: PageLayout\n template: app-shell-sidebar\n props:\n title: Relate CRM\n slots:\n headerActions:\n - type: Button\n props:\n label: \"+ Add lead\"\n size: sm\n sidebar:\n - type: PageSiderMenu\n props:\n title: Sales\n children:\n - type: MenuLink\n props:\n label: Pipeline\n href: \"#\"\n icon: \"◫\"\n active: true\n - type: MenuLink\n props:\n label: Contacts\n href: \"#\"\n icon: \"◍\"\n badge: \"5\"\n - type: MenuLink\n props:\n label: Deals\n href: \"#\"\n icon: \"◆\"\n - type: MenuLink\n props:\n label: Reports\n href: \"#\"\n icon: \"◔\"\n badge: \"n/a\"\n children:\n - type: Box\n props:\n className: \"flex items-end justify-between gap-4 mb-3 border-b border-border pb-3\"\n children:\n - type: Box\n children:\n - type: Heading\n props:\n level: 2\n text: Pipeline\n - type: Paragraph\n props:\n size: sm\n muted: true\n text: \"Demo workspace · sample deals, not live ARR\"\n - type: BadgeGroup\n props:\n items:\n - label: 1 hot deal\n tone: warning\n - label: Forecast n/a\n tone: info\n - type: Toast\n props:\n level: warning\n title: Status first\n message: \"Umbrella Inc is marked hot. Pipeline dollars below are demo labels — live forecast stays n/a.\"\n - type: StatGrid\n props:\n cols: \"3\"\n items:\n - label: Open pipeline (demo)\n value: \"$1.24M\"\n change: \"sample board\"\n trend: up\n - label: Win rate (demo)\n value: \"32%\"\n change: \"+3pt sample\"\n trend: up\n - label: Live forecast\n value: \"n/a\"\n description: \"CRM source offline\"\n - type: Card\n props:\n title: Pipeline by stage\n description: \"Five sample cards · hairline board\"\n className: \"rounded-none border border-border shadow-none\"\n children:\n - type: KanbanBoard\n props:\n columns:\n - id: lead\n title: Lead\n - id: qualified\n title: Qualified\n - id: proposal\n title: Proposal\n - id: won\n title: Won\n cards:\n - id: c1\n column: lead\n title: Globex Corp\n subtitle: \"$22,000 · demo\"\n badge: New\n - id: c2\n column: lead\n title: Initech\n subtitle: \"$8,400 · demo\"\n - id: c3\n column: qualified\n title: Umbrella Inc\n subtitle: \"$54,000 · demo\"\n badge: Hot\n - id: c4\n column: proposal\n title: Stark Industries\n subtitle: \"$140,000 · demo\"\n - id: c5\n column: won\n title: Wayne Enterprises\n subtitle: \"$96,000 · demo\"\n badge: Closed\n - type: Card\n props:\n title: Recent contacts\n description: \"Empty state is wired if the demo rows are cleared\"\n className: \"rounded-none border border-border shadow-none\"\n children:\n - type: Table\n props:\n emptyText: No contacts in this window.\n striped: true\n columns:\n - key: name\n label: Name\n - key: company\n label: Company\n - key: stage\n label: Stage\n - key: value\n label: Value\n align: right\n rows:\n - name: Marcus Webb\n company: Globex Corp\n stage: Lead\n value: \"$22,000\"\n - name: Lena Park\n company: Umbrella Inc\n stage: Qualified\n value: \"$54,000\"\n - name: Omar Haddad\n company: Stark Industries\n stage: Proposal\n value: \"$140,000\"\n","dependencies":["template:crm"]}]},"example:ecommerce-example":{"resourceId":"example:ecommerce-example","title":{"zh":"ecommerce Example","en":"ecommerce Example"},"docs":{"zh":"# ecommerce Example\n\nShop — All products\n\n","en":"# ecommerce Example\n\nShop — All products\n\n"},"distributions":[],"examples":[{"id":"ecommerce-example","title":"ecommerce Example","mode":"spec","language":"yaml","code":"version: \"2.0\"\npages:\n - id: ecommerce\n path: /\n title: Shop — All products\n blocks:\n - type: PageLayout\n props:\n title: Atelier\n slots:\n headerActions:\n - type: Link\n props:\n label: \"Cart · 2\"\n href: \"#\"\n variant: button\n children:\n - type: Box\n props:\n className: \"flex items-end justify-between mb-4 border-b border-border pb-4\"\n children:\n - type: Box\n children:\n - type: Heading\n props:\n level: 2\n text: \"New arrivals\"\n - type: Paragraph\n props:\n size: sm\n muted: true\n text: \"Demo catalog · 4 sample SKUs · photos not attached\"\n - type: Box\n props:\n className: \"w-48\"\n children:\n - type: Form\n children:\n - type: \"Form.Select\"\n props:\n name: sort\n options:\n - value: featured\n label: Featured\n - value: price-asc\n label: \"Price: low to high\"\n - value: newest\n label: Newest\n - type: \"Form.Submit\"\n props:\n label: Apply\n variant: ghost\n - type: Grid\n props:\n cols: \"4\"\n responsive: true\n gap: lg\n children:\n - type: Card\n props:\n className: \"rounded-none border border-border shadow-none\"\n children:\n - type: Box\n props:\n className: \"h-40 -mx-6 -mt-6 mb-3 border-b border-border bg-muted/40 flex items-center justify-center\"\n children:\n - type: Paragraph\n props:\n size: sm\n muted: true\n text: \"No image\"\n - type: BadgeGroup\n props:\n items:\n - label: New\n tone: success\n - type: Heading\n props:\n level: 4\n text: \"Linen Overshirt\"\n - type: Stat\n props:\n value: \"$128\"\n description: \"sample price\"\n - type: Button\n props:\n label: Add to cart\n full: true\n - type: Card\n props:\n className: \"rounded-none border border-border shadow-none\"\n children:\n - type: Box\n props:\n className: \"h-40 -mx-6 -mt-6 mb-3 border-b border-border bg-muted/40 flex items-center justify-center\"\n children:\n - type: Paragraph\n props:\n size: sm\n muted: true\n text: \"No image\"\n - type: Heading\n props:\n level: 4\n text: \"Wool Trousers\"\n - type: Stat\n props:\n value: \"$96\"\n change: \"$120\"\n description: \"was $120 · sample\"\n - type: Button\n props:\n label: Add to cart\n full: true\n - type: Card\n props:\n className: \"rounded-none border border-border shadow-none\"\n children:\n - type: Box\n props:\n className: \"h-40 -mx-6 -mt-6 mb-3 border-b border-border bg-muted/40 flex items-center justify-center\"\n children:\n - type: Paragraph\n props:\n size: sm\n muted: true\n text: \"No image\"\n - type: Heading\n props:\n level: 4\n text: \"Canvas Tote\"\n - type: Stat\n props:\n value: \"$54\"\n description: \"sample price\"\n - type: Button\n props:\n label: Add to cart\n full: true\n - type: Card\n props:\n className: \"rounded-none border border-border shadow-none\"\n children:\n - type: Box\n props:\n className: \"h-40 -mx-6 -mt-6 mb-3 border-b border-border bg-muted/40 flex items-center justify-center\"\n children:\n - type: Paragraph\n props:\n size: sm\n muted: true\n text: \"No image\"\n - type: BadgeGroup\n props:\n items:\n - label: Low stock\n tone: warning\n - type: Heading\n props:\n level: 4\n text: \"Leather Belt\"\n - type: Stat\n props:\n value: \"$72\"\n description: \"2 left in demo\"\n - type: Button\n props:\n label: Add to cart\n full: true\n","dependencies":["template:ecommerce"]}]},"example:lms-example":{"resourceId":"example:lms-example","title":{"zh":"lms Example","en":"lms Example"},"docs":{"zh":"# lms Example\n\nLearn — Dashboard\n\n","en":"# lms Example\n\nLearn — Dashboard\n\n"},"distributions":[],"examples":[{"id":"lms-example","title":"lms Example","mode":"spec","language":"yaml","code":"version: '2.0'\nmenus:\n items:\n - key: dashboard\n label: Dashboard\n path: /\n icon: ▦\n - key: courses\n label: Courses\n path: /courses\n icon: ◫\n - key: lessons\n label: Lessons\n path: /lessons\n icon: ◧\n - key: grades\n label: Grades\n path: /grades\n icon: ◔\npages:\n- id: dashboard\n path: /\n title: Learn — Dashboard\n blocks:\n - type: PageLayout\n props:\n title: Lumen LMS\n slots:\n headerActions:\n - type: Button\n props:\n label: Resume course\n size: sm\n children:\n - type: Box\n props:\n className: mb-2\n children:\n - type: Heading\n props:\n level: 2\n text: Welcome back, Ada\n - type: Paragraph\n props:\n size: sm\n muted: true\n text: You have 3 lessons due this week. Keep your 14-day streak alive.\n - type: StatGrid\n props:\n cols: '4'\n items:\n - label: Courses in progress\n value: '5'\n change: '+1'\n trend: up\n - label: Overall completion\n value: 68%\n change: +6pt\n trend: up\n - label: Study streak\n value: 14 days\n change: '+2'\n trend: up\n - label: Hours this month\n value: 27h\n change: -3h\n trend: down\n - type: Grid\n props:\n cols: '3'\n gap: lg\n children:\n - type: Box\n props:\n className: col-span-2\n children:\n - type: Card\n props:\n title: Study time\n description: Minutes per day · last 7 days\n children:\n - type: TrendChart\n props:\n height: 200\n labels:\n - Mon\n - Tue\n - Wed\n - Thu\n - Fri\n - Sat\n - Sun\n series:\n - name: This week\n area: true\n points:\n - 45\n - 60\n - 30\n - 90\n - 75\n - 120\n - 50\n - name: Goal\n points:\n - 60\n - 60\n - 60\n - 60\n - 60\n - 60\n - 60\n - type: Card\n props:\n title: Due soon\n children:\n - type: TimelineList\n props:\n items:\n - time: Today\n title: 'Quiz: Derivatives'\n desc: Calculus I\n status: warn\n - time: Wed\n title: Essay draft\n desc: Modern History\n status: ok\n - time: Fri\n title: Lab report\n desc: Intro to Chemistry\n status: error\n - time: Sun\n title: 'Reading: Ch. 4'\n desc: Microeconomics\n status: ok\n - type: Heading\n props:\n level: 3\n text: Continue learning\n - type: Grid\n props:\n cols: '3'\n responsive: true\n gap: lg\n children:\n - type: Card\n props:\n title: Calculus I\n description: Limits, derivatives, integrals\n children:\n - type: BadgeGroup\n props:\n items:\n - label: 72% done\n tone: success\n - label: Math\n tone: info\n - type: Button\n props:\n label: Continue · Lesson 9\n full: true\n - type: Card\n props:\n title: Modern History\n description: 1900 to present\n children:\n - type: BadgeGroup\n props:\n items:\n - label: 40% done\n tone: warning\n - label: Humanities\n tone: info\n - type: Button\n props:\n label: Continue · Lesson 5\n full: true\n - type: Card\n props:\n title: Intro to Chemistry\n description: Atoms, bonds, reactions\n children:\n - type: BadgeGroup\n props:\n items:\n - label: 15% done\n tone: error\n - label: Science\n tone: info\n - type: Button\n props:\n label: Continue · Lesson 2\n full: true\n template: app-shell-sidebar\n- id: courses\n path: /courses\n title: Learn — Courses\n blocks:\n - type: PageLayout\n props:\n title: Lumen LMS\n slots:\n headerActions:\n - type: Button\n props:\n label: Browse catalog\n size: sm\n variant: outline\n children:\n - type: Box\n props:\n className: mb-2\n children:\n - type: Heading\n props:\n level: 2\n text: My courses\n - type: Paragraph\n props:\n size: sm\n muted: true\n text: 12 enrolled · 5 in progress · 7 completed\n - type: Card\n props:\n title: Enrolled courses\n children:\n - type: SearchableTable\n props:\n searchKey: courseSearch\n placeholder: Search courses…\n columns:\n - key: title\n label: Course\n - key: instructor\n label: Instructor\n - key: category\n label: Category\n - key: progress\n label: Progress\n align: right\n - key: status\n label: Status\n rows:\n - title: Calculus I\n instructor: Dr. Noether\n category: Math\n progress: 72%\n status: In progress\n - title: Modern History\n instructor: Prof. Zinn\n category: Humanities\n progress: 40%\n status: In progress\n - title: Intro to Chemistry\n instructor: Dr. Curie\n category: Science\n progress: 15%\n status: In progress\n - title: Microeconomics\n instructor: Dr. Smith\n category: Economics\n progress: 100%\n status: Completed\n - title: Linear Algebra\n instructor: Dr. Strang\n category: Math\n progress: 100%\n status: Completed\n - title: Creative Writing\n instructor: Prof. Woolf\n category: Humanities\n progress: 0%\n status: Not started\n template: app-shell-sidebar\n- id: lessons\n path: /lessons\n title: Learn — Calculus I\n state:\n selectedId: l-9\n blocks:\n - type: PageLayout\n props:\n title: Lumen LMS\n slots:\n headerActions:\n - type: Button\n props:\n label: Mark complete\n size: sm\n children:\n - type: Breadcrumb\n props:\n items:\n - label: Courses\n href: /courses\n - label: Calculus I\n href: /lessons\n - label: Lesson 9 — The Chain Rule\n - type: SplitMasterDetail\n props:\n selectKey: selectedId\n items:\n - id: l-7\n title: 7 · The Product Rule\n subtitle: Completed · 12 min\n - id: l-8\n title: 8 · The Quotient Rule\n subtitle: Completed · 10 min\n - id: l-9\n title: 9 · The Chain Rule\n subtitle: In progress · 18 min\n - id: l-10\n title: 10 · Implicit Differentiation\n subtitle: Locked · 15 min\n slots:\n detail:\n - type: Card\n props:\n title: Lesson 9 — The Chain Rule\n description: Calculus I · Module 3 · 18 min\n slots:\n actions:\n - type: BadgeGroup\n props:\n items:\n - label: In progress\n tone: warning\n - label: Video + reading\n tone: info\n children:\n - type: KeyValueGrid\n props:\n cols: '3'\n items:\n - key: Duration\n value: 18 min\n - key: Difficulty\n value: Intermediate\n - key: Prerequisite\n value: Product Rule\n - type: Divider\n - type: Markdown\n props:\n content: '## The Chain Rule\n\n\n The **chain rule** lets you differentiate a *composition*\n\n of functions. If `y = f(g(x))`, then:\n\n\n - Differentiate the **outer** function, keeping the inner intact.\n\n - Multiply by the derivative of the **inner** function.\n\n\n Formally, `dy/dx = f''(g(x)) · g''(x)`.\n\n\n ### Worked example\n\n\n For `y = (3x + 1)^5`, the outer is `u^5` and the inner is\n\n `3x + 1`, so `dy/dx = 5(3x + 1)^4 · 3 = 15(3x + 1)^4`.\n\n '\n - type: Toast\n props:\n level: info\n title: Up next\n message: Finish the practice set to unlock Implicit Differentiation.\n template: app-shell-sidebar\n- id: grades\n path: /grades\n title: Learn — Grades\n blocks:\n - type: PageLayout\n props:\n title: Lumen LMS\n slots:\n headerActions:\n - type: Button\n props:\n label: Export transcript\n size: sm\n variant: outline\n children:\n - type: Box\n props:\n className: mb-2\n children:\n - type: Heading\n props:\n level: 2\n text: Grades & transcript\n - type: Paragraph\n props:\n size: sm\n muted: true\n text: Spring term · GPA updated nightly\n - type: StatGrid\n props:\n cols: '4'\n items:\n - label: GPA\n value: '3.74'\n change: '+0.08'\n trend: up\n - label: Credits earned\n value: '48'\n change: '+6'\n trend: up\n - label: Assignments graded\n value: 92%\n - label: Pending review\n value: '3'\n change: '-2'\n trend: down\n - type: Card\n props:\n title: Course grades\n children:\n - type: Table\n props:\n columns:\n - key: course\n label: Course\n - key: assignments\n label: Assignments\n align: center\n - key: average\n label: Average\n align: right\n - key: grade\n label: Grade\n align: right\n rows:\n - course: Calculus I\n assignments: 9 / 12\n average: 88%\n grade: B+\n - course: Modern History\n assignments: 5 / 10\n average: 91%\n grade: A-\n - course: Intro to Chemistry\n assignments: 2 / 8\n average: 76%\n grade: C+\n - course: Microeconomics\n assignments: 12 / 12\n average: 95%\n grade: A\n - course: Linear Algebra\n assignments: 10 / 10\n average: 93%\n grade: A\n template: app-shell-sidebar\n","dependencies":["template:lms"]}]},"example:portfolio-example":{"resourceId":"example:portfolio-example","title":{"zh":"portfolio Example","en":"portfolio Example"},"docs":{"zh":"# portfolio Example\n\nAda Lovelace — Designer & Engineer\n\n","en":"# portfolio Example\n\nAda Lovelace — Designer & Engineer\n\n"},"distributions":[],"examples":[{"id":"portfolio-example","title":"portfolio Example","mode":"spec","language":"yaml","code":"version: \"2.0\"\npages:\n - id: portfolio\n path: /\n title: Ada Lovelace — Designer & Engineer\n blocks:\n - type: PageLayout\n props:\n title: Ada Lovelace\n slots:\n headerActions:\n - type: Link\n props:\n label: Resume\n href: \"#\"\n variant: muted\n - type: Link\n props:\n label: Contact\n href: \"#\"\n variant: button\n children:\n - type: Box\n props:\n className: \"flex flex-col items-start gap-5 py-16 max-w-2xl\"\n children:\n - type: BadgeGroup\n props:\n items:\n - label: Available for work\n tone: success\n - type: Heading\n props:\n level: 1\n text: \"I design and build calm, fast software.\"\n - type: Paragraph\n props:\n size: lg\n muted: true\n text: \"Product designer and front-end engineer. Eight years shipping interfaces for fintech and developer tools. Currently at Northwind.\"\n - type: Box\n props:\n className: \"flex gap-3\"\n children:\n - type: Button\n props:\n label: View work\n - type: Button\n props:\n label: \"Get in touch\"\n variant: outline\n - type: Divider\n - type: Box\n props:\n className: \"py-8\"\n children:\n - type: Heading\n props:\n level: 2\n text: Selected work\n - type: Paragraph\n props:\n size: sm\n muted: true\n text: \"Stills are not attached — hairline frames stand in for the case studies.\"\n - type: Grid\n props:\n cols: \"2\"\n responsive: true\n gap: lg\n children:\n - type: Card\n props:\n title: Northwind Console\n description: \"Design system · 2025\"\n className: \"rounded-none border border-border shadow-none\"\n children:\n - type: Box\n props:\n className: \"h-44 -mx-6 mb-3 border border-border bg-muted/40 flex items-center justify-center\"\n children:\n - type: Paragraph\n props:\n size: sm\n muted: true\n text: \"Case still · not attached\"\n - type: Paragraph\n props:\n muted: true\n text: \"Unified 40+ surfaces under one OKLCH token system and a keyboard-first interaction model.\"\n - type: Card\n props:\n title: Ledger Mobile\n description: \"iOS · 2024\"\n className: \"rounded-none border border-border shadow-none\"\n children:\n - type: Box\n props:\n className: \"h-44 -mx-6 mb-3 border border-border bg-muted/40 flex items-center justify-center\"\n children:\n - type: Paragraph\n props:\n size: sm\n muted: true\n text: \"Case still · not attached\"\n - type: Paragraph\n props:\n muted: true\n text: \"Redesigned the budgeting flow, cutting time-to-first-transaction by 60%.\"\n - type: Box\n props:\n className: \"py-12\"\n children:\n - type: KeyValueGrid\n props:\n cols: \"3\"\n items:\n - key: Years\n value: \"8+\"\n - key: Shipped products\n value: \"24\"\n - key: Based in\n value: \"Lisbon\"\n - type: Box\n props:\n className: \"flex flex-col items-start gap-4 my-12 py-10 px-6 border border-border bg-foreground text-background\"\n children:\n - type: Heading\n props:\n level: 2\n text: \"Let's build something\"\n - type: Paragraph\n props:\n text: \"Open to select freelance and full-time roles. No purple CTA wash.\"\n - type: Button\n props:\n label: \"ada@lovelace.dev\"\n variant: secondary\n size: lg\n","dependencies":["template:portfolio"]}]},"example:pricing-example":{"resourceId":"example:pricing-example","title":{"zh":"pricing Example","en":"pricing Example"},"docs":{"zh":"# pricing Example\n\nPricing\n\n","en":"# pricing Example\n\nPricing\n\n"},"distributions":[],"examples":[{"id":"pricing-example","title":"pricing Example","mode":"spec","language":"yaml","code":"version: \"2.0\"\npages:\n - id: pricing\n path: /\n title: Pricing\n blocks:\n - type: PageLayout\n props:\n title: Northwind\n slots:\n headerActions:\n - type: Link\n props:\n label: Product\n href: \"#\"\n variant: muted\n - type: Link\n props:\n label: Start free\n href: \"#\"\n variant: button\n children:\n - type: Box\n props:\n className: \"flex flex-col items-start gap-3 py-12 max-w-2xl\"\n children:\n - type: Paragraph\n props:\n size: sm\n muted: true\n text: \"Pricing\"\n - type: Heading\n props:\n level: 1\n text: \"Pay when the workspace earns a seat\"\n - type: Paragraph\n props:\n size: lg\n muted: true\n text: \"Starter is free. Pro is a published monthly rate. Enterprise is a conversation — we do not invent an SLA number here.\"\n - type: Box\n props:\n className: \"border-y border-border py-6 mb-8\"\n children:\n - type: Paragraph\n props:\n size: sm\n muted: true\n text: \"Proof · same billing language as the product, not a logo wall\"\n - type: Grid\n props:\n cols: \"3\"\n responsive: true\n gap: lg\n children:\n - type: Card\n props:\n title: Starter\n description: \"Individuals and side projects\"\n children:\n - type: Stat\n props:\n value: \"$0\"\n description: \"per workspace / month\"\n - type: Divider\n - type: List\n props:\n compact: true\n children:\n - type: Paragraph\n props:\n text: \"Up to 3 projects\"\n - type: Paragraph\n props:\n text: \"Community support\"\n - type: Paragraph\n props:\n text: \"1 GB attachments\"\n - type: Button\n props:\n label: Get started\n variant: outline\n full: true\n - type: Box\n props:\n className: \"rounded-none ring-1 ring-foreground\"\n children:\n - type: Card\n props:\n title: Pro\n description: \"Growing product teams\"\n slots:\n actions:\n - type: BadgeGroup\n props:\n items:\n - label: Recommended\n tone: info\n children:\n - type: Stat\n props:\n value: \"$24\"\n description: \"per member / month, annual\"\n - type: Divider\n - type: List\n props:\n compact: true\n children:\n - type: Paragraph\n props:\n text: \"Unlimited projects\"\n - type: Paragraph\n props:\n text: \"Priority queue\"\n - type: Paragraph\n props:\n text: \"100 GB attachments\"\n - type: Paragraph\n props:\n text: \"SSO-ready billing\"\n - type: Button\n props:\n label: Start 14-day trial\n full: true\n - type: Card\n props:\n title: Enterprise\n description: \"Security review required\"\n children:\n - type: Stat\n props:\n value: \"Talk to us\"\n description: \"scoped to your review\"\n - type: Divider\n - type: List\n props:\n compact: true\n children:\n - type: Paragraph\n props:\n text: \"SSO & SCIM\"\n - type: Paragraph\n props:\n text: \"Named success contact\"\n - type: Paragraph\n props:\n text: \"Contracted retention\"\n - type: Paragraph\n props:\n text: \"Uptime terms in the MSA — not a marketing %\"\n - type: Button\n props:\n label: Contact sales\n variant: outline\n full: true\n - type: Box\n props:\n className: \"flex flex-col gap-3 py-12 max-w-xl\"\n children:\n - type: Heading\n props:\n level: 3\n text: \"Before you pick a tier\"\n - type: Paragraph\n props:\n muted: true\n text: \"Members are unlimited on every plan. Cancel anytime. Empty seats are not billed as fake usage.\"\n - type: Button\n props:\n label: Create a free workspace\n size: lg\n","dependencies":["template:pricing"]}]},"example:saas-landing-example":{"resourceId":"example:saas-landing-example","title":{"zh":"saas-landing Example","en":"saas-landing Example"},"docs":{"zh":"# saas-landing Example\n\nNorthwind — Ship in one surface\n\n","en":"# saas-landing Example\n\nNorthwind — Ship in one surface\n\n"},"distributions":[],"examples":[{"id":"saas-landing-example","title":"saas-landing Example","mode":"spec","language":"yaml","code":"version: \"2.0\"\npages:\n - id: saas-landing\n path: /\n title: Northwind — Ship in one surface\n blocks:\n - type: PageLayout\n props:\n title: Northwind\n slots:\n headerActions:\n - type: Link\n props:\n label: Docs\n href: \"#\"\n variant: muted\n - type: Link\n props:\n label: Sign in\n href: \"#\"\n variant: muted\n - type: Link\n props:\n label: Start free\n href: \"#\"\n variant: button\n children:\n # hero — Vercel/Stripe restraint: left rail, no purple gradient\n - type: Box\n props:\n className: \"grid gap-10 py-8 px-2 md:grid-cols-[minmax(0,1.2fr)_minmax(0,0.8fr)] md:items-end\"\n children:\n - type: Box\n props:\n className: \"flex flex-col items-start gap-5 max-w-xl\"\n children:\n - type: Paragraph\n props:\n size: sm\n muted: true\n text: \"Issue tracker for teams that already ship\"\n - type: Heading\n props:\n level: 1\n text: \"Plan issues. Ship releases.\"\n - type: Paragraph\n props:\n size: lg\n muted: true\n text: \"Triage issues, plan each cycle, and follow releases from one workspace.\"\n - type: Box\n props:\n className: \"flex flex-wrap gap-3\"\n children:\n - type: Button\n props:\n label: Start free\n size: lg\n - type: Button\n props:\n label: View pricing\n variant: outline\n size: lg\n - type: Card\n props:\n title: Cycle 24\n description: \"Demo workspace — sample issues, not live counts\"\n children:\n - type: KeyValueGrid\n props:\n cols: \"1\"\n items:\n - key: In review\n value: \"14\"\n - key: Blocked\n value: \"3\"\n - key: Ready to ship\n value: \"8\"\n # proof\n - type: Box\n props:\n className: \"flex flex-col gap-3 border-y border-border py-8\"\n children:\n - type: Paragraph\n props:\n size: sm\n muted: true\n text: \"Built for the same people who already live in Linear-style tools\"\n - type: Paragraph\n props:\n text: \"Platform · Payments · Infra — named in copy, not as fake logo tiles\"\n # features\n - type: Box\n props:\n className: \"flex flex-col items-start gap-2 pt-14 pb-4\"\n children:\n - type: Heading\n props:\n level: 2\n text: \"What stays on one surface\"\n - type: Paragraph\n props:\n muted: true\n text: \"Three jobs. One layout rhythm. Tokens, not gradients.\"\n - type: Grid\n props:\n cols: \"3\"\n responsive: true\n gap: lg\n children:\n - type: Card\n props:\n title: Keyboard triage\n description: \"Assign, close, and cycle without a mouse\"\n children:\n - type: Paragraph\n props:\n muted: true\n text: \"Shortcuts are first-class. The page does not grow a second toolbar.\"\n - type: Card\n props:\n title: Honest status\n description: \"Empty, loading, and error stay distinct\"\n children:\n - type: Paragraph\n props:\n muted: true\n text: \"Unknown counts render as n/a. No zeroed KPI theater.\"\n - type: Card\n props:\n title: Roadmap without a new app\n description: \"Issues stay attached to the quarter\"\n children:\n - type: Paragraph\n props:\n muted: true\n text: \"Projects and goals share the same hairline table language as triage.\"\n # pricing teaser → dedicated pricing template owns the full grid\n - type: Box\n props:\n className: \"flex flex-col items-start gap-2 pt-14 pb-4\"\n children:\n - type: Heading\n props:\n level: 2\n text: \"Start free. Upgrade when the team does.\"\n - type: Paragraph\n props:\n muted: true\n text: \"Three published tiers. No hidden seats.\"\n - type: Grid\n props:\n cols: \"3\"\n responsive: true\n gap: md\n children:\n - type: Card\n props:\n title: Starter\n description: \"$0 / workspace\"\n children:\n - type: Paragraph\n props:\n muted: true\n text: \"Up to 3 projects. Community support.\"\n - type: Card\n props:\n title: Pro\n description: \"$24 / member / month\"\n children:\n - type: Paragraph\n props:\n text: \"Unlimited projects, SSO-ready billing, priority queue.\"\n - type: Card\n props:\n title: Enterprise\n description: \"Talk to us\"\n children:\n - type: Paragraph\n props:\n muted: true\n text: \"Security review and a named success contact. No invented SLA number.\"\n # CTA\n - type: Box\n props:\n className: \"flex flex-col items-start gap-4 my-16 py-12 px-8 rounded-none border border-border bg-foreground text-background\"\n children:\n - type: Heading\n props:\n level: 2\n text: \"Create a workspace\"\n - type: Paragraph\n props:\n text: \"Two minutes to first issue. No credit card. Open the pricing page when you need seats.\"\n - type: Button\n props:\n label: Get started free\n variant: secondary\n size: lg\n","dependencies":["template:saas-landing"]}]},"example:settings-example":{"resourceId":"example:settings-example","title":{"zh":"settings Example","en":"settings Example"},"docs":{"zh":"# settings Example\n\nSettings\n\n","en":"# settings Example\n\nSettings\n\n"},"distributions":[],"examples":[{"id":"settings-example","title":"settings Example","mode":"spec","language":"yaml","code":"version: \"2.0\"\npages:\n - id: settings\n path: /\n title: Settings\n blocks:\n - type: PageLayout\n template: app-shell-sidebar\n props:\n title: Settings\n variant: sidebar\n slots:\n sidebar:\n - type: PageSiderMenu\n props:\n title: Settings\n children:\n - type: MenuGroup\n props:\n title: Account\n children:\n - type: MenuLink\n props:\n label: Profile\n href: \"#\"\n icon: \"◍\"\n active: true\n - type: MenuLink\n props:\n label: Account\n href: \"#\"\n icon: \"⚙\"\n - type: MenuLink\n props:\n label: Notifications\n href: \"#\"\n icon: \"◔\"\n - type: MenuLink\n props:\n label: Billing\n href: \"#\"\n icon: \"▦\"\n children:\n - type: Box\n props:\n className: \"flex items-end justify-between gap-4 mb-4 border-b border-border pb-3\"\n children:\n - type: Box\n children:\n - type: Heading\n props:\n level: 2\n text: Profile\n - type: Paragraph\n props:\n size: sm\n muted: true\n text: \"Public fields only. Hairline cards. Last saved stays visible.\"\n - type: BadgeGroup\n props:\n items:\n - label: Saved 2m ago\n tone: success\n - type: Tabs\n props:\n tabs: [\"General\", \"Preferences\", \"Danger zone\"]\n children:\n - type: Card\n props:\n title: Personal information\n description: \"Displayed on your public profile\"\n children:\n - type: Form\n children:\n - type: Grid\n props:\n cols: \"2\"\n gap: md\n children:\n - type: \"Form.Input\"\n props:\n name: firstName\n label: First name\n placeholder: Ada\n - type: \"Form.Input\"\n props:\n name: lastName\n label: Last name\n placeholder: Lovelace\n - type: \"Form.Input\"\n props:\n name: email\n label: Email\n type: email\n placeholder: ada@northwind.dev\n - type: \"Form.TextArea\"\n props:\n name: bio\n label: Bio\n rows: 3\n placeholder: \"Short, specific, no filler\"\n helpText: \"One or two sentences. Empty is allowed.\"\n - type: \"Form.Submit\"\n props:\n label: Save changes\n - type: Card\n props:\n title: Preferences\n children:\n - type: Form\n children:\n - type: \"Form.Checkbox\"\n props:\n name: emailDigest\n label: Weekly email digest\n description: \"A summary of activity every Monday.\"\n - type: \"Form.Checkbox\"\n props:\n name: productUpdates\n label: Product updates\n description: \"News about features and improvements.\"\n - type: \"Form.Select\"\n props:\n name: theme\n label: Theme\n options:\n - value: system\n label: System\n - value: light\n label: Light\n - value: dark\n label: Dark\n - type: \"Form.Submit\"\n props:\n label: Save preferences\n - type: Card\n props:\n title: Danger zone\n description: \"Irreversible. Confirm before you click.\"\n children:\n - type: Toast\n props:\n level: warning\n title: Delete account\n message: \"Once deleted, the account and its data are gone. There is no undo path.\"\n - type: Form\n children:\n - type: \"Form.Submit\"\n props:\n label: Delete my account\n variant: destructive\n","dependencies":["template:settings"]}]},"example:shadcn-admin-example":{"resourceId":"example:shadcn-admin-example","title":{"zh":"UiBot Admin Example","en":"UiBot Admin Example"},"docs":{"zh":"# UiBot Admin Example\n\nDashboard\n\n","en":"# UiBot Admin Example\n\nDashboard\n\n"},"distributions":[],"examples":[{"id":"shadcn-admin-example","title":"UiBot Admin Example","mode":"spec","language":"yaml","code":"version: \"2.0\"\n# Application pages inherit these defaults; auth/error pages retain standalone roots.\nlayout:\n navigation: sidebar\n container: fluid\n navigationStyle: attached\n offcanvas: attached\n sidebar: expanded\nconnections:\n - id: tasks-db\n type: NowAPI.Collection\n - id: users-db\n type: NowAPI.Collection\n - id: preferences-db\n type: NowAPI.Collection\n - id: conversations-db\n type: NowAPI.Collection\n - id: messages-db\n type: NowAPI.Collection\n - id: integrations-db\n type: NowAPI.Collection\npages:\n - id: dashboard\n path: /\n title: Dashboard\n state:\n direction: \"ltr\"\n font: \"Inter\"\n theme: \"light\"\n currentPath: /\n blocks:\n - type: PageLayout\n children:\n - type: Box\n props:\n className: \"!flex-row items-start justify-between gap-4 mb-6\"\n children:\n - type: Box\n props:\n gap: xs\n children:\n - type: Heading\n props:\n level: 1\n text: Dashboard\n - type: Button\n props:\n label: Download\n disabled: true\n - type: Tabs\n props:\n tabs:\n - Overview\n - Analytics\n - Reports\n - Notifications\n disabledTabs:\n - 2\n - 3\n variant: segmented\n children:\n - type: Box\n props:\n gap: md\n children:\n - type: Box\n props:\n className: \"!grid grid-cols-1 gap-4 sm:grid-cols-2 xl:grid-cols-4\"\n children:\n - type: StatCard\n props:\n label: Total Revenue\n value: $45,231.89\n description: +20.1% from last month\n icon: chart-no-axes-column\n - type: StatCard\n props:\n label: Subscriptions\n value: \"+2350\"\n description: +180.1% from last month\n icon: users\n - type: StatCard\n props:\n label: Sales\n value: +12,234\n description: +19% from last month\n icon: boxes\n - type: StatCard\n props:\n label: Active Now\n value: \"+573\"\n description: +201 since last hour\n icon: chart-no-axes-column\n - type: Box\n props:\n className: \"!grid grid-cols-1 gap-4 lg:grid-cols-7\"\n children:\n - type: Box\n props:\n className: lg:col-span-4\n children:\n - type: Card\n props:\n title: Overview\n children:\n - type: BarChart\n props:\n prefix: $\n height: 350\n data:\n - label: Jan\n value: 1500\n - label: Feb\n value: 5800\n - label: Mar\n value: 5500\n - label: Apr\n value: 2200\n - label: May\n value: 4800\n - label: Jun\n value: 1600\n - label: Jul\n value: 2800\n - label: Aug\n value: 2300\n - label: Sep\n value: 5700\n - label: Oct\n value: 1400\n - label: Nov\n value: 2900\n - label: Dec\n value: 1900\n - type: Box\n props:\n className: lg:col-span-3\n children:\n - type: Card\n props:\n title: Recent Sales\n description: You made 265 sales this month.\n children:\n - type: AvatarList\n props:\n items:\n - id: \"0\"\n initials: OM\n name: Olivia Martin\n description: olivia.martin@email.com\n value: +$1,999.00\n - id: \"1\"\n initials: JL\n name: Jackson Lee\n description: jackson.lee@email.com\n value: +$39.00\n - id: \"2\"\n initials: IN\n name: Isabella Nguyen\n description: isabella.nguyen@email.com\n value: +$299.00\n - id: \"3\"\n initials: WK\n name: William Kim\n description: will@email.com\n value: +$99.00\n - id: \"4\"\n initials: SD\n name: Sofia Davis\n description: sofia.davis@email.com\n value: +$39.00\n - type: Box\n props:\n gap: md\n children:\n - type: Box\n props:\n className: \"!flex-row items-start justify-between gap-4 mb-6\"\n children:\n - type: Box\n props:\n gap: xs\n children:\n - type: Heading\n props:\n level: 1\n text: Analytics\n - type: Paragraph\n props:\n text: Revenue and subscription performance.\n muted: true\n size: sm\n - type: Box\n props:\n className: \"!grid grid-cols-1 gap-4 sm:grid-cols-2 xl:grid-cols-4\"\n children:\n - type: StatCard\n props:\n label: Total Revenue\n value: $45,231.89\n description: +20.1% from last month\n icon: chart-no-axes-column\n - type: StatCard\n props:\n label: Subscriptions\n value: \"+2350\"\n description: +180.1% from last month\n icon: users\n - type: StatCard\n props:\n label: Sales\n value: +12,234\n description: +19% from last month\n icon: boxes\n - type: StatCard\n props:\n label: Active Now\n value: \"+573\"\n description: +201 since last hour\n icon: chart-no-axes-column\n - type: Card\n props:\n title: Revenue over time\n children:\n - type: BarChart\n props:\n prefix: $\n data:\n - label: Apr\n value: 18200\n - label: May\n value: 21400\n - label: Jun\n value: 28000\n - label: Jul\n value: 26200\n - label: Aug\n value: 31500\n - label: Sep\n value: 45231\n template: shadcn-admin-shell\n - id: tasks\n lifecycle:\n onMount:\n - action: Request\n params:\n connectionId: tasks-db\n request:\n id: load-tasks\n connectionId: tasks-db\n payload:\n operation: FindAll\n responsePath: rows\n loadingPath: loading\n errorPath: uiError\n onError:\n - action: SetState\n params:\n path: requestFailed\n value: true\n path: /tasks\n title: Tasks\n state:\n direction: \"ltr\"\n font: \"Inter\"\n selectionEvent: null\n theme: \"light\"\n currentPath: /tasks\n rows:\n - id: TASK-8782\n title: Document release rollback steps\n label: documentation\n status: backlog\n priority: medium\n - id: TASK-8783\n title: Fix keyboard focus in the task drawer\n label: bug\n status: todo\n priority: high\n - id: TASK-8784\n title: Add status filters to the task list\n label: feature\n status: in progress\n priority: low\n - id: TASK-8785\n title: Update deployment checklist\n label: documentation\n status: done\n priority: medium\n - id: TASK-8786\n title: Investigate duplicate task submissions\n label: bug\n status: canceled\n priority: high\n - id: TASK-8787\n title: Add saved table views\n label: feature\n status: backlog\n priority: low\n - id: TASK-8788\n title: Document task priority definitions\n label: documentation\n status: todo\n priority: medium\n - id: TASK-8789\n title: Update the onboarding documentation for team members.\n label: bug\n status: in progress\n priority: high\n - id: TASK-8790\n title: Review project permissions before the next release.\n label: feature\n status: done\n priority: low\n - id: TASK-8791\n title: Make the settings form usable with keyboard navigation.\n label: documentation\n status: canceled\n priority: medium\n - id: TASK-8792\n title: You can’t compress the program without quantifying the open-source SSD pixel!\n label: bug\n status: backlog\n priority: high\n - id: TASK-8793\n title: Try to calculate the EXE feed, maybe it will index the multi-byte pixel!\n label: feature\n status: todo\n priority: low\n - id: TASK-8794\n title: We need to bypass the neural TCP card!\n label: documentation\n status: in progress\n priority: medium\n - id: TASK-8795\n title: The SAS interface is down, bypass the open-source pixel so we can back up the PNG bandwidth!\n label: bug\n status: done\n priority: high\n - id: TASK-8796\n title: I’ll transmit the primary HTTP panel, that should feed the UTF-8 protocol!\n label: feature\n status: canceled\n priority: low\n - id: TASK-8797\n title: Use the digital TLS panel, then you can transmit the haptic system!\n label: documentation\n status: backlog\n priority: medium\n - id: TASK-8798\n title: The RAM monitor is down, parsing the virtual circuit will help.\n label: bug\n status: todo\n priority: high\n - id: TASK-8799\n title: Update the onboarding documentation for team members.\n label: feature\n status: in progress\n priority: low\n - id: TASK-8800\n title: Review project permissions before the next release.\n label: documentation\n status: done\n priority: medium\n - id: TASK-8801\n title: Make the settings form usable with keyboard navigation.\n label: bug\n status: canceled\n priority: high\n - id: TASK-8802\n title: You can’t compress the program without quantifying the open-source SSD pixel!\n label: feature\n status: backlog\n priority: low\n - id: TASK-8803\n title: Try to calculate the EXE feed, maybe it will index the multi-byte pixel!\n label: documentation\n status: todo\n priority: medium\n - id: TASK-8804\n title: We need to bypass the neural TCP card!\n label: bug\n status: in progress\n priority: high\n - id: TASK-8805\n title: The SAS interface is down, bypass the open-source pixel so we can back up the PNG bandwidth!\n label: feature\n status: done\n priority: low\n - id: TASK-8806\n title: I’ll transmit the primary HTTP panel, that should feed the UTF-8 protocol!\n label: documentation\n status: canceled\n priority: medium\n - id: TASK-8807\n title: Use the digital TLS panel, then you can transmit the haptic system!\n label: bug\n status: backlog\n priority: high\n - id: TASK-8808\n title: The RAM monitor is down, parsing the virtual circuit will help.\n label: feature\n status: todo\n priority: low\n - id: TASK-8809\n title: Update the onboarding documentation for team members.\n label: documentation\n status: in progress\n priority: medium\n - id: TASK-8810\n title: Review project permissions before the next release.\n label: bug\n status: done\n priority: high\n - id: TASK-8811\n title: Make the settings form usable with keyboard navigation.\n label: feature\n status: canceled\n priority: low\n - id: TASK-8812\n title: You can’t compress the program without quantifying the open-source SSD pixel!\n label: documentation\n status: backlog\n priority: medium\n - id: TASK-8813\n title: Try to calculate the EXE feed, maybe it will index the multi-byte pixel!\n label: bug\n status: todo\n priority: high\n - id: TASK-8814\n title: We need to bypass the neural TCP card!\n label: feature\n status: in progress\n priority: low\n - id: TASK-8815\n title: The SAS interface is down, bypass the open-source pixel so we can back up the PNG bandwidth!\n label: documentation\n status: done\n priority: medium\n - id: TASK-8816\n title: I’ll transmit the primary HTTP panel, that should feed the UTF-8 protocol!\n label: bug\n status: canceled\n priority: high\n - id: TASK-8817\n title: Use the digital TLS panel, then you can transmit the haptic system!\n label: feature\n status: backlog\n priority: low\n - id: TASK-8818\n title: The RAM monitor is down, parsing the virtual circuit will help.\n label: documentation\n status: todo\n priority: medium\n - id: TASK-8819\n title: Update the onboarding documentation for team members.\n label: bug\n status: in progress\n priority: high\n - id: TASK-8820\n title: Review project permissions before the next release.\n label: feature\n status: done\n priority: low\n - id: TASK-8821\n title: Make the settings form usable with keyboard navigation.\n label: documentation\n status: canceled\n priority: medium\n - id: TASK-8822\n title: You can’t compress the program without quantifying the open-source SSD pixel!\n label: bug\n status: backlog\n priority: high\n - id: TASK-8823\n title: Try to calculate the EXE feed, maybe it will index the multi-byte pixel!\n label: feature\n status: todo\n priority: low\n - id: TASK-8824\n title: We need to bypass the neural TCP card!\n label: documentation\n status: in progress\n priority: medium\n - id: TASK-8825\n title: The SAS interface is down, bypass the open-source pixel so we can back up the PNG bandwidth!\n label: bug\n status: done\n priority: high\n - id: TASK-8826\n title: I’ll transmit the primary HTTP panel, that should feed the UTF-8 protocol!\n label: feature\n status: canceled\n priority: low\n - id: TASK-8827\n title: Use the digital TLS panel, then you can transmit the haptic system!\n label: documentation\n status: backlog\n priority: medium\n - id: TASK-8828\n title: The RAM monitor is down, parsing the virtual circuit will help.\n label: bug\n status: todo\n priority: high\n - id: TASK-8829\n title: Update the onboarding documentation for team members.\n label: feature\n status: in progress\n priority: low\n - id: TASK-8830\n title: Review project permissions before the next release.\n label: documentation\n status: done\n priority: medium\n - id: TASK-8831\n title: Make the settings form usable with keyboard navigation.\n label: bug\n status: canceled\n priority: high\n - id: TASK-8832\n title: You can’t compress the program without quantifying the open-source SSD pixel!\n label: feature\n status: backlog\n priority: low\n - id: TASK-8833\n title: Try to calculate the EXE feed, maybe it will index the multi-byte pixel!\n label: documentation\n status: todo\n priority: medium\n - id: TASK-8834\n title: We need to bypass the neural TCP card!\n label: bug\n status: in progress\n priority: high\n - id: TASK-8835\n title: The SAS interface is down, bypass the open-source pixel so we can back up the PNG bandwidth!\n label: feature\n status: done\n priority: low\n - id: TASK-8836\n title: I’ll transmit the primary HTTP panel, that should feed the UTF-8 protocol!\n label: documentation\n status: canceled\n priority: medium\n - id: TASK-8837\n title: Use the digital TLS panel, then you can transmit the haptic system!\n label: bug\n status: backlog\n priority: high\n - id: TASK-8838\n title: The RAM monitor is down, parsing the virtual circuit will help.\n label: feature\n status: todo\n priority: low\n - id: TASK-8839\n title: Update the onboarding documentation for team members.\n label: documentation\n status: in progress\n priority: medium\n - id: TASK-8840\n title: Review project permissions before the next release.\n label: bug\n status: done\n priority: high\n - id: TASK-8841\n title: Make the settings form usable with keyboard navigation.\n label: feature\n status: canceled\n priority: low\n - id: TASK-8842\n title: You can’t compress the program without quantifying the open-source SSD pixel!\n label: documentation\n status: backlog\n priority: medium\n - id: TASK-8843\n title: Try to calculate the EXE feed, maybe it will index the multi-byte pixel!\n label: bug\n status: todo\n priority: high\n - id: TASK-8844\n title: We need to bypass the neural TCP card!\n label: feature\n status: in progress\n priority: low\n - id: TASK-8845\n title: The SAS interface is down, bypass the open-source pixel so we can back up the PNG bandwidth!\n label: documentation\n status: done\n priority: medium\n - id: TASK-8846\n title: I’ll transmit the primary HTTP panel, that should feed the UTF-8 protocol!\n label: bug\n status: canceled\n priority: high\n - id: TASK-8847\n title: Use the digital TLS panel, then you can transmit the haptic system!\n label: feature\n status: backlog\n priority: low\n - id: TASK-8848\n title: The RAM monitor is down, parsing the virtual circuit will help.\n label: documentation\n status: todo\n priority: medium\n - id: TASK-8849\n title: Update the onboarding documentation for team members.\n label: bug\n status: in progress\n priority: high\n - id: TASK-8850\n title: Review project permissions before the next release.\n label: feature\n status: done\n priority: low\n - id: TASK-8851\n title: Make the settings form usable with keyboard navigation.\n label: documentation\n status: canceled\n priority: medium\n - id: TASK-8852\n title: You can’t compress the program without quantifying the open-source SSD pixel!\n label: bug\n status: backlog\n priority: high\n - id: TASK-8853\n title: Try to calculate the EXE feed, maybe it will index the multi-byte pixel!\n label: feature\n status: todo\n priority: low\n - id: TASK-8854\n title: We need to bypass the neural TCP card!\n label: documentation\n status: in progress\n priority: medium\n - id: TASK-8855\n title: The SAS interface is down, bypass the open-source pixel so we can back up the PNG bandwidth!\n label: bug\n status: done\n priority: high\n - id: TASK-8856\n title: I’ll transmit the primary HTTP panel, that should feed the UTF-8 protocol!\n label: feature\n status: canceled\n priority: low\n - id: TASK-8857\n title: Use the digital TLS panel, then you can transmit the haptic system!\n label: documentation\n status: backlog\n priority: medium\n - id: TASK-8858\n title: The RAM monitor is down, parsing the virtual circuit will help.\n label: bug\n status: todo\n priority: high\n - id: TASK-8859\n title: Update the onboarding documentation for team members.\n label: feature\n status: in progress\n priority: low\n - id: TASK-8860\n title: Review project permissions before the next release.\n label: documentation\n status: done\n priority: medium\n - id: TASK-8861\n title: Make the settings form usable with keyboard navigation.\n label: bug\n status: canceled\n priority: high\n - id: TASK-8862\n title: You can’t compress the program without quantifying the open-source SSD pixel!\n label: feature\n status: backlog\n priority: low\n - id: TASK-8863\n title: Try to calculate the EXE feed, maybe it will index the multi-byte pixel!\n label: documentation\n status: todo\n priority: medium\n - id: TASK-8864\n title: We need to bypass the neural TCP card!\n label: bug\n status: in progress\n priority: high\n - id: TASK-8865\n title: The SAS interface is down, bypass the open-source pixel so we can back up the PNG bandwidth!\n label: feature\n status: done\n priority: low\n - id: TASK-8866\n title: I’ll transmit the primary HTTP panel, that should feed the UTF-8 protocol!\n label: documentation\n status: canceled\n priority: medium\n - id: TASK-8867\n title: Use the digital TLS panel, then you can transmit the haptic system!\n label: bug\n status: backlog\n priority: high\n - id: TASK-8868\n title: The RAM monitor is down, parsing the virtual circuit will help.\n label: feature\n status: todo\n priority: low\n - id: TASK-8869\n title: Update the onboarding documentation for team members.\n label: documentation\n status: in progress\n priority: medium\n - id: TASK-8870\n title: Review project permissions before the next release.\n label: bug\n status: done\n priority: high\n - id: TASK-8871\n title: Make the settings form usable with keyboard navigation.\n label: feature\n status: canceled\n priority: low\n - id: TASK-8872\n title: You can’t compress the program without quantifying the open-source SSD pixel!\n label: documentation\n status: backlog\n priority: medium\n - id: TASK-8873\n title: Try to calculate the EXE feed, maybe it will index the multi-byte pixel!\n label: bug\n status: todo\n priority: high\n - id: TASK-8874\n title: We need to bypass the neural TCP card!\n label: feature\n status: in progress\n priority: low\n - id: TASK-8875\n title: The SAS interface is down, bypass the open-source pixel so we can back up the PNG bandwidth!\n label: documentation\n status: done\n priority: medium\n - id: TASK-8876\n title: I’ll transmit the primary HTTP panel, that should feed the UTF-8 protocol!\n label: bug\n status: canceled\n priority: high\n - id: TASK-8877\n title: Use the digital TLS panel, then you can transmit the haptic system!\n label: feature\n status: backlog\n priority: low\n - id: TASK-8878\n title: The RAM monitor is down, parsing the virtual circuit will help.\n label: documentation\n status: todo\n priority: medium\n - id: TASK-8879\n title: Update the onboarding documentation for team members.\n label: bug\n status: in progress\n priority: high\n - id: TASK-8880\n title: Review project permissions before the next release.\n label: feature\n status: done\n priority: low\n - id: TASK-8881\n title: Make the settings form usable with keyboard navigation.\n label: documentation\n status: canceled\n priority: medium\n editorOpen: false\n deleteOpen: false\n draft: {}\n loading: false\n saving: false\n uiError: null\n tableView: \"\"\n serverMode: false\n selectedIds: []\n total: null\n hasNextPage: false\n reloadRequested: 0\n pageNotice: \"\"\n bulkOpen: false\n bulkRequest: null\n bulkSubmit: false\n bulkAction: \"\"\n bulkStatus: backlog\n bulkSummary: \"\"\n bulkError: null\n bulkConfirmDisabled: true\n bulkDisabled: true\n bulkUnavailable: Select records with known versions to enable batch actions.\n blocks:\n - type: PageLayout\n children:\n - type: Box\n props:\n className: \"!flex-row items-start justify-between gap-4 mb-6\"\n children:\n - type: Box\n props:\n gap: xs\n children:\n - type: Heading\n props:\n level: 1\n text: Tasks\n - type: Paragraph\n props:\n text: Sample tasks for triage and prioritization.\n muted: true\n size: sm\n - type: Button\n props:\n label: Create\n variant: default\n events:\n onClick:\n - action: SetState\n params:\n path: draft\n value:\n action: create\n - action: SetState\n params:\n path: uiError\n value: null\n - action: SetState\n params:\n path: editorOpen\n value: true\n - type: Paragraph\n visible:\n _state: serverMode\n props:\n text:\n _state: pageNotice\n muted: true\n size: sm\n - type: DataTable\n props:\n server:\n _state: serverMode\n total:\n _state: total\n hasNextPage:\n _state: hasNextPage\n selectedIds:\n _if:\n - _state: serverMode\n - _state: selectedIds\n - null\n rows:\n _state: rows\n loading:\n _state: loading\n error:\n _state: uiError.message\n columns:\n - key: id\n label: Task\n kind: muted\n - key: title\n label: Title\n kind: text\n badgeKey: label\n - key: status\n label: Status\n kind: badge\n - key: priority\n label: Priority\n kind: text\n filters:\n - key: status\n label: Status\n options:\n - value: backlog\n label: Backlog\n - value: todo\n label: Todo\n - value: in progress\n label: In Progress\n - value: done\n label: Done\n - value: canceled\n label: Canceled\n - key: priority\n label: Priority\n options:\n - value: low\n label: Low\n - value: medium\n label: Medium\n - value: high\n label: High\n searchKeys:\n - id\n - title\n searchPlaceholder: Filter tasks...\n actions:\n - id: edit\n label: Edit\n - id: delete\n label: Delete\n bulkActions:\n _if:\n - _state: serverMode\n - - id: delete\n label: Delete selected\n disabled:\n _state: bulkDisabled\n - id: status\n label: Change status\n disabled:\n _state: bulkDisabled\n - - id: delete\n label: Delete selected\n disabled: true\n view:\n _state: tableView\n minWidth: 950\n events:\n onRowAction:\n - action: SetState\n params:\n path: uiError\n value: null\n - action: SetState\n params:\n path: draft\n value:\n _event: values\n - action: SetState\n params:\n path: editorOpen\n value:\n _eq:\n - _state: draft.action\n - edit\n - action: SetState\n params:\n path: deleteOpen\n value:\n _eq:\n - _state: draft.action\n - delete\n onBulkAction:\n - action: SetState\n params:\n path: bulkRequest\n value:\n _event: values\n onSelectionChange:\n - action: SetState\n params:\n path: selectionEvent\n value:\n _event: values\n - action: SetState\n params:\n path: selectedIds\n value:\n _state: selectionEvent.ids\n onViewChange:\n - action: SetState\n params:\n path: tableView\n value:\n _event: value\n - type: Paragraph\n visible:\n _state: serverMode\n props:\n text:\n _state: bulkUnavailable\n muted: true\n size: sm\n - type: Button\n visible:\n _state: serverMode\n props:\n label: Reload first page\n variant: outline\n disabled:\n _or:\n - _state: loading\n - _state: saving\n events:\n onClick:\n - action: SetState\n params:\n path: reloadRequested\n value:\n _not:\n _state: reloadRequested\n - type: Modal\n props:\n open:\n _state: bulkOpen\n pending:\n _state: saving\n title:\n _if:\n - _eq:\n - _state: bulkAction\n - delete\n - Delete selected records?\n - Change selected status?\n description: Review the selected IDs, versions and change before confirming.\n children:\n - type: Field\n visible:\n _eq:\n - _state: bulkAction\n - status\n props:\n name: bulkStatus\n label: New status\n kind: select\n value:\n _bindState: bulkStatus\n disabled:\n _state: saving\n options:\n - value: backlog\n label: Backlog\n - value: todo\n label: Todo\n - value: in progress\n label: In Progress\n - value: done\n label: Done\n - value: canceled\n label: Canceled\n - type: Paragraph\n props:\n text:\n _state: bulkSummary\n className: \"whitespace-pre-wrap break-all max-h-48 overflow-auto font-mono text-xs\"\n - type: Paragraph\n visible:\n _state: bulkError\n props:\n text:\n _state: bulkError.message\n className: \"text-destructive\"\n - type: Box\n props:\n direction: row\n justify: end\n children:\n - type: Button\n props:\n label: Cancel\n variant: outline\n disabled:\n _state: saving\n events:\n onClick:\n - action: SetState\n params:\n path: bulkOpen\n value: false\n - type: Button\n props:\n label: Confirm batch\n disabled:\n _state: bulkConfirmDisabled\n events:\n onClick:\n - action: SetState\n params:\n path: bulkSubmit\n value:\n _not:\n _state: bulkSubmit\n events:\n onClose:\n - action: SetState\n params:\n path: bulkOpen\n value: false\n - type: Drawer\n props:\n open:\n _state: editorOpen\n pending:\n _state: saving\n title: Create or edit task\n description: Update the details below. Click save when you’re done.\n children:\n - type: Form\n props:\n label: Record details\n pending:\n _state: saving\n idempotent: true\n children:\n - type: Field\n props:\n name: title\n label: Title\n kind: text\n value:\n _bindState: draft.title\n required: true\n - type: Field\n props:\n name: label\n label: Label\n kind: select\n value:\n _bindState: draft.label\n required: true\n options:\n - value: documentation\n label: Documentation\n - value: bug\n label: Bug\n - value: feature\n label: Feature\n - type: Field\n props:\n name: status\n label: Status\n kind: select\n value:\n _bindState: draft.status\n required: true\n options:\n - value: backlog\n label: Backlog\n - value: todo\n label: Todo\n - value: in progress\n label: In Progress\n - value: done\n label: Done\n - value: canceled\n label: Canceled\n - type: Field\n props:\n name: priority\n label: Priority\n kind: radio\n value:\n _bindState: draft.priority\n required: true\n options:\n - value: low\n label: Low\n - value: medium\n label: Medium\n - value: high\n label: High\n - type: Paragraph\n props:\n text:\n _state: uiError.message\n muted: true\n size: sm\n visible:\n _state: uiError\n - type: Form.Submit\n props:\n label: Save changes\n disabled:\n _state: saving\n events:\n onSubmit:\n - action: Request\n params:\n connectionId: tasks-db\n request:\n id: mutate-tasks\n connectionId: tasks-db\n payload:\n operation:\n _if:\n - _eq:\n - _state: draft.action\n - create\n - InsertOne\n - UpdateOne\n filter:\n id:\n _state: draft.id\n data:\n _event: values\n idempotencyKey:\n _event: value\n expectedVersion:\n _state: draft.version\n loadingPath: saving\n errorPath: uiError\n onSuccess:\n - action: SetState\n params:\n path: editorOpen\n value: false\n - action: SetState\n params:\n path: deleteOpen\n value: false\n - action: Request\n params:\n connectionId: tasks-db\n request:\n id: load-tasks\n connectionId: tasks-db\n payload:\n operation: FindAll\n responsePath: rows\n loadingPath: loading\n errorPath: uiError\n onError:\n - action: SetState\n params:\n path: requestFailed\n value: true\n onError:\n - action: SetState\n params:\n path: requestFailed\n value: true\n events:\n onClose:\n - action: SetState\n params:\n path: editorOpen\n value: false\n - type: Modal\n props:\n open:\n _state: deleteOpen\n pending:\n _state: saving\n title: Delete this record?\n description: This action cannot be undone. The record will be permanently removed.\n children:\n - type: Paragraph\n visible:\n _state: uiError\n props:\n text:\n _state: uiError.message\n className: \"text-destructive\"\n - type: Box\n props:\n direction: row\n justify: end\n children:\n - type: Button\n props:\n label: Cancel\n variant: outline\n disabled:\n _state: saving\n events:\n onClick:\n - action: SetState\n params:\n path: deleteOpen\n value: false\n - type: Button\n props:\n label: Delete\n variant: destructive\n disabled:\n _state: saving\n events:\n onClick:\n - action: Request\n params:\n connectionId: tasks-db\n request:\n id: mutate-tasks\n connectionId: tasks-db\n payload:\n operation: DeleteOne\n filter:\n id:\n _state: draft.id\n expectedVersion:\n _state: draft.version\n loadingPath: saving\n errorPath: uiError\n onSuccess:\n - action: SetState\n params:\n path: editorOpen\n value: false\n - action: SetState\n params:\n path: deleteOpen\n value: false\n - action: Request\n params:\n connectionId: tasks-db\n request:\n id: load-tasks\n connectionId: tasks-db\n payload:\n operation: FindAll\n responsePath: rows\n loadingPath: loading\n errorPath: uiError\n onError:\n - action: SetState\n params:\n path: requestFailed\n value: true\n onError:\n - action: SetState\n params:\n path: requestFailed\n value: true\n events:\n onClose:\n - action: SetState\n params:\n path: deleteOpen\n value: false\n template: shadcn-admin-shell\n urlState:\n tableView:\n param: view\n default: \"\"\n - id: users\n lifecycle:\n onMount:\n - action: Request\n params:\n connectionId: users-db\n request:\n id: load-users\n connectionId: users-db\n payload:\n operation: FindAll\n responsePath: rows\n loadingPath: loading\n errorPath: uiError\n onError:\n - action: SetState\n params:\n path: requestFailed\n value: true\n path: /users\n title: Users\n state:\n direction: \"ltr\"\n font: \"Inter\"\n selectionEvent: null\n theme: \"light\"\n currentPath: /users\n rows:\n - id: user-1\n username: liam.anderson\n firstName: Liam\n lastName: Anderson\n email: liam.anderson@example.com\n phoneNumber: +1 (555) 010-0000\n status: active\n role: admin\n - id: user-2\n username: olivia.baker\n firstName: Olivia\n lastName: Baker\n email: olivia.baker@example.com\n phoneNumber: +1 (555) 010-0001\n status: inactive\n role: manager\n - id: user-3\n username: noah.carter\n firstName: Noah\n lastName: Carter\n email: noah.carter@example.com\n phoneNumber: +1 (555) 010-0002\n status: invited\n role: cashier\n - id: user-4\n username: emma.davis\n firstName: Emma\n lastName: Davis\n email: emma.davis@example.com\n phoneNumber: +1 (555) 010-0003\n status: suspended\n role: superadmin\n - id: user-5\n username: elijah.evans\n firstName: Elijah\n lastName: Evans\n email: elijah.evans@example.com\n phoneNumber: +1 (555) 010-0004\n status: active\n role: admin\n - id: user-6\n username: amelia.foster\n firstName: Amelia\n lastName: Foster\n email: amelia.foster@example.com\n phoneNumber: +1 (555) 010-0005\n status: inactive\n role: manager\n - id: user-7\n username: james.garcia\n firstName: James\n lastName: Garcia\n email: james.garcia@example.com\n phoneNumber: +1 (555) 010-0006\n status: invited\n role: cashier\n - id: user-8\n username: charlotte.harris\n firstName: Charlotte\n lastName: Harris\n email: charlotte.harris@example.com\n phoneNumber: +1 (555) 010-0007\n status: suspended\n role: superadmin\n - id: user-9\n username: william.irwin\n firstName: William\n lastName: Irwin\n email: william.irwin@example.com\n phoneNumber: +1 (555) 010-0008\n status: active\n role: admin\n - id: user-10\n username: sophia.jones\n firstName: Sophia\n lastName: Jones\n email: sophia.jones@example.com\n phoneNumber: +1 (555) 010-0009\n status: inactive\n role: manager\n - id: user-11\n username: benjamin.kim\n firstName: Benjamin\n lastName: Kim\n email: benjamin.kim@example.com\n phoneNumber: +1 (555) 010-0010\n status: invited\n role: cashier\n - id: user-12\n username: isabella.lewis\n firstName: Isabella\n lastName: Lewis\n email: isabella.lewis@example.com\n phoneNumber: +1 (555) 010-0011\n status: suspended\n role: superadmin\n - id: user-13\n username: liam.anderson\n firstName: Liam\n lastName: Anderson\n email: liam.anderson@example.com\n phoneNumber: +1 (555) 010-0012\n status: active\n role: admin\n - id: user-14\n username: olivia.baker\n firstName: Olivia\n lastName: Baker\n email: olivia.baker@example.com\n phoneNumber: +1 (555) 010-0013\n status: inactive\n role: manager\n - id: user-15\n username: noah.carter\n firstName: Noah\n lastName: Carter\n email: noah.carter@example.com\n phoneNumber: +1 (555) 010-0014\n status: invited\n role: cashier\n - id: user-16\n username: emma.davis\n firstName: Emma\n lastName: Davis\n email: emma.davis@example.com\n phoneNumber: +1 (555) 010-0015\n status: suspended\n role: superadmin\n - id: user-17\n username: elijah.evans\n firstName: Elijah\n lastName: Evans\n email: elijah.evans@example.com\n phoneNumber: +1 (555) 010-0016\n status: active\n role: admin\n - id: user-18\n username: amelia.foster\n firstName: Amelia\n lastName: Foster\n email: amelia.foster@example.com\n phoneNumber: +1 (555) 010-0017\n status: inactive\n role: manager\n - id: user-19\n username: james.garcia\n firstName: James\n lastName: Garcia\n email: james.garcia@example.com\n phoneNumber: +1 (555) 010-0018\n status: invited\n role: cashier\n - id: user-20\n username: charlotte.harris\n firstName: Charlotte\n lastName: Harris\n email: charlotte.harris@example.com\n phoneNumber: +1 (555) 010-0019\n status: suspended\n role: superadmin\n - id: user-21\n username: william.irwin\n firstName: William\n lastName: Irwin\n email: william.irwin@example.com\n phoneNumber: +1 (555) 010-0020\n status: active\n role: admin\n - id: user-22\n username: sophia.jones\n firstName: Sophia\n lastName: Jones\n email: sophia.jones@example.com\n phoneNumber: +1 (555) 010-0021\n status: inactive\n role: manager\n - id: user-23\n username: benjamin.kim\n firstName: Benjamin\n lastName: Kim\n email: benjamin.kim@example.com\n phoneNumber: +1 (555) 010-0022\n status: invited\n role: cashier\n - id: user-24\n username: isabella.lewis\n firstName: Isabella\n lastName: Lewis\n email: isabella.lewis@example.com\n phoneNumber: +1 (555) 010-0023\n status: suspended\n role: superadmin\n - id: user-25\n username: liam.anderson\n firstName: Liam\n lastName: Anderson\n email: liam.anderson@example.com\n phoneNumber: +1 (555) 010-0024\n status: active\n role: admin\n - id: user-26\n username: olivia.baker\n firstName: Olivia\n lastName: Baker\n email: olivia.baker@example.com\n phoneNumber: +1 (555) 010-0025\n status: inactive\n role: manager\n - id: user-27\n username: noah.carter\n firstName: Noah\n lastName: Carter\n email: noah.carter@example.com\n phoneNumber: +1 (555) 010-0026\n status: invited\n role: cashier\n - id: user-28\n username: emma.davis\n firstName: Emma\n lastName: Davis\n email: emma.davis@example.com\n phoneNumber: +1 (555) 010-0027\n status: suspended\n role: superadmin\n - id: user-29\n username: elijah.evans\n firstName: Elijah\n lastName: Evans\n email: elijah.evans@example.com\n phoneNumber: +1 (555) 010-0028\n status: active\n role: admin\n - id: user-30\n username: amelia.foster\n firstName: Amelia\n lastName: Foster\n email: amelia.foster@example.com\n phoneNumber: +1 (555) 010-0029\n status: inactive\n role: manager\n - id: user-31\n username: james.garcia\n firstName: James\n lastName: Garcia\n email: james.garcia@example.com\n phoneNumber: +1 (555) 010-0030\n status: invited\n role: cashier\n - id: user-32\n username: charlotte.harris\n firstName: Charlotte\n lastName: Harris\n email: charlotte.harris@example.com\n phoneNumber: +1 (555) 010-0031\n status: suspended\n role: superadmin\n - id: user-33\n username: william.irwin\n firstName: William\n lastName: Irwin\n email: william.irwin@example.com\n phoneNumber: +1 (555) 010-0032\n status: active\n role: admin\n - id: user-34\n username: sophia.jones\n firstName: Sophia\n lastName: Jones\n email: sophia.jones@example.com\n phoneNumber: +1 (555) 010-0033\n status: inactive\n role: manager\n - id: user-35\n username: benjamin.kim\n firstName: Benjamin\n lastName: Kim\n email: benjamin.kim@example.com\n phoneNumber: +1 (555) 010-0034\n status: invited\n role: cashier\n - id: user-36\n username: isabella.lewis\n firstName: Isabella\n lastName: Lewis\n email: isabella.lewis@example.com\n phoneNumber: +1 (555) 010-0035\n status: suspended\n role: superadmin\n editorOpen: false\n deleteOpen: false\n draft: {}\n loading: false\n saving: false\n uiError: null\n tableView: \"\"\n serverMode: false\n selectedIds: []\n total: null\n hasNextPage: false\n reloadRequested: 0\n pageNotice: \"\"\n bulkOpen: false\n bulkRequest: null\n bulkSubmit: false\n bulkAction: \"\"\n bulkStatus: active\n bulkSummary: \"\"\n bulkError: null\n bulkConfirmDisabled: true\n bulkDisabled: true\n bulkUnavailable: Select records with known versions to enable batch actions.\n blocks:\n - type: PageLayout\n children:\n - type: Box\n props:\n className: \"!flex-row items-start justify-between gap-4 mb-6\"\n children:\n - type: Box\n props:\n gap: xs\n children:\n - type: Heading\n props:\n level: 1\n text: Users\n - type: Paragraph\n props:\n text: Manage your users and their roles here.\n muted: true\n size: sm\n - type: Button\n props:\n label: Add User\n variant: default\n events:\n onClick:\n - action: SetState\n params:\n path: draft\n value:\n action: create\n - action: SetState\n params:\n path: uiError\n value: null\n - action: SetState\n params:\n path: editorOpen\n value: true\n - type: Paragraph\n visible:\n _state: serverMode\n props:\n text:\n _state: pageNotice\n muted: true\n size: sm\n - type: DataTable\n props:\n server:\n _state: serverMode\n total:\n _state: total\n hasNextPage:\n _state: hasNextPage\n selectedIds:\n _if:\n - _state: serverMode\n - _state: selectedIds\n - null\n rows:\n _state: rows\n loading:\n _state: loading\n error:\n _state: uiError.message\n columns:\n - key: username\n label: Username\n kind: muted\n - key: firstName\n displayKeys: [firstName, lastName]\n label: Name\n kind: text\n - key: email\n label: Email\n kind: muted\n - key: phoneNumber\n label: Phone Number\n kind: muted\n - key: status\n label: Status\n kind: badge\n - key: role\n label: Role\n kind: text\n filters:\n - key: status\n label: Status\n options:\n - value: active\n label: Active\n - value: inactive\n label: Inactive\n - value: invited\n label: Invited\n - value: suspended\n label: Suspended\n - key: role\n label: Role\n options:\n - value: admin\n label: Admin\n - value: manager\n label: Manager\n - value: cashier\n label: Cashier\n - value: superadmin\n label: Superadmin\n searchKeys:\n - username\n - firstName\n - lastName\n - email\n searchPlaceholder: Filter users...\n actions:\n - id: edit\n label: Edit\n - id: delete\n label: Delete\n bulkActions:\n _if:\n - _state: serverMode\n - - id: delete\n label: Delete selected\n disabled:\n _state: bulkDisabled\n - id: status\n label: Change status\n disabled:\n _state: bulkDisabled\n - - id: delete\n label: Delete selected\n disabled: true\n view:\n _state: tableView\n minWidth: 950\n events:\n onRowAction:\n - action: SetState\n params:\n path: uiError\n value: null\n - action: SetState\n params:\n path: draft\n value:\n _event: values\n - action: SetState\n params:\n path: editorOpen\n value:\n _eq:\n - _state: draft.action\n - edit\n - action: SetState\n params:\n path: deleteOpen\n value:\n _eq:\n - _state: draft.action\n - delete\n onBulkAction:\n - action: SetState\n params:\n path: bulkRequest\n value:\n _event: values\n onSelectionChange:\n - action: SetState\n params:\n path: selectionEvent\n value:\n _event: values\n - action: SetState\n params:\n path: selectedIds\n value:\n _state: selectionEvent.ids\n onViewChange:\n - action: SetState\n params:\n path: tableView\n value:\n _event: value\n - type: Paragraph\n visible:\n _state: serverMode\n props:\n text:\n _state: bulkUnavailable\n muted: true\n size: sm\n - type: Button\n visible:\n _state: serverMode\n props:\n label: Reload first page\n variant: outline\n disabled:\n _or:\n - _state: loading\n - _state: saving\n events:\n onClick:\n - action: SetState\n params:\n path: reloadRequested\n value:\n _not:\n _state: reloadRequested\n - type: Modal\n props:\n open:\n _state: bulkOpen\n pending:\n _state: saving\n title:\n _if:\n - _eq:\n - _state: bulkAction\n - delete\n - Delete selected records?\n - Change selected status?\n description: Review the selected IDs, versions and change before confirming.\n children:\n - type: Field\n visible:\n _eq:\n - _state: bulkAction\n - status\n props:\n name: bulkStatus\n label: New status\n kind: select\n value:\n _bindState: bulkStatus\n disabled:\n _state: saving\n options:\n - value: active\n label: Active\n - value: inactive\n label: Inactive\n - value: invited\n label: Invited\n - value: suspended\n label: Suspended\n - type: Paragraph\n props:\n text:\n _state: bulkSummary\n className: \"whitespace-pre-wrap break-all max-h-48 overflow-auto font-mono text-xs\"\n - type: Paragraph\n visible:\n _state: bulkError\n props:\n text:\n _state: bulkError.message\n className: \"text-destructive\"\n - type: Box\n props:\n direction: row\n justify: end\n children:\n - type: Button\n props:\n label: Cancel\n variant: outline\n disabled:\n _state: saving\n events:\n onClick:\n - action: SetState\n params:\n path: bulkOpen\n value: false\n - type: Button\n props:\n label: Confirm batch\n disabled:\n _state: bulkConfirmDisabled\n events:\n onClick:\n - action: SetState\n params:\n path: bulkSubmit\n value:\n _not:\n _state: bulkSubmit\n events:\n onClose:\n - action: SetState\n params:\n path: bulkOpen\n value: false\n - type: Drawer\n props:\n open:\n _state: editorOpen\n pending:\n _state: saving\n title: Create or edit user\n description: Update the details below. Click save when you’re done.\n children:\n - type: Form\n props:\n label: Record details\n pending:\n _state: saving\n idempotent: true\n children:\n - type: Field\n props:\n name: username\n label: Username\n kind: text\n value:\n _bindState: draft.username\n required: true\n - type: Field\n props:\n name: firstName\n label: First name\n kind: text\n value:\n _bindState: draft.firstName\n required: true\n - type: Field\n props:\n name: lastName\n label: Last name\n kind: text\n value:\n _bindState: draft.lastName\n required: true\n - type: Field\n props:\n name: email\n label: Email\n kind: email\n value:\n _bindState: draft.email\n required: true\n - type: Field\n props:\n name: phoneNumber\n label: Phone Number\n kind: text\n value:\n _bindState: draft.phoneNumber\n required: true\n - type: Field\n props:\n name: status\n label: Status\n kind: select\n value:\n _bindState: draft.status\n required: true\n options:\n - value: active\n label: Active\n - value: inactive\n label: Inactive\n - value: invited\n label: Invited\n - value: suspended\n label: Suspended\n - type: Field\n props:\n name: role\n label: Role\n kind: select\n value:\n _bindState: draft.role\n required: true\n options:\n - value: admin\n label: Admin\n - value: manager\n label: Manager\n - value: cashier\n label: Cashier\n - value: superadmin\n label: Superadmin\n - type: Paragraph\n props:\n text:\n _state: uiError.message\n muted: true\n size: sm\n visible:\n _state: uiError\n - type: Form.Submit\n props:\n label: Save changes\n disabled:\n _state: saving\n events:\n onSubmit:\n - action: Request\n params:\n connectionId: users-db\n request:\n id: mutate-users\n connectionId: users-db\n payload:\n operation:\n _if:\n - _eq:\n - _state: draft.action\n - create\n - InsertOne\n - UpdateOne\n filter:\n id:\n _state: draft.id\n data:\n _event: values\n idempotencyKey:\n _event: value\n expectedVersion:\n _state: draft.version\n loadingPath: saving\n errorPath: uiError\n onSuccess:\n - action: SetState\n params:\n path: editorOpen\n value: false\n - action: SetState\n params:\n path: deleteOpen\n value: false\n - action: Request\n params:\n connectionId: users-db\n request:\n id: load-users\n connectionId: users-db\n payload:\n operation: FindAll\n responsePath: rows\n loadingPath: loading\n errorPath: uiError\n onError:\n - action: SetState\n params:\n path: requestFailed\n value: true\n onError:\n - action: SetState\n params:\n path: requestFailed\n value: true\n events:\n onClose:\n - action: SetState\n params:\n path: editorOpen\n value: false\n - type: Modal\n props:\n open:\n _state: deleteOpen\n pending:\n _state: saving\n title: Delete this record?\n description: This action cannot be undone. The record will be permanently removed.\n children:\n - type: Paragraph\n visible:\n _state: uiError\n props:\n text:\n _state: uiError.message\n className: \"text-destructive\"\n - type: Box\n props:\n direction: row\n justify: end\n children:\n - type: Button\n props:\n label: Cancel\n variant: outline\n disabled:\n _state: saving\n events:\n onClick:\n - action: SetState\n params:\n path: deleteOpen\n value: false\n - type: Button\n props:\n label: Delete\n variant: destructive\n disabled:\n _state: saving\n events:\n onClick:\n - action: Request\n params:\n connectionId: users-db\n request:\n id: mutate-users\n connectionId: users-db\n payload:\n operation: DeleteOne\n filter:\n id:\n _state: draft.id\n expectedVersion:\n _state: draft.version\n loadingPath: saving\n errorPath: uiError\n onSuccess:\n - action: SetState\n params:\n path: editorOpen\n value: false\n - action: SetState\n params:\n path: deleteOpen\n value: false\n - action: Request\n params:\n connectionId: users-db\n request:\n id: load-users\n connectionId: users-db\n payload:\n operation: FindAll\n responsePath: rows\n loadingPath: loading\n errorPath: uiError\n onError:\n - action: SetState\n params:\n path: requestFailed\n value: true\n onError:\n - action: SetState\n params:\n path: requestFailed\n value: true\n events:\n onClose:\n - action: SetState\n params:\n path: deleteOpen\n value: false\n template: shadcn-admin-shell\n urlState:\n tableView:\n param: view\n default: \"\"\n - id: apps\n path: /apps\n title: Apps\n state:\n direction: \"ltr\"\n font: \"Inter\"\n submitted: false\n theme: \"light\"\n currentPath: /apps\n integrationSettings: []\n editorOpen: false\n draft: {}\n saving: false\n uiError: null\n blocks:\n - type: PageLayout\n children:\n - type: Box\n props:\n className: \"!flex-row items-start justify-between gap-4 mb-6\"\n children:\n - type: Box\n props:\n gap: xs\n children:\n - type: Heading\n props:\n level: 1\n text: App Integrations\n - type: Paragraph\n props:\n text: Here’s a list of your apps for the integration!\n muted: true\n size: sm\n - type: IntegrationGrid\n props:\n items:\n - id: telegram\n brand: telegram\n name: Telegram\n description: Connect with Telegram for real-time communication.\n icon: boxes\n available: false\n connected: false\n - id: notion\n brand: notion\n name: Notion\n description: Sync Notion pages for collaboration.\n icon: boxes\n available: false\n connected: false\n - id: figma\n brand: figma\n name: Figma\n description: View and collaborate on Figma designs in one place.\n icon: boxes\n available: false\n connected: false\n - id: trello\n brand: trello\n name: Trello\n description: Sync Trello cards for project management.\n icon: boxes\n available: false\n connected: false\n - id: slack\n brand: slack\n name: Slack\n description: Integrate Slack for team communication.\n icon: boxes\n available: false\n connected: false\n - id: zoom\n brand: zoom\n name: Zoom\n description: Host Zoom meetings from your dashboard.\n icon: boxes\n available: false\n connected: false\n - id: stripe\n brand: stripe\n name: Stripe\n description: Manage Stripe transactions and payments.\n icon: boxes\n available: false\n connected: false\n - id: gmail\n brand: gmail\n name: Gmail\n description: Access and manage Gmail messages.\n icon: boxes\n available: false\n connected: false\n - id: medium\n brand: medium\n name: Medium\n description: Explore and share Medium stories.\n icon: boxes\n available: false\n connected: false\n - id: skype\n brand: skype\n name: Skype\n description: Connect with Skype contacts.\n icon: boxes\n available: false\n connected: false\n - id: docker\n brand: docker\n name: Docker\n description: Manage Docker containers.\n icon: boxes\n available: false\n connected: false\n - id: github\n brand: github\n name: GitHub\n description: Connect your repositories and issues.\n icon: boxes\n available: false\n connected: false\n - id: gitlab\n brand: gitlab\n name: GitLab\n description: Coordinate projects with GitLab.\n icon: boxes\n available: false\n connected: false\n - id: discord\n brand: discord\n name: Discord\n description: Connect with your Discord community.\n icon: boxes\n available: false\n connected: false\n - id: whatsapp\n brand: whatsapp\n name: WhatsApp\n description: Keep in touch with your contacts.\n icon: boxes\n available: false\n connected: false\n configurable: true\n configurations:\n _state: integrationSettings\n pending:\n _state: saving\n error:\n _state: uiError.message\n events:\n onConfigure:\n - action: SetState\n params:\n path: draft\n value:\n _event: values\n - action: SetState\n params:\n path: uiError\n value: null\n - action: SetState\n params:\n path: editorOpen\n value: true\n - type: Drawer\n props:\n title: Integration preferences\n description: Save workspace configuration. External provider authorization remains unavailable.\n open:\n _state: editorOpen\n pending:\n _state: saving\n events:\n onClose:\n - action: SetState\n params:\n path: editorOpen\n value: false\n children:\n - type: Form\n props:\n label: Integration preferences\n pending:\n _state: saving\n idempotent: true\n children:\n - type: Field\n props:\n name: enabled\n label: Enable in workspace\n kind: switch\n value:\n _bindState: draft.enabled\n - type: Field\n props:\n name: label\n label: Display label\n kind: text\n value:\n _bindState: draft.label\n - type: Field\n props:\n name: channel\n label: Channel\n kind: text\n value:\n _bindState: draft.channel\n - type: Paragraph\n props:\n text:\n _state: uiError.message\n visible:\n _state: uiError\n - type: Form.Submit\n props:\n label: Save preferences\n disabled:\n _state: saving\n events:\n onSubmit:\n - action: SetState\n params:\n path: submitted\n value:\n _event: values\n - action: Request\n params:\n connectionId: integrations-db\n request:\n id: save-integration\n connectionId: integrations-db\n payload:\n operation:\n _if:\n - _state: draft.id\n - UpdateOne\n - InsertOne\n filter:\n id:\n _state: draft.id\n expectedVersion:\n _state: draft.version\n idempotencyKey:\n _event: value\n data:\n provider:\n _state: draft.provider\n enabled:\n _state: submitted.enabled\n config:\n label:\n _state: submitted.label\n channel:\n _state: submitted.channel\n loadingPath: saving\n errorPath: uiError\n onSuccess:\n - &a2\n action: Request\n params:\n connectionId: integrations-db\n request:\n id: load-integrations\n connectionId: integrations-db\n payload:\n operation: FindAll\n responsePath: integrationSettings\n loadingPath: loading\n errorPath: uiError\n onError: &a1\n - action: SetState\n params:\n path: requestFailed\n value: true\n - action: SetState\n params:\n path: editorOpen\n value: false\n onError: *a1\n template: shadcn-admin-shell\n lifecycle:\n onMount:\n - *a2\n - id: chats\n path: /chats\n title: Chats\n state:\n currentUserId: \"user-demo\"\n direction: \"ltr\"\n font: \"Inter\"\n messageSubmission: null\n theme: \"light\"\n currentPath: /chats\n conversations:\n - id: conversation-0\n name: Alex Johnson\n initials: AJ\n preview: Hey, how’s it going?\n - id: conversation-1\n name: Sarah Wilson\n initials: SW\n preview: Did you see the new design?\n - id: conversation-2\n name: Michael Brown\n initials: MB\n preview: Thanks for your help!\n - id: conversation-3\n name: Emily Davis\n initials: ED\n preview: Let’s catch up tomorrow.\n - id: conversation-4\n name: David Miller\n initials: DM\n preview: The update looks great.\n - id: conversation-5\n name: Jessica Garcia\n initials: JG\n preview: Can you review my pull request?\n messages:\n - id: m1\n conversationId: conversation-0\n text: Hey, how’s it going?\n time: 10:30 AM\n own: false\n - id: m2\n conversationId: conversation-0\n text: Pretty good! Working on the dashboard.\n time: 10:31 AM\n own: true\n draft: \"\"\n selectedId: \"\"\n sending: false\n uiError: null\n blocks:\n - type: PageLayout\n children:\n - type: ChatPanel\n props:\n conversations:\n _state: conversations\n messages:\n _state: messages\n selectedId:\n _state: selectedId\n draft:\n _state: draft\n pending:\n _state: sending\n error:\n _state: uiError.message\n canSend: true\n currentUserId:\n _state: currentUserId\n events:\n onSelect:\n - action: SetState\n params:\n path: selectedId\n value:\n _event: value\n onDraftChange:\n - action: SetState\n params:\n path: draft\n value:\n _event: value\n onSend:\n - action: SetState\n params:\n path: messageSubmission\n value:\n _event: values\n - action: Request\n params:\n connectionId: messages-db\n request:\n id: send-message\n connectionId: messages-db\n payload:\n operation: InsertOne\n data:\n conversationId:\n _state: messageSubmission.conversationId\n text:\n _state: messageSubmission.text\n idempotencyKey:\n _state: messageSubmission.requestId\n loadingPath: sending\n errorPath: uiError\n onSuccess:\n - action: Request\n params:\n connectionId: messages-db\n request:\n id: load-messages\n connectionId: messages-db\n payload:\n operation: FindAll\n responsePath: messages\n errorPath: uiError\n onError: &a3\n - action: SetState\n params:\n path: requestFailed\n value: true\n - action: SetState\n params:\n path: draft\n value: \"\"\n onError: *a3\n - type: Paragraph\n props:\n text: Workspace messages are stored here. External delivery is not configured.\n muted: true\n size: sm\n template: shadcn-admin-shell\n lifecycle:\n onMount:\n - action: Request\n params:\n connectionId: conversations-db\n request:\n id: load-conversations\n connectionId: conversations-db\n payload:\n operation: FindAll\n responsePath: conversations\n errorPath: uiError\n onError: *a3\n - action: Request\n params:\n connectionId: messages-db\n request:\n id: load-messages\n connectionId: messages-db\n payload:\n operation: FindAll\n responsePath: messages\n errorPath: uiError\n onError: *a3\n - id: settings-profile\n path: /settings/profile\n title: Settings · Profile\n state:\n direction: \"ltr\"\n font: \"Inter\"\n loading: false\n theme: \"light\"\n currentPath: /settings/profile\n saving: false\n uiError: null\n saved: false\n form:\n username: shadcn\n email: m@example.com\n bio: I own a computer.\n urls:\n - https://shadcn.com\n preferences: []\n blocks:\n - type: PageLayout\n children:\n - type: Box\n props:\n className: \"!flex-row items-start justify-between gap-4 mb-6\"\n children:\n - type: Box\n props:\n gap: xs\n children:\n - type: Heading\n props:\n level: 1\n text: Settings\n - type: Paragraph\n props:\n text: Manage your account settings and set e-mail preferences.\n muted: true\n size: sm\n - type: Divider\n - type: Box\n props:\n className: \"!flex-col gap-10 lg:!flex-row\"\n children:\n - type: Box\n props:\n className: \"w-full shrink-0 lg:!flex-col lg:w-48 [&>a]:shrink-0 [&>a]:px-3 [&>a]:py-2 [&>a]:rounded-md lg:[&>a]:px-0 lg:[&>a]:py-0\"\n direction: row\n wrap: true\n gap: md\n children:\n - type: Link\n props:\n label: Profile\n href: /settings/profile\n variant: default\n className: \"bg-muted font-medium lg:bg-transparent\"\n - type: Link\n props:\n label: Account\n href: /settings/account\n variant: muted\n - type: Link\n props:\n label: Appearance\n href: /settings/appearance\n variant: muted\n - type: Link\n props:\n label: Notifications\n href: /settings/notifications\n variant: muted\n - type: Link\n props:\n label: Display\n href: /settings/display\n variant: muted\n - type: Box\n props:\n className: max-w-2xl flex-1\n gap: lg\n children:\n - type: Box\n props:\n className: \"!flex-row items-start justify-between gap-4 mb-6\"\n children:\n - type: Box\n props:\n gap: xs\n children:\n - type: Heading\n props:\n level: 2\n text: Profile\n - type: Paragraph\n props:\n text: This is how others will see you on the site.\n muted: true\n size: sm\n - type: Divider\n - type: Form\n props:\n label: Profile settings\n pending:\n _or:\n - _state: saving\n - _state: loading\n idempotent: true\n children:\n - type: Field\n props:\n name: username\n label: Username\n description: This is your public display name.\n required: true\n value:\n _bindState: form.username\n - type: Field\n props:\n name: email\n label: Email\n kind: email\n required: true\n value:\n _bindState: form.email\n - type: Field\n props:\n name: bio\n label: Bio\n kind: textarea\n description: Describe your role and what you work on.\n value:\n _bindState: form.bio\n - type: Field\n props:\n name: urls\n label: URLs\n kind: urls\n description: Add links to your website, blog, or social media profiles.\n value:\n _bindState: form.urls\n events:\n onChange:\n - action: SetState\n params:\n path: saved\n value: false\n - action: SetState\n params:\n path: uiError\n value: null\n - type: Paragraph\n props:\n text:\n _state: uiError.message\n muted: true\n visible:\n _state: uiError\n - type: Form.Submit\n props:\n label: Update profile\n disabled:\n _state: saving\n events:\n onChange:\n - action: SetState\n params:\n path: saved\n value: false\n - action: SetState\n params:\n path: uiError\n value: null\n onSubmit:\n - action: SetState\n params:\n path: saved\n value: false\n - action: SetState\n params:\n path: uiError\n value: null\n - action: Request\n params:\n connectionId: preferences-db\n request:\n id: save-preferences\n connectionId: preferences-db\n payload:\n operation:\n _if:\n - _state: preferences.0.id\n - UpdateOne\n - InsertOne\n filter:\n id:\n _state: preferences.0.id\n data:\n section: profile\n values:\n _event: values\n idempotencyKey:\n _event: value\n expectedVersion:\n _state: preferences.0.version\n loadingPath: saving\n errorPath: uiError\n onSuccess:\n - &a4\n action: Request\n params:\n connectionId: preferences-db\n request:\n id: load-preferences\n connectionId: preferences-db\n payload:\n operation: Find\n filter:\n section: profile\n responsePath: preferences\n loadingPath: loading\n errorPath: uiError\n onSuccess:\n - action: SetState\n params:\n path: form\n value:\n _if:\n - _state: preferences.0.id\n - _state: preferences.0.values\n - _state: form\n onError:\n - action: SetState\n params:\n path: requestFailed\n value: true\n - action: SetState\n params:\n path: saved\n value:\n _not:\n _state: uiError\n onError:\n - action: SetState\n params:\n path: requestFailed\n value: true\n - type: Paragraph\n props:\n text: Settings saved.\n muted: true\n visible:\n _state: saved\n template: shadcn-admin-shell\n lifecycle:\n onMount:\n - *a4\n - id: settings-account\n path: /settings/account\n title: Settings · Account\n state:\n direction: \"ltr\"\n font: \"Inter\"\n loading: false\n theme: \"light\"\n currentPath: /settings/account\n saving: false\n uiError: null\n saved: false\n form:\n name: shadcn\n birthday: \"\"\n language: English\n preferences: []\n blocks:\n - type: PageLayout\n children:\n - type: Box\n props:\n className: \"!flex-row items-start justify-between gap-4 mb-6\"\n children:\n - type: Box\n props:\n gap: xs\n children:\n - type: Heading\n props:\n level: 1\n text: Settings\n - type: Paragraph\n props:\n text: Manage your account settings and set e-mail preferences.\n muted: true\n size: sm\n - type: Divider\n - type: Box\n props:\n className: \"!flex-col gap-10 lg:!flex-row\"\n children:\n - type: Box\n props:\n className: \"w-full shrink-0 !flex-row flex-wrap gap-1 lg:!flex-col lg:w-48 [&>a]:shrink-0 [&>a]:px-3 [&>a]:py-2 [&>a]:rounded-md lg:[&>a]:px-0 lg:[&>a]:py-0\"\n children:\n - type: Link\n props:\n label: Profile\n href: /settings/profile\n variant: muted\n - type: Link\n props:\n label: Account\n href: /settings/account\n variant: default\n className: \"bg-muted font-medium lg:bg-transparent\"\n - type: Link\n props:\n label: Appearance\n href: /settings/appearance\n variant: muted\n - type: Link\n props:\n label: Notifications\n href: /settings/notifications\n variant: muted\n - type: Link\n props:\n label: Display\n href: /settings/display\n variant: muted\n - type: Box\n props:\n className: max-w-2xl flex-1\n gap: lg\n children:\n - type: Box\n props:\n className: \"!flex-row items-start justify-between gap-4 mb-6\"\n children:\n - type: Box\n props:\n gap: xs\n children:\n - type: Heading\n props:\n level: 2\n text: Account\n - type: Paragraph\n props:\n text: Update your account settings. Set your preferred language and timezone.\n muted: true\n size: sm\n - type: Divider\n - type: Form\n props:\n label: Account settings\n pending:\n _or:\n - _state: saving\n - _state: loading\n idempotent: true\n children:\n - type: Field\n props:\n name: name\n label: Name\n description: This is the name that will be displayed on your profile.\n required: true\n value:\n _bindState: form.name\n - type: Field\n props:\n name: birthday\n label: Date of birth\n kind: date\n description: Your date of birth is used to calculate your age.\n value:\n _bindState: form.birthday\n - type: Field\n props:\n name: language\n label: Language\n kind: combobox\n options:\n - value: English\n label: English\n - value: Chinese\n label: Chinese\n - value: French\n label: French\n - value: German\n label: German\n - value: Japanese\n label: Japanese\n value:\n _bindState: form.language\n - type: Paragraph\n props:\n text:\n _state: uiError.message\n muted: true\n visible:\n _state: uiError\n - type: Form.Submit\n props:\n label: Update account\n disabled:\n _state: saving\n events:\n onChange:\n - action: SetState\n params:\n path: saved\n value: false\n - action: SetState\n params:\n path: uiError\n value: null\n onSubmit:\n - action: SetState\n params:\n path: saved\n value: false\n - action: SetState\n params:\n path: uiError\n value: null\n - action: Request\n params:\n connectionId: preferences-db\n request:\n id: save-preferences\n connectionId: preferences-db\n payload:\n operation:\n _if:\n - _state: preferences.0.id\n - UpdateOne\n - InsertOne\n filter:\n id:\n _state: preferences.0.id\n data:\n section: account\n values:\n _event: values\n idempotencyKey:\n _event: value\n expectedVersion:\n _state: preferences.0.version\n loadingPath: saving\n errorPath: uiError\n onSuccess:\n - &a5\n action: Request\n params:\n connectionId: preferences-db\n request:\n id: load-preferences\n connectionId: preferences-db\n payload:\n operation: Find\n filter:\n section: account\n responsePath: preferences\n loadingPath: loading\n errorPath: uiError\n onSuccess:\n - action: SetState\n params:\n path: form\n value:\n _if:\n - _state: preferences.0.id\n - _state: preferences.0.values\n - _state: form\n onError:\n - action: SetState\n params:\n path: requestFailed\n value: true\n - action: SetState\n params:\n path: saved\n value:\n _not:\n _state: uiError\n onError:\n - action: SetState\n params:\n path: requestFailed\n value: true\n - type: Paragraph\n props:\n text: Settings saved.\n muted: true\n visible:\n _state: saved\n template: shadcn-admin-shell\n lifecycle:\n onMount:\n - *a5\n - id: settings-appearance\n path: /settings/appearance\n title: Settings · Appearance\n state:\n direction: \"ltr\"\n font: \"Inter\"\n loading: false\n theme: \"light\"\n currentPath: /settings/appearance\n saving: false\n uiError: null\n saved: false\n form:\n font: Inter\n theme: light\n direction: ltr\n preferences: []\n blocks:\n - type: PageLayout\n children:\n - type: Box\n props:\n className: \"!flex-row items-start justify-between gap-4 mb-6\"\n children:\n - type: Box\n props:\n gap: xs\n children:\n - type: Heading\n props:\n level: 1\n text: Settings\n - type: Paragraph\n props:\n text: Manage your account settings and set e-mail preferences.\n muted: true\n size: sm\n - type: Divider\n - type: Box\n props:\n className: \"!flex-col gap-10 lg:!flex-row\"\n children:\n - type: Box\n props:\n className: \"w-full shrink-0 !flex-row flex-wrap gap-1 lg:!flex-col lg:w-48 [&>a]:shrink-0 [&>a]:px-3 [&>a]:py-2 [&>a]:rounded-md lg:[&>a]:px-0 lg:[&>a]:py-0\"\n children:\n - type: Link\n props:\n label: Profile\n href: /settings/profile\n variant: muted\n - type: Link\n props:\n label: Account\n href: /settings/account\n variant: muted\n - type: Link\n props:\n label: Appearance\n href: /settings/appearance\n variant: default\n className: \"bg-muted font-medium lg:bg-transparent\"\n - type: Link\n props:\n label: Notifications\n href: /settings/notifications\n variant: muted\n - type: Link\n props:\n label: Display\n href: /settings/display\n variant: muted\n - type: Box\n props:\n className: max-w-2xl flex-1\n gap: lg\n children:\n - type: Box\n props:\n className: \"!flex-row items-start justify-between gap-4 mb-6\"\n children:\n - type: Box\n props:\n gap: xs\n children:\n - type: Heading\n props:\n level: 2\n text: Appearance\n - type: Paragraph\n props:\n text: Customize the appearance of the app. Automatically switch between day and night themes.\n muted: true\n size: sm\n - type: Divider\n - type: Form\n props:\n label: Appearance settings\n pending:\n _or:\n - _state: saving\n - _state: loading\n idempotent: true\n children:\n - type: Field\n props:\n name: font\n label: Font\n kind: select\n options:\n - value: Inter\n label: Inter\n - value: System\n label: System\n - value: Manrope\n label: Manrope\n value:\n _bindState: form.font\n - type: Field\n props:\n name: theme\n label: Theme\n kind: radio\n options:\n - value: light\n label: Light\n - value: dark\n label: Dark\n - value: system\n label: System\n value:\n _bindState: form.theme\n - type: Field\n props:\n name: direction\n label: Direction\n kind: select\n options:\n - value: ltr\n label: Ltr\n - value: rtl\n label: Rtl\n value:\n _bindState: form.direction\n - type: Paragraph\n props:\n text:\n _state: uiError.message\n muted: true\n visible:\n _state: uiError\n - type: Form.Submit\n props:\n label: Update appearance\n disabled:\n _state: saving\n events:\n onChange:\n - action: SetState\n params:\n path: saved\n value: false\n - action: SetState\n params:\n path: uiError\n value: null\n onSubmit:\n - action: SetState\n params:\n path: saved\n value: false\n - action: SetState\n params:\n path: uiError\n value: null\n - action: Request\n params:\n connectionId: preferences-db\n request:\n id: save-preferences\n connectionId: preferences-db\n payload:\n operation:\n _if:\n - _state: preferences.0.id\n - UpdateOne\n - InsertOne\n filter:\n id:\n _state: preferences.0.id\n data:\n section: appearance\n values:\n _event: values\n idempotencyKey:\n _event: value\n expectedVersion:\n _state: preferences.0.version\n loadingPath: saving\n errorPath: uiError\n onSuccess:\n - &a6\n action: Request\n params:\n connectionId: preferences-db\n request:\n id: load-preferences\n connectionId: preferences-db\n payload:\n operation: Find\n filter:\n section: appearance\n responsePath: preferences\n loadingPath: loading\n errorPath: uiError\n onSuccess:\n - action: SetState\n params:\n path: form\n value:\n _if:\n - _state: preferences.0.id\n - _state: preferences.0.values\n - _state: form\n onError:\n - action: SetState\n params:\n path: requestFailed\n value: true\n - action: SetState\n params:\n path: saved\n value:\n _not:\n _state: uiError\n - action: SetState\n params:\n path: theme\n value:\n _state: form.theme\n - action: SetState\n params:\n path: direction\n value:\n _state: form.direction\n - action: SetState\n params:\n path: font\n value:\n _state: form.font\n onError:\n - action: SetState\n params:\n path: requestFailed\n value: true\n - type: Paragraph\n props:\n text: Settings saved.\n muted: true\n visible:\n _state: saved\n template: shadcn-admin-shell\n lifecycle:\n onMount:\n - *a6\n - id: settings-notifications\n path: /settings/notifications\n title: Settings · Notifications\n state:\n direction: \"ltr\"\n font: \"Inter\"\n loading: false\n theme: \"light\"\n currentPath: /settings/notifications\n saving: false\n uiError: null\n saved: false\n form:\n notify: all\n communication: false\n marketing: false\n social: true\n security: true\n preferences: []\n blocks:\n - type: PageLayout\n children:\n - type: Box\n props:\n className: \"!flex-row items-start justify-between gap-4 mb-6\"\n children:\n - type: Box\n props:\n gap: xs\n children:\n - type: Heading\n props:\n level: 1\n text: Settings\n - type: Paragraph\n props:\n text: Manage your account settings and set e-mail preferences.\n muted: true\n size: sm\n - type: Divider\n - type: Box\n props:\n className: \"!flex-col gap-10 lg:!flex-row\"\n children:\n - type: Box\n props:\n className: \"w-full shrink-0 !flex-row flex-wrap gap-1 lg:!flex-col lg:w-48 [&>a]:shrink-0 [&>a]:px-3 [&>a]:py-2 [&>a]:rounded-md lg:[&>a]:px-0 lg:[&>a]:py-0\"\n children:\n - type: Link\n props:\n label: Profile\n href: /settings/profile\n variant: muted\n - type: Link\n props:\n label: Account\n href: /settings/account\n variant: muted\n - type: Link\n props:\n label: Appearance\n href: /settings/appearance\n variant: muted\n - type: Link\n props:\n label: Notifications\n href: /settings/notifications\n variant: default\n className: \"bg-muted font-medium lg:bg-transparent\"\n - type: Link\n props:\n label: Display\n href: /settings/display\n variant: muted\n - type: Box\n props:\n className: max-w-2xl flex-1\n gap: lg\n children:\n - type: Box\n props:\n className: \"!flex-row items-start justify-between gap-4 mb-6\"\n children:\n - type: Box\n props:\n gap: xs\n children:\n - type: Heading\n props:\n level: 2\n text: Notifications\n - type: Paragraph\n props:\n text: Configure how you receive notifications.\n muted: true\n size: sm\n - type: Divider\n - type: Form\n props:\n label: Notifications settings\n pending:\n _or:\n - _state: saving\n - _state: loading\n idempotent: true\n children:\n - type: Field\n props:\n name: notify\n label: Notify me about...\n kind: radio\n options:\n - label: All new messages\n value: all\n - label: Direct messages and mentions\n value: mentions\n - label: Nothing\n value: none\n value:\n _bindState: form.notify\n - type: Field\n props:\n name: communication\n kind: switch\n label: Communication emails\n description: Receive emails about your account activity.\n value:\n _bindState: form.communication\n - type: Field\n props:\n name: marketing\n kind: switch\n label: Marketing emails\n description: Receive emails about new products and features.\n value:\n _bindState: form.marketing\n - type: Field\n props:\n name: social\n kind: switch\n label: Social emails\n description: Receive emails for friend requests and follows.\n value:\n _bindState: form.social\n - type: Field\n props:\n name: security\n kind: switch\n label: Security emails\n description: Receive emails about your account security.\n value:\n _bindState: form.security\n - type: Paragraph\n props:\n text:\n _state: uiError.message\n muted: true\n visible:\n _state: uiError\n - type: Form.Submit\n props:\n label: Update notifications\n disabled:\n _state: saving\n events:\n onChange:\n - action: SetState\n params:\n path: saved\n value: false\n - action: SetState\n params:\n path: uiError\n value: null\n onSubmit:\n - action: SetState\n params:\n path: saved\n value: false\n - action: SetState\n params:\n path: uiError\n value: null\n - action: Request\n params:\n connectionId: preferences-db\n request:\n id: save-preferences\n connectionId: preferences-db\n payload:\n operation:\n _if:\n - _state: preferences.0.id\n - UpdateOne\n - InsertOne\n filter:\n id:\n _state: preferences.0.id\n data:\n section: notifications\n values:\n _event: values\n idempotencyKey:\n _event: value\n expectedVersion:\n _state: preferences.0.version\n loadingPath: saving\n errorPath: uiError\n onSuccess:\n - &a7\n action: Request\n params:\n connectionId: preferences-db\n request:\n id: load-preferences\n connectionId: preferences-db\n payload:\n operation: Find\n filter:\n section: notifications\n responsePath: preferences\n loadingPath: loading\n errorPath: uiError\n onSuccess:\n - action: SetState\n params:\n path: form\n value:\n _if:\n - _state: preferences.0.id\n - _state: preferences.0.values\n - _state: form\n onError:\n - action: SetState\n params:\n path: requestFailed\n value: true\n - action: SetState\n params:\n path: saved\n value:\n _not:\n _state: uiError\n onError:\n - action: SetState\n params:\n path: requestFailed\n value: true\n - type: Paragraph\n props:\n text: Settings saved.\n muted: true\n visible:\n _state: saved\n template: shadcn-admin-shell\n lifecycle:\n onMount:\n - *a7\n - id: settings-display\n path: /settings/display\n title: Settings · Display\n state:\n direction: \"ltr\"\n font: \"Inter\"\n loading: false\n theme: \"light\"\n currentPath: /settings/display\n saving: false\n uiError: null\n saved: false\n form:\n recents: true\n home: true\n applications: true\n desktop: true\n downloads: true\n documents: true\n preferences: []\n blocks:\n - type: PageLayout\n children:\n - type: Box\n props:\n className: \"!flex-row items-start justify-between gap-4 mb-6\"\n children:\n - type: Box\n props:\n gap: xs\n children:\n - type: Heading\n props:\n level: 1\n text: Settings\n - type: Paragraph\n props:\n text: Manage your account settings and set e-mail preferences.\n muted: true\n size: sm\n - type: Divider\n - type: Box\n props:\n className: \"!flex-col gap-10 lg:!flex-row\"\n children:\n - type: Box\n props:\n className: \"w-full shrink-0 !flex-row flex-wrap gap-1 lg:!flex-col lg:w-48 [&>a]:shrink-0 [&>a]:px-3 [&>a]:py-2 [&>a]:rounded-md lg:[&>a]:px-0 lg:[&>a]:py-0\"\n children:\n - type: Link\n props:\n label: Profile\n href: /settings/profile\n variant: muted\n - type: Link\n props:\n label: Account\n href: /settings/account\n variant: muted\n - type: Link\n props:\n label: Appearance\n href: /settings/appearance\n variant: muted\n - type: Link\n props:\n label: Notifications\n href: /settings/notifications\n variant: muted\n - type: Link\n props:\n label: Display\n href: /settings/display\n variant: default\n className: \"bg-muted font-medium lg:bg-transparent\"\n - type: Box\n props:\n className: max-w-2xl flex-1\n gap: lg\n children:\n - type: Box\n props:\n className: \"!flex-row items-start justify-between gap-4 mb-6\"\n children:\n - type: Box\n props:\n gap: xs\n children:\n - type: Heading\n props:\n level: 2\n text: Display\n - type: Paragraph\n props:\n text: Turn items on or off to control what’s displayed in the app.\n muted: true\n size: sm\n - type: Divider\n - type: Form\n props:\n label: Display settings\n pending:\n _or:\n - _state: saving\n - _state: loading\n idempotent: true\n children:\n - type: Paragraph\n props:\n text: Select the items you want to display in the sidebar.\n muted: true\n - type: Field\n props:\n name: recents\n label: Recents\n kind: checkbox\n value:\n _bindState: form.recents\n - type: Field\n props:\n name: home\n label: Home\n kind: checkbox\n value:\n _bindState: form.home\n - type: Field\n props:\n name: applications\n label: Applications\n kind: checkbox\n value:\n _bindState: form.applications\n - type: Field\n props:\n name: desktop\n label: Desktop\n kind: checkbox\n value:\n _bindState: form.desktop\n - type: Field\n props:\n name: downloads\n label: Downloads\n kind: checkbox\n value:\n _bindState: form.downloads\n - type: Field\n props:\n name: documents\n label: Documents\n kind: checkbox\n value:\n _bindState: form.documents\n - type: Paragraph\n props:\n text:\n _state: uiError.message\n muted: true\n visible:\n _state: uiError\n - type: Form.Submit\n props:\n label: Update display\n disabled:\n _state: saving\n events:\n onChange:\n - action: SetState\n params:\n path: saved\n value: false\n - action: SetState\n params:\n path: uiError\n value: null\n onSubmit:\n - action: SetState\n params:\n path: saved\n value: false\n - action: SetState\n params:\n path: uiError\n value: null\n - action: Request\n params:\n connectionId: preferences-db\n request:\n id: save-preferences\n connectionId: preferences-db\n payload:\n operation:\n _if:\n - _state: preferences.0.id\n - UpdateOne\n - InsertOne\n filter:\n id:\n _state: preferences.0.id\n data:\n section: display\n values:\n _event: values\n idempotencyKey:\n _event: value\n expectedVersion:\n _state: preferences.0.version\n loadingPath: saving\n errorPath: uiError\n onSuccess:\n - &a8\n action: Request\n params:\n connectionId: preferences-db\n request:\n id: load-preferences\n connectionId: preferences-db\n payload:\n operation: Find\n filter:\n section: display\n responsePath: preferences\n loadingPath: loading\n errorPath: uiError\n onSuccess:\n - action: SetState\n params:\n path: form\n value:\n _if:\n - _state: preferences.0.id\n - _state: preferences.0.values\n - _state: form\n onError:\n - action: SetState\n params:\n path: requestFailed\n value: true\n - action: SetState\n params:\n path: saved\n value:\n _not:\n _state: uiError\n onError:\n - action: SetState\n params:\n path: requestFailed\n value: true\n - type: Paragraph\n props:\n text: Settings saved.\n muted: true\n visible:\n _state: saved\n template: shadcn-admin-shell\n lifecycle:\n onMount:\n - *a8\n - id: sign-in\n path: /sign-in\n title: Login\n state:\n saving: false\n currentPath: /sign-in\n blocks:\n - type: Box\n props:\n className: min-h-dvh items-center justify-center bg-background px-6\n gap: lg\n children:\n - type: Heading\n props:\n level: 3\n text: UiBot Admin\n - type: Box\n props:\n className: w-full max-w-sm\n gap: lg\n children:\n - type: Heading\n props:\n level: 2\n text: Login\n - type: Paragraph\n props:\n text: Enter your email and password below to log into your account.\n muted: true\n size: sm\n - type: Form\n props:\n label: Login\n pending:\n _state: saving\n children:\n - type: Field\n props:\n name: email\n label: Email\n kind: email\n required: true\n - type: Field\n props:\n name: password\n label: Password\n kind: password\n required: true\n - type: Form.Submit\n props:\n label: Login\n full: true\n disabled: true\n - type: Paragraph\n props:\n text: Connect an authentication provider to continue.\n muted: true\n size: sm\n - type: Box\n props:\n direction: row\n justify: between\n children:\n - type: Link\n props:\n label: Forgot password?\n href: /forgot-password\n - type: Link\n props:\n label: Create account\n href: /sign-up\n - type: Paragraph\n props:\n text: By continuing, you agree to our Terms of Service and Privacy Policy.\n muted: true\n size: sm\n - id: sign-in-2\n path: /sign-in-2\n title: Login\n state:\n saving: false\n currentPath: /sign-in-2\n blocks:\n - type: Box\n props:\n className: \"!grid lg:grid-cols-2 min-h-dvh\"\n gap: none\n children:\n - type: Box\n props:\n className: min-h-dvh items-center justify-center px-6 py-12\n gap: lg\n children:\n - type: Heading\n props:\n level: 3\n text: UiBot Admin\n - type: Box\n props:\n className: w-full max-w-sm\n gap: lg\n children:\n - type: Heading\n props:\n level: 2\n text: Login\n - type: Paragraph\n props:\n text: Welcome back! Please enter your details.\n muted: true\n size: sm\n - type: Form\n props:\n label: Login\n pending:\n _state: saving\n children:\n - type: Field\n props:\n name: email\n label: Email\n kind: email\n required: true\n - type: Field\n props:\n name: password\n label: Password\n kind: password\n required: true\n - type: Form.Submit\n props:\n label: Login\n full: true\n disabled: true\n - type: Paragraph\n props:\n text: Connect an authentication provider to continue.\n muted: true\n size: sm\n - type: Box\n props:\n direction: row\n justify: between\n children:\n - type: Link\n props:\n label: Forgot password?\n href: /forgot-password\n - type: Link\n props:\n label: Create account\n href: /sign-up\n - type: Paragraph\n props:\n text: By continuing, you agree to our Terms of Service and Privacy Policy.\n muted: true\n size: sm\n - type: Box\n props:\n className: hidden lg:flex relative overflow-hidden bg-muted min-h-dvh p-10\n gap: lg\n children:\n - type: Box\n props:\n className: absolute top-24 start-16 w-[960px] rounded-xl border bg-background p-8\n gap: lg\n children:\n - type: Box\n props:\n className: \"!flex-row items-start justify-between gap-4 mb-6\"\n children:\n - type: Box\n props:\n gap: xs\n children:\n - type: Heading\n props:\n level: 1\n text: Dashboard\n - type: Button\n props:\n label: Download\n disabled: true\n - type: Tabs\n props:\n tabs:\n - Overview\n - Analytics\n - Reports\n - Notifications\n disabledTabs:\n - 2\n - 3\n variant: segmented\n children:\n - type: Box\n props:\n gap: md\n children:\n - type: Box\n props:\n className: \"!grid grid-cols-1 gap-4 sm:grid-cols-2 xl:grid-cols-4\"\n children:\n - type: StatCard\n props:\n label: Total Revenue\n value: $45,231.89\n description: +20.1% from last month\n icon: chart-no-axes-column\n - type: StatCard\n props:\n label: Subscriptions\n value: \"+2350\"\n description: +180.1% from last month\n icon: users\n - type: StatCard\n props:\n label: Sales\n value: +12,234\n description: +19% from last month\n icon: boxes\n - type: StatCard\n props:\n label: Active Now\n value: \"+573\"\n description: +201 since last hour\n icon: chart-no-axes-column\n - type: Box\n props:\n className: \"!grid grid-cols-1 gap-4 lg:grid-cols-7\"\n children:\n - type: Box\n props:\n className: lg:col-span-4\n children:\n - type: Card\n props:\n title: Overview\n children:\n - type: BarChart\n props:\n prefix: $\n height: 350\n data:\n - label: Jan\n value: 1500\n - label: Feb\n value: 5800\n - label: Mar\n value: 5500\n - label: Apr\n value: 2200\n - label: May\n value: 4800\n - label: Jun\n value: 1600\n - label: Jul\n value: 2800\n - label: Aug\n value: 2300\n - label: Sep\n value: 5700\n - label: Oct\n value: 1400\n - label: Nov\n value: 2900\n - label: Dec\n value: 1900\n - type: Box\n props:\n className: lg:col-span-3\n children:\n - type: Card\n props:\n title: Recent Sales\n description: You made 265 sales this month.\n children:\n - type: AvatarList\n props:\n items:\n - id: \"0\"\n initials: OM\n name: Olivia Martin\n description: olivia.martin@email.com\n value: +$1,999.00\n - id: \"1\"\n initials: JL\n name: Jackson Lee\n description: jackson.lee@email.com\n value: +$39.00\n - id: \"2\"\n initials: IN\n name: Isabella Nguyen\n description: isabella.nguyen@email.com\n value: +$299.00\n - id: \"3\"\n initials: WK\n name: William Kim\n description: will@email.com\n value: +$99.00\n - id: \"4\"\n initials: SD\n name: Sofia Davis\n description: sofia.davis@email.com\n value: +$39.00\n - type: Box\n props:\n gap: md\n children:\n - type: Box\n props:\n className: \"!flex-row items-start justify-between gap-4 mb-6\"\n children:\n - type: Box\n props:\n gap: xs\n children:\n - type: Heading\n props:\n level: 1\n text: Analytics\n - type: Paragraph\n props:\n text: Revenue and subscription performance.\n muted: true\n size: sm\n - type: Box\n props:\n className: \"!grid grid-cols-1 gap-4 sm:grid-cols-2 xl:grid-cols-4\"\n children:\n - type: StatCard\n props:\n label: Total Revenue\n value: $45,231.89\n description: +20.1% from last month\n icon: chart-no-axes-column\n - type: StatCard\n props:\n label: Subscriptions\n value: \"+2350\"\n description: +180.1% from last month\n icon: users\n - type: StatCard\n props:\n label: Sales\n value: +12,234\n description: +19% from last month\n icon: boxes\n - type: StatCard\n props:\n label: Active Now\n value: \"+573\"\n description: +201 since last hour\n icon: chart-no-axes-column\n - type: Card\n props:\n title: Revenue over time\n children:\n - type: BarChart\n props:\n prefix: $\n data:\n - label: Apr\n value: 18200\n - label: May\n value: 21400\n - label: Jun\n value: 28000\n - label: Jul\n value: 26200\n - label: Aug\n value: 31500\n - label: Sep\n value: 45231\n - id: sign-up\n path: /sign-up\n title: Create an account\n state:\n saving: false\n currentPath: /sign-up\n blocks:\n - type: Box\n props:\n className: min-h-dvh items-center justify-center bg-background px-6\n gap: lg\n children:\n - type: Heading\n props:\n level: 3\n text: UiBot Admin\n - type: Box\n props:\n className: w-full max-w-sm\n gap: lg\n children:\n - type: Heading\n props:\n level: 2\n text: Create an account\n - type: Paragraph\n props:\n text: Enter your email and password to create an account.\n muted: true\n size: sm\n - type: Form\n props:\n label: Create an account\n pending:\n _state: saving\n children:\n - type: Field\n props:\n name: email\n label: Email\n kind: email\n required: true\n - type: Field\n props:\n name: password\n label: Password\n kind: password\n required: true\n - type: Field\n props:\n name: confirm\n label: Confirm password\n kind: password\n required: true\n - type: Form.Submit\n props:\n label: Create account\n full: true\n disabled: true\n - type: Paragraph\n props:\n text: Connect an authentication provider to continue.\n muted: true\n size: sm\n - type: Box\n props:\n direction: row\n justify: between\n children:\n - type: Link\n props:\n label: Forgot password?\n href: /forgot-password\n - type: Link\n props:\n label: Create account\n href: /sign-up\n - type: Paragraph\n props:\n text: By continuing, you agree to our Terms of Service and Privacy Policy.\n muted: true\n size: sm\n - id: forgot-password\n path: /forgot-password\n title: Forgot Password\n state:\n saving: false\n currentPath: /forgot-password\n blocks:\n - type: Box\n props:\n className: min-h-dvh items-center justify-center bg-background px-6\n gap: lg\n children:\n - type: Heading\n props:\n level: 3\n text: UiBot Admin\n - type: Box\n props:\n className: w-full max-w-sm\n gap: lg\n children:\n - type: Heading\n props:\n level: 2\n text: Forgot Password\n - type: Paragraph\n props:\n text: Enter your registered email and we will send you a reset link.\n muted: true\n size: sm\n - type: Form\n props:\n label: Forgot Password\n pending:\n _state: saving\n children:\n - type: Field\n props:\n name: email\n label: Email\n kind: email\n required: true\n - type: Form.Submit\n props:\n label: Send reset link\n full: true\n disabled: true\n - type: Paragraph\n props:\n text: Connect an authentication provider to continue.\n muted: true\n size: sm\n - type: Box\n props:\n direction: row\n justify: between\n children:\n - type: Link\n props:\n label: Forgot password?\n href: /forgot-password\n - type: Link\n props:\n label: Create account\n href: /sign-up\n - type: Paragraph\n props:\n text: By continuing, you agree to our Terms of Service and Privacy Policy.\n muted: true\n size: sm\n - id: otp\n path: /otp\n title: Two-factor Authentication\n state:\n saving: false\n currentPath: /otp\n blocks:\n - type: Box\n props:\n className: min-h-dvh items-center justify-center bg-background px-6\n gap: lg\n children:\n - type: Heading\n props:\n level: 3\n text: UiBot Admin\n - type: Box\n props:\n className: w-full max-w-sm\n gap: lg\n children:\n - type: Heading\n props:\n level: 2\n text: Two-factor Authentication\n - type: Paragraph\n props:\n text: Please enter the authentication code sent to your email.\n muted: true\n size: sm\n - type: Form\n props:\n label: Two-factor Authentication\n pending:\n _state: saving\n children:\n - type: Field\n props:\n name: code\n label: Authentication code\n kind: otp\n required: true\n - type: Form.Submit\n props:\n label: Verify\n full: true\n disabled: true\n - type: Paragraph\n props:\n text: Connect an authentication provider to continue.\n muted: true\n size: sm\n - type: Box\n props:\n direction: row\n justify: between\n children:\n - type: Link\n props:\n label: Forgot password?\n href: /forgot-password\n - type: Link\n props:\n label: Create account\n href: /sign-up\n - type: Paragraph\n props:\n text: By continuing, you agree to our Terms of Service and Privacy Policy.\n muted: true\n size: sm\n - id: error-401\n path: /errors/401\n title: Unauthorized\n state:\n currentPath: /errors/401\n blocks:\n - type: Box\n props:\n className: min-h-dvh items-center justify-center px-6 text-center\n gap: lg\n children:\n - type: Heading\n props:\n level: 1\n text: \"401\"\n className: \"!text-[7rem] !leading-tight !font-bold\"\n - type: Heading\n props:\n level: 2\n text: Unauthorized\n - type: Paragraph\n props:\n text: Please log in with the appropriate credentials to access this resource.\n muted: true\n - type: Link\n props:\n label: Back to Home\n href: /\n variant: button\n - id: error-403\n path: /errors/403\n title: Access Forbidden\n state:\n currentPath: /errors/403\n blocks:\n - type: Box\n props:\n className: min-h-dvh items-center justify-center px-6 text-center\n gap: lg\n children:\n - type: Heading\n props:\n level: 1\n text: \"403\"\n className: \"!text-[7rem] !leading-tight !font-bold\"\n - type: Heading\n props:\n level: 2\n text: Access Forbidden\n - type: Paragraph\n props:\n text: You don’t have the necessary permission to view this page.\n muted: true\n - type: Link\n props:\n label: Back to Home\n href: /\n variant: button\n - id: error-404\n path: /errors/404\n title: Oops! Page Not Found!\n state:\n currentPath: /errors/404\n blocks:\n - type: Box\n props:\n className: min-h-dvh items-center justify-center px-6 text-center\n gap: lg\n children:\n - type: Heading\n props:\n level: 1\n text: \"404\"\n className: \"!text-[7rem] !leading-tight !font-bold\"\n - type: Heading\n props:\n level: 2\n text: Oops! Page Not Found!\n - type: Paragraph\n props:\n text: It seems like the page you’re looking for does not exist or might have been removed.\n muted: true\n - type: Link\n props:\n label: Back to Home\n href: /\n variant: button\n - id: error-500\n path: /errors/500\n title: Oops! Something went wrong\n state:\n currentPath: /errors/500\n blocks:\n - type: Box\n props:\n className: min-h-dvh items-center justify-center px-6 text-center\n gap: lg\n children:\n - type: Heading\n props:\n level: 1\n text: \"500\"\n className: \"!text-[7rem] !leading-tight !font-bold\"\n - type: Heading\n props:\n level: 2\n text: Oops! Something went wrong\n - type: Paragraph\n props:\n text: We apologize for the inconvenience. Please try again later.\n muted: true\n - type: Link\n props:\n label: Back to Home\n href: /\n variant: button\n - id: error-503\n path: /errors/503\n title: Website is under maintenance!\n state:\n currentPath: /errors/503\n blocks:\n - type: Box\n props:\n className: min-h-dvh items-center justify-center px-6 text-center\n gap: lg\n children:\n - type: Heading\n props:\n level: 1\n text: \"503\"\n className: \"!text-[7rem] !leading-tight !font-bold\"\n - type: Heading\n props:\n level: 2\n text: Website is under maintenance!\n - type: Paragraph\n props:\n text: The site is not available at the moment. We’ll be back online shortly.\n muted: true\n - type: Link\n props:\n label: Back to Home\n href: /\n variant: button\n - id: help\n path: /help-center\n title: Help Center\n state:\n direction: \"ltr\"\n font: \"Inter\"\n theme: \"light\"\n currentPath: /help-center\n blocks:\n - type: PageLayout\n children:\n - type: Box\n props:\n className: min-h-[65vh] items-center justify-center\n gap: md\n children:\n - type: Heading\n props:\n level: 1\n text: Coming Soon!\n - type: Paragraph\n props:\n text: We’re working on the Help Center. Stay tuned!\n muted: true\n template: shadcn-admin-shell\n","dependencies":["template:shadcn-admin"]}]},"example:store-example":{"resourceId":"example:store-example","title":{"zh":"store Example","en":"store Example"},"docs":{"zh":"# store Example\n\nVerdant — Storefront\n\n","en":"# store Example\n\nVerdant — Storefront\n\n"},"distributions":[],"examples":[{"id":"store-example","title":"store Example","mode":"spec","language":"yaml","code":"version: '2.0'\nmenus:\n items:\n - key: storefront\n label: Storefront\n path: /\n icon: ▦\n - key: product\n label: Product\n path: /product\n icon: ◫\n - key: cart\n label: Cart\n path: /cart\n icon: ▤\n - key: checkout\n label: Checkout\n path: /checkout\n icon: ◆\npages:\n- id: storefront\n path: /\n title: Verdant — Storefront\n blocks:\n - type: PageLayout\n props:\n title: Verdant\n slots:\n headerActions:\n - type: Link\n props:\n label: Cart · 2\n href: /cart\n variant: button\n children:\n - type: Box\n props:\n className: flex items-end justify-between mb-4\n children:\n - type: Box\n children:\n - type: Heading\n props:\n level: 2\n text: Indoor plants\n - type: Paragraph\n props:\n size: sm\n muted: true\n text: 64 products · free shipping over $75\n - type: BadgeGroup\n props:\n items:\n - label: Spring sale\n tone: success\n - label: New arrivals\n tone: info\n - type: Grid\n props:\n cols: '4'\n responsive: true\n gap: lg\n children:\n - type: Card\n props:\n title: Monstera Deliciosa\n description: Easy care · low light\n children:\n - type: Box\n props:\n className: h-40 -mx-6 -mt-2 mb-3 border-b border-border bg-muted/40 flex items-center justify-center\n - type: BadgeGroup\n props:\n items:\n - label: Bestseller\n tone: success\n - type: Stat\n props:\n value: $48\n - type: Link\n props:\n label: View details\n href: /product\n variant: outline\n - type: Card\n props:\n title: Snake Plant\n description: Drought tolerant\n children:\n - type: Box\n props:\n className: h-40 -mx-6 -mt-2 mb-3 border-b border-border bg-muted/40 flex items-center justify-center\n - type: Stat\n props:\n value: $32\n change: $40\n - type: Link\n props:\n label: View details\n href: /product\n variant: outline\n - type: Card\n props:\n title: Fiddle Leaf Fig\n description: Bright indirect light\n children:\n - type: Box\n props:\n className: h-40 -mx-6 -mt-2 mb-3 border-b border-border bg-muted/40 flex items-center justify-center\n - type: BadgeGroup\n props:\n items:\n - label: Low stock\n tone: warning\n - type: Stat\n props:\n value: $74\n - type: Link\n props:\n label: View details\n href: /product\n variant: outline\n - type: Card\n props:\n title: Pothos Golden\n description: Beginner friendly\n children:\n - type: Box\n props:\n className: h-40 -mx-6 -mt-2 mb-3 border-b border-border bg-muted/40 flex items-center justify-center\n - type: BadgeGroup\n props:\n items:\n - label: New\n tone: info\n - type: Stat\n props:\n value: $24\n - type: Link\n props:\n label: View details\n href: /product\n variant: outline\n template: app-shell-sidebar\n- id: product\n path: /product\n title: Verdant — Monstera Deliciosa\n blocks:\n - type: PageLayout\n props:\n title: Verdant\n slots:\n headerActions:\n - type: Link\n props:\n label: Cart · 2\n href: /cart\n variant: button\n children:\n - type: Breadcrumb\n props:\n items:\n - label: Storefront\n href: /\n - label: Indoor plants\n href: /\n - label: Monstera Deliciosa\n - type: Grid\n props:\n cols: '2'\n gap: lg\n children:\n - type: Card\n children:\n - type: Box\n props:\n className: h-80 -m-6 rounded-none border border-border bg-muted/40 flex items-center justify-center\n children:\n - type: Paragraph\n props:\n size: sm\n muted: true\n text: No product photo\n - type: Box\n children:\n - type: Heading\n props:\n level: 2\n text: Monstera Deliciosa\n - type: BadgeGroup\n props:\n items:\n - label: Bestseller\n tone: success\n - label: In stock\n tone: info\n - type: Stat\n props:\n value: $48\n change: Free shipping\n - type: Paragraph\n props:\n muted: true\n text: The Swiss cheese plant — fast-growing, sculptural foliage that thrives in bright, indirect\n light. Ships in a 6\" nursery pot.\n - type: Divider\n - type: KeyValueGrid\n props:\n cols: '2'\n items:\n - key: Pot size\n value: 6 inch\n - key: Light\n value: Bright indirect\n - key: Water\n value: Weekly\n - key: Pet safe\n value: 'No'\n - key: Mature height\n value: Up to 8 ft\n - key: Difficulty\n value: Easy\n - type: Divider\n - type: Button\n props:\n label: Add to cart · $48\n full: true\n - type: Link\n props:\n label: Continue shopping\n href: /\n variant: muted\n - type: Card\n props:\n title: Care guide\n children:\n - type: Markdown\n props:\n content: '### Caring for your Monstera\n\n\n - **Light** — bright, indirect light. Avoid harsh midday sun.\n\n - **Water** — let the top *2 inches* of soil dry between waterings.\n\n - **Humidity** — loves humidity; mist weekly or group with other plants.\n\n\n With the right spot, a Monstera grows quickly and develops its\n\n signature split leaves within a season.\n\n '\n template: app-shell-sidebar\n- id: cart\n path: /cart\n title: Verdant — Cart\n blocks:\n - type: PageLayout\n props:\n title: Verdant\n slots:\n headerActions:\n - type: Link\n props:\n label: Checkout\n href: /checkout\n variant: button\n children:\n - type: Heading\n props:\n level: 2\n text: Your cart\n - type: Grid\n props:\n cols: '3'\n gap: lg\n children:\n - type: Box\n props:\n className: col-span-2\n children:\n - type: Card\n props:\n title: Items\n children:\n - type: Table\n props:\n columns:\n - key: item\n label: Item\n - key: qty\n label: Qty\n align: center\n - key: price\n label: Price\n align: right\n - key: total\n label: Total\n align: right\n rows:\n - item: Monstera Deliciosa\n qty: '1'\n price: $48.00\n total: $48.00\n - item: Snake Plant\n qty: '2'\n price: $32.00\n total: $64.00\n - type: Card\n props:\n title: Summary\n children:\n - type: Stat\n props:\n label: Subtotal\n value: $112.00\n - type: Stat\n props:\n label: Shipping\n value: $0.00\n description: Free over $75\n - type: Stat\n props:\n label: Tax\n value: $9.52\n - type: Divider\n - type: Stat\n props:\n label: Total\n value: $121.52\n - type: Link\n props:\n label: Proceed to checkout\n href: /checkout\n variant: button\n template: app-shell-sidebar\n- id: checkout\n path: /checkout\n title: Verdant — Checkout\n blocks:\n - type: PageLayout\n props:\n title: Verdant\n children:\n - type: Breadcrumb\n props:\n items:\n - label: Cart\n href: /cart\n - label: Checkout\n - type: Grid\n props:\n cols: '3'\n gap: lg\n children:\n - type: Box\n props:\n className: col-span-2\n children:\n - type: Card\n props:\n title: Shipping address\n children:\n - type: Form\n children:\n - type: Form.Input\n props:\n name: fullName\n label: Full name\n placeholder: Ada Lovelace\n required: true\n - type: Grid\n props:\n cols: '2'\n gap: md\n children:\n - type: Form.Input\n props:\n name: address\n label: Street address\n placeholder: 123 Garden Way\n - type: Form.Input\n props:\n name: apt\n label: Apt / unit\n placeholder: 4B\n - type: Grid\n props:\n cols: '3'\n gap: md\n children:\n - type: Form.Input\n props:\n name: city\n label: City\n placeholder: Portland\n - type: Form.Select\n props:\n name: state\n label: State\n options:\n - value: or\n label: Oregon\n - value: wa\n label: Washington\n - value: ca\n label: California\n - type: Form.Input\n props:\n name: zip\n label: ZIP\n placeholder: '97201'\n - type: Divider\n - type: Form.Input\n props:\n name: cardNumber\n label: Card number\n placeholder: 4242 4242 4242 4242\n - type: Grid\n props:\n cols: '2'\n gap: md\n children:\n - type: Form.Input\n props:\n name: expiry\n label: Expiry\n placeholder: MM / YY\n - type: Form.Input\n props:\n name: cvc\n label: CVC\n placeholder: '123'\n - type: Form.Checkbox\n props:\n name: saveCard\n label: Save card for next time\n description: Stored securely with our payment provider.\n - type: Form.Submit\n props:\n label: Place order · $121.52\n full: true\n - type: Card\n props:\n title: Order summary\n children:\n - type: KeyValueGrid\n props:\n cols: '1'\n items:\n - key: Monstera Deliciosa ×1\n value: $48.00\n - key: Snake Plant ×2\n value: $64.00\n - key: Shipping\n value: $0.00\n - key: Tax\n value: $9.52\n - type: Divider\n - type: Stat\n props:\n label: Total\n value: $121.52\n - type: Toast\n props:\n level: success\n message: Spring sale applied — you saved $16.\n template: app-shell-sidebar\n","dependencies":["template:store"]}]},"example:support-inbox-example":{"resourceId":"example:support-inbox-example","title":{"zh":"support-inbox Example","en":"support-inbox Example"},"docs":{"zh":"# support-inbox Example\n\nSupport Inbox\n\n","en":"# support-inbox Example\n\nSupport Inbox\n\n"},"distributions":[],"examples":[{"id":"support-inbox-example","title":"support-inbox Example","mode":"spec","language":"yaml","code":"version: \"2.0\"\npages:\n - id: support-inbox\n path: /\n title: Support Inbox\n state:\n selectedId: \"t-1\"\n blocks:\n - type: PageLayout\n props:\n title: Helpdesk\n slots:\n headerActions:\n - type: Button\n props:\n label: \"Compose\"\n size: sm\n children:\n - type: StatGrid\n props:\n cols: \"4\"\n items:\n - label: Open\n value: \"24\"\n - label: Waiting\n value: \"8\"\n - label: Resolved today\n value: \"57\"\n change: \"+12\"\n trend: up\n - label: First reply\n value: \"12m\"\n change: \"-3m\"\n trend: down\n - type: SplitMasterDetail\n props:\n selectKey: selectedId\n items:\n - id: t-1\n title: \"Can't reset my password\"\n subtitle: \"Jane Cooper · 4m ago\"\n - id: t-2\n title: \"Billing charged twice\"\n subtitle: \"Wade Warren · 22m ago\"\n - id: t-3\n title: \"Feature request: dark mode\"\n subtitle: \"Esther Howard · 1h ago\"\n - id: t-4\n title: \"API returns 500 on /orders\"\n subtitle: \"Cameron W. · 2h ago\"\n slots:\n detail:\n - type: Card\n props:\n title: \"Can't reset my password\"\n description: \"Jane Cooper · #t-1 · Open\"\n slots:\n actions:\n - type: BadgeGroup\n props:\n items:\n - label: Urgent\n tone: error\n - label: Auth\n tone: info\n children:\n - type: KeyValueGrid\n props:\n cols: \"2\"\n items:\n - key: Customer\n value: Jane Cooper\n - key: Plan\n value: Pro\n - key: Channel\n value: Email\n - key: Assignee\n value: You\n - type: Divider\n - type: Markdown\n props:\n content: |\n Hi team — the **reset password** link in my email returns\n *\"token expired\"* even seconds after I request it. I've tried\n three times on Chrome and Safari.\n - type: Form\n children:\n - type: \"Form.TextArea\"\n props:\n name: reply\n label: Reply\n rows: 3\n placeholder: \"Write a response…\"\n - type: \"Form.Submit\"\n props:\n label: Send reply\n","dependencies":["template:support-inbox"]}]},"example:team-directory-example":{"resourceId":"example:team-directory-example","title":{"zh":"team-directory Example","en":"team-directory Example"},"docs":{"zh":"# team-directory Example\n\nTeam Directory\n\n","en":"# team-directory Example\n\nTeam Directory\n\n"},"distributions":[],"examples":[{"id":"team-directory-example","title":"team-directory Example","mode":"spec","language":"yaml","code":"version: \"2.0\"\npages:\n - id: team-directory\n path: /\n title: Team Directory\n state:\n search: \"\"\n blocks:\n - type: PageLayout\n props:\n title: People\n slots:\n headerActions:\n - type: Button\n props:\n label: \"+ Invite\"\n size: sm\n children:\n - type: Box\n props:\n className: \"flex items-end justify-between gap-4 mb-3 border-b border-border pb-3\"\n children:\n - type: Box\n children:\n - type: Heading\n props:\n level: 2\n text: Team directory\n - type: Paragraph\n props:\n size: sm\n muted: true\n text: \"Demo roster · 6 people shown · live headcount n/a\"\n - type: BadgeGroup\n props:\n items:\n - label: 6 in this table\n tone: info\n - label: Directory source offline\n tone: warning\n - type: StatGrid\n props:\n cols: \"3\"\n items:\n - label: Shown here\n value: \"6\"\n description: \"sample rows\"\n - label: Departments\n value: \"4\"\n description: \"Platform · AI · Flight · Design\"\n - label: Live headcount\n value: \"n/a\"\n description: \"HRIS not connected\"\n - type: Card\n props:\n title: People\n description: \"Filter writes to state.search · empty copy is wired\"\n className: \"rounded-none border border-border shadow-none\"\n children:\n - type: SearchableTable\n props:\n searchKey: search\n placeholder: \"Search people…\"\n emptyText: No people match this search.\n columns:\n - key: name\n label: Name\n - key: role\n label: Role\n - key: dept\n label: Department\n - key: location\n label: Location\n rows:\n - name: Ada Lovelace\n role: Staff Engineer\n dept: Platform\n location: Lisbon\n - name: Grace Hopper\n role: Eng Manager\n dept: Platform\n location: Remote\n - name: Alan Turing\n role: Researcher\n dept: AI\n location: London\n - name: Katherine Johnson\n role: Data Scientist\n dept: AI\n location: NYC\n - name: Margaret Hamilton\n role: Principal Engineer\n dept: Flight Systems\n location: Boston\n - name: Hedy Lamarr\n role: Product Designer\n dept: Design\n location: Vienna\n","dependencies":["template:team-directory"]}]},"template:admin-dashboard":{"resourceId":"template:admin-dashboard","title":{"zh":"admin-dashboard","en":"admin-dashboard"},"docs":{"zh":"# admin-dashboard\n\nAcme Admin\n\n","en":"# admin-dashboard\n\nAcme Admin\n\n"},"distributions":[{"channel":"shadcn","name":"admin-dashboard","version":"0.16.0","availability":"source"},{"channel":"spec","name":"admin-dashboard","version":"0.16.0","availability":"source"}],"examples":[{"id":"admin-dashboard","title":"admin-dashboard","mode":"spec","language":"yaml","code":"version: \"2.0\"\npages:\n - id: admin-dashboard\n path: /\n title: Acme Admin\n blocks:\n - type: PageLayout\n template: app-shell-sidebar\n props:\n title: Acme Console\n slots:\n headerActions:\n - type: Button\n props:\n label: New report\n size: sm\n variant: outline\n sidebar:\n - type: PageSiderMenu\n props:\n title: Workspace\n children:\n - type: MenuLink\n props:\n label: Overview\n href: \"#\"\n icon: \"▦\"\n active: true\n - type: MenuLink\n props:\n label: Customers\n href: \"#\"\n icon: \"◍\"\n badge: \"n/a\"\n - type: MenuLink\n props:\n label: Orders\n href: \"#\"\n icon: \"▤\"\n badge: \"38\"\n - type: MenuLink\n props:\n label: Analytics\n href: \"#\"\n icon: \"◔\"\n - type: MenuLink\n props:\n label: Settings\n href: \"#\"\n icon: \"⚙\"\n children:\n - type: Box\n props:\n className: \"flex items-end justify-between gap-4 mb-3 border-b border-border pb-3\"\n children:\n - type: Box\n children:\n - type: Heading\n props:\n level: 2\n text: Overview\n - type: Paragraph\n props:\n size: sm\n muted: true\n text: \"Demo window · last 30 days · Linear-like density\"\n - type: BadgeGroup\n props:\n items:\n - label: 3 failing checks\n tone: error\n - label: Queue healthy\n tone: success\n - type: Toast\n props:\n level: warning\n title: Status first\n message: \"Payment retry is failing for 3 orders. Sample data below — unknown live counts stay n/a.\"\n - type: StatGrid\n props:\n cols: \"4\"\n items:\n - label: Failing checks\n value: \"3\"\n change: \"needs triage\"\n trend: down\n - label: Open orders\n value: \"38\"\n description: \"in the demo table\"\n - label: Revenue (demo)\n value: \"$48,210\"\n change: \"+12.5%\"\n trend: up\n - label: Live visitors\n value: \"n/a\"\n description: \"source offline\"\n - type: Grid\n props:\n cols: \"3\"\n gap: lg\n children:\n - type: Box\n props:\n className: \"col-span-2\"\n children:\n - type: Card\n props:\n title: Revenue trend\n description: \"Demo series · hairline card, no drop shadow\"\n children:\n - type: TrendChart\n props:\n height: 200\n labels: [\"Jan\", \"Feb\", \"Mar\", \"Apr\", \"May\", \"Jun\"]\n series:\n - name: MRR\n area: true\n points: [18, 24, 22, 30, 38, 48]\n - name: Target\n points: [20, 25, 30, 32, 40, 44]\n - type: Card\n props:\n title: Pipeline\n children:\n - type: TimelineList\n props:\n items:\n - time: \"09:24\"\n title: \"Order #4821 shipped\"\n status: ok\n - time: \"08:50\"\n title: \"Refund requested\"\n desc: \"Customer #221\"\n status: warn\n - time: \"08:12\"\n title: \"Payment failed\"\n desc: \"Retrying in 1h\"\n status: error\n - time: \"07:40\"\n title: \"New signup\"\n status: ok\n - type: Card\n props:\n title: Recent orders\n description: \"Empty state is wired if the demo rows are cleared\"\n slots:\n actions:\n - type: Button\n props:\n label: Export\n variant: outline\n size: sm\n children:\n - type: Table\n props:\n emptyText: No orders in this window.\n columns:\n - key: id\n label: Order\n - key: customer\n label: Customer\n - key: total\n label: Total\n align: right\n - key: status\n label: Status\n rows:\n - id: \"#4821\"\n customer: Jane Cooper\n total: \"$210.00\"\n status: Shipped\n - id: \"#4820\"\n customer: Wade Warren\n total: \"$84.20\"\n status: Processing\n - id: \"#4819\"\n customer: Esther Howard\n total: \"$1,420.00\"\n status: Paid\n - id: \"#4818\"\n customer: Cameron W.\n total: \"$32.00\"\n status: Refunded\n","dependencies":["component:badge-group","component:box","component:button","component:card","component:grid","component:heading","component:menu-link","component:page-layout","component:page-sider-menu","component:paragraph","component:stat-grid","component:table","component:timeline-list","component:toast","component:trend-chart","template:app-shell-sidebar"]}]},"template:ai-chat":{"resourceId":"template:ai-chat","title":{"zh":"ai-chat","en":"ai-chat"},"docs":{"zh":"# ai-chat\n\nNova — Chat\n\n","en":"# ai-chat\n\nNova — Chat\n\n"},"distributions":[{"channel":"shadcn","name":"ai-chat","version":"0.16.0","availability":"source"},{"channel":"spec","name":"ai-chat","version":"0.16.0","availability":"source"}],"examples":[{"id":"ai-chat","title":"ai-chat","mode":"spec","language":"yaml","code":"version: '2.0'\nmenus:\n items:\n - key: chat\n label: Chat\n path: /\n icon: ◫\n - key: history\n label: History\n path: /history\n icon: ▤\n - key: usage\n label: Usage\n path: /usage\n icon: ◔\n - key: settings\n label: Settings\n path: /settings\n icon: ⚙\npages:\n- id: chat\n path: /\n title: Nova — Chat\n state:\n selectedId: c-2\n blocks:\n - type: PageLayout\n props:\n title: Nova AI\n slots:\n headerActions:\n - type: Button\n props:\n label: + New chat\n size: sm\n children:\n - type: SplitMasterDetail\n props:\n selectKey: selectedId\n items:\n - id: c-1\n title: Refactor a React hook\n subtitle: GPT-4o · 2m ago\n - id: c-2\n title: Explain the chain rule\n subtitle: Claude 3.5 · 18m ago\n - id: c-3\n title: Draft a launch email\n subtitle: GPT-4o · 1h ago\n - id: c-4\n title: SQL window functions\n subtitle: Claude 3.5 · yesterday\n slots:\n detail:\n - type: Box\n props:\n className: \"flex min-h-[28rem] flex-col border border-border\"\n children:\n - type: Box\n props:\n className: \"flex items-center justify-between border-b border-border px-4 py-3\"\n children:\n - type: Box\n children:\n - type: Heading\n props:\n level: 3\n text: Explain the chain rule\n - type: Paragraph\n props:\n size: sm\n muted: true\n text: Claude 3.5 Sonnet · sample thread\n - type: BadgeGroup\n props:\n items:\n - label: temp 0.4\n tone: info\n - label: 1.2k tokens\n tone: default\n - type: Box\n props:\n className: \"flex flex-1 flex-col gap-3 px-4 py-4\"\n children:\n - type: Box\n props:\n className: \"max-w-[85%] self-end border border-border px-3 py-2\"\n children:\n - type: Paragraph\n props:\n size: sm\n muted: true\n text: You\n - type: Markdown\n props:\n content: Can you explain the **chain rule** in calculus with a quick example?\n - type: Box\n props:\n className: \"max-w-[85%] self-start bg-muted/40 px-3 py-2\"\n children:\n - type: Paragraph\n props:\n size: sm\n muted: true\n text: Nova\n - type: Markdown\n props:\n content: 'The **chain rule** differentiates a *composition* of functions.\n\n If `y = f(g(x))`, then `dy/dx = f''(g(x)) · g''(x)`.\n\n\n **Example** — for `y = (3x + 1)^5`:\n\n\n - Outer: `u^5` → derivative `5u^4`\n\n - Inner: `3x + 1` → derivative `3`\n\n\n So `dy/dx = 5(3x + 1)^4 · 3 = 15(3x + 1)^4`.\n\n '\n - type: Box\n props:\n className: \"border-t border-border px-4 py-3\"\n children:\n - type: Form\n children:\n - type: Form.TextArea\n props:\n name: message\n label: Message\n rows: 2\n placeholder: Ask a follow-up…\n - type: Form.Submit\n props:\n label: Send\n template: app-shell-sidebar\n- id: history\n path: /history\n title: Nova — History\n blocks:\n - type: PageLayout\n props:\n title: Nova AI\n slots:\n headerActions:\n - type: Button\n props:\n label: Clear all\n size: sm\n variant: outline\n children:\n - type: Box\n props:\n className: mb-2\n children:\n - type: Heading\n props:\n level: 2\n text: Conversation history\n - type: Paragraph\n props:\n size: sm\n muted: true\n text: 128 conversations · searchable across titles and models\n - type: Card\n props:\n title: All conversations\n children:\n - type: SearchableTable\n props:\n searchKey: chatSearch\n placeholder: Search conversations…\n emptyText: No conversations match this search.\n columns:\n - key: title\n label: Title\n - key: model\n label: Model\n - key: messages\n label: Messages\n align: center\n - key: tokens\n label: Tokens\n align: right\n - key: updated\n label: Updated\n rows:\n - title: Refactor a React hook\n model: GPT-4o\n messages: '8'\n tokens: 3,420\n updated: 2m ago\n - title: Explain the chain rule\n model: Claude 3.5\n messages: '2'\n tokens: 1,210\n updated: 18m ago\n - title: Draft a launch email\n model: GPT-4o\n messages: '6'\n tokens: 2,980\n updated: 1h ago\n - title: SQL window functions\n model: Claude 3.5\n messages: '12'\n tokens: 5,640\n updated: yesterday\n - title: Summarize a research paper\n model: GPT-4o\n messages: '4'\n tokens: 8,120\n updated: 2 days ago\n - title: Write a cover letter\n model: Claude 3.5\n messages: '5'\n tokens: 2,310\n updated: 3 days ago\n template: app-shell-sidebar\n- id: settings\n path: /settings\n title: Nova — Settings\n blocks:\n - type: PageLayout\n props:\n title: Nova AI\n children:\n - type: Box\n props:\n className: mb-2\n children:\n - type: Heading\n props:\n level: 2\n text: Settings\n - type: Paragraph\n props:\n size: sm\n muted: true\n text: Configure the default model, generation behavior, and API access.\n - type: Tabs\n props:\n tabs:\n - Model\n - API keys\n - Advanced\n children:\n - type: Card\n props:\n title: Default model\n description: Applied to new conversations\n children:\n - type: Form\n children:\n - type: Form.Select\n props:\n name: model\n label: Model\n options:\n - value: gpt-4o\n label: GPT-4o\n - value: claude-3-5-sonnet\n label: Claude 3.5 Sonnet\n - value: llama-3-70b\n label: Llama 3 70B\n - type: Form.Input\n props:\n name: temperature\n label: Temperature\n type: number\n placeholder: '0.4'\n helpText: 0 = deterministic, 1 = creative.\n - type: Form.Input\n props:\n name: maxTokens\n label: Max output tokens\n type: number\n placeholder: '2048'\n - type: Form.Checkbox\n props:\n name: streaming\n label: Stream responses\n description: Show tokens as they are generated.\n - type: Form.Submit\n props:\n label: Save model settings\n - type: Card\n props:\n title: API keys\n description: Keys are encrypted at rest\n children:\n - type: Form\n children:\n - type: Form.Input\n props:\n name: openaiKey\n label: OpenAI API key\n type: password\n placeholder: sk-…\n - type: Form.Input\n props:\n name: anthropicKey\n label: Anthropic API key\n type: password\n placeholder: sk-ant-…\n - type: Form.Submit\n props:\n label: Save keys\n - type: Card\n props:\n title: Advanced\n description: System behavior\n children:\n - type: Form\n children:\n - type: Form.TextArea\n props:\n name: systemPrompt\n label: System prompt\n rows: 4\n placeholder: You are a concise, helpful assistant…\n - type: Form.Checkbox\n props:\n name: telemetry\n label: Share anonymous usage data\n description: Helps improve model routing.\n - type: Form.Submit\n props:\n label: Save advanced settings\n template: app-shell-sidebar\n- id: usage\n path: /usage\n title: Nova — Usage\n blocks:\n - type: PageLayout\n props:\n title: Nova AI\n slots:\n headerActions:\n - type: Button\n props:\n label: Download CSV\n size: sm\n variant: outline\n children:\n - type: Box\n props:\n className: mb-2\n children:\n - type: Heading\n props:\n level: 2\n text: Usage & billing\n - type: Paragraph\n props:\n size: sm\n muted: true\n text: Current cycle · resets on the 1st\n - type: StatGrid\n props:\n cols: '4'\n items:\n - label: Tokens this month\n value: 1.84M\n change: +12%\n trend: up\n - label: Requests\n value: 3,420\n change: +8%\n trend: up\n - label: Est. cost\n value: $42.18\n change: +$5.10\n trend: up\n - label: Avg. latency\n value: 1.3s\n change: -0.2s\n trend: down\n - type: Card\n props:\n title: Token usage\n description: Daily tokens by model · last 7 days\n children:\n - type: TrendChart\n props:\n height: 220\n labels:\n - Mon\n - Tue\n - Wed\n - Thu\n - Fri\n - Sat\n - Sun\n series:\n - name: GPT-4o\n area: true\n points:\n - 180\n - 240\n - 210\n - 320\n - 290\n - 150\n - 120\n - name: Claude 3.5\n points:\n - 120\n - 160\n - 140\n - 200\n - 220\n - 90\n - 80\n - type: Card\n props:\n title: Usage by model\n children:\n - type: Table\n props:\n columns:\n - key: model\n label: Model\n - key: requests\n label: Requests\n align: center\n - key: tokens\n label: Tokens\n align: right\n - key: cost\n label: Cost\n align: right\n rows:\n - model: GPT-4o\n requests: 1,980\n tokens: 1.12M\n cost: $28.40\n - model: Claude 3.5 Sonnet\n requests: 1,210\n tokens: 0.61M\n cost: $12.18\n - model: Llama 3 70B\n requests: '230'\n tokens: 0.11M\n cost: $1.60\n template: app-shell-sidebar\n","dependencies":["component:badge-group","component:box","component:button","component:card","component:form","component:form-checkbox","component:form-input","component:form-select","component:form-submit","component:form-text-area","component:heading","component:markdown","component:page-layout","component:paragraph","component:searchable-table","component:split-master-detail","component:stat-grid","component:table","component:tabs","component:trend-chart","template:app-shell-sidebar"]}]},"template:analytics-dashboard":{"resourceId":"template:analytics-dashboard","title":{"zh":"analytics-dashboard","en":"analytics-dashboard"},"docs":{"zh":"# analytics-dashboard\n\nAnalytics\n\n","en":"# analytics-dashboard\n\nAnalytics\n\n"},"distributions":[{"channel":"shadcn","name":"analytics-dashboard","version":"0.16.0","availability":"source"},{"channel":"spec","name":"analytics-dashboard","version":"0.16.0","availability":"source"}],"examples":[{"id":"analytics-dashboard","title":"analytics-dashboard","mode":"spec","language":"yaml","code":"version: \"2.0\"\npages:\n - id: analytics-dashboard\n path: /\n title: Analytics\n blocks:\n - type: PageLayout\n props:\n title: Insight\n slots:\n headerActions:\n - type: Button\n props:\n label: Last 7 days\n variant: outline\n size: sm\n - type: Button\n props:\n label: Share\n variant: ghost\n size: sm\n children:\n - type: Box\n props:\n className: \"flex items-end justify-between gap-4 mb-3 border-b border-border pb-3\"\n children:\n - type: Box\n children:\n - type: Heading\n props:\n level: 2\n text: Traffic\n - type: Paragraph\n props:\n size: sm\n muted: true\n text: \"Demo property · Linear density · bounce is the status signal\"\n - type: BadgeGroup\n props:\n items:\n - label: Bounce 38.1%\n tone: warning\n - label: Source lag\n tone: info\n - type: StatGrid\n props:\n cols: \"4\"\n items:\n - label: Bounce rate\n value: \"38.1%\"\n change: \"-1.2%\"\n trend: down\n - label: Visitors (demo)\n value: \"84.2k\"\n change: \"+9.4%\"\n trend: up\n - label: Page views\n value: \"312k\"\n change: \"+12.0%\"\n trend: up\n - label: Live now\n value: \"n/a\"\n description: \"stream disconnected\"\n - type: Grid\n props:\n cols: \"3\"\n gap: lg\n children:\n - type: Box\n props:\n className: \"col-span-2\"\n children:\n - type: Card\n props:\n title: Traffic over time\n description: \"Hairline panel · sample week\"\n children:\n - type: TrendChart\n props:\n height: 220\n labels: [\"Mon\", \"Tue\", \"Wed\", \"Thu\", \"Fri\", \"Sat\", \"Sun\"]\n series:\n - name: Visitors\n area: true\n points: [12, 18, 15, 22, 28, 19, 24]\n - name: Conversions\n points: [2, 3, 3, 5, 6, 4, 5]\n - type: Card\n props:\n title: Top sources\n children:\n - type: KeyValueGrid\n props:\n cols: \"1\"\n items:\n - key: Organic search\n value: \"42%\"\n - key: Direct\n value: \"28%\"\n - key: Referral\n value: \"18%\"\n - key: Social\n value: \"12%\"\n - type: Grid\n props:\n cols: \"2\"\n gap: lg\n children:\n - type: Card\n props:\n title: Engagement matrix\n description: \"Channel × day intensity\"\n children:\n - type: Matrix\n props:\n showValues: false\n rows: [\"Search\", \"Direct\", \"Social\"]\n cols: [\"Mon\", \"Tue\", \"Wed\", \"Thu\", \"Fri\"]\n cells:\n - [0.2, 0.4, 0.5, 0.8, 1.0]\n - [0.3, 0.3, 0.4, 0.6, 0.7]\n - [0.1, 0.2, 0.6, 0.4, 0.9]\n - type: Card\n props:\n title: Top pages\n description: \"Empty copy is ready if the table is filtered to zero\"\n children:\n - type: Table\n props:\n emptyText: No pages matched this window.\n columns:\n - key: path\n label: Page\n - key: views\n label: Views\n align: right\n - key: rate\n label: Conv.\n align: right\n rows:\n - path: \"/\"\n views: \"84,210\"\n rate: \"4.2%\"\n - path: \"/pricing\"\n views: \"31,002\"\n rate: \"8.1%\"\n - path: \"/blog\"\n views: \"22,540\"\n rate: \"1.9%\"\n - path: \"/docs\"\n views: \"18,330\"\n rate: \"2.4%\"\n","dependencies":["component:badge-group","component:box","component:button","component:card","component:grid","component:heading","component:key-value-grid","component:matrix","component:page-layout","component:paragraph","component:stat-grid","component:table","component:trend-chart"]}]},"template:app-shell-floating":{"resourceId":"template:app-shell-floating","title":{"zh":"app-shell-floating","en":"app-shell-floating"},"docs":{"zh":"# app-shell-floating\n\nFloating App\n\n","en":"# app-shell-floating\n\nFloating App\n\n"},"distributions":[{"channel":"shadcn","name":"app-shell-floating","version":"0.16.0","availability":"source"},{"channel":"spec","name":"app-shell-floating","version":"0.16.0","availability":"source"}],"examples":[{"id":"app-shell-floating","title":"app-shell-floating","mode":"spec","language":"yaml","code":"version: \"2.0\"\npages:\n - id: app-shell-floating\n path: /\n title: Floating App\n blocks:\n - type: PageLayout\n props:\n title: Floating App\n variant: floating\n collapsible: none\n slots:\n sidebar:\n - type: PageSiderMenu\n props:\n title: Workspace\n children:\n - type: MenuGroup\n props:\n title: Main\n children:\n - type: MenuLink\n props:\n label: Home\n href: \"#\"\n icon: \"▦\"\n active: true\n - type: MenuLink\n props:\n label: Search\n href: \"#\"\n icon: \"◍\"\n children:\n - type: Heading\n props:\n level: 2\n text: Overview\n - type: Paragraph\n props:\n size: sm\n muted: true\n text: \"App shell placeholder. Replace main content in Builder.\"\n","dependencies":["component:heading","component:menu-group","component:menu-link","component:page-layout","component:page-sider-menu","component:paragraph"]}]},"template:app-shell-icon-rail":{"resourceId":"template:app-shell-icon-rail","title":{"zh":"app-shell-icon-rail","en":"app-shell-icon-rail"},"docs":{"zh":"# app-shell-icon-rail\n\nIcon Rail\n\n","en":"# app-shell-icon-rail\n\nIcon Rail\n\n"},"distributions":[{"channel":"shadcn","name":"app-shell-icon-rail","version":"0.16.0","availability":"source"},{"channel":"spec","name":"app-shell-icon-rail","version":"0.16.0","availability":"source"}],"examples":[{"id":"app-shell-icon-rail","title":"app-shell-icon-rail","mode":"spec","language":"yaml","code":"version: \"2.0\"\npages:\n - id: app-shell-icon-rail\n path: /\n title: Icon Rail\n blocks:\n - type: PageLayout\n props:\n title: Icon Rail\n variant: sidebar\n collapsible: icon\n slots:\n sidebar:\n - type: PageSiderMenu\n props:\n title: Rail\n children:\n - type: MenuGroup\n props:\n title: Main\n children:\n - type: MenuLink\n props:\n label: Home\n href: \"#\"\n icon: \"▦\"\n active: true\n - type: MenuLink\n props:\n label: Inbox\n href: \"#\"\n icon: \"▤\"\n children:\n - type: Heading\n props:\n level: 2\n text: Overview\n - type: Paragraph\n props:\n size: sm\n muted: true\n text: \"App shell placeholder. Replace main content in Builder.\"\n","dependencies":["component:heading","component:menu-group","component:menu-link","component:page-layout","component:page-sider-menu","component:paragraph"]}]},"template:app-shell-inset":{"resourceId":"template:app-shell-inset","title":{"zh":"app-shell-inset","en":"app-shell-inset"},"docs":{"zh":"# app-shell-inset\n\nInset App\n\n","en":"# app-shell-inset\n\nInset App\n\n"},"distributions":[{"channel":"shadcn","name":"app-shell-inset","version":"0.16.0","availability":"source"},{"channel":"spec","name":"app-shell-inset","version":"0.16.0","availability":"source"}],"examples":[{"id":"app-shell-inset","title":"app-shell-inset","mode":"spec","language":"yaml","code":"version: \"2.0\"\npages:\n - id: app-shell-inset\n path: /\n title: Inset App\n blocks:\n - type: PageLayout\n props:\n title: Inset App\n variant: inset\n collapsible: none\n slots:\n sidebar:\n - type: PageSiderMenu\n props:\n title: Workspace\n children:\n - type: MenuGroup\n props:\n title: Platform\n children:\n - type: MenuLink\n props:\n label: Dashboard\n href: \"#\"\n icon: \"▦\"\n active: true\n - type: MenuLink\n props:\n label: Reports\n href: \"#\"\n icon: \"◔\"\n children:\n - type: Heading\n props:\n level: 2\n text: Overview\n - type: Paragraph\n props:\n size: sm\n muted: true\n text: \"App shell placeholder. Replace main content in Builder.\"\n","dependencies":["component:heading","component:menu-group","component:menu-link","component:page-layout","component:page-sider-menu","component:paragraph"]}]},"template:app-shell-settings":{"resourceId":"template:app-shell-settings","title":{"zh":"app-shell-settings","en":"app-shell-settings"},"docs":{"zh":"# app-shell-settings\n\nSettings\n\n","en":"# app-shell-settings\n\nSettings\n\n"},"distributions":[{"channel":"shadcn","name":"app-shell-settings","version":"0.16.0","availability":"source"},{"channel":"spec","name":"app-shell-settings","version":"0.16.0","availability":"source"}],"examples":[{"id":"app-shell-settings","title":"app-shell-settings","mode":"spec","language":"yaml","code":"version: \"2.0\"\npages:\n - id: app-shell-settings\n path: /\n title: Settings\n blocks:\n - type: PageLayout\n props:\n title: Settings\n variant: sidebar\n collapsible: none\n slots:\n sidebar:\n - type: PageSiderMenu\n props:\n title: Account\n children:\n - type: MenuGroup\n props:\n title: Account\n children:\n - type: MenuLink\n props:\n label: Profile\n href: \"#\"\n icon: \"◍\"\n active: true\n - type: MenuLink\n props:\n label: Security\n href: \"#\"\n icon: \"⚙\"\n - type: MenuGroup\n props:\n title: Preferences\n children:\n - type: MenuLink\n props:\n label: Notifications\n href: \"#\"\n icon: \"◔\"\n - type: MenuLink\n props:\n label: Appearance\n href: \"#\"\n icon: \"▦\"\n children:\n - type: Heading\n props:\n level: 2\n text: Profile\n - type: Paragraph\n props:\n size: sm\n muted: true\n text: \"App shell placeholder. Replace main content in Builder.\"\n","dependencies":["component:heading","component:menu-group","component:menu-link","component:page-layout","component:page-sider-menu","component:paragraph"]}]},"template:app-shell-sidebar":{"resourceId":"template:app-shell-sidebar","title":{"zh":"app-shell-sidebar","en":"app-shell-sidebar"},"docs":{"zh":"# app-shell-sidebar\n\nApp\n\n","en":"# app-shell-sidebar\n\nApp\n\n"},"distributions":[{"channel":"shadcn","name":"app-shell-sidebar","version":"0.16.0","availability":"source"},{"channel":"spec","name":"app-shell-sidebar","version":"0.16.0","availability":"source"}],"examples":[{"id":"app-shell-sidebar","title":"app-shell-sidebar","mode":"spec","language":"yaml","code":"version: \"2.0\"\npages:\n - id: app-shell-sidebar\n path: /\n title: App\n blocks:\n - type: PageLayout\n props:\n title: App\n variant: sidebar\n collapsible: none\n slots:\n sidebar:\n - type: PageSiderMenu\n props:\n title: Workspace\n children:\n - type: MenuGroup\n props:\n title: Main\n children:\n - type: MenuLink\n props:\n label: Overview\n href: \"#\"\n icon: \"▦\"\n active: true\n - type: MenuLink\n props:\n label: Customers\n href: \"#\"\n icon: \"◍\"\n - type: MenuLink\n props:\n label: Settings\n href: \"#\"\n icon: \"⚙\"\n children:\n - type: Heading\n props:\n level: 2\n text: Overview\n - type: Paragraph\n props:\n size: sm\n muted: true\n text: \"App shell placeholder. Replace main content in Builder.\"\n","dependencies":["component:heading","component:menu-group","component:menu-link","component:page-layout","component:page-sider-menu","component:paragraph"]}]},"template:app-shell-workspace":{"resourceId":"template:app-shell-workspace","title":{"zh":"app-shell-workspace","en":"app-shell-workspace"},"docs":{"zh":"# app-shell-workspace\n\nWorkspace\n\n","en":"# app-shell-workspace\n\nWorkspace\n\n"},"distributions":[{"channel":"shadcn","name":"app-shell-workspace","version":"0.16.0","availability":"source"},{"channel":"spec","name":"app-shell-workspace","version":"0.16.0","availability":"source"}],"examples":[{"id":"app-shell-workspace","title":"app-shell-workspace","mode":"spec","language":"yaml","code":"version: \"2.0\"\npages:\n - id: app-shell-workspace\n path: /\n title: Workspace\n blocks:\n - type: PageLayout\n props:\n title: Workspace\n variant: sidebar\n collapsible: none\n slots:\n sidebar:\n - type: PageSiderMenu\n props:\n title: Acme\n slots:\n header:\n - type: Heading\n props:\n level: 4\n text: Acme\n footer:\n - type: Paragraph\n props:\n size: sm\n muted: true\n text: Ada\n children:\n - type: MenuGroup\n props:\n title: Workspace\n children:\n - type: MenuLink\n props:\n label: Projects\n href: \"#\"\n icon: \"▦\"\n active: true\n - type: MenuLink\n props:\n label: Members\n href: \"#\"\n icon: \"◍\"\n children:\n - type: Heading\n props:\n level: 2\n text: Overview\n - type: Paragraph\n props:\n size: sm\n muted: true\n text: \"App shell placeholder. Replace main content in Builder.\"\n","dependencies":["component:heading","component:menu-group","component:menu-link","component:page-layout","component:page-sider-menu","component:paragraph"]}]},"template:auth":{"resourceId":"template:auth","title":{"zh":"auth","en":"auth"},"docs":{"zh":"# auth\n\nSign in\n\n","en":"# auth\n\nSign in\n\n"},"distributions":[{"channel":"shadcn","name":"auth","version":"0.16.0","availability":"source"},{"channel":"spec","name":"auth","version":"0.16.0","availability":"source"}],"examples":[{"id":"auth","title":"auth","mode":"spec","language":"yaml","code":"version: \"2.0\"\npages:\n - id: auth-login\n path: /\n title: Sign in\n blocks:\n - type: Box\n props:\n className: \"min-h-screen flex items-center justify-center p-6 bg-background\"\n children:\n - type: Box\n props:\n className: \"w-full max-w-sm\"\n children:\n - type: Box\n props:\n className: \"flex flex-col items-start gap-1 mb-6\"\n children:\n - type: Paragraph\n props:\n size: sm\n muted: true\n text: \"Northwind\"\n - type: Heading\n props:\n level: 2\n text: \"Sign in\"\n - type: Paragraph\n props:\n size: sm\n muted: true\n text: \"Work email. No gradient chrome.\"\n - type: Card\n props:\n className: \"rounded-none border border-border shadow-none\"\n children:\n - type: Form\n props:\n label: \"\"\n children:\n - type: \"Form.Input\"\n props:\n name: email\n label: Email\n type: email\n placeholder: you@company.com\n required: true\n - type: \"Form.Input\"\n props:\n name: password\n label: Password\n type: password\n placeholder: \"••••••••\"\n required: true\n - type: Box\n props:\n className: \"flex items-center justify-between\"\n children:\n - type: \"Form.Checkbox\"\n props:\n name: remember\n label: Remember me\n - type: Link\n props:\n label: Forgot password?\n href: \"#\"\n variant: muted\n - type: \"Form.Submit\"\n props:\n label: Sign in\n full: true\n - type: Divider\n - type: Button\n props:\n label: \"Continue with Google\"\n variant: outline\n full: true\n - type: Box\n props:\n className: \"flex justify-start gap-1 mt-5 text-sm\"\n children:\n - type: Paragraph\n props:\n size: sm\n muted: true\n text: \"Don't have an account?\"\n - type: Link\n props:\n label: \"Sign up\"\n href: \"#\"\n","dependencies":["component:box","component:button","component:card","component:divider","component:form","component:form-checkbox","component:form-input","component:form-submit","component:heading","component:link","component:paragraph"]}]},"template:blog":{"resourceId":"template:blog","title":{"zh":"blog","en":"blog"},"docs":{"zh":"# blog\n\nThe Northwind Journal\n\n","en":"# blog\n\nThe Northwind Journal\n\n"},"distributions":[{"channel":"shadcn","name":"blog","version":"0.16.0","availability":"source"},{"channel":"spec","name":"blog","version":"0.16.0","availability":"source"}],"examples":[{"id":"blog","title":"blog","mode":"spec","language":"yaml","code":"version: \"2.0\"\npages:\n - id: blog\n path: /\n title: The Northwind Journal\n blocks:\n - type: PageLayout\n props:\n title: The Journal\n slots:\n headerActions:\n - type: Link\n props:\n label: Subscribe\n href: \"#\"\n variant: button\n children:\n - type: Box\n props:\n className: \"flex flex-col gap-2 py-10 border-b border-border mb-8\"\n children:\n - type: BadgeGroup\n props:\n items:\n - label: Engineering\n tone: info\n - type: Heading\n props:\n level: 1\n text: \"Building a local-first sync engine\"\n - type: Paragraph\n props:\n muted: true\n text: \"By Ada Lovelace · March 14, 2026 · 8 min read\"\n - type: Grid\n props:\n cols: \"3\"\n gap: lg\n children:\n # ── Article body ───────────────────────────────────\n - type: Box\n props:\n className: \"col-span-2\"\n children:\n - type: Markdown\n props:\n content: |\n Most apps treat the network as the source of truth. We flipped that.\n\n ## Why local-first?\n\n When the **local store** is authoritative, the UI never waits on a\n round-trip. Reads and writes resolve instantly, then sync in the\n background. The result is an interface that feels *native* even on\n flaky connections.\n\n - Zero perceived latency on every interaction\n - Conflict-free merges via CRDTs\n - Offline by default, online when possible\n\n ## The hard part\n\n Ordering. We assign each mutation a `lamport` timestamp and replay\n them deterministically across clients. The merge function is pure,\n so two clients always converge on the same state.\n\n > The best sync is the sync you never notice.\n\n Next week we'll dig into how we keep the wire format under 100 bytes\n per mutation.\n # ── Sidebar ────────────────────────────────────────\n - type: Box\n props:\n className: \"flex flex-col gap-4\"\n children:\n - type: Card\n props:\n title: More posts\n children:\n - type: List\n props:\n divided: true\n children:\n - type: Link\n props:\n label: \"Designing for keyboard-first teams\"\n href: \"#\"\n - type: Link\n props:\n label: \"How we cut bundle size by 40%\"\n href: \"#\"\n - type: Link\n props:\n label: \"A field guide to CRDTs\"\n href: \"#\"\n - type: Card\n props:\n title: Newsletter\n description: \"One thoughtful email a week\"\n children:\n - type: Form\n children:\n - type: \"Form.Input\"\n props:\n name: email\n type: email\n placeholder: you@company.com\n - type: \"Form.Submit\"\n props:\n label: Subscribe\n full: true\n","dependencies":["component:badge-group","component:box","component:card","component:form","component:form-input","component:form-submit","component:grid","component:heading","component:link","component:list","component:markdown","component:page-layout","component:paragraph"]}]},"template:crm":{"resourceId":"template:crm","title":{"zh":"crm","en":"crm"},"docs":{"zh":"# crm\n\nPipeline — CRM\n\n","en":"# crm\n\nPipeline — CRM\n\n"},"distributions":[{"channel":"shadcn","name":"crm","version":"0.16.0","availability":"source"},{"channel":"spec","name":"crm","version":"0.16.0","availability":"source"}],"examples":[{"id":"crm","title":"crm","mode":"spec","language":"yaml","code":"version: \"2.0\"\npages:\n - id: crm\n path: /\n title: Pipeline — CRM\n blocks:\n - type: PageLayout\n template: app-shell-sidebar\n props:\n title: Relate CRM\n slots:\n headerActions:\n - type: Button\n props:\n label: \"+ Add lead\"\n size: sm\n sidebar:\n - type: PageSiderMenu\n props:\n title: Sales\n children:\n - type: MenuLink\n props:\n label: Pipeline\n href: \"#\"\n icon: \"◫\"\n active: true\n - type: MenuLink\n props:\n label: Contacts\n href: \"#\"\n icon: \"◍\"\n badge: \"5\"\n - type: MenuLink\n props:\n label: Deals\n href: \"#\"\n icon: \"◆\"\n - type: MenuLink\n props:\n label: Reports\n href: \"#\"\n icon: \"◔\"\n badge: \"n/a\"\n children:\n - type: Box\n props:\n className: \"flex items-end justify-between gap-4 mb-3 border-b border-border pb-3\"\n children:\n - type: Box\n children:\n - type: Heading\n props:\n level: 2\n text: Pipeline\n - type: Paragraph\n props:\n size: sm\n muted: true\n text: \"Demo workspace · sample deals, not live ARR\"\n - type: BadgeGroup\n props:\n items:\n - label: 1 hot deal\n tone: warning\n - label: Forecast n/a\n tone: info\n - type: Toast\n props:\n level: warning\n title: Status first\n message: \"Umbrella Inc is marked hot. Pipeline dollars below are demo labels — live forecast stays n/a.\"\n - type: StatGrid\n props:\n cols: \"3\"\n items:\n - label: Open pipeline (demo)\n value: \"$1.24M\"\n change: \"sample board\"\n trend: up\n - label: Win rate (demo)\n value: \"32%\"\n change: \"+3pt sample\"\n trend: up\n - label: Live forecast\n value: \"n/a\"\n description: \"CRM source offline\"\n - type: Card\n props:\n title: Pipeline by stage\n description: \"Five sample cards · hairline board\"\n className: \"rounded-none border border-border shadow-none\"\n children:\n - type: KanbanBoard\n props:\n columns:\n - id: lead\n title: Lead\n - id: qualified\n title: Qualified\n - id: proposal\n title: Proposal\n - id: won\n title: Won\n cards:\n - id: c1\n column: lead\n title: Globex Corp\n subtitle: \"$22,000 · demo\"\n badge: New\n - id: c2\n column: lead\n title: Initech\n subtitle: \"$8,400 · demo\"\n - id: c3\n column: qualified\n title: Umbrella Inc\n subtitle: \"$54,000 · demo\"\n badge: Hot\n - id: c4\n column: proposal\n title: Stark Industries\n subtitle: \"$140,000 · demo\"\n - id: c5\n column: won\n title: Wayne Enterprises\n subtitle: \"$96,000 · demo\"\n badge: Closed\n - type: Card\n props:\n title: Recent contacts\n description: \"Empty state is wired if the demo rows are cleared\"\n className: \"rounded-none border border-border shadow-none\"\n children:\n - type: Table\n props:\n emptyText: No contacts in this window.\n striped: true\n columns:\n - key: name\n label: Name\n - key: company\n label: Company\n - key: stage\n label: Stage\n - key: value\n label: Value\n align: right\n rows:\n - name: Marcus Webb\n company: Globex Corp\n stage: Lead\n value: \"$22,000\"\n - name: Lena Park\n company: Umbrella Inc\n stage: Qualified\n value: \"$54,000\"\n - name: Omar Haddad\n company: Stark Industries\n stage: Proposal\n value: \"$140,000\"\n","dependencies":["component:badge-group","component:box","component:button","component:card","component:heading","component:kanban-board","component:menu-link","component:page-layout","component:page-sider-menu","component:paragraph","component:stat-grid","component:table","component:toast","template:app-shell-sidebar"]}]},"template:ecommerce":{"resourceId":"template:ecommerce","title":{"zh":"ecommerce","en":"ecommerce"},"docs":{"zh":"# ecommerce\n\nShop — All products\n\n","en":"# ecommerce\n\nShop — All products\n\n"},"distributions":[{"channel":"shadcn","name":"ecommerce","version":"0.16.0","availability":"source"},{"channel":"spec","name":"ecommerce","version":"0.16.0","availability":"source"}],"examples":[{"id":"ecommerce","title":"ecommerce","mode":"spec","language":"yaml","code":"version: \"2.0\"\npages:\n - id: ecommerce\n path: /\n title: Shop — All products\n blocks:\n - type: PageLayout\n props:\n title: Atelier\n slots:\n headerActions:\n - type: Link\n props:\n label: \"Cart · 2\"\n href: \"#\"\n variant: button\n children:\n - type: Box\n props:\n className: \"flex items-end justify-between mb-4 border-b border-border pb-4\"\n children:\n - type: Box\n children:\n - type: Heading\n props:\n level: 2\n text: \"New arrivals\"\n - type: Paragraph\n props:\n size: sm\n muted: true\n text: \"Demo catalog · 4 sample SKUs · photos not attached\"\n - type: Box\n props:\n className: \"w-48\"\n children:\n - type: Form\n children:\n - type: \"Form.Select\"\n props:\n name: sort\n options:\n - value: featured\n label: Featured\n - value: price-asc\n label: \"Price: low to high\"\n - value: newest\n label: Newest\n - type: \"Form.Submit\"\n props:\n label: Apply\n variant: ghost\n - type: Grid\n props:\n cols: \"4\"\n responsive: true\n gap: lg\n children:\n - type: Card\n props:\n className: \"rounded-none border border-border shadow-none\"\n children:\n - type: Box\n props:\n className: \"h-40 -mx-6 -mt-6 mb-3 border-b border-border bg-muted/40 flex items-center justify-center\"\n children:\n - type: Paragraph\n props:\n size: sm\n muted: true\n text: \"No image\"\n - type: BadgeGroup\n props:\n items:\n - label: New\n tone: success\n - type: Heading\n props:\n level: 4\n text: \"Linen Overshirt\"\n - type: Stat\n props:\n value: \"$128\"\n description: \"sample price\"\n - type: Button\n props:\n label: Add to cart\n full: true\n - type: Card\n props:\n className: \"rounded-none border border-border shadow-none\"\n children:\n - type: Box\n props:\n className: \"h-40 -mx-6 -mt-6 mb-3 border-b border-border bg-muted/40 flex items-center justify-center\"\n children:\n - type: Paragraph\n props:\n size: sm\n muted: true\n text: \"No image\"\n - type: Heading\n props:\n level: 4\n text: \"Wool Trousers\"\n - type: Stat\n props:\n value: \"$96\"\n change: \"$120\"\n description: \"was $120 · sample\"\n - type: Button\n props:\n label: Add to cart\n full: true\n - type: Card\n props:\n className: \"rounded-none border border-border shadow-none\"\n children:\n - type: Box\n props:\n className: \"h-40 -mx-6 -mt-6 mb-3 border-b border-border bg-muted/40 flex items-center justify-center\"\n children:\n - type: Paragraph\n props:\n size: sm\n muted: true\n text: \"No image\"\n - type: Heading\n props:\n level: 4\n text: \"Canvas Tote\"\n - type: Stat\n props:\n value: \"$54\"\n description: \"sample price\"\n - type: Button\n props:\n label: Add to cart\n full: true\n - type: Card\n props:\n className: \"rounded-none border border-border shadow-none\"\n children:\n - type: Box\n props:\n className: \"h-40 -mx-6 -mt-6 mb-3 border-b border-border bg-muted/40 flex items-center justify-center\"\n children:\n - type: Paragraph\n props:\n size: sm\n muted: true\n text: \"No image\"\n - type: BadgeGroup\n props:\n items:\n - label: Low stock\n tone: warning\n - type: Heading\n props:\n level: 4\n text: \"Leather Belt\"\n - type: Stat\n props:\n value: \"$72\"\n description: \"2 left in demo\"\n - type: Button\n props:\n label: Add to cart\n full: true\n","dependencies":["component:badge-group","component:box","component:button","component:card","component:form","component:form-select","component:form-submit","component:grid","component:heading","component:link","component:page-layout","component:paragraph","component:stat"]}]},"template:lms":{"resourceId":"template:lms","title":{"zh":"lms","en":"lms"},"docs":{"zh":"# lms\n\nLearn — Dashboard\n\n","en":"# lms\n\nLearn — Dashboard\n\n"},"distributions":[{"channel":"shadcn","name":"lms","version":"0.16.0","availability":"source"},{"channel":"spec","name":"lms","version":"0.16.0","availability":"source"}],"examples":[{"id":"lms","title":"lms","mode":"spec","language":"yaml","code":"version: '2.0'\nmenus:\n items:\n - key: dashboard\n label: Dashboard\n path: /\n icon: ▦\n - key: courses\n label: Courses\n path: /courses\n icon: ◫\n - key: lessons\n label: Lessons\n path: /lessons\n icon: ◧\n - key: grades\n label: Grades\n path: /grades\n icon: ◔\npages:\n- id: dashboard\n path: /\n title: Learn — Dashboard\n blocks:\n - type: PageLayout\n props:\n title: Lumen LMS\n slots:\n headerActions:\n - type: Button\n props:\n label: Resume course\n size: sm\n children:\n - type: Box\n props:\n className: mb-2\n children:\n - type: Heading\n props:\n level: 2\n text: Welcome back, Ada\n - type: Paragraph\n props:\n size: sm\n muted: true\n text: You have 3 lessons due this week. Keep your 14-day streak alive.\n - type: StatGrid\n props:\n cols: '4'\n items:\n - label: Courses in progress\n value: '5'\n change: '+1'\n trend: up\n - label: Overall completion\n value: 68%\n change: +6pt\n trend: up\n - label: Study streak\n value: 14 days\n change: '+2'\n trend: up\n - label: Hours this month\n value: 27h\n change: -3h\n trend: down\n - type: Grid\n props:\n cols: '3'\n gap: lg\n children:\n - type: Box\n props:\n className: col-span-2\n children:\n - type: Card\n props:\n title: Study time\n description: Minutes per day · last 7 days\n children:\n - type: TrendChart\n props:\n height: 200\n labels:\n - Mon\n - Tue\n - Wed\n - Thu\n - Fri\n - Sat\n - Sun\n series:\n - name: This week\n area: true\n points:\n - 45\n - 60\n - 30\n - 90\n - 75\n - 120\n - 50\n - name: Goal\n points:\n - 60\n - 60\n - 60\n - 60\n - 60\n - 60\n - 60\n - type: Card\n props:\n title: Due soon\n children:\n - type: TimelineList\n props:\n items:\n - time: Today\n title: 'Quiz: Derivatives'\n desc: Calculus I\n status: warn\n - time: Wed\n title: Essay draft\n desc: Modern History\n status: ok\n - time: Fri\n title: Lab report\n desc: Intro to Chemistry\n status: error\n - time: Sun\n title: 'Reading: Ch. 4'\n desc: Microeconomics\n status: ok\n - type: Heading\n props:\n level: 3\n text: Continue learning\n - type: Grid\n props:\n cols: '3'\n responsive: true\n gap: lg\n children:\n - type: Card\n props:\n title: Calculus I\n description: Limits, derivatives, integrals\n children:\n - type: BadgeGroup\n props:\n items:\n - label: 72% done\n tone: success\n - label: Math\n tone: info\n - type: Button\n props:\n label: Continue · Lesson 9\n full: true\n - type: Card\n props:\n title: Modern History\n description: 1900 to present\n children:\n - type: BadgeGroup\n props:\n items:\n - label: 40% done\n tone: warning\n - label: Humanities\n tone: info\n - type: Button\n props:\n label: Continue · Lesson 5\n full: true\n - type: Card\n props:\n title: Intro to Chemistry\n description: Atoms, bonds, reactions\n children:\n - type: BadgeGroup\n props:\n items:\n - label: 15% done\n tone: error\n - label: Science\n tone: info\n - type: Button\n props:\n label: Continue · Lesson 2\n full: true\n template: app-shell-sidebar\n- id: courses\n path: /courses\n title: Learn — Courses\n blocks:\n - type: PageLayout\n props:\n title: Lumen LMS\n slots:\n headerActions:\n - type: Button\n props:\n label: Browse catalog\n size: sm\n variant: outline\n children:\n - type: Box\n props:\n className: mb-2\n children:\n - type: Heading\n props:\n level: 2\n text: My courses\n - type: Paragraph\n props:\n size: sm\n muted: true\n text: 12 enrolled · 5 in progress · 7 completed\n - type: Card\n props:\n title: Enrolled courses\n children:\n - type: SearchableTable\n props:\n searchKey: courseSearch\n placeholder: Search courses…\n columns:\n - key: title\n label: Course\n - key: instructor\n label: Instructor\n - key: category\n label: Category\n - key: progress\n label: Progress\n align: right\n - key: status\n label: Status\n rows:\n - title: Calculus I\n instructor: Dr. Noether\n category: Math\n progress: 72%\n status: In progress\n - title: Modern History\n instructor: Prof. Zinn\n category: Humanities\n progress: 40%\n status: In progress\n - title: Intro to Chemistry\n instructor: Dr. Curie\n category: Science\n progress: 15%\n status: In progress\n - title: Microeconomics\n instructor: Dr. Smith\n category: Economics\n progress: 100%\n status: Completed\n - title: Linear Algebra\n instructor: Dr. Strang\n category: Math\n progress: 100%\n status: Completed\n - title: Creative Writing\n instructor: Prof. Woolf\n category: Humanities\n progress: 0%\n status: Not started\n template: app-shell-sidebar\n- id: lessons\n path: /lessons\n title: Learn — Calculus I\n state:\n selectedId: l-9\n blocks:\n - type: PageLayout\n props:\n title: Lumen LMS\n slots:\n headerActions:\n - type: Button\n props:\n label: Mark complete\n size: sm\n children:\n - type: Breadcrumb\n props:\n items:\n - label: Courses\n href: /courses\n - label: Calculus I\n href: /lessons\n - label: Lesson 9 — The Chain Rule\n - type: SplitMasterDetail\n props:\n selectKey: selectedId\n items:\n - id: l-7\n title: 7 · The Product Rule\n subtitle: Completed · 12 min\n - id: l-8\n title: 8 · The Quotient Rule\n subtitle: Completed · 10 min\n - id: l-9\n title: 9 · The Chain Rule\n subtitle: In progress · 18 min\n - id: l-10\n title: 10 · Implicit Differentiation\n subtitle: Locked · 15 min\n slots:\n detail:\n - type: Card\n props:\n title: Lesson 9 — The Chain Rule\n description: Calculus I · Module 3 · 18 min\n slots:\n actions:\n - type: BadgeGroup\n props:\n items:\n - label: In progress\n tone: warning\n - label: Video + reading\n tone: info\n children:\n - type: KeyValueGrid\n props:\n cols: '3'\n items:\n - key: Duration\n value: 18 min\n - key: Difficulty\n value: Intermediate\n - key: Prerequisite\n value: Product Rule\n - type: Divider\n - type: Markdown\n props:\n content: '## The Chain Rule\n\n\n The **chain rule** lets you differentiate a *composition*\n\n of functions. If `y = f(g(x))`, then:\n\n\n - Differentiate the **outer** function, keeping the inner intact.\n\n - Multiply by the derivative of the **inner** function.\n\n\n Formally, `dy/dx = f''(g(x)) · g''(x)`.\n\n\n ### Worked example\n\n\n For `y = (3x + 1)^5`, the outer is `u^5` and the inner is\n\n `3x + 1`, so `dy/dx = 5(3x + 1)^4 · 3 = 15(3x + 1)^4`.\n\n '\n - type: Toast\n props:\n level: info\n title: Up next\n message: Finish the practice set to unlock Implicit Differentiation.\n template: app-shell-sidebar\n- id: grades\n path: /grades\n title: Learn — Grades\n blocks:\n - type: PageLayout\n props:\n title: Lumen LMS\n slots:\n headerActions:\n - type: Button\n props:\n label: Export transcript\n size: sm\n variant: outline\n children:\n - type: Box\n props:\n className: mb-2\n children:\n - type: Heading\n props:\n level: 2\n text: Grades & transcript\n - type: Paragraph\n props:\n size: sm\n muted: true\n text: Spring term · GPA updated nightly\n - type: StatGrid\n props:\n cols: '4'\n items:\n - label: GPA\n value: '3.74'\n change: '+0.08'\n trend: up\n - label: Credits earned\n value: '48'\n change: '+6'\n trend: up\n - label: Assignments graded\n value: 92%\n - label: Pending review\n value: '3'\n change: '-2'\n trend: down\n - type: Card\n props:\n title: Course grades\n children:\n - type: Table\n props:\n columns:\n - key: course\n label: Course\n - key: assignments\n label: Assignments\n align: center\n - key: average\n label: Average\n align: right\n - key: grade\n label: Grade\n align: right\n rows:\n - course: Calculus I\n assignments: 9 / 12\n average: 88%\n grade: B+\n - course: Modern History\n assignments: 5 / 10\n average: 91%\n grade: A-\n - course: Intro to Chemistry\n assignments: 2 / 8\n average: 76%\n grade: C+\n - course: Microeconomics\n assignments: 12 / 12\n average: 95%\n grade: A\n - course: Linear Algebra\n assignments: 10 / 10\n average: 93%\n grade: A\n template: app-shell-sidebar\n","dependencies":["component:badge-group","component:box","component:breadcrumb","component:button","component:card","component:divider","component:grid","component:heading","component:key-value-grid","component:markdown","component:page-layout","component:paragraph","component:searchable-table","component:split-master-detail","component:stat-grid","component:table","component:timeline-list","component:toast","component:trend-chart","template:app-shell-sidebar"]}]},"template:portfolio":{"resourceId":"template:portfolio","title":{"zh":"portfolio","en":"portfolio"},"docs":{"zh":"# portfolio\n\nAda Lovelace — Designer & Engineer\n\n","en":"# portfolio\n\nAda Lovelace — Designer & Engineer\n\n"},"distributions":[{"channel":"shadcn","name":"portfolio","version":"0.16.0","availability":"source"},{"channel":"spec","name":"portfolio","version":"0.16.0","availability":"source"}],"examples":[{"id":"portfolio","title":"portfolio","mode":"spec","language":"yaml","code":"version: \"2.0\"\npages:\n - id: portfolio\n path: /\n title: Ada Lovelace — Designer & Engineer\n blocks:\n - type: PageLayout\n props:\n title: Ada Lovelace\n slots:\n headerActions:\n - type: Link\n props:\n label: Resume\n href: \"#\"\n variant: muted\n - type: Link\n props:\n label: Contact\n href: \"#\"\n variant: button\n children:\n - type: Box\n props:\n className: \"flex flex-col items-start gap-5 py-16 max-w-2xl\"\n children:\n - type: BadgeGroup\n props:\n items:\n - label: Available for work\n tone: success\n - type: Heading\n props:\n level: 1\n text: \"I design and build calm, fast software.\"\n - type: Paragraph\n props:\n size: lg\n muted: true\n text: \"Product designer and front-end engineer. Eight years shipping interfaces for fintech and developer tools. Currently at Northwind.\"\n - type: Box\n props:\n className: \"flex gap-3\"\n children:\n - type: Button\n props:\n label: View work\n - type: Button\n props:\n label: \"Get in touch\"\n variant: outline\n - type: Divider\n - type: Box\n props:\n className: \"py-8\"\n children:\n - type: Heading\n props:\n level: 2\n text: Selected work\n - type: Paragraph\n props:\n size: sm\n muted: true\n text: \"Stills are not attached — hairline frames stand in for the case studies.\"\n - type: Grid\n props:\n cols: \"2\"\n responsive: true\n gap: lg\n children:\n - type: Card\n props:\n title: Northwind Console\n description: \"Design system · 2025\"\n className: \"rounded-none border border-border shadow-none\"\n children:\n - type: Box\n props:\n className: \"h-44 -mx-6 mb-3 border border-border bg-muted/40 flex items-center justify-center\"\n children:\n - type: Paragraph\n props:\n size: sm\n muted: true\n text: \"Case still · not attached\"\n - type: Paragraph\n props:\n muted: true\n text: \"Unified 40+ surfaces under one OKLCH token system and a keyboard-first interaction model.\"\n - type: Card\n props:\n title: Ledger Mobile\n description: \"iOS · 2024\"\n className: \"rounded-none border border-border shadow-none\"\n children:\n - type: Box\n props:\n className: \"h-44 -mx-6 mb-3 border border-border bg-muted/40 flex items-center justify-center\"\n children:\n - type: Paragraph\n props:\n size: sm\n muted: true\n text: \"Case still · not attached\"\n - type: Paragraph\n props:\n muted: true\n text: \"Redesigned the budgeting flow, cutting time-to-first-transaction by 60%.\"\n - type: Box\n props:\n className: \"py-12\"\n children:\n - type: KeyValueGrid\n props:\n cols: \"3\"\n items:\n - key: Years\n value: \"8+\"\n - key: Shipped products\n value: \"24\"\n - key: Based in\n value: \"Lisbon\"\n - type: Box\n props:\n className: \"flex flex-col items-start gap-4 my-12 py-10 px-6 border border-border bg-foreground text-background\"\n children:\n - type: Heading\n props:\n level: 2\n text: \"Let's build something\"\n - type: Paragraph\n props:\n text: \"Open to select freelance and full-time roles. No purple CTA wash.\"\n - type: Button\n props:\n label: \"ada@lovelace.dev\"\n variant: secondary\n size: lg\n","dependencies":["component:badge-group","component:box","component:button","component:card","component:divider","component:grid","component:heading","component:key-value-grid","component:link","component:page-layout","component:paragraph"]}]},"template:pricing":{"resourceId":"template:pricing","title":{"zh":"pricing","en":"pricing"},"docs":{"zh":"# pricing\n\nPricing\n\n","en":"# pricing\n\nPricing\n\n"},"distributions":[{"channel":"shadcn","name":"pricing","version":"0.16.0","availability":"source"},{"channel":"spec","name":"pricing","version":"0.16.0","availability":"source"}],"examples":[{"id":"pricing","title":"pricing","mode":"spec","language":"yaml","code":"version: \"2.0\"\npages:\n - id: pricing\n path: /\n title: Pricing\n blocks:\n - type: PageLayout\n props:\n title: Northwind\n slots:\n headerActions:\n - type: Link\n props:\n label: Product\n href: \"#\"\n variant: muted\n - type: Link\n props:\n label: Start free\n href: \"#\"\n variant: button\n children:\n - type: Box\n props:\n className: \"flex flex-col items-start gap-3 py-12 max-w-2xl\"\n children:\n - type: Paragraph\n props:\n size: sm\n muted: true\n text: \"Pricing\"\n - type: Heading\n props:\n level: 1\n text: \"Pay when the workspace earns a seat\"\n - type: Paragraph\n props:\n size: lg\n muted: true\n text: \"Starter is free. Pro is a published monthly rate. Enterprise is a conversation — we do not invent an SLA number here.\"\n - type: Box\n props:\n className: \"border-y border-border py-6 mb-8\"\n children:\n - type: Paragraph\n props:\n size: sm\n muted: true\n text: \"Proof · same billing language as the product, not a logo wall\"\n - type: Grid\n props:\n cols: \"3\"\n responsive: true\n gap: lg\n children:\n - type: Card\n props:\n title: Starter\n description: \"Individuals and side projects\"\n children:\n - type: Stat\n props:\n value: \"$0\"\n description: \"per workspace / month\"\n - type: Divider\n - type: List\n props:\n compact: true\n children:\n - type: Paragraph\n props:\n text: \"Up to 3 projects\"\n - type: Paragraph\n props:\n text: \"Community support\"\n - type: Paragraph\n props:\n text: \"1 GB attachments\"\n - type: Button\n props:\n label: Get started\n variant: outline\n full: true\n - type: Box\n props:\n className: \"rounded-none ring-1 ring-foreground\"\n children:\n - type: Card\n props:\n title: Pro\n description: \"Growing product teams\"\n slots:\n actions:\n - type: BadgeGroup\n props:\n items:\n - label: Recommended\n tone: info\n children:\n - type: Stat\n props:\n value: \"$24\"\n description: \"per member / month, annual\"\n - type: Divider\n - type: List\n props:\n compact: true\n children:\n - type: Paragraph\n props:\n text: \"Unlimited projects\"\n - type: Paragraph\n props:\n text: \"Priority queue\"\n - type: Paragraph\n props:\n text: \"100 GB attachments\"\n - type: Paragraph\n props:\n text: \"SSO-ready billing\"\n - type: Button\n props:\n label: Start 14-day trial\n full: true\n - type: Card\n props:\n title: Enterprise\n description: \"Security review required\"\n children:\n - type: Stat\n props:\n value: \"Talk to us\"\n description: \"scoped to your review\"\n - type: Divider\n - type: List\n props:\n compact: true\n children:\n - type: Paragraph\n props:\n text: \"SSO & SCIM\"\n - type: Paragraph\n props:\n text: \"Named success contact\"\n - type: Paragraph\n props:\n text: \"Contracted retention\"\n - type: Paragraph\n props:\n text: \"Uptime terms in the MSA — not a marketing %\"\n - type: Button\n props:\n label: Contact sales\n variant: outline\n full: true\n - type: Box\n props:\n className: \"flex flex-col gap-3 py-12 max-w-xl\"\n children:\n - type: Heading\n props:\n level: 3\n text: \"Before you pick a tier\"\n - type: Paragraph\n props:\n muted: true\n text: \"Members are unlimited on every plan. Cancel anytime. Empty seats are not billed as fake usage.\"\n - type: Button\n props:\n label: Create a free workspace\n size: lg\n","dependencies":["component:badge-group","component:box","component:button","component:card","component:divider","component:grid","component:heading","component:link","component:list","component:page-layout","component:paragraph","component:stat"]}]},"template:saas-landing":{"resourceId":"template:saas-landing","title":{"zh":"saas-landing","en":"saas-landing"},"docs":{"zh":"# saas-landing\n\nNorthwind — Ship in one surface\n\n","en":"# saas-landing\n\nNorthwind — Ship in one surface\n\n"},"distributions":[{"channel":"shadcn","name":"saas-landing","version":"0.16.0","availability":"source"},{"channel":"spec","name":"saas-landing","version":"0.16.0","availability":"source"}],"examples":[{"id":"saas-landing","title":"saas-landing","mode":"spec","language":"yaml","code":"version: \"2.0\"\npages:\n - id: saas-landing\n path: /\n title: Northwind — Ship in one surface\n blocks:\n - type: PageLayout\n props:\n title: Northwind\n slots:\n headerActions:\n - type: Link\n props:\n label: Docs\n href: \"#\"\n variant: muted\n - type: Link\n props:\n label: Sign in\n href: \"#\"\n variant: muted\n - type: Link\n props:\n label: Start free\n href: \"#\"\n variant: button\n children:\n # hero — Vercel/Stripe restraint: left rail, no purple gradient\n - type: Box\n props:\n className: \"grid gap-10 py-8 px-2 md:grid-cols-[minmax(0,1.2fr)_minmax(0,0.8fr)] md:items-end\"\n children:\n - type: Box\n props:\n className: \"flex flex-col items-start gap-5 max-w-xl\"\n children:\n - type: Paragraph\n props:\n size: sm\n muted: true\n text: \"Issue tracker for teams that already ship\"\n - type: Heading\n props:\n level: 1\n text: \"Plan issues. Ship releases.\"\n - type: Paragraph\n props:\n size: lg\n muted: true\n text: \"Triage issues, plan each cycle, and follow releases from one workspace.\"\n - type: Box\n props:\n className: \"flex flex-wrap gap-3\"\n children:\n - type: Button\n props:\n label: Start free\n size: lg\n - type: Button\n props:\n label: View pricing\n variant: outline\n size: lg\n - type: Card\n props:\n title: Cycle 24\n description: \"Demo workspace — sample issues, not live counts\"\n children:\n - type: KeyValueGrid\n props:\n cols: \"1\"\n items:\n - key: In review\n value: \"14\"\n - key: Blocked\n value: \"3\"\n - key: Ready to ship\n value: \"8\"\n # proof\n - type: Box\n props:\n className: \"flex flex-col gap-3 border-y border-border py-8\"\n children:\n - type: Paragraph\n props:\n size: sm\n muted: true\n text: \"Built for the same people who already live in Linear-style tools\"\n - type: Paragraph\n props:\n text: \"Platform · Payments · Infra — named in copy, not as fake logo tiles\"\n # features\n - type: Box\n props:\n className: \"flex flex-col items-start gap-2 pt-14 pb-4\"\n children:\n - type: Heading\n props:\n level: 2\n text: \"What stays on one surface\"\n - type: Paragraph\n props:\n muted: true\n text: \"Three jobs. One layout rhythm. Tokens, not gradients.\"\n - type: Grid\n props:\n cols: \"3\"\n responsive: true\n gap: lg\n children:\n - type: Card\n props:\n title: Keyboard triage\n description: \"Assign, close, and cycle without a mouse\"\n children:\n - type: Paragraph\n props:\n muted: true\n text: \"Shortcuts are first-class. The page does not grow a second toolbar.\"\n - type: Card\n props:\n title: Honest status\n description: \"Empty, loading, and error stay distinct\"\n children:\n - type: Paragraph\n props:\n muted: true\n text: \"Unknown counts render as n/a. No zeroed KPI theater.\"\n - type: Card\n props:\n title: Roadmap without a new app\n description: \"Issues stay attached to the quarter\"\n children:\n - type: Paragraph\n props:\n muted: true\n text: \"Projects and goals share the same hairline table language as triage.\"\n # pricing teaser → dedicated pricing template owns the full grid\n - type: Box\n props:\n className: \"flex flex-col items-start gap-2 pt-14 pb-4\"\n children:\n - type: Heading\n props:\n level: 2\n text: \"Start free. Upgrade when the team does.\"\n - type: Paragraph\n props:\n muted: true\n text: \"Three published tiers. No hidden seats.\"\n - type: Grid\n props:\n cols: \"3\"\n responsive: true\n gap: md\n children:\n - type: Card\n props:\n title: Starter\n description: \"$0 / workspace\"\n children:\n - type: Paragraph\n props:\n muted: true\n text: \"Up to 3 projects. Community support.\"\n - type: Card\n props:\n title: Pro\n description: \"$24 / member / month\"\n children:\n - type: Paragraph\n props:\n text: \"Unlimited projects, SSO-ready billing, priority queue.\"\n - type: Card\n props:\n title: Enterprise\n description: \"Talk to us\"\n children:\n - type: Paragraph\n props:\n muted: true\n text: \"Security review and a named success contact. No invented SLA number.\"\n # CTA\n - type: Box\n props:\n className: \"flex flex-col items-start gap-4 my-16 py-12 px-8 rounded-none border border-border bg-foreground text-background\"\n children:\n - type: Heading\n props:\n level: 2\n text: \"Create a workspace\"\n - type: Paragraph\n props:\n text: \"Two minutes to first issue. No credit card. Open the pricing page when you need seats.\"\n - type: Button\n props:\n label: Get started free\n variant: secondary\n size: lg\n","dependencies":["component:box","component:button","component:card","component:grid","component:heading","component:key-value-grid","component:link","component:page-layout","component:paragraph"]}]},"template:settings":{"resourceId":"template:settings","title":{"zh":"settings","en":"settings"},"docs":{"zh":"# settings\n\nSettings\n\n","en":"# settings\n\nSettings\n\n"},"distributions":[{"channel":"shadcn","name":"settings","version":"0.16.0","availability":"source"},{"channel":"spec","name":"settings","version":"0.16.0","availability":"source"}],"examples":[{"id":"settings","title":"settings","mode":"spec","language":"yaml","code":"version: \"2.0\"\npages:\n - id: settings\n path: /\n title: Settings\n blocks:\n - type: PageLayout\n template: app-shell-sidebar\n props:\n title: Settings\n variant: sidebar\n slots:\n sidebar:\n - type: PageSiderMenu\n props:\n title: Settings\n children:\n - type: MenuGroup\n props:\n title: Account\n children:\n - type: MenuLink\n props:\n label: Profile\n href: \"#\"\n icon: \"◍\"\n active: true\n - type: MenuLink\n props:\n label: Account\n href: \"#\"\n icon: \"⚙\"\n - type: MenuLink\n props:\n label: Notifications\n href: \"#\"\n icon: \"◔\"\n - type: MenuLink\n props:\n label: Billing\n href: \"#\"\n icon: \"▦\"\n children:\n - type: Box\n props:\n className: \"flex items-end justify-between gap-4 mb-4 border-b border-border pb-3\"\n children:\n - type: Box\n children:\n - type: Heading\n props:\n level: 2\n text: Profile\n - type: Paragraph\n props:\n size: sm\n muted: true\n text: \"Public fields only. Hairline cards. Last saved stays visible.\"\n - type: BadgeGroup\n props:\n items:\n - label: Saved 2m ago\n tone: success\n - type: Tabs\n props:\n tabs: [\"General\", \"Preferences\", \"Danger zone\"]\n children:\n - type: Card\n props:\n title: Personal information\n description: \"Displayed on your public profile\"\n children:\n - type: Form\n children:\n - type: Grid\n props:\n cols: \"2\"\n gap: md\n children:\n - type: \"Form.Input\"\n props:\n name: firstName\n label: First name\n placeholder: Ada\n - type: \"Form.Input\"\n props:\n name: lastName\n label: Last name\n placeholder: Lovelace\n - type: \"Form.Input\"\n props:\n name: email\n label: Email\n type: email\n placeholder: ada@northwind.dev\n - type: \"Form.TextArea\"\n props:\n name: bio\n label: Bio\n rows: 3\n placeholder: \"Short, specific, no filler\"\n helpText: \"One or two sentences. Empty is allowed.\"\n - type: \"Form.Submit\"\n props:\n label: Save changes\n - type: Card\n props:\n title: Preferences\n children:\n - type: Form\n children:\n - type: \"Form.Checkbox\"\n props:\n name: emailDigest\n label: Weekly email digest\n description: \"A summary of activity every Monday.\"\n - type: \"Form.Checkbox\"\n props:\n name: productUpdates\n label: Product updates\n description: \"News about features and improvements.\"\n - type: \"Form.Select\"\n props:\n name: theme\n label: Theme\n options:\n - value: system\n label: System\n - value: light\n label: Light\n - value: dark\n label: Dark\n - type: \"Form.Submit\"\n props:\n label: Save preferences\n - type: Card\n props:\n title: Danger zone\n description: \"Irreversible. Confirm before you click.\"\n children:\n - type: Toast\n props:\n level: warning\n title: Delete account\n message: \"Once deleted, the account and its data are gone. There is no undo path.\"\n - type: Form\n children:\n - type: \"Form.Submit\"\n props:\n label: Delete my account\n variant: destructive\n","dependencies":["component:badge-group","component:box","component:card","component:form","component:form-checkbox","component:form-input","component:form-select","component:form-submit","component:form-text-area","component:grid","component:heading","component:menu-group","component:menu-link","component:page-layout","component:page-sider-menu","component:paragraph","component:tabs","component:toast","template:app-shell-sidebar"]}]},"template:shadcn-admin":{"resourceId":"template:shadcn-admin","title":{"zh":"UiBot Admin","en":"UiBot Admin"},"docs":{"zh":"# UiBot Admin\n\nDashboard\n\n","en":"# UiBot Admin\n\nDashboard\n\n"},"distributions":[{"channel":"shadcn","name":"shadcn-admin","version":"0.16.0","availability":"source"},{"channel":"spec","name":"shadcn-admin","version":"0.16.0","availability":"source"}],"examples":[{"id":"shadcn-admin","title":"UiBot Admin","mode":"spec","language":"yaml","code":"version: \"2.0\"\n# Application pages inherit these defaults; auth/error pages retain standalone roots.\nlayout:\n navigation: sidebar\n container: fluid\n navigationStyle: attached\n offcanvas: attached\n sidebar: expanded\nconnections:\n - id: tasks-db\n type: NowAPI.Collection\n - id: users-db\n type: NowAPI.Collection\n - id: preferences-db\n type: NowAPI.Collection\n - id: conversations-db\n type: NowAPI.Collection\n - id: messages-db\n type: NowAPI.Collection\n - id: integrations-db\n type: NowAPI.Collection\npages:\n - id: dashboard\n path: /\n title: Dashboard\n state:\n direction: \"ltr\"\n font: \"Inter\"\n theme: \"light\"\n currentPath: /\n blocks:\n - type: PageLayout\n children:\n - type: Box\n props:\n className: \"!flex-row items-start justify-between gap-4 mb-6\"\n children:\n - type: Box\n props:\n gap: xs\n children:\n - type: Heading\n props:\n level: 1\n text: Dashboard\n - type: Button\n props:\n label: Download\n disabled: true\n - type: Tabs\n props:\n tabs:\n - Overview\n - Analytics\n - Reports\n - Notifications\n disabledTabs:\n - 2\n - 3\n variant: segmented\n children:\n - type: Box\n props:\n gap: md\n children:\n - type: Box\n props:\n className: \"!grid grid-cols-1 gap-4 sm:grid-cols-2 xl:grid-cols-4\"\n children:\n - type: StatCard\n props:\n label: Total Revenue\n value: $45,231.89\n description: +20.1% from last month\n icon: chart-no-axes-column\n - type: StatCard\n props:\n label: Subscriptions\n value: \"+2350\"\n description: +180.1% from last month\n icon: users\n - type: StatCard\n props:\n label: Sales\n value: +12,234\n description: +19% from last month\n icon: boxes\n - type: StatCard\n props:\n label: Active Now\n value: \"+573\"\n description: +201 since last hour\n icon: chart-no-axes-column\n - type: Box\n props:\n className: \"!grid grid-cols-1 gap-4 lg:grid-cols-7\"\n children:\n - type: Box\n props:\n className: lg:col-span-4\n children:\n - type: Card\n props:\n title: Overview\n children:\n - type: BarChart\n props:\n prefix: $\n height: 350\n data:\n - label: Jan\n value: 1500\n - label: Feb\n value: 5800\n - label: Mar\n value: 5500\n - label: Apr\n value: 2200\n - label: May\n value: 4800\n - label: Jun\n value: 1600\n - label: Jul\n value: 2800\n - label: Aug\n value: 2300\n - label: Sep\n value: 5700\n - label: Oct\n value: 1400\n - label: Nov\n value: 2900\n - label: Dec\n value: 1900\n - type: Box\n props:\n className: lg:col-span-3\n children:\n - type: Card\n props:\n title: Recent Sales\n description: You made 265 sales this month.\n children:\n - type: AvatarList\n props:\n items:\n - id: \"0\"\n initials: OM\n name: Olivia Martin\n description: olivia.martin@email.com\n value: +$1,999.00\n - id: \"1\"\n initials: JL\n name: Jackson Lee\n description: jackson.lee@email.com\n value: +$39.00\n - id: \"2\"\n initials: IN\n name: Isabella Nguyen\n description: isabella.nguyen@email.com\n value: +$299.00\n - id: \"3\"\n initials: WK\n name: William Kim\n description: will@email.com\n value: +$99.00\n - id: \"4\"\n initials: SD\n name: Sofia Davis\n description: sofia.davis@email.com\n value: +$39.00\n - type: Box\n props:\n gap: md\n children:\n - type: Box\n props:\n className: \"!flex-row items-start justify-between gap-4 mb-6\"\n children:\n - type: Box\n props:\n gap: xs\n children:\n - type: Heading\n props:\n level: 1\n text: Analytics\n - type: Paragraph\n props:\n text: Revenue and subscription performance.\n muted: true\n size: sm\n - type: Box\n props:\n className: \"!grid grid-cols-1 gap-4 sm:grid-cols-2 xl:grid-cols-4\"\n children:\n - type: StatCard\n props:\n label: Total Revenue\n value: $45,231.89\n description: +20.1% from last month\n icon: chart-no-axes-column\n - type: StatCard\n props:\n label: Subscriptions\n value: \"+2350\"\n description: +180.1% from last month\n icon: users\n - type: StatCard\n props:\n label: Sales\n value: +12,234\n description: +19% from last month\n icon: boxes\n - type: StatCard\n props:\n label: Active Now\n value: \"+573\"\n description: +201 since last hour\n icon: chart-no-axes-column\n - type: Card\n props:\n title: Revenue over time\n children:\n - type: BarChart\n props:\n prefix: $\n data:\n - label: Apr\n value: 18200\n - label: May\n value: 21400\n - label: Jun\n value: 28000\n - label: Jul\n value: 26200\n - label: Aug\n value: 31500\n - label: Sep\n value: 45231\n template: shadcn-admin-shell\n - id: tasks\n lifecycle:\n onMount:\n - action: Request\n params:\n connectionId: tasks-db\n request:\n id: load-tasks\n connectionId: tasks-db\n payload:\n operation: FindAll\n responsePath: rows\n loadingPath: loading\n errorPath: uiError\n onError:\n - action: SetState\n params:\n path: requestFailed\n value: true\n path: /tasks\n title: Tasks\n state:\n direction: \"ltr\"\n font: \"Inter\"\n selectionEvent: null\n theme: \"light\"\n currentPath: /tasks\n rows:\n - id: TASK-8782\n title: Document release rollback steps\n label: documentation\n status: backlog\n priority: medium\n - id: TASK-8783\n title: Fix keyboard focus in the task drawer\n label: bug\n status: todo\n priority: high\n - id: TASK-8784\n title: Add status filters to the task list\n label: feature\n status: in progress\n priority: low\n - id: TASK-8785\n title: Update deployment checklist\n label: documentation\n status: done\n priority: medium\n - id: TASK-8786\n title: Investigate duplicate task submissions\n label: bug\n status: canceled\n priority: high\n - id: TASK-8787\n title: Add saved table views\n label: feature\n status: backlog\n priority: low\n - id: TASK-8788\n title: Document task priority definitions\n label: documentation\n status: todo\n priority: medium\n - id: TASK-8789\n title: Update the onboarding documentation for team members.\n label: bug\n status: in progress\n priority: high\n - id: TASK-8790\n title: Review project permissions before the next release.\n label: feature\n status: done\n priority: low\n - id: TASK-8791\n title: Make the settings form usable with keyboard navigation.\n label: documentation\n status: canceled\n priority: medium\n - id: TASK-8792\n title: You can’t compress the program without quantifying the open-source SSD pixel!\n label: bug\n status: backlog\n priority: high\n - id: TASK-8793\n title: Try to calculate the EXE feed, maybe it will index the multi-byte pixel!\n label: feature\n status: todo\n priority: low\n - id: TASK-8794\n title: We need to bypass the neural TCP card!\n label: documentation\n status: in progress\n priority: medium\n - id: TASK-8795\n title: The SAS interface is down, bypass the open-source pixel so we can back up the PNG bandwidth!\n label: bug\n status: done\n priority: high\n - id: TASK-8796\n title: I’ll transmit the primary HTTP panel, that should feed the UTF-8 protocol!\n label: feature\n status: canceled\n priority: low\n - id: TASK-8797\n title: Use the digital TLS panel, then you can transmit the haptic system!\n label: documentation\n status: backlog\n priority: medium\n - id: TASK-8798\n title: The RAM monitor is down, parsing the virtual circuit will help.\n label: bug\n status: todo\n priority: high\n - id: TASK-8799\n title: Update the onboarding documentation for team members.\n label: feature\n status: in progress\n priority: low\n - id: TASK-8800\n title: Review project permissions before the next release.\n label: documentation\n status: done\n priority: medium\n - id: TASK-8801\n title: Make the settings form usable with keyboard navigation.\n label: bug\n status: canceled\n priority: high\n - id: TASK-8802\n title: You can’t compress the program without quantifying the open-source SSD pixel!\n label: feature\n status: backlog\n priority: low\n - id: TASK-8803\n title: Try to calculate the EXE feed, maybe it will index the multi-byte pixel!\n label: documentation\n status: todo\n priority: medium\n - id: TASK-8804\n title: We need to bypass the neural TCP card!\n label: bug\n status: in progress\n priority: high\n - id: TASK-8805\n title: The SAS interface is down, bypass the open-source pixel so we can back up the PNG bandwidth!\n label: feature\n status: done\n priority: low\n - id: TASK-8806\n title: I’ll transmit the primary HTTP panel, that should feed the UTF-8 protocol!\n label: documentation\n status: canceled\n priority: medium\n - id: TASK-8807\n title: Use the digital TLS panel, then you can transmit the haptic system!\n label: bug\n status: backlog\n priority: high\n - id: TASK-8808\n title: The RAM monitor is down, parsing the virtual circuit will help.\n label: feature\n status: todo\n priority: low\n - id: TASK-8809\n title: Update the onboarding documentation for team members.\n label: documentation\n status: in progress\n priority: medium\n - id: TASK-8810\n title: Review project permissions before the next release.\n label: bug\n status: done\n priority: high\n - id: TASK-8811\n title: Make the settings form usable with keyboard navigation.\n label: feature\n status: canceled\n priority: low\n - id: TASK-8812\n title: You can’t compress the program without quantifying the open-source SSD pixel!\n label: documentation\n status: backlog\n priority: medium\n - id: TASK-8813\n title: Try to calculate the EXE feed, maybe it will index the multi-byte pixel!\n label: bug\n status: todo\n priority: high\n - id: TASK-8814\n title: We need to bypass the neural TCP card!\n label: feature\n status: in progress\n priority: low\n - id: TASK-8815\n title: The SAS interface is down, bypass the open-source pixel so we can back up the PNG bandwidth!\n label: documentation\n status: done\n priority: medium\n - id: TASK-8816\n title: I’ll transmit the primary HTTP panel, that should feed the UTF-8 protocol!\n label: bug\n status: canceled\n priority: high\n - id: TASK-8817\n title: Use the digital TLS panel, then you can transmit the haptic system!\n label: feature\n status: backlog\n priority: low\n - id: TASK-8818\n title: The RAM monitor is down, parsing the virtual circuit will help.\n label: documentation\n status: todo\n priority: medium\n - id: TASK-8819\n title: Update the onboarding documentation for team members.\n label: bug\n status: in progress\n priority: high\n - id: TASK-8820\n title: Review project permissions before the next release.\n label: feature\n status: done\n priority: low\n - id: TASK-8821\n title: Make the settings form usable with keyboard navigation.\n label: documentation\n status: canceled\n priority: medium\n - id: TASK-8822\n title: You can’t compress the program without quantifying the open-source SSD pixel!\n label: bug\n status: backlog\n priority: high\n - id: TASK-8823\n title: Try to calculate the EXE feed, maybe it will index the multi-byte pixel!\n label: feature\n status: todo\n priority: low\n - id: TASK-8824\n title: We need to bypass the neural TCP card!\n label: documentation\n status: in progress\n priority: medium\n - id: TASK-8825\n title: The SAS interface is down, bypass the open-source pixel so we can back up the PNG bandwidth!\n label: bug\n status: done\n priority: high\n - id: TASK-8826\n title: I’ll transmit the primary HTTP panel, that should feed the UTF-8 protocol!\n label: feature\n status: canceled\n priority: low\n - id: TASK-8827\n title: Use the digital TLS panel, then you can transmit the haptic system!\n label: documentation\n status: backlog\n priority: medium\n - id: TASK-8828\n title: The RAM monitor is down, parsing the virtual circuit will help.\n label: bug\n status: todo\n priority: high\n - id: TASK-8829\n title: Update the onboarding documentation for team members.\n label: feature\n status: in progress\n priority: low\n - id: TASK-8830\n title: Review project permissions before the next release.\n label: documentation\n status: done\n priority: medium\n - id: TASK-8831\n title: Make the settings form usable with keyboard navigation.\n label: bug\n status: canceled\n priority: high\n - id: TASK-8832\n title: You can’t compress the program without quantifying the open-source SSD pixel!\n label: feature\n status: backlog\n priority: low\n - id: TASK-8833\n title: Try to calculate the EXE feed, maybe it will index the multi-byte pixel!\n label: documentation\n status: todo\n priority: medium\n - id: TASK-8834\n title: We need to bypass the neural TCP card!\n label: bug\n status: in progress\n priority: high\n - id: TASK-8835\n title: The SAS interface is down, bypass the open-source pixel so we can back up the PNG bandwidth!\n label: feature\n status: done\n priority: low\n - id: TASK-8836\n title: I’ll transmit the primary HTTP panel, that should feed the UTF-8 protocol!\n label: documentation\n status: canceled\n priority: medium\n - id: TASK-8837\n title: Use the digital TLS panel, then you can transmit the haptic system!\n label: bug\n status: backlog\n priority: high\n - id: TASK-8838\n title: The RAM monitor is down, parsing the virtual circuit will help.\n label: feature\n status: todo\n priority: low\n - id: TASK-8839\n title: Update the onboarding documentation for team members.\n label: documentation\n status: in progress\n priority: medium\n - id: TASK-8840\n title: Review project permissions before the next release.\n label: bug\n status: done\n priority: high\n - id: TASK-8841\n title: Make the settings form usable with keyboard navigation.\n label: feature\n status: canceled\n priority: low\n - id: TASK-8842\n title: You can’t compress the program without quantifying the open-source SSD pixel!\n label: documentation\n status: backlog\n priority: medium\n - id: TASK-8843\n title: Try to calculate the EXE feed, maybe it will index the multi-byte pixel!\n label: bug\n status: todo\n priority: high\n - id: TASK-8844\n title: We need to bypass the neural TCP card!\n label: feature\n status: in progress\n priority: low\n - id: TASK-8845\n title: The SAS interface is down, bypass the open-source pixel so we can back up the PNG bandwidth!\n label: documentation\n status: done\n priority: medium\n - id: TASK-8846\n title: I’ll transmit the primary HTTP panel, that should feed the UTF-8 protocol!\n label: bug\n status: canceled\n priority: high\n - id: TASK-8847\n title: Use the digital TLS panel, then you can transmit the haptic system!\n label: feature\n status: backlog\n priority: low\n - id: TASK-8848\n title: The RAM monitor is down, parsing the virtual circuit will help.\n label: documentation\n status: todo\n priority: medium\n - id: TASK-8849\n title: Update the onboarding documentation for team members.\n label: bug\n status: in progress\n priority: high\n - id: TASK-8850\n title: Review project permissions before the next release.\n label: feature\n status: done\n priority: low\n - id: TASK-8851\n title: Make the settings form usable with keyboard navigation.\n label: documentation\n status: canceled\n priority: medium\n - id: TASK-8852\n title: You can’t compress the program without quantifying the open-source SSD pixel!\n label: bug\n status: backlog\n priority: high\n - id: TASK-8853\n title: Try to calculate the EXE feed, maybe it will index the multi-byte pixel!\n label: feature\n status: todo\n priority: low\n - id: TASK-8854\n title: We need to bypass the neural TCP card!\n label: documentation\n status: in progress\n priority: medium\n - id: TASK-8855\n title: The SAS interface is down, bypass the open-source pixel so we can back up the PNG bandwidth!\n label: bug\n status: done\n priority: high\n - id: TASK-8856\n title: I’ll transmit the primary HTTP panel, that should feed the UTF-8 protocol!\n label: feature\n status: canceled\n priority: low\n - id: TASK-8857\n title: Use the digital TLS panel, then you can transmit the haptic system!\n label: documentation\n status: backlog\n priority: medium\n - id: TASK-8858\n title: The RAM monitor is down, parsing the virtual circuit will help.\n label: bug\n status: todo\n priority: high\n - id: TASK-8859\n title: Update the onboarding documentation for team members.\n label: feature\n status: in progress\n priority: low\n - id: TASK-8860\n title: Review project permissions before the next release.\n label: documentation\n status: done\n priority: medium\n - id: TASK-8861\n title: Make the settings form usable with keyboard navigation.\n label: bug\n status: canceled\n priority: high\n - id: TASK-8862\n title: You can’t compress the program without quantifying the open-source SSD pixel!\n label: feature\n status: backlog\n priority: low\n - id: TASK-8863\n title: Try to calculate the EXE feed, maybe it will index the multi-byte pixel!\n label: documentation\n status: todo\n priority: medium\n - id: TASK-8864\n title: We need to bypass the neural TCP card!\n label: bug\n status: in progress\n priority: high\n - id: TASK-8865\n title: The SAS interface is down, bypass the open-source pixel so we can back up the PNG bandwidth!\n label: feature\n status: done\n priority: low\n - id: TASK-8866\n title: I’ll transmit the primary HTTP panel, that should feed the UTF-8 protocol!\n label: documentation\n status: canceled\n priority: medium\n - id: TASK-8867\n title: Use the digital TLS panel, then you can transmit the haptic system!\n label: bug\n status: backlog\n priority: high\n - id: TASK-8868\n title: The RAM monitor is down, parsing the virtual circuit will help.\n label: feature\n status: todo\n priority: low\n - id: TASK-8869\n title: Update the onboarding documentation for team members.\n label: documentation\n status: in progress\n priority: medium\n - id: TASK-8870\n title: Review project permissions before the next release.\n label: bug\n status: done\n priority: high\n - id: TASK-8871\n title: Make the settings form usable with keyboard navigation.\n label: feature\n status: canceled\n priority: low\n - id: TASK-8872\n title: You can’t compress the program without quantifying the open-source SSD pixel!\n label: documentation\n status: backlog\n priority: medium\n - id: TASK-8873\n title: Try to calculate the EXE feed, maybe it will index the multi-byte pixel!\n label: bug\n status: todo\n priority: high\n - id: TASK-8874\n title: We need to bypass the neural TCP card!\n label: feature\n status: in progress\n priority: low\n - id: TASK-8875\n title: The SAS interface is down, bypass the open-source pixel so we can back up the PNG bandwidth!\n label: documentation\n status: done\n priority: medium\n - id: TASK-8876\n title: I’ll transmit the primary HTTP panel, that should feed the UTF-8 protocol!\n label: bug\n status: canceled\n priority: high\n - id: TASK-8877\n title: Use the digital TLS panel, then you can transmit the haptic system!\n label: feature\n status: backlog\n priority: low\n - id: TASK-8878\n title: The RAM monitor is down, parsing the virtual circuit will help.\n label: documentation\n status: todo\n priority: medium\n - id: TASK-8879\n title: Update the onboarding documentation for team members.\n label: bug\n status: in progress\n priority: high\n - id: TASK-8880\n title: Review project permissions before the next release.\n label: feature\n status: done\n priority: low\n - id: TASK-8881\n title: Make the settings form usable with keyboard navigation.\n label: documentation\n status: canceled\n priority: medium\n editorOpen: false\n deleteOpen: false\n draft: {}\n loading: false\n saving: false\n uiError: null\n tableView: \"\"\n serverMode: false\n selectedIds: []\n total: null\n hasNextPage: false\n reloadRequested: 0\n pageNotice: \"\"\n bulkOpen: false\n bulkRequest: null\n bulkSubmit: false\n bulkAction: \"\"\n bulkStatus: backlog\n bulkSummary: \"\"\n bulkError: null\n bulkConfirmDisabled: true\n bulkDisabled: true\n bulkUnavailable: Select records with known versions to enable batch actions.\n blocks:\n - type: PageLayout\n children:\n - type: Box\n props:\n className: \"!flex-row items-start justify-between gap-4 mb-6\"\n children:\n - type: Box\n props:\n gap: xs\n children:\n - type: Heading\n props:\n level: 1\n text: Tasks\n - type: Paragraph\n props:\n text: Sample tasks for triage and prioritization.\n muted: true\n size: sm\n - type: Button\n props:\n label: Create\n variant: default\n events:\n onClick:\n - action: SetState\n params:\n path: draft\n value:\n action: create\n - action: SetState\n params:\n path: uiError\n value: null\n - action: SetState\n params:\n path: editorOpen\n value: true\n - type: Paragraph\n visible:\n _state: serverMode\n props:\n text:\n _state: pageNotice\n muted: true\n size: sm\n - type: DataTable\n props:\n server:\n _state: serverMode\n total:\n _state: total\n hasNextPage:\n _state: hasNextPage\n selectedIds:\n _if:\n - _state: serverMode\n - _state: selectedIds\n - null\n rows:\n _state: rows\n loading:\n _state: loading\n error:\n _state: uiError.message\n columns:\n - key: id\n label: Task\n kind: muted\n - key: title\n label: Title\n kind: text\n badgeKey: label\n - key: status\n label: Status\n kind: badge\n - key: priority\n label: Priority\n kind: text\n filters:\n - key: status\n label: Status\n options:\n - value: backlog\n label: Backlog\n - value: todo\n label: Todo\n - value: in progress\n label: In Progress\n - value: done\n label: Done\n - value: canceled\n label: Canceled\n - key: priority\n label: Priority\n options:\n - value: low\n label: Low\n - value: medium\n label: Medium\n - value: high\n label: High\n searchKeys:\n - id\n - title\n searchPlaceholder: Filter tasks...\n actions:\n - id: edit\n label: Edit\n - id: delete\n label: Delete\n bulkActions:\n _if:\n - _state: serverMode\n - - id: delete\n label: Delete selected\n disabled:\n _state: bulkDisabled\n - id: status\n label: Change status\n disabled:\n _state: bulkDisabled\n - - id: delete\n label: Delete selected\n disabled: true\n view:\n _state: tableView\n minWidth: 950\n events:\n onRowAction:\n - action: SetState\n params:\n path: uiError\n value: null\n - action: SetState\n params:\n path: draft\n value:\n _event: values\n - action: SetState\n params:\n path: editorOpen\n value:\n _eq:\n - _state: draft.action\n - edit\n - action: SetState\n params:\n path: deleteOpen\n value:\n _eq:\n - _state: draft.action\n - delete\n onBulkAction:\n - action: SetState\n params:\n path: bulkRequest\n value:\n _event: values\n onSelectionChange:\n - action: SetState\n params:\n path: selectionEvent\n value:\n _event: values\n - action: SetState\n params:\n path: selectedIds\n value:\n _state: selectionEvent.ids\n onViewChange:\n - action: SetState\n params:\n path: tableView\n value:\n _event: value\n - type: Paragraph\n visible:\n _state: serverMode\n props:\n text:\n _state: bulkUnavailable\n muted: true\n size: sm\n - type: Button\n visible:\n _state: serverMode\n props:\n label: Reload first page\n variant: outline\n disabled:\n _or:\n - _state: loading\n - _state: saving\n events:\n onClick:\n - action: SetState\n params:\n path: reloadRequested\n value:\n _not:\n _state: reloadRequested\n - type: Modal\n props:\n open:\n _state: bulkOpen\n pending:\n _state: saving\n title:\n _if:\n - _eq:\n - _state: bulkAction\n - delete\n - Delete selected records?\n - Change selected status?\n description: Review the selected IDs, versions and change before confirming.\n children:\n - type: Field\n visible:\n _eq:\n - _state: bulkAction\n - status\n props:\n name: bulkStatus\n label: New status\n kind: select\n value:\n _bindState: bulkStatus\n disabled:\n _state: saving\n options:\n - value: backlog\n label: Backlog\n - value: todo\n label: Todo\n - value: in progress\n label: In Progress\n - value: done\n label: Done\n - value: canceled\n label: Canceled\n - type: Paragraph\n props:\n text:\n _state: bulkSummary\n className: \"whitespace-pre-wrap break-all max-h-48 overflow-auto font-mono text-xs\"\n - type: Paragraph\n visible:\n _state: bulkError\n props:\n text:\n _state: bulkError.message\n className: \"text-destructive\"\n - type: Box\n props:\n direction: row\n justify: end\n children:\n - type: Button\n props:\n label: Cancel\n variant: outline\n disabled:\n _state: saving\n events:\n onClick:\n - action: SetState\n params:\n path: bulkOpen\n value: false\n - type: Button\n props:\n label: Confirm batch\n disabled:\n _state: bulkConfirmDisabled\n events:\n onClick:\n - action: SetState\n params:\n path: bulkSubmit\n value:\n _not:\n _state: bulkSubmit\n events:\n onClose:\n - action: SetState\n params:\n path: bulkOpen\n value: false\n - type: Drawer\n props:\n open:\n _state: editorOpen\n pending:\n _state: saving\n title: Create or edit task\n description: Update the details below. Click save when you’re done.\n children:\n - type: Form\n props:\n label: Record details\n pending:\n _state: saving\n idempotent: true\n children:\n - type: Field\n props:\n name: title\n label: Title\n kind: text\n value:\n _bindState: draft.title\n required: true\n - type: Field\n props:\n name: label\n label: Label\n kind: select\n value:\n _bindState: draft.label\n required: true\n options:\n - value: documentation\n label: Documentation\n - value: bug\n label: Bug\n - value: feature\n label: Feature\n - type: Field\n props:\n name: status\n label: Status\n kind: select\n value:\n _bindState: draft.status\n required: true\n options:\n - value: backlog\n label: Backlog\n - value: todo\n label: Todo\n - value: in progress\n label: In Progress\n - value: done\n label: Done\n - value: canceled\n label: Canceled\n - type: Field\n props:\n name: priority\n label: Priority\n kind: radio\n value:\n _bindState: draft.priority\n required: true\n options:\n - value: low\n label: Low\n - value: medium\n label: Medium\n - value: high\n label: High\n - type: Paragraph\n props:\n text:\n _state: uiError.message\n muted: true\n size: sm\n visible:\n _state: uiError\n - type: Form.Submit\n props:\n label: Save changes\n disabled:\n _state: saving\n events:\n onSubmit:\n - action: Request\n params:\n connectionId: tasks-db\n request:\n id: mutate-tasks\n connectionId: tasks-db\n payload:\n operation:\n _if:\n - _eq:\n - _state: draft.action\n - create\n - InsertOne\n - UpdateOne\n filter:\n id:\n _state: draft.id\n data:\n _event: values\n idempotencyKey:\n _event: value\n expectedVersion:\n _state: draft.version\n loadingPath: saving\n errorPath: uiError\n onSuccess:\n - action: SetState\n params:\n path: editorOpen\n value: false\n - action: SetState\n params:\n path: deleteOpen\n value: false\n - action: Request\n params:\n connectionId: tasks-db\n request:\n id: load-tasks\n connectionId: tasks-db\n payload:\n operation: FindAll\n responsePath: rows\n loadingPath: loading\n errorPath: uiError\n onError:\n - action: SetState\n params:\n path: requestFailed\n value: true\n onError:\n - action: SetState\n params:\n path: requestFailed\n value: true\n events:\n onClose:\n - action: SetState\n params:\n path: editorOpen\n value: false\n - type: Modal\n props:\n open:\n _state: deleteOpen\n pending:\n _state: saving\n title: Delete this record?\n description: This action cannot be undone. The record will be permanently removed.\n children:\n - type: Paragraph\n visible:\n _state: uiError\n props:\n text:\n _state: uiError.message\n className: \"text-destructive\"\n - type: Box\n props:\n direction: row\n justify: end\n children:\n - type: Button\n props:\n label: Cancel\n variant: outline\n disabled:\n _state: saving\n events:\n onClick:\n - action: SetState\n params:\n path: deleteOpen\n value: false\n - type: Button\n props:\n label: Delete\n variant: destructive\n disabled:\n _state: saving\n events:\n onClick:\n - action: Request\n params:\n connectionId: tasks-db\n request:\n id: mutate-tasks\n connectionId: tasks-db\n payload:\n operation: DeleteOne\n filter:\n id:\n _state: draft.id\n expectedVersion:\n _state: draft.version\n loadingPath: saving\n errorPath: uiError\n onSuccess:\n - action: SetState\n params:\n path: editorOpen\n value: false\n - action: SetState\n params:\n path: deleteOpen\n value: false\n - action: Request\n params:\n connectionId: tasks-db\n request:\n id: load-tasks\n connectionId: tasks-db\n payload:\n operation: FindAll\n responsePath: rows\n loadingPath: loading\n errorPath: uiError\n onError:\n - action: SetState\n params:\n path: requestFailed\n value: true\n onError:\n - action: SetState\n params:\n path: requestFailed\n value: true\n events:\n onClose:\n - action: SetState\n params:\n path: deleteOpen\n value: false\n template: shadcn-admin-shell\n urlState:\n tableView:\n param: view\n default: \"\"\n - id: users\n lifecycle:\n onMount:\n - action: Request\n params:\n connectionId: users-db\n request:\n id: load-users\n connectionId: users-db\n payload:\n operation: FindAll\n responsePath: rows\n loadingPath: loading\n errorPath: uiError\n onError:\n - action: SetState\n params:\n path: requestFailed\n value: true\n path: /users\n title: Users\n state:\n direction: \"ltr\"\n font: \"Inter\"\n selectionEvent: null\n theme: \"light\"\n currentPath: /users\n rows:\n - id: user-1\n username: liam.anderson\n firstName: Liam\n lastName: Anderson\n email: liam.anderson@example.com\n phoneNumber: +1 (555) 010-0000\n status: active\n role: admin\n - id: user-2\n username: olivia.baker\n firstName: Olivia\n lastName: Baker\n email: olivia.baker@example.com\n phoneNumber: +1 (555) 010-0001\n status: inactive\n role: manager\n - id: user-3\n username: noah.carter\n firstName: Noah\n lastName: Carter\n email: noah.carter@example.com\n phoneNumber: +1 (555) 010-0002\n status: invited\n role: cashier\n - id: user-4\n username: emma.davis\n firstName: Emma\n lastName: Davis\n email: emma.davis@example.com\n phoneNumber: +1 (555) 010-0003\n status: suspended\n role: superadmin\n - id: user-5\n username: elijah.evans\n firstName: Elijah\n lastName: Evans\n email: elijah.evans@example.com\n phoneNumber: +1 (555) 010-0004\n status: active\n role: admin\n - id: user-6\n username: amelia.foster\n firstName: Amelia\n lastName: Foster\n email: amelia.foster@example.com\n phoneNumber: +1 (555) 010-0005\n status: inactive\n role: manager\n - id: user-7\n username: james.garcia\n firstName: James\n lastName: Garcia\n email: james.garcia@example.com\n phoneNumber: +1 (555) 010-0006\n status: invited\n role: cashier\n - id: user-8\n username: charlotte.harris\n firstName: Charlotte\n lastName: Harris\n email: charlotte.harris@example.com\n phoneNumber: +1 (555) 010-0007\n status: suspended\n role: superadmin\n - id: user-9\n username: william.irwin\n firstName: William\n lastName: Irwin\n email: william.irwin@example.com\n phoneNumber: +1 (555) 010-0008\n status: active\n role: admin\n - id: user-10\n username: sophia.jones\n firstName: Sophia\n lastName: Jones\n email: sophia.jones@example.com\n phoneNumber: +1 (555) 010-0009\n status: inactive\n role: manager\n - id: user-11\n username: benjamin.kim\n firstName: Benjamin\n lastName: Kim\n email: benjamin.kim@example.com\n phoneNumber: +1 (555) 010-0010\n status: invited\n role: cashier\n - id: user-12\n username: isabella.lewis\n firstName: Isabella\n lastName: Lewis\n email: isabella.lewis@example.com\n phoneNumber: +1 (555) 010-0011\n status: suspended\n role: superadmin\n - id: user-13\n username: liam.anderson\n firstName: Liam\n lastName: Anderson\n email: liam.anderson@example.com\n phoneNumber: +1 (555) 010-0012\n status: active\n role: admin\n - id: user-14\n username: olivia.baker\n firstName: Olivia\n lastName: Baker\n email: olivia.baker@example.com\n phoneNumber: +1 (555) 010-0013\n status: inactive\n role: manager\n - id: user-15\n username: noah.carter\n firstName: Noah\n lastName: Carter\n email: noah.carter@example.com\n phoneNumber: +1 (555) 010-0014\n status: invited\n role: cashier\n - id: user-16\n username: emma.davis\n firstName: Emma\n lastName: Davis\n email: emma.davis@example.com\n phoneNumber: +1 (555) 010-0015\n status: suspended\n role: superadmin\n - id: user-17\n username: elijah.evans\n firstName: Elijah\n lastName: Evans\n email: elijah.evans@example.com\n phoneNumber: +1 (555) 010-0016\n status: active\n role: admin\n - id: user-18\n username: amelia.foster\n firstName: Amelia\n lastName: Foster\n email: amelia.foster@example.com\n phoneNumber: +1 (555) 010-0017\n status: inactive\n role: manager\n - id: user-19\n username: james.garcia\n firstName: James\n lastName: Garcia\n email: james.garcia@example.com\n phoneNumber: +1 (555) 010-0018\n status: invited\n role: cashier\n - id: user-20\n username: charlotte.harris\n firstName: Charlotte\n lastName: Harris\n email: charlotte.harris@example.com\n phoneNumber: +1 (555) 010-0019\n status: suspended\n role: superadmin\n - id: user-21\n username: william.irwin\n firstName: William\n lastName: Irwin\n email: william.irwin@example.com\n phoneNumber: +1 (555) 010-0020\n status: active\n role: admin\n - id: user-22\n username: sophia.jones\n firstName: Sophia\n lastName: Jones\n email: sophia.jones@example.com\n phoneNumber: +1 (555) 010-0021\n status: inactive\n role: manager\n - id: user-23\n username: benjamin.kim\n firstName: Benjamin\n lastName: Kim\n email: benjamin.kim@example.com\n phoneNumber: +1 (555) 010-0022\n status: invited\n role: cashier\n - id: user-24\n username: isabella.lewis\n firstName: Isabella\n lastName: Lewis\n email: isabella.lewis@example.com\n phoneNumber: +1 (555) 010-0023\n status: suspended\n role: superadmin\n - id: user-25\n username: liam.anderson\n firstName: Liam\n lastName: Anderson\n email: liam.anderson@example.com\n phoneNumber: +1 (555) 010-0024\n status: active\n role: admin\n - id: user-26\n username: olivia.baker\n firstName: Olivia\n lastName: Baker\n email: olivia.baker@example.com\n phoneNumber: +1 (555) 010-0025\n status: inactive\n role: manager\n - id: user-27\n username: noah.carter\n firstName: Noah\n lastName: Carter\n email: noah.carter@example.com\n phoneNumber: +1 (555) 010-0026\n status: invited\n role: cashier\n - id: user-28\n username: emma.davis\n firstName: Emma\n lastName: Davis\n email: emma.davis@example.com\n phoneNumber: +1 (555) 010-0027\n status: suspended\n role: superadmin\n - id: user-29\n username: elijah.evans\n firstName: Elijah\n lastName: Evans\n email: elijah.evans@example.com\n phoneNumber: +1 (555) 010-0028\n status: active\n role: admin\n - id: user-30\n username: amelia.foster\n firstName: Amelia\n lastName: Foster\n email: amelia.foster@example.com\n phoneNumber: +1 (555) 010-0029\n status: inactive\n role: manager\n - id: user-31\n username: james.garcia\n firstName: James\n lastName: Garcia\n email: james.garcia@example.com\n phoneNumber: +1 (555) 010-0030\n status: invited\n role: cashier\n - id: user-32\n username: charlotte.harris\n firstName: Charlotte\n lastName: Harris\n email: charlotte.harris@example.com\n phoneNumber: +1 (555) 010-0031\n status: suspended\n role: superadmin\n - id: user-33\n username: william.irwin\n firstName: William\n lastName: Irwin\n email: william.irwin@example.com\n phoneNumber: +1 (555) 010-0032\n status: active\n role: admin\n - id: user-34\n username: sophia.jones\n firstName: Sophia\n lastName: Jones\n email: sophia.jones@example.com\n phoneNumber: +1 (555) 010-0033\n status: inactive\n role: manager\n - id: user-35\n username: benjamin.kim\n firstName: Benjamin\n lastName: Kim\n email: benjamin.kim@example.com\n phoneNumber: +1 (555) 010-0034\n status: invited\n role: cashier\n - id: user-36\n username: isabella.lewis\n firstName: Isabella\n lastName: Lewis\n email: isabella.lewis@example.com\n phoneNumber: +1 (555) 010-0035\n status: suspended\n role: superadmin\n editorOpen: false\n deleteOpen: false\n draft: {}\n loading: false\n saving: false\n uiError: null\n tableView: \"\"\n serverMode: false\n selectedIds: []\n total: null\n hasNextPage: false\n reloadRequested: 0\n pageNotice: \"\"\n bulkOpen: false\n bulkRequest: null\n bulkSubmit: false\n bulkAction: \"\"\n bulkStatus: active\n bulkSummary: \"\"\n bulkError: null\n bulkConfirmDisabled: true\n bulkDisabled: true\n bulkUnavailable: Select records with known versions to enable batch actions.\n blocks:\n - type: PageLayout\n children:\n - type: Box\n props:\n className: \"!flex-row items-start justify-between gap-4 mb-6\"\n children:\n - type: Box\n props:\n gap: xs\n children:\n - type: Heading\n props:\n level: 1\n text: Users\n - type: Paragraph\n props:\n text: Manage your users and their roles here.\n muted: true\n size: sm\n - type: Button\n props:\n label: Add User\n variant: default\n events:\n onClick:\n - action: SetState\n params:\n path: draft\n value:\n action: create\n - action: SetState\n params:\n path: uiError\n value: null\n - action: SetState\n params:\n path: editorOpen\n value: true\n - type: Paragraph\n visible:\n _state: serverMode\n props:\n text:\n _state: pageNotice\n muted: true\n size: sm\n - type: DataTable\n props:\n server:\n _state: serverMode\n total:\n _state: total\n hasNextPage:\n _state: hasNextPage\n selectedIds:\n _if:\n - _state: serverMode\n - _state: selectedIds\n - null\n rows:\n _state: rows\n loading:\n _state: loading\n error:\n _state: uiError.message\n columns:\n - key: username\n label: Username\n kind: muted\n - key: firstName\n displayKeys: [firstName, lastName]\n label: Name\n kind: text\n - key: email\n label: Email\n kind: muted\n - key: phoneNumber\n label: Phone Number\n kind: muted\n - key: status\n label: Status\n kind: badge\n - key: role\n label: Role\n kind: text\n filters:\n - key: status\n label: Status\n options:\n - value: active\n label: Active\n - value: inactive\n label: Inactive\n - value: invited\n label: Invited\n - value: suspended\n label: Suspended\n - key: role\n label: Role\n options:\n - value: admin\n label: Admin\n - value: manager\n label: Manager\n - value: cashier\n label: Cashier\n - value: superadmin\n label: Superadmin\n searchKeys:\n - username\n - firstName\n - lastName\n - email\n searchPlaceholder: Filter users...\n actions:\n - id: edit\n label: Edit\n - id: delete\n label: Delete\n bulkActions:\n _if:\n - _state: serverMode\n - - id: delete\n label: Delete selected\n disabled:\n _state: bulkDisabled\n - id: status\n label: Change status\n disabled:\n _state: bulkDisabled\n - - id: delete\n label: Delete selected\n disabled: true\n view:\n _state: tableView\n minWidth: 950\n events:\n onRowAction:\n - action: SetState\n params:\n path: uiError\n value: null\n - action: SetState\n params:\n path: draft\n value:\n _event: values\n - action: SetState\n params:\n path: editorOpen\n value:\n _eq:\n - _state: draft.action\n - edit\n - action: SetState\n params:\n path: deleteOpen\n value:\n _eq:\n - _state: draft.action\n - delete\n onBulkAction:\n - action: SetState\n params:\n path: bulkRequest\n value:\n _event: values\n onSelectionChange:\n - action: SetState\n params:\n path: selectionEvent\n value:\n _event: values\n - action: SetState\n params:\n path: selectedIds\n value:\n _state: selectionEvent.ids\n onViewChange:\n - action: SetState\n params:\n path: tableView\n value:\n _event: value\n - type: Paragraph\n visible:\n _state: serverMode\n props:\n text:\n _state: bulkUnavailable\n muted: true\n size: sm\n - type: Button\n visible:\n _state: serverMode\n props:\n label: Reload first page\n variant: outline\n disabled:\n _or:\n - _state: loading\n - _state: saving\n events:\n onClick:\n - action: SetState\n params:\n path: reloadRequested\n value:\n _not:\n _state: reloadRequested\n - type: Modal\n props:\n open:\n _state: bulkOpen\n pending:\n _state: saving\n title:\n _if:\n - _eq:\n - _state: bulkAction\n - delete\n - Delete selected records?\n - Change selected status?\n description: Review the selected IDs, versions and change before confirming.\n children:\n - type: Field\n visible:\n _eq:\n - _state: bulkAction\n - status\n props:\n name: bulkStatus\n label: New status\n kind: select\n value:\n _bindState: bulkStatus\n disabled:\n _state: saving\n options:\n - value: active\n label: Active\n - value: inactive\n label: Inactive\n - value: invited\n label: Invited\n - value: suspended\n label: Suspended\n - type: Paragraph\n props:\n text:\n _state: bulkSummary\n className: \"whitespace-pre-wrap break-all max-h-48 overflow-auto font-mono text-xs\"\n - type: Paragraph\n visible:\n _state: bulkError\n props:\n text:\n _state: bulkError.message\n className: \"text-destructive\"\n - type: Box\n props:\n direction: row\n justify: end\n children:\n - type: Button\n props:\n label: Cancel\n variant: outline\n disabled:\n _state: saving\n events:\n onClick:\n - action: SetState\n params:\n path: bulkOpen\n value: false\n - type: Button\n props:\n label: Confirm batch\n disabled:\n _state: bulkConfirmDisabled\n events:\n onClick:\n - action: SetState\n params:\n path: bulkSubmit\n value:\n _not:\n _state: bulkSubmit\n events:\n onClose:\n - action: SetState\n params:\n path: bulkOpen\n value: false\n - type: Drawer\n props:\n open:\n _state: editorOpen\n pending:\n _state: saving\n title: Create or edit user\n description: Update the details below. Click save when you’re done.\n children:\n - type: Form\n props:\n label: Record details\n pending:\n _state: saving\n idempotent: true\n children:\n - type: Field\n props:\n name: username\n label: Username\n kind: text\n value:\n _bindState: draft.username\n required: true\n - type: Field\n props:\n name: firstName\n label: First name\n kind: text\n value:\n _bindState: draft.firstName\n required: true\n - type: Field\n props:\n name: lastName\n label: Last name\n kind: text\n value:\n _bindState: draft.lastName\n required: true\n - type: Field\n props:\n name: email\n label: Email\n kind: email\n value:\n _bindState: draft.email\n required: true\n - type: Field\n props:\n name: phoneNumber\n label: Phone Number\n kind: text\n value:\n _bindState: draft.phoneNumber\n required: true\n - type: Field\n props:\n name: status\n label: Status\n kind: select\n value:\n _bindState: draft.status\n required: true\n options:\n - value: active\n label: Active\n - value: inactive\n label: Inactive\n - value: invited\n label: Invited\n - value: suspended\n label: Suspended\n - type: Field\n props:\n name: role\n label: Role\n kind: select\n value:\n _bindState: draft.role\n required: true\n options:\n - value: admin\n label: Admin\n - value: manager\n label: Manager\n - value: cashier\n label: Cashier\n - value: superadmin\n label: Superadmin\n - type: Paragraph\n props:\n text:\n _state: uiError.message\n muted: true\n size: sm\n visible:\n _state: uiError\n - type: Form.Submit\n props:\n label: Save changes\n disabled:\n _state: saving\n events:\n onSubmit:\n - action: Request\n params:\n connectionId: users-db\n request:\n id: mutate-users\n connectionId: users-db\n payload:\n operation:\n _if:\n - _eq:\n - _state: draft.action\n - create\n - InsertOne\n - UpdateOne\n filter:\n id:\n _state: draft.id\n data:\n _event: values\n idempotencyKey:\n _event: value\n expectedVersion:\n _state: draft.version\n loadingPath: saving\n errorPath: uiError\n onSuccess:\n - action: SetState\n params:\n path: editorOpen\n value: false\n - action: SetState\n params:\n path: deleteOpen\n value: false\n - action: Request\n params:\n connectionId: users-db\n request:\n id: load-users\n connectionId: users-db\n payload:\n operation: FindAll\n responsePath: rows\n loadingPath: loading\n errorPath: uiError\n onError:\n - action: SetState\n params:\n path: requestFailed\n value: true\n onError:\n - action: SetState\n params:\n path: requestFailed\n value: true\n events:\n onClose:\n - action: SetState\n params:\n path: editorOpen\n value: false\n - type: Modal\n props:\n open:\n _state: deleteOpen\n pending:\n _state: saving\n title: Delete this record?\n description: This action cannot be undone. The record will be permanently removed.\n children:\n - type: Paragraph\n visible:\n _state: uiError\n props:\n text:\n _state: uiError.message\n className: \"text-destructive\"\n - type: Box\n props:\n direction: row\n justify: end\n children:\n - type: Button\n props:\n label: Cancel\n variant: outline\n disabled:\n _state: saving\n events:\n onClick:\n - action: SetState\n params:\n path: deleteOpen\n value: false\n - type: Button\n props:\n label: Delete\n variant: destructive\n disabled:\n _state: saving\n events:\n onClick:\n - action: Request\n params:\n connectionId: users-db\n request:\n id: mutate-users\n connectionId: users-db\n payload:\n operation: DeleteOne\n filter:\n id:\n _state: draft.id\n expectedVersion:\n _state: draft.version\n loadingPath: saving\n errorPath: uiError\n onSuccess:\n - action: SetState\n params:\n path: editorOpen\n value: false\n - action: SetState\n params:\n path: deleteOpen\n value: false\n - action: Request\n params:\n connectionId: users-db\n request:\n id: load-users\n connectionId: users-db\n payload:\n operation: FindAll\n responsePath: rows\n loadingPath: loading\n errorPath: uiError\n onError:\n - action: SetState\n params:\n path: requestFailed\n value: true\n onError:\n - action: SetState\n params:\n path: requestFailed\n value: true\n events:\n onClose:\n - action: SetState\n params:\n path: deleteOpen\n value: false\n template: shadcn-admin-shell\n urlState:\n tableView:\n param: view\n default: \"\"\n - id: apps\n path: /apps\n title: Apps\n state:\n direction: \"ltr\"\n font: \"Inter\"\n submitted: false\n theme: \"light\"\n currentPath: /apps\n integrationSettings: []\n editorOpen: false\n draft: {}\n saving: false\n uiError: null\n blocks:\n - type: PageLayout\n children:\n - type: Box\n props:\n className: \"!flex-row items-start justify-between gap-4 mb-6\"\n children:\n - type: Box\n props:\n gap: xs\n children:\n - type: Heading\n props:\n level: 1\n text: App Integrations\n - type: Paragraph\n props:\n text: Here’s a list of your apps for the integration!\n muted: true\n size: sm\n - type: IntegrationGrid\n props:\n items:\n - id: telegram\n brand: telegram\n name: Telegram\n description: Connect with Telegram for real-time communication.\n icon: boxes\n available: false\n connected: false\n - id: notion\n brand: notion\n name: Notion\n description: Sync Notion pages for collaboration.\n icon: boxes\n available: false\n connected: false\n - id: figma\n brand: figma\n name: Figma\n description: View and collaborate on Figma designs in one place.\n icon: boxes\n available: false\n connected: false\n - id: trello\n brand: trello\n name: Trello\n description: Sync Trello cards for project management.\n icon: boxes\n available: false\n connected: false\n - id: slack\n brand: slack\n name: Slack\n description: Integrate Slack for team communication.\n icon: boxes\n available: false\n connected: false\n - id: zoom\n brand: zoom\n name: Zoom\n description: Host Zoom meetings from your dashboard.\n icon: boxes\n available: false\n connected: false\n - id: stripe\n brand: stripe\n name: Stripe\n description: Manage Stripe transactions and payments.\n icon: boxes\n available: false\n connected: false\n - id: gmail\n brand: gmail\n name: Gmail\n description: Access and manage Gmail messages.\n icon: boxes\n available: false\n connected: false\n - id: medium\n brand: medium\n name: Medium\n description: Explore and share Medium stories.\n icon: boxes\n available: false\n connected: false\n - id: skype\n brand: skype\n name: Skype\n description: Connect with Skype contacts.\n icon: boxes\n available: false\n connected: false\n - id: docker\n brand: docker\n name: Docker\n description: Manage Docker containers.\n icon: boxes\n available: false\n connected: false\n - id: github\n brand: github\n name: GitHub\n description: Connect your repositories and issues.\n icon: boxes\n available: false\n connected: false\n - id: gitlab\n brand: gitlab\n name: GitLab\n description: Coordinate projects with GitLab.\n icon: boxes\n available: false\n connected: false\n - id: discord\n brand: discord\n name: Discord\n description: Connect with your Discord community.\n icon: boxes\n available: false\n connected: false\n - id: whatsapp\n brand: whatsapp\n name: WhatsApp\n description: Keep in touch with your contacts.\n icon: boxes\n available: false\n connected: false\n configurable: true\n configurations:\n _state: integrationSettings\n pending:\n _state: saving\n error:\n _state: uiError.message\n events:\n onConfigure:\n - action: SetState\n params:\n path: draft\n value:\n _event: values\n - action: SetState\n params:\n path: uiError\n value: null\n - action: SetState\n params:\n path: editorOpen\n value: true\n - type: Drawer\n props:\n title: Integration preferences\n description: Save workspace configuration. External provider authorization remains unavailable.\n open:\n _state: editorOpen\n pending:\n _state: saving\n events:\n onClose:\n - action: SetState\n params:\n path: editorOpen\n value: false\n children:\n - type: Form\n props:\n label: Integration preferences\n pending:\n _state: saving\n idempotent: true\n children:\n - type: Field\n props:\n name: enabled\n label: Enable in workspace\n kind: switch\n value:\n _bindState: draft.enabled\n - type: Field\n props:\n name: label\n label: Display label\n kind: text\n value:\n _bindState: draft.label\n - type: Field\n props:\n name: channel\n label: Channel\n kind: text\n value:\n _bindState: draft.channel\n - type: Paragraph\n props:\n text:\n _state: uiError.message\n visible:\n _state: uiError\n - type: Form.Submit\n props:\n label: Save preferences\n disabled:\n _state: saving\n events:\n onSubmit:\n - action: SetState\n params:\n path: submitted\n value:\n _event: values\n - action: Request\n params:\n connectionId: integrations-db\n request:\n id: save-integration\n connectionId: integrations-db\n payload:\n operation:\n _if:\n - _state: draft.id\n - UpdateOne\n - InsertOne\n filter:\n id:\n _state: draft.id\n expectedVersion:\n _state: draft.version\n idempotencyKey:\n _event: value\n data:\n provider:\n _state: draft.provider\n enabled:\n _state: submitted.enabled\n config:\n label:\n _state: submitted.label\n channel:\n _state: submitted.channel\n loadingPath: saving\n errorPath: uiError\n onSuccess:\n - &a2\n action: Request\n params:\n connectionId: integrations-db\n request:\n id: load-integrations\n connectionId: integrations-db\n payload:\n operation: FindAll\n responsePath: integrationSettings\n loadingPath: loading\n errorPath: uiError\n onError: &a1\n - action: SetState\n params:\n path: requestFailed\n value: true\n - action: SetState\n params:\n path: editorOpen\n value: false\n onError: *a1\n template: shadcn-admin-shell\n lifecycle:\n onMount:\n - *a2\n - id: chats\n path: /chats\n title: Chats\n state:\n currentUserId: \"user-demo\"\n direction: \"ltr\"\n font: \"Inter\"\n messageSubmission: null\n theme: \"light\"\n currentPath: /chats\n conversations:\n - id: conversation-0\n name: Alex Johnson\n initials: AJ\n preview: Hey, how’s it going?\n - id: conversation-1\n name: Sarah Wilson\n initials: SW\n preview: Did you see the new design?\n - id: conversation-2\n name: Michael Brown\n initials: MB\n preview: Thanks for your help!\n - id: conversation-3\n name: Emily Davis\n initials: ED\n preview: Let’s catch up tomorrow.\n - id: conversation-4\n name: David Miller\n initials: DM\n preview: The update looks great.\n - id: conversation-5\n name: Jessica Garcia\n initials: JG\n preview: Can you review my pull request?\n messages:\n - id: m1\n conversationId: conversation-0\n text: Hey, how’s it going?\n time: 10:30 AM\n own: false\n - id: m2\n conversationId: conversation-0\n text: Pretty good! Working on the dashboard.\n time: 10:31 AM\n own: true\n draft: \"\"\n selectedId: \"\"\n sending: false\n uiError: null\n blocks:\n - type: PageLayout\n children:\n - type: ChatPanel\n props:\n conversations:\n _state: conversations\n messages:\n _state: messages\n selectedId:\n _state: selectedId\n draft:\n _state: draft\n pending:\n _state: sending\n error:\n _state: uiError.message\n canSend: true\n currentUserId:\n _state: currentUserId\n events:\n onSelect:\n - action: SetState\n params:\n path: selectedId\n value:\n _event: value\n onDraftChange:\n - action: SetState\n params:\n path: draft\n value:\n _event: value\n onSend:\n - action: SetState\n params:\n path: messageSubmission\n value:\n _event: values\n - action: Request\n params:\n connectionId: messages-db\n request:\n id: send-message\n connectionId: messages-db\n payload:\n operation: InsertOne\n data:\n conversationId:\n _state: messageSubmission.conversationId\n text:\n _state: messageSubmission.text\n idempotencyKey:\n _state: messageSubmission.requestId\n loadingPath: sending\n errorPath: uiError\n onSuccess:\n - action: Request\n params:\n connectionId: messages-db\n request:\n id: load-messages\n connectionId: messages-db\n payload:\n operation: FindAll\n responsePath: messages\n errorPath: uiError\n onError: &a3\n - action: SetState\n params:\n path: requestFailed\n value: true\n - action: SetState\n params:\n path: draft\n value: \"\"\n onError: *a3\n - type: Paragraph\n props:\n text: Workspace messages are stored here. External delivery is not configured.\n muted: true\n size: sm\n template: shadcn-admin-shell\n lifecycle:\n onMount:\n - action: Request\n params:\n connectionId: conversations-db\n request:\n id: load-conversations\n connectionId: conversations-db\n payload:\n operation: FindAll\n responsePath: conversations\n errorPath: uiError\n onError: *a3\n - action: Request\n params:\n connectionId: messages-db\n request:\n id: load-messages\n connectionId: messages-db\n payload:\n operation: FindAll\n responsePath: messages\n errorPath: uiError\n onError: *a3\n - id: settings-profile\n path: /settings/profile\n title: Settings · Profile\n state:\n direction: \"ltr\"\n font: \"Inter\"\n loading: false\n theme: \"light\"\n currentPath: /settings/profile\n saving: false\n uiError: null\n saved: false\n form:\n username: shadcn\n email: m@example.com\n bio: I own a computer.\n urls:\n - https://shadcn.com\n preferences: []\n blocks:\n - type: PageLayout\n children:\n - type: Box\n props:\n className: \"!flex-row items-start justify-between gap-4 mb-6\"\n children:\n - type: Box\n props:\n gap: xs\n children:\n - type: Heading\n props:\n level: 1\n text: Settings\n - type: Paragraph\n props:\n text: Manage your account settings and set e-mail preferences.\n muted: true\n size: sm\n - type: Divider\n - type: Box\n props:\n className: \"!flex-col gap-10 lg:!flex-row\"\n children:\n - type: Box\n props:\n className: \"w-full shrink-0 lg:!flex-col lg:w-48 [&>a]:shrink-0 [&>a]:px-3 [&>a]:py-2 [&>a]:rounded-md lg:[&>a]:px-0 lg:[&>a]:py-0\"\n direction: row\n wrap: true\n gap: md\n children:\n - type: Link\n props:\n label: Profile\n href: /settings/profile\n variant: default\n className: \"bg-muted font-medium lg:bg-transparent\"\n - type: Link\n props:\n label: Account\n href: /settings/account\n variant: muted\n - type: Link\n props:\n label: Appearance\n href: /settings/appearance\n variant: muted\n - type: Link\n props:\n label: Notifications\n href: /settings/notifications\n variant: muted\n - type: Link\n props:\n label: Display\n href: /settings/display\n variant: muted\n - type: Box\n props:\n className: max-w-2xl flex-1\n gap: lg\n children:\n - type: Box\n props:\n className: \"!flex-row items-start justify-between gap-4 mb-6\"\n children:\n - type: Box\n props:\n gap: xs\n children:\n - type: Heading\n props:\n level: 2\n text: Profile\n - type: Paragraph\n props:\n text: This is how others will see you on the site.\n muted: true\n size: sm\n - type: Divider\n - type: Form\n props:\n label: Profile settings\n pending:\n _or:\n - _state: saving\n - _state: loading\n idempotent: true\n children:\n - type: Field\n props:\n name: username\n label: Username\n description: This is your public display name.\n required: true\n value:\n _bindState: form.username\n - type: Field\n props:\n name: email\n label: Email\n kind: email\n required: true\n value:\n _bindState: form.email\n - type: Field\n props:\n name: bio\n label: Bio\n kind: textarea\n description: Describe your role and what you work on.\n value:\n _bindState: form.bio\n - type: Field\n props:\n name: urls\n label: URLs\n kind: urls\n description: Add links to your website, blog, or social media profiles.\n value:\n _bindState: form.urls\n events:\n onChange:\n - action: SetState\n params:\n path: saved\n value: false\n - action: SetState\n params:\n path: uiError\n value: null\n - type: Paragraph\n props:\n text:\n _state: uiError.message\n muted: true\n visible:\n _state: uiError\n - type: Form.Submit\n props:\n label: Update profile\n disabled:\n _state: saving\n events:\n onChange:\n - action: SetState\n params:\n path: saved\n value: false\n - action: SetState\n params:\n path: uiError\n value: null\n onSubmit:\n - action: SetState\n params:\n path: saved\n value: false\n - action: SetState\n params:\n path: uiError\n value: null\n - action: Request\n params:\n connectionId: preferences-db\n request:\n id: save-preferences\n connectionId: preferences-db\n payload:\n operation:\n _if:\n - _state: preferences.0.id\n - UpdateOne\n - InsertOne\n filter:\n id:\n _state: preferences.0.id\n data:\n section: profile\n values:\n _event: values\n idempotencyKey:\n _event: value\n expectedVersion:\n _state: preferences.0.version\n loadingPath: saving\n errorPath: uiError\n onSuccess:\n - &a4\n action: Request\n params:\n connectionId: preferences-db\n request:\n id: load-preferences\n connectionId: preferences-db\n payload:\n operation: Find\n filter:\n section: profile\n responsePath: preferences\n loadingPath: loading\n errorPath: uiError\n onSuccess:\n - action: SetState\n params:\n path: form\n value:\n _if:\n - _state: preferences.0.id\n - _state: preferences.0.values\n - _state: form\n onError:\n - action: SetState\n params:\n path: requestFailed\n value: true\n - action: SetState\n params:\n path: saved\n value:\n _not:\n _state: uiError\n onError:\n - action: SetState\n params:\n path: requestFailed\n value: true\n - type: Paragraph\n props:\n text: Settings saved.\n muted: true\n visible:\n _state: saved\n template: shadcn-admin-shell\n lifecycle:\n onMount:\n - *a4\n - id: settings-account\n path: /settings/account\n title: Settings · Account\n state:\n direction: \"ltr\"\n font: \"Inter\"\n loading: false\n theme: \"light\"\n currentPath: /settings/account\n saving: false\n uiError: null\n saved: false\n form:\n name: shadcn\n birthday: \"\"\n language: English\n preferences: []\n blocks:\n - type: PageLayout\n children:\n - type: Box\n props:\n className: \"!flex-row items-start justify-between gap-4 mb-6\"\n children:\n - type: Box\n props:\n gap: xs\n children:\n - type: Heading\n props:\n level: 1\n text: Settings\n - type: Paragraph\n props:\n text: Manage your account settings and set e-mail preferences.\n muted: true\n size: sm\n - type: Divider\n - type: Box\n props:\n className: \"!flex-col gap-10 lg:!flex-row\"\n children:\n - type: Box\n props:\n className: \"w-full shrink-0 !flex-row flex-wrap gap-1 lg:!flex-col lg:w-48 [&>a]:shrink-0 [&>a]:px-3 [&>a]:py-2 [&>a]:rounded-md lg:[&>a]:px-0 lg:[&>a]:py-0\"\n children:\n - type: Link\n props:\n label: Profile\n href: /settings/profile\n variant: muted\n - type: Link\n props:\n label: Account\n href: /settings/account\n variant: default\n className: \"bg-muted font-medium lg:bg-transparent\"\n - type: Link\n props:\n label: Appearance\n href: /settings/appearance\n variant: muted\n - type: Link\n props:\n label: Notifications\n href: /settings/notifications\n variant: muted\n - type: Link\n props:\n label: Display\n href: /settings/display\n variant: muted\n - type: Box\n props:\n className: max-w-2xl flex-1\n gap: lg\n children:\n - type: Box\n props:\n className: \"!flex-row items-start justify-between gap-4 mb-6\"\n children:\n - type: Box\n props:\n gap: xs\n children:\n - type: Heading\n props:\n level: 2\n text: Account\n - type: Paragraph\n props:\n text: Update your account settings. Set your preferred language and timezone.\n muted: true\n size: sm\n - type: Divider\n - type: Form\n props:\n label: Account settings\n pending:\n _or:\n - _state: saving\n - _state: loading\n idempotent: true\n children:\n - type: Field\n props:\n name: name\n label: Name\n description: This is the name that will be displayed on your profile.\n required: true\n value:\n _bindState: form.name\n - type: Field\n props:\n name: birthday\n label: Date of birth\n kind: date\n description: Your date of birth is used to calculate your age.\n value:\n _bindState: form.birthday\n - type: Field\n props:\n name: language\n label: Language\n kind: combobox\n options:\n - value: English\n label: English\n - value: Chinese\n label: Chinese\n - value: French\n label: French\n - value: German\n label: German\n - value: Japanese\n label: Japanese\n value:\n _bindState: form.language\n - type: Paragraph\n props:\n text:\n _state: uiError.message\n muted: true\n visible:\n _state: uiError\n - type: Form.Submit\n props:\n label: Update account\n disabled:\n _state: saving\n events:\n onChange:\n - action: SetState\n params:\n path: saved\n value: false\n - action: SetState\n params:\n path: uiError\n value: null\n onSubmit:\n - action: SetState\n params:\n path: saved\n value: false\n - action: SetState\n params:\n path: uiError\n value: null\n - action: Request\n params:\n connectionId: preferences-db\n request:\n id: save-preferences\n connectionId: preferences-db\n payload:\n operation:\n _if:\n - _state: preferences.0.id\n - UpdateOne\n - InsertOne\n filter:\n id:\n _state: preferences.0.id\n data:\n section: account\n values:\n _event: values\n idempotencyKey:\n _event: value\n expectedVersion:\n _state: preferences.0.version\n loadingPath: saving\n errorPath: uiError\n onSuccess:\n - &a5\n action: Request\n params:\n connectionId: preferences-db\n request:\n id: load-preferences\n connectionId: preferences-db\n payload:\n operation: Find\n filter:\n section: account\n responsePath: preferences\n loadingPath: loading\n errorPath: uiError\n onSuccess:\n - action: SetState\n params:\n path: form\n value:\n _if:\n - _state: preferences.0.id\n - _state: preferences.0.values\n - _state: form\n onError:\n - action: SetState\n params:\n path: requestFailed\n value: true\n - action: SetState\n params:\n path: saved\n value:\n _not:\n _state: uiError\n onError:\n - action: SetState\n params:\n path: requestFailed\n value: true\n - type: Paragraph\n props:\n text: Settings saved.\n muted: true\n visible:\n _state: saved\n template: shadcn-admin-shell\n lifecycle:\n onMount:\n - *a5\n - id: settings-appearance\n path: /settings/appearance\n title: Settings · Appearance\n state:\n direction: \"ltr\"\n font: \"Inter\"\n loading: false\n theme: \"light\"\n currentPath: /settings/appearance\n saving: false\n uiError: null\n saved: false\n form:\n font: Inter\n theme: light\n direction: ltr\n preferences: []\n blocks:\n - type: PageLayout\n children:\n - type: Box\n props:\n className: \"!flex-row items-start justify-between gap-4 mb-6\"\n children:\n - type: Box\n props:\n gap: xs\n children:\n - type: Heading\n props:\n level: 1\n text: Settings\n - type: Paragraph\n props:\n text: Manage your account settings and set e-mail preferences.\n muted: true\n size: sm\n - type: Divider\n - type: Box\n props:\n className: \"!flex-col gap-10 lg:!flex-row\"\n children:\n - type: Box\n props:\n className: \"w-full shrink-0 !flex-row flex-wrap gap-1 lg:!flex-col lg:w-48 [&>a]:shrink-0 [&>a]:px-3 [&>a]:py-2 [&>a]:rounded-md lg:[&>a]:px-0 lg:[&>a]:py-0\"\n children:\n - type: Link\n props:\n label: Profile\n href: /settings/profile\n variant: muted\n - type: Link\n props:\n label: Account\n href: /settings/account\n variant: muted\n - type: Link\n props:\n label: Appearance\n href: /settings/appearance\n variant: default\n className: \"bg-muted font-medium lg:bg-transparent\"\n - type: Link\n props:\n label: Notifications\n href: /settings/notifications\n variant: muted\n - type: Link\n props:\n label: Display\n href: /settings/display\n variant: muted\n - type: Box\n props:\n className: max-w-2xl flex-1\n gap: lg\n children:\n - type: Box\n props:\n className: \"!flex-row items-start justify-between gap-4 mb-6\"\n children:\n - type: Box\n props:\n gap: xs\n children:\n - type: Heading\n props:\n level: 2\n text: Appearance\n - type: Paragraph\n props:\n text: Customize the appearance of the app. Automatically switch between day and night themes.\n muted: true\n size: sm\n - type: Divider\n - type: Form\n props:\n label: Appearance settings\n pending:\n _or:\n - _state: saving\n - _state: loading\n idempotent: true\n children:\n - type: Field\n props:\n name: font\n label: Font\n kind: select\n options:\n - value: Inter\n label: Inter\n - value: System\n label: System\n - value: Manrope\n label: Manrope\n value:\n _bindState: form.font\n - type: Field\n props:\n name: theme\n label: Theme\n kind: radio\n options:\n - value: light\n label: Light\n - value: dark\n label: Dark\n - value: system\n label: System\n value:\n _bindState: form.theme\n - type: Field\n props:\n name: direction\n label: Direction\n kind: select\n options:\n - value: ltr\n label: Ltr\n - value: rtl\n label: Rtl\n value:\n _bindState: form.direction\n - type: Paragraph\n props:\n text:\n _state: uiError.message\n muted: true\n visible:\n _state: uiError\n - type: Form.Submit\n props:\n label: Update appearance\n disabled:\n _state: saving\n events:\n onChange:\n - action: SetState\n params:\n path: saved\n value: false\n - action: SetState\n params:\n path: uiError\n value: null\n onSubmit:\n - action: SetState\n params:\n path: saved\n value: false\n - action: SetState\n params:\n path: uiError\n value: null\n - action: Request\n params:\n connectionId: preferences-db\n request:\n id: save-preferences\n connectionId: preferences-db\n payload:\n operation:\n _if:\n - _state: preferences.0.id\n - UpdateOne\n - InsertOne\n filter:\n id:\n _state: preferences.0.id\n data:\n section: appearance\n values:\n _event: values\n idempotencyKey:\n _event: value\n expectedVersion:\n _state: preferences.0.version\n loadingPath: saving\n errorPath: uiError\n onSuccess:\n - &a6\n action: Request\n params:\n connectionId: preferences-db\n request:\n id: load-preferences\n connectionId: preferences-db\n payload:\n operation: Find\n filter:\n section: appearance\n responsePath: preferences\n loadingPath: loading\n errorPath: uiError\n onSuccess:\n - action: SetState\n params:\n path: form\n value:\n _if:\n - _state: preferences.0.id\n - _state: preferences.0.values\n - _state: form\n onError:\n - action: SetState\n params:\n path: requestFailed\n value: true\n - action: SetState\n params:\n path: saved\n value:\n _not:\n _state: uiError\n - action: SetState\n params:\n path: theme\n value:\n _state: form.theme\n - action: SetState\n params:\n path: direction\n value:\n _state: form.direction\n - action: SetState\n params:\n path: font\n value:\n _state: form.font\n onError:\n - action: SetState\n params:\n path: requestFailed\n value: true\n - type: Paragraph\n props:\n text: Settings saved.\n muted: true\n visible:\n _state: saved\n template: shadcn-admin-shell\n lifecycle:\n onMount:\n - *a6\n - id: settings-notifications\n path: /settings/notifications\n title: Settings · Notifications\n state:\n direction: \"ltr\"\n font: \"Inter\"\n loading: false\n theme: \"light\"\n currentPath: /settings/notifications\n saving: false\n uiError: null\n saved: false\n form:\n notify: all\n communication: false\n marketing: false\n social: true\n security: true\n preferences: []\n blocks:\n - type: PageLayout\n children:\n - type: Box\n props:\n className: \"!flex-row items-start justify-between gap-4 mb-6\"\n children:\n - type: Box\n props:\n gap: xs\n children:\n - type: Heading\n props:\n level: 1\n text: Settings\n - type: Paragraph\n props:\n text: Manage your account settings and set e-mail preferences.\n muted: true\n size: sm\n - type: Divider\n - type: Box\n props:\n className: \"!flex-col gap-10 lg:!flex-row\"\n children:\n - type: Box\n props:\n className: \"w-full shrink-0 !flex-row flex-wrap gap-1 lg:!flex-col lg:w-48 [&>a]:shrink-0 [&>a]:px-3 [&>a]:py-2 [&>a]:rounded-md lg:[&>a]:px-0 lg:[&>a]:py-0\"\n children:\n - type: Link\n props:\n label: Profile\n href: /settings/profile\n variant: muted\n - type: Link\n props:\n label: Account\n href: /settings/account\n variant: muted\n - type: Link\n props:\n label: Appearance\n href: /settings/appearance\n variant: muted\n - type: Link\n props:\n label: Notifications\n href: /settings/notifications\n variant: default\n className: \"bg-muted font-medium lg:bg-transparent\"\n - type: Link\n props:\n label: Display\n href: /settings/display\n variant: muted\n - type: Box\n props:\n className: max-w-2xl flex-1\n gap: lg\n children:\n - type: Box\n props:\n className: \"!flex-row items-start justify-between gap-4 mb-6\"\n children:\n - type: Box\n props:\n gap: xs\n children:\n - type: Heading\n props:\n level: 2\n text: Notifications\n - type: Paragraph\n props:\n text: Configure how you receive notifications.\n muted: true\n size: sm\n - type: Divider\n - type: Form\n props:\n label: Notifications settings\n pending:\n _or:\n - _state: saving\n - _state: loading\n idempotent: true\n children:\n - type: Field\n props:\n name: notify\n label: Notify me about...\n kind: radio\n options:\n - label: All new messages\n value: all\n - label: Direct messages and mentions\n value: mentions\n - label: Nothing\n value: none\n value:\n _bindState: form.notify\n - type: Field\n props:\n name: communication\n kind: switch\n label: Communication emails\n description: Receive emails about your account activity.\n value:\n _bindState: form.communication\n - type: Field\n props:\n name: marketing\n kind: switch\n label: Marketing emails\n description: Receive emails about new products and features.\n value:\n _bindState: form.marketing\n - type: Field\n props:\n name: social\n kind: switch\n label: Social emails\n description: Receive emails for friend requests and follows.\n value:\n _bindState: form.social\n - type: Field\n props:\n name: security\n kind: switch\n label: Security emails\n description: Receive emails about your account security.\n value:\n _bindState: form.security\n - type: Paragraph\n props:\n text:\n _state: uiError.message\n muted: true\n visible:\n _state: uiError\n - type: Form.Submit\n props:\n label: Update notifications\n disabled:\n _state: saving\n events:\n onChange:\n - action: SetState\n params:\n path: saved\n value: false\n - action: SetState\n params:\n path: uiError\n value: null\n onSubmit:\n - action: SetState\n params:\n path: saved\n value: false\n - action: SetState\n params:\n path: uiError\n value: null\n - action: Request\n params:\n connectionId: preferences-db\n request:\n id: save-preferences\n connectionId: preferences-db\n payload:\n operation:\n _if:\n - _state: preferences.0.id\n - UpdateOne\n - InsertOne\n filter:\n id:\n _state: preferences.0.id\n data:\n section: notifications\n values:\n _event: values\n idempotencyKey:\n _event: value\n expectedVersion:\n _state: preferences.0.version\n loadingPath: saving\n errorPath: uiError\n onSuccess:\n - &a7\n action: Request\n params:\n connectionId: preferences-db\n request:\n id: load-preferences\n connectionId: preferences-db\n payload:\n operation: Find\n filter:\n section: notifications\n responsePath: preferences\n loadingPath: loading\n errorPath: uiError\n onSuccess:\n - action: SetState\n params:\n path: form\n value:\n _if:\n - _state: preferences.0.id\n - _state: preferences.0.values\n - _state: form\n onError:\n - action: SetState\n params:\n path: requestFailed\n value: true\n - action: SetState\n params:\n path: saved\n value:\n _not:\n _state: uiError\n onError:\n - action: SetState\n params:\n path: requestFailed\n value: true\n - type: Paragraph\n props:\n text: Settings saved.\n muted: true\n visible:\n _state: saved\n template: shadcn-admin-shell\n lifecycle:\n onMount:\n - *a7\n - id: settings-display\n path: /settings/display\n title: Settings · Display\n state:\n direction: \"ltr\"\n font: \"Inter\"\n loading: false\n theme: \"light\"\n currentPath: /settings/display\n saving: false\n uiError: null\n saved: false\n form:\n recents: true\n home: true\n applications: true\n desktop: true\n downloads: true\n documents: true\n preferences: []\n blocks:\n - type: PageLayout\n children:\n - type: Box\n props:\n className: \"!flex-row items-start justify-between gap-4 mb-6\"\n children:\n - type: Box\n props:\n gap: xs\n children:\n - type: Heading\n props:\n level: 1\n text: Settings\n - type: Paragraph\n props:\n text: Manage your account settings and set e-mail preferences.\n muted: true\n size: sm\n - type: Divider\n - type: Box\n props:\n className: \"!flex-col gap-10 lg:!flex-row\"\n children:\n - type: Box\n props:\n className: \"w-full shrink-0 !flex-row flex-wrap gap-1 lg:!flex-col lg:w-48 [&>a]:shrink-0 [&>a]:px-3 [&>a]:py-2 [&>a]:rounded-md lg:[&>a]:px-0 lg:[&>a]:py-0\"\n children:\n - type: Link\n props:\n label: Profile\n href: /settings/profile\n variant: muted\n - type: Link\n props:\n label: Account\n href: /settings/account\n variant: muted\n - type: Link\n props:\n label: Appearance\n href: /settings/appearance\n variant: muted\n - type: Link\n props:\n label: Notifications\n href: /settings/notifications\n variant: muted\n - type: Link\n props:\n label: Display\n href: /settings/display\n variant: default\n className: \"bg-muted font-medium lg:bg-transparent\"\n - type: Box\n props:\n className: max-w-2xl flex-1\n gap: lg\n children:\n - type: Box\n props:\n className: \"!flex-row items-start justify-between gap-4 mb-6\"\n children:\n - type: Box\n props:\n gap: xs\n children:\n - type: Heading\n props:\n level: 2\n text: Display\n - type: Paragraph\n props:\n text: Turn items on or off to control what’s displayed in the app.\n muted: true\n size: sm\n - type: Divider\n - type: Form\n props:\n label: Display settings\n pending:\n _or:\n - _state: saving\n - _state: loading\n idempotent: true\n children:\n - type: Paragraph\n props:\n text: Select the items you want to display in the sidebar.\n muted: true\n - type: Field\n props:\n name: recents\n label: Recents\n kind: checkbox\n value:\n _bindState: form.recents\n - type: Field\n props:\n name: home\n label: Home\n kind: checkbox\n value:\n _bindState: form.home\n - type: Field\n props:\n name: applications\n label: Applications\n kind: checkbox\n value:\n _bindState: form.applications\n - type: Field\n props:\n name: desktop\n label: Desktop\n kind: checkbox\n value:\n _bindState: form.desktop\n - type: Field\n props:\n name: downloads\n label: Downloads\n kind: checkbox\n value:\n _bindState: form.downloads\n - type: Field\n props:\n name: documents\n label: Documents\n kind: checkbox\n value:\n _bindState: form.documents\n - type: Paragraph\n props:\n text:\n _state: uiError.message\n muted: true\n visible:\n _state: uiError\n - type: Form.Submit\n props:\n label: Update display\n disabled:\n _state: saving\n events:\n onChange:\n - action: SetState\n params:\n path: saved\n value: false\n - action: SetState\n params:\n path: uiError\n value: null\n onSubmit:\n - action: SetState\n params:\n path: saved\n value: false\n - action: SetState\n params:\n path: uiError\n value: null\n - action: Request\n params:\n connectionId: preferences-db\n request:\n id: save-preferences\n connectionId: preferences-db\n payload:\n operation:\n _if:\n - _state: preferences.0.id\n - UpdateOne\n - InsertOne\n filter:\n id:\n _state: preferences.0.id\n data:\n section: display\n values:\n _event: values\n idempotencyKey:\n _event: value\n expectedVersion:\n _state: preferences.0.version\n loadingPath: saving\n errorPath: uiError\n onSuccess:\n - &a8\n action: Request\n params:\n connectionId: preferences-db\n request:\n id: load-preferences\n connectionId: preferences-db\n payload:\n operation: Find\n filter:\n section: display\n responsePath: preferences\n loadingPath: loading\n errorPath: uiError\n onSuccess:\n - action: SetState\n params:\n path: form\n value:\n _if:\n - _state: preferences.0.id\n - _state: preferences.0.values\n - _state: form\n onError:\n - action: SetState\n params:\n path: requestFailed\n value: true\n - action: SetState\n params:\n path: saved\n value:\n _not:\n _state: uiError\n onError:\n - action: SetState\n params:\n path: requestFailed\n value: true\n - type: Paragraph\n props:\n text: Settings saved.\n muted: true\n visible:\n _state: saved\n template: shadcn-admin-shell\n lifecycle:\n onMount:\n - *a8\n - id: sign-in\n path: /sign-in\n title: Login\n state:\n saving: false\n currentPath: /sign-in\n blocks:\n - type: Box\n props:\n className: min-h-dvh items-center justify-center bg-background px-6\n gap: lg\n children:\n - type: Heading\n props:\n level: 3\n text: UiBot Admin\n - type: Box\n props:\n className: w-full max-w-sm\n gap: lg\n children:\n - type: Heading\n props:\n level: 2\n text: Login\n - type: Paragraph\n props:\n text: Enter your email and password below to log into your account.\n muted: true\n size: sm\n - type: Form\n props:\n label: Login\n pending:\n _state: saving\n children:\n - type: Field\n props:\n name: email\n label: Email\n kind: email\n required: true\n - type: Field\n props:\n name: password\n label: Password\n kind: password\n required: true\n - type: Form.Submit\n props:\n label: Login\n full: true\n disabled: true\n - type: Paragraph\n props:\n text: Connect an authentication provider to continue.\n muted: true\n size: sm\n - type: Box\n props:\n direction: row\n justify: between\n children:\n - type: Link\n props:\n label: Forgot password?\n href: /forgot-password\n - type: Link\n props:\n label: Create account\n href: /sign-up\n - type: Paragraph\n props:\n text: By continuing, you agree to our Terms of Service and Privacy Policy.\n muted: true\n size: sm\n - id: sign-in-2\n path: /sign-in-2\n title: Login\n state:\n saving: false\n currentPath: /sign-in-2\n blocks:\n - type: Box\n props:\n className: \"!grid lg:grid-cols-2 min-h-dvh\"\n gap: none\n children:\n - type: Box\n props:\n className: min-h-dvh items-center justify-center px-6 py-12\n gap: lg\n children:\n - type: Heading\n props:\n level: 3\n text: UiBot Admin\n - type: Box\n props:\n className: w-full max-w-sm\n gap: lg\n children:\n - type: Heading\n props:\n level: 2\n text: Login\n - type: Paragraph\n props:\n text: Welcome back! Please enter your details.\n muted: true\n size: sm\n - type: Form\n props:\n label: Login\n pending:\n _state: saving\n children:\n - type: Field\n props:\n name: email\n label: Email\n kind: email\n required: true\n - type: Field\n props:\n name: password\n label: Password\n kind: password\n required: true\n - type: Form.Submit\n props:\n label: Login\n full: true\n disabled: true\n - type: Paragraph\n props:\n text: Connect an authentication provider to continue.\n muted: true\n size: sm\n - type: Box\n props:\n direction: row\n justify: between\n children:\n - type: Link\n props:\n label: Forgot password?\n href: /forgot-password\n - type: Link\n props:\n label: Create account\n href: /sign-up\n - type: Paragraph\n props:\n text: By continuing, you agree to our Terms of Service and Privacy Policy.\n muted: true\n size: sm\n - type: Box\n props:\n className: hidden lg:flex relative overflow-hidden bg-muted min-h-dvh p-10\n gap: lg\n children:\n - type: Box\n props:\n className: absolute top-24 start-16 w-[960px] rounded-xl border bg-background p-8\n gap: lg\n children:\n - type: Box\n props:\n className: \"!flex-row items-start justify-between gap-4 mb-6\"\n children:\n - type: Box\n props:\n gap: xs\n children:\n - type: Heading\n props:\n level: 1\n text: Dashboard\n - type: Button\n props:\n label: Download\n disabled: true\n - type: Tabs\n props:\n tabs:\n - Overview\n - Analytics\n - Reports\n - Notifications\n disabledTabs:\n - 2\n - 3\n variant: segmented\n children:\n - type: Box\n props:\n gap: md\n children:\n - type: Box\n props:\n className: \"!grid grid-cols-1 gap-4 sm:grid-cols-2 xl:grid-cols-4\"\n children:\n - type: StatCard\n props:\n label: Total Revenue\n value: $45,231.89\n description: +20.1% from last month\n icon: chart-no-axes-column\n - type: StatCard\n props:\n label: Subscriptions\n value: \"+2350\"\n description: +180.1% from last month\n icon: users\n - type: StatCard\n props:\n label: Sales\n value: +12,234\n description: +19% from last month\n icon: boxes\n - type: StatCard\n props:\n label: Active Now\n value: \"+573\"\n description: +201 since last hour\n icon: chart-no-axes-column\n - type: Box\n props:\n className: \"!grid grid-cols-1 gap-4 lg:grid-cols-7\"\n children:\n - type: Box\n props:\n className: lg:col-span-4\n children:\n - type: Card\n props:\n title: Overview\n children:\n - type: BarChart\n props:\n prefix: $\n height: 350\n data:\n - label: Jan\n value: 1500\n - label: Feb\n value: 5800\n - label: Mar\n value: 5500\n - label: Apr\n value: 2200\n - label: May\n value: 4800\n - label: Jun\n value: 1600\n - label: Jul\n value: 2800\n - label: Aug\n value: 2300\n - label: Sep\n value: 5700\n - label: Oct\n value: 1400\n - label: Nov\n value: 2900\n - label: Dec\n value: 1900\n - type: Box\n props:\n className: lg:col-span-3\n children:\n - type: Card\n props:\n title: Recent Sales\n description: You made 265 sales this month.\n children:\n - type: AvatarList\n props:\n items:\n - id: \"0\"\n initials: OM\n name: Olivia Martin\n description: olivia.martin@email.com\n value: +$1,999.00\n - id: \"1\"\n initials: JL\n name: Jackson Lee\n description: jackson.lee@email.com\n value: +$39.00\n - id: \"2\"\n initials: IN\n name: Isabella Nguyen\n description: isabella.nguyen@email.com\n value: +$299.00\n - id: \"3\"\n initials: WK\n name: William Kim\n description: will@email.com\n value: +$99.00\n - id: \"4\"\n initials: SD\n name: Sofia Davis\n description: sofia.davis@email.com\n value: +$39.00\n - type: Box\n props:\n gap: md\n children:\n - type: Box\n props:\n className: \"!flex-row items-start justify-between gap-4 mb-6\"\n children:\n - type: Box\n props:\n gap: xs\n children:\n - type: Heading\n props:\n level: 1\n text: Analytics\n - type: Paragraph\n props:\n text: Revenue and subscription performance.\n muted: true\n size: sm\n - type: Box\n props:\n className: \"!grid grid-cols-1 gap-4 sm:grid-cols-2 xl:grid-cols-4\"\n children:\n - type: StatCard\n props:\n label: Total Revenue\n value: $45,231.89\n description: +20.1% from last month\n icon: chart-no-axes-column\n - type: StatCard\n props:\n label: Subscriptions\n value: \"+2350\"\n description: +180.1% from last month\n icon: users\n - type: StatCard\n props:\n label: Sales\n value: +12,234\n description: +19% from last month\n icon: boxes\n - type: StatCard\n props:\n label: Active Now\n value: \"+573\"\n description: +201 since last hour\n icon: chart-no-axes-column\n - type: Card\n props:\n title: Revenue over time\n children:\n - type: BarChart\n props:\n prefix: $\n data:\n - label: Apr\n value: 18200\n - label: May\n value: 21400\n - label: Jun\n value: 28000\n - label: Jul\n value: 26200\n - label: Aug\n value: 31500\n - label: Sep\n value: 45231\n - id: sign-up\n path: /sign-up\n title: Create an account\n state:\n saving: false\n currentPath: /sign-up\n blocks:\n - type: Box\n props:\n className: min-h-dvh items-center justify-center bg-background px-6\n gap: lg\n children:\n - type: Heading\n props:\n level: 3\n text: UiBot Admin\n - type: Box\n props:\n className: w-full max-w-sm\n gap: lg\n children:\n - type: Heading\n props:\n level: 2\n text: Create an account\n - type: Paragraph\n props:\n text: Enter your email and password to create an account.\n muted: true\n size: sm\n - type: Form\n props:\n label: Create an account\n pending:\n _state: saving\n children:\n - type: Field\n props:\n name: email\n label: Email\n kind: email\n required: true\n - type: Field\n props:\n name: password\n label: Password\n kind: password\n required: true\n - type: Field\n props:\n name: confirm\n label: Confirm password\n kind: password\n required: true\n - type: Form.Submit\n props:\n label: Create account\n full: true\n disabled: true\n - type: Paragraph\n props:\n text: Connect an authentication provider to continue.\n muted: true\n size: sm\n - type: Box\n props:\n direction: row\n justify: between\n children:\n - type: Link\n props:\n label: Forgot password?\n href: /forgot-password\n - type: Link\n props:\n label: Create account\n href: /sign-up\n - type: Paragraph\n props:\n text: By continuing, you agree to our Terms of Service and Privacy Policy.\n muted: true\n size: sm\n - id: forgot-password\n path: /forgot-password\n title: Forgot Password\n state:\n saving: false\n currentPath: /forgot-password\n blocks:\n - type: Box\n props:\n className: min-h-dvh items-center justify-center bg-background px-6\n gap: lg\n children:\n - type: Heading\n props:\n level: 3\n text: UiBot Admin\n - type: Box\n props:\n className: w-full max-w-sm\n gap: lg\n children:\n - type: Heading\n props:\n level: 2\n text: Forgot Password\n - type: Paragraph\n props:\n text: Enter your registered email and we will send you a reset link.\n muted: true\n size: sm\n - type: Form\n props:\n label: Forgot Password\n pending:\n _state: saving\n children:\n - type: Field\n props:\n name: email\n label: Email\n kind: email\n required: true\n - type: Form.Submit\n props:\n label: Send reset link\n full: true\n disabled: true\n - type: Paragraph\n props:\n text: Connect an authentication provider to continue.\n muted: true\n size: sm\n - type: Box\n props:\n direction: row\n justify: between\n children:\n - type: Link\n props:\n label: Forgot password?\n href: /forgot-password\n - type: Link\n props:\n label: Create account\n href: /sign-up\n - type: Paragraph\n props:\n text: By continuing, you agree to our Terms of Service and Privacy Policy.\n muted: true\n size: sm\n - id: otp\n path: /otp\n title: Two-factor Authentication\n state:\n saving: false\n currentPath: /otp\n blocks:\n - type: Box\n props:\n className: min-h-dvh items-center justify-center bg-background px-6\n gap: lg\n children:\n - type: Heading\n props:\n level: 3\n text: UiBot Admin\n - type: Box\n props:\n className: w-full max-w-sm\n gap: lg\n children:\n - type: Heading\n props:\n level: 2\n text: Two-factor Authentication\n - type: Paragraph\n props:\n text: Please enter the authentication code sent to your email.\n muted: true\n size: sm\n - type: Form\n props:\n label: Two-factor Authentication\n pending:\n _state: saving\n children:\n - type: Field\n props:\n name: code\n label: Authentication code\n kind: otp\n required: true\n - type: Form.Submit\n props:\n label: Verify\n full: true\n disabled: true\n - type: Paragraph\n props:\n text: Connect an authentication provider to continue.\n muted: true\n size: sm\n - type: Box\n props:\n direction: row\n justify: between\n children:\n - type: Link\n props:\n label: Forgot password?\n href: /forgot-password\n - type: Link\n props:\n label: Create account\n href: /sign-up\n - type: Paragraph\n props:\n text: By continuing, you agree to our Terms of Service and Privacy Policy.\n muted: true\n size: sm\n - id: error-401\n path: /errors/401\n title: Unauthorized\n state:\n currentPath: /errors/401\n blocks:\n - type: Box\n props:\n className: min-h-dvh items-center justify-center px-6 text-center\n gap: lg\n children:\n - type: Heading\n props:\n level: 1\n text: \"401\"\n className: \"!text-[7rem] !leading-tight !font-bold\"\n - type: Heading\n props:\n level: 2\n text: Unauthorized\n - type: Paragraph\n props:\n text: Please log in with the appropriate credentials to access this resource.\n muted: true\n - type: Link\n props:\n label: Back to Home\n href: /\n variant: button\n - id: error-403\n path: /errors/403\n title: Access Forbidden\n state:\n currentPath: /errors/403\n blocks:\n - type: Box\n props:\n className: min-h-dvh items-center justify-center px-6 text-center\n gap: lg\n children:\n - type: Heading\n props:\n level: 1\n text: \"403\"\n className: \"!text-[7rem] !leading-tight !font-bold\"\n - type: Heading\n props:\n level: 2\n text: Access Forbidden\n - type: Paragraph\n props:\n text: You don’t have the necessary permission to view this page.\n muted: true\n - type: Link\n props:\n label: Back to Home\n href: /\n variant: button\n - id: error-404\n path: /errors/404\n title: Oops! Page Not Found!\n state:\n currentPath: /errors/404\n blocks:\n - type: Box\n props:\n className: min-h-dvh items-center justify-center px-6 text-center\n gap: lg\n children:\n - type: Heading\n props:\n level: 1\n text: \"404\"\n className: \"!text-[7rem] !leading-tight !font-bold\"\n - type: Heading\n props:\n level: 2\n text: Oops! Page Not Found!\n - type: Paragraph\n props:\n text: It seems like the page you’re looking for does not exist or might have been removed.\n muted: true\n - type: Link\n props:\n label: Back to Home\n href: /\n variant: button\n - id: error-500\n path: /errors/500\n title: Oops! Something went wrong\n state:\n currentPath: /errors/500\n blocks:\n - type: Box\n props:\n className: min-h-dvh items-center justify-center px-6 text-center\n gap: lg\n children:\n - type: Heading\n props:\n level: 1\n text: \"500\"\n className: \"!text-[7rem] !leading-tight !font-bold\"\n - type: Heading\n props:\n level: 2\n text: Oops! Something went wrong\n - type: Paragraph\n props:\n text: We apologize for the inconvenience. Please try again later.\n muted: true\n - type: Link\n props:\n label: Back to Home\n href: /\n variant: button\n - id: error-503\n path: /errors/503\n title: Website is under maintenance!\n state:\n currentPath: /errors/503\n blocks:\n - type: Box\n props:\n className: min-h-dvh items-center justify-center px-6 text-center\n gap: lg\n children:\n - type: Heading\n props:\n level: 1\n text: \"503\"\n className: \"!text-[7rem] !leading-tight !font-bold\"\n - type: Heading\n props:\n level: 2\n text: Website is under maintenance!\n - type: Paragraph\n props:\n text: The site is not available at the moment. We’ll be back online shortly.\n muted: true\n - type: Link\n props:\n label: Back to Home\n href: /\n variant: button\n - id: help\n path: /help-center\n title: Help Center\n state:\n direction: \"ltr\"\n font: \"Inter\"\n theme: \"light\"\n currentPath: /help-center\n blocks:\n - type: PageLayout\n children:\n - type: Box\n props:\n className: min-h-[65vh] items-center justify-center\n gap: md\n children:\n - type: Heading\n props:\n level: 1\n text: Coming Soon!\n - type: Paragraph\n props:\n text: We’re working on the Help Center. Stay tuned!\n muted: true\n template: shadcn-admin-shell\n","dependencies":["component:avatar-list","component:bar-chart","component:box","component:button","component:card","component:chat-panel","component:data-table","component:divider","component:drawer","component:field","component:form","component:form-submit","component:heading","component:integration-grid","component:link","component:modal","component:page-layout","component:paragraph","component:stat-card","component:tabs","template:shadcn-admin-shell"]}]},"template:shadcn-admin-shell":{"resourceId":"template:shadcn-admin-shell","title":{"zh":"UiBot Admin Shell","en":"UiBot Admin Shell"},"docs":{"zh":"# UiBot Admin Shell\n\nShadcn Admin Shell template\n\n","en":"# UiBot Admin Shell\n\nShadcn Admin Shell template\n\n"},"distributions":[{"channel":"shadcn","name":"shadcn-admin-shell","version":"0.16.0","availability":"source"},{"channel":"spec","name":"shadcn-admin-shell","version":"0.16.0","availability":"source"}],"examples":[{"id":"shadcn-admin-shell","title":"UiBot Admin Shell","mode":"spec","language":"yaml","code":"version: \"2.0\"\npages:\n - id: shadcn-admin-shell\n state:\n currentPath: \"/\"\n direction: \"ltr\"\n font: \"Inter\"\n theme: \"light\"\n path: /\n blocks:\n - type: PageLayout\n props:\n appearance: admin\n routes:\n - label: Dashboard\n href: /\n icon: layout-dashboard\n - label: Tasks\n href: /tasks\n icon: list-todo\n - label: Apps\n href: /apps\n icon: boxes\n - label: Chats\n href: /chats\n icon: message-circle\n badge: \"3\"\n - label: Users\n href: /users\n icon: users\n - label: Auth\n href: /sign-in\n icon: shield\n - label: Errors\n href: /errors/500\n icon: circle-help\n - label: Settings\n href: /settings/profile\n icon: settings\n - label: Help Center\n href: /help-center\n icon: circle-help\n - label: Account\n href: /settings/account\n - label: Appearance\n href: /settings/appearance\n - label: Notifications\n href: /settings/notifications\n - label: Display\n href: /settings/display\n headerLinks:\n - label: Overview\n href: /\n - label: Customers\n href: /users\n - label: Products\n href: /apps\n - label: Settings\n href: /settings/profile\n font:\n _state: font\n theme:\n _state: theme\n direction:\n _state: direction\n slots:\n sidebar:\n - type: AppNavigation\n props:\n brand: UiBot Admin\n subtitle: Vite + ShadcnUI\n groups:\n - label: General\n items:\n - label: Dashboard\n href: /\n icon: layout-dashboard\n - label: Tasks\n href: /tasks\n icon: list-todo\n - label: Apps\n href: /apps\n icon: boxes\n - label: Chats\n href: /chats\n icon: message-circle\n badge: \"3\"\n - label: Users\n href: /users\n icon: users\n - label: Pages\n items:\n - label: Auth\n href: /sign-in\n icon: shield\n children:\n - label: Sign in\n href: /sign-in\n - label: Sign in (split)\n href: /sign-in-2\n - label: Sign up\n href: /sign-up\n - label: Forgot password\n href: /forgot-password\n - label: OTP\n href: /otp\n - label: Errors\n href: /errors/500\n icon: circle-help\n children:\n - label: \"401\"\n href: /errors/401\n - label: \"403\"\n href: /errors/403\n - label: \"404\"\n href: /errors/404\n - label: \"500\"\n href: /errors/500\n - label: \"503\"\n href: /errors/503\n - label: Other\n items:\n - label: Settings\n href: /settings/profile\n icon: settings\n children:\n - label: Profile\n href: /settings/profile\n - label: Account\n href: /settings/account\n - label: Appearance\n href: /settings/appearance\n - label: Notifications\n href: /settings/notifications\n - label: Display\n href: /settings/display\n - label: Help Center\n href: /help-center\n icon: circle-help\n activePath:\n _state: currentPath\n userName: satnaing\n email: satnaingdev@gmail.com\n initials: SN\n workspaces:\n - label: Personal workspace\n href: /\n - label: Team workspace\n href: /users\n events:\n onThemeChange:\n - action: SetState\n params:\n path: theme\n value:\n _event: value\n","dependencies":["component:app-navigation","component:page-layout"]}]},"template:store":{"resourceId":"template:store","title":{"zh":"store","en":"store"},"docs":{"zh":"# store\n\nVerdant — Storefront\n\n","en":"# store\n\nVerdant — Storefront\n\n"},"distributions":[{"channel":"shadcn","name":"store","version":"0.16.0","availability":"source"},{"channel":"spec","name":"store","version":"0.16.0","availability":"source"}],"examples":[{"id":"store","title":"store","mode":"spec","language":"yaml","code":"version: '2.0'\nmenus:\n items:\n - key: storefront\n label: Storefront\n path: /\n icon: ▦\n - key: product\n label: Product\n path: /product\n icon: ◫\n - key: cart\n label: Cart\n path: /cart\n icon: ▤\n - key: checkout\n label: Checkout\n path: /checkout\n icon: ◆\npages:\n- id: storefront\n path: /\n title: Verdant — Storefront\n blocks:\n - type: PageLayout\n props:\n title: Verdant\n slots:\n headerActions:\n - type: Link\n props:\n label: Cart · 2\n href: /cart\n variant: button\n children:\n - type: Box\n props:\n className: flex items-end justify-between mb-4\n children:\n - type: Box\n children:\n - type: Heading\n props:\n level: 2\n text: Indoor plants\n - type: Paragraph\n props:\n size: sm\n muted: true\n text: 64 products · free shipping over $75\n - type: BadgeGroup\n props:\n items:\n - label: Spring sale\n tone: success\n - label: New arrivals\n tone: info\n - type: Grid\n props:\n cols: '4'\n responsive: true\n gap: lg\n children:\n - type: Card\n props:\n title: Monstera Deliciosa\n description: Easy care · low light\n children:\n - type: Box\n props:\n className: h-40 -mx-6 -mt-2 mb-3 border-b border-border bg-muted/40 flex items-center justify-center\n - type: BadgeGroup\n props:\n items:\n - label: Bestseller\n tone: success\n - type: Stat\n props:\n value: $48\n - type: Link\n props:\n label: View details\n href: /product\n variant: outline\n - type: Card\n props:\n title: Snake Plant\n description: Drought tolerant\n children:\n - type: Box\n props:\n className: h-40 -mx-6 -mt-2 mb-3 border-b border-border bg-muted/40 flex items-center justify-center\n - type: Stat\n props:\n value: $32\n change: $40\n - type: Link\n props:\n label: View details\n href: /product\n variant: outline\n - type: Card\n props:\n title: Fiddle Leaf Fig\n description: Bright indirect light\n children:\n - type: Box\n props:\n className: h-40 -mx-6 -mt-2 mb-3 border-b border-border bg-muted/40 flex items-center justify-center\n - type: BadgeGroup\n props:\n items:\n - label: Low stock\n tone: warning\n - type: Stat\n props:\n value: $74\n - type: Link\n props:\n label: View details\n href: /product\n variant: outline\n - type: Card\n props:\n title: Pothos Golden\n description: Beginner friendly\n children:\n - type: Box\n props:\n className: h-40 -mx-6 -mt-2 mb-3 border-b border-border bg-muted/40 flex items-center justify-center\n - type: BadgeGroup\n props:\n items:\n - label: New\n tone: info\n - type: Stat\n props:\n value: $24\n - type: Link\n props:\n label: View details\n href: /product\n variant: outline\n template: app-shell-sidebar\n- id: product\n path: /product\n title: Verdant — Monstera Deliciosa\n blocks:\n - type: PageLayout\n props:\n title: Verdant\n slots:\n headerActions:\n - type: Link\n props:\n label: Cart · 2\n href: /cart\n variant: button\n children:\n - type: Breadcrumb\n props:\n items:\n - label: Storefront\n href: /\n - label: Indoor plants\n href: /\n - label: Monstera Deliciosa\n - type: Grid\n props:\n cols: '2'\n gap: lg\n children:\n - type: Card\n children:\n - type: Box\n props:\n className: h-80 -m-6 rounded-none border border-border bg-muted/40 flex items-center justify-center\n children:\n - type: Paragraph\n props:\n size: sm\n muted: true\n text: No product photo\n - type: Box\n children:\n - type: Heading\n props:\n level: 2\n text: Monstera Deliciosa\n - type: BadgeGroup\n props:\n items:\n - label: Bestseller\n tone: success\n - label: In stock\n tone: info\n - type: Stat\n props:\n value: $48\n change: Free shipping\n - type: Paragraph\n props:\n muted: true\n text: The Swiss cheese plant — fast-growing, sculptural foliage that thrives in bright, indirect\n light. Ships in a 6\" nursery pot.\n - type: Divider\n - type: KeyValueGrid\n props:\n cols: '2'\n items:\n - key: Pot size\n value: 6 inch\n - key: Light\n value: Bright indirect\n - key: Water\n value: Weekly\n - key: Pet safe\n value: 'No'\n - key: Mature height\n value: Up to 8 ft\n - key: Difficulty\n value: Easy\n - type: Divider\n - type: Button\n props:\n label: Add to cart · $48\n full: true\n - type: Link\n props:\n label: Continue shopping\n href: /\n variant: muted\n - type: Card\n props:\n title: Care guide\n children:\n - type: Markdown\n props:\n content: '### Caring for your Monstera\n\n\n - **Light** — bright, indirect light. Avoid harsh midday sun.\n\n - **Water** — let the top *2 inches* of soil dry between waterings.\n\n - **Humidity** — loves humidity; mist weekly or group with other plants.\n\n\n With the right spot, a Monstera grows quickly and develops its\n\n signature split leaves within a season.\n\n '\n template: app-shell-sidebar\n- id: cart\n path: /cart\n title: Verdant — Cart\n blocks:\n - type: PageLayout\n props:\n title: Verdant\n slots:\n headerActions:\n - type: Link\n props:\n label: Checkout\n href: /checkout\n variant: button\n children:\n - type: Heading\n props:\n level: 2\n text: Your cart\n - type: Grid\n props:\n cols: '3'\n gap: lg\n children:\n - type: Box\n props:\n className: col-span-2\n children:\n - type: Card\n props:\n title: Items\n children:\n - type: Table\n props:\n columns:\n - key: item\n label: Item\n - key: qty\n label: Qty\n align: center\n - key: price\n label: Price\n align: right\n - key: total\n label: Total\n align: right\n rows:\n - item: Monstera Deliciosa\n qty: '1'\n price: $48.00\n total: $48.00\n - item: Snake Plant\n qty: '2'\n price: $32.00\n total: $64.00\n - type: Card\n props:\n title: Summary\n children:\n - type: Stat\n props:\n label: Subtotal\n value: $112.00\n - type: Stat\n props:\n label: Shipping\n value: $0.00\n description: Free over $75\n - type: Stat\n props:\n label: Tax\n value: $9.52\n - type: Divider\n - type: Stat\n props:\n label: Total\n value: $121.52\n - type: Link\n props:\n label: Proceed to checkout\n href: /checkout\n variant: button\n template: app-shell-sidebar\n- id: checkout\n path: /checkout\n title: Verdant — Checkout\n blocks:\n - type: PageLayout\n props:\n title: Verdant\n children:\n - type: Breadcrumb\n props:\n items:\n - label: Cart\n href: /cart\n - label: Checkout\n - type: Grid\n props:\n cols: '3'\n gap: lg\n children:\n - type: Box\n props:\n className: col-span-2\n children:\n - type: Card\n props:\n title: Shipping address\n children:\n - type: Form\n children:\n - type: Form.Input\n props:\n name: fullName\n label: Full name\n placeholder: Ada Lovelace\n required: true\n - type: Grid\n props:\n cols: '2'\n gap: md\n children:\n - type: Form.Input\n props:\n name: address\n label: Street address\n placeholder: 123 Garden Way\n - type: Form.Input\n props:\n name: apt\n label: Apt / unit\n placeholder: 4B\n - type: Grid\n props:\n cols: '3'\n gap: md\n children:\n - type: Form.Input\n props:\n name: city\n label: City\n placeholder: Portland\n - type: Form.Select\n props:\n name: state\n label: State\n options:\n - value: or\n label: Oregon\n - value: wa\n label: Washington\n - value: ca\n label: California\n - type: Form.Input\n props:\n name: zip\n label: ZIP\n placeholder: '97201'\n - type: Divider\n - type: Form.Input\n props:\n name: cardNumber\n label: Card number\n placeholder: 4242 4242 4242 4242\n - type: Grid\n props:\n cols: '2'\n gap: md\n children:\n - type: Form.Input\n props:\n name: expiry\n label: Expiry\n placeholder: MM / YY\n - type: Form.Input\n props:\n name: cvc\n label: CVC\n placeholder: '123'\n - type: Form.Checkbox\n props:\n name: saveCard\n label: Save card for next time\n description: Stored securely with our payment provider.\n - type: Form.Submit\n props:\n label: Place order · $121.52\n full: true\n - type: Card\n props:\n title: Order summary\n children:\n - type: KeyValueGrid\n props:\n cols: '1'\n items:\n - key: Monstera Deliciosa ×1\n value: $48.00\n - key: Snake Plant ×2\n value: $64.00\n - key: Shipping\n value: $0.00\n - key: Tax\n value: $9.52\n - type: Divider\n - type: Stat\n props:\n label: Total\n value: $121.52\n - type: Toast\n props:\n level: success\n message: Spring sale applied — you saved $16.\n template: app-shell-sidebar\n","dependencies":["component:badge-group","component:box","component:breadcrumb","component:button","component:card","component:divider","component:form","component:form-checkbox","component:form-input","component:form-select","component:form-submit","component:grid","component:heading","component:key-value-grid","component:link","component:markdown","component:page-layout","component:paragraph","component:stat","component:table","component:toast","template:app-shell-sidebar"]}]},"template:support-inbox":{"resourceId":"template:support-inbox","title":{"zh":"support-inbox","en":"support-inbox"},"docs":{"zh":"# support-inbox\n\nSupport Inbox\n\n","en":"# support-inbox\n\nSupport Inbox\n\n"},"distributions":[{"channel":"shadcn","name":"support-inbox","version":"0.16.0","availability":"source"},{"channel":"spec","name":"support-inbox","version":"0.16.0","availability":"source"}],"examples":[{"id":"support-inbox","title":"support-inbox","mode":"spec","language":"yaml","code":"version: \"2.0\"\npages:\n - id: support-inbox\n path: /\n title: Support Inbox\n state:\n selectedId: \"t-1\"\n blocks:\n - type: PageLayout\n props:\n title: Helpdesk\n slots:\n headerActions:\n - type: Button\n props:\n label: \"Compose\"\n size: sm\n children:\n - type: StatGrid\n props:\n cols: \"4\"\n items:\n - label: Open\n value: \"24\"\n - label: Waiting\n value: \"8\"\n - label: Resolved today\n value: \"57\"\n change: \"+12\"\n trend: up\n - label: First reply\n value: \"12m\"\n change: \"-3m\"\n trend: down\n - type: SplitMasterDetail\n props:\n selectKey: selectedId\n items:\n - id: t-1\n title: \"Can't reset my password\"\n subtitle: \"Jane Cooper · 4m ago\"\n - id: t-2\n title: \"Billing charged twice\"\n subtitle: \"Wade Warren · 22m ago\"\n - id: t-3\n title: \"Feature request: dark mode\"\n subtitle: \"Esther Howard · 1h ago\"\n - id: t-4\n title: \"API returns 500 on /orders\"\n subtitle: \"Cameron W. · 2h ago\"\n slots:\n detail:\n - type: Card\n props:\n title: \"Can't reset my password\"\n description: \"Jane Cooper · #t-1 · Open\"\n slots:\n actions:\n - type: BadgeGroup\n props:\n items:\n - label: Urgent\n tone: error\n - label: Auth\n tone: info\n children:\n - type: KeyValueGrid\n props:\n cols: \"2\"\n items:\n - key: Customer\n value: Jane Cooper\n - key: Plan\n value: Pro\n - key: Channel\n value: Email\n - key: Assignee\n value: You\n - type: Divider\n - type: Markdown\n props:\n content: |\n Hi team — the **reset password** link in my email returns\n *\"token expired\"* even seconds after I request it. I've tried\n three times on Chrome and Safari.\n - type: Form\n children:\n - type: \"Form.TextArea\"\n props:\n name: reply\n label: Reply\n rows: 3\n placeholder: \"Write a response…\"\n - type: \"Form.Submit\"\n props:\n label: Send reply\n","dependencies":["component:badge-group","component:button","component:card","component:divider","component:form","component:form-submit","component:form-text-area","component:key-value-grid","component:markdown","component:page-layout","component:split-master-detail","component:stat-grid"]}]},"template:team-directory":{"resourceId":"template:team-directory","title":{"zh":"team-directory","en":"team-directory"},"docs":{"zh":"# team-directory\n\nTeam Directory\n\n","en":"# team-directory\n\nTeam Directory\n\n"},"distributions":[{"channel":"shadcn","name":"team-directory","version":"0.16.0","availability":"source"},{"channel":"spec","name":"team-directory","version":"0.16.0","availability":"source"}],"examples":[{"id":"team-directory","title":"team-directory","mode":"spec","language":"yaml","code":"version: \"2.0\"\npages:\n - id: team-directory\n path: /\n title: Team Directory\n state:\n search: \"\"\n blocks:\n - type: PageLayout\n props:\n title: People\n slots:\n headerActions:\n - type: Button\n props:\n label: \"+ Invite\"\n size: sm\n children:\n - type: Box\n props:\n className: \"flex items-end justify-between gap-4 mb-3 border-b border-border pb-3\"\n children:\n - type: Box\n children:\n - type: Heading\n props:\n level: 2\n text: Team directory\n - type: Paragraph\n props:\n size: sm\n muted: true\n text: \"Demo roster · 6 people shown · live headcount n/a\"\n - type: BadgeGroup\n props:\n items:\n - label: 6 in this table\n tone: info\n - label: Directory source offline\n tone: warning\n - type: StatGrid\n props:\n cols: \"3\"\n items:\n - label: Shown here\n value: \"6\"\n description: \"sample rows\"\n - label: Departments\n value: \"4\"\n description: \"Platform · AI · Flight · Design\"\n - label: Live headcount\n value: \"n/a\"\n description: \"HRIS not connected\"\n - type: Card\n props:\n title: People\n description: \"Filter writes to state.search · empty copy is wired\"\n className: \"rounded-none border border-border shadow-none\"\n children:\n - type: SearchableTable\n props:\n searchKey: search\n placeholder: \"Search people…\"\n emptyText: No people match this search.\n columns:\n - key: name\n label: Name\n - key: role\n label: Role\n - key: dept\n label: Department\n - key: location\n label: Location\n rows:\n - name: Ada Lovelace\n role: Staff Engineer\n dept: Platform\n location: Lisbon\n - name: Grace Hopper\n role: Eng Manager\n dept: Platform\n location: Remote\n - name: Alan Turing\n role: Researcher\n dept: AI\n location: London\n - name: Katherine Johnson\n role: Data Scientist\n dept: AI\n location: NYC\n - name: Margaret Hamilton\n role: Principal Engineer\n dept: Flight Systems\n location: Boston\n - name: Hedy Lamarr\n role: Product Designer\n dept: Design\n location: Vienna\n","dependencies":["component:badge-group","component:box","component:button","component:card","component:heading","component:page-layout","component:paragraph","component:searchable-table","component:stat-grid"]}]}},"documents":[{"title":"架构与资源来源","markdown":"# 架构与资源来源\n\ncontracts 保存可序列化合同;registry 负责派生查询与依赖规划;installer 负责分发写盘;capability registry 负责执行。公开门户不保存 Studio 项目,也不自动启动模型请求。\n","path":"/docs/architecture"},{"title":"CLI 与 MCP","markdown":"# CLI 与 MCP\n\nCLI 与 MCP 使用同一公开资源包。先 search,再 get;docs、examples 和 install-plan 按需获取细节。build 与 install-plan 仅规划,不安装。shadcn MCP 负责源码安装,UIBot MCP 负责资源语义。\n\n```bash\nuibot resource search button --mode json\nuibot resource docs component:button --locale zh --mode json\nuibot resource examples component:button --mode json\nuibot resource install-plan component:button --mode json\n```\n\n```json\n{\"mcpServers\":{\"uibot\":{\"command\":\"uibot-mcp\"}}}\n```\n","path":"/docs/cli-mcp"},{"title":"宿主接线","markdown":"# 宿主接线\n\n宿主拥有认证、会话、权限、数据和部署。演示内存数据不代表真实后端。浏览器不能导入 application、agents 或 hub-runtime。HTML 预览保持 allow-scripts,密钥不进入文档或预览。\n","path":"/docs/host"},{"title":"开始使用","markdown":"# 开始使用\n\n从资源目录选择一个组件或模板,在 Playground 修改并导出。UIBot 提供 Spec 运行时、可复制的 shadcn 源码,以及宿主拥有的 SDK。\n\n先从固定 release-set 安装 CLI tarball,并将其 bin 加入 PATH。当前资源标记为源码版本,命令不代表 npm 已发布。\n\n```bash\nuibot search button --mode json\nuibot resource examples component:button --mode json\n```\n","path":"/docs/index"},{"title":"Playground","markdown":"# Playground\n\nTSX 和 Spec 在隔离预览中执行。只支持列表内的浏览器模块,未知 import 报错。草稿只保存在本机,导入导出使用版本化文件。预览主题独立于网站主题。\n","path":"/docs/playground"},{"title":"React 与 shadcn 接入","markdown":"# React 与 shadcn 接入\n\n组合块通过 shadcn registry 安装到宿主源码。逻辑从对应 npm 包导入,宿主注入设计系统、路由和数据端口。安装前检查资源详情中的实际 item 名称、依赖与版本。\n\n## 可信组件示例\n","path":"/docs/react"},{"title":"Spec 与运行时","markdown":"# Spec 与运行时\n\nSpec 是声明式页面合同。使用 compileSpec 严格检查,再用 createLiveRuntimeAdapter 与 UIBotLiveRenderer 渲染。组件目录定义属性、事件和插槽;Spec block 不是普通 React props 组件。\n\n```tsx\nimport { compileSpec } from \"@uibot/compiler\";\nimport { createLiveRuntimeAdapter } from \"@uibot/runtime\";\nimport { UIBotLiveRenderer } from \"@uibot/renderer-react\";\n// Supply your installed catalog, registry and host ports.\n```\n\n## 应用与页面布局\n\n在 Playground 的「全局设置」中,用图示选择导航、内容宽度、导航与移动侧栏样式、侧栏展开方式。配置直接写进 Spec,随撤销、草稿与导出保留。DESIGN.md 也在该面板中维护。\n\n```yaml\nlayout:\n navigation: sidebar # sidebar | navbar\n container: fluid # default | fluid | boxed\n navigationStyle: attached # attached | floating\n offcanvas: floating # attached | floating\n sidebar: hover # expanded | folded | hover\npages:\n - id: reports\n path: /reports\n layout:\n inherit: false\n navigation: navbar\n container: default\n blocks:\n - type: PageLayout\n props: { appearance: admin }\n children:\n - type: Heading\n props: { text: Reports }\n```\n\n省略 `page.layout` 时,应用页面跟随全局;逐项覆盖可以保留其他全局值,`inherit: false` 则使用该页面自己的默认值。标准内容按可用区域宽度响应居中,最大 1280px;铺满占据可用空间,窄屏时两者相同。盒式框架最大 1120px,顶部导航与正文保持对齐。移动端自动使用导航抽屉,悬停展开也支持键盘焦点。移动端侧栏样式仅在手机预览中打开导航后可见,侧栏行为仅作用于桌面侧边导航。\n\n认证、错误、落地页没有 PageLayout 根时,保持自己的结构。它们可设置 `layout: { inherit: false, container: boxed }` 调整独立容器;不会自动添加其他页面的导航、状态或权限。更改业务交互仍通过该页面的 Spec 属性、事件与插槽完成。\n\n编译器在壳展开后将配置合并进公共 PageLayout,安装到外部项目也使用同一行为。没有新增布局配置时,现有 `variant` 与 `collapsible` 保持原行为。\n","path":"/docs/spec"},{"title":"版本与兼容性","markdown":"# 版本与兼容性\n\n资源包记录版本和内容摘要。源码中的版本声明不证明已发布到 npm。成熟度与验证记录单独展示,严格编译、浏览器核对和外部消费验收是不同证据。\n","path":"/docs/versions"},{"title":"Architecture and provenance","markdown":"# Architecture and provenance\n\nContracts hold serializable types; registry owns derived queries and dependency plans; installer owns distribution writes; capability registry owns execution. The public portal stores no Studio projects and dispatches no model requests.\n","path":"/en/docs/architecture"},{"title":"CLI and MCP","markdown":"# CLI and MCP\n\nCLI and MCP consume the same public resource bundle. Search first, then get a resource; request docs, examples and install-plan as needed. Build and install-plan never install. shadcn MCP installs source; UIBot MCP explains resource contracts.\n\n```bash\nuibot resource search button --mode json\nuibot resource docs component:button --locale en --mode json\nuibot resource examples component:button --mode json\nuibot resource install-plan component:button --mode json\n```\n\n```json\n{\"mcpServers\":{\"uibot\":{\"command\":\"uibot-mcp\"}}}\n```\n","path":"/en/docs/cli-mcp"},{"title":"Host integration","markdown":"# Host integration\n\nThe host owns authentication, sessions, permissions, data and deployment. In-memory demo data is not a backend. Browsers must not import application, agents or hub-runtime. HTML previews keep allow-scripts and never receive credentials.\n","path":"/en/docs/host"},{"title":"Getting started","markdown":"# Getting started\n\nChoose a component or template, edit it in the Playground and export it. UIBot offers a Spec runtime, editable shadcn source and host-owned SDK seams.\n\nInstall the CLI tarball from a fixed release-set and put its bin on PATH first. Resources marked source-only are not evidence of npm publication.\n\n```bash\nuibot search button --mode json\nuibot resource examples component:button --mode json\n```\n","path":"/en/docs/index"},{"title":"Playground","markdown":"# Playground\n\nTSX and Spec execute in an isolated preview. Only admitted browser modules are available; unknown imports fail explicitly. Drafts stay on your device and use versioned import/export files. Preview and site themes are independent.\n","path":"/en/docs/playground"},{"title":"React and shadcn","markdown":"# React and shadcn\n\nInstall composite blocks from the shadcn registry into host-owned source. Import logic from its npm package and inject design-system, routing and data ports. Check the actual registry item, dependencies and version before installation.\n\n## Trusted component example\n","path":"/en/docs/react"},{"title":"Spec and runtime","markdown":"# Spec and runtime\n\nSpec is a declarative page contract. Validate with compileSpec, then render with createLiveRuntimeAdapter and UIBotLiveRenderer. Catalog entries describe properties, events and slots; Spec blocks are renderer adapters.\n\n```tsx\nimport { compileSpec } from \"@uibot/compiler\";\nimport { createLiveRuntimeAdapter } from \"@uibot/runtime\";\nimport { UIBotLiveRenderer } from \"@uibot/renderer-react\";\n// Supply your installed catalog, registry and host ports.\n```\n\n## Application and page layouts\n\nPlayground Global settings contains illustrated layout controls and DESIGN.md.\nChanges edit the Spec source and participate in undo, local drafts and export.\n\n```yaml\nlayout:\n navigation: sidebar # sidebar | navbar\n container: fluid # default | fluid | boxed\n navigationStyle: attached # attached | floating\n offcanvas: floating # attached | floating\n sidebar: hover # expanded | folded | hover\npages:\n - id: reports\n path: /reports\n layout:\n inherit: false\n navigation: navbar\n container: default\n blocks:\n - type: PageLayout\n props: { appearance: admin }\n children:\n - type: Heading\n props: { text: Reports }\n```\n\nOmit page layout to inherit application defaults, override individual fields, or\nset `inherit: false` to use independent defaults. Standard content centers at responsive\nbreakpoints within the available area, capped at 1280px. Fluid fills the available\nspace; they match on narrow screens. Boxed frames cap at 1120px, with top navigation\nand content aligned. Offcanvas styling is visible when opening phone navigation;\nsidebar behavior applies to desktop side navigation. Mobile uses a\nnavigation drawer. Hover expansion supports keyboard focus too.\n\nPages without a PageLayout root, including authentication and error pages, retain\ntheir own structure. They can explicitly choose their own container with\n`layout: { inherit: false, container: boxed }`. They never implicitly copy another\npage's navigation, state or permissions. The compiler merges defaults into the\npublic PageLayout after shell expansion; installed applications use the same\nbehavior. Existing variant/collapsible behavior is unchanged without a new policy.\n","path":"/en/docs/spec"},{"title":"Versions and compatibility","markdown":"# Versions and compatibility\n\nEvery resource bundle records its version and content hash. A source version declaration does not prove npm publication. Maturity and validation receipts are separate; compilation, browser checks and external-consumer acceptance are distinct evidence.\n","path":"/en/docs/versions"}]}