@yourgpt/copilot-sdk 2.1.2 → 2.1.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.
Files changed (73) hide show
  1. package/dist/{chunk-VXT2O6R6.js → chunk-DMBFN7KO.js} +265 -80
  2. package/dist/chunk-DMBFN7KO.js.map +1 -0
  3. package/dist/{chunk-VUHP6TAN.js → chunk-LZMBBGWH.js} +3 -3
  4. package/dist/{chunk-VUHP6TAN.js.map → chunk-LZMBBGWH.js.map} +1 -1
  5. package/dist/{chunk-CSEZZ5DX.cjs → chunk-POZNNKNJ.cjs} +2 -2
  6. package/dist/{chunk-CSEZZ5DX.cjs.map → chunk-POZNNKNJ.cjs.map} +1 -1
  7. package/dist/{chunk-BMYNG3WM.js → chunk-QLH6TSCC.js} +2 -2
  8. package/dist/{chunk-BMYNG3WM.js.map → chunk-QLH6TSCC.js.map} +1 -1
  9. package/dist/{chunk-BNBEKK3U.cjs → chunk-R6LKHKAI.cjs} +289 -104
  10. package/dist/chunk-R6LKHKAI.cjs.map +1 -0
  11. package/dist/{chunk-XAC7NTIO.js → chunk-VFV5FVVI.js} +4 -4
  12. package/dist/{chunk-XAC7NTIO.js.map → chunk-VFV5FVVI.js.map} +1 -1
  13. package/dist/{chunk-GSTTJ46F.cjs → chunk-WAPGTQDR.cjs} +5 -5
  14. package/dist/{chunk-GSTTJ46F.cjs.map → chunk-WAPGTQDR.cjs.map} +1 -1
  15. package/dist/{chunk-7MZLBGFQ.cjs → chunk-WQSK3Z4K.cjs} +23 -23
  16. package/dist/{chunk-7MZLBGFQ.cjs.map → chunk-WQSK3Z4K.cjs.map} +1 -1
  17. package/dist/core/index.cjs +80 -80
  18. package/dist/core/index.d.cts +3 -3
  19. package/dist/core/index.d.ts +3 -3
  20. package/dist/core/index.js +3 -3
  21. package/dist/{index-jwRcC2QD.d.cts → index-BHkRA0mM.d.cts} +1 -1
  22. package/dist/{index-Du3Akr_E.d.ts → index-tB0qI8my.d.ts} +1 -1
  23. package/dist/mcp/index.d.cts +3 -3
  24. package/dist/mcp/index.d.ts +3 -3
  25. package/dist/react/index.cjs +53 -49
  26. package/dist/react/index.d.cts +48 -6
  27. package/dist/react/index.d.ts +48 -6
  28. package/dist/react/index.js +4 -4
  29. package/dist/tools/anthropic/index.d.cts +1 -1
  30. package/dist/tools/anthropic/index.d.ts +1 -1
  31. package/dist/tools/brave/index.cjs +2 -2
  32. package/dist/tools/brave/index.d.cts +1 -1
  33. package/dist/tools/brave/index.d.ts +1 -1
  34. package/dist/tools/brave/index.js +1 -1
  35. package/dist/tools/exa/index.cjs +2 -2
  36. package/dist/tools/exa/index.d.cts +1 -1
  37. package/dist/tools/exa/index.d.ts +1 -1
  38. package/dist/tools/exa/index.js +1 -1
  39. package/dist/tools/google/index.cjs +2 -2
  40. package/dist/tools/google/index.d.cts +1 -1
  41. package/dist/tools/google/index.d.ts +1 -1
  42. package/dist/tools/google/index.js +1 -1
  43. package/dist/tools/openai/index.cjs +2 -2
  44. package/dist/tools/openai/index.d.cts +1 -1
  45. package/dist/tools/openai/index.d.ts +1 -1
  46. package/dist/tools/openai/index.js +1 -1
  47. package/dist/tools/searxng/index.cjs +2 -2
  48. package/dist/tools/searxng/index.d.cts +1 -1
  49. package/dist/tools/searxng/index.d.ts +1 -1
  50. package/dist/tools/searxng/index.js +1 -1
  51. package/dist/tools/serper/index.cjs +2 -2
  52. package/dist/tools/serper/index.d.cts +1 -1
  53. package/dist/tools/serper/index.d.ts +1 -1
  54. package/dist/tools/serper/index.js +1 -1
  55. package/dist/tools/tavily/index.cjs +2 -2
  56. package/dist/tools/tavily/index.d.cts +1 -1
  57. package/dist/tools/tavily/index.d.ts +1 -1
  58. package/dist/tools/tavily/index.js +1 -1
  59. package/dist/tools/web-search/index.cjs +3 -3
  60. package/dist/tools/web-search/index.d.cts +2 -2
  61. package/dist/tools/web-search/index.d.ts +2 -2
  62. package/dist/tools/web-search/index.js +2 -2
  63. package/dist/{tools-BHQRB_YT.d.cts → tools-coIcskZ4.d.cts} +18 -4
  64. package/dist/{tools-BHQRB_YT.d.ts → tools-coIcskZ4.d.ts} +18 -4
  65. package/dist/{types-8_Hp2rmm.d.cts → types-C8t4Ut8f.d.cts} +1 -1
  66. package/dist/{types-OYi-iUVY.d.ts → types-rjaSVmEF.d.ts} +1 -1
  67. package/dist/ui/index.cjs +8 -8
  68. package/dist/ui/index.d.cts +1 -1
  69. package/dist/ui/index.d.ts +1 -1
  70. package/dist/ui/index.js +4 -4
  71. package/package.json +1 -1
  72. package/dist/chunk-BNBEKK3U.cjs.map +0 -1
  73. package/dist/chunk-VXT2O6R6.js.map +0 -1
@@ -1,4 +1,4 @@
1
- import { failure } from '../../chunk-BMYNG3WM.js';
1
+ import { failure } from '../../chunk-QLH6TSCC.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 chunkCSEZZ5DX_cjs = require('../../chunk-CSEZZ5DX.cjs');
3
+ var chunkPOZNNKNJ_cjs = require('../../chunk-POZNNKNJ.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 chunkCSEZZ5DX_cjs.failure(errorMessage);
73
+ return chunkPOZNNKNJ_cjs.failure(errorMessage);
74
74
  }
75
75
  }
76
76
  };
@@ -1,4 +1,4 @@
1
- import { T as ToolDefinition } from '../../tools-BHQRB_YT.cjs';
1
+ import { T as ToolDefinition } from '../../tools-coIcskZ4.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-BHQRB_YT.js';
1
+ import { T as ToolDefinition } from '../../tools-coIcskZ4.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-BMYNG3WM.js';
1
+ import { failure } from '../../chunk-QLH6TSCC.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 chunkCSEZZ5DX_cjs = require('../../chunk-CSEZZ5DX.cjs');
3
+ var chunkPOZNNKNJ_cjs = require('../../chunk-POZNNKNJ.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 chunkCSEZZ5DX_cjs.failure(errorMessage);
73
+ return chunkPOZNNKNJ_cjs.failure(errorMessage);
74
74
  }
75
75
  }
76
76
  };
@@ -1,4 +1,4 @@
1
- import { T as ToolDefinition } from '../../tools-BHQRB_YT.cjs';
1
+ import { T as ToolDefinition } from '../../tools-coIcskZ4.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-BHQRB_YT.js';
1
+ import { T as ToolDefinition } from '../../tools-coIcskZ4.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-BMYNG3WM.js';
1
+ import { failure } from '../../chunk-QLH6TSCC.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 chunkCSEZZ5DX_cjs = require('../../chunk-CSEZZ5DX.cjs');
3
+ var chunkPOZNNKNJ_cjs = require('../../chunk-POZNNKNJ.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 chunkCSEZZ5DX_cjs.failure(errorMessage);
79
+ return chunkPOZNNKNJ_cjs.failure(errorMessage);
80
80
  }
81
81
  }
82
82
  };
@@ -1,4 +1,4 @@
1
- import { T as ToolDefinition } from '../../tools-BHQRB_YT.cjs';
1
+ import { T as ToolDefinition } from '../../tools-coIcskZ4.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-BHQRB_YT.js';
1
+ import { T as ToolDefinition } from '../../tools-coIcskZ4.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-BMYNG3WM.js';
1
+ import { failure } from '../../chunk-QLH6TSCC.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 chunkGSTTJ46F_cjs = require('../../chunk-GSTTJ46F.cjs');
4
- require('../../chunk-CSEZZ5DX.cjs');
3
+ var chunkWAPGTQDR_cjs = require('../../chunk-WAPGTQDR.cjs');
4
+ require('../../chunk-POZNNKNJ.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 chunkGSTTJ46F_cjs.webSearchTool; }
20
+ get: function () { return chunkWAPGTQDR_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-jwRcC2QD.cjs';
3
- import '../../tools-BHQRB_YT.cjs';
2
+ export { f as formatSearchResultsForAI, s as summarizeSearchResults, w as webSearchTool } from '../../index-BHkRA0mM.cjs';
3
+ import '../../tools-coIcskZ4.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-Du3Akr_E.js';
3
- import '../../tools-BHQRB_YT.js';
2
+ export { f as formatSearchResultsForAI, s as summarizeSearchResults, w as webSearchTool } from '../../index-tB0qI8my.js';
3
+ import '../../tools-coIcskZ4.js';
@@ -1,5 +1,5 @@
1
- export { webSearchTool } from '../../chunk-VUHP6TAN.js';
2
- import '../../chunk-BMYNG3WM.js';
1
+ export { webSearchTool } from '../../chunk-LZMBBGWH.js';
2
+ import '../../chunk-QLH6TSCC.js';
3
3
  export { formatSearchResultsForAI, summarizeSearchResults } from '../../chunk-XGITAEXU.js';
4
4
  import '../../chunk-7W7QLZNC.js';
5
5
  import '../../chunk-CEOMTQTP.js';
@@ -564,18 +564,32 @@ interface AgentLoopState {
564
564
  /** Whether the loop was aborted */
565
565
  aborted: boolean;
566
566
  }
567
+ /**
568
+ * A tool definition without the name (name is derived from the key in ToolSet)
569
+ */
570
+ type ToolSetEntry<TParams = Record<string, unknown>> = Omit<ToolDefinition<TParams>, "name">;
567
571
  /**
568
572
  * A set of tools, keyed by tool name
569
573
  *
574
+ * The key becomes the tool name, so tool definitions don't need a name property.
575
+ * Use with the `tool()` helper for clean syntax.
576
+ *
570
577
  * @example
571
578
  * ```typescript
572
579
  * const myTools: ToolSet = {
573
- * capture_screenshot: screenshotTool,
574
- * get_weather: weatherTool,
580
+ * capture_screenshot: tool({
581
+ * description: 'Capture screenshot',
582
+ * handler: async () => ({ success: true }),
583
+ * }),
584
+ * get_weather: tool({
585
+ * description: 'Get weather',
586
+ * inputSchema: { type: 'object', properties: { city: { type: 'string' } } },
587
+ * handler: async ({ city }) => ({ success: true, data: { temp: 72 } }),
588
+ * }),
575
589
  * };
576
590
  * ```
577
591
  */
578
- type ToolSet = Record<string, ToolDefinition>;
592
+ type ToolSet = Record<string, ToolSetEntry>;
579
593
  /**
580
594
  * Configuration for creating a tool
581
595
  */
@@ -652,4 +666,4 @@ declare function success<T = unknown>(data?: T, message?: string): ToolResponse<
652
666
  */
653
667
  declare function failure(error: string): ToolResponse;
654
668
 
655
- export { type AIProvider as A, type JSONSchemaProperty as J, type PermissionLevel as P, type ToolDefinition as T, type UnifiedToolCall as U, type ToolExecutionStatus as a, type ToolResponse as b, type ToolInputSchema as c, type ToolLocation as d, type ToolContext as e, type ToolSource as f, type ToolRenderProps as g, type ToolConfig as h, type ToolSet as i, type UnifiedToolResult as j, type ToolApprovalStatus as k, type ToolExecution as l, type AgentLoopConfig as m, type AgentLoopState as n, type AIResponseMode as o, type AIContent as p, type ToolPermission as q, type PermissionStorageConfig as r, type PermissionStorageAdapter as s, tool as t, toolToOpenAIFormat as u, toolToAnthropicFormat as v, createToolResult as w, success as x, failure as y };
669
+ export { type AIProvider as A, type JSONSchemaProperty as J, type PermissionLevel as P, type ToolDefinition as T, type UnifiedToolCall as U, type ToolExecutionStatus as a, type ToolResponse as b, type ToolInputSchema as c, type ToolLocation as d, type ToolContext as e, type ToolSource as f, type ToolRenderProps as g, type ToolConfig as h, type ToolSet as i, type ToolSetEntry as j, type UnifiedToolResult as k, type ToolApprovalStatus as l, type ToolExecution as m, type AgentLoopConfig as n, type AgentLoopState as o, type AIResponseMode as p, type AIContent as q, type ToolPermission as r, type PermissionStorageConfig as s, type PermissionStorageAdapter as t, tool as u, toolToOpenAIFormat as v, toolToAnthropicFormat as w, createToolResult as x, success as y, failure as z };
@@ -564,18 +564,32 @@ interface AgentLoopState {
564
564
  /** Whether the loop was aborted */
565
565
  aborted: boolean;
566
566
  }
567
+ /**
568
+ * A tool definition without the name (name is derived from the key in ToolSet)
569
+ */
570
+ type ToolSetEntry<TParams = Record<string, unknown>> = Omit<ToolDefinition<TParams>, "name">;
567
571
  /**
568
572
  * A set of tools, keyed by tool name
569
573
  *
574
+ * The key becomes the tool name, so tool definitions don't need a name property.
575
+ * Use with the `tool()` helper for clean syntax.
576
+ *
570
577
  * @example
571
578
  * ```typescript
572
579
  * const myTools: ToolSet = {
573
- * capture_screenshot: screenshotTool,
574
- * get_weather: weatherTool,
580
+ * capture_screenshot: tool({
581
+ * description: 'Capture screenshot',
582
+ * handler: async () => ({ success: true }),
583
+ * }),
584
+ * get_weather: tool({
585
+ * description: 'Get weather',
586
+ * inputSchema: { type: 'object', properties: { city: { type: 'string' } } },
587
+ * handler: async ({ city }) => ({ success: true, data: { temp: 72 } }),
588
+ * }),
575
589
  * };
576
590
  * ```
577
591
  */
578
- type ToolSet = Record<string, ToolDefinition>;
592
+ type ToolSet = Record<string, ToolSetEntry>;
579
593
  /**
580
594
  * Configuration for creating a tool
581
595
  */
@@ -652,4 +666,4 @@ declare function success<T = unknown>(data?: T, message?: string): ToolResponse<
652
666
  */
653
667
  declare function failure(error: string): ToolResponse;
654
668
 
655
- export { type AIProvider as A, type JSONSchemaProperty as J, type PermissionLevel as P, type ToolDefinition as T, type UnifiedToolCall as U, type ToolExecutionStatus as a, type ToolResponse as b, type ToolInputSchema as c, type ToolLocation as d, type ToolContext as e, type ToolSource as f, type ToolRenderProps as g, type ToolConfig as h, type ToolSet as i, type UnifiedToolResult as j, type ToolApprovalStatus as k, type ToolExecution as l, type AgentLoopConfig as m, type AgentLoopState as n, type AIResponseMode as o, type AIContent as p, type ToolPermission as q, type PermissionStorageConfig as r, type PermissionStorageAdapter as s, tool as t, toolToOpenAIFormat as u, toolToAnthropicFormat as v, createToolResult as w, success as x, failure as y };
669
+ export { type AIProvider as A, type JSONSchemaProperty as J, type PermissionLevel as P, type ToolDefinition as T, type UnifiedToolCall as U, type ToolExecutionStatus as a, type ToolResponse as b, type ToolInputSchema as c, type ToolLocation as d, type ToolContext as e, type ToolSource as f, type ToolRenderProps as g, type ToolConfig as h, type ToolSet as i, type ToolSetEntry as j, type UnifiedToolResult as k, type ToolApprovalStatus as l, type ToolExecution as m, type AgentLoopConfig as n, type AgentLoopState as o, type AIResponseMode as p, type AIContent as q, type ToolPermission as r, type PermissionStorageConfig as s, type PermissionStorageAdapter as t, tool as u, toolToOpenAIFormat as v, toolToAnthropicFormat as w, createToolResult as x, success as y, failure as z };
@@ -1,4 +1,4 @@
1
- import { T as ToolDefinition } from './tools-BHQRB_YT.cjs';
1
+ import { T as ToolDefinition } from './tools-coIcskZ4.cjs';
2
2
 
3
3
  /**
4
4
  * MCP (Model Context Protocol) Type Definitions
@@ -1,4 +1,4 @@
1
- import { T as ToolDefinition } from './tools-BHQRB_YT.js';
1
+ import { T as ToolDefinition } from './tools-coIcskZ4.js';
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 chunkBNBEKK3U_cjs = require('../chunk-BNBEKK3U.cjs');
4
- var chunk7MZLBGFQ_cjs = require('../chunk-7MZLBGFQ.cjs');
3
+ var chunkR6LKHKAI_cjs = require('../chunk-R6LKHKAI.cjs');
4
+ var chunkWQSK3Z4K_cjs = require('../chunk-WQSK3Z4K.cjs');
5
5
  var chunkJO4BHPAD_cjs = require('../chunk-JO4BHPAD.cjs');
6
6
  require('../chunk-JGPDQDY4.cjs');
7
- require('../chunk-GSTTJ46F.cjs');
8
- require('../chunk-CSEZZ5DX.cjs');
7
+ require('../chunk-WAPGTQDR.cjs');
8
+ require('../chunk-POZNNKNJ.cjs');
9
9
  require('../chunk-ASV6JLYG.cjs');
10
10
  require('../chunk-CBAHCI4R.cjs');
11
11
  require('../chunk-MEBXW75C.cjs');
@@ -5945,7 +5945,7 @@ function useInternalThreadManager(config = {}) {
5945
5945
  saveDebounce,
5946
5946
  autoRestoreLastThread
5947
5947
  };
5948
- const threadManager = chunkBNBEKK3U_cjs.useThreadManager(threadManagerConfig);
5948
+ const threadManager = chunkR6LKHKAI_cjs.useThreadManager(threadManagerConfig);
5949
5949
  const {
5950
5950
  currentThread,
5951
5951
  currentThreadId,
@@ -5955,7 +5955,7 @@ function useInternalThreadManager(config = {}) {
5955
5955
  clearCurrentThread,
5956
5956
  refreshThreads
5957
5957
  } = threadManager;
5958
- const { messages, setMessages, status, isLoading } = chunkBNBEKK3U_cjs.useCopilot();
5958
+ const { messages, setMessages, status, isLoading } = chunkR6LKHKAI_cjs.useCopilot();
5959
5959
  const isLoadingMessagesRef = React20.useRef(false);
5960
5960
  const savingToThreadRef = React20.useRef(null);
5961
5961
  const lastSavedSnapshotRef = React20.useRef("");
@@ -6122,7 +6122,7 @@ function parsePersistenceConfig(persistence, onThreadChange) {
6122
6122
  };
6123
6123
  case "server":
6124
6124
  return {
6125
- adapter: chunk7MZLBGFQ_cjs.createServerAdapter({
6125
+ adapter: chunkWQSK3Z4K_cjs.createServerAdapter({
6126
6126
  endpoint: persistence.endpoint,
6127
6127
  headers: persistence.headers
6128
6128
  }),
@@ -6172,7 +6172,7 @@ function CopilotChatBase(props) {
6172
6172
  approveToolExecution,
6173
6173
  rejectToolExecution,
6174
6174
  registeredTools
6175
- } = chunkBNBEKK3U_cjs.useCopilot();
6175
+ } = chunkR6LKHKAI_cjs.useCopilot();
6176
6176
  const toolExecutions = rawToolExecutions.map(
6177
6177
  (exec) => ({
6178
6178
  id: exec.id,
@@ -8,7 +8,7 @@ import { VariantProps } from 'class-variance-authority';
8
8
  import * as use_stick_to_bottom from 'use-stick-to-bottom';
9
9
  import { d as WebSearchResult, f as WebSearchResponse } from '../types-ZguuKEs_.cjs';
10
10
  import { T as Thread, b as ThreadStorageAdapter, A as AsyncThreadStorageAdapter } from '../types-DG2ya08y.cjs';
11
- import { T as ToolDefinition } from '../tools-BHQRB_YT.cjs';
11
+ import { T as ToolDefinition } from '../tools-coIcskZ4.cjs';
12
12
  import { d as MCPUIIntent, n as MCPUIFrameProps, M as MCPUIResource } from '../types-B20VCJXL.cjs';
13
13
  import { ClassValue } from 'clsx';
14
14
 
@@ -8,7 +8,7 @@ import { VariantProps } from 'class-variance-authority';
8
8
  import * as use_stick_to_bottom from 'use-stick-to-bottom';
9
9
  import { d as WebSearchResult, f as WebSearchResponse } from '../types-ZguuKEs_.js';
10
10
  import { T as Thread, b as ThreadStorageAdapter, A as AsyncThreadStorageAdapter } from '../types-DG2ya08y.js';
11
- import { T as ToolDefinition } from '../tools-BHQRB_YT.js';
11
+ import { T as ToolDefinition } from '../tools-coIcskZ4.js';
12
12
  import { d as MCPUIIntent, n as MCPUIFrameProps, M as MCPUIResource } from '../types-B20VCJXL.js';
13
13
  import { ClassValue } from 'clsx';
14
14
 
package/dist/ui/index.js CHANGED
@@ -1,9 +1,9 @@
1
- import { useCopilot, useThreadManager } from '../chunk-VXT2O6R6.js';
2
- import { createServerAdapter } from '../chunk-XAC7NTIO.js';
1
+ import { useCopilot, useThreadManager } from '../chunk-DMBFN7KO.js';
2
+ import { createServerAdapter } from '../chunk-VFV5FVVI.js';
3
3
  import { DEFAULT_MCP_UI_SANDBOX, parseMCPUIMessage } from '../chunk-G4SF2PNQ.js';
4
4
  import '../chunk-EWVQWTNV.js';
5
- import '../chunk-VUHP6TAN.js';
6
- import '../chunk-BMYNG3WM.js';
5
+ import '../chunk-LZMBBGWH.js';
6
+ import '../chunk-QLH6TSCC.js';
7
7
  import '../chunk-XGITAEXU.js';
8
8
  import '../chunk-7W7QLZNC.js';
9
9
  import '../chunk-CEOMTQTP.js';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@yourgpt/copilot-sdk",
3
- "version": "2.1.2",
3
+ "version": "2.1.3",
4
4
  "description": "Copilot SDK for building Production-ready AI Copilots for any product. Connect any LLM, deploy on your infrastructure, own your data.",
5
5
  "type": "module",
6
6
  "types": "./dist/core/index.d.ts",