@ddrinnova/agentsgt-widget 0.1.14 → 0.1.16
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/widget.es.js +128 -128
- package/dist/widget.umd.js +8 -8
- package/package.json +1 -1
package/dist/widget.es.js
CHANGED
|
@@ -54,9 +54,9 @@ function hS() {
|
|
|
54
54
|
var te = Z.length;
|
|
55
55
|
Z.push(F);
|
|
56
56
|
e: for (; 0 < te; ) {
|
|
57
|
-
var
|
|
57
|
+
var ge = te - 1 >>> 1, z = Z[ge];
|
|
58
58
|
if (0 < o(z, F))
|
|
59
|
-
Z[
|
|
59
|
+
Z[ge] = F, Z[te] = z, te = ge;
|
|
60
60
|
else break e;
|
|
61
61
|
}
|
|
62
62
|
}
|
|
@@ -68,12 +68,12 @@ function hS() {
|
|
|
68
68
|
var F = Z[0], te = Z.pop();
|
|
69
69
|
if (te !== F) {
|
|
70
70
|
Z[0] = te;
|
|
71
|
-
e: for (var
|
|
72
|
-
var H = 2 * (
|
|
71
|
+
e: for (var ge = 0, z = Z.length, A = z >>> 1; ge < A; ) {
|
|
72
|
+
var H = 2 * (ge + 1) - 1, x = Z[H], ne = H + 1, be = Z[ne];
|
|
73
73
|
if (0 > o(x, te))
|
|
74
|
-
ne < z && 0 > o(be, x) ? (Z[
|
|
74
|
+
ne < z && 0 > o(be, x) ? (Z[ge] = be, Z[ne] = te, ge = ne) : (Z[ge] = x, Z[H] = te, ge = H);
|
|
75
75
|
else if (ne < z && 0 > o(be, te))
|
|
76
|
-
Z[
|
|
76
|
+
Z[ge] = be, Z[ne] = te, ge = ne;
|
|
77
77
|
else break e;
|
|
78
78
|
}
|
|
79
79
|
}
|
|
@@ -129,10 +129,10 @@ function hS() {
|
|
|
129
129
|
try {
|
|
130
130
|
t: {
|
|
131
131
|
for (K(Z), g = i(m); g !== null && !(g.expirationTime > Z && L()); ) {
|
|
132
|
-
var
|
|
133
|
-
if (typeof
|
|
132
|
+
var ge = g.callback;
|
|
133
|
+
if (typeof ge == "function") {
|
|
134
134
|
g.callback = null, _ = g.priorityLevel;
|
|
135
|
-
var z =
|
|
135
|
+
var z = ge(
|
|
136
136
|
g.expirationTime <= Z
|
|
137
137
|
);
|
|
138
138
|
if (Z = e.unstable_now(), typeof z == "function") {
|
|
@@ -228,8 +228,8 @@ function hS() {
|
|
|
228
228
|
_ = te;
|
|
229
229
|
}
|
|
230
230
|
}, e.unstable_scheduleCallback = function(Z, F, te) {
|
|
231
|
-
var
|
|
232
|
-
switch (typeof te == "object" && te !== null ? (te = te.delay, te = typeof te == "number" && 0 < te ?
|
|
231
|
+
var ge = e.unstable_now();
|
|
232
|
+
switch (typeof te == "object" && te !== null ? (te = te.delay, te = typeof te == "number" && 0 < te ? ge + te : ge) : te = ge, Z) {
|
|
233
233
|
case 1:
|
|
234
234
|
var z = -1;
|
|
235
235
|
break;
|
|
@@ -252,7 +252,7 @@ function hS() {
|
|
|
252
252
|
startTime: te,
|
|
253
253
|
expirationTime: z,
|
|
254
254
|
sortIndex: -1
|
|
255
|
-
}, te >
|
|
255
|
+
}, te > ge ? (Z.sortIndex = te, n(d, Z), i(m) === null && Z === i(d) && (T ? (B(X), X = -1) : T = !0, fe(J, te - ge))) : (Z.sortIndex = z, n(m, Z), E || b || (E = !0, D || (D = !0, re()))), Z;
|
|
256
256
|
}, e.unstable_shouldYield = L, e.unstable_wrapCallback = function(Z) {
|
|
257
257
|
var F = _;
|
|
258
258
|
return function() {
|
|
@@ -468,7 +468,7 @@ function dS() {
|
|
|
468
468
|
if (A._status === 1) return A._result.default;
|
|
469
469
|
throw A._result;
|
|
470
470
|
}
|
|
471
|
-
var
|
|
471
|
+
var ge = typeof reportError == "function" ? reportError : function(A) {
|
|
472
472
|
if (typeof window == "object" && typeof window.ErrorEvent == "function") {
|
|
473
473
|
var H = new window.ErrorEvent("error", {
|
|
474
474
|
bubbles: !0,
|
|
@@ -589,9 +589,9 @@ function dS() {
|
|
|
589
589
|
X.T = x;
|
|
590
590
|
try {
|
|
591
591
|
var ne = A(), be = X.S;
|
|
592
|
-
be !== null && be(x, ne), typeof ne == "object" && ne !== null && typeof ne.then == "function" && ne.then(D,
|
|
592
|
+
be !== null && be(x, ne), typeof ne == "object" && ne !== null && typeof ne.then == "function" && ne.then(D, ge);
|
|
593
593
|
} catch (pe) {
|
|
594
|
-
|
|
594
|
+
ge(pe);
|
|
595
595
|
} finally {
|
|
596
596
|
H !== null && x.types !== null && (H.types = x.types), X.T = H;
|
|
597
597
|
}
|
|
@@ -974,15 +974,15 @@ function yS() {
|
|
|
974
974
|
data: null,
|
|
975
975
|
method: null,
|
|
976
976
|
action: null
|
|
977
|
-
},
|
|
977
|
+
}, ge = [], z = -1;
|
|
978
978
|
function A(t) {
|
|
979
979
|
return { current: t };
|
|
980
980
|
}
|
|
981
981
|
function H(t) {
|
|
982
|
-
0 > z || (t.current =
|
|
982
|
+
0 > z || (t.current = ge[z], ge[z] = null, z--);
|
|
983
983
|
}
|
|
984
984
|
function x(t, r) {
|
|
985
|
-
z++,
|
|
985
|
+
z++, ge[z] = t.current, t.current = r;
|
|
986
986
|
}
|
|
987
987
|
var ne = A(null), be = A(null), pe = A(null), Ne = A(null);
|
|
988
988
|
function ut(t, r) {
|
|
@@ -3107,7 +3107,7 @@ Error generating stack: ` + u.message + `
|
|
|
3107
3107
|
return r(N, Nr);
|
|
3108
3108
|
}), Re && Gn(N, ze), de;
|
|
3109
3109
|
}
|
|
3110
|
-
function
|
|
3110
|
+
function ye(N, O, M, Y) {
|
|
3111
3111
|
if (M == null) throw Error(l(151));
|
|
3112
3112
|
for (var de = null, Le = null, oe = O, ze = O = 0, Me = null, Ie = M.next(); oe !== null && !Ie.done; ze++, Ie = M.next()) {
|
|
3113
3113
|
oe.index > ze ? (Me = oe, oe = null) : Me = oe.sibling;
|
|
@@ -3213,7 +3213,7 @@ Error generating stack: ` + u.message + `
|
|
|
3213
3213
|
);
|
|
3214
3214
|
if (re(M)) {
|
|
3215
3215
|
if (de = re(M), typeof de != "function") throw Error(l(150));
|
|
3216
|
-
return M = de.call(M),
|
|
3216
|
+
return M = de.call(M), ye(
|
|
3217
3217
|
N,
|
|
3218
3218
|
O,
|
|
3219
3219
|
M,
|
|
@@ -3354,12 +3354,12 @@ Error generating stack: ` + u.message + `
|
|
|
3354
3354
|
next: null
|
|
3355
3355
|
});
|
|
3356
3356
|
e: {
|
|
3357
|
-
var ue = t,
|
|
3357
|
+
var ue = t, ye = S;
|
|
3358
3358
|
U = r;
|
|
3359
3359
|
var Fe = a;
|
|
3360
|
-
switch (
|
|
3360
|
+
switch (ye.tag) {
|
|
3361
3361
|
case 1:
|
|
3362
|
-
if (ue =
|
|
3362
|
+
if (ue = ye.payload, typeof ue == "function") {
|
|
3363
3363
|
G = ue.call(Fe, G, U);
|
|
3364
3364
|
break e;
|
|
3365
3365
|
}
|
|
@@ -3368,7 +3368,7 @@ Error generating stack: ` + u.message + `
|
|
|
3368
3368
|
case 3:
|
|
3369
3369
|
ue.flags = ue.flags & -65537 | 128;
|
|
3370
3370
|
case 0:
|
|
3371
|
-
if (ue =
|
|
3371
|
+
if (ue = ye.payload, U = typeof ue == "function" ? ue.call(Fe, G, U) : ue, U == null) break e;
|
|
3372
3372
|
G = g({}, G, U);
|
|
3373
3373
|
break e;
|
|
3374
3374
|
case 2:
|
|
@@ -6109,11 +6109,11 @@ Error generating stack: ` + u.message + `
|
|
|
6109
6109
|
ue,
|
|
6110
6110
|
p
|
|
6111
6111
|
), u.__reactInternalSnapshotBeforeUpdate = t;
|
|
6112
|
-
} catch (
|
|
6112
|
+
} catch (ye) {
|
|
6113
6113
|
$e(
|
|
6114
6114
|
a,
|
|
6115
6115
|
a.return,
|
|
6116
|
-
|
|
6116
|
+
ye
|
|
6117
6117
|
);
|
|
6118
6118
|
}
|
|
6119
6119
|
}
|
|
@@ -7771,18 +7771,18 @@ Error generating stack: ` + u.message + `
|
|
|
7771
7771
|
else {
|
|
7772
7772
|
var G = S.ownerDocument || document, U = G && G.defaultView || window;
|
|
7773
7773
|
if (U.getSelection) {
|
|
7774
|
-
var I = U.getSelection(), ue = S.textContent.length,
|
|
7775
|
-
!I.extend &&
|
|
7774
|
+
var I = U.getSelection(), ue = S.textContent.length, ye = Math.min(k.start, ue), Fe = k.end === void 0 ? ye : Math.min(k.end, ue);
|
|
7775
|
+
!I.extend && ye > Fe && (v = Fe, Fe = ye, ye = v);
|
|
7776
7776
|
var N = cp(
|
|
7777
7777
|
S,
|
|
7778
|
-
|
|
7778
|
+
ye
|
|
7779
7779
|
), O = cp(
|
|
7780
7780
|
S,
|
|
7781
7781
|
Fe
|
|
7782
7782
|
);
|
|
7783
7783
|
if (N && O && (I.rangeCount !== 1 || I.anchorNode !== N.node || I.anchorOffset !== N.offset || I.focusNode !== O.node || I.focusOffset !== O.offset)) {
|
|
7784
7784
|
var M = G.createRange();
|
|
7785
|
-
M.setStart(N.node, N.offset), I.removeAllRanges(),
|
|
7785
|
+
M.setStart(N.node, N.offset), I.removeAllRanges(), ye > Fe ? (I.addRange(M), I.extend(O.node, O.offset)) : (M.setEnd(O.node, O.offset), I.addRange(M));
|
|
7786
7786
|
}
|
|
7787
7787
|
}
|
|
7788
7788
|
}
|
|
@@ -8356,73 +8356,73 @@ Error generating stack: ` + u.message + `
|
|
|
8356
8356
|
case "beforetoggle":
|
|
8357
8357
|
I = N1;
|
|
8358
8358
|
}
|
|
8359
|
-
var
|
|
8360
|
-
|
|
8359
|
+
var ye = (r & 4) !== 0, Fe = !ye && (t === "scroll" || t === "scrollend"), N = ye ? U !== null ? U + "Capture" : null : U;
|
|
8360
|
+
ye = [];
|
|
8361
8361
|
for (var O = R, M; O !== null; ) {
|
|
8362
8362
|
var Y = O;
|
|
8363
|
-
if (M = Y.stateNode, Y = Y.tag, Y !== 5 && Y !== 26 && Y !== 27 || M === null || N === null || (Y = wa(O, N), Y != null &&
|
|
8363
|
+
if (M = Y.stateNode, Y = Y.tag, Y !== 5 && Y !== 26 && Y !== 27 || M === null || N === null || (Y = wa(O, N), Y != null && ye.push(
|
|
8364
8364
|
al(O, Y, M)
|
|
8365
8365
|
)), Fe) break;
|
|
8366
8366
|
O = O.return;
|
|
8367
8367
|
}
|
|
8368
|
-
0 <
|
|
8368
|
+
0 < ye.length && (U = new I(
|
|
8369
8369
|
U,
|
|
8370
8370
|
ue,
|
|
8371
8371
|
null,
|
|
8372
8372
|
a,
|
|
8373
8373
|
q
|
|
8374
|
-
), G.push({ event: U, listeners:
|
|
8374
|
+
), G.push({ event: U, listeners: ye }));
|
|
8375
8375
|
}
|
|
8376
8376
|
}
|
|
8377
8377
|
if (!(r & 7)) {
|
|
8378
8378
|
e: {
|
|
8379
8379
|
if (U = t === "mouseover" || t === "pointerover", I = t === "mouseout" || t === "pointerout", U && a !== Qo && (ue = a.relatedTarget || a.fromElement) && (yi(ue) || ue[gi]))
|
|
8380
8380
|
break e;
|
|
8381
|
-
if ((I || U) && (U = q.window === q ? q : (U = q.ownerDocument) ? U.defaultView || U.parentWindow : window, I ? (ue = a.relatedTarget || a.toElement, I = R, ue = ue ? yi(ue) : null, ue !== null && (Fe = s(ue),
|
|
8382
|
-
if (
|
|
8381
|
+
if ((I || U) && (U = q.window === q ? q : (U = q.ownerDocument) ? U.defaultView || U.parentWindow : window, I ? (ue = a.relatedTarget || a.toElement, I = R, ue = ue ? yi(ue) : null, ue !== null && (Fe = s(ue), ye = ue.tag, ue !== Fe || ye !== 5 && ye !== 27 && ye !== 6) && (ue = null)) : (I = null, ue = R), I !== ue)) {
|
|
8382
|
+
if (ye = Fh, Y = "onMouseLeave", N = "onMouseEnter", O = "mouse", (t === "pointerout" || t === "pointerover") && (ye = Qh, Y = "onPointerLeave", N = "onPointerEnter", O = "pointer"), Fe = I == null ? U : ka(I), M = ue == null ? U : ka(ue), U = new ye(
|
|
8383
8383
|
Y,
|
|
8384
8384
|
O + "leave",
|
|
8385
8385
|
I,
|
|
8386
8386
|
a,
|
|
8387
8387
|
q
|
|
8388
|
-
), U.target = Fe, U.relatedTarget = M, Y = null, yi(q) === R && (
|
|
8388
|
+
), U.target = Fe, U.relatedTarget = M, Y = null, yi(q) === R && (ye = new ye(
|
|
8389
8389
|
N,
|
|
8390
8390
|
O + "enter",
|
|
8391
8391
|
ue,
|
|
8392
8392
|
a,
|
|
8393
8393
|
q
|
|
8394
|
-
),
|
|
8394
|
+
), ye.target = M, ye.relatedTarget = Fe, Y = ye), Fe = Y, I && ue)
|
|
8395
8395
|
t: {
|
|
8396
|
-
for (
|
|
8396
|
+
for (ye = C_, N = I, O = ue, M = 0, Y = N; Y; Y = ye(Y))
|
|
8397
8397
|
M++;
|
|
8398
8398
|
Y = 0;
|
|
8399
|
-
for (var de = O; de; de =
|
|
8399
|
+
for (var de = O; de; de = ye(de))
|
|
8400
8400
|
Y++;
|
|
8401
8401
|
for (; 0 < M - Y; )
|
|
8402
|
-
N =
|
|
8402
|
+
N = ye(N), M--;
|
|
8403
8403
|
for (; 0 < Y - M; )
|
|
8404
|
-
O =
|
|
8404
|
+
O = ye(O), Y--;
|
|
8405
8405
|
for (; M--; ) {
|
|
8406
8406
|
if (N === O || O !== null && N === O.alternate) {
|
|
8407
|
-
|
|
8407
|
+
ye = N;
|
|
8408
8408
|
break t;
|
|
8409
8409
|
}
|
|
8410
|
-
N =
|
|
8410
|
+
N = ye(N), O = ye(O);
|
|
8411
8411
|
}
|
|
8412
|
-
|
|
8412
|
+
ye = null;
|
|
8413
8413
|
}
|
|
8414
|
-
else
|
|
8414
|
+
else ye = null;
|
|
8415
8415
|
I !== null && Hm(
|
|
8416
8416
|
G,
|
|
8417
8417
|
U,
|
|
8418
8418
|
I,
|
|
8419
|
-
|
|
8419
|
+
ye,
|
|
8420
8420
|
!1
|
|
8421
8421
|
), ue !== null && Fe !== null && Hm(
|
|
8422
8422
|
G,
|
|
8423
8423
|
Fe,
|
|
8424
8424
|
ue,
|
|
8425
|
-
|
|
8425
|
+
ye,
|
|
8426
8426
|
!0
|
|
8427
8427
|
);
|
|
8428
8428
|
}
|
|
@@ -9250,8 +9250,8 @@ Error generating stack: ` + u.message + `
|
|
|
9250
9250
|
case "track":
|
|
9251
9251
|
case "wbr":
|
|
9252
9252
|
case "menuitem":
|
|
9253
|
-
for (var
|
|
9254
|
-
U = a[
|
|
9253
|
+
for (var ye in a)
|
|
9254
|
+
U = a[ye], a.hasOwnProperty(ye) && U != null && !u.hasOwnProperty(ye) && Xe(t, r, ye, null, u, U);
|
|
9255
9255
|
for (R in u)
|
|
9256
9256
|
if (U = u[R], I = a[R], u.hasOwnProperty(R) && U !== I && (U != null || I != null))
|
|
9257
9257
|
switch (R) {
|
|
@@ -13745,7 +13745,7 @@ const Hk = /* @__PURE__ */ $("ZodLiteral", (e, n) => {
|
|
|
13745
13745
|
}
|
|
13746
13746
|
});
|
|
13747
13747
|
});
|
|
13748
|
-
function
|
|
13748
|
+
function ve(e, n) {
|
|
13749
13749
|
return new Hk({
|
|
13750
13750
|
type: "literal",
|
|
13751
13751
|
values: Array.isArray(e) ? e : [e],
|
|
@@ -15398,26 +15398,26 @@ var vy = "6.0.116", Ub = It([
|
|
|
15398
15398
|
ee(),
|
|
15399
15399
|
Al(ee(), Nl.optional())
|
|
15400
15400
|
), Zb = Pe({
|
|
15401
|
-
type:
|
|
15401
|
+
type: ve("text"),
|
|
15402
15402
|
text: ee(),
|
|
15403
15403
|
providerOptions: je.optional()
|
|
15404
15404
|
}), hT = Pe({
|
|
15405
|
-
type:
|
|
15405
|
+
type: ve("image"),
|
|
15406
15406
|
image: It([Ub, So(URL)]),
|
|
15407
15407
|
mediaType: ee().optional(),
|
|
15408
15408
|
providerOptions: je.optional()
|
|
15409
15409
|
}), Lb = Pe({
|
|
15410
|
-
type:
|
|
15410
|
+
type: ve("file"),
|
|
15411
15411
|
data: It([Ub, So(URL)]),
|
|
15412
15412
|
filename: ee().optional(),
|
|
15413
15413
|
mediaType: ee(),
|
|
15414
15414
|
providerOptions: je.optional()
|
|
15415
15415
|
}), pT = Pe({
|
|
15416
|
-
type:
|
|
15416
|
+
type: ve("reasoning"),
|
|
15417
15417
|
text: ee(),
|
|
15418
15418
|
providerOptions: je.optional()
|
|
15419
15419
|
}), dT = Pe({
|
|
15420
|
-
type:
|
|
15420
|
+
type: ve("tool-call"),
|
|
15421
15421
|
toolCallId: ee(),
|
|
15422
15422
|
toolName: ee(),
|
|
15423
15423
|
input: Un(),
|
|
@@ -15427,79 +15427,79 @@ var vy = "6.0.116", Ub = It([
|
|
|
15427
15427
|
"type",
|
|
15428
15428
|
[
|
|
15429
15429
|
Pe({
|
|
15430
|
-
type:
|
|
15430
|
+
type: ve("text"),
|
|
15431
15431
|
value: ee(),
|
|
15432
15432
|
providerOptions: je.optional()
|
|
15433
15433
|
}),
|
|
15434
15434
|
Pe({
|
|
15435
|
-
type:
|
|
15435
|
+
type: ve("json"),
|
|
15436
15436
|
value: Nl,
|
|
15437
15437
|
providerOptions: je.optional()
|
|
15438
15438
|
}),
|
|
15439
15439
|
Pe({
|
|
15440
|
-
type:
|
|
15440
|
+
type: ve("execution-denied"),
|
|
15441
15441
|
reason: ee().optional(),
|
|
15442
15442
|
providerOptions: je.optional()
|
|
15443
15443
|
}),
|
|
15444
15444
|
Pe({
|
|
15445
|
-
type:
|
|
15445
|
+
type: ve("error-text"),
|
|
15446
15446
|
value: ee(),
|
|
15447
15447
|
providerOptions: je.optional()
|
|
15448
15448
|
}),
|
|
15449
15449
|
Pe({
|
|
15450
|
-
type:
|
|
15450
|
+
type: ve("error-json"),
|
|
15451
15451
|
value: Nl,
|
|
15452
15452
|
providerOptions: je.optional()
|
|
15453
15453
|
}),
|
|
15454
15454
|
Pe({
|
|
15455
|
-
type:
|
|
15455
|
+
type: ve("content"),
|
|
15456
15456
|
value: ga(
|
|
15457
15457
|
It([
|
|
15458
15458
|
Pe({
|
|
15459
|
-
type:
|
|
15459
|
+
type: ve("text"),
|
|
15460
15460
|
text: ee(),
|
|
15461
15461
|
providerOptions: je.optional()
|
|
15462
15462
|
}),
|
|
15463
15463
|
Pe({
|
|
15464
|
-
type:
|
|
15464
|
+
type: ve("media"),
|
|
15465
15465
|
data: ee(),
|
|
15466
15466
|
mediaType: ee()
|
|
15467
15467
|
}),
|
|
15468
15468
|
Pe({
|
|
15469
|
-
type:
|
|
15469
|
+
type: ve("file-data"),
|
|
15470
15470
|
data: ee(),
|
|
15471
15471
|
mediaType: ee(),
|
|
15472
15472
|
filename: ee().optional(),
|
|
15473
15473
|
providerOptions: je.optional()
|
|
15474
15474
|
}),
|
|
15475
15475
|
Pe({
|
|
15476
|
-
type:
|
|
15476
|
+
type: ve("file-url"),
|
|
15477
15477
|
url: ee(),
|
|
15478
15478
|
providerOptions: je.optional()
|
|
15479
15479
|
}),
|
|
15480
15480
|
Pe({
|
|
15481
|
-
type:
|
|
15481
|
+
type: ve("file-id"),
|
|
15482
15482
|
fileId: It([ee(), Al(ee(), ee())]),
|
|
15483
15483
|
providerOptions: je.optional()
|
|
15484
15484
|
}),
|
|
15485
15485
|
Pe({
|
|
15486
|
-
type:
|
|
15486
|
+
type: ve("image-data"),
|
|
15487
15487
|
data: ee(),
|
|
15488
15488
|
mediaType: ee(),
|
|
15489
15489
|
providerOptions: je.optional()
|
|
15490
15490
|
}),
|
|
15491
15491
|
Pe({
|
|
15492
|
-
type:
|
|
15492
|
+
type: ve("image-url"),
|
|
15493
15493
|
url: ee(),
|
|
15494
15494
|
providerOptions: je.optional()
|
|
15495
15495
|
}),
|
|
15496
15496
|
Pe({
|
|
15497
|
-
type:
|
|
15497
|
+
type: ve("image-file-id"),
|
|
15498
15498
|
fileId: It([ee(), Al(ee(), ee())]),
|
|
15499
15499
|
providerOptions: je.optional()
|
|
15500
15500
|
}),
|
|
15501
15501
|
Pe({
|
|
15502
|
-
type:
|
|
15502
|
+
type: ve("custom"),
|
|
15503
15503
|
providerOptions: je.optional()
|
|
15504
15504
|
})
|
|
15505
15505
|
])
|
|
@@ -15507,35 +15507,35 @@ var vy = "6.0.116", Ub = It([
|
|
|
15507
15507
|
})
|
|
15508
15508
|
]
|
|
15509
15509
|
), Ib = Pe({
|
|
15510
|
-
type:
|
|
15510
|
+
type: ve("tool-result"),
|
|
15511
15511
|
toolCallId: ee(),
|
|
15512
15512
|
toolName: ee(),
|
|
15513
15513
|
output: mT,
|
|
15514
15514
|
providerOptions: je.optional()
|
|
15515
15515
|
}), gT = Pe({
|
|
15516
|
-
type:
|
|
15516
|
+
type: ve("tool-approval-request"),
|
|
15517
15517
|
approvalId: ee(),
|
|
15518
15518
|
toolCallId: ee()
|
|
15519
15519
|
}), yT = Pe({
|
|
15520
|
-
type:
|
|
15520
|
+
type: ve("tool-approval-response"),
|
|
15521
15521
|
approvalId: ee(),
|
|
15522
15522
|
approved: Zt(),
|
|
15523
15523
|
reason: ee().optional()
|
|
15524
15524
|
}), vT = Pe(
|
|
15525
15525
|
{
|
|
15526
|
-
role:
|
|
15526
|
+
role: ve("system"),
|
|
15527
15527
|
content: ee(),
|
|
15528
15528
|
providerOptions: je.optional()
|
|
15529
15529
|
}
|
|
15530
15530
|
), bT = Pe({
|
|
15531
|
-
role:
|
|
15531
|
+
role: ve("user"),
|
|
15532
15532
|
content: It([
|
|
15533
15533
|
ee(),
|
|
15534
15534
|
ga(It([Zb, hT, Lb]))
|
|
15535
15535
|
]),
|
|
15536
15536
|
providerOptions: je.optional()
|
|
15537
15537
|
}), _T = Pe({
|
|
15538
|
-
role:
|
|
15538
|
+
role: ve("assistant"),
|
|
15539
15539
|
content: It([
|
|
15540
15540
|
ee(),
|
|
15541
15541
|
ga(
|
|
@@ -15551,7 +15551,7 @@ var vy = "6.0.116", Ub = It([
|
|
|
15551
15551
|
]),
|
|
15552
15552
|
providerOptions: je.optional()
|
|
15553
15553
|
}), ST = Pe({
|
|
15554
|
-
role:
|
|
15554
|
+
role: ve("tool"),
|
|
15555
15555
|
content: ga(It([Ib, yT])),
|
|
15556
15556
|
providerOptions: je.optional()
|
|
15557
15557
|
});
|
|
@@ -16141,27 +16141,27 @@ var OT = tT(
|
|
|
16141
16141
|
() => Ob(
|
|
16142
16142
|
It([
|
|
16143
16143
|
rt({
|
|
16144
|
-
type:
|
|
16144
|
+
type: ve("text-start"),
|
|
16145
16145
|
id: ee(),
|
|
16146
16146
|
providerMetadata: je.optional()
|
|
16147
16147
|
}),
|
|
16148
16148
|
rt({
|
|
16149
|
-
type:
|
|
16149
|
+
type: ve("text-delta"),
|
|
16150
16150
|
id: ee(),
|
|
16151
16151
|
delta: ee(),
|
|
16152
16152
|
providerMetadata: je.optional()
|
|
16153
16153
|
}),
|
|
16154
16154
|
rt({
|
|
16155
|
-
type:
|
|
16155
|
+
type: ve("text-end"),
|
|
16156
16156
|
id: ee(),
|
|
16157
16157
|
providerMetadata: je.optional()
|
|
16158
16158
|
}),
|
|
16159
16159
|
rt({
|
|
16160
|
-
type:
|
|
16160
|
+
type: ve("error"),
|
|
16161
16161
|
errorText: ee()
|
|
16162
16162
|
}),
|
|
16163
16163
|
rt({
|
|
16164
|
-
type:
|
|
16164
|
+
type: ve("tool-input-start"),
|
|
16165
16165
|
toolCallId: ee(),
|
|
16166
16166
|
toolName: ee(),
|
|
16167
16167
|
providerExecuted: Zt().optional(),
|
|
@@ -16170,12 +16170,12 @@ var OT = tT(
|
|
|
16170
16170
|
title: ee().optional()
|
|
16171
16171
|
}),
|
|
16172
16172
|
rt({
|
|
16173
|
-
type:
|
|
16173
|
+
type: ve("tool-input-delta"),
|
|
16174
16174
|
toolCallId: ee(),
|
|
16175
16175
|
inputTextDelta: ee()
|
|
16176
16176
|
}),
|
|
16177
16177
|
rt({
|
|
16178
|
-
type:
|
|
16178
|
+
type: ve("tool-input-available"),
|
|
16179
16179
|
toolCallId: ee(),
|
|
16180
16180
|
toolName: ee(),
|
|
16181
16181
|
input: Un(),
|
|
@@ -16185,7 +16185,7 @@ var OT = tT(
|
|
|
16185
16185
|
title: ee().optional()
|
|
16186
16186
|
}),
|
|
16187
16187
|
rt({
|
|
16188
|
-
type:
|
|
16188
|
+
type: ve("tool-input-error"),
|
|
16189
16189
|
toolCallId: ee(),
|
|
16190
16190
|
toolName: ee(),
|
|
16191
16191
|
input: Un(),
|
|
@@ -16196,12 +16196,12 @@ var OT = tT(
|
|
|
16196
16196
|
title: ee().optional()
|
|
16197
16197
|
}),
|
|
16198
16198
|
rt({
|
|
16199
|
-
type:
|
|
16199
|
+
type: ve("tool-approval-request"),
|
|
16200
16200
|
approvalId: ee(),
|
|
16201
16201
|
toolCallId: ee()
|
|
16202
16202
|
}),
|
|
16203
16203
|
rt({
|
|
16204
|
-
type:
|
|
16204
|
+
type: ve("tool-output-available"),
|
|
16205
16205
|
toolCallId: ee(),
|
|
16206
16206
|
output: Un(),
|
|
16207
16207
|
providerExecuted: Zt().optional(),
|
|
@@ -16209,41 +16209,41 @@ var OT = tT(
|
|
|
16209
16209
|
preliminary: Zt().optional()
|
|
16210
16210
|
}),
|
|
16211
16211
|
rt({
|
|
16212
|
-
type:
|
|
16212
|
+
type: ve("tool-output-error"),
|
|
16213
16213
|
toolCallId: ee(),
|
|
16214
16214
|
errorText: ee(),
|
|
16215
16215
|
providerExecuted: Zt().optional(),
|
|
16216
16216
|
dynamic: Zt().optional()
|
|
16217
16217
|
}),
|
|
16218
16218
|
rt({
|
|
16219
|
-
type:
|
|
16219
|
+
type: ve("tool-output-denied"),
|
|
16220
16220
|
toolCallId: ee()
|
|
16221
16221
|
}),
|
|
16222
16222
|
rt({
|
|
16223
|
-
type:
|
|
16223
|
+
type: ve("reasoning-start"),
|
|
16224
16224
|
id: ee(),
|
|
16225
16225
|
providerMetadata: je.optional()
|
|
16226
16226
|
}),
|
|
16227
16227
|
rt({
|
|
16228
|
-
type:
|
|
16228
|
+
type: ve("reasoning-delta"),
|
|
16229
16229
|
id: ee(),
|
|
16230
16230
|
delta: ee(),
|
|
16231
16231
|
providerMetadata: je.optional()
|
|
16232
16232
|
}),
|
|
16233
16233
|
rt({
|
|
16234
|
-
type:
|
|
16234
|
+
type: ve("reasoning-end"),
|
|
16235
16235
|
id: ee(),
|
|
16236
16236
|
providerMetadata: je.optional()
|
|
16237
16237
|
}),
|
|
16238
16238
|
rt({
|
|
16239
|
-
type:
|
|
16239
|
+
type: ve("source-url"),
|
|
16240
16240
|
sourceId: ee(),
|
|
16241
16241
|
url: ee(),
|
|
16242
16242
|
title: ee().optional(),
|
|
16243
16243
|
providerMetadata: je.optional()
|
|
16244
16244
|
}),
|
|
16245
16245
|
rt({
|
|
16246
|
-
type:
|
|
16246
|
+
type: ve("source-document"),
|
|
16247
16247
|
sourceId: ee(),
|
|
16248
16248
|
mediaType: ee(),
|
|
16249
16249
|
title: ee(),
|
|
@@ -16251,7 +16251,7 @@ var OT = tT(
|
|
|
16251
16251
|
providerMetadata: je.optional()
|
|
16252
16252
|
}),
|
|
16253
16253
|
rt({
|
|
16254
|
-
type:
|
|
16254
|
+
type: ve("file"),
|
|
16255
16255
|
url: ee(),
|
|
16256
16256
|
mediaType: ee(),
|
|
16257
16257
|
providerMetadata: je.optional()
|
|
@@ -16266,18 +16266,18 @@ var OT = tT(
|
|
|
16266
16266
|
transient: Zt().optional()
|
|
16267
16267
|
}),
|
|
16268
16268
|
rt({
|
|
16269
|
-
type:
|
|
16269
|
+
type: ve("start-step")
|
|
16270
16270
|
}),
|
|
16271
16271
|
rt({
|
|
16272
|
-
type:
|
|
16272
|
+
type: ve("finish-step")
|
|
16273
16273
|
}),
|
|
16274
16274
|
rt({
|
|
16275
|
-
type:
|
|
16275
|
+
type: ve("start"),
|
|
16276
16276
|
messageId: ee().optional(),
|
|
16277
16277
|
messageMetadata: Un().optional()
|
|
16278
16278
|
}),
|
|
16279
16279
|
rt({
|
|
16280
|
-
type:
|
|
16280
|
+
type: ve("finish"),
|
|
16281
16281
|
finishReason: Sb([
|
|
16282
16282
|
"stop",
|
|
16283
16283
|
"length",
|
|
@@ -16289,11 +16289,11 @@ var OT = tT(
|
|
|
16289
16289
|
messageMetadata: Un().optional()
|
|
16290
16290
|
}),
|
|
16291
16291
|
rt({
|
|
16292
|
-
type:
|
|
16292
|
+
type: ve("abort"),
|
|
16293
16293
|
reason: ee().optional()
|
|
16294
16294
|
}),
|
|
16295
16295
|
rt({
|
|
16296
|
-
type:
|
|
16296
|
+
type: ve("message-metadata"),
|
|
16297
16297
|
messageMetadata: Un()
|
|
16298
16298
|
})
|
|
16299
16299
|
])
|
|
@@ -20539,7 +20539,7 @@ function G2(e, n, i) {
|
|
|
20539
20539
|
return x === null || me(x) ? re(x) : Ce(x) ? (e.consume(x), ie) : i(x);
|
|
20540
20540
|
}
|
|
20541
20541
|
function re(x) {
|
|
20542
|
-
return x === 45 && o === 2 ? (e.consume(x), Z) : x === 60 && o === 1 ? (e.consume(x), F) : x === 62 && o === 4 ? (e.consume(x), A) : x === 63 && o === 3 ? (e.consume(x), z) : x === 93 && o === 5 ? (e.consume(x),
|
|
20542
|
+
return x === 45 && o === 2 ? (e.consume(x), Z) : x === 60 && o === 1 ? (e.consume(x), F) : x === 62 && o === 4 ? (e.consume(x), A) : x === 63 && o === 3 ? (e.consume(x), z) : x === 93 && o === 5 ? (e.consume(x), ge) : me(x) && (o === 6 || o === 7) ? (e.exit("htmlFlowData"), e.check($2, H, le)(x)) : x === null || me(x) ? (e.exit("htmlFlowData"), le(x)) : (e.consume(x), re);
|
|
20543
20543
|
}
|
|
20544
20544
|
function le(x) {
|
|
20545
20545
|
return e.check(V2, ae, H)(x);
|
|
@@ -20563,7 +20563,7 @@ function G2(e, n, i) {
|
|
|
20563
20563
|
}
|
|
20564
20564
|
return Lt(x) && c.length < 8 ? (e.consume(x), c += String.fromCharCode(x), te) : re(x);
|
|
20565
20565
|
}
|
|
20566
|
-
function
|
|
20566
|
+
function ge(x) {
|
|
20567
20567
|
return x === 93 ? (e.consume(x), z) : re(x);
|
|
20568
20568
|
}
|
|
20569
20569
|
function z(x) {
|
|
@@ -20683,9 +20683,9 @@ function Q2(e, n, i) {
|
|
|
20683
20683
|
return e.exit("htmlTextData"), e.enter("lineEnding"), e.consume(z), e.exit("lineEnding"), te;
|
|
20684
20684
|
}
|
|
20685
20685
|
function te(z) {
|
|
20686
|
-
return Ce(z) ? Ze(e,
|
|
20686
|
+
return Ce(z) ? Ze(e, ge, "linePrefix", l.parser.constructs.disable.null.includes("codeIndented") ? void 0 : 4)(z) : ge(z);
|
|
20687
20687
|
}
|
|
20688
|
-
function
|
|
20688
|
+
function ge(z) {
|
|
20689
20689
|
return e.enter("htmlTextData"), c(z);
|
|
20690
20690
|
}
|
|
20691
20691
|
}
|
|
@@ -21307,7 +21307,7 @@ function ZO(e, n, i) {
|
|
|
21307
21307
|
function X(ie, re) {
|
|
21308
21308
|
return le;
|
|
21309
21309
|
function le(ae, fe, Z) {
|
|
21310
|
-
let F, te,
|
|
21310
|
+
let F, te, ge, z;
|
|
21311
21311
|
return Array.isArray(ae) ? (
|
|
21312
21312
|
/* c8 ignore next 1 */
|
|
21313
21313
|
H(ae)
|
|
@@ -21336,7 +21336,7 @@ function ZO(e, n, i) {
|
|
|
21336
21336
|
function x(pe) {
|
|
21337
21337
|
return Ne;
|
|
21338
21338
|
function Ne(ut) {
|
|
21339
|
-
return z = he(),
|
|
21339
|
+
return z = he(), ge = pe, pe.partial || (d.currentConstruct = pe), pe.name && d.parser.constructs.disable.null.includes(pe.name) ? be() : pe.tokenize.call(
|
|
21340
21340
|
// If we do have fields, create an object w/ `context` as its
|
|
21341
21341
|
// prototype.
|
|
21342
21342
|
// This allows a “live binding”, which is needed for `interrupt`.
|
|
@@ -21348,7 +21348,7 @@ function ZO(e, n, i) {
|
|
|
21348
21348
|
}
|
|
21349
21349
|
}
|
|
21350
21350
|
function ne(pe) {
|
|
21351
|
-
return ie(
|
|
21351
|
+
return ie(ge, z), fe;
|
|
21352
21352
|
}
|
|
21353
21353
|
function be(pe) {
|
|
21354
21354
|
return z.restore(), ++te < F.length ? x(F[te]) : Z;
|
|
@@ -21586,7 +21586,7 @@ function XO(e) {
|
|
|
21586
21586
|
htmlText: m(ae),
|
|
21587
21587
|
htmlTextData: L,
|
|
21588
21588
|
image: m(F),
|
|
21589
|
-
label:
|
|
21589
|
+
label: ge,
|
|
21590
21590
|
labelText: te,
|
|
21591
21591
|
lineEnding: ie,
|
|
21592
21592
|
link: m(Z),
|
|
@@ -21861,7 +21861,7 @@ function XO(e) {
|
|
|
21861
21861
|
const W = this.sliceSerialize(V), _e = this.stack[this.stack.length - 2];
|
|
21862
21862
|
_e.label = VO(W), _e.identifier = On(W).toLowerCase();
|
|
21863
21863
|
}
|
|
21864
|
-
function
|
|
21864
|
+
function ge() {
|
|
21865
21865
|
const V = this.stack[this.stack.length - 1], W = this.resume(), _e = this.stack[this.stack.length - 1];
|
|
21866
21866
|
if (this.data.inReference = !0, _e.type === "link") {
|
|
21867
21867
|
const Te = V.children;
|
|
@@ -26233,7 +26233,7 @@ function OD({ toolPart: e }) {
|
|
|
26233
26233
|
}
|
|
26234
26234
|
function CD({ message: e, isStreaming: n }) {
|
|
26235
26235
|
const i = e.role === "user", o = e.parts.filter((c) => c.type === "text").map((c) => c.text).join(`
|
|
26236
|
-
`), s = e.parts.filter((c) => c.type
|
|
26236
|
+
`), s = e.parts.filter((c) => c.type.startsWith("tool-"));
|
|
26237
26237
|
return /* @__PURE__ */ P.jsx("div", { className: `agt-message ${i ? "agt-message--user" : "agt-message--assistant"}`, children: /* @__PURE__ */ P.jsxs("div", { className: "agt-message__content", children: [
|
|
26238
26238
|
o ? /* @__PURE__ */ P.jsx(AD, { content: o }) : n && s.length === 0 ? /* @__PURE__ */ P.jsxs("div", { className: "agt-message__typing", children: [
|
|
26239
26239
|
/* @__PURE__ */ P.jsx("span", { className: "agt-spinner__dot" }),
|
|
@@ -26393,8 +26393,8 @@ function J0({
|
|
|
26393
26393
|
const te = sessionStorage.getItem(K);
|
|
26394
26394
|
if (te)
|
|
26395
26395
|
try {
|
|
26396
|
-
const
|
|
26397
|
-
if (Array.isArray(
|
|
26396
|
+
const ge = JSON.parse(te);
|
|
26397
|
+
if (Array.isArray(ge) && ge.length > 0) return ge;
|
|
26398
26398
|
} catch {
|
|
26399
26399
|
}
|
|
26400
26400
|
return [
|
|
@@ -26414,9 +26414,9 @@ function J0({
|
|
|
26414
26414
|
body: {
|
|
26415
26415
|
...c ? { context: c } : {},
|
|
26416
26416
|
...h ? {
|
|
26417
|
-
actions: h.map(({ name: te, description:
|
|
26417
|
+
actions: h.map(({ name: te, description: ge, parameters: z }) => ({
|
|
26418
26418
|
name: te,
|
|
26419
|
-
description:
|
|
26419
|
+
description: ge,
|
|
26420
26420
|
parameters: z
|
|
26421
26421
|
}))
|
|
26422
26422
|
} : {}
|
|
@@ -26441,17 +26441,17 @@ function J0({
|
|
|
26441
26441
|
}, [he, K]), we.useEffect(() => {
|
|
26442
26442
|
if (!(!h || h.length === 0)) {
|
|
26443
26443
|
for (const te of he)
|
|
26444
|
-
for (const
|
|
26445
|
-
if (
|
|
26446
|
-
const z =
|
|
26444
|
+
for (const ge of te.parts)
|
|
26445
|
+
if (ge.type.startsWith("tool-")) {
|
|
26446
|
+
const z = ge;
|
|
26447
26447
|
if (z.state === "output-available" && !g.current.has(z.toolCallId)) {
|
|
26448
|
-
const A = h.find((
|
|
26449
|
-
if (
|
|
26448
|
+
const A = z.toolName || ge.type.slice(5), H = h.find((x) => x.name === A);
|
|
26449
|
+
if (H) {
|
|
26450
26450
|
g.current.add(z.toolCallId);
|
|
26451
26451
|
try {
|
|
26452
|
-
|
|
26453
|
-
} catch (
|
|
26454
|
-
console.error(`[agentsgt-widget] Action "${
|
|
26452
|
+
H.handler(z.input);
|
|
26453
|
+
} catch (x) {
|
|
26454
|
+
console.error(`[agentsgt-widget] Action "${H.name}" failed:`, x);
|
|
26455
26455
|
}
|
|
26456
26456
|
}
|
|
26457
26457
|
}
|
|
@@ -26463,7 +26463,7 @@ function J0({
|
|
|
26463
26463
|
B && (async () => {
|
|
26464
26464
|
var te;
|
|
26465
26465
|
try {
|
|
26466
|
-
const
|
|
26466
|
+
const ge = await fetch(
|
|
26467
26467
|
`${w}/api/v1/agents/agent/${B}`,
|
|
26468
26468
|
{
|
|
26469
26469
|
headers: {
|
|
@@ -26472,8 +26472,8 @@ function J0({
|
|
|
26472
26472
|
}
|
|
26473
26473
|
}
|
|
26474
26474
|
);
|
|
26475
|
-
if (
|
|
26476
|
-
const z = await
|
|
26475
|
+
if (ge.ok) {
|
|
26476
|
+
const z = await ge.json();
|
|
26477
26477
|
b(z.data);
|
|
26478
26478
|
const A = ((te = z.data.language) == null ? void 0 : te.toLowerCase()) || "english", H = Object.keys(hf);
|
|
26479
26479
|
T(
|