sunpeak 0.18.9 → 0.18.12
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/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 +67 -62
- package/dist/mcp/index.cjs.map +1 -1
- package/dist/mcp/index.js +61 -56
- package/dist/mcp/index.js.map +1 -1
- 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
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"@modelcontextprotocol_ext-apps_react.js","names":["LJ","J.union","J.literal","J.record","J.string","J.undefined","J.object","J.boolean","J.array","J.number","J.unknown","BJ","PJ","u","NJ","VJ","_J","h","bJ","fJ","SJ","yJ","CJ","dJ","xJ","gJ"],"sources":["../../../../../../node_modules/.pnpm/@modelcontextprotocol+ext-apps@1.3.1_@modelcontextprotocol+sdk@1.27.1_zod@4.3.6__react-_cd1fb28fd87e0bddd0a29eba0721855d/node_modules/@modelcontextprotocol/ext-apps/dist/src/react/index.js"],"sourcesContent":["import{useEffect as uJ,useState as d}from\"react\";import{Protocol as bJ}from\"@modelcontextprotocol/sdk/shared/protocol.js\";import{CallToolRequestSchema as SJ,CallToolResultSchema as CJ,EmptyResultSchema as gJ,ListResourcesResultSchema as xJ,ListToolsRequestSchema as yJ,PingRequestSchema as fJ,ReadResourceResultSchema as dJ}from\"@modelcontextprotocol/sdk/types.js\";import{JSONRPCMessageSchema as LJ}from\"@modelcontextprotocol/sdk/types.js\";var z=\"2026-01-26\",o=\"ui/open-link\",a=\"ui/download-file\",s=\"ui/message\",t=\"ui/notifications/sandbox-proxy-ready\",e=\"ui/notifications/sandbox-resource-ready\",JJ=\"ui/notifications/size-changed\",KJ=\"ui/notifications/tool-input\",U=\"ui/notifications/tool-input-partial\",QJ=\"ui/notifications/tool-result\",XJ=\"ui/notifications/tool-cancelled\",YJ=\"ui/notifications/host-context-changed\",ZJ=\"ui/notifications/request-teardown\",$J=\"ui/resource-teardown\",GJ=\"ui/initialize\",jJ=\"ui/notifications/initialized\",WJ=\"ui/request-display-mode\";class j{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=LJ.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!==U)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 u,CallToolResultSchema as NJ,EmbeddedResourceSchema as BJ,ImplementationSchema as h,RequestIdSchema as VJ,ResourceLinkSchema as PJ,ToolSchema as _J}from\"@modelcontextprotocol/sdk/types.js\";var m=J.union([J.literal(\"light\"),J.literal(\"dark\")]).describe(\"Color theme preference for the host environment.\"),W=J.union([J.literal(\"inline\"),J.literal(\"fullscreen\"),J.literal(\"pip\")]).describe(\"Display mode for UI presentation.\"),OJ=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.\"),qJ=J.record(OJ.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.`),DJ=J.object({method:J.literal(\"ui/open-link\"),params:J.object({url:J.string().describe(\"URL to open in the host's browser\")})}),M=J.object({isError:J.boolean().optional().describe(\"True if the host failed to open the URL (e.g., due to security policy).\")}).passthrough(),T=J.object({isError:J.boolean().optional().describe(\"True if the download failed (e.g., user cancelled or host denied).\")}).passthrough(),H=J.object({isError:J.boolean().optional().describe(\"True if the host rejected or failed to deliver the message.\")}).passthrough(),IJ=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'`)\")}),_=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.\")}),FJ=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.\")})}),v=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.\")})}),A=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).\")})}),k=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\").')})}),c=J.object({fonts:J.string().optional()}),r=J.object({variables:qJ.optional().describe(\"CSS variables for theming the app.\"),css:c.optional().describe(\"CSS blocks that apps can inject.\")}),b=J.object({method:J.literal(\"ui/resource-teardown\"),params:J.object({})}),EJ=J.record(J.string(),J.unknown()),w=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.\")}),RJ=J.object({method:J.literal(\"ui/notifications/request-teardown\"),params:J.object({}).optional()}),l=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:_.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:w.optional().describe(\"Host accepts context updates (ui/update-model-context) to be included in the model's context for future turns.\"),message:w.optional().describe(\"Host supports receiving content messages (ui/message) from the view.\")}),i=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(W).optional().describe(\"Display modes the app supports.\")}),zJ=J.object({method:J.literal(\"ui/notifications/initialized\"),params:J.object({}).optional()}),UJ=J.object({csp:P.optional().describe(\"Content Security Policy configuration for UI resources.\"),permissions:_.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`)}),wJ=J.object({method:J.literal(\"ui/request-display-mode\"),params:J.object({mode:W.describe(\"The display mode being requested.\")})}),S=J.object({mode:W.describe(\"The display mode that was actually set. May differ from requested if not supported.\")}).passthrough(),p=J.union([J.literal(\"model\"),J.literal(\"app\")]).describe(\"Tool visibility scope - who can access the tool.\"),MJ=J.object({resourceUri:J.string().optional(),visibility:J.array(p).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`)}),JK=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.')}),TJ=J.object({method:J.literal(\"ui/download-file\"),params:J.object({contents:J.array(J.union([BJ,PJ])).describe(\"Resource contents to download — embedded (inline data) or linked (host fetches). Uses standard MCP resource types.\")})}),HJ=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(u).describe(\"Message content blocks (text, image, etc.).\")})}),vJ=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:_.optional().describe(\"Sandbox permissions from resource metadata.\")})}),C=J.object({method:J.literal(\"ui/notifications/tool-result\"),params:NJ.describe(\"Standard MCP tool execution result.\")}),g=J.object({toolInfo:J.object({id:VJ.optional().describe(\"JSON-RPC id of the tools/call request.\"),tool:_J.describe(\"Tool definition including name, inputSchema, etc.\")}).optional().describe(\"Metadata of the tool call that instantiated this App.\"),theme:m.optional().describe(\"Current color theme preference.\"),styles:r.optional().describe(\"Style configuration for theming the app.\"),displayMode:W.optional().describe(\"How the UI is currently displayed.\"),availableDisplayModes:J.array(W).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(),x=J.object({method:J.literal(\"ui/notifications/host-context-changed\"),params:g.describe(\"Partial context update containing only changed fields.\")}),AJ=J.object({method:J.literal(\"ui/update-model-context\"),params:J.object({content:J.array(u).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.\")})}),kJ=J.object({method:J.literal(\"ui/initialize\"),params:J.object({appInfo:h.describe(\"App identification (name and version).\"),appCapabilities:i.describe(\"Features and capabilities this app provides.\"),protocolVersion:J.string().describe(\"Protocol version this app supports.\")})}),y=J.object({protocolVersion:J.string().describe('Negotiated protocol version string (e.g., \"2025-11-21\").'),hostInfo:h.describe(\"Host application identification and version.\"),hostCapabilities:l.describe(\"Features and capabilities provided by the host.\"),hostContext:g.describe(\"Rich context about the host environment.\")}).passthrough();function O(){let K=document.documentElement.getAttribute(\"data-theme\");if(K===\"dark\"||K===\"light\")return K;return document.documentElement.classList.contains(\"dark\")?\"dark\":\"light\"}function q(K){let Q=document.documentElement;Q.setAttribute(\"data-theme\",K),Q.style.colorScheme=K}function D(K,Q=document.documentElement){for(let[X,Y]of Object.entries(K))if(Y!==void 0)Q.style.setProperty(X,Y)}function I(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 dK=\"ui/resourceUri\",uK=\"text/html;profile=mcp-app\";class f extends bJ{_appInfo;_capabilities;options;_hostCapabilities;_hostInfo;_hostContext;constructor(K,Q={},X={autoResize:!0}){super(X);this._appInfo=K;this._capabilities=Q;this.options=X;this.setRequestHandler(fJ,(Y)=>{return console.log(\"Received ping:\",Y.params),{}}),this.onhostcontextchanged=()=>{}}getHostCapabilities(){return this._hostCapabilities}getHostVersion(){return this._hostInfo}getHostContext(){return this._hostContext}set ontoolinput(K){this.setNotificationHandler(v,(Q)=>K(Q.params))}set ontoolinputpartial(K){this.setNotificationHandler(A,(Q)=>K(Q.params))}set ontoolresult(K){this.setNotificationHandler(C,(Q)=>K(Q.params))}set ontoolcancelled(K){this.setNotificationHandler(k,(Q)=>K(Q.params))}set onhostcontextchanged(K){this.setNotificationHandler(x,(Q)=>{this._hostContext={...this._hostContext,...Q.params},K(Q.params)})}set onteardown(K){this.setRequestHandler(b,(Q,X)=>K(Q.params,X))}set oncalltool(K){this.setRequestHandler(SJ,(Q,X)=>K(Q.params,X))}set onlisttools(K){this.setRequestHandler(yJ,(Q,X)=>K(Q.params,X))}assertCapabilityForMethod(K){}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(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},CJ,Q)}async readServerResource(K,Q){return await this.request({method:\"resources/read\",params:K},dJ,Q)}async listServerResources(K,Q){return await this.request({method:\"resources/list\",params:K},xJ,Q)}sendMessage(K,Q){return this.request({method:\"ui/message\",params:K},H,Q)}sendLog(K){return this.notification({method:\"notifications/message\",params:K})}updateModelContext(K,Q){return this.request({method:\"ui/update-model-context\",params:K},gJ,Q)}openLink(K,Q){return this.request({method:\"ui/open-link\",params:K},M,Q)}sendOpenLink=this.openLink;downloadFile(K,Q){return this.request({method:\"ui/download-file\",params:K},T,Q)}requestTeardown(K={}){return this.notification({method:\"ui/notifications/request-teardown\",params:K})}requestDisplayMode(K,Q){return this.request({method:\"ui/request-display-mode\",params:K},S,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 Z=document.documentElement,V=Z.style.width,E=Z.style.height;Z.style.width=\"fit-content\",Z.style.height=\"max-content\";let L=Z.getBoundingClientRect();Z.style.width=V,Z.style.height=E;let N=window.innerWidth-Z.clientWidth,B=Math.ceil(L.width+N),$=Math.ceil(L.height);if(B!==Q||$!==X)Q=B,X=$,this.sendSizeChanged({width:B,height:$})})};Y();let G=new ResizeObserver(Y);return G.observe(document.documentElement),G.observe(document.body),()=>G.disconnect()}async connect(K=new j(window.parent,window.parent),Q){if(this.transport)throw Error(\"App is already connected. Call close() before connecting again.\");await super.connect(K);try{let X=await this.request({method:\"ui/initialize\",params:{appCapabilities:this._capabilities,appInfo:this._appInfo,protocolVersion:z}},y,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.options?.autoResize)this.setupSizeChangedNotifications()}catch(X){throw this.close(),X}}}function nK({appInfo:K,capabilities:Q,onAppCreated:X}){let[Y,G]=d(null),[Z,V]=d(!1),[E,L]=d(null);return uJ(()=>{let N=!0;async function B(){try{let $=new j(window.parent,window.parent),R=new f(K,Q);if(X?.(R),await R.connect($),N)G(R),V(!0),L(null)}catch($){if(N)G(null),V(!1),L($ instanceof Error?$:Error(\"Failed to connect\"))}}return B(),()=>{N=!1}},[]),{app:Y,isConnected:Z,error:E}}import{useEffect as hJ}from\"react\";function eK(K,Q){hJ(()=>{if(!K)return;return K.setupSizeChangedNotifications()},[K,Q])}import{useEffect as mJ,useState as cJ}from\"react\";function XQ(){let[K,Q]=cJ(O);return mJ(()=>{let X=new MutationObserver(()=>{Q(O())});return X.observe(document.documentElement,{attributes:!0,attributeFilter:[\"data-theme\",\"class\"],characterData:!1,childList:!1,subtree:!1}),()=>X.disconnect()},[]),K}import{useEffect as F,useRef as n}from\"react\";function rJ(K,Q){let X=n(!1);F(()=>{if(X.current)return;if(Q?.theme)q(Q.theme);if(Q?.styles?.variables)D(Q.styles.variables);if(Q?.theme||Q?.styles?.variables)X.current=!0},[Q]),F(()=>{if(!K)return;K.onhostcontextchanged=(Y)=>{if(Y.theme)q(Y.theme);if(Y.styles?.variables)D(Y.styles.variables)}},[K])}function lJ(K,Q){let X=n(!1);F(()=>{if(X.current)return;if(Q?.styles?.css?.fonts)I(Q.styles.css.fonts),X.current=!0},[Q]),F(()=>{if(!K)return;K.onhostcontextchanged=(Y)=>{if(Y.styles?.css?.fonts)I(Y.styles.css.fonts)}},[K])}function GQ(K,Q){rJ(K,Q),lJ(K,Q)}export{GQ as useHostStyles,rJ as useHostStyleVariables,lJ as useHostFonts,XQ as useDocumentTheme,eK as useAutoResize,nK as useApp,O as getDocumentTheme,D as applyHostStyleVariables,I as applyHostFonts,q as applyDocumentTheme,QJ as TOOL_RESULT_METHOD,U as TOOL_INPUT_PARTIAL_METHOD,KJ as TOOL_INPUT_METHOD,XJ as TOOL_CANCELLED_METHOD,JJ as SIZE_CHANGED_METHOD,e as SANDBOX_RESOURCE_READY_METHOD,t as SANDBOX_PROXY_READY_METHOD,dK as RESOURCE_URI_META_KEY,$J as RESOURCE_TEARDOWN_METHOD,uK as RESOURCE_MIME_TYPE,ZJ as REQUEST_TEARDOWN_METHOD,WJ as REQUEST_DISPLAY_MODE_METHOD,j as PostMessageTransport,o as OPEN_LINK_METHOD,AJ as McpUiUpdateModelContextRequestSchema,p as McpUiToolVisibilitySchema,C as McpUiToolResultNotificationSchema,MJ as McpUiToolMetaSchema,A as McpUiToolInputPartialNotificationSchema,v as McpUiToolInputNotificationSchema,k as McpUiToolCancelledNotificationSchema,m as McpUiThemeSchema,w as McpUiSupportedContentBlockModalitiesSchema,FJ as McpUiSizeChangedNotificationSchema,vJ as McpUiSandboxResourceReadyNotificationSchema,IJ as McpUiSandboxProxyReadyNotificationSchema,EJ as McpUiResourceTeardownResultSchema,b as McpUiResourceTeardownRequestSchema,_ as McpUiResourcePermissionsSchema,UJ as McpUiResourceMetaSchema,P as McpUiResourceCspSchema,RJ as McpUiRequestTeardownNotificationSchema,S as McpUiRequestDisplayModeResultSchema,wJ as McpUiRequestDisplayModeRequestSchema,M as McpUiOpenLinkResultSchema,DJ as McpUiOpenLinkRequestSchema,H as McpUiMessageResultSchema,HJ as McpUiMessageRequestSchema,zJ as McpUiInitializedNotificationSchema,y as McpUiInitializeResultSchema,kJ as McpUiInitializeRequestSchema,r as McpUiHostStylesSchema,c as McpUiHostCssSchema,g as McpUiHostContextSchema,x as McpUiHostContextChangedNotificationSchema,l as McpUiHostCapabilitiesSchema,T as McpUiDownloadFileResultSchema,TJ as McpUiDownloadFileRequestSchema,W as McpUiDisplayModeSchema,i as McpUiAppCapabilitiesSchema,s as MESSAGE_METHOD,z as LATEST_PROTOCOL_VERSION,GJ as INITIALIZE_METHOD,jJ as INITIALIZED_METHOD,YJ as HOST_CONTEXT_CHANGED_METHOD,a as DOWNLOAD_FILE_METHOD,f as App};\n"],"x_google_ignoreList":[0],"mappings":";;;;;;AAAwb,IAAI,IAAE,cAAa,IAAE,gBAAe,IAAE,oBAAmB,IAAE,cAAa,IAAE,wCAAuC,IAAE,2CAA0C,KAAG,iCAAgC,KAAG,+BAA8B,IAAE,uCAAsC,KAAG,gCAA+B,KAAG,mCAAkC,KAAG,yCAAwC,KAAG,qCAAoC,KAAG,wBAAuB,KAAG,iBAAgB,KAAG,gCAA+B,KAAG;AAA0B,IAAM,IAAN,MAAO;CAAC;CAAY;CAAY;CAAgB,YAAY,IAAE,OAAO,QAAO,GAAE;AAAC,OAAK,cAAY;AAAE,OAAK,cAAY;AAAE,OAAK,mBAAiB,MAAI;AAAC,OAAG,KAAG,EAAE,WAAS,KAAK,aAAY;AAAC,YAAQ,MAAM,wCAAuC,EAAE;AAAC;;GAAO,IAAI,IAAEA,qBAAG,UAAU,EAAE,KAAK;AAAC,OAAG,EAAE,QAAQ,SAAQ,MAAM,kBAAiB,EAAE,KAAK,EAAC,KAAK,YAAY,EAAE,KAAK;YAAS,EAAE,MAAM,YAAU,MAAM,SAAQ,MAAM,iCAAgC,EAAE,MAAM,SAAQ,EAAE;OAAM,SAAQ,MAAM,2BAA0B,EAAE,MAAM,SAAQ,EAAE,EAAC,KAAK,UAAU,MAAM,wCAAsC,EAAE,MAAM,QAAQ,CAAC;;;CAAE,MAAM,QAAO;AAAC,SAAO,iBAAiB,WAAU,KAAK,gBAAgB;;CAAC,MAAM,KAAK,GAAE,GAAE;AAAC,MAAG,EAAE,WAAA,sCAAW,SAAQ,M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AAE,MAAM;AAAC,OAAG,EAAE,QAAQ,UAAU,GAAE,EAAE,OAAO,UAAU;;IAAG,CAAC,EAAE,CAAC;;AAAC,SAAS,GAAG,GAAE,GAAE;CAAC,IAAI,KAAA,GAAA,aAAA,QAAI,CAAC,EAAE;AAAC,EAAA,GAAA,aAAA,iBAAM;AAAC,MAAG,EAAE,QAAQ;AAAO,MAAG,GAAG,QAAQ,KAAK,MAAM,GAAE,EAAE,OAAO,IAAI,MAAM,EAAC,EAAE,UAAQ,CAAC;IAAG,CAAC,EAAE,CAAC,GAAA,GAAA,aAAA,iBAAO;AAAC,MAAG,CAAC,EAAE;AAAO,IAAE,wBAAsB,MAAI;AAAC,OAAG,EAAE,QAAQ,KAAK,MAAM,GAAE,EAAE,OAAO,IAAI,MAAM;;IAAG,CAAC,EAAE,CAAC;;AAAC,SAAS,GAAG,GAAE,GAAE;AAAC,IAAG,GAAE,EAAE,EAAC,GAAG,GAAE,EAAE"}
|
|
1
|
+
{"version":3,"file":"@modelcontextprotocol_ext-apps_react.js","names":["LJ","J.union","J.literal","J.record","J.string","J.undefined","J.object","J.boolean","J.array","J.number","J.unknown","BJ","PJ","d","NJ","VJ","_J","u","bJ","fJ","SJ","yJ","CJ","dJ","xJ","gJ"],"sources":["../../../../../../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"],"sourcesContent":["import{useEffect as uJ,useState as f}from\"react\";import{Protocol as bJ}from\"@modelcontextprotocol/sdk/shared/protocol.js\";import{CallToolRequestSchema as SJ,CallToolResultSchema as CJ,EmptyResultSchema as gJ,ListResourcesResultSchema as xJ,ListToolsRequestSchema as yJ,PingRequestSchema as fJ,ReadResourceResultSchema as dJ}from\"@modelcontextprotocol/sdk/types.js\";import{JSONRPCMessageSchema as LJ}from\"@modelcontextprotocol/sdk/types.js\";var R=\"2026-01-26\",o=\"ui/open-link\",a=\"ui/download-file\",s=\"ui/message\",t=\"ui/notifications/sandbox-proxy-ready\",e=\"ui/notifications/sandbox-resource-ready\",JJ=\"ui/notifications/size-changed\",KJ=\"ui/notifications/tool-input\",z=\"ui/notifications/tool-input-partial\",QJ=\"ui/notifications/tool-result\",XJ=\"ui/notifications/tool-cancelled\",YJ=\"ui/notifications/host-context-changed\",ZJ=\"ui/notifications/request-teardown\",$J=\"ui/resource-teardown\",GJ=\"ui/initialize\",WJ=\"ui/notifications/initialized\",jJ=\"ui/request-display-mode\";class W{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=LJ.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!==z)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 d,CallToolResultSchema as NJ,EmbeddedResourceSchema as BJ,ImplementationSchema as u,RequestIdSchema as VJ,ResourceLinkSchema as PJ,ToolSchema as _J}from\"@modelcontextprotocol/sdk/types.js\";var h=J.union([J.literal(\"light\"),J.literal(\"dark\")]).describe(\"Color theme preference for the host environment.\"),j=J.union([J.literal(\"inline\"),J.literal(\"fullscreen\"),J.literal(\"pip\")]).describe(\"Display mode for UI presentation.\"),OJ=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.\"),qJ=J.record(OJ.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.`),DJ=J.object({method:J.literal(\"ui/open-link\"),params:J.object({url:J.string().describe(\"URL to open in the host's browser\")})}),w=J.object({isError:J.boolean().optional().describe(\"True if the host failed to open the URL (e.g., due to security policy).\")}).passthrough(),M=J.object({isError:J.boolean().optional().describe(\"True if the download failed (e.g., user cancelled or host denied).\")}).passthrough(),T=J.object({isError:J.boolean().optional().describe(\"True if the host rejected or failed to deliver the message.\")}).passthrough(),IJ=J.object({method:J.literal(\"ui/notifications/sandbox-proxy-ready\"),params:J.object({})}),V=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'`)\")}),P=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.\")}),FJ=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.\")})}),H=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.\")})}),v=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).\")})}),A=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\").')})}),m=J.object({fonts:J.string().optional()}),c=J.object({variables:qJ.optional().describe(\"CSS variables for theming the app.\"),css:m.optional().describe(\"CSS blocks that apps can inject.\")}),k=J.object({method:J.literal(\"ui/resource-teardown\"),params:J.object({})}),EJ=J.record(J.string(),J.unknown()),U=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.\")}),RJ=J.object({method:J.literal(\"ui/notifications/request-teardown\"),params:J.object({}).optional()}),r=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:P.optional().describe(\"Permissions granted by the host (camera, microphone, geolocation).\"),csp:V.optional().describe(\"CSP domains approved by the host.\")}).optional().describe(\"Sandbox configuration applied by the host.\"),updateModelContext:U.optional().describe(\"Host accepts context updates (ui/update-model-context) to be included in the model's context for future turns.\"),message:U.optional().describe(\"Host supports receiving content messages (ui/message) from the view.\")}),l=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(j).optional().describe(\"Display modes the app supports.\")}),zJ=J.object({method:J.literal(\"ui/notifications/initialized\"),params:J.object({}).optional()}),UJ=J.object({csp:V.optional().describe(\"Content Security Policy configuration for UI resources.\"),permissions:P.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`)}),wJ=J.object({method:J.literal(\"ui/request-display-mode\"),params:J.object({mode:j.describe(\"The display mode being requested.\")})}),b=J.object({mode:j.describe(\"The display mode that was actually set. May differ from requested if not supported.\")}).passthrough(),i=J.union([J.literal(\"model\"),J.literal(\"app\")]).describe(\"Tool visibility scope - who can access the tool.\"),MJ=J.object({resourceUri:J.string().optional(),visibility:J.array(i).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`)}),JK=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.')}),TJ=J.object({method:J.literal(\"ui/download-file\"),params:J.object({contents:J.array(J.union([BJ,PJ])).describe(\"Resource contents to download — embedded (inline data) or linked (host fetches). Uses standard MCP resource types.\")})}),HJ=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(d).describe(\"Message content blocks (text, image, etc.).\")})}),vJ=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:V.optional().describe(\"CSP configuration from resource metadata.\"),permissions:P.optional().describe(\"Sandbox permissions from resource metadata.\")})}),S=J.object({method:J.literal(\"ui/notifications/tool-result\"),params:NJ.describe(\"Standard MCP tool execution result.\")}),C=J.object({toolInfo:J.object({id:VJ.optional().describe(\"JSON-RPC id of the tools/call request.\"),tool:_J.describe(\"Tool definition including name, inputSchema, etc.\")}).optional().describe(\"Metadata of the tool call that instantiated this App.\"),theme:h.optional().describe(\"Current color theme preference.\"),styles:c.optional().describe(\"Style configuration for theming the app.\"),displayMode:j.optional().describe(\"How the UI is currently displayed.\"),availableDisplayModes:J.array(j).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(),g=J.object({method:J.literal(\"ui/notifications/host-context-changed\"),params:C.describe(\"Partial context update containing only changed fields.\")}),AJ=J.object({method:J.literal(\"ui/update-model-context\"),params:J.object({content:J.array(d).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.\")})}),kJ=J.object({method:J.literal(\"ui/initialize\"),params:J.object({appInfo:u.describe(\"App identification (name and version).\"),appCapabilities:l.describe(\"Features and capabilities this app provides.\"),protocolVersion:J.string().describe(\"Protocol version this app supports.\")})}),x=J.object({protocolVersion:J.string().describe('Negotiated protocol version string (e.g., \"2025-11-21\").'),hostInfo:u.describe(\"Host application identification and version.\"),hostCapabilities:r.describe(\"Features and capabilities provided by the host.\"),hostContext:C.describe(\"Rich context about the host environment.\")}).passthrough();function _(){let K=document.documentElement.getAttribute(\"data-theme\");if(K===\"dark\"||K===\"light\")return K;return document.documentElement.classList.contains(\"dark\")?\"dark\":\"light\"}function O(K){let Q=document.documentElement;Q.setAttribute(\"data-theme\",K),Q.style.colorScheme=K}function q(K,Q=document.documentElement){for(let[X,Y]of Object.entries(K))if(Y!==void 0)Q.style.setProperty(X,Y)}function D(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 dK=\"ui/resourceUri\",uK=\"text/html;profile=mcp-app\";class y extends bJ{_appInfo;_capabilities;options;_hostCapabilities;_hostInfo;_hostContext;constructor(K,Q={},X={autoResize:!0}){super(X);this._appInfo=K;this._capabilities=Q;this.options=X;this.setRequestHandler(fJ,(Y)=>{return console.log(\"Received ping:\",Y.params),{}}),this.onhostcontextchanged=()=>{}}getHostCapabilities(){return this._hostCapabilities}getHostVersion(){return this._hostInfo}getHostContext(){return this._hostContext}set ontoolinput(K){this.setNotificationHandler(H,(Q)=>K(Q.params))}set ontoolinputpartial(K){this.setNotificationHandler(v,(Q)=>K(Q.params))}set ontoolresult(K){this.setNotificationHandler(S,(Q)=>K(Q.params))}set ontoolcancelled(K){this.setNotificationHandler(A,(Q)=>K(Q.params))}set onhostcontextchanged(K){this.setNotificationHandler(g,(Q)=>{this._hostContext={...this._hostContext,...Q.params},K(Q.params)})}set onteardown(K){this.setRequestHandler(k,(Q,X)=>K(Q.params,X))}set oncalltool(K){this.setRequestHandler(SJ,(Q,X)=>K(Q.params,X))}set onlisttools(K){this.setRequestHandler(yJ,(Q,X)=>K(Q.params,X))}assertCapabilityForMethod(K){}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(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},CJ,Q)}async readServerResource(K,Q){return await this.request({method:\"resources/read\",params:K},dJ,Q)}async listServerResources(K,Q){return await this.request({method:\"resources/list\",params:K},xJ,Q)}sendMessage(K,Q){return this.request({method:\"ui/message\",params:K},T,Q)}sendLog(K){return this.notification({method:\"notifications/message\",params:K})}updateModelContext(K,Q){return this.request({method:\"ui/update-model-context\",params:K},gJ,Q)}openLink(K,Q){return this.request({method:\"ui/open-link\",params:K},w,Q)}sendOpenLink=this.openLink;downloadFile(K,Q){return this.request({method:\"ui/download-file\",params:K},M,Q)}requestTeardown(K={}){return this.notification({method:\"ui/notifications/request-teardown\",params:K})}requestDisplayMode(K,Q){return this.request({method:\"ui/request-display-mode\",params:K},b,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,N=$.style.height;$.style.height=\"max-content\";let L=Math.ceil($.getBoundingClientRect().height);$.style.height=N;let G=Math.ceil(window.innerWidth);if(G!==Q||L!==X)Q=G,X=L,this.sendSizeChanged({width:G,height:L})})};Y();let Z=new ResizeObserver(Y);return Z.observe(document.documentElement),Z.observe(document.body),()=>Z.disconnect()}async connect(K=new W(window.parent,window.parent),Q){if(this.transport)throw Error(\"App is already connected. Call close() before connecting again.\");await super.connect(K);try{let X=await this.request({method:\"ui/initialize\",params:{appCapabilities:this._capabilities,appInfo:this._appInfo,protocolVersion:R}},x,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.options?.autoResize)this.setupSizeChangedNotifications()}catch(X){throw this.close(),X}}}function nK({appInfo:K,capabilities:Q,onAppCreated:X}){let[Y,Z]=f(null),[$,N]=f(!1),[L,G]=f(null);return uJ(()=>{let F=!0;async function n(){try{let B=new W(window.parent,window.parent),E=new y(K,Q);if(X?.(E),await E.connect(B),F)Z(E),N(!0),G(null)}catch(B){if(F)Z(null),N(!1),G(B instanceof Error?B:Error(\"Failed to connect\"))}}return n(),()=>{F=!1}},[]),{app:Y,isConnected:$,error:L}}import{useEffect as hJ}from\"react\";function eK(K,Q){hJ(()=>{if(!K)return;return K.setupSizeChangedNotifications()},[K,Q])}import{useEffect as mJ,useState as cJ}from\"react\";function XQ(){let[K,Q]=cJ(_);return mJ(()=>{let X=new MutationObserver(()=>{Q(_())});return X.observe(document.documentElement,{attributes:!0,attributeFilter:[\"data-theme\",\"class\"],characterData:!1,childList:!1,subtree:!1}),()=>X.disconnect()},[]),K}import{useEffect as I,useRef as p}from\"react\";function rJ(K,Q){let X=p(!1);I(()=>{if(X.current)return;if(Q?.theme)O(Q.theme);if(Q?.styles?.variables)q(Q.styles.variables);if(Q?.theme||Q?.styles?.variables)X.current=!0},[Q]),I(()=>{if(!K)return;K.onhostcontextchanged=(Y)=>{if(Y.theme)O(Y.theme);if(Y.styles?.variables)q(Y.styles.variables)}},[K])}function lJ(K,Q){let X=p(!1);I(()=>{if(X.current)return;if(Q?.styles?.css?.fonts)D(Q.styles.css.fonts),X.current=!0},[Q]),I(()=>{if(!K)return;K.onhostcontextchanged=(Y)=>{if(Y.styles?.css?.fonts)D(Y.styles.css.fonts)}},[K])}function GQ(K,Q){rJ(K,Q),lJ(K,Q)}export{GQ as useHostStyles,rJ as useHostStyleVariables,lJ as useHostFonts,XQ as useDocumentTheme,eK as useAutoResize,nK as useApp,_ as getDocumentTheme,q as applyHostStyleVariables,D as applyHostFonts,O as applyDocumentTheme,QJ as TOOL_RESULT_METHOD,z as TOOL_INPUT_PARTIAL_METHOD,KJ as TOOL_INPUT_METHOD,XJ as TOOL_CANCELLED_METHOD,JJ as SIZE_CHANGED_METHOD,e as SANDBOX_RESOURCE_READY_METHOD,t as SANDBOX_PROXY_READY_METHOD,dK as RESOURCE_URI_META_KEY,$J as RESOURCE_TEARDOWN_METHOD,uK as RESOURCE_MIME_TYPE,ZJ as REQUEST_TEARDOWN_METHOD,jJ as REQUEST_DISPLAY_MODE_METHOD,W as PostMessageTransport,o as OPEN_LINK_METHOD,AJ as McpUiUpdateModelContextRequestSchema,i as McpUiToolVisibilitySchema,S as McpUiToolResultNotificationSchema,MJ as McpUiToolMetaSchema,v as McpUiToolInputPartialNotificationSchema,H as McpUiToolInputNotificationSchema,A as McpUiToolCancelledNotificationSchema,h as McpUiThemeSchema,U as McpUiSupportedContentBlockModalitiesSchema,FJ as McpUiSizeChangedNotificationSchema,vJ as McpUiSandboxResourceReadyNotificationSchema,IJ as McpUiSandboxProxyReadyNotificationSchema,EJ as McpUiResourceTeardownResultSchema,k as McpUiResourceTeardownRequestSchema,P as McpUiResourcePermissionsSchema,UJ as McpUiResourceMetaSchema,V as McpUiResourceCspSchema,RJ as McpUiRequestTeardownNotificationSchema,b as McpUiRequestDisplayModeResultSchema,wJ as McpUiRequestDisplayModeRequestSchema,w as McpUiOpenLinkResultSchema,DJ as McpUiOpenLinkRequestSchema,T as McpUiMessageResultSchema,HJ as McpUiMessageRequestSchema,zJ as McpUiInitializedNotificationSchema,x as McpUiInitializeResultSchema,kJ as McpUiInitializeRequestSchema,c as McpUiHostStylesSchema,m as McpUiHostCssSchema,C as McpUiHostContextSchema,g as McpUiHostContextChangedNotificationSchema,r as McpUiHostCapabilitiesSchema,M as McpUiDownloadFileResultSchema,TJ as McpUiDownloadFileRequestSchema,j as McpUiDisplayModeSchema,l as McpUiAppCapabilitiesSchema,s as MESSAGE_METHOD,R as LATEST_PROTOCOL_VERSION,GJ as INITIALIZE_METHOD,WJ as INITIALIZED_METHOD,YJ as HOST_CONTEXT_CHANGED_METHOD,a as DOWNLOAD_FILE_METHOD,y as App};\n"],"x_google_ignoreList":[0],"mappings":";;;;;;AAAwb,IAAI,IAAE,cAAa,IAAE,gBAAe,IAAE,oBAAmB,IAAE,cAAa,IAAE,wCAAuC,IAAE,2CAA0C,KAAG,iCAAgC,KAAG,+BAA8B,IAAE,uCAAsC,KAAG,gCAA+B,KAAG,mCAAkC,KAAG,yCAAwC,KAAG,qCAAoC,KAAG,wBAAuB,KAAG,iBAAgB,KAAG,gCAA+B,KAAG;AAA0B,IAAM,IAAN,MAAO;CAAC;CAAY;CAAY;CAAgB,YAAY,IAAE,OAAO,QAAO,GAAE;AAAC,OAAK,cAAY;AAAE,OAAK,cAAY;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
|
5
|
+
"browserHash": "18a13a2f",
|
|
6
6
|
"optimized": {
|
|
7
7
|
"@modelcontextprotocol/ext-apps": {
|
|
8
|
-
"src": "../../../../../../node_modules/.pnpm/@modelcontextprotocol+ext-apps@1.3.
|
|
8
|
+
"src": "../../../../../../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/app.js",
|
|
9
9
|
"file": "@modelcontextprotocol_ext-apps.js",
|
|
10
|
-
"fileHash": "
|
|
10
|
+
"fileHash": "f5a93cf8",
|
|
11
11
|
"needsInterop": false
|
|
12
12
|
},
|
|
13
13
|
"@modelcontextprotocol/ext-apps/app-bridge": {
|
|
14
|
-
"src": "../../../../../../node_modules/.pnpm/@modelcontextprotocol+ext-apps@1.3.
|
|
14
|
+
"src": "../../../../../../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/app-bridge.js",
|
|
15
15
|
"file": "@modelcontextprotocol_ext-apps_app-bridge.js",
|
|
16
|
-
"fileHash": "
|
|
16
|
+
"fileHash": "d22d8fe4",
|
|
17
17
|
"needsInterop": false
|
|
18
18
|
},
|
|
19
19
|
"@modelcontextprotocol/ext-apps/react": {
|
|
20
|
-
"src": "../../../../../../node_modules/.pnpm/@modelcontextprotocol+ext-apps@1.3.
|
|
20
|
+
"src": "../../../../../../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",
|
|
21
21
|
"file": "@modelcontextprotocol_ext-apps_react.js",
|
|
22
|
-
"fileHash": "
|
|
22
|
+
"fileHash": "19b567ce",
|
|
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_893f466751a7d66081fd06e9edb9241a/node_modules/@testing-library/react/dist/@testing-library/react.esm.js",
|
|
27
27
|
"file": "@testing-library_react.js",
|
|
28
|
-
"fileHash": "
|
|
28
|
+
"fileHash": "444f7e28",
|
|
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": "
|
|
34
|
+
"fileHash": "04e4a96c",
|
|
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.4/node_modules/embla-carousel-react/esm/embla-carousel-react.esm.js",
|
|
39
39
|
"file": "embla-carousel-react.js",
|
|
40
|
-
"fileHash": "
|
|
40
|
+
"fileHash": "b120dbb8",
|
|
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": "
|
|
46
|
+
"fileHash": "31abbbbf",
|
|
47
47
|
"needsInterop": false
|
|
48
48
|
},
|
|
49
49
|
"mapbox-gl": {
|
|
50
50
|
"src": "../../../../../../node_modules/.pnpm/mapbox-gl@3.20.0/node_modules/mapbox-gl/dist/mapbox-gl.js",
|
|
51
51
|
"file": "mapbox-gl.js",
|
|
52
|
-
"fileHash": "
|
|
52
|
+
"fileHash": "99b484eb",
|
|
53
53
|
"needsInterop": true
|
|
54
54
|
},
|
|
55
55
|
"react-dom": {
|
|
56
56
|
"src": "../../../../../../node_modules/.pnpm/react-dom@19.2.4_react@19.2.4/node_modules/react-dom/index.js",
|
|
57
57
|
"file": "react-dom.js",
|
|
58
|
-
"fileHash": "
|
|
58
|
+
"fileHash": "c7e6f814",
|
|
59
59
|
"needsInterop": true
|
|
60
60
|
},
|
|
61
61
|
"react-dom/client": {
|
|
62
62
|
"src": "../../../../../../node_modules/.pnpm/react-dom@19.2.4_react@19.2.4/node_modules/react-dom/client.js",
|
|
63
63
|
"file": "react-dom_client.js",
|
|
64
|
-
"fileHash": "
|
|
64
|
+
"fileHash": "f4513e25",
|
|
65
65
|
"needsInterop": true
|
|
66
66
|
},
|
|
67
67
|
"react": {
|
|
68
68
|
"src": "../../../../../../node_modules/.pnpm/react@19.2.4/node_modules/react/index.js",
|
|
69
69
|
"file": "react.js",
|
|
70
|
-
"fileHash": "
|
|
70
|
+
"fileHash": "44556913",
|
|
71
71
|
"needsInterop": true
|
|
72
72
|
},
|
|
73
73
|
"react/jsx-dev-runtime": {
|
|
74
74
|
"src": "../../../../../../node_modules/.pnpm/react@19.2.4/node_modules/react/jsx-dev-runtime.js",
|
|
75
75
|
"file": "react_jsx-dev-runtime.js",
|
|
76
|
-
"fileHash": "
|
|
76
|
+
"fileHash": "11cb20e9",
|
|
77
77
|
"needsInterop": true
|
|
78
78
|
},
|
|
79
79
|
"react/jsx-runtime": {
|
|
80
80
|
"src": "../../../../../../node_modules/.pnpm/react@19.2.4/node_modules/react/jsx-runtime.js",
|
|
81
81
|
"file": "react_jsx-runtime.js",
|
|
82
|
-
"fileHash": "
|
|
82
|
+
"fileHash": "1fc1ef3f",
|
|
83
83
|
"needsInterop": true
|
|
84
84
|
},
|
|
85
85
|
"tailwind-merge": {
|
|
86
86
|
"src": "../../../../../../node_modules/.pnpm/tailwind-merge@3.5.0/node_modules/tailwind-merge/dist/bundle-mjs.mjs",
|
|
87
87
|
"file": "tailwind-merge.js",
|
|
88
|
-
"fileHash": "
|
|
88
|
+
"fileHash": "4d87ab6b",
|
|
89
89
|
"needsInterop": false
|
|
90
90
|
},
|
|
91
91
|
"vitest": {
|
|
92
92
|
"src": "../../../../../../node_modules/.pnpm/vitest@4.1.2_@types+node@25.5.0_jsdom@29.0.1_vite@8.0.3_@types+node@25.5.0_esbuild@0.27.4_jiti@2.6.1_tsx@4.21.0_/node_modules/vitest/dist/index.js",
|
|
93
93
|
"file": "vitest.js",
|
|
94
|
-
"fileHash": "
|
|
94
|
+
"fileHash": "279ec79a",
|
|
95
95
|
"needsInterop": false
|
|
96
96
|
},
|
|
97
97
|
"zod": {
|
|
98
98
|
"src": "../../../../../../node_modules/.pnpm/zod@4.3.6/node_modules/zod/index.js",
|
|
99
99
|
"file": "zod.js",
|
|
100
|
-
"fileHash": "
|
|
100
|
+
"fileHash": "6a59db68",
|
|
101
101
|
"needsInterop": false
|
|
102
102
|
}
|
|
103
103
|
},
|
|
@@ -118,8 +118,8 @@
|
|
|
118
118
|
"file": "magic-string.es-Cklsmr-5.js",
|
|
119
119
|
"isDynamicEntry": true
|
|
120
120
|
},
|
|
121
|
-
"protocol-
|
|
122
|
-
"file": "protocol-
|
|
121
|
+
"protocol-B_qKkui_": {
|
|
122
|
+
"file": "protocol-B_qKkui_.js",
|
|
123
123
|
"isDynamicEntry": false
|
|
124
124
|
},
|
|
125
125
|
"schemas-NsgmY9QV": {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { Cn as object, In as string, It as custom, Jn as union, On as preprocess, Sn as number, Tt as array, Yn as unknown, jn as record, kt as boolean, ln as literal, mi as safeParse$1, tn as intersection, un as looseObject, vt as _enum, wn as optional, xr as datetime, xt as _null, zt as discriminatedUnion } from "./schemas-NsgmY9QV.js";
|
|
2
|
-
//#region ../../../node_modules/.pnpm/@modelcontextprotocol+sdk@1.
|
|
2
|
+
//#region ../../../node_modules/.pnpm/@modelcontextprotocol+sdk@1.29.0_zod@4.3.6/node_modules/@modelcontextprotocol/sdk/dist/esm/server/zod-compat.js
|
|
3
3
|
function isZ4Schema(s) {
|
|
4
4
|
return !!s._zod;
|
|
5
5
|
}
|
|
@@ -42,7 +42,7 @@ function getLiteralValue(schema) {
|
|
|
42
42
|
if (directValue !== void 0) return directValue;
|
|
43
43
|
}
|
|
44
44
|
//#endregion
|
|
45
|
-
//#region ../../../node_modules/.pnpm/@modelcontextprotocol+sdk@1.
|
|
45
|
+
//#region ../../../node_modules/.pnpm/@modelcontextprotocol+sdk@1.29.0_zod@4.3.6/node_modules/@modelcontextprotocol/sdk/dist/esm/types.js
|
|
46
46
|
var RELATED_TASK_META_KEY = "io.modelcontextprotocol/related-task";
|
|
47
47
|
/**
|
|
48
48
|
* Assert 'object' type schema.
|
|
@@ -59,7 +59,7 @@ var ProgressTokenSchema = union([string(), number().int()]);
|
|
|
59
59
|
*/
|
|
60
60
|
var CursorSchema = string();
|
|
61
61
|
looseObject({
|
|
62
|
-
ttl:
|
|
62
|
+
ttl: number().optional(),
|
|
63
63
|
pollInterval: number().optional()
|
|
64
64
|
});
|
|
65
65
|
var TaskMetadataSchema = object({ ttl: number().optional() });
|
|
@@ -260,7 +260,8 @@ var ClientCapabilitiesSchema = object({
|
|
|
260
260
|
}).optional(),
|
|
261
261
|
elicitation: ElicitationCapabilitySchema.optional(),
|
|
262
262
|
roots: object({ listChanged: boolean().optional() }).optional(),
|
|
263
|
-
tasks: ClientTasksCapabilitySchema.optional()
|
|
263
|
+
tasks: ClientTasksCapabilitySchema.optional(),
|
|
264
|
+
extensions: record(string(), AssertObjectSchema).optional()
|
|
264
265
|
});
|
|
265
266
|
var InitializeRequestParamsSchema = BaseRequestParamsSchema.extend({
|
|
266
267
|
protocolVersion: string(),
|
|
@@ -287,7 +288,8 @@ var ServerCapabilitiesSchema = object({
|
|
|
287
288
|
listChanged: boolean().optional()
|
|
288
289
|
}).optional(),
|
|
289
290
|
tools: object({ listChanged: boolean().optional() }).optional(),
|
|
290
|
-
tasks: ServerTasksCapabilitySchema.optional()
|
|
291
|
+
tasks: ServerTasksCapabilitySchema.optional(),
|
|
292
|
+
extensions: record(string(), AssertObjectSchema).optional()
|
|
291
293
|
});
|
|
292
294
|
/**
|
|
293
295
|
* After receiving an initialize request from the client, the server sends this response.
|
|
@@ -453,6 +455,7 @@ var ResourceSchema = object({
|
|
|
453
455
|
uri: string(),
|
|
454
456
|
description: optional(string()),
|
|
455
457
|
mimeType: optional(string()),
|
|
458
|
+
size: optional(number()),
|
|
456
459
|
annotations: AnnotationsSchema.optional(),
|
|
457
460
|
_meta: optional(looseObject({}))
|
|
458
461
|
});
|
|
@@ -1228,7 +1231,7 @@ var UrlElicitationRequiredError = class extends McpError {
|
|
|
1228
1231
|
}
|
|
1229
1232
|
};
|
|
1230
1233
|
//#endregion
|
|
1231
|
-
//#region ../../../node_modules/.pnpm/@modelcontextprotocol+sdk@1.
|
|
1234
|
+
//#region ../../../node_modules/.pnpm/@modelcontextprotocol+sdk@1.29.0_zod@4.3.6/node_modules/@modelcontextprotocol/sdk/dist/esm/experimental/tasks/interfaces.js
|
|
1232
1235
|
/**
|
|
1233
1236
|
* Experimental task interfaces for MCP SDK.
|
|
1234
1237
|
* WARNING: These APIs are experimental and may change without notice.
|
|
@@ -1245,7 +1248,7 @@ function isTerminal(status) {
|
|
|
1245
1248
|
return status === "completed" || status === "failed" || status === "cancelled";
|
|
1246
1249
|
}
|
|
1247
1250
|
//#endregion
|
|
1248
|
-
//#region ../../../node_modules/.pnpm/@modelcontextprotocol+sdk@1.
|
|
1251
|
+
//#region ../../../node_modules/.pnpm/@modelcontextprotocol+sdk@1.29.0_zod@4.3.6/node_modules/@modelcontextprotocol/sdk/dist/esm/server/zod-json-schema-compat.js
|
|
1249
1252
|
function getMethodLiteral(schema) {
|
|
1250
1253
|
const methodSchema = getObjectShape(schema)?.method;
|
|
1251
1254
|
if (!methodSchema) throw new Error("Schema is missing a method literal");
|
|
@@ -1439,6 +1442,8 @@ var Protocol = class {
|
|
|
1439
1442
|
this._progressHandlers.clear();
|
|
1440
1443
|
this._taskProgressTokens.clear();
|
|
1441
1444
|
this._pendingDebouncedNotifications.clear();
|
|
1445
|
+
for (const info of this._timeoutInfo.values()) clearTimeout(info.timeoutId);
|
|
1446
|
+
this._timeoutInfo.clear();
|
|
1442
1447
|
for (const controller of this._requestHandlerAbortControllers.values()) controller.abort();
|
|
1443
1448
|
this._requestHandlerAbortControllers.clear();
|
|
1444
1449
|
const error = McpError.fromError(ErrorCode.ConnectionClosed, "Connection closed");
|
|
@@ -1542,7 +1547,7 @@ var Protocol = class {
|
|
|
1542
1547
|
}, capturedTransport?.sessionId);
|
|
1543
1548
|
else await capturedTransport?.send(errorResponse);
|
|
1544
1549
|
}).catch((error) => this._onerror(/* @__PURE__ */ new Error(`Failed to send response: ${error}`))).finally(() => {
|
|
1545
|
-
this._requestHandlerAbortControllers.delete(request.id);
|
|
1550
|
+
if (this._requestHandlerAbortControllers.get(request.id) === abortController) this._requestHandlerAbortControllers.delete(request.id);
|
|
1546
1551
|
});
|
|
1547
1552
|
}
|
|
1548
1553
|
_onprogress(notification) {
|
|
@@ -2087,4 +2092,4 @@ var Protocol = class {
|
|
|
2087
2092
|
//#endregion
|
|
2088
2093
|
export { ResourceListChangedNotificationSchema as C, ResourceLinkSchema as S, ToolSchema as T, PingRequestSchema as _, EmbeddedResourceSchema as a, ReadResourceResultSchema as b, JSONRPCMessageSchema as c, ListResourceTemplatesRequestSchema as d, ListResourceTemplatesResultSchema as f, LoggingMessageNotificationSchema as g, ListToolsRequestSchema as h, ContentBlockSchema as i, ListPromptsRequestSchema as l, ListResourcesResultSchema as m, CallToolRequestSchema as n, EmptyResultSchema as o, ListResourcesRequestSchema as p, CallToolResultSchema as r, ImplementationSchema as s, Protocol as t, ListPromptsResultSchema as u, PromptListChangedNotificationSchema as v, ToolListChangedNotificationSchema as w, RequestIdSchema as x, ReadResourceRequestSchema as y };
|
|
2089
2094
|
|
|
2090
|
-
//# sourceMappingURL=protocol-
|
|
2095
|
+
//# sourceMappingURL=protocol-B_qKkui_.js.map
|