@burtson-labs/bandit-engine 2.0.50 → 2.0.51

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.
Files changed (35) hide show
  1. package/dist/{chat-CQWZOJH4.mjs → chat-W5IFNEUC.mjs} +5 -5
  2. package/dist/chat-provider.js +29 -14
  3. package/dist/chat-provider.js.map +1 -1
  4. package/dist/chat-provider.mjs +3 -3
  5. package/dist/{chunk-VL3CMSDO.mjs → chunk-EWUUF4GE.mjs} +2 -2
  6. package/dist/{chunk-AXFX2HUK.mjs → chunk-HETIHZ42.mjs} +2 -2
  7. package/dist/{chunk-6WZUQHZT.mjs → chunk-IDH2YOW3.mjs} +30 -15
  8. package/dist/chunk-IDH2YOW3.mjs.map +1 -0
  9. package/dist/{chunk-ZTTGERUG.mjs → chunk-JBXNXSAH.mjs} +7 -7
  10. package/dist/{chunk-TVF45U7B.mjs → chunk-LXD3IV6Z.mjs} +3 -3
  11. package/dist/{chunk-KHKWYHXD.mjs → chunk-N7RMUOFB.mjs} +2 -2
  12. package/dist/{chunk-HKJTRBWC.mjs → chunk-QFSEZAG6.mjs} +3 -3
  13. package/dist/{chunk-Q2N7CCZI.mjs → chunk-STMXPFAQ.mjs} +45 -6
  14. package/dist/chunk-STMXPFAQ.mjs.map +1 -0
  15. package/dist/cli.js +1 -1
  16. package/dist/cli.js.map +1 -1
  17. package/dist/index.js +69 -15
  18. package/dist/index.js.map +1 -1
  19. package/dist/index.mjs +8 -8
  20. package/dist/management/management.js +69 -15
  21. package/dist/management/management.js.map +1 -1
  22. package/dist/management/management.mjs +6 -6
  23. package/dist/modals/chat-modal/chat-modal.js +29 -14
  24. package/dist/modals/chat-modal/chat-modal.js.map +1 -1
  25. package/dist/modals/chat-modal/chat-modal.mjs +3 -3
  26. package/package.json +1 -1
  27. package/dist/chunk-6WZUQHZT.mjs.map +0 -1
  28. package/dist/chunk-Q2N7CCZI.mjs.map +0 -1
  29. /package/dist/{chat-CQWZOJH4.mjs.map → chat-W5IFNEUC.mjs.map} +0 -0
  30. /package/dist/{chunk-VL3CMSDO.mjs.map → chunk-EWUUF4GE.mjs.map} +0 -0
  31. /package/dist/{chunk-AXFX2HUK.mjs.map → chunk-HETIHZ42.mjs.map} +0 -0
  32. /package/dist/{chunk-ZTTGERUG.mjs.map → chunk-JBXNXSAH.mjs.map} +0 -0
  33. /package/dist/{chunk-TVF45U7B.mjs.map → chunk-LXD3IV6Z.mjs.map} +0 -0
  34. /package/dist/{chunk-KHKWYHXD.mjs.map → chunk-N7RMUOFB.mjs.map} +0 -0
  35. /package/dist/{chunk-HKJTRBWC.mjs.map → chunk-QFSEZAG6.mjs.map} +0 -0
@@ -1,15 +1,15 @@
1
1
  import {
2
2
  StreamingMarkdown_default
3
- } from "./chunk-KHKWYHXD.mjs";
3
+ } from "./chunk-N7RMUOFB.mjs";
4
4
  import {
5
5
  aiProviderInitService
6
- } from "./chunk-VL3CMSDO.mjs";
6
+ } from "./chunk-EWUUF4GE.mjs";
7
7
  import {
8
8
  useMCPToolsStore
9
9
  } from "./chunk-EHNWQ4T3.mjs";
10
10
  import {
11
11
  chat_modal_default
12
- } from "./chunk-TVF45U7B.mjs";
12
+ } from "./chunk-LXD3IV6Z.mjs";
13
13
  import {
14
14
  DocumentCard_default,
15
15
  banditDarkTheme,
@@ -17,7 +17,7 @@ import {
17
17
  predefinedThemes,
18
18
  useNotificationService,
19
19
  useVoiceStore
20
- } from "./chunk-AXFX2HUK.mjs";
20
+ } from "./chunk-HETIHZ42.mjs";
21
21
  import {
22
22
  authenticationService,
23
23
  brandingService_default,
@@ -30,7 +30,7 @@ import {
30
30
  useFeatures,
31
31
  useKnowledgeStore2 as useKnowledgeStore,
32
32
  useVectorStore
33
- } from "./chunk-6WZUQHZT.mjs";
33
+ } from "./chunk-IDH2YOW3.mjs";
34
34
  import {
35
35
  indexedDBService_default,
36
36
  models,
@@ -9286,7 +9286,7 @@ var MCPToolsTabV2_default = MCPToolsTabV2;
9286
9286
 
9287
9287
  // src/management/management.tsx
9288
9288
  import { jsx as jsx13, jsxs as jsxs13 } from "react/jsx-runtime";
9289
- var preloadChatPage = () => import("./chat-CQWZOJH4.mjs");
9289
+ var preloadChatPage = () => import("./chat-W5IFNEUC.mjs");
9290
9290
  var buildCapabilitiesUrl = (gatewayApiUrl) => {
9291
9291
  const trimmed = gatewayApiUrl.replace(/\/$/, "");
9292
9292
  if (trimmed.endsWith("/api")) {
@@ -10561,4 +10561,4 @@ export {
10561
10561
  useGatewayMemory,
10562
10562
  management_default
10563
10563
  };
10564
- //# sourceMappingURL=chunk-ZTTGERUG.mjs.map
10564
+ //# sourceMappingURL=chunk-JBXNXSAH.mjs.map
@@ -8,14 +8,14 @@ import {
8
8
  useNotificationService,
9
9
  useTTS,
10
10
  useVoiceStore
11
- } from "./chunk-AXFX2HUK.mjs";
11
+ } from "./chunk-HETIHZ42.mjs";
12
12
  import {
13
13
  brandingService_default,
14
14
  toTitleCase,
15
15
  useAIQueryStore,
16
16
  useConversationStore,
17
17
  useMemoryStore
18
- } from "./chunk-6WZUQHZT.mjs";
18
+ } from "./chunk-IDH2YOW3.mjs";
19
19
  import {
20
20
  indexedDBService_default,
21
21
  useModelStore,
@@ -2807,4 +2807,4 @@ export {
2807
2807
  MAX_WINDOWED_HEIGHT,
2808
2808
  chat_modal_default
2809
2809
  };
2810
- //# sourceMappingURL=chunk-TVF45U7B.mjs.map
2810
+ //# sourceMappingURL=chunk-LXD3IV6Z.mjs.map
@@ -2,7 +2,7 @@ import {
2
2
  getHighlightTree,
3
3
  markdownSanitizeSchema,
4
4
  renderLowlightChildren
5
- } from "./chunk-AXFX2HUK.mjs";
5
+ } from "./chunk-HETIHZ42.mjs";
6
6
 
7
7
  // src/components/StreamingMarkdown.tsx
8
8
  import React, { useEffect, useMemo, useRef, useState } from "react";
@@ -479,4 +479,4 @@ var StreamingMarkdown_default = StreamingMarkdown;
479
479
  export {
480
480
  StreamingMarkdown_default
481
481
  };
482
- //# sourceMappingURL=chunk-KHKWYHXD.mjs.map
482
+ //# sourceMappingURL=chunk-N7RMUOFB.mjs.map
@@ -3,7 +3,7 @@ import {
3
3
  } from "./chunk-ONQMRE2G.mjs";
4
4
  import {
5
5
  aiProviderInitService
6
- } from "./chunk-VL3CMSDO.mjs";
6
+ } from "./chunk-EWUUF4GE.mjs";
7
7
  import {
8
8
  useMCPToolsStore
9
9
  } from "./chunk-EHNWQ4T3.mjs";
@@ -20,7 +20,7 @@ import {
20
20
  useKnowledgeStore2,
21
21
  useMemoryStore,
22
22
  useProjectStore
23
- } from "./chunk-6WZUQHZT.mjs";
23
+ } from "./chunk-IDH2YOW3.mjs";
24
24
  import {
25
25
  indexedDBService_default,
26
26
  useModelStore,
@@ -157,4 +157,4 @@ export {
157
157
  ChatProvider,
158
158
  chat_provider_default
159
159
  };
160
- //# sourceMappingURL=chunk-HKJTRBWC.mjs.map
160
+ //# sourceMappingURL=chunk-QFSEZAG6.mjs.map
@@ -3,7 +3,7 @@ import {
3
3
  } from "./chunk-ONQMRE2G.mjs";
4
4
  import {
5
5
  StreamingMarkdown_default
6
- } from "./chunk-KHKWYHXD.mjs";
6
+ } from "./chunk-N7RMUOFB.mjs";
7
7
  import {
8
8
  useMCPToolsStore
9
9
  } from "./chunk-EHNWQ4T3.mjs";
@@ -19,7 +19,7 @@ import {
19
19
  useNotificationService,
20
20
  useTTS,
21
21
  useVoiceStore
22
- } from "./chunk-AXFX2HUK.mjs";
22
+ } from "./chunk-HETIHZ42.mjs";
23
23
  import {
24
24
  authenticationService,
25
25
  brandingService_default,
@@ -44,7 +44,7 @@ import {
44
44
  useMemoryStore,
45
45
  useProjectStore,
46
46
  useVectorStore
47
- } from "./chunk-6WZUQHZT.mjs";
47
+ } from "./chunk-IDH2YOW3.mjs";
48
48
  import {
49
49
  indexedDBService_default,
50
50
  useModelStore,
@@ -146,7 +146,7 @@ var Logo = ({ visible, atTop = false }) => {
146
146
  var custom_logo_default = Logo;
147
147
 
148
148
  // src/chat/chat.tsx
149
- import { Box as Box14, ThemeProvider, CssBaseline } from "@mui/material";
149
+ import { Box as Box14, ThemeProvider, CssBaseline, CircularProgress as CircularProgress4, Typography as Typography10 } from "@mui/material";
150
150
  import { createTheme } from "@mui/material/styles";
151
151
  import { Navigate } from "react-router-dom";
152
152
 
@@ -8218,6 +8218,22 @@ var ChatContent = () => {
8218
8218
  }, 500);
8219
8219
  }
8220
8220
  }, [history, pendingMessage]);
8221
+ useEffect14(() => {
8222
+ if (!brandingLoading && !themeLoading) {
8223
+ return;
8224
+ }
8225
+ const timeoutId = window.setTimeout(() => {
8226
+ if (brandingLoading || themeLoading) {
8227
+ debugLogger.warn("Chat: branding/theme load timed out, falling back to defaults");
8228
+ setBrandingLoading(false);
8229
+ setThemeLoading(false);
8230
+ if (!selectedTheme) {
8231
+ setSelectedTheme("bandit-dark");
8232
+ }
8233
+ }
8234
+ }, 2500);
8235
+ return () => window.clearTimeout(timeoutId);
8236
+ }, [brandingLoading, themeLoading, selectedTheme]);
8221
8237
  useEffect14(() => () => {
8222
8238
  if (logoFadeTimeoutRef.current) {
8223
8239
  window.clearTimeout(logoFadeTimeoutRef.current);
@@ -8935,7 +8951,30 @@ var ChatContent = () => {
8935
8951
  requestAnimationFrame(pump);
8936
8952
  }
8937
8953
  };
8938
- if (!hydrated || brandingLoading || themeLoading) return null;
8954
+ if (!hydrated || brandingLoading || themeLoading) {
8955
+ return /* @__PURE__ */ jsxs12(ThemeProvider, { theme: banditTheme, children: [
8956
+ /* @__PURE__ */ jsx17(CssBaseline, {}),
8957
+ /* @__PURE__ */ jsxs12(
8958
+ Box14,
8959
+ {
8960
+ sx: (theme) => ({
8961
+ minHeight: "100dvh",
8962
+ display: "flex",
8963
+ alignItems: "center",
8964
+ justifyContent: "center",
8965
+ flexDirection: "column",
8966
+ gap: 1.5,
8967
+ bgcolor: theme.palette.chat.shell,
8968
+ color: theme.palette.text.primary
8969
+ }),
8970
+ children: [
8971
+ /* @__PURE__ */ jsx17(CircularProgress4, { size: 32, thickness: 4 }),
8972
+ /* @__PURE__ */ jsx17(Typography10, { variant: "body2", color: "text.secondary", children: "Preparing your workspace..." })
8973
+ ]
8974
+ }
8975
+ )
8976
+ ] });
8977
+ }
8939
8978
  const userHasAccess = playgroundBypassAccess || ossMode || claims?.roles?.includes("super-user") || claims?.roles?.includes("admin");
8940
8979
  if (!userHasAccess) {
8941
8980
  return /* @__PURE__ */ jsxs12(ThemeProvider, { theme: banditTheme, children: [
@@ -9162,4 +9201,4 @@ var chat_default = Chat;
9162
9201
  export {
9163
9202
  chat_default
9164
9203
  };
9165
- //# sourceMappingURL=chunk-Q2N7CCZI.mjs.map
9204
+ //# sourceMappingURL=chunk-STMXPFAQ.mjs.map