@burtson-labs/bandit-engine 2.0.38 → 2.0.40

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 (45) hide show
  1. package/dist/{aiProviderStore-XN7GCBHJ.mjs → aiProviderStore-JMA5RWX7.mjs} +2 -2
  2. package/dist/{chat-5QJNWB7I.mjs → chat-JMWPOSQ4.mjs} +5 -5
  3. package/dist/chat-provider.js +421 -20
  4. package/dist/chat-provider.js.map +1 -1
  5. package/dist/chat-provider.mjs +4 -4
  6. package/dist/{chunk-WO5KFNNW.mjs → chunk-26QQ4CLA.mjs} +62 -24
  7. package/dist/chunk-26QQ4CLA.mjs.map +1 -0
  8. package/dist/{chunk-CDQYBO3Q.mjs → chunk-2ZCR2TDY.mjs} +27 -5
  9. package/dist/chunk-2ZCR2TDY.mjs.map +1 -0
  10. package/dist/{chunk-ECRNIAG6.mjs → chunk-6ELNWXKC.mjs} +4 -4
  11. package/dist/{chunk-EOKIE5HZ.mjs → chunk-75W5VWPV.mjs} +3 -3
  12. package/dist/{chunk-JRCDANLN.mjs → chunk-7KEBNVCO.mjs} +67 -9
  13. package/dist/{chunk-JRCDANLN.mjs.map → chunk-7KEBNVCO.mjs.map} +1 -1
  14. package/dist/{chunk-3A2527TE.mjs → chunk-D3AGKOM6.mjs} +3 -3
  15. package/dist/{chunk-QU5S5QQP.mjs → chunk-QJYPWWA5.mjs} +379 -18
  16. package/dist/chunk-QJYPWWA5.mjs.map +1 -0
  17. package/dist/{chunk-QYH2T4L5.mjs → chunk-VIYBZO5W.mjs} +3 -3
  18. package/dist/{cli/cli.js → cli.js} +424 -12
  19. package/dist/cli.js.map +1 -0
  20. package/dist/{gateway-B0LJ3-jT.d.ts → gateway-5yt_3QDP.d.mts} +4 -4
  21. package/dist/{gateway-B0LJ3-jT.d.mts → gateway-5yt_3QDP.d.ts} +4 -4
  22. package/dist/index.d.mts +2 -2
  23. package/dist/index.d.ts +2 -2
  24. package/dist/index.js +598 -101
  25. package/dist/index.js.map +1 -1
  26. package/dist/index.mjs +8 -8
  27. package/dist/management/management.js +596 -99
  28. package/dist/management/management.js.map +1 -1
  29. package/dist/management/management.mjs +6 -6
  30. package/dist/modals/chat-modal/chat-modal.js +430 -29
  31. package/dist/modals/chat-modal/chat-modal.js.map +1 -1
  32. package/dist/modals/chat-modal/chat-modal.mjs +4 -4
  33. package/dist/public-types.d.mts +1 -1
  34. package/dist/public-types.d.ts +1 -1
  35. package/package.json +2 -3
  36. package/dist/chunk-CDQYBO3Q.mjs.map +0 -1
  37. package/dist/chunk-QU5S5QQP.mjs.map +0 -1
  38. package/dist/chunk-WO5KFNNW.mjs.map +0 -1
  39. package/dist/cli/cli.js.map +0 -1
  40. /package/dist/{aiProviderStore-XN7GCBHJ.mjs.map → aiProviderStore-JMA5RWX7.mjs.map} +0 -0
  41. /package/dist/{chat-5QJNWB7I.mjs.map → chat-JMWPOSQ4.mjs.map} +0 -0
  42. /package/dist/{chunk-ECRNIAG6.mjs.map → chunk-6ELNWXKC.mjs.map} +0 -0
  43. /package/dist/{chunk-EOKIE5HZ.mjs.map → chunk-75W5VWPV.mjs.map} +0 -0
  44. /package/dist/{chunk-3A2527TE.mjs.map → chunk-D3AGKOM6.mjs.map} +0 -0
  45. /package/dist/{chunk-QYH2T4L5.mjs.map → chunk-VIYBZO5W.mjs.map} +0 -0
@@ -8,14 +8,14 @@ import {
8
8
  useNotificationService,
9
9
  useTTS,
10
10
  useVoiceStore
11
- } from "./chunk-QYH2T4L5.mjs";
11
+ } from "./chunk-VIYBZO5W.mjs";
12
12
  import {
13
13
  brandingService_default,
14
14
  toTitleCase,
15
15
  useAIQueryStore,
16
16
  useConversationStore,
17
17
  useMemoryStore
18
- } from "./chunk-CDQYBO3Q.mjs";
18
+ } from "./chunk-2ZCR2TDY.mjs";
19
19
  import {
20
20
  indexedDBService_default,
21
21
  useModelStore,
@@ -24,7 +24,7 @@ import {
24
24
  } from "./chunk-XUBYA5I7.mjs";
25
25
  import {
26
26
  useAIProviderStore
27
- } from "./chunk-QU5S5QQP.mjs";
27
+ } from "./chunk-QJYPWWA5.mjs";
28
28
  import {
29
29
  debugLogger
30
30
  } from "./chunk-KCI46M23.mjs";
@@ -2807,4 +2807,4 @@ export {
2807
2807
  MAX_WINDOWED_HEIGHT,
2808
2808
  chat_modal_default
2809
2809
  };
2810
- //# sourceMappingURL=chunk-ECRNIAG6.mjs.map
2810
+ //# sourceMappingURL=chunk-6ELNWXKC.mjs.map
@@ -1,13 +1,13 @@
1
1
  import {
2
2
  authenticationService
3
- } from "./chunk-CDQYBO3Q.mjs";
3
+ } from "./chunk-2ZCR2TDY.mjs";
4
4
  import {
5
5
  indexedDBService_default,
6
6
  usePackageSettingsStore
7
7
  } from "./chunk-XUBYA5I7.mjs";
8
8
  import {
9
9
  useAIProviderStore
10
- } from "./chunk-QU5S5QQP.mjs";
10
+ } from "./chunk-QJYPWWA5.mjs";
11
11
  import {
12
12
  debugLogger
13
13
  } from "./chunk-KCI46M23.mjs";
@@ -282,4 +282,4 @@ var aiProviderInitService = AIProviderInitService.getInstance();
282
282
  export {
283
283
  aiProviderInitService
284
284
  };
285
- //# sourceMappingURL=chunk-EOKIE5HZ.mjs.map
285
+ //# sourceMappingURL=chunk-75W5VWPV.mjs.map
@@ -1,12 +1,12 @@
1
1
  import {
2
2
  aiProviderInitService
3
- } from "./chunk-EOKIE5HZ.mjs";
3
+ } from "./chunk-75W5VWPV.mjs";
4
4
  import {
5
5
  useMCPToolsStore
6
6
  } from "./chunk-RTQDQ6TC.mjs";
7
7
  import {
8
8
  chat_modal_default
9
- } from "./chunk-ECRNIAG6.mjs";
9
+ } from "./chunk-6ELNWXKC.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-QYH2T4L5.mjs";
17
+ } from "./chunk-VIYBZO5W.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-CDQYBO3Q.mjs";
30
+ } from "./chunk-2ZCR2TDY.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-QU5S5QQP.mjs";
42
+ } from "./chunk-QJYPWWA5.mjs";
43
43
  import {
44
44
  debugLogger
45
45
  } from "./chunk-KCI46M23.mjs";
@@ -6956,6 +6956,8 @@ var ProviderTab = () => {
6956
6956
  return "gpt-4o-mini";
6957
6957
  case "xai" /* XAI */:
6958
6958
  return "grok-beta";
6959
+ case "bandit" /* BANDIT */:
6960
+ return "bandit-core-1";
6959
6961
  default:
6960
6962
  return "";
6961
6963
  }
@@ -6963,7 +6965,7 @@ var ProviderTab = () => {
6963
6965
  const applyDefaultModel = useCallback6((config) => {
6964
6966
  const normalized = { ...config };
6965
6967
  const trimmed = typeof normalized.defaultModel === "string" ? normalized.defaultModel.trim() : void 0;
6966
- const requiresModel = normalized.type === "openai" /* OPENAI */ || normalized.type === "xai" /* XAI */;
6968
+ const requiresModel = normalized.type === "openai" /* OPENAI */ || normalized.type === "xai" /* XAI */ || normalized.type === "bandit" /* BANDIT */;
6967
6969
  if (trimmed) {
6968
6970
  normalized.defaultModel = trimmed;
6969
6971
  return normalized;
@@ -7114,6 +7116,14 @@ var ProviderTab = () => {
7114
7116
  apiKey: ""
7115
7117
  }));
7116
7118
  break;
7119
+ case "bandit" /* BANDIT */:
7120
+ setProviderConfig(applyDefaultModel({
7121
+ ...baseConfig,
7122
+ baseUrl: "https://api.burtson.ai",
7123
+ apiKey: "",
7124
+ defaultModel: "bandit-core-1"
7125
+ }));
7126
+ break;
7117
7127
  case "gateway" /* GATEWAY */:
7118
7128
  setProviderConfig(applyDefaultModel({
7119
7129
  ...baseConfig,
@@ -7132,7 +7142,7 @@ var ProviderTab = () => {
7132
7142
  try {
7133
7143
  const normalizedConfigIntermediate = sanitizeConfigForSave(providerConfig);
7134
7144
  const normalizedConfig = convertAnthropicConfig(normalizedConfigIntermediate) || normalizedConfigIntermediate;
7135
- const requiresModel = normalizedConfig.type === "openai" /* OPENAI */ || normalizedConfig.type === "xai" /* XAI */;
7145
+ const requiresModel = normalizedConfig.type === "openai" /* OPENAI */ || normalizedConfig.type === "xai" /* XAI */ || normalizedConfig.type === "bandit" /* BANDIT */;
7136
7146
  if (requiresModel && !normalizedConfig.defaultModel) {
7137
7147
  showMessage("Please provide a default model ID for the selected provider.", "error");
7138
7148
  return;
@@ -7257,6 +7267,7 @@ var ProviderTab = () => {
7257
7267
  /* @__PURE__ */ jsx9(MenuItem3, { value: "ollama", children: "Ollama" }),
7258
7268
  /* @__PURE__ */ jsx9(MenuItem3, { value: "openai", children: "OpenAI" }),
7259
7269
  /* @__PURE__ */ jsx9(MenuItem3, { value: "azure-openai", children: "Azure OpenAI" }),
7270
+ /* @__PURE__ */ jsx9(MenuItem3, { value: "bandit", children: "Bandit AI" }),
7260
7271
  /* @__PURE__ */ jsx9(MenuItem3, { value: "xai", children: "xAI" }),
7261
7272
  /* @__PURE__ */ jsx9(MenuItem3, { value: "playground", children: "Playground (Mock Demo)" })
7262
7273
  ]
@@ -7291,6 +7302,7 @@ var ProviderTab = () => {
7291
7302
  /* @__PURE__ */ jsx9(MenuItem3, { value: "azure-openai", children: "Azure OpenAI" }),
7292
7303
  /* @__PURE__ */ jsx9(MenuItem3, { value: "anthropic", children: "Anthropic" }),
7293
7304
  /* @__PURE__ */ jsx9(MenuItem3, { value: "ollama", children: "Ollama" }),
7305
+ /* @__PURE__ */ jsx9(MenuItem3, { value: "bandit", children: "Bandit AI" }),
7294
7306
  /* @__PURE__ */ jsx9(MenuItem3, { value: "xai", children: "xAI" })
7295
7307
  ]
7296
7308
  }
@@ -7306,6 +7318,52 @@ var ProviderTab = () => {
7306
7318
  placeholder: "http://localhost:11434"
7307
7319
  }
7308
7320
  ),
7321
+ providerConfig.type === "bandit" && /* @__PURE__ */ jsxs9(Box9, { children: [
7322
+ /* @__PURE__ */ jsx9(
7323
+ TextField5,
7324
+ {
7325
+ label: "API Base URL",
7326
+ value: providerConfig.baseUrl || "",
7327
+ onChange: (e) => setProviderConfig((prev) => ({
7328
+ ...prev,
7329
+ baseUrl: e.target.value
7330
+ })),
7331
+ fullWidth: true,
7332
+ sx: { mb: 2 },
7333
+ placeholder: "https://api.burtson.ai",
7334
+ helperText: "Defaults to https://api.burtson.ai"
7335
+ }
7336
+ ),
7337
+ /* @__PURE__ */ jsx9(
7338
+ TextField5,
7339
+ {
7340
+ label: "API Key",
7341
+ type: "password",
7342
+ value: providerConfig.apiKey || "",
7343
+ onChange: (e) => setProviderConfig((prev) => ({
7344
+ ...prev,
7345
+ apiKey: e.target.value
7346
+ })),
7347
+ fullWidth: true,
7348
+ sx: { mb: 2 },
7349
+ placeholder: "bai_..."
7350
+ }
7351
+ ),
7352
+ /* @__PURE__ */ jsx9(
7353
+ TextField5,
7354
+ {
7355
+ label: "Default Model ID",
7356
+ value: providerConfig.defaultModel || "",
7357
+ onChange: (e) => setProviderConfig((prev) => ({
7358
+ ...prev,
7359
+ defaultModel: e.target.value
7360
+ })),
7361
+ fullWidth: true,
7362
+ placeholder: "bandit-core-1",
7363
+ helperText: "Example: bandit-core-1 (Bandit Core canonical alias)."
7364
+ }
7365
+ )
7366
+ ] }),
7309
7367
  providerConfig.type === "openai" && /* @__PURE__ */ jsxs9(Box9, { children: [
7310
7368
  /* @__PURE__ */ jsx9(
7311
7369
  TextField5,
@@ -7734,7 +7792,7 @@ var MCPToolsTabV2_default = MCPToolsTabV2;
7734
7792
 
7735
7793
  // src/management/management.tsx
7736
7794
  import { jsx as jsx11, jsxs as jsxs11 } from "react/jsx-runtime";
7737
- var preloadChatPage = () => import("./chat-5QJNWB7I.mjs");
7795
+ var preloadChatPage = () => import("./chat-JMWPOSQ4.mjs");
7738
7796
  var Management = () => {
7739
7797
  const navigate = useNavigate();
7740
7798
  const notificationService = useNotificationService();
@@ -8912,4 +8970,4 @@ export {
8912
8970
  useGatewayMemory,
8913
8971
  management_default
8914
8972
  };
8915
- //# sourceMappingURL=chunk-JRCDANLN.mjs.map
8973
+ //# sourceMappingURL=chunk-7KEBNVCO.mjs.map