@agimon-ai/po-native 0.0.1-alpha.16 → 0.0.1-alpha.18

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@agimon-ai/po-native",
3
- "version": "0.0.1-alpha.16",
3
+ "version": "0.0.1-alpha.18",
4
4
  "description": "Po for iOS and Android",
5
5
  "homepage": "https://agimon.ai",
6
6
  "bugs": {
@@ -29,20 +29,20 @@
29
29
  "access": "public"
30
30
  },
31
31
  "dependencies": {
32
- "@agimon-ai/po-core": "0.0.0-alpha.136",
33
- "@agimon-ai/po-expo-signing": "0.0.1-alpha.16",
34
- "@agimon-ai/po-identity": "0.0.2-alpha.83",
35
- "@agimon-ai/po-native-components": "0.0.0-alpha.136",
36
- "@agimon-ai/po-native-dashboard": "0.0.0-alpha.8",
37
- "@agimon-ai/po-template-advanced": "0.0.0-alpha.136",
38
- "@agimon-ai/po-template-elegant": "0.0.0-alpha.136",
39
- "@agimon-ai/po-voice": "0.0.0-alpha.136",
40
- "@agimon-ai/po-web-components": "0.0.0-alpha.136",
41
- "@agimon-ai/po-web-dashboard": "0.0.0-alpha.136",
42
- "@agimon-ai/po-web-security": "0.0.0-alpha.136",
32
+ "@agimon-ai/po-core": "0.0.0-alpha.138",
33
+ "@agimon-ai/po-expo-signing": "0.0.1-alpha.18",
34
+ "@agimon-ai/po-identity": "0.0.2-alpha.85",
35
+ "@agimon-ai/po-native-components": "0.0.0-alpha.138",
36
+ "@agimon-ai/po-native-dashboard": "0.0.0-alpha.10",
37
+ "@agimon-ai/po-template-advanced": "0.0.0-alpha.138",
38
+ "@agimon-ai/po-template-elegant": "0.0.0-alpha.138",
39
+ "@agimon-ai/po-voice": "0.0.0-alpha.138",
40
+ "@agimon-ai/po-web-components": "0.0.0-alpha.138",
41
+ "@agimon-ai/po-web-dashboard": "0.0.0-alpha.138",
42
+ "@agimon-ai/po-web-security": "0.0.0-alpha.138",
43
43
  "@better-auth/expo": "1.7.12",
44
44
  "@config-plugins/react-native-webrtc": "15.0.2",
45
- "@earendil-works/chord": "1.5.0",
45
+ "@earendil-works/chord": "1.5.1",
46
46
  "@expo/vector-icons": "15.1.1",
47
47
  "@gorhom/bottom-sheet": "5.2.14",
48
48
  "@native-html/render": "1.0.4",
@@ -1,7 +1,6 @@
1
1
  import { poClientMetadataPreface } from '@agimon-ai/po-core/clientMetadata';
2
- import { createTextLink } from '@agimon-ai/po-core/sessionProtocol';
2
+ import { createTextLink, type ProtocolLink as Link } from '@agimon-ai/po-core/sessionProtocol';
3
3
  import type { SealedTransport } from '@agimon-ai/po-web-security/browser';
4
- import type { Link } from '@earendil-works/chord';
5
4
 
6
5
  import { currentClientMetadata, initializeClientIdentity } from '../services/clientIdentity';
7
6
  import type { RemoteHttp, createSealedHttp } from './remoteHttp';
@@ -1,5 +1,10 @@
1
1
  import { encodePoClientMetadata } from '@agimon-ai/po-core/clientMetadata';
2
- import { createProtocolClient } from '@agimon-ai/po-core/sessionProtocol';
2
+ import {
3
+ createProtocolClient,
4
+ webSocketLink,
5
+ type ProtocolLink as Link,
6
+ type WebSocketLike,
7
+ } from '@agimon-ai/po-core/sessionProtocol';
3
8
  import {
4
9
  applySessionsSnapshot,
5
10
  applyWorkspacesSnapshot,
@@ -10,7 +15,6 @@ import {
10
15
  setActiveSession,
11
16
  splitHostId,
12
17
  } from '@agimon-ai/po-web-dashboard/core';
13
- import { webSocketLink, type Link, type WebSocketLike } from '@earendil-works/chord';
14
18
  import { fetch as nativeFetch } from 'expo/fetch';
15
19
 
16
20
  import { identityCookie } from '../services/accountClient';
@@ -301,7 +305,7 @@ export function startCloudRuntime(host: CloudHostRecord, options: CloudRuntimeOp
301
305
  sockets.delete(socket);
302
306
  if (event?.code === CLOUD_REAUTHENTICATE_CLOSE) reauthenticate();
303
307
  });
304
- return webSocketLink(socket as unknown as WebSocketLike, { acceptPacked: false });
308
+ return webSocketLink(socket as unknown as WebSocketLike);
305
309
  };
306
310
 
307
311
  const stopBinding = () => {
@@ -79,7 +79,7 @@ export function startSessionRuntime(
79
79
  /** Binds one session. A lost link, runtime or reference rebinds it from scratch, since frames were missed. */
80
80
  const open = (sessionId: string): void => {
81
81
  release();
82
- const ref = client.host.hold(PoSessionContract, {
82
+ const ref = client.hold(PoSessionContract, {
83
83
  sessionId: hostId === undefined ? sessionId : localHostId(hostId, sessionId),
84
84
  });
85
85
  const lifetime = withCancel(BACKGROUND_CONTEXT);