@ddrinnova/agentsgt-widget 0.1.15 → 0.1.17

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 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 ve = te - 1 >>> 1, z = Z[ve];
57
+ var me = te - 1 >>> 1, z = Z[me];
58
58
  if (0 < o(z, F))
59
- Z[ve] = F, Z[te] = z, te = ve;
59
+ Z[me] = F, Z[te] = z, te = me;
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 ve = 0, z = Z.length, A = z >>> 1; ve < A; ) {
72
- var H = 2 * (ve + 1) - 1, x = Z[H], ne = H + 1, be = Z[ne];
71
+ e: for (var me = 0, z = Z.length, A = z >>> 1; me < A; ) {
72
+ var H = 2 * (me + 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[ve] = be, Z[ne] = te, ve = ne) : (Z[ve] = x, Z[H] = te, ve = H);
74
+ ne < z && 0 > o(be, x) ? (Z[me] = be, Z[ne] = te, me = ne) : (Z[me] = x, Z[H] = te, me = H);
75
75
  else if (ne < z && 0 > o(be, te))
76
- Z[ve] = be, Z[ne] = te, ve = ne;
76
+ Z[me] = be, Z[ne] = te, me = 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 ve = g.callback;
133
- if (typeof ve == "function") {
132
+ var me = g.callback;
133
+ if (typeof me == "function") {
134
134
  g.callback = null, _ = g.priorityLevel;
135
- var z = ve(
135
+ var z = me(
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 ve = e.unstable_now();
232
- switch (typeof te == "object" && te !== null ? (te = te.delay, te = typeof te == "number" && 0 < te ? ve + te : ve) : te = ve, Z) {
231
+ var me = e.unstable_now();
232
+ switch (typeof te == "object" && te !== null ? (te = te.delay, te = typeof te == "number" && 0 < te ? me + te : me) : te = me, 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 > ve ? (Z.sortIndex = te, n(d, Z), i(m) === null && Z === i(d) && (T ? (B(X), X = -1) : T = !0, fe(J, te - ve))) : (Z.sortIndex = z, n(m, Z), E || b || (E = !0, D || (D = !0, re()))), Z;
255
+ }, te > me ? (Z.sortIndex = te, n(d, Z), i(m) === null && Z === i(d) && (T ? (B(X), X = -1) : T = !0, fe(J, te - me))) : (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 ve = typeof reportError == "function" ? reportError : function(A) {
471
+ var me = 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, ve);
592
+ be !== null && be(x, ne), typeof ne == "object" && ne !== null && typeof ne.then == "function" && ne.then(D, me);
593
593
  } catch (pe) {
594
- ve(pe);
594
+ me(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
- }, ve = [], z = -1;
977
+ }, me = [], z = -1;
978
978
  function A(t) {
979
979
  return { current: t };
980
980
  }
981
981
  function H(t) {
982
- 0 > z || (t.current = ve[z], ve[z] = null, z--);
982
+ 0 > z || (t.current = me[z], me[z] = null, z--);
983
983
  }
984
984
  function x(t, r) {
985
- z++, ve[z] = t.current, t.current = r;
985
+ z++, me[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 ge(N, O, M, Y) {
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), ge(
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, ge = S;
3357
+ var ue = t, ye = S;
3358
3358
  U = r;
3359
3359
  var Fe = a;
3360
- switch (ge.tag) {
3360
+ switch (ye.tag) {
3361
3361
  case 1:
3362
- if (ue = ge.payload, typeof ue == "function") {
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 = ge.payload, U = typeof ue == "function" ? ue.call(Fe, G, U) : ue, U == null) break e;
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 (ge) {
6112
+ } catch (ye) {
6113
6113
  $e(
6114
6114
  a,
6115
6115
  a.return,
6116
- ge
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, ge = Math.min(k.start, ue), Fe = k.end === void 0 ? ge : Math.min(k.end, ue);
7775
- !I.extend && ge > Fe && (v = Fe, Fe = ge, ge = v);
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
- ge
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(), ge > Fe ? (I.addRange(M), I.extend(O.node, O.offset)) : (M.setEnd(O.node, O.offset), I.addRange(M));
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 ge = (r & 4) !== 0, Fe = !ge && (t === "scroll" || t === "scrollend"), N = ge ? U !== null ? U + "Capture" : null : U;
8360
- ge = [];
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 && ge.push(
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 < ge.length && (U = new I(
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: ge }));
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), ge = ue.tag, ue !== Fe || ge !== 5 && ge !== 27 && ge !== 6) && (ue = null)) : (I = null, ue = R), I !== ue)) {
8382
- if (ge = Fh, Y = "onMouseLeave", N = "onMouseEnter", O = "mouse", (t === "pointerout" || t === "pointerover") && (ge = Qh, Y = "onPointerLeave", N = "onPointerEnter", O = "pointer"), Fe = I == null ? U : ka(I), M = ue == null ? U : ka(ue), U = new ge(
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 && (ge = new ge(
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
- ), ge.target = M, ge.relatedTarget = Fe, Y = ge), Fe = Y, I && ue)
8394
+ ), ye.target = M, ye.relatedTarget = Fe, Y = ye), Fe = Y, I && ue)
8395
8395
  t: {
8396
- for (ge = C_, N = I, O = ue, M = 0, Y = N; Y; Y = ge(Y))
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 = ge(de))
8399
+ for (var de = O; de; de = ye(de))
8400
8400
  Y++;
8401
8401
  for (; 0 < M - Y; )
8402
- N = ge(N), M--;
8402
+ N = ye(N), M--;
8403
8403
  for (; 0 < Y - M; )
8404
- O = ge(O), Y--;
8404
+ O = ye(O), Y--;
8405
8405
  for (; M--; ) {
8406
8406
  if (N === O || O !== null && N === O.alternate) {
8407
- ge = N;
8407
+ ye = N;
8408
8408
  break t;
8409
8409
  }
8410
- N = ge(N), O = ge(O);
8410
+ N = ye(N), O = ye(O);
8411
8411
  }
8412
- ge = null;
8412
+ ye = null;
8413
8413
  }
8414
- else ge = null;
8414
+ else ye = null;
8415
8415
  I !== null && Hm(
8416
8416
  G,
8417
8417
  U,
8418
8418
  I,
8419
- ge,
8419
+ ye,
8420
8420
  !1
8421
8421
  ), ue !== null && Fe !== null && Hm(
8422
8422
  G,
8423
8423
  Fe,
8424
8424
  ue,
8425
- ge,
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 ge in a)
9254
- U = a[ge], a.hasOwnProperty(ge) && U != null && !u.hasOwnProperty(ge) && Xe(t, r, ge, null, u, U);
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 ye(e, n) {
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: ye("text"),
15401
+ type: ve("text"),
15402
15402
  text: ee(),
15403
15403
  providerOptions: je.optional()
15404
15404
  }), hT = Pe({
15405
- type: ye("image"),
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: ye("file"),
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: ye("reasoning"),
15416
+ type: ve("reasoning"),
15417
15417
  text: ee(),
15418
15418
  providerOptions: je.optional()
15419
15419
  }), dT = Pe({
15420
- type: ye("tool-call"),
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: ye("text"),
15430
+ type: ve("text"),
15431
15431
  value: ee(),
15432
15432
  providerOptions: je.optional()
15433
15433
  }),
15434
15434
  Pe({
15435
- type: ye("json"),
15435
+ type: ve("json"),
15436
15436
  value: Nl,
15437
15437
  providerOptions: je.optional()
15438
15438
  }),
15439
15439
  Pe({
15440
- type: ye("execution-denied"),
15440
+ type: ve("execution-denied"),
15441
15441
  reason: ee().optional(),
15442
15442
  providerOptions: je.optional()
15443
15443
  }),
15444
15444
  Pe({
15445
- type: ye("error-text"),
15445
+ type: ve("error-text"),
15446
15446
  value: ee(),
15447
15447
  providerOptions: je.optional()
15448
15448
  }),
15449
15449
  Pe({
15450
- type: ye("error-json"),
15450
+ type: ve("error-json"),
15451
15451
  value: Nl,
15452
15452
  providerOptions: je.optional()
15453
15453
  }),
15454
15454
  Pe({
15455
- type: ye("content"),
15455
+ type: ve("content"),
15456
15456
  value: ga(
15457
15457
  It([
15458
15458
  Pe({
15459
- type: ye("text"),
15459
+ type: ve("text"),
15460
15460
  text: ee(),
15461
15461
  providerOptions: je.optional()
15462
15462
  }),
15463
15463
  Pe({
15464
- type: ye("media"),
15464
+ type: ve("media"),
15465
15465
  data: ee(),
15466
15466
  mediaType: ee()
15467
15467
  }),
15468
15468
  Pe({
15469
- type: ye("file-data"),
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: ye("file-url"),
15476
+ type: ve("file-url"),
15477
15477
  url: ee(),
15478
15478
  providerOptions: je.optional()
15479
15479
  }),
15480
15480
  Pe({
15481
- type: ye("file-id"),
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: ye("image-data"),
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: ye("image-url"),
15492
+ type: ve("image-url"),
15493
15493
  url: ee(),
15494
15494
  providerOptions: je.optional()
15495
15495
  }),
15496
15496
  Pe({
15497
- type: ye("image-file-id"),
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: ye("custom"),
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: ye("tool-result"),
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: ye("tool-approval-request"),
15516
+ type: ve("tool-approval-request"),
15517
15517
  approvalId: ee(),
15518
15518
  toolCallId: ee()
15519
15519
  }), yT = Pe({
15520
- type: ye("tool-approval-response"),
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: ye("system"),
15526
+ role: ve("system"),
15527
15527
  content: ee(),
15528
15528
  providerOptions: je.optional()
15529
15529
  }
15530
15530
  ), bT = Pe({
15531
- role: ye("user"),
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: ye("assistant"),
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: ye("tool"),
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: ye("text-start"),
16144
+ type: ve("text-start"),
16145
16145
  id: ee(),
16146
16146
  providerMetadata: je.optional()
16147
16147
  }),
16148
16148
  rt({
16149
- type: ye("text-delta"),
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: ye("text-end"),
16155
+ type: ve("text-end"),
16156
16156
  id: ee(),
16157
16157
  providerMetadata: je.optional()
16158
16158
  }),
16159
16159
  rt({
16160
- type: ye("error"),
16160
+ type: ve("error"),
16161
16161
  errorText: ee()
16162
16162
  }),
16163
16163
  rt({
16164
- type: ye("tool-input-start"),
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: ye("tool-input-delta"),
16173
+ type: ve("tool-input-delta"),
16174
16174
  toolCallId: ee(),
16175
16175
  inputTextDelta: ee()
16176
16176
  }),
16177
16177
  rt({
16178
- type: ye("tool-input-available"),
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: ye("tool-input-error"),
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: ye("tool-approval-request"),
16199
+ type: ve("tool-approval-request"),
16200
16200
  approvalId: ee(),
16201
16201
  toolCallId: ee()
16202
16202
  }),
16203
16203
  rt({
16204
- type: ye("tool-output-available"),
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: ye("tool-output-error"),
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: ye("tool-output-denied"),
16219
+ type: ve("tool-output-denied"),
16220
16220
  toolCallId: ee()
16221
16221
  }),
16222
16222
  rt({
16223
- type: ye("reasoning-start"),
16223
+ type: ve("reasoning-start"),
16224
16224
  id: ee(),
16225
16225
  providerMetadata: je.optional()
16226
16226
  }),
16227
16227
  rt({
16228
- type: ye("reasoning-delta"),
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: ye("reasoning-end"),
16234
+ type: ve("reasoning-end"),
16235
16235
  id: ee(),
16236
16236
  providerMetadata: je.optional()
16237
16237
  }),
16238
16238
  rt({
16239
- type: ye("source-url"),
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: ye("source-document"),
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: ye("file"),
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: ye("start-step")
16269
+ type: ve("start-step")
16270
16270
  }),
16271
16271
  rt({
16272
- type: ye("finish-step")
16272
+ type: ve("finish-step")
16273
16273
  }),
16274
16274
  rt({
16275
- type: ye("start"),
16275
+ type: ve("start"),
16276
16276
  messageId: ee().optional(),
16277
16277
  messageMetadata: Un().optional()
16278
16278
  }),
16279
16279
  rt({
16280
- type: ye("finish"),
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: ye("abort"),
16292
+ type: ve("abort"),
16293
16293
  reason: ee().optional()
16294
16294
  }),
16295
16295
  rt({
16296
- type: ye("message-metadata"),
16296
+ type: ve("message-metadata"),
16297
16297
  messageMetadata: Un()
16298
16298
  })
16299
16299
  ])
@@ -19339,7 +19339,7 @@ function zo(e) {
19339
19339
  );
19340
19340
  }
19341
19341
  const $f = Br(/\d/), WA = Br(/[\dA-Fa-f]/), e2 = Br(/[!-/:-@[-`{-~]/);
19342
- function me(e) {
19342
+ function ge(e) {
19343
19343
  return e !== null && e < -2;
19344
19344
  }
19345
19345
  function Ke(e) {
@@ -19414,7 +19414,7 @@ function n2(e) {
19414
19414
  e.exit("chunkText"), e.exit("paragraph"), e.consume(h);
19415
19415
  return;
19416
19416
  }
19417
- return me(h) ? (e.consume(h), e.exit("chunkText"), s) : (e.consume(h), c);
19417
+ return ge(h) ? (e.consume(h), e.exit("chunkText"), s) : (e.consume(h), c);
19418
19418
  }
19419
19419
  }
19420
19420
  const r2 = {
@@ -19491,7 +19491,7 @@ function i2(e) {
19491
19491
  j(e.exit("chunkFlow"), !0), C(0), e.consume(w);
19492
19492
  return;
19493
19493
  }
19494
- return me(w) ? (e.consume(w), j(e.exit("chunkFlow")), l = 0, n.interrupt = void 0, h) : (e.consume(w), T);
19494
+ return ge(w) ? (e.consume(w), j(e.exit("chunkFlow")), l = 0, n.interrupt = void 0, h) : (e.consume(w), T);
19495
19495
  }
19496
19496
  function j(w, K) {
19497
19497
  const J = n.sliceStream(w);
@@ -19678,7 +19678,7 @@ function c2(e, n, i) {
19678
19678
  return Ce(s) ? Ze(e, o, "linePrefix")(s) : o(s);
19679
19679
  }
19680
19680
  function o(s) {
19681
- return s === null || me(s) ? n(s) : i(s);
19681
+ return s === null || ge(s) ? n(s) : i(s);
19682
19682
  }
19683
19683
  }
19684
19684
  const l0 = {
@@ -19782,20 +19782,20 @@ function g2(e, n, i) {
19782
19782
  return D === h ? (c++, e.consume(D), y) : c < 3 ? i(D) : (e.exit("codeFencedFenceSequence"), Ce(D) ? Ze(e, g, "whitespace")(D) : g(D));
19783
19783
  }
19784
19784
  function g(D) {
19785
- return D === null || me(D) ? (e.exit("codeFencedFence"), l.interrupt ? n(D) : e.check(Iy, T, K)(D)) : (e.enter("codeFencedFenceInfo"), e.enter("chunkString", {
19785
+ return D === null || ge(D) ? (e.exit("codeFencedFence"), l.interrupt ? n(D) : e.check(Iy, T, K)(D)) : (e.enter("codeFencedFenceInfo"), e.enter("chunkString", {
19786
19786
  contentType: "string"
19787
19787
  }), _(D));
19788
19788
  }
19789
19789
  function _(D) {
19790
- return D === null || me(D) ? (e.exit("chunkString"), e.exit("codeFencedFenceInfo"), g(D)) : Ce(D) ? (e.exit("chunkString"), e.exit("codeFencedFenceInfo"), Ze(e, b, "whitespace")(D)) : D === 96 && D === h ? i(D) : (e.consume(D), _);
19790
+ return D === null || ge(D) ? (e.exit("chunkString"), e.exit("codeFencedFenceInfo"), g(D)) : Ce(D) ? (e.exit("chunkString"), e.exit("codeFencedFenceInfo"), Ze(e, b, "whitespace")(D)) : D === 96 && D === h ? i(D) : (e.consume(D), _);
19791
19791
  }
19792
19792
  function b(D) {
19793
- return D === null || me(D) ? g(D) : (e.enter("codeFencedFenceMeta"), e.enter("chunkString", {
19793
+ return D === null || ge(D) ? g(D) : (e.enter("codeFencedFenceMeta"), e.enter("chunkString", {
19794
19794
  contentType: "string"
19795
19795
  }), E(D));
19796
19796
  }
19797
19797
  function E(D) {
19798
- return D === null || me(D) ? (e.exit("chunkString"), e.exit("codeFencedFenceMeta"), g(D)) : D === 96 && D === h ? i(D) : (e.consume(D), E);
19798
+ return D === null || ge(D) ? (e.exit("chunkString"), e.exit("codeFencedFenceMeta"), g(D)) : D === 96 && D === h ? i(D) : (e.consume(D), E);
19799
19799
  }
19800
19800
  function T(D) {
19801
19801
  return e.attempt(o, K, j)(D);
@@ -19807,10 +19807,10 @@ function g2(e, n, i) {
19807
19807
  return s > 0 && Ce(D) ? Ze(e, B, "linePrefix", s + 1)(D) : B(D);
19808
19808
  }
19809
19809
  function B(D) {
19810
- return D === null || me(D) ? e.check(Iy, T, K)(D) : (e.enter("codeFlowValue"), w(D));
19810
+ return D === null || ge(D) ? e.check(Iy, T, K)(D) : (e.enter("codeFlowValue"), w(D));
19811
19811
  }
19812
19812
  function w(D) {
19813
- return D === null || me(D) ? (e.exit("codeFlowValue"), B(D)) : (e.consume(D), w);
19813
+ return D === null || ge(D) ? (e.exit("codeFlowValue"), B(D)) : (e.consume(D), w);
19814
19814
  }
19815
19815
  function K(D) {
19816
19816
  return e.exit("codeFenced"), n(D);
@@ -19831,7 +19831,7 @@ function g2(e, n, i) {
19831
19831
  return fe === h ? (he++, D.consume(fe), le) : he >= c ? (D.exit("codeFencedFenceSequence"), Ce(fe) ? Ze(D, ae, "whitespace")(fe) : ae(fe)) : ce(fe);
19832
19832
  }
19833
19833
  function ae(fe) {
19834
- return fe === null || me(fe) ? (D.exit("codeFencedFence"), X(fe)) : ce(fe);
19834
+ return fe === null || ge(fe) ? (D.exit("codeFencedFence"), X(fe)) : ce(fe);
19835
19835
  }
19836
19836
  }
19837
19837
  }
@@ -19863,10 +19863,10 @@ function b2(e, n, i) {
19863
19863
  return y && y[1].type === "linePrefix" && y[2].sliceSerialize(y[1], !0).length >= 4 ? c(d) : i(d);
19864
19864
  }
19865
19865
  function c(d) {
19866
- return d === null ? m(d) : me(d) ? e.attempt(v2, c, m)(d) : (e.enter("codeFlowValue"), h(d));
19866
+ return d === null ? m(d) : ge(d) ? e.attempt(v2, c, m)(d) : (e.enter("codeFlowValue"), h(d));
19867
19867
  }
19868
19868
  function h(d) {
19869
- return d === null || me(d) ? (e.exit("codeFlowValue"), c(d)) : (e.consume(d), h);
19869
+ return d === null || ge(d) ? (e.exit("codeFlowValue"), c(d)) : (e.consume(d), h);
19870
19870
  }
19871
19871
  function m(d) {
19872
19872
  return e.exit("codeIndented"), n(d);
@@ -19876,11 +19876,11 @@ function _2(e, n, i) {
19876
19876
  const l = this;
19877
19877
  return o;
19878
19878
  function o(c) {
19879
- return l.parser.lazy[l.now().line] ? i(c) : me(c) ? (e.enter("lineEnding"), e.consume(c), e.exit("lineEnding"), o) : Ze(e, s, "linePrefix", 5)(c);
19879
+ return l.parser.lazy[l.now().line] ? i(c) : ge(c) ? (e.enter("lineEnding"), e.consume(c), e.exit("lineEnding"), o) : Ze(e, s, "linePrefix", 5)(c);
19880
19880
  }
19881
19881
  function s(c) {
19882
19882
  const h = l.events[l.events.length - 1];
19883
- return h && h[1].type === "linePrefix" && h[2].sliceSerialize(h[1], !0).length >= 4 ? n(c) : me(c) ? o(c) : i(c);
19883
+ return h && h[1].type === "linePrefix" && h[2].sliceSerialize(h[1], !0).length >= 4 ? n(c) : ge(c) ? o(c) : i(c);
19884
19884
  }
19885
19885
  }
19886
19886
  const S2 = {
@@ -19915,10 +19915,10 @@ function z2(e, n, i) {
19915
19915
  return g === 96 ? (e.consume(g), l++, h) : (e.exit("codeTextSequence"), m(g));
19916
19916
  }
19917
19917
  function m(g) {
19918
- return g === null ? i(g) : g === 32 ? (e.enter("space"), e.consume(g), e.exit("space"), m) : g === 96 ? (s = e.enter("codeTextSequence"), o = 0, y(g)) : me(g) ? (e.enter("lineEnding"), e.consume(g), e.exit("lineEnding"), m) : (e.enter("codeTextData"), d(g));
19918
+ return g === null ? i(g) : g === 32 ? (e.enter("space"), e.consume(g), e.exit("space"), m) : g === 96 ? (s = e.enter("codeTextSequence"), o = 0, y(g)) : ge(g) ? (e.enter("lineEnding"), e.consume(g), e.exit("lineEnding"), m) : (e.enter("codeTextData"), d(g));
19919
19919
  }
19920
19920
  function d(g) {
19921
- return g === null || g === 32 || g === 96 || me(g) ? (e.exit("codeTextData"), m(g)) : (e.consume(g), d);
19921
+ return g === null || g === 32 || g === 96 || ge(g) ? (e.exit("codeTextData"), m(g)) : (e.consume(g), d);
19922
19922
  }
19923
19923
  function y(g) {
19924
19924
  return g === 96 ? (e.consume(g), o++, y) : o === l ? (e.exit("codeTextSequence"), e.exit("codeText"), n(g)) : (s.type = "codeTextData", d(g));
@@ -20164,7 +20164,7 @@ function C2(e, n) {
20164
20164
  }), o(h);
20165
20165
  }
20166
20166
  function o(h) {
20167
- return h === null ? s(h) : me(h) ? e.check(A2, c, s)(h) : (e.consume(h), o);
20167
+ return h === null ? s(h) : ge(h) ? e.check(A2, c, s)(h) : (e.consume(h), o);
20168
20168
  }
20169
20169
  function s(h) {
20170
20170
  return e.exit("chunkContent"), e.exit("content"), n(h);
@@ -20183,7 +20183,7 @@ function N2(e, n, i) {
20183
20183
  return e.exit("chunkContent"), e.enter("lineEnding"), e.consume(c), e.exit("lineEnding"), Ze(e, s, "linePrefix");
20184
20184
  }
20185
20185
  function s(c) {
20186
- if (c === null || me(c))
20186
+ if (c === null || ge(c))
20187
20187
  return i(c);
20188
20188
  const h = l.events[l.events.length - 1];
20189
20189
  return !l.parser.constructs.disable.null.includes("codeIndented") && h && h[1].type === "linePrefix" && h[2].sliceSerialize(h[1], !0).length >= 4 ? n(c) : e.interrupt(l.parser.constructs.flow, i, n)(c);
@@ -20204,7 +20204,7 @@ function c0(e, n, i, l, o, s, c, h, m) {
20204
20204
  }), b(C));
20205
20205
  }
20206
20206
  function b(C) {
20207
- return C === 62 ? (e.exit("chunkString"), e.exit(h), _(C)) : C === null || C === 60 || me(C) ? i(C) : (e.consume(C), C === 92 ? E : b);
20207
+ return C === 62 ? (e.exit("chunkString"), e.exit(h), _(C)) : C === null || C === 60 || ge(C) ? i(C) : (e.consume(C), C === 92 ? E : b);
20208
20208
  }
20209
20209
  function E(C) {
20210
20210
  return C === 60 || C === 62 || C === 92 ? (e.consume(C), b) : b(C);
@@ -20229,12 +20229,12 @@ function f0(e, n, i, l, o, s) {
20229
20229
  // which doesn’t need this.
20230
20230
  // Hidden footnotes hook.
20231
20231
  /* c8 ignore next 3 */
20232
- b === 94 && !h && "_hiddenFootnoteSupport" in c.parser.constructs ? i(b) : b === 93 ? (e.exit(s), e.enter(o), e.consume(b), e.exit(o), e.exit(l), n) : me(b) ? (e.enter("lineEnding"), e.consume(b), e.exit("lineEnding"), y) : (e.enter("chunkString", {
20232
+ b === 94 && !h && "_hiddenFootnoteSupport" in c.parser.constructs ? i(b) : b === 93 ? (e.exit(s), e.enter(o), e.consume(b), e.exit(o), e.exit(l), n) : ge(b) ? (e.enter("lineEnding"), e.consume(b), e.exit("lineEnding"), y) : (e.enter("chunkString", {
20233
20233
  contentType: "string"
20234
20234
  }), g(b));
20235
20235
  }
20236
20236
  function g(b) {
20237
- return b === null || b === 91 || b === 93 || me(b) || h++ > 999 ? (e.exit("chunkString"), y(b)) : (e.consume(b), m || (m = !Ce(b)), b === 92 ? _ : g);
20237
+ return b === null || b === 91 || b === 93 || ge(b) || h++ > 999 ? (e.exit("chunkString"), y(b)) : (e.consume(b), m || (m = !Ce(b)), b === 92 ? _ : g);
20238
20238
  }
20239
20239
  function _(b) {
20240
20240
  return b === 91 || b === 92 || b === 93 ? (e.consume(b), h++, g) : g(b);
@@ -20250,12 +20250,12 @@ function h0(e, n, i, l, o, s) {
20250
20250
  return _ === c ? (e.enter(o), e.consume(_), e.exit(o), e.exit(l), n) : (e.enter(s), d(_));
20251
20251
  }
20252
20252
  function d(_) {
20253
- return _ === c ? (e.exit(s), m(c)) : _ === null ? i(_) : me(_) ? (e.enter("lineEnding"), e.consume(_), e.exit("lineEnding"), Ze(e, d, "linePrefix")) : (e.enter("chunkString", {
20253
+ return _ === c ? (e.exit(s), m(c)) : _ === null ? i(_) : ge(_) ? (e.enter("lineEnding"), e.consume(_), e.exit("lineEnding"), Ze(e, d, "linePrefix")) : (e.enter("chunkString", {
20254
20254
  contentType: "string"
20255
20255
  }), y(_));
20256
20256
  }
20257
20257
  function y(_) {
20258
- return _ === c || _ === null || me(_) ? (e.exit("chunkString"), d(_)) : (e.consume(_), _ === 92 ? g : y);
20258
+ return _ === c || _ === null || ge(_) ? (e.exit("chunkString"), d(_)) : (e.consume(_), _ === 92 ? g : y);
20259
20259
  }
20260
20260
  function g(_) {
20261
20261
  return _ === c || _ === 92 ? (e.consume(_), y) : y(_);
@@ -20265,7 +20265,7 @@ function zl(e, n) {
20265
20265
  let i;
20266
20266
  return l;
20267
20267
  function l(o) {
20268
- return me(o) ? (e.enter("lineEnding"), e.consume(o), e.exit("lineEnding"), i = !0, l) : Ce(o) ? Ze(e, l, i ? "linePrefix" : "lineSuffix")(o) : n(o);
20268
+ return ge(o) ? (e.enter("lineEnding"), e.consume(o), e.exit("lineEnding"), i = !0, l) : Ce(o) ? Ze(e, l, i ? "linePrefix" : "lineSuffix")(o) : n(o);
20269
20269
  }
20270
20270
  }
20271
20271
  const D2 = {
@@ -20320,7 +20320,7 @@ function R2(e, n, i) {
20320
20320
  return Ce(b) ? Ze(e, _, "whitespace")(b) : _(b);
20321
20321
  }
20322
20322
  function _(b) {
20323
- return b === null || me(b) ? (e.exit("definition"), l.parser.defined.push(o), n(b)) : i(b);
20323
+ return b === null || ge(b) ? (e.exit("definition"), l.parser.defined.push(o), n(b)) : i(b);
20324
20324
  }
20325
20325
  }
20326
20326
  function j2(e, n, i) {
@@ -20335,7 +20335,7 @@ function j2(e, n, i) {
20335
20335
  return Ce(h) ? Ze(e, c, "whitespace")(h) : c(h);
20336
20336
  }
20337
20337
  function c(h) {
20338
- return h === null || me(h) ? n(h) : i(h);
20338
+ return h === null || ge(h) ? n(h) : i(h);
20339
20339
  }
20340
20340
  }
20341
20341
  const U2 = {
@@ -20348,7 +20348,7 @@ function Z2(e, n, i) {
20348
20348
  return e.enter("hardBreakEscape"), e.consume(s), o;
20349
20349
  }
20350
20350
  function o(s) {
20351
- return me(s) ? (e.exit("hardBreakEscape"), n(s)) : i(s);
20351
+ return ge(s) ? (e.exit("hardBreakEscape"), n(s)) : i(s);
20352
20352
  }
20353
20353
  }
20354
20354
  const L2 = {
@@ -20382,7 +20382,7 @@ function B2(e, n, i) {
20382
20382
  return y === 35 && l++ < 6 ? (e.consume(y), c) : y === null || Ke(y) ? (e.exit("atxHeadingSequence"), h(y)) : i(y);
20383
20383
  }
20384
20384
  function h(y) {
20385
- return y === 35 ? (e.enter("atxHeadingSequence"), m(y)) : y === null || me(y) ? (e.exit("atxHeading"), n(y)) : Ce(y) ? Ze(e, h, "whitespace")(y) : (e.enter("atxHeadingText"), d(y));
20385
+ return y === 35 ? (e.enter("atxHeadingSequence"), m(y)) : y === null || ge(y) ? (e.exit("atxHeading"), n(y)) : Ce(y) ? Ze(e, h, "whitespace")(y) : (e.enter("atxHeadingText"), d(y));
20386
20386
  }
20387
20387
  function m(y) {
20388
20388
  return y === 35 ? (e.consume(y), m) : (e.exit("atxHeadingSequence"), h(y));
@@ -20524,7 +20524,7 @@ function G2(e, n, i) {
20524
20524
  return x === null || x === 60 || x === 61 || x === 62 || x === 96 ? i(x) : x === 34 || x === 39 ? (e.consume(x), m = x, X) : Ce(x) ? (e.consume(x), D) : ce(x);
20525
20525
  }
20526
20526
  function X(x) {
20527
- return x === m ? (e.consume(x), m = null, he) : x === null || me(x) ? i(x) : (e.consume(x), X);
20527
+ return x === m ? (e.consume(x), m = null, he) : x === null || ge(x) ? i(x) : (e.consume(x), X);
20528
20528
  }
20529
20529
  function ce(x) {
20530
20530
  return x === null || x === 34 || x === 39 || x === 47 || x === 60 || x === 61 || x === 62 || x === 96 || Ke(x) ? J(x) : (e.consume(x), ce);
@@ -20536,10 +20536,10 @@ function G2(e, n, i) {
20536
20536
  return x === 62 ? (e.consume(x), ie) : i(x);
20537
20537
  }
20538
20538
  function ie(x) {
20539
- return x === null || me(x) ? re(x) : Ce(x) ? (e.consume(x), ie) : i(x);
20539
+ return x === null || ge(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), ve) : 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);
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), me) : ge(x) && (o === 6 || o === 7) ? (e.exit("htmlFlowData"), e.check($2, H, le)(x)) : x === null || ge(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);
@@ -20548,7 +20548,7 @@ function G2(e, n, i) {
20548
20548
  return e.enter("lineEnding"), e.consume(x), e.exit("lineEnding"), fe;
20549
20549
  }
20550
20550
  function fe(x) {
20551
- return x === null || me(x) ? le(x) : (e.enter("htmlFlowData"), re(x));
20551
+ return x === null || ge(x) ? le(x) : (e.enter("htmlFlowData"), re(x));
20552
20552
  }
20553
20553
  function Z(x) {
20554
20554
  return x === 45 ? (e.consume(x), z) : re(x);
@@ -20563,14 +20563,14 @@ 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 ve(x) {
20566
+ function me(x) {
20567
20567
  return x === 93 ? (e.consume(x), z) : re(x);
20568
20568
  }
20569
20569
  function z(x) {
20570
20570
  return x === 62 ? (e.consume(x), A) : x === 45 && o === 2 ? (e.consume(x), z) : re(x);
20571
20571
  }
20572
20572
  function A(x) {
20573
- return x === null || me(x) ? (e.exit("htmlFlowData"), H(x)) : (e.consume(x), A);
20573
+ return x === null || ge(x) ? (e.exit("htmlFlowData"), H(x)) : (e.consume(x), A);
20574
20574
  }
20575
20575
  function H(x) {
20576
20576
  return e.exit("htmlFlow"), n(x);
@@ -20580,7 +20580,7 @@ function X2(e, n, i) {
20580
20580
  const l = this;
20581
20581
  return o;
20582
20582
  function o(c) {
20583
- return me(c) ? (e.enter("lineEnding"), e.consume(c), e.exit("lineEnding"), s) : i(c);
20583
+ return ge(c) ? (e.enter("lineEnding"), e.consume(c), e.exit("lineEnding"), s) : i(c);
20584
20584
  }
20585
20585
  function s(c) {
20586
20586
  return l.parser.lazy[l.now().line] ? i(c) : n(c);
@@ -20613,7 +20613,7 @@ function Q2(e, n, i) {
20613
20613
  return z === 45 ? (e.consume(z), b) : i(z);
20614
20614
  }
20615
20615
  function g(z) {
20616
- return z === null ? i(z) : z === 45 ? (e.consume(z), _) : me(z) ? (c = g, F(z)) : (e.consume(z), g);
20616
+ return z === null ? i(z) : z === 45 ? (e.consume(z), _) : ge(z) ? (c = g, F(z)) : (e.consume(z), g);
20617
20617
  }
20618
20618
  function _(z) {
20619
20619
  return z === 45 ? (e.consume(z), b) : g(z);
@@ -20626,7 +20626,7 @@ function Q2(e, n, i) {
20626
20626
  return z === A.charCodeAt(s++) ? (e.consume(z), s === A.length ? T : E) : i(z);
20627
20627
  }
20628
20628
  function T(z) {
20629
- return z === null ? i(z) : z === 93 ? (e.consume(z), j) : me(z) ? (c = T, F(z)) : (e.consume(z), T);
20629
+ return z === null ? i(z) : z === 93 ? (e.consume(z), j) : ge(z) ? (c = T, F(z)) : (e.consume(z), T);
20630
20630
  }
20631
20631
  function j(z) {
20632
20632
  return z === 93 ? (e.consume(z), C) : T(z);
@@ -20635,10 +20635,10 @@ function Q2(e, n, i) {
20635
20635
  return z === 62 ? Z(z) : z === 93 ? (e.consume(z), C) : T(z);
20636
20636
  }
20637
20637
  function B(z) {
20638
- return z === null || z === 62 ? Z(z) : me(z) ? (c = B, F(z)) : (e.consume(z), B);
20638
+ return z === null || z === 62 ? Z(z) : ge(z) ? (c = B, F(z)) : (e.consume(z), B);
20639
20639
  }
20640
20640
  function w(z) {
20641
- return z === null ? i(z) : z === 63 ? (e.consume(z), K) : me(z) ? (c = w, F(z)) : (e.consume(z), w);
20641
+ return z === null ? i(z) : z === 63 ? (e.consume(z), K) : ge(z) ? (c = w, F(z)) : (e.consume(z), w);
20642
20642
  }
20643
20643
  function K(z) {
20644
20644
  return z === 62 ? Z(z) : w(z);
@@ -20650,25 +20650,25 @@ function Q2(e, n, i) {
20650
20650
  return z === 45 || Ct(z) ? (e.consume(z), D) : X(z);
20651
20651
  }
20652
20652
  function X(z) {
20653
- return me(z) ? (c = X, F(z)) : Ce(z) ? (e.consume(z), X) : Z(z);
20653
+ return ge(z) ? (c = X, F(z)) : Ce(z) ? (e.consume(z), X) : Z(z);
20654
20654
  }
20655
20655
  function ce(z) {
20656
20656
  return z === 45 || Ct(z) ? (e.consume(z), ce) : z === 47 || z === 62 || Ke(z) ? he(z) : i(z);
20657
20657
  }
20658
20658
  function he(z) {
20659
- return z === 47 ? (e.consume(z), Z) : z === 58 || z === 95 || Lt(z) ? (e.consume(z), L) : me(z) ? (c = he, F(z)) : Ce(z) ? (e.consume(z), he) : Z(z);
20659
+ return z === 47 ? (e.consume(z), Z) : z === 58 || z === 95 || Lt(z) ? (e.consume(z), L) : ge(z) ? (c = he, F(z)) : Ce(z) ? (e.consume(z), he) : Z(z);
20660
20660
  }
20661
20661
  function L(z) {
20662
20662
  return z === 45 || z === 46 || z === 58 || z === 95 || Ct(z) ? (e.consume(z), L) : ie(z);
20663
20663
  }
20664
20664
  function ie(z) {
20665
- return z === 61 ? (e.consume(z), re) : me(z) ? (c = ie, F(z)) : Ce(z) ? (e.consume(z), ie) : he(z);
20665
+ return z === 61 ? (e.consume(z), re) : ge(z) ? (c = ie, F(z)) : Ce(z) ? (e.consume(z), ie) : he(z);
20666
20666
  }
20667
20667
  function re(z) {
20668
- return z === null || z === 60 || z === 61 || z === 62 || z === 96 ? i(z) : z === 34 || z === 39 ? (e.consume(z), o = z, le) : me(z) ? (c = re, F(z)) : Ce(z) ? (e.consume(z), re) : (e.consume(z), ae);
20668
+ return z === null || z === 60 || z === 61 || z === 62 || z === 96 ? i(z) : z === 34 || z === 39 ? (e.consume(z), o = z, le) : ge(z) ? (c = re, F(z)) : Ce(z) ? (e.consume(z), re) : (e.consume(z), ae);
20669
20669
  }
20670
20670
  function le(z) {
20671
- return z === o ? (e.consume(z), o = void 0, fe) : z === null ? i(z) : me(z) ? (c = le, F(z)) : (e.consume(z), le);
20671
+ return z === o ? (e.consume(z), o = void 0, fe) : z === null ? i(z) : ge(z) ? (c = le, F(z)) : (e.consume(z), le);
20672
20672
  }
20673
20673
  function ae(z) {
20674
20674
  return z === null || z === 34 || z === 39 || z === 60 || z === 61 || z === 96 ? i(z) : z === 47 || z === 62 || Ke(z) ? he(z) : (e.consume(z), ae);
@@ -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, ve, "linePrefix", l.parser.constructs.disable.null.includes("codeIndented") ? void 0 : 4)(z) : ve(z);
20686
+ return Ce(z) ? Ze(e, me, "linePrefix", l.parser.constructs.disable.null.includes("codeIndented") ? void 0 : 4)(z) : me(z);
20687
20687
  }
20688
- function ve(z) {
20688
+ function me(z) {
20689
20689
  return e.enter("htmlTextData"), c(z);
20690
20690
  }
20691
20691
  }
@@ -20887,7 +20887,7 @@ function fO(e, n, i) {
20887
20887
  return o = d, h(d);
20888
20888
  }
20889
20889
  function h(d) {
20890
- return d === o ? (e.enter("thematicBreakSequence"), m(d)) : l >= 3 && (d === null || me(d)) ? (e.exit("thematicBreak"), n(d)) : i(d);
20890
+ return d === o ? (e.enter("thematicBreakSequence"), m(d)) : l >= 3 && (d === null || ge(d)) ? (e.exit("thematicBreak"), n(d)) : i(d);
20891
20891
  }
20892
20892
  function m(d) {
20893
20893
  return d === o ? (e.consume(d), l++, m) : (e.exit("thematicBreakSequence"), Ce(d) ? Ze(e, h, "whitespace")(d) : h(d));
@@ -21025,7 +21025,7 @@ function _O(e, n, i) {
21025
21025
  return d === o ? (e.consume(d), h) : (e.exit("setextHeadingLineSequence"), Ce(d) ? Ze(e, m, "lineSuffix")(d) : m(d));
21026
21026
  }
21027
21027
  function m(d) {
21028
- return d === null || me(d) ? (e.exit("setextHeadingLine"), n(d)) : i(d);
21028
+ return d === null || ge(d) ? (e.exit("setextHeadingLine"), n(d)) : i(d);
21029
21029
  }
21030
21030
  }
21031
21031
  const SO = {
@@ -21285,7 +21285,7 @@ function ZO(e, n, i) {
21285
21285
  y = y(ie);
21286
21286
  }
21287
21287
  function B(ie) {
21288
- me(ie) ? (l.line++, l.column = 1, l.offset += ie === -3 ? 2 : 1, L()) : ie !== -1 && (l.column++, l.offset++), l._bufferIndex < 0 ? l._index++ : (l._bufferIndex++, l._bufferIndex === // Points w/ non-negative `_bufferIndex` reference
21288
+ ge(ie) ? (l.line++, l.column = 1, l.offset += ie === -3 ? 2 : 1, L()) : ie !== -1 && (l.column++, l.offset++), l._bufferIndex < 0 ? l._index++ : (l._bufferIndex++, l._bufferIndex === // Points w/ non-negative `_bufferIndex` reference
21289
21289
  // strings.
21290
21290
  /** @type {string} */
21291
21291
  c[l._index].length && (l._bufferIndex = -1, l._index++)), d.previous = ie;
@@ -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, ve, z;
21310
+ let F, te, me, 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(), ve = pe, pe.partial || (d.currentConstruct = pe), pe.name && d.parser.constructs.disable.null.includes(pe.name) ? be() : pe.tokenize.call(
21339
+ return z = he(), me = 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(ve, z), fe;
21351
+ return ie(me, 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: ve,
21589
+ label: me,
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 ve() {
21864
+ function me() {
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;
@@ -25995,7 +25995,7 @@ function bD(e, n, i) {
25995
25995
  return L === 124 || (c = !0, s += 1), y(L);
25996
25996
  }
25997
25997
  function y(L) {
25998
- return L === null ? i(L) : me(L) ? s > 1 ? (s = 0, l.interrupt = !0, e.exit("tableRow"), e.enter("lineEnding"), e.consume(L), e.exit("lineEnding"), b) : i(L) : Ce(L) ? Ze(e, y, "whitespace")(L) : (s += 1, c && (c = !1, o += 1), L === 124 ? (e.enter("tableCellDivider"), e.consume(L), e.exit("tableCellDivider"), c = !0, y) : (e.enter("data"), g(L)));
25998
+ return L === null ? i(L) : ge(L) ? s > 1 ? (s = 0, l.interrupt = !0, e.exit("tableRow"), e.enter("lineEnding"), e.consume(L), e.exit("lineEnding"), b) : i(L) : Ce(L) ? Ze(e, y, "whitespace")(L) : (s += 1, c && (c = !1, o += 1), L === 124 ? (e.enter("tableCellDivider"), e.consume(L), e.exit("tableCellDivider"), c = !0, y) : (e.enter("data"), g(L)));
25999
25999
  }
26000
26000
  function g(L) {
26001
26001
  return L === null || L === 124 || Ke(L) ? (e.exit("data"), y(L)) : (e.consume(L), L === 92 ? _ : g);
@@ -26013,7 +26013,7 @@ function bD(e, n, i) {
26013
26013
  return Ce(L) ? Ze(e, j, "whitespace")(L) : j(L);
26014
26014
  }
26015
26015
  function j(L) {
26016
- return L === 58 ? (s += 1, c = !0, e.enter("tableDelimiterMarker"), e.consume(L), e.exit("tableDelimiterMarker"), C) : L === 45 ? (s += 1, C(L)) : L === null || me(L) ? K(L) : J(L);
26016
+ return L === 58 ? (s += 1, c = !0, e.enter("tableDelimiterMarker"), e.consume(L), e.exit("tableDelimiterMarker"), C) : L === 45 ? (s += 1, C(L)) : L === null || ge(L) ? K(L) : J(L);
26017
26017
  }
26018
26018
  function C(L) {
26019
26019
  return L === 45 ? (e.enter("tableDelimiterFiller"), B(L)) : J(L);
@@ -26025,7 +26025,7 @@ function bD(e, n, i) {
26025
26025
  return Ce(L) ? Ze(e, K, "whitespace")(L) : K(L);
26026
26026
  }
26027
26027
  function K(L) {
26028
- return L === 124 ? E(L) : L === null || me(L) ? !c || o !== s ? J(L) : (e.exit("tableDelimiterRow"), e.exit("tableHead"), n(L)) : J(L);
26028
+ return L === 124 ? E(L) : L === null || ge(L) ? !c || o !== s ? J(L) : (e.exit("tableDelimiterRow"), e.exit("tableHead"), n(L)) : J(L);
26029
26029
  }
26030
26030
  function J(L) {
26031
26031
  return i(L);
@@ -26034,7 +26034,7 @@ function bD(e, n, i) {
26034
26034
  return e.enter("tableRow"), X(L);
26035
26035
  }
26036
26036
  function X(L) {
26037
- return L === 124 ? (e.enter("tableCellDivider"), e.consume(L), e.exit("tableCellDivider"), X) : L === null || me(L) ? (e.exit("tableRow"), n(L)) : Ce(L) ? Ze(e, X, "whitespace")(L) : (e.enter("data"), ce(L));
26037
+ return L === 124 ? (e.enter("tableCellDivider"), e.consume(L), e.exit("tableCellDivider"), X) : L === null || ge(L) ? (e.exit("tableRow"), n(L)) : Ce(L) ? Ze(e, X, "whitespace")(L) : (e.enter("data"), ce(L));
26038
26038
  }
26039
26039
  function ce(L) {
26040
26040
  return L === null || L === 124 || Ke(L) ? (e.exit("data"), X(L)) : (e.consume(L), L === 92 ? he : ce);
@@ -26129,7 +26129,7 @@ function ED(e, n, i) {
26129
26129
  return m === 93 ? (e.enter("taskListCheckMarker"), e.consume(m), e.exit("taskListCheckMarker"), e.exit("taskListCheck"), h) : i(m);
26130
26130
  }
26131
26131
  function h(m) {
26132
- return me(m) ? n(m) : Ce(m) ? e.check({
26132
+ return ge(m) ? n(m) : Ce(m) ? e.check({
26133
26133
  tokenize: zD
26134
26134
  }, n, i)(m) : i(m);
26135
26135
  }
@@ -26393,8 +26393,8 @@ function J0({
26393
26393
  const te = sessionStorage.getItem(K);
26394
26394
  if (te)
26395
26395
  try {
26396
- const ve = JSON.parse(te);
26397
- if (Array.isArray(ve) && ve.length > 0) return ve;
26396
+ const me = JSON.parse(te);
26397
+ if (Array.isArray(me) && me.length > 0) return me;
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: ve, parameters: z }) => ({
26417
+ actions: h.map(({ name: te, description: me, parameters: z }) => ({
26418
26418
  name: te,
26419
- description: ve,
26419
+ description: me,
26420
26420
  parameters: z
26421
26421
  }))
26422
26422
  } : {}
@@ -26441,19 +26441,26 @@ 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 ve of te.parts)
26445
- if (ve.type.startsWith("tool-")) {
26446
- const z = ve;
26447
- if (z.state === "output-available" && !g.current.has(z.toolCallId)) {
26448
- const A = h.find((H) => H.name === z.toolName);
26449
- if (A) {
26450
- g.current.add(z.toolCallId);
26444
+ for (const me of te.parts)
26445
+ if (me.type.startsWith("tool-")) {
26446
+ const z = me, A = z.toolName || me.type.slice(5);
26447
+ if (console.log("[agentsgt-widget] Tool part detected:", {
26448
+ type: me.type,
26449
+ toolName: A,
26450
+ state: z.state,
26451
+ toolCallId: z.toolCallId,
26452
+ input: z.input
26453
+ }), z.state === "output-available" && !g.current.has(z.toolCallId)) {
26454
+ const H = h.find((x) => x.name === A);
26455
+ if (H) {
26456
+ console.log(`[agentsgt-widget] Executing action "${A}"`, z.input), g.current.add(z.toolCallId);
26451
26457
  try {
26452
- A.handler(z.input);
26453
- } catch (H) {
26454
- console.error(`[agentsgt-widget] Action "${A.name}" failed:`, H);
26458
+ H.handler(z.input);
26459
+ } catch (x) {
26460
+ console.error(`[agentsgt-widget] Action "${H.name}" failed:`, x);
26455
26461
  }
26456
- }
26462
+ } else
26463
+ console.warn(`[agentsgt-widget] No matching action for "${A}"`);
26457
26464
  }
26458
26465
  }
26459
26466
  }
@@ -26463,7 +26470,7 @@ function J0({
26463
26470
  B && (async () => {
26464
26471
  var te;
26465
26472
  try {
26466
- const ve = await fetch(
26473
+ const me = await fetch(
26467
26474
  `${w}/api/v1/agents/agent/${B}`,
26468
26475
  {
26469
26476
  headers: {
@@ -26472,8 +26479,8 @@ function J0({
26472
26479
  }
26473
26480
  }
26474
26481
  );
26475
- if (ve.ok) {
26476
- const z = await ve.json();
26482
+ if (me.ok) {
26483
+ const z = await me.json();
26477
26484
  b(z.data);
26478
26485
  const A = ((te = z.data.language) == null ? void 0 : te.toLowerCase()) || "english", H = Object.keys(hf);
26479
26486
  T(