@copilotkit/vue 1.80.0 → 1.82.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/AGENTS.md +8 -7
- package/CONTRIBUTOR_GUIDE.md +120 -0
- package/PARITY.md +19 -10
- package/README.md +24 -373
- package/dist/index.cjs +1 -1
- package/dist/index.mjs +2 -2
- package/dist/styles.css +1 -1
- package/dist/{use-render-activity-message-BhgLK8XD.js → use-render-activity-message-CrBnMluO.js} +3190 -3148
- package/dist/use-render-activity-message-CrBnMluO.js.map +1 -0
- package/dist/use-render-activity-message-DuOFLc23.cjs +70 -0
- package/dist/use-render-activity-message-DuOFLc23.cjs.map +1 -0
- package/dist/v2/components/a2ui/A2UICatalogContext.d.ts +10 -0
- package/dist/v2/components/a2ui/A2UICatalogContext.d.ts.map +1 -1
- package/dist/v2/components/a2ui/catalog.d.ts.map +1 -1
- package/dist/v2/components/a2ui/utils.d.ts +1 -1
- package/dist/v2/components/a2ui/utils.d.ts.map +1 -1
- package/dist/v2/components/chat/CopilotChatAttachmentQueue.vue.d.ts.map +1 -1
- package/dist/v2/components/chat/CopilotChatInput.vue.d.ts +54 -0
- package/dist/v2/components/chat/CopilotChatInput.vue.d.ts.map +1 -1
- package/dist/v2/components/chat/CopilotChatReasoningMessage.vue.d.ts +3 -0
- package/dist/v2/components/chat/CopilotChatReasoningMessage.vue.d.ts.map +1 -1
- package/dist/v2/components/chat/CopilotChatView.vue.d.ts.map +1 -1
- package/dist/v2/components/chat/CopilotModalHeader.vue.d.ts.map +1 -1
- package/dist/v2/components/chat/CopilotModalHeaderCloseButton.d.ts +4 -0
- package/dist/v2/components/chat/CopilotModalHeaderCloseButton.d.ts.map +1 -1
- package/dist/v2/components/chat/CopilotSidebarViewInternal.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 +15 -0
- package/dist/v2/providers/CopilotKitProvider.types.d.ts.map +1 -1
- package/dist/v2/providers/CopilotKitProvider.vue.d.ts.map +1 -1
- package/dist/v2/providers/types.d.ts +9 -0
- package/dist/v2/providers/types.d.ts.map +1 -1
- package/package.json +6 -6
- package/src/styles/globals.css +16 -0
- package/src/v2/components/__tests__/A2UIBasicCatalogColors.test.ts +188 -0
- package/src/v2/components/__tests__/A2UICatalogContext.test.ts +63 -0
- package/src/v2/components/a2ui/A2UICatalogContext.ts +14 -2
- package/src/v2/components/a2ui/catalog.ts +44 -15
- package/src/v2/components/a2ui/utils.ts +1 -1
- package/src/v2/components/chat/CopilotChatAttachmentQueue.vue +8 -3
- package/src/v2/components/chat/CopilotChatInput.vue +2 -2
- package/src/v2/components/chat/CopilotChatReasoningMessage.vue +11 -1
- package/src/v2/components/chat/CopilotChatView.vue +1 -1
- package/src/v2/components/chat/CopilotModalHeader.vue +4 -1
- package/src/v2/components/chat/CopilotModalHeaderCloseButton.ts +11 -1
- package/src/v2/components/chat/CopilotSidebarViewInternal.vue +3 -1
- package/src/v2/components/chat/__tests__/CopilotChat.labels.test.ts +198 -0
- package/src/v2/components/chat/__tests__/CopilotChatToolRendering.e2e.test.ts +2 -1
- package/src/v2/components/chat/__tests__/CopilotChatView.rootWidth.test.ts +69 -0
- package/src/v2/providers/CopilotKitProvider.types.ts +15 -0
- package/src/v2/providers/__tests__/CopilotKitProvider.a2ui.test.ts +50 -0
- package/src/v2/providers/types.ts +9 -0
- package/dist/use-render-activity-message-BhgLK8XD.js.map +0 -1
- package/dist/use-render-activity-message-DfvDG9VF.cjs +0 -70
- package/dist/use-render-activity-message-DfvDG9VF.cjs.map +0 -1
|
@@ -1,6 +1,16 @@
|
|
|
1
1
|
import type { ShallowRef } from "vue";
|
|
2
2
|
import type { Catalog, ComponentApi } from "@a2ui/web_core/v0_9";
|
|
3
3
|
import type { CopilotKitCoreVue } from "../../lib/vue-core";
|
|
4
|
+
/**
|
|
5
|
+
* Build a context string describing the available A2UI catalog.
|
|
6
|
+
* Vue-native equivalent of buildCatalogContextValue from a2ui-renderer.
|
|
7
|
+
*
|
|
8
|
+
* When `options.includeSchema` is `false`, custom components are listed by name
|
|
9
|
+
* only and their JSON schemas are omitted.
|
|
10
|
+
*/
|
|
11
|
+
export declare function buildCatalogContextValue(catalog?: Catalog<ComponentApi>, options?: {
|
|
12
|
+
includeSchema?: boolean;
|
|
13
|
+
}): string;
|
|
4
14
|
/**
|
|
5
15
|
* Registers agent context describing the available A2UI catalog, component
|
|
6
16
|
* schemas, and generation/design guidelines.
|
|
@@ -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;
|
|
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;AAgB5D;;;;;;GAMG;AACH,wBAAgB,wBAAwB,CACtC,OAAO,CAAC,EAAE,OAAO,CAAC,YAAY,CAAC,EAC/B,OAAO,CAAC,EAAE;IAAE,aAAa,CAAC,EAAE,OAAO,CAAA;CAAE,GACpC,MAAM,CAsDR;AAmCD;;;;;;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,CAwEN"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"catalog.d.ts","sourceRoot":"","sources":["../../../../src/v2/components/a2ui/catalog.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAGH,OAAO,EAAE,OAAO,EAAE,MAAM,qBAAqB,CAAC;AAuB9C,OAAO,EAAsB,KAAK,0BAA0B,EAAE,MAAM,WAAW,CAAC;AAyChF,QAAA,MAAM,IAAI,
|
|
1
|
+
{"version":3,"file":"catalog.d.ts","sourceRoot":"","sources":["../../../../src/v2/components/a2ui/catalog.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAGH,OAAO,EAAE,OAAO,EAAE,MAAM,qBAAqB,CAAC;AAuB9C,OAAO,EAAsB,KAAK,0BAA0B,EAAE,MAAM,WAAW,CAAC;AAyChF,QAAA,MAAM,IAAI,4BA+BR,CAAC;AAEH,QAAA,MAAM,KAAK,4BA+BT,CAAC;AAEH,QAAA,MAAM,IAAI,4BAgBR,CAAC;AAEH,QAAA,MAAM,KAAK,4BAQT,CAAC;AAEH,QAAA,MAAM,WAAW,4BA6Bf,CAAC;AAEH,QAAA,MAAM,GAAG,4BAgBP,CAAC;AAEH,QAAA,MAAM,MAAM,4BAgBV,CAAC;AAEH,QAAA,MAAM,IAAI,4BAcR,CAAC;AAEH,QAAA,MAAM,IAAI,4BASR,CAAC;AAEH,QAAA,MAAM,IAAI,4BAmET,CAAC;AAEF,QAAA,MAAM,OAAO,4BAiBX,CAAC;AAEH,QAAA,MAAM,KAAK,4BAoFV,CAAC;AAEF,QAAA,MAAM,MAAM,4BA6BV,CAAC;AAEH,QAAA,MAAM,SAAS,4BAgFd,CAAC;AAEF,QAAA,MAAM,QAAQ,4BAoEb,CAAC;AAEF,QAAA,MAAM,YAAY,4BAgIjB,CAAC;AAEF,QAAA,MAAM,MAAM,4BAyDX,CAAC;AAEF,QAAA,MAAM,aAAa,4BAqDlB,CAAC;AA2BF,eAAO,MAAM,eAAe,qCAI3B,CAAC;AAEF,OAAO,EACL,IAAI,EACJ,KAAK,EACL,IAAI,EACJ,KAAK,EACL,WAAW,EACX,GAAG,EACH,MAAM,EACN,IAAI,EACJ,IAAI,EACJ,IAAI,EACJ,OAAO,EACP,KAAK,EACL,MAAM,EACN,SAAS,EACT,QAAQ,EACR,YAAY,EACZ,MAAM,EACN,aAAa,GACd,CAAC"}
|
|
@@ -8,7 +8,7 @@ export declare const LEAF_MARGIN = "8px";
|
|
|
8
8
|
/** Standard internal padding for visually bounded containers. */
|
|
9
9
|
export declare const CONTAINER_PADDING = "16px";
|
|
10
10
|
/** Standard border for cards and inputs. */
|
|
11
|
-
export declare const STANDARD_BORDER = "1px solid #ccc";
|
|
11
|
+
export declare const STANDARD_BORDER = "1px solid var(--a2ui-color-border, #ccc)";
|
|
12
12
|
/** Standard border radius. */
|
|
13
13
|
export declare const STANDARD_RADIUS = "8px";
|
|
14
14
|
export declare const mapJustify: (j?: string) => string;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"utils.d.ts","sourceRoot":"","sources":["../../../../src/v2/components/a2ui/utils.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,KAAK,CAAC;AAEzC,0DAA0D;AAC1D,eAAO,MAAM,WAAW,QAAQ,CAAC;AAEjC,iEAAiE;AACjE,eAAO,MAAM,iBAAiB,SAAS,CAAC;AAExC,4CAA4C;AAC5C,eAAO,MAAM,eAAe,
|
|
1
|
+
{"version":3,"file":"utils.d.ts","sourceRoot":"","sources":["../../../../src/v2/components/a2ui/utils.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,KAAK,CAAC;AAEzC,0DAA0D;AAC1D,eAAO,MAAM,WAAW,QAAQ,CAAC;AAEjC,iEAAiE;AACjE,eAAO,MAAM,iBAAiB,SAAS,CAAC;AAExC,4CAA4C;AAC5C,eAAO,MAAM,eAAe,6CAA6C,CAAC;AAE1E,8BAA8B;AAC9B,eAAO,MAAM,eAAe,QAAQ,CAAC;AAErC,eAAO,MAAM,UAAU,GAAI,IAAI,MAAM,KAAG,MAmBvC,CAAC;AAEF,eAAO,MAAM,QAAQ,GAAI,IAAI,MAAM,KAAG,MAarC,CAAC;AAEF,eAAO,MAAM,gBAAgB,QAAO,aAGlC,CAAC;AAEH,eAAO,MAAM,qBAAqB,QAAO,aAMvC,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"CopilotChatAttachmentQueue.vue.d.ts","sourceRoot":"","sources":["../../../../src/v2/components/chat/CopilotChatAttachmentQueue.vue"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"CopilotChatAttachmentQueue.vue.d.ts","sourceRoot":"","sources":["../../../../src/v2/components/chat/CopilotChatAttachmentQueue.vue"],"names":[],"mappings":"AAwaA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,oBAAoB,CAAC;AACrD,OAAO,KAAK,EAAE,+BAA+B,EAAE,MAAM,SAAS,CAAC;;;;;;;;;AA+pB/D,wBAQG"}
|
|
@@ -107,6 +107,15 @@ declare var __VLS_1: {
|
|
|
107
107
|
readonly chatScrollToBottomLabel: "Scroll to bottom";
|
|
108
108
|
readonly modalHeaderTitle: "CopilotKit Chat";
|
|
109
109
|
readonly welcomeMessageText: "How can I help you today?";
|
|
110
|
+
readonly reasoningMessageThinkingLabel: "Thinking…";
|
|
111
|
+
readonly chatInputSlashMenuLabel: "Slash commands";
|
|
112
|
+
readonly chatInputSlashMenuEmptyText: "No commands found";
|
|
113
|
+
readonly attachmentRemoveButtonLabel: "Remove attachment";
|
|
114
|
+
readonly attachmentPlayVideoButtonLabel: "Play video";
|
|
115
|
+
readonly attachmentPreviewCloseButtonLabel: "Close preview";
|
|
116
|
+
readonly modalHeaderCloseButtonLabel: "Close";
|
|
117
|
+
readonly modalHeaderThreadsButtonLabel: "Open threads";
|
|
118
|
+
readonly sidebarLabel: "Copilot chat sidebar";
|
|
110
119
|
};
|
|
111
120
|
}, __VLS_13: {}, __VLS_24: {
|
|
112
121
|
value: string;
|
|
@@ -143,6 +152,15 @@ declare var __VLS_1: {
|
|
|
143
152
|
readonly chatScrollToBottomLabel: "Scroll to bottom";
|
|
144
153
|
readonly modalHeaderTitle: "CopilotKit Chat";
|
|
145
154
|
readonly welcomeMessageText: "How can I help you today?";
|
|
155
|
+
readonly reasoningMessageThinkingLabel: "Thinking…";
|
|
156
|
+
readonly chatInputSlashMenuLabel: "Slash commands";
|
|
157
|
+
readonly chatInputSlashMenuEmptyText: "No commands found";
|
|
158
|
+
readonly attachmentRemoveButtonLabel: "Remove attachment";
|
|
159
|
+
readonly attachmentPlayVideoButtonLabel: "Play video";
|
|
160
|
+
readonly attachmentPreviewCloseButtonLabel: "Close preview";
|
|
161
|
+
readonly modalHeaderCloseButtonLabel: "Close";
|
|
162
|
+
readonly modalHeaderThreadsButtonLabel: "Open threads";
|
|
163
|
+
readonly sidebarLabel: "Copilot chat sidebar";
|
|
146
164
|
};
|
|
147
165
|
}, __VLS_26: {
|
|
148
166
|
disabled: boolean;
|
|
@@ -173,6 +191,15 @@ declare var __VLS_1: {
|
|
|
173
191
|
readonly chatScrollToBottomLabel: "Scroll to bottom";
|
|
174
192
|
readonly modalHeaderTitle: "CopilotKit Chat";
|
|
175
193
|
readonly welcomeMessageText: "How can I help you today?";
|
|
194
|
+
readonly reasoningMessageThinkingLabel: "Thinking…";
|
|
195
|
+
readonly chatInputSlashMenuLabel: "Slash commands";
|
|
196
|
+
readonly chatInputSlashMenuEmptyText: "No commands found";
|
|
197
|
+
readonly attachmentRemoveButtonLabel: "Remove attachment";
|
|
198
|
+
readonly attachmentPlayVideoButtonLabel: "Play video";
|
|
199
|
+
readonly attachmentPreviewCloseButtonLabel: "Close preview";
|
|
200
|
+
readonly modalHeaderCloseButtonLabel: "Close";
|
|
201
|
+
readonly modalHeaderThreadsButtonLabel: "Open threads";
|
|
202
|
+
readonly sidebarLabel: "Copilot chat sidebar";
|
|
176
203
|
};
|
|
177
204
|
}, __VLS_32: {
|
|
178
205
|
disabled: boolean;
|
|
@@ -203,6 +230,15 @@ declare var __VLS_1: {
|
|
|
203
230
|
readonly chatScrollToBottomLabel: "Scroll to bottom";
|
|
204
231
|
readonly modalHeaderTitle: "CopilotKit Chat";
|
|
205
232
|
readonly welcomeMessageText: "How can I help you today?";
|
|
233
|
+
readonly reasoningMessageThinkingLabel: "Thinking…";
|
|
234
|
+
readonly chatInputSlashMenuLabel: "Slash commands";
|
|
235
|
+
readonly chatInputSlashMenuEmptyText: "No commands found";
|
|
236
|
+
readonly attachmentRemoveButtonLabel: "Remove attachment";
|
|
237
|
+
readonly attachmentPlayVideoButtonLabel: "Play video";
|
|
238
|
+
readonly attachmentPreviewCloseButtonLabel: "Close preview";
|
|
239
|
+
readonly modalHeaderCloseButtonLabel: "Close";
|
|
240
|
+
readonly modalHeaderThreadsButtonLabel: "Open threads";
|
|
241
|
+
readonly sidebarLabel: "Copilot chat sidebar";
|
|
206
242
|
};
|
|
207
243
|
}, __VLS_38: {
|
|
208
244
|
disabled: boolean;
|
|
@@ -233,6 +269,15 @@ declare var __VLS_1: {
|
|
|
233
269
|
readonly chatScrollToBottomLabel: "Scroll to bottom";
|
|
234
270
|
readonly modalHeaderTitle: "CopilotKit Chat";
|
|
235
271
|
readonly welcomeMessageText: "How can I help you today?";
|
|
272
|
+
readonly reasoningMessageThinkingLabel: "Thinking…";
|
|
273
|
+
readonly chatInputSlashMenuLabel: "Slash commands";
|
|
274
|
+
readonly chatInputSlashMenuEmptyText: "No commands found";
|
|
275
|
+
readonly attachmentRemoveButtonLabel: "Remove attachment";
|
|
276
|
+
readonly attachmentPlayVideoButtonLabel: "Play video";
|
|
277
|
+
readonly attachmentPreviewCloseButtonLabel: "Close preview";
|
|
278
|
+
readonly modalHeaderCloseButtonLabel: "Close";
|
|
279
|
+
readonly modalHeaderThreadsButtonLabel: "Open threads";
|
|
280
|
+
readonly sidebarLabel: "Copilot chat sidebar";
|
|
236
281
|
};
|
|
237
282
|
}, __VLS_44: {
|
|
238
283
|
disabled: boolean;
|
|
@@ -265,6 +310,15 @@ declare var __VLS_1: {
|
|
|
265
310
|
readonly chatScrollToBottomLabel: "Scroll to bottom";
|
|
266
311
|
readonly modalHeaderTitle: "CopilotKit Chat";
|
|
267
312
|
readonly welcomeMessageText: "How can I help you today?";
|
|
313
|
+
readonly reasoningMessageThinkingLabel: "Thinking…";
|
|
314
|
+
readonly chatInputSlashMenuLabel: "Slash commands";
|
|
315
|
+
readonly chatInputSlashMenuEmptyText: "No commands found";
|
|
316
|
+
readonly attachmentRemoveButtonLabel: "Remove attachment";
|
|
317
|
+
readonly attachmentPlayVideoButtonLabel: "Play video";
|
|
318
|
+
readonly attachmentPreviewCloseButtonLabel: "Close preview";
|
|
319
|
+
readonly modalHeaderCloseButtonLabel: "Close";
|
|
320
|
+
readonly modalHeaderThreadsButtonLabel: "Open threads";
|
|
321
|
+
readonly sidebarLabel: "Copilot chat sidebar";
|
|
268
322
|
};
|
|
269
323
|
};
|
|
270
324
|
type __VLS_Slots = {} & {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"CopilotChatInput.vue.d.ts","sourceRoot":"","sources":["../../../../src/v2/components/chat/CopilotChatInput.vue"],"names":[],"mappings":"AA0xCA,OAAO,KAAK,EAAE,oBAAoB,EAAE,aAAa,EAAE,MAAM,SAAS,CAAC;AAInE,KAAK,SAAS,GAAG,aAAa,GAAG,GAAG,CAAC;AACrC,KAAK,gBAAgB,GACjB;IAAE,IAAI,EAAE,WAAW,CAAC;IAAC,GAAG,EAAE,MAAM,CAAA;CAAE,GAClC;IAAE,IAAI,EAAE,OAAO,CAAC;IAAC,GAAG,EAAE,MAAM,CAAC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,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"}
|
|
@@ -14,6 +14,7 @@ type __VLS_Slots = {
|
|
|
14
14
|
label: string;
|
|
15
15
|
hasContent: boolean;
|
|
16
16
|
isStreaming: boolean;
|
|
17
|
+
elapsedSeconds: number;
|
|
17
18
|
onClick?: () => void;
|
|
18
19
|
};
|
|
19
20
|
contentView: {
|
|
@@ -35,6 +36,8 @@ type __VLS_Slots = {
|
|
|
35
36
|
label: string;
|
|
36
37
|
hasContent: boolean;
|
|
37
38
|
isStreaming: boolean;
|
|
39
|
+
/** Seconds spent reasoning so far, for building a localized label. */
|
|
40
|
+
elapsedSeconds: number;
|
|
38
41
|
onClick?: () => void;
|
|
39
42
|
}) => unknown;
|
|
40
43
|
"content-view"?: (props: {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"CopilotChatReasoningMessage.vue.d.ts","sourceRoot":"","sources":["../../../../src/v2/components/chat/CopilotChatReasoningMessage.vue"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"CopilotChatReasoningMessage.vue.d.ts","sourceRoot":"","sources":["../../../../src/v2/components/chat/CopilotChatReasoningMessage.vue"],"names":[],"mappings":"AAoQA,OAAO,KAAK,EAAE,OAAO,EAAE,gBAAgB,EAAE,MAAM,aAAa,CAAC;AAM7D,KAAK,WAAW,GAAG;IACf,OAAO,EAAE,gBAAgB,CAAC;IAC1B,QAAQ,CAAC,EAAE,OAAO,EAAE,CAAC;IACrB,SAAS,CAAC,EAAE,OAAO,CAAC;CACrB,CAAC;AASJ,KAAK,WAAW,GAAG;IACjB,MAAM,CAAC,EAAE,CAAC,KAAK,EAAE;QACf,OAAO,EAAE,gBAAgB,CAAC;QAC1B,QAAQ,EAAE,OAAO,EAA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,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;AA+1BF,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"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"CopilotModalHeader.vue.d.ts","sourceRoot":"","sources":["../../../../src/v2/components/chat/CopilotModalHeader.vue"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"CopilotModalHeader.vue.d.ts","sourceRoot":"","sources":["../../../../src/v2/components/chat/CopilotModalHeader.vue"],"names":[],"mappings":"AAgJA,OAAO,KAAK,EACV,sCAAsC,EACtC,iCAAiC,EACjC,uBAAuB,EACvB,uCAAuC,EACxC,MAAM,SAAS,CAAC;AAOjB,KAAK,WAAW,GAAG;IACjB,eAAe,CAAC,EAAE,CAAC,KAAK,EAAE,uCAAuC,KAAK,OAAO,CAAC;IAC9E,cAAc,CAAC,EAAE,CAAC,KAAK,EAAE,sCAAsC,KAAK,OAAO,CAAC;IAC5E,MAAM,CAAC,EAAE,CAAC,KAAK,EAAE,iCAAiC,KAAK,OAAO,CAAC;CAChE,CAAC;AA0NF,QAAA,MAAM,eAAe,0TAMnB,CAAC;wBACkB,eAAe,CAAC,OAAO,eAAe,EAAE,WAAW,CAAC;AAAzE,wBAA0E;AAQ1E,KAAK,eAAe,CAAC,CAAC,EAAE,CAAC,IAAI,CAAC,GAAG;IAChC,QAAO;QACN,MAAM,EAAE,CAAC,CAAC;KAEV,CAAA;CACD,CAAC"}
|
|
@@ -1,3 +1,7 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Closes the popup or sidebar. Its accessible name is the `aria-label` the
|
|
3
|
+
* parent passes, or `labels.modalHeaderCloseButtonLabel`.
|
|
4
|
+
*/
|
|
1
5
|
declare const _default: import("vue").DefineComponent<{}, () => import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
|
|
2
6
|
[key: string]: any;
|
|
3
7
|
}>, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"CopilotModalHeaderCloseButton.d.ts","sourceRoot":"","sources":["../../../../src/v2/components/chat/CopilotModalHeaderCloseButton.ts"],"names":[],"mappings":";;;
|
|
1
|
+
{"version":3,"file":"CopilotModalHeaderCloseButton.d.ts","sourceRoot":"","sources":["../../../../src/v2/components/chat/CopilotModalHeaderCloseButton.ts"],"names":[],"mappings":"AAKA;;;GAGG;;;;AACH,wBAsCG"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"CopilotSidebarViewInternal.vue.d.ts","sourceRoot":"","sources":["../../../../src/v2/components/chat/CopilotSidebarViewInternal.vue"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"CopilotSidebarViewInternal.vue.d.ts","sourceRoot":"","sources":["../../../../src/v2/components/chat/CopilotSidebarViewInternal.vue"],"names":[],"mappings":"AAkXA,OAAO,KAAK,EACV,2BAA2B,EAC3B,+BAA+B,EAC/B,wCAAwC,EACxC,8BAA8B,EAC9B,iCAAiC,EACjC,yCAAyC,EACzC,kDAAkD,EAClD,iCAAiC,EACjC,uBAAuB,EACvB,uCAAuC,EACxC,MAAM,SAAS,CAAC;AAOjB,KAAK,WAAW,GAAG,IAAI,CAAC,uBAAuB,EAAE,aAAa,CAAC,CAAC;AAkBhE,KAAK,WAAW,GAAG;IACjB,MAAM,CAAC,EAAE,CAAC,KAAK,EAAE,iCAAiC,KAAK,OAAO,CAAC;IAC/D,eAAe,CAAC,EAAE,CAAC,KAAK,EAAE,uCAAuC,KAAK,OAAO,CAAC;IAC9E,cAAc,CAAC,EAAE,CAAC,KAAK,EAAE,+BAA+B,KAAK,OAAO,CAAC;IACrE,aAAa,CAAC,EAAE,CAAC,KAAK,EAAE,8BAA8B,KAAK,OAAO,CAAC;IACnE,OAAO,CAAC,EAAE,CAAC,KAAK,EAAE,2BAA2B,KAAK,OAAO,CAAC;IAC1D,yBAAyB,CAAC,EAAE,CAC1B,KAAK,EAAE,wCAAwC,KAC5C,OAAO,CAAC;IACb,KAAK,CAAC,EAAE,CAAC,KAAK,EAAE,yCAAyC,KAAK,OAAO,CAAC;IACtE,iBAAiB,CAAC,EAAE,CAClB,KAAK,EAAE,kDAAkD,KACtD,OAAO,CAAC;IACb,gBAAgB,CAAC,EAAE,CAAC,KAAK,EAAE,iCAAiC,KAAK,OAAO,CAAC;IACzE,iBAAiB,CAAC,EAAE,MAAM,OAAO,CAAC;CACnC,CAAC;AA6ZF,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-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]})});
|
|
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-DuOFLc23.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-CrBnMluO.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 {
|
|
@@ -77,6 +77,21 @@ export interface CopilotKitProviderProps {
|
|
|
77
77
|
theme?: A2UITheme;
|
|
78
78
|
catalog?: any;
|
|
79
79
|
loadingComponent?: Component;
|
|
80
|
+
/**
|
|
81
|
+
* When true (the default), the full component schemas from the catalog are
|
|
82
|
+
* sent as agent context so the agent knows what components and props are
|
|
83
|
+
* available. The A2UI middleware can overwrite this with a server-side
|
|
84
|
+
* schema if configured.
|
|
85
|
+
*
|
|
86
|
+
* When false, the agent context still describes the catalog, but only by its
|
|
87
|
+
* catalog ID and the names of its custom components, without their JSON
|
|
88
|
+
* schemas. The component schema entry and the A2UI generation and design
|
|
89
|
+
* guidelines are not sent. With the CopilotKit LangGraph middleware's
|
|
90
|
+
* injected A2UI tool, the A2UI subagent then gets the component names only;
|
|
91
|
+
* a host can still give it a composition guide through the middleware's
|
|
92
|
+
* guidelines (`a2uiParams.guidelines.compositionGuide` in TypeScript,
|
|
93
|
+
* `a2ui_params["guidelines"]["composition_guide"]` in Python).
|
|
94
|
+
*/
|
|
80
95
|
includeSchema?: boolean;
|
|
81
96
|
};
|
|
82
97
|
/** Configuration for the built-in MCP Apps renderer. */
|
|
@@ -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,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;IACtB,gBAAgB,CAAC,EAAE,MAAM,CAAC;IAC1B;;;OAGG;IACH,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,UAAU,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;IACrC,iBAAiB,CAAC,EAAE,OAAO,CAAC;IAC5B,uBAAuB,CAAC,EAAE,MAA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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"}
|
|
@@ -24,6 +24,15 @@ export declare const CopilotChatDefaultLabels: {
|
|
|
24
24
|
readonly chatScrollToBottomLabel: "Scroll to bottom";
|
|
25
25
|
readonly modalHeaderTitle: "CopilotKit Chat";
|
|
26
26
|
readonly welcomeMessageText: "How can I help you today?";
|
|
27
|
+
readonly reasoningMessageThinkingLabel: "Thinking…";
|
|
28
|
+
readonly chatInputSlashMenuLabel: "Slash commands";
|
|
29
|
+
readonly chatInputSlashMenuEmptyText: "No commands found";
|
|
30
|
+
readonly attachmentRemoveButtonLabel: "Remove attachment";
|
|
31
|
+
readonly attachmentPlayVideoButtonLabel: "Play video";
|
|
32
|
+
readonly attachmentPreviewCloseButtonLabel: "Close preview";
|
|
33
|
+
readonly modalHeaderCloseButtonLabel: "Close";
|
|
34
|
+
readonly modalHeaderThreadsButtonLabel: "Open threads";
|
|
35
|
+
readonly sidebarLabel: "Copilot chat sidebar";
|
|
27
36
|
};
|
|
28
37
|
export type CopilotChatLabels = typeof CopilotChatDefaultLabels;
|
|
29
38
|
export interface CopilotChatConfigurationValue {
|
|
@@ -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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAoC3B,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.82.0",
|
|
4
4
|
"private": false,
|
|
5
5
|
"description": "Vue 3 components and composables for CopilotKit",
|
|
6
6
|
"keywords": [
|
|
@@ -70,11 +70,11 @@
|
|
|
70
70
|
"streamdown-vue": "^1.0.29",
|
|
71
71
|
"zod": "^3.25.75",
|
|
72
72
|
"zod-to-json-schema": "^3.24.5",
|
|
73
|
-
"@copilotkit/
|
|
74
|
-
"@copilotkit/
|
|
75
|
-
"@copilotkit/shared": "1.
|
|
76
|
-
"@copilotkit/web-components": "1.
|
|
77
|
-
"@copilotkit/web-inspector": "1.
|
|
73
|
+
"@copilotkit/mcp-apps-renderer": "1.82.0",
|
|
74
|
+
"@copilotkit/core": "1.82.0",
|
|
75
|
+
"@copilotkit/shared": "1.82.0",
|
|
76
|
+
"@copilotkit/web-components": "1.82.0",
|
|
77
|
+
"@copilotkit/web-inspector": "1.82.0"
|
|
78
78
|
},
|
|
79
79
|
"devDependencies": {
|
|
80
80
|
"@eslint/js": "^9.39.2",
|
package/src/styles/globals.css
CHANGED
|
@@ -77,6 +77,13 @@
|
|
|
77
77
|
--sidebar-accent-foreground: oklch(0.985 0 0);
|
|
78
78
|
--sidebar-border: oklch(0.269 0 0);
|
|
79
79
|
--sidebar-ring: oklch(0.439 0 0);
|
|
80
|
+
|
|
81
|
+
/* A2UI basic catalog from @copilotkit/vue; light values are its fallbacks. */
|
|
82
|
+
--a2ui-color-surface: var(--card);
|
|
83
|
+
/* rgb(64, 64, 64), the Angular stylesheet's dark A2UI border; --border is too faint on --card. */
|
|
84
|
+
--a2ui-color-border: oklch(0.371 0 0);
|
|
85
|
+
--a2ui-color-muted: var(--muted-foreground);
|
|
86
|
+
--a2ui-color-error: #f87171;
|
|
80
87
|
}
|
|
81
88
|
|
|
82
89
|
@theme inline {
|
|
@@ -144,6 +151,15 @@
|
|
|
144
151
|
background-color: var(--background);
|
|
145
152
|
}
|
|
146
153
|
|
|
154
|
+
/* CopilotChat's root is an inline-size container (`cpk:@container`), so its
|
|
155
|
+
content contributes no width. As a flex item in a row, its auto width
|
|
156
|
+
collapsed to a narrow column. Fill the container instead. This sits in the
|
|
157
|
+
base layer so a width the app sets (utility class, stylesheet, inline
|
|
158
|
+
style) still wins. Same rule as React (PE-788). */
|
|
159
|
+
.copilotKitChat[data-copilotkit] {
|
|
160
|
+
width: 100%;
|
|
161
|
+
}
|
|
162
|
+
|
|
147
163
|
/* Mobile viewport support */
|
|
148
164
|
@supports (height: 100dvh) {
|
|
149
165
|
[data-copilot-sidebar] {
|
|
@@ -0,0 +1,188 @@
|
|
|
1
|
+
import { readFileSync } from "node:fs";
|
|
2
|
+
import { describe, expect, it } from "vitest";
|
|
3
|
+
import { ref } from "vue";
|
|
4
|
+
import { render, waitFor } from "@testing-library/vue";
|
|
5
|
+
import { createA2UIMessageRenderer } from "../A2UIMessageRenderer";
|
|
6
|
+
import { CopilotKitKey } from "../../providers/keys";
|
|
7
|
+
|
|
8
|
+
/** A minimal CopilotKit context for rendering an A2UI surface without a runtime. */
|
|
9
|
+
function copilotKitProvide() {
|
|
10
|
+
return {
|
|
11
|
+
[CopilotKitKey as symbol]: {
|
|
12
|
+
copilotkit: ref({
|
|
13
|
+
properties: {},
|
|
14
|
+
setProperties: () => undefined,
|
|
15
|
+
runAgent: async () => undefined,
|
|
16
|
+
}),
|
|
17
|
+
executingToolCallIds: ref(new Set()),
|
|
18
|
+
a2uiTheme: ref({}),
|
|
19
|
+
a2uiCatalog: ref(undefined),
|
|
20
|
+
a2uiLoadingComponent: ref(undefined),
|
|
21
|
+
a2uiIncludeSchema: ref(true),
|
|
22
|
+
},
|
|
23
|
+
};
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
const BASIC_CATALOG_ID =
|
|
27
|
+
"https://a2ui.org/specification/v0_9/basic_catalog.json";
|
|
28
|
+
|
|
29
|
+
const content = {
|
|
30
|
+
a2ui_operations: [
|
|
31
|
+
{
|
|
32
|
+
version: "v0.9",
|
|
33
|
+
createSurface: { surfaceId: "colors", catalogId: BASIC_CATALOG_ID },
|
|
34
|
+
},
|
|
35
|
+
{
|
|
36
|
+
version: "v0.9",
|
|
37
|
+
updateComponents: {
|
|
38
|
+
surfaceId: "colors",
|
|
39
|
+
components: [
|
|
40
|
+
{ id: "root", component: "Card", child: "body" },
|
|
41
|
+
{
|
|
42
|
+
id: "body",
|
|
43
|
+
component: "Column",
|
|
44
|
+
children: ["caption", "choice", "rule", "go"],
|
|
45
|
+
},
|
|
46
|
+
{
|
|
47
|
+
id: "caption",
|
|
48
|
+
component: "Text",
|
|
49
|
+
text: "Hint",
|
|
50
|
+
variant: "caption",
|
|
51
|
+
},
|
|
52
|
+
{
|
|
53
|
+
id: "choice",
|
|
54
|
+
component: "ChoicePicker",
|
|
55
|
+
displayStyle: "chips",
|
|
56
|
+
options: [{ label: "North", value: "north" }],
|
|
57
|
+
value: [],
|
|
58
|
+
},
|
|
59
|
+
{ id: "rule", component: "Divider" },
|
|
60
|
+
{
|
|
61
|
+
id: "go",
|
|
62
|
+
component: "Button",
|
|
63
|
+
child: "goLabel",
|
|
64
|
+
action: { event: { name: "go" } },
|
|
65
|
+
},
|
|
66
|
+
{ id: "goLabel", component: "Text", text: "Continue" },
|
|
67
|
+
],
|
|
68
|
+
},
|
|
69
|
+
},
|
|
70
|
+
],
|
|
71
|
+
};
|
|
72
|
+
|
|
73
|
+
/** The element's inline `style` attribute, or "" when there is no element. */
|
|
74
|
+
const styleOf = (element: Element | null | undefined) =>
|
|
75
|
+
element?.getAttribute("style") ?? "";
|
|
76
|
+
|
|
77
|
+
// The basic catalog styles itself inline, so a host can only theme it through
|
|
78
|
+
// CSS variables. Each colour reads the same --a2ui-color-* variable as the
|
|
79
|
+
// Angular basic catalog and falls back to the colour it used before; in dark
|
|
80
|
+
// mode the chat stylesheet sets the variables from its own tokens.
|
|
81
|
+
describe("A2UI basic catalog colours", () => {
|
|
82
|
+
it("reads the --a2ui-color-* variables, falling back to the previous colours", async () => {
|
|
83
|
+
const renderer = createA2UIMessageRenderer({ theme: {} });
|
|
84
|
+
const { container, getByText } = render(renderer.render, {
|
|
85
|
+
props: { activityType: "a2ui-surface", content, message: {}, agent: {} },
|
|
86
|
+
global: { provide: copilotKitProvide() },
|
|
87
|
+
});
|
|
88
|
+
|
|
89
|
+
await waitFor(() => expect(getByText("Continue")).toBeDefined());
|
|
90
|
+
|
|
91
|
+
const card = container.querySelector(
|
|
92
|
+
"[data-surface-id] [style*='box-shadow']",
|
|
93
|
+
);
|
|
94
|
+
const chip = getByText("North").closest("button");
|
|
95
|
+
const button = getByText("Continue").closest("button");
|
|
96
|
+
const caption = getByText("Hint");
|
|
97
|
+
const divider = container.querySelector(
|
|
98
|
+
"[data-surface-id] [style*='height: 1px']",
|
|
99
|
+
);
|
|
100
|
+
|
|
101
|
+
expect(styleOf(card)).toContain("var(--a2ui-color-surface, #fff)");
|
|
102
|
+
expect(styleOf(card)).toContain("var(--a2ui-color-border, #ccc)");
|
|
103
|
+
expect(styleOf(chip)).toContain("var(--a2ui-color-surface, #fff)");
|
|
104
|
+
expect(styleOf(chip)).toContain("var(--a2ui-color-border, #ccc)");
|
|
105
|
+
expect(styleOf(button)).toContain("var(--a2ui-color-surface, #fff)");
|
|
106
|
+
expect(styleOf(button)).toContain("var(--a2ui-color-border, #ccc)");
|
|
107
|
+
expect(styleOf(caption)).toContain("var(--a2ui-color-muted, #666)");
|
|
108
|
+
expect(styleOf(divider)).toContain("var(--a2ui-color-border, #ccc)");
|
|
109
|
+
});
|
|
110
|
+
|
|
111
|
+
it("colours the error text and outlines with --a2ui-color-error", async () => {
|
|
112
|
+
// A text field and a checkbox whose check fails, because /valid is unset.
|
|
113
|
+
const invalid = {
|
|
114
|
+
a2ui_operations: [
|
|
115
|
+
{
|
|
116
|
+
version: "v0.9",
|
|
117
|
+
createSurface: { surfaceId: "invalid", catalogId: BASIC_CATALOG_ID },
|
|
118
|
+
},
|
|
119
|
+
{
|
|
120
|
+
version: "v0.9",
|
|
121
|
+
updateComponents: {
|
|
122
|
+
surfaceId: "invalid",
|
|
123
|
+
components: [
|
|
124
|
+
{ id: "root", component: "Column", children: ["name", "agree"] },
|
|
125
|
+
{
|
|
126
|
+
id: "name",
|
|
127
|
+
component: "TextField",
|
|
128
|
+
label: "Name",
|
|
129
|
+
value: { path: "/name" },
|
|
130
|
+
checks: [
|
|
131
|
+
{ condition: { path: "/valid" }, message: "Required" },
|
|
132
|
+
],
|
|
133
|
+
},
|
|
134
|
+
{
|
|
135
|
+
id: "agree",
|
|
136
|
+
component: "CheckBox",
|
|
137
|
+
label: "Agree",
|
|
138
|
+
value: { path: "/agree" },
|
|
139
|
+
checks: [
|
|
140
|
+
{ condition: { path: "/valid" }, message: "Must agree" },
|
|
141
|
+
],
|
|
142
|
+
},
|
|
143
|
+
],
|
|
144
|
+
},
|
|
145
|
+
},
|
|
146
|
+
],
|
|
147
|
+
};
|
|
148
|
+
const renderer = createA2UIMessageRenderer({ theme: {} });
|
|
149
|
+
const { container, findByText, getByText } = render(renderer.render, {
|
|
150
|
+
props: {
|
|
151
|
+
activityType: "a2ui-surface",
|
|
152
|
+
content: invalid,
|
|
153
|
+
message: {},
|
|
154
|
+
agent: {},
|
|
155
|
+
},
|
|
156
|
+
global: { provide: copilotKitProvide() },
|
|
157
|
+
});
|
|
158
|
+
|
|
159
|
+
await findByText("Required");
|
|
160
|
+
const textInput = container.querySelector(
|
|
161
|
+
"input[type='text'], input:not([type])",
|
|
162
|
+
);
|
|
163
|
+
const checkbox = container.querySelector("input[type='checkbox']");
|
|
164
|
+
|
|
165
|
+
expect(styleOf(textInput)).toContain(
|
|
166
|
+
"1px solid var(--a2ui-color-error, red)",
|
|
167
|
+
);
|
|
168
|
+
expect(styleOf(checkbox)).toContain(
|
|
169
|
+
"1px solid var(--a2ui-color-error, red)",
|
|
170
|
+
);
|
|
171
|
+
expect(styleOf(getByText("Required"))).toContain(
|
|
172
|
+
"var(--a2ui-color-error, red)",
|
|
173
|
+
);
|
|
174
|
+
});
|
|
175
|
+
|
|
176
|
+
it("sets the variables from the dark theme in the chat stylesheet", () => {
|
|
177
|
+
const globalsCss = readFileSync("src/styles/globals.css", "utf8");
|
|
178
|
+
const darkBlock =
|
|
179
|
+
globalsCss.match(
|
|
180
|
+
/\.dark \[data-copilotkit\],\s*\[data-copilotkit\]\.dark \{([^}]*)\}/,
|
|
181
|
+
)?.[1] ?? "";
|
|
182
|
+
|
|
183
|
+
expect(darkBlock).toContain("--a2ui-color-surface: var(--card);");
|
|
184
|
+
expect(darkBlock).toContain("--a2ui-color-border: oklch(0.371 0 0);");
|
|
185
|
+
expect(darkBlock).toContain("--a2ui-color-muted: var(--muted-foreground);");
|
|
186
|
+
expect(darkBlock).toContain("--a2ui-color-error: #f87171;");
|
|
187
|
+
});
|
|
188
|
+
});
|