@alia.onl/sdk 10.0.0 → 10.0.2
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 +21 -0
- package/package.json +3 -3
- package/src/hooks/useAliaChat.ts +1 -1
- package/src/hooks/useTTS.ts +1 -1
- package/src/hooks/useVoiceRoom.ts +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,26 @@
|
|
|
1
1
|
# @alia.onl/sdk
|
|
2
2
|
|
|
3
|
+
## 10.0.2
|
|
4
|
+
|
|
5
|
+
### Oxy through `@oxy.so/services/ui/client`
|
|
6
|
+
|
|
7
|
+
`useAliaChat`, `useTTS` and `useVoiceRoom` import `useOxy` from
|
|
8
|
+
`@oxy.so/services/ui/client` instead of the root barrel. The root re-exports
|
|
9
|
+
every sign-in panel and the Commons QR encoder, and Metro does not tree-shake,
|
|
10
|
+
so a consumer of either entry shipped all of them; in Mention they reached the
|
|
11
|
+
initial web bundle. `ui/client` exports the same `useOxy` in services 8 and 9,
|
|
12
|
+
so the peer range is unchanged. `check:entries` now fails if either entry
|
|
13
|
+
imports the root again.
|
|
14
|
+
|
|
15
|
+
## 10.0.1
|
|
16
|
+
|
|
17
|
+
### `@oxy.so/services` 9 is admitted
|
|
18
|
+
|
|
19
|
+
The `@oxy.so/services` peer is now `^8.0.0 || ^9.0.0`. Services 9.0.0 changes
|
|
20
|
+
only its Bloom peer (to Bloom 5); the one thing this package takes from it,
|
|
21
|
+
`useOxy`, is the same in both, so an app can move to Bloom 5 without this
|
|
22
|
+
package refusing the services it needs. No code changed.
|
|
23
|
+
|
|
3
24
|
## 10.0.0
|
|
4
25
|
|
|
5
26
|
### Peers: `@oxy.so/core` `^3.0.0`, `@oxy.so/services` `^8.0.0`
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@alia.onl/sdk",
|
|
3
|
-
"version": "10.0.
|
|
4
|
-
"description": "Alia AI chat SDK
|
|
3
|
+
"version": "10.0.2",
|
|
4
|
+
"description": "Alia AI chat SDK \u2014 reusable chat UI, voice, and streaming components for Oxy apps",
|
|
5
5
|
"main": "src/index.ts",
|
|
6
6
|
"react-native": "src/index.ts",
|
|
7
7
|
"source": "src/index.ts",
|
|
@@ -43,7 +43,7 @@
|
|
|
43
43
|
"react": "^19.2.3",
|
|
44
44
|
"react-native": "^0.86.0",
|
|
45
45
|
"@oxy.so/core": "^3.0.0",
|
|
46
|
-
"@oxy.so/services": "^8.0.0",
|
|
46
|
+
"@oxy.so/services": "^8.0.0 || ^9.0.0",
|
|
47
47
|
"@react-native-async-storage/async-storage": "^2.2.0",
|
|
48
48
|
"expo-blur": "^57.0.0",
|
|
49
49
|
"react-native-reanimated": "^4.5.0",
|
package/src/hooks/useAliaChat.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import React, { useCallback, useEffect, useRef, useState } from 'react';
|
|
2
|
-
import { useOxy } from '@oxy.so/services';
|
|
2
|
+
import { useOxy } from '@oxy.so/services/ui/client';
|
|
3
3
|
import type { ChatMessage, ToolInvocation } from '../types';
|
|
4
4
|
import { getTextFromContent } from '../lib/content-utils';
|
|
5
5
|
import { resolveModelId } from '../lib/catalogue';
|
package/src/hooks/useTTS.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { useCallback, useEffect, useRef } from 'react';
|
|
2
2
|
import type { AudioPlayer, AudioSample, AudioStatus } from 'expo-audio';
|
|
3
3
|
import { makeMutable, withTiming } from 'react-native-reanimated';
|
|
4
|
-
import { useOxy } from '@oxy.so/services';
|
|
4
|
+
import { useOxy } from '@oxy.so/services/ui/client';
|
|
5
5
|
import { errorMessage } from '../lib/utils';
|
|
6
6
|
import { create } from 'zustand';
|
|
7
7
|
import { createAudioLevelMeter } from '../lib/audio-level';
|
|
@@ -28,7 +28,7 @@
|
|
|
28
28
|
*/
|
|
29
29
|
|
|
30
30
|
import { useState, useCallback, useRef, useEffect, useMemo } from 'react';
|
|
31
|
-
import { useOxy } from '@oxy.so/services';
|
|
31
|
+
import { useOxy } from '@oxy.so/services/ui/client';
|
|
32
32
|
import { errorMessage } from '../lib/utils';
|
|
33
33
|
import type { RoomState, AgentState, VoiceMessage } from '../types';
|
|
34
34
|
import {
|