@burtson-labs/bandit-engine 2.0.40 → 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 (43) hide show
  1. package/README.md +14 -11
  2. package/dist/{aiProviderStore-JMA5RWX7.mjs → aiProviderStore-UQI33C5E.mjs} +2 -2
  3. package/dist/{chat-JMWPOSQ4.mjs → chat-XDC4SNJF.mjs} +5 -5
  4. package/dist/chat-provider.js +156 -106
  5. package/dist/chat-provider.js.map +1 -1
  6. package/dist/chat-provider.mjs +4 -4
  7. package/dist/{chunk-7KEBNVCO.mjs → chunk-4RCAVVDN.mjs} +15 -10
  8. package/dist/{chunk-7KEBNVCO.mjs.map → chunk-4RCAVVDN.mjs.map} +1 -1
  9. package/dist/{chunk-QJYPWWA5.mjs → chunk-54ZQ3FSN.mjs} +104 -61
  10. package/dist/chunk-54ZQ3FSN.mjs.map +1 -0
  11. package/dist/{chunk-26QQ4CLA.mjs → chunk-EOEI74X4.mjs} +4 -4
  12. package/dist/{chunk-6ELNWXKC.mjs → chunk-ERV7GLY3.mjs} +4 -4
  13. package/dist/{chunk-75W5VWPV.mjs → chunk-H4PBQ5LJ.mjs} +51 -46
  14. package/dist/chunk-H4PBQ5LJ.mjs.map +1 -0
  15. package/dist/{chunk-D3AGKOM6.mjs → chunk-KBKWVG7X.mjs} +3 -3
  16. package/dist/{chunk-VIYBZO5W.mjs → chunk-SBNENBUQ.mjs} +3 -3
  17. package/dist/{chunk-2ZCR2TDY.mjs → chunk-UXE67LR7.mjs} +8 -6
  18. package/dist/{chunk-2ZCR2TDY.mjs.map → chunk-UXE67LR7.mjs.map} +1 -1
  19. package/dist/cli.js +1 -1
  20. package/dist/cli.js.map +1 -1
  21. package/dist/index.js +164 -109
  22. package/dist/index.js.map +1 -1
  23. package/dist/index.mjs +8 -8
  24. package/dist/management/management.js +164 -109
  25. package/dist/management/management.js.map +1 -1
  26. package/dist/management/management.mjs +6 -6
  27. package/dist/modals/chat-modal/chat-modal.js +108 -63
  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/docs/01_quickstart.md +10 -4
  31. package/docs/02_gateway_api.md +19 -3
  32. package/docs/03_provider_integration.md +5 -4
  33. package/docs/api_reference/media/02_gateway_api.md +19 -3
  34. package/docs/api_reference/media/README.md +3 -1
  35. package/package.json +1 -1
  36. package/dist/chunk-75W5VWPV.mjs.map +0 -1
  37. package/dist/chunk-QJYPWWA5.mjs.map +0 -1
  38. /package/dist/{aiProviderStore-JMA5RWX7.mjs.map → aiProviderStore-UQI33C5E.mjs.map} +0 -0
  39. /package/dist/{chat-JMWPOSQ4.mjs.map → chat-XDC4SNJF.mjs.map} +0 -0
  40. /package/dist/{chunk-26QQ4CLA.mjs.map → chunk-EOEI74X4.mjs.map} +0 -0
  41. /package/dist/{chunk-6ELNWXKC.mjs.map → chunk-ERV7GLY3.mjs.map} +0 -0
  42. /package/dist/{chunk-D3AGKOM6.mjs.map → chunk-KBKWVG7X.mjs.map} +0 -0
  43. /package/dist/{chunk-VIYBZO5W.mjs.map → chunk-SBNENBUQ.mjs.map} +0 -0
@@ -1,13 +1,13 @@
1
1
  import {
2
2
  ChatProvider,
3
3
  chat_provider_default
4
- } from "./chunk-D3AGKOM6.mjs";
4
+ } from "./chunk-KBKWVG7X.mjs";
5
5
  import "./chunk-ONQMRE2G.mjs";
6
- import "./chunk-75W5VWPV.mjs";
6
+ import "./chunk-H4PBQ5LJ.mjs";
7
7
  import "./chunk-RTQDQ6TC.mjs";
8
- import "./chunk-2ZCR2TDY.mjs";
8
+ import "./chunk-UXE67LR7.mjs";
9
9
  import "./chunk-XUBYA5I7.mjs";
10
- import "./chunk-QJYPWWA5.mjs";
10
+ import "./chunk-54ZQ3FSN.mjs";
11
11
  import "./chunk-KCI46M23.mjs";
12
12
  import "./chunk-BJTO5JO5.mjs";
13
13
  export {
@@ -1,12 +1,12 @@
1
1
  import {
2
2
  aiProviderInitService
3
- } from "./chunk-75W5VWPV.mjs";
3
+ } from "./chunk-H4PBQ5LJ.mjs";
4
4
  import {
5
5
  useMCPToolsStore
6
6
  } from "./chunk-RTQDQ6TC.mjs";
7
7
  import {
8
8
  chat_modal_default
9
- } from "./chunk-6ELNWXKC.mjs";
9
+ } from "./chunk-ERV7GLY3.mjs";
10
10
  import {
11
11
  DocumentCard_default,
12
12
  banditDarkTheme,
@@ -14,7 +14,7 @@ import {
14
14
  predefinedThemes,
15
15
  useNotificationService,
16
16
  useVoiceStore
17
- } from "./chunk-VIYBZO5W.mjs";
17
+ } from "./chunk-SBNENBUQ.mjs";
18
18
  import {
19
19
  authenticationService,
20
20
  brandingService_default,
@@ -27,7 +27,7 @@ import {
27
27
  useFeatures,
28
28
  useKnowledgeStore2 as useKnowledgeStore,
29
29
  useVectorStore
30
- } from "./chunk-2ZCR2TDY.mjs";
30
+ } from "./chunk-UXE67LR7.mjs";
31
31
  import {
32
32
  indexedDBService_default,
33
33
  models,
@@ -39,7 +39,7 @@ import {
39
39
  AIProviderFactory,
40
40
  GatewayService,
41
41
  useAIProviderStore
42
- } from "./chunk-QJYPWWA5.mjs";
42
+ } from "./chunk-54ZQ3FSN.mjs";
43
43
  import {
44
44
  debugLogger
45
45
  } from "./chunk-KCI46M23.mjs";
@@ -6988,11 +6988,16 @@ var ProviderTab = () => {
6988
6988
  const trimmed = sanitized.defaultModel.trim();
6989
6989
  sanitized.defaultModel = trimmed || void 0;
6990
6990
  }
6991
+ if (typeof sanitized.apiKey === "string") {
6992
+ const trimmedKey = sanitized.apiKey.trim();
6993
+ sanitized.apiKey = trimmedKey || void 0;
6994
+ }
6991
6995
  return sanitized;
6992
6996
  }, []);
6993
6997
  const [providerConfig, setProviderConfig] = useState10({
6994
- type: "ollama",
6995
- baseUrl: "http://localhost:11434"
6998
+ type: "gateway",
6999
+ gatewayUrl: packageSettings?.gatewayApiUrl || "",
7000
+ provider: "bandit"
6996
7001
  });
6997
7002
  const [isProviderConfigOpen, setIsProviderConfigOpen] = useState10(false);
6998
7003
  const [snackbarMessage, setSnackbarMessage] = useState10("");
@@ -7128,7 +7133,7 @@ var ProviderTab = () => {
7128
7133
  setProviderConfig(applyDefaultModel({
7129
7134
  ...baseConfig,
7130
7135
  gatewayUrl: packageSettings?.gatewayApiUrl || "",
7131
- provider: "openai"
7136
+ provider: "bandit"
7132
7137
  }));
7133
7138
  break;
7134
7139
  case "playground" /* PLAYGROUND */:
@@ -7792,7 +7797,7 @@ var MCPToolsTabV2_default = MCPToolsTabV2;
7792
7797
 
7793
7798
  // src/management/management.tsx
7794
7799
  import { jsx as jsx11, jsxs as jsxs11 } from "react/jsx-runtime";
7795
- var preloadChatPage = () => import("./chat-JMWPOSQ4.mjs");
7800
+ var preloadChatPage = () => import("./chat-XDC4SNJF.mjs");
7796
7801
  var Management = () => {
7797
7802
  const navigate = useNavigate();
7798
7803
  const notificationService = useNotificationService();
@@ -8970,4 +8975,4 @@ export {
8970
8975
  useGatewayMemory,
8971
8976
  management_default
8972
8977
  };
8973
- //# sourceMappingURL=chunk-7KEBNVCO.mjs.map
8978
+ //# sourceMappingURL=chunk-4RCAVVDN.mjs.map