@copilotkit/vue 1.59.5 → 1.60.1
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/components/copilot-provider/types.d.ts +1 -1
- package/dist/index.cjs +1 -1
- package/dist/index.mjs +2 -2
- package/dist/{use-render-activity-message-CiFAWxYV.cjs → use-render-activity-message-9WEAK73b.cjs} +12 -12
- package/dist/use-render-activity-message-9WEAK73b.cjs.map +1 -0
- package/dist/{use-render-activity-message-C6mweDb2.js → use-render-activity-message-Dw44JCPl.js} +407 -403
- package/dist/use-render-activity-message-Dw44JCPl.js.map +1 -0
- package/dist/v2/components/a2ui/A2UICatalogContext.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 +1 -1
- package/dist/v2/providers/CopilotKitProvider.vue.d.ts.map +1 -1
- package/package.json +6 -6
- package/src/components/copilot-provider/types.ts +1 -1
- package/src/v2/components/LicenseWarningBanner.vue +1 -1
- package/src/v2/components/a2ui/A2UICatalogContext.ts +10 -1
- package/src/v2/providers/CopilotKitProvider.types.ts +1 -1
- package/dist/use-render-activity-message-C6mweDb2.js.map +0 -1
- package/dist/use-render-activity-message-CiFAWxYV.cjs.map +0 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"A2UICatalogContext.d.ts","sourceRoot":"","sources":["../../../../src/v2/components/a2ui/A2UICatalogContext.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,KAAK,CAAC;AACtC,OAAO,KAAK,EAAE,OAAO,EAAE,YAAY,EAAE,MAAM,qBAAqB,CAAC;AAMjE,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,oBAAoB,CAAC;AAyG5D;;;;;;GAMG;AACH,wBAAgB,0BAA0B,CACxC,UAAU,EAAE,UAAU,CAAC,iBAAiB,CAAC,EACzC,OAAO,EAAE;IACP,OAAO,EAAE,MAAM,OAAO,CAAC;IACvB,OAAO,EAAE,MAAM,OAAO,CAAC,YAAY,CAAC,GAAG,SAAS,CAAC;IACjD,aAAa,EAAE,MAAM,OAAO,CAAC;CAC9B,GACA,IAAI,
|
|
1
|
+
{"version":3,"file":"A2UICatalogContext.d.ts","sourceRoot":"","sources":["../../../../src/v2/components/a2ui/A2UICatalogContext.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,KAAK,CAAC;AACtC,OAAO,KAAK,EAAE,OAAO,EAAE,YAAY,EAAE,MAAM,qBAAqB,CAAC;AAMjE,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,oBAAoB,CAAC;AAyG5D;;;;;;GAMG;AACH,wBAAgB,0BAA0B,CACxC,UAAU,EAAE,UAAU,CAAC,iBAAiB,CAAC,EACzC,OAAO,EAAE;IACP,OAAO,EAAE,MAAM,OAAO,CAAC;IACvB,OAAO,EAAE,MAAM,OAAO,CAAC,YAAY,CAAC,GAAG,SAAS,CAAC;IACjD,aAAa,EAAE,MAAM,OAAO,CAAC;CAC9B,GACA,IAAI,CAsEN"}
|
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-9WEAK73b.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;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 S, l as m, m as v, 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 as H, D as B, 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 } 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 S, l as m, m as v, 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 as H, D as B, 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 } from "../use-render-activity-message-Dw44JCPl.js";
|
|
4
4
|
import { createLicenseContextValue as me } from "@copilotkit/shared";
|
|
5
5
|
export {
|
|
6
6
|
o as A2UIActivityContentSchema,
|
|
@@ -12,7 +12,7 @@ export interface CopilotKitProviderProps {
|
|
|
12
12
|
publicLicenseKey?: string;
|
|
13
13
|
/**
|
|
14
14
|
* Signed license token for offline verification of premium features.
|
|
15
|
-
* Obtain from https://
|
|
15
|
+
* Obtain from https://dashboard.operations.copilotkit.ai.
|
|
16
16
|
*/
|
|
17
17
|
licenseToken?: string;
|
|
18
18
|
properties?: Record<string, unknown>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"CopilotKitProvider.vue.d.ts","sourceRoot":"","sources":["../../../src/v2/providers/CopilotKitProvider.vue"],"names":[],"mappings":"AAypBA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,eAAe,CAAC;AAgCnD,OAAO,KAAK,EAAE,uBAAuB,EAAE,MAAM,4BAA4B,CAAC;AAC1E,OAAO,KAAK,EACV,eAAe,EACf,0BAA0B,EAC1B,eAAe,EACf,iBAAiB,EAElB,MAAM,UAAU,CAAC;AA2pBlB,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;;;;;;;;;;;wBAzuBrB,
|
|
1
|
+
{"version":3,"file":"CopilotKitProvider.vue.d.ts","sourceRoot":"","sources":["../../../src/v2/providers/CopilotKitProvider.vue"],"names":[],"mappings":"AAypBA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,eAAe,CAAC;AAgCnD,OAAO,KAAK,EAAE,uBAAuB,EAAE,MAAM,4BAA4B,CAAC;AAC1E,OAAO,KAAK,EACV,eAAe,EACf,0BAA0B,EAC1B,eAAe,EACf,iBAAiB,EAElB,MAAM,UAAU,CAAC;AA2pBlB,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;;;;;;;;;;;wBAzuBrB,CAtmBQ;mBAsmBR,CAtmB6C;;;;aAsmB7C,CAjmBC;eAimBD,CAjmB0B;wBAimB1B,CA/lBK;qBA+lBL,CA9lBe;;6EA80Cb,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.60.1",
|
|
4
4
|
"private": false,
|
|
5
5
|
"description": "Vue 3 components and composables for CopilotKit",
|
|
6
6
|
"keywords": [
|
|
@@ -62,17 +62,17 @@
|
|
|
62
62
|
},
|
|
63
63
|
"dependencies": {
|
|
64
64
|
"@a2ui/web_core": "0.9.0",
|
|
65
|
-
"@ag-ui/client": "0.0.
|
|
66
|
-
"@ag-ui/core": "0.0.
|
|
65
|
+
"@ag-ui/client": "0.0.57",
|
|
66
|
+
"@ag-ui/core": "0.0.57",
|
|
67
67
|
"@jetbrains/websandbox": "^1.1.3",
|
|
68
68
|
"katex": "^0.16.27",
|
|
69
69
|
"lucide-vue-next": "^0.525.0",
|
|
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-inspector": "1.
|
|
73
|
+
"@copilotkit/core": "1.60.1",
|
|
74
|
+
"@copilotkit/shared": "1.60.1",
|
|
75
|
+
"@copilotkit/web-inspector": "1.60.1"
|
|
76
76
|
},
|
|
77
77
|
"devDependencies": {
|
|
78
78
|
"@eslint/js": "^9.39.2",
|
|
@@ -7,7 +7,7 @@ import type { CopilotKitProviderProps } from "../../v2/providers/CopilotKitProvi
|
|
|
7
7
|
*/
|
|
8
8
|
export interface CopilotKitProps extends CopilotKitProviderProps {
|
|
9
9
|
/**
|
|
10
|
-
* Your
|
|
10
|
+
* Your CopilotKit public license key.
|
|
11
11
|
* @deprecated Use publicLicenseKey with the v2 CopilotKitProvider instead.
|
|
12
12
|
*/
|
|
13
13
|
publicApiKey?: string;
|
|
@@ -61,7 +61,7 @@ const spec = computed<BannerSpec | null>(() => {
|
|
|
61
61
|
severity: "warning",
|
|
62
62
|
message: `Your CopilotKit license expires in ${days} ${dayLabel}. Please renew.`,
|
|
63
63
|
actionLabel: "Renew",
|
|
64
|
-
actionUrl: "https://
|
|
64
|
+
actionUrl: "https://dashboard.operations.copilotkit.ai",
|
|
65
65
|
};
|
|
66
66
|
}
|
|
67
67
|
case "expired":
|
|
@@ -100,7 +100,7 @@ function extractCatalogComponentSchemas(catalog?: Catalog<ComponentApi>): {
|
|
|
100
100
|
{
|
|
101
101
|
properties: {
|
|
102
102
|
component: { const: name },
|
|
103
|
-
...
|
|
103
|
+
...zodSchema.properties,
|
|
104
104
|
},
|
|
105
105
|
required: ["component", ...(zodSchema.required ?? [])],
|
|
106
106
|
},
|
|
@@ -135,11 +135,15 @@ export function registerA2UICatalogContext(
|
|
|
135
135
|
[() => copilotkit.value, options.enabled, contextValue],
|
|
136
136
|
([core, isEnabled, value], _prev, onCleanup) => {
|
|
137
137
|
if (!isEnabled) return;
|
|
138
|
+
// Scope to the agents the runtime applies A2UI to (#5369), so other
|
|
139
|
+
// agents on the endpoint don't receive the catalog payload.
|
|
140
|
+
const agentIds = core.a2uiAgents;
|
|
138
141
|
const id = core.addContext({
|
|
139
142
|
description:
|
|
140
143
|
"A2UI catalog capabilities: available catalog IDs and " +
|
|
141
144
|
"custom component definitions the client can render.",
|
|
142
145
|
value,
|
|
146
|
+
...(agentIds ? { agentIds } : {}),
|
|
143
147
|
});
|
|
144
148
|
onCleanup(() => core.removeContext(id));
|
|
145
149
|
},
|
|
@@ -156,11 +160,14 @@ export function registerA2UICatalogContext(
|
|
|
156
160
|
[() => copilotkit.value, options.enabled, schemaValue],
|
|
157
161
|
([core, isEnabled, schema], _prev, onCleanup) => {
|
|
158
162
|
if (!isEnabled || !schema) return;
|
|
163
|
+
const agentIds = core.a2uiAgents;
|
|
164
|
+
const scope = agentIds ? { agentIds } : {};
|
|
159
165
|
const ids: string[] = [];
|
|
160
166
|
ids.push(
|
|
161
167
|
core.addContext({
|
|
162
168
|
description: A2UI_SCHEMA_CONTEXT_DESCRIPTION,
|
|
163
169
|
value: schema,
|
|
170
|
+
...scope,
|
|
164
171
|
}),
|
|
165
172
|
);
|
|
166
173
|
ids.push(
|
|
@@ -170,6 +177,7 @@ export function registerA2UICatalogContext(
|
|
|
170
177
|
"path rules, data model format, and " +
|
|
171
178
|
"form/two-way-binding instructions.",
|
|
172
179
|
value: A2UI_DEFAULT_GENERATION_GUIDELINES,
|
|
180
|
+
...scope,
|
|
173
181
|
}),
|
|
174
182
|
);
|
|
175
183
|
ids.push(
|
|
@@ -178,6 +186,7 @@ export function registerA2UICatalogContext(
|
|
|
178
186
|
"A2UI design guidelines — visual design rules, component " +
|
|
179
187
|
"hierarchy tips, and action handler patterns.",
|
|
180
188
|
value: A2UI_DEFAULT_DESIGN_GUIDELINES,
|
|
189
|
+
...scope,
|
|
181
190
|
}),
|
|
182
191
|
);
|
|
183
192
|
onCleanup(() => {
|
|
@@ -21,7 +21,7 @@ export interface CopilotKitProviderProps {
|
|
|
21
21
|
publicLicenseKey?: string;
|
|
22
22
|
/**
|
|
23
23
|
* Signed license token for offline verification of premium features.
|
|
24
|
-
* Obtain from https://
|
|
24
|
+
* Obtain from https://dashboard.operations.copilotkit.ai.
|
|
25
25
|
*/
|
|
26
26
|
licenseToken?: string;
|
|
27
27
|
properties?: Record<string, unknown>;
|