@copilotkit/vue 2.0.0-rc.0 → 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
@@ -1,9 +1,16 @@
1
1
  import type { VueActivityMessageRenderer } from "../types";
2
2
  import type { A2UITheme } from "../types";
3
+ import type { A2UIRecoveryRendererOptions } from "./a2ui/A2UIRecoveryStates";
3
4
  export type A2UIMessageRendererOptions = {
4
5
  theme: A2UITheme;
5
6
  catalog?: any;
7
+ /** Optional custom loading component shown while the A2UI surface is building. */
6
8
  loadingComponent?: unknown;
9
+ /**
10
+ * Pre-paint recovery/loading UX options: timing before the "Retrying…"
11
+ * sub-label appears, and how much retry/debug detail to surface.
12
+ */
13
+ recovery?: A2UIRecoveryRendererOptions;
7
14
  };
8
15
  export declare function createA2UIMessageRenderer(options: A2UIMessageRendererOptions): VueActivityMessageRenderer<any>;
9
16
  //# sourceMappingURL=A2UIMessageRenderer.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"A2UIMessageRenderer.d.ts","sourceRoot":"","sources":["../../../src/v2/components/A2UIMessageRenderer.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,0BAA0B,EAAE,MAAM,UAAU,CAAC;AAC3D,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,UAAU,CAAC;AAK1C,MAAM,MAAM,0BAA0B,GAAG;IACvC,KAAK,EAAE,SAAS,CAAC;IACjB,OAAO,CAAC,EAAE,GAAG,CAAC;IACd,gBAAgB,CAAC,EAAE,OAAO,CAAC;CAC5B,CAAC;AAmEF,wBAAgB,yBAAyB,CACvC,OAAO,EAAE,0BAA0B,GAClC,0BAA0B,CAAC,GAAG,CAAC,CA2CjC"}
1
+ {"version":3,"file":"A2UIMessageRenderer.d.ts","sourceRoot":"","sources":["../../../src/v2/components/A2UIMessageRenderer.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,0BAA0B,EAAE,MAAM,UAAU,CAAC;AAC3D,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,UAAU,CAAC;AAS1C,OAAO,KAAK,EAAE,2BAA2B,EAAE,MAAM,2BAA2B,CAAC;AAI7E,MAAM,MAAM,0BAA0B,GAAG;IACvC,KAAK,EAAE,SAAS,CAAC;IACjB,OAAO,CAAC,EAAE,GAAG,CAAC;IACd,kFAAkF;IAClF,gBAAgB,CAAC,EAAE,OAAO,CAAC;IAC3B;;;OAGG;IACH,QAAQ,CAAC,EAAE,2BAA2B,CAAC;CACxC,CAAC;AAgBF,wBAAgB,yBAAyB,CACvC,OAAO,EAAE,0BAA0B,GAClC,0BAA0B,CAAC,GAAG,CAAC,CAoEjC"}
@@ -1 +1 @@
1
- {"version":3,"file":"A2UISurfaceActivityRenderer.vue.d.ts","sourceRoot":"","sources":["../../../src/v2/components/A2UISurfaceActivityRenderer.vue"],"names":[],"mappings":"AAqMA,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,aAAa,CAAC;AACnD,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,UAAU,CAAC;AAC1C,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,QAAQ,CAAC;AAY5C,KAAK,WAAW,GAAG;IACjB,YAAY,EAAE,MAAM,CAAC;IACrB,OAAO,EAAE;QAAE,UAAU,EAAE,aAAa,EAAE,CAAA;KAAE,CAAC;IACzC,OAAO,EAAE,eAAe,CAAC;IACzB,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,KAAK,CAAC,EAAE,SAAS,CAAC;IAClB,OAAO,CAAC,EAAE,GAAG,CAAC;CACf,CAAC;;AAuNF,wBAMG"}
1
+ {"version":3,"file":"A2UISurfaceActivityRenderer.vue.d.ts","sourceRoot":"","sources":["../../../src/v2/components/A2UISurfaceActivityRenderer.vue"],"names":[],"mappings":"AAkLA,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,aAAa,CAAC;AACnD,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,UAAU,CAAC;AAC1C,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,QAAQ,CAAC;AAU5C,KAAK,WAAW,GAAG;IACjB,YAAY,EAAE,MAAM,CAAC;IACrB,OAAO,EAAE;QAAE,UAAU,EAAE,aAAa,EAAE,CAAA;KAAE,CAAC;IACzC,OAAO,EAAE,eAAe,CAAC;IACzB,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,KAAK,CAAC,EAAE,SAAS,CAAC;IAClB,OAAO,CAAC,EAAE,GAAG,CAAC;CACf,CAAC;;AAsMF,wBAMG"}
@@ -6,8 +6,17 @@ import type { CopilotKitCoreVue } from "../../lib/vue-core";
6
6
  */
7
7
  export declare const RENDER_A2UI_TOOL_NAME = "render_a2ui";
8
8
  /**
9
- * Registers the built-in `render_a2ui` tool call renderer via the props-based
10
- * `setRenderToolCalls` mechanism (not `useRenderTool`).
9
+ * Registers a no-op renderer for the `render_a2ui` tool call so its raw
10
+ * streamed args are never surfaced in the transcript, as React does.
11
+ *
12
+ * The generation skeleton / retry / failure UX is not owned here: the A2UI
13
+ * middleware drives the whole lifecycle on the `a2ui-surface` activity (one
14
+ * stable messageId, building → retrying → failed → painted), rendered in place
15
+ * by `createA2UIMessageRenderer`. A skeleton per tool call would duplicate on
16
+ * retries and multi-call generations and linger after the surface painted.
17
+ *
18
+ * The renderer is registered via the props-based `setRenderToolCalls`
19
+ * mechanism (not `useRenderTool`).
11
20
  *
12
21
  * This ensures user-registered `useRenderTool({ name: "render_a2ui", ... })`
13
22
  * hooks automatically override the built-in, since the merge logic in
@@ -1 +1 @@
1
- {"version":3,"file":"A2UIBuiltInToolCallRenderer.d.ts","sourceRoot":"","sources":["../../../../src/v2/components/a2ui/A2UIBuiltInToolCallRenderer.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,KAAK,CAAC;AAGtC,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,oBAAoB,CAAC;AAG5D;;;GAGG;AACH,eAAO,MAAM,qBAAqB,gBAAgB,CAAC;AAEnD;;;;;;;;;GASG;AACH,wBAAgB,mCAAmC,CACjD,UAAU,EAAE,UAAU,CAAC,iBAAiB,CAAC,EACzC,OAAO,EAAE,MAAM,OAAO,GACrB,IAAI,CA6CN"}
1
+ {"version":3,"file":"A2UIBuiltInToolCallRenderer.d.ts","sourceRoot":"","sources":["../../../../src/v2/components/a2ui/A2UIBuiltInToolCallRenderer.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,KAAK,CAAC;AAEtC,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,oBAAoB,CAAC;AAG5D;;;GAGG;AACH,eAAO,MAAM,qBAAqB,gBAAgB,CAAC;AAEnD;;;;;;;;;;;;;;;;;;GAkBG;AACH,wBAAgB,mCAAmC,CACjD,UAAU,EAAE,UAAU,CAAC,iBAAiB,CAAC,EACzC,OAAO,EAAE,MAAM,OAAO,GACrB,IAAI,CA6BN"}
@@ -0,0 +1,136 @@
1
+ import type { PropType, VNodeChild } from "vue";
2
+ import { z } from "zod";
3
+ /**
4
+ * Shared pre-paint lifecycle states for the A2UI surface renderer, ported from
5
+ * React's `A2UIRecoveryStates`.
6
+ *
7
+ * The A2UI middleware drives the WHOLE generative-UI lifecycle on a single
8
+ * `a2ui-surface` activity (one stable messageId, `replace: true`), so the states
9
+ * below swap IN PLACE and the painted surface ultimately replaces them:
10
+ *
11
+ * building → animated skeleton + "Building interface" (+ optional ~N tokens)
12
+ * retrying → same skeleton; once perceptible, the sub-label becomes
13
+ * "Retrying generation… (N/M attempts)" (threshold-gated so a fast
14
+ * transient retry never flashes), with debug detail per debugExposure
15
+ * failed → a clean hard-failure card (replacing the skeleton), developer
16
+ * detail tucked into an expander gated by debugExposure
17
+ * painted → the surface renderer owns the UI (these states render nothing)
18
+ *
19
+ * Timing (`showAfterMs` / `showAfterAttempts`) and how much debug detail to
20
+ * surface (`debugExposure`) are client concerns; the server can override
21
+ * `debugExposure` by stamping it onto the activity content (it wins over the
22
+ * client option).
23
+ */
24
+ export type A2UIRecoveryRendererOptions = {
25
+ /** Delay (ms) before the "Retrying…" sub-label becomes visible. Default 2000. */
26
+ showAfterMs?: number;
27
+ /** Show the "Retrying…" sub-label immediately once `attempt` reaches this. Default 2. */
28
+ showAfterAttempts?: number;
29
+ /** How much retry/debug detail to surface. Default "collapsed". */
30
+ debugExposure?: "hidden" | "collapsed" | "verbose";
31
+ };
32
+ export type DebugExposure = "hidden" | "collapsed" | "verbose";
33
+ /**
34
+ * The pre-paint lifecycle fields the middleware stamps onto the `a2ui-surface`
35
+ * activity content (alongside `a2ui_operations` on paint).
36
+ */
37
+ export declare const A2UILifecycleFields: {
38
+ status: z.ZodOptional<z.ZodEnum<["building", "retrying", "failed"]>>;
39
+ attempt: z.ZodOptional<z.ZodNumber>;
40
+ maxAttempts: z.ZodOptional<z.ZodNumber>;
41
+ progressTokens: z.ZodOptional<z.ZodNumber>;
42
+ error: z.ZodOptional<z.ZodString>;
43
+ errors: z.ZodOptional<z.ZodArray<z.ZodAny, "many">>;
44
+ attempts: z.ZodOptional<z.ZodArray<z.ZodAny, "many">>;
45
+ debugExposure: z.ZodOptional<z.ZodEnum<["hidden", "collapsed", "verbose"]>>;
46
+ };
47
+ /** Server-stamped debugExposure wins; else the client option. */
48
+ export declare function resolveDebugExposure(content: any, optionDebugExposure: DebugExposure): DebugExposure;
49
+ /**
50
+ * Animated wireframe skeleton with a label, an optional live token count, and
51
+ * optional debug detail below it. The `tokens` count drives a progressive
52
+ * reveal of skeleton rows.
53
+ */
54
+ export declare function renderA2UIGeneratingSkeleton(label: string, tokens?: number, children?: VNodeChild[]): VNodeChild;
55
+ /** building: the generic skeleton + optional live token count. */
56
+ export declare const A2UIBuildingState: import("vue").DefineComponent<import("vue").ExtractPropTypes<{
57
+ content: {
58
+ type: PropType<any>;
59
+ default: undefined;
60
+ };
61
+ }>, () => VNodeChild, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
62
+ content: {
63
+ type: PropType<any>;
64
+ default: undefined;
65
+ };
66
+ }>> & Readonly<{}>, {
67
+ content: any;
68
+ }, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
69
+ /**
70
+ * retrying: stays the generic skeleton through fast/transient retries; only
71
+ * once the retry is perceptible (after `showAfterMs`, or once `attempt`
72
+ * crosses `showAfterAttempts`) does the sub-label reveal
73
+ * "Retrying generation… (N/M)".
74
+ */
75
+ export declare const A2UIRetryingState: import("vue").DefineComponent<import("vue").ExtractPropTypes<{
76
+ content: {
77
+ type: PropType<any>;
78
+ default: undefined;
79
+ };
80
+ showAfterMs: {
81
+ type: NumberConstructor;
82
+ required: true;
83
+ };
84
+ showAfterAttempts: {
85
+ type: NumberConstructor;
86
+ required: true;
87
+ };
88
+ debugExposure: {
89
+ type: PropType<DebugExposure>;
90
+ required: true;
91
+ };
92
+ }>, () => VNodeChild, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
93
+ content: {
94
+ type: PropType<any>;
95
+ default: undefined;
96
+ };
97
+ showAfterMs: {
98
+ type: NumberConstructor;
99
+ required: true;
100
+ };
101
+ showAfterAttempts: {
102
+ type: NumberConstructor;
103
+ required: true;
104
+ };
105
+ debugExposure: {
106
+ type: PropType<DebugExposure>;
107
+ required: true;
108
+ };
109
+ }>> & Readonly<{}>, {
110
+ content: any;
111
+ }, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
112
+ /** failed: a clean hard-failure card that replaces the skeleton in place. */
113
+ export declare const A2UIRecoveryFailure: import("vue").DefineComponent<import("vue").ExtractPropTypes<{
114
+ content: {
115
+ type: PropType<any>;
116
+ default: undefined;
117
+ };
118
+ debugExposure: {
119
+ type: PropType<DebugExposure>;
120
+ required: true;
121
+ };
122
+ }>, () => import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
123
+ [key: string]: any;
124
+ }>, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
125
+ content: {
126
+ type: PropType<any>;
127
+ default: undefined;
128
+ };
129
+ debugExposure: {
130
+ type: PropType<DebugExposure>;
131
+ required: true;
132
+ };
133
+ }>> & Readonly<{}>, {
134
+ content: any;
135
+ }, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
136
+ //# sourceMappingURL=A2UIRecoveryStates.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"A2UIRecoveryStates.d.ts","sourceRoot":"","sources":["../../../../src/v2/components/a2ui/A2UIRecoveryStates.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,QAAQ,EAAE,UAAU,EAAE,MAAM,KAAK,CAAC;AAChD,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB;;;;;;;;;;;;;;;;;;;;GAoBG;AACH,MAAM,MAAM,2BAA2B,GAAG;IACxC,iFAAiF;IACjF,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,yFAAy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MAAM,CAAC;IAAC,WAAW,CAAC,EAAE,OAAO,CAAA;CAAE,CAAC;;iBAAV,OAAO;;AAiM3D,wBAOG"}
1
+ {"version":3,"file":"BasicMarkdown.vue.d.ts","sourceRoot":"","sources":["../../../../src/v2/components/chat/BasicMarkdown.vue"],"names":[],"mappings":"AAuKA,KAAK,WAAW,GAAG;IAAE,OAAO,EAAE,MAAM,CAAC;IAAC,WAAW,CAAC,EAAE,OAAO,CAAA;CAAE,CAAC;;iBAAV,OAAO;;AAiM3D,wBAOG"}
@@ -39,6 +39,7 @@ declare const __VLS_component: import("vue").DefineComponent<CopilotChatProps, {
39
39
  inputMode: import("./types").CopilotChatInputMode;
40
40
  inputToolsMenu: (import("./types").ToolsMenuItem | "-")[];
41
41
  onFinishTranscribeWithAudio: (audioBlob: Blob) => void | Promise<void>;
42
+ messageFeedback: boolean;
42
43
  }, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
43
44
  declare const _default: __VLS_WithSlots<typeof __VLS_component, __VLS_Slots>;
44
45
  export default _default;
@@ -1 +1 @@
1
- {"version":3,"file":"CopilotChat.vue.d.ts","sourceRoot":"","sources":["../../../../src/v2/components/chat/CopilotChat.vue"],"names":[],"mappings":"AA08BA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,kBAAkB,CAAC;AAiBnD,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,aAAa,CAAC;AAG3C,OAAO,KAAK,EACV,yBAAyB,EACzB,gBAAgB,EAChB,6BAA6B,EAC7B,kCAAkC,EAClC,gCAAgC,EAChC,iCAAiC,EAClC,MAAM,SAAS,CAAC;AAcjB,KAAK,WAAW,GAAG;IACjB,WAAW,CAAC,EAAE,CAAC,KAAK,EAAE,gCAAgC,KAAK,OAAO,CAAC;IACnE,cAAc,CAAC,EAAE,CAAC,KAAK,EAAE;QACvB,QAAQ,EAAE,OAAO,EAAE,CAAC;QACpB,SAAS,EAAE,OAAO,CAAC;KACpB,KAAK,OAAO,CAAC;IAC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O,CAAC;KACpB,KAAK,OAAO,CAAC;IACd,SAAS,CAAC,EAAE,CAAC,KAAK,EAAE,6BAA6B,KAAK,OAAO,CAAC;IAC9D,KAAK,CAAC,EAAE,CAAC,KAAK,EAAE,yBAAyB,KAAK,OAAO,CAAC;IACtD,iBAAiB,CAAC,EAAE,CAAC,KAAK,EAAE,kCAAkC,KAAK,OAAO,CAAC;IAC3E,gBAAgB,CAAC,EAAE,CAAC,KAAK,EAAE,iCAAiC,KAAK,OAAO,CAAC;IACzE,iBAAiB,CAAC,EAAE,MAAM,OAAO,CAAC;IAElC,CAAC,GAAG,EAAE,MAAM,GAAG,CAAC,CAAC,KAAK,EAAE,GAAG,KAAK,OAAO,CAAC,GAAG,SAAS,CAAC;CACtD,CAAC;AAq9BF,QAAA,MAAM,eAAe;;;;;;;;;;;;;;;;;;;;;;;;;;6EAQnB,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
  import type { AssistantMessage, Message } from "@ag-ui/core";
2
- import type { CopilotChatAssistantMessageCopyButtonSlotProps, CopilotChatAssistantMessageLayoutSlotProps, CopilotChatAssistantMessageMessageRendererSlotProps, CopilotChatAssistantMessageReadAloudButtonSlotProps, CopilotChatAssistantMessageRegenerateButtonSlotProps, CopilotChatAssistantMessageThumbsDownButtonSlotProps, CopilotChatAssistantMessageThumbsUpButtonSlotProps, CopilotChatAssistantMessageToolCallsViewSlotProps, CopilotChatAssistantMessageToolbarSlotProps } from "./types";
2
+ import type { CopilotChatAssistantMessageCopyButtonSlotProps, CopilotChatAssistantMessageFeedbackCommentSlotProps, CopilotChatAssistantMessageInspectorButtonSlotProps, CopilotChatAssistantMessageLayoutSlotProps, CopilotChatAssistantMessageMessageRendererSlotProps, CopilotChatAssistantMessageReadAloudButtonSlotProps, CopilotChatAssistantMessageRegenerateButtonSlotProps, CopilotChatAssistantMessageThumbsDownButtonSlotProps, CopilotChatAssistantMessageThumbsUpButtonSlotProps, CopilotChatAssistantMessageToolCallsViewSlotProps, CopilotChatAssistantMessageToolbarSlotProps } from "./types";
3
3
  type __VLS_Props = {
4
4
  message: AssistantMessage;
5
5
  messages?: Message[];
@@ -20,6 +20,8 @@ type __VLS_Slots = {
20
20
  "read-aloud-button"?: (props: CopilotChatAssistantMessageReadAloudButtonSlotProps) => unknown;
21
21
  "regenerate-button"?: (props: CopilotChatAssistantMessageRegenerateButtonSlotProps) => unknown;
22
22
  "tool-calls-view"?: (props: CopilotChatAssistantMessageToolCallsViewSlotProps) => unknown;
23
+ "inspector-button"?: (props: CopilotChatAssistantMessageInspectorButtonSlotProps) => unknown;
24
+ "feedback-comment"?: (props: CopilotChatAssistantMessageFeedbackCommentSlotProps) => unknown;
23
25
  "toolbar-items"?: () => unknown;
24
26
  [key: string]: ((props: any) => unknown) | undefined;
25
27
  };
@@ -1 +1 @@
1
- {"version":3,"file":"CopilotChatAssistantMessage.vue.d.ts","sourceRoot":"","sources":["../../../../src/v2/components/chat/CopilotChatAssistantMessage.vue"],"names":[],"mappings":"AAyXA,OAAO,KAAK,EAAE,gBAAgB,EAAE,OAAO,EAAE,MAAM,aAAa,CAAC;AAiB7D,OAAO,KAAK,EACV,8CAA8C,EAC9C,0CAA0C,EAC1C,mDAAmD,EACnD,mDAAmD,EACnD,oDAAoD,EACpD,oDAAoD,EACpD,kDAAkD,EAClD,iDAAiD,EACjD,2CAA2C,EAC5C,MAAM,SAAS,CAAC;AACjB,KAAK,WAAW,GAAG;IACf,OAAO,EAAE,gBAAgB,CAAC;IAC1B,QAAQ,CAAC,EAAE,OAAO,EAAE,CAAC;IACrB,SAAS,CAAC,EAAE,OAAO,CAAC;IACpB,cAAc,CAAC,EAAE,OAAO,CAAC;IACzB,UAAU,CAAC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;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":"CopilotChatAssistantMessage.vue.d.ts","sourceRoot":"","sources":["../../../../src/v2/components/chat/CopilotChatAssistantMessage.vue"],"names":[],"mappings":"AA0kBA,OAAO,KAAK,EAAE,gBAAgB,EAAE,OAAO,EAAE,MAAM,aAAa,CAAC;AAyB7D,OAAO,KAAK,EACV,8CAA8C,EAC9C,mDAAmD,EACnD,mDAAmD,EACnD,0CAA0C,EAC1C,mDAAmD,EACnD,mDAAmD,EACnD,oDAAoD,EACpD,oDAAoD,EACpD,kDAAkD,EAClD,iDAAiD,EACjD,2CAA2C,EAC5C,MAAM,SAAS,CAAC;AACjB,KAAK,WAAW,GAAG;IACf,OAAO,EAAE,gBAAgB,CAAC;IAC1B,QAAQ,CAAC,EAAE,OAAO,EAAE,CAAC;IACrB,SAAS,CAAC,EAAE,OAAO,CAAC;IACpB,cAAc,CAAC,EAAE,OAAO,CAAC;IACzB,UAAU,CAAC,EAAE,CAAC,OAAO,EAAE,gBAAgB,KAAK,IAAI,CAAC;IACjD,YAAY,CAAC,EAAE,CAAC,OAAO,EAAE,gBAAgB,KAAK,IAAI,CAAC;IACnD,WAAW,CAAC,EAAE,CAAC,OAAO,EAAE,gBAAgB,KAAK,IAAI,CAAC;IAClD,YAAY,CAAC,EAAE,CAAC,OAAO,EAAE,gBAAgB,KAAK,IAAI,CAAC;CACpD,CAAC;AAUJ,KAAK,WAAW,GAAG;IACjB,MAAM,CAAC,EAAE,CAAC,KAAK,EAAE,0CAA0C,KAAK,OAAO,CAAC;IACxE,kBAAkB,CAAC,EAAE,CACnB,KAAK,EAAE,mDAAmD,KACvD,OAAO,CAAC;IACb,OAAO,CAAC,EAAE,CAAC,KAAK,EAAE,2CAA2C,KAAK,OAAO,CAAC;IAC1E,aAAa,CAAC,EAAE,CACd,KAAK,EAAE,8CAA8C,KAClD,OAAO,CAAC;IACb,kBAAkB,CAAC,EAAE,CACnB,KAAK,EAAE,kDAAkD,KACtD,OAAO,CAAC;IACb,oBAAoB,CAAC,EAAE,CACrB,KAAK,EAAE,oDAAoD,KACxD,OAAO,CAAC;IACb,mBAAmB,CAAC,EAAE,CACpB,KAAK,EAAE,mDAAmD,KACvD,OAAO,CAAC;IACb,mBAAmB,CAAC,EAAE,CACpB,KAAK,EAAE,oDAAoD,KACxD,OAAO,CAAC;IACb,iBAAiB,CAAC,EAAE,CAClB,KAAK,EAAE,iDAAiD,KACrD,OAAO,CAAC;IACb,kBAAkB,CAAC,EAAE,CACnB,KAAK,EAAE,mDAAmD,KACvD,OAAO,CAAC;IACb,kBAAkB,CAAC,EAAE,CACnB,KAAK,EAAE,mDAAmD,KACvD,OAAO,CAAC;IACb,eAAe,CAAC,EAAE,MAAM,OAAO,CAAC;IAChC,CAAC,GAAG,EAAE,MAAM,GAAG,CAAC,CAAC,KAAK,EAAE,GAAG,KAAK,OAAO,CAAC,GAAG,SAAS,CAAC;CACtD,CAAC;AAosBF,QAAA,MAAM,eAAe;;;;;;;;;;;cArvBN,OAAO,EAAE;eACR,OAAO;oBACF,OAAO;6EA2vB1B,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,16 @@
1
+ type __VLS_Props = {
2
+ label: string;
3
+ };
4
+ type __VLS_Slots = {
5
+ default(): unknown;
6
+ tooltip?(): unknown;
7
+ };
8
+ declare const __VLS_component: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
9
+ declare const _default: __VLS_WithSlots<typeof __VLS_component, __VLS_Slots>;
10
+ export default _default;
11
+ type __VLS_WithSlots<T, S> = T & {
12
+ new (): {
13
+ $slots: S;
14
+ };
15
+ };
16
+ //# sourceMappingURL=CopilotChatAssistantToolbarButton.vue.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"CopilotChatAssistantToolbarButton.vue.d.ts","sourceRoot":"","sources":["../../../../src/v2/components/chat/CopilotChatAssistantToolbarButton.vue"],"names":[],"mappings":"AA8DA,KAAK,WAAW,GAAG;IAAE,KAAK,EAAE,MAAM,CAAA;CAAE,CAAC;AAGrC,KAAK,WAAW,GAAG;IAAE,OAAO,IAAI,OAAO,CAAC;IAAC,OAAO,CAAC,IAAI,OAAO,CAAA;CAAE,CAAC;AA4E/D,QAAA,MAAM,eAAe,kSAMnB,CAAC;wBACkB,eAAe,CAAC,OAAO,eAAe,EAAE,WAAW,CAAC;AAAzE,wBAA0E;AAQ1E,KAAK,eAAe,CAAC,CAAC,EAAE,CAAC,IAAI,CAAC,GAAG;IAChC,QAAO;QACN,MAAM,EAAE,CAAC,CAAC;KAEV,CAAA;CACD,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"CopilotChatAttachmentQueue.vue.d.ts","sourceRoot":"","sources":["../../../../src/v2/components/chat/CopilotChatAttachmentQueue.vue"],"names":[],"mappings":"AAwaA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,oBAAoB,CAAC;AACrD,OAAO,KAAK,EAAE,+BAA+B,EAAE,MAAM,SAAS,CAAC;;;;;;;;;AA+pB/D,wBAQG"}
1
+ {"version":3,"file":"CopilotChatAttachmentQueue.vue.d.ts","sourceRoot":"","sources":["../../../../src/v2/components/chat/CopilotChatAttachmentQueue.vue"],"names":[],"mappings":"AA6YA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,oBAAoB,CAAC;AACrD,OAAO,KAAK,EAAE,+BAA+B,EAAE,MAAM,SAAS,CAAC;;;;;;;;;AA+f/D,wBAQG"}
@@ -1 +1 @@
1
- {"version":3,"file":"CopilotChatAttachmentRenderer.vue.d.ts","sourceRoot":"","sources":["../../../../src/v2/components/chat/CopilotChatAttachmentRenderer.vue"],"names":[],"mappings":"AA2FA,OAAO,KAAK,EAAE,kCAAkC,EAAE,MAAM,SAAS,CAAC;;;;;AAmKlE,wBAOG"}
1
+ {"version":3,"file":"CopilotChatAttachmentRenderer.vue.d.ts","sourceRoot":"","sources":["../../../../src/v2/components/chat/CopilotChatAttachmentRenderer.vue"],"names":[],"mappings":"AA4IA,OAAO,KAAK,EAAE,kCAAkC,EAAE,MAAM,SAAS,CAAC;;;;;AAyMlE,wBAOG"}
@@ -1 +1 @@
1
- {"version":3,"file":"CopilotChatAudioRecorder.vue.d.ts","sourceRoot":"","sources":["../../../../src/v2/components/chat/CopilotChatAudioRecorder.vue"],"names":[],"mappings":"AAiRA,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,iBAAiB,CAAC;AAkB1D,iBAAS,OAAO,SAmCf;AAED,iBAAe,KAAK,kBAkDnB;AAED,iBAAS,IAAI,kBAwBZ;;;;;;;AA+KD,wBAMG"}
1
+ {"version":3,"file":"CopilotChatAudioRecorder.vue.d.ts","sourceRoot":"","sources":["../../../../src/v2/components/chat/CopilotChatAudioRecorder.vue"],"names":[],"mappings":"AAiRA,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,iBAAiB,CAAC;AAkB1D,iBAAS,OAAO,SAmCf;AAED,iBAAe,KAAK,kBAkDnB;AAED,iBAAS,IAAI,kBAwBZ;;;;;;;AA2KD,wBAMG"}
@@ -0,0 +1,22 @@
1
+ import type { MessageFeedbackRating } from "../../lib/message-feedback";
2
+ import type { FeedbackComment } from "./message-feedback";
3
+ import type { CopilotChatAssistantMessageFeedbackCommentSlotProps } from "./types";
4
+ type __VLS_Props = {
5
+ comment: FeedbackComment;
6
+ savedComment: string;
7
+ rating: MessageFeedbackRating;
8
+ anchor: HTMLElement | null;
9
+ messageId: string;
10
+ };
11
+ type __VLS_Slots = {
12
+ "feedback-comment"?: (props: CopilotChatAssistantMessageFeedbackCommentSlotProps) => unknown;
13
+ };
14
+ declare const __VLS_component: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
15
+ declare const _default: __VLS_WithSlots<typeof __VLS_component, __VLS_Slots>;
16
+ export default _default;
17
+ type __VLS_WithSlots<T, S> = T & {
18
+ new (): {
19
+ $slots: S;
20
+ };
21
+ };
22
+ //# sourceMappingURL=CopilotChatFeedbackCommentPopover.vue.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"CopilotChatFeedbackCommentPopover.vue.d.ts","sourceRoot":"","sources":["../../../../src/v2/components/chat/CopilotChatFeedbackCommentPopover.vue"],"names":[],"mappings":"AAgQA,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,4BAA4B,CAAC;AAGxE,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,oBAAoB,CAAC;AAC1D,OAAO,KAAK,EAAE,mDAAmD,EAAE,MAAM,SAAS,CAAC;AAEnF,KAAK,WAAW,GAAG;IACjB,OAAO,EAAE,eAAe,CAAC;IACzB,YAAY,EAAE,MAAM,CAAC;IACrB,MAAM,EAAE,qBAAqB,CAAC;IAC9B,MAAM,EAAE,WAAW,GAAG,IAAI,CAAC;IAC3B,SAAS,EAAE,MAAM,CAAC;CACnB,CAAC;AAGF,KAAK,WAAW,GAAG;IACjB,kBAAkB,CAAC,EAAE,CACnB,KAAK,EAAE,mDAAmD,KACvD,OAAO,CAAC;CACd,CAAC;AAmTF,QAAA,MAAM,eAAe,kSAMnB,CAAC;wBACkB,eAAe,CAAC,OAAO,eAAe,EAAE,WAAW,CAAC;AAAzE,wBAA0E;AAQ1E,KAAK,eAAe,CAAC,CAAC,EAAE,CAAC,IAAI,CAAC,GAAG;IAChC,QAAO;QACN,MAAM,EAAE,CAAC,CAAC;KAEV,CAAA;CACD,CAAC"}
@@ -55,7 +55,6 @@ declare function submit(): void;
55
55
  declare function handleInput(event: Event): void;
56
56
  declare function handleSendButtonClick(): void;
57
57
  declare function handleKeydown(event: KeyboardEvent): void;
58
- declare function toggleAddMenu(): void;
59
58
  declare function handleMenuAction(action: () => void): void;
60
59
  declare function handleFinishTranscribe(): Promise<void>;
61
60
  declare var __VLS_1: {
@@ -68,7 +67,7 @@ declare var __VLS_1: {
68
67
  sendDisabled: boolean;
69
68
  menuOpen: boolean;
70
69
  menuItems: MenuDisplayEntry[];
71
- onToggleMenu: typeof toggleAddMenu;
70
+ onToggleMenu: () => void;
72
71
  onMenuAction: typeof handleMenuAction;
73
72
  onUpdateValue: typeof updateInputValue;
74
73
  onSubmit: typeof submit;
@@ -80,7 +79,7 @@ declare var __VLS_1: {
80
79
  }, __VLS_3: {
81
80
  disabled: boolean;
82
81
  menuOpen: boolean;
83
- toggleMenu: typeof toggleAddMenu;
82
+ toggleMenu: () => void;
84
83
  labels: {
85
84
  readonly chatInputPlaceholder: "Type a message...";
86
85
  readonly chatInputToolbarStartTranscribeButtonLabel: "Transcribe";
@@ -93,8 +92,17 @@ declare var __VLS_1: {
93
92
  readonly assistantMessageToolbarCopyCodeLabel: "Copy";
94
93
  readonly assistantMessageToolbarCopyCodeCopiedLabel: "Copied";
95
94
  readonly assistantMessageToolbarCopyMessageLabel: "Copy";
95
+ readonly assistantMessageToolbarInspectorLabel: "View in Inspector";
96
+ readonly assistantMessageToolbarInspectorDescription: "Open this message in the Inspector";
97
+ readonly assistantMessageToolbarInspectorLocalOnlyLabel: "Local only";
98
+ readonly assistantMessageToolbarInspectorLocalOnlyDescription: "Only visible on localhost or loopback hosts in development. Never shown in production.";
99
+ readonly assistantMessageToolbarInspectorTitle: "CopilotKit Inspector";
100
+ readonly assistantMessageToolbarInspectorHideLabel: "Hide this icon";
101
+ readonly assistantMessageToolbarInspectorHideDescription: "Until you reload this page";
96
102
  readonly assistantMessageToolbarThumbsUpLabel: "Good response";
97
103
  readonly assistantMessageToolbarThumbsDownLabel: "Bad response";
104
+ readonly assistantMessageFeedbackCommentPlaceholder: "Add a comment (optional)";
105
+ readonly assistantMessageFeedbackCommentSubmitLabel: "Send comment";
98
106
  readonly assistantMessageToolbarReadAloudLabel: "Read aloud";
99
107
  readonly assistantMessageToolbarRegenerateLabel: "Regenerate";
100
108
  readonly userMessageToolbarCopyMessageLabel: "Copy";
@@ -117,7 +125,7 @@ declare var __VLS_1: {
117
125
  readonly modalHeaderThreadsButtonLabel: "Open threads";
118
126
  readonly sidebarLabel: "Copilot chat sidebar";
119
127
  };
120
- }, __VLS_13: {}, __VLS_24: {
128
+ }, __VLS_20: {}, __VLS_31: {
121
129
  value: string;
122
130
  disabled: boolean;
123
131
  placeholder: string;
@@ -138,8 +146,17 @@ declare var __VLS_1: {
138
146
  readonly assistantMessageToolbarCopyCodeLabel: "Copy";
139
147
  readonly assistantMessageToolbarCopyCodeCopiedLabel: "Copied";
140
148
  readonly assistantMessageToolbarCopyMessageLabel: "Copy";
149
+ readonly assistantMessageToolbarInspectorLabel: "View in Inspector";
150
+ readonly assistantMessageToolbarInspectorDescription: "Open this message in the Inspector";
151
+ readonly assistantMessageToolbarInspectorLocalOnlyLabel: "Local only";
152
+ readonly assistantMessageToolbarInspectorLocalOnlyDescription: "Only visible on localhost or loopback hosts in development. Never shown in production.";
153
+ readonly assistantMessageToolbarInspectorTitle: "CopilotKit Inspector";
154
+ readonly assistantMessageToolbarInspectorHideLabel: "Hide this icon";
155
+ readonly assistantMessageToolbarInspectorHideDescription: "Until you reload this page";
141
156
  readonly assistantMessageToolbarThumbsUpLabel: "Good response";
142
157
  readonly assistantMessageToolbarThumbsDownLabel: "Bad response";
158
+ readonly assistantMessageFeedbackCommentPlaceholder: "Add a comment (optional)";
159
+ readonly assistantMessageFeedbackCommentSubmitLabel: "Send comment";
143
160
  readonly assistantMessageToolbarReadAloudLabel: "Read aloud";
144
161
  readonly assistantMessageToolbarRegenerateLabel: "Regenerate";
145
162
  readonly userMessageToolbarCopyMessageLabel: "Copy";
@@ -162,7 +179,7 @@ declare var __VLS_1: {
162
179
  readonly modalHeaderThreadsButtonLabel: "Open threads";
163
180
  readonly sidebarLabel: "Copilot chat sidebar";
164
181
  };
165
- }, __VLS_26: {
182
+ }, __VLS_33: {
166
183
  disabled: boolean;
167
184
  onClick: () => void;
168
185
  labels: {
@@ -177,8 +194,17 @@ declare var __VLS_1: {
177
194
  readonly assistantMessageToolbarCopyCodeLabel: "Copy";
178
195
  readonly assistantMessageToolbarCopyCodeCopiedLabel: "Copied";
179
196
  readonly assistantMessageToolbarCopyMessageLabel: "Copy";
197
+ readonly assistantMessageToolbarInspectorLabel: "View in Inspector";
198
+ readonly assistantMessageToolbarInspectorDescription: "Open this message in the Inspector";
199
+ readonly assistantMessageToolbarInspectorLocalOnlyLabel: "Local only";
200
+ readonly assistantMessageToolbarInspectorLocalOnlyDescription: "Only visible on localhost or loopback hosts in development. Never shown in production.";
201
+ readonly assistantMessageToolbarInspectorTitle: "CopilotKit Inspector";
202
+ readonly assistantMessageToolbarInspectorHideLabel: "Hide this icon";
203
+ readonly assistantMessageToolbarInspectorHideDescription: "Until you reload this page";
180
204
  readonly assistantMessageToolbarThumbsUpLabel: "Good response";
181
205
  readonly assistantMessageToolbarThumbsDownLabel: "Bad response";
206
+ readonly assistantMessageFeedbackCommentPlaceholder: "Add a comment (optional)";
207
+ readonly assistantMessageFeedbackCommentSubmitLabel: "Send comment";
182
208
  readonly assistantMessageToolbarReadAloudLabel: "Read aloud";
183
209
  readonly assistantMessageToolbarRegenerateLabel: "Regenerate";
184
210
  readonly userMessageToolbarCopyMessageLabel: "Copy";
@@ -201,7 +227,7 @@ declare var __VLS_1: {
201
227
  readonly modalHeaderThreadsButtonLabel: "Open threads";
202
228
  readonly sidebarLabel: "Copilot chat sidebar";
203
229
  };
204
- }, __VLS_32: {
230
+ }, __VLS_42: {
205
231
  disabled: boolean;
206
232
  onClick: typeof handleFinishTranscribe;
207
233
  labels: {
@@ -216,8 +242,17 @@ declare var __VLS_1: {
216
242
  readonly assistantMessageToolbarCopyCodeLabel: "Copy";
217
243
  readonly assistantMessageToolbarCopyCodeCopiedLabel: "Copied";
218
244
  readonly assistantMessageToolbarCopyMessageLabel: "Copy";
245
+ readonly assistantMessageToolbarInspectorLabel: "View in Inspector";
246
+ readonly assistantMessageToolbarInspectorDescription: "Open this message in the Inspector";
247
+ readonly assistantMessageToolbarInspectorLocalOnlyLabel: "Local only";
248
+ readonly assistantMessageToolbarInspectorLocalOnlyDescription: "Only visible on localhost or loopback hosts in development. Never shown in production.";
249
+ readonly assistantMessageToolbarInspectorTitle: "CopilotKit Inspector";
250
+ readonly assistantMessageToolbarInspectorHideLabel: "Hide this icon";
251
+ readonly assistantMessageToolbarInspectorHideDescription: "Until you reload this page";
219
252
  readonly assistantMessageToolbarThumbsUpLabel: "Good response";
220
253
  readonly assistantMessageToolbarThumbsDownLabel: "Bad response";
254
+ readonly assistantMessageFeedbackCommentPlaceholder: "Add a comment (optional)";
255
+ readonly assistantMessageFeedbackCommentSubmitLabel: "Send comment";
221
256
  readonly assistantMessageToolbarReadAloudLabel: "Read aloud";
222
257
  readonly assistantMessageToolbarRegenerateLabel: "Regenerate";
223
258
  readonly userMessageToolbarCopyMessageLabel: "Copy";
@@ -240,7 +275,7 @@ declare var __VLS_1: {
240
275
  readonly modalHeaderThreadsButtonLabel: "Open threads";
241
276
  readonly sidebarLabel: "Copilot chat sidebar";
242
277
  };
243
- }, __VLS_38: {
278
+ }, __VLS_51: {
244
279
  disabled: boolean;
245
280
  onClick: () => void;
246
281
  labels: {
@@ -255,8 +290,17 @@ declare var __VLS_1: {
255
290
  readonly assistantMessageToolbarCopyCodeLabel: "Copy";
256
291
  readonly assistantMessageToolbarCopyCodeCopiedLabel: "Copied";
257
292
  readonly assistantMessageToolbarCopyMessageLabel: "Copy";
293
+ readonly assistantMessageToolbarInspectorLabel: "View in Inspector";
294
+ readonly assistantMessageToolbarInspectorDescription: "Open this message in the Inspector";
295
+ readonly assistantMessageToolbarInspectorLocalOnlyLabel: "Local only";
296
+ readonly assistantMessageToolbarInspectorLocalOnlyDescription: "Only visible on localhost or loopback hosts in development. Never shown in production.";
297
+ readonly assistantMessageToolbarInspectorTitle: "CopilotKit Inspector";
298
+ readonly assistantMessageToolbarInspectorHideLabel: "Hide this icon";
299
+ readonly assistantMessageToolbarInspectorHideDescription: "Until you reload this page";
258
300
  readonly assistantMessageToolbarThumbsUpLabel: "Good response";
259
301
  readonly assistantMessageToolbarThumbsDownLabel: "Bad response";
302
+ readonly assistantMessageFeedbackCommentPlaceholder: "Add a comment (optional)";
303
+ readonly assistantMessageFeedbackCommentSubmitLabel: "Send comment";
260
304
  readonly assistantMessageToolbarReadAloudLabel: "Read aloud";
261
305
  readonly assistantMessageToolbarRegenerateLabel: "Regenerate";
262
306
  readonly userMessageToolbarCopyMessageLabel: "Copy";
@@ -279,11 +323,11 @@ declare var __VLS_1: {
279
323
  readonly modalHeaderThreadsButtonLabel: "Open threads";
280
324
  readonly sidebarLabel: "Copilot chat sidebar";
281
325
  };
282
- }, __VLS_44: {
326
+ }, __VLS_60: {
283
327
  disabled: boolean;
284
328
  isProcessing: boolean;
285
329
  onClick: typeof handleSendButtonClick;
286
- }, __VLS_54: {
330
+ }, __VLS_70: {
287
331
  labels: {
288
332
  readonly chatInputPlaceholder: "Type a message...";
289
333
  readonly chatInputToolbarStartTranscribeButtonLabel: "Transcribe";
@@ -296,8 +340,17 @@ declare var __VLS_1: {
296
340
  readonly assistantMessageToolbarCopyCodeLabel: "Copy";
297
341
  readonly assistantMessageToolbarCopyCodeCopiedLabel: "Copied";
298
342
  readonly assistantMessageToolbarCopyMessageLabel: "Copy";
343
+ readonly assistantMessageToolbarInspectorLabel: "View in Inspector";
344
+ readonly assistantMessageToolbarInspectorDescription: "Open this message in the Inspector";
345
+ readonly assistantMessageToolbarInspectorLocalOnlyLabel: "Local only";
346
+ readonly assistantMessageToolbarInspectorLocalOnlyDescription: "Only visible on localhost or loopback hosts in development. Never shown in production.";
347
+ readonly assistantMessageToolbarInspectorTitle: "CopilotKit Inspector";
348
+ readonly assistantMessageToolbarInspectorHideLabel: "Hide this icon";
349
+ readonly assistantMessageToolbarInspectorHideDescription: "Until you reload this page";
299
350
  readonly assistantMessageToolbarThumbsUpLabel: "Good response";
300
351
  readonly assistantMessageToolbarThumbsDownLabel: "Bad response";
352
+ readonly assistantMessageFeedbackCommentPlaceholder: "Add a comment (optional)";
353
+ readonly assistantMessageFeedbackCommentSubmitLabel: "Send comment";
301
354
  readonly assistantMessageToolbarReadAloudLabel: "Read aloud";
302
355
  readonly assistantMessageToolbarRegenerateLabel: "Regenerate";
303
356
  readonly userMessageToolbarCopyMessageLabel: "Copy";
@@ -326,19 +379,19 @@ type __VLS_Slots = {} & {
326
379
  } & {
327
380
  'add-menu-button'?: (props: typeof __VLS_3) => any;
328
381
  } & {
329
- 'audio-recorder'?: (props: typeof __VLS_13) => any;
382
+ 'audio-recorder'?: (props: typeof __VLS_20) => any;
330
383
  } & {
331
- 'text-area'?: (props: typeof __VLS_24) => any;
384
+ 'text-area'?: (props: typeof __VLS_31) => any;
332
385
  } & {
333
- 'cancel-transcribe-button'?: (props: typeof __VLS_26) => any;
386
+ 'cancel-transcribe-button'?: (props: typeof __VLS_33) => any;
334
387
  } & {
335
- 'finish-transcribe-button'?: (props: typeof __VLS_32) => any;
388
+ 'finish-transcribe-button'?: (props: typeof __VLS_42) => any;
336
389
  } & {
337
- 'start-transcribe-button'?: (props: typeof __VLS_38) => any;
390
+ 'start-transcribe-button'?: (props: typeof __VLS_51) => any;
338
391
  } & {
339
- 'send-button'?: (props: typeof __VLS_44) => any;
392
+ 'send-button'?: (props: typeof __VLS_60) => any;
340
393
  } & {
341
- disclaimer?: (props: typeof __VLS_54) => any;
394
+ disclaimer?: (props: typeof __VLS_70) => any;
342
395
  };
343
396
  declare const __VLS_component: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
344
397
  stop: () => any;
@@ -1 +1 @@
1
- {"version":3,"file":"CopilotChatInput.vue.d.ts","sourceRoot":"","sources":["../../../../src/v2/components/chat/CopilotChatInput.vue"],"names":[],"mappings":"AA0xCA,OAAO,KAAK,EAAE,oBAAoB,EAAE,aAAa,EAAE,MAAM,SAAS,CAAC;AAInE,KAAK,SAAS,GAAG,aAAa,GAAG,GAAG,CAAC;AACrC,KAAK,gBAAgB,GACjB;IAAE,IAAI,EAAE,WAAW,CAAC;IAAC,GAAG,EAAE,MAAM,CAAA;CAAE,GAClC;IAAE,IAAI,EAAE,OAAO,CAAC;IAAC,GAAG,EAAE,MAAM,CAAC;IAAC,KAAK,EAAE,MAAM,CAAC;IAAC,KAAK,EAAE,MAAM,CAAA;CAAE,GAC5D;IACE,IAAI,EAAE,MAAM,CAAC;IACb,GAAG,EAAE,MAAM,CAAC;IACZ,KAAK,EAAE,MAAM,CAAC;IACd,KAAK,EAAE,MAAM,CAAC;IACd,MAAM,EAAE,MAAM,IAAI,CAAC;CACpB,CAAC;AAEN,KAAK,WAAW,GAAG;IACf,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,SAAS,CAAC,EAAE,OAAO,CAAC;IACpB,aAAa,CAAC,EAAE,OAAO,CAAC;IACxB,IAAI,CAAC,EAAE,oBAAoB,CAAC;IAC5B,SAAS,CAAC,EAAE,SAAS,EAAE,CAAC;IACxB,SAAS,CAAC,EAAE,OAAO,CAAC;IACpB,WAAW,CAAC,EAAE,QAAQ,GAAG,UAAU,CAAC;IACpC,cAAc,CAAC,EAAE,MAAM,CAAC;IACxB,cAAc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ChC,QAAO;QACN,MAAM,EAAE,CAAC,CAAC;KAEV,CAAA;CACD,CAAC"}
@@ -0,0 +1,12 @@
1
+ type __VLS_Props = {
2
+ /** Name of the menu item that inspects; defaults to the label. */
3
+ title?: string;
4
+ disabled?: boolean;
5
+ };
6
+ declare const _default: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
7
+ click: () => any;
8
+ }, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{
9
+ onClick?: (() => any) | undefined;
10
+ }>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
11
+ export default _default;
12
+ //# sourceMappingURL=CopilotChatInspectorButton.vue.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"CopilotChatInspectorButton.vue.d.ts","sourceRoot":"","sources":["../../../../src/v2/components/chat/CopilotChatInspectorButton.vue"],"names":[],"mappings":"AAqWA,KAAK,WAAW,GAAG;IACjB,kEAAkE;IAClE,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,QAAQ,CAAC,EAAE,OAAO,CAAC;CACpB,CAAC;;;;;;AAwdF,wBAOG"}
@@ -0,0 +1,22 @@
1
+ type __VLS_Props = {
2
+ /** Accessible name of the dialog, for example the file name. */
3
+ label?: string;
4
+ /** Where focus goes on close. Defaults to the element focused on open. */
5
+ returnFocusTo?: HTMLElement | null;
6
+ };
7
+ type __VLS_Slots = {
8
+ default(): unknown;
9
+ };
10
+ declare const __VLS_component: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
11
+ close: () => any;
12
+ }, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{
13
+ onClose?: (() => any) | undefined;
14
+ }>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
15
+ declare const _default: __VLS_WithSlots<typeof __VLS_component, __VLS_Slots>;
16
+ export default _default;
17
+ type __VLS_WithSlots<T, S> = T & {
18
+ new (): {
19
+ $slots: S;
20
+ };
21
+ };
22
+ //# sourceMappingURL=CopilotChatLightbox.vue.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"CopilotChatLightbox.vue.d.ts","sourceRoot":"","sources":["../../../../src/v2/components/chat/CopilotChatLightbox.vue"],"names":[],"mappings":"AAyHA,KAAK,WAAW,GAAG;IACjB,gEAAgE;IAChE,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,0EAA0E;IAC1E,aAAa,CAAC,EAAE,WAAW,GAAG,IAAI,CAAC;CACpC,CAAC;AAMF,KAAK,WAAW,GAAG;IAAE,OAAO,IAAI,OAAO,CAAA;CAAE,CAAC;AA8I1C,QAAA,MAAM,eAAe;;;;kFAOnB,CAAC;wBACkB,eAAe,CAAC,OAAO,eAAe,EAAE,WAAW,CAAC;AAAzE,wBAA0E;AAQ1E,KAAK,eAAe,CAAC,CAAC,EAAE,CAAC,IAAI,CAAC,GAAG;IAChC,QAAO;QACN,MAAM,EAAE,CAAC,CAAC;KAEV,CAAA;CACD,CAAC"}