/** * @guuey/mcp-apps-host — the MCP Apps (SEP-1865) Host role: view-mount * narrowing, ui:// locator rehydration, sandbox-trust channels. See README + * the conformance map (guuey#123). */ export { asResourcePayload, asUiResource, blockUiResource, isJsonObject, resourceHtml, scanProviderRawForUiResource, snapshotUiResource, toolResultLocator, toolResultUiResource, uiLocator, type McpUiResourcePayload, } from "./block-ui.js"; export { resolveViewMount, snapshotViewMount, toolResultViewMount, type LocatorViewMount, type ResolvedViewMount, type UiResourceReader, type UiResourceReadHints, type ViewMount, type ViewMountChannel, } from "./card-mount.js"; export { ACTION_STAGED_MSG, isStageableAction, stagedActionText, withActionStaging, type ActionStaging, } from "./action-staging.js"; export { createMcpUiResourceReader, declaredResourceCsp, uiResourceChannel, type CreateMcpUiResourceReaderDeps, type McpResourceReadResult, } from "./reader.js"; // The spec's own per-resource CSP type (SEP-1865 `_meta.ui.csp`) — the // shape of `ResolvedViewMount.csp` (guuey#312); identical to // `ViewCspOrigins`, re-exported under its spec name for mount consumers. export type { McpUiResourceCsp } from "@modelcontextprotocol/ext-apps"; export { admittedTelemetryArguments, asToolCallResult, createMcpUiActionRelay, MAX_UI_TELEMETRY_EVENTS, unavailableToolCallResult, UI_ACTION_TOOLS, UI_ACTION_UNAVAILABLE_TEXT, UI_SEMANTIC_ACTION_TOOLS, UI_TELEMETRY_KINDS, UI_TELEMETRY_TOOL, type CreateMcpUiActionRelayDeps, type UiTelemetryDetailRule, type McpToolCallContent, type McpToolCallResult, type McpToolStructuredContent, type UiActionRequest, } from "./action.js"; export { initializeResult, initialViewHostState, resourceReadResponse, RESOURCES_READ_METHOD, teardownMessage, toolCallResponse, TOOLS_CALL_METHOD, viewHostElapsed, viewHostReceive, diagnoseCspViolation, type CspViolationLike, type ViewCspDiagnosis, type ViewCspOrigins, type ViewHostBehavior, type ViewHostEffect, type ViewHostOutbound, type ViewHostPhase, type ViewHostInfo, type ViewHostState, type ViewHostTransition, type ViewRequestId, } from "./view-host-protocol.js"; export { attachViewHost, viewDocumentHtml, MESSAGE_ANSWER_CAP_MS, type AttachViewHostConfig, type UserMessageDelivery, type ViewCspEvents, type ViewFrameLike, type ViewHostEvents, } from "./view-host.js"; export { attachSandboxPageDelivery, isSandboxProxyReady, SANDBOX_PROXY_READY_METHOD, SANDBOX_RESOURCE_READY_METHOD, type SandboxPageDeliveryConfig, } from "./sandbox-page.js"; // guuey#836 — the typed read of a ggui_render PRE-GENERATION refusal // (`@ggui-ai/protocol` 0.14.0's third `outcome`). Hosts face it with words // instead of showing the envelope as an unexplained tool failure. export { toolResultRenderRefusal, type PreGenerationRefusal } from "./render-refusal.js"; // guuey#1128: the spec's complete `hostContext.styles.variables` record for a // partial host palette (the type is every key, values optional — by the // spec's own design; the wire is the partial). export { EMPTY_HOST_STYLE_VARIABLES, announcedHostStyleVariables, hostStyleVariablesRecord, type McpUiStyleVariableKey, type McpUiStyles, } from "./host-style-variables.js";