@yourgpt/copilot-sdk 2.0.2-beta.1 → 2.0.2-beta.2

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 (83) hide show
  1. package/dist/{chunk-DVC63PGD.cjs → chunk-7K7HZMP4.cjs} +15 -5
  2. package/dist/chunk-7K7HZMP4.cjs.map +1 -0
  3. package/dist/{chunk-Z7PHGSJT.js → chunk-7XFFRV7D.js} +4 -4
  4. package/dist/{chunk-Z7PHGSJT.js.map → chunk-7XFFRV7D.js.map} +1 -1
  5. package/dist/{chunk-4WWWMNUA.js → chunk-BH7MNDWW.js} +15 -5
  6. package/dist/chunk-BH7MNDWW.js.map +1 -0
  7. package/dist/{chunk-J4OMGO5O.js → chunk-BKO7DSPU.js} +3 -2
  8. package/dist/chunk-BKO7DSPU.js.map +1 -0
  9. package/dist/{chunk-W74OTXXX.cjs → chunk-CEKAYA2Q.cjs} +3 -2
  10. package/dist/chunk-CEKAYA2Q.cjs.map +1 -0
  11. package/dist/{chunk-RBZXLBGI.cjs → chunk-H5XMKBBA.cjs} +30 -30
  12. package/dist/{chunk-RBZXLBGI.cjs.map → chunk-H5XMKBBA.cjs.map} +1 -1
  13. package/dist/{chunk-3YKHVLNP.js → chunk-IXFV6AW6.js} +4 -4
  14. package/dist/{chunk-3YKHVLNP.js.map → chunk-IXFV6AW6.js.map} +1 -1
  15. package/dist/{chunk-TX7CGITI.cjs → chunk-UIWFYMAO.cjs} +5 -5
  16. package/dist/{chunk-TX7CGITI.cjs.map → chunk-UIWFYMAO.cjs.map} +1 -1
  17. package/dist/{chunk-DUPNYVBP.cjs → chunk-UOWLKFXK.cjs} +23 -23
  18. package/dist/{chunk-DUPNYVBP.cjs.map → chunk-UOWLKFXK.cjs.map} +1 -1
  19. package/dist/{chunk-6BXQFCK3.js → chunk-ZPYQDMUX.js} +3 -3
  20. package/dist/{chunk-6BXQFCK3.js.map → chunk-ZPYQDMUX.js.map} +1 -1
  21. package/dist/core/index.cjs +80 -80
  22. package/dist/core/index.d.cts +3 -3
  23. package/dist/core/index.d.ts +3 -3
  24. package/dist/core/index.js +3 -3
  25. package/dist/{index-DOlhSb79.d.cts → index-2VtgKM8S.d.cts} +1 -1
  26. package/dist/{index-DBNh0jhE.d.ts → index-pWEH7pUE.d.ts} +1 -1
  27. package/dist/mcp/index.cjs +47 -47
  28. package/dist/mcp/index.d.cts +3 -3
  29. package/dist/mcp/index.d.ts +3 -3
  30. package/dist/mcp/index.js +2 -2
  31. package/dist/react/index.cjs +50 -50
  32. package/dist/react/index.d.cts +4 -4
  33. package/dist/react/index.d.ts +4 -4
  34. package/dist/react/index.js +5 -5
  35. package/dist/tools/anthropic/index.d.cts +1 -1
  36. package/dist/tools/anthropic/index.d.ts +1 -1
  37. package/dist/tools/brave/index.cjs +2 -2
  38. package/dist/tools/brave/index.d.cts +1 -1
  39. package/dist/tools/brave/index.d.ts +1 -1
  40. package/dist/tools/brave/index.js +1 -1
  41. package/dist/tools/exa/index.cjs +2 -2
  42. package/dist/tools/exa/index.d.cts +1 -1
  43. package/dist/tools/exa/index.d.ts +1 -1
  44. package/dist/tools/exa/index.js +1 -1
  45. package/dist/tools/google/index.cjs +2 -2
  46. package/dist/tools/google/index.d.cts +1 -1
  47. package/dist/tools/google/index.d.ts +1 -1
  48. package/dist/tools/google/index.js +1 -1
  49. package/dist/tools/openai/index.cjs +2 -2
  50. package/dist/tools/openai/index.d.cts +1 -1
  51. package/dist/tools/openai/index.d.ts +1 -1
  52. package/dist/tools/openai/index.js +1 -1
  53. package/dist/tools/searxng/index.cjs +2 -2
  54. package/dist/tools/searxng/index.d.cts +1 -1
  55. package/dist/tools/searxng/index.d.ts +1 -1
  56. package/dist/tools/searxng/index.js +1 -1
  57. package/dist/tools/serper/index.cjs +2 -2
  58. package/dist/tools/serper/index.d.cts +1 -1
  59. package/dist/tools/serper/index.d.ts +1 -1
  60. package/dist/tools/serper/index.js +1 -1
  61. package/dist/tools/tavily/index.cjs +2 -2
  62. package/dist/tools/tavily/index.d.cts +1 -1
  63. package/dist/tools/tavily/index.d.ts +1 -1
  64. package/dist/tools/tavily/index.js +1 -1
  65. package/dist/tools/web-search/index.cjs +3 -3
  66. package/dist/tools/web-search/index.d.cts +2 -2
  67. package/dist/tools/web-search/index.d.ts +2 -2
  68. package/dist/tools/web-search/index.js +2 -2
  69. package/dist/{tools-EiPWA9Ay.d.ts → tools-DDWrco4h.d.cts} +9 -0
  70. package/dist/{tools-EiPWA9Ay.d.cts → tools-DDWrco4h.d.ts} +9 -0
  71. package/dist/{types-iBkPICvQ.d.ts → types-Cizh9K_f.d.ts} +1 -1
  72. package/dist/{types-CKA6U74u.d.cts → types-DjSfYNKj.d.cts} +1 -1
  73. package/dist/ui/index.cjs +16 -12
  74. package/dist/ui/index.cjs.map +1 -1
  75. package/dist/ui/index.d.cts +1 -1
  76. package/dist/ui/index.d.ts +1 -1
  77. package/dist/ui/index.js +12 -8
  78. package/dist/ui/index.js.map +1 -1
  79. package/package.json +1 -1
  80. package/dist/chunk-4WWWMNUA.js.map +0 -1
  81. package/dist/chunk-DVC63PGD.cjs.map +0 -1
  82. package/dist/chunk-J4OMGO5O.js.map +0 -1
  83. package/dist/chunk-W74OTXXX.cjs.map +0 -1
@@ -1,6 +1,6 @@
1
1
  'use strict';
2
2
 
3
- var chunkW74OTXXX_cjs = require('../../chunk-W74OTXXX.cjs');
3
+ var chunkCEKAYA2Q_cjs = require('../../chunk-CEKAYA2Q.cjs');
4
4
  var chunkASV6JLYG_cjs = require('../../chunk-ASV6JLYG.cjs');
5
5
  require('../../chunk-CBAHCI4R.cjs');
6
6
  require('../../chunk-MEBXW75C.cjs');
@@ -70,7 +70,7 @@ function braveSearch(config) {
70
70
  };
71
71
  } catch (error) {
72
72
  const errorMessage = error instanceof Error ? error.message : "Web search failed";
73
- return chunkW74OTXXX_cjs.failure(errorMessage);
73
+ return chunkCEKAYA2Q_cjs.failure(errorMessage);
74
74
  }
75
75
  }
76
76
  };
@@ -1,4 +1,4 @@
1
- import { T as ToolDefinition } from '../../tools-EiPWA9Ay.cjs';
1
+ import { T as ToolDefinition } from '../../tools-DDWrco4h.cjs';
2
2
  export { b as braveProvider } from '../../brave-DdnWb7Gb.cjs';
3
3
  import '../../types-ZguuKEs_.cjs';
4
4
 
@@ -1,4 +1,4 @@
1
- import { T as ToolDefinition } from '../../tools-EiPWA9Ay.js';
1
+ import { T as ToolDefinition } from '../../tools-DDWrco4h.js';
2
2
  export { b as braveProvider } from '../../brave-DsI9n7Wr.js';
3
3
  import '../../types-ZguuKEs_.js';
4
4
 
@@ -1,4 +1,4 @@
1
- import { failure } from '../../chunk-J4OMGO5O.js';
1
+ import { failure } from '../../chunk-BKO7DSPU.js';
2
2
  import { formatSearchResultsForAI, summarizeSearchResults } from '../../chunk-XGITAEXU.js';
3
3
  import '../../chunk-7W7QLZNC.js';
4
4
  import '../../chunk-CEOMTQTP.js';
@@ -1,6 +1,6 @@
1
1
  'use strict';
2
2
 
3
- var chunkW74OTXXX_cjs = require('../../chunk-W74OTXXX.cjs');
3
+ var chunkCEKAYA2Q_cjs = require('../../chunk-CEKAYA2Q.cjs');
4
4
  var chunkASV6JLYG_cjs = require('../../chunk-ASV6JLYG.cjs');
5
5
  require('../../chunk-CBAHCI4R.cjs');
6
6
  require('../../chunk-MEBXW75C.cjs');
@@ -75,7 +75,7 @@ function exaSearch(config) {
75
75
  };
76
76
  } catch (error) {
77
77
  const errorMessage = error instanceof Error ? error.message : "Web search failed";
78
- return chunkW74OTXXX_cjs.failure(errorMessage);
78
+ return chunkCEKAYA2Q_cjs.failure(errorMessage);
79
79
  }
80
80
  }
81
81
  };
@@ -1,4 +1,4 @@
1
- import { T as ToolDefinition } from '../../tools-EiPWA9Ay.cjs';
1
+ import { T as ToolDefinition } from '../../tools-DDWrco4h.cjs';
2
2
  export { e as exaProvider } from '../../exa-jJSPhyUW.cjs';
3
3
  import '../../types-ZguuKEs_.cjs';
4
4
 
@@ -1,4 +1,4 @@
1
- import { T as ToolDefinition } from '../../tools-EiPWA9Ay.js';
1
+ import { T as ToolDefinition } from '../../tools-DDWrco4h.js';
2
2
  export { e as exaProvider } from '../../exa-Dp9U-WTc.js';
3
3
  import '../../types-ZguuKEs_.js';
4
4
 
@@ -1,4 +1,4 @@
1
- import { failure } from '../../chunk-J4OMGO5O.js';
1
+ import { failure } from '../../chunk-BKO7DSPU.js';
2
2
  import { formatSearchResultsForAI, summarizeSearchResults } from '../../chunk-XGITAEXU.js';
3
3
  import '../../chunk-7W7QLZNC.js';
4
4
  import '../../chunk-CEOMTQTP.js';
@@ -1,6 +1,6 @@
1
1
  'use strict';
2
2
 
3
- var chunkW74OTXXX_cjs = require('../../chunk-W74OTXXX.cjs');
3
+ var chunkCEKAYA2Q_cjs = require('../../chunk-CEKAYA2Q.cjs');
4
4
  var chunkASV6JLYG_cjs = require('../../chunk-ASV6JLYG.cjs');
5
5
  require('../../chunk-CBAHCI4R.cjs');
6
6
  require('../../chunk-MEBXW75C.cjs');
@@ -66,7 +66,7 @@ function googleSearch(config) {
66
66
  };
67
67
  } catch (error) {
68
68
  const errorMessage = error instanceof Error ? error.message : "Web search failed";
69
- return chunkW74OTXXX_cjs.failure(errorMessage);
69
+ return chunkCEKAYA2Q_cjs.failure(errorMessage);
70
70
  }
71
71
  }
72
72
  };
@@ -1,4 +1,4 @@
1
- import { T as ToolDefinition } from '../../tools-EiPWA9Ay.cjs';
1
+ import { T as ToolDefinition } from '../../tools-DDWrco4h.cjs';
2
2
  export { g as googleProvider } from '../../google-CHU2yycE.cjs';
3
3
  import '../../types-ZguuKEs_.cjs';
4
4
 
@@ -1,4 +1,4 @@
1
- import { T as ToolDefinition } from '../../tools-EiPWA9Ay.js';
1
+ import { T as ToolDefinition } from '../../tools-DDWrco4h.js';
2
2
  export { g as googleProvider } from '../../google-Da8IQxaI.js';
3
3
  import '../../types-ZguuKEs_.js';
4
4
 
@@ -1,4 +1,4 @@
1
- import { failure } from '../../chunk-J4OMGO5O.js';
1
+ import { failure } from '../../chunk-BKO7DSPU.js';
2
2
  import { formatSearchResultsForAI, summarizeSearchResults } from '../../chunk-XGITAEXU.js';
3
3
  import '../../chunk-7W7QLZNC.js';
4
4
  import '../../chunk-CEOMTQTP.js';
@@ -1,6 +1,6 @@
1
1
  'use strict';
2
2
 
3
- var chunkW74OTXXX_cjs = require('../../chunk-W74OTXXX.cjs');
3
+ var chunkCEKAYA2Q_cjs = require('../../chunk-CEKAYA2Q.cjs');
4
4
  var chunkASV6JLYG_cjs = require('../../chunk-ASV6JLYG.cjs');
5
5
  require('../../chunk-CBAHCI4R.cjs');
6
6
  require('../../chunk-MEBXW75C.cjs');
@@ -68,7 +68,7 @@ function openaiSearch(config) {
68
68
  } catch (error) {
69
69
  const errorMessage = error instanceof Error ? error.message : "Web search failed";
70
70
  console.error("[OpenAI Search] Error:", errorMessage);
71
- return chunkW74OTXXX_cjs.failure(errorMessage);
71
+ return chunkCEKAYA2Q_cjs.failure(errorMessage);
72
72
  }
73
73
  }
74
74
  };
@@ -1,4 +1,4 @@
1
- import { T as ToolDefinition } from '../../tools-EiPWA9Ay.cjs';
1
+ import { T as ToolDefinition } from '../../tools-DDWrco4h.cjs';
2
2
  export { o as openaiProvider } from '../../openai-HVSCuXgO.cjs';
3
3
  import '../../types-ZguuKEs_.cjs';
4
4
 
@@ -1,4 +1,4 @@
1
- import { T as ToolDefinition } from '../../tools-EiPWA9Ay.js';
1
+ import { T as ToolDefinition } from '../../tools-DDWrco4h.js';
2
2
  export { o as openaiProvider } from '../../openai-Cam8hF4f.js';
3
3
  import '../../types-ZguuKEs_.js';
4
4
 
@@ -1,4 +1,4 @@
1
- import { failure } from '../../chunk-J4OMGO5O.js';
1
+ import { failure } from '../../chunk-BKO7DSPU.js';
2
2
  import { formatSearchResultsForAI, summarizeSearchResults } from '../../chunk-XGITAEXU.js';
3
3
  import '../../chunk-7W7QLZNC.js';
4
4
  import '../../chunk-CEOMTQTP.js';
@@ -1,6 +1,6 @@
1
1
  'use strict';
2
2
 
3
- var chunkW74OTXXX_cjs = require('../../chunk-W74OTXXX.cjs');
3
+ var chunkCEKAYA2Q_cjs = require('../../chunk-CEKAYA2Q.cjs');
4
4
  var chunkASV6JLYG_cjs = require('../../chunk-ASV6JLYG.cjs');
5
5
  require('../../chunk-CBAHCI4R.cjs');
6
6
  require('../../chunk-MEBXW75C.cjs');
@@ -70,7 +70,7 @@ function searxngSearch(config) {
70
70
  };
71
71
  } catch (error) {
72
72
  const errorMessage = error instanceof Error ? error.message : "Web search failed";
73
- return chunkW74OTXXX_cjs.failure(errorMessage);
73
+ return chunkCEKAYA2Q_cjs.failure(errorMessage);
74
74
  }
75
75
  }
76
76
  };
@@ -1,4 +1,4 @@
1
- import { T as ToolDefinition } from '../../tools-EiPWA9Ay.cjs';
1
+ import { T as ToolDefinition } from '../../tools-DDWrco4h.cjs';
2
2
  export { s as searxngProvider } from '../../searxng-QGOte_Gq.cjs';
3
3
  import '../../types-ZguuKEs_.cjs';
4
4
 
@@ -1,4 +1,4 @@
1
- import { T as ToolDefinition } from '../../tools-EiPWA9Ay.js';
1
+ import { T as ToolDefinition } from '../../tools-DDWrco4h.js';
2
2
  export { s as searxngProvider } from '../../searxng-K0qtY9vp.js';
3
3
  import '../../types-ZguuKEs_.js';
4
4
 
@@ -1,4 +1,4 @@
1
- import { failure } from '../../chunk-J4OMGO5O.js';
1
+ import { failure } from '../../chunk-BKO7DSPU.js';
2
2
  import { formatSearchResultsForAI, summarizeSearchResults } from '../../chunk-XGITAEXU.js';
3
3
  import '../../chunk-7W7QLZNC.js';
4
4
  import '../../chunk-CEOMTQTP.js';
@@ -1,6 +1,6 @@
1
1
  'use strict';
2
2
 
3
- var chunkW74OTXXX_cjs = require('../../chunk-W74OTXXX.cjs');
3
+ var chunkCEKAYA2Q_cjs = require('../../chunk-CEKAYA2Q.cjs');
4
4
  var chunkASV6JLYG_cjs = require('../../chunk-ASV6JLYG.cjs');
5
5
  require('../../chunk-CBAHCI4R.cjs');
6
6
  var chunkMEBXW75C_cjs = require('../../chunk-MEBXW75C.cjs');
@@ -70,7 +70,7 @@ function serperSearch(config) {
70
70
  };
71
71
  } catch (error) {
72
72
  const errorMessage = error instanceof Error ? error.message : "Web search failed";
73
- return chunkW74OTXXX_cjs.failure(errorMessage);
73
+ return chunkCEKAYA2Q_cjs.failure(errorMessage);
74
74
  }
75
75
  }
76
76
  };
@@ -1,4 +1,4 @@
1
- import { T as ToolDefinition } from '../../tools-EiPWA9Ay.cjs';
1
+ import { T as ToolDefinition } from '../../tools-DDWrco4h.cjs';
2
2
  export { s as serperProvider } from '../../serper-JzdaSnS9.cjs';
3
3
  import '../../types-ZguuKEs_.cjs';
4
4
 
@@ -1,4 +1,4 @@
1
- import { T as ToolDefinition } from '../../tools-EiPWA9Ay.js';
1
+ import { T as ToolDefinition } from '../../tools-DDWrco4h.js';
2
2
  export { s as serperProvider } from '../../serper-7Czya3PW.js';
3
3
  import '../../types-ZguuKEs_.js';
4
4
 
@@ -1,4 +1,4 @@
1
- import { failure } from '../../chunk-J4OMGO5O.js';
1
+ import { failure } from '../../chunk-BKO7DSPU.js';
2
2
  import { formatSearchResultsForAI, summarizeSearchResults } from '../../chunk-XGITAEXU.js';
3
3
  import '../../chunk-7W7QLZNC.js';
4
4
  import { searchSerper } from '../../chunk-CEOMTQTP.js';
@@ -1,6 +1,6 @@
1
1
  'use strict';
2
2
 
3
- var chunkW74OTXXX_cjs = require('../../chunk-W74OTXXX.cjs');
3
+ var chunkCEKAYA2Q_cjs = require('../../chunk-CEKAYA2Q.cjs');
4
4
  var chunkASV6JLYG_cjs = require('../../chunk-ASV6JLYG.cjs');
5
5
  var chunkCBAHCI4R_cjs = require('../../chunk-CBAHCI4R.cjs');
6
6
  require('../../chunk-MEBXW75C.cjs');
@@ -76,7 +76,7 @@ function tavilySearch(config) {
76
76
  };
77
77
  } catch (error) {
78
78
  const errorMessage = error instanceof Error ? error.message : "Web search failed";
79
- return chunkW74OTXXX_cjs.failure(errorMessage);
79
+ return chunkCEKAYA2Q_cjs.failure(errorMessage);
80
80
  }
81
81
  }
82
82
  };
@@ -1,4 +1,4 @@
1
- import { T as ToolDefinition } from '../../tools-EiPWA9Ay.cjs';
1
+ import { T as ToolDefinition } from '../../tools-DDWrco4h.cjs';
2
2
  export { t as tavilyProvider } from '../../tavily-C8cXXojE.cjs';
3
3
  import '../../types-ZguuKEs_.cjs';
4
4
 
@@ -1,4 +1,4 @@
1
- import { T as ToolDefinition } from '../../tools-EiPWA9Ay.js';
1
+ import { T as ToolDefinition } from '../../tools-DDWrco4h.js';
2
2
  export { t as tavilyProvider } from '../../tavily-DdSGVgkE.js';
3
3
  import '../../types-ZguuKEs_.js';
4
4
 
@@ -1,4 +1,4 @@
1
- import { failure } from '../../chunk-J4OMGO5O.js';
1
+ import { failure } from '../../chunk-BKO7DSPU.js';
2
2
  import { formatSearchResultsForAI, summarizeSearchResults } from '../../chunk-XGITAEXU.js';
3
3
  import { searchTavily } from '../../chunk-7W7QLZNC.js';
4
4
  export { tavilyProvider } from '../../chunk-7W7QLZNC.js';
@@ -1,7 +1,7 @@
1
1
  'use strict';
2
2
 
3
- var chunkTX7CGITI_cjs = require('../../chunk-TX7CGITI.cjs');
4
- require('../../chunk-W74OTXXX.cjs');
3
+ var chunkUIWFYMAO_cjs = require('../../chunk-UIWFYMAO.cjs');
4
+ require('../../chunk-CEKAYA2Q.cjs');
5
5
  var chunkASV6JLYG_cjs = require('../../chunk-ASV6JLYG.cjs');
6
6
  require('../../chunk-CBAHCI4R.cjs');
7
7
  require('../../chunk-MEBXW75C.cjs');
@@ -17,7 +17,7 @@ require('../../chunk-JEQ2X3Z6.cjs');
17
17
 
18
18
  Object.defineProperty(exports, "webSearchTool", {
19
19
  enumerable: true,
20
- get: function () { return chunkTX7CGITI_cjs.webSearchTool; }
20
+ get: function () { return chunkUIWFYMAO_cjs.webSearchTool; }
21
21
  });
22
22
  Object.defineProperty(exports, "formatSearchResultsForAI", {
23
23
  enumerable: true,
@@ -1,3 +1,3 @@
1
1
  export { b as WebSearchConfig, e as WebSearchImage, c as WebSearchParams, a as WebSearchProvider, W as WebSearchProviderInterface, f as WebSearchResponse, d as WebSearchResult } from '../../types-ZguuKEs_.cjs';
2
- export { f as formatSearchResultsForAI, s as summarizeSearchResults, w as webSearchTool } from '../../index-DOlhSb79.cjs';
3
- import '../../tools-EiPWA9Ay.cjs';
2
+ export { f as formatSearchResultsForAI, s as summarizeSearchResults, w as webSearchTool } from '../../index-2VtgKM8S.cjs';
3
+ import '../../tools-DDWrco4h.cjs';
@@ -1,3 +1,3 @@
1
1
  export { b as WebSearchConfig, e as WebSearchImage, c as WebSearchParams, a as WebSearchProvider, W as WebSearchProviderInterface, f as WebSearchResponse, d as WebSearchResult } from '../../types-ZguuKEs_.js';
2
- export { f as formatSearchResultsForAI, s as summarizeSearchResults, w as webSearchTool } from '../../index-DBNh0jhE.js';
3
- import '../../tools-EiPWA9Ay.js';
2
+ export { f as formatSearchResultsForAI, s as summarizeSearchResults, w as webSearchTool } from '../../index-pWEH7pUE.js';
3
+ import '../../tools-DDWrco4h.js';
@@ -1,5 +1,5 @@
1
- export { webSearchTool } from '../../chunk-6BXQFCK3.js';
2
- import '../../chunk-J4OMGO5O.js';
1
+ export { webSearchTool } from '../../chunk-ZPYQDMUX.js';
2
+ import '../../chunk-BKO7DSPU.js';
3
3
  export { formatSearchResultsForAI, summarizeSearchResults } from '../../chunk-XGITAEXU.js';
4
4
  import '../../chunk-7W7QLZNC.js';
5
5
  import '../../chunk-CEOMTQTP.js';
@@ -333,6 +333,13 @@ interface ToolDefinition<TParams = Record<string, unknown>> {
333
333
  render?: (props: ToolRenderProps<TParams>) => unknown;
334
334
  /** Whether the tool is available (for conditional registration) */
335
335
  available?: boolean;
336
+ /**
337
+ * Hide this tool's execution from the chat UI.
338
+ * When true, tool calls and results won't be displayed to the user,
339
+ * but the tool will still execute normally.
340
+ * @default false
341
+ */
342
+ hidden?: boolean;
336
343
  /**
337
344
  * Require user approval before execution.
338
345
  * Can be:
@@ -573,6 +580,8 @@ interface ToolConfig<TParams = Record<string, unknown>> {
573
580
  render?: (props: ToolRenderProps<TParams>) => unknown;
574
581
  /** Whether the tool is available */
575
582
  available?: boolean;
583
+ /** Hide this tool from chat UI display */
584
+ hidden?: boolean;
576
585
  /** Require user approval before execution */
577
586
  needsApproval?: boolean | ((params: TParams) => boolean | Promise<boolean>);
578
587
  /** Custom message shown in the approval UI */
@@ -333,6 +333,13 @@ interface ToolDefinition<TParams = Record<string, unknown>> {
333
333
  render?: (props: ToolRenderProps<TParams>) => unknown;
334
334
  /** Whether the tool is available (for conditional registration) */
335
335
  available?: boolean;
336
+ /**
337
+ * Hide this tool's execution from the chat UI.
338
+ * When true, tool calls and results won't be displayed to the user,
339
+ * but the tool will still execute normally.
340
+ * @default false
341
+ */
342
+ hidden?: boolean;
336
343
  /**
337
344
  * Require user approval before execution.
338
345
  * Can be:
@@ -573,6 +580,8 @@ interface ToolConfig<TParams = Record<string, unknown>> {
573
580
  render?: (props: ToolRenderProps<TParams>) => unknown;
574
581
  /** Whether the tool is available */
575
582
  available?: boolean;
583
+ /** Hide this tool from chat UI display */
584
+ hidden?: boolean;
576
585
  /** Require user approval before execution */
577
586
  needsApproval?: boolean | ((params: TParams) => boolean | Promise<boolean>);
578
587
  /** Custom message shown in the approval UI */
@@ -1,4 +1,4 @@
1
- import { T as ToolDefinition } from './tools-EiPWA9Ay.js';
1
+ import { T as ToolDefinition } from './tools-DDWrco4h.js';
2
2
 
3
3
  /**
4
4
  * MCP (Model Context Protocol) Type Definitions
@@ -1,4 +1,4 @@
1
- import { T as ToolDefinition } from './tools-EiPWA9Ay.cjs';
1
+ import { T as ToolDefinition } from './tools-DDWrco4h.cjs';
2
2
 
3
3
  /**
4
4
  * MCP (Model Context Protocol) Type Definitions
package/dist/ui/index.cjs CHANGED
@@ -1,11 +1,11 @@
1
1
  'use strict';
2
2
 
3
- var chunkRBZXLBGI_cjs = require('../chunk-RBZXLBGI.cjs');
4
- var chunkDUPNYVBP_cjs = require('../chunk-DUPNYVBP.cjs');
3
+ var chunkH5XMKBBA_cjs = require('../chunk-H5XMKBBA.cjs');
4
+ var chunkUOWLKFXK_cjs = require('../chunk-UOWLKFXK.cjs');
5
5
  var chunkJO4BHPAD_cjs = require('../chunk-JO4BHPAD.cjs');
6
- require('../chunk-DVC63PGD.cjs');
7
- require('../chunk-TX7CGITI.cjs');
8
- require('../chunk-W74OTXXX.cjs');
6
+ require('../chunk-7K7HZMP4.cjs');
7
+ require('../chunk-UIWFYMAO.cjs');
8
+ require('../chunk-CEKAYA2Q.cjs');
9
9
  require('../chunk-ASV6JLYG.cjs');
10
10
  require('../chunk-CBAHCI4R.cjs');
11
11
  require('../chunk-MEBXW75C.cjs');
@@ -4360,11 +4360,15 @@ function DefaultMessage({
4360
4360
  }
4361
4361
  );
4362
4362
  }
4363
+ const isToolHidden = (toolName) => {
4364
+ const toolDef = registeredTools?.find((t) => t.name === toolName);
4365
+ return toolDef?.hidden === true;
4366
+ };
4363
4367
  const pendingApprovalTools = message.toolExecutions?.filter(
4364
- (exec) => exec.approvalStatus === "required"
4368
+ (exec) => exec.approvalStatus === "required" && !isToolHidden(exec.name)
4365
4369
  );
4366
4370
  const completedTools = message.toolExecutions?.filter(
4367
- (exec) => exec.approvalStatus !== "required"
4371
+ (exec) => exec.approvalStatus !== "required" && !isToolHidden(exec.name)
4368
4372
  );
4369
4373
  const hasCustomRender = (toolName) => {
4370
4374
  if (toolRenderers?.[toolName]) return true;
@@ -4470,7 +4474,7 @@ function DefaultMessage({
4470
4474
  return null;
4471
4475
  }) }),
4472
4476
  toolSteps && toolSteps.length > 0 && /* @__PURE__ */ jsxRuntime.jsx("div", { className: "mt-2 rounded-lg bg-muted/50 px-3 py-2", children: /* @__PURE__ */ jsxRuntime.jsx(ToolSteps, { steps: toolSteps }) }),
4473
- message.toolExecutions?.map((exec) => {
4477
+ message.toolExecutions?.filter((exec) => !isToolHidden(exec.name)).map((exec) => {
4474
4478
  const uiResources = exec.result?._uiResources;
4475
4479
  if (!uiResources || uiResources.length === 0) return null;
4476
4480
  return /* @__PURE__ */ jsxRuntime.jsx(
@@ -5904,7 +5908,7 @@ function useInternalThreadManager(config = {}) {
5904
5908
  saveDebounce,
5905
5909
  autoRestoreLastThread
5906
5910
  };
5907
- const threadManager = chunkRBZXLBGI_cjs.useThreadManager(threadManagerConfig);
5911
+ const threadManager = chunkH5XMKBBA_cjs.useThreadManager(threadManagerConfig);
5908
5912
  const {
5909
5913
  currentThread,
5910
5914
  currentThreadId,
@@ -5914,7 +5918,7 @@ function useInternalThreadManager(config = {}) {
5914
5918
  clearCurrentThread,
5915
5919
  refreshThreads
5916
5920
  } = threadManager;
5917
- const { messages, setMessages, status, isLoading } = chunkRBZXLBGI_cjs.useCopilot();
5921
+ const { messages, setMessages, status, isLoading } = chunkH5XMKBBA_cjs.useCopilot();
5918
5922
  const isLoadingMessagesRef = React20.useRef(false);
5919
5923
  const savingToThreadRef = React20.useRef(null);
5920
5924
  const lastSavedSnapshotRef = React20.useRef("");
@@ -6087,7 +6091,7 @@ function parsePersistenceConfig(persistence, onThreadChange) {
6087
6091
  };
6088
6092
  case "server":
6089
6093
  return {
6090
- adapter: chunkDUPNYVBP_cjs.createServerAdapter({
6094
+ adapter: chunkUOWLKFXK_cjs.createServerAdapter({
6091
6095
  endpoint: persistence.endpoint,
6092
6096
  headers: persistence.headers
6093
6097
  }),
@@ -6137,7 +6141,7 @@ function CopilotChatBase(props) {
6137
6141
  approveToolExecution,
6138
6142
  rejectToolExecution,
6139
6143
  registeredTools
6140
- } = chunkRBZXLBGI_cjs.useCopilot();
6144
+ } = chunkH5XMKBBA_cjs.useCopilot();
6141
6145
  const toolExecutions = rawToolExecutions.map(
6142
6146
  (exec) => ({
6143
6147
  id: exec.id,