@metad/contracts 3.8.0 → 3.8.3

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/index.cjs.js CHANGED
@@ -3,30 +3,30 @@
3
3
  var ShortUniqueId = require('short-unique-id');
4
4
  var chatkitTypes = require('@xpert-ai/chatkit-types');
5
5
 
6
- function _array_like_to_array$5(arr, len) {
6
+ function _array_like_to_array$6(arr, len) {
7
7
  if (len == null || len > arr.length) len = arr.length;
8
8
  for(var i = 0, arr2 = new Array(len); i < len; i++)arr2[i] = arr[i];
9
9
  return arr2;
10
10
  }
11
- function _array_without_holes$1(arr) {
12
- if (Array.isArray(arr)) return _array_like_to_array$5(arr);
11
+ function _array_without_holes$2(arr) {
12
+ if (Array.isArray(arr)) return _array_like_to_array$6(arr);
13
13
  }
14
- function _iterable_to_array$2(iter) {
14
+ function _iterable_to_array$3(iter) {
15
15
  if (typeof Symbol !== "undefined" && iter[Symbol.iterator] != null || iter["@@iterator"] != null) return Array.from(iter);
16
16
  }
17
- function _non_iterable_spread$1() {
17
+ function _non_iterable_spread$2() {
18
18
  throw new TypeError("Invalid attempt to spread non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
19
19
  }
20
- function _to_consumable_array$1(arr) {
21
- return _array_without_holes$1(arr) || _iterable_to_array$2(arr) || _unsupported_iterable_to_array$5(arr) || _non_iterable_spread$1();
20
+ function _to_consumable_array$2(arr) {
21
+ return _array_without_holes$2(arr) || _iterable_to_array$3(arr) || _unsupported_iterable_to_array$6(arr) || _non_iterable_spread$2();
22
22
  }
23
- function _unsupported_iterable_to_array$5(o, minLen) {
23
+ function _unsupported_iterable_to_array$6(o, minLen) {
24
24
  if (!o) return;
25
- if (typeof o === "string") return _array_like_to_array$5(o, minLen);
25
+ if (typeof o === "string") return _array_like_to_array$6(o, minLen);
26
26
  var n = Object.prototype.toString.call(o).slice(8, -1);
27
27
  if (n === "Object" && o.constructor) n = o.constructor.name;
28
28
  if (n === "Map" || n === "Set") return Array.from(n);
29
- if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _array_like_to_array$5(o, minLen);
29
+ if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _array_like_to_array$6(o, minLen);
30
30
  }
31
31
  var _uuidGenerator;
32
32
  var uuidGenerator = new ShortUniqueId({
@@ -36,7 +36,7 @@ var uuid = function() {
36
36
  for(var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++){
37
37
  args[_key] = arguments[_key];
38
38
  }
39
- return (_uuidGenerator = uuidGenerator).randomUUID.apply(_uuidGenerator, _to_consumable_array$1(args));
39
+ return (_uuidGenerator = uuidGenerator).randomUUID.apply(_uuidGenerator, _to_consumable_array$2(args));
40
40
  };
41
41
  exports.ParameterTypeEnum = void 0;
42
42
  (function(ParameterTypeEnum) {
@@ -707,9 +707,6 @@ exports.FeatureEnum = void 0;
707
707
  exports.FileStorageProviderEnum = void 0;
708
708
  (function(FileStorageProviderEnum) {
709
709
  FileStorageProviderEnum["LOCAL"] = "LOCAL";
710
- FileStorageProviderEnum["S3"] = "S3";
711
- FileStorageProviderEnum["WASABI"] = "WASABI";
712
- FileStorageProviderEnum["OSS"] = "OSS";
713
710
  })(exports.FileStorageProviderEnum || (exports.FileStorageProviderEnum = {}));
714
711
 
715
712
  exports.HttpStatus = void 0;
@@ -1791,15 +1788,15 @@ var VariableOperations = [
1791
1788
  }
1792
1789
  ];
1793
1790
 
1794
- function _array_like_to_array$4(arr, len) {
1791
+ function _array_like_to_array$5(arr, len) {
1795
1792
  if (len == null || len > arr.length) len = arr.length;
1796
1793
  for(var i = 0, arr2 = new Array(len); i < len; i++)arr2[i] = arr[i];
1797
1794
  return arr2;
1798
1795
  }
1799
- function _array_with_holes$3(arr) {
1796
+ function _array_with_holes$4(arr) {
1800
1797
  if (Array.isArray(arr)) return arr;
1801
1798
  }
1802
- function _define_property$3(obj, key, value) {
1799
+ function _define_property$4(obj, key, value) {
1803
1800
  if (key in obj) {
1804
1801
  Object.defineProperty(obj, key, {
1805
1802
  value: value,
@@ -1812,7 +1809,7 @@ function _define_property$3(obj, key, value) {
1812
1809
  }
1813
1810
  return obj;
1814
1811
  }
1815
- function _iterable_to_array_limit$2(arr, i) {
1812
+ function _iterable_to_array_limit$3(arr, i) {
1816
1813
  var _i = arr == null ? null : typeof Symbol !== "undefined" && arr[Symbol.iterator] || arr["@@iterator"];
1817
1814
  if (_i == null) return;
1818
1815
  var _arr = [];
@@ -1836,10 +1833,10 @@ function _iterable_to_array_limit$2(arr, i) {
1836
1833
  }
1837
1834
  return _arr;
1838
1835
  }
1839
- function _non_iterable_rest$3() {
1836
+ function _non_iterable_rest$4() {
1840
1837
  throw new TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
1841
1838
  }
1842
- function _object_spread$2(target) {
1839
+ function _object_spread$3(target) {
1843
1840
  for(var i = 1; i < arguments.length; i++){
1844
1841
  var source = arguments[i] != null ? arguments[i] : {};
1845
1842
  var ownKeys = Object.keys(source);
@@ -1849,12 +1846,12 @@ function _object_spread$2(target) {
1849
1846
  }));
1850
1847
  }
1851
1848
  ownKeys.forEach(function(key) {
1852
- _define_property$3(target, key, source[key]);
1849
+ _define_property$4(target, key, source[key]);
1853
1850
  });
1854
1851
  }
1855
1852
  return target;
1856
1853
  }
1857
- function ownKeys$1(object, enumerableOnly) {
1854
+ function ownKeys$2(object, enumerableOnly) {
1858
1855
  var keys = Object.keys(object);
1859
1856
  if (Object.getOwnPropertySymbols) {
1860
1857
  var symbols = Object.getOwnPropertySymbols(object);
@@ -1862,27 +1859,27 @@ function ownKeys$1(object, enumerableOnly) {
1862
1859
  }
1863
1860
  return keys;
1864
1861
  }
1865
- function _object_spread_props$1(target, source) {
1862
+ function _object_spread_props$2(target, source) {
1866
1863
  source = source != null ? source : {};
1867
1864
  if (Object.getOwnPropertyDescriptors) {
1868
1865
  Object.defineProperties(target, Object.getOwnPropertyDescriptors(source));
1869
1866
  } else {
1870
- ownKeys$1(Object(source)).forEach(function(key) {
1867
+ ownKeys$2(Object(source)).forEach(function(key) {
1871
1868
  Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key));
1872
1869
  });
1873
1870
  }
1874
1871
  return target;
1875
1872
  }
1876
- function _sliced_to_array$2(arr, i) {
1877
- return _array_with_holes$3(arr) || _iterable_to_array_limit$2(arr, i) || _unsupported_iterable_to_array$4(arr, i) || _non_iterable_rest$3();
1873
+ function _sliced_to_array$3(arr, i) {
1874
+ return _array_with_holes$4(arr) || _iterable_to_array_limit$3(arr, i) || _unsupported_iterable_to_array$5(arr, i) || _non_iterable_rest$4();
1878
1875
  }
1879
- function _unsupported_iterable_to_array$4(o, minLen) {
1876
+ function _unsupported_iterable_to_array$5(o, minLen) {
1880
1877
  if (!o) return;
1881
- if (typeof o === "string") return _array_like_to_array$4(o, minLen);
1878
+ if (typeof o === "string") return _array_like_to_array$5(o, minLen);
1882
1879
  var n = Object.prototype.toString.call(o).slice(8, -1);
1883
1880
  if (n === "Object" && o.constructor) n = o.constructor.name;
1884
1881
  if (n === "Map" || n === "Set") return Array.from(n);
1885
- if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _array_like_to_array$4(o, minLen);
1882
+ if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _array_like_to_array$5(o, minLen);
1886
1883
  }
1887
1884
  /**
1888
1885
  * @deprecated can use getCurrentTaskInput instead?
@@ -1956,10 +1953,10 @@ function configurableStoreNamespace(configurable) {
1956
1953
  * @param value
1957
1954
  * @returns
1958
1955
  */ function setStateVariable(state, varName, value) {
1959
- var _varName_split = _sliced_to_array$2(varName.split("."), 2), agentChannelName = _varName_split[0], variableName = _varName_split[1];
1956
+ var _varName_split = _sliced_to_array$3(varName.split("."), 2), agentChannelName = _varName_split[0], variableName = _varName_split[1];
1960
1957
  if (variableName) {
1961
1958
  var _state_agentChannelName;
1962
- state[agentChannelName] = _object_spread_props$1(_object_spread$2({}, (_state_agentChannelName = state[agentChannelName]) !== null && _state_agentChannelName !== void 0 ? _state_agentChannelName : {}), _define_property$3({}, variableName, value));
1959
+ state[agentChannelName] = _object_spread_props$2(_object_spread$3({}, (_state_agentChannelName = state[agentChannelName]) !== null && _state_agentChannelName !== void 0 ? _state_agentChannelName : {}), _define_property$4({}, variableName, value));
1963
1960
  } else {
1964
1961
  state[agentChannelName] = value;
1965
1962
  }
@@ -2126,7 +2123,7 @@ function genPipelineKnowledgeBaseKey() {
2126
2123
  return letterStartSUID("KnowledgeBase_");
2127
2124
  }
2128
2125
 
2129
- function _define_property$2(obj, key, value) {
2126
+ function _define_property$3(obj, key, value) {
2130
2127
  if (key in obj) {
2131
2128
  Object.defineProperty(obj, key, {
2132
2129
  value: value,
@@ -2139,7 +2136,7 @@ function _define_property$2(obj, key, value) {
2139
2136
  }
2140
2137
  return obj;
2141
2138
  }
2142
- function _object_spread$1(target) {
2139
+ function _object_spread$2(target) {
2143
2140
  for(var i = 1; i < arguments.length; i++){
2144
2141
  var source = arguments[i] != null ? arguments[i] : {};
2145
2142
  var ownKeys = Object.keys(source);
@@ -2149,7 +2146,7 @@ function _object_spread$1(target) {
2149
2146
  }));
2150
2147
  }
2151
2148
  ownKeys.forEach(function(key) {
2152
- _define_property$2(target, key, source[key]);
2149
+ _define_property$3(target, key, source[key]);
2153
2150
  });
2154
2151
  }
2155
2152
  return target;
@@ -2164,7 +2161,7 @@ exports.DocumentTypeEnum = void 0;
2164
2161
  * @deprecated use DocumentSourceProviderCategoryEnum local file type instead
2165
2162
  */ DocumentTypeEnum["FILE"] = "file";
2166
2163
  })(exports.DocumentTypeEnum || (exports.DocumentTypeEnum = {}));
2167
- var KDocumentSourceType = _object_spread$1({}, exports.DocumentSourceProviderCategoryEnum, exports.DocumentTypeEnum);
2164
+ var KDocumentSourceType = _object_spread$2({}, exports.DocumentSourceProviderCategoryEnum, exports.DocumentTypeEnum);
2168
2165
  exports.KBDocumentCategoryEnum = void 0;
2169
2166
  (function(KBDocumentCategoryEnum) {
2170
2167
  KBDocumentCategoryEnum["Text"] = "text";
@@ -2451,23 +2448,23 @@ function genXpertDBSqlKey() {
2451
2448
  return letterStartSUID("DBSql_");
2452
2449
  }
2453
2450
 
2454
- function _array_like_to_array$3(arr, len) {
2451
+ function _array_like_to_array$4(arr, len) {
2455
2452
  if (len == null || len > arr.length) len = arr.length;
2456
2453
  for(var i = 0, arr2 = new Array(len); i < len; i++)arr2[i] = arr[i];
2457
2454
  return arr2;
2458
2455
  }
2459
- function _array_without_holes(arr) {
2460
- if (Array.isArray(arr)) return _array_like_to_array$3(arr);
2456
+ function _array_without_holes$1(arr) {
2457
+ if (Array.isArray(arr)) return _array_like_to_array$4(arr);
2461
2458
  }
2462
- function _iterable_to_array$1(iter) {
2459
+ function _iterable_to_array$2(iter) {
2463
2460
  if (typeof Symbol !== "undefined" && iter[Symbol.iterator] != null || iter["@@iterator"] != null) return Array.from(iter);
2464
2461
  }
2465
- function _non_iterable_spread() {
2462
+ function _non_iterable_spread$1() {
2466
2463
  throw new TypeError("Invalid attempt to spread non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
2467
2464
  }
2468
- function _object_without_properties(source, excluded) {
2465
+ function _object_without_properties$1(source, excluded) {
2469
2466
  if (source == null) return {};
2470
- var target = _object_without_properties_loose(source, excluded);
2467
+ var target = _object_without_properties_loose$1(source, excluded);
2471
2468
  var key, i;
2472
2469
  if (Object.getOwnPropertySymbols) {
2473
2470
  var sourceSymbolKeys = Object.getOwnPropertySymbols(source);
@@ -2480,7 +2477,7 @@ function _object_without_properties(source, excluded) {
2480
2477
  }
2481
2478
  return target;
2482
2479
  }
2483
- function _object_without_properties_loose(source, excluded) {
2480
+ function _object_without_properties_loose$1(source, excluded) {
2484
2481
  if (source == null) return {};
2485
2482
  var target = {};
2486
2483
  var sourceKeys = Object.keys(source);
@@ -2492,21 +2489,21 @@ function _object_without_properties_loose(source, excluded) {
2492
2489
  }
2493
2490
  return target;
2494
2491
  }
2495
- function _to_consumable_array(arr) {
2496
- return _array_without_holes(arr) || _iterable_to_array$1(arr) || _unsupported_iterable_to_array$3(arr) || _non_iterable_spread();
2492
+ function _to_consumable_array$1(arr) {
2493
+ return _array_without_holes$1(arr) || _iterable_to_array$2(arr) || _unsupported_iterable_to_array$4(arr) || _non_iterable_spread$1();
2497
2494
  }
2498
- function _unsupported_iterable_to_array$3(o, minLen) {
2495
+ function _unsupported_iterable_to_array$4(o, minLen) {
2499
2496
  if (!o) return;
2500
- if (typeof o === "string") return _array_like_to_array$3(o, minLen);
2497
+ if (typeof o === "string") return _array_like_to_array$4(o, minLen);
2501
2498
  var n = Object.prototype.toString.call(o).slice(8, -1);
2502
2499
  if (n === "Object" && o.constructor) n = o.constructor.name;
2503
2500
  if (n === "Map" || n === "Set") return Array.from(n);
2504
- if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _array_like_to_array$3(o, minLen);
2501
+ if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _array_like_to_array$4(o, minLen);
2505
2502
  }
2506
2503
  // Helpers
2507
2504
  function omitXpertRelations(xpert) {
2508
2505
  // eslint-disable-next-line @typescript-eslint/no-unused-vars
2509
- var _ref = xpert !== null && xpert !== void 0 ? xpert : {}; _ref.draft; _ref.agent; _ref.agents; _ref.executors; _ref.leaders; _ref.knowledgebases; _ref.knowledgebase; _ref.environment; _ref.integrations; _ref.toolsets; _ref.managers; var rest = _object_without_properties(_ref, [
2506
+ var _ref = xpert !== null && xpert !== void 0 ? xpert : {}; _ref.draft; _ref.agent; _ref.agents; _ref.executors; _ref.leaders; _ref.knowledgebases; _ref.knowledgebase; _ref.environment; _ref.integrations; _ref.toolsets; _ref.managers; var rest = _object_without_properties$1(_ref, [
2510
2507
  "draft",
2511
2508
  "agent",
2512
2509
  "agents",
@@ -2570,12 +2567,12 @@ function locateNodes(nodes, position) {
2570
2567
  }) // Node height min 70
2571
2568
  ;
2572
2569
  var xRange = {
2573
- min: (_Math = Math).min.apply(_Math, _to_consumable_array(x0Positions)),
2574
- max: (_Math1 = Math).max.apply(_Math1, _to_consumable_array(x1Positions))
2570
+ min: (_Math = Math).min.apply(_Math, _to_consumable_array$1(x0Positions)),
2571
+ max: (_Math1 = Math).max.apply(_Math1, _to_consumable_array$1(x1Positions))
2575
2572
  };
2576
2573
  var yRange = {
2577
- min: (_Math2 = Math).min.apply(_Math2, _to_consumable_array(y0Positions)),
2578
- max: (_Math3 = Math).max.apply(_Math3, _to_consumable_array(y1Positions))
2574
+ min: (_Math2 = Math).min.apply(_Math2, _to_consumable_array$1(y0Positions)),
2575
+ max: (_Math3 = Math).max.apply(_Math3, _to_consumable_array$1(y1Positions))
2579
2576
  };
2580
2577
  var size = {
2581
2578
  width: xRange.max - xRange.min + 50,
@@ -2612,9 +2609,9 @@ function locateNodes(nodes, position) {
2612
2609
  }
2613
2610
  if ((_xpert_agents = xpert.agents) === null || _xpert_agents === void 0 ? void 0 : _xpert_agents.length) {
2614
2611
  var _agents;
2615
- (_agents = agents).push.apply(_agents, _to_consumable_array(xpert.agents));
2612
+ (_agents = agents).push.apply(_agents, _to_consumable_array$1(xpert.agents));
2616
2613
  }
2617
- (_nodes = nodes).push.apply(_nodes, _to_consumable_array(agents.map(function(_) {
2614
+ (_nodes = nodes).push.apply(_nodes, _to_consumable_array$1(agents.map(function(_) {
2618
2615
  var _xpert_options_agent___key, _xpert_options_agent, _xpert_options, _xpert_options_agent___key1, _xpert_options_agent1, _xpert_options1;
2619
2616
  var _xpert_options_agent___key_position;
2620
2617
  return {
@@ -2646,7 +2643,7 @@ function locateNodes(nodes, position) {
2646
2643
  });
2647
2644
  });
2648
2645
  var _xpert_knowledgebases;
2649
- (_nodes1 = nodes).push.apply(_nodes1, _to_consumable_array(((_xpert_knowledgebases = xpert.knowledgebases) !== null && _xpert_knowledgebases !== void 0 ? _xpert_knowledgebases : []).map(function(x) {
2646
+ (_nodes1 = nodes).push.apply(_nodes1, _to_consumable_array$1(((_xpert_knowledgebases = xpert.knowledgebases) !== null && _xpert_knowledgebases !== void 0 ? _xpert_knowledgebases : []).map(function(x) {
2650
2647
  var _xpert_options_knowledge_x_id, _xpert_options_knowledge, _xpert_options, _xpert_options_knowledge_x_id1, _xpert_options_knowledge1, _xpert_options1;
2651
2648
  var _xpert_options_knowledge_x_id_position;
2652
2649
  return {
@@ -2661,7 +2658,7 @@ function locateNodes(nodes, position) {
2661
2658
  };
2662
2659
  })));
2663
2660
  var _xpert_toolsets;
2664
- (_nodes2 = nodes).push.apply(_nodes2, _to_consumable_array(((_xpert_toolsets = xpert.toolsets) !== null && _xpert_toolsets !== void 0 ? _xpert_toolsets : []).map(function(x) {
2661
+ (_nodes2 = nodes).push.apply(_nodes2, _to_consumable_array$1(((_xpert_toolsets = xpert.toolsets) !== null && _xpert_toolsets !== void 0 ? _xpert_toolsets : []).map(function(x) {
2665
2662
  var _xpert_options_toolset_x_id, _xpert_options_toolset, _xpert_options, _xpert_options_toolset_x_id1, _xpert_options_toolset1, _xpert_options1;
2666
2663
  var _xpert_options_toolset_x_id_position;
2667
2664
  return {
@@ -2698,12 +2695,12 @@ function locateNodes(nodes, position) {
2698
2695
  }) // Node height min 70
2699
2696
  ;
2700
2697
  var xRange = {
2701
- min: (_Math = Math).min.apply(_Math, _to_consumable_array(x0Positions)),
2702
- max: (_Math1 = Math).max.apply(_Math1, _to_consumable_array(x1Positions))
2698
+ min: (_Math = Math).min.apply(_Math, _to_consumable_array$1(x0Positions)),
2699
+ max: (_Math1 = Math).max.apply(_Math1, _to_consumable_array$1(x1Positions))
2703
2700
  };
2704
2701
  var yRange = {
2705
- min: (_Math2 = Math).min.apply(_Math2, _to_consumable_array(y0Positions)),
2706
- max: (_Math3 = Math).max.apply(_Math3, _to_consumable_array(y1Positions))
2702
+ min: (_Math2 = Math).min.apply(_Math2, _to_consumable_array$1(y0Positions)),
2703
+ max: (_Math3 = Math).max.apply(_Math3, _to_consumable_array$1(y1Positions))
2707
2704
  };
2708
2705
  var size = {
2709
2706
  width: xRange.max - xRange.min + 50,
@@ -2841,9 +2838,10 @@ exports.MCPServerType = void 0;
2841
2838
  MCPServerType["SSE"] = "sse";
2842
2839
  MCPServerType["STDIO"] = "stdio";
2843
2840
  MCPServerType["CODE"] = "code";
2841
+ MCPServerType["HTTP"] = "http";
2844
2842
  })(exports.MCPServerType || (exports.MCPServerType = {}));
2845
2843
 
2846
- function _define_property$1(obj, key, value) {
2844
+ function _define_property$2(obj, key, value) {
2847
2845
  if (key in obj) {
2848
2846
  Object.defineProperty(obj, key, {
2849
2847
  value: value,
@@ -2856,7 +2854,7 @@ function _define_property$1(obj, key, value) {
2856
2854
  }
2857
2855
  return obj;
2858
2856
  }
2859
- function _object_spread(target) {
2857
+ function _object_spread$1(target) {
2860
2858
  for(var i = 1; i < arguments.length; i++){
2861
2859
  var source = arguments[i] != null ? arguments[i] : {};
2862
2860
  var ownKeys = Object.keys(source);
@@ -2866,12 +2864,12 @@ function _object_spread(target) {
2866
2864
  }));
2867
2865
  }
2868
2866
  ownKeys.forEach(function(key) {
2869
- _define_property$1(target, key, source[key]);
2867
+ _define_property$2(target, key, source[key]);
2870
2868
  });
2871
2869
  }
2872
2870
  return target;
2873
2871
  }
2874
- function ownKeys(object, enumerableOnly) {
2872
+ function ownKeys$1(object, enumerableOnly) {
2875
2873
  var keys = Object.keys(object);
2876
2874
  if (Object.getOwnPropertySymbols) {
2877
2875
  var symbols = Object.getOwnPropertySymbols(object);
@@ -2879,12 +2877,12 @@ function ownKeys(object, enumerableOnly) {
2879
2877
  }
2880
2878
  return keys;
2881
2879
  }
2882
- function _object_spread_props(target, source) {
2880
+ function _object_spread_props$1(target, source) {
2883
2881
  source = source != null ? source : {};
2884
2882
  if (Object.getOwnPropertyDescriptors) {
2885
2883
  Object.defineProperties(target, Object.getOwnPropertyDescriptors(source));
2886
2884
  } else {
2887
- ownKeys(Object(source)).forEach(function(key) {
2885
+ ownKeys$1(Object(source)).forEach(function(key) {
2888
2886
  Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key));
2889
2887
  });
2890
2888
  }
@@ -2907,8 +2905,8 @@ function _object_spread_props(target, source) {
2907
2905
  var doc = _step.value;
2908
2906
  var _doc_metadata;
2909
2907
  if ((_doc_metadata = doc.metadata) === null || _doc_metadata === void 0 ? void 0 : _doc_metadata.chunkId) {
2910
- map.set(doc.metadata.chunkId, _object_spread_props(_object_spread({}, doc), {
2911
- metadata: _object_spread_props(_object_spread({}, doc.metadata), {
2908
+ map.set(doc.metadata.chunkId, _object_spread_props$1(_object_spread$1({}, doc), {
2909
+ metadata: _object_spread_props$1(_object_spread$1({}, doc.metadata), {
2912
2910
  children: []
2913
2911
  })
2914
2912
  }));
@@ -3051,6 +3049,444 @@ function getAgentMiddlewareNodes(graph, agentKey) {
3051
3049
  return middlewares;
3052
3050
  }
3053
3051
 
3052
+ function _array_like_to_array$3(arr, len) {
3053
+ if (len == null || len > arr.length) len = arr.length;
3054
+ for(var i = 0, arr2 = new Array(len); i < len; i++)arr2[i] = arr[i];
3055
+ return arr2;
3056
+ }
3057
+ function _array_with_holes$3(arr) {
3058
+ if (Array.isArray(arr)) return arr;
3059
+ }
3060
+ function _array_without_holes(arr) {
3061
+ if (Array.isArray(arr)) return _array_like_to_array$3(arr);
3062
+ }
3063
+ function _define_property$1(obj, key, value) {
3064
+ if (key in obj) {
3065
+ Object.defineProperty(obj, key, {
3066
+ value: value,
3067
+ enumerable: true,
3068
+ configurable: true,
3069
+ writable: true
3070
+ });
3071
+ } else {
3072
+ obj[key] = value;
3073
+ }
3074
+ return obj;
3075
+ }
3076
+ function _iterable_to_array$1(iter) {
3077
+ if (typeof Symbol !== "undefined" && iter[Symbol.iterator] != null || iter["@@iterator"] != null) return Array.from(iter);
3078
+ }
3079
+ function _iterable_to_array_limit$2(arr, i) {
3080
+ var _i = arr == null ? null : typeof Symbol !== "undefined" && arr[Symbol.iterator] || arr["@@iterator"];
3081
+ if (_i == null) return;
3082
+ var _arr = [];
3083
+ var _n = true;
3084
+ var _d = false;
3085
+ var _s, _e;
3086
+ try {
3087
+ for(_i = _i.call(arr); !(_n = (_s = _i.next()).done); _n = true){
3088
+ _arr.push(_s.value);
3089
+ if (i && _arr.length === i) break;
3090
+ }
3091
+ } catch (err) {
3092
+ _d = true;
3093
+ _e = err;
3094
+ } finally{
3095
+ try {
3096
+ if (!_n && _i["return"] != null) _i["return"]();
3097
+ } finally{
3098
+ if (_d) throw _e;
3099
+ }
3100
+ }
3101
+ return _arr;
3102
+ }
3103
+ function _non_iterable_rest$3() {
3104
+ throw new TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
3105
+ }
3106
+ function _non_iterable_spread() {
3107
+ throw new TypeError("Invalid attempt to spread non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
3108
+ }
3109
+ function _object_spread(target) {
3110
+ for(var i = 1; i < arguments.length; i++){
3111
+ var source = arguments[i] != null ? arguments[i] : {};
3112
+ var ownKeys = Object.keys(source);
3113
+ if (typeof Object.getOwnPropertySymbols === "function") {
3114
+ ownKeys = ownKeys.concat(Object.getOwnPropertySymbols(source).filter(function(sym) {
3115
+ return Object.getOwnPropertyDescriptor(source, sym).enumerable;
3116
+ }));
3117
+ }
3118
+ ownKeys.forEach(function(key) {
3119
+ _define_property$1(target, key, source[key]);
3120
+ });
3121
+ }
3122
+ return target;
3123
+ }
3124
+ function ownKeys(object, enumerableOnly) {
3125
+ var keys = Object.keys(object);
3126
+ if (Object.getOwnPropertySymbols) {
3127
+ var symbols = Object.getOwnPropertySymbols(object);
3128
+ keys.push.apply(keys, symbols);
3129
+ }
3130
+ return keys;
3131
+ }
3132
+ function _object_spread_props(target, source) {
3133
+ source = source != null ? source : {};
3134
+ if (Object.getOwnPropertyDescriptors) {
3135
+ Object.defineProperties(target, Object.getOwnPropertyDescriptors(source));
3136
+ } else {
3137
+ ownKeys(Object(source)).forEach(function(key) {
3138
+ Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key));
3139
+ });
3140
+ }
3141
+ return target;
3142
+ }
3143
+ function _object_without_properties(source, excluded) {
3144
+ if (source == null) return {};
3145
+ var target = _object_without_properties_loose(source, excluded);
3146
+ var key, i;
3147
+ if (Object.getOwnPropertySymbols) {
3148
+ var sourceSymbolKeys = Object.getOwnPropertySymbols(source);
3149
+ for(i = 0; i < sourceSymbolKeys.length; i++){
3150
+ key = sourceSymbolKeys[i];
3151
+ if (excluded.indexOf(key) >= 0) continue;
3152
+ if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue;
3153
+ target[key] = source[key];
3154
+ }
3155
+ }
3156
+ return target;
3157
+ }
3158
+ function _object_without_properties_loose(source, excluded) {
3159
+ if (source == null) return {};
3160
+ var target = {};
3161
+ var sourceKeys = Object.keys(source);
3162
+ var key, i;
3163
+ for(i = 0; i < sourceKeys.length; i++){
3164
+ key = sourceKeys[i];
3165
+ if (excluded.indexOf(key) >= 0) continue;
3166
+ target[key] = source[key];
3167
+ }
3168
+ return target;
3169
+ }
3170
+ function _sliced_to_array$2(arr, i) {
3171
+ return _array_with_holes$3(arr) || _iterable_to_array_limit$2(arr, i) || _unsupported_iterable_to_array$3(arr, i) || _non_iterable_rest$3();
3172
+ }
3173
+ function _to_consumable_array(arr) {
3174
+ return _array_without_holes(arr) || _iterable_to_array$1(arr) || _unsupported_iterable_to_array$3(arr) || _non_iterable_spread();
3175
+ }
3176
+ function _unsupported_iterable_to_array$3(o, minLen) {
3177
+ if (!o) return;
3178
+ if (typeof o === "string") return _array_like_to_array$3(o, minLen);
3179
+ var n = Object.prototype.toString.call(o).slice(8, -1);
3180
+ if (n === "Object" && o.constructor) n = o.constructor.name;
3181
+ if (n === "Map" || n === "Set") return Array.from(n);
3182
+ if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _array_like_to_array$3(o, minLen);
3183
+ }
3184
+ function isNil(value) {
3185
+ return value === null || value === undefined;
3186
+ }
3187
+ function isTextContent(content) {
3188
+ return !!content && typeof content === "object" && content.type === "text";
3189
+ }
3190
+ function isReasoningContent(content) {
3191
+ return !!content && typeof content === "object" && content.type === "reasoning";
3192
+ }
3193
+ function isComponentContent(content) {
3194
+ return !!content && typeof content === "object" && content.type === "component";
3195
+ }
3196
+ function inferContentSource(content) {
3197
+ if (typeof content === "string") {
3198
+ return "text";
3199
+ }
3200
+ switch(content === null || content === void 0 ? void 0 : content.type){
3201
+ case "text":
3202
+ return "text";
3203
+ case "reasoning":
3204
+ return "reasoning";
3205
+ case "component":
3206
+ return "component";
3207
+ case "memory":
3208
+ return "memory";
3209
+ default:
3210
+ return "content";
3211
+ }
3212
+ }
3213
+ function mapJoinHint(hint) {
3214
+ switch(hint){
3215
+ case "none":
3216
+ return "";
3217
+ case "space":
3218
+ return " ";
3219
+ case "line":
3220
+ return "\n";
3221
+ case "paragraph":
3222
+ return "\n\n";
3223
+ default:
3224
+ return "";
3225
+ }
3226
+ }
3227
+ function endsWithCodeFence(text) {
3228
+ var normalized = (text !== null && text !== void 0 ? text : "").replace(/[ \t]+$/g, "");
3229
+ return normalized.endsWith("```");
3230
+ }
3231
+ function shouldJoinWithoutSeparator(previous, current) {
3232
+ return !!(previous === null || previous === void 0 ? void 0 : previous.streamId) && previous.source === current.source && previous.streamId === current.streamId;
3233
+ }
3234
+ function getSeparator(previousType, previousText, nextText, joinHint) {
3235
+ if (!nextText || /^\s/.test(nextText)) {
3236
+ return "";
3237
+ }
3238
+ if (joinHint) {
3239
+ return mapJoinHint(joinHint);
3240
+ }
3241
+ if (previousType === "component") {
3242
+ return "\n\n";
3243
+ }
3244
+ if (endsWithCodeFence(previousText)) {
3245
+ return "\n";
3246
+ }
3247
+ if (previousText && !/[\s\n]$/.test(previousText)) {
3248
+ return "\n";
3249
+ }
3250
+ return "";
3251
+ }
3252
+ function normalizeIncomingContent(content, context) {
3253
+ if (typeof content !== "string") {
3254
+ return content;
3255
+ }
3256
+ return _object_spread({
3257
+ type: "text",
3258
+ text: content
3259
+ }, context.streamId ? {
3260
+ id: context.streamId
3261
+ } : {});
3262
+ }
3263
+ function ensureArrayContent(content) {
3264
+ if (Array.isArray(content)) {
3265
+ return content;
3266
+ }
3267
+ if (typeof content === "string" && content.length > 0) {
3268
+ return [
3269
+ {
3270
+ type: "text",
3271
+ text: content
3272
+ }
3273
+ ];
3274
+ }
3275
+ return [];
3276
+ }
3277
+ function stringifySingle(content) {
3278
+ if (content.type === "text") {
3279
+ return content.text;
3280
+ }
3281
+ if (content.type === "component") {
3282
+ return JSON.stringify(content.data);
3283
+ }
3284
+ return JSON.stringify(content);
3285
+ }
3286
+ function filterText(content) {
3287
+ if (typeof content === "string") {
3288
+ return content;
3289
+ }
3290
+ if ((content === null || content === void 0 ? void 0 : content.type) === "text") {
3291
+ return content.text;
3292
+ }
3293
+ return "";
3294
+ }
3295
+ function mergeComponentData(previous, incoming) {
3296
+ var _previous_data, _incoming_data;
3297
+ var _incoming_data1;
3298
+ var mergedIncomingData = Object.entries((_incoming_data1 = incoming.data) !== null && _incoming_data1 !== void 0 ? _incoming_data1 : {}).reduce(function(acc, param) {
3299
+ var _param = _sliced_to_array$2(param, 2), key = _param[0], value = _param[1];
3300
+ if (!isNil(value)) {
3301
+ acc[key] = value;
3302
+ }
3303
+ return acc;
3304
+ }, {});
3305
+ var _previous_data1;
3306
+ return _object_spread_props(_object_spread({}, previous, incoming), {
3307
+ data: _object_spread_props(_object_spread({}, (_previous_data1 = previous.data) !== null && _previous_data1 !== void 0 ? _previous_data1 : {}, mergedIncomingData), {
3308
+ created_date: ((_previous_data = previous.data) === null || _previous_data === void 0 ? void 0 : _previous_data.created_date) || ((_incoming_data = incoming.data) === null || _incoming_data === void 0 ? void 0 : _incoming_data.created_date)
3309
+ })
3310
+ });
3311
+ }
3312
+ function inferMessageAppendContext(content, fallbackSource) {
3313
+ return _object_spread({
3314
+ source: fallbackSource !== null && fallbackSource !== void 0 ? fallbackSource : inferContentSource(content)
3315
+ }, typeof content !== "string" && (content === null || content === void 0 ? void 0 : content.id) ? {
3316
+ streamId: String(content.id)
3317
+ } : {});
3318
+ }
3319
+ function resolveMessageAppendContext(options) {
3320
+ var inferredContext = inferMessageAppendContext(options.incoming, options.fallbackSource);
3321
+ var appendContext = typeof options.incoming === "string" && !inferredContext.streamId && options.fallbackStreamId ? _object_spread_props(_object_spread({}, inferredContext), {
3322
+ streamId: options.fallbackStreamId
3323
+ }) : inferredContext;
3324
+ var messageContext = shouldJoinWithoutSeparator(options.previous, appendContext) ? _object_spread_props(_object_spread({}, appendContext), {
3325
+ joinHint: "none"
3326
+ }) : appendContext;
3327
+ return {
3328
+ appendContext: appendContext,
3329
+ messageContext: messageContext
3330
+ };
3331
+ }
3332
+ /**
3333
+ * Stateful helper for streaming append.
3334
+ *
3335
+ * It keeps the previous append context and resolves the current one, so callers
3336
+ * can avoid passing `previous` manually for every chunk and still get stable
3337
+ * join behavior (for example, same source + same stream -> `joinHint: 'none'`).
3338
+ *
3339
+ * Call `reset()` at turn/session boundaries to prevent cross-turn contamination.
3340
+ */ function createMessageAppendContextTracker() {
3341
+ var initial = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : null;
3342
+ var previous = initial;
3343
+ return {
3344
+ resolve: function resolve(options) {
3345
+ var resolved = resolveMessageAppendContext(_object_spread_props(_object_spread({}, options), {
3346
+ previous: previous
3347
+ }));
3348
+ previous = resolved.appendContext;
3349
+ return resolved;
3350
+ },
3351
+ reset: function reset() {
3352
+ previous = null;
3353
+ },
3354
+ current: function current() {
3355
+ return previous;
3356
+ }
3357
+ };
3358
+ }
3359
+ /**
3360
+ * Append one incoming chunk into a chat message in place.
3361
+ *
3362
+ * Behavior:
3363
+ * - Keeps `aiMessage` object reference stable (caller may hold this object).
3364
+ * - Updates message properties with new references (`content`/`reasoning` arrays)
3365
+ * so UI change detection that relies on reference changes can react reliably.
3366
+ * - Applies context-aware merge rules for text/reasoning/component chunks.
3367
+ * - `previous` must be supplied by caller when same-stream join inference is needed.
3368
+ */ function appendMessageContent(aiMessage, incoming, context) {
3369
+ aiMessage.status = "answering";
3370
+ var _ref = context !== null && context !== void 0 ? context : {}, previous = _ref.previous, contextWithoutPrevious = _object_without_properties(_ref, [
3371
+ "previous"
3372
+ ]);
3373
+ var resolvedContext = _object_spread({}, inferMessageAppendContext(incoming), contextWithoutPrevious);
3374
+ var content = normalizeIncomingContent(incoming, resolvedContext);
3375
+ if (isReasoningContent(content)) {
3376
+ var _aiMessage_reasoning;
3377
+ var reasoning = (_aiMessage_reasoning = aiMessage.reasoning) !== null && _aiMessage_reasoning !== void 0 ? _aiMessage_reasoning : [];
3378
+ var lastReasoning = reasoning[reasoning.length - 1];
3379
+ if ((lastReasoning === null || lastReasoning === void 0 ? void 0 : lastReasoning.id) === content.id) {
3380
+ var mergedReasoning = _object_spread_props(_object_spread({}, lastReasoning), {
3381
+ text: "".concat(lastReasoning.text).concat(content.text)
3382
+ });
3383
+ aiMessage.reasoning = _to_consumable_array(reasoning.slice(0, reasoning.length - 1)).concat([
3384
+ mergedReasoning
3385
+ ]);
3386
+ } else {
3387
+ aiMessage.reasoning = _to_consumable_array(reasoning).concat([
3388
+ content
3389
+ ]);
3390
+ }
3391
+ aiMessage.status = "reasoning";
3392
+ return;
3393
+ }
3394
+ var chunks = ensureArrayContent(aiMessage.content);
3395
+ if (isTextContent(content)) {
3396
+ var _resolvedContext_joinHint;
3397
+ var joinHint = (_resolvedContext_joinHint = resolvedContext.joinHint) !== null && _resolvedContext_joinHint !== void 0 ? _resolvedContext_joinHint : shouldJoinWithoutSeparator(previous, resolvedContext) ? "none" : undefined;
3398
+ var lastContent = chunks[chunks.length - 1];
3399
+ if (isTextContent(lastContent) && (joinHint === "none" || !!content.id && !!lastContent.id && lastContent.id === content.id)) {
3400
+ var mergedLastContent = _object_spread(_object_spread_props(_object_spread({}, lastContent), {
3401
+ text: "".concat(lastContent.text).concat(content.text)
3402
+ }), !lastContent.id && content.id ? {
3403
+ id: content.id
3404
+ } : {});
3405
+ aiMessage.content = _to_consumable_array(chunks.slice(0, chunks.length - 1)).concat([
3406
+ mergedLastContent
3407
+ ]);
3408
+ return;
3409
+ }
3410
+ var _lastContent_type;
3411
+ var previousType = (_lastContent_type = lastContent === null || lastContent === void 0 ? void 0 : lastContent.type) !== null && _lastContent_type !== void 0 ? _lastContent_type : null;
3412
+ var previousText = isTextContent(lastContent) ? lastContent.text : "";
3413
+ var separator = getSeparator(previousType, previousText, content.text, joinHint);
3414
+ var appended = _object_spread_props(_object_spread({}, content), {
3415
+ text: separator + content.text
3416
+ });
3417
+ aiMessage.content = _to_consumable_array(chunks).concat([
3418
+ appended
3419
+ ]);
3420
+ return;
3421
+ }
3422
+ var nextChunks = _to_consumable_array(chunks);
3423
+ if (isComponentContent(content) && content.id) {
3424
+ var index = nextChunks.findIndex(function(item) {
3425
+ return isComponentContent(item) && item.id === content.id;
3426
+ });
3427
+ if (index > -1) {
3428
+ nextChunks[index] = mergeComponentData(nextChunks[index], content);
3429
+ } else {
3430
+ nextChunks.push(content);
3431
+ }
3432
+ } else {
3433
+ nextChunks.push(content);
3434
+ }
3435
+ aiMessage.content = nextChunks;
3436
+ }
3437
+ function appendMessagePlainText(accumulator, incoming, context) {
3438
+ var resolvedContext = _object_spread({}, inferMessageAppendContext(incoming), context !== null && context !== void 0 ? context : {});
3439
+ var nextText = filterText(incoming);
3440
+ if (!nextText) {
3441
+ return accumulator !== null && accumulator !== void 0 ? accumulator : "";
3442
+ }
3443
+ var previous = accumulator !== null && accumulator !== void 0 ? accumulator : "";
3444
+ var separator = getSeparator("text", previous, nextText, resolvedContext.joinHint);
3445
+ return previous + separator + nextText;
3446
+ }
3447
+ function stringifyMessageContent(content) {
3448
+ if (typeof content === "string") {
3449
+ return content;
3450
+ }
3451
+ if (Array.isArray(content)) {
3452
+ var result = "";
3453
+ var previousContext = null;
3454
+ content.forEach(function(item) {
3455
+ var itemContext = inferMessageAppendContext(item);
3456
+ var joinHint = shouldJoinWithoutSeparator(previousContext, itemContext) ? "none" : undefined;
3457
+ result = appendMessagePlainText(result, stringifySingle(item), _object_spread({}, itemContext, joinHint ? {
3458
+ joinHint: joinHint
3459
+ } : {}));
3460
+ previousContext = itemContext;
3461
+ });
3462
+ return result;
3463
+ }
3464
+ return stringifySingle(content);
3465
+ }
3466
+ function filterMessageText(content) {
3467
+ if (typeof content === "string") {
3468
+ return content;
3469
+ }
3470
+ if (Array.isArray(content)) {
3471
+ var result = "";
3472
+ var previousContext = null;
3473
+ content.forEach(function(item) {
3474
+ var nextText = filterText(item);
3475
+ if (!nextText) {
3476
+ return;
3477
+ }
3478
+ var itemContext = inferMessageAppendContext(item);
3479
+ var joinHint = shouldJoinWithoutSeparator(previousContext, itemContext) ? "none" : undefined;
3480
+ result = appendMessagePlainText(result, nextText, _object_spread({}, itemContext, joinHint ? {
3481
+ joinHint: joinHint
3482
+ } : {}));
3483
+ previousContext = itemContext;
3484
+ });
3485
+ return result || null;
3486
+ }
3487
+ return filterText(content) || null;
3488
+ }
3489
+
3054
3490
  exports.PermissionsEnum = void 0;
3055
3491
  (function(PermissionsEnum) {
3056
3492
  PermissionsEnum["PROFILE_EDIT"] = "PROFILE_EDIT";
@@ -3910,6 +4346,11 @@ exports.InterruptMessageType = void 0;
3910
4346
  InterruptMessageType["Select"] = "select";
3911
4347
  })(exports.InterruptMessageType || (exports.InterruptMessageType = {}));
3912
4348
 
4349
+ var PLUGIN_LEVEL = {
4350
+ SYSTEM: "system",
4351
+ ORGANIZATION: "organization"
4352
+ };
4353
+
3913
4354
  exports.AI_MODEL_TYPE_VARIABLE = AI_MODEL_TYPE_VARIABLE;
3914
4355
  exports.Attachment_Type_Options = Attachment_Type_Options;
3915
4356
  exports.CONTEXT_VARIABLE_CURRENTSTATE = CONTEXT_VARIABLE_CURRENTSTATE;
@@ -3947,6 +4388,7 @@ exports.MEMORY_PROFILE_PROMPT = MEMORY_PROFILE_PROMPT;
3947
4388
  exports.MEMORY_QA_PROMPT = MEMORY_QA_PROMPT;
3948
4389
  exports.OllamaEmbeddingsProviders = OllamaEmbeddingsProviders;
3949
4390
  exports.OpenAIEmbeddingsProviders = OpenAIEmbeddingsProviders;
4391
+ exports.PLUGIN_LEVEL = PLUGIN_LEVEL;
3950
4392
  exports.PermissionApprovalStatus = PermissionApprovalStatus;
3951
4393
  exports.PermissionGroups = PermissionGroups;
3952
4394
  exports.STANDARD_METADATA_FIELDS = STANDARD_METADATA_FIELDS;
@@ -3967,6 +4409,8 @@ exports.VariableOperations = VariableOperations;
3967
4409
  exports.agentLabel = agentLabel;
3968
4410
  exports.agentUniqueName = agentUniqueName;
3969
4411
  exports.allChannels = allChannels;
4412
+ exports.appendMessageContent = appendMessageContent;
4413
+ exports.appendMessagePlainText = appendMessagePlainText;
3970
4414
  exports.buildChunkTree = buildChunkTree;
3971
4415
  exports.channelName = channelName;
3972
4416
  exports.classificateDocumentCategory = classificateDocumentCategory;
@@ -3974,11 +4418,13 @@ exports.collectTreeLeaves = collectTreeLeaves;
3974
4418
  exports.configurableStoreNamespace = configurableStoreNamespace;
3975
4419
  exports.convertToUrlPath = convertToUrlPath;
3976
4420
  exports.createAgentConnections = createAgentConnections;
4421
+ exports.createMessageAppendContextTracker = createMessageAppendContextTracker;
3977
4422
  exports.createXpertGraph = createXpertGraph;
3978
4423
  exports.createXpertNodes = createXpertNodes;
3979
4424
  exports.embeddingCubeCollectionName = embeddingCubeCollectionName;
3980
4425
  exports.extractSemanticModelDraft = extractSemanticModelDraft;
3981
4426
  exports.figureOutXpert = figureOutXpert;
4427
+ exports.filterMessageText = filterMessageText;
3982
4428
  exports.findStartNodes = findStartNodes;
3983
4429
  exports.genJSONParseKey = genJSONParseKey;
3984
4430
  exports.genJSONStringifyKey = genJSONStringifyKey;
@@ -4012,6 +4458,7 @@ exports.getToolLabel = getToolLabel;
4012
4458
  exports.getVariableSchema = getVariableSchema;
4013
4459
  exports.getWorkflowTriggers = getWorkflowTriggers;
4014
4460
  exports.getWorkspaceFromRunnable = getWorkspaceFromRunnable;
4461
+ exports.inferMessageAppendContext = inferMessageAppendContext;
4015
4462
  exports.isAgentKey = isAgentKey;
4016
4463
  exports.isAudioType = isAudioType;
4017
4464
  exports.isDocumentSheet = isDocumentSheet;
@@ -4031,8 +4478,10 @@ exports.locateNodes = locateNodes;
4031
4478
  exports.mapTranslationLanguage = mapTranslationLanguage;
4032
4479
  exports.messageContentText = messageContentText;
4033
4480
  exports.omitXpertRelations = omitXpertRelations;
4481
+ exports.resolveMessageAppendContext = resolveMessageAppendContext;
4034
4482
  exports.setStateVariable = setStateVariable;
4035
4483
  exports.shortTitle = shortTitle;
4484
+ exports.stringifyMessageContent = stringifyMessageContent;
4036
4485
  exports.transformInstallation = transformInstallation;
4037
4486
  exports.uuid = uuid;
4038
4487
  exports.workflowNodeIdentifier = workflowNodeIdentifier;