@ggui-ai/protocol 0.2.0-alpha.4 → 0.4.0-rc.0

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 (200) hide show
  1. package/README.md +16 -16
  2. package/dist/envelope-adapters.d.ts +6 -5
  3. package/dist/envelope-adapters.d.ts.map +1 -1
  4. package/dist/envelope-adapters.js +3 -3
  5. package/dist/envelopes/builders.d.ts +6 -32
  6. package/dist/envelopes/builders.d.ts.map +1 -1
  7. package/dist/envelopes/builders.js +3 -25
  8. package/dist/errors/version-mismatch.d.ts +1 -1
  9. package/dist/errors/version-mismatch.js +1 -1
  10. package/dist/gadgets/resolve-app-gadgets.d.ts +10 -0
  11. package/dist/gadgets/resolve-app-gadgets.d.ts.map +1 -0
  12. package/dist/gadgets/resolve-app-gadgets.js +19 -0
  13. package/dist/gadgets/resolve-contract-gadgets.d.ts +6 -6
  14. package/dist/gadgets/resolve-contract-gadgets.js +5 -5
  15. package/dist/gadgets/stdlib-gadgets.d.ts +1 -1
  16. package/dist/gadgets/stdlib-gadgets.d.ts.map +1 -1
  17. package/dist/gadgets/stdlib-gadgets.js +43 -22
  18. package/dist/iframe-bridge.d.ts +4 -43
  19. package/dist/iframe-bridge.d.ts.map +1 -1
  20. package/dist/iframe-bridge.js +4 -141
  21. package/dist/index.d.ts +60 -62
  22. package/dist/index.d.ts.map +1 -1
  23. package/dist/index.js +66 -61
  24. package/dist/integrations/mcp-apps.d.ts +83 -38
  25. package/dist/integrations/mcp-apps.d.ts.map +1 -1
  26. package/dist/integrations/mcp-apps.js +98 -52
  27. package/dist/recommended-prompts.d.ts +1 -1
  28. package/dist/recommended-prompts.js +1 -1
  29. package/dist/registry/blueprint-key.d.ts +3 -0
  30. package/dist/registry/blueprint-key.d.ts.map +1 -1
  31. package/dist/registry/blueprint-key.js +9 -0
  32. package/dist/registry/blueprint-stamp.d.ts +12 -0
  33. package/dist/registry/blueprint-stamp.d.ts.map +1 -0
  34. package/dist/registry/blueprint-stamp.js +12 -0
  35. package/dist/registry/canonicalize-contract.d.ts +31 -2
  36. package/dist/registry/canonicalize-contract.d.ts.map +1 -1
  37. package/dist/registry/canonicalize-contract.js +125 -13
  38. package/dist/registry/portable-blueprint.d.ts +71 -0
  39. package/dist/registry/portable-blueprint.d.ts.map +1 -0
  40. package/dist/registry/portable-blueprint.js +111 -0
  41. package/dist/registry/summarize-contract.d.ts +7 -2
  42. package/dist/registry/summarize-contract.d.ts.map +1 -1
  43. package/dist/registry/summarize-contract.js +12 -3
  44. package/dist/registry/variant-key.d.ts +17 -0
  45. package/dist/registry/variant-key.d.ts.map +1 -0
  46. package/dist/registry/variant-key.js +22 -0
  47. package/dist/schema-learning/derive-contract.d.ts +2 -2
  48. package/dist/schema-learning/derive-contract.js +2 -2
  49. package/dist/schema-learning/merge.d.ts.map +1 -1
  50. package/dist/schema-learning/merge.js +3 -2
  51. package/dist/schemas/app-theme.d.ts +38 -0
  52. package/dist/schemas/app-theme.d.ts.map +1 -0
  53. package/dist/schemas/app-theme.js +43 -0
  54. package/dist/schemas/blueprint.d.ts +30 -11
  55. package/dist/schemas/blueprint.d.ts.map +1 -1
  56. package/dist/schemas/blueprint.js +62 -26
  57. package/dist/schemas/data-contract.d.ts +28 -30
  58. package/dist/schemas/data-contract.d.ts.map +1 -1
  59. package/dist/schemas/data-contract.js +26 -26
  60. package/dist/schemas/handshake-suggestion.d.ts +2 -4
  61. package/dist/schemas/handshake-suggestion.d.ts.map +1 -1
  62. package/dist/schemas/handshake-suggestion.js +5 -14
  63. package/dist/schemas/mcp.d.ts +294 -59
  64. package/dist/schemas/mcp.d.ts.map +1 -1
  65. package/dist/schemas/mcp.js +350 -94
  66. package/dist/schemas/ops-blueprint.d.ts +12 -12
  67. package/dist/schemas/ops-blueprint.d.ts.map +1 -1
  68. package/dist/schemas/ops-blueprint.js +14 -24
  69. package/dist/screen-blueprints/define.d.ts +2 -2
  70. package/dist/screen-blueprints/match.d.ts +12 -7
  71. package/dist/screen-blueprints/match.d.ts.map +1 -1
  72. package/dist/screen-blueprints/match.js +7 -5
  73. package/dist/screen-blueprints/types.d.ts +14 -18
  74. package/dist/screen-blueprints/types.d.ts.map +1 -1
  75. package/dist/transport/websocket.d.ts +5 -26
  76. package/dist/transport/websocket.d.ts.map +1 -1
  77. package/dist/types/app-config.d.ts +0 -1
  78. package/dist/types/app-config.d.ts.map +1 -1
  79. package/dist/types/auth.d.ts +1 -46
  80. package/dist/types/auth.d.ts.map +1 -1
  81. package/dist/types/blueprint-source.d.ts +123 -0
  82. package/dist/types/blueprint-source.d.ts.map +1 -0
  83. package/dist/types/blueprint-source.js +126 -0
  84. package/dist/types/blueprint.d.ts +25 -18
  85. package/dist/types/blueprint.d.ts.map +1 -1
  86. package/dist/types/contract-inference.d.ts +2 -43
  87. package/dist/types/contract-inference.d.ts.map +1 -1
  88. package/dist/types/data-contract.d.ts +59 -344
  89. package/dist/types/data-contract.d.ts.map +1 -1
  90. package/dist/types/data-contract.js +5 -12
  91. package/dist/types/events.d.ts +31 -69
  92. package/dist/types/events.d.ts.map +1 -1
  93. package/dist/types/{render-event.d.ts → ggui-session-event.d.ts} +15 -15
  94. package/dist/types/ggui-session-event.d.ts.map +1 -0
  95. package/dist/types/{render-event.js → ggui-session-event.js} +5 -5
  96. package/dist/types/handshake-suggestion.d.ts +49 -35
  97. package/dist/types/handshake-suggestion.d.ts.map +1 -1
  98. package/dist/types/host-context.d.ts +8 -8
  99. package/dist/types/host-context.d.ts.map +1 -1
  100. package/dist/types/host-context.js +5 -5
  101. package/dist/types/invoke.d.ts +1 -13
  102. package/dist/types/invoke.d.ts.map +1 -1
  103. package/dist/types/{canvas-lifecycle.d.ts → lifecycle.d.ts} +35 -37
  104. package/dist/types/lifecycle.d.ts.map +1 -0
  105. package/dist/types/{canvas-lifecycle.js → lifecycle.js} +12 -14
  106. package/dist/types/live-channel.d.ts +48 -104
  107. package/dist/types/live-channel.d.ts.map +1 -1
  108. package/dist/types/llm-route.d.ts +4 -4
  109. package/dist/types/llm-route.d.ts.map +1 -1
  110. package/dist/types/llm-route.js +24 -2
  111. package/dist/types/llm.d.ts +13 -24
  112. package/dist/types/llm.d.ts.map +1 -1
  113. package/dist/types/llm.js +23 -53
  114. package/dist/types/mcp.d.ts +74 -177
  115. package/dist/types/mcp.d.ts.map +1 -1
  116. package/dist/types/mcp.js +11 -4
  117. package/dist/types/oauth-user-id.d.ts +12 -0
  118. package/dist/types/oauth-user-id.d.ts.map +1 -0
  119. package/dist/types/oauth-user-id.js +10 -0
  120. package/dist/types/portable-blueprint.d.ts +61 -0
  121. package/dist/types/portable-blueprint.d.ts.map +1 -0
  122. package/dist/types/portable-blueprint.js +8 -0
  123. package/dist/types/{session.d.ts → render.d.ts} +51 -53
  124. package/dist/types/render.d.ts.map +1 -0
  125. package/dist/types/thread.d.ts.map +1 -1
  126. package/dist/types/thread.js +3 -3
  127. package/dist/types/ui-generator.d.ts +24 -47
  128. package/dist/types/ui-generator.d.ts.map +1 -1
  129. package/dist/types/ui-generator.js +1 -53
  130. package/dist/validation/ajv-runtime.d.ts +3 -3
  131. package/dist/validation/ajv-runtime.d.ts.map +1 -1
  132. package/dist/validation/ajv-runtime.js +6 -5
  133. package/dist/validation/contract-validator.d.ts +23 -22
  134. package/dist/validation/contract-validator.d.ts.map +1 -1
  135. package/dist/validation/contract-validator.js +28 -26
  136. package/dist/validation/cross-references.d.ts +3 -3
  137. package/dist/validation/cross-references.js +3 -3
  138. package/dist/validation/hygiene-rules.d.ts +9 -9
  139. package/dist/validation/hygiene-rules.js +13 -13
  140. package/dist/validation/is-record.d.ts +17 -0
  141. package/dist/validation/is-record.d.ts.map +1 -0
  142. package/dist/validation/is-record.js +18 -0
  143. package/dist/validation/lint-contract.d.ts +1 -1
  144. package/dist/validation/lint-contract.js +3 -3
  145. package/dist/validation/name-invariants.d.ts +4 -4
  146. package/dist/validation/name-invariants.js +4 -4
  147. package/dist/validation/reserved-channels.d.ts +43 -46
  148. package/dist/validation/reserved-channels.d.ts.map +1 -1
  149. package/dist/validation/reserved-channels.js +14 -177
  150. package/dist/validation/resolve-stream-channel.d.ts +3 -9
  151. package/dist/validation/resolve-stream-channel.d.ts.map +1 -1
  152. package/dist/validation/resolve-stream-channel.js +3 -4
  153. package/dist/validation/sanitize-error.d.ts +10 -9
  154. package/dist/validation/sanitize-error.d.ts.map +1 -1
  155. package/dist/validation/sanitize-error.js +19 -18
  156. package/dist/validation/schema-compat-invariants.d.ts +1 -1
  157. package/dist/validation/schema-compat-invariants.js +3 -3
  158. package/dist/validation/schema-meta-validation.d.ts +4 -4
  159. package/dist/validation/schema-meta-validation.d.ts.map +1 -1
  160. package/dist/validation/schema-meta-validation.js +7 -9
  161. package/dist/validation/schema-subset.d.ts +9 -8
  162. package/dist/validation/schema-subset.d.ts.map +1 -1
  163. package/dist/validation/ui-security.d.ts +0 -17
  164. package/dist/validation/ui-security.d.ts.map +1 -1
  165. package/dist/validation/ui-security.js +17 -22
  166. package/dist/validation/zod-to-json-schema.d.ts +1 -1
  167. package/dist/validation/zod-to-json-schema.d.ts.map +1 -1
  168. package/dist/validation/zod-to-json-schema.js +4 -3
  169. package/dist/version.d.ts +818 -9
  170. package/dist/version.d.ts.map +1 -1
  171. package/dist/version.js +817 -8
  172. package/package.json +3 -3
  173. package/dist/bridge/invoke-agent.d.ts +0 -65
  174. package/dist/bridge/invoke-agent.d.ts.map +0 -1
  175. package/dist/bridge/invoke-agent.js +0 -113
  176. package/dist/stream/stream-parser.d.ts +0 -62
  177. package/dist/stream/stream-parser.d.ts.map +0 -1
  178. package/dist/stream/stream-parser.js +0 -199
  179. package/dist/types/canvas-lifecycle.d.ts.map +0 -1
  180. package/dist/types/credential.d.ts +0 -41
  181. package/dist/types/credential.d.ts.map +0 -1
  182. package/dist/types/credential.js +0 -32
  183. package/dist/types/data-bindings.d.ts +0 -322
  184. package/dist/types/data-bindings.d.ts.map +0 -1
  185. package/dist/types/data-bindings.js +0 -29
  186. package/dist/types/feedback.d.ts +0 -22
  187. package/dist/types/feedback.d.ts.map +0 -1
  188. package/dist/types/feedback.js +0 -7
  189. package/dist/types/mcp-proxy.d.ts +0 -67
  190. package/dist/types/mcp-proxy.d.ts.map +0 -1
  191. package/dist/types/mcp-proxy.js +0 -46
  192. package/dist/types/openrouter-models.d.ts +0 -23
  193. package/dist/types/openrouter-models.d.ts.map +0 -1
  194. package/dist/types/openrouter-models.js +0 -4843
  195. package/dist/types/region.d.ts +0 -26
  196. package/dist/types/region.d.ts.map +0 -1
  197. package/dist/types/region.js +0 -36
  198. package/dist/types/render-event.d.ts.map +0 -1
  199. package/dist/types/session.d.ts.map +0 -1
  200. /package/dist/types/{session.js → render.js} +0 -0
@@ -3,7 +3,7 @@
3
3
  *
4
4
  * This module is the **boundary** for MCP Apps outbound delivery. Anything
5
5
  * MCP-Apps-specific that ggui exposes to the rest of the codebase lives
6
- * here — never in `types/live-channel.ts`, `types/mcp.ts`, `types/session.ts`,
6
+ * here — never in `types/live-channel.ts`, `types/mcp.ts`, `types/render.ts`,
7
7
  * or any other core module. Consumers opt in via the subpath import:
8
8
  *
9
9
  * ```ts
@@ -21,13 +21,14 @@
21
21
  * drift is bounded to callers that explicitly import from here.
22
22
  *
23
23
  * Core still carries two fields that make the bootstrap flow work —
24
- * `SubscribePayload.bootstrap?: string` and `AckPayload.renderToken?:
24
+ * `SubscribePayload.wsToken?: string` and `AckPayload.sessionToken?:
25
25
  * string`. Those are deliberately framed as **general transport bootstrap
26
26
  * credentials** (opaque strings), not MCP-Apps-specific. Any future
27
27
  * bootstrap mechanism (short-code auto-login, signed-URL bootstrap, etc.)
28
28
  * reuses the same slots.
29
29
  */
30
30
  import type { JsonObject, JsonSchema, JsonValue } from '../types/data-contract.js';
31
+ import { type AppTheme } from '../schemas/app-theme.js';
31
32
  /**
32
33
  * MCP capability name ggui servers advertise in their MCP `initialize`
33
34
  * response capabilities when they implement the MCP Apps outbound path.
@@ -181,7 +182,7 @@ export interface McpAppContextSlot {
181
182
  * live-channel auth + capability advertisements + render state +
182
183
  * contract pointer + component-mode discriminator.
183
184
  *
184
- * **Identity.** `renderId` is the value an iframe's bootstrap meta and
185
+ * **Identity.** `sessionId` is the value an iframe's bootstrap meta and
185
186
  * every wire reference (props_update, consume, update) keys by. The
186
187
  * value is the same one stack items carried as `stackItemId` pre-Phase-B;
187
188
  * the rename reflects the conceptual collapse (no enclosing vessel).
@@ -193,7 +194,7 @@ export interface McpAppContextSlot {
193
194
  *
194
195
  * **Polling-fallback URL.** When WS is blocked at the host CSP layer
195
196
  * the iframe polls `pollingUrl` (server-stamped post-Phase-B as
196
- * `/api/renders/<renderId>/events?wsToken=<token>`). The iframe-runtime
197
+ * `/api/sessions/<sessionId>/events?wsToken=<token>`). The iframe-runtime
197
198
  * composes per-tick `&sinceSequence=<cursor>&limit=<N>` against this
198
199
  * base; companion to `lastSequence` which seeds the initial cursor.
199
200
  *
@@ -205,7 +206,7 @@ export interface McpAppContextSlot {
205
206
  * @public
206
207
  */
207
208
  export interface McpAppAiGguiRenderMeta {
208
- readonly renderId: string;
209
+ readonly sessionId: string;
209
210
  readonly appId: string;
210
211
  readonly runtimeUrl: string;
211
212
  readonly wsUrl?: string;
@@ -214,23 +215,30 @@ export interface McpAppAiGguiRenderMeta {
214
215
  readonly pollingUrl?: string;
215
216
  readonly themeId?: string;
216
217
  readonly themeMode?: 'light' | 'dark';
218
+ /**
219
+ * Resolved per-app theme overlay — mode + the `--ggui-*` CSS-variable
220
+ * map snapshotted from `App.theme` and projected by `deriveRenderMeta`.
221
+ * Distinct from `themeId` (a registry preset reference) and `themeMode`
222
+ * (the bare light/dark discriminator): this carries the concrete
223
+ * variable values the iframe applies as a `:root` declaration block.
224
+ * Absent ⇒ no per-app overlay; the renderer applies its default theme.
225
+ */
226
+ readonly theme?: AppTheme;
217
227
  readonly gadgets?: ReadonlyArray<McpAppGadgetRef>;
218
228
  readonly publicEnv?: Readonly<Record<string, string>>;
219
229
  readonly streamWebSocketLocalTools?: readonly string[];
220
- readonly appCallableTools?: readonly string[];
221
230
  readonly permissionsPolicy?: readonly string[];
222
231
  /**
223
232
  * Monotonic sequence number of the most-recent event applied to
224
233
  * this render's event ledger. Stamped on every emission (render,
225
- * update, `GET /api/renders/:id/state` read, MCP `resources/read`
234
+ * update, `GET /api/sessions/:id/state` read, MCP `resources/read`
226
235
  * of `ui://ggui/render/<id>`). Consumers use it to initialize
227
236
  * polling cursors aligned with the event ledger — see the
228
- * `/api/renders/:id/events?sinceSequence=N` endpoint that reads
237
+ * `/api/sessions/:id/events?sinceSequence=N` endpoint that reads
229
238
  * from a cursor.
230
239
  */
231
240
  readonly lastSequence?: number;
232
241
  readonly propsJson?: string;
233
- readonly actionNextSteps?: Readonly<Record<string, string>>;
234
242
  readonly contextSlots?: ReadonlyArray<McpAppContextSlot>;
235
243
  readonly contractHash?: string;
236
244
  readonly validatorsUrl?: string;
@@ -259,7 +267,7 @@ export type ParseMcpAppAiGguiRenderMetaResult = {
259
267
  * Read the `ai.ggui/render` slice off a parsed JSON-RPC `_meta` object.
260
268
  *
261
269
  * Structural validation only. Missing key returns `{ok: true, meta: undefined}`
262
- * — not a failure. Required-fields gate (renderId / appId / runtimeUrl)
270
+ * — not a failure. Required-fields gate (sessionId / appId / runtimeUrl)
263
271
  * fires only when the key is present. Field-level optional-field
264
272
  * defensive parsing (e.g. context-slot schema narrowing, expiresAt date
265
273
  * parse) lives downstream in the iframe-runtime's `validateMeta`.
@@ -351,8 +359,8 @@ export type ParseMcpAppAiGguiHostSessionMetaResult = {
351
359
  */
352
360
  export declare function parseMcpAppAiGguiHostSessionMeta(meta: unknown): ParseMcpAppAiGguiHostSessionMetaResult;
353
361
  /**
354
- * Wire shape of one row in `ggui_list_renders` output. Mirrors the
355
- * handler's Zod-described `renders[*]`. Surfaced at the protocol level
362
+ * Wire shape of one row in `ggui_list_sessions` output. Mirrors the
363
+ * handler's Zod-described `sessions[*]`. Surfaced at the protocol level
356
364
  * so non-handler consumers (sample-agent's `/chat/restore` server, future
357
365
  * host SDK helpers) can import a single typed shape instead of
358
366
  * redeclaring it — preventing drift if the handler ever grows fields.
@@ -361,14 +369,14 @@ export declare function parseMcpAppAiGguiHostSessionMeta(meta: unknown): ParseMc
361
369
  * wired a `mintWsToken` seam on the handler — otherwise the lean
362
370
  * summary path returns them absent.
363
371
  *
364
- * Post-Phase-B: `sessionId` → `renderId`; the old `stackItemCount` is
372
+ * Post-Phase-B: `stackItemId` → `sessionId`; the old `stackItemCount` is
365
373
  * dropped (every render is exactly one item — Phase B collapsed the
366
374
  * vessel).
367
375
  *
368
376
  * @public
369
377
  */
370
- export interface RenderSummaryWire {
371
- readonly renderId: string;
378
+ export interface GguiSessionSummaryWire {
379
+ readonly sessionId: string;
372
380
  readonly hostName?: string;
373
381
  readonly hostSessionId?: string;
374
382
  readonly createdAt: string;
@@ -410,8 +418,8 @@ export interface McpAppsContainerDimensions {
410
418
  * Locator for the source of an embedded MCP App.
411
419
  *
412
420
  * Persists STABLE identity (not a raw URL) so render state survives
413
- * source-server endpoint changes. The runtime `ConnectorRegistry`
414
- * resolves `connectorId` to the actual endpoint at render time.
421
+ * source-server endpoint changes. The hosting runtime resolves
422
+ * `connectorId` to the actual endpoint at render time.
415
423
  */
416
424
  export interface McpAppsSource {
417
425
  /** Stable connector id declared in the app's connector registry. */
@@ -424,7 +432,7 @@ export interface McpAppsSource {
424
432
  readonly resourceUri: string;
425
433
  }
426
434
  /**
427
- * Render variant: an embedded third-party MCP App iframe.
435
+ * GguiSession variant: an embedded third-party MCP App iframe.
428
436
  *
429
437
  * **Locator-oriented, not content-oriented.** Persisted state carries
430
438
  * `source` (connector identity) + declared CSP/permissions/dimensions
@@ -432,13 +440,13 @@ export interface McpAppsSource {
432
440
  * The `@ggui-ai/mcp-server` resource-proxy route fetches the bytes
433
441
  * on-demand via `resources/read` against the source server.
434
442
  *
435
- * **Union safety.** Fields that exist on the {@link ComponentRender}
443
+ * **Union safety.** Fields that exist on the {@link ComponentGguiSession}
436
444
  * variant are declared here as `?: never` so consumers that access them
437
- * via optional chaining on `Render` still typecheck cleanly. Those
438
- * fields semantically DO NOT exist on McpAppsRender — the `?: never`
445
+ * via optional chaining on `GguiSession` still typecheck cleanly. Those
446
+ * fields semantically DO NOT exist on McpAppsGguiSession — the `?: never`
439
447
  * typing encodes the "structurally absent" guarantee.
440
448
  */
441
- export interface McpAppsRender {
449
+ export interface McpAppsGguiSession {
442
450
  /** Discriminator — required on this variant. */
443
451
  readonly type: 'mcpApps';
444
452
  readonly id: string;
@@ -480,18 +488,18 @@ export interface McpAppsRender {
480
488
  readonly clientCapabilities?: never;
481
489
  }
482
490
  /**
483
- * Type guard: narrows a `Render` (or unknown) to {@link McpAppsRender}.
491
+ * Type guard: narrows a `GguiSession` (or unknown) to {@link McpAppsGguiSession}.
484
492
  * Uses the discriminator.
485
493
  */
486
- export declare function isMcpAppsRender(entry: unknown): entry is McpAppsRender;
494
+ export declare function isMcpAppsGguiSession(entry: unknown): entry is McpAppsGguiSession;
487
495
  /**
488
- * Structural validator for an `McpAppsRender` — not a Zod schema
496
+ * Structural validator for an `McpAppsGguiSession` — not a Zod schema
489
497
  * so we don't force a Zod dependency here. Returns null on failure
490
498
  * (caller maps to an appropriate error code). Required when accepting
491
499
  * one over the wire from an agent: the discriminator alone isn't
492
500
  * enough.
493
501
  */
494
- export declare function validateMcpAppsRender(input: unknown): McpAppsRender | null;
502
+ export declare function validateMcpAppsGguiSession(input: unknown): McpAppsGguiSession | null;
495
503
  /**
496
504
  * Lifecycle states the renderer transitions through inside an MCP Apps
497
505
  * iframe. Closed union — adding a new state is a protocol-version-
@@ -544,7 +552,7 @@ export type McpAppLifecycleState = 'mounting' | 'code-ready' | 'error' | 'discon
544
552
  *
545
553
  * Fields:
546
554
  * - `state` — required. The lifecycle state being entered.
547
- * - `renderId` — optional. When present, the lifecycle pertains to a
555
+ * - `sessionId` — optional. When present, the lifecycle pertains to a
548
556
  * specific render (per-card iframes via single-item mode).
549
557
  * Absent → whole-renderer lifecycle.
550
558
  * - `error` — optional, only meaningful when `state === 'error'`.
@@ -565,7 +573,7 @@ export type McpAppLifecycleState = 'mounting' | 'code-ready' | 'error' | 'discon
565
573
  */
566
574
  export interface McpAppLifecycleEvent {
567
575
  readonly state: McpAppLifecycleState;
568
- readonly renderId?: string;
576
+ readonly sessionId?: string;
569
577
  readonly error?: {
570
578
  readonly code: string;
571
579
  readonly message: string;
@@ -649,13 +657,48 @@ export declare const MCP_APP_LIFECYCLE_STATES: readonly McpAppLifecycleState[];
649
657
  * - Outer envelope is an object with `type === 'ggui:lifecycle'`.
650
658
  * - `event` is an object with `state` matching {@link
651
659
  * MCP_APP_LIFECYCLE_STATES}.
652
- * - If `renderId` is present, it is a non-empty string.
660
+ * - If `sessionId` is present, it is a non-empty string.
653
661
  * - If `error` is present, it is an object with string `code` +
654
662
  * `message`.
655
663
  *
656
664
  * @public
657
665
  */
658
666
  export declare function isMcpAppLifecycleMessage(message: unknown): message is McpAppLifecycleMessage;
667
+ /** Envelope tag: renderer alive + bundle evaluated (pre-`ui/initialize`). */
668
+ export declare const MCP_APP_RENDERER_READY_TYPE = "ggui:renderer-ready";
669
+ /** Envelope tag: a boot-path failure (parse / initialize / handshake). */
670
+ export declare const MCP_APP_BOOTSTRAP_FAILED_TYPE = "ggui:bootstrap-failed";
671
+ /** Envelope tag: renderer-internal observability event (telemetry). */
672
+ export declare const MCP_APP_OBSERVE_TYPE = "ggui:observe";
673
+ /**
674
+ * Envelope tag: mount-lifecycle transition. Constant twin of the
675
+ * literal on {@link McpAppLifecycleMessage} — the annotation ties the
676
+ * two so they cannot drift.
677
+ */
678
+ export declare const MCP_APP_LIFECYCLE_TYPE: McpAppLifecycleMessage['type'];
679
+ /**
680
+ * `ggui:renderer-ready` — posted by the renderer immediately after its
681
+ * status DOM mounts, BEFORE `ui/initialize` fires. Optional
682
+ * informational signal; hosts MAY surface a "renderer alive"
683
+ * indicator. `version` is the renderer bundle's package version.
684
+ */
685
+ export interface McpAppRendererReadyMessage {
686
+ readonly type: typeof MCP_APP_RENDERER_READY_TYPE;
687
+ readonly version: string;
688
+ }
689
+ /**
690
+ * `ggui:bootstrap-failed` — posted by the renderer (or a pre-renderer
691
+ * shell) on any boot-path failure. Hosts surface it on their error
692
+ * callback. `reason` is extensibly-closed at the protocol layer
693
+ * (emitters narrow it to their own closed reason unions, e.g. the
694
+ * renderer's boot-failure reasons); hosts MUST tolerate reason codes
695
+ * they don't recognise.
696
+ */
697
+ export interface McpAppBootstrapFailedMessage {
698
+ readonly type: typeof MCP_APP_BOOTSTRAP_FAILED_TYPE;
699
+ readonly reason: string;
700
+ readonly message: string;
701
+ }
659
702
  /**
660
703
  * Discriminator for the user-action envelope delivered via
661
704
  * `ggui_runtime_submit_action` over the MCP Apps host-relay path
@@ -686,8 +729,10 @@ export declare function isMcpAppLifecycleMessage(message: unknown): message is M
686
729
  * audit-fire posture so semantics stay uniform.
687
730
  *
688
731
  * Failure-mode note: a malformed envelope (unknown `kind` AND malformed
689
- * `payload`) lands as `INVALID_ACTION_KIND` on `_ggui:contract-error`.
690
- * See `ContractErrorCode` for the canonical extensibly-closed code set.
732
+ * `payload`) is rejected by the `ggui_runtime_submit_action` handler
733
+ * with `{ok: false, code: 'INVALID_ACTION_KIND'}` in
734
+ * `structuredContent` — the iframe observes the rejection through the
735
+ * host's `tools/call` relay response.
691
736
  */
692
737
  export type SubmitActionKind = 'dispatch' | 'openLink' | 'requestDisplayMode' | (string & {});
693
738
  /**
@@ -747,7 +792,7 @@ export type SubmitActionEnvelope = {
747
792
  * Per-kind semantics:
748
793
  *
749
794
  * - `kind === 'dispatch'`: server appends a consume-entry onto the
750
- * render-keyed pending-events pipe (`{type:'action', renderId,
795
+ * render-keyed pending-events pipe (`{type:'action', sessionId,
751
796
  * intent, actionData, uiContext, actionId, firedAt}`) so the agent's
752
797
  * `ggui_consume` long-poll unblocks in the same chat turn. The
753
798
  * handler's response carries `consumerPresent` — whether a
@@ -757,7 +802,7 @@ export type SubmitActionEnvelope = {
757
802
  * reload), the iframe-runtime ALSO emits a `ui/message` doorbell
758
803
  * carrying `content[0]._meta["ai.ggui/userAction"]` (see
759
804
  * {@link GguiUserActionMeta}) so a fresh agent turn calls
760
- * `ggui_consume({renderId})` to drain the just-enqueued gesture.
805
+ * `ggui_consume({sessionId})` to drain the just-enqueued gesture.
761
806
  * The doorbell is a PURE POINTER — the gesture stays solely on the
762
807
  * pipe, making the action exactly-once.
763
808
  * - `kind ∈ {'openLink','requestDisplayMode'}`: pure audit — the
@@ -766,7 +811,7 @@ export type SubmitActionEnvelope = {
766
811
  * the gesture for the RenderInspector feed.
767
812
  *
768
813
  * Required fields:
769
- * - `renderId` / `appId`: bootstrap-issued; server cross-checks.
814
+ * - `sessionId` / `appId`: bootstrap-issued; server cross-checks.
770
815
  * - `actionId`: 8-hex correlation hash (FNV-1a of intent + data + firedAt
771
816
  * for `dispatch`, kind + payload + firedAt for the host-control kinds).
772
817
  * Lets the host LLM cross-verify a `[ggui:pending-action]` context entry
@@ -779,7 +824,7 @@ export type SubmitActionEnvelope = {
779
824
  * shape — see {@link SubmitActionEnvelope}.
780
825
  */
781
826
  export type GguiSubmitActionInput = SubmitActionEnvelope & {
782
- readonly renderId: string;
827
+ readonly sessionId: string;
783
828
  readonly appId: string;
784
829
  readonly actionId: string;
785
830
  readonly firedAt: string;
@@ -819,7 +864,7 @@ export declare function isGguiSubmitActionInput(value: unknown): value is GguiSu
819
864
  * the render's server-side pending-event pipe by the iframe's
820
865
  * `ggui_runtime_submit_action` call (relayed by the host) BEFORE this
821
866
  * notification fired; this slice's only job is to make a fresh agent turn
822
- * call `ggui_consume({renderId})` to drain it.
867
+ * call `ggui_consume({sessionId})` to drain it.
823
868
  *
824
869
  * SINGLE SOURCE OF TRUTH: the pending-event queue. This slice carries ONLY
825
870
  * a pointer to the render whose queue holds the gesture — never the action
@@ -847,14 +892,14 @@ export declare function isGguiSubmitActionInput(value: unknown): value is GguiSu
847
892
  export interface GguiUserActionMeta {
848
893
  readonly kind: 'user-action';
849
894
  readonly description: string;
850
- readonly renderId: string;
895
+ readonly sessionId: string;
851
896
  readonly actionId: string;
852
897
  readonly submittedAt: string;
853
898
  readonly intent: string;
854
899
  readonly nextStep: {
855
900
  readonly tool: 'ggui_consume';
856
901
  readonly args: {
857
- readonly renderId: string;
902
+ readonly sessionId: string;
858
903
  };
859
904
  };
860
905
  }
@@ -1 +1 @@
1
- {"version":3,"file":"mcp-apps.d.ts","sourceRoot":"","sources":["../../src/integrations/mcp-apps.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA4BG;AAEH,OAAO,KAAK,EACV,UAAU,EACV,UAAU,EACV,SAAS,EACV,MAAM,2BAA2B,CAAC;AAEnC;;;;GAIG;AACH,eAAO,MAAM,sBAAsB,EAAG,4BAAqC,CAAC;AAE5E;;;;;GAKG;AACH,eAAO,MAAM,wBAAwB,EAAG,kBAA2B,CAAC;AAEpE;;;;;GAKG;AACH,eAAO,MAAM,yBAAyB,EAAG,2BAAoC,CAAC;AAE9E;;;;GAIG;AACH,eAAO,MAAM,mBAAmB;IAC9B,kFAAkF;;IAElF,kEAAkE;;CAE1D,CAAC;AAEX;;;;;GAKG;AACH,MAAM,MAAM,qBAAqB,GAAG,OAAO,GAAG,KAAK,CAAC;AAEpD;;;;;;;;;GASG;AAEH;;;;;;;;;;;GAWG;AACH,MAAM,WAAW,0BAA0B;IACzC,sEAAsE;IACtE,QAAQ,CAAC,KAAK,CAAC,EAAE,MAAM,CAAC;IACxB;;;OAGG;IACH,QAAQ,CAAC,OAAO,CAAC,EAAE,QAAQ,CAAC,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC,CAAC;IACpD;;;OAGG;IACH,QAAQ,CAAC,OAAO,CAAC,EAAE,QAAQ,CAAC,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC,CAAC;IACpD;;;OAGG;IACH,QAAQ,CAAC,OAAO,CAAC,EAAE,QAAQ,CA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