@copilotkit/vue 1.61.2 → 1.62.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/dist/index.cjs +1 -1
- package/dist/index.mjs +12 -11
- package/dist/styles.css +1 -1
- package/dist/{use-render-activity-message-B1YTA0pi.js → use-render-activity-message-Bzh3Bckz.js} +2075 -2070
- package/dist/use-render-activity-message-Bzh3Bckz.js.map +1 -0
- package/dist/{use-render-activity-message-9_0XvKn5.cjs → use-render-activity-message-CW3vipBB.cjs} +19 -19
- package/dist/use-render-activity-message-CW3vipBB.cjs.map +1 -0
- package/dist/v2/components/chat/CopilotChatView.vue.d.ts.map +1 -1
- package/dist/v2/components/chat/index.d.ts.map +1 -1
- package/dist/v2/index.cjs +1 -1
- package/dist/v2/index.d.cts +1 -0
- package/dist/v2/index.d.mts +1 -0
- package/dist/v2/index.d.ts +1 -0
- package/dist/v2/index.d.ts.map +1 -1
- package/dist/v2/index.mjs +8 -7
- package/dist/v2/providers/CopilotKitProvider.vue.d.ts.map +1 -1
- package/package.json +4 -4
- package/src/v2/__tests__/exports.test.ts +7 -0
- package/src/v2/components/chat/CopilotChatInput.vue +1 -1
- package/src/v2/components/chat/CopilotChatSuggestionView.vue +1 -1
- package/src/v2/components/chat/CopilotChatView.vue +3 -3
- package/src/v2/index.ts +5 -0
- package/src/v2/providers/CopilotKitProvider.vue +21 -6
- package/src/v2/providers/__tests__/CopilotKitProvider.a2ui.test.ts +78 -0
- package/dist/use-render-activity-message-9_0XvKn5.cjs.map +0 -1
- package/dist/use-render-activity-message-B1YTA0pi.js.map +0 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"CopilotChatView.vue.d.ts","sourceRoot":"","sources":["../../../../src/v2/components/chat/CopilotChatView.vue"],"names":[],"mappings":"AAgvBA,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,aAAa,CAAC;AAC3C,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,k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=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-CW3vipBB.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.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.d.cts
CHANGED
package/dist/v2/index.d.mts
CHANGED
package/dist/v2/index.d.ts
CHANGED
package/dist/v2/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/v2/index.ts"],"names":[],"mappings":"AACA,cAAc,kBAAkB,CAAC;AACjC,cAAc,eAAe,CAAC;AAG9B,cAAc,cAAc,CAAC;
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/v2/index.ts"],"names":[],"mappings":"AACA,cAAc,kBAAkB,CAAC;AACjC,cAAc,eAAe,CAAC;AAG9B,cAAc,cAAc,CAAC;AAK7B,OAAO,EAAE,eAAe,EAAE,MAAM,2BAA2B,CAAC;AAC5D,cAAc,SAAS,CAAC;AACxB,cAAc,aAAa,CAAC;AAC5B,cAAc,SAAS,CAAC;AACxB,cAAc,gBAAgB,CAAC;AAC/B,cAAc,0BAA0B,CAAC"}
|
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
|
|
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 K, z as O, G as w, L as G, M as L, B, D as H, O as D, E as F, F as Q, H as j, I as k, U as q, J 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 } from "../use-render-activity-message-Bzh3Bckz.js";
|
|
4
4
|
import { createLicenseContextValue as me } from "@copilotkit/shared";
|
|
5
5
|
export {
|
|
6
6
|
o as A2UIActivityContentSchema,
|
|
@@ -16,9 +16,9 @@ export {
|
|
|
16
16
|
d as CopilotChatInput,
|
|
17
17
|
h as CopilotChatMessageView,
|
|
18
18
|
A as CopilotChatReasoningMessage,
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
19
|
+
v as CopilotChatSuggestionPill,
|
|
20
|
+
S as CopilotChatSuggestionView,
|
|
21
|
+
m as CopilotChatToggleButton,
|
|
22
22
|
y as CopilotChatToggleButtonCloseIcon,
|
|
23
23
|
I as CopilotChatToggleButtonOpenIcon,
|
|
24
24
|
f as CopilotChatToolCallsView,
|
|
@@ -35,8 +35,8 @@ export {
|
|
|
35
35
|
w as GenerateSandboxedUiArgsSchema,
|
|
36
36
|
G as LicenseContextKey,
|
|
37
37
|
L as MCPAppsActivityContentSchema,
|
|
38
|
-
|
|
39
|
-
|
|
38
|
+
B as MCPAppsActivityRenderer,
|
|
39
|
+
H as MCPAppsActivityType,
|
|
40
40
|
D as OpenGenerativeUIActivityRenderer,
|
|
41
41
|
F as OpenGenerativeUIActivityType,
|
|
42
42
|
Q as OpenGenerativeUIContentSchema,
|
|
@@ -70,6 +70,7 @@ export {
|
|
|
70
70
|
ge as useRenderTool,
|
|
71
71
|
de as useSandboxFunctions,
|
|
72
72
|
he as useSuggestions,
|
|
73
|
-
Ae as useThreads
|
|
73
|
+
Ae as useThreads,
|
|
74
|
+
ve as vueBasicCatalog
|
|
74
75
|
};
|
|
75
76
|
//# sourceMappingURL=index.mjs.map
|
|
@@ -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":"AAsqBA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,eAAe,CAAC;AAiCnD,OAAO,KAAK,EAAE,uBAAuB,EAAE,MAAM,4BAA4B,CAAC;AAC1E,OAAO,KAAK,EACV,eAAe,EACf,0BAA0B,EAC1B,eAAe,EACf,iBAAiB,EAElB,MAAM,UAAU,CAAC;AAuqBlB,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;AA2B/C,QAAA,MAAM,eAAe;;;;;;;;;;;wBAtvBrB,CApnByB;mBAonBzB,CAnnBkC;;;;aAmnBlC,CAhnBoC;eAgnBpC,CAhnB6D;wBAgnB7D,CA9mBA;qBA8mBA,CA7mBY;;6EA02CV,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/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@copilotkit/vue",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.62.0",
|
|
4
4
|
"private": false,
|
|
5
5
|
"description": "Vue 3 components and composables for CopilotKit",
|
|
6
6
|
"keywords": [
|
|
@@ -70,9 +70,9 @@
|
|
|
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.
|
|
74
|
-
"@copilotkit/web-inspector": "1.
|
|
75
|
-
"@copilotkit/shared": "1.
|
|
73
|
+
"@copilotkit/core": "1.62.0",
|
|
74
|
+
"@copilotkit/web-inspector": "1.62.0",
|
|
75
|
+
"@copilotkit/shared": "1.62.0"
|
|
76
76
|
},
|
|
77
77
|
"devDependencies": {
|
|
78
78
|
"@eslint/js": "^9.39.2",
|
|
@@ -25,6 +25,13 @@ describe("package exports", () => {
|
|
|
25
25
|
expect(typeof VuePackage.A2UISurfaceActivityRenderer).toBe("object");
|
|
26
26
|
});
|
|
27
27
|
|
|
28
|
+
it("exports the default A2UI catalog for the catalog-on-provider path", () => {
|
|
29
|
+
// Users pass this to `a2ui.catalog` to enable A2UI from the provider.
|
|
30
|
+
// Guards against the library build tree-shaking the re-export away.
|
|
31
|
+
expect(VuePackage.vueBasicCatalog).toBeDefined();
|
|
32
|
+
expect(VuePackage.vueBasicCatalog.components.size).toBeGreaterThan(0);
|
|
33
|
+
});
|
|
34
|
+
|
|
28
35
|
it("exports the vue stylesheet entrypoint", () => {
|
|
29
36
|
const packageJson = JSON.parse(readFileSync("package.json", "utf8")) as {
|
|
30
37
|
exports?: Record<string, unknown>;
|
|
@@ -963,7 +963,7 @@ onBeforeUnmount(() => {
|
|
|
963
963
|
v-bind="rootAttrs"
|
|
964
964
|
>
|
|
965
965
|
<div
|
|
966
|
-
class="cpk:pointer-events-auto cpk:mx-auto cpk:max-w-3xl cpk:px-4 cpk:py-0 cpk:
|
|
966
|
+
class="cpk:pointer-events-auto cpk:mx-auto cpk:max-w-3xl cpk:px-4 cpk:py-0 cpk:@3xl:px-0 cpk:[div[data-sidebar-chat]_&]:px-8 cpk:[div[data-popup-chat]_&]:px-4"
|
|
967
967
|
>
|
|
968
968
|
<slot
|
|
969
969
|
name="layout"
|
|
@@ -33,7 +33,7 @@ const emit = defineEmits<{
|
|
|
33
33
|
const attrs = useAttrs();
|
|
34
34
|
const loadingSet = computed(() => new Set(props.loadingIndexes));
|
|
35
35
|
const containerClass = computed(() => [
|
|
36
|
-
"cpk:flex cpk:flex-wrap cpk:items-center cpk:gap-1.5 cpk:pl-0 cpk:pr-4 cpk:pointer-events-none cpk:sm:gap-2 cpk:
|
|
36
|
+
"cpk:flex cpk:flex-wrap cpk:items-center cpk:gap-1.5 cpk:pl-0 cpk:pr-4 cpk:pointer-events-none cpk:sm:gap-2 cpk:@3xl:px-0",
|
|
37
37
|
attrs.class,
|
|
38
38
|
]);
|
|
39
39
|
const containerAttrs = computed(() => {
|
|
@@ -458,7 +458,7 @@ onBeforeUnmount(() => {
|
|
|
458
458
|
<template>
|
|
459
459
|
<div
|
|
460
460
|
data-copilotkit
|
|
461
|
-
class="cpk:relative cpk:h-full"
|
|
461
|
+
class="cpk:@container cpk:relative cpk:h-full"
|
|
462
462
|
data-testid="copilot-chat-view"
|
|
463
463
|
v-bind="$attrs"
|
|
464
464
|
@dragover="handleDragOver"
|
|
@@ -590,7 +590,7 @@ onBeforeUnmount(() => {
|
|
|
590
590
|
@scroll="handleScroll"
|
|
591
591
|
>
|
|
592
592
|
<div
|
|
593
|
-
class="cpk:px-4 cpk:
|
|
593
|
+
class="cpk:px-4 cpk:@3xl:px-0 cpk:[div[data-sidebar-chat]_&]:px-8 cpk:[div[data-popup-chat]_&]:px-6"
|
|
594
594
|
>
|
|
595
595
|
<div
|
|
596
596
|
ref="scrollContentRef"
|
|
@@ -618,7 +618,7 @@ onBeforeUnmount(() => {
|
|
|
618
618
|
</slot>
|
|
619
619
|
<div
|
|
620
620
|
v-if="hasSuggestions"
|
|
621
|
-
class="cpk:mt-4 cpk:pl-0 cpk:pr-4 cpk:
|
|
621
|
+
class="cpk:mt-4 cpk:pl-0 cpk:pr-4 cpk:@3xl:px-0"
|
|
622
622
|
>
|
|
623
623
|
<slot
|
|
624
624
|
name="suggestion-view"
|
package/src/v2/index.ts
CHANGED
|
@@ -4,6 +4,11 @@ export * from "@ag-ui/client";
|
|
|
4
4
|
|
|
5
5
|
// Local V2 vue code
|
|
6
6
|
export * from "./components";
|
|
7
|
+
// Explicit re-export so the default A2UI catalog is reachable as a public
|
|
8
|
+
// named export. Vue users need a catalog to pass to `a2ui.catalog` for the
|
|
9
|
+
// catalog-on-provider path; the nested `export *` barrel above gets
|
|
10
|
+
// tree-shaken by the library build, so surface it directly here.
|
|
11
|
+
export { vueBasicCatalog } from "./components/a2ui/catalog";
|
|
7
12
|
export * from "./hooks";
|
|
8
13
|
export * from "./providers";
|
|
9
14
|
export * from "./types";
|
|
@@ -295,6 +295,21 @@ const runtimeLicenseStatus = ref<RuntimeLicenseStatus | undefined>(undefined);
|
|
|
295
295
|
const openGenerativeUIActive = computed(
|
|
296
296
|
() => runtimeOpenGenerativeUIEnabled.value || !!props.openGenerativeUI,
|
|
297
297
|
);
|
|
298
|
+
// A catalog passed to the provider is enough to turn A2UI on: render the
|
|
299
|
+
// surfaces locally and forward the catalog signal so the runtime injects the
|
|
300
|
+
// render tool — no runtime-side `a2ui` config required.
|
|
301
|
+
const a2uiCatalogProvided = computed(() => !!props.a2ui?.catalog);
|
|
302
|
+
const a2uiActive = computed(
|
|
303
|
+
() => runtimeA2UIEnabled.value || a2uiCatalogProvided.value,
|
|
304
|
+
);
|
|
305
|
+
// Forward a per-run signal when the provider has an A2UI catalog so the
|
|
306
|
+
// runtime can turn A2UI on (and inject the render tool) without a separate
|
|
307
|
+
// `a2ui.injectA2UITool` flag on the runtime.
|
|
308
|
+
const resolvedProperties = computed(() =>
|
|
309
|
+
a2uiCatalogProvided.value
|
|
310
|
+
? { ...props.properties, a2uiCatalogAvailable: true }
|
|
311
|
+
: props.properties,
|
|
312
|
+
);
|
|
298
313
|
const sandboxFunctions = computed<readonly SandboxFunction[]>(
|
|
299
314
|
() => props.openGenerativeUI?.sandboxFunctions ?? [],
|
|
300
315
|
);
|
|
@@ -343,7 +358,7 @@ const builtInActivityRenderers = computed<
|
|
|
343
358
|
});
|
|
344
359
|
}
|
|
345
360
|
|
|
346
|
-
if (
|
|
361
|
+
if (a2uiActive.value) {
|
|
347
362
|
renderers.unshift(
|
|
348
363
|
createA2UIMessageRenderer({
|
|
349
364
|
theme: props.a2ui?.theme ?? viewerTheme,
|
|
@@ -384,7 +399,7 @@ const createCopilotKit = () => {
|
|
|
384
399
|
: "auto",
|
|
385
400
|
headers: mergedHeaders.value,
|
|
386
401
|
credentials: props.credentials,
|
|
387
|
-
properties:
|
|
402
|
+
properties: resolvedProperties.value,
|
|
388
403
|
agents__unsafe_dev_only: mergedAgents.value,
|
|
389
404
|
tools: allTools.value,
|
|
390
405
|
renderToolCalls: allRenderToolCalls.value,
|
|
@@ -503,7 +518,7 @@ function syncRuntimeConfig() {
|
|
|
503
518
|
);
|
|
504
519
|
copilotkit.value.setHeaders(mergedHeaders.value);
|
|
505
520
|
copilotkit.value.setCredentials(props.credentials);
|
|
506
|
-
copilotkit.value.setProperties(
|
|
521
|
+
copilotkit.value.setProperties(resolvedProperties.value);
|
|
507
522
|
copilotkit.value.setAgents__unsafe_dev_only(mergedAgents.value);
|
|
508
523
|
copilotkit.value.setDebug(props.debug);
|
|
509
524
|
applyDefaultThrottleMs(copilotkit.value);
|
|
@@ -514,7 +529,7 @@ watch(
|
|
|
514
529
|
() => chatApiEndpoint.value,
|
|
515
530
|
() => mergedHeaders.value,
|
|
516
531
|
() => props.credentials,
|
|
517
|
-
() =>
|
|
532
|
+
() => resolvedProperties.value,
|
|
518
533
|
() => mergedAgents.value,
|
|
519
534
|
() => props.useSingleEndpoint,
|
|
520
535
|
() => props.debug,
|
|
@@ -549,11 +564,11 @@ const a2uiLoadingComponent = computed(() => props.a2ui?.loadingComponent);
|
|
|
549
564
|
const a2uiIncludeSchema = computed(() => props.a2ui?.includeSchema ?? true);
|
|
550
565
|
|
|
551
566
|
// A2UI tool call renderer (progress indicator) — auto-registered when A2UI enabled
|
|
552
|
-
registerA2UIBuiltInToolCallRenderer(copilotkit, () =>
|
|
567
|
+
registerA2UIBuiltInToolCallRenderer(copilotkit, () => a2uiActive.value);
|
|
553
568
|
|
|
554
569
|
// A2UI catalog context, schema, and generation/design guidelines
|
|
555
570
|
registerA2UICatalogContext(copilotkit, {
|
|
556
|
-
enabled: () =>
|
|
571
|
+
enabled: () => a2uiActive.value,
|
|
557
572
|
catalog: () => props.a2ui?.catalog,
|
|
558
573
|
includeSchema: () => props.a2ui?.includeSchema ?? true,
|
|
559
574
|
});
|
|
@@ -0,0 +1,78 @@
|
|
|
1
|
+
import { describe, expect, it } from "vitest";
|
|
2
|
+
import { defineComponent, h, ref } from "vue";
|
|
3
|
+
import { mount } from "@vue/test-utils";
|
|
4
|
+
import CopilotKitProvider from "../CopilotKitProvider.vue";
|
|
5
|
+
import { useCopilotKit } from "../useCopilotKit";
|
|
6
|
+
|
|
7
|
+
function mountProvider(props: Record<string, unknown>) {
|
|
8
|
+
const observedCore =
|
|
9
|
+
ref<ReturnType<typeof useCopilotKit>["copilotkit"]["value"]>();
|
|
10
|
+
|
|
11
|
+
const Child = defineComponent({
|
|
12
|
+
setup() {
|
|
13
|
+
const { copilotkit } = useCopilotKit();
|
|
14
|
+
observedCore.value = copilotkit.value;
|
|
15
|
+
return () => h("div");
|
|
16
|
+
},
|
|
17
|
+
});
|
|
18
|
+
|
|
19
|
+
const wrapper = mount(CopilotKitProvider, {
|
|
20
|
+
props: {
|
|
21
|
+
runtimeUrl: "/api/copilotkit",
|
|
22
|
+
...props,
|
|
23
|
+
},
|
|
24
|
+
slots: {
|
|
25
|
+
default: () => h(Child),
|
|
26
|
+
},
|
|
27
|
+
});
|
|
28
|
+
|
|
29
|
+
return { wrapper, observedCore };
|
|
30
|
+
}
|
|
31
|
+
|
|
32
|
+
describe("CopilotKitProvider a2ui catalog auto-enable", () => {
|
|
33
|
+
it("forwards a2uiCatalogAvailable when a catalog is passed to the provider", () => {
|
|
34
|
+
const { observedCore } = mountProvider({
|
|
35
|
+
a2ui: { catalog: { id: "test", components: new Map() } },
|
|
36
|
+
});
|
|
37
|
+
|
|
38
|
+
expect(observedCore.value?.properties.a2uiCatalogAvailable).toBe(true);
|
|
39
|
+
});
|
|
40
|
+
|
|
41
|
+
it("does not forward a2uiCatalogAvailable when no catalog is passed", () => {
|
|
42
|
+
const { observedCore } = mountProvider({ a2ui: {} });
|
|
43
|
+
|
|
44
|
+
expect(observedCore.value?.properties.a2uiCatalogAvailable).toBeUndefined();
|
|
45
|
+
});
|
|
46
|
+
|
|
47
|
+
it("preserves user-provided properties alongside the catalog signal", () => {
|
|
48
|
+
const { observedCore } = mountProvider({
|
|
49
|
+
a2ui: { catalog: { id: "test", components: new Map() } },
|
|
50
|
+
properties: { tenant: "acme" },
|
|
51
|
+
});
|
|
52
|
+
|
|
53
|
+
expect(observedCore.value?.properties).toMatchObject({
|
|
54
|
+
tenant: "acme",
|
|
55
|
+
a2uiCatalogAvailable: true,
|
|
56
|
+
});
|
|
57
|
+
});
|
|
58
|
+
|
|
59
|
+
it("registers an a2ui-surface renderer when a catalog is provided, without a runtime signal", () => {
|
|
60
|
+
const { observedCore } = mountProvider({
|
|
61
|
+
a2ui: { catalog: { id: "test", components: new Map() } },
|
|
62
|
+
});
|
|
63
|
+
|
|
64
|
+
const a2uiRenderer = observedCore.value?.renderActivityMessages.find(
|
|
65
|
+
(r) => r.activityType === "a2ui-surface",
|
|
66
|
+
);
|
|
67
|
+
expect(a2uiRenderer).toBeDefined();
|
|
68
|
+
});
|
|
69
|
+
|
|
70
|
+
it("does not register an a2ui-surface renderer when no catalog is provided and runtime has not signaled a2uiEnabled", () => {
|
|
71
|
+
const { observedCore } = mountProvider({ a2ui: { theme: {} } });
|
|
72
|
+
|
|
73
|
+
const a2uiRenderer = observedCore.value?.renderActivityMessages.find(
|
|
74
|
+
(r) => r.activityType === "a2ui-surface",
|
|
75
|
+
);
|
|
76
|
+
expect(a2uiRenderer).toBeUndefined();
|
|
77
|
+
});
|
|
78
|
+
});
|