@aintela/chat 0.14.6 → 0.14.8
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/agent-team.d.ts +1 -1
- package/dist/components.d.ts +1 -1
- package/dist/components.js +83 -81
- package/dist/components.js.map +1 -1
- package/dist/hooks.d.ts +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/interfaces.d.ts +1 -1
- package/dist/models.d.ts +1 -1
- package/dist/services.d.ts +1 -1
- package/dist/src/ErrorBondary.d.ts +1 -1
- package/dist/src/components/AgentTeam/BillingLimitBanner.d.ts +1 -1
- package/dist/src/components/AgentTeam/ChatAgentHeader.d.ts +4 -4
- package/dist/src/components/AgentTeam/HandoffDivider.d.ts +1 -1
- package/dist/src/components/AgentTeam/PersonaAvatar.d.ts +2 -2
- package/dist/src/components/AiChat/ChatPane/AgentAvatar.d.ts +2 -2
- package/dist/src/components/AiChat/ChatPane/FloatingConnectionStatus.d.ts +1 -1
- package/dist/src/components/AiChat/ChatPane/GuestIcon.d.ts +2 -2
- package/dist/src/components/AiChat/ChatPane/parts/ReadOnlyGuard.d.ts +1 -1
- package/dist/src/components/Library/LinearBackgroundProgress.d.ts +1 -1
- package/dist/src/components/Library/LinearProgressBarWithMarkers.d.ts +1 -1
- package/dist/src/components/Library/SessionUsagePanel.d.ts +1 -1
- package/dist/src/components/Library/TurnAwareButton.d.ts +1 -1
- package/dist/src/components/v2/DetachedRunTaskBox.d.ts +1 -1
- package/dist/src/components/v2/DetachedRunTranscript.d.ts +1 -1
- package/dist/src/components/v2/MentionPickerPanel.d.ts +1 -1
- package/dist/src/components/v2/PromptDateMarkers.d.ts +1 -1
- package/dist/src/components/v2/PromptGhostHint.d.ts +1 -1
- package/dist/src/components/v2/SharedSessionTranscript.d.ts +1 -1
- package/dist/src/components/v2/TriggerDropdown.d.ts +1 -1
- package/dist/utils.d.ts +1 -1
- package/package.json +2 -2
package/dist/agent-team.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export * from './src/agentTeam'
|
|
1
|
+
export * from './src/agentTeam.js'
|
|
2
2
|
export {}
|
package/dist/components.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export * from './src/components/index'
|
|
1
|
+
export * from './src/components/index.js'
|
|
2
2
|
export {}
|
package/dist/components.js
CHANGED
|
@@ -11,7 +11,7 @@ import { C as nt } from "./Prompt-DZb7OaPp.js";
|
|
|
11
11
|
import { m as Lu, w as Ei, M as es, E as ue, i as yt, s as Fu } from "./serializer-Dagz_6VT.js";
|
|
12
12
|
import { enqueueSnackbar as ts } from "notistack";
|
|
13
13
|
import { r as ju, H as $u } from "./httpSessionService-BCe4DpgA.js";
|
|
14
|
-
import { useTheme as mt, alpha as
|
|
14
|
+
import { useTheme as mt, alpha as ke, createTheme as Bu } from "@mui/material/styles";
|
|
15
15
|
import { C as na, d as Hl, c as Wu, b as Nu, i as Hu } from "./detachedRunModel-X59Pb5V-.js";
|
|
16
16
|
import { E as Uu, L as Vu, H as qu, c as Ku, A as zn, u as Gu, I as Qo, W as Ti, s as Yu, r as Ju, a as Ul, C as Qu } from "./detachedRunActivity-Dw1Far2p.js";
|
|
17
17
|
import { devtools as Xu } from "zustand/middleware";
|
|
@@ -1248,7 +1248,7 @@ const mc = /* @__PURE__ */ t(({
|
|
|
1248
1248
|
onSessionCreated: rt,
|
|
1249
1249
|
onSessionEstablished: U,
|
|
1250
1250
|
onError: ne,
|
|
1251
|
-
onRenderPrompt:
|
|
1251
|
+
onRenderPrompt: Se,
|
|
1252
1252
|
onGatewayReady: Ye,
|
|
1253
1253
|
onVisibleQuestionChange: Xe,
|
|
1254
1254
|
onFirstToken: at,
|
|
@@ -1296,7 +1296,7 @@ const mc = /* @__PURE__ */ t(({
|
|
|
1296
1296
|
var Ke, Me;
|
|
1297
1297
|
return (Me = (Ke = Ve.current).onSessionEstablished) == null ? void 0 : Me.call(Ke, qe);
|
|
1298
1298
|
}, "onSessionEstablished"),
|
|
1299
|
-
onRenderPrompt:
|
|
1299
|
+
onRenderPrompt: Se,
|
|
1300
1300
|
onGatewayReady: /* @__PURE__ */ t((qe) => {
|
|
1301
1301
|
var Ke, Me;
|
|
1302
1302
|
return (Me = (Ke = Ve.current).onGatewayReady) == null ? void 0 : Me.call(Ke, qe);
|
|
@@ -1419,7 +1419,7 @@ const mc = /* @__PURE__ */ t(({
|
|
|
1419
1419
|
askUserPresentation: D ? "inline" : K,
|
|
1420
1420
|
askUserInlineContainer: N,
|
|
1421
1421
|
onNavigate: G,
|
|
1422
|
-
onRenderPrompt:
|
|
1422
|
+
onRenderPrompt: Se,
|
|
1423
1423
|
showToolCalls: Oe,
|
|
1424
1424
|
setShowToolCalls: lt,
|
|
1425
1425
|
summarizedReasoning: y,
|
|
@@ -1442,7 +1442,7 @@ const mc = /* @__PURE__ */ t(({
|
|
|
1442
1442
|
renderBillingLimit: j,
|
|
1443
1443
|
userMessageRenderer: ye,
|
|
1444
1444
|
interactionOriginLabels: J
|
|
1445
|
-
}), [
|
|
1445
|
+
}), [Se, on, or, Ne, pn, Qt, Jt, rn, Ht, w, A, T, d, R, u, D, L, W, K, N, G, Oe, Tt, Ut, Ln, hn, Te, ot, it, q, le, Be, Ue, Qe, ce, j, ye, J, jt]);
|
|
1446
1446
|
return /* @__PURE__ */ n(dn.Provider, { value: Vt, children: _t });
|
|
1447
1447
|
}, "AiChatProvider"), ze = /* @__PURE__ */ t((e, { size: r = 14, ...o }) => /* @__PURE__ */ n(
|
|
1448
1448
|
"svg",
|
|
@@ -2847,7 +2847,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
2847
2847
|
var _e = typeof self == "object" && self && self.Object === Object && self;
|
|
2848
2848
|
const Re = be || _e || Function("return this")(), We = Re.Symbol;
|
|
2849
2849
|
var Ze = Object.prototype, rt = Ze.hasOwnProperty, U = Ze.toString, ne = We ? We.toStringTag : void 0;
|
|
2850
|
-
const
|
|
2850
|
+
const Se = /* @__PURE__ */ t(function(c) {
|
|
2851
2851
|
var l = rt.call(c, ne), p = c[ne];
|
|
2852
2852
|
try {
|
|
2853
2853
|
c[ne] = void 0;
|
|
@@ -2863,7 +2863,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
2863
2863
|
}, "U");
|
|
2864
2864
|
var at = We ? We.toStringTag : void 0;
|
|
2865
2865
|
const ot = /* @__PURE__ */ t(function(c) {
|
|
2866
|
-
return c == null ? c === void 0 ? "[object Undefined]" : "[object Null]" : at && at in Object(c) ?
|
|
2866
|
+
return c == null ? c === void 0 ? "[object Undefined]" : "[object Null]" : at && at in Object(c) ? Se(c) : Xe(c);
|
|
2867
2867
|
}, "$"), it = /* @__PURE__ */ t(function(c) {
|
|
2868
2868
|
var l = typeof c;
|
|
2869
2869
|
return c != null && (l == "object" || l == "function");
|
|
@@ -4604,7 +4604,7 @@ function Lc({
|
|
|
4604
4604
|
open: r === i.text || a === h,
|
|
4605
4605
|
onOpen: /* @__PURE__ */ t(() => s(h), "onOpen"),
|
|
4606
4606
|
onClose: /* @__PURE__ */ t(() => s((x) => x === h ? null : x), "onClose"),
|
|
4607
|
-
slotProps: { tooltip: { sx: { top: 10, backgroundColor:
|
|
4607
|
+
slotProps: { tooltip: { sx: { top: 10, backgroundColor: ke(o.palette.background.paper, 0.8) } } },
|
|
4608
4608
|
title: /* @__PURE__ */ I(ee, { sx: { fontSize: 12, whiteSpace: "nowrap", color: o.palette.text.secondary }, children: [
|
|
4609
4609
|
i.text,
|
|
4610
4610
|
" → ",
|
|
@@ -4618,7 +4618,7 @@ function Lc({
|
|
|
4618
4618
|
zIndex: o.zIndex.modal,
|
|
4619
4619
|
minHeight: 14,
|
|
4620
4620
|
minWidth: i.text.length * 8.5,
|
|
4621
|
-
borderBottom: `3px solid ${
|
|
4621
|
+
borderBottom: `3px solid ${ke(o.palette.text.secondary, 0.5)}`
|
|
4622
4622
|
} })
|
|
4623
4623
|
},
|
|
4624
4624
|
`${h}-${i.text}`
|
|
@@ -4740,7 +4740,9 @@ function da({
|
|
|
4740
4740
|
// The rows scroll INSIDE, so the header stays put. On touch the panel's own sx makes the paper
|
|
4741
4741
|
// the scroller (it docks and fills), so nothing is clipped there.
|
|
4742
4742
|
overflow: v ? "auto" : "hidden",
|
|
4743
|
-
|
|
4743
|
+
// See-through: the panel colour at alpha 0xD9 (217/255 ≈ 0.85), so what's behind still shows. No
|
|
4744
|
+
// backdrop blur on purpose — tried 12/4/2px and each one hid the text behind (Ciro, 2026-11-17).
|
|
4745
|
+
backgroundColor: ke(u.palette.surface.panel, 217 / 255),
|
|
4744
4746
|
border: `1px solid ${u.palette.divider}`,
|
|
4745
4747
|
boxShadow: u.shadows[6]
|
|
4746
4748
|
}),
|
|
@@ -5017,7 +5019,7 @@ function Fc({ kind: e, onAccept: r, compact: o = !1, midSentence: a = !1, fontSi
|
|
|
5017
5019
|
...a && {
|
|
5018
5020
|
// Nearly opaque (90%): enough that the covered word cannot be read through it, a hint of it
|
|
5019
5021
|
// left so the card still reads as sitting ON the line rather than cut out of it (Ciro's tuning).
|
|
5020
|
-
backgroundColor:
|
|
5022
|
+
backgroundColor: ke(S.palette.background.paper, 0.9),
|
|
5021
5023
|
border: `1px solid ${S.palette.divider}`,
|
|
5022
5024
|
borderRadius: 1,
|
|
5023
5025
|
px: 0,
|
|
@@ -5391,9 +5393,9 @@ const Qf = /* @__PURE__ */ t(({ value: e, onChange: r }) => {
|
|
|
5391
5393
|
const U = a.current, ne = s.current;
|
|
5392
5394
|
if (!U || !ne) return;
|
|
5393
5395
|
U.width = ne.naturalWidth, U.height = ne.naturalHeight;
|
|
5394
|
-
const
|
|
5395
|
-
if (
|
|
5396
|
-
|
|
5396
|
+
const Se = U.getContext("2d");
|
|
5397
|
+
if (Se) {
|
|
5398
|
+
Se.drawImage(ne, 0, 0);
|
|
5397
5399
|
for (const Ye of i.current)
|
|
5398
5400
|
if (Ye.type === "rotate")
|
|
5399
5401
|
il(U);
|
|
@@ -5424,8 +5426,8 @@ const Qf = /* @__PURE__ */ t(({ value: e, onChange: r }) => {
|
|
|
5424
5426
|
const ne = U.getBoundingClientRect();
|
|
5425
5427
|
return ne.width > 0 ? U.width / ne.width : 1;
|
|
5426
5428
|
}, "canvasScale"), ce = /* @__PURE__ */ t((U) => {
|
|
5427
|
-
const
|
|
5428
|
-
return { x: (U.clientX -
|
|
5429
|
+
const Se = a.current.getBoundingClientRect(), Ye = Qe();
|
|
5430
|
+
return { x: (U.clientX - Se.left) * Ye, y: (U.clientY - Se.top) * Ye };
|
|
5429
5431
|
}, "toCanvasPoint"), j = /* @__PURE__ */ t(() => {
|
|
5430
5432
|
const U = g.current;
|
|
5431
5433
|
return U ? U.scrollWidth > U.clientWidth || U.scrollHeight > U.clientHeight : !1;
|
|
@@ -5452,7 +5454,7 @@ const Qf = /* @__PURE__ */ t(({ value: e, onChange: r }) => {
|
|
|
5452
5454
|
ne.setPointerCapture(U.pointerId);
|
|
5453
5455
|
} catch {
|
|
5454
5456
|
}
|
|
5455
|
-
const
|
|
5457
|
+
const Se = {
|
|
5456
5458
|
type: "stroke",
|
|
5457
5459
|
color: S,
|
|
5458
5460
|
// `canvasScale()` shrinks as the user zooms in, so the ×zoom
|
|
@@ -5462,9 +5464,9 @@ const Qf = /* @__PURE__ */ t(({ value: e, onChange: r }) => {
|
|
|
5462
5464
|
width: k * Qe() * m,
|
|
5463
5465
|
points: [ce(U)]
|
|
5464
5466
|
};
|
|
5465
|
-
h.current =
|
|
5467
|
+
h.current = Se;
|
|
5466
5468
|
const Ye = ne.getContext("2d");
|
|
5467
|
-
Ye && sl(Ye,
|
|
5469
|
+
Ye && sl(Ye, Se);
|
|
5468
5470
|
}, "handlePointerDown"), J = /* @__PURE__ */ t((U) => {
|
|
5469
5471
|
const ne = W.current;
|
|
5470
5472
|
if (ne) {
|
|
@@ -5473,24 +5475,24 @@ const Qf = /* @__PURE__ */ t(({ value: e, onChange: r }) => {
|
|
|
5473
5475
|
it.scrollLeft = ne.scrollLeft - (U.clientX - ne.x), it.scrollTop = ne.scrollTop - (U.clientY - ne.y);
|
|
5474
5476
|
return;
|
|
5475
5477
|
}
|
|
5476
|
-
const
|
|
5477
|
-
if (!
|
|
5478
|
-
const Xe = ce(U), at =
|
|
5479
|
-
|
|
5478
|
+
const Se = h.current, Ye = a.current;
|
|
5479
|
+
if (!Se || !Ye) return;
|
|
5480
|
+
const Xe = ce(U), at = Se.points[Se.points.length - 1];
|
|
5481
|
+
Se.points.push(Xe);
|
|
5480
5482
|
const ot = Ye.getContext("2d");
|
|
5481
|
-
ot && (Nc(ot,
|
|
5483
|
+
ot && (Nc(ot, Se), ot.beginPath(), ot.moveTo(at.x, at.y), ot.lineTo(Xe.x, Xe.y), ot.stroke());
|
|
5482
5484
|
}, "handlePointerMove"), be = /* @__PURE__ */ t((U) => {
|
|
5483
5485
|
var Ye;
|
|
5484
5486
|
const ne = W.current !== null;
|
|
5485
5487
|
W.current = null;
|
|
5486
|
-
const
|
|
5487
|
-
if (!(!
|
|
5488
|
+
const Se = h.current;
|
|
5489
|
+
if (!(!Se && !ne)) {
|
|
5488
5490
|
h.current = null;
|
|
5489
5491
|
try {
|
|
5490
5492
|
(Ye = a.current) == null || Ye.releasePointerCapture(U.pointerId);
|
|
5491
5493
|
} catch {
|
|
5492
5494
|
}
|
|
5493
|
-
|
|
5495
|
+
Se && (i.current = [...i.current, Se], f(i.current.length));
|
|
5494
5496
|
}
|
|
5495
5497
|
}, "endStroke"), _e = /* @__PURE__ */ t(() => {
|
|
5496
5498
|
const U = a.current;
|
|
@@ -5509,18 +5511,18 @@ const Qf = /* @__PURE__ */ t(({ value: e, onChange: r }) => {
|
|
|
5509
5511
|
width: "1px",
|
|
5510
5512
|
alignSelf: "stretch",
|
|
5511
5513
|
mx: 0.5,
|
|
5512
|
-
backgroundColor:
|
|
5514
|
+
backgroundColor: ke(U.palette.common.white, 0.15)
|
|
5513
5515
|
}), "sx")
|
|
5514
5516
|
}
|
|
5515
5517
|
), rt = /* @__PURE__ */ t((U) => (ne) => ({
|
|
5516
5518
|
p: 0.75,
|
|
5517
5519
|
borderRadius: 1,
|
|
5518
5520
|
color: U ? ne.palette.primary.main : ne.palette.common.white,
|
|
5519
|
-
backgroundColor: U ?
|
|
5521
|
+
backgroundColor: U ? ke(ne.palette.primary.main, 0.18) : "transparent",
|
|
5520
5522
|
"&:hover": {
|
|
5521
|
-
backgroundColor: U ?
|
|
5523
|
+
backgroundColor: U ? ke(ne.palette.primary.main, 0.26) : ke(ne.palette.common.white, 0.12)
|
|
5522
5524
|
},
|
|
5523
|
-
"&.Mui-disabled": { color:
|
|
5525
|
+
"&.Mui-disabled": { color: ke(ne.palette.common.white, 0.3) }
|
|
5524
5526
|
}), "toolbarButtonSx");
|
|
5525
5527
|
return /* @__PURE__ */ n(
|
|
5526
5528
|
dh,
|
|
@@ -5531,7 +5533,7 @@ const Qf = /* @__PURE__ */ t(({ value: e, onChange: r }) => {
|
|
|
5531
5533
|
}, "onClose"),
|
|
5532
5534
|
"aria-labelledby": "prompt-attachment-preview",
|
|
5533
5535
|
sx: { display: "flex", alignItems: "center", justifyContent: "center" },
|
|
5534
|
-
slotProps: { backdrop: { sx: { backgroundColor:
|
|
5536
|
+
slotProps: { backdrop: { sx: { backgroundColor: ke("#000", 0.85) } } },
|
|
5535
5537
|
children: /* @__PURE__ */ I(
|
|
5536
5538
|
M,
|
|
5537
5539
|
{
|
|
@@ -5563,8 +5565,8 @@ const Qf = /* @__PURE__ */ t(({ value: e, onChange: r }) => {
|
|
|
5563
5565
|
px: 1,
|
|
5564
5566
|
py: 0.5,
|
|
5565
5567
|
borderRadius: 2,
|
|
5566
|
-
backgroundColor:
|
|
5567
|
-
border: `1px solid ${
|
|
5568
|
+
backgroundColor: ke(Yo, 0.92),
|
|
5569
|
+
border: `1px solid ${ke(U.palette.common.white, 0.16)}`,
|
|
5568
5570
|
boxShadow: 6,
|
|
5569
5571
|
maxWidth: "92vw"
|
|
5570
5572
|
}), "sx"),
|
|
@@ -5597,7 +5599,7 @@ const Qf = /* @__PURE__ */ t(({ value: e, onChange: r }) => {
|
|
|
5597
5599
|
borderRadius: "50%",
|
|
5598
5600
|
cursor: "pointer",
|
|
5599
5601
|
backgroundColor: U,
|
|
5600
|
-
border: `2px solid ${S === U ? ne.palette.primary.main :
|
|
5602
|
+
border: `2px solid ${S === U ? ne.palette.primary.main : ke(ne.palette.common.white, 0.35)}`,
|
|
5601
5603
|
outline: "none",
|
|
5602
5604
|
"&:focus-visible": {
|
|
5603
5605
|
boxShadow: `0 0 0 2px ${ne.palette.primary.main}`
|
|
@@ -5624,9 +5626,9 @@ const Qf = /* @__PURE__ */ t(({ value: e, onChange: r }) => {
|
|
|
5624
5626
|
borderRadius: 1,
|
|
5625
5627
|
cursor: "pointer",
|
|
5626
5628
|
border: "none",
|
|
5627
|
-
backgroundColor: k === U.value ?
|
|
5629
|
+
backgroundColor: k === U.value ? ke(ne.palette.primary.main, 0.18) : "transparent",
|
|
5628
5630
|
"&:hover": {
|
|
5629
|
-
backgroundColor:
|
|
5631
|
+
backgroundColor: ke(ne.palette.common.white, 0.12)
|
|
5630
5632
|
}
|
|
5631
5633
|
}), "sx"),
|
|
5632
5634
|
children: /* @__PURE__ */ n(
|
|
@@ -5636,7 +5638,7 @@ const Qf = /* @__PURE__ */ t(({ value: e, onChange: r }) => {
|
|
|
5636
5638
|
width: U.value,
|
|
5637
5639
|
height: U.value,
|
|
5638
5640
|
borderRadius: "50%",
|
|
5639
|
-
backgroundColor: k === U.value ? ne.palette.primary.main :
|
|
5641
|
+
backgroundColor: k === U.value ? ne.palette.primary.main : ke(ne.palette.common.white, 0.7)
|
|
5640
5642
|
}), "sx")
|
|
5641
5643
|
}
|
|
5642
5644
|
)
|
|
@@ -5695,9 +5697,9 @@ const Qf = /* @__PURE__ */ t(({ value: e, onChange: r }) => {
|
|
|
5695
5697
|
fontSize: 11,
|
|
5696
5698
|
fontFamily: U.typography.fontFamilyMono,
|
|
5697
5699
|
fontVariantNumeric: "tabular-nums",
|
|
5698
|
-
color: m === Kr ?
|
|
5700
|
+
color: m === Kr ? ke(U.palette.common.white, 0.7) : U.palette.primary.main,
|
|
5699
5701
|
backgroundColor: "transparent",
|
|
5700
|
-
"&:hover": { backgroundColor:
|
|
5702
|
+
"&:hover": { backgroundColor: ke(U.palette.common.white, 0.12) }
|
|
5701
5703
|
}), "sx"),
|
|
5702
5704
|
children: [
|
|
5703
5705
|
Math.round(G * m * 100),
|
|
@@ -5732,9 +5734,9 @@ const Qf = /* @__PURE__ */ t(({ value: e, onChange: r }) => {
|
|
|
5732
5734
|
cursor: "pointer",
|
|
5733
5735
|
fontSize: 12,
|
|
5734
5736
|
fontFamily: U.typography.fontFamily,
|
|
5735
|
-
color:
|
|
5737
|
+
color: ke(U.palette.common.white, 0.75),
|
|
5736
5738
|
backgroundColor: "transparent",
|
|
5737
|
-
"&:hover": { backgroundColor:
|
|
5739
|
+
"&:hover": { backgroundColor: ke(U.palette.common.white, 0.12) }
|
|
5738
5740
|
}), "sx"),
|
|
5739
5741
|
children: "Descartar"
|
|
5740
5742
|
}
|
|
@@ -5778,7 +5780,7 @@ const Qf = /* @__PURE__ */ t(({ value: e, onChange: r }) => {
|
|
|
5778
5780
|
boxShadow: 6,
|
|
5779
5781
|
lineHeight: 0,
|
|
5780
5782
|
scrollbarWidth: "thin",
|
|
5781
|
-
scrollbarColor: `${
|
|
5783
|
+
scrollbarColor: `${ke(U.palette.common.white, 0.3)} transparent`
|
|
5782
5784
|
}), "sx"),
|
|
5783
5785
|
children: /* @__PURE__ */ n(
|
|
5784
5786
|
M,
|
|
@@ -5813,10 +5815,10 @@ const Qf = /* @__PURE__ */ t(({ value: e, onChange: r }) => {
|
|
|
5813
5815
|
position: "absolute",
|
|
5814
5816
|
top: 16,
|
|
5815
5817
|
right: 16,
|
|
5816
|
-
backgroundColor:
|
|
5818
|
+
backgroundColor: ke(Yo, 0.85),
|
|
5817
5819
|
color: U.palette.common.white,
|
|
5818
5820
|
"&:hover": {
|
|
5819
|
-
backgroundColor:
|
|
5821
|
+
backgroundColor: ke(Yo, 0.96)
|
|
5820
5822
|
}
|
|
5821
5823
|
}), "sx"),
|
|
5822
5824
|
children: /* @__PURE__ */ n(Jr, {})
|
|
@@ -5835,7 +5837,7 @@ const Qf = /* @__PURE__ */ t(({ value: e, onChange: r }) => {
|
|
|
5835
5837
|
px: 1.5,
|
|
5836
5838
|
py: 0.5,
|
|
5837
5839
|
borderRadius: 1,
|
|
5838
|
-
backgroundColor:
|
|
5840
|
+
backgroundColor: ke(Yo, 0.85),
|
|
5839
5841
|
color: U.palette.common.white,
|
|
5840
5842
|
fontSize: 12,
|
|
5841
5843
|
fontFamily: U.typography.fontFamilyMono,
|
|
@@ -5953,7 +5955,7 @@ const cl = 70, dl = 300, ul = 16, ua = oo(({
|
|
|
5953
5955
|
var No, Vr, xr;
|
|
5954
5956
|
const {
|
|
5955
5957
|
agentGatewayService: ne,
|
|
5956
|
-
sessionStateManagerService:
|
|
5958
|
+
sessionStateManagerService: Se,
|
|
5957
5959
|
showModelSelector: Ye,
|
|
5958
5960
|
showSessionInfo: Xe,
|
|
5959
5961
|
showToolCalls: at,
|
|
@@ -6327,8 +6329,8 @@ const cl = 70, dl = 300, ul = 16, ua = oo(({
|
|
|
6327
6329
|
}), "getBoundingClientRect")
|
|
6328
6330
|
};
|
|
6329
6331
|
}, [yn]), Wa = (yn == null ? void 0 : yn.needsSpace) ?? !1, en = ge((C) => C.turnOpen), tn = ge((C) => C.connectionOutage !== null), zo = ge((C) => C.setTurnOpen), ct = ge((C) => C.connectionStatus), br = ct === nt.Connected, Hr = ge((C) => C.suspendState), An = ge((C) => C.setSuspendState), xn = Hr === "suspended", Oo = Hr === "suspending", qn = ge((C) => C.queuedMessages), _o = ge((C) => C.restoredDraft), Na = ge((C) => C.consumeRestoredDraft), Po = Ie((C) => {
|
|
6330
|
-
ne instanceof zn && (C ?
|
|
6331
|
-
}, [ne,
|
|
6332
|
+
ne instanceof zn && (C ? Se.bindAndOpenLiveSession(ne.getSessionId()) : Se.closeLiveConnection(!1));
|
|
6333
|
+
}, [ne, Se]), yr = E ?? cl, kt = /* @__PURE__ */ t((C) => {
|
|
6332
6334
|
C && (C.style.height = "auto", C.style.height = `${Math.min(
|
|
6333
6335
|
Math.max(C.scrollHeight / 2, yr / (S ? 5 : 1)),
|
|
6334
6336
|
dl
|
|
@@ -6570,7 +6572,7 @@ ${$}` : C);
|
|
|
6570
6572
|
}, "onDrop"),
|
|
6571
6573
|
sx: /* @__PURE__ */ t((C) => ({
|
|
6572
6574
|
position: "relative",
|
|
6573
|
-
backgroundColor:
|
|
6575
|
+
backgroundColor: ke(C.palette.background.default, 0.9),
|
|
6574
6576
|
border: `1px solid ${Cn ? C.palette.primary.main : C.palette.primary.dark}`,
|
|
6575
6577
|
// A row above the input (attachments, queued messages) needs square-ish corners, or the pill's curve clips it.
|
|
6576
6578
|
borderRadius: Tt.length > 0 || Ut.length > 0 || qn.length > 0 ? 3 : Wo,
|
|
@@ -6578,7 +6580,7 @@ ${$}` : C);
|
|
|
6578
6580
|
display: "flex",
|
|
6579
6581
|
flexDirection: "column",
|
|
6580
6582
|
transition: "border-color .12s, border-radius .18s, box-shadow .12s",
|
|
6581
|
-
boxShadow: Cn ? `0 0 0 3px ${
|
|
6583
|
+
boxShadow: Cn ? `0 0 0 3px ${ke(C.palette.primary.main, 0.18)}` : "none",
|
|
6582
6584
|
"&:focus-within": {
|
|
6583
6585
|
borderColor: C.palette.primary.dark
|
|
6584
6586
|
},
|
|
@@ -6596,7 +6598,7 @@ ${$}` : C);
|
|
|
6596
6598
|
// highlighted text readable mid-selection.
|
|
6597
6599
|
"& textarea::selection": {
|
|
6598
6600
|
color: C.palette.text.primary,
|
|
6599
|
-
background:
|
|
6601
|
+
background: ke(C.palette.primary.main, 0.3)
|
|
6600
6602
|
}
|
|
6601
6603
|
}), "sx"),
|
|
6602
6604
|
children: [
|
|
@@ -6623,7 +6625,7 @@ ${$}` : C);
|
|
|
6623
6625
|
inset: 0,
|
|
6624
6626
|
zIndex: 5,
|
|
6625
6627
|
pointerEvents: "none",
|
|
6626
|
-
backgroundColor:
|
|
6628
|
+
backgroundColor: ke(C.palette.primary.main, 0.08),
|
|
6627
6629
|
border: `2px dashed ${C.palette.primary.main}`,
|
|
6628
6630
|
borderRadius: Wo,
|
|
6629
6631
|
display: "flex",
|
|
@@ -6782,7 +6784,7 @@ ${$}` : C);
|
|
|
6782
6784
|
opacity: 0,
|
|
6783
6785
|
pointerEvents: "none",
|
|
6784
6786
|
transition: "opacity .12s",
|
|
6785
|
-
backgroundColor:
|
|
6787
|
+
backgroundColor: ke($.palette.background.default, 0.85),
|
|
6786
6788
|
color: $.palette.text.primary,
|
|
6787
6789
|
"&:hover": {
|
|
6788
6790
|
backgroundColor: $.palette.background.default
|
|
@@ -6932,9 +6934,9 @@ ${$}` : C);
|
|
|
6932
6934
|
"span",
|
|
6933
6935
|
{
|
|
6934
6936
|
style: {
|
|
6935
|
-
color:
|
|
6936
|
-
backgroundColor:
|
|
6937
|
-
outline: `1px dashed ${
|
|
6937
|
+
color: ke(te, 0.75),
|
|
6938
|
+
backgroundColor: ke(te, 0.07),
|
|
6939
|
+
outline: `1px dashed ${ke(te, 0.55)}`,
|
|
6938
6940
|
outlineOffset: -1,
|
|
6939
6941
|
borderRadius: 4
|
|
6940
6942
|
},
|
|
@@ -6946,7 +6948,7 @@ ${$}` : C);
|
|
|
6946
6948
|
{
|
|
6947
6949
|
style: {
|
|
6948
6950
|
color: te,
|
|
6949
|
-
backgroundColor:
|
|
6951
|
+
backgroundColor: ke(te, 0.14),
|
|
6950
6952
|
// Inset box-shadow
|
|
6951
6953
|
// draws the chip
|
|
6952
6954
|
// border WITHOUT
|
|
@@ -6957,7 +6959,7 @@ ${$}` : C);
|
|
|
6957
6959
|
// and textarea
|
|
6958
6960
|
// glyph positions
|
|
6959
6961
|
// aligned.
|
|
6960
|
-
boxShadow: `inset 0 0 0 1px ${
|
|
6962
|
+
boxShadow: `inset 0 0 0 1px ${ke(te, 0.45)}`,
|
|
6961
6963
|
borderRadius: 4
|
|
6962
6964
|
// No fontWeight: a heavier chip widens its glyphs vs the plain
|
|
6963
6965
|
// textarea beneath, drifting the native caret left after each chip.
|
|
@@ -7293,7 +7295,7 @@ ${$}` : C);
|
|
|
7293
7295
|
alignItems: "center",
|
|
7294
7296
|
justifyContent: "center",
|
|
7295
7297
|
p: 2,
|
|
7296
|
-
backgroundColor:
|
|
7298
|
+
backgroundColor: ke(C.palette.common.black, 0.32)
|
|
7297
7299
|
}), "sx"),
|
|
7298
7300
|
children: jo({
|
|
7299
7301
|
onClick: /* @__PURE__ */ t((C) => C.stopPropagation(), "onClick"),
|
|
@@ -9368,7 +9370,7 @@ const B0 = /* @__PURE__ */ t(({ part: e, embedded: r = !1 }) => {
|
|
|
9368
9370
|
return /* @__PURE__ */ I(M, { sx: g, children: [
|
|
9369
9371
|
f && /* @__PURE__ */ n(ee, { variant: "subtitle2", sx: { mb: 1.25, fontWeight: 600 }, children: f }),
|
|
9370
9372
|
/* @__PURE__ */ n(Ot, { spacing: 1.25, children: y.map((be, _e) => {
|
|
9371
|
-
const Re = (ye == null ? void 0 : ye.find((
|
|
9373
|
+
const Re = (ye == null ? void 0 : ye.find((Se) => Se.questionId === E(_e))) ?? null, We = (Re == null ? void 0 : Re.selected) ?? [], Ze = ((Re == null ? void 0 : Re.note) ?? "").trim(), rt = We.length ? We.join(", ") : Ze || "—", U = We.length && Ze ? Ze : "", ne = We.length > 0 || be.options.length === 0 && !!Ze;
|
|
9372
9374
|
return /* @__PURE__ */ I(M, { children: [
|
|
9373
9375
|
/* @__PURE__ */ n(ee, { variant: "body2", sx: { fontWeight: 500 }, children: be.text }),
|
|
9374
9376
|
/* @__PURE__ */ n(
|
|
@@ -10865,11 +10867,11 @@ const yg = 112, xd = /* @__PURE__ */ t(({ message: e, live: r }) => {
|
|
|
10865
10867
|
let K = null, N = null;
|
|
10866
10868
|
L ? K = yt.createSuspended() : K = yt.createWaiting(E && W == 0, !1, "", /* @__PURE__ */ new Date()), y && (!e.parts || e.parts.length == 1) && (N = yt.fromText("Planejando próximos passos", "system", "planningPart"));
|
|
10867
10869
|
const { partsToConsider: G, stagedParts: ie, groups: V, headlineTrails: q, activity: le, steps: Be } = we(() => {
|
|
10868
|
-
const J = bg(e.parts ?? [], f, h === "inline"), be = x === "minimum" && f ? qf(J) : null, _e = be ? Wc(J) : [], Re = x === "information" && f ? Bc(J) : void 0, We = J.filter((
|
|
10870
|
+
const J = bg(e.parts ?? [], f, h === "inline"), be = x === "minimum" && f ? qf(J) : null, _e = be ? Wc(J) : [], Re = x === "information" && f ? Bc(J) : void 0, We = J.filter((Se) => {
|
|
10869
10871
|
var Xe, at, ot;
|
|
10870
|
-
const Ye = Vf(
|
|
10871
|
-
return Ye !== void 0 ? Ye :
|
|
10872
|
-
}), Ze = hs(We), rt = We.filter((
|
|
10872
|
+
const Ye = Vf(Se, x, f, Re);
|
|
10873
|
+
return Ye !== void 0 ? Ye : Se.eventType === ue.ThoughtHighlight ? !0 : Se.eventType === ue.ToolEvent || Se.eventType === ue.UserAnswer || Se.eventType === ue.FunctionClientOutput ? !1 : Se.eventType === ue.FunctionCall || Se.eventType === ue.FunctionResponse || Se.eventType === ue.PartialFunctionCall ? ((Xe = Se.functionDetails) == null ? void 0 : Xe.cancelUi) !== !0 && ((at = Se.functionDetails) != null && at.isUi || (ot = Se.functionDetails) != null && ot.isAskUser) || Uf(Se) ? !0 : o : Se.eventType === ue.Thought ? f || (a ? s : o) : !0;
|
|
10874
|
+
}), Ze = hs(We), rt = We.filter((Se) => Se.eventType !== ue.ThoughtHighlight), U = rt.filter((Se) => Jo(Se) !== void 0), ne = J0(rt, f, o, x === "information");
|
|
10873
10875
|
return { partsToConsider: rt, stagedParts: U, groups: ne, headlineTrails: Ze, activity: be, steps: _e };
|
|
10874
10876
|
}, [e.parts, f, o, a, s, h, x]), Ue = q.length - 1;
|
|
10875
10877
|
let Qe = 0;
|
|
@@ -11412,7 +11414,7 @@ const vl = "O agente enviou esta pergunta, responda para que ele possa continuar
|
|
|
11412
11414
|
maxHeight: "60vh",
|
|
11413
11415
|
overflow: "hidden",
|
|
11414
11416
|
// clip to the rounded top; inner area owns the scroll
|
|
11415
|
-
backgroundColor:
|
|
11417
|
+
backgroundColor: ke((W = a.palette) == null ? void 0 : W.background.default, 0.8),
|
|
11416
11418
|
backdropFilter: "blur(2px)",
|
|
11417
11419
|
// Light keeps the lime hairline, which reads as a soft tint on the pale surface.
|
|
11418
11420
|
// On dark surfaces the same primary.dark reads as an olive frame, and the shadow
|
|
@@ -11493,9 +11495,9 @@ const vl = "O agente enviou esta pergunta, responda para que ele possa continuar
|
|
|
11493
11495
|
borderRadius: "50%",
|
|
11494
11496
|
animation: T ? "askUserExpandPulse 1.8s ease-out infinite" : "none",
|
|
11495
11497
|
"@keyframes askUserExpandPulse": {
|
|
11496
|
-
"0%": { boxShadow: `0 0 0 0 ${
|
|
11497
|
-
"70%": { boxShadow: `0 0 0 7px ${
|
|
11498
|
-
"100%": { boxShadow: `0 0 0 0 ${
|
|
11498
|
+
"0%": { boxShadow: `0 0 0 0 ${ke(a.palette.warning.main, 0.55)}` },
|
|
11499
|
+
"70%": { boxShadow: `0 0 0 7px ${ke(a.palette.warning.main, 0)}` },
|
|
11500
|
+
"100%": { boxShadow: `0 0 0 0 ${ke(a.palette.warning.main, 0)}` }
|
|
11499
11501
|
},
|
|
11500
11502
|
// A cue that pulses forever is a cue nobody can turn off; respect the
|
|
11501
11503
|
// reader who asked the system for stillness — the colour still reads.
|
|
@@ -11540,7 +11542,7 @@ const vl = "O agente enviou esta pergunta, responda para que ele possa continuar
|
|
|
11540
11542
|
sx: {
|
|
11541
11543
|
height: 2,
|
|
11542
11544
|
flexShrink: 0,
|
|
11543
|
-
backgroundColor:
|
|
11545
|
+
backgroundColor: ke(a.palette.primary.dark, 0.15),
|
|
11544
11546
|
"& .MuiLinearProgress-bar1": {
|
|
11545
11547
|
backgroundColor: a.palette.primary.main,
|
|
11546
11548
|
opacity: 0.5
|
|
@@ -11680,7 +11682,7 @@ const Tg = ns(), Sl = /* @__PURE__ */ t((e) => e.scrollHeight - (e.scrollTop + e
|
|
|
11680
11682
|
severity: Oe,
|
|
11681
11683
|
actionType: lt
|
|
11682
11684
|
});
|
|
11683
|
-
}, []),
|
|
11685
|
+
}, []), Se = Ie(() => {
|
|
11684
11686
|
U((re) => ({ ...re, open: !1 }));
|
|
11685
11687
|
}, []), Ye = Ie(async (re, Te) => {
|
|
11686
11688
|
fe(!1), ie(!1);
|
|
@@ -12023,7 +12025,7 @@ const Tg = ns(), Sl = /* @__PURE__ */ t((e) => e.scrollHeight - (e.scrollTop + e
|
|
|
12023
12025
|
}, "onClick"),
|
|
12024
12026
|
children: [
|
|
12025
12027
|
be.current === !0 ? /* @__PURE__ */ n(Ns, { sx: { fontSize: 10 } }) : /* @__PURE__ */ n(Hs, { sx: { fontSize: 20 } }),
|
|
12026
|
-
/* @__PURE__ */ n(ee, { variant: "body2", sx: { fontWeight: 500 }, children: "
|
|
12028
|
+
/* @__PURE__ */ n(ee, { variant: "body2", sx: { fontWeight: 500 }, children: "Novas mensagens" }),
|
|
12027
12029
|
/* @__PURE__ */ n(qh, { sx: { fontSize: 15 } })
|
|
12028
12030
|
]
|
|
12029
12031
|
}
|
|
@@ -12129,8 +12131,8 @@ const Tg = ns(), Sl = /* @__PURE__ */ t((e) => e.scrollHeight - (e.scrollTop + e
|
|
|
12129
12131
|
message: rt.message,
|
|
12130
12132
|
actionType: rt.actionType,
|
|
12131
12133
|
severity: rt.severity,
|
|
12132
|
-
onClose:
|
|
12133
|
-
onRetry:
|
|
12134
|
+
onClose: Se,
|
|
12135
|
+
onRetry: Se
|
|
12134
12136
|
}
|
|
12135
12137
|
)
|
|
12136
12138
|
] }) });
|
|
@@ -12307,7 +12309,7 @@ const Dg = /* @__PURE__ */ t(({ message: e, onLinkClicked: r }) => /* @__PURE__
|
|
|
12307
12309
|
overflow: "hidden",
|
|
12308
12310
|
// clip to the radius; the prompt area owns the scroll
|
|
12309
12311
|
border: `1px solid ${s.palette.primary.dark}`,
|
|
12310
|
-
backgroundColor:
|
|
12312
|
+
backgroundColor: ke((f = s.palette) == null ? void 0 : f.background.default, 0.98)
|
|
12311
12313
|
}
|
|
12312
12314
|
}
|
|
12313
12315
|
},
|
|
@@ -12334,7 +12336,7 @@ const Dg = /* @__PURE__ */ t(({ message: e, onLinkClicked: r }) => /* @__PURE__
|
|
|
12334
12336
|
sx: {
|
|
12335
12337
|
height: 2,
|
|
12336
12338
|
flexShrink: 0,
|
|
12337
|
-
backgroundColor:
|
|
12339
|
+
backgroundColor: ke(s.palette.primary.dark, 0.15),
|
|
12338
12340
|
"& .MuiLinearProgress-bar1": {
|
|
12339
12341
|
backgroundColor: s.palette.primary.main,
|
|
12340
12342
|
opacity: 0.5
|
|
@@ -12831,7 +12833,7 @@ function Cl(e) {
|
|
|
12831
12833
|
}
|
|
12832
12834
|
t(Cl, "unitFromIndex");
|
|
12833
12835
|
const bi = 15, Xg = /* @__PURE__ */ t(() => {
|
|
12834
|
-
const e = Ft(), r = e.palette.mode === "dark", o =
|
|
12836
|
+
const e = Ft(), r = e.palette.mode === "dark", o = ke(e.palette.text.primary, r ? 0.1 : 0.08), a = ke(e.palette.text.primary, r ? 0.22 : 0.18), s = ke(e.palette.text.primary, r ? 0.18 : 0.14), i = ke(e.palette.text.primary, r ? 0.22 : 0.18), h = ke(e.palette.text.primary, r ? 0.13 : 0.1), { bars: x, linePoints: v } = we(() => {
|
|
12835
12837
|
const S = Array.from({ length: bi }, (D, L) => 0.18 + Cl(L) * 0.78), z = Array.from({ length: bi }, (D, L) => 0.18 + Cl(L + 100) * 0.78), k = 360, w = 160, A = 14, f = 12, E = w - f - 18, g = f + 6, m = E - g, T = (k - A * 2) / bi, d = T * 0.52, R = S.map((D, L) => {
|
|
12836
12838
|
const W = D * m, K = A + L * T + (T - d) / 2, N = E - W;
|
|
12837
12839
|
return { x: K, y: N, w: d, h: W };
|
|
@@ -12969,7 +12971,7 @@ const bi = 15, Xg = /* @__PURE__ */ t(() => {
|
|
|
12969
12971
|
children: Array.from({ length: e }, (a, s) => /* @__PURE__ */ n(Bd, { showIcon: r, showChangeRow: o }, s))
|
|
12970
12972
|
}
|
|
12971
12973
|
), "MetricGroupSkeleton"), Zg = /* @__PURE__ */ t(({ columns: e = 5, rows: r = 10 }) => {
|
|
12972
|
-
const o = Ft(), a = Array.from({ length: e }, (S, z) => z), s = Array.from({ length: r }, (S, z) => z), i = o.palette.mode === "dark" ?
|
|
12974
|
+
const o = Ft(), a = Array.from({ length: e }, (S, z) => z), s = Array.from({ length: r }, (S, z) => z), i = o.palette.mode === "dark" ? ke(o.palette.grey[700], 0.55) : ke(o.palette.grey[300], 0.6), h = ke(o.palette.divider, o.palette.mode === "dark" ? 0.9 : 1), x = ke(o.palette.divider, 0.6), v = ke(
|
|
12973
12975
|
o.palette.common.white,
|
|
12974
12976
|
o.palette.mode === "dark" ? 0.12 : 0.35
|
|
12975
12977
|
);
|
|
@@ -15147,7 +15149,7 @@ function Im({
|
|
|
15147
15149
|
}, [T]), Zn(() => {
|
|
15148
15150
|
K && !q.current && V(!1);
|
|
15149
15151
|
}, [K]);
|
|
15150
|
-
const
|
|
15152
|
+
const Se = T != null && T.updatedAt ? Date.parse(T.updatedAt) : Number.NaN, Ye = _e.todo && be && !(Se >= _e.todo.at) ? _e.todo.todoList : null, Xe = Ye ?? (T == null ? void 0 : T.todoList), at = (Xe == null ? void 0 : Xe.items) ?? [], ot = Xe == null ? void 0 : Xe.currentWorkingItemKey, it = we(
|
|
15151
15153
|
() => Ue ? null : Dm(at, ot, j),
|
|
15152
15154
|
[Ue, at, ot, j]
|
|
15153
15155
|
), _t = Ye ? Om(Ye) : (T == null ? void 0 : T.percentComplete) ?? null, Ve = we(() => Jd(T == null ? void 0 : T.conclusion), [T == null ? void 0 : T.conclusion]), Et = _m(W), ut = Qd(W, Ve == null ? void 0 : Ve.outcome, R), gt = (Ye || T == null ? void 0 : T.currentStep) ?? ((Rt = at.find((xe) => Es(xe.status))) == null ? void 0 : Rt.label), st = G ? null : _e.activity;
|
|
@@ -15159,9 +15161,9 @@ function Im({
|
|
|
15159
15161
|
sx: /* @__PURE__ */ t((xe) => ({
|
|
15160
15162
|
my: 1.25,
|
|
15161
15163
|
border: "1px solid",
|
|
15162
|
-
borderColor: G ? "divider" :
|
|
15164
|
+
borderColor: G ? "divider" : ke(xe.palette.primary.main, 0.6),
|
|
15163
15165
|
borderRadius: 2,
|
|
15164
|
-
bgcolor:
|
|
15166
|
+
bgcolor: ke(xe.palette.text.primary, 0.025),
|
|
15165
15167
|
overflow: "hidden",
|
|
15166
15168
|
maxWidth: "100%"
|
|
15167
15169
|
}), "sx"),
|