@copilotkit/vue 2.0.0-rc.1 → 2.0.0-rc.11

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 (317) hide show
  1. package/PARITY.md +13 -12
  2. package/README.md +1 -2
  3. package/dist/components/copilot-provider/CopilotKit.vue.d.ts +3 -1
  4. package/dist/components/copilot-provider/CopilotKit.vue.d.ts.map +1 -1
  5. package/dist/hooks/use-copilot-action.d.ts.map +1 -1
  6. package/dist/hooks/use-frontend-tool.d.ts +1 -1
  7. package/dist/hooks/use-frontend-tool.d.ts.map +1 -1
  8. package/dist/hooks/zod-parameters.d.ts +14 -0
  9. package/dist/hooks/zod-parameters.d.ts.map +1 -0
  10. package/dist/index.cjs +1 -76
  11. package/dist/index.cjs.map +1 -1
  12. package/dist/index.mjs +384 -14275
  13. package/dist/index.mjs.map +1 -1
  14. package/dist/use-render-activity-message-2np7y4Qt.cjs +92 -0
  15. package/dist/use-render-activity-message-2np7y4Qt.cjs.map +1 -0
  16. package/dist/use-render-activity-message-D59E9t0x.js +18097 -0
  17. package/dist/use-render-activity-message-D59E9t0x.js.map +1 -0
  18. package/dist/v2/components/A2UIMessageRenderer.d.ts +7 -0
  19. package/dist/v2/components/A2UIMessageRenderer.d.ts.map +1 -1
  20. package/dist/v2/components/A2UISurfaceActivityRenderer.vue.d.ts.map +1 -1
  21. package/dist/v2/components/LicenseWarningBanner.vue.d.ts.map +1 -1
  22. package/dist/v2/components/OpenGenerativeUIRenderer.d.ts +13 -45
  23. package/dist/v2/components/OpenGenerativeUIRenderer.d.ts.map +1 -1
  24. package/dist/v2/components/a2ui/A2UIBuiltInToolCallRenderer.d.ts +11 -2
  25. package/dist/v2/components/a2ui/A2UIBuiltInToolCallRenderer.d.ts.map +1 -1
  26. package/dist/v2/components/a2ui/A2UICatalogContext.d.ts +1 -1
  27. package/dist/v2/components/a2ui/A2UICatalogContext.d.ts.map +1 -1
  28. package/dist/v2/components/a2ui/A2UIRecoveryStates.d.ts +144 -0
  29. package/dist/v2/components/a2ui/A2UIRecoveryStates.d.ts.map +1 -0
  30. package/dist/v2/components/a2ui.d.ts +3 -7
  31. package/dist/v2/components/a2ui.d.ts.map +1 -1
  32. package/dist/v2/components/chat/CopilotChat.vue.d.ts +1 -0
  33. package/dist/v2/components/chat/CopilotChat.vue.d.ts.map +1 -1
  34. package/dist/v2/components/chat/CopilotChatAssistantMessage.vue.d.ts +3 -1
  35. package/dist/v2/components/chat/CopilotChatAssistantMessage.vue.d.ts.map +1 -1
  36. package/dist/v2/components/chat/CopilotChatAssistantToolbarButton.vue.d.ts +16 -0
  37. package/dist/v2/components/chat/CopilotChatAssistantToolbarButton.vue.d.ts.map +1 -0
  38. package/dist/v2/components/chat/CopilotChatAttachmentQueue.vue.d.ts.map +1 -1
  39. package/dist/v2/components/chat/CopilotChatAttachmentRenderer.vue.d.ts.map +1 -1
  40. package/dist/v2/components/chat/CopilotChatAudioRecorder.vue.d.ts.map +1 -1
  41. package/dist/v2/components/chat/CopilotChatFeedbackCommentPopover.vue.d.ts +22 -0
  42. package/dist/v2/components/chat/CopilotChatFeedbackCommentPopover.vue.d.ts.map +1 -0
  43. package/dist/v2/components/chat/CopilotChatInput.vue.d.ts +21 -232
  44. package/dist/v2/components/chat/CopilotChatInput.vue.d.ts.map +1 -1
  45. package/dist/v2/components/chat/CopilotChatInspectorButton.vue.d.ts +12 -0
  46. package/dist/v2/components/chat/CopilotChatInspectorButton.vue.d.ts.map +1 -0
  47. package/dist/v2/components/chat/CopilotChatLightbox.vue.d.ts +22 -0
  48. package/dist/v2/components/chat/CopilotChatLightbox.vue.d.ts.map +1 -0
  49. package/dist/v2/components/chat/CopilotChatMessageView.vue.d.ts +20 -0
  50. package/dist/v2/components/chat/CopilotChatMessageView.vue.d.ts.map +1 -1
  51. package/dist/v2/components/chat/CopilotChatReasoningMessage.vue.d.ts.map +1 -1
  52. package/dist/v2/components/chat/CopilotChatSuggestionPill.vue.d.ts.map +1 -1
  53. package/dist/v2/components/chat/CopilotChatSuggestionView.vue.d.ts.map +1 -1
  54. package/dist/v2/components/chat/CopilotChatToggleButton.vue.d.ts.map +1 -1
  55. package/dist/v2/components/chat/CopilotChatToolCallGroup.vue.d.ts +32 -0
  56. package/dist/v2/components/chat/CopilotChatToolCallGroup.vue.d.ts.map +1 -0
  57. package/dist/v2/components/chat/CopilotChatToolCallItem.vue.d.ts.map +1 -1
  58. package/dist/v2/components/chat/CopilotChatToolCallsView.vue.d.ts +11 -1
  59. package/dist/v2/components/chat/CopilotChatToolCallsView.vue.d.ts.map +1 -1
  60. package/dist/v2/components/chat/CopilotChatUserMessage.vue.d.ts.map +1 -1
  61. package/dist/v2/components/chat/CopilotChatView.vue.d.ts +1 -0
  62. package/dist/v2/components/chat/CopilotChatView.vue.d.ts.map +1 -1
  63. package/dist/v2/components/chat/CopilotChatWorkSummary.vue.d.ts +5 -0
  64. package/dist/v2/components/chat/CopilotChatWorkSummary.vue.d.ts.map +1 -0
  65. package/dist/v2/components/chat/CopilotModalHeader.vue.d.ts.map +1 -1
  66. package/dist/v2/components/chat/CopilotModalHeaderCloseButton.d.ts.map +1 -1
  67. package/dist/v2/components/chat/CopilotModalHeaderTitle.d.ts.map +1 -1
  68. package/dist/v2/components/chat/CopilotPopup.vue.d.ts +1 -0
  69. package/dist/v2/components/chat/CopilotPopup.vue.d.ts.map +1 -1
  70. package/dist/v2/components/chat/CopilotPopupView.vue.d.ts +1 -0
  71. package/dist/v2/components/chat/CopilotPopupView.vue.d.ts.map +1 -1
  72. package/dist/v2/components/chat/CopilotPopupViewInternal.vue.d.ts +1 -0
  73. package/dist/v2/components/chat/CopilotPopupViewInternal.vue.d.ts.map +1 -1
  74. package/dist/v2/components/chat/CopilotPopupWelcomeScreen.vue.d.ts.map +1 -1
  75. package/dist/v2/components/chat/CopilotSidebar.vue.d.ts +2 -0
  76. package/dist/v2/components/chat/CopilotSidebar.vue.d.ts.map +1 -1
  77. package/dist/v2/components/chat/CopilotSidebarView.vue.d.ts +2 -0
  78. package/dist/v2/components/chat/CopilotSidebarView.vue.d.ts.map +1 -1
  79. package/dist/v2/components/chat/CopilotSidebarViewInternal.vue.d.ts +2 -0
  80. package/dist/v2/components/chat/CopilotSidebarViewInternal.vue.d.ts.map +1 -1
  81. package/dist/v2/components/chat/CopilotSidebarWelcomeScreen.vue.d.ts.map +1 -1
  82. package/dist/v2/components/chat/StreamingMarkdownDefault.vue.d.ts.map +1 -1
  83. package/dist/v2/components/chat/copilotChatToolCallItemRender.d.ts +0 -1
  84. package/dist/v2/components/chat/copilotChatToolCallItemRender.d.ts.map +1 -1
  85. package/dist/v2/components/chat/index.d.ts +17 -1
  86. package/dist/v2/components/chat/index.d.ts.map +1 -1
  87. package/dist/v2/components/chat/inspector-shortcuts.d.ts +12 -0
  88. package/dist/v2/components/chat/inspector-shortcuts.d.ts.map +1 -0
  89. package/dist/v2/components/chat/message-feedback.d.ts +89 -0
  90. package/dist/v2/components/chat/message-feedback.d.ts.map +1 -0
  91. package/dist/v2/components/chat/tool-call-capture.d.ts +39 -0
  92. package/dist/v2/components/chat/tool-call-capture.d.ts.map +1 -0
  93. package/dist/v2/components/chat/tool-call-display-context.d.ts +22 -0
  94. package/dist/v2/components/chat/tool-call-display-context.d.ts.map +1 -0
  95. package/dist/v2/components/chat/tool-call-group-parts.d.ts +131 -0
  96. package/dist/v2/components/chat/tool-call-group-parts.d.ts.map +1 -0
  97. package/dist/v2/components/chat/turn-work.d.ts +33 -0
  98. package/dist/v2/components/chat/turn-work.d.ts.map +1 -0
  99. package/dist/v2/components/chat/types.d.ts +104 -5
  100. package/dist/v2/components/chat/types.d.ts.map +1 -1
  101. package/dist/v2/components/chat/use-chat-labels.d.ts +8 -0
  102. package/dist/v2/components/chat/use-chat-labels.d.ts.map +1 -0
  103. package/dist/v2/components/chat/use-lightbox.d.ts +18 -0
  104. package/dist/v2/components/chat/use-lightbox.d.ts.map +1 -0
  105. package/dist/v2/components/icons/index.d.ts +968 -1
  106. package/dist/v2/components/icons/index.d.ts.map +1 -1
  107. package/dist/v2/components/ui/CopilotDropdownMenuContent.vue.d.ts +55 -0
  108. package/dist/v2/components/ui/CopilotDropdownMenuContent.vue.d.ts.map +1 -0
  109. package/dist/v2/components/ui/CopilotPopover.vue.d.ts +40 -0
  110. package/dist/v2/components/ui/CopilotPopover.vue.d.ts.map +1 -0
  111. package/dist/v2/components/ui/CopilotTooltip.vue.d.ts +37 -0
  112. package/dist/v2/components/ui/CopilotTooltip.vue.d.ts.map +1 -0
  113. package/dist/v2/components/ui/dropdown-menu.d.ts +14 -0
  114. package/dist/v2/components/ui/dropdown-menu.d.ts.map +1 -0
  115. package/dist/v2/components/ui/floating.d.ts +84 -0
  116. package/dist/v2/components/ui/floating.d.ts.map +1 -0
  117. package/dist/v2/components/ui/presence.d.ts +9 -0
  118. package/dist/v2/components/ui/presence.d.ts.map +1 -0
  119. package/dist/v2/components/ui/use-id.d.ts +9 -0
  120. package/dist/v2/components/ui/use-id.d.ts.map +1 -0
  121. package/dist/v2/hooks/use-default-render-tool.d.ts +6 -0
  122. package/dist/v2/hooks/use-default-render-tool.d.ts.map +1 -1
  123. package/dist/v2/hooks/use-frontend-tool.d.ts +5 -0
  124. package/dist/v2/hooks/use-frontend-tool.d.ts.map +1 -1
  125. package/dist/v2/hooks/use-render-activity-message.d.ts +13 -9
  126. package/dist/v2/hooks/use-render-activity-message.d.ts.map +1 -1
  127. package/dist/v2/hooks/use-render-custom-messages.d.ts +5 -7
  128. package/dist/v2/hooks/use-render-custom-messages.d.ts.map +1 -1
  129. package/dist/v2/hooks/use-render-tool.d.ts +4 -0
  130. package/dist/v2/hooks/use-render-tool.d.ts.map +1 -1
  131. package/dist/v2/index.cjs +1 -1
  132. package/dist/v2/index.d.cts +3 -0
  133. package/dist/v2/index.d.mts +3 -0
  134. package/dist/v2/index.d.ts +3 -0
  135. package/dist/v2/index.d.ts.map +1 -1
  136. package/dist/v2/index.mjs +197 -197
  137. package/dist/v2/index.mjs.map +1 -1
  138. package/dist/v2/lib/message-feedback.d.ts +33 -0
  139. package/dist/v2/lib/message-feedback.d.ts.map +1 -0
  140. package/dist/v2/lib/processPartialHtml.d.ts +1 -2
  141. package/dist/v2/lib/processPartialHtml.d.ts.map +1 -1
  142. package/dist/v2/lib/vue-core.d.ts +0 -1
  143. package/dist/v2/lib/vue-core.d.ts.map +1 -1
  144. package/dist/v2/providers/CopilotChatConfigurationProvider.vue.d.ts.map +1 -1
  145. package/dist/v2/providers/CopilotKitProvider.types.d.ts +56 -6
  146. package/dist/v2/providers/CopilotKitProvider.types.d.ts.map +1 -1
  147. package/dist/v2/providers/CopilotKitProvider.vue.d.ts +6 -2
  148. package/dist/v2/providers/CopilotKitProvider.vue.d.ts.map +1 -1
  149. package/dist/v2/providers/index.d.ts +1 -1
  150. package/dist/v2/providers/index.d.ts.map +1 -1
  151. package/dist/v2/providers/keys.d.ts +8 -0
  152. package/dist/v2/providers/keys.d.ts.map +1 -1
  153. package/dist/v2/providers/types.d.ts +3 -37
  154. package/dist/v2/providers/types.d.ts.map +1 -1
  155. package/dist/v2/styles/CopilotKitStyles.d.ts +18 -0
  156. package/dist/v2/styles/CopilotKitStyles.d.ts.map +1 -0
  157. package/dist/v2/types/defineToolCallRenderer.d.ts +2 -0
  158. package/dist/v2/types/defineToolCallRenderer.d.ts.map +1 -1
  159. package/dist/v2/types/human-in-the-loop.d.ts +8 -29
  160. package/dist/v2/types/human-in-the-loop.d.ts.map +1 -1
  161. package/dist/v2/types/interrupt.d.ts +1 -22
  162. package/dist/v2/types/interrupt.d.ts.map +1 -1
  163. package/dist/v2/types/vue-activity-message-renderer.d.ts +16 -15
  164. package/dist/v2/types/vue-activity-message-renderer.d.ts.map +1 -1
  165. package/dist/v2/types/vue-custom-message-renderer.d.ts +7 -16
  166. package/dist/v2/types/vue-custom-message-renderer.d.ts.map +1 -1
  167. package/dist/v2/types/vue-tool-call-renderer.d.ts +16 -28
  168. package/dist/v2/types/vue-tool-call-renderer.d.ts.map +1 -1
  169. package/package.json +14 -27
  170. package/src/__tests__/build-entries.test.ts +27 -0
  171. package/src/components/copilot-provider/CopilotKit.vue +4 -1
  172. package/src/hooks/__tests__/zod-parameters.test.ts +520 -0
  173. package/src/hooks/use-copilot-action.ts +2 -1
  174. package/src/hooks/use-frontend-tool.ts +3 -6
  175. package/src/hooks/zod-parameters.ts +162 -0
  176. package/src/v2/__tests__/exports.test.ts +4 -2
  177. package/src/v2/components/A2UIMessageRenderer.ts +56 -68
  178. package/src/v2/components/A2UISurfaceActivityRenderer.vue +11 -23
  179. package/src/v2/components/LicenseWarningBanner.vue +31 -15
  180. package/src/v2/components/OpenGenerativeUIRenderer.ts +51 -373
  181. package/src/v2/components/__tests__/A2UIBasicCatalogColors.test.ts +8 -9
  182. package/src/v2/components/__tests__/A2UICatalogContext.test.ts +1 -1
  183. package/src/v2/components/__tests__/A2UIMessageRenderer.test.ts +63 -36
  184. package/src/v2/components/__tests__/LicenseWarningBanner.test.ts +20 -0
  185. package/src/v2/components/__tests__/OpenGenerativeUIRenderer.test.ts +55 -6
  186. package/src/v2/components/a2ui/A2UIBuiltInToolCallRenderer.ts +15 -258
  187. package/src/v2/components/a2ui/A2UICatalogContext.ts +10 -102
  188. package/src/v2/components/a2ui/A2UIRecoveryStates.ts +444 -0
  189. package/src/v2/components/a2ui/__tests__/A2UIRecoveryStates.test.ts +175 -0
  190. package/src/v2/components/a2ui.ts +1 -1
  191. package/src/v2/components/chat/CopilotChat.vue +26 -40
  192. package/src/v2/components/chat/CopilotChatAssistantMessage.vue +267 -67
  193. package/src/v2/components/chat/CopilotChatAssistantToolbarButton.vue +46 -0
  194. package/src/v2/components/chat/CopilotChatAttachmentQueue.vue +150 -173
  195. package/src/v2/components/chat/CopilotChatAttachmentRenderer.vue +77 -20
  196. package/src/v2/components/chat/CopilotChatAudioRecorder.vue +2 -2
  197. package/src/v2/components/chat/CopilotChatFeedbackCommentPopover.vue +240 -0
  198. package/src/v2/components/chat/CopilotChatInput.vue +250 -191
  199. package/src/v2/components/chat/CopilotChatInspectorButton.vue +331 -0
  200. package/src/v2/components/chat/CopilotChatLightbox.vue +105 -0
  201. package/src/v2/components/chat/CopilotChatMessageView.vue +262 -87
  202. package/src/v2/components/chat/CopilotChatReasoningMessage.vue +52 -35
  203. package/src/v2/components/chat/CopilotChatSuggestionPill.vue +5 -14
  204. package/src/v2/components/chat/CopilotChatSuggestionView.vue +1 -4
  205. package/src/v2/components/chat/CopilotChatToggleButton.vue +3 -9
  206. package/src/v2/components/chat/CopilotChatToggleButtonCloseIcon.ts +1 -1
  207. package/src/v2/components/chat/CopilotChatToggleButtonOpenIcon.ts +1 -1
  208. package/src/v2/components/chat/CopilotChatToolCallGroup.vue +353 -0
  209. package/src/v2/components/chat/CopilotChatToolCallItem.vue +24 -14
  210. package/src/v2/components/chat/CopilotChatToolCallsView.vue +194 -21
  211. package/src/v2/components/chat/CopilotChatUserMessage.vue +105 -42
  212. package/src/v2/components/chat/CopilotChatView.vue +37 -42
  213. package/src/v2/components/chat/CopilotChatWorkSummary.vue +111 -0
  214. package/src/v2/components/chat/CopilotModalHeader.vue +10 -8
  215. package/src/v2/components/chat/CopilotModalHeaderCloseButton.ts +7 -6
  216. package/src/v2/components/chat/CopilotModalHeaderTitle.ts +1 -4
  217. package/src/v2/components/chat/CopilotPopup.vue +3 -0
  218. package/src/v2/components/chat/CopilotPopupView.vue +1 -0
  219. package/src/v2/components/chat/CopilotPopupViewInternal.vue +9 -19
  220. package/src/v2/components/chat/CopilotPopupWelcomeScreen.vue +5 -8
  221. package/src/v2/components/chat/CopilotSidebar.vue +5 -0
  222. package/src/v2/components/chat/CopilotSidebarView.vue +2 -0
  223. package/src/v2/components/chat/CopilotSidebarViewInternal.vue +24 -17
  224. package/src/v2/components/chat/CopilotSidebarWelcomeScreen.vue +7 -10
  225. package/src/v2/components/chat/StreamingMarkdownDefault.vue +3 -5
  226. package/src/v2/components/chat/__tests__/CopilotChat.labels.test.ts +19 -4
  227. package/src/v2/components/chat/__tests__/CopilotChatActivityRendering.e2e.test.ts +26 -9
  228. package/src/v2/components/chat/__tests__/CopilotChatAssistantMessage.inspector.test.ts +269 -0
  229. package/src/v2/components/chat/__tests__/CopilotChatAssistantMessage.learningFeedback.test.ts +760 -0
  230. package/src/v2/components/chat/__tests__/CopilotChatAssistantMessage.slots.e2e.test.ts +3 -5
  231. package/src/v2/components/chat/__tests__/CopilotChatAssistantMessage.test.ts +2 -2
  232. package/src/v2/components/chat/__tests__/CopilotChatInput.addMenu.test.ts +328 -0
  233. package/src/v2/components/chat/__tests__/CopilotChatInput.slots.e2e.test.ts +6 -3
  234. package/src/v2/components/chat/__tests__/CopilotChatInput.test.ts +55 -14
  235. package/src/v2/components/chat/__tests__/CopilotChatLightbox.test.ts +160 -0
  236. package/src/v2/components/chat/__tests__/CopilotChatMessageView.test.ts +247 -403
  237. package/src/v2/components/chat/__tests__/CopilotChatMessageView.toolCallDisplay.test.ts +637 -0
  238. package/src/v2/components/chat/__tests__/CopilotChatSuggestionPill.test.ts +1 -1
  239. package/src/v2/components/chat/__tests__/CopilotChatSuggestionView.slots.e2e.test.ts +3 -1
  240. package/src/v2/components/chat/__tests__/CopilotChatToolCallsView.learning.test.ts +75 -0
  241. package/src/v2/components/chat/__tests__/CopilotChatUserMessage.attachments.test.ts +143 -0
  242. package/src/v2/components/chat/__tests__/CopilotChatView.inputOverlay.test.ts +5 -4
  243. package/src/v2/components/chat/__tests__/CopilotChatView.rootWidth.test.ts +7 -33
  244. package/src/v2/components/chat/__tests__/CopilotModalHeader.slots.e2e.test.ts +1 -1
  245. package/src/v2/components/chat/__tests__/CopilotPopupView.slots.e2e.test.ts +3 -3
  246. package/src/v2/components/chat/__tests__/CopilotSidebarView.position.test.ts +126 -0
  247. package/src/v2/components/chat/__tests__/messageFeedbackDefaults.test.ts +33 -0
  248. package/src/v2/components/chat/__tests__/modalChatDisplayProps.test.ts +44 -0
  249. package/src/v2/components/chat/copilotChatToolCallItemRender.ts +3 -19
  250. package/src/v2/components/chat/index.ts +2 -1
  251. package/src/v2/components/chat/inspector-shortcuts.ts +34 -0
  252. package/src/v2/components/chat/message-feedback.ts +291 -0
  253. package/src/v2/components/chat/tool-call-capture.ts +55 -0
  254. package/src/v2/components/chat/tool-call-display-context.ts +28 -0
  255. package/src/v2/components/chat/tool-call-group-parts.ts +251 -0
  256. package/src/v2/components/chat/turn-work.ts +52 -0
  257. package/src/v2/components/chat/types.ts +114 -4
  258. package/src/v2/components/chat/use-chat-labels.ts +16 -0
  259. package/src/v2/components/chat/use-lightbox.ts +64 -0
  260. package/src/v2/components/icons/__tests__/icons.test.ts +72 -68
  261. package/src/v2/components/icons/index.ts +109 -23
  262. package/src/v2/components/ui/CopilotDropdownMenuContent.vue +465 -0
  263. package/src/v2/components/ui/CopilotPopover.vue +138 -0
  264. package/src/v2/components/ui/CopilotTooltip.vue +237 -0
  265. package/src/v2/components/ui/__tests__/CopilotTooltip.test.ts +168 -0
  266. package/src/v2/components/ui/dropdown-menu.ts +15 -0
  267. package/src/v2/components/ui/floating.ts +321 -0
  268. package/src/v2/components/ui/presence.ts +54 -0
  269. package/src/v2/components/ui/use-id.ts +16 -0
  270. package/src/v2/hooks/__tests__/use-frontend-tool.e2e.test.ts +62 -1
  271. package/src/v2/hooks/__tests__/use-render-activity-message.test.ts +105 -0
  272. package/src/v2/hooks/__tests__/use-render-tool.test.ts +3 -6
  273. package/src/v2/hooks/__tests__/zod-regression.test.ts +5 -4
  274. package/src/v2/hooks/use-default-render-tool.ts +123 -62
  275. package/src/v2/hooks/use-frontend-tool.ts +10 -10
  276. package/src/v2/hooks/use-render-activity-message.ts +27 -48
  277. package/src/v2/hooks/use-render-custom-messages.ts +14 -35
  278. package/src/v2/hooks/use-render-tool.ts +8 -0
  279. package/src/v2/index.ts +3 -0
  280. package/src/v2/lib/__tests__/message-feedback.test.ts +152 -0
  281. package/src/v2/lib/message-feedback.ts +120 -0
  282. package/src/v2/lib/processPartialHtml.ts +6 -21
  283. package/src/v2/lib/vue-core.ts +3 -5
  284. package/src/v2/providers/CopilotChatConfigurationProvider.vue +29 -2
  285. package/src/v2/providers/CopilotKitProvider.types.ts +57 -5
  286. package/src/v2/providers/CopilotKitProvider.vue +177 -114
  287. package/src/v2/providers/__tests__/CopilotChatConfigurationProvider.openThread.test.ts +69 -0
  288. package/src/v2/providers/__tests__/CopilotKitProvider.a2ui.test.ts +1 -1
  289. package/src/v2/providers/__tests__/CopilotKitProvider.headersAtSendTime.test.ts +3 -3
  290. package/src/v2/providers/__tests__/CopilotKitProvider.learning.test.ts +536 -0
  291. package/src/v2/providers/__tests__/CopilotKitProvider.test.ts +17 -33
  292. package/src/v2/providers/index.ts +4 -1
  293. package/src/v2/providers/keys.ts +12 -0
  294. package/src/v2/providers/types.ts +3 -38
  295. package/src/v2/styles/CopilotKitStyles.ts +95 -0
  296. package/src/v2/styles/__tests__/CopilotKitStyles.client.test.ts +149 -0
  297. package/src/v2/styles/__tests__/CopilotKitStyles.ssr.test.ts +71 -0
  298. package/src/v2/types/__tests__/defineToolCallRenderer.test.ts +28 -33
  299. package/src/v2/types/defineToolCallRenderer.ts +9 -4
  300. package/src/v2/types/human-in-the-loop.ts +8 -32
  301. package/src/v2/types/interrupt.ts +7 -31
  302. package/src/v2/types/vue-activity-message-renderer.ts +24 -15
  303. package/src/v2/types/vue-custom-message-renderer.ts +12 -16
  304. package/src/v2/types/vue-tool-call-renderer.ts +23 -31
  305. package/vite.config.ts +5 -5
  306. package/dist/styles.css +0 -2
  307. package/dist/v2/components/chat/BasicMarkdown.vue.d.ts +0 -9
  308. package/dist/v2/components/chat/BasicMarkdown.vue.d.ts.map +0 -1
  309. package/dist/v2/lib/transcription-client.d.ts +0 -19
  310. package/dist/v2/lib/transcription-client.d.ts.map +0 -1
  311. package/scripts/scope-preflight.mjs +0 -100
  312. package/src/styles/globals.css +0 -233
  313. package/src/v2/components/chat/BasicMarkdown.vue +0 -158
  314. package/src/v2/components/chat/__tests__/BasicMarkdown.test.ts +0 -69
  315. package/src/v2/lib/__tests__/processPartialHtml.test.ts +0 -84
  316. package/src/v2/lib/__tests__/transcription-client.test.ts +0 -67
  317. package/src/v2/lib/transcription-client.ts +0 -151
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/v2/components/icons/index.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,aAAa,IAAI,iBAAiB,EAClC,CAAC,IAAI,KAAK,EACV,WAAW,IAAI,eAAe,EAC9B,IAAI,IAAI,QAAQ,EAChB,GAAG,IAAI,OAAO,EACd,OAAO,IAAI,WAAW,EACtB,KAAK,IAAI,SAAS,EAClB,MAAM,IAAI,UAAU,EACpB,OAAO,IAAI,WAAW,EACtB,IAAI,IAAI,QAAQ,EAChB,QAAQ,IAAI,YAAY,EACxB,IAAI,IAAI,QAAQ,EAChB,WAAW,IAAI,eAAe,EAC9B,YAAY,IAAI,gBAAgB,EAChC,QAAQ,IAAI,YAAY,EACxB,UAAU,IAAI,cAAc,EAC5B,OAAO,IAAI,WAAW,EACtB,SAAS,IAAI,aAAa,EAC1B,WAAW,IAAI,eAAe,EAC9B,MAAM,IAAI,UAAU,EACpB,aAAa,IAAI,iBAAiB,GACnC,MAAM,iBAAiB,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/v2/components/icons/index.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,KAAK,CAAC;AAEpC,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,kBAAkB,CAAC;AAmBxD;;;;;;;;;;;;;;;;;;;GAmBG;AACH,eAAO,MAAM,WAAW;IA5BtB,sDAAsD;;;;;IAEtD,8CAA8C;;;;;IAE9C,mCAAmC;;;;;IA2BjC,sDAAsD;;cAC9B,QAAQ,CAAC,eAAe,CAAC;;;;;;IAhCnD,sDAAsD;;;;;IAEtD,8CAA8C;;;;;IAE9C,mCAAmC;;;;;IA2BjC,sDAAsD;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AU;IA7FrB,sDAAsD;;;;;IAEtD,8CAA8C;;;;;IAE9C,mCAAmC;;;;;;;;IAJnC,sDAAsD;;;;;IAEtD,8CAA8C;;;;;IAE9C,mCAAmC;;;;;;;;;4EAyFS,CAAC;AAC/C,eAAO,MAAM,KAAK;IA9FhB,sDAAsD;;;;;IAEtD,8CAA8C;;;;;IAE9C,mCAAmC;;;;;;;;IAJnC,sDAAsD;;;;;IAEtD,8CAA8C;;;;;IAE9C,mCAAmC;;;;;;;;;4EA0FD,CAAC"}
@@ -0,0 +1,55 @@
1
+ import type { FloatingAlign, FloatingSide } from "./floating";
2
+ import type { CopilotDropdownMenuDismissReason, CopilotDropdownMenuEntry, CopilotDropdownMenuItem } from "./dropdown-menu";
3
+ type __VLS_Props = {
4
+ open: boolean;
5
+ anchor: HTMLElement | null;
6
+ items: CopilotDropdownMenuEntry[];
7
+ /** Shared by a menu and its submenus, to tell inside from outside. */
8
+ menuId: string;
9
+ id?: string;
10
+ labelledBy?: string;
11
+ side?: FloatingSide;
12
+ align?: FloatingAlign;
13
+ sideOffset?: number;
14
+ /** Where focus goes when it opens. */
15
+ initialFocus?: "first" | "last" | "content" | "none";
16
+ /** A submenu, drawn with `.cpk-dropdown-menu-sub-content`. */
17
+ sub?: boolean;
18
+ };
19
+ type __VLS_Slots = {
20
+ /** Content before the items, such as a label. */
21
+ header?: () => unknown;
22
+ /** The content of an item; defaults to its label. */
23
+ item?: (props: {
24
+ item: CopilotDropdownMenuItem;
25
+ }) => unknown;
26
+ };
27
+ declare const __VLS_component: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
28
+ select: (item: CopilotDropdownMenuItem) => any;
29
+ dismiss: (reason: CopilotDropdownMenuDismissReason) => any;
30
+ "close-sub": () => any;
31
+ "pointer-enter": () => any;
32
+ "pointer-leave": () => any;
33
+ }, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{
34
+ onSelect?: ((item: CopilotDropdownMenuItem) => any) | undefined;
35
+ onDismiss?: ((reason: CopilotDropdownMenuDismissReason) => any) | undefined;
36
+ "onClose-sub"?: (() => any) | undefined;
37
+ "onPointer-enter"?: (() => any) | undefined;
38
+ "onPointer-leave"?: (() => any) | undefined;
39
+ }>, {
40
+ sub: boolean;
41
+ id: string;
42
+ align: FloatingAlign;
43
+ side: FloatingSide;
44
+ sideOffset: number;
45
+ labelledBy: string;
46
+ initialFocus: "first" | "last" | "content" | "none";
47
+ }, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
48
+ declare const _default: __VLS_WithSlots<typeof __VLS_component, __VLS_Slots>;
49
+ export default _default;
50
+ type __VLS_WithSlots<T, S> = T & {
51
+ new (): {
52
+ $slots: S;
53
+ };
54
+ };
55
+ //# sourceMappingURL=CopilotDropdownMenuContent.vue.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"CopilotDropdownMenuContent.vue.d.ts","sourceRoot":"","sources":["../../../../src/v2/components/ui/CopilotDropdownMenuContent.vue"],"names":[],"mappings":"AAmeA,OAAO,KAAK,EAAE,aAAa,EAAE,YAAY,EAAE,MAAM,YAAY,CAAC;AAI9D,OAAO,KAAK,EACV,gCAAgC,EAChC,wBAAwB,EACxB,uBAAuB,EACxB,MAAM,iBAAiB,CAAC;AAIzB,KAAK,WAAW,GAAG;IACf,IAAI,EAAE,OAAO,CAAC;IACd,MAAM,EAAE,WAAW,GAAG,IAAI,CAAC;IAC3B,KAAK,EAAE,wBAAwB,EAAE,CAAC;IAClC,sEAAsE;IACtE,MAAM,EAAE,MAAM,CAAC;IACf,EAAE,CAAC,EAAE,MAAM,CAAC;IACZ,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,IAAI,CAAC,EAAE,YAAY,CAAC;IACpB,KAAK,CAAC,EAAE,aAAa,CAAC;IACtB,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,sCAAsC;IACtC,YAAY,CAAC,EAAE,OAAO,GAAG,MAAM,GAAG,SAAS,GAAG,MAAM,CAAC;IACrD,8DAA8D;IAC9D,GAAG,CAAC,EAAE,OAAO,CAAC;CACf,CAAC;AA4BJ,KAAK,WAAW,GAAG;IACjB,iDAAiD;IACjD,MAAM,CAAC,EAAE,MAAM,OAAO,CAAC;IACvB,qDAAqD;IACrD,IAAI,CAAC,EAAE,CAAC,KAAK,EAAE;QAAE,IAAI,EAAE,uBAAuB,CAAA;KAAE,KAAK,OAAO,CAAC;CAC9D,CAAC;AAmkBF,QAAA,MAAM,eAAe;;;;;;;;;;;;;SArmBX,OAAO;QARR,MAAM;WAGH,aAAa;UADd,YAAY;gBAEN,MAAM;gBAHN,MAAM;kBAKJ,OAAO,GAAG,MAAM,GAAG,SAAS,GAAG,MAAM;6EA+mBtD,CAAC;wBACkB,eAAe,CAAC,OAAO,eAAe,EAAE,WAAW,CAAC;AAAzE,wBAA0E;AAa1E,KAAK,eAAe,CAAC,CAAC,EAAE,CAAC,IAAI,CAAC,GAAG;IAChC,QAAO;QACN,MAAM,EAAE,CAAC,CAAC;KAEV,CAAA;CACD,CAAC"}
@@ -0,0 +1,40 @@
1
+ import type { FloatingAlign, FloatingSide } from "./floating";
2
+ type __VLS_Props = {
3
+ open: boolean;
4
+ /** The element the content points at. */
5
+ anchor: HTMLElement | null;
6
+ side?: FloatingSide;
7
+ align?: FloatingAlign;
8
+ sideOffset?: number;
9
+ collisionPadding?: number;
10
+ /** Hides the content while its anchor is scrolled out of view. */
11
+ hideWhenDetached?: boolean;
12
+ };
13
+ type __VLS_Slots = {
14
+ default(): unknown;
15
+ };
16
+ declare const __VLS_component: import("vue").DefineComponent<__VLS_Props, {
17
+ content: import("vue").Ref<HTMLElement | null, HTMLElement | null>;
18
+ }, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
19
+ "escape-key-down": (event: KeyboardEvent) => any;
20
+ "interact-outside": (event: Event) => any;
21
+ dismiss: () => any;
22
+ }, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{
23
+ "onEscape-key-down"?: ((event: KeyboardEvent) => any) | undefined;
24
+ "onInteract-outside"?: ((event: Event) => any) | undefined;
25
+ onDismiss?: (() => any) | undefined;
26
+ }>, {
27
+ align: FloatingAlign;
28
+ side: FloatingSide;
29
+ sideOffset: number;
30
+ collisionPadding: number;
31
+ hideWhenDetached: boolean;
32
+ }, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
33
+ declare const _default: __VLS_WithSlots<typeof __VLS_component, __VLS_Slots>;
34
+ export default _default;
35
+ type __VLS_WithSlots<T, S> = T & {
36
+ new (): {
37
+ $slots: S;
38
+ };
39
+ };
40
+ //# sourceMappingURL=CopilotPopover.vue.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"CopilotPopover.vue.d.ts","sourceRoot":"","sources":["../../../../src/v2/components/ui/CopilotPopover.vue"],"names":[],"mappings":"AAuJA,OAAO,KAAK,EAAE,aAAa,EAAE,YAAY,EAAE,MAAM,YAAY,CAAC;AAO9D,KAAK,WAAW,GAAG;IACf,IAAI,EAAE,OAAO,CAAC;IACd,yCAAyC;IACzC,MAAM,EAAE,WAAW,GAAG,IAAI,CAAC;IAC3B,IAAI,CAAC,EAAE,YAAY,CAAC;IACpB,KAAK,CAAC,EAAE,aAAa,CAAC;IACtB,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,gBAAgB,CAAC,EAAE,MAAM,CAAC;IAC1B,kEAAkE;IAClE,gBAAgB,CAAC,EAAE,OAAO,CAAC;CAC5B,CAAC;AAsBJ,KAAK,WAAW,GAAG;IAAE,OAAO,IAAI,OAAO,CAAA;CAAE,CAAC;AAiJ1C,QAAA,MAAM,eAAe;;;;;;;;;;;WA5KT,aAAa;UADd,YAAY;gBAEN,MAAM;sBACA,MAAM;sBAEN,OAAO;6EAiL5B,CAAC;wBACkB,eAAe,CAAC,OAAO,eAAe,EAAE,WAAW,CAAC;AAAzE,wBAA0E;AAa1E,KAAK,eAAe,CAAC,CAAC,EAAE,CAAC,IAAI,CAAC,GAAG;IAChC,QAAO;QACN,MAAM,EAAE,CAAC,CAAC;KAEV,CAAA;CACD,CAAC"}
@@ -0,0 +1,37 @@
1
+ import type { FloatingAlign, FloatingSide } from "./floating";
2
+ type __VLS_Props = {
3
+ /** Text of the tooltip; the `content` slot replaces it. */
4
+ content?: string;
5
+ side?: FloatingSide;
6
+ align?: FloatingAlign;
7
+ sideOffset?: number;
8
+ /** Hover time before it opens, in ms. Focus opens it at once. */
9
+ delayDuration?: number;
10
+ /** Keeps it closed, for example while the trigger's own popup shows. */
11
+ suppressed?: boolean;
12
+ contentClass?: string;
13
+ };
14
+ type __VLS_Slots = {
15
+ default(props: {
16
+ triggerProps: Record<string, unknown>;
17
+ open: boolean;
18
+ }): unknown;
19
+ content?(): unknown;
20
+ };
21
+ declare const __VLS_component: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {
22
+ content: string;
23
+ align: FloatingAlign;
24
+ side: FloatingSide;
25
+ sideOffset: number;
26
+ delayDuration: number;
27
+ suppressed: boolean;
28
+ contentClass: string;
29
+ }, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
30
+ declare const _default: __VLS_WithSlots<typeof __VLS_component, __VLS_Slots>;
31
+ export default _default;
32
+ type __VLS_WithSlots<T, S> = T & {
33
+ new (): {
34
+ $slots: S;
35
+ };
36
+ };
37
+ //# sourceMappingURL=CopilotTooltip.vue.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"CopilotTooltip.vue.d.ts","sourceRoot":"","sources":["../../../../src/v2/components/ui/CopilotTooltip.vue"],"names":[],"mappings":"AAwPA,OAAO,KAAK,EAAE,aAAa,EAAE,YAAY,EAAE,MAAM,YAAY,CAAC;AAK9D,KAAK,WAAW,GAAG;IACf,2DAA2D;IAC3D,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,IAAI,CAAC,EAAE,YAAY,CAAC;IACpB,KAAK,CAAC,EAAE,aAAa,CAAC;IACtB,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,iEAAiE;IACjE,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB,wEAAwE;IACxE,UAAU,CAAC,EAAE,OAAO,CAAC;IACrB,YAAY,CAAC,EAAE,MAAM,CAAC;CACvB,CAAC;AAcJ,KAAK,WAAW,GAAG;IACjB,OAAO,CAAC,KAAK,EAAE;QACb,YAAY,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;QACtC,IAAI,EAAE,OAAO,CAAC;KACf,GAAG,OAAO,CAAC;IACZ,OAAO,CAAC,IAAI,OAAO,CAAC;CACrB,CAAC;AAkQF,QAAA,MAAM,eAAe;aA/RP,MAAM;WAER,aAAa;UADd,YAAY;gBAEN,MAAM;mBAEH,MAAM;gBAET,OAAO;kBACL,MAAM;6EA8RvB,CAAC;wBACkB,eAAe,CAAC,OAAO,eAAe,EAAE,WAAW,CAAC;AAAzE,wBAA0E;AAa1E,KAAK,eAAe,CAAC,CAAC,EAAE,CAAC,IAAI,CAAC,GAAG;IAChC,QAAO;QACN,MAAM,EAAE,CAAC,CAAC;KAEV,CAAA;CACD,CAAC"}
@@ -0,0 +1,14 @@
1
+ /** An entry of a `CopilotDropdownMenuContent`: an item, a submenu, or "-". @internal */
2
+ export type CopilotDropdownMenuEntry = CopilotDropdownMenuItem | "-";
3
+ /** @internal */
4
+ export interface CopilotDropdownMenuItem {
5
+ label: string;
6
+ action?: () => void;
7
+ /** Makes the item a submenu trigger. */
8
+ items?: CopilotDropdownMenuEntry[];
9
+ /** Extra classes on the item. */
10
+ class?: string;
11
+ }
12
+ /** Why a dropdown menu closed by itself. @internal */
13
+ export type CopilotDropdownMenuDismissReason = "escape" | "tab" | "outside";
14
+ //# sourceMappingURL=dropdown-menu.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"dropdown-menu.d.ts","sourceRoot":"","sources":["../../../../src/v2/components/ui/dropdown-menu.ts"],"names":[],"mappings":"AAAA,wFAAwF;AACxF,MAAM,MAAM,wBAAwB,GAAG,uBAAuB,GAAG,GAAG,CAAC;AAErE,gBAAgB;AAChB,MAAM,WAAW,uBAAuB;IACtC,KAAK,EAAE,MAAM,CAAC;IACd,MAAM,CAAC,EAAE,MAAM,IAAI,CAAC;IACpB,wCAAwC;IACxC,KAAK,CAAC,EAAE,wBAAwB,EAAE,CAAC;IACnC,iCAAiC;IACjC,KAAK,CAAC,EAAE,MAAM,CAAC;CAChB;AAED,sDAAsD;AACtD,MAAM,MAAM,gCAAgC,GAAG,QAAQ,GAAG,KAAK,GAAG,SAAS,CAAC"}
@@ -0,0 +1,84 @@
1
+ import type { CSSProperties, Ref } from "vue";
2
+ /**
3
+ * Positions floating UI (tooltips, popovers, menus) next to an element, the
4
+ * way React's Radix primitives do: fixed to the viewport, flipped to the other
5
+ * side when it does not fit, and shifted along its side to stay on screen.
6
+ * Floating content sits in a wrapper that carries the position, so the
7
+ * content's own enter and exit animations can use `transform`.
8
+ * @internal
9
+ */
10
+ export type FloatingSide = "top" | "right" | "bottom" | "left";
11
+ export type FloatingAlign = "start" | "center" | "end";
12
+ export interface FloatingOptions {
13
+ side?: FloatingSide;
14
+ align?: FloatingAlign;
15
+ /** Distance from the reference element, in px. */
16
+ sideOffset?: number;
17
+ /** Shift along the side, in px, for `start` and `end`. */
18
+ alignOffset?: number;
19
+ /** Space kept between the content and the viewport edge, in px. */
20
+ collisionPadding?: number;
21
+ /** Size of an arrow drawn on the content, in px (added to the offset). */
22
+ arrowSize?: number;
23
+ }
24
+ export interface FloatingPlacement {
25
+ x: number;
26
+ y: number;
27
+ side: FloatingSide;
28
+ align: FloatingAlign;
29
+ /** Room left between the reference element and the viewport edge. */
30
+ availableWidth: number;
31
+ availableHeight: number;
32
+ /** The reference element's center on the content, for its arrow. */
33
+ arrowX?: number;
34
+ arrowY?: number;
35
+ transformOrigin: string;
36
+ }
37
+ /** Where content of `size` goes next to `reference` in a `viewport`. */
38
+ export declare function computeFloatingPlacement(reference: Pick<DOMRect, "top" | "left" | "right" | "bottom" | "width" | "height">, size: {
39
+ width: number;
40
+ height: number;
41
+ }, viewport: {
42
+ width: number;
43
+ height: number;
44
+ }, options?: FloatingOptions): FloatingPlacement;
45
+ /** Whether `element` is scrolled or clipped fully out of view. */
46
+ export declare function isElementClippedAway(element: Element): boolean;
47
+ /**
48
+ * Keeps `floating` placed next to `reference` while `open`: on scroll,
49
+ * resize, and size changes of either element.
50
+ */
51
+ export declare function useFloating(reference: Ref<HTMLElement | null | undefined>, floating: Ref<HTMLElement | null | undefined>, open: Ref<boolean>, options: () => FloatingOptions & {
52
+ hideWhenDetached?: boolean;
53
+ }): {
54
+ placement: Ref<{
55
+ x: number;
56
+ y: number;
57
+ side: FloatingSide;
58
+ align: FloatingAlign;
59
+ availableWidth: number;
60
+ availableHeight: number;
61
+ arrowX?: number | undefined;
62
+ arrowY?: number | undefined;
63
+ transformOrigin: string;
64
+ } | null, FloatingPlacement | {
65
+ x: number;
66
+ y: number;
67
+ side: FloatingSide;
68
+ align: FloatingAlign;
69
+ availableWidth: number;
70
+ availableHeight: number;
71
+ arrowX?: number | undefined;
72
+ arrowY?: number | undefined;
73
+ transformOrigin: string;
74
+ } | null>;
75
+ referenceHidden: Ref<boolean, boolean>;
76
+ update: () => void;
77
+ wrapperStyle: (zIndex?: string | number) => CSSProperties;
78
+ };
79
+ /**
80
+ * Style for an arrow wrapper on floating content, as Radix places it: on the
81
+ * edge facing the reference element, centered on it.
82
+ */
83
+ export declare function arrowWrapperStyle(placement: FloatingPlacement | null): CSSProperties;
84
+ //# sourceMappingURL=floating.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"floating.d.ts","sourceRoot":"","sources":["../../../../src/v2/components/ui/floating.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,aAAa,EAAE,GAAG,EAAE,MAAM,KAAK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oB,CAAC,OAAO,EAAE,OAAO,GAAG,OAAO,CA4B9D;AAED;;;GAGG;AACH,wBAAgB,WAAW,CACzB,SAAS,EAAE,GAAG,CAAC,WAAW,GAAG,IAAI,GAAG,SAAS,CAAC,EAC9C,QAAQ,EAAE,GAAG,CAAC,WAAW,GAAG,IAAI,GAAG,SAAS,CAAC,EAC7C,IAAI,EAAE,GAAG,CAAC,OAAO,CAAC,EAClB,OAAO,EAAE,MAAM,eAAe,GAAG;IAAE,gBAAgB,CAAC,EAAE,OAAO,CAAA;CAAE;;WAxK5D,MAAM;WACN,MAAM;cACH,YAAY;eACX,aAAa;wBAEJ,MAAM;yBACL,MAAM;iBAEd,MAAM;iBACN,MAAM;yBACE,MAAM;;WAVpB,MAAM;WACN,MAAM;cACH,YAAY;eACX,aAAa;wBAEJ,MAAM;yBACL,MAAM;iBAEd,MAAM;iBACN,MAAM;yBACE,MAAM;;;;4BAyOQ,MAAM,GAAG,MAAM,KAAG,aAAa;EAkB/D;AAED;;;GAGG;AACH,wBAAgB,iBAAiB,CAC/B,SAAS,EAAE,iBAAiB,GAAG,IAAI,GAClC,aAAa,CAsBf"}
@@ -0,0 +1,9 @@
1
+ import type { Ref } from "vue";
2
+ /**
3
+ * Keeps closing content mounted until its exit animation ends, like Radix's
4
+ * Presence: the content gets `data-state="closed"`, and its CSS animation
5
+ * (for example `cpk-tooltip-exit`) plays before it unmounts.
6
+ * @internal
7
+ */
8
+ export declare function usePresence(open: Ref<boolean>, element: Ref<HTMLElement | null | undefined>): Ref<boolean, boolean>;
9
+ //# sourceMappingURL=presence.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"presence.d.ts","sourceRoot":"","sources":["../../../../src/v2/components/ui/presence.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,GAAG,EAAE,MAAM,KAAK,CAAC;AAE/B;;;;;GAKG;AACH,wBAAgB,WAAW,CACzB,IAAI,EAAE,GAAG,CAAC,OAAO,CAAC,EAClB,OAAO,EAAE,GAAG,CAAC,WAAW,GAAG,IAAI,GAAG,SAAS,CAAC,yBA0C7C"}
@@ -0,0 +1,9 @@
1
+ /**
2
+ * A unique id for ARIA references. Uses Vue's SSR-safe `useId()` on Vue 3.5+;
3
+ * the peer range starts at 3.3, which has none, so older Vue gets a counter.
4
+ * Read through the namespace, so a Vue without the export does not fail to
5
+ * import this module.
6
+ * @internal
7
+ */
8
+ export declare function useCopilotId(prefix?: string): string;
9
+ //# sourceMappingURL=use-id.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"use-id.d.ts","sourceRoot":"","sources":["../../../../src/v2/components/ui/use-id.ts"],"names":[],"mappings":"AAIA;;;;;;GAMG;AACH,wBAAgB,YAAY,CAAC,MAAM,SAAQ,GAAG,MAAM,CAInD"}
@@ -9,6 +9,12 @@ type DefaultRenderProps = {
9
9
  };
10
10
  export declare function useDefaultRenderTool(config?: {
11
11
  render?: ((props: DefaultRenderProps) => VNodeChild) | Component<DefaultRenderProps>;
12
+ /**
13
+ * Let the chat group calls your `render` draws, like it groups the
14
+ * built-in card's (see `toolCallDisplay` on `CopilotChatMessageView`).
15
+ * Off by default for a custom `render`, since it may draw nothing.
16
+ */
17
+ group?: boolean;
12
18
  }, deps?: WatchSource<unknown>[]): void;
13
19
  export {};
14
20
  //# sourceMappingURL=use-default-render-tool.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"use-default-render-tool.d.ts","sourceRoot":"","sources":["../../../src/v2/hooks/use-default-render-tool.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,KAAK,CAAC;AACvC,OAAO,KAAK,EAAE,SAAS,EAAE,UAAU,EAAE,MAAM,KAAK,CAAC;AAIjD,KAAK,kBAAkB,GAAG;IACxB,IAAI,EAAE,MAAM,CAAC;IACb,UAAU,EAAE,MAAM,CAAC;IACnB,UAAU,EAAE,OAAO,CAAC;IACpB,MAAM,EAAE,YAAY,GAAG,WAAW,GAAG,UAAU,CAAC;IAChD,MAAM,EAAE,MAAM,GAAG,SAAS,CAAC;CAC5B,CAAC;AAoPF,wBAAgB,oBAAoB,CAClC,MAAM,CAAC,EAAE;IACP,MAAM,CAAC,EACH,CAAC,CAAC,KAAK,EAAE,kBAAkB,KAAK,UAAU,CAAC,GAC3C,SAAS,CAAC,kBAAkB,CAAC,CAAC;CACnC,EACD,IAAI,CAAC,EAAE,WAAW,CAAC,OAAO,CAAC,EAAE,GAC5B,IAAI,CAsDN"}
1
+ {"version":3,"file":"use-default-render-tool.d.ts","sourceRoot":"","sources":["../../../src/v2/hooks/use-default-render-tool.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,KAAK,CAAC;AACvC,OAAO,KAAK,EAAE,SAAS,EAAE,UAAU,EAAE,MAAM,KAAK,CAAC;AAMjD,KAAK,kBAAkB,GAAG;IACxB,IAAI,EAAE,MAAM,CAAC;IACb,UAAU,EAAE,MAAM,CAAC;IACnB,UAAU,EAAE,OAAO,CAAC;IACpB,MAAM,EAAE,YAAY,GAAG,WAAW,GAAG,UAAU,CAAC;IAChD,MAAM,EAAE,MAAM,GAAG,SAAS,CAAC;CAC5B,CAAC;AAuSF,wBAAgB,oBAAoB,CAClC,MAAM,CAAC,EAAE;IACP,MAAM,CAAC,EACH,CAAC,CAAC,KAAK,EAAE,kBAAkB,KAAK,UAAU,CAAC,GAC3C,SAAS,CAAC,kBAAkB,CAAC,CAAC;IAClC;;;;OAIG;IACH,KAAK,CAAC,EAAE,OAAO,CAAC;CACjB,EACD,IAAI,CAAC,EAAE,WAAW,CAAC,OAAO,CAAC,EAAE,GAC5B,IAAI,CAwDN"}
@@ -6,6 +6,11 @@ import type { VueFrontendTool } from "../types";
6
6
  * The tool registration is reactive to provided dependencies and is cleaned up
7
7
  * automatically when the current scope is disposed.
8
8
  *
9
+ * A tool with the same name and `agentId` as a tool that is already
10
+ * registered (for example a provider `frontendTools` entry) takes its place
11
+ * while this scope is active. When the scope is disposed, the earlier tool is
12
+ * active again.
13
+ *
9
14
  * @example
10
15
  * ```ts
11
16
  * useFrontendTool({
@@ -1 +1 @@
1
- {"version":3,"file":"use-frontend-tool.d.ts","sourceRoot":"","sources":["../../../src/v2/hooks/use-frontend-tool.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,KAAK,CAAC;AAEvC,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,UAAU,CAAC;AAKhD;;;;;;;;;;;;;;GAcG;AACH,wBAAgB,eAAe,CAAC,CAAC,SAAS,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,EAC/D,IAAI,EAAE,eAAe,CAAC,CAAC,CAAC,EACxB,IAAI,CAAC,EAAE,WAAW,CAAC,OAAO,CAAC,EAAE,QA6C9B"}
1
+ {"version":3,"file":"use-frontend-tool.d.ts","sourceRoot":"","sources":["../../../src/v2/hooks/use-frontend-tool.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,KAAK,CAAC;AAEvC,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,UAAU,CAAC;AAKhD;;;;;;;;;;;;;;;;;;;GAmBG;AACH,wBAAgB,eAAe,CAAC,CAAC,SAAS,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,EAC/D,IAAI,EAAE,eAAe,CAAC,CAAC,CAAC,EACxB,IAAI,CAAC,EAAE,WAAW,CAAC,OAAO,CAAC,EAAE,QAwC9B"}
@@ -1,21 +1,25 @@
1
1
  import type { Component } from "vue";
2
2
  import type { ActivityMessage } from "@ag-ui/core";
3
- import type { VueActivityMessageRenderer, VueActivityMessageRendererProps } from "../types";
4
- interface ActivityRendererResult {
5
- renderer: Component<VueActivityMessageRendererProps<unknown>>;
6
- props: VueActivityMessageRendererProps<unknown>;
7
- }
3
+ import type { VueActivityMessageRendererProps } from "../types";
8
4
  /**
9
5
  * Returns helpers for rendering activity messages.
10
6
  *
11
7
  * Matches the React `useRenderActivityMessage` API: `findRenderer` locates a
12
8
  * registered renderer by activity type (preferring agent-scoped over global,
13
9
  * with `"*"` as a wildcard fallback), and `renderActivityMessage` resolves the
14
- * renderer and validates the content schema.
10
+ * renderer and validates the content with the renderer's `content` schema
11
+ * (any Standard Schema, such as zod).
15
12
  */
16
13
  export declare function useRenderActivityMessage(): {
17
- renderActivityMessage: (message: ActivityMessage) => ActivityRendererResult | null;
18
- findRenderer: (activityType: string) => VueActivityMessageRenderer<unknown> | null;
14
+ renderActivityMessage: (message: ActivityMessage) => {
15
+ renderer: Component<VueActivityMessageRendererProps<unknown>>;
16
+ props: {
17
+ activityType: string;
18
+ content: unknown;
19
+ message: ActivityMessage;
20
+ agent: import("@ag-ui/client").AbstractAgent | undefined;
21
+ };
22
+ } | null;
23
+ findRenderer: (activityType: string) => import("..").VueActivityMessageRenderer<unknown> | null;
19
24
  };
20
- export {};
21
25
  //# sourceMappingURL=use-render-activity-message.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"use-render-activity-message.d.ts","sourceRoot":"","sources":["../../../src/v2/hooks/use-render-activity-message.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,KAAK,CAAC;AACrC,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,aAAa,CAAC;AAKnD,OAAO,KAAK,EACV,0BAA0B,EAC1B,+BAA+B,EAChC,MAAM,UAAU,CAAC;AAElB,UAAU,sBAAsB;IAC9B,QAAQ,EAAE,SAAS,CAAC,+BAA+B,CAAC,OAAO,CAAC,CAAC,CAAC;IAC9D,KAAK,EAAE,+BAA+B,CAAC,OAAO,CAAC,CAAC;CACjD;AAED;;;;;;;GAOG;AACH,wBAAgB,wBAAwB;qCA8B3B,eAAe,KACvB,sBAAsB,GAAG,IAAI;iCArBhB,MAAM,KACnB,0BAA0B,CAAC,OAAO,CAAC,GAAG,IAAI;EAwD9C"}
1
+ {"version":3,"file":"use-render-activity-message.d.ts","sourceRoot":"","sources":["../../../src/v2/hooks/use-render-activity-message.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,KAAK,CAAC;AACrC,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,aAAa,CAAC;AAKnD,OAAO,KAAK,EAAE,+BAA+B,EAAE,MAAM,UAAU,CAAC;AAEhE;;;;;;;;GAQG;AACH,wBAAgB,wBAAwB;qCAmBE,eAAe;kBAqBhB,SAAS,CAC1C,+BAA+B,CAAC,OAAO,CAAC,CACzC;;;;;;;;iCArC+B,MAAM;EAgD3C"}
@@ -1,14 +1,9 @@
1
- import type { Component, VNodeChild } from "vue";
2
1
  import type { Message } from "@ag-ui/core";
3
- import type { VueCustomMessageRendererPosition, VueCustomMessageRendererProps } from "../types";
2
+ import type { VueCustomMessageRendererPosition } from "../types";
4
3
  interface UseRenderCustomMessagesParams {
5
4
  message: Message;
6
5
  position: VueCustomMessageRendererPosition;
7
6
  }
8
- interface CustomMessageRendererResult {
9
- renderer: Component<VueCustomMessageRendererProps> | ((props: VueCustomMessageRendererProps) => VNodeChild);
10
- props: VueCustomMessageRendererProps;
11
- }
12
7
  /**
13
8
  * Returns a function that resolves the appropriate custom message renderer for
14
9
  * a given message and position.
@@ -22,6 +17,9 @@ interface CustomMessageRendererResult {
22
17
  * (i.e. when called outside a `CopilotChat` component tree) or if no
23
18
  * matching renderer is found.
24
19
  */
25
- export declare function useRenderCustomMessages(): (params: UseRenderCustomMessagesParams) => CustomMessageRendererResult | null;
20
+ export declare function useRenderCustomMessages(): (params: UseRenderCustomMessagesParams) => {
21
+ renderer: import("..").VueCustomMessageRendererRenderFn;
22
+ props: import("@copilotkit/core").CustomMessageRenderProps;
23
+ } | null;
26
24
  export {};
27
25
  //# sourceMappingURL=use-render-custom-messages.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"use-render-custom-messages.d.ts","sourceRoot":"","sources":["../../../src/v2/hooks/use-render-custom-messages.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,UAAU,EAAE,MAAM,KAAK,CAAC;AACjD,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,aAAa,CAAC;AAI3C,OAAO,KAAK,EACV,gCAAgC,EAChC,6BAA6B,EAC9B,MAAM,UAAU,CAAC;AAElB,UAAU,6BAA6B;IACrC,OAAO,EAAE,OAAO,CAAC;IACjB,QAAQ,EAAE,gCAAgC,CAAC;CAC5C;AAED,UAAU,2BAA2B;IACnC,QAAQ,EACJ,SAAS,CAAC,6BAA6B,CAAC,GACxC,CAAC,CAAC,KAAK,EAAE,6BAA6B,KAAK,UAAU,CAAC,CAAC;IAC3D,KAAK,EAAE,6BAA6B,CAAC;CACtC;AAED;;;;;;;;;;;;GAYG;AACH,wBAAgB,uBAAuB,KAKnC,QAAQ,6BAA6B,KACpC,2BAA2B,GAAG,IAAI,CAuFtC"}
1
+ {"version":3,"file":"use-render-custom-messages.d.ts","sourceRoot":"","sources":["../../../src/v2/hooks/use-render-custom-messages.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,aAAa,CAAC;AAK3C,OAAO,KAAK,EACV,gCAAgC,EAEjC,MAAM,UAAU,CAAC;AAElB,UAAU,6BAA6B;IACrC,OAAO,EAAE,OAAO,CAAC;IACjB,QAAQ,EAAE,gCAAgC,CAAC;CAC5C;AAED;;;;;;;;;;;;GAYG;AACH,wBAAgB,uBAAuB,KAID,QAAQ,6BAA6B;;;SA2E1E"}
@@ -26,11 +26,15 @@ export declare function useRenderTool(config: {
26
26
  name: "*";
27
27
  render: ((props: any) => VNodeChild) | Component<any>;
28
28
  agentId?: string;
29
+ /** Let the chat group the calls this renderer draws (see `toolCallDisplay`). */
30
+ group?: boolean;
29
31
  }, deps?: WatchSource<unknown>[]): void;
30
32
  export declare function useRenderTool<S extends StandardSchemaV1>(config: {
31
33
  name: string;
32
34
  parameters: S;
33
35
  render: ((props: RenderToolProps<S>) => VNodeChild) | Component<RenderToolProps<S>>;
34
36
  agentId?: string;
37
+ /** Let the chat group the calls this renderer draws (see `toolCallDisplay`). */
38
+ group?: boolean;
35
39
  }, deps?: WatchSource<unknown>[]): void;
36
40
  //# sourceMappingURL=use-render-tool.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"use-render-tool.d.ts","sourceRoot":"","sources":["../../../src/v2/hooks/use-render-tool.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,SAAS,EAAE,WAAW,EAAE,UAAU,EAAE,MAAM,KAAK,CAAC;AAC9D,OAAO,KAAK,EAAE,gBAAgB,EAAE,iBAAiB,EAAE,MAAM,oBAAoB,CAAC;AAU9E,MAAM,WAAW,yBAAyB,CAAC,CAAC,SAAS,gBAAgB;IACnE,IAAI,EAAE,MAAM,CAAC;IACb,UAAU,EAAE,MAAM,CAAC;IACnB,UAAU,EAAE,OAAO,CAAC,iBAAiB,CAAC,CAAC,CAAC,CAAC,CAAC;IAC1C,MAAM,EAAE,YAAY,CAAC;IACrB,MAAM,EAAE,SAAS,CAAC;CACnB;AAED,MAAM,WAAW,wBAAwB,CAAC,CAAC,SAAS,gBAAgB;IAClE,IAAI,EAAE,MAAM,CAAC;IACb,UAAU,EAAE,MAAM,CAAC;IACnB,UAAU,EAAE,iBAAiB,CAAC,CAAC,CAAC,CAAC;IACjC,MAAM,EAAE,WAAW,CAAC;IACpB,MAAM,EAAE,SAAS,CAAC;CACnB;AAED,MAAM,WAAW,uBAAuB,CAAC,CAAC,SAAS,gBAAgB;IACjE,IAAI,EAAE,MAAM,CAAC;IACb,UAAU,EAAE,MAAM,CAAC;IACnB,UAAU,EAAE,iBAAiB,CAAC,CAAC,CAAC,CAAC;IACjC,MAAM,EAAE,UAAU,CAAC;IACnB,MAAM,EAAE,MAAM,CAAC;CAChB;AAED,MAAM,MAAM,eAAe,CAAC,CAAC,SAAS,gBAAgB,IAClD,yBAAyB,CAAC,CAAC,CAAC,GAC5B,wBAAwB,CAAC,CAAC,CAAC,GAC3B,uBAAuB,CAAC,CAAC,CAAC,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AAC,EAAE,WAAW,CAAC,OAAO,CAAC,EAAE,GAC5B,IAAI,CAAC"}
package/dist/v2/index.cjs CHANGED
@@ -1,2 +1,2 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("../index.cjs"),a=require("@ag-ui/client"),o=require("@copilotkit/core"),n=require("@copilotkit/mcp-apps-renderer/activity"),i=require("@copilotkit/shared");exports.A2UIActivityContentSchema=e.A2UIActivityContentSchema;exports.A2UISurfaceActivityRenderer=e.A2UISurfaceActivityRenderer;exports.A2UISurfaceActivityType=e.A2UISurfaceActivityType;exports.ActivityDeltaEventSchema=e.ActivityDeltaEventSchema;exports.ActivityMessageSchema=e.ActivityMessageSchema;exports.ActivitySnapshotEventSchema=e.ActivitySnapshotEventSchema;exports.AddOperationSchema=e.AddOperationSchema;exports.AgentCapabilitiesSchema=e.AgentCapabilitiesSchema;exports.AssistantMessageSchema=e.AssistantMessageSchema;exports.AttributableSchema=e.AttributableSchema;exports.AudioInputContentSchema=e.AudioInputContentSchema;exports.AudioInputPartSchema=e.AudioInputContentSchema;exports.AudioPartSchema=e.AudioInputContentSchema;exports.BaseEventSchema=e.BaseEventSchema;exports.BaseMessageSchema=e.BaseMessageSchema;exports.BasicMarkdown=e.BasicMarkdown;exports.ContentPartSchema=e.ContentPartSchema;exports.ContextSchema=e.ContextSchema;exports.CopilotChat=e.CopilotChat;exports.CopilotChatAssistantMessage=e.CopilotChatAssistantMessage;exports.CopilotChatAttachmentQueue=e.CopilotChatAttachmentQueue;exports.CopilotChatAttachmentRenderer=e.CopilotChatAttachmentRenderer;exports.CopilotChatAudioRecorder=e.CopilotChatAudioRecorder;exports.CopilotChatConfigurationProvider=e.CopilotChatConfigurationProvider;exports.CopilotChatDefaultLabels=e.CopilotChatDefaultLabels;exports.CopilotChatInput=e.CopilotChatInput;exports.CopilotChatMessageView=e.CopilotChatMessageView;exports.CopilotChatReasoningMessage=e.CopilotChatReasoningMessage;exports.CopilotChatSuggestionPill=e.CopilotChatSuggestionPill;exports.CopilotChatSuggestionView=e.CopilotChatSuggestionView;exports.CopilotChatToggleButton=e.CopilotChatToggleButton;exports.CopilotChatToggleButtonCloseIcon=e.CopilotChatToggleButtonCloseIcon;exports.CopilotChatToggleButtonOpenIcon=e.CopilotChatToggleButtonOpenIcon;exports.CopilotChatToolCallsView=e.CopilotChatToolCallsView;exports.CopilotChatUserMessage=e.CopilotChatUserMessage;exports.CopilotChatView=e.CopilotChatView;exports.CopilotKit=e.CopilotKit;exports.CopilotKitCoreVue=e.CopilotKitCoreVue;exports.CopilotKitInspector=e.CopilotKitInspector;exports.CopilotKitProvider=e.CopilotKitProvider;exports.CopilotModalHeader=e.CopilotModalHeader;exports.CopilotPopup=e.CopilotPopup;exports.CopilotPopupView=e.CopilotPopupView;exports.CopilotSidebar=e.CopilotSidebar;exports.CopilotSidebarView=e.CopilotSidebarView;exports.CopilotThreadsDrawer=e.CopilotThreadsDrawer;exports.CopyOperationSchema=e.CopyOperationSchema;exports.CustomEventSchema=e.CustomEventSchema;exports.DataSourceSchema=e.DataSourceSchema;exports.DeveloperMessageSchema=e.DeveloperMessageSchema;exports.DocumentInputContentSchema=e.DocumentInputContentSchema;exports.DocumentInputPartSchema=e.DocumentInputContentSchema;exports.DocumentPartSchema=e.DocumentInputContentSchema;exports.EventSchema=e.EventSchema;exports.EventSchemas=e.EventSchema;exports.EventTypeSchema=e.EventTypeSchema;exports.ExecutionCapabilitiesSchema=e.ExecutionCapabilitiesSchema;exports.FileSourceSchema=e.FileSourceSchema;exports.FunctionCallSchema=e.FunctionCallSchema;exports.GenerateSandboxedUiArgsSchema=e.GenerateSandboxedUiArgsSchema;exports.HumanInTheLoopCapabilitiesSchema=e.HumanInTheLoopCapabilitiesSchema;exports.IdentityCapabilitiesSchema=e.IdentityCapabilitiesSchema;exports.ImageInputContentSchema=e.ImageInputContentSchema;exports.ImageInputPartSchema=e.ImageInputContentSchema;exports.ImagePartSchema=e.ImageInputContentSchema;exports.InputContentDataSourceSchema=e.DataSourceSchema;exports.InputContentSchema=e.ContentPartSchema;exports.InputContentSourceSchema=e.InputContentSourceSchema;exports.InputContentUrlSourceSchema=e.InputContentUrlSourceSchema;exports.InterruptSchema=e.InterruptSchema;exports.JsonPatchOperationSchema=e.JsonPatchOperationSchema;exports.JsonPatchSchema=e.JsonPatchSchema;exports.JsonPointerSchema=e.JsonPointerSchema;exports.LicenseContextKey=e.LicenseContextKey;exports.MARKDOWN_RENDERER_KEY=e.MARKDOWN_RENDERER_KEY;exports.MCPAppsActivityRenderer=e.MCPAppsActivityRenderer;exports.MessageSchema=e.MessageSchema;exports.MessagesSnapshotEventSchema=e.MessagesSnapshotEventSchema;exports.MetadataSchema=e.MetadataSchema;exports.MoveOperationSchema=e.MoveOperationSchema;exports.MultiAgentCapabilitiesSchema=e.MultiAgentCapabilitiesSchema;exports.MultimodalCapabilitiesSchema=e.MultimodalCapabilitiesSchema;exports.MultimodalInputCapabilitiesSchema=e.MultimodalInputCapabilitiesSchema;exports.MultimodalOutputCapabilitiesSchema=e.MultimodalOutputCapabilitiesSchema;exports.OpenGenerativeUIActivityRenderer=e.OpenGenerativeUIActivityRenderer;exports.OpenGenerativeUIActivityType=e.OpenGenerativeUIActivityType;exports.OpenGenerativeUIContentSchema=e.OpenGenerativeUIContentSchema;exports.OpenGenerativeUIRenderer=e.OpenGenerativeUIRenderer;exports.OpenGenerativeUIToolRenderer=e.OpenGenerativeUIToolRenderer;exports.OptionalMetadataSchema=e.OptionalMetadataSchema;exports.OutputCapabilitiesSchema=e.OutputCapabilitiesSchema;exports.PartSourceSchema=e.InputContentSourceSchema;exports.RawEventSchema=e.RawEventSchema;exports.ReasoningCapabilitiesSchema=e.ReasoningCapabilitiesSchema;exports.ReasoningEncryptedValueEventSchema=e.ReasoningEncryptedValueEventSchema;exports.ReasoningEncryptedValueSubtypeSchema=e.ReasoningEncryptedValueSubtypeSchema;exports.ReasoningEndEventSchema=e.ReasoningEndEventSchema;exports.ReasoningMessageChunkEventSchema=e.ReasoningMessageChunkEventSchema;exports.ReasoningMessageContentEventSchema=e.ReasoningMessageContentEventSchema;exports.ReasoningMessageEndEventSchema=e.ReasoningMessageEndEventSchema;exports.ReasoningMessageSchema=e.ReasoningMessageSchema;exports.ReasoningMessageStartEventSchema=e.ReasoningMessageStartEventSchema;exports.ReasoningStartEventSchema=e.ReasoningStartEventSchema;exports.RemoveOperationSchema=e.RemoveOperationSchema;exports.ReplaceOperationSchema=e.ReplaceOperationSchema;exports.ResumeEntrySchema=e.ResumeEntrySchema;exports.RoleSchema=e.RoleSchema;exports.RunAgentInputSchema=e.RunAgentInputSchema;exports.RunErrorEventSchema=e.RunErrorEventSchema;exports.RunFinishedCancelledOutcomeSchema=e.RunFinishedCancelledOutcomeSchema;exports.RunFinishedEventSchema=e.RunFinishedEventSchema;exports.RunFinishedInterruptOutcomeSchema=e.RunFinishedInterruptOutcomeSchema;exports.RunFinishedOutcomeSchema=e.RunFinishedOutcomeSchema;exports.RunFinishedSuccessOutcomeSchema=e.RunFinishedSuccessOutcomeSchema;exports.RunStartedEventSchema=e.RunStartedEventSchema;exports.StateCapabilitiesSchema=e.StateCapabilitiesSchema;exports.StateDeltaEventSchema=e.StateDeltaEventSchema;exports.StateSchema=e.StateSchema;exports.StateSnapshotEventSchema=e.StateSnapshotEventSchema;exports.StepFinishedEventSchema=e.StepFinishedEventSchema;exports.StepStartedEventSchema=e.StepStartedEventSchema;exports.StreamingMarkdownDefault=e.StreamingMarkdownDefault;exports.SubagentErrorEventSchema=e.SubagentErrorEventSchema;exports.SubagentFinishedEventSchema=e.SubagentFinishedEventSchema;exports.SubagentFinishedOutcomeSchema=e.SubagentFinishedOutcomeSchema;exports.SubagentFinishedSuccessOutcomeSchema=e.SubagentFinishedSuccessOutcomeSchema;exports.SubagentFinishedSuspendedOutcomeSchema=e.SubagentFinishedSuspendedOutcomeSchema;exports.SubagentInfoSchema=e.SubagentInfoSchema;exports.SubagentRunIdSchema=e.SubagentRunIdSchema;exports.SubagentStartedEventSchema=e.SubagentStartedEventSchema;exports.SystemMessageSchema=e.SystemMessageSchema;exports.TestOperationSchema=e.TestOperationSchema;exports.TextInputContentSchema=e.TextInputContentSchema;exports.TextMessageChunkEventSchema=e.TextMessageChunkEventSchema;exports.TextMessageContentEventSchema=e.TextMessageContentEventSchema;exports.TextMessageEndEventSchema=e.TextMessageEndEventSchema;exports.TextMessageRoleSchema=e.TextMessageRoleSchema;exports.TextMessageStartEventSchema=e.TextMessageStartEventSchema;exports.TextPartSchema=e.TextInputContentSchema;exports.TokenUsageSchema=e.TokenUsageSchema;exports.ToolCallArgsEventSchema=e.ToolCallArgsEventSchema;exports.ToolCallChunkEventSchema=e.ToolCallChunkEventSchema;exports.ToolCallEndEventSchema=e.ToolCallEndEventSchema;exports.ToolCallResultEventSchema=e.ToolCallResultEventSchema;exports.ToolCallSchema=e.ToolCallSchema;exports.ToolCallStartEventSchema=e.ToolCallStartEventSchema;exports.ToolMessageSchema=e.ToolMessageSchema;exports.ToolSchema=e.ToolSchema;exports.ToolsCapabilitiesSchema=e.ToolsCapabilitiesSchema;exports.TransportCapabilitiesSchema=e.TransportCapabilitiesSchema;exports.UrlSourceSchema=e.InputContentUrlSourceSchema;exports.UseAgentUpdate=e.UseAgentUpdate;exports.UserMessageSchema=e.UserMessageSchema;exports.VideoInputContentSchema=e.VideoInputContentSchema;exports.VideoInputPartSchema=e.VideoInputContentSchema;exports.VideoPartSchema=e.VideoInputContentSchema;exports.createA2UIMessageRenderer=e.createA2UIMessageRenderer;exports.createDefaultLicenseRef=e.createDefaultLicenseRef;exports.defineToolCallRenderer=e.defineToolCallRenderer;exports.extractCompleteStyles=e.extractCompleteStyles;exports.getOperationSurfaceId=e.getOperationSurfaceId;exports.isVueComponentRenderer=e.isVueComponentRenderer;exports.processPartialHtml=e.processPartialHtml;exports.useAgent=e.useAgent;exports.useAgentContext=e.useAgentContext;exports.useAttachments=e.useAttachments;exports.useCapabilities=e.useCapabilities;exports.useComponent=e.useComponent;exports.useConfigureSuggestions=e.useConfigureSuggestions;exports.useCopilotAction=e.useCopilotAction;exports.useCopilotChatConfiguration=e.useCopilotChatConfiguration;exports.useCopilotKit=e.useCopilotKit;exports.useCopilotReadable=e.useCopilotReadable;exports.useDefaultRenderTool=e.useDefaultRenderTool;exports.useFrontendTool=e.useFrontendTool;exports.useHumanInTheLoop=e.useHumanInTheLoop;exports.useInterrupt=e.useInterrupt;exports.useKeyboardHeight=e.useKeyboardHeight;exports.useLicenseContext=e.useLicenseContext;exports.useMarkdownRenderer=e.useMarkdownRenderer;exports.useRenderActivityMessage=e.useRenderActivityMessage;exports.useRenderCustomMessages=e.useRenderCustomMessages;exports.useRenderTool=e.useRenderTool;exports.useSandboxFunctions=e.useSandboxFunctions;exports.useSuggestions=e.useSuggestions;exports.useThreads=e.useThreads;exports.vueBasicCatalog=e.vueBasicCatalog;Object.defineProperty(exports,"PROTOCOL_VERSION",{enumerable:!0,get:()=>a.PROTOCOL_VERSION});Object.defineProperty(exports,"MCPAppsActivityContentSchema",{enumerable:!0,get:()=>n.MCPAppsActivityContentSchema});Object.defineProperty(exports,"MCPAppsActivityType",{enumerable:!0,get:()=>n.MCPAppsActivityType});Object.defineProperty(exports,"ɵrunMcpFollowUp",{enumerable:!0,get:()=>n.ɵrunMcpFollowUp});Object.defineProperty(exports,"createLicenseContextValue",{enumerable:!0,get:()=>i.createLicenseContextValue});Object.keys(a).forEach(t=>{t!=="default"&&!Object.prototype.hasOwnProperty.call(exports,t)&&Object.defineProperty(exports,t,{enumerable:!0,get:()=>a[t]})});Object.keys(o).forEach(t=>{t!=="default"&&!Object.prototype.hasOwnProperty.call(exports,t)&&Object.defineProperty(exports,t,{enumerable:!0,get:()=>o[t]})});
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const a=require("@copilotkit/core"),n=require("@ag-ui/client"),e=require("../use-render-activity-message-2np7y4Qt.cjs"),o=require("@copilotkit/mcp-apps-renderer/activity"),c=require("@copilotkit/shared");Object.defineProperty(exports,"CopilotChatDefaultLabels",{enumerable:!0,get:()=>a.CopilotChatDefaultLabels});Object.defineProperty(exports,"extractCompleteStyles",{enumerable:!0,get:()=>a.ɵextractCompleteStyles});Object.defineProperty(exports,"processPartialHtml",{enumerable:!0,get:()=>a.ɵprocessPartialHtml});Object.defineProperty(exports,"PROTOCOL_VERSION",{enumerable:!0,get:()=>n.PROTOCOL_VERSION});exports.A2UIActivityContentSchema=e.A2UIActivityContentSchema;exports.A2UISurfaceActivityRenderer=e._sfc_main;exports.A2UISurfaceActivityType=e.A2UISurfaceActivityType;exports.ActivityDeltaEventSchema=e.ActivityDeltaEventSchema;exports.ActivityMessageSchema=e.ActivityMessageSchema;exports.ActivitySnapshotEventSchema=e.ActivitySnapshotEventSchema;exports.AddOperationSchema=e.AddOperationSchema;exports.AgentCapabilitiesSchema=e.AgentCapabilitiesSchema;exports.AssistantMessageSchema=e.AssistantMessageSchema;exports.AttributableSchema=e.AttributableSchema;exports.AudioInputContentSchema=e.AudioPartSchema;exports.AudioInputPartSchema=e.AudioPartSchema;exports.AudioPartSchema=e.AudioPartSchema;exports.BaseEventSchema=e.BaseEventSchema;exports.BaseMessageSchema=e.BaseMessageSchema;exports.ContentPartSchema=e.ContentPartSchema;exports.ContextSchema=e.ContextSchema;exports.CopilotChat=e.CopilotChat;exports.CopilotChatAssistantMessage=e._sfc_main$1;exports.CopilotChatAttachmentQueue=e._sfc_main$2;exports.CopilotChatAttachmentRenderer=e._sfc_main$3;exports.CopilotChatAudioRecorder=e._sfc_main$4;exports.CopilotChatConfigurationProvider=e._sfc_main$5;exports.CopilotChatInput=e._sfc_main$6;exports.CopilotChatMessageView=e._sfc_main$7;exports.CopilotChatReasoningMessage=e._sfc_main$8;exports.CopilotChatSuggestionPill=e._sfc_main$9;exports.CopilotChatSuggestionView=e._sfc_main$10;exports.CopilotChatToggleButton=e.CopilotChatToggleButton;exports.CopilotChatToggleButtonCloseIcon=e.CopilotChatToggleButtonCloseIcon;exports.CopilotChatToggleButtonOpenIcon=e.CopilotChatToggleButtonOpenIcon;exports.CopilotChatToolCallGroup=e._sfc_main$11;exports.CopilotChatToolCallsView=e._sfc_main$12;exports.CopilotChatUserMessage=e._sfc_main$13;exports.CopilotChatView=e._sfc_main$14;exports.CopilotChatWorkSummary=e._sfc_main$15;exports.CopilotKitCoreVue=e.CopilotKitCoreVue;exports.CopilotKitInspector=e._sfc_main$16;exports.CopilotKitProvider=e._sfc_main$17;exports.CopilotKitStyles=e.CopilotKitStyles;exports.CopilotModalHeader=e.CopilotModalHeader;exports.CopilotPopup=e._sfc_main$18;exports.CopilotPopupView=e.CopilotPopupView;exports.CopilotSidebar=e._sfc_main$19;exports.CopilotSidebarView=e.CopilotSidebarView;exports.CopilotThreadsDrawer=e._sfc_main$20;exports.CopyOperationSchema=e.CopyOperationSchema;exports.CustomEventSchema=e.CustomEventSchema;exports.DataSourceSchema=e.DataSourceSchema;exports.DeveloperMessageSchema=e.DeveloperMessageSchema;exports.DocumentInputContentSchema=e.DocumentPartSchema;exports.DocumentInputPartSchema=e.DocumentPartSchema;exports.DocumentPartSchema=e.DocumentPartSchema;exports.EventSchema=e.EventSchema;exports.EventSchemas=e.EventSchema;exports.EventTypeSchema=e.EventTypeSchema;exports.ExecutionCapabilitiesSchema=e.ExecutionCapabilitiesSchema;exports.FileSourceSchema=e.FileSourceSchema;exports.FunctionCallSchema=e.FunctionCallSchema;exports.GenerateSandboxedUiArgsSchema=e.GenerateSandboxedUiArgsSchema;exports.HumanInTheLoopCapabilitiesSchema=e.HumanInTheLoopCapabilitiesSchema;exports.IdentityCapabilitiesSchema=e.IdentityCapabilitiesSchema;exports.ImageInputContentSchema=e.ImagePartSchema;exports.ImageInputPartSchema=e.ImagePartSchema;exports.ImagePartSchema=e.ImagePartSchema;exports.InputContentDataSourceSchema=e.DataSourceSchema;exports.InputContentSchema=e.ContentPartSchema;exports.InputContentSourceSchema=e.PartSourceSchema;exports.InputContentUrlSourceSchema=e.UrlSourceSchema;exports.InterruptSchema=e.InterruptSchema;exports.JsonPatchOperationSchema=e.JsonPatchOperationSchema;exports.JsonPatchSchema=e.JsonPatchSchema;exports.JsonPointerSchema=e.JsonPointerSchema;exports.LicenseContextKey=e.LicenseContextKey;exports.MARKDOWN_RENDERER_KEY=e.MARKDOWN_RENDERER_KEY;exports.MCPAppsActivityRenderer=e.MCPAppsActivityRenderer;exports.MessageSchema=e.MessageSchema;exports.MessagesSnapshotEventSchema=e.MessagesSnapshotEventSchema;exports.MetadataSchema=e.MetadataSchema;exports.MoveOperationSchema=e.MoveOperationSchema;exports.MultiAgentCapabilitiesSchema=e.MultiAgentCapabilitiesSchema;exports.MultimodalCapabilitiesSchema=e.MultimodalCapabilitiesSchema;exports.MultimodalInputCapabilitiesSchema=e.MultimodalInputCapabilitiesSchema;exports.MultimodalOutputCapabilitiesSchema=e.MultimodalOutputCapabilitiesSchema;exports.OpenGenerativeUIActivityRenderer=e.OpenGenerativeUIActivityRenderer;exports.OpenGenerativeUIActivityType=e.OpenGenerativeUIActivityType;exports.OpenGenerativeUIContentSchema=e.OpenGenerativeUIContentSchema;exports.OpenGenerativeUIRenderer=e.OpenGenerativeUIRenderer;exports.OpenGenerativeUIToolRenderer=e.OpenGenerativeUIToolRenderer;exports.OptionalMetadataSchema=e.OptionalMetadataSchema;exports.OutputCapabilitiesSchema=e.OutputCapabilitiesSchema;exports.PartSourceSchema=e.PartSourceSchema;exports.RawEventSchema=e.RawEventSchema;exports.ReasoningCapabilitiesSchema=e.ReasoningCapabilitiesSchema;exports.ReasoningEncryptedValueEventSchema=e.ReasoningEncryptedValueEventSchema;exports.ReasoningEncryptedValueSubtypeSchema=e.ReasoningEncryptedValueSubtypeSchema;exports.ReasoningEndEventSchema=e.ReasoningEndEventSchema;exports.ReasoningMessageChunkEventSchema=e.ReasoningMessageChunkEventSchema;exports.ReasoningMessageContentEventSchema=e.ReasoningMessageContentEventSchema;exports.ReasoningMessageEndEventSchema=e.ReasoningMessageEndEventSchema;exports.ReasoningMessageSchema=e.ReasoningMessageSchema;exports.ReasoningMessageStartEventSchema=e.ReasoningMessageStartEventSchema;exports.ReasoningStartEventSchema=e.ReasoningStartEventSchema;exports.RemoveOperationSchema=e.RemoveOperationSchema;exports.ReplaceOperationSchema=e.ReplaceOperationSchema;exports.ResumeEntrySchema=e.ResumeEntrySchema;exports.RoleSchema=e.RoleSchema;exports.RunAgentInputSchema=e.RunAgentInputSchema;exports.RunErrorEventSchema=e.RunErrorEventSchema;exports.RunFinishedCancelledOutcomeSchema=e.RunFinishedCancelledOutcomeSchema;exports.RunFinishedEventSchema=e.RunFinishedEventSchema;exports.RunFinishedInterruptOutcomeSchema=e.RunFinishedInterruptOutcomeSchema;exports.RunFinishedOutcomeSchema=e.RunFinishedOutcomeSchema;exports.RunFinishedSuccessOutcomeSchema=e.RunFinishedSuccessOutcomeSchema;exports.RunStartedEventSchema=e.RunStartedEventSchema;exports.StateCapabilitiesSchema=e.StateCapabilitiesSchema;exports.StateDeltaEventSchema=e.StateDeltaEventSchema;exports.StateSchema=e.StateSchema;exports.StateSnapshotEventSchema=e.StateSnapshotEventSchema;exports.StepFinishedEventSchema=e.StepFinishedEventSchema;exports.StepStartedEventSchema=e.StepStartedEventSchema;exports.StreamingMarkdownDefault=e._sfc_main$21;exports.SubagentErrorEventSchema=e.SubagentErrorEventSchema;exports.SubagentFinishedEventSchema=e.SubagentFinishedEventSchema;exports.SubagentFinishedOutcomeSchema=e.SubagentFinishedOutcomeSchema;exports.SubagentFinishedSuccessOutcomeSchema=e.SubagentFinishedSuccessOutcomeSchema;exports.SubagentFinishedSuspendedOutcomeSchema=e.SubagentFinishedSuspendedOutcomeSchema;exports.SubagentInfoSchema=e.SubagentInfoSchema;exports.SubagentRunIdSchema=e.SubagentRunIdSchema;exports.SubagentStartedEventSchema=e.SubagentStartedEventSchema;exports.SystemMessageSchema=e.SystemMessageSchema;exports.TestOperationSchema=e.TestOperationSchema;exports.TextInputContentSchema=e.TextPartSchema;exports.TextMessageChunkEventSchema=e.TextMessageChunkEventSchema;exports.TextMessageContentEventSchema=e.TextMessageContentEventSchema;exports.TextMessageEndEventSchema=e.TextMessageEndEventSchema;exports.TextMessageRoleSchema=e.TextMessageRoleSchema;exports.TextMessageStartEventSchema=e.TextMessageStartEventSchema;exports.TextPartSchema=e.TextPartSchema;exports.TokenUsageSchema=e.TokenUsageSchema;exports.ToolCallArgsEventSchema=e.ToolCallArgsEventSchema;exports.ToolCallChunkEventSchema=e.ToolCallChunkEventSchema;exports.ToolCallEndEventSchema=e.ToolCallEndEventSchema;exports.ToolCallResultEventSchema=e.ToolCallResultEventSchema;exports.ToolCallSchema=e.ToolCallSchema;exports.ToolCallStartEventSchema=e.ToolCallStartEventSchema;exports.ToolMessageSchema=e.ToolMessageSchema;exports.ToolSchema=e.ToolSchema;exports.ToolsCapabilitiesSchema=e.ToolsCapabilitiesSchema;exports.TransportCapabilitiesSchema=e.TransportCapabilitiesSchema;exports.UrlSourceSchema=e.UrlSourceSchema;exports.UseAgentUpdate=e.UseAgentUpdate;exports.UserMessageSchema=e.UserMessageSchema;exports.VideoInputContentSchema=e.VideoPartSchema;exports.VideoInputPartSchema=e.VideoPartSchema;exports.VideoPartSchema=e.VideoPartSchema;exports.createA2UIMessageRenderer=e.createA2UIMessageRenderer;exports.createDefaultLicenseRef=e.createDefaultLicenseRef;exports.defineToolCallRenderer=e.defineToolCallRenderer;exports.getOperationSurfaceId=e.getOperationSurfaceId;exports.isVueComponentRenderer=e.isVueComponentRenderer;exports.useAgent=e.useAgent;exports.useAgentContext=e.useAgentContext;exports.useAttachments=e.useAttachments;exports.useCapabilities=e.useCapabilities;exports.useComponent=e.useComponent;exports.useConfigureSuggestions=e.useConfigureSuggestions;exports.useCopilotChatConfiguration=e.useCopilotChatConfiguration;exports.useCopilotKit=e.useCopilotKit;exports.useDefaultRenderTool=e.useDefaultRenderTool;exports.useFrontendTool=e.useFrontendTool;exports.useHumanInTheLoop=e.useHumanInTheLoop;exports.useInterrupt=e.useInterrupt;exports.useKeyboardHeight=e.useKeyboardHeight;exports.useLicenseContext=e.useLicenseContext;exports.useMarkdownRenderer=e.useMarkdownRenderer;exports.useRenderActivityMessage=e.useRenderActivityMessage;exports.useRenderCustomMessages=e.useRenderCustomMessages;exports.useRenderTool=e.useRenderTool;exports.useSandboxFunctions=e.useSandboxFunctions;exports.useSuggestions=e.useSuggestions;exports.useThreads=e.useThreads;exports.vueBasicCatalog=e.vueBasicCatalog;Object.defineProperty(exports,"MCPAppsActivityContentSchema",{enumerable:!0,get:()=>o.MCPAppsActivityContentSchema});Object.defineProperty(exports,"MCPAppsActivityType",{enumerable:!0,get:()=>o.MCPAppsActivityType});Object.defineProperty(exports,"ɵrunMcpFollowUp",{enumerable:!0,get:()=>o.ɵrunMcpFollowUp});Object.defineProperty(exports,"createLicenseContextValue",{enumerable:!0,get:()=>c.createLicenseContextValue});Object.keys(a).forEach(t=>{t!=="default"&&!Object.prototype.hasOwnProperty.call(exports,t)&&Object.defineProperty(exports,t,{enumerable:!0,get:()=>a[t]})});Object.keys(n).forEach(t=>{t!=="default"&&!Object.prototype.hasOwnProperty.call(exports,t)&&Object.defineProperty(exports,t,{enumerable:!0,get:()=>n[t]})});
2
2
  //# sourceMappingURL=index.cjs.map
@@ -6,6 +6,9 @@ export * from "./components";
6
6
  export { vueBasicCatalog } from "./components/a2ui/catalog";
7
7
  export * from "./hooks";
8
8
  export * from "./providers";
9
+ export { CopilotKitStyles } from "./styles/CopilotKitStyles";
10
+ export type { A2UIMessageRendererOptions } from "./components/A2UIMessageRenderer";
11
+ export type { A2UIRecoveryRendererOptions } from "./components/a2ui/A2UIRecoveryStates";
9
12
  export * from "./types";
10
13
  export * from "./lib/vue-core";
11
14
  export * from "./lib/processPartialHtml";
@@ -6,6 +6,9 @@ export * from "./components";
6
6
  export { vueBasicCatalog } from "./components/a2ui/catalog";
7
7
  export * from "./hooks";
8
8
  export * from "./providers";
9
+ export { CopilotKitStyles } from "./styles/CopilotKitStyles";
10
+ export type { A2UIMessageRendererOptions } from "./components/A2UIMessageRenderer";
11
+ export type { A2UIRecoveryRendererOptions } from "./components/a2ui/A2UIRecoveryStates";
9
12
  export * from "./types";
10
13
  export * from "./lib/vue-core";
11
14
  export * from "./lib/processPartialHtml";
@@ -6,6 +6,9 @@ export * from "./components";
6
6
  export { vueBasicCatalog } from "./components/a2ui/catalog";
7
7
  export * from "./hooks";
8
8
  export * from "./providers";
9
+ export { CopilotKitStyles } from "./styles/CopilotKitStyles";
10
+ export type { A2UIMessageRendererOptions } from "./components/A2UIMessageRenderer";
11
+ export type { A2UIRecoveryRendererOptions } from "./components/a2ui/A2UIRecoveryStates";
9
12
  export * from "./types";
10
13
  export * from "./lib/vue-core";
11
14
  export * from "./lib/processPartialHtml";
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/v2/index.ts"],"names":[],"mappings":"AACA,cAAc,kBAAkB,CAAC;AACjC,cAAc,eAAe,CAAC;AAI9B,cAAc,qBAAqB,CAAC;AACpC,OAAO,EAAE,gBAAgB,EAAE,MAAM,eAAe,CAAC;AAGjD,cAAc,cAAc,CAAC;AAK7B,OAAO,EAAE,eAAe,EAAE,MAAM,2BAA2B,CAAC;AAC5D,cAAc,SAAS,CAAC;AACxB,cAAc,aAAa,CAAC;AAC5B,cAAc,SAAS,CAAC;AACxB,cAAc,gBAAgB,CAAC;AAC/B,cAAc,0BAA0B,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/v2/index.ts"],"names":[],"mappings":"AACA,cAAc,kBAAkB,CAAC;AACjC,cAAc,eAAe,CAAC;AAI9B,cAAc,qBAAqB,CAAC;AACpC,OAAO,EAAE,gBAAgB,EAAE,MAAM,eAAe,CAAC;AAGjD,cAAc,cAAc,CAAC;AAK7B,OAAO,EAAE,eAAe,EAAE,MAAM,2BAA2B,CAAC;AAC5D,cAAc,SAAS,CAAC;AACxB,cAAc,aAAa,CAAC;AAC5B,OAAO,EAAE,gBAAgB,EAAE,MAAM,2BAA2B,CAAC;AAC7D,YAAY,EAAE,0BAA0B,EAAE,MAAM,kCAAkC,CAAC;AACnF,YAAY,EAAE,2BAA2B,EAAE,MAAM,sCAAsC,CAAC;AACxF,cAAc,SAAS,CAAC;AACxB,cAAc,gBAAgB,CAAC;AAC/B,cAAc,0BAA0B,CAAC"}