@assistant-ui/react-ink#
0.0.17#
Patch Changes#
-
#3635
4ae1d2b- feat(react-ink): add StatusBarPrimitive components (@ShobhitPatra) -
#3860
c1ffce1- feat(react-ink): add intra-line highlighting to DiffView replacement lines (@ShobhitPatra) -
#3983
a26f2bd- fix(react-ink): guardPressable'sonPressagainst thedisabledprop independently ofisFocused, sodisabledreliably blocks key presses even when focus state and the prop disagree. (@ShobhitPatra) -
#3633
300b3eb- feat(react-ink): add LoadingPrimitive for terminal loading states (@ShobhitPatra) -
#3983
a26f2bd- feat(react-ink): addStatussub-component for terminal-safe attachment status display, and fall back from extensionless filenames to the attachmenttypeinThumb. (@ShobhitPatra) -
#3965
a71f716- feat(react-ink): add ComposerPrimitive.Queue and QueueItemPrimitive (Text, Remove, Steer) (@ShobhitPatra) -
#3969
2bcbaf2- feat(react-ink): add ComposerPrimitive.Quote, QuoteText, and QuoteDismiss for terminal composer quote parity with@assistant-ui/react(@ShobhitPatra) -
#3957
a25381e- feat(react-ink): harden terminal pressable interactions (@ShobhitPatra) -
#3958
7a8bf26- feat(react-ink): addMessagePartPrimitivenamespace with terminal-safe defaults for image, file, source, reasoning, and data parts. (@ShobhitPatra)Behavior changes in
react-ink:MessagePrimitive.Content(deprecated) now renders the new terminal-safe defaults for image/file/source/reasoning/data parts when norender*prop is provided; previously these parts were silently dropped. Passrender*={() => null}to restore the prior behavior.MessagePrimitive.Contentnow consultsdataRenderers.fallbacks[0]before falling back to the inline data renderer, matchingMessagePrimitive.Parts.MessagePrimitive.Partsnow forwardsdataandQuotecomponents alongsideChainOfThought; previouslydatawas dropped whenChainOfThoughtwas set.
-
Updated dependencies [
db721df,94548fa,94548fa,94548fa,8b6fc88,179895f,7a8bf26,3b2bbce]:- @assistant-ui/store@0.2.11
- assistant-stream@0.3.15
- @assistant-ui/core@0.2.3
0.0.16#
Patch Changes#
-
#4008
fa4510a- feat: support multi-modal tool results viatoModelOutput(@okisdev)frontend tools can now project their execution output into multi-modal model content (text + image / pdf / arbitrary file parts), aligning with the AI SDK v6
toModelOutputcallback. previously, tool results were always serialized as a single JSON value, so a "read pdf" style tool had no way to send the PDF back to a multi-modal model.assistant-streamexports a newToolModelContentParttype ({ type: "text", text } | { type: "file", data, mediaType, filename? }) and aToolModelOutputFunction<TArgs, TResult>callback type.Tool.toModelOutputis wired throughunstable_runPendingToolsandToolExecutionStream, attaching the resultingmodelContentto thetool-callpart on the assistant message.@assistant-ui/corere-exportsToolModelContentPartand adds an optionalmodelContent?: readonly ToolModelContentPart[]field onToolCallMessagePart. existing tools and renderers are unchanged.@assistant-ui/react-ai-sdk'sfrontendTools(...)helper now also registers atoModelOutputon each forwarded tool. it transparently unwraps an envelope thatuseAISDKRuntimewrites when a frontend-executed tool producedmodelContent, turning it into AI SDK's{ type: "content", value: [...] }output. plain (non-envelope) outputs fall back to the existing{ type: "text" | "json", value }shape, so behavior for tools withouttoModelOutputis unchanged.
route handlers that adopt
toModelOutputalso need to passtoolstoconvertToModelMessages(this is the AI SDK's documented pattern):const aiSDKTools = { ...frontendTools(tools ?? {}) }; streamText({ messages: await convertToModelMessages(messages, { tools: aiSDKTools }), tools: aiSDKTools, });templates and existing examples are unchanged. they keep the simpler
convertToModelMessages(messages)form because none of the tools they ship with usetoModelOutput. the new tools guide page documents how to opt in.reserved key. when a frontend tool defines
toModelOutput, its result is persisted in the AI SDK chat as{ __aui_modelContent: ToolModelContentPart[], value: <your result> }. tools must not return objects whose top-level key is literally__aui_modelContent, orconvertMessagewill misread the result. the prefix is namespaced for this reason.read/write compatibility for persisted threads. the envelope is recognized by
@assistant-ui/react-ai-sdkfrom this version onward. if you persist UI messages and read them from multiple environments, upgrade every reader before any writer starts producingtoModelOutput; otherwise older readers will treat the envelope object as theresultand break the affected toolrenderfunctions. -
#3966
3d78764- perf: Virtualize message list and memoize per-message render in long ink threads (@samdickson22)ThreadPrimitive.Messagesnow accepts optionalwindowSize/windowOverscan. When set, the live render region keeps the lastwindowSize + windowOverscanmessages; older ones graduate through Ink's<Static>into terminal scrollback. Each rendered message is wrapped in a memoized boundary keyed by(index, render), so streaming a single message no longer reconciles the full list. Defaults preserve legacy behavior; negative values clamp to 0. -
Updated dependencies [
9ecda1d,35d0146,fa4510a,c9dd16c,dea8bc7,9c3d24d]:- assistant-stream@0.3.14
- @assistant-ui/core@0.2.1
0.0.15#
Patch Changes#
- Updated dependencies [
040d469]:- @assistant-ui/core@0.2.0
0.0.14#
Patch Changes#
-
#3932
6700da5- feat: re-export RuntimeAdapterProvider, useRuntimeAdapters, and CompleteAttachment (@AVGVSTVS96) -
Updated dependencies [
7098bab,b090acb,5fdf17e]:- @assistant-ui/core@0.1.18
- assistant-stream@0.3.13
- @assistant-ui/store@0.2.10
- @assistant-ui/tap@0.5.11
0.0.13#
Patch Changes#
-
#3850
63da83a- feat(react-ink): rewrite react-ink composer input into a cursor aware terminal editor (@ShobhitPatra) -
Updated dependencies [
549037a,005f83f,976aec5,25b97d5,2008fc9,88fcd35]:- @assistant-ui/core@0.1.16
- @assistant-ui/store@0.2.9
- @assistant-ui/tap@0.5.10
0.0.12#
Patch Changes#
-
Updated dependencies [
c7a274e,ce865bc,ca8f526,c56f98f,974d15e,4b19d42,055dda5,da0f598,d53ff4f,20f8404,17958c9]:- @assistant-ui/core@0.1.15
- assistant-stream@0.3.12
- @assistant-ui/store@0.2.8
- @assistant-ui/tap@0.5.9
0.0.11#
Patch Changes#
- c988db8: chore: update dependencies
- Updated dependencies [f20b9ca]
- Updated dependencies [c988db8]
- @assistant-ui/core@0.1.14
- assistant-stream@0.3.11
- @assistant-ui/store@0.2.7
- @assistant-ui/tap@0.5.8
0.0.10#
Patch Changes#
- 376bb00: chore: update dependencies
- Updated dependencies [42bc640]
- Updated dependencies [376bb00]
- Updated dependencies [87e7761]
- @assistant-ui/core@0.1.13
- @assistant-ui/tap@0.5.7
0.0.9#
Patch Changes#
-
6554892: feat: add useAssistantContext for dynamic context injection
Register a callback-based context provider that injects computed text into the system prompt at evaluation time, ensuring the prompt always reflects current application state.
-
bdce66f: chore: update dependencies
-
4abb898: refactor: align interactables with codebase conventions
- Rename
useInteractabletouseAssistantInteractable(registration only, returns id) - Add
useInteractableStatehook for reading/writing interactable state - Remove
makeInteractableand related types - Rename
UseInteractableConfigtoAssistantInteractableProps - Extract
buildInteractableModelContextfromInteractablesresource - Add
with-interactablesexample to CLI
- Rename
-
209ae81: chore: remove aui-source export condition from package.json exports
-
af70d7f: feat: add useToolArgsStatus hook for per-prop streaming status
Add a convenience hook that derives per-property streaming completion status from tool call args using structural partial JSON analysis.
-
Updated dependencies [dffb6b4]
-
Updated dependencies [6554892]
-
Updated dependencies [9103282]
-
Updated dependencies [876f75d]
-
Updated dependencies [bdce66f]
-
Updated dependencies [4abb898]
-
Updated dependencies [209ae81]
-
Updated dependencies [2dd0c9f]
-
Updated dependencies [af70d7f]
- assistant-stream@0.3.9
- @assistant-ui/core@0.1.10
- @assistant-ui/store@0.2.6
- @assistant-ui/tap@0.5.6
0.0.8#
Patch Changes#
-
3227e71: feat: add interactables with partial updates, multi-instance, and selection
useInteractable(name, config)hook andmakeInteractablefactory for registering AI-controllable UIInteractables()scope resource with auto-generated update tools and system prompt injection- Partial updates — auto-generated tools use partial schemas so AI only sends changed fields
- Multi-instance support — same name with different IDs get separate
update_{name}_{id}tools - Selection —
setSelected(true)marks an interactable as focused, surfaced as(SELECTED)in system prompt
-
52403c3: chore: update dependencies
-
Updated dependencies [781f28d]
-
Updated dependencies [3227e71]
-
Updated dependencies [3227e71]
-
Updated dependencies [0f55ce8]
-
Updated dependencies [83a15f7]
-
Updated dependencies [52403c3]
-
Updated dependencies [ffa3a0f]
- @assistant-ui/core@0.1.9
- assistant-stream@0.3.8
- @assistant-ui/store@0.2.5
- @assistant-ui/tap@0.5.5
0.0.7#
Patch Changes#
- 3247231: feat(react-ink): add DiffPrimitive and DiffView for terminal diff rendering
- 736344c: chore: update dependencies
- Updated dependencies [1406aed]
- Updated dependencies [9480f30]
- Updated dependencies [28a987a]
- Updated dependencies [736344c]
- Updated dependencies [ff3be2a]
- Updated dependencies [70b19f3]
- Updated dependencies [c71cb58]
- @assistant-ui/core@0.1.8
- @assistant-ui/store@0.2.4
- assistant-stream@0.3.7
- @assistant-ui/tap@0.5.4
0.0.6#
Patch Changes#
- 7ecc497: feat: children API for primitives with part.toolUI, part.dataRendererUI, and MessagePrimitive.Quote
- 639792c: feat(react-ink): add ErrorPrimitive (Root, Message)
- Updated dependencies [7ecc497]
- @assistant-ui/core@0.1.7
0.0.5#
Patch Changes#
- 4a904de: refactor: remove useAssistantRuntime hook
- 349f3c7: chore: update deps
- 6cc4122: refactor: use primitive hooks
- Updated dependencies [1ed9867]
- Updated dependencies [427ffaa]
- Updated dependencies [349f3c7]
- Updated dependencies [02614aa]
- Updated dependencies [6cc4122]
- Updated dependencies [642bcda]
- @assistant-ui/core@0.1.6
- assistant-stream@0.3.6
- @assistant-ui/store@0.2.3
- @assistant-ui/tap@0.5.3
0.0.4#
Patch Changes#
- f38a59b: Launch React Ink: add documentation, landing page, CLI --ink flag, and README
- 990e41d: refactor: code sharing between the multiple platforms
- Updated dependencies [990e41d]
- @assistant-ui/core@0.1.5
0.0.3#
Patch Changes#
- 6d78873: feat: add ToolFallback component with collapsible tool call visualization
- Updated dependencies [f032ea5]
- Updated dependencies [2828b67]
- @assistant-ui/core@0.1.4
- assistant-stream@0.3.5
0.0.2#
Patch Changes#
- 8ed9d6f: Refactor React Native component API: move shared runtime logic (remote thread list, external store, cloud adapters, message converter, tool invocations) into @assistant-ui/core for reuse across React and React Native
- Updated dependencies [5ae74fe]
- Updated dependencies [8ed9d6f]
- Updated dependencies [01bee2b]
- @assistant-ui/core@0.1.3