@copilotkit/vue 2.0.0-rc.8 → 2.0.0-rc.9

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.
Files changed (51) hide show
  1. package/dist/hooks/use-copilot-action.d.ts.map +1 -1
  2. package/dist/hooks/use-frontend-tool.d.ts +1 -1
  3. package/dist/hooks/use-frontend-tool.d.ts.map +1 -1
  4. package/dist/hooks/zod-parameters.d.ts +14 -0
  5. package/dist/hooks/zod-parameters.d.ts.map +1 -0
  6. package/dist/index.cjs +1 -1
  7. package/dist/index.cjs.map +1 -1
  8. package/dist/index.mjs +392 -290
  9. package/dist/index.mjs.map +1 -1
  10. package/dist/use-render-activity-message-B59A4R48.js +18097 -0
  11. package/dist/use-render-activity-message-B59A4R48.js.map +1 -0
  12. package/dist/use-render-activity-message-u0OVXjd8.cjs +92 -0
  13. package/dist/use-render-activity-message-u0OVXjd8.cjs.map +1 -0
  14. package/dist/v2/components/OpenGenerativeUIRenderer.d.ts +13 -45
  15. package/dist/v2/components/OpenGenerativeUIRenderer.d.ts.map +1 -1
  16. package/dist/v2/components/a2ui/A2UICatalogContext.d.ts +1 -1
  17. package/dist/v2/components/a2ui/A2UICatalogContext.d.ts.map +1 -1
  18. package/dist/v2/components/a2ui/A2UIRecoveryStates.d.ts +13 -5
  19. package/dist/v2/components/a2ui/A2UIRecoveryStates.d.ts.map +1 -1
  20. package/dist/v2/components/a2ui.d.ts +3 -7
  21. package/dist/v2/components/a2ui.d.ts.map +1 -1
  22. package/dist/v2/index.cjs +1 -1
  23. package/dist/v2/index.mjs +173 -173
  24. package/dist/v2/lib/processPartialHtml.d.ts +1 -2
  25. package/dist/v2/lib/processPartialHtml.d.ts.map +1 -1
  26. package/dist/v2/providers/CopilotKitProvider.vue.d.ts +1 -1
  27. package/dist/v2/providers/CopilotKitProvider.vue.d.ts.map +1 -1
  28. package/package.json +10 -10
  29. package/src/hooks/__tests__/zod-parameters.test.ts +520 -0
  30. package/src/hooks/use-copilot-action.ts +2 -1
  31. package/src/hooks/use-frontend-tool.ts +3 -6
  32. package/src/hooks/zod-parameters.ts +162 -0
  33. package/src/v2/components/A2UIMessageRenderer.ts +3 -3
  34. package/src/v2/components/OpenGenerativeUIRenderer.ts +51 -373
  35. package/src/v2/components/__tests__/A2UICatalogContext.test.ts +1 -1
  36. package/src/v2/components/__tests__/OpenGenerativeUIRenderer.test.ts +55 -6
  37. package/src/v2/components/a2ui/A2UIBuiltInToolCallRenderer.ts +1 -1
  38. package/src/v2/components/a2ui/A2UICatalogContext.ts +10 -102
  39. package/src/v2/components/a2ui/A2UIRecoveryStates.ts +1 -1
  40. package/src/v2/components/a2ui.ts +1 -1
  41. package/src/v2/components/chat/__tests__/CopilotChatActivityRendering.e2e.test.ts +26 -9
  42. package/src/v2/hooks/__tests__/zod-regression.test.ts +1 -1
  43. package/src/v2/lib/processPartialHtml.ts +6 -21
  44. package/src/v2/providers/CopilotKitProvider.vue +26 -34
  45. package/src/v2/providers/__tests__/CopilotKitProvider.a2ui.test.ts +1 -1
  46. package/vite.config.ts +2 -2
  47. package/dist/use-render-activity-message-C5LCG9a9.js +0 -16451
  48. package/dist/use-render-activity-message-C5LCG9a9.js.map +0 -1
  49. package/dist/use-render-activity-message-CPzguixR.cjs +0 -74
  50. package/dist/use-render-activity-message-CPzguixR.cjs.map +0 -1
  51. package/src/v2/lib/__tests__/processPartialHtml.test.ts +0 -84
package/dist/index.mjs CHANGED
@@ -1,161 +1,263 @@
1
1
  export * from "@copilotkit/core";
2
- import { CopilotChatDefaultLabels as H } from "@copilotkit/core";
2
+ import { CopilotChatDefaultLabels as G, ɵextractCompleteStyles as N, ɵprocessPartialHtml as W } from "@copilotkit/core";
3
3
  export * from "@ag-ui/client";
4
- import { PROTOCOL_VERSION as J } from "@ag-ui/client";
5
- import { bM as C, bF as f, bE as b, bC as R, J as I } from "./use-render-activity-message-C5LCG9a9.js";
6
- import { A as N, _ as j, a as q, b as Q, c as Y, d as Z, e as X, f as ee, g as ae, h as te, i as se, i as ne, i as oe, B as ie, j as re, C as le, k as ce, l as me, m as ue, n as pe, o as he, p as Se, q as de, r as Ce, s as be, t as ge, u as ve, v as fe, w as Re, x as Ie, y as Ae, z as Ee, D as ye, E as Me, F as Te, G as Oe, H as Pe, I as xe, K as we, L as Ue, M as Fe, N as Ve, O as De, P as Ke, Q as _e, R as ke, S as Be, T as ze, U as Le, V as He, V as Ge, V as We, W as Je, W as $e, X as Ne, Y as je, Z as qe, $ as Qe, a0 as Ye, a1 as Ze, a2 as Xe, a3 as ea, a3 as aa, a3 as ta, T as sa, C as na, a4 as oa, a5 as ia, a6 as ra, a7 as la, a8 as ca, a9 as ma, aa as ua, ab as pa, ac as ha, ad as Sa, ae as da, af as Ca, ag as ba, ah as ga, ai as va, aj as fa, ak as Ra, al as Ia, am as Aa, an as Ea, ao as ya, ap as Ma, aq as Ta, ar as Oa, a4 as Pa, as as xa, at as wa, au as Ua, av as Fa, aw as Va, ax as Da, ay as Ka, az as _a, aA as ka, aB as Ba, aC as za, aD as La, aE as Ha, aF as Ga, aG as Wa, aH as Ja, aI as $a, aJ as Na, aK as ja, aL as qa, aM as Qa, aN as Ya, aO as Za, aP as Xa, aQ as et, aR as at, aS as tt, aT as st, aU as nt, aV as ot, aW as it, aX as rt, aY as lt, aZ as ct, a_ as mt, a$ as ut, b0 as pt, b1 as ht, b2 as St, b3 as dt, b4 as Ct, b5 as bt, b6 as gt, b7 as vt, b8 as ft, b9 as Rt, b4 as It, ba as At, bb as Et, bc as yt, bd as Mt, be as Tt, bf as Ot, bg as Pt, bh as xt, bi as wt, bj as Ut, bk as Ft, a5 as Vt, bl as Dt, bm as Kt, bn as _t, bn as kt, bn as Bt, bo as zt, bp as Lt, bq as Ht, br as Gt, bs as Wt, bt as Jt, bu as $t, bv as Nt, bw as jt, bx as qt, by as Qt, bz as Yt, bA as Zt, bB as Xt, bD as es, bG as as, bH as ts, bI as ss, bJ as ns, bK as os, bL as is, bN as rs, bO as ls, bP as cs, bQ as ms } from "./use-render-activity-message-C5LCG9a9.js";
7
- import { ref as A, watch as E, defineComponent as y, openBlock as M, createBlock as T, normalizeProps as O, guardReactiveProps as P, withCtx as x, renderSlot as w } from "vue";
8
- import { MCPAppsActivityContentSchema as ps, MCPAppsActivityType as hs, ɵrunMcpFollowUp as Ss } from "@copilotkit/mcp-apps-renderer/activity";
9
- import { getZodParameters as g, parseJson as v } from "@copilotkit/shared";
10
- import { createLicenseContextValue as Cs } from "@copilotkit/shared";
11
- function p(a) {
12
- return typeof a != "function" ? a : ((t) => {
13
- const s = typeof t.result == "string" ? { ...t, result: v(t.result, t.result) } : t;
14
- return a(s);
4
+ import { PROTOCOL_VERSION as Y } from "@ag-ui/client";
5
+ import { bK as g, bD as A, bC as f, bA as I, J as R } from "./use-render-activity-message-B59A4R48.js";
6
+ import { A as q, _ as j, a as ee, b as ae, c as te, d as ne, e as se, f as oe, g as re, h as ie, i as le, i as ce, i as pe, B as ue, j as me, C as de, k as he, l as Se, m as Ce, n as be, o as ge, p as fe, q as ve, r as ye, s as Ae, t as Ie, u as Re, v as Ee, w as Te, x as Me, y as Oe, z as Pe, D as xe, E as we, F as Ue, G as ke, H as Fe, I as Ve, K as Ke, L as De, M as _e, N as ze, O as Be, P as $e, Q as Le, R as He, S as Je, T as Ge, U as Ne, V as We, V as Ze, V as Qe, W as Ye, W as Xe, X as qe, Y as je, Z as ea, $ as aa, a0 as ta, a1 as na, a2 as sa, a3 as oa, a3 as ra, a3 as ia, T as la, C as ca, a4 as pa, a5 as ua, a6 as ma, a7 as da, a8 as ha, a9 as Sa, aa as Ca, ab as ba, ac as ga, ad as fa, ae as va, af as ya, ag as Aa, ah as Ia, ai as Ra, aj as Ea, ak as Ta, al as Ma, am as Oa, an as Pa, ao as xa, ap as wa, aq as Ua, ar as ka, a4 as Fa, as as Va, at as Ka, au as Da, av as _a, aw as za, ax as Ba, ay as $a, az as La, aA as Ha, aB as Ja, aC as Ga, aD as Na, aE as Wa, aF as Za, aG as Qa, aH as Ya, aI as Xa, aJ as qa, aK as ja, aL as et, aM as at, aN as tt, aO as nt, aP as st, aQ as ot, aR as rt, aS as it, aT as lt, aU as ct, aV as pt, aW as ut, aX as mt, aY as dt, aZ as ht, a_ as St, a$ as Ct, b0 as bt, b1 as gt, b2 as ft, b3 as vt, b4 as yt, b5 as At, b6 as It, b7 as Rt, b8 as Et, b9 as Tt, b4 as Mt, ba as Ot, bb as Pt, bc as xt, bd as wt, be as Ut, bf as kt, bg as Ft, bh as Vt, bi as Kt, bj as Dt, bk as _t, a5 as zt, bl as Bt, bm as $t, bn as Lt, bn as Ht, bn as Jt, bo as Gt, bp as Nt, bq as Wt, br as Zt, bs as Qt, bt as Yt, bu as Xt, bv as qt, bw as jt, bx as en, by as an, bz as tn, bB as nn, bE as sn, bF as on, bG as rn, bH as ln, bI as cn, bJ as pn, bL as un, bM as mn, bN as dn, bO as hn } from "./use-render-activity-message-B59A4R48.js";
7
+ import { ref as E, watch as T, defineComponent as M, openBlock as O, createBlock as P, normalizeProps as x, guardReactiveProps as w, withCtx as U, renderSlot as k } from "vue";
8
+ import { MCPAppsActivityContentSchema as Cn, MCPAppsActivityType as bn, ɵrunMcpFollowUp as gn } from "@copilotkit/mcp-apps-renderer/activity";
9
+ import { actionParametersToJsonSchema as F, parseJson as v } from "@copilotkit/shared";
10
+ import { createLicenseContextValue as vn } from "@copilotkit/shared";
11
+ import * as l from "zod";
12
+ function h(e, t, o, a) {
13
+ if (e.$ref && o) {
14
+ const n = e.$ref.replace(
15
+ /^#\/\$defs\/|^#\/definitions\//,
16
+ ""
17
+ ), s = a ?? /* @__PURE__ */ new Set();
18
+ if (s.has(n)) {
19
+ console.warn(
20
+ `[CopilotKit] Circular $ref detected for "${n}" — falling back to z.any()`
21
+ );
22
+ let r = l.any();
23
+ return e.description && (r = r.describe(e.description)), t ? r : r.optional();
24
+ }
25
+ const i = o[n];
26
+ if (i) {
27
+ const r = new Set(s);
28
+ return r.add(n), h(
29
+ i,
30
+ t,
31
+ o,
32
+ r
33
+ );
34
+ }
35
+ }
36
+ const m = o ?? e.$defs ?? e.definitions;
37
+ if (Array.isArray(e.type)) {
38
+ const n = e.type, s = n.includes("null"), i = n.filter((p) => p !== "null"), r = i.length > 0 ? i[0] : "string", S = h(
39
+ { ...e, type: r },
40
+ !0,
41
+ m,
42
+ a
43
+ );
44
+ let d = s ? l.union([S, l.null()]) : S;
45
+ return e.description && (d = d.describe(e.description)), t ? d : d.optional();
46
+ }
47
+ const c = e.anyOf ?? e.oneOf;
48
+ if (Array.isArray(c) && c.length > 0) {
49
+ if (c.length === 1)
50
+ return h(
51
+ c[0],
52
+ t,
53
+ m,
54
+ a
55
+ );
56
+ const n = c.map(
57
+ (i) => h(i, !0, m, a)
58
+ );
59
+ let s = l.union(
60
+ n
61
+ );
62
+ return e.description && (s = s.describe(e.description)), t ? s : s.optional();
63
+ }
64
+ if (e.type === "object") {
65
+ const n = {};
66
+ if (!e.properties || !Object.keys(e.properties).length)
67
+ return t ? l.object(n) : l.object(n).optional();
68
+ for (const [i, r] of Object.entries(e.properties))
69
+ n[i] = h(
70
+ r,
71
+ e.required ? e.required.includes(i) : !1,
72
+ m,
73
+ a
74
+ );
75
+ let s = l.object(n).describe(e.description);
76
+ return t ? s : s.optional();
77
+ } else if (e.type === "string") {
78
+ if (e.enum && e.enum.length > 0) {
79
+ let s = l.enum(e.enum).describe(e.description);
80
+ return t ? s : s.optional();
81
+ }
82
+ let n = l.string().describe(e.description);
83
+ return t ? n : n.optional();
84
+ } else if (e.type === "number" || e.type === "integer") {
85
+ let n = l.number().describe(e.description);
86
+ return t ? n : n.optional();
87
+ } else if (e.type === "boolean") {
88
+ let n = l.boolean().describe(e.description);
89
+ return t ? n : n.optional();
90
+ } else if (e.type === "array") {
91
+ let n = h(
92
+ e.items,
93
+ !0,
94
+ m,
95
+ a
96
+ ), s = l.array(n).describe(e.description);
97
+ return t ? s : s.optional();
98
+ } else if (e.type === "null") {
99
+ let n = l.null().describe(e.description);
100
+ return t ? n : n.optional();
101
+ }
102
+ console.warn(
103
+ `[CopilotKit] Unsupported JSON schema type "${e.type ?? "unknown"}" — falling back to z.any()`
104
+ );
105
+ let u = l.any();
106
+ return e.description && (u = u.describe(e.description)), t ? u : u.optional();
107
+ }
108
+ function y(e) {
109
+ if (!e) return l.object({});
110
+ const t = F(e);
111
+ return h(t, !0);
112
+ }
113
+ function C(e) {
114
+ return typeof e != "function" ? e : ((t) => {
115
+ const o = typeof t.result == "string" ? { ...t, result: v(t.result, t.result) } : t;
116
+ return e(o);
15
117
  });
16
118
  }
17
- function D(a, t) {
18
- const s = "parameters" in a ? g(a.parameters) : void 0;
19
- if (a.name === "*") {
20
- C(
119
+ function _(e, t) {
120
+ const o = "parameters" in e ? y(e.parameters) : void 0;
121
+ if (e.name === "*") {
122
+ g(
21
123
  {
22
124
  name: "*",
23
- render: p(
24
- a.render
125
+ render: C(
126
+ e.render
25
127
  ),
26
- ..."agentId" in a ? { agentId: a.agentId } : {}
128
+ ..."agentId" in e ? { agentId: e.agentId } : {}
27
129
  },
28
130
  t
29
131
  );
30
132
  return;
31
133
  }
32
- const e = a;
33
- if ("renderAndWaitForResponse" in e || "renderAndWait" in e) {
34
- const i = e.render ?? e.renderAndWaitForResponse ?? e.renderAndWait;
35
- if (!i) {
134
+ const a = e;
135
+ if ("renderAndWaitForResponse" in a || "renderAndWait" in a) {
136
+ const u = a.render ?? a.renderAndWaitForResponse ?? a.renderAndWait;
137
+ if (!u) {
36
138
  console.warn(
37
- `[CopilotKit] useCopilotAction: HITL action '${e.name}' has no render function. Skipping.`
139
+ `[CopilotKit] useCopilotAction: HITL action '${a.name}' has no render function. Skipping.`
38
140
  );
39
141
  return;
40
142
  }
41
- f(
143
+ A(
42
144
  {
43
- name: e.name,
44
- description: e.description,
45
- parameters: s,
46
- render: p(i),
47
- agentId: e.agentId
145
+ name: a.name,
146
+ description: a.description,
147
+ parameters: o,
148
+ render: C(u),
149
+ agentId: a.agentId
48
150
  },
49
151
  t
50
152
  );
51
153
  return;
52
154
  }
53
- if (e.available === "frontend" || e.available === "disabled") {
54
- e.render && s ? C(
155
+ if (a.available === "frontend" || a.available === "disabled") {
156
+ a.render && o ? g(
55
157
  {
56
- name: e.name,
57
- parameters: s,
58
- render: p(
59
- e.render
158
+ name: a.name,
159
+ parameters: o,
160
+ render: C(
161
+ a.render
60
162
  ),
61
- agentId: e.agentId
163
+ agentId: a.agentId
62
164
  },
63
165
  t
64
166
  ) : console.warn(
65
- `[CopilotKit] useCopilotAction: action '${e.name}' with available="${e.available}" requires both 'render' and 'parameters'. Skipping registration.`
167
+ `[CopilotKit] useCopilotAction: action '${a.name}' with available="${a.available}" requires both 'render' and 'parameters'. Skipping registration.`
66
168
  );
67
169
  return;
68
170
  }
69
- const m = e.handler ? (i) => Promise.resolve(e.handler(i)) : void 0;
70
- let o;
71
- e.available === "remote" ? o = !1 : e.available !== void 0 && (o = !0), b(
171
+ const m = a.handler ? (u) => Promise.resolve(a.handler(u)) : void 0;
172
+ let c;
173
+ a.available === "remote" ? c = !1 : a.available !== void 0 && (c = !0), f(
72
174
  {
73
- name: e.name,
74
- description: e.description,
75
- parameters: s,
175
+ name: a.name,
176
+ description: a.description,
177
+ parameters: o,
76
178
  handler: m,
77
- followUp: e.followUp,
78
- render: p(e.render),
79
- available: o,
80
- agentId: e.agentId,
179
+ followUp: a.followUp,
180
+ render: C(a.render),
181
+ available: c,
182
+ agentId: a.agentId,
81
183
  // Read webmcp at watch time: the action object may expose it as a getter
82
184
  // over reactive state, and capturing the initial value here would
83
185
  // re-register a stale configuration.
84
186
  get webmcp() {
85
- return e.webmcp;
187
+ return a.webmcp;
86
188
  }
87
189
  },
88
190
  t
89
191
  );
90
192
  }
91
- function K(a, t) {
193
+ function z(e, t) {
92
194
  const {
93
- name: s,
94
- description: e,
195
+ name: o,
196
+ description: a,
95
197
  parameters: m,
96
- handler: o,
97
- followUp: i,
98
- available: u,
99
- render: r,
100
- agentId: l
101
- } = a, c = g(m);
102
- b(
198
+ handler: c,
199
+ followUp: u,
200
+ available: n,
201
+ render: s,
202
+ agentId: i
203
+ } = e, r = y(m);
204
+ f(
103
205
  {
104
- name: s,
105
- description: e,
106
- parameters: c,
107
- handler: o ? (n) => Promise.resolve(o(n)) : void 0,
108
- followUp: i,
109
- render: typeof r == "function" ? (n) => {
110
- const S = typeof n.result == "string" ? { ...n, result: v(n.result, n.result) } : n;
111
- return r(S);
112
- } : r,
113
- available: u === void 0 ? void 0 : u !== "disabled",
114
- agentId: l,
206
+ name: o,
207
+ description: a,
208
+ parameters: r,
209
+ handler: c ? (p) => Promise.resolve(c(p)) : void 0,
210
+ followUp: u,
211
+ render: typeof s == "function" ? (p) => {
212
+ const b = typeof p.result == "string" ? { ...p, result: v(p.result, p.result) } : p;
213
+ return s(b);
214
+ } : s,
215
+ available: n === void 0 ? void 0 : n !== "disabled",
216
+ agentId: i,
115
217
  // Read webmcp at watch time: the v1 args may expose it as a getter over
116
218
  // reactive state, and capturing the initial value here would re-register
117
219
  // a stale configuration.
118
220
  get webmcp() {
119
- return a.webmcp;
221
+ return e.webmcp;
120
222
  }
121
223
  },
122
224
  t
123
225
  );
124
226
  }
125
- function _(a, t) {
126
- const { copilotkit: s } = R(), e = A(void 0);
127
- return E(
227
+ function B(e, t) {
228
+ const { copilotkit: o } = I(), a = E(void 0);
229
+ return T(
128
230
  [
129
- () => a.description,
130
- () => a.value,
131
- () => a.convert,
132
- () => a.available,
231
+ () => e.description,
232
+ () => e.value,
233
+ () => e.convert,
234
+ () => e.available,
133
235
  ...t ?? []
134
236
  ],
135
- (o, i, u) => {
136
- const r = s.value;
137
- if (!r) return;
138
- const { description: l, value: c, convert: h, available: d } = a;
139
- let n;
237
+ (c, u, n) => {
238
+ const s = o.value;
239
+ if (!s) return;
240
+ const { description: i, value: r, convert: S, available: d } = e;
241
+ let p;
140
242
  try {
141
- n = h ? h(l, c) : JSON.stringify(c);
142
- } catch (S) {
243
+ p = S ? S(i, r) : JSON.stringify(r);
244
+ } catch (b) {
143
245
  console.warn(
144
- `[CopilotKit] useCopilotReadable: failed to serialize value for "${l}":`,
145
- S
146
- ), n = String(c);
246
+ `[CopilotKit] useCopilotReadable: failed to serialize value for "${i}":`,
247
+ b
248
+ ), p = String(r);
147
249
  }
148
- d !== "disabled" && (e.value = r.addContext({
149
- description: l,
150
- value: n
151
- }), u(() => {
152
- e.value && r.removeContext(e.value);
250
+ d !== "disabled" && (a.value = s.addContext({
251
+ description: i,
252
+ value: p
253
+ }), n(() => {
254
+ a.value && s.removeContext(a.value);
153
255
  }));
154
256
  },
155
257
  { immediate: !0 }
156
- ), e;
258
+ ), a;
157
259
  }
158
- const k = /* @__PURE__ */ y({
260
+ const $ = /* @__PURE__ */ M({
159
261
  __name: "CopilotKit",
160
262
  props: {
161
263
  publicApiKey: {},
@@ -186,210 +288,210 @@ const k = /* @__PURE__ */ y({
186
288
  debug: { type: [Boolean, Object] },
187
289
  learning: { type: [Boolean, Object] }
188
290
  },
189
- setup(a) {
190
- const t = a;
191
- return (s, e) => (M(), T(I, O(P(t)), {
192
- default: x(() => [
193
- w(s.$slots, "default")
291
+ setup(e) {
292
+ const t = e;
293
+ return (o, a) => (O(), P(R, x(w(t)), {
294
+ default: U(() => [
295
+ k(o.$slots, "default")
194
296
  ]),
195
297
  _: 3
196
298
  }, 16));
197
299
  }
198
300
  });
199
301
  export {
200
- N as A2UIActivityContentSchema,
302
+ q as A2UIActivityContentSchema,
201
303
  j as A2UISurfaceActivityRenderer,
202
- q as A2UISurfaceActivityType,
203
- Q as ActivityDeltaEventSchema,
204
- Y as ActivityMessageSchema,
205
- Z as ActivitySnapshotEventSchema,
206
- X as AddOperationSchema,
207
- ee as AgentCapabilitiesSchema,
208
- ae as AssistantMessageSchema,
209
- te as AttributableSchema,
210
- se as AudioInputContentSchema,
211
- ne as AudioInputPartSchema,
212
- oe as AudioPartSchema,
213
- ie as BaseEventSchema,
214
- re as BaseMessageSchema,
215
- le as ContentPartSchema,
216
- ce as ContextSchema,
217
- me as CopilotChat,
218
- ue as CopilotChatAssistantMessage,
219
- pe as CopilotChatAttachmentQueue,
220
- he as CopilotChatAttachmentRenderer,
221
- Se as CopilotChatAudioRecorder,
222
- de as CopilotChatConfigurationProvider,
223
- H as CopilotChatDefaultLabels,
224
- Ce as CopilotChatInput,
225
- be as CopilotChatMessageView,
226
- ge as CopilotChatReasoningMessage,
227
- ve as CopilotChatSuggestionPill,
228
- fe as CopilotChatSuggestionView,
229
- Re as CopilotChatToggleButton,
230
- Ie as CopilotChatToggleButtonCloseIcon,
231
- Ae as CopilotChatToggleButtonOpenIcon,
232
- Ee as CopilotChatToolCallGroup,
233
- ye as CopilotChatToolCallsView,
234
- Me as CopilotChatUserMessage,
235
- Te as CopilotChatView,
236
- Oe as CopilotChatWorkSummary,
237
- k as CopilotKit,
238
- Pe as CopilotKitCoreVue,
239
- xe as CopilotKitInspector,
240
- I as CopilotKitProvider,
241
- we as CopilotKitStyles,
242
- Ue as CopilotModalHeader,
243
- Fe as CopilotPopup,
244
- Ve as CopilotPopupView,
245
- De as CopilotSidebar,
246
- Ke as CopilotSidebarView,
247
- _e as CopilotThreadsDrawer,
248
- ke as CopyOperationSchema,
249
- Be as CustomEventSchema,
250
- ze as DataSourceSchema,
251
- Le as DeveloperMessageSchema,
252
- He as DocumentInputContentSchema,
253
- Ge as DocumentInputPartSchema,
254
- We as DocumentPartSchema,
255
- Je as EventSchema,
256
- $e as EventSchemas,
257
- Ne as EventTypeSchema,
304
+ ee as A2UISurfaceActivityType,
305
+ ae as ActivityDeltaEventSchema,
306
+ te as ActivityMessageSchema,
307
+ ne as ActivitySnapshotEventSchema,
308
+ se as AddOperationSchema,
309
+ oe as AgentCapabilitiesSchema,
310
+ re as AssistantMessageSchema,
311
+ ie as AttributableSchema,
312
+ le as AudioInputContentSchema,
313
+ ce as AudioInputPartSchema,
314
+ pe as AudioPartSchema,
315
+ ue as BaseEventSchema,
316
+ me as BaseMessageSchema,
317
+ de as ContentPartSchema,
318
+ he as ContextSchema,
319
+ Se as CopilotChat,
320
+ Ce as CopilotChatAssistantMessage,
321
+ be as CopilotChatAttachmentQueue,
322
+ ge as CopilotChatAttachmentRenderer,
323
+ fe as CopilotChatAudioRecorder,
324
+ ve as CopilotChatConfigurationProvider,
325
+ G as CopilotChatDefaultLabels,
326
+ ye as CopilotChatInput,
327
+ Ae as CopilotChatMessageView,
328
+ Ie as CopilotChatReasoningMessage,
329
+ Re as CopilotChatSuggestionPill,
330
+ Ee as CopilotChatSuggestionView,
331
+ Te as CopilotChatToggleButton,
332
+ Me as CopilotChatToggleButtonCloseIcon,
333
+ Oe as CopilotChatToggleButtonOpenIcon,
334
+ Pe as CopilotChatToolCallGroup,
335
+ xe as CopilotChatToolCallsView,
336
+ we as CopilotChatUserMessage,
337
+ Ue as CopilotChatView,
338
+ ke as CopilotChatWorkSummary,
339
+ $ as CopilotKit,
340
+ Fe as CopilotKitCoreVue,
341
+ Ve as CopilotKitInspector,
342
+ R as CopilotKitProvider,
343
+ Ke as CopilotKitStyles,
344
+ De as CopilotModalHeader,
345
+ _e as CopilotPopup,
346
+ ze as CopilotPopupView,
347
+ Be as CopilotSidebar,
348
+ $e as CopilotSidebarView,
349
+ Le as CopilotThreadsDrawer,
350
+ He as CopyOperationSchema,
351
+ Je as CustomEventSchema,
352
+ Ge as DataSourceSchema,
353
+ Ne as DeveloperMessageSchema,
354
+ We as DocumentInputContentSchema,
355
+ Ze as DocumentInputPartSchema,
356
+ Qe as DocumentPartSchema,
357
+ Ye as EventSchema,
358
+ Xe as EventSchemas,
359
+ qe as EventTypeSchema,
258
360
  je as ExecutionCapabilitiesSchema,
259
- qe as FileSourceSchema,
260
- Qe as FunctionCallSchema,
261
- Ye as GenerateSandboxedUiArgsSchema,
262
- Ze as HumanInTheLoopCapabilitiesSchema,
263
- Xe as IdentityCapabilitiesSchema,
264
- ea as ImageInputContentSchema,
265
- aa as ImageInputPartSchema,
266
- ta as ImagePartSchema,
267
- sa as InputContentDataSourceSchema,
268
- na as InputContentSchema,
269
- oa as InputContentSourceSchema,
270
- ia as InputContentUrlSourceSchema,
271
- ra as InterruptSchema,
272
- la as JsonPatchOperationSchema,
273
- ca as JsonPatchSchema,
274
- ma as JsonPointerSchema,
275
- ua as LicenseContextKey,
276
- pa as MARKDOWN_RENDERER_KEY,
277
- ps as MCPAppsActivityContentSchema,
278
- ha as MCPAppsActivityRenderer,
279
- hs as MCPAppsActivityType,
280
- Sa as MessageSchema,
281
- da as MessagesSnapshotEventSchema,
282
- Ca as MetadataSchema,
283
- ba as MoveOperationSchema,
284
- ga as MultiAgentCapabilitiesSchema,
285
- va as MultimodalCapabilitiesSchema,
286
- fa as MultimodalInputCapabilitiesSchema,
287
- Ra as MultimodalOutputCapabilitiesSchema,
288
- Ia as OpenGenerativeUIActivityRenderer,
289
- Aa as OpenGenerativeUIActivityType,
290
- Ea as OpenGenerativeUIContentSchema,
291
- ya as OpenGenerativeUIRenderer,
292
- Ma as OpenGenerativeUIToolRenderer,
293
- Ta as OptionalMetadataSchema,
294
- Oa as OutputCapabilitiesSchema,
295
- J as PROTOCOL_VERSION,
296
- Pa as PartSourceSchema,
297
- xa as RawEventSchema,
298
- wa as ReasoningCapabilitiesSchema,
299
- Ua as ReasoningEncryptedValueEventSchema,
300
- Fa as ReasoningEncryptedValueSubtypeSchema,
301
- Va as ReasoningEndEventSchema,
302
- Da as ReasoningMessageChunkEventSchema,
303
- Ka as ReasoningMessageContentEventSchema,
304
- _a as ReasoningMessageEndEventSchema,
305
- ka as ReasoningMessageSchema,
306
- Ba as ReasoningMessageStartEventSchema,
307
- za as ReasoningStartEventSchema,
308
- La as RemoveOperationSchema,
309
- Ha as ReplaceOperationSchema,
310
- Ga as ResumeEntrySchema,
311
- Wa as RoleSchema,
312
- Ja as RunAgentInputSchema,
313
- $a as RunErrorEventSchema,
314
- Na as RunFinishedCancelledOutcomeSchema,
361
+ ea as FileSourceSchema,
362
+ aa as FunctionCallSchema,
363
+ ta as GenerateSandboxedUiArgsSchema,
364
+ na as HumanInTheLoopCapabilitiesSchema,
365
+ sa as IdentityCapabilitiesSchema,
366
+ oa as ImageInputContentSchema,
367
+ ra as ImageInputPartSchema,
368
+ ia as ImagePartSchema,
369
+ la as InputContentDataSourceSchema,
370
+ ca as InputContentSchema,
371
+ pa as InputContentSourceSchema,
372
+ ua as InputContentUrlSourceSchema,
373
+ ma as InterruptSchema,
374
+ da as JsonPatchOperationSchema,
375
+ ha as JsonPatchSchema,
376
+ Sa as JsonPointerSchema,
377
+ Ca as LicenseContextKey,
378
+ ba as MARKDOWN_RENDERER_KEY,
379
+ Cn as MCPAppsActivityContentSchema,
380
+ ga as MCPAppsActivityRenderer,
381
+ bn as MCPAppsActivityType,
382
+ fa as MessageSchema,
383
+ va as MessagesSnapshotEventSchema,
384
+ ya as MetadataSchema,
385
+ Aa as MoveOperationSchema,
386
+ Ia as MultiAgentCapabilitiesSchema,
387
+ Ra as MultimodalCapabilitiesSchema,
388
+ Ea as MultimodalInputCapabilitiesSchema,
389
+ Ta as MultimodalOutputCapabilitiesSchema,
390
+ Ma as OpenGenerativeUIActivityRenderer,
391
+ Oa as OpenGenerativeUIActivityType,
392
+ Pa as OpenGenerativeUIContentSchema,
393
+ xa as OpenGenerativeUIRenderer,
394
+ wa as OpenGenerativeUIToolRenderer,
395
+ Ua as OptionalMetadataSchema,
396
+ ka as OutputCapabilitiesSchema,
397
+ Y as PROTOCOL_VERSION,
398
+ Fa as PartSourceSchema,
399
+ Va as RawEventSchema,
400
+ Ka as ReasoningCapabilitiesSchema,
401
+ Da as ReasoningEncryptedValueEventSchema,
402
+ _a as ReasoningEncryptedValueSubtypeSchema,
403
+ za as ReasoningEndEventSchema,
404
+ Ba as ReasoningMessageChunkEventSchema,
405
+ $a as ReasoningMessageContentEventSchema,
406
+ La as ReasoningMessageEndEventSchema,
407
+ Ha as ReasoningMessageSchema,
408
+ Ja as ReasoningMessageStartEventSchema,
409
+ Ga as ReasoningStartEventSchema,
410
+ Na as RemoveOperationSchema,
411
+ Wa as ReplaceOperationSchema,
412
+ Za as ResumeEntrySchema,
413
+ Qa as RoleSchema,
414
+ Ya as RunAgentInputSchema,
415
+ Xa as RunErrorEventSchema,
416
+ qa as RunFinishedCancelledOutcomeSchema,
315
417
  ja as RunFinishedEventSchema,
316
- qa as RunFinishedInterruptOutcomeSchema,
317
- Qa as RunFinishedOutcomeSchema,
318
- Ya as RunFinishedSuccessOutcomeSchema,
319
- Za as RunStartedEventSchema,
320
- Xa as StateCapabilitiesSchema,
321
- et as StateDeltaEventSchema,
322
- at as StateSchema,
323
- tt as StateSnapshotEventSchema,
324
- st as StepFinishedEventSchema,
325
- nt as StepStartedEventSchema,
326
- ot as StreamingMarkdownDefault,
327
- it as SubagentErrorEventSchema,
328
- rt as SubagentFinishedEventSchema,
329
- lt as SubagentFinishedOutcomeSchema,
330
- ct as SubagentFinishedSuccessOutcomeSchema,
331
- mt as SubagentFinishedSuspendedOutcomeSchema,
332
- ut as SubagentInfoSchema,
333
- pt as SubagentRunIdSchema,
334
- ht as SubagentStartedEventSchema,
335
- St as SystemMessageSchema,
336
- dt as TestOperationSchema,
337
- Ct as TextInputContentSchema,
338
- bt as TextMessageChunkEventSchema,
339
- gt as TextMessageContentEventSchema,
340
- vt as TextMessageEndEventSchema,
341
- ft as TextMessageRoleSchema,
342
- Rt as TextMessageStartEventSchema,
343
- It as TextPartSchema,
344
- At as TokenUsageSchema,
345
- Et as ToolCallArgsEventSchema,
346
- yt as ToolCallChunkEventSchema,
347
- Mt as ToolCallEndEventSchema,
348
- Tt as ToolCallResultEventSchema,
349
- Ot as ToolCallSchema,
350
- Pt as ToolCallStartEventSchema,
351
- xt as ToolMessageSchema,
352
- wt as ToolSchema,
353
- Ut as ToolsCapabilitiesSchema,
354
- Ft as TransportCapabilitiesSchema,
355
- Vt as UrlSourceSchema,
356
- Dt as UseAgentUpdate,
357
- Kt as UserMessageSchema,
358
- _t as VideoInputContentSchema,
359
- kt as VideoInputPartSchema,
360
- Bt as VideoPartSchema,
361
- zt as createA2UIMessageRenderer,
362
- Lt as createDefaultLicenseRef,
363
- Cs as createLicenseContextValue,
364
- Ht as defineToolCallRenderer,
365
- Gt as extractCompleteStyles,
366
- Wt as getOperationSurfaceId,
367
- Jt as isVueComponentRenderer,
368
- $t as processPartialHtml,
369
- Nt as useAgent,
370
- jt as useAgentContext,
418
+ et as RunFinishedInterruptOutcomeSchema,
419
+ at as RunFinishedOutcomeSchema,
420
+ tt as RunFinishedSuccessOutcomeSchema,
421
+ nt as RunStartedEventSchema,
422
+ st as StateCapabilitiesSchema,
423
+ ot as StateDeltaEventSchema,
424
+ rt as StateSchema,
425
+ it as StateSnapshotEventSchema,
426
+ lt as StepFinishedEventSchema,
427
+ ct as StepStartedEventSchema,
428
+ pt as StreamingMarkdownDefault,
429
+ ut as SubagentErrorEventSchema,
430
+ mt as SubagentFinishedEventSchema,
431
+ dt as SubagentFinishedOutcomeSchema,
432
+ ht as SubagentFinishedSuccessOutcomeSchema,
433
+ St as SubagentFinishedSuspendedOutcomeSchema,
434
+ Ct as SubagentInfoSchema,
435
+ bt as SubagentRunIdSchema,
436
+ gt as SubagentStartedEventSchema,
437
+ ft as SystemMessageSchema,
438
+ vt as TestOperationSchema,
439
+ yt as TextInputContentSchema,
440
+ At as TextMessageChunkEventSchema,
441
+ It as TextMessageContentEventSchema,
442
+ Rt as TextMessageEndEventSchema,
443
+ Et as TextMessageRoleSchema,
444
+ Tt as TextMessageStartEventSchema,
445
+ Mt as TextPartSchema,
446
+ Ot as TokenUsageSchema,
447
+ Pt as ToolCallArgsEventSchema,
448
+ xt as ToolCallChunkEventSchema,
449
+ wt as ToolCallEndEventSchema,
450
+ Ut as ToolCallResultEventSchema,
451
+ kt as ToolCallSchema,
452
+ Ft as ToolCallStartEventSchema,
453
+ Vt as ToolMessageSchema,
454
+ Kt as ToolSchema,
455
+ Dt as ToolsCapabilitiesSchema,
456
+ _t as TransportCapabilitiesSchema,
457
+ zt as UrlSourceSchema,
458
+ Bt as UseAgentUpdate,
459
+ $t as UserMessageSchema,
460
+ Lt as VideoInputContentSchema,
461
+ Ht as VideoInputPartSchema,
462
+ Jt as VideoPartSchema,
463
+ Gt as createA2UIMessageRenderer,
464
+ Nt as createDefaultLicenseRef,
465
+ vn as createLicenseContextValue,
466
+ Wt as defineToolCallRenderer,
467
+ N as extractCompleteStyles,
468
+ Zt as getOperationSurfaceId,
469
+ Qt as isVueComponentRenderer,
470
+ W as processPartialHtml,
471
+ Yt as useAgent,
472
+ Xt as useAgentContext,
371
473
  qt as useAttachments,
372
- Qt as useCapabilities,
373
- Yt as useComponent,
374
- Zt as useConfigureSuggestions,
375
- D as useCopilotAction,
376
- Xt as useCopilotChatConfiguration,
377
- R as useCopilotKit,
378
- _ as useCopilotReadable,
379
- es as useDefaultRenderTool,
380
- K as useFrontendTool,
381
- f as useHumanInTheLoop,
382
- as as useInterrupt,
383
- ts as useKeyboardHeight,
384
- ss as useLicenseContext,
385
- ns as useMarkdownRenderer,
386
- os as useRenderActivityMessage,
387
- is as useRenderCustomMessages,
388
- C as useRenderTool,
389
- rs as useSandboxFunctions,
390
- ls as useSuggestions,
391
- cs as useThreads,
392
- ms as vueBasicCatalog,
393
- Ss as ɵrunMcpFollowUp
474
+ jt as useCapabilities,
475
+ en as useComponent,
476
+ an as useConfigureSuggestions,
477
+ _ as useCopilotAction,
478
+ tn as useCopilotChatConfiguration,
479
+ I as useCopilotKit,
480
+ B as useCopilotReadable,
481
+ nn as useDefaultRenderTool,
482
+ z as useFrontendTool,
483
+ A as useHumanInTheLoop,
484
+ sn as useInterrupt,
485
+ on as useKeyboardHeight,
486
+ rn as useLicenseContext,
487
+ ln as useMarkdownRenderer,
488
+ cn as useRenderActivityMessage,
489
+ pn as useRenderCustomMessages,
490
+ g as useRenderTool,
491
+ un as useSandboxFunctions,
492
+ mn as useSuggestions,
493
+ dn as useThreads,
494
+ hn as vueBasicCatalog,
495
+ gn as ɵrunMcpFollowUp
394
496
  };
395
497
  //# sourceMappingURL=index.mjs.map