@copilotkit/vue 1.79.1 → 1.80.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (38) hide show
  1. package/PARITY.md +1 -0
  2. package/dist/index.cjs +1 -1
  3. package/dist/index.cjs.map +1 -1
  4. package/dist/index.mjs +3 -2
  5. package/dist/index.mjs.map +1 -1
  6. package/dist/{use-render-activity-message-B2gajRTK.js → use-render-activity-message-BhgLK8XD.js} +3066 -3040
  7. package/dist/use-render-activity-message-BhgLK8XD.js.map +1 -0
  8. package/dist/use-render-activity-message-DfvDG9VF.cjs +70 -0
  9. package/dist/use-render-activity-message-DfvDG9VF.cjs.map +1 -0
  10. package/dist/v2/components/MCPAppsActivityRenderer.d.ts +21 -0
  11. package/dist/v2/components/MCPAppsActivityRenderer.d.ts.map +1 -1
  12. package/dist/v2/components/chat/CopilotChatInput.vue.d.ts +30 -0
  13. package/dist/v2/components/chat/CopilotChatInput.vue.d.ts.map +1 -1
  14. package/dist/v2/components/chat/CopilotChatView.vue.d.ts.map +1 -1
  15. package/dist/v2/index.cjs +1 -1
  16. package/dist/v2/index.mjs +1 -1
  17. package/dist/v2/providers/CopilotKitProvider.types.d.ts +12 -0
  18. package/dist/v2/providers/CopilotKitProvider.types.d.ts.map +1 -1
  19. package/dist/v2/providers/CopilotKitProvider.vue.d.ts +5 -1
  20. package/dist/v2/providers/CopilotKitProvider.vue.d.ts.map +1 -1
  21. package/dist/v2/providers/types.d.ts +5 -0
  22. package/dist/v2/providers/types.d.ts.map +1 -1
  23. package/package.json +6 -6
  24. package/src/v2/components/MCPAppsActivityRenderer.ts +14 -0
  25. package/src/v2/components/__tests__/MCPAppsActivityRenderer.e2e.test.ts +74 -2
  26. package/src/v2/components/chat/CopilotChatInput.vue +5 -1
  27. package/src/v2/components/chat/CopilotChatUserMessage.vue +4 -4
  28. package/src/v2/components/chat/CopilotChatView.vue +1 -0
  29. package/src/v2/components/chat/__tests__/CopilotChatInput.test.ts +39 -0
  30. package/src/v2/components/chat/__tests__/CopilotChatUserMessage.test.ts +42 -1
  31. package/src/v2/components/chat/__tests__/CopilotChatView.test.ts +56 -0
  32. package/src/v2/providers/CopilotKitProvider.types.ts +12 -0
  33. package/src/v2/providers/CopilotKitProvider.vue +14 -2
  34. package/src/v2/providers/__tests__/CopilotKitProvider.sandboxReplay.test.ts +157 -0
  35. package/src/v2/providers/types.ts +5 -0
  36. package/dist/use-render-activity-message-B2gajRTK.js.map +0 -1
  37. package/dist/use-render-activity-message-CxZhxbqx.cjs +0 -70
  38. package/dist/use-render-activity-message-CxZhxbqx.cjs.map +0 -1
@@ -29,6 +29,16 @@ export declare const MCPAppsActivityRenderer: import("vue").DefineComponent<impo
29
29
  required: false;
30
30
  default: undefined;
31
31
  };
32
+ /**
33
+ * Restore `allow-same-origin` on the sandbox. Unsafe: the widget runs with
34
+ * the host page's origin. Set via `mcpApps.allowSameOriginFallback` on
35
+ * `CopilotKitProvider`.
36
+ */
37
+ allowSameOriginFallback: {
38
+ type: BooleanConstructor;
39
+ required: false;
40
+ default: boolean;
41
+ };
32
42
  }>, () => import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
33
43
  [key: string]: any;
34
44
  }>, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
@@ -49,8 +59,19 @@ export declare const MCPAppsActivityRenderer: import("vue").DefineComponent<impo
49
59
  required: false;
50
60
  default: undefined;
51
61
  };
62
+ /**
63
+ * Restore `allow-same-origin` on the sandbox. Unsafe: the widget runs with
64
+ * the host page's origin. Set via `mcpApps.allowSameOriginFallback` on
65
+ * `CopilotKitProvider`.
66
+ */
67
+ allowSameOriginFallback: {
68
+ type: BooleanConstructor;
69
+ required: false;
70
+ default: boolean;
71
+ };
52
72
  }>> & Readonly<{}>, {
53
73
  agent: AbstractAgent | undefined;
74
+ allowSameOriginFallback: boolean;
54
75
  }, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
55
76
  export default MCPAppsActivityRenderer;
56
77
  //# sourceMappingURL=MCPAppsActivityRenderer.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"MCPAppsActivityRenderer.d.ts","sourceRoot":"","sources":["../../../src/v2/components/MCPAppsActivityRenderer.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,KAAK,CAAC;AACpC,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,eAAe,CAAC;AACnD,OAAO,KAAK,EAAE,+BAA+B,EAAE,MAAM,UAAU,CAAC;AAehE,OAAO,EACL,mBAAmB,EACnB,4BAA4B,EAC5B,eAAe,GAChB,MAAM,wCAAwC,CAAC;AAChD,YAAY,EACV,sBAAsB,EACtB,gBAAgB,GACjB,MAAM,wCAAwC,CAAC;AAEhD,OAAO,KAAK,EAAE,sBAAsB,EAAE,MAAM,wCAAwC,CAAC;AAQrF;;;;;;GAMG;AACH,eAAO,MAAM,uBAAuB;;;;;;cAQd,QAAQ,CAAC,sBAAsB,CAAC;;;;cAIhC,QAAQ,CACtB,+BAA+B,CAAC,sBAAsB,CAAC,CAAC,SAAS,CAAC,CACnE;;;;cAIe,QAAQ,CAAC,aAAa,GAAG,SAAS,CAAC;;;;;;;;;;;;cAVnC,QAAQ,CAAC,sBAAsB,CAAC;;;;cAIhC,QAAQ,CACtB,+BAA+B,CAAC,sBAAsB,CAAC,CAAC,SAAS,CAAC,CACnE;;;;cAIe,QAAQ,CAAC,aAAa,GAAG,SAAS,CAAC;;;;;;4EA2OvD,CAAC;AAEH,eAAe,uBAAuB,CAAC"}
1
+ {"version":3,"file":"MCPAppsActivityRenderer.d.ts","sourceRoot":"","sources":["../../../src/v2/components/MCPAppsActivityRenderer.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,KAAK,CAAC;AACpC,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,eAAe,CAAC;AACnD,OAAO,KAAK,EAAE,+BAA+B,EAAE,MAAM,UAAU,CAAC;AAehE,OAAO,EACL,mBAAmB,EACnB,4BAA4B,EAC5B,eAAe,GAChB,MAAM,wCAAwC,CAAC;AAChD,YAAY,EACV,sBAAsB,EACtB,gBAAgB,GACjB,MAAM,wCAAwC,CAAC;AAEhD,OAAO,KAAK,EAAE,sBAAsB,EAAE,MAAM,wCAAwC,CAAC;AAQrF;;;;;;GAMG;AACH,eAAO,MAAM,uBAAuB;;;;;;cAQd,QAAQ,CAAC,sBAAsB,CAAC;;;;cAIhC,QAAQ,CACtB,+BAA+B,CAAC,sBAAsB,CAAC,CAAC,SAAS,CAAC,CACnE;;;;cAIe,QAAQ,CAAC,aAAa,GAAG,SAAS,CAAC;;;;IAIrD;;;;OAIG;;;;;;;;;;;;;;cAlBe,QAAQ,CAAC,sBAAsB,CAAC;;;;cAIhC,QAAQ,CACtB,+BAA+B,CAAC,sBAAsB,CAAC,CAAC,SAAS,CAAC,CACnE;;;;cAIe,QAAQ,CAAC,aAAa,GAAG,SAAS,CAAC;;;;IAIrD;;;;OAIG;;;;;;;;;4EAiPL,CAAC;AAEH,eAAe,uBAAuB,CAAC"}
@@ -88,6 +88,8 @@ declare var __VLS_1: {
88
88
  readonly chatInputToolbarFinishTranscribeButtonLabel: "Finish";
89
89
  readonly chatInputToolbarAddButtonLabel: "Add photos or files";
90
90
  readonly chatInputToolbarToolsButtonLabel: "Tools";
91
+ readonly chatInputToolbarSendButtonLabel: "Send message";
92
+ readonly chatInputToolbarStopButtonLabel: "Stop";
91
93
  readonly assistantMessageToolbarCopyCodeLabel: "Copy";
92
94
  readonly assistantMessageToolbarCopyCodeCopiedLabel: "Copied";
93
95
  readonly assistantMessageToolbarCopyMessageLabel: "Copy";
@@ -97,9 +99,12 @@ declare var __VLS_1: {
97
99
  readonly assistantMessageToolbarRegenerateLabel: "Regenerate";
98
100
  readonly userMessageToolbarCopyMessageLabel: "Copy";
99
101
  readonly userMessageToolbarEditMessageLabel: "Edit";
102
+ readonly userMessageToolbarPreviousBranchLabel: "Previous branch";
103
+ readonly userMessageToolbarNextBranchLabel: "Next branch";
100
104
  readonly chatDisclaimerText: "AI can make mistakes. Please verify important information.";
101
105
  readonly chatToggleOpenLabel: "Open chat";
102
106
  readonly chatToggleCloseLabel: "Close chat";
107
+ readonly chatScrollToBottomLabel: "Scroll to bottom";
103
108
  readonly modalHeaderTitle: "CopilotKit Chat";
104
109
  readonly welcomeMessageText: "How can I help you today?";
105
110
  };
@@ -119,6 +124,8 @@ declare var __VLS_1: {
119
124
  readonly chatInputToolbarFinishTranscribeButtonLabel: "Finish";
120
125
  readonly chatInputToolbarAddButtonLabel: "Add photos or files";
121
126
  readonly chatInputToolbarToolsButtonLabel: "Tools";
127
+ readonly chatInputToolbarSendButtonLabel: "Send message";
128
+ readonly chatInputToolbarStopButtonLabel: "Stop";
122
129
  readonly assistantMessageToolbarCopyCodeLabel: "Copy";
123
130
  readonly assistantMessageToolbarCopyCodeCopiedLabel: "Copied";
124
131
  readonly assistantMessageToolbarCopyMessageLabel: "Copy";
@@ -128,9 +135,12 @@ declare var __VLS_1: {
128
135
  readonly assistantMessageToolbarRegenerateLabel: "Regenerate";
129
136
  readonly userMessageToolbarCopyMessageLabel: "Copy";
130
137
  readonly userMessageToolbarEditMessageLabel: "Edit";
138
+ readonly userMessageToolbarPreviousBranchLabel: "Previous branch";
139
+ readonly userMessageToolbarNextBranchLabel: "Next branch";
131
140
  readonly chatDisclaimerText: "AI can make mistakes. Please verify important information.";
132
141
  readonly chatToggleOpenLabel: "Open chat";
133
142
  readonly chatToggleCloseLabel: "Close chat";
143
+ readonly chatScrollToBottomLabel: "Scroll to bottom";
134
144
  readonly modalHeaderTitle: "CopilotKit Chat";
135
145
  readonly welcomeMessageText: "How can I help you today?";
136
146
  };
@@ -144,6 +154,8 @@ declare var __VLS_1: {
144
154
  readonly chatInputToolbarFinishTranscribeButtonLabel: "Finish";
145
155
  readonly chatInputToolbarAddButtonLabel: "Add photos or files";
146
156
  readonly chatInputToolbarToolsButtonLabel: "Tools";
157
+ readonly chatInputToolbarSendButtonLabel: "Send message";
158
+ readonly chatInputToolbarStopButtonLabel: "Stop";
147
159
  readonly assistantMessageToolbarCopyCodeLabel: "Copy";
148
160
  readonly assistantMessageToolbarCopyCodeCopiedLabel: "Copied";
149
161
  readonly assistantMessageToolbarCopyMessageLabel: "Copy";
@@ -153,9 +165,12 @@ declare var __VLS_1: {
153
165
  readonly assistantMessageToolbarRegenerateLabel: "Regenerate";
154
166
  readonly userMessageToolbarCopyMessageLabel: "Copy";
155
167
  readonly userMessageToolbarEditMessageLabel: "Edit";
168
+ readonly userMessageToolbarPreviousBranchLabel: "Previous branch";
169
+ readonly userMessageToolbarNextBranchLabel: "Next branch";
156
170
  readonly chatDisclaimerText: "AI can make mistakes. Please verify important information.";
157
171
  readonly chatToggleOpenLabel: "Open chat";
158
172
  readonly chatToggleCloseLabel: "Close chat";
173
+ readonly chatScrollToBottomLabel: "Scroll to bottom";
159
174
  readonly modalHeaderTitle: "CopilotKit Chat";
160
175
  readonly welcomeMessageText: "How can I help you today?";
161
176
  };
@@ -169,6 +184,8 @@ declare var __VLS_1: {
169
184
  readonly chatInputToolbarFinishTranscribeButtonLabel: "Finish";
170
185
  readonly chatInputToolbarAddButtonLabel: "Add photos or files";
171
186
  readonly chatInputToolbarToolsButtonLabel: "Tools";
187
+ readonly chatInputToolbarSendButtonLabel: "Send message";
188
+ readonly chatInputToolbarStopButtonLabel: "Stop";
172
189
  readonly assistantMessageToolbarCopyCodeLabel: "Copy";
173
190
  readonly assistantMessageToolbarCopyCodeCopiedLabel: "Copied";
174
191
  readonly assistantMessageToolbarCopyMessageLabel: "Copy";
@@ -178,9 +195,12 @@ declare var __VLS_1: {
178
195
  readonly assistantMessageToolbarRegenerateLabel: "Regenerate";
179
196
  readonly userMessageToolbarCopyMessageLabel: "Copy";
180
197
  readonly userMessageToolbarEditMessageLabel: "Edit";
198
+ readonly userMessageToolbarPreviousBranchLabel: "Previous branch";
199
+ readonly userMessageToolbarNextBranchLabel: "Next branch";
181
200
  readonly chatDisclaimerText: "AI can make mistakes. Please verify important information.";
182
201
  readonly chatToggleOpenLabel: "Open chat";
183
202
  readonly chatToggleCloseLabel: "Close chat";
203
+ readonly chatScrollToBottomLabel: "Scroll to bottom";
184
204
  readonly modalHeaderTitle: "CopilotKit Chat";
185
205
  readonly welcomeMessageText: "How can I help you today?";
186
206
  };
@@ -194,6 +214,8 @@ declare var __VLS_1: {
194
214
  readonly chatInputToolbarFinishTranscribeButtonLabel: "Finish";
195
215
  readonly chatInputToolbarAddButtonLabel: "Add photos or files";
196
216
  readonly chatInputToolbarToolsButtonLabel: "Tools";
217
+ readonly chatInputToolbarSendButtonLabel: "Send message";
218
+ readonly chatInputToolbarStopButtonLabel: "Stop";
197
219
  readonly assistantMessageToolbarCopyCodeLabel: "Copy";
198
220
  readonly assistantMessageToolbarCopyCodeCopiedLabel: "Copied";
199
221
  readonly assistantMessageToolbarCopyMessageLabel: "Copy";
@@ -203,9 +225,12 @@ declare var __VLS_1: {
203
225
  readonly assistantMessageToolbarRegenerateLabel: "Regenerate";
204
226
  readonly userMessageToolbarCopyMessageLabel: "Copy";
205
227
  readonly userMessageToolbarEditMessageLabel: "Edit";
228
+ readonly userMessageToolbarPreviousBranchLabel: "Previous branch";
229
+ readonly userMessageToolbarNextBranchLabel: "Next branch";
206
230
  readonly chatDisclaimerText: "AI can make mistakes. Please verify important information.";
207
231
  readonly chatToggleOpenLabel: "Open chat";
208
232
  readonly chatToggleCloseLabel: "Close chat";
233
+ readonly chatScrollToBottomLabel: "Scroll to bottom";
209
234
  readonly modalHeaderTitle: "CopilotKit Chat";
210
235
  readonly welcomeMessageText: "How can I help you today?";
211
236
  };
@@ -221,6 +246,8 @@ declare var __VLS_1: {
221
246
  readonly chatInputToolbarFinishTranscribeButtonLabel: "Finish";
222
247
  readonly chatInputToolbarAddButtonLabel: "Add photos or files";
223
248
  readonly chatInputToolbarToolsButtonLabel: "Tools";
249
+ readonly chatInputToolbarSendButtonLabel: "Send message";
250
+ readonly chatInputToolbarStopButtonLabel: "Stop";
224
251
  readonly assistantMessageToolbarCopyCodeLabel: "Copy";
225
252
  readonly assistantMessageToolbarCopyCodeCopiedLabel: "Copied";
226
253
  readonly assistantMessageToolbarCopyMessageLabel: "Copy";
@@ -230,9 +257,12 @@ declare var __VLS_1: {
230
257
  readonly assistantMessageToolbarRegenerateLabel: "Regenerate";
231
258
  readonly userMessageToolbarCopyMessageLabel: "Copy";
232
259
  readonly userMessageToolbarEditMessageLabel: "Edit";
260
+ readonly userMessageToolbarPreviousBranchLabel: "Previous branch";
261
+ readonly userMessageToolbarNextBranchLabel: "Next branch";
233
262
  readonly chatDisclaimerText: "AI can make mistakes. Please verify important information.";
234
263
  readonly chatToggleOpenLabel: "Open chat";
235
264
  readonly chatToggleCloseLabel: "Close chat";
265
+ readonly chatScrollToBottomLabel: "Scroll to bottom";
236
266
  readonly modalHeaderTitle: "CopilotKit Chat";
237
267
  readonly welcomeMessageText: "How can I help you today?";
238
268
  };
@@ -1 +1 @@
1
- {"version":3,"file":"CopilotChatInput.vue.d.ts","sourceRoot":"","sources":["../../../../src/v2/components/chat/CopilotChatInput.vue"],"names":[],"mappings":"AAsxCA,OAAO,KAAK,EAAE,oBAAoB,EAAE,aAAa,EAAE,MAAM,SAAS,CAAC;AAInE,KAAK,SAAS,GAAG,aAAa,GAAG,GAAG,CAAC;AACrC,KAAK,gBAAgB,GACjB;IAAE,IAAI,EAAE,WAAW,CAAC;IAAC,GAAG,EAAE,MAAM,CAAA;CAAE,GAClC;IAAE,IAAI,EAAE,OAAO,CAAC;IAAC,GAAG,EAAE,MAAM,CAAC;IAAC,KAAK,EAAE,MAAM,CAAC;IAAC,KAAK,EAAE,MAAM,CAAA;CAAE,GAC5D;IACE,IAAI,EAAE,MAAM,CAAC;IACb,GAAG,EAAE,MAAM,CAAC;IACZ,KAAK,EAAE,MAAM,C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E,CAAC,CAAC;KAEV,CAAA;CACD,CAAC"}
package/dist/v2/index.cjs CHANGED
@@ -1,2 +1,2 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const o=require("@copilotkit/core"),a=require("@ag-ui/client"),e=require("../use-render-activity-message-CxZhxbqx.cjs"),n=require("@copilotkit/mcp-apps-renderer/activity"),c=require("@copilotkit/shared");Object.defineProperty(exports,"PROTOCOL_VERSION",{enumerable:!0,get:()=>a.PROTOCOL_VERSION});exports.A2UIActivityContentSchema=e.A2UIActivityContentSchema;exports.A2UISurfaceActivityRenderer=e._sfc_main;exports.A2UISurfaceActivityType=e.A2UISurfaceActivityType;exports.ActivityDeltaEventSchema=e.ActivityDeltaEventSchema;exports.ActivityMessageSchema=e.ActivityMessageSchema;exports.ActivitySnapshotEventSchema=e.ActivitySnapshotEventSchema;exports.AddOperationSchema=e.AddOperationSchema;exports.AgentCapabilitiesSchema=e.AgentCapabilitiesSchema;exports.AssistantMessageSchema=e.AssistantMessageSchema;exports.AttributableSchema=e.AttributableSchema;exports.AudioInputContentSchema=e.AudioPartSchema;exports.AudioInputPartSchema=e.AudioPartSchema;exports.AudioPartSchema=e.AudioPartSchema;exports.BaseEventSchema=e.BaseEventSchema;exports.BaseMessageSchema=e.BaseMessageSchema;exports.ContentPartSchema=e.ContentPartSchema;exports.ContextSchema=e.ContextSchema;exports.CopilotChat=e.CopilotChat;exports.CopilotChatAssistantMessage=e._sfc_main$1;exports.CopilotChatAttachmentQueue=e._sfc_main$2;exports.CopilotChatAttachmentRenderer=e._sfc_main$3;exports.CopilotChatAudioRecorder=e._sfc_main$4;exports.CopilotChatConfigurationProvider=e._sfc_main$5;exports.CopilotChatDefaultLabels=e.CopilotChatDefaultLabels;exports.CopilotChatInput=e._sfc_main$6;exports.CopilotChatMessageView=e._sfc_main$7;exports.CopilotChatReasoningMessage=e._sfc_main$8;exports.CopilotChatSuggestionPill=e._sfc_main$9;exports.CopilotChatSuggestionView=e._sfc_main$10;exports.CopilotChatToggleButton=e.CopilotChatToggleButton;exports.CopilotChatToggleButtonCloseIcon=e.CopilotChatToggleButtonCloseIcon;exports.CopilotChatToggleButtonOpenIcon=e.CopilotChatToggleButtonOpenIcon;exports.CopilotChatToolCallsView=e._sfc_main$11;exports.CopilotChatUserMessage=e._sfc_main$12;exports.CopilotChatView=e._sfc_main$13;exports.CopilotKitCoreVue=e.CopilotKitCoreVue;exports.CopilotKitInspector=e._sfc_main$14;exports.CopilotKitProvider=e._sfc_main$15;exports.CopilotModalHeader=e.CopilotModalHeader;exports.CopilotPopup=e._sfc_main$16;exports.CopilotPopupView=e.CopilotPopupView;exports.CopilotSidebar=e._sfc_main$17;exports.CopilotSidebarView=e.CopilotSidebarView;exports.CopilotThreadsDrawer=e._sfc_main$18;exports.CopyOperationSchema=e.CopyOperationSchema;exports.CustomEventSchema=e.CustomEventSchema;exports.DataSourceSchema=e.DataSourceSchema;exports.DeveloperMessageSchema=e.DeveloperMessageSchema;exports.DocumentInputContentSchema=e.DocumentPartSchema;exports.DocumentInputPartSchema=e.DocumentPartSchema;exports.DocumentPartSchema=e.DocumentPartSchema;exports.EventSchema=e.EventSchema;exports.EventSchemas=e.EventSchema;exports.EventTypeSchema=e.EventTypeSchema;exports.ExecutionCapabilitiesSchema=e.ExecutionCapabilitiesSchema;exports.FileSourceSchema=e.FileSourceSchema;exports.FunctionCallSchema=e.FunctionCallSchema;exports.GenerateSandboxedUiArgsSchema=e.GenerateSandboxedUiArgsSchema;exports.HumanInTheLoopCapabilitiesSchema=e.HumanInTheLoopCapabilitiesSchema;exports.IdentityCapabilitiesSchema=e.IdentityCapabilitiesSchema;exports.ImageInputContentSchema=e.ImagePartSchema;exports.ImageInputPartSchema=e.ImagePartSchema;exports.ImagePartSchema=e.ImagePartSchema;exports.InputContentDataSourceSchema=e.DataSourceSchema;exports.InputContentSchema=e.ContentPartSchema;exports.InputContentSourceSchema=e.PartSourceSchema;exports.InputContentUrlSourceSchema=e.UrlSourceSchema;exports.InterruptSchema=e.InterruptSchema;exports.JsonPatchOperationSchema=e.JsonPatchOperationSchema;exports.JsonPatchSchema=e.JsonPatchSchema;exports.JsonPointerSchema=e.JsonPointerSchema;exports.LicenseContextKey=e.LicenseContextKey;exports.MCPAppsActivityRenderer=e.MCPAppsActivityRenderer;exports.MessageSchema=e.MessageSchema;exports.MessagesSnapshotEventSchema=e.MessagesSnapshotEventSchema;exports.MetadataSchema=e.MetadataSchema;exports.MoveOperationSchema=e.MoveOperationSchema;exports.MultiAgentCapabilitiesSchema=e.MultiAgentCapabilitiesSchema;exports.MultimodalCapabilitiesSchema=e.MultimodalCapabilitiesSchema;exports.MultimodalInputCapabilitiesSchema=e.MultimodalInputCapabilitiesSchema;exports.MultimodalOutputCapabilitiesSchema=e.MultimodalOutputCapabilitiesSchema;exports.OpenGenerativeUIActivityRenderer=e.OpenGenerativeUIActivityRenderer;exports.OpenGenerativeUIActivityType=e.OpenGenerativeUIActivityType;exports.OpenGenerativeUIContentSchema=e.OpenGenerativeUIContentSchema;exports.OpenGenerativeUIRenderer=e.OpenGenerativeUIRenderer;exports.OpenGenerativeUIToolRenderer=e.OpenGenerativeUIToolRenderer;exports.OptionalMetadataSchema=e.OptionalMetadataSchema;exports.OutputCapabilitiesSchema=e.OutputCapabilitiesSchema;exports.PartSourceSchema=e.PartSourceSchema;exports.RawEventSchema=e.RawEventSchema;exports.ReasoningCapabilitiesSchema=e.ReasoningCapabilitiesSchema;exports.ReasoningEncryptedValueEventSchema=e.ReasoningEncryptedValueEventSchema;exports.ReasoningEncryptedValueSubtypeSchema=e.ReasoningEncryptedValueSubtypeSchema;exports.ReasoningEndEventSchema=e.ReasoningEndEventSchema;exports.ReasoningMessageChunkEventSchema=e.ReasoningMessageChunkEventSchema;exports.ReasoningMessageContentEventSchema=e.ReasoningMessageContentEventSchema;exports.ReasoningMessageEndEventSchema=e.ReasoningMessageEndEventSchema;exports.ReasoningMessageSchema=e.ReasoningMessageSchema;exports.ReasoningMessageStartEventSchema=e.ReasoningMessageStartEventSchema;exports.ReasoningStartEventSchema=e.ReasoningStartEventSchema;exports.RemoveOperationSchema=e.RemoveOperationSchema;exports.ReplaceOperationSchema=e.ReplaceOperationSchema;exports.ResumeEntrySchema=e.ResumeEntrySchema;exports.RoleSchema=e.RoleSchema;exports.RunAgentInputSchema=e.RunAgentInputSchema;exports.RunErrorEventSchema=e.RunErrorEventSchema;exports.RunFinishedCancelledOutcomeSchema=e.RunFinishedCancelledOutcomeSchema;exports.RunFinishedEventSchema=e.RunFinishedEventSchema;exports.RunFinishedInterruptOutcomeSchema=e.RunFinishedInterruptOutcomeSchema;exports.RunFinishedOutcomeSchema=e.RunFinishedOutcomeSchema;exports.RunFinishedSuccessOutcomeSchema=e.RunFinishedSuccessOutcomeSchema;exports.RunStartedEventSchema=e.RunStartedEventSchema;exports.StateCapabilitiesSchema=e.StateCapabilitiesSchema;exports.StateDeltaEventSchema=e.StateDeltaEventSchema;exports.StateSchema=e.StateSchema;exports.StateSnapshotEventSchema=e.StateSnapshotEventSchema;exports.StepFinishedEventSchema=e.StepFinishedEventSchema;exports.StepStartedEventSchema=e.StepStartedEventSchema;exports.SubagentErrorEventSchema=e.SubagentErrorEventSchema;exports.SubagentFinishedEventSchema=e.SubagentFinishedEventSchema;exports.SubagentFinishedOutcomeSchema=e.SubagentFinishedOutcomeSchema;exports.SubagentFinishedSuccessOutcomeSchema=e.SubagentFinishedSuccessOutcomeSchema;exports.SubagentFinishedSuspendedOutcomeSchema=e.SubagentFinishedSuspendedOutcomeSchema;exports.SubagentInfoSchema=e.SubagentInfoSchema;exports.SubagentRunIdSchema=e.SubagentRunIdSchema;exports.SubagentStartedEventSchema=e.SubagentStartedEventSchema;exports.SystemMessageSchema=e.SystemMessageSchema;exports.TestOperationSchema=e.TestOperationSchema;exports.TextInputContentSchema=e.TextPartSchema;exports.TextMessageChunkEventSchema=e.TextMessageChunkEventSchema;exports.TextMessageContentEventSchema=e.TextMessageContentEventSchema;exports.TextMessageEndEventSchema=e.TextMessageEndEventSchema;exports.TextMessageRoleSchema=e.TextMessageRoleSchema;exports.TextMessageStartEventSchema=e.TextMessageStartEventSchema;exports.TextPartSchema=e.TextPartSchema;exports.TokenUsageSchema=e.TokenUsageSchema;exports.ToolCallArgsEventSchema=e.ToolCallArgsEventSchema;exports.ToolCallChunkEventSchema=e.ToolCallChunkEventSchema;exports.ToolCallEndEventSchema=e.ToolCallEndEventSchema;exports.ToolCallResultEventSchema=e.ToolCallResultEventSchema;exports.ToolCallSchema=e.ToolCallSchema;exports.ToolCallStartEventSchema=e.ToolCallStartEventSchema;exports.ToolMessageSchema=e.ToolMessageSchema;exports.ToolSchema=e.ToolSchema;exports.ToolsCapabilitiesSchema=e.ToolsCapabilitiesSchema;exports.TransportCapabilitiesSchema=e.TransportCapabilitiesSchema;exports.UrlSourceSchema=e.UrlSourceSchema;exports.UseAgentUpdate=e.UseAgentUpdate;exports.UserMessageSchema=e.UserMessageSchema;exports.VideoInputContentSchema=e.VideoPartSchema;exports.VideoInputPartSchema=e.VideoPartSchema;exports.VideoPartSchema=e.VideoPartSchema;exports.createA2UIMessageRenderer=e.createA2UIMessageRenderer;exports.createDefaultLicenseRef=e.createDefaultLicenseRef;exports.defineToolCallRenderer=e.defineToolCallRenderer;exports.extractCompleteStyles=e.extractCompleteStyles;exports.getOperationSurfaceId=e.getOperationSurfaceId;exports.processPartialHtml=e.processPartialHtml;exports.useAgent=e.useAgent;exports.useAgentContext=e.useAgentContext;exports.useAttachments=e.useAttachments;exports.useCapabilities=e.useCapabilities;exports.useComponent=e.useComponent;exports.useConfigureSuggestions=e.useConfigureSuggestions;exports.useCopilotChatConfiguration=e.useCopilotChatConfiguration;exports.useCopilotKit=e.useCopilotKit;exports.useDefaultRenderTool=e.useDefaultRenderTool;exports.useFrontendTool=e.useFrontendTool;exports.useHumanInTheLoop=e.useHumanInTheLoop;exports.useInterrupt=e.useInterrupt;exports.useKatexStyles=e.useKatexStyles;exports.useKeyboardHeight=e.useKeyboardHeight;exports.useLicenseContext=e.useLicenseContext;exports.useRenderActivityMessage=e.useRenderActivityMessage;exports.useRenderCustomMessages=e.useRenderCustomMessages;exports.useRenderTool=e.useRenderTool;exports.useSandboxFunctions=e.useSandboxFunctions;exports.useSuggestions=e.useSuggestions;exports.useThreads=e.useThreads;exports.vueBasicCatalog=e.vueBasicCatalog;Object.defineProperty(exports,"MCPAppsActivityContentSchema",{enumerable:!0,get:()=>n.MCPAppsActivityContentSchema});Object.defineProperty(exports,"MCPAppsActivityType",{enumerable:!0,get:()=>n.MCPAppsActivityType});Object.defineProperty(exports,"ɵrunMcpFollowUp",{enumerable:!0,get:()=>n.ɵrunMcpFollowUp});Object.defineProperty(exports,"createLicenseContextValue",{enumerable:!0,get:()=>c.createLicenseContextValue});Object.keys(o).forEach(t=>{t!=="default"&&!Object.prototype.hasOwnProperty.call(exports,t)&&Object.defineProperty(exports,t,{enumerable:!0,get:()=>o[t]})});Object.keys(a).forEach(t=>{t!=="default"&&!Object.prototype.hasOwnProperty.call(exports,t)&&Object.defineProperty(exports,t,{enumerable:!0,get:()=>a[t]})});
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const o=require("@copilotkit/core"),a=require("@ag-ui/client"),e=require("../use-render-activity-message-DfvDG9VF.cjs"),n=require("@copilotkit/mcp-apps-renderer/activity"),c=require("@copilotkit/shared");Object.defineProperty(exports,"PROTOCOL_VERSION",{enumerable:!0,get:()=>a.PROTOCOL_VERSION});exports.A2UIActivityContentSchema=e.A2UIActivityContentSchema;exports.A2UISurfaceActivityRenderer=e._sfc_main;exports.A2UISurfaceActivityType=e.A2UISurfaceActivityType;exports.ActivityDeltaEventSchema=e.ActivityDeltaEventSchema;exports.ActivityMessageSchema=e.ActivityMessageSchema;exports.ActivitySnapshotEventSchema=e.ActivitySnapshotEventSchema;exports.AddOperationSchema=e.AddOperationSchema;exports.AgentCapabilitiesSchema=e.AgentCapabilitiesSchema;exports.AssistantMessageSchema=e.AssistantMessageSchema;exports.AttributableSchema=e.AttributableSchema;exports.AudioInputContentSchema=e.AudioPartSchema;exports.AudioInputPartSchema=e.AudioPartSchema;exports.AudioPartSchema=e.AudioPartSchema;exports.BaseEventSchema=e.BaseEventSchema;exports.BaseMessageSchema=e.BaseMessageSchema;exports.ContentPartSchema=e.ContentPartSchema;exports.ContextSchema=e.ContextSchema;exports.CopilotChat=e.CopilotChat;exports.CopilotChatAssistantMessage=e._sfc_main$1;exports.CopilotChatAttachmentQueue=e._sfc_main$2;exports.CopilotChatAttachmentRenderer=e._sfc_main$3;exports.CopilotChatAudioRecorder=e._sfc_main$4;exports.CopilotChatConfigurationProvider=e._sfc_main$5;exports.CopilotChatDefaultLabels=e.CopilotChatDefaultLabels;exports.CopilotChatInput=e._sfc_main$6;exports.CopilotChatMessageView=e._sfc_main$7;exports.CopilotChatReasoningMessage=e._sfc_main$8;exports.CopilotChatSuggestionPill=e._sfc_main$9;exports.CopilotChatSuggestionView=e._sfc_main$10;exports.CopilotChatToggleButton=e.CopilotChatToggleButton;exports.CopilotChatToggleButtonCloseIcon=e.CopilotChatToggleButtonCloseIcon;exports.CopilotChatToggleButtonOpenIcon=e.CopilotChatToggleButtonOpenIcon;exports.CopilotChatToolCallsView=e._sfc_main$11;exports.CopilotChatUserMessage=e._sfc_main$12;exports.CopilotChatView=e._sfc_main$13;exports.CopilotKitCoreVue=e.CopilotKitCoreVue;exports.CopilotKitInspector=e._sfc_main$14;exports.CopilotKitProvider=e._sfc_main$15;exports.CopilotModalHeader=e.CopilotModalHeader;exports.CopilotPopup=e._sfc_main$16;exports.CopilotPopupView=e.CopilotPopupView;exports.CopilotSidebar=e._sfc_main$17;exports.CopilotSidebarView=e.CopilotSidebarView;exports.CopilotThreadsDrawer=e._sfc_main$18;exports.CopyOperationSchema=e.CopyOperationSchema;exports.CustomEventSchema=e.CustomEventSchema;exports.DataSourceSchema=e.DataSourceSchema;exports.DeveloperMessageSchema=e.DeveloperMessageSchema;exports.DocumentInputContentSchema=e.DocumentPartSchema;exports.DocumentInputPartSchema=e.DocumentPartSchema;exports.DocumentPartSchema=e.DocumentPartSchema;exports.EventSchema=e.EventSchema;exports.EventSchemas=e.EventSchema;exports.EventTypeSchema=e.EventTypeSchema;exports.ExecutionCapabilitiesSchema=e.ExecutionCapabilitiesSchema;exports.FileSourceSchema=e.FileSourceSchema;exports.FunctionCallSchema=e.FunctionCallSchema;exports.GenerateSandboxedUiArgsSchema=e.GenerateSandboxedUiArgsSchema;exports.HumanInTheLoopCapabilitiesSchema=e.HumanInTheLoopCapabilitiesSchema;exports.IdentityCapabilitiesSchema=e.IdentityCapabilitiesSchema;exports.ImageInputContentSchema=e.ImagePartSchema;exports.ImageInputPartSchema=e.ImagePartSchema;exports.ImagePartSchema=e.ImagePartSchema;exports.InputContentDataSourceSchema=e.DataSourceSchema;exports.InputContentSchema=e.ContentPartSchema;exports.InputContentSourceSchema=e.PartSourceSchema;exports.InputContentUrlSourceSchema=e.UrlSourceSchema;exports.InterruptSchema=e.InterruptSchema;exports.JsonPatchOperationSchema=e.JsonPatchOperationSchema;exports.JsonPatchSchema=e.JsonPatchSchema;exports.JsonPointerSchema=e.JsonPointerSchema;exports.LicenseContextKey=e.LicenseContextKey;exports.MCPAppsActivityRenderer=e.MCPAppsActivityRenderer;exports.MessageSchema=e.MessageSchema;exports.MessagesSnapshotEventSchema=e.MessagesSnapshotEventSchema;exports.MetadataSchema=e.MetadataSchema;exports.MoveOperationSchema=e.MoveOperationSchema;exports.MultiAgentCapabilitiesSchema=e.MultiAgentCapabilitiesSchema;exports.MultimodalCapabilitiesSchema=e.MultimodalCapabilitiesSchema;exports.MultimodalInputCapabilitiesSchema=e.MultimodalInputCapabilitiesSchema;exports.MultimodalOutputCapabilitiesSchema=e.MultimodalOutputCapabilitiesSchema;exports.OpenGenerativeUIActivityRenderer=e.OpenGenerativeUIActivityRenderer;exports.OpenGenerativeUIActivityType=e.OpenGenerativeUIActivityType;exports.OpenGenerativeUIContentSchema=e.OpenGenerativeUIContentSchema;exports.OpenGenerativeUIRenderer=e.OpenGenerativeUIRenderer;exports.OpenGenerativeUIToolRenderer=e.OpenGenerativeUIToolRenderer;exports.OptionalMetadataSchema=e.OptionalMetadataSchema;exports.OutputCapabilitiesSchema=e.OutputCapabilitiesSchema;exports.PartSourceSchema=e.PartSourceSchema;exports.RawEventSchema=e.RawEventSchema;exports.ReasoningCapabilitiesSchema=e.ReasoningCapabilitiesSchema;exports.ReasoningEncryptedValueEventSchema=e.ReasoningEncryptedValueEventSchema;exports.ReasoningEncryptedValueSubtypeSchema=e.ReasoningEncryptedValueSubtypeSchema;exports.ReasoningEndEventSchema=e.ReasoningEndEventSchema;exports.ReasoningMessageChunkEventSchema=e.ReasoningMessageChunkEventSchema;exports.ReasoningMessageContentEventSchema=e.ReasoningMessageContentEventSchema;exports.ReasoningMessageEndEventSchema=e.ReasoningMessageEndEventSchema;exports.ReasoningMessageSchema=e.ReasoningMessageSchema;exports.ReasoningMessageStartEventSchema=e.ReasoningMessageStartEventSchema;exports.ReasoningStartEventSchema=e.ReasoningStartEventSchema;exports.RemoveOperationSchema=e.RemoveOperationSchema;exports.ReplaceOperationSchema=e.ReplaceOperationSchema;exports.ResumeEntrySchema=e.ResumeEntrySchema;exports.RoleSchema=e.RoleSchema;exports.RunAgentInputSchema=e.RunAgentInputSchema;exports.RunErrorEventSchema=e.RunErrorEventSchema;exports.RunFinishedCancelledOutcomeSchema=e.RunFinishedCancelledOutcomeSchema;exports.RunFinishedEventSchema=e.RunFinishedEventSchema;exports.RunFinishedInterruptOutcomeSchema=e.RunFinishedInterruptOutcomeSchema;exports.RunFinishedOutcomeSchema=e.RunFinishedOutcomeSchema;exports.RunFinishedSuccessOutcomeSchema=e.RunFinishedSuccessOutcomeSchema;exports.RunStartedEventSchema=e.RunStartedEventSchema;exports.StateCapabilitiesSchema=e.StateCapabilitiesSchema;exports.StateDeltaEventSchema=e.StateDeltaEventSchema;exports.StateSchema=e.StateSchema;exports.StateSnapshotEventSchema=e.StateSnapshotEventSchema;exports.StepFinishedEventSchema=e.StepFinishedEventSchema;exports.StepStartedEventSchema=e.StepStartedEventSchema;exports.SubagentErrorEventSchema=e.SubagentErrorEventSchema;exports.SubagentFinishedEventSchema=e.SubagentFinishedEventSchema;exports.SubagentFinishedOutcomeSchema=e.SubagentFinishedOutcomeSchema;exports.SubagentFinishedSuccessOutcomeSchema=e.SubagentFinishedSuccessOutcomeSchema;exports.SubagentFinishedSuspendedOutcomeSchema=e.SubagentFinishedSuspendedOutcomeSchema;exports.SubagentInfoSchema=e.SubagentInfoSchema;exports.SubagentRunIdSchema=e.SubagentRunIdSchema;exports.SubagentStartedEventSchema=e.SubagentStartedEventSchema;exports.SystemMessageSchema=e.SystemMessageSchema;exports.TestOperationSchema=e.TestOperationSchema;exports.TextInputContentSchema=e.TextPartSchema;exports.TextMessageChunkEventSchema=e.TextMessageChunkEventSchema;exports.TextMessageContentEventSchema=e.TextMessageContentEventSchema;exports.TextMessageEndEventSchema=e.TextMessageEndEventSchema;exports.TextMessageRoleSchema=e.TextMessageRoleSchema;exports.TextMessageStartEventSchema=e.TextMessageStartEventSchema;exports.TextPartSchema=e.TextPartSchema;exports.TokenUsageSchema=e.TokenUsageSchema;exports.ToolCallArgsEventSchema=e.ToolCallArgsEventSchema;exports.ToolCallChunkEventSchema=e.ToolCallChunkEventSchema;exports.ToolCallEndEventSchema=e.ToolCallEndEventSchema;exports.ToolCallResultEventSchema=e.ToolCallResultEventSchema;exports.ToolCallSchema=e.ToolCallSchema;exports.ToolCallStartEventSchema=e.ToolCallStartEventSchema;exports.ToolMessageSchema=e.ToolMessageSchema;exports.ToolSchema=e.ToolSchema;exports.ToolsCapabilitiesSchema=e.ToolsCapabilitiesSchema;exports.TransportCapabilitiesSchema=e.TransportCapabilitiesSchema;exports.UrlSourceSchema=e.UrlSourceSchema;exports.UseAgentUpdate=e.UseAgentUpdate;exports.UserMessageSchema=e.UserMessageSchema;exports.VideoInputContentSchema=e.VideoPartSchema;exports.VideoInputPartSchema=e.VideoPartSchema;exports.VideoPartSchema=e.VideoPartSchema;exports.createA2UIMessageRenderer=e.createA2UIMessageRenderer;exports.createDefaultLicenseRef=e.createDefaultLicenseRef;exports.defineToolCallRenderer=e.defineToolCallRenderer;exports.extractCompleteStyles=e.extractCompleteStyles;exports.getOperationSurfaceId=e.getOperationSurfaceId;exports.processPartialHtml=e.processPartialHtml;exports.useAgent=e.useAgent;exports.useAgentContext=e.useAgentContext;exports.useAttachments=e.useAttachments;exports.useCapabilities=e.useCapabilities;exports.useComponent=e.useComponent;exports.useConfigureSuggestions=e.useConfigureSuggestions;exports.useCopilotChatConfiguration=e.useCopilotChatConfiguration;exports.useCopilotKit=e.useCopilotKit;exports.useDefaultRenderTool=e.useDefaultRenderTool;exports.useFrontendTool=e.useFrontendTool;exports.useHumanInTheLoop=e.useHumanInTheLoop;exports.useInterrupt=e.useInterrupt;exports.useKatexStyles=e.useKatexStyles;exports.useKeyboardHeight=e.useKeyboardHeight;exports.useLicenseContext=e.useLicenseContext;exports.useRenderActivityMessage=e.useRenderActivityMessage;exports.useRenderCustomMessages=e.useRenderCustomMessages;exports.useRenderTool=e.useRenderTool;exports.useSandboxFunctions=e.useSandboxFunctions;exports.useSuggestions=e.useSuggestions;exports.useThreads=e.useThreads;exports.vueBasicCatalog=e.vueBasicCatalog;Object.defineProperty(exports,"MCPAppsActivityContentSchema",{enumerable:!0,get:()=>n.MCPAppsActivityContentSchema});Object.defineProperty(exports,"MCPAppsActivityType",{enumerable:!0,get:()=>n.MCPAppsActivityType});Object.defineProperty(exports,"ɵrunMcpFollowUp",{enumerable:!0,get:()=>n.ɵrunMcpFollowUp});Object.defineProperty(exports,"createLicenseContextValue",{enumerable:!0,get:()=>c.createLicenseContextValue});Object.keys(o).forEach(t=>{t!=="default"&&!Object.prototype.hasOwnProperty.call(exports,t)&&Object.defineProperty(exports,t,{enumerable:!0,get:()=>o[t]})});Object.keys(a).forEach(t=>{t!=="default"&&!Object.prototype.hasOwnProperty.call(exports,t)&&Object.defineProperty(exports,t,{enumerable:!0,get:()=>a[t]})});
2
2
  //# sourceMappingURL=index.cjs.map
package/dist/v2/index.mjs CHANGED
@@ -1,7 +1,7 @@
1
1
  export * from "@copilotkit/core";
2
2
  export * from "@ag-ui/client";
3
3
  import { PROTOCOL_VERSION as n } from "@ag-ui/client";
4
- import { A as i, _ as c, a as S, b as h, c as m, d as u, e as r, f as p, g as l, h as C, i as b, i as g, i as d, B as v, j as E, C as R, k as I, l as A, m as T, n as M, o as y, p as O, q as x, r as P, s as f, t as U, u as F, v as V, w as D, x as w, y as L, z as K, D as B, E as G, F as H, G as k, H as J, I as j, J as q, K as z, L as N, M as Q, N as _, O as W, P as X, Q as Y, R as Z, S as $, T as aa, T as ea, T as ta, U as sa, U as na, V as oa, W as ia, X as ca, Y as Sa, Z as ha, $ as ma, a0 as ua, a1 as ra, a1 as pa, a1 as la, R as Ca, C as ba, a2 as ga, a3 as da, a4 as va, a5 as Ea, a6 as Ra, a7 as Ia, a8 as Aa, a9 as Ta, aa as Ma, ab as ya, ac as Oa, ad as xa, ae as Pa, af as fa, ag as Ua, ah as Fa, ai as Va, aj as Da, ak as wa, al as La, am as Ka, an as Ba, ao as Ga, a2 as Ha, ap as ka, aq as Ja, ar as ja, as as qa, at as za, au as Na, av as Qa, aw as _a, ax as Wa, ay as Xa, az as Ya, aA as Za, aB as $a, aC as ae, aD as ee, aE as te, aF as se, aG as ne, aH as oe, aI as ie, aJ as ce, aK as Se, aL as he, aM as me, aN as ue, aO as re, aP as pe, aQ as le, aR as Ce, aS as be, aT as ge, aU as de, aV as ve, aW as Ee, aX as Re, aY as Ie, aZ as Ae, a_ as Te, a$ as Me, b0 as ye, b1 as Oe, b2 as xe, b3 as Pe, b4 as fe, b5 as Ue, b0 as Fe, b6 as Ve, b7 as De, b8 as we, b9 as Le, ba as Ke, bb as Be, bc as Ge, bd as He, be as ke, bf as Je, bg as je, a3 as qe, bh as ze, bi as Ne, bj as Qe, bj as _e, bj as We, bk as Xe, bl as Ye, bm as Ze, bn as $e, bo as at, bp as et, bq as tt, br as st, bs as nt, bt as ot, bu as it, bv as ct, bw as St, bx as ht, by as mt, bz as ut, bA as rt, bB as pt, bC as lt, bD as Ct, bE as bt, bF as gt, bG as dt, bH as vt, bI as Et, bJ as Rt, bK as It, bL as At } from "../use-render-activity-message-B2gajRTK.js";
4
+ import { A as i, _ as c, a as S, b as h, c as m, d as u, e as r, f as p, g as l, h as C, i as b, i as g, i as d, B as v, j as E, C as R, k as I, l as A, m as T, n as M, o as y, p as O, q as x, r as P, s as f, t as U, u as F, v as V, w as D, x as w, y as L, z as K, D as B, E as G, F as H, G as k, H as J, I as j, J as q, K as z, L as N, M as Q, N as _, O as W, P as X, Q as Y, R as Z, S as $, T as aa, T as ea, T as ta, U as sa, U as na, V as oa, W as ia, X as ca, Y as Sa, Z as ha, $ as ma, a0 as ua, a1 as ra, a1 as pa, a1 as la, R as Ca, C as ba, a2 as ga, a3 as da, a4 as va, a5 as Ea, a6 as Ra, a7 as Ia, a8 as Aa, a9 as Ta, aa as Ma, ab as ya, ac as Oa, ad as xa, ae as Pa, af as fa, ag as Ua, ah as Fa, ai as Va, aj as Da, ak as wa, al as La, am as Ka, an as Ba, ao as Ga, a2 as Ha, ap as ka, aq as Ja, ar as ja, as as qa, at as za, au as Na, av as Qa, aw as _a, ax as Wa, ay as Xa, az as Ya, aA as Za, aB as $a, aC as ae, aD as ee, aE as te, aF as se, aG as ne, aH as oe, aI as ie, aJ as ce, aK as Se, aL as he, aM as me, aN as ue, aO as re, aP as pe, aQ as le, aR as Ce, aS as be, aT as ge, aU as de, aV as ve, aW as Ee, aX as Re, aY as Ie, aZ as Ae, a_ as Te, a$ as Me, b0 as ye, b1 as Oe, b2 as xe, b3 as Pe, b4 as fe, b5 as Ue, b0 as Fe, b6 as Ve, b7 as De, b8 as we, b9 as Le, ba as Ke, bb as Be, bc as Ge, bd as He, be as ke, bf as Je, bg as je, a3 as qe, bh as ze, bi as Ne, bj as Qe, bj as _e, bj as We, bk as Xe, bl as Ye, bm as Ze, bn as $e, bo as at, bp as et, bq as tt, br as st, bs as nt, bt as ot, bu as it, bv as ct, bw as St, bx as ht, by as mt, bz as ut, bA as rt, bB as pt, bC as lt, bD as Ct, bE as bt, bF as gt, bG as dt, bH as vt, bI as Et, bJ as Rt, bK as It, bL as At } from "../use-render-activity-message-BhgLK8XD.js";
5
5
  import { MCPAppsActivityContentSchema as Mt, MCPAppsActivityType as yt, ɵrunMcpFollowUp as Ot } from "@copilotkit/mcp-apps-renderer/activity";
6
6
  import { createLicenseContextValue as Pt } from "@copilotkit/shared";
7
7
  export {
@@ -79,6 +79,18 @@ export interface CopilotKitProviderProps {
79
79
  loadingComponent?: Component;
80
80
  includeSchema?: boolean;
81
81
  };
82
+ /** Configuration for the built-in MCP Apps renderer. */
83
+ mcpApps?: {
84
+ /**
85
+ * Restore `allow-same-origin` on the MCP App sandbox. Default `false`.
86
+ *
87
+ * **Unsafe.** The widget then runs with your page's origin: it can read
88
+ * your cookies, storage and DOM, and call your APIs as the signed-in user.
89
+ * Only set it for widgets you wrote and trust that need `localStorage`,
90
+ * `IndexedDB` or cookies. By default widgets get an opaque origin.
91
+ */
92
+ allowSameOriginFallback?: boolean;
93
+ };
82
94
  /**
83
95
  * Enable debug logging for the client-side event pipeline.
84
96
  *
@@ -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,EACxB,MAAM,kBAAkB,CAAC;AAC1B,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,oBAAoB,CAAC;AACtD,OAAO,KAAK,EACV,SAAS,EACT,eAAe,EACf,0BAA0B,EAC1B,wBAAwB,EACxB,eAAe,E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AC;IAC1B,OAAO,CAAC,EAAE,CAAC,KAAK,EAAE;QAChB,KAAK,EAAE,KAAK,CAAC;QACb,IAAI,EAAE,uBAAuB,CAAC;QAC9B,OAAO,EAAE,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,CAAC;KAC9B,KAAK,IAAI,GAAG,OAAO,CAAC,IAAI,CAAC,CAAC;IAC3B,IAAI,CAAC,EAAE;QACL,KAAK,CAAC,EAAE,SAAS,CAAC;QAClB,OAAO,CAAC,EAAE,GAAG,CAAC;QACd,gBAAgB,CAAC,EAAE,SAAS,CAAC;QAC7B,aAAa,CAAC,EAAE,OAAO,CAAC;KACzB,CAAC;IACF;;;;;;OAMG;IACH,KAAK,CAAC,EAAE,WAAW,CAAC;CACrB"}
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,EACxB,MAAM,kBAAkB,CAAC;AAC1B,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,oBAAoB,CAAC;AACtD,OAAO,KAAK,EACV,SAAS,EACT,eAAe,EACf,0BAA0B,EAC1B,wBAAwB,EACxB,eAAe,EACf,iBAAiB,EACjB,mBAAmB,EACpB,MAAM,UAAU,CAAC;AAClB,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,KAAK,CAAC;AAErC,MAAM,WAAW,uBAAuB;IACtC,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB;;;;OAIG;IACH,OAAO,CAAC,EAAE,uBAAuB,CAAC;IAClC,WAAW,CAAC,EAAE,kBAAkB,CAAC;IACjC;;;;;;;;;;;;;;;;;;;;;;OAsBG;IACH,aAAa,CAAC,EAAE,uBAAuB,CAAC;IACxC,iBAAiB,CAAC,EAAE,MAAM,CAAC;IAC3B,YAAY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AAO,CAAC;KACzB,CAAC;IACF,wDAAwD;IACxD,OAAO,CAAC,EAAE;QACR;;;;;;;WAOG;QACH,uBAAuB,CAAC,EAAE,OAAO,CAAC;KACnC,CAAC;IACF;;;;;;OAMG;IACH,KAAK,CAAC,EAAE,WAAW,CAAC;CACrB"}
@@ -1,3 +1,4 @@
1
+ import type { Component } from "vue";
1
2
  import type { AbstractAgent } from "@ag-ui/client";
2
3
  import type { CopilotKitHeadersSource } from "@copilotkit/core";
3
4
  import type { CopilotKitProviderProps } from "./CopilotKitProvider.types";
@@ -24,9 +25,12 @@ declare const __VLS_component: import("vue").DefineComponent<CopilotKitProviderP
24
25
  a2ui: {
25
26
  theme?: import("..").A2UITheme;
26
27
  catalog?: any;
27
- loadingComponent?: import("vue").Component;
28
+ loadingComponent?: Component;
28
29
  includeSchema?: boolean;
29
30
  };
31
+ mcpApps: {
32
+ allowSameOriginFallback?: boolean;
33
+ };
30
34
  }, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
31
35
  declare const _default: __VLS_WithSlots<typeof __VLS_component, __VLS_Slots>;
32
36
  export default _default;
@@ -1 +1 @@
1
- {"version":3,"file":"CopilotKitProvider.vue.d.ts","sourceRoot":"","sources":["../../../src/v2/providers/CopilotKitProvider.vue"],"names":[],"mappings":"AAw1BA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,eAAe,CAAC;AAEnD,OAAO,KAAK,EAGV,uBAAuB,EAExB,MAAM,kBAAkB,CAAC;AAiC1B,OAAO,KAAK,EAAE,uBAAuB,EAAE,MAAM,4BAA4B,CAAC;AAC1E,OAAO,KAAK,EACV,eAAe,EACf,0BAA0B,EAC1B,eAAe,EAGhB,MAAM,UAAU,CAAC;AA80BlB,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,Q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E,CAAC,IAAI,CAAC,GAAG;IAChC,QAAO;QACN,MAAM,EAAE,CAAC,CAAC;KAEV,CAAA;CACD,CAAC"}
@@ -5,6 +5,8 @@ export declare const CopilotChatDefaultLabels: {
5
5
  readonly chatInputToolbarFinishTranscribeButtonLabel: "Finish";
6
6
  readonly chatInputToolbarAddButtonLabel: "Add photos or files";
7
7
  readonly chatInputToolbarToolsButtonLabel: "Tools";
8
+ readonly chatInputToolbarSendButtonLabel: "Send message";
9
+ readonly chatInputToolbarStopButtonLabel: "Stop";
8
10
  readonly assistantMessageToolbarCopyCodeLabel: "Copy";
9
11
  readonly assistantMessageToolbarCopyCodeCopiedLabel: "Copied";
10
12
  readonly assistantMessageToolbarCopyMessageLabel: "Copy";
@@ -14,9 +16,12 @@ export declare const CopilotChatDefaultLabels: {
14
16
  readonly assistantMessageToolbarRegenerateLabel: "Regenerate";
15
17
  readonly userMessageToolbarCopyMessageLabel: "Copy";
16
18
  readonly userMessageToolbarEditMessageLabel: "Edit";
19
+ readonly userMessageToolbarPreviousBranchLabel: "Previous branch";
20
+ readonly userMessageToolbarNextBranchLabel: "Next branch";
17
21
  readonly chatDisclaimerText: "AI can make mistakes. Please verify important information.";
18
22
  readonly chatToggleOpenLabel: "Open chat";
19
23
  readonly chatToggleCloseLabel: "Close chat";
24
+ readonly chatScrollToBottomLabel: "Scroll to bottom";
20
25
  readonly modalHeaderTitle: "CopilotKit Chat";
21
26
  readonly welcomeMessageText: "How can I help you today?";
22
27
  };
@@ -1 +1 @@
1
- {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../src/v2/providers/types.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,wBAAwB;;;;;;;;;;;;;;;;;;;;;CAsB3B,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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G;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"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@copilotkit/vue",
3
- "version": "1.79.1",
3
+ "version": "1.80.0",
4
4
  "private": false,
5
5
  "description": "Vue 3 components and composables for CopilotKit",
6
6
  "keywords": [
@@ -70,11 +70,11 @@
70
70
  "streamdown-vue": "^1.0.29",
71
71
  "zod": "^3.25.75",
72
72
  "zod-to-json-schema": "^3.24.5",
73
- "@copilotkit/core": "1.79.1",
74
- "@copilotkit/mcp-apps-renderer": "1.79.1",
75
- "@copilotkit/web-components": "1.79.1",
76
- "@copilotkit/shared": "1.79.1",
77
- "@copilotkit/web-inspector": "1.79.1"
73
+ "@copilotkit/core": "1.80.0",
74
+ "@copilotkit/mcp-apps-renderer": "1.80.0",
75
+ "@copilotkit/shared": "1.80.0",
76
+ "@copilotkit/web-components": "1.80.0",
77
+ "@copilotkit/web-inspector": "1.80.0"
78
78
  },
79
79
  "devDependencies": {
80
80
  "@eslint/js": "^9.39.2",
@@ -63,6 +63,16 @@ export const MCPAppsActivityRenderer = defineComponent({
63
63
  required: false,
64
64
  default: undefined,
65
65
  },
66
+ /**
67
+ * Restore `allow-same-origin` on the sandbox. Unsafe: the widget runs with
68
+ * the host page's origin. Set via `mcpApps.allowSameOriginFallback` on
69
+ * `CopilotKitProvider`.
70
+ */
71
+ allowSameOriginFallback: {
72
+ type: Boolean,
73
+ required: false,
74
+ default: false,
75
+ },
66
76
  },
67
77
  setup(props) {
68
78
  const { copilotkit } = useCopilotKit();
@@ -104,6 +114,7 @@ export const MCPAppsActivityRenderer = defineComponent({
104
114
  () => props.content.resourceUri,
105
115
  () => props.content.serverHash,
106
116
  () => props.content.serverId,
117
+ () => props.allowSameOriginFallback,
107
118
  ],
108
119
  ([container, agent], _old, onCleanup) => {
109
120
  if (!agent) {
@@ -174,6 +185,9 @@ export const MCPAppsActivityRenderer = defineComponent({
174
185
  // activities. It still calls syncContent for activities rendered
175
186
  // from an external messages list (see the seed below).
176
187
  messageId: messageId.value,
188
+ options: {
189
+ allowSameOriginFallback: props.allowSameOriginFallback,
190
+ },
177
191
  hooks: {
178
192
  onResource: (resource) => {
179
193
  if (!mounted) return;
@@ -193,9 +193,19 @@ function mcpAppsActivityContent(overrides: {
193
193
  };
194
194
  }
195
195
 
196
+ /**
197
+ * Render `CopilotChat` inside a provider wired to the mock agent. Optionally
198
+ * registers a custom `activity-mcp-apps` slot and passes `mcpApps` provider config.
199
+ */
196
200
  function renderChatWithAgent(
197
201
  agent: MockMCPProxyAgent,
198
- { withCustomRenderer = false }: { withCustomRenderer?: boolean } = {},
202
+ {
203
+ withCustomRenderer = false,
204
+ mcpApps,
205
+ }: {
206
+ withCustomRenderer?: boolean;
207
+ mcpApps?: { allowSameOriginFallback?: boolean };
208
+ } = {},
199
209
  ) {
200
210
  const agentId = "mcp-test-agent";
201
211
  const threadId = `test-thread-${Math.random().toString(36).slice(2)}`;
@@ -213,10 +223,11 @@ function renderChatWithAgent(
213
223
  threadId,
214
224
  agents: { [agentId]: agent },
215
225
  withCustomRenderer,
226
+ mcpApps,
216
227
  };
217
228
  },
218
229
  template: `
219
- <CopilotKitProvider runtimeUrl="/api/copilotkit" :agents__unsafe_dev_only="agents">
230
+ <CopilotKitProvider runtimeUrl="/api/copilotkit" :agents__unsafe_dev_only="agents" :mcp-apps="mcpApps">
220
231
  <CopilotChatConfigurationProvider :thread-id="threadId" :agent-id="agentId">
221
232
  <div style="height: 400px;">
222
233
  <CopilotChat :welcome-screen="false">
@@ -255,6 +266,67 @@ describe("MCP Apps Activity Renderer E2E", () => {
255
266
  document.body.innerHTML = "";
256
267
  });
257
268
 
269
+ describe("Sandbox isolation", () => {
270
+ /**
271
+ * Render a chat with the given `mcpApps` provider config, emit one MCP Apps
272
+ * activity, and resolve with the sandbox iframe once the session configured it.
273
+ */
274
+ async function mountSandbox(mcpApps?: {
275
+ allowSameOriginFallback?: boolean;
276
+ }) {
277
+ const agent = new MockMCPProxyAgent();
278
+ agent.setRunAgentResponse("resources/read", {
279
+ contents: [
280
+ {
281
+ uri: "ui://test/sandbox",
282
+ mimeType: "text/html",
283
+ text: "<html><body>Sandbox</body></html>",
284
+ },
285
+ ],
286
+ });
287
+ renderChatWithAgent(agent, { mcpApps });
288
+ await submitMessageAndWaitForRun("Sandbox app");
289
+ await agent.emit(runStartedEvent());
290
+ await agent.emit(
291
+ activitySnapshotEvent({
292
+ messageId: "mcp-activity",
293
+ activityType: MCPAppsActivityType,
294
+ content: mcpAppsActivityContent({
295
+ resourceUri: "ui://test/sandbox",
296
+ serverHash: "sandbox-hash",
297
+ }),
298
+ }),
299
+ );
300
+ await agent.emit(runFinishedEvent());
301
+
302
+ let iframe: Element | null = null;
303
+ await waitFor(
304
+ () => {
305
+ iframe = document.querySelector(
306
+ 'iframe[data-testid="mcp-app-iframe"]',
307
+ );
308
+ expect(iframe?.getAttribute("sandbox")).toBeTruthy();
309
+ },
310
+ { timeout: 10_000 },
311
+ );
312
+ return iframe!;
313
+ }
314
+
315
+ // The proxy is loaded via srcdoc, which inherits the host origin, so
316
+ // allow-same-origin would hand the widget the host's cookies and DOM.
317
+ it("gives the widget an opaque origin by default", async () => {
318
+ const iframe = await mountSandbox();
319
+ expect(iframe.getAttribute("sandbox")).toBe("allow-scripts allow-forms");
320
+ });
321
+
322
+ it("restores allow-same-origin with mcpApps.allowSameOriginFallback", async () => {
323
+ const iframe = await mountSandbox({ allowSameOriginFallback: true });
324
+ expect(iframe.getAttribute("sandbox")).toBe(
325
+ "allow-scripts allow-same-origin allow-forms",
326
+ );
327
+ });
328
+ });
329
+
258
330
  describe("Resource Fetching", () => {
259
331
  it("fetches resource content via proxied MCP request on mount", async () => {
260
332
  const agent = new MockMCPProxyAgent();
@@ -1245,7 +1245,11 @@ onBeforeUnmount(() => {
1245
1245
  <button
1246
1246
  type="button"
1247
1247
  data-testid="copilot-chat-input-send"
1248
- aria-label="Send message"
1248
+ :aria-label="
1249
+ isProcessing && hasStopAction
1250
+ ? labels.chatInputToolbarStopButtonLabel
1251
+ : labels.chatInputToolbarSendButtonLabel
1252
+ "
1249
1253
  :disabled="sendDisabled"
1250
1254
  class="cpk:inline-flex cpk:h-9 cpk:w-9 cpk:shrink-0 cpk:items-center cpk:justify-center cpk:rounded-full cpk:bg-black cpk:text-white cpk:transition-colors cpk:hover:opacity-70 cpk:disabled:cursor-not-allowed cpk:disabled:opacity-50 cpk:disabled:bg-[#00000014] cpk:disabled:text-[rgb(13,13,13)] cpk:disabled:hover:opacity-100 cpk:dark:bg-white cpk:dark:text-black cpk:dark:disabled:bg-[#454545] cpk:dark:disabled:text-white"
1251
1255
  @click="handleSendButtonClick"
@@ -290,8 +290,8 @@ onBeforeUnmount(() => {
290
290
  :class="toolbarButtonClass"
291
291
  class="cpk:h-6 cpk:w-6 cpk:p-0"
292
292
  :disabled="!canGoPrev"
293
- aria-label="Previous branch"
294
- title="Previous branch"
293
+ :aria-label="labels.userMessageToolbarPreviousBranchLabel"
294
+ :title="labels.userMessageToolbarPreviousBranchLabel"
295
295
  @click="goPrev"
296
296
  >
297
297
  <IconChevronLeft class="cpk:size-[20px]" />
@@ -306,8 +306,8 @@ onBeforeUnmount(() => {
306
306
  :class="toolbarButtonClass"
307
307
  class="cpk:h-6 cpk:w-6 cpk:p-0"
308
308
  :disabled="!canGoNext"
309
- aria-label="Next branch"
310
- title="Next branch"
309
+ :aria-label="labels.userMessageToolbarNextBranchLabel"
310
+ :title="labels.userMessageToolbarNextBranchLabel"
311
311
  @click="goNext"
312
312
  >
313
313
  <IconChevronRight class="cpk:size-[20px]" />
@@ -660,6 +660,7 @@ onBeforeUnmount(() => {
660
660
  <button
661
661
  type="button"
662
662
  data-testid="copilot-chat-view-scroll-to-bottom"
663
+ :aria-label="labels.chatScrollToBottomLabel"
663
664
  class="cpk:rounded-full cpk:w-10 cpk:h-10 cpk:p-0 cpk:pointer-events-auto cpk:bg-white cpk:dark:bg-gray-900 cpk:shadow-lg cpk:border cpk:border-gray-200 cpk:dark:border-gray-700 cpk:hover:bg-gray-50 cpk:dark:hover:bg-gray-800 cpk:flex cpk:items-center cpk:justify-center cpk:cursor-pointer"
664
665
  @click="scrollToBottom()"
665
666
  >
@@ -535,6 +535,45 @@ describe("CopilotChatInput", () => {
535
535
  });
536
536
  });
537
537
 
538
+ // The send button shows only an icon, so its accessible name comes from the
539
+ // labels config; that is also what lets an app translate it.
540
+ it("names the send button with the default label", () => {
541
+ renderWithProvider({
542
+ props: { modelValue: "" },
543
+ listeners: { onSubmitMessage: mockOnSubmitMessage },
544
+ });
545
+
546
+ expect(screen.getByRole("button", { name: "Send message" })).toBe(
547
+ getSendButton(),
548
+ );
549
+ });
550
+
551
+ it("names the send button Stop while it stops the run", () => {
552
+ renderWithProvider({
553
+ props: { modelValue: "", isRunning: true },
554
+ listeners: { onSubmitMessage: mockOnSubmitMessage, onStop: vi.fn() },
555
+ });
556
+
557
+ expect(screen.getByRole("button", { name: "Stop" })).toBe(getSendButton());
558
+ });
559
+
560
+ it("names the send button with the configured labels", () => {
561
+ renderWithProvider({
562
+ template: `
563
+ <CopilotChatConfigurationProvider
564
+ :thread-id="TEST_THREAD_ID"
565
+ :labels="{ chatInputToolbarSendButtonLabel: 'Nachricht senden' }"
566
+ >
567
+ <CopilotChatInput model-value="" />
568
+ </CopilotChatConfigurationProvider>
569
+ `,
570
+ });
571
+
572
+ expect(screen.getByRole("button", { name: "Nachricht senden" })).toBe(
573
+ getSendButton(),
574
+ );
575
+ });
576
+
538
577
  it("shows cancel and finish buttons in transcribe mode", () => {
539
578
  renderWithProvider({
540
579
  props: {