@copilotkit/vue 2.0.0-rc.1 → 2.0.0-rc.10
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.
- package/PARITY.md +13 -12
- package/README.md +1 -2
- package/dist/components/copilot-provider/CopilotKit.vue.d.ts +3 -1
- package/dist/components/copilot-provider/CopilotKit.vue.d.ts.map +1 -1
- package/dist/hooks/use-copilot-action.d.ts.map +1 -1
- package/dist/hooks/use-frontend-tool.d.ts +1 -1
- package/dist/hooks/use-frontend-tool.d.ts.map +1 -1
- package/dist/hooks/zod-parameters.d.ts +14 -0
- package/dist/hooks/zod-parameters.d.ts.map +1 -0
- package/dist/index.cjs +1 -76
- package/dist/index.cjs.map +1 -1
- package/dist/index.mjs +384 -14275
- package/dist/index.mjs.map +1 -1
- package/dist/use-render-activity-message-CTR_ziWV.js +18097 -0
- package/dist/use-render-activity-message-CTR_ziWV.js.map +1 -0
- package/dist/use-render-activity-message-Dky9_GRG.cjs +92 -0
- package/dist/use-render-activity-message-Dky9_GRG.cjs.map +1 -0
- package/dist/v2/components/A2UIMessageRenderer.d.ts +7 -0
- package/dist/v2/components/A2UIMessageRenderer.d.ts.map +1 -1
- package/dist/v2/components/A2UISurfaceActivityRenderer.vue.d.ts.map +1 -1
- package/dist/v2/components/LicenseWarningBanner.vue.d.ts.map +1 -1
- package/dist/v2/components/OpenGenerativeUIRenderer.d.ts +13 -45
- package/dist/v2/components/OpenGenerativeUIRenderer.d.ts.map +1 -1
- package/dist/v2/components/a2ui/A2UIBuiltInToolCallRenderer.d.ts +11 -2
- package/dist/v2/components/a2ui/A2UIBuiltInToolCallRenderer.d.ts.map +1 -1
- package/dist/v2/components/a2ui/A2UICatalogContext.d.ts +1 -1
- package/dist/v2/components/a2ui/A2UICatalogContext.d.ts.map +1 -1
- package/dist/v2/components/a2ui/A2UIRecoveryStates.d.ts +144 -0
- package/dist/v2/components/a2ui/A2UIRecoveryStates.d.ts.map +1 -0
- package/dist/v2/components/a2ui.d.ts +3 -7
- package/dist/v2/components/a2ui.d.ts.map +1 -1
- package/dist/v2/components/chat/CopilotChat.vue.d.ts +1 -0
- package/dist/v2/components/chat/CopilotChat.vue.d.ts.map +1 -1
- package/dist/v2/components/chat/CopilotChatAssistantMessage.vue.d.ts +3 -1
- package/dist/v2/components/chat/CopilotChatAssistantMessage.vue.d.ts.map +1 -1
- package/dist/v2/components/chat/CopilotChatAssistantToolbarButton.vue.d.ts +16 -0
- package/dist/v2/components/chat/CopilotChatAssistantToolbarButton.vue.d.ts.map +1 -0
- package/dist/v2/components/chat/CopilotChatAttachmentQueue.vue.d.ts.map +1 -1
- package/dist/v2/components/chat/CopilotChatAttachmentRenderer.vue.d.ts.map +1 -1
- package/dist/v2/components/chat/CopilotChatAudioRecorder.vue.d.ts.map +1 -1
- package/dist/v2/components/chat/CopilotChatFeedbackCommentPopover.vue.d.ts +22 -0
- package/dist/v2/components/chat/CopilotChatFeedbackCommentPopover.vue.d.ts.map +1 -0
- package/dist/v2/components/chat/CopilotChatInput.vue.d.ts +21 -232
- package/dist/v2/components/chat/CopilotChatInput.vue.d.ts.map +1 -1
- package/dist/v2/components/chat/CopilotChatInspectorButton.vue.d.ts +12 -0
- package/dist/v2/components/chat/CopilotChatInspectorButton.vue.d.ts.map +1 -0
- package/dist/v2/components/chat/CopilotChatLightbox.vue.d.ts +22 -0
- package/dist/v2/components/chat/CopilotChatLightbox.vue.d.ts.map +1 -0
- package/dist/v2/components/chat/CopilotChatMessageView.vue.d.ts +20 -0
- package/dist/v2/components/chat/CopilotChatMessageView.vue.d.ts.map +1 -1
- package/dist/v2/components/chat/CopilotChatReasoningMessage.vue.d.ts.map +1 -1
- package/dist/v2/components/chat/CopilotChatSuggestionPill.vue.d.ts.map +1 -1
- package/dist/v2/components/chat/CopilotChatSuggestionView.vue.d.ts.map +1 -1
- package/dist/v2/components/chat/CopilotChatToggleButton.vue.d.ts.map +1 -1
- package/dist/v2/components/chat/CopilotChatToolCallGroup.vue.d.ts +32 -0
- package/dist/v2/components/chat/CopilotChatToolCallGroup.vue.d.ts.map +1 -0
- package/dist/v2/components/chat/CopilotChatToolCallItem.vue.d.ts.map +1 -1
- package/dist/v2/components/chat/CopilotChatToolCallsView.vue.d.ts +11 -1
- package/dist/v2/components/chat/CopilotChatToolCallsView.vue.d.ts.map +1 -1
- package/dist/v2/components/chat/CopilotChatUserMessage.vue.d.ts.map +1 -1
- package/dist/v2/components/chat/CopilotChatView.vue.d.ts +1 -0
- package/dist/v2/components/chat/CopilotChatView.vue.d.ts.map +1 -1
- package/dist/v2/components/chat/CopilotChatWorkSummary.vue.d.ts +5 -0
- package/dist/v2/components/chat/CopilotChatWorkSummary.vue.d.ts.map +1 -0
- package/dist/v2/components/chat/CopilotModalHeader.vue.d.ts.map +1 -1
- package/dist/v2/components/chat/CopilotModalHeaderCloseButton.d.ts.map +1 -1
- package/dist/v2/components/chat/CopilotModalHeaderTitle.d.ts.map +1 -1
- package/dist/v2/components/chat/CopilotPopup.vue.d.ts +1 -0
- package/dist/v2/components/chat/CopilotPopup.vue.d.ts.map +1 -1
- package/dist/v2/components/chat/CopilotPopupView.vue.d.ts +1 -0
- package/dist/v2/components/chat/CopilotPopupView.vue.d.ts.map +1 -1
- package/dist/v2/components/chat/CopilotPopupViewInternal.vue.d.ts +1 -0
- package/dist/v2/components/chat/CopilotPopupViewInternal.vue.d.ts.map +1 -1
- package/dist/v2/components/chat/CopilotPopupWelcomeScreen.vue.d.ts.map +1 -1
- package/dist/v2/components/chat/CopilotSidebar.vue.d.ts +2 -0
- package/dist/v2/components/chat/CopilotSidebar.vue.d.ts.map +1 -1
- package/dist/v2/components/chat/CopilotSidebarView.vue.d.ts +2 -0
- package/dist/v2/components/chat/CopilotSidebarView.vue.d.ts.map +1 -1
- package/dist/v2/components/chat/CopilotSidebarViewInternal.vue.d.ts +2 -0
- package/dist/v2/components/chat/CopilotSidebarViewInternal.vue.d.ts.map +1 -1
- package/dist/v2/components/chat/CopilotSidebarWelcomeScreen.vue.d.ts.map +1 -1
- package/dist/v2/components/chat/StreamingMarkdownDefault.vue.d.ts.map +1 -1
- package/dist/v2/components/chat/copilotChatToolCallItemRender.d.ts +0 -1
- package/dist/v2/components/chat/copilotChatToolCallItemRender.d.ts.map +1 -1
- package/dist/v2/components/chat/index.d.ts +17 -1
- package/dist/v2/components/chat/index.d.ts.map +1 -1
- package/dist/v2/components/chat/inspector-shortcuts.d.ts +12 -0
- package/dist/v2/components/chat/inspector-shortcuts.d.ts.map +1 -0
- package/dist/v2/components/chat/message-feedback.d.ts +89 -0
- package/dist/v2/components/chat/message-feedback.d.ts.map +1 -0
- package/dist/v2/components/chat/tool-call-capture.d.ts +39 -0
- package/dist/v2/components/chat/tool-call-capture.d.ts.map +1 -0
- package/dist/v2/components/chat/tool-call-display-context.d.ts +22 -0
- package/dist/v2/components/chat/tool-call-display-context.d.ts.map +1 -0
- package/dist/v2/components/chat/tool-call-group-parts.d.ts +131 -0
- package/dist/v2/components/chat/tool-call-group-parts.d.ts.map +1 -0
- package/dist/v2/components/chat/turn-work.d.ts +33 -0
- package/dist/v2/components/chat/turn-work.d.ts.map +1 -0
- package/dist/v2/components/chat/types.d.ts +104 -5
- package/dist/v2/components/chat/types.d.ts.map +1 -1
- package/dist/v2/components/chat/use-chat-labels.d.ts +8 -0
- package/dist/v2/components/chat/use-chat-labels.d.ts.map +1 -0
- package/dist/v2/components/chat/use-lightbox.d.ts +18 -0
- package/dist/v2/components/chat/use-lightbox.d.ts.map +1 -0
- package/dist/v2/components/icons/index.d.ts +968 -1
- package/dist/v2/components/icons/index.d.ts.map +1 -1
- package/dist/v2/components/ui/CopilotDropdownMenuContent.vue.d.ts +55 -0
- package/dist/v2/components/ui/CopilotDropdownMenuContent.vue.d.ts.map +1 -0
- package/dist/v2/components/ui/CopilotPopover.vue.d.ts +40 -0
- package/dist/v2/components/ui/CopilotPopover.vue.d.ts.map +1 -0
- package/dist/v2/components/ui/CopilotTooltip.vue.d.ts +37 -0
- package/dist/v2/components/ui/CopilotTooltip.vue.d.ts.map +1 -0
- package/dist/v2/components/ui/dropdown-menu.d.ts +14 -0
- package/dist/v2/components/ui/dropdown-menu.d.ts.map +1 -0
- package/dist/v2/components/ui/floating.d.ts +84 -0
- package/dist/v2/components/ui/floating.d.ts.map +1 -0
- package/dist/v2/components/ui/presence.d.ts +9 -0
- package/dist/v2/components/ui/presence.d.ts.map +1 -0
- package/dist/v2/components/ui/use-id.d.ts +9 -0
- package/dist/v2/components/ui/use-id.d.ts.map +1 -0
- package/dist/v2/hooks/use-default-render-tool.d.ts +6 -0
- package/dist/v2/hooks/use-default-render-tool.d.ts.map +1 -1
- package/dist/v2/hooks/use-frontend-tool.d.ts +5 -0
- package/dist/v2/hooks/use-frontend-tool.d.ts.map +1 -1
- package/dist/v2/hooks/use-render-activity-message.d.ts +13 -9
- package/dist/v2/hooks/use-render-activity-message.d.ts.map +1 -1
- package/dist/v2/hooks/use-render-custom-messages.d.ts +5 -7
- package/dist/v2/hooks/use-render-custom-messages.d.ts.map +1 -1
- package/dist/v2/hooks/use-render-tool.d.ts +4 -0
- package/dist/v2/hooks/use-render-tool.d.ts.map +1 -1
- package/dist/v2/index.cjs +1 -1
- package/dist/v2/index.d.cts +3 -0
- package/dist/v2/index.d.mts +3 -0
- package/dist/v2/index.d.ts +3 -0
- package/dist/v2/index.d.ts.map +1 -1
- package/dist/v2/index.mjs +197 -197
- package/dist/v2/index.mjs.map +1 -1
- package/dist/v2/lib/message-feedback.d.ts +33 -0
- package/dist/v2/lib/message-feedback.d.ts.map +1 -0
- package/dist/v2/lib/processPartialHtml.d.ts +1 -2
- package/dist/v2/lib/processPartialHtml.d.ts.map +1 -1
- package/dist/v2/lib/vue-core.d.ts +0 -1
- package/dist/v2/lib/vue-core.d.ts.map +1 -1
- package/dist/v2/providers/CopilotChatConfigurationProvider.vue.d.ts.map +1 -1
- package/dist/v2/providers/CopilotKitProvider.types.d.ts +56 -6
- package/dist/v2/providers/CopilotKitProvider.types.d.ts.map +1 -1
- package/dist/v2/providers/CopilotKitProvider.vue.d.ts +6 -2
- package/dist/v2/providers/CopilotKitProvider.vue.d.ts.map +1 -1
- package/dist/v2/providers/index.d.ts +1 -1
- package/dist/v2/providers/index.d.ts.map +1 -1
- package/dist/v2/providers/keys.d.ts +8 -0
- package/dist/v2/providers/keys.d.ts.map +1 -1
- package/dist/v2/providers/types.d.ts +3 -37
- package/dist/v2/providers/types.d.ts.map +1 -1
- package/dist/v2/styles/CopilotKitStyles.d.ts +18 -0
- package/dist/v2/styles/CopilotKitStyles.d.ts.map +1 -0
- package/dist/v2/types/defineToolCallRenderer.d.ts +2 -0
- package/dist/v2/types/defineToolCallRenderer.d.ts.map +1 -1
- package/dist/v2/types/human-in-the-loop.d.ts +8 -29
- package/dist/v2/types/human-in-the-loop.d.ts.map +1 -1
- package/dist/v2/types/interrupt.d.ts +1 -22
- package/dist/v2/types/interrupt.d.ts.map +1 -1
- package/dist/v2/types/vue-activity-message-renderer.d.ts +16 -15
- package/dist/v2/types/vue-activity-message-renderer.d.ts.map +1 -1
- package/dist/v2/types/vue-custom-message-renderer.d.ts +7 -16
- package/dist/v2/types/vue-custom-message-renderer.d.ts.map +1 -1
- package/dist/v2/types/vue-tool-call-renderer.d.ts +16 -28
- package/dist/v2/types/vue-tool-call-renderer.d.ts.map +1 -1
- package/package.json +14 -27
- package/src/__tests__/build-entries.test.ts +27 -0
- package/src/components/copilot-provider/CopilotKit.vue +4 -1
- package/src/hooks/__tests__/zod-parameters.test.ts +520 -0
- package/src/hooks/use-copilot-action.ts +2 -1
- package/src/hooks/use-frontend-tool.ts +3 -6
- package/src/hooks/zod-parameters.ts +162 -0
- package/src/v2/__tests__/exports.test.ts +4 -2
- package/src/v2/components/A2UIMessageRenderer.ts +56 -68
- package/src/v2/components/A2UISurfaceActivityRenderer.vue +11 -23
- package/src/v2/components/LicenseWarningBanner.vue +31 -15
- package/src/v2/components/OpenGenerativeUIRenderer.ts +51 -373
- package/src/v2/components/__tests__/A2UIBasicCatalogColors.test.ts +8 -9
- package/src/v2/components/__tests__/A2UICatalogContext.test.ts +1 -1
- package/src/v2/components/__tests__/A2UIMessageRenderer.test.ts +63 -36
- package/src/v2/components/__tests__/LicenseWarningBanner.test.ts +20 -0
- package/src/v2/components/__tests__/OpenGenerativeUIRenderer.test.ts +55 -6
- package/src/v2/components/a2ui/A2UIBuiltInToolCallRenderer.ts +15 -258
- package/src/v2/components/a2ui/A2UICatalogContext.ts +10 -102
- package/src/v2/components/a2ui/A2UIRecoveryStates.ts +444 -0
- package/src/v2/components/a2ui/__tests__/A2UIRecoveryStates.test.ts +175 -0
- package/src/v2/components/a2ui.ts +1 -1
- package/src/v2/components/chat/CopilotChat.vue +26 -40
- package/src/v2/components/chat/CopilotChatAssistantMessage.vue +267 -67
- package/src/v2/components/chat/CopilotChatAssistantToolbarButton.vue +46 -0
- package/src/v2/components/chat/CopilotChatAttachmentQueue.vue +150 -173
- package/src/v2/components/chat/CopilotChatAttachmentRenderer.vue +77 -20
- package/src/v2/components/chat/CopilotChatAudioRecorder.vue +2 -2
- package/src/v2/components/chat/CopilotChatFeedbackCommentPopover.vue +240 -0
- package/src/v2/components/chat/CopilotChatInput.vue +250 -191
- package/src/v2/components/chat/CopilotChatInspectorButton.vue +331 -0
- package/src/v2/components/chat/CopilotChatLightbox.vue +105 -0
- package/src/v2/components/chat/CopilotChatMessageView.vue +262 -87
- package/src/v2/components/chat/CopilotChatReasoningMessage.vue +52 -35
- package/src/v2/components/chat/CopilotChatSuggestionPill.vue +5 -14
- package/src/v2/components/chat/CopilotChatSuggestionView.vue +1 -4
- package/src/v2/components/chat/CopilotChatToggleButton.vue +3 -9
- package/src/v2/components/chat/CopilotChatToggleButtonCloseIcon.ts +1 -1
- package/src/v2/components/chat/CopilotChatToggleButtonOpenIcon.ts +1 -1
- package/src/v2/components/chat/CopilotChatToolCallGroup.vue +353 -0
- package/src/v2/components/chat/CopilotChatToolCallItem.vue +24 -14
- package/src/v2/components/chat/CopilotChatToolCallsView.vue +194 -21
- package/src/v2/components/chat/CopilotChatUserMessage.vue +105 -42
- package/src/v2/components/chat/CopilotChatView.vue +37 -42
- package/src/v2/components/chat/CopilotChatWorkSummary.vue +111 -0
- package/src/v2/components/chat/CopilotModalHeader.vue +10 -8
- package/src/v2/components/chat/CopilotModalHeaderCloseButton.ts +7 -6
- package/src/v2/components/chat/CopilotModalHeaderTitle.ts +1 -4
- package/src/v2/components/chat/CopilotPopup.vue +3 -0
- package/src/v2/components/chat/CopilotPopupView.vue +1 -0
- package/src/v2/components/chat/CopilotPopupViewInternal.vue +9 -19
- package/src/v2/components/chat/CopilotPopupWelcomeScreen.vue +5 -8
- package/src/v2/components/chat/CopilotSidebar.vue +5 -0
- package/src/v2/components/chat/CopilotSidebarView.vue +2 -0
- package/src/v2/components/chat/CopilotSidebarViewInternal.vue +24 -17
- package/src/v2/components/chat/CopilotSidebarWelcomeScreen.vue +7 -10
- package/src/v2/components/chat/StreamingMarkdownDefault.vue +3 -5
- package/src/v2/components/chat/__tests__/CopilotChat.labels.test.ts +19 -4
- package/src/v2/components/chat/__tests__/CopilotChatActivityRendering.e2e.test.ts +26 -9
- package/src/v2/components/chat/__tests__/CopilotChatAssistantMessage.inspector.test.ts +269 -0
- package/src/v2/components/chat/__tests__/CopilotChatAssistantMessage.learningFeedback.test.ts +760 -0
- package/src/v2/components/chat/__tests__/CopilotChatAssistantMessage.slots.e2e.test.ts +3 -5
- package/src/v2/components/chat/__tests__/CopilotChatAssistantMessage.test.ts +2 -2
- package/src/v2/components/chat/__tests__/CopilotChatInput.addMenu.test.ts +328 -0
- package/src/v2/components/chat/__tests__/CopilotChatInput.slots.e2e.test.ts +6 -3
- package/src/v2/components/chat/__tests__/CopilotChatInput.test.ts +55 -14
- package/src/v2/components/chat/__tests__/CopilotChatLightbox.test.ts +160 -0
- package/src/v2/components/chat/__tests__/CopilotChatMessageView.test.ts +247 -403
- package/src/v2/components/chat/__tests__/CopilotChatMessageView.toolCallDisplay.test.ts +637 -0
- package/src/v2/components/chat/__tests__/CopilotChatSuggestionPill.test.ts +1 -1
- package/src/v2/components/chat/__tests__/CopilotChatSuggestionView.slots.e2e.test.ts +3 -1
- package/src/v2/components/chat/__tests__/CopilotChatToolCallsView.learning.test.ts +75 -0
- package/src/v2/components/chat/__tests__/CopilotChatUserMessage.attachments.test.ts +143 -0
- package/src/v2/components/chat/__tests__/CopilotChatView.inputOverlay.test.ts +5 -4
- package/src/v2/components/chat/__tests__/CopilotChatView.rootWidth.test.ts +7 -33
- package/src/v2/components/chat/__tests__/CopilotModalHeader.slots.e2e.test.ts +1 -1
- package/src/v2/components/chat/__tests__/CopilotPopupView.slots.e2e.test.ts +3 -3
- package/src/v2/components/chat/__tests__/CopilotSidebarView.position.test.ts +126 -0
- package/src/v2/components/chat/__tests__/messageFeedbackDefaults.test.ts +33 -0
- package/src/v2/components/chat/__tests__/modalChatDisplayProps.test.ts +44 -0
- package/src/v2/components/chat/copilotChatToolCallItemRender.ts +3 -19
- package/src/v2/components/chat/index.ts +2 -1
- package/src/v2/components/chat/inspector-shortcuts.ts +34 -0
- package/src/v2/components/chat/message-feedback.ts +291 -0
- package/src/v2/components/chat/tool-call-capture.ts +55 -0
- package/src/v2/components/chat/tool-call-display-context.ts +28 -0
- package/src/v2/components/chat/tool-call-group-parts.ts +251 -0
- package/src/v2/components/chat/turn-work.ts +52 -0
- package/src/v2/components/chat/types.ts +114 -4
- package/src/v2/components/chat/use-chat-labels.ts +16 -0
- package/src/v2/components/chat/use-lightbox.ts +64 -0
- package/src/v2/components/icons/__tests__/icons.test.ts +72 -68
- package/src/v2/components/icons/index.ts +109 -23
- package/src/v2/components/ui/CopilotDropdownMenuContent.vue +465 -0
- package/src/v2/components/ui/CopilotPopover.vue +138 -0
- package/src/v2/components/ui/CopilotTooltip.vue +237 -0
- package/src/v2/components/ui/__tests__/CopilotTooltip.test.ts +168 -0
- package/src/v2/components/ui/dropdown-menu.ts +15 -0
- package/src/v2/components/ui/floating.ts +321 -0
- package/src/v2/components/ui/presence.ts +54 -0
- package/src/v2/components/ui/use-id.ts +16 -0
- package/src/v2/hooks/__tests__/use-frontend-tool.e2e.test.ts +62 -1
- package/src/v2/hooks/__tests__/use-render-activity-message.test.ts +105 -0
- package/src/v2/hooks/__tests__/use-render-tool.test.ts +3 -6
- package/src/v2/hooks/__tests__/zod-regression.test.ts +5 -4
- package/src/v2/hooks/use-default-render-tool.ts +123 -62
- package/src/v2/hooks/use-frontend-tool.ts +10 -10
- package/src/v2/hooks/use-render-activity-message.ts +27 -48
- package/src/v2/hooks/use-render-custom-messages.ts +14 -35
- package/src/v2/hooks/use-render-tool.ts +8 -0
- package/src/v2/index.ts +3 -0
- package/src/v2/lib/__tests__/message-feedback.test.ts +152 -0
- package/src/v2/lib/message-feedback.ts +120 -0
- package/src/v2/lib/processPartialHtml.ts +6 -21
- package/src/v2/lib/vue-core.ts +3 -5
- package/src/v2/providers/CopilotChatConfigurationProvider.vue +29 -2
- package/src/v2/providers/CopilotKitProvider.types.ts +57 -5
- package/src/v2/providers/CopilotKitProvider.vue +177 -114
- package/src/v2/providers/__tests__/CopilotChatConfigurationProvider.openThread.test.ts +69 -0
- package/src/v2/providers/__tests__/CopilotKitProvider.a2ui.test.ts +1 -1
- package/src/v2/providers/__tests__/CopilotKitProvider.headersAtSendTime.test.ts +3 -3
- package/src/v2/providers/__tests__/CopilotKitProvider.learning.test.ts +536 -0
- package/src/v2/providers/__tests__/CopilotKitProvider.test.ts +17 -33
- package/src/v2/providers/index.ts +4 -1
- package/src/v2/providers/keys.ts +12 -0
- package/src/v2/providers/types.ts +3 -38
- package/src/v2/styles/CopilotKitStyles.ts +95 -0
- package/src/v2/styles/__tests__/CopilotKitStyles.client.test.ts +149 -0
- package/src/v2/styles/__tests__/CopilotKitStyles.ssr.test.ts +71 -0
- package/src/v2/types/__tests__/defineToolCallRenderer.test.ts +28 -33
- package/src/v2/types/defineToolCallRenderer.ts +9 -4
- package/src/v2/types/human-in-the-loop.ts +8 -32
- package/src/v2/types/interrupt.ts +7 -31
- package/src/v2/types/vue-activity-message-renderer.ts +24 -15
- package/src/v2/types/vue-custom-message-renderer.ts +12 -16
- package/src/v2/types/vue-tool-call-renderer.ts +23 -31
- package/vite.config.ts +5 -5
- package/dist/styles.css +0 -2
- package/dist/v2/components/chat/BasicMarkdown.vue.d.ts +0 -9
- package/dist/v2/components/chat/BasicMarkdown.vue.d.ts.map +0 -1
- package/dist/v2/lib/transcription-client.d.ts +0 -19
- package/dist/v2/lib/transcription-client.d.ts.map +0 -1
- package/scripts/scope-preflight.mjs +0 -100
- package/src/styles/globals.css +0 -233
- package/src/v2/components/chat/BasicMarkdown.vue +0 -158
- package/src/v2/components/chat/__tests__/BasicMarkdown.test.ts +0 -69
- package/src/v2/lib/__tests__/processPartialHtml.test.ts +0 -84
- package/src/v2/lib/__tests__/transcription-client.test.ts +0 -67
- package/src/v2/lib/transcription-client.ts +0 -151
package/dist/v2/index.mjs
CHANGED
|
@@ -1,201 +1,201 @@
|
|
|
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";
|
|
2
|
-
export * from "@ag-ui/client";
|
|
3
|
-
import { PROTOCOL_VERSION as xa } from "@ag-ui/client";
|
|
4
1
|
export * from "@copilotkit/core";
|
|
5
|
-
import {
|
|
6
|
-
|
|
2
|
+
import { CopilotChatDefaultLabels as s, ɵextractCompleteStyles as n, ɵprocessPartialHtml as o } from "@copilotkit/core";
|
|
3
|
+
export * from "@ag-ui/client";
|
|
4
|
+
import { PROTOCOL_VERSION as S } from "@ag-ui/client";
|
|
5
|
+
import { A as m, _ as r, a as u, b as l, c as p, d as C, e as b, f as g, g as d, h as v, i as E, i as R, i as I, B as M, j as A, C as T, k as y, l as O, m as x, n as P, o as f, p as U, q as V, r as D, s as F, t as w, u as K, v as L, w as k, x as G, y as B, z as H, D as J, E as N, F as W, G as _, H as j, I as q, J as z, K as Q, L as Y, M as X, N as Z, O as $, P as aa, Q as ea, R as ta, S as sa, T as na, U as oa, V as ia, V as ca, V as Sa, W as ha, W as ma, X as ra, Y as ua, Z as la, $ as pa, a0 as Ca, a1 as ba, a2 as ga, a3 as da, a3 as va, a3 as Ea, T as Ra, C as Ia, a4 as Ma, a5 as Aa, a6 as Ta, a7 as ya, a8 as Oa, a9 as xa, aa as Pa, ab as fa, ac as Ua, ad as Va, ae as Da, af as Fa, ag as wa, ah as Ka, ai as La, aj as ka, ak as Ga, al as Ba, am as Ha, an as Ja, ao as Na, ap as Wa, aq as _a, ar as ja, a4 as qa, as as za, at as Qa, au as Ya, av as Xa, aw as Za, ax as $a, ay as ae, az as ee, aA as te, aB as se, aC as ne, aD as oe, aE as ie, aF as ce, aG as Se, aH as he, aI as me, aJ as re, aK as ue, aL as le, aM as pe, aN as Ce, aO as be, aP as ge, aQ as de, aR as ve, aS as Ee, aT as Re, aU as Ie, aV as Me, aW as Ae, aX as Te, aY as ye, aZ as Oe, a_ as xe, a$ as Pe, b0 as fe, b1 as Ue, b2 as Ve, b3 as De, b4 as Fe, b5 as we, b6 as Ke, b7 as Le, b8 as ke, b9 as Ge, b4 as Be, ba as He, bb as Je, bc as Ne, bd as We, be as _e, bf as je, bg as qe, bh as ze, bi as Qe, bj as Ye, bk as Xe, a5 as Ze, bl as $e, bm as at, bn as et, bn as tt, bn as st, bo as nt, bp as ot, bq as it, br as ct, bs as St, bt as ht, bu as mt, bv as rt, bw as ut, bx as lt, by as pt, bz as Ct, bA as bt, bB as gt, bC as dt, bD as vt, bE as Et, bF as Rt, bG as It, bH as Mt, bI as At, bJ as Tt, bK as yt, bL as Ot, bM as xt, bN as Pt, bO as ft } from "../use-render-activity-message-CTR_ziWV.js";
|
|
6
|
+
import { MCPAppsActivityContentSchema as Vt, MCPAppsActivityType as Dt, ɵrunMcpFollowUp as Ft } from "@copilotkit/mcp-apps-renderer/activity";
|
|
7
|
+
import { createLicenseContextValue as Kt } from "@copilotkit/shared";
|
|
7
8
|
export {
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
Fa as ɵrunMcpFollowUp
|
|
9
|
+
m as A2UIActivityContentSchema,
|
|
10
|
+
r as A2UISurfaceActivityRenderer,
|
|
11
|
+
u as A2UISurfaceActivityType,
|
|
12
|
+
l as ActivityDeltaEventSchema,
|
|
13
|
+
p as ActivityMessageSchema,
|
|
14
|
+
C as ActivitySnapshotEventSchema,
|
|
15
|
+
b as AddOperationSchema,
|
|
16
|
+
g as AgentCapabilitiesSchema,
|
|
17
|
+
d as AssistantMessageSchema,
|
|
18
|
+
v as AttributableSchema,
|
|
19
|
+
E as AudioInputContentSchema,
|
|
20
|
+
R as AudioInputPartSchema,
|
|
21
|
+
I as AudioPartSchema,
|
|
22
|
+
M as BaseEventSchema,
|
|
23
|
+
A as BaseMessageSchema,
|
|
24
|
+
T as ContentPartSchema,
|
|
25
|
+
y as ContextSchema,
|
|
26
|
+
O as CopilotChat,
|
|
27
|
+
x as CopilotChatAssistantMessage,
|
|
28
|
+
P as CopilotChatAttachmentQueue,
|
|
29
|
+
f as CopilotChatAttachmentRenderer,
|
|
30
|
+
U as CopilotChatAudioRecorder,
|
|
31
|
+
V as CopilotChatConfigurationProvider,
|
|
32
|
+
s as CopilotChatDefaultLabels,
|
|
33
|
+
D as CopilotChatInput,
|
|
34
|
+
F as CopilotChatMessageView,
|
|
35
|
+
w as CopilotChatReasoningMessage,
|
|
36
|
+
K as CopilotChatSuggestionPill,
|
|
37
|
+
L as CopilotChatSuggestionView,
|
|
38
|
+
k as CopilotChatToggleButton,
|
|
39
|
+
G as CopilotChatToggleButtonCloseIcon,
|
|
40
|
+
B as CopilotChatToggleButtonOpenIcon,
|
|
41
|
+
H as CopilotChatToolCallGroup,
|
|
42
|
+
J as CopilotChatToolCallsView,
|
|
43
|
+
N as CopilotChatUserMessage,
|
|
44
|
+
W as CopilotChatView,
|
|
45
|
+
_ as CopilotChatWorkSummary,
|
|
46
|
+
j as CopilotKitCoreVue,
|
|
47
|
+
q as CopilotKitInspector,
|
|
48
|
+
z as CopilotKitProvider,
|
|
49
|
+
Q as CopilotKitStyles,
|
|
50
|
+
Y as CopilotModalHeader,
|
|
51
|
+
X as CopilotPopup,
|
|
52
|
+
Z as CopilotPopupView,
|
|
53
|
+
$ as CopilotSidebar,
|
|
54
|
+
aa as CopilotSidebarView,
|
|
55
|
+
ea as CopilotThreadsDrawer,
|
|
56
|
+
ta as CopyOperationSchema,
|
|
57
|
+
sa as CustomEventSchema,
|
|
58
|
+
na as DataSourceSchema,
|
|
59
|
+
oa as DeveloperMessageSchema,
|
|
60
|
+
ia as DocumentInputContentSchema,
|
|
61
|
+
ca as DocumentInputPartSchema,
|
|
62
|
+
Sa as DocumentPartSchema,
|
|
63
|
+
ha as EventSchema,
|
|
64
|
+
ma as EventSchemas,
|
|
65
|
+
ra as EventTypeSchema,
|
|
66
|
+
ua as ExecutionCapabilitiesSchema,
|
|
67
|
+
la as FileSourceSchema,
|
|
68
|
+
pa as FunctionCallSchema,
|
|
69
|
+
Ca as GenerateSandboxedUiArgsSchema,
|
|
70
|
+
ba as HumanInTheLoopCapabilitiesSchema,
|
|
71
|
+
ga as IdentityCapabilitiesSchema,
|
|
72
|
+
da as ImageInputContentSchema,
|
|
73
|
+
va as ImageInputPartSchema,
|
|
74
|
+
Ea as ImagePartSchema,
|
|
75
|
+
Ra as InputContentDataSourceSchema,
|
|
76
|
+
Ia as InputContentSchema,
|
|
77
|
+
Ma as InputContentSourceSchema,
|
|
78
|
+
Aa as InputContentUrlSourceSchema,
|
|
79
|
+
Ta as InterruptSchema,
|
|
80
|
+
ya as JsonPatchOperationSchema,
|
|
81
|
+
Oa as JsonPatchSchema,
|
|
82
|
+
xa as JsonPointerSchema,
|
|
83
|
+
Pa as LicenseContextKey,
|
|
84
|
+
fa as MARKDOWN_RENDERER_KEY,
|
|
85
|
+
Vt as MCPAppsActivityContentSchema,
|
|
86
|
+
Ua as MCPAppsActivityRenderer,
|
|
87
|
+
Dt as MCPAppsActivityType,
|
|
88
|
+
Va as MessageSchema,
|
|
89
|
+
Da as MessagesSnapshotEventSchema,
|
|
90
|
+
Fa as MetadataSchema,
|
|
91
|
+
wa as MoveOperationSchema,
|
|
92
|
+
Ka as MultiAgentCapabilitiesSchema,
|
|
93
|
+
La as MultimodalCapabilitiesSchema,
|
|
94
|
+
ka as MultimodalInputCapabilitiesSchema,
|
|
95
|
+
Ga as MultimodalOutputCapabilitiesSchema,
|
|
96
|
+
Ba as OpenGenerativeUIActivityRenderer,
|
|
97
|
+
Ha as OpenGenerativeUIActivityType,
|
|
98
|
+
Ja as OpenGenerativeUIContentSchema,
|
|
99
|
+
Na as OpenGenerativeUIRenderer,
|
|
100
|
+
Wa as OpenGenerativeUIToolRenderer,
|
|
101
|
+
_a as OptionalMetadataSchema,
|
|
102
|
+
ja as OutputCapabilitiesSchema,
|
|
103
|
+
S as PROTOCOL_VERSION,
|
|
104
|
+
qa as PartSourceSchema,
|
|
105
|
+
za as RawEventSchema,
|
|
106
|
+
Qa as ReasoningCapabilitiesSchema,
|
|
107
|
+
Ya as ReasoningEncryptedValueEventSchema,
|
|
108
|
+
Xa as ReasoningEncryptedValueSubtypeSchema,
|
|
109
|
+
Za as ReasoningEndEventSchema,
|
|
110
|
+
$a as ReasoningMessageChunkEventSchema,
|
|
111
|
+
ae as ReasoningMessageContentEventSchema,
|
|
112
|
+
ee as ReasoningMessageEndEventSchema,
|
|
113
|
+
te as ReasoningMessageSchema,
|
|
114
|
+
se as ReasoningMessageStartEventSchema,
|
|
115
|
+
ne as ReasoningStartEventSchema,
|
|
116
|
+
oe as RemoveOperationSchema,
|
|
117
|
+
ie as ReplaceOperationSchema,
|
|
118
|
+
ce as ResumeEntrySchema,
|
|
119
|
+
Se as RoleSchema,
|
|
120
|
+
he as RunAgentInputSchema,
|
|
121
|
+
me as RunErrorEventSchema,
|
|
122
|
+
re as RunFinishedCancelledOutcomeSchema,
|
|
123
|
+
ue as RunFinishedEventSchema,
|
|
124
|
+
le as RunFinishedInterruptOutcomeSchema,
|
|
125
|
+
pe as RunFinishedOutcomeSchema,
|
|
126
|
+
Ce as RunFinishedSuccessOutcomeSchema,
|
|
127
|
+
be as RunStartedEventSchema,
|
|
128
|
+
ge as StateCapabilitiesSchema,
|
|
129
|
+
de as StateDeltaEventSchema,
|
|
130
|
+
ve as StateSchema,
|
|
131
|
+
Ee as StateSnapshotEventSchema,
|
|
132
|
+
Re as StepFinishedEventSchema,
|
|
133
|
+
Ie as StepStartedEventSchema,
|
|
134
|
+
Me as StreamingMarkdownDefault,
|
|
135
|
+
Ae as SubagentErrorEventSchema,
|
|
136
|
+
Te as SubagentFinishedEventSchema,
|
|
137
|
+
ye as SubagentFinishedOutcomeSchema,
|
|
138
|
+
Oe as SubagentFinishedSuccessOutcomeSchema,
|
|
139
|
+
xe as SubagentFinishedSuspendedOutcomeSchema,
|
|
140
|
+
Pe as SubagentInfoSchema,
|
|
141
|
+
fe as SubagentRunIdSchema,
|
|
142
|
+
Ue as SubagentStartedEventSchema,
|
|
143
|
+
Ve as SystemMessageSchema,
|
|
144
|
+
De as TestOperationSchema,
|
|
145
|
+
Fe as TextInputContentSchema,
|
|
146
|
+
we as TextMessageChunkEventSchema,
|
|
147
|
+
Ke as TextMessageContentEventSchema,
|
|
148
|
+
Le as TextMessageEndEventSchema,
|
|
149
|
+
ke as TextMessageRoleSchema,
|
|
150
|
+
Ge as TextMessageStartEventSchema,
|
|
151
|
+
Be as TextPartSchema,
|
|
152
|
+
He as TokenUsageSchema,
|
|
153
|
+
Je as ToolCallArgsEventSchema,
|
|
154
|
+
Ne as ToolCallChunkEventSchema,
|
|
155
|
+
We as ToolCallEndEventSchema,
|
|
156
|
+
_e as ToolCallResultEventSchema,
|
|
157
|
+
je as ToolCallSchema,
|
|
158
|
+
qe as ToolCallStartEventSchema,
|
|
159
|
+
ze as ToolMessageSchema,
|
|
160
|
+
Qe as ToolSchema,
|
|
161
|
+
Ye as ToolsCapabilitiesSchema,
|
|
162
|
+
Xe as TransportCapabilitiesSchema,
|
|
163
|
+
Ze as UrlSourceSchema,
|
|
164
|
+
$e as UseAgentUpdate,
|
|
165
|
+
at as UserMessageSchema,
|
|
166
|
+
et as VideoInputContentSchema,
|
|
167
|
+
tt as VideoInputPartSchema,
|
|
168
|
+
st as VideoPartSchema,
|
|
169
|
+
nt as createA2UIMessageRenderer,
|
|
170
|
+
ot as createDefaultLicenseRef,
|
|
171
|
+
Kt as createLicenseContextValue,
|
|
172
|
+
it as defineToolCallRenderer,
|
|
173
|
+
n as extractCompleteStyles,
|
|
174
|
+
ct as getOperationSurfaceId,
|
|
175
|
+
St as isVueComponentRenderer,
|
|
176
|
+
o as processPartialHtml,
|
|
177
|
+
ht as useAgent,
|
|
178
|
+
mt as useAgentContext,
|
|
179
|
+
rt as useAttachments,
|
|
180
|
+
ut as useCapabilities,
|
|
181
|
+
lt as useComponent,
|
|
182
|
+
pt as useConfigureSuggestions,
|
|
183
|
+
Ct as useCopilotChatConfiguration,
|
|
184
|
+
bt as useCopilotKit,
|
|
185
|
+
gt as useDefaultRenderTool,
|
|
186
|
+
dt as useFrontendTool,
|
|
187
|
+
vt as useHumanInTheLoop,
|
|
188
|
+
Et as useInterrupt,
|
|
189
|
+
Rt as useKeyboardHeight,
|
|
190
|
+
It as useLicenseContext,
|
|
191
|
+
Mt as useMarkdownRenderer,
|
|
192
|
+
At as useRenderActivityMessage,
|
|
193
|
+
Tt as useRenderCustomMessages,
|
|
194
|
+
yt as useRenderTool,
|
|
195
|
+
Ot as useSandboxFunctions,
|
|
196
|
+
xt as useSuggestions,
|
|
197
|
+
Pt as useThreads,
|
|
198
|
+
ft as vueBasicCatalog,
|
|
199
|
+
Ft as ɵrunMcpFollowUp
|
|
200
200
|
};
|
|
201
201
|
//# sourceMappingURL=index.mjs.map
|
package/dist/v2/index.mjs.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.mjs","sources":[],"sourcesContent":[],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.mjs","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;"}
|
|
@@ -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,3 +1,2 @@
|
|
|
1
|
-
export
|
|
2
|
-
export declare function processPartialHtml(html: string): string;
|
|
1
|
+
export { ɵextractCompleteStyles as extractCompleteStyles, ɵprocessPartialHtml as processPartialHtml, } from "@copilotkit/core";
|
|
3
2
|
//# sourceMappingURL=processPartialHtml.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"processPartialHtml.d.ts","sourceRoot":"","sources":["../../../src/v2/lib/processPartialHtml.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"processPartialHtml.d.ts","sourceRoot":"","sources":["../../../src/v2/lib/processPartialHtml.ts"],"names":[],"mappings":"AAEA,OAAO,EACL,sBAAsB,IAAI,qBAAqB,EAC/C,mBAAmB,IAAI,kBAAkB,GAC1C,MAAM,kBAAkB,CAAC"}
|
|
@@ -42,6 +42,5 @@ export declare class CopilotKitCoreVue extends CopilotKitCore {
|
|
|
42
42
|
private _notifyRenderToolCallsChanged;
|
|
43
43
|
setInterruptState(interruptState: InterruptRenderProps<unknown, unknown> | null): void;
|
|
44
44
|
subscribe(subscriber: CopilotKitCoreVueSubscriber): CopilotKitCoreSubscription;
|
|
45
|
-
waitForPendingFrameworkUpdates(): Promise<void>;
|
|
46
45
|
}
|
|
47
46
|
//# sourceMappingURL=vue-core.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"vue-core.d.ts","sourceRoot":"","sources":["../../../src/v2/lib/vue-core.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EACV,0BAA0B,EAC1B,mBAAmB,EACnB,wBAAwB,EACzB,MAAM,UAAU,CAAC;AAClB,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,oBAAoB,CAAC;AAC/D,OAAO,EAAE,cAAc,EAAE,MAAM,kBAAkB,CAAC;AAClD,OAAO,KAAK,EACV,oBAAoB,EACpB,wBAAwB,EACxB,0BAA0B,EAC3B,MAAM,kBAAkB,CAAC;AAE1B,MAAM,WAAW,uBAAwB,SAAQ,oBAAoB;IACnE,eAAe,CAAC,EAAE,mBAAmB,CAAC,OAAO,CAAC,EAAE,CAAC;IACjD,sBAAsB,CAAC,EAAE,0BAA0B,CAAC,OAAO,CAAC,EAAE,CAAC;IAC/D,oBAAoB,CAAC,EAAE,wBAAwB,EAAE,CAAC;CACnD;AAED,MAAM,WAAW,2BAA4B,SAAQ,wBAAwB;IAC3E,wBAAwB,CAAC,EAAE,CAAC,KAAK,EAAE;QACjC,UAAU,EAAE,iBAAiB,CAAC;QAC9B,eAAe,EAAE,mBAAmB,CAAC,OAAO,CAAC,EAAE,CAAC;KACjD,KAAK,IAAI,GAAG,OAAO,CAAC,IAAI,CAAC,CAAC;IAC3B,6BAA6B,CAAC,EAAE,CAAC,KAAK,EAAE;QACtC,UAAU,EAAE,iBAAiB,CAAC;QAC9B,oBAAoB,EAAE,wBAAwB,EAAE,CAAC;KAClD,KAAK,IAAI,GAAG,OAAO,CAAC,IAAI,CAAC,CAAC;IAC3B,uBAAuB,CAAC,EAAE,CAAC,KAAK,EAAE;QAChC,UAAU,EAAE,iBAAiB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,CAAC,OAAO,CAAC,EAAE,GAAG,IAAI;IAMzE,qBAAqB,CAAC,KAAK,EAAE,mBAAmB,CAAC,OAAO,CAAC,GAAG,IAAI;IAOhE,wBAAwB,CAAC,IAAI,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,MAAM,GAAG,IAAI;IAQ9D,OAAO,CAAC,6BAA6B;IAYrC,iBAAiB,CACf,cAAc,EAAE,oBAAoB,CAAC,OAAO,EAAE,OAAO,CAAC,GAAG,IAAI,GAC5D,IAAI;IAWP,SAAS,CACP,UAAU,EAAE,2BAA2B,GACtC,0BAA0B;CAG9B"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"CopilotChatConfigurationProvider.vue.d.ts","sourceRoot":"","sources":["../../../src/v2/providers/CopilotChatConfigurationProvider.vue"],"names":[],"mappings":"
|
|
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
|
*
|
|
@@ -58,11 +70,6 @@ export interface CopilotKitProviderProps {
|
|
|
58
70
|
sandboxFunctions?: SandboxFunction[];
|
|
59
71
|
designSkill?: string;
|
|
60
72
|
};
|
|
61
|
-
/**
|
|
62
|
-
* @deprecated This prop no longer controls the Inspector. Use
|
|
63
|
-
* `enableInspector` instead.
|
|
64
|
-
*/
|
|
65
|
-
showDevConsole?: boolean | "auto";
|
|
66
73
|
/**
|
|
67
74
|
* Disable the CopilotKit Inspector in development.
|
|
68
75
|
* The Inspector is enabled by default in development browser builds and is
|
|
@@ -94,6 +101,12 @@ export interface CopilotKitProviderProps {
|
|
|
94
101
|
* `a2ui_params["guidelines"]["composition_guide"]` in Python).
|
|
95
102
|
*/
|
|
96
103
|
includeSchema?: boolean;
|
|
104
|
+
/**
|
|
105
|
+
* Options for the A2UI error-recovery status UI: how long before the
|
|
106
|
+
* transient "Retrying…" hint appears, after how many attempts, and how
|
|
107
|
+
* much retry/debug detail to surface. When omitted, defaults apply.
|
|
108
|
+
*/
|
|
109
|
+
recovery?: A2UIRecoveryRendererOptions;
|
|
97
110
|
};
|
|
98
111
|
/** Configuration for the built-in MCP Apps renderer. */
|
|
99
112
|
mcpApps?: {
|
|
@@ -124,5 +137,42 @@ export interface CopilotKitProviderProps {
|
|
|
124
137
|
* - `{ events?: boolean; lifecycle?: boolean; verbose?: boolean }` for granular control.
|
|
125
138
|
*/
|
|
126
139
|
debug?: DebugConfig;
|
|
140
|
+
/**
|
|
141
|
+
* Turns on interaction capture (`@copilotkit/learning`). `learning` (short
|
|
142
|
+
* for `:learning="true"`) records with the default options; pass an object
|
|
143
|
+
* for options. `false` or omitting the prop turns capture off and cancels
|
|
144
|
+
* startup. Without a sink, Core authenticates with the runtime and sends
|
|
145
|
+
* browser events to Intelligence; a custom sink keeps the standalone
|
|
146
|
+
* collector behavior. Updated settings apply to the next Trajectory.
|
|
147
|
+
*
|
|
148
|
+
* Capture starts after mount. Set `trajectoryId` to use your own ID;
|
|
149
|
+
* otherwise the provider generates one. The generated ID stays the same
|
|
150
|
+
* across rerenders, reconnects and option changes; turning capture off,
|
|
151
|
+
* setting `autoStart: false` or supplying a `trajectoryId` ends it, and the
|
|
152
|
+
* next generated Trajectory gets a new ID. Read the active ID from
|
|
153
|
+
* `copilotkit.trajectoryId`.
|
|
154
|
+
*
|
|
155
|
+
* Set `autoStart: false` to start capture yourself with `startTrajectory()`.
|
|
156
|
+
* Capture stops on unmount, including manually started Trajectories.
|
|
157
|
+
*
|
|
158
|
+
* @example
|
|
159
|
+
* <CopilotKitProvider runtime-url="/api/copilotkit" learning>
|
|
160
|
+
*/
|
|
161
|
+
learning?: boolean | CopilotKitLearningOptions;
|
|
127
162
|
}
|
|
163
|
+
/** The object form of the `learning` prop. */
|
|
164
|
+
export type CopilotKitLearningOptions = LearningConfig & {
|
|
165
|
+
/**
|
|
166
|
+
* Starts a Trajectory after mount. Defaults to `true`; set `false` to call
|
|
167
|
+
* `startTrajectory()` yourself.
|
|
168
|
+
*/
|
|
169
|
+
autoStart?: boolean;
|
|
170
|
+
trajectoryId?: string;
|
|
171
|
+
/**
|
|
172
|
+
* Used only by explicit custom sinks. Authenticated capture warns and ignores
|
|
173
|
+
* this option; assign Learning Spaces on the server with
|
|
174
|
+
* `getTrajectoryLearningContainerIds` on `CopilotKitIntelligence`.
|
|
175
|
+
*/
|
|
176
|
+
learningContainerIds?: string[];
|
|
177
|
+
};
|
|
128
178
|
//# sourceMappingURL=CopilotKitProvider.types.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"CopilotKitProvider.types.d.ts","sourceRoot":"","sources":["../../../src/v2/providers/CopilotKitProvider.types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,eAAe,CAAC;AACnD,OAAO,KAAK,EACV,uBAAuB,EACvB,uBAAuB,EACvB,uBAAuB,
|
|
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,aAAa,EAAE,MAAM,eAAe,CAAC;AACnD,OAAO,KAAK,EACV,uBAAuB,EACvB,uBAAuB,EACvB,uBAAuB,EACvB,cAAc,EACf,MAAM,kBAAkB,CAAC;AAC1B,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,oBAAoB,CAAC;AACtD,OAAO,KAAK,EACV,SAAS,EACT,eAAe,EACf,0BAA0B,EAC1B,wBAAwB,EACxB,eAAe,EACf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