@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.
- package/dist/{chunk-4QXY2PBG.js → chunk-3AONOZLY.js} +2 -2
- package/dist/{chunk-4QXY2PBG.js.map → chunk-3AONOZLY.js.map} +1 -1
- package/dist/{chunk-JKGFQUHJ.cjs → chunk-MDS23G2S.cjs} +5 -5
- package/dist/{chunk-JKGFQUHJ.cjs.map → chunk-MDS23G2S.cjs.map} +1 -1
- package/dist/{chunk-5Q72LZ5H.js → chunk-PT2TOHG5.js} +7 -3
- package/dist/chunk-PT2TOHG5.js.map +1 -0
- package/dist/{chunk-ENFWM3EY.js → chunk-RKGRQRZU.js} +3 -3
- package/dist/{chunk-ENFWM3EY.js.map → chunk-RKGRQRZU.js.map} +1 -1
- package/dist/{chunk-IXWNDR7H.cjs → chunk-TCPAT3WG.cjs} +35 -31
- package/dist/chunk-TCPAT3WG.cjs.map +1 -0
- package/dist/{chunk-246B6X5D.cjs → chunk-TPB7XED6.cjs} +2 -2
- package/dist/{chunk-246B6X5D.cjs.map → chunk-TPB7XED6.cjs.map} +1 -1
- package/dist/{chunk-I3SQUNTT.cjs → chunk-WIXFZUEZ.cjs} +23 -23
- package/dist/{chunk-I3SQUNTT.cjs.map → chunk-WIXFZUEZ.cjs.map} +1 -1
- package/dist/{chunk-UXJ6LIZB.js → chunk-WZ2TOZ7M.js} +4 -4
- package/dist/{chunk-UXJ6LIZB.js.map → chunk-WZ2TOZ7M.js.map} +1 -1
- package/dist/core/index.cjs +82 -82
- package/dist/core/index.d.cts +3 -3
- package/dist/core/index.d.ts +3 -3
- package/dist/core/index.js +3 -3
- package/dist/{index-CiExk87c.d.cts → index-CzJB8Ddo.d.cts} +1 -1
- package/dist/{index-Dwrcf-CP.d.ts → index-D7169xuR.d.ts} +1 -1
- package/dist/mcp/index.d.cts +3 -3
- package/dist/mcp/index.d.ts +3 -3
- package/dist/react/index.cjs +65 -65
- package/dist/react/index.d.cts +8 -4
- package/dist/react/index.d.ts +8 -4
- package/dist/react/index.js +4 -4
- package/dist/styles.css +43 -0
- package/dist/tools/anthropic/index.d.cts +1 -1
- package/dist/tools/anthropic/index.d.ts +1 -1
- package/dist/tools/brave/index.cjs +2 -2
- package/dist/tools/brave/index.d.cts +1 -1
- package/dist/tools/brave/index.d.ts +1 -1
- package/dist/tools/brave/index.js +1 -1
- package/dist/tools/exa/index.cjs +2 -2
- package/dist/tools/exa/index.d.cts +1 -1
- package/dist/tools/exa/index.d.ts +1 -1
- package/dist/tools/exa/index.js +1 -1
- package/dist/tools/google/index.cjs +2 -2
- package/dist/tools/google/index.d.cts +1 -1
- package/dist/tools/google/index.d.ts +1 -1
- package/dist/tools/google/index.js +1 -1
- package/dist/tools/openai/index.cjs +2 -2
- package/dist/tools/openai/index.d.cts +1 -1
- package/dist/tools/openai/index.d.ts +1 -1
- package/dist/tools/openai/index.js +1 -1
- package/dist/tools/searxng/index.cjs +2 -2
- package/dist/tools/searxng/index.d.cts +1 -1
- package/dist/tools/searxng/index.d.ts +1 -1
- package/dist/tools/searxng/index.js +1 -1
- package/dist/tools/serper/index.cjs +2 -2
- package/dist/tools/serper/index.d.cts +1 -1
- package/dist/tools/serper/index.d.ts +1 -1
- package/dist/tools/serper/index.js +1 -1
- package/dist/tools/tavily/index.cjs +2 -2
- package/dist/tools/tavily/index.d.cts +1 -1
- package/dist/tools/tavily/index.d.ts +1 -1
- package/dist/tools/tavily/index.js +1 -1
- package/dist/tools/web-search/index.cjs +3 -3
- package/dist/tools/web-search/index.d.cts +2 -2
- package/dist/tools/web-search/index.d.ts +2 -2
- package/dist/tools/web-search/index.js +2 -2
- package/dist/{tools-DHZhF5km.d.cts → tools-tmksfhUo.d.cts} +9 -0
- package/dist/{tools-DHZhF5km.d.ts → tools-tmksfhUo.d.ts} +9 -0
- package/dist/{types-BdX7uPj0.d.cts → types-BLw7mxtW.d.cts} +1 -1
- package/dist/{types-BTyJu0WD.d.ts → types-BqwW3Baj.d.ts} +1 -1
- package/dist/ui/index.cjs +798 -417
- package/dist/ui/index.cjs.map +1 -1
- package/dist/ui/index.d.cts +337 -108
- package/dist/ui/index.d.ts +337 -108
- package/dist/ui/index.js +745 -365
- package/dist/ui/index.js.map +1 -1
- package/package.json +1 -1
- package/dist/chunk-5Q72LZ5H.js.map +0 -1
- package/dist/chunk-IXWNDR7H.cjs.map +0 -1
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var
|
|
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
|
|
73
|
+
return chunkTPB7XED6_cjs.failure(errorMessage);
|
|
74
74
|
}
|
|
75
75
|
}
|
|
76
76
|
};
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var
|
|
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
|
|
73
|
+
return chunkTPB7XED6_cjs.failure(errorMessage);
|
|
74
74
|
}
|
|
75
75
|
}
|
|
76
76
|
};
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var
|
|
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
|
|
79
|
+
return chunkTPB7XED6_cjs.failure(errorMessage);
|
|
80
80
|
}
|
|
81
81
|
}
|
|
82
82
|
};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { failure } from '../../chunk-
|
|
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
|
|
4
|
-
require('../../chunk-
|
|
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
|
|
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-
|
|
3
|
-
import '../../tools-
|
|
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-
|
|
3
|
-
import '../../tools-
|
|
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-
|
|
2
|
-
import '../../chunk-
|
|
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') */
|