@burtson-labs/bandit-engine 2.0.62 → 2.0.63
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/{chat-SN3UNX23.mjs → chat-ERXFEUR5.mjs} +4 -4
- package/dist/{chunk-O7JGT7HR.mjs → chunk-5NSOHUCR.mjs} +5 -5
- package/dist/{chunk-SRCCNBHF.mjs → chunk-E4Q7BHBQ.mjs} +2 -2
- package/dist/{chunk-5WQMMCZQ.mjs → chunk-NCMSNXB2.mjs} +91 -295
- package/dist/chunk-NCMSNXB2.mjs.map +1 -0
- package/dist/{chunk-Y4NDNAAR.mjs → chunk-SYBMWGMA.mjs} +5 -4
- package/dist/chunk-SYBMWGMA.mjs.map +1 -0
- package/dist/{chunk-PY7A3J5T.mjs → chunk-UQ4VQSWS.mjs} +2 -2
- package/dist/index.js +107 -312
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +5 -5
- package/dist/management/management.js +182 -387
- package/dist/management/management.js.map +1 -1
- package/dist/management/management.mjs +4 -4
- package/dist/modals/chat-modal/chat-modal.js +166 -368
- package/dist/modals/chat-modal/chat-modal.js.map +1 -1
- package/dist/modals/chat-modal/chat-modal.mjs +2 -2
- package/package.json +1 -1
- package/dist/chunk-5WQMMCZQ.mjs.map +0 -1
- package/dist/chunk-Y4NDNAAR.mjs.map +0 -1
- /package/dist/{chat-SN3UNX23.mjs.map → chat-ERXFEUR5.mjs.map} +0 -0
- /package/dist/{chunk-O7JGT7HR.mjs.map → chunk-5NSOHUCR.mjs.map} +0 -0
- /package/dist/{chunk-SRCCNBHF.mjs.map → chunk-E4Q7BHBQ.mjs.map} +0 -0
- /package/dist/{chunk-PY7A3J5T.mjs.map → chunk-UQ4VQSWS.mjs.map} +0 -0
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import {
|
|
2
2
|
chat_default
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-SYBMWGMA.mjs";
|
|
4
4
|
import "./chunk-ONQMRE2G.mjs";
|
|
5
|
-
import "./chunk-
|
|
5
|
+
import "./chunk-E4Q7BHBQ.mjs";
|
|
6
6
|
import "./chunk-6QTTNYF2.mjs";
|
|
7
|
-
import "./chunk-
|
|
7
|
+
import "./chunk-NCMSNXB2.mjs";
|
|
8
8
|
import "./chunk-EUBVBTB3.mjs";
|
|
9
9
|
import "./chunk-IPMTNREZ.mjs";
|
|
10
10
|
import "./chunk-H3BYFEIE.mjs";
|
|
@@ -13,4 +13,4 @@ import "./chunk-BJTO5JO5.mjs";
|
|
|
13
13
|
export {
|
|
14
14
|
chat_default as default
|
|
15
15
|
};
|
|
16
|
-
//# sourceMappingURL=chat-
|
|
16
|
+
//# sourceMappingURL=chat-ERXFEUR5.mjs.map
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import {
|
|
2
2
|
StreamingMarkdown_default
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-E4Q7BHBQ.mjs";
|
|
4
4
|
import {
|
|
5
5
|
aiProviderInitService
|
|
6
6
|
} from "./chunk-VTC6AIWY.mjs";
|
|
@@ -9,7 +9,7 @@ import {
|
|
|
9
9
|
} from "./chunk-6QTTNYF2.mjs";
|
|
10
10
|
import {
|
|
11
11
|
chat_modal_default
|
|
12
|
-
} from "./chunk-
|
|
12
|
+
} from "./chunk-UQ4VQSWS.mjs";
|
|
13
13
|
import {
|
|
14
14
|
AddIcon,
|
|
15
15
|
ArchiveIcon,
|
|
@@ -80,7 +80,7 @@ import {
|
|
|
80
80
|
predefinedThemes,
|
|
81
81
|
useNotificationService,
|
|
82
82
|
useVoiceStore
|
|
83
|
-
} from "./chunk-
|
|
83
|
+
} from "./chunk-NCMSNXB2.mjs";
|
|
84
84
|
import {
|
|
85
85
|
authenticationService,
|
|
86
86
|
brandingService_default,
|
|
@@ -9459,7 +9459,7 @@ var MCPToolsTabV2_default = MCPToolsTabV2;
|
|
|
9459
9459
|
|
|
9460
9460
|
// src/management/management.tsx
|
|
9461
9461
|
import { jsx as jsx13, jsxs as jsxs13 } from "react/jsx-runtime";
|
|
9462
|
-
var preloadChatPage = () => import("./chat-
|
|
9462
|
+
var preloadChatPage = () => import("./chat-ERXFEUR5.mjs");
|
|
9463
9463
|
var buildCapabilitiesUrl = (gatewayApiUrl) => {
|
|
9464
9464
|
const trimmed = gatewayApiUrl.replace(/\/$/, "");
|
|
9465
9465
|
if (trimmed.endsWith("/api")) {
|
|
@@ -10804,4 +10804,4 @@ export {
|
|
|
10804
10804
|
useGatewayMemory,
|
|
10805
10805
|
management_default
|
|
10806
10806
|
};
|
|
10807
|
-
//# sourceMappingURL=chunk-
|
|
10807
|
+
//# sourceMappingURL=chunk-5NSOHUCR.mjs.map
|
|
@@ -4,7 +4,7 @@ import {
|
|
|
4
4
|
getHighlightTree,
|
|
5
5
|
markdownSanitizeSchema,
|
|
6
6
|
renderLowlightChildren
|
|
7
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-NCMSNXB2.mjs";
|
|
8
8
|
|
|
9
9
|
// src/components/StreamingMarkdown.tsx
|
|
10
10
|
import React, { useEffect, useMemo, useRef, useState } from "react";
|
|
@@ -483,4 +483,4 @@ var StreamingMarkdown_default = StreamingMarkdown;
|
|
|
483
483
|
export {
|
|
484
484
|
StreamingMarkdown_default
|
|
485
485
|
};
|
|
486
|
-
//# sourceMappingURL=chunk-
|
|
486
|
+
//# sourceMappingURL=chunk-E4Q7BHBQ.mjs.map
|
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import {
|
|
2
2
|
authenticationService,
|
|
3
|
-
brandingService_default,
|
|
4
3
|
notificationService,
|
|
5
4
|
useConversationStore,
|
|
6
5
|
useConversationSyncStore,
|
|
@@ -2703,25 +2702,6 @@ var ai_response_action_bar_default = AiResponseActionsBar;
|
|
|
2703
2702
|
// src/modals/chat-modal/ai-response-text-field.tsx
|
|
2704
2703
|
import { Fragment as Fragment3, jsx as jsx5, jsxs as jsxs4 } from "react/jsx-runtime";
|
|
2705
2704
|
var brainIcon = "https://cdn.burtson.ai/images/brain-icon.png";
|
|
2706
|
-
var avatarFilenames = {
|
|
2707
|
-
"Bandit-Core": "core-avatar.png",
|
|
2708
|
-
"Bandit-Muse": "muse-avatar.png",
|
|
2709
|
-
"Bandit-Logic": "logic-avatar.png",
|
|
2710
|
-
"Bandit-D1VA": "d1va-avatar.png",
|
|
2711
|
-
"Bandit-Exec": "exec-avatar.png",
|
|
2712
|
-
"default": "bandit-head.png"
|
|
2713
|
-
};
|
|
2714
|
-
var banditHead = `https://cdn.burtson.ai/images/bandit-head.png`;
|
|
2715
|
-
var resolveAvatar = (selectedModel) => {
|
|
2716
|
-
const model = useModelStore.getState().availableModels.find(
|
|
2717
|
-
(m) => m.name === selectedModel
|
|
2718
|
-
);
|
|
2719
|
-
if (model?.avatarBase64) {
|
|
2720
|
-
return model.avatarBase64;
|
|
2721
|
-
}
|
|
2722
|
-
const avatarFilename = avatarFilenames[selectedModel] || avatarFilenames["default"];
|
|
2723
|
-
return `https://cdn.burtson.ai/avatars/${avatarFilename}`;
|
|
2724
|
-
};
|
|
2725
2705
|
var normalizeTables = (markdown2) => {
|
|
2726
2706
|
const lines = markdown2.split("\n");
|
|
2727
2707
|
const output = [];
|
|
@@ -3067,15 +3047,6 @@ var AIResponseTextField = ({
|
|
|
3067
3047
|
const timeout = setTimeout(() => setShowMemoryUpdated(false), 3e3);
|
|
3068
3048
|
return () => clearTimeout(timeout);
|
|
3069
3049
|
}, [memoryUpdated]);
|
|
3070
|
-
const selectedModel = useModelStore((state) => state.selectedModel);
|
|
3071
|
-
const [userAvatar, setUserAvatar] = useState5(banditHead);
|
|
3072
|
-
useEffect5(() => {
|
|
3073
|
-
const fetchBranding = async () => {
|
|
3074
|
-
const branding = await brandingService_default.getBranding();
|
|
3075
|
-
setUserAvatar(branding?.logoBase64 || banditHead);
|
|
3076
|
-
};
|
|
3077
|
-
fetchBranding();
|
|
3078
|
-
}, []);
|
|
3079
3050
|
const theme = useTheme3();
|
|
3080
3051
|
const chatResponse = theme.palette.chat?.response;
|
|
3081
3052
|
const sanitizeMarkdown = (raw) => {
|
|
@@ -3444,283 +3415,108 @@ ${sourcesMarkdownList.join("\n")}`;
|
|
|
3444
3415
|
alignSelf: "stretch",
|
|
3445
3416
|
display: "flex",
|
|
3446
3417
|
flexDirection: "column",
|
|
3447
|
-
|
|
3448
|
-
|
|
3449
|
-
|
|
3450
|
-
|
|
3451
|
-
userSelect: "text",
|
|
3452
|
-
border: "1px solid " + (chatResponse.aiBorder || "#ccc"),
|
|
3453
|
-
boxShadow: "0 0 6px rgba(0,0,0,0.3)"
|
|
3418
|
+
color: chatResponse.aiText || theme.palette.text.primary,
|
|
3419
|
+
px: isMobile ? 0.5 : 2,
|
|
3420
|
+
py: 1,
|
|
3421
|
+
userSelect: "text"
|
|
3454
3422
|
},
|
|
3455
3423
|
children: [
|
|
3456
|
-
/* @__PURE__ */ jsxs4(
|
|
3457
|
-
|
|
3458
|
-
|
|
3459
|
-
|
|
3460
|
-
|
|
3461
|
-
|
|
3462
|
-
|
|
3463
|
-
|
|
3464
|
-
|
|
3424
|
+
/* @__PURE__ */ jsx5(Box5, { sx: { display: "flex", justifyContent: "flex-end", mb: 2.5 }, children: /* @__PURE__ */ jsxs4(Box5, { sx: { maxWidth: { xs: "100%", sm: "85%" }, minWidth: 0 }, children: [
|
|
3425
|
+
/* @__PURE__ */ jsx5(
|
|
3426
|
+
Box5,
|
|
3427
|
+
{
|
|
3428
|
+
sx: {
|
|
3429
|
+
bgcolor: chatResponse.userBubble || alpha(theme.palette.common.white, 0.07),
|
|
3430
|
+
borderRadius: "18px",
|
|
3431
|
+
px: 2,
|
|
3432
|
+
py: 1.25,
|
|
3433
|
+
wordBreak: "break-word",
|
|
3434
|
+
whiteSpace: "pre-wrap",
|
|
3435
|
+
overflowWrap: "break-word"
|
|
3465
3436
|
},
|
|
3466
|
-
|
|
3467
|
-
|
|
3468
|
-
justifyContent: "flex-end"
|
|
3469
|
-
},
|
|
3470
|
-
children: [
|
|
3471
|
-
/* @__PURE__ */ jsxs4(
|
|
3472
|
-
Box5,
|
|
3437
|
+
children: /* @__PURE__ */ jsx5(
|
|
3438
|
+
Typography3,
|
|
3473
3439
|
{
|
|
3474
3440
|
sx: {
|
|
3475
|
-
|
|
3476
|
-
|
|
3477
|
-
|
|
3441
|
+
color: theme.palette.text.primary,
|
|
3442
|
+
lineHeight: 1.5,
|
|
3443
|
+
wordBreak: "break-word",
|
|
3444
|
+
whiteSpace: "pre-wrap"
|
|
3478
3445
|
},
|
|
3479
|
-
children:
|
|
3480
|
-
/* @__PURE__ */ jsx5(
|
|
3481
|
-
Avatar,
|
|
3482
|
-
{
|
|
3483
|
-
alt: "You",
|
|
3484
|
-
src: userAvatar,
|
|
3485
|
-
sx: {
|
|
3486
|
-
display: { xs: "none", sm: "flex" },
|
|
3487
|
-
width: { sm: 72 },
|
|
3488
|
-
height: { sm: 72 },
|
|
3489
|
-
bgcolor: chatResponse.userAvatarBackground || (theme.palette.mode === "dark" ? "transparent" : "#eee"),
|
|
3490
|
-
color: "#fff",
|
|
3491
|
-
fontWeight: "bold",
|
|
3492
|
-
fontSize: { sm: "1.1rem" },
|
|
3493
|
-
border: "2px solid #a78bfa",
|
|
3494
|
-
boxShadow: "0 0 8px rgba(167, 139, 250, 0.3)",
|
|
3495
|
-
transform: "scaleX(1)"
|
|
3496
|
-
}
|
|
3497
|
-
}
|
|
3498
|
-
),
|
|
3499
|
-
/* @__PURE__ */ jsx5(
|
|
3500
|
-
Typography3,
|
|
3501
|
-
{
|
|
3502
|
-
variant: "caption",
|
|
3503
|
-
sx: { color: chatResponse.modelLabel || "#888", mt: 1, fontStyle: "italic" },
|
|
3504
|
-
children: "You said"
|
|
3505
|
-
}
|
|
3506
|
-
)
|
|
3507
|
-
]
|
|
3446
|
+
children: question
|
|
3508
3447
|
}
|
|
3509
|
-
)
|
|
3510
|
-
|
|
3511
|
-
|
|
3512
|
-
|
|
3513
|
-
|
|
3514
|
-
|
|
3515
|
-
|
|
3516
|
-
|
|
3517
|
-
|
|
3518
|
-
|
|
3519
|
-
|
|
3520
|
-
|
|
3521
|
-
|
|
3522
|
-
|
|
3523
|
-
|
|
3524
|
-
|
|
3525
|
-
whiteSpace: "pre-wrap",
|
|
3526
|
-
overflowWrap: "break-word",
|
|
3527
|
-
mt: { xs: 0.5, sm: 0.25 }
|
|
3528
|
-
},
|
|
3529
|
-
children: /* @__PURE__ */ jsx5(
|
|
3530
|
-
Typography3,
|
|
3531
|
-
{
|
|
3532
|
-
sx: {
|
|
3533
|
-
color: chatResponse.userText || "#6C9AC5",
|
|
3534
|
-
fontStyle: "italic",
|
|
3535
|
-
wordBreak: "break-word",
|
|
3536
|
-
whiteSpace: "pre-wrap"
|
|
3537
|
-
},
|
|
3538
|
-
children: question
|
|
3539
|
-
}
|
|
3540
|
-
)
|
|
3541
|
-
}
|
|
3542
|
-
),
|
|
3543
|
-
images && images.length > 0 && /* @__PURE__ */ jsx5(Box5, { sx: { display: "flex", gap: 1, mt: 1, flexWrap: "wrap" }, children: images.map((img, i) => /* @__PURE__ */ jsx5(
|
|
3544
|
-
Avatar,
|
|
3545
|
-
{
|
|
3546
|
-
src: img,
|
|
3547
|
-
variant: "rounded",
|
|
3548
|
-
onClick: () => setOpenImage(img),
|
|
3549
|
-
sx: {
|
|
3550
|
-
width: 64,
|
|
3551
|
-
height: 64,
|
|
3552
|
-
borderRadius: 2,
|
|
3553
|
-
cursor: "pointer",
|
|
3554
|
-
"&:hover": { boxShadow: `0 0 0 2px ${theme.palette.primary.main}` }
|
|
3555
|
-
}
|
|
3556
|
-
},
|
|
3557
|
-
i
|
|
3558
|
-
)) })
|
|
3559
|
-
] })
|
|
3560
|
-
]
|
|
3561
|
-
}
|
|
3562
|
-
),
|
|
3563
|
-
/* @__PURE__ */ jsx5(Box5, { sx: { borderBottom: `1px solid ${theme.palette.divider}`, my: 2 } }),
|
|
3564
|
-
/* @__PURE__ */ jsxs4(
|
|
3565
|
-
Box5,
|
|
3566
|
-
{
|
|
3567
|
-
sx: {
|
|
3568
|
-
display: "flex",
|
|
3569
|
-
flexDirection: "column",
|
|
3570
|
-
alignItems: {
|
|
3571
|
-
xs: "center",
|
|
3572
|
-
sm: "flex-start"
|
|
3573
|
-
},
|
|
3574
|
-
gap: 2,
|
|
3575
|
-
mb: 2
|
|
3448
|
+
)
|
|
3449
|
+
}
|
|
3450
|
+
),
|
|
3451
|
+
images && images.length > 0 && /* @__PURE__ */ jsx5(Box5, { sx: { display: "flex", gap: 1, mt: 1, flexWrap: "wrap", justifyContent: "flex-end" }, children: images.map((img, i) => /* @__PURE__ */ jsx5(
|
|
3452
|
+
Avatar,
|
|
3453
|
+
{
|
|
3454
|
+
src: img,
|
|
3455
|
+
variant: "rounded",
|
|
3456
|
+
onClick: () => setOpenImage(img),
|
|
3457
|
+
sx: {
|
|
3458
|
+
width: 64,
|
|
3459
|
+
height: 64,
|
|
3460
|
+
borderRadius: 2,
|
|
3461
|
+
cursor: "pointer",
|
|
3462
|
+
"&:hover": { boxShadow: `0 0 0 2px ${theme.palette.primary.main}` }
|
|
3463
|
+
}
|
|
3576
3464
|
},
|
|
3577
|
-
|
|
3578
|
-
|
|
3579
|
-
|
|
3580
|
-
|
|
3581
|
-
|
|
3582
|
-
|
|
3583
|
-
|
|
3584
|
-
|
|
3585
|
-
|
|
3586
|
-
|
|
3587
|
-
|
|
3588
|
-
|
|
3589
|
-
|
|
3590
|
-
|
|
3591
|
-
|
|
3592
|
-
|
|
3593
|
-
|
|
3594
|
-
|
|
3595
|
-
|
|
3596
|
-
|
|
3597
|
-
|
|
3598
|
-
|
|
3599
|
-
|
|
3600
|
-
|
|
3601
|
-
|
|
3602
|
-
|
|
3603
|
-
|
|
3604
|
-
|
|
3605
|
-
|
|
3606
|
-
|
|
3607
|
-
|
|
3608
|
-
|
|
3609
|
-
|
|
3610
|
-
|
|
3611
|
-
" says"
|
|
3612
|
-
]
|
|
3613
|
-
}
|
|
3614
|
-
) })
|
|
3615
|
-
]
|
|
3616
|
-
}
|
|
3617
|
-
),
|
|
3618
|
-
/* @__PURE__ */ jsx5(
|
|
3619
|
-
Box5,
|
|
3620
|
-
{
|
|
3621
|
-
sx: {
|
|
3622
|
-
display: { xs: "flex", sm: "none" },
|
|
3623
|
-
justifyContent: "right",
|
|
3624
|
-
width: "100%",
|
|
3625
|
-
mt: -1,
|
|
3626
|
-
mb: 1
|
|
3627
|
-
},
|
|
3628
|
-
children: /* @__PURE__ */ jsxs4(
|
|
3629
|
-
Typography3,
|
|
3630
|
-
{
|
|
3631
|
-
variant: "caption",
|
|
3632
|
-
sx: { fontStyle: "italic", color: chatResponse.modelLabel || "#888" },
|
|
3633
|
-
children: [
|
|
3634
|
-
selectedModel,
|
|
3635
|
-
" says"
|
|
3636
|
-
]
|
|
3637
|
-
}
|
|
3638
|
-
)
|
|
3639
|
-
}
|
|
3640
|
-
),
|
|
3641
|
-
/* @__PURE__ */ jsxs4(Box5, { sx: { position: "relative", width: "100%" }, children: [
|
|
3642
|
-
cancelled && /* @__PURE__ */ jsx5(
|
|
3643
|
-
Box5,
|
|
3644
|
-
{
|
|
3645
|
-
sx: {
|
|
3646
|
-
position: "absolute",
|
|
3647
|
-
top: -24,
|
|
3648
|
-
left: 0,
|
|
3649
|
-
display: "flex",
|
|
3650
|
-
alignItems: "center",
|
|
3651
|
-
gap: 1,
|
|
3652
|
-
pl: 1,
|
|
3653
|
-
zIndex: 1
|
|
3654
|
-
},
|
|
3655
|
-
children: /* @__PURE__ */ jsx5(Typography3, { variant: "caption", sx: { fontStyle: "italic", opacity: 0.85 }, children: "Cancelled by you" })
|
|
3656
|
-
}
|
|
3657
|
-
),
|
|
3658
|
-
showMemoryUpdated && /* @__PURE__ */ jsxs4(
|
|
3659
|
-
Box5,
|
|
3660
|
-
{
|
|
3661
|
-
sx: {
|
|
3662
|
-
position: "absolute",
|
|
3663
|
-
top: -24,
|
|
3664
|
-
right: 0,
|
|
3665
|
-
display: "flex",
|
|
3666
|
-
alignItems: "center",
|
|
3667
|
-
gap: 1,
|
|
3668
|
-
pr: 1,
|
|
3669
|
-
animation: "fadeOut 0.3s ease-in 2.7s forwards",
|
|
3670
|
-
zIndex: 1
|
|
3671
|
-
},
|
|
3672
|
-
children: [
|
|
3673
|
-
/* @__PURE__ */ jsx5(
|
|
3674
|
-
"img",
|
|
3675
|
-
{
|
|
3676
|
-
src: brainIcon,
|
|
3677
|
-
alt: "Memory",
|
|
3678
|
-
style: { width: 18, height: 18 }
|
|
3679
|
-
}
|
|
3680
|
-
),
|
|
3681
|
-
/* @__PURE__ */ jsx5(
|
|
3682
|
-
Typography3,
|
|
3683
|
-
{
|
|
3684
|
-
variant: "caption",
|
|
3685
|
-
sx: { color: chatResponse.memoryText || "#2e7d32", fontStyle: "italic" },
|
|
3686
|
-
children: "Bandit added to memory"
|
|
3687
|
-
}
|
|
3688
|
-
)
|
|
3689
|
-
]
|
|
3690
|
-
}
|
|
3691
|
-
),
|
|
3465
|
+
i
|
|
3466
|
+
)) })
|
|
3467
|
+
] }) }),
|
|
3468
|
+
/* @__PURE__ */ jsxs4(Box5, { sx: { position: "relative", width: "100%", maxWidth: { xs: "100%", sm: "768px" } }, children: [
|
|
3469
|
+
cancelled && /* @__PURE__ */ jsx5(
|
|
3470
|
+
Box5,
|
|
3471
|
+
{
|
|
3472
|
+
sx: {
|
|
3473
|
+
position: "absolute",
|
|
3474
|
+
top: -22,
|
|
3475
|
+
left: 0,
|
|
3476
|
+
display: "flex",
|
|
3477
|
+
alignItems: "center",
|
|
3478
|
+
gap: 1,
|
|
3479
|
+
zIndex: 1
|
|
3480
|
+
},
|
|
3481
|
+
children: /* @__PURE__ */ jsx5(Typography3, { variant: "caption", sx: { fontStyle: "italic", opacity: 0.85 }, children: "Cancelled by you" })
|
|
3482
|
+
}
|
|
3483
|
+
),
|
|
3484
|
+
showMemoryUpdated && /* @__PURE__ */ jsxs4(
|
|
3485
|
+
Box5,
|
|
3486
|
+
{
|
|
3487
|
+
sx: {
|
|
3488
|
+
position: "absolute",
|
|
3489
|
+
top: -22,
|
|
3490
|
+
right: 0,
|
|
3491
|
+
display: "flex",
|
|
3492
|
+
alignItems: "center",
|
|
3493
|
+
gap: 1,
|
|
3494
|
+
animation: "fadeOut 0.3s ease-in 2.7s forwards",
|
|
3495
|
+
zIndex: 1
|
|
3496
|
+
},
|
|
3497
|
+
children: [
|
|
3498
|
+
/* @__PURE__ */ jsx5("img", { src: brainIcon, alt: "Memory", style: { width: 16, height: 16 } }),
|
|
3692
3499
|
/* @__PURE__ */ jsx5(
|
|
3693
|
-
|
|
3500
|
+
Typography3,
|
|
3694
3501
|
{
|
|
3695
|
-
|
|
3696
|
-
|
|
3697
|
-
|
|
3698
|
-
px: isMobile ? 1 : 1.5,
|
|
3699
|
-
// Reduced padding on mobile
|
|
3700
|
-
py: 1.25,
|
|
3701
|
-
width: "100%",
|
|
3702
|
-
maxWidth: isMobile ? "100%" : "768px",
|
|
3703
|
-
// Full width on mobile
|
|
3704
|
-
border: "1px solid " + (chatResponse.aiBorder || "#ccc"),
|
|
3705
|
-
wordBreak: "break-word",
|
|
3706
|
-
alignSelf: "flex-start",
|
|
3707
|
-
mt: { xs: 0.5, sm: 0.25 }
|
|
3708
|
-
},
|
|
3709
|
-
children: /* @__PURE__ */ jsx5(Box5, { sx: { width: "100%", maxWidth: "100%" }, children: typeof response === "string" ? /* @__PURE__ */ jsx5(
|
|
3710
|
-
ReactMarkdown,
|
|
3711
|
-
{
|
|
3712
|
-
remarkPlugins: [remarkGfm],
|
|
3713
|
-
rehypePlugins: [rehypeRaw, [rehypeSanitize, markdownSanitizeSchema]],
|
|
3714
|
-
components,
|
|
3715
|
-
children: enrichedMarkdown ?? sanitizeMarkdown(response)
|
|
3716
|
-
}
|
|
3717
|
-
) : React5.isValidElement(response) ? response : /* @__PURE__ */ jsx5(Typography3, { color: "error", children: "\u26A0\uFE0F Invalid AI response" }) })
|
|
3502
|
+
variant: "caption",
|
|
3503
|
+
sx: { color: chatResponse.memoryText || "#2e7d32", fontStyle: "italic" },
|
|
3504
|
+
children: "Bandit added to memory"
|
|
3718
3505
|
}
|
|
3719
3506
|
)
|
|
3720
|
-
]
|
|
3721
|
-
|
|
3722
|
-
|
|
3723
|
-
|
|
3507
|
+
]
|
|
3508
|
+
}
|
|
3509
|
+
),
|
|
3510
|
+
/* @__PURE__ */ jsx5(Box5, { sx: { width: "100%", maxWidth: "100%" }, children: typeof response === "string" ? /* @__PURE__ */ jsx5(
|
|
3511
|
+
ReactMarkdown,
|
|
3512
|
+
{
|
|
3513
|
+
remarkPlugins: [remarkGfm],
|
|
3514
|
+
rehypePlugins: [rehypeRaw, [rehypeSanitize, markdownSanitizeSchema]],
|
|
3515
|
+
components,
|
|
3516
|
+
children: enrichedMarkdown ?? sanitizeMarkdown(response)
|
|
3517
|
+
}
|
|
3518
|
+
) : React5.isValidElement(response) ? response : /* @__PURE__ */ jsx5(Typography3, { color: "error", children: "\u26A0\uFE0F Invalid AI response" }) })
|
|
3519
|
+
] }),
|
|
3724
3520
|
!!(responseText || typeof response === "string" && response) && /* @__PURE__ */ jsx5(ai_response_action_bar_default, { text: responseText || response }),
|
|
3725
3521
|
displaySourceFiles && displaySourceFiles.length > 0 && /* @__PURE__ */ jsx5(Box5, { sx: { mt: 1.5, display: "flex", gap: 2, flexWrap: "wrap", justifyContent: "flex-start" }, children: displaySourceFiles.map((doc, idx) => {
|
|
3726
3522
|
debugLogger.debug("Rendering DocumentCard in AI response", {
|
|
@@ -9209,4 +9005,4 @@ export {
|
|
|
9209
9005
|
FeedbackButton,
|
|
9210
9006
|
useNotificationService
|
|
9211
9007
|
};
|
|
9212
|
-
//# sourceMappingURL=chunk-
|
|
9008
|
+
//# sourceMappingURL=chunk-NCMSNXB2.mjs.map
|