@aintela/chat 0.2.31 → 0.2.33

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 (30) hide show
  1. package/dist/{atMentions-DqhG_vde.js → atMentions-C5Fs9Yab.js} +32 -32
  2. package/dist/{atMentions-DqhG_vde.js.map → atMentions-C5Fs9Yab.js.map} +1 -1
  3. package/dist/{auth-BN22f1HF.js → auth-ffNUief3.js} +2 -2
  4. package/dist/{auth-BN22f1HF.js.map → auth-ffNUief3.js.map} +1 -1
  5. package/dist/components.js +4880 -4771
  6. package/dist/components.js.map +1 -1
  7. package/dist/hooks.js +2 -2
  8. package/dist/{httpArtifactService-RtW5tek8.js → httpArtifactService-hGsIslw7.js} +2 -2
  9. package/dist/{httpArtifactService-RtW5tek8.js.map → httpArtifactService-hGsIslw7.js.map} +1 -1
  10. package/dist/{httpSessionService-BO81zAcx.js → httpSessionService-M1IKQIQK.js} +2 -2
  11. package/dist/{httpSessionService-BO81zAcx.js.map → httpSessionService-M1IKQIQK.js.map} +1 -1
  12. package/dist/index.js +7 -7
  13. package/dist/models.js +1 -1
  14. package/dist/{serializer-DTyYgExG.js → serializer-uea8YsIP.js} +165 -165
  15. package/dist/serializer-uea8YsIP.js.map +1 -0
  16. package/dist/services.js +2 -2
  17. package/dist/src/hooks/index.d.ts +1 -1
  18. package/dist/src/hooks/usePromptAssist.d.ts +34 -1
  19. package/dist/src/models/semanticKernelModel/models.d.ts +3 -3
  20. package/dist/src/services/httpPromptAssistService.d.ts +6 -1
  21. package/dist/src/utils/atMentions.d.ts +10 -6
  22. package/dist/{useChatSessions-C9IQGLh_.js → useChatSessions-C-XVE-h3.js} +2 -2
  23. package/dist/{useChatSessions-C9IQGLh_.js.map → useChatSessions-C-XVE-h3.js.map} +1 -1
  24. package/dist/useContainerWidth-Cs50UcTK.js +309 -0
  25. package/dist/useContainerWidth-Cs50UcTK.js.map +1 -0
  26. package/dist/utils.js +2 -2
  27. package/package.json +1 -1
  28. package/dist/serializer-DTyYgExG.js.map +0 -1
  29. package/dist/useContainerWidth-D0CQQqZ2.js +0 -262
  30. package/dist/useContainerWidth-D0CQQqZ2.js.map +0 -1
@@ -2,8 +2,8 @@ var wt = Object.defineProperty;
2
2
  var Jt = (s, t, i) => t in s ? wt(s, t, { enumerable: !0, configurable: !0, writable: !0, value: i }) : s[t] = i;
3
3
  var l = (s, t) => wt(s, "name", { value: t, configurable: !0 });
4
4
  var e = (s, t, i) => Jt(s, typeof t != "symbol" ? t + "" : t, i);
5
- import { E as m, q as Ft, A as Wt, G as $t } from "./environmentUtils-CUVZ6Dq1.js";
6
- import { jsonMember as o, jsonObject as d, AnyT as It, jsonArrayMember as ft, TypedJSON as vt } from "typedjson";
5
+ import { E as m, q as It, A as Wt, G as $t } from "./environmentUtils-CUVZ6Dq1.js";
6
+ import { jsonMember as o, jsonObject as d, AnyT as _, jsonArrayMember as St, TypedJSON as vt } from "typedjson";
7
7
  const w = class w {
8
8
  static replaceFirstTwoTabsPerLine(t) {
9
9
  const i = /^\s{15}/gm;
@@ -96,7 +96,7 @@ const w = class w {
96
96
  return {
97
97
  text: t,
98
98
  eventType: m.Text,
99
- id: r ?? Ft(),
99
+ id: r ?? It(),
100
100
  created: /* @__PURE__ */ new Date(),
101
101
  author: i ?? "main",
102
102
  partial: !1,
@@ -113,7 +113,7 @@ const w = class w {
113
113
  */
114
114
  static fromUserUi(t, i, r) {
115
115
  return {
116
- id: r ?? Ft(),
116
+ id: r ?? It(),
117
117
  eventType: m.UserAnswer,
118
118
  author: "user",
119
119
  created: /* @__PURE__ */ new Date(),
@@ -210,36 +210,36 @@ const x = {
210
210
  StreamingFinalFunctionResultContent: "StreamingFinalFunctionResultContent",
211
211
  StreamingClientOutputContent: "StreamingClientOutputContent"
212
212
  };
213
- var L;
214
- let Tt = (L = class {
213
+ var J;
214
+ let xt = (J = class {
215
215
  constructor() {
216
216
  e(this, "label");
217
217
  }
218
- }, l(L, "AuthorRole"), L);
218
+ }, l(J, "AuthorRole"), J);
219
219
  n([
220
220
  o(String)
221
- ], Tt.prototype, "label", 2);
222
- Tt = n([
221
+ ], xt.prototype, "label", 2);
222
+ xt = n([
223
223
  d({ name: "AuthorRole" })
224
- ], Tt);
225
- var J;
226
- let ct = (J = class {
224
+ ], xt);
225
+ var W;
226
+ let mt = (W = class {
227
227
  constructor() {
228
228
  e(this, "type");
229
229
  e(this, "fullName");
230
230
  }
231
- }, l(J, "EventTypeInformation"), J);
231
+ }, l(W, "EventTypeInformation"), W);
232
232
  n([
233
233
  o(String)
234
- ], ct.prototype, "type", 2);
234
+ ], mt.prototype, "type", 2);
235
235
  n([
236
236
  o(String)
237
- ], ct.prototype, "fullName", 2);
238
- ct = n([
237
+ ], mt.prototype, "fullName", 2);
238
+ mt = n([
239
239
  d({ name: "EventTypeInformation" })
240
- ], ct);
241
- var W;
242
- let R = (W = class {
240
+ ], mt);
241
+ var $;
242
+ let R = ($ = class {
243
243
  constructor() {
244
244
  e(this, "id");
245
245
  e(this, "name");
@@ -256,7 +256,7 @@ let R = (W = class {
256
256
  id: this.id
257
257
  };
258
258
  }
259
- }, l(W, "LlmArtifact"), W);
259
+ }, l($, "LlmArtifact"), $);
260
260
  n([
261
261
  o(String)
262
262
  ], R.prototype, "id", 2);
@@ -272,8 +272,8 @@ n([
272
272
  R = n([
273
273
  d({ name: "LlmArtifact" })
274
274
  ], R);
275
- var $;
276
- let h = ($ = class {
275
+ var G;
276
+ let h = (G = class {
277
277
  constructor() {
278
278
  e(this, "mimeType");
279
279
  // InnerContent is ignored (JsonIgnore in C#)
@@ -282,7 +282,7 @@ let h = ($ = class {
282
282
  e(this, "modelId");
283
283
  e(this, "metadata");
284
284
  }
285
- }, l($, "KernelContent"), $);
285
+ }, l(G, "KernelContent"), G);
286
286
  n([
287
287
  o(String)
288
288
  ], h.prototype, "mimeType", 2);
@@ -290,13 +290,13 @@ n([
290
290
  o(String)
291
291
  ], h.prototype, "modelId", 2);
292
292
  n([
293
- o(It)
293
+ o(_)
294
294
  ], h.prototype, "metadata", 2);
295
295
  h = n([
296
296
  d({ name: "KernelContent" })
297
297
  ], h);
298
- var G;
299
- let C = (G = class {
298
+ var q;
299
+ let C = (q = class {
300
300
  constructor() {
301
301
  e(this, "choiceIndex", 0);
302
302
  // InnerContent is ignored (JsonIgnore in C#)
@@ -305,7 +305,7 @@ let C = (G = class {
305
305
  e(this, "modelId");
306
306
  e(this, "metadata");
307
307
  }
308
- }, l(G, "StreamingKernelContent"), G);
308
+ }, l(q, "StreamingKernelContent"), q);
309
309
  n([
310
310
  o(Number)
311
311
  ], C.prototype, "choiceIndex", 2);
@@ -318,8 +318,8 @@ n([
318
318
  C = n([
319
319
  d({ name: "StreamingKernelContent" })
320
320
  ], C);
321
- var q;
322
- let xt = (q = class extends h {
321
+ var M;
322
+ let ht = (M = class extends h {
323
323
  constructor() {
324
324
  super();
325
325
  e(this, "text");
@@ -331,22 +331,22 @@ let xt = (q = class extends h {
331
331
  toString() {
332
332
  return this.text ?? "";
333
333
  }
334
- }, l(q, "TextContent"), q);
334
+ }, l(M, "TextContent"), M);
335
335
  n([
336
336
  o(String)
337
- ], xt.prototype, "text", 2);
338
- xt = n([
337
+ ], ht.prototype, "text", 2);
338
+ ht = n([
339
339
  d({ name: "TextContent" })
340
- ], xt);
341
- var M;
342
- let v = (M = class extends C {
340
+ ], ht);
341
+ var B;
342
+ let v = (B = class extends C {
343
343
  constructor() {
344
344
  super();
345
345
  e(this, "eventName");
346
346
  e(this, "eventData");
347
347
  e(this, "sessionId");
348
348
  }
349
- }, l(M, "StreamingToolEventContent"), M);
349
+ }, l(B, "StreamingToolEventContent"), B);
350
350
  n([
351
351
  o(String)
352
352
  ], v.prototype, "eventName", 2);
@@ -359,15 +359,15 @@ n([
359
359
  v = n([
360
360
  d({ name: "StreamingToolEventContent" })
361
361
  ], v);
362
- var B;
363
- let P = (B = class extends h {
362
+ var K;
363
+ let P = (K = class extends h {
364
364
  constructor() {
365
365
  super();
366
366
  e(this, "eventName");
367
367
  e(this, "eventData");
368
368
  e(this, "sessionId");
369
369
  }
370
- }, l(B, "ToolEventContent"), B);
370
+ }, l(K, "ToolEventContent"), K);
371
371
  n([
372
372
  o(String)
373
373
  ], P.prototype, "eventName", 2);
@@ -380,25 +380,25 @@ n([
380
380
  P = n([
381
381
  d({ name: "ToolEventContent" })
382
382
  ], P);
383
- var K;
384
- let ht = (K = class extends h {
383
+ var H;
384
+ let Ct = (H = class extends h {
385
385
  constructor() {
386
386
  super(...arguments);
387
387
  e(this, "url");
388
388
  e(this, "dataUri");
389
389
  }
390
- }, l(K, "ImageContent"), K);
390
+ }, l(H, "ImageContent"), H);
391
391
  n([
392
392
  o(String)
393
- ], ht.prototype, "url", 2);
393
+ ], Ct.prototype, "url", 2);
394
394
  n([
395
395
  o(String)
396
- ], ht.prototype, "dataUri", 2);
397
- ht = n([
396
+ ], Ct.prototype, "dataUri", 2);
397
+ Ct = n([
398
398
  d({ name: "ImageContent" })
399
- ], ht);
400
- var H;
401
- let A = (H = class extends h {
399
+ ], Ct);
400
+ var Y;
401
+ let A = (Y = class extends h {
402
402
  constructor() {
403
403
  super(...arguments);
404
404
  e(this, "id");
@@ -408,7 +408,7 @@ let A = (H = class extends h {
408
408
  // Exception is not serializable - omit jsonMember decorator
409
409
  e(this, "exception");
410
410
  }
411
- }, l(H, "FunctionCallContent"), H);
411
+ }, l(Y, "FunctionCallContent"), Y);
412
412
  n([
413
413
  o(String)
414
414
  ], A.prototype, "id", 2);
@@ -419,19 +419,19 @@ n([
419
419
  o(String)
420
420
  ], A.prototype, "functionName", 2);
421
421
  n([
422
- o(It)
422
+ o(_)
423
423
  ], A.prototype, "arguments", 2);
424
424
  A = n([
425
425
  d({ name: "FunctionCallContent" })
426
426
  ], A);
427
- var Y;
428
- let k = (Y = class {
427
+ var Q;
428
+ let k = (Q = class {
429
429
  constructor() {
430
430
  e(this, "isUi");
431
431
  e(this, "askUserComponent");
432
432
  e(this, "argsDescription");
433
433
  }
434
- }, l(Y, "ToolCallPresentation"), Y);
434
+ }, l(Q, "ToolCallPresentation"), Q);
435
435
  n([
436
436
  o(Boolean)
437
437
  ], k.prototype, "isUi", 2);
@@ -445,8 +445,8 @@ k = n([
445
445
  d({ name: "ToolCallPresentation" })
446
446
  ], k);
447
447
  const Mt = "aia:presentation";
448
- var Q;
449
- let b = (Q = class extends C {
448
+ var V;
449
+ let b = (V = class extends C {
450
450
  constructor() {
451
451
  super(...arguments);
452
452
  e(this, "id");
@@ -454,7 +454,7 @@ let b = (Q = class extends C {
454
454
  e(this, "arguments");
455
455
  e(this, "presentation");
456
456
  }
457
- }, l(Q, "StreamingFinalFunctionCallContent"), Q);
457
+ }, l(V, "StreamingFinalFunctionCallContent"), V);
458
458
  n([
459
459
  o(String, { name: "callId" })
460
460
  ], b.prototype, "id", 2);
@@ -470,8 +470,8 @@ n([
470
470
  b = n([
471
471
  d({ name: "StreamingFinalFunctionCallContent" })
472
472
  ], b);
473
- var V;
474
- let U = (V = class extends h {
473
+ var X;
474
+ let U = (X = class extends h {
475
475
  constructor() {
476
476
  super(...arguments);
477
477
  e(this, "id");
@@ -479,7 +479,7 @@ let U = (V = class extends h {
479
479
  e(this, "functionName");
480
480
  e(this, "result");
481
481
  }
482
- }, l(V, "FunctionResultContent"), V);
482
+ }, l(X, "FunctionResultContent"), X);
483
483
  n([
484
484
  o(String, { name: "callId" })
485
485
  ], U.prototype, "id", 2);
@@ -490,13 +490,13 @@ n([
490
490
  o(String)
491
491
  ], U.prototype, "functionName", 2);
492
492
  n([
493
- o(It)
493
+ o(_)
494
494
  ], U.prototype, "result", 2);
495
495
  U = n([
496
496
  d({ name: "FunctionResultContent" })
497
497
  ], U);
498
- var X;
499
- let I = (X = class extends C {
498
+ var Z;
499
+ let I = (Z = class extends C {
500
500
  constructor() {
501
501
  super(...arguments);
502
502
  e(this, "id");
@@ -506,7 +506,7 @@ let I = (X = class extends C {
506
506
  e(this, "presentation");
507
507
  e(this, "clientOutput");
508
508
  }
509
- }, l(X, "StreamingFinalFunctionResultContent"), X);
509
+ }, l(Z, "StreamingFinalFunctionResultContent"), Z);
510
510
  n([
511
511
  o(String, { name: "callId" })
512
512
  ], I.prototype, "id", 2);
@@ -517,87 +517,87 @@ n([
517
517
  o(String)
518
518
  ], I.prototype, "functionName", 2);
519
519
  n([
520
- o(It)
520
+ o(_)
521
521
  ], I.prototype, "result", 2);
522
522
  n([
523
523
  o(k)
524
524
  ], I.prototype, "presentation", 2);
525
525
  n([
526
- o(String)
526
+ o(_)
527
527
  ], I.prototype, "clientOutput", 2);
528
528
  I = n([
529
529
  d({ name: "StreamingFinalFunctionResultContent" })
530
530
  ], I);
531
- var Z;
532
- let mt = (Z = class extends h {
531
+ var j;
532
+ let gt = (j = class extends h {
533
533
  constructor() {
534
534
  super(...arguments);
535
535
  e(this, "id");
536
536
  e(this, "data");
537
537
  }
538
- }, l(Z, "FunctionClientOutputContent"), Z);
538
+ }, l(j, "FunctionClientOutputContent"), j);
539
539
  n([
540
540
  o(String, { name: "callId" })
541
- ], mt.prototype, "id", 2);
541
+ ], gt.prototype, "id", 2);
542
542
  n([
543
- o(String)
544
- ], mt.prototype, "data", 2);
545
- mt = n([
543
+ o(_)
544
+ ], gt.prototype, "data", 2);
545
+ gt = n([
546
546
  d({ name: "FunctionClientOutputContent" })
547
- ], mt);
548
- var j;
549
- let gt = (j = class extends C {
547
+ ], gt);
548
+ var tt;
549
+ let dt = (tt = class extends C {
550
550
  constructor() {
551
551
  super(...arguments);
552
552
  e(this, "id");
553
553
  e(this, "clientOutput");
554
554
  }
555
- }, l(j, "StreamingClientOutputContent"), j);
555
+ }, l(tt, "StreamingClientOutputContent"), tt);
556
556
  n([
557
557
  o(String, { name: "callId" })
558
- ], gt.prototype, "id", 2);
558
+ ], dt.prototype, "id", 2);
559
559
  n([
560
- o(String)
561
- ], gt.prototype, "clientOutput", 2);
562
- gt = n([
560
+ o(_)
561
+ ], dt.prototype, "clientOutput", 2);
562
+ dt = n([
563
563
  d({ name: "StreamingClientOutputContent" })
564
- ], gt);
565
- var tt;
566
- let dt = (tt = class extends h {
564
+ ], dt);
565
+ var et;
566
+ let yt = (et = class extends h {
567
567
  constructor() {
568
568
  super(...arguments);
569
569
  e(this, "name");
570
570
  e(this, "args");
571
571
  }
572
- }, l(tt, "UserUiContent"), tt);
572
+ }, l(et, "UserUiContent"), et);
573
573
  n([
574
574
  o(String)
575
- ], dt.prototype, "name", 2);
575
+ ], yt.prototype, "name", 2);
576
576
  n([
577
577
  o(String)
578
- ], dt.prototype, "args", 2);
579
- dt = n([
578
+ ], yt.prototype, "args", 2);
579
+ yt = n([
580
580
  d({ name: "UserUiContent" })
581
- ], dt);
582
- var et;
583
- let yt = (et = class extends h {
581
+ ], yt);
582
+ var nt;
583
+ let ft = (nt = class extends h {
584
584
  constructor() {
585
585
  super(...arguments);
586
586
  e(this, "role");
587
587
  e(this, "items");
588
588
  }
589
- }, l(et, "ChatMessageContent"), et);
589
+ }, l(nt, "ChatMessageContent"), nt);
590
590
  n([
591
- o(Tt)
592
- ], yt.prototype, "role", 2);
591
+ o(xt)
592
+ ], ft.prototype, "role", 2);
593
593
  n([
594
- ft(() => h)
595
- ], yt.prototype, "items", 2);
596
- yt = n([
594
+ St(() => h)
595
+ ], ft.prototype, "items", 2);
596
+ ft = n([
597
597
  d({ name: "ChatMessageContent" })
598
- ], yt);
599
- var nt;
600
- let O = (nt = class extends C {
598
+ ], ft);
599
+ var it;
600
+ let O = (it = class extends C {
601
601
  constructor() {
602
602
  super(...arguments);
603
603
  e(this, "callId");
@@ -605,7 +605,7 @@ let O = (nt = class extends C {
605
605
  e(this, "arguments");
606
606
  e(this, "functionCallIndex", 0);
607
607
  }
608
- }, l(nt, "StreamingFunctionCallUpdateContent"), nt);
608
+ }, l(it, "StreamingFunctionCallUpdateContent"), it);
609
609
  n([
610
610
  o(String)
611
611
  ], O.prototype, "callId", 2);
@@ -621,8 +621,8 @@ n([
621
621
  O = n([
622
622
  d({ name: "StreamingFunctionCallUpdateContent" })
623
623
  ], O);
624
- var it;
625
- let Ct = (it = class extends C {
624
+ var ot;
625
+ let Dt = (ot = class extends C {
626
626
  constructor() {
627
627
  super(...arguments);
628
628
  e(this, "text");
@@ -630,15 +630,15 @@ let Ct = (it = class extends C {
630
630
  // Not decorated with @jsonMember
631
631
  e(this, "encoding");
632
632
  }
633
- }, l(it, "StreamingTextContent"), it);
633
+ }, l(ot, "StreamingTextContent"), ot);
634
634
  n([
635
635
  o(String)
636
- ], Ct.prototype, "text", 2);
637
- Ct = n([
636
+ ], Dt.prototype, "text", 2);
637
+ Dt = n([
638
638
  d({ name: "StreamingTextContent" })
639
- ], Ct);
640
- var ot;
641
- let Dt = (ot = class extends C {
639
+ ], Dt);
640
+ var rt;
641
+ let Et = (rt = class extends C {
642
642
  constructor() {
643
643
  super(...arguments);
644
644
  e(this, "text");
@@ -646,21 +646,21 @@ let Dt = (ot = class extends C {
646
646
  // Not decorated with @jsonMember
647
647
  e(this, "encoding");
648
648
  }
649
- }, l(ot, "StreamingReasoningContent"), ot);
649
+ }, l(rt, "StreamingReasoningContent"), rt);
650
650
  n([
651
651
  o(String)
652
- ], Dt.prototype, "text", 2);
653
- Dt = n([
652
+ ], Et.prototype, "text", 2);
653
+ Et = n([
654
654
  d({ name: "StreamingReasoningContent" })
655
- ], Dt);
656
- var rt;
657
- let z = (rt = class {
655
+ ], Et);
656
+ var at;
657
+ let z = (at = class {
658
658
  constructor() {
659
659
  e(this, "instructionCategory", "");
660
660
  e(this, "description", "");
661
661
  e(this, "interactionId", "");
662
662
  }
663
- }, l(rt, "InstructionSummary"), rt);
663
+ }, l(at, "InstructionSummary"), at);
664
664
  n([
665
665
  o(String)
666
666
  ], z.prototype, "instructionCategory", 2);
@@ -673,8 +673,8 @@ n([
673
673
  z = n([
674
674
  d({ name: "InstructionSummary" })
675
675
  ], z);
676
- var at;
677
- let E = (at = class {
676
+ var st;
677
+ let E = (st = class {
678
678
  constructor() {
679
679
  e(this, "size", 0);
680
680
  e(this, "originalSize", 0);
@@ -685,7 +685,7 @@ let E = (at = class {
685
685
  e(this, "id");
686
686
  e(this, "instructionSummaries", []);
687
687
  }
688
- }, l(at, "SessionInformation"), at);
688
+ }, l(st, "SessionInformation"), st);
689
689
  n([
690
690
  o(Number)
691
691
  ], E.prototype, "size", 2);
@@ -708,13 +708,13 @@ n([
708
708
  o(String)
709
709
  ], E.prototype, "id", 2);
710
710
  n([
711
- ft(z)
711
+ St(z)
712
712
  ], E.prototype, "instructionSummaries", 2);
713
713
  E = n([
714
714
  d({ name: "SessionInformation" })
715
715
  ], E);
716
- var st;
717
- let S = (st = class {
716
+ var pt;
717
+ let S = (pt = class {
718
718
  constructor() {
719
719
  e(this, "timestamp");
720
720
  e(this, "mimeType");
@@ -735,7 +735,7 @@ let S = (st = class {
735
735
  e(this, "subAgentName");
736
736
  e(this, "text");
737
737
  }
738
- }, l(st, "LlmEvent"), st);
738
+ }, l(pt, "LlmEvent"), pt);
739
739
  n([
740
740
  o(Number)
741
741
  ], S.prototype, "timestamp", 2);
@@ -761,31 +761,31 @@ n([
761
761
  o(E)
762
762
  ], S.prototype, "sessionInformation", 2);
763
763
  n([
764
- o(ct)
764
+ o(mt)
765
765
  ], S.prototype, "eventType", 2);
766
766
  n([
767
- ft(R)
767
+ St(R)
768
768
  ], S.prototype, "artifactsGenerated", 2);
769
769
  n([
770
770
  o(String)
771
771
  ], S.prototype, "author", 2);
772
772
  n([
773
- o(Tt)
773
+ o(xt)
774
774
  ], S.prototype, "role", 2);
775
775
  n([
776
776
  o(String)
777
777
  ], S.prototype, "command", 2);
778
778
  n([
779
- o(yt)
779
+ o(ft)
780
780
  ], S.prototype, "content", 2);
781
781
  n([
782
- ft(() => C)
782
+ St(() => C)
783
783
  ], S.prototype, "streamingParts", 2);
784
784
  S = n([
785
785
  d({ name: "LlmEvent" })
786
786
  ], S);
787
- var pt;
788
- let D = (pt = class {
787
+ var lt;
788
+ let D = (lt = class {
789
789
  constructor() {
790
790
  e(this, "timeStamp");
791
791
  e(this, "partialText");
@@ -798,7 +798,7 @@ let D = (pt = class {
798
798
  e(this, "partialEventType");
799
799
  e(this, "subAgentId");
800
800
  }
801
- }, l(pt, "PartialLlmEvent"), pt);
801
+ }, l(lt, "PartialLlmEvent"), lt);
802
802
  n([
803
803
  o(Number, { name: "ts" })
804
804
  ], D.prototype, "timeStamp", 2);
@@ -812,7 +812,7 @@ n([
812
812
  o(String, { name: "fn" })
813
813
  ], D.prototype, "functionName", 2);
814
814
  n([
815
- ft(() => C)
815
+ St(() => C)
816
816
  ], D.prototype, "streamingParts", 2);
817
817
  n([
818
818
  o(String, { name: "fid" })
@@ -824,7 +824,7 @@ n([
824
824
  o(String, { name: "itid" })
825
825
  ], D.prototype, "iteractionId", 2);
826
826
  n([
827
- o(ct)
827
+ o(mt)
828
828
  ], D.prototype, "partialEventType", 2);
829
829
  n([
830
830
  o(String, { name: "said" })
@@ -832,8 +832,8 @@ n([
832
832
  D = n([
833
833
  d({ name: "PartialLlmEvent" })
834
834
  ], D);
835
- var lt;
836
- let F = (lt = class {
835
+ var ut;
836
+ let F = (ut = class {
837
837
  constructor() {
838
838
  e(this, "type");
839
839
  e(this, "event");
@@ -844,7 +844,7 @@ let F = (lt = class {
844
844
  e(this, "subAgentName");
845
845
  e(this, "seq");
846
846
  }
847
- }, l(lt, "StreamingResponse"), lt);
847
+ }, l(ut, "StreamingResponse"), ut);
848
848
  n([
849
849
  o(String)
850
850
  ], F.prototype, "type", 2);
@@ -872,14 +872,14 @@ n([
872
872
  F = n([
873
873
  d({ name: "StreamingResponse" })
874
874
  ], F);
875
- var ut;
876
- let At = (ut = class {
875
+ var ct;
876
+ let At = (ct = class {
877
877
  constructor() {
878
878
  e(this, "events");
879
879
  }
880
- }, l(ut, "Payload"), ut);
880
+ }, l(ct, "Payload"), ct);
881
881
  n([
882
- ft(S)
882
+ St(S)
883
883
  ], At.prototype, "events", 2);
884
884
  At = n([
885
885
  d({ name: "Payload" })
@@ -972,10 +972,10 @@ const N = class N {
972
972
  return i.mimeType = t.mimeType, i.created = new Date(t.timestamp), i.eventType = m.NotDefined, i.partial = ((p = (a = t.partial) == null ? void 0 : a.toString()) == null ? void 0 : p.toLowerCase()) === "true", i.turn_complete = t.turnComplete, i.visible = t.visible, i.isFinalResponse = t.turnComplete ?? !1, i.artifactsDelta = [], t.artifactsGenerated && t.artifactsGenerated.length > 0 && (i.created = new Date(t.timestamp), i.llmArtifacts = t.artifactsGenerated), i.subAgentId = t.subAgentId, i.subAgentName = t.subAgentName, i;
973
973
  }
974
974
  static getPartType(t) {
975
- return t instanceof xt ? "TextContent" : t instanceof A ? "FunctionCallContent" : t instanceof U ? "FunctionResultContent" : t instanceof O ? "StreamingFunctionCallUpdateContent" : t instanceof b ? "StreamingFinalFunctionCallContent" : t instanceof I ? "StreamingFinalFunctionResultContent" : t instanceof mt ? "FunctionClientOutputContent" : t instanceof gt ? "StreamingClientOutputContent" : t instanceof dt ? "UserUiContent" : t instanceof Ct ? "StreamingTextContent" : t instanceof Dt ? "StreamingReasoningContent" : t instanceof P ? "ToolEventContent" : t instanceof v ? "StreamingToolEventContent" : "Unknown";
975
+ return t instanceof ht ? "TextContent" : t instanceof A ? "FunctionCallContent" : t instanceof U ? "FunctionResultContent" : t instanceof O ? "StreamingFunctionCallUpdateContent" : t instanceof b ? "StreamingFinalFunctionCallContent" : t instanceof I ? "StreamingFinalFunctionResultContent" : t instanceof gt ? "FunctionClientOutputContent" : t instanceof dt ? "StreamingClientOutputContent" : t instanceof yt ? "UserUiContent" : t instanceof Dt ? "StreamingTextContent" : t instanceof Et ? "StreamingReasoningContent" : t instanceof P ? "ToolEventContent" : t instanceof v ? "StreamingToolEventContent" : "Unknown";
976
976
  }
977
977
  static parseFromTypedEvent(t) {
978
- var p, c, g, _, bt, Ut, Ot;
978
+ var p, c, g, L, bt, Ut, Ot;
979
979
  const i = N.parseFlatPropertiesTypedEvent(t);
980
980
  if (i.serverError)
981
981
  return i.parts.push(Nt.fromError(i.serverError)), i;
@@ -1011,17 +1011,17 @@ const N = class N {
1011
1011
  if (typeof a.result == "object")
1012
1012
  y = a.result;
1013
1013
  else if (typeof a.result == "string") {
1014
- const St = JSON.parse(a.result);
1015
- y = typeof St == "object" && St !== null ? St : a.result;
1014
+ const Tt = JSON.parse(a.result);
1015
+ y = typeof Tt == "object" && Tt !== null ? Tt : a.result;
1016
1016
  } else
1017
1017
  y = a.result;
1018
- } catch (St) {
1019
- console.warn("Parse function error", St), y = a == null ? void 0 : a.result;
1018
+ } catch (Tt) {
1019
+ console.warn("Parse function error", Tt), y = a == null ? void 0 : a.result;
1020
1020
  }
1021
1021
  u.thoughtDetails = {
1022
1022
  text: ""
1023
1023
  };
1024
- const Et = Bt(a);
1024
+ const Ft = Bt(a);
1025
1025
  u.functionDetails = {
1026
1026
  id: (a == null ? void 0 : a.id) ?? "",
1027
1027
  args: a == null ? void 0 : a.arguments,
@@ -1031,19 +1031,19 @@ const N = class N {
1031
1031
  name: (a == null ? void 0 : a.functionName) ?? "",
1032
1032
  status: u.eventType == m.FunctionCall ? "Executing" : "Done",
1033
1033
  response: y,
1034
- isUi: Et.isUi,
1035
- argsDescription: Et.argsDescription,
1034
+ isUi: Ft.isUi,
1035
+ argsDescription: Ft.argsDescription,
1036
1036
  // Client-only payload riding the RESULT event: live top-level `clientOutput`, or
1037
1037
  // metadata.clientOutput on the collapsed/persisted result. Calls leave it undefined.
1038
1038
  // The persisted-replay form also folds in via FunctionClientOutputContent.
1039
1039
  clientOutput: (a == null ? void 0 : a.clientOutput) ?? ((g = a == null ? void 0 : a.metadata) == null ? void 0 : g.clientOutput),
1040
- askUserComponent: Et.askUserComponent,
1040
+ askUserComponent: Ft.askUserComponent,
1041
1041
  // Runtime "don't render" override on a RESULT (CallContext.CancelUiRender).
1042
- cancelUi: Et.cancelUi
1042
+ cancelUi: Ft.cancelUi
1043
1043
  }, u.functionDetails.isAskUser = !!u.functionDetails.askUserComponent, t.text = a == null ? void 0 : a.arguments;
1044
1044
  }
1045
1045
  } else if (T == x.StreamingTextContent)
1046
- u.eventType = m.Text, u.text = (_ = f == null ? void 0 : f.text) == null ? void 0 : _.replaceAll("\\n", `
1046
+ u.eventType = m.Text, u.text = (L = f == null ? void 0 : f.text) == null ? void 0 : L.replaceAll("\\n", `
1047
1047
  `), u.textLastChunk = f.text, t.text = u.text;
1048
1048
  else if (T == x.TextContent)
1049
1049
  u.eventType = m.Text, u.text = (bt = f == null ? void 0 : f.text) == null ? void 0 : bt.replaceAll("\\n", `
@@ -1127,7 +1127,7 @@ const N = class N {
1127
1127
  thoughtDetails: {
1128
1128
  text: i
1129
1129
  },
1130
- id: Ft(),
1130
+ id: It(),
1131
1131
  created: /* @__PURE__ */ new Date(),
1132
1132
  eventType: m.Thought,
1133
1133
  author: "main",
@@ -1175,7 +1175,7 @@ const N = class N {
1175
1175
  thoughtDetails: r ? {
1176
1176
  text: r
1177
1177
  } : void 0,
1178
- id: Ft(),
1178
+ id: It(),
1179
1179
  created: /* @__PURE__ */ new Date(),
1180
1180
  // Part eventType MUST match the outer event's eventType.
1181
1181
  // Was previously `Thought` here, which made the merger
@@ -1199,22 +1199,22 @@ l(N, "ServerEvent");
1199
1199
  let Rt = N;
1200
1200
  const Pt = [
1201
1201
  // KernelContent derived types
1202
- xt,
1203
1202
  ht,
1203
+ Ct,
1204
1204
  A,
1205
1205
  P,
1206
1206
  U,
1207
- mt,
1208
- dt,
1207
+ gt,
1209
1208
  yt,
1209
+ ft,
1210
1210
  // StreamingKernelContent derived types
1211
- Ct,
1212
- O,
1213
1211
  Dt,
1212
+ O,
1213
+ Et,
1214
1214
  v,
1215
1215
  b,
1216
1216
  I,
1217
- gt,
1217
+ dt,
1218
1218
  z
1219
1219
  ];
1220
1220
  function Kt(s) {
@@ -1270,7 +1270,7 @@ function Lt(s) {
1270
1270
  }
1271
1271
  if (p === '"') {
1272
1272
  let g = 0;
1273
- for (let _ = a - 1; _ >= 0 && s[_] === "\\"; _--)
1273
+ for (let L = a - 1; L >= 0 && s[L] === "\\"; L--)
1274
1274
  g++;
1275
1275
  g % 2 === 0 && (r = !r), i += p;
1276
1276
  continue;
@@ -1320,18 +1320,18 @@ function jt(s) {
1320
1320
  }
1321
1321
  l(jt, "serializeEvent");
1322
1322
  export {
1323
- yt as C,
1323
+ ft as C,
1324
1324
  A as F,
1325
1325
  Nt as I,
1326
1326
  S as L,
1327
1327
  x as P,
1328
1328
  Rt as S,
1329
- xt as T,
1329
+ ht as T,
1330
1330
  U as a,
1331
1331
  O as b,
1332
- Dt as c,
1332
+ Et as c,
1333
1333
  F as d,
1334
- Ct as e,
1334
+ Dt as e,
1335
1335
  _t as f,
1336
1336
  Ht as g,
1337
1337
  Zt as h,
@@ -1339,4 +1339,4 @@ export {
1339
1339
  jt as j,
1340
1340
  Lt as s
1341
1341
  };
1342
- //# sourceMappingURL=serializer-DTyYgExG.js.map
1342
+ //# sourceMappingURL=serializer-uea8YsIP.js.map