Repository navigation
Releases
0.3.0
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;apiCheckfails 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:
ToolRenderernow receives(String, ToolDecision) -> Unit
instead of a Boolean-only callback. Custom renderers can forward edited arguments, denial reasons
and remembered decisions.ToolCall,ToolPartViewand 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 frommain.
Added — agents
-
Protocols: AI SDK 6 (full
UIMessagehistory, tool approval, client-side tools, preliminary
output,UIMessagesub-agent output); AG-UI 1.0 on the officialkotlin-coretypes (frontend
tools, interrupts / resume,SUBAGENT_*, state and activity JSON Patch, steps, usage);
MCP 2026-07-28 client with legacy-session fallback, OAuth discovery andMcpToolset;
A2A 1.0 (ai-elements-a2a, officiala2a-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) andharness-scheduler(scheduled background runs on
WorkManager,runHeadless). -
Elements: AG-UI
stateparts render theirplan/taskas the Plan / Task elements;Subagent;ToolCalltitles, MCP server and skill badges, live progress;
Agentdescriptions and skill lists (A2A cards). -
ai-elements-koog: a JetBrains Koog agent as aChatBackend(and as anAgentHarnessmodel
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) andToolApprover.input(InputRequest→InputResponse),ChatState.inputRequests,
ChatController.respondToInput. AG-UI resumes with{approved, reason, editedArgs}and answers
interrupts that carry aresponseSchema; AI SDK approvals carryreason; the on-device loop runs
edited arguments and tells the model why a call was denied. MCP elicitation on both eras
(InputRequiredResultretries withinputResponses/requestState;elicitation/createon
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) andConfirmationwith deny-with-reason and
edit-then-approve. -
McpClient.serverInfoon 2026-07-28 servers (from the results'_meta). -
StickToBottomfollows withrequestScrollToItem(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. -
PromptInputswitches 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.cspas a response header, message-port
bridge, no file or permission access). The host answersui/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) andui/request-display-mode(inline and
full screen), and sends tool input, result, host context (Material theme as the standard CSS
variables) and teardown.McpAppsHostshows 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
AppandAppBridgeSDKs, and end to end on the emulator with a view built on the official SDK. -
MCP:
McpClient(capabilities = …)andMcpApps.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 aDataPart.MCP_APPpart. -
DataPart.MODEL_CONTEXT: context for the model on a user turn (inline text for model APIs,
RunAgentInput.contextfor AG-UI, adata-model-contextpart 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, extensibleA2uiCatalog; passes the official conformance suite) and
JsxPreview. A2UI rides each transport's binding: AG-UIa2ui-surfaceactivities and
forwardedProps.a2uiAction, A2Aapplication/a2ui+jsonparts, AI SDKdata-a2uiparts.
The reference server'shotelscript 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
mcpSDK OAuth server
(server/mcp_auth_server.py,LiveMcpOAuthTest). -
New artifact
ai-elements-chat(models,ChatEvent,ChatBackend,ChatController; same packages):
ai-elements-uinow depends on it alone (no OkHttp / protocol libraries);ai-elements-corebuilds
on it. Apps that used backends throughai-elements-uiaddai-elements-coreexplicitly. -
AiElementsThemetakes a brandcolorScheme,typographyandshapes. -
Protocol-independent elements:
ToolPart.kind(ToolKind.Function/Delegation/Skill) and
ToolPart.sourcereplace tool-name checks and"title · server"labels in the UI; protocols map
onto them incore(ToolConventions, AG-UISUBAGENT_*), on-device tools declare them
(AgentTool.kindFor/source).DataPart.STATEnames shared agent state. Extension points:
LocalAiElementsRenderers(tool / data renderers) andLocalFileLoader.LayeringTestguards it. -
Chat(controller)andrememberChat(backend): a complete chat in one composable;samples/pure-client
andsamples/in-app-agentas 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 Harnessrun_acp_stdio, …) as chat providers.
AcpAgent.webSocket(url)(the SDK's WebSocket transport) orAcpAgent.process(command)(stdio);
one ACP session per conversation (resumed withsession/loadwhen supported); text, reasoning,
tool calls (diffs as unified diffs),planupdat...