[WIP] Native A2UI Support#866
Draft
KetanReddy wants to merge 8 commits into
Draft
Conversation
Member
Author
|
/docs |
Bundle ReportChanges will increase total bundle size by 941.65kB (16.74%) ⬆️
Affected Assets, Files, and Routes:view changes for bundle: plugins/metrics/coreAssets Changed:
view changes for bundle: plugins/stage-revert-data/coreAssets Changed:
view changes for bundle: plugins/async-node/coreAssets Changed:
view changes for bundle: plugins/common-types/coreAssets Changed:
view changes for bundle: core/playerAssets Changed:
view changes for bundle: react/playerAssets Changed:
view changes for bundle: tools/storybookAssets Changed:
view changes for bundle: plugins/markdown/coreAssets Changed:
view changes for bundle: plugins/beacon/coreAssets Changed:
view changes for bundle: plugins/common-expressions/coreAssets Changed:
view changes for bundle: plugins/reference-assets/coreAssets Changed:
view changes for bundle: plugins/check-path/coreAssets Changed:
|
intuit-svc
added a commit
to player-ui/player-ui.github.io
that referenced
this pull request
May 12, 2026
Contributor
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## main #866 +/- ##
===========================
===========================
☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
Member
Author
|
/canary |
intuit-svc
added a commit
to player-ui/player-ui.github.io
that referenced
this pull request
May 12, 2026
Contributor
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What and Why
With the emergence of A2UI and other agent driven standards; Player, in its mission to serve the broader SDUI space, should expand support for more formats beyond its own in order to broaden the scopes of what Player solves for. Furthermore this lets capabilities be built against Player itself, regardless of input format, allowing for the decoupling of implementation from the server driving it.
Core
Player's existing ingestion expects an authored
Flow { id, views, schema, data, navigation }representing a nested asset tree with a state machine. The A2UI v0.9 protocol is shaped differently: a flat adjacency list of components keyed byid, with oneid: "root", JSON Pointer (/user/name) bindings, and polymorphicDynamic*fields (literal | {path} | {call, args}). It has no navigation and no data schema. To let agent-emitted A2UI snapshots run on Player without any platform changes, core/player/src/a2ui/ ships a content adapter wired into Player.start(payload, { format: "a2ui" }). The adapter walks fromroot, inlines child references into Player's nested{asset: ...}shape, translates{path}→"{{x.y}}"template strings on display props (and bare bindings on input props likeTextField.valueso transforms can write back), turnsformatStringinto Player's{{...}}interpolation and other function calls into@[fn({{...}})]@expressions, lifts componentchecksinto a synthesized Player schema with the standardrequired/regex/email/length/numericvalidators, and synthesizes a single-VIEW navigation with oneEND_<event>state peraction: {event: {name}}so agent dispatch becomes a Player transition. The synthesized Flow then flows through Player's existing parser/resolver/data/validation pipeline unchanged. Benchmarks (vitestbenchat adapter.bench.ts) cover tiny/flat/deep/mixed/bindings-heavy/templates-heavy snapshots.A2UI plugin
plugins/a2ui/ ships the platform side.
core/providesA2UIPluginwhich composes A2UITransformPlugin (per-component asset transforms wiringcurrentValue/set()/format()/validationonto input components — TextField, CheckBox, Slider, DateTimeInput, ChoicePicker, Button) and A2UIExpressionsPlugin which registers the standard A2UI catalog functions (format.tsformatString/formatNumber/formatCurrency/formatDate/pluralize, validation.tsrequired/regex/length/numeric/email, logic.tsand/or/not, action.tsopenUrl) so adapter-emitted@[fn(...)]@expressions evaluate via Intl/standard handlers.react/provides the rendering layer (Text,Row,Column,List,Card,Modal,Tabs,Button,TextField,CheckBox,Slider,DateTimeInput,ChoicePicker,Image,Icon,Divider) — assets just read their already-resolved props since Player Core handles all binding/expression resolution upstream. Themocks/package contains end-to-end snapshots (text/list/template/expressions-showcase/text-field-validation) used by both storybook and integration tests.To Do
To Align On
Overall Approach
Change Type (required)
Indicate the type of change your pull request is:
patchminormajorN/ADoes your PR have any documentation updates?
Release Notes
TBD
📦 Published PR as canary version:
0.16.0--canary.866.36538Try this version out locally by upgrading relevant packages to 0.16.0--canary.866.36538