@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
|
@@ -1,14 +1,19 @@
|
|
|
1
|
-
import type { CopilotChatMessageViewSlotProps, CopilotChatViewOverrideSlotProps, CopilotChatWelcomeScreenSlotProps, CopilotSidebarProps, CopilotSidebarViewHeaderSlotProps, CopilotSidebarViewToggleButtonSlotProps, CopilotSidebarWelcomeScreenInputSlotProps, CopilotSidebarWelcomeScreenSuggestionViewSlotProps } from "./types";
|
|
1
|
+
import type { CopilotChatFeatherSlotProps, CopilotChatInterruptSlotProps, CopilotChatMessageViewSlotProps, CopilotChatScrollToBottomButtonSlotProps, CopilotChatScrollViewSlotProps, CopilotChatViewOverrideSlotProps, CopilotChatWelcomeScreenSlotProps, CopilotSidebarProps, CopilotSidebarViewHeaderSlotProps, CopilotSidebarViewToggleButtonSlotProps, CopilotSidebarWelcomeScreenInputSlotProps, CopilotSidebarWelcomeScreenSuggestionViewSlotProps } from "./types";
|
|
2
2
|
import type { Suggestion } from "@copilotkit/core";
|
|
3
3
|
type __VLS_Slots = {
|
|
4
4
|
header?: (props: CopilotSidebarViewHeaderSlotProps) => unknown;
|
|
5
5
|
"toggle-button"?: (props: CopilotSidebarViewToggleButtonSlotProps) => unknown;
|
|
6
6
|
"chat-view"?: (props: CopilotChatViewOverrideSlotProps) => unknown;
|
|
7
7
|
"message-view"?: (props: CopilotChatMessageViewSlotProps) => unknown;
|
|
8
|
+
"scroll-view"?: (props: CopilotChatScrollViewSlotProps) => unknown;
|
|
9
|
+
feather?: (props: CopilotChatFeatherSlotProps) => unknown;
|
|
10
|
+
"scroll-to-bottom-button"?: (props: CopilotChatScrollToBottomButtonSlotProps) => unknown;
|
|
11
|
+
interrupt?: (props: CopilotChatInterruptSlotProps) => unknown;
|
|
8
12
|
input?: (props: CopilotSidebarWelcomeScreenInputSlotProps) => unknown;
|
|
9
13
|
"suggestion-view"?: (props: CopilotSidebarWelcomeScreenSuggestionViewSlotProps) => unknown;
|
|
10
14
|
"welcome-screen"?: (props: CopilotChatWelcomeScreenSlotProps) => unknown;
|
|
11
15
|
"welcome-message"?: () => unknown;
|
|
16
|
+
[key: string]: ((props: any) => unknown) | undefined;
|
|
12
17
|
};
|
|
13
18
|
declare const __VLS_component: import("vue").DefineComponent<CopilotSidebarProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
14
19
|
stop: () => any;
|
|
@@ -31,10 +36,10 @@ declare const __VLS_component: import("vue").DefineComponent<CopilotSidebarProps
|
|
|
31
36
|
}>, {
|
|
32
37
|
width: number | string;
|
|
33
38
|
position: "left" | "right";
|
|
34
|
-
|
|
39
|
+
inputMode: import("./types").CopilotChatInputMode;
|
|
40
|
+
autoScroll: import("@copilotkit/core").ɵAutoScrollMode | boolean;
|
|
35
41
|
welcomeScreen: boolean;
|
|
36
42
|
inputValue: string;
|
|
37
|
-
inputMode: import("./types").CopilotChatInputMode;
|
|
38
43
|
inputToolsMenu: (import("./types").ToolsMenuItem | "-")[];
|
|
39
44
|
onFinishTranscribeWithAudio: (audioBlob: Blob) => void | Promise<void>;
|
|
40
45
|
messageFeedback: boolean;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"CopilotSidebar.vue.d.ts","sourceRoot":"","sources":["../../../../src/v2/components/chat/CopilotSidebar.vue"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"CopilotSidebar.vue.d.ts","sourceRoot":"","sources":["../../../../src/v2/components/chat/CopilotSidebar.vue"],"names":[],"mappings":"AA4LA,OAAO,KAAK,EACV,2BAA2B,EAC3B,6BAA6B,EAC7B,+BAA+B,EAC/B,wCAAwC,EACxC,8BAA8B,EAC9B,gCAAgC,EAChC,iCAAiC,EACjC,mBAAmB,EACnB,iCAAiC,EACjC,uCAAuC,EACvC,yCAAyC,EACzC,kDAAkD,EACnD,MAAM,SAAS,CAAC;AACjB,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,kBAAkB,CAAC;AAiCnD,KAAK,WAAW,GAAG;IACjB,MAAM,CAAC,EAAE,CAAC,KAAK,EAAE,iCAAiC,KAAK,OAAO,CAAC;IAC/D,eAAe,CAAC,EAAE,CAAC,KAAK,EAAE,uCAAuC,KAAK,OAAO,CAAC;IAC9E,WAAW,CAAC,EAAE,CAAC,KAAK,EAAE,gCAAgC,KAAK,OAAO,CAAC;IACnE,cAAc,CAAC,EAAE,CAAC,KAAK,EAAE,+BAA+B,KAAK,OAAO,CAAC;IACrE,aAAa,CAAC,EAAE,CAAC,KAAK,EAAE,8BAA8B,KAAK,OAAO,CAAC;IACnE,OAAO,CAAC,EAAE,CAAC,KAAK,EAAE,2BAA2B,KAAK,OAAO,CAAC;IAC1D,yBAAyB,CAAC,EAAE,CAC1B,KAAK,EAAE,wCAAwC,KAC5C,OAAO,CAAC;IACb,SAAS,CAAC,EAAE,CAAC,KAAK,EAAE,6BAA6B,KAAK,OAAO,CAAC;IAC9D,KAAK,CAAC,EAAE,CAAC,KAAK,EAAE,yCAAyC,KAAK,OAAO,CAAC;IACtE,iBAAiB,CAAC,EAAE,CAClB,KAAK,EAAE,kDAAkD,KACtD,OAAO,CAAC;IACb,gBAAgB,CAAC,EAAE,CAAC,KAAK,EAAE,iCAAiC,KAAK,OAAO,CAAC;IACzE,iBAAiB,CAAC,EAAE,MAAM,OAAO,CAAC;IAGlC,CAAC,GAAG,EAAE,MAAM,GAAG,CAAC,CAAC,KAAK,EAAE,GAAG,KAAK,OAAO,CAAC,GAAG,SAAS,CAAC;CACtD,CAAC;AAmQF,QAAA,MAAM,eAAe;;;;;;;;;;;;;;;;;;;;;;;;;;;;;6EAQnB,CAAC;wBACkB,eAAe,CAAC,OAAO,eAAe,EAAE,WAAW,CAAC;AAAzE,wBAA0E;AAa1E,KAAK,eAAe,CAAC,CAAC,EAAE,CAAC,IAAI,CAAC,GAAG;IAChC,QAAO;QACN,MAAM,EAAE,CAAC,CAAC;KAEV,CAAA;CACD,CAAC"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { CopilotChatFeatherSlotProps, CopilotChatWelcomeScreenSlotProps, CopilotChatMessageViewSlotProps, CopilotChatScrollToBottomButtonSlotProps, CopilotChatScrollViewSlotProps, CopilotSidebarWelcomeScreenInputSlotProps, CopilotSidebarWelcomeScreenSuggestionViewSlotProps, CopilotSidebarViewProps } from "./types";
|
|
1
|
+
import type { CopilotChatFeatherSlotProps, CopilotChatInterruptSlotProps, CopilotChatWelcomeScreenSlotProps, CopilotChatMessageViewSlotProps, CopilotChatScrollToBottomButtonSlotProps, CopilotChatScrollViewSlotProps, CopilotSidebarWelcomeScreenInputSlotProps, CopilotSidebarWelcomeScreenSuggestionViewSlotProps, CopilotSidebarViewProps } from "./types";
|
|
2
2
|
type __VLS_Slots = {
|
|
3
3
|
header?: (props: {
|
|
4
4
|
title: string;
|
|
@@ -15,10 +15,12 @@ type __VLS_Slots = {
|
|
|
15
15
|
"scroll-view"?: (props: CopilotChatScrollViewSlotProps) => unknown;
|
|
16
16
|
feather?: (props: CopilotChatFeatherSlotProps) => unknown;
|
|
17
17
|
"scroll-to-bottom-button"?: (props: CopilotChatScrollToBottomButtonSlotProps) => unknown;
|
|
18
|
+
interrupt?: (props: CopilotChatInterruptSlotProps) => unknown;
|
|
18
19
|
input?: (props: CopilotSidebarWelcomeScreenInputSlotProps) => unknown;
|
|
19
20
|
"suggestion-view"?: (props: CopilotSidebarWelcomeScreenSuggestionViewSlotProps) => unknown;
|
|
20
21
|
"welcome-screen"?: (props: CopilotChatWelcomeScreenSlotProps) => unknown;
|
|
21
22
|
"welcome-message"?: () => unknown;
|
|
23
|
+
[key: string]: ((props: any) => unknown) | undefined;
|
|
22
24
|
};
|
|
23
25
|
declare const __VLS_component: import("vue").DefineComponent<CopilotSidebarViewProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
24
26
|
stop: () => any;
|
|
@@ -40,15 +42,15 @@ declare const __VLS_component: import("vue").DefineComponent<CopilotSidebarViewP
|
|
|
40
42
|
"onInput-change"?: ((value: string) => any) | undefined;
|
|
41
43
|
}>, {
|
|
42
44
|
width: number | string;
|
|
43
|
-
position: "left" | "right";
|
|
44
45
|
messages: import("@ag-ui/core").Message[];
|
|
46
|
+
position: "left" | "right";
|
|
45
47
|
isRunning: boolean;
|
|
46
48
|
suggestions: import("@copilotkit/core").Suggestion[];
|
|
47
49
|
suggestionLoadingIndexes: ReadonlyArray<number>;
|
|
48
|
-
|
|
50
|
+
inputMode: import("./types").CopilotChatInputMode;
|
|
51
|
+
autoScroll: import("@copilotkit/core").ɵAutoScrollMode | boolean;
|
|
49
52
|
welcomeScreen: boolean;
|
|
50
53
|
inputValue: string;
|
|
51
|
-
inputMode: import("./types").CopilotChatInputMode;
|
|
52
54
|
inputToolsMenu: (import("./types").ToolsMenuItem | "-")[];
|
|
53
55
|
onFinishTranscribeWithAudio: (audioBlob: Blob) => void | Promise<void>;
|
|
54
56
|
messageFeedback: boolean;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"CopilotSidebarView.vue.d.ts","sourceRoot":"","sources":["../../../../src/v2/components/chat/CopilotSidebarView.vue"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"CopilotSidebarView.vue.d.ts","sourceRoot":"","sources":["../../../../src/v2/components/chat/CopilotSidebarView.vue"],"names":[],"mappings":"AA6IA,OAAO,KAAK,EACV,2BAA2B,EAC3B,6BAA6B,EAC7B,iCAAiC,EACjC,+BAA+B,EAC/B,wCAAwC,EACxC,8BAA8B,EAC9B,yCAAyC,EACzC,kDAAkD,EAClD,uBAAuB,EACxB,MAAM,SAAS,CAAC;AAsBjB,KAAK,WAAW,GAAG;IACjB,MAAM,CAAC,EAAE,CAAC,KAAK,EAAE;QACf,KAAK,EAAE,MAAM,CAAC;QACd,OAAO,EAAE,MAAM,IAAI,CAAC;QACpB,MAAM,EAAE,OAAO,CAAC;KACjB,KAAK,OAAO,CAAC;IACd,eAAe,CAAC,EAAE,CAAC,KAAK,EAAE;QACxB,MAAM,EAAE,OAAO,CAAC;QAChB,MAAM,EAAE,MAAM,IAAI,CAAC;QACnB,IAAI,EAAE,MAAM,IAAI,CAAC;QACjB,KAAK,EAAE,MAAM,IAAI,CAAC;KACnB,KAAK,OAAO,CAAC;IACd,cAAc,CAAC,EAAE,CAAC,KAAK,EAAE,+BAA+B,KAAK,OAAO,CAAC;IACrE,aAAa,CAAC,EAAE,CAAC,KAAK,EAAE,8BAA8B,KAAK,OAAO,CAAC;IACnE,OAAO,CAAC,EAAE,CAAC,KAAK,EAAE,2BAA2B,KAAK,OAAO,CAAC;IAC1D,yBAAyB,CAAC,EAAE,CAC1B,KAAK,EAAE,wCAAwC,KAC5C,OAAO,CAAC;IACb,SAAS,CAAC,EAAE,CAAC,KAAK,EAAE,6BAA6B,KAAK,OAAO,CAAC;IAC9D,KAAK,CAAC,EAAE,CAAC,KAAK,EAAE,yCAAyC,KAAK,OAAO,CAAC;IACtE,iBAAiB,CAAC,EAAE,CAClB,KAAK,EAAE,kDAAkD,KACtD,OAAO,CAAC;IACb,gBAAgB,CAAC,EAAE,CAAC,KAAK,EAAE,iCAAiC,KAAK,OAAO,CAAC;IACzE,iBAAiB,CAAC,EAAE,MAAM,OAAO,CAAC;IAGlC,CAAC,GAAG,EAAE,MAAM,GAAG,CAAC,CAAC,KAAK,EAAE,GAAG,KAAK,OAAO,CAAC,GAAG,SAAS,CAAC;CACtD,CAAC;AAyIF,QAAA,MAAM,eAAe;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;6EAQnB,CAAC;wBACkB,eAAe,CAAC,OAAO,eAAe,EAAE,WAAW,CAAC;AAAzE,wBAA0E;AAa1E,KAAK,eAAe,CAAC,CAAC,EAAE,CAAC,IAAI,CAAC,GAAG;IAChC,QAAO;QACN,MAAM,EAAE,CAAC,CAAC;KAEV,CAAA;CACD,CAAC"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { CopilotChatFeatherSlotProps, CopilotChatMessageViewSlotProps, CopilotChatScrollToBottomButtonSlotProps, CopilotChatScrollViewSlotProps, CopilotChatWelcomeScreenSlotProps, CopilotSidebarWelcomeScreenInputSlotProps, CopilotSidebarWelcomeScreenSuggestionViewSlotProps, CopilotSidebarViewHeaderSlotProps, CopilotSidebarViewProps, CopilotSidebarViewToggleButtonSlotProps } from "./types";
|
|
1
|
+
import type { CopilotChatFeatherSlotProps, CopilotChatInterruptSlotProps, CopilotChatMessageViewSlotProps, CopilotChatScrollToBottomButtonSlotProps, CopilotChatScrollViewSlotProps, CopilotChatWelcomeScreenSlotProps, CopilotSidebarWelcomeScreenInputSlotProps, CopilotSidebarWelcomeScreenSuggestionViewSlotProps, CopilotSidebarViewHeaderSlotProps, CopilotSidebarViewProps, CopilotSidebarViewToggleButtonSlotProps } from "./types";
|
|
2
2
|
type __VLS_Props = Omit<CopilotSidebarViewProps, "defaultOpen">;
|
|
3
3
|
type __VLS_Slots = {
|
|
4
4
|
header?: (props: CopilotSidebarViewHeaderSlotProps) => unknown;
|
|
@@ -7,10 +7,12 @@ type __VLS_Slots = {
|
|
|
7
7
|
"scroll-view"?: (props: CopilotChatScrollViewSlotProps) => unknown;
|
|
8
8
|
feather?: (props: CopilotChatFeatherSlotProps) => unknown;
|
|
9
9
|
"scroll-to-bottom-button"?: (props: CopilotChatScrollToBottomButtonSlotProps) => unknown;
|
|
10
|
+
interrupt?: (props: CopilotChatInterruptSlotProps) => unknown;
|
|
10
11
|
input?: (props: CopilotSidebarWelcomeScreenInputSlotProps) => unknown;
|
|
11
12
|
"suggestion-view"?: (props: CopilotSidebarWelcomeScreenSuggestionViewSlotProps) => unknown;
|
|
12
13
|
"welcome-screen"?: (props: CopilotChatWelcomeScreenSlotProps) => unknown;
|
|
13
14
|
"welcome-message"?: () => unknown;
|
|
15
|
+
[key: string]: ((props: any) => unknown) | undefined;
|
|
14
16
|
};
|
|
15
17
|
declare const __VLS_component: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
16
18
|
stop: () => any;
|
|
@@ -32,15 +34,15 @@ declare const __VLS_component: import("vue").DefineComponent<__VLS_Props, {}, {}
|
|
|
32
34
|
"onInput-change"?: ((value: string) => any) | undefined;
|
|
33
35
|
}>, {
|
|
34
36
|
width: number | string;
|
|
35
|
-
position: "left" | "right";
|
|
36
37
|
messages: import("@ag-ui/core").Message[];
|
|
38
|
+
position: "left" | "right";
|
|
37
39
|
isRunning: boolean;
|
|
38
40
|
suggestions: import("@copilotkit/core").Suggestion[];
|
|
39
41
|
suggestionLoadingIndexes: ReadonlyArray<number>;
|
|
40
|
-
|
|
42
|
+
inputMode: import("./types").CopilotChatInputMode;
|
|
43
|
+
autoScroll: import("@copilotkit/core").ɵAutoScrollMode | boolean;
|
|
41
44
|
welcomeScreen: boolean;
|
|
42
45
|
inputValue: string;
|
|
43
|
-
inputMode: import("./types").CopilotChatInputMode;
|
|
44
46
|
inputToolsMenu: (import("./types").ToolsMenuItem | "-")[];
|
|
45
47
|
onFinishTranscribeWithAudio: (audioBlob: Blob) => void | Promise<void>;
|
|
46
48
|
messageFeedback: boolean;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"CopilotSidebarViewInternal.vue.d.ts","sourceRoot":"","sources":["../../../../src/v2/components/chat/CopilotSidebarViewInternal.vue"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"CopilotSidebarViewInternal.vue.d.ts","sourceRoot":"","sources":["../../../../src/v2/components/chat/CopilotSidebarViewInternal.vue"],"names":[],"mappings":"AAuWA,OAAO,KAAK,EACV,2BAA2B,EAC3B,6BAA6B,EAC7B,+BAA+B,EAC/B,wCAAwC,EACxC,8BAA8B,EAC9B,iCAAiC,EACjC,yCAAyC,EACzC,kDAAkD,EAClD,iCAAiC,EACjC,uBAAuB,EACvB,uCAAuC,EACxC,MAAM,SAAS,CAAC;AAOjB,KAAK,WAAW,GAAG,IAAI,CAAC,uBAAuB,EAAE,aAAa,CAAC,CAAC;AAoBhE,KAAK,WAAW,GAAG;IACjB,MAAM,CAAC,EAAE,CAAC,KAAK,EAAE,iCAAiC,KAAK,OAAO,CAAC;IAC/D,eAAe,CAAC,EAAE,CAAC,KAAK,EAAE,uCAAuC,KAAK,OAAO,CAAC;IAC9E,cAAc,CAAC,EAAE,CAAC,KAAK,EAAE,+BAA+B,KAAK,OAAO,CAAC;IACrE,aAAa,CAAC,EAAE,CAAC,KAAK,EAAE,8BAA8B,KAAK,OAAO,CAAC;IACnE,OAAO,CAAC,EAAE,CAAC,KAAK,EAAE,2BAA2B,KAAK,OAAO,CAAC;IAC1D,yBAAyB,CAAC,EAAE,CAC1B,KAAK,EAAE,wCAAwC,KAC5C,OAAO,CAAC;IACb,SAAS,CAAC,EAAE,CAAC,KAAK,EAAE,6BAA6B,KAAK,OAAO,CAAC;IAC9D,KAAK,CAAC,EAAE,CAAC,KAAK,EAAE,yCAAyC,KAAK,OAAO,CAAC;IACtE,iBAAiB,CAAC,EAAE,CAClB,KAAK,EAAE,kDAAkD,KACtD,OAAO,CAAC;IACb,gBAAgB,CAAC,EAAE,CAAC,KAAK,EAAE,iCAAiC,KAAK,OAAO,CAAC;IACzE,iBAAiB,CAAC,EAAE,MAAM,OAAO,CAAC;IAGlC,CAAC,GAAG,EAAE,MAAM,GAAG,CAAC,CAAC,KAAK,EAAE,GAAG,KAAK,OAAO,CAAC,GAAG,SAAS,CAAC;CACtD,CAAC;AAqWF,QAAA,MAAM,eAAe;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;6EAQnB,CAAC;wBACkB,eAAe,CAAC,OAAO,eAAe,EAAE,WAAW,CAAC;AAAzE,wBAA0E;AAa1E,KAAK,eAAe,CAAC,CAAC,EAAE,CAAC,IAAI,CAAC,GAAG;IAChC,QAAO;QACN,MAAM,EAAE,CAAC,CAAC;KAEV,CAAA;CACD,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"CopilotThreadsDrawer.vue.d.ts","sourceRoot":"","sources":["../../../../src/v2/components/chat/CopilotThreadsDrawer.vue"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"CopilotThreadsDrawer.vue.d.ts","sourceRoot":"","sources":["../../../../src/v2/components/chat/CopilotThreadsDrawer.vue"],"names":[],"mappings":"AAiTA,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,yBAAyB,CAAC;AAItD,KAAK,WAAW,GAAG;IACf,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,cAAc,CAAC,EAAE,CAAC,QAAQ,EAAE,MAAM,KAAK,IAAI,CAAC;IAC5C,WAAW,CAAC,EAAE,MAAM,IAAI,CAAC;IACzB,UAAU,CAAC,EAAE,MAAM,IAAI,CAAC;IACxB,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,KAAK,CAAC,EAAE,MAAM,CAAC;IACf;;;;OAIG;IACH,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB;;;;;;;;;;OAUG;IACH,WAAW,CAAC,EAAE,OAAO,CAAC;IACtB,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,UAAU,CAAC,EAAE,MAAM,CAAC;CACrB,CAAC;AA6JJ,KAAK,WAAW,GAAG;IACjB,OAAO,IAAI,OAAO,CAAC;IACnB;;;;;;;;;;;;;OAaG;IACH,GAAG,CAAC,KAAK,EAAE;QAAE,MAAM,EAAE,MAAM,CAAA;KAAE,GAAG,OAAO,CAAC;CACzC,CAAC;AAgIF,QAAA,MAAM,eAAe;;;;;iBAjTH,OAAO;gBAER,MAAM;6EAuTrB,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"}
|
|
@@ -5,6 +5,7 @@ type __VLS_Props = {
|
|
|
5
5
|
} & DefaultMarkdownRendererProps;
|
|
6
6
|
declare const _default: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {
|
|
7
7
|
isStreaming: boolean;
|
|
8
|
+
caret: boolean;
|
|
8
9
|
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
9
10
|
export default _default;
|
|
10
11
|
//# sourceMappingURL=StreamingMarkdownDefault.vue.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"StreamingMarkdownDefault.vue.d.ts","sourceRoot":"","sources":["../../../../src/v2/components/chat/StreamingMarkdownDefault.vue"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"StreamingMarkdownDefault.vue.d.ts","sourceRoot":"","sources":["../../../../src/v2/components/chat/StreamingMarkdownDefault.vue"],"names":[],"mappings":"AAmDA,OAAO,KAAK,EAAE,4BAA4B,EAAE,MAAM,mCAAmC,CAAC;AAEtF,KAAK,WAAW,GAAG;IAAE,OAAO,EAAE,MAAM,CAAC;IAAC,WAAW,CAAC,EAAE,OAAO,CAAA;CAAE,GAAG,4BAA4B,CAAC;;iBAAzC,OAAO;;;AA+E3D,wBAOG"}
|
|
@@ -1,7 +1,6 @@
|
|
|
1
|
-
|
|
2
|
-
export
|
|
3
|
-
|
|
4
|
-
}
|
|
1
|
+
import type { ɵAudioRecorderState } from "@copilotkit/core";
|
|
2
|
+
export type AudioRecorderState = ɵAudioRecorderState;
|
|
3
|
+
export { ɵAudioRecorderError as AudioRecorderError } from "@copilotkit/core";
|
|
5
4
|
export interface CopilotChatAudioRecorderRef {
|
|
6
5
|
state: AudioRecorderState;
|
|
7
6
|
start: () => Promise<void>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"audioRecorder.d.ts","sourceRoot":"","sources":["../../../../src/v2/components/chat/audioRecorder.ts"],"names":[],"mappings":"AAAA,
|
|
1
|
+
{"version":3,"file":"audioRecorder.d.ts","sourceRoot":"","sources":["../../../../src/v2/components/chat/audioRecorder.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,kBAAkB,CAAC;AAE5D,MAAM,MAAM,kBAAkB,GAAG,mBAAmB,CAAC;AAErD,OAAO,EAAE,mBAAmB,IAAI,kBAAkB,EAAE,MAAM,kBAAkB,CAAC;AAE7E,MAAM,WAAW,2BAA2B;IAC1C,KAAK,EAAE,kBAAkB,CAAC;IAC1B,KAAK,EAAE,MAAM,OAAO,CAAC,IAAI,CAAC,CAAC;IAC3B,IAAI,EAAE,MAAM,OAAO,CAAC,IAAI,CAAC,CAAC;IAC1B,OAAO,EAAE,MAAM,IAAI,CAAC;CACrB"}
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import type { Message, ToolCall
|
|
1
|
+
import type { Message, ToolCall } from "@ag-ui/core";
|
|
2
2
|
import type { CopilotChatToolCallRenderSlotProps } from "./types";
|
|
3
3
|
import type { VueToolCallRenderer, VueToolCallRendererRenderProps } from "../../types";
|
|
4
|
-
export declare function findToolMessage(messages: Message[], toolCallId: string): ToolMessage | undefined;
|
|
5
4
|
export declare function getToolCallSlotName(toolName: string): `tool-call-${string}`;
|
|
6
|
-
|
|
5
|
+
/** Props for a `tool-call` / `tool-call-<name>` slot. */
|
|
7
6
|
export declare function getToolCallRenderProps(toolCall: ToolCall, messages: Message[], executingToolCallIds: ReadonlySet<string>): CopilotChatToolCallRenderSlotProps;
|
|
7
|
+
/** Props for a registered renderer's `render`. */
|
|
8
8
|
export declare function getCoreRenderProps(toolCall: ToolCall, messages: Message[], executingToolCallIds: ReadonlySet<string>): VueToolCallRendererRenderProps<unknown>;
|
|
9
9
|
export declare function getToolCallMemoDeps(toolCall: ToolCall, messages: Message[], executingToolCallIds: ReadonlySet<string>, renderToolCalls: readonly VueToolCallRenderer<unknown>[], agentId?: string): unknown[];
|
|
10
10
|
//# sourceMappingURL=copilotChatToolCallItemRender.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"copilotChatToolCallItemRender.d.ts","sourceRoot":"","sources":["../../../../src/v2/components/chat/copilotChatToolCallItemRender.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,OAAO,EAAE,QAAQ,EAAE,
|
|
1
|
+
{"version":3,"file":"copilotChatToolCallItemRender.d.ts","sourceRoot":"","sources":["../../../../src/v2/components/chat/copilotChatToolCallItemRender.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,OAAO,EAAE,QAAQ,EAAE,MAAM,aAAa,CAAC;AAOrD,OAAO,KAAK,EAAE,kCAAkC,EAAE,MAAM,SAAS,CAAC;AAClE,OAAO,KAAK,EACV,mBAAmB,EACnB,8BAA8B,EAC/B,MAAM,aAAa,CAAC;AAErB,wBAAgB,mBAAmB,CAAC,QAAQ,EAAE,MAAM,GAAG,aAAa,MAAM,EAAE,CAE3E;AAED,yDAAyD;AACzD,wBAAgB,sBAAsB,CACpC,QAAQ,EAAE,QAAQ,EAClB,QAAQ,EAAE,OAAO,EAAE,EACnB,oBAAoB,EAAE,WAAW,CAAC,MAAM,CAAC,GACxC,kCAAkC,CAQpC;AAED,kDAAkD;AAClD,wBAAgB,kBAAkB,CAChC,QAAQ,EAAE,QAAQ,EAClB,QAAQ,EAAE,OAAO,EAAE,EACnB,oBAAoB,EAAE,WAAW,CAAC,MAAM,CAAC,GACxC,8BAA8B,CAAC,OAAO,CAAC,CAMzC;AAED,wBAAgB,mBAAmB,CACjC,QAAQ,EAAE,QAAQ,EAClB,QAAQ,EAAE,OAAO,EAAE,EACnB,oBAAoB,EAAE,WAAW,CAAC,MAAM,CAAC,EACzC,eAAe,EAAE,SAAS,mBAAmB,CAAC,OAAO,CAAC,EAAE,EACxD,OAAO,GAAE,MAAsD,GAC9D,OAAO,EAAE,CAUX"}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import type { Slots } from "vue";
|
|
2
|
+
/**
|
|
3
|
+
* Returns the names of the slots that a wrapper passes on to the component it
|
|
4
|
+
* wraps: every slot in `slots` except the ones in `ownSlots`, which the
|
|
5
|
+
* wrapper renders itself.
|
|
6
|
+
*
|
|
7
|
+
* CopilotChat passes every slot except `chat-view` to CopilotChatView.
|
|
8
|
+
* CopilotSidebar, CopilotPopup, and their view components use this rule at
|
|
9
|
+
* each layer, so a slot that works on CopilotChat also works on them.
|
|
10
|
+
*/
|
|
11
|
+
export declare function forwardedSlotNames(slots: Slots, ownSlots?: readonly string[]): string[];
|
|
12
|
+
//# sourceMappingURL=forwarded-slots.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"forwarded-slots.d.ts","sourceRoot":"","sources":["../../../../src/v2/components/chat/forwarded-slots.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,KAAK,CAAC;AAEjC;;;;;;;;GAQG;AACH,wBAAgB,kBAAkB,CAChC,KAAK,EAAE,KAAK,EACZ,QAAQ,GAAE,SAAS,MAAM,EAAO,GAC/B,MAAM,EAAE,CAEV"}
|
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
export * from "./types";
|
|
2
|
-
export { default as BasicMarkdown } from "./BasicMarkdown.vue";
|
|
3
2
|
export { default as StreamingMarkdownDefault } from "./StreamingMarkdownDefault.vue";
|
|
4
3
|
export { default as CopilotChatAssistantMessage } from "./CopilotChatAssistantMessage.vue";
|
|
5
4
|
export { default as CopilotChatAudioRecorder } from "./CopilotChatAudioRecorder.vue";
|
|
@@ -38,10 +37,10 @@ export declare const CopilotChat: {
|
|
|
38
37
|
"select-suggestion": (suggestion: import("@copilotkit/core").Suggestion, index: number) => any;
|
|
39
38
|
"input-change": (value: string) => any;
|
|
40
39
|
}, import("vue").PublicProps, {
|
|
41
|
-
|
|
40
|
+
inputMode: import("./types").CopilotChatInputMode;
|
|
41
|
+
autoScroll: import("@copilotkit/core").ɵAutoScrollMode | boolean;
|
|
42
42
|
welcomeScreen: boolean;
|
|
43
43
|
inputValue: string;
|
|
44
|
-
inputMode: import("./types").CopilotChatInputMode;
|
|
45
44
|
inputToolsMenu: (import("./types").ToolsMenuItem | "-")[];
|
|
46
45
|
onFinishTranscribeWithAudio: (audioBlob: Blob) => void | Promise<void>;
|
|
47
46
|
messageFeedback: boolean;
|
|
@@ -62,10 +61,10 @@ export declare const CopilotChat: {
|
|
|
62
61
|
"onSelect-suggestion"?: ((suggestion: import("@copilotkit/core").Suggestion, index: number) => any) | undefined;
|
|
63
62
|
"onInput-change"?: ((value: string) => any) | undefined;
|
|
64
63
|
}>, {}, {}, {}, {}, {
|
|
65
|
-
|
|
64
|
+
inputMode: import("./types").CopilotChatInputMode;
|
|
65
|
+
autoScroll: import("@copilotkit/core").ɵAutoScrollMode | boolean;
|
|
66
66
|
welcomeScreen: boolean;
|
|
67
67
|
inputValue: string;
|
|
68
|
-
inputMode: import("./types").CopilotChatInputMode;
|
|
69
68
|
inputToolsMenu: (import("./types").ToolsMenuItem | "-")[];
|
|
70
69
|
onFinishTranscribeWithAudio: (audioBlob: Blob) => void | Promise<void>;
|
|
71
70
|
messageFeedback: boolean;
|
|
@@ -92,10 +91,10 @@ export declare const CopilotChat: {
|
|
|
92
91
|
"select-suggestion": (suggestion: import("@copilotkit/core").Suggestion, index: number) => any;
|
|
93
92
|
"input-change": (value: string) => any;
|
|
94
93
|
}, string, {
|
|
95
|
-
|
|
94
|
+
inputMode: import("./types").CopilotChatInputMode;
|
|
95
|
+
autoScroll: import("@copilotkit/core").ɵAutoScrollMode | boolean;
|
|
96
96
|
welcomeScreen: boolean;
|
|
97
97
|
inputValue: string;
|
|
98
|
-
inputMode: import("./types").CopilotChatInputMode;
|
|
99
98
|
inputToolsMenu: (import("./types").ToolsMenuItem | "-")[];
|
|
100
99
|
onFinishTranscribeWithAudio: (audioBlob: Blob) => void | Promise<void>;
|
|
101
100
|
messageFeedback: boolean;
|
|
@@ -134,15 +133,15 @@ export declare const CopilotChat: {
|
|
|
134
133
|
"select-suggestion": (suggestion: import("@copilotkit/core").Suggestion, index: number) => any;
|
|
135
134
|
"input-change": (value: string) => any;
|
|
136
135
|
}, import("vue").PublicProps, {
|
|
137
|
-
hasExplicitThreadId: boolean;
|
|
138
136
|
messages: import("@ag-ui/core").Message[];
|
|
137
|
+
hasExplicitThreadId: boolean;
|
|
139
138
|
isRunning: boolean;
|
|
140
139
|
suggestions: import("@copilotkit/core").Suggestion[];
|
|
141
140
|
suggestionLoadingIndexes: ReadonlyArray<number>;
|
|
142
|
-
|
|
141
|
+
inputMode: import("./types").CopilotChatInputMode;
|
|
142
|
+
autoScroll: import("@copilotkit/core").ɵAutoScrollMode | boolean;
|
|
143
143
|
welcomeScreen: boolean;
|
|
144
144
|
inputValue: string;
|
|
145
|
-
inputMode: import("./types").CopilotChatInputMode;
|
|
146
145
|
inputToolsMenu: (import("./types").ToolsMenuItem | "-")[];
|
|
147
146
|
isConnecting: boolean;
|
|
148
147
|
onFinishTranscribeWithAudio: (audioBlob: Blob) => void | Promise<void>;
|
|
@@ -164,15 +163,15 @@ export declare const CopilotChat: {
|
|
|
164
163
|
"onSelect-suggestion"?: ((suggestion: import("@copilotkit/core").Suggestion, index: number) => any) | undefined;
|
|
165
164
|
"onInput-change"?: ((value: string) => any) | undefined;
|
|
166
165
|
}>, {}, {}, {}, {}, {
|
|
167
|
-
hasExplicitThreadId: boolean;
|
|
168
166
|
messages: import("@ag-ui/core").Message[];
|
|
167
|
+
hasExplicitThreadId: boolean;
|
|
169
168
|
isRunning: boolean;
|
|
170
169
|
suggestions: import("@copilotkit/core").Suggestion[];
|
|
171
170
|
suggestionLoadingIndexes: ReadonlyArray<number>;
|
|
172
|
-
|
|
171
|
+
inputMode: import("./types").CopilotChatInputMode;
|
|
172
|
+
autoScroll: import("@copilotkit/core").ɵAutoScrollMode | boolean;
|
|
173
173
|
welcomeScreen: boolean;
|
|
174
174
|
inputValue: string;
|
|
175
|
-
inputMode: import("./types").CopilotChatInputMode;
|
|
176
175
|
inputToolsMenu: (import("./types").ToolsMenuItem | "-")[];
|
|
177
176
|
isConnecting: boolean;
|
|
178
177
|
onFinishTranscribeWithAudio: (audioBlob: Blob) => void | Promise<void>;
|
|
@@ -200,15 +199,15 @@ export declare const CopilotChat: {
|
|
|
200
199
|
"select-suggestion": (suggestion: import("@copilotkit/core").Suggestion, index: number) => any;
|
|
201
200
|
"input-change": (value: string) => any;
|
|
202
201
|
}, string, {
|
|
203
|
-
hasExplicitThreadId: boolean;
|
|
204
202
|
messages: import("@ag-ui/core").Message[];
|
|
203
|
+
hasExplicitThreadId: boolean;
|
|
205
204
|
isRunning: boolean;
|
|
206
205
|
suggestions: import("@copilotkit/core").Suggestion[];
|
|
207
206
|
suggestionLoadingIndexes: ReadonlyArray<number>;
|
|
208
|
-
|
|
207
|
+
inputMode: import("./types").CopilotChatInputMode;
|
|
208
|
+
autoScroll: import("@copilotkit/core").ɵAutoScrollMode | boolean;
|
|
209
209
|
welcomeScreen: boolean;
|
|
210
210
|
inputValue: string;
|
|
211
|
-
inputMode: import("./types").CopilotChatInputMode;
|
|
212
211
|
inputToolsMenu: (import("./types").ToolsMenuItem | "-")[];
|
|
213
212
|
isConnecting: boolean;
|
|
214
213
|
onFinishTranscribeWithAudio: (audioBlob: Blob) => void | Promise<void>;
|
|
@@ -371,10 +370,10 @@ export declare const CopilotPopupView: {
|
|
|
371
370
|
isRunning: boolean;
|
|
372
371
|
suggestions: import("@copilotkit/core").Suggestion[];
|
|
373
372
|
suggestionLoadingIndexes: ReadonlyArray<number>;
|
|
374
|
-
|
|
373
|
+
inputMode: import("./types").CopilotChatInputMode;
|
|
374
|
+
autoScroll: import("@copilotkit/core").ɵAutoScrollMode | boolean;
|
|
375
375
|
welcomeScreen: boolean;
|
|
376
376
|
inputValue: string;
|
|
377
|
-
inputMode: import("./types").CopilotChatInputMode;
|
|
378
377
|
inputToolsMenu: (import("./types").ToolsMenuItem | "-")[];
|
|
379
378
|
onFinishTranscribeWithAudio: (audioBlob: Blob) => void | Promise<void>;
|
|
380
379
|
messageFeedback: boolean;
|
|
@@ -403,10 +402,10 @@ export declare const CopilotPopupView: {
|
|
|
403
402
|
isRunning: boolean;
|
|
404
403
|
suggestions: import("@copilotkit/core").Suggestion[];
|
|
405
404
|
suggestionLoadingIndexes: ReadonlyArray<number>;
|
|
406
|
-
|
|
405
|
+
inputMode: import("./types").CopilotChatInputMode;
|
|
406
|
+
autoScroll: import("@copilotkit/core").ɵAutoScrollMode | boolean;
|
|
407
407
|
welcomeScreen: boolean;
|
|
408
408
|
inputValue: string;
|
|
409
|
-
inputMode: import("./types").CopilotChatInputMode;
|
|
410
409
|
inputToolsMenu: (import("./types").ToolsMenuItem | "-")[];
|
|
411
410
|
onFinishTranscribeWithAudio: (audioBlob: Blob) => void | Promise<void>;
|
|
412
411
|
messageFeedback: boolean;
|
|
@@ -441,10 +440,10 @@ export declare const CopilotPopupView: {
|
|
|
441
440
|
isRunning: boolean;
|
|
442
441
|
suggestions: import("@copilotkit/core").Suggestion[];
|
|
443
442
|
suggestionLoadingIndexes: ReadonlyArray<number>;
|
|
444
|
-
|
|
443
|
+
inputMode: import("./types").CopilotChatInputMode;
|
|
444
|
+
autoScroll: import("@copilotkit/core").ɵAutoScrollMode | boolean;
|
|
445
445
|
welcomeScreen: boolean;
|
|
446
446
|
inputValue: string;
|
|
447
|
-
inputMode: import("./types").CopilotChatInputMode;
|
|
448
447
|
inputToolsMenu: (import("./types").ToolsMenuItem | "-")[];
|
|
449
448
|
onFinishTranscribeWithAudio: (audioBlob: Blob) => void | Promise<void>;
|
|
450
449
|
messageFeedback: boolean;
|
|
@@ -452,12 +451,14 @@ export declare const CopilotPopupView: {
|
|
|
452
451
|
clickOutsideToClose: boolean;
|
|
453
452
|
}, {}, string, {}, import("vue").GlobalComponents, import("vue").GlobalDirectives, string, import("vue").ComponentProvideOptions> & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps & (new () => {
|
|
454
453
|
$slots: {
|
|
454
|
+
[key: string]: ((props: any) => unknown) | undefined;
|
|
455
455
|
header?: (props: import("./types").CopilotPopupViewHeaderSlotProps) => unknown;
|
|
456
456
|
"toggle-button"?: (props: import("./types").CopilotPopupViewToggleButtonSlotProps) => unknown;
|
|
457
457
|
"message-view"?: (props: import("./types").CopilotChatMessageViewSlotProps) => unknown;
|
|
458
458
|
"scroll-view"?: (props: import("./types").CopilotChatScrollViewSlotProps) => unknown;
|
|
459
459
|
feather?: (props: import("./types").CopilotChatFeatherSlotProps) => unknown;
|
|
460
460
|
"scroll-to-bottom-button"?: (props: import("./types").CopilotChatScrollToBottomButtonSlotProps) => unknown;
|
|
461
|
+
interrupt?: (props: import("./types").CopilotChatInterruptSlotProps) => unknown;
|
|
461
462
|
input?: (props: import("./types").CopilotSidebarWelcomeScreenInputSlotProps) => unknown;
|
|
462
463
|
"suggestion-view"?: (props: import("./types").CopilotSidebarWelcomeScreenSuggestionViewSlotProps) => unknown;
|
|
463
464
|
"welcome-screen"?: (props: import("./types").CopilotChatWelcomeScreenSlotProps) => unknown;
|
|
@@ -553,15 +554,15 @@ export declare const CopilotSidebarView: {
|
|
|
553
554
|
"input-change": (value: string) => any;
|
|
554
555
|
}, import("vue").PublicProps, {
|
|
555
556
|
width: number | string;
|
|
556
|
-
position: "left" | "right";
|
|
557
557
|
messages: import("@ag-ui/core").Message[];
|
|
558
|
+
position: "left" | "right";
|
|
558
559
|
isRunning: boolean;
|
|
559
560
|
suggestions: import("@copilotkit/core").Suggestion[];
|
|
560
561
|
suggestionLoadingIndexes: ReadonlyArray<number>;
|
|
561
|
-
|
|
562
|
+
inputMode: import("./types").CopilotChatInputMode;
|
|
563
|
+
autoScroll: import("@copilotkit/core").ɵAutoScrollMode | boolean;
|
|
562
564
|
welcomeScreen: boolean;
|
|
563
565
|
inputValue: string;
|
|
564
|
-
inputMode: import("./types").CopilotChatInputMode;
|
|
565
566
|
inputToolsMenu: (import("./types").ToolsMenuItem | "-")[];
|
|
566
567
|
onFinishTranscribeWithAudio: (audioBlob: Blob) => void | Promise<void>;
|
|
567
568
|
messageFeedback: boolean;
|
|
@@ -584,15 +585,15 @@ export declare const CopilotSidebarView: {
|
|
|
584
585
|
"onInput-change"?: ((value: string) => any) | undefined;
|
|
585
586
|
}>, {}, {}, {}, {}, {
|
|
586
587
|
width: number | string;
|
|
587
|
-
position: "left" | "right";
|
|
588
588
|
messages: import("@ag-ui/core").Message[];
|
|
589
|
+
position: "left" | "right";
|
|
589
590
|
isRunning: boolean;
|
|
590
591
|
suggestions: import("@copilotkit/core").Suggestion[];
|
|
591
592
|
suggestionLoadingIndexes: ReadonlyArray<number>;
|
|
592
|
-
|
|
593
|
+
inputMode: import("./types").CopilotChatInputMode;
|
|
594
|
+
autoScroll: import("@copilotkit/core").ɵAutoScrollMode | boolean;
|
|
593
595
|
welcomeScreen: boolean;
|
|
594
596
|
inputValue: string;
|
|
595
|
-
inputMode: import("./types").CopilotChatInputMode;
|
|
596
597
|
inputToolsMenu: (import("./types").ToolsMenuItem | "-")[];
|
|
597
598
|
onFinishTranscribeWithAudio: (audioBlob: Blob) => void | Promise<void>;
|
|
598
599
|
messageFeedback: boolean;
|
|
@@ -621,21 +622,22 @@ export declare const CopilotSidebarView: {
|
|
|
621
622
|
"input-change": (value: string) => any;
|
|
622
623
|
}, string, {
|
|
623
624
|
width: number | string;
|
|
624
|
-
position: "left" | "right";
|
|
625
625
|
messages: import("@ag-ui/core").Message[];
|
|
626
|
+
position: "left" | "right";
|
|
626
627
|
isRunning: boolean;
|
|
627
628
|
suggestions: import("@copilotkit/core").Suggestion[];
|
|
628
629
|
suggestionLoadingIndexes: ReadonlyArray<number>;
|
|
629
|
-
|
|
630
|
+
inputMode: import("./types").CopilotChatInputMode;
|
|
631
|
+
autoScroll: import("@copilotkit/core").ɵAutoScrollMode | boolean;
|
|
630
632
|
welcomeScreen: boolean;
|
|
631
633
|
inputValue: string;
|
|
632
|
-
inputMode: import("./types").CopilotChatInputMode;
|
|
633
634
|
inputToolsMenu: (import("./types").ToolsMenuItem | "-")[];
|
|
634
635
|
onFinishTranscribeWithAudio: (audioBlob: Blob) => void | Promise<void>;
|
|
635
636
|
messageFeedback: boolean;
|
|
636
637
|
defaultOpen: boolean;
|
|
637
638
|
}, {}, string, {}, import("vue").GlobalComponents, import("vue").GlobalDirectives, string, import("vue").ComponentProvideOptions> & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps & (new () => {
|
|
638
639
|
$slots: {
|
|
640
|
+
[key: string]: ((props: any) => unknown) | undefined;
|
|
639
641
|
header?: (props: {
|
|
640
642
|
title: string;
|
|
641
643
|
onClose: () => void;
|
|
@@ -651,6 +653,7 @@ export declare const CopilotSidebarView: {
|
|
|
651
653
|
"scroll-view"?: (props: import("./types").CopilotChatScrollViewSlotProps) => unknown;
|
|
652
654
|
feather?: (props: import("./types").CopilotChatFeatherSlotProps) => unknown;
|
|
653
655
|
"scroll-to-bottom-button"?: (props: import("./types").CopilotChatScrollToBottomButtonSlotProps) => unknown;
|
|
656
|
+
interrupt?: (props: import("./types").CopilotChatInterruptSlotProps) => unknown;
|
|
654
657
|
input?: (props: import("./types").CopilotSidebarWelcomeScreenInputSlotProps) => unknown;
|
|
655
658
|
"suggestion-view"?: (props: import("./types").CopilotSidebarWelcomeScreenSuggestionViewSlotProps) => unknown;
|
|
656
659
|
"welcome-screen"?: (props: import("./types").CopilotChatWelcomeScreenSlotProps) => unknown;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/v2/components/chat/index.ts"],"names":[],"mappings":"AAAA,cAAc,SAAS,CAAC;AACxB,OAAO,EAAE,OAAO,IAAI,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/v2/components/chat/index.ts"],"names":[],"mappings":"AAAA,cAAc,SAAS,CAAC;AACxB,OAAO,EAAE,OAAO,IAAI,wBAAwB,EAAE,MAAM,gCAAgC,CAAC;AACrF,OAAO,EAAE,OAAO,IAAI,2BAA2B,EAAE,MAAM,mCAAmC,CAAC;AAC3F,OAAO,EAAE,OAAO,IAAI,wBAAwB,EAAE,MAAM,gCAAgC,CAAC;AAGrF,OAAO,EAAE,OAAO,IAAI,gBAAgB,EAAE,MAAM,wBAAwB,CAAC;AACrE,OAAO,EAAE,OAAO,IAAI,0BAA0B,EAAE,MAAM,kCAAkC,CAAC;AACzF,OAAO,EAAE,OAAO,IAAI,6BAA6B,EAAE,MAAM,qCAAqC,CAAC;AAC/F,OAAO,EAAE,OAAO,IAAI,sBAAsB,EAAE,MAAM,8BAA8B,CAAC;AACjF,OAAO,EAAE,OAAO,IAAI,2BAA2B,EAAE,MAAM,mCAAmC,CAAC;AAC3F,OAAO,EAAE,OAAO,IAAI,yBAAyB,EAAE,MAAM,iCAAiC,CAAC;AACvF,OAAO,EAAE,OAAO,IAAI,yBAAyB,EAAE,MAAM,iCAAiC,CAAC;AACvF,OAAO,EAAE,OAAO,IAAI,wBAAwB,EAAE,MAAM,gCAAgC,CAAC;AACrF,OAAO,EAAE,OAAO,IAAI,wBAAwB,EAAE,MAAM,gCAAgC,CAAC;AACrF,OAAO,EAAE,OAAO,IAAI,sBAAsB,EAAE,MAAM,8BAA8B,CAAC;AACjF,OAAO,EAAE,OAAO,IAAI,sBAAsB,EAAE,MAAM,8BAA8B,CAAC;AACjF,OAAO,EAAE,OAAO,IAAI,eAAe,EAAE,MAAM,uBAAuB,CAAC;AACnE,OAAO,EAAE,OAAO,IAAI,oBAAoB,EAAE,MAAM,4BAA4B,CAAC;AAE7E,OAAO,gCAAgC,MAAM,oCAAoC,CAAC;AAClF,OAAO,+BAA+B,MAAM,mCAAmC,CAAC;AAShF,eAAO,MAAM,WAAW;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAEtB,CAAC;AAEH,eAAO,MAAM,uBAAuB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAGlC,CAAC;AAEH,OAAO,EAAE,+BAA+B,EAAE,gCAAgC,EAAE,CAAC;AAE7E,eAAO,MAAM,kBAAkB;;;;;;;;;;;;;;;;;;;;;;;;;CAG7B,CAAC;AAEH,eAAO,MAAM,gBAAgB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAE3B,CAAC;AAEH,OAAO,EAAE,OAAO,IAAI,YAAY,EAAE,MAAM,oBAAoB,CAAC;AAC7D,OAAO,EAAE,OAAO,IAAI,cAAc,EAAE,MAAM,sBAAsB,CAAC;AAEjE,eAAO,MAAM,kBAAkB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAE7B,CAAC"}
|
|
@@ -1,7 +1,8 @@
|
|
|
1
1
|
import type { Ref } from "vue";
|
|
2
2
|
/**
|
|
3
3
|
* Whether the user hid the Inspector buttons in the message toolbars ("Hide
|
|
4
|
-
* this icon"), until the page reloads.
|
|
4
|
+
* this icon"), until the page reloads. Core's `ɵinspectorShortcuts` holds
|
|
5
|
+
* the page-lifetime preference.
|
|
5
6
|
* @internal
|
|
6
7
|
*/
|
|
7
8
|
export declare function useInspectorShortcutsHidden(): Readonly<Ref<boolean>>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"inspector-shortcuts.d.ts","sourceRoot":"","sources":["../../../../src/v2/components/chat/inspector-shortcuts.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"inspector-shortcuts.d.ts","sourceRoot":"","sources":["../../../../src/v2/components/chat/inspector-shortcuts.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,GAAG,EAAE,MAAM,KAAK,CAAC;AAE/B;;;;;GAKG;AACH,wBAAgB,2BAA2B,IAAI,QAAQ,CAAC,GAAG,CAAC,OAAO,CAAC,CAAC,CAOpE;AAED,2EAA2E;AAC3E,wBAAgB,sBAAsB,IAAI,IAAI,CAE7C;AAED,oEAAoE;AACpE,wBAAgB,wBAAwB,IAAI,IAAI,CAE/C"}
|
|
@@ -1,13 +1,12 @@
|
|
|
1
1
|
import type { AssistantMessage } from "@ag-ui/core";
|
|
2
2
|
import type { CopilotKitCore } from "@copilotkit/core";
|
|
3
|
-
import
|
|
4
|
-
import type {
|
|
3
|
+
import { ɵFeedbackCommentController } from "@copilotkit/core";
|
|
4
|
+
import type { ɵMessageFeedbackControls, ɵMessageFeedbackScope } from "@copilotkit/core";
|
|
5
|
+
import type { ComputedRef, InjectionKey, Ref, ShallowRef, WritableComputedRef } from "vue";
|
|
5
6
|
/** The chat whose assistant messages collect feedback for Learning. */
|
|
6
|
-
export
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
readonly threadId: string;
|
|
10
|
-
}
|
|
7
|
+
export type MessageFeedbackScope = ɵMessageFeedbackScope;
|
|
8
|
+
/** Current feedback for one assistant message, and how to change it. */
|
|
9
|
+
export type MessageFeedbackControls = ɵMessageFeedbackControls;
|
|
11
10
|
/**
|
|
12
11
|
* Provided by the message view while Learning is on for this chat. Assistant
|
|
13
12
|
* messages without it show thumbs only when the app passes its own handlers
|
|
@@ -16,73 +15,43 @@ export interface MessageFeedbackScope {
|
|
|
16
15
|
*/
|
|
17
16
|
export declare const MessageFeedbackScopeKey: InjectionKey<Ref<MessageFeedbackScope | null>>;
|
|
18
17
|
/**
|
|
19
|
-
* Whether the thumbs record feedback for Learning.
|
|
20
|
-
*
|
|
21
|
-
* capture reconnects or is stopped, so the buttons do not flicker. Ratings
|
|
22
|
-
* given meanwhile still show but, like any Trajectory event, are not sent.
|
|
18
|
+
* Whether the thumbs record feedback for Learning. See core's
|
|
19
|
+
* `ɵisLearningFeedbackEnabled` for the rules.
|
|
23
20
|
* @internal
|
|
24
21
|
*/
|
|
25
22
|
export declare function useLearningFeedbackEnabled(copilotkit: Ref<CopilotKitCore>): ComputedRef<boolean>;
|
|
26
|
-
/** Current feedback for one assistant message, and how to change it. */
|
|
27
|
-
export interface MessageFeedbackControls {
|
|
28
|
-
readonly feedback: MessageFeedback | undefined;
|
|
29
|
-
/** Gives `rating`; a different rating than before starts without a comment. */
|
|
30
|
-
readonly rate: (rating: MessageFeedbackRating) => void;
|
|
31
|
-
/** Removes the rating and its comment. */
|
|
32
|
-
readonly clear: () => void;
|
|
33
|
-
/** Sets the current rating's comment; an empty one removes it. */
|
|
34
|
-
readonly comment: (comment: string) => void;
|
|
35
|
-
}
|
|
36
23
|
/** Feedback controls for `message`, or `null` when this chat collects none. */
|
|
37
24
|
export declare function useMessageFeedback(message: Ref<AssistantMessage>): ComputedRef<MessageFeedbackControls | null>;
|
|
38
|
-
/**
|
|
39
|
-
* How long the pointer may be away from the rating and its comment before the
|
|
40
|
-
* comment closes: enough to cross the gap between them, short enough that
|
|
41
|
-
* passing over a rating does not leave it open.
|
|
42
|
-
*/
|
|
43
|
-
export declare const FEEDBACK_COMMENT_CLOSE_DELAY_MS = 150;
|
|
44
25
|
/** The comment popover of one rated message: when it shows and what it holds. */
|
|
45
26
|
export interface FeedbackComment {
|
|
46
|
-
readonly open:
|
|
27
|
+
readonly open: ComputedRef<boolean>;
|
|
47
28
|
/** The comment being edited. */
|
|
48
|
-
readonly draft:
|
|
29
|
+
readonly draft: WritableComputedRef<string>;
|
|
49
30
|
/** Grows each time the field should take focus: after a keyboard rating. */
|
|
50
|
-
readonly focusRequest:
|
|
31
|
+
readonly focusRequest: ComputedRef<number>;
|
|
51
32
|
/** Whether a focus request waits; reading it answers the request. */
|
|
52
33
|
readonly takeFocusRequest: () => boolean;
|
|
53
34
|
/** The comment field, for moving focus into it. */
|
|
54
|
-
readonly input:
|
|
35
|
+
readonly input: ShallowRef<HTMLInputElement | null>;
|
|
55
36
|
/** Opens with `comment` in the field. */
|
|
56
|
-
readonly show:
|
|
57
|
-
comment: string;
|
|
58
|
-
focus: boolean;
|
|
59
|
-
}) => void;
|
|
37
|
+
readonly show: ɵFeedbackCommentController["show"];
|
|
60
38
|
/** The pointer or focus reached the rating or the popover. */
|
|
61
|
-
readonly enter:
|
|
39
|
+
readonly enter: ɵFeedbackCommentController["enter"];
|
|
62
40
|
/**
|
|
63
41
|
* It left them: close soon, unless the user is editing the comment or, when
|
|
64
42
|
* focus left, the pointer is still on the rating or the popover.
|
|
65
43
|
*/
|
|
66
|
-
readonly leave:
|
|
44
|
+
readonly leave: ɵFeedbackCommentController["leave"];
|
|
67
45
|
/** Tracks whether focus is in the comment form. */
|
|
68
46
|
readonly setEditing: (editing: boolean) => void;
|
|
69
47
|
/** Closes, saving a changed comment unless `save` is false. */
|
|
70
|
-
readonly close:
|
|
71
|
-
save?: boolean;
|
|
72
|
-
}) => void;
|
|
48
|
+
readonly close: ɵFeedbackCommentController["close"];
|
|
73
49
|
/** Moves focus back to the thumb without opening the comment again. */
|
|
74
50
|
readonly returnFocus: (target: HTMLElement | null) => void;
|
|
75
51
|
}
|
|
76
52
|
/**
|
|
77
|
-
* Drives the comment popover of a rated message
|
|
78
|
-
*
|
|
79
|
-
*
|
|
80
|
-
* It opens when a rating is given and whenever the pointer or keyboard focus
|
|
81
|
-
* reaches the chosen thumb, with the saved comment in the field. It closes by
|
|
82
|
-
* itself shortly after the pointer leaves the thumb and the popover, unless
|
|
83
|
-
* focus is in the field: then it stays until focus moves away, Enter, or
|
|
84
|
-
* Escape. Closing saves a changed comment; Escape, a click on a thumb, and
|
|
85
|
-
* removing the rating discard it.
|
|
53
|
+
* Drives the comment popover of a rated message with core's
|
|
54
|
+
* `ɵFeedbackCommentController`, which holds the open and close rules.
|
|
86
55
|
* @internal
|
|
87
56
|
*/
|
|
88
57
|
export declare function useFeedbackComment(controls: Ref<MessageFeedbackControls | null>): FeedbackComment;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"message-feedback.d.ts","sourceRoot":"","sources":["../../../../src/v2/components/chat/message-feedback.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,aAAa,CAAC;AACpD,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,kBAAkB,CAAC;
|
|
1
|
+
{"version":3,"file":"message-feedback.d.ts","sourceRoot":"","sources":["../../../../src/v2/components/chat/message-feedback.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,aAAa,CAAC;AACpD,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,kBAAkB,CAAC;AACvD,OAAO,EACL,0BAA0B,EAK3B,MAAM,kBAAkB,CAAC;AAC1B,OAAO,KAAK,EACV,wBAAwB,EACxB,qBAAqB,EACtB,MAAM,kBAAkB,CAAC;AAE1B,OAAO,KAAK,EACV,WAAW,EACX,YAAY,EACZ,GAAG,EACH,UAAU,EACV,mBAAmB,EACpB,MAAM,KAAK,CAAC;AAEb,uEAAuE;AACvE,MAAM,MAAM,oBAAoB,GAAG,qBAAqB,CAAC;AAEzD,wEAAwE;AACxE,MAAM,MAAM,uBAAuB,GAAG,wBAAwB,CAAC;AAE/D;;;;;GAKG;AACH,eAAO,MAAM,uBAAuB,EAAE,YAAY,CAChD,GAAG,CAAC,oBAAoB,GAAG,IAAI,CAAC,CACO,CAAC;AAE1C;;;;GAIG;AACH,wBAAgB,0BAA0B,CACxC,UAAU,EAAE,GAAG,CAAC,cAAc,CAAC,GAC9B,WAAW,CAAC,OAAO,CAAC,CActB;AAED,+EAA+E;AAC/E,wBAAgB,kBAAkB,CAChC,OAAO,EAAE,GAAG,CAAC,gBAAgB,CAAC,GAC7B,WAAW,CAAC,uBAAuB,GAAG,IAAI,CAAC,CAwB7C;AAED,iFAAiF;AACjF,MAAM,WAAW,eAAe;IAC9B,QAAQ,CAAC,IAAI,EAAE,WAAW,CAAC,OAAO,CAAC,CAAC;IACpC,gCAAgC;IAChC,QAAQ,CAAC,KAAK,EAAE,mBAAmB,CAAC,MAAM,CAAC,CAAC;IAC5C,4EAA4E;IAC5E,QAAQ,CAAC,YAAY,EAAE,WAAW,CAAC,MAAM,CAAC,CAAC;IAC3C,qEAAqE;IACrE,QAAQ,CAAC,gBAAgB,EAAE,MAAM,OAAO,CAAC;IACzC,mDAAmD;IACnD,QAAQ,CAAC,KAAK,EAAE,UAAU,CAAC,gBAAgB,GAAG,IAAI,CAAC,CAAC;IACpD,yCAAyC;IACzC,QAAQ,CAAC,IAAI,EAAE,0BAA0B,CAAC,MAAM,CAAC,CAAC;IAClD,8DAA8D;IAC9D,QAAQ,CAAC,KAAK,EAAE,0BAA0B,CAAC,OAAO,CAAC,CAAC;IACpD;;;OAGG;IACH,QAAQ,CAAC,KAAK,EAAE,0BAA0B,CAAC,OAAO,CAAC,CAAC;IACpD,mDAAmD;IACnD,QAAQ,CAAC,UAAU,EAAE,CAAC,OAAO,EAAE,OAAO,KAAK,IAAI,CAAC;IAChD,+DAA+D;IAC/D,QAAQ,CAAC,KAAK,EAAE,0BAA0B,CAAC,OAAO,CAAC,CAAC;IACpD,uEAAuE;IACvE,QAAQ,CAAC,WAAW,EAAE,CAAC,MAAM,EAAE,WAAW,GAAG,IAAI,KAAK,IAAI,CAAC;CAC5D;AAED;;;;GAIG;AACH,wBAAgB,kBAAkB,CAChC,QAAQ,EAAE,GAAG,CAAC,uBAAuB,GAAG,IAAI,CAAC,GAC5C,eAAe,CA8BjB"}
|