@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
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-GWQRTUKF.mjs";
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-ZQ5VVVKQ.mjs.map
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
@@ -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 */, ...config };
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");