sunpeak 0.20.23 → 0.20.28

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.
Files changed (60) hide show
  1. package/README.md +29 -4
  2. package/bin/commands/inspect.mjs +18 -0
  3. package/dist/chatgpt/index.cjs +1 -1
  4. package/dist/chatgpt/index.js +1 -1
  5. package/dist/claude/index.cjs +1 -1
  6. package/dist/claude/index.js +1 -1
  7. package/dist/embed.css +2 -0
  8. package/dist/host/chatgpt/index.cjs +1 -1
  9. package/dist/host/chatgpt/index.js +1 -1
  10. package/dist/index.cjs +3 -3
  11. package/dist/index.cjs.map +1 -1
  12. package/dist/index.js +3 -3
  13. package/dist/index.js.map +1 -1
  14. package/dist/inspector/app-flatten.d.ts +7 -0
  15. package/dist/inspector/app-types.d.ts +83 -0
  16. package/dist/inspector/iframe-resource.d.ts +19 -1
  17. package/dist/inspector/index.cjs +3 -1
  18. package/dist/inspector/index.cjs.map +1 -1
  19. package/dist/inspector/index.d.ts +2 -0
  20. package/dist/inspector/index.js +3 -2
  21. package/dist/inspector/index.js.map +1 -1
  22. package/dist/inspector/inline-helper-script.d.ts +22 -0
  23. package/dist/inspector/inspector.d.ts +14 -1
  24. package/dist/inspector/simple-sidebar.d.ts +13 -1
  25. package/dist/inspector/use-inspector-state.d.ts +1 -0
  26. package/dist/{inspector-DtEighD9.cjs → inspector-DSX76Z-W.cjs} +340 -28
  27. package/dist/inspector-DSX76Z-W.cjs.map +1 -0
  28. package/dist/{inspector-CJNvLoHo.js → inspector-tIphAHtK.js} +336 -30
  29. package/dist/inspector-tIphAHtK.js.map +1 -0
  30. package/dist/mcp/index.cjs +1 -1
  31. package/dist/mcp/index.cjs.map +1 -1
  32. package/dist/mcp/index.js +1 -1
  33. package/dist/mcp/index.js.map +1 -1
  34. package/dist/sandbox-proxy.html +173 -0
  35. package/dist/style.css +9 -1
  36. package/dist/types/simulation.d.ts +3 -8
  37. package/dist/{use-app-cSBm5Pjl.js → use-app-C2pGHlnF.js} +2 -2
  38. package/dist/{use-app-cSBm5Pjl.js.map → use-app-C2pGHlnF.js.map} +1 -1
  39. package/dist/{use-app-CxtSfkSF.cjs → use-app-DIWh7-3f.cjs} +2 -2
  40. package/dist/{use-app-CxtSfkSF.cjs.map → use-app-DIWh7-3f.cjs.map} +1 -1
  41. package/package.json +6 -3
  42. package/template/dist/albums/albums.html +1 -1
  43. package/template/dist/albums/albums.json +1 -1
  44. package/template/dist/carousel/carousel.html +1 -1
  45. package/template/dist/carousel/carousel.json +1 -1
  46. package/template/dist/map/map.html +1 -1
  47. package/template/dist/map/map.json +1 -1
  48. package/template/dist/review/review.html +1 -1
  49. package/template/dist/review/review.json +1 -1
  50. package/template/node_modules/.vite/deps/_metadata.json +3 -3
  51. package/template/node_modules/.vite-mcp/deps/@modelcontextprotocol_ext-apps.js +1 -1
  52. package/template/node_modules/.vite-mcp/deps/@modelcontextprotocol_ext-apps.js.map +1 -1
  53. package/template/node_modules/.vite-mcp/deps/@modelcontextprotocol_ext-apps_app-bridge.js +1 -1
  54. package/template/node_modules/.vite-mcp/deps/@modelcontextprotocol_ext-apps_app-bridge.js.map +1 -1
  55. package/template/node_modules/.vite-mcp/deps/@modelcontextprotocol_ext-apps_react.js +1 -1
  56. package/template/node_modules/.vite-mcp/deps/@modelcontextprotocol_ext-apps_react.js.map +1 -1
  57. package/template/node_modules/.vite-mcp/deps/_metadata.json +22 -22
  58. package/template/tests/e2e/visual.spec.ts-snapshots/albums-page-light-claude-linux.png +0 -0
  59. package/dist/inspector-CJNvLoHo.js.map +0 -1
  60. package/dist/inspector-DtEighD9.cjs.map +0 -1
@@ -2,7 +2,7 @@ import { i as __toESM, r as __require } from "./chunk-C-Qwzh9l.js";
2
2
  import { t as require_react } from "./react.js";
3
3
  import { At as _undefined, Bn as record, Dn as never, Lt as boolean, Mn as object, Nt as array, Wn as string, jn as number, nr as union, rr as unknown, vn as literal, wi as config } from "./external-C3YuD5Yz.js";
4
4
  import { A as ToolSchema, D as ResourceLinkSchema, E as RequestIdSchema, S as PingRequestSchema, T as ReadResourceResultSchema, a as ContentBlockSchema, c as CreateMessageResultWithToolsSchema, d as ImplementationSchema, f as JSONRPCMessageSchema, i as CallToolResultSchema, l as EmbeddedResourceSchema, n as mergeCapabilities, r as CallToolRequestSchema, s as CreateMessageResultSchema, t as Protocol, u as EmptyResultSchema, v as ListResourcesResultSchema, y as ListToolsRequestSchema } from "./protocol-T4pEDz2P.js";
5
- //#region ../../../node_modules/.pnpm/@modelcontextprotocol+ext-apps@1.7.1_@modelcontextprotocol+sdk@1.29.0_zod@4.4.3__react-_3f5c1a6a4033ae62a19a2bb834f0e050/node_modules/@modelcontextprotocol/ext-apps/dist/src/react/index.js
5
+ //#region ../../../node_modules/.pnpm/@modelcontextprotocol+ext-apps@1.7.2_@modelcontextprotocol+sdk@1.29.0_zod@4.4.3__react-_f5b843da9146ebea748e10ad8dfce46a/node_modules/@modelcontextprotocol/ext-apps/dist/src/react/index.js
6
6
  var import_react = /* @__PURE__ */ __toESM(require_react(), 1);
7
7
  ((K) => typeof __require < "u" ? __require : typeof Proxy < "u" ? new Proxy(K, { get: (Q, X) => (typeof __require < "u" ? __require : Q)[X] }) : K)(function(K) {
8
8
  if (typeof __require < "u") return __require.apply(this, arguments);
@@ -1 +1 @@
1
- {"version":3,"file":"@modelcontextprotocol_ext-apps_react.js","names":["KJ","PJ","J.union","J.literal","J.record","J.string","J.undefined","J.object","J.boolean","J.array","J.number","J.unknown","J.never","FJ","IJ","r","DJ","EJ","UJ","l","nJ","uJ","hJ","pJ","mJ","oJ","iJ","rJ","cJ","lJ"],"sources":["../../../../../../node_modules/.pnpm/@modelcontextprotocol+ext-apps@1.7.1_@modelcontextprotocol+sdk@1.29.0_zod@4.4.3__react-_3f5c1a6a4033ae62a19a2bb834f0e050/node_modules/@modelcontextprotocol/ext-apps/dist/src/react/index.js"],"sourcesContent":["var JJ=((K)=>typeof require<\"u\"?require:typeof Proxy<\"u\"?new Proxy(K,{get:(Q,X)=>(typeof require<\"u\"?require:Q)[X]}):K)(function(K){if(typeof require<\"u\")return require.apply(this,arguments);throw Error('Dynamic require of \"'+K+'\" is not supported')});import{useEffect as sJ,useState as c}from\"react\";import{mergeCapabilities as uJ}from\"@modelcontextprotocol/sdk/shared/protocol.js\";import{CallToolRequestSchema as hJ,CallToolResultSchema as mJ,CreateMessageResultSchema as cJ,CreateMessageResultWithToolsSchema as rJ,EmptyResultSchema as lJ,ListResourcesResultSchema as iJ,ListToolsRequestSchema as pJ,PingRequestSchema as nJ,ReadResourceResultSchema as oJ}from\"@modelcontextprotocol/sdk/types.js\";import{Protocol as KJ}from\"@modelcontextprotocol/sdk/shared/protocol.js\";class z extends KJ{_registeredMethods=new Set;_eventSlots=new Map;onEventDispatch(K,Q){}_ensureEventSlot(K){let Q=this._eventSlots.get(K);if(!Q){let X=this.eventSchemas[K];if(!X)throw Error(`Unknown event: ${String(K)}`);Q={listeners:[]},this._eventSlots.set(K,Q);let Y=X.shape.method.value;this._registeredMethods.add(Y);let Z=Q;super.setNotificationHandler(X,($)=>{let G=$.params;this.onEventDispatch(K,G),Z.onHandler?.(G);for(let j of[...Z.listeners])j(G)})}return Q}setEventHandler(K,Q){let X=this._ensureEventSlot(K);if(X.onHandler&&Q)console.warn(`[MCP Apps] on${String(K)} handler replaced. Use addEventListener(\"${String(K)}\", …) to add multiple listeners without replacing.`);X.onHandler=Q}getEventHandler(K){return this._eventSlots.get(K)?.onHandler}addEventListener(K,Q){this._ensureEventSlot(K).listeners.push(Q)}removeEventListener(K,Q){let X=this._eventSlots.get(K);if(!X)return;let Y=X.listeners.indexOf(Q);if(Y!==-1)X.listeners.splice(Y,1)}setRequestHandler=(K,Q)=>{this._assertMethodNotRegistered(K,\"setRequestHandler\"),super.setRequestHandler(K,Q)};setNotificationHandler=(K,Q)=>{this._assertMethodNotRegistered(K,\"setNotificationHandler\"),super.setNotificationHandler(K,Q)};warnIfRequestHandlerReplaced(K,Q,X){if(Q&&X)console.warn(`[MCP Apps] ${K} handler replaced. Previous handler will no longer be called.`)}replaceRequestHandler=(K,Q)=>{let X=K.shape.method.value;this._registeredMethods.add(X),super.setRequestHandler(K,Q)};_assertMethodNotRegistered(K,Q){let X=K.shape.method.value;if(this._registeredMethods.has(X))throw Error(`Handler for \"${X}\" already registered (via ${Q}). Use addEventListener() to attach multiple listeners, or the on* setter for replace semantics.`);this._registeredMethods.add(X)}}import{JSONRPCMessageSchema as PJ}from\"@modelcontextprotocol/sdk/types.js\";var w=\"2026-01-26\",QJ=\"ui/open-link\",XJ=\"ui/download-file\",YJ=\"ui/message\",ZJ=\"ui/notifications/sandbox-proxy-ready\",$J=\"ui/notifications/sandbox-resource-ready\",GJ=\"ui/notifications/size-changed\",jJ=\"ui/notifications/tool-input\",H=\"ui/notifications/tool-input-partial\",WJ=\"ui/notifications/tool-result\",LJ=\"ui/notifications/tool-cancelled\",NJ=\"ui/notifications/host-context-changed\",BJ=\"ui/notifications/request-teardown\",VJ=\"ui/resource-teardown\",_J=\"ui/initialize\",OJ=\"ui/notifications/initialized\",qJ=\"ui/request-display-mode\";class B{eventTarget;eventSource;messageListener;constructor(K=window.parent,Q){this.eventTarget=K;this.eventSource=Q;this.messageListener=(X)=>{if(Q&&X.source!==this.eventSource){console.debug(\"Ignoring message from unknown source\",X);return}let Y=PJ.safeParse(X.data);if(Y.success)console.debug(\"Parsed message\",Y.data),this.onmessage?.(Y.data);else if(X.data?.jsonrpc!==\"2.0\")console.debug(\"Ignoring non-JSON-RPC message\",Y.error.message,X);else console.error(\"Failed to parse message\",Y.error.message,X),this.onerror?.(Error(\"Invalid JSON-RPC message received: \"+Y.error.message))}}async start(){window.addEventListener(\"message\",this.messageListener)}async send(K,Q){if(K.method!==H)console.debug(\"Sending message\",K);this.eventTarget.postMessage(K,\"*\")}async close(){window.removeEventListener(\"message\",this.messageListener),this.onclose?.()}onclose;onerror;onmessage;sessionId;setProtocolVersion}import{z as J}from\"zod/v4\";import{ContentBlockSchema as r,CallToolResultSchema as DJ,EmbeddedResourceSchema as FJ,ImplementationSchema as l,RequestIdSchema as EJ,ResourceLinkSchema as IJ,ToolSchema as UJ}from\"@modelcontextprotocol/sdk/types.js\";var i=J.union([J.literal(\"light\"),J.literal(\"dark\")]).describe(\"Color theme preference for the host environment.\"),V=J.union([J.literal(\"inline\"),J.literal(\"fullscreen\"),J.literal(\"pip\")]).describe(\"Display mode for UI presentation.\"),RJ=J.union([J.literal(\"--color-background-primary\"),J.literal(\"--color-background-secondary\"),J.literal(\"--color-background-tertiary\"),J.literal(\"--color-background-inverse\"),J.literal(\"--color-background-ghost\"),J.literal(\"--color-background-info\"),J.literal(\"--color-background-danger\"),J.literal(\"--color-background-success\"),J.literal(\"--color-background-warning\"),J.literal(\"--color-background-disabled\"),J.literal(\"--color-text-primary\"),J.literal(\"--color-text-secondary\"),J.literal(\"--color-text-tertiary\"),J.literal(\"--color-text-inverse\"),J.literal(\"--color-text-ghost\"),J.literal(\"--color-text-info\"),J.literal(\"--color-text-danger\"),J.literal(\"--color-text-success\"),J.literal(\"--color-text-warning\"),J.literal(\"--color-text-disabled\"),J.literal(\"--color-border-primary\"),J.literal(\"--color-border-secondary\"),J.literal(\"--color-border-tertiary\"),J.literal(\"--color-border-inverse\"),J.literal(\"--color-border-ghost\"),J.literal(\"--color-border-info\"),J.literal(\"--color-border-danger\"),J.literal(\"--color-border-success\"),J.literal(\"--color-border-warning\"),J.literal(\"--color-border-disabled\"),J.literal(\"--color-ring-primary\"),J.literal(\"--color-ring-secondary\"),J.literal(\"--color-ring-inverse\"),J.literal(\"--color-ring-info\"),J.literal(\"--color-ring-danger\"),J.literal(\"--color-ring-success\"),J.literal(\"--color-ring-warning\"),J.literal(\"--font-sans\"),J.literal(\"--font-mono\"),J.literal(\"--font-weight-normal\"),J.literal(\"--font-weight-medium\"),J.literal(\"--font-weight-semibold\"),J.literal(\"--font-weight-bold\"),J.literal(\"--font-text-xs-size\"),J.literal(\"--font-text-sm-size\"),J.literal(\"--font-text-md-size\"),J.literal(\"--font-text-lg-size\"),J.literal(\"--font-heading-xs-size\"),J.literal(\"--font-heading-sm-size\"),J.literal(\"--font-heading-md-size\"),J.literal(\"--font-heading-lg-size\"),J.literal(\"--font-heading-xl-size\"),J.literal(\"--font-heading-2xl-size\"),J.literal(\"--font-heading-3xl-size\"),J.literal(\"--font-text-xs-line-height\"),J.literal(\"--font-text-sm-line-height\"),J.literal(\"--font-text-md-line-height\"),J.literal(\"--font-text-lg-line-height\"),J.literal(\"--font-heading-xs-line-height\"),J.literal(\"--font-heading-sm-line-height\"),J.literal(\"--font-heading-md-line-height\"),J.literal(\"--font-heading-lg-line-height\"),J.literal(\"--font-heading-xl-line-height\"),J.literal(\"--font-heading-2xl-line-height\"),J.literal(\"--font-heading-3xl-line-height\"),J.literal(\"--border-radius-xs\"),J.literal(\"--border-radius-sm\"),J.literal(\"--border-radius-md\"),J.literal(\"--border-radius-lg\"),J.literal(\"--border-radius-xl\"),J.literal(\"--border-radius-full\"),J.literal(\"--border-width-regular\"),J.literal(\"--shadow-hairline\"),J.literal(\"--shadow-sm\"),J.literal(\"--shadow-md\"),J.literal(\"--shadow-lg\")]).describe(\"CSS variable keys available to MCP apps for theming.\"),MJ=J.record(RJ.describe(`Style variables for theming MCP apps.\n\nIndividual style keys are optional - hosts may provide any subset of these values.\nValues are strings containing CSS values (colors, sizes, font stacks, etc.).\n\nNote: This type uses \\`Record<K, string | undefined>\\` rather than \\`Partial<Record<K, string>>\\`\nfor compatibility with Zod schema generation. Both are functionally equivalent for validation.`),J.union([J.string(),J.undefined()]).describe(`Style variables for theming MCP apps.\n\nIndividual style keys are optional - hosts may provide any subset of these values.\nValues are strings containing CSS values (colors, sizes, font stacks, etc.).\n\nNote: This type uses \\`Record<K, string | undefined>\\` rather than \\`Partial<Record<K, string>>\\`\nfor compatibility with Zod schema generation. Both are functionally equivalent for validation.`)).describe(`Style variables for theming MCP apps.\n\nIndividual style keys are optional - hosts may provide any subset of these values.\nValues are strings containing CSS values (colors, sizes, font stacks, etc.).\n\nNote: This type uses \\`Record<K, string | undefined>\\` rather than \\`Partial<Record<K, string>>\\`\nfor compatibility with Zod schema generation. Both are functionally equivalent for validation.`),zJ=J.object({method:J.literal(\"ui/open-link\"),params:J.object({url:J.string().describe(\"URL to open in the host's browser\")})}),A=J.object({isError:J.boolean().optional().describe(\"True if the host failed to open the URL (e.g., due to security policy).\")}).passthrough(),k=J.object({isError:J.boolean().optional().describe(\"True if the download failed (e.g., user cancelled or host denied).\")}).passthrough(),C=J.object({isError:J.boolean().optional().describe(\"True if the host rejected or failed to deliver the message.\")}).passthrough(),wJ=J.object({method:J.literal(\"ui/notifications/sandbox-proxy-ready\"),params:J.object({})}),P=J.object({connectDomains:J.array(J.string()).optional().describe(`Origins for network requests (fetch/XHR/WebSocket).\n\n- Maps to CSP \\`connect-src\\` directive\n- Empty or omitted → no network connections (secure default)`),resourceDomains:J.array(J.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)\"),frameDomains:J.array(J.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'`)\"),baseUriDomains:J.array(J.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'`)\")}),D=J.object({camera:J.object({}).optional().describe(\"Request camera access.\\n\\nMaps to Permission Policy `camera` feature.\"),microphone:J.object({}).optional().describe(\"Request microphone access.\\n\\nMaps to Permission Policy `microphone` feature.\"),geolocation:J.object({}).optional().describe(\"Request geolocation access.\\n\\nMaps to Permission Policy `geolocation` feature.\"),clipboardWrite:J.object({}).optional().describe(\"Request clipboard write access.\\n\\nMaps to Permission Policy `clipboard-write` feature.\")}),HJ=J.object({method:J.literal(\"ui/notifications/size-changed\"),params:J.object({width:J.number().optional().describe(\"New width in pixels.\"),height:J.number().optional().describe(\"New height in pixels.\")})}),S=J.object({method:J.literal(\"ui/notifications/tool-input\"),params:J.object({arguments:J.record(J.string(),J.unknown().describe(\"Complete tool call arguments as key-value pairs.\")).optional().describe(\"Complete tool call arguments as key-value pairs.\")})}),b=J.object({method:J.literal(\"ui/notifications/tool-input-partial\"),params:J.object({arguments:J.record(J.string(),J.unknown().describe(\"Partial tool call arguments (incomplete, may change).\")).optional().describe(\"Partial tool call arguments (incomplete, may change).\")})}),x=J.object({method:J.literal(\"ui/notifications/tool-cancelled\"),params:J.object({reason:J.string().optional().describe('Optional reason for the cancellation (e.g., \"user action\", \"timeout\").')})}),p=J.object({fonts:J.string().optional()}),n=J.object({variables:MJ.optional().describe(\"CSS variables for theming the app.\"),css:p.optional().describe(\"CSS blocks that apps can inject.\")}),v=J.object({method:J.literal(\"ui/resource-teardown\"),params:J.object({})}),TJ=J.record(J.string(),J.unknown()),T=J.object({text:J.object({}).optional().describe(\"Host supports text content blocks.\"),image:J.object({}).optional().describe(\"Host supports image content blocks.\"),audio:J.object({}).optional().describe(\"Host supports audio content blocks.\"),resource:J.object({}).optional().describe(\"Host supports resource content blocks.\"),resourceLink:J.object({}).optional().describe(\"Host supports resource link content blocks.\"),structuredContent:J.object({}).optional().describe(\"Host supports structured content.\")}),AJ=J.object({method:J.literal(\"ui/notifications/request-teardown\"),params:J.object({}).optional()}),o=J.object({experimental:J.object({}).optional().describe(\"Experimental features (structure TBD).\"),openLinks:J.object({}).optional().describe(\"Host supports opening external URLs.\"),downloadFile:J.object({}).optional().describe(\"Host supports file downloads via ui/download-file.\"),serverTools:J.object({listChanged:J.boolean().optional().describe(\"Host supports tools/list_changed notifications.\")}).optional().describe(\"Host can proxy tool calls to the MCP server.\"),serverResources:J.object({listChanged:J.boolean().optional().describe(\"Host supports resources/list_changed notifications.\")}).optional().describe(\"Host can proxy resource reads to the MCP server.\"),logging:J.object({}).optional().describe(\"Host accepts log messages.\"),sandbox:J.object({permissions:D.optional().describe(\"Permissions granted by the host (camera, microphone, geolocation).\"),csp:P.optional().describe(\"CSP domains approved by the host.\")}).optional().describe(\"Sandbox configuration applied by the host.\"),updateModelContext:T.optional().describe(\"Host accepts context updates (ui/update-model-context) to be included in the model's context for future turns.\"),message:T.optional().describe(\"Host supports receiving content messages (ui/message) from the view.\"),sampling:J.object({tools:J.object({}).optional().describe(\"Host supports tool use via `tools` and `toolChoice` parameters.\")}).optional().describe(\"Host supports LLM sampling (sampling/createMessage) from the view.\\nMirrors the MCP `ClientCapabilities.sampling` shape so hosts can pass it through.\")}),a=J.object({experimental:J.object({}).optional().describe(\"Experimental features (structure TBD).\"),tools:J.object({listChanged:J.boolean().optional().describe(\"App supports tools/list_changed notifications.\")}).optional().describe(\"App exposes MCP-style tools that the host can call.\"),availableDisplayModes:J.array(V).optional().describe(\"Display modes the app supports.\")}),kJ=J.object({method:J.literal(\"ui/notifications/initialized\"),params:J.object({}).optional()}),CJ=J.object({csp:P.optional().describe(\"Content Security Policy configuration for UI resources.\"),permissions:D.optional().describe(\"Sandbox permissions requested by the UI resource.\"),domain:J.string().optional().describe(`Dedicated origin for view sandbox.\n\nUseful when views need stable, dedicated origins for OAuth callbacks, CORS policies, or API key allowlists.\n\n**Host-dependent:** The format and validation rules for this field are determined by each host. Servers MUST consult host-specific documentation for the expected domain format. Common patterns include:\n- Hash-based subdomains (e.g., \\`{hash}.claudemcpcontent.com\\`)\n- URL-derived subdomains (e.g., \\`www-example-com.oaiusercontent.com\\`)\n\nIf omitted, host uses default sandbox origin (typically per-conversation).`),prefersBorder:J.boolean().optional().describe(`Visual boundary preference - true if view prefers a visible border.\n\nBoolean requesting whether a visible border and background is provided by the host. Specifying an explicit value for this is recommended because hosts' defaults may vary.\n\n- \\`true\\`: request visible border + background\n- \\`false\\`: request no visible border + background\n- omitted: host decides border`)}),SJ=J.object({method:J.literal(\"ui/request-display-mode\"),params:J.object({mode:V.describe(\"The display mode being requested.\")})}),g=J.object({mode:V.describe(\"The display mode that was actually set. May differ from requested if not supported.\")}).passthrough(),s=J.union([J.literal(\"model\"),J.literal(\"app\")]).describe(\"Tool visibility scope - who can access the tool.\"),bJ=J.object({resourceUri:J.string().optional(),visibility:J.array(s).optional().describe(`Who can access this tool. Default: [\"model\", \"app\"]\n- \"model\": Tool visible to and callable by the agent\n- \"app\": Tool callable by the app from this server only`),csp:J.never().optional(),permissions:J.never().optional()}),_K=J.object({mimeTypes:J.array(J.string()).optional().describe('Array of supported MIME types for UI resources.\\nMust include `\"text/html;profile=mcp-app\"` for MCP Apps support.')}),xJ=J.object({method:J.literal(\"ui/download-file\"),params:J.object({contents:J.array(J.union([FJ,IJ])).describe(\"Resource contents to download — embedded (inline data) or linked (host fetches). Uses standard MCP resource types.\")})}),vJ=J.object({method:J.literal(\"ui/message\"),params:J.object({role:J.literal(\"user\").describe('Message role, currently only \"user\" is supported.'),content:J.array(r).describe(\"Message content blocks (text, image, etc.).\")})}),gJ=J.object({method:J.literal(\"ui/notifications/sandbox-resource-ready\"),params:J.object({html:J.string().describe(\"HTML content to load into the inner iframe.\"),sandbox:J.string().optional().describe(\"Optional override for the inner iframe's sandbox attribute.\"),csp:P.optional().describe(\"CSP configuration from resource metadata.\"),permissions:D.optional().describe(\"Sandbox permissions from resource metadata.\")})}),y=J.object({method:J.literal(\"ui/notifications/tool-result\"),params:DJ.describe(\"Standard MCP tool execution result.\")}),f=J.object({toolInfo:J.object({id:EJ.optional().describe(\"JSON-RPC id of the tools/call request.\"),tool:UJ.describe(\"Tool definition including name, inputSchema, etc.\")}).optional().describe(\"Metadata of the tool call that instantiated this App.\"),theme:i.optional().describe(\"Current color theme preference.\"),styles:n.optional().describe(\"Style configuration for theming the app.\"),displayMode:V.optional().describe(\"How the UI is currently displayed.\"),availableDisplayModes:J.array(V).optional().describe(\"Display modes the host supports.\"),containerDimensions:J.union([J.object({height:J.number().describe(\"Fixed container height in pixels.\")}),J.object({maxHeight:J.union([J.number(),J.undefined()]).optional().describe(\"Maximum container height in pixels.\")})]).and(J.union([J.object({width:J.number().describe(\"Fixed container width in pixels.\")}),J.object({maxWidth:J.union([J.number(),J.undefined()]).optional().describe(\"Maximum container width in pixels.\")})])).optional().describe(`Container dimensions. Represents the dimensions of the iframe or other\ncontainer holding the app. Specify either width or maxWidth, and either height or maxHeight.`),locale:J.string().optional().describe(\"User's language and region preference in BCP 47 format.\"),timeZone:J.string().optional().describe(\"User's timezone in IANA format.\"),userAgent:J.string().optional().describe(\"Host application identifier.\"),platform:J.union([J.literal(\"web\"),J.literal(\"desktop\"),J.literal(\"mobile\")]).optional().describe(\"Platform type for responsive design decisions.\"),deviceCapabilities:J.object({touch:J.boolean().optional().describe(\"Whether the device supports touch input.\"),hover:J.boolean().optional().describe(\"Whether the device supports hover interactions.\")}).optional().describe(\"Device input capabilities.\"),safeAreaInsets:J.object({top:J.number().describe(\"Top safe area inset in pixels.\"),right:J.number().describe(\"Right safe area inset in pixels.\"),bottom:J.number().describe(\"Bottom safe area inset in pixels.\"),left:J.number().describe(\"Left safe area inset in pixels.\")}).optional().describe(\"Mobile safe area boundaries in pixels.\")}).passthrough(),d=J.object({method:J.literal(\"ui/notifications/host-context-changed\"),params:f.describe(\"Partial context update containing only changed fields.\")}),yJ=J.object({method:J.literal(\"ui/update-model-context\"),params:J.object({content:J.array(r).optional().describe(\"Context content blocks (text, image, etc.).\"),structuredContent:J.record(J.string(),J.unknown().describe(\"Structured content for machine-readable context data.\")).optional().describe(\"Structured content for machine-readable context data.\")})}),fJ=J.object({method:J.literal(\"ui/initialize\"),params:J.object({appInfo:l.describe(\"App identification (name and version).\"),appCapabilities:a.describe(\"Features and capabilities this app provides.\"),protocolVersion:J.string().describe(\"Protocol version this app supports.\")})}),u=J.object({protocolVersion:J.string().describe('Negotiated protocol version string (e.g., \"2025-11-21\").'),hostInfo:l.describe(\"Host application identification and version.\"),hostCapabilities:o.describe(\"Features and capabilities provided by the host.\"),hostContext:f.describe(\"Rich context about the host environment.\")}).passthrough();var dJ={target:\"draft-2020-12\"};async function h(K,Q){let X=K[\"~standard\"];if(X.jsonSchema)return X.jsonSchema[Q](dJ);if(X.vendor===\"zod\"){let{z:Y}=await import(\"zod/v4\");return Y.toJSONSchema(K,{io:Q})}throw Error(`Schema (vendor: ${X.vendor}) does not implement Standard JSON Schema (~standard.jsonSchema). Use a library that does (zod v4, ArkType, Valibot) or wrap your schema accordingly.`)}async function m(K,Q,X=\"\"){let Y=await K[\"~standard\"].validate(Q);if(Y.issues){let Z=Y.issues.map(($)=>{let G=$.path?.map((j)=>typeof j===\"object\"?j.key:j).join(\".\");return G?`${G}: ${$.message}`:$.message}).join(\"; \");throw Error(X+Z)}return Y.value}import{z as aJ}from\"zod/v4\";function F(){let K=document.documentElement.getAttribute(\"data-theme\");if(K===\"dark\"||K===\"light\")return K;return document.documentElement.classList.contains(\"dark\")?\"dark\":\"light\"}function E(K){let Q=document.documentElement;Q.setAttribute(\"data-theme\",K),Q.style.colorScheme=K}function I(K,Q=document.documentElement){for(let[X,Y]of Object.entries(K))if(Y!==void 0)Q.style.setProperty(X,Y)}function U(K){if(document.getElementById(\"__mcp-host-fonts\"))return;let X=document.createElement(\"style\");X.id=\"__mcp-host-fonts\",X.textContent=K,document.head.appendChild(X)}var NQ=\"ui/resourceUri\",BQ=\"text/html;profile=mcp-app\";class R extends z{_appInfo;_capabilities;options;_hostCapabilities;_hostInfo;_hostContext;_registeredTools={};_initializedSent=!1;_assertInitialized(K){if(this._initializedSent)return;let Q=`[ext-apps] App.${K}() called before connect() completed the ui/initialize handshake. Await app.connect() before calling this method, or move data loading to an ontoolresult handler.`;if(this.options?.strict)throw Error(Q);console.warn(`${Q}. This will throw in a future release.`)}eventSchemas={toolinput:S,toolinputpartial:b,toolresult:y,toolcancelled:x,hostcontextchanged:d};static ONE_SHOT_EVENTS=new Set([\"toolinput\",\"toolinputpartial\",\"toolresult\",\"toolcancelled\"]);_everHadListener=new Set;_assertHandlerTiming(K){if(!R.ONE_SHOT_EVENTS.has(K)||this._everHadListener.has(K))return;if(this._everHadListener.add(K),!this._initializedSent)return;let Q=`[ext-apps] \"${String(K)}\" handler registered after connect() completed the ui/initialize handshake. The host may have already sent this notification. Register handlers before calling app.connect().`;if(this.options?.strict)throw Error(Q);console.warn(Q)}setEventHandler(K,Q){if(Q)this._assertHandlerTiming(K);super.setEventHandler(K,Q)}addEventListener(K,Q){this._assertHandlerTiming(K),super.addEventListener(K,Q)}onEventDispatch(K,Q){if(K===\"hostcontextchanged\")this._hostContext={...this._hostContext,...Q}}constructor(K,Q={},X={autoResize:!0}){super(X);this._appInfo=K;this._capabilities=Q;this.options=X;if(!X.allowUnsafeEval)aJ.config({jitless:!0});this.setRequestHandler(nJ,(Y)=>{return console.log(\"Received ping:\",Y.params),{}}),this.setEventHandler(\"hostcontextchanged\",void 0)}registerCapabilities(K){if(this.transport)throw Error(\"Cannot register capabilities after transport is established\");this._capabilities=uJ(this._capabilities,K)}registerTool(K,Q,X){if(this._registeredTools[K])throw Error(`Tool ${K} is already registered`);let Y=this,Z=()=>{if(Y._initializedSent&&Y._capabilities.tools?.listChanged)Y.sendToolListChanged()},$=Q.inputSchema!==void 0,G={title:Q.title,description:Q.description,inputSchema:Q.inputSchema,outputSchema:Q.outputSchema,annotations:Q.annotations,_meta:Q._meta,enabled:!0,enable(){this.enabled=!0,Z()},disable(){this.enabled=!1,Z()},update(j){Object.assign(this,j),Z()},remove(){if(Y._registeredTools[K]!==G)return;delete Y._registeredTools[K],Z()},handler:async(j,W)=>{if(!G.enabled)throw Error(`Tool ${K} is disabled`);let L;if($){let _=G.inputSchema,O=_?await m(_,j??{},`Invalid input for tool ${K}: `):j??{};L=await X(O,W)}else L=await X(W);if(G.outputSchema&&!L.isError)L.structuredContent=await m(G.outputSchema,L.structuredContent,`Invalid output for tool ${K}: `);return L}};if(this._registeredTools[K]=G,!this._capabilities.tools&&!this.transport)this.registerCapabilities({tools:{listChanged:!0}});return this.ensureToolHandlersInitialized(),Z(),G}_toolHandlersInitialized=!1;ensureToolHandlersInitialized(){if(this._toolHandlersInitialized)return;this._toolHandlersInitialized=!0,this.oncalltool=async(K,Q)=>{let X=this._registeredTools[K.name];if(!X)throw Error(`Tool ${K.name} not found`);return X.handler(K.arguments,Q)},this.onlisttools=async(K,Q)=>{return{tools:await Promise.all(Object.entries(this._registeredTools).filter(([Y,Z])=>Z.enabled).map(async([Y,Z])=>{let $={name:Y,title:Z.title,description:Z.description,inputSchema:Z.inputSchema?await h(Z.inputSchema,\"input\"):{type:\"object\",properties:{}}};if(Z.outputSchema)$.outputSchema=await h(Z.outputSchema,\"output\");if(Z.annotations)$.annotations=Z.annotations;if(Z._meta)$._meta=Z._meta;return $}))}}}async sendToolListChanged(K={}){this._assertInitialized(\"sendToolListChanged\"),await this.notification({method:\"notifications/tools/list_changed\",params:K})}getHostCapabilities(){return this._hostCapabilities}getHostVersion(){return this._hostInfo}getHostContext(){return this._hostContext}get ontoolinput(){return this.getEventHandler(\"toolinput\")}set ontoolinput(K){this.setEventHandler(\"toolinput\",K)}get ontoolinputpartial(){return this.getEventHandler(\"toolinputpartial\")}set ontoolinputpartial(K){this.setEventHandler(\"toolinputpartial\",K)}get ontoolresult(){return this.getEventHandler(\"toolresult\")}set ontoolresult(K){this.setEventHandler(\"toolresult\",K)}get ontoolcancelled(){return this.getEventHandler(\"toolcancelled\")}set ontoolcancelled(K){this.setEventHandler(\"toolcancelled\",K)}get onhostcontextchanged(){return this.getEventHandler(\"hostcontextchanged\")}set onhostcontextchanged(K){this.setEventHandler(\"hostcontextchanged\",K)}_onteardown;get onteardown(){return this._onteardown}set onteardown(K){this.warnIfRequestHandlerReplaced(\"onteardown\",this._onteardown,K),this._onteardown=K,this.replaceRequestHandler(v,(Q,X)=>{if(!this._onteardown)throw Error(\"No onteardown handler set\");return this._onteardown(Q.params,X)})}_oncalltool;get oncalltool(){return this._oncalltool}set oncalltool(K){this.warnIfRequestHandlerReplaced(\"oncalltool\",this._oncalltool,K),this._oncalltool=K,this.replaceRequestHandler(hJ,(Q,X)=>{if(!this._oncalltool)throw Error(\"No oncalltool handler set\");return this._oncalltool(Q.params,X)})}_onlisttools;get onlisttools(){return this._onlisttools}set onlisttools(K){this.warnIfRequestHandlerReplaced(\"onlisttools\",this._onlisttools,K),this._onlisttools=K,this.replaceRequestHandler(pJ,(Q,X)=>{if(!this._onlisttools)throw Error(\"No onlisttools handler set\");return this._onlisttools(Q.params,X)})}assertCapabilityForMethod(K){switch(K){case\"sampling/createMessage\":if(!this._hostCapabilities?.sampling)throw Error(`Host does not support sampling (required for ${K})`);break}}assertRequestHandlerCapability(K){switch(K){case\"tools/call\":case\"tools/list\":if(!this._capabilities.tools)throw Error(`Client does not support tool capability (required for ${K})`);return;case\"ping\":case\"ui/resource-teardown\":return;default:throw Error(`No handler for method ${K} registered`)}}assertNotificationCapability(K){}assertTaskCapability(K){throw Error(\"Tasks are not supported in MCP Apps\")}assertTaskHandlerCapability(K){throw Error(\"Task handlers are not supported in MCP Apps\")}async callServerTool(K,Q){if(this._assertInitialized(\"callServerTool\"),typeof K===\"string\")throw Error(`callServerTool() expects an object as its first argument, but received a string (\"${K}\"). Did you mean: callServerTool({ name: \"${K}\", arguments: { ... } })?`);return await this.request({method:\"tools/call\",params:K},mJ,{onprogress:()=>{},resetTimeoutOnProgress:!0,...Q})}async readServerResource(K,Q){return this._assertInitialized(\"readServerResource\"),await this.request({method:\"resources/read\",params:K},oJ,Q)}async listServerResources(K,Q){return this._assertInitialized(\"listServerResources\"),await this.request({method:\"resources/list\",params:K},iJ,Q)}async createSamplingMessage(K,Q){this._assertInitialized(\"createSamplingMessage\");let X=K.tools?rJ:cJ;return await this.request({method:\"sampling/createMessage\",params:K},X,Q)}sendMessage(K,Q){return this._assertInitialized(\"sendMessage\"),this.request({method:\"ui/message\",params:K},C,Q)}sendLog(K){return this.notification({method:\"notifications/message\",params:K})}updateModelContext(K,Q){return this._assertInitialized(\"updateModelContext\"),this.request({method:\"ui/update-model-context\",params:K},lJ,Q)}openLink(K,Q){return this._assertInitialized(\"openLink\"),this.request({method:\"ui/open-link\",params:K},A,Q)}sendOpenLink=this.openLink;downloadFile(K,Q){return this._assertInitialized(\"downloadFile\"),this.request({method:\"ui/download-file\",params:K},k,Q)}requestTeardown(K={}){return this.notification({method:\"ui/notifications/request-teardown\",params:K})}requestDisplayMode(K,Q){return this._assertInitialized(\"requestDisplayMode\"),this.request({method:\"ui/request-display-mode\",params:K},g,Q)}sendSizeChanged(K){return this.notification({method:\"ui/notifications/size-changed\",params:K})}setupSizeChangedNotifications(){let K=!1,Q=0,X=0,Y=()=>{if(K)return;K=!0,requestAnimationFrame(()=>{K=!1;let $=document.documentElement,G=$.style.height;$.style.height=\"max-content\";let j=Math.ceil($.getBoundingClientRect().height);$.style.height=G;let W=Math.ceil(window.innerWidth);if(W!==Q||j!==X)Q=W,X=j,this.sendSizeChanged({width:W,height:j})})};Y();let Z=new ResizeObserver(Y);return Z.observe(document.documentElement),Z.observe(document.body),()=>Z.disconnect()}async connect(K=new B(window.parent,window.parent),Q){if(this.transport)throw Error(\"App is already connected. Call close() before connecting again.\");this._initializedSent=!1,await super.connect(K);try{let X=await this.request({method:\"ui/initialize\",params:{appCapabilities:this._capabilities,appInfo:this._appInfo,protocolVersion:w}},u,Q);if(X===void 0)throw Error(`Server sent invalid initialize result: ${X}`);if(this._hostCapabilities=X.hostCapabilities,this._hostInfo=X.hostInfo,this._hostContext=X.hostContext,await this.notification({method:\"ui/notifications/initialized\"}),this._initializedSent=!0,this.options?.autoResize)this.setupSizeChangedNotifications()}catch(X){throw this.close(),X}}}function IQ({appInfo:K,capabilities:Q,onAppCreated:X,autoResize:Y=!0,strict:Z}){let[$,G]=c(null),[j,W]=c(!1),[L,_]=c(null);return sJ(()=>{let O=!0,N;async function e(){try{let q=new B(window.parent,window.parent);if(N=new R(K,Q,{autoResize:Y,strict:Z}),X?.(N),await N.connect(q),!O){N.close();return}G(N),W(!0),_(null)}catch(q){if(O)G(null),W(!1),_(q instanceof Error?q:Error(\"Failed to connect\"))}}return e(),()=>{O=!1,N?.close()}},[]),{app:$,isConnected:j,error:L}}import{useEffect as tJ}from\"react\";function wQ(K,Q){tJ(()=>{if(!K)return;return K.setupSizeChangedNotifications()},[K,Q])}import{useEffect as eJ,useState as JK}from\"react\";function kQ(){let[K,Q]=JK(F);return eJ(()=>{let X=new MutationObserver(()=>{Q(F())});return X.observe(document.documentElement,{attributes:!0,attributeFilter:[\"data-theme\",\"class\"],characterData:!1,childList:!1,subtree:!1}),()=>X.disconnect()},[]),K}import{useEffect as M,useRef as t}from\"react\";function KK(K,Q){let X=t(!1);M(()=>{if(X.current)return;if(Q?.theme)E(Q.theme);if(Q?.styles?.variables)I(Q.styles.variables);if(Q?.theme||Q?.styles?.variables)X.current=!0},[Q]),M(()=>{if(!K)return;let Y=(Z)=>{if(Z.theme)E(Z.theme);if(Z.styles?.variables)I(Z.styles.variables)};return K.addEventListener(\"hostcontextchanged\",Y),()=>K.removeEventListener(\"hostcontextchanged\",Y)},[K])}function QK(K,Q){let X=t(!1);M(()=>{if(X.current)return;if(Q?.styles?.css?.fonts)U(Q.styles.css.fonts),X.current=!0},[Q]),M(()=>{if(!K)return;let Y=(Z)=>{if(Z.styles?.css?.fonts)U(Z.styles.css.fonts)};return K.addEventListener(\"hostcontextchanged\",Y),()=>K.removeEventListener(\"hostcontextchanged\",Y)},[K])}function xQ(K,Q){KK(K,Q),QK(K,Q)}export{xQ as useHostStyles,KK as useHostStyleVariables,QK as useHostFonts,kQ as useDocumentTheme,wQ as useAutoResize,IQ as useApp,F as getDocumentTheme,I as applyHostStyleVariables,U as applyHostFonts,E as applyDocumentTheme,WJ as TOOL_RESULT_METHOD,H as TOOL_INPUT_PARTIAL_METHOD,jJ as TOOL_INPUT_METHOD,LJ as TOOL_CANCELLED_METHOD,GJ as SIZE_CHANGED_METHOD,$J as SANDBOX_RESOURCE_READY_METHOD,ZJ as SANDBOX_PROXY_READY_METHOD,NQ as RESOURCE_URI_META_KEY,VJ as RESOURCE_TEARDOWN_METHOD,BQ as RESOURCE_MIME_TYPE,BJ as REQUEST_TEARDOWN_METHOD,qJ as REQUEST_DISPLAY_MODE_METHOD,z as ProtocolWithEvents,B as PostMessageTransport,QJ as OPEN_LINK_METHOD,yJ as McpUiUpdateModelContextRequestSchema,s as McpUiToolVisibilitySchema,y as McpUiToolResultNotificationSchema,bJ as McpUiToolMetaSchema,b as McpUiToolInputPartialNotificationSchema,S as McpUiToolInputNotificationSchema,x as McpUiToolCancelledNotificationSchema,i as McpUiThemeSchema,T as McpUiSupportedContentBlockModalitiesSchema,HJ as McpUiSizeChangedNotificationSchema,gJ as McpUiSandboxResourceReadyNotificationSchema,wJ as McpUiSandboxProxyReadyNotificationSchema,TJ as McpUiResourceTeardownResultSchema,v as McpUiResourceTeardownRequestSchema,D as McpUiResourcePermissionsSchema,CJ as McpUiResourceMetaSchema,P as McpUiResourceCspSchema,AJ as McpUiRequestTeardownNotificationSchema,g as McpUiRequestDisplayModeResultSchema,SJ as McpUiRequestDisplayModeRequestSchema,A as McpUiOpenLinkResultSchema,zJ as McpUiOpenLinkRequestSchema,C as McpUiMessageResultSchema,vJ as McpUiMessageRequestSchema,kJ as McpUiInitializedNotificationSchema,u as McpUiInitializeResultSchema,fJ as McpUiInitializeRequestSchema,n as McpUiHostStylesSchema,p as McpUiHostCssSchema,f as McpUiHostContextSchema,d as McpUiHostContextChangedNotificationSchema,o as McpUiHostCapabilitiesSchema,k as McpUiDownloadFileResultSchema,xJ as McpUiDownloadFileRequestSchema,V as McpUiDisplayModeSchema,a as McpUiAppCapabilitiesSchema,YJ as MESSAGE_METHOD,w as LATEST_PROTOCOL_VERSION,_J as INITIALIZE_METHOD,OJ as INITIALIZED_METHOD,NJ as HOST_CONTEXT_CHANGED_METHOD,XJ as DOWNLOAD_FILE_METHOD,R as App};\n"],"x_google_ignoreList":[0],"mappings":";;;;;;EAAS,MAAI,OAAA,YA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,CAAC,EAAE,CAAC;;AAAC,SAAS,GAAG,GAAE,GAAE;CAAC,IAAI,KAAA,GAAA,aAAA,QAAI,CAAC,EAAE;CAAC,CAAA,GAAA,aAAA,iBAAM;EAAC,IAAG,EAAE,SAAQ;EAAO,IAAG,GAAG,QAAQ,KAAK,OAAM,EAAE,EAAE,OAAO,IAAI,MAAM,EAAC,EAAE,UAAQ,CAAC;IAAG,CAAC,EAAE,CAAC,GAAA,GAAA,aAAA,iBAAO;EAAC,IAAG,CAAC,GAAE;EAAO,IAAI,KAAG,MAAI;GAAC,IAAG,EAAE,QAAQ,KAAK,OAAM,EAAE,EAAE,OAAO,IAAI,MAAM;;EAAE,OAAO,EAAE,iBAAiB,sBAAqB,EAAE,QAAK,EAAE,oBAAoB,sBAAqB,EAAE;IAAE,CAAC,EAAE,CAAC;;AAAC,SAAS,GAAG,GAAE,GAAE;CAAC,GAAG,GAAE,EAAE,EAAC,GAAG,GAAE,EAAE"}
1
+ {"version":3,"file":"@modelcontextprotocol_ext-apps_react.js","names":["KJ","PJ","J.union","J.literal","J.record","J.string","J.undefined","J.object","J.boolean","J.array","J.number","J.unknown","J.never","FJ","IJ","r","DJ","EJ","UJ","l","nJ","uJ","hJ","pJ","mJ","oJ","iJ","rJ","cJ","lJ"],"sources":["../../../../../../node_modules/.pnpm/@modelcontextprotocol+ext-apps@1.7.2_@modelcontextprotocol+sdk@1.29.0_zod@4.4.3__react-_f5b843da9146ebea748e10ad8dfce46a/node_modules/@modelcontextprotocol/ext-apps/dist/src/react/index.js"],"sourcesContent":["var JJ=((K)=>typeof require<\"u\"?require:typeof Proxy<\"u\"?new Proxy(K,{get:(Q,X)=>(typeof require<\"u\"?require:Q)[X]}):K)(function(K){if(typeof require<\"u\")return require.apply(this,arguments);throw Error('Dynamic require of \"'+K+'\" is not supported')});import{useEffect as sJ,useState as c}from\"react\";import{mergeCapabilities as uJ}from\"@modelcontextprotocol/sdk/shared/protocol.js\";import{CallToolRequestSchema as hJ,CallToolResultSchema as mJ,CreateMessageResultSchema as cJ,CreateMessageResultWithToolsSchema as rJ,EmptyResultSchema as lJ,ListResourcesResultSchema as iJ,ListToolsRequestSchema as pJ,PingRequestSchema as nJ,ReadResourceResultSchema as oJ}from\"@modelcontextprotocol/sdk/types.js\";import{Protocol as KJ}from\"@modelcontextprotocol/sdk/shared/protocol.js\";class z extends KJ{_registeredMethods=new Set;_eventSlots=new Map;onEventDispatch(K,Q){}_ensureEventSlot(K){let Q=this._eventSlots.get(K);if(!Q){let X=this.eventSchemas[K];if(!X)throw Error(`Unknown event: ${String(K)}`);Q={listeners:[]},this._eventSlots.set(K,Q);let Y=X.shape.method.value;this._registeredMethods.add(Y);let Z=Q;super.setNotificationHandler(X,($)=>{let G=$.params;this.onEventDispatch(K,G),Z.onHandler?.(G);for(let j of[...Z.listeners])j(G)})}return Q}setEventHandler(K,Q){let X=this._ensureEventSlot(K);if(X.onHandler&&Q)console.warn(`[MCP Apps] on${String(K)} handler replaced. Use addEventListener(\"${String(K)}\", …) to add multiple listeners without replacing.`);X.onHandler=Q}getEventHandler(K){return this._eventSlots.get(K)?.onHandler}addEventListener(K,Q){this._ensureEventSlot(K).listeners.push(Q)}removeEventListener(K,Q){let X=this._eventSlots.get(K);if(!X)return;let Y=X.listeners.indexOf(Q);if(Y!==-1)X.listeners.splice(Y,1)}setRequestHandler=(K,Q)=>{this._assertMethodNotRegistered(K,\"setRequestHandler\"),super.setRequestHandler(K,Q)};setNotificationHandler=(K,Q)=>{this._assertMethodNotRegistered(K,\"setNotificationHandler\"),super.setNotificationHandler(K,Q)};warnIfRequestHandlerReplaced(K,Q,X){if(Q&&X)console.warn(`[MCP Apps] ${K} handler replaced. Previous handler will no longer be called.`)}replaceRequestHandler=(K,Q)=>{let X=K.shape.method.value;this._registeredMethods.add(X),super.setRequestHandler(K,Q)};_assertMethodNotRegistered(K,Q){let X=K.shape.method.value;if(this._registeredMethods.has(X))throw Error(`Handler for \"${X}\" already registered (via ${Q}). Use addEventListener() to attach multiple listeners, or the on* setter for replace semantics.`);this._registeredMethods.add(X)}}import{JSONRPCMessageSchema as PJ}from\"@modelcontextprotocol/sdk/types.js\";var w=\"2026-01-26\",QJ=\"ui/open-link\",XJ=\"ui/download-file\",YJ=\"ui/message\",ZJ=\"ui/notifications/sandbox-proxy-ready\",$J=\"ui/notifications/sandbox-resource-ready\",GJ=\"ui/notifications/size-changed\",jJ=\"ui/notifications/tool-input\",H=\"ui/notifications/tool-input-partial\",WJ=\"ui/notifications/tool-result\",LJ=\"ui/notifications/tool-cancelled\",NJ=\"ui/notifications/host-context-changed\",BJ=\"ui/notifications/request-teardown\",VJ=\"ui/resource-teardown\",_J=\"ui/initialize\",OJ=\"ui/notifications/initialized\",qJ=\"ui/request-display-mode\";class B{eventTarget;eventSource;messageListener;constructor(K=window.parent,Q){this.eventTarget=K;this.eventSource=Q;this.messageListener=(X)=>{if(Q&&X.source!==this.eventSource){console.debug(\"Ignoring message from unknown source\",X);return}let Y=PJ.safeParse(X.data);if(Y.success)console.debug(\"Parsed message\",Y.data),this.onmessage?.(Y.data);else if(X.data?.jsonrpc!==\"2.0\")console.debug(\"Ignoring non-JSON-RPC message\",Y.error.message,X);else console.error(\"Failed to parse message\",Y.error.message,X),this.onerror?.(Error(\"Invalid JSON-RPC message received: \"+Y.error.message))}}async start(){window.addEventListener(\"message\",this.messageListener)}async send(K,Q){if(K.method!==H)console.debug(\"Sending message\",K);this.eventTarget.postMessage(K,\"*\")}async close(){window.removeEventListener(\"message\",this.messageListener),this.onclose?.()}onclose;onerror;onmessage;sessionId;setProtocolVersion}import{z as J}from\"zod/v4\";import{ContentBlockSchema as r,CallToolResultSchema as DJ,EmbeddedResourceSchema as FJ,ImplementationSchema as l,RequestIdSchema as EJ,ResourceLinkSchema as IJ,ToolSchema as UJ}from\"@modelcontextprotocol/sdk/types.js\";var i=J.union([J.literal(\"light\"),J.literal(\"dark\")]).describe(\"Color theme preference for the host environment.\"),V=J.union([J.literal(\"inline\"),J.literal(\"fullscreen\"),J.literal(\"pip\")]).describe(\"Display mode for UI presentation.\"),RJ=J.union([J.literal(\"--color-background-primary\"),J.literal(\"--color-background-secondary\"),J.literal(\"--color-background-tertiary\"),J.literal(\"--color-background-inverse\"),J.literal(\"--color-background-ghost\"),J.literal(\"--color-background-info\"),J.literal(\"--color-background-danger\"),J.literal(\"--color-background-success\"),J.literal(\"--color-background-warning\"),J.literal(\"--color-background-disabled\"),J.literal(\"--color-text-primary\"),J.literal(\"--color-text-secondary\"),J.literal(\"--color-text-tertiary\"),J.literal(\"--color-text-inverse\"),J.literal(\"--color-text-ghost\"),J.literal(\"--color-text-info\"),J.literal(\"--color-text-danger\"),J.literal(\"--color-text-success\"),J.literal(\"--color-text-warning\"),J.literal(\"--color-text-disabled\"),J.literal(\"--color-border-primary\"),J.literal(\"--color-border-secondary\"),J.literal(\"--color-border-tertiary\"),J.literal(\"--color-border-inverse\"),J.literal(\"--color-border-ghost\"),J.literal(\"--color-border-info\"),J.literal(\"--color-border-danger\"),J.literal(\"--color-border-success\"),J.literal(\"--color-border-warning\"),J.literal(\"--color-border-disabled\"),J.literal(\"--color-ring-primary\"),J.literal(\"--color-ring-secondary\"),J.literal(\"--color-ring-inverse\"),J.literal(\"--color-ring-info\"),J.literal(\"--color-ring-danger\"),J.literal(\"--color-ring-success\"),J.literal(\"--color-ring-warning\"),J.literal(\"--font-sans\"),J.literal(\"--font-mono\"),J.literal(\"--font-weight-normal\"),J.literal(\"--font-weight-medium\"),J.literal(\"--font-weight-semibold\"),J.literal(\"--font-weight-bold\"),J.literal(\"--font-text-xs-size\"),J.literal(\"--font-text-sm-size\"),J.literal(\"--font-text-md-size\"),J.literal(\"--font-text-lg-size\"),J.literal(\"--font-heading-xs-size\"),J.literal(\"--font-heading-sm-size\"),J.literal(\"--font-heading-md-size\"),J.literal(\"--font-heading-lg-size\"),J.literal(\"--font-heading-xl-size\"),J.literal(\"--font-heading-2xl-size\"),J.literal(\"--font-heading-3xl-size\"),J.literal(\"--font-text-xs-line-height\"),J.literal(\"--font-text-sm-line-height\"),J.literal(\"--font-text-md-line-height\"),J.literal(\"--font-text-lg-line-height\"),J.literal(\"--font-heading-xs-line-height\"),J.literal(\"--font-heading-sm-line-height\"),J.literal(\"--font-heading-md-line-height\"),J.literal(\"--font-heading-lg-line-height\"),J.literal(\"--font-heading-xl-line-height\"),J.literal(\"--font-heading-2xl-line-height\"),J.literal(\"--font-heading-3xl-line-height\"),J.literal(\"--border-radius-xs\"),J.literal(\"--border-radius-sm\"),J.literal(\"--border-radius-md\"),J.literal(\"--border-radius-lg\"),J.literal(\"--border-radius-xl\"),J.literal(\"--border-radius-full\"),J.literal(\"--border-width-regular\"),J.literal(\"--shadow-hairline\"),J.literal(\"--shadow-sm\"),J.literal(\"--shadow-md\"),J.literal(\"--shadow-lg\")]).describe(\"CSS variable keys available to MCP apps for theming.\"),MJ=J.record(RJ.describe(`Style variables for theming MCP apps.\n\nIndividual style keys are optional - hosts may provide any subset of these values.\nValues are strings containing CSS values (colors, sizes, font stacks, etc.).\n\nNote: This type uses \\`Record<K, string | undefined>\\` rather than \\`Partial<Record<K, string>>\\`\nfor compatibility with Zod schema generation. Both are functionally equivalent for validation.`),J.union([J.string(),J.undefined()]).describe(`Style variables for theming MCP apps.\n\nIndividual style keys are optional - hosts may provide any subset of these values.\nValues are strings containing CSS values (colors, sizes, font stacks, etc.).\n\nNote: This type uses \\`Record<K, string | undefined>\\` rather than \\`Partial<Record<K, string>>\\`\nfor compatibility with Zod schema generation. Both are functionally equivalent for validation.`)).describe(`Style variables for theming MCP apps.\n\nIndividual style keys are optional - hosts may provide any subset of these values.\nValues are strings containing CSS values (colors, sizes, font stacks, etc.).\n\nNote: This type uses \\`Record<K, string | undefined>\\` rather than \\`Partial<Record<K, string>>\\`\nfor compatibility with Zod schema generation. Both are functionally equivalent for validation.`),zJ=J.object({method:J.literal(\"ui/open-link\"),params:J.object({url:J.string().describe(\"URL to open in the host's browser\")})}),A=J.object({isError:J.boolean().optional().describe(\"True if the host failed to open the URL (e.g., due to security policy).\")}).passthrough(),k=J.object({isError:J.boolean().optional().describe(\"True if the download failed (e.g., user cancelled or host denied).\")}).passthrough(),C=J.object({isError:J.boolean().optional().describe(\"True if the host rejected or failed to deliver the message.\")}).passthrough(),wJ=J.object({method:J.literal(\"ui/notifications/sandbox-proxy-ready\"),params:J.object({})}),P=J.object({connectDomains:J.array(J.string()).optional().describe(`Origins for network requests (fetch/XHR/WebSocket).\n\n- Maps to CSP \\`connect-src\\` directive\n- Empty or omitted → no network connections (secure default)`),resourceDomains:J.array(J.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)\"),frameDomains:J.array(J.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'`)\"),baseUriDomains:J.array(J.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'`)\")}),D=J.object({camera:J.object({}).optional().describe(\"Request camera access.\\n\\nMaps to Permission Policy `camera` feature.\"),microphone:J.object({}).optional().describe(\"Request microphone access.\\n\\nMaps to Permission Policy `microphone` feature.\"),geolocation:J.object({}).optional().describe(\"Request geolocation access.\\n\\nMaps to Permission Policy `geolocation` feature.\"),clipboardWrite:J.object({}).optional().describe(\"Request clipboard write access.\\n\\nMaps to Permission Policy `clipboard-write` feature.\")}),HJ=J.object({method:J.literal(\"ui/notifications/size-changed\"),params:J.object({width:J.number().optional().describe(\"New width in pixels.\"),height:J.number().optional().describe(\"New height in pixels.\")})}),S=J.object({method:J.literal(\"ui/notifications/tool-input\"),params:J.object({arguments:J.record(J.string(),J.unknown().describe(\"Complete tool call arguments as key-value pairs.\")).optional().describe(\"Complete tool call arguments as key-value pairs.\")})}),b=J.object({method:J.literal(\"ui/notifications/tool-input-partial\"),params:J.object({arguments:J.record(J.string(),J.unknown().describe(\"Partial tool call arguments (incomplete, may change).\")).optional().describe(\"Partial tool call arguments (incomplete, may change).\")})}),x=J.object({method:J.literal(\"ui/notifications/tool-cancelled\"),params:J.object({reason:J.string().optional().describe('Optional reason for the cancellation (e.g., \"user action\", \"timeout\").')})}),p=J.object({fonts:J.string().optional()}),n=J.object({variables:MJ.optional().describe(\"CSS variables for theming the app.\"),css:p.optional().describe(\"CSS blocks that apps can inject.\")}),v=J.object({method:J.literal(\"ui/resource-teardown\"),params:J.object({})}),TJ=J.record(J.string(),J.unknown()),T=J.object({text:J.object({}).optional().describe(\"Host supports text content blocks.\"),image:J.object({}).optional().describe(\"Host supports image content blocks.\"),audio:J.object({}).optional().describe(\"Host supports audio content blocks.\"),resource:J.object({}).optional().describe(\"Host supports resource content blocks.\"),resourceLink:J.object({}).optional().describe(\"Host supports resource link content blocks.\"),structuredContent:J.object({}).optional().describe(\"Host supports structured content.\")}),AJ=J.object({method:J.literal(\"ui/notifications/request-teardown\"),params:J.object({}).optional()}),o=J.object({experimental:J.object({}).optional().describe(\"Experimental features (structure TBD).\"),openLinks:J.object({}).optional().describe(\"Host supports opening external URLs.\"),downloadFile:J.object({}).optional().describe(\"Host supports file downloads via ui/download-file.\"),serverTools:J.object({listChanged:J.boolean().optional().describe(\"Host supports tools/list_changed notifications.\")}).optional().describe(\"Host can proxy tool calls to the MCP server.\"),serverResources:J.object({listChanged:J.boolean().optional().describe(\"Host supports resources/list_changed notifications.\")}).optional().describe(\"Host can proxy resource reads to the MCP server.\"),logging:J.object({}).optional().describe(\"Host accepts log messages.\"),sandbox:J.object({permissions:D.optional().describe(\"Permissions granted by the host (camera, microphone, geolocation).\"),csp:P.optional().describe(\"CSP domains approved by the host.\")}).optional().describe(\"Sandbox configuration applied by the host.\"),updateModelContext:T.optional().describe(\"Host accepts context updates (ui/update-model-context) to be included in the model's context for future turns.\"),message:T.optional().describe(\"Host supports receiving content messages (ui/message) from the view.\"),sampling:J.object({tools:J.object({}).optional().describe(\"Host supports tool use via `tools` and `toolChoice` parameters.\")}).optional().describe(\"Host supports LLM sampling (sampling/createMessage) from the view.\\nMirrors the MCP `ClientCapabilities.sampling` shape so hosts can pass it through.\")}),a=J.object({experimental:J.object({}).optional().describe(\"Experimental features (structure TBD).\"),tools:J.object({listChanged:J.boolean().optional().describe(\"App supports tools/list_changed notifications.\")}).optional().describe(\"App exposes MCP-style tools that the host can call.\"),availableDisplayModes:J.array(V).optional().describe(\"Display modes the app supports.\")}),kJ=J.object({method:J.literal(\"ui/notifications/initialized\"),params:J.object({}).optional()}),CJ=J.object({csp:P.optional().describe(\"Content Security Policy configuration for UI resources.\"),permissions:D.optional().describe(\"Sandbox permissions requested by the UI resource.\"),domain:J.string().optional().describe(`Dedicated origin for view sandbox.\n\nUseful when views need stable, dedicated origins for OAuth callbacks, CORS policies, or API key allowlists.\n\n**Host-dependent:** The format and validation rules for this field are determined by each host. Servers MUST consult host-specific documentation for the expected domain format. Common patterns include:\n- Hash-based subdomains (e.g., \\`{hash}.claudemcpcontent.com\\`)\n- URL-derived subdomains (e.g., \\`www-example-com.oaiusercontent.com\\`)\n\nIf omitted, host uses default sandbox origin (typically per-conversation).`),prefersBorder:J.boolean().optional().describe(`Visual boundary preference - true if view prefers a visible border.\n\nBoolean requesting whether a visible border and background is provided by the host. Specifying an explicit value for this is recommended because hosts' defaults may vary.\n\n- \\`true\\`: request visible border + background\n- \\`false\\`: request no visible border + background\n- omitted: host decides border`)}),SJ=J.object({method:J.literal(\"ui/request-display-mode\"),params:J.object({mode:V.describe(\"The display mode being requested.\")})}),g=J.object({mode:V.describe(\"The display mode that was actually set. May differ from requested if not supported.\")}).passthrough(),s=J.union([J.literal(\"model\"),J.literal(\"app\")]).describe(\"Tool visibility scope - who can access the tool.\"),bJ=J.object({resourceUri:J.string().optional(),visibility:J.array(s).optional().describe(`Who can access this tool. Default: [\"model\", \"app\"]\n- \"model\": Tool visible to and callable by the agent\n- \"app\": Tool callable by the app from this server only`),csp:J.never().optional(),permissions:J.never().optional()}),_K=J.object({mimeTypes:J.array(J.string()).optional().describe('Array of supported MIME types for UI resources.\\nMust include `\"text/html;profile=mcp-app\"` for MCP Apps support.')}),xJ=J.object({method:J.literal(\"ui/download-file\"),params:J.object({contents:J.array(J.union([FJ,IJ])).describe(\"Resource contents to download — embedded (inline data) or linked (host fetches). Uses standard MCP resource types.\")})}),vJ=J.object({method:J.literal(\"ui/message\"),params:J.object({role:J.literal(\"user\").describe('Message role, currently only \"user\" is supported.'),content:J.array(r).describe(\"Message content blocks (text, image, etc.).\")})}),gJ=J.object({method:J.literal(\"ui/notifications/sandbox-resource-ready\"),params:J.object({html:J.string().describe(\"HTML content to load into the inner iframe.\"),sandbox:J.string().optional().describe(\"Optional override for the inner iframe's sandbox attribute.\"),csp:P.optional().describe(\"CSP configuration from resource metadata.\"),permissions:D.optional().describe(\"Sandbox permissions from resource metadata.\")})}),y=J.object({method:J.literal(\"ui/notifications/tool-result\"),params:DJ.describe(\"Standard MCP tool execution result.\")}),f=J.object({toolInfo:J.object({id:EJ.optional().describe(\"JSON-RPC id of the tools/call request.\"),tool:UJ.describe(\"Tool definition including name, inputSchema, etc.\")}).optional().describe(\"Metadata of the tool call that instantiated this App.\"),theme:i.optional().describe(\"Current color theme preference.\"),styles:n.optional().describe(\"Style configuration for theming the app.\"),displayMode:V.optional().describe(\"How the UI is currently displayed.\"),availableDisplayModes:J.array(V).optional().describe(\"Display modes the host supports.\"),containerDimensions:J.union([J.object({height:J.number().describe(\"Fixed container height in pixels.\")}),J.object({maxHeight:J.union([J.number(),J.undefined()]).optional().describe(\"Maximum container height in pixels.\")})]).and(J.union([J.object({width:J.number().describe(\"Fixed container width in pixels.\")}),J.object({maxWidth:J.union([J.number(),J.undefined()]).optional().describe(\"Maximum container width in pixels.\")})])).optional().describe(`Container dimensions. Represents the dimensions of the iframe or other\ncontainer holding the app. Specify either width or maxWidth, and either height or maxHeight.`),locale:J.string().optional().describe(\"User's language and region preference in BCP 47 format.\"),timeZone:J.string().optional().describe(\"User's timezone in IANA format.\"),userAgent:J.string().optional().describe(\"Host application identifier.\"),platform:J.union([J.literal(\"web\"),J.literal(\"desktop\"),J.literal(\"mobile\")]).optional().describe(\"Platform type for responsive design decisions.\"),deviceCapabilities:J.object({touch:J.boolean().optional().describe(\"Whether the device supports touch input.\"),hover:J.boolean().optional().describe(\"Whether the device supports hover interactions.\")}).optional().describe(\"Device input capabilities.\"),safeAreaInsets:J.object({top:J.number().describe(\"Top safe area inset in pixels.\"),right:J.number().describe(\"Right safe area inset in pixels.\"),bottom:J.number().describe(\"Bottom safe area inset in pixels.\"),left:J.number().describe(\"Left safe area inset in pixels.\")}).optional().describe(\"Mobile safe area boundaries in pixels.\")}).passthrough(),d=J.object({method:J.literal(\"ui/notifications/host-context-changed\"),params:f.describe(\"Partial context update containing only changed fields.\")}),yJ=J.object({method:J.literal(\"ui/update-model-context\"),params:J.object({content:J.array(r).optional().describe(\"Context content blocks (text, image, etc.).\"),structuredContent:J.record(J.string(),J.unknown().describe(\"Structured content for machine-readable context data.\")).optional().describe(\"Structured content for machine-readable context data.\")})}),fJ=J.object({method:J.literal(\"ui/initialize\"),params:J.object({appInfo:l.describe(\"App identification (name and version).\"),appCapabilities:a.describe(\"Features and capabilities this app provides.\"),protocolVersion:J.string().describe(\"Protocol version this app supports.\")})}),u=J.object({protocolVersion:J.string().describe('Negotiated protocol version string (e.g., \"2025-11-21\").'),hostInfo:l.describe(\"Host application identification and version.\"),hostCapabilities:o.describe(\"Features and capabilities provided by the host.\"),hostContext:f.describe(\"Rich context about the host environment.\")}).passthrough();var dJ={target:\"draft-2020-12\"};async function h(K,Q){let X=K[\"~standard\"];if(X.jsonSchema)return X.jsonSchema[Q](dJ);if(X.vendor===\"zod\"){let{z:Y}=await import(\"zod/v4\");return Y.toJSONSchema(K,{io:Q})}throw Error(`Schema (vendor: ${X.vendor}) does not implement Standard JSON Schema (~standard.jsonSchema). Use a library that does (zod v4, ArkType, Valibot) or wrap your schema accordingly.`)}async function m(K,Q,X=\"\"){let Y=await K[\"~standard\"].validate(Q);if(Y.issues){let Z=Y.issues.map(($)=>{let G=$.path?.map((j)=>typeof j===\"object\"?j.key:j).join(\".\");return G?`${G}: ${$.message}`:$.message}).join(\"; \");throw Error(X+Z)}return Y.value}import{z as aJ}from\"zod/v4\";function F(){let K=document.documentElement.getAttribute(\"data-theme\");if(K===\"dark\"||K===\"light\")return K;return document.documentElement.classList.contains(\"dark\")?\"dark\":\"light\"}function E(K){let Q=document.documentElement;Q.setAttribute(\"data-theme\",K),Q.style.colorScheme=K}function I(K,Q=document.documentElement){for(let[X,Y]of Object.entries(K))if(Y!==void 0)Q.style.setProperty(X,Y)}function U(K){if(document.getElementById(\"__mcp-host-fonts\"))return;let X=document.createElement(\"style\");X.id=\"__mcp-host-fonts\",X.textContent=K,document.head.appendChild(X)}var NQ=\"ui/resourceUri\",BQ=\"text/html;profile=mcp-app\";class R extends z{_appInfo;_capabilities;options;_hostCapabilities;_hostInfo;_hostContext;_registeredTools={};_initializedSent=!1;_assertInitialized(K){if(this._initializedSent)return;let Q=`[ext-apps] App.${K}() called before connect() completed the ui/initialize handshake. Await app.connect() before calling this method, or move data loading to an ontoolresult handler.`;if(this.options?.strict)throw Error(Q);console.warn(`${Q}. This will throw in a future release.`)}eventSchemas={toolinput:S,toolinputpartial:b,toolresult:y,toolcancelled:x,hostcontextchanged:d};static ONE_SHOT_EVENTS=new Set([\"toolinput\",\"toolinputpartial\",\"toolresult\",\"toolcancelled\"]);_everHadListener=new Set;_assertHandlerTiming(K){if(!R.ONE_SHOT_EVENTS.has(K)||this._everHadListener.has(K))return;if(this._everHadListener.add(K),!this._initializedSent)return;let Q=`[ext-apps] \"${String(K)}\" handler registered after connect() completed the ui/initialize handshake. The host may have already sent this notification. Register handlers before calling app.connect().`;if(this.options?.strict)throw Error(Q);console.warn(Q)}setEventHandler(K,Q){if(Q)this._assertHandlerTiming(K);super.setEventHandler(K,Q)}addEventListener(K,Q){this._assertHandlerTiming(K),super.addEventListener(K,Q)}onEventDispatch(K,Q){if(K===\"hostcontextchanged\")this._hostContext={...this._hostContext,...Q}}constructor(K,Q={},X={autoResize:!0}){super(X);this._appInfo=K;this._capabilities=Q;this.options=X;if(!X.allowUnsafeEval)aJ.config({jitless:!0});this.setRequestHandler(nJ,(Y)=>{return console.log(\"Received ping:\",Y.params),{}}),this.setEventHandler(\"hostcontextchanged\",void 0)}registerCapabilities(K){if(this.transport)throw Error(\"Cannot register capabilities after transport is established\");this._capabilities=uJ(this._capabilities,K)}registerTool(K,Q,X){if(this._registeredTools[K])throw Error(`Tool ${K} is already registered`);let Y=this,Z=()=>{if(Y._initializedSent&&Y._capabilities.tools?.listChanged)Y.sendToolListChanged()},$=Q.inputSchema!==void 0,G={title:Q.title,description:Q.description,inputSchema:Q.inputSchema,outputSchema:Q.outputSchema,annotations:Q.annotations,_meta:Q._meta,enabled:!0,enable(){this.enabled=!0,Z()},disable(){this.enabled=!1,Z()},update(j){Object.assign(this,j),Z()},remove(){if(Y._registeredTools[K]!==G)return;delete Y._registeredTools[K],Z()},handler:async(j,W)=>{if(!G.enabled)throw Error(`Tool ${K} is disabled`);let L;if($){let _=G.inputSchema,O=_?await m(_,j??{},`Invalid input for tool ${K}: `):j??{};L=await X(O,W)}else L=await X(W);if(G.outputSchema&&!L.isError)L.structuredContent=await m(G.outputSchema,L.structuredContent,`Invalid output for tool ${K}: `);return L}};if(this._registeredTools[K]=G,!this._capabilities.tools&&!this.transport)this.registerCapabilities({tools:{listChanged:!0}});return this.ensureToolHandlersInitialized(),Z(),G}_toolHandlersInitialized=!1;ensureToolHandlersInitialized(){if(this._toolHandlersInitialized)return;this._toolHandlersInitialized=!0,this.oncalltool=async(K,Q)=>{let X=this._registeredTools[K.name];if(!X)throw Error(`Tool ${K.name} not found`);return X.handler(K.arguments,Q)},this.onlisttools=async(K,Q)=>{return{tools:await Promise.all(Object.entries(this._registeredTools).filter(([Y,Z])=>Z.enabled).map(async([Y,Z])=>{let $={name:Y,title:Z.title,description:Z.description,inputSchema:Z.inputSchema?await h(Z.inputSchema,\"input\"):{type:\"object\",properties:{}}};if(Z.outputSchema)$.outputSchema=await h(Z.outputSchema,\"output\");if(Z.annotations)$.annotations=Z.annotations;if(Z._meta)$._meta=Z._meta;return $}))}}}async sendToolListChanged(K={}){this._assertInitialized(\"sendToolListChanged\"),await this.notification({method:\"notifications/tools/list_changed\",params:K})}getHostCapabilities(){return this._hostCapabilities}getHostVersion(){return this._hostInfo}getHostContext(){return this._hostContext}get ontoolinput(){return this.getEventHandler(\"toolinput\")}set ontoolinput(K){this.setEventHandler(\"toolinput\",K)}get ontoolinputpartial(){return this.getEventHandler(\"toolinputpartial\")}set ontoolinputpartial(K){this.setEventHandler(\"toolinputpartial\",K)}get ontoolresult(){return this.getEventHandler(\"toolresult\")}set ontoolresult(K){this.setEventHandler(\"toolresult\",K)}get ontoolcancelled(){return this.getEventHandler(\"toolcancelled\")}set ontoolcancelled(K){this.setEventHandler(\"toolcancelled\",K)}get onhostcontextchanged(){return this.getEventHandler(\"hostcontextchanged\")}set onhostcontextchanged(K){this.setEventHandler(\"hostcontextchanged\",K)}_onteardown;get onteardown(){return this._onteardown}set onteardown(K){this.warnIfRequestHandlerReplaced(\"onteardown\",this._onteardown,K),this._onteardown=K,this.replaceRequestHandler(v,(Q,X)=>{if(!this._onteardown)throw Error(\"No onteardown handler set\");return this._onteardown(Q.params,X)})}_oncalltool;get oncalltool(){return this._oncalltool}set oncalltool(K){this.warnIfRequestHandlerReplaced(\"oncalltool\",this._oncalltool,K),this._oncalltool=K,this.replaceRequestHandler(hJ,(Q,X)=>{if(!this._oncalltool)throw Error(\"No oncalltool handler set\");return this._oncalltool(Q.params,X)})}_onlisttools;get onlisttools(){return this._onlisttools}set onlisttools(K){this.warnIfRequestHandlerReplaced(\"onlisttools\",this._onlisttools,K),this._onlisttools=K,this.replaceRequestHandler(pJ,(Q,X)=>{if(!this._onlisttools)throw Error(\"No onlisttools handler set\");return this._onlisttools(Q.params,X)})}assertCapabilityForMethod(K){switch(K){case\"sampling/createMessage\":if(!this._hostCapabilities?.sampling)throw Error(`Host does not support sampling (required for ${K})`);break}}assertRequestHandlerCapability(K){switch(K){case\"tools/call\":case\"tools/list\":if(!this._capabilities.tools)throw Error(`Client does not support tool capability (required for ${K})`);return;case\"ping\":case\"ui/resource-teardown\":return;default:throw Error(`No handler for method ${K} registered`)}}assertNotificationCapability(K){}assertTaskCapability(K){throw Error(\"Tasks are not supported in MCP Apps\")}assertTaskHandlerCapability(K){throw Error(\"Task handlers are not supported in MCP Apps\")}async callServerTool(K,Q){if(this._assertInitialized(\"callServerTool\"),typeof K===\"string\")throw Error(`callServerTool() expects an object as its first argument, but received a string (\"${K}\"). Did you mean: callServerTool({ name: \"${K}\", arguments: { ... } })?`);return await this.request({method:\"tools/call\",params:K},mJ,{onprogress:()=>{},resetTimeoutOnProgress:!0,...Q})}async readServerResource(K,Q){return this._assertInitialized(\"readServerResource\"),await this.request({method:\"resources/read\",params:K},oJ,Q)}async listServerResources(K,Q){return this._assertInitialized(\"listServerResources\"),await this.request({method:\"resources/list\",params:K},iJ,Q)}async createSamplingMessage(K,Q){this._assertInitialized(\"createSamplingMessage\");let X=K.tools?rJ:cJ;return await this.request({method:\"sampling/createMessage\",params:K},X,Q)}sendMessage(K,Q){return this._assertInitialized(\"sendMessage\"),this.request({method:\"ui/message\",params:K},C,Q)}sendLog(K){return this.notification({method:\"notifications/message\",params:K})}updateModelContext(K,Q){return this._assertInitialized(\"updateModelContext\"),this.request({method:\"ui/update-model-context\",params:K},lJ,Q)}openLink(K,Q){return this._assertInitialized(\"openLink\"),this.request({method:\"ui/open-link\",params:K},A,Q)}sendOpenLink=this.openLink;downloadFile(K,Q){return this._assertInitialized(\"downloadFile\"),this.request({method:\"ui/download-file\",params:K},k,Q)}requestTeardown(K={}){return this.notification({method:\"ui/notifications/request-teardown\",params:K})}requestDisplayMode(K,Q){return this._assertInitialized(\"requestDisplayMode\"),this.request({method:\"ui/request-display-mode\",params:K},g,Q)}sendSizeChanged(K){return this.notification({method:\"ui/notifications/size-changed\",params:K})}setupSizeChangedNotifications(){let K=!1,Q=0,X=0,Y=()=>{if(K)return;K=!0,requestAnimationFrame(()=>{K=!1;let $=document.documentElement,G=$.style.height;$.style.height=\"max-content\";let j=Math.ceil($.getBoundingClientRect().height);$.style.height=G;let W=Math.ceil(window.innerWidth);if(W!==Q||j!==X)Q=W,X=j,this.sendSizeChanged({width:W,height:j})})};Y();let Z=new ResizeObserver(Y);return Z.observe(document.documentElement),Z.observe(document.body),()=>Z.disconnect()}async connect(K=new B(window.parent,window.parent),Q){if(this.transport)throw Error(\"App is already connected. Call close() before connecting again.\");this._initializedSent=!1,await super.connect(K);try{let X=await this.request({method:\"ui/initialize\",params:{appCapabilities:this._capabilities,appInfo:this._appInfo,protocolVersion:w}},u,Q);if(X===void 0)throw Error(`Server sent invalid initialize result: ${X}`);if(this._hostCapabilities=X.hostCapabilities,this._hostInfo=X.hostInfo,this._hostContext=X.hostContext,await this.notification({method:\"ui/notifications/initialized\"}),this._initializedSent=!0,this.options?.autoResize)this.setupSizeChangedNotifications()}catch(X){throw this.close(),X}}}function IQ({appInfo:K,capabilities:Q,onAppCreated:X,autoResize:Y=!0,strict:Z}){let[$,G]=c(null),[j,W]=c(!1),[L,_]=c(null);return sJ(()=>{let O=!0,N;async function e(){try{let q=new B(window.parent,window.parent);if(N=new R(K,Q,{autoResize:Y,strict:Z}),X?.(N),await N.connect(q),!O){N.close();return}G(N),W(!0),_(null)}catch(q){if(O)G(null),W(!1),_(q instanceof Error?q:Error(\"Failed to connect\"))}}return e(),()=>{O=!1,N?.close()}},[]),{app:$,isConnected:j,error:L}}import{useEffect as tJ}from\"react\";function wQ(K,Q){tJ(()=>{if(!K)return;return K.setupSizeChangedNotifications()},[K,Q])}import{useEffect as eJ,useState as JK}from\"react\";function kQ(){let[K,Q]=JK(F);return eJ(()=>{let X=new MutationObserver(()=>{Q(F())});return X.observe(document.documentElement,{attributes:!0,attributeFilter:[\"data-theme\",\"class\"],characterData:!1,childList:!1,subtree:!1}),()=>X.disconnect()},[]),K}import{useEffect as M,useRef as t}from\"react\";function KK(K,Q){let X=t(!1);M(()=>{if(X.current)return;if(Q?.theme)E(Q.theme);if(Q?.styles?.variables)I(Q.styles.variables);if(Q?.theme||Q?.styles?.variables)X.current=!0},[Q]),M(()=>{if(!K)return;let Y=(Z)=>{if(Z.theme)E(Z.theme);if(Z.styles?.variables)I(Z.styles.variables)};return K.addEventListener(\"hostcontextchanged\",Y),()=>K.removeEventListener(\"hostcontextchanged\",Y)},[K])}function QK(K,Q){let X=t(!1);M(()=>{if(X.current)return;if(Q?.styles?.css?.fonts)U(Q.styles.css.fonts),X.current=!0},[Q]),M(()=>{if(!K)return;let Y=(Z)=>{if(Z.styles?.css?.fonts)U(Z.styles.css.fonts)};return K.addEventListener(\"hostcontextchanged\",Y),()=>K.removeEventListener(\"hostcontextchanged\",Y)},[K])}function xQ(K,Q){KK(K,Q),QK(K,Q)}export{xQ as useHostStyles,KK as useHostStyleVariables,QK as useHostFonts,kQ as useDocumentTheme,wQ as useAutoResize,IQ as useApp,F as getDocumentTheme,I as applyHostStyleVariables,U as applyHostFonts,E as applyDocumentTheme,WJ as TOOL_RESULT_METHOD,H as TOOL_INPUT_PARTIAL_METHOD,jJ as TOOL_INPUT_METHOD,LJ as TOOL_CANCELLED_METHOD,GJ as SIZE_CHANGED_METHOD,$J as SANDBOX_RESOURCE_READY_METHOD,ZJ as SANDBOX_PROXY_READY_METHOD,NQ as RESOURCE_URI_META_KEY,VJ as RESOURCE_TEARDOWN_METHOD,BQ as RESOURCE_MIME_TYPE,BJ as REQUEST_TEARDOWN_METHOD,qJ as REQUEST_DISPLAY_MODE_METHOD,z as ProtocolWithEvents,B as PostMessageTransport,QJ as OPEN_LINK_METHOD,yJ as McpUiUpdateModelContextRequestSchema,s as McpUiToolVisibilitySchema,y as McpUiToolResultNotificationSchema,bJ as McpUiToolMetaSchema,b as McpUiToolInputPartialNotificationSchema,S as McpUiToolInputNotificationSchema,x as McpUiToolCancelledNotificationSchema,i as McpUiThemeSchema,T as McpUiSupportedContentBlockModalitiesSchema,HJ as McpUiSizeChangedNotificationSchema,gJ as McpUiSandboxResourceReadyNotificationSchema,wJ as McpUiSandboxProxyReadyNotificationSchema,TJ as McpUiResourceTeardownResultSchema,v as McpUiResourceTeardownRequestSchema,D as McpUiResourcePermissionsSchema,CJ as McpUiResourceMetaSchema,P as McpUiResourceCspSchema,AJ as McpUiRequestTeardownNotificationSchema,g as McpUiRequestDisplayModeResultSchema,SJ as McpUiRequestDisplayModeRequestSchema,A as McpUiOpenLinkResultSchema,zJ as McpUiOpenLinkRequestSchema,C as McpUiMessageResultSchema,vJ as McpUiMessageRequestSchema,kJ as McpUiInitializedNotificationSchema,u as McpUiInitializeResultSchema,fJ as McpUiInitializeRequestSchema,n as McpUiHostStylesSchema,p as McpUiHostCssSchema,f as McpUiHostContextSchema,d as McpUiHostContextChangedNotificationSchema,o as McpUiHostCapabilitiesSchema,k as McpUiDownloadFileResultSchema,xJ as McpUiDownloadFileRequestSchema,V as McpUiDisplayModeSchema,a as McpUiAppCapabilitiesSchema,YJ as MESSAGE_METHOD,w as LATEST_PROTOCOL_VERSION,_J as INITIALIZE_METHOD,OJ as INITIALIZED_METHOD,NJ as HOST_CONTEXT_CHANGED_METHOD,XJ as DOWNLOAD_FILE_METHOD,R as App};\n"],"x_google_ignoreList":[0],"mappings":";;;;;;EAAS,MAAI,OAAA,YAAe,MAAA,YAAY,OAAO,QAAM,MAAI,IAAI,MAAM,GAAE,EAAC,MAAK,GAAE,OAAK,OAAA,YAAe,MAAA,YAAY,GAAG,IAAG,CAAC,GAAC,GAAG,SAAS,GAAE;CAAC,IAAG,OAAA,YAAe,KAAI,OAAA,UAAe,MAAM,MAAK,UAAU;CAAC,MAAM,MAAM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AM,EAAC,EAAE,UAAQ,CAAC;IAAG,CAAC,EAAE,CAAC,GAAA,GAAA,aAAA,iBAAO;EAAC,IAAG,CAAC,GAAE;EAAO,IAAI,KAAG,MAAI;GAAC,IAAG,EAAE,QAAQ,KAAK,OAAM,EAAE,EAAE,OAAO,IAAI,MAAM;;EAAE,OAAO,EAAE,iBAAiB,sBAAqB,EAAE,QAAK,EAAE,oBAAoB,sBAAqB,EAAE;IAAE,CAAC,EAAE,CAAC;;AAAC,SAAS,GAAG,GAAE,GAAE;CAAC,GAAG,GAAE,EAAE,EAAC,GAAG,GAAE,EAAE"}
@@ -1,103 +1,103 @@
1
1
  {
2
- "hash": "2f7824bc",
2
+ "hash": "67033d10",
3
3
  "configHash": "3a9e239c",
4
- "lockfileHash": "07100792",
5
- "browserHash": "8dcb8643",
4
+ "lockfileHash": "f9b3a634",
5
+ "browserHash": "cdc62a38",
6
6
  "optimized": {
7
7
  "@modelcontextprotocol/ext-apps": {
8
- "src": "../../../../../../node_modules/.pnpm/@modelcontextprotocol+ext-apps@1.7.1_@modelcontextprotocol+sdk@1.29.0_zod@4.4.3__react-_3f5c1a6a4033ae62a19a2bb834f0e050/node_modules/@modelcontextprotocol/ext-apps/dist/src/app.js",
8
+ "src": "../../../../../../node_modules/.pnpm/@modelcontextprotocol+ext-apps@1.7.2_@modelcontextprotocol+sdk@1.29.0_zod@4.4.3__react-_f5b843da9146ebea748e10ad8dfce46a/node_modules/@modelcontextprotocol/ext-apps/dist/src/app.js",
9
9
  "file": "@modelcontextprotocol_ext-apps.js",
10
- "fileHash": "17eae90a",
10
+ "fileHash": "c9e9a1a9",
11
11
  "needsInterop": false
12
12
  },
13
13
  "@modelcontextprotocol/ext-apps/app-bridge": {
14
- "src": "../../../../../../node_modules/.pnpm/@modelcontextprotocol+ext-apps@1.7.1_@modelcontextprotocol+sdk@1.29.0_zod@4.4.3__react-_3f5c1a6a4033ae62a19a2bb834f0e050/node_modules/@modelcontextprotocol/ext-apps/dist/src/app-bridge.js",
14
+ "src": "../../../../../../node_modules/.pnpm/@modelcontextprotocol+ext-apps@1.7.2_@modelcontextprotocol+sdk@1.29.0_zod@4.4.3__react-_f5b843da9146ebea748e10ad8dfce46a/node_modules/@modelcontextprotocol/ext-apps/dist/src/app-bridge.js",
15
15
  "file": "@modelcontextprotocol_ext-apps_app-bridge.js",
16
- "fileHash": "08d190e7",
16
+ "fileHash": "0b07f969",
17
17
  "needsInterop": false
18
18
  },
19
19
  "@modelcontextprotocol/ext-apps/react": {
20
- "src": "../../../../../../node_modules/.pnpm/@modelcontextprotocol+ext-apps@1.7.1_@modelcontextprotocol+sdk@1.29.0_zod@4.4.3__react-_3f5c1a6a4033ae62a19a2bb834f0e050/node_modules/@modelcontextprotocol/ext-apps/dist/src/react/index.js",
20
+ "src": "../../../../../../node_modules/.pnpm/@modelcontextprotocol+ext-apps@1.7.2_@modelcontextprotocol+sdk@1.29.0_zod@4.4.3__react-_f5b843da9146ebea748e10ad8dfce46a/node_modules/@modelcontextprotocol/ext-apps/dist/src/react/index.js",
21
21
  "file": "@modelcontextprotocol_ext-apps_react.js",
22
- "fileHash": "4201d27a",
22
+ "fileHash": "8a7221a8",
23
23
  "needsInterop": false
24
24
  },
25
25
  "@testing-library/react": {
26
26
  "src": "../../../../../../node_modules/.pnpm/@testing-library+react@16.3.2_@testing-library+dom@10.4.1_@types+react-dom@19.2.3_@type_01f2c7bab43719bd0469ec1c0554baf5/node_modules/@testing-library/react/dist/@testing-library/react.esm.js",
27
27
  "file": "@testing-library_react.js",
28
- "fileHash": "bce7f838",
28
+ "fileHash": "b1cbe387",
29
29
  "needsInterop": false
30
30
  },
31
31
  "clsx": {
32
32
  "src": "../../../../../../node_modules/.pnpm/clsx@2.1.1/node_modules/clsx/dist/clsx.mjs",
33
33
  "file": "clsx.js",
34
- "fileHash": "6674a3ec",
34
+ "fileHash": "c0aa4410",
35
35
  "needsInterop": false
36
36
  },
37
37
  "embla-carousel-react": {
38
38
  "src": "../../../../../../node_modules/.pnpm/embla-carousel-react@8.6.0_react@19.2.6/node_modules/embla-carousel-react/esm/embla-carousel-react.esm.js",
39
39
  "file": "embla-carousel-react.js",
40
- "fileHash": "340b9f2c",
40
+ "fileHash": "55ff906a",
41
41
  "needsInterop": false
42
42
  },
43
43
  "embla-carousel-wheel-gestures": {
44
44
  "src": "../../../../../../node_modules/.pnpm/embla-carousel-wheel-gestures@8.1.0_embla-carousel@8.6.0/node_modules/embla-carousel-wheel-gestures/dist/embla-carousel-wheel-gestures.esm.js",
45
45
  "file": "embla-carousel-wheel-gestures.js",
46
- "fileHash": "a84d9b77",
46
+ "fileHash": "f7f53ec0",
47
47
  "needsInterop": false
48
48
  },
49
49
  "mapbox-gl": {
50
50
  "src": "../../../../../../node_modules/.pnpm/mapbox-gl@3.23.1/node_modules/mapbox-gl/dist/mapbox-gl.js",
51
51
  "file": "mapbox-gl.js",
52
- "fileHash": "03e6bde7",
52
+ "fileHash": "c96e81f3",
53
53
  "needsInterop": true
54
54
  },
55
55
  "react-dom": {
56
56
  "src": "../../../../../../node_modules/.pnpm/react-dom@19.2.6_react@19.2.6/node_modules/react-dom/index.js",
57
57
  "file": "react-dom.js",
58
- "fileHash": "22301f56",
58
+ "fileHash": "7a999496",
59
59
  "needsInterop": true
60
60
  },
61
61
  "react-dom/client": {
62
62
  "src": "../../../../../../node_modules/.pnpm/react-dom@19.2.6_react@19.2.6/node_modules/react-dom/client.js",
63
63
  "file": "react-dom_client.js",
64
- "fileHash": "e01354df",
64
+ "fileHash": "bb72e444",
65
65
  "needsInterop": true
66
66
  },
67
67
  "react": {
68
68
  "src": "../../../../../../node_modules/.pnpm/react@19.2.6/node_modules/react/index.js",
69
69
  "file": "react.js",
70
- "fileHash": "4a5d5f0c",
70
+ "fileHash": "51b57450",
71
71
  "needsInterop": true
72
72
  },
73
73
  "react/jsx-dev-runtime": {
74
74
  "src": "../../../../../../node_modules/.pnpm/react@19.2.6/node_modules/react/jsx-dev-runtime.js",
75
75
  "file": "react_jsx-dev-runtime.js",
76
- "fileHash": "b1c716d8",
76
+ "fileHash": "fa5ac298",
77
77
  "needsInterop": true
78
78
  },
79
79
  "react/jsx-runtime": {
80
80
  "src": "../../../../../../node_modules/.pnpm/react@19.2.6/node_modules/react/jsx-runtime.js",
81
81
  "file": "react_jsx-runtime.js",
82
- "fileHash": "0e7815c4",
82
+ "fileHash": "7c0ec8bd",
83
83
  "needsInterop": true
84
84
  },
85
85
  "tailwind-merge": {
86
86
  "src": "../../../../../../node_modules/.pnpm/tailwind-merge@3.6.0/node_modules/tailwind-merge/dist/bundle-mjs.mjs",
87
87
  "file": "tailwind-merge.js",
88
- "fileHash": "407356cc",
88
+ "fileHash": "13bbd3df",
89
89
  "needsInterop": false
90
90
  },
91
91
  "vitest": {
92
92
  "src": "../../../../../../node_modules/.pnpm/vitest@4.1.6_@opentelemetry+api@1.9.0_@types+node@25.8.0_happy-dom@20.9.0_jsdom@29.0.1__f79eb4f4324a2390ce2eaeddab8b6107/node_modules/vitest/dist/index.js",
93
93
  "file": "vitest.js",
94
- "fileHash": "dd82bfdd",
94
+ "fileHash": "3d001981",
95
95
  "needsInterop": false
96
96
  },
97
97
  "zod": {
98
98
  "src": "../../../../../../node_modules/.pnpm/zod@4.4.3/node_modules/zod/index.js",
99
99
  "file": "zod.js",
100
- "fileHash": "776dd944",
100
+ "fileHash": "2335ca6c",
101
101
  "needsInterop": false
102
102
  }
103
103
  },