@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.mjs
CHANGED
|
@@ -1,24 +1,24 @@
|
|
|
1
1
|
import {
|
|
2
2
|
chat_default
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-QV4ELNLP.mjs";
|
|
4
4
|
import {
|
|
5
5
|
chat_provider_default
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-KBKWVG7X.mjs";
|
|
7
7
|
import "./chunk-ONQMRE2G.mjs";
|
|
8
8
|
import {
|
|
9
9
|
management_default,
|
|
10
10
|
useGatewayHealth,
|
|
11
11
|
useGatewayMemory,
|
|
12
12
|
useGatewayModels
|
|
13
|
-
} from "./chunk-
|
|
14
|
-
import "./chunk-
|
|
13
|
+
} from "./chunk-JRGCRBWE.mjs";
|
|
14
|
+
import "./chunk-H4PBQ5LJ.mjs";
|
|
15
15
|
import "./chunk-RTQDQ6TC.mjs";
|
|
16
16
|
import {
|
|
17
17
|
defineCustomElement
|
|
18
18
|
} from "./chunk-IXIM7BNO.mjs";
|
|
19
19
|
import {
|
|
20
20
|
chat_modal_default
|
|
21
|
-
} from "./chunk-
|
|
21
|
+
} from "./chunk-ERV7GLY3.mjs";
|
|
22
22
|
import {
|
|
23
23
|
FeedbackButton,
|
|
24
24
|
FeedbackModal,
|
|
@@ -36,7 +36,7 @@ import {
|
|
|
36
36
|
useTTS,
|
|
37
37
|
useVoiceStore,
|
|
38
38
|
voiceService
|
|
39
|
-
} from "./chunk-
|
|
39
|
+
} from "./chunk-SBNENBUQ.mjs";
|
|
40
40
|
import {
|
|
41
41
|
DEFAULT_TIER_FEATURES,
|
|
42
42
|
FeatureFlagContext,
|
|
@@ -56,7 +56,7 @@ import {
|
|
|
56
56
|
useVectorStore,
|
|
57
57
|
vectorDatabaseService,
|
|
58
58
|
vectorMigrationService
|
|
59
|
-
} from "./chunk-
|
|
59
|
+
} from "./chunk-UXE67LR7.mjs";
|
|
60
60
|
import {
|
|
61
61
|
usePackageSettingsStore
|
|
62
62
|
} from "./chunk-XUBYA5I7.mjs";
|
|
@@ -8952,9 +8952,11 @@ var init_useVectorStore = __esm({
|
|
|
8952
8952
|
setHasCompatibleProvider(false);
|
|
8953
8953
|
return false;
|
|
8954
8954
|
}
|
|
8955
|
-
const
|
|
8956
|
-
const
|
|
8957
|
-
const
|
|
8955
|
+
const vectorCapableProviders = /* @__PURE__ */ new Set(["ollama", "bandit"]);
|
|
8956
|
+
const isNativeOllama = config.type === "ollama";
|
|
8957
|
+
const hasVectorCapableProvider = typeof config.provider === "string" && vectorCapableProviders.has(config.provider);
|
|
8958
|
+
const isGatewayWithVectorSupport = config.type === "gateway" && hasVectorCapableProvider;
|
|
8959
|
+
const isCompatible = isNativeOllama || isGatewayWithVectorSupport;
|
|
8958
8960
|
setHasCompatibleProvider(isCompatible);
|
|
8959
8961
|
return isCompatible;
|
|
8960
8962
|
} catch (error) {
|
|
@@ -24527,6 +24529,24 @@ var init_project_header = __esm({
|
|
|
24527
24529
|
}
|
|
24528
24530
|
});
|
|
24529
24531
|
|
|
24532
|
+
// src/config/tooltips.ts
|
|
24533
|
+
var TOOLTIP_COPY, tooltip;
|
|
24534
|
+
var init_tooltips = __esm({
|
|
24535
|
+
"src/config/tooltips.ts"() {
|
|
24536
|
+
"use strict";
|
|
24537
|
+
TOOLTIP_COPY = {
|
|
24538
|
+
openNavigation: "Open navigation",
|
|
24539
|
+
closeNavigation: "Close navigation",
|
|
24540
|
+
manageProjects: "Manage projects",
|
|
24541
|
+
conversationOptions: "Open conversation options",
|
|
24542
|
+
closeConversationsPanel: "Close conversations panel",
|
|
24543
|
+
clearSearch: "Clear search",
|
|
24544
|
+
addProject: "Add new project"
|
|
24545
|
+
};
|
|
24546
|
+
tooltip = (key) => TOOLTIP_COPY[key];
|
|
24547
|
+
}
|
|
24548
|
+
});
|
|
24549
|
+
|
|
24530
24550
|
// src/chat/conversation-drawer.tsx
|
|
24531
24551
|
var import_react48, import_material37, import_icons_material9, import_icons_material10, import_styles27, import_jsx_runtime37, BANDIT_AVATAR, coerceOptionalString, deriveInitials, ConversationDrawer, conversation_drawer_default;
|
|
24532
24552
|
var init_conversation_drawer = __esm({
|
|
@@ -24546,6 +24566,7 @@ var init_conversation_drawer = __esm({
|
|
|
24546
24566
|
init_simple_conversation_item();
|
|
24547
24567
|
init_project_header();
|
|
24548
24568
|
init_debugLogger();
|
|
24569
|
+
init_tooltips();
|
|
24549
24570
|
import_jsx_runtime37 = require("react/jsx-runtime");
|
|
24550
24571
|
BANDIT_AVATAR = "https://cdn.burtson.ai/images/bandit-head.png";
|
|
24551
24572
|
coerceOptionalString = (value) => {
|
|
@@ -24822,11 +24843,12 @@ var init_conversation_drawer = __esm({
|
|
|
24822
24843
|
gap: 1
|
|
24823
24844
|
},
|
|
24824
24845
|
children: [
|
|
24825
|
-
/* @__PURE__ */ (0, import_jsx_runtime37.jsx)(
|
|
24846
|
+
/* @__PURE__ */ (0, import_jsx_runtime37.jsx)(import_material37.Tooltip, { title: tooltip("manageProjects"), arrow: true, children: /* @__PURE__ */ (0, import_jsx_runtime37.jsx)(
|
|
24826
24847
|
import_material37.IconButton,
|
|
24827
24848
|
{
|
|
24828
24849
|
onClick: () => setProjectManagementOpen(true),
|
|
24829
24850
|
size: "small",
|
|
24851
|
+
"aria-label": tooltip("manageProjects"),
|
|
24830
24852
|
sx: {
|
|
24831
24853
|
color: theme.palette.text.secondary,
|
|
24832
24854
|
"&:hover": {
|
|
@@ -24836,12 +24858,13 @@ var init_conversation_drawer = __esm({
|
|
|
24836
24858
|
},
|
|
24837
24859
|
children: /* @__PURE__ */ (0, import_jsx_runtime37.jsx)(import_icons_material9.Folder, {})
|
|
24838
24860
|
}
|
|
24839
|
-
),
|
|
24840
|
-
/* @__PURE__ */ (0, import_jsx_runtime37.jsx)(
|
|
24861
|
+
) }),
|
|
24862
|
+
/* @__PURE__ */ (0, import_jsx_runtime37.jsx)(import_material37.Tooltip, { title: tooltip("conversationOptions"), arrow: true, children: /* @__PURE__ */ (0, import_jsx_runtime37.jsx)(
|
|
24841
24863
|
import_material37.IconButton,
|
|
24842
24864
|
{
|
|
24843
24865
|
onClick: handleMenuOpen,
|
|
24844
24866
|
size: "small",
|
|
24867
|
+
"aria-label": tooltip("conversationOptions"),
|
|
24845
24868
|
sx: {
|
|
24846
24869
|
color: theme.palette.text.secondary,
|
|
24847
24870
|
"&:hover": {
|
|
@@ -24851,8 +24874,8 @@ var init_conversation_drawer = __esm({
|
|
|
24851
24874
|
},
|
|
24852
24875
|
children: /* @__PURE__ */ (0, import_jsx_runtime37.jsx)(import_icons_material9.MoreVert, {})
|
|
24853
24876
|
}
|
|
24854
|
-
),
|
|
24855
|
-
isMobile && /* @__PURE__ */ (0, import_jsx_runtime37.jsx)(
|
|
24877
|
+
) }),
|
|
24878
|
+
isMobile && /* @__PURE__ */ (0, import_jsx_runtime37.jsx)(import_material37.Tooltip, { title: tooltip("closeConversationsPanel"), children: /* @__PURE__ */ (0, import_jsx_runtime37.jsx)(
|
|
24856
24879
|
import_material37.IconButton,
|
|
24857
24880
|
{
|
|
24858
24881
|
onClick: (e) => {
|
|
@@ -24861,6 +24884,7 @@ var init_conversation_drawer = __esm({
|
|
|
24861
24884
|
onClose();
|
|
24862
24885
|
},
|
|
24863
24886
|
size: "small",
|
|
24887
|
+
"aria-label": tooltip("closeConversationsPanel"),
|
|
24864
24888
|
sx: {
|
|
24865
24889
|
color: theme.palette.text.secondary,
|
|
24866
24890
|
"&:hover": {
|
|
@@ -24870,7 +24894,7 @@ var init_conversation_drawer = __esm({
|
|
|
24870
24894
|
},
|
|
24871
24895
|
children: /* @__PURE__ */ (0, import_jsx_runtime37.jsx)(import_icons_material9.Close, {})
|
|
24872
24896
|
}
|
|
24873
|
-
)
|
|
24897
|
+
) })
|
|
24874
24898
|
]
|
|
24875
24899
|
}
|
|
24876
24900
|
),
|
|
@@ -24885,16 +24909,17 @@ var init_conversation_drawer = __esm({
|
|
|
24885
24909
|
variant: "outlined",
|
|
24886
24910
|
InputProps: {
|
|
24887
24911
|
startAdornment: /* @__PURE__ */ (0, import_jsx_runtime37.jsx)(import_material37.InputAdornment, { position: "start", children: /* @__PURE__ */ (0, import_jsx_runtime37.jsx)(import_icons_material9.Search, { fontSize: "small", sx: { color: theme.palette.text.secondary } }) }),
|
|
24888
|
-
endAdornment: searchQuery && /* @__PURE__ */ (0, import_jsx_runtime37.jsx)(import_material37.InputAdornment, { position: "end", children: /* @__PURE__ */ (0, import_jsx_runtime37.jsx)(
|
|
24912
|
+
endAdornment: searchQuery && /* @__PURE__ */ (0, import_jsx_runtime37.jsx)(import_material37.InputAdornment, { position: "end", children: /* @__PURE__ */ (0, import_jsx_runtime37.jsx)(import_material37.Tooltip, { title: tooltip("clearSearch"), children: /* @__PURE__ */ (0, import_jsx_runtime37.jsx)(
|
|
24889
24913
|
import_material37.IconButton,
|
|
24890
24914
|
{
|
|
24891
24915
|
onClick: handleSearchClear,
|
|
24892
24916
|
size: "small",
|
|
24893
24917
|
edge: "end",
|
|
24918
|
+
"aria-label": tooltip("clearSearch"),
|
|
24894
24919
|
sx: { color: theme.palette.text.secondary },
|
|
24895
24920
|
children: /* @__PURE__ */ (0, import_jsx_runtime37.jsx)(import_icons_material9.Clear, { fontSize: "small" })
|
|
24896
24921
|
}
|
|
24897
|
-
) })
|
|
24922
|
+
) }) })
|
|
24898
24923
|
},
|
|
24899
24924
|
sx: {
|
|
24900
24925
|
"& .MuiOutlinedInput-root": {
|
|
@@ -24969,7 +24994,15 @@ var init_conversation_drawer = __esm({
|
|
|
24969
24994
|
children: "New Project"
|
|
24970
24995
|
}
|
|
24971
24996
|
),
|
|
24972
|
-
/* @__PURE__ */ (0, import_jsx_runtime37.jsx)(import_material37.
|
|
24997
|
+
/* @__PURE__ */ (0, import_jsx_runtime37.jsx)(import_material37.Tooltip, { title: tooltip("addProject"), arrow: true, children: /* @__PURE__ */ (0, import_jsx_runtime37.jsx)(
|
|
24998
|
+
import_material37.IconButton,
|
|
24999
|
+
{
|
|
25000
|
+
size: "small",
|
|
25001
|
+
"aria-label": tooltip("addProject"),
|
|
25002
|
+
sx: { color: theme.palette.success.main },
|
|
25003
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime37.jsx)(import_icons_material10.Add, { fontSize: "small" })
|
|
25004
|
+
}
|
|
25005
|
+
) })
|
|
24973
25006
|
]
|
|
24974
25007
|
}
|
|
24975
25008
|
),
|