@yourgpt/copilot-sdk 2.1.5-alpha.1 → 2.1.5-alpha.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 (76) hide show
  1. package/dist/{chunk-4QXY2PBG.js → chunk-3AONOZLY.js} +2 -2
  2. package/dist/{chunk-4QXY2PBG.js.map → chunk-3AONOZLY.js.map} +1 -1
  3. package/dist/{chunk-JKGFQUHJ.cjs → chunk-MDS23G2S.cjs} +5 -5
  4. package/dist/{chunk-JKGFQUHJ.cjs.map → chunk-MDS23G2S.cjs.map} +1 -1
  5. package/dist/{chunk-5Q72LZ5H.js → chunk-PT2TOHG5.js} +7 -3
  6. package/dist/chunk-PT2TOHG5.js.map +1 -0
  7. package/dist/{chunk-ENFWM3EY.js → chunk-RKGRQRZU.js} +3 -3
  8. package/dist/{chunk-ENFWM3EY.js.map → chunk-RKGRQRZU.js.map} +1 -1
  9. package/dist/{chunk-IXWNDR7H.cjs → chunk-TCPAT3WG.cjs} +35 -31
  10. package/dist/chunk-TCPAT3WG.cjs.map +1 -0
  11. package/dist/{chunk-246B6X5D.cjs → chunk-TPB7XED6.cjs} +2 -2
  12. package/dist/{chunk-246B6X5D.cjs.map → chunk-TPB7XED6.cjs.map} +1 -1
  13. package/dist/{chunk-I3SQUNTT.cjs → chunk-WIXFZUEZ.cjs} +23 -23
  14. package/dist/{chunk-I3SQUNTT.cjs.map → chunk-WIXFZUEZ.cjs.map} +1 -1
  15. package/dist/{chunk-UXJ6LIZB.js → chunk-WZ2TOZ7M.js} +4 -4
  16. package/dist/{chunk-UXJ6LIZB.js.map → chunk-WZ2TOZ7M.js.map} +1 -1
  17. package/dist/core/index.cjs +82 -82
  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-CiExk87c.d.cts → index-CzJB8Ddo.d.cts} +1 -1
  22. package/dist/{index-Dwrcf-CP.d.ts → index-D7169xuR.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 +65 -65
  26. package/dist/react/index.d.cts +8 -4
  27. package/dist/react/index.d.ts +8 -4
  28. package/dist/react/index.js +4 -4
  29. package/dist/styles.css +43 -0
  30. package/dist/tools/anthropic/index.d.cts +1 -1
  31. package/dist/tools/anthropic/index.d.ts +1 -1
  32. package/dist/tools/brave/index.cjs +2 -2
  33. package/dist/tools/brave/index.d.cts +1 -1
  34. package/dist/tools/brave/index.d.ts +1 -1
  35. package/dist/tools/brave/index.js +1 -1
  36. package/dist/tools/exa/index.cjs +2 -2
  37. package/dist/tools/exa/index.d.cts +1 -1
  38. package/dist/tools/exa/index.d.ts +1 -1
  39. package/dist/tools/exa/index.js +1 -1
  40. package/dist/tools/google/index.cjs +2 -2
  41. package/dist/tools/google/index.d.cts +1 -1
  42. package/dist/tools/google/index.d.ts +1 -1
  43. package/dist/tools/google/index.js +1 -1
  44. package/dist/tools/openai/index.cjs +2 -2
  45. package/dist/tools/openai/index.d.cts +1 -1
  46. package/dist/tools/openai/index.d.ts +1 -1
  47. package/dist/tools/openai/index.js +1 -1
  48. package/dist/tools/searxng/index.cjs +2 -2
  49. package/dist/tools/searxng/index.d.cts +1 -1
  50. package/dist/tools/searxng/index.d.ts +1 -1
  51. package/dist/tools/searxng/index.js +1 -1
  52. package/dist/tools/serper/index.cjs +2 -2
  53. package/dist/tools/serper/index.d.cts +1 -1
  54. package/dist/tools/serper/index.d.ts +1 -1
  55. package/dist/tools/serper/index.js +1 -1
  56. package/dist/tools/tavily/index.cjs +2 -2
  57. package/dist/tools/tavily/index.d.cts +1 -1
  58. package/dist/tools/tavily/index.d.ts +1 -1
  59. package/dist/tools/tavily/index.js +1 -1
  60. package/dist/tools/web-search/index.cjs +3 -3
  61. package/dist/tools/web-search/index.d.cts +2 -2
  62. package/dist/tools/web-search/index.d.ts +2 -2
  63. package/dist/tools/web-search/index.js +2 -2
  64. package/dist/{tools-DHZhF5km.d.cts → tools-tmksfhUo.d.cts} +9 -0
  65. package/dist/{tools-DHZhF5km.d.ts → tools-tmksfhUo.d.ts} +9 -0
  66. package/dist/{types-BdX7uPj0.d.cts → types-BLw7mxtW.d.cts} +1 -1
  67. package/dist/{types-BTyJu0WD.d.ts → types-BqwW3Baj.d.ts} +1 -1
  68. package/dist/ui/index.cjs +798 -417
  69. package/dist/ui/index.cjs.map +1 -1
  70. package/dist/ui/index.d.cts +337 -108
  71. package/dist/ui/index.d.ts +337 -108
  72. package/dist/ui/index.js +745 -365
  73. package/dist/ui/index.js.map +1 -1
  74. package/package.json +1 -1
  75. package/dist/chunk-5Q72LZ5H.js.map +0 -1
  76. package/dist/chunk-IXWNDR7H.cjs.map +0 -1
@@ -1,6 +1,6 @@
1
1
  'use strict';
2
2
 
3
- var chunk246B6X5D_cjs = require('../../chunk-246B6X5D.cjs');
3
+ var chunkTPB7XED6_cjs = require('../../chunk-TPB7XED6.cjs');
4
4
  var chunkNUXLAZOE_cjs = require('../../chunk-NUXLAZOE.cjs');
5
5
  require('../../chunk-TXLIY7GF.cjs');
6
6
  require('../../chunk-CBAHCI4R.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 chunk246B6X5D_cjs.failure(errorMessage);
73
+ return chunkTPB7XED6_cjs.failure(errorMessage);
74
74
  }
75
75
  }
76
76
  };
@@ -1,4 +1,4 @@
1
- import { T as ToolDefinition } from '../../tools-DHZhF5km.cjs';
1
+ import { T as ToolDefinition } from '../../tools-tmksfhUo.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-DHZhF5km.js';
1
+ import { T as ToolDefinition } from '../../tools-tmksfhUo.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-4QXY2PBG.js';
1
+ import { failure } from '../../chunk-3AONOZLY.js';
2
2
  import { formatSearchResultsForAI, summarizeSearchResults } from '../../chunk-LLM7AHMO.js';
3
3
  import '../../chunk-RQ74USYU.js';
4
4
  import '../../chunk-7W7QLZNC.js';
@@ -1,6 +1,6 @@
1
1
  'use strict';
2
2
 
3
- var chunk246B6X5D_cjs = require('../../chunk-246B6X5D.cjs');
3
+ var chunkTPB7XED6_cjs = require('../../chunk-TPB7XED6.cjs');
4
4
  var chunkNUXLAZOE_cjs = require('../../chunk-NUXLAZOE.cjs');
5
5
  require('../../chunk-TXLIY7GF.cjs');
6
6
  require('../../chunk-CBAHCI4R.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 chunk246B6X5D_cjs.failure(errorMessage);
73
+ return chunkTPB7XED6_cjs.failure(errorMessage);
74
74
  }
75
75
  }
76
76
  };
@@ -1,4 +1,4 @@
1
- import { T as ToolDefinition } from '../../tools-DHZhF5km.cjs';
1
+ import { T as ToolDefinition } from '../../tools-tmksfhUo.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-DHZhF5km.js';
1
+ import { T as ToolDefinition } from '../../tools-tmksfhUo.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-4QXY2PBG.js';
1
+ import { failure } from '../../chunk-3AONOZLY.js';
2
2
  import { formatSearchResultsForAI, summarizeSearchResults } from '../../chunk-LLM7AHMO.js';
3
3
  import '../../chunk-RQ74USYU.js';
4
4
  import '../../chunk-7W7QLZNC.js';
@@ -1,6 +1,6 @@
1
1
  'use strict';
2
2
 
3
- var chunk246B6X5D_cjs = require('../../chunk-246B6X5D.cjs');
3
+ var chunkTPB7XED6_cjs = require('../../chunk-TPB7XED6.cjs');
4
4
  var chunkNUXLAZOE_cjs = require('../../chunk-NUXLAZOE.cjs');
5
5
  require('../../chunk-TXLIY7GF.cjs');
6
6
  var chunkCBAHCI4R_cjs = require('../../chunk-CBAHCI4R.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 chunk246B6X5D_cjs.failure(errorMessage);
79
+ return chunkTPB7XED6_cjs.failure(errorMessage);
80
80
  }
81
81
  }
82
82
  };
@@ -1,4 +1,4 @@
1
- import { T as ToolDefinition } from '../../tools-DHZhF5km.cjs';
1
+ import { T as ToolDefinition } from '../../tools-tmksfhUo.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-DHZhF5km.js';
1
+ import { T as ToolDefinition } from '../../tools-tmksfhUo.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-4QXY2PBG.js';
1
+ import { failure } from '../../chunk-3AONOZLY.js';
2
2
  import { formatSearchResultsForAI, summarizeSearchResults } from '../../chunk-LLM7AHMO.js';
3
3
  import '../../chunk-RQ74USYU.js';
4
4
  import { searchTavily } from '../../chunk-7W7QLZNC.js';
@@ -1,7 +1,7 @@
1
1
  'use strict';
2
2
 
3
- var chunkJKGFQUHJ_cjs = require('../../chunk-JKGFQUHJ.cjs');
4
- require('../../chunk-246B6X5D.cjs');
3
+ var chunkMDS23G2S_cjs = require('../../chunk-MDS23G2S.cjs');
4
+ require('../../chunk-TPB7XED6.cjs');
5
5
  var chunkNUXLAZOE_cjs = require('../../chunk-NUXLAZOE.cjs');
6
6
  require('../../chunk-TXLIY7GF.cjs');
7
7
  require('../../chunk-CBAHCI4R.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 chunkJKGFQUHJ_cjs.webSearchTool; }
20
+ get: function () { return chunkMDS23G2S_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-CiExk87c.cjs';
3
- import '../../tools-DHZhF5km.cjs';
2
+ export { f as formatSearchResultsForAI, s as summarizeSearchResults, w as webSearchTool } from '../../index-CzJB8Ddo.cjs';
3
+ import '../../tools-tmksfhUo.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-Dwrcf-CP.js';
3
- import '../../tools-DHZhF5km.js';
2
+ export { f as formatSearchResultsForAI, s as summarizeSearchResults, w as webSearchTool } from '../../index-D7169xuR.js';
3
+ import '../../tools-tmksfhUo.js';
@@ -1,5 +1,5 @@
1
- export { webSearchTool } from '../../chunk-ENFWM3EY.js';
2
- import '../../chunk-4QXY2PBG.js';
1
+ export { webSearchTool } from '../../chunk-RKGRQRZU.js';
2
+ import '../../chunk-3AONOZLY.js';
3
3
  export { formatSearchResultsForAI, summarizeSearchResults } from '../../chunk-LLM7AHMO.js';
4
4
  import '../../chunk-RQ74USYU.js';
5
5
  import '../../chunk-7W7QLZNC.js';
@@ -509,6 +509,11 @@ interface ToolDefinition<TParams = Record<string, unknown>> {
509
509
  * Similar to Vercel AI SDK v6's needsApproval pattern.
510
510
  */
511
511
  needsApproval?: boolean | ((params: TParams) => boolean | Promise<boolean>);
512
+ /**
513
+ * Custom title shown in the approval UI.
514
+ * If not provided, the tool name is used.
515
+ */
516
+ approvalTitle?: string | ((params: TParams) => string);
512
517
  /**
513
518
  * Custom message shown in the approval UI.
514
519
  * Can be a string or a function that generates a message from params.
@@ -674,6 +679,8 @@ interface ToolExecution {
674
679
  duration?: number;
675
680
  /** Approval status for this execution */
676
681
  approvalStatus: ToolApprovalStatus;
682
+ /** Title shown in approval UI (from tool's approvalTitle) */
683
+ approvalTitle?: string;
677
684
  /** Message shown in approval UI (from tool's approvalMessage) */
678
685
  approvalMessage?: string;
679
686
  /** Timestamp when user responded to approval request */
@@ -776,6 +783,8 @@ interface ToolConfig<TParams = Record<string, unknown>> {
776
783
  hidden?: boolean;
777
784
  /** Require user approval before execution */
778
785
  needsApproval?: boolean | ((params: TParams) => boolean | Promise<boolean>);
786
+ /** Custom title shown in the approval UI */
787
+ approvalTitle?: string | ((params: TParams) => string);
779
788
  /** Custom message shown in the approval UI */
780
789
  approvalMessage?: string | ((params: TParams) => string);
781
790
  /** AI response mode for this tool (default: 'full') */
@@ -509,6 +509,11 @@ interface ToolDefinition<TParams = Record<string, unknown>> {
509
509
  * Similar to Vercel AI SDK v6's needsApproval pattern.
510
510
  */
511
511
  needsApproval?: boolean | ((params: TParams) => boolean | Promise<boolean>);
512
+ /**
513
+ * Custom title shown in the approval UI.
514
+ * If not provided, the tool name is used.
515
+ */
516
+ approvalTitle?: string | ((params: TParams) => string);
512
517
  /**
513
518
  * Custom message shown in the approval UI.
514
519
  * Can be a string or a function that generates a message from params.
@@ -674,6 +679,8 @@ interface ToolExecution {
674
679
  duration?: number;
675
680
  /** Approval status for this execution */
676
681
  approvalStatus: ToolApprovalStatus;
682
+ /** Title shown in approval UI (from tool's approvalTitle) */
683
+ approvalTitle?: string;
677
684
  /** Message shown in approval UI (from tool's approvalMessage) */
678
685
  approvalMessage?: string;
679
686
  /** Timestamp when user responded to approval request */
@@ -776,6 +783,8 @@ interface ToolConfig<TParams = Record<string, unknown>> {
776
783
  hidden?: boolean;
777
784
  /** Require user approval before execution */
778
785
  needsApproval?: boolean | ((params: TParams) => boolean | Promise<boolean>);
786
+ /** Custom title shown in the approval UI */
787
+ approvalTitle?: string | ((params: TParams) => string);
779
788
  /** Custom message shown in the approval UI */
780
789
  approvalMessage?: string | ((params: TParams) => string);
781
790
  /** AI response mode for this tool (default: 'full') */
@@ -1,4 +1,4 @@
1
- import { T as ToolDefinition } from './tools-DHZhF5km.cjs';
1
+ import { T as ToolDefinition } from './tools-tmksfhUo.cjs';
2
2
 
3
3
  /**
4
4
  * MCP (Model Context Protocol) Type Definitions
@@ -1,4 +1,4 @@
1
- import { T as ToolDefinition } from './tools-DHZhF5km.js';
1
+ import { T as ToolDefinition } from './tools-tmksfhUo.js';
2
2
 
3
3
  /**
4
4
  * MCP (Model Context Protocol) Type Definitions