@yourgpt/copilot-sdk 2.1.1 → 2.1.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.
- package/dist/{chunk-33JSFVGH.cjs → chunk-7MZLBGFQ.cjs} +23 -23
- package/dist/{chunk-33JSFVGH.cjs.map → chunk-7MZLBGFQ.cjs.map} +1 -1
- package/dist/{chunk-BRUDSHCV.js → chunk-BMYNG3WM.js} +2 -2
- package/dist/{chunk-BRUDSHCV.js.map → chunk-BMYNG3WM.js.map} +1 -1
- package/dist/{chunk-5UMM5VYB.cjs → chunk-BNBEKK3U.cjs} +77 -31
- package/dist/chunk-BNBEKK3U.cjs.map +1 -0
- package/dist/{chunk-HNRFRNMY.cjs → chunk-CSEZZ5DX.cjs} +2 -2
- package/dist/{chunk-HNRFRNMY.cjs.map → chunk-CSEZZ5DX.cjs.map} +1 -1
- package/dist/{chunk-O33I4HBL.cjs → chunk-GSTTJ46F.cjs} +5 -5
- package/dist/{chunk-O33I4HBL.cjs.map → chunk-GSTTJ46F.cjs.map} +1 -1
- package/dist/{chunk-7YZVSG62.js → chunk-VUHP6TAN.js} +3 -3
- package/dist/{chunk-7YZVSG62.js.map → chunk-VUHP6TAN.js.map} +1 -1
- package/dist/{chunk-SNI7VN2U.js → chunk-VXT2O6R6.js} +53 -7
- package/dist/chunk-VXT2O6R6.js.map +1 -0
- package/dist/{chunk-7PJ4GAJR.js → chunk-XAC7NTIO.js} +4 -4
- package/dist/{chunk-7PJ4GAJR.js.map → chunk-XAC7NTIO.js.map} +1 -1
- package/dist/core/index.cjs +80 -80
- 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-25qIYJ21.d.ts → index-Du3Akr_E.d.ts} +1 -1
- package/dist/{index-C261xY-B.d.cts → index-jwRcC2QD.d.cts} +1 -1
- package/dist/mcp/index.d.cts +3 -3
- package/dist/mcp/index.d.ts +3 -3
- package/dist/react/index.cjs +49 -49
- package/dist/react/index.d.cts +25 -5
- package/dist/react/index.d.ts +25 -5
- package/dist/react/index.js +4 -4
- 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-Clyufshc.d.cts → tools-BHQRB_YT.d.cts} +5 -0
- package/dist/{tools-Clyufshc.d.ts → tools-BHQRB_YT.d.ts} +5 -0
- package/dist/{types-DM6M_pv_.d.cts → types-8_Hp2rmm.d.cts} +1 -1
- package/dist/{types-wudOhedT.d.ts → types-OYi-iUVY.d.ts} +1 -1
- package/dist/ui/index.cjs +39 -18
- package/dist/ui/index.cjs.map +1 -1
- package/dist/ui/index.d.cts +6 -1
- package/dist/ui/index.d.ts +6 -1
- package/dist/ui/index.js +35 -14
- package/dist/ui/index.js.map +1 -1
- package/package.json +1 -1
- package/dist/chunk-5UMM5VYB.cjs.map +0 -1
- package/dist/chunk-SNI7VN2U.js.map +0 -1
package/dist/react/index.cjs
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var
|
|
4
|
-
var
|
|
3
|
+
var chunkBNBEKK3U_cjs = require('../chunk-BNBEKK3U.cjs');
|
|
4
|
+
var chunk7MZLBGFQ_cjs = require('../chunk-7MZLBGFQ.cjs');
|
|
5
5
|
require('../chunk-JGPDQDY4.cjs');
|
|
6
|
-
require('../chunk-
|
|
7
|
-
require('../chunk-
|
|
6
|
+
require('../chunk-GSTTJ46F.cjs');
|
|
7
|
+
require('../chunk-CSEZZ5DX.cjs');
|
|
8
8
|
require('../chunk-ASV6JLYG.cjs');
|
|
9
9
|
require('../chunk-CBAHCI4R.cjs');
|
|
10
10
|
require('../chunk-MEBXW75C.cjs');
|
|
@@ -20,183 +20,183 @@ require('../chunk-JEQ2X3Z6.cjs');
|
|
|
20
20
|
|
|
21
21
|
Object.defineProperty(exports, "AbstractAgentLoop", {
|
|
22
22
|
enumerable: true,
|
|
23
|
-
get: function () { return
|
|
23
|
+
get: function () { return chunkBNBEKK3U_cjs.AbstractAgentLoop; }
|
|
24
24
|
});
|
|
25
25
|
Object.defineProperty(exports, "AbstractChat", {
|
|
26
26
|
enumerable: true,
|
|
27
|
-
get: function () { return
|
|
27
|
+
get: function () { return chunkBNBEKK3U_cjs.AbstractChat; }
|
|
28
28
|
});
|
|
29
29
|
Object.defineProperty(exports, "CopilotProvider", {
|
|
30
30
|
enumerable: true,
|
|
31
|
-
get: function () { return
|
|
31
|
+
get: function () { return chunkBNBEKK3U_cjs.CopilotProvider; }
|
|
32
32
|
});
|
|
33
33
|
Object.defineProperty(exports, "ReactChat", {
|
|
34
34
|
enumerable: true,
|
|
35
|
-
get: function () { return
|
|
35
|
+
get: function () { return chunkBNBEKK3U_cjs.ReactChat; }
|
|
36
36
|
});
|
|
37
37
|
Object.defineProperty(exports, "ReactChatState", {
|
|
38
38
|
enumerable: true,
|
|
39
|
-
get: function () { return
|
|
39
|
+
get: function () { return chunkBNBEKK3U_cjs.ReactChatState; }
|
|
40
40
|
});
|
|
41
41
|
Object.defineProperty(exports, "ReactThreadManager", {
|
|
42
42
|
enumerable: true,
|
|
43
|
-
get: function () { return
|
|
43
|
+
get: function () { return chunkBNBEKK3U_cjs.ReactThreadManager; }
|
|
44
44
|
});
|
|
45
45
|
Object.defineProperty(exports, "ReactThreadManagerState", {
|
|
46
46
|
enumerable: true,
|
|
47
|
-
get: function () { return
|
|
47
|
+
get: function () { return chunkBNBEKK3U_cjs.ReactThreadManagerState; }
|
|
48
48
|
});
|
|
49
49
|
Object.defineProperty(exports, "createMessageIntentHandler", {
|
|
50
50
|
enumerable: true,
|
|
51
|
-
get: function () { return
|
|
51
|
+
get: function () { return chunkBNBEKK3U_cjs.createMessageIntentHandler; }
|
|
52
52
|
});
|
|
53
53
|
Object.defineProperty(exports, "createPermissionStorage", {
|
|
54
54
|
enumerable: true,
|
|
55
|
-
get: function () { return
|
|
55
|
+
get: function () { return chunkBNBEKK3U_cjs.createPermissionStorage; }
|
|
56
56
|
});
|
|
57
57
|
Object.defineProperty(exports, "createReactChat", {
|
|
58
58
|
enumerable: true,
|
|
59
|
-
get: function () { return
|
|
59
|
+
get: function () { return chunkBNBEKK3U_cjs.createReactChat; }
|
|
60
60
|
});
|
|
61
61
|
Object.defineProperty(exports, "createReactChatState", {
|
|
62
62
|
enumerable: true,
|
|
63
|
-
get: function () { return
|
|
63
|
+
get: function () { return chunkBNBEKK3U_cjs.createReactChatState; }
|
|
64
64
|
});
|
|
65
65
|
Object.defineProperty(exports, "createReactThreadManager", {
|
|
66
66
|
enumerable: true,
|
|
67
|
-
get: function () { return
|
|
67
|
+
get: function () { return chunkBNBEKK3U_cjs.createReactThreadManager; }
|
|
68
68
|
});
|
|
69
69
|
Object.defineProperty(exports, "createReactThreadManagerState", {
|
|
70
70
|
enumerable: true,
|
|
71
|
-
get: function () { return
|
|
71
|
+
get: function () { return chunkBNBEKK3U_cjs.createReactThreadManagerState; }
|
|
72
72
|
});
|
|
73
73
|
Object.defineProperty(exports, "createSessionPermissionCache", {
|
|
74
74
|
enumerable: true,
|
|
75
|
-
get: function () { return
|
|
75
|
+
get: function () { return chunkBNBEKK3U_cjs.createSessionPermissionCache; }
|
|
76
76
|
});
|
|
77
77
|
Object.defineProperty(exports, "createToolIntentHandler", {
|
|
78
78
|
enumerable: true,
|
|
79
|
-
get: function () { return
|
|
79
|
+
get: function () { return chunkBNBEKK3U_cjs.createToolIntentHandler; }
|
|
80
80
|
});
|
|
81
81
|
Object.defineProperty(exports, "formatKnowledgeResultsForAI", {
|
|
82
82
|
enumerable: true,
|
|
83
|
-
get: function () { return
|
|
83
|
+
get: function () { return chunkBNBEKK3U_cjs.formatKnowledgeResultsForAI; }
|
|
84
84
|
});
|
|
85
85
|
Object.defineProperty(exports, "initialAgentLoopState", {
|
|
86
86
|
enumerable: true,
|
|
87
|
-
get: function () { return
|
|
87
|
+
get: function () { return chunkBNBEKK3U_cjs.initialAgentLoopState; }
|
|
88
88
|
});
|
|
89
89
|
Object.defineProperty(exports, "searchKnowledgeBase", {
|
|
90
90
|
enumerable: true,
|
|
91
|
-
get: function () { return
|
|
91
|
+
get: function () { return chunkBNBEKK3U_cjs.searchKnowledgeBase; }
|
|
92
92
|
});
|
|
93
93
|
Object.defineProperty(exports, "useAIAction", {
|
|
94
94
|
enumerable: true,
|
|
95
|
-
get: function () { return
|
|
95
|
+
get: function () { return chunkBNBEKK3U_cjs.useAIAction; }
|
|
96
96
|
});
|
|
97
97
|
Object.defineProperty(exports, "useAIActions", {
|
|
98
98
|
enumerable: true,
|
|
99
|
-
get: function () { return
|
|
99
|
+
get: function () { return chunkBNBEKK3U_cjs.useAIActions; }
|
|
100
100
|
});
|
|
101
101
|
Object.defineProperty(exports, "useAIContext", {
|
|
102
102
|
enumerable: true,
|
|
103
|
-
get: function () { return
|
|
103
|
+
get: function () { return chunkBNBEKK3U_cjs.useAIContext; }
|
|
104
104
|
});
|
|
105
105
|
Object.defineProperty(exports, "useAIContexts", {
|
|
106
106
|
enumerable: true,
|
|
107
|
-
get: function () { return
|
|
107
|
+
get: function () { return chunkBNBEKK3U_cjs.useAIContexts; }
|
|
108
108
|
});
|
|
109
109
|
Object.defineProperty(exports, "useAITools", {
|
|
110
110
|
enumerable: true,
|
|
111
|
-
get: function () { return
|
|
111
|
+
get: function () { return chunkBNBEKK3U_cjs.useAITools; }
|
|
112
112
|
});
|
|
113
113
|
Object.defineProperty(exports, "useAgent", {
|
|
114
114
|
enumerable: true,
|
|
115
|
-
get: function () { return
|
|
115
|
+
get: function () { return chunkBNBEKK3U_cjs.useAgent; }
|
|
116
116
|
});
|
|
117
117
|
Object.defineProperty(exports, "useCapabilities", {
|
|
118
118
|
enumerable: true,
|
|
119
|
-
get: function () { return
|
|
119
|
+
get: function () { return chunkBNBEKK3U_cjs.useCapabilities; }
|
|
120
120
|
});
|
|
121
121
|
Object.defineProperty(exports, "useChat", {
|
|
122
122
|
enumerable: true,
|
|
123
|
-
get: function () { return
|
|
123
|
+
get: function () { return chunkBNBEKK3U_cjs.useChat; }
|
|
124
124
|
});
|
|
125
125
|
Object.defineProperty(exports, "useCopilot", {
|
|
126
126
|
enumerable: true,
|
|
127
|
-
get: function () { return
|
|
127
|
+
get: function () { return chunkBNBEKK3U_cjs.useCopilot; }
|
|
128
128
|
});
|
|
129
129
|
Object.defineProperty(exports, "useDevLogger", {
|
|
130
130
|
enumerable: true,
|
|
131
|
-
get: function () { return
|
|
131
|
+
get: function () { return chunkBNBEKK3U_cjs.useDevLogger; }
|
|
132
132
|
});
|
|
133
133
|
Object.defineProperty(exports, "useFeatureSupport", {
|
|
134
134
|
enumerable: true,
|
|
135
|
-
get: function () { return
|
|
135
|
+
get: function () { return chunkBNBEKK3U_cjs.useFeatureSupport; }
|
|
136
136
|
});
|
|
137
137
|
Object.defineProperty(exports, "useKnowledgeBase", {
|
|
138
138
|
enumerable: true,
|
|
139
|
-
get: function () { return
|
|
139
|
+
get: function () { return chunkBNBEKK3U_cjs.useKnowledgeBase; }
|
|
140
140
|
});
|
|
141
141
|
Object.defineProperty(exports, "useMCPClient", {
|
|
142
142
|
enumerable: true,
|
|
143
|
-
get: function () { return
|
|
143
|
+
get: function () { return chunkBNBEKK3U_cjs.useMCPClient; }
|
|
144
144
|
});
|
|
145
145
|
Object.defineProperty(exports, "useMCPTools", {
|
|
146
146
|
enumerable: true,
|
|
147
|
-
get: function () { return
|
|
147
|
+
get: function () { return chunkBNBEKK3U_cjs.useMCPTools; }
|
|
148
148
|
});
|
|
149
149
|
Object.defineProperty(exports, "useMCPUIIntents", {
|
|
150
150
|
enumerable: true,
|
|
151
|
-
get: function () { return
|
|
151
|
+
get: function () { return chunkBNBEKK3U_cjs.useMCPUIIntents; }
|
|
152
152
|
});
|
|
153
153
|
Object.defineProperty(exports, "useSuggestions", {
|
|
154
154
|
enumerable: true,
|
|
155
|
-
get: function () { return
|
|
155
|
+
get: function () { return chunkBNBEKK3U_cjs.useSuggestions; }
|
|
156
156
|
});
|
|
157
157
|
Object.defineProperty(exports, "useSupportedMediaTypes", {
|
|
158
158
|
enumerable: true,
|
|
159
|
-
get: function () { return
|
|
159
|
+
get: function () { return chunkBNBEKK3U_cjs.useSupportedMediaTypes; }
|
|
160
160
|
});
|
|
161
161
|
Object.defineProperty(exports, "useThreadManager", {
|
|
162
162
|
enumerable: true,
|
|
163
|
-
get: function () { return
|
|
163
|
+
get: function () { return chunkBNBEKK3U_cjs.useThreadManager; }
|
|
164
164
|
});
|
|
165
165
|
Object.defineProperty(exports, "useTool", {
|
|
166
166
|
enumerable: true,
|
|
167
|
-
get: function () { return
|
|
167
|
+
get: function () { return chunkBNBEKK3U_cjs.useTool; }
|
|
168
168
|
});
|
|
169
169
|
Object.defineProperty(exports, "useToolExecutor", {
|
|
170
170
|
enumerable: true,
|
|
171
|
-
get: function () { return
|
|
171
|
+
get: function () { return chunkBNBEKK3U_cjs.useToolExecutor; }
|
|
172
172
|
});
|
|
173
173
|
Object.defineProperty(exports, "useToolWithSchema", {
|
|
174
174
|
enumerable: true,
|
|
175
|
-
get: function () { return
|
|
175
|
+
get: function () { return chunkBNBEKK3U_cjs.useToolWithSchema; }
|
|
176
176
|
});
|
|
177
177
|
Object.defineProperty(exports, "useTools", {
|
|
178
178
|
enumerable: true,
|
|
179
|
-
get: function () { return
|
|
179
|
+
get: function () { return chunkBNBEKK3U_cjs.useTools; }
|
|
180
180
|
});
|
|
181
181
|
Object.defineProperty(exports, "useToolsWithSchema", {
|
|
182
182
|
enumerable: true,
|
|
183
|
-
get: function () { return
|
|
183
|
+
get: function () { return chunkBNBEKK3U_cjs.useToolsWithSchema; }
|
|
184
184
|
});
|
|
185
185
|
Object.defineProperty(exports, "createLocalStorageAdapter", {
|
|
186
186
|
enumerable: true,
|
|
187
|
-
get: function () { return
|
|
187
|
+
get: function () { return chunk7MZLBGFQ_cjs.createLocalStorageAdapter; }
|
|
188
188
|
});
|
|
189
189
|
Object.defineProperty(exports, "createMemoryAdapter", {
|
|
190
190
|
enumerable: true,
|
|
191
|
-
get: function () { return
|
|
191
|
+
get: function () { return chunk7MZLBGFQ_cjs.createMemoryAdapter; }
|
|
192
192
|
});
|
|
193
193
|
Object.defineProperty(exports, "createServerAdapter", {
|
|
194
194
|
enumerable: true,
|
|
195
|
-
get: function () { return
|
|
195
|
+
get: function () { return chunk7MZLBGFQ_cjs.createServerAdapter; }
|
|
196
196
|
});
|
|
197
197
|
Object.defineProperty(exports, "generateSuggestionReason", {
|
|
198
198
|
enumerable: true,
|
|
199
|
-
get: function () { return
|
|
199
|
+
get: function () { return chunk7MZLBGFQ_cjs.generateSuggestionReason; }
|
|
200
200
|
});
|
|
201
201
|
//# sourceMappingURL=index.cjs.map
|
|
202
202
|
//# sourceMappingURL=index.cjs.map
|
package/dist/react/index.d.cts
CHANGED
|
@@ -2,12 +2,12 @@ import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
|
2
2
|
import React__default from 'react';
|
|
3
3
|
import { L as LLMConfig, l as ToolsConfig, s as ActionDefinition, o as CapturedContext, m as ToolConsentRequest, T as ToolType, n as ToolConsentResponse, S as ScreenshotOptions, C as ConsoleLogOptions, N as NetworkRequestOptions, I as IntentDetectionResult, y as InternalKnowledgeBaseConfig, B as InternalKnowledgeBaseSearchResponse, z as InternalKnowledgeBaseResult, Y as ThreadManagerState, Z as LoadStatus, U as ThreadManagerConfig, F as ThreadManager, V as ThreadManagerCallbacks, W as CreateThreadOptions, X as UpdateThreadOptions } from '../ThreadManager-LfFRhr4e.cjs';
|
|
4
4
|
export { A as ActionParameter, q as CloudConfig, r as CopilotConfig, _ as LocalStorageAdapterConfig, J as createLocalStorageAdapter, O as createMemoryAdapter, i as generateSuggestionReason } from '../ThreadManager-LfFRhr4e.cjs';
|
|
5
|
-
import { T as ToolDefinition, f as ToolSource, P as PermissionLevel, c as ToolInputSchema, l as ToolExecution$1, e as ToolContext, b as ToolResponse$1, g as ToolRenderProps, i as ToolSet, U as UnifiedToolCall, r as PermissionStorageConfig, s as PermissionStorageAdapter } from '../tools-
|
|
6
|
-
export { m as AgentLoopConfig, a as ToolExecutionStatus, q as ToolPermission } from '../tools-
|
|
5
|
+
import { T as ToolDefinition, f as ToolSource, P as PermissionLevel, c as ToolInputSchema, l as ToolExecution$1, e as ToolContext, b as ToolResponse$1, g as ToolRenderProps, i as ToolSet, U as UnifiedToolCall, r as PermissionStorageConfig, s as PermissionStorageAdapter } from '../tools-BHQRB_YT.cjs';
|
|
6
|
+
export { m as AgentLoopConfig, a as ToolExecutionStatus, q as ToolPermission } from '../tools-BHQRB_YT.cjs';
|
|
7
7
|
import { A as AsyncThreadStorageAdapter, c as MessageAttachment, f as ToolCall, S as Source, M as Message, T as Thread, a as ThreadData, b as ThreadStorageAdapter } from '../types-DG2ya08y.cjs';
|
|
8
8
|
export { P as PersistenceConfig, h as ThreadStorageAdapter } from '../types-DG2ya08y.cjs';
|
|
9
|
-
import { G as MCPServerConfig, U as UseMCPClientConfig, D as UseMCPClientReturn, E as UseMCPToolsConfig, F as UseMCPToolsReturn } from '../types-
|
|
10
|
-
export { b as MCPClientState } from '../types-
|
|
9
|
+
import { G as MCPServerConfig, U as UseMCPClientConfig, D as UseMCPClientReturn, E as UseMCPToolsConfig, F as UseMCPToolsReturn } from '../types-8_Hp2rmm.cjs';
|
|
10
|
+
export { b as MCPClientState } from '../types-8_Hp2rmm.cjs';
|
|
11
11
|
import { U as UseMCPUIIntentsConfig, m as UseMCPUIIntentsReturn } from '../types-B20VCJXL.cjs';
|
|
12
12
|
|
|
13
13
|
/**
|
|
@@ -124,9 +124,18 @@ interface ChatResponse {
|
|
|
124
124
|
role: string;
|
|
125
125
|
content: string | null;
|
|
126
126
|
tool_calls?: unknown[];
|
|
127
|
+
/** Tool call ID for tool result messages */
|
|
128
|
+
tool_call_id?: string;
|
|
127
129
|
}>;
|
|
128
130
|
/** Whether client needs to execute tools */
|
|
129
131
|
requiresAction?: boolean;
|
|
132
|
+
/** Tool calls with metadata (includes hidden flag for server-side tools) */
|
|
133
|
+
toolCalls?: Array<{
|
|
134
|
+
id: string;
|
|
135
|
+
name: string;
|
|
136
|
+
args: Record<string, unknown>;
|
|
137
|
+
hidden?: boolean;
|
|
138
|
+
}>;
|
|
130
139
|
}
|
|
131
140
|
/**
|
|
132
141
|
* Tool result from server
|
|
@@ -180,12 +189,18 @@ type StreamChunk = {
|
|
|
180
189
|
message: string;
|
|
181
190
|
} | {
|
|
182
191
|
type: "done";
|
|
183
|
-
messages?:
|
|
192
|
+
messages?: Array<{
|
|
193
|
+
role: string;
|
|
194
|
+
content: string | null;
|
|
195
|
+
tool_calls?: unknown[];
|
|
196
|
+
tool_call_id?: string;
|
|
197
|
+
}>;
|
|
184
198
|
requiresAction?: boolean;
|
|
185
199
|
} | {
|
|
186
200
|
type: "action:start";
|
|
187
201
|
id: string;
|
|
188
202
|
name: string;
|
|
203
|
+
hidden?: boolean;
|
|
189
204
|
} | {
|
|
190
205
|
type: "action:args";
|
|
191
206
|
id: string;
|
|
@@ -525,6 +540,11 @@ interface ToolExecution {
|
|
|
525
540
|
approvalMessage?: string;
|
|
526
541
|
/** Data passed from user's approval action (e.g., selected supervisor) */
|
|
527
542
|
approvalData?: Record<string, unknown>;
|
|
543
|
+
/**
|
|
544
|
+
* Whether this tool execution should be hidden from the UI.
|
|
545
|
+
* When true, the tool won't appear in the chat, but still executes normally.
|
|
546
|
+
*/
|
|
547
|
+
hidden?: boolean;
|
|
528
548
|
}
|
|
529
549
|
/**
|
|
530
550
|
* Tool response
|
package/dist/react/index.d.ts
CHANGED
|
@@ -2,12 +2,12 @@ import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
|
2
2
|
import React__default from 'react';
|
|
3
3
|
import { L as LLMConfig, l as ToolsConfig, s as ActionDefinition, o as CapturedContext, m as ToolConsentRequest, T as ToolType, n as ToolConsentResponse, S as ScreenshotOptions, C as ConsoleLogOptions, N as NetworkRequestOptions, I as IntentDetectionResult, y as InternalKnowledgeBaseConfig, B as InternalKnowledgeBaseSearchResponse, z as InternalKnowledgeBaseResult, Y as ThreadManagerState, Z as LoadStatus, U as ThreadManagerConfig, F as ThreadManager, V as ThreadManagerCallbacks, W as CreateThreadOptions, X as UpdateThreadOptions } from '../ThreadManager-Dkp_eLty.js';
|
|
4
4
|
export { A as ActionParameter, q as CloudConfig, r as CopilotConfig, _ as LocalStorageAdapterConfig, J as createLocalStorageAdapter, O as createMemoryAdapter, i as generateSuggestionReason } from '../ThreadManager-Dkp_eLty.js';
|
|
5
|
-
import { T as ToolDefinition, f as ToolSource, P as PermissionLevel, c as ToolInputSchema, l as ToolExecution$1, e as ToolContext, b as ToolResponse$1, g as ToolRenderProps, i as ToolSet, U as UnifiedToolCall, r as PermissionStorageConfig, s as PermissionStorageAdapter } from '../tools-
|
|
6
|
-
export { m as AgentLoopConfig, a as ToolExecutionStatus, q as ToolPermission } from '../tools-
|
|
5
|
+
import { T as ToolDefinition, f as ToolSource, P as PermissionLevel, c as ToolInputSchema, l as ToolExecution$1, e as ToolContext, b as ToolResponse$1, g as ToolRenderProps, i as ToolSet, U as UnifiedToolCall, r as PermissionStorageConfig, s as PermissionStorageAdapter } from '../tools-BHQRB_YT.js';
|
|
6
|
+
export { m as AgentLoopConfig, a as ToolExecutionStatus, q as ToolPermission } from '../tools-BHQRB_YT.js';
|
|
7
7
|
import { A as AsyncThreadStorageAdapter, c as MessageAttachment, f as ToolCall, S as Source, M as Message, T as Thread, a as ThreadData, b as ThreadStorageAdapter } from '../types-DG2ya08y.js';
|
|
8
8
|
export { P as PersistenceConfig, h as ThreadStorageAdapter } from '../types-DG2ya08y.js';
|
|
9
|
-
import { G as MCPServerConfig, U as UseMCPClientConfig, D as UseMCPClientReturn, E as UseMCPToolsConfig, F as UseMCPToolsReturn } from '../types-
|
|
10
|
-
export { b as MCPClientState } from '../types-
|
|
9
|
+
import { G as MCPServerConfig, U as UseMCPClientConfig, D as UseMCPClientReturn, E as UseMCPToolsConfig, F as UseMCPToolsReturn } from '../types-OYi-iUVY.js';
|
|
10
|
+
export { b as MCPClientState } from '../types-OYi-iUVY.js';
|
|
11
11
|
import { U as UseMCPUIIntentsConfig, m as UseMCPUIIntentsReturn } from '../types-B20VCJXL.js';
|
|
12
12
|
|
|
13
13
|
/**
|
|
@@ -124,9 +124,18 @@ interface ChatResponse {
|
|
|
124
124
|
role: string;
|
|
125
125
|
content: string | null;
|
|
126
126
|
tool_calls?: unknown[];
|
|
127
|
+
/** Tool call ID for tool result messages */
|
|
128
|
+
tool_call_id?: string;
|
|
127
129
|
}>;
|
|
128
130
|
/** Whether client needs to execute tools */
|
|
129
131
|
requiresAction?: boolean;
|
|
132
|
+
/** Tool calls with metadata (includes hidden flag for server-side tools) */
|
|
133
|
+
toolCalls?: Array<{
|
|
134
|
+
id: string;
|
|
135
|
+
name: string;
|
|
136
|
+
args: Record<string, unknown>;
|
|
137
|
+
hidden?: boolean;
|
|
138
|
+
}>;
|
|
130
139
|
}
|
|
131
140
|
/**
|
|
132
141
|
* Tool result from server
|
|
@@ -180,12 +189,18 @@ type StreamChunk = {
|
|
|
180
189
|
message: string;
|
|
181
190
|
} | {
|
|
182
191
|
type: "done";
|
|
183
|
-
messages?:
|
|
192
|
+
messages?: Array<{
|
|
193
|
+
role: string;
|
|
194
|
+
content: string | null;
|
|
195
|
+
tool_calls?: unknown[];
|
|
196
|
+
tool_call_id?: string;
|
|
197
|
+
}>;
|
|
184
198
|
requiresAction?: boolean;
|
|
185
199
|
} | {
|
|
186
200
|
type: "action:start";
|
|
187
201
|
id: string;
|
|
188
202
|
name: string;
|
|
203
|
+
hidden?: boolean;
|
|
189
204
|
} | {
|
|
190
205
|
type: "action:args";
|
|
191
206
|
id: string;
|
|
@@ -525,6 +540,11 @@ interface ToolExecution {
|
|
|
525
540
|
approvalMessage?: string;
|
|
526
541
|
/** Data passed from user's approval action (e.g., selected supervisor) */
|
|
527
542
|
approvalData?: Record<string, unknown>;
|
|
543
|
+
/**
|
|
544
|
+
* Whether this tool execution should be hidden from the UI.
|
|
545
|
+
* When true, the tool won't appear in the chat, but still executes normally.
|
|
546
|
+
*/
|
|
547
|
+
hidden?: boolean;
|
|
528
548
|
}
|
|
529
549
|
/**
|
|
530
550
|
* Tool response
|
package/dist/react/index.js
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
export { AbstractAgentLoop, AbstractChat, CopilotProvider, ReactChat, ReactChatState, ReactThreadManager, ReactThreadManagerState, createMessageIntentHandler, createPermissionStorage, createReactChat, createReactChatState, createReactThreadManager, createReactThreadManagerState, createSessionPermissionCache, createToolIntentHandler, formatKnowledgeResultsForAI, initialAgentLoopState, searchKnowledgeBase, useAIAction, useAIActions, useAIContext, useAIContexts, useAITools, useAgent, useCapabilities, useChat, useCopilot, useDevLogger, useFeatureSupport, useKnowledgeBase, useMCPClient, useMCPTools, useMCPUIIntents, useSuggestions, useSupportedMediaTypes, useThreadManager, useTool, useToolExecutor, useToolWithSchema, useTools, useToolsWithSchema } from '../chunk-
|
|
2
|
-
export { createLocalStorageAdapter, createMemoryAdapter, createServerAdapter, generateSuggestionReason } from '../chunk-
|
|
1
|
+
export { AbstractAgentLoop, AbstractChat, CopilotProvider, ReactChat, ReactChatState, ReactThreadManager, ReactThreadManagerState, createMessageIntentHandler, createPermissionStorage, createReactChat, createReactChatState, createReactThreadManager, createReactThreadManagerState, createSessionPermissionCache, createToolIntentHandler, formatKnowledgeResultsForAI, initialAgentLoopState, searchKnowledgeBase, useAIAction, useAIActions, useAIContext, useAIContexts, useAITools, useAgent, useCapabilities, useChat, useCopilot, useDevLogger, useFeatureSupport, useKnowledgeBase, useMCPClient, useMCPTools, useMCPUIIntents, useSuggestions, useSupportedMediaTypes, useThreadManager, useTool, useToolExecutor, useToolWithSchema, useTools, useToolsWithSchema } from '../chunk-VXT2O6R6.js';
|
|
2
|
+
export { createLocalStorageAdapter, createMemoryAdapter, createServerAdapter, generateSuggestionReason } from '../chunk-XAC7NTIO.js';
|
|
3
3
|
import '../chunk-EWVQWTNV.js';
|
|
4
|
-
import '../chunk-
|
|
5
|
-
import '../chunk-
|
|
4
|
+
import '../chunk-VUHP6TAN.js';
|
|
5
|
+
import '../chunk-BMYNG3WM.js';
|
|
6
6
|
import '../chunk-XGITAEXU.js';
|
|
7
7
|
import '../chunk-7W7QLZNC.js';
|
|
8
8
|
import '../chunk-CEOMTQTP.js';
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var
|
|
3
|
+
var chunkCSEZZ5DX_cjs = require('../../chunk-CSEZZ5DX.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
|
|
73
|
+
return chunkCSEZZ5DX_cjs.failure(errorMessage);
|
|
74
74
|
}
|
|
75
75
|
}
|
|
76
76
|
};
|
package/dist/tools/exa/index.cjs
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var
|
|
3
|
+
var chunkCSEZZ5DX_cjs = require('../../chunk-CSEZZ5DX.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
|
|
78
|
+
return chunkCSEZZ5DX_cjs.failure(errorMessage);
|
|
79
79
|
}
|
|
80
80
|
}
|
|
81
81
|
};
|
package/dist/tools/exa/index.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var
|
|
3
|
+
var chunkCSEZZ5DX_cjs = require('../../chunk-CSEZZ5DX.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
|
|
69
|
+
return chunkCSEZZ5DX_cjs.failure(errorMessage);
|
|
70
70
|
}
|
|
71
71
|
}
|
|
72
72
|
};
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var
|
|
3
|
+
var chunkCSEZZ5DX_cjs = require('../../chunk-CSEZZ5DX.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
|
|
71
|
+
return chunkCSEZZ5DX_cjs.failure(errorMessage);
|
|
72
72
|
}
|
|
73
73
|
}
|
|
74
74
|
};
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var
|
|
3
|
+
var chunkCSEZZ5DX_cjs = require('../../chunk-CSEZZ5DX.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
|
|
73
|
+
return chunkCSEZZ5DX_cjs.failure(errorMessage);
|
|
74
74
|
}
|
|
75
75
|
}
|
|
76
76
|
};
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var
|
|
3
|
+
var chunkCSEZZ5DX_cjs = require('../../chunk-CSEZZ5DX.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
|
|
73
|
+
return chunkCSEZZ5DX_cjs.failure(errorMessage);
|
|
74
74
|
}
|
|
75
75
|
}
|
|
76
76
|
};
|