@okf/ootils 1.26.3 → 1.26.4

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/dist/node.d.mts CHANGED
@@ -1606,6 +1606,7 @@ interface IAIChat extends Document {
1606
1606
  lastActivity: Date;
1607
1607
  messages: IMessage[];
1608
1608
  ACLScope: "aiChat" | "reports";
1609
+ widgetAskAI_Id?: string;
1609
1610
  immutableActiveFilters?: any;
1610
1611
  immutableContentTypes?: string[];
1611
1612
  }
package/dist/node.d.ts CHANGED
@@ -1606,6 +1606,7 @@ interface IAIChat extends Document {
1606
1606
  lastActivity: Date;
1607
1607
  messages: IMessage[];
1608
1608
  ACLScope: "aiChat" | "reports";
1609
+ widgetAskAI_Id?: string;
1609
1610
  immutableActiveFilters?: any;
1610
1611
  immutableContentTypes?: string[];
1611
1612
  }
package/dist/node.js CHANGED
@@ -1023,6 +1023,17 @@ var init_AIChat = __esm({
1023
1023
  default: "aiChat",
1024
1024
  index: true
1025
1025
  },
1026
+ // Deterministic ID linking this chat to a specific WidgetAskAI widget in a report.
1027
+ // The Report Agent generates widget configs on the backend, so at report creation
1028
+ // time no chat exists yet — the LLM query hasn't been fired. Without this ID,
1029
+ // every page load would trigger a fresh LLM call. With it, the first render runs
1030
+ // the LLM and saves the chat under this ID; subsequent renders find the existing
1031
+ // chat and return the cached response immediately.
1032
+ widgetAskAI_Id: {
1033
+ type: String,
1034
+ sparse: true,
1035
+ unique: true
1036
+ },
1026
1037
  immutableActiveFilters: {
1027
1038
  type: import_mongoose4.default.Schema.Types.Mixed,
1028
1039
  default: void 0
package/dist/node.mjs CHANGED
@@ -1028,6 +1028,17 @@ var init_AIChat = __esm({
1028
1028
  default: "aiChat",
1029
1029
  index: true
1030
1030
  },
1031
+ // Deterministic ID linking this chat to a specific WidgetAskAI widget in a report.
1032
+ // The Report Agent generates widget configs on the backend, so at report creation
1033
+ // time no chat exists yet — the LLM query hasn't been fired. Without this ID,
1034
+ // every page load would trigger a fresh LLM call. With it, the first render runs
1035
+ // the LLM and saves the chat under this ID; subsequent renders find the existing
1036
+ // chat and return the cached response immediately.
1037
+ widgetAskAI_Id: {
1038
+ type: String,
1039
+ sparse: true,
1040
+ unique: true
1041
+ },
1031
1042
  immutableActiveFilters: {
1032
1043
  type: mongoose4.Schema.Types.Mixed,
1033
1044
  default: void 0
package/package.json CHANGED
@@ -3,7 +3,7 @@
3
3
  "publishConfig": {
4
4
  "access": "public"
5
5
  },
6
- "version": "1.26.3",
6
+ "version": "1.26.4",
7
7
  "description": "Utility functions for both browser and Node.js",
8
8
  "main": "dist/index.js",
9
9
  "module": "dist/index.mjs",