@burtson-labs/bandit-engine 2.0.151 → 2.0.153

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 (47) hide show
  1. package/dist/chat-4UZ5QT7B.mjs +16 -0
  2. package/dist/chat-provider.js +6 -30
  3. package/dist/chat-provider.js.map +1 -1
  4. package/dist/chat-provider.mjs +5 -5
  5. package/dist/{chunk-6STVJJSG.mjs → chunk-2HGBMNX4.mjs} +17 -3
  6. package/dist/chunk-2HGBMNX4.mjs.map +1 -0
  7. package/dist/{chunk-CVFFNX7H.mjs → chunk-6KOEXQJN.mjs} +8 -32
  8. package/dist/chunk-6KOEXQJN.mjs.map +1 -0
  9. package/dist/{chunk-ZRJYLJKZ.mjs → chunk-6NYYYKYZ.mjs} +267 -81
  10. package/dist/chunk-6NYYYKYZ.mjs.map +1 -0
  11. package/dist/{chunk-QLATFSSO.mjs → chunk-AJL3JOD6.mjs} +5 -5
  12. package/dist/{chunk-RRCCSN3N.mjs → chunk-B2TJZM4Z.mjs} +2 -2
  13. package/dist/{chunk-DSYE5AHW.mjs → chunk-DADHPWB7.mjs} +19 -14
  14. package/dist/chunk-DADHPWB7.mjs.map +1 -0
  15. package/dist/{chunk-U33KBX3Y.mjs → chunk-GQ3X6VPR.mjs} +4 -4
  16. package/dist/{chunk-TYRYAAP2.mjs → chunk-RN7FRSMX.mjs} +3 -3
  17. package/dist/{chunk-EORIRPPX.mjs → chunk-ZOCXFQID.mjs} +2 -2
  18. package/dist/{chunk-EORIRPPX.mjs.map → chunk-ZOCXFQID.mjs.map} +1 -1
  19. package/dist/{chunk-VLUXQE24.mjs → chunk-ZW3YNAD7.mjs} +2 -2
  20. package/dist/index.d.mts +2 -2
  21. package/dist/index.d.ts +2 -2
  22. package/dist/index.js +793 -597
  23. package/dist/index.js.map +1 -1
  24. package/dist/index.mjs +10 -10
  25. package/dist/management/management.js +492 -296
  26. package/dist/management/management.js.map +1 -1
  27. package/dist/management/management.mjs +8 -8
  28. package/dist/modals/chat-modal/chat-modal.js.map +1 -1
  29. package/dist/modals/chat-modal/chat-modal.mjs +4 -4
  30. package/dist/{modelStore-U57LUIIB.mjs → modelStore-KBUW3XAV.mjs} +2 -2
  31. package/dist/{public-20My32EB.d.mts → public-0EYmtpGD.d.mts} +8 -0
  32. package/dist/{public-20My32EB.d.ts → public-0EYmtpGD.d.ts} +8 -0
  33. package/dist/public-types.d.mts +1 -1
  34. package/dist/public-types.d.ts +1 -1
  35. package/package.json +1 -1
  36. package/dist/chat-3HV3GM5P.mjs +0 -16
  37. package/dist/chunk-6STVJJSG.mjs.map +0 -1
  38. package/dist/chunk-CVFFNX7H.mjs.map +0 -1
  39. package/dist/chunk-DSYE5AHW.mjs.map +0 -1
  40. package/dist/chunk-ZRJYLJKZ.mjs.map +0 -1
  41. /package/dist/{chat-3HV3GM5P.mjs.map → chat-4UZ5QT7B.mjs.map} +0 -0
  42. /package/dist/{chunk-QLATFSSO.mjs.map → chunk-AJL3JOD6.mjs.map} +0 -0
  43. /package/dist/{chunk-RRCCSN3N.mjs.map → chunk-B2TJZM4Z.mjs.map} +0 -0
  44. /package/dist/{chunk-U33KBX3Y.mjs.map → chunk-GQ3X6VPR.mjs.map} +0 -0
  45. /package/dist/{chunk-TYRYAAP2.mjs.map → chunk-RN7FRSMX.mjs.map} +0 -0
  46. /package/dist/{chunk-VLUXQE24.mjs.map → chunk-ZW3YNAD7.mjs.map} +0 -0
  47. /package/dist/{modelStore-U57LUIIB.mjs.map → modelStore-KBUW3XAV.mjs.map} +0 -0
@@ -3,10 +3,10 @@ import {
3
3
  } from "./chunk-ONQMRE2G.mjs";
4
4
  import {
5
5
  aiProviderInitService
6
- } from "./chunk-RRCCSN3N.mjs";
6
+ } from "./chunk-B2TJZM4Z.mjs";
7
7
  import {
8
8
  useMCPToolsStore
9
- } from "./chunk-CVFFNX7H.mjs";
9
+ } from "./chunk-6KOEXQJN.mjs";
10
10
  import {
11
11
  FeatureFlagProvider,
12
12
  NotificationProvider,
@@ -19,13 +19,13 @@ import {
19
19
  useKnowledgeStore2,
20
20
  useMemoryStore,
21
21
  useProjectStore
22
- } from "./chunk-VLUXQE24.mjs";
22
+ } from "./chunk-ZW3YNAD7.mjs";
23
23
  import {
24
24
  indexedDBService_default,
25
25
  useModelStore,
26
26
  usePackageSettingsStore,
27
27
  usePreferencesStore
28
- } from "./chunk-EORIRPPX.mjs";
28
+ } from "./chunk-ZOCXFQID.mjs";
29
29
  import {
30
30
  AUTH_TOKEN_CHANGED_EVENT,
31
31
  authenticationService
@@ -191,4 +191,4 @@ export {
191
191
  ChatProvider,
192
192
  chat_provider_default
193
193
  };
194
- //# sourceMappingURL=chunk-QLATFSSO.mjs.map
194
+ //# sourceMappingURL=chunk-AJL3JOD6.mjs.map
@@ -1,7 +1,7 @@
1
1
  import {
2
2
  indexedDBService_default,
3
3
  usePackageSettingsStore
4
- } from "./chunk-EORIRPPX.mjs";
4
+ } from "./chunk-ZOCXFQID.mjs";
5
5
  import {
6
6
  authenticationService,
7
7
  useAIProviderStore
@@ -285,4 +285,4 @@ var aiProviderInitService = AIProviderInitService.getInstance();
285
285
  export {
286
286
  aiProviderInitService
287
287
  };
288
- //# sourceMappingURL=chunk-RRCCSN3N.mjs.map
288
+ //# sourceMappingURL=chunk-B2TJZM4Z.mjs.map
@@ -1,9 +1,11 @@
1
1
  import {
2
- StreamingMarkdown_default
3
- } from "./chunk-6STVJJSG.mjs";
2
+ StreamingMarkdown_default,
3
+ isNativeShell,
4
+ isStandalonePwa
5
+ } from "./chunk-2HGBMNX4.mjs";
4
6
  import {
5
7
  aiProviderInitService
6
- } from "./chunk-RRCCSN3N.mjs";
8
+ } from "./chunk-B2TJZM4Z.mjs";
7
9
  import {
8
10
  addMcpServer,
9
11
  deleteMcpServer,
@@ -11,10 +13,10 @@ import {
11
13
  listMcpServers,
12
14
  updateMcpServer,
13
15
  useMCPToolsStore
14
- } from "./chunk-CVFFNX7H.mjs";
16
+ } from "./chunk-6KOEXQJN.mjs";
15
17
  import {
16
18
  chat_modal_default
17
- } from "./chunk-U33KBX3Y.mjs";
19
+ } from "./chunk-GQ3X6VPR.mjs";
18
20
  import {
19
21
  AddIcon,
20
22
  ArchiveIcon,
@@ -83,7 +85,7 @@ import {
83
85
  predefinedThemes,
84
86
  useNotificationService,
85
87
  useVoiceStore
86
- } from "./chunk-TYRYAAP2.mjs";
88
+ } from "./chunk-RN7FRSMX.mjs";
87
89
  import {
88
90
  TOPICS,
89
91
  brandingService_default,
@@ -95,14 +97,14 @@ import {
95
97
  useFeatures,
96
98
  useKnowledgeStore2 as useKnowledgeStore,
97
99
  useVectorStore
98
- } from "./chunk-VLUXQE24.mjs";
100
+ } from "./chunk-ZW3YNAD7.mjs";
99
101
  import {
100
102
  indexedDBService_default,
101
103
  models,
102
104
  useModelStore,
103
105
  usePackageSettingsStore,
104
106
  usePreferencesStore
105
- } from "./chunk-EORIRPPX.mjs";
107
+ } from "./chunk-ZOCXFQID.mjs";
106
108
  import {
107
109
  AIProviderFactory,
108
110
  GatewayService,
@@ -2991,9 +2993,8 @@ var ViewportDiagnostics = () => {
2991
2993
  probe.style.cssText = "position:fixed;top:0;bottom:0;padding-top:env(safe-area-inset-top,0px);padding-bottom:env(safe-area-inset-bottom,0px);visibility:hidden;pointer-events:none;";
2992
2994
  document.body.appendChild(probe);
2993
2995
  const cs = getComputedStyle(probe);
2994
- const standalone = window.matchMedia?.("(display-mode: standalone)").matches || window.navigator.standalone === true;
2995
2996
  setMetrics({
2996
- mode: standalone ? "standalone" : "browser",
2997
+ mode: isNativeShell() ? "native" : isStandalonePwa() ? "standalone" : "browser",
2997
2998
  "screen.height": `${window.screen.height}`,
2998
2999
  innerHeight: `${window.innerHeight}`,
2999
3000
  "docElement.clientHeight": `${document.documentElement.clientHeight}`,
@@ -9811,7 +9812,7 @@ var MCPToolsTabV2_default = MCPToolsTabV2;
9811
9812
 
9812
9813
  // src/management/management.tsx
9813
9814
  import { jsx as jsx14, jsxs as jsxs14 } from "react/jsx-runtime";
9814
- var preloadChatPage = () => import("./chat-3HV3GM5P.mjs");
9815
+ var preloadChatPage = () => import("./chat-4UZ5QT7B.mjs");
9815
9816
  var buildCapabilitiesUrl = (gatewayApiUrl) => {
9816
9817
  const trimmed = gatewayApiUrl.replace(/\/$/, "");
9817
9818
  if (trimmed.endsWith("/api")) {
@@ -10839,6 +10840,10 @@ var Management = () => {
10839
10840
  justifyContent: "space-between",
10840
10841
  px: 3,
10841
10842
  py: 1.5,
10843
+ // The native shell and installed PWAs run edge-to-edge, so the
10844
+ // sticky bar starts underneath the status bar / notch unless it
10845
+ // reserves the inset itself (chat-app-bar does the same).
10846
+ pt: "calc(12px + env(safe-area-inset-top, 0px))",
10842
10847
  bgcolor: (theme2) => theme2.palette.mode === "dark" ? "rgba(24,28,40,0.95)" : "rgba(255,255,255,0.95)",
10843
10848
  borderBottom: (theme2) => `1px solid ${theme2.palette.divider}`,
10844
10849
  backdropFilter: "blur(12px)",
@@ -11134,7 +11139,7 @@ var Management = () => {
11134
11139
  ]
11135
11140
  }
11136
11141
  ),
11137
- /* @__PURE__ */ jsx14(
11142
+ !isMobile && /* @__PURE__ */ jsx14(
11138
11143
  Fab,
11139
11144
  {
11140
11145
  "aria-label": "AI",
@@ -11170,7 +11175,7 @@ var Management = () => {
11170
11175
  )
11171
11176
  }
11172
11177
  ),
11173
- /* @__PURE__ */ jsx14(chat_modal_default, { open: modalOpen, onClose: handleCloseModal })
11178
+ !isMobile && /* @__PURE__ */ jsx14(chat_modal_default, { open: modalOpen, onClose: handleCloseModal })
11174
11179
  ]
11175
11180
  }
11176
11181
  )
@@ -11184,4 +11189,4 @@ export {
11184
11189
  useGatewayMemory,
11185
11190
  management_default
11186
11191
  };
11187
- //# sourceMappingURL=chunk-DSYE5AHW.mjs.map
11192
+ //# sourceMappingURL=chunk-DADHPWB7.mjs.map