@burtson-labs/bandit-engine 2.0.159 → 2.0.160

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/README.md +17 -0
  2. package/dist/{aiProviderStore-ZQ5VVVKQ.mjs → aiProviderStore-BNZGM6QU.mjs} +2 -2
  3. package/dist/chat-4BOIV4VP.mjs +16 -0
  4. package/dist/chat-provider.js +2 -2
  5. package/dist/chat-provider.js.map +1 -1
  6. package/dist/chat-provider.mjs +6 -6
  7. package/dist/{chunk-GWQRTUKF.mjs → chunk-B3HAQC6F.mjs} +2 -2
  8. package/dist/chunk-B3HAQC6F.mjs.map +1 -0
  9. package/dist/{chunk-7HC6ONWM.mjs → chunk-IABD4L6K.mjs} +43 -44
  10. package/dist/chunk-IABD4L6K.mjs.map +1 -0
  11. package/dist/{chunk-R45DM35B.mjs → chunk-LFQH6M6B.mjs} +3 -3
  12. package/dist/chunk-LFQH6M6B.mjs.map +1 -0
  13. package/dist/{chunk-IS2LWSBZ.mjs → chunk-LNGF2XAZ.mjs} +3 -3
  14. package/dist/chunk-LNGF2XAZ.mjs.map +1 -0
  15. package/dist/{chunk-GZDJNVAS.mjs → chunk-LTWMMHFT.mjs} +11 -9
  16. package/dist/chunk-LTWMMHFT.mjs.map +1 -0
  17. package/dist/{chunk-F5JS4W2K.mjs → chunk-MHF76C2F.mjs} +246 -127
  18. package/dist/chunk-MHF76C2F.mjs.map +1 -0
  19. package/dist/{chunk-B2TJZM4Z.mjs → chunk-P6SLB5RC.mjs} +3 -3
  20. package/dist/{chunk-ZW3YNAD7.mjs → chunk-PDQT564P.mjs} +5 -5
  21. package/dist/{chunk-ZW3YNAD7.mjs.map → chunk-PDQT564P.mjs.map} +1 -1
  22. package/dist/{chunk-TCW753JI.mjs → chunk-PXCIDXRP.mjs} +6 -6
  23. package/dist/{chunk-2X3ZTDUW.mjs → chunk-TKSOJGHX.mjs} +5 -5
  24. package/dist/{chunk-ZOCXFQID.mjs → chunk-XTB6ZLUI.mjs} +2 -2
  25. package/dist/{chunk-ZOCXFQID.mjs.map → chunk-XTB6ZLUI.mjs.map} +1 -1
  26. package/dist/index.js +298 -163
  27. package/dist/index.js.map +1 -1
  28. package/dist/index.mjs +11 -11
  29. package/dist/management/management.js +292 -157
  30. package/dist/management/management.js.map +1 -1
  31. package/dist/management/management.mjs +9 -9
  32. package/dist/modals/chat-modal/chat-modal.js +9 -7
  33. package/dist/modals/chat-modal/chat-modal.js.map +1 -1
  34. package/dist/modals/chat-modal/chat-modal.mjs +5 -5
  35. package/dist/{modelStore-KBUW3XAV.mjs → modelStore-NMCRL3FR.mjs} +2 -2
  36. package/package.json +6 -4
  37. package/dist/chat-HM563VOV.mjs +0 -16
  38. package/dist/chunk-7HC6ONWM.mjs.map +0 -1
  39. package/dist/chunk-F5JS4W2K.mjs.map +0 -1
  40. package/dist/chunk-GWQRTUKF.mjs.map +0 -1
  41. package/dist/chunk-GZDJNVAS.mjs.map +0 -1
  42. package/dist/chunk-IS2LWSBZ.mjs.map +0 -1
  43. package/dist/chunk-R45DM35B.mjs.map +0 -1
  44. /package/dist/{aiProviderStore-ZQ5VVVKQ.mjs.map → aiProviderStore-BNZGM6QU.mjs.map} +0 -0
  45. /package/dist/{chat-HM563VOV.mjs.map → chat-4BOIV4VP.mjs.map} +0 -0
  46. /package/dist/{chunk-B2TJZM4Z.mjs.map → chunk-P6SLB5RC.mjs.map} +0 -0
  47. /package/dist/{chunk-TCW753JI.mjs.map → chunk-PXCIDXRP.mjs.map} +0 -0
  48. /package/dist/{chunk-2X3ZTDUW.mjs.map → chunk-TKSOJGHX.mjs.map} +0 -0
  49. /package/dist/{modelStore-KBUW3XAV.mjs.map → modelStore-NMCRL3FR.mjs.map} +0 -0
@@ -1,14 +1,14 @@
1
1
  import {
2
2
  management_default
3
- } from "../chunk-7HC6ONWM.mjs";
4
- import "../chunk-R45DM35B.mjs";
5
- import "../chunk-B2TJZM4Z.mjs";
6
- import "../chunk-IS2LWSBZ.mjs";
7
- import "../chunk-2X3ZTDUW.mjs";
8
- import "../chunk-GZDJNVAS.mjs";
9
- import "../chunk-ZW3YNAD7.mjs";
10
- import "../chunk-ZOCXFQID.mjs";
11
- import "../chunk-GWQRTUKF.mjs";
3
+ } from "../chunk-IABD4L6K.mjs";
4
+ import "../chunk-LFQH6M6B.mjs";
5
+ import "../chunk-P6SLB5RC.mjs";
6
+ import "../chunk-LNGF2XAZ.mjs";
7
+ import "../chunk-TKSOJGHX.mjs";
8
+ import "../chunk-LTWMMHFT.mjs";
9
+ import "../chunk-PDQT564P.mjs";
10
+ import "../chunk-XTB6ZLUI.mjs";
11
+ import "../chunk-B3HAQC6F.mjs";
12
12
  import "../chunk-KCI46M23.mjs";
13
13
  import "../chunk-BJTO5JO5.mjs";
14
14
  export {
@@ -2957,7 +2957,7 @@ var init_playground_provider = __esm({
2957
2957
  PlaygroundProvider = class {
2958
2958
  config;
2959
2959
  constructor(config) {
2960
- this.config = { type: "playground" /* PLAYGROUND */, ...config };
2960
+ this.config = { ...config, type: config.type ?? "playground" /* PLAYGROUND */ };
2961
2961
  }
2962
2962
  chat(request) {
2963
2963
  const lastUserMessage = [...request.messages].reverse().find((m) => m.role === "user")?.content ?? "";
@@ -5214,7 +5214,7 @@ var useKnowledgeStore = (0, import_zustand.create)((set, get) => ({
5214
5214
  init_indexedDBService();
5215
5215
  var import_uuid5 = require("uuid");
5216
5216
  var import_mammoth = __toESM(require("mammoth"));
5217
- var pdfjsLib = __toESM(require("pdfjs-dist/legacy/build/pdf"));
5217
+ var pdfjsLib = __toESM(require("pdfjs-dist/legacy/build/pdf.mjs"));
5218
5218
 
5219
5219
  // src/services/prompts/conversationStarters.ts
5220
5220
  var import_rxjs11 = require("rxjs");
@@ -10745,7 +10745,7 @@ var DocumentCard_default = DocumentCard;
10745
10745
  var import_react12 = require("react");
10746
10746
  var import_material7 = require("@mui/material");
10747
10747
  init_packageSettingsStore();
10748
- var pdfjsLib2 = __toESM(require("pdfjs-dist/legacy/build/pdf"));
10748
+ var pdfjsLib2 = __toESM(require("pdfjs-dist/legacy/build/pdf.mjs"));
10749
10749
 
10750
10750
  // src/utils/lowlight.ts
10751
10751
  var import_lowlight = require("lowlight");
@@ -13277,11 +13277,12 @@ ${sourcesMarkdownList.join("\n")}`;
13277
13277
  tr({ children, node: _node, ...tableRowProps }) {
13278
13278
  return /* @__PURE__ */ (0, import_jsx_runtime10.jsx)(import_material9.TableRow, { ...tableRowProps, children });
13279
13279
  },
13280
- th({ children, node: _node, ...tableCellProps }) {
13280
+ th({ children, node: _node, align, ...tableCellProps }) {
13281
13281
  return /* @__PURE__ */ (0, import_jsx_runtime10.jsx)(
13282
13282
  import_material9.TableCell,
13283
13283
  {
13284
13284
  ...tableCellProps,
13285
+ align: align === "char" ? void 0 : align,
13285
13286
  sx: {
13286
13287
  fontWeight: "bold",
13287
13288
  color: theme.palette.text.primary,
@@ -13294,11 +13295,12 @@ ${sourcesMarkdownList.join("\n")}`;
13294
13295
  }
13295
13296
  );
13296
13297
  },
13297
- td({ children, node: _node, ...tableCellProps }) {
13298
+ td({ children, node: _node, align, ...tableCellProps }) {
13298
13299
  return /* @__PURE__ */ (0, import_jsx_runtime10.jsx)(
13299
13300
  import_material9.TableCell,
13300
13301
  {
13301
13302
  ...tableCellProps,
13303
+ align: align === "char" ? void 0 : align,
13302
13304
  sx: {
13303
13305
  color: theme.palette.text.primary,
13304
13306
  fontSize: "0.875rem",
@@ -14376,7 +14378,7 @@ var MemoryModal = ({ open, onClose }) => {
14376
14378
  color: (0, import_styles3.alpha)(theme.palette.text.secondary, 0.7),
14377
14379
  maxWidth: 280
14378
14380
  }, children: selectedTab === "user" ? shouldUseVectorForMemories ? "Start by adding something you'd like me to remember. Your memories will be kept in a private workspace for quick recall." : "Start by adding something you'd like me to remember about you or your preferences." : shouldUseVectorForMemories ? "Auto memories are created automatically based on our conversations and kept in your private workspace for better answers." : "Auto memories are created automatically based on our conversations." })
14379
- ] }) : filteredMemories.map((memory) => {
14381
+ ] }) : filteredMemories.map((memory, memoryIndex) => {
14380
14382
  const isSelected = selectedIds.includes(memory.id);
14381
14383
  return /* @__PURE__ */ (0, import_jsx_runtime11.jsxs)(import_react17.default.Fragment, { children: [
14382
14384
  /* @__PURE__ */ (0, import_jsx_runtime11.jsx)(import_material10.List, { sx: { listStyle: "none", pl: 0, m: 0 }, children: /* @__PURE__ */ (0, import_jsx_runtime11.jsxs)(
@@ -14576,7 +14578,7 @@ var MemoryModal = ({ open, onClose }) => {
14576
14578
  ]
14577
14579
  }
14578
14580
  ) }),
14579
- filteredMemories.indexOf(memory) < filteredMemories.length - 1 && /* @__PURE__ */ (0, import_jsx_runtime11.jsx)(import_material10.Divider, { sx: { bgcolor: (0, import_styles3.alpha)(appBar.border, 0.5), my: 0.5 } })
14581
+ memoryIndex < filteredMemories.length - 1 && /* @__PURE__ */ (0, import_jsx_runtime11.jsx)(import_material10.Divider, { sx: { bgcolor: (0, import_styles3.alpha)(appBar.border, 0.5), my: 0.5 } })
14580
14582
  ] }, memory.id);
14581
14583
  })
14582
14584
  }