@runtypelabs/persona 4.21.1 → 4.22.1

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 (129) hide show
  1. package/dist/animations/glyph-cycle.d.cts +1 -1
  2. package/dist/animations/glyph-cycle.d.ts +1 -1
  3. package/dist/animations/{types-B_JdVK9o.d.cts → types-9Vxm-PPz.d.cts} +136 -6
  4. package/dist/animations/{types-B_JdVK9o.d.ts → types-9Vxm-PPz.d.ts} +136 -6
  5. package/dist/animations/wipe.d.cts +1 -1
  6. package/dist/animations/wipe.d.ts +1 -1
  7. package/dist/animations-extra.d.cts +136 -6
  8. package/dist/animations-extra.d.ts +136 -6
  9. package/dist/{approval-ui-RNNBR5R3.js → approval-ui-K7R5Q5OC.js} +1 -1
  10. package/dist/approval-ui.cjs +2 -2
  11. package/dist/approval-ui.d.cts +221 -16
  12. package/dist/approval-ui.d.ts +221 -16
  13. package/dist/approval-ui.js +2 -2
  14. package/dist/artifacts-ui-F4N6VMKF.js +7 -0
  15. package/dist/artifacts-ui.cjs +1 -1
  16. package/dist/artifacts-ui.d.cts +221 -16
  17. package/dist/artifacts-ui.d.ts +221 -16
  18. package/dist/artifacts-ui.js +1 -1
  19. package/dist/chunk-NQLDCJAP.js +4 -0
  20. package/dist/codegen.cjs +1 -1
  21. package/dist/codegen.js +1 -1
  22. package/dist/context-mentions.d.cts +221 -16
  23. package/dist/context-mentions.d.ts +221 -16
  24. package/dist/event-stream-view-GL3ADRY2.js +1 -0
  25. package/dist/event-stream-view.cjs +1 -1
  26. package/dist/event-stream-view.d.cts +221 -16
  27. package/dist/event-stream-view.d.ts +221 -16
  28. package/dist/event-stream-view.js +1 -1
  29. package/dist/forms-ui.d.cts +234 -25
  30. package/dist/forms-ui.d.ts +234 -25
  31. package/dist/history-view.d.cts +136 -6
  32. package/dist/history-view.d.ts +136 -6
  33. package/dist/index.cjs +70 -70
  34. package/dist/index.cjs.map +1 -1
  35. package/dist/index.d.cts +302 -32
  36. package/dist/index.d.ts +302 -32
  37. package/dist/index.global.js +54 -54
  38. package/dist/index.global.js.map +1 -1
  39. package/dist/index.js +69 -69
  40. package/dist/index.js.map +1 -1
  41. package/dist/launcher.global.js +2 -2
  42. package/dist/launcher.global.js.map +1 -1
  43. package/dist/session-reconnect.d.cts +221 -16
  44. package/dist/session-reconnect.d.ts +221 -16
  45. package/dist/smart-dom-reader.d.cts +221 -16
  46. package/dist/smart-dom-reader.d.ts +221 -16
  47. package/dist/testing.cjs +3 -3
  48. package/dist/testing.d.cts +3 -4
  49. package/dist/testing.d.ts +3 -4
  50. package/dist/testing.js +3 -3
  51. package/dist/theme-editor-preview.cjs +73 -73
  52. package/dist/theme-editor-preview.d.cts +221 -16
  53. package/dist/theme-editor-preview.d.ts +221 -16
  54. package/dist/theme-editor-preview.js +51 -51
  55. package/dist/theme-editor.cjs +4 -4
  56. package/dist/theme-editor.d.cts +221 -16
  57. package/dist/theme-editor.d.ts +221 -16
  58. package/dist/theme-editor.js +2 -2
  59. package/dist/theme-reference.cjs +1 -1
  60. package/dist/theme-reference.d.cts +65 -1
  61. package/dist/theme-reference.d.ts +65 -1
  62. package/dist/theme-reference.js +1 -1
  63. package/dist/voice-runtime.d.cts +6 -2
  64. package/dist/voice-runtime.d.ts +6 -2
  65. package/dist/webmcp-polyfill.js +1 -4
  66. package/dist/webmcp-runtime-JI7T4QYF.js +6 -0
  67. package/dist/webmcp-runtime.cjs +2 -2
  68. package/dist/webmcp-runtime.d.cts +34 -2
  69. package/dist/webmcp-runtime.d.ts +34 -2
  70. package/dist/webmcp-runtime.js +2 -2
  71. package/package.json +2 -2
  72. package/src/ask-user-question-tool.ts +1 -1
  73. package/src/client-history-rest.test.ts +2 -1
  74. package/src/client-visitor-history.test.ts +20 -4
  75. package/src/client.composer-options.test.ts +1 -1
  76. package/src/client.interrupt.test.ts +2 -2
  77. package/src/client.test.ts +477 -915
  78. package/src/client.ts +134 -494
  79. package/src/client.unified-tools.test.ts +76 -0
  80. package/src/components/artifact-preview.ts +5 -0
  81. package/src/components/event-stream-badge-theming.test.ts +162 -0
  82. package/src/components/event-stream-view.test.ts +76 -76
  83. package/src/components/event-stream-view.ts +55 -20
  84. package/src/components/tool-bubble.test.ts +12 -0
  85. package/src/components/tool-bubble.ts +13 -2
  86. package/src/event-stream-view-bundle.test.ts +2 -2
  87. package/src/generated/runtype-openapi-contract.ts +137 -1
  88. package/src/index-core.ts +2 -0
  89. package/src/internal/runtype-history-provider.test.ts +2 -2
  90. package/src/runtime/init.registry.test.ts +56 -0
  91. package/src/runtime/init.ts +17 -0
  92. package/src/session-history.test.ts +1 -1
  93. package/src/session.quote.test.ts +1 -1
  94. package/src/session.resubmit-from.test.ts +1 -1
  95. package/src/session.test.ts +5 -5
  96. package/src/session.ts +95 -36
  97. package/src/suggest-replies-tool.ts +1 -1
  98. package/src/testing/mock-stream.test.ts +37 -16
  99. package/src/testing/mock-stream.ts +14 -9
  100. package/src/types/theme.ts +41 -1
  101. package/src/types.ts +57 -15
  102. package/src/ui.ask-user-question-plugin.test.ts +7 -7
  103. package/src/ui.composer-defer-one.test.ts +6 -34
  104. package/src/ui.composer-draft-persistence.test.ts +1 -1
  105. package/src/ui.composer-quote.test.ts +1 -1
  106. package/src/ui.message-history-actions.test.ts +1 -1
  107. package/src/ui.reasoning-display.test.ts +136 -2
  108. package/src/ui.streaming-coalescing.test.ts +10 -13
  109. package/src/ui.ts +101 -35
  110. package/src/ui.typing-indicator.test.ts +216 -0
  111. package/src/ui.voice-custom-provider.test.ts +211 -0
  112. package/src/utils/__snapshots__/tokens-parity.test.ts.snap +1740 -0
  113. package/src/utils/event-stream-buffer.test.ts +13 -13
  114. package/src/utils/event-stream-capture.test.ts +20 -20
  115. package/src/utils/formatting.ts +22 -0
  116. package/src/utils/theme.ts +16 -0
  117. package/src/utils/throughput-tracker.test.ts +100 -142
  118. package/src/utils/throughput-tracker.ts +18 -132
  119. package/src/utils/tokens.ts +59 -0
  120. package/src/utils/voice-support.ts +18 -1
  121. package/src/voice/voice-turn-tracker.ts +18 -0
  122. package/src/webmcp-bridge.test.ts +132 -23
  123. package/src/webmcp-bridge.ts +27 -3
  124. package/src/webmcp-runtime-entry.ts +71 -11
  125. package/dist/artifacts-ui-J6AKUGTS.js +0 -7
  126. package/dist/chunk-HBE7LFNT.js +0 -4
  127. package/dist/event-stream-view-73NWKWVQ.js +0 -1
  128. package/dist/webmcp-runtime-P3CHZRHF.js +0 -6
  129. package/src/utils/__fixtures__/unified-translator.oracle.ts +0 -717
package/dist/index.d.cts CHANGED
@@ -632,7 +632,11 @@ interface ColorPalette {
632
632
  warning: ColorShade;
633
633
  error: ColorShade;
634
634
  info: ColorShade;
635
- [key: string]: ColorShade;
635
+ /** Event-stream tool badge family. */
636
+ purple?: ColorShade;
637
+ /** Event-stream agent badge family. */
638
+ teal?: ColorShade;
639
+ [key: string]: ColorShade | undefined;
636
640
  }
637
641
  interface SpacingScale {
638
642
  0: string;
@@ -1204,6 +1208,38 @@ interface ToolBubbleTokens {
1204
1208
  interface ReasoningBubbleTokens {
1205
1209
  shadow: string;
1206
1210
  }
1211
+ /** One event-stream badge chip: fill + text pair. The chip border derives
1212
+ * from `foreground` at ~31% alpha. */
1213
+ interface EventStreamBadgePairTokens {
1214
+ background: TokenReference<'color'>;
1215
+ foreground: TokenReference<'color'>;
1216
+ }
1217
+ /**
1218
+ * Event-stream inspector badge chips (`features.eventStream`), one pair per
1219
+ * unified event family. Materialized into every theme and emitted as
1220
+ * `--persona-event-badge-<family>-{bg,fg}`, with scheme-appropriate defaults:
1221
+ * light themes pair a 100-tone fill with a 700-tone text, the built-in dark
1222
+ * layer flips to a 900-tone fill with a 300-tone text. `badge.default` colors
1223
+ * event types no family matches.
1224
+ */
1225
+ interface EventStreamTokens {
1226
+ badge: {
1227
+ /** `flow_*` events. */
1228
+ flow: EventStreamBadgePairTokens;
1229
+ /** `step_*` events. */
1230
+ step: EventStreamBadgePairTokens;
1231
+ /** `reasoning_*` events. */
1232
+ reasoning: EventStreamBadgePairTokens;
1233
+ /** `tool_*` events. */
1234
+ tool: EventStreamBadgePairTokens;
1235
+ /** `agent_*` events. */
1236
+ agent: EventStreamBadgePairTokens;
1237
+ /** `error` / `execution_error` events. */
1238
+ error: EventStreamBadgePairTokens;
1239
+ /** Any event type no other family matches. */
1240
+ default: EventStreamBadgePairTokens;
1241
+ };
1242
+ }
1207
1243
  /** Scrollbar appearance shared by every scroller in the widget. */
1208
1244
  interface ScrollbarTokens {
1209
1245
  /** Thumb color. @default semantic.colors.border */
@@ -1552,6 +1588,8 @@ interface ComponentTokens {
1552
1588
  attachment: AttachmentTokens;
1553
1589
  toolBubble: ToolBubbleTokens;
1554
1590
  reasoningBubble: ReasoningBubbleTokens;
1591
+ /** Event-stream inspector badge chips. */
1592
+ eventStream?: EventStreamTokens;
1555
1593
  composer: ComposerChromeTokens;
1556
1594
  /** Shared motion timing for composer chrome animation. */
1557
1595
  motion?: MotionTokens;
@@ -1696,6 +1734,11 @@ type RuntypeExecutionStreamEvent = ({
1696
1734
  iteration?: number;
1697
1735
  role: "user" | "assistant" | "system";
1698
1736
  seq: number;
1737
+ subagent?: {
1738
+ agentName?: string;
1739
+ parentToolCallId?: string;
1740
+ toolName: string;
1741
+ };
1699
1742
  turnIndex?: number;
1700
1743
  type: "turn_start";
1701
1744
  }) | ({
@@ -1730,12 +1773,61 @@ type RuntypeExecutionStreamEvent = ({
1730
1773
  role: "user" | "assistant" | "system";
1731
1774
  seq: number;
1732
1775
  stopReason?: "end_turn" | "max_tool_calls" | "length" | "content_filter" | "error" | "unknown";
1776
+ subagent?: {
1777
+ agentName?: string;
1778
+ parentToolCallId?: string;
1779
+ toolName: string;
1780
+ };
1733
1781
  tokens?: {
1734
1782
  input: number;
1735
1783
  output: number;
1736
1784
  };
1737
1785
  type: "turn_complete";
1738
1786
  }) | {
1787
+ executionId: string;
1788
+ id: string;
1789
+ iteration?: number;
1790
+ model?: string;
1791
+ ordinal: number;
1792
+ provider?: string;
1793
+ seq: number;
1794
+ startedAt?: string;
1795
+ stepId?: string;
1796
+ subagent?: {
1797
+ agentName?: string;
1798
+ parentToolCallId?: string;
1799
+ toolName: string;
1800
+ };
1801
+ turnId?: string;
1802
+ type: "model_call_start";
1803
+ } | {
1804
+ completedAt?: string;
1805
+ cost?: number;
1806
+ durationMs?: number;
1807
+ executionId: string;
1808
+ finishReason?: string;
1809
+ id: string;
1810
+ iteration?: number;
1811
+ model?: string;
1812
+ ordinal: number;
1813
+ provider?: string;
1814
+ responseModel?: string;
1815
+ seq: number;
1816
+ subagent?: {
1817
+ agentName?: string;
1818
+ parentToolCallId?: string;
1819
+ toolName: string;
1820
+ };
1821
+ success?: boolean;
1822
+ tokens?: {
1823
+ cacheRead?: number;
1824
+ cacheWrite?: number;
1825
+ input: number;
1826
+ output: number;
1827
+ };
1828
+ turnId?: string;
1829
+ type: "model_call_complete";
1830
+ } | {
1739
1831
  executionId: string;
1740
1832
  id: string;
1741
1833
  index?: number;
@@ -1744,6 +1836,11 @@ type RuntypeExecutionStreamEvent = ({
1744
1836
  seq: number;
1745
1837
  startedAt?: string;
1746
1838
  stepType?: string;
1839
+ subagent?: {
1840
+ agentName?: string;
1841
+ parentToolCallId?: string;
1842
+ toolName: string;
1843
+ };
1747
1844
  totalSteps?: number;
1748
1845
  type: "step_start";
1749
1846
  } | ({
@@ -1771,6 +1868,11 @@ type RuntypeExecutionStreamEvent = ({
1771
1868
  seq: number;
1772
1869
  stepType?: string;
1773
1870
  stopReason?: "end_turn" | "max_tool_calls" | "length" | "content_filter" | "error" | "unknown";
1871
+ subagent?: {
1872
+ agentName?: string;
1873
+ parentToolCallId?: string;
1874
+ toolName: string;
1875
+ };
1774
1876
  success?: boolean;
1775
1877
  tokensUsed?: number;
1776
1878
  type: "step_complete";
@@ -1793,6 +1895,11 @@ type RuntypeExecutionStreamEvent = ({
1793
1895
  role?: "user" | "assistant" | "system";
1794
1896
  seq: number;
1795
1897
  stepId?: string;
1898
+ subagent?: {
1899
+ agentName?: string;
1900
+ parentToolCallId?: string;
1901
+ toolName: string;
1902
+ };
1796
1903
  turnId?: string;
1797
1904
  type: "text_start";
1798
1905
  }) | {
@@ -1800,11 +1907,21 @@ type RuntypeExecutionStreamEvent = ({
1800
1907
  executionId: string;
1801
1908
  id: string;
1802
1909
  seq: number;
1910
+ subagent?: {
1911
+ agentName?: string;
1912
+ parentToolCallId?: string;
1913
+ toolName: string;
1914
+ };
1803
1915
  type: "text_delta";
1804
1916
  } | {
1805
1917
  executionId: string;
1806
1918
  id: string;
1807
1919
  seq: number;
1920
+ subagent?: {
1921
+ agentName?: string;
1922
+ parentToolCallId?: string;
1923
+ toolName: string;
1924
+ };
1808
1925
  text?: string;
1809
1926
  type: "text_complete";
1810
1927
  } | ({
@@ -1813,18 +1930,33 @@ type RuntypeExecutionStreamEvent = ({
1813
1930
  parentToolCallId?: string;
1814
1931
  scope?: "turn" | "loop";
1815
1932
  seq: number;
1933
+ subagent?: {
1934
+ agentName?: string;
1935
+ parentToolCallId?: string;
1936
+ toolName: string;
1937
+ };
1816
1938
  type: "reasoning_start";
1817
1939
  }) | {
1818
1940
  delta: string;
1819
1941
  executionId: string;
1820
1942
  id: string;
1821
1943
  seq: number;
1944
+ subagent?: {
1945
+ agentName?: string;
1946
+ parentToolCallId?: string;
1947
+ toolName: string;
1948
+ };
1822
1949
  type: "reasoning_delta";
1823
1950
  } | ({
1824
1951
  executionId: string;
1825
1952
  id: string;
1826
1953
  scope?: "turn" | "loop";
1827
1954
  seq: number;
1955
+ subagent?: {
1956
+ agentName?: string;
1957
+ parentToolCallId?: string;
1958
+ toolName: string;
1959
+ };
1828
1960
  text?: string;
1829
1961
  type: "reasoning_complete";
1830
1962
  }) | ({
@@ -1917,6 +2049,11 @@ type RuntypeExecutionStreamEvent = ({
1917
2049
  seq: number;
1918
2050
  startedAt?: string;
1919
2051
  stepId?: string;
2052
+ subagent?: {
2053
+ agentName?: string;
2054
+ parentToolCallId?: string;
2055
+ toolName: string;
2056
+ };
1920
2057
  toolCallId: string;
1921
2058
  toolName: string;
1922
2059
  toolType: string;
@@ -1925,6 +2062,11 @@ type RuntypeExecutionStreamEvent = ({
1925
2062
  delta: string;
1926
2063
  executionId: string;
1927
2064
  seq: number;
2065
+ subagent?: {
2066
+ agentName?: string;
2067
+ parentToolCallId?: string;
2068
+ toolName: string;
2069
+ };
1928
2070
  toolCallId: string;
1929
2071
  type: "tool_input_delta";
1930
2072
  } | {
@@ -1932,6 +2074,11 @@ type RuntypeExecutionStreamEvent = ({
1932
2074
  hiddenParameterNames?: Array<string>;
1933
2075
  parameters: Record<string, unknown>;
1934
2076
  seq: number;
2077
+ subagent?: {
2078
+ agentName?: string;
2079
+ parentToolCallId?: string;
2080
+ toolName: string;
2081
+ };
1935
2082
  toolCallId: string;
1936
2083
  toolName?: string;
1937
2084
  type: "tool_input_complete";
@@ -1949,6 +2096,11 @@ type RuntypeExecutionStreamEvent = ({
1949
2096
  result?: unknown;
1950
2097
  seq: number;
1951
2098
  stepId?: string;
2099
+ subagent?: {
2100
+ agentName?: string;
2101
+ parentToolCallId?: string;
2102
+ toolName: string;
2103
+ };
1952
2104
  success: boolean;
1953
2105
  toolCallId: string;
1954
2106
  toolCost?: number;
@@ -2028,6 +2180,19 @@ type RuntypeExecutionStreamEvent = ({
2028
2180
  recoverable?: boolean;
2029
2181
  seq: number;
2030
2182
  type: "error";
2183
+ }) | ({
2184
+ epoch: number;
2185
+ executionId: string;
2186
+ kind: "compaction";
2187
+ outcome?: "ok" | "failed" | "gap" | "skipped";
2188
+ phase: "start" | "complete";
2189
+ reason: "threshold" | "overflow" | "manual" | "surface_policy" | "provider_mismatch";
2190
+ seq: number;
2191
+ strategy: "provider_native" | "summary";
2192
+ tier: number;
2193
+ tokensAfter?: number;
2194
+ tokensBefore?: number;
2195
+ type: "context_notice";
2031
2196
  }) | {
2032
2197
  executionId: string;
2033
2198
  seq: number;
@@ -2047,12 +2212,14 @@ type RuntypeTurnCompleteEvent = RuntypeStreamEventOf<RuntypeExecutionStreamEvent
2047
2212
  type RuntypeStepCompleteEvent = RuntypeStreamEventOf<RuntypeExecutionStreamEvent, "step_complete">;
2048
2213
  type RuntypeStopReasonKind = NonNullable<RuntypeTurnCompleteEvent["stopReason"] | RuntypeStepCompleteEvent["stopReason"]>;
2049
2214
  type RuntypeClientInitRequest = {
2215
+ durableRecovery?: boolean;
2050
2216
  flowId?: string;
2051
2217
  identityProof?: string;
2052
2218
  token: string;
2053
2219
  visitorHistory?: boolean;
2054
2220
  visitorToken?: string;
2055
2221
  } | {
2222
+ durableRecovery?: boolean;
2056
2223
  flowId?: string;
2057
2224
  identityProof?: string;
2058
2225
  sessionId: string;
@@ -2061,6 +2228,7 @@ type RuntypeClientInitRequest = {
2061
2228
  visitorToken?: string;
2062
2229
  } | {
2063
2230
  conversationId: string;
2231
+ durableRecovery?: boolean;
2064
2232
  flowId?: string;
2065
2233
  identityProof?: string;
2066
2234
  token: string;
@@ -2068,6 +2236,7 @@ type RuntypeClientInitRequest = {
2068
2236
  visitorToken: string;
2069
2237
  } | {
2070
2238
  conversationId: string;
2239
+ durableRecovery?: boolean;
2071
2240
  flowId?: string;
2072
2241
  identityProof: string;
2073
2242
  token: string;
@@ -2085,6 +2254,10 @@ type RuntypeClientInitResponse = {
2085
2254
  };
2086
2255
  conversationId: string;
2087
2256
  conversationRevision: string;
2257
+ durableRecovery?: {
2258
+ enabled: boolean;
2259
+ join?: boolean;
2260
+ };
2088
2261
  expiresAt: string;
2089
2262
  flow?: {
2090
2263
  description?: string | null;
@@ -2144,11 +2317,12 @@ type RuntypeClientChatRequest = {
2144
2317
  }>;
2145
2318
  metadata?: Record<string, unknown>;
2146
2319
  sessionId: string;
2147
- submitMode?: "normal" | "interrupt";
2320
+ submitMode?: "normal" | "interrupt" | "join";
2148
2321
  turnId?: string;
2149
2322
  };
2150
2323
  type RuntypeClientChatStreamEvent = RuntypeExecutionStreamEvent;
2151
2324
  type RuntypeClientResumeRequest = {
2325
+ after?: string;
2152
2326
  assistantMessageId?: string;
2153
2327
  clientTools?: Array<{
2154
2328
  description: string;
@@ -3135,6 +3309,14 @@ type ClientToolDefinition = {
3135
3309
  readOnlyHint?: boolean;
3136
3310
  untrustedContentHint?: boolean;
3137
3311
  };
3312
+ /**
3313
+ * Hoisted copy of `annotations.untrustedContentHint`. This is the field the
3314
+ * server actually acts on (`InlineClientToolSchema`): it spotlights the
3315
+ * tool's output before the model reads it, so instructions embedded in
3316
+ * page-provided content (reviews, comments, emails) are not treated as
3317
+ * instructions. `annotations` itself is trace/dashboard metadata only.
3318
+ */
3319
+ untrustedContentHint?: boolean;
3138
3320
  };
3139
3321
  /**
3140
3322
  * Information passed to the confirm-bubble handler before a `webmcp:*` tool
@@ -3288,15 +3470,15 @@ type AgentMessageMetadata = {
3288
3470
  */
3289
3471
  parentStepId?: string;
3290
3472
  /**
3291
- * Set to `true` on a tool-variant message produced from a `step_await`
3473
+ * Set to `true` on a tool-variant message produced from an `await`
3292
3474
  * event (`awaitReason: "local_tool_required"`). Signals to UI code that
3293
3475
  * the tool call is a LOCAL tool and the server is paused waiting for a
3294
3476
  * `POST /v1/dispatch/resume` with the user's answer keyed by tool name.
3295
3477
  */
3296
3478
  awaitingLocalTool?: boolean;
3297
3479
  /**
3298
- * The provider per-call id (`toolu_…`) carried on the `step_await` /
3299
- * `flow_await` events for a LOCAL tool (core#3878). Present only when the
3480
+ * The provider per-call id (`toolu_…`) carried on the `await`
3481
+ * event for a LOCAL tool (core#3878). Present only when the
3300
3482
  * server emits it. Two PARALLEL calls to the same tool in one turn share a
3301
3483
  * `toolName` (and a collapsed `toolId`) but get DISTINCT `webMcpToolCallId`s,
3302
3484
  * so this is the key the widget batches a single `/resume` on: preferred
@@ -4502,6 +4684,16 @@ type AgentWidgetToolCallDisplayFeature = {
4502
4684
  * @default "stack"
4503
4685
  */
4504
4686
  groupedMode?: "stack" | "summary";
4687
+ /**
4688
+ * What happens to a tool call row once it completes.
4689
+ *
4690
+ * - `"kept"` (default): the finished row stays in the transcript.
4691
+ * - `"removed"`: no row is rendered at all, so the transcript gap closes with
4692
+ * it. The tool call stays on the message and in `getMessages()`.
4693
+ *
4694
+ * @default "kept"
4695
+ */
4696
+ completedVisibility?: AgentWidgetToolCallCompletedVisibility;
4505
4697
  /**
4506
4698
  * When false, tool call bubbles show only the collapsed summary with no
4507
4699
  * expand/collapse toggle. Users see tool awareness without full details.
@@ -4519,6 +4711,8 @@ type AgentWidgetToolCallDisplayFeature = {
4519
4711
  */
4520
4712
  loadingAnimation?: AgentWidgetToolCallLoadingAnimation;
4521
4713
  };
4714
+ /** See `features.toolCallDisplay.completedVisibility`. */
4715
+ type AgentWidgetToolCallCompletedVisibility = "kept" | "removed";
4522
4716
  type AgentWidgetReasoningDisplayFeature = {
4523
4717
  /**
4524
4718
  * When true, active collapsed reasoning rows can render a lightweight preview block.
@@ -4564,13 +4758,26 @@ type AgentWidgetReasoningDisplayFeature = {
4564
4758
  * - `"kept"` (default): the finished row stays in the transcript.
4565
4759
  * - `"removed"`: no row is rendered at all, so the transcript gap closes with
4566
4760
  * it. The reasoning text stays on the message and in `getMessages()`.
4761
+ * - `"removed-when-short"`: behaves as `"removed"` when the completed trace
4762
+ * is short (see `shortThinkThreshold`), and as `"kept"` otherwise.
4567
4763
  *
4568
4764
  * @default "kept"
4569
4765
  */
4570
4766
  completedVisibility?: AgentWidgetReasoningCompletedVisibility;
4767
+ /**
4768
+ * Thresholds used by `completedVisibility: "removed-when-short"` to decide
4769
+ * whether a completed trace counts as short. Duration is checked first when
4770
+ * the reasoning reports one; the character count is a fallback for traces
4771
+ * with no reported duration.
4772
+ * @default { durationMs: 15000, chars: 1200 }
4773
+ */
4774
+ shortThinkThreshold?: {
4775
+ durationMs?: number;
4776
+ chars?: number;
4777
+ };
4571
4778
  };
4572
4779
  /** See `features.reasoningDisplay.completedVisibility`. */
4573
- type AgentWidgetReasoningCompletedVisibility = "kept" | "removed";
4780
+ type AgentWidgetReasoningCompletedVisibility = "kept" | "removed" | "removed-when-short";
4574
4781
  /**
4575
4782
  * Reveal animation applied to assistant message text while it is streaming.
4576
4783
  *
@@ -5569,7 +5776,7 @@ type EventStreamConfig = {
5569
5776
  /**
5570
5777
  * Custom badge color mappings by event type prefix or exact type.
5571
5778
  * Keys are matched as exact match first, then prefix match (keys ending with "_").
5572
- * @example { "flow_": { bg: "#dcfce7", text: "#166534" }, "error": { bg: "#fecaca", text: "#991b1b" } }
5779
+ * @example { "execution_": { bg: "#dcfce7", text: "#166534" }, "error": { bg: "#fecaca", text: "#991b1b" } }
5573
5780
  */
5574
5781
  badgeColors?: Record<string, EventStreamBadgeColor>;
5575
5782
  /**
@@ -7047,9 +7254,13 @@ interface VoiceProvider {
7047
7254
  * `isFinal=false` is a live interim update (user partials, or assistant deltas
7048
7255
  * on providers that stream them); `isFinal=true` finalizes that role's text.
7049
7256
  * On the realtime `runtype` path, interim updates fire for the `user` only and
7050
- * the `assistant` arrives as a single final.
7257
+ * the `assistant` arrives as a single final. Providers with overlapping turns
7258
+ * must include the same turnId on user and assistant finals; without IDs,
7259
+ * providers must discard cancelled output before emitting the next user final.
7051
7260
  */
7052
- onTranscript?(callback: (role: 'user' | 'assistant', text: string, isFinal: boolean) => void): void;
7261
+ onTranscript?(callback: (role: 'user' | 'assistant', text: string, isFinal: boolean, metadata?: {
7262
+ turnId?: string;
7263
+ }) => void): void;
7053
7264
  /** Register a callback for per-turn latency metrics (realtime path). */
7054
7265
  onMetrics?(callback: (metrics: VoiceMetrics) => void): void;
7055
7266
  /**
@@ -9522,16 +9733,16 @@ type AgentWidgetConfig = {
9522
9733
  *
9523
9734
  * @example
9524
9735
  * ```typescript
9525
- * // For Runtype API format
9736
+ * // For a custom backend (Runtype unified events are handled natively)
9526
9737
  * config: {
9527
9738
  * parseSSEEvent: (data) => {
9528
- * if ((data.type === 'step_delta' || data.type === 'step_chunk') && (data.delta || data.chunk)) {
9529
- * return { text: data.delta ?? data.chunk };
9739
+ * if (data.type === 'token' && typeof data.value === 'string') {
9740
+ * return { text: data.value };
9530
9741
  * }
9531
- * if (data.type === 'flow_complete') {
9742
+ * if (data.type === 'done') {
9532
9743
  * return { done: true };
9533
9744
  * }
9534
- * if (data.type === 'step_error') {
9745
+ * if (data.type === 'failure') {
9535
9746
  * return { error: data.error };
9536
9747
  * }
9537
9748
  * return null; // Ignore other events
@@ -9733,7 +9944,7 @@ type AgentWidgetReasoning = {
9733
9944
  /**
9734
9945
  * Reasoning channel scope (wire spec). `"turn"` is ordinary per-turn
9735
9946
  * thinking; `"loop"` is a cross-iteration agent reflection (the fold that
9736
- * replaced the legacy `agent_reflection` event). Absent for legacy streams.
9947
+ * replaced the legacy `agent_reflection` event). Optional when the stream does not specify a scope.
9737
9948
  */
9738
9949
  scope?: "turn" | "loop";
9739
9950
  startedAt?: number;
@@ -9747,6 +9958,9 @@ type AgentWidgetToolCall = {
9747
9958
  args?: unknown;
9748
9959
  chunks?: string[];
9749
9960
  result?: unknown;
9961
+ /** Whether the tool succeeded; failure does not necessarily end the execution. */
9962
+ success?: boolean;
9963
+ error?: string;
9750
9964
  duration?: number;
9751
9965
  startedAt?: number;
9752
9966
  completedAt?: number;
@@ -9777,7 +9991,7 @@ type AgentWidgetApproval = {
9777
9991
  type AgentWidgetMessageVariant = "assistant" | "reasoning" | "tool" | "approval";
9778
9992
  /**
9779
9993
  * Per-turn / per-step stop reason emitted by the runtime on
9780
- * `agent_turn_complete` and `step_complete` SSE events. The vocabulary is
9994
+ * `turn_complete` and `step_complete` SSE events. The vocabulary is
9781
9995
  * owned by the upstream Runtype API: do not extend without coordination.
9782
9996
  *
9783
9997
  * - `end_turn`: natural completion (no affordance needed)
@@ -9908,7 +10122,7 @@ type AgentWidgetMessage = {
9908
10122
  */
9909
10123
  agentMetadata?: AgentMessageMetadata;
9910
10124
  /**
9911
- * Per-turn stop reason reported by the runtime on `agent_turn_complete`
10125
+ * Per-turn stop reason reported by the runtime on `turn_complete`
9912
10126
  * (agent-loop path) or the last `step_complete` for a prompt step
9913
10127
  * (dispatch / flow path). Absent when the API did not report a value.
9914
10128
  *
@@ -10707,7 +10921,7 @@ declare class AgentWidgetClient {
10707
10921
  * Returns the raw Response so the caller can pipe its SSE body through
10708
10922
  * `connectStream()`.
10709
10923
  *
10710
- * @param executionId - The paused execution id carried on `step_await`.
10924
+ * @param executionId - The paused execution id carried on `await`.
10711
10925
  * @param toolOutputs - Map keyed by per-call `toolCallId` (core#3878),
10712
10926
  * falling back to tool name for legacy servers → the tool's result value.
10713
10927
  */
@@ -11023,6 +11237,8 @@ declare class AgentWidgetSession {
11023
11237
  deactivateBargeIn(): Promise<void>;
11024
11238
  private pendingVoiceUserMessageId;
11025
11239
  private pendingVoiceAssistantMessageId;
11240
+ private voiceTurns;
11241
+ private voiceDisconnectPromise;
11026
11242
  private ttsSpokenMessageIds;
11027
11243
  private readAloud;
11028
11244
  /**
@@ -11051,6 +11267,8 @@ declare class AgentWidgetSession {
11051
11267
  * Cleanup voice resources
11052
11268
  */
11053
11269
  cleanupVoice(): void;
11270
+ private disconnectVoice;
11271
+ private settlePendingVoiceTurn;
11054
11272
  /**
11055
11273
  * Extract voice configuration from widget config
11056
11274
  */
@@ -11545,7 +11763,7 @@ declare class AgentWidgetSession {
11545
11763
  /**
11546
11764
  * Resolve a paused `ask_user_question` LOCAL tool call.
11547
11765
  *
11548
- * When the server emits `step_await` for `ask_user_question`, the widget
11766
+ * When the server emits `await` for `ask_user_question`, the widget
11549
11767
  * renders the answer-pill sheet and calls this method once the user
11550
11768
  * picks. Steps:
11551
11769
  * 1. POST the answer to `/resume` via `client.resumeFlow`.
@@ -11574,10 +11792,10 @@ declare class AgentWidgetSession {
11574
11792
  markAskUserQuestionResolved(toolMessage: AgentWidgetMessage, answers?: Record<string, string | string[]>): void;
11575
11793
  resolveAskUserQuestion(toolMessage: AgentWidgetMessage, answer: string | Record<string, string | string[]>): Promise<void>;
11576
11794
  /**
11577
- * Collect an auto-resolving LOCAL-tool `step_await` (`webmcp:*` page tools
11795
+ * Collect an auto-resolving LOCAL-tool `await` (`webmcp:*` page tools
11578
11796
  * and the built-in `suggest_replies`) into a per-executionId batch
11579
11797
  * and schedule a single deferred flush. Parallel calls (core#3878) emit
11580
- * several `step_await`s for ONE paused execution within the same stream tick;
11798
+ * several `await`s for ONE paused execution within the same stream tick;
11581
11799
  * buffering them and flushing once lets us post ONE `/resume` keyed by the
11582
11800
  * per-call `webMcpToolCallId` rather than racing N name-keyed resumes on the
11583
11801
  * same execution (which 404'd on the second and hung the turn).
@@ -11595,7 +11813,7 @@ declare class AgentWidgetSession {
11595
11813
  /**
11596
11814
  * Flush every buffered local-tool await batch, one `/resume` per executionId.
11597
11815
  * Called once a stream ends (`status: idle` / `error`): by then all parallel
11598
- * `step_await`s the stream carried have been collected, even if split across
11816
+ * `await`s the stream carried have been collected, even if split across
11599
11817
  * SSE chunks. Deferred via `queueMicrotask` (epoch-guarded) so the idle
11600
11818
  * handler returns first and the stream's end-of-stream teardown (streaming /
11601
11819
  * abortController) settles before a resolve grabs them: the same ordering the
@@ -11616,7 +11834,7 @@ declare class AgentWidgetSession {
11616
11834
  * Persisted-resolution guard for `suggest_replies`. The in-memory dedupe
11617
11835
  * sets (`webMcpInflightKeys` / `webMcpResolvedKeys`) are cleared by
11618
11836
  * hydrateMessages/clearMessages/cancel, but `suggestRepliesResolved`
11619
- * survives on the stored message, so a stale `step_await` re-emit after a
11837
+ * survives on the stored message, so a stale `await` re-emit after a
11620
11838
  * hydration must not re-POST `/resume` for an already-resolved call (the
11621
11839
  * historical double-resume failure mode the batching work exists to avoid).
11622
11840
  * Checks the LIVE message first; the handleEvent snapshot is a fresh wire
@@ -11650,12 +11868,12 @@ declare class AgentWidgetSession {
11650
11868
  * resumes with a canned "shown" result (the chips render from the message
11651
11869
  * list, not from this resolve).
11652
11870
  *
11653
- * Triggered automatically from `handleEvent` when a `step_await`-derived
11871
+ * Triggered automatically from `handleEvent` when an `await`-derived
11654
11872
  * message arrives for such a tool: the user does not click a pill; the
11655
11873
  * bridge's confirm-bubble gate (WebMCP only) is the only interactive
11656
11874
  * surface.
11657
11875
  *
11658
- * Idempotent on the message's `toolCall.id`: re-emits of the same step_await
11876
+ * Idempotent on the message's `toolCall.id`: re-emits of the same await
11659
11877
  * (e.g. from message coalescing) won't double-fire `tool.execute`. Failure
11660
11878
  * modes, declined, timed out, throw, unknown tool, all resolve into a
11661
11879
  * `{ isError: true, content: [...] }` payload that resumes the dispatch
@@ -11734,7 +11952,7 @@ declare class AgentWidgetSession {
11734
11952
  private trackCursor;
11735
11953
  /**
11736
11954
  * The drop gate: is this stream-end a dropped connection we should reconnect,
11737
- * rather than a graceful finish or an intentional `step_await` pause? ALL must
11955
+ * rather than a graceful finish or an intentional `await` pause? ALL must
11738
11956
  * hold (see plan §Design overview keystone 3).
11739
11957
  */
11740
11958
  private isDurableDrop;
@@ -12181,6 +12399,8 @@ type AgentWidgetController = Controller;
12181
12399
  type AgentWidgetInitHandle = AgentWidgetController & {
12182
12400
  host: HTMLElement;
12183
12401
  };
12402
+ /** Handles of all currently mounted widgets, oldest first. */
12403
+ declare const getAgentWidgetHandles: () => AgentWidgetInitHandle[];
12184
12404
  declare const initAgentWidget: (options: AgentWidgetInitOptions) => AgentWidgetInitHandle;
12185
12405
 
12186
12406
  /** Canonicalize the deprecated `"card"` alias to `"collapsed"`. */
@@ -12294,7 +12514,7 @@ declare const removeAskUserQuestionSheet: (overlay: HTMLElement | null | undefin
12294
12514
  * `clientTools[]` (set `features.askUserQuestion.expose: true`): the same
12295
12515
  * wire surface WebMCP page tools ride. The server registers it as a LOCAL
12296
12516
  * tool under its bare name (`origin: 'sdk'` tools are not `webmcp:`-prefixed),
12297
- * so when the model calls it the execution pauses with a `step_await`, the
12517
+ * so when the model calls it the execution pauses with an `await`, the
12298
12518
  * widget's answer-pill sheet renders, and `session.resolveAskUserQuestion()`
12299
12519
  * resumes the execution with the structured answers. The public await frame
12300
12520
  * for a local-tool pause carries no `awaitReason`; that discriminator is
@@ -12396,7 +12616,7 @@ declare const builtInClientToolsForDispatch: (config: AgentWidgetConfig | undefi
12396
12616
  * The widget can advertise this tool to the agent on every dispatch via
12397
12617
  * `clientTools[]` (set `suggestions.followUps.expose: true`): the same
12398
12618
  * wire surface as `ask_user_question` and WebMCP page tools. When the model
12399
- * calls it, the execution pauses with a `step_await` (a local-tool pause
12619
+ * calls it, the execution pauses with an `await` (a local-tool pause
12400
12620
  * carries no `awaitReason`; that discriminator is internal). Unlike
12401
12621
  * `ask_user_question`, the widget resolves it FIRE-AND-FORGET: it renders the
12402
12622
  * configured follow-up surface and immediately resumes the execution with a
@@ -12535,8 +12755,22 @@ declare const WEBMCP_TOOL_PREFIX = "webmcp:";
12535
12755
  interface ModelContextToolInfo {
12536
12756
  name: string;
12537
12757
  description: string;
12538
- /** JSON-encoded JSON Schema for the tool's input. */
12539
- inputSchema?: string;
12758
+ /**
12759
+ * JSON Schema for the tool's input, in EITHER generation of the WebMCP
12760
+ * contract. Never read it raw: `normalizeInputSchema` in
12761
+ * `webmcp-runtime-entry.ts` collapses both shapes to the object the wire
12762
+ * needs.
12763
+ *
12764
+ * `webmcp#241` changed this from a JSON-encoded string to a JSON Schema
12765
+ * object. `@mcp-b/webmcp-polyfill` made the switch in v5, and Chrome ships it
12766
+ * from 154.0.8013 (cross-document tools first) -- but Chrome 149-153, most of
12767
+ * the Origin Trial population, and 154's same-document tools still emit the
12768
+ * string. Both are live in the field, so we accept both.
12769
+ *
12770
+ * Absent when the tool registered no schema: v5 omits the member, where v4
12771
+ * always emitted a `{"type":"object"}` string.
12772
+ */
12773
+ inputSchema?: object | string;
12540
12774
  /**
12541
12775
  * Display title declared on the tool (`ToolDescriptor.title` in the WebMCP
12542
12776
  * spec). The polyfill returns `""` when the tool didn't declare one. Note:
@@ -12545,6 +12779,16 @@ interface ModelContextToolInfo {
12545
12779
  * channel available to us.
12546
12780
  */
12547
12781
  title?: string;
12782
+ /**
12783
+ * WebMCP `Tool.annotations`. Returned by `getTools()` since
12784
+ * `@mcp-b/webmcp-polyfill` v5 (and by Chrome's native implementation);
12785
+ * absent on v4 and whenever the tool declared none -- the spec omits the
12786
+ * member rather than emitting an empty object.
12787
+ */
12788
+ annotations?: {
12789
+ readOnlyHint?: boolean;
12790
+ untrustedContentHint?: boolean;
12791
+ };
12548
12792
  }
12549
12793
  /** The slice of `@mcp-b/webmcp-polyfill` the bridge consumes on install. */
12550
12794
  type WebMcpPolyfillModule = {
@@ -12557,7 +12801,7 @@ type WebMcpPolyfillModule = {
12557
12801
  declare const stripWebMcpPrefix: (name: string) => string;
12558
12802
  /**
12559
12803
  * `true` when `wireToolName` carries the `webmcp:` prefix. Used by `client.ts`
12560
- * to route `step_await` events.
12804
+ * to route `await` events.
12561
12805
  */
12562
12806
  declare const isWebMcpToolName: (name: string) => boolean;
12563
12807
 
@@ -13613,6 +13857,32 @@ declare const DEFAULT_PALETTE: {
13613
13857
  900: string;
13614
13858
  950: string;
13615
13859
  };
13860
+ purple: {
13861
+ 50: string;
13862
+ 100: string;
13863
+ 200: string;
13864
+ 300: string;
13865
+ 400: string;
13866
+ 500: string;
13867
+ 600: string;
13868
+ 700: string;
13869
+ 800: string;
13870
+ 900: string;
13871
+ 950: string;
13872
+ };
13873
+ teal: {
13874
+ 50: string;
13875
+ 100: string;
13876
+ 200: string;
13877
+ 300: string;
13878
+ 400: string;
13879
+ 500: string;
13880
+ 600: string;
13881
+ 700: string;
13882
+ 800: string;
13883
+ 900: string;
13884
+ 950: string;
13885
+ };
13616
13886
  };
13617
13887
  spacing: Record<0 | 24 | 2 | 1 | 3 | 4 | 5 | 6 | 8 | 10 | 12 | 16 | 20 | 32 | 40 | 48 | 56 | 64, string>;
13618
13888
  typography: {
@@ -14430,4 +14700,4 @@ interface RovingTablistController {
14430
14700
  }
14431
14701
  declare function createRovingTablist(container: HTMLElement, options: RovingTablistOptions): RovingTablistController;
14432
14702
 
14433
- export { ASK_USER_QUESTION_CLIENT_TOOL, ASK_USER_QUESTION_PARAMETERS_SCHEMA, ASK_USER_QUESTION_TOOL_NAME, type AgentConfig, type AgentExecutionState, type AgentLoopConfig, type AgentMessageMetadata, type AgentRequestOptions, type AgentToolsConfig, type AgentWidgetActionContext, type AgentWidgetActionEventPayload, type AgentWidgetActionHandler, type AgentWidgetActionHandlerResult, type AgentWidgetActionParser, type AgentWidgetAgentRequestPayload, type AgentWidgetApproval, type AgentWidgetApprovalConfig, type AgentWidgetApprovalDecisionOptions, type AgentWidgetArtifactsFeature, type AgentWidgetArtifactsLayoutConfig, type AgentWidgetAskUserQuestionFeature, type AgentWidgetAskUserQuestionStyles, type AgentWidgetAttachmentAdapter, type AgentWidgetAttachmentsConfig, type AgentWidgetAvatarConfig, AgentWidgetClient, type AgentWidgetComponentRenderer, type AgentWidgetComposerConfig, type AgentWidgetConfig, type AgentWidgetConfigPatch, type AgentWidgetContextMentionChipRenderContext, type AgentWidgetContextMentionCommandContext, type AgentWidgetContextMentionComposerCapability, type AgentWidgetContextMentionConfig, type AgentWidgetContextMentionItem, type AgentWidgetContextMentionItemRenderContext, type AgentWidgetContextMentionMenuRenderContext, type AgentWidgetContextMentionPayload, type AgentWidgetContextMentionRef, type AgentWidgetContextMentionResolveContext, type AgentWidgetContextMentionSearchContext, type AgentWidgetContextMentionSource, type AgentWidgetContextMentionTokenRenderContext, type AgentWidgetContextProvider, type AgentWidgetContextProviderContext, type AgentWidgetController, type AgentWidgetControllerEventMap, type AgentWidgetCustomFetch, type AgentWidgetCustomMessageAction, type AgentWidgetCustomMessageActionRole, type AgentWidgetDockConfig, type AgentWidgetEvent, type AgentWidgetFeatureFlags, type AgentWidgetFollowUpSuggestionsConfig, type AgentWidgetHeaderLayoutConfig, type AgentWidgetHeadersFunction, type AgentWidgetHistoryCopy, type AgentWidgetHistoryFeature, type AgentWidgetHistoryListAction, type AgentWidgetHistoryRenderActions, type AgentWidgetInitHandle, type AgentWidgetInitOptions, type AgentWidgetLauncherConfig, type AgentWidgetLauncherTeaserConfig, type AgentWidgetLayoutConfig, type AgentWidgetLoadingIndicatorConfig, type AgentWidgetMarkdownConfig, type AgentWidgetMarkdownOptions, type AgentWidgetMarkdownRendererOverrides, type AgentWidgetMentionLlmEntry, type AgentWidgetMentionTriggerChannel, type AgentWidgetMentionTriggerPosition, type AgentWidgetMessage, type AgentWidgetMessageActionsConfig, type AgentWidgetMessageFeedback, type AgentWidgetMessageLayoutConfig, type AgentWidgetMessageRoleLayout, type AgentWidgetParsedAction, type AgentWidgetPlugin, type AgentWidgetPluginStorage, type AgentWidgetRailSection, type AgentWidgetRailSectionContext, type AgentWidgetReadAloudEvent, type AgentWidgetRenderHistoryConversationContext, type AgentWidgetRenderHistoryHeaderContext, type AgentWidgetRenderHistoryOpenErrorContext, type AgentWidgetRenderHistoryStateContext, type AgentWidgetRenderHistoryViewContext, type AgentWidgetRenderSuggestionContext, type AgentWidgetRenderWelcomeContext, type AgentWidgetRequestPayload, type AgentWidgetResolvedSuggestion, type AgentWidgetSSEEventParser, type AgentWidgetSSEEventResult, type AgentWidgetScrollBehaviorFeature, type AgentWidgetScrollMode, type AgentWidgetScrollRestorePosition, type AgentWidgetScrollToBottomFeature, AgentWidgetSession, type AgentWidgetSessionStatus, type AgentWidgetStarterSuggestionsConfig, type AgentWidgetStorageAdapter, type AgentWidgetStoredDraft, type AgentWidgetStoredState, type AgentWidgetStreamAnimationBuffer, type AgentWidgetStreamAnimationBuiltinType, type AgentWidgetStreamAnimationFeature, type AgentWidgetStreamAnimationPlaceholder, type AgentWidgetStreamAnimationType, type AgentWidgetStreamParser, type AgentWidgetStreamParserResult, type AgentWidgetSuggestion, type AgentWidgetSuggestionBehavior, type AgentWidgetSuggestionChipsConfig, type AgentWidgetSuggestionSelectContext, type AgentWidgetSuggestionSource, type AgentWidgetSuggestionSurface, type AgentWidgetSuggestionSurfaceConfig, type AgentWidgetSuggestionVariant, type AgentWidgetSuggestionsConfig, type AgentWidgetTimestampConfig, type AgentWidgetTooltipConfig, type AgentWidgetTransformSuggestionsContext, type AgentWidgetVoiceStatusEvent, type AgentWidgetWebMcpConfig, type AgentWidgetWelcomeAlign, type AgentWidgetWelcomeConfig, type AgentWidgetWelcomeDismiss, type AgentWidgetWelcomeIcon, type AgentWidgetWelcomeIconBase, type AgentWidgetWelcomeIconPlacement, type AgentWidgetWelcomeVariant, type ArtifactConfigPayload, type ArtifactPaneTokens, type ArtifactTabTokens, type ArtifactToolbarTokens, type AskUserQuestionOption, type AskUserQuestionPayload, type AskUserQuestionPrompt, AttachmentManager, type AttachmentManagerConfig, type AttachmentUploadContext, type BorderScale, BrowserSpeechEngine, type BrowserSpeechEngineOptions, type CSATFeedbackOptions, type ClientChatRequest, type ClientFeedbackRequest, type ClientFeedbackType, type ClientInitResponse, type ClientSession, type ClientToolDefinition, type ClientVisitorGrant, type CodeFormat, type CodeGeneratorHooks, type CodeGeneratorOptions, type ColorPalette, type ColorShade, type ComboButtonHandle, type ComponentContext, type ComponentDirective, type ComponentRegistrationOptions, type ComponentRenderer, type ComponentTokens, type ComposerAction, type ComposerActionBase, type ComposerActionContext, type ComposerActionContributionContext, type ComposerActionOverflowConfig, type ComposerActionPlacement, type ComposerActionPresentation, type ComposerActionRenderContext, type ComposerActionVisibility, type ComposerAttachmentState, type ComposerBeforeSendResult, type ComposerBuildContext, type ComposerButtonAction, type ComposerCustomAction, type ComposerDisabledOption, type ComposerElements, type ComposerInputAttributes, type ComposerLayout, type ComposerMode, type ComposerModeChipVisibility, type ComposerModeGroup, type ComposerModeGroupPresentation, type ComposerModel, type ComposerModelPickerConfig, type ComposerModelPickerPresentation, type ComposerPhase, type ComposerQuote, type ComposerResubmitOptions, type ComposerState, type ComposerStreamingSubmitBehavior, type ComposerSubmissionOptions, type ComposerSubmissionSnapshot, type ComposerSubmitKey, type ContentPart, type CreateComboButtonOptions, type CreateDropdownOptions, type CreateIconButtonOptions, type CreateLabelButtonOptions, type CreateStandardBubbleOptions, type CreateThemeOptions, type CreateToggleGroupOptions, DEFAULT_COMPONENTS, DEFAULT_FLOATING_LAUNCHER_MAX_WIDTH, DEFAULT_FLOATING_LAUNCHER_WIDTH, DEFAULT_PALETTE, DEFAULT_SEMANTIC, DEFAULT_WIDGET_CONFIG, type DeepPartial, type DemoCarouselHandle, type DemoCarouselItem, type DemoCarouselOptions, type DomContextMode, type DomContextOptions, type DropdownMenuHandle, type DropdownMenuItem, type EnrichedPageElement, type EventStreamBadgeColor, type EventStreamConfig, type EventStreamPayloadRenderContext, type EventStreamRowRenderContext, type EventStreamToolbarRenderContext, type EventStreamViewRenderContext, type FallbackSpeechEngineOptions, type FormatEnrichedContextOptions, type HeaderBuildContext, type HeaderElements, type HeaderLayoutContext, type HeaderLayoutRenderer, type HeaderRenderContext, type HistoryConversationDetail, type HistoryConversationPage, type HistoryConversationPatch, type HistoryConversationSummary, type HistoryDeleteAllOptions, type HistoryDisplayProjection, type HistoryIdentityStatus, type HistoryListOptions, type HistoryListResult, type HistoryOperationContext, type HistoryPageOptions, type HistoryPageResult, type HistoryPendingAction, type HistoryProvider, HistoryProviderError, type HistoryProviderErrorCode, type HistoryReturnSurface, type HistoryScope, type HistoryViewState, type IconButtonTokens, type IconName, type IdleIndicatorRenderContext, type ImageContentPart, type InjectAssistantMessageOptions, type InjectComponentDirectiveOptions, type InjectMessageOptions, type InjectSystemMessageOptions, type InjectUserMessageOptions, type LabelButtonTokens, type LoadingIndicatorRenderContext, type LoadingIndicatorRenderer, type MarkdownParsersModule, type MarkdownProcessorOptions, type MessageActionCallbacks, type MessageContent, type MessageRenderContext, type MessageTransform, type NPSFeedbackOptions, PRESETS, PRESET_FULLSCREEN, PRESET_MINIMAL, PRESET_SHOP, type ParseOptionsConfig, type ParseRule, type PcmStreamPlayer, type PendingAttachment, type PersonaArtifactActionContext, type PersonaArtifactCustomAction, type PersonaArtifactDisplayDescriptor, type PersonaArtifactDisplayMatch, type PersonaArtifactDisplayMode, type PersonaArtifactDisplayModeInput, type PersonaArtifactDisplayResolution, type PersonaArtifactDisplayRules, type PersonaArtifactFilesDisplayRules, type PersonaArtifactKind, type PersonaArtifactManualUpsert, type PersonaArtifactPresentation, type PersonaArtifactRecord, type PersonaArtifactStatusLabelContext, type PersonaTheme, type PersonaThemePlugin, type PreparedClientSession, type PreparedHistoryActivation, type RadiusScale, ReadAloudController, type ReadAloudListener, type ReadAloudState, type ResolvedHistoryCopy, type ResolvedHistoryPresentation, type ResolvedTarget, type ResolvedWelcomeConfig, type RovingTablistController, type RovingTablistOptions, type RuleScoringContext, type RuntypeClientChatRequest, type RuntypeClientChatStreamEvent, type RuntypeClientFeedbackRequest, type RuntypeClientFeedbackResponse, type RuntypeClientFeedbackType, type RuntypeClientInitRequest, type RuntypeClientInitResponse, type RuntypeClientResumeRequest, type RuntypeClientResumeStreamEvent, type RuntypeExecutionStreamEvent, type RuntypeFlowSSEEvent, type RuntypeStepCompleteEvent, type RuntypeStopReasonKind, type RuntypeStreamEventOf, type RuntypeTurnCompleteEvent, type SSEEventCallback, type SSEEventRecord, SUGGEST_REPLIES_CLIENT_TOOL, SUGGEST_REPLIES_PARAMETERS_SCHEMA, SUGGEST_REPLIES_TOOL_NAME, type SanitizeFunction, type SemanticColors, type SemanticSpacing, type SemanticTypography, type ShadowScale, type SlashCommandDefinition, type SlotRenderContext, type SlotRenderer, type SpacingScale, type SpeechCallbacks, type SpeechEngine, type SpeechRequest, type StreamAnimationContext, type StreamAnimationPlugin, THEME_ZONES, type TargetResolver, type TextContentPart, type TextStyleTokens, type ThemeValidationError, type ThemeValidationResult, type ThemeZone, type ToggleGroupHandle, type ToggleGroupItem, type ToggleGroupTokens, type TokenReference, type TypographyScale, VERSION, type VoiceConfig, type VoiceMetrics, type VoicePlaybackEngine, type VoiceProvider, type VoiceResult, type VoiceStatus, WEBMCP_TOOL_PREFIX, WebMcpBridge, type WebMcpConfirmHandler, type WebMcpConfirmInfo, type WebMcpToolResult, type WidgetArtifactLayoutPreference, type WidgetHostLayout, type WidgetHostLayoutMode, type WidgetLayoutSlot, type WidgetPreferenceCapabilities, type WidgetPreferenceParseIssue, type WidgetPreferenceParseIssueCode, type WidgetPreferenceParseResult, type WidgetPreferenceSlice, type WidgetPreset, accessibilityPlugin, animationsPlugin, applyFeaturePreferences, applyThemeVariables, attachHeaderToContainer, brandPlugin, buildComposer, buildDefaultHeader, buildHeader, buildHeaderWithLayout, buildMinimalHeader, builtInClientToolsForDispatch, canonicalArtifactDisplayMode, collectEnrichedPageContext, componentRegistry, createActionManager, createAgentExperience, createAskUserQuestionBubble, createBestAvailableVoiceProvider, createBubbleWithLayout, createCSATFeedback, createComboButton, createComponentMiddleware, createComponentStreamParser, createDefaultSanitizer, createDemoCarousel, createDirectivePostprocessor, createDropdownMenu, createFlexibleJsonStreamParser, createIconButton, createImagePart, createJsonStreamParser, createLabelButton, createLocalStorageAdapter, createMarkdownProcessor, createMarkdownProcessorFromConfig, createMessageActions, createNPSFeedback, createPlainTextParser, createPlugin, createRegexJsonParser, createRovingTablist, createSlashCommandsSource, createSplitButton, createStandardBubble, createStaticMentionSource, createTextPart, createTheme, createThemeObserver, createToggleGroup, createTypingIndicator, createVoiceProvider, createWidgetHostLayout, createXmlParser, initAgentWidget as default, defaultActionHandlers, defaultJsonActionParser, defaultMentionFilter, defaultParseRules, detectColorScheme, directivePostprocessor, ensureAskUserQuestionSheet, escapeHtml, extractComponentDirectiveFromMessage, fileToImagePart, formatEnrichedContext, generateAssistantMessageId, generateCodeSnippet, generateMessageId, generateStableSelector, generateUserMessageId, getActiveTheme, getColorScheme, getDisplayText, getHeaderLayout, getImageParts, getPreset, hasComponentDirective, hasImages, headerLayouts, highContrastPlugin, initAgentWidget, isAskUserQuestionMessage, isComponentDirectiveType, isDockedMountMode, isHistoryProviderError, isSuggestRepliesMessage, isVoiceSupported, isWebMcpToolName, isWelcomeVisible, latestAgentSuggestions, listRegisteredStreamAnimations, loadMarkdownParsers, markdownPostprocessor, mergeWithDefaults, normalizeContent, normalizeMediaType, onMarkdownParsersReady, parseAskUserQuestionPayload, parseSuggestRepliesPayload, parseWidgetPreferenceSlice, pickBestVoice, pluginRegistry, reducedMotionPlugin, registerIcons, registerStreamAnimationPlugin, removeAskUserQuestionSheet, renderComponentDirective, renderLoadingIndicatorWithFallback, renderLucideIcon, resolveArtifactDisplay, resolveArtifactDisplayMode, resolveConfigPreferences, resolveDockConfig, resolveSanitizer, resolveTokens, resolveWelcomeConfig, stripWebMcpPrefix, themeToCssVariables, unregisterStreamAnimationPlugin, validateImageFile, validateTheme };
14703
+ export { ASK_USER_QUESTION_CLIENT_TOOL, ASK_USER_QUESTION_PARAMETERS_SCHEMA, ASK_USER_QUESTION_TOOL_NAME, type AgentConfig, type AgentExecutionState, type AgentLoopConfig, type AgentMessageMetadata, type AgentRequestOptions, type AgentToolsConfig, type AgentWidgetActionContext, type AgentWidgetActionEventPayload, type AgentWidgetActionHandler, type AgentWidgetActionHandlerResult, type AgentWidgetActionParser, type AgentWidgetAgentRequestPayload, type AgentWidgetApproval, type AgentWidgetApprovalConfig, type AgentWidgetApprovalDecisionOptions, type AgentWidgetArtifactsFeature, type AgentWidgetArtifactsLayoutConfig, type AgentWidgetAskUserQuestionFeature, type AgentWidgetAskUserQuestionStyles, type AgentWidgetAttachmentAdapter, type AgentWidgetAttachmentsConfig, type AgentWidgetAvatarConfig, AgentWidgetClient, type AgentWidgetComponentRenderer, type AgentWidgetComposerConfig, type AgentWidgetConfig, type AgentWidgetConfigPatch, type AgentWidgetContextMentionChipRenderContext, type AgentWidgetContextMentionCommandContext, type AgentWidgetContextMentionComposerCapability, type AgentWidgetContextMentionConfig, type AgentWidgetContextMentionItem, type AgentWidgetContextMentionItemRenderContext, type AgentWidgetContextMentionMenuRenderContext, type AgentWidgetContextMentionPayload, type AgentWidgetContextMentionRef, type AgentWidgetContextMentionResolveContext, type AgentWidgetContextMentionSearchContext, type AgentWidgetContextMentionSource, type AgentWidgetContextMentionTokenRenderContext, type AgentWidgetContextProvider, type AgentWidgetContextProviderContext, type AgentWidgetController, type AgentWidgetControllerEventMap, type AgentWidgetCustomFetch, type AgentWidgetCustomMessageAction, type AgentWidgetCustomMessageActionRole, type AgentWidgetDockConfig, type AgentWidgetEvent, type AgentWidgetFeatureFlags, type AgentWidgetFollowUpSuggestionsConfig, type AgentWidgetHeaderLayoutConfig, type AgentWidgetHeadersFunction, type AgentWidgetHistoryCopy, type AgentWidgetHistoryFeature, type AgentWidgetHistoryListAction, type AgentWidgetHistoryRenderActions, type AgentWidgetInitHandle, type AgentWidgetInitOptions, type AgentWidgetLauncherConfig, type AgentWidgetLauncherTeaserConfig, type AgentWidgetLayoutConfig, type AgentWidgetLoadingIndicatorConfig, type AgentWidgetMarkdownConfig, type AgentWidgetMarkdownOptions, type AgentWidgetMarkdownRendererOverrides, type AgentWidgetMentionLlmEntry, type AgentWidgetMentionTriggerChannel, type AgentWidgetMentionTriggerPosition, type AgentWidgetMessage, type AgentWidgetMessageActionsConfig, type AgentWidgetMessageFeedback, type AgentWidgetMessageLayoutConfig, type AgentWidgetMessageRoleLayout, type AgentWidgetParsedAction, type AgentWidgetPlugin, type AgentWidgetPluginStorage, type AgentWidgetRailSection, type AgentWidgetRailSectionContext, type AgentWidgetReadAloudEvent, type AgentWidgetRenderHistoryConversationContext, type AgentWidgetRenderHistoryHeaderContext, type AgentWidgetRenderHistoryOpenErrorContext, type AgentWidgetRenderHistoryStateContext, type AgentWidgetRenderHistoryViewContext, type AgentWidgetRenderSuggestionContext, type AgentWidgetRenderWelcomeContext, type AgentWidgetRequestPayload, type AgentWidgetResolvedSuggestion, type AgentWidgetSSEEventParser, type AgentWidgetSSEEventResult, type AgentWidgetScrollBehaviorFeature, type AgentWidgetScrollMode, type AgentWidgetScrollRestorePosition, type AgentWidgetScrollToBottomFeature, AgentWidgetSession, type AgentWidgetSessionStatus, type AgentWidgetStarterSuggestionsConfig, type AgentWidgetStorageAdapter, type AgentWidgetStoredDraft, type AgentWidgetStoredState, type AgentWidgetStreamAnimationBuffer, type AgentWidgetStreamAnimationBuiltinType, type AgentWidgetStreamAnimationFeature, type AgentWidgetStreamAnimationPlaceholder, type AgentWidgetStreamAnimationType, type AgentWidgetStreamParser, type AgentWidgetStreamParserResult, type AgentWidgetSuggestion, type AgentWidgetSuggestionBehavior, type AgentWidgetSuggestionChipsConfig, type AgentWidgetSuggestionSelectContext, type AgentWidgetSuggestionSource, type AgentWidgetSuggestionSurface, type AgentWidgetSuggestionSurfaceConfig, type AgentWidgetSuggestionVariant, type AgentWidgetSuggestionsConfig, type AgentWidgetTimestampConfig, type AgentWidgetTooltipConfig, type AgentWidgetTransformSuggestionsContext, type AgentWidgetVoiceStatusEvent, type AgentWidgetWebMcpConfig, type AgentWidgetWelcomeAlign, type AgentWidgetWelcomeConfig, type AgentWidgetWelcomeDismiss, type AgentWidgetWelcomeIcon, type AgentWidgetWelcomeIconBase, type AgentWidgetWelcomeIconPlacement, type AgentWidgetWelcomeVariant, type ArtifactConfigPayload, type ArtifactPaneTokens, type ArtifactTabTokens, type ArtifactToolbarTokens, type AskUserQuestionOption, type AskUserQuestionPayload, type AskUserQuestionPrompt, AttachmentManager, type AttachmentManagerConfig, type AttachmentUploadContext, type BorderScale, BrowserSpeechEngine, type BrowserSpeechEngineOptions, type CSATFeedbackOptions, type ClientChatRequest, type ClientFeedbackRequest, type ClientFeedbackType, type ClientInitResponse, type ClientSession, type ClientToolDefinition, type ClientVisitorGrant, type CodeFormat, type CodeGeneratorHooks, type CodeGeneratorOptions, type ColorPalette, type ColorShade, type ComboButtonHandle, type ComponentContext, type ComponentDirective, type ComponentRegistrationOptions, type ComponentRenderer, type ComponentTokens, type ComposerAction, type ComposerActionBase, type ComposerActionContext, type ComposerActionContributionContext, type ComposerActionOverflowConfig, type ComposerActionPlacement, type ComposerActionPresentation, type ComposerActionRenderContext, type ComposerActionVisibility, type ComposerAttachmentState, type ComposerBeforeSendResult, type ComposerBuildContext, type ComposerButtonAction, type ComposerCustomAction, type ComposerDisabledOption, type ComposerElements, type ComposerInputAttributes, type ComposerLayout, type ComposerMode, type ComposerModeChipVisibility, type ComposerModeGroup, type ComposerModeGroupPresentation, type ComposerModel, type ComposerModelPickerConfig, type ComposerModelPickerPresentation, type ComposerPhase, type ComposerQuote, type ComposerResubmitOptions, type ComposerState, type ComposerStreamingSubmitBehavior, type ComposerSubmissionOptions, type ComposerSubmissionSnapshot, type ComposerSubmitKey, type ContentPart, type CreateComboButtonOptions, type CreateDropdownOptions, type CreateIconButtonOptions, type CreateLabelButtonOptions, type CreateStandardBubbleOptions, type CreateThemeOptions, type CreateToggleGroupOptions, DEFAULT_COMPONENTS, DEFAULT_FLOATING_LAUNCHER_MAX_WIDTH, DEFAULT_FLOATING_LAUNCHER_WIDTH, DEFAULT_PALETTE, DEFAULT_SEMANTIC, DEFAULT_WIDGET_CONFIG, type DeepPartial, type DemoCarouselHandle, type DemoCarouselItem, type DemoCarouselOptions, type DomContextMode, type DomContextOptions, type DropdownMenuHandle, type DropdownMenuItem, type EnrichedPageElement, type EventStreamBadgeColor, type EventStreamConfig, type EventStreamPayloadRenderContext, type EventStreamRowRenderContext, type EventStreamToolbarRenderContext, type EventStreamViewRenderContext, type FallbackSpeechEngineOptions, type FormatEnrichedContextOptions, type HeaderBuildContext, type HeaderElements, type HeaderLayoutContext, type HeaderLayoutRenderer, type HeaderRenderContext, type HistoryConversationDetail, type HistoryConversationPage, type HistoryConversationPatch, type HistoryConversationSummary, type HistoryDeleteAllOptions, type HistoryDisplayProjection, type HistoryIdentityStatus, type HistoryListOptions, type HistoryListResult, type HistoryOperationContext, type HistoryPageOptions, type HistoryPageResult, type HistoryPendingAction, type HistoryProvider, HistoryProviderError, type HistoryProviderErrorCode, type HistoryReturnSurface, type HistoryScope, type HistoryViewState, type IconButtonTokens, type IconName, type IdleIndicatorRenderContext, type ImageContentPart, type InjectAssistantMessageOptions, type InjectComponentDirectiveOptions, type InjectMessageOptions, type InjectSystemMessageOptions, type InjectUserMessageOptions, type LabelButtonTokens, type LoadingIndicatorRenderContext, type LoadingIndicatorRenderer, type MarkdownParsersModule, type MarkdownProcessorOptions, type MessageActionCallbacks, type MessageContent, type MessageRenderContext, type MessageTransform, type NPSFeedbackOptions, PRESETS, PRESET_FULLSCREEN, PRESET_MINIMAL, PRESET_SHOP, type ParseOptionsConfig, type ParseRule, type PcmStreamPlayer, type PendingAttachment, type PersonaArtifactActionContext, type PersonaArtifactCustomAction, type PersonaArtifactDisplayDescriptor, type PersonaArtifactDisplayMatch, type PersonaArtifactDisplayMode, type PersonaArtifactDisplayModeInput, type PersonaArtifactDisplayResolution, type PersonaArtifactDisplayRules, type PersonaArtifactFilesDisplayRules, type PersonaArtifactKind, type PersonaArtifactManualUpsert, type PersonaArtifactPresentation, type PersonaArtifactRecord, type PersonaArtifactStatusLabelContext, type PersonaTheme, type PersonaThemePlugin, type PreparedClientSession, type PreparedHistoryActivation, type RadiusScale, ReadAloudController, type ReadAloudListener, type ReadAloudState, type ResolvedHistoryCopy, type ResolvedHistoryPresentation, type ResolvedTarget, type ResolvedWelcomeConfig, type RovingTablistController, type RovingTablistOptions, type RuleScoringContext, type RuntypeClientChatRequest, type RuntypeClientChatStreamEvent, type RuntypeClientFeedbackRequest, type RuntypeClientFeedbackResponse, type RuntypeClientFeedbackType, type RuntypeClientInitRequest, type RuntypeClientInitResponse, type RuntypeClientResumeRequest, type RuntypeClientResumeStreamEvent, type RuntypeExecutionStreamEvent, type RuntypeFlowSSEEvent, type RuntypeStepCompleteEvent, type RuntypeStopReasonKind, type RuntypeStreamEventOf, type RuntypeTurnCompleteEvent, type SSEEventCallback, type SSEEventRecord, SUGGEST_REPLIES_CLIENT_TOOL, SUGGEST_REPLIES_PARAMETERS_SCHEMA, SUGGEST_REPLIES_TOOL_NAME, type SanitizeFunction, type SemanticColors, type SemanticSpacing, type SemanticTypography, type ShadowScale, type SlashCommandDefinition, type SlotRenderContext, type SlotRenderer, type SpacingScale, type SpeechCallbacks, type SpeechEngine, type SpeechRequest, type StreamAnimationContext, type StreamAnimationPlugin, THEME_ZONES, type TargetResolver, type TextContentPart, type TextStyleTokens, type ThemeValidationError, type ThemeValidationResult, type ThemeZone, type ToggleGroupHandle, type ToggleGroupItem, type ToggleGroupTokens, type TokenReference, type TypographyScale, VERSION, type VoiceConfig, type VoiceMetrics, type VoicePlaybackEngine, type VoiceProvider, type VoiceResult, type VoiceStatus, WEBMCP_TOOL_PREFIX, WebMcpBridge, type WebMcpConfirmHandler, type WebMcpConfirmInfo, type WebMcpToolResult, type WidgetArtifactLayoutPreference, type WidgetHostLayout, type WidgetHostLayoutMode, type WidgetLayoutSlot, type WidgetPreferenceCapabilities, type WidgetPreferenceParseIssue, type WidgetPreferenceParseIssueCode, type WidgetPreferenceParseResult, type WidgetPreferenceSlice, type WidgetPreset, accessibilityPlugin, animationsPlugin, applyFeaturePreferences, applyThemeVariables, attachHeaderToContainer, brandPlugin, buildComposer, buildDefaultHeader, buildHeader, buildHeaderWithLayout, buildMinimalHeader, builtInClientToolsForDispatch, canonicalArtifactDisplayMode, collectEnrichedPageContext, componentRegistry, createActionManager, createAgentExperience, createAskUserQuestionBubble, createBestAvailableVoiceProvider, createBubbleWithLayout, createCSATFeedback, createComboButton, createComponentMiddleware, createComponentStreamParser, createDefaultSanitizer, createDemoCarousel, createDirectivePostprocessor, createDropdownMenu, createFlexibleJsonStreamParser, createIconButton, createImagePart, createJsonStreamParser, createLabelButton, createLocalStorageAdapter, createMarkdownProcessor, createMarkdownProcessorFromConfig, createMessageActions, createNPSFeedback, createPlainTextParser, createPlugin, createRegexJsonParser, createRovingTablist, createSlashCommandsSource, createSplitButton, createStandardBubble, createStaticMentionSource, createTextPart, createTheme, createThemeObserver, createToggleGroup, createTypingIndicator, createVoiceProvider, createWidgetHostLayout, createXmlParser, initAgentWidget as default, defaultActionHandlers, defaultJsonActionParser, defaultMentionFilter, defaultParseRules, detectColorScheme, directivePostprocessor, ensureAskUserQuestionSheet, escapeHtml, extractComponentDirectiveFromMessage, fileToImagePart, formatEnrichedContext, generateAssistantMessageId, generateCodeSnippet, generateMessageId, generateStableSelector, generateUserMessageId, getActiveTheme, getAgentWidgetHandles, getColorScheme, getDisplayText, getHeaderLayout, getImageParts, getPreset, hasComponentDirective, hasImages, headerLayouts, highContrastPlugin, initAgentWidget, isAskUserQuestionMessage, isComponentDirectiveType, isDockedMountMode, isHistoryProviderError, isSuggestRepliesMessage, isVoiceSupported, isWebMcpToolName, isWelcomeVisible, latestAgentSuggestions, listRegisteredStreamAnimations, loadMarkdownParsers, markdownPostprocessor, mergeWithDefaults, normalizeContent, normalizeMediaType, onMarkdownParsersReady, parseAskUserQuestionPayload, parseSuggestRepliesPayload, parseWidgetPreferenceSlice, pickBestVoice, pluginRegistry, reducedMotionPlugin, registerIcons, registerStreamAnimationPlugin, removeAskUserQuestionSheet, renderComponentDirective, renderLoadingIndicatorWithFallback, renderLucideIcon, resolveArtifactDisplay, resolveArtifactDisplayMode, resolveConfigPreferences, resolveDockConfig, resolveSanitizer, resolveTokens, resolveWelcomeConfig, stripWebMcpPrefix, themeToCssVariables, unregisterStreamAnimationPlugin, validateImageFile, validateTheme };