@burtson-labs/bandit-engine 2.0.164 → 2.0.165

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 (49) hide show
  1. package/dist/aiProviderStore-M4BVEKUB.mjs +9 -0
  2. package/dist/chat-EMKHB23B.mjs +16 -0
  3. package/dist/chat-provider.js +11 -2
  4. package/dist/chat-provider.js.map +1 -1
  5. package/dist/chat-provider.mjs +7 -7
  6. package/dist/{chunk-TY5VL3SG.mjs → chunk-2EM4ATKI.mjs} +3 -3
  7. package/dist/{chunk-VBHI4TJC.mjs → chunk-6VDL4SLX.mjs} +6 -6
  8. package/dist/{chunk-IZX2J65Q.mjs → chunk-ASWUEAWM.mjs} +2 -2
  9. package/dist/{chunk-J6SWNO7Z.mjs → chunk-FEIDGXVR.mjs} +5 -5
  10. package/dist/{chunk-OCVZVBQQ.mjs → chunk-HNXPDIWC.mjs} +12 -3
  11. package/dist/chunk-HNXPDIWC.mjs.map +1 -0
  12. package/dist/{chunk-CQJGUYRW.mjs → chunk-J6LSSK3G.mjs} +2 -2
  13. package/dist/{chunk-5KBTOCQZ.mjs → chunk-LKGBO5OP.mjs} +4 -4
  14. package/dist/{chunk-O6P37PFR.mjs → chunk-NGGTQVGX.mjs} +4 -4
  15. package/dist/{chunk-URZSIL7X.mjs → chunk-QHGGV4KJ.mjs} +7 -7
  16. package/dist/{chunk-WLNZL6SP.mjs → chunk-RLW4RBIR.mjs} +6 -6
  17. package/dist/{chunk-WLNZL6SP.mjs.map → chunk-RLW4RBIR.mjs.map} +1 -1
  18. package/dist/{chunk-PNQRS5EN.mjs → chunk-RNCASZ2Y.mjs} +11 -11
  19. package/dist/{chunk-JYBQAKSZ.mjs → chunk-WSUUW7T2.mjs} +8 -8
  20. package/dist/index.d.mts +5 -3
  21. package/dist/index.d.ts +5 -3
  22. package/dist/index.js +12 -3
  23. package/dist/index.js.map +1 -1
  24. package/dist/index.mjs +12 -12
  25. package/dist/management/management.js +12 -3
  26. package/dist/management/management.js.map +1 -1
  27. package/dist/management/management.mjs +10 -10
  28. package/dist/modals/chat-modal/chat-modal.js +12 -3
  29. package/dist/modals/chat-modal/chat-modal.js.map +1 -1
  30. package/dist/modals/chat-modal/chat-modal.mjs +6 -6
  31. package/dist/modelStore-7YYELPF6.mjs +9 -0
  32. package/package.json +1 -1
  33. package/dist/aiProviderStore-PEGSX4PK.mjs +0 -9
  34. package/dist/chat-OSAVW6L2.mjs +0 -16
  35. package/dist/chunk-OCVZVBQQ.mjs.map +0 -1
  36. package/dist/modelStore-7XYYDCNC.mjs +0 -9
  37. /package/dist/{aiProviderStore-PEGSX4PK.mjs.map → aiProviderStore-M4BVEKUB.mjs.map} +0 -0
  38. /package/dist/{chat-OSAVW6L2.mjs.map → chat-EMKHB23B.mjs.map} +0 -0
  39. /package/dist/{chunk-TY5VL3SG.mjs.map → chunk-2EM4ATKI.mjs.map} +0 -0
  40. /package/dist/{chunk-VBHI4TJC.mjs.map → chunk-6VDL4SLX.mjs.map} +0 -0
  41. /package/dist/{chunk-IZX2J65Q.mjs.map → chunk-ASWUEAWM.mjs.map} +0 -0
  42. /package/dist/{chunk-J6SWNO7Z.mjs.map → chunk-FEIDGXVR.mjs.map} +0 -0
  43. /package/dist/{chunk-CQJGUYRW.mjs.map → chunk-J6LSSK3G.mjs.map} +0 -0
  44. /package/dist/{chunk-5KBTOCQZ.mjs.map → chunk-LKGBO5OP.mjs.map} +0 -0
  45. /package/dist/{chunk-O6P37PFR.mjs.map → chunk-NGGTQVGX.mjs.map} +0 -0
  46. /package/dist/{chunk-URZSIL7X.mjs.map → chunk-QHGGV4KJ.mjs.map} +0 -0
  47. /package/dist/{chunk-PNQRS5EN.mjs.map → chunk-RNCASZ2Y.mjs.map} +0 -0
  48. /package/dist/{chunk-JYBQAKSZ.mjs.map → chunk-WSUUW7T2.mjs.map} +0 -0
  49. /package/dist/{modelStore-7XYYDCNC.mjs.map → modelStore-7YYELPF6.mjs.map} +0 -0
package/dist/index.mjs CHANGED
@@ -1,10 +1,10 @@
1
1
  import {
2
2
  IS_STORE_BUILD,
3
3
  chat_default
4
- } from "./chunk-JYBQAKSZ.mjs";
4
+ } from "./chunk-WSUUW7T2.mjs";
5
5
  import {
6
6
  chat_provider_default
7
- } from "./chunk-URZSIL7X.mjs";
7
+ } from "./chunk-QHGGV4KJ.mjs";
8
8
  import "./chunk-ONQMRE2G.mjs";
9
9
  import {
10
10
  MANAGEMENT_SECTIONS,
@@ -15,17 +15,17 @@ import {
15
15
  useGatewayMemory,
16
16
  useGatewayModels,
17
17
  useManagementAccess
18
- } from "./chunk-PNQRS5EN.mjs";
19
- import "./chunk-IZX2J65Q.mjs";
20
- import "./chunk-5KBTOCQZ.mjs";
21
- import "./chunk-O6P37PFR.mjs";
18
+ } from "./chunk-RNCASZ2Y.mjs";
19
+ import "./chunk-ASWUEAWM.mjs";
20
+ import "./chunk-LKGBO5OP.mjs";
21
+ import "./chunk-NGGTQVGX.mjs";
22
22
  import {
23
23
  defineCustomElement
24
24
  } from "./chunk-P4C5IRM5.mjs";
25
25
  import {
26
26
  FeedbackButton,
27
27
  chat_modal_default
28
- } from "./chunk-VBHI4TJC.mjs";
28
+ } from "./chunk-6VDL4SLX.mjs";
29
29
  import {
30
30
  FeedbackModal,
31
31
  StreamingTTSClient,
@@ -42,7 +42,7 @@ import {
42
42
  useTTS,
43
43
  useVoiceStore,
44
44
  voiceService
45
- } from "./chunk-WLNZL6SP.mjs";
45
+ } from "./chunk-RLW4RBIR.mjs";
46
46
  import {
47
47
  DEFAULT_TIER_FEATURES,
48
48
  FeatureFlagContext,
@@ -61,19 +61,19 @@ import {
61
61
  useVectorStore,
62
62
  vectorDatabaseService,
63
63
  vectorMigrationService
64
- } from "./chunk-J6SWNO7Z.mjs";
64
+ } from "./chunk-FEIDGXVR.mjs";
65
65
  import {
66
66
  usePackageSettingsStore,
67
67
  usePreferencesStore
68
- } from "./chunk-TY5VL3SG.mjs";
68
+ } from "./chunk-2EM4ATKI.mjs";
69
69
  import {
70
70
  authenticationService,
71
71
  useAuthenticationStore
72
- } from "./chunk-CQJGUYRW.mjs";
72
+ } from "./chunk-J6LSSK3G.mjs";
73
73
  import {
74
74
  DebugLogger,
75
75
  debugLogger
76
- } from "./chunk-OCVZVBQQ.mjs";
76
+ } from "./chunk-HNXPDIWC.mjs";
77
77
  import "./chunk-BJTO5JO5.mjs";
78
78
 
79
79
  // src/management/components/InterestsEditor.tsx
@@ -270,11 +270,20 @@ var init_debugLogger = __esm({
270
270
  */
271
271
  debug(message, context) {
272
272
  }
273
+ verboseEnabled() {
274
+ if (this.isDevelopment) return true;
275
+ try {
276
+ return typeof localStorage !== "undefined" && localStorage.getItem("bandit:debug") === "1";
277
+ } catch {
278
+ return false;
279
+ }
280
+ }
273
281
  /**
274
- * Info logs - shown in both development and production
275
- * Used for important user-facing information
282
+ * Info logs - shown in development, or in production when localStorage
283
+ * `bandit:debug` is "1"
276
284
  */
277
285
  info(message, context) {
286
+ if (!this.verboseEnabled()) return;
278
287
  const prefix = this.isDevelopment ? "\u2139\uFE0F [INFO]" : "[INFO]";
279
288
  if (context) {
280
289
  console.info(`${prefix} ${message}`, context);
@@ -11762,7 +11771,7 @@ var init_voiceService = __esm({
11762
11771
  }
11763
11772
  const token = authenticationService.getToken();
11764
11773
  if (!token) {
11765
- debugLogger.warn("No JWT token available - skipping voice models fetch");
11774
+ debugLogger.info("No JWT token available - skipping voice models fetch");
11766
11775
  const emptyModels = {
11767
11776
  models: [],
11768
11777
  defaultModel: "",