@burtson-labs/bandit-engine 2.0.52 → 2.0.54
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 +23 -12
- package/dist/{aiProviderStore-3N3VE6D4.mjs → aiProviderStore-337QNQB3.mjs} +2 -2
- package/dist/{chat-YWYLVKXX.mjs → chat-IDE6Z4Q4.mjs} +6 -6
- package/dist/chat-provider.js +17 -9
- package/dist/chat-provider.js.map +1 -1
- package/dist/chat-provider.mjs +4 -4
- package/dist/{chunk-QX6CO7TJ.mjs → chunk-557E5VZ2.mjs} +3 -3
- package/dist/{chunk-MH7WFWCP.mjs → chunk-AVV7HDGR.mjs} +3 -3
- package/dist/{chunk-BENL3EF2.mjs → chunk-H3BYFEIE.mjs} +18 -10
- package/dist/chunk-H3BYFEIE.mjs.map +1 -0
- package/dist/{chunk-YZ2HJFPQ.mjs → chunk-KM7FUWCM.mjs} +4 -4
- package/dist/chunk-KM7FUWCM.mjs.map +1 -0
- package/dist/{chunk-M3BEAMCC.mjs → chunk-KNBWR4DS.mjs} +775 -488
- package/dist/chunk-KNBWR4DS.mjs.map +1 -0
- package/dist/{chunk-Y5N3NSTU.mjs → chunk-NP2OHTTX.mjs} +116 -152
- package/dist/chunk-NP2OHTTX.mjs.map +1 -0
- package/dist/{chunk-TSQCNHOX.mjs → chunk-TLY6A6XL.mjs} +123 -147
- package/dist/chunk-TLY6A6XL.mjs.map +1 -0
- package/dist/{chunk-37PEP5JK.mjs → chunk-UFSEYVRS.mjs} +3 -3
- package/dist/{chunk-RSSJADDD.mjs → chunk-WL7NV4WJ.mjs} +28 -32
- package/dist/chunk-WL7NV4WJ.mjs.map +1 -0
- package/dist/index.d.mts +5 -3
- package/dist/index.d.ts +5 -3
- package/dist/index.js +4097 -4045
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +11 -15
- package/dist/index.mjs.map +1 -1
- package/dist/management/management.js +4068 -4016
- package/dist/management/management.js.map +1 -1
- package/dist/management/management.mjs +7 -7
- package/dist/modals/chat-modal/chat-modal.js +1401 -1279
- package/dist/modals/chat-modal/chat-modal.js.map +1 -1
- package/dist/modals/chat-modal/chat-modal.mjs +4 -4
- package/dist/{gateway-oScD5tvE.d.mts → public-BzsEWB08.d.mts} +11 -122
- package/dist/{gateway-oScD5tvE.d.ts → public-BzsEWB08.d.ts} +11 -122
- package/dist/public-types.d.mts +2 -32
- package/dist/public-types.d.ts +2 -32
- package/package.json +3 -11
- package/dist/chunk-BENL3EF2.mjs.map +0 -1
- package/dist/chunk-M3BEAMCC.mjs.map +0 -1
- package/dist/chunk-RSSJADDD.mjs.map +0 -1
- package/dist/chunk-TSQCNHOX.mjs.map +0 -1
- package/dist/chunk-Y5N3NSTU.mjs.map +0 -1
- package/dist/chunk-YZ2HJFPQ.mjs.map +0 -1
- package/dist/cli.js +0 -4084
- package/dist/cli.js.map +0 -1
- /package/dist/{aiProviderStore-3N3VE6D4.mjs.map → aiProviderStore-337QNQB3.mjs.map} +0 -0
- /package/dist/{chat-YWYLVKXX.mjs.map → chat-IDE6Z4Q4.mjs.map} +0 -0
- /package/dist/{chunk-QX6CO7TJ.mjs.map → chunk-557E5VZ2.mjs.map} +0 -0
- /package/dist/{chunk-MH7WFWCP.mjs.map → chunk-AVV7HDGR.mjs.map} +0 -0
- /package/dist/{chunk-37PEP5JK.mjs.map → chunk-UFSEYVRS.mjs.map} +0 -0
|
@@ -1,23 +1,86 @@
|
|
|
1
1
|
import {
|
|
2
2
|
StreamingMarkdown_default
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-KM7FUWCM.mjs";
|
|
4
4
|
import {
|
|
5
5
|
aiProviderInitService
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-UFSEYVRS.mjs";
|
|
7
7
|
import {
|
|
8
8
|
useMCPToolsStore
|
|
9
9
|
} from "./chunk-EHNWQ4T3.mjs";
|
|
10
10
|
import {
|
|
11
11
|
chat_modal_default
|
|
12
|
-
} from "./chunk-
|
|
12
|
+
} from "./chunk-WL7NV4WJ.mjs";
|
|
13
13
|
import {
|
|
14
|
+
AddIcon,
|
|
15
|
+
ArchiveIcon,
|
|
16
|
+
ArticleIcon,
|
|
17
|
+
AutoAwesomeIcon,
|
|
18
|
+
AutoStoriesIcon,
|
|
19
|
+
BrushIcon,
|
|
20
|
+
BuildIcon,
|
|
21
|
+
ChatIcon,
|
|
22
|
+
CheckCircleIcon,
|
|
23
|
+
CheckIcon,
|
|
24
|
+
ChevronLeftIcon,
|
|
25
|
+
CleaningServicesIcon,
|
|
26
|
+
CloudDoneIcon,
|
|
27
|
+
CloudIcon,
|
|
28
|
+
CloudOffIcon,
|
|
29
|
+
CodeIcon,
|
|
30
|
+
Crop169Icon,
|
|
31
|
+
CropPortraitIcon,
|
|
32
|
+
CropSquareIcon,
|
|
33
|
+
DataObjectIcon,
|
|
34
|
+
DeleteIcon,
|
|
35
|
+
DescriptionIcon,
|
|
14
36
|
DocumentCard_default,
|
|
37
|
+
DownloadIcon,
|
|
38
|
+
EditNoteOutlinedIcon,
|
|
39
|
+
ErrorIcon,
|
|
40
|
+
ErrorOutlineIcon,
|
|
41
|
+
ExpandMoreIcon,
|
|
42
|
+
FaceRetouchingNaturalIcon,
|
|
43
|
+
FileUploadIcon,
|
|
44
|
+
FolderIcon,
|
|
45
|
+
FolderOpenIcon,
|
|
46
|
+
GroupIcon,
|
|
47
|
+
HealthAndSafetyIcon,
|
|
48
|
+
InfoIcon,
|
|
49
|
+
LinkIcon,
|
|
50
|
+
LockIcon,
|
|
51
|
+
ManageAccountsOutlinedIcon,
|
|
52
|
+
MenuBookIcon,
|
|
53
|
+
PersonIcon,
|
|
54
|
+
PictureAsPdfIcon,
|
|
55
|
+
PlayArrowRoundedIcon,
|
|
56
|
+
PreviewIcon,
|
|
57
|
+
PublicIcon,
|
|
58
|
+
PublishIcon,
|
|
59
|
+
RefreshIcon,
|
|
60
|
+
RestoreIcon,
|
|
61
|
+
RocketLaunchOutlinedIcon,
|
|
62
|
+
RotateLeftIcon,
|
|
63
|
+
RotateRightIcon,
|
|
64
|
+
SaveIcon,
|
|
65
|
+
SearchIcon,
|
|
66
|
+
SettingsIcon,
|
|
67
|
+
StorageIcon,
|
|
68
|
+
SyncIcon,
|
|
69
|
+
TuneIcon,
|
|
70
|
+
UploadFileIcon,
|
|
71
|
+
UploadIcon,
|
|
72
|
+
ViewListIcon,
|
|
73
|
+
ViewModuleIcon,
|
|
74
|
+
ViewModuleOutlinedIcon,
|
|
75
|
+
WarningIcon,
|
|
76
|
+
ZoomInIcon,
|
|
77
|
+
ZoomOutIcon,
|
|
15
78
|
banditDarkTheme,
|
|
16
79
|
knowledge_file_modal_default,
|
|
17
80
|
predefinedThemes,
|
|
18
81
|
useNotificationService,
|
|
19
82
|
useVoiceStore
|
|
20
|
-
} from "./chunk-
|
|
83
|
+
} from "./chunk-KNBWR4DS.mjs";
|
|
21
84
|
import {
|
|
22
85
|
authenticationService,
|
|
23
86
|
brandingService_default,
|
|
@@ -30,7 +93,7 @@ import {
|
|
|
30
93
|
useFeatures,
|
|
31
94
|
useKnowledgeStore2 as useKnowledgeStore,
|
|
32
95
|
useVectorStore
|
|
33
|
-
} from "./chunk-
|
|
96
|
+
} from "./chunk-557E5VZ2.mjs";
|
|
34
97
|
import {
|
|
35
98
|
indexedDBService_default,
|
|
36
99
|
models,
|
|
@@ -42,7 +105,7 @@ import {
|
|
|
42
105
|
AIProviderFactory,
|
|
43
106
|
GatewayService,
|
|
44
107
|
useAIProviderStore
|
|
45
|
-
} from "./chunk-
|
|
108
|
+
} from "./chunk-H3BYFEIE.mjs";
|
|
46
109
|
import {
|
|
47
110
|
debugLogger
|
|
48
111
|
} from "./chunk-KCI46M23.mjs";
|
|
@@ -65,15 +128,7 @@ import {
|
|
|
65
128
|
Divider as Divider2,
|
|
66
129
|
SwipeableDrawer
|
|
67
130
|
} from "@mui/material";
|
|
68
|
-
import FaceRetouchingNaturalIcon from "@mui/icons-material/FaceRetouchingNatural";
|
|
69
|
-
import BrushIcon from "@mui/icons-material/Brush";
|
|
70
|
-
import MenuBookIcon from "@mui/icons-material/MenuBook";
|
|
71
|
-
import TuneIcon from "@mui/icons-material/Tune";
|
|
72
|
-
import BuildIcon from "@mui/icons-material/Build";
|
|
73
|
-
import CloudIcon from "@mui/icons-material/Cloud";
|
|
74
|
-
import StorageIcon2 from "@mui/icons-material/Storage";
|
|
75
131
|
import { useNavigate } from "react-router-dom";
|
|
76
|
-
import ChevronLeftIcon from "@mui/icons-material/ChevronLeft";
|
|
77
132
|
|
|
78
133
|
// src/management/components/PersonalitiesTab.tsx
|
|
79
134
|
import { useState as useState2 } from "react";
|
|
@@ -100,12 +155,6 @@ import {
|
|
|
100
155
|
} from "@mui/material";
|
|
101
156
|
import useMediaQuery from "@mui/material/useMediaQuery";
|
|
102
157
|
import { useTheme } from "@mui/material/styles";
|
|
103
|
-
import AutoAwesomeIcon from "@mui/icons-material/AutoAwesome";
|
|
104
|
-
import RocketLaunchOutlinedIcon from "@mui/icons-material/RocketLaunchOutlined";
|
|
105
|
-
import ViewModuleOutlinedIcon from "@mui/icons-material/ViewModuleOutlined";
|
|
106
|
-
import EditNoteOutlinedIcon from "@mui/icons-material/EditNoteOutlined";
|
|
107
|
-
import ManageAccountsOutlinedIcon from "@mui/icons-material/ManageAccountsOutlined";
|
|
108
|
-
import PlayArrowRoundedIcon from "@mui/icons-material/PlayArrowRounded";
|
|
109
158
|
|
|
110
159
|
// src/components/AvatarCropper.tsx
|
|
111
160
|
import { useState, useRef, useCallback, useEffect } from "react";
|
|
@@ -122,10 +171,6 @@ import {
|
|
|
122
171
|
Paper,
|
|
123
172
|
Alert
|
|
124
173
|
} from "@mui/material";
|
|
125
|
-
import RotateLeftIcon from "@mui/icons-material/RotateLeft";
|
|
126
|
-
import RotateRightIcon from "@mui/icons-material/RotateRight";
|
|
127
|
-
import ZoomInIcon from "@mui/icons-material/ZoomIn";
|
|
128
|
-
import ZoomOutIcon from "@mui/icons-material/ZoomOut";
|
|
129
174
|
import { Fragment, jsx, jsxs } from "react/jsx-runtime";
|
|
130
175
|
var AvatarCropper = ({
|
|
131
176
|
open,
|
|
@@ -2094,16 +2139,6 @@ import {
|
|
|
2094
2139
|
useMediaQuery as useMediaQuery2,
|
|
2095
2140
|
useTheme as useTheme2
|
|
2096
2141
|
} from "@mui/material";
|
|
2097
|
-
import CheckCircleIcon from "@mui/icons-material/CheckCircle";
|
|
2098
|
-
import ErrorIcon from "@mui/icons-material/Error";
|
|
2099
|
-
import LinkIcon from "@mui/icons-material/Link";
|
|
2100
|
-
import DownloadIcon from "@mui/icons-material/Download";
|
|
2101
|
-
import UploadIcon from "@mui/icons-material/Upload";
|
|
2102
|
-
import RestoreIcon from "@mui/icons-material/Restore";
|
|
2103
|
-
import CloudDoneIcon from "@mui/icons-material/CloudDone";
|
|
2104
|
-
import CloudOffIcon from "@mui/icons-material/CloudOff";
|
|
2105
|
-
import SyncIcon from "@mui/icons-material/Sync";
|
|
2106
|
-
import RefreshIcon from "@mui/icons-material/Refresh";
|
|
2107
2142
|
|
|
2108
2143
|
// src/hooks/useGatewayQueries.ts
|
|
2109
2144
|
import { useMemo } from "react";
|
|
@@ -2982,13 +3017,6 @@ import {
|
|
|
2982
3017
|
useTheme as useTheme3,
|
|
2983
3018
|
useMediaQuery as useMediaQuery3
|
|
2984
3019
|
} from "@mui/material";
|
|
2985
|
-
import UploadIcon2 from "@mui/icons-material/Upload";
|
|
2986
|
-
import DeleteIcon from "@mui/icons-material/Delete";
|
|
2987
|
-
import PreviewIcon from "@mui/icons-material/Preview";
|
|
2988
|
-
import RestoreIcon2 from "@mui/icons-material/Restore";
|
|
2989
|
-
import DownloadIcon2 from "@mui/icons-material/Download";
|
|
2990
|
-
import FileUploadIcon from "@mui/icons-material/FileUpload";
|
|
2991
|
-
import SaveIcon from "@mui/icons-material/Save";
|
|
2992
3020
|
|
|
2993
3021
|
// src/components/LogoCropper.tsx
|
|
2994
3022
|
import { useState as useState4, useRef as useRef3, useCallback as useCallback3, useEffect as useEffect3 } from "react";
|
|
@@ -3008,13 +3036,6 @@ import {
|
|
|
3008
3036
|
ToggleButton,
|
|
3009
3037
|
Chip as Chip3
|
|
3010
3038
|
} from "@mui/material";
|
|
3011
|
-
import RotateLeftIcon2 from "@mui/icons-material/RotateLeft";
|
|
3012
|
-
import RotateRightIcon2 from "@mui/icons-material/RotateRight";
|
|
3013
|
-
import ZoomInIcon2 from "@mui/icons-material/ZoomIn";
|
|
3014
|
-
import ZoomOutIcon2 from "@mui/icons-material/ZoomOut";
|
|
3015
|
-
import Crop169Icon from "@mui/icons-material/Crop169";
|
|
3016
|
-
import CropSquareIcon from "@mui/icons-material/CropSquare";
|
|
3017
|
-
import CropPortraitIcon from "@mui/icons-material/CropPortrait";
|
|
3018
3039
|
import { Fragment as Fragment3, jsx as jsx4, jsxs as jsxs4 } from "react/jsx-runtime";
|
|
3019
3040
|
var LOGO_OUTPUT_SIZES = {
|
|
3020
3041
|
small: 256,
|
|
@@ -3431,7 +3452,7 @@ var LogoCropper = ({
|
|
|
3431
3452
|
onClick: () => handleScaleChange(cropSettings.scale - 0.1),
|
|
3432
3453
|
disabled: cropSettings.scale <= minScale,
|
|
3433
3454
|
size: "small",
|
|
3434
|
-
children: /* @__PURE__ */ jsx4(
|
|
3455
|
+
children: /* @__PURE__ */ jsx4(ZoomOutIcon, {})
|
|
3435
3456
|
}
|
|
3436
3457
|
),
|
|
3437
3458
|
/* @__PURE__ */ jsx4(
|
|
@@ -3451,7 +3472,7 @@ var LogoCropper = ({
|
|
|
3451
3472
|
onClick: () => handleScaleChange(cropSettings.scale + 0.1),
|
|
3452
3473
|
disabled: cropSettings.scale >= 4,
|
|
3453
3474
|
size: "small",
|
|
3454
|
-
children: /* @__PURE__ */ jsx4(
|
|
3475
|
+
children: /* @__PURE__ */ jsx4(ZoomInIcon, {})
|
|
3455
3476
|
}
|
|
3456
3477
|
)
|
|
3457
3478
|
] })
|
|
@@ -3463,7 +3484,7 @@ var LogoCropper = ({
|
|
|
3463
3484
|
Button4,
|
|
3464
3485
|
{
|
|
3465
3486
|
variant: "outlined",
|
|
3466
|
-
startIcon: /* @__PURE__ */ jsx4(
|
|
3487
|
+
startIcon: /* @__PURE__ */ jsx4(RotateLeftIcon, {}),
|
|
3467
3488
|
onClick: () => handleRotation("left"),
|
|
3468
3489
|
size: "small",
|
|
3469
3490
|
fullWidth: true,
|
|
@@ -3474,7 +3495,7 @@ var LogoCropper = ({
|
|
|
3474
3495
|
Button4,
|
|
3475
3496
|
{
|
|
3476
3497
|
variant: "outlined",
|
|
3477
|
-
startIcon: /* @__PURE__ */ jsx4(
|
|
3498
|
+
startIcon: /* @__PURE__ */ jsx4(RotateRightIcon, {}),
|
|
3478
3499
|
onClick: () => handleRotation("right"),
|
|
3479
3500
|
size: "small",
|
|
3480
3501
|
fullWidth: true,
|
|
@@ -3745,7 +3766,7 @@ var BrandingTab = ({
|
|
|
3745
3766
|
children: [
|
|
3746
3767
|
/* @__PURE__ */ jsxs5(Box5, { sx: { flex: "1 1 auto", display: "flex", flexDirection: "column" }, children: [
|
|
3747
3768
|
/* @__PURE__ */ jsxs5(Typography5, { variant: "h6", sx: { mb: 1.5, fontWeight: 600, display: "flex", alignItems: "center", gap: 1, fontSize: "1rem", color: "text.primary" }, children: [
|
|
3748
|
-
/* @__PURE__ */ jsx5(
|
|
3769
|
+
/* @__PURE__ */ jsx5(UploadIcon, { color: "primary", fontSize: "small" }),
|
|
3749
3770
|
"Logo Upload"
|
|
3750
3771
|
] }),
|
|
3751
3772
|
/* @__PURE__ */ jsxs5(
|
|
@@ -3801,7 +3822,7 @@ var BrandingTab = ({
|
|
|
3801
3822
|
!logoBase64 && /* @__PURE__ */ jsx5(Typography5, { variant: "caption", color: "text.secondary", sx: { fontSize: "0.75rem", textAlign: "center" }, children: "\u{1F3AF} Click to upload & crop your logo" })
|
|
3802
3823
|
] }) }) : /* @__PURE__ */ jsxs5(Box5, { sx: { display: "flex", flexDirection: "column", alignItems: "center", gap: 1 }, children: [
|
|
3803
3824
|
/* @__PURE__ */ jsx5(
|
|
3804
|
-
|
|
3825
|
+
UploadIcon,
|
|
3805
3826
|
{
|
|
3806
3827
|
className: "upload-icon",
|
|
3807
3828
|
sx: {
|
|
@@ -3833,7 +3854,7 @@ var BrandingTab = ({
|
|
|
3833
3854
|
{
|
|
3834
3855
|
variant: "outlined",
|
|
3835
3856
|
size: "small",
|
|
3836
|
-
startIcon: /* @__PURE__ */ jsx5(
|
|
3857
|
+
startIcon: /* @__PURE__ */ jsx5(UploadIcon, {}),
|
|
3837
3858
|
onClick: () => fileInputRef.current?.click(),
|
|
3838
3859
|
sx: { flex: 1, fontSize: "0.8rem", py: 0.75 },
|
|
3839
3860
|
children: "Replace"
|
|
@@ -4124,7 +4145,7 @@ var BrandingTab = ({
|
|
|
4124
4145
|
{
|
|
4125
4146
|
variant: "outlined",
|
|
4126
4147
|
fullWidth: true,
|
|
4127
|
-
startIcon: /* @__PURE__ */ jsx5(
|
|
4148
|
+
startIcon: /* @__PURE__ */ jsx5(DownloadIcon, {}),
|
|
4128
4149
|
onClick: handleExportWithFeedback,
|
|
4129
4150
|
sx: { height: 36, fontSize: "0.8rem" },
|
|
4130
4151
|
children: "Export"
|
|
@@ -4159,7 +4180,7 @@ var BrandingTab = ({
|
|
|
4159
4180
|
variant: "outlined",
|
|
4160
4181
|
fullWidth: true,
|
|
4161
4182
|
color: "warning",
|
|
4162
|
-
startIcon: /* @__PURE__ */ jsx5(
|
|
4183
|
+
startIcon: /* @__PURE__ */ jsx5(RestoreIcon, {}),
|
|
4163
4184
|
onClick: handleResetWithFeedback,
|
|
4164
4185
|
sx: { height: 36, fontSize: "0.8rem" },
|
|
4165
4186
|
children: "Reset"
|
|
@@ -4202,8 +4223,6 @@ var BrandingTab_default = BrandingTab;
|
|
|
4202
4223
|
// src/management/components/KnowledgeHubTab.tsx
|
|
4203
4224
|
import { useEffect as useEffect7, useState as useState10 } from "react";
|
|
4204
4225
|
import { Box as Box9, Tab as Tab2, Tabs as Tabs2, useMediaQuery as useMediaQuery5, useTheme as useTheme6 } from "@mui/material";
|
|
4205
|
-
import DescriptionIcon3 from "@mui/icons-material/Description";
|
|
4206
|
-
import AutoStoriesIcon from "@mui/icons-material/AutoStories";
|
|
4207
4226
|
|
|
4208
4227
|
// src/management/components/KnowledgeTab.tsx
|
|
4209
4228
|
import { useState as useState8, useMemo as useMemo2, useCallback as useCallback5, useEffect as useEffect5 } from "react";
|
|
@@ -4232,25 +4251,6 @@ import {
|
|
|
4232
4251
|
useMediaQuery as useMediaQuery4,
|
|
4233
4252
|
useTheme as useTheme5
|
|
4234
4253
|
} from "@mui/material";
|
|
4235
|
-
import SearchIcon from "@mui/icons-material/Search";
|
|
4236
|
-
import ViewModuleIcon from "@mui/icons-material/ViewModule";
|
|
4237
|
-
import ViewListIcon from "@mui/icons-material/ViewList";
|
|
4238
|
-
import UploadFileIcon from "@mui/icons-material/UploadFile";
|
|
4239
|
-
import DeleteIcon2 from "@mui/icons-material/Delete";
|
|
4240
|
-
import DownloadIcon3 from "@mui/icons-material/Download";
|
|
4241
|
-
import FolderIcon from "@mui/icons-material/Folder";
|
|
4242
|
-
import DescriptionIcon from "@mui/icons-material/Description";
|
|
4243
|
-
import PictureAsPdfIcon from "@mui/icons-material/PictureAsPdf";
|
|
4244
|
-
import CodeIcon from "@mui/icons-material/Code";
|
|
4245
|
-
import DataObjectIcon from "@mui/icons-material/DataObject";
|
|
4246
|
-
import ArticleIcon from "@mui/icons-material/Article";
|
|
4247
|
-
import CheckCircleIcon2 from "@mui/icons-material/CheckCircle";
|
|
4248
|
-
import CheckIcon from "@mui/icons-material/Check";
|
|
4249
|
-
import ErrorIcon2 from "@mui/icons-material/Error";
|
|
4250
|
-
import PersonIcon from "@mui/icons-material/Person";
|
|
4251
|
-
import GroupIcon from "@mui/icons-material/Group";
|
|
4252
|
-
import LockIcon from "@mui/icons-material/Lock";
|
|
4253
|
-
import PublicIcon from "@mui/icons-material/Public";
|
|
4254
4254
|
|
|
4255
4255
|
// src/components/shared/ProcessingOverlay.tsx
|
|
4256
4256
|
import { useState as useState6, useEffect as useEffect4 } from "react";
|
|
@@ -4266,14 +4266,7 @@ import {
|
|
|
4266
4266
|
alpha,
|
|
4267
4267
|
keyframes
|
|
4268
4268
|
} from "@mui/material";
|
|
4269
|
-
import {
|
|
4270
|
-
CloudUpload,
|
|
4271
|
-
Psychology,
|
|
4272
|
-
Memory,
|
|
4273
|
-
AutoAwesome,
|
|
4274
|
-
SmartToy,
|
|
4275
|
-
Bolt
|
|
4276
|
-
} from "@mui/icons-material";
|
|
4269
|
+
import { CloudUpload, Brain as Psychology, Cpu as Memory, Sparkles as AutoAwesome, Bot as SmartToy, Zap as Bolt } from "lucide-react";
|
|
4277
4270
|
import { jsx as jsx6, jsxs as jsxs6 } from "react/jsx-runtime";
|
|
4278
4271
|
var ninjaFloat = keyframes`
|
|
4279
4272
|
0%, 100% { transform: translateY(0px) rotate(0deg); }
|
|
@@ -5283,7 +5276,7 @@ var KnowledgeTab = ({
|
|
|
5283
5276
|
variant: "outlined",
|
|
5284
5277
|
color: "error",
|
|
5285
5278
|
size: isMobile ? "small" : "medium",
|
|
5286
|
-
startIcon: /* @__PURE__ */ jsx7(
|
|
5279
|
+
startIcon: /* @__PURE__ */ jsx7(DeleteIcon, {}),
|
|
5287
5280
|
onClick: () => setClearDocsDialogOpen(true),
|
|
5288
5281
|
sx: { ml: { xs: 0, md: 2 }, width: { xs: "100%", md: "auto" } },
|
|
5289
5282
|
children: "Clear All"
|
|
@@ -5410,7 +5403,7 @@ var KnowledgeTab = ({
|
|
|
5410
5403
|
}
|
|
5411
5404
|
),
|
|
5412
5405
|
uploadStatuses.length > 0 && /* @__PURE__ */ jsx7(Box7, { sx: { mb: 3 }, children: uploadStatuses.map((status, index) => /* @__PURE__ */ jsx7(Card3, { sx: { mb: 1 }, children: /* @__PURE__ */ jsx7(CardContent3, { sx: { py: 1.5, px: 2, "&:last-child": { pb: 1.5 } }, children: /* @__PURE__ */ jsxs7(Box7, { sx: { display: "flex", alignItems: "center", gap: 2 }, children: [
|
|
5413
|
-
status.status === "success" ? /* @__PURE__ */ jsx7(
|
|
5406
|
+
status.status === "success" ? /* @__PURE__ */ jsx7(CheckCircleIcon, { color: "success" }) : status.status === "error" ? /* @__PURE__ */ jsx7(ErrorIcon, { color: "error" }) : /* @__PURE__ */ jsx7(Box7, { sx: { width: 20, height: 20 }, children: /* @__PURE__ */ jsx7(
|
|
5414
5407
|
LinearProgress2,
|
|
5415
5408
|
{
|
|
5416
5409
|
variant: "determinate",
|
|
@@ -5567,7 +5560,7 @@ var KnowledgeTab = ({
|
|
|
5567
5560
|
variant: "outlined",
|
|
5568
5561
|
size: "small",
|
|
5569
5562
|
color: "error",
|
|
5570
|
-
startIcon: /* @__PURE__ */ jsx7(
|
|
5563
|
+
startIcon: /* @__PURE__ */ jsx7(DeleteIcon, {}),
|
|
5571
5564
|
onClick: handleBulkDelete,
|
|
5572
5565
|
children: "Delete Selected"
|
|
5573
5566
|
}
|
|
@@ -5805,7 +5798,7 @@ var KnowledgeTab = ({
|
|
|
5805
5798
|
boxShadow: 2
|
|
5806
5799
|
}
|
|
5807
5800
|
},
|
|
5808
|
-
startIcon: /* @__PURE__ */ jsx7(
|
|
5801
|
+
startIcon: /* @__PURE__ */ jsx7(DownloadIcon, { sx: { fontSize: { xs: "1rem", sm: "1.1rem" } } }),
|
|
5809
5802
|
children: "Download"
|
|
5810
5803
|
}
|
|
5811
5804
|
),
|
|
@@ -5814,7 +5807,7 @@ var KnowledgeTab = ({
|
|
|
5814
5807
|
{
|
|
5815
5808
|
onClick: (e) => handleRemoveDocument(e, doc.id),
|
|
5816
5809
|
color: "error",
|
|
5817
|
-
children: /* @__PURE__ */ jsx7(
|
|
5810
|
+
children: /* @__PURE__ */ jsx7(DeleteIcon, {})
|
|
5818
5811
|
}
|
|
5819
5812
|
)
|
|
5820
5813
|
] })
|
|
@@ -5844,7 +5837,7 @@ var KnowledgeTab = ({
|
|
|
5844
5837
|
] }),
|
|
5845
5838
|
/* @__PURE__ */ jsxs7(Dialog5, { open: clearDocsDialogOpen, onClose: () => setClearDocsDialogOpen(false), children: [
|
|
5846
5839
|
/* @__PURE__ */ jsx7(DialogTitle4, { children: /* @__PURE__ */ jsxs7(Box7, { sx: { display: "flex", alignItems: "center", gap: 1 }, children: [
|
|
5847
|
-
/* @__PURE__ */ jsx7(
|
|
5840
|
+
/* @__PURE__ */ jsx7(ErrorIcon, { color: "error" }),
|
|
5848
5841
|
"Clear All Documents?"
|
|
5849
5842
|
] }) }),
|
|
5850
5843
|
/* @__PURE__ */ jsxs7(DialogContent5, { children: [
|
|
@@ -5867,7 +5860,7 @@ var KnowledgeTab = ({
|
|
|
5867
5860
|
onClick: handleClearAllDocuments,
|
|
5868
5861
|
color: "error",
|
|
5869
5862
|
variant: "contained",
|
|
5870
|
-
startIcon: /* @__PURE__ */ jsx7(
|
|
5863
|
+
startIcon: /* @__PURE__ */ jsx7(DeleteIcon, {}),
|
|
5871
5864
|
children: "Delete All Documents"
|
|
5872
5865
|
}
|
|
5873
5866
|
)
|
|
@@ -5931,7 +5924,7 @@ var KnowledgeTab = ({
|
|
|
5931
5924
|
variant: "outlined",
|
|
5932
5925
|
size: "small",
|
|
5933
5926
|
color: "error",
|
|
5934
|
-
startIcon: /* @__PURE__ */ jsx7(
|
|
5927
|
+
startIcon: /* @__PURE__ */ jsx7(DeleteIcon, {}),
|
|
5935
5928
|
onClick: handleBulkDelete,
|
|
5936
5929
|
children: "Delete"
|
|
5937
5930
|
}
|
|
@@ -5987,18 +5980,6 @@ import {
|
|
|
5987
5980
|
Tooltip as Tooltip2,
|
|
5988
5981
|
Typography as Typography8
|
|
5989
5982
|
} from "@mui/material";
|
|
5990
|
-
import AddIcon from "@mui/icons-material/Add";
|
|
5991
|
-
import ArchiveIcon from "@mui/icons-material/Archive";
|
|
5992
|
-
import DeleteIcon3 from "@mui/icons-material/Delete";
|
|
5993
|
-
import DescriptionIcon2 from "@mui/icons-material/Description";
|
|
5994
|
-
import FolderOpenIcon from "@mui/icons-material/FolderOpen";
|
|
5995
|
-
import GroupIcon2 from "@mui/icons-material/Group";
|
|
5996
|
-
import PersonIcon2 from "@mui/icons-material/Person";
|
|
5997
|
-
import PublishIcon from "@mui/icons-material/Publish";
|
|
5998
|
-
import RefreshIcon2 from "@mui/icons-material/Refresh";
|
|
5999
|
-
import SaveIcon2 from "@mui/icons-material/Save";
|
|
6000
|
-
import SearchIcon2 from "@mui/icons-material/Search";
|
|
6001
|
-
import UploadFileIcon2 from "@mui/icons-material/UploadFile";
|
|
6002
5983
|
|
|
6003
5984
|
// src/services/seedPacks/seedPackService.ts
|
|
6004
5985
|
var HttpResponseError = class extends Error {
|
|
@@ -6422,7 +6403,7 @@ var SeedPackFileCard = ({ file, onPreview, onRemove, isReadOnly }) => /* @__PURE
|
|
|
6422
6403
|
height: 32
|
|
6423
6404
|
},
|
|
6424
6405
|
children: [
|
|
6425
|
-
/* @__PURE__ */ jsx8(
|
|
6406
|
+
/* @__PURE__ */ jsx8(DescriptionIcon, { sx: { fontSize: 32, color: "#388e3c", flexShrink: 0 } }),
|
|
6426
6407
|
!isReadOnly && /* @__PURE__ */ jsx8(
|
|
6427
6408
|
IconButton5,
|
|
6428
6409
|
{
|
|
@@ -6433,7 +6414,7 @@ var SeedPackFileCard = ({ file, onPreview, onRemove, isReadOnly }) => /* @__PURE
|
|
|
6433
6414
|
onRemove();
|
|
6434
6415
|
},
|
|
6435
6416
|
sx: { width: 24, height: 24 },
|
|
6436
|
-
children: /* @__PURE__ */ jsx8(
|
|
6417
|
+
children: /* @__PURE__ */ jsx8(DeleteIcon, { fontSize: "small" })
|
|
6437
6418
|
}
|
|
6438
6419
|
)
|
|
6439
6420
|
]
|
|
@@ -6521,7 +6502,7 @@ var SeedPackFileCard = ({ file, onPreview, onRemove, isReadOnly }) => /* @__PURE
|
|
|
6521
6502
|
/* @__PURE__ */ jsx8(
|
|
6522
6503
|
Chip6,
|
|
6523
6504
|
{
|
|
6524
|
-
icon: /* @__PURE__ */ jsx8(
|
|
6505
|
+
icon: /* @__PURE__ */ jsx8(PersonIcon, { sx: { fontSize: "0.9rem !important" } }),
|
|
6525
6506
|
label: file.source === "azure-wiki" ? "Azure Wiki" : "Local",
|
|
6526
6507
|
size: "small",
|
|
6527
6508
|
sx: {
|
|
@@ -6540,7 +6521,7 @@ var SeedPackFileCard = ({ file, onPreview, onRemove, isReadOnly }) => /* @__PURE
|
|
|
6540
6521
|
/* @__PURE__ */ jsx8(
|
|
6541
6522
|
Chip6,
|
|
6542
6523
|
{
|
|
6543
|
-
icon: /* @__PURE__ */ jsx8(
|
|
6524
|
+
icon: /* @__PURE__ */ jsx8(DescriptionIcon, { sx: { fontSize: "0.85rem !important" } }),
|
|
6544
6525
|
label: "Markdown",
|
|
6545
6526
|
size: "small",
|
|
6546
6527
|
sx: {
|
|
@@ -6581,7 +6562,7 @@ var SeedPackFileCard = ({ file, onPreview, onRemove, isReadOnly }) => /* @__PURE
|
|
|
6581
6562
|
event.stopPropagation();
|
|
6582
6563
|
onPreview();
|
|
6583
6564
|
},
|
|
6584
|
-
startIcon: /* @__PURE__ */ jsx8(
|
|
6565
|
+
startIcon: /* @__PURE__ */ jsx8(SearchIcon, { sx: { fontSize: { xs: "1rem", sm: "1.1rem" } } }),
|
|
6585
6566
|
children: "Preview"
|
|
6586
6567
|
}
|
|
6587
6568
|
) })
|
|
@@ -7036,7 +7017,7 @@ ${combined}` : combined;
|
|
|
7036
7017
|
/* @__PURE__ */ jsx8(Stack3, { direction: "row", spacing: 1, flexWrap: "wrap", children: /* @__PURE__ */ jsx8(
|
|
7037
7018
|
Chip6,
|
|
7038
7019
|
{
|
|
7039
|
-
icon: isTeamScope ? /* @__PURE__ */ jsx8(
|
|
7020
|
+
icon: isTeamScope ? /* @__PURE__ */ jsx8(GroupIcon, {}) : /* @__PURE__ */ jsx8(PersonIcon, {}),
|
|
7040
7021
|
label: scopeLabel,
|
|
7041
7022
|
color: "info",
|
|
7042
7023
|
variant: "outlined"
|
|
@@ -7068,7 +7049,7 @@ ${combined}` : combined;
|
|
|
7068
7049
|
size: "small",
|
|
7069
7050
|
variant: "outlined",
|
|
7070
7051
|
onClick: () => refreshSeedPacks(),
|
|
7071
|
-
startIcon: /* @__PURE__ */ jsx8(
|
|
7052
|
+
startIcon: /* @__PURE__ */ jsx8(RefreshIcon, {}),
|
|
7072
7053
|
disabled: !gatewayConfigured || isLoadingList,
|
|
7073
7054
|
children: "Refresh"
|
|
7074
7055
|
}
|
|
@@ -7183,7 +7164,7 @@ ${combined}` : combined;
|
|
|
7183
7164
|
}
|
|
7184
7165
|
),
|
|
7185
7166
|
/* @__PURE__ */ jsxs8(Stack3, { direction: "row", spacing: 1, flexWrap: "wrap", children: [
|
|
7186
|
-
/* @__PURE__ */ jsx8(Chip6, { size: "small", label: scopeLabel, icon: isTeamScope ? /* @__PURE__ */ jsx8(
|
|
7167
|
+
/* @__PURE__ */ jsx8(Chip6, { size: "small", label: scopeLabel, icon: isTeamScope ? /* @__PURE__ */ jsx8(GroupIcon, {}) : /* @__PURE__ */ jsx8(PersonIcon, {}) }),
|
|
7187
7168
|
selectedSeedPack.version && /* @__PURE__ */ jsx8(Chip6, { size: "small", label: `Version ${selectedSeedPack.version}`, variant: "outlined" }),
|
|
7188
7169
|
selectedSeedPack.updatedAt && /* @__PURE__ */ jsx8(Chip6, { size: "small", label: `Updated ${formatTimestamp(selectedSeedPack.updatedAt)}`, variant: "outlined" })
|
|
7189
7170
|
] }),
|
|
@@ -7215,7 +7196,7 @@ ${combined}` : combined;
|
|
|
7215
7196
|
{
|
|
7216
7197
|
size: "small",
|
|
7217
7198
|
variant: "outlined",
|
|
7218
|
-
startIcon: /* @__PURE__ */ jsx8(
|
|
7199
|
+
startIcon: /* @__PURE__ */ jsx8(UploadFileIcon, {}),
|
|
7219
7200
|
onClick: () => fileInputRef.current?.click(),
|
|
7220
7201
|
disabled: isReadOnly,
|
|
7221
7202
|
children: "Import .md"
|
|
@@ -7322,7 +7303,7 @@ ${combined}` : combined;
|
|
|
7322
7303
|
Button7,
|
|
7323
7304
|
{
|
|
7324
7305
|
variant: "outlined",
|
|
7325
|
-
startIcon: /* @__PURE__ */ jsx8(
|
|
7306
|
+
startIcon: /* @__PURE__ */ jsx8(SaveIcon, {}),
|
|
7326
7307
|
onClick: handleSaveDraft,
|
|
7327
7308
|
disabled: isReadOnly || !isDirty || isSaving,
|
|
7328
7309
|
children: isSaving ? "Saving..." : "Save draft"
|
|
@@ -7363,7 +7344,7 @@ ${combined}` : combined;
|
|
|
7363
7344
|
{
|
|
7364
7345
|
variant: "text",
|
|
7365
7346
|
color: "error",
|
|
7366
|
-
startIcon: /* @__PURE__ */ jsx8(
|
|
7347
|
+
startIcon: /* @__PURE__ */ jsx8(DeleteIcon, {}),
|
|
7367
7348
|
onClick: () => setDeleteDialogOpen(true),
|
|
7368
7349
|
disabled: isDeleting,
|
|
7369
7350
|
children: isDeleting ? "Deleting..." : "Delete"
|
|
@@ -7423,7 +7404,7 @@ ${combined}` : combined;
|
|
|
7423
7404
|
{
|
|
7424
7405
|
size: "small",
|
|
7425
7406
|
variant: "outlined",
|
|
7426
|
-
startIcon: /* @__PURE__ */ jsx8(
|
|
7407
|
+
startIcon: /* @__PURE__ */ jsx8(UploadFileIcon, {}),
|
|
7427
7408
|
onClick: () => createFileInputRef.current?.click(),
|
|
7428
7409
|
disabled: !canManage,
|
|
7429
7410
|
children: "Import .md files"
|
|
@@ -7603,7 +7584,7 @@ var KnowledgeHubTab = (props) => {
|
|
|
7603
7584
|
/* @__PURE__ */ jsx9(
|
|
7604
7585
|
Tab2,
|
|
7605
7586
|
{
|
|
7606
|
-
icon: /* @__PURE__ */ jsx9(
|
|
7587
|
+
icon: /* @__PURE__ */ jsx9(DescriptionIcon, { fontSize: isMobile ? "small" : "medium" }),
|
|
7607
7588
|
iconPosition: isMobile ? "top" : "start",
|
|
7608
7589
|
label: "Documents"
|
|
7609
7590
|
}
|
|
@@ -7653,19 +7634,6 @@ import {
|
|
|
7653
7634
|
Snackbar as Snackbar4,
|
|
7654
7635
|
useTheme as useTheme7
|
|
7655
7636
|
} from "@mui/material";
|
|
7656
|
-
import StorageIcon from "@mui/icons-material/Storage";
|
|
7657
|
-
import DeleteIcon4 from "@mui/icons-material/Delete";
|
|
7658
|
-
import RefreshIcon3 from "@mui/icons-material/Refresh";
|
|
7659
|
-
import WarningIcon from "@mui/icons-material/Warning";
|
|
7660
|
-
import InfoIcon from "@mui/icons-material/Info";
|
|
7661
|
-
import CleaningServicesIcon from "@mui/icons-material/CleaningServices";
|
|
7662
|
-
import DescriptionIcon4 from "@mui/icons-material/Description";
|
|
7663
|
-
import PersonIcon3 from "@mui/icons-material/Person";
|
|
7664
|
-
import ChatIcon from "@mui/icons-material/Chat";
|
|
7665
|
-
import SettingsIcon from "@mui/icons-material/Settings";
|
|
7666
|
-
import ExpandMoreIcon from "@mui/icons-material/ExpandMore";
|
|
7667
|
-
import CheckCircleIcon3 from "@mui/icons-material/CheckCircle";
|
|
7668
|
-
import ErrorIcon3 from "@mui/icons-material/Error";
|
|
7669
7637
|
import { Fragment as Fragment5, jsx as jsx10, jsxs as jsxs10 } from "react/jsx-runtime";
|
|
7670
7638
|
var DEFAULT_DISPLAY_QUOTA_BYTES = 1024 * 1024 * 1024;
|
|
7671
7639
|
var MAX_DISPLAY_QUOTA_BYTES = 5 * 1024 * 1024 * 1024;
|
|
@@ -7761,7 +7729,7 @@ var getIndexedDBSize = async () => {
|
|
|
7761
7729
|
}
|
|
7762
7730
|
categories.push({
|
|
7763
7731
|
name: "Knowledge Documents",
|
|
7764
|
-
icon:
|
|
7732
|
+
icon: DescriptionIcon,
|
|
7765
7733
|
color: "#2196f3",
|
|
7766
7734
|
size: knowledgeSize.size,
|
|
7767
7735
|
itemCount: knowledgeSize.count,
|
|
@@ -7795,7 +7763,7 @@ var getIndexedDBSize = async () => {
|
|
|
7795
7763
|
}
|
|
7796
7764
|
categories.push({
|
|
7797
7765
|
name: "AI Memories",
|
|
7798
|
-
icon:
|
|
7766
|
+
icon: PersonIcon,
|
|
7799
7767
|
color: "#ff9800",
|
|
7800
7768
|
size: memorySize.size,
|
|
7801
7769
|
itemCount: memorySize.count,
|
|
@@ -7850,7 +7818,7 @@ var getIndexedDBSize = async () => {
|
|
|
7850
7818
|
if (querySize.count > 0) {
|
|
7851
7819
|
categories.push({
|
|
7852
7820
|
name: "AI Query Cache",
|
|
7853
|
-
icon:
|
|
7821
|
+
icon: PersonIcon,
|
|
7854
7822
|
color: "#ff5722",
|
|
7855
7823
|
size: querySize.size,
|
|
7856
7824
|
itemCount: querySize.count,
|
|
@@ -8163,10 +8131,10 @@ var StorageTab = ({ currentTheme }) => {
|
|
|
8163
8131
|
},
|
|
8164
8132
|
children: [
|
|
8165
8133
|
/* @__PURE__ */ jsxs10(Box10, { sx: { display: { xs: "none", sm: "flex" }, alignItems: "center", gap: 1 }, children: [
|
|
8166
|
-
/* @__PURE__ */ jsx10(
|
|
8134
|
+
/* @__PURE__ */ jsx10(RefreshIcon, { fontSize: "medium" }),
|
|
8167
8135
|
"Refresh"
|
|
8168
8136
|
] }),
|
|
8169
|
-
/* @__PURE__ */ jsx10(Box10, { sx: { display: { xs: "flex", sm: "none" }, alignItems: "center", justifyContent: "center" }, children: /* @__PURE__ */ jsx10(
|
|
8137
|
+
/* @__PURE__ */ jsx10(Box10, { sx: { display: { xs: "flex", sm: "none" }, alignItems: "center", justifyContent: "center" }, children: /* @__PURE__ */ jsx10(RefreshIcon, { fontSize: "medium" }) })
|
|
8170
8138
|
]
|
|
8171
8139
|
}
|
|
8172
8140
|
),
|
|
@@ -8196,7 +8164,7 @@ var StorageTab = ({ currentTheme }) => {
|
|
|
8196
8164
|
variant: "outlined",
|
|
8197
8165
|
color: "error",
|
|
8198
8166
|
size: "small",
|
|
8199
|
-
startIcon: /* @__PURE__ */ jsx10(
|
|
8167
|
+
startIcon: /* @__PURE__ */ jsx10(DeleteIcon, { sx: { display: { xs: "none", sm: "inline-flex" } } }),
|
|
8200
8168
|
onClick: () => handleNuclearClear(),
|
|
8201
8169
|
sx: {
|
|
8202
8170
|
minWidth: { xs: "auto", sm: "fit-content" },
|
|
@@ -8415,7 +8383,7 @@ var StorageTab = ({ currentTheme }) => {
|
|
|
8415
8383
|
variant: "outlined",
|
|
8416
8384
|
color: "error",
|
|
8417
8385
|
size: "small",
|
|
8418
|
-
startIcon: /* @__PURE__ */ jsx10(
|
|
8386
|
+
startIcon: /* @__PURE__ */ jsx10(DeleteIcon, {}),
|
|
8419
8387
|
onClick: () => setClearCategoryDialog(category),
|
|
8420
8388
|
disabled: clearing,
|
|
8421
8389
|
children: [
|
|
@@ -8437,7 +8405,7 @@ var StorageTab = ({ currentTheme }) => {
|
|
|
8437
8405
|
/* @__PURE__ */ jsxs10(List2, { children: [
|
|
8438
8406
|
/* @__PURE__ */ jsxs10(ListItem, { children: [
|
|
8439
8407
|
/* @__PURE__ */ jsx10(ListItemIcon, { children: /* @__PURE__ */ jsx10(
|
|
8440
|
-
|
|
8408
|
+
CheckCircleIcon,
|
|
8441
8409
|
{
|
|
8442
8410
|
sx: {
|
|
8443
8411
|
color: syncFeaturesActive ? theme.palette.warning.main : theme.palette.success.main
|
|
@@ -8463,7 +8431,7 @@ var StorageTab = ({ currentTheme }) => {
|
|
|
8463
8431
|
)
|
|
8464
8432
|
] }),
|
|
8465
8433
|
/* @__PURE__ */ jsxs10(ListItem, { children: [
|
|
8466
|
-
/* @__PURE__ */ jsx10(ListItemIcon, { children: /* @__PURE__ */ jsx10(
|
|
8434
|
+
/* @__PURE__ */ jsx10(ListItemIcon, { children: /* @__PURE__ */ jsx10(DeleteIcon, { color: "error" }) }),
|
|
8467
8435
|
/* @__PURE__ */ jsx10(
|
|
8468
8436
|
ListItemText,
|
|
8469
8437
|
{
|
|
@@ -8538,7 +8506,7 @@ var StorageTab = ({ currentTheme }) => {
|
|
|
8538
8506
|
onClick: () => clearCategoryDialog && handleClearCategory(clearCategoryDialog),
|
|
8539
8507
|
color: "error",
|
|
8540
8508
|
variant: "contained",
|
|
8541
|
-
startIcon: clearing ? /* @__PURE__ */ jsx10(CircularProgress, { size: 16 }) : /* @__PURE__ */ jsx10(
|
|
8509
|
+
startIcon: clearing ? /* @__PURE__ */ jsx10(CircularProgress, { size: 16 }) : /* @__PURE__ */ jsx10(DeleteIcon, {}),
|
|
8542
8510
|
disabled: clearing,
|
|
8543
8511
|
children: clearing ? "Clearing..." : "Clear Data"
|
|
8544
8512
|
}
|
|
@@ -8556,7 +8524,7 @@ var StorageTab = ({ currentTheme }) => {
|
|
|
8556
8524
|
fullWidth: true,
|
|
8557
8525
|
children: [
|
|
8558
8526
|
/* @__PURE__ */ jsx10(DialogTitle6, { children: /* @__PURE__ */ jsxs10(Box10, { sx: { display: "flex", alignItems: "center", gap: 1 }, children: [
|
|
8559
|
-
/* @__PURE__ */ jsx10(
|
|
8527
|
+
/* @__PURE__ */ jsx10(ErrorIcon, { color: "error" }),
|
|
8560
8528
|
"Clear All Storage Data?"
|
|
8561
8529
|
] }) }),
|
|
8562
8530
|
/* @__PURE__ */ jsxs10(DialogContent7, { children: [
|
|
@@ -9255,10 +9223,6 @@ var ProviderTab = () => {
|
|
|
9255
9223
|
// src/management/components/MCPToolsTabV2.tsx
|
|
9256
9224
|
import { useEffect as useEffect10, useMemo as useMemo5, useState as useState13 } from "react";
|
|
9257
9225
|
import { Box as Box12, Typography as Typography11, Paper as Paper6, Chip as Chip9, Stack as Stack5, IconButton as IconButton6, Tooltip as Tooltip3, LinearProgress as LinearProgress5, Switch as Switch3, FormControlLabel as FormControlLabel2 } from "@mui/material";
|
|
9258
|
-
import RefreshIcon4 from "@mui/icons-material/Refresh";
|
|
9259
|
-
import HealthAndSafetyIcon from "@mui/icons-material/HealthAndSafety";
|
|
9260
|
-
import ErrorOutlineIcon from "@mui/icons-material/ErrorOutline";
|
|
9261
|
-
import SettingsIcon2 from "@mui/icons-material/Settings";
|
|
9262
9226
|
|
|
9263
9227
|
// src/services/mcp/mcpControllerService.ts
|
|
9264
9228
|
var isPlaygroundMode = () => {
|
|
@@ -9420,7 +9384,7 @@ var MCPToolsTabV2 = () => {
|
|
|
9420
9384
|
return /* @__PURE__ */ jsxs12(Box12, { children: [
|
|
9421
9385
|
/* @__PURE__ */ jsxs12(Box12, { sx: { display: "flex", alignItems: "center", justifyContent: "space-between", mb: 2 }, children: [
|
|
9422
9386
|
/* @__PURE__ */ jsx12(Typography11, { variant: "h5", sx: { fontWeight: 600, color: "primary.main" }, children: "Available Tools" }),
|
|
9423
|
-
/* @__PURE__ */ jsx12(Box12, { children: /* @__PURE__ */ jsx12(Tooltip3, { title: "Refresh", children: /* @__PURE__ */ jsx12(IconButton6, { onClick: refresh, children: /* @__PURE__ */ jsx12(
|
|
9387
|
+
/* @__PURE__ */ jsx12(Box12, { children: /* @__PURE__ */ jsx12(Tooltip3, { title: "Refresh", children: /* @__PURE__ */ jsx12(IconButton6, { onClick: refresh, children: /* @__PURE__ */ jsx12(RefreshIcon, {}) }) }) })
|
|
9424
9388
|
] }),
|
|
9425
9389
|
!gatewayConfigured && /* @__PURE__ */ jsx12(Paper6, { sx: { p: 2, mb: 2 }, children: /* @__PURE__ */ jsx12(Typography11, { variant: "body2", color: "text.secondary", children: "Gateway API URL isn\u2019t configured. The controller endpoints will be fetched relative to this origin." }) }),
|
|
9426
9390
|
/* @__PURE__ */ jsx12(Paper6, { sx: { p: 2, mb: 2 }, children: /* @__PURE__ */ jsxs12(Box12, { sx: { display: "flex", alignItems: "center", gap: 1 }, children: [
|
|
@@ -9480,7 +9444,7 @@ var MCPToolsTabV2 = () => {
|
|
|
9480
9444
|
label: locallyEnabled ? "Enabled" : "Disabled"
|
|
9481
9445
|
}
|
|
9482
9446
|
),
|
|
9483
|
-
/* @__PURE__ */ jsx12(Tooltip3, { title: "Controller-driven tools (read-only schema)", children: /* @__PURE__ */ jsx12(
|
|
9447
|
+
/* @__PURE__ */ jsx12(Tooltip3, { title: "Controller-driven tools (read-only schema)", children: /* @__PURE__ */ jsx12(SettingsIcon, { color: "disabled" }) })
|
|
9484
9448
|
] })
|
|
9485
9449
|
] }),
|
|
9486
9450
|
!!tool.supportedParameters?.length && /* @__PURE__ */ jsxs12(Box12, { sx: { mt: 1.5 }, children: [
|
|
@@ -9495,7 +9459,7 @@ var MCPToolsTabV2_default = MCPToolsTabV2;
|
|
|
9495
9459
|
|
|
9496
9460
|
// src/management/management.tsx
|
|
9497
9461
|
import { jsx as jsx13, jsxs as jsxs13 } from "react/jsx-runtime";
|
|
9498
|
-
var preloadChatPage = () => import("./chat-
|
|
9462
|
+
var preloadChatPage = () => import("./chat-IDE6Z4Q4.mjs");
|
|
9499
9463
|
var buildCapabilitiesUrl = (gatewayApiUrl) => {
|
|
9500
9464
|
const trimmed = gatewayApiUrl.replace(/\/$/, "");
|
|
9501
9465
|
if (trimmed.endsWith("/api")) {
|
|
@@ -10284,7 +10248,7 @@ var Management = () => {
|
|
|
10284
10248
|
},
|
|
10285
10249
|
{
|
|
10286
10250
|
label: "Storage",
|
|
10287
|
-
icon: /* @__PURE__ */ jsx13(
|
|
10251
|
+
icon: /* @__PURE__ */ jsx13(StorageIcon, {}),
|
|
10288
10252
|
requiresFeature: "limitedAdminDashboard"
|
|
10289
10253
|
// Available to premium+ (changed from adminDashboardEnabled)
|
|
10290
10254
|
},
|
|
@@ -10840,4 +10804,4 @@ export {
|
|
|
10840
10804
|
useGatewayMemory,
|
|
10841
10805
|
management_default
|
|
10842
10806
|
};
|
|
10843
|
-
//# sourceMappingURL=chunk-
|
|
10807
|
+
//# sourceMappingURL=chunk-NP2OHTTX.mjs.map
|