sunpeak 0.18.9 → 0.18.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/README.md +12 -0
- package/bin/commands/inspect.mjs +4 -1
- package/bin/commands/start.mjs +2 -1
- package/bin/lib/sandbox-server.mjs +12 -1
- package/dist/chatgpt/index.cjs +1 -1
- package/dist/chatgpt/index.js +1 -1
- package/dist/claude/index.cjs +1 -1
- package/dist/claude/index.js +1 -1
- package/dist/host/chatgpt/index.cjs +1 -1
- package/dist/host/chatgpt/index.js +1 -1
- package/dist/index.cjs +93 -93
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +54 -54
- package/dist/index.js.map +1 -1
- package/dist/inspector/hosts.d.ts +12 -0
- package/dist/inspector/index.cjs +1 -1
- package/dist/inspector/index.js +1 -1
- package/dist/{inspector-CTMccsz9.cjs → inspector-8nPV2A-z.cjs} +93 -51
- package/dist/inspector-8nPV2A-z.cjs.map +1 -0
- package/dist/{inspector-DkS75JCk.js → inspector-Cdo5BK2D.js} +92 -50
- package/dist/inspector-Cdo5BK2D.js.map +1 -0
- package/dist/mcp/index.cjs +69 -62
- package/dist/mcp/index.cjs.map +1 -1
- package/dist/mcp/index.js +63 -56
- package/dist/mcp/index.js.map +1 -1
- package/dist/mcp/production-server.d.ts +12 -0
- package/dist/{protocol-DJmRaBzO.js → protocol-BfAACnv0.js} +14 -9
- package/dist/{protocol-DJmRaBzO.js.map → protocol-BfAACnv0.js.map} +1 -1
- package/dist/{protocol-jbxhzcnS.cjs → protocol-C7kTcBr_.cjs} +14 -9
- package/dist/{protocol-jbxhzcnS.cjs.map → protocol-C7kTcBr_.cjs.map} +1 -1
- package/dist/style.css +36 -1
- package/dist/{use-app-BNbz1uzj.js → use-app-CfP9VypY.js} +107 -56
- package/dist/use-app-CfP9VypY.js.map +1 -0
- package/dist/{use-app-Dqh20JPP.cjs → use-app-CzcYw1Kz.cjs} +165 -114
- package/dist/use-app-CzcYw1Kz.cjs.map +1 -0
- package/package.json +3 -3
- package/template/README.md +12 -0
- package/template/dist/albums/albums.html +16 -15
- package/template/dist/albums/albums.json +1 -1
- package/template/dist/carousel/carousel.html +20 -19
- package/template/dist/carousel/carousel.json +1 -1
- package/template/dist/map/map.html +7 -6
- package/template/dist/map/map.json +1 -1
- package/template/dist/review/review.html +6 -5
- package/template/dist/review/review.json +1 -1
- package/template/node_modules/.vite/deps/_metadata.json +3 -3
- package/template/node_modules/.vite-mcp/deps/@modelcontextprotocol_ext-apps.js +49 -49
- package/template/node_modules/.vite-mcp/deps/@modelcontextprotocol_ext-apps.js.map +1 -1
- package/template/node_modules/.vite-mcp/deps/@modelcontextprotocol_ext-apps_app-bridge.js +49 -49
- package/template/node_modules/.vite-mcp/deps/@modelcontextprotocol_ext-apps_app-bridge.js.map +1 -1
- package/template/node_modules/.vite-mcp/deps/@modelcontextprotocol_ext-apps_react.js +89 -89
- package/template/node_modules/.vite-mcp/deps/@modelcontextprotocol_ext-apps_react.js.map +1 -1
- package/template/node_modules/.vite-mcp/deps/_metadata.json +24 -24
- package/template/node_modules/.vite-mcp/deps/{protocol-CTflwIfG.js → protocol-B_qKkui_.js} +14 -9
- package/template/node_modules/.vite-mcp/deps/protocol-B_qKkui_.js.map +1 -0
- package/template/src/resources/carousel/carousel.test.tsx +16 -2
- package/template/src/resources/carousel/carousel.tsx +42 -14
- package/template/src/resources/carousel/components/carousel.tsx +20 -0
- package/template/src/resources/carousel/components/index.ts +1 -0
- package/template/src/resources/carousel/components/place-detail.tsx +153 -0
- package/template/tests/e2e/carousel.spec.ts +125 -0
- package/template/tests/live/carousel.spec.ts +2 -2
- package/template/tests/simulations/show-carousel.json +54 -5
- package/dist/inspector-CTMccsz9.cjs.map +0 -1
- package/dist/inspector-DkS75JCk.js.map +0 -1
- package/dist/use-app-BNbz1uzj.js.map +0 -1
- package/dist/use-app-Dqh20JPP.cjs.map +0 -1
- package/template/node_modules/.vite-mcp/deps/protocol-CTflwIfG.js.map +0 -1
package/dist/index.js
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
|
-
import { $ as literal, L as RequestIdSchema, Q as boolean, R as ResourceLinkSchema, U as ToolSchema, X as _undefined, Z as array, _ as ImplementationSchema, a as CallToolResultSchema, at as unknown, et as number, it as union, nt as record, p as EmbeddedResourceSchema, rt as string, s as ContentBlockSchema, tt as object } from "./protocol-
|
|
2
|
-
import { $ as
|
|
3
|
-
import { S as DEFAULT_STYLE_VARIABLES } from "./inspector-
|
|
1
|
+
import { $ as literal, L as RequestIdSchema, Q as boolean, R as ResourceLinkSchema, U as ToolSchema, X as _undefined, Z as array, _ as ImplementationSchema, a as CallToolResultSchema, at as unknown, et as number, it as union, nt as record, p as EmbeddedResourceSchema, rt as string, s as ContentBlockSchema, tt as object } from "./protocol-BfAACnv0.js";
|
|
2
|
+
import { $ as v, A as UX, B as i, C as OQ, D as RX, E as R, F as a, G as m, H as k, I as b, J as p, K as n, L as c, M as VQ, N as WQ, O as T, P as _, Q as u, R as f, S as O, T as PQ, U as kQ, V as jQ, W as l, X as r, Y as q, Z as s, _ as JQ, a as B, at as zQ, b as LQ, c as D, d as F, et as w, f as FQ, g as IQ, h as I, i as AQ, it as z, j as V, k as U, l as E, m as GQ, n as AppProvider, nt as x, o as BQ, p as G, q as o, r as A, rt as y, s as C, t as useApp, tt as wQ, u as EQ, v as K, w as P, x as NQ, y as L, z as g } from "./use-app-CfP9VypY.js";
|
|
3
|
+
import { S as DEFAULT_STYLE_VARIABLES } from "./inspector-Cdo5BK2D.js";
|
|
4
4
|
import { detectHost, isChatGPT, isClaude } from "./host/index.js";
|
|
5
5
|
import { t as inspector_exports } from "./inspector/index.js";
|
|
6
6
|
import { t as chatgpt_exports } from "./chatgpt/index.js";
|
|
7
7
|
import * as React from "react";
|
|
8
8
|
import { forwardRef, useCallback, useEffect, useMemo, useRef, useState, useSyncExternalStore } from "react";
|
|
9
9
|
import { jsx } from "react/jsx-runtime";
|
|
10
|
-
//#region ../../node_modules/.pnpm/@modelcontextprotocol+ext-apps@1.3.
|
|
11
|
-
var
|
|
10
|
+
//#region ../../node_modules/.pnpm/@modelcontextprotocol+ext-apps@1.3.2_@modelcontextprotocol+sdk@1.29.0_zod@4.3.6__react-_38e5f6c50a4ca9cf3f1dffc73a60c951/node_modules/@modelcontextprotocol/ext-apps/dist/src/react/index.js
|
|
11
|
+
var h = union([literal("light"), literal("dark")]).describe("Color theme preference for the host environment."), j = union([
|
|
12
12
|
literal("inline"),
|
|
13
13
|
literal("fullscreen"),
|
|
14
14
|
literal("pip")
|
|
@@ -119,7 +119,7 @@ object({
|
|
|
119
119
|
method: literal("ui/notifications/sandbox-proxy-ready"),
|
|
120
120
|
params: object({})
|
|
121
121
|
});
|
|
122
|
-
var
|
|
122
|
+
var V$1 = object({
|
|
123
123
|
connectDomains: array(string()).optional().describe(`Origins for network requests (fetch/XHR/WebSocket).
|
|
124
124
|
|
|
125
125
|
- Maps to CSP \`connect-src\` directive
|
|
@@ -127,7 +127,7 @@ var P$1 = object({
|
|
|
127
127
|
resourceDomains: array(string()).optional().describe("Origins for static resources (images, scripts, stylesheets, fonts, media).\n\n- Maps to CSP `img-src`, `script-src`, `style-src`, `font-src`, `media-src` directives\n- Wildcard subdomains supported: `https://*.example.com`\n- Empty or omitted → no network resources (secure default)"),
|
|
128
128
|
frameDomains: array(string()).optional().describe("Origins for nested iframes.\n\n- Maps to CSP `frame-src` directive\n- Empty or omitted → no nested iframes allowed (`frame-src 'none'`)"),
|
|
129
129
|
baseUriDomains: array(string()).optional().describe("Allowed base URIs for the document.\n\n- Maps to CSP `base-uri` directive\n- Empty or omitted → only same origin allowed (`base-uri 'self'`)")
|
|
130
|
-
}),
|
|
130
|
+
}), P$1 = object({
|
|
131
131
|
camera: object({}).optional().describe("Request camera access.\n\nMaps to Permission Policy `camera` feature."),
|
|
132
132
|
microphone: object({}).optional().describe("Request microphone access.\n\nMaps to Permission Policy `microphone` feature."),
|
|
133
133
|
geolocation: object({}).optional().describe("Request geolocation access.\n\nMaps to Permission Policy `geolocation` feature."),
|
|
@@ -152,16 +152,16 @@ object({
|
|
|
152
152
|
method: literal("ui/notifications/tool-cancelled"),
|
|
153
153
|
params: object({ reason: string().optional().describe("Optional reason for the cancellation (e.g., \"user action\", \"timeout\").") })
|
|
154
154
|
});
|
|
155
|
-
var
|
|
155
|
+
var m$1 = object({ fonts: string().optional() }), c$1 = object({
|
|
156
156
|
variables: qJ.optional().describe("CSS variables for theming the app."),
|
|
157
|
-
css:
|
|
157
|
+
css: m$1.optional().describe("CSS blocks that apps can inject.")
|
|
158
158
|
});
|
|
159
159
|
object({
|
|
160
160
|
method: literal("ui/resource-teardown"),
|
|
161
161
|
params: object({})
|
|
162
162
|
});
|
|
163
163
|
record(string(), unknown());
|
|
164
|
-
var
|
|
164
|
+
var U$1 = object({
|
|
165
165
|
text: object({}).optional().describe("Host supports text content blocks."),
|
|
166
166
|
image: object({}).optional().describe("Host supports image content blocks."),
|
|
167
167
|
audio: object({}).optional().describe("Host supports audio content blocks."),
|
|
@@ -173,7 +173,7 @@ object({
|
|
|
173
173
|
method: literal("ui/notifications/request-teardown"),
|
|
174
174
|
params: object({}).optional()
|
|
175
175
|
});
|
|
176
|
-
var
|
|
176
|
+
var r$2 = object({
|
|
177
177
|
experimental: object({}).optional().describe("Experimental features (structure TBD)."),
|
|
178
178
|
openLinks: object({}).optional().describe("Host supports opening external URLs."),
|
|
179
179
|
downloadFile: object({}).optional().describe("Host supports file downloads via ui/download-file."),
|
|
@@ -181,23 +181,23 @@ var l = object({
|
|
|
181
181
|
serverResources: object({ listChanged: boolean().optional().describe("Host supports resources/list_changed notifications.") }).optional().describe("Host can proxy resource reads to the MCP server."),
|
|
182
182
|
logging: object({}).optional().describe("Host accepts log messages."),
|
|
183
183
|
sandbox: object({
|
|
184
|
-
permissions:
|
|
185
|
-
csp:
|
|
184
|
+
permissions: P$1.optional().describe("Permissions granted by the host (camera, microphone, geolocation)."),
|
|
185
|
+
csp: V$1.optional().describe("CSP domains approved by the host.")
|
|
186
186
|
}).optional().describe("Sandbox configuration applied by the host."),
|
|
187
|
-
updateModelContext:
|
|
188
|
-
message:
|
|
189
|
-
}),
|
|
187
|
+
updateModelContext: U$1.optional().describe("Host accepts context updates (ui/update-model-context) to be included in the model's context for future turns."),
|
|
188
|
+
message: U$1.optional().describe("Host supports receiving content messages (ui/message) from the view.")
|
|
189
|
+
}), l$1 = object({
|
|
190
190
|
experimental: object({}).optional().describe("Experimental features (structure TBD)."),
|
|
191
191
|
tools: object({ listChanged: boolean().optional().describe("App supports tools/list_changed notifications.") }).optional().describe("App exposes MCP-style tools that the host can call."),
|
|
192
|
-
availableDisplayModes: array(
|
|
192
|
+
availableDisplayModes: array(j).optional().describe("Display modes the app supports.")
|
|
193
193
|
});
|
|
194
194
|
object({
|
|
195
195
|
method: literal("ui/notifications/initialized"),
|
|
196
196
|
params: object({}).optional()
|
|
197
197
|
});
|
|
198
198
|
object({
|
|
199
|
-
csp:
|
|
200
|
-
permissions:
|
|
199
|
+
csp: V$1.optional().describe("Content Security Policy configuration for UI resources."),
|
|
200
|
+
permissions: P$1.optional().describe("Sandbox permissions requested by the UI resource."),
|
|
201
201
|
domain: string().optional().describe(`Dedicated origin for view sandbox.
|
|
202
202
|
|
|
203
203
|
Useful when views need stable, dedicated origins for OAuth callbacks, CORS policies, or API key allowlists.
|
|
@@ -217,13 +217,13 @@ Boolean requesting whether a visible border and background is provided by the ho
|
|
|
217
217
|
});
|
|
218
218
|
object({
|
|
219
219
|
method: literal("ui/request-display-mode"),
|
|
220
|
-
params: object({ mode:
|
|
220
|
+
params: object({ mode: j.describe("The display mode being requested.") })
|
|
221
221
|
});
|
|
222
|
-
object({ mode:
|
|
223
|
-
var
|
|
222
|
+
object({ mode: j.describe("The display mode that was actually set. May differ from requested if not supported.") }).passthrough();
|
|
223
|
+
var i$1 = union([literal("model"), literal("app")]).describe("Tool visibility scope - who can access the tool.");
|
|
224
224
|
object({
|
|
225
225
|
resourceUri: string().optional(),
|
|
226
|
-
visibility: array(
|
|
226
|
+
visibility: array(i$1).optional().describe(`Who can access this tool. Default: ["model", "app"]
|
|
227
227
|
- "model": Tool visible to and callable by the agent
|
|
228
228
|
- "app": Tool callable by the app from this server only`)
|
|
229
229
|
});
|
|
@@ -244,23 +244,23 @@ object({
|
|
|
244
244
|
params: object({
|
|
245
245
|
html: string().describe("HTML content to load into the inner iframe."),
|
|
246
246
|
sandbox: string().optional().describe("Optional override for the inner iframe's sandbox attribute."),
|
|
247
|
-
csp:
|
|
248
|
-
permissions:
|
|
247
|
+
csp: V$1.optional().describe("CSP configuration from resource metadata."),
|
|
248
|
+
permissions: P$1.optional().describe("Sandbox permissions from resource metadata.")
|
|
249
249
|
})
|
|
250
250
|
});
|
|
251
251
|
object({
|
|
252
252
|
method: literal("ui/notifications/tool-result"),
|
|
253
253
|
params: CallToolResultSchema.describe("Standard MCP tool execution result.")
|
|
254
254
|
});
|
|
255
|
-
var
|
|
255
|
+
var C$1 = object({
|
|
256
256
|
toolInfo: object({
|
|
257
257
|
id: RequestIdSchema.optional().describe("JSON-RPC id of the tools/call request."),
|
|
258
258
|
tool: ToolSchema.describe("Tool definition including name, inputSchema, etc.")
|
|
259
259
|
}).optional().describe("Metadata of the tool call that instantiated this App."),
|
|
260
|
-
theme:
|
|
261
|
-
styles:
|
|
262
|
-
displayMode:
|
|
263
|
-
availableDisplayModes: array(
|
|
260
|
+
theme: h.optional().describe("Current color theme preference."),
|
|
261
|
+
styles: c$1.optional().describe("Style configuration for theming the app."),
|
|
262
|
+
displayMode: j.optional().describe("How the UI is currently displayed."),
|
|
263
|
+
availableDisplayModes: array(j).optional().describe("Display modes the host supports."),
|
|
264
264
|
containerDimensions: union([object({ height: number().describe("Fixed container height in pixels.") }), object({ maxHeight: union([number(), _undefined()]).optional().describe("Maximum container height in pixels.") })]).and(union([object({ width: number().describe("Fixed container width in pixels.") }), object({ maxWidth: union([number(), _undefined()]).optional().describe("Maximum container width in pixels.") })])).optional().describe(`Container dimensions. Represents the dimensions of the iframe or other
|
|
265
265
|
container holding the app. Specify either width or maxWidth, and either height or maxHeight.`),
|
|
266
266
|
locale: string().optional().describe("User's language and region preference in BCP 47 format."),
|
|
@@ -284,7 +284,7 @@ container holding the app. Specify either width or maxWidth, and either height o
|
|
|
284
284
|
}).passthrough();
|
|
285
285
|
object({
|
|
286
286
|
method: literal("ui/notifications/host-context-changed"),
|
|
287
|
-
params:
|
|
287
|
+
params: C$1.describe("Partial context update containing only changed fields.")
|
|
288
288
|
});
|
|
289
289
|
object({
|
|
290
290
|
method: literal("ui/update-model-context"),
|
|
@@ -297,29 +297,29 @@ object({
|
|
|
297
297
|
method: literal("ui/initialize"),
|
|
298
298
|
params: object({
|
|
299
299
|
appInfo: ImplementationSchema.describe("App identification (name and version)."),
|
|
300
|
-
appCapabilities:
|
|
300
|
+
appCapabilities: l$1.describe("Features and capabilities this app provides."),
|
|
301
301
|
protocolVersion: string().describe("Protocol version this app supports.")
|
|
302
302
|
})
|
|
303
303
|
});
|
|
304
304
|
object({
|
|
305
305
|
protocolVersion: string().describe("Negotiated protocol version string (e.g., \"2025-11-21\")."),
|
|
306
306
|
hostInfo: ImplementationSchema.describe("Host application identification and version."),
|
|
307
|
-
hostCapabilities:
|
|
308
|
-
hostContext:
|
|
307
|
+
hostCapabilities: r$2.describe("Features and capabilities provided by the host."),
|
|
308
|
+
hostContext: C$1.describe("Rich context about the host environment.")
|
|
309
309
|
}).passthrough();
|
|
310
|
-
function
|
|
310
|
+
function _$1() {
|
|
311
311
|
let K = document.documentElement.getAttribute("data-theme");
|
|
312
312
|
if (K === "dark" || K === "light") return K;
|
|
313
313
|
return document.documentElement.classList.contains("dark") ? "dark" : "light";
|
|
314
314
|
}
|
|
315
|
-
function
|
|
315
|
+
function O$1(K) {
|
|
316
316
|
let Q = document.documentElement;
|
|
317
317
|
Q.setAttribute("data-theme", K), Q.style.colorScheme = K;
|
|
318
318
|
}
|
|
319
|
-
function
|
|
319
|
+
function q$1(K, Q = document.documentElement) {
|
|
320
320
|
for (let [X, Y] of Object.entries(K)) if (Y !== void 0) Q.style.setProperty(X, Y);
|
|
321
321
|
}
|
|
322
|
-
function
|
|
322
|
+
function D$1(K) {
|
|
323
323
|
if (document.getElementById("__mcp-host-fonts")) return;
|
|
324
324
|
let X = document.createElement("style");
|
|
325
325
|
X.id = "__mcp-host-fonts", X.textContent = K, document.head.appendChild(X);
|
|
@@ -331,10 +331,10 @@ function eK(K, Q) {
|
|
|
331
331
|
}, [K, Q]);
|
|
332
332
|
}
|
|
333
333
|
function XQ() {
|
|
334
|
-
let [K, Q] = useState(
|
|
334
|
+
let [K, Q] = useState(_$1);
|
|
335
335
|
return useEffect(() => {
|
|
336
336
|
let X = new MutationObserver(() => {
|
|
337
|
-
Q(
|
|
337
|
+
Q(_$1());
|
|
338
338
|
});
|
|
339
339
|
return X.observe(document.documentElement, {
|
|
340
340
|
attributes: !0,
|
|
@@ -349,14 +349,14 @@ function rJ(K, Q) {
|
|
|
349
349
|
let X = useRef(!1);
|
|
350
350
|
useEffect(() => {
|
|
351
351
|
if (X.current) return;
|
|
352
|
-
if (Q?.theme)
|
|
353
|
-
if (Q?.styles?.variables)
|
|
352
|
+
if (Q?.theme) O$1(Q.theme);
|
|
353
|
+
if (Q?.styles?.variables) q$1(Q.styles.variables);
|
|
354
354
|
if (Q?.theme || Q?.styles?.variables) X.current = !0;
|
|
355
355
|
}, [Q]), useEffect(() => {
|
|
356
356
|
if (!K) return;
|
|
357
357
|
K.onhostcontextchanged = (Y) => {
|
|
358
|
-
if (Y.theme)
|
|
359
|
-
if (Y.styles?.variables)
|
|
358
|
+
if (Y.theme) O$1(Y.theme);
|
|
359
|
+
if (Y.styles?.variables) q$1(Y.styles.variables);
|
|
360
360
|
};
|
|
361
361
|
}, [K]);
|
|
362
362
|
}
|
|
@@ -364,15 +364,15 @@ function lJ(K, Q) {
|
|
|
364
364
|
let X = useRef(!1);
|
|
365
365
|
useEffect(() => {
|
|
366
366
|
if (X.current) return;
|
|
367
|
-
if (Q?.styles?.css?.fonts)
|
|
367
|
+
if (Q?.styles?.css?.fonts) D$1(Q.styles.css.fonts), X.current = !0;
|
|
368
368
|
}, [Q]), useEffect(() => {
|
|
369
369
|
if (!K) return;
|
|
370
370
|
K.onhostcontextchanged = (Y) => {
|
|
371
|
-
if (Y.styles?.css?.fonts)
|
|
371
|
+
if (Y.styles?.css?.fonts) D$1(Y.styles.css.fonts);
|
|
372
372
|
};
|
|
373
373
|
}, [K]);
|
|
374
374
|
}
|
|
375
|
-
function GQ(K, Q) {
|
|
375
|
+
function GQ$1(K, Q) {
|
|
376
376
|
rJ(K, Q), lJ(K, Q);
|
|
377
377
|
}
|
|
378
378
|
//#endregion
|
|
@@ -392,8 +392,8 @@ var registries$1 = /* @__PURE__ */ new WeakMap();
|
|
|
392
392
|
* Host-provided variables override defaults since they're applied after.
|
|
393
393
|
*/
|
|
394
394
|
function applyStyles(variables) {
|
|
395
|
-
|
|
396
|
-
if (variables)
|
|
395
|
+
FQ(DEFAULT_STYLE_VARIABLES);
|
|
396
|
+
if (variables) FQ(variables);
|
|
397
397
|
}
|
|
398
398
|
function getRegistry$1(app) {
|
|
399
399
|
let subs = registries$1.get(app);
|
|
@@ -401,15 +401,15 @@ function getRegistry$1(app) {
|
|
|
401
401
|
subs = /* @__PURE__ */ new Set();
|
|
402
402
|
registries$1.set(app, subs);
|
|
403
403
|
const ctx = app.getHostContext();
|
|
404
|
-
if (ctx?.theme)
|
|
404
|
+
if (ctx?.theme) AQ(ctx.theme);
|
|
405
405
|
applyStyles(ctx?.styles?.variables);
|
|
406
|
-
if (ctx?.styles?.css?.fonts)
|
|
406
|
+
if (ctx?.styles?.css?.fonts) PQ(ctx.styles.css.fonts);
|
|
407
407
|
let debounceTimer = null;
|
|
408
408
|
app.onhostcontextchanged = () => {
|
|
409
409
|
const ctx = app.getHostContext();
|
|
410
|
-
if (ctx?.theme)
|
|
410
|
+
if (ctx?.theme) AQ(ctx.theme);
|
|
411
411
|
applyStyles(ctx?.styles?.variables);
|
|
412
|
-
if (ctx?.styles?.css?.fonts)
|
|
412
|
+
if (ctx?.styles?.css?.fonts) PQ(ctx.styles.css.fonts);
|
|
413
413
|
if (debounceTimer) clearTimeout(debounceTimer);
|
|
414
414
|
debounceTimer = setTimeout(() => {
|
|
415
415
|
debounceTimer = null;
|
|
@@ -3205,6 +3205,6 @@ var prefersReducedMotion = createMediaQueryFn("(prefers-reduced-motion: reduce)"
|
|
|
3205
3205
|
var isPrimarilyTouchDevice = createMediaQueryFn("(pointer: coarse)");
|
|
3206
3206
|
var isHoverAvailable = createMediaQueryFn("(hover: hover)");
|
|
3207
3207
|
//#endregion
|
|
3208
|
-
export {
|
|
3208
|
+
export { kQ as App, AppProvider, u as DOWNLOAD_FILE_METHOD, c as HOST_CONTEXT_CHANGED_METHOD, o as INITIALIZED_METHOD, a as INITIALIZE_METHOD, E as LATEST_PROTOCOL_VERSION, f as MESSAGE_METHOD, x as McpUiAppCapabilitiesSchema, D as McpUiDisplayModeSchema, LQ as McpUiDownloadFileRequestSchema, _ as McpUiDownloadFileResultSchema, C as McpUiHostCapabilitiesSchema, R as McpUiHostContextChangedNotificationSchema, T as McpUiHostContextSchema, b as McpUiHostCssSchema, k as McpUiHostStylesSchema, IQ as McpUiInitializeRequestSchema, U as McpUiInitializeResultSchema, NQ as McpUiInitializedNotificationSchema, BQ as McpUiMessageRequestSchema, O as McpUiMessageResultSchema, JQ as McpUiOpenLinkRequestSchema, B as McpUiOpenLinkResultSchema, EQ as McpUiRequestDisplayModeRequestSchema, P as McpUiRequestDisplayModeResultSchema, WQ as McpUiRequestTeardownNotificationSchema, G as McpUiResourceCspSchema, jQ as McpUiResourceMetaSchema, V as McpUiResourcePermissionsSchema, F as McpUiResourceTeardownRequestSchema, VQ as McpUiResourceTeardownResultSchema, GQ as McpUiSizeChangedNotificationSchema, L as McpUiSupportedContentBlockModalitiesSchema, v as McpUiThemeSchema, A as McpUiToolCancelledNotificationSchema, I as McpUiToolInputNotificationSchema, w as McpUiToolInputPartialNotificationSchema, zQ as McpUiToolMetaSchema, q as McpUiToolResultNotificationSchema, g as McpUiToolVisibilitySchema, OQ as McpUiUpdateModelContextRequestSchema, y as OPEN_LINK_METHOD, K as PostMessageTransport, s as REQUEST_DISPLAY_MODE_METHOD, p as REQUEST_TEARDOWN_METHOD, UX as RESOURCE_MIME_TYPE, n as RESOURCE_TEARDOWN_METHOD, RX as RESOURCE_URI_META_KEY, m as SIZE_CHANGED_METHOD, SafeArea, r as TOOL_CANCELLED_METHOD, i as TOOL_INPUT_METHOD, z as TOOL_INPUT_PARTIAL_METHOD, l as TOOL_RESULT_METHOD, AQ as applyDocumentTheme, PQ as applyHostFonts, FQ as applyHostStyleVariables, chatgpt_exports as chatgpt, cn, detectHost, wQ as getDocumentTheme, inspector_exports as inspector, isChatGPT, isClaude, isHoverAvailable, isPrimarilyTouchDevice, prefersReducedMotion, useApp, useAppState, useAppTools, eK as useAutoResize, useCallServerTool, useDeviceCapabilities, useDisplayMode, XQ as useDocumentTheme, useDownloadFile, useHostContext, lJ as useHostFonts, useHostInfo, rJ as useHostStyleVariables, GQ$1 as useHostStyles, useIsMobile, useListServerResources, useLocale, useOpenLink, usePlatform, useReadServerResource, useRequestDisplayMode, useRequestTeardown, useSafeArea, useSendLog, useSendMessage, useStyles, useTeardown, useTheme, useTimeZone, useToolData, useToolInfo, useUpdateModelContext, useUserAgent, useViewport };
|
|
3209
3209
|
|
|
3210
3210
|
//# sourceMappingURL=index.js.map
|