@runtypelabs/persona 4.10.0 → 4.11.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 (61) 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-4ROVJ1gA.d.cts → types-DveIaNx6.d.cts} +11 -316
  4. package/dist/animations/{types-4ROVJ1gA.d.ts → types-DveIaNx6.d.ts} +11 -316
  5. package/dist/animations/wipe.d.cts +1 -1
  6. package/dist/animations/wipe.d.ts +1 -1
  7. package/dist/chunk-MMUPR2JW.js +1 -0
  8. package/dist/codegen.cjs +1 -1
  9. package/dist/codegen.js +1 -1
  10. package/dist/{context-mentions-7S5KVUTG.js → context-mentions-ONG7A7M6.js} +1 -1
  11. package/dist/context-mentions.d.cts +35 -316
  12. package/dist/context-mentions.d.ts +35 -316
  13. package/dist/index.cjs +67 -67
  14. package/dist/index.cjs.map +1 -1
  15. package/dist/index.d.cts +40 -317
  16. package/dist/index.d.ts +40 -317
  17. package/dist/index.global.js +55 -55
  18. package/dist/index.global.js.map +1 -1
  19. package/dist/index.js +78 -78
  20. package/dist/index.js.map +1 -1
  21. package/dist/smart-dom-reader.d.cts +35 -316
  22. package/dist/smart-dom-reader.d.ts +35 -316
  23. package/dist/theme-editor-preview.cjs +66 -66
  24. package/dist/theme-editor-preview.d.cts +35 -316
  25. package/dist/theme-editor-preview.d.ts +35 -316
  26. package/dist/theme-editor-preview.js +55 -55
  27. package/dist/theme-editor.cjs +5 -5
  28. package/dist/theme-editor.d.cts +35 -316
  29. package/dist/theme-editor.d.ts +35 -316
  30. package/dist/theme-editor.js +9 -9
  31. package/dist/widget.css +1 -1
  32. package/package.json +1 -1
  33. package/src/components/approval-bubble.ts +0 -1
  34. package/src/components/composer-parts.ts +19 -19
  35. package/src/components/context-mention-button.test.ts +5 -1
  36. package/src/components/context-mention-button.ts +6 -4
  37. package/src/components/header-builder.test.ts +3 -3
  38. package/src/components/header-parts.ts +14 -108
  39. package/src/components/message-bubble.test.ts +49 -0
  40. package/src/components/message-bubble.ts +8 -7
  41. package/src/components/reasoning-bubble.ts +0 -2
  42. package/src/components/tool-bubble.ts +0 -2
  43. package/src/generated/runtype-openapi-contract.ts +11 -317
  44. package/src/index-core.ts +7 -1
  45. package/src/runtime/host-layout.test.ts +94 -0
  46. package/src/runtime/host-layout.ts +9 -1
  47. package/src/runtime/init.test.ts +33 -0
  48. package/src/runtime/init.ts +4 -0
  49. package/src/styles/widget.css +118 -58
  50. package/src/theme-editor/sections.test.ts +33 -0
  51. package/src/theme-editor/sections.ts +10 -1
  52. package/src/types.ts +25 -0
  53. package/src/ui.attachments-drop.test.ts +2 -1
  54. package/src/ui.message-width.test.ts +407 -0
  55. package/src/ui.mount-fill-min-width.test.ts +81 -0
  56. package/src/ui.ts +158 -238
  57. package/src/utils/table-scroll-fade.test.ts +123 -0
  58. package/src/utils/table-scroll-fade.ts +75 -0
  59. package/src/utils/tooltip.test.ts +226 -0
  60. package/src/utils/tooltip.ts +245 -0
  61. package/dist/chunk-IPVK3KOM.js +0 -1
package/dist/index.d.ts CHANGED
@@ -875,6 +875,10 @@ type RuntypeExecutionStreamEvent = ({
875
875
  completedAt?: string;
876
876
  durationMs?: number;
877
877
  executionId: string;
878
+ externalAgent?: {
879
+ contextId?: string;
880
+ taskId?: string;
881
+ };
878
882
  failedSteps?: number;
879
883
  finalOutput?: string;
880
884
  iterations?: number;
@@ -889,6 +893,7 @@ type RuntypeExecutionStreamEvent = ({
889
893
  input: number;
890
894
  output: number;
891
895
  };
896
+ totalTokensUsed?: number;
892
897
  type: "execution_complete";
893
898
  }) | ({
894
899
  blockReason?: string;
@@ -1148,12 +1153,17 @@ type RuntypeExecutionStreamEvent = ({
1148
1153
  stepId?: string;
1149
1154
  success: boolean;
1150
1155
  toolCallId: string;
1156
+ toolCost?: number;
1151
1157
  toolName?: string;
1152
1158
  type: "tool_complete";
1153
1159
  } | {
1154
1160
  approvalId: string;
1155
1161
  description?: string;
1156
1162
  executionId: string;
1163
+ externalAgent?: {
1164
+ contextId?: string;
1165
+ taskId?: string;
1166
+ };
1157
1167
  iteration?: number;
1158
1168
  parameters?: Record<string, unknown>;
1159
1169
  reason?: string;
@@ -1221,326 +1231,11 @@ type RuntypeExecutionStreamEvent = ({
1221
1231
  type: "custom";
1222
1232
  value?: unknown;
1223
1233
  };
1224
- type RuntypeFlowSSEEvent = {
1225
- executionContext?: Record<string, unknown>;
1226
- executionId?: string;
1227
- flowId: string;
1228
- flowName?: string;
1229
- input?: unknown;
1230
- seq?: number;
1231
- source?: string;
1232
- startedAt: string;
1233
- toolContext?: {
1234
- executionId: string;
1235
- stepId: string;
1236
- toolId: string;
1237
- };
1238
- totalSteps?: number;
1239
- type: "flow_start";
1240
- } | {
1241
- claudeManagedAgentId?: string;
1242
- completedAt?: string;
1243
- completedSteps?: number;
1244
- duration?: number;
1245
- executionContext?: Record<string, unknown>;
1246
- executionId?: string;
1247
- executionTime?: number;
1248
- failedSteps?: number;
1249
- finalOutput?: string;
1250
- flowId?: string;
1251
- flowName?: string;
1252
- output?: unknown;
1253
- seq?: number;
1254
- source?: string;
1255
- success?: boolean;
1256
- successfulSteps?: number;
1257
- toolContext?: {
1258
- executionId: string;
1259
- stepId: string;
1260
- toolId: string;
1261
- };
1262
- totalSteps?: number;
1263
- totalTokensUsed?: number;
1264
- type: "flow_complete";
1265
- } | ({
1266
- blockReason?: string;
1267
- code?: string;
1268
- error: string | {
1269
- code: string;
1270
- message: string;
1271
- stepId?: string;
1272
- stepType?: string;
1273
- };
1274
- executionId?: string;
1275
- executionTime?: number;
1276
- flowId?: string;
1277
- seq?: number;
1278
- timestamp?: string;
1279
- toolContext?: {
1280
- executionId: string;
1281
- stepId: string;
1282
- toolId: string;
1283
- };
1284
- type: "flow_error";
1285
- upgradeUrl?: string;
1286
- }) | ({
1287
- approvalId?: string;
1288
- awaitReason?: string;
1289
- awaitedAt: string;
1290
- crawlId?: string;
1291
- elicitation?: {
1292
- message: string;
1293
- mode: "form" | "url";
1294
- pauseCount?: number;
1295
- requestedSchema?: Record<string, unknown>;
1296
- serverName?: string;
1297
- url?: string;
1298
- };
1299
- executionId?: string;
1300
- flowId: string;
1301
- origin?: "webmcp" | "sdk";
1302
- pageOrigin?: string;
1303
- parameters?: Record<string, unknown>;
1304
- seq?: number;
1305
- stepId?: string;
1306
- timeout?: number;
1307
- toolCallId?: string;
1308
- toolId?: string;
1309
- toolName?: string;
1310
- type: "flow_await";
1311
- }) | {
1312
- estimatedTokens?: number;
1313
- executionId?: string;
1314
- id?: string;
1315
- index?: number;
1316
- name?: string;
1317
- outputVariable?: string;
1318
- seq?: number;
1319
- startedAt: string;
1320
- stepId?: string;
1321
- stepName?: string;
1322
- stepType?: string;
1323
- toolContext?: {
1324
- executionId: string;
1325
- stepId: string;
1326
- toolId: string;
1327
- };
1328
- totalSteps?: number;
1329
- type: "step_start";
1330
- } | {
1331
- delta?: string;
1332
- executionId?: string;
1333
- id?: string;
1334
- messageId?: string;
1335
- partId?: string;
1336
- seq?: number;
1337
- text?: string;
1338
- toolContext?: {
1339
- executionId: string;
1340
- stepId: string;
1341
- toolId: string;
1342
- };
1343
- toolId?: string;
1344
- type: "step_delta";
1345
- } | ({
1346
- completedAt?: string;
1347
- duration?: number;
1348
- durationMs?: number;
1349
- error?: string | null;
1350
- executionId?: string;
1351
- executionTime?: number;
1352
- id?: string;
1353
- index?: number;
1354
- name?: string;
1355
- output?: unknown;
1356
- result?: unknown;
1357
- seq?: number;
1358
- stepId?: string;
1359
- stepName?: string;
1360
- stepType?: string;
1361
- stopReason?: "end_turn" | "max_tool_calls" | "length" | "content_filter" | "error" | "unknown";
1362
- success?: boolean;
1363
- tokensUsed?: number;
1364
- toolContext?: {
1365
- executionId: string;
1366
- stepId: string;
1367
- toolId: string;
1368
- };
1369
- type: "step_complete";
1370
- unresolvedVariables?: Array<string>;
1371
- }) | {
1372
- error: string;
1373
- executionId?: string;
1374
- executionTime?: number;
1375
- id?: string;
1376
- index?: number;
1377
- name?: string;
1378
- seq?: number;
1379
- stepType?: string;
1380
- type: "step_error";
1381
- } | {
1382
- error?: string;
1383
- executionId?: string;
1384
- id: string;
1385
- index?: number;
1386
- name?: string;
1387
- seq?: number;
1388
- skippedAt: string;
1389
- stepType: string;
1390
- totalSteps: number;
1391
- type: "step_skip";
1392
- when: string;
1393
- } | ({
1394
- elicitation?: {
1395
- message: string;
1396
- mode: "form" | "url";
1397
- pauseCount?: number;
1398
- requestedSchema?: Record<string, unknown>;
1399
- serverName?: string;
1400
- url?: string;
1401
- };
1402
- executionId?: string;
1403
- reason?: string;
1404
- seq?: number;
1405
- type: "step_await";
1406
- [key: string]: unknown;
1407
- }) | ({
1408
- agentContext?: {
1409
- executionId: string;
1410
- iteration: number;
1411
- seq: number;
1412
- };
1413
- executionId?: string;
1414
- hiddenParameterNames?: Array<string>;
1415
- name?: string;
1416
- parameters?: Record<string, unknown>;
1417
- providerOptions?: Record<string, unknown>;
1418
- seq?: number;
1419
- startedAt?: string;
1420
- stepId?: string;
1421
- toolCallId?: string;
1422
- toolId?: string;
1423
- toolName?: string;
1424
- toolType: "flow" | "mcp" | "builtin" | "custom" | "external" | "advisor" | "subagent" | "local";
1425
- type: "tool_start";
1426
- [key: string]: unknown;
1427
- }) | {
1428
- delta?: string;
1429
- executionId?: string;
1430
- seq?: number;
1431
- toolId?: string;
1432
- type: "tool_delta";
1433
- [key: string]: unknown;
1434
- } | {
1435
- delta: string;
1436
- executionId?: string;
1437
- seq?: number;
1438
- stepId?: string;
1439
- toolCallId?: string;
1440
- toolId?: string;
1441
- type: "tool_input_delta";
1442
- } | {
1443
- executionId?: string;
1444
- hiddenParameterNames?: Array<string>;
1445
- parameters: Record<string, unknown>;
1446
- providerOptions?: Record<string, unknown>;
1447
- seq?: number;
1448
- stepId?: string;
1449
- toolCallId?: string;
1450
- toolId?: string;
1451
- toolName?: string;
1452
- type: "tool_input_complete";
1453
- } | {
1454
- agentContext?: {
1455
- executionId: string;
1456
- iteration: number;
1457
- seq: number;
1458
- };
1459
- completedAt?: string;
1460
- error?: string;
1461
- executionId?: string;
1462
- executionTime?: number;
1463
- name?: string;
1464
- result?: unknown;
1465
- seq?: number;
1466
- stepId?: string;
1467
- success: boolean;
1468
- toolCallId?: string;
1469
- toolCost?: number;
1470
- toolId?: string;
1471
- toolName?: string;
1472
- type: "tool_complete";
1473
- } | {
1474
- agentContext?: {
1475
- executionId: string;
1476
- iteration: number;
1477
- seq: number;
1478
- };
1479
- error: string;
1480
- executionId?: string;
1481
- executionTime?: number;
1482
- failedAt?: string;
1483
- name: string;
1484
- seq?: number;
1485
- toolId: string;
1486
- type: "tool_error";
1487
- } | {
1488
- executionId?: string;
1489
- id: string;
1490
- seq?: number;
1491
- text: string;
1492
- type: "chunk";
1493
- } | {
1494
- executionId?: string;
1495
- seq?: number;
1496
- type: "text_start";
1497
- [key: string]: unknown;
1498
- } | {
1499
- executionId?: string;
1500
- seq?: number;
1501
- type: "text_end";
1502
- [key: string]: unknown;
1503
- } | {
1504
- executionId?: string;
1505
- seq?: number;
1506
- type: "reason_start";
1507
- [key: string]: unknown;
1508
- } | {
1509
- executionId?: string;
1510
- seq?: number;
1511
- type: "reason_delta";
1512
- [key: string]: unknown;
1513
- } | {
1514
- executionId?: string;
1515
- seq?: number;
1516
- type: "reason_complete";
1517
- [key: string]: unknown;
1518
- } | {
1519
- executionId?: string;
1520
- seq?: number;
1521
- type: "source";
1522
- [key: string]: unknown;
1523
- } | {
1524
- executionId?: string;
1525
- seq?: number;
1526
- type: "fallback_start";
1527
- [key: string]: unknown;
1528
- } | {
1529
- executionId?: string;
1530
- seq?: number;
1531
- type: "fallback_complete";
1532
- [key: string]: unknown;
1533
- } | {
1534
- executionId?: string;
1535
- seq?: number;
1536
- type: "fallback_exhausted";
1537
- [key: string]: unknown;
1538
- };
1539
1234
  type RuntypeStreamEventOf<U, T extends string> = Extract<U, {
1540
1235
  type: T;
1541
1236
  }>;
1542
1237
  type RuntypeTurnCompleteEvent = RuntypeStreamEventOf<RuntypeExecutionStreamEvent, "turn_complete">;
1543
- type RuntypeStepCompleteEvent = RuntypeStreamEventOf<RuntypeFlowSSEEvent, "step_complete">;
1238
+ type RuntypeStepCompleteEvent = RuntypeStreamEventOf<RuntypeExecutionStreamEvent, "step_complete">;
1544
1239
  type RuntypeStopReasonKind = NonNullable<RuntypeTurnCompleteEvent["stopReason"] | RuntypeStepCompleteEvent["stopReason"]>;
1545
1240
  type RuntypeClientInitRequest = {
1546
1241
  flowId?: string;
@@ -5556,6 +5251,26 @@ type AgentWidgetTimestampConfig = {
5556
5251
  /** Custom formatter for timestamp display */
5557
5252
  format?: (date: Date) => string;
5558
5253
  };
5254
+ /**
5255
+ * Width configuration for one message role.
5256
+ *
5257
+ * `content` shrink-wraps the rendered message up to `maxWidth`; `full` fills
5258
+ * the available transcript track up to `maxWidth`. The track already accounts
5259
+ * for transcript padding and, when present, the avatar and its gap.
5260
+ */
5261
+ type AgentWidgetMessageRoleLayout = {
5262
+ /**
5263
+ * Message width behavior.
5264
+ * - content: size to the rendered content (the backward-compatible default)
5265
+ * - full: fill the available transcript track
5266
+ */
5267
+ width?: "content" | "full";
5268
+ /**
5269
+ * Optional CSS max-width (for example "80%", "42rem", or "72ch").
5270
+ * Defaults to "85%" for content width and "100%" for full width.
5271
+ */
5272
+ maxWidth?: string;
5273
+ };
5559
5274
  /**
5560
5275
  * Message layout configuration
5561
5276
  * Allows customization of how chat messages are displayed
@@ -5574,6 +5289,10 @@ type AgentWidgetMessageLayoutConfig = {
5574
5289
  timestamp?: AgentWidgetTimestampConfig;
5575
5290
  /** Group consecutive messages from the same role */
5576
5291
  groupConsecutive?: boolean;
5292
+ /** Width behavior for user-authored message rows */
5293
+ user?: AgentWidgetMessageRoleLayout;
5294
+ /** Width behavior for assistant-authored message rows and assistant UI variants */
5295
+ assistant?: AgentWidgetMessageRoleLayout;
5577
5296
  /**
5578
5297
  * Custom renderer for user messages
5579
5298
  * When provided, replaces the default user message rendering
@@ -10399,6 +10118,10 @@ declare const getHeaderLayout: (layoutName: string) => HeaderLayoutRenderer;
10399
10118
  */
10400
10119
  declare const buildHeaderWithLayout: (config: AgentWidgetConfig, layoutConfig?: AgentWidgetHeaderLayoutConfig, context?: Partial<HeaderLayoutContext>) => HeaderElements;
10401
10120
 
10121
+ /** @deprecated FlowSSEEvent was folded into the unified ExecutionStreamEvent
10122
+ * (Runtype PR #5722). Use RuntypeExecutionStreamEvent instead. */
10123
+ type RuntypeFlowSSEEvent = RuntypeExecutionStreamEvent;
10124
+
10402
10125
  type CodeFormat = "esm" | "script-installer" | "script-manual" | "script-advanced" | "react-component" | "react-advanced";
10403
10126
  /**
10404
10127
  * Hook code templates for code generation.
@@ -10624,4 +10347,4 @@ interface RovingTablistController {
10624
10347
  }
10625
10348
  declare function createRovingTablist(container: HTMLElement, options: RovingTablistOptions): RovingTablistController;
10626
10349
 
10627
- 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 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 AgentWidgetDockConfig, type AgentWidgetEvent, type AgentWidgetFeatureFlags, type AgentWidgetHeaderLayoutConfig, type AgentWidgetHeadersFunction, type AgentWidgetInitHandle, type AgentWidgetInitOptions, type AgentWidgetLauncherConfig, 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 AgentWidgetParsedAction, type AgentWidgetPlugin, type AgentWidgetReadAloudEvent, type AgentWidgetRequestPayload, type AgentWidgetSSEEventParser, type AgentWidgetSSEEventResult, type AgentWidgetScrollBehaviorFeature, type AgentWidgetScrollMode, type AgentWidgetScrollRestorePosition, type AgentWidgetScrollToBottomFeature, AgentWidgetSession, type AgentWidgetSessionStatus, type AgentWidgetStreamAnimationBuffer, type AgentWidgetStreamAnimationBuiltinType, type AgentWidgetStreamAnimationFeature, type AgentWidgetStreamAnimationPlaceholder, type AgentWidgetStreamAnimationType, type AgentWidgetStreamParser, type AgentWidgetStreamParserResult, type AgentWidgetTimestampConfig, type AgentWidgetVoiceStatusEvent, type AgentWidgetWebMcpConfig, type ArtifactConfigPayload, type ArtifactPaneTokens, type ArtifactTabTokens, type ArtifactToolbarTokens, type AskUserQuestionOption, type AskUserQuestionPayload, type AskUserQuestionPrompt, AttachmentManager, type AttachmentManagerConfig, type BorderScale, BrowserSpeechEngine, type BrowserSpeechEngineOptions, type CSATFeedbackOptions, type ClientChatRequest, type ClientFeedbackRequest, type ClientFeedbackType, type ClientInitResponse, type ClientSession, type ClientToolDefinition, type CodeFormat, type CodeGeneratorHooks, type CodeGeneratorOptions, type ColorPalette, type ColorShade, type ComboButtonHandle, type ComponentContext, type ComponentDirective, type ComponentRegistrationOptions, type ComponentRenderer, type ComponentTokens, type ComposerBuildContext, type ComposerElements, 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 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 PersonaArtifactDisplayMode, type PersonaArtifactKind, type PersonaArtifactManualUpsert, type PersonaArtifactRecord, type PersonaArtifactStatusLabelContext, type PersonaTheme, type PersonaThemePlugin, type RadiusScale, ReadAloudController, type ReadAloudListener, type ReadAloudState, type ResolvedTarget, 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 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 WidgetHostLayout, type WidgetHostLayoutMode, type WidgetLayoutSlot, type WidgetPreset, accessibilityPlugin, animationsPlugin, applyThemeVariables, attachHeaderToContainer, brandPlugin, buildComposer, buildDefaultHeader, buildHeader, buildHeaderWithLayout, buildMinimalHeader, builtInClientToolsForDispatch, 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, 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, isSuggestRepliesMessage, isVoiceSupported, isWebMcpToolName, latestAgentSuggestions, listRegisteredStreamAnimations, loadMarkdownParsers, markdownPostprocessor, mergeWithDefaults, normalizeContent, onMarkdownParsersReady, parseAskUserQuestionPayload, parseSuggestRepliesPayload, pickBestVoice, pluginRegistry, reducedMotionPlugin, registerStreamAnimationPlugin, removeAskUserQuestionSheet, renderComponentDirective, renderLoadingIndicatorWithFallback, renderLucideIcon, resolveDockConfig, resolveSanitizer, resolveTokens, stripWebMcpPrefix, themeToCssVariables, unregisterStreamAnimationPlugin, validateImageFile, validateTheme };
10350
+ 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 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 AgentWidgetDockConfig, type AgentWidgetEvent, type AgentWidgetFeatureFlags, type AgentWidgetHeaderLayoutConfig, type AgentWidgetHeadersFunction, type AgentWidgetInitHandle, type AgentWidgetInitOptions, type AgentWidgetLauncherConfig, 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 AgentWidgetReadAloudEvent, type AgentWidgetRequestPayload, type AgentWidgetSSEEventParser, type AgentWidgetSSEEventResult, type AgentWidgetScrollBehaviorFeature, type AgentWidgetScrollMode, type AgentWidgetScrollRestorePosition, type AgentWidgetScrollToBottomFeature, AgentWidgetSession, type AgentWidgetSessionStatus, type AgentWidgetStreamAnimationBuffer, type AgentWidgetStreamAnimationBuiltinType, type AgentWidgetStreamAnimationFeature, type AgentWidgetStreamAnimationPlaceholder, type AgentWidgetStreamAnimationType, type AgentWidgetStreamParser, type AgentWidgetStreamParserResult, type AgentWidgetTimestampConfig, type AgentWidgetVoiceStatusEvent, type AgentWidgetWebMcpConfig, type ArtifactConfigPayload, type ArtifactPaneTokens, type ArtifactTabTokens, type ArtifactToolbarTokens, type AskUserQuestionOption, type AskUserQuestionPayload, type AskUserQuestionPrompt, AttachmentManager, type AttachmentManagerConfig, type BorderScale, BrowserSpeechEngine, type BrowserSpeechEngineOptions, type CSATFeedbackOptions, type ClientChatRequest, type ClientFeedbackRequest, type ClientFeedbackType, type ClientInitResponse, type ClientSession, type ClientToolDefinition, type CodeFormat, type CodeGeneratorHooks, type CodeGeneratorOptions, type ColorPalette, type ColorShade, type ComboButtonHandle, type ComponentContext, type ComponentDirective, type ComponentRegistrationOptions, type ComponentRenderer, type ComponentTokens, type ComposerBuildContext, type ComposerElements, 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 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 PersonaArtifactDisplayMode, type PersonaArtifactKind, type PersonaArtifactManualUpsert, type PersonaArtifactRecord, type PersonaArtifactStatusLabelContext, type PersonaTheme, type PersonaThemePlugin, type RadiusScale, ReadAloudController, type ReadAloudListener, type ReadAloudState, type ResolvedTarget, 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 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 WidgetHostLayout, type WidgetHostLayoutMode, type WidgetLayoutSlot, type WidgetPreset, accessibilityPlugin, animationsPlugin, applyThemeVariables, attachHeaderToContainer, brandPlugin, buildComposer, buildDefaultHeader, buildHeader, buildHeaderWithLayout, buildMinimalHeader, builtInClientToolsForDispatch, 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, 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, isSuggestRepliesMessage, isVoiceSupported, isWebMcpToolName, latestAgentSuggestions, listRegisteredStreamAnimations, loadMarkdownParsers, markdownPostprocessor, mergeWithDefaults, normalizeContent, onMarkdownParsersReady, parseAskUserQuestionPayload, parseSuggestRepliesPayload, pickBestVoice, pluginRegistry, reducedMotionPlugin, registerStreamAnimationPlugin, removeAskUserQuestionSheet, renderComponentDirective, renderLoadingIndicatorWithFallback, renderLucideIcon, resolveDockConfig, resolveSanitizer, resolveTokens, stripWebMcpPrefix, themeToCssVariables, unregisterStreamAnimationPlugin, validateImageFile, validateTheme };