@alia.onl/sdk 22.9.0 → 22.10.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 CHANGED
@@ -1,5 +1,12 @@
1
1
  # @alia.onl/sdk
2
2
 
3
+ ## 22.10.0
4
+
5
+ - The eager Ask provider and hook are available from `@alia.onl/sdk/ask/eager`, preserving
6
+ the root entry's eager sheet and voice behavior. `@alia.onl/sdk/voice/messages` exposes
7
+ voice error messages without importing the voice call. `@alia.onl/sdk/character` exposes
8
+ the character parser and default runtime URL, without importing the chat.
9
+
3
10
  ## 22.9.0
4
11
 
5
12
  - 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.
package/README.md CHANGED
@@ -159,9 +159,12 @@ one is the same conversation in the others.
159
159
  | The chat with the call (`AliaChatSheet`, `AliaChatScreen`, `AliaChatContent`) | `@alia.onl/sdk` | yes |
160
160
  | The same chat, text only | `@alia.onl/sdk/text` | no |
161
161
  | One "Ask" sheet at the app's root, loaded with the first `ask` | `@alia.onl/sdk/ask` | yes, in the sheet's chunk |
162
+ | The root's eager Ask provider and hook | `@alia.onl/sdk/ask/eager` | yes, loaded eagerly |
162
163
  | The same, text only | `@alia.onl/sdk/ask/text` | no |
163
164
  | Data only: conversations, the stream, the model | `@alia.onl/sdk/runtime`, `@alia.onl/sdk/model` | no |
164
165
  | Her face on a button | `@alia.onl/sdk/avatar` | no |
166
+ | Character parser and runtime URL | `@alia.onl/sdk/character` | no |
167
+ | Voice error messages without the call | `@alia.onl/sdk/voice/messages` | no |
165
168
 
166
169
  `voice={false}` hides the call, but the code still ships: the root entry and `@alia.onl/sdk/ask`
167
170
  bundle the call (its socket, protocol and audio engine) because their chat can open one. A
@@ -205,6 +208,9 @@ Mount it from `@alia.onl/sdk/ask`: that entry is the provider and its hook alone
205
208
  loads with the first `ask` (fetched in the background once the person is signed in), so the chat
206
209
  stays out of the app's entry bundle. The root entry exports the same two, with the whole chat
207
210
  (its provider imports the sheet statically).
211
+ For hosts that need that exact eager behavior without the root barrel, import the provider and
212
+ hook from `@alia.onl/sdk/ask/eager`. The character entry exports `readAgentCharacter`,
213
+ `DEFAULT_AGENT_CHARACTER` and `ALIA_CHARACTER_RUNTIME_URL` without the chat.
208
214
 
209
215
  **On web, load the chat through ONE async boundary.** Expo's Metro serializer hoists every module
210
216
  two async chunks share into `__common.js`, which loads at first paint. The SDK draws no async chunk
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@alia.onl/sdk",
3
- "version": "22.9.0",
3
+ "version": "22.10.0",
4
4
  "description": "Alia AI chat SDK — the conversation runtime, chat UI, voice calls and dictation for Oxy apps",
5
5
  "main": "src/index.ts",
6
6
  "react-native": "src/index.ts",
@@ -9,8 +9,10 @@
9
9
  "exports": {
10
10
  ".": "./src/index.ts",
11
11
  "./ask": "./src/ask.ts",
12
+ "./ask/eager": "./src/ask-eager.ts",
12
13
  "./ask/text": "./src/ask-text.ts",
13
14
  "./avatar": "./src/avatar.ts",
15
+ "./character": "./src/character.ts",
14
16
  "./content": "./src/lib/content-utils.ts",
15
17
  "./csp": "./src/csp.ts",
16
18
  "./dictation": "./src/dictation.ts",
@@ -19,6 +21,7 @@
19
21
  "./text": "./src/text.ts",
20
22
  "./tools": "./src/tools.ts",
21
23
  "./voice": "./src/voice.ts",
24
+ "./voice/messages": "./src/voice-messages.ts",
22
25
  "./package.json": "./package.json"
23
26
  },
24
27
  "files": [
@@ -0,0 +1,4 @@
1
+ /// <reference types="nativewind/types" />
2
+
3
+ export { AliaAskProvider, useAskAgent } from './components/AliaAskProvider';
4
+ export type { AliaAsk, AliaAskAgents, AliaAskProviderProps } from './components/AliaAskProvider';
@@ -0,0 +1,2 @@
1
+ export { ALIA_CHARACTER_RUNTIME_URL } from './lib/character-runtime';
2
+ export { DEFAULT_AGENT_CHARACTER, readAgentCharacter } from './lib/agent-character';
@@ -0,0 +1,2 @@
1
+ export { VOICE_ERROR_MESSAGES } from './lib/speech-messages';
2
+ export type { VoiceErrorCode } from './lib/speech-messages';