@copilotkit/vue 1.64.1 → 1.64.2-canary.1785346263
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/dist/index.cjs +1 -1
- package/dist/index.mjs +2 -2
- package/dist/{use-render-activity-message-DzgJkxe2.cjs → use-render-activity-message-CNbp9Fob.cjs} +2 -2
- package/dist/use-render-activity-message-CNbp9Fob.cjs.map +1 -0
- package/dist/{use-render-activity-message-CszKQeFs.js → use-render-activity-message-CaArNmtw.js} +209 -209
- package/dist/use-render-activity-message-CaArNmtw.js.map +1 -0
- package/dist/v2/components/MCPAppsActivityRenderer.d.ts.map +1 -1
- package/dist/v2/index.cjs +1 -1
- package/dist/v2/index.mjs +1 -1
- package/package.json +5 -5
- package/src/v2/components/MCPAppsActivityRenderer.ts +6 -0
- package/src/v2/components/__tests__/MCPAppsActivityRenderer.test.ts +41 -0
- package/dist/use-render-activity-message-CszKQeFs.js.map +0 -1
- package/dist/use-render-activity-message-DzgJkxe2.cjs.map +0 -1
|
@@ -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,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AACxB,OAAO,KAAK,EAAE,aAAa,EAAkB,MAAM,eAAe,CAAC;AAEnE,OAAO,KAAK,EAAE,+BAA+B,EAAE,MAAM,UAAU,CAAC;AAmKhE,eAAO,MAAM,mBAAmB,aAAa,CAAC;AAE9C,eAAO,MAAM,4BAA4B;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAUvC,CAAC;AAEH,MAAM,MAAM,sBAAsB,GAAG,CAAC,CAAC,KAAK,CAC1C,OAAO,4BAA4B,CACpC,CAAC;AAkDF,eAAO,MAAM,uBAAuB;;;;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CAAC;;;;;;4EA+gBvD,CAAC;AAEH,eAAe,uBAAuB,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"),i=require("@ag-ui/client"),e=require("../use-render-activity-message-
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const o=require("@copilotkit/core"),i=require("@ag-ui/client"),e=require("../use-render-activity-message-CNbp9Fob.cjs"),n=require("@copilotkit/shared");exports.A2UIActivityContentSchema=e.A2UIActivityContentSchema;exports.A2UISurfaceActivityRenderer=e._sfc_main;exports.A2UISurfaceActivityType=e.A2UISurfaceActivityType;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.GenerateSandboxedUiArgsSchema=e.GenerateSandboxedUiArgsSchema;exports.LicenseContextKey=e.LicenseContextKey;exports.MCPAppsActivityContentSchema=e.MCPAppsActivityContentSchema;exports.MCPAppsActivityRenderer=e.MCPAppsActivityRenderer;exports.MCPAppsActivityType=e.MCPAppsActivityType;exports.OpenGenerativeUIActivityRenderer=e.OpenGenerativeUIActivityRenderer;exports.OpenGenerativeUIActivityType=e.OpenGenerativeUIActivityType;exports.OpenGenerativeUIContentSchema=e.OpenGenerativeUIContentSchema;exports.OpenGenerativeUIRenderer=e.OpenGenerativeUIRenderer;exports.OpenGenerativeUIToolRenderer=e.OpenGenerativeUIToolRenderer;exports.UseAgentUpdate=e.UseAgentUpdate;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,"createLicenseContextValue",{enumerable:!0,get:()=>n.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(i).forEach(t=>{t!=="default"&&!Object.prototype.hasOwnProperty.call(exports,t)&&Object.defineProperty(exports,t,{enumerable:!0,get:()=>i[t]})});
|
|
2
2
|
//# sourceMappingURL=index.cjs.map
|
package/dist/v2/index.mjs
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
export * from "@copilotkit/core";
|
|
2
2
|
export * from "@ag-ui/client";
|
|
3
|
-
import { A as o, _ as i, a as n, C, b as r, c as p, d as l, e as u, f as c, g, h as d, i as h, j as A, k as v, l as S, m, n as y, o as I, p as f, q as R, r as T, s as U, t as x, u as M, v as P, w as b, x as V, y as w, z as K, B as O, G, L, M as B, D, E as H, O as F, F as Q, H as j, I as k, J as q, U as z, K as E, N as J, P as N, Q as W, R as X, S as Y, T as Z, V as _, W as $, X as ee, Y as ae, Z as te, $ as se, a0 as oe, a1 as ie, a2 as ne, a3 as Ce, a4 as re, a5 as pe, a6 as le, a7 as ue, a8 as ce, a9 as ge, aa as de, ab as he, ac as Ae, ad as ve, ae as Se } from "../use-render-activity-message-
|
|
3
|
+
import { A as o, _ as i, a as n, C, b as r, c as p, d as l, e as u, f as c, g, h as d, i as h, j as A, k as v, l as S, m, n as y, o as I, p as f, q as R, r as T, s as U, t as x, u as M, v as P, w as b, x as V, y as w, z as K, B as O, G, L, M as B, D, E as H, O as F, F as Q, H as j, I as k, J as q, U as z, K as E, N as J, P as N, Q as W, R as X, S as Y, T as Z, V as _, W as $, X as ee, Y as ae, Z as te, $ as se, a0 as oe, a1 as ie, a2 as ne, a3 as Ce, a4 as re, a5 as pe, a6 as le, a7 as ue, a8 as ce, a9 as ge, aa as de, ab as he, ac as Ae, ad as ve, ae as Se } from "../use-render-activity-message-CaArNmtw.js";
|
|
4
4
|
import { createLicenseContextValue as ye } from "@copilotkit/shared";
|
|
5
5
|
export {
|
|
6
6
|
o as A2UIActivityContentSchema,
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@copilotkit/vue",
|
|
3
|
-
"version": "1.64.
|
|
3
|
+
"version": "1.64.2-canary.1785346263",
|
|
4
4
|
"private": false,
|
|
5
5
|
"description": "Vue 3 components and composables for CopilotKit",
|
|
6
6
|
"keywords": [
|
|
@@ -70,10 +70,10 @@
|
|
|
70
70
|
"streamdown-vue": "^1.0.29",
|
|
71
71
|
"zod": "^3.25.75",
|
|
72
72
|
"zod-to-json-schema": "^3.24.5",
|
|
73
|
-
"@copilotkit/
|
|
74
|
-
"@copilotkit/
|
|
75
|
-
"@copilotkit/web-
|
|
76
|
-
"@copilotkit/
|
|
73
|
+
"@copilotkit/shared": "1.64.2-canary.1785346263",
|
|
74
|
+
"@copilotkit/web-components": "1.64.2-canary.1785346263",
|
|
75
|
+
"@copilotkit/web-inspector": "1.64.2-canary.1785346263",
|
|
76
|
+
"@copilotkit/core": "1.64.2-canary.1785346263"
|
|
77
77
|
},
|
|
78
78
|
"devDependencies": {
|
|
79
79
|
"@eslint/js": "^9.39.2",
|
|
@@ -427,6 +427,12 @@ export const MCPAppsActivityRenderer = defineComponent({
|
|
|
427
427
|
"sandbox",
|
|
428
428
|
"allow-scripts allow-same-origin allow-forms",
|
|
429
429
|
);
|
|
430
|
+
// Cross-frontend MCP-apps surface contract — same testid/title pair
|
|
431
|
+
// as react-core's MCPAppsActivityRenderer and Angular's
|
|
432
|
+
// copilot-mcp-apps-widget, so the shared harness probe can assert
|
|
433
|
+
// the surface mounted with one selector on every frontend.
|
|
434
|
+
iframe.setAttribute("data-testid", "mcp-app-iframe");
|
|
435
|
+
iframe.setAttribute("title", "Interactive MCP application");
|
|
430
436
|
|
|
431
437
|
const sandboxReady = new Promise<void>((resolve) => {
|
|
432
438
|
initialListener = (event: MessageEvent) => {
|
|
@@ -234,4 +234,45 @@ describe("MCPAppsActivityRenderer", () => {
|
|
|
234
234
|
);
|
|
235
235
|
expect(iframe.srcdoc).not.toContain("widgets.example.com");
|
|
236
236
|
});
|
|
237
|
+
|
|
238
|
+
// Cross-frontend surface contract: the shared harness probe
|
|
239
|
+
// (`showcase/harness/src/probes/scripts/d5-mcp-apps.ts`) settles the turn on
|
|
240
|
+
// `[data-testid="mcp-app-iframe"]` mounting. Angular and react-core declare
|
|
241
|
+
// the same pair; dropping it here silently reds the D5/D6 mcp-apps rows on
|
|
242
|
+
// every Vue integration while the demo still looks fine by hand.
|
|
243
|
+
it("tags the sandbox iframe with the shared mcp-app-iframe testid", async () => {
|
|
244
|
+
const agent = createAgentMock({
|
|
245
|
+
runResult: {
|
|
246
|
+
result: {
|
|
247
|
+
contents: [{ uri: "ui://server/testid", text: "<div>testid</div>" }],
|
|
248
|
+
},
|
|
249
|
+
},
|
|
250
|
+
threadId: "testid-thread",
|
|
251
|
+
});
|
|
252
|
+
|
|
253
|
+
const wrapper = mount(MCPAppsActivityRenderer, {
|
|
254
|
+
props: {
|
|
255
|
+
activityType: MCPAppsActivityType,
|
|
256
|
+
content: {
|
|
257
|
+
resourceUri: "ui://server/testid",
|
|
258
|
+
serverHash: "hash-testid",
|
|
259
|
+
result: {},
|
|
260
|
+
},
|
|
261
|
+
message: {
|
|
262
|
+
id: "activity-testid",
|
|
263
|
+
role: "assistant",
|
|
264
|
+
content: "",
|
|
265
|
+
activityType: MCPAppsActivityType,
|
|
266
|
+
},
|
|
267
|
+
agent,
|
|
268
|
+
},
|
|
269
|
+
});
|
|
270
|
+
|
|
271
|
+
await flushAsync();
|
|
272
|
+
await flushAsync();
|
|
273
|
+
|
|
274
|
+
const iframe = wrapper.find('iframe[data-testid="mcp-app-iframe"]');
|
|
275
|
+
expect(iframe.exists()).toBe(true);
|
|
276
|
+
expect(iframe.attributes("title")).toBe("Interactive MCP application");
|
|
277
|
+
});
|
|
237
278
|
});
|