Skip to content

feat(react-core): port the a2ui-renderer standard catalog and markdown-mode behaviour onto createGenerativeUI - #7848

Merged
mme merged 16 commits into
feat/generative-ui-prototypefrom
mme/genui-standard-port
Oct 19, 2026
Merged

mme merged 16 commits into
feat/generative-ui-prototypefrom
mme/genui-standard-port

Conversation

@mme

@mme mme commented Oct 16, 2026 •

Copy link
Copy Markdown
Contributor

Ports the standard catalog work of #7829 onto the createGenerativeUI engine, so nothing that branch had is lost in #7819. Stacked on feat/generative-ui-prototype and rebased onto its A2UI v1.0 head (ae485ca8bf); no change to the engine's design, only additions. The ported tests, samples and docs write v1.0 operations with {"@path"} bindings and userMessage events.

What this PR does

Standard components (standardUI, 63 → 69)

  • New: Italic, Underline, Strikethrough, Blockquote, CarouselMediaItem, LinkCard, Citation, FollowUp, EntityCard, ImageGrid.
  • A multi-image Lightbox (arrows, counter, arrow keys) on Image, ImageGrid and CarouselMediaItem. href and copy on Button, href on Pressable: client-side verbs. Carousel gets arrows and a writable activeIndex. Every container sends onVisible once.
  • Additional props: layout role, flush, minSize, maxSize, disableAutoSpacing; Card size, shadowStyle; Text fontSize, lineHeight, minLines; Select clearLabel, icon, block; DateTimeInput block; Pressable tooltip, ariaPressed, insetBorder; Chart layout: "horizontal", yAxis, showDots, barRadius and the pie geometry; Image fallback, hoverZoom, position, minWidth, minHeight, actionOverlay; YouTube poster first (showThumbnail); Svg stroke props; Popover hoverOpenDelay, PopoverContent.sideOffset, PopoverTrigger.block (and a Button child works); LoadingBlock reducedMotion; PulseIndicator endScale, startOpacity; TableRow label as a th scope=row with labelColSpan; List maxMarkerSize, ListItem markerSize, disabled.
  • Text, Caption and Label show a bound number as text (a price bound to a slider no longer fails the schema).

Engine, additive

  • GenerativeUISurfaceManager.linkSurfaces: the parts of a chat surface that the prose lift split share their data model. The markdown source links them, and a user write to one part is written and owned in all of them. Closes the first known gap of feat: native generative UI (createGenerativeUI, tool and markdown transports, standard catalog, inspector pane) #7819.

  • A child that has not streamed yet renders nothing (no grey placeholder), the chat card has no "Generating…" line, and the markdown transport wraps a chat surface without a box. Streamed components fade in once (SVG internals excluded); the fade is opacity only and runs under reduced motion too, since it moves nothing.

  • A chat surface belongs to the reply that wrote it, as in feat: A2UI markdown mode (a2ui fences in chat, standard catalog) #7829: a later reply that reuses a surfaceId gets a surface of its own (<id>@<messageId>) instead of replacing the earlier reply's content. A page target is still updated from any reply. (Before: "five more flashcards" replaced the first five and the new reply showed nothing.)

  • MarkdownSurfaces and useGenerativeUIRuntime are exported from @copilotkit/react-core/v2/generative-ui, so the v1 chat (@copilotkit/react-ui) renders a2ui fences when the v1 provider gets a generativeUI prop with the markdown transport.

  • FollowUp pills send even when the model bound no onFollowUp: the pill forwards a follow_up event with its message, which becomes a visible user message. A List item with a value and no action is a key and value row (Price: $1,599); with an action the value stays the pick payload.

  • Animate, AnimateGroup, AnimateItem and Transition are removed. They were pass-through containers on both branches that did nothing, and a pass-through the model can reach for is noise in the schema. 73 → 69 components.

  • Tooltip hugs its trigger: as a flex item it stretched across the column and the tip centred far from the text.

  • The compact schema of the markdown transport hoists the props that many components share verbatim (the layout props of the containers) into commonProps, as the a2ui-renderer compact schema did. For standardUI that takes the context entry from 58K to 39K characters. One line in the guideline explains the flag.

Example and docs

  • Catalog page: samples for the composites, the inline text components, the Button verbs and a horizontal chart (50 samples, every component covered). A "How an engine works" suggestion drives the Svg component.
  • The catalog page says when the browser asks for reduced motion, since the shimmer, spinners and animations stop then by design.
  • ?layout=chat: the chat alone in one centered column, with a Layout switch in the header. The page-target suggestions are left out there, and the manifest lists only the chat as a target.
  • generative-ui/a2ui/markdown-mode.mdx rewritten for generativeUI, standardUI and createGenerativeUI.

Verification that nothing was lost

  • Inventory diff. Every component and prop of the a2ui-renderer catalog (73 components, 428 props) was dumped from its compact schema and diffed against standardUI.manifestComponents. The only components missing are the four motion pass-throughs, removed on purpose. 8 props have no counterpart, all renames into the engine's event and slot model: action → onClick/onSubmit/onAction, Carousel.ariaLabel → label, Tooltip.children → the trigger and content slots.
  • Test tally. The 155 tests of the a2ui-renderer catalog were matched against this tree: 55 exist verbatim, 58 are covered by an existing standardUI test under another title, 2 were ported under a new title, 7 test engine behaviour the generative UI engine covers with its own tests, 24 have no counterpart by design (compact schema, filterCatalog, host markdown renderer, themeToCssVariables), and 9 test the A2UI reference catalogs that stay in a2ui-renderer. The full mapping is in the PR comment below.
  • Catalog page at /catalog: 33 sections, 69 components, no missing sample, no render error, no placeholder.
  • Browser: the estimator and the engine prompts on the built-in agent with the markdown transport.

Not in this PR

  • The protocol version flip (v0.9 → v1) and the guideline: on the base branch.
  • Removing the standard catalog from packages/a2ui-renderer: once this is merged, so one source of truth remains.
  • Re-recording the real-model fixtures: after the version flip, once.

Testing

pnpm nx run-many -t test --projects=@copilotkit/react-core,@copilotkit/react-ui

react-core: 2246 tests pass (the standard components alone have 197). react-ui: 79 tests pass, including the new Markdown test. tsc --noEmit passes in react-core, react-ui and examples/v2/a2ui-markdown.

@coderabbitai

coderabbitai Bot commented Oct 16, 2026 •

Copy link
Copy Markdown
Contributor

Important

Review skipped

Auto reviews are disabled on base/target branches other than the default branch.

🗂️ Base branches to auto review: 1
  • main

Please check the settings in the CodeRabbit UI or the .coderabbit.yaml file in this repository. To trigger a single review, invoke the @coderabbitai review command.

⚙️ Run configuration
  • Configuration used: Repository: CopilotKit/CopilotKit/.coderabbit.yaml
  • Review profile: CHILL
  • Plan: Advanced
  • Run ID: 4f37a075-bbd7-4e0a-b454-e5439c35192a

You can disable this status message by setting the reviews.review_status to false in the CodeRabbit configuration file.

Use the checkbox below for a quick retry:

  • 🔍 Trigger review
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands.

@mme

mme commented Oct 16, 2026 •

Copy link
Copy Markdown
Contributor Author

Verification of the standard catalog port

Component and prop inventory

Generated from buildCompactCatalogSchema(standardCatalog) on feat/a2ui-markdown-mode (73 components, 428 props) and from standardUI.manifestComponents on this branch.

  • Components missing: none. Components extra: none.
  • Props without a counterpart: 8, all renames into the engine's event and slot model:
    • Button.action, Pressable.action, LinkCard.action, CarouselMediaItem.action → event onClick
    • Form.action → event onSubmit
    • EntityCard.action → events onClick (card) and onAction (buttons)
    • Carousel.ariaLabel → label (the name standardUI already used)
    • Tooltip.children → slots trigger and content
    • Image.actionOverlay.action → event onOverlayClick (nested object; not in the prop list)

Test tally

155 it(...) titles in packages/a2ui-renderer/src/react-renderer/__tests__. 55 exist verbatim in the generative UI test tree. The other 100:

covered by an existing standardUI test (58)

  • Button dispatches its action with context
    → inputs: sends a bound Button event with its context read from the data model at click time
  • Button inside a Pressable dispatches only the Button action
    → inputs: sends only the innermost event when a control inside a Pressable is used
  • Button renders text when label is absent and prefers label
    → inputs: renders Button text when label is not set, and prefers label
  • Card applies default padding, radius and border
    → layout: gives a Card its default padding, radius and border
  • Card variant section draws no box; outline is boxed even when nested
    → layout: draws no box for a section Card, and a box for an outline Card in a Card
  • CheckBox writes checked back to the data model
    → inputs: writes a CheckBox state to its checked path
  • Enter on a Button inside a Pressable does not fire the Pressable action
    → inputs: presses a Pressable with Enter, but not when Enter is on a Button inside it
  • FlashcardFlip flips to the back on click
    → feedback: flips to the back on click, and back to the front on a second click
  • Form dispatches its action on submit
    → inputs: sends only the Form onSubmit when a submit Button inside the Form is clicked
  • Grid with a numeric column count collapses responsively and containers fit their parent
    → layout: collapses a Grid with a column count and keeps containers inside their parent
  • Icon with an unknown name renders nothing
    → media: renders nothing for an Icon with an unknown name
  • Link refuses non-http hrefs
    → text: renders a Link with a javascript: href as plain text
  • List item action dispatches the A2UI action
    → data: sends the List action with the index, label and value of the picked item (the engine has one action per List, not per item)
  • List renders template children when items are absent
    → data: repeats a ListItem template for each item at /todos
  • Map marker list writes the selected label back to the data model
    → data: shows a list of places when maplibre-gl is not installed, and a pick writes the bound path
  • Markdown has no typography of its own and keeps its bullets
    → text: renders Markdown with Streamdown and no typography of its own
  • Row lays children out horizontally and Grid uses the column count
    → layout: lays a Row out horizontally and gives a Grid its column count
  • Row spaces children 8px apart unless a gap is given
    → layout: spaces Row children 8px apart unless a gap is given
  • Table also accepts TableRow/TableCell children with template repetition
    → data: repeats a TableRow template for each item at /rows
  • Table bound rows path may contain { componentId } cells
    → data: reads rows bound to a data path, with component cells
  • Table rows render { componentId } cells as components inside
    → data: shows the component of a { componentId } cell and column from cellComponents
  • Table shows emptyLabel when there are no rows
    → data: shows the empty label when there are no rows
  • Text binds to the data model
    → text: updates a Text bound to { path } when the data model changes
  • Text inherits its size unless one is given, which maps to em
    → text: lets Text inherit its size unless a size is given, and sizes Caption and Label in em
  • Text renders inline children after its text
    → text: renders the children of a Text inline after its text
  • Title maps sizes to heading levels
    → text: maps Title sizes to heading levels
  • Title takes size, line height and weight from the host's heading styles
    → text: takes the Title size, line height and weight from the host heading styles
  • YouTube ignores a videoId that is not a plain id
    → media: refuses a YouTube videoId that is not a plain id
  • applies --a2ui-* theme keys as CSS variables on the surface element
    → generative-ui.integration: sets the theme variables on the surface root and updates them without a remount
  • defaults font helpers to md
    → tokens: uses md as the default font size
  • disabled Button does not dispatch
    → inputs: does not send the event of a disabled Button
  • does not emit javascript: links
    → text: does not make a link of a javascript: URL
  • exposes the size enums
    → tokens: has the size lists
  • expresses the type scale in em of the host size
    → tokens: gives the type scale in em of the host size
  • falls back to the built-in block renderer without a host renderer
    → text: renders headings, lists, quotes, code and rules (renderBlockMarkdown); the Markdown component renders with Streamdown
  • feedback and overlay components render
    → feedback: renders the feedback and overlay components
  • guards numeric property comparisons with a has check, recursively
    → data: guards numeric property comparisons with a has check, at any depth
  • keeps a bordered Box outside any Card bordered
    → layout: renders a bordered Box as the inner panel in a Card, and with a border outside of one
  • keeps the border on a top-level Card and flattens a nested one
    → layout: keeps the border of a top-level Card and removes it from a nested one
  • keeps the previous reference while the content is equal
    → data: keeps the previous object while the content is equal
  • layoutStyle never emits undefined keys (undefined longhands would reset the gap shorthand in browsers)
    → layout: never has an undefined key, so it never resets the gap shorthand
  • leaves intra-word underscores alone
    → text: leaves underscores inside a word alone
  • leaves plain text alone and escapes nothing twice
    → text: leaves plain text alone and escapes it once
  • lets the surface inherit the host's typography
    → tokens: lets the surface inherit the typography of the host
  • maps background and text tokens to their values
    → tokens: maps background and text tokens to their fallback values
  • maps radius tokens and passes raw values
    → tokens: maps radius tokens and passes raw values through
  • maps semantic colors and passes raw CSS
    → tokens: maps semantic colors and passes raw CSS through
  • opens links in a new tab safely
    → text: opens links in a new tab, safely, and says so to screen readers
  • parses blocks: joins paragraph lines, keeps fences verbatim, no stray paragraphs
    → text: parses blocks: joins paragraph lines, keeps fences verbatim, adds no empty paragraphs
  • registers the expected number of components
    → standard-ui: has every component of every group once, each with a description (73)
  • renders Box with 4px gap and padding, a Title and a Text with inline markdown
    → layout: renders Box with gap and padding in 4px steps; text: renders a Title and a Text with inline markdown
  • renders a bordered Box inside a Card as the inner panel
    → layout: renders a bordered Box as the inner panel in a Card, and with a border outside of one
  • renders a lucide icon once the icon set has loaded
    → media: loads a lucide Icon on first use and hides it from screen readers
  • renders the whole fixture without a render error
    → standard-ui: renders the fixture with no error
  • submit Button inside a Form dispatches only the Form action
    → inputs: sends only the Form onSubmit when a submit Button inside the Form is clicked
  • submit Button outside a Form dispatches its own action
    → inputs: sends the onClick of a submit Button that is outside of a Form
  • uses 16px between groups directly inside a Card and 8px inside a group
    → layout: uses 16px between the groups in a Card and 8px in a group
  • uses every component in the catalog at least once
    → standard-ui: is used in full by the fixture

ported under a new title (2)

  • Popover sideOffset moves the content
    → inputs-parity: Popover sideOffset moves the content and a block trigger fills the width
  • treats numeric width and height as pixels
    → data-media-parity: Svg treats numeric width and height as pixels and takes stroke props

engine-level behaviour of the a2ui-renderer; the generative UI engine has its own tests (7)

  • contains an invalid resolved binding and recovers after a data-only correction
    → surface-view: shows a local fallback when bound data has the wrong type; resets a failed component when the agent sends a new revision
  • contains schema-valid malformed function arguments before binder mount
    → surface-view: checks the args with the event parameters, then with the function parameters
  • contains the saved PNI-558 payload and explains how to recover
    → a2ui-renderer recovery UI; the engine isolates a node with DefaultNodeFallback (surface-view: isolates a throwing component, keeps siblings usable, and retries)
  • preserves valid basic data bindings and repeating children
    → surface-view: renders the component once per item, with relative bindings
  • rejects invalid checks before the binder can evaluate them
    → surface-manager tests: the manager validates every operation before it applies it
  • rejects the malformed Metric and recovers when corrected on the same surface
    → surface-view: resets a failed component when the agent sends a new revision of it
  • schemas accept literal and bound values for array props
    → the manager's wire schema accepts { path } for every prop; bindings-parity tests read bound arrays in Table, Chart, Select, List, FollowUp and ImageGrid

no counterpart by design (24)

  • Table falls back to its empty label when a bound value is not an array
    → the engine shows a typed fallback for bound data of the wrong type (surface-view: shows a local fallback when bound data has the wrong type)
  • does not mutate the source catalog
    → filterCatalog is an a2ui-renderer helper; createGenerativeUI builds a new object and never mutates its bases (catalog.test)
  • drops FunctionCall variants from the inline JSON Schema
    → the manifest never carries functionCall variants; functions travel in the envelope
  • exports the compact builders and standardRenderers
    → the public entry exports standardUI (standard-ui.test)
  • hoists props shared verbatim by many components into commonProps
    → the compact schema of the markdown transport is buildCompactGenerativeUISchema (markdown/context.ts), which has no commonProps hoisting
  • includes the FunctionCall alternative when asked
    → see: drops FunctionCall variants
  • is much smaller than the full capabilities text for the standard catalog
    → a2ui-renderer capabilities text; the markdown transport sends one compact schema (markdown-transport tests)
  • is reachable from the package entry
    → filterCatalog helper
  • keeps child lists and actions readable
    → compact schema of the a2ui-renderer
  • keeps only components whose name passes the predicate
    → filterCatalog helper
  • keeps the catalog id and component description
    → compact schema of the a2ui-renderer
  • keeps the standard catalog under 36,000 chars without function calls
    → size bound of the a2ui-renderer compact schema; the react-core provider test bounds the markdown context
  • lists names only in the capabilities entry when definitions travel separately
    → a2ui-renderer capabilities entry
  • lists the catalog id and component names only
    → a2ui-renderer capabilities entry
  • omits commonProps when few components share props
    → see: hoists props shared verbatim
  • preserves the catalog id and functions
    → filterCatalog helper
  • preserves themeSchema and real functions when narrowing components
    → filterCatalog helper
  • renders Dynamic props as literal | path and drops FunctionCall
    → every prop takes a { path } binding at the engine level (surface-view: writes a path-bound prop to the data model)
  • renders through the host's markdown renderer when the provider has one
    → the catalog lives in react-core and renders Markdown with Streamdown directly; no host renderer indirection
  • returns an empty-component catalog when predicate rejects all
    → filterCatalog helper
  • summarises arrays of objects and objects one level deep
    → compact schema of the a2ui-renderer
  • summarises primitive, enum, union and optional props
    → compact schema of the a2ui-renderer
  • themeToCssVariables keeps only --a2ui-* string and number entries
    → theme is an engine option applied by SurfaceView
  • tolerates a minimal catalog object without a functions map
    → a2ui-renderer context builder

tests the A2UI reference catalogs (basic, minimal) that stay in a2ui-renderer (9)

  • Button does not submit the form
    → button-type.test.tsx
  • ChoicePicker chips do not submit the form
    → button-type.test.tsx
  • Modal close button does not submit the form
    → button-type.test.tsx
  • Tabs buttons do not submit the form
    → button-type.test.tsx
  • does not open a data: URI supplied by the agent
    → openurl-scheme.test.tsx tests web_core's openUrl; the standard components refuse unsafe schemes in composites.test: Button with href ignores unsafe schemes
  • does not open a javascript: URI supplied by the agent
    → openurl-scheme.test.tsx; see composites.test: Button with href ignores unsafe schemes
  • keeps the surface mounted and raises nothing when a scheme is blocked
    → openurl-scheme.test.tsx
  • minimal catalog Button does not submit the form
    → button-type.test.tsx
  • opens an https URL with noopener and noreferrer
    → openurl-scheme.test.tsx; see composites.test: Button with href opens the URL in a new tab and does not dispatch

@github-actions

github-actions Bot commented Oct 16, 2026 •

Copy link
Copy Markdown
Contributor

Production Digest-Pinning Audit

All 43 services digest-pinned.

Run 2026-10-19 05:13:57 PDT — 0 finding(s).

@pkg-pr-new

pkg-pr-new Bot commented Oct 16, 2026 •

Copy link
Copy Markdown
@copilotkit/a2ui-renderer

pnpm add https://pkg.pr.new/@copilotkit/a2ui-renderer@7848

@copilotkit/agentcore-runner

pnpm add https://pkg.pr.new/@copilotkit/agentcore-runner@7848

@copilotkit/angular

pnpm add https://pkg.pr.new/@copilotkit/angular@7848

@copilotkit/channels

pnpm add https://pkg.pr.new/@copilotkit/channels@7848

@copilotkit/channels-core

pnpm add https://pkg.pr.new/@copilotkit/channels-core@7848

@copilotkit/channels-discord

pnpm add https://pkg.pr.new/@copilotkit/channels-discord@7848

@copilotkit/channels-intelligence

pnpm add https://pkg.pr.new/@copilotkit/channels-intelligence@7848

@copilotkit/channels-slack

pnpm add https://pkg.pr.new/@copilotkit/channels-slack@7848

@copilotkit/channels-teams

pnpm add https://pkg.pr.new/@copilotkit/channels-teams@7848

@copilotkit/channels-telegram

pnpm add https://pkg.pr.new/@copilotkit/channels-telegram@7848

@copilotkit/channels-ui

pnpm add https://pkg.pr.new/@copilotkit/channels-ui@7848

@copilotkit/channels-whatsapp

pnpm add https://pkg.pr.new/@copilotkit/channels-whatsapp@7848

@copilotkit/core

pnpm add https://pkg.pr.new/@copilotkit/core@7848

@copilotkit/intelligence-langgraph

pnpm add https://pkg.pr.new/@copilotkit/intelligence-langgraph@7848

@copilotkit/intelligence-mastra

pnpm add https://pkg.pr.new/@copilotkit/intelligence-mastra@7848

@copilotkit/learning

pnpm add https://pkg.pr.new/@copilotkit/learning@7848

@copilotkit/mcp-apps-renderer

pnpm add https://pkg.pr.new/@copilotkit/mcp-apps-renderer@7848

@copilotkit/react-core

pnpm add https://pkg.pr.new/@copilotkit/react-core@7848

@copilotkit/react-native

pnpm add https://pkg.pr.new/@copilotkit/react-native@7848

@copilotkit/react-textarea

pnpm add https://pkg.pr.new/@copilotkit/react-textarea@7848

@copilotkit/react-ui

pnpm add https://pkg.pr.new/@copilotkit/react-ui@7848

@copilotkit/runtime

pnpm add https://pkg.pr.new/@copilotkit/runtime@7848

@copilotkit/runtime-client-gql

pnpm add https://pkg.pr.new/@copilotkit/runtime-client-gql@7848

@copilotkit/sdk-js

pnpm add https://pkg.pr.new/@copilotkit/sdk-js@7848

@copilotkit/shared

pnpm add https://pkg.pr.new/@copilotkit/shared@7848

@copilotkit/sqlite-runner

pnpm add https://pkg.pr.new/@copilotkit/sqlite-runner@7848

@copilotkit/voice

pnpm add https://pkg.pr.new/@copilotkit/voice@7848

@copilotkit/vue

pnpm add https://pkg.pr.new/@copilotkit/vue@7848

@copilotkit/web-components

pnpm add https://pkg.pr.new/@copilotkit/web-components@7848

@copilotkit/web-inspector

pnpm add https://pkg.pr.new/@copilotkit/web-inspector@7848

commit: a0b5f72

@github-actions

github-actions Bot commented Oct 16, 2026 •

Copy link
Copy Markdown
Contributor

Size Change: 0 B

Total Size: 2.11 MB

ℹ️ View Unchanged
Filename Size
packages/a2ui-renderer/dist/_virtual/_rolldown/runtime.cjs 516 B
packages/a2ui-renderer/dist/a2ui-types.cjs 472 B
packages/a2ui-renderer/dist/a2ui-types.mjs 469 B
packages/a2ui-renderer/dist/index.cjs 959 B
packages/a2ui-renderer/dist/index.mjs 637 B
packages/a2ui-renderer/dist/index.umd.js 13.4 kB
packages/a2ui-renderer/dist/react-renderer/a2ui-react/A2uiSurface.cjs 1.52 kB
packages/a2ui-renderer/dist/react-renderer/a2ui-react/A2uiSurface.mjs 1.46 kB
packages/a2ui-renderer/dist/react-renderer/a2ui-react/adapter.cjs 1.57 kB
packages/a2ui-renderer/dist/react-renderer/a2ui-react/adapter.mjs 1.5 kB
packages/a2ui-renderer/dist/react-renderer/a2ui-react/catalog/basic/components/AudioPlayer.cjs 904 B
packages/a2ui-renderer/dist/react-renderer/a2ui-react/catalog/basic/components/AudioPlayer.mjs 492 B
packages/a2ui-renderer/dist/react-renderer/a2ui-react/catalog/basic/components/Button.cjs 1.01 kB
packages/a2ui-renderer/dist/react-renderer/a2ui-react/catalog/basic/components/Button.mjs 603 B
packages/a2ui-renderer/dist/react-renderer/a2ui-react/catalog/basic/components/Card.cjs 829 B
packages/a2ui-renderer/dist/react-renderer/a2ui-react/catalog/basic/components/Card.mjs 419 B
packages/a2ui-renderer/dist/react-renderer/a2ui-react/catalog/basic/components/CheckBox.cjs 1.1 kB
packages/a2ui-renderer/dist/react-renderer/a2ui-react/catalog/basic/components/CheckBox.mjs 1.02 kB
packages/a2ui-renderer/dist/react-renderer/a2ui-react/catalog/basic/components/ChildList.cjs 799 B
packages/a2ui-renderer/dist/react-renderer/a2ui-react/catalog/basic/components/ChildList.mjs 737 B
packages/a2ui-renderer/dist/react-renderer/a2ui-react/catalog/basic/components/ChoicePicker.cjs 1.64 kB
packages/a2ui-renderer/dist/react-renderer/a2ui-react/catalog/basic/components/ChoicePicker.mjs 1.57 kB
packages/a2ui-renderer/dist/react-renderer/a2ui-react/catalog/basic/components/Column.cjs 856 B
packages/a2ui-renderer/dist/react-renderer/a2ui-react/catalog/basic/components/Column.mjs 802 B
packages/a2ui-renderer/dist/react-renderer/a2ui-react/catalog/basic/components/DateTimeInput.cjs 1.12 kB
packages/a2ui-renderer/dist/react-renderer/a2ui-react/catalog/basic/components/DateTimeInput.mjs 1.05 kB
packages/a2ui-renderer/dist/react-renderer/a2ui-react/catalog/basic/components/Divider.cjs 842 B
packages/a2ui-renderer/dist/react-renderer/a2ui-react/catalog/basic/components/Divider.mjs 432 B
packages/a2ui-renderer/dist/react-renderer/a2ui-react/catalog/basic/components/Icon.cjs 877 B
packages/a2ui-renderer/dist/react-renderer/a2ui-react/catalog/basic/components/Icon.mjs 469 B
packages/a2ui-renderer/dist/react-renderer/a2ui-react/catalog/basic/components/Image.cjs 995 B
packages/a2ui-renderer/dist/react-renderer/a2ui-react/catalog/basic/components/Image.mjs 587 B
packages/a2ui-renderer/dist/react-renderer/a2ui-react/catalog/basic/components/List.cjs 920 B
packages/a2ui-renderer/dist/react-renderer/a2ui-react/catalog/basic/components/List.mjs 508 B
packages/a2ui-renderer/dist/react-renderer/a2ui-react/catalog/basic/components/Modal.cjs 1.2 kB
packages/a2ui-renderer/dist/react-renderer/a2ui-react/catalog/basic/components/Modal.mjs 1.14 kB
packages/a2ui-renderer/dist/react-renderer/a2ui-react/catalog/basic/components/Row.cjs 855 B
packages/a2ui-renderer/dist/react-renderer/a2ui-react/catalog/basic/components/Row.mjs 801 B
packages/a2ui-renderer/dist/react-renderer/a2ui-react/catalog/basic/components/Slider.cjs 1.06 kB
packages/a2ui-renderer/dist/react-renderer/a2ui-react/catalog/basic/components/Slider.mjs 984 B
packages/a2ui-renderer/dist/react-renderer/a2ui-react/catalog/basic/components/Tabs.cjs 1.1 kB
packages/a2ui-renderer/dist/react-renderer/a2ui-react/catalog/basic/components/Tabs.mjs 1.04 kB
packages/a2ui-renderer/dist/react-renderer/a2ui-react/catalog/basic/components/Text.cjs 903 B
packages/a2ui-renderer/dist/react-renderer/a2ui-react/catalog/basic/components/Text.mjs 489 B
packages/a2ui-renderer/dist/react-renderer/a2ui-react/catalog/basic/components/TextField.cjs 1.21 kB
packages/a2ui-renderer/dist/react-renderer/a2ui-react/catalog/basic/components/TextField.mjs 1.14 kB
packages/a2ui-renderer/dist/react-renderer/a2ui-react/catalog/basic/components/Video.cjs 788 B
packages/a2ui-renderer/dist/react-renderer/a2ui-react/catalog/basic/components/Video.mjs 378 B
packages/a2ui-renderer/dist/react-renderer/a2ui-react/catalog/basic/index.cjs 928 B
packages/a2ui-renderer/dist/react-renderer/a2ui-react/catalog/basic/index.mjs 855 B
packages/a2ui-renderer/dist/react-renderer/a2ui-react/catalog/basic/utils.cjs 579 B
packages/a2ui-renderer/dist/react-renderer/a2ui-react/catalog/basic/utils.mjs 556 B
packages/a2ui-renderer/dist/react-renderer/a2ui-react/catalog/minimal/components/Button.cjs 989 B
packages/a2ui-renderer/dist/react-renderer/a2ui-react/catalog/minimal/components/Button.mjs 584 B
packages/a2ui-renderer/dist/react-renderer/a2ui-react/catalog/minimal/components/ChildList.cjs 800 B
packages/a2ui-renderer/dist/react-renderer/a2ui-react/catalog/minimal/components/ChildList.mjs 735 B
packages/a2ui-renderer/dist/react-renderer/a2ui-react/catalog/minimal/components/Column.cjs 1.08 kB
packages/a2ui-renderer/dist/react-renderer/a2ui-react/catalog/minimal/components/Column.mjs 1.02 kB
packages/a2ui-renderer/dist/react-renderer/a2ui-react/catalog/minimal/components/Row.cjs 1.07 kB
packages/a2ui-renderer/dist/react-renderer/a2ui-react/catalog/minimal/components/Row.mjs 1.01 kB
packages/a2ui-renderer/dist/react-renderer/a2ui-react/catalog/minimal/components/Text.cjs 894 B
packages/a2ui-renderer/dist/react-renderer/a2ui-react/catalog/minimal/components/Text.mjs 839 B
packages/a2ui-renderer/dist/react-renderer/a2ui-react/catalog/minimal/components/TextField.cjs 1.21 kB
packages/a2ui-renderer/dist/react-renderer/a2ui-react/catalog/minimal/components/TextField.mjs 802 B
packages/a2ui-renderer/dist/react-renderer/a2ui-react/catalog/minimal/index.cjs 849 B
packages/a2ui-renderer/dist/react-renderer/a2ui-react/catalog/minimal/index.mjs 804 B
packages/a2ui-renderer/dist/react-renderer/a2ui-react/index.cjs 310 B
packages/a2ui-renderer/dist/react-renderer/a2ui-react/index.mjs 325 B
packages/a2ui-renderer/dist/react-renderer/catalog-utils.cjs 1.59 kB
packages/a2ui-renderer/dist/react-renderer/catalog-utils.mjs 1.52 kB
packages/a2ui-renderer/dist/react-renderer/core/A2UIProvider.cjs 1.5 kB
packages/a2ui-renderer/dist/react-renderer/core/A2UIProvider.mjs 1.42 kB
packages/a2ui-renderer/dist/react-renderer/core/A2UIRenderer.cjs 728 B
packages/a2ui-renderer/dist/react-renderer/core/A2UIRenderer.mjs 671 B
packages/a2ui-renderer/dist/react-renderer/create-catalog.cjs 1.35 kB
packages/a2ui-renderer/dist/react-renderer/create-catalog.mjs 1.28 kB
packages/a2ui-renderer/dist/react-renderer/filter-catalog.cjs 622 B
packages/a2ui-renderer/dist/react-renderer/filter-catalog.mjs 569 B
packages/a2ui-renderer/dist/react-renderer/hooks/useA2UI.cjs 316 B
packages/a2ui-renderer/dist/react-renderer/hooks/useA2UI.mjs 309 B
packages/a2ui-renderer/dist/react-renderer/index.cjs 409 B
packages/a2ui-renderer/dist/react-renderer/index.mjs 568 B
packages/a2ui-renderer/dist/react-renderer/lib/utils.cjs 236 B
packages/a2ui-renderer/dist/react-renderer/lib/utils.mjs 188 B
packages/a2ui-renderer/dist/react-renderer/styles/index.cjs 239 B
packages/a2ui-renderer/dist/react-renderer/styles/index.mjs 231 B
packages/a2ui-renderer/dist/react-renderer/theme/ThemeContext.cjs 436 B
packages/a2ui-renderer/dist/react-renderer/theme/ThemeContext.mjs 381 B
packages/core/dist/index.cjs 98.4 kB
packages/core/dist/index.mjs 97.8 kB
packages/core/dist/index.umd.js 104 kB
packages/mcp-apps-renderer/dist/activity.cjs 259 B
packages/mcp-apps-renderer/dist/activity.mjs 170 B
packages/mcp-apps-renderer/dist/activity.umd.js 2.24 kB
packages/mcp-apps-renderer/dist/constants.cjs 714 B
packages/mcp-apps-renderer/dist/constants.mjs 712 B
packages/mcp-apps-renderer/dist/content-schema.cjs 768 B
packages/mcp-apps-renderer/dist/content-schema.mjs 765 B
packages/mcp-apps-renderer/dist/follow-up.cjs 796 B
packages/mcp-apps-renderer/dist/follow-up.mjs 794 B
packages/mcp-apps-renderer/dist/index.mjs 354 B
packages/mcp-apps-renderer/dist/request-queue.mjs 2.39 kB
packages/mcp-apps-renderer/dist/sandbox.mjs 1.14 kB
packages/mcp-apps-renderer/dist/session.mjs 6.86 kB
packages/react-core/dist/copilotkit-CIE6vAGV.mjs 136 kB
packages/react-core/dist/copilotkit-eIETsXXW.cjs 132 kB
packages/react-core/dist/index.cjs 17.7 kB
packages/react-core/dist/index.mjs 17.6 kB
packages/react-core/dist/index.umd.js 96.4 kB
packages/react-core/dist/MarkdownSurfaces-AM1Adf-q.mjs 23 kB
packages/react-core/dist/MarkdownSurfaces-Bx6UJzAU.cjs 23.6 kB
packages/react-core/dist/v2/context.cjs 1.58 kB
packages/react-core/dist/v2/context.mjs 1.5 kB
packages/react-core/dist/v2/generative-ui.cjs 53.2 kB
packages/react-core/dist/v2/generative-ui.mjs 52.6 kB
packages/react-core/dist/v2/headless.cjs 16.3 kB
packages/react-core/dist/v2/headless.mjs 15.7 kB
packages/react-core/dist/v2/index.cjs 4.3 kB
packages/react-core/dist/v2/index.mjs 4.29 kB
packages/react-core/dist/v2/index.umd.js 154 kB
packages/react-native/dist/chunk-C0xms8kb.cjs 546 B
packages/react-native/dist/components/index.cjs 8.65 kB
packages/react-native/dist/components/index.mjs 8.45 kB
packages/react-native/dist/CopilotKitProvider-CjoPnabW.cjs 1.55 kB
packages/react-native/dist/CopilotKitProvider-D8sn7G_C.mjs 1.43 kB
packages/react-native/dist/headless.cjs 632 B
packages/react-native/dist/headless.mjs 373 B
packages/react-native/dist/index.cjs 6.52 kB
packages/react-native/dist/index.mjs 6.14 kB
packages/react-native/dist/polyfills.cjs 195 B
packages/react-native/dist/polyfills.mjs 195 B
packages/react-native/dist/polyfills/crypto.cjs 373 B
packages/react-native/dist/polyfills/crypto.mjs 381 B
packages/react-native/dist/polyfills/dom.cjs 540 B
packages/react-native/dist/polyfills/dom.mjs 550 B
packages/react-native/dist/polyfills/encoding.cjs 332 B
packages/react-native/dist/polyfills/encoding.mjs 307 B
packages/react-native/dist/polyfills/location.cjs 236 B
packages/react-native/dist/polyfills/location.mjs 244 B
packages/react-native/dist/polyfills/streams.cjs 371 B
packages/react-native/dist/polyfills/streams.mjs 339 B
packages/react-native/dist/streaming-fetch-BnQh3vBz.mjs 2.22 kB
packages/react-native/dist/streaming-fetch-BTESzLKX.cjs 2.27 kB
packages/react-textarea/dist/index.cjs 17.6 kB
packages/react-textarea/dist/index.mjs 16.9 kB
packages/react-textarea/dist/index.umd.js 18.4 kB
packages/react-ui/dist/index.cjs 25.3 kB
packages/react-ui/dist/index.mjs 24.6 kB
packages/react-ui/dist/index.umd.js 26.6 kB
packages/runtime-client-gql/dist/_virtual/_rolldown/runtime.cjs 516 B
packages/runtime-client-gql/dist/client/conversion.cjs 1.52 kB
packages/runtime-client-gql/dist/client/conversion.mjs 1.45 kB
packages/runtime-client-gql/dist/client/CopilotRuntimeClient.cjs 1.58 kB
packages/runtime-client-gql/dist/client/CopilotRuntimeClient.mjs 1.54 kB
packages/runtime-client-gql/dist/client/types.cjs 701 B
packages/runtime-client-gql/dist/client/types.mjs 642 B
packages/runtime-client-gql/dist/graphql/@generated/gql.cjs 850 B
packages/runtime-client-gql/dist/graphql/@generated/gql.mjs 850 B
packages/runtime-client-gql/dist/graphql/@generated/graphql.cjs 2.4 kB
packages/runtime-client-gql/dist/graphql/@generated/graphql.mjs 2.36 kB
packages/runtime-client-gql/dist/graphql/definitions/mutations.cjs 740 B
packages/runtime-client-gql/dist/graphql/definitions/mutations.mjs 732 B
packages/runtime-client-gql/dist/graphql/definitions/queries.cjs 316 B
packages/runtime-client-gql/dist/graphql/definitions/queries.mjs 304 B
packages/runtime-client-gql/dist/index.cjs 679 B
packages/runtime-client-gql/dist/index.mjs 495 B
packages/runtime-client-gql/dist/index.umd.js 9.58 kB
packages/runtime-client-gql/dist/message-conversion/agui-to-gql.cjs 1.72 kB
packages/runtime-client-gql/dist/message-conversion/agui-to-gql.mjs 1.7 kB
packages/runtime-client-gql/dist/message-conversion/gql-to-agui.cjs 1.56 kB
packages/runtime-client-gql/dist/message-conversion/gql-to-agui.mjs 1.53 kB
packages/runtime-client-gql/dist/package.cjs 181 B
packages/runtime-client-gql/dist/package.mjs 116 B
packages/shared/dist/_virtual/_rolldown/runtime.cjs 516 B
packages/shared/dist/a2ui-envelope.cjs 2.2 kB
packages/shared/dist/a2ui-envelope.mjs 2.19 kB
packages/shared/dist/a2ui-prompts.cjs 6.12 kB
packages/shared/dist/a2ui-prompts.mjs 6.08 kB
packages/shared/dist/attachments/content.cjs 255 B
packages/shared/dist/attachments/content.mjs 253 B
packages/shared/dist/attachments/utils.cjs 1.83 kB
packages/shared/dist/attachments/utils.mjs 1.79 kB
packages/shared/dist/constants/index.cjs 362 B
packages/shared/dist/constants/index.mjs 345 B
packages/shared/dist/debug.cjs 454 B
packages/shared/dist/debug.mjs 452 B
packages/shared/dist/event-transforms/index.cjs 335 B
packages/shared/dist/event-transforms/index.mjs 165 B
packages/shared/dist/event-transforms/open-generative-ui-middleware.cjs 2.42 kB
packages/shared/dist/event-transforms/open-generative-ui-middleware.mjs 2.35 kB
packages/shared/dist/event-transforms/recorded-events.cjs 988 B
packages/shared/dist/event-transforms/recorded-events.mjs 925 B
packages/shared/dist/finalize-events.cjs 1.94 kB
packages/shared/dist/finalize-events.mjs 1.88 kB
packages/shared/dist/generative-ui/render-ui-args.cjs 1.2 kB
packages/shared/dist/generative-ui/render-ui-args.mjs 1.2 kB
packages/shared/dist/generative-ui/types.cjs 769 B
packages/shared/dist/generative-ui/types.mjs 729 B
packages/shared/dist/generative-ui/validate-operation.cjs 3.95 kB
packages/shared/dist/generative-ui/validate-operation.mjs 3.92 kB
packages/shared/dist/index.cjs 3.45 kB
packages/shared/dist/index.mjs 2.92 kB
packages/shared/dist/index.umd.js 42 kB
packages/shared/dist/intelligence-routing-fields.cjs 778 B
packages/shared/dist/intelligence-routing-fields.mjs 775 B
packages/shared/dist/logger.cjs 112 B
packages/shared/dist/logger.mjs 112 B
packages/shared/dist/open-generative-ui-prompts.cjs 1.59 kB
packages/shared/dist/open-generative-ui-prompts.mjs 1.59 kB
packages/shared/dist/package.cjs 181 B
packages/shared/dist/package.mjs 116 B
packages/shared/dist/standard-schema.cjs 740 B
packages/shared/dist/standard-schema.mjs 737 B
packages/shared/dist/telemetry/index.cjs 358 B
packages/shared/dist/telemetry/index.mjs 250 B
packages/shared/dist/telemetry/lambda-client.cjs 1.59 kB
packages/shared/dist/telemetry/lambda-client.mjs 1.58 kB
packages/shared/dist/telemetry/model-host.cjs 1.63 kB
packages/shared/dist/telemetry/model-host.mjs 1.63 kB
packages/shared/dist/telemetry/sampling.cjs 956 B
packages/shared/dist/telemetry/sampling.mjs 935 B
packages/shared/dist/telemetry/telemetry-client.cjs 1.88 kB
packages/shared/dist/telemetry/telemetry-client.mjs 1.83 kB
packages/shared/dist/telemetry/telemetry-disabled.cjs 454 B
packages/shared/dist/telemetry/telemetry-disabled.mjs 451 B
packages/shared/dist/telemetry/utils.cjs 321 B
packages/shared/dist/telemetry/utils.mjs 277 B
packages/shared/dist/transcription-errors.cjs 951 B
packages/shared/dist/transcription-errors.mjs 944 B
packages/shared/dist/utils/clipboard.cjs 407 B
packages/shared/dist/utils/clipboard.mjs 405 B
packages/shared/dist/utils/conditions.cjs 540 B
packages/shared/dist/utils/conditions.mjs 536 B
packages/shared/dist/utils/console-styling.cjs 1.23 kB
packages/shared/dist/utils/console-styling.mjs 1.21 kB
packages/shared/dist/utils/errors.cjs 4.51 kB
packages/shared/dist/utils/errors.mjs 4.41 kB
packages/shared/dist/utils/index.cjs 1.45 kB
packages/shared/dist/utils/index.mjs 1.77 kB
packages/shared/dist/utils/inspector-learning.cjs 2.38 kB
packages/shared/dist/utils/inspector-learning.mjs 2.38 kB
packages/shared/dist/utils/inspector-metadata.cjs 1.46 kB
packages/shared/dist/utils/inspector-metadata.mjs 1.45 kB
packages/shared/dist/utils/inspector-visibility.cjs 285 B
packages/shared/dist/utils/inspector-visibility.mjs 282 B
packages/shared/dist/utils/json-schema.cjs 1.97 kB
packages/shared/dist/utils/json-schema.mjs 1.91 kB
packages/shared/dist/utils/random-id.cjs 618 B
packages/shared/dist/utils/random-id.mjs 559 B
packages/shared/dist/utils/requests.cjs 706 B
packages/shared/dist/utils/requests.mjs 704 B
packages/shared/dist/utils/row-render-keys.cjs 3.38 kB
packages/shared/dist/utils/row-render-keys.mjs 3.36 kB
packages/shared/dist/utils/types.cjs 161 B
packages/shared/dist/utils/types.mjs 160 B
packages/voice/dist/_virtual/_rolldown/runtime.cjs 516 B
packages/voice/dist/index.cjs 175 B
packages/voice/dist/index.mjs 95 B
packages/voice/dist/index.umd.js 1.5 kB
packages/voice/dist/transcription/transcription-service-openai.cjs 495 B
packages/voice/dist/transcription/transcription-service-openai.mjs 434 B
packages/web-inspector/dist/assets/inspector-logo-kite.cjs 2.36 kB
packages/web-inspector/dist/assets/inspector-logo-kite.mjs 2.3 kB
packages/web-inspector/dist/assets/inspector-logo.cjs 4.32 kB
packages/web-inspector/dist/assets/inspector-logo.mjs 4.23 kB
packages/web-inspector/dist/components/learning-view.cjs 9.47 kB
packages/web-inspector/dist/components/learning-view.mjs 9.47 kB
packages/web-inspector/dist/index.cjs 132 kB
packages/web-inspector/dist/index.mjs 132 kB
packages/web-inspector/dist/index.umd.js 198 kB
packages/web-inspector/dist/lib/context-helpers.cjs 866 B
packages/web-inspector/dist/lib/context-helpers.mjs 835 B
packages/web-inspector/dist/lib/home-briefing.cjs 2.8 kB
packages/web-inspector/dist/lib/home-briefing.mjs 2.79 kB
packages/web-inspector/dist/lib/hud-config.cjs 1.34 kB
packages/web-inspector/dist/lib/hud-config.mjs 1.33 kB
packages/web-inspector/dist/lib/hud-defaults.cjs 287 B
packages/web-inspector/dist/lib/hud-defaults.mjs 285 B
packages/web-inspector/dist/lib/hud-loader.cjs 557 B
packages/web-inspector/dist/lib/hud-loader.mjs 546 B
packages/web-inspector/dist/lib/inspector-learning.cjs 754 B
packages/web-inspector/dist/lib/inspector-learning.mjs 732 B
packages/web-inspector/dist/lib/inspector-metadata.cjs 760 B
packages/web-inspector/dist/lib/inspector-metadata.mjs 750 B
packages/web-inspector/dist/lib/inspector-nav.cjs 674 B
packages/web-inspector/dist/lib/inspector-nav.mjs 652 B
packages/web-inspector/dist/lib/learning-setup.cjs 1.12 kB
packages/web-inspector/dist/lib/learning-setup.mjs 1.09 kB
packages/web-inspector/dist/lib/notification-loader.cjs 792 B
packages/web-inspector/dist/lib/notification-loader.mjs 786 B
packages/web-inspector/dist/lib/notifications.cjs 2.39 kB
packages/web-inspector/dist/lib/notifications.mjs 2.37 kB
packages/web-inspector/dist/lib/onboarding-prompt.cjs 2.38 kB
packages/web-inspector/dist/lib/onboarding-prompt.mjs 2.37 kB
packages/web-inspector/dist/lib/persistence.cjs 3.61 kB
packages/web-inspector/dist/lib/persistence.mjs 3.52 kB
packages/web-inspector/dist/lib/pop-out.cjs 1.07 kB
packages/web-inspector/dist/lib/pop-out.mjs 1.05 kB
packages/web-inspector/dist/lib/telemetry.cjs 5.59 kB
packages/web-inspector/dist/lib/telemetry.mjs 5.38 kB
packages/web-inspector/dist/lib/thread-selection.cjs 566 B
packages/web-inspector/dist/lib/thread-selection.mjs 563 B
packages/web-inspector/dist/package.cjs 181 B
packages/web-inspector/dist/package.mjs 116 B
packages/web-inspector/dist/styles/generated.cjs 20.1 kB
packages/web-inspector/dist/styles/generated.mjs 20 kB
packages/web-inspector/dist/styles/notification-article.cjs 1.44 kB
packages/web-inspector/dist/styles/notification-article.mjs 1.44 kB

compressed-size-action

*/
private readonly linked = new Map<string, ReadonlySet<string>>();
private readonly wireSchemas = new Map<string, z.ZodTypeAny>();
private readonly webCoreCatalog: Catalog<any>;

@contextablemark contextablemark Oct 17, 2026 •

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Could we upgrade @a2ui/web_core from 0.10.4 to the current npm latest, 0.14.0, as a coordinated migration? The package still exports /v0_9, so upgrading the library does not itself require changing this PR's wire protocol to v1.0.

The target manifest entry is "@a2ui/web_core": "0.14.0". The pin and the constructor call sites are outside this PR's diff, so GitHub cannot attach an applicable one-click suggestion to those exact lines. Here are the concrete renderer API edits needed alongside the pin:

this.webCoreCatalog = new Catalog(
  ui.id,
  "v0.9",
  [...ui.components.keys()].map((name) => ({ name, schema: z.any() })),
  [],
);

// In upsertNode:
new ComponentModel(id, component, properties, this.webCoreCatalog);

These edits must land together with the dependency updates and regenerated lockfile; a version-only bump currently breaks compilation. Comparing the published declarations and resolving this renderer against 0.14.0 in an isolated TypeScript check confirms:

  • GenerativeUISurfaceManager must construct Catalog with an explicit protocol version, e.g. new Catalog(ui.id, "v0.9", components, []).
  • new ComponentModel(id, component, properties) needs the catalog as its fourth argument, e.g. this.webCoreCatalog. The corresponding test fixture also needs updating.

Dependency impact:

  • The same 0.10.4 pin exists in packages/a2ui-renderer, packages/angular, packages/vue, examples/v2/angular/demo and showcase/angular. Please assess/update those together and regenerate pnpm-lock.yaml; changing only React core leaves mixed web_core versions and public catalog/model types. The legacy renderer, Angular and Vue also construct catalogs using the old signature.
  • Audit calls that pass a theme as the third SurfaceModel argument: that position is now availableCatalogs, with theme fourth. Check use of the now-optional SurfaceModel.catalog, changes to catalog validation/schema generation, the removed non-spec v0.9 math/comparison functions, and universal-component imports/registration if used. These changes can affect existing custom catalogs.
  • web_core's direct dependency changes are: add lit ^3.3.3, @lit/context ^1.1.6, redos-detector ^6.1.4, validate-color ^2.2.4; drop its date-fns dependency. Its Zod, zod-to-json-schema and signals dependency ranges are unchanged. Existing compatible Lit ranges can remain, with the lockfile resolving the newer minimum.
  • The older @a2ui/[email protected] examples independently pull [email protected]; a root override would force a different migration onto those, so avoid one. No AG-UI, OpenAI or LangGraph upgrade is implied by this web_core bump.

Please rerun Nx builds, type checks and tests for the four directly affected packages plus React UI and the demo/browser checks after adapting the APIs. This assessment is not a passing compatibility certification for 0.14.0.

Sources: published 0.14.0 metadata, upstream changelog.

The isolated checks also found upgrade-specific catalog-constructor errors in the legacy renderer, Angular and Vue, plus new Angular action typing/nullable-catalog errors and Vue choice-label/nullable-catalog errors. Existing baseline diagnostics were separated from these; Angular/Vue were not clean full-build baselines in this checkout.

mme added 16 commits October 19, 2026 14:12
…rdUI

Adds the components and props the earlier a2ui-renderer catalog had and
this one did not: Italic, Underline, Strikethrough, Blockquote,
CarouselMediaItem, LinkCard, Citation, FollowUp, EntityCard and ImageGrid;
a multi-image Lightbox on Image, ImageGrid and CarouselMediaItem; href and
copy on Button and Pressable; Carousel arrows and a writable activeIndex;
onVisible on every container; and the prop gaps against ChatGPT's catalog
(layout role/flush/minSize/maxSize/disableAutoSpacing, Card size and
shadowStyle, Text fontSize/lineHeight/minLines, Select clearLabel/icon/
block, Pressable tooltip/ariaPressed/insetBorder, Chart horizontal layout,
yAxis, showDots, barRadius and pie geometry, Image fallback/hoverZoom/
position/actionOverlay, YouTube poster first, Popover hoverOpenDelay and
sideOffset, LoadingBlock reducedMotion, PulseIndicator endScale and
startOpacity, TableRow label as a row header cell, ListItem disabled and
marker sizes). Text, Caption and Label show a bound number as text. The
tests of the earlier catalog are ported onto renderSurface, and the
fixture covers all 73 components.
…eams; markdown chat surfaces draw no box and fade in

A child that has not streamed yet renders nothing instead of a grey block,
the chat card loses its Generating line, and the markdown transport wraps
a chat surface without a border: a Card draws its own box when it is
interactive, and other content sits in the reply like a paragraph. Streamed
components fade in once, SVG internals excluded.
…rite reaches every part

The markdown transport splits a chat surface around lifted prose into
parts with their own data models, so an input in one part did not drive a
binding in another. The source now links the parts in the manager, and a
user write to one part is written and owned in all of them.
… and an engine drawing prompt

Adds samples for LinkCard, Citation, FollowUp, EntityCard, ImageGrid,
CarouselMediaItem, the Button verbs and a horizontal chart, puts Italic,
Underline, Strikethrough and Blockquote next to their groups, and adds a
suggestion that drives the Svg component with an interactive four-stroke
engine drawing.
…y has text

The reply that streams in, prose and surfaces painting in place, is the
progress signal. The pulsing dot under it only flickered as the layout
changed.
…standard components

Rewrites the markdown-mode page for createGenerativeUI and standardUI:
enabling the transport, the copilotkit.ui envelope (format 2), streaming,
prose inside a surface, the 73 standard components and their client-side
verbs, custom components, styling, events and functions, the v1 chat, and
the limitations.
…ive UI markdown transport

The v1 provider sits on the v2 core, so a generativeUI prop on it reaches
the chat. With the markdown transport, the v1 Markdown component renders
the message with MarkdownSurfaces instead of react-markdown; without it a
fence stays a code block. MarkdownSurfaces and useGenerativeUIRuntime are
exported from @copilotkit/react-core/v2/generative-ui for it, and the
react-ui vitest config picks up .tsx tests.
… in the header

The chat alone in one centered column, without the page surfaces. The
prompts that target a page surface are left out of the suggestions in that
layout, and the manifest lists only the chat as a target, so the agent
renders everything in the reply.
…ms show a value on the right

A FollowUp always sends: without an onFollowUp binding the pill forwards a
follow_up event with its message, which becomes a visible user message. A
List item or ListItem with a value and no action is a key and value row
(Price: $1,599); with an action the value stays the payload of the pick.
The chat is a transcript. A later reply that reuses the surfaceId of a
chat surface gets a surface of its own (<id>@<messageId>) instead of
changing the earlier reply, which left the new reply empty when the model
reused an id for new content. A later fence of the same reply still
updates the surface, and a page target is still updated from any reply.
…ateItem and Transition; Tooltip hugs its trigger

The four motion components were pass-through containers. Animate plays
an entrance (fade, slide-up, slide-down or scale) with a duration and a
delay; AnimateGroup staggers its AnimateItem children by their index;
Transition animates again when its children change. All of them stop under
prefers-reduced-motion. The Tooltip wrapper no longer stretches across a
flex column, which put the tip far from the trigger. The catalog page says
when the browser asks for reduced motion, and its motion sample shows the
presets.
…sition from standardUI

They were pass-through containers that did nothing, and a component the
model can reach for that does nothing is noise in the schema. 69 standard
components remain.

BREAKING CHANGE: the four motion components are no longer in standardUI.
They were experimental and never released.
…monProps of the compact schema

The compact schema of the markdown transport repeated the layout props of
every container. The props that at least eight components carry verbatim
are now listed once in commonProps, and a component that takes them is
flagged includesCommonProps, as the a2ui-renderer compact schema did. For
standardUI the context entry goes from 58K to 39K characters. The
guideline explains the flag in one line.
…under reduced motion

The fade moved the element 2px and stopped under prefers-reduced-motion,
so a viewer with that setting saw components pop in. Reduced motion is
about movement; a short opacity fade moves nothing, so it now runs for
everyone.
…A2UI v1.0 after the rebase

The ported tests bind with {"@path"}, the docs page shows v1.0 operations
with an inline createSurface and userMessage events, FollowUp sends its
message as the event's userMessage, and the guideline says that a later
reply changes a target but makes a new chat surface.
@mme
mme force-pushed the mme/genui-standard-port branch from a0b5f72 to eaaf4c6 Compare October 19, 2026 12:13
@mme
mme merged commit 4f0c430 into feat/generative-ui-prototype Oct 19, 2026
14 checks passed
@mme
mme deleted the mme/genui-standard-port branch October 19, 2026 12:13
mme added a commit that referenced this pull request Oct 21, 2026
…n-mode behaviour onto createGenerativeUI (#7848)

Ports the standard catalog work of #7829 onto the `createGenerativeUI`
engine, so nothing that branch had is lost in #7819. Stacked on
`feat/generative-ui-prototype` and rebased onto its A2UI v1.0 head
(`3b3f16ff4a`); no change to the engine's design, only additions. The
ported tests, samples and docs write v1.0 operations with `{"@path"}`
bindings and `userMessage` events.

## What this PR does

**Standard components (`standardUI`, 63 → 69)**

- New: `Italic`, `Underline`, `Strikethrough`, `Blockquote`,
`CarouselMediaItem`, `LinkCard`, `Citation`, `FollowUp`, `EntityCard`,
`ImageGrid`.
- A multi-image `Lightbox` (arrows, counter, arrow keys) on `Image`,
`ImageGrid` and `CarouselMediaItem`. `href` and `copy` on `Button`,
`href` on `Pressable`: client-side verbs,
client-side. `Carousel` gets arrows and a writable `activeIndex`. Every
container sends `onVisible` once.
- The remaining props: layout `role`, `flush`,
`minSize`, `maxSize`, `disableAutoSpacing`; Card `size`, `shadowStyle`;
Text `fontSize`, `lineHeight`, `minLines`; Select `clearLabel`, `icon`,
`block`; DateTimeInput `block`; Pressable `tooltip`, `ariaPressed`,
`insetBorder`; Chart `layout: "horizontal"`, `yAxis`, `showDots`,
`barRadius` and the pie geometry; Image `fallback`, `hoverZoom`,
`position`, `minWidth`, `minHeight`, `actionOverlay`; YouTube poster
first (`showThumbnail`); Svg stroke props; Popover `hoverOpenDelay`,
`PopoverContent.sideOffset`, `PopoverTrigger.block` (and a Button child
works); LoadingBlock `reducedMotion`; PulseIndicator `endScale`,
`startOpacity`; TableRow `label` as a `th scope=row` with
`labelColSpan`; List `maxMarkerSize`, ListItem `markerSize`, `disabled`.
- `Text`, `Caption` and `Label` show a bound number as text (a price
bound to a slider no longer fails the schema).

**Engine, additive**

- `GenerativeUISurfaceManager.linkSurfaces`: the parts of a chat surface
that the prose lift split share their data model. The markdown source
links them, and a user write to one part is written and owned in all of
them. Closes the first known gap of #7819.
- A child that has not streamed yet renders nothing (no grey
placeholder), the chat card has no "Generating…" line, and the markdown
transport wraps a chat surface without a box. Streamed components fade
in once (SVG internals excluded); the fade is opacity only and runs
under reduced motion too, since it moves nothing.
- A chat surface belongs to the reply that wrote it, as in #7829: a
later reply that reuses a `surfaceId` gets a surface of its own
(`<id>@<messageId>`) instead of replacing the earlier reply's content. A
page target is still updated from any reply. (Before: "five more
flashcards" replaced the first five and the new reply showed nothing.)
- `MarkdownSurfaces` and `useGenerativeUIRuntime` are exported from
`@copilotkit/react-core/v2/generative-ui`, so the v1 chat
(`@copilotkit/react-ui`) renders a2ui fences when the v1 provider gets a
`generativeUI` prop with the markdown transport.

- `FollowUp` pills send even when the model bound no `onFollowUp`: the
pill forwards a `follow_up` event with its message, which becomes a
visible user message. A `List` item with a `value` and no action is a
key and value row (Price: $1,599); with an action the value stays the
pick payload.

- `Animate`, `AnimateGroup`, `AnimateItem` and `Transition` are removed.
They were pass-through containers on both branches that did nothing, and
a pass-through the model can reach for is noise in the schema. 73 → 69
components.
- `Tooltip` hugs its trigger: as a flex item it stretched across the
column and the tip centred far from the text.

- The compact schema of the markdown transport hoists the props that
many components share verbatim (the layout props of the containers) into
`commonProps`, as the a2ui-renderer compact schema did. For `standardUI`
that takes the context entry from 58K to 39K characters. One line in the
guideline explains the flag.

**Example and docs**

- Catalog page: samples for the composites, the inline text components,
the Button verbs and a horizontal chart (50 samples, every component
covered). A "How an engine works" suggestion drives the `Svg` component.
- The catalog page says when the browser asks for reduced motion, since
the shimmer, spinners and animations stop then by design.
- `?layout=chat`: the chat alone in one centered column, with a Layout
switch in the header. The page-target suggestions are left out there,
and the manifest lists only the chat as a target.
- `generative-ui/a2ui/markdown-mode.mdx` rewritten for `generativeUI`,
`standardUI` and `createGenerativeUI`.

## Verification that nothing was lost

- **Inventory diff.** Every component and prop of the a2ui-renderer
catalog (73 components, 428 props) was dumped from its compact schema
and diffed against `standardUI.manifestComponents`. The only components
missing are the four motion pass-throughs, removed on purpose. 8 props
have no counterpart, all renames into the engine's event and slot model:
`action` → `onClick`/`onSubmit`/`onAction`, `Carousel.ariaLabel` →
`label`, `Tooltip.children` → the `trigger` and `content` slots.
- **Test tally.** The 155 tests of the a2ui-renderer catalog were
matched against this tree: 55 exist verbatim, 58 are covered by an
existing standardUI test under another title, 2 were ported under a new
title, 7 test engine behaviour the generative UI engine covers with its
own tests, 24 have no counterpart by design (compact schema,
`filterCatalog`, host markdown renderer, `themeToCssVariables`), and 9
test the A2UI reference catalogs that stay in a2ui-renderer. The full
mapping is in the PR comment below.
- **Catalog page** at `/catalog`: 33 sections, 69 components, no missing
sample, no render error, no placeholder.
- **Browser**: the estimator and the engine prompts on the built-in
agent with the markdown transport.

## Not in this PR

- The protocol version flip (v0.9 → v1) and the guideline: on the base
branch.
- Removing the `standard` catalog from `packages/a2ui-renderer`: once
this is merged, so one source of truth remains.
- Re-recording the real-model fixtures: after the version flip, once.

## Testing

```
pnpm nx run-many -t test --projects=@copilotkit/react-core,@copilotkit/react-ui
```

react-core: 2246 tests pass (the standard components alone have 197).
react-ui: 79 tests pass, including the new Markdown test. `tsc --noEmit`
passes in react-core, react-ui and `examples/v2/a2ui-markdown`.
NathanTarbert pushed a commit to vvlrff/CopilotKit that referenced this pull request Oct 27, 2026
…nsports, standard catalog, inspector pane) (CopilotKit#7819)

Try it: run `examples/v2/generative-ui-shop` (setup in its README) and
ask the chat for "Top rated" products. The home row on the page changes
to what the agent picked. This PR makes generative UI one feature: an
agent streams React components into the chat or into named areas of the
page, with the `render_ui` tool (tool transport) or with a2ui code
fences in its reply (markdown transport). It includes a standard catalog
of 69 components (the A2UI 1.0 basic catalog, from CopilotKit#7879, with the
follow-ups of CopilotKit#7888, CopilotKit#7890 and CopilotKit#7898), the work of CopilotKit#7829 and CopilotKit#7848, two
new examples, and a Generative UI pane in the inspector.

## What does this PR do?

### Catalog (`@copilotkit/react-core/v2/generative-ui`)

- `createGenerativeUI({ id, extends, state, functions, overrides,
components })` declares the components, the app state, and the
functions. Schemas can be any Standard Schema (zod 3, zod 4.2+, Valibot,
ArkType). Props need a JSON Schema, and props and state must validate
synchronously.
- Binding: a prop with the name of a state key, or a `bind` selector,
gets its value from app state. An event with the name of a function (or
`onX` for `x`) calls it. An event that no function matches becomes a
visible user message.
- `writable: ["value"]` gives a component a typed `setValue`. A path
that the user wrote becomes user-owned: later agent writes to it are
ignored.
- `extends` merges catalogs, with full types for every component.
`overrides: { Card: { component: MyCard } }` replaces the React
component of a base component and keeps what the model sees.
`standardUI.omit(["Map"])` drops components, also from the prompt.
- `useGenerativeUIState(ui, key, value)` and
`useGenerativeUIFunction(ui, name, handler)` connect app state and
handlers, with types from `ui`.

### Surfaces

- `<GenerativeUISurface id description ui components fallback />` is a
named area of the page. The fallback shows until the agent renders into
it.
- The `ui` prop types `components`, so a wrong component name is a `tsc`
error. `components` needs `ui`.
- `components` limits the area to those components. Other components are
rejected, and the model gets the reason.
- The page scrolls to a surface when the agent starts to render into it,
unless the surface is already on screen. `autoScroll={false}` turns this
off for one surface.

### Standard catalog and theme

- `standardUI`: 69 components for layout, text, inputs, feedback, data,
media, and composites (the a2ui-renderer catalog, ported in CopilotKit#7848).
Chart uses `recharts`. Map loads `maplibre-gl` (an optional peer).
- Built-in dark mode: the components switch to dark values under a
`.dark` class, like the CopilotKit chat. The map uses a dark basemap.
- `theme` keys are the exact `--a2ui-*` variables, so a wrong name is a
type error. Top-level values apply in both modes, and `dark: { … }`
replaces them in dark mode. The theme is a stylesheet on the surface
root.

### Wire and runtime (`@copilotkit/shared`, `@copilotkit/core`, runtime)

- A2UI v1.0 only, in both transports: `createSurface` with inline
`components` and `dataModel`, `{"@path"}` bindings, `{"@call"}` function
calls in events, `{"@call":"@index"}` in templates, `userMessage` on
events, and `"value": null` deletes. `catalogId` is optional.
- `supportedCatalogIds` lists the id of the UI first, then the id of
every catalog in its `extends`. An operation can name any of these ids
in `catalogId`, and the surface keeps that id. An unknown id on a
component or a function call is rejected with a reason. An unknown id on
`createSurface` is replaced with the id of the UI.
- `callRendererFunction` is off for now (CopilotKit#7890): the prompts do not
mention it, and the validator rejects it with a reason. The code and its
tests stay behind `GENERATIVE_UI_AGENT_FUNCTION_CALLS`.
- The manifest goes to `forwardedProps.copilotkit.ui` (format 3, the
v1.0 renderer capabilities shape), only to the agents in `agentIds`. The
guide sends only the rules that the catalog needs (about 575 tokens for
a small catalog, 930 with all rules).
- `CopilotRuntime({ generativeUI: true })` gives tool-transport runs
`render_ui` through `GenerativeUIMiddleware`. A markdown-transport run
never gets it.
- Markdown transport: the fence parser from CopilotKit#7829 streams operations
component by component. A fence with `target=<id>` renders in that
surface, and the v1 chat (`@copilotkit/react-ui`) renders a2ui fences
too.

### Inspector (`@copilotkit/web-inspector`)

A new **Generative UI** pane, with three tabs:

- **Surfaces**: each surface with its status, target, rejected
operations, data model, and user values. A tree shows the rendered
components and their props. It follows `slots` and the `child()` /
`childList()` refs at any depth. Hover over the card of a page surface
to outline it on the page and scroll to it.
- **Catalog**: the components, split by the catalog that declared them.
The provider catalog comes first. A base catalog from `extends` has an
"extended" tag and starts closed. A small search filters components and
functions.
- **Prompt**: what the last run sent and what the next run will send:
the envelope and the `render_ui` guide. The large text is drawn only
when you open it.

React-core gives core an internal debug source
(`ɵGenerativeUIDebugSource`), and the pane reads it. The prompt builder
moved from runtime to `@copilotkit/shared`, so the pane shows the same
guide that the runtime builds.

### Examples

- `examples/v2/generative-ui-shop` (new, React Router): the shop from
the AI-powered apps workshop, with Prisma and SQLite. A TanStack AI
agent with server tools fills four page surfaces: the home row, the
product recommendations, the cart items, and the cart suggestions.
- `examples/v2/a2ui-markdown` (Next.js): both transports, page surfaces
with pills, and `/catalog` with every standard component.
- `examples/v2/react/demo` `/generative-ui`: a storefront with `bind`,
`writable`, and a limited surface.

### Known gaps

- Agent-called functions (`callRendererFunction`) are off. Their result
goes back as a developer message, and not every backend keeps that
message where the model reads it in order.
- In markdown mode, a surface cannot be created again after
`deleteSurface`.
- `HtmlView` content stays light-styled in dark mode: it is a sandboxed
iframe that the theme cannot reach.
- From A2UI v1.0, not supported yet: catalogs by id (without an inline
catalog), and `sendDataModel`. `extends` merges catalogs into one
namespace, and overrides replace by name.
- Several catalogs in one surface work only in part. A component is not
checked against the catalog that the surface names, and the prompt does
not tell the agent to set `catalogId`.
- `callAgentFunction` and `agentFunctionResponse` are not implemented. A
user event starts a new run instead.
- `@a2ui/web_core` stays 0.10.4: the engine uses its `v0_9` surface and
data models. Version 0.14 has `v1_0` models, and the move is a separate
integration task.
- `@ag-ui/a2ui-toolkit` 0.0.5 writes v0.9 operations, so agent tools
built with it do not work with this engine. The `render_ui` route does
not use the toolkit, and it works with a LangGraph Python agent (see
Testing).
- The standard catalog keeps each React component and its schema in one
entry. `exportA2UICatalog` gives the portable JSON, but definitions
without React are not split out yet.

## Related PRs and Issues

- Contains the work of CopilotKit#7829 (A2UI markdown mode), ported to this
engine. CopilotKit#7829 itself is not changed.
- Contains CopilotKit#7848 by @mme: the a2ui-renderer standard catalog and
markdown-mode behavior on `createGenerativeUI`.
- Contains CopilotKit#7879: the A2UI 1.0 basic catalog names, typed child
references, dynamic values, checks, and `calc`.
- Contains CopilotKit#7888: A2UI 1.0 follow-ups: action events, function
permissions, the component envelope, checks severity, Video,
`exportA2UICatalog`, and an adoption guide.
- Contains CopilotKit#7890: no agent-called renderer functions for now, the A2UI
default for `allowedCallers`, the experimental callout, and two prompt
rules.
- Contains CopilotKit#7898: drops `Loading`, `LoadingIndicator`, `LoadingBlock`
and `Celebration`.

## Checklist

- [ ] I have read the [Contribution
Guide](https://github.com/copilotkit/copilotkit/blob/master/CONTRIBUTING.md)
- [x] If the PR changes or adds functionality, I have updated the
relevant documentation
- [ ] If the PR contains a breaking change, the title has `!` (for
example `feat(react-core)!: ...`) and the description has a `BREAKING
CHANGE:` line with migration steps. See
[VERSIONING.md](https://github.com/CopilotKit/CopilotKit/blob/main/VERSIONING.md)
- [ ] "Allow edits by maintainers" is checked (lets us help iterate on
your PR directly — faster turnaround for everyone)

Docs: a new "Components and surfaces" section under Generative UI, in
the Declarative group
(`showcase/shell-docs/src/content/docs/generative-ui/components/`), with
9 pages, and an adoption guide from the `a2ui` renderer is one of them.
Its support matrix lists these limits. The quickstart has a "When
something does not render" table that points to the tab of the inspector
pane to open. The Inspector page, `surfaces.mdx`, and `catalogs.mdx`
link to the pane too. Reference pages for `createGenerativeUI`,
`GenerativeUISurface`, and the hooks come in a later PR. There is no
breaking change for users: none of these APIs is on `main`.

## Testing

**Commands run**

- `tsc --noEmit` passes in react-core and in the three examples
(`generative-ui-shop`, `a2ui-markdown`, `react/demo`), after a rebuild
of react-core.
- The generative UI tests of react-core pass: 457 tests in 29 files.
They include tests for Standard Schema with a non-zod schema, the theme
stylesheet, overrides, `omit`, and the type rules.
- `pnpm install --frozen-lockfile --lockfile-only` passes for all 86
workspace projects.
- The lefthook pre-commit hook ran on every commit, except the package
test step of three lockfile commits (`032d695e21`, `89ec79e649`,
`ae485ca8bf`). A lockfile change makes that step run the Go and Ruby
runtime tests, which cannot run on the author's machine. CI runs them.
- Inspector pane and its merge with CopilotKit#7879: builds of shared, core,
react-core, and web-inspector, then `tsc --noEmit` in those four and in
runtime. These tests pass: `generative-ui-view.spec.ts` and
`hud-conformance.test.ts` (69), `use-generative-ui-root.test.tsx` and
`catalog.test.tsx` (46), `generative-ui-debug.test.ts` (2),
`generative-ui-middleware.test.ts` (44), and `shared/src/generative-ui`
(76).
- The inspector commits skipped the package test step of the pre-commit
hook. In the full hook run, 3 react-core chart tests and 1 vue SSR test
timed out under load. They are not in changed files, and all 4 pass
alone. CI runs the full suites.
- Merge of CopilotKit#7888 into this branch: builds of shared, core, react-core,
and web-inspector, `tsc --noEmit` in web-inspector, and the 69 inspector
tests pass. The docs commit has no code.
- Real backend: the LangGraph Python agent of
`examples/v2/a2ui-markdown` (`CopilotKitMiddleware`, `uv sync` from its
`uv.lock`) with an OpenAI model, on both transports. With the tool
transport, it rendered a dashboard into a page target, then updated the
same surface in place. A sign-up form showed its checks, and Create
account stayed disabled until every field was valid. The submit event
started a new run, and the agent repeated the 4 values. The inspector
showed 2 surfaces and no rejected operations. With the markdown
transport, a fence rendered a checklist in the `notes` target, and no
fence text appeared in the chat. The agent and the runtime logged no
errors.
- The catalog ids of `extends` (`2ac89b6e67`), after a rebase on CopilotKit#7898:
builds of shared and core, then `tsc --noEmit` in shared, core,
react-core and runtime. The touched test files pass:
`validate-operation.test.ts` and `a2ui-envelope.test.ts` (102),
`a2ui-markdown-operations.test.ts` (74), `catalog.test.tsx`,
`markdown-source.test.ts`, `surface-manager.test.ts` and
`use-generative-ui-root.test.tsx` (130), and
`generative-ui-middleware.test.ts` (42). The full pre-commit hook
passed. In one earlier hook run, the react-core `Chart` test in
`standard/__tests__/data.test.tsx` timed out under load. It passes
alone.
- Not run locally: full package suites and e2e. CI runs them.

**Manual test**

1. Follow the setup in `examples/v2/generative-ui-shop/README.md`, then
run `pnpm example-dev` and open http://localhost:3012.
2. On the home page, click **Top rated**. The Featured Products row
changes, and the page scrolls to it. Click **Featured again** to bring
the original row back.
3. Open a product and click **Cheaper alternatives**. The "You Might
Also Like" row changes.
4. Add a product to the cart, open the cart, and click **Show my cart
differently**. The cart items change to detailed cards.
5. Add the `dark` class to `<html>` in the devtools of
`examples/v2/a2ui-markdown` `/catalog`. Every standard component
switches to dark.
6. In the shop, open the CopilotKit inspector and click **Generative
UI**. Open **Catalog**, and type `button` in the search: the standard
catalog opens with its matches. On **Surfaces**, hover over a page
surface card: the surface gets an outline on the page.
7. Run the LangGraph agent of `examples/v2/a2ui-markdown` (see
`agent/README.md`), then open
http://localhost:3011/?agent=langgraph&transport=tool. Click **Dashboard
on the page**, then **Update the dashboard**: the same surface changes.
Click **Sign-up with validation**, fill the form, and submit it: the
agent repeats what you entered.

**How this PR makes testing easy**

- Unit and type tests in
`packages/web-inspector/src/components/generative-ui-view.spec.ts`,
`packages/react-core/src/v2/generative-ui/**/__tests__`,
`packages/shared/src/__tests__/a2ui-*.test.ts`,
`packages/core/src/__tests__/a2ui-markdown-*.test.ts`, and
`packages/runtime/src/v2/runtime/__tests__/generative-ui-*.test.ts`.
- Three example apps (see Examples above). The shop and a2ui-markdown
were tested with a real model, and `/catalog` renders with no model.
- The docs section walks through each feature with copyable code:
surfaces, catalogs, the standard catalog, state and actions, theming,
transports, markdown mode, and the adoption guide from A2UI.

## Risk / rollback

Low risk for current users. All new APIs are experimental and opt-in,
and the `a2ui` prop path does not change. react-core gets `recharts` as
a dependency and `maplibre-gl` as an optional peer; apps that do not
import the subpath do not bundle them. The new shop example adds Prisma,
TanStack AI React, and Faker to the lockfile. To undo, revert the PR.

## Public API change

New experimental exports. Nothing that exists on `main` changes.

**Before**

```tsx
<CopilotKitProvider runtimeUrl="/api/copilotkit" a2ui={{ catalog }}>
  <CopilotChat />
</CopilotKitProvider>
```

**After**

```tsx
import { createGenerativeUI, GenerativeUISurface, standardUI } from "@copilotkit/react-core/v2/generative-ui";

const ui = createGenerativeUI({
  id: "acme/app@1",
  extends: [standardUI.omit(["Map"])],
  overrides: { Card: { component: MyCard } },
  components: { ProductCard: { component: ProductCard, props: productSchema } },
});

<CopilotKitProvider
  runtimeUrl="/api/copilotkit"
  generativeUI={{ ui, theme: { "--a2ui-color-accent": "#d97706", dark: { "--a2ui-color-panel": "#1f2937" } } }}
>
  <GenerativeUISurface id="featured" ui={ui} components={["ProductCard"]} fallback={<Featured />} />
  <CopilotChat />
</CopilotKitProvider>

// Server
new CopilotRuntime({ agents, generativeUI: true });
```

<!-- This is an auto-generated comment: release notes by coderabbit.ai
-->
## Summary by CodeRabbit

* **New Features**
* Added v2 Generative UI with interactive surfaces, custom catalogs,
state bindings, actions, theming, validation, charts, maps, media, and
responsive standard components.
* Added tool and Markdown transports with streamed `a2ui` content,
targeted surfaces, inline rendering, and chat integration.
* Added Generative UI inspection in the web Inspector, showing catalogs,
surfaces, prompts, state, and rejected operations.
* Added generative UI examples, including a Markdown demo, storefront,
catalog gallery, shopping assistant, cart, and product comparison
experience.

* **Documentation**
* Added setup and reference guides for catalogs, surfaces, transports,
theming, state, actions, and Inspector workflows.
<!-- end of auto-generated comment: release notes by coderabbit.ai -->
Laptopmini pushed a commit to Laptopmini/CopilotKit that referenced this pull request Oct 27, 2026
…rk mode (CopilotKit#7866)

## What does this PR do?

Makes the A2UI basic catalog follow the chat's dark mode in React and
Vue, the way it already does in Angular.

The React and Vue basic catalogs painted the card, modal, chips and
buttons with inline white backgrounds, while their text inherits the
chat's foreground. Under `.dark` the card stayed white and its text
turned light. Host CSS couldn't override the inline colours, and
`a2ui={{ theme }}` doesn't reach them.

1. **Catalog colours read variables** (`@copilotkit/a2ui-renderer` and
`@copilotkit/vue`). They use the same names as the Angular basic
catalog, with the previous colours as fallbacks, so light mode is
unchanged:
- `--a2ui-color-surface`: card, modal, chip and button backgrounds
(fallback `#fff`)
- `--a2ui-color-border`: card, chip and button borders, tab rule,
divider (fallback `#ccc`)
- `--a2ui-color-muted`: captions, audio and slider values (fallback
`CopilotKit#666`)
- `--a2ui-color-error`: checkbox and text-field errors: the message, the
checkbox outline and the text-field border (fallback `red`)
2. **Dark values** (`@copilotkit/react-core/v2/styles.css` and the Vue
stylesheet). The `.dark [data-copilotkit]` block sets the variables from
the chat's own tokens: `--a2ui-color-surface: var(--card)`,
`--a2ui-color-muted: var(--muted-foreground)`, and two of Angular's dark
values: `--a2ui-color-border: oklch(0.371 0 0)` (`rgb(64, 64, 64)`) and
`--a2ui-color-error: #f87171`. The chat's `--border` would have given
chip and button outlines only 1.31 : 1 against the card. This mirrors
`packages/angular/src/styles/globals.css`.

Primary colours are untouched (`--a2ui-primary-color` as before). Apps
can also set the `--a2ui-color-*` variables themselves.

## Related PRs and Issues

- Fixes CopilotKit#7863
- The standard catalog in the drafts CopilotKit#7829 / CopilotKit#7848 also uses
`--a2ui-color-*` variables; this lines the basic catalog up with it.

## Testing

New tests. Each fails against `main` and passes here, except the
light-theme guard, which passes on both by design:

- `a2ui-renderer`: `basic-catalog-colors.test.tsx`.
- A card with a caption, chip, divider and button reads the variables
with the previous fallbacks.
- A text field and a checkbox with a failing check use
`--a2ui-color-error` for the message and the outline.
- `react-core`: `styles/__tests__/a2ui-dark-colors.test.ts`. The dark
block sets the four variables, and the light block sets none (same
approach as `streamdown-styles.test.ts`).
- `vue`: `A2UIBasicCatalogColors.test.ts`. The same checks for the Vue
catalog and stylesheet.

Checks:
- `nx run-many -t check-types,test,build` for `a2ui-renderer`,
`react-core` and `vue`, run one after another: a2ui-renderer 24 tests,
react-core 1900, vue 1183, all passing, and type checks clean.
- `publint` and `attw`: passing.
- `oxlint` and `oxfmt --check` on the changed files: no new warnings.

Browser check: a page built against `@copilotkit/react-core` and
`@copilotkit/a2ui-renderer` packed from this branch, in Chromium 149 via
Playwright `getComputedStyle`. Repro and capture script:
https://github.com/Mordris/copilotkit-ui-repro

| | Card background | Title and chip text | Contrast |
| --- | --- | --- | --- |
| 1.79.1, light | `rgb(255, 255, 255)` | `rgb(10, 10, 10)` | 19.8 : 1 |
| 1.79.1, dark | `rgb(255, 255, 255)` | `rgb(250, 250, 250)` | 1.04 : 1
|
| this branch, light | `rgb(255, 255, 255)` | `rgb(10, 10, 10)` | 19.8 :
1 (screenshot byte-identical to 1.79.1) |
| this branch, dark | `rgb(10, 10, 10)` | `rgb(250, 250, 250)` | **18.97
: 1** |

Chip and button outlines on this branch: `rgb(64, 64, 64)` on the dark
card, at 1.91 : 1. Light mode keeps `#ccc` on white, at 1.61 : 1.

| 1.79.1, dark | This branch, dark |
| --- | --- |
|
![before](https://raw.githubusercontent.com/Mordris/copilotkit-ui-repro/main/screenshots/react/1.79.1-en/dark-a2ui-card.png)
|
![after](https://raw.githubusercontent.com/Mordris/copilotkit-ui-repro/main/screenshots/react/a2ui-dark-fix-en/dark-a2ui-card.png)
|

The Vue page gives the same numbers (`vue/a2ui-dark-fix-en` in the
repro).

## Checklist

- [x] I have read the [Contribution
Guide](https://github.com/copilotkit/copilotkit/blob/master/CONTRIBUTING.md)
- [x] If the PR changes or adds functionality, I have updated the
relevant documentation
- [x] If the PR contains a breaking change, the title has `!` (for
example `feat(react-core)!: ...`) and the description has a `BREAKING
CHANGE:` line with migration steps. See
[VERSIONING.md](https://github.com/CopilotKit/CopilotKit/blob/main/VERSIONING.md)
(not a breaking change)
- [x] "Allow edits by maintainers" is checked (lets us help iterate on
your PR directly — faster turnaround for everyone)

<!-- This is an auto-generated comment: release notes by coderabbit.ai
-->
## Summary by CodeRabbit

* **New Features**
* A2UI components now use theme-aware colors for surfaces, borders,
muted text, and errors, with existing colors as fallbacks.
  * Dark mode now provides A2UI color values across React and Vue.
* **Documentation**
* Added guidance on A2UI colors, dark mode, and customizing color
variables.
<!-- end of auto-generated comment: release notes by coderabbit.ai -->
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants