@copilotkit/react-core 2.0.0-rc.41 → 2.0.0-rc.43

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 (67) hide show
  1. package/dist/{MarkdownRendererContext-BL8ct_3U.d.mts → MarkdownRendererContext-CytkPOAJ.d.mts} +1 -1
  2. package/dist/{MarkdownRendererContext-BL8ct_3U.d.mts.map → MarkdownRendererContext-CytkPOAJ.d.mts.map} +1 -1
  3. package/dist/MarkdownSurfaces-DlYqJkAE.mjs +135 -0
  4. package/dist/MarkdownSurfaces-DlYqJkAE.mjs.map +1 -0
  5. package/dist/MarkdownSurfaces-DytbRzj2.cjs +141 -0
  6. package/dist/MarkdownSurfaces-DytbRzj2.cjs.map +1 -0
  7. package/dist/{MarkdownSurfaces-Byz821bg.mjs → ProviderMarkdown-BZaPDROY.mjs} +6 -132
  8. package/dist/ProviderMarkdown-BZaPDROY.mjs.map +1 -0
  9. package/dist/{MarkdownSurfaces-D2Ck-cbb.cjs → ProviderMarkdown-i_i2osOH.cjs} +4 -136
  10. package/dist/ProviderMarkdown-i_i2osOH.cjs.map +1 -0
  11. package/dist/accessibility-BLK-gE0R.mjs +129 -0
  12. package/dist/accessibility-BLK-gE0R.mjs.map +1 -0
  13. package/dist/accessibility-GnodqxkH.cjs +228 -0
  14. package/dist/accessibility-GnodqxkH.cjs.map +1 -0
  15. package/dist/{chat-Bf0vVdo7.mjs → chat-B1zczXUD.mjs} +21 -145
  16. package/dist/chat-B1zczXUD.mjs.map +1 -0
  17. package/dist/{chat-DgP2N7bD.d.mts → chat-C5XWeO1M.d.mts} +1 -1
  18. package/dist/{chat-DgP2N7bD.d.mts.map → chat-C5XWeO1M.d.mts.map} +1 -1
  19. package/dist/{chat-D3fxo6Ah.cjs → chat-CkFZMo5E.cjs} +29 -234
  20. package/dist/chat-CkFZMo5E.cjs.map +1 -0
  21. package/dist/context.cjs +2 -2
  22. package/dist/context.cjs.map +1 -1
  23. package/dist/context.d.cts +2 -2
  24. package/dist/context.d.mts +2 -2
  25. package/dist/context.mjs +2 -2
  26. package/dist/context.mjs.map +1 -1
  27. package/dist/generative-ui/native.cjs +9 -8
  28. package/dist/generative-ui/native.cjs.map +1 -1
  29. package/dist/generative-ui/native.d.cts.map +1 -1
  30. package/dist/generative-ui/native.d.mts +2 -2
  31. package/dist/generative-ui/native.d.mts.map +1 -1
  32. package/dist/generative-ui/native.mjs +4 -3
  33. package/dist/generative-ui/native.mjs.map +1 -1
  34. package/dist/generative-ui.cjs +11 -5767
  35. package/dist/generative-ui.cjs.map +1 -1
  36. package/dist/generative-ui.d.mts +4 -4
  37. package/dist/generative-ui.mjs +8 -5764
  38. package/dist/generative-ui.mjs.map +1 -1
  39. package/dist/{hooks-BRYonCVu.d.mts → hooks-DqsOIh8A.d.mts} +3 -3
  40. package/dist/{hooks-BRYonCVu.d.mts.map → hooks-DqsOIh8A.d.mts.map} +1 -1
  41. package/dist/index.cjs +180 -681
  42. package/dist/index.cjs.map +1 -1
  43. package/dist/index.d.cts +9 -102
  44. package/dist/index.d.cts.map +1 -1
  45. package/dist/index.d.mts +11 -104
  46. package/dist/index.d.mts.map +1 -1
  47. package/dist/index.mjs +64 -407
  48. package/dist/index.mjs.map +1 -1
  49. package/dist/index.umd.js +6132 -795
  50. package/dist/index.umd.js.map +1 -1
  51. package/dist/{refs-BIUfn1wb.cjs → refs-B5Dn59Pn.cjs} +2 -2
  52. package/dist/{refs-BIUfn1wb.cjs.map → refs-B5Dn59Pn.cjs.map} +1 -1
  53. package/dist/{refs-CMrRm3ta.mjs → refs-BW15wX_V.mjs} +1 -1
  54. package/dist/{refs-CMrRm3ta.mjs.map → refs-BW15wX_V.mjs.map} +1 -1
  55. package/dist/standard-CqGTZUZy.cjs +5780 -0
  56. package/dist/standard-CqGTZUZy.cjs.map +1 -0
  57. package/dist/standard-s8jByRiE.mjs +5784 -0
  58. package/dist/standard-s8jByRiE.mjs.map +1 -0
  59. package/dist/{use-generative-ui-root-C12htqbK.cjs → use-generative-ui-root-CIp0ytE6.cjs} +3 -3
  60. package/dist/{use-generative-ui-root-C12htqbK.cjs.map → use-generative-ui-root-CIp0ytE6.cjs.map} +1 -1
  61. package/dist/{use-generative-ui-root-CVgsDy1f.mjs → use-generative-ui-root-oBqPa6uy.mjs} +3 -2
  62. package/dist/{use-generative-ui-root-CVgsDy1f.mjs.map → use-generative-ui-root-oBqPa6uy.mjs.map} +1 -1
  63. package/package.json +7 -10
  64. package/dist/MarkdownSurfaces-Byz821bg.mjs.map +0 -1
  65. package/dist/MarkdownSurfaces-D2Ck-cbb.cjs.map +0 -1
  66. package/dist/chat-Bf0vVdo7.mjs.map +0 -1
  67. package/dist/chat-D3fxo6Ah.cjs.map +0 -1
package/dist/index.cjs CHANGED
@@ -1,29 +1,26 @@
1
1
  "use client";
2
2
 
3
3
  Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
4
- const require_chat = require('./chat-D3fxo6Ah.cjs');
5
- const require_MarkdownSurfaces = require('./MarkdownSurfaces-D2Ck-cbb.cjs');
6
- const require_use_generative_ui_root = require('./use-generative-ui-root-C12htqbK.cjs');
4
+ const require_accessibility = require('./accessibility-GnodqxkH.cjs');
5
+ const require_ProviderMarkdown = require('./ProviderMarkdown-i_i2osOH.cjs');
6
+ const require_chat = require('./chat-CkFZMo5E.cjs');
7
+ const require_use_generative_ui_root = require('./use-generative-ui-root-CIp0ytE6.cjs');
8
+ const require_MarkdownSurfaces = require('./MarkdownSurfaces-DytbRzj2.cjs');
7
9
  let _copilotkit_core = require("@copilotkit/core");
8
10
  let react = require("react");
9
- react = require_chat.__toESM(react);
11
+ react = require_accessibility.__toESM(react);
10
12
  let react_jsx_runtime = require("react/jsx-runtime");
11
13
  let _copilotkit_react_core_context = require("@copilotkit/react-core/context");
12
14
  let _radix_ui_react_tooltip = require("@radix-ui/react-tooltip");
13
- _radix_ui_react_tooltip = require_chat.__toESM(_radix_ui_react_tooltip);
15
+ _radix_ui_react_tooltip = require_accessibility.__toESM(_radix_ui_react_tooltip);
14
16
  let _radix_ui_react_dropdown_menu = require("@radix-ui/react-dropdown-menu");
15
- _radix_ui_react_dropdown_menu = require_chat.__toESM(_radix_ui_react_dropdown_menu);
17
+ _radix_ui_react_dropdown_menu = require_accessibility.__toESM(_radix_ui_react_dropdown_menu);
16
18
  let _copilotkit_shared = require("@copilotkit/shared");
17
19
  let _copilotkit_web_inspector_mount = require("@copilotkit/web-inspector/mount");
18
20
  let _copilotkit_mcp_apps_renderer_activity = require("@copilotkit/mcp-apps-renderer/activity");
19
- let _copilotkit_a2ui_renderer = require("@copilotkit/a2ui-renderer");
20
- let _copilotkit_a2ui_renderer_engine_core = require("@copilotkit/a2ui-renderer/engine-core");
21
- let zod = require("zod");
22
- zod = require_chat.__toESM(zod);
23
- let _copilotkit_a2ui_renderer_catalog_schema = require("@copilotkit/a2ui-renderer/catalog-schema");
24
21
  let _copilotkit_core_styles = require("@copilotkit/core/styles");
25
22
  let _radix_ui_react_popover = require("@radix-ui/react-popover");
26
- _radix_ui_react_popover = require_chat.__toESM(_radix_ui_react_popover);
23
+ _radix_ui_react_popover = require_accessibility.__toESM(_radix_ui_react_popover);
27
24
  let react_dom = require("react-dom");
28
25
  let _tanstack_react_virtual = require("@tanstack/react-virtual");
29
26
  let use_stick_to_bottom = require("use-stick-to-bottom");
@@ -180,7 +177,7 @@ function DropdownMenuSubTrigger({ className, inset, children, ...props }) {
180
177
  "data-inset": inset,
181
178
  className: (0, _copilotkit_core.ɵcn)("cpk-dropdown-menu-sub-trigger", className),
182
179
  ...props,
183
- children: [children, /* @__PURE__ */ (0, react_jsx_runtime.jsx)(require_MarkdownSurfaces.CopilotIcon, {
180
+ children: [children, /* @__PURE__ */ (0, react_jsx_runtime.jsx)(require_ProviderMarkdown.CopilotIcon, {
184
181
  name: "ChevronRight",
185
182
  className: "cpk-dropdown-menu-sub-trigger-icon"
186
183
  })]
@@ -331,7 +328,7 @@ function CopilotChatInput({ mode = "input", onSubmitMessage, onStop, isRunning =
331
328
  if (!onSubmitMessage) return;
332
329
  if (composer.submit(onSubmitMessage, { value: resolvedValue })) inputRef.current?.focus();
333
330
  };
334
- const BoundTextArea = require_MarkdownSurfaces.renderSlot(textArea, CopilotChatInput.TextArea, {
331
+ const BoundTextArea = require_ProviderMarkdown.renderSlot(textArea, CopilotChatInput.TextArea, {
335
332
  ref: inputRef,
336
333
  value: resolvedValue,
337
334
  onChange: handleChange,
@@ -346,19 +343,19 @@ function CopilotChatInput({ mode = "input", onSubmitMessage, onStop, isRunning =
346
343
  }
347
344
  send();
348
345
  };
349
- const BoundAudioRecorder = require_MarkdownSurfaces.renderSlot(audioRecorder, CopilotChatAudioRecorder, { ref: audioRecorderRef });
346
+ const BoundAudioRecorder = require_ProviderMarkdown.renderSlot(audioRecorder, CopilotChatAudioRecorder, { ref: audioRecorderRef });
350
347
  const showsStop = buttonAction === "stop";
351
- const BoundSendButton = require_MarkdownSurfaces.renderSlot(sendButton, CopilotChatInput.SendButton, {
348
+ const BoundSendButton = require_ProviderMarkdown.renderSlot(sendButton, CopilotChatInput.SendButton, {
352
349
  onClick: handleSendButtonClick,
353
350
  disabled: buttonDisabled,
354
351
  "aria-label": showsStop ? labels.chatInputToolbarStopButtonLabel : labels.chatInputToolbarSendButtonLabel,
355
- children: showsStop ? /* @__PURE__ */ (0, react_jsx_runtime.jsx)(require_MarkdownSurfaces.CopilotIcon, {
352
+ children: showsStop ? /* @__PURE__ */ (0, react_jsx_runtime.jsx)(require_ProviderMarkdown.CopilotIcon, {
356
353
  name: "Square",
357
354
  className: "cpk-chat-input-stop-icon"
358
355
  }) : void 0
359
356
  });
360
- const BoundStartTranscribeButton = require_MarkdownSurfaces.renderSlot(startTranscribeButton, CopilotChatInput.StartTranscribeButton, { onClick: onStartTranscribe });
361
- const BoundCancelTranscribeButton = require_MarkdownSurfaces.renderSlot(cancelTranscribeButton, CopilotChatInput.CancelTranscribeButton, { onClick: onCancelTranscribe });
357
+ const BoundStartTranscribeButton = require_ProviderMarkdown.renderSlot(startTranscribeButton, CopilotChatInput.StartTranscribeButton, { onClick: onStartTranscribe });
358
+ const BoundCancelTranscribeButton = require_ProviderMarkdown.renderSlot(cancelTranscribeButton, CopilotChatInput.CancelTranscribeButton, { onClick: onCancelTranscribe });
362
359
  const handleFinishTranscribe = (0, react.useCallback)(async () => {
363
360
  const recorder = audioRecorderRef.current;
364
361
  if (recorder && recorder.state === "recording") try {
@@ -369,13 +366,13 @@ function CopilotChatInput({ mode = "input", onSubmitMessage, onStop, isRunning =
369
366
  }
370
367
  onFinishTranscribe?.();
371
368
  }, [onFinishTranscribe, onFinishTranscribeWithAudio]);
372
- const BoundFinishTranscribeButton = require_MarkdownSurfaces.renderSlot(finishTranscribeButton, CopilotChatInput.FinishTranscribeButton, { onClick: handleFinishTranscribe });
373
- const BoundAddMenuButton = require_MarkdownSurfaces.renderSlot(addMenuButton, CopilotChatInput.AddMenuButton, {
369
+ const BoundFinishTranscribeButton = require_ProviderMarkdown.renderSlot(finishTranscribeButton, CopilotChatInput.FinishTranscribeButton, { onClick: handleFinishTranscribe });
370
+ const BoundAddMenuButton = require_ProviderMarkdown.renderSlot(addMenuButton, CopilotChatInput.AddMenuButton, {
374
371
  disabled: mode === "transcribe",
375
372
  onAddFile,
376
373
  toolsMenu
377
374
  });
378
- const BoundDisclaimer = require_MarkdownSurfaces.renderSlot(disclaimer, CopilotChatInput.Disclaimer, {});
375
+ const BoundDisclaimer = require_ProviderMarkdown.renderSlot(disclaimer, CopilotChatInput.Disclaimer, {});
379
376
  const shouldShowDisclaimer = (0, _copilotkit_core.ɵshowsComposerDisclaimer)({
380
377
  showDisclaimer,
381
378
  positioning
@@ -444,7 +441,7 @@ function CopilotChatInput({ mode = "input", onSubmitMessage, onStop, isRunning =
444
441
  className: "cpk-chat-input-field",
445
442
  children: mode === "transcribe" ? BoundAudioRecorder : mode === "processing" ? /* @__PURE__ */ (0, react_jsx_runtime.jsx)("div", {
446
443
  className: "cpk-chat-input-processing",
447
- children: /* @__PURE__ */ (0, react_jsx_runtime.jsx)(require_MarkdownSurfaces.CopilotIcon, {
444
+ children: /* @__PURE__ */ (0, react_jsx_runtime.jsx)(require_ProviderMarkdown.CopilotIcon, {
448
445
  name: "Loader2",
449
446
  className: "cpk-chat-input-processing-spinner"
450
447
  })
@@ -518,7 +515,7 @@ function CopilotChatInput({ mode = "input", onSubmitMessage, onStop, isRunning =
518
515
  className: (0, _copilotkit_core.ɵcn)("cpk-chat-input-send-button", className),
519
516
  "aria-label": labels.chatInputToolbarSendButtonLabel,
520
517
  ...props,
521
- children: children ?? /* @__PURE__ */ (0, react_jsx_runtime.jsx)(require_MarkdownSurfaces.CopilotIcon, {
518
+ children: children ?? /* @__PURE__ */ (0, react_jsx_runtime.jsx)(require_ProviderMarkdown.CopilotIcon, {
522
519
  name: "ArrowUp",
523
520
  className: "cpk-chat-input-send-icon"
524
521
  })
@@ -545,7 +542,7 @@ function CopilotChatInput({ mode = "input", onSubmitMessage, onStop, isRunning =
545
542
  };
546
543
  _CopilotChatInput.StartTranscribeButton = (props) => /* @__PURE__ */ (0, react_jsx_runtime.jsx)(ToolbarButton, {
547
544
  "data-testid": "copilot-start-transcribe-button",
548
- icon: /* @__PURE__ */ (0, react_jsx_runtime.jsx)(require_MarkdownSurfaces.CopilotIcon, {
545
+ icon: /* @__PURE__ */ (0, react_jsx_runtime.jsx)(require_ProviderMarkdown.CopilotIcon, {
549
546
  name: "Mic",
550
547
  className: "cpk-chat-input-toolbar-icon"
551
548
  }),
@@ -555,7 +552,7 @@ function CopilotChatInput({ mode = "input", onSubmitMessage, onStop, isRunning =
555
552
  });
556
553
  _CopilotChatInput.CancelTranscribeButton = (props) => /* @__PURE__ */ (0, react_jsx_runtime.jsx)(ToolbarButton, {
557
554
  "data-testid": "copilot-cancel-transcribe-button",
558
- icon: /* @__PURE__ */ (0, react_jsx_runtime.jsx)(require_MarkdownSurfaces.CopilotIcon, {
555
+ icon: /* @__PURE__ */ (0, react_jsx_runtime.jsx)(require_ProviderMarkdown.CopilotIcon, {
559
556
  name: "X",
560
557
  className: "cpk-chat-input-toolbar-icon"
561
558
  }),
@@ -565,7 +562,7 @@ function CopilotChatInput({ mode = "input", onSubmitMessage, onStop, isRunning =
565
562
  });
566
563
  _CopilotChatInput.FinishTranscribeButton = (props) => /* @__PURE__ */ (0, react_jsx_runtime.jsx)(ToolbarButton, {
567
564
  "data-testid": "copilot-finish-transcribe-button",
568
- icon: /* @__PURE__ */ (0, react_jsx_runtime.jsx)(require_MarkdownSurfaces.CopilotIcon, {
565
+ icon: /* @__PURE__ */ (0, react_jsx_runtime.jsx)(require_ProviderMarkdown.CopilotIcon, {
569
566
  name: "Check",
570
567
  className: "cpk-chat-input-toolbar-icon"
571
568
  }),
@@ -604,7 +601,7 @@ function CopilotChatInput({ mode = "input", onSubmitMessage, onStop, isRunning =
604
601
  disabled: isDisabled,
605
602
  "aria-label": labels.chatInputToolbarAddButtonLabel,
606
603
  ...props,
607
- children: /* @__PURE__ */ (0, react_jsx_runtime.jsx)(require_MarkdownSurfaces.CopilotIcon, {
604
+ children: /* @__PURE__ */ (0, react_jsx_runtime.jsx)(require_ProviderMarkdown.CopilotIcon, {
608
605
  name: "Plus",
609
606
  className: "cpk-chat-input-add-menu-icon"
610
607
  })
@@ -824,7 +821,7 @@ function ɵuseOwnedCore(ref, create) {
824
821
 
825
822
  //#endregion
826
823
  //#region package.json
827
- var version$1 = "2.0.0-rc.41";
824
+ var version$1 = "2.0.0-rc.43";
828
825
 
829
826
  //#endregion
830
827
  //#region src/components/CopilotKitInspector.tsx
@@ -1113,362 +1110,62 @@ const OpenGenerativeUIToolRenderer = function OpenGenerativeUIToolRenderer(props
1113
1110
  };
1114
1111
 
1115
1112
  //#endregion
1116
- //#region src/a2ui/A2UIRecoveryStates.tsx
1113
+ //#region src/generative-ui/use-standard-ui-fallback.ts
1117
1114
  /**
1118
- * Draws the lifecycle state of an `a2ui-surface` activity: the failure card,
1119
- * the host's loading component while building, or the skeleton.
1115
+ * The standard UI, loaded once on first use. It is a dynamic import so the
1116
+ * standard components (chart, map, media, ...) stay out of the main entry:
1117
+ * an app that does not use generative UI never downloads them.
1120
1118
  */
1121
- function A2UILifecycleState({ snapshot, loadingComponent: LoadingComponent }) {
1122
- const { lifecycle } = snapshot;
1123
- const details = snapshot.showDebugDetails ? /* @__PURE__ */ (0, react_jsx_runtime.jsx)(A2UIDebugDetails, {
1124
- label: snapshot.debugDetailsLabel,
1125
- open: snapshot.debugDetailsOpen,
1126
- payload: snapshot.debugPayload
1127
- }) : null;
1128
- if (lifecycle.status === "failed") return /* @__PURE__ */ (0, react_jsx_runtime.jsxs)("div", {
1129
- className: "cpk-a2ui-recovery-failure",
1130
- children: [
1131
- /* @__PURE__ */ (0, react_jsx_runtime.jsx)("div", {
1132
- className: "cpk-a2ui-recovery-failure-title",
1133
- children: _copilotkit_core.ɵA2UI_LIFECYCLE_TEXT.failureTitle
1134
- }),
1135
- /* @__PURE__ */ (0, react_jsx_runtime.jsx)("div", {
1136
- className: "cpk-a2ui-recovery-failure-description",
1137
- children: _copilotkit_core.ɵA2UI_LIFECYCLE_TEXT.failureDescription
1138
- }),
1139
- details
1140
- ]
1141
- });
1142
- if (lifecycle.status === "building" && LoadingComponent) return /* @__PURE__ */ (0, react_jsx_runtime.jsx)(LoadingComponent, {});
1143
- return /* @__PURE__ */ (0, react_jsx_runtime.jsx)(A2UIGeneratingSkeleton, {
1144
- label: snapshot.label,
1145
- tokens: lifecycle.progressTokens,
1146
- phase: snapshot.progressPhase,
1147
- children: details
1148
- });
1149
- }
1150
- /**
1151
- * Animated wireframe skeleton with a label, an optional live token count, and
1152
- * an optional debug-detail slot below it. `phase` reveals the rows.
1153
- */
1154
- function A2UIGeneratingSkeleton({ label, tokens, phase, children }) {
1155
- return /* @__PURE__ */ (0, react_jsx_runtime.jsxs)("div", {
1156
- style: {
1157
- margin: "12px 0",
1158
- maxWidth: 320
1159
- },
1160
- children: [
1161
- /* @__PURE__ */ (0, react_jsx_runtime.jsxs)("div", {
1162
- style: {
1163
- position: "relative",
1164
- overflow: "hidden",
1165
- borderRadius: 12,
1166
- border: "1px solid rgba(228,228,231,0.8)",
1167
- backgroundColor: "#fff",
1168
- boxShadow: "0 1px 2px rgba(0,0,0,0.04)",
1169
- padding: "16px 18px 14px"
1170
- },
1171
- children: [
1172
- /* @__PURE__ */ (0, react_jsx_runtime.jsxs)("div", {
1173
- style: {
1174
- display: "flex",
1175
- alignItems: "center",
1176
- gap: 8,
1177
- marginBottom: 12
1178
- },
1179
- children: [/* @__PURE__ */ (0, react_jsx_runtime.jsxs)("div", {
1180
- style: {
1181
- display: "flex",
1182
- gap: 4
1183
- },
1184
- children: [
1185
- /* @__PURE__ */ (0, react_jsx_runtime.jsx)(Dot, {}),
1186
- /* @__PURE__ */ (0, react_jsx_runtime.jsx)(Dot, {}),
1187
- /* @__PURE__ */ (0, react_jsx_runtime.jsx)(Dot, {})
1188
- ]
1189
- }), /* @__PURE__ */ (0, react_jsx_runtime.jsx)("div", { style: {
1190
- width: 64,
1191
- height: 6,
1192
- borderRadius: 9999,
1193
- backgroundColor: "#e4e4e7",
1194
- opacity: phase >= 1 ? 1 : .4,
1195
- transition: "opacity 0.5s"
1196
- } })]
1197
- }),
1198
- /* @__PURE__ */ (0, react_jsx_runtime.jsx)("div", {
1199
- style: {
1200
- display: "grid",
1201
- gap: 7
1202
- },
1203
- children: _copilotkit_core.ɵA2UI_SKELETON_ROWS.map((row, rowIndex) => /* @__PURE__ */ (0, react_jsx_runtime.jsx)("div", {
1204
- style: {
1205
- display: "flex",
1206
- alignItems: "center",
1207
- gap: 6,
1208
- opacity: phase >= row.phase ? 1 : 0,
1209
- transition: `opacity 0.4s ${String(row.delay)}s`
1210
- },
1211
- children: row.parts.map((part, partIndex) => /* @__PURE__ */ (0, react_jsx_runtime.jsx)(SkeletonPart, { part }, partIndex))
1212
- }, rowIndex))
1213
- }),
1214
- /* @__PURE__ */ (0, react_jsx_runtime.jsx)("div", { style: {
1215
- pointerEvents: "none",
1216
- position: "absolute",
1217
- inset: 0,
1218
- background: "linear-gradient(105deg, transparent 0%, transparent 40%, rgba(255,255,255,0.6) 50%, transparent 60%, transparent 100%)",
1219
- backgroundSize: "250% 100%",
1220
- animation: "cpk-a2ui-sweep 3s ease-in-out infinite"
1221
- } })
1222
- ]
1223
- }),
1224
- /* @__PURE__ */ (0, react_jsx_runtime.jsxs)("div", {
1225
- style: {
1226
- display: "flex",
1227
- alignItems: "center",
1228
- justifyContent: "center",
1229
- gap: 8,
1230
- marginTop: 8
1231
- },
1232
- children: [/* @__PURE__ */ (0, react_jsx_runtime.jsx)("span", {
1233
- style: {
1234
- fontSize: 12,
1235
- color: "#a1a1aa",
1236
- letterSpacing: "0.025em"
1237
- },
1238
- children: label
1239
- }), typeof tokens === "number" && tokens > 0 && /* @__PURE__ */ (0, react_jsx_runtime.jsxs)("span", {
1240
- style: {
1241
- fontSize: 11,
1242
- color: "#d4d4d8",
1243
- fontVariantNumeric: "tabular-nums"
1244
- },
1245
- children: [
1246
- "~",
1247
- tokens.toLocaleString(),
1248
- " tokens"
1249
- ]
1250
- })]
1251
- }),
1252
- children,
1253
- /* @__PURE__ */ (0, react_jsx_runtime.jsx)("style", { children: `
1254
- @keyframes cpk-a2ui-fade {
1255
- 0%, 100% { opacity: 1; }
1256
- 50% { opacity: 0.5; }
1257
- }
1258
- @keyframes cpk-a2ui-sweep {
1259
- 0% { background-position: 250% 0; }
1260
- 100% { background-position: -250% 0; }
1261
- }
1262
- ` })
1263
- ]
1264
- });
1265
- }
1266
- function A2UIDebugDetails({ label, open, payload }) {
1267
- return /* @__PURE__ */ (0, react_jsx_runtime.jsxs)("details", {
1268
- open,
1269
- className: "cpk-a2ui-debug-details",
1270
- children: [/* @__PURE__ */ (0, react_jsx_runtime.jsx)("summary", {
1271
- className: "cpk-a2ui-debug-details-summary",
1272
- children: label
1273
- }), /* @__PURE__ */ (0, react_jsx_runtime.jsx)("pre", {
1274
- className: "cpk-a2ui-debug-details-payload",
1275
- style: { fontSize: 11 },
1276
- children: payload
1277
- })]
1278
- });
1279
- }
1280
- function Dot() {
1281
- return /* @__PURE__ */ (0, react_jsx_runtime.jsx)("div", { style: {
1282
- width: 7,
1283
- height: 7,
1284
- borderRadius: "50%",
1285
- backgroundColor: "#d4d4d8",
1286
- flexShrink: 0
1287
- } });
1288
- }
1289
- function SkeletonPart({ part }) {
1290
- if (part === "dot") return /* @__PURE__ */ (0, react_jsx_runtime.jsx)(Dot, {});
1291
- if (part === "spacer") return /* @__PURE__ */ (0, react_jsx_runtime.jsx)("div", { style: { width: 12 } });
1292
- return /* @__PURE__ */ (0, react_jsx_runtime.jsx)("div", { style: {
1293
- width: part.w,
1294
- height: 7,
1295
- borderRadius: 9999,
1296
- backgroundColor: part.bg,
1297
- animation: `cpk-a2ui-fade 2.4s ease-in-out ${String(part.anim)}s infinite`
1298
- } });
1299
- }
1300
-
1301
- //#endregion
1302
- //#region src/a2ui/A2UIMessageRenderer.tsx
1303
- let initialized = false;
1304
- function ensureInitialized() {
1305
- if (!initialized) {
1306
- (0, _copilotkit_a2ui_renderer.initializeDefaultCatalog)();
1307
- (0, _copilotkit_a2ui_renderer.injectStyles)();
1308
- initialized = true;
1119
+ let standardUIPromise;
1120
+ function loadStandardUI() {
1121
+ if (!standardUIPromise) {
1122
+ standardUIPromise = Promise.resolve().then(() => require("./standard-CqGTZUZy.cjs")).then((n) => n.standard_exports).then((module) => module.standardUI);
1123
+ standardUIPromise.catch(() => {
1124
+ standardUIPromise = void 0;
1125
+ });
1309
1126
  }
1310
- }
1311
- const warnInDevelopment = process.env.NODE_ENV !== "production" ? (message) => console.warn(message) : void 0;
1312
- /**
1313
- * The `a2ui-surface` activity carries the WHOLE generative-UI lifecycle on one
1314
- * stable messageId (OSS-162): pre-paint `status` ("building" | "retrying" |
1315
- * "failed") with recovery detail, then `a2ui_operations` on paint. Core's
1316
- * `ɵA2UIActivityController` decides what shows; this renderer draws it and
1317
- * keeps the surface mounted across the loader → surface hand-off.
1318
- */
1319
- function createA2UIMessageRenderer(options) {
1320
- const { theme, catalog, loadingComponent, recovery, onAction } = options;
1321
- return {
1322
- activityType: _copilotkit_core.ɵA2UI_SURFACE_ACTIVITY_TYPE,
1323
- content: _copilotkit_core.ɵA2UI_SURFACE_CONTENT_SCHEMA,
1324
- render: ({ content, agent }) => {
1325
- ensureInitialized();
1326
- const { copilotkit } = (0, _copilotkit_react_core_context.useCopilotKit)();
1327
- const [controller] = (0, react.useState)(() => {
1328
- const created = new _copilotkit_core.ɵA2UIActivityController({
1329
- recovery,
1330
- warn: warnInDevelopment
1331
- });
1332
- created.setContent(content);
1333
- return created;
1334
- });
1335
- const snapshot = (0, react.useSyncExternalStore)(controller.subscribe, controller.getSnapshot, controller.getSnapshot);
1336
- (0, react.useEffect)(() => {
1337
- controller.setContent(content);
1338
- }, [controller, content]);
1339
- (0, react.useEffect)(() => () => controller.dispose(), [controller]);
1340
- const markRendered = (0, react.useCallback)(() => controller.markRendered(), [controller]);
1341
- const groups = (0, react.useMemo)(() => (0, _copilotkit_core.ɵgroupA2UIOperationsBySurface)(snapshot.operations), [snapshot.operations]);
1342
- if (snapshot.view === "lifecycle") return /* @__PURE__ */ (0, react_jsx_runtime.jsx)(A2UILifecycleState, {
1343
- snapshot,
1344
- loadingComponent
1345
- });
1346
- const surfaces = /* @__PURE__ */ (0, react_jsx_runtime.jsx)("div", {
1347
- className: "cpk-a2ui-message-surfaces",
1348
- children: Array.from(groups.entries()).map(([surfaceId, operations]) => /* @__PURE__ */ (0, react_jsx_runtime.jsx)(ReactSurfaceHost, {
1349
- surfaceId,
1350
- operations,
1351
- theme,
1352
- agent,
1353
- copilotkit,
1354
- catalog,
1355
- onAction,
1356
- onRendered: markRendered
1357
- }, surfaceId))
1358
- });
1359
- const handingOff = snapshot.view === "handoff";
1360
- return /* @__PURE__ */ (0, react_jsx_runtime.jsxs)("div", {
1361
- style: { position: "relative" },
1362
- children: [/* @__PURE__ */ (0, react_jsx_runtime.jsx)("div", {
1363
- "aria-hidden": handingOff,
1364
- style: handingOff ? {
1365
- position: "absolute",
1366
- inset: 0,
1367
- opacity: 0,
1368
- pointerEvents: "none"
1369
- } : void 0,
1370
- children: surfaces
1371
- }), handingOff && /* @__PURE__ */ (0, react_jsx_runtime.jsx)(A2UILifecycleState, {
1372
- snapshot,
1373
- loadingComponent
1374
- })]
1375
- });
1376
- }
1377
- };
1378
- }
1379
- /**
1380
- * Renders a single A2UI surface using the React renderer.
1381
- * Wraps A2UIProvider + A2UIRenderer and bridges actions back to CopilotKit.
1382
- */
1383
- function ReactSurfaceHost({ surfaceId, operations, theme, agent, copilotkit, catalog, onAction, onRendered }) {
1384
- return /* @__PURE__ */ (0, react_jsx_runtime.jsx)("div", {
1385
- className: "cpk-a2ui-message-surface-host",
1386
- children: /* @__PURE__ */ (0, react_jsx_runtime.jsxs)(_copilotkit_a2ui_renderer.A2UIProvider, {
1387
- onAction: (0, react.useCallback)(({ userAction }) => (0, _copilotkit_core.ɵrunA2UIAction)({
1388
- message: (0, _copilotkit_core.ɵtoA2UIClientEvent)(userAction ?? {}),
1389
- agent,
1390
- core: copilotkit,
1391
- onAction
1392
- }), [
1393
- agent,
1394
- copilotkit,
1395
- onAction
1396
- ]),
1397
- theme,
1398
- catalog,
1399
- children: [/* @__PURE__ */ (0, react_jsx_runtime.jsx)(SurfaceMessageProcessor, {
1400
- operations,
1401
- onRendered
1402
- }), /* @__PURE__ */ (0, react_jsx_runtime.jsx)(A2UISurfaceOrError, { surfaceId })]
1403
- })
1404
- });
1405
- }
1406
- /**
1407
- * Renders the A2UI surface, or an error message if processing failed.
1408
- * Must be a child of A2UIProvider to access the error state.
1409
- */
1410
- function A2UISurfaceOrError({ surfaceId }) {
1411
- const error = (0, _copilotkit_a2ui_renderer.useA2UIError)();
1412
- if (error) return /* @__PURE__ */ (0, react_jsx_runtime.jsxs)("div", {
1413
- className: "cpk-a2ui-message-error",
1414
- children: ["A2UI render error: ", error]
1415
- });
1416
- return /* @__PURE__ */ (0, react_jsx_runtime.jsx)(_copilotkit_a2ui_renderer.A2UIRenderer, {
1417
- surfaceId,
1418
- className: "cpk-a2ui-message-surface"
1419
- });
1127
+ return standardUIPromise;
1420
1128
  }
1421
1129
  /**
1422
- * Applies the surface's operations to the provider's processor, reports each
1423
- * applied batch to the activity controller, and runs the development
1424
- * diagnostics. Must be a child of A2UIProvider.
1130
+ * The generative UI config of the provider. That is the `generativeUI` prop
1131
+ * when the app sets one. Otherwise, when the runtime turns generative UI on,
1132
+ * it is the standard UI for the agents of the runtime, once the standard UI
1133
+ * has loaded. `undefined` while generative UI is off, or still loading.
1425
1134
  */
1426
- function SurfaceMessageProcessor({ operations, onRendered }) {
1427
- const { applyOperations, getSurface } = (0, _copilotkit_a2ui_renderer.useA2UIActions)();
1428
- const [diagnostics] = (0, react.useState)(() => warnInDevelopment ? new _copilotkit_a2ui_renderer_engine_core.A2UISurfaceDiagnostics({ warn: warnInDevelopment }) : null);
1429
- (0, react.useEffect)(() => () => diagnostics?.dispose(), [diagnostics]);
1135
+ function useStandardUIFallback(generativeUI, runtimeInfo) {
1136
+ const fallback = (0, _copilotkit_core.ɵresolveGenerativeUIDefault)({
1137
+ runtimeEnabled: runtimeInfo?.generativeUIEnabled ?? false,
1138
+ runtimeAgents: runtimeInfo?.generativeUIAgents,
1139
+ hasUI: !!generativeUI?.ui
1140
+ });
1141
+ const active = fallback.active;
1142
+ const agentIds = fallback.active ? fallback.agentIds : void 0;
1143
+ const [standardUI, setStandardUI] = (0, react.useState)();
1430
1144
  (0, react.useEffect)(() => {
1431
- applyOperations(operations);
1432
- onRendered();
1433
- diagnostics?.check(operations, { getSurface });
1145
+ if (!active || standardUI) return;
1146
+ let cancelled = false;
1147
+ loadStandardUI().then((ui) => {
1148
+ if (!cancelled) setStandardUI(ui);
1149
+ }, (error) => {
1150
+ console.error("[generativeUI] could not load the standard UI for the runtime's generative UI:", error);
1151
+ });
1152
+ return () => {
1153
+ cancelled = true;
1154
+ };
1155
+ }, [active, standardUI]);
1156
+ return (0, react.useMemo)(() => {
1157
+ if (generativeUI) return generativeUI;
1158
+ if (!active || !standardUI) return void 0;
1159
+ return {
1160
+ ui: standardUI,
1161
+ agentIds
1162
+ };
1434
1163
  }, [
1435
- applyOperations,
1436
- getSurface,
1437
- operations,
1438
- onRendered,
1439
- diagnostics
1164
+ generativeUI,
1165
+ active,
1166
+ standardUI,
1167
+ agentIds
1440
1168
  ]);
1441
- return null;
1442
- }
1443
-
1444
- //#endregion
1445
- //#region src/a2ui/A2UIToolCallRenderer.tsx
1446
- /**
1447
- * Registers a no-op renderer for the `render_a2ui` tool call so its raw streamed
1448
- * args are never surfaced in the transcript.
1449
- *
1450
- * The generation skeleton / retry / failure UX is NO LONGER owned here (OSS-162):
1451
- * the A2UI middleware drives the whole lifecycle on the `a2ui-surface` activity
1452
- * (one stable messageId, building → retrying → failed → painted), rendered in
1453
- * place by `createA2UIMessageRenderer`. Owning a skeleton per tool call caused a
1454
- * duplicate skeleton on retries / multi-call generations and a skeleton that
1455
- * lingered after the surface painted — both fixed by retiring it here.
1456
- *
1457
- * It is a built-in renderer, so a `renderToolCalls` entry or a
1458
- * `useRenderTool({ name: "render_a2ui" })` hook replaces it, and it never
1459
- * removes the app's renderers. It is removed when A2UI turns off.
1460
- */
1461
- function A2UIBuiltInToolCallRenderer() {
1462
- const { copilotkit } = (0, _copilotkit_react_core_context.useCopilotKit)();
1463
- (0, react.useEffect)(() => {
1464
- const renderer = require_chat.defineToolCallRenderer({
1465
- name: _copilotkit_core.ɵRENDER_A2UI_TOOL_NAME,
1466
- args: zod.any(),
1467
- render: () => /* @__PURE__ */ (0, react_jsx_runtime.jsx)(react_jsx_runtime.Fragment, {})
1468
- });
1469
- return copilotkit.ɵaddBuiltInRenderToolCall(renderer);
1470
- }, [copilotkit]);
1471
- return null;
1472
1169
  }
1473
1170
 
1474
1171
  //#endregion
@@ -1540,8 +1237,8 @@ var CopilotKitCoreReact = class extends _copilotkit_core.CopilotKitCore {
1540
1237
  this._renderers.removeHookToolCall(name, agentId);
1541
1238
  }
1542
1239
  /**
1543
- * @internal Add a renderer for a tool a built-in feature owns (A2UI,
1544
- * generative UI). Prop and hook renderers with the same name and agent win
1240
+ * @internal Add a renderer for a tool a built-in feature owns
1241
+ * (generative UI). Prop and hook renderers with the same name and agent win
1545
1242
  * over it, and `setRenderToolCalls` never removes it.
1546
1243
  *
1547
1244
  * @returns A function that removes the renderer.
@@ -1637,7 +1334,7 @@ function useStableArrayProp(prop, name) {
1637
1334
  return value;
1638
1335
  }
1639
1336
  /** Provide a shared core instance and synchronize runtime, tool, and UI configuration. */
1640
- const CopilotKitProvider = ({ children, runtimeUrl, headers: headersProp = EMPTY_HEADERS, credentials, nonce, injectStyles = true, messageFilter, publicApiKey, publicLicenseKey, properties = EMPTY_PROPERTIES, agents__unsafe_dev_only: agents = EMPTY_AGENTS, selfManagedAgents = EMPTY_AGENTS, renderToolCalls, renderActivityMessages, renderCustomMessages, markdownRenderer, frontendTools, humanInTheLoop, openGenerativeUI, enableInspector, agentId, showIntelligenceIndicator = true, useSingleEndpoint, onError, a2ui, generativeUI, mcpApps, defaultThrottleMs, debug, learning }) => {
1337
+ const CopilotKitProvider = ({ children, runtimeUrl, headers: headersProp = EMPTY_HEADERS, credentials, nonce, injectStyles = true, messageFilter, publicApiKey, publicLicenseKey, properties = EMPTY_PROPERTIES, agents__unsafe_dev_only: agents = EMPTY_AGENTS, selfManagedAgents = EMPTY_AGENTS, renderToolCalls, renderActivityMessages, renderCustomMessages, markdownRenderer, frontendTools, humanInTheLoop, openGenerativeUI, enableInspector, agentId, showIntelligenceIndicator = true, useSingleEndpoint, onError, generativeUI, mcpApps, defaultThrottleMs, debug, learning }) => {
1641
1338
  const learningConfig = (0, react.useMemo)(() => (0, _copilotkit_core.ɵtoLearningConfig)(learning), [learning]);
1642
1339
  const [shouldRenderInspector, setShouldRenderInspector] = (0, react.useState)(false);
1643
1340
  const [inspectorVisible, setInspectorVisible] = (0, react.useState)(false);
@@ -1651,18 +1348,12 @@ const CopilotKitProvider = ({ children, runtimeUrl, headers: headersProp = EMPTY
1651
1348
  }, [enableInspector]);
1652
1349
  const [inspectorOpenRequest, setInspectorOpenRequest] = (0, react.useState)(null);
1653
1350
  const [runtimeInfo, setRuntimeInfo] = (0, react.useState)(null);
1654
- const runtimeA2UIEnabled = runtimeInfo?.a2uiEnabled ?? false;
1655
- const runtimeOpenGenUIEnabled = runtimeInfo?.openGenerativeUIEnabled ?? false;
1656
- const [catalogToggleVersion, setCatalogToggleVersion] = (0, react.useState)(0);
1657
1351
  const openGenUIActive = (0, _copilotkit_core.ɵisOpenGenerativeUIActive)({
1658
- runtimeEnabled: runtimeOpenGenUIEnabled,
1352
+ runtimeEnabled: runtimeInfo?.openGenerativeUIEnabled ?? false,
1659
1353
  configured: !!openGenerativeUI
1660
1354
  });
1661
- const a2uiActive = (0, _copilotkit_core.ɵresolveA2UIActivation)({
1662
- runtimeEnabled: runtimeA2UIEnabled,
1663
- hasCatalog: !!a2ui?.catalog
1664
- }).active;
1665
- const generativeUIActive = !!generativeUI?.ui;
1355
+ const generativeUIConfig = useStandardUIFallback(generativeUI, runtimeInfo);
1356
+ const generativeUIActive = !!generativeUIConfig?.ui;
1666
1357
  const runtimeLicenseStatus = runtimeInfo?.licenseStatus;
1667
1358
  const runtimeEntitlements = runtimeInfo?.runtimeEntitlements;
1668
1359
  const runtimeEntitlementRetryPending = runtimeInfo?.runtimeEntitlementRetryPending ?? false;
@@ -1683,23 +1374,9 @@ const CopilotKitProvider = ({ children, runtimeUrl, headers: headersProp = EMPTY
1683
1374
  const renderCustomMessagesList = useStableArrayProp(renderCustomMessages, "renderCustomMessages");
1684
1375
  const renderActivityMessagesList = useStableArrayProp(renderActivityMessages, "renderActivityMessages");
1685
1376
  const copilotkitRef = (0, react.useRef)(null);
1686
- const rawCatalog = a2ui?.catalog;
1687
- const filteredCatalog = (0, react.useMemo)(() => {
1688
- if (!rawCatalog) return rawCatalog;
1689
- if (!(rawCatalog instanceof _copilotkit_a2ui_renderer.Catalog)) return rawCatalog;
1690
- const core = copilotkitRef.current;
1691
- return (0, _copilotkit_a2ui_renderer.filterCatalog)(rawCatalog, (name) => core ? core.isCatalogComponentEnabled(name) : true);
1692
- }, [rawCatalog, catalogToggleVersion]);
1693
1377
  const mcpAppsAllowSameOrigin = mcpApps?.allowSameOriginFallback === true;
1694
1378
  const allActivityRenderers = (0, react.useMemo)(() => (0, _copilotkit_core.ɵassembleActivityRenderers)({
1695
1379
  app: renderActivityMessagesList,
1696
- a2ui: a2uiActive ? createA2UIMessageRenderer({
1697
- theme: a2ui?.theme ?? _copilotkit_a2ui_renderer.viewerTheme,
1698
- catalog: filteredCatalog,
1699
- loadingComponent: a2ui?.loadingComponent,
1700
- recovery: a2ui?.recovery,
1701
- onAction: a2ui?.onAction
1702
- }) : void 0,
1703
1380
  builtIns: [
1704
1381
  {
1705
1382
  activityType: _copilotkit_mcp_apps_renderer_activity.MCPAppsActivityType,
@@ -1716,11 +1393,8 @@ const CopilotKitProvider = ({ children, runtimeUrl, headers: headersProp = EMPTY
1716
1393
  ]
1717
1394
  }), [
1718
1395
  renderActivityMessagesList,
1719
- a2uiActive,
1720
1396
  openGenUIActive,
1721
1397
  generativeUIActive,
1722
- a2ui,
1723
- filteredCatalog,
1724
1398
  mcpAppsAllowSameOrigin
1725
1399
  ]);
1726
1400
  const resolvedConfig = (0, react.useMemo)(() => (0, _copilotkit_core.ɵresolveProviderConfig)({
@@ -1730,8 +1404,7 @@ const CopilotKitProvider = ({ children, runtimeUrl, headers: headersProp = EMPTY
1730
1404
  useSingleEndpoint,
1731
1405
  agents__unsafe_dev_only: agents,
1732
1406
  selfManagedAgents,
1733
- properties,
1734
- a2uiCatalog: a2ui?.catalog
1407
+ properties
1735
1408
  }), [
1736
1409
  runtimeUrl,
1737
1410
  publicApiKey,
@@ -1739,8 +1412,7 @@ const CopilotKitProvider = ({ children, runtimeUrl, headers: headersProp = EMPTY
1739
1412
  useSingleEndpoint,
1740
1413
  agents,
1741
1414
  selfManagedAgents,
1742
- properties,
1743
- a2ui?.catalog
1415
+ properties
1744
1416
  ]);
1745
1417
  const resolvedPublicKey = resolvedConfig.publicKey;
1746
1418
  const loggedDiagnosticsRef = (0, react.useRef)(/* @__PURE__ */ new Set());
@@ -1810,22 +1482,7 @@ const CopilotKitProvider = ({ children, runtimeUrl, headers: headersProp = EMPTY
1810
1482
  onError,
1811
1483
  learning: learningConfig
1812
1484
  }));
1813
- const generativeUIRuntime = require_use_generative_ui_root.useGenerativeUIRoot(copilotkit, generativeUI);
1814
- const [a2uiCatalogController] = (0, react.useState)(() => new _copilotkit_a2ui_renderer_catalog_schema.A2UICatalogController(copilotkit, _copilotkit_a2ui_renderer.basicCatalog));
1815
- (0, react.useEffect)(() => a2uiCatalogController.subscribe(() => setCatalogToggleVersion((v) => v + 1)), [a2uiCatalogController]);
1816
- (0, react.useEffect)(() => {
1817
- a2uiCatalogController.update({
1818
- enabled: a2uiActive,
1819
- catalog: rawCatalog,
1820
- includeSchema: a2ui?.includeSchema
1821
- });
1822
- }, [
1823
- a2uiCatalogController,
1824
- a2uiActive,
1825
- rawCatalog,
1826
- a2ui?.includeSchema
1827
- ]);
1828
- (0, react.useEffect)(() => () => a2uiCatalogController.dispose(), [a2uiCatalogController]);
1485
+ const generativeUIRuntime = require_use_generative_ui_root.useGenerativeUIRoot(copilotkit, generativeUIConfig);
1829
1486
  (0, react.useEffect)(() => {
1830
1487
  const syncRuntimeInfo = () => setRuntimeInfo(copilotkit.ɵruntimeInfo);
1831
1488
  const unsubscribe = copilotkit.ɵsubscribeToRuntimeInfo(syncRuntimeInfo);
@@ -1947,15 +1604,14 @@ const CopilotKitProvider = ({ children, runtimeUrl, headers: headersProp = EMPTY
1947
1604
  children: /* @__PURE__ */ (0, react_jsx_runtime.jsxs)(_copilotkit_react_core_context.LicenseContext.Provider, {
1948
1605
  value: licenseState.context,
1949
1606
  children: [
1950
- a2uiActive && /* @__PURE__ */ (0, react_jsx_runtime.jsx)(A2UIBuiltInToolCallRenderer, {}),
1951
1607
  generativeUIActive && /* @__PURE__ */ (0, react_jsx_runtime.jsx)(require_chat.GenerativeUIToolCallRenderer, {}),
1952
- /* @__PURE__ */ (0, react_jsx_runtime.jsx)(require_MarkdownSurfaces.MarkdownRendererProvider, {
1608
+ /* @__PURE__ */ (0, react_jsx_runtime.jsx)(require_ProviderMarkdown.MarkdownRendererProvider, {
1953
1609
  renderer: markdownRenderer,
1954
1610
  children: /* @__PURE__ */ (0, react_jsx_runtime.jsxs)(CopilotKitInspectorContextProvider, {
1955
1611
  value: inspectorContextValue,
1956
1612
  children: [/* @__PURE__ */ (0, react_jsx_runtime.jsx)(_copilotkit_react_core_context.CopilotKitAgentIdContext.Provider, {
1957
1613
  value: agentId,
1958
- children: /* @__PURE__ */ (0, react_jsx_runtime.jsx)(require_chat.GenerativeUIRuntimeContext.Provider, {
1614
+ children: /* @__PURE__ */ (0, react_jsx_runtime.jsx)(require_accessibility.GenerativeUIRuntimeContext.Provider, {
1959
1615
  value: generativeUIRuntime,
1960
1616
  children
1961
1617
  })
@@ -2429,14 +2085,14 @@ function Collapsible({ open, id, className, children }) {
2429
2085
  });
2430
2086
  }
2431
2087
  function StatusIcon({ status, className }) {
2432
- return /* @__PURE__ */ (0, react_jsx_runtime.jsx)(require_MarkdownSurfaces.CopilotIcon, {
2088
+ return /* @__PURE__ */ (0, react_jsx_runtime.jsx)(require_ProviderMarkdown.CopilotIcon, {
2433
2089
  name: _copilotkit_core.ɵTOOL_CALL_STATUS_ICONS[status],
2434
2090
  "aria-hidden": "true",
2435
2091
  className: (0, _copilotkit_core.ɵcn)("cpk-tool-call-status-icon", status === "running" && "cpk-tool-call-status-icon-running", status === "failed" && "cpk-tool-call-status-icon-failed", className)
2436
2092
  });
2437
2093
  }
2438
2094
  function Chevron({ open, className }) {
2439
- return /* @__PURE__ */ (0, react_jsx_runtime.jsx)(require_MarkdownSurfaces.CopilotIcon, {
2095
+ return /* @__PURE__ */ (0, react_jsx_runtime.jsx)(require_ProviderMarkdown.CopilotIcon, {
2440
2096
  name: "ChevronRight",
2441
2097
  "aria-hidden": "true",
2442
2098
  className: (0, _copilotkit_core.ɵcn)("cpk-tool-call-chevron", open && "cpk-tool-call-chevron-open", className)
@@ -3639,7 +3295,7 @@ function CopilotChatToolCallsView({ message, messages = [], display: displayProp
3639
3295
  })
3640
3296
  }, segment.id);
3641
3297
  }
3642
- return /* @__PURE__ */ (0, react_jsx_runtime.jsx)(react.default.Fragment, { children: require_MarkdownSurfaces.renderSlot(group, CopilotChatToolCallGroup, {
3298
+ return /* @__PURE__ */ (0, react_jsx_runtime.jsx)(react.default.Fragment, { children: require_ProviderMarkdown.renderSlot(group, CopilotChatToolCallGroup, {
3643
3299
  calls: segment.calls,
3644
3300
  renderCall,
3645
3301
  appearance: (0, _copilotkit_core.ɵtoolCallAppearance)(display) ?? "card",
@@ -3742,7 +3398,7 @@ function CopilotChatInspectorButton({ title, className, onClick, onPointerDown,
3742
3398
  event.currentTarget.click();
3743
3399
  }
3744
3400
  },
3745
- children: /* @__PURE__ */ (0, react_jsx_runtime.jsx)(require_MarkdownSurfaces.CopilotIcon, {
3401
+ children: /* @__PURE__ */ (0, react_jsx_runtime.jsx)(require_ProviderMarkdown.CopilotIcon, {
3746
3402
  name: "Wrench",
3747
3403
  "aria-hidden": "true",
3748
3404
  className: "cpk-inspector-button-icon",
@@ -3808,7 +3464,7 @@ function CopilotChatInspectorButton({ title, className, onClick, onPointerDown,
3808
3464
  /* @__PURE__ */ (0, react_jsx_runtime.jsxs)(DropdownMenuItem, {
3809
3465
  onSelect: hideShortcuts,
3810
3466
  className: "cpk-inspector-button-menu-item cpk-inspector-button-hide-item",
3811
- children: [/* @__PURE__ */ (0, react_jsx_runtime.jsx)(require_MarkdownSurfaces.CopilotIcon, {
3467
+ children: [/* @__PURE__ */ (0, react_jsx_runtime.jsx)(require_ProviderMarkdown.CopilotIcon, {
3812
3468
  name: "EyeOff",
3813
3469
  "aria-hidden": "true",
3814
3470
  className: "cpk-inspector-button-menu-item-icon"
@@ -3937,7 +3593,7 @@ function useCopyFeedback() {
3937
3593
  //#region src/components/chat/CopilotChatAssistantMessage.tsx
3938
3594
  function resolveMarkdownRenderer(value) {
3939
3595
  if (!value) return CopilotChatAssistantMessage.MarkdownRenderer;
3940
- if (require_MarkdownSurfaces.isReactComponentType(value)) {
3596
+ if (require_ProviderMarkdown.isReactComponentType(value)) {
3941
3597
  const ProvidedRenderer = value;
3942
3598
  const ProvidedMarkdownRenderer = (props) => react.default.createElement(ProvidedRenderer, props);
3943
3599
  return ProvidedMarkdownRenderer;
@@ -3976,7 +3632,7 @@ function WorkText({ messageId, children }) {
3976
3632
  */
3977
3633
  function BoundInspectorButton({ inspectorButton, messageId, openInspector, ...props }) {
3978
3634
  const chatConfiguration = require_chat.useCopilotChatConfiguration();
3979
- return require_MarkdownSurfaces.renderSlot(inspectorButton, CopilotChatAssistantMessage.InspectorButton, {
3635
+ return require_ProviderMarkdown.renderSlot(inspectorButton, CopilotChatAssistantMessage.InspectorButton, {
3980
3636
  ...props,
3981
3637
  onClick: () => openInspector({
3982
3638
  messageId,
@@ -4026,7 +3682,7 @@ function FeedbackCommentPopover({ feedbackComment, comment, savedComment, rating
4026
3682
  onPointerEnter: () => comment.enter("pointer"),
4027
3683
  onPointerLeave: () => comment.leave("pointer"),
4028
3684
  className: "cpk-assistant-message-feedback-popover",
4029
- children: /* @__PURE__ */ (0, react_jsx_runtime.jsx)(react.Fragment, { children: require_MarkdownSurfaces.renderSlot(feedbackComment, CopilotChatAssistantMessage.FeedbackComment, {
3685
+ children: /* @__PURE__ */ (0, react_jsx_runtime.jsx)(react.Fragment, { children: require_ProviderMarkdown.renderSlot(feedbackComment, CopilotChatAssistantMessage.FeedbackComment, {
4030
3686
  value: comment.draft,
4031
3687
  savedComment,
4032
3688
  inputRef: comment.inputRef,
@@ -4039,7 +3695,7 @@ function FeedbackCommentPopover({ feedbackComment, comment, savedComment, rating
4039
3695
  });
4040
3696
  }
4041
3697
  function CopilotChatAssistantMessage({ message, messages, isRunning, isLatest, onThumbsUp, onThumbsDown, onReadAloud, onRegenerate, additionalToolbarItems, toolbarVisible = true, markdownRenderer, toolbar, copyButton, inspectorButton, thumbsUpButton, thumbsDownButton, readAloudButton, regenerateButton, feedbackComment: feedbackCommentSlot, toolCallsView, children, className, ...props }) {
4042
- const providerRenderer = require_chat.useShallowStableRef(require_MarkdownSurfaces.useMarkdownRenderer());
3698
+ const providerRenderer = require_accessibility.useShallowStableRef(require_ProviderMarkdown.useMarkdownRenderer());
4043
3699
  const DefaultMarkdownRenderer = (0, react.useMemo)(() => resolveMarkdownRenderer(providerRenderer), [providerRenderer]);
4044
3700
  const hasContent = (0, _copilotkit_core.ɵhasAssistantMessageText)(message.content);
4045
3701
  const isLatestAssistantMessage = message.role === "assistant" && (isLatest ?? messages?.[messages.length - 1]?.id === message.id);
@@ -4073,16 +3729,16 @@ function CopilotChatAssistantMessage({ message, messages, isRunning, isLatest, o
4073
3729
  onKeyDown: handlers.keyDown
4074
3730
  };
4075
3731
  };
4076
- const boundMarkdownRenderer = require_MarkdownSurfaces.renderSlot(markdownRenderer, DefaultMarkdownRenderer, {
3732
+ const boundMarkdownRenderer = require_ProviderMarkdown.renderSlot(markdownRenderer, DefaultMarkdownRenderer, {
4077
3733
  content: message.content || "",
4078
3734
  isStreaming: !!(isRunning && isLatestAssistantMessage),
4079
3735
  messageId: message.id
4080
3736
  });
4081
- const boundCopyButton = require_MarkdownSurfaces.renderSlot(copyButton, CopilotChatAssistantMessage.CopyButton, { onClick: async () => {
3737
+ const boundCopyButton = require_ProviderMarkdown.renderSlot(copyButton, CopilotChatAssistantMessage.CopyButton, { onClick: async () => {
4082
3738
  if (message.content) return await (0, _copilotkit_shared.copyToClipboard)(message.content);
4083
3739
  return false;
4084
3740
  } });
4085
- const boundThumbsUpButton = require_MarkdownSurfaces.renderSlot(thumbsUpButton, CopilotChatAssistantMessage.ThumbsUpButton, {
3741
+ const boundThumbsUpButton = require_ProviderMarkdown.renderSlot(thumbsUpButton, CopilotChatAssistantMessage.ThumbsUpButton, {
4086
3742
  onClick: onThumbsUp || feedback ? (event) => {
4087
3743
  if (rate("up", event)) onThumbsUp?.(message);
4088
3744
  } : void 0,
@@ -4093,15 +3749,15 @@ function CopilotChatAssistantMessage({ message, messages, isRunning, isLatest, o
4093
3749
  messageId: message.id,
4094
3750
  openInspector
4095
3751
  }) : /* @__PURE__ */ (0, react_jsx_runtime.jsx)(react_jsx_runtime.Fragment, {});
4096
- const boundThumbsDownButton = require_MarkdownSurfaces.renderSlot(thumbsDownButton, CopilotChatAssistantMessage.ThumbsDownButton, {
3752
+ const boundThumbsDownButton = require_ProviderMarkdown.renderSlot(thumbsDownButton, CopilotChatAssistantMessage.ThumbsDownButton, {
4097
3753
  onClick: onThumbsDown || feedback ? (event) => {
4098
3754
  if (rate("down", event)) onThumbsDown?.(message);
4099
3755
  } : void 0,
4100
3756
  ...thumbFeedbackProps("down")
4101
3757
  });
4102
- const boundReadAloudButton = require_MarkdownSurfaces.renderSlot(readAloudButton, CopilotChatAssistantMessage.ReadAloudButton, { onClick: onReadAloud ? () => onReadAloud(message) : void 0 });
4103
- const boundRegenerateButton = require_MarkdownSurfaces.renderSlot(regenerateButton, CopilotChatAssistantMessage.RegenerateButton, { onClick: onRegenerate ? () => onRegenerate(message) : void 0 });
4104
- const boundToolbar = require_MarkdownSurfaces.renderSlot(toolbar, CopilotChatAssistantMessage.Toolbar, { children: /* @__PURE__ */ (0, react_jsx_runtime.jsxs)("div", {
3758
+ const boundReadAloudButton = require_ProviderMarkdown.renderSlot(readAloudButton, CopilotChatAssistantMessage.ReadAloudButton, { onClick: onReadAloud ? () => onReadAloud(message) : void 0 });
3759
+ const boundRegenerateButton = require_ProviderMarkdown.renderSlot(regenerateButton, CopilotChatAssistantMessage.RegenerateButton, { onClick: onRegenerate ? () => onRegenerate(message) : void 0 });
3760
+ const boundToolbar = require_ProviderMarkdown.renderSlot(toolbar, CopilotChatAssistantMessage.Toolbar, { children: /* @__PURE__ */ (0, react_jsx_runtime.jsxs)("div", {
4105
3761
  className: "cpk-assistant-message-toolbar-items",
4106
3762
  children: [
4107
3763
  boundCopyButton,
@@ -4113,7 +3769,7 @@ function CopilotChatAssistantMessage({ message, messages, isRunning, isLatest, o
4113
3769
  showInspectorShortcut && boundInspectorButton
4114
3770
  ]
4115
3771
  }) });
4116
- const boundToolCallsView = require_MarkdownSurfaces.renderSlot(toolCallsView, CopilotChatToolCallsView, {
3772
+ const boundToolCallsView = require_ProviderMarkdown.renderSlot(toolCallsView, CopilotChatToolCallsView, {
4117
3773
  message,
4118
3774
  messages
4119
3775
  });
@@ -4190,14 +3846,14 @@ function CopilotChatAssistantMessage({ message, messages, isRunning, isLatest, o
4190
3846
  }
4191
3847
  (function(_CopilotChatAssistantMessage) {
4192
3848
  _CopilotChatAssistantMessage.MarkdownRenderer = ({ content, isStreaming, className, messageId, ...config }) => {
4193
- if (require_chat.useGenerativeUIRuntime()?.transport === "markdown" && messageId !== void 0) return /* @__PURE__ */ (0, react_jsx_runtime.jsx)(require_MarkdownSurfaces.MarkdownSurfaces, {
3849
+ if (require_accessibility.useGenerativeUIRuntime()?.transport === "markdown" && messageId !== void 0) return /* @__PURE__ */ (0, react_jsx_runtime.jsx)(require_MarkdownSurfaces.MarkdownSurfaces, {
4194
3850
  content: content ?? "",
4195
3851
  messageId,
4196
3852
  isStreaming,
4197
3853
  className,
4198
3854
  ...config
4199
3855
  });
4200
- return /* @__PURE__ */ (0, react_jsx_runtime.jsx)(require_MarkdownSurfaces.StreamingMarkdownDefaultRenderer, {
3856
+ return /* @__PURE__ */ (0, react_jsx_runtime.jsx)(require_ProviderMarkdown.StreamingMarkdownDefaultRenderer, {
4201
3857
  content: content ?? "",
4202
3858
  isStreaming,
4203
3859
  className,
@@ -4247,10 +3903,10 @@ function CopilotChatAssistantMessage({ message, messages, isRunning, isLatest, o
4247
3903
  },
4248
3904
  className,
4249
3905
  ...props,
4250
- children: copied ? /* @__PURE__ */ (0, react_jsx_runtime.jsx)(require_MarkdownSurfaces.CopilotIcon, {
3906
+ children: copied ? /* @__PURE__ */ (0, react_jsx_runtime.jsx)(require_ProviderMarkdown.CopilotIcon, {
4251
3907
  name: "Check",
4252
3908
  className: "cpk-assistant-message-toolbar-icon"
4253
- }) : /* @__PURE__ */ (0, react_jsx_runtime.jsx)(require_MarkdownSurfaces.CopilotIcon, {
3909
+ }) : /* @__PURE__ */ (0, react_jsx_runtime.jsx)(require_ProviderMarkdown.CopilotIcon, {
4254
3910
  name: "Copy",
4255
3911
  className: "cpk-assistant-message-toolbar-icon"
4256
3912
  })
@@ -4263,7 +3919,7 @@ function CopilotChatAssistantMessage({ message, messages, isRunning, isLatest, o
4263
3919
  "data-testid": "copilot-thumbs-up-button",
4264
3920
  title: title || labels.assistantMessageToolbarThumbsUpLabel,
4265
3921
  ...props,
4266
- children: /* @__PURE__ */ (0, react_jsx_runtime.jsx)(require_MarkdownSurfaces.CopilotIcon, {
3922
+ children: /* @__PURE__ */ (0, react_jsx_runtime.jsx)(require_ProviderMarkdown.CopilotIcon, {
4267
3923
  name: "ThumbsUp",
4268
3924
  className: "cpk-assistant-message-toolbar-icon",
4269
3925
  fill: props["aria-pressed"] === true ? "currentColor" : "none"
@@ -4276,7 +3932,7 @@ function CopilotChatAssistantMessage({ message, messages, isRunning, isLatest, o
4276
3932
  "data-testid": "copilot-thumbs-down-button",
4277
3933
  title: title || labels.assistantMessageToolbarThumbsDownLabel,
4278
3934
  ...props,
4279
- children: /* @__PURE__ */ (0, react_jsx_runtime.jsx)(require_MarkdownSurfaces.CopilotIcon, {
3935
+ children: /* @__PURE__ */ (0, react_jsx_runtime.jsx)(require_ProviderMarkdown.CopilotIcon, {
4280
3936
  name: "ThumbsDown",
4281
3937
  className: "cpk-assistant-message-toolbar-icon",
4282
3938
  fill: props["aria-pressed"] === true ? "currentColor" : "none"
@@ -4314,7 +3970,7 @@ function CopilotChatAssistantMessage({ message, messages, isRunning, isLatest, o
4314
3970
  variant: "assistantMessageToolbarButton",
4315
3971
  "aria-label": labels.assistantMessageFeedbackCommentSubmitLabel,
4316
3972
  title: labels.assistantMessageFeedbackCommentSubmitLabel,
4317
- children: /* @__PURE__ */ (0, react_jsx_runtime.jsx)(require_MarkdownSurfaces.CopilotIcon, {
3973
+ children: /* @__PURE__ */ (0, react_jsx_runtime.jsx)(require_ProviderMarkdown.CopilotIcon, {
4318
3974
  name: "ArrowUp",
4319
3975
  className: "cpk-assistant-message-feedback-comment-submit-icon"
4320
3976
  })
@@ -4327,7 +3983,7 @@ function CopilotChatAssistantMessage({ message, messages, isRunning, isLatest, o
4327
3983
  "data-testid": "copilot-read-aloud-button",
4328
3984
  title: title || labels.assistantMessageToolbarReadAloudLabel,
4329
3985
  ...props,
4330
- children: /* @__PURE__ */ (0, react_jsx_runtime.jsx)(require_MarkdownSurfaces.CopilotIcon, {
3986
+ children: /* @__PURE__ */ (0, react_jsx_runtime.jsx)(require_ProviderMarkdown.CopilotIcon, {
4331
3987
  name: "Volume2",
4332
3988
  className: "cpk-assistant-message-read-aloud-icon"
4333
3989
  })
@@ -4339,7 +3995,7 @@ function CopilotChatAssistantMessage({ message, messages, isRunning, isLatest, o
4339
3995
  "data-testid": "copilot-regenerate-button",
4340
3996
  title: title || labels.assistantMessageToolbarRegenerateLabel,
4341
3997
  ...props,
4342
- children: /* @__PURE__ */ (0, react_jsx_runtime.jsx)(require_MarkdownSurfaces.CopilotIcon, {
3998
+ children: /* @__PURE__ */ (0, react_jsx_runtime.jsx)(require_ProviderMarkdown.CopilotIcon, {
4343
3999
  name: "RefreshCw",
4344
4000
  className: "cpk-assistant-message-toolbar-icon"
4345
4001
  })
@@ -4396,7 +4052,7 @@ function Lightbox({ onClose, label, children }) {
4396
4052
  onClick: onClose,
4397
4053
  className: "cpk-attachment-lightbox-close-button",
4398
4054
  "aria-label": labels.attachmentPreviewCloseButtonLabel,
4399
- children: /* @__PURE__ */ (0, react_jsx_runtime.jsx)(require_MarkdownSurfaces.CopilotIcon, {
4055
+ children: /* @__PURE__ */ (0, react_jsx_runtime.jsx)(require_ProviderMarkdown.CopilotIcon, {
4400
4056
  name: "X",
4401
4057
  className: "cpk-attachment-lightbox-close-icon"
4402
4058
  })
@@ -4535,13 +4191,13 @@ const CopilotChatAttachmentRenderer = ({ type, source, filename, className }) =>
4535
4191
  function CopilotChatUserMessage({ message, onEditMessage, branchIndex, numberOfBranches, onSwitchToBranch, additionalToolbarItems, messageRenderer, toolbar, copyButton, editButton, branchNavigation, children, className, ...props }) {
4536
4192
  const flattenedContent = (0, react.useMemo)(() => (0, _copilotkit_core.ɵflattenUserMessageContent)(message.content), [message.content]);
4537
4193
  const mediaParts = (0, react.useMemo)(() => (0, _copilotkit_core.ɵgetUserMessageMediaParts)(message.content), [message.content]);
4538
- const BoundMessageRenderer = require_MarkdownSurfaces.renderSlot(messageRenderer, CopilotChatUserMessage.MessageRenderer, { content: flattenedContent });
4539
- const BoundCopyButton = require_MarkdownSurfaces.renderSlot(copyButton, CopilotChatUserMessage.CopyButton, { onClick: async () => {
4194
+ const BoundMessageRenderer = require_ProviderMarkdown.renderSlot(messageRenderer, CopilotChatUserMessage.MessageRenderer, { content: flattenedContent });
4195
+ const BoundCopyButton = require_ProviderMarkdown.renderSlot(copyButton, CopilotChatUserMessage.CopyButton, { onClick: async () => {
4540
4196
  if (flattenedContent) return await (0, _copilotkit_shared.copyToClipboard)(flattenedContent);
4541
4197
  return false;
4542
4198
  } });
4543
- const BoundEditButton = require_MarkdownSurfaces.renderSlot(editButton, CopilotChatUserMessage.EditButton, { onClick: () => onEditMessage?.({ message }) });
4544
- const BoundBranchNavigation = require_MarkdownSurfaces.renderSlot(branchNavigation, CopilotChatUserMessage.BranchNavigation, {
4199
+ const BoundEditButton = require_ProviderMarkdown.renderSlot(editButton, CopilotChatUserMessage.EditButton, { onClick: () => onEditMessage?.({ message }) });
4200
+ const BoundBranchNavigation = require_ProviderMarkdown.renderSlot(branchNavigation, CopilotChatUserMessage.BranchNavigation, {
4545
4201
  currentBranch: branchIndex,
4546
4202
  numberOfBranches,
4547
4203
  onSwitchToBranch,
@@ -4552,7 +4208,7 @@ function CopilotChatUserMessage({ message, onEditMessage, branchIndex, numberOfB
4552
4208
  numberOfBranches: numberOfBranches ?? 1,
4553
4209
  canSwitch: onSwitchToBranch !== void 0
4554
4210
  });
4555
- const BoundToolbar = require_MarkdownSurfaces.renderSlot(toolbar, CopilotChatUserMessage.Toolbar, { children: /* @__PURE__ */ (0, react_jsx_runtime.jsxs)("div", {
4211
+ const BoundToolbar = require_ProviderMarkdown.renderSlot(toolbar, CopilotChatUserMessage.Toolbar, { children: /* @__PURE__ */ (0, react_jsx_runtime.jsxs)("div", {
4556
4212
  className: "cpk-user-message-toolbar-items",
4557
4213
  children: [
4558
4214
  additionalToolbarItems,
@@ -4642,10 +4298,10 @@ function CopilotChatUserMessage({ message, onEditMessage, branchIndex, numberOfB
4642
4298
  },
4643
4299
  className,
4644
4300
  ...props,
4645
- children: copied ? /* @__PURE__ */ (0, react_jsx_runtime.jsx)(require_MarkdownSurfaces.CopilotIcon, {
4301
+ children: copied ? /* @__PURE__ */ (0, react_jsx_runtime.jsx)(require_ProviderMarkdown.CopilotIcon, {
4646
4302
  name: "Check",
4647
4303
  className: "cpk-user-message-toolbar-icon"
4648
- }) : /* @__PURE__ */ (0, react_jsx_runtime.jsx)(require_MarkdownSurfaces.CopilotIcon, {
4304
+ }) : /* @__PURE__ */ (0, react_jsx_runtime.jsx)(require_ProviderMarkdown.CopilotIcon, {
4649
4305
  name: "Copy",
4650
4306
  className: "cpk-user-message-toolbar-icon"
4651
4307
  })
@@ -4658,7 +4314,7 @@ function CopilotChatUserMessage({ message, onEditMessage, branchIndex, numberOfB
4658
4314
  title: title || labels.userMessageToolbarEditMessageLabel,
4659
4315
  className,
4660
4316
  ...props,
4661
- children: /* @__PURE__ */ (0, react_jsx_runtime.jsx)(require_MarkdownSurfaces.CopilotIcon, {
4317
+ children: /* @__PURE__ */ (0, react_jsx_runtime.jsx)(require_ProviderMarkdown.CopilotIcon, {
4662
4318
  name: "Edit",
4663
4319
  className: "cpk-user-message-toolbar-icon"
4664
4320
  })
@@ -4688,7 +4344,7 @@ function CopilotChatUserMessage({ message, onEditMessage, branchIndex, numberOfB
4688
4344
  disabled: !canGoPrev,
4689
4345
  className: "cpk-user-message-branch-button",
4690
4346
  "aria-label": labels.userMessageToolbarPreviousBranchLabel,
4691
- children: /* @__PURE__ */ (0, react_jsx_runtime.jsx)(require_MarkdownSurfaces.CopilotIcon, {
4347
+ children: /* @__PURE__ */ (0, react_jsx_runtime.jsx)(require_ProviderMarkdown.CopilotIcon, {
4692
4348
  name: "ChevronLeft",
4693
4349
  className: "cpk-user-message-branch-icon"
4694
4350
  })
@@ -4712,7 +4368,7 @@ function CopilotChatUserMessage({ message, onEditMessage, branchIndex, numberOfB
4712
4368
  disabled: !canGoNext,
4713
4369
  className: "cpk-user-message-branch-button",
4714
4370
  "aria-label": labels.userMessageToolbarNextBranchLabel,
4715
- children: /* @__PURE__ */ (0, react_jsx_runtime.jsx)(require_MarkdownSurfaces.CopilotIcon, {
4371
+ children: /* @__PURE__ */ (0, react_jsx_runtime.jsx)(require_ProviderMarkdown.CopilotIcon, {
4716
4372
  name: "ChevronRight",
4717
4373
  className: "cpk-user-message-branch-icon"
4718
4374
  })
@@ -4755,7 +4411,7 @@ function CopilotChatReasoningMessage({ message, messages, isRunning, isLatest: i
4755
4411
  isStreaming,
4756
4412
  elapsedSeconds: elapsed
4757
4413
  }, labels);
4758
- const boundHeader = require_MarkdownSurfaces.renderSlot(header, CopilotChatReasoningMessage.Header, {
4414
+ const boundHeader = require_ProviderMarkdown.renderSlot(header, CopilotChatReasoningMessage.Header, {
4759
4415
  isOpen,
4760
4416
  label,
4761
4417
  hasContent,
@@ -4763,12 +4419,12 @@ function CopilotChatReasoningMessage({ message, messages, isRunning, isLatest: i
4763
4419
  elapsedSeconds: elapsed,
4764
4420
  onClick: handleToggle
4765
4421
  });
4766
- const boundContent = require_MarkdownSurfaces.renderSlot(contentView, CopilotChatReasoningMessage.Content, {
4422
+ const boundContent = require_ProviderMarkdown.renderSlot(contentView, CopilotChatReasoningMessage.Content, {
4767
4423
  isStreaming,
4768
4424
  hasContent,
4769
4425
  children: message.content
4770
4426
  });
4771
- const boundToggle = require_MarkdownSurfaces.renderSlot(toggle, CopilotChatReasoningMessage.Toggle, {
4427
+ const boundToggle = require_ProviderMarkdown.renderSlot(toggle, CopilotChatReasoningMessage.Toggle, {
4772
4428
  isOpen,
4773
4429
  children: boundContent
4774
4430
  });
@@ -4809,7 +4465,7 @@ function CopilotChatReasoningMessage({ message, messages, isRunning, isLatest: i
4809
4465
  children: /* @__PURE__ */ (0, react_jsx_runtime.jsx)("span", { className: "cpk-reasoning-message-indicator-dot" })
4810
4466
  }),
4811
4467
  headerChildren,
4812
- isExpandable && /* @__PURE__ */ (0, react_jsx_runtime.jsx)(require_MarkdownSurfaces.CopilotIcon, {
4468
+ isExpandable && /* @__PURE__ */ (0, react_jsx_runtime.jsx)(require_ProviderMarkdown.CopilotIcon, {
4813
4469
  name: "ChevronRight",
4814
4470
  className: (0, _copilotkit_core.ɵcn)("cpk-reasoning-message-chevron", isOpen && "cpk-reasoning-message-chevron-open")
4815
4471
  })
@@ -4823,7 +4479,7 @@ function CopilotChatReasoningMessage({ message, messages, isRunning, isLatest: i
4823
4479
  ...contentProps,
4824
4480
  children: /* @__PURE__ */ (0, react_jsx_runtime.jsxs)("div", {
4825
4481
  className: "cpk-reasoning-message-text",
4826
- children: [/* @__PURE__ */ (0, react_jsx_runtime.jsx)(require_MarkdownSurfaces.StreamingMarkdownDefaultRenderer, {
4482
+ children: [/* @__PURE__ */ (0, react_jsx_runtime.jsx)(require_ProviderMarkdown.StreamingMarkdownDefaultRenderer, {
4827
4483
  content: typeof contentChildren === "string" ? contentChildren : "",
4828
4484
  isStreaming
4829
4485
  }), isStreaming && hasContent && /* @__PURE__ */ (0, react_jsx_runtime.jsx)("span", {
@@ -4866,7 +4522,7 @@ const CopilotChatSuggestionPill = react.default.forwardRef(function CopilotChatS
4866
4522
  ...props,
4867
4523
  children: [isLoading ? /* @__PURE__ */ (0, react_jsx_runtime.jsx)("span", {
4868
4524
  className: "cpk-suggestion-pill-icon",
4869
- children: /* @__PURE__ */ (0, react_jsx_runtime.jsx)(require_MarkdownSurfaces.CopilotIcon, {
4525
+ children: /* @__PURE__ */ (0, react_jsx_runtime.jsx)(require_ProviderMarkdown.CopilotIcon, {
4870
4526
  name: "Loader2",
4871
4527
  className: "cpk-suggestion-pill-spinner",
4872
4528
  "aria-hidden": "true"
@@ -4898,14 +4554,14 @@ const CopilotChatSuggestionView = react.default.forwardRef(function CopilotChatS
4898
4554
  if (!loadingIndexes || loadingIndexes.length === 0) return /* @__PURE__ */ new Set();
4899
4555
  return new Set(loadingIndexes);
4900
4556
  }, [loadingIndexes]);
4901
- const ContainerElement = require_MarkdownSurfaces.renderSlot(container, DefaultContainer, {
4557
+ const ContainerElement = require_ProviderMarkdown.renderSlot(container, DefaultContainer, {
4902
4558
  ref,
4903
4559
  className,
4904
4560
  ...restProps
4905
4561
  });
4906
4562
  const suggestionElements = suggestions.map((suggestion, index) => {
4907
4563
  const isLoading = loadingSet.has(index) || suggestion.isLoading === true;
4908
- const pill = require_MarkdownSurfaces.renderSlot(suggestionSlot, CopilotChatSuggestionPill, {
4564
+ const pill = require_ProviderMarkdown.renderSlot(suggestionSlot, CopilotChatSuggestionPill, {
4909
4565
  children: suggestion.title,
4910
4566
  className: suggestion.className,
4911
4567
  isLoading,
@@ -4916,7 +4572,7 @@ const CopilotChatSuggestionView = react.default.forwardRef(function CopilotChatS
4916
4572
  });
4917
4573
  const boundContainer = react.default.cloneElement(ContainerElement, void 0, suggestionElements);
4918
4574
  if (typeof children === "function") {
4919
- const sampleSuggestion = require_MarkdownSurfaces.renderSlot(suggestionSlot, CopilotChatSuggestionPill, {
4575
+ const sampleSuggestion = require_ProviderMarkdown.renderSlot(suggestionSlot, CopilotChatSuggestionPill, {
4920
4576
  children: suggestions[0]?.title ?? "",
4921
4577
  isLoading: suggestions.length > 0 ? loadingSet.has(0) || suggestions[0]?.isLoading === true : false,
4922
4578
  type: "button"
@@ -5032,7 +4688,7 @@ function CopilotChatWorkSummary({ isWorking, isOpen, calls, elapsedMs, workingSi
5032
4688
  className: "cpk-work-summary-failed",
5033
4689
  children: text.failed
5034
4690
  }),
5035
- /* @__PURE__ */ (0, react_jsx_runtime.jsx)(require_MarkdownSurfaces.CopilotIcon, {
4691
+ /* @__PURE__ */ (0, react_jsx_runtime.jsx)(require_ProviderMarkdown.CopilotIcon, {
5036
4692
  name: "ChevronRight",
5037
4693
  "aria-hidden": "true",
5038
4694
  className: (0, _copilotkit_core.ɵcn)("cpk-work-summary-chevron", isOpen && "cpk-work-summary-chevron-open")
@@ -5321,7 +4977,7 @@ function IntelligenceIndicator(props) {
5321
4977
  if (phase === "hidden") return null;
5322
4978
  if (message.role !== "assistant") return null;
5323
4979
  if (!messageHasMatchingToolCall(message)) return null;
5324
- return require_MarkdownSurfaces.renderSlot(intelligenceIndicator, IntelligenceIndicatorView, {
4980
+ return require_ProviderMarkdown.renderSlot(intelligenceIndicator, IntelligenceIndicatorView, {
5325
4981
  message,
5326
4982
  status: phase === "finished" ? "finished" : "in-progress",
5327
4983
  label
@@ -5335,7 +4991,7 @@ function IntelligenceIndicator(props) {
5335
4991
  * slot forms: a component type, a className string, or a partial-props object.
5336
4992
  */
5337
4993
  function resolveSlotComponent(slot, DefaultComponent) {
5338
- if (require_MarkdownSurfaces.isReactComponentType(slot)) return {
4994
+ if (require_ProviderMarkdown.isReactComponentType(slot)) return {
5339
4995
  Component: slot,
5340
4996
  slotProps: void 0
5341
4997
  };
@@ -5538,7 +5194,7 @@ function CopilotChatMessageView({ messages = [], assistantMessage, userMessage,
5538
5194
  open: working || calls.length > 0,
5539
5195
  children: /* @__PURE__ */ (0, react_jsx_runtime.jsx)("div", {
5540
5196
  className: "cpk-message-view-work-summary",
5541
- children: require_MarkdownSurfaces.renderSlot(workSummary, CopilotChatWorkSummary, {
5197
+ children: require_ProviderMarkdown.renderSlot(workSummary, CopilotChatWorkSummary, {
5542
5198
  isWorking: working,
5543
5199
  isOpen: open,
5544
5200
  calls,
@@ -6079,7 +5735,7 @@ function CopilotChatMessageView({ messages = [], assistantMessage, userMessage,
6079
5735
  pendingWorkSummary && renderWorkSummary(latestTurnKey, []),
6080
5736
  showCursor && /* @__PURE__ */ (0, react_jsx_runtime.jsx)("div", {
6081
5737
  className: "cpk-message-view-cursor-container",
6082
- children: require_MarkdownSurfaces.renderSlot(cursor, CopilotChatMessageView.Cursor, {})
5738
+ children: require_ProviderMarkdown.renderSlot(cursor, CopilotChatMessageView.Cursor, {})
6083
5739
  })
6084
5740
  ]
6085
5741
  })
@@ -6202,7 +5858,7 @@ function VideoPreview({ attachment }) {
6202
5858
  "aria-label": labels.attachmentPlayVideoButtonLabel,
6203
5859
  children: /* @__PURE__ */ (0, react_jsx_runtime.jsx)("div", {
6204
5860
  className: "cpk-attachment-queue-video-play-badge",
6205
- children: /* @__PURE__ */ (0, react_jsx_runtime.jsx)(require_MarkdownSurfaces.CopilotIcon, {
5861
+ children: /* @__PURE__ */ (0, react_jsx_runtime.jsx)(require_ProviderMarkdown.CopilotIcon, {
6206
5862
  name: "Play",
6207
5863
  className: "cpk-attachment-queue-video-play-icon"
6208
5864
  })
@@ -6398,7 +6054,7 @@ function DropOverlay() {
6398
6054
  className: "cpk-chat-view-drop-overlay",
6399
6055
  children: /* @__PURE__ */ (0, react_jsx_runtime.jsxs)("div", {
6400
6056
  className: "cpk-chat-view-drop-overlay-content",
6401
- children: [/* @__PURE__ */ (0, react_jsx_runtime.jsx)(require_MarkdownSurfaces.CopilotIcon, {
6057
+ children: [/* @__PURE__ */ (0, react_jsx_runtime.jsx)(require_ProviderMarkdown.CopilotIcon, {
6402
6058
  name: "Upload",
6403
6059
  className: "cpk-chat-view-drop-overlay-icon"
6404
6060
  }), /* @__PURE__ */ (0, react_jsx_runtime.jsx)("span", {
@@ -6436,12 +6092,12 @@ function CopilotChatView({ messageView, input, scrollView, suggestionView, welco
6436
6092
  setIsResizing(state.isResizing);
6437
6093
  });
6438
6094
  }, [inputContainerEl]);
6439
- const BoundMessageView = require_MarkdownSurfaces.renderSlot(messageView, CopilotChatMessageView, {
6095
+ const BoundMessageView = require_ProviderMarkdown.renderSlot(messageView, CopilotChatMessageView, {
6440
6096
  messages,
6441
6097
  isRunning,
6442
6098
  intelligenceIndicator
6443
6099
  });
6444
- const BoundInput = require_MarkdownSurfaces.renderSlot(input, CopilotChatInput_default, {
6100
+ const BoundInput = require_ProviderMarkdown.renderSlot(input, CopilotChatInput_default, {
6445
6101
  onSubmitMessage,
6446
6102
  onStop,
6447
6103
  mode: inputMode,
@@ -6468,14 +6124,14 @@ function CopilotChatView({ messageView, input, scrollView, suggestionView, welco
6468
6124
  inputContainerHeight,
6469
6125
  connectingIndicatorEnabled: connectingIndicator !== false
6470
6126
  });
6471
- const BoundSuggestionView = hasSuggestions ? require_MarkdownSurfaces.renderSlot(suggestionView, CopilotChatSuggestionView, {
6127
+ const BoundSuggestionView = hasSuggestions ? require_ProviderMarkdown.renderSlot(suggestionView, CopilotChatSuggestionView, {
6472
6128
  suggestions,
6473
6129
  loadingIndexes: suggestionLoadingIndexes,
6474
6130
  onSelectSuggestion,
6475
6131
  className: "cpk-chat-view-suggestion-view"
6476
6132
  }) : null;
6477
- const BoundConnectingIndicator = showConnectingIndicator ? require_MarkdownSurfaces.renderSlot(typeof connectingIndicator === "boolean" ? void 0 : connectingIndicator, CopilotChatView.ConnectingIndicator, {}) : null;
6478
- const BoundScrollView = require_MarkdownSurfaces.renderSlot(scrollView, CopilotChatView.ScrollView, {
6133
+ const BoundConnectingIndicator = showConnectingIndicator ? require_ProviderMarkdown.renderSlot(typeof connectingIndicator === "boolean" ? void 0 : connectingIndicator, CopilotChatView.ConnectingIndicator, {}) : null;
6134
+ const BoundScrollView = require_ProviderMarkdown.renderSlot(scrollView, CopilotChatView.ScrollView, {
6479
6135
  autoScroll,
6480
6136
  scrollThreadId,
6481
6137
  inputContainerHeight,
@@ -6497,7 +6153,7 @@ function CopilotChatView({ messageView, input, scrollView, suggestionView, welco
6497
6153
  })
6498
6154
  });
6499
6155
  if (showWelcomeScreen) {
6500
- const BoundInputForWelcome = require_MarkdownSurfaces.renderSlot(input, CopilotChatInput_default, {
6156
+ const BoundInputForWelcome = require_ProviderMarkdown.renderSlot(input, CopilotChatInput_default, {
6501
6157
  onSubmitMessage,
6502
6158
  onStop,
6503
6159
  mode: inputMode,
@@ -6521,7 +6177,7 @@ function CopilotChatView({ messageView, input, scrollView, suggestionView, welco
6521
6177
  className: "cpk-chat-view-welcome-attachment-queue"
6522
6178
  }), BoundInputForWelcome]
6523
6179
  });
6524
- const BoundWelcomeScreen = require_MarkdownSurfaces.renderSlot(welcomeScreenSlot, CopilotChatView.WelcomeScreen, {
6180
+ const BoundWelcomeScreen = require_ProviderMarkdown.renderSlot(welcomeScreenSlot, CopilotChatView.WelcomeScreen, {
6525
6181
  input: inputWithAttachments,
6526
6182
  suggestionView: BoundSuggestionView ?? /* @__PURE__ */ (0, react_jsx_runtime.jsx)(react_jsx_runtime.Fragment, {})
6527
6183
  });
@@ -6675,7 +6331,7 @@ function CopilotChatView({ messageView, input, scrollView, suggestionView, welco
6675
6331
  previousScrollThreadId.current = scrollThreadId;
6676
6332
  startBottomPin(true);
6677
6333
  }, [scrollThreadId, startBottomPin]);
6678
- const BoundFeather = require_MarkdownSurfaces.renderSlot(feather, CopilotChatView.Feather, {});
6334
+ const BoundFeather = require_ProviderMarkdown.renderSlot(feather, CopilotChatView.Feather, {});
6679
6335
  return /* @__PURE__ */ (0, react_jsx_runtime.jsx)(ScrollElementContext.Provider, {
6680
6336
  value: scrollEl,
6681
6337
  children: /* @__PURE__ */ (0, react_jsx_runtime.jsx)(ScrollPinnedContext.Provider, {
@@ -6696,7 +6352,7 @@ function CopilotChatView({ messageView, input, scrollView, suggestionView, welco
6696
6352
  !isAtBottom && !isResizing && /* @__PURE__ */ (0, react_jsx_runtime.jsx)("div", {
6697
6353
  className: "cpk-chat-view-scroll-to-bottom",
6698
6354
  style: { bottom: `${inputContainerHeight + SCROLL_BUTTON_OFFSET}px` },
6699
- children: require_MarkdownSurfaces.renderSlot(scrollToBottomButton, CopilotChatView.ScrollToBottomButton, { onClick: () => startBottomPin() })
6355
+ children: require_ProviderMarkdown.renderSlot(scrollToBottomButton, CopilotChatView.ScrollToBottomButton, { onClick: () => startBottomPin() })
6700
6356
  })
6701
6357
  ] })
6702
6358
  })
@@ -6710,7 +6366,7 @@ function CopilotChatView({ messageView, input, scrollView, suggestionView, welco
6710
6366
  spacerRef,
6711
6367
  topOffset: 16
6712
6368
  });
6713
- const BoundFeather = require_MarkdownSurfaces.renderSlot(feather, CopilotChatView.Feather, {});
6369
+ const BoundFeather = require_ProviderMarkdown.renderSlot(feather, CopilotChatView.Feather, {});
6714
6370
  return /* @__PURE__ */ (0, react_jsx_runtime.jsx)(ScrollElementContext.Provider, {
6715
6371
  value: nonAutoScrollEl,
6716
6372
  children: /* @__PURE__ */ (0, react_jsx_runtime.jsxs)("div", {
@@ -6738,7 +6394,7 @@ function CopilotChatView({ messageView, input, scrollView, suggestionView, welco
6738
6394
  showScrollButton && !isResizing && /* @__PURE__ */ (0, react_jsx_runtime.jsx)("div", {
6739
6395
  className: "cpk-chat-view-scroll-to-bottom",
6740
6396
  style: { bottom: `${inputContainerHeight + SCROLL_BUTTON_OFFSET}px` },
6741
- children: require_MarkdownSurfaces.renderSlot(scrollToBottomButton, CopilotChatView.ScrollToBottomButton, { onClick: () => scrollToBottom() })
6397
+ children: require_ProviderMarkdown.renderSlot(scrollToBottomButton, CopilotChatView.ScrollToBottomButton, { onClick: () => scrollToBottom() })
6742
6398
  })
6743
6399
  ]
6744
6400
  })
@@ -6791,7 +6447,7 @@ function CopilotChatView({ messageView, input, scrollView, suggestionView, welco
6791
6447
  })
6792
6448
  });
6793
6449
  if (mode === "none") {
6794
- const BoundFeather = require_MarkdownSurfaces.renderSlot(feather, CopilotChatView.Feather, {});
6450
+ const BoundFeather = require_ProviderMarkdown.renderSlot(feather, CopilotChatView.Feather, {});
6795
6451
  return /* @__PURE__ */ (0, react_jsx_runtime.jsx)(ScrollElementContext.Provider, {
6796
6452
  value: nonAutoScrollEl,
6797
6453
  children: /* @__PURE__ */ (0, react_jsx_runtime.jsxs)("div", {
@@ -6808,7 +6464,7 @@ function CopilotChatView({ messageView, input, scrollView, suggestionView, welco
6808
6464
  showScrollButton && !isResizing && /* @__PURE__ */ (0, react_jsx_runtime.jsx)("div", {
6809
6465
  className: "cpk-chat-view-scroll-to-bottom",
6810
6466
  style: { bottom: `${inputContainerHeight + SCROLL_BUTTON_OFFSET}px` },
6811
- children: require_MarkdownSurfaces.renderSlot(scrollToBottomButton, CopilotChatView.ScrollToBottomButton, { onClick: () => scrollToBottom() })
6467
+ children: require_ProviderMarkdown.renderSlot(scrollToBottomButton, CopilotChatView.ScrollToBottomButton, { onClick: () => scrollToBottom() })
6812
6468
  })
6813
6469
  ]
6814
6470
  })
@@ -6853,7 +6509,7 @@ function CopilotChatView({ messageView, input, scrollView, suggestionView, welco
6853
6509
  className: (0, _copilotkit_core.ɵcn)("cpk-chat-view-scroll-to-bottom-button", className),
6854
6510
  "aria-label": labels.chatScrollToBottomLabel,
6855
6511
  ...props,
6856
- children: /* @__PURE__ */ (0, react_jsx_runtime.jsx)(require_MarkdownSurfaces.CopilotIcon, {
6512
+ children: /* @__PURE__ */ (0, react_jsx_runtime.jsx)(require_ProviderMarkdown.CopilotIcon, {
6857
6513
  name: "ChevronDown",
6858
6514
  className: "cpk-chat-view-scroll-to-bottom-icon"
6859
6515
  })
@@ -6870,7 +6526,7 @@ function CopilotChatView({ messageView, input, scrollView, suggestionView, welco
6870
6526
  role: "status",
6871
6527
  className: (0, _copilotkit_core.ɵcn)("cpk-chat-view-connecting-indicator", className),
6872
6528
  ...props,
6873
- children: [/* @__PURE__ */ (0, react_jsx_runtime.jsx)(require_MarkdownSurfaces.CopilotIcon, {
6529
+ children: [/* @__PURE__ */ (0, react_jsx_runtime.jsx)(require_ProviderMarkdown.CopilotIcon, {
6874
6530
  name: "Loader2",
6875
6531
  className: "cpk-chat-view-connecting-spinner"
6876
6532
  }), /* @__PURE__ */ (0, react_jsx_runtime.jsx)("span", {
@@ -6888,7 +6544,7 @@ function CopilotChatView({ messageView, input, scrollView, suggestionView, welco
6888
6544
  });
6889
6545
  };
6890
6546
  _CopilotChatView.WelcomeScreen = ({ welcomeMessage, input, suggestionView, className, children, ...props }) => {
6891
- const BoundWelcomeMessage = require_MarkdownSurfaces.renderSlot(welcomeMessage, CopilotChatView.WelcomeMessage, {});
6547
+ const BoundWelcomeMessage = require_ProviderMarkdown.renderSlot(welcomeMessage, CopilotChatView.WelcomeMessage, {});
6892
6548
  if (children) return /* @__PURE__ */ (0, react_jsx_runtime.jsx)("div", {
6893
6549
  "data-copilotkit": true,
6894
6550
  style: { display: "contents" },
@@ -7294,8 +6950,8 @@ function CopilotChat({ agentId, threadId, labels, inspectorTools, chatView, isMo
7294
6950
  setTranscribeMode("input");
7295
6951
  }, []);
7296
6952
  const handleFinishTranscribeWithAudio = (0, react.useCallback)((audioBlob) => submitter.transcribe(audioBlob), [submitter]);
7297
- const stableMessageView = require_chat.useShallowStableRef(typeof providedMessageView === "string" ? { className: providedMessageView } : providedMessageView);
7298
- const stableSuggestionView = require_chat.useShallowStableRef(providedSuggestionView);
6953
+ const stableMessageView = require_accessibility.useShallowStableRef(typeof providedMessageView === "string" ? { className: providedMessageView } : providedMessageView);
6954
+ const stableSuggestionView = require_accessibility.useShallowStableRef(providedSuggestionView);
7299
6955
  const handleAddFile = (0, react.useCallback)(() => {
7300
6956
  setTimeout(() => {
7301
6957
  fileInputRef.current?.click();
@@ -7316,7 +6972,7 @@ function CopilotChat({ agentId, threadId, labels, inspectorTools, chatView, isMo
7316
6972
  const messages = (0, react.useMemo)(() => [...agent.messages], [(0, _copilotkit_core.ɵmessagesFingerprint)(agent.messages)]);
7317
6973
  const [lastUserMessageTracker] = (0, react.useState)(() => (0, _copilotkit_core.ɵcreateLastUserMessageTracker)(messages));
7318
6974
  const lastUserMessageState = lastUserMessageTracker.update(messages);
7319
- const RenderedChatView = require_MarkdownSurfaces.renderSlot(chatView, CopilotChatView, {
6975
+ const RenderedChatView = require_ProviderMarkdown.renderSlot(chatView, CopilotChatView, {
7320
6976
  ...mergedProps,
7321
6977
  messages,
7322
6978
  onSubmitMessage: isReady ? onSubmitInput : void 0,
@@ -7398,14 +7054,14 @@ function CopilotChat({ agentId, threadId, labels, inspectorTools, chatView, isMo
7398
7054
  //#endregion
7399
7055
  //#region src/components/chat/CopilotChatToggleButton.tsx
7400
7056
  const ICON_CLASS = "cpk-chat-toggle-button-icon";
7401
- const DefaultOpenIcon = ({ className, ...props }) => /* @__PURE__ */ (0, react_jsx_runtime.jsx)(require_MarkdownSurfaces.CopilotIcon, {
7057
+ const DefaultOpenIcon = ({ className, ...props }) => /* @__PURE__ */ (0, react_jsx_runtime.jsx)(require_ProviderMarkdown.CopilotIcon, {
7402
7058
  className: className ?? ICON_CLASS,
7403
7059
  strokeWidth: 1.75,
7404
7060
  fill: "currentColor",
7405
7061
  ...props,
7406
7062
  name: "MessageCircle"
7407
7063
  });
7408
- const DefaultCloseIcon = ({ className, ...props }) => /* @__PURE__ */ (0, react_jsx_runtime.jsx)(require_MarkdownSurfaces.CopilotIcon, {
7064
+ const DefaultCloseIcon = ({ className, ...props }) => /* @__PURE__ */ (0, react_jsx_runtime.jsx)(require_ProviderMarkdown.CopilotIcon, {
7409
7065
  className: className ?? ICON_CLASS,
7410
7066
  strokeWidth: 1.75,
7411
7067
  ...props,
@@ -7428,12 +7084,12 @@ const CopilotChatToggleButton = react.default.forwardRef(function CopilotChatTog
7428
7084
  if (event.defaultPrevented) return;
7429
7085
  setModalOpen(!isOpen);
7430
7086
  };
7431
- const renderedOpenIcon = require_MarkdownSurfaces.renderSlot(openIcon, DefaultOpenIcon, {
7087
+ const renderedOpenIcon = require_ProviderMarkdown.renderSlot(openIcon, DefaultOpenIcon, {
7432
7088
  className: ICON_CLASS,
7433
7089
  "aria-hidden": true,
7434
7090
  focusable: false
7435
7091
  });
7436
- const renderedCloseIcon = require_MarkdownSurfaces.renderSlot(closeIcon, DefaultCloseIcon, {
7092
+ const renderedCloseIcon = require_ProviderMarkdown.renderSlot(closeIcon, DefaultCloseIcon, {
7437
7093
  className: ICON_CLASS,
7438
7094
  "aria-hidden": true,
7439
7095
  focusable: false
@@ -7538,9 +7194,9 @@ function CopilotModalHeader({ title, titleContent, closeButton, drawerLauncher,
7538
7194
  const handleToggleDrawer = (0, react.useCallback)(() => {
7539
7195
  configuration?.setDrawerOpen?.(!configuration.drawerOpen);
7540
7196
  }, [configuration]);
7541
- const BoundTitle = require_MarkdownSurfaces.renderSlot(titleContent, CopilotModalHeader.Title, { children: resolvedTitle });
7542
- const BoundCloseButton = require_MarkdownSurfaces.renderSlot(closeButton, CopilotModalHeader.CloseButton, { onClick: handleClose });
7543
- const BoundDrawerLauncher = drawerRegistered ? require_MarkdownSurfaces.renderSlot(drawerLauncher, CopilotModalHeader.DrawerLauncher, {
7197
+ const BoundTitle = require_ProviderMarkdown.renderSlot(titleContent, CopilotModalHeader.Title, { children: resolvedTitle });
7198
+ const BoundCloseButton = require_ProviderMarkdown.renderSlot(closeButton, CopilotModalHeader.CloseButton, { onClick: handleClose });
7199
+ const BoundDrawerLauncher = drawerRegistered ? require_ProviderMarkdown.renderSlot(drawerLauncher, CopilotModalHeader.DrawerLauncher, {
7544
7200
  onClick: handleToggleDrawer,
7545
7201
  "aria-expanded": configuration?.drawerOpen ?? false
7546
7202
  }) : null;
@@ -7591,7 +7247,7 @@ CopilotModalHeader.displayName = "CopilotModalHeader";
7591
7247
  className: (0, _copilotkit_core.ɵcn)("cpk-modal-header-close-button", className),
7592
7248
  "aria-label": labels.modalHeaderCloseButtonLabel,
7593
7249
  ...props,
7594
- children: /* @__PURE__ */ (0, react_jsx_runtime.jsx)(require_MarkdownSurfaces.CopilotIcon, {
7250
+ children: /* @__PURE__ */ (0, react_jsx_runtime.jsx)(require_ProviderMarkdown.CopilotIcon, {
7595
7251
  name: "X",
7596
7252
  className: "cpk-modal-header-close-icon",
7597
7253
  "aria-hidden": "true"
@@ -7606,7 +7262,7 @@ CopilotModalHeader.displayName = "CopilotModalHeader";
7606
7262
  className: (0, _copilotkit_core.ɵcn)("cpk-modal-header-drawer-launcher", className),
7607
7263
  "aria-label": labels.modalHeaderThreadsButtonLabel,
7608
7264
  ...props,
7609
- children: /* @__PURE__ */ (0, react_jsx_runtime.jsx)(require_MarkdownSurfaces.CopilotIcon, {
7265
+ children: /* @__PURE__ */ (0, react_jsx_runtime.jsx)(require_ProviderMarkdown.CopilotIcon, {
7610
7266
  name: "PanelLeftOpen",
7611
7267
  className: "cpk-modal-header-drawer-launcher-icon",
7612
7268
  "aria-hidden": "true"
@@ -7676,8 +7332,8 @@ function CopilotSidebarViewInternal({ header, toggleButton, width, position = "r
7676
7332
  position,
7677
7333
  widthCss
7678
7334
  ]);
7679
- const headerElement = require_MarkdownSurfaces.renderSlot(header, CopilotModalHeader, {});
7680
- return /* @__PURE__ */ (0, react_jsx_runtime.jsxs)(react_jsx_runtime.Fragment, { children: [require_MarkdownSurfaces.renderSlot(toggleButton, CopilotChatToggleButton, position === "left" ? { className: "cpk-sidebar-view-toggle-button-left" } : {}), /* @__PURE__ */ (0, react_jsx_runtime.jsx)("aside", {
7335
+ const headerElement = require_ProviderMarkdown.renderSlot(header, CopilotModalHeader, {});
7336
+ return /* @__PURE__ */ (0, react_jsx_runtime.jsxs)(react_jsx_runtime.Fragment, { children: [require_ProviderMarkdown.renderSlot(toggleButton, CopilotChatToggleButton, position === "left" ? { className: "cpk-sidebar-view-toggle-button-left" } : {}), /* @__PURE__ */ (0, react_jsx_runtime.jsx)("aside", {
7681
7337
  ref: sidebarRef,
7682
7338
  "data-copilotkit": true,
7683
7339
  "data-testid": "copilot-sidebar",
@@ -7705,7 +7361,7 @@ function CopilotSidebarViewInternal({ header, toggleButton, width, position = "r
7705
7361
  CopilotSidebarView.displayName = "CopilotSidebarView";
7706
7362
  (function(_CopilotSidebarView) {
7707
7363
  _CopilotSidebarView.WelcomeScreen = ({ welcomeMessage, input, suggestionView, className, children, ...props }) => {
7708
- const BoundWelcomeMessage = require_MarkdownSurfaces.renderSlot(welcomeMessage, CopilotChatView_default.WelcomeMessage, {});
7364
+ const BoundWelcomeMessage = require_ProviderMarkdown.renderSlot(welcomeMessage, CopilotChatView_default.WelcomeMessage, {});
7709
7365
  if (children) return /* @__PURE__ */ (0, react_jsx_runtime.jsx)("div", {
7710
7366
  "data-copilotkit": true,
7711
7367
  style: { display: "contents" },
@@ -7784,8 +7440,8 @@ function CopilotPopupViewInternal({ header, toggleButton, width, height, clickOu
7784
7440
  clickOutsideToClose,
7785
7441
  setModalOpen
7786
7442
  ]);
7787
- const headerElement = (0, react.useMemo)(() => require_MarkdownSurfaces.renderSlot(header, CopilotModalHeader, {}), [header]);
7788
- const toggleButtonElement = (0, react.useMemo)(() => require_MarkdownSurfaces.renderSlot(toggleButton, CopilotChatToggleButton, {}), [toggleButton]);
7443
+ const headerElement = (0, react.useMemo)(() => require_ProviderMarkdown.renderSlot(header, CopilotModalHeader, {}), [header]);
7444
+ const toggleButtonElement = (0, react.useMemo)(() => require_ProviderMarkdown.renderSlot(toggleButton, CopilotChatToggleButton, {}), [toggleButton]);
7789
7445
  const resolvedWidth = (0, _copilotkit_core.ɵdimensionToCss)(width, _copilotkit_core.ɵPOPUP_DEFAULT_WIDTH);
7790
7446
  const resolvedHeight = (0, _copilotkit_core.ɵdimensionToCss)(height, _copilotkit_core.ɵPOPUP_DEFAULT_HEIGHT);
7791
7447
  const popupStyle = (0, react.useMemo)(() => ({
@@ -7824,7 +7480,7 @@ function CopilotPopupViewInternal({ header, toggleButton, width, height, clickOu
7824
7480
  CopilotPopupView.displayName = "CopilotPopupView";
7825
7481
  (function(_CopilotPopupView) {
7826
7482
  _CopilotPopupView.WelcomeScreen = ({ welcomeMessage, input, suggestionView, className, children, ...props }) => {
7827
- const BoundWelcomeMessage = require_MarkdownSurfaces.renderSlot(welcomeMessage, CopilotChatView_default.WelcomeMessage, {});
7483
+ const BoundWelcomeMessage = require_ProviderMarkdown.renderSlot(welcomeMessage, CopilotChatView_default.WelcomeMessage, {});
7828
7484
  if (children) return /* @__PURE__ */ (0, react_jsx_runtime.jsx)("div", {
7829
7485
  "data-copilotkit": true,
7830
7486
  style: { display: "contents" },
@@ -8744,7 +8400,7 @@ Object.defineProperty(exports, 'MEMORY_ERROR_REGISTRY', {
8744
8400
  return _copilotkit_core.MEMORY_ERROR_REGISTRY;
8745
8401
  }
8746
8402
  });
8747
- exports.MarkdownRendererProvider = require_MarkdownSurfaces.MarkdownRendererProvider;
8403
+ exports.MarkdownRendererProvider = require_ProviderMarkdown.MarkdownRendererProvider;
8748
8404
  Object.defineProperty(exports, 'MemoryError', {
8749
8405
  enumerable: true,
8750
8406
  get: function () {
@@ -9032,7 +8688,7 @@ Object.defineProperty(exports, 'StepStartedEventSchema', {
9032
8688
  return _ag_ui_core_schemas.StepStartedEventSchema;
9033
8689
  }
9034
8690
  });
9035
- exports.StreamingMarkdownDefaultRenderer = require_MarkdownSurfaces.StreamingMarkdownDefaultRenderer;
8691
+ exports.StreamingMarkdownDefaultRenderer = require_ProviderMarkdown.StreamingMarkdownDefaultRenderer;
9036
8692
  Object.defineProperty(exports, 'SubagentErrorEventSchema', {
9037
8693
  enumerable: true,
9038
8694
  get: function () {
@@ -9263,12 +8919,6 @@ Object.defineProperty(exports, 'WebMCPRegistry', {
9263
8919
  }
9264
8920
  });
9265
8921
  exports.WildcardToolCallRender = WildcardToolCallRender;
9266
- Object.defineProperty(exports, 'a2uiDefaultTheme', {
9267
- enumerable: true,
9268
- get: function () {
9269
- return _copilotkit_a2ui_renderer.defaultTheme;
9270
- }
9271
- });
9272
8922
  Object.defineProperty(exports, 'aggregateTokenUsage', {
9273
8923
  enumerable: true,
9274
8924
  get: function () {
@@ -9323,7 +8973,6 @@ Object.defineProperty(exports, 'convertToLegacyEvents', {
9323
8973
  return _ag_ui_client.convertToLegacyEvents;
9324
8974
  }
9325
8975
  });
9326
- exports.createA2UIMessageRenderer = createA2UIMessageRenderer;
9327
8976
  Object.defineProperty(exports, 'createActionGroup', {
9328
8977
  enumerable: true,
9329
8978
  get: function () {
@@ -9672,7 +9321,7 @@ Object.defineProperty(exports, 'useLicenseContext', {
9672
9321
  return _copilotkit_react_core_context.useLicenseContext;
9673
9322
  }
9674
9323
  });
9675
- exports.useMarkdownRenderer = require_MarkdownSurfaces.useMarkdownRenderer;
9324
+ exports.useMarkdownRenderer = require_ProviderMarkdown.useMarkdownRenderer;
9676
9325
  exports.useMemories = useMemories;
9677
9326
  exports.useRenderActivityMessage = useRenderActivityMessage;
9678
9327
  exports.useRenderCustomMessages = useRenderCustomMessages;
@@ -9693,66 +9342,6 @@ Object.defineProperty(exports, 'withAuthoritativeActivityTypes', {
9693
9342
  return _ag_ui_client.withAuthoritativeActivityTypes;
9694
9343
  }
9695
9344
  });
9696
- Object.defineProperty(exports, 'ɵA2UIActivityController', {
9697
- enumerable: true,
9698
- get: function () {
9699
- return _copilotkit_core.ɵA2UIActivityController;
9700
- }
9701
- });
9702
- Object.defineProperty(exports, 'ɵA2UI_DEFAULT_SURFACE_ID', {
9703
- enumerable: true,
9704
- get: function () {
9705
- return _copilotkit_core.ɵA2UI_DEFAULT_SURFACE_ID;
9706
- }
9707
- });
9708
- Object.defineProperty(exports, 'ɵA2UI_LIFECYCLE_TEXT', {
9709
- enumerable: true,
9710
- get: function () {
9711
- return _copilotkit_core.ɵA2UI_LIFECYCLE_TEXT;
9712
- }
9713
- });
9714
- Object.defineProperty(exports, 'ɵA2UI_OPERATIONS_KEY', {
9715
- enumerable: true,
9716
- get: function () {
9717
- return _copilotkit_core.ɵA2UI_OPERATIONS_KEY;
9718
- }
9719
- });
9720
- Object.defineProperty(exports, 'ɵA2UI_PAINT_FALLBACK_MS', {
9721
- enumerable: true,
9722
- get: function () {
9723
- return _copilotkit_core.ɵA2UI_PAINT_FALLBACK_MS;
9724
- }
9725
- });
9726
- Object.defineProperty(exports, 'ɵA2UI_RECOVERY_DEFAULTS', {
9727
- enumerable: true,
9728
- get: function () {
9729
- return _copilotkit_core.ɵA2UI_RECOVERY_DEFAULTS;
9730
- }
9731
- });
9732
- Object.defineProperty(exports, 'ɵA2UI_ROOT_COMPONENT_ID', {
9733
- enumerable: true,
9734
- get: function () {
9735
- return _copilotkit_core.ɵA2UI_ROOT_COMPONENT_ID;
9736
- }
9737
- });
9738
- Object.defineProperty(exports, 'ɵA2UI_SKELETON_ROWS', {
9739
- enumerable: true,
9740
- get: function () {
9741
- return _copilotkit_core.ɵA2UI_SKELETON_ROWS;
9742
- }
9743
- });
9744
- Object.defineProperty(exports, 'ɵA2UI_SURFACE_ACTIVITY_TYPE', {
9745
- enumerable: true,
9746
- get: function () {
9747
- return _copilotkit_core.ɵA2UI_SURFACE_ACTIVITY_TYPE;
9748
- }
9749
- });
9750
- Object.defineProperty(exports, 'ɵA2UI_SURFACE_CONTENT_SCHEMA', {
9751
- enumerable: true,
9752
- get: function () {
9753
- return _copilotkit_core.ɵA2UI_SURFACE_CONTENT_SCHEMA;
9754
- }
9755
- });
9756
9345
  Object.defineProperty(exports, 'ɵALL_AGENT_UPDATES', {
9757
9346
  enumerable: true,
9758
9347
  get: function () {
@@ -10053,12 +9642,6 @@ Object.defineProperty(exports, 'ɵPlaceholderCycler', {
10053
9642
  return _copilotkit_core.ɵPlaceholderCycler;
10054
9643
  }
10055
9644
  });
10056
- Object.defineProperty(exports, 'ɵRENDER_A2UI_TOOL_NAME', {
10057
- enumerable: true,
10058
- get: function () {
10059
- return _copilotkit_core.ɵRENDER_A2UI_TOOL_NAME;
10060
- }
10061
- });
10062
9645
  Object.defineProperty(exports, 'ɵRESIZE_SETTLE_MS', {
10063
9646
  enumerable: true,
10064
9647
  get: function () {
@@ -10443,24 +10026,6 @@ Object.defineProperty(exports, 'ɵdescribeUnrenderedToolCalls', {
10443
10026
  return _copilotkit_core.ɵdescribeUnrenderedToolCalls;
10444
10027
  }
10445
10028
  });
10446
- Object.defineProperty(exports, 'ɵdiagnoseMissingSurface', {
10447
- enumerable: true,
10448
- get: function () {
10449
- return _copilotkit_core.ɵdiagnoseMissingSurface;
10450
- }
10451
- });
10452
- Object.defineProperty(exports, 'ɵdiagnoseUnpaintedSurface', {
10453
- enumerable: true,
10454
- get: function () {
10455
- return _copilotkit_core.ɵdiagnoseUnpaintedSurface;
10456
- }
10457
- });
10458
- Object.defineProperty(exports, 'ɵdiagnoseUnresolvedRoot', {
10459
- enumerable: true,
10460
- get: function () {
10461
- return _copilotkit_core.ɵdiagnoseUnresolvedRoot;
10462
- }
10463
- });
10464
10029
  Object.defineProperty(exports, 'ɵdimensionToCss', {
10465
10030
  enumerable: true,
10466
10031
  get: function () {
@@ -10533,18 +10098,6 @@ Object.defineProperty(exports, 'ɵflattenUserMessageContent', {
10533
10098
  return _copilotkit_core.ɵflattenUserMessageContent;
10534
10099
  }
10535
10100
  });
10536
- Object.defineProperty(exports, 'ɵformatA2UIDebugPayload', {
10537
- enumerable: true,
10538
- get: function () {
10539
- return _copilotkit_core.ɵformatA2UIDebugPayload;
10540
- }
10541
- });
10542
- Object.defineProperty(exports, 'ɵformatA2UIRetryLabel', {
10543
- enumerable: true,
10544
- get: function () {
10545
- return _copilotkit_core.ɵformatA2UIRetryLabel;
10546
- }
10547
- });
10548
10101
  Object.defineProperty(exports, 'ɵformatCountLabel', {
10549
10102
  enumerable: true,
10550
10103
  get: function () {
@@ -10581,24 +10134,6 @@ Object.defineProperty(exports, 'ɵformatWorkDuration', {
10581
10134
  return _copilotkit_core.ɵformatWorkDuration;
10582
10135
  }
10583
10136
  });
10584
- Object.defineProperty(exports, 'ɵgetA2UIOperationSurfaceId', {
10585
- enumerable: true,
10586
- get: function () {
10587
- return _copilotkit_core.ɵgetA2UIOperationSurfaceId;
10588
- }
10589
- });
10590
- Object.defineProperty(exports, 'ɵgetA2UIOperations', {
10591
- enumerable: true,
10592
- get: function () {
10593
- return _copilotkit_core.ɵgetA2UIOperations;
10594
- }
10595
- });
10596
- Object.defineProperty(exports, 'ɵgetA2UIProgressPhase', {
10597
- enumerable: true,
10598
- get: function () {
10599
- return _copilotkit_core.ɵgetA2UIProgressPhase;
10600
- }
10601
- });
10602
10137
  Object.defineProperty(exports, 'ɵgetAgentCapabilities', {
10603
10138
  enumerable: true,
10604
10139
  get: function () {
@@ -10773,12 +10308,6 @@ Object.defineProperty(exports, 'ɵgetWorkSummaryText', {
10773
10308
  return _copilotkit_core.ɵgetWorkSummaryText;
10774
10309
  }
10775
10310
  });
10776
- Object.defineProperty(exports, 'ɵgroupA2UIOperationsBySurface', {
10777
- enumerable: true,
10778
- get: function () {
10779
- return _copilotkit_core.ɵgroupA2UIOperationsBySurface;
10780
- }
10781
- });
10782
10311
  Object.defineProperty(exports, 'ɵhasAssistantMessageText', {
10783
10312
  enumerable: true,
10784
10313
  get: function () {
@@ -11073,12 +10602,6 @@ Object.defineProperty(exports, 'ɵpublicKeyHeaderDefaults', {
11073
10602
  return _copilotkit_core.ɵpublicKeyHeaderDefaults;
11074
10603
  }
11075
10604
  });
11076
- Object.defineProperty(exports, 'ɵreadA2UILifecycle', {
11077
- enumerable: true,
11078
- get: function () {
11079
- return _copilotkit_core.ɵreadA2UILifecycle;
11080
- }
11081
- });
11082
10605
  Object.defineProperty(exports, 'ɵreadKeyboardState', {
11083
10606
  enumerable: true,
11084
10607
  get: function () {
@@ -11127,18 +10650,6 @@ Object.defineProperty(exports, 'ɵresetMessageFeedbackCache', {
11127
10650
  return _copilotkit_core.ɵresetMessageFeedbackCache;
11128
10651
  }
11129
10652
  });
11130
- Object.defineProperty(exports, 'ɵresolveA2UIActivation', {
11131
- enumerable: true,
11132
- get: function () {
11133
- return _copilotkit_core.ɵresolveA2UIActivation;
11134
- }
11135
- });
11136
- Object.defineProperty(exports, 'ɵresolveA2UIDebugExposure', {
11137
- enumerable: true,
11138
- get: function () {
11139
- return _copilotkit_core.ɵresolveA2UIDebugExposure;
11140
- }
11141
- });
11142
10653
  Object.defineProperty(exports, 'ɵresolveActivityRenderer', {
11143
10654
  enumerable: true,
11144
10655
  get: function () {
@@ -11181,6 +10692,12 @@ Object.defineProperty(exports, 'ɵresolveCustomMessageRenderers', {
11181
10692
  return _copilotkit_core.ɵresolveCustomMessageRenderers;
11182
10693
  }
11183
10694
  });
10695
+ Object.defineProperty(exports, 'ɵresolveGenerativeUIDefault', {
10696
+ enumerable: true,
10697
+ get: function () {
10698
+ return _copilotkit_core.ɵresolveGenerativeUIDefault;
10699
+ }
10700
+ });
11184
10701
  Object.defineProperty(exports, 'ɵresolveLicenseState', {
11185
10702
  enumerable: true,
11186
10703
  get: function () {
@@ -11223,12 +10740,6 @@ Object.defineProperty(exports, 'ɵrmsAmplitude', {
11223
10740
  return _copilotkit_core.ɵrmsAmplitude;
11224
10741
  }
11225
10742
  });
11226
- Object.defineProperty(exports, 'ɵrunA2UIAction', {
11227
- enumerable: true,
11228
- get: function () {
11229
- return _copilotkit_core.ɵrunA2UIAction;
11230
- }
11231
- });
11232
10743
  Object.defineProperty(exports, 'ɵrunMcpFollowUp', {
11233
10744
  enumerable: true,
11234
10745
  get: function () {
@@ -11409,12 +10920,6 @@ Object.defineProperty(exports, 'ɵsubscribeToMessageFeedback', {
11409
10920
  return _copilotkit_core.ɵsubscribeToMessageFeedback;
11410
10921
  }
11411
10922
  });
11412
- Object.defineProperty(exports, 'ɵsurfaceHasRenderableContent', {
11413
- enumerable: true,
11414
- get: function () {
11415
- return _copilotkit_core.ɵsurfaceHasRenderableContent;
11416
- }
11417
- });
11418
10923
  Object.defineProperty(exports, 'ɵsyncRecorderToMode', {
11419
10924
  enumerable: true,
11420
10925
  get: function () {
@@ -11427,12 +10932,6 @@ Object.defineProperty(exports, 'ɵthreadAdapterEvents', {
11427
10932
  return _copilotkit_core.ɵthreadAdapterEvents;
11428
10933
  }
11429
10934
  });
11430
- Object.defineProperty(exports, 'ɵtoA2UIClientEvent', {
11431
- enumerable: true,
11432
- get: function () {
11433
- return _copilotkit_core.ɵtoA2UIClientEvent;
11434
- }
11435
- });
11436
10935
  Object.defineProperty(exports, 'ɵtoDefaultToolCallStatus', {
11437
10936
  enumerable: true,
11438
10937
  get: function () {