@copilotkit/vue 2.0.0-rc.2 → 2.0.0-rc.21
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 +3 -3
- 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 -73
- package/dist/index.cjs.map +1 -1
- package/dist/index.mjs +365 -16920
- package/dist/index.mjs.map +1 -1
- package/dist/use-render-activity-message-BAhbpSDh.js +16200 -0
- package/dist/use-render-activity-message-BAhbpSDh.js.map +1 -0
- package/dist/use-render-activity-message-DJ6q1qHV.cjs +114 -0
- package/dist/use-render-activity-message-DJ6q1qHV.cjs.map +1 -0
- package/dist/v2/components/A2UIMessageRenderer.d.ts +14 -0
- package/dist/v2/components/A2UIMessageRenderer.d.ts.map +1 -1
- package/dist/v2/components/A2UISurfaceActivityRenderer.vue.d.ts +10 -3
- package/dist/v2/components/A2UISurfaceActivityRenderer.vue.d.ts.map +1 -1
- package/dist/v2/components/CopilotKitInspector.vue.d.ts +5 -1
- package/dist/v2/components/CopilotKitInspector.vue.d.ts.map +1 -1
- package/dist/v2/components/InlineFeatureWarning.vue.d.ts.map +1 -1
- package/dist/v2/components/LicenseWarningBanner.vue.d.ts +2 -2
- package/dist/v2/components/LicenseWarningBanner.vue.d.ts.map +1 -1
- package/dist/v2/components/MCPAppsActivityRenderer.d.ts.map +1 -1
- package/dist/v2/components/OpenGenerativeUIRenderer.d.ts +13 -59
- package/dist/v2/components/OpenGenerativeUIRenderer.d.ts.map +1 -1
- package/dist/v2/components/a2ui/A2UIBuiltInToolCallRenderer.d.ts +0 -5
- package/dist/v2/components/a2ui/A2UIBuiltInToolCallRenderer.d.ts.map +1 -1
- package/dist/v2/components/a2ui/A2UICatalogContext.d.ts +10 -15
- package/dist/v2/components/a2ui/A2UICatalogContext.d.ts.map +1 -1
- package/dist/v2/components/a2ui/A2UIRecoveryStates.d.ts +14 -130
- package/dist/v2/components/a2ui/A2UIRecoveryStates.d.ts.map +1 -1
- package/dist/v2/components/a2ui/catalog.d.ts.map +1 -1
- package/dist/v2/components/a2ui/utils.d.ts +3 -15
- package/dist/v2/components/a2ui/utils.d.ts.map +1 -1
- package/dist/v2/components/a2ui.d.ts +9 -8
- package/dist/v2/components/a2ui.d.ts.map +1 -1
- package/dist/v2/components/chat/CopilotChat.vue.d.ts +2 -2
- package/dist/v2/components/chat/CopilotChat.vue.d.ts.map +1 -1
- package/dist/v2/components/chat/CopilotChatAssistantMessage.vue.d.ts.map +1 -1
- 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 +4 -8
- package/dist/v2/components/chat/CopilotChatAudioRecorder.vue.d.ts.map +1 -1
- package/dist/v2/components/chat/CopilotChatFeedbackCommentPopover.vue.d.ts +1 -1
- package/dist/v2/components/chat/CopilotChatFeedbackCommentPopover.vue.d.ts.map +1 -1
- package/dist/v2/components/chat/CopilotChatInput.vue.d.ts +6 -270
- package/dist/v2/components/chat/CopilotChatInput.vue.d.ts.map +1 -1
- package/dist/v2/components/chat/CopilotChatInspectorButton.vue.d.ts.map +1 -1
- package/dist/v2/components/chat/CopilotChatLightbox.vue.d.ts.map +1 -1
- package/dist/v2/components/chat/CopilotChatMessageView.vue.d.ts +1 -1
- 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/CopilotChatToolCallGroup.vue.d.ts +1 -1
- package/dist/v2/components/chat/CopilotChatToolCallGroup.vue.d.ts.map +1 -1
- package/dist/v2/components/chat/CopilotChatToolCallItem.vue.d.ts.map +1 -1
- package/dist/v2/components/chat/CopilotChatToolCallsView.vue.d.ts +1 -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 +3 -3
- package/dist/v2/components/chat/CopilotChatView.vue.d.ts.map +1 -1
- package/dist/v2/components/chat/CopilotChatWorkSummary.vue.d.ts.map +1 -1
- package/dist/v2/components/chat/CopilotModalHeader.vue.d.ts.map +1 -1
- package/dist/v2/components/chat/CopilotPopup.vue.d.ts +8 -3
- package/dist/v2/components/chat/CopilotPopup.vue.d.ts.map +1 -1
- package/dist/v2/components/chat/CopilotPopupView.vue.d.ts +5 -3
- package/dist/v2/components/chat/CopilotPopupView.vue.d.ts.map +1 -1
- package/dist/v2/components/chat/CopilotPopupViewInternal.vue.d.ts +5 -3
- package/dist/v2/components/chat/CopilotPopupViewInternal.vue.d.ts.map +1 -1
- package/dist/v2/components/chat/CopilotSidebar.vue.d.ts +8 -3
- package/dist/v2/components/chat/CopilotSidebar.vue.d.ts.map +1 -1
- package/dist/v2/components/chat/CopilotSidebarView.vue.d.ts +6 -4
- package/dist/v2/components/chat/CopilotSidebarView.vue.d.ts.map +1 -1
- package/dist/v2/components/chat/CopilotSidebarViewInternal.vue.d.ts +6 -4
- package/dist/v2/components/chat/CopilotSidebarViewInternal.vue.d.ts.map +1 -1
- package/dist/v2/components/chat/CopilotThreadsDrawer.vue.d.ts.map +1 -1
- package/dist/v2/components/chat/StreamingMarkdownDefault.vue.d.ts +1 -0
- package/dist/v2/components/chat/StreamingMarkdownDefault.vue.d.ts.map +1 -1
- package/dist/v2/components/chat/audioRecorder.d.ts +3 -4
- package/dist/v2/components/chat/audioRecorder.d.ts.map +1 -1
- package/dist/v2/components/chat/copilotChatToolCallItemRender.d.ts +3 -3
- package/dist/v2/components/chat/copilotChatToolCallItemRender.d.ts.map +1 -1
- package/dist/v2/components/chat/forwarded-slots.d.ts +12 -0
- package/dist/v2/components/chat/forwarded-slots.d.ts.map +1 -0
- package/dist/v2/components/chat/index.d.ts +34 -31
- package/dist/v2/components/chat/index.d.ts.map +1 -1
- package/dist/v2/components/chat/inspector-shortcuts.d.ts +2 -1
- package/dist/v2/components/chat/inspector-shortcuts.d.ts.map +1 -1
- package/dist/v2/components/chat/message-feedback.d.ts +18 -49
- package/dist/v2/components/chat/message-feedback.d.ts.map +1 -1
- package/dist/v2/components/chat/tool-call-display-context.d.ts +4 -19
- package/dist/v2/components/chat/tool-call-display-context.d.ts.map +1 -1
- package/dist/v2/components/chat/tool-call-group-parts.d.ts +7 -20
- package/dist/v2/components/chat/tool-call-group-parts.d.ts.map +1 -1
- package/dist/v2/components/chat/turn-work.d.ts +0 -2
- package/dist/v2/components/chat/turn-work.d.ts.map +1 -1
- package/dist/v2/components/chat/types.d.ts +9 -4
- 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-copy-feedback.d.ts +11 -0
- package/dist/v2/components/chat/use-copy-feedback.d.ts.map +1 -0
- package/dist/v2/components/chat/use-lightbox.d.ts.map +1 -1
- 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 +1 -1
- package/dist/v2/components/ui/CopilotDropdownMenuContent.vue.d.ts.map +1 -1
- package/dist/v2/hooks/use-agent-context.d.ts +2 -3
- package/dist/v2/hooks/use-agent-context.d.ts.map +1 -1
- package/dist/v2/hooks/use-agent.d.ts +4 -1
- package/dist/v2/hooks/use-agent.d.ts.map +1 -1
- package/dist/v2/hooks/use-attachments.d.ts +7 -0
- package/dist/v2/hooks/use-attachments.d.ts.map +1 -1
- package/dist/v2/hooks/use-capabilities.d.ts.map +1 -1
- package/dist/v2/hooks/use-component.d.ts +1 -0
- package/dist/v2/hooks/use-component.d.ts.map +1 -1
- package/dist/v2/hooks/use-configure-suggestions.d.ts +4 -9
- package/dist/v2/hooks/use-configure-suggestions.d.ts.map +1 -1
- 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-human-in-the-loop.d.ts +2 -1
- package/dist/v2/hooks/use-human-in-the-loop.d.ts.map +1 -1
- package/dist/v2/hooks/use-interrupt.d.ts +0 -1
- package/dist/v2/hooks/use-interrupt.d.ts.map +1 -1
- package/dist/v2/hooks/use-keyboard-height.d.ts +1 -1
- package/dist/v2/hooks/use-keyboard-height.d.ts.map +1 -1
- package/dist/v2/hooks/use-pin-to-send.d.ts +4 -12
- package/dist/v2/hooks/use-pin-to-send.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-suggestions.d.ts.map +1 -1
- package/dist/v2/hooks/use-threads.d.ts +0 -8
- package/dist/v2/hooks/use-threads.d.ts.map +1 -1
- package/dist/v2/index.cjs +1 -1
- package/dist/v2/index.mjs +197 -200
- package/dist/v2/index.mjs.map +1 -1
- package/dist/v2/lib/processPartialHtml.d.ts +1 -2
- package/dist/v2/lib/processPartialHtml.d.ts.map +1 -1
- package/dist/v2/lib/shallow-stable.d.ts.map +1 -1
- package/dist/v2/lib/vue-core.d.ts +12 -12
- 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 +9 -129
- package/dist/v2/providers/CopilotKitProvider.types.d.ts.map +1 -1
- package/dist/v2/providers/CopilotKitProvider.vue.d.ts +9 -10
- package/dist/v2/providers/CopilotKitProvider.vue.d.ts.map +1 -1
- package/dist/v2/providers/chat-configuration-store-key.d.ts +8 -0
- package/dist/v2/providers/chat-configuration-store-key.d.ts.map +1 -0
- package/dist/v2/providers/markdown-renderer.d.ts +4 -2
- package/dist/v2/providers/markdown-renderer.d.ts.map +1 -1
- package/dist/v2/providers/types.d.ts +3 -46
- package/dist/v2/providers/types.d.ts.map +1 -1
- package/dist/v2/providers/use-inspector-thread-override.d.ts +5 -0
- package/dist/v2/providers/use-inspector-thread-override.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 -35
- package/dist/v2/types/vue-tool-call-renderer.d.ts.map +1 -1
- package/package.json +10 -11
- package/src/__tests__/build-entries.test.ts +27 -0
- 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 +10 -0
- package/src/v2/__tests__/mocks/web-inspector.ts +6 -0
- package/src/v2/__tests__/utils/test-helpers.ts +34 -4
- package/src/v2/components/A2UIMessageRenderer.ts +98 -68
- package/src/v2/components/A2UISurfaceActivityRenderer.vue +68 -103
- package/src/v2/components/CopilotKitInspector.vue +104 -51
- package/src/v2/components/InlineFeatureWarning.vue +20 -21
- package/src/v2/components/LicenseWarningBanner.vue +27 -135
- package/src/v2/components/MCPAppsActivityRenderer.ts +75 -201
- package/src/v2/components/OpenGenerativeUIRenderer.ts +122 -446
- package/src/v2/components/__tests__/A2UIMessageRenderer.test.ts +171 -8
- package/src/v2/components/__tests__/CopilotKitInspector.test.ts +42 -0
- package/src/v2/components/__tests__/LicenseWarningBanner.test.ts +60 -0
- package/src/v2/components/__tests__/OpenGenerativeUIRenderer.test.ts +64 -8
- package/src/v2/components/__tests__/OpenGenerativeUIToolRenderer.test.ts +38 -0
- package/src/v2/components/a2ui/A2UIBuiltInToolCallRenderer.ts +2 -7
- package/src/v2/components/a2ui/A2UICatalogContext.ts +27 -185
- package/src/v2/components/a2ui/A2UIRecoveryStates.ts +127 -327
- package/src/v2/components/a2ui/catalog.ts +3 -3
- package/src/v2/components/a2ui/utils.ts +13 -65
- package/src/v2/components/a2ui.ts +15 -22
- package/src/v2/components/chat/CopilotChat.vue +147 -356
- package/src/v2/components/chat/CopilotChatAssistantMessage.vue +19 -43
- package/src/v2/components/chat/CopilotChatAttachmentQueue.vue +36 -55
- package/src/v2/components/chat/CopilotChatAttachmentRenderer.vue +14 -6
- package/src/v2/components/chat/CopilotChatAudioRecorder.vue +19 -246
- package/src/v2/components/chat/CopilotChatFeedbackCommentPopover.vue +2 -2
- package/src/v2/components/chat/CopilotChatInput.vue +108 -436
- package/src/v2/components/chat/CopilotChatInspectorButton.vue +45 -108
- package/src/v2/components/chat/CopilotChatLightbox.vue +10 -31
- package/src/v2/components/chat/CopilotChatMessageView.vue +82 -210
- package/src/v2/components/chat/CopilotChatReasoningMessage.vue +7 -15
- package/src/v2/components/chat/CopilotChatToolCallGroup.vue +63 -71
- package/src/v2/components/chat/CopilotChatToolCallItem.vue +8 -6
- package/src/v2/components/chat/CopilotChatToolCallsView.vue +31 -32
- package/src/v2/components/chat/CopilotChatUserMessage.vue +24 -112
- package/src/v2/components/chat/CopilotChatView.vue +33 -28
- package/src/v2/components/chat/CopilotChatWorkSummary.vue +26 -36
- package/src/v2/components/chat/CopilotModalHeader.vue +11 -23
- package/src/v2/components/chat/CopilotPopup.vue +23 -25
- package/src/v2/components/chat/CopilotPopupView.vue +10 -39
- package/src/v2/components/chat/CopilotPopupViewInternal.vue +35 -131
- package/src/v2/components/chat/CopilotSidebar.vue +23 -25
- package/src/v2/components/chat/CopilotSidebarView.vue +10 -39
- package/src/v2/components/chat/CopilotSidebarViewInternal.vue +38 -59
- package/src/v2/components/chat/CopilotThreadsDrawer.vue +37 -102
- package/src/v2/components/chat/StreamingMarkdownDefault.vue +15 -28
- package/src/v2/components/chat/__tests__/CopilotChat.labels.test.ts +19 -4
- package/src/v2/components/chat/__tests__/CopilotChat.test.ts +12 -10
- package/src/v2/components/chat/__tests__/CopilotChatActivityRendering.e2e.test.ts +26 -9
- package/src/v2/components/chat/__tests__/CopilotChatAssistantMessage.learningFeedback.test.ts +5 -5
- package/src/v2/components/chat/__tests__/CopilotChatAttachmentQueue.test.ts +28 -0
- package/src/v2/components/chat/__tests__/CopilotChatInput.test.ts +89 -1
- package/src/v2/components/chat/__tests__/CopilotChatMessageView.test.ts +247 -403
- package/src/v2/components/chat/__tests__/CopilotChatMessageView.toolCallDisplay.test.ts +1 -99
- package/src/v2/components/chat/__tests__/CopilotPopup.test.ts +90 -1
- package/src/v2/components/chat/__tests__/CopilotPopupView.test.ts +19 -0
- package/src/v2/components/chat/__tests__/CopilotSidebar.test.ts +90 -1
- package/src/v2/components/chat/__tests__/CopilotSidebarView.position.test.ts +32 -8
- package/src/v2/components/chat/__tests__/CopilotSidebarView.test.ts +2 -1
- package/src/v2/components/chat/__tests__/StreamingMarkdownDefault.test.ts +54 -0
- package/src/v2/components/chat/audioRecorder.ts +4 -7
- package/src/v2/components/chat/copilotChatToolCallItemRender.ts +24 -89
- package/src/v2/components/chat/forwarded-slots.ts +17 -0
- package/src/v2/components/chat/index.ts +0 -1
- package/src/v2/components/chat/inspector-shortcuts.ts +10 -16
- package/src/v2/components/chat/message-feedback.ts +62 -197
- package/src/v2/components/chat/tool-call-display-context.ts +6 -22
- package/src/v2/components/chat/tool-call-group-parts.ts +47 -108
- package/src/v2/components/chat/turn-work.ts +0 -9
- package/src/v2/components/chat/types.ts +12 -4
- package/src/v2/components/chat/use-chat-labels.ts +16 -0
- package/src/v2/components/chat/use-copy-feedback.ts +21 -0
- package/src/v2/components/chat/use-lightbox.ts +15 -33
- package/src/v2/components/icons/__tests__/icons.test.ts +72 -68
- package/src/v2/components/icons/index.ts +109 -27
- package/src/v2/hooks/__tests__/use-agent-error-state.test.ts +5 -3
- package/src/v2/hooks/__tests__/use-agent-stability.test.ts +25 -4
- package/src/v2/hooks/__tests__/use-agent-throttle.test.ts +5 -1
- package/src/v2/hooks/__tests__/use-agent.test.ts +6 -3
- package/src/v2/hooks/__tests__/use-component.test.ts +21 -0
- package/src/v2/hooks/__tests__/use-configure-suggestions.test.ts +30 -1
- package/src/v2/hooks/__tests__/use-default-render-tool.test.ts +10 -10
- package/src/v2/hooks/__tests__/use-frontend-tool.e2e.test.ts +66 -1
- package/src/v2/hooks/__tests__/use-human-in-the-loop.e2e.test.ts +6 -1
- package/src/v2/hooks/__tests__/use-human-in-the-loop.test.ts +187 -12
- package/src/v2/hooks/__tests__/use-interrupt.test.ts +97 -0
- package/src/v2/hooks/__tests__/use-render-activity-message.test.ts +106 -0
- package/src/v2/hooks/__tests__/use-render-tool.test.ts +3 -6
- package/src/v2/hooks/__tests__/use-threads.test.ts +48 -6
- package/src/v2/hooks/__tests__/zod-regression.test.ts +5 -4
- package/src/v2/hooks/use-agent-context.ts +4 -10
- package/src/v2/hooks/use-agent.ts +86 -290
- package/src/v2/hooks/use-attachments.ts +48 -168
- package/src/v2/hooks/use-capabilities.ts +2 -7
- package/src/v2/hooks/use-component.ts +7 -4
- package/src/v2/hooks/use-configure-suggestions.ts +28 -218
- package/src/v2/hooks/use-default-render-tool.ts +34 -94
- package/src/v2/hooks/use-frontend-tool.ts +10 -10
- package/src/v2/hooks/use-human-in-the-loop.ts +11 -80
- package/src/v2/hooks/use-interrupt.ts +29 -308
- package/src/v2/hooks/use-keyboard-height.ts +17 -40
- package/src/v2/hooks/use-pin-to-send.ts +15 -99
- package/src/v2/hooks/use-render-activity-message.ts +31 -55
- package/src/v2/hooks/use-render-custom-messages.ts +24 -88
- package/src/v2/hooks/use-suggestions.ts +9 -33
- package/src/v2/hooks/use-threads.ts +43 -273
- package/src/v2/lib/__tests__/shallow-stable.test.ts +54 -0
- package/src/v2/lib/__tests__/vue-core-renderers.test.ts +42 -0
- package/src/v2/lib/processPartialHtml.ts +6 -21
- package/src/v2/lib/shallow-stable.ts +2 -16
- package/src/v2/lib/vue-core.ts +69 -78
- package/src/v2/providers/CopilotChatConfigurationProvider.vue +48 -186
- package/src/v2/providers/CopilotKitProvider.types.ts +12 -132
- package/src/v2/providers/CopilotKitProvider.vue +237 -510
- package/src/v2/providers/__tests__/CopilotChatConfigurationProvider.test.ts +22 -2
- package/src/v2/providers/__tests__/CopilotKitProvider.a2ui.test.ts +20 -2
- package/src/v2/providers/__tests__/CopilotKitProvider.config.test.ts +124 -0
- package/src/v2/providers/__tests__/CopilotKitProvider.headersAtSendTime.test.ts +3 -3
- package/src/v2/providers/__tests__/CopilotKitProvider.learning.test.ts +3 -1
- package/src/v2/providers/__tests__/CopilotKitProvider.sandboxFunctions.test.ts +4 -1
- package/src/v2/providers/__tests__/CopilotKitProvider.test.ts +53 -26
- package/src/v2/providers/chat-configuration-store-key.ts +9 -0
- package/src/v2/providers/markdown-renderer.ts +8 -2
- package/src/v2/providers/types.ts +3 -49
- package/src/v2/providers/use-inspector-thread-override.ts +22 -80
- package/src/v2/types/__tests__/defineToolCallRenderer.test.ts +28 -33
- package/src/v2/types/defineToolCallRenderer.ts +5 -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 -38
- package/tsconfig.json +0 -1
- package/vite.config.ts +8 -5
- package/vitest.config.ts +12 -7
- 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/components/chat/normalize-auto-scroll.d.ts +0 -3
- package/dist/v2/components/chat/normalize-auto-scroll.d.ts.map +0 -1
- package/dist/v2/components/chat/tool-call-layout.d.ts +0 -115
- package/dist/v2/components/chat/tool-call-layout.d.ts.map +0 -1
- package/dist/v2/lib/is-mobile-viewport.d.ts +0 -15
- package/dist/v2/lib/is-mobile-viewport.d.ts.map +0 -1
- package/dist/v2/lib/message-feedback.d.ts +0 -33
- package/dist/v2/lib/message-feedback.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/src/v2/components/__tests__/A2UICatalogContext.test.ts +0 -63
- package/src/v2/components/a2ui/__tests__/A2UIRecoveryStates.test.ts +0 -175
- package/src/v2/components/chat/BasicMarkdown.vue +0 -160
- package/src/v2/components/chat/__tests__/BasicMarkdown.test.ts +0 -69
- package/src/v2/components/chat/__tests__/normalize-auto-scroll.test.ts +0 -39
- package/src/v2/components/chat/normalize-auto-scroll.ts +0 -17
- package/src/v2/components/chat/tool-call-layout.ts +0 -304
- package/src/v2/lib/__tests__/is-mobile-viewport.test.ts +0 -48
- package/src/v2/lib/__tests__/message-feedback.test.ts +0 -152
- 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/is-mobile-viewport.ts +0 -23
- package/src/v2/lib/message-feedback.ts +0 -120
- package/src/v2/lib/transcription-client.ts +0 -151
package/dist/v2/index.mjs
CHANGED
|
@@ -1,204 +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, CopilotChatToolCallGroup as w, CopilotChatToolCallsView as K, CopilotChatUserMessage as k, CopilotChatView as L, CopilotChatWorkSummary as B, CopilotKit as G, CopilotKitCoreVue as H, CopilotKitInspector as J, CopilotKitProvider as N, CopilotKitStyles as _, CopilotModalHeader as W, CopilotPopup as Q, CopilotPopupView as Y, CopilotSidebar as j, CopilotSidebarView as q, CopilotThreadsDrawer as z, CopyOperationSchema as X, CustomEventSchema as Z, DataSourceSchema as $, DeveloperMessageSchema as ee, DocumentInputContentSchema as te, DocumentInputContentSchema as ae, DocumentInputContentSchema as ne, EventSchema as oe, EventSchema as ie, EventTypeSchema as ce, ExecutionCapabilitiesSchema as se, FileSourceSchema as Se, FunctionCallSchema as he, GenerateSandboxedUiArgsSchema as me, HumanInTheLoopCapabilitiesSchema as ue, IdentityCapabilitiesSchema as re, ImageInputContentSchema as pe, ImageInputContentSchema as Ce, ImageInputContentSchema as le, DataSourceSchema as ge, ContentPartSchema as de, InputContentSourceSchema as ve, InputContentUrlSourceSchema as Ie, InterruptSchema as Ee, JsonPatchOperationSchema as Re, JsonPatchSchema as Ae, JsonPointerSchema as Me, LicenseContextKey as Te, MARKDOWN_RENDERER_KEY as be, MCPAppsActivityRenderer as Oe, MessageSchema as ye, MessagesSnapshotEventSchema as Pe, MetadataSchema as xe, MoveOperationSchema as fe, MultiAgentCapabilitiesSchema as Ue, MultimodalCapabilitiesSchema as De, MultimodalInputCapabilitiesSchema as Ve, MultimodalOutputCapabilitiesSchema as Fe, OpenGenerativeUIActivityRenderer as we, OpenGenerativeUIActivityType as Ke, OpenGenerativeUIContentSchema as ke, OpenGenerativeUIRenderer as Le, OpenGenerativeUIToolRenderer as Be, OptionalMetadataSchema as Ge, OutputCapabilitiesSchema as He, InputContentSourceSchema as Je, RawEventSchema as Ne, ReasoningCapabilitiesSchema as _e, ReasoningEncryptedValueEventSchema as We, ReasoningEncryptedValueSubtypeSchema as Qe, ReasoningEndEventSchema as Ye, ReasoningMessageChunkEventSchema as je, ReasoningMessageContentEventSchema as qe, ReasoningMessageEndEventSchema as ze, ReasoningMessageSchema as Xe, ReasoningMessageStartEventSchema as Ze, ReasoningStartEventSchema as $e, RemoveOperationSchema as et, ReplaceOperationSchema as tt, ResumeEntrySchema as at, RoleSchema as nt, RunAgentInputSchema as ot, RunErrorEventSchema as it, RunFinishedCancelledOutcomeSchema as ct, RunFinishedEventSchema as st, RunFinishedInterruptOutcomeSchema as St, RunFinishedOutcomeSchema as ht, RunFinishedSuccessOutcomeSchema as mt, RunStartedEventSchema as ut, StateCapabilitiesSchema as rt, StateDeltaEventSchema as pt, StateSchema as Ct, StateSnapshotEventSchema as lt, StepFinishedEventSchema as gt, StepStartedEventSchema as dt, StreamingMarkdownDefault as vt, SubagentErrorEventSchema as It, SubagentFinishedEventSchema as Et, SubagentFinishedOutcomeSchema as Rt, SubagentFinishedSuccessOutcomeSchema as At, SubagentFinishedSuspendedOutcomeSchema as Mt, SubagentInfoSchema as Tt, SubagentRunIdSchema as bt, SubagentStartedEventSchema as Ot, SystemMessageSchema as yt, TestOperationSchema as Pt, TextInputContentSchema as xt, TextMessageChunkEventSchema as ft, TextMessageContentEventSchema as Ut, TextMessageEndEventSchema as Dt, TextMessageRoleSchema as Vt, TextMessageStartEventSchema as Ft, TextInputContentSchema as wt, TokenUsageSchema as Kt, ToolCallArgsEventSchema as kt, ToolCallChunkEventSchema as Lt, ToolCallEndEventSchema as Bt, ToolCallResultEventSchema as Gt, ToolCallSchema as Ht, ToolCallStartEventSchema as Jt, ToolMessageSchema as Nt, ToolSchema as _t, ToolsCapabilitiesSchema as Wt, TransportCapabilitiesSchema as Qt, InputContentUrlSourceSchema as Yt, UseAgentUpdate as jt, UserMessageSchema as qt, VideoInputContentSchema as zt, VideoInputContentSchema as Xt, VideoInputContentSchema as Zt, createA2UIMessageRenderer as $t, createDefaultLicenseRef as ea, defineToolCallRenderer as ta, extractCompleteStyles as aa, getOperationSurfaceId as na, isVueComponentRenderer as oa, processPartialHtml as ia, useAgent as ca, useAgentContext as sa, useAttachments as Sa, useCapabilities as ha, useComponent as ma, useConfigureSuggestions as ua, useCopilotAction as ra, useCopilotChatConfiguration as pa, useCopilotKit as Ca, useCopilotReadable as la, useDefaultRenderTool as ga, useFrontendTool as da, useHumanInTheLoop as va, useInterrupt as Ia, useKeyboardHeight as Ea, useLicenseContext as Ra, useMarkdownRenderer as Aa, useRenderActivityMessage as Ma, useRenderCustomMessages as Ta, useRenderTool as ba, useSandboxFunctions as Oa, useSuggestions as ya, useThreads as Pa, vueBasicCatalog as xa } from "../index.mjs";
|
|
2
|
-
export * from "@ag-ui/client";
|
|
3
|
-
import { PROTOCOL_VERSION as Da } 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-BAhbpSDh.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
|
-
ya as useSuggestions,
|
|
200
|
-
Pa as useThreads,
|
|
201
|
-
xa as vueBasicCatalog,
|
|
202
|
-
ka 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
|
|
203
200
|
};
|
|
204
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":";;;;;;;"}
|
|
@@ -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"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"shallow-stable.d.ts","sourceRoot":"","sources":["../../../src/v2/lib/shallow-stable.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"shallow-stable.d.ts","sourceRoot":"","sources":["../../../src/v2/lib/shallow-stable.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,gBAAgB,EAAE,UAAU,EAAE,MAAM,KAAK,CAAC;AAUxD;;;GAGG;AACH,wBAAgB,mBAAmB,CAAC,CAAC,EACnC,KAAK,EAAE,gBAAgB,CAAC,CAAC,CAAC,GACzB,QAAQ,CAAC,UAAU,CAAC,CAAC,CAAC,CAAC,CAqBzB"}
|
|
@@ -16,32 +16,32 @@ export interface CopilotKitCoreVueSubscriber extends CopilotKitCoreSubscriber {
|
|
|
16
16
|
copilotkit: CopilotKitCoreVue;
|
|
17
17
|
renderCustomMessages: VueCustomMessageRenderer[];
|
|
18
18
|
}) => void | Promise<void>;
|
|
19
|
+
onRenderActivityMessagesChanged?: (event: {
|
|
20
|
+
copilotkit: CopilotKitCoreVue;
|
|
21
|
+
renderActivityMessages: VueActivityMessageRenderer<unknown>[];
|
|
22
|
+
}) => void | Promise<void>;
|
|
19
23
|
onInterruptStateChanged?: (event: {
|
|
20
24
|
copilotkit: CopilotKitCoreVue;
|
|
21
25
|
interruptState: InterruptRenderProps<unknown, unknown> | null;
|
|
22
26
|
}) => void | Promise<void>;
|
|
23
27
|
}
|
|
24
28
|
export declare class CopilotKitCoreVue extends CopilotKitCore {
|
|
25
|
-
private
|
|
26
|
-
private _hookRenderToolCalls;
|
|
27
|
-
private _cachedMergedRenderToolCalls;
|
|
28
|
-
private _renderCustomMessages;
|
|
29
|
-
private _renderActivityMessages;
|
|
30
|
-
private _interruptState;
|
|
29
|
+
private readonly _renderers;
|
|
31
30
|
constructor(config: CopilotKitCoreVueConfig);
|
|
32
|
-
get renderCustomMessages():
|
|
33
|
-
get renderActivityMessages():
|
|
31
|
+
get renderCustomMessages(): readonly VueCustomMessageRenderer[];
|
|
32
|
+
get renderActivityMessages(): readonly VueActivityMessageRenderer<unknown>[];
|
|
34
33
|
setRenderActivityMessages(renderers: VueActivityMessageRenderer<unknown>[]): void;
|
|
35
34
|
setRenderCustomMessages(renderers: VueCustomMessageRenderer[]): void;
|
|
36
|
-
|
|
37
|
-
get
|
|
35
|
+
/** The renderers the provider was given, without hook renderers. */
|
|
36
|
+
get propRenderToolCalls(): readonly VueToolCallRenderer<unknown>[];
|
|
37
|
+
/** Prop and hook renderers merged; a hook renderer wins over a prop one. */
|
|
38
|
+
get renderToolCalls(): readonly VueToolCallRenderer<unknown>[];
|
|
38
39
|
get interruptState(): InterruptRenderProps<unknown, unknown> | null;
|
|
39
40
|
setRenderToolCalls(renderToolCalls: VueToolCallRenderer<unknown>[]): void;
|
|
40
41
|
addHookRenderToolCall(entry: VueToolCallRenderer<unknown>): void;
|
|
41
42
|
removeHookRenderToolCall(name: string, agentId?: string): void;
|
|
42
|
-
private
|
|
43
|
+
private notifyRenderersChanged;
|
|
43
44
|
setInterruptState(interruptState: InterruptRenderProps<unknown, unknown> | null): void;
|
|
44
45
|
subscribe(subscriber: CopilotKitCoreVueSubscriber): CopilotKitCoreSubscription;
|
|
45
|
-
waitForPendingFrameworkUpdates(): Promise<void>;
|
|
46
46
|
}
|
|
47
47
|
//# 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,
|
|
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,EAAqB,MAAM,kBAAkB,CAAC;AACrE,OAAO,KAAK,EACV,oBAAoB,EACpB,wBAAwB,EACxB,0BAA0B,EAE3B,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,+BAA+B,CAAC,EAAE,CAAC,KAAK,EAAE;QACxC,UAAU,EAAE,iBAAiB,CAAC;QAC9B,sBAAsB,EAAE,0BAA0B,CAAC,OAAO,CAAC,EAAE,CAAC;KAC/D,KAAK,IAAI,GAAG,OAAO,CAAC,IAAI,CAAC,CAAC;IAC3B,uBAAuB,CAAC,EAAE,CAAC,KAAK,EAAE;QAChC,UAAU,EAAE,iBAAiB,CAAC;QAC9B,cAAc,EAAE,oBAAoB,CAAC,OAAO,EAAE,OAAO,CAAC,GAAG,IAAI,CAAC;KAC/D,KAAK,IAAI,GAAG,OAAO,CAAC,IAAI,CAAC,CAAC;CAC5B;AAED,qBAAa,iBAAkB,SAAQ,cAAc;IACnD,OAAO,CAAC,QAAQ,CAAC,UAAU,CAIzB;gBAEU,MAAM,EAAE,uBAAuB;IAuB3C,IAAI,oBAAoB,wCAEvB;IAED,IAAI,sBAAsB,mDAEzB;IAED,yBAAyB,CACvB,SAAS,EAAE,0BAA0B,CAAC,OAAO,CAAC,EAAE,GAC/C,IAAI;IAIP,uBAAuB,CAAC,SAAS,EAAE,wBAAwB,EAAE,GAAG,IAAI;IAIpE,oEAAoE;IACpE,IAAI,mBAAmB,4CAEtB;IAED,4EAA4E;IAC5E,IAAI,eAAe,4CAElB;IAED,IAAI,cAAc,IAAI,oBAAoB,CAAC,OAAO,EAAE,OAAO,CAAC,GAAG,IAAI,CAKlE;IAED,kBAAkB,CAAC,eAAe,EAAE,mBAAmB,CAAC,OAAO,CAAC,EAAE,GAAG,IAAI;IAIzE,qBAAqB,CAAC,KAAK,EAAE,mBAAmB,CAAC,OAAO,CAAC,GAAG,IAAI;IAIhE,wBAAwB,CAAC,IAAI,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,MAAM,GAAG,IAAI;IAI9D,OAAO,CAAC,sBAAsB;IAuB9B,iBAAiB,CACf,cAAc,EAAE,oBAAoB,CAAC,OAAO,EAAE,OAAO,CAAC,GAAG,IAAI,GAC5D,IAAI;IAIP,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":"AAmHA,OAAO,KAAK,EAAE,qCAAqC,EAAE,MAAM,0CAA0C,CAAC;AA8FtG,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"}
|