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

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 (239) 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/index.cjs +43 -46
  6. package/dist/index.cjs.map +1 -1
  7. package/dist/index.mjs +10170 -7506
  8. package/dist/index.mjs.map +1 -1
  9. package/dist/v2/components/A2UIMessageRenderer.d.ts +7 -0
  10. package/dist/v2/components/A2UIMessageRenderer.d.ts.map +1 -1
  11. package/dist/v2/components/A2UISurfaceActivityRenderer.vue.d.ts.map +1 -1
  12. package/dist/v2/components/a2ui/A2UIBuiltInToolCallRenderer.d.ts +11 -2
  13. package/dist/v2/components/a2ui/A2UIBuiltInToolCallRenderer.d.ts.map +1 -1
  14. package/dist/v2/components/a2ui/A2UIRecoveryStates.d.ts +136 -0
  15. package/dist/v2/components/a2ui/A2UIRecoveryStates.d.ts.map +1 -0
  16. package/dist/v2/components/chat/BasicMarkdown.vue.d.ts.map +1 -1
  17. package/dist/v2/components/chat/CopilotChat.vue.d.ts +1 -0
  18. package/dist/v2/components/chat/CopilotChat.vue.d.ts.map +1 -1
  19. package/dist/v2/components/chat/CopilotChatAssistantMessage.vue.d.ts +3 -1
  20. package/dist/v2/components/chat/CopilotChatAssistantMessage.vue.d.ts.map +1 -1
  21. package/dist/v2/components/chat/CopilotChatAssistantToolbarButton.vue.d.ts +16 -0
  22. package/dist/v2/components/chat/CopilotChatAssistantToolbarButton.vue.d.ts.map +1 -0
  23. package/dist/v2/components/chat/CopilotChatAttachmentQueue.vue.d.ts.map +1 -1
  24. package/dist/v2/components/chat/CopilotChatAttachmentRenderer.vue.d.ts.map +1 -1
  25. package/dist/v2/components/chat/CopilotChatAudioRecorder.vue.d.ts.map +1 -1
  26. package/dist/v2/components/chat/CopilotChatFeedbackCommentPopover.vue.d.ts +22 -0
  27. package/dist/v2/components/chat/CopilotChatFeedbackCommentPopover.vue.d.ts.map +1 -0
  28. package/dist/v2/components/chat/CopilotChatInput.vue.d.ts +69 -16
  29. package/dist/v2/components/chat/CopilotChatInput.vue.d.ts.map +1 -1
  30. package/dist/v2/components/chat/CopilotChatInspectorButton.vue.d.ts +12 -0
  31. package/dist/v2/components/chat/CopilotChatInspectorButton.vue.d.ts.map +1 -0
  32. package/dist/v2/components/chat/CopilotChatLightbox.vue.d.ts +22 -0
  33. package/dist/v2/components/chat/CopilotChatLightbox.vue.d.ts.map +1 -0
  34. package/dist/v2/components/chat/CopilotChatMessageView.vue.d.ts +20 -0
  35. package/dist/v2/components/chat/CopilotChatMessageView.vue.d.ts.map +1 -1
  36. package/dist/v2/components/chat/CopilotChatReasoningMessage.vue.d.ts.map +1 -1
  37. package/dist/v2/components/chat/CopilotChatSuggestionPill.vue.d.ts.map +1 -1
  38. package/dist/v2/components/chat/CopilotChatSuggestionView.vue.d.ts.map +1 -1
  39. package/dist/v2/components/chat/CopilotChatToggleButton.vue.d.ts.map +1 -1
  40. package/dist/v2/components/chat/CopilotChatToolCallGroup.vue.d.ts +32 -0
  41. package/dist/v2/components/chat/CopilotChatToolCallGroup.vue.d.ts.map +1 -0
  42. package/dist/v2/components/chat/CopilotChatToolCallItem.vue.d.ts.map +1 -1
  43. package/dist/v2/components/chat/CopilotChatToolCallsView.vue.d.ts +11 -1
  44. package/dist/v2/components/chat/CopilotChatToolCallsView.vue.d.ts.map +1 -1
  45. package/dist/v2/components/chat/CopilotChatUserMessage.vue.d.ts.map +1 -1
  46. package/dist/v2/components/chat/CopilotChatView.vue.d.ts +1 -0
  47. package/dist/v2/components/chat/CopilotChatView.vue.d.ts.map +1 -1
  48. package/dist/v2/components/chat/CopilotChatWorkSummary.vue.d.ts +5 -0
  49. package/dist/v2/components/chat/CopilotChatWorkSummary.vue.d.ts.map +1 -0
  50. package/dist/v2/components/chat/CopilotModalHeader.vue.d.ts.map +1 -1
  51. package/dist/v2/components/chat/CopilotModalHeaderCloseButton.d.ts.map +1 -1
  52. package/dist/v2/components/chat/CopilotModalHeaderTitle.d.ts.map +1 -1
  53. package/dist/v2/components/chat/CopilotPopup.vue.d.ts +1 -0
  54. package/dist/v2/components/chat/CopilotPopup.vue.d.ts.map +1 -1
  55. package/dist/v2/components/chat/CopilotPopupView.vue.d.ts +1 -0
  56. package/dist/v2/components/chat/CopilotPopupView.vue.d.ts.map +1 -1
  57. package/dist/v2/components/chat/CopilotPopupViewInternal.vue.d.ts +1 -0
  58. package/dist/v2/components/chat/CopilotPopupViewInternal.vue.d.ts.map +1 -1
  59. package/dist/v2/components/chat/CopilotPopupWelcomeScreen.vue.d.ts.map +1 -1
  60. package/dist/v2/components/chat/CopilotSidebar.vue.d.ts +2 -0
  61. package/dist/v2/components/chat/CopilotSidebar.vue.d.ts.map +1 -1
  62. package/dist/v2/components/chat/CopilotSidebarView.vue.d.ts +2 -0
  63. package/dist/v2/components/chat/CopilotSidebarView.vue.d.ts.map +1 -1
  64. package/dist/v2/components/chat/CopilotSidebarViewInternal.vue.d.ts +2 -0
  65. package/dist/v2/components/chat/CopilotSidebarViewInternal.vue.d.ts.map +1 -1
  66. package/dist/v2/components/chat/CopilotSidebarWelcomeScreen.vue.d.ts.map +1 -1
  67. package/dist/v2/components/chat/StreamingMarkdownDefault.vue.d.ts.map +1 -1
  68. package/dist/v2/components/chat/index.d.ts +17 -0
  69. package/dist/v2/components/chat/index.d.ts.map +1 -1
  70. package/dist/v2/components/chat/inspector-shortcuts.d.ts +12 -0
  71. package/dist/v2/components/chat/inspector-shortcuts.d.ts.map +1 -0
  72. package/dist/v2/components/chat/message-feedback.d.ts +89 -0
  73. package/dist/v2/components/chat/message-feedback.d.ts.map +1 -0
  74. package/dist/v2/components/chat/tool-call-capture.d.ts +39 -0
  75. package/dist/v2/components/chat/tool-call-capture.d.ts.map +1 -0
  76. package/dist/v2/components/chat/tool-call-display-context.d.ts +39 -0
  77. package/dist/v2/components/chat/tool-call-display-context.d.ts.map +1 -0
  78. package/dist/v2/components/chat/tool-call-group-parts.d.ts +144 -0
  79. package/dist/v2/components/chat/tool-call-group-parts.d.ts.map +1 -0
  80. package/dist/v2/components/chat/tool-call-layout.d.ts +115 -0
  81. package/dist/v2/components/chat/tool-call-layout.d.ts.map +1 -0
  82. package/dist/v2/components/chat/turn-work.d.ts +35 -0
  83. package/dist/v2/components/chat/turn-work.d.ts.map +1 -0
  84. package/dist/v2/components/chat/types.d.ts +104 -4
  85. package/dist/v2/components/chat/types.d.ts.map +1 -1
  86. package/dist/v2/components/chat/use-lightbox.d.ts +18 -0
  87. package/dist/v2/components/chat/use-lightbox.d.ts.map +1 -0
  88. package/dist/v2/components/icons/index.d.ts +1 -1
  89. package/dist/v2/components/icons/index.d.ts.map +1 -1
  90. package/dist/v2/components/ui/CopilotDropdownMenuContent.vue.d.ts +55 -0
  91. package/dist/v2/components/ui/CopilotDropdownMenuContent.vue.d.ts.map +1 -0
  92. package/dist/v2/components/ui/CopilotPopover.vue.d.ts +40 -0
  93. package/dist/v2/components/ui/CopilotPopover.vue.d.ts.map +1 -0
  94. package/dist/v2/components/ui/CopilotTooltip.vue.d.ts +37 -0
  95. package/dist/v2/components/ui/CopilotTooltip.vue.d.ts.map +1 -0
  96. package/dist/v2/components/ui/dropdown-menu.d.ts +14 -0
  97. package/dist/v2/components/ui/dropdown-menu.d.ts.map +1 -0
  98. package/dist/v2/components/ui/floating.d.ts +84 -0
  99. package/dist/v2/components/ui/floating.d.ts.map +1 -0
  100. package/dist/v2/components/ui/presence.d.ts +9 -0
  101. package/dist/v2/components/ui/presence.d.ts.map +1 -0
  102. package/dist/v2/components/ui/use-id.d.ts +9 -0
  103. package/dist/v2/components/ui/use-id.d.ts.map +1 -0
  104. package/dist/v2/hooks/use-default-render-tool.d.ts +6 -0
  105. package/dist/v2/hooks/use-default-render-tool.d.ts.map +1 -1
  106. package/dist/v2/hooks/use-render-tool.d.ts +4 -0
  107. package/dist/v2/hooks/use-render-tool.d.ts.map +1 -1
  108. package/dist/v2/index.cjs +1 -1
  109. package/dist/v2/index.d.cts +3 -0
  110. package/dist/v2/index.d.mts +3 -0
  111. package/dist/v2/index.d.ts +3 -0
  112. package/dist/v2/index.d.ts.map +1 -1
  113. package/dist/v2/index.mjs +165 -162
  114. package/dist/v2/lib/message-feedback.d.ts +33 -0
  115. package/dist/v2/lib/message-feedback.d.ts.map +1 -0
  116. package/dist/v2/providers/CopilotChatConfigurationProvider.vue.d.ts.map +1 -1
  117. package/dist/v2/providers/CopilotKitProvider.types.d.ts +56 -1
  118. package/dist/v2/providers/CopilotKitProvider.types.d.ts.map +1 -1
  119. package/dist/v2/providers/CopilotKitProvider.vue.d.ts +5 -1
  120. package/dist/v2/providers/CopilotKitProvider.vue.d.ts.map +1 -1
  121. package/dist/v2/providers/index.d.ts +1 -1
  122. package/dist/v2/providers/index.d.ts.map +1 -1
  123. package/dist/v2/providers/keys.d.ts +8 -0
  124. package/dist/v2/providers/keys.d.ts.map +1 -1
  125. package/dist/v2/providers/types.d.ts +9 -0
  126. package/dist/v2/providers/types.d.ts.map +1 -1
  127. package/dist/v2/styles/CopilotKitStyles.d.ts +18 -0
  128. package/dist/v2/styles/CopilotKitStyles.d.ts.map +1 -0
  129. package/dist/v2/types/defineToolCallRenderer.d.ts +2 -0
  130. package/dist/v2/types/defineToolCallRenderer.d.ts.map +1 -1
  131. package/dist/v2/types/vue-tool-call-renderer.d.ts +7 -0
  132. package/dist/v2/types/vue-tool-call-renderer.d.ts.map +1 -1
  133. package/package.json +11 -23
  134. package/src/components/copilot-provider/CopilotKit.vue +4 -1
  135. package/src/v2/__tests__/exports.test.ts +4 -2
  136. package/src/v2/components/A2UIMessageRenderer.ts +55 -67
  137. package/src/v2/components/A2UISurfaceActivityRenderer.vue +11 -23
  138. package/src/v2/components/__tests__/A2UIBasicCatalogColors.test.ts +8 -9
  139. package/src/v2/components/__tests__/A2UIMessageRenderer.test.ts +63 -36
  140. package/src/v2/components/a2ui/A2UIBuiltInToolCallRenderer.ts +14 -257
  141. package/src/v2/components/a2ui/A2UIRecoveryStates.ts +444 -0
  142. package/src/v2/components/a2ui/__tests__/A2UIRecoveryStates.test.ts +175 -0
  143. package/src/v2/components/chat/BasicMarkdown.vue +8 -6
  144. package/src/v2/components/chat/CopilotChat.vue +7 -0
  145. package/src/v2/components/chat/CopilotChatAssistantMessage.vue +267 -67
  146. package/src/v2/components/chat/CopilotChatAssistantToolbarButton.vue +46 -0
  147. package/src/v2/components/chat/CopilotChatAttachmentQueue.vue +141 -168
  148. package/src/v2/components/chat/CopilotChatAttachmentRenderer.vue +67 -18
  149. package/src/v2/components/chat/CopilotChatAudioRecorder.vue +2 -2
  150. package/src/v2/components/chat/CopilotChatFeedbackCommentPopover.vue +240 -0
  151. package/src/v2/components/chat/CopilotChatInput.vue +210 -161
  152. package/src/v2/components/chat/CopilotChatInspectorButton.vue +331 -0
  153. package/src/v2/components/chat/CopilotChatLightbox.vue +105 -0
  154. package/src/v2/components/chat/CopilotChatMessageView.vue +261 -18
  155. package/src/v2/components/chat/CopilotChatReasoningMessage.vue +21 -22
  156. package/src/v2/components/chat/CopilotChatSuggestionPill.vue +5 -14
  157. package/src/v2/components/chat/CopilotChatSuggestionView.vue +1 -4
  158. package/src/v2/components/chat/CopilotChatToggleButton.vue +3 -9
  159. package/src/v2/components/chat/CopilotChatToggleButtonCloseIcon.ts +1 -1
  160. package/src/v2/components/chat/CopilotChatToggleButtonOpenIcon.ts +1 -1
  161. package/src/v2/components/chat/CopilotChatToolCallGroup.vue +330 -0
  162. package/src/v2/components/chat/CopilotChatToolCallItem.vue +21 -11
  163. package/src/v2/components/chat/CopilotChatToolCallsView.vue +192 -21
  164. package/src/v2/components/chat/CopilotChatUserMessage.vue +105 -42
  165. package/src/v2/components/chat/CopilotChatView.vue +33 -38
  166. package/src/v2/components/chat/CopilotChatWorkSummary.vue +85 -0
  167. package/src/v2/components/chat/CopilotModalHeader.vue +10 -8
  168. package/src/v2/components/chat/CopilotModalHeaderCloseButton.ts +7 -6
  169. package/src/v2/components/chat/CopilotModalHeaderTitle.ts +1 -4
  170. package/src/v2/components/chat/CopilotPopup.vue +3 -0
  171. package/src/v2/components/chat/CopilotPopupView.vue +1 -0
  172. package/src/v2/components/chat/CopilotPopupViewInternal.vue +9 -19
  173. package/src/v2/components/chat/CopilotPopupWelcomeScreen.vue +5 -8
  174. package/src/v2/components/chat/CopilotSidebar.vue +5 -0
  175. package/src/v2/components/chat/CopilotSidebarView.vue +2 -0
  176. package/src/v2/components/chat/CopilotSidebarViewInternal.vue +24 -17
  177. package/src/v2/components/chat/CopilotSidebarWelcomeScreen.vue +7 -10
  178. package/src/v2/components/chat/StreamingMarkdownDefault.vue +3 -5
  179. package/src/v2/components/chat/__tests__/CopilotChatAssistantMessage.inspector.test.ts +269 -0
  180. package/src/v2/components/chat/__tests__/CopilotChatAssistantMessage.learningFeedback.test.ts +760 -0
  181. package/src/v2/components/chat/__tests__/CopilotChatAssistantMessage.slots.e2e.test.ts +3 -5
  182. package/src/v2/components/chat/__tests__/CopilotChatAssistantMessage.test.ts +2 -2
  183. package/src/v2/components/chat/__tests__/CopilotChatInput.addMenu.test.ts +328 -0
  184. package/src/v2/components/chat/__tests__/CopilotChatInput.slots.e2e.test.ts +6 -3
  185. package/src/v2/components/chat/__tests__/CopilotChatInput.test.ts +22 -13
  186. package/src/v2/components/chat/__tests__/CopilotChatLightbox.test.ts +160 -0
  187. package/src/v2/components/chat/__tests__/CopilotChatMessageView.toolCallDisplay.test.ts +735 -0
  188. package/src/v2/components/chat/__tests__/CopilotChatSuggestionPill.test.ts +1 -1
  189. package/src/v2/components/chat/__tests__/CopilotChatSuggestionView.slots.e2e.test.ts +3 -1
  190. package/src/v2/components/chat/__tests__/CopilotChatToolCallsView.learning.test.ts +75 -0
  191. package/src/v2/components/chat/__tests__/CopilotChatUserMessage.attachments.test.ts +143 -0
  192. package/src/v2/components/chat/__tests__/CopilotChatView.inputOverlay.test.ts +5 -4
  193. package/src/v2/components/chat/__tests__/CopilotChatView.rootWidth.test.ts +7 -33
  194. package/src/v2/components/chat/__tests__/CopilotModalHeader.slots.e2e.test.ts +1 -1
  195. package/src/v2/components/chat/__tests__/CopilotPopupView.slots.e2e.test.ts +3 -3
  196. package/src/v2/components/chat/__tests__/CopilotSidebarView.position.test.ts +126 -0
  197. package/src/v2/components/chat/__tests__/messageFeedbackDefaults.test.ts +33 -0
  198. package/src/v2/components/chat/__tests__/modalChatDisplayProps.test.ts +44 -0
  199. package/src/v2/components/chat/index.ts +2 -0
  200. package/src/v2/components/chat/inspector-shortcuts.ts +34 -0
  201. package/src/v2/components/chat/message-feedback.ts +291 -0
  202. package/src/v2/components/chat/tool-call-capture.ts +55 -0
  203. package/src/v2/components/chat/tool-call-display-context.ts +49 -0
  204. package/src/v2/components/chat/tool-call-group-parts.ts +292 -0
  205. package/src/v2/components/chat/tool-call-layout.ts +304 -0
  206. package/src/v2/components/chat/turn-work.ts +61 -0
  207. package/src/v2/components/chat/types.ts +113 -3
  208. package/src/v2/components/chat/use-lightbox.ts +64 -0
  209. package/src/v2/components/icons/index.ts +4 -0
  210. package/src/v2/components/ui/CopilotDropdownMenuContent.vue +465 -0
  211. package/src/v2/components/ui/CopilotPopover.vue +138 -0
  212. package/src/v2/components/ui/CopilotTooltip.vue +237 -0
  213. package/src/v2/components/ui/__tests__/CopilotTooltip.test.ts +168 -0
  214. package/src/v2/components/ui/dropdown-menu.ts +15 -0
  215. package/src/v2/components/ui/floating.ts +321 -0
  216. package/src/v2/components/ui/presence.ts +54 -0
  217. package/src/v2/components/ui/use-id.ts +16 -0
  218. package/src/v2/hooks/use-default-render-tool.ts +123 -62
  219. package/src/v2/hooks/use-render-tool.ts +8 -0
  220. package/src/v2/index.ts +3 -0
  221. package/src/v2/lib/__tests__/message-feedback.test.ts +152 -0
  222. package/src/v2/lib/message-feedback.ts +120 -0
  223. package/src/v2/providers/CopilotChatConfigurationProvider.vue +29 -2
  224. package/src/v2/providers/CopilotKitProvider.types.ts +57 -0
  225. package/src/v2/providers/CopilotKitProvider.vue +125 -3
  226. package/src/v2/providers/__tests__/CopilotChatConfigurationProvider.openThread.test.ts +69 -0
  227. package/src/v2/providers/__tests__/CopilotKitProvider.learning.test.ts +534 -0
  228. package/src/v2/providers/index.ts +4 -1
  229. package/src/v2/providers/keys.ts +12 -0
  230. package/src/v2/providers/types.ts +11 -0
  231. package/src/v2/styles/CopilotKitStyles.ts +95 -0
  232. package/src/v2/styles/__tests__/CopilotKitStyles.client.test.ts +149 -0
  233. package/src/v2/styles/__tests__/CopilotKitStyles.ssr.test.ts +71 -0
  234. package/src/v2/types/defineToolCallRenderer.ts +4 -0
  235. package/src/v2/types/vue-tool-call-renderer.ts +7 -0
  236. package/vite.config.ts +2 -1
  237. package/dist/styles.css +0 -2
  238. package/scripts/scope-preflight.mjs +0 -100
  239. package/src/styles/globals.css +0 -233
package/dist/v2/index.mjs CHANGED
@@ -1,9 +1,9 @@
1
- import { A2UIActivityContentSchema as a, A2UISurfaceActivityRenderer as n, A2UISurfaceActivityType as o, ActivityDeltaEventSchema as i, ActivityMessageSchema as c, ActivitySnapshotEventSchema as s, AddOperationSchema as S, AgentCapabilitiesSchema as h, AssistantMessageSchema as m, AttributableSchema as u, AudioInputContentSchema as r, AudioInputContentSchema as p, AudioInputContentSchema as C, BaseEventSchema as l, BaseMessageSchema as g, BasicMarkdown as d, ContentPartSchema as v, ContextSchema as I, CopilotChat as E, CopilotChatAssistantMessage as R, CopilotChatAttachmentQueue as A, CopilotChatAttachmentRenderer as M, CopilotChatAudioRecorder as T, CopilotChatConfigurationProvider as b, CopilotChatDefaultLabels as O, CopilotChatInput as y, CopilotChatMessageView as P, CopilotChatReasoningMessage as x, CopilotChatSuggestionPill as f, CopilotChatSuggestionView as U, CopilotChatToggleButton as D, CopilotChatToggleButtonCloseIcon as V, CopilotChatToggleButtonOpenIcon as F, CopilotChatToolCallsView as w, CopilotChatUserMessage as K, CopilotChatView as L, CopilotKit as k, CopilotKitCoreVue as B, CopilotKitInspector as G, CopilotKitProvider as H, CopilotModalHeader as J, CopilotPopup as N, CopilotPopupView as _, CopilotSidebar as Q, CopilotSidebarView as W, CopilotThreadsDrawer as Y, CopyOperationSchema as j, CustomEventSchema as q, DataSourceSchema as z, DeveloperMessageSchema as X, DocumentInputContentSchema as Z, DocumentInputContentSchema as $, DocumentInputContentSchema as ee, EventSchema as te, EventSchema as ae, EventTypeSchema as ne, ExecutionCapabilitiesSchema as oe, FileSourceSchema as ie, FunctionCallSchema as ce, GenerateSandboxedUiArgsSchema as se, HumanInTheLoopCapabilitiesSchema as Se, IdentityCapabilitiesSchema as he, ImageInputContentSchema as me, ImageInputContentSchema as ue, ImageInputContentSchema as re, DataSourceSchema as pe, ContentPartSchema as Ce, InputContentSourceSchema as le, InputContentUrlSourceSchema as ge, InterruptSchema as de, JsonPatchOperationSchema as ve, JsonPatchSchema as Ie, JsonPointerSchema as Ee, LicenseContextKey as Re, MARKDOWN_RENDERER_KEY as Ae, MCPAppsActivityRenderer as Me, MessageSchema as Te, MessagesSnapshotEventSchema as be, MetadataSchema as Oe, MoveOperationSchema as ye, MultiAgentCapabilitiesSchema as Pe, MultimodalCapabilitiesSchema as xe, MultimodalInputCapabilitiesSchema as fe, MultimodalOutputCapabilitiesSchema as Ue, OpenGenerativeUIActivityRenderer as De, OpenGenerativeUIActivityType as Ve, OpenGenerativeUIContentSchema as Fe, OpenGenerativeUIRenderer as we, OpenGenerativeUIToolRenderer as Ke, OptionalMetadataSchema as Le, OutputCapabilitiesSchema as ke, InputContentSourceSchema as Be, RawEventSchema as Ge, ReasoningCapabilitiesSchema as He, ReasoningEncryptedValueEventSchema as Je, ReasoningEncryptedValueSubtypeSchema as Ne, ReasoningEndEventSchema as _e, ReasoningMessageChunkEventSchema as Qe, ReasoningMessageContentEventSchema as We, ReasoningMessageEndEventSchema as Ye, ReasoningMessageSchema as je, ReasoningMessageStartEventSchema as qe, ReasoningStartEventSchema as ze, RemoveOperationSchema as Xe, ReplaceOperationSchema as Ze, ResumeEntrySchema as $e, RoleSchema as et, RunAgentInputSchema as tt, RunErrorEventSchema as at, RunFinishedCancelledOutcomeSchema as nt, RunFinishedEventSchema as ot, RunFinishedInterruptOutcomeSchema as it, RunFinishedOutcomeSchema as ct, RunFinishedSuccessOutcomeSchema as st, RunStartedEventSchema as St, StateCapabilitiesSchema as ht, StateDeltaEventSchema as mt, StateSchema as ut, StateSnapshotEventSchema as rt, StepFinishedEventSchema as pt, StepStartedEventSchema as Ct, StreamingMarkdownDefault as lt, SubagentErrorEventSchema as gt, SubagentFinishedEventSchema as dt, SubagentFinishedOutcomeSchema as vt, SubagentFinishedSuccessOutcomeSchema as It, SubagentFinishedSuspendedOutcomeSchema as Et, SubagentInfoSchema as Rt, SubagentRunIdSchema as At, SubagentStartedEventSchema as Mt, SystemMessageSchema as Tt, TestOperationSchema as bt, TextInputContentSchema as Ot, TextMessageChunkEventSchema as yt, TextMessageContentEventSchema as Pt, TextMessageEndEventSchema as xt, TextMessageRoleSchema as ft, TextMessageStartEventSchema as Ut, TextInputContentSchema as Dt, TokenUsageSchema as Vt, ToolCallArgsEventSchema as Ft, ToolCallChunkEventSchema as wt, ToolCallEndEventSchema as Kt, ToolCallResultEventSchema as Lt, ToolCallSchema as kt, ToolCallStartEventSchema as Bt, ToolMessageSchema as Gt, ToolSchema as Ht, ToolsCapabilitiesSchema as Jt, TransportCapabilitiesSchema as Nt, InputContentUrlSourceSchema as _t, UseAgentUpdate as Qt, UserMessageSchema as Wt, VideoInputContentSchema as Yt, VideoInputContentSchema as jt, VideoInputContentSchema as qt, createA2UIMessageRenderer as zt, createDefaultLicenseRef as Xt, defineToolCallRenderer as Zt, extractCompleteStyles as $t, getOperationSurfaceId as ea, isVueComponentRenderer as ta, processPartialHtml as aa, useAgent as na, useAgentContext as oa, useAttachments as ia, useCapabilities as ca, useComponent as sa, useConfigureSuggestions as Sa, useCopilotAction as ha, useCopilotChatConfiguration as ma, useCopilotKit as ua, useCopilotReadable as ra, useDefaultRenderTool as pa, useFrontendTool as Ca, useHumanInTheLoop as la, useInterrupt as ga, useKeyboardHeight as da, useLicenseContext as va, useMarkdownRenderer as Ia, useRenderActivityMessage as Ea, useRenderCustomMessages as Ra, useRenderTool as Aa, useSandboxFunctions as Ma, useSuggestions as Ta, useThreads as ba, vueBasicCatalog as Oa } from "../index.mjs";
1
+ import { A2UIActivityContentSchema as a, A2UISurfaceActivityRenderer as n, A2UISurfaceActivityType as o, ActivityDeltaEventSchema as i, ActivityMessageSchema as c, ActivitySnapshotEventSchema as s, AddOperationSchema as S, AgentCapabilitiesSchema as h, AssistantMessageSchema as m, AttributableSchema as u, AudioInputContentSchema as r, AudioInputContentSchema as p, AudioInputContentSchema as C, BaseEventSchema as l, BaseMessageSchema as g, BasicMarkdown as d, ContentPartSchema as v, ContextSchema as I, CopilotChat as E, CopilotChatAssistantMessage as R, CopilotChatAttachmentQueue as A, CopilotChatAttachmentRenderer as M, CopilotChatAudioRecorder as T, CopilotChatConfigurationProvider as b, CopilotChatDefaultLabels as O, CopilotChatInput as y, CopilotChatMessageView as P, CopilotChatReasoningMessage as x, CopilotChatSuggestionPill as f, CopilotChatSuggestionView as U, CopilotChatToggleButton as D, CopilotChatToggleButtonCloseIcon as V, CopilotChatToggleButtonOpenIcon as F, CopilotChatToolCallGroup as w, CopilotChatToolCallsView as K, CopilotChatUserMessage as k, CopilotChatView as L, CopilotChatWorkSummary as B, CopilotKit as G, CopilotKitCoreVue as H, CopilotKitInspector as J, CopilotKitProvider as N, CopilotKitStyles as _, CopilotModalHeader as W, CopilotPopup as Q, CopilotPopupView as Y, CopilotSidebar as j, CopilotSidebarView as q, CopilotThreadsDrawer as z, CopyOperationSchema as X, CustomEventSchema as Z, DataSourceSchema as $, DeveloperMessageSchema as ee, DocumentInputContentSchema as te, DocumentInputContentSchema as ae, DocumentInputContentSchema as ne, EventSchema as oe, EventSchema as ie, EventTypeSchema as ce, ExecutionCapabilitiesSchema as se, FileSourceSchema as Se, FunctionCallSchema as he, GenerateSandboxedUiArgsSchema as me, HumanInTheLoopCapabilitiesSchema as ue, IdentityCapabilitiesSchema as re, ImageInputContentSchema as pe, ImageInputContentSchema as Ce, ImageInputContentSchema as le, DataSourceSchema as ge, ContentPartSchema as de, InputContentSourceSchema as ve, InputContentUrlSourceSchema as Ie, InterruptSchema as Ee, JsonPatchOperationSchema as Re, JsonPatchSchema as Ae, JsonPointerSchema as Me, LicenseContextKey as Te, MARKDOWN_RENDERER_KEY as be, MCPAppsActivityRenderer as Oe, MessageSchema as ye, MessagesSnapshotEventSchema as Pe, MetadataSchema as xe, MoveOperationSchema as fe, MultiAgentCapabilitiesSchema as Ue, MultimodalCapabilitiesSchema as De, MultimodalInputCapabilitiesSchema as Ve, MultimodalOutputCapabilitiesSchema as Fe, OpenGenerativeUIActivityRenderer as we, OpenGenerativeUIActivityType as Ke, OpenGenerativeUIContentSchema as ke, OpenGenerativeUIRenderer as Le, OpenGenerativeUIToolRenderer as Be, OptionalMetadataSchema as Ge, OutputCapabilitiesSchema as He, InputContentSourceSchema as Je, RawEventSchema as Ne, ReasoningCapabilitiesSchema as _e, ReasoningEncryptedValueEventSchema as We, ReasoningEncryptedValueSubtypeSchema as Qe, ReasoningEndEventSchema as Ye, ReasoningMessageChunkEventSchema as je, ReasoningMessageContentEventSchema as qe, ReasoningMessageEndEventSchema as ze, ReasoningMessageSchema as Xe, ReasoningMessageStartEventSchema as Ze, ReasoningStartEventSchema as $e, RemoveOperationSchema as et, ReplaceOperationSchema as tt, ResumeEntrySchema as at, RoleSchema as nt, RunAgentInputSchema as ot, RunErrorEventSchema as it, RunFinishedCancelledOutcomeSchema as ct, RunFinishedEventSchema as st, RunFinishedInterruptOutcomeSchema as St, RunFinishedOutcomeSchema as ht, RunFinishedSuccessOutcomeSchema as mt, RunStartedEventSchema as ut, StateCapabilitiesSchema as rt, StateDeltaEventSchema as pt, StateSchema as Ct, StateSnapshotEventSchema as lt, StepFinishedEventSchema as gt, StepStartedEventSchema as dt, StreamingMarkdownDefault as vt, SubagentErrorEventSchema as It, SubagentFinishedEventSchema as Et, SubagentFinishedOutcomeSchema as Rt, SubagentFinishedSuccessOutcomeSchema as At, SubagentFinishedSuspendedOutcomeSchema as Mt, SubagentInfoSchema as Tt, SubagentRunIdSchema as bt, SubagentStartedEventSchema as Ot, SystemMessageSchema as yt, TestOperationSchema as Pt, TextInputContentSchema as xt, TextMessageChunkEventSchema as ft, TextMessageContentEventSchema as Ut, TextMessageEndEventSchema as Dt, TextMessageRoleSchema as Vt, TextMessageStartEventSchema as Ft, TextInputContentSchema as wt, TokenUsageSchema as Kt, ToolCallArgsEventSchema as kt, ToolCallChunkEventSchema as Lt, ToolCallEndEventSchema as Bt, ToolCallResultEventSchema as Gt, ToolCallSchema as Ht, ToolCallStartEventSchema as Jt, ToolMessageSchema as Nt, ToolSchema as _t, ToolsCapabilitiesSchema as Wt, TransportCapabilitiesSchema as Qt, InputContentUrlSourceSchema as Yt, UseAgentUpdate as jt, UserMessageSchema as qt, VideoInputContentSchema as zt, VideoInputContentSchema as Xt, VideoInputContentSchema as Zt, createA2UIMessageRenderer as $t, createDefaultLicenseRef as ea, defineToolCallRenderer as ta, extractCompleteStyles as aa, getOperationSurfaceId as na, isVueComponentRenderer as oa, processPartialHtml as ia, useAgent as ca, useAgentContext as sa, useAttachments as Sa, useCapabilities as ha, useComponent as ma, useConfigureSuggestions as ua, useCopilotAction as ra, useCopilotChatConfiguration as pa, useCopilotKit as Ca, useCopilotReadable as la, useDefaultRenderTool as ga, useFrontendTool as da, useHumanInTheLoop as va, useInterrupt as Ia, useKeyboardHeight as Ea, useLicenseContext as Ra, useMarkdownRenderer as Aa, useRenderActivityMessage as Ma, useRenderCustomMessages as Ta, useRenderTool as ba, useSandboxFunctions as Oa, useSuggestions as ya, useThreads as Pa, vueBasicCatalog as xa } from "../index.mjs";
2
2
  export * from "@ag-ui/client";
3
- import { PROTOCOL_VERSION as xa } from "@ag-ui/client";
3
+ import { PROTOCOL_VERSION as Da } from "@ag-ui/client";
4
4
  export * from "@copilotkit/core";
5
- import { MCPAppsActivityContentSchema as Da, MCPAppsActivityType as Va, ɵrunMcpFollowUp as Fa } from "@copilotkit/mcp-apps-renderer/activity";
6
- import { createLicenseContextValue as Ka } from "@copilotkit/shared";
5
+ import { MCPAppsActivityContentSchema as wa, MCPAppsActivityType as Ka, ɵrunMcpFollowUp as ka } from "@copilotkit/mcp-apps-renderer/activity";
6
+ import { createLicenseContextValue as Ba } from "@copilotkit/shared";
7
7
  export {
8
8
  a as A2UIActivityContentSchema,
9
9
  n as A2UISurfaceActivityRenderer,
@@ -38,164 +38,167 @@ export {
38
38
  D as CopilotChatToggleButton,
39
39
  V as CopilotChatToggleButtonCloseIcon,
40
40
  F as CopilotChatToggleButtonOpenIcon,
41
- w as CopilotChatToolCallsView,
42
- K as CopilotChatUserMessage,
41
+ w as CopilotChatToolCallGroup,
42
+ K as CopilotChatToolCallsView,
43
+ k as CopilotChatUserMessage,
43
44
  L as CopilotChatView,
44
- k as CopilotKit,
45
- B as CopilotKitCoreVue,
46
- G as CopilotKitInspector,
47
- H as CopilotKitProvider,
48
- J as CopilotModalHeader,
49
- N as CopilotPopup,
50
- _ as CopilotPopupView,
51
- Q as CopilotSidebar,
52
- W as CopilotSidebarView,
53
- Y as CopilotThreadsDrawer,
54
- j as CopyOperationSchema,
55
- q as CustomEventSchema,
56
- z as DataSourceSchema,
57
- X as DeveloperMessageSchema,
58
- Z as DocumentInputContentSchema,
59
- $ as DocumentInputPartSchema,
60
- ee as DocumentPartSchema,
61
- te as EventSchema,
62
- ae as EventSchemas,
63
- ne as EventTypeSchema,
64
- oe as ExecutionCapabilitiesSchema,
65
- ie as FileSourceSchema,
66
- ce as FunctionCallSchema,
67
- se as GenerateSandboxedUiArgsSchema,
68
- Se as HumanInTheLoopCapabilitiesSchema,
69
- he as IdentityCapabilitiesSchema,
70
- me as ImageInputContentSchema,
71
- ue as ImageInputPartSchema,
72
- re as ImagePartSchema,
73
- pe as InputContentDataSourceSchema,
74
- Ce as InputContentSchema,
75
- le as InputContentSourceSchema,
76
- ge as InputContentUrlSourceSchema,
77
- de as InterruptSchema,
78
- ve as JsonPatchOperationSchema,
79
- Ie as JsonPatchSchema,
80
- Ee as JsonPointerSchema,
81
- Re as LicenseContextKey,
82
- Ae as MARKDOWN_RENDERER_KEY,
83
- Da as MCPAppsActivityContentSchema,
84
- Me as MCPAppsActivityRenderer,
85
- Va as MCPAppsActivityType,
86
- Te as MessageSchema,
87
- be as MessagesSnapshotEventSchema,
88
- Oe as MetadataSchema,
89
- ye as MoveOperationSchema,
90
- Pe as MultiAgentCapabilitiesSchema,
91
- xe as MultimodalCapabilitiesSchema,
92
- fe as MultimodalInputCapabilitiesSchema,
93
- Ue as MultimodalOutputCapabilitiesSchema,
94
- De as OpenGenerativeUIActivityRenderer,
95
- Ve as OpenGenerativeUIActivityType,
96
- Fe as OpenGenerativeUIContentSchema,
97
- we as OpenGenerativeUIRenderer,
98
- Ke as OpenGenerativeUIToolRenderer,
99
- Le as OptionalMetadataSchema,
100
- ke as OutputCapabilitiesSchema,
101
- xa as PROTOCOL_VERSION,
102
- Be as PartSourceSchema,
103
- Ge as RawEventSchema,
104
- He as ReasoningCapabilitiesSchema,
105
- Je as ReasoningEncryptedValueEventSchema,
106
- Ne as ReasoningEncryptedValueSubtypeSchema,
107
- _e as ReasoningEndEventSchema,
108
- Qe as ReasoningMessageChunkEventSchema,
109
- We as ReasoningMessageContentEventSchema,
110
- Ye as ReasoningMessageEndEventSchema,
111
- je as ReasoningMessageSchema,
112
- qe as ReasoningMessageStartEventSchema,
113
- ze as ReasoningStartEventSchema,
114
- Xe as RemoveOperationSchema,
115
- Ze as ReplaceOperationSchema,
116
- $e as ResumeEntrySchema,
117
- et as RoleSchema,
118
- tt as RunAgentInputSchema,
119
- at as RunErrorEventSchema,
120
- nt as RunFinishedCancelledOutcomeSchema,
121
- ot as RunFinishedEventSchema,
122
- it as RunFinishedInterruptOutcomeSchema,
123
- ct as RunFinishedOutcomeSchema,
124
- st as RunFinishedSuccessOutcomeSchema,
125
- St as RunStartedEventSchema,
126
- ht as StateCapabilitiesSchema,
127
- mt as StateDeltaEventSchema,
128
- ut as StateSchema,
129
- rt as StateSnapshotEventSchema,
130
- pt as StepFinishedEventSchema,
131
- Ct as StepStartedEventSchema,
132
- lt as StreamingMarkdownDefault,
133
- gt as SubagentErrorEventSchema,
134
- dt as SubagentFinishedEventSchema,
135
- vt as SubagentFinishedOutcomeSchema,
136
- It as SubagentFinishedSuccessOutcomeSchema,
137
- Et as SubagentFinishedSuspendedOutcomeSchema,
138
- Rt as SubagentInfoSchema,
139
- At as SubagentRunIdSchema,
140
- Mt as SubagentStartedEventSchema,
141
- Tt as SystemMessageSchema,
142
- bt as TestOperationSchema,
143
- Ot as TextInputContentSchema,
144
- yt as TextMessageChunkEventSchema,
145
- Pt as TextMessageContentEventSchema,
146
- xt as TextMessageEndEventSchema,
147
- ft as TextMessageRoleSchema,
148
- Ut as TextMessageStartEventSchema,
149
- Dt as TextPartSchema,
150
- Vt as TokenUsageSchema,
151
- Ft as ToolCallArgsEventSchema,
152
- wt as ToolCallChunkEventSchema,
153
- Kt as ToolCallEndEventSchema,
154
- Lt as ToolCallResultEventSchema,
155
- kt as ToolCallSchema,
156
- Bt as ToolCallStartEventSchema,
157
- Gt as ToolMessageSchema,
158
- Ht as ToolSchema,
159
- Jt as ToolsCapabilitiesSchema,
160
- Nt as TransportCapabilitiesSchema,
161
- _t as UrlSourceSchema,
162
- Qt as UseAgentUpdate,
163
- Wt as UserMessageSchema,
164
- Yt as VideoInputContentSchema,
165
- jt as VideoInputPartSchema,
166
- qt as VideoPartSchema,
167
- zt as createA2UIMessageRenderer,
168
- Xt as createDefaultLicenseRef,
169
- Ka as createLicenseContextValue,
170
- Zt as defineToolCallRenderer,
171
- $t as extractCompleteStyles,
172
- ea as getOperationSurfaceId,
173
- ta as isVueComponentRenderer,
174
- aa as processPartialHtml,
175
- na as useAgent,
176
- oa as useAgentContext,
177
- ia as useAttachments,
178
- ca as useCapabilities,
179
- sa as useComponent,
180
- Sa as useConfigureSuggestions,
181
- ha as useCopilotAction,
182
- ma as useCopilotChatConfiguration,
183
- ua as useCopilotKit,
184
- ra as useCopilotReadable,
185
- pa as useDefaultRenderTool,
186
- Ca as useFrontendTool,
187
- la as useHumanInTheLoop,
188
- ga as useInterrupt,
189
- da as useKeyboardHeight,
190
- va as useLicenseContext,
191
- Ia as useMarkdownRenderer,
192
- Ea as useRenderActivityMessage,
193
- Ra as useRenderCustomMessages,
194
- Aa as useRenderTool,
195
- Ma as useSandboxFunctions,
196
- Ta as useSuggestions,
197
- ba as useThreads,
198
- Oa as vueBasicCatalog,
199
- Fa as ɵrunMcpFollowUp
45
+ B as CopilotChatWorkSummary,
46
+ G as CopilotKit,
47
+ H as CopilotKitCoreVue,
48
+ J as CopilotKitInspector,
49
+ N as CopilotKitProvider,
50
+ _ as CopilotKitStyles,
51
+ W as CopilotModalHeader,
52
+ Q as CopilotPopup,
53
+ Y as CopilotPopupView,
54
+ j as CopilotSidebar,
55
+ q as CopilotSidebarView,
56
+ z as CopilotThreadsDrawer,
57
+ X as CopyOperationSchema,
58
+ Z as CustomEventSchema,
59
+ $ as DataSourceSchema,
60
+ ee as DeveloperMessageSchema,
61
+ te as DocumentInputContentSchema,
62
+ ae as DocumentInputPartSchema,
63
+ ne as DocumentPartSchema,
64
+ oe as EventSchema,
65
+ ie as EventSchemas,
66
+ ce as EventTypeSchema,
67
+ se as ExecutionCapabilitiesSchema,
68
+ Se as FileSourceSchema,
69
+ he as FunctionCallSchema,
70
+ me as GenerateSandboxedUiArgsSchema,
71
+ ue as HumanInTheLoopCapabilitiesSchema,
72
+ re as IdentityCapabilitiesSchema,
73
+ pe as ImageInputContentSchema,
74
+ Ce as ImageInputPartSchema,
75
+ le as ImagePartSchema,
76
+ ge as InputContentDataSourceSchema,
77
+ de as InputContentSchema,
78
+ ve as InputContentSourceSchema,
79
+ Ie as InputContentUrlSourceSchema,
80
+ Ee as InterruptSchema,
81
+ Re as JsonPatchOperationSchema,
82
+ Ae as JsonPatchSchema,
83
+ Me as JsonPointerSchema,
84
+ Te as LicenseContextKey,
85
+ be as MARKDOWN_RENDERER_KEY,
86
+ wa as MCPAppsActivityContentSchema,
87
+ Oe as MCPAppsActivityRenderer,
88
+ Ka as MCPAppsActivityType,
89
+ ye as MessageSchema,
90
+ Pe as MessagesSnapshotEventSchema,
91
+ xe as MetadataSchema,
92
+ fe as MoveOperationSchema,
93
+ Ue as MultiAgentCapabilitiesSchema,
94
+ De as MultimodalCapabilitiesSchema,
95
+ Ve as MultimodalInputCapabilitiesSchema,
96
+ Fe as MultimodalOutputCapabilitiesSchema,
97
+ we as OpenGenerativeUIActivityRenderer,
98
+ Ke as OpenGenerativeUIActivityType,
99
+ ke as OpenGenerativeUIContentSchema,
100
+ Le as OpenGenerativeUIRenderer,
101
+ Be as OpenGenerativeUIToolRenderer,
102
+ Ge as OptionalMetadataSchema,
103
+ He as OutputCapabilitiesSchema,
104
+ Da as PROTOCOL_VERSION,
105
+ Je as PartSourceSchema,
106
+ Ne as RawEventSchema,
107
+ _e as ReasoningCapabilitiesSchema,
108
+ We as ReasoningEncryptedValueEventSchema,
109
+ Qe as ReasoningEncryptedValueSubtypeSchema,
110
+ Ye as ReasoningEndEventSchema,
111
+ je as ReasoningMessageChunkEventSchema,
112
+ qe as ReasoningMessageContentEventSchema,
113
+ ze as ReasoningMessageEndEventSchema,
114
+ Xe as ReasoningMessageSchema,
115
+ Ze as ReasoningMessageStartEventSchema,
116
+ $e as ReasoningStartEventSchema,
117
+ et as RemoveOperationSchema,
118
+ tt as ReplaceOperationSchema,
119
+ at as ResumeEntrySchema,
120
+ nt as RoleSchema,
121
+ ot as RunAgentInputSchema,
122
+ it as RunErrorEventSchema,
123
+ ct as RunFinishedCancelledOutcomeSchema,
124
+ st as RunFinishedEventSchema,
125
+ St as RunFinishedInterruptOutcomeSchema,
126
+ ht as RunFinishedOutcomeSchema,
127
+ mt as RunFinishedSuccessOutcomeSchema,
128
+ ut as RunStartedEventSchema,
129
+ rt as StateCapabilitiesSchema,
130
+ pt as StateDeltaEventSchema,
131
+ Ct as StateSchema,
132
+ lt as StateSnapshotEventSchema,
133
+ gt as StepFinishedEventSchema,
134
+ dt as StepStartedEventSchema,
135
+ vt as StreamingMarkdownDefault,
136
+ It as SubagentErrorEventSchema,
137
+ Et as SubagentFinishedEventSchema,
138
+ Rt as SubagentFinishedOutcomeSchema,
139
+ At as SubagentFinishedSuccessOutcomeSchema,
140
+ Mt as SubagentFinishedSuspendedOutcomeSchema,
141
+ Tt as SubagentInfoSchema,
142
+ bt as SubagentRunIdSchema,
143
+ Ot as SubagentStartedEventSchema,
144
+ yt as SystemMessageSchema,
145
+ Pt as TestOperationSchema,
146
+ xt as TextInputContentSchema,
147
+ ft as TextMessageChunkEventSchema,
148
+ Ut as TextMessageContentEventSchema,
149
+ Dt as TextMessageEndEventSchema,
150
+ Vt as TextMessageRoleSchema,
151
+ Ft as TextMessageStartEventSchema,
152
+ wt as TextPartSchema,
153
+ Kt as TokenUsageSchema,
154
+ kt as ToolCallArgsEventSchema,
155
+ Lt as ToolCallChunkEventSchema,
156
+ Bt as ToolCallEndEventSchema,
157
+ Gt as ToolCallResultEventSchema,
158
+ Ht as ToolCallSchema,
159
+ Jt as ToolCallStartEventSchema,
160
+ Nt as ToolMessageSchema,
161
+ _t as ToolSchema,
162
+ Wt as ToolsCapabilitiesSchema,
163
+ Qt as TransportCapabilitiesSchema,
164
+ Yt as UrlSourceSchema,
165
+ jt as UseAgentUpdate,
166
+ qt as UserMessageSchema,
167
+ zt as VideoInputContentSchema,
168
+ Xt as VideoInputPartSchema,
169
+ Zt as VideoPartSchema,
170
+ $t as createA2UIMessageRenderer,
171
+ ea as createDefaultLicenseRef,
172
+ Ba as createLicenseContextValue,
173
+ ta as defineToolCallRenderer,
174
+ aa as extractCompleteStyles,
175
+ na as getOperationSurfaceId,
176
+ oa as isVueComponentRenderer,
177
+ ia as processPartialHtml,
178
+ ca as useAgent,
179
+ sa as useAgentContext,
180
+ Sa as useAttachments,
181
+ ha as useCapabilities,
182
+ ma as useComponent,
183
+ ua as useConfigureSuggestions,
184
+ ra as useCopilotAction,
185
+ pa as useCopilotChatConfiguration,
186
+ Ca as useCopilotKit,
187
+ la as useCopilotReadable,
188
+ ga as useDefaultRenderTool,
189
+ da as useFrontendTool,
190
+ va as useHumanInTheLoop,
191
+ Ia as useInterrupt,
192
+ Ea as useKeyboardHeight,
193
+ Ra as useLicenseContext,
194
+ Aa as useMarkdownRenderer,
195
+ Ma as useRenderActivityMessage,
196
+ Ta as useRenderCustomMessages,
197
+ ba as useRenderTool,
198
+ Oa as useSandboxFunctions,
199
+ ya as useSuggestions,
200
+ Pa as useThreads,
201
+ xa as vueBasicCatalog,
202
+ ka as ɵrunMcpFollowUp
200
203
  };
201
204
  //# sourceMappingURL=index.mjs.map
@@ -0,0 +1,33 @@
1
+ import type { AssistantMessage } from "@ag-ui/core";
2
+ import type { CopilotKitCore } from "@copilotkit/core";
3
+ /** Trajectory event name for a rating of one assistant message. */
4
+ export declare const MESSAGE_FEEDBACK_EVENT_NAME = "message.feedback";
5
+ /** Longest comment kept, in characters; the rest is cut so the event stays small. */
6
+ export declare const MESSAGE_FEEDBACK_MAX_COMMENT_LENGTH = 1000;
7
+ export type MessageFeedbackRating = "up" | "down";
8
+ /** The rating this page gave one assistant message. */
9
+ export interface MessageFeedback {
10
+ readonly rating: MessageFeedbackRating;
11
+ readonly comment?: string;
12
+ }
13
+ /** The rating this page gave one message, if any. */
14
+ export declare function getMessageFeedback(agentId: string, threadId: string, messageId: string): MessageFeedback | undefined;
15
+ /** Calls `listener` whenever a rating in this Thread changes. */
16
+ export declare function subscribeToMessageFeedback(agentId: string, threadId: string, listener: () => void): () => void;
17
+ /**
18
+ * Sets (or, with `null`, clears) this page's rating of one message and sends
19
+ * it to the active Trajectory. Every change is a new event; the newest event
20
+ * for a `feedbackId` is the current one. Like any Trajectory event, a change
21
+ * made while no Trajectory captures, for example during a reconnect, is not
22
+ * sent; the page still shows it.
23
+ */
24
+ export declare function setMessageFeedback(params: {
25
+ copilotkit: CopilotKitCore;
26
+ agentId: string;
27
+ threadId: string;
28
+ message: AssistantMessage;
29
+ feedback: MessageFeedback | null;
30
+ }): void;
31
+ /** @internal Forgets every rating, so each test starts empty. */
32
+ export declare function ɵresetMessageFeedbackCache(): void;
33
+ //# sourceMappingURL=message-feedback.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"message-feedback.d.ts","sourceRoot":"","sources":["../../../src/v2/lib/message-feedback.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,aAAa,CAAC;AACpD,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,kBAAkB,CAAC;AAEvD,mEAAmE;AACnE,eAAO,MAAM,2BAA2B,qBAAqB,CAAC;AAE9D,qFAAqF;AACrF,eAAO,MAAM,mCAAmC,OAAO,CAAC;AAKxD,MAAM,MAAM,qBAAqB,GAAG,IAAI,GAAG,MAAM,CAAC;AAElD,uDAAuD;AACvD,MAAM,WAAW,eAAe;IAC9B,QAAQ,CAAC,MAAM,EAAE,qBAAqB,CAAC;IACvC,QAAQ,CAAC,OAAO,CAAC,EAAE,MAAM,CAAC;CAC3B;AA2BD,qDAAqD;AACrD,wBAAgB,kBAAkB,CAChC,OAAO,EAAE,MAAM,EACf,QAAQ,EAAE,MAAM,EAChB,SAAS,EAAE,MAAM,GAChB,eAAe,GAAG,SAAS,CAE7B;AAED,iEAAiE;AACjE,wBAAgB,0BAA0B,CACxC,OAAO,EAAE,MAAM,EACf,QAAQ,EAAE,MAAM,EAChB,QAAQ,EAAE,MAAM,IAAI,GACnB,MAAM,IAAI,CAYZ;AAED;;;;;;GAMG;AACH,wBAAgB,kBAAkB,CAAC,MAAM,EAAE;IACzC,UAAU,EAAE,cAAc,CAAC;IAC3B,OAAO,EAAE,MAAM,CAAC;IAChB,QAAQ,EAAE,MAAM,CAAC;IACjB,OAAO,EAAE,gBAAgB,CAAC;IAC1B,QAAQ,EAAE,eAAe,GAAG,IAAI,CAAC;CAClC,GAAG,IAAI,CA4BP;AAED,iEAAiE;AACjE,wBAAgB,0BAA0B,IAAI,IAAI,CAEjD"}
@@ -1 +1 @@
1
- {"version":3,"file":"CopilotChatConfigurationProvider.vue.d.ts","sourceRoot":"","sources":["../../../src/v2/providers/CopilotChatConfigurationProvider.vue"],"names":[],"mappings":"AAyNA,OAAO,KAAK,EAAE,qCAAqC,EAAE,MAAM,0CAA0C,CAAC;AAsNtG,QAAA,IAAI,OAAO,IAAW,CAAE;AACxB,KAAK,WAAW,GAAG,EAAE,GACnB;IAAE,OAAO,CAAC,EAAE,CAAC,KAAK,EAAE,OAAO,OAAO,KAAK,GAAG,CAAA;CAAE,CAAC;AAmB/C,QAAA,MAAM,eAAe;;;6EAOnB,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"}
1
+ {"version":3,"file":"CopilotChatConfigurationProvider.vue.d.ts","sourceRoot":"","sources":["../../../src/v2/providers/CopilotChatConfigurationProvider.vue"],"names":[],"mappings":"AAqPA,OAAO,KAAK,EAAE,qCAAqC,EAAE,MAAM,0CAA0C,CAAC;AAgPtG,QAAA,IAAI,OAAO,IAAW,CAAE;AACxB,KAAK,WAAW,GAAG,EAAE,GACnB;IAAE,OAAO,CAAC,EAAE,CAAC,KAAK,EAAE,OAAO,OAAO,KAAK,GAAG,CAAA;CAAE,CAAC;AAmB/C,QAAA,MAAM,eAAe;;;6EAOnB,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"}
@@ -1,5 +1,6 @@
1
+ import type { A2UIRecoveryRendererOptions } from "../components/a2ui/A2UIRecoveryStates";
1
2
  import type { AbstractAgent } from "@ag-ui/client";
2
- import type { CopilotKitCoreErrorCode, CopilotKitHeadersSource, CopilotKitMessageFilter } from "@copilotkit/core";
3
+ import type { CopilotKitCoreErrorCode, CopilotKitHeadersSource, CopilotKitMessageFilter, LearningConfig } from "@copilotkit/core";
3
4
  import type { DebugConfig } from "@copilotkit/shared";
4
5
  import type { A2UITheme, SandboxFunction, VueActivityMessageRenderer, VueCustomMessageRenderer, VueFrontendTool, VueHumanInTheLoop, VueToolCallRenderer } from "../types";
5
6
  import type { Component } from "vue";
@@ -13,6 +14,17 @@ export interface CopilotKitProviderProps {
13
14
  */
14
15
  headers?: CopilotKitHeadersSource;
15
16
  credentials?: RequestCredentials;
17
+ /**
18
+ * CSP nonce for the `<style>` tag CopilotKit adds. Set it when your
19
+ * Content-Security-Policy limits `style-src` to a nonce.
20
+ */
21
+ nonce?: string;
22
+ /**
23
+ * Set to `false` when you import `@copilotkit/core/styles.css` yourself, so
24
+ * browsers cache the CSS as a file. CopilotKit then adds no `<style>` tag.
25
+ * @default true
26
+ */
27
+ injectStyles?: boolean;
16
28
  /**
17
29
  * Rewrites the message list sent to runtime agents on every run.
18
30
  *
@@ -94,6 +106,12 @@ export interface CopilotKitProviderProps {
94
106
  * `a2ui_params["guidelines"]["composition_guide"]` in Python).
95
107
  */
96
108
  includeSchema?: boolean;
109
+ /**
110
+ * Options for the A2UI error-recovery status UI: how long before the
111
+ * transient "Retrying…" hint appears, after how many attempts, and how
112
+ * much retry/debug detail to surface. When omitted, defaults apply.
113
+ */
114
+ recovery?: A2UIRecoveryRendererOptions;
97
115
  };
98
116
  /** Configuration for the built-in MCP Apps renderer. */
99
117
  mcpApps?: {
@@ -124,5 +142,42 @@ export interface CopilotKitProviderProps {
124
142
  * - `{ events?: boolean; lifecycle?: boolean; verbose?: boolean }` for granular control.
125
143
  */
126
144
  debug?: DebugConfig;
145
+ /**
146
+ * Turns on interaction capture (`@copilotkit/learning`). `learning` (short
147
+ * for `:learning="true"`) records with the default options; pass an object
148
+ * for options. `false` or omitting the prop turns capture off and cancels
149
+ * startup. Without a sink, Core authenticates with the runtime and sends
150
+ * browser events to Intelligence; a custom sink keeps the standalone
151
+ * collector behavior. Updated settings apply to the next Trajectory.
152
+ *
153
+ * Capture starts after mount. Set `trajectoryId` to use your own ID;
154
+ * otherwise the provider generates one. The generated ID stays the same
155
+ * across rerenders, reconnects and option changes; turning capture off,
156
+ * setting `autoStart: false` or supplying a `trajectoryId` ends it, and the
157
+ * next generated Trajectory gets a new ID. Read the active ID from
158
+ * `copilotkit.trajectoryId`.
159
+ *
160
+ * Set `autoStart: false` to start capture yourself with `startTrajectory()`.
161
+ * Capture stops on unmount, including manually started Trajectories.
162
+ *
163
+ * @example
164
+ * <CopilotKitProvider runtime-url="/api/copilotkit" learning>
165
+ */
166
+ learning?: boolean | CopilotKitLearningOptions;
127
167
  }
168
+ /** The object form of the `learning` prop. */
169
+ export type CopilotKitLearningOptions = LearningConfig & {
170
+ /**
171
+ * Starts a Trajectory after mount. Defaults to `true`; set `false` to call
172
+ * `startTrajectory()` yourself.
173
+ */
174
+ autoStart?: boolean;
175
+ trajectoryId?: string;
176
+ /**
177
+ * Used only by explicit custom sinks. Authenticated capture warns and ignores
178
+ * this option; assign Learning Spaces on the server with
179
+ * `getTrajectoryLearningContainerIds` on `CopilotKitIntelligence`.
180
+ */
181
+ learningContainerIds?: string[];
182
+ };
128
183
  //# sourceMappingURL=CopilotKitProvider.types.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"CopilotKitProvider.types.d.ts","sourceRoot":"","s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AAC,OAAO,CAAC,EAAE,CAAC;IAC/D,oBAAoB,CAAC,EAAE,wBAAwB,EAAE,CAAC;IAClD,aAAa,CAAC,EAAE,eAAe,EAAE,CAAC;IAClC,cAAc,CAAC,EAAE,iBAAiB,EAAE,CAAC;IACrC,gBAAgB,CAAC,EAAE;QACjB,gBAAgB,CAAC,EAAE,eAAe,EAAE,CAAC;QACrC,WAAW,CAAC,EAAE,MAAM,CAAC;KACtB,CAAC;IACF;;;OAGG;IACH,cAAc,CAAC,EAAE,OAAO,GAAG,MAAM,CAAC;IAClC;;;;OAIG;IACH,eAAe,CAAC,EAAE,OAAO,CAAC;IAC1B,OAAO,CAAC,EAAE,CAAC,KAAK,EAAE;QAChB,KAAK,EAAE,KAAK,CAAC;QACb,IAAI,EAAE,uBAAuB,CAAC;QAC9B,OAAO,EAAE,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,CAAC;KAC9B,KAAK,IAAI,GAAG,OAAO,CAAC,IAAI,CAAC,CAAC;IAC3B,IAAI,CAAC,EAAE;QACL,KAAK,CAAC,EAAE,SAAS,CAAC;QAClB,OAAO,CAAC,EAAE,GAAG,CAAC;QACd,gBAAgB,CAAC,EAAE,SAAS,CAAC;QAC7B;;;;;;;;;;;;;;WAcG;QACH,aAAa,CAAC,EAAE,OAAO,CAAC;KACzB,CAAC;IACF,wDAAwD;IACxD,OAAO,CAAC,EAAE;QACR;;;;;;;WAOG;QACH,uBAAuB,CAAC,EAAE,OAAO,CAAC;KACnC,CAAC;IACF;;;;;;;OAOG;IACH,gBAAgB,CAAC,EAAE,qBAAqB,CAAC;IACzC;;;;;;OAMG;IACH,KAAK,CAAC,EAAE,WAAW,CAAC;CACrB"}
1
+ {"version":3,"file":"CopilotKitProvider.types.d.ts","sourceRoot":"","sources":["../../../src/v2/providers/CopilotKitProvider.types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,2BAA2B,EAAE,MAAM,uCAAuC,CAAC;AACzF,OAAO,KAAK,EAAE,aA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;AAC9C,MAAM,MAAM,yBAAyB,GAAG,cAAc,GAAG;IACvD;;;OAGG;IACH,SAAS,CAAC,EAAE,OAAO,CAAC;IACpB,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB;;;;OAIG;IACH,oBAAoB,CAAC,EAAE,MAAM,EAAE,CAAC;CACjC,CAAC"}
@@ -1,7 +1,7 @@
1
1
  import type { Component } from "vue";
2
2
  import type { AbstractAgent } from "@ag-ui/client";
3
3
  import type { CopilotKitHeadersSource } from "@copilotkit/core";
4
- import type { CopilotKitProviderProps } from "./CopilotKitProvider.types";
4
+ import type { CopilotKitLearningOptions, CopilotKitProviderProps } from "./CopilotKitProvider.types";
5
5
  import type { SandboxFunction, VueActivityMessageRenderer, VueFrontendTool } from "../types";
6
6
  declare var __VLS_1: {};
7
7
  type __VLS_Slots = {} & {
@@ -12,6 +12,8 @@ declare const __VLS_component: import("vue").DefineComponent<CopilotKitProviderP
12
12
  renderCustomMessages: import("..").VueCustomMessageRenderer[];
13
13
  properties: Record<string, unknown>;
14
14
  headers: CopilotKitHeadersSource;
15
+ nonce: string;
16
+ injectStyles: boolean;
15
17
  useSingleEndpoint: boolean;
16
18
  agents__unsafe_dev_only: Record<string, AbstractAgent>;
17
19
  selfManagedAgents: Record<string, AbstractAgent>;
@@ -27,10 +29,12 @@ declare const __VLS_component: import("vue").DefineComponent<CopilotKitProviderP
27
29
  catalog?: any;
28
30
  loadingComponent?: Component;
29
31
  includeSchema?: boolean;
32
+ recovery?: import("..").A2UIRecoveryRendererOptions;
30
33
  };
31
34
  mcpApps: {
32
35
  allowSameOriginFallback?: boolean;
33
36
  };
37
+ learning: boolean | CopilotKitLearningOptions;
34
38
  }, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
35
39
  declare const _default: __VLS_WithSlots<typeof __VLS_component, __VLS_Slots>;
36
40
  export default _default;
@@ -1 +1 @@
1
- {"version":3,"file":"CopilotKitProvider.vue.d.ts","sourceRoot":"","sources":["../../../src/v2/providers/CopilotKitProvider.vue"],"names":[],"mappings":"AAq2BA,OAAO,KAAK,EAAE,SAAS,EAAuB,MAAM,KAAK,CAAC;AAE1D,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,eAAe,CAAC;AAEnD,OAAO,KAAK,EAGV,uBAAuB,EAExB,MAAM,kBAAkB,CAAC;AAkC1B,OAAO,KAAK,EAAE,uBAAuB,EAAE,MAAM,4BAA4B,CAAC;AAC1E,OAAO,KAAK,EACV,eAAe,EACf,0BAA0B,EAC1B,eAAe,EAGhB,MAAM,UAAU,CAAC;AA21BlB,QAAA,IAAI,OAAO,IAAW,CAAE;AACxB,KAAK,WAAW,GAAG,EAAE,GACnB;IAAE,OAAO,CAAC,EAAE,CAAC,KAAK,EAAE,OAAO,OAAO,KAAK,GAAG,CAAA;CAAE,CAAC;AA4B/C,QAAA,MAAM,eAAe;;;;;;;;;;;wBAt7BrB,CApxB6B;mBAoxB7B,CAnxB4B;;;;aAmxB5B,CA3wB2C;eA2wB3C,CA1wBK;wBA0wBL,CA1wBiC;qBA0wBjC,CAhwB2D;;;+BAgwB3D,CA1vBqD;;6EAurDnD,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"}
1
+ {"version":3,"file":"CopilotKitProvider.vue.d.ts","sourceRoot":"","sources":["../../../src/v2/providers/CopilotKitProvider.vue"],"names":[],"mappings":"AAk+BA,OAAO,KAAK,EAAE,SAAS,EAAuB,MAAM,KAAK,CAAC;AAE1D,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,eAAe,CAAC;AAEnD,OAAO,KAAK,EAGV,uBAAuB,EAExB,MAAM,kBAAkB,CAAC;AAuC1B,OAAO,KAAK,EACV,yBAAyB,EACzB,uBAAuB,EACxB,MAAM,4BAA4B,CAAC;AACpC,OAAO,KAAK,EACV,eAAe,EACf,0BAA0B,EAC1B,eAAe,EAGhB,MAAM,UAAU,CAAC;AA88BlB,QAAA,IAAI,OAAO,IAAW,CAAE;AACxB,KAAK,WAAW,GAAG,EAAE,GACnB;IAAE,OAAO,CAAC,EAAE,CAAC,KAAK,EAAE,OAAO,OAAO,KAAK,GAAG,CAAA;CAAE,CAAC;AA4B/C,QAAA,MAAM,eAAe;;;;;;;;;;;;;wBApjCrB,CA93BwC;mBA83BxC,CA73B2B;;;;aA63B3B,CAn3B4B;eAm3B5B,CAn3BqD;wBAm3BrD,CAn3BiF;qBAm3BjF,CA12BS;gBA02BT,CAn2Bc;;;+BAm2Bd,CAl1BI;;;6EA64DF,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"}
@@ -1,5 +1,5 @@
1
1
  export { default as CopilotKitProvider } from "./CopilotKitProvider.vue";
2
- export type { CopilotKitProviderProps } from "./CopilotKitProvider.types";
2
+ export type { CopilotKitLearningOptions, CopilotKitProviderProps, } from "./CopilotKitProvider.types";
3
3
  export type { DebugConfig } from "@copilotkit/shared";
4
4
  export { default as CopilotChatConfigurationProvider } from "./CopilotChatConfigurationProvider.vue";
5
5
  export type { CopilotChatConfigurationProviderProps } from "./CopilotChatConfigurationProvider.types";
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/v2/providers/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,IAAI,kBAAkB,EAAE,MAAM,0BAA0B,CAAC;AACzE,YAAY,EAAE,uBAAuB,EAAE,MAAM,4BAA4B,CAAC;AAC1E,YAAY,EAAE,WAAW,EAAE,MAAM,oBAAoB,CAAC;AACtD,OAAO,E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,EAAE,2BAA2B,EAAE,MAAM,+BAA+B,CAAC;AAC5E,OAAO,EACL,wBAAwB,EACxB,KAAK,iBAAiB,EACtB,KAAK,6BAA6B,GACnC,MAAM,SAAS,CAAC;AACjB,YAAY,EAAE,sBAAsB,EAAE,MAAM,QAAQ,CAAC;AACrD,cAAc,qBAAqB,CAAC"}
@@ -24,4 +24,12 @@ export type VueInspectorContextValue = {
24
24
  openInspector: (request: VueInspectorOpenRequest) => void;
25
25
  };
26
26
  export declare const InspectorKey: InjectionKey<VueInspectorContextValue>;
27
+ export interface CopilotStyleOptions {
28
+ /** CSP nonce for the `<style>` tag. */
29
+ nonce?: string;
30
+ /** `false` when the app loads `@copilotkit/core/styles.css` itself. */
31
+ inject: boolean;
32
+ }
33
+ /** Passes the provider's style options to `<CopilotKitStyles>`. */
34
+ export declare const CopilotStyleOptionsKey: InjectionKey<ComputedRef<CopilotStyleOptions>>;
27
35
  //# sourceMappingURL=keys.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"keys.d.ts","sourceRoot":"","sources":["../../../src/v2/providers/keys.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,WAAW,EAAE,YAAY,EAAE,GAAG,EAAE,UAAU,EAAE,MAAM,KAAK,CAAC;AACtE,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,iBAAiB,CAAC;AACzD,OAAO,KAAK,EAAE,6BAA6B,EAAE,MAAM,SAAS,CAAC;AAC7D,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,UAAU,CAAC;AAC1C,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,UAAU,CAAC;AAEhD,MAAM,WAAW,sBAAsB;IACrC,UAAU,EAAE,UAAU,CAAC,iBAAiB,CAAC,CAAC;IAC1C,oBAAoB,EAAE,GAAG,CAAC,WAAW,CAAC,MAAM,CAAC,CAAC,CAAC;IAC/C,SAAS,EAAE,WAAW,CAAC,SAAS,GAAG,SAAS,CAAC,CAAC;IAC9C,WAAW,EAAE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BAAoB,EAAE,GAAG,CAAC,WAAW,CAAC,MAAM,CAAC,CAAC,CAAC;IAC/C,SAAS,EAAE,WAAW,CAAC,SAAS,GAAG,SAAS,CAAC,CAAC;IAC9C,WAAW,EAAE,WAAW,CAAC,OAAO,CAAC,CAAC;IAClC,oBAAoB,EAAE,WAAW,CAAC,OAAO,CAAC,CAAC;IAC3C,iBAAiB,EAAE,WAAW,CAAC,OAAO,CAAC,CAAC;CACzC;AAED,eAAO,MAAM,aAAa,EAAE,YAAY,CAAC,sBAAsB,CACzC,CAAC;AAEvB,eAAO,MAAM,2BAA2B,EAAE,YAAY,CACpD,WAAW,CAAC,6BAA6B,CAAC,CACN,CAAC;AAEvC,eAAO,MAAM,mBAAmB,EAAE,YAAY,CAC5C,GAAG,CAAC,SAAS,eAAe,EAAE,CAAC,CACH,CAAC;AAE/B,MAAM,MAAM,uBAAuB,GAAG;IACpC,SAAS,EAAE,MAAM,CAAC;IAClB,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,OAAO,CAAC,EAAE,MAAM,CAAC;CAClB,CAAC;AAEF,MAAM,MAAM,wBAAwB,GAAG;IACrC,kBAAkB,EAAE,WAAW,CAAC,OAAO,CAAC,CAAC;IACzC,aAAa,EAAE,CAAC,OAAO,EAAE,uBAAuB,KAAK,IAAI,CAAC;CAC3D,CAAC;AAEF,eAAO,MAAM,YAAY,EAAE,YAAY,CAAC,wBAAwB,CAE/D,CAAC;AAEF,MAAM,WAAW,mBAAmB;IAClC,uCAAuC;IACvC,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,uEAAuE;IACvE,MAAM,EAAE,OAAO,CAAC;CACjB;AAED,mEAAmE;AACnE,eAAO,MAAM,sBAAsB,EAAE,YAAY,CAC/C,WAAW,CAAC,mBAAmB,CAAC,CACD,CAAC"}
@@ -10,8 +10,17 @@ export declare const CopilotChatDefaultLabels: {
10
10
  readonly assistantMessageToolbarCopyCodeLabel: "Copy";
11
11
  readonly assistantMessageToolbarCopyCodeCopiedLabel: "Copied";
12
12
  readonly assistantMessageToolbarCopyMessageLabel: "Copy";
13
+ readonly assistantMessageToolbarInspectorLabel: "View in Inspector";
14
+ readonly assistantMessageToolbarInspectorDescription: "Open this message in the Inspector";
15
+ readonly assistantMessageToolbarInspectorLocalOnlyLabel: "Local only";
16
+ readonly assistantMessageToolbarInspectorLocalOnlyDescription: "Only visible on localhost or loopback hosts in development. Never shown in production.";
17
+ readonly assistantMessageToolbarInspectorTitle: "CopilotKit Inspector";
18
+ readonly assistantMessageToolbarInspectorHideLabel: "Hide this icon";
19
+ readonly assistantMessageToolbarInspectorHideDescription: "Until you reload this page";
13
20
  readonly assistantMessageToolbarThumbsUpLabel: "Good response";
14
21
  readonly assistantMessageToolbarThumbsDownLabel: "Bad response";
22
+ readonly assistantMessageFeedbackCommentPlaceholder: "Add a comment (optional)";
23
+ readonly assistantMessageFeedbackCommentSubmitLabel: "Send comment";
15
24
  readonly assistantMessageToolbarReadAloudLabel: "Read aloud";
16
25
  readonly assistantMessageToolbarRegenerateLabel: "Regenerate";
17
26
  readonly userMessageToolbarCopyMessageLabel: "Copy";
@@ -1 +1 @@
1
- {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../src/v2/providers/types.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,wBAAwB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAoC3B,CAAC;AAEX,MAAM,MAAM,iBAAiB,GAAG,OAAO,wBAAwB,CAAC;AAEhE,MAAM,WAAW,6BAA6B;IAC5C,MAAM,EAAE,iBAAiB,CAAC;IAC1B,OAAO,EAAE,MAAM,CAAC;IAChB,QAAQ,EAAE,MAAM,CAAC;IACjB;;;;;OAKG;IACH,mBAAmB,EAAE,OAAO,CAAC;IAC7B,WAAW,CAAC,EAAE,OAAO,CAAC;IACtB,YAAY,CAAC,EAAE,CAAC,IAAI,EAAE,OAAO,KAAK,IAAI,CAAC;IACvC;;;;OAIG;IACH,iBAAiB,EAAE,CACjB,QAA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