@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.
- package/README.md +17 -0
- package/dist/{aiProviderStore-ZQ5VVVKQ.mjs → aiProviderStore-BNZGM6QU.mjs} +2 -2
- package/dist/chat-4BOIV4VP.mjs +16 -0
- package/dist/chat-provider.js +2 -2
- package/dist/chat-provider.js.map +1 -1
- package/dist/chat-provider.mjs +6 -6
- package/dist/{chunk-GWQRTUKF.mjs → chunk-B3HAQC6F.mjs} +2 -2
- package/dist/chunk-B3HAQC6F.mjs.map +1 -0
- package/dist/{chunk-7HC6ONWM.mjs → chunk-IABD4L6K.mjs} +43 -44
- package/dist/chunk-IABD4L6K.mjs.map +1 -0
- package/dist/{chunk-R45DM35B.mjs → chunk-LFQH6M6B.mjs} +3 -3
- package/dist/chunk-LFQH6M6B.mjs.map +1 -0
- package/dist/{chunk-IS2LWSBZ.mjs → chunk-LNGF2XAZ.mjs} +3 -3
- package/dist/chunk-LNGF2XAZ.mjs.map +1 -0
- package/dist/{chunk-GZDJNVAS.mjs → chunk-LTWMMHFT.mjs} +11 -9
- package/dist/chunk-LTWMMHFT.mjs.map +1 -0
- package/dist/{chunk-F5JS4W2K.mjs → chunk-MHF76C2F.mjs} +246 -127
- package/dist/chunk-MHF76C2F.mjs.map +1 -0
- package/dist/{chunk-B2TJZM4Z.mjs → chunk-P6SLB5RC.mjs} +3 -3
- package/dist/{chunk-ZW3YNAD7.mjs → chunk-PDQT564P.mjs} +5 -5
- package/dist/{chunk-ZW3YNAD7.mjs.map → chunk-PDQT564P.mjs.map} +1 -1
- package/dist/{chunk-TCW753JI.mjs → chunk-PXCIDXRP.mjs} +6 -6
- package/dist/{chunk-2X3ZTDUW.mjs → chunk-TKSOJGHX.mjs} +5 -5
- package/dist/{chunk-ZOCXFQID.mjs → chunk-XTB6ZLUI.mjs} +2 -2
- package/dist/{chunk-ZOCXFQID.mjs.map → chunk-XTB6ZLUI.mjs.map} +1 -1
- package/dist/index.js +298 -163
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +11 -11
- package/dist/management/management.js +292 -157
- package/dist/management/management.js.map +1 -1
- package/dist/management/management.mjs +9 -9
- package/dist/modals/chat-modal/chat-modal.js +9 -7
- package/dist/modals/chat-modal/chat-modal.js.map +1 -1
- package/dist/modals/chat-modal/chat-modal.mjs +5 -5
- package/dist/{modelStore-KBUW3XAV.mjs → modelStore-NMCRL3FR.mjs} +2 -2
- package/package.json +6 -4
- package/dist/chat-HM563VOV.mjs +0 -16
- package/dist/chunk-7HC6ONWM.mjs.map +0 -1
- package/dist/chunk-F5JS4W2K.mjs.map +0 -1
- package/dist/chunk-GWQRTUKF.mjs.map +0 -1
- package/dist/chunk-GZDJNVAS.mjs.map +0 -1
- package/dist/chunk-IS2LWSBZ.mjs.map +0 -1
- package/dist/chunk-R45DM35B.mjs.map +0 -1
- /package/dist/{aiProviderStore-ZQ5VVVKQ.mjs.map → aiProviderStore-BNZGM6QU.mjs.map} +0 -0
- /package/dist/{chat-HM563VOV.mjs.map → chat-4BOIV4VP.mjs.map} +0 -0
- /package/dist/{chunk-B2TJZM4Z.mjs.map → chunk-P6SLB5RC.mjs.map} +0 -0
- /package/dist/{chunk-TCW753JI.mjs.map → chunk-PXCIDXRP.mjs.map} +0 -0
- /package/dist/{chunk-2X3ZTDUW.mjs.map → chunk-TKSOJGHX.mjs.map} +0 -0
- /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-
|
|
4
|
-
import "../chunk-
|
|
5
|
-
import "../chunk-
|
|
6
|
-
import "../chunk-
|
|
7
|
-
import "../chunk-
|
|
8
|
-
import "../chunk-
|
|
9
|
-
import "../chunk-
|
|
10
|
-
import "../chunk-
|
|
11
|
-
import "../chunk-
|
|
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
|
|
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
|
-
|
|
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
|
}
|