@burtson-labs/bandit-engine 2.0.78 → 2.0.80
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-C2C5VSLI.mjs → chat-52DKSYA5.mjs} +2 -2
- package/dist/{chunk-UDSKWLDG.mjs → chunk-L2AKXXK3.mjs} +2 -2
- package/dist/{chunk-2IK2YJGB.mjs → chunk-VDVXUEP2.mjs} +52 -10
- package/dist/chunk-VDVXUEP2.mjs.map +1 -0
- package/dist/index.js +51 -8
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +2 -2
- package/dist/management/management.js +51 -8
- package/dist/management/management.js.map +1 -1
- package/dist/management/management.mjs +1 -1
- package/package.json +1 -1
- package/dist/chunk-2IK2YJGB.mjs.map +0 -1
- /package/dist/{chat-C2C5VSLI.mjs.map → chat-52DKSYA5.mjs.map} +0 -0
- /package/dist/{chunk-UDSKWLDG.mjs.map → chunk-L2AKXXK3.mjs.map} +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import {
|
|
2
2
|
chat_default
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-VDVXUEP2.mjs";
|
|
4
4
|
import "./chunk-ONQMRE2G.mjs";
|
|
5
5
|
import "./chunk-YYYEMVBV.mjs";
|
|
6
6
|
import "./chunk-3LT77723.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-52DKSYA5.mjs.map
|
|
@@ -9741,7 +9741,7 @@ var MCPToolsTabV2_default = MCPToolsTabV2;
|
|
|
9741
9741
|
|
|
9742
9742
|
// src/management/management.tsx
|
|
9743
9743
|
import { jsx as jsx14, jsxs as jsxs14 } from "react/jsx-runtime";
|
|
9744
|
-
var preloadChatPage = () => import("./chat-
|
|
9744
|
+
var preloadChatPage = () => import("./chat-52DKSYA5.mjs");
|
|
9745
9745
|
var buildCapabilitiesUrl = (gatewayApiUrl) => {
|
|
9746
9746
|
const trimmed = gatewayApiUrl.replace(/\/$/, "");
|
|
9747
9747
|
if (trimmed.endsWith("/api")) {
|
|
@@ -11107,4 +11107,4 @@ export {
|
|
|
11107
11107
|
useGatewayMemory,
|
|
11108
11108
|
management_default
|
|
11109
11109
|
};
|
|
11110
|
-
//# sourceMappingURL=chunk-
|
|
11110
|
+
//# sourceMappingURL=chunk-L2AKXXK3.mjs.map
|
|
@@ -4254,7 +4254,7 @@ import {
|
|
|
4254
4254
|
Avatar as Avatar6,
|
|
4255
4255
|
alpha as alpha6
|
|
4256
4256
|
} from "@mui/material";
|
|
4257
|
-
import { X as CloseIcon4, X as ClearIcon, Search as SearchIcon, Folder as FolderIcon4, MoreVertical as MoreVertIcon3, Trash2 as DeleteSweepIcon, Inbox as InboxIcon3, Plus as AddIcon4 } from "lucide-react";
|
|
4257
|
+
import { X as CloseIcon4, X as ClearIcon, Search as SearchIcon, Folder as FolderIcon4, MoreVertical as MoreVertIcon3, Trash2 as DeleteSweepIcon, Inbox as InboxIcon3, Plus as AddIcon4, Settings as SettingsIcon2 } from "lucide-react";
|
|
4258
4258
|
import { useTheme as useTheme10 } from "@mui/material/styles";
|
|
4259
4259
|
|
|
4260
4260
|
// src/chat/project-management-modal.tsx
|
|
@@ -5857,19 +5857,45 @@ var ConversationDrawer = ({ open, onClose }) => {
|
|
|
5857
5857
|
}, [user, userDisplayName]);
|
|
5858
5858
|
const [avatarImage, setAvatarImage] = useState11(BANDIT_AVATAR);
|
|
5859
5859
|
useEffect10(() => {
|
|
5860
|
-
|
|
5860
|
+
let active2 = true;
|
|
5861
|
+
let objectUrl = null;
|
|
5862
|
+
const resolveAvatar = async () => {
|
|
5863
|
+
try {
|
|
5864
|
+
const avatarId = getCustomClaim("avatarUrl");
|
|
5865
|
+
const fileStorageApiUrl = usePackageSettingsStore.getState().settings?.fileStorageApiUrl;
|
|
5866
|
+
const token = useAuthenticationStore.getState().token;
|
|
5867
|
+
if (avatarId && fileStorageApiUrl && token) {
|
|
5868
|
+
const base = fileStorageApiUrl.replace(/\/$/, "");
|
|
5869
|
+
const res = await fetch(`${base}/app-asset/download/${encodeURIComponent(avatarId)}`, {
|
|
5870
|
+
headers: { Authorization: `Bearer ${token}` }
|
|
5871
|
+
});
|
|
5872
|
+
if (res.ok) {
|
|
5873
|
+
const blob = await res.blob();
|
|
5874
|
+
if (active2) {
|
|
5875
|
+
objectUrl = URL.createObjectURL(blob);
|
|
5876
|
+
setAvatarImage(objectUrl);
|
|
5877
|
+
}
|
|
5878
|
+
return;
|
|
5879
|
+
}
|
|
5880
|
+
}
|
|
5881
|
+
} catch {
|
|
5882
|
+
}
|
|
5861
5883
|
try {
|
|
5862
5884
|
const branding = await brandingService_default.getBranding();
|
|
5863
|
-
setAvatarImage(branding?.logoBase64 || BANDIT_AVATAR);
|
|
5885
|
+
if (active2) setAvatarImage(branding?.logoBase64 || BANDIT_AVATAR);
|
|
5864
5886
|
} catch (error) {
|
|
5865
5887
|
debugLogger.error("Failed to load branding avatar", {
|
|
5866
5888
|
error: error instanceof Error ? error.message : String(error)
|
|
5867
5889
|
});
|
|
5868
|
-
setAvatarImage(BANDIT_AVATAR);
|
|
5890
|
+
if (active2) setAvatarImage(BANDIT_AVATAR);
|
|
5869
5891
|
}
|
|
5870
5892
|
};
|
|
5871
|
-
|
|
5872
|
-
|
|
5893
|
+
resolveAvatar();
|
|
5894
|
+
return () => {
|
|
5895
|
+
active2 = false;
|
|
5896
|
+
if (objectUrl) URL.revokeObjectURL(objectUrl);
|
|
5897
|
+
};
|
|
5898
|
+
}, [getCustomClaim]);
|
|
5873
5899
|
const avatarLabel = userDisplayName || user?.email || "Bandit";
|
|
5874
5900
|
const avatarInitials = useMemo(() => deriveInitials(avatarLabel), [avatarLabel]);
|
|
5875
5901
|
useEffect10(() => {
|
|
@@ -6374,6 +6400,10 @@ var ConversationDrawer = ({ open, onClose }) => {
|
|
|
6374
6400
|
/* @__PURE__ */ jsxs9(
|
|
6375
6401
|
Box9,
|
|
6376
6402
|
{
|
|
6403
|
+
onClick: user ? () => {
|
|
6404
|
+
window.location.href = "/profile";
|
|
6405
|
+
} : void 0,
|
|
6406
|
+
title: user ? "Profile & settings" : void 0,
|
|
6377
6407
|
sx: {
|
|
6378
6408
|
mt: "auto",
|
|
6379
6409
|
px: 2,
|
|
@@ -6383,7 +6413,10 @@ var ConversationDrawer = ({ open, onClose }) => {
|
|
|
6383
6413
|
alignItems: "center",
|
|
6384
6414
|
gap: 1.5,
|
|
6385
6415
|
justifyContent: "center",
|
|
6386
|
-
bgcolor: alpha6(theme.palette.background.default, isMobile ? 0.9 : 0.6)
|
|
6416
|
+
bgcolor: alpha6(theme.palette.background.default, isMobile ? 0.9 : 0.6),
|
|
6417
|
+
cursor: user ? "pointer" : "default",
|
|
6418
|
+
transition: "background-color 0.15s ease",
|
|
6419
|
+
"&:hover": user ? { bgcolor: alpha6(theme.palette.primary.main, 0.08) } : void 0
|
|
6387
6420
|
},
|
|
6388
6421
|
children: [
|
|
6389
6422
|
/* @__PURE__ */ jsx12(
|
|
@@ -6423,16 +6456,25 @@ var ConversationDrawer = ({ open, onClose }) => {
|
|
|
6423
6456
|
children: user ? userDisplayName : "Not signed in"
|
|
6424
6457
|
}
|
|
6425
6458
|
),
|
|
6426
|
-
|
|
6459
|
+
/* @__PURE__ */ jsx12(
|
|
6427
6460
|
Typography7,
|
|
6428
6461
|
{
|
|
6429
6462
|
variant: "caption",
|
|
6463
|
+
noWrap: true,
|
|
6430
6464
|
sx: { color: theme.palette.text.secondary },
|
|
6431
|
-
children: "Connect your account to sync chats"
|
|
6465
|
+
children: user ? userSecondaryText || "View profile & settings" : "Connect your account to sync chats"
|
|
6432
6466
|
}
|
|
6433
6467
|
)
|
|
6434
6468
|
]
|
|
6435
6469
|
}
|
|
6470
|
+
),
|
|
6471
|
+
user && /* @__PURE__ */ jsx12(
|
|
6472
|
+
SettingsIcon2,
|
|
6473
|
+
{
|
|
6474
|
+
size: 18,
|
|
6475
|
+
color: theme.palette.text.secondary,
|
|
6476
|
+
style: { flexShrink: 0, opacity: 0.85 }
|
|
6477
|
+
}
|
|
6436
6478
|
)
|
|
6437
6479
|
]
|
|
6438
6480
|
}
|
|
@@ -10118,4 +10160,4 @@ var chat_default = Chat;
|
|
|
10118
10160
|
export {
|
|
10119
10161
|
chat_default
|
|
10120
10162
|
};
|
|
10121
|
-
//# sourceMappingURL=chunk-
|
|
10163
|
+
//# sourceMappingURL=chunk-VDVXUEP2.mjs.map
|