/** * UI Resource Template for ui:// URIs * * Single URI pattern for widget resources: * * Static Widget URI: ui://widget/{toolName}.html * - Used by OpenAI at discovery/listing time * - Returns the pre-compiled static HTML for the tool * - Widget reads tool output from platform context (e.g., window.openai.toolOutput) * * The actual read logic is handled by ReadResourceFlow's ui:// interception * in read-resource.flow.ts. * * IMPORTANT: Resources MUST be visible in resources/list for OpenAI ChatGPT * to discover and render widgets. */ /** * Static Widget Resource Template for OpenAI discovery. * * URI format: ui://widget/{toolName}.html * * This is the format used in tools/list _meta.ui.resourceUri per the MCP Apps spec. * When OpenAI fetches this resource, we return the pre-compiled static HTML for the tool. * * The widget includes: * - FrontMCP Bridge for reading tool output from platform context * - CDN scripts for React/MDX/etc (based on uiType) * - Pre-transpiled component embedded in HTML * * At runtime, the widget reads tool output from: * - OpenAI: window.openai.toolOutput * - Generic: window.__mcpToolOutput */ export declare const StaticWidgetResourceTemplate: () => import("../../common/decorators/resource.decorator").FrontMcpResourceTemplateExecuteHandler; //# sourceMappingURL=ui-resource-template.d.ts.map