@yourgpt/copilot-sdk 0.1.0 → 0.1.1
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/README.md +25 -23
- package/dist/{chunk-QUGTRQSS.js → chunk-FO75W5UI.js} +30 -23
- package/dist/chunk-FO75W5UI.js.map +1 -0
- package/dist/{chunk-2ZCWVAAK.cjs → chunk-IH7WXWX4.cjs} +2 -2
- package/dist/{chunk-2ZCWVAAK.cjs.map → chunk-IH7WXWX4.cjs.map} +1 -1
- package/dist/{chunk-N4OA2J32.js → chunk-QWQELTEB.js} +2 -2
- package/dist/{chunk-N4OA2J32.js.map → chunk-QWQELTEB.js.map} +1 -1
- package/dist/{chunk-W6KQT7YZ.cjs → chunk-R452HH3J.cjs} +53 -46
- package/dist/chunk-R452HH3J.cjs.map +1 -0
- package/dist/core/index.cjs +71 -71
- package/dist/core/index.d.cts +13 -4
- package/dist/core/index.d.ts +13 -4
- package/dist/core/index.js +1 -1
- package/dist/react/index.cjs +34 -34
- package/dist/react/index.d.cts +28 -6
- package/dist/react/index.d.ts +28 -6
- package/dist/react/index.js +2 -2
- package/dist/{thread-C2FjuGLb.d.cts → thread-CLmfwine.d.cts} +1 -516
- package/dist/{thread-C2FjuGLb.d.ts → thread-CLmfwine.d.ts} +1 -516
- package/dist/tools-eeJ5iEC4.d.cts +595 -0
- package/dist/tools-eeJ5iEC4.d.ts +595 -0
- package/dist/ui/index.cjs +136 -46
- package/dist/ui/index.cjs.map +1 -1
- package/dist/ui/index.d.cts +68 -6
- package/dist/ui/index.d.ts +68 -6
- package/dist/ui/index.js +135 -45
- package/dist/ui/index.js.map +1 -1
- package/package.json +9 -8
- package/dist/chunk-QUGTRQSS.js.map +0 -1
- package/dist/chunk-W6KQT7YZ.cjs.map +0 -1
package/dist/core/index.cjs
CHANGED
|
@@ -1,288 +1,288 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var
|
|
3
|
+
var chunkIH7WXWX4_cjs = require('../chunk-IH7WXWX4.cjs');
|
|
4
4
|
|
|
5
5
|
|
|
6
6
|
|
|
7
7
|
Object.defineProperty(exports, "CLOUD_MAX_FILE_SIZE", {
|
|
8
8
|
enumerable: true,
|
|
9
|
-
get: function () { return
|
|
9
|
+
get: function () { return chunkIH7WXWX4_cjs.CLOUD_MAX_FILE_SIZE; }
|
|
10
10
|
});
|
|
11
11
|
Object.defineProperty(exports, "DEFAULT_MODELS", {
|
|
12
12
|
enumerable: true,
|
|
13
|
-
get: function () { return
|
|
13
|
+
get: function () { return chunkIH7WXWX4_cjs.DEFAULT_MODELS; }
|
|
14
14
|
});
|
|
15
15
|
Object.defineProperty(exports, "DEFAULT_YOURGPT_ENDPOINT", {
|
|
16
16
|
enumerable: true,
|
|
17
|
-
get: function () { return
|
|
17
|
+
get: function () { return chunkIH7WXWX4_cjs.DEFAULT_YOURGPT_ENDPOINT; }
|
|
18
18
|
});
|
|
19
19
|
Object.defineProperty(exports, "actionToTool", {
|
|
20
20
|
enumerable: true,
|
|
21
|
-
get: function () { return
|
|
21
|
+
get: function () { return chunkIH7WXWX4_cjs.actionToTool; }
|
|
22
22
|
});
|
|
23
23
|
Object.defineProperty(exports, "builtinTools", {
|
|
24
24
|
enumerable: true,
|
|
25
|
-
get: function () { return
|
|
25
|
+
get: function () { return chunkIH7WXWX4_cjs.builtinTools; }
|
|
26
26
|
});
|
|
27
27
|
Object.defineProperty(exports, "captureCurrentLogs", {
|
|
28
28
|
enumerable: true,
|
|
29
|
-
get: function () { return
|
|
29
|
+
get: function () { return chunkIH7WXWX4_cjs.captureCurrentLogs; }
|
|
30
30
|
});
|
|
31
31
|
Object.defineProperty(exports, "captureScreenshot", {
|
|
32
32
|
enumerable: true,
|
|
33
|
-
get: function () { return
|
|
33
|
+
get: function () { return chunkIH7WXWX4_cjs.captureScreenshot; }
|
|
34
34
|
});
|
|
35
35
|
Object.defineProperty(exports, "clearConsoleLogs", {
|
|
36
36
|
enumerable: true,
|
|
37
|
-
get: function () { return
|
|
37
|
+
get: function () { return chunkIH7WXWX4_cjs.clearConsoleLogs; }
|
|
38
38
|
});
|
|
39
39
|
Object.defineProperty(exports, "clearNetworkRequests", {
|
|
40
40
|
enumerable: true,
|
|
41
|
-
get: function () { return
|
|
41
|
+
get: function () { return chunkIH7WXWX4_cjs.clearNetworkRequests; }
|
|
42
42
|
});
|
|
43
43
|
Object.defineProperty(exports, "consoleLogsTool", {
|
|
44
44
|
enumerable: true,
|
|
45
|
-
get: function () { return
|
|
45
|
+
get: function () { return chunkIH7WXWX4_cjs.consoleLogsTool; }
|
|
46
46
|
});
|
|
47
47
|
Object.defineProperty(exports, "createAssistantMessage", {
|
|
48
48
|
enumerable: true,
|
|
49
|
-
get: function () { return
|
|
49
|
+
get: function () { return chunkIH7WXWX4_cjs.createAssistantMessage; }
|
|
50
50
|
});
|
|
51
51
|
Object.defineProperty(exports, "createCloudStorage", {
|
|
52
52
|
enumerable: true,
|
|
53
|
-
get: function () { return
|
|
53
|
+
get: function () { return chunkIH7WXWX4_cjs.createCloudStorage; }
|
|
54
54
|
});
|
|
55
55
|
Object.defineProperty(exports, "createConsoleLogsTool", {
|
|
56
56
|
enumerable: true,
|
|
57
|
-
get: function () { return
|
|
57
|
+
get: function () { return chunkIH7WXWX4_cjs.createConsoleLogsTool; }
|
|
58
58
|
});
|
|
59
59
|
Object.defineProperty(exports, "createCustomDetector", {
|
|
60
60
|
enumerable: true,
|
|
61
|
-
get: function () { return
|
|
61
|
+
get: function () { return chunkIH7WXWX4_cjs.createCustomDetector; }
|
|
62
62
|
});
|
|
63
63
|
Object.defineProperty(exports, "createMessage", {
|
|
64
64
|
enumerable: true,
|
|
65
|
-
get: function () { return
|
|
65
|
+
get: function () { return chunkIH7WXWX4_cjs.createMessage; }
|
|
66
66
|
});
|
|
67
67
|
Object.defineProperty(exports, "createNetworkRequestsTool", {
|
|
68
68
|
enumerable: true,
|
|
69
|
-
get: function () { return
|
|
69
|
+
get: function () { return chunkIH7WXWX4_cjs.createNetworkRequestsTool; }
|
|
70
70
|
});
|
|
71
71
|
Object.defineProperty(exports, "createSSEStream", {
|
|
72
72
|
enumerable: true,
|
|
73
|
-
get: function () { return
|
|
73
|
+
get: function () { return chunkIH7WXWX4_cjs.createSSEStream; }
|
|
74
74
|
});
|
|
75
75
|
Object.defineProperty(exports, "createScreenshotTool", {
|
|
76
76
|
enumerable: true,
|
|
77
|
-
get: function () { return
|
|
77
|
+
get: function () { return chunkIH7WXWX4_cjs.createScreenshotTool; }
|
|
78
78
|
});
|
|
79
79
|
Object.defineProperty(exports, "createToolCall", {
|
|
80
80
|
enumerable: true,
|
|
81
|
-
get: function () { return
|
|
81
|
+
get: function () { return chunkIH7WXWX4_cjs.createToolCall; }
|
|
82
82
|
});
|
|
83
83
|
Object.defineProperty(exports, "createToolMessage", {
|
|
84
84
|
enumerable: true,
|
|
85
|
-
get: function () { return
|
|
85
|
+
get: function () { return chunkIH7WXWX4_cjs.createToolMessage; }
|
|
86
86
|
});
|
|
87
87
|
Object.defineProperty(exports, "createToolResult", {
|
|
88
88
|
enumerable: true,
|
|
89
|
-
get: function () { return
|
|
89
|
+
get: function () { return chunkIH7WXWX4_cjs.createToolResult; }
|
|
90
90
|
});
|
|
91
91
|
Object.defineProperty(exports, "createUserMessage", {
|
|
92
92
|
enumerable: true,
|
|
93
|
-
get: function () { return
|
|
93
|
+
get: function () { return chunkIH7WXWX4_cjs.createUserMessage; }
|
|
94
94
|
});
|
|
95
95
|
Object.defineProperty(exports, "defaultSystemMessage", {
|
|
96
96
|
enumerable: true,
|
|
97
|
-
get: function () { return
|
|
97
|
+
get: function () { return chunkIH7WXWX4_cjs.defaultSystemMessage; }
|
|
98
98
|
});
|
|
99
99
|
Object.defineProperty(exports, "defineClientTool", {
|
|
100
100
|
enumerable: true,
|
|
101
|
-
get: function () { return
|
|
101
|
+
get: function () { return chunkIH7WXWX4_cjs.defineClientTool; }
|
|
102
102
|
});
|
|
103
103
|
Object.defineProperty(exports, "defineServerTool", {
|
|
104
104
|
enumerable: true,
|
|
105
|
-
get: function () { return
|
|
105
|
+
get: function () { return chunkIH7WXWX4_cjs.defineServerTool; }
|
|
106
106
|
});
|
|
107
107
|
Object.defineProperty(exports, "defineTool", {
|
|
108
108
|
enumerable: true,
|
|
109
|
-
get: function () { return
|
|
109
|
+
get: function () { return chunkIH7WXWX4_cjs.defineTool; }
|
|
110
110
|
});
|
|
111
111
|
Object.defineProperty(exports, "detectIntent", {
|
|
112
112
|
enumerable: true,
|
|
113
|
-
get: function () { return
|
|
113
|
+
get: function () { return chunkIH7WXWX4_cjs.detectIntent; }
|
|
114
114
|
});
|
|
115
115
|
Object.defineProperty(exports, "failure", {
|
|
116
116
|
enumerable: true,
|
|
117
|
-
get: function () { return
|
|
117
|
+
get: function () { return chunkIH7WXWX4_cjs.failure; }
|
|
118
118
|
});
|
|
119
119
|
Object.defineProperty(exports, "formatLogsForAI", {
|
|
120
120
|
enumerable: true,
|
|
121
|
-
get: function () { return
|
|
121
|
+
get: function () { return chunkIH7WXWX4_cjs.formatLogsForAI; }
|
|
122
122
|
});
|
|
123
123
|
Object.defineProperty(exports, "formatRequestsForAI", {
|
|
124
124
|
enumerable: true,
|
|
125
|
-
get: function () { return
|
|
125
|
+
get: function () { return chunkIH7WXWX4_cjs.formatRequestsForAI; }
|
|
126
126
|
});
|
|
127
127
|
Object.defineProperty(exports, "formatSSE", {
|
|
128
128
|
enumerable: true,
|
|
129
|
-
get: function () { return
|
|
129
|
+
get: function () { return chunkIH7WXWX4_cjs.formatSSE; }
|
|
130
130
|
});
|
|
131
131
|
Object.defineProperty(exports, "generateId", {
|
|
132
132
|
enumerable: true,
|
|
133
|
-
get: function () { return
|
|
133
|
+
get: function () { return chunkIH7WXWX4_cjs.generateId; }
|
|
134
134
|
});
|
|
135
135
|
Object.defineProperty(exports, "generateMessageId", {
|
|
136
136
|
enumerable: true,
|
|
137
|
-
get: function () { return
|
|
137
|
+
get: function () { return chunkIH7WXWX4_cjs.generateMessageId; }
|
|
138
138
|
});
|
|
139
139
|
Object.defineProperty(exports, "generateSuggestionReason", {
|
|
140
140
|
enumerable: true,
|
|
141
|
-
get: function () { return
|
|
141
|
+
get: function () { return chunkIH7WXWX4_cjs.generateSuggestionReason; }
|
|
142
142
|
});
|
|
143
143
|
Object.defineProperty(exports, "generateThreadId", {
|
|
144
144
|
enumerable: true,
|
|
145
|
-
get: function () { return
|
|
145
|
+
get: function () { return chunkIH7WXWX4_cjs.generateThreadId; }
|
|
146
146
|
});
|
|
147
147
|
Object.defineProperty(exports, "generateThreadTitle", {
|
|
148
148
|
enumerable: true,
|
|
149
|
-
get: function () { return
|
|
149
|
+
get: function () { return chunkIH7WXWX4_cjs.generateThreadTitle; }
|
|
150
150
|
});
|
|
151
151
|
Object.defineProperty(exports, "generateToolCallId", {
|
|
152
152
|
enumerable: true,
|
|
153
|
-
get: function () { return
|
|
153
|
+
get: function () { return chunkIH7WXWX4_cjs.generateToolCallId; }
|
|
154
154
|
});
|
|
155
155
|
Object.defineProperty(exports, "getAttachmentTypeFromMime", {
|
|
156
156
|
enumerable: true,
|
|
157
|
-
get: function () { return
|
|
157
|
+
get: function () { return chunkIH7WXWX4_cjs.getAttachmentTypeFromMime; }
|
|
158
158
|
});
|
|
159
159
|
Object.defineProperty(exports, "getConsoleErrors", {
|
|
160
160
|
enumerable: true,
|
|
161
|
-
get: function () { return
|
|
161
|
+
get: function () { return chunkIH7WXWX4_cjs.getConsoleErrors; }
|
|
162
162
|
});
|
|
163
163
|
Object.defineProperty(exports, "getConsoleLogs", {
|
|
164
164
|
enumerable: true,
|
|
165
|
-
get: function () { return
|
|
165
|
+
get: function () { return chunkIH7WXWX4_cjs.getConsoleLogs; }
|
|
166
166
|
});
|
|
167
167
|
Object.defineProperty(exports, "getConsoleWarnings", {
|
|
168
168
|
enumerable: true,
|
|
169
|
-
get: function () { return
|
|
169
|
+
get: function () { return chunkIH7WXWX4_cjs.getConsoleWarnings; }
|
|
170
170
|
});
|
|
171
171
|
Object.defineProperty(exports, "getDefaultModel", {
|
|
172
172
|
enumerable: true,
|
|
173
|
-
get: function () { return
|
|
173
|
+
get: function () { return chunkIH7WXWX4_cjs.getDefaultModel; }
|
|
174
174
|
});
|
|
175
175
|
Object.defineProperty(exports, "getFailedRequests", {
|
|
176
176
|
enumerable: true,
|
|
177
|
-
get: function () { return
|
|
177
|
+
get: function () { return chunkIH7WXWX4_cjs.getFailedRequests; }
|
|
178
178
|
});
|
|
179
179
|
Object.defineProperty(exports, "getNetworkRequests", {
|
|
180
180
|
enumerable: true,
|
|
181
|
-
get: function () { return
|
|
181
|
+
get: function () { return chunkIH7WXWX4_cjs.getNetworkRequests; }
|
|
182
182
|
});
|
|
183
183
|
Object.defineProperty(exports, "getPrimaryTool", {
|
|
184
184
|
enumerable: true,
|
|
185
|
-
get: function () { return
|
|
185
|
+
get: function () { return chunkIH7WXWX4_cjs.getPrimaryTool; }
|
|
186
186
|
});
|
|
187
187
|
Object.defineProperty(exports, "hasToolCalls", {
|
|
188
188
|
enumerable: true,
|
|
189
|
-
get: function () { return
|
|
189
|
+
get: function () { return chunkIH7WXWX4_cjs.hasToolCalls; }
|
|
190
190
|
});
|
|
191
191
|
Object.defineProperty(exports, "hasToolSuggestions", {
|
|
192
192
|
enumerable: true,
|
|
193
|
-
get: function () { return
|
|
193
|
+
get: function () { return chunkIH7WXWX4_cjs.hasToolSuggestions; }
|
|
194
194
|
});
|
|
195
195
|
Object.defineProperty(exports, "isConsoleCaptureActive", {
|
|
196
196
|
enumerable: true,
|
|
197
|
-
get: function () { return
|
|
197
|
+
get: function () { return chunkIH7WXWX4_cjs.isConsoleCaptureActive; }
|
|
198
198
|
});
|
|
199
199
|
Object.defineProperty(exports, "isNetworkCaptureActive", {
|
|
200
200
|
enumerable: true,
|
|
201
|
-
get: function () { return
|
|
201
|
+
get: function () { return chunkIH7WXWX4_cjs.isNetworkCaptureActive; }
|
|
202
202
|
});
|
|
203
203
|
Object.defineProperty(exports, "isScreenshotSupported", {
|
|
204
204
|
enumerable: true,
|
|
205
|
-
get: function () { return
|
|
205
|
+
get: function () { return chunkIH7WXWX4_cjs.isScreenshotSupported; }
|
|
206
206
|
});
|
|
207
207
|
Object.defineProperty(exports, "isToolResult", {
|
|
208
208
|
enumerable: true,
|
|
209
|
-
get: function () { return
|
|
209
|
+
get: function () { return chunkIH7WXWX4_cjs.isToolResult; }
|
|
210
210
|
});
|
|
211
211
|
Object.defineProperty(exports, "networkRequestsTool", {
|
|
212
212
|
enumerable: true,
|
|
213
|
-
get: function () { return
|
|
213
|
+
get: function () { return chunkIH7WXWX4_cjs.networkRequestsTool; }
|
|
214
214
|
});
|
|
215
215
|
Object.defineProperty(exports, "parseSSELine", {
|
|
216
216
|
enumerable: true,
|
|
217
|
-
get: function () { return
|
|
217
|
+
get: function () { return chunkIH7WXWX4_cjs.parseSSELine; }
|
|
218
218
|
});
|
|
219
219
|
Object.defineProperty(exports, "parseStreamEvent", {
|
|
220
220
|
enumerable: true,
|
|
221
|
-
get: function () { return
|
|
221
|
+
get: function () { return chunkIH7WXWX4_cjs.parseStreamEvent; }
|
|
222
222
|
});
|
|
223
223
|
Object.defineProperty(exports, "parseToolCallArgs", {
|
|
224
224
|
enumerable: true,
|
|
225
|
-
get: function () { return
|
|
225
|
+
get: function () { return chunkIH7WXWX4_cjs.parseToolCallArgs; }
|
|
226
226
|
});
|
|
227
227
|
Object.defineProperty(exports, "processFileToAttachment", {
|
|
228
228
|
enumerable: true,
|
|
229
|
-
get: function () { return
|
|
229
|
+
get: function () { return chunkIH7WXWX4_cjs.processFileToAttachment; }
|
|
230
230
|
});
|
|
231
231
|
Object.defineProperty(exports, "resizeScreenshot", {
|
|
232
232
|
enumerable: true,
|
|
233
|
-
get: function () { return
|
|
233
|
+
get: function () { return chunkIH7WXWX4_cjs.resizeScreenshot; }
|
|
234
234
|
});
|
|
235
235
|
Object.defineProperty(exports, "screenshotTool", {
|
|
236
236
|
enumerable: true,
|
|
237
|
-
get: function () { return
|
|
237
|
+
get: function () { return chunkIH7WXWX4_cjs.screenshotTool; }
|
|
238
238
|
});
|
|
239
239
|
Object.defineProperty(exports, "serializeStreamEvent", {
|
|
240
240
|
enumerable: true,
|
|
241
|
-
get: function () { return
|
|
241
|
+
get: function () { return chunkIH7WXWX4_cjs.serializeStreamEvent; }
|
|
242
242
|
});
|
|
243
243
|
Object.defineProperty(exports, "startConsoleCapture", {
|
|
244
244
|
enumerable: true,
|
|
245
|
-
get: function () { return
|
|
245
|
+
get: function () { return chunkIH7WXWX4_cjs.startConsoleCapture; }
|
|
246
246
|
});
|
|
247
247
|
Object.defineProperty(exports, "startNetworkCapture", {
|
|
248
248
|
enumerable: true,
|
|
249
|
-
get: function () { return
|
|
249
|
+
get: function () { return chunkIH7WXWX4_cjs.startNetworkCapture; }
|
|
250
250
|
});
|
|
251
251
|
Object.defineProperty(exports, "stopConsoleCapture", {
|
|
252
252
|
enumerable: true,
|
|
253
|
-
get: function () { return
|
|
253
|
+
get: function () { return chunkIH7WXWX4_cjs.stopConsoleCapture; }
|
|
254
254
|
});
|
|
255
255
|
Object.defineProperty(exports, "stopNetworkCapture", {
|
|
256
256
|
enumerable: true,
|
|
257
|
-
get: function () { return
|
|
257
|
+
get: function () { return chunkIH7WXWX4_cjs.stopNetworkCapture; }
|
|
258
258
|
});
|
|
259
259
|
Object.defineProperty(exports, "streamSSE", {
|
|
260
260
|
enumerable: true,
|
|
261
|
-
get: function () { return
|
|
261
|
+
get: function () { return chunkIH7WXWX4_cjs.streamSSE; }
|
|
262
262
|
});
|
|
263
263
|
Object.defineProperty(exports, "success", {
|
|
264
264
|
enumerable: true,
|
|
265
|
-
get: function () { return
|
|
265
|
+
get: function () { return chunkIH7WXWX4_cjs.success; }
|
|
266
266
|
});
|
|
267
267
|
Object.defineProperty(exports, "tool", {
|
|
268
268
|
enumerable: true,
|
|
269
|
-
get: function () { return
|
|
269
|
+
get: function () { return chunkIH7WXWX4_cjs.tool; }
|
|
270
270
|
});
|
|
271
271
|
Object.defineProperty(exports, "toolToAnthropicFormat", {
|
|
272
272
|
enumerable: true,
|
|
273
|
-
get: function () { return
|
|
273
|
+
get: function () { return chunkIH7WXWX4_cjs.toolToAnthropicFormat; }
|
|
274
274
|
});
|
|
275
275
|
Object.defineProperty(exports, "toolToOpenAIFormat", {
|
|
276
276
|
enumerable: true,
|
|
277
|
-
get: function () { return
|
|
277
|
+
get: function () { return chunkIH7WXWX4_cjs.toolToOpenAIFormat; }
|
|
278
278
|
});
|
|
279
279
|
Object.defineProperty(exports, "zodObjectToInputSchema", {
|
|
280
280
|
enumerable: true,
|
|
281
|
-
get: function () { return
|
|
281
|
+
get: function () { return chunkIH7WXWX4_cjs.zodObjectToInputSchema; }
|
|
282
282
|
});
|
|
283
283
|
Object.defineProperty(exports, "zodToJsonSchema", {
|
|
284
284
|
enumerable: true,
|
|
285
|
-
get: function () { return
|
|
285
|
+
get: function () { return chunkIH7WXWX4_cjs.zodToJsonSchema; }
|
|
286
286
|
});
|
|
287
287
|
//# sourceMappingURL=index.cjs.map
|
|
288
288
|
//# sourceMappingURL=index.cjs.map
|
package/dist/core/index.d.cts
CHANGED
|
@@ -1,5 +1,7 @@
|
|
|
1
|
-
import { S as ScreenshotOptions, a as ScreenshotResult, C as ConsoleLogOptions, b as ConsoleLogResult, c as ConsoleLogEntry, N as NetworkRequestOptions, d as NetworkRequestResult, e as NetworkRequestEntry,
|
|
2
|
-
export {
|
|
1
|
+
import { S as ScreenshotOptions, a as ScreenshotResult, C as ConsoleLogOptions, b as ConsoleLogResult, c as ConsoleLogEntry, N as NetworkRequestOptions, d as NetworkRequestResult, e as NetworkRequestEntry, f as Source, M as MessageAttachment } from '../thread-CLmfwine.cjs';
|
|
2
|
+
export { z as ActionDefinition, A as ActionParameter, B as ActionRenderProps, p as CapturedContext, x as CloudConfig, l as ConsoleLogType, y as CopilotConfig, q as CustomKeywords, a7 as DEFAULT_MODELS, E as Extension, H as HttpMethod, I as IntentDetectionResult, O as InternalKnowledgeBaseConfig, Q as InternalKnowledgeBaseResult, R as InternalKnowledgeBaseSearchResponse, D as KnowledgeBaseConfig, K as KnowledgeBaseProvider, F as KnowledgeBaseResult, G as KnowledgeBaseSearchRequest, J as KnowledgeBaseSearchResponse, w as LLMConfig, L as LLMProvider, s as Message, t as MessageMetadata, r as MessageRole, P as ParameterType, W as PersistenceConfig, U as Thread, V as ThreadData, X as ThreadStorageAdapter, v as TokenUsage, u as ToolCall, n as ToolConsentRequest, o as ToolConsentResponse, T as ToolType, m as ToolsConfig, a5 as actionToTool, $ as createAssistantMessage, k as createCustomDetector, Z as createMessage, a1 as createToolCall, a0 as createToolMessage, _ as createUserMessage, g as detectIntent, j as generateSuggestionReason, Y as generateThreadTitle, a6 as getDefaultModel, i as getPrimaryTool, a3 as hasToolCalls, h as hasToolSuggestions, a4 as isToolResult, a2 as parseToolCallArgs } from '../thread-CLmfwine.cjs';
|
|
3
|
+
import { T as ToolDefinition, a as ToolExecutionStatus, b as ToolResponse, J as JSONSchemaProperty, c as ToolInputSchema, d as ToolLocation, e as ToolContext } from '../tools-eeJ5iEC4.cjs';
|
|
4
|
+
export { o as AIContent, A as AIProvider, n as AIResponseMode, l as AgentLoopConfig, m as AgentLoopState, P as PermissionLevel, r as PermissionStorageAdapter, q as PermissionStorageConfig, j as ToolApprovalStatus, g as ToolConfig, k as ToolExecution, p as ToolPermission, f as ToolRenderProps, h as ToolSet, U as UnifiedToolCall, i as UnifiedToolResult, v as createToolResult, x as failure, w as success, t as tool, u as toolToAnthropicFormat, s as toolToOpenAIFormat } from '../tools-eeJ5iEC4.cjs';
|
|
3
5
|
|
|
4
6
|
/**
|
|
5
7
|
* Screenshot Capture Tool
|
|
@@ -633,12 +635,19 @@ interface DefineToolConfig<TSchema extends {
|
|
|
633
635
|
schema: TSchema;
|
|
634
636
|
/** Handler function */
|
|
635
637
|
handler?: (params: TSchema["_output"], context?: ToolContext) => Promise<ToolResponse> | ToolResponse;
|
|
636
|
-
/** Optional render function */
|
|
638
|
+
/** Optional render function for custom UI */
|
|
637
639
|
render?: (props: {
|
|
638
|
-
status: "pending" | "executing" | "completed" | "error";
|
|
640
|
+
status: "pending" | "approval-required" | "executing" | "completed" | "error";
|
|
639
641
|
args: TSchema["_output"];
|
|
640
642
|
result?: ToolResponse;
|
|
641
643
|
error?: string;
|
|
644
|
+
toolCallId: string;
|
|
645
|
+
toolName: string;
|
|
646
|
+
approval?: {
|
|
647
|
+
onApprove: (extraData?: Record<string, unknown>) => void;
|
|
648
|
+
onReject: (reason?: string) => void;
|
|
649
|
+
message?: string;
|
|
650
|
+
};
|
|
642
651
|
}) => unknown;
|
|
643
652
|
/** Whether the tool is available */
|
|
644
653
|
available?: boolean;
|
package/dist/core/index.d.ts
CHANGED
|
@@ -1,5 +1,7 @@
|
|
|
1
|
-
import { S as ScreenshotOptions, a as ScreenshotResult, C as ConsoleLogOptions, b as ConsoleLogResult, c as ConsoleLogEntry, N as NetworkRequestOptions, d as NetworkRequestResult, e as NetworkRequestEntry,
|
|
2
|
-
export {
|
|
1
|
+
import { S as ScreenshotOptions, a as ScreenshotResult, C as ConsoleLogOptions, b as ConsoleLogResult, c as ConsoleLogEntry, N as NetworkRequestOptions, d as NetworkRequestResult, e as NetworkRequestEntry, f as Source, M as MessageAttachment } from '../thread-CLmfwine.js';
|
|
2
|
+
export { z as ActionDefinition, A as ActionParameter, B as ActionRenderProps, p as CapturedContext, x as CloudConfig, l as ConsoleLogType, y as CopilotConfig, q as CustomKeywords, a7 as DEFAULT_MODELS, E as Extension, H as HttpMethod, I as IntentDetectionResult, O as InternalKnowledgeBaseConfig, Q as InternalKnowledgeBaseResult, R as InternalKnowledgeBaseSearchResponse, D as KnowledgeBaseConfig, K as KnowledgeBaseProvider, F as KnowledgeBaseResult, G as KnowledgeBaseSearchRequest, J as KnowledgeBaseSearchResponse, w as LLMConfig, L as LLMProvider, s as Message, t as MessageMetadata, r as MessageRole, P as ParameterType, W as PersistenceConfig, U as Thread, V as ThreadData, X as ThreadStorageAdapter, v as TokenUsage, u as ToolCall, n as ToolConsentRequest, o as ToolConsentResponse, T as ToolType, m as ToolsConfig, a5 as actionToTool, $ as createAssistantMessage, k as createCustomDetector, Z as createMessage, a1 as createToolCall, a0 as createToolMessage, _ as createUserMessage, g as detectIntent, j as generateSuggestionReason, Y as generateThreadTitle, a6 as getDefaultModel, i as getPrimaryTool, a3 as hasToolCalls, h as hasToolSuggestions, a4 as isToolResult, a2 as parseToolCallArgs } from '../thread-CLmfwine.js';
|
|
3
|
+
import { T as ToolDefinition, a as ToolExecutionStatus, b as ToolResponse, J as JSONSchemaProperty, c as ToolInputSchema, d as ToolLocation, e as ToolContext } from '../tools-eeJ5iEC4.js';
|
|
4
|
+
export { o as AIContent, A as AIProvider, n as AIResponseMode, l as AgentLoopConfig, m as AgentLoopState, P as PermissionLevel, r as PermissionStorageAdapter, q as PermissionStorageConfig, j as ToolApprovalStatus, g as ToolConfig, k as ToolExecution, p as ToolPermission, f as ToolRenderProps, h as ToolSet, U as UnifiedToolCall, i as UnifiedToolResult, v as createToolResult, x as failure, w as success, t as tool, u as toolToAnthropicFormat, s as toolToOpenAIFormat } from '../tools-eeJ5iEC4.js';
|
|
3
5
|
|
|
4
6
|
/**
|
|
5
7
|
* Screenshot Capture Tool
|
|
@@ -633,12 +635,19 @@ interface DefineToolConfig<TSchema extends {
|
|
|
633
635
|
schema: TSchema;
|
|
634
636
|
/** Handler function */
|
|
635
637
|
handler?: (params: TSchema["_output"], context?: ToolContext) => Promise<ToolResponse> | ToolResponse;
|
|
636
|
-
/** Optional render function */
|
|
638
|
+
/** Optional render function for custom UI */
|
|
637
639
|
render?: (props: {
|
|
638
|
-
status: "pending" | "executing" | "completed" | "error";
|
|
640
|
+
status: "pending" | "approval-required" | "executing" | "completed" | "error";
|
|
639
641
|
args: TSchema["_output"];
|
|
640
642
|
result?: ToolResponse;
|
|
641
643
|
error?: string;
|
|
644
|
+
toolCallId: string;
|
|
645
|
+
toolName: string;
|
|
646
|
+
approval?: {
|
|
647
|
+
onApprove: (extraData?: Record<string, unknown>) => void;
|
|
648
|
+
onReject: (reason?: string) => void;
|
|
649
|
+
message?: string;
|
|
650
|
+
};
|
|
642
651
|
}) => unknown;
|
|
643
652
|
/** Whether the tool is available */
|
|
644
653
|
available?: boolean;
|
package/dist/core/index.js
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
export { CLOUD_MAX_FILE_SIZE, DEFAULT_MODELS, DEFAULT_YOURGPT_ENDPOINT, actionToTool, builtinTools, captureCurrentLogs, captureScreenshot, clearConsoleLogs, clearNetworkRequests, consoleLogsTool, createAssistantMessage, createCloudStorage, createConsoleLogsTool, createCustomDetector, createMessage, createNetworkRequestsTool, createSSEStream, createScreenshotTool, createToolCall, createToolMessage, createToolResult, createUserMessage, defaultSystemMessage, defineClientTool, defineServerTool, defineTool, detectIntent, failure, formatLogsForAI, formatRequestsForAI, formatSSE, generateId, generateMessageId, generateSuggestionReason, generateThreadId, generateThreadTitle, generateToolCallId, getAttachmentTypeFromMime, getConsoleErrors, getConsoleLogs, getConsoleWarnings, getDefaultModel, getFailedRequests, getNetworkRequests, getPrimaryTool, hasToolCalls, hasToolSuggestions, isConsoleCaptureActive, isNetworkCaptureActive, isScreenshotSupported, isToolResult, networkRequestsTool, parseSSELine, parseStreamEvent, parseToolCallArgs, processFileToAttachment, resizeScreenshot, screenshotTool, serializeStreamEvent, startConsoleCapture, startNetworkCapture, stopConsoleCapture, stopNetworkCapture, streamSSE, success, tool, toolToAnthropicFormat, toolToOpenAIFormat, zodObjectToInputSchema, zodToJsonSchema } from '../chunk-
|
|
1
|
+
export { CLOUD_MAX_FILE_SIZE, DEFAULT_MODELS, DEFAULT_YOURGPT_ENDPOINT, actionToTool, builtinTools, captureCurrentLogs, captureScreenshot, clearConsoleLogs, clearNetworkRequests, consoleLogsTool, createAssistantMessage, createCloudStorage, createConsoleLogsTool, createCustomDetector, createMessage, createNetworkRequestsTool, createSSEStream, createScreenshotTool, createToolCall, createToolMessage, createToolResult, createUserMessage, defaultSystemMessage, defineClientTool, defineServerTool, defineTool, detectIntent, failure, formatLogsForAI, formatRequestsForAI, formatSSE, generateId, generateMessageId, generateSuggestionReason, generateThreadId, generateThreadTitle, generateToolCallId, getAttachmentTypeFromMime, getConsoleErrors, getConsoleLogs, getConsoleWarnings, getDefaultModel, getFailedRequests, getNetworkRequests, getPrimaryTool, hasToolCalls, hasToolSuggestions, isConsoleCaptureActive, isNetworkCaptureActive, isScreenshotSupported, isToolResult, networkRequestsTool, parseSSELine, parseStreamEvent, parseToolCallArgs, processFileToAttachment, resizeScreenshot, screenshotTool, serializeStreamEvent, startConsoleCapture, startNetworkCapture, stopConsoleCapture, stopNetworkCapture, streamSSE, success, tool, toolToAnthropicFormat, toolToOpenAIFormat, zodObjectToInputSchema, zodToJsonSchema } from '../chunk-QWQELTEB.js';
|
|
2
2
|
//# sourceMappingURL=index.js.map
|
|
3
3
|
//# sourceMappingURL=index.js.map
|
package/dist/react/index.cjs
CHANGED
|
@@ -1,137 +1,137 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var
|
|
4
|
-
var
|
|
3
|
+
var chunkR452HH3J_cjs = require('../chunk-R452HH3J.cjs');
|
|
4
|
+
var chunkIH7WXWX4_cjs = require('../chunk-IH7WXWX4.cjs');
|
|
5
5
|
|
|
6
6
|
|
|
7
7
|
|
|
8
8
|
Object.defineProperty(exports, "AbstractAgentLoop", {
|
|
9
9
|
enumerable: true,
|
|
10
|
-
get: function () { return
|
|
10
|
+
get: function () { return chunkR452HH3J_cjs.AbstractAgentLoop; }
|
|
11
11
|
});
|
|
12
12
|
Object.defineProperty(exports, "AbstractChat", {
|
|
13
13
|
enumerable: true,
|
|
14
|
-
get: function () { return
|
|
14
|
+
get: function () { return chunkR452HH3J_cjs.AbstractChat; }
|
|
15
15
|
});
|
|
16
16
|
Object.defineProperty(exports, "CopilotProvider", {
|
|
17
17
|
enumerable: true,
|
|
18
|
-
get: function () { return
|
|
18
|
+
get: function () { return chunkR452HH3J_cjs.CopilotProvider; }
|
|
19
19
|
});
|
|
20
20
|
Object.defineProperty(exports, "ReactChat", {
|
|
21
21
|
enumerable: true,
|
|
22
|
-
get: function () { return
|
|
22
|
+
get: function () { return chunkR452HH3J_cjs.ReactChat; }
|
|
23
23
|
});
|
|
24
24
|
Object.defineProperty(exports, "ReactChatState", {
|
|
25
25
|
enumerable: true,
|
|
26
|
-
get: function () { return
|
|
26
|
+
get: function () { return chunkR452HH3J_cjs.ReactChatState; }
|
|
27
27
|
});
|
|
28
28
|
Object.defineProperty(exports, "createPermissionStorage", {
|
|
29
29
|
enumerable: true,
|
|
30
|
-
get: function () { return
|
|
30
|
+
get: function () { return chunkR452HH3J_cjs.createPermissionStorage; }
|
|
31
31
|
});
|
|
32
32
|
Object.defineProperty(exports, "createReactChat", {
|
|
33
33
|
enumerable: true,
|
|
34
|
-
get: function () { return
|
|
34
|
+
get: function () { return chunkR452HH3J_cjs.createReactChat; }
|
|
35
35
|
});
|
|
36
36
|
Object.defineProperty(exports, "createReactChatState", {
|
|
37
37
|
enumerable: true,
|
|
38
|
-
get: function () { return
|
|
38
|
+
get: function () { return chunkR452HH3J_cjs.createReactChatState; }
|
|
39
39
|
});
|
|
40
40
|
Object.defineProperty(exports, "createSessionPermissionCache", {
|
|
41
41
|
enumerable: true,
|
|
42
|
-
get: function () { return
|
|
42
|
+
get: function () { return chunkR452HH3J_cjs.createSessionPermissionCache; }
|
|
43
43
|
});
|
|
44
44
|
Object.defineProperty(exports, "formatKnowledgeResultsForAI", {
|
|
45
45
|
enumerable: true,
|
|
46
|
-
get: function () { return
|
|
46
|
+
get: function () { return chunkR452HH3J_cjs.formatKnowledgeResultsForAI; }
|
|
47
47
|
});
|
|
48
48
|
Object.defineProperty(exports, "initialAgentLoopState", {
|
|
49
49
|
enumerable: true,
|
|
50
|
-
get: function () { return
|
|
50
|
+
get: function () { return chunkR452HH3J_cjs.initialAgentLoopState; }
|
|
51
51
|
});
|
|
52
52
|
Object.defineProperty(exports, "searchKnowledgeBase", {
|
|
53
53
|
enumerable: true,
|
|
54
|
-
get: function () { return
|
|
54
|
+
get: function () { return chunkR452HH3J_cjs.searchKnowledgeBase; }
|
|
55
55
|
});
|
|
56
56
|
Object.defineProperty(exports, "useAIAction", {
|
|
57
57
|
enumerable: true,
|
|
58
|
-
get: function () { return
|
|
58
|
+
get: function () { return chunkR452HH3J_cjs.useAIAction; }
|
|
59
59
|
});
|
|
60
60
|
Object.defineProperty(exports, "useAIActions", {
|
|
61
61
|
enumerable: true,
|
|
62
|
-
get: function () { return
|
|
62
|
+
get: function () { return chunkR452HH3J_cjs.useAIActions; }
|
|
63
63
|
});
|
|
64
64
|
Object.defineProperty(exports, "useAIContext", {
|
|
65
65
|
enumerable: true,
|
|
66
|
-
get: function () { return
|
|
66
|
+
get: function () { return chunkR452HH3J_cjs.useAIContext; }
|
|
67
67
|
});
|
|
68
68
|
Object.defineProperty(exports, "useAIContexts", {
|
|
69
69
|
enumerable: true,
|
|
70
|
-
get: function () { return
|
|
70
|
+
get: function () { return chunkR452HH3J_cjs.useAIContexts; }
|
|
71
71
|
});
|
|
72
72
|
Object.defineProperty(exports, "useAITools", {
|
|
73
73
|
enumerable: true,
|
|
74
|
-
get: function () { return
|
|
74
|
+
get: function () { return chunkR452HH3J_cjs.useAITools; }
|
|
75
75
|
});
|
|
76
76
|
Object.defineProperty(exports, "useAgent", {
|
|
77
77
|
enumerable: true,
|
|
78
|
-
get: function () { return
|
|
78
|
+
get: function () { return chunkR452HH3J_cjs.useAgent; }
|
|
79
79
|
});
|
|
80
80
|
Object.defineProperty(exports, "useCapabilities", {
|
|
81
81
|
enumerable: true,
|
|
82
|
-
get: function () { return
|
|
82
|
+
get: function () { return chunkR452HH3J_cjs.useCapabilities; }
|
|
83
83
|
});
|
|
84
84
|
Object.defineProperty(exports, "useChat", {
|
|
85
85
|
enumerable: true,
|
|
86
|
-
get: function () { return
|
|
86
|
+
get: function () { return chunkR452HH3J_cjs.useChat; }
|
|
87
87
|
});
|
|
88
88
|
Object.defineProperty(exports, "useCopilot", {
|
|
89
89
|
enumerable: true,
|
|
90
|
-
get: function () { return
|
|
90
|
+
get: function () { return chunkR452HH3J_cjs.useCopilot; }
|
|
91
91
|
});
|
|
92
92
|
Object.defineProperty(exports, "useDevLogger", {
|
|
93
93
|
enumerable: true,
|
|
94
|
-
get: function () { return
|
|
94
|
+
get: function () { return chunkR452HH3J_cjs.useDevLogger; }
|
|
95
95
|
});
|
|
96
96
|
Object.defineProperty(exports, "useFeatureSupport", {
|
|
97
97
|
enumerable: true,
|
|
98
|
-
get: function () { return
|
|
98
|
+
get: function () { return chunkR452HH3J_cjs.useFeatureSupport; }
|
|
99
99
|
});
|
|
100
100
|
Object.defineProperty(exports, "useKnowledgeBase", {
|
|
101
101
|
enumerable: true,
|
|
102
|
-
get: function () { return
|
|
102
|
+
get: function () { return chunkR452HH3J_cjs.useKnowledgeBase; }
|
|
103
103
|
});
|
|
104
104
|
Object.defineProperty(exports, "useSuggestions", {
|
|
105
105
|
enumerable: true,
|
|
106
|
-
get: function () { return
|
|
106
|
+
get: function () { return chunkR452HH3J_cjs.useSuggestions; }
|
|
107
107
|
});
|
|
108
108
|
Object.defineProperty(exports, "useSupportedMediaTypes", {
|
|
109
109
|
enumerable: true,
|
|
110
|
-
get: function () { return
|
|
110
|
+
get: function () { return chunkR452HH3J_cjs.useSupportedMediaTypes; }
|
|
111
111
|
});
|
|
112
112
|
Object.defineProperty(exports, "useTool", {
|
|
113
113
|
enumerable: true,
|
|
114
|
-
get: function () { return
|
|
114
|
+
get: function () { return chunkR452HH3J_cjs.useTool; }
|
|
115
115
|
});
|
|
116
116
|
Object.defineProperty(exports, "useToolExecutor", {
|
|
117
117
|
enumerable: true,
|
|
118
|
-
get: function () { return
|
|
118
|
+
get: function () { return chunkR452HH3J_cjs.useToolExecutor; }
|
|
119
119
|
});
|
|
120
120
|
Object.defineProperty(exports, "useToolWithSchema", {
|
|
121
121
|
enumerable: true,
|
|
122
|
-
get: function () { return
|
|
122
|
+
get: function () { return chunkR452HH3J_cjs.useToolWithSchema; }
|
|
123
123
|
});
|
|
124
124
|
Object.defineProperty(exports, "useTools", {
|
|
125
125
|
enumerable: true,
|
|
126
|
-
get: function () { return
|
|
126
|
+
get: function () { return chunkR452HH3J_cjs.useTools; }
|
|
127
127
|
});
|
|
128
128
|
Object.defineProperty(exports, "useToolsWithSchema", {
|
|
129
129
|
enumerable: true,
|
|
130
|
-
get: function () { return
|
|
130
|
+
get: function () { return chunkR452HH3J_cjs.useToolsWithSchema; }
|
|
131
131
|
});
|
|
132
132
|
Object.defineProperty(exports, "generateSuggestionReason", {
|
|
133
133
|
enumerable: true,
|
|
134
|
-
get: function () { return
|
|
134
|
+
get: function () { return chunkIH7WXWX4_cjs.generateSuggestionReason; }
|
|
135
135
|
});
|
|
136
136
|
//# sourceMappingURL=index.cjs.map
|
|
137
137
|
//# sourceMappingURL=index.cjs.map
|