@mcpjam/widget-react 0.1.11 → 0.1.13
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/dist/index.d.ts +135 -34
- package/dist/index.js +229 -31
- package/dist/index.js.map +1 -1
- package/package.json +6 -6
package/dist/index.d.ts
CHANGED
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
2
1
|
import * as react from 'react';
|
|
3
2
|
import { ComponentType, ReactNode } from 'react';
|
|
4
3
|
import { ToolResultPolicy, BrowserStoragePolicy, AppToolInvocationUpdate } from '@mcpjam/sdk/widget-runtime';
|
|
@@ -112,7 +111,7 @@ type ResolvedMcpAppsCapabilities = {
|
|
|
112
111
|
/**
|
|
113
112
|
* getHostStyleOrDefault / DEFAULT_HOST_STYLE result — typed to the renderer's
|
|
114
113
|
* AUDITED reads only: `.mcp.{resolveStyleVariables,fontCss,platform}` and
|
|
115
|
-
* `.chatUi.resolveChatBackground` (+ `.id`). The real `HostStyleDefinition` has
|
|
114
|
+
* `.chatUi.{label,resolveChatBackground}` (+ `.id`). The real `HostStyleDefinition` has
|
|
116
115
|
* more (the full profile/chat-ui graph); the adapter assigns it (assignable to
|
|
117
116
|
* this minimal surface), so the package never replicates that graph.
|
|
118
117
|
*/
|
|
@@ -124,6 +123,7 @@ interface ResolvedHostStyle {
|
|
|
124
123
|
platform: "web" | "desktop" | "mobile";
|
|
125
124
|
};
|
|
126
125
|
chatUi: {
|
|
126
|
+
label?: string;
|
|
127
127
|
resolveChatBackground: (theme: "light" | "dark") => string;
|
|
128
128
|
};
|
|
129
129
|
}
|
|
@@ -148,6 +148,17 @@ interface WidgetSurfaceInfo {
|
|
|
148
148
|
hostedMode: boolean;
|
|
149
149
|
/** SANDBOX_ORIGIN (VITE_MCPJAM_SANDBOX_ORIGIN); "" when unset. */
|
|
150
150
|
sandboxOrigin: string;
|
|
151
|
+
/**
|
|
152
|
+
* VIEW_MOUNT_MODE (VITE_MCPJAM_VIEW_MOUNT) — how the sandbox proxy mounts
|
|
153
|
+
* the view. Absent means `"write"`, which is what gives the view a real URL.
|
|
154
|
+
*/
|
|
155
|
+
viewMountMode?: "write" | "srcdoc";
|
|
156
|
+
/**
|
|
157
|
+
* VIEW_SUBDOMAINS_ENABLED (VITE_MCPJAM_VIEW_SUBDOMAINS) — serve each
|
|
158
|
+
* server's views from their own origin. Requires wildcard DNS and a
|
|
159
|
+
* certificate for the sandbox apex, so it is off unless a deploy has them.
|
|
160
|
+
*/
|
|
161
|
+
viewSubdomainsEnabled?: boolean;
|
|
151
162
|
/**
|
|
152
163
|
* Playground CSP-mode selection (useUIPlaygroundStore.mcpAppsCspMode) — an
|
|
153
164
|
* INPUT, not the effective mode. The renderer derives the effective sandbox
|
|
@@ -161,10 +172,33 @@ interface WidgetMount {
|
|
|
161
172
|
reason: string;
|
|
162
173
|
at: number;
|
|
163
174
|
}
|
|
175
|
+
/** New mounts use an opaque string; numbers remain valid for saved data. */
|
|
176
|
+
type CspMountId = string | number;
|
|
177
|
+
/** Selected client and declared domains captured with the mount recipe. */
|
|
178
|
+
interface CspClientContext {
|
|
179
|
+
surface?: "inline" | "modal";
|
|
180
|
+
clientName: string;
|
|
181
|
+
declaredCsp?: McpUiResourceCsp;
|
|
182
|
+
capabilities: Pick<ResolvedMcpAppsCapabilities, "cspConnectDomains" | "cspResourceDomains" | "cspFrameDomains" | "cspBaseUriDomains">;
|
|
183
|
+
}
|
|
184
|
+
/** What MCPJam meant to install before the sandbox proxy serialized it. */
|
|
185
|
+
interface CspApplicationIntent {
|
|
186
|
+
/** Actual restrictions used to serialize this mount, not the live profile. */
|
|
187
|
+
cspSubtypePolicy?: CspSubtypePolicy;
|
|
188
|
+
clientContext?: CspClientContext;
|
|
189
|
+
csp?: McpUiResourceCsp;
|
|
190
|
+
cspDirectives?: Record<string, string[]>;
|
|
191
|
+
permissive: boolean;
|
|
192
|
+
}
|
|
164
193
|
interface CspViolation {
|
|
165
194
|
directive: string;
|
|
166
195
|
effectiveDirective?: string;
|
|
167
196
|
blockedUri: string;
|
|
197
|
+
/** Id of the exact inner iframe mount that emitted this event. */
|
|
198
|
+
mountId?: CspMountId;
|
|
199
|
+
/** The policy that caused this specific violation. */
|
|
200
|
+
originalPolicy?: string;
|
|
201
|
+
disposition?: "enforce" | "report";
|
|
168
202
|
sourceFile?: string | null;
|
|
169
203
|
lineNumber?: number | null;
|
|
170
204
|
columnNumber?: number | null;
|
|
@@ -172,7 +206,7 @@ interface CspViolation {
|
|
|
172
206
|
subtype?: CspSubtype;
|
|
173
207
|
}
|
|
174
208
|
interface WidgetLifecycleEvent {
|
|
175
|
-
kind: "sandbox-proxy-ready" | "widget-content-requested" | "widget-content-ready" | "widget-content-error" | "widget-content-invalid-mimetype" | "bridge-connect-start" | "bridge-connect-ready" | "bridge-connect-error" | "bridge-connect-skipped" | "app-initialized";
|
|
209
|
+
kind: "sandbox-proxy-ready" | "widget-content-requested" | "widget-content-ready" | "widget-content-error" | "widget-content-invalid-mimetype" | "bridge-connect-start" | "bridge-connect-ready" | "bridge-connect-error" | "bridge-connect-skipped" | "app-initialized" | "view-mounted";
|
|
176
210
|
status: "ok" | "error" | "pending";
|
|
177
211
|
message?: string;
|
|
178
212
|
timestamp: number;
|
|
@@ -197,6 +231,22 @@ interface WidgetSandboxApplied {
|
|
|
197
231
|
geolocation?: {};
|
|
198
232
|
clipboardWrite?: {};
|
|
199
233
|
};
|
|
234
|
+
/**
|
|
235
|
+
* How the proxy mounted the view. `"url"` means it was written into a blank
|
|
236
|
+
* same-origin frame and runs at the proxy's URL; the srcdoc values mean it
|
|
237
|
+
* has no URL of its own (`"srcdoc"` was asked for, `"srcdoc-fallback"` was
|
|
238
|
+
* forced because the frame's document was unreachable).
|
|
239
|
+
*/
|
|
240
|
+
viewMode?: "url" | "srcdoc" | "srcdoc-fallback";
|
|
241
|
+
/** Id of the currently displayed inner iframe mount. */
|
|
242
|
+
mountId?: CspMountId;
|
|
243
|
+
/** The view's document URL as reported by the proxy. */
|
|
244
|
+
viewUrl?: string;
|
|
245
|
+
/**
|
|
246
|
+
* Origin of `viewUrl` — what a developer allowlists with a third party that
|
|
247
|
+
* keys on the page URL. Absent on the srcdoc paths, which have no origin.
|
|
248
|
+
*/
|
|
249
|
+
assignedOrigin?: string;
|
|
200
250
|
}
|
|
201
251
|
interface WidgetSandboxInfo {
|
|
202
252
|
mode: CspMode;
|
|
@@ -211,6 +261,14 @@ interface WidgetSandboxInfo {
|
|
|
211
261
|
clipboardWrite?: {};
|
|
212
262
|
};
|
|
213
263
|
headerString?: string;
|
|
264
|
+
/** Latest proxy mount, retained for consumers that show current state. */
|
|
265
|
+
activeMountId?: CspMountId;
|
|
266
|
+
/** Applied policies keyed by proxy mount id so remounts cannot mix data. */
|
|
267
|
+
appliedPoliciesByMount?: Record<string, {
|
|
268
|
+
headerString: string;
|
|
269
|
+
mode: "permissive" | "widget-declared";
|
|
270
|
+
intent?: CspApplicationIntent;
|
|
271
|
+
}>;
|
|
214
272
|
violations: CspViolation[];
|
|
215
273
|
widgetDeclared?: {
|
|
216
274
|
connect_domains?: string[];
|
|
@@ -220,6 +278,13 @@ interface WidgetSandboxInfo {
|
|
|
220
278
|
frameDomains?: string[];
|
|
221
279
|
baseUriDomains?: string[];
|
|
222
280
|
} | null;
|
|
281
|
+
/**
|
|
282
|
+
* `_meta.ui.domain` as declared by the server, or null when it declared
|
|
283
|
+
* none. Compared against the origin MCPJam actually serves the view from;
|
|
284
|
+
* a mismatch is informational, since each host's domain format differs and
|
|
285
|
+
* a server can only declare one string.
|
|
286
|
+
*/
|
|
287
|
+
declaredDomain?: string | null;
|
|
223
288
|
}
|
|
224
289
|
interface WidgetGlobals {
|
|
225
290
|
theme: "light" | "dark";
|
|
@@ -296,12 +361,25 @@ interface UiLogEvent {
|
|
|
296
361
|
}
|
|
297
362
|
/** Diagnostics sink — 1:1 with widget-debug-store + traffic-log addLog. */
|
|
298
363
|
interface WidgetDebugSink {
|
|
364
|
+
/** Release notifications for one surface without clearing other live views. */
|
|
365
|
+
clearCspMount?: (toolCallId: string, mountId: CspMountId) => void;
|
|
299
366
|
recordMount: (toolCallId: string, reason: string) => void;
|
|
300
367
|
setWidgetDebugInfo: (toolCallId: string, info: Partial<Omit<WidgetDebugInfo, "toolCallId" | "updatedAt">>) => void;
|
|
301
368
|
setWidgetState: (toolCallId: string, state: unknown) => void;
|
|
302
369
|
setWidgetGlobals: (toolCallId: string, globals: Partial<WidgetGlobals>) => void;
|
|
303
370
|
setWidgetCsp: (toolCallId: string, csp: Omit<WidgetSandboxInfo, "violations">) => void;
|
|
371
|
+
/**
|
|
372
|
+
* The CSP string the proxy actually injected for the current mount. Merges
|
|
373
|
+
* into the stored `csp` object; see the store's `setWidgetAppliedCsp`.
|
|
374
|
+
*/
|
|
375
|
+
setWidgetAppliedCsp: (toolCallId: string, applied: {
|
|
376
|
+
mountId: CspMountId;
|
|
377
|
+
headerString: string;
|
|
378
|
+
mode: "permissive" | "widget-declared";
|
|
379
|
+
intent?: CspApplicationIntent;
|
|
380
|
+
}) => void;
|
|
304
381
|
addCspViolation: (toolCallId: string, violation: CspViolation) => void;
|
|
382
|
+
reportCspViolation: (toolCallId: string, serverId: string, violation: CspViolation) => void;
|
|
305
383
|
clearCspViolations: (toolCallId: string) => void;
|
|
306
384
|
setWidgetModelContext: (toolCallId: string, context: {
|
|
307
385
|
content?: unknown[];
|
|
@@ -473,6 +551,19 @@ interface FetchWidgetContentResponse {
|
|
|
473
551
|
mimeTypeWarning?: string;
|
|
474
552
|
mimeTypeValid?: boolean;
|
|
475
553
|
prefersBorder?: boolean;
|
|
554
|
+
/**
|
|
555
|
+
* `_meta.ui.domain` — the dedicated origin the server ASKED for. Advisory:
|
|
556
|
+
* MCPJam derives the origin it serves the view from, and reports this only
|
|
557
|
+
* so the Workbench can say whether the declaration matches.
|
|
558
|
+
*/
|
|
559
|
+
declaredDomain?: string;
|
|
560
|
+
/**
|
|
561
|
+
* Subdomain label for this server's dedicated view origin
|
|
562
|
+
* (`<label>.sandbox.mcpjam.com`), derived from the server's identity. Absent
|
|
563
|
+
* when the server identifies nothing to derive from; the view then renders
|
|
564
|
+
* on the default sandbox origin.
|
|
565
|
+
*/
|
|
566
|
+
viewOriginLabel?: string;
|
|
476
567
|
injectedOpenAiCompat?: boolean;
|
|
477
568
|
injectedOpenAiCompatCapabilities?: ResolvedOpenAiAppsCapabilities;
|
|
478
569
|
}
|
|
@@ -510,6 +601,19 @@ interface WidgetHostServices {
|
|
|
510
601
|
* the global `fetch` directly.
|
|
511
602
|
*/
|
|
512
603
|
authFetch: (input: RequestInfo | URL, init?: RequestInit) => Promise<Response>;
|
|
604
|
+
/**
|
|
605
|
+
* Fetch a persisted artifact (cached widget HTML) by URL. Hosts that serve
|
|
606
|
+
* artifacts through short-lived links bind this to a fetch that renews an
|
|
607
|
+
* expired link. Optional: the renderer falls back to the global `fetch`.
|
|
608
|
+
*/
|
|
609
|
+
fetchArtifact?: (url: string) => Promise<Response>;
|
|
610
|
+
/**
|
|
611
|
+
* What a cached artifact URL points at. A host whose artifact links are
|
|
612
|
+
* re-minted over time (a new expiry, the same object) returns a key that
|
|
613
|
+
* ignores the expiry, so a re-minted link does not reload a widget whose
|
|
614
|
+
* bytes did not change. Optional: the URL itself is the key.
|
|
615
|
+
*/
|
|
616
|
+
artifactCacheKey?: (url: string) => string;
|
|
513
617
|
}
|
|
514
618
|
interface WidgetHost {
|
|
515
619
|
/**
|
|
@@ -535,7 +639,7 @@ interface WidgetHostProviderProps {
|
|
|
535
639
|
value: WidgetHost;
|
|
536
640
|
children: ReactNode;
|
|
537
641
|
}
|
|
538
|
-
declare function WidgetHostProvider({ value, children, }: WidgetHostProviderProps):
|
|
642
|
+
declare function WidgetHostProvider({ value, children, }: WidgetHostProviderProps): react.JSX.Element;
|
|
539
643
|
/**
|
|
540
644
|
* Read the injected {@link WidgetHost}. Throws if no `<WidgetHostProvider>` is
|
|
541
645
|
* mounted above — the package never reaches into inspector state itself, so a
|
|
@@ -776,34 +880,14 @@ declare function useToolInputStreaming({ bridgeRef, isReady, isReadyRef, toolSta
|
|
|
776
880
|
|
|
777
881
|
/** The parts of `window.location` the sandbox origin is derived from. */
|
|
778
882
|
type SandboxProxyLocation = Pick<Location, "hostname" | "port" | "protocol" | "origin">;
|
|
779
|
-
|
|
780
|
-
* Where the outer sandbox iframe loads from.
|
|
781
|
-
*
|
|
782
|
-
* SEP-1865: host and sandbox MUST have different origins.
|
|
783
|
-
*
|
|
784
|
-
* Hosted: prefer the operator-configured SANDBOX_ORIGIN
|
|
785
|
-
* (`VITE_MCPJAM_SANDBOX_ORIGIN`). It MUST be a distinct origin from the host
|
|
786
|
-
* app so the sandboxed iframe cannot reach host cookies or storage even when
|
|
787
|
-
* its sandbox carries `allow-same-origin`.
|
|
788
|
-
*
|
|
789
|
-
* A configured origin EQUAL to the app's own counts as unset. It produces
|
|
790
|
-
* exactly the same same-origin iframe as no value at all, and it is the more
|
|
791
|
-
* likely of the two mistakes because it looks configured. The client boot
|
|
792
|
-
* guard used to be the only thing that said so, and it could not tell that
|
|
793
|
-
* case apart from the app legitimately being loaded on the sandbox hostname
|
|
794
|
-
* (INSPECTOR-CLIENT-247) — so the deploy-level check moved to the server and
|
|
795
|
-
* this renderer stopped walking straight through the condition.
|
|
796
|
-
*
|
|
797
|
-
* Local: keep the localhost ↔ 127.0.0.1 swap so dev gets the same
|
|
798
|
-
* origin-separation property without operator config.
|
|
799
|
-
*
|
|
800
|
-
* Same-origin fallback exists only as a soft-fail for misconfigured hosted
|
|
801
|
-
* deploys; it emits a loud security warning.
|
|
802
|
-
*/
|
|
803
|
-
declare function resolveSandboxProxyUrl({ hostedMode, sandboxOrigin, location, }: {
|
|
883
|
+
declare function resolveSandboxProxyUrl({ hostedMode, sandboxOrigin, location, viewOriginLabel, viewSubdomainsEnabled, userAgent, }: {
|
|
804
884
|
hostedMode: boolean;
|
|
805
885
|
sandboxOrigin: string;
|
|
806
886
|
location: SandboxProxyLocation;
|
|
887
|
+
/** Per-server label; views share the sandbox origin without one. */
|
|
888
|
+
viewOriginLabel?: string;
|
|
889
|
+
viewSubdomainsEnabled?: boolean;
|
|
890
|
+
userAgent?: string;
|
|
807
891
|
}): string;
|
|
808
892
|
interface SandboxedIframeHandle {
|
|
809
893
|
postMessage: (data: unknown) => void;
|
|
@@ -842,6 +926,7 @@ interface SandboxedIframeProps {
|
|
|
842
926
|
cspDirectives?: Record<string, string[]>;
|
|
843
927
|
/** Probe-derived host policy for individual CSP-backed browser APIs. */
|
|
844
928
|
cspSubtypePolicy?: CspSubtypePolicy;
|
|
929
|
+
clientContext?: CspClientContext;
|
|
845
930
|
/**
|
|
846
931
|
* Probe-derived host policy for browser storage inside the widget.
|
|
847
932
|
* Absent or `true` means available; `false` makes the proxy install a guard
|
|
@@ -884,6 +969,22 @@ interface SandboxedIframeProps {
|
|
|
884
969
|
* (`host.surface.sandboxOrigin`).
|
|
885
970
|
*/
|
|
886
971
|
sandboxOrigin?: string;
|
|
972
|
+
/**
|
|
973
|
+
* How the proxy mounts the view: `"write"` (default) writes the HTML into a
|
|
974
|
+
* blank same-origin iframe so the view runs at the proxy's URL; `"srcdoc"`
|
|
975
|
+
* restores the legacy `iframe.srcdoc` mount, where the view has no URL of
|
|
976
|
+
* its own. Supplied by the host (`host.surface.viewMountMode`); build-time
|
|
977
|
+
* only, so it exists to exercise the srcdoc branch rather than to switch
|
|
978
|
+
* behaviour at runtime.
|
|
979
|
+
*/
|
|
980
|
+
mountMode?: "write" | "srcdoc";
|
|
981
|
+
/**
|
|
982
|
+
* Per-server label for a dedicated view origin, and whether this deploy
|
|
983
|
+
* serves one. Supplied by the host; without both the view renders on the
|
|
984
|
+
* shared sandbox origin.
|
|
985
|
+
*/
|
|
986
|
+
viewOriginLabel?: string;
|
|
987
|
+
viewSubdomainsEnabled?: boolean;
|
|
887
988
|
}
|
|
888
989
|
/**
|
|
889
990
|
* SandboxedIframe provides a secure double-iframe architecture per SEP-1865.
|
|
@@ -1046,17 +1147,17 @@ interface MCPAppsRendererProps {
|
|
|
1046
1147
|
*/
|
|
1047
1148
|
persistentSurfaceInitialToolCallId?: string;
|
|
1048
1149
|
}
|
|
1049
|
-
declare function MCPAppsRenderer(props: MCPAppsRendererProps):
|
|
1050
|
-
declare function MCPAppsRendererSurface({ chatSessionId, serverId, serverName, toolCallId, toolName, toolState, toolInput, toolOutput, toolResponseMetadata, toolErrorText, resourceUri, toolMetadata, toolsMetadata, onSendFollowUp, onCallTool, onAppToolInvocationChange, onWidgetStateChange, recordMode, onRecorderStep, onRecorderReady, onReplayControllerReady, pipWidgetId, fullscreenWidgetId, onRequestPip, onExitPip, displayMode: displayModeProp, onDisplayModeChange, onRequestFullscreen, onExitFullscreen, onModelContextUpdate, onAppSupportedDisplayModesChange, onRequestTeardown, onConfirmDownload, isOffline, cachedWidgetHtmlUrl, liveFetchPreferred, widgetCsp: initialWidgetCsp, widgetPermissions: initialWidgetPermissions, widgetPermissive: initialWidgetPermissive, prefersBorder: initialPrefersBorder, injectedOpenAiCompat: initialInjectedOpenAiCompat, injectedOpenAiCompatCapabilities: initialInjectedOpenAiCompatCapabilities, initialWidgetState, minimalMode, persistentSurfaceId, persistentSurfaceInitialToolCallId, }: MCPAppsRendererProps):
|
|
1150
|
+
declare function MCPAppsRenderer(props: MCPAppsRendererProps): react.JSX.Element;
|
|
1151
|
+
declare function MCPAppsRendererSurface({ chatSessionId, serverId, serverName, toolCallId, toolName, toolState, toolInput, toolOutput, toolResponseMetadata, toolErrorText, resourceUri, toolMetadata, toolsMetadata, onSendFollowUp, onCallTool, onAppToolInvocationChange, onWidgetStateChange, recordMode, onRecorderStep, onRecorderReady, onReplayControllerReady, pipWidgetId, fullscreenWidgetId, onRequestPip, onExitPip, displayMode: displayModeProp, onDisplayModeChange, onRequestFullscreen, onExitFullscreen, onModelContextUpdate, onAppSupportedDisplayModesChange, onRequestTeardown, onConfirmDownload, isOffline, cachedWidgetHtmlUrl, liveFetchPreferred, widgetCsp: initialWidgetCsp, widgetPermissions: initialWidgetPermissions, widgetPermissive: initialWidgetPermissive, prefersBorder: initialPrefersBorder, injectedOpenAiCompat: initialInjectedOpenAiCompat, injectedOpenAiCompatCapabilities: initialInjectedOpenAiCompatCapabilities, initialWidgetState, minimalMode, persistentSurfaceId, persistentSurfaceInitialToolCallId, }: MCPAppsRendererProps): react.JSX.Element | null;
|
|
1051
1152
|
|
|
1052
1153
|
declare function WidgetSurfaceHostProvider({ children, }: {
|
|
1053
1154
|
children: ReactNode;
|
|
1054
|
-
}):
|
|
1155
|
+
}): react.JSX.Element;
|
|
1055
1156
|
declare function usePersistentWidgetSurfaceHost(): boolean;
|
|
1056
1157
|
|
|
1057
1158
|
declare function WidgetSurfaceHost({ chatSessionId, }: {
|
|
1058
1159
|
chatSessionId?: string;
|
|
1059
|
-
}):
|
|
1160
|
+
}): react.JSX.Element;
|
|
1060
1161
|
|
|
1061
1162
|
type WidgetSurfaceId = string;
|
|
1062
1163
|
interface WidgetSurfaceRegistration {
|
|
@@ -1088,4 +1189,4 @@ declare function getRenderableSurfaceEntries(surfaces: Map<WidgetSurfaceId, Widg
|
|
|
1088
1189
|
props: MCPAppsRendererProps;
|
|
1089
1190
|
}[];
|
|
1090
1191
|
|
|
1091
|
-
export { type AddTrafficLog, type AppInstance, type AppToolAlias, type AppToolAttribution, type AppToolDescriptor, type AppToolInvocationRecord, type AppToolSnapshotEntry, type BridgeId, type CspMode, type CspViolation, type DeviceCapabilities, type DeviceType, type DisplayMode, type EffectiveCompatRuntime, type FetchWidgetContentRequest, type FetchWidgetContentResponse, type ListResourcesResult, MCPAppsRenderer, type MCPAppsRendererProps, MCPAppsRendererSurface, type OpenAiAppsCapabilities, PARTIAL_INPUT_THROTTLE_MS, type ProjectHostContextDraft, type ResolvedHostCapabilities, type ResolvedHostInfo, type ResolvedHostStyle, type ResolvedMcpAppsCapabilities, type ResolvedOpenAiAppsCapabilities, SIGNATURE_MAX_ARRAY_ITEMS, SIGNATURE_MAX_DEPTH, SIGNATURE_MAX_OBJECT_KEYS, SIGNATURE_STRING_EDGE_LENGTH, STREAMING_REVEAL_FALLBACK_MS, type SafeAreaInsets, type SandboxProxyLocation, SandboxedIframe, type SandboxedIframeHandle, type ScenarioHostStyle, type ThemeMode, type ToolLike, type ToolState, UIType, type UiLogEvent, type UiProtocol, type UseToolInputStreamingParams, type UseToolInputStreamingReturn, type WidgetCheckoutProps, type WidgetDebugInfo, type WidgetDebugSink, type WidgetGlobals, type WidgetHost, type WidgetHostComponents, type WidgetHostEnvironment, type WidgetHostEnvironmentInputs, WidgetHostProvider, type WidgetHostProviderProps, type WidgetHostResolvers, type WidgetHostServices, type WidgetLifecycleEvent, type WidgetModalProps, type WidgetMount, type WidgetSandboxApplied, type WidgetSandboxInfo, WidgetSurfaceHost, WidgetSurfaceHostProvider, type WidgetSurfaceId, type WidgetSurfaceInfo, type WidgetSurfaceKind, type WidgetSurfaceRecord, __internal, detectUIType, detectUiTypeFromTool, getRenderableSurfaceEntries, getToolInputSignature, getUIResourceUri, readToolResultMeta, readToolResultObject, readToolResultServerId, recordAppToolInvocation, resolveSandboxProxyUrl, useAppToolAttribution, useAppToolAttributionResolver, useAppToolInvocationLog, useAppToolsRegistry, usePersistentWidgetSurfaceHost, useToolInputStreaming, useWidgetHost, useWidgetSurfaceStore };
|
|
1192
|
+
export { type AddTrafficLog, type AppInstance, type AppToolAlias, type AppToolAttribution, type AppToolDescriptor, type AppToolInvocationRecord, type AppToolSnapshotEntry, type BridgeId, type CspApplicationIntent, type CspClientContext, type CspMode, type CspMountId, type CspSubtypePolicy, type CspViolation, type DeviceCapabilities, type DeviceType, type DisplayMode, type EffectiveCompatRuntime, type FetchWidgetContentRequest, type FetchWidgetContentResponse, type ListResourcesResult, MCPAppsRenderer, type MCPAppsRendererProps, MCPAppsRendererSurface, type OpenAiAppsCapabilities, PARTIAL_INPUT_THROTTLE_MS, type ProjectHostContextDraft, type ResolvedHostCapabilities, type ResolvedHostInfo, type ResolvedHostStyle, type ResolvedMcpAppsCapabilities, type ResolvedOpenAiAppsCapabilities, SIGNATURE_MAX_ARRAY_ITEMS, SIGNATURE_MAX_DEPTH, SIGNATURE_MAX_OBJECT_KEYS, SIGNATURE_STRING_EDGE_LENGTH, STREAMING_REVEAL_FALLBACK_MS, type SafeAreaInsets, type SandboxProxyLocation, SandboxedIframe, type SandboxedIframeHandle, type ScenarioHostStyle, type ThemeMode, type ToolLike, type ToolState, UIType, type UiLogEvent, type UiProtocol, type UseToolInputStreamingParams, type UseToolInputStreamingReturn, type WidgetCheckoutProps, type WidgetDebugInfo, type WidgetDebugSink, type WidgetGlobals, type WidgetHost, type WidgetHostComponents, type WidgetHostEnvironment, type WidgetHostEnvironmentInputs, WidgetHostProvider, type WidgetHostProviderProps, type WidgetHostResolvers, type WidgetHostServices, type WidgetLifecycleEvent, type WidgetModalProps, type WidgetMount, type WidgetSandboxApplied, type WidgetSandboxInfo, WidgetSurfaceHost, WidgetSurfaceHostProvider, type WidgetSurfaceId, type WidgetSurfaceInfo, type WidgetSurfaceKind, type WidgetSurfaceRecord, __internal, detectUIType, detectUiTypeFromTool, getRenderableSurfaceEntries, getToolInputSignature, getUIResourceUri, readToolResultMeta, readToolResultObject, readToolResultServerId, recordAppToolInvocation, resolveSandboxProxyUrl, useAppToolAttribution, useAppToolAttributionResolver, useAppToolInvocationLog, useAppToolsRegistry, usePersistentWidgetSurfaceHost, useToolInputStreaming, useWidgetHost, useWidgetSurfaceStore };
|