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