@copilotkit/vue 1.79.2-canary.1792172552 → 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.
- package/PARITY.md +1 -0
- package/dist/index.cjs +1 -1
- package/dist/index.cjs.map +1 -1
- package/dist/index.mjs +3 -2
- package/dist/index.mjs.map +1 -1
- package/dist/{use-render-activity-message-DlRZfpDh.js → use-render-activity-message-BhgLK8XD.js} +3068 -3042
- package/dist/use-render-activity-message-BhgLK8XD.js.map +1 -0
- package/dist/use-render-activity-message-DfvDG9VF.cjs +70 -0
- package/dist/use-render-activity-message-DfvDG9VF.cjs.map +1 -0
- package/dist/v2/components/A2UISurfaceActivityRenderer.vue.d.ts.map +1 -1
- package/dist/v2/components/MCPAppsActivityRenderer.d.ts +21 -0
- package/dist/v2/components/MCPAppsActivityRenderer.d.ts.map +1 -1
- package/dist/v2/components/chat/CopilotChatInput.vue.d.ts +30 -0
- package/dist/v2/components/chat/CopilotChatInput.vue.d.ts.map +1 -1
- package/dist/v2/components/chat/CopilotChatView.vue.d.ts.map +1 -1
- package/dist/v2/index.cjs +1 -1
- package/dist/v2/index.mjs +1 -1
- package/dist/v2/providers/CopilotKitProvider.types.d.ts +12 -0
- 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/types.d.ts +5 -0
- package/dist/v2/providers/types.d.ts.map +1 -1
- package/package.json +9 -9
- package/src/v2/components/A2UISurfaceActivityRenderer.vue +17 -12
- package/src/v2/components/MCPAppsActivityRenderer.ts +14 -0
- package/src/v2/components/__tests__/MCPAppsActivityRenderer.e2e.test.ts +74 -2
- package/src/v2/components/chat/CopilotChatInput.vue +5 -1
- package/src/v2/components/chat/CopilotChatUserMessage.vue +4 -4
- package/src/v2/components/chat/CopilotChatView.vue +1 -0
- package/src/v2/components/chat/__tests__/CopilotChatInput.test.ts +39 -0
- package/src/v2/components/chat/__tests__/CopilotChatUserMessage.test.ts +42 -1
- package/src/v2/components/chat/__tests__/CopilotChatView.test.ts +56 -0
- package/src/v2/providers/CopilotKitProvider.types.ts +12 -0
- package/src/v2/providers/CopilotKitProvider.vue +14 -2
- package/src/v2/providers/__tests__/CopilotKitProvider.sandboxReplay.test.ts +157 -0
- package/src/v2/providers/types.ts +5 -0
- package/dist/use-render-activity-message-CGgJhO9J.cjs +0 -70
- package/dist/use-render-activity-message-CGgJhO9J.cjs.map +0 -1
- package/dist/use-render-activity-message-DlRZfpDh.js.map +0 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"A2UISurfaceActivityRenderer.vue.d.ts","sourceRoot":"","sources":["../../../src/v2/components/A2UISurfaceActivityRenderer.vue"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"A2UISurfaceActivityRenderer.vue.d.ts","sourceRoot":"","sources":["../../../src/v2/components/A2UISurfaceActivityRenderer.vue"],"names":[],"mappings":"AAqMA,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,aAAa,CAAC;AACnD,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,UAAU,CAAC;AAC1C,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,QAAQ,CAAC;AAY5C,KAAK,WAAW,GAAG;IACjB,YAAY,EAAE,MAAM,CAAC;IACrB,OAAO,EAAE;QAAE,UAAU,EAAE,aAAa,EAAE,CAAA;KAAE,CAAC;IACzC,OAAO,EAAE,eAAe,CAAC;IACzB,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,KAAK,CAAC,EAAE,SAAS,CAAC;IAClB,OAAO,CAAC,EAAE,GAAG,CAAC;CACf,CAAC;;AAuNF,wBAMG"}
|
|
@@ -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,QA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AS,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":"
|
|
1
|
+
{"version":3,"file":"CopilotChatInput.vue.d.ts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AAA;CAAE,GACtD;IAAE,gBAAgB,CAAC,EAAE,CAAC,KAAK,EAAE,OAAO,QAAQ,KAAK,GAAG,CAAA;CAAE,GACtD;IAAE,WAAW,CAAC,EAAE,CAAC,KAAK,EAAE,OAAO,QAAQ,KAAK,GAAG,CAAA;CAAE,GACjD;IAAE,0BAA0B,CAAC,EAAE,CAAC,KAAK,EAAE,OAAO,QAAQ,KAAK,GAAG,CAAA;CAAE,GAChE;IAAE,0BAA0B,CAAC,EAAE,CAAC,KAAK,EAAE,OAAO,QAAQ,KAAK,GAAG,CAAA;CAAE,GAChE;IAAE,yBAAyB,CAAC,EAAE,CAAC,KAAK,EAAE,OAAO,QAAQ,KAAK,GAAG,CAAA;CAAE,GAC/D;IAAE,aAAa,CAAC,EAAE,CAAC,KAAK,EAAE,OAAO,QAAQ,KAAK,GAAG,CAAA;CAAE,GACnD;IAAE,UAAU,CAAC,EAAE,CAAC,KAAK,EAAE,OAAO,QAAQ,KAAK,GAAG,CAAA;CAAE,CAAC;AA6EnD,QAAA,MAAM,eAAe;;;;;;;;;;;;;;;;;;;UA9oDV,oBAAoB;cAJhB,OAAO;eAMN,OAAO;eAJP,OAAO;mBACH,OAAO;eAEX,SAAS,EAAE;iBAET,QAAQ,GAAG,UAAU;oBAClB,MAAM;oBACN,OAAO;aACd,MAAM;oBAcC,OAAO;6EAkoD1B,CAAC;wBACkB,eAAe,CAAC,OAAO,eAAe,EAAE,WAAW,CAAC;AAAzE,wBAA0E;AAa1E,KAAK,eAAe,CAAC,CAAC,EAAE,CAAC,IAAI,CAAC,GAAG;IAChC,QAAO;QACN,MAAM,EAAE,CAAC,CAAC;KAEV,CAAA;CACD,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"CopilotChatView.vue.d.ts","sourceRoot":"","sources":["../../../../src/v2/components/chat/CopilotChatView.vue"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"CopilotChatView.vue.d.ts","sourceRoot":"","sources":["../../../../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,CAAC;QACjB,UAAU,EAAE,OAAO,CAAC;QACpB,aAAa,EAAE,OAAO,CAAC;QACvB,kBAAkB,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK,IAAI,CAAC;QAC5C,eAAe,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK,IAAI,CAAC;QACzC,MAAM,EAAE,MAAM,IAAI,CAAC;QACnB,SAAS,EAAE,MAAM,IAAI,CAAC;QACtB,iBAAiB,EAAE,MAAM,IAAI,CAAC;QAC9B,kBAAkB,EAAE,MAAM,IAAI,CAAC;QAC/B,kBAAkB,EAAE,MAAM,IAAI,CAAC;QAC/B,2BAA2B,EAAE,CAAC,SAAS,EAAE,IAAI,KAAK,IAAI,GAAG,OAAO,CAAC,IAAI,CAAC,CAAC;QACvE,kBAAkB,EAAE,CAAC,UAAU,EAAE,UAAU,EAAE,KAAK,EAAE,MAAM,KAAK,IAAI,CAAC;KACrE,KAAK,OAAO,CAAC;IACd,iBAAiB,CAAC,EAAE,MAAM,OAAO,CAAC;IAClC,CAAC,GAAG,EAAE,MAAM,GAAG,CAAC,CAAC,KAAK,EAAE,GAAG,KAAK,OAAO,CAAC,GAAG,SAAS,CAAC;CACtD,CAAC;AA81BF,QAAA,MAAM,eAAe;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;6EAQnB,CAAC;wBACkB,eAAe,CAAC,OAAO,eAAe,EAAE,WAAW,CAAC;AAAzE,wBAA0E;AAa1E,KAAK,eAAe,CAAC,CAAC,EAAE,CAAC,IAAI,CAAC,GAAG;IAChC,QAAO;QACN,MAAM,EAAE,CAAC,CAAC;KAEV,CAAA;CACD,CAAC"}
|
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-CGgJhO9J.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-
|
|
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,EACf,iBAAiB,EACjB,mBAAmB,EACpB,MA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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,CAAC,EAAE,MAAM,CAAC;IAC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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?:
|
|
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":"
|
|
1
|
+
{"version":3,"file":"CopilotKitProvider.vue.d.ts","sourceRoot":"","sources":["../../../src/v2/providers/CopilotKitProvider.vue"],"names":[],"mappings":"AAm2BA,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;AAiC1B,OAAO,KAAK,EAAE,uBAAuB,EAAE,MAAM,4BAA4B,CAAC;AAC1E,OAAO,KAAK,EACV,eAAe,EACf,0BAA0B,EAC1B,eAAe,EAGhB,MAAM,UAAU,CAAC;AA01BlB,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;;;;;;;;;;;wBAp7BrB,CAnxBwB;mBAmxBxB,CAlxBuB;;;;aAkxBvB,CA1wBsC;eA0wBtC,CAzwBA;wBAywBA,CAzwB4B;qBAywB5B,CAzwB2D;;;+BAywB3D,CAlwBgF;;6EA6rD9E,CAAC;wBACkB,eAAe,CAAC,OAAO,eAAe,EAAE,WAAW,CAAC;AAAzE,wBAA0E;AAa1E,KAAK,eAAe,CAAC,CAAC,EAAE,CAAC,IAAI,CAAC,GAAG;IAChC,QAAO;QACN,MAAM,EAAE,CAAC,CAAC;KAEV,CAAA;CACD,CAAC"}
|
|
@@ -5,6 +5,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
|
|
1
|
+
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../src/v2/providers/types.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,wBAAwB;;;;;;;;;;;;;;;;;;;;;;;;;;CA2B3B,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"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@copilotkit/vue",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.80.0",
|
|
4
4
|
"private": false,
|
|
5
5
|
"description": "Vue 3 components and composables for CopilotKit",
|
|
6
6
|
"keywords": [
|
|
@@ -62,19 +62,19 @@
|
|
|
62
62
|
},
|
|
63
63
|
"dependencies": {
|
|
64
64
|
"@a2ui/web_core": "0.10.4",
|
|
65
|
-
"@ag-ui/client": "1.0.
|
|
66
|
-
"@ag-ui/core": "1.0.
|
|
67
|
-
"@copilotkit/core": "1.79.2-canary.1792172552",
|
|
68
|
-
"@copilotkit/mcp-apps-renderer": "1.79.2-canary.1792172552",
|
|
69
|
-
"@copilotkit/shared": "1.79.2-canary.1792172552",
|
|
70
|
-
"@copilotkit/web-components": "1.79.2-canary.1792172552",
|
|
71
|
-
"@copilotkit/web-inspector": "1.79.2-canary.1792172552",
|
|
65
|
+
"@ag-ui/client": "1.0.2",
|
|
66
|
+
"@ag-ui/core": "1.0.2",
|
|
72
67
|
"@jetbrains/websandbox": "^1.1.3",
|
|
73
68
|
"katex": "^0.16.27",
|
|
74
69
|
"lucide-vue-next": "^0.525.0",
|
|
75
70
|
"streamdown-vue": "^1.0.29",
|
|
76
71
|
"zod": "^3.25.75",
|
|
77
|
-
"zod-to-json-schema": "^3.24.5"
|
|
72
|
+
"zod-to-json-schema": "^3.24.5",
|
|
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",
|
|
@@ -1,15 +1,24 @@
|
|
|
1
1
|
<script setup lang="ts">
|
|
2
|
-
import {
|
|
3
|
-
|
|
2
|
+
import {
|
|
3
|
+
computed,
|
|
4
|
+
h,
|
|
5
|
+
onBeforeUnmount,
|
|
6
|
+
shallowRef,
|
|
7
|
+
ref,
|
|
8
|
+
watch,
|
|
9
|
+
type VNode,
|
|
10
|
+
} from "vue";
|
|
4
11
|
import type { ActivityMessage } from "@ag-ui/core";
|
|
5
12
|
import type { A2UITheme } from "../types";
|
|
6
13
|
import type { A2UIOperation } from "./a2ui";
|
|
7
14
|
import { getOperationSurfaceId } from "./a2ui";
|
|
8
15
|
import { useCopilotKit } from "../providers";
|
|
9
|
-
import { MessageProcessor } from "@a2ui/web_core/v0_9";
|
|
10
|
-
import
|
|
11
|
-
|
|
12
|
-
|
|
16
|
+
import { MessageProcessor, type SurfaceModel } from "@a2ui/web_core/v0_9";
|
|
17
|
+
import {
|
|
18
|
+
vueBasicCatalog,
|
|
19
|
+
A2uiSurface,
|
|
20
|
+
type VueComponentImplementation,
|
|
21
|
+
} from "./a2ui/index";
|
|
13
22
|
|
|
14
23
|
const DEFAULT_SURFACE_ID = "default";
|
|
15
24
|
|
|
@@ -52,7 +61,7 @@ async function handleAction(message: unknown) {
|
|
|
52
61
|
if (!props.agent) return;
|
|
53
62
|
try {
|
|
54
63
|
copilotkit.value.setProperties({
|
|
55
|
-
...copilotkit.value.properties,
|
|
64
|
+
...(copilotkit.value.properties ?? {}),
|
|
56
65
|
a2uiAction: message,
|
|
57
66
|
});
|
|
58
67
|
await copilotkit.value.runAgent({ agent: props.agent as any });
|
|
@@ -85,11 +94,7 @@ function processOperations(operations: A2UIOperation[]) {
|
|
|
85
94
|
const filtered = existing
|
|
86
95
|
? ops.filter((op) => !(op as any)?.createSurface)
|
|
87
96
|
: ops;
|
|
88
|
-
|
|
89
|
-
// the user interacts; they come from the agent's message content. Copy
|
|
90
|
-
// through JSON: the operations are JSON, and Vue's reactive proxies
|
|
91
|
-
// cannot be structured-cloned.
|
|
92
|
-
processor.processMessages(JSON.parse(JSON.stringify(filtered)) as any);
|
|
97
|
+
processor.processMessages(filtered as any);
|
|
93
98
|
}
|
|
94
99
|
error.value = null;
|
|
95
100
|
} catch (err) {
|
|
@@ -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
|
-
{
|
|
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="
|
|
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"
|