@burtson-labs/bandit-engine 2.0.87 → 2.0.88

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 (35) hide show
  1. package/dist/{chat-JUXRBSGJ.mjs → chat-Y2DE6KQA.mjs} +6 -6
  2. package/dist/chat-provider.js +18 -0
  3. package/dist/chat-provider.js.map +1 -1
  4. package/dist/chat-provider.mjs +4 -4
  5. package/dist/{chunk-C2L6ZSWR.mjs → chunk-4VTF3MY4.mjs} +2 -2
  6. package/dist/{chunk-AJSGL2XJ.mjs → chunk-BDD6YEWH.mjs} +3 -3
  7. package/dist/{chunk-GCWZY7P2.mjs → chunk-D5FQRNUD.mjs} +8 -8
  8. package/dist/{chunk-GEO43KBE.mjs → chunk-IL5IHWLZ.mjs} +47 -7
  9. package/dist/chunk-IL5IHWLZ.mjs.map +1 -0
  10. package/dist/{chunk-ZLBREJKH.mjs → chunk-J2PMXOV2.mjs} +19 -1
  11. package/dist/chunk-J2PMXOV2.mjs.map +1 -0
  12. package/dist/{chunk-WQLKBI3Y.mjs → chunk-L2EKYO4F.mjs} +2 -2
  13. package/dist/{chunk-7SQLHCBV.mjs → chunk-OB2W4OR4.mjs} +2 -2
  14. package/dist/{chunk-TETTI3QV.mjs → chunk-OSSZ7Z2O.mjs} +4 -4
  15. package/dist/{chunk-I4QUXTIM.mjs → chunk-ZLXWNTFK.mjs} +2 -2
  16. package/dist/index.js +61 -2
  17. package/dist/index.js.map +1 -1
  18. package/dist/index.mjs +9 -9
  19. package/dist/management/management.js +61 -2
  20. package/dist/management/management.js.map +1 -1
  21. package/dist/management/management.mjs +7 -7
  22. package/dist/modals/chat-modal/chat-modal.js +18 -0
  23. package/dist/modals/chat-modal/chat-modal.js.map +1 -1
  24. package/dist/modals/chat-modal/chat-modal.mjs +3 -3
  25. package/package.json +1 -1
  26. package/dist/chunk-GEO43KBE.mjs.map +0 -1
  27. package/dist/chunk-ZLBREJKH.mjs.map +0 -1
  28. /package/dist/{chat-JUXRBSGJ.mjs.map → chat-Y2DE6KQA.mjs.map} +0 -0
  29. /package/dist/{chunk-C2L6ZSWR.mjs.map → chunk-4VTF3MY4.mjs.map} +0 -0
  30. /package/dist/{chunk-AJSGL2XJ.mjs.map → chunk-BDD6YEWH.mjs.map} +0 -0
  31. /package/dist/{chunk-GCWZY7P2.mjs.map → chunk-D5FQRNUD.mjs.map} +0 -0
  32. /package/dist/{chunk-WQLKBI3Y.mjs.map → chunk-L2EKYO4F.mjs.map} +0 -0
  33. /package/dist/{chunk-7SQLHCBV.mjs.map → chunk-OB2W4OR4.mjs.map} +0 -0
  34. /package/dist/{chunk-TETTI3QV.mjs.map → chunk-OSSZ7Z2O.mjs.map} +0 -0
  35. /package/dist/{chunk-I4QUXTIM.mjs.map → chunk-ZLXWNTFK.mjs.map} +0 -0
@@ -1,11 +1,11 @@
1
1
  import {
2
2
  chat_default
3
- } from "./chunk-GEO43KBE.mjs";
3
+ } from "./chunk-IL5IHWLZ.mjs";
4
4
  import "./chunk-ONQMRE2G.mjs";
5
- import "./chunk-7SQLHCBV.mjs";
6
- import "./chunk-WQLKBI3Y.mjs";
7
- import "./chunk-C2L6ZSWR.mjs";
8
- import "./chunk-ZLBREJKH.mjs";
5
+ import "./chunk-OB2W4OR4.mjs";
6
+ import "./chunk-L2EKYO4F.mjs";
7
+ import "./chunk-4VTF3MY4.mjs";
8
+ import "./chunk-J2PMXOV2.mjs";
9
9
  import "./chunk-LWHSOEPR.mjs";
10
10
  import "./chunk-H3BYFEIE.mjs";
11
11
  import "./chunk-KCI46M23.mjs";
@@ -13,4 +13,4 @@ import "./chunk-BJTO5JO5.mjs";
13
13
  export {
14
14
  chat_default as default
15
15
  };
16
- //# sourceMappingURL=chat-JUXRBSGJ.mjs.map
16
+ //# sourceMappingURL=chat-Y2DE6KQA.mjs.map
@@ -5320,6 +5320,24 @@ var useProjectStore = (0, import_zustand8.create)((set, get) => ({
5320
5320
  debugLogger.info("Project color updated", { projectId: id, color });
5321
5321
  emitProjectUpsert(id);
5322
5322
  },
5323
+ updateProjectInstructions: async (id, instructions) => {
5324
+ const { projects } = get();
5325
+ const project = projects.find((p) => p.id === id);
5326
+ if (!project) {
5327
+ throw new Error(`Project with id ${id} not found`);
5328
+ }
5329
+ const updatedProject = normalizeProject({
5330
+ ...project,
5331
+ instructions: instructions.trim() || void 0,
5332
+ updatedAt: /* @__PURE__ */ new Date()
5333
+ });
5334
+ await saveProject(updatedProject);
5335
+ set((state) => ({
5336
+ projects: state.projects.map((p) => p.id === id ? updatedProject : p)
5337
+ }));
5338
+ debugLogger.info("Project instructions updated", { projectId: id });
5339
+ emitProjectUpsert(id);
5340
+ },
5323
5341
  reorderProjects: async (projectIds) => {
5324
5342
  const { projects } = get();
5325
5343
  const reorderedProjects = projectIds.map((id, index) => {