@burtson-labs/bandit-engine 2.0.158 → 2.0.160
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/README.md +17 -0
- package/dist/{aiProviderStore-ZQ5VVVKQ.mjs → aiProviderStore-BNZGM6QU.mjs} +2 -2
- package/dist/chat-4BOIV4VP.mjs +16 -0
- package/dist/chat-provider.js +3 -3
- package/dist/chat-provider.js.map +1 -1
- package/dist/chat-provider.mjs +6 -6
- package/dist/{chunk-GWQRTUKF.mjs → chunk-B3HAQC6F.mjs} +2 -2
- package/dist/chunk-B3HAQC6F.mjs.map +1 -0
- package/dist/{chunk-7HC6ONWM.mjs → chunk-IABD4L6K.mjs} +43 -44
- package/dist/chunk-IABD4L6K.mjs.map +1 -0
- package/dist/{chunk-R45DM35B.mjs → chunk-LFQH6M6B.mjs} +3 -3
- package/dist/chunk-LFQH6M6B.mjs.map +1 -0
- package/dist/{chunk-IS2LWSBZ.mjs → chunk-LNGF2XAZ.mjs} +3 -3
- package/dist/chunk-LNGF2XAZ.mjs.map +1 -0
- package/dist/{chunk-GZDJNVAS.mjs → chunk-LTWMMHFT.mjs} +11 -9
- package/dist/chunk-LTWMMHFT.mjs.map +1 -0
- package/dist/{chunk-F5JS4W2K.mjs → chunk-MHF76C2F.mjs} +246 -127
- package/dist/chunk-MHF76C2F.mjs.map +1 -0
- package/dist/{chunk-B2TJZM4Z.mjs → chunk-P6SLB5RC.mjs} +3 -3
- package/dist/{chunk-ZW3YNAD7.mjs → chunk-PDQT564P.mjs} +5 -5
- package/dist/{chunk-ZW3YNAD7.mjs.map → chunk-PDQT564P.mjs.map} +1 -1
- package/dist/{chunk-VJVGSAKI.mjs → chunk-PXCIDXRP.mjs} +7 -7
- package/dist/{chunk-VJVGSAKI.mjs.map → chunk-PXCIDXRP.mjs.map} +1 -1
- package/dist/{chunk-2X3ZTDUW.mjs → chunk-TKSOJGHX.mjs} +5 -5
- package/dist/{chunk-ZOCXFQID.mjs → chunk-XTB6ZLUI.mjs} +2 -2
- package/dist/{chunk-ZOCXFQID.mjs.map → chunk-XTB6ZLUI.mjs.map} +1 -1
- package/dist/index.js +299 -164
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +11 -11
- package/dist/management/management.js +292 -157
- package/dist/management/management.js.map +1 -1
- package/dist/management/management.mjs +9 -9
- package/dist/modals/chat-modal/chat-modal.js +9 -7
- package/dist/modals/chat-modal/chat-modal.js.map +1 -1
- package/dist/modals/chat-modal/chat-modal.mjs +5 -5
- package/dist/{modelStore-KBUW3XAV.mjs → modelStore-NMCRL3FR.mjs} +2 -2
- package/package.json +6 -4
- package/dist/chat-HM563VOV.mjs +0 -16
- package/dist/chunk-7HC6ONWM.mjs.map +0 -1
- package/dist/chunk-F5JS4W2K.mjs.map +0 -1
- package/dist/chunk-GWQRTUKF.mjs.map +0 -1
- package/dist/chunk-GZDJNVAS.mjs.map +0 -1
- package/dist/chunk-IS2LWSBZ.mjs.map +0 -1
- package/dist/chunk-R45DM35B.mjs.map +0 -1
- /package/dist/{aiProviderStore-ZQ5VVVKQ.mjs.map → aiProviderStore-BNZGM6QU.mjs.map} +0 -0
- /package/dist/{chat-HM563VOV.mjs.map → chat-4BOIV4VP.mjs.map} +0 -0
- /package/dist/{chunk-B2TJZM4Z.mjs.map → chunk-P6SLB5RC.mjs.map} +0 -0
- /package/dist/{chunk-2X3ZTDUW.mjs.map → chunk-TKSOJGHX.mjs.map} +0 -0
- /package/dist/{modelStore-KBUW3XAV.mjs.map → modelStore-NMCRL3FR.mjs.map} +0 -0
|
@@ -2,10 +2,10 @@ import {
|
|
|
2
2
|
StreamingMarkdown_default,
|
|
3
3
|
isNativeShell,
|
|
4
4
|
isStandalonePwa
|
|
5
|
-
} from "./chunk-
|
|
5
|
+
} from "./chunk-LFQH6M6B.mjs";
|
|
6
6
|
import {
|
|
7
7
|
aiProviderInitService
|
|
8
|
-
} from "./chunk-
|
|
8
|
+
} from "./chunk-P6SLB5RC.mjs";
|
|
9
9
|
import {
|
|
10
10
|
addMcpServer,
|
|
11
11
|
deleteMcpServer,
|
|
@@ -13,10 +13,10 @@ import {
|
|
|
13
13
|
listMcpServers,
|
|
14
14
|
updateMcpServer,
|
|
15
15
|
useMCPToolsStore
|
|
16
|
-
} from "./chunk-
|
|
16
|
+
} from "./chunk-LNGF2XAZ.mjs";
|
|
17
17
|
import {
|
|
18
18
|
chat_modal_default
|
|
19
|
-
} from "./chunk-
|
|
19
|
+
} from "./chunk-TKSOJGHX.mjs";
|
|
20
20
|
import {
|
|
21
21
|
AddIcon,
|
|
22
22
|
ArchiveIcon,
|
|
@@ -85,7 +85,7 @@ import {
|
|
|
85
85
|
predefinedThemes,
|
|
86
86
|
useNotificationService,
|
|
87
87
|
useVoiceStore
|
|
88
|
-
} from "./chunk-
|
|
88
|
+
} from "./chunk-LTWMMHFT.mjs";
|
|
89
89
|
import {
|
|
90
90
|
TOPICS,
|
|
91
91
|
brandingService_default,
|
|
@@ -97,21 +97,21 @@ import {
|
|
|
97
97
|
useFeatures,
|
|
98
98
|
useKnowledgeStore2 as useKnowledgeStore,
|
|
99
99
|
useVectorStore
|
|
100
|
-
} from "./chunk-
|
|
100
|
+
} from "./chunk-PDQT564P.mjs";
|
|
101
101
|
import {
|
|
102
102
|
indexedDBService_default,
|
|
103
103
|
models,
|
|
104
104
|
useModelStore,
|
|
105
105
|
usePackageSettingsStore,
|
|
106
106
|
usePreferencesStore
|
|
107
|
-
} from "./chunk-
|
|
107
|
+
} from "./chunk-XTB6ZLUI.mjs";
|
|
108
108
|
import {
|
|
109
109
|
AIProviderFactory,
|
|
110
110
|
GatewayService,
|
|
111
111
|
authenticationService,
|
|
112
112
|
useAIProviderStore,
|
|
113
113
|
useAuthenticationStore
|
|
114
|
-
} from "./chunk-
|
|
114
|
+
} from "./chunk-B3HAQC6F.mjs";
|
|
115
115
|
import {
|
|
116
116
|
debugLogger
|
|
117
117
|
} from "./chunk-KCI46M23.mjs";
|
|
@@ -2060,7 +2060,7 @@ import {
|
|
|
2060
2060
|
Chip as Chip2,
|
|
2061
2061
|
TextField as TextField2,
|
|
2062
2062
|
InputAdornment,
|
|
2063
|
-
Alert as
|
|
2063
|
+
Alert as Alert2,
|
|
2064
2064
|
IconButton as IconButton2,
|
|
2065
2065
|
Tooltip,
|
|
2066
2066
|
useMediaQuery as useMediaQuery2,
|
|
@@ -2637,8 +2637,8 @@ var PreferencesTab = ({
|
|
|
2637
2637
|
sx: { alignSelf: { xs: "flex-start", sm: "center" } }
|
|
2638
2638
|
}
|
|
2639
2639
|
) }),
|
|
2640
|
-
syncError && /* @__PURE__ */ jsx3(
|
|
2641
|
-
oversizedConversations.length > 0 && /* @__PURE__ */ jsxs3(
|
|
2640
|
+
syncError && /* @__PURE__ */ jsx3(Alert2, { severity: "error", sx: { mt: 2 }, children: syncError }),
|
|
2641
|
+
oversizedConversations.length > 0 && /* @__PURE__ */ jsxs3(Alert2, { severity: "error", sx: { mt: 2 }, children: [
|
|
2642
2642
|
/* @__PURE__ */ jsx3(Typography3, { variant: "body2", sx: { fontWeight: 600, mb: 0.5 }, children: "Start a new conversation to keep syncing with Bandit Cloud." }),
|
|
2643
2643
|
/* @__PURE__ */ jsxs3(Typography3, { variant: "body2", color: "text.secondary", children: [
|
|
2644
2644
|
"These threads exceeded the ",
|
|
@@ -2647,7 +2647,7 @@ var PreferencesTab = ({
|
|
|
2647
2647
|
] }),
|
|
2648
2648
|
renderNoticeList(oversizedConversations)
|
|
2649
2649
|
] }),
|
|
2650
|
-
warningConversations.length > 0 && oversizedConversations.length === 0 && /* @__PURE__ */ jsxs3(
|
|
2650
|
+
warningConversations.length > 0 && oversizedConversations.length === 0 && /* @__PURE__ */ jsxs3(Alert2, { severity: "warning", sx: { mt: 2 }, children: [
|
|
2651
2651
|
/* @__PURE__ */ jsx3(Typography3, { variant: "body2", sx: { fontWeight: 600, mb: 0.5 }, children: "You are nearing the Bandit Cloud size limit." }),
|
|
2652
2652
|
/* @__PURE__ */ jsxs3(Typography3, { variant: "body2", color: "text.secondary", children: [
|
|
2653
2653
|
"Consider starting a fresh conversation once these reach about ",
|
|
@@ -3031,7 +3031,7 @@ import {
|
|
|
3031
3031
|
CardContent as CardContent2,
|
|
3032
3032
|
Paper as Paper4,
|
|
3033
3033
|
Chip as Chip4,
|
|
3034
|
-
Alert as
|
|
3034
|
+
Alert as Alert4,
|
|
3035
3035
|
Fade,
|
|
3036
3036
|
Skeleton,
|
|
3037
3037
|
Snackbar,
|
|
@@ -3054,7 +3054,7 @@ import {
|
|
|
3054
3054
|
Slider as Slider2,
|
|
3055
3055
|
IconButton as IconButton3,
|
|
3056
3056
|
Paper as Paper3,
|
|
3057
|
-
Alert as
|
|
3057
|
+
Alert as Alert3,
|
|
3058
3058
|
ToggleButtonGroup,
|
|
3059
3059
|
ToggleButton,
|
|
3060
3060
|
Chip as Chip3
|
|
@@ -3549,7 +3549,7 @@ var LogoCropper = ({
|
|
|
3549
3549
|
}
|
|
3550
3550
|
)
|
|
3551
3551
|
] }),
|
|
3552
|
-
/* @__PURE__ */ jsx4(
|
|
3552
|
+
/* @__PURE__ */ jsx4(Alert3, { severity: "info", variant: "outlined", sx: { borderRadius: 2, py: 0.5 }, children: /* @__PURE__ */ jsx4(Typography4, { variant: "caption", sx: { fontSize: "0.75rem", lineHeight: 1.5 }, children: "Exported as a transparent PNG at the selected aspect ratio. Wide logos stay wide." }) })
|
|
3553
3553
|
] })
|
|
3554
3554
|
] }) : /* @__PURE__ */ jsx4(Box4, { sx: { display: "flex", justifyContent: "center", py: 4 }, children: /* @__PURE__ */ jsx4(Typography4, { children: "Loading image..." }) })
|
|
3555
3555
|
] }) }),
|
|
@@ -4209,7 +4209,7 @@ var BrandingTab = ({
|
|
|
4209
4209
|
onClose: () => setShowSnackbar(false),
|
|
4210
4210
|
anchorOrigin: { vertical: "bottom", horizontal: "left" },
|
|
4211
4211
|
children: /* @__PURE__ */ jsx5(
|
|
4212
|
-
|
|
4212
|
+
Alert4,
|
|
4213
4213
|
{
|
|
4214
4214
|
onClose: () => setShowSnackbar(false),
|
|
4215
4215
|
severity: snackbarSeverity,
|
|
@@ -4256,7 +4256,7 @@ import {
|
|
|
4256
4256
|
Card as Card3,
|
|
4257
4257
|
CardContent as CardContent3,
|
|
4258
4258
|
IconButton as IconButton4,
|
|
4259
|
-
Alert as
|
|
4259
|
+
Alert as Alert5,
|
|
4260
4260
|
Stack,
|
|
4261
4261
|
MenuItem as MenuItem3,
|
|
4262
4262
|
Snackbar as Snackbar2,
|
|
@@ -5782,7 +5782,7 @@ var KnowledgeTab = ({
|
|
|
5782
5782
|
documents.length,
|
|
5783
5783
|
" documents from your local browser storage. This action cannot be undone."
|
|
5784
5784
|
] }),
|
|
5785
|
-
documents.length > 0 && /* @__PURE__ */ jsxs7(
|
|
5785
|
+
documents.length > 0 && /* @__PURE__ */ jsxs7(Alert5, { severity: "warning", sx: { mt: 2 }, children: [
|
|
5786
5786
|
"You will lose ",
|
|
5787
5787
|
statistics.totalSize,
|
|
5788
5788
|
" of document content"
|
|
@@ -5819,7 +5819,7 @@ var KnowledgeTab = ({
|
|
|
5819
5819
|
onClose: () => setShowSnackbar(false),
|
|
5820
5820
|
anchorOrigin: { vertical: "bottom", horizontal: "left" },
|
|
5821
5821
|
children: /* @__PURE__ */ jsx7(
|
|
5822
|
-
|
|
5822
|
+
Alert5,
|
|
5823
5823
|
{
|
|
5824
5824
|
onClose: () => setShowSnackbar(false),
|
|
5825
5825
|
severity: snackbarSeverity,
|
|
@@ -5894,7 +5894,7 @@ var KnowledgeTab_default = KnowledgeTab;
|
|
|
5894
5894
|
// src/management/components/SeedPacksTab.tsx
|
|
5895
5895
|
import { useCallback as useCallback6, useEffect as useEffect6, useMemo as useMemo3, useRef as useRef5, useState as useState9 } from "react";
|
|
5896
5896
|
import {
|
|
5897
|
-
Alert as
|
|
5897
|
+
Alert as Alert6,
|
|
5898
5898
|
Box as Box8,
|
|
5899
5899
|
Button as Button7,
|
|
5900
5900
|
Card as Card4,
|
|
@@ -6964,8 +6964,8 @@ ${combined}` : combined;
|
|
|
6964
6964
|
),
|
|
6965
6965
|
/* @__PURE__ */ jsx8(Typography8, { variant: "caption", color: "text.secondary", children: scopeDescription })
|
|
6966
6966
|
] }),
|
|
6967
|
-
!gatewayConfigured && /* @__PURE__ */ jsx8(
|
|
6968
|
-
gatewayConfigured && !canManage && /* @__PURE__ */ jsx8(
|
|
6967
|
+
!gatewayConfigured && /* @__PURE__ */ jsx8(Alert6, { severity: "warning", sx: { mb: 2 }, children: "Gateway API is not configured. Seed packs require a gateway URL in package settings." }),
|
|
6968
|
+
gatewayConfigured && !canManage && /* @__PURE__ */ jsx8(Alert6, { severity: "info", sx: { mb: 2 }, children: "You have view-only access. Admin rights are required to create, publish, or archive team seed packs." }),
|
|
6969
6969
|
/* @__PURE__ */ jsxs8(
|
|
6970
6970
|
Box8,
|
|
6971
6971
|
{
|
|
@@ -7104,7 +7104,7 @@ ${combined}` : combined;
|
|
|
7104
7104
|
selectedSeedPack.version && /* @__PURE__ */ jsx8(Chip6, { size: "small", label: `Version ${selectedSeedPack.version}`, variant: "outlined" }),
|
|
7105
7105
|
selectedSeedPack.updatedAt && /* @__PURE__ */ jsx8(Chip6, { size: "small", label: `Updated ${formatTimestamp(selectedSeedPack.updatedAt)}`, variant: "outlined" })
|
|
7106
7106
|
] }),
|
|
7107
|
-
/* @__PURE__ */ jsx8(
|
|
7107
|
+
/* @__PURE__ */ jsx8(Alert6, { severity: "info", children: "Treat seed pack content as internal knowledge. Do not include instructions that override system or developer messages." }),
|
|
7108
7108
|
/* @__PURE__ */ jsxs8(
|
|
7109
7109
|
Box8,
|
|
7110
7110
|
{
|
|
@@ -7427,7 +7427,7 @@ ${combined}` : combined;
|
|
|
7427
7427
|
/* @__PURE__ */ jsx8(DialogTitle5, { children: "Publish seed pack" }),
|
|
7428
7428
|
/* @__PURE__ */ jsxs8(DialogContent6, { children: [
|
|
7429
7429
|
/* @__PURE__ */ jsx8(DialogContentText3, { children: "Publishing locks a new version and makes it available for internal retrieval. This content is never shown as a user-facing source." }),
|
|
7430
|
-
isDirty && /* @__PURE__ */ jsx8(
|
|
7430
|
+
isDirty && /* @__PURE__ */ jsx8(Alert6, { severity: "info", sx: { mt: 2 }, children: "You have unsaved changes. They will be included in the published version." })
|
|
7431
7431
|
] }),
|
|
7432
7432
|
/* @__PURE__ */ jsxs8(DialogActions5, { children: [
|
|
7433
7433
|
/* @__PURE__ */ jsx8(Button7, { onClick: () => setPublishDialogOpen(false), children: "Cancel" }),
|
|
@@ -7450,7 +7450,7 @@ ${combined}` : combined;
|
|
|
7450
7450
|
selectedSeedPack?.name ?? "this seed pack",
|
|
7451
7451
|
'" permanently from this scope. Published versions and draft content will no longer be available.'
|
|
7452
7452
|
] }),
|
|
7453
|
-
/* @__PURE__ */ jsx8(
|
|
7453
|
+
/* @__PURE__ */ jsx8(Alert6, { severity: "warning", sx: { mt: 2 }, children: "This action cannot be undone." })
|
|
7454
7454
|
] }),
|
|
7455
7455
|
/* @__PURE__ */ jsxs8(DialogActions5, { children: [
|
|
7456
7456
|
/* @__PURE__ */ jsx8(Button7, { onClick: () => setDeleteDialogOpen(false), children: "Cancel" }),
|
|
@@ -7478,7 +7478,7 @@ ${combined}` : combined;
|
|
|
7478
7478
|
autoHideDuration: 4e3,
|
|
7479
7479
|
onClose: () => setSnackbarOpen(false),
|
|
7480
7480
|
anchorOrigin: { vertical: "bottom", horizontal: "center" },
|
|
7481
|
-
children: /* @__PURE__ */ jsx8(
|
|
7481
|
+
children: /* @__PURE__ */ jsx8(Alert6, { onClose: () => setSnackbarOpen(false), severity: snackbarSeverity, sx: { width: "100%" }, children: snackbarMessage })
|
|
7482
7482
|
}
|
|
7483
7483
|
)
|
|
7484
7484
|
] });
|
|
@@ -7554,7 +7554,7 @@ import {
|
|
|
7554
7554
|
DialogContent as DialogContent7,
|
|
7555
7555
|
DialogContentText as DialogContentText4,
|
|
7556
7556
|
DialogActions as DialogActions6,
|
|
7557
|
-
Alert as
|
|
7557
|
+
Alert as Alert7,
|
|
7558
7558
|
Stack as Stack3,
|
|
7559
7559
|
Chip as Chip7,
|
|
7560
7560
|
Accordion,
|
|
@@ -8186,7 +8186,7 @@ var StorageTab = ({ currentTheme }) => {
|
|
|
8186
8186
|
usagePercentage.toFixed(1),
|
|
8187
8187
|
"% used"
|
|
8188
8188
|
] }),
|
|
8189
|
-
usagePercentage > 80 && /* @__PURE__ */ jsx10(
|
|
8189
|
+
usagePercentage > 80 && /* @__PURE__ */ jsx10(Alert7, { severity: "warning", sx: { mt: 1, py: 0 }, children: "Storage usage is high. Consider clearing unused data." }),
|
|
8190
8190
|
/* @__PURE__ */ jsxs10(Box10, { sx: { display: "flex", flexWrap: "wrap", alignItems: "center", gap: 1, mt: 1.5 }, children: [
|
|
8191
8191
|
/* @__PURE__ */ jsx10(
|
|
8192
8192
|
Chip7,
|
|
@@ -8218,7 +8218,7 @@ var StorageTab = ({ currentTheme }) => {
|
|
|
8218
8218
|
}
|
|
8219
8219
|
),
|
|
8220
8220
|
/* @__PURE__ */ jsx10(Typography9, { variant: "overline", sx: { display: "block", mb: 1, color: "text.secondary" }, children: "Storage Categories" }),
|
|
8221
|
-
/* @__PURE__ */ jsx10(Box10, { children: storageCategories.length === 0 ? /* @__PURE__ */ jsxs10(
|
|
8221
|
+
/* @__PURE__ */ jsx10(Box10, { children: storageCategories.length === 0 ? /* @__PURE__ */ jsxs10(Alert7, { severity: "info", sx: { mt: 1 }, children: [
|
|
8222
8222
|
/* @__PURE__ */ jsx10(Typography9, { variant: "body2", children: "No storage data found. This could mean:" }),
|
|
8223
8223
|
/* @__PURE__ */ jsxs10(Typography9, { variant: "body2", component: "ul", sx: { mt: 1, pl: 2 }, children: [
|
|
8224
8224
|
/* @__PURE__ */ jsx10("li", { children: "All databases are empty" }),
|
|
@@ -8437,7 +8437,7 @@ var StorageTab = ({ currentTheme }) => {
|
|
|
8437
8437
|
clearCategoryDialog?.name,
|
|
8438
8438
|
'" category.'
|
|
8439
8439
|
] }),
|
|
8440
|
-
clearCategoryDialog?.clearWarning && /* @__PURE__ */ jsx10(
|
|
8440
|
+
clearCategoryDialog?.clearWarning && /* @__PURE__ */ jsx10(Alert7, { severity: "warning", sx: { mt: 2 }, children: clearCategoryDialog.clearWarning }),
|
|
8441
8441
|
clearCategoryDialog && /* @__PURE__ */ jsxs10(Box10, { sx: { mt: 2, p: 2, bgcolor: "action.hover", borderRadius: 1 }, children: [
|
|
8442
8442
|
/* @__PURE__ */ jsx10(Typography9, { variant: "body2", color: "text.secondary", children: /* @__PURE__ */ jsx10("strong", { children: "Will clear:" }) }),
|
|
8443
8443
|
/* @__PURE__ */ jsxs10(Typography9, { variant: "body2", sx: { fontFamily: "monospace", mt: 1 }, children: [
|
|
@@ -8504,7 +8504,7 @@ var StorageTab = ({ currentTheme }) => {
|
|
|
8504
8504
|
}
|
|
8505
8505
|
)
|
|
8506
8506
|
] }, category.name)) }),
|
|
8507
|
-
/* @__PURE__ */ jsx10(
|
|
8507
|
+
/* @__PURE__ */ jsx10(Alert7, { severity: "error", sx: { mt: 2 }, children: /* @__PURE__ */ jsxs10(Typography9, { variant: "body2", children: [
|
|
8508
8508
|
/* @__PURE__ */ jsx10("strong", { children: "This action cannot be undone!" }),
|
|
8509
8509
|
" Make sure to export any important data before proceeding."
|
|
8510
8510
|
] }) })
|
|
@@ -8541,7 +8541,7 @@ var StorageTab = ({ currentTheme }) => {
|
|
|
8541
8541
|
onClose: () => setShowSnackbar(false),
|
|
8542
8542
|
anchorOrigin: { vertical: "bottom", horizontal: "left" },
|
|
8543
8543
|
children: /* @__PURE__ */ jsx10(
|
|
8544
|
-
|
|
8544
|
+
Alert7,
|
|
8545
8545
|
{
|
|
8546
8546
|
onClose: () => setShowSnackbar(false),
|
|
8547
8547
|
severity: snackbarSeverity,
|
|
@@ -8567,7 +8567,7 @@ import {
|
|
|
8567
8567
|
MenuItem as MenuItem4,
|
|
8568
8568
|
Chip as Chip8,
|
|
8569
8569
|
Snackbar as Snackbar5,
|
|
8570
|
-
Alert as
|
|
8570
|
+
Alert as Alert8,
|
|
8571
8571
|
useTheme as useTheme8,
|
|
8572
8572
|
useMediaQuery as useMediaQuery6
|
|
8573
8573
|
} from "@mui/material";
|
|
@@ -8800,7 +8800,6 @@ var ProviderTab = () => {
|
|
|
8800
8800
|
usePackageSettingsStore.setState({ settings: updatedSettings });
|
|
8801
8801
|
}
|
|
8802
8802
|
setProviderConfig(applyDefaultModel(normalizedConfig));
|
|
8803
|
-
setIsProviderConfigOpen(false);
|
|
8804
8803
|
showMessage("Provider configuration saved and switched successfully!", "success");
|
|
8805
8804
|
debugLogger.info("Provider configuration saved and switched", { type: normalizedConfig.type });
|
|
8806
8805
|
} catch (error) {
|
|
@@ -9111,7 +9110,7 @@ var ProviderTab = () => {
|
|
|
9111
9110
|
}
|
|
9112
9111
|
)
|
|
9113
9112
|
] }),
|
|
9114
|
-
providerConfig.type === "anthropic" && /* @__PURE__ */ jsx11(
|
|
9113
|
+
providerConfig.type === "anthropic" && /* @__PURE__ */ jsx11(Alert8, { severity: "warning", sx: { mt: 2 }, children: "Anthropic is only supported through the Bandit Gateway provider. Please switch to Gateway and select Anthropic as the backend service." }),
|
|
9115
9114
|
/* @__PURE__ */ jsxs11(Box11, { sx: { display: "flex", gap: 2, mt: 3 }, children: [
|
|
9116
9115
|
/* @__PURE__ */ jsx11(
|
|
9117
9116
|
Button9,
|
|
@@ -9144,7 +9143,7 @@ var ProviderTab = () => {
|
|
|
9144
9143
|
onClose: () => setShowSnackbar(false),
|
|
9145
9144
|
anchorOrigin: { vertical: "bottom", horizontal: "left" },
|
|
9146
9145
|
children: /* @__PURE__ */ jsx11(
|
|
9147
|
-
|
|
9146
|
+
Alert8,
|
|
9148
9147
|
{
|
|
9149
9148
|
onClose: () => setShowSnackbar(false),
|
|
9150
9149
|
severity: snackbarSeverity,
|
|
@@ -9160,7 +9159,7 @@ var ProviderTab = () => {
|
|
|
9160
9159
|
|
|
9161
9160
|
// src/management/components/MCPToolsTabV2.tsx
|
|
9162
9161
|
import { useEffect as useEffect11, useMemo as useMemo5, useState as useState14 } from "react";
|
|
9163
|
-
import { Alert as
|
|
9162
|
+
import { Alert as Alert10, Box as Box13, Typography as Typography12, Paper as Paper7, IconButton as IconButton7, Tooltip as Tooltip4, LinearProgress as LinearProgress6, Switch as Switch4 } from "@mui/material";
|
|
9164
9163
|
|
|
9165
9164
|
// src/services/mcp/mcpControllerService.ts
|
|
9166
9165
|
var isPlaygroundMode = () => {
|
|
@@ -9235,7 +9234,7 @@ async function fetchMcpHealth() {
|
|
|
9235
9234
|
// src/management/components/McpServersSection.tsx
|
|
9236
9235
|
import { useCallback as useCallback8, useEffect as useEffect10, useRef as useRef6, useState as useState13 } from "react";
|
|
9237
9236
|
import {
|
|
9238
|
-
Alert as
|
|
9237
|
+
Alert as Alert9,
|
|
9239
9238
|
Box as Box12,
|
|
9240
9239
|
Button as Button10,
|
|
9241
9240
|
Chip as Chip9,
|
|
@@ -9422,7 +9421,7 @@ var McpServersSection = () => {
|
|
|
9422
9421
|
/* @__PURE__ */ jsx12(Typography11, { variant: "h6", sx: { fontWeight: 700, mb: 0.5 }, children: "Connect your tools" }),
|
|
9423
9422
|
/* @__PURE__ */ jsx12(Typography11, { variant: "body2", color: "text.secondary", sx: { maxWidth: 680, lineHeight: 1.6 }, children: "Let Bandit work inside the apps you already use \u2014 open a Linear issue, search Notion, or triage a Sentry error right from chat. Connect a service once; the gateway holds the connection securely, so your browser never talks to it directly." })
|
|
9424
9423
|
] }),
|
|
9425
|
-
error && /* @__PURE__ */ jsx12(
|
|
9424
|
+
error && /* @__PURE__ */ jsx12(Alert9, { severity: "error", sx: { mb: 2 }, onClose: () => setError(null), children: error }),
|
|
9426
9425
|
/* @__PURE__ */ jsx12(Typography11, { variant: "overline", color: "text.secondary", sx: { fontWeight: 700, letterSpacing: 0.6 }, children: "Popular integrations" }),
|
|
9427
9426
|
/* @__PURE__ */ jsx12(
|
|
9428
9427
|
Box12,
|
|
@@ -9620,7 +9619,7 @@ var McpServersSection = () => {
|
|
|
9620
9619
|
/* @__PURE__ */ jsx12(Typography11, { variant: "caption", color: "text.secondary", children: "Connecting\u2026" })
|
|
9621
9620
|
] }),
|
|
9622
9621
|
Array.isArray(toolState) && /* @__PURE__ */ jsx12(Box12, { sx: { mt: 1, display: "flex", flexWrap: "wrap", gap: 0.5 }, children: toolState.length === 0 ? /* @__PURE__ */ jsx12(Typography11, { variant: "caption", color: "text.secondary", children: "Connected \u2014 no tools reported." }) : toolState.map((t) => /* @__PURE__ */ jsx12(Tooltip3, { title: t.description || "", children: /* @__PURE__ */ jsx12(Chip9, { size: "small", label: t.name }) }, t.name)) }),
|
|
9623
|
-
toolState && !Array.isArray(toolState) && toolState !== "loading" && /* @__PURE__ */ jsx12(
|
|
9622
|
+
toolState && !Array.isArray(toolState) && toolState !== "loading" && /* @__PURE__ */ jsx12(Alert9, { severity: "warning", sx: { mt: 1 }, children: toolState.error })
|
|
9624
9623
|
] }, server.id);
|
|
9625
9624
|
})
|
|
9626
9625
|
] }),
|
|
@@ -9742,8 +9741,8 @@ var MCPToolsTabV2 = () => {
|
|
|
9742
9741
|
] }),
|
|
9743
9742
|
/* @__PURE__ */ jsx13(Typography12, { variant: "body2", color: "text.secondary", sx: { mb: 1.5 }, children: "Things Bandit can do on its own \u2014 toggle what it\u2019s allowed to use." }),
|
|
9744
9743
|
loading && /* @__PURE__ */ jsx13(LinearProgress6, { sx: { mb: 2 } }),
|
|
9745
|
-
error && /* @__PURE__ */ jsx13(
|
|
9746
|
-
!gatewayConfigured && /* @__PURE__ */ jsx13(
|
|
9744
|
+
error && /* @__PURE__ */ jsx13(Alert10, { severity: "warning", sx: { mb: 2 }, children: error }),
|
|
9745
|
+
!gatewayConfigured && /* @__PURE__ */ jsx13(Alert10, { severity: "info", sx: { mb: 2 }, children: "Using this origin for tool endpoints (no gateway URL configured)." }),
|
|
9747
9746
|
/* @__PURE__ */ jsxs13(
|
|
9748
9747
|
Box13,
|
|
9749
9748
|
{
|
|
@@ -9812,7 +9811,7 @@ var MCPToolsTabV2_default = MCPToolsTabV2;
|
|
|
9812
9811
|
|
|
9813
9812
|
// src/management/management.tsx
|
|
9814
9813
|
import { jsx as jsx14, jsxs as jsxs14 } from "react/jsx-runtime";
|
|
9815
|
-
var preloadChatPage = () => import("./chat-
|
|
9814
|
+
var preloadChatPage = () => import("./chat-4BOIV4VP.mjs");
|
|
9816
9815
|
var buildCapabilitiesUrl = (gatewayApiUrl) => {
|
|
9817
9816
|
const trimmed = gatewayApiUrl.replace(/\/$/, "");
|
|
9818
9817
|
if (trimmed.endsWith("/api")) {
|
|
@@ -11189,4 +11188,4 @@ export {
|
|
|
11189
11188
|
useGatewayMemory,
|
|
11190
11189
|
management_default
|
|
11191
11190
|
};
|
|
11192
|
-
//# sourceMappingURL=chunk-
|
|
11191
|
+
//# sourceMappingURL=chunk-IABD4L6K.mjs.map
|