@burtson-labs/bandit-engine 2.0.158 → 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 +3 -3
- 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-VJVGSAKI.mjs → chunk-PXCIDXRP.mjs} +7 -7
- package/dist/{chunk-VJVGSAKI.mjs.map → chunk-PXCIDXRP.mjs.map} +1 -1
- 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 +299 -164
- 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-2X3ZTDUW.mjs.map → chunk-TKSOJGHX.mjs.map} +0 -0
- /package/dist/{modelStore-KBUW3XAV.mjs.map → modelStore-NMCRL3FR.mjs.map} +0 -0
package/README.md
CHANGED
|
@@ -286,6 +286,23 @@ Use the Management interface to switch providers anytime or migrate from direct
|
|
|
286
286
|
|
|
287
287
|
---
|
|
288
288
|
|
|
289
|
+
## <img src="https://api.iconify.design/lucide/badge-check.svg?color=%23888888" width="18" align="center" /> Compatibility
|
|
290
|
+
|
|
291
|
+
What each release is tested against. `scripts/check-consumer.sh` packs the build and loads it in a fresh app with these versions.
|
|
292
|
+
|
|
293
|
+
| Host | Supported | Notes |
|
|
294
|
+
| --- | --- | --- |
|
|
295
|
+
| React | 19.x | The engine ships its own React for custom-element hosts. A React app must be on 19 so both share one copy; on 18 the engine's hooks fail. |
|
|
296
|
+
| MUI (`@mui/material`) | 7.x | Earlier versions are not tested. |
|
|
297
|
+
| Module formats | ESM and CommonJS | Both entry points are loaded by the consumer check. |
|
|
298
|
+
| Angular / Vue | Experimental | Through `defineCustomElement`. Not covered by the consumer check. |
|
|
299
|
+
|
|
300
|
+
Earlier releases declared `react >=18` and `@mui/material >=5`. Those ranges were never tested; the declarations now match what is.
|
|
301
|
+
|
|
302
|
+
### Sending and attachments
|
|
303
|
+
|
|
304
|
+
In `<Chat />`, a message that fails before the model starts answering goes back into the composer with its attachments, and the thread shows that nothing came back. Enter that confirms an IME candidate doesn't send, and a second Enter while a send is in flight is ignored. Attached documents keep their text as written (accents, CJK, emoji, code blocks); a file that can't be read, or has no text, stops the send with a message instead of being dropped.
|
|
305
|
+
|
|
289
306
|
## <img src="https://api.iconify.design/lucide/puzzle.svg?color=%23888888" width="18" align="center" /> Consuming the Components
|
|
290
307
|
|
|
291
308
|
Once you've wrapped your app with `ChatProvider`, you can selectively integrate Bandit's components as needed:
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import {
|
|
2
2
|
useAIProviderStore
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-B3HAQC6F.mjs";
|
|
4
4
|
import "./chunk-KCI46M23.mjs";
|
|
5
5
|
import "./chunk-BJTO5JO5.mjs";
|
|
6
6
|
export {
|
|
7
7
|
useAIProviderStore
|
|
8
8
|
};
|
|
9
|
-
//# sourceMappingURL=aiProviderStore-
|
|
9
|
+
//# sourceMappingURL=aiProviderStore-BNZGM6QU.mjs.map
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import {
|
|
2
|
+
chat_default
|
|
3
|
+
} from "./chunk-MHF76C2F.mjs";
|
|
4
|
+
import "./chunk-ONQMRE2G.mjs";
|
|
5
|
+
import "./chunk-LFQH6M6B.mjs";
|
|
6
|
+
import "./chunk-LNGF2XAZ.mjs";
|
|
7
|
+
import "./chunk-LTWMMHFT.mjs";
|
|
8
|
+
import "./chunk-PDQT564P.mjs";
|
|
9
|
+
import "./chunk-XTB6ZLUI.mjs";
|
|
10
|
+
import "./chunk-B3HAQC6F.mjs";
|
|
11
|
+
import "./chunk-KCI46M23.mjs";
|
|
12
|
+
import "./chunk-BJTO5JO5.mjs";
|
|
13
|
+
export {
|
|
14
|
+
chat_default as default
|
|
15
|
+
};
|
|
16
|
+
//# sourceMappingURL=chat-4BOIV4VP.mjs.map
|
package/dist/chat-provider.js
CHANGED
|
@@ -3661,7 +3661,7 @@ var init_playground_provider = __esm({
|
|
|
3661
3661
|
PlaygroundProvider = class {
|
|
3662
3662
|
config;
|
|
3663
3663
|
constructor(config) {
|
|
3664
|
-
this.config = { type: "playground" /* PLAYGROUND
|
|
3664
|
+
this.config = { ...config, type: config.type ?? "playground" /* PLAYGROUND */ };
|
|
3665
3665
|
}
|
|
3666
3666
|
chat(request) {
|
|
3667
3667
|
const lastUserMessage = [...request.messages].reverse().find((m) => m.role === "user")?.content ?? "";
|
|
@@ -6917,7 +6917,7 @@ var import_react4 = require("react");
|
|
|
6917
6917
|
init_indexedDBService();
|
|
6918
6918
|
var import_uuid5 = require("uuid");
|
|
6919
6919
|
var import_mammoth = __toESM(require("mammoth"));
|
|
6920
|
-
var pdfjsLib = __toESM(require("pdfjs-dist/legacy/build/pdf"));
|
|
6920
|
+
var pdfjsLib = __toESM(require("pdfjs-dist/legacy/build/pdf.mjs"));
|
|
6921
6921
|
|
|
6922
6922
|
// src/services/prompts/conversationStarters.ts
|
|
6923
6923
|
var import_rxjs11 = require("rxjs");
|
|
@@ -10595,7 +10595,7 @@ function styleInject(css, { insertAt } = {}) {
|
|
|
10595
10595
|
}
|
|
10596
10596
|
|
|
10597
10597
|
// src/chat-provider.css
|
|
10598
|
-
styleInject("@layer base {\n *,\n *::before,\n *::after {\n box-sizing: border-box;\n margin: 0;\n padding: 0;\n }\n
|
|
10598
|
+
styleInject("@layer base {\n *,\n *::before,\n *::after {\n box-sizing: border-box;\n margin: 0;\n padding: 0;\n }\n a {\n color: inherit;\n text-decoration: none;\n }\n}\n:root {\n --vh: 1vh;\n --input-offset: 1.5rem;\n}\n.bandit-logo-container {\n display: flex;\n height: 50vh;\n margin: auto;\n}\n.bandit-logo {\n margin: auto;\n display: flex;\n flex: 1 1 auto;\n flex-direction: column;\n align-items: center;\n width: 90vw;\n max-width: 640px;\n height: 55vh;\n background-size: cover;\n background-position: center center;\n background-repeat: no-repeat;\n transition: opacity 0.6s ease-in-out, transform 0.6s ease-in-out;\n}\n.bandit-logo-hidden {\n opacity: 0;\n transform: translateY(-10px);\n pointer-events: none;\n}\n.bandit-logo-visible {\n opacity: 1;\n transform: translateY(0);\n}\n");
|
|
10599
10599
|
|
|
10600
10600
|
// src/chat-provider.tsx
|
|
10601
10601
|
var import_react_query = require("@tanstack/react-query");
|