@aintela/chat 0.2.45 → 0.2.47
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/components.js +217 -260
- package/dist/components.js.map +1 -1
- package/dist/hooks.js +1 -1
- package/dist/{httpArtifactService--6WV2FDW.js → httpArtifactService-CcYAfh2q.js} +62 -59
- package/dist/httpArtifactService-CcYAfh2q.js.map +1 -0
- package/dist/{httpSessionService-CNzThf-T.js → httpSessionService-BDlqebW2.js} +2 -2
- package/dist/{httpSessionService-CNzThf-T.js.map → httpSessionService-BDlqebW2.js.map} +1 -1
- package/dist/index.js +4 -4
- package/dist/models.js +1 -1
- package/dist/{serializer-uea8YsIP.js → serializer-DNt8QqNO.js} +241 -225
- package/dist/serializer-DNt8QqNO.js.map +1 -0
- package/dist/services.js +2 -2
- package/dist/src/components/AiChat/ChatPane/parts/types.d.ts +10 -4
- package/dist/src/models/ServerEvent.d.ts +17 -0
- package/dist/src/models/semanticKernelModel/models.d.ts +3 -0
- package/dist/{useChatSessions-mnF6pUGm.js → useChatSessions-sbBneRk9.js} +2 -2
- package/dist/{useChatSessions-mnF6pUGm.js.map → useChatSessions-sbBneRk9.js.map} +1 -1
- package/package.json +1 -1
- package/dist/httpArtifactService--6WV2FDW.js.map +0 -1
- package/dist/serializer-uea8YsIP.js.map +0 -1
package/dist/components.js
CHANGED
|
@@ -10,10 +10,10 @@ import { useStore as Hc, createStore as qc } from "zustand";
|
|
|
10
10
|
import { C as Se, P as Vc } from "./Prompt-DZb7OaPp.js";
|
|
11
11
|
import { S as Uc, p as qo, m as Gi, M as oa, r as aa, A as Kc, E as ve } from "./environmentUtils-CUVZ6Dq1.js";
|
|
12
12
|
import { enqueueSnackbar as ia } from "notistack";
|
|
13
|
-
import { r as Gc, H as Jc } from "./httpSessionService-
|
|
13
|
+
import { r as Gc, H as Jc } from "./httpSessionService-BDlqebW2.js";
|
|
14
14
|
import { useTheme as at, alpha as Ke, createTheme as Yc } from "@mui/material/styles";
|
|
15
15
|
import { C as Hr } from "./ClientMessage-EKgfuTp8.js";
|
|
16
|
-
import { E as Qc, L as Xc, H as Zc, W as ed, a as gn, u as Ji, I as td, M as nd } from "./httpArtifactService
|
|
16
|
+
import { E as Qc, L as Xc, H as Zc, W as ed, a as gn, u as Ji, I as td, M as nd } from "./httpArtifactService-CcYAfh2q.js";
|
|
17
17
|
import { devtools as rd } from "zustand/middleware";
|
|
18
18
|
import R from "@mui/material/Box";
|
|
19
19
|
import X from "@mui/material/Typography";
|
|
@@ -64,7 +64,7 @@ import gu from "@mui/icons-material/OpenInNew";
|
|
|
64
64
|
import bi from "@mui/icons-material/TaskAlt";
|
|
65
65
|
import bu from "@mui/icons-material/FormatQuote";
|
|
66
66
|
import yu from "@mui/material/Avatar";
|
|
67
|
-
import { I as st } from "./serializer-
|
|
67
|
+
import { I as st } from "./serializer-DNt8QqNO.js";
|
|
68
68
|
import { unified as xu } from "unified";
|
|
69
69
|
import vu from "remark-parse";
|
|
70
70
|
import { toMarkdown as wu } from "mdast-util-to-markdown";
|
|
@@ -133,10 +133,10 @@ const Wu = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
133
133
|
return gl;
|
|
134
134
|
},
|
|
135
135
|
get ArtifactRender() {
|
|
136
|
-
return
|
|
136
|
+
return bh;
|
|
137
137
|
},
|
|
138
138
|
get AskUserDialog() {
|
|
139
|
-
return
|
|
139
|
+
return gh;
|
|
140
140
|
},
|
|
141
141
|
get AskUserSheet() {
|
|
142
142
|
return rl;
|
|
@@ -190,7 +190,7 @@ const Wu = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
190
190
|
return pa;
|
|
191
191
|
},
|
|
192
192
|
get DelayTextComponent() {
|
|
193
|
-
return
|
|
193
|
+
return yh;
|
|
194
194
|
},
|
|
195
195
|
get EnvironmentProvider() {
|
|
196
196
|
return Bp;
|
|
@@ -232,10 +232,10 @@ const Wu = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
232
232
|
return Ts;
|
|
233
233
|
},
|
|
234
234
|
get LiveJsxBlock() {
|
|
235
|
-
return
|
|
235
|
+
return Jh;
|
|
236
236
|
},
|
|
237
237
|
get LiveTsxConfigProvider() {
|
|
238
|
-
return
|
|
238
|
+
return Rh;
|
|
239
239
|
},
|
|
240
240
|
get LlmResponseRender() {
|
|
241
241
|
return dl;
|
|
@@ -301,7 +301,7 @@ const Wu = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
301
301
|
return Un;
|
|
302
302
|
},
|
|
303
303
|
get Sparkline() {
|
|
304
|
-
return
|
|
304
|
+
return o0;
|
|
305
305
|
},
|
|
306
306
|
get StopIcon() {
|
|
307
307
|
return ma;
|
|
@@ -346,7 +346,7 @@ const Wu = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
346
346
|
return Is;
|
|
347
347
|
},
|
|
348
348
|
get V2_CHART_PALETTE() {
|
|
349
|
-
return
|
|
349
|
+
return Xh;
|
|
350
350
|
},
|
|
351
351
|
get WARNING_THRESHOLD() {
|
|
352
352
|
return Jo;
|
|
@@ -373,13 +373,13 @@ const Wu = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
373
373
|
return $p;
|
|
374
374
|
},
|
|
375
375
|
get disposeSharedAiChatEngine() {
|
|
376
|
-
return
|
|
376
|
+
return hh;
|
|
377
377
|
},
|
|
378
378
|
get extendDefaultScope() {
|
|
379
|
-
return
|
|
379
|
+
return Ph;
|
|
380
380
|
},
|
|
381
381
|
get extendModuleRegistry() {
|
|
382
|
-
return
|
|
382
|
+
return Oh;
|
|
383
383
|
},
|
|
384
384
|
get getDefaultJsxScope() {
|
|
385
385
|
return hl;
|
|
@@ -418,7 +418,7 @@ const Wu = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
418
418
|
return Ks;
|
|
419
419
|
},
|
|
420
420
|
get useLiveSession() {
|
|
421
|
-
return
|
|
421
|
+
return mh;
|
|
422
422
|
},
|
|
423
423
|
get useLiveTsxMaxCharsForFull() {
|
|
424
424
|
return cl;
|
|
@@ -427,25 +427,25 @@ const Wu = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
427
427
|
return Ca;
|
|
428
428
|
},
|
|
429
429
|
get useResponsiveLayout() {
|
|
430
|
-
return
|
|
430
|
+
return s0;
|
|
431
431
|
},
|
|
432
432
|
get v2Card() {
|
|
433
|
-
return
|
|
433
|
+
return t0;
|
|
434
434
|
},
|
|
435
435
|
get v2Chip() {
|
|
436
|
-
return
|
|
436
|
+
return Zh;
|
|
437
437
|
},
|
|
438
438
|
get v2IconBtn() {
|
|
439
|
-
return
|
|
439
|
+
return e0;
|
|
440
440
|
},
|
|
441
441
|
get v2MonoMeta() {
|
|
442
|
-
return
|
|
442
|
+
return n0;
|
|
443
443
|
},
|
|
444
444
|
get v2SectionLabel() {
|
|
445
|
-
return
|
|
445
|
+
return r0;
|
|
446
446
|
},
|
|
447
447
|
get v2Theme() {
|
|
448
|
-
return
|
|
448
|
+
return Qh;
|
|
449
449
|
}
|
|
450
450
|
}, Symbol.toStringTag, { value: "Module" })), bn = Nr(void 0), Qe = /* @__PURE__ */ n(() => {
|
|
451
451
|
const e = en(bn);
|
|
@@ -9996,7 +9996,7 @@ const ah = /* @__PURE__ */ n(({ subAgent: e, compact: r, onLinkClicked: i }) =>
|
|
|
9996
9996
|
};
|
|
9997
9997
|
n(Da, "ErrorBoundary");
|
|
9998
9998
|
let na = Da;
|
|
9999
|
-
const tl = /* @__PURE__ */ n(({ onLinkClicked: e, eventBusService: r, messagesRef: i, artifactService: d, friendlyMode: f }) => {
|
|
9999
|
+
const ch = {}, tl = /* @__PURE__ */ n(({ onLinkClicked: e, eventBusService: r, messagesRef: i, artifactService: d, friendlyMode: f }) => {
|
|
10000
10000
|
const s = pe((b) => b.turnOpen), y = pe((b) => b.currentMessage);
|
|
10001
10001
|
return y ? /* @__PURE__ */ t(na, { children: /* @__PURE__ */ t(
|
|
10002
10002
|
R,
|
|
@@ -10005,49 +10005,10 @@ const tl = /* @__PURE__ */ n(({ onLinkClicked: e, eventBusService: r, messagesRe
|
|
|
10005
10005
|
p: 0.5,
|
|
10006
10006
|
width: "100%",
|
|
10007
10007
|
height: "100%",
|
|
10008
|
-
// Streaming-content arrival animation
|
|
10009
|
-
//
|
|
10010
|
-
//
|
|
10011
|
-
|
|
10012
|
-
// per newly-rendered chunk — a new <tr> when the table grows,
|
|
10013
|
-
// a new <li> when the bullet list extends, a new <p> when
|
|
10014
|
-
// the text rolls past a paragraph break. Existing nodes that
|
|
10015
|
-
// merely gain trailing text don't re-fire, so character-by-
|
|
10016
|
-
// character text inside an existing <p> still flows without
|
|
10017
|
-
// re-animating. The `both` fill-mode ensures the element
|
|
10018
|
-
// looks correct before and after the keyframe runs.
|
|
10019
|
-
"@keyframes currentMessageFadeIn": {
|
|
10020
|
-
"0%": { opacity: 0, transform: "translateY(4px)" },
|
|
10021
|
-
"100%": { opacity: 1, transform: "translateY(0)" }
|
|
10022
|
-
},
|
|
10023
|
-
// Curated selector list rather than `& *`: layout wrappers
|
|
10024
|
-
// (Stack / Box / generic divs) shouldn't fade in — they're
|
|
10025
|
-
// structural, not content. Targeting block-level *content*
|
|
10026
|
-
// tags keeps the animation tied to what the LLM actually
|
|
10027
|
-
// streams.
|
|
10028
|
-
// Excluded from the animated selector list (would blink):
|
|
10029
|
-
// - `<code>` (inline): sibling-shift inside its parent
|
|
10030
|
-
// gives it a new identity on partial re-parses.
|
|
10031
|
-
// - `<blockquote>`: GFM keeps re-deciding whether the
|
|
10032
|
-
// next `> ` line extends the existing quote or opens
|
|
10033
|
-
// a new one, so the wrapper element gets re-mounted
|
|
10034
|
-
// each chunk.
|
|
10035
|
-
// - any descendant of `[data-live-jsx-content]`: the
|
|
10036
|
-
// compiled Component inside LiveJsxBlock re-mounts
|
|
10037
|
-
// on every code/scope change, which would replay
|
|
10038
|
-
// this keyframe on the headings/paragraphs inside
|
|
10039
|
-
// a metric/chart card and read as a blink. Cards
|
|
10040
|
-
// have their own arrival animation upstream.
|
|
10041
|
-
// - any descendant of `[data-ui-tool-content]`: a host
|
|
10042
|
-
// UI render tool (e.g. present_tripstretch) draws a
|
|
10043
|
-
// rich MUI card whose `<Typography>` (→ `<p>`/`<h*>`)
|
|
10044
|
-
// and logo `<img>` nodes mount all at once when the
|
|
10045
|
-
// tool result folds in (status Done) — typically right
|
|
10046
|
-
// as the turn ends — so the fade would replay across
|
|
10047
|
-
// the whole card and read as a blink.
|
|
10048
|
-
"& p:not([data-live-jsx-content] *):not([data-ui-tool-content] *), & li:not([data-live-jsx-content] *):not([data-ui-tool-content] *), & tr:not([data-live-jsx-content] *):not([data-ui-tool-content] *), & pre:not([data-live-jsx-content] *):not([data-ui-tool-content] *), & h1:not([data-live-jsx-content] *):not([data-ui-tool-content] *), & h2:not([data-live-jsx-content] *):not([data-ui-tool-content] *), & h3:not([data-live-jsx-content] *):not([data-ui-tool-content] *), & h4:not([data-live-jsx-content] *):not([data-ui-tool-content] *), & h5:not([data-live-jsx-content] *):not([data-ui-tool-content] *), & h6:not([data-live-jsx-content] *):not([data-ui-tool-content] *), & hr:not([data-live-jsx-content] *):not([data-ui-tool-content] *), & img:not([data-live-jsx-content] *):not([data-ui-tool-content] *)": {
|
|
10049
|
-
animation: "currentMessageFadeIn 220ms ease-out both"
|
|
10050
|
-
},
|
|
10008
|
+
// Streaming-content arrival animation, gated by
|
|
10009
|
+
// REVEAL_ANIMATION_ENABLED at the top of this file. Currently
|
|
10010
|
+
// off — see that flag's comment for why.
|
|
10011
|
+
...ch,
|
|
10051
10012
|
// Streaming-only left-alignment for table cells. GFM
|
|
10052
10013
|
// sets text-align inline (style="text-align: center")
|
|
10053
10014
|
// when the markdown carries `|:---:|`, and `<th>` is
|
|
@@ -10061,11 +10022,6 @@ const tl = /* @__PURE__ */ n(({ onLinkClicked: e, eventBusService: r, messagesRe
|
|
|
10061
10022
|
// GFM's inline `style` attribute outranks normal CSS.
|
|
10062
10023
|
"& td, & th": {
|
|
10063
10024
|
textAlign: "left !important"
|
|
10064
|
-
},
|
|
10065
|
-
"@media (prefers-reduced-motion: reduce)": {
|
|
10066
|
-
"& p:not([data-live-jsx-content] *):not([data-ui-tool-content] *), & li:not([data-live-jsx-content] *):not([data-ui-tool-content] *), & tr:not([data-live-jsx-content] *):not([data-ui-tool-content] *), & pre:not([data-live-jsx-content] *):not([data-ui-tool-content] *), & h1:not([data-live-jsx-content] *):not([data-ui-tool-content] *), & h2:not([data-live-jsx-content] *):not([data-ui-tool-content] *), & h3:not([data-live-jsx-content] *):not([data-ui-tool-content] *), & h4:not([data-live-jsx-content] *):not([data-ui-tool-content] *), & h5:not([data-live-jsx-content] *):not([data-ui-tool-content] *), & h6:not([data-live-jsx-content] *):not([data-ui-tool-content] *), & hr:not([data-live-jsx-content] *):not([data-ui-tool-content] *), & img:not([data-live-jsx-content] *):not([data-ui-tool-content] *)": {
|
|
10067
|
-
animation: "none"
|
|
10068
|
-
}
|
|
10069
10025
|
}
|
|
10070
10026
|
},
|
|
10071
10027
|
children: y && /* @__PURE__ */ t(ka, { showSubAgents: !0, onGoing: !0, container: "currentMessage", isConnectionOpen: s, message: y, onLinkClicked: e, appendWaitingPart: s, messagesRef: i, preview: !0, friendlyMode: f })
|
|
@@ -10075,12 +10031,12 @@ const tl = /* @__PURE__ */ n(({ onLinkClicked: e, eventBusService: r, messagesRe
|
|
|
10075
10031
|
function Ca() {
|
|
10076
10032
|
var I;
|
|
10077
10033
|
const e = pe((k) => k.turnOpen), r = pe((k) => k.currentMessage), { agentGatewayService: i } = Qe(), d = Te(() => {
|
|
10078
|
-
var k;
|
|
10034
|
+
var k, D;
|
|
10079
10035
|
if (!e || !(r != null && r.parts)) return null;
|
|
10080
|
-
for (let
|
|
10081
|
-
const
|
|
10082
|
-
if (Vr(
|
|
10083
|
-
return
|
|
10036
|
+
for (let S = r.parts.length - 1; S >= 0; S--) {
|
|
10037
|
+
const v = r.parts[S];
|
|
10038
|
+
if (Vr(v.functionDetails) && v.eventType === ve.FunctionCall && ((k = v.functionDetails) == null ? void 0 : k.parked) === !0 && ((D = v.functionDetails) == null ? void 0 : D.status) !== "Done")
|
|
10039
|
+
return v;
|
|
10084
10040
|
}
|
|
10085
10041
|
return null;
|
|
10086
10042
|
}, [e, r]), [f, s] = Y(null);
|
|
@@ -10158,14 +10114,14 @@ const rl = /* @__PURE__ */ n(({ promptHeight: e }) => {
|
|
|
10158
10114
|
]
|
|
10159
10115
|
}
|
|
10160
10116
|
) });
|
|
10161
|
-
}, "AskUserSheet"),
|
|
10117
|
+
}, "AskUserSheet"), dh = {
|
|
10162
10118
|
Connecting: "info",
|
|
10163
10119
|
Connected: "success",
|
|
10164
10120
|
Disconnected: "error",
|
|
10165
10121
|
Unknown: "secondary",
|
|
10166
10122
|
Paused: "secondary",
|
|
10167
10123
|
Idle: "info"
|
|
10168
|
-
},
|
|
10124
|
+
}, uh = /* @__PURE__ */ n(() => {
|
|
10169
10125
|
const { connectionStatus: e, sessionActive: r, lastActivity: i, loadingError: d } = pe(
|
|
10170
10126
|
zu((A) => ({ connectionStatus: A.connectionStatus, loadingStatus: A.loading, loadingError: A.loadingError, sessionActive: A.sessionActive, lastActivity: A.lastActivity }))
|
|
10171
10127
|
), [f, s] = Y(0), y = St(), b = /* @__PURE__ */ n((A) => {
|
|
@@ -10181,7 +10137,7 @@ const rl = /* @__PURE__ */ n(({ promptHeight: e }) => {
|
|
|
10181
10137
|
default:
|
|
10182
10138
|
return "";
|
|
10183
10139
|
}
|
|
10184
|
-
}, "getSmallStatus"), I = /* @__PURE__ */ n(() => !r && e !== "Idle" ? { color: "secondary", status: "Session Inactive" } : { color:
|
|
10140
|
+
}, "getSmallStatus"), I = /* @__PURE__ */ n(() => !r && e !== "Idle" ? { color: "secondary", status: "Session Inactive" } : { color: dh[e.toString()], status: b(e) }, "getState");
|
|
10185
10141
|
cu(() => {
|
|
10186
10142
|
s((/* @__PURE__ */ new Date()).getTime() - i);
|
|
10187
10143
|
}, 1500);
|
|
@@ -10214,7 +10170,7 @@ const rl = /* @__PURE__ */ n(({ promptHeight: e }) => {
|
|
|
10214
10170
|
] }),
|
|
10215
10171
|
!!d && e != Se.Connected && /* @__PURE__ */ t(_n, { title: d, sx: { cursor: "pointer" }, children: /* @__PURE__ */ t(Ie, { variant: "caption", noWrap: !0, style: { color: y.palette.error.light, fontStyle: "italic", overflow: "clip", minWidth: 0, maxWidth: "250px" }, children: d }) })
|
|
10216
10172
|
] });
|
|
10217
|
-
}, "ConnectionState"),
|
|
10173
|
+
}, "ConnectionState"), ph = aa(), Jn = /* @__PURE__ */ n((e) => {
|
|
10218
10174
|
var le;
|
|
10219
10175
|
const { eventBusService: i, showStickyHeader: d, currentModel: f, friendlyMode: s, compactPrompt: y, showConnectionState: b, hidePromptInput: I, autoRenderAskUserSheet: k } = Qe(), D = f ? oa[f] : void 0, S = pe((Z) => {
|
|
10220
10176
|
var ge;
|
|
@@ -10308,7 +10264,7 @@ const rl = /* @__PURE__ */ n(({ promptHeight: e }) => {
|
|
|
10308
10264
|
$(Dt);
|
|
10309
10265
|
break;
|
|
10310
10266
|
case "Export":
|
|
10311
|
-
Z.indexOf("http") == -1 && (Z =
|
|
10267
|
+
Z.indexOf("http") == -1 && (Z = ph + Z), Le(Z);
|
|
10312
10268
|
break;
|
|
10313
10269
|
case "Question":
|
|
10314
10270
|
await Xe(Pt);
|
|
@@ -10373,7 +10329,7 @@ const rl = /* @__PURE__ */ n(({ promptHeight: e }) => {
|
|
|
10373
10329
|
showStickyHeader: d
|
|
10374
10330
|
}
|
|
10375
10331
|
),
|
|
10376
|
-
b && /* @__PURE__ */ t("div", { style: { position: "absolute", right: "0px", top: "5px", zIndex: 1e4 }, children: /* @__PURE__ */ t(
|
|
10332
|
+
b && /* @__PURE__ */ t("div", { style: { position: "absolute", right: "0px", top: "5px", zIndex: 1e4 }, children: /* @__PURE__ */ t(uh, {}) }),
|
|
10377
10333
|
w !== void 0 && A != "Idle" && A != "Connected" && /* @__PURE__ */ t("div", { style: { display: "inline-flex", position: "absolute", backgroundColor: fn(h.palette.background.default, 0.6), justifyContent: "center", alignItems: "center", height: "100%", width: "100%", right: "0px", top: "0", zIndex: 1e4 }, children: /* @__PURE__ */ t(R, { sx: {
|
|
10378
10334
|
width: "100%",
|
|
10379
10335
|
height: "100%",
|
|
@@ -10740,12 +10696,12 @@ function al(e, r) {
|
|
|
10740
10696
|
return i || (i = r(), Br.set(e, i)), i;
|
|
10741
10697
|
}
|
|
10742
10698
|
n(al, "getSharedAiChatEngine");
|
|
10743
|
-
async function
|
|
10699
|
+
async function hh(e) {
|
|
10744
10700
|
const r = Br.get(e);
|
|
10745
10701
|
r && (Br.delete(e), await r.dispose());
|
|
10746
10702
|
}
|
|
10747
|
-
n(
|
|
10748
|
-
function
|
|
10703
|
+
n(hh, "disposeSharedAiChatEngine");
|
|
10704
|
+
function fh(e) {
|
|
10749
10705
|
return {
|
|
10750
10706
|
pushNotification: /* @__PURE__ */ n((r) => {
|
|
10751
10707
|
ia(r.message, {
|
|
@@ -10759,13 +10715,13 @@ function hh(e) {
|
|
|
10759
10715
|
}, "pushNotification")
|
|
10760
10716
|
};
|
|
10761
10717
|
}
|
|
10762
|
-
n(
|
|
10763
|
-
function
|
|
10718
|
+
n(fh, "themeNotificationPort");
|
|
10719
|
+
function mh(e, r) {
|
|
10764
10720
|
var b, I, k, D;
|
|
10765
10721
|
const i = at(), d = (r == null ? void 0 : r.key) ?? "default", f = Te(
|
|
10766
10722
|
() => al(d, () => la({
|
|
10767
10723
|
...e,
|
|
10768
|
-
notificationPort: e.notificationPort ??
|
|
10724
|
+
notificationPort: e.notificationPort ?? fh(i)
|
|
10769
10725
|
})),
|
|
10770
10726
|
// Intentionally keyed only by `key`: the engine lifetime is the key's
|
|
10771
10727
|
// lifetime, not this component's, and config is propagated separately.
|
|
@@ -10801,8 +10757,8 @@ function fh(e, r) {
|
|
|
10801
10757
|
promptAssistService: y
|
|
10802
10758
|
};
|
|
10803
10759
|
}
|
|
10804
|
-
n(
|
|
10805
|
-
const
|
|
10760
|
+
n(mh, "useLiveSession");
|
|
10761
|
+
const gh = /* @__PURE__ */ n(({
|
|
10806
10762
|
title: e = "The agent needs your answer",
|
|
10807
10763
|
maxWidth: r = "sm",
|
|
10808
10764
|
minimizable: i = !0,
|
|
@@ -10881,7 +10837,7 @@ const mh = /* @__PURE__ */ n(({
|
|
|
10881
10837
|
]
|
|
10882
10838
|
}
|
|
10883
10839
|
);
|
|
10884
|
-
}, "AskUserDialog"),
|
|
10840
|
+
}, "AskUserDialog"), bh = /* @__PURE__ */ n(({ artifact: e, mode: r, sessionId: i, preview: d, onExpand: f, renderMode: s = "browser", naked: y = !1, fullImage: b = !1 }) => {
|
|
10885
10841
|
var w;
|
|
10886
10842
|
const I = St();
|
|
10887
10843
|
let k = !1, D = !1;
|
|
@@ -11031,7 +10987,7 @@ const mh = /* @__PURE__ */ n(({
|
|
|
11031
10987
|
] });
|
|
11032
10988
|
}
|
|
11033
10989
|
return n(p, "getEmbbedImage"), (w = e == null ? void 0 : e.mimeType) != null && w.startsWith("image") ? p(e) : d ? v() : A((e == null ? void 0 : e.html) ?? "", !1);
|
|
11034
|
-
}, "ArtifactRender"),
|
|
10990
|
+
}, "ArtifactRender"), yh = /* @__PURE__ */ n(({
|
|
11035
10991
|
text: e,
|
|
11036
10992
|
totalTime: r,
|
|
11037
10993
|
initialDelay: i,
|
|
@@ -11063,56 +11019,56 @@ const mh = /* @__PURE__ */ n(({
|
|
|
11063
11019
|
};
|
|
11064
11020
|
}, i);
|
|
11065
11021
|
}, [e, r, i]), y.current ? d ? /* @__PURE__ */ t(Lt, { sessionId: "", text: e }) : /* @__PURE__ */ t(re, { children: e }) : d ? /* @__PURE__ */ t(Lt, { sessionId: "", text: f }) : /* @__PURE__ */ t(re, { children: f });
|
|
11066
|
-
}, "DelayTextComponent"),
|
|
11067
|
-
function
|
|
11022
|
+
}, "DelayTextComponent"), xh = /* @__PURE__ */ new Set(["livetsx", "tsx", "jsx"]), vh = /<div\b[^>]*\bdata-envision-livetsx="loading"[^>]*><\/div>/i, Pi = /<div\b[^>]*\bdata-envision-livetsx="loading"[^>]*><\/div>/gi, il = /<i data-lt-tick><\/i>/g, wh = 2e3, Sh = 100, kh = /```(?:liveTsx|tsx|jsx)\s*\n[\s\S]*?\n```/i;
|
|
11023
|
+
function Ch(e, r) {
|
|
11068
11024
|
let i = -1, d;
|
|
11069
11025
|
const f = new RegExp(Pi.source, Pi.flags);
|
|
11070
11026
|
for (; (d = f.exec(e)) !== null; )
|
|
11071
11027
|
i = d.index + d[0].length;
|
|
11072
11028
|
if (i === -1) return [0, 0];
|
|
11073
11029
|
const s = e.slice(i);
|
|
11074
|
-
if (
|
|
11075
|
-
const y = s.match(il), b = y ? y.length : 0, I = Math.max(1, r /
|
|
11030
|
+
if (kh.test(s)) return [0, 0];
|
|
11031
|
+
const y = s.match(il), b = y ? y.length : 0, I = Math.max(1, r / Sh);
|
|
11076
11032
|
return [Math.min(b / I, 1), b];
|
|
11077
11033
|
}
|
|
11078
|
-
n(
|
|
11079
|
-
function
|
|
11034
|
+
n(Ch, "computeProgress");
|
|
11035
|
+
function Eh(e) {
|
|
11080
11036
|
const r = /^```(\w+)\s*$/gm;
|
|
11081
11037
|
let i = null, d;
|
|
11082
11038
|
for (; (d = r.exec(e)) !== null; )
|
|
11083
|
-
|
|
11039
|
+
xh.has(d[1].toLowerCase()) && (i = d);
|
|
11084
11040
|
if (!i) return null;
|
|
11085
11041
|
const f = e.slice(i.index + i[0].length);
|
|
11086
11042
|
if (/^```\s*$/m.test(f)) return null;
|
|
11087
11043
|
const y = e.slice(0, i.index), b = f.replace(/^\n/, "");
|
|
11088
11044
|
return { before: y, partialCode: b };
|
|
11089
11045
|
}
|
|
11090
|
-
n(
|
|
11091
|
-
const
|
|
11092
|
-
function
|
|
11046
|
+
n(Eh, "extractTrailingUnclosedFence");
|
|
11047
|
+
const Ih = /^\{\{\s*Component:\s*([\w-]+)\s*\}\}$/, Th = /^ {0,3}\{\{\s*Component:\s*[\w-]+\s*\}\}[ \t]*$/, Ah = /^ {0,3}(`{3,}|~{3,})/, _h = /\{\{\s*Component\s*:[^}]*\}\}/g;
|
|
11048
|
+
function Mh(e) {
|
|
11093
11049
|
if (!e.includes("{{")) return e;
|
|
11094
11050
|
const r = e.split(`
|
|
11095
11051
|
`), i = [];
|
|
11096
11052
|
let d = !1, f = "";
|
|
11097
11053
|
for (const y of r) {
|
|
11098
|
-
const b = y.match(
|
|
11054
|
+
const b = y.match(Ah);
|
|
11099
11055
|
if (b) {
|
|
11100
11056
|
d ? b[1][0] === f && (d = !1) : (d = !0, f = b[1][0]), i.push(y);
|
|
11101
11057
|
continue;
|
|
11102
11058
|
}
|
|
11103
|
-
if (!d &&
|
|
11059
|
+
if (!d && Th.test(y)) {
|
|
11104
11060
|
i.length > 0 && i[i.length - 1].trim() !== "" && i.push(""), i.push(y.trim()), i.push("");
|
|
11105
11061
|
continue;
|
|
11106
11062
|
}
|
|
11107
|
-
const I = d ? y : y.replace(
|
|
11063
|
+
const I = d ? y : y.replace(_h, "");
|
|
11108
11064
|
i.push(I === y ? y : I.trimEnd());
|
|
11109
11065
|
}
|
|
11110
11066
|
let s = i.join(`
|
|
11111
11067
|
`);
|
|
11112
|
-
return d || (s =
|
|
11068
|
+
return d || (s = zh(s)), s;
|
|
11113
11069
|
}
|
|
11114
|
-
n(
|
|
11115
|
-
function
|
|
11070
|
+
n(Mh, "promoteSlotTokenLines");
|
|
11071
|
+
function zh(e) {
|
|
11116
11072
|
const r = e.lastIndexOf(`
|
|
11117
11073
|
`), i = e.slice(r + 1), d = i.lastIndexOf("{{");
|
|
11118
11074
|
if (d < 0) return e;
|
|
@@ -11121,22 +11077,22 @@ function Mh(e) {
|
|
|
11121
11077
|
const s = "{{Component:";
|
|
11122
11078
|
return (f.length < s.length ? s.startsWith(f) : f.startsWith(s)) ? e.slice(0, r + 1 + d) : e;
|
|
11123
11079
|
}
|
|
11124
|
-
n(
|
|
11125
|
-
function
|
|
11080
|
+
n(zh, "trimTrailingPartialToken");
|
|
11081
|
+
function Dh(e) {
|
|
11126
11082
|
if (e.type !== "paragraph") return null;
|
|
11127
11083
|
const r = e.children ?? [];
|
|
11128
11084
|
return r.length === 0 || !r.every((i) => i.type === "text") ? null : r.map((i) => i.value ?? "").join("").trim();
|
|
11129
11085
|
}
|
|
11130
|
-
n(
|
|
11086
|
+
n(Dh, "paragraphText");
|
|
11131
11087
|
function sl(e, r) {
|
|
11132
11088
|
if (!(e != null && e.trim())) return [];
|
|
11133
|
-
const [i, d] =
|
|
11089
|
+
const [i, d] = Ch(
|
|
11134
11090
|
e,
|
|
11135
|
-
(r == null ? void 0 : r.maxCharsForFull) ??
|
|
11091
|
+
(r == null ? void 0 : r.maxCharsForFull) ?? wh
|
|
11136
11092
|
);
|
|
11137
|
-
e = e.replace(il, ""), e =
|
|
11093
|
+
e = e.replace(il, ""), e = Mh(e);
|
|
11138
11094
|
let f = null;
|
|
11139
|
-
const s =
|
|
11095
|
+
const s = Eh(e);
|
|
11140
11096
|
s && (e = s.before, f = s.partialCode);
|
|
11141
11097
|
const y = xu().use(vu).parse(e), b = [];
|
|
11142
11098
|
let I = [], k = !1;
|
|
@@ -11146,13 +11102,13 @@ function sl(e, r) {
|
|
|
11146
11102
|
S.trim() && b.push({ type: "markdown", content: S }), I = [];
|
|
11147
11103
|
}, "flushBuffer");
|
|
11148
11104
|
for (const S of y.children) {
|
|
11149
|
-
if (S.type === "html" &&
|
|
11105
|
+
if (S.type === "html" && vh.test(S.value)) {
|
|
11150
11106
|
D(), k = !0;
|
|
11151
11107
|
continue;
|
|
11152
11108
|
}
|
|
11153
|
-
const v =
|
|
11109
|
+
const v = Dh(S);
|
|
11154
11110
|
if (v) {
|
|
11155
|
-
const A = v.match(
|
|
11111
|
+
const A = v.match(Ih);
|
|
11156
11112
|
if (A) {
|
|
11157
11113
|
D(), b.push({ type: "slot", slotId: A[1] });
|
|
11158
11114
|
continue;
|
|
@@ -11168,7 +11124,7 @@ function cl() {
|
|
|
11168
11124
|
return en(ll);
|
|
11169
11125
|
}
|
|
11170
11126
|
n(cl, "useLiveTsxMaxCharsForFull");
|
|
11171
|
-
const
|
|
11127
|
+
const Rh = /* @__PURE__ */ n(({ maxCharsForFull: e, children: r }) => {
|
|
11172
11128
|
const i = Te(
|
|
11173
11129
|
() => e ?? Ea,
|
|
11174
11130
|
[e]
|
|
@@ -11249,36 +11205,36 @@ function ul() {
|
|
|
11249
11205
|
return e[Mo] || (e[Mo] = {}), e[Mo];
|
|
11250
11206
|
}
|
|
11251
11207
|
n(ul, "getRegistryExtensions");
|
|
11252
|
-
function
|
|
11208
|
+
function Oh(e, r) {
|
|
11253
11209
|
const i = ul();
|
|
11254
11210
|
i[e] = {
|
|
11255
11211
|
...i[e] ?? {},
|
|
11256
11212
|
...r
|
|
11257
11213
|
};
|
|
11258
11214
|
}
|
|
11259
|
-
n(
|
|
11215
|
+
n(Oh, "extendModuleRegistry");
|
|
11260
11216
|
const zo = Symbol.for("envision:default-scope-extensions");
|
|
11261
11217
|
function pl() {
|
|
11262
11218
|
const e = globalThis;
|
|
11263
11219
|
return e[zo] || (e[zo] = {}), e[zo];
|
|
11264
11220
|
}
|
|
11265
11221
|
n(pl, "getScopeExtensions");
|
|
11266
|
-
function
|
|
11222
|
+
function Ph(e) {
|
|
11267
11223
|
const r = pl();
|
|
11268
11224
|
Object.assign(r, e);
|
|
11269
11225
|
}
|
|
11270
|
-
n(
|
|
11226
|
+
n(Ph, "extendDefaultScope");
|
|
11271
11227
|
let Do = null;
|
|
11272
|
-
function
|
|
11228
|
+
function Fh() {
|
|
11273
11229
|
return Do || (Do = Promise.all([
|
|
11274
11230
|
import("@mui/material"),
|
|
11275
11231
|
import("@mui/icons-material"),
|
|
11276
11232
|
import("recharts")
|
|
11277
11233
|
]).then(([e, r, i]) => ({ MuiMaterial: e, Icons: r, Recharts: i }))), Do;
|
|
11278
11234
|
}
|
|
11279
|
-
n(
|
|
11280
|
-
async function
|
|
11281
|
-
const { MuiMaterial: e, Icons: r, Recharts: i } = await
|
|
11235
|
+
n(Fh, "loadHeavyModules");
|
|
11236
|
+
async function jh() {
|
|
11237
|
+
const { MuiMaterial: e, Icons: r, Recharts: i } = await Fh(), d = {
|
|
11282
11238
|
react: { ...Fo, default: Fo },
|
|
11283
11239
|
"@mui/material": { ...e },
|
|
11284
11240
|
"@mui/material/styles": { ...e },
|
|
@@ -11293,7 +11249,7 @@ async function Fh() {
|
|
|
11293
11249
|
d[f] = { ...d[f] ?? {}, ...s };
|
|
11294
11250
|
return d;
|
|
11295
11251
|
}
|
|
11296
|
-
n(
|
|
11252
|
+
n(jh, "getModuleRegistry");
|
|
11297
11253
|
function hl() {
|
|
11298
11254
|
return { ...{
|
|
11299
11255
|
React: Fo,
|
|
@@ -11336,7 +11292,7 @@ function Fi(e) {
|
|
|
11336
11292
|
return r ^= r >>> 16, r = Math.imul(r, 2246822519) >>> 0, r ^= r >>> 13, r = Math.imul(r, 3266489917) >>> 0, (r >>> 0) / 4294967295;
|
|
11337
11293
|
}
|
|
11338
11294
|
n(Fi, "unitFromIndex");
|
|
11339
|
-
const Ro = 15,
|
|
11295
|
+
const Ro = 15, Lh = /* @__PURE__ */ n(() => {
|
|
11340
11296
|
const e = St(), r = e.palette.mode === "dark", i = Ke(e.palette.text.primary, r ? 0.1 : 0.08), d = Ke(e.palette.text.primary, r ? 0.22 : 0.18), f = Ke(e.palette.text.primary, r ? 0.18 : 0.14), s = Ke(e.palette.text.primary, r ? 0.22 : 0.18), y = Ke(e.palette.text.primary, r ? 0.13 : 0.1), { bars: b, linePoints: I } = Te(() => {
|
|
11341
11297
|
const k = Array.from({ length: Ro }, (_, j) => 0.18 + Fi(j) * 0.78), D = Array.from({ length: Ro }, (_, j) => 0.18 + Fi(j + 100) * 0.78), S = 360, v = 160, A = 14, p = 12, x = v - p - 18, g = p + 6, h = x - g, M = (S - A * 2) / Ro, u = M * 0.52, E = k.map((_, j) => {
|
|
11342
11298
|
const B = _ * h, G = A + j * M + (M - u) / 2, ne = x - B;
|
|
@@ -11474,7 +11430,7 @@ const Ro = 15, jh = /* @__PURE__ */ n(() => {
|
|
|
11474
11430
|
},
|
|
11475
11431
|
children: Array.from({ length: e }, (d, f) => /* @__PURE__ */ t(fl, { showIcon: r, showChangeRow: i }, f))
|
|
11476
11432
|
}
|
|
11477
|
-
), "MetricGroupSkeleton"),
|
|
11433
|
+
), "MetricGroupSkeleton"), $h = /* @__PURE__ */ n(({ columns: e = 5, rows: r = 10 }) => {
|
|
11478
11434
|
const i = St(), d = Array.from({ length: e }, (k, D) => D), f = Array.from({ length: r }, (k, D) => D), s = i.palette.mode === "dark" ? Ke(i.palette.grey[700], 0.55) : Ke(i.palette.grey[300], 0.6), y = Ke(i.palette.divider, i.palette.mode === "dark" ? 0.9 : 1), b = Ke(i.palette.divider, 0.6), I = Ke(
|
|
11479
11435
|
i.palette.common.white,
|
|
11480
11436
|
i.palette.mode === "dark" ? 0.12 : 0.35
|
|
@@ -11532,7 +11488,7 @@ const Ro = 15, jh = /* @__PURE__ */ n(() => {
|
|
|
11532
11488
|
]
|
|
11533
11489
|
}
|
|
11534
11490
|
) });
|
|
11535
|
-
}, "TableSkeleton"),
|
|
11491
|
+
}, "TableSkeleton"), Bh = /* @__PURE__ */ n(() => /* @__PURE__ */ t(
|
|
11536
11492
|
Qt,
|
|
11537
11493
|
{
|
|
11538
11494
|
animation: "wave",
|
|
@@ -11543,11 +11499,11 @@ const Ro = 15, jh = /* @__PURE__ */ n(() => {
|
|
|
11543
11499
|
borderRadius: 2
|
|
11544
11500
|
}
|
|
11545
11501
|
}
|
|
11546
|
-
), "IFrameSkeleton"),
|
|
11502
|
+
), "IFrameSkeleton"), Wh = [
|
|
11547
11503
|
[1e9, "Gb"],
|
|
11548
11504
|
[1e6, "Mb"],
|
|
11549
11505
|
[1e3, "Kb"]
|
|
11550
|
-
],
|
|
11506
|
+
], Nh = /* @__PURE__ */ n(({ progress: e = 0, bytes: r }) => {
|
|
11551
11507
|
const i = St(), d = i.palette.primary.main, f = i.palette.primary.softBg, s = i.palette.text.secondary, y = 10, b = [
|
|
11552
11508
|
{ x: 0, h: 50, acc: 0 },
|
|
11553
11509
|
{ x: 0, h: 65, acc: 0 },
|
|
@@ -11562,7 +11518,7 @@ const Ro = 15, jh = /* @__PURE__ */ n(() => {
|
|
|
11562
11518
|
v += b[g].h, b[g].acc = v, b[g].x = y + g * I;
|
|
11563
11519
|
function A(g, h = 2, M = !0) {
|
|
11564
11520
|
const u = Math.abs(g);
|
|
11565
|
-
for (const [E, c] of
|
|
11521
|
+
for (const [E, c] of Wh)
|
|
11566
11522
|
if (u >= E)
|
|
11567
11523
|
return (g / E).toFixed(h) + (M ? c : "");
|
|
11568
11524
|
return g.toFixed(0) + "b";
|
|
@@ -11704,8 +11660,8 @@ const Ro = 15, jh = /* @__PURE__ */ n(() => {
|
|
|
11704
11660
|
]
|
|
11705
11661
|
}
|
|
11706
11662
|
);
|
|
11707
|
-
}, "GeneratingVisualization"),
|
|
11708
|
-
function
|
|
11663
|
+
}, "GeneratingVisualization"), Hh = "<!--liveTsx:invalid-->";
|
|
11664
|
+
function qh(e, r) {
|
|
11709
11665
|
const i = /__scope\[(["'`])([^"'`\]]+)\1\](?:\.([A-Za-z_$][\w$]*))?/g, d = /* @__PURE__ */ new Set(), f = /* @__PURE__ */ new Map();
|
|
11710
11666
|
let s;
|
|
11711
11667
|
for (; (s = i.exec(e)) !== null; ) {
|
|
@@ -11735,27 +11691,27 @@ function Hh(e, r) {
|
|
|
11735
11691
|
return new Error(y.join(`
|
|
11736
11692
|
`));
|
|
11737
11693
|
}
|
|
11738
|
-
n(
|
|
11739
|
-
function
|
|
11740
|
-
const i =
|
|
11694
|
+
n(qh, "checkScopeBindings");
|
|
11695
|
+
function Vh(e, r) {
|
|
11696
|
+
const i = qh(e, r);
|
|
11741
11697
|
if (i) throw i;
|
|
11742
11698
|
return new Function("__scope", e)(r);
|
|
11743
11699
|
}
|
|
11744
|
-
n(
|
|
11745
|
-
const
|
|
11746
|
-
chart:
|
|
11747
|
-
containtable:
|
|
11700
|
+
n(Vh, "compileToComponent");
|
|
11701
|
+
const Uh = /<(chart|containtable|metricgroup|metric|iframe)\b/i, Kh = {
|
|
11702
|
+
chart: Lh,
|
|
11703
|
+
containtable: $h,
|
|
11748
11704
|
metricgroup: ml,
|
|
11749
11705
|
metric: fl,
|
|
11750
|
-
iframe:
|
|
11706
|
+
iframe: Bh
|
|
11751
11707
|
};
|
|
11752
|
-
function
|
|
11753
|
-
const r =
|
|
11708
|
+
function Gh(e) {
|
|
11709
|
+
const r = Uh.exec(e);
|
|
11754
11710
|
if (!r) return null;
|
|
11755
11711
|
const i = r[1].toLowerCase();
|
|
11756
|
-
return i === "metric" && /metricgroup/i.test(e) ? ml :
|
|
11712
|
+
return i === "metric" && /metricgroup/i.test(e) ? ml : Kh[i] ?? null;
|
|
11757
11713
|
}
|
|
11758
|
-
n(
|
|
11714
|
+
n(Gh, "detectSkeleton");
|
|
11759
11715
|
const Ra = class Ra extends mt.Component {
|
|
11760
11716
|
constructor() {
|
|
11761
11717
|
super(...arguments);
|
|
@@ -11773,11 +11729,11 @@ const Ra = class Ra extends mt.Component {
|
|
|
11773
11729
|
};
|
|
11774
11730
|
n(Ra, "JsxErrorBoundary");
|
|
11775
11731
|
let Wr = Ra;
|
|
11776
|
-
const
|
|
11732
|
+
const Jh = /* @__PURE__ */ n(({ code: e, partial: r, scope: i, progress: d = 0, bytes: f = 0 }) => {
|
|
11777
11733
|
const [s, y] = Y(null);
|
|
11778
11734
|
oe(() => {
|
|
11779
11735
|
let u = !1;
|
|
11780
|
-
return
|
|
11736
|
+
return jh().then((E) => {
|
|
11781
11737
|
u || y(E);
|
|
11782
11738
|
}).catch((E) => {
|
|
11783
11739
|
console.error("[LiveJsxBlock] Failed to load module registry:", E);
|
|
@@ -11792,7 +11748,7 @@ const Gh = /* @__PURE__ */ n(({ code: e, partial: r, scope: i, progress: d = 0,
|
|
|
11792
11748
|
}, [s, i]), I = Te(() => {
|
|
11793
11749
|
if (r || !b) return { Component: null, error: null };
|
|
11794
11750
|
try {
|
|
11795
|
-
return { Component:
|
|
11751
|
+
return { Component: Vh(e, b), error: null };
|
|
11796
11752
|
} catch (u) {
|
|
11797
11753
|
return {
|
|
11798
11754
|
Component: null,
|
|
@@ -11839,9 +11795,9 @@ const Gh = /* @__PURE__ */ n(({ code: e, partial: r, scope: i, progress: d = 0,
|
|
|
11839
11795
|
j && (j.style.height = "", j.style.transition = ""), p("final");
|
|
11840
11796
|
}, 1500);
|
|
11841
11797
|
return () => window.clearTimeout(_);
|
|
11842
|
-
}, [A]), e.includes(
|
|
11798
|
+
}, [A]), e.includes(Hh)) return null;
|
|
11843
11799
|
if (v && I.error) return k(I.error, !1);
|
|
11844
|
-
const g =
|
|
11800
|
+
const g = Gh(e), h = g ? /* @__PURE__ */ t(g, {}) : /* @__PURE__ */ t(Nh, { progress: d, bytes: f }), M = /* @__PURE__ */ T($u, { theme: D, children: [
|
|
11845
11801
|
/* @__PURE__ */ t(Nc, {}),
|
|
11846
11802
|
/* @__PURE__ */ t(Wr, { fallback: k, children: /* @__PURE__ */ t(ce, { "data-live-jsx-content": "", children: I.Component ? /* @__PURE__ */ t(I.Component, {}) : /* @__PURE__ */ t(Lt, { text: `\`\`\`tsx
|
|
11847
11803
|
${e}\`\`\``, sessionId: "" }) }) })
|
|
@@ -11928,7 +11884,7 @@ ${e}\`\`\``, sessionId: "" }) }) })
|
|
|
11928
11884
|
radius: 10,
|
|
11929
11885
|
radiusSm: 6,
|
|
11930
11886
|
radiusLg: 12
|
|
11931
|
-
},
|
|
11887
|
+
}, Yh = {
|
|
11932
11888
|
palette: {
|
|
11933
11889
|
mode: "dark",
|
|
11934
11890
|
primary: {
|
|
@@ -12101,7 +12057,7 @@ ${e}\`\`\``, sessionId: "" }) }) })
|
|
|
12101
12057
|
}
|
|
12102
12058
|
}
|
|
12103
12059
|
}
|
|
12104
|
-
},
|
|
12060
|
+
}, Qh = Yc(Yh), Xh = [
|
|
12105
12061
|
"#e0a458",
|
|
12106
12062
|
// amber (primary accent)
|
|
12107
12063
|
"#7d9bd1",
|
|
@@ -12112,7 +12068,7 @@ ${e}\`\`\``, sessionId: "" }) }) })
|
|
|
12112
12068
|
// green
|
|
12113
12069
|
"#d97a7a"
|
|
12114
12070
|
// coral
|
|
12115
|
-
],
|
|
12071
|
+
], Zh = /* @__PURE__ */ n((e) => ({
|
|
12116
12072
|
backgroundColor: e.palette.surface.raised,
|
|
12117
12073
|
border: `1px solid ${e.palette.border.default}`,
|
|
12118
12074
|
color: e.palette.text.secondary,
|
|
@@ -12128,7 +12084,7 @@ ${e}\`\`\``, sessionId: "" }) }) })
|
|
|
12128
12084
|
lineHeight: 1.2,
|
|
12129
12085
|
transition: "background-color .12s, color .12s",
|
|
12130
12086
|
"&:hover": { backgroundColor: e.palette.surface.hover, color: e.palette.text.primary }
|
|
12131
|
-
}), "v2Chip"),
|
|
12087
|
+
}), "v2Chip"), e0 = /* @__PURE__ */ n((e) => ({
|
|
12132
12088
|
background: "transparent",
|
|
12133
12089
|
border: "none",
|
|
12134
12090
|
color: e.palette.text.secondary,
|
|
@@ -12139,15 +12095,15 @@ ${e}\`\`\``, sessionId: "" }) }) })
|
|
|
12139
12095
|
alignItems: "center",
|
|
12140
12096
|
justifyContent: "center",
|
|
12141
12097
|
"&:hover": { backgroundColor: e.palette.surface.raised, color: e.palette.text.primary }
|
|
12142
|
-
}), "v2IconBtn"),
|
|
12098
|
+
}), "v2IconBtn"), t0 = /* @__PURE__ */ n((e) => ({
|
|
12143
12099
|
backgroundColor: e.palette.background.paper,
|
|
12144
12100
|
border: `1px solid ${e.palette.border.default}`,
|
|
12145
12101
|
borderRadius: `${e.shape.borderRadius}px`
|
|
12146
|
-
}), "v2Card"),
|
|
12102
|
+
}), "v2Card"), n0 = /* @__PURE__ */ n((e) => ({
|
|
12147
12103
|
fontFamily: e.typography.fontFamilyMono,
|
|
12148
12104
|
fontSize: 10.5,
|
|
12149
12105
|
color: e.palette.text.disabled
|
|
12150
|
-
}), "v2MonoMeta"),
|
|
12106
|
+
}), "v2MonoMeta"), r0 = /* @__PURE__ */ n((e) => ({
|
|
12151
12107
|
fontSize: 10,
|
|
12152
12108
|
color: e.palette.text.disabled,
|
|
12153
12109
|
textTransform: "uppercase",
|
|
@@ -12157,7 +12113,7 @@ ${e}\`\`\``, sessionId: "" }) }) })
|
|
|
12157
12113
|
display: "flex",
|
|
12158
12114
|
alignItems: "center",
|
|
12159
12115
|
gap: 0.5
|
|
12160
|
-
}), "v2SectionLabel"),
|
|
12116
|
+
}), "v2SectionLabel"), o0 = /* @__PURE__ */ n(({
|
|
12161
12117
|
data: e,
|
|
12162
12118
|
color: r,
|
|
12163
12119
|
width: i = 100,
|
|
@@ -12211,14 +12167,14 @@ ${e}\`\`\``, sessionId: "" }) }) })
|
|
|
12211
12167
|
}
|
|
12212
12168
|
), "AppShellV2");
|
|
12213
12169
|
gl.displayName = "AppShellV2";
|
|
12214
|
-
const
|
|
12170
|
+
const a0 = 48, bl = /* @__PURE__ */ n(({ views: e, logo: r, footer: i }) => {
|
|
12215
12171
|
const { pathname: d } = hs();
|
|
12216
12172
|
return /* @__PURE__ */ T(
|
|
12217
12173
|
R,
|
|
12218
12174
|
{
|
|
12219
12175
|
component: "nav",
|
|
12220
12176
|
sx: /* @__PURE__ */ n((f) => ({
|
|
12221
|
-
width:
|
|
12177
|
+
width: a0,
|
|
12222
12178
|
flexShrink: 0,
|
|
12223
12179
|
backgroundColor: f.palette.background.paper,
|
|
12224
12180
|
borderRight: `1px solid ${f.palette.divider}`,
|
|
@@ -12370,7 +12326,7 @@ const yl = 48, xl = /* @__PURE__ */ n(({
|
|
|
12370
12326
|
}
|
|
12371
12327
|
), "AppBarV2");
|
|
12372
12328
|
xl.displayName = "AppBarV2";
|
|
12373
|
-
const
|
|
12329
|
+
const i0 = 300, vl = [
|
|
12374
12330
|
{
|
|
12375
12331
|
id: "dashboards",
|
|
12376
12332
|
label: "Dashboards",
|
|
@@ -12387,7 +12343,7 @@ const a0 = 300, vl = [
|
|
|
12387
12343
|
open: e,
|
|
12388
12344
|
onClose: r,
|
|
12389
12345
|
navItems: i = vl,
|
|
12390
|
-
width: d =
|
|
12346
|
+
width: d = i0,
|
|
12391
12347
|
logo: f,
|
|
12392
12348
|
productName: s = "Agentic Explorer",
|
|
12393
12349
|
userProfile: y,
|
|
@@ -12543,12 +12499,12 @@ const a0 = 300, vl = [
|
|
|
12543
12499
|
);
|
|
12544
12500
|
}, "MobileDrawerV2");
|
|
12545
12501
|
wl.displayName = "MobileDrawerV2";
|
|
12546
|
-
function
|
|
12502
|
+
function s0() {
|
|
12547
12503
|
const e = at(), r = Co(e.breakpoints.down("sm")), i = Co(e.breakpoints.between("sm", "lg")), d = Co(e.breakpoints.up("lg"));
|
|
12548
12504
|
return { mobile: r, tablet: i, desktop: d };
|
|
12549
12505
|
}
|
|
12550
|
-
n(
|
|
12551
|
-
function
|
|
12506
|
+
n(s0, "useResponsiveLayout");
|
|
12507
|
+
function l0(e, r, i) {
|
|
12552
12508
|
if (!e || e !== "todolistUpdated" || i || !r) return null;
|
|
12553
12509
|
try {
|
|
12554
12510
|
const d = JSON.parse(r);
|
|
@@ -12557,8 +12513,8 @@ function s0(e, r, i) {
|
|
|
12557
12513
|
return null;
|
|
12558
12514
|
}
|
|
12559
12515
|
}
|
|
12560
|
-
n(
|
|
12561
|
-
const
|
|
12516
|
+
n(l0, "tryParseMainAgentTodoList$1");
|
|
12517
|
+
const c0 = "@keyframes v2rpspulse{0%,100%{opacity:1}50%{opacity:.35}}", Sl = mt.memo(() => {
|
|
12562
12518
|
const e = at(), r = pe((i) => {
|
|
12563
12519
|
var f;
|
|
12564
12520
|
const d = i.currentMessage ?? ((f = i.messages) == null ? void 0 : f[i.messages.length - 1]) ?? null;
|
|
@@ -12607,7 +12563,7 @@ const l0 = "@keyframes v2rpspulse{0%,100%{opacity:1}50%{opacity:.35}}", Sl = mt.
|
|
|
12607
12563
|
Sl.displayName = "ToolCountChip";
|
|
12608
12564
|
const Ia = /* @__PURE__ */ n(({ showFlowing: e }) => {
|
|
12609
12565
|
const r = at(), i = pe((g) => g.turnOpen), d = pe((g) => g.connectionStatus), f = pe((g) => g.lastToolEvent), [s, y] = Y(void 0), b = Te(
|
|
12610
|
-
() =>
|
|
12566
|
+
() => l0(
|
|
12611
12567
|
f == null ? void 0 : f.eventName,
|
|
12612
12568
|
f == null ? void 0 : f.eventData,
|
|
12613
12569
|
f == null ? void 0 : f.subAgentId
|
|
@@ -12670,7 +12626,8 @@ const Ia = /* @__PURE__ */ n(({ showFlowing: e }) => {
|
|
|
12670
12626
|
alignItems: "center",
|
|
12671
12627
|
gap: 1,
|
|
12672
12628
|
px: 1.25,
|
|
12673
|
-
|
|
12629
|
+
paddingTop: 0.5,
|
|
12630
|
+
paddingBottom: e ? 1 : 0.5,
|
|
12674
12631
|
minHeight: 28,
|
|
12675
12632
|
backgroundColor: g.palette.background.paper,
|
|
12676
12633
|
borderTop: `1px solid ${g.palette.divider}`,
|
|
@@ -12700,7 +12657,7 @@ const Ia = /* @__PURE__ */ n(({ showFlowing: e }) => {
|
|
|
12700
12657
|
}), "sx")
|
|
12701
12658
|
}
|
|
12702
12659
|
),
|
|
12703
|
-
/* @__PURE__ */ t("style", { children:
|
|
12660
|
+
/* @__PURE__ */ t("style", { children: c0 }),
|
|
12704
12661
|
/* @__PURE__ */ t(Ne, { title: w.label, placement: "top", children: /* @__PURE__ */ t(
|
|
12705
12662
|
R,
|
|
12706
12663
|
{
|
|
@@ -12788,13 +12745,13 @@ const Ia = /* @__PURE__ */ n(({ showFlowing: e }) => {
|
|
|
12788
12745
|
) : null;
|
|
12789
12746
|
}, "RunProgressStripV2");
|
|
12790
12747
|
Ia.displayName = "RunProgressStripV2";
|
|
12791
|
-
const
|
|
12748
|
+
const d0 = 440, u0 = 480, kl = An((e, r) => {
|
|
12792
12749
|
const {
|
|
12793
12750
|
position: i,
|
|
12794
12751
|
chatPositionOffSet: d,
|
|
12795
12752
|
fabContent: f,
|
|
12796
|
-
width: s =
|
|
12797
|
-
height: y =
|
|
12753
|
+
width: s = d0,
|
|
12754
|
+
height: y = u0,
|
|
12798
12755
|
title: b = "Assistente",
|
|
12799
12756
|
onVisibleQuestionChange: I,
|
|
12800
12757
|
onFloatingOpened: k,
|
|
@@ -13042,7 +12999,7 @@ const Cl = /* @__PURE__ */ n(({
|
|
|
13042
12999
|
);
|
|
13043
13000
|
}, "AiChatV2Pane");
|
|
13044
13001
|
Cl.displayName = "AiChatV2Pane";
|
|
13045
|
-
const
|
|
13002
|
+
const p0 = /* @__PURE__ */ n(({
|
|
13046
13003
|
text: e,
|
|
13047
13004
|
charsPerSecond: r = 20
|
|
13048
13005
|
}) => {
|
|
@@ -13058,7 +13015,7 @@ const u0 = /* @__PURE__ */ n(({
|
|
|
13058
13015
|
}, s);
|
|
13059
13016
|
return () => window.clearInterval(b);
|
|
13060
13017
|
}, [e, r]), /* @__PURE__ */ t(re, { children: i });
|
|
13061
|
-
}, "TypewriterText"),
|
|
13018
|
+
}, "TypewriterText"), h0 = "15vw", El = /* @__PURE__ */ n(({
|
|
13062
13019
|
groups: e,
|
|
13063
13020
|
newActiveSession: r,
|
|
13064
13021
|
activeId: i,
|
|
@@ -13115,7 +13072,7 @@ const u0 = /* @__PURE__ */ n(({
|
|
|
13115
13072
|
{
|
|
13116
13073
|
component: "aside",
|
|
13117
13074
|
sx: /* @__PURE__ */ n((H) => ({
|
|
13118
|
-
maxWidth:
|
|
13075
|
+
maxWidth: h0,
|
|
13119
13076
|
flexShrink: 0,
|
|
13120
13077
|
backgroundColor: H.palette.background.paper,
|
|
13121
13078
|
borderRight: `1px solid ${H.palette.divider}`,
|
|
@@ -13302,7 +13259,7 @@ const u0 = /* @__PURE__ */ n(({
|
|
|
13302
13259
|
// left so wrapped titles read cleanly.
|
|
13303
13260
|
textAlign: "left"
|
|
13304
13261
|
}), "sx"),
|
|
13305
|
-
children: ee.kind == "typewritter" ? /* @__PURE__ */ t(
|
|
13262
|
+
children: ee.kind == "typewritter" ? /* @__PURE__ */ t(p0, { text: ee.title, charsPerSecond: 30 }) : ee.title
|
|
13306
13263
|
}
|
|
13307
13264
|
)
|
|
13308
13265
|
] }),
|
|
@@ -13485,13 +13442,13 @@ const u0 = /* @__PURE__ */ n(({
|
|
|
13485
13442
|
);
|
|
13486
13443
|
}, "ChatsHistoryV2");
|
|
13487
13444
|
El.displayName = "ChatsHistoryV2";
|
|
13488
|
-
const
|
|
13489
|
-
function
|
|
13445
|
+
const f0 = "@keyframes v2tspin{to{transform:rotate(360deg)}}";
|
|
13446
|
+
function m0(e) {
|
|
13490
13447
|
const r = String(e).toLowerCase();
|
|
13491
13448
|
return r === "completed" ? "completed" : r === "inprogress" || r === "in_progress" ? "in_progress" : r === "failed" ? "failed" : "pending";
|
|
13492
13449
|
}
|
|
13493
|
-
n(
|
|
13494
|
-
function
|
|
13450
|
+
n(m0, "normalizeStatus");
|
|
13451
|
+
function g0({ status: e }) {
|
|
13495
13452
|
return e === "completed" ? /* @__PURE__ */ t(
|
|
13496
13453
|
R,
|
|
13497
13454
|
{
|
|
@@ -13556,7 +13513,7 @@ function m0({ status: e }) {
|
|
|
13556
13513
|
}
|
|
13557
13514
|
);
|
|
13558
13515
|
}
|
|
13559
|
-
n(
|
|
13516
|
+
n(g0, "TaskDot");
|
|
13560
13517
|
const Zn = /* @__PURE__ */ n(({ todoList: e, dense: r }) => {
|
|
13561
13518
|
const i = ue(null);
|
|
13562
13519
|
if (oe(() => {
|
|
@@ -13565,9 +13522,9 @@ const Zn = /* @__PURE__ */ n(({ todoList: e, dense: r }) => {
|
|
|
13565
13522
|
}, [e == null ? void 0 : e.currentWorkingItemKey]), !e || !e.items || e.items.length === 0) return null;
|
|
13566
13523
|
const d = e.currentWorkingItemKey;
|
|
13567
13524
|
return /* @__PURE__ */ T(re, { children: [
|
|
13568
|
-
/* @__PURE__ */ t("style", { children:
|
|
13525
|
+
/* @__PURE__ */ t("style", { children: f0 }),
|
|
13569
13526
|
/* @__PURE__ */ t(R, { sx: { display: "flex", flexDirection: "column", overflow: "scroll" }, children: e.items.map((f) => {
|
|
13570
|
-
const s =
|
|
13527
|
+
const s = m0(f.status), y = f.key === d;
|
|
13571
13528
|
return /* @__PURE__ */ T(
|
|
13572
13529
|
R,
|
|
13573
13530
|
{
|
|
@@ -13584,7 +13541,7 @@ const Zn = /* @__PURE__ */ n(({ todoList: e, dense: r }) => {
|
|
|
13584
13541
|
mb: 0.25
|
|
13585
13542
|
}), "sx"),
|
|
13586
13543
|
children: [
|
|
13587
|
-
/* @__PURE__ */ t(
|
|
13544
|
+
/* @__PURE__ */ t(g0, { status: s }),
|
|
13588
13545
|
/* @__PURE__ */ T(R, { sx: { flex: 1, minWidth: 0 }, children: [
|
|
13589
13546
|
/* @__PURE__ */ t(
|
|
13590
13547
|
X,
|
|
@@ -13634,12 +13591,12 @@ const Zn = /* @__PURE__ */ n(({ todoList: e, dense: r }) => {
|
|
|
13634
13591
|
] });
|
|
13635
13592
|
}, "TaskListV2");
|
|
13636
13593
|
Zn.displayName = "TaskListV2";
|
|
13637
|
-
const
|
|
13594
|
+
const b0 = `
|
|
13638
13595
|
@keyframes v2sascan {
|
|
13639
13596
|
0% { transform: translateX(-100%); }
|
|
13640
13597
|
100% { transform: translateX(100%); }
|
|
13641
13598
|
}`;
|
|
13642
|
-
function
|
|
13599
|
+
function y0(e) {
|
|
13643
13600
|
if (!e) return null;
|
|
13644
13601
|
try {
|
|
13645
13602
|
return JSON.parse(e);
|
|
@@ -13647,7 +13604,7 @@ function b0(e) {
|
|
|
13647
13604
|
return null;
|
|
13648
13605
|
}
|
|
13649
13606
|
}
|
|
13650
|
-
n(
|
|
13607
|
+
n(y0, "tryParse");
|
|
13651
13608
|
const Ta = /* @__PURE__ */ n(({
|
|
13652
13609
|
subAgent: e,
|
|
13653
13610
|
defaultLevel: r = 1,
|
|
@@ -13656,7 +13613,7 @@ const Ta = /* @__PURE__ */ n(({
|
|
|
13656
13613
|
const [d, f] = Y(r), [s, y] = Y(null), b = pe((A) => A.lastToolEvent), I = !e.completed;
|
|
13657
13614
|
oe(() => {
|
|
13658
13615
|
if ((b == null ? void 0 : b.eventName) === "todolistUpdated" && b.subAgentId === e.id) {
|
|
13659
|
-
const A =
|
|
13616
|
+
const A = y0(b.eventData);
|
|
13660
13617
|
A && y(A);
|
|
13661
13618
|
}
|
|
13662
13619
|
}, [b, e.id]);
|
|
@@ -13678,7 +13635,7 @@ const Ta = /* @__PURE__ */ n(({
|
|
|
13678
13635
|
transition: "border-color .15s"
|
|
13679
13636
|
}), "sx"),
|
|
13680
13637
|
children: [
|
|
13681
|
-
/* @__PURE__ */ t("style", { children:
|
|
13638
|
+
/* @__PURE__ */ t("style", { children: b0 }),
|
|
13682
13639
|
I && /* @__PURE__ */ t(
|
|
13683
13640
|
R,
|
|
13684
13641
|
{
|
|
@@ -13829,10 +13786,10 @@ const Ta = /* @__PURE__ */ n(({
|
|
|
13829
13786
|
}, "SubAgentBoxV2");
|
|
13830
13787
|
Ta.displayName = "SubAgentBoxV2";
|
|
13831
13788
|
const ji = "@keyframes v2aaspin{to{transform:rotate(360deg)}}", Li = "@keyframes v2aafade{from{opacity:0;transform:translateY(4px)}to{opacity:1;transform:none}}", $i = "@keyframes v2aapulse{0%,100%{opacity:.4}50%{opacity:1}}";
|
|
13832
|
-
function
|
|
13789
|
+
function x0(e) {
|
|
13833
13790
|
return e == null || !Number.isFinite(e) || e < 0 ? null : e < 1e3 ? `${Math.round(e)}ms` : `${(e / 1e3).toFixed(e < 1e4 ? 1 : 0)}s`;
|
|
13834
13791
|
}
|
|
13835
|
-
n(
|
|
13792
|
+
n(x0, "formatDuration");
|
|
13836
13793
|
function Ar(e) {
|
|
13837
13794
|
const r = e.trim();
|
|
13838
13795
|
if (!r) return e;
|
|
@@ -13846,14 +13803,14 @@ function Ar(e) {
|
|
|
13846
13803
|
}
|
|
13847
13804
|
}
|
|
13848
13805
|
n(Ar, "prettyJsonish");
|
|
13849
|
-
const Oo = 500,
|
|
13850
|
-
function
|
|
13806
|
+
const Oo = 500, v0 = 12, w0 = 4, Bi = 8;
|
|
13807
|
+
function S0(e) {
|
|
13851
13808
|
return e >= 1e6 ? `${(e / 1e6).toFixed(1)}Mb` : e >= 1e3 ? `${(e / 1e3).toFixed(1)}kb` : `${e}b`;
|
|
13852
13809
|
}
|
|
13853
|
-
n(
|
|
13854
|
-
function
|
|
13810
|
+
n(S0, "compactBytes");
|
|
13811
|
+
function k0({ bytes: e }) {
|
|
13855
13812
|
if (e <= 0) return null;
|
|
13856
|
-
const r = Math.floor(e / Oo), i = e % Oo / Oo, d = Math.min(
|
|
13813
|
+
const r = Math.floor(e / Oo), i = e % Oo / Oo, d = Math.min(v0, r + (i > 0 ? 1 : 0)) || 1;
|
|
13857
13814
|
return /* @__PURE__ */ t(
|
|
13858
13815
|
R,
|
|
13859
13816
|
{
|
|
@@ -13871,7 +13828,7 @@ function S0({ bytes: e }) {
|
|
|
13871
13828
|
{
|
|
13872
13829
|
sx: /* @__PURE__ */ n((k) => ({
|
|
13873
13830
|
position: "relative",
|
|
13874
|
-
width: `${
|
|
13831
|
+
width: `${w0}px`,
|
|
13875
13832
|
height: `${Bi}px`,
|
|
13876
13833
|
borderRadius: "1px",
|
|
13877
13834
|
border: `1px solid ${k.palette.border.soft}`,
|
|
@@ -13902,8 +13859,8 @@ function S0({ bytes: e }) {
|
|
|
13902
13859
|
}
|
|
13903
13860
|
);
|
|
13904
13861
|
}
|
|
13905
|
-
n(
|
|
13906
|
-
function
|
|
13862
|
+
n(k0, "V2ByteBuckets");
|
|
13863
|
+
function C0({ name: e, status: r }) {
|
|
13907
13864
|
const i = Xo[e] ?? Xo.generic, d = r === "running", f = r === "done";
|
|
13908
13865
|
return /* @__PURE__ */ T(
|
|
13909
13866
|
R,
|
|
@@ -13948,11 +13905,11 @@ function k0({ name: e, status: r }) {
|
|
|
13948
13905
|
}
|
|
13949
13906
|
);
|
|
13950
13907
|
}
|
|
13951
|
-
n(
|
|
13952
|
-
function
|
|
13908
|
+
n(C0, "ToolGlyph");
|
|
13909
|
+
function E0({ part: e, isLast: r, compact: i = !0 }) {
|
|
13953
13910
|
const [d, f] = Y(!1), s = e.functionDetails;
|
|
13954
13911
|
if (!s) return null;
|
|
13955
|
-
const y = s.start ? new Date(s.start).getTime() : void 0, b = s.end ? new Date(s.end).getTime() : void 0, I = s.status === "Done" ? "done" : s.status === "Executing" || s.status === "Composing" ? "running" : "pending", k = I === "done" && y && b ?
|
|
13912
|
+
const y = s.start ? new Date(s.start).getTime() : void 0, b = s.end ? new Date(s.end).getTime() : void 0, I = s.status === "Done" ? "done" : s.status === "Executing" || s.status === "Composing" ? "running" : "pending", k = I === "done" && y && b ? x0(b - y) : null, D = I === "running", S = s.status === "Composing", v = Te(() => {
|
|
13956
13913
|
if (s.text) return Ar(s.text);
|
|
13957
13914
|
if (s.args == null) return "";
|
|
13958
13915
|
if (typeof s.args == "string") return Ar(s.args);
|
|
@@ -14017,7 +13974,7 @@ function C0({ part: e, isLast: r, compact: i = !0 }) {
|
|
|
14017
13974
|
"&:hover": { backgroundColor: h.palette.surface.raised }
|
|
14018
13975
|
}), "sx"),
|
|
14019
13976
|
children: /* @__PURE__ */ T(R, { sx: { display: "flex", alignItems: "center", gap: 1.25 }, children: [
|
|
14020
|
-
/* @__PURE__ */ t(
|
|
13977
|
+
/* @__PURE__ */ t(C0, { name: s.name, status: I }),
|
|
14021
13978
|
/* @__PURE__ */ T(R, { sx: { flex: 1, minWidth: 0 }, children: [
|
|
14022
13979
|
/* @__PURE__ */ T(R, { sx: { display: "flex", alignItems: "baseline", gap: 1, flexWrap: "wrap" }, children: [
|
|
14023
13980
|
/* @__PURE__ */ t(
|
|
@@ -14035,8 +13992,8 @@ function C0({ part: e, isLast: r, compact: i = !0 }) {
|
|
|
14035
13992
|
),
|
|
14036
13993
|
/* @__PURE__ */ t(R, { sx: { flex: 1 } }),
|
|
14037
13994
|
S && g > 0 && /* @__PURE__ */ T(R, { sx: { display: "inline-flex", alignItems: "center", gap: 0.5 }, children: [
|
|
14038
|
-
/* @__PURE__ */ t(
|
|
14039
|
-
/* @__PURE__ */ t(X, { sx: /* @__PURE__ */ n((h) => ({ fontSize: 10, color: h.palette.text.disabled, fontFamily: h.typography.fontFamilyMono }), "sx"), children:
|
|
13995
|
+
/* @__PURE__ */ t(k0, { bytes: g }),
|
|
13996
|
+
/* @__PURE__ */ t(X, { sx: /* @__PURE__ */ n((h) => ({ fontSize: 10, color: h.palette.text.disabled, fontFamily: h.typography.fontFamilyMono }), "sx"), children: S0(g) })
|
|
14040
13997
|
] }),
|
|
14041
13998
|
k && /* @__PURE__ */ t(X, { sx: /* @__PURE__ */ n((h) => ({ fontSize: 10.5, color: h.palette.text.disabled, fontFamily: h.typography.fontFamilyMono }), "sx"), children: k }),
|
|
14042
13999
|
D && !S && /* @__PURE__ */ t(
|
|
@@ -14102,8 +14059,8 @@ function C0({ part: e, isLast: r, compact: i = !0 }) {
|
|
|
14102
14059
|
}
|
|
14103
14060
|
);
|
|
14104
14061
|
}
|
|
14105
|
-
n(
|
|
14106
|
-
function
|
|
14062
|
+
n(E0, "ToolRow");
|
|
14063
|
+
function I0({ part: e, isStreaming: r }) {
|
|
14107
14064
|
var d, f;
|
|
14108
14065
|
const i = (f = (d = e.thoughtDetails) == null ? void 0 : d.text) == null ? void 0 : f.trim();
|
|
14109
14066
|
return i ? /* @__PURE__ */ T(R, { sx: { position: "relative", px: 1.75, py: 0.75 }, children: [
|
|
@@ -14152,19 +14109,19 @@ function E0({ part: e, isStreaming: r }) {
|
|
|
14152
14109
|
)
|
|
14153
14110
|
] }) : null;
|
|
14154
14111
|
}
|
|
14155
|
-
n(
|
|
14112
|
+
n(I0, "ReasoningRow");
|
|
14156
14113
|
function En(e) {
|
|
14157
14114
|
return (e == null ? void 0 : e.interactionId) ?? null;
|
|
14158
14115
|
}
|
|
14159
14116
|
n(En, "getInteractionId");
|
|
14160
|
-
function
|
|
14117
|
+
function T0(e) {
|
|
14161
14118
|
if (!e) return "";
|
|
14162
14119
|
const r = e instanceof Date ? e : new Date(e);
|
|
14163
14120
|
return Number.isNaN(r.getTime()) ? "" : r.toLocaleTimeString(void 0, { hour: "numeric", minute: "2-digit" });
|
|
14164
14121
|
}
|
|
14165
|
-
n(
|
|
14122
|
+
n(T0, "formatHourMinute");
|
|
14166
14123
|
const Wi = 200;
|
|
14167
|
-
function
|
|
14124
|
+
function A0({
|
|
14168
14125
|
turns: e,
|
|
14169
14126
|
selectedKey: r,
|
|
14170
14127
|
onSelect: i
|
|
@@ -14311,7 +14268,7 @@ function T0({
|
|
|
14311
14268
|
)
|
|
14312
14269
|
] });
|
|
14313
14270
|
}
|
|
14314
|
-
n(
|
|
14271
|
+
n(A0, "TurnPillStrip");
|
|
14315
14272
|
const Aa = /* @__PURE__ */ n(({
|
|
14316
14273
|
hideReasoning: e,
|
|
14317
14274
|
maxHeight: r = 420,
|
|
@@ -14338,7 +14295,7 @@ const Aa = /* @__PURE__ */ n(({
|
|
|
14338
14295
|
id: c,
|
|
14339
14296
|
interaction: u,
|
|
14340
14297
|
number: E + 1,
|
|
14341
|
-
timeLabel:
|
|
14298
|
+
timeLabel: T0(u.created)
|
|
14342
14299
|
});
|
|
14343
14300
|
}), M.reverse();
|
|
14344
14301
|
}, [b, s]), [D, S] = Y(null), v = ue(I);
|
|
@@ -14389,7 +14346,7 @@ const Aa = /* @__PURE__ */ n(({
|
|
|
14389
14346
|
h.scrollHeight - h.scrollTop - h.clientHeight < 120 && g.scrollIntoView({ block: "end", behavior: "smooth" });
|
|
14390
14347
|
}, [A.length, d]);
|
|
14391
14348
|
const w = s && k.length > 0 && !I ? /* @__PURE__ */ t(
|
|
14392
|
-
|
|
14349
|
+
A0,
|
|
14393
14350
|
{
|
|
14394
14351
|
turns: k,
|
|
14395
14352
|
selectedKey: D,
|
|
@@ -14408,19 +14365,19 @@ const Aa = /* @__PURE__ */ n(({
|
|
|
14408
14365
|
w,
|
|
14409
14366
|
/* @__PURE__ */ T(R, { sx: { py: 1, minHeight: "410px", maxHeight: r, overflow: r ? "auto" : "visible" }, children: [
|
|
14410
14367
|
A.map((g, h) => g.eventType === "thought" ? e ? null : /* @__PURE__ */ t(
|
|
14411
|
-
|
|
14368
|
+
I0,
|
|
14412
14369
|
{
|
|
14413
14370
|
part: g,
|
|
14414
14371
|
isStreaming: h === x && I && g.partial
|
|
14415
14372
|
},
|
|
14416
14373
|
g.id
|
|
14417
|
-
) : g.eventType === "function_call" || g.eventType === "partial_function_call" || g.eventType === "function_response" ? /* @__PURE__ */ t(
|
|
14374
|
+
) : g.eventType === "function_call" || g.eventType === "partial_function_call" || g.eventType === "function_response" ? /* @__PURE__ */ t(E0, { part: g, isLast: h === x, compact: f }, g.id) : null),
|
|
14418
14375
|
/* @__PURE__ */ t(R, { ref: p, "aria-hidden": !0, sx: { height: 0 } })
|
|
14419
14376
|
] })
|
|
14420
14377
|
] });
|
|
14421
14378
|
}, "AgentActivityV2");
|
|
14422
14379
|
Aa.displayName = "AgentActivityV2";
|
|
14423
|
-
const
|
|
14380
|
+
const _0 = {
|
|
14424
14381
|
sql: { id: "sql", label: "Banco de dados", Icon: pa },
|
|
14425
14382
|
files: { id: "files", label: "Arquivos", Icon: Ss },
|
|
14426
14383
|
shell: { id: "shell", label: "Terminal", Icon: ks },
|
|
@@ -14503,7 +14460,7 @@ const A0 = {
|
|
|
14503
14460
|
script_code_rollback: "scripts",
|
|
14504
14461
|
script_remove: "scripts"
|
|
14505
14462
|
};
|
|
14506
|
-
function
|
|
14463
|
+
function M0(e) {
|
|
14507
14464
|
if (!e) return "other";
|
|
14508
14465
|
const r = Ni[e];
|
|
14509
14466
|
if (r) return r;
|
|
@@ -14514,8 +14471,8 @@ function _0(e) {
|
|
|
14514
14471
|
}
|
|
14515
14472
|
return "other";
|
|
14516
14473
|
}
|
|
14517
|
-
n(
|
|
14518
|
-
const Hi = "@keyframes v2rppulse{0%,100%{opacity:1}50%{opacity:.3}}",
|
|
14474
|
+
n(M0, "getToolCategory");
|
|
14475
|
+
const Hi = "@keyframes v2rppulse{0%,100%{opacity:1}50%{opacity:.3}}", z0 = "@keyframes v2rpspin{to{transform:rotate(360deg)}}", D0 = "10%", R0 = 45, qi = /* @__PURE__ */ n(({ title: e, children: r }) => /* @__PURE__ */ T(
|
|
14519
14476
|
R,
|
|
14520
14477
|
{
|
|
14521
14478
|
sx: /* @__PURE__ */ n((i) => ({
|
|
@@ -14547,12 +14504,12 @@ const Hi = "@keyframes v2rppulse{0%,100%{opacity:1}50%{opacity:.3}}", M0 = "@key
|
|
|
14547
14504
|
return ((i = r.statistics) == null ? void 0 : i.elapsed) ?? 0;
|
|
14548
14505
|
});
|
|
14549
14506
|
return /* @__PURE__ */ T(X, { sx: /* @__PURE__ */ n((r) => ({ fontSize: 10.5, color: r.palette.text.secondary, fontFamily: r.typography.fontFamilyMono }), "sx"), children: [
|
|
14550
|
-
|
|
14507
|
+
B0(e * 1e3),
|
|
14551
14508
|
" decorridos"
|
|
14552
14509
|
] });
|
|
14553
14510
|
});
|
|
14554
14511
|
Il.displayName = "ElapsedClock";
|
|
14555
|
-
const
|
|
14512
|
+
const O0 = {
|
|
14556
14513
|
tooltip: {
|
|
14557
14514
|
sx: /* @__PURE__ */ n((e) => ({
|
|
14558
14515
|
backgroundColor: e.palette.surface.raised,
|
|
@@ -14564,22 +14521,22 @@ const R0 = {
|
|
|
14564
14521
|
}), "sx")
|
|
14565
14522
|
}
|
|
14566
14523
|
};
|
|
14567
|
-
function
|
|
14524
|
+
function P0(e) {
|
|
14568
14525
|
var i;
|
|
14569
14526
|
const r = (i = e.functionDetails) == null ? void 0 : i.status;
|
|
14570
14527
|
return r === "Done" ? "response" : r === "Composing" ? "partial" : "call";
|
|
14571
14528
|
}
|
|
14572
|
-
n(
|
|
14573
|
-
function
|
|
14529
|
+
n(P0, "friendlyStateForCall");
|
|
14530
|
+
function F0(e) {
|
|
14574
14531
|
const r = e.functionDetails;
|
|
14575
14532
|
if (!r || r.status !== "Done") return !1;
|
|
14576
14533
|
const i = r.response;
|
|
14577
14534
|
return typeof i == "string" && /error|exception|fail/i.test(i);
|
|
14578
14535
|
}
|
|
14579
|
-
n(
|
|
14580
|
-
const
|
|
14536
|
+
n(F0, "callLooksLikeError");
|
|
14537
|
+
const j0 = 4, Vi = 8, Po = 500, L0 = 12, Tl = mt.memo(({ bytes: e, compact: r = !1 }) => {
|
|
14581
14538
|
if (e <= 0) return null;
|
|
14582
|
-
const i = Math.floor(e / Po), d = e % Po / Po, f = Math.min(
|
|
14539
|
+
const i = Math.floor(e / Po), d = e % Po / Po, f = Math.min(L0, i + (d > 0 ? 1 : 0)) || 1, s = r ? "0px" : "2px";
|
|
14583
14540
|
return /* @__PURE__ */ t(
|
|
14584
14541
|
R,
|
|
14585
14542
|
{
|
|
@@ -14607,7 +14564,7 @@ const F0 = 4, Vi = 8, Po = 500, j0 = 12, Tl = mt.memo(({ bytes: e, compact: r =
|
|
|
14607
14564
|
{
|
|
14608
14565
|
sx: /* @__PURE__ */ n((S) => ({
|
|
14609
14566
|
position: "relative",
|
|
14610
|
-
width: `${
|
|
14567
|
+
width: `${j0}px`,
|
|
14611
14568
|
height: `${Vi}px`,
|
|
14612
14569
|
borderRadius: "1px",
|
|
14613
14570
|
border: `1px solid ${S.palette.border.soft}`,
|
|
@@ -14666,7 +14623,7 @@ Al.displayName = "RailCallTimer";
|
|
|
14666
14623
|
const _l = /* @__PURE__ */ n(({ call: e }) => {
|
|
14667
14624
|
const r = e.functionDetails;
|
|
14668
14625
|
if (!(r != null && r.name)) return null;
|
|
14669
|
-
const i =
|
|
14626
|
+
const i = M0(r.name), f = _0[i].Icon, s = r.status === "Composing" || e.eventType === "partial_function_call", y = r.status === "Executing", b = r.status === "Done", I = F0(e), k = P0(e), D = Qn(r.name, k, r.args ?? r.text, I), S = (() => {
|
|
14670
14627
|
const v = st.getPartTextContent(e);
|
|
14671
14628
|
if (typeof v == "string" && v.length > 0) return v.length;
|
|
14672
14629
|
if (typeof r.text == "string" && r.text.length > 0) return r.text.length;
|
|
@@ -14845,7 +14802,7 @@ const Dl = /* @__PURE__ */ n(({ todoList: e, completed: r, total: i, pct: d }) =
|
|
|
14845
14802
|
{
|
|
14846
14803
|
title: v,
|
|
14847
14804
|
placement: "left",
|
|
14848
|
-
slotProps: e ?
|
|
14805
|
+
slotProps: e ? O0 : void 0,
|
|
14849
14806
|
children: /* @__PURE__ */ T(
|
|
14850
14807
|
R,
|
|
14851
14808
|
{
|
|
@@ -14955,7 +14912,7 @@ const Rl = mt.memo(() => {
|
|
|
14955
14912
|
] }, d.id)) });
|
|
14956
14913
|
});
|
|
14957
14914
|
Rl.displayName = "SubAgentList";
|
|
14958
|
-
function
|
|
14915
|
+
function $0(e, r, i) {
|
|
14959
14916
|
if (!e || e !== "todolistUpdated" || i || !r) return null;
|
|
14960
14917
|
try {
|
|
14961
14918
|
return JSON.parse(r);
|
|
@@ -14963,15 +14920,15 @@ function L0(e, r, i) {
|
|
|
14963
14920
|
return null;
|
|
14964
14921
|
}
|
|
14965
14922
|
}
|
|
14966
|
-
n(
|
|
14967
|
-
function
|
|
14923
|
+
n($0, "tryParseMainAgentTodoList");
|
|
14924
|
+
function B0(e) {
|
|
14968
14925
|
if (e <= 0) return "00:00";
|
|
14969
14926
|
const r = Math.floor(e / 1e3), i = Math.floor(r / 60).toString().padStart(2, "0"), d = (r % 60).toString().padStart(2, "0");
|
|
14970
14927
|
return `${i}:${d}`;
|
|
14971
14928
|
}
|
|
14972
|
-
n(
|
|
14929
|
+
n(B0, "formatElapsed");
|
|
14973
14930
|
const Ol = /* @__PURE__ */ n(({
|
|
14974
|
-
width: e =
|
|
14931
|
+
width: e = D0,
|
|
14975
14932
|
title: r,
|
|
14976
14933
|
onPause: i,
|
|
14977
14934
|
onCancel: d,
|
|
@@ -15038,7 +14995,7 @@ const Ol = /* @__PURE__ */ n(({
|
|
|
15038
14995
|
M("idle");
|
|
15039
14996
|
}
|
|
15040
14997
|
}, [x, M]), j = i === null ? null : i ?? c, B = d === null ? null : d ?? _, G = Te(
|
|
15041
|
-
() =>
|
|
14998
|
+
() => $0(
|
|
15042
14999
|
p == null ? void 0 : p.eventName,
|
|
15043
15000
|
p == null ? void 0 : p.eventData,
|
|
15044
15001
|
p == null ? void 0 : p.subAgentId
|
|
@@ -15053,7 +15010,7 @@ const Ol = /* @__PURE__ */ n(({
|
|
|
15053
15010
|
component: "aside",
|
|
15054
15011
|
onClick: /* @__PURE__ */ n(() => v(!1), "onClick"),
|
|
15055
15012
|
sx: /* @__PURE__ */ n((W) => ({
|
|
15056
|
-
minWidth:
|
|
15013
|
+
minWidth: R0,
|
|
15057
15014
|
display: "inline-flex",
|
|
15058
15015
|
backgroundColor: W.palette.background.default,
|
|
15059
15016
|
borderLeft: `1px solid ${W.palette.divider}`,
|
|
@@ -15069,7 +15026,7 @@ const Ol = /* @__PURE__ */ n(({
|
|
|
15069
15026
|
}
|
|
15070
15027
|
}), "sx"),
|
|
15071
15028
|
children: [
|
|
15072
|
-
/* @__PURE__ */ t("style", { children: `${Hi}${
|
|
15029
|
+
/* @__PURE__ */ t("style", { children: `${Hi}${z0}` }),
|
|
15073
15030
|
/* @__PURE__ */ t(Ne, { title: "Expandir painel", placement: "left", children: /* @__PURE__ */ t(
|
|
15074
15031
|
Ge,
|
|
15075
15032
|
{
|
|
@@ -15324,8 +15281,8 @@ export {
|
|
|
15324
15281
|
xl as AppBarV2,
|
|
15325
15282
|
bl as AppRailV2,
|
|
15326
15283
|
gl as AppShellV2,
|
|
15327
|
-
|
|
15328
|
-
|
|
15284
|
+
bh as ArtifactRender,
|
|
15285
|
+
gh as AskUserDialog,
|
|
15329
15286
|
rl as AskUserSheet,
|
|
15330
15287
|
Vs as BoxedPart,
|
|
15331
15288
|
da as BrainIcon,
|
|
@@ -15343,7 +15300,7 @@ export {
|
|
|
15343
15300
|
wa as DEFAULT_PART_RENDERERS,
|
|
15344
15301
|
ua as DashboardIcon,
|
|
15345
15302
|
pa as DataExplorerIcon,
|
|
15346
|
-
|
|
15303
|
+
yh as DelayTextComponent,
|
|
15347
15304
|
Bp as EnvironmentProvider,
|
|
15348
15305
|
Ss as FileIcon,
|
|
15349
15306
|
jr as FunctionPart,
|
|
@@ -15357,8 +15314,8 @@ export {
|
|
|
15357
15314
|
ga as LinearBackgroundProgress,
|
|
15358
15315
|
gs as LinearProgressBarWithMarkers,
|
|
15359
15316
|
Ts as ListCheckIcon,
|
|
15360
|
-
|
|
15361
|
-
|
|
15317
|
+
Jh as LiveJsxBlock,
|
|
15318
|
+
Rh as LiveTsxConfigProvider,
|
|
15362
15319
|
dl as LlmResponseRender,
|
|
15363
15320
|
Fr as LoadingDots,
|
|
15364
15321
|
_s as LockClosedIcon,
|
|
@@ -15380,7 +15337,7 @@ export {
|
|
|
15380
15337
|
Yo as SendIcon,
|
|
15381
15338
|
Pr as SessionStateManagerService,
|
|
15382
15339
|
Un as SparkleIcon,
|
|
15383
|
-
|
|
15340
|
+
o0 as Sparkline,
|
|
15384
15341
|
ma as StopIcon,
|
|
15385
15342
|
Ur as Stopwatch,
|
|
15386
15343
|
ah as SubAgentBox,
|
|
@@ -15395,7 +15352,7 @@ export {
|
|
|
15395
15352
|
xs as TrashIcon,
|
|
15396
15353
|
Js as UiToolDispatcher,
|
|
15397
15354
|
Is as UsersIcon,
|
|
15398
|
-
|
|
15355
|
+
Xh as V2_CHART_PALETTE,
|
|
15399
15356
|
Jo as WARNING_THRESHOLD,
|
|
15400
15357
|
Hs as WaitingPart,
|
|
15401
15358
|
Ys as classifyPart,
|
|
@@ -15404,9 +15361,9 @@ export {
|
|
|
15404
15361
|
Go as createAiChatSessionStore,
|
|
15405
15362
|
Go as createAiChatStore,
|
|
15406
15363
|
$p as createUiToolRegistry,
|
|
15407
|
-
|
|
15408
|
-
|
|
15409
|
-
|
|
15364
|
+
hh as disposeSharedAiChatEngine,
|
|
15365
|
+
Ph as extendDefaultScope,
|
|
15366
|
+
Oh as extendModuleRegistry,
|
|
15410
15367
|
hl as getDefaultJsxScope,
|
|
15411
15368
|
Qn as getFriendlyLabel,
|
|
15412
15369
|
al as getSharedAiChatEngine,
|
|
@@ -15419,15 +15376,15 @@ export {
|
|
|
15419
15376
|
du as useContainerWidth,
|
|
15420
15377
|
Us as useEnvironment,
|
|
15421
15378
|
Ks as useEnvironmentOptional,
|
|
15422
|
-
|
|
15379
|
+
mh as useLiveSession,
|
|
15423
15380
|
cl as useLiveTsxMaxCharsForFull,
|
|
15424
15381
|
Ca as useParkedAskUser,
|
|
15425
|
-
|
|
15426
|
-
|
|
15427
|
-
|
|
15428
|
-
|
|
15429
|
-
|
|
15430
|
-
|
|
15431
|
-
|
|
15382
|
+
s0 as useResponsiveLayout,
|
|
15383
|
+
t0 as v2Card,
|
|
15384
|
+
Zh as v2Chip,
|
|
15385
|
+
e0 as v2IconBtn,
|
|
15386
|
+
n0 as v2MonoMeta,
|
|
15387
|
+
r0 as v2SectionLabel,
|
|
15388
|
+
Qh as v2Theme
|
|
15432
15389
|
};
|
|
15433
15390
|
//# sourceMappingURL=components.js.map
|