react-instantsearch-core 7.24.0 → 7.25.0

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.
@@ -4,4 +4,4 @@ Object.defineProperty(exports, "__esModule", {
4
4
  value: true
5
5
  });
6
6
  exports.default = void 0;
7
- var _default = exports.default = '7.24.0';
7
+ var _default = exports.default = '7.25.0';
@@ -1,2 +1,2 @@
1
- declare const _default: "7.24.0";
1
+ declare const _default: "7.25.0";
2
2
  export default _default;
@@ -1 +1 @@
1
- export default '7.24.0';
1
+ export default '7.25.0';
@@ -7,7 +7,7 @@
7
7
 
8
8
  var React__default = 'default' in React ? React['default'] : React;
9
9
 
10
- var version = '7.24.0';
10
+ var version = '7.25.0';
11
11
 
12
12
  function _arrayLikeToArray(r, a) {
13
13
  (null == a || a > r.length) && (a = r.length);
@@ -12839,7 +12839,7 @@
12839
12839
  };
12840
12840
  }
12841
12841
 
12842
- var version$2 = '4.88.0';
12842
+ var version$2 = '4.89.0';
12843
12843
 
12844
12844
  function _typeof$l(o) {
12845
12845
  "@babel/helpers - typeof";
@@ -16074,6 +16074,8 @@
16074
16074
  return _createClass$5(Chat);
16075
16075
  }(AbstractChat);
16076
16076
 
16077
+ var SearchIndexToolType = 'algolia_search_index';
16078
+
16077
16079
  function flat$1(arr) {
16078
16080
  return arr.reduce(function (acc, array) {
16079
16081
  return acc.concat(array);
@@ -16406,6 +16408,11 @@
16406
16408
  onToolCall: function onToolCall(_ref5) {
16407
16409
  var toolCall = _ref5.toolCall;
16408
16410
  var tool = tools[toolCall.toolName];
16411
+
16412
+ // Compatibility shim with Algolia MCP Server search tool
16413
+ if (!tool && toolCall.toolName.startsWith("".concat(SearchIndexToolType, "_"))) {
16414
+ tool = tools[SearchIndexToolType];
16415
+ }
16409
16416
  if (!tool) {
16410
16417
  return _chatInstance.addToolResult({
16411
16418
  output: "No tool implemented for \"".concat(toolCall.toolName, "\"."),