@burtson-labs/bandit-engine 2.0.34 → 2.0.36

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 (166) hide show
  1. package/README.md +3 -2
  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 +1964 -126
  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/docs/api_reference/classes/DebugLogger.html +11 -11
  35. package/docs/api_reference/classes/FeatureFlagService.html +13 -13
  36. package/docs/api_reference/classes/NotificationService.html +10 -10
  37. package/docs/api_reference/classes/StreamingTTSClient.html +9 -9
  38. package/docs/api_reference/classes/VectorDatabaseService.html +24 -24
  39. package/docs/api_reference/classes/VectorMigrationService.html +8 -8
  40. package/docs/api_reference/classes/VoiceService.html +2 -2
  41. package/docs/api_reference/enums/TTSState.html +2 -2
  42. package/docs/api_reference/functions/Chat.html +1 -1
  43. package/docs/api_reference/functions/ChatModal.html +1 -1
  44. package/docs/api_reference/functions/ChatProvider.html +1 -1
  45. package/docs/api_reference/functions/FeatureFlagProvider.html +1 -1
  46. package/docs/api_reference/functions/FeedbackButton.html +1 -1
  47. package/docs/api_reference/functions/FeedbackModal.html +1 -1
  48. package/docs/api_reference/functions/Management.html +1 -1
  49. package/docs/api_reference/functions/NotificationProvider.html +1 -1
  50. package/docs/api_reference/functions/SubscriptionExpiredGuard.html +1 -1
  51. package/docs/api_reference/functions/SubscriptionExpiredModal.html +1 -1
  52. package/docs/api_reference/functions/defineCustomElement.html +1 -1
  53. package/docs/api_reference/functions/getCriticalConfig.html +1 -1
  54. package/docs/api_reference/functions/getFeatureMatrix.html +1 -1
  55. package/docs/api_reference/functions/getStreamingTTSClient.html +1 -1
  56. package/docs/api_reference/functions/getSystemConstants.html +1 -1
  57. package/docs/api_reference/functions/getTTSState.html +1 -1
  58. package/docs/api_reference/functions/handleHttpError.html +1 -1
  59. package/docs/api_reference/functions/handleSubscriptionUpgrade.html +1 -1
  60. package/docs/api_reference/functions/handleValidationError.html +1 -1
  61. package/docs/api_reference/functions/initializeCoreSystem.html +1 -1
  62. package/docs/api_reference/functions/pauseTTS.html +1 -1
  63. package/docs/api_reference/functions/previewTierUpgrade.html +1 -1
  64. package/docs/api_reference/functions/resumeTTS.html +1 -1
  65. package/docs/api_reference/functions/showInfoNotification.html +1 -1
  66. package/docs/api_reference/functions/showSuccessNotification.html +1 -1
  67. package/docs/api_reference/functions/speakWithStreaming.html +1 -1
  68. package/docs/api_reference/functions/stopTTS.html +1 -1
  69. package/docs/api_reference/functions/syncSubscriptionWithAPI.html +1 -1
  70. package/docs/api_reference/functions/updateSubscriptionTier.html +1 -1
  71. package/docs/api_reference/functions/useFeatureFlag.html +1 -1
  72. package/docs/api_reference/functions/useFeatureVisibility.html +1 -1
  73. package/docs/api_reference/functions/useFeatures.html +1 -1
  74. package/docs/api_reference/functions/useGatewayHealth.html +1 -1
  75. package/docs/api_reference/functions/useGatewayMemory.html +1 -1
  76. package/docs/api_reference/functions/useGatewayModels.html +1 -1
  77. package/docs/api_reference/functions/useGlobalTTS.html +1 -1
  78. package/docs/api_reference/functions/useNotification.html +1 -1
  79. package/docs/api_reference/functions/useNotificationService.html +1 -1
  80. package/docs/api_reference/functions/useTTS.html +1 -1
  81. package/docs/api_reference/functions/useVectorStore.html +1 -1
  82. package/docs/api_reference/functions/useVoiceStore.html +2 -2
  83. package/docs/api_reference/functions/useVoices.html +1 -1
  84. package/docs/api_reference/functions/validateEnvironment.html +1 -1
  85. package/docs/api_reference/functions/validateSystemIntegrity.html +1 -1
  86. package/docs/api_reference/interfaces/AIChatRequest.html +2 -2
  87. package/docs/api_reference/interfaces/AIChatResponse.html +2 -2
  88. package/docs/api_reference/interfaces/AIGenerateRequest.html +2 -2
  89. package/docs/api_reference/interfaces/AIGenerateResponse.html +2 -2
  90. package/docs/api_reference/interfaces/AIMessage.html +2 -2
  91. package/docs/api_reference/interfaces/AIModel.html +2 -2
  92. package/docs/api_reference/interfaces/AIProviderConfig.html +2 -2
  93. package/docs/api_reference/interfaces/ChatConfig.html +3 -3
  94. package/docs/api_reference/interfaces/ChatModalProps.html +3 -3
  95. package/docs/api_reference/interfaces/CreateMemoryOptions.html +2 -2
  96. package/docs/api_reference/interfaces/FeatureEvaluation.html +7 -7
  97. package/docs/api_reference/interfaces/FeatureFlagConfig.html +9 -9
  98. package/docs/api_reference/interfaces/FeatureFlagContextValue.html +8 -8
  99. package/docs/api_reference/interfaces/FeatureFlagProviderProps.html +2 -2
  100. package/docs/api_reference/interfaces/FeedbackButtonProps.html +10 -10
  101. package/docs/api_reference/interfaces/FeedbackCategories.html +2 -2
  102. package/docs/api_reference/interfaces/FeedbackModalProps.html +2 -2
  103. package/docs/api_reference/interfaces/FeedbackPriorities.html +2 -2
  104. package/docs/api_reference/interfaces/FeedbackRequest.html +2 -2
  105. package/docs/api_reference/interfaces/FeedbackResponse.html +2 -2
  106. package/docs/api_reference/interfaces/FileUploadResult.html +2 -2
  107. package/docs/api_reference/interfaces/GatewayChatRequest.html +2 -2
  108. package/docs/api_reference/interfaces/GatewayChatResponse.html +2 -2
  109. package/docs/api_reference/interfaces/GatewayContract.html +2 -2
  110. package/docs/api_reference/interfaces/GatewayGenerateRequest.html +2 -2
  111. package/docs/api_reference/interfaces/GatewayGenerateResponse.html +2 -2
  112. package/docs/api_reference/interfaces/GatewayHealthResponse.html +2 -2
  113. package/docs/api_reference/interfaces/GatewayMemoryRecord.html +2 -2
  114. package/docs/api_reference/interfaces/GatewayMemoryResponse.html +2 -2
  115. package/docs/api_reference/interfaces/GatewayMessage.html +2 -2
  116. package/docs/api_reference/interfaces/GatewayMessageContent.html +2 -2
  117. package/docs/api_reference/interfaces/GatewayModel.html +2 -2
  118. package/docs/api_reference/interfaces/GatewayModelsResponse.html +2 -2
  119. package/docs/api_reference/interfaces/MemorySearchFilters.html +2 -2
  120. package/docs/api_reference/interfaces/MigrationProgress.html +2 -2
  121. package/docs/api_reference/interfaces/MigrationStatus.html +2 -2
  122. package/docs/api_reference/interfaces/NotificationConfig.html +2 -2
  123. package/docs/api_reference/interfaces/NotificationContextType.html +2 -2
  124. package/docs/api_reference/interfaces/NotificationProviderProps.html +2 -2
  125. package/docs/api_reference/interfaces/PackageSettings.html +2 -2
  126. package/docs/api_reference/interfaces/SearchOptions.html +2 -2
  127. package/docs/api_reference/interfaces/SearchResult.html +2 -2
  128. package/docs/api_reference/interfaces/SubscriptionExpiredGuardProps.html +2 -2
  129. package/docs/api_reference/interfaces/SubscriptionExpiredModalProps.html +2 -2
  130. package/docs/api_reference/interfaces/TTSOptions.html +2 -2
  131. package/docs/api_reference/interfaces/TTSProgress.html +2 -2
  132. package/docs/api_reference/interfaces/TrialUsage.html +2 -2
  133. package/docs/api_reference/interfaces/UploadRequest.html +3 -3
  134. package/docs/api_reference/interfaces/UseTTSReturn.html +2 -2
  135. package/docs/api_reference/interfaces/VectorDocument.html +2 -2
  136. package/docs/api_reference/interfaces/VectorMemory.html +2 -2
  137. package/docs/api_reference/interfaces/VectorMemoryMetadata.html +2 -2
  138. package/docs/api_reference/interfaces/VectorStoreStatus.html +2 -2
  139. package/docs/api_reference/interfaces/VoiceModelsResponse.html +2 -2
  140. package/docs/api_reference/interfaces/VoiceState.html +2 -2
  141. package/docs/api_reference/types/FeatureKey.html +1 -1
  142. package/docs/api_reference/types/FeatureMatrix.html +1 -1
  143. package/docs/api_reference/types/GatewayQueryOptions.html +1 -1
  144. package/docs/api_reference/types/LogContext.html +1 -1
  145. package/docs/api_reference/types/SubscriptionTier.html +1 -1
  146. package/docs/api_reference/variables/DEFAULT_TIER_FEATURES.html +1 -1
  147. package/docs/api_reference/variables/FeatureFlagContext.html +1 -1
  148. package/docs/api_reference/variables/OSS_DEFAULT_FEATURES.html +1 -1
  149. package/docs/api_reference/variables/SYSTEM_FLAGS.html +1 -1
  150. package/docs/api_reference/variables/authenticationService.html +1 -1
  151. package/docs/api_reference/variables/debugLogger-1.html +1 -1
  152. package/docs/api_reference/variables/featureFlagService-1.html +1 -1
  153. package/docs/api_reference/variables/notificationService-1.html +1 -1
  154. package/docs/api_reference/variables/vectorDatabaseService-1.html +1 -1
  155. package/docs/api_reference/variables/vectorMigrationService-1.html +1 -1
  156. package/docs/api_reference/variables/voiceService-1.html +1 -1
  157. package/package.json +1 -1
  158. package/dist/chunk-IHJPVIGB.mjs.map +0 -1
  159. /package/dist/{aiProviderStore-3YS2BZU3.mjs.map → aiProviderStore-UJRDUYOF.mjs.map} +0 -0
  160. /package/dist/{chat-2LYIZNWZ.mjs.map → chat-SZK3EBDO.mjs.map} +0 -0
  161. /package/dist/{chunk-6PQRG6W4.mjs.map → chunk-2ZZA2IFL.mjs.map} +0 -0
  162. /package/dist/{chunk-GBANNFRD.mjs.map → chunk-ED5NNDKO.mjs.map} +0 -0
  163. /package/dist/{chunk-XD5VJCFN.mjs.map → chunk-FJO5ZWYU.mjs.map} +0 -0
  164. /package/dist/{chunk-LG2JCTOE.mjs.map → chunk-PLNFTIGX.mjs.map} +0 -0
  165. /package/dist/{chunk-7RLN6ZGT.mjs.map → chunk-S635Q6OQ.mjs.map} +0 -0
  166. /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