Skip to content

Releases

Swift 0.12.0

Choose a tag to compare

@gspencergoog gspencergoog released this 23 Nov 19:24
0c08d86
  • BREAKING CHANGE: Make EnvironmentValues.a2uiCatalogs,
    EnvironmentValues.a2uiDefaultCatalogID, and EnvironmentValues.a2uiSurfaceMetadata read-only
    (public internal(set)) in A2UISwiftUI, and remove A2UICatalogsKey and
    A2UIDefaultCatalogIDKey so catalogs and surface metadata are injected only by Surface.
    Recommended migration: pass catalogs to Surface.init(viewModel:catalogs:defaultCatalogID:) or
    Surface.makeWithBasicCatalogs(viewModel:), update surface metadata through SurfaceViewModel
    (metadata, setMetadata(_:), setExtension(_:value:), removeExtension(_:)), and read
    \.a2uiCatalogs, \.a2uiDefaultCatalogID, and \.a2uiSurfaceMetadata from @Environment.
    #4195,
    #4275
  • BREAKING CHANGE: RegexSubset.analyze, RegexSubset.compileGuarded, and the regex
    function in BasicCatalog reject a repetition of a group that can match the empty string in
    more than one way, such as (a?){1000}a{1000} or (a{0,2})+b, with NESTED_QUANTIFIER. Such a
    pattern made NSRegularExpression run for seconds or longer on a value only a few characters
    long. Recommended migration: rewrite the group so each repetition consumes at least one
    character, for example (?:ab?){3} instead of (?:a?b?){3}.
    #4236,
    #4310
  • Add optional instructions (Markdown design guidelines for agents) to CatalogProtocol and
    Catalog, with an instructions: parameter on Catalog.init and Catalog.derive. derive
    does not keep the source catalog's instructions, and MessageProcessor.getRendererCapabilities
    writes them into v1.0 inline catalogs when set.
    #3842,
    #4312
  • Add an isUserActivated parameter (default false) to MessageProcessor.processMessages(_:),
    process(payload:), process(message:), and process(messages:). Pass true when the payload
    is handled within a user gesture so a v1.0 callRendererFunction may run functions that set
    requiresUserActivation, such as a nested call in its arguments.
    #4311
  • Add MessageProcessor.addCatalog(_:) to register a catalog after initialization.
    createSurface messages, renderer function calls, and getRendererCapabilities(options:) see
    the added catalog, while existing surfaces keep their original catalogs; duplicate catalog IDs
    throw A2UICatalogError. #3303,
    #3304
  • Generalize direct DataBinding properties to DataBinding<JSONValue>, resolve direct
    FunctionCall properties, and preserve typed resolution for inline dynamic unions in
    NodeResolver. #3809
  • Report a two-way binding write that the data model rejects, such as writing /name/first while
    /name is a string, as a DATA_ERROR to the surface's ActionHandling and the
    MessageProcessor outbound listener instead of dropping it silently. The data model stays
    unchanged. #4257
  • Draw SVG elliptical arc commands (A and a) in SVGPathParser, so Icon svgPath values
    with arcs render circles and rounded shapes instead of dropping those segments. Arc flags written
    without separators (for example a1 1 0 011 1) are also accepted.
    #4260

a2ui-core 0.7.1

Choose a tag to compare

@github-actions github-actions released this 23 Nov 18:48
7a776e7
  • Add MessageProcessor.add_catalog(catalog), which adds a catalog to a
    processor after it is built. createSurface messages, renderer function
    calls and get_renderer_capabilities see the catalog from then on; surfaces
    created before the call keep the catalogs they were created with. A catalog
    whose ID the processor already holds is rejected with A2uiCatalogError.
    MessageProcessor.catalogs is the processor's own list, which add_catalog
    appends to; the sequence passed to the constructor is not changed
    (#3303,
    #3304).

Published to PyPI: a2ui-core 0.7.1

pip install a2ui-core==0.7.1

a2ui-agent-sdk 0.12.1

Choose a tag to compare

@github-actions github-actions released this 23 Nov 18:48
7a776e7
  • DirectJsonParser rejects a number out of the range of a double, such as
    1e400, with A2uiParseError, as the Dart SDK does. It used to read it as
    inf, which json.dumps writes as Infinity, a token JSON does not have
    (#3847).

Published to PyPI: a2ui-agent-sdk 0.12.1

pip install a2ui-agent-sdk==0.12.1

A2UI CLI v0.5.0

Choose a tag to compare

@github-actions github-actions released this 23 Nov 19:31
0c08d86
  • Breaking: Requires a2ui_core ^0.9.0 (a2ui_cli exposes a2ui_core
    types in its public API).

  • Raises the minimum Dart SDK bound from sdk: ">=3.10.0 <4.0.0" to sdk: ">=3.13.0 <4.0.0" for building from source (compiled CLI binaries are unaffected) (#4305).

Swift 0.11.0

Choose a tag to compare

@josemontespg josemontespg released this 17 Nov 19:14
07735d6
  • BREAKING CHANGE: Enforce object-level (anyOf, additionalProperties: false) and
    array-level (minItems, maxItems, prefixItems) JSON Schema constraints on function arguments
    containing dynamic bindings in PayloadValidator, validate declared returnType values on nested
    function calls against the catalog function definition on pre-1.0 surfaces, disallow undeclared
    arguments across all BasicCatalog functions, and enforce RFC 3986 scheme-prefixed URI syntax on
    openUrl.args.url. Recommended migration: remove undeclared function arguments, supply at least
    one bound on length and numeric, pass a scheme-prefixed URI to openUrl.url, and match or
    omit returnType on nested function calls.
    #4173,
    #4187
  • BREAKING CHANGE: Gate component metadata and catalogId envelope handling in
    MessageProcessor and PayloadValidator to v1.0 and later surfaces so pre-1.0 surfaces treat
    metadata and catalogId as ordinary component properties in ComponentModel.properties (with
    ComponentModel.metadata remaining nil and ComponentModel.catalogID set to the surface
    default catalog). On v1.0 surfaces, MessageProcessor, PayloadValidator,
    GraphTopologyValidator, NodeResolver, and Node.explicitAccessibilityAttributes accept
    @catalogId, @metadata, @accessibility, and @checks (ComponentModel.properties stores
    the accessibility and checks mixins under @accessibility and @checks), dual-read legacy bare
    keys when undeclared by the component schema, validate @metadata.extensions keys as UAX #31
    identifiers, and reject components that specify both @-prefixed and bare forms of the same
    mixin. Recommended migration: read metadata and catalogId from ComponentModel.properties on
    pre-1.0 surfaces, and emit @catalogId, @metadata, @accessibility, and @checks on v1.0
    components. #4140,
    #4037,
    #4044
  • BREAKING CHANGE: Migrate A2UIAudioPlayerModel and A2UIVideoPlayerModel in
    BasicCatalogSwiftUI from ObservableObject to @Observable, update
    A2UIAudioPlayer.init(node:model:) and A2UIVideo.init(node:model:) to take a direct model
    instance, skip redundant AVPlayer seeks during A2UIAudioPlayer playback, and adopt
    ContentUnavailableView and an accessibility label on the poster play button in A2UIVideo.
    Recommended migration: hold custom A2UIAudioPlayerModel or A2UIVideoPlayerModel instances
    with @State instead of @StateObject or @ObservedObject.
    #4022
  • BREAKING CHANGE: Remove the default = [] argument on
    Surface.init(viewModel:catalogs:defaultCatalogID:) so callers explicitly choose a catalog list
    (or pass catalogs: []). Recommended migration: pass BasicCatalogImplementation.allCatalogs,
    use Surface.makeWithBasicCatalogs(viewModel:), or pass catalogs: [] explicitly.
    #4024
  • Add A2UICardStyle (.automatic, .elevated, .outlined), A2UIButtonStyle (.automatic),
    View.a2uiCardStyle(_:), View.a2uiButtonStyle(_:), and
    Surface.makeWithBasicCatalogs(viewModel:) in BasicCatalogSwiftUI.
    #4024
  • Report the component definition ID rather than the synthesized :index instance ID as
    sourceComponentID on actions dispatched from template-expanded components.
    #4043
  • (v1.0) Inherit the enclosing function's resolved catalogId for catalogless calls inside
    FormatStringFunction ${...} template expressions (keeping @-prefixed system calls such as
    ${@index()} catalogless), add DataContext.activeFunctionCatalogID and
    FunctionHandler.resolvedFunctionCatalogID(forCallCatalogID:), and scope RPCHandler
    callRendererFunction argument and function evaluation to the target catalog.
    #4030
  • (v1.0) Include $defs.anyComponent and $defs.anyFunction unions in inline catalog schemas
    emitted by MessageProcessor.getRendererCapabilities(options:) so v1.0 or later inline catalogs
    conform to catalog_definition.json. #4092
  • Deprecate A2UICatalogsKey, A2UIDefaultCatalogIDKey, and A2UIThemeKey in A2UISwiftUI in
    favor of EnvironmentValues.a2uiCatalogs, EnvironmentValues.a2uiDefaultCatalogID, and
    EnvironmentValues.a2uiTheme, and update BasicCatalogSwiftUI components (A2UIIcon and
    A2UIChoicePicker Dynamic Type scaling, multi-line TextField(axis: .vertical) for longText
    A2UITextField, and SVG path parsing improvements in SVGPathParser / SVGPathShape).
    #4023
  • Map A2UIImage fit values (contain, cover, fill, none, scaleDown) to CSS
    object-fit semantics in BasicCatalogSwiftUI: fill stretches to the frame, none renders at
    intrinsic size without scaling, scaleDown avoids upscaling small images, feature variants size
    their frame from the image's aspect ratio without upscaling, and avatar and header variants
    honor an explicit fit while defaulting to cover.
    #4097
  • (v1.0) Drop theme from createSurface payloads in V10VersionAdapter and MessageProcessor
    when ValidationConfig.allowUnknownElements is true instead of rejecting the message, and add
    allowUnknownElements overloads to
    VersionAdapter.extractOperations(from:allowUnknownElements:),
    VersionAdapter.adaptMessage(_:allowUnknownElements:), and
    BaseVersionAdapter.preparePayloadForValidation(_:action:allowUnknownElements:).
    #4099
  • Send the message of an error thrown by a renderer function in the rendererFunctionResponse
    error, falling back to the generic execution-error text only when that message is empty.
    #4105
  • Announce visible text changes in live regions: a live component or container now announces its
    explicit label followed by the text its subtree reports with the new .a2uiAccessibleText(_:)
    modifier (collected through A2UIAccessibleTextKey). A2UIText reports its text without
    Markdown syntax, and custom components that render text can call the modifier too.
    #4021

a2ui-core 0.7.0

Choose a tag to compare

@github-actions github-actions released this 17 Nov 19:18
d63fd43
  • BREAKING CHANGE: Enforce basic catalog function argument and return-type validation across StrictBaseModel, SchemaValidator, and PayloadValidator: reject str and bool values on pure int/float fields (such as length.min, length.max, numeric.min, and numeric.max), enforce anyOf required-branch constraints (SchemaKeywords.required_any_of), enforce RFC 3986 scheme-prefixed URI syntax (^[A-Za-z][A-Za-z0-9+.-]*:\S*$) on "format": "uri" fields (such as openUrl.args.url), and validate declared returnType values on nested function calls against the catalog function definition on pre-1.0 surfaces. Recommended migration: pass numeric values to min and max, supply at least one bound on length and numeric, pass a scheme-prefixed URI to openUrl.url, and match or omit returnType on nested function calls (#4173, #4187).
  • BREAKING CHANGE: (v1_0) Update ComponentCommon and Checkable schemas, Catalog.validation_schema, and ComponentModel.component_tree to emit @catalogId, @metadata, @accessibility, and @checks on v1.0 surfaces (ComponentModel.component_tree writes envelope metadata under @metadata), while PayloadValidator and MessageProcessor gate component metadata and catalogId envelope handling to v1.0+ surfaces (so pre-1.0 surfaces treat them as ordinary component properties), dual-read legacy bare catalogId, metadata, accessibility, and checks when undeclared as custom properties by the component schema, validate @metadata.extensions keys as UAX #31 identifiers, reject null @catalogId / legacy catalogId, and reject components specifying both @-prefixed and bare forms of the same mixin (#1376, #3466, #3511, #4012, #4037, #4044).
  • Resolve component properties that reference FunctionCall directly (including allOf-constrained branches) in GenericBinder and NodeResolver (#3809).
  • (v1_0) Accept the path key of ChildList templates in GenericBinder (#3809).

Published to PyPI: a2ui-core 0.7.0

pip install a2ui-core==0.7.0

a2ui-agent-sdk 0.12.0

Choose a tag to compare

@github-actions github-actions released this 17 Nov 19:18
d63fd43
  • BREAKING CHANGE: (v1_0) Emit @catalogId, @metadata, @accessibility,
    and @checks on v1.0 components across ExpressCompiler,
    AtomCompiler, ElementalCompiler, MacroExpander, RendererState, and the
    v1.0 Pydantic builder models (a2ui.builder.v1_0), while keeping Python
    builder keyword arguments (catalog_id=, accessibility=, extensions=,
    checks=) and v0.9 wire keys unchanged. ExpressDecompiler,
    AtomDecompiler, and ElementalDecompiler read both @-prefixed and legacy
    bare component envelope keys on v1.0 payloads when the component schema does
    not declare a custom property with the same bare name
    (#1376,
    #3403,
    #3466,
    #3626,
    #4012,
    #4044).
  • Add read_renderer_capabilities(metadata, version) in a2ui.utils to extract
    and validate version-keyed renderer capability dictionaries from transport
    metadata (a2uiRendererCapabilities in v1.0 and a2uiClientCapabilities in
    v0.8, v0.9, and v0.9.1).
    #4013
  • Package dependency updated to require a2ui-core>=0.7.0,<0.8.0.
    #4258

Published to PyPI: a2ui-agent-sdk 0.12.0

pip install a2ui-agent-sdk==0.12.0

a2ui-a2a 0.4.0

Choose a tag to compare

@github-actions github-actions released this 17 Nov 19:18
d63fd43
  • Add renderer_capabilities_from_message(message, version) to read and
    validate A2UI renderer capabilities from an inbound A2A Message across
    message.metadata, DataPart.metadata, and legacy DataPart.data["metadata"].
    #4013
  • Package dependency updated to require a2ui-agent-sdk>0.11.0.
    #4258

Published to PyPI: a2ui-a2a 0.4.0

pip install a2ui-a2a==0.4.0

A2UI CLI v0.4.0

Choose a tag to compare

@github-actions github-actions released this 17 Nov 21:20
07735d6
  • Breaking: Requires a2ui_core ^0.8.0 (a2ui_cli exposes a2ui_core
    types in its public API).

  • (v1_0) Filter @catalogId, @metadata, and @accessibility from component
    builder properties in CatalogAnalyzer, detect checkable components from
    @checks, and emit serialization_alias="@checks" and
    validation_alias=AliasChoices("@checks", "checks") on generated Python v1.0
    checkable component builders while preserving custom component properties
    named metadata, catalogId, accessibility, or checks
    (#3466,
    #4012,
    #4044).

  • Add explicit type annotations to internal local and pattern variables to satisfy the specify_nonobvious_local_variable_types analyzer lint on Dart 3.15+ (#4233).

A2UI CLI v0.3.0

Choose a tag to compare

@github-actions github-actions released this 11 Nov 01:57
b3ac429
  • Breaking: Requires a2ui_core ^0.7.0 (a2ui_cli exposes a2ui_core
    types in its public API).

  • Added a2ui lint (LintCommand, lintCatalog, CatalogLintFinding, and LintSeverity) to validate catalog JSON schemas against deterministic protocol rules with JSON Pointer locations, including v1.0 Unicode UAX 31 identifiers, component and function discriminators, the reserved Surface component name, v1.0 requiresUserActivation caller constraints, and redundant ComponentCommon or FunctionCommon wrapping (#3831).