@burtson-labs/bandit-engine 2.0.35 → 2.0.37

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 +6 -5
  2. package/dist/{aiProviderStore-3YS2BZU3.mjs → aiProviderStore-UJRDUYOF.mjs} +2 -2
  3. package/dist/{chat-2LYIZNWZ.mjs → chat-SZK3EBDO.mjs} +5 -5
  4. package/dist/chat-provider.js +227 -11
  5. package/dist/chat-provider.js.map +1 -1
  6. package/dist/chat-provider.mjs +4 -4
  7. package/dist/{chunk-6PQRG6W4.mjs → chunk-2ZZA2IFL.mjs} +3 -3
  8. package/dist/{chunk-GBANNFRD.mjs → chunk-ED5NNDKO.mjs} +3 -3
  9. package/dist/{chunk-XD5VJCFN.mjs → chunk-FJO5ZWYU.mjs} +3 -3
  10. package/dist/{chunk-XXMCI2WK.mjs → chunk-G4OXOTNJ.mjs} +41 -8
  11. package/dist/{chunk-XXMCI2WK.mjs.map → chunk-G4OXOTNJ.mjs.map} +1 -1
  12. package/dist/{chunk-LG2JCTOE.mjs → chunk-PLNFTIGX.mjs} +4 -4
  13. package/dist/{chunk-7RLN6ZGT.mjs → chunk-S635Q6OQ.mjs} +3 -3
  14. package/dist/{chunk-IGD4KGB5.mjs → chunk-ZAVV2AT5.mjs} +4 -4
  15. package/dist/{chunk-IHJPVIGB.mjs → chunk-ZNNOTDRD.mjs} +208 -1
  16. package/dist/chunk-ZNNOTDRD.mjs.map +1 -0
  17. package/dist/cli/cli.js +1104 -68
  18. package/dist/cli/cli.js.map +1 -1
  19. package/dist/{gateway-BiHRHJMM.d.ts → gateway-Ckf_KusF.d.mts} +4 -4
  20. package/dist/{gateway-BiHRHJMM.d.mts → gateway-Ckf_KusF.d.ts} +4 -4
  21. package/dist/index.d.mts +2 -2
  22. package/dist/index.d.ts +2 -2
  23. package/dist/index.js +318 -69
  24. package/dist/index.js.map +1 -1
  25. package/dist/index.mjs +8 -8
  26. package/dist/management/management.js +316 -67
  27. package/dist/management/management.js.map +1 -1
  28. package/dist/management/management.mjs +6 -6
  29. package/dist/modals/chat-modal/chat-modal.js +236 -20
  30. package/dist/modals/chat-modal/chat-modal.js.map +1 -1
  31. package/dist/modals/chat-modal/chat-modal.mjs +4 -4
  32. package/dist/public-types.d.mts +1 -1
  33. package/dist/public-types.d.ts +1 -1
  34. package/package.json +1 -1
  35. package/dist/chunk-IHJPVIGB.mjs.map +0 -1
  36. /package/dist/{aiProviderStore-3YS2BZU3.mjs.map → aiProviderStore-UJRDUYOF.mjs.map} +0 -0
  37. /package/dist/{chat-2LYIZNWZ.mjs.map → chat-SZK3EBDO.mjs.map} +0 -0
  38. /package/dist/{chunk-6PQRG6W4.mjs.map → chunk-2ZZA2IFL.mjs.map} +0 -0
  39. /package/dist/{chunk-GBANNFRD.mjs.map → chunk-ED5NNDKO.mjs.map} +0 -0
  40. /package/dist/{chunk-XD5VJCFN.mjs.map → chunk-FJO5ZWYU.mjs.map} +0 -0
  41. /package/dist/{chunk-LG2JCTOE.mjs.map → chunk-PLNFTIGX.mjs.map} +0 -0
  42. /package/dist/{chunk-7RLN6ZGT.mjs.map → chunk-S635Q6OQ.mjs.map} +0 -0
  43. /package/dist/{chunk-IGD4KGB5.mjs.map → chunk-ZAVV2AT5.mjs.map} +0 -0
@@ -1,13 +1,13 @@
1
1
  import {
2
2
  ChatProvider,
3
3
  chat_provider_default
4
- } from "./chunk-6PQRG6W4.mjs";
4
+ } from "./chunk-2ZZA2IFL.mjs";
5
5
  import "./chunk-ONQMRE2G.mjs";
6
- import "./chunk-7RLN6ZGT.mjs";
6
+ import "./chunk-S635Q6OQ.mjs";
7
7
  import "./chunk-RTQDQ6TC.mjs";
8
- import "./chunk-XD5VJCFN.mjs";
8
+ import "./chunk-FJO5ZWYU.mjs";
9
9
  import "./chunk-XUBYA5I7.mjs";
10
- import "./chunk-IHJPVIGB.mjs";
10
+ import "./chunk-ZNNOTDRD.mjs";
11
11
  import "./chunk-KCI46M23.mjs";
12
12
  import "./chunk-BJTO5JO5.mjs";
13
13
  export {
@@ -3,7 +3,7 @@ import {
3
3
  } from "./chunk-ONQMRE2G.mjs";
4
4
  import {
5
5
  aiProviderInitService
6
- } from "./chunk-7RLN6ZGT.mjs";
6
+ } from "./chunk-S635Q6OQ.mjs";
7
7
  import {
8
8
  useMCPToolsStore
9
9
  } from "./chunk-RTQDQ6TC.mjs";
@@ -20,7 +20,7 @@ import {
20
20
  useKnowledgeStore2,
21
21
  useMemoryStore,
22
22
  useProjectStore
23
- } from "./chunk-XD5VJCFN.mjs";
23
+ } from "./chunk-FJO5ZWYU.mjs";
24
24
  import {
25
25
  indexedDBService_default,
26
26
  useModelStore,
@@ -157,4 +157,4 @@ export {
157
157
  ChatProvider,
158
158
  chat_provider_default
159
159
  };
160
- //# sourceMappingURL=chunk-6PQRG6W4.mjs.map
160
+ //# sourceMappingURL=chunk-2ZZA2IFL.mjs.map
@@ -8,7 +8,7 @@ import {
8
8
  useMemoryStore,
9
9
  useNotification,
10
10
  useVectorStore
11
- } from "./chunk-XD5VJCFN.mjs";
11
+ } from "./chunk-FJO5ZWYU.mjs";
12
12
  import {
13
13
  useModelStore,
14
14
  usePackageSettingsStore,
@@ -16,7 +16,7 @@ import {
16
16
  } from "./chunk-XUBYA5I7.mjs";
17
17
  import {
18
18
  GatewayService
19
- } from "./chunk-IHJPVIGB.mjs";
19
+ } from "./chunk-ZNNOTDRD.mjs";
20
20
  import {
21
21
  debugLogger
22
22
  } from "./chunk-KCI46M23.mjs";
@@ -8922,4 +8922,4 @@ export {
8922
8922
  FeedbackButton,
8923
8923
  useNotificationService
8924
8924
  };
8925
- //# sourceMappingURL=chunk-GBANNFRD.mjs.map
8925
+ //# sourceMappingURL=chunk-ED5NNDKO.mjs.map
@@ -5,7 +5,7 @@ import {
5
5
  } from "./chunk-XUBYA5I7.mjs";
6
6
  import {
7
7
  useAIProviderStore
8
- } from "./chunk-IHJPVIGB.mjs";
8
+ } from "./chunk-ZNNOTDRD.mjs";
9
9
  import {
10
10
  debugLogger
11
11
  } from "./chunk-KCI46M23.mjs";
@@ -4634,7 +4634,7 @@ var useVectorStore = () => {
4634
4634
  const [hasCompatibleProvider, setHasCompatibleProvider] = useState2(false);
4635
4635
  const checkProviderCompatibility = useCallback2(async () => {
4636
4636
  try {
4637
- const { useAIProviderStore: useAIProviderStore2 } = await import("./aiProviderStore-3YS2BZU3.mjs");
4637
+ const { useAIProviderStore: useAIProviderStore2 } = await import("./aiProviderStore-UJRDUYOF.mjs");
4638
4638
  const aiProviderState = useAIProviderStore2.getState();
4639
4639
  const provider = aiProviderState.provider;
4640
4640
  const config = aiProviderState.config;
@@ -5676,4 +5676,4 @@ export {
5676
5676
  useNotification,
5677
5677
  NotificationProvider
5678
5678
  };
5679
- //# sourceMappingURL=chunk-XD5VJCFN.mjs.map
5679
+ //# sourceMappingURL=chunk-FJO5ZWYU.mjs.map
@@ -1,12 +1,12 @@
1
1
  import {
2
2
  aiProviderInitService
3
- } from "./chunk-7RLN6ZGT.mjs";
3
+ } from "./chunk-S635Q6OQ.mjs";
4
4
  import {
5
5
  useMCPToolsStore
6
6
  } from "./chunk-RTQDQ6TC.mjs";
7
7
  import {
8
8
  chat_modal_default
9
- } from "./chunk-LG2JCTOE.mjs";
9
+ } from "./chunk-PLNFTIGX.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-GBANNFRD.mjs";
17
+ } from "./chunk-ED5NNDKO.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-XD5VJCFN.mjs";
30
+ } from "./chunk-FJO5ZWYU.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-IHJPVIGB.mjs";
42
+ } from "./chunk-ZNNOTDRD.mjs";
43
43
  import {
44
44
  debugLogger
45
45
  } from "./chunk-KCI46M23.mjs";
@@ -7044,6 +7044,13 @@ var ProviderTab = () => {
7044
7044
  apiKey: ""
7045
7045
  });
7046
7046
  break;
7047
+ case "xai" /* XAI */:
7048
+ setProviderConfig({
7049
+ ...baseConfig,
7050
+ baseUrl: "https://api.x.ai/v1",
7051
+ apiKey: ""
7052
+ });
7053
+ break;
7047
7054
  case "gateway" /* GATEWAY */:
7048
7055
  setProviderConfig({
7049
7056
  ...baseConfig,
@@ -7176,6 +7183,7 @@ var ProviderTab = () => {
7176
7183
  /* @__PURE__ */ jsx9(MenuItem3, { value: "openai", children: "OpenAI" }),
7177
7184
  /* @__PURE__ */ jsx9(MenuItem3, { value: "azure-openai", children: "Azure OpenAI" }),
7178
7185
  /* @__PURE__ */ jsx9(MenuItem3, { value: "anthropic", children: "Anthropic" }),
7186
+ /* @__PURE__ */ jsx9(MenuItem3, { value: "xai", children: "xAI" }),
7179
7187
  /* @__PURE__ */ jsx9(MenuItem3, { value: "playground", children: "Playground (Mock Demo)" })
7180
7188
  ]
7181
7189
  }
@@ -7208,7 +7216,8 @@ var ProviderTab = () => {
7208
7216
  /* @__PURE__ */ jsx9(MenuItem3, { value: "openai", children: "OpenAI" }),
7209
7217
  /* @__PURE__ */ jsx9(MenuItem3, { value: "azure-openai", children: "Azure OpenAI" }),
7210
7218
  /* @__PURE__ */ jsx9(MenuItem3, { value: "anthropic", children: "Anthropic" }),
7211
- /* @__PURE__ */ jsx9(MenuItem3, { value: "ollama", children: "Ollama" })
7219
+ /* @__PURE__ */ jsx9(MenuItem3, { value: "ollama", children: "Ollama" }),
7220
+ /* @__PURE__ */ jsx9(MenuItem3, { value: "xai", children: "xAI" })
7212
7221
  ]
7213
7222
  }
7214
7223
  )
@@ -7292,6 +7301,30 @@ var ProviderTab = () => {
7292
7301
  }
7293
7302
  )
7294
7303
  ] }),
7304
+ providerConfig.type === "xai" && /* @__PURE__ */ jsxs9(Box9, { children: [
7305
+ /* @__PURE__ */ jsx9(
7306
+ TextField5,
7307
+ {
7308
+ label: "API Base URL",
7309
+ value: providerConfig.baseUrl || "",
7310
+ onChange: (e) => setProviderConfig({ ...providerConfig, baseUrl: e.target.value }),
7311
+ fullWidth: true,
7312
+ sx: { mb: 2 },
7313
+ placeholder: "https://api.x.ai/v1"
7314
+ }
7315
+ ),
7316
+ /* @__PURE__ */ jsx9(
7317
+ TextField5,
7318
+ {
7319
+ label: "API Key",
7320
+ type: "password",
7321
+ value: providerConfig.apiKey || "",
7322
+ onChange: (e) => setProviderConfig({ ...providerConfig, apiKey: e.target.value }),
7323
+ fullWidth: true,
7324
+ placeholder: "xai-..."
7325
+ }
7326
+ )
7327
+ ] }),
7295
7328
  providerConfig.type === "anthropic" && /* @__PURE__ */ jsxs9(Box9, { children: [
7296
7329
  /* @__PURE__ */ jsx9(
7297
7330
  TextField5,
@@ -7608,7 +7641,7 @@ var MCPToolsTabV2_default = MCPToolsTabV2;
7608
7641
 
7609
7642
  // src/management/management.tsx
7610
7643
  import { jsx as jsx11, jsxs as jsxs11 } from "react/jsx-runtime";
7611
- var preloadChatPage = () => import("./chat-2LYIZNWZ.mjs");
7644
+ var preloadChatPage = () => import("./chat-SZK3EBDO.mjs");
7612
7645
  var Management = () => {
7613
7646
  const navigate = useNavigate();
7614
7647
  const notificationService = useNotificationService();
@@ -8786,4 +8819,4 @@ export {
8786
8819
  useGatewayMemory,
8787
8820
  management_default
8788
8821
  };
8789
- //# sourceMappingURL=chunk-XXMCI2WK.mjs.map
8822
+ //# sourceMappingURL=chunk-G4OXOTNJ.mjs.map