@burtson-labs/bandit-engine 2.0.84 → 2.0.85

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 (33) hide show
  1. package/dist/{chat-OY5CLOBW.mjs → chat-ASHS5XCL.mjs} +6 -6
  2. package/dist/chat-provider.js.map +1 -1
  3. package/dist/chat-provider.mjs +4 -4
  4. package/dist/{chunk-RVKERD5O.mjs → chunk-B2HUBOJ6.mjs} +11 -5
  5. package/dist/chunk-B2HUBOJ6.mjs.map +1 -0
  6. package/dist/{chunk-57L7TXB6.mjs → chunk-GNTQR7L6.mjs} +2 -2
  7. package/dist/{chunk-6ITUH375.mjs → chunk-I4QUXTIM.mjs} +2 -2
  8. package/dist/{chunk-YYYEMVBV.mjs → chunk-OHDMP7FI.mjs} +2 -2
  9. package/dist/{chunk-3QYZOCIW.mjs → chunk-R64BOUIU.mjs} +8 -8
  10. package/dist/{chunk-OPN32F2X.mjs → chunk-TETTI3QV.mjs} +4 -4
  11. package/dist/{chunk-3LT77723.mjs → chunk-WQLKBI3Y.mjs} +2 -2
  12. package/dist/{chunk-5DSDARPR.mjs → chunk-XHPSNERM.mjs} +3 -3
  13. package/dist/{chunk-4D7245ZO.mjs → chunk-ZLBREJKH.mjs} +16 -1
  14. package/dist/chunk-ZLBREJKH.mjs.map +1 -0
  15. package/dist/index.js +20 -1
  16. package/dist/index.js.map +1 -1
  17. package/dist/index.mjs +9 -9
  18. package/dist/management/management.js +20 -1
  19. package/dist/management/management.js.map +1 -1
  20. package/dist/management/management.mjs +7 -7
  21. package/dist/modals/chat-modal/chat-modal.js.map +1 -1
  22. package/dist/modals/chat-modal/chat-modal.mjs +3 -3
  23. package/package.json +1 -1
  24. package/dist/chunk-4D7245ZO.mjs.map +0 -1
  25. package/dist/chunk-RVKERD5O.mjs.map +0 -1
  26. /package/dist/{chat-OY5CLOBW.mjs.map → chat-ASHS5XCL.mjs.map} +0 -0
  27. /package/dist/{chunk-57L7TXB6.mjs.map → chunk-GNTQR7L6.mjs.map} +0 -0
  28. /package/dist/{chunk-6ITUH375.mjs.map → chunk-I4QUXTIM.mjs.map} +0 -0
  29. /package/dist/{chunk-YYYEMVBV.mjs.map → chunk-OHDMP7FI.mjs.map} +0 -0
  30. /package/dist/{chunk-3QYZOCIW.mjs.map → chunk-R64BOUIU.mjs.map} +0 -0
  31. /package/dist/{chunk-OPN32F2X.mjs.map → chunk-TETTI3QV.mjs.map} +0 -0
  32. /package/dist/{chunk-3LT77723.mjs.map → chunk-WQLKBI3Y.mjs.map} +0 -0
  33. /package/dist/{chunk-5DSDARPR.mjs.map → chunk-XHPSNERM.mjs.map} +0 -0
@@ -7,7 +7,7 @@ import {
7
7
  useMemoryStore,
8
8
  useNotification,
9
9
  useVectorStore
10
- } from "./chunk-4D7245ZO.mjs";
10
+ } from "./chunk-ZLBREJKH.mjs";
11
11
  import {
12
12
  useModelStore,
13
13
  usePackageSettingsStore,
@@ -9006,4 +9006,4 @@ export {
9006
9006
  FeedbackButton,
9007
9007
  useNotificationService
9008
9008
  };
9009
- //# sourceMappingURL=chunk-57L7TXB6.mjs.map
9009
+ //# sourceMappingURL=chunk-GNTQR7L6.mjs.map
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  authenticationService
3
- } from "./chunk-4D7245ZO.mjs";
3
+ } from "./chunk-ZLBREJKH.mjs";
4
4
  import {
5
5
  indexedDBService_default,
6
6
  usePackageSettingsStore
@@ -287,4 +287,4 @@ var aiProviderInitService = AIProviderInitService.getInstance();
287
287
  export {
288
288
  aiProviderInitService
289
289
  };
290
- //# sourceMappingURL=chunk-6ITUH375.mjs.map
290
+ //# sourceMappingURL=chunk-I4QUXTIM.mjs.map
@@ -4,7 +4,7 @@ import {
4
4
  getHighlightTree,
5
5
  markdownSanitizeSchema,
6
6
  renderLowlightChildren
7
- } from "./chunk-57L7TXB6.mjs";
7
+ } from "./chunk-GNTQR7L6.mjs";
8
8
 
9
9
  // src/components/StreamingMarkdown.tsx
10
10
  import React, { useEffect, useMemo, useRef, useState } from "react";
@@ -495,4 +495,4 @@ var StreamingMarkdown_default = React.memo(StreamingMarkdown, arePropsEqual);
495
495
  export {
496
496
  StreamingMarkdown_default
497
497
  };
498
- //# sourceMappingURL=chunk-YYYEMVBV.mjs.map
498
+ //# sourceMappingURL=chunk-OHDMP7FI.mjs.map
@@ -1,9 +1,9 @@
1
1
  import {
2
2
  StreamingMarkdown_default
3
- } from "./chunk-YYYEMVBV.mjs";
3
+ } from "./chunk-OHDMP7FI.mjs";
4
4
  import {
5
5
  aiProviderInitService
6
- } from "./chunk-6ITUH375.mjs";
6
+ } from "./chunk-I4QUXTIM.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-3LT77723.mjs";
14
+ } from "./chunk-WQLKBI3Y.mjs";
15
15
  import {
16
16
  chat_modal_default
17
- } from "./chunk-5DSDARPR.mjs";
17
+ } from "./chunk-XHPSNERM.mjs";
18
18
  import {
19
19
  AddIcon,
20
20
  ArchiveIcon,
@@ -86,7 +86,7 @@ import {
86
86
  predefinedThemes,
87
87
  useNotificationService,
88
88
  useVoiceStore
89
- } from "./chunk-57L7TXB6.mjs";
89
+ } from "./chunk-GNTQR7L6.mjs";
90
90
  import {
91
91
  TOPICS,
92
92
  authenticationService,
@@ -100,7 +100,7 @@ import {
100
100
  useFeatures,
101
101
  useKnowledgeStore2 as useKnowledgeStore,
102
102
  useVectorStore
103
- } from "./chunk-4D7245ZO.mjs";
103
+ } from "./chunk-ZLBREJKH.mjs";
104
104
  import {
105
105
  indexedDBService_default,
106
106
  models,
@@ -9741,7 +9741,7 @@ var MCPToolsTabV2_default = MCPToolsTabV2;
9741
9741
 
9742
9742
  // src/management/management.tsx
9743
9743
  import { jsx as jsx14, jsxs as jsxs14 } from "react/jsx-runtime";
9744
- var preloadChatPage = () => import("./chat-OY5CLOBW.mjs");
9744
+ var preloadChatPage = () => import("./chat-ASHS5XCL.mjs");
9745
9745
  var buildCapabilitiesUrl = (gatewayApiUrl) => {
9746
9746
  const trimmed = gatewayApiUrl.replace(/\/$/, "");
9747
9747
  if (trimmed.endsWith("/api")) {
@@ -11107,4 +11107,4 @@ export {
11107
11107
  useGatewayMemory,
11108
11108
  management_default
11109
11109
  };
11110
- //# sourceMappingURL=chunk-3QYZOCIW.mjs.map
11110
+ //# sourceMappingURL=chunk-R64BOUIU.mjs.map
@@ -3,10 +3,10 @@ import {
3
3
  } from "./chunk-ONQMRE2G.mjs";
4
4
  import {
5
5
  aiProviderInitService
6
- } from "./chunk-6ITUH375.mjs";
6
+ } from "./chunk-I4QUXTIM.mjs";
7
7
  import {
8
8
  useMCPToolsStore
9
- } from "./chunk-3LT77723.mjs";
9
+ } from "./chunk-WQLKBI3Y.mjs";
10
10
  import {
11
11
  AUTH_TOKEN_CHANGED_EVENT,
12
12
  FeatureFlagProvider,
@@ -21,7 +21,7 @@ import {
21
21
  useKnowledgeStore2,
22
22
  useMemoryStore,
23
23
  useProjectStore
24
- } from "./chunk-4D7245ZO.mjs";
24
+ } from "./chunk-ZLBREJKH.mjs";
25
25
  import {
26
26
  indexedDBService_default,
27
27
  useModelStore,
@@ -189,4 +189,4 @@ export {
189
189
  ChatProvider,
190
190
  chat_provider_default
191
191
  };
192
- //# sourceMappingURL=chunk-OPN32F2X.mjs.map
192
+ //# sourceMappingURL=chunk-TETTI3QV.mjs.map
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  authenticationService
3
- } from "./chunk-4D7245ZO.mjs";
3
+ } from "./chunk-ZLBREJKH.mjs";
4
4
  import {
5
5
  indexedDBService_default,
6
6
  usePackageSettingsStore
@@ -310,4 +310,4 @@ export {
310
310
  discoverMcpTools,
311
311
  useMCPToolsStore
312
312
  };
313
- //# sourceMappingURL=chunk-3LT77723.mjs.map
313
+ //# sourceMappingURL=chunk-WQLKBI3Y.mjs.map
@@ -24,14 +24,14 @@ import {
24
24
  useNotificationService,
25
25
  useTTS,
26
26
  useVoiceStore
27
- } from "./chunk-57L7TXB6.mjs";
27
+ } from "./chunk-GNTQR7L6.mjs";
28
28
  import {
29
29
  brandingService_default,
30
30
  toTitleCase,
31
31
  useAIQueryStore,
32
32
  useConversationStore,
33
33
  useMemoryStore
34
- } from "./chunk-4D7245ZO.mjs";
34
+ } from "./chunk-ZLBREJKH.mjs";
35
35
  import {
36
36
  indexedDBService_default,
37
37
  useModelStore,
@@ -2803,4 +2803,4 @@ export {
2803
2803
  MAX_WINDOWED_HEIGHT,
2804
2804
  chat_modal_default
2805
2805
  };
2806
- //# sourceMappingURL=chunk-5DSDARPR.mjs.map
2806
+ //# sourceMappingURL=chunk-XHPSNERM.mjs.map
@@ -60,6 +60,20 @@ var useAuthenticationStore = create((set) => ({
60
60
  set({ token: null, authError: null, user: null });
61
61
  }
62
62
  }));
63
+ var readPersistedToken = () => {
64
+ try {
65
+ const raw = localStorage.getItem(TOKEN_KEY);
66
+ if (!raw) return null;
67
+ const base64 = raw.split(".")[1].replace(/-/g, "+").replace(/_/g, "/");
68
+ const json = decodeURIComponent(
69
+ atob(base64).split("").map((c) => "%" + ("00" + c.charCodeAt(0).toString(16)).slice(-2)).join("")
70
+ );
71
+ const decoded = JSON.parse(json);
72
+ return decoded.exp * 1e3 > Date.now() ? raw : null;
73
+ } catch {
74
+ return null;
75
+ }
76
+ };
63
77
 
64
78
  // src/services/auth/authenticationService.ts
65
79
  var TOKEN_KEY2 = "authToken";
@@ -5908,6 +5922,7 @@ var NotificationProvider = ({
5908
5922
 
5909
5923
  export {
5910
5924
  useAuthenticationStore,
5925
+ readPersistedToken,
5911
5926
  AUTH_TOKEN_CHANGED_EVENT,
5912
5927
  authenticationService,
5913
5928
  useAIQueryStore,
@@ -5949,4 +5964,4 @@ export {
5949
5964
  useNotification,
5950
5965
  NotificationProvider
5951
5966
  };
5952
- //# sourceMappingURL=chunk-4D7245ZO.mjs.map
5967
+ //# sourceMappingURL=chunk-ZLBREJKH.mjs.map