Skip to content

Releases

0.3.0

Choose a tag to compare

@github-actions github-actions released this 09 Oct 10:15

Release readiness

  • English and Simplified Chinese documentation and READMEs, including all 65 component examples,
    onboarding, protocol guides and a responsive landing page. Four new light/dark conversation
    screenshots are captured from real Compose elements on the emulator. Site validation checks
    both languages, local screenshots and cross-language links.
  • Stable public APIs are preserved starting with the first public release, including 0.x;
    deprecated entry points remain callable. Native Mermaid is explicitly opt-in with
    ExperimentalNativeMermaidApi. The SSE event, JSX compiler and A2UI expression parser implementation types are now internal before publication.
  • Official Kotlin Binary Compatibility Validator baselines for all 20 libraries, wired to AGP 9
    release AARs; apiCheck fails on unreviewed changes. The model compatibility policy freezes data
    class constructors/copy and sealed/enum branches and requires behavioral/source review too.
  • Before first publication: ToolRenderer now receives (String, ToolDecision) -> Unit
    instead of a Boolean-only callback. Custom renderers can forward edited arguments, denial reasons
    and remembered decisions. ToolCall, ToolPartView and standalone message rendering accept rich
    decision callbacks; existing Boolean callbacks on the elements remain available.
  • Component documentation: compiled examples, imports, artifact requirements, interaction notes and
    symbol links for all 65 catalog entries, plus a supporting-composable index. The isolated Maven
    consumer build compiles those exported examples against the published AARs.
  • Dokka now explicitly discovers AGP 9 Kotlin sources and dependency classpaths; its successful
    build previously produced an empty API reference. Site checks reject empty module documentation,
    missing images, broken guide links and anchors.
  • Installation and quick starts include network/debug HTTP setup, the tested consumer toolchain,
    prerelease AndroidX versions, A2A desugaring, lifecycle and credentials guidance.
  • Releases validate the exact tag/version/final CHANGELOG section and installation coordinates, and run the full reusable CI
    (API, unit/lint, R8, Maven consumers, docs and emulator E2E) before publication. Pages deploys
    only from main.

Added — agents

  • Protocols: AI SDK 6 (full UIMessage history, tool approval, client-side tools, preliminary
    output, UIMessage sub-agent output); AG-UI 1.0 on the official kotlin-core types (frontend
    tools, interrupts / resume, SUBAGENT_*, state and activity JSON Patch, steps, usage);
    MCP 2026-07-28 client with legacy-session fallback, OAuth discovery and McpToolset;
    A2A 1.0 (ai-elements-a2a, official a2a-java-sdk) as provider and as sub-agent.

  • Capabilities mirroring Pydantic AI Harness: Capability, SubAgents (delegate_task),
    Skills (Agent Skills, load_capability), ToolCallContext (progress, nested runs, data parts).

  • In-app harness (group io.github.junelegency.harness): harness-core (AgentHarness),
    harness-filesystem (workspace plus user-shared SAF folders at /mnt/<name>), harness-memory, harness-planning, harness-shell,
    harness-sandbox-proot (Alpine Linux on PRoot), harness-browser (off-screen WebView),
    harness-device (calendar, contacts, location, clipboard, alarms, notifications),
    harness-speech (text to speech) and harness-scheduler (scheduled background runs on
    WorkManager, runHeadless).

  • Elements: AG-UI state parts render their plan / task as the Plan / Task elements; Subagent; ToolCall titles, MCP server and skill badges, live progress;
    Agent descriptions and skill lists (A2A cards).

  • ai-elements-koog: a JetBrains Koog agent as a ChatBackend (and as an AgentHarness model
    binding), with AI Elements tools as Koog tools; approvals and progress work as with the built-in loop.

  • Human in the loop beyond yes / no: ToolApprover.decide (ToolDecision: reason, edited
    arguments) and ToolApprover.input (InputRequest → InputResponse), ChatState.inputRequests,
    ChatController.respondToInput. AG-UI resumes with {approved, reason, editedArgs} and answers
    interrupts that carry a responseSchema; AI SDK approvals carry reason; the on-device loop runs
    edited arguments and tells the model why a call was denied. MCP elicitation on both eras
    (InputRequiredResult retries with inputResponses / requestState; elicitation/create on
    legacy streams), form and URL modes; McpClient.callTool(onInput = …), and MCP tools ask through
    the chat. UI: InputRequestCard / SchemaForm (text, formats, numbers with bounds, booleans,
    single and multiple choice, required) and Confirmation with deny-with-reason and
    edit-then-approve.

  • McpClient.serverInfo on 2026-07-28 servers (from the results' _meta).

  • StickToBottom follows with requestScrollToItem (applied by the next measure) instead of
    scrollToItem, whose forced remeasure re-entered layout when pinning ran inside a layout pass
    (seen on a tablet).

  • A2aAgent.cardOrNull(timeoutMs): listing remote agents no longer blocks a turn on an
    unreachable one (the blocking HTTP connect ignored the coroutine timeout; a physical device
    waited ~16 s per turn on the emulator-only default agent); failures are not retried for a minute.

  • Denser, calmer conversation (as the mainstream assistant apps lay it out): replies use the full
    width (no avatar column); reasoning is one quiet line ("Thought for 2s ›") that opens under a
    hairline rule; tool calls, sub-agents, plans and tasks are one-line cards (name, argument or
    activity preview, a quiet status that is coloured only for approval / error / denial);
    smaller source pills and table cells.

  • PromptInput switches to one row (field + send) when there is too little height for two
    (a phone in landscape with the keyboard up) instead of squashing its toolbar.

  • Demo: phones have no bottom navigation bar — Components and Settings open from the chat's
    drawer (Back returns); the top bar is a single-line "Provider ▾" title at 56dp.

  • A2UI forms keep what the user entered while they scroll out of sight (sessions live in the
    renderer, not in the lazy list item).

  • New artifact ai-elements-mcp-apps: an MCP Apps host (2026-01-26). ui:// views run in a
    sandboxed WebView (per-server origin, CSP from _meta.ui.csp as a response header, message-port
    bridge, no file or permission access). The host answers ui/initialize, tools/call (app-visible
    tools of the view's own server; writes need approval), resources/read, ui/message,
    ui/update-model-context, ui/open-link (http/s only) and ui/request-display-mode (inline and
    full screen), and sends tool input, result, host context (Material theme as the standard CSS
    variables) and teardown. McpAppsHost shows approvals and full screen at the screen's root, and
    views keep running while they scroll away. Checked against a session recorded between the official
    App and AppBridge SDKs, and end to end on the emulator with a view built on the official SDK.

  • MCP: McpClient(capabilities = …) and McpApps.CLIENT_CAPABILITIES; McpTool.meta,
    uiResourceUri, visibility (app-only tools are hidden from the model); resource and tool results
    keep _meta / the raw result; tools with a view add a DataPart.MCP_APP part.

  • DataPart.MODEL_CONTEXT: context for the model on a user turn (inline text for model APIs,
    RunAgentInput.context for AG-UI, a data-model-context part for the AI SDK).

  • The offline mock agent calls a tool the prompt names.

  • New artifact ai-elements-genui: A2UI v1.0 surfaces rendered natively (a2uiRenderer,
    A2uiSurfaceView, extensible A2uiCatalog; passes the official conformance suite) and
    JsxPreview. A2UI rides each transport's binding: AG-UI a2ui-surface activities and
    forwardedProps.a2uiAction, A2A application/a2ui+json parts, AI SDK data-a2ui parts.
    The reference server's hotel script sends a booking form (validated with the official
    a2ui-core); the demo renders it and the round trip runs on the emulator over AG-UI and AI SDK,
    and live over A2A against the server's A2UI concierge (/concierge).

  • MCP authorization verified live end to end against the official mcp SDK OAuth server
    (server/mcp_auth_server.py, LiveMcpOAuthTest).

  • New artifact ai-elements-chat (models, ChatEvent, ChatBackend, ChatController; same packages):
    ai-elements-ui now depends on it alone (no OkHttp / protocol libraries); ai-elements-core builds
    on it. Apps that used backends through ai-elements-ui add ai-elements-core explicitly.

  • AiElementsTheme takes a brand colorScheme, typography and shapes.

  • Protocol-independent elements: ToolPart.kind (ToolKind.Function / Delegation / Skill) and
    ToolPart.source replace tool-name checks and "title · server" labels in the UI; protocols map
    onto them in core (ToolConventions, AG-UI SUBAGENT_*), on-device tools declare them
    (AgentTool.kindFor / source). DataPart.STATE names shared agent state. Extension points:
    LocalAiElementsRenderers (tool / data renderers) and LocalFileLoader. LayeringTest guards it.

  • Chat(controller) and rememberChat(backend): a complete chat in one composable; samples/pure-client
    and samples/in-app-agent as minimal apps (built by CI).

  • ai-elements-bom; server/ rebuilt on Pydantic AI 2.51 + Harness 0.36 with MCP and A2A endpoints.

  • ai-elements-acp: Agent Client Protocol on the official ACP Kotlin SDK — coding agents
    (Claude Code, Codex, Gemini CLI, Pydantic AI Harness run_acp_stdio, …) as chat providers.
    AcpAgent.webSocket(url) (the SDK's WebSocket transport) or AcpAgent.process(command) (stdio);
    one ACP session per conversation (resumed with session/load when supported); text, reasoning,
    tool calls (diffs as unified diffs), plan updat...

Read more