@burtson-labs/bandit-engine 2.0.87 → 2.0.89

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-NRUN7HOH.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-GAOJ4PB2.mjs} +8 -8
  8. package/dist/{chunk-ZLBREJKH.mjs → chunk-J2PMXOV2.mjs} +19 -1
  9. package/dist/chunk-J2PMXOV2.mjs.map +1 -0
  10. package/dist/{chunk-WQLKBI3Y.mjs → chunk-L2EKYO4F.mjs} +2 -2
  11. package/dist/{chunk-7SQLHCBV.mjs → chunk-OB2W4OR4.mjs} +2 -2
  12. package/dist/{chunk-TETTI3QV.mjs → chunk-OSSZ7Z2O.mjs} +4 -4
  13. package/dist/{chunk-GEO43KBE.mjs → chunk-PROLD2QV.mjs} +58 -7
  14. package/dist/chunk-PROLD2QV.mjs.map +1 -0
  15. package/dist/{chunk-I4QUXTIM.mjs → chunk-ZLXWNTFK.mjs} +2 -2
  16. package/dist/index.js +72 -2
  17. package/dist/index.js.map +1 -1
  18. package/dist/index.mjs +9 -9
  19. package/dist/management/management.js +72 -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-NRUN7HOH.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-GAOJ4PB2.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
  ChatProvider,
3
3
  chat_provider_default
4
- } from "./chunk-TETTI3QV.mjs";
4
+ } from "./chunk-OSSZ7Z2O.mjs";
5
5
  import "./chunk-ONQMRE2G.mjs";
6
- import "./chunk-I4QUXTIM.mjs";
7
- import "./chunk-WQLKBI3Y.mjs";
8
- import "./chunk-ZLBREJKH.mjs";
6
+ import "./chunk-ZLXWNTFK.mjs";
7
+ import "./chunk-L2EKYO4F.mjs";
8
+ import "./chunk-J2PMXOV2.mjs";
9
9
  import "./chunk-LWHSOEPR.mjs";
10
10
  import "./chunk-H3BYFEIE.mjs";
11
11
  import "./chunk-KCI46M23.mjs";
@@ -7,7 +7,7 @@ import {
7
7
  useMemoryStore,
8
8
  useNotification,
9
9
  useVectorStore
10
- } from "./chunk-ZLBREJKH.mjs";
10
+ } from "./chunk-J2PMXOV2.mjs";
11
11
  import {
12
12
  useModelStore,
13
13
  usePackageSettingsStore,
@@ -9006,4 +9006,4 @@ export {
9006
9006
  FeedbackButton,
9007
9007
  useNotificationService
9008
9008
  };
9009
- //# sourceMappingURL=chunk-C2L6ZSWR.mjs.map
9009
+ //# sourceMappingURL=chunk-4VTF3MY4.mjs.map
@@ -24,14 +24,14 @@ import {
24
24
  useNotificationService,
25
25
  useTTS,
26
26
  useVoiceStore
27
- } from "./chunk-C2L6ZSWR.mjs";
27
+ } from "./chunk-4VTF3MY4.mjs";
28
28
  import {
29
29
  brandingService_default,
30
30
  toTitleCase,
31
31
  useAIQueryStore,
32
32
  useConversationStore,
33
33
  useMemoryStore
34
- } from "./chunk-ZLBREJKH.mjs";
34
+ } from "./chunk-J2PMXOV2.mjs";
35
35
  import {
36
36
  indexedDBService_default,
37
37
  useModelStore,
@@ -2803,4 +2803,4 @@ export {
2803
2803
  MAX_WINDOWED_HEIGHT,
2804
2804
  chat_modal_default
2805
2805
  };
2806
- //# sourceMappingURL=chunk-AJSGL2XJ.mjs.map
2806
+ //# sourceMappingURL=chunk-BDD6YEWH.mjs.map
@@ -1,9 +1,9 @@
1
1
  import {
2
2
  StreamingMarkdown_default
3
- } from "./chunk-7SQLHCBV.mjs";
3
+ } from "./chunk-OB2W4OR4.mjs";
4
4
  import {
5
5
  aiProviderInitService
6
- } from "./chunk-I4QUXTIM.mjs";
6
+ } from "./chunk-ZLXWNTFK.mjs";
7
7
  import {
8
8
  addMcpServer,
9
9
  deleteMcpServer,
@@ -11,10 +11,10 @@ import {
11
11
  listMcpServers,
12
12
  updateMcpServer,
13
13
  useMCPToolsStore
14
- } from "./chunk-WQLKBI3Y.mjs";
14
+ } from "./chunk-L2EKYO4F.mjs";
15
15
  import {
16
16
  chat_modal_default
17
- } from "./chunk-AJSGL2XJ.mjs";
17
+ } from "./chunk-BDD6YEWH.mjs";
18
18
  import {
19
19
  AddIcon,
20
20
  ArchiveIcon,
@@ -86,7 +86,7 @@ import {
86
86
  predefinedThemes,
87
87
  useNotificationService,
88
88
  useVoiceStore
89
- } from "./chunk-C2L6ZSWR.mjs";
89
+ } from "./chunk-4VTF3MY4.mjs";
90
90
  import {
91
91
  TOPICS,
92
92
  authenticationService,
@@ -100,7 +100,7 @@ import {
100
100
  useFeatures,
101
101
  useKnowledgeStore2 as useKnowledgeStore,
102
102
  useVectorStore
103
- } from "./chunk-ZLBREJKH.mjs";
103
+ } from "./chunk-J2PMXOV2.mjs";
104
104
  import {
105
105
  indexedDBService_default,
106
106
  models,
@@ -9741,7 +9741,7 @@ var MCPToolsTabV2_default = MCPToolsTabV2;
9741
9741
 
9742
9742
  // src/management/management.tsx
9743
9743
  import { jsx as jsx14, jsxs as jsxs14 } from "react/jsx-runtime";
9744
- var preloadChatPage = () => import("./chat-JUXRBSGJ.mjs");
9744
+ var preloadChatPage = () => import("./chat-NRUN7HOH.mjs");
9745
9745
  var buildCapabilitiesUrl = (gatewayApiUrl) => {
9746
9746
  const trimmed = gatewayApiUrl.replace(/\/$/, "");
9747
9747
  if (trimmed.endsWith("/api")) {
@@ -11107,4 +11107,4 @@ export {
11107
11107
  useGatewayMemory,
11108
11108
  management_default
11109
11109
  };
11110
- //# sourceMappingURL=chunk-GCWZY7P2.mjs.map
11110
+ //# sourceMappingURL=chunk-GAOJ4PB2.mjs.map
@@ -936,6 +936,24 @@ var useProjectStore = create5((set, get) => ({
936
936
  debugLogger.info("Project color updated", { projectId: id, color });
937
937
  emitProjectUpsert(id);
938
938
  },
939
+ updateProjectInstructions: async (id, instructions) => {
940
+ const { projects } = get();
941
+ const project = projects.find((p) => p.id === id);
942
+ if (!project) {
943
+ throw new Error(`Project with id ${id} not found`);
944
+ }
945
+ const updatedProject = normalizeProject({
946
+ ...project,
947
+ instructions: instructions.trim() || void 0,
948
+ updatedAt: /* @__PURE__ */ new Date()
949
+ });
950
+ await saveProject(updatedProject);
951
+ set((state) => ({
952
+ projects: state.projects.map((p) => p.id === id ? updatedProject : p)
953
+ }));
954
+ debugLogger.info("Project instructions updated", { projectId: id });
955
+ emitProjectUpsert(id);
956
+ },
939
957
  reorderProjects: async (projectIds) => {
940
958
  const { projects } = get();
941
959
  const reorderedProjects = projectIds.map((id, index) => {
@@ -5964,4 +5982,4 @@ export {
5964
5982
  useNotification,
5965
5983
  NotificationProvider
5966
5984
  };
5967
- //# sourceMappingURL=chunk-ZLBREJKH.mjs.map
5985
+ //# sourceMappingURL=chunk-J2PMXOV2.mjs.map