@alia.onl/sdk 7.2.3 → 7.2.5
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
|
@@ -97,23 +97,23 @@ up on terms they never chose. Not repeating that is worth a major.
|
|
|
97
97
|
|
|
98
98
|
### Changed
|
|
99
99
|
|
|
100
|
-
- **The `@
|
|
101
|
-
(`^23.0.1 || ^24.0.0 || ^25.0.0 || ^26.0.0`). An app on `@
|
|
100
|
+
- **The `@oxy.so/services` peer range now admits 24.x, 25.x and 26.x**
|
|
101
|
+
(`^23.0.1 || ^24.0.0 || ^25.0.0 || ^26.0.0`). An app on `@oxy.so/services@26`
|
|
102
102
|
previously got `warn: incorrect peer dependency` on every install, which reads
|
|
103
103
|
as a broken integration and is the reason this range is stated rather than
|
|
104
104
|
widened to `>=23.0.1`: each major in the union was audited, and a future one
|
|
105
105
|
will be too before it is added.
|
|
106
106
|
|
|
107
107
|
Nothing in this package changed, because nothing needed to. The whole surface
|
|
108
|
-
it consumes from `@
|
|
108
|
+
it consumes from `@oxy.so/services` is one import in four hooks — `useOxy`,
|
|
109
109
|
then `oxyServices.httpService.getAccessToken()` — and every link in that chain
|
|
110
|
-
is byte-identical across services 23.0.1 through 26.0.0 and the `@
|
|
110
|
+
is byte-identical across services 23.0.1 through 26.0.0 and the `@oxy.so/core`
|
|
111
111
|
13 through 17 those versions pull in. Services 24.0.0 and 25.0.0 were majors
|
|
112
|
-
solely because they raised their own `@
|
|
112
|
+
solely because they raised their own `@oxy.so/core` range; 26.0.0 is the
|
|
113
113
|
RFC 6749 token endpoint, whose `HttpService` changes are confined to
|
|
114
114
|
`URLSearchParams` request encoding and an `error_description` error field.
|
|
115
115
|
|
|
116
|
-
This is a compatibility declaration, not a deduplication fix. `@
|
|
116
|
+
This is a compatibility declaration, not a deduplication fix. `@oxy.so/services`
|
|
117
117
|
is a peer dependency here and always has been, so an unsatisfied range emitted
|
|
118
118
|
a warning but never nested a second copy — verified on a clean install.
|
|
119
119
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@alia.onl/sdk",
|
|
3
|
-
"version": "7.2.
|
|
3
|
+
"version": "7.2.5",
|
|
4
4
|
"description": "Alia AI chat SDK — reusable chat UI, voice, and streaming components for Oxy apps",
|
|
5
5
|
"main": "src/index.ts",
|
|
6
6
|
"react-native": "src/index.ts",
|
|
@@ -45,8 +45,8 @@
|
|
|
45
45
|
"peerDependencies": {
|
|
46
46
|
"react": "^19.2.3",
|
|
47
47
|
"react-native": "^0.86.0",
|
|
48
|
-
"@
|
|
49
|
-
"@
|
|
48
|
+
"@oxy.so/core": "1.0.0",
|
|
49
|
+
"@oxy.so/services": "1.0.0",
|
|
50
50
|
"@react-native-async-storage/async-storage": "^2.2.0",
|
|
51
51
|
"socket.io-client": "^4.8.3",
|
|
52
52
|
"expo-font": "^57.0.0",
|
|
@@ -194,7 +194,7 @@ function createStyles(colors: AliaColors, fontFamily: string | undefined) {
|
|
|
194
194
|
//
|
|
195
195
|
// `fontFamily` therefore comes from the caller, which is the only party
|
|
196
196
|
// that both knows the family and is allowed to name it: this package has no
|
|
197
|
-
// `@
|
|
197
|
+
// `@oxy.so/bloom` dependency, and react-native-markdown-display takes RN
|
|
198
198
|
// style objects, so there is no className path to NativeWind's token.
|
|
199
199
|
body: { ...BODY_TEXT, color: textColor, fontFamily },
|
|
200
200
|
text: { ...BODY_TEXT, color: textColor, fontFamily },
|
|
@@ -257,7 +257,7 @@ export interface AliaMarkdownProps {
|
|
|
257
257
|
* Omitted, body text inherits: correct on web, where Bloom's
|
|
258
258
|
* `--bloom-font-sans` reaches it through the cascade. On native nothing is
|
|
259
259
|
* inherited (see `createStyles`), so a native caller that wants Bloom's face
|
|
260
|
-
* has to pass it — this package has no `@
|
|
260
|
+
* has to pass it — this package has no `@oxy.so/bloom` dependency and so
|
|
261
261
|
* cannot name it itself.
|
|
262
262
|
*/
|
|
263
263
|
fontFamily?: string;
|
package/src/hooks/useAliaChat.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import React, { useCallback, useEffect, useRef, useState } from 'react';
|
|
2
|
-
import { useOxy } from '@
|
|
2
|
+
import { useOxy } from '@oxy.so/services';
|
|
3
3
|
import type { ChatMessage, ToolInvocation } from '../types';
|
|
4
4
|
import { getTextFromContent } from '../lib/content-utils';
|
|
5
5
|
import { resolveModelId } from '../lib/catalogue';
|
|
@@ -7,7 +7,7 @@ import {
|
|
|
7
7
|
getRecordingPermissionsAsync,
|
|
8
8
|
setAudioModeAsync,
|
|
9
9
|
} from 'expo-audio';
|
|
10
|
-
import { useOxy } from '@
|
|
10
|
+
import { useOxy } from '@oxy.so/services';
|
|
11
11
|
import { create } from 'zustand';
|
|
12
12
|
import { levelFromDbfs } from '../lib/audio-level';
|
|
13
13
|
|
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 '@
|
|
4
|
+
import { useOxy } from '@oxy.so/services';
|
|
5
5
|
import { errorMessage } from '../lib/utils';
|
|
6
6
|
import { create } from 'zustand';
|
|
7
7
|
import { createAudioLevelMeter } from '../lib/audio-level';
|
|
@@ -17,7 +17,7 @@ import {
|
|
|
17
17
|
type RemoteParticipant,
|
|
18
18
|
type DataPublishOptions,
|
|
19
19
|
} from 'livekit-client';
|
|
20
|
-
import { useOxy } from '@
|
|
20
|
+
import { useOxy } from '@oxy.so/services';
|
|
21
21
|
import { errorMessage } from '../lib/utils';
|
|
22
22
|
import type { RoomState, AgentState, VoiceMessage, VoiceToolInvocation } from '../types';
|
|
23
23
|
import { PREFERRED_VOICE_MODEL_ID } from '../lib/config';
|