@copilotkit/vue 1.69.3 → 1.70.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.
@@ -21,11 +21,13 @@ type __VLS_Slots = {
21
21
  };
22
22
  declare const __VLS_component: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
23
23
  "thumbs-up": (message: {
24
- role: "assistant";
25
24
  id: string;
25
+ role: "assistant";
26
26
  name?: string | undefined;
27
- content?: string | undefined;
28
27
  encryptedValue?: string | undefined;
28
+ metadata?: Record<string, any> | undefined;
29
+ content?: string | undefined;
30
+ subagentRunId?: string | undefined;
29
31
  toolCalls?: {
30
32
  function: {
31
33
  name: string;
@@ -34,14 +36,17 @@ declare const __VLS_component: import("vue").DefineComponent<__VLS_Props, {}, {}
34
36
  type: "function";
35
37
  id: string;
36
38
  encryptedValue?: string | undefined;
39
+ metadata?: Record<string, any> | undefined;
37
40
  }[] | undefined;
38
41
  }) => any;
39
42
  "thumbs-down": (message: {
40
- role: "assistant";
41
43
  id: string;
44
+ role: "assistant";
42
45
  name?: string | undefined;
43
- content?: string | undefined;
44
46
  encryptedValue?: string | undefined;
47
+ metadata?: Record<string, any> | undefined;
48
+ content?: string | undefined;
49
+ subagentRunId?: string | undefined;
45
50
  toolCalls?: {
46
51
  function: {
47
52
  name: string;
@@ -50,14 +55,17 @@ declare const __VLS_component: import("vue").DefineComponent<__VLS_Props, {}, {}
50
55
  type: "function";
51
56
  id: string;
52
57
  encryptedValue?: string | undefined;
58
+ metadata?: Record<string, any> | undefined;
53
59
  }[] | undefined;
54
60
  }) => any;
55
61
  "read-aloud": (message: {
56
- role: "assistant";
57
62
  id: string;
63
+ role: "assistant";
58
64
  name?: string | undefined;
59
- content?: string | undefined;
60
65
  encryptedValue?: string | undefined;
66
+ metadata?: Record<string, any> | undefined;
67
+ content?: string | undefined;
68
+ subagentRunId?: string | undefined;
61
69
  toolCalls?: {
62
70
  function: {
63
71
  name: string;
@@ -66,14 +74,17 @@ declare const __VLS_component: import("vue").DefineComponent<__VLS_Props, {}, {}
66
74
  type: "function";
67
75
  id: string;
68
76
  encryptedValue?: string | undefined;
77
+ metadata?: Record<string, any> | undefined;
69
78
  }[] | undefined;
70
79
  }) => any;
71
80
  regenerate: (message: {
72
- role: "assistant";
73
81
  id: string;
82
+ role: "assistant";
74
83
  name?: string | undefined;
75
- content?: string | undefined;
76
84
  encryptedValue?: string | undefined;
85
+ metadata?: Record<string, any> | undefined;
86
+ content?: string | undefined;
87
+ subagentRunId?: string | undefined;
77
88
  toolCalls?: {
78
89
  function: {
79
90
  name: string;
@@ -82,15 +93,18 @@ declare const __VLS_component: import("vue").DefineComponent<__VLS_Props, {}, {}
82
93
  type: "function";
83
94
  id: string;
84
95
  encryptedValue?: string | undefined;
96
+ metadata?: Record<string, any> | undefined;
85
97
  }[] | undefined;
86
98
  }) => any;
87
99
  }, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{
88
100
  "onThumbs-up"?: ((message: {
89
- role: "assistant";
90
101
  id: string;
102
+ role: "assistant";
91
103
  name?: string | undefined;
92
- content?: string | undefined;
93
104
  encryptedValue?: string | undefined;
105
+ metadata?: Record<string, any> | undefined;
106
+ content?: string | undefined;
107
+ subagentRunId?: string | undefined;
94
108
  toolCalls?: {
95
109
  function: {
96
110
  name: string;
@@ -99,14 +113,17 @@ declare const __VLS_component: import("vue").DefineComponent<__VLS_Props, {}, {}
99
113
  type: "function";
100
114
  id: string;
101
115
  encryptedValue?: string | undefined;
116
+ metadata?: Record<string, any> | undefined;
102
117
  }[] | undefined;
103
118
  }) => any) | undefined;
104
119
  "onThumbs-down"?: ((message: {
105
- role: "assistant";
106
120
  id: string;
121
+ role: "assistant";
107
122
  name?: string | undefined;
108
- content?: string | undefined;
109
123
  encryptedValue?: string | undefined;
124
+ metadata?: Record<string, any> | undefined;
125
+ content?: string | undefined;
126
+ subagentRunId?: string | undefined;
110
127
  toolCalls?: {
111
128
  function: {
112
129
  name: string;
@@ -115,14 +132,17 @@ declare const __VLS_component: import("vue").DefineComponent<__VLS_Props, {}, {}
115
132
  type: "function";
116
133
  id: string;
117
134
  encryptedValue?: string | undefined;
135
+ metadata?: Record<string, any> | undefined;
118
136
  }[] | undefined;
119
137
  }) => any) | undefined;
120
138
  "onRead-aloud"?: ((message: {
121
- role: "assistant";
122
139
  id: string;
140
+ role: "assistant";
123
141
  name?: string | undefined;
124
- content?: string | undefined;
125
142
  encryptedValue?: string | undefined;
143
+ metadata?: Record<string, any> | undefined;
144
+ content?: string | undefined;
145
+ subagentRunId?: string | undefined;
126
146
  toolCalls?: {
127
147
  function: {
128
148
  name: string;
@@ -131,14 +151,17 @@ declare const __VLS_component: import("vue").DefineComponent<__VLS_Props, {}, {}
131
151
  type: "function";
132
152
  id: string;
133
153
  encryptedValue?: string | undefined;
154
+ metadata?: Record<string, any> | undefined;
134
155
  }[] | undefined;
135
156
  }) => any) | undefined;
136
157
  onRegenerate?: ((message: {
137
- role: "assistant";
138
158
  id: string;
159
+ role: "assistant";
139
160
  name?: string | undefined;
140
- content?: string | undefined;
141
161
  encryptedValue?: string | undefined;
162
+ metadata?: Record<string, any> | undefined;
163
+ content?: string | undefined;
164
+ subagentRunId?: string | undefined;
142
165
  toolCalls?: {
143
166
  function: {
144
167
  name: string;
@@ -147,6 +170,7 @@ declare const __VLS_component: import("vue").DefineComponent<__VLS_Props, {}, {}
147
170
  type: "function";
148
171
  id: string;
149
172
  encryptedValue?: string | undefined;
173
+ metadata?: Record<string, any> | undefined;
150
174
  }[] | undefined;
151
175
  }) => any) | undefined;
152
176
  }>, {
@@ -1 +1 @@
1
- {"version":3,"file":"CopilotChatAssistantMessage.vue.d.ts","sourceRoot":"","sources":["../../../../src/v2/components/chat/CopilotChatAssistantMessage.vue"],"names":[],"mappings":"AAs4BA,OAAO,KAAK,EAAE,gBAAgB,EAAE,OAAO,EAAE,MAAM,aAAa,CAAC;AAc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;;;;;;;;0BA0HrC,CA1HqC;;;;;;;;;;;;;;;;0BA0HrC,CA1HqC;;;;;;;;;;;;;;;;0BA0HrC,CA1HqC;;;;;;;;;;;;;;;;;0BA0HrC,CA1HqC;;;;;;;;;;;;;;;;0BA0HrC,CA1HqC;;;;;;;;;;;;;;;;0BA0HrC,CA1HqC;;;;;;;;;;;;;;;;0BA0HrC,CA1HqC;;;;cAkKtB,OAAO,EAAE;eACR,OAAO;oBACF,OAAO;6EAu+B1B,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
+ {"version":3,"file":"CopilotChatAssistantMessage.vue.d.ts","sourceRoot":"","sources":["../../../../src/v2/components/chat/CopilotChatAssistantMessage.vue"],"names":[],"mappings":"AAs4BA,OAAO,KAAK,EAAE,gBAAgB,EAAE,OAAO,EAAE,MAAM,aAAa,CAAC;AAc7D,OAAO,KAAK,EACV,8CAA8C,EAC9C,0CAA0C,EAC1C,mDAAmD,EACnD,mDAAmD,EACnD,oDAAoD,EACpD,oDAAoD,EACpD,kDAAkD,EAClD,iDAAiD,EACjD,2CAA2C,EAC5C,MAAM,SAAS,CAAC;AAKjB,KAAK,WAAW,GAAG;IACf,OAAO,EAAE,gBAAgB,CAAC;IAC1B,QAAQ,CAAC,EAAE,OAAO,EAAE,CAAC;IACrB,SAAS,CAAC,EAAE,OAAO,CAAC;IACpB,cAAc,CAAC,EAAE,OAAO,CAAC;CAC1B,CAAC;AAUJ,KAAK,WAAW,GAAG;IACjB,MAAM,CAAC,EAAE,CAAC,KAAK,EAAE,0CAA0C,KAAK,OAAO,CAAC;IACxE,kBAAkB,CAAC,EAAE,CACnB,KAAK,EAAE,mDAAmD,KACvD,OAAO,CAAC;IACb,OAAO,CAAC,EAAE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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"),i=require("@ag-ui/client"),e=require("../use-render-activity-message-DMY6Krn-.cjs"),n=require("@copilotkit/shared");exports.A2UIActivityContentSchema=e.A2UIActivityContentSchema;exports.A2UISurfaceActivityRenderer=e._sfc_main;exports.A2UISurfaceActivityType=e.A2UISurfaceActivityType;exports.CopilotChat=e.CopilotChat;exports.CopilotChatAssistantMessage=e._sfc_main$1;exports.CopilotChatAttachmentQueue=e._sfc_main$2;exports.CopilotChatAttachmentRenderer=e._sfc_main$3;exports.CopilotChatAudioRecorder=e._sfc_main$4;exports.CopilotChatConfigurationProvider=e._sfc_main$5;exports.CopilotChatDefaultLabels=e.CopilotChatDefaultLabels;exports.CopilotChatInput=e._sfc_main$6;exports.CopilotChatMessageView=e._sfc_main$7;exports.CopilotChatReasoningMessage=e._sfc_main$8;exports.CopilotChatSuggestionPill=e._sfc_main$9;exports.CopilotChatSuggestionView=e._sfc_main$10;exports.CopilotChatToggleButton=e.CopilotChatToggleButton;exports.CopilotChatToggleButtonCloseIcon=e.CopilotChatToggleButtonCloseIcon;exports.CopilotChatToggleButtonOpenIcon=e.CopilotChatToggleButtonOpenIcon;exports.CopilotChatToolCallsView=e._sfc_main$11;exports.CopilotChatUserMessage=e._sfc_main$12;exports.CopilotChatView=e._sfc_main$13;exports.CopilotKitCoreVue=e.CopilotKitCoreVue;exports.CopilotKitInspector=e._sfc_main$14;exports.CopilotKitProvider=e._sfc_main$15;exports.CopilotModalHeader=e.CopilotModalHeader;exports.CopilotPopup=e._sfc_main$16;exports.CopilotPopupView=e.CopilotPopupView;exports.CopilotSidebar=e._sfc_main$17;exports.CopilotSidebarView=e.CopilotSidebarView;exports.CopilotThreadsDrawer=e._sfc_main$18;exports.GenerateSandboxedUiArgsSchema=e.GenerateSandboxedUiArgsSchema;exports.LicenseContextKey=e.LicenseContextKey;exports.MCPAppsActivityContentSchema=e.MCPAppsActivityContentSchema;exports.MCPAppsActivityRenderer=e.MCPAppsActivityRenderer;exports.MCPAppsActivityType=e.MCPAppsActivityType;exports.OpenGenerativeUIActivityRenderer=e.OpenGenerativeUIActivityRenderer;exports.OpenGenerativeUIActivityType=e.OpenGenerativeUIActivityType;exports.OpenGenerativeUIContentSchema=e.OpenGenerativeUIContentSchema;exports.OpenGenerativeUIRenderer=e.OpenGenerativeUIRenderer;exports.OpenGenerativeUIToolRenderer=e.OpenGenerativeUIToolRenderer;exports.UseAgentUpdate=e.UseAgentUpdate;exports.createA2UIMessageRenderer=e.createA2UIMessageRenderer;exports.createDefaultLicenseRef=e.createDefaultLicenseRef;exports.defineToolCallRenderer=e.defineToolCallRenderer;exports.extractCompleteStyles=e.extractCompleteStyles;exports.getOperationSurfaceId=e.getOperationSurfaceId;exports.processPartialHtml=e.processPartialHtml;exports.useAgent=e.useAgent;exports.useAgentContext=e.useAgentContext;exports.useAttachments=e.useAttachments;exports.useCapabilities=e.useCapabilities;exports.useComponent=e.useComponent;exports.useConfigureSuggestions=e.useConfigureSuggestions;exports.useCopilotChatConfiguration=e.useCopilotChatConfiguration;exports.useCopilotKit=e.useCopilotKit;exports.useDefaultRenderTool=e.useDefaultRenderTool;exports.useFrontendTool=e.useFrontendTool;exports.useHumanInTheLoop=e.useHumanInTheLoop;exports.useInterrupt=e.useInterrupt;exports.useKatexStyles=e.useKatexStyles;exports.useKeyboardHeight=e.useKeyboardHeight;exports.useLicenseContext=e.useLicenseContext;exports.useRenderActivityMessage=e.useRenderActivityMessage;exports.useRenderCustomMessages=e.useRenderCustomMessages;exports.useRenderTool=e.useRenderTool;exports.useSandboxFunctions=e.useSandboxFunctions;exports.useSuggestions=e.useSuggestions;exports.useThreads=e.useThreads;exports.vueBasicCatalog=e.vueBasicCatalog;Object.defineProperty(exports,"createLicenseContextValue",{enumerable:!0,get:()=>n.createLicenseContextValue});Object.keys(o).forEach(t=>{t!=="default"&&!Object.prototype.hasOwnProperty.call(exports,t)&&Object.defineProperty(exports,t,{enumerable:!0,get:()=>o[t]})});Object.keys(i).forEach(t=>{t!=="default"&&!Object.prototype.hasOwnProperty.call(exports,t)&&Object.defineProperty(exports,t,{enumerable:!0,get:()=>i[t]})});
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-h2NHCkBt.cjs"),n=require("@copilotkit/shared");exports.A2UIActivityContentSchema=e.A2UIActivityContentSchema;exports.A2UISurfaceActivityRenderer=e._sfc_main;exports.A2UISurfaceActivityType=e.A2UISurfaceActivityType;exports.CopilotChat=e.CopilotChat;exports.CopilotChatAssistantMessage=e._sfc_main$1;exports.CopilotChatAttachmentQueue=e._sfc_main$2;exports.CopilotChatAttachmentRenderer=e._sfc_main$3;exports.CopilotChatAudioRecorder=e._sfc_main$4;exports.CopilotChatConfigurationProvider=e._sfc_main$5;exports.CopilotChatDefaultLabels=e.CopilotChatDefaultLabels;exports.CopilotChatInput=e._sfc_main$6;exports.CopilotChatMessageView=e._sfc_main$7;exports.CopilotChatReasoningMessage=e._sfc_main$8;exports.CopilotChatSuggestionPill=e._sfc_main$9;exports.CopilotChatSuggestionView=e._sfc_main$10;exports.CopilotChatToggleButton=e.CopilotChatToggleButton;exports.CopilotChatToggleButtonCloseIcon=e.CopilotChatToggleButtonCloseIcon;exports.CopilotChatToggleButtonOpenIcon=e.CopilotChatToggleButtonOpenIcon;exports.CopilotChatToolCallsView=e._sfc_main$11;exports.CopilotChatUserMessage=e._sfc_main$12;exports.CopilotChatView=e._sfc_main$13;exports.CopilotKitCoreVue=e.CopilotKitCoreVue;exports.CopilotKitInspector=e._sfc_main$14;exports.CopilotKitProvider=e._sfc_main$15;exports.CopilotModalHeader=e.CopilotModalHeader;exports.CopilotPopup=e._sfc_main$16;exports.CopilotPopupView=e.CopilotPopupView;exports.CopilotSidebar=e._sfc_main$17;exports.CopilotSidebarView=e.CopilotSidebarView;exports.CopilotThreadsDrawer=e._sfc_main$18;exports.GenerateSandboxedUiArgsSchema=e.GenerateSandboxedUiArgsSchema;exports.LicenseContextKey=e.LicenseContextKey;exports.MCPAppsActivityContentSchema=e.MCPAppsActivityContentSchema;exports.MCPAppsActivityRenderer=e.MCPAppsActivityRenderer;exports.MCPAppsActivityType=e.MCPAppsActivityType;exports.OpenGenerativeUIActivityRenderer=e.OpenGenerativeUIActivityRenderer;exports.OpenGenerativeUIActivityType=e.OpenGenerativeUIActivityType;exports.OpenGenerativeUIContentSchema=e.OpenGenerativeUIContentSchema;exports.OpenGenerativeUIRenderer=e.OpenGenerativeUIRenderer;exports.OpenGenerativeUIToolRenderer=e.OpenGenerativeUIToolRenderer;exports.UseAgentUpdate=e.UseAgentUpdate;exports.createA2UIMessageRenderer=e.createA2UIMessageRenderer;exports.createDefaultLicenseRef=e.createDefaultLicenseRef;exports.defineToolCallRenderer=e.defineToolCallRenderer;exports.extractCompleteStyles=e.extractCompleteStyles;exports.getOperationSurfaceId=e.getOperationSurfaceId;exports.processPartialHtml=e.processPartialHtml;exports.useAgent=e.useAgent;exports.useAgentContext=e.useAgentContext;exports.useAttachments=e.useAttachments;exports.useCapabilities=e.useCapabilities;exports.useComponent=e.useComponent;exports.useConfigureSuggestions=e.useConfigureSuggestions;exports.useCopilotChatConfiguration=e.useCopilotChatConfiguration;exports.useCopilotKit=e.useCopilotKit;exports.useDefaultRenderTool=e.useDefaultRenderTool;exports.useFrontendTool=e.useFrontendTool;exports.useHumanInTheLoop=e.useHumanInTheLoop;exports.useInterrupt=e.useInterrupt;exports.useKatexStyles=e.useKatexStyles;exports.useKeyboardHeight=e.useKeyboardHeight;exports.useLicenseContext=e.useLicenseContext;exports.useRenderActivityMessage=e.useRenderActivityMessage;exports.useRenderCustomMessages=e.useRenderCustomMessages;exports.useRenderTool=e.useRenderTool;exports.useSandboxFunctions=e.useSandboxFunctions;exports.useSuggestions=e.useSuggestions;exports.useThreads=e.useThreads;exports.vueBasicCatalog=e.vueBasicCatalog;Object.defineProperty(exports,"createLicenseContextValue",{enumerable:!0,get:()=>n.createLicenseContextValue});Object.keys(o).forEach(t=>{t!=="default"&&!Object.prototype.hasOwnProperty.call(exports,t)&&Object.defineProperty(exports,t,{enumerable:!0,get:()=>o[t]})});Object.keys(i).forEach(t=>{t!=="default"&&!Object.prototype.hasOwnProperty.call(exports,t)&&Object.defineProperty(exports,t,{enumerable:!0,get:()=>i[t]})});
2
2
  //# sourceMappingURL=index.cjs.map
package/dist/v2/index.mjs CHANGED
@@ -1,6 +1,6 @@
1
1
  export * from "@copilotkit/core";
2
2
  export * from "@ag-ui/client";
3
- import { A as o, _ as i, a as n, C, b as r, c as p, d as l, e as u, f as c, g, h as d, i as h, j as A, k as v, l as S, m, n as y, o as I, p as f, q as R, r as T, s as U, t as x, u as M, v as P, w as b, x as V, y as w, z as K, B as O, G, L, M as B, D, E as H, O as F, F as Q, H as j, I as k, J as q, U as z, K as E, N as J, P as N, Q as W, R as X, S as Y, T as Z, V as _, W as $, X as ee, Y as ae, Z as te, $ as se, a0 as oe, a1 as ie, a2 as ne, a3 as Ce, a4 as re, a5 as pe, a6 as le, a7 as ue, a8 as ce, a9 as ge, aa as de, ab as he, ac as Ae, ad as ve, ae as Se } from "../use-render-activity-message-W2lbqLZH.js";
3
+ import { A as o, _ as i, a as n, C, b as r, c as p, d as l, e as u, f as c, g, h as d, i as h, j as A, k as v, l as S, m, n as y, o as I, p as f, q as R, r as T, s as U, t as x, u as M, v as P, w as b, x as V, y as w, z as K, B as O, G, L, M as B, D, E as H, O as F, F as Q, H as j, I as k, J as q, U as z, K as E, N as J, P as N, Q as W, R as X, S as Y, T as Z, V as _, W as $, X as ee, Y as ae, Z as te, $ as se, a0 as oe, a1 as ie, a2 as ne, a3 as Ce, a4 as re, a5 as pe, a6 as le, a7 as ue, a8 as ce, a9 as ge, aa as de, ab as he, ac as Ae, ad as ve, ae as Se } from "../use-render-activity-message-ytoSQi6V.js";
4
4
  import { createLicenseContextValue as ye } from "@copilotkit/shared";
5
5
  export {
6
6
  o as A2UIActivityContentSchema,
@@ -1,6 +1,6 @@
1
1
  import type { AbstractAgent } from "@ag-ui/client";
2
2
  import type { CopilotKitProviderProps } from "./CopilotKitProvider.types";
3
- import type { SandboxFunction, VueActivityMessageRenderer, VueFrontendTool, VueHumanInTheLoop } from "../types";
3
+ import type { SandboxFunction, VueActivityMessageRenderer, VueFrontendTool } from "../types";
4
4
  declare var __VLS_1: {};
5
5
  type __VLS_Slots = {} & {
6
6
  default?: (props: typeof __VLS_1) => any;
@@ -14,7 +14,7 @@ declare const __VLS_component: import("vue").DefineComponent<CopilotKitProviderP
14
14
  agents__unsafe_dev_only: Record<string, AbstractAgent>;
15
15
  selfManagedAgents: Record<string, AbstractAgent>;
16
16
  frontendTools: VueFrontendTool[];
17
- humanInTheLoop: VueHumanInTheLoop[];
17
+ humanInTheLoop: import("..").VueHumanInTheLoop[];
18
18
  openGenerativeUI: {
19
19
  sandboxFunctions?: SandboxFunction[];
20
20
  designSkill?: string;
@@ -1 +1 @@
1
- {"version":3,"file":"CopilotKitProvider.vue.d.ts","sourceRoot":"","sources":["../../../src/v2/providers/CopilotKitProvider.vue"],"names":[],"mappings":"AAwqBA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,eAAe,CAAC;AAkCnD,OAAO,KAAK,EAAE,uBAAuB,EAAE,MAAM,4BAA4B,CAAC;AAC1E,OAAO,KAAK,EACV,eAAe,EACf,0BAA0B,EAC1B,eAAe,EACf,iBAAiB,EAElB,MAAM,UAAU,CAAC;AAwqBlB,QAAA,IAAI,OAAO,IAAW,CAAE;AACxB,KAAK,WAAW,GAAG,EAAE,GACnB;IAAE,OAAO,CAAC,EAAE,CAAC,KAAK,EAAE,OAAO,OAAO,KAAK,GAAG,CAAA;CAAE,CAAC;AA4B/C,QAAA,MAAM,eAAe;;;;;;;;;;;wBAzvBrB,CAznBsC;mBAynBtC,CAvnBW;;;;aAunBX,CAvmBO;eAumBP,CAvmBgC;wBAumBhC,CAvmB4D;qBAumB5D,CAtmBW;;6EAs2CT,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
+ {"version":3,"file":"CopilotKitProvider.vue.d.ts","sourceRoot":"","sources":["../../../src/v2/providers/CopilotKitProvider.vue"],"names":[],"mappings":"AA+tBA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,eAAe,CAAC;AAqCnD,OAAO,KAAK,EAAE,uBAAuB,EAAE,MAAM,4BAA4B,CAAC;AAC1E,OAAO,KAAK,EACV,eAAe,EACf,0BAA0B,EAC1B,eAAe,EAEhB,MAAM,UAAU,CAAC;AA6tBlB,QAAA,IAAI,OAAO,IAAW,CAAE;AACxB,KAAK,WAAW,GAAG,EAAE,GACnB;IAAE,OAAO,CAAC,EAAE,CAAC,KAAK,EAAE,OAAO,OAAO,KAAK,GAAG,CAAA;CAAE,CAAC;AA4B/C,QAAA,MAAM,eAAe;;;;;;;;;;;wBAhzBrB,CA7qBK;mBA6qBL,CA7qB0C;;;;aA6qB1C,CA7pBgD;eA6pBhD,CA5pBoB;wBA4pBpB,CA5pBgD;qBA4pBhD,CA5pB+E;;6EAm9C7E,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.69.3",
3
+ "version": "1.70.0",
4
4
  "private": false,
5
5
  "description": "Vue 3 components and composables for CopilotKit",
6
6
  "keywords": [
@@ -62,18 +62,18 @@
62
62
  },
63
63
  "dependencies": {
64
64
  "@a2ui/web_core": "0.10.4",
65
- "@ag-ui/client": "0.0.57",
66
- "@ag-ui/core": "0.0.57",
65
+ "@ag-ui/client": "0.0.59",
66
+ "@ag-ui/core": "0.0.59",
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/core": "1.69.3",
74
- "@copilotkit/web-inspector": "1.69.3",
75
- "@copilotkit/shared": "1.69.3",
76
- "@copilotkit/web-components": "1.69.3"
73
+ "@copilotkit/core": "1.70.0",
74
+ "@copilotkit/web-components": "1.70.0",
75
+ "@copilotkit/web-inspector": "1.70.0",
76
+ "@copilotkit/shared": "1.70.0"
77
77
  },
78
78
  "devDependencies": {
79
79
  "@eslint/js": "^9.39.2",
@@ -44,6 +44,8 @@ const mockUseCopilotKit = useCopilotKit as ReturnType<typeof vi.fn>;
44
44
  const threadMocks = vi.hoisted(() => ({
45
45
  sockets: [] as any[],
46
46
  dispatchedContexts: [] as Array<ThreadState["context"]>,
47
+ /** Every environment `ɵcreateThreadStore` was constructed with. */
48
+ storeEnvironments: [] as Array<{ fetch?: unknown }>,
47
49
  }));
48
50
 
49
51
  function compareThreadsByActivity(left: ThreadRecord, right: ThreadRecord) {
@@ -344,7 +346,10 @@ vi.mock("@copilotkit/core", () => {
344
346
  Connected: "connected",
345
347
  Error: "error",
346
348
  },
347
- ɵcreateThreadStore: () => new MockThreadStore(),
349
+ ɵcreateThreadStore: (environment: { fetch?: unknown }) => {
350
+ threadMocks.storeEnvironments.push(environment);
351
+ return new MockThreadStore();
352
+ },
348
353
  ɵselectThreads: select((state) => state.threads),
349
354
  ɵselectThreadsIsLoading: select((state) => state.isLoading),
350
355
  ɵselectThreadsError: select((state) => state.error),
@@ -358,6 +363,10 @@ vi.mock("@copilotkit/core", () => {
358
363
  const fetchMock = vi.fn();
359
364
  globalThis.fetch = fetchMock;
360
365
 
366
+ const runtimeFetchMock = vi.fn((...args: unknown[]) =>
367
+ (fetchMock as (...a: unknown[]) => unknown)(...args),
368
+ );
369
+
361
370
  const { CopilotKitCoreRuntimeConnectionStatus } =
362
371
  await import("@copilotkit/core");
363
372
 
@@ -391,6 +400,7 @@ type MockCopilotKit = {
391
400
  threadEndpoints: ThreadEndpointRuntimeInfo | undefined;
392
401
  registerThreadStore: ReturnType<typeof vi.fn>;
393
402
  unregisterThreadStore: ReturnType<typeof vi.fn>;
403
+ ɵruntimeFetch: typeof fetch;
394
404
  };
395
405
 
396
406
  function setupCopilotKit(
@@ -410,6 +420,7 @@ function setupCopilotKit(
410
420
  threadEndpoints: supportedThreadEndpoints,
411
421
  registerThreadStore: vi.fn(),
412
422
  unregisterThreadStore: vi.fn(),
423
+ ɵruntimeFetch: runtimeFetchMock as unknown as typeof fetch,
413
424
  ...overrides,
414
425
  });
415
426
  mockUseCopilotKit.mockReturnValue({ copilotkit });
@@ -487,10 +498,22 @@ describe("useThreads", () => {
487
498
  beforeEach(() => {
488
499
  threadMocks.sockets.splice(0);
489
500
  threadMocks.dispatchedContexts.splice(0);
501
+ threadMocks.storeEnvironments.splice(0);
490
502
  fetchMock.mockReset();
491
503
  setupCopilotKit();
492
504
  });
493
505
 
506
+ it("builds the thread store with the core's instrumented fetch", () => {
507
+ const copilotkit = setupCopilotKit();
508
+ mountHook();
509
+
510
+ expect(threadMocks.storeEnvironments).toHaveLength(1);
511
+ expect(threadMocks.storeEnvironments[0]!.fetch).toBe(
512
+ copilotkit.value.ɵruntimeFetch,
513
+ );
514
+ expect(threadMocks.storeEnvironments[0]!.fetch).not.toBe(globalThis.fetch);
515
+ });
516
+
494
517
  it("fetches threads and subscribes to the user metadata channel", async () => {
495
518
  fetchMock
496
519
  .mockReturnValueOnce(
@@ -90,7 +90,7 @@ function bindThreadStoreSelector<T>(
90
90
  export function useThreads(input: UseThreadsInput): UseThreadsResult {
91
91
  const { copilotkit } = useCopilotKit();
92
92
  const store = ɵcreateThreadStore({
93
- fetch: globalThis.fetch,
93
+ fetch: copilotkit.value.ɵruntimeFetch,
94
94
  });
95
95
 
96
96
  const resolvedAgentId = computed(() => toValue(input.agentId));
@@ -16,7 +16,10 @@ import type {
16
16
  FrontendTool,
17
17
  } from "@copilotkit/core";
18
18
  import { schemaToJsonSchema, shouldEnableInspector } from "@copilotkit/shared";
19
- import type { RuntimeLicenseStatus } from "@copilotkit/shared";
19
+ import type {
20
+ RuntimeEntitlementResponse,
21
+ RuntimeLicenseStatus,
22
+ } from "@copilotkit/shared";
20
23
  import { zodToJsonSchema } from "zod-to-json-schema";
21
24
  import { CopilotKitCoreVue } from "../lib/vue-core";
22
25
  import { createA2UIMessageRenderer } from "../components/A2UIMessageRenderer";
@@ -48,7 +51,6 @@ import type {
48
51
  SandboxFunction,
49
52
  VueActivityMessageRenderer,
50
53
  VueFrontendTool,
51
- VueHumanInTheLoop,
52
54
  VueToolCallRenderer,
53
55
  } from "../types";
54
56
 
@@ -294,6 +296,10 @@ const allRenderCustomMessages = computed(
294
296
  const runtimeA2UIEnabled = ref(false);
295
297
  const runtimeOpenGenerativeUIEnabled = ref(false);
296
298
  const runtimeLicenseStatus = ref<RuntimeLicenseStatus | undefined>(undefined);
299
+ const runtimeEntitlements = ref<RuntimeEntitlementResponse | undefined>(
300
+ undefined,
301
+ );
302
+ const runtimeEntitlementRetryPending = ref(false);
297
303
  const openGenerativeUIActive = computed(
298
304
  () => runtimeOpenGenerativeUIEnabled.value || !!props.openGenerativeUI,
299
305
  );
@@ -460,15 +466,14 @@ watch(
460
466
  runtimeA2UIEnabled.value = core.a2uiEnabled;
461
467
  runtimeOpenGenerativeUIEnabled.value = core.openGenerativeUIEnabled;
462
468
  runtimeLicenseStatus.value = core.licenseStatus;
469
+ runtimeEntitlements.value = core.runtimeEntitlements;
470
+ runtimeEntitlementRetryPending.value =
471
+ core.runtimeEntitlementRetryPending;
463
472
  triggerRef(copilotkit);
464
473
  },
465
474
  });
466
475
  const sub5 = core.subscribe({
467
- onError: (event: {
468
- error: Error;
469
- code: CopilotKitCoreErrorCode;
470
- context: Record<string, any>;
471
- }) => {
476
+ onError: (event) => {
472
477
  void props.onError?.({
473
478
  error: event.error,
474
479
  code: event.code,
@@ -557,6 +562,9 @@ onMounted(() => {
557
562
  runtimeOpenGenerativeUIEnabled.value =
558
563
  copilotkit.value.openGenerativeUIEnabled;
559
564
  runtimeLicenseStatus.value = copilotkit.value.licenseStatus;
565
+ runtimeEntitlements.value = copilotkit.value.runtimeEntitlements;
566
+ runtimeEntitlementRetryPending.value =
567
+ copilotkit.value.runtimeEntitlementRetryPending;
560
568
  didMountRef.value = true;
561
569
  });
562
570
 
@@ -633,23 +641,70 @@ provide(CopilotKitKey, {
633
641
  });
634
642
  provide(SandboxFunctionsKey, sandboxFunctions);
635
643
 
636
- // License context — driven by server-reported `/info` license status.
637
- const licenseContextValue = computed<LicenseContextValue>(() =>
638
- createLicenseContextValue(runtimeLicenseStatus.value),
644
+ // License context — driven by structured and legacy Runtime authority.
645
+ const retryableRuntimeEntitlementFailure = computed(
646
+ () =>
647
+ runtimeEntitlements.value?.status !== "ready" &&
648
+ runtimeEntitlements.value?.error.retryable === true,
649
+ );
650
+ const hasNonReadyRuntimeEntitlement = computed(
651
+ () =>
652
+ runtimeEntitlements.value !== undefined &&
653
+ runtimeEntitlements.value.status !== "ready",
654
+ );
655
+ const hasLegacyRuntimeEntitlementFallback = computed(
656
+ () =>
657
+ runtimeLicenseStatus.value === "valid" ||
658
+ runtimeLicenseStatus.value === "expiring",
659
+ );
660
+ const runtimeEntitlementRetryInProgress = computed(
661
+ () =>
662
+ retryableRuntimeEntitlementFailure.value &&
663
+ runtimeEntitlementRetryPending.value &&
664
+ !hasLegacyRuntimeEntitlementFallback.value,
639
665
  );
666
+ const runtimeEntitlementFailureSettled = computed(
667
+ () =>
668
+ hasNonReadyRuntimeEntitlement.value &&
669
+ !runtimeEntitlementRetryInProgress.value &&
670
+ !hasLegacyRuntimeEntitlementFallback.value,
671
+ );
672
+ const licenseContextValue = computed<LicenseContextValue>(() => {
673
+ const runtimeLicenseContext = createLicenseContextValue(
674
+ runtimeEntitlementRetryInProgress.value
675
+ ? undefined
676
+ : runtimeLicenseStatus.value,
677
+ runtimeEntitlements.value,
678
+ );
679
+ if (!runtimeEntitlementFailureSettled.value) {
680
+ return runtimeLicenseContext;
681
+ }
682
+
683
+ return {
684
+ ...runtimeLicenseContext,
685
+ checkFeature: () => false,
686
+ getLimit: () => null,
687
+ };
688
+ });
640
689
  provide(LicenseContextKey, licenseContextValue);
641
690
 
691
+ const runtimeLicenseWarningStatus = computed(() =>
692
+ runtimeEntitlementRetryInProgress.value
693
+ ? undefined
694
+ : (licenseContextValue.value.status ?? undefined),
695
+ );
642
696
  const showNoLicenseBanner = computed(
643
- () => runtimeLicenseStatus.value === "none" && !resolvedPublicKey.value,
697
+ () =>
698
+ runtimeLicenseWarningStatus.value === "none" && !resolvedPublicKey.value,
644
699
  );
645
700
  const showExpiredBanner = computed(
646
- () => runtimeLicenseStatus.value === "expired",
701
+ () => runtimeLicenseWarningStatus.value === "expired",
647
702
  );
648
703
  const showInvalidBanner = computed(
649
- () => runtimeLicenseStatus.value === "invalid",
704
+ () => runtimeLicenseWarningStatus.value === "invalid",
650
705
  );
651
706
  const showExpiringBanner = computed(
652
- () => runtimeLicenseStatus.value === "expiring",
707
+ () => runtimeLicenseWarningStatus.value === "expiring",
653
708
  );
654
709
  </script>
655
710