@burtson-labs/bandit-engine 2.0.41 → 2.0.44
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-T5ANWWYQ.mjs → chat-7U633EWN.mjs} +4 -4
- package/dist/chat-provider.js +5 -3
- package/dist/chat-provider.js.map +1 -1
- package/dist/chat-provider.mjs +3 -3
- package/dist/{chunk-3E57HLDV.mjs → chunk-ERV7GLY3.mjs} +3 -3
- package/dist/{chunk-WPWWWUD7.mjs → chunk-H4PBQ5LJ.mjs} +2 -2
- package/dist/{chunk-A6OBEF72.mjs → chunk-JRGCRBWE.mjs} +6 -6
- package/dist/{chunk-22EY3ZDC.mjs → chunk-KBKWVG7X.mjs} +3 -3
- package/dist/{chunk-QFNEHSY4.mjs → chunk-QV4ELNLP.mjs} +47 -22
- package/dist/chunk-QV4ELNLP.mjs.map +1 -0
- package/dist/{chunk-LYWVYBKU.mjs → chunk-SBNENBUQ.mjs} +2 -2
- package/dist/{chunk-CX3INLYJ.mjs → chunk-UXE67LR7.mjs} +6 -4
- package/dist/{chunk-CX3INLYJ.mjs.map → chunk-UXE67LR7.mjs.map} +1 -1
- package/dist/cli.js +2 -2
- package/dist/cli.js.map +1 -1
- package/dist/index.js +45 -12
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +7 -7
- package/dist/management/management.js +45 -12
- package/dist/management/management.js.map +1 -1
- package/dist/management/management.mjs +5 -5
- package/dist/modals/chat-modal/chat-modal.js +5 -3
- package/dist/modals/chat-modal/chat-modal.js.map +1 -1
- package/dist/modals/chat-modal/chat-modal.mjs +3 -3
- package/package.json +2 -2
- package/dist/chunk-QFNEHSY4.mjs.map +0 -1
- /package/dist/{chat-T5ANWWYQ.mjs.map → chat-7U633EWN.mjs.map} +0 -0
- /package/dist/{chunk-3E57HLDV.mjs.map → chunk-ERV7GLY3.mjs.map} +0 -0
- /package/dist/{chunk-WPWWWUD7.mjs.map → chunk-H4PBQ5LJ.mjs.map} +0 -0
- /package/dist/{chunk-A6OBEF72.mjs.map → chunk-JRGCRBWE.mjs.map} +0 -0
- /package/dist/{chunk-22EY3ZDC.mjs.map → chunk-KBKWVG7X.mjs.map} +0 -0
- /package/dist/{chunk-LYWVYBKU.mjs.map → chunk-SBNENBUQ.mjs.map} +0 -0
package/dist/index.js
CHANGED
|
@@ -9478,9 +9478,11 @@ var init_useVectorStore = __esm({
|
|
|
9478
9478
|
setHasCompatibleProvider(false);
|
|
9479
9479
|
return false;
|
|
9480
9480
|
}
|
|
9481
|
-
const
|
|
9482
|
-
const
|
|
9483
|
-
const
|
|
9481
|
+
const vectorCapableProviders = /* @__PURE__ */ new Set(["ollama", "bandit"]);
|
|
9482
|
+
const isNativeOllama = config.type === "ollama";
|
|
9483
|
+
const hasVectorCapableProvider = typeof config.provider === "string" && vectorCapableProviders.has(config.provider);
|
|
9484
|
+
const isGatewayWithVectorSupport = config.type === "gateway" && hasVectorCapableProvider;
|
|
9485
|
+
const isCompatible = isNativeOllama || isGatewayWithVectorSupport;
|
|
9484
9486
|
setHasCompatibleProvider(isCompatible);
|
|
9485
9487
|
return isCompatible;
|
|
9486
9488
|
} catch (error) {
|
|
@@ -22288,6 +22290,24 @@ var init_project_header = __esm({
|
|
|
22288
22290
|
}
|
|
22289
22291
|
});
|
|
22290
22292
|
|
|
22293
|
+
// src/config/tooltips.ts
|
|
22294
|
+
var TOOLTIP_COPY, tooltip;
|
|
22295
|
+
var init_tooltips = __esm({
|
|
22296
|
+
"src/config/tooltips.ts"() {
|
|
22297
|
+
"use strict";
|
|
22298
|
+
TOOLTIP_COPY = {
|
|
22299
|
+
openNavigation: "Open navigation",
|
|
22300
|
+
closeNavigation: "Close navigation",
|
|
22301
|
+
manageProjects: "Manage projects",
|
|
22302
|
+
conversationOptions: "Open conversation options",
|
|
22303
|
+
closeConversationsPanel: "Close conversations panel",
|
|
22304
|
+
clearSearch: "Clear search",
|
|
22305
|
+
addProject: "Add new project"
|
|
22306
|
+
};
|
|
22307
|
+
tooltip = (key) => TOOLTIP_COPY[key];
|
|
22308
|
+
}
|
|
22309
|
+
});
|
|
22310
|
+
|
|
22291
22311
|
// src/chat/conversation-drawer.tsx
|
|
22292
22312
|
var import_react28, import_material19, import_icons_material7, import_icons_material8, import_styles13, import_jsx_runtime21, BANDIT_AVATAR, coerceOptionalString, deriveInitials, ConversationDrawer, conversation_drawer_default;
|
|
22293
22313
|
var init_conversation_drawer = __esm({
|
|
@@ -22307,6 +22327,7 @@ var init_conversation_drawer = __esm({
|
|
|
22307
22327
|
init_simple_conversation_item();
|
|
22308
22328
|
init_project_header();
|
|
22309
22329
|
init_debugLogger();
|
|
22330
|
+
init_tooltips();
|
|
22310
22331
|
import_jsx_runtime21 = require("react/jsx-runtime");
|
|
22311
22332
|
BANDIT_AVATAR = "https://cdn.burtson.ai/images/bandit-head.png";
|
|
22312
22333
|
coerceOptionalString = (value) => {
|
|
@@ -22583,11 +22604,12 @@ var init_conversation_drawer = __esm({
|
|
|
22583
22604
|
gap: 1
|
|
22584
22605
|
},
|
|
22585
22606
|
children: [
|
|
22586
|
-
/* @__PURE__ */ (0, import_jsx_runtime21.jsx)(
|
|
22607
|
+
/* @__PURE__ */ (0, import_jsx_runtime21.jsx)(import_material19.Tooltip, { title: tooltip("manageProjects"), arrow: true, children: /* @__PURE__ */ (0, import_jsx_runtime21.jsx)(
|
|
22587
22608
|
import_material19.IconButton,
|
|
22588
22609
|
{
|
|
22589
22610
|
onClick: () => setProjectManagementOpen(true),
|
|
22590
22611
|
size: "small",
|
|
22612
|
+
"aria-label": tooltip("manageProjects"),
|
|
22591
22613
|
sx: {
|
|
22592
22614
|
color: theme.palette.text.secondary,
|
|
22593
22615
|
"&:hover": {
|
|
@@ -22597,12 +22619,13 @@ var init_conversation_drawer = __esm({
|
|
|
22597
22619
|
},
|
|
22598
22620
|
children: /* @__PURE__ */ (0, import_jsx_runtime21.jsx)(import_icons_material7.Folder, {})
|
|
22599
22621
|
}
|
|
22600
|
-
),
|
|
22601
|
-
/* @__PURE__ */ (0, import_jsx_runtime21.jsx)(
|
|
22622
|
+
) }),
|
|
22623
|
+
/* @__PURE__ */ (0, import_jsx_runtime21.jsx)(import_material19.Tooltip, { title: tooltip("conversationOptions"), arrow: true, children: /* @__PURE__ */ (0, import_jsx_runtime21.jsx)(
|
|
22602
22624
|
import_material19.IconButton,
|
|
22603
22625
|
{
|
|
22604
22626
|
onClick: handleMenuOpen,
|
|
22605
22627
|
size: "small",
|
|
22628
|
+
"aria-label": tooltip("conversationOptions"),
|
|
22606
22629
|
sx: {
|
|
22607
22630
|
color: theme.palette.text.secondary,
|
|
22608
22631
|
"&:hover": {
|
|
@@ -22612,8 +22635,8 @@ var init_conversation_drawer = __esm({
|
|
|
22612
22635
|
},
|
|
22613
22636
|
children: /* @__PURE__ */ (0, import_jsx_runtime21.jsx)(import_icons_material7.MoreVert, {})
|
|
22614
22637
|
}
|
|
22615
|
-
),
|
|
22616
|
-
isMobile && /* @__PURE__ */ (0, import_jsx_runtime21.jsx)(
|
|
22638
|
+
) }),
|
|
22639
|
+
isMobile && /* @__PURE__ */ (0, import_jsx_runtime21.jsx)(import_material19.Tooltip, { title: tooltip("closeConversationsPanel"), children: /* @__PURE__ */ (0, import_jsx_runtime21.jsx)(
|
|
22617
22640
|
import_material19.IconButton,
|
|
22618
22641
|
{
|
|
22619
22642
|
onClick: (e) => {
|
|
@@ -22622,6 +22645,7 @@ var init_conversation_drawer = __esm({
|
|
|
22622
22645
|
onClose();
|
|
22623
22646
|
},
|
|
22624
22647
|
size: "small",
|
|
22648
|
+
"aria-label": tooltip("closeConversationsPanel"),
|
|
22625
22649
|
sx: {
|
|
22626
22650
|
color: theme.palette.text.secondary,
|
|
22627
22651
|
"&:hover": {
|
|
@@ -22631,7 +22655,7 @@ var init_conversation_drawer = __esm({
|
|
|
22631
22655
|
},
|
|
22632
22656
|
children: /* @__PURE__ */ (0, import_jsx_runtime21.jsx)(import_icons_material7.Close, {})
|
|
22633
22657
|
}
|
|
22634
|
-
)
|
|
22658
|
+
) })
|
|
22635
22659
|
]
|
|
22636
22660
|
}
|
|
22637
22661
|
),
|
|
@@ -22646,16 +22670,17 @@ var init_conversation_drawer = __esm({
|
|
|
22646
22670
|
variant: "outlined",
|
|
22647
22671
|
InputProps: {
|
|
22648
22672
|
startAdornment: /* @__PURE__ */ (0, import_jsx_runtime21.jsx)(import_material19.InputAdornment, { position: "start", children: /* @__PURE__ */ (0, import_jsx_runtime21.jsx)(import_icons_material7.Search, { fontSize: "small", sx: { color: theme.palette.text.secondary } }) }),
|
|
22649
|
-
endAdornment: searchQuery && /* @__PURE__ */ (0, import_jsx_runtime21.jsx)(import_material19.InputAdornment, { position: "end", children: /* @__PURE__ */ (0, import_jsx_runtime21.jsx)(
|
|
22673
|
+
endAdornment: searchQuery && /* @__PURE__ */ (0, import_jsx_runtime21.jsx)(import_material19.InputAdornment, { position: "end", children: /* @__PURE__ */ (0, import_jsx_runtime21.jsx)(import_material19.Tooltip, { title: tooltip("clearSearch"), children: /* @__PURE__ */ (0, import_jsx_runtime21.jsx)(
|
|
22650
22674
|
import_material19.IconButton,
|
|
22651
22675
|
{
|
|
22652
22676
|
onClick: handleSearchClear,
|
|
22653
22677
|
size: "small",
|
|
22654
22678
|
edge: "end",
|
|
22679
|
+
"aria-label": tooltip("clearSearch"),
|
|
22655
22680
|
sx: { color: theme.palette.text.secondary },
|
|
22656
22681
|
children: /* @__PURE__ */ (0, import_jsx_runtime21.jsx)(import_icons_material7.Clear, { fontSize: "small" })
|
|
22657
22682
|
}
|
|
22658
|
-
) })
|
|
22683
|
+
) }) })
|
|
22659
22684
|
},
|
|
22660
22685
|
sx: {
|
|
22661
22686
|
"& .MuiOutlinedInput-root": {
|
|
@@ -22730,7 +22755,15 @@ var init_conversation_drawer = __esm({
|
|
|
22730
22755
|
children: "New Project"
|
|
22731
22756
|
}
|
|
22732
22757
|
),
|
|
22733
|
-
/* @__PURE__ */ (0, import_jsx_runtime21.jsx)(import_material19.
|
|
22758
|
+
/* @__PURE__ */ (0, import_jsx_runtime21.jsx)(import_material19.Tooltip, { title: tooltip("addProject"), arrow: true, children: /* @__PURE__ */ (0, import_jsx_runtime21.jsx)(
|
|
22759
|
+
import_material19.IconButton,
|
|
22760
|
+
{
|
|
22761
|
+
size: "small",
|
|
22762
|
+
"aria-label": tooltip("addProject"),
|
|
22763
|
+
sx: { color: theme.palette.success.main },
|
|
22764
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime21.jsx)(import_icons_material8.Add, { fontSize: "small" })
|
|
22765
|
+
}
|
|
22766
|
+
) })
|
|
22734
22767
|
]
|
|
22735
22768
|
}
|
|
22736
22769
|
),
|