@burtson-labs/bandit-engine 2.0.150 → 2.0.151

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 (40) hide show
  1. package/dist/{aiProviderStore-FTD277QP.mjs → aiProviderStore-ZQ5VVVKQ.mjs} +2 -2
  2. package/dist/chat-3HV3GM5P.mjs +16 -0
  3. package/dist/chat-provider.js +5 -2
  4. package/dist/chat-provider.js.map +1 -1
  5. package/dist/chat-provider.mjs +5 -5
  6. package/dist/{chunk-7P7IS6UA.mjs → chunk-6STVJJSG.mjs} +2 -2
  7. package/dist/{chunk-K2JGFKEB.mjs → chunk-CVFFNX7H.mjs} +2 -2
  8. package/dist/{chunk-IJTDHBHP.mjs → chunk-DSYE5AHW.mjs} +9 -9
  9. package/dist/{chunk-43MLINPL.mjs → chunk-GWQRTUKF.mjs} +6 -3
  10. package/dist/chunk-GWQRTUKF.mjs.map +1 -0
  11. package/dist/{chunk-PU74BI6Y.mjs → chunk-QLATFSSO.mjs} +5 -5
  12. package/dist/{chunk-F7JXIW6T.mjs → chunk-RRCCSN3N.mjs} +2 -2
  13. package/dist/{chunk-FFVGZK5D.mjs → chunk-TYRYAAP2.mjs} +3 -3
  14. package/dist/{chunk-L37EUHMZ.mjs → chunk-U33KBX3Y.mjs} +4 -4
  15. package/dist/{chunk-NLBZZP3B.mjs → chunk-VLUXQE24.mjs} +3 -3
  16. package/dist/{chunk-YEPJ7DWZ.mjs → chunk-ZRJYLJKZ.mjs} +65 -22
  17. package/dist/chunk-ZRJYLJKZ.mjs.map +1 -0
  18. package/dist/index.js +98 -52
  19. package/dist/index.js.map +1 -1
  20. package/dist/index.mjs +10 -10
  21. package/dist/management/management.js +92 -46
  22. package/dist/management/management.js.map +1 -1
  23. package/dist/management/management.mjs +8 -8
  24. package/dist/modals/chat-modal/chat-modal.js +5 -2
  25. package/dist/modals/chat-modal/chat-modal.js.map +1 -1
  26. package/dist/modals/chat-modal/chat-modal.mjs +4 -4
  27. package/package.json +1 -1
  28. package/dist/chat-YOT2RPWD.mjs +0 -16
  29. package/dist/chunk-43MLINPL.mjs.map +0 -1
  30. package/dist/chunk-YEPJ7DWZ.mjs.map +0 -1
  31. /package/dist/{aiProviderStore-FTD277QP.mjs.map → aiProviderStore-ZQ5VVVKQ.mjs.map} +0 -0
  32. /package/dist/{chat-YOT2RPWD.mjs.map → chat-3HV3GM5P.mjs.map} +0 -0
  33. /package/dist/{chunk-7P7IS6UA.mjs.map → chunk-6STVJJSG.mjs.map} +0 -0
  34. /package/dist/{chunk-K2JGFKEB.mjs.map → chunk-CVFFNX7H.mjs.map} +0 -0
  35. /package/dist/{chunk-IJTDHBHP.mjs.map → chunk-DSYE5AHW.mjs.map} +0 -0
  36. /package/dist/{chunk-PU74BI6Y.mjs.map → chunk-QLATFSSO.mjs.map} +0 -0
  37. /package/dist/{chunk-F7JXIW6T.mjs.map → chunk-RRCCSN3N.mjs.map} +0 -0
  38. /package/dist/{chunk-FFVGZK5D.mjs.map → chunk-TYRYAAP2.mjs.map} +0 -0
  39. /package/dist/{chunk-L37EUHMZ.mjs.map → chunk-U33KBX3Y.mjs.map} +0 -0
  40. /package/dist/{chunk-NLBZZP3B.mjs.map → chunk-VLUXQE24.mjs.map} +0 -0
@@ -1,13 +1,13 @@
1
1
  import {
2
2
  ChatProvider,
3
3
  chat_provider_default
4
- } from "./chunk-PU74BI6Y.mjs";
4
+ } from "./chunk-QLATFSSO.mjs";
5
5
  import "./chunk-ONQMRE2G.mjs";
6
- import "./chunk-F7JXIW6T.mjs";
7
- import "./chunk-K2JGFKEB.mjs";
8
- import "./chunk-NLBZZP3B.mjs";
6
+ import "./chunk-RRCCSN3N.mjs";
7
+ import "./chunk-CVFFNX7H.mjs";
8
+ import "./chunk-VLUXQE24.mjs";
9
9
  import "./chunk-EORIRPPX.mjs";
10
- import "./chunk-43MLINPL.mjs";
10
+ import "./chunk-GWQRTUKF.mjs";
11
11
  import "./chunk-KCI46M23.mjs";
12
12
  import "./chunk-BJTO5JO5.mjs";
13
13
  export {
@@ -5,7 +5,7 @@ import {
5
5
  markdownSanitizeSchema,
6
6
  maybeHandleFileLinkClick,
7
7
  renderLowlightChildren
8
- } from "./chunk-FFVGZK5D.mjs";
8
+ } from "./chunk-TYRYAAP2.mjs";
9
9
 
10
10
  // src/components/StreamingMarkdown.tsx
11
11
  import React, { useEffect, useMemo, useRef, useState } from "react";
@@ -497,4 +497,4 @@ var StreamingMarkdown_default = React.memo(StreamingMarkdown, arePropsEqual);
497
497
  export {
498
498
  StreamingMarkdown_default
499
499
  };
500
- //# sourceMappingURL=chunk-7P7IS6UA.mjs.map
500
+ //# sourceMappingURL=chunk-6STVJJSG.mjs.map
@@ -4,7 +4,7 @@ import {
4
4
  } from "./chunk-EORIRPPX.mjs";
5
5
  import {
6
6
  authenticationService
7
- } from "./chunk-43MLINPL.mjs";
7
+ } from "./chunk-GWQRTUKF.mjs";
8
8
  import {
9
9
  debugLogger
10
10
  } from "./chunk-KCI46M23.mjs";
@@ -310,4 +310,4 @@ export {
310
310
  discoverMcpTools,
311
311
  useMCPToolsStore
312
312
  };
313
- //# sourceMappingURL=chunk-K2JGFKEB.mjs.map
313
+ //# sourceMappingURL=chunk-CVFFNX7H.mjs.map
@@ -1,9 +1,9 @@
1
1
  import {
2
2
  StreamingMarkdown_default
3
- } from "./chunk-7P7IS6UA.mjs";
3
+ } from "./chunk-6STVJJSG.mjs";
4
4
  import {
5
5
  aiProviderInitService
6
- } from "./chunk-F7JXIW6T.mjs";
6
+ } from "./chunk-RRCCSN3N.mjs";
7
7
  import {
8
8
  addMcpServer,
9
9
  deleteMcpServer,
@@ -11,10 +11,10 @@ import {
11
11
  listMcpServers,
12
12
  updateMcpServer,
13
13
  useMCPToolsStore
14
- } from "./chunk-K2JGFKEB.mjs";
14
+ } from "./chunk-CVFFNX7H.mjs";
15
15
  import {
16
16
  chat_modal_default
17
- } from "./chunk-L37EUHMZ.mjs";
17
+ } from "./chunk-U33KBX3Y.mjs";
18
18
  import {
19
19
  AddIcon,
20
20
  ArchiveIcon,
@@ -83,7 +83,7 @@ import {
83
83
  predefinedThemes,
84
84
  useNotificationService,
85
85
  useVoiceStore
86
- } from "./chunk-FFVGZK5D.mjs";
86
+ } from "./chunk-TYRYAAP2.mjs";
87
87
  import {
88
88
  TOPICS,
89
89
  brandingService_default,
@@ -95,7 +95,7 @@ import {
95
95
  useFeatures,
96
96
  useKnowledgeStore2 as useKnowledgeStore,
97
97
  useVectorStore
98
- } from "./chunk-NLBZZP3B.mjs";
98
+ } from "./chunk-VLUXQE24.mjs";
99
99
  import {
100
100
  indexedDBService_default,
101
101
  models,
@@ -109,7 +109,7 @@ import {
109
109
  authenticationService,
110
110
  useAIProviderStore,
111
111
  useAuthenticationStore
112
- } from "./chunk-43MLINPL.mjs";
112
+ } from "./chunk-GWQRTUKF.mjs";
113
113
  import {
114
114
  debugLogger
115
115
  } from "./chunk-KCI46M23.mjs";
@@ -9811,7 +9811,7 @@ var MCPToolsTabV2_default = MCPToolsTabV2;
9811
9811
 
9812
9812
  // src/management/management.tsx
9813
9813
  import { jsx as jsx14, jsxs as jsxs14 } from "react/jsx-runtime";
9814
- var preloadChatPage = () => import("./chat-YOT2RPWD.mjs");
9814
+ var preloadChatPage = () => import("./chat-3HV3GM5P.mjs");
9815
9815
  var buildCapabilitiesUrl = (gatewayApiUrl) => {
9816
9816
  const trimmed = gatewayApiUrl.replace(/\/$/, "");
9817
9817
  if (trimmed.endsWith("/api")) {
@@ -11184,4 +11184,4 @@ export {
11184
11184
  useGatewayMemory,
11185
11185
  management_default
11186
11186
  };
11187
- //# sourceMappingURL=chunk-IJTDHBHP.mjs.map
11187
+ //# sourceMappingURL=chunk-DSYE5AHW.mjs.map
@@ -1215,8 +1215,11 @@ var GatewayService = class {
1215
1215
  return;
1216
1216
  }
1217
1217
  const data = error.response?.data;
1218
- const code = data?.code;
1219
- if (code !== "FORCE_RELOGIN" && code !== "ACCOUNT_LOCKED") {
1218
+ let code = data?.code;
1219
+ if (status === 401 && !code) {
1220
+ code = "TOKEN_EXPIRED";
1221
+ }
1222
+ if (code !== "FORCE_RELOGIN" && code !== "ACCOUNT_LOCKED" && code !== "TOKEN_EXPIRED") {
1220
1223
  return;
1221
1224
  }
1222
1225
  try {
@@ -3108,4 +3111,4 @@ export {
3108
3111
  AIProviderFactory,
3109
3112
  useAIProviderStore
3110
3113
  };
3111
- //# sourceMappingURL=chunk-43MLINPL.mjs.map
3114
+ //# sourceMappingURL=chunk-GWQRTUKF.mjs.map