@ggui-ai/mcp-apps-react-native 0.14.0 → 0.16.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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ggui-ai/mcp-apps-react-native",
3
- "version": "0.14.0",
3
+ "version": "0.16.0",
4
4
  "description": "React Native SDK for ggui — components and hooks for embedding agent-generated UIs in mobile apps.",
5
5
  "keywords": [
6
6
  "ggui",
@@ -58,9 +58,9 @@
58
58
  },
59
59
  "dependencies": {
60
60
  "@modelcontextprotocol/ext-apps": "^1.7.2",
61
- "@ggui-ai/design": "0.14.0",
62
- "@ggui-ai/iframe-runtime": "0.14.0",
63
- "@ggui-ai/protocol": "0.14.0"
61
+ "@ggui-ai/design": "0.16.0",
62
+ "@ggui-ai/iframe-runtime": "0.16.0",
63
+ "@ggui-ai/protocol": "0.16.0"
64
64
  },
65
65
  "devDependencies": {
66
66
  "@modelcontextprotocol/sdk": "^1.27.0",
@@ -1,4 +1,4 @@
1
- import type { ContentBlock, InvokeTurn } from '@ggui-ai/protocol';
1
+ import type { ContentBlock, InvokeTurn } from '@ggui-ai/protocol/wire';
2
2
  import type { ConversationMessage } from '../invoke/useInvoke';
3
3
  import { extractRenderFromToolResult } from './render';
4
4
 
@@ -1,4 +1,4 @@
1
- import type { ContentBlock } from '@ggui-ai/protocol';
1
+ import type { ContentBlock } from '@ggui-ai/protocol/wire';
2
2
 
3
3
  /**
4
4
  * Pull a durable render payload out of a `tool_result` block's
@@ -24,8 +24,8 @@
24
24
  */
25
25
  import { useState, useCallback, useEffect, useMemo, type ReactNode } from 'react';
26
26
  import { Dimensions, PixelRatio } from 'react-native';
27
- import type { AdapterPermissions, PermissionStatus, InterfaceContext, EndUserIdentity, AppDisplayConfig } from '@ggui-ai/protocol';
28
- import { KNOWN_PERMISSION_NAMES, UnknownPermissionNameError } from '@ggui-ai/protocol';
27
+ import type { AdapterPermissions, PermissionStatus, InterfaceContext, EndUserIdentity, AppDisplayConfig } from '@ggui-ai/protocol/wire';
28
+ import { KNOWN_PERMISSION_NAMES, UnknownPermissionNameError } from '@ggui-ai/protocol/wire';
29
29
  import { GguiContext, type AdapterRegistry, type GguiContextValue } from '../context/GguiContext';
30
30
 
31
31
  const KNOWN_PERMISSION_NAMES_SET: ReadonlySet<string> = new Set(KNOWN_PERMISSION_NAMES);
@@ -1,5 +1,5 @@
1
1
  import { createContext, useContext } from 'react';
2
- import type { AdapterPermissions, PermissionStatus, InterfaceContext, EndUserIdentity, AppDisplayConfig } from '@ggui-ai/protocol';
2
+ import type { AdapterPermissions, PermissionStatus, InterfaceContext, EndUserIdentity, AppDisplayConfig } from '@ggui-ai/protocol/wire';
3
3
 
4
4
  /**
5
5
  * Open interface — host runtime registry of **client/device adapter
package/src/index.ts CHANGED
@@ -61,8 +61,8 @@ export type {
61
61
  InterfaceContext,
62
62
  DeviceCategory,
63
63
  EndUserIdentity,
64
- } from '@ggui-ai/protocol';
65
- export { BRIDGE_EVENTS, detectInterfaceContext, getDeviceCategory } from '@ggui-ai/protocol';
64
+ } from '@ggui-ai/protocol/wire';
65
+ export { BRIDGE_EVENTS, detectInterfaceContext, getDeviceCategory } from '@ggui-ai/protocol/wire';
66
66
 
67
67
  // Invoke protocol message block types — re-exported at root so facade
68
68
  // consumers can pull them from the same import path as useInvoke.
@@ -73,7 +73,7 @@ export type {
73
73
  ToolUseBlock,
74
74
  ToolResultBlock,
75
75
  InvokeTurn,
76
- } from '@ggui-ai/protocol';
76
+ } from '@ggui-ai/protocol/wire';
77
77
 
78
78
  // ProtocolError typed union — the canonical shape for every failure
79
79
  // the renderer classifies outward. `<McpAppIframe onError>` surfaces
@@ -11,7 +11,7 @@
11
11
  * and Expo SDK 50+ polyfills it for older runtimes. If consumers target an
12
12
  * older setup they must polyfill `TextDecoder` in their entry file.
13
13
  */
14
- import { invokeEventSchema, type InvokeEvent } from '@ggui-ai/protocol';
14
+ import { invokeEventSchema, type InvokeEvent } from '@ggui-ai/protocol/wire';
15
15
 
16
16
  const DECODER = new TextDecoder();
17
17
  const FRAME_SEP = '\n\n';
@@ -57,7 +57,7 @@ import type {
57
57
  InvokeErrorCode,
58
58
  InvokeTurn,
59
59
  ToolUseBlock,
60
- } from '@ggui-ai/protocol';
60
+ } from '@ggui-ai/protocol/wire';
61
61
  import { useGguiContext } from '../components/GguiProvider';
62
62
  import { parseSseStream } from './sse-parse';
63
63
 
@@ -110,7 +110,7 @@ export interface UseInvokeOptions {
110
110
  onError?: (err: InvokeError) => void;
111
111
  /**
112
112
  * Dev-mode bridge routing — when set, `send()` POSTs to
113
- * `{gatewayUrl}/{appId}` instead of `{endpointUrl}/invoke`. The pod
113
+ * `{gatewayUrl}/{appId}` instead of `{endpointUrl}/invoke`. The gateway
114
114
  * routes by `appId`. Mirrors the web hook; see that JSDoc for the
115
115
  * full description. When set, `endpointUrl` is optional — the gateway
116
116
  * is the transport.