@agimon-ai/po-native 0.0.1-alpha.17 → 0.0.1-alpha.19

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.17",
3
+ "version": "0.0.1-alpha.19",
4
4
  "description": "Po for iOS and Android",
5
5
  "homepage": "https://agimon.ai",
6
6
  "bugs": {
@@ -29,17 +29,17 @@
29
29
  "access": "public"
30
30
  },
31
31
  "dependencies": {
32
- "@agimon-ai/po-core": "0.0.0-alpha.137",
33
- "@agimon-ai/po-expo-signing": "0.0.1-alpha.17",
34
- "@agimon-ai/po-identity": "0.0.2-alpha.84",
35
- "@agimon-ai/po-native-components": "0.0.0-alpha.137",
36
- "@agimon-ai/po-native-dashboard": "0.0.0-alpha.9",
37
- "@agimon-ai/po-template-advanced": "0.0.0-alpha.137",
38
- "@agimon-ai/po-template-elegant": "0.0.0-alpha.137",
39
- "@agimon-ai/po-voice": "0.0.0-alpha.137",
40
- "@agimon-ai/po-web-components": "0.0.0-alpha.137",
41
- "@agimon-ai/po-web-dashboard": "0.0.0-alpha.137",
42
- "@agimon-ai/po-web-security": "0.0.0-alpha.137",
32
+ "@agimon-ai/po-core": "0.0.0-alpha.139",
33
+ "@agimon-ai/po-expo-signing": "0.0.1-alpha.19",
34
+ "@agimon-ai/po-identity": "0.0.2-alpha.86",
35
+ "@agimon-ai/po-native-components": "0.0.0-alpha.139",
36
+ "@agimon-ai/po-native-dashboard": "0.0.0-alpha.11",
37
+ "@agimon-ai/po-template-advanced": "0.0.0-alpha.139",
38
+ "@agimon-ai/po-template-elegant": "0.0.0-alpha.139",
39
+ "@agimon-ai/po-voice": "0.0.0-alpha.139",
40
+ "@agimon-ai/po-web-components": "0.0.0-alpha.139",
41
+ "@agimon-ai/po-web-dashboard": "0.0.0-alpha.139",
42
+ "@agimon-ai/po-web-security": "0.0.0-alpha.139",
43
43
  "@better-auth/expo": "1.7.12",
44
44
  "@config-plugins/react-native-webrtc": "15.0.2",
45
45
  "@earendil-works/chord": "1.5.1",
@@ -1,5 +1,5 @@
1
1
  import { poClientMetadataPreface } from '@agimon-ai/po-core/clientMetadata';
2
- import { createTextLink, type ProtocolLink as Link } from '@agimon-ai/po-core/sessionProtocol';
2
+ import { createTextLink, type ProtocolLink as Link } from '@agimon-ai/po-core/protocolTransport';
3
3
  import type { SealedTransport } from '@agimon-ai/po-web-security/browser';
4
4
 
5
5
  import { currentClientMetadata, initializeClientIdentity } from '../services/clientIdentity';
@@ -141,7 +141,10 @@ export function createNativeProtocolLink(
141
141
  }),
142
142
  ])
143
143
  : undefined;
144
- if (result && 'error' in result) throw result.error;
144
+ if (result && 'error' in result)
145
+ throw result.error instanceof Error
146
+ ? result.error
147
+ : new Error('Client device probe failed.', { cause: result.error });
145
148
  const response = result?.response;
146
149
  if (response && response.status !== 404) {
147
150
  if (!response.ok) throw new Error(`Client device probe failed (${response.status}).`);
@@ -4,7 +4,7 @@ import {
4
4
  webSocketLink,
5
5
  type ProtocolLink as Link,
6
6
  type WebSocketLike,
7
- } from '@agimon-ai/po-core/sessionProtocol';
7
+ } from '@agimon-ai/po-core/protocolTransport';
8
8
  import {
9
9
  applySessionsSnapshot,
10
10
  applyWorkspacesSnapshot,
@@ -1,4 +1,4 @@
1
- import { createProtocolClient, type ProtocolClient } from '@agimon-ai/po-core/sessionProtocol';
1
+ import { createProtocolClient, type ProtocolClient } from '@agimon-ai/po-core/protocolTransport';
2
2
  import {
3
3
  bindTransport,
4
4
  bindHostTransport,