@gemies/sdk 0.0.0-stage → 1.0.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (242) hide show
  1. package/CHANGELOG.md +1662 -0
  2. package/LICENSE +202 -0
  3. package/NOTICE +15 -0
  4. package/README.md +516 -2
  5. package/package.json +102 -4
  6. package/src/animations.ts +5 -0
  7. package/src/ask-eager.ts +8 -0
  8. package/src/ask-text.ts +11 -0
  9. package/src/ask.ts +12 -0
  10. package/src/avatar.ts +13 -0
  11. package/src/character.ts +1 -0
  12. package/src/components/AmbientField.tsx +580 -0
  13. package/src/components/ComposerDropZone.tsx +235 -0
  14. package/src/components/ComposerSuggestions.tsx +45 -0
  15. package/src/components/GemieAskCore.tsx +184 -0
  16. package/src/components/GemieAskProvider.tsx +18 -0
  17. package/src/components/GemieAskProviderLazy.tsx +27 -0
  18. package/src/components/GemieAskProviderText.tsx +25 -0
  19. package/src/components/GemieAskSheet.tsx +51 -0
  20. package/src/components/GemieAskSheetWithVoice.tsx +10 -0
  21. package/src/components/GemieAvatar.tsx +57 -0
  22. package/src/components/GemieAvatarIcon.tsx +35 -0
  23. package/src/components/GemieChatContent.tsx +900 -0
  24. package/src/components/GemieChatHeader.tsx +123 -0
  25. package/src/components/GemieChatScreen.tsx +170 -0
  26. package/src/components/GemieChatSheet.tsx +368 -0
  27. package/src/components/GemieChatWithVoice.tsx +13 -0
  28. package/src/components/GemieComposer.tsx +388 -0
  29. package/src/components/GemieGroupWelcome.tsx +37 -0
  30. package/src/components/GemieParticipants.tsx +133 -0
  31. package/src/components/GemieParticipantsHeader.tsx +27 -0
  32. package/src/components/GemieRecentConversations.tsx +65 -0
  33. package/src/components/GemieSharedConversation.tsx +87 -0
  34. package/src/components/GemieWelcomeMessage.tsx +58 -0
  35. package/src/components/IdentityMark.tsx +225 -0
  36. package/src/components/Image.tsx +12 -0
  37. package/src/components/InertWhen.tsx +48 -0
  38. package/src/components/PlanPreviewCard.tsx +53 -0
  39. package/src/components/QuestionCard.tsx +64 -0
  40. package/src/components/ReplyMarkdown.tsx +373 -0
  41. package/src/components/RichBlocks.tsx +195 -0
  42. package/src/components/VoiceModeIcon.tsx +18 -0
  43. package/src/components/canvas/CanvasComponent.tsx +65 -0
  44. package/src/components/canvas/ChartRenderer.tsx +73 -0
  45. package/src/components/canvas/CodeRenderer.tsx +20 -0
  46. package/src/components/canvas/DashboardRenderer.tsx +70 -0
  47. package/src/components/canvas/DeckRenderer.tsx +43 -0
  48. package/src/components/canvas/FormRenderer.tsx +101 -0
  49. package/src/components/canvas/MarkdownRenderer.tsx +14 -0
  50. package/src/components/canvas/TableRenderer.tsx +47 -0
  51. package/src/components/icons/RiEmojiPicker.tsx +39 -0
  52. package/src/components/icons/RiMoreDots.tsx +32 -0
  53. package/src/components/icons/RiReplyLine.tsx +25 -0
  54. package/src/components/thought/FilesAndSources.tsx +120 -0
  55. package/src/components/thought/ThoughtPanel.tsx +426 -0
  56. package/src/components/thought/ToolStep.tsx +134 -0
  57. package/src/components/thread/AgentExchangeView.tsx +112 -0
  58. package/src/components/thread/AgentResultCard.tsx +125 -0
  59. package/src/components/thread/AgentTaskCard.tsx +127 -0
  60. package/src/components/thread/ChatBubble.tsx +256 -0
  61. package/src/components/thread/GemieThread.tsx +455 -0
  62. package/src/components/thread/MessageBlockBoundary.tsx +78 -0
  63. package/src/components/thread/NewConversationOffer.tsx +54 -0
  64. package/src/components/thread/ThreadRow.tsx +598 -0
  65. package/src/components/thread/ThreadSearch.tsx +130 -0
  66. package/src/components/thread/ThreadSkeleton.tsx +30 -0
  67. package/src/components/thread/ToolResultCard.tsx +254 -0
  68. package/src/components/thread/TurnMenu.tsx +54 -0
  69. package/src/components/thread/TurnStatusLine.tsx +34 -0
  70. package/src/components/voice/GemieVoiceCall.tsx +21 -0
  71. package/src/components/voice/GemieVoiceCall.web.tsx +17 -0
  72. package/src/components/voice/VoiceCallContext.ts +13 -0
  73. package/src/components/voice/VoiceControls.tsx +106 -0
  74. package/src/components/voice/VoiceSession.tsx +120 -0
  75. package/src/components/voice/withVoiceCall.tsx +25 -0
  76. package/src/csp.ts +50 -0
  77. package/src/dictation.ts +40 -0
  78. package/src/hooks/useAmbientWave.ts +184 -0
  79. package/src/hooks/useAtBottom.ts +51 -0
  80. package/src/hooks/useAttachMenu.ts +93 -0
  81. package/src/hooks/useAttachmentIntake.ts +401 -0
  82. package/src/hooks/useAudioLevelMonitor.ts +46 -0
  83. package/src/hooks/useAudioLevels.ts +51 -0
  84. package/src/hooks/useChatComposer.ts +309 -0
  85. package/src/hooks/useChatVoice.ts +129 -0
  86. package/src/hooks/useComposerSuggestions.ts +84 -0
  87. package/src/hooks/useDictation.ts +292 -0
  88. package/src/hooks/useDocumentPicker.ts +11 -0
  89. package/src/hooks/useFailedTurnToast.ts +43 -0
  90. package/src/hooks/useFocusWhenPresented.ts +41 -0
  91. package/src/hooks/useGemieActivity.ts +31 -0
  92. package/src/hooks/useImagePicker.ts +38 -0
  93. package/src/hooks/useMessageReactions.ts +119 -0
  94. package/src/hooks/useMessageVote.ts +50 -0
  95. package/src/hooks/useOpenThought.ts +79 -0
  96. package/src/hooks/usePendingQuestions.ts +19 -0
  97. package/src/hooks/useReadAloud.ts +92 -0
  98. package/src/hooks/useShareHandler.ts +24 -0
  99. package/src/hooks/useSoundEffects.ts +137 -0
  100. package/src/hooks/useTTS.ts +303 -0
  101. package/src/hooks/useThoughtScope.ts +59 -0
  102. package/src/hooks/useThreadRows.ts +157 -0
  103. package/src/hooks/useThreadView.ts +67 -0
  104. package/src/hooks/useTimelineWindow.ts +256 -0
  105. package/src/hooks/useVoiceLauncher.ts +180 -0
  106. package/src/hooks/useVoiceRoom.ts +212 -0
  107. package/src/index.ts +140 -0
  108. package/src/lib/activity-socket.ts +102 -0
  109. package/src/lib/activity-store.ts +53 -0
  110. package/src/lib/add-menu.ts +7 -0
  111. package/src/lib/agent-character.ts +28 -0
  112. package/src/lib/alia-character.ts +14 -0
  113. package/src/lib/attachment-intake.ts +154 -0
  114. package/src/lib/attachment-tiles.ts +74 -0
  115. package/src/lib/audio-level.ts +130 -0
  116. package/src/lib/audio-request-auth.ts +4 -0
  117. package/src/lib/audio-session-binding.ts +27 -0
  118. package/src/lib/bubbles.tsx +16 -0
  119. package/src/lib/call-thread.ts +33 -0
  120. package/src/lib/canvas-result.ts +21 -0
  121. package/src/lib/catalogue-tool.ts +22 -0
  122. package/src/lib/citations.ts +192 -0
  123. package/src/lib/clipboard.ts +23 -0
  124. package/src/lib/content-utils.ts +46 -0
  125. package/src/lib/copy-en.ts +291 -0
  126. package/src/lib/copy-es.ts +287 -0
  127. package/src/lib/copy.ts +38 -0
  128. package/src/lib/deferred/document-picker.ts +2 -0
  129. package/src/lib/deferred/document-picker.web.ts +12 -0
  130. package/src/lib/deferred/expo-audio.ts +2 -0
  131. package/src/lib/deferred/expo-audio.web.ts +12 -0
  132. package/src/lib/deferred/image-data-url.ts +5 -0
  133. package/src/lib/deferred/image-data-url.web.ts +12 -0
  134. package/src/lib/dictation-protocol.ts +142 -0
  135. package/src/lib/dictation-recorder-types.ts +37 -0
  136. package/src/lib/dictation-recorder.native.ts +90 -0
  137. package/src/lib/dictation-recorder.ts +131 -0
  138. package/src/lib/dictation-stream.ts +238 -0
  139. package/src/lib/dictation.ts +216 -0
  140. package/src/lib/document-picker.ts +31 -0
  141. package/src/lib/domain.ts +12 -0
  142. package/src/lib/flights.ts +33 -0
  143. package/src/lib/focus-return.ts +66 -0
  144. package/src/lib/greeting.ts +15 -0
  145. package/src/lib/image-data-url.ts +35 -0
  146. package/src/lib/keyboard.native.tsx +25 -0
  147. package/src/lib/keyboard.tsx +55 -0
  148. package/src/lib/labels-es.ts +113 -0
  149. package/src/lib/labels.tsx +207 -0
  150. package/src/lib/origins.ts +28 -0
  151. package/src/lib/participants.ts +97 -0
  152. package/src/lib/pcm.ts +57 -0
  153. package/src/lib/power-level-options.ts +66 -0
  154. package/src/lib/questions.ts +92 -0
  155. package/src/lib/speech-language.ts +20 -0
  156. package/src/lib/speech-messages.ts +54 -0
  157. package/src/lib/speech-synthesis.ts +156 -0
  158. package/src/lib/suggestions.ts +53 -0
  159. package/src/lib/task-labels.ts +35 -0
  160. package/src/lib/text-input.ts +10 -0
  161. package/src/lib/tool-call-status.ts +28 -0
  162. package/src/lib/tool-icons.ts +36 -0
  163. package/src/lib/tool-registry.ts +71 -0
  164. package/src/lib/tool-renderers.tsx +32 -0
  165. package/src/lib/turn-state.ts +15 -0
  166. package/src/lib/utils.ts +35 -0
  167. package/src/lib/voice-audio-engine-types.ts +59 -0
  168. package/src/lib/voice-audio-engine.native.ts +232 -0
  169. package/src/lib/voice-audio-engine.ts +206 -0
  170. package/src/lib/voice-call-request.ts +49 -0
  171. package/src/lib/voice-call.ts +627 -0
  172. package/src/lib/voice-controls-labels.ts +31 -0
  173. package/src/lib/voice-levels.ts +64 -0
  174. package/src/lib/voice-protocol.ts +328 -0
  175. package/src/lib/voice-worklets.ts +19 -0
  176. package/src/lib/work-log.ts +370 -0
  177. package/src/metro/chart-importers.json +18 -0
  178. package/src/metro/granular-charts.js +3 -0
  179. package/src/metro/index.cjs +227 -0
  180. package/src/metro/index.d.cts +5 -0
  181. package/src/runtime/agents.ts +151 -0
  182. package/src/runtime/api.ts +144 -0
  183. package/src/runtime/app-assertion.ts +51 -0
  184. package/src/runtime/attachment-utils.ts +97 -0
  185. package/src/runtime/chat-turn-control.ts +74 -0
  186. package/src/runtime/composer-draft-store.ts +270 -0
  187. package/src/runtime/config.tsx +222 -0
  188. package/src/runtime/conversation-dates.ts +31 -0
  189. package/src/runtime/conversation-store.ts +49 -0
  190. package/src/runtime/conversations.ts +633 -0
  191. package/src/runtime/error-utils.ts +144 -0
  192. package/src/runtime/host-tools.ts +290 -0
  193. package/src/runtime/index.ts +137 -0
  194. package/src/runtime/message-history.ts +124 -0
  195. package/src/runtime/message-reactions.ts +214 -0
  196. package/src/runtime/model.ts +39 -0
  197. package/src/runtime/oxy-files.ts +37 -0
  198. package/src/runtime/power-levels.ts +66 -0
  199. package/src/runtime/query-keys.ts +49 -0
  200. package/src/runtime/random-uuid.ts +25 -0
  201. package/src/runtime/reaction-cache.ts +45 -0
  202. package/src/runtime/room-events.ts +333 -0
  203. package/src/runtime/routes.ts +81 -0
  204. package/src/runtime/sharing.ts +217 -0
  205. package/src/runtime/sse-frame-reader.ts +88 -0
  206. package/src/runtime/stream-events.ts +154 -0
  207. package/src/runtime/stream-outcome.ts +21 -0
  208. package/src/runtime/thought-store.ts +103 -0
  209. package/src/runtime/thread/agent-activity.ts +261 -0
  210. package/src/runtime/thread/agent-exchange.ts +94 -0
  211. package/src/runtime/thread/automation-labels.ts +79 -0
  212. package/src/runtime/thread/conversation-export.ts +135 -0
  213. package/src/runtime/thread/message-days.ts +120 -0
  214. package/src/runtime/thread/message-processor.ts +93 -0
  215. package/src/runtime/thread/speaker-changes.ts +66 -0
  216. package/src/runtime/thread/task-utils.ts +11 -0
  217. package/src/runtime/thread/thought-utils.ts +750 -0
  218. package/src/runtime/thread/thread-history.ts +139 -0
  219. package/src/runtime/thread/timeline.ts +202 -0
  220. package/src/runtime/thread/title-tags.ts +8 -0
  221. package/src/runtime/thread/tool-cards.ts +387 -0
  222. package/src/runtime/turn-failure.ts +108 -0
  223. package/src/runtime/turn-preparation.ts +21 -0
  224. package/src/runtime/types.ts +172 -0
  225. package/src/runtime/usage-limit-error.ts +44 -0
  226. package/src/runtime/use-agent-activity.ts +80 -0
  227. package/src/runtime/use-conversation-stream.ts +1669 -0
  228. package/src/runtime/use-conversation-thread.ts +590 -0
  229. package/src/runtime/use-gemie-thread.ts +54 -0
  230. package/src/runtime/use-room-events.ts +75 -0
  231. package/src/runtime/use-start-conversation.ts +107 -0
  232. package/src/runtime/use-thread-history.ts +73 -0
  233. package/src/runtime/use-thread-search.ts +100 -0
  234. package/src/runtime/use-turn-edit.ts +99 -0
  235. package/src/text.ts +19 -0
  236. package/src/theme.ts +16 -0
  237. package/src/tools.ts +27 -0
  238. package/src/types.ts +161 -0
  239. package/src/voice-messages.ts +2 -0
  240. package/src/voice.ts +67 -0
  241. package/tsconfig.json +17 -0
  242. package/worklets/voice-processors.js +152 -0
package/CHANGELOG.md ADDED
@@ -0,0 +1,1662 @@
1
+ # @gemies/sdk
2
+
3
+ ## 1.0.0
4
+
5
+ **`@alia.onl/sdk` becomes `@gemies/sdk`** (Gemies ADR 0034 §6), with no bridge package. The code is
6
+ `@alia.onl/sdk` 25.0.1 plus the Alia thread below; what changes for a consumer is names and
7
+ defaults:
8
+
9
+ - **Install `@gemies/sdk` and drop `@alia.onl/sdk`.** Every entry keeps its subpath
10
+ (`@gemies/sdk/ask`, `/ask/text`, `/text`, `/voice`, `/runtime`, `/model`, `/tools`, `/csp`,
11
+ `/dictation`, `/avatar`, `/character`, `/content`, `/voice/messages`, `/metro`).
12
+ - **`Alia` in a name becomes `Gemie`:** `AliaChatContent` → `GemieChatContent`, `AliaChatSheet` →
13
+ `GemieChatSheet`, `AliaChatScreen` → `GemieChatScreen`, `AliaAvatar` → `GemieAvatar`,
14
+ `AliaAskProvider` → `GemieAskProvider`, `useAliaRuntime` → `useGemieRuntime`,
15
+ `useAliaActivity` → `useGemieActivity`, `aliaQueryKeys` → `gemieQueryKeys`,
16
+ `withAliaGranularCharts` → `withGemieGranularCharts`, and so on for every `Alia*`, `useAlia*`
17
+ and `alia*` export and type.
18
+ - **Exceptions:** `useAskAgent` → `useAskGemie`; `withAliaSdkCsp` → `withGemiesSdkCsp`,
19
+ `ALIA_SDK_CSP` → `GEMIES_SDK_CSP`, `ALIA_API_URL` → `GEMIES_API_URL`, `ALIA_WEB_ORIGIN` →
20
+ `GEMIES_WEB_ORIGIN`, `ALIA_API_ROUTES` → `GEMIES_API_ROUTES`, `ALIA_FEATURES` →
21
+ `GEMIE_FEATURES`, `aliaSharedConversationUrl` → `gemiesSharedConversationUrl`. `ALIA_LEAD`,
22
+ `ALIA_AVATAR` and `isAlia` keep their names: they are Alia herself, the default gemie.
23
+ - **Defaults:** the API is `https://api.gemies.ai` (`EXPO_PUBLIC_GEMIES_API_URL` overrides it,
24
+ replacing `EXPO_PUBLIC_ALIA_API_URL`), and the shared web origin (voice worklets, shared
25
+ conversation links) is `https://gemies.ai`. `withGemiesSdkCsp` declares both; a host that wrote
26
+ `api.alia.onl` or `alia.onl` into its CSP by hand must change it.
27
+ - **New: Alia's continuous thread.** `useGemieThread(gemieId)` opens the person's thread with a
28
+ gemie by id (`GemieThreadInfo`, with `threadId` for a gemie whose chats are loose, like Alia);
29
+ conversations carry `threadId`, `useCreateConversation({ threadId })` starts the thread's next
30
+ stretch, and `GemieChatContent` takes `gemieThread`.
31
+
32
+ The history below is `@alia.onl/sdk`'s.
33
+
34
+ ## 25.0.1
35
+
36
+ - Scheduled and proactive replies from the conversation's own agent stay in the main thread,
37
+ including on live delivery, reload, and shared conversations. Membership uses the opened agent
38
+ id even before its profile loads; attributed replies no longer become self-consultations.
39
+ - Internal exchanges continue to show consultations with outside agents, while group members
40
+ keep speaking inline.
41
+
42
+ ## 25.0.0
43
+
44
+ - **Breaking dependency minimum:** requires `@oxy.so/services >=14.19.1` for shared-session and account-cache readiness.
45
+ - Conversation lists wait for both readiness signals. Authentication failures stay errors, with an account-local offline display fallback, instead of becoming fresh empty lists. Requests consume query cancellation signals.
46
+
47
+ ## 24.2.0
48
+
49
+ - **Composer loader lifecycle.** `useConversationThread` exposes `composerPhase` separately from
50
+ `isLoading`; `AliaChatContent` passes the request phase to `AliaComposer`, which forwards it to
51
+ Bloom's `ComposerLoader`. Direct `AliaComposer` callers may pass `loaderPhase` themselves.
52
+
53
+ ## 24.1.0
54
+
55
+ - **A consulted agent's reply is not drawn under its line.** When Alia or an agent asks another
56
+ agent (`consultAgent`), the thread shows "Chatted with …" and no longer the agent's answer
57
+ beneath it: the lead already answers the person with it, and the line opens the exchange
58
+ (`onOpenAgentChat`) to read it. A host that passes no `onOpenAgentChat` keeps the answer where it
59
+ was, since there would be no way to reach it. Members of a group chat are never consulted
60
+ agents: they speak as themselves. New `consultedReplies` beside `speakerChanges`.
61
+
62
+ ## 24.0.1
63
+
64
+ - **A conversation prefetch never retries.** `prefetchConversation` (the hover/press-in warm-up)
65
+ now fails once and quietly. It used to retry through the query client's default policy, so a
66
+ refusal by the API's rate limit (429) was retried twice more, spending the budget that had just
67
+ refused it; the press that opens the conversation fetches it itself.
68
+
69
+ ## 24.0.0
70
+
71
+ - **Breaking.** The web search switch is gone: Alia can always search the web, so
72
+ `AliaTurnRequest.webSearch` (what `AliaRuntimeHost.turnRequest` returned) is removed. Hosts that
73
+ returned it from `turnRequest`: delete it. The server still accepts `webSearch: false` from
74
+ other clients on `/v1`.
75
+ - **Group chats.** A conversation of several agents (`memberAgentIds`, the `group` prop of
76
+ `AliaChatContent`) gets its own welcome (`AliaGroupWelcome`, the members' avatars together), and
77
+ the members' avatars fly out of it with the first message. Its members speak as themselves: no
78
+ "chat with" line is drawn at each change of speaker.
79
+ - **Group rooms in real time.** The members of a group talk to each other past the request. The
80
+ host gets a new optional hook, `AliaRuntimeHost.subscribeRoomEvents(conversationId, listener)`,
81
+ fed from the `group:event` socket event; the thread draws a member typing, streams what the
82
+ members write and stores their replies as they land. A host that does not implement it keeps
83
+ today's behaviour (the request's own first round).
84
+ - **Agent threads read as a chat.** In a chat with an agent (or a group) the thread shows the
85
+ conversation only: no "Worked for" line, task list or search trail, and the agent's tools do not
86
+ open the thought panel on their own. Alia's own chat is unchanged.
87
+ - **"Chatted with …"** (before "Chat with …") is a button: it opens, read-only and without the
88
+ composer, the conversation the agents had between themselves (what the calling agent asked and
89
+ what the consulted agent answered), rebuilt from the loaded messages. The chat under it stays
90
+ mounted and inert, so its scroll and draft survive.
91
+ - **Bubbles.** The person's own bubble has no react button (a reaction is a vote on a reply); the
92
+ react, reply and more icons and the reaction pill are the chat reference's own.
93
+ - Built and tested against Bloom 17.39.0. The peer range stays `@oxy.so/bloom >=17.22.0`.
94
+
95
+ ## 23.1.0
96
+
97
+ - Reactions in the chat bubbles: Bloom's emoji bar on a message, the person's reactions as pills
98
+ under the bubble and everyone's votes under "more". They toggle through
99
+ `POST /v1/conversations/:id/messages/:messageId/reactions`.
100
+ - Fix: the persisted conversation list hands its dates back as `Date`s (a hydrated list held
101
+ `updatedAt` as an ISO string and the sidebar's sort threw `updatedAt.getTime is not a function`).
102
+ - Built and tested against Bloom 17.29.0, where the spinner of every busy state (`Loading`,
103
+ `Button`, the send button) is the Material 3 morphing loader. The peer range stays
104
+ `@oxy.so/bloom >=17.22.0`.
105
+
106
+ ## 23.0.0
107
+
108
+ - **Breaking.** Bloom 17.22 draws characters as SVG, so the hosted 3D runtime is gone from the
109
+ SDK. Removed: the `ALIA_CHARACTER_RUNTIME_URL` export (root and `@alia.onl/sdk/character`), the
110
+ `characterRuntimeUrl` prop of `AliaChatSheet`, `AliaChatScreen` and `AliaSharedConversation`
111
+ (and of `ask`), the pre-rendered still of `AliaAvatarIcon` (`bun run render:avatar-still` and its
112
+ generated file) and the optional peer `@oxy.so/bloom-avatar-native`. The chat components mount
113
+ Bloom's `AgentAvatarProvider` themselves. Consumers: bump to 23.0.0, delete any
114
+ `characterRuntimeUrl` you passed and any copy of Bloom's `assets/character-runtime` you served
115
+ (Bloom no longer ships it). `@oxy.so/bloom` is now `>=17.22.0`.
116
+
117
+ ## 22.10.1
118
+
119
+ - Admit Oxy Services 14 alongside 13. Services 14 requires Core ^7.9.1;
120
+ applications must satisfy that peer separately and validate their own dependency graph.
121
+
122
+ ## 22.10.0
123
+
124
+ - The eager Ask provider and hook are available from `@alia.onl/sdk/ask/eager`, preserving
125
+ the root entry's eager sheet and voice behavior. `@alia.onl/sdk/voice/messages` exposes
126
+ voice error messages without importing the voice call. `@alia.onl/sdk/character` exposes
127
+ the character parser and default runtime URL, without importing the chat.
128
+
129
+ ## 22.9.0
130
+
131
+ - Native avatars can use the optional shared GPU companion `@oxy.so/bloom-avatar-native@^0.1.0`. Their default asset URL pins the installed companion manifest revision; Alia retains previous releases independently of web deployments. Hosts without the companion retain the WebView fallback, and web imports no native GPU graph.
132
+ - Avatar icons nested inside a chat preserve its explicit `characterRuntimeUrl` override.
133
+ - Regenerated Alia's bundled still with the smooth avatar runtime; idle icons retain the same character and dimensions without fetching the 3D runtime.
134
+
135
+ ## 22.8.0
136
+
137
+ - **Streaming dictation (ADR 0024).** `@alia.onl/sdk/dictation` gains
138
+ `openDictationStream({ apiUrl, getToken | token, language?, onEvent, signal?, openSocket?,
139
+ endTimeoutMs? })`: the caller's PCM16 LE mono 24 kHz frames go to
140
+ `GET /v1/audio/transcriptions/stream`, and Alia's events come back while the person speaks:
141
+ `dictation.ready`, `transcript.interim` / `transcript.delta` / `transcript.final` per numbered
142
+ `segment`, `error { code, retryable }` and one `dictation.closed { reason }`. A segment's
143
+ `transcript.final` is the only text to keep. It returns `{ append, commit, end, close, closed }`;
144
+ `end()` resolves once the finals have arrived. The protocol module (`DICTATION_PROTOCOL_VERSION`
145
+ 1, `parseDictationServerEvent`, `dictationStreamUrl`) is exported beside it. It reaches no React
146
+ or native module (`check:entries`). `useDictation` still records a clip for batch
147
+ transcription; adopting the stream there is a follow-up.
148
+ - The API that serves the stream ships with this release; against an older API the socket's
149
+ path answers 404 and the stream reports `TRANSCRIPTION_FAILED`, so batch
150
+ `requestTranscription` stays the fallback.
151
+
152
+ ## 22.7.0
153
+
154
+ - **Image results for awaited host tools.** An awaited tool's `execute` may answer
155
+ `result: { type: "image", mediaType, data, text? }` (`AliaHostImageResult`: `image/jpeg`,
156
+ `image/png` or `image/webp`, `data` in standard base64 with no `data:` prefix, an optional
157
+ caption of at most `HOST_IMAGE_TEXT_MAX_CHARS`, 4,000). The model sees the image itself in that
158
+ turn; the stored conversation and the `alia.tool_result` frame keep
159
+ `{ type, mediaType, text?, omitted: true }` instead. The whole result still counts toward
160
+ `HOST_RESULT_MAX_CHARS` (100,000 characters as JSON), so size a screenshot to fit.
161
+ - A result that claims `type: "image"` but is malformed is answered `failed` with the reason
162
+ (`hostImageResultProblem`), instead of being sent for the API to refuse while the model waits.
163
+ - Needs the Alia API that ships with this release (`docs/agent-embedding.md` §2); an older API
164
+ passes an image result to the model as JSON text.
165
+
166
+ ## 22.6.0
167
+
168
+ - **`@alia.onl/sdk/dictation`: dictation's request on its own.** `requestTranscription`,
169
+ `DictationError`, `dictationFailureCode`, `normalizeAudioMediaType` and `MAX_DICTATION_MS`, the
170
+ same functions `useDictation` and `AliaComposer` use, from an entry that reaches no React, no
171
+ native module, no recorder and no Oxy client (`check:entries` holds it). An app that records
172
+ its own audio (Astro's browser shell) sends its clips from here instead of keeping a copy of
173
+ the request. Nothing changes for the root entry, which still exports `requestTranscription`
174
+ and `DictationError`.
175
+
176
+ ## 22.5.0
177
+
178
+ - **`AliaApi.put`.** The REST API (`useAliaApi`, `createAliaApi`) sends PUT like PATCH: the
179
+ linked Oxy client's authentication and 401 replay, the app assertion and a JSON body. Alia's
180
+ memory profile takes its sections by PUT (`/memory/context`, `/memory/preferences`,
181
+ `/memory/settings`), so a host's personalization settings can save them without its own client.
182
+
183
+ ## 22.4.0
184
+
185
+ - **A shared conversation shows its artifacts.** `readSharedConversation` keeps an assistant
186
+ message's `artifacts` (`AliaSharedArtifact`: `{ id, type, title, data }`, the canvas tool's
187
+ result) and `sharedMessages` hands each to the thread as the canvas call that drew it.
188
+ `AliaSharedConversation` draws them inline under their reply on the canvas renderers (reports,
189
+ decks, dashboards, charts, tables). An `AliaThread` that is not `readOnly` is unchanged: in the
190
+ app an artifact still opens in the canvas panel, not in the reply.
191
+ - The server sends `artifacts` only from the API that ships with this release
192
+ (`docs/agent-embedding.md` §6); against an older API the shared page shows words and images,
193
+ as before.
194
+
195
+ ## 22.3.0
196
+
197
+ - **Decks and dashboards on the canvas.** `CanvasComponent` draws the canvas tool's two new
198
+ types: a `deck` (one card per slide: title, subtitle, bullets, body) and a `dashboard` (its
199
+ stats in a row, then charts, tables and notes on the chart, table and Markdown renderers).
200
+
201
+ ## 22.2.0
202
+
203
+ - **Awaited host tools.** `AliaHostToolDefinition.awaitsResult: true` declares a tool whose
204
+ result the model reads in the same turn ("this tab's text"). When the model calls it, the
205
+ runtime runs the host's `execute` once and POSTs `{ toolCallId, outcome, detail?, result? }` at
206
+ once to `/v1/chat/turns/:turnId/host-results` through the authenticated API (with the app
207
+ assertion), instead of queueing the outcome for the next request. `AliaHostOutcome.result`
208
+ carries a string or JSON value of at most `HOST_RESULT_MAX_CHARS` (100,000) characters as JSON;
209
+ a larger one is answered as `failed`. A failed POST is reported to `AliaHostTools.onUndelivered`
210
+ and never retried. `parseHostAction` keeps `awaitsResult` and `turnId`.
211
+ - **Personalization off for one turn.** `AliaTurnRequest.personalization: false` (read at send
212
+ time from `host.turnRequest()`) sends `personalization: false`: Alia reads no memory and offers
213
+ no memory tools for that turn. Nothing is sent otherwise.
214
+ - `awaitsResult` is sent only for a tool that declares it, so existing hosts send the same bytes.
215
+ A host that declares one needs the Alia API receiver for awaited host tools deployed first
216
+ (`docs/agent-embedding.md` §2); an older API refuses the field with `invalid_host`.
217
+
218
+ ## 22.1.2
219
+
220
+ - **Every entry type-checks under `noUncheckedIndexedAccess`.** The SDK ships source, so a
221
+ consumer compiling with `"noUncheckedIndexedAccess": true` (Astro) type-checked the SDK under
222
+ it too and got errors from indexed reads in the runtime, thread, citation and catalogue-tool
223
+ modules (27 from `@alia.onl/sdk/runtime` alone). Each read is now narrowed where the index is
224
+ known to be in range, with a loop over the values where that is simpler. Behaviour is unchanged.
225
+ - `check:entry-types` compiles every entry with `noUncheckedIndexedAccess` on, so CI keeps it so.
226
+
227
+ ## 22.1.1
228
+
229
+ - A delayed Stop acknowledgement cannot idle a newer turn, replace its sidebar
230
+ preview, or notify a different conversation. Thread/account changes and unmounts
231
+ invalidate old completion callbacks while the original acknowledgement drains.
232
+ - Keep repeated Stop requests deduplicated during that drain; errors from an old
233
+ Stop cannot appear in a replacement thread. Public APIs and peer ranges are unchanged.
234
+
235
+ ## 22.1.0
236
+
237
+ - Stop explicitly cancels the authenticated foreground turn across API replicas;
238
+ closing a sheet or losing its transport still allows background completion.
239
+ - Export `createChatTurnControl` / `AliaChatTurnControl` from `@alia.onl/sdk/runtime`
240
+ for custom Stop controls, with account-change fences and early-turn ids.
241
+ - Requires the explicit Stop API receiver to be deployed before adoption; see
242
+ `docs/explicit-chat-stop.md` in the repository.
243
+
244
+
245
+ ## 22.0.1
246
+
247
+ Remove the Bloom peer upper bound to follow the first-party package policy.
248
+ The required minimum remains `15.10.1`; core `>=7.1.0 <8` and services
249
+ `>=13.0.0 <14` are unchanged. This patch changes package metadata only.
250
+
251
+ ## 22.0.0
252
+
253
+ Requires `@oxy.so/core >=7.1.0 <8` and `@oxy.so/services >=13.0.0 <14`.
254
+ Text, dictation, speech and voice use the shared account transport. Account
255
+ switches and sign-out invalidate pending work; websocket credentials are
256
+ refreshed through the shared origin-bound getter before connecting. Own Oxy
257
+ apps use their current account without app scopes or consent. External
258
+ credentials retain their existing limits.
259
+
260
+ ## 21.5.3
261
+
262
+ ### Fixed
263
+
264
+ - **Every entry type-checks on its own.** `@alia.onl/sdk/text`, `/ask`, `/ask/text` and `/voice`
265
+ reach components that use NativeWind's `className`, but only the root entry carried
266
+ `/// <reference types="nativewind/types" />`. Expo apps load NativeWind's types themselves and
267
+ never noticed; a consumer that does not (a Vite app) got 65 `className` errors importing
268
+ `@alia.onl/sdk/text`. Each of those entries now carries the reference.
269
+ - `@alia.onl/sdk/avatar` no longer needs the host to declare Node's `process`: the one
270
+ `process.env.EXPO_PUBLIC_ALIA_API_URL` read declares its own type (Metro still inlines it).
271
+
272
+ ### Added
273
+
274
+ - `check:entry-types` (in `prepublishOnly` and CI): compiles a consumer of each entry in
275
+ `exports` alone, through a real `node_modules` link, with nothing loaded globally and the
276
+ strictest consumer's options.
277
+
278
+ ## 21.5.2
279
+
280
+ ### Fixed
281
+
282
+ - Welcome and conversation sheets grow and shrink with their content up to Bloom’s
283
+ available-height limit, instead of filling the entire frame. Bloom owns the Screen
284
+ sizing, scrolling, keyboard clearance and safe areas.
285
+ - The empty thread no longer adds composer clearance a second time. Growing and
286
+ shrinking a draft now changes the sheet height by the composer’s actual change.
287
+
288
+ ### Changed
289
+
290
+ - The Bloom peer is `>=15.10.1 <16.0.0`, which provides intrinsic Screen sizing
291
+ inside content-sized sheets and clips decorative chat backgrounds.
292
+
293
+ ## 21.5.1
294
+
295
+ ### Fixed
296
+
297
+ - Embedded welcome and conversation sheets now request Bloom's bounded `sizing="fill"`
298
+ presentation. After the chat moved to Screen composition, a content-sized sheet could
299
+ mount at zero height even though the conversation and composer had loaded. Bloom owns
300
+ the available height, keyboard clearance and safe areas; hosts need no viewport workaround.
301
+
302
+ ### Changed
303
+
304
+ - The Bloom peer is `>=15.10.0 <16.0.0`, the first release with the bounded sheet contract.
305
+ The independent thought sheet keeps its existing content sizing.
306
+
307
+ ## 21.5.0
308
+
309
+ ### Fixed
310
+
311
+ - **The SDK no longer ships every Oxy account screen to the app.** The host's app assertion
312
+ (`useAppAssertion`) was read from `@oxy.so/services/ui`, the only entry that exported it, and
313
+ that entry registers every account screen at import (with Bloom's phone flags and the rest), so
314
+ every app using the SDK carried them in its first-paint JS: +0.58 MiB in CrowdSource's reviewer.
315
+ It now comes from the lean `@oxy.so/services/ui/client`, like `useOxy` and `useAuth`.
316
+ `check:entries` refuses `@oxy.so/services/ui` from every entry, as it already refused the root.
317
+
318
+ ### Changed
319
+
320
+ - The `@oxy.so/services` peer is `>=12.1.0`, the first release whose `ui/client` exports
321
+ `useAppAssertion`.
322
+
323
+ ## 21.4.0
324
+
325
+ ### Added
326
+
327
+ - **`@alia.onl/sdk/text` and `@alia.onl/sdk/ask/text`: the chat without bundling the voice
328
+ call.** `voice={false}` hid the call, but its code still shipped: since 21.3.2 the web build
329
+ inlines the call into the chat's chunk, so a text-only app paid for it. The new entries export
330
+ the same `AliaChatSheet`, `AliaChatScreen` and `AliaChatContent`, and `AliaAskProvider` /
331
+ `useAskAgent` with a lazily loaded sheet. None of them reaches the call's modules (its socket,
332
+ protocol and audio engine), and they never offer a call. Read-aloud and dictation stay.
333
+ CrowdSource's reviewer, which switched `AliaChatSheet` to `@alia.onl/sdk/text`: lazy sheet
334
+ chunk 1,455,831 → 1,357,287 bytes (413.8 → 374.2 KB gzip), `__common.js` 3,978,158 →
335
+ 3,962,370 bytes, no new chunk. The README has a table of which entry to import.
336
+
337
+ ### Changed
338
+
339
+ - `AliaChatContent` no longer imports the call. It draws whatever call `VoiceCallContext` hands it,
340
+ and the root entry and `@alia.onl/sdk/ask` export their chat through `withVoiceCall`, so those
341
+ two behave as before. `check:entries` checks that the text entries never reach the call, on any
342
+ platform, and draw no async boundary on web other than the ask sheet's.
343
+
344
+ ## 21.3.2
345
+
346
+ ### Fixed
347
+
348
+ - **On web the SDK draws no async chunk boundary of its own**, so an app that lazy-loads its Alia
349
+ sheet keeps the chat in that chunk instead of its first paint. Expo's Metro serializer hoists
350
+ every module two async chunks share into `__common.js`, loaded at first paint; the SDK's own
351
+ `import()` calls (the call's `VoiceSession`, the root entry's `AliaAskProvider` sheet, the
352
+ `expo-audio`, document-picker and image readers) made such chunks inside the app's, and moved the
353
+ whole chat and the Bloom it draws with into `__common.js`. On web those now import statically
354
+ (`.web` forks); native keeps its lazy loads. The root entry's `AliaAskProvider` imports its sheet
355
+ statically on every platform (the root already holds the chat); `@alia.onl/sdk/ask` keeps its
356
+ one lazy boundary. CrowdSource's reviewer: first-paint JS 1.57 MiB gzip → 1.23 MiB, largest
357
+ file 5.05 MiB → 3.79 MiB, its lazy Alia chunk 29 KiB → 404 KiB gzip. `check:entries` holds it.
358
+ - **The source compiles under `erasableSyntaxOnly`.** The SDK ships TypeScript source, and a
359
+ consumer that compiles it with `erasableSyntaxOnly` (OxyHQ/website, `tsc -b`) failed with TS1294
360
+ on two constructor parameter properties in `runtime/conversations.ts`
361
+ (`ConversationNotFoundError.conversationId`, the offline store). They are now declared fields
362
+ assigned in the constructor, and the SDK's own `tsconfig.json` sets `erasableSyntaxOnly`, so
363
+ `typecheck` (CI and `prepublishOnly`) refuses parameter properties, enums and namespaces.
364
+
365
+ ## 21.3.1
366
+
367
+ - Ask Alia follows the active account language resolved by Oxy Services instead of defaulting to
368
+ English. Changes to that language update the open sheet without replacing its conversation.
369
+ - Ship a complete Spanish chat catalogue, including composer, voice, menus, thought panel and
370
+ conversation errors. Regional Spanish tags use it; host label overrides remain supported.
371
+ - Apply the sheet's labels above its hooks and all its sheets, so sharing errors and the thought
372
+ panel use the same language as the conversation.
373
+
374
+ ## 21.3.0
375
+
376
+ The SDK runs on Expo SDK 58 (React Native 0.88, React 19.3) as well as Expo 57.
377
+
378
+ ### Changed
379
+
380
+ - **Peers admit Expo SDK 58.** Every `expo-*` peer is `^57.0.0 || ^58.0.0`, `react-native` is
381
+ `^0.86.0 || ^0.88.0` and `react-native-gesture-handler` `^2.32.0 || ^3.3.0` (SDK 58 ships 3.3).
382
+ `@oxy.so/bloom` is `>=10.21.0`, the first Bloom whose `TextInput` ref props type-check under
383
+ React Native 0.88's strict TypeScript API.
384
+
385
+ ### Fixed
386
+
387
+ - **A picked image is read with `expo-file-system`'s `File` API** (`new File(uri).base64()`). The
388
+ root entry's `readAsStringAsync` is the legacy API, which throws at runtime since the package
389
+ moved it to `expo-file-system/legacy`, so attaching a photo on iOS or Android failed.
390
+ - **An edit and a regenerate call `AliaRuntimeHost.onTurnStart`**, like a send from the composer
391
+ or a retry: each sends a new turn. A host that judges what a turn does against the moment it
392
+ was sent (a host tool's staleness check) used to judge an edited or regenerated turn against the
393
+ turn before it. An edit that sends nothing (an unknown message, empty content) calls nothing.
394
+
395
+ ## 21.2.0
396
+
397
+ ### Added
398
+
399
+ - **`parseCatalogueTool` and `toolRendererKey` from `@alia.onl/sdk/tools`.** Which app a tool call
400
+ belongs to (`oxy_<app>__<tool>` / `self_<app>__<tool>`) is now readable without loading React
401
+ Native, so a host's own pure models and tests — the code that decides what a screen shows —
402
+ can tell its catalogue's results apart. The main entry exports the same two functions as before.
403
+
404
+ ## 21.1.0
405
+
406
+ A shared conversation has one address, Alia's, whichever app minted it (`docs/agent-embedding.md`
407
+ §6).
408
+
409
+ ### Added
410
+
411
+ - **`url` on `AliaConversationShare`**: `useShareConversation().share` (and a host's `onShare`)
412
+ gets the link to hand on, `https://alia.onl/shared/<token>`, rather than a token to build its own
413
+ page around.
414
+ - **`aliaSharedConversationUrl(token)`**: the same link, for an app that redirects the share links
415
+ it minted before to Alia's page.
416
+
417
+ ## 21.0.0
418
+
419
+ A conversation records the Oxy app it started in, so an embedding app lists only its own while
420
+ the Alia app lists all of them (`docs/agent-embedding.md` §6). The app is named once, on the chat.
421
+
422
+ ### Added
423
+
424
+ - **`app` on `AliaChatContent`, `AliaChatSheet`, `AliaChatScreen`, `AliaAskProvider` and
425
+ `AliaRuntimeProvider`**: the embedding app's slug (`homiio`, `mercaria`). Every turn carries it
426
+ as `host.app` — with an empty tool list when the chat has no host tools — and
427
+ `POST /v1/conversations/new` and `POST /v1/conversations` carry it as `app`, so a conversation
428
+ the chat starts is labelled with it. Omitted, the chat is Alia's own and labels nothing.
429
+ - **`useConversations({ app })`**: only the conversations started in that app
430
+ (`GET /v1/conversations?app=`), composable with `agentId`. The chat's `app` does not imply it:
431
+ the app that wants only its own asks for them.
432
+ - **`Conversation.app`**: the app a conversation started in, or `null`.
433
+ - **The sheet's recent conversations are the app's.** In a sheet with an `app`, the recents under
434
+ the greeting (20.1.0) are the ones started in that app; Alia's own sheet still lists any.
435
+
436
+ ### Changed (breaking)
437
+
438
+ - **`AliaHostTools` has no `app`.** Host tools are the chat's `app`'s, which a chat with
439
+ `hostTools` must name; one without throws on render. Move `hostTools.app` to the chat's `app`.
440
+ - **`hostRequest(app, tools, outcomes)`** and **`HostOutcomeQueue.dispatch(action, tools, app)`**
441
+ take the app.
442
+ - **`aliaQueryKeys.conversations.withAgent(id)` is `filtered({ agentId, app })`.**
443
+
444
+ ## 20.3.0
445
+
446
+ A host hears when a turn has stopped streaming.
447
+
448
+ ### Added
449
+
450
+ - **`AliaRuntimeHost.onTurnEnd`**, the pair of `onTurnStart`: called exactly once for each turn
451
+ the runtime sends, once it stops streaming for any reason — finished, stopped (Stop) or failed —
452
+ and only while the conversation that sent it is still mounted, so a surface that left mid-turn
453
+ is never called back. A host that holds back what would take the chat off the screen runs it
454
+ here, instead of watching `useConversationStore().streamingConversationId`.
455
+
456
+ ## 20.2.0
457
+
458
+ An app mounts its one sheet at the root without the chat in its entry bundle.
459
+
460
+ ### Added
461
+
462
+ - **`@alia.onl/sdk/ask`**, a leaf entry with `AliaAskProvider` and `useAskAgent` alone. The root
463
+ entry still exports both, but brings the whole chat with them.
464
+
465
+ ### Changed
466
+
467
+ - **`AliaAskProvider` loads its sheet lazily** (`components/AliaAskSheet.tsx`, one `import()`) and
468
+ mounts it on the first `ask`. Signed in, the module is fetched in the background, so the first
469
+ `ask` does not wait on the network. `check:entries` holds that `./ask` loads none of the chat
470
+ with the entry.
471
+ - **Ref and event types are React Native 0.88-ready.** A ref to a `ScrollView` or `TextInput` is
472
+ typed `ComponentRef<typeof …>` (0.88 types both as function components), and key presses are
473
+ `TextInputKeyPressEvent` (`TextInputKeyPressEventData` is deprecated since 0.86). Nothing
474
+ changes on 0.86. The peer ranges stay on Expo 57 / React Native 0.86: Bloom's own `TextInput`
475
+ ref props are not 0.88-ready yet.
476
+
477
+ ## 20.1.0
478
+
479
+ The one sheet is the whole surface an app needs for an agent: it picks a conversation up again and
480
+ the app can close it.
481
+
482
+ ### Added
483
+
484
+ - **`useAskAgent().resume(agentKey, conversationId)`** opens the sheet of that agent on a stored
485
+ conversation, where the person left it (`AliaChatSheetRef.resume`).
486
+ - **`useAskAgent().dismiss()`**, and `AliaAskProvider` forwards a ref to the same `AliaAsk`, for
487
+ the code that configures the sheet and so sits above it — a host-tool executor that changed the
488
+ page under the sheet closes it once the turn is written.
489
+ - **The sheet's recent conversations.** Under the greeting, the person's three latest conversations
490
+ with the lead (`AliaRecentConversations`; Alia's sheet lists any). `recentConversations={false}`
491
+ turns it off. New label `recentConversations` (`'Recent'`).
492
+ - **`AliaChatContent` `welcomeAccessory`**, drawn under the empty chat's greeting.
493
+
494
+ ## 20.0.0
495
+
496
+ Generic chat UI is Bloom's; the SDK composes it and keeps only what is Alia's. Two copies the SDK
497
+ carried of things Bloom already had are deleted (a clean cut: no aliases).
498
+
499
+ ### Removed
500
+
501
+ - **`AliaMarkdown`, `AliaMarkdownProps` and `RenderCodeBlock`.** Replies render with Bloom's
502
+ `Markdown` (`@oxy.so/bloom/markdown`, `size="lg"`), which streams (an unfinished trailing
503
+ construct is closed instead of showing its markers, and only the last block is re-read), draws
504
+ accessible links (`role="link"`, an anchor on web) and vets every URL. `react-native-markdown-display`
505
+ is no longer a dependency. A Markdown image (an exclamation mark before a link) now reads as a link carrying its alt
506
+ text and is not fetched; Alia's own images arrive as `[ALIA_IMAGE]` blocks and are unchanged.
507
+ - **`joinFlights`.** The join choreography is Bloom's `useAvatarJoin` / `avatarJoinFlights`
508
+ (`@oxy.so/bloom/avatar-flight`), the same one Bloom's `MultiAgentChat` uses; `useParticipants`
509
+ wires the conversation's consulted agents into it, with the same behaviour.
510
+
511
+ ### Changed
512
+
513
+ - **`ReplyMarkdown`** takes `streaming`, and `onCitationPress` now also receives an inline `[n]`
514
+ marker that names a source (Bloom's `onLinkPress`), not only the references list.
515
+ - **`AliaParticipantsHeader`** is Bloom's `AiChatHeader` around `AliaParticipants`.
516
+ - **Peer `@oxy.so/bloom` >= 10.17.0**, the first release with `useAvatarJoin` and `AiChatHeader`.
517
+
518
+ ## 19.1.0
519
+
520
+ An app's own agent may be confined to that app by Oxy (Alia ADR 0021, Oxy ADRs 0044 and 0045).
521
+
522
+ ### Added
523
+
524
+ - **The SDK says which Oxy app it is in.** Every request that can open an agent — the REST API
525
+ (`useAliaApi`: profiles, features, conversations, threads), the chat stream and the voice call —
526
+ carries the host's Oxy-signed app assertion as `X-Oxy-App-Assertion` (on the voice socket, as
527
+ `appAssertion` in the `auth` frame, because a socket cannot carry a header). It is read at send
528
+ time from the host's `OxyProvider` (`useAppAssertion()` of `@oxy.so/services`), and nothing is
529
+ sent when the provider has none. Alia verifies it and opens an agent Oxy confines to an app only
530
+ inside that app; every other agent is unaffected. Dictation and read-aloud reach no agent and
531
+ send none.
532
+
533
+ ### Changed
534
+
535
+ - **Peer `@oxy.so/services` >= 11.12.0**, the first release whose `OxyProvider` obtains the app
536
+ assertion.
537
+
538
+ ## 19.0.0
539
+
540
+ Every agent is the same agent, and any app embeds any of them (ADR 0020; the wire contract is
541
+ [`docs/agent-embedding.md`](../../docs/agent-embedding.md), kept with the API). A clean cut: the retired frames and props are deleted, not deprecated,
542
+ and there is no compatibility path — a build on an older SDK cannot read the new stream.
543
+
544
+ ### Added
545
+
546
+ - **Any agent as lead.** `agent?: { id }` on `AliaChatSheet`, `AliaChatScreen` and
547
+ `AliaChatContent`. The chat reads `GET /v1/agents/:id/profile`, and that agent's greeting, name,
548
+ character and starters lead the conversation (`lib/participants.ts`: `lead = profile ?? ALIA_LEAD`);
549
+ the welcome waits for the profile rather than greeting as Alia. The composer's placeholder and
550
+ the welcome→header flight (`leadToProfile(lead)`) name the lead.
551
+ - **One participants header, with Bloom's join flight.** `AliaParticipants` draws Bloom's
552
+ `AgentProfile` with `[lead, ...joined]`. When the lead consults an agent, the agent's reply is
553
+ drawn under its own `AgentReplyIdentity` (anchor `reply:<agentId>`) and its avatar flies into
554
+ the header — `centeredLanding(14)`, merging, 950 ms, staggered by 120 ms when several join, one
555
+ batch at a time — and the header gains it when the flight lands (at once with reduced motion; an
556
+ agent already in a loaded conversation is simply there). `useParticipants`, `joinFlights`,
557
+ `AliaParticipantsHeader` (the participants between the AI chat shell's own buttons, for a host
558
+ whose header slot takes a string title) and `ANCHORS` are exported. `one-thread.test.tsx` fails if
559
+ any other file imports `AgentProfile` or builds a join flight.
560
+ - **Consult stream events.** `alia.agent_start | agent_delta | agent_tool | agent_end`, read
561
+ strictly (`parseConsultEvent`): a frame of another version or shape is dropped whole. Each
562
+ consultation is one message carrying `agentInfo`, named `<assistantMessageId>-agent-<n>` in the
563
+ order of its start, as the server stores it; its tool calls and results stream into it.
564
+ - **Host tools.** `hostTools?: { app, definitions, execute }` declares the app's UI effects with
565
+ every request (`host: { app, version: 1, tools, outcomes? }`). An `alia.host_action` is performed
566
+ once by `execute`; its outcome (`applied | inline | rejected | stale | failed`) rides the next
567
+ request, and stays queued when a request carrying it does not get through. Screen state is the
568
+ existing `clientContext`, built by the host per turn.
569
+ - **Tool-result renderers.** `toolRenderers?: Record<'<app>:<tool>', (result) => ReactNode>`, keyed
570
+ only from `oxy_<app>__<tool>` / `self_<app>__<tool>`, drawn before (and instead of) the generic
571
+ tool card, for consulted agents' results too.
572
+ - **Feature gates.** `GET /v1/agents/:id/features`; the default attach menu (photos and files)
573
+ offers a row only where the lead's feature is available or locked, and a locked row calls
574
+ `onFeatureLocked(key)` instead of a picker. A turn refused with `feature_entitlement_required`
575
+ (in the stream or before it) calls `onFeatureLocked(feature)` and hands the words back to the
576
+ composer. Documents are uploaded to the person's Oxy Files (`oxyServices.assets.upload`,
577
+ private) and sent as a `{ type: 'file', file: { file_id, filename, mime } }` part.
578
+ - **`AliaAskProvider` + `useAskAgent()`.** One mounted sheet; `ask(agentKey?, turn?)` opens it on an
579
+ agent of `agents: Record<string, { id?: string }>` (no id = Alia), or opens Oxy's sign-in when the
580
+ session cannot call Alia. It carries `hostTools`, `toolRenderers`, `labels`, `voice`,
581
+ `clientContext`, `onFeatureLocked` and `onShare` for every agent.
582
+ - **Sharing.** `useShareConversation()` (`POST`/`DELETE /v1/conversations/:id/share`),
583
+ `useSharedConversation(token)` and `<AliaSharedConversation token>` (`GET /v1/shared/:token`,
584
+ no session, read-only through the SDK's own thread). `useConversations({ agentId })` lists the
585
+ conversations with one agent.
586
+
587
+ ### Breaking
588
+
589
+ - `AliaChatContent`'s `agentId` prop is `agent: { id }`.
590
+ - `AliaChatState.agents` is `AliaChatState.participants` (`{ lead, joined }`); `AliaChatAgent` is
591
+ gone (`AliaChatAgentRef` names the `agent` prop). `AliaChatHeader` takes `participants`, not
592
+ `agents`.
593
+ - `AliaChatSheet` / `AliaChatScreen` `onShare` receives the minted share
594
+ (`{ conversationId, token, expiresAt }`) instead of nothing.
595
+ - `labels.placeholder` is `(leadName) => string`; `labels.addDocuments` is new.
596
+ - `ALIA_ANCHORS` and `ALIA_TO_PROFILE` are `ANCHORS` (`lead:welcome`, `participants`,
597
+ `reply:<id>`) and `leadToProfile(lead)`.
598
+ - The retired single `alia.agent` frame and the `delta.agent_message` chunk are no longer read.
599
+ - **No agent asks for approval.** Removed: `alia.approval_request` / `alia.approval_result` in the
600
+ chat stream and on the agent-session socket; `PendingApproval`, `PendingApprovalResult`,
601
+ `Message.pendingApproval`, `Message.pendingApprovalResult`; `ApprovalDecision`,
602
+ `AgentApprovalRequest`, the `approval_request` / `approval_result` activity events,
603
+ `AgentActivityState.approvalRequest` / `approvalResult`, `respondApproval` of `useAgentActivity`;
604
+ the `waiting_approval` turn lifecycle and the `waiting` thought step (copy
605
+ `thought.waitingApproval`); the voice protocol's `approval.requested` and
606
+ `onApprovalRequested`. A question the agent asks (`askUserQuestion`) stays.
607
+ - **A plan is shown, never approved.** `alia.plan_preview` still draws `PlanPreviewCard`, now the
608
+ steps alone: its Approve and Cancel are gone, and so are what they did. Removed:
609
+ `approvePlan` / `rejectPlan` of `useConversationStream` and `useConversationThread`,
610
+ `onApprovePlan` / `onRejectPlan` of `AliaThread`, `PendingPlan.approved` / `rejected`,
611
+ `PlanPreviewCard`'s `onApprove` / `onReject` / `approved` / `rejected`, and the labels
612
+ `planApprove`, `planCancel`, `planApproved`, `planCancelled`. The work log's `plan_approved`
613
+ entry is `plan` (copy `thought.audit.plan`, "Plan"), listed for every plan shown.
614
+ `Message.pendingPlan` is `Message.plan`, and its type `PendingPlan` is `MessagePlan`
615
+ (`{ planId, steps }`): nothing about it is pending.
616
+ - **No agent mode.** `AliaTurnRequest.agentMode` is gone and no `agentMode` is sent: Alia consults
617
+ agents with `consultAgent` whenever she needs to. The work-log copy of `askAgent` /
618
+ `delegateToAgent` is `consultAgent`'s.
619
+ - `usePhotosMenu` is gone (the default menu is `useAttachMenu`). `buildMessageContent` takes an
620
+ optional document `upload` as its third argument.
621
+
622
+ ## 18.1.0
623
+
624
+ - **The SDK declares its CSP, and the voice call needs no `blob:` script.** In an app with a
625
+ Content-Security-Policy (Mention) the call failed twice over: `connect-src` lacked
626
+ `wss://api.alia.onl`, and the worklets were `blob:` URLs that `script-src` blocks
627
+ (`Failed to load worklet module script`). `@alia.onl/sdk/csp` exports `ALIA_SDK_CSP` and
628
+ `withAliaSdkCsp()` (`OxyCspExtensions` of `@oxy.so/core`), derived from the same origins the
629
+ SDK's URLs start from (`lib/origins.ts`); a test fails if the source names an origin it does not
630
+ declare. The worklets are one plain module, `worklets/voice-processors.js`, taking their numbers
631
+ as `processorOptions` and served by Alia's web app under its content hash
632
+ (`https://alia.onl/sdk/voice-worklets/<revision>.js`, CORS open, every revision kept), under the
633
+ `script-src https://alia.onl` the avatar already needs. The API's URL is defined once (the
634
+ dictation, read-aloud and voice hooks each had their own copy).
635
+
636
+ ## 17.1.0
637
+
638
+ - **`AliaAvatarIcon` is her still until she moves.** At icon size it drew Alia through the live 3D
639
+ runtime, so a header button cost every cold load of the app around it the whole runtime from
640
+ alia.onl (measured: 31 requests, 16.1 MiB in headless Chromium; Mention's home header). It is now
641
+ Bloom's `Avatar` with her character and a still made ahead of time (`characterStill`, Bloom
642
+ 10.9.0), a 16 KB PNG in the source: nothing of the runtime loads until she thinks or works, when
643
+ she goes live and plays her working turn as before, with the still under her until the first
644
+ frame. Reduced motion keeps her a still. `bun run render:avatar-still` redraws the still with the
645
+ installed Bloom's runtime; a test fails if `ALIA_AVATAR` changes without it. Peer
646
+ `@oxy.so/bloom` is `>=10.9.0`.
647
+
648
+ ## 17.0.2
649
+
650
+ - **The composer has its loader again.** While a turn runs, the pill is wrapped in Bloom's
651
+ `ComposerLoader` (the light that laps its rim) with `surface={false}` and `frosted`, as the
652
+ composer had before it became `ComposerPill` (15.1.0) and lost it. A question Alia asks sits
653
+ beside the loader instead of inside the pill's `question` slot, so the light does not ring it.
654
+
655
+ ## 18.0.0
656
+
657
+ One thread, one conversation screen. The Alia app's thread — its turns, cards, work log, thought
658
+ panel, history, search and scroll window — moves into the SDK, and `AliaChatContent` becomes the
659
+ whole conversation: the bottom sheet, `AliaChatScreen` and the app are frames around it. What the
660
+ app keeps is what is its own: the sidebar, the right panel, the column layout that mounts them,
661
+ its routes and its callbacks.
662
+
663
+ - **Breaking: the sheet and the screen draw the app's thread.** `AliaChatMessageList` and
664
+ `ThinkingBlock` are gone, with the avatar-identity reply they drew. The turns are Bloom's AI Chat
665
+ turns (`AliaThread`, `ThreadRow`), with copy, like/dislike, read aloud, regenerate, edit, the
666
+ long-press menu, day lines, tool cards, the "Worked for…" line and the failed turn's toast with
667
+ Retry. `renderMarkdown`, `onEditMessage`, `onThumbsUp`, `onThumbsDown`, `onApprovePlan` and
668
+ `onRejectPlan` are removed from `AliaChatContent`: the thread edits in the composer, votes through
669
+ the API (`PATCH /v1/conversations/:id/messages/:id/vote`) and answers plans itself.
670
+ - **Breaking: `AliaChatContent`'s `header` is `chrome`.** `chrome(state)` returns
671
+ `{ header, title, project, actions }`, the whole of what the container draws around the thread
672
+ (the breadcrumb included). `AliaChatState.clear` is `startOver`; it also carries `conversationId`,
673
+ `clearMessages`, `openSearch` and `getMessages`. `AliaVoiceOptions` loses `isFocused` (the chat
674
+ has one, for the ambient field too) and gains `sounds`.
675
+ - **New: what a host brings to `AliaChatContent`.** `threadHandle` (an agent's permanent thread:
676
+ history above, search, jump), `ephemeral` (ghost mode), `model` + `onModelChange` +
677
+ `deviceModels` (the power-level selector: the seven levels from `buildPowerLevelOptions`, then
678
+ the person's own devices), `addMenu` (the host's rows; photos by default), `composerStatus`,
679
+ `surface`, `layout`, `isFocused`, `bottomInset` (now gives way to the keyboard,
680
+ `KeyboardSafeAreaFloor`), `onSignInRequired`, `renderUsageLimit`, `onSuggestionPicked`.
681
+ `AliaSuggestion.template` marks a line with blanks to fill.
682
+ - **New: where the work of a turn is read.** `ThoughtPanel` draws the selection of
683
+ `useThoughtStore` (`open`, `setTab`, `sync`, `close`); the host places it. `AliaRuntimeHost`
684
+ gains `showThought(opening)` (return `false` to decline an automatic opening), `openAutomation`
685
+ (a scheduled-task card is a link only where the host says where it goes) and `faviconUrl`.
686
+ `AliaChatSheet` opens it in a sheet over the conversation. `FilesAndSources` takes
687
+ `outputActions` (`canOpen`/`open`): asking whether a file opens no longer opens it.
688
+ - **New: the weather, market and FairCoin cards are the SDK's.** Their tools are in the pipeline
689
+ every Alia surface calls and the numbers travel in the message, so any surface that draws Alia's
690
+ reply draws them.
691
+ - **New: `AliaRuntimeProvider speech`** (`voice`, `tone`, `language`) for read-aloud, dictation and
692
+ calls; `useTTS` takes its `apiUrl` and preferences from it.
693
+ - **New: the thread's data layer, in `@alia.onl/sdk/runtime`.** `useThreadHistory`,
694
+ `useThreadSearch`, `useThreadWindow`, `useAgentActivity` (and `applyActivityEvent` /
695
+ `hydrateActivity` in `/model`), `useThoughtStore`, `aliaQueryKeys.threads`,
696
+ `AliaApi.patch`, `ConversationThread`, `AgentRun` (`useConversationThread` now
697
+ returns `agentRun`), and `useConversation(undefined)`. The agent routes are Alia's own clients'
698
+ (outside `/v1`).
699
+ - **New: `@alia.onl/sdk/model`** also carries the power levels (`POWER_LEVELS`,
700
+ `resolveModeSelection`…) and `triggerLabel` / `cronLabel`.
701
+ - **Changed: `AliaChatScreen`'s ambient field takes the whole screen's shape** (`layout="screen"`, the default); the sheet keeps its smaller one (`layout="sheet"`).
702
+ - **Changed: `labels.locale`** (the language `labels.t` speaks, for dates, days and prices). The
703
+ chat's English covers every key the thread asks for (`tests/lib/copy-keys.test.ts` reads the
704
+ source and fails on one it lacks).
705
+ - **Changed: `AliaMarkdown` defaults its body face to Bloom's** (`MARKDOWN_BODY` is gone), and
706
+ `ReplyMarkdown` — rich blocks, references list, code card — is the reply's renderer.
707
+ - **New peers:** `expo-web-browser`, `react-native-css`; `expo-clipboard` is no longer optional.
708
+ - **Fixed:** the thought panel asked "can this file open?" by opening it, once per output, while
709
+ rendering.
710
+
711
+ ## 17.1.0
712
+
713
+ - **New leaf entry `@alia.onl/sdk/avatar`.** `AliaAvatarIcon`, `AliaAvatar`, `ALIA_AVATAR` and
714
+ `useAliaActivity` without the chat: an app draws Alia's live avatar on a header button and keeps
715
+ the conversation UI behind a lazy import, instead of putting the whole SDK in its entry bundle.
716
+ `check:entries` holds the leaf free of the sheet, the composer, the markdown renderer and the
717
+ voice call. The root entry still exports the same four.
718
+
719
+ ## 17.0.1
720
+
721
+ - The task labels follow the API's tool loader: `loadTools` ("Loading tools" / "Loaded tools")
722
+ replaces `useApps`, which the API no longer has. A conversation stored with `useApps` calls
723
+ still replays; the call just shows its raw name.
724
+
725
+ ## 17.0.0
726
+
727
+ One conversation runtime. The sheet, `AliaChatScreen` and the Alia app are frames around the
728
+ same data layer and the same conversation screen: conversations are persisted, listed, opened,
729
+ renamed, deleted and cleared through the same hooks, a turn is the same stream, and a
730
+ conversation started in one surface is the same conversation in the others. The runtime is the
731
+ app's, moved and generalised (`src/runtime`).
732
+
733
+ - **Breaking: the sheet and the screen have conversations.** Turns are stored, and the SDK
734
+ speaks only to `/v1` (`POST /v1/chat/completions`, `/v1/conversations`): bearer, no cookies,
735
+ public CORS, so it works from every Oxy app's web origin with no backend in between. The API
736
+ gained `/v1/conversations` (the same router as `/conversations`, behind a person's session
737
+ only) for this. The consumer-backend relay the README used to document is no longer needed.
738
+ - **Breaking: `useAliaChat`, `UseAliaChatOptions`, `UseAliaChatReturn`, `AliaChatStreamError`,
739
+ `AliaChatFailure` are removed.** Use `useConversationThread`.
740
+ - **Breaking: the `agents` prop is gone** from the sheet, the screen and `AliaChatContent`
741
+ (the pre-opened agent message of a delegation is the thread's agent run now).
742
+ - **Breaking: `model`** is sent as given (a power level — `auto`, `instant`, `medium`, `high`,
743
+ `xhigh`, `pro`, `ultra` — or an exact `publisher/model`) instead of being checked against
744
+ `GET /catalogue` first. The catalogue helpers (`fetchCatalogue`, `parseCatalogue`,
745
+ `resolveSelection`, `resolveModelId`, `clearCatalogueCache` and their types) are removed: the
746
+ SDK itself no longer reads the catalogue, and people choose power levels, not model names.
747
+ - **Changed: the header's Clear starts a new conversation** in the sheet and the screen (the
748
+ thread empties and the next turn opens a fresh conversation); nothing is deleted, the old one
749
+ stays in the list. Deleting or emptying a stored conversation is `useDeleteConversation` /
750
+ `useClearConversation`.
751
+ - **Breaking: `ChatMessage` is the runtime `Message`:** `createdAt` is an ISO string, and a
752
+ `ToolInvocation` always has a `toolCallId`. Agent answers use the server's ids
753
+ (`<reply id>-agent-<n>`).
754
+ - **Breaking: voice.** `openElsewhere` and `owner` are gone from `useVoiceLauncher` and
755
+ `AliaVoiceOptions`; `conversationId` and `agentId` belong to the chat. A call always lives in a
756
+ conversation: the open one, or — on a new-chat screen — one created when the call starts (after
757
+ the gate) and shown, and it opens on the screen that shows that conversation — in place in the
758
+ sheet, on the destination route in a navigating host (`useVoiceCallRequests`). `start()` is
759
+ async. New options `resolveConversation` and `accountId`; a live call now ends when the screen
760
+ shows another conversation, loses focus or changes account.
761
+ - **Who owns the open conversation:** a host that navigates (`runtime.openConversation`, or one
762
+ from an outer `AliaRuntimeProvider`) decides; with none, `AliaChatContent` keeps its own.
763
+ - **Breaking: `labels.workLog` is `labels.t`, and `englishWorkLog` is `englishCopy`.** One translator
764
+ keyed like the Alia app's catalogue asks for every string that is not a fixed `labels` field
765
+ (the work log, the thread, the thought panel…); the app hands its own `t` in, a host without one
766
+ reads English (`src/lib/copy-en.ts`).
767
+ - **Breaking: `ChatMessage` is `Message`** (and `ToolInvocation` always has a `toolCallId`).
768
+ - **New leaf entries.** `@alia.onl/sdk/model` is the conversation as pure data — the records and
769
+ what a list of messages becomes before anything draws it (`timelinePositions`, `buildSteps`,
770
+ `extractSources`, `cardOf`, `daySeparators`, `buildConversationMarkdown`…), no React, no Oxy
771
+ client. `@alia.onl/sdk/runtime` is the data layer (hooks, cache, stores) and re-exports the model.
772
+ `check:entries` holds both leaves free of the UI and the call.
773
+ - **New peer: `@tanstack/react-query`** (the runtime's cache; `OxyProvider` already mounts it).
774
+ - **New:** `AliaRuntimeProvider` / `useAliaRuntime` (`apiUrl`, `chatUrl`, `offline`, `streamFetch`,
775
+ and `host: AliaRuntimeHost`: navigation, `onUsage`, `onArtifact`, `onToolResult`, `onContext`,
776
+ `onAgentTurn`, `onTurnPreview`, `turnRequest`, `deviceInfo`, `subscribeConversationMessages`),
777
+ `useConversations`, `useConversation`, `usePrefetchConversation`, `useCreateConversation`,
778
+ `useRenameConversation`, `useDeleteConversation`, `useClearConversation`, `useSaveConversation`,
779
+ `useConversationThread`, `useTurnEdit`, `useComposerDraftStore` (+ `useComposerDraft`,
780
+ `useDraftAddress`), `useConversationStore`, `aliaQueryKeys`, `useAliaApi`, `AliaApiError`,
781
+ `buildMessageContent`, `UsageLimitError`, `FailedTurn`; `AliaChatContent` takes
782
+ `conversationId`, `onConversationChange`, `agentId` and `runtime`.
783
+ - **New labels:** `newChat`, `sendFailed`, `signInRequired`, `conversationSaveFailed`,
784
+ `conversationDeleteFailed`, `conversationCreateFailed`, `conversationClearFailed`,
785
+ `attachmentNotSent`, `attachmentUnreadable`.
786
+ - The composer's text and photos are the shared per-conversation draft (they survive closing the
787
+ sheet and failed sends restore them).
788
+
789
+ ## 16.0.0
790
+
791
+ Voice is part of the conversation screen. The sheet, `AliaChatScreen` and the Alia app now run
792
+ the same call, with the same words and the same behaviour, instead of each orchestrating it.
793
+
794
+ - **Breaking: the `voiceSession` prop is gone** from `AliaChatContent`, `AliaChatScreen` and
795
+ `AliaChatSheet`, together with the `VoiceSessionComponent` type. Voice is on by default; pass
796
+ `voice={false}` for a text-only chat. `voice={{ ... }}` (`AliaVoiceOptions`) brings the host's
797
+ part: `canStartVoice` (answers `'sign-in' | 'plan-required' | 'credits-exhausted' | null`;
798
+ the SDK tells the person, `onVoiceBlocked` adds navigation or sign-in), `onCallEnded` (refresh
799
+ credits and the thread), `onNotice` (default: Bloom's toast), `conversationId`, `agentId`,
800
+ `locale`, `voice` (`'male' | 'female'`), `onMessagesSaved`, `owner` and `isFocused` (a live
801
+ call ends when the screen is no longer on show or the account/conversation changes) and
802
+ `openElsewhere` (a screen with no conversation to hold the call opens one and hands over).
803
+ - **Breaking: `VoiceSessionProps.onEnd` takes no argument.** `VoiceSession` itself says why a
804
+ call failed (`labels.voiceError(code)`), that it ended without failing
805
+ (`labels.voiceEnded(reason)`: moved to another device, time limit, silence, credits, server
806
+ shutdown; a hang-up says nothing) and, once, that it is about to end
807
+ (`labels.voiceEndingSoon`, also shown in the bar), through `onNotice`. New `onMessagesSaved`
808
+ and `onNotice` props.
809
+ - **Breaking: labels.** `voiceFailed` is replaced by `voiceControls`, `voiceEnded`,
810
+ `voiceEndingSoon` and `voiceBlocked`. `AliaChatLabelsProvider` and `useLabels` are exported.
811
+ - **New:** `useVoiceLauncher` (the host side of a call: gate, state, ownership), `AliaVoiceCall`
812
+ (the call bar, loaded on its first use), `toastNotice`, `VoiceNotice`, `VoiceBlockReason`.
813
+ - **Breaking: `react-native-audio-api` is a required peer** (it was optional): the conversation
814
+ screen includes the call. It is still only evaluated on the first call (one lazy `import()`),
815
+ and `check:entries` now holds that, not the old isolation.
816
+
817
+ ## 15.3.0
818
+
819
+ - **The composer is Bloom's `ComposerPill`.** `AliaComposer` (the sheet's, the screen's and the
820
+ Alia app's one composer) was built on `ComposerPanel` in 13.2.0, which changed the sheet's
821
+ look. It is the pill again — the compact composer the sheet always had — carrying everything the
822
+ app needed from the panel: the power-level picker (`modes` → the pill's `permissions`), the
823
+ docked questions and the status tab. Requires `@oxy.so/bloom` >= 10.6.0, where the pill takes
824
+ them. No prop of `AliaComposer` changes.
825
+ - The 13.1.1 note under 13.2.0 below (the avatar flights load the runtime) shipped in 13.2.0.
826
+
827
+ ## 15.2.1
828
+
829
+ - **The shipped source compiles under `noUnusedLocals`.** The package ships its `.tsx` source, so a
830
+ consumer's own `tsc` (an app with `noUnusedLocals`/`noUnusedParameters`, such as the Oxy website)
831
+ type-checks it and failed on eight unused imports in `AliaChatMessageList` (`Pressable` and the
832
+ reanimated worklet helpers, left behind by the work-log move). They are gone, and the SDK's
833
+ tsconfig now turns the two flags on so it cannot regress.
834
+
835
+ ## 15.2.0
836
+
837
+ - **`AliaChatSheetRef.present(turn?)`.** Given a turn (`{ text, images? }`), the conversation opens
838
+ over the sheet with that message already sent: the "ask Alia about this" button of a profile, a
839
+ post or a file (the way X opens a conversation with Grok about a post). Without a turn nothing
840
+ changes. `AliaTurn` is exported.
841
+
842
+ ## 15.0.0
843
+
844
+ A voice call is a realtime speech-to-speech session through Alia and Kaana, and the composer's
845
+ microphone is transcribed by a Kaana model (Alia ADR 0017). Nothing is recognized by the browser
846
+ or the operating system any more, anywhere in the SDK.
847
+
848
+ - **Breaking: `useVoiceRoom` is a call over Alia's `GET /v1/voice/session` WebSocket.** It sends
849
+ the microphone as PCM16 24 kHz frames and plays the answer's PCM16 frames; turn detection and
850
+ barge-in are the model's, on the server, and tools, memory and the stored transcript are Alia's.
851
+ New options: `conversationId` (where the transcript is stored; omitted, each call starts a
852
+ conversation of its own), `agentId`, `voicePreference`, `lang`, `onMessagesSaved` (refresh the
853
+ thread), `onApprovalRequested`, and the test seams `createAudioEngine` / `openSocket`. Gone:
854
+ `sendTurn`, `chatModel`, `model`, `endOfUtteranceMs`, `bargeIn`, `synthesisError`, `turnError`,
855
+ `turnErrorCode`, `warning`, `warningCode`.
856
+ - **Honest states.** `callState` (`VoiceCallState`) is `connecting` → `listening` (only once the
857
+ session is ready upstream, the microphone delivered a buffer AND Alia acknowledged the first
858
+ appended audio) → `user-speaking` → `thinking` → `using-tool` → `speaking` (only when the first
859
+ answer frame is PLAYING) → … → `ended { reason }` or `error { code }`, plus `reconnecting`
860
+ while a dropped socket resumes within the session's resume window or Alia re-opens the session
861
+ upstream. `roomState` (now with `reconnecting`) and `agentState` are its coarse projections;
862
+ `endedReason` says why a call ended — `call-moved-elsewhere` (the person opened a call
863
+ elsewhere) is a reason, not an error. `endingSoonMs`, `model` (the serving model's name; never
864
+ the operator) are new.
865
+ - **Barge-in:** when the server hears the person start speaking, the playback queue is flushed and
866
+ Alia is told how many milliseconds of the answer were actually heard, so the model remembers
867
+ what was said, not what it generated.
868
+ - **The audio engine** (`createVoiceAudioEngine`, `VoiceAudioEngine`): web is `getUserMedia` with
869
+ echo cancellation, noise suppression and gain control plus two `AudioWorklet`s (capture to
870
+ 24 kHz PCM16, jitter-buffered playback) in one `AudioContext` — Firefox gets calls. iOS and
871
+ Android use **`react-native-audio-api`** (new optional peer, `^0.13.6`), capture and playback in
872
+ one native stack; iOS runs `playAndRecord` in mode `voiceChat` (voice processing). **A host app
873
+ needs a new native build** with the library's config plugin. On Android the library exposes no
874
+ `voiceCommunication` input preset yet, so platform echo cancellation is a gate to measure on
875
+ device (ADR 0017 §4).
876
+ - **Breaking: `useSpeechToText` and `useSTTStore` are replaced by `useDictation` and
877
+ `useDictationStore`.** Dictation records a clip (`MediaRecorder` on web, Opus/WebM or MP4 on
878
+ Safari; the `expo-audio` recorder on iOS/Android, m4a sent as `audio/mp4`) and transcribes it with
879
+ `POST /v1/audio/transcriptions` when the person stops. States: `idle`, `requesting-permission`,
880
+ `recording` (only once the recorder started; levels are the recorder's), `transcribing`,
881
+ `error`. The text arrives through `onText`, never partially; a failed transcription keeps the
882
+ clip for one `retry()`. Clips stop by themselves at five minutes, and `remainingMs` counts the
883
+ last 30 s. `requestTranscription` and `DictationError` are exported. Dictation works in Firefox
884
+ now.
885
+ - **`AliaComposer`** dictates with `useDictation`: the transcription is appended to the draft the
886
+ person has when it arrives, a failure is said with a Retry that re-sends the same clip, and the
887
+ time left shows over the composer in the last 30 s. New prop `apiUrl`; new label
888
+ `dictationRemaining`.
889
+ - **Breaking: `VoiceErrorCode` is rewritten.** The recognizer's codes (`speech-*`,
890
+ `microphone-*`, `recognizer-*`, `no-audio-input`, `turn-failed`, `no-answer`, `not-played`,
891
+ `synthesis-*`) are gone. It is now Alia's call codes (`not-authenticated`,
892
+ `credential-not-supported`, `plan-required`, `credits-exhausted`, `agent-unavailable`,
893
+ `invalid-request`, `resume-unavailable`, `realtime-unavailable`, `realtime-limited`,
894
+ `realtime-rejected`, `realtime-failed`), the device's (`mic-denied`, `mic-unavailable`,
895
+ `connection-lost`, `voice-unavailable`) and dictation's (`too-long`,
896
+ `transcription-unavailable`, `transcription-limited`, `transcription-rejected`,
897
+ `transcription-failed`). An app with its own translations replaces its keys.
898
+ - **Removed:** `createAliaVoiceTurnSender` and the `VoiceTurn*` types, the device recognizers
899
+ (`speech-recognition*`, `chooseSpeechRecognizer`), `isInterruption` and the rest of
900
+ `voice-text`, and the **`expo-speech-recognition` peer** — a host app removes it and its config
901
+ plugin. Read-aloud (`useTTS`, `/v1/audio/speech`) is unchanged.
902
+ - `VoiceSession` takes `conversationId`, `agentId`, `locale` and `voice`; `VoiceControls` takes
903
+ `callState` and shows `reconnecting` and `usingTool` (new labels).
904
+ - The `./voice` entry still holds the call: `scripts/check-entry-isolation.mjs` now also proves the
905
+ root entry never reaches `react-native-audio-api` (nor `expo-speech-recognition`).
906
+
907
+ ## 14.1.0
908
+
909
+ An "Ask Alia" button can show her live avatar and react to what she is doing.
910
+
911
+ - **`AliaAvatarIcon`**: a Bloom icon component (`icon={AliaAvatarIcon}`) that draws the live avatar
912
+ at the icon size under its own `AgentAvatarProvider` on `ALIA_CHARACTER_RUNTIME_URL`, not interactive.
913
+ - **`useAliaActivity()`** returns `'idle' | 'thinking' | 'working' | 'writing'`, the busiest of the
914
+ turns running in this app (`useAliaChat` now publishes its lifecycle to a shared store) and the
915
+ server's `alia:activity` events for the signed-in person (one shared `socket.io-client` connection
916
+ per API origin, none while signed out, closed with the last consumer). New dependency:
917
+ `socket.io-client`. Needs the API that emits `alia:activity` (an older API simply never sends it:
918
+ buttons then follow local turns only).
919
+ - The header mark and the buttons read a turn from one function (`turnActivityState`).
920
+
921
+ ## 14.0.0
922
+
923
+ Read-aloud asks the server every time, and the server answers a clip it already made from storage:
924
+ a message read aloud twice, or a sentence voice mode says again, is synthesized and paid for once.
925
+
926
+ - **Breaking: `useTTS().readAloud(messageId, text, conversationId?)`** loses its fourth argument,
927
+ `audioUrl`. A message no longer carries a stored clip of its own: `POST /v1/audio/speech` finds
928
+ the clip by its text, voice, speed and speech model, for the signed-in person, and answers a
929
+ stored one at once. There is no "play the stored link, remake it if it has gone" path any more.
930
+ - **Breaking: `ChatMessage.audioUrl` is removed.** `GET /conversations/:id` no longer sends it.
931
+ - `requestSpeechClip`'s `conversationId` + `messageId` now file the clip under that conversation,
932
+ so deleting or clearing the conversation deletes it. The route still answers 404 for a message
933
+ the person does not hold, and `requestId` is present only when the clip was made by that request.
934
+
935
+ A voice call says "Listening…" only while something listens.
936
+
937
+ - **`useVoiceRoom` stays `connecting` until the recognizer has started** (`roomState` is
938
+ `'connected'` and `agentState` `'listening'` from the first session's start, not from
939
+ `connect()`), and a session that does not start within 8 s ends the call as
940
+ `recognizer-not-started`.
941
+ - **An `aborted` nobody asked for is a failure.** Chrome runs one microphone recognition per
942
+ browser and a new one aborts the live one, in any tab; the engines now report that as the
943
+ failure code `interrupted` (only the abort the caller asked for stays silent), and a call cut
944
+ off three times in a row ends as `recognizer-aborted` instead of restarting forever. The web
945
+ engine serializes its own sessions, so a page never aborts itself.
946
+ - **The call watches itself while it listens:** voice-level sound for 5 s with no word back ends
947
+ it as `recognizer-unresponsive`; five sessions in a row that end without listening end it with
948
+ their error's code; a microphone silent for 10 s raises **`warning` / `warningCode`**
949
+ (`no-audio-input`) without ending the call. Recognizer errors are logged as a structured
950
+ `console.warn`, never with the transcript.
951
+ - **`VoiceErrorCode` gains** `recognizer-not-started`, `recognizer-unresponsive`,
952
+ `recognizer-aborted` and `no-audio-input` (an app with its own translations adds them);
953
+ `VoiceControls` takes a `notice` it shows in place of "Listening…". Dictation reports an
954
+ interrupted session as `recognizer-aborted` too.
955
+
956
+ ## 13.1.1
957
+
958
+ - **The avatar flights load the runtime too.** 13.1.0 mounted the character runtime provider inside
959
+ the chat, but the sheet's avatar-flight layer (the avatar that flies from the welcome into the
960
+ header) is drawn outside it, so it asked the host for its own `/bloom-character/runtime.mjs` and got
961
+ the app's HTML back ("Expected a JavaScript-or-Wasm module script but the server responded with
962
+ a MIME type of text/html"). `AliaChatSheet` and `AliaChatScreen` now wrap everything they draw in the
963
+ provider, once; `AliaChatContent` no longer mounts one (it is not an entry point on its own).
964
+
965
+ ## 13.2.0
966
+
967
+ One composer for the sheet, the screen and the Alia app: the app's composer moved here and the
968
+ app consumes it.
969
+
970
+ - **`AliaComposer`** (exported) is Bloom's `ComposerPanel` plus what every Alia surface needs the
971
+ same way: files by paste and drop (read with real progress, retried, refused with a sentence),
972
+ dictation, the suggestions over the field and the questions Alia asked, docked above it. What
973
+ differs per surface is a prop: `addMenu` / `onAddMenuSelect`, `modes` / `mode` /
974
+ `onModeChange` (a power-level selector), `attachments` / `onAddAttachment` /
975
+ `onRemoveAttachment` (a composer given no `onAddAttachment` takes no paste or drop),
976
+ `attachmentKinds` (`['image']` refuses a document with a sentence), `suggestions`, `questions`,
977
+ `status`, `emptyAction`, `accessory`, `onKeyPress`, `speechLanguage`, `labels`, `onError`.
978
+ `AliaChatContent` (so the sheet and the screen) renders it with photos, voice and suggestions;
979
+ a host gets today's behaviour with no setup.
980
+ - **The sheet's composer is the panel, not the pill.** The pill has no mode selector, status tab
981
+ or question slot, which the Alia app needs; the sheet and the app now draw the same card. The
982
+ agent-working light (`ComposerLoader`) is not drawn around it, as in the app: a turn in flight
983
+ is its stop control and the thread's thinking line.
984
+ - **Photos are `AliaAttachment`s** (exported type): the chat's picked photos wait as the same
985
+ tiles a dropped or pasted image becomes, with the same remove and error states.
986
+ - **`AliaChatLabels` gains** `composerMessage`, `composerAddMenu`, `composerModes`,
987
+ `composerVoice`, `composerSend`, `composerStop`, `composerRemove`, `composerRetry`,
988
+ `composerUntitled`, `fileReadFailed`, `fileTooLarge`, `fileEmpty`, `fileUnsupported`,
989
+ `dropHint`, `dropUnavailable` and `voiceError(code)`, all with English defaults. A nested
990
+ `AliaChatLabelsProvider` now refines the labels already in reach instead of resetting them.
991
+ - **`usePendingQuestions(messages, isStreaming)`** (exported) is the "asked above the composer,
992
+ put away until she asks again" rule both the chat and the app used to keep a copy of.
993
+ - **`classifyIntake` / `MAX_ATTACHMENT_BYTES`** (from `@alia.onl/sdk/tools`) are the rules a file
994
+ passes to be attached.
995
+ - **The sheet focuses its composer once it has presented.** `AliaChatSheet` hands each sheet's
996
+ `animatedProgress` (Bloom's own "fully presented" signal, no timer) to its chat, whose composer
997
+ takes focus when it reads `1`: the person can type at once and the keyboard opens on native. It
998
+ focuses once per `present()` for the main sheet and for the conversation sheet over it; dragging
999
+ a sheet part-way and letting go does not take the focus again. `AliaChatContent` takes
1000
+ `presentedProgress` for a host that builds its own sheet; the screen and the app's own screens
1001
+ pass none and keep their focus. Not verified on a device.
1002
+
1003
+ A voice call that cannot speak ends and says why, instead of listening on in silence:
1004
+
1005
+ - **`requestSpeechClip` throws a `SpeechClipError`** (exported) with the route's HTTP `status`,
1006
+ its typed `code` (`SPEECH_UNAVAILABLE`, `SPEECH_LIMIT_REACHED`, `SPEECH_REJECTED`,
1007
+ `SPEECH_PROVIDER_FAILED`, `SPEECH_GENERATION_FAILED`, `INVALID_REQUEST`, `NOT_AUTHENTICATED`, or
1008
+ `null`), `retryable` and `requestId`. An empty token is `NOT_AUTHENTICATED` without a request.
1009
+ - **`useVoiceRoom` ends the call when a clip cannot be made or played**, after the answer has
1010
+ finished streaming into the transcript, with `errorCode` `synthesis-unavailable`,
1011
+ `synthesis-limited`, `synthesis-rejected`, `synthesis-failed`, `not-authenticated` (no session
1012
+ token) or `not-played`; `synthesisError` is the `SpeechClipError` behind it. A turn no longer
1013
+ skips a sentence it could not speak, and `turnErrorCode` is no longer `not-played`.
1014
+ - `VoiceErrorCode` gains the four `synthesis-*` codes; an app that translates every code needs
1015
+ their sentences.
1016
+
1017
+ ## 13.1.0
1018
+
1019
+ The chat works in any app without host setup it did not document in code:
1020
+
1021
+ - **The avatar loads.** The chat mounts Bloom's `AgentAvatarProvider` itself, pointing at Alia's
1022
+ shared runtime (`ALIA_CHARACTER_RUNTIME_URL`, served with CORS open); a host that serves its own
1023
+ passes `characterRuntimeUrl`. Before, an app that had not hosted the 214 MB runtime showed
1024
+ Bloom's "unavailable" state.
1025
+ - **The empty chat greets.** With no `welcomeGreeting` it greets the signed-in person by name
1026
+ (`labels.greeting` / `labels.greetingNamed`). Before, it drew nothing.
1027
+
1028
+ ## 13.0.0
1029
+
1030
+ Fixes found by driving the sheet end to end (the sheet shows plans, links citations, nests lists):
1031
+
1032
+ - **A plan is drawn.** `plan_preview` was parsed but the sheet passed no handlers, so the card
1033
+ never showed. `useAliaChat` now returns `approvePlan` / `rejectPlan` (approve collapses the
1034
+ card to "approved"; reject collapses it and stops the turn) and `AliaChatContent` uses them
1035
+ unless the host passes its own.
1036
+ - **Citations link.** `[n]` markers in a reply link to their sources (`linkifyCitations`,
1037
+ `normalizeCitationMarkers`, `citationLabel` are exported from `@alia.onl/sdk/tools`; the app
1038
+ re-exports them instead of keeping a copy).
1039
+ - **Nested lists** draw under their parent instead of inline beside it.
1040
+ - A finished research step reads "Researched", not "Researching".
1041
+ - A turn that ends at a question card with no sentence before it counts as answered.
1042
+
1043
+ - **BREAKING: an agent is drawn with the look the server stores for it.** `agentCharacter(id)` (a
1044
+ look hashed from the id) is removed; `readAgentCharacter(value)` parses a stored character
1045
+ (Bloom's `parseAvatarCharacter`) and falls back on `DEFAULT_AGENT_CHARACTER`. The `alia.agent`
1046
+ event carries `agentCharacter`, and `agentInfo` has `character`. `AliaChatAgent` has `character`;
1047
+ `AliaChatSheet` / `AliaChatScreen` take `agents` (the host's directory) so a delegation's
1048
+ thinking avatar is the agent's own before its answer arrives. Needs a server that sends
1049
+ `agentCharacter`; release this SDK first, since the stream parser rejects unknown keys.
1050
+ - **The one who answers thinks with its own avatar, and it is the same avatar that settles under
1051
+ the reply** (Bloom's `AgentReplyIdentity`, as in the multi-agent chat). While Alia works, her
1052
+ avatar is the indicator, large with "Thinking…", where the `AgentThinking` line was; when her
1053
+ text starts it shrinks under it with her name. A call to an agent (`delegateToAgent` /
1054
+ `askAgent`, its `agentId` and `agentName` or `agent` arguments) opens the agent's message at
1055
+ once, empty and thinking, and its answer fills that same message, so the avatar never remounts;
1056
+ an agent that never answers leaves no message. Alia's reply now carries her identity row, as the
1057
+ agents' do.
1058
+ The reasoning is part of that same component (`AgentReplyIdentity`'s `reasoning`): while the
1059
+ turn thinks, "Thinking… ⌃" folds it under the avatar's row, and once the reply starts it is the
1060
+ closed "Thought for N seconds" block above it (`ThinkingBlock` draws nothing while it streams, so
1061
+ there is one thinking indicator, not two).
1062
+ - **No jumps of height, and no flash of the wrong thinker.** A reply, a new row, the reasoning and
1063
+ a thinking agent's avatar open and close with their height eased (Bloom's `Collapsible`, now
1064
+ with `appear`) instead of popping. Alia is shown thinking only once she has for a moment, so a
1065
+ turn she hands to an agent at once shows the agent thinking, not Alia for an instant first.
1066
+ - **Bubbles are equal on every side as the eye reads them.** An agent's bubble sets its top and
1067
+ bottom padding from the reply's text metrics (`AgentReplyBubble`'s `text`, 16 on 28 here), so
1068
+ the gap from the edge to the text is the same above, below and at the sides. Nothing is cut:
1069
+ an open `Collapsible` no longer clips.
1070
+ - **The greeting's avatar flies up into the header's profile** as the conversation begins
1071
+ (Bloom's `avatar-flight`: `useAvatarFlights`, `AvatarAnchor`, `AvatarFlightLayer`), across the
1072
+ main and conversation sheets. `AgentProfile`'s new `avatarHidden` keeps the header's avatar
1073
+ waiting for it. Needs a Bloom with `avatar-flight` (after 10.3).
1074
+ - **`AliaChatSheet` opens the conversation in a second sheet stacked over the main one.** The
1075
+ main sheet stays on the greeting, the suggestions and the composer; the first turn (typed or a
1076
+ suggestion) opens a fresh conversation sheet on top, whose back button (and the menu's Clear)
1077
+ closes just that sheet, back to the main screen. A phone gets sheets flush with the screen
1078
+ edges, with the composer clearing the home indicator; from tablet width (768 px) they float.
1079
+ `AliaChatContent` gains `onStart` (hand an empty chat's first turn to the host) and
1080
+ `initialTurn` (a turn sent once on mount).
1081
+ - **The empty chat looks and behaves like the Alia app's, from the same code.** The avatar sits
1082
+ beside the greeting (`AliaWelcomeMessage`, now just the greeting: always side by side, no
1083
+ `hideMark`, no suggestions) and the header shows Alia's profile only once there is a
1084
+ conversation. The suggestions are one-line rows **over the composer** (`ComposerSuggestions`),
1085
+ and from two typed characters they become matches with the typed part highlighted, arrows /
1086
+ Enter / Escape through the composer's `onKeyPress`. The app now draws its greeting and its
1087
+ suggestions with these same components and only supplies its API's data.
1088
+ - **Several agents in one turn.** A delegated agent's answer (`alia.agent`) is now its own
1089
+ message with its name and avatar, placed before Alia's reply as the app places it, so a turn
1090
+ with Lumi, Atlas and Sol shows three speakers. Before, every answer was merged into one message
1091
+ under the last agent's name. Alia's reply is dropped when she said nothing after handing over.
1092
+ - **A delegated agent shows its 3D avatar.** The speaker line of an agent's message is Bloom's
1093
+ `AgentAvatar`, not an image (an agent's account has none): the character comes from the agent's
1094
+ id (`agentCharacter(id)`, exported), so the same agent looks the same everywhere and two agents
1095
+ in a turn are told apart. The app draws its agents' messages with the same avatar.
1096
+ - **Agents are bubbles, and the header holds the team.** As in Bloom's multi-agent chat, a
1097
+ delegated agent's reply is a tinted bubble with its avatar and name beneath it. Once agents have
1098
+ answered, the header profile stacks Alia with up to two of them and names them together
1099
+ ("Alia + Lumi + Atlas"). `headerLeading` / `actions` receive `agents` in their state
1100
+ (`AliaChatState`, `AliaChatAgent`), and `AliaChatHeader` takes `agents`.
1101
+ - **The row under every reply is Bloom's multi-agent one**: helpful, unhelpful and copy as 22px
1102
+ tiles with 12px icons (read aloud is a fourth tile where the host reads), replacing the
1103
+ `AiChatFeedbackRow`. New label keys `helpful` and `unhelpful`.
1104
+ - **Built on Bloom's `agent-reply`** (peer `@oxy.so/bloom ^10.1.1`): replies, their identity line and
1105
+ action tiles, and the header profile are Bloom's `AgentReply`, `AgentReplyBubble`,
1106
+ `AgentReplyIdentity`, `AgentReplyActions` and `AgentProfile`, the pieces `MultiAgentChat` is made
1107
+ of, not copies. Pressing the profile makes every avatar in it wave.
1108
+ - **Questions are asked above the composer, not in the thread.** What Alia asks in her last turn
1109
+ (`askUserQuestion`) docks above the composer as Bloom's `Questionnaire`, with a dismiss; typing a
1110
+ reply answers just as well. The thread keeps the questions as plain lines (`AskedQuestions`).
1111
+ **Breaking:** `QuestionCard` is now the docked questionnaire (`onSubmit` required, new
1112
+ `onDismiss`) and no longer draws a read-only variant; the `onAnswerQuestions` prop of the message
1113
+ list is gone. `pendingQuestions` joins `@alia.onl/sdk/tools`.
1114
+ - **The voice bar is Bloom's voice controls.** `VoiceControls` draws Bloom's `@oxy.so/bloom/voice`
1115
+ `VoiceControls` (microphone and end) under the status text, instead of `CallControls`, which is
1116
+ made for a dark call stage and lost its captions on the chat's light surface.
1117
+ - **The header is back, the profile, share and a menu.** Bloom's `PageHeader` with a back button at
1118
+ its start, and at its end share and a three-dots menu (Bloom's `DropdownMenu`, aligned to its
1119
+ button) holding Clear and the host's rows. Over the empty chat there is no bar: nothing to do
1120
+ there. In the sheet, back returns to the main screen (a fresh chat) and the sheet stays open.
1121
+ **Breaking:** `AliaChatHeader` / `AliaChatSheet` / `AliaChatScreen` lose `onClose`; they take
1122
+ `onBack` (screen), `onShare` and `headerMenu`; the labels `close` becomes `back`, `share`,
1123
+ `more`.
1124
+ - **The chat follows Bloom's theme, not the system's scheme.** `AliaMarkdown` and the sheet read
1125
+ the app's resolved mode: a person who chose light on a dark OS got white text on a light surface.
1126
+ - **Every icon is Bloom's.** The voice button is `RiVolumeUpLine` (it was Entypo); the app's clock,
1127
+ robot and connector glyphs are `RiTimeLine`, `RiRobot2Line`, `RiPlugLine` and the SVG generator
1128
+ is gone; `@expo/vector-icons` is no longer a peer of the SDK.
1129
+ - **Greeting.** The avatar (88px) above the text, both centred; `max-w-xs`, so it always sets in two lines; more room above than below. The Alia app draws the same.
1130
+ - Peer `@oxy.so/bloom ^10.2.1` (scrollbar, pill groups, header scrim, voice controls).
1131
+ - **Breaking:** `WelcomeSuggestion { id, title, description }` becomes `AliaSuggestion { id, text }`
1132
+ (`text` is what is shown and what is sent). New optional props on the sheet, screen and content:
1133
+ `suggestionMatches` and `onSuggestionQuery(query)`, so a host can search as the person types.
1134
+ New exports: `ComposerSuggestions`, `useComposerSuggestions`, `useSuggestionQuery`,
1135
+ `composerCompletions`, `Completion`, `AliaSuggestion`.
1136
+
1137
+ ## 12.0.0
1138
+
1139
+ Breaking: Bloom 10 peer; the `header` render prop replaces the breadcrumb path (`title`, `actions`)
1140
+ and the mark-state context. Hosts on Bloom 9 stay on 11.1.0.
1141
+
1142
+ - **The `@oxy.so` peers are open-ended** above their floors (`bloom >=10.0.0`, `core >=3.0.0`,
1143
+ `services >=8.0.0`). The `^10.0.0`, `^4.0.0` and `^11.0.0` caps made each new Oxy major a peer
1144
+ conflict in every app until this package republished; apps always run the latest Oxy SDK.
1145
+
1146
+ - **`AmbientField` takes `layout="sheet"`** for a short card (the chat's sheet): the blobs are
1147
+ drawn at the size of a phone screen, spread wider and shifted back to the right, cropped by the
1148
+ card's edges. It is asked for, not inferred from the field's height, so a short app screen is
1149
+ never reinterpreted. `AmbientField`, `AliaAvatar` and `AliaChatHeader` are memoised and the
1150
+ chat body no longer repaints them on every streamed token; read-aloud and starting a call no
1151
+ longer change identity per flush. `AliaAvatar` takes `portrait` (a still thumbnail, used for
1152
+ the sidebar's permanent mark).
1153
+ - **One `header` render prop** on `AliaChatContent`, handed `hasMessages`, `clear` and the live
1154
+ avatar `markState`; the breadcrumb path (`title`, `actions`) and the mark-state context are gone.
1155
+ - The profile and the screen's background are NativeWind classes with Bloom tokens
1156
+ (`bg-background-full`, `group-hover/profile:…`), not JS-computed colours.
1157
+ - **Bloom is a peer at `^10.0.0`** (was `^9.0.0`). Bloom 10 makes an avatar one flat
1158
+ `AvatarCharacter`; `AliaAvatar` is `{ preset: 'blue_beret', accessory: 'none', color: 'orchid' }`
1159
+ and no longer builds a `config`. Hosts mount `AgentAvatarProvider` as before. Hosts on Bloom 9
1160
+ stay on the previous release.
1161
+
1162
+ ## 11.1.0
1163
+
1164
+ Alia can ask clarifying questions, as ChatGPT and Claude do.
1165
+
1166
+ - **New:** `QuestionCard` (Bloom's `Questionnaire`: single or multiple choice, a free-text
1167
+ "Other", one question per step), drawn under a reply that asked. `AliaChatMessageList`
1168
+ renders it from the turn's `askUserQuestion` tool call; `AliaChatContent` sends the
1169
+ answers as the person's next message (`onAnswerQuestions` on the list, for hosts that
1170
+ compose their own).
1171
+ - **New, pure** (root entry and `@alia.onl/sdk/tools`): `askedQuestions`, `formatAnswers`,
1172
+ `isQuestionInvocation`, `ASK_USER_QUESTION_TOOL`. The question is the stored tool call, so
1173
+ it survives a reload; it is answered once any later message exists, typed or picked.
1174
+ - The turn **ends** at the card: the server stops after the call and writes no answer under it.
1175
+
1176
+ ## 11.0.0
1177
+
1178
+ The chat UI is Bloom's, not a copy of it. Breaking:
1179
+
1180
+ - **Bloom is a peer dependency** (`@oxy.so/bloom ^9.0.0`; with `@oxy.so/services`
1181
+ 11.2.0-oxy-one.5 and `@oxy.so/core` 4.5.0-oxy-one.1 it is the newest set that
1182
+ satisfies every peer range). The host must mount `BloomProvider`.
1183
+ - **Alia's avatar is Bloom's 3D character.** The host mounts `AgentAvatarProvider`
1184
+ with the URL of the hosted `character-runtime` (see the README). New:
1185
+ `AliaAvatar`. `IdentityMark` stays only for an agent's likeness.
1186
+ - **Removed exports:** `Button`, `buttonVariants`, `buttonTextVariants`, `Text`,
1187
+ `TextClassContext` (use `@oxy.so/bloom/button` and `typography`), and
1188
+ `ThinkingIndicator` (`AgentThinking`) and `Reasoning`, `ReasoningTrigger`,
1189
+ `ReasoningContent` (the reasoning block is `AgentThinking` with children). `zeego`, `class-variance-authority` and
1190
+ both `@radix-ui` packages are no longer dependencies.
1191
+ - **Composer:** Bloom's `ComposerPill` with a Photos entry in its add menu; the picked photos are its own `attachments`, not a strip mounted above it. Photos are
1192
+ now actually sent, as `image_url` parts: `useAliaChat().send(text, { images })`
1193
+ (the old composer collected attachments and never sent them). The autocomplete
1194
+ props (`useSuggestions`, `onSuggestionUsed`) are gone; nobody passed them.
1195
+ - **Sheet:** `AliaChatSheet` is Bloom's `BottomSheet`, detached, radius 40. The
1196
+ header is Bloom's `PageHeader` (avatar over a name capsule; press it for a wave).
1197
+ `AliaChatScreen` uses the same header; `headerLeft` and `headerRight` still work.
1198
+ - **Chat parts:** the thread uses `AiChatUserMessage` and `AiChatFeedbackRow`, replies
1199
+ render code through Bloom's `CodeBlock`, research through `WebSearch`, and
1200
+ reasoning through `AgentThinking`. The welcome is the app's: the greeting at
1201
+ display size and the suggestions as compact rows.
1202
+ - **Voice controls:** `VoiceControls` is Bloom's `CallControls`; its `primaryColor` prop
1203
+ is gone (Bloom paints from the theme). The plan card is `Card`, `Item` and `Button`;
1204
+ editing a message uses Bloom's `Textarea`; the agent line shows a Bloom `Avatar`.
1205
+ Colours come from Bloom's theme and tokens, not hard-coded values or the host's
1206
+ shadcn classes. `lucide-react-native` and `expo-blur` are no longer used here.
1207
+ - **The turn's work is drawn as the app draws it.** Tool calls are Bloom's `TaskList` and
1208
+ `WebSearch`, driven by `revealed` from the calls that have really arrived, through one
1209
+ shared mapping: `webSearchLog`, `taskListLog` and `isWebInvocation` (root entry), and the
1210
+ pure `@alia.onl/sdk/tools` entry (`toolCallStatus`, `extractCitationSources`,
1211
+ `getToolDoneLabel`, `getToolPillLabel`), which the app now imports instead of keeping
1212
+ copies. `ResearchProgressCard` and the `onToolResultPress` prop are gone: research is a
1213
+ step of the `WebSearch` trail, and a tool row is not a button. The words of the log are
1214
+ English unless the host passes `labels.workLog` (a translator keyed like the app's).
1215
+ - **One animated background.** The ambient gradient (three blurred, drifting colour fields
1216
+ that answer the live audio level) is the app's `AmbientField`, now exported by the SDK
1217
+ with `PARALLAX_DURATION` and `PARALLAX_EASE`; the chat draws it as its container's
1218
+ background and the app imports it from here. `VoiceOverlay`, `AudioWaveVisualizer` and the
1219
+ `primaryColor` props that fed them are gone.
1220
+ - **Errors:** a failed voice call or dictation goes to `onError` when the host gives one and
1221
+ to Bloom's `toast` otherwise (the host needs a `ToastOutlet`; `OxyProvider` mounts one). A
1222
+ voice session reports why it ended: `onEnd(error?)`.
1223
+ - **Thread:** the messages are a Bloom `AiChatThread` inside `AiChatContainer` with
1224
+ floating chrome, so the conversation scrolls behind the header and the composer with
1225
+ Bloom's edge fades. The `scrollOffsetY` plumbing is gone.
1226
+ - **New:** `labels` on `AliaChatSheet` and `AliaChatScreen` to translate the chat's
1227
+ own copy; `AliaChatLabels` and `DEFAULT_LABELS` are exported.
1228
+
1229
+ ## 10.1.1
1230
+
1231
+ `ChatTextInput` no longer passes `placeholderClassName`. No styling runtime ever
1232
+ read it (react-native-css maps only `className` on `TextInput`, and the
1233
+ placeholder colour comes from the `placeholder:text-muted-foreground` class), and
1234
+ react-native-css 3.1.0-rc.0, the compiler Bloom 7.28+ requires, dropped the type
1235
+ declaration that let it compile, so apps that type-check this package's source
1236
+ failed on it. Nothing renders differently.
1237
+
1238
+ ## 10.1.0
1239
+
1240
+ A failed turn is a typed error. Alia now answers an inference failure before any
1241
+ output with its error envelope (an in-stream error frame, or an HTTP 503/500)
1242
+ instead of an "all models are busy" answer. `AliaChatStreamError` (now exported,
1243
+ with `AliaChatFailure`) carries `status`, `code`, `retryable`, `retryAfter` and
1244
+ `reference` from either. The stream reader also accepts `alia.context` and
1245
+ `alia.agent_turn`, which it used to reject as unknown events, ending a streaming
1246
+ turn before its answer or its error could be read.
1247
+
1248
+ ## 10.0.4
1249
+
1250
+ Admit `@oxy.so/services` 11 and `@oxy.so/core` 4 alongside the earlier majors.
1251
+ Services 11 / core 4 move Android identity to Commons over signature-protected
1252
+ IPC (OxyHQ/oxy#1388); the SDK imports only `useOxy` from
1253
+ `@oxy.so/services/ui/client`, unchanged, and nothing from core. No code changed.
1254
+
1255
+ ## 10.0.3
1256
+
1257
+ Admit `@oxy.so/services` 10 alongside 8 and 9. The SDK uses the unchanged
1258
+ `useOxy` client API; this peer-only patch supports apps upgrading to Bloom 6.
1259
+
1260
+ ## 10.0.2
1261
+
1262
+ ### Oxy through `@oxy.so/services/ui/client`
1263
+
1264
+ `useAliaChat`, `useTTS` and `useVoiceRoom` import `useOxy` from
1265
+ `@oxy.so/services/ui/client` instead of the root barrel. The root re-exports
1266
+ every sign-in panel and the Commons QR encoder, and Metro does not tree-shake,
1267
+ so a consumer of either entry shipped all of them; in Mention they reached the
1268
+ initial web bundle. `ui/client` exports the same `useOxy` in services 8 and 9,
1269
+ so the peer range is unchanged. `check:entries` now fails if either entry
1270
+ imports the root again.
1271
+
1272
+ ## 10.0.1
1273
+
1274
+ ### `@oxy.so/services` 9 is admitted
1275
+
1276
+ The `@oxy.so/services` peer is now `^8.0.0 || ^9.0.0`. Services 9.0.0 changes
1277
+ only its Bloom peer (to Bloom 5); the one thing this package takes from it,
1278
+ `useOxy`, is the same in both, so an app can move to Bloom 5 without this
1279
+ package refusing the services it needs. No code changed.
1280
+
1281
+ ## 10.0.0
1282
+
1283
+ ### Peers: `@oxy.so/core` `^3.0.0`, `@oxy.so/services` `^8.0.0`
1284
+
1285
+ **Breaking.** Core 3 is the namespaced Oxy client (`oxyServices.session`,
1286
+ `oxyServices.users`, …): the SDK now reads the session token as
1287
+ `oxyServices.session.accessToken` instead of `getAccessToken()` /
1288
+ `httpService`, so it runs only on a host with core 3 and services 8 — one app
1289
+ holds one Oxy SDK. Nothing in the SDK's own API changes.
1290
+
1291
+ ### `AliaMarkdown` builds its parser once
1292
+
1293
+ `react-native-markdown-display` evaluates its `markdownit`,
1294
+ `allowedImageHandlers` and `topLevelMaxExceededItem` defaults on every render,
1295
+ so each render of each block built a Markdown parser and rebuilt its renderer
1296
+ and styles. `AliaMarkdown` now passes one shared parser and those defaults'
1297
+ own values, created once. Output is unchanged; a 1,000-message thread holds
1298
+ 7 MiB less heap in the app.
1299
+
1300
+ ### Voice errors have codes
1301
+
1302
+ Additive. `useSpeechToText` returns `errorCode` beside `error`, and
1303
+ `useVoiceRoom` returns `errorCode` and `turnErrorCode` beside `error` and
1304
+ `turnError`: a `VoiceErrorCode` (exported from both entries with
1305
+ `VOICE_ERROR_MESSAGES`, the English copy) so an app can say what went wrong in
1306
+ its own language. The English strings are unchanged.
1307
+
1308
+ `VoiceControls` takes `labels` (defaults in `VOICE_CONTROLS_LABELS`) for every
1309
+ word it shows, and its mute and end buttons are named buttons for screen
1310
+ readers, mute as a toggle.
1311
+
1312
+ `useSpeechToText` unmounted mid-dictation now also clears `useSTTStore`. It used
1313
+ to abort the recognizer but leave the store reading `isRecording: true`, which
1314
+ `useAmbientWave` then drew as dictation for as long as the page lived.
1315
+
1316
+ ## 9.0.0
1317
+
1318
+ ### The full-screen chat clears the gesture bar and the keyboard
1319
+
1320
+ `AliaChatScreen` padded only the top safe-area inset, so on edge-to-edge
1321
+ Android its composer sat under the gesture bar (OxyHQ/Mention#1140). It now pads
1322
+ the bottom inset too, and wraps the chat in a keyboard-avoiding view that
1323
+ measures its own position in the window (keyboard-controller's
1324
+ `automaticOffset`): the composer rises onto the keyboard, and because that view
1325
+ already ends above the inset, the inset is not added on top of the keyboard. The
1326
+ avoiding view `PromptInput` carries measured its parent-relative layout and so
1327
+ never lifted inside the screen. The web `KeyboardAvoidingView` accepts and
1328
+ ignores `automaticOffset`. Also released for 7.x as 7.2.9.
1329
+
1330
+ ### Real models, and no model identifier in the package
1331
+
1332
+ Alia has no models of its own: `GET /catalogue` now lists the real models Oxy
1333
+ serves (`publisher/model`), with the server's `defaultModelId` and
1334
+ `featuredIds`. The SDK follows it, and the product modes and routing profiles
1335
+ (`mode:*`, `route:*`) are gone from it.
1336
+
1337
+ **Breaking:**
1338
+
1339
+ - `PREFERRED_CHAT_MODEL_ID` and `PREFERRED_VOICE_MODEL_ID` are removed. With no
1340
+ `model`, `useAliaChat`, the voice turn sender, `useTTS` and `useVoiceRoom` send
1341
+ no `model` and the server's default (chat or speech) answers.
1342
+ - `parseCatalogue` and `fetchCatalogue` return a `Catalogue`
1343
+ (`{ entries, defaultModelId, featuredIds }`), and `CatalogueEntry` is the new
1344
+ model shape (`name`, `publisher`, `contextWindow`, `reasoningEfforts`,
1345
+ `pricing`, …). `CatalogueEntryKind` is removed.
1346
+ - `resolveSelection(requestedId, catalogue)` and `resolveModelId(apiUrl,
1347
+ requestedId?)` take no preferred id; an identifier the catalogue no longer
1348
+ lists resolves to `undefined` (omit `model`) instead of a substitute.
1349
+ - The `alia.model_switch` stream event is no longer accepted; the server no
1350
+ longer sends it.
1351
+
1352
+ **Added:** `AliaMarkdown` takes `renderCodeBlock` to draw fenced code with the
1353
+ host's own code card (the Alia app passes Bloom's `CodeBlock`).
1354
+
1355
+ ### The consumer-backend path is documented
1356
+
1357
+ Documentation only; no code, wire or default changed, and no version is cut for
1358
+ it.
1359
+
1360
+ The package now has a README. It says which endpoint `useAliaChat` calls and
1361
+ why it is `/v1/chat/completions` rather than `/alia/chat`: this package ships
1362
+ raw source and compiles into apps on origins Alia does not enumerate, and
1363
+ `/alia/chat` answers CORS preflights only for Alia's own origins. It then
1364
+ documents the path that works from any origin today — `useAliaChat({ apiUrl })`
1365
+ pointed at the consumer's own backend, which calls `POST /alia/chat`
1366
+ server-to-server, forwards the user's Oxy token, and streams the SSE body back
1367
+ unchanged — with a minimal relay. The `apiUrl` option's JSDoc says the same in
1368
+ short. Issue #244 records the two other shapes and why neither is available
1369
+ yet.
1370
+
1371
+ ## 8.0.0
1372
+
1373
+ ### Voice runs on the device
1374
+
1375
+ Dictation and voice calls work again. Both used Alia endpoints that called
1376
+ speech providers directly — `POST /v1/voice/transcribe` and a LiveKit room from
1377
+ `POST /v1/voice/token` — and both have been refusing since Alia's inference
1378
+ moved behind Oxy, which serves chat and speech synthesis but no transcription or
1379
+ realtime session. Those endpoints are removed from the API.
1380
+
1381
+ - **`useSpeechToText`** recognizes on the device (Web Speech API on web,
1382
+ `expo-speech-recognition` on iOS/Android). Its shape is unchanged —
1383
+ `startRecording`, `stopAndTranscribe`, `cancel`, the three states,
1384
+ `useSTTStore` metering — and it gains `lang` and `isSupported`.
1385
+ - **`useVoiceRoom`** is a turn loop: on-device listening with end-of-utterance
1386
+ detection, each utterance sent through the chat path (`sendTurn`, by default
1387
+ `createAliaVoiceTurnSender`, which posts `/v1/chat/completions` with
1388
+ `responseMode: 'voice'`), the answer spoken sentence by sentence through
1389
+ `/v1/audio/speech`, and barge-in. `connect`, `disconnect`, `roomState`,
1390
+ `agentState`, `messages`, `isMuted`, `toggleMute` and `error` keep their
1391
+ meaning; it adds `turnError` and the options `sendTurn`, `chatModel`, `lang`,
1392
+ `endOfUtteranceMs` and `bargeIn`.
1393
+ - The call asks `/v1/audio/speech` for the product voices `male` / `female`;
1394
+ it no longer sends upstream voice names.
1395
+
1396
+ **Breaking:**
1397
+
1398
+ - `livekit-client` is no longer a peer dependency; `expo-speech-recognition`
1399
+ is a new one (the root entry's dictation reaches it on native), and a native
1400
+ app needs a new build with its config plugin.
1401
+ - `useVoiceRoom().room` is a `VoiceLevelSource` (live capture and playback
1402
+ levels), not a LiveKit `Room`; `useAudioLevelMonitor` takes that.
1403
+ - `livekit-client` is gone from the package entirely; nothing in either entry
1404
+ reaches it (`check:entries` asserts that).
1405
+ - The cohost is removed. `useVoiceRoom` no longer returns `cohostActive`,
1406
+ `roundComplete`, `enableCohost`, `disableCohost` or `continueCohost`, and
1407
+ `currentSpeaker` is `'primary' | 'user' | null`. `VoiceControls` no longer
1408
+ takes `cohostActive`, `currentSpeaker`, `roundComplete`, `onEnableCohost`,
1409
+ `onDisableCohost` or `onContinueCohost`, and draws no cohost button or
1410
+ "Continue conversation" prompt. `ChatMessage.speaker` and
1411
+ `VoiceMessage.speaker` are `'primary'` only, and the message list draws no
1412
+ "Cohost" label.
1413
+ - `useSpeechToText` no longer takes `apiUrl` or `accessToken`; dictation never
1414
+ talks to the Alia API. Pass `lang` or nothing.
1415
+ - The pre-Bloom composer is no longer public. `PromptInput`,
1416
+ `PromptInputTextarea`, `PromptInputActions`, `PromptInputSubmitButton`,
1417
+ `PromptInputMicButton`, `PromptInputAddMenu`, `PromptInputAttachments`,
1418
+ `PromptInputAutocomplete`, `PromptInputContext`, `usePromptInput`,
1419
+ `useIsFullscreen`, `ChatTextInput` and the types `PromptInputProps`,
1420
+ `PromptInputContextType`, `Attachment` and `Completion` are removed from the
1421
+ root entry. `AliaChatScreen` / `AliaChatSheet` still draw their composer;
1422
+ build your own from the primitives if you composed one from these parts.
1423
+ - Dependencies trimmed: `@tanstack/react-query`,
1424
+ `@tanstack/react-query-persist-client` and
1425
+ `@tanstack/query-async-storage-persister` are no longer dependencies (no
1426
+ module imported them), and `socket.io-client` and `expo-font` are no longer
1427
+ peer dependencies (likewise unused). Keep them in your app if your app uses
1428
+ them itself.
1429
+
1430
+ **Server side, alongside this release:** the `alia_sk_*` developer keys are
1431
+ retired and refused by the Alia API. The SDK never used them — it sends the
1432
+ signed-in user's Oxy session — but a backend that relays the SDK's requests
1433
+ with such a key must forward the user's Oxy token instead (see the README).
1434
+
1435
+ ## 7.2.8
1436
+
1437
+ ### One Oxy runtime and a native-only notifications boundary
1438
+
1439
+ The Alia app now consumes the canonical `@oxy.so/*` packages throughout, so
1440
+ the provider and SDK hooks resolve the same Services context. Its notification
1441
+ setup also loads `expo-notifications` only after confirming a native platform;
1442
+ web no longer evaluates Expo's unsupported device push-token listener.
1443
+
1444
+ ## 7.2.7
1445
+
1446
+ ### Compatible Oxy 1.0 peers
1447
+
1448
+ The SDK now accepts the current `@oxy.so/core` and `@oxy.so/services` 1.x patch
1449
+ line from 1.0.1 onward. Applications therefore share one canonical Oxy runtime
1450
+ instead of installing duplicate 1.0.0 peer copies.
1451
+
1452
+ ## 7.1.1
1453
+
1454
+ ### A stream either answers or fails
1455
+
1456
+ Text chat now uses the linked Oxy client, so the session manager performs its
1457
+ preflight refresh and its one supported 401 retry. The SDK no longer copies a
1458
+ bearer token into a raw `fetch` call.
1459
+
1460
+ The response must be SSE and must satisfy the Alia/OpenAI stream contract: valid
1461
+ UTF-8 and JSON, typed product events, a finish chunk, a visible assistant answer,
1462
+ and terminal `[DONE]`. A malformed, truncated, empty or error stream is a failed
1463
+ turn and receives the existing visible retry message instead of becoming an
1464
+ empty successful assistant bubble.
1465
+
1466
+ Active text requests are cancelled when their component unmounts, when a sheet
1467
+ starts closing, when the user stops the turn, or when another send supersedes
1468
+ it. Parser failures cancel the response reader as well. The parser bounds total
1469
+ bytes, buffered frame size and line count so a broken stream cannot grow memory
1470
+ without limit.
1471
+
1472
+ The 7.1.0 sampled-audio behavior and the root/voice entry split are unchanged.
1473
+
1474
+ ## 7.1.0
1475
+
1476
+ ### The read-aloud field answers the audio
1477
+
1478
+ `useTTS` drove the ambient field from a four-keyframe loop keyed on "is it
1479
+ playing?" — the same animation for every clip, and for silence. It now reads the
1480
+ player's own samples through `setAudioSamplingEnabled`, and both sources of the
1481
+ field, dictation and playback, share one curve: `levelFromDbfs` in
1482
+ `src/lib/audio-level.ts`, the logarithmic -60 dBFS floor dictation already used.
1483
+ A linear reading of the same audio puts a normal speaking voice near the bottom
1484
+ of the range, which is why the two looked nothing alike.
1485
+
1486
+ Nothing in the public surface changed shape: the hook keeps its signature and
1487
+ its return type. What changed is what the field does while a message plays.
1488
+
1489
+ ## 7.0.0
1490
+
1491
+ ### `AliaMark` is now `IdentityMark`
1492
+
1493
+ **Breaking, and a rename with no alias behind it.** `AliaMark`,
1494
+ `AliaMarkProps` and `AliaMarkState` are gone; the exports are `IdentityMark`,
1495
+ `IdentityMarkProps` and `IdentityMarkState`. The artwork, the animation states,
1496
+ the props and the defaults are unchanged, so upgrading is the rename and
1497
+ nothing else.
1498
+
1499
+ The old name said the mark belonged to Alia. It does not: the same component
1500
+ draws every AGENT in Alia too, differing only in the colour it is handed, and
1501
+ an agent's Oxy account carries no avatar image at all — so this is the whole of
1502
+ an agent's likeness. A second component had been copied out of this one for
1503
+ that job, with the artwork duplicated and a tinted disc behind it. Two
1504
+ components drawing one thing is how they drift, and the disc was never wanted.
1505
+ Both are now this one, and where a face would otherwise go it is the SIZE that
1506
+ adapts, never a background.
1507
+
1508
+ ### The mark is only a button when you give it `onPress`
1509
+
1510
+ Without `onPress` it renders as a plain view rather than a `Pressable`. It had
1511
+ always mounted one, to carry a spin-and-haptics flourish on tap, and a
1512
+ `Pressable` captures the touch whether or not the caller wanted a control —
1513
+ which is what stops a row it sits inside from opening when you tap the face on
1514
+ it. Passing `onPress` keeps the flourish exactly as before.
1515
+
1516
+ ## 6.0.0
1517
+
1518
+ ### Licence: this package now has one, and it is Apache-2.0
1519
+
1520
+ **Every version up to and including `5.1.0` was published with no `license`
1521
+ field and no LICENSE file.** Under copyright law that is not permissive by
1522
+ default, it is all rights reserved: nobody who installed this package had
1523
+ permission to use, copy or modify it. At roughly ten thousand installs a week,
1524
+ that was the most consequential thing wrong with this package, and it had
1525
+ nothing to do with the code.
1526
+
1527
+ `6.0.0` is Apache-2.0. It ships a verbatim `LICENSE` and a `NOTICE`, and the
1528
+ manifest declares `"license": "Apache-2.0"`, so automated policy checks in
1529
+ consuming companies stop seeing an unlicensed dependency.
1530
+
1531
+ This is a pure widening: it grants rights where there were none. Nothing any
1532
+ existing user is doing becomes non-compliant, and no code, API surface or
1533
+ behaviour changed in this release.
1534
+
1535
+ Apache-2.0 rather than something else because this is a client SDK, the layer
1536
+ Oxy licenses permissively on purpose: it is a dependency you either can or
1537
+ cannot add, and one an engineer must be able to add without opening a legal
1538
+ ticket.
1539
+
1540
+ The version is bumped to a major rather than the field being slipped into a
1541
+ patch. A licence is part of what a package is, and the previous licence changes
1542
+ in this ecosystem went out inside patch releases, which is how consumers ended
1543
+ up on terms they never chose. Not repeating that is worth a major.
1544
+
1545
+ ## 5.1.0
1546
+
1547
+ ### Changed
1548
+
1549
+ - **The `@oxy.so/services` peer range now admits 24.x, 25.x and 26.x**
1550
+ (`^23.0.1 || ^24.0.0 || ^25.0.0 || ^26.0.0`). An app on `@oxy.so/services@26`
1551
+ previously got `warn: incorrect peer dependency` on every install, which reads
1552
+ as a broken integration and is the reason this range is stated rather than
1553
+ widened to `>=23.0.1`: each major in the union was audited, and a future one
1554
+ will be too before it is added.
1555
+
1556
+ Nothing in this package changed, because nothing needed to. The whole surface
1557
+ it consumes from `@oxy.so/services` is one import in four hooks — `useOxy`,
1558
+ then `oxyServices.httpService.getAccessToken()` — and every link in that chain
1559
+ is byte-identical across services 23.0.1 through 26.0.0 and the `@oxy.so/core`
1560
+ 13 through 17 those versions pull in. Services 24.0.0 and 25.0.0 were majors
1561
+ solely because they raised their own `@oxy.so/core` range; 26.0.0 is the
1562
+ RFC 6749 token endpoint, whose `HttpService` changes are confined to
1563
+ `URLSearchParams` request encoding and an `error_description` error field.
1564
+
1565
+ This is a compatibility declaration, not a deduplication fix. `@oxy.so/services`
1566
+ is a peer dependency here and always has been, so an unsatisfied range emitted
1567
+ a warning but never nested a second copy — verified on a clean install.
1568
+
1569
+ ## 5.0.0
1570
+
1571
+ ### Breaking
1572
+
1573
+ - **Voice is now an injected capability on `AliaChatScreen` and
1574
+ `AliaChatSheet`.** Pass `voiceSession={VoiceSession}` (from
1575
+ `@alia.onl/sdk/voice`) to offer voice calls; without it the chat is text-only
1576
+ and the microphone button is not rendered.
1577
+
1578
+ ```tsx
1579
+ import { AliaChatScreen } from '@alia.onl/sdk';
1580
+ import { VoiceSession } from '@alia.onl/sdk/voice';
1581
+
1582
+ <AliaChatScreen voiceSession={VoiceSession} />;
1583
+ ```
1584
+
1585
+ `voiceSession` may be a `React.lazy` component — the chat renders it inside
1586
+ its own `Suspense` boundary.
1587
+
1588
+ v4.0.0 moved the voice exports out of the root barrel so that text-chat
1589
+ consumers would stop compiling `livekit-client`, but `AliaChatContent` still
1590
+ imported `useVoiceRoom` and `useAudioLevelMonitor` directly from their
1591
+ modules, and `AliaChatScreen`/`AliaChatSheet` reach it. Since this package
1592
+ ships raw source, that put the whole LiveKit client (1,204,825 bytes raw,
1593
+ ~250 KiB gzip) back into every text-chat consumer's module graph. The split
1594
+ could not be made real while the shell owned voice, so it no longer does.
1595
+
1596
+ ### Added
1597
+
1598
+ - `VoiceSession` (`@alia.onl/sdk/voice`) — the LiveKit half of the chat as one
1599
+ component. It dials on mount, ends the call on unmount, renders
1600
+ `VoiceControls`, and reports room state, agent state, audio amplitude, and the
1601
+ transcript back to the chat shell.
1602
+ - `VoiceSessionComponent`, `VoiceSessionProps`, and `VoiceSessionState` types,
1603
+ exported from both entries.
1604
+
1605
+ ### Fixed
1606
+
1607
+ - An unexpected room drop now always ends voice mode. It previously required a
1608
+ non-empty pre-call transcript, so a dropped call in a fresh chat left the
1609
+ voice UI up with no room behind it.
1610
+
1611
+ ### Internal
1612
+
1613
+ - `bun run --filter @alia.onl/sdk check:entries` walks the real import graph and
1614
+ fails if the root entry can reach `livekit-client` (or if the voice entry
1615
+ cannot). Wired into CI alongside a new SDK typecheck step.
1616
+
1617
+ ## 4.1.0
1618
+
1619
+ ### Changed
1620
+
1621
+ - Every `lucide-react-native` import is now a per-icon subpath
1622
+ (`lucide-react-native/icons/<name>`) instead of the package barrel, and the
1623
+ dependency moved from `^0.562.0` to `^1.24.0` (the first line that exposes
1624
+ `./icons/*` in its `exports` map, with per-icon type declarations).
1625
+
1626
+ The barrel statically re-exports ~1750 icon modules and Metro does not
1627
+ tree-shake, so a single named import pulled roughly 1.2 MB of unused icon
1628
+ source into every consumer bundle. Measured with a real Metro build of the
1629
+ same eight icons: 1755 modules / 1 656 869 bytes via the barrel versus
1630
+ 16 modules / 18 312 bytes via subpaths.
1631
+
1632
+ - **Consumers must enable Metro's package-exports resolution.** Set
1633
+ `resolver.unstable_enablePackageExports = true` in `metro.config.js`. It is
1634
+ the default in Expo SDK 53+ and Metro 0.82+, so most projects already have
1635
+ it. Without it the bundle fails at build time with
1636
+ `Unable to resolve module lucide-react-native/icons/…` — a loud failure, not
1637
+ a silent runtime one.
1638
+
1639
+ The public API is unchanged: no icon is re-exported from `.` or `./voice`, and
1640
+ no exported component, hook, or type was added, removed, or renamed.
1641
+
1642
+ ## 4.0.1
1643
+
1644
+ - Expose `./package.json` in the `exports` map.
1645
+
1646
+ ## 4.0.0
1647
+
1648
+ ### Breaking
1649
+
1650
+ - The voice surface moved from the root entry to `@alia.onl/sdk/voice` so
1651
+ text-chat consumers no longer pull `livekit-client` through the export
1652
+ barrel. Update imports of `AudioWaveVisualizer`, `VoiceOverlay`,
1653
+ `VoiceControls`, `useVoiceRoom`, `useAudioLevelMonitor`, `useAudioLevels`,
1654
+ `useAmbientWave`, `useSoundEffects`, `useVoiceSoundEffects`, and the
1655
+ `RoomState` / `AgentState` / `VoiceMessage` / `VoiceToolInvocation` types.
1656
+
1657
+ Note that rendering `AliaChatScreen` or `AliaChatSheet` still reaches
1658
+ `livekit-client`: `AliaChatContent` imports `useVoiceRoom` and
1659
+ `useAudioLevelMonitor` directly. Only consumers composing the leaf
1660
+ primitives themselves avoid it.
1661
+ - An `exports` map was introduced, so deep imports into package internals no
1662
+ longer resolve. Only `.`, `./voice`, and `./package.json` are public.