@burtson-labs/bandit-engine 2.0.41 → 2.0.42

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 (31) hide show
  1. package/dist/{chat-T5ANWWYQ.mjs → chat-XDC4SNJF.mjs} +4 -4
  2. package/dist/chat-provider.js +5 -3
  3. package/dist/chat-provider.js.map +1 -1
  4. package/dist/chat-provider.mjs +3 -3
  5. package/dist/{chunk-A6OBEF72.mjs → chunk-4RCAVVDN.mjs} +6 -6
  6. package/dist/{chunk-QFNEHSY4.mjs → chunk-EOEI74X4.mjs} +3 -3
  7. package/dist/{chunk-3E57HLDV.mjs → chunk-ERV7GLY3.mjs} +3 -3
  8. package/dist/{chunk-WPWWWUD7.mjs → chunk-H4PBQ5LJ.mjs} +2 -2
  9. package/dist/{chunk-22EY3ZDC.mjs → chunk-KBKWVG7X.mjs} +3 -3
  10. package/dist/{chunk-LYWVYBKU.mjs → chunk-SBNENBUQ.mjs} +2 -2
  11. package/dist/{chunk-CX3INLYJ.mjs → chunk-UXE67LR7.mjs} +6 -4
  12. package/dist/{chunk-CX3INLYJ.mjs.map → chunk-UXE67LR7.mjs.map} +1 -1
  13. package/dist/cli.js +1 -1
  14. package/dist/cli.js.map +1 -1
  15. package/dist/index.js +5 -3
  16. package/dist/index.js.map +1 -1
  17. package/dist/index.mjs +7 -7
  18. package/dist/management/management.js +5 -3
  19. package/dist/management/management.js.map +1 -1
  20. package/dist/management/management.mjs +5 -5
  21. package/dist/modals/chat-modal/chat-modal.js +5 -3
  22. package/dist/modals/chat-modal/chat-modal.js.map +1 -1
  23. package/dist/modals/chat-modal/chat-modal.mjs +3 -3
  24. package/package.json +1 -1
  25. /package/dist/{chat-T5ANWWYQ.mjs.map → chat-XDC4SNJF.mjs.map} +0 -0
  26. /package/dist/{chunk-A6OBEF72.mjs.map → chunk-4RCAVVDN.mjs.map} +0 -0
  27. /package/dist/{chunk-QFNEHSY4.mjs.map → chunk-EOEI74X4.mjs.map} +0 -0
  28. /package/dist/{chunk-3E57HLDV.mjs.map → chunk-ERV7GLY3.mjs.map} +0 -0
  29. /package/dist/{chunk-WPWWWUD7.mjs.map → chunk-H4PBQ5LJ.mjs.map} +0 -0
  30. /package/dist/{chunk-22EY3ZDC.mjs.map → chunk-KBKWVG7X.mjs.map} +0 -0
  31. /package/dist/{chunk-LYWVYBKU.mjs.map → chunk-SBNENBUQ.mjs.map} +0 -0
package/dist/index.mjs CHANGED
@@ -1,24 +1,24 @@
1
1
  import {
2
2
  chat_default
3
- } from "./chunk-QFNEHSY4.mjs";
3
+ } from "./chunk-EOEI74X4.mjs";
4
4
  import {
5
5
  chat_provider_default
6
- } from "./chunk-22EY3ZDC.mjs";
6
+ } from "./chunk-KBKWVG7X.mjs";
7
7
  import "./chunk-ONQMRE2G.mjs";
8
8
  import {
9
9
  management_default,
10
10
  useGatewayHealth,
11
11
  useGatewayMemory,
12
12
  useGatewayModels
13
- } from "./chunk-A6OBEF72.mjs";
14
- import "./chunk-WPWWWUD7.mjs";
13
+ } from "./chunk-4RCAVVDN.mjs";
14
+ import "./chunk-H4PBQ5LJ.mjs";
15
15
  import "./chunk-RTQDQ6TC.mjs";
16
16
  import {
17
17
  defineCustomElement
18
18
  } from "./chunk-IXIM7BNO.mjs";
19
19
  import {
20
20
  chat_modal_default
21
- } from "./chunk-3E57HLDV.mjs";
21
+ } from "./chunk-ERV7GLY3.mjs";
22
22
  import {
23
23
  FeedbackButton,
24
24
  FeedbackModal,
@@ -36,7 +36,7 @@ import {
36
36
  useTTS,
37
37
  useVoiceStore,
38
38
  voiceService
39
- } from "./chunk-LYWVYBKU.mjs";
39
+ } from "./chunk-SBNENBUQ.mjs";
40
40
  import {
41
41
  DEFAULT_TIER_FEATURES,
42
42
  FeatureFlagContext,
@@ -56,7 +56,7 @@ import {
56
56
  useVectorStore,
57
57
  vectorDatabaseService,
58
58
  vectorMigrationService
59
- } from "./chunk-CX3INLYJ.mjs";
59
+ } from "./chunk-UXE67LR7.mjs";
60
60
  import {
61
61
  usePackageSettingsStore
62
62
  } from "./chunk-XUBYA5I7.mjs";
@@ -8952,9 +8952,11 @@ var init_useVectorStore = __esm({
8952
8952
  setHasCompatibleProvider(false);
8953
8953
  return false;
8954
8954
  }
8955
- const isOllama = config.type === "ollama";
8956
- const isGatewayWithOllama = config.type === "gateway" && config.provider === "ollama";
8957
- const isCompatible = isOllama || isGatewayWithOllama;
8955
+ const vectorCapableProviders = /* @__PURE__ */ new Set(["ollama", "bandit"]);
8956
+ const isNativeOllama = config.type === "ollama";
8957
+ const hasVectorCapableProvider = typeof config.provider === "string" && vectorCapableProviders.has(config.provider);
8958
+ const isGatewayWithVectorSupport = config.type === "gateway" && hasVectorCapableProvider;
8959
+ const isCompatible = isNativeOllama || isGatewayWithVectorSupport;
8958
8960
  setHasCompatibleProvider(isCompatible);
8959
8961
  return isCompatible;
8960
8962
  } catch (error) {