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