@yourgpt/copilot-sdk 0.1.1 → 1.0.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/LICENSE +21 -0
- package/dist/{thread-CLmfwine.d.ts → ThreadManager-BCVt-_k_.d.cts} +376 -223
- package/dist/{thread-CLmfwine.d.cts → ThreadManager-BjC15mh8.d.ts} +376 -223
- package/dist/{chunk-IH7WXWX4.cjs → chunk-42YQ4ATO.cjs} +889 -2
- package/dist/chunk-42YQ4ATO.cjs.map +1 -0
- package/dist/{chunk-R452HH3J.cjs → chunk-BN75ZW24.cjs} +455 -26
- package/dist/chunk-BN75ZW24.cjs.map +1 -0
- package/dist/{chunk-QWQELTEB.js → chunk-QSEGNATZ.js} +882 -3
- package/dist/chunk-QSEGNATZ.js.map +1 -0
- package/dist/{chunk-FO75W5UI.js → chunk-XAVZZVUL.js} +428 -4
- package/dist/chunk-XAVZZVUL.js.map +1 -0
- package/dist/core/index.cjs +99 -71
- package/dist/core/index.d.cts +4 -4
- package/dist/core/index.d.ts +4 -4
- package/dist/core/index.js +1 -1
- package/dist/react/index.cjs +66 -34
- package/dist/react/index.d.cts +371 -5
- package/dist/react/index.d.ts +371 -5
- package/dist/react/index.js +2 -2
- package/dist/{tools-eeJ5iEC4.d.ts → types-BtAaOV07.d.cts} +367 -1
- package/dist/{tools-eeJ5iEC4.d.cts → types-BtAaOV07.d.ts} +367 -1
- package/dist/ui/index.cjs +1703 -467
- package/dist/ui/index.cjs.map +1 -1
- package/dist/ui/index.d.cts +333 -38
- package/dist/ui/index.d.ts +333 -38
- package/dist/ui/index.js +1699 -467
- package/dist/ui/index.js.map +1 -1
- package/package.json +9 -9
- package/dist/chunk-FO75W5UI.js.map +0 -1
- package/dist/chunk-IH7WXWX4.cjs.map +0 -1
- package/dist/chunk-QWQELTEB.js.map +0 -1
- package/dist/chunk-R452HH3J.cjs.map +0 -1
package/dist/core/index.cjs
CHANGED
|
@@ -1,288 +1,316 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var
|
|
3
|
+
var chunk42YQ4ATO_cjs = require('../chunk-42YQ4ATO.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 chunk42YQ4ATO_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 chunk42YQ4ATO_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 chunk42YQ4ATO_cjs.DEFAULT_YOURGPT_ENDPOINT; }
|
|
18
|
+
});
|
|
19
|
+
Object.defineProperty(exports, "SimpleThreadManagerState", {
|
|
20
|
+
enumerable: true,
|
|
21
|
+
get: function () { return chunk42YQ4ATO_cjs.SimpleThreadManagerState; }
|
|
22
|
+
});
|
|
23
|
+
Object.defineProperty(exports, "ThreadManager", {
|
|
24
|
+
enumerable: true,
|
|
25
|
+
get: function () { return chunk42YQ4ATO_cjs.ThreadManager; }
|
|
18
26
|
});
|
|
19
27
|
Object.defineProperty(exports, "actionToTool", {
|
|
20
28
|
enumerable: true,
|
|
21
|
-
get: function () { return
|
|
29
|
+
get: function () { return chunk42YQ4ATO_cjs.actionToTool; }
|
|
22
30
|
});
|
|
23
31
|
Object.defineProperty(exports, "builtinTools", {
|
|
24
32
|
enumerable: true,
|
|
25
|
-
get: function () { return
|
|
33
|
+
get: function () { return chunk42YQ4ATO_cjs.builtinTools; }
|
|
26
34
|
});
|
|
27
35
|
Object.defineProperty(exports, "captureCurrentLogs", {
|
|
28
36
|
enumerable: true,
|
|
29
|
-
get: function () { return
|
|
37
|
+
get: function () { return chunk42YQ4ATO_cjs.captureCurrentLogs; }
|
|
30
38
|
});
|
|
31
39
|
Object.defineProperty(exports, "captureScreenshot", {
|
|
32
40
|
enumerable: true,
|
|
33
|
-
get: function () { return
|
|
41
|
+
get: function () { return chunk42YQ4ATO_cjs.captureScreenshot; }
|
|
34
42
|
});
|
|
35
43
|
Object.defineProperty(exports, "clearConsoleLogs", {
|
|
36
44
|
enumerable: true,
|
|
37
|
-
get: function () { return
|
|
45
|
+
get: function () { return chunk42YQ4ATO_cjs.clearConsoleLogs; }
|
|
38
46
|
});
|
|
39
47
|
Object.defineProperty(exports, "clearNetworkRequests", {
|
|
40
48
|
enumerable: true,
|
|
41
|
-
get: function () { return
|
|
49
|
+
get: function () { return chunk42YQ4ATO_cjs.clearNetworkRequests; }
|
|
42
50
|
});
|
|
43
51
|
Object.defineProperty(exports, "consoleLogsTool", {
|
|
44
52
|
enumerable: true,
|
|
45
|
-
get: function () { return
|
|
53
|
+
get: function () { return chunk42YQ4ATO_cjs.consoleLogsTool; }
|
|
46
54
|
});
|
|
47
55
|
Object.defineProperty(exports, "createAssistantMessage", {
|
|
48
56
|
enumerable: true,
|
|
49
|
-
get: function () { return
|
|
57
|
+
get: function () { return chunk42YQ4ATO_cjs.createAssistantMessage; }
|
|
50
58
|
});
|
|
51
59
|
Object.defineProperty(exports, "createCloudStorage", {
|
|
52
60
|
enumerable: true,
|
|
53
|
-
get: function () { return
|
|
61
|
+
get: function () { return chunk42YQ4ATO_cjs.createCloudStorage; }
|
|
54
62
|
});
|
|
55
63
|
Object.defineProperty(exports, "createConsoleLogsTool", {
|
|
56
64
|
enumerable: true,
|
|
57
|
-
get: function () { return
|
|
65
|
+
get: function () { return chunk42YQ4ATO_cjs.createConsoleLogsTool; }
|
|
58
66
|
});
|
|
59
67
|
Object.defineProperty(exports, "createCustomDetector", {
|
|
60
68
|
enumerable: true,
|
|
61
|
-
get: function () { return
|
|
69
|
+
get: function () { return chunk42YQ4ATO_cjs.createCustomDetector; }
|
|
70
|
+
});
|
|
71
|
+
Object.defineProperty(exports, "createLocalStorageAdapter", {
|
|
72
|
+
enumerable: true,
|
|
73
|
+
get: function () { return chunk42YQ4ATO_cjs.createLocalStorageAdapter; }
|
|
74
|
+
});
|
|
75
|
+
Object.defineProperty(exports, "createMemoryAdapter", {
|
|
76
|
+
enumerable: true,
|
|
77
|
+
get: function () { return chunk42YQ4ATO_cjs.createMemoryAdapter; }
|
|
62
78
|
});
|
|
63
79
|
Object.defineProperty(exports, "createMessage", {
|
|
64
80
|
enumerable: true,
|
|
65
|
-
get: function () { return
|
|
81
|
+
get: function () { return chunk42YQ4ATO_cjs.createMessage; }
|
|
66
82
|
});
|
|
67
83
|
Object.defineProperty(exports, "createNetworkRequestsTool", {
|
|
68
84
|
enumerable: true,
|
|
69
|
-
get: function () { return
|
|
85
|
+
get: function () { return chunk42YQ4ATO_cjs.createNetworkRequestsTool; }
|
|
70
86
|
});
|
|
71
87
|
Object.defineProperty(exports, "createSSEStream", {
|
|
72
88
|
enumerable: true,
|
|
73
|
-
get: function () { return
|
|
89
|
+
get: function () { return chunk42YQ4ATO_cjs.createSSEStream; }
|
|
74
90
|
});
|
|
75
91
|
Object.defineProperty(exports, "createScreenshotTool", {
|
|
76
92
|
enumerable: true,
|
|
77
|
-
get: function () { return
|
|
93
|
+
get: function () { return chunk42YQ4ATO_cjs.createScreenshotTool; }
|
|
94
|
+
});
|
|
95
|
+
Object.defineProperty(exports, "createThreadManager", {
|
|
96
|
+
enumerable: true,
|
|
97
|
+
get: function () { return chunk42YQ4ATO_cjs.createThreadManager; }
|
|
78
98
|
});
|
|
79
99
|
Object.defineProperty(exports, "createToolCall", {
|
|
80
100
|
enumerable: true,
|
|
81
|
-
get: function () { return
|
|
101
|
+
get: function () { return chunk42YQ4ATO_cjs.createToolCall; }
|
|
82
102
|
});
|
|
83
103
|
Object.defineProperty(exports, "createToolMessage", {
|
|
84
104
|
enumerable: true,
|
|
85
|
-
get: function () { return
|
|
105
|
+
get: function () { return chunk42YQ4ATO_cjs.createToolMessage; }
|
|
86
106
|
});
|
|
87
107
|
Object.defineProperty(exports, "createToolResult", {
|
|
88
108
|
enumerable: true,
|
|
89
|
-
get: function () { return
|
|
109
|
+
get: function () { return chunk42YQ4ATO_cjs.createToolResult; }
|
|
90
110
|
});
|
|
91
111
|
Object.defineProperty(exports, "createUserMessage", {
|
|
92
112
|
enumerable: true,
|
|
93
|
-
get: function () { return
|
|
113
|
+
get: function () { return chunk42YQ4ATO_cjs.createUserMessage; }
|
|
94
114
|
});
|
|
95
115
|
Object.defineProperty(exports, "defaultSystemMessage", {
|
|
96
116
|
enumerable: true,
|
|
97
|
-
get: function () { return
|
|
117
|
+
get: function () { return chunk42YQ4ATO_cjs.defaultSystemMessage; }
|
|
98
118
|
});
|
|
99
119
|
Object.defineProperty(exports, "defineClientTool", {
|
|
100
120
|
enumerable: true,
|
|
101
|
-
get: function () { return
|
|
121
|
+
get: function () { return chunk42YQ4ATO_cjs.defineClientTool; }
|
|
102
122
|
});
|
|
103
123
|
Object.defineProperty(exports, "defineServerTool", {
|
|
104
124
|
enumerable: true,
|
|
105
|
-
get: function () { return
|
|
125
|
+
get: function () { return chunk42YQ4ATO_cjs.defineServerTool; }
|
|
106
126
|
});
|
|
107
127
|
Object.defineProperty(exports, "defineTool", {
|
|
108
128
|
enumerable: true,
|
|
109
|
-
get: function () { return
|
|
129
|
+
get: function () { return chunk42YQ4ATO_cjs.defineTool; }
|
|
110
130
|
});
|
|
111
131
|
Object.defineProperty(exports, "detectIntent", {
|
|
112
132
|
enumerable: true,
|
|
113
|
-
get: function () { return
|
|
133
|
+
get: function () { return chunk42YQ4ATO_cjs.detectIntent; }
|
|
114
134
|
});
|
|
115
135
|
Object.defineProperty(exports, "failure", {
|
|
116
136
|
enumerable: true,
|
|
117
|
-
get: function () { return
|
|
137
|
+
get: function () { return chunk42YQ4ATO_cjs.failure; }
|
|
118
138
|
});
|
|
119
139
|
Object.defineProperty(exports, "formatLogsForAI", {
|
|
120
140
|
enumerable: true,
|
|
121
|
-
get: function () { return
|
|
141
|
+
get: function () { return chunk42YQ4ATO_cjs.formatLogsForAI; }
|
|
122
142
|
});
|
|
123
143
|
Object.defineProperty(exports, "formatRequestsForAI", {
|
|
124
144
|
enumerable: true,
|
|
125
|
-
get: function () { return
|
|
145
|
+
get: function () { return chunk42YQ4ATO_cjs.formatRequestsForAI; }
|
|
126
146
|
});
|
|
127
147
|
Object.defineProperty(exports, "formatSSE", {
|
|
128
148
|
enumerable: true,
|
|
129
|
-
get: function () { return
|
|
149
|
+
get: function () { return chunk42YQ4ATO_cjs.formatSSE; }
|
|
130
150
|
});
|
|
131
151
|
Object.defineProperty(exports, "generateId", {
|
|
132
152
|
enumerable: true,
|
|
133
|
-
get: function () { return
|
|
153
|
+
get: function () { return chunk42YQ4ATO_cjs.generateId; }
|
|
134
154
|
});
|
|
135
155
|
Object.defineProperty(exports, "generateMessageId", {
|
|
136
156
|
enumerable: true,
|
|
137
|
-
get: function () { return
|
|
157
|
+
get: function () { return chunk42YQ4ATO_cjs.generateMessageId; }
|
|
138
158
|
});
|
|
139
159
|
Object.defineProperty(exports, "generateSuggestionReason", {
|
|
140
160
|
enumerable: true,
|
|
141
|
-
get: function () { return
|
|
161
|
+
get: function () { return chunk42YQ4ATO_cjs.generateSuggestionReason; }
|
|
142
162
|
});
|
|
143
163
|
Object.defineProperty(exports, "generateThreadId", {
|
|
144
164
|
enumerable: true,
|
|
145
|
-
get: function () { return
|
|
165
|
+
get: function () { return chunk42YQ4ATO_cjs.generateThreadId; }
|
|
146
166
|
});
|
|
147
167
|
Object.defineProperty(exports, "generateThreadTitle", {
|
|
148
168
|
enumerable: true,
|
|
149
|
-
get: function () { return
|
|
169
|
+
get: function () { return chunk42YQ4ATO_cjs.generateThreadTitle; }
|
|
150
170
|
});
|
|
151
171
|
Object.defineProperty(exports, "generateToolCallId", {
|
|
152
172
|
enumerable: true,
|
|
153
|
-
get: function () { return
|
|
173
|
+
get: function () { return chunk42YQ4ATO_cjs.generateToolCallId; }
|
|
154
174
|
});
|
|
155
175
|
Object.defineProperty(exports, "getAttachmentTypeFromMime", {
|
|
156
176
|
enumerable: true,
|
|
157
|
-
get: function () { return
|
|
177
|
+
get: function () { return chunk42YQ4ATO_cjs.getAttachmentTypeFromMime; }
|
|
158
178
|
});
|
|
159
179
|
Object.defineProperty(exports, "getConsoleErrors", {
|
|
160
180
|
enumerable: true,
|
|
161
|
-
get: function () { return
|
|
181
|
+
get: function () { return chunk42YQ4ATO_cjs.getConsoleErrors; }
|
|
162
182
|
});
|
|
163
183
|
Object.defineProperty(exports, "getConsoleLogs", {
|
|
164
184
|
enumerable: true,
|
|
165
|
-
get: function () { return
|
|
185
|
+
get: function () { return chunk42YQ4ATO_cjs.getConsoleLogs; }
|
|
166
186
|
});
|
|
167
187
|
Object.defineProperty(exports, "getConsoleWarnings", {
|
|
168
188
|
enumerable: true,
|
|
169
|
-
get: function () { return
|
|
189
|
+
get: function () { return chunk42YQ4ATO_cjs.getConsoleWarnings; }
|
|
170
190
|
});
|
|
171
191
|
Object.defineProperty(exports, "getDefaultModel", {
|
|
172
192
|
enumerable: true,
|
|
173
|
-
get: function () { return
|
|
193
|
+
get: function () { return chunk42YQ4ATO_cjs.getDefaultModel; }
|
|
174
194
|
});
|
|
175
195
|
Object.defineProperty(exports, "getFailedRequests", {
|
|
176
196
|
enumerable: true,
|
|
177
|
-
get: function () { return
|
|
197
|
+
get: function () { return chunk42YQ4ATO_cjs.getFailedRequests; }
|
|
178
198
|
});
|
|
179
199
|
Object.defineProperty(exports, "getNetworkRequests", {
|
|
180
200
|
enumerable: true,
|
|
181
|
-
get: function () { return
|
|
201
|
+
get: function () { return chunk42YQ4ATO_cjs.getNetworkRequests; }
|
|
182
202
|
});
|
|
183
203
|
Object.defineProperty(exports, "getPrimaryTool", {
|
|
184
204
|
enumerable: true,
|
|
185
|
-
get: function () { return
|
|
205
|
+
get: function () { return chunk42YQ4ATO_cjs.getPrimaryTool; }
|
|
186
206
|
});
|
|
187
207
|
Object.defineProperty(exports, "hasToolCalls", {
|
|
188
208
|
enumerable: true,
|
|
189
|
-
get: function () { return
|
|
209
|
+
get: function () { return chunk42YQ4ATO_cjs.hasToolCalls; }
|
|
190
210
|
});
|
|
191
211
|
Object.defineProperty(exports, "hasToolSuggestions", {
|
|
192
212
|
enumerable: true,
|
|
193
|
-
get: function () { return
|
|
213
|
+
get: function () { return chunk42YQ4ATO_cjs.hasToolSuggestions; }
|
|
194
214
|
});
|
|
195
215
|
Object.defineProperty(exports, "isConsoleCaptureActive", {
|
|
196
216
|
enumerable: true,
|
|
197
|
-
get: function () { return
|
|
217
|
+
get: function () { return chunk42YQ4ATO_cjs.isConsoleCaptureActive; }
|
|
198
218
|
});
|
|
199
219
|
Object.defineProperty(exports, "isNetworkCaptureActive", {
|
|
200
220
|
enumerable: true,
|
|
201
|
-
get: function () { return
|
|
221
|
+
get: function () { return chunk42YQ4ATO_cjs.isNetworkCaptureActive; }
|
|
202
222
|
});
|
|
203
223
|
Object.defineProperty(exports, "isScreenshotSupported", {
|
|
204
224
|
enumerable: true,
|
|
205
|
-
get: function () { return
|
|
225
|
+
get: function () { return chunk42YQ4ATO_cjs.isScreenshotSupported; }
|
|
206
226
|
});
|
|
207
227
|
Object.defineProperty(exports, "isToolResult", {
|
|
208
228
|
enumerable: true,
|
|
209
|
-
get: function () { return
|
|
229
|
+
get: function () { return chunk42YQ4ATO_cjs.isToolResult; }
|
|
230
|
+
});
|
|
231
|
+
Object.defineProperty(exports, "localStorageAdapter", {
|
|
232
|
+
enumerable: true,
|
|
233
|
+
get: function () { return chunk42YQ4ATO_cjs.localStorageAdapter; }
|
|
210
234
|
});
|
|
211
235
|
Object.defineProperty(exports, "networkRequestsTool", {
|
|
212
236
|
enumerable: true,
|
|
213
|
-
get: function () { return
|
|
237
|
+
get: function () { return chunk42YQ4ATO_cjs.networkRequestsTool; }
|
|
238
|
+
});
|
|
239
|
+
Object.defineProperty(exports, "noopAdapter", {
|
|
240
|
+
enumerable: true,
|
|
241
|
+
get: function () { return chunk42YQ4ATO_cjs.noopAdapter; }
|
|
214
242
|
});
|
|
215
243
|
Object.defineProperty(exports, "parseSSELine", {
|
|
216
244
|
enumerable: true,
|
|
217
|
-
get: function () { return
|
|
245
|
+
get: function () { return chunk42YQ4ATO_cjs.parseSSELine; }
|
|
218
246
|
});
|
|
219
247
|
Object.defineProperty(exports, "parseStreamEvent", {
|
|
220
248
|
enumerable: true,
|
|
221
|
-
get: function () { return
|
|
249
|
+
get: function () { return chunk42YQ4ATO_cjs.parseStreamEvent; }
|
|
222
250
|
});
|
|
223
251
|
Object.defineProperty(exports, "parseToolCallArgs", {
|
|
224
252
|
enumerable: true,
|
|
225
|
-
get: function () { return
|
|
253
|
+
get: function () { return chunk42YQ4ATO_cjs.parseToolCallArgs; }
|
|
226
254
|
});
|
|
227
255
|
Object.defineProperty(exports, "processFileToAttachment", {
|
|
228
256
|
enumerable: true,
|
|
229
|
-
get: function () { return
|
|
257
|
+
get: function () { return chunk42YQ4ATO_cjs.processFileToAttachment; }
|
|
230
258
|
});
|
|
231
259
|
Object.defineProperty(exports, "resizeScreenshot", {
|
|
232
260
|
enumerable: true,
|
|
233
|
-
get: function () { return
|
|
261
|
+
get: function () { return chunk42YQ4ATO_cjs.resizeScreenshot; }
|
|
234
262
|
});
|
|
235
263
|
Object.defineProperty(exports, "screenshotTool", {
|
|
236
264
|
enumerable: true,
|
|
237
|
-
get: function () { return
|
|
265
|
+
get: function () { return chunk42YQ4ATO_cjs.screenshotTool; }
|
|
238
266
|
});
|
|
239
267
|
Object.defineProperty(exports, "serializeStreamEvent", {
|
|
240
268
|
enumerable: true,
|
|
241
|
-
get: function () { return
|
|
269
|
+
get: function () { return chunk42YQ4ATO_cjs.serializeStreamEvent; }
|
|
242
270
|
});
|
|
243
271
|
Object.defineProperty(exports, "startConsoleCapture", {
|
|
244
272
|
enumerable: true,
|
|
245
|
-
get: function () { return
|
|
273
|
+
get: function () { return chunk42YQ4ATO_cjs.startConsoleCapture; }
|
|
246
274
|
});
|
|
247
275
|
Object.defineProperty(exports, "startNetworkCapture", {
|
|
248
276
|
enumerable: true,
|
|
249
|
-
get: function () { return
|
|
277
|
+
get: function () { return chunk42YQ4ATO_cjs.startNetworkCapture; }
|
|
250
278
|
});
|
|
251
279
|
Object.defineProperty(exports, "stopConsoleCapture", {
|
|
252
280
|
enumerable: true,
|
|
253
|
-
get: function () { return
|
|
281
|
+
get: function () { return chunk42YQ4ATO_cjs.stopConsoleCapture; }
|
|
254
282
|
});
|
|
255
283
|
Object.defineProperty(exports, "stopNetworkCapture", {
|
|
256
284
|
enumerable: true,
|
|
257
|
-
get: function () { return
|
|
285
|
+
get: function () { return chunk42YQ4ATO_cjs.stopNetworkCapture; }
|
|
258
286
|
});
|
|
259
287
|
Object.defineProperty(exports, "streamSSE", {
|
|
260
288
|
enumerable: true,
|
|
261
|
-
get: function () { return
|
|
289
|
+
get: function () { return chunk42YQ4ATO_cjs.streamSSE; }
|
|
262
290
|
});
|
|
263
291
|
Object.defineProperty(exports, "success", {
|
|
264
292
|
enumerable: true,
|
|
265
|
-
get: function () { return
|
|
293
|
+
get: function () { return chunk42YQ4ATO_cjs.success; }
|
|
266
294
|
});
|
|
267
295
|
Object.defineProperty(exports, "tool", {
|
|
268
296
|
enumerable: true,
|
|
269
|
-
get: function () { return
|
|
297
|
+
get: function () { return chunk42YQ4ATO_cjs.tool; }
|
|
270
298
|
});
|
|
271
299
|
Object.defineProperty(exports, "toolToAnthropicFormat", {
|
|
272
300
|
enumerable: true,
|
|
273
|
-
get: function () { return
|
|
301
|
+
get: function () { return chunk42YQ4ATO_cjs.toolToAnthropicFormat; }
|
|
274
302
|
});
|
|
275
303
|
Object.defineProperty(exports, "toolToOpenAIFormat", {
|
|
276
304
|
enumerable: true,
|
|
277
|
-
get: function () { return
|
|
305
|
+
get: function () { return chunk42YQ4ATO_cjs.toolToOpenAIFormat; }
|
|
278
306
|
});
|
|
279
307
|
Object.defineProperty(exports, "zodObjectToInputSchema", {
|
|
280
308
|
enumerable: true,
|
|
281
|
-
get: function () { return
|
|
309
|
+
get: function () { return chunk42YQ4ATO_cjs.zodObjectToInputSchema; }
|
|
282
310
|
});
|
|
283
311
|
Object.defineProperty(exports, "zodToJsonSchema", {
|
|
284
312
|
enumerable: true,
|
|
285
|
-
get: function () { return
|
|
313
|
+
get: function () { return chunk42YQ4ATO_cjs.zodToJsonSchema; }
|
|
286
314
|
});
|
|
287
315
|
//# sourceMappingURL=index.cjs.map
|
|
288
316
|
//# sourceMappingURL=index.cjs.map
|
package/dist/core/index.d.cts
CHANGED
|
@@ -1,7 +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 {
|
|
3
|
-
import { T as ToolDefinition, a as ToolExecutionStatus, b as ToolResponse, J as JSONSchemaProperty, c as ToolInputSchema, d as ToolLocation, e as ToolContext } from '../
|
|
4
|
-
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 } from '../ThreadManager-BCVt-_k_.cjs';
|
|
2
|
+
export { t as ActionDefinition, A as ActionParameter, u as ActionRenderProps, o as CapturedContext, r as CloudConfig, k as ConsoleLogType, s as CopilotConfig, Z as CreateThreadOptions, p as CustomKeywords, J as DEFAULT_MODELS, E as Extension, H as HttpMethod, I as IntentDetectionResult, z as InternalKnowledgeBaseConfig, B as InternalKnowledgeBaseResult, D as InternalKnowledgeBaseSearchResponse, v as KnowledgeBaseConfig, K as KnowledgeBaseProvider, w as KnowledgeBaseResult, x as KnowledgeBaseSearchRequest, y as KnowledgeBaseSearchResponse, q as LLMConfig, L as LLMProvider, a0 as LoadStatus, a1 as LocalStorageAdapterConfig, P as ParameterType, W as SimpleThreadManagerState, M as ThreadManager, Y as ThreadManagerCallbacks, X as ThreadManagerConfig, $ as ThreadManagerState, m as ToolConsentRequest, n as ToolConsentResponse, T as ToolType, l as ToolsConfig, _ as UpdateThreadOptions, F as actionToTool, j as createCustomDetector, Q as createLocalStorageAdapter, U as createMemoryAdapter, O as createThreadManager, f as detectIntent, i as generateSuggestionReason, G as getDefaultModel, g as getPrimaryTool, h as hasToolSuggestions, R as localStorageAdapter, V as noopAdapter } from '../ThreadManager-BCVt-_k_.cjs';
|
|
3
|
+
import { T as ToolDefinition, S as Source, a as ToolExecutionStatus, b as ToolResponse, J as JSONSchemaProperty, c as ToolInputSchema, d as ToolLocation, e as ToolContext, M as MessageAttachment } from '../types-BtAaOV07.cjs';
|
|
4
|
+
export { w as AIContent, A as AIProvider, v as AIResponseMode, t as AgentLoopConfig, u as AgentLoopState, X as AsyncThreadStorageAdapter, Y as ListThreadsOptions, Z as ListThreadsResult, g as Message, h as MessageMetadata, f as MessageRole, x as PermissionLevel, B as PermissionStorageAdapter, z as PermissionStorageConfig, P as PersistenceConfig, k as Thread, l as ThreadData, m as ThreadStorageAdapter, j as TokenUsage, r as ToolApprovalStatus, i as ToolCall, o as ToolConfig, s as ToolExecution, y as ToolPermission, n as ToolRenderProps, p as ToolSet, U as UnifiedToolCall, q as UnifiedToolResult, F as createAssistantMessage, D as createMessage, H as createToolCall, G as createToolMessage, R as createToolResult, E as createUserMessage, W as failure, C as generateThreadTitle, K as hasToolCalls, L as isToolResult, I as parseToolCallArgs, V as success, N as tool, Q as toolToAnthropicFormat, O as toolToOpenAIFormat } from '../types-BtAaOV07.cjs';
|
|
5
5
|
|
|
6
6
|
/**
|
|
7
7
|
* Screenshot Capture Tool
|
package/dist/core/index.d.ts
CHANGED
|
@@ -1,7 +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 {
|
|
3
|
-
import { T as ToolDefinition, a as ToolExecutionStatus, b as ToolResponse, J as JSONSchemaProperty, c as ToolInputSchema, d as ToolLocation, e as ToolContext } from '../
|
|
4
|
-
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 } from '../ThreadManager-BjC15mh8.js';
|
|
2
|
+
export { t as ActionDefinition, A as ActionParameter, u as ActionRenderProps, o as CapturedContext, r as CloudConfig, k as ConsoleLogType, s as CopilotConfig, Z as CreateThreadOptions, p as CustomKeywords, J as DEFAULT_MODELS, E as Extension, H as HttpMethod, I as IntentDetectionResult, z as InternalKnowledgeBaseConfig, B as InternalKnowledgeBaseResult, D as InternalKnowledgeBaseSearchResponse, v as KnowledgeBaseConfig, K as KnowledgeBaseProvider, w as KnowledgeBaseResult, x as KnowledgeBaseSearchRequest, y as KnowledgeBaseSearchResponse, q as LLMConfig, L as LLMProvider, a0 as LoadStatus, a1 as LocalStorageAdapterConfig, P as ParameterType, W as SimpleThreadManagerState, M as ThreadManager, Y as ThreadManagerCallbacks, X as ThreadManagerConfig, $ as ThreadManagerState, m as ToolConsentRequest, n as ToolConsentResponse, T as ToolType, l as ToolsConfig, _ as UpdateThreadOptions, F as actionToTool, j as createCustomDetector, Q as createLocalStorageAdapter, U as createMemoryAdapter, O as createThreadManager, f as detectIntent, i as generateSuggestionReason, G as getDefaultModel, g as getPrimaryTool, h as hasToolSuggestions, R as localStorageAdapter, V as noopAdapter } from '../ThreadManager-BjC15mh8.js';
|
|
3
|
+
import { T as ToolDefinition, S as Source, a as ToolExecutionStatus, b as ToolResponse, J as JSONSchemaProperty, c as ToolInputSchema, d as ToolLocation, e as ToolContext, M as MessageAttachment } from '../types-BtAaOV07.js';
|
|
4
|
+
export { w as AIContent, A as AIProvider, v as AIResponseMode, t as AgentLoopConfig, u as AgentLoopState, X as AsyncThreadStorageAdapter, Y as ListThreadsOptions, Z as ListThreadsResult, g as Message, h as MessageMetadata, f as MessageRole, x as PermissionLevel, B as PermissionStorageAdapter, z as PermissionStorageConfig, P as PersistenceConfig, k as Thread, l as ThreadData, m as ThreadStorageAdapter, j as TokenUsage, r as ToolApprovalStatus, i as ToolCall, o as ToolConfig, s as ToolExecution, y as ToolPermission, n as ToolRenderProps, p as ToolSet, U as UnifiedToolCall, q as UnifiedToolResult, F as createAssistantMessage, D as createMessage, H as createToolCall, G as createToolMessage, R as createToolResult, E as createUserMessage, W as failure, C as generateThreadTitle, K as hasToolCalls, L as isToolResult, I as parseToolCallArgs, V as success, N as tool, Q as toolToAnthropicFormat, O as toolToOpenAIFormat } from '../types-BtAaOV07.js';
|
|
5
5
|
|
|
6
6
|
/**
|
|
7
7
|
* Screenshot Capture Tool
|
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, SimpleThreadManagerState, ThreadManager, actionToTool, builtinTools, captureCurrentLogs, captureScreenshot, clearConsoleLogs, clearNetworkRequests, consoleLogsTool, createAssistantMessage, createCloudStorage, createConsoleLogsTool, createCustomDetector, createLocalStorageAdapter, createMemoryAdapter, createMessage, createNetworkRequestsTool, createSSEStream, createScreenshotTool, createThreadManager, 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, localStorageAdapter, networkRequestsTool, noopAdapter, parseSSELine, parseStreamEvent, parseToolCallArgs, processFileToAttachment, resizeScreenshot, screenshotTool, serializeStreamEvent, startConsoleCapture, startNetworkCapture, stopConsoleCapture, stopNetworkCapture, streamSSE, success, tool, toolToAnthropicFormat, toolToOpenAIFormat, zodObjectToInputSchema, zodToJsonSchema } from '../chunk-QSEGNATZ.js';
|
|
2
2
|
//# sourceMappingURL=index.js.map
|
|
3
3
|
//# sourceMappingURL=index.js.map
|
package/dist/react/index.cjs
CHANGED
|
@@ -1,137 +1,169 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var
|
|
4
|
-
var
|
|
3
|
+
var chunkBN75ZW24_cjs = require('../chunk-BN75ZW24.cjs');
|
|
4
|
+
var chunk42YQ4ATO_cjs = require('../chunk-42YQ4ATO.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 chunkBN75ZW24_cjs.AbstractAgentLoop; }
|
|
11
11
|
});
|
|
12
12
|
Object.defineProperty(exports, "AbstractChat", {
|
|
13
13
|
enumerable: true,
|
|
14
|
-
get: function () { return
|
|
14
|
+
get: function () { return chunkBN75ZW24_cjs.AbstractChat; }
|
|
15
15
|
});
|
|
16
16
|
Object.defineProperty(exports, "CopilotProvider", {
|
|
17
17
|
enumerable: true,
|
|
18
|
-
get: function () { return
|
|
18
|
+
get: function () { return chunkBN75ZW24_cjs.CopilotProvider; }
|
|
19
19
|
});
|
|
20
20
|
Object.defineProperty(exports, "ReactChat", {
|
|
21
21
|
enumerable: true,
|
|
22
|
-
get: function () { return
|
|
22
|
+
get: function () { return chunkBN75ZW24_cjs.ReactChat; }
|
|
23
23
|
});
|
|
24
24
|
Object.defineProperty(exports, "ReactChatState", {
|
|
25
25
|
enumerable: true,
|
|
26
|
-
get: function () { return
|
|
26
|
+
get: function () { return chunkBN75ZW24_cjs.ReactChatState; }
|
|
27
|
+
});
|
|
28
|
+
Object.defineProperty(exports, "ReactThreadManager", {
|
|
29
|
+
enumerable: true,
|
|
30
|
+
get: function () { return chunkBN75ZW24_cjs.ReactThreadManager; }
|
|
31
|
+
});
|
|
32
|
+
Object.defineProperty(exports, "ReactThreadManagerState", {
|
|
33
|
+
enumerable: true,
|
|
34
|
+
get: function () { return chunkBN75ZW24_cjs.ReactThreadManagerState; }
|
|
27
35
|
});
|
|
28
36
|
Object.defineProperty(exports, "createPermissionStorage", {
|
|
29
37
|
enumerable: true,
|
|
30
|
-
get: function () { return
|
|
38
|
+
get: function () { return chunkBN75ZW24_cjs.createPermissionStorage; }
|
|
31
39
|
});
|
|
32
40
|
Object.defineProperty(exports, "createReactChat", {
|
|
33
41
|
enumerable: true,
|
|
34
|
-
get: function () { return
|
|
42
|
+
get: function () { return chunkBN75ZW24_cjs.createReactChat; }
|
|
35
43
|
});
|
|
36
44
|
Object.defineProperty(exports, "createReactChatState", {
|
|
37
45
|
enumerable: true,
|
|
38
|
-
get: function () { return
|
|
46
|
+
get: function () { return chunkBN75ZW24_cjs.createReactChatState; }
|
|
47
|
+
});
|
|
48
|
+
Object.defineProperty(exports, "createReactThreadManager", {
|
|
49
|
+
enumerable: true,
|
|
50
|
+
get: function () { return chunkBN75ZW24_cjs.createReactThreadManager; }
|
|
51
|
+
});
|
|
52
|
+
Object.defineProperty(exports, "createReactThreadManagerState", {
|
|
53
|
+
enumerable: true,
|
|
54
|
+
get: function () { return chunkBN75ZW24_cjs.createReactThreadManagerState; }
|
|
39
55
|
});
|
|
40
56
|
Object.defineProperty(exports, "createSessionPermissionCache", {
|
|
41
57
|
enumerable: true,
|
|
42
|
-
get: function () { return
|
|
58
|
+
get: function () { return chunkBN75ZW24_cjs.createSessionPermissionCache; }
|
|
43
59
|
});
|
|
44
60
|
Object.defineProperty(exports, "formatKnowledgeResultsForAI", {
|
|
45
61
|
enumerable: true,
|
|
46
|
-
get: function () { return
|
|
62
|
+
get: function () { return chunkBN75ZW24_cjs.formatKnowledgeResultsForAI; }
|
|
47
63
|
});
|
|
48
64
|
Object.defineProperty(exports, "initialAgentLoopState", {
|
|
49
65
|
enumerable: true,
|
|
50
|
-
get: function () { return
|
|
66
|
+
get: function () { return chunkBN75ZW24_cjs.initialAgentLoopState; }
|
|
51
67
|
});
|
|
52
68
|
Object.defineProperty(exports, "searchKnowledgeBase", {
|
|
53
69
|
enumerable: true,
|
|
54
|
-
get: function () { return
|
|
70
|
+
get: function () { return chunkBN75ZW24_cjs.searchKnowledgeBase; }
|
|
55
71
|
});
|
|
56
72
|
Object.defineProperty(exports, "useAIAction", {
|
|
57
73
|
enumerable: true,
|
|
58
|
-
get: function () { return
|
|
74
|
+
get: function () { return chunkBN75ZW24_cjs.useAIAction; }
|
|
59
75
|
});
|
|
60
76
|
Object.defineProperty(exports, "useAIActions", {
|
|
61
77
|
enumerable: true,
|
|
62
|
-
get: function () { return
|
|
78
|
+
get: function () { return chunkBN75ZW24_cjs.useAIActions; }
|
|
63
79
|
});
|
|
64
80
|
Object.defineProperty(exports, "useAIContext", {
|
|
65
81
|
enumerable: true,
|
|
66
|
-
get: function () { return
|
|
82
|
+
get: function () { return chunkBN75ZW24_cjs.useAIContext; }
|
|
67
83
|
});
|
|
68
84
|
Object.defineProperty(exports, "useAIContexts", {
|
|
69
85
|
enumerable: true,
|
|
70
|
-
get: function () { return
|
|
86
|
+
get: function () { return chunkBN75ZW24_cjs.useAIContexts; }
|
|
71
87
|
});
|
|
72
88
|
Object.defineProperty(exports, "useAITools", {
|
|
73
89
|
enumerable: true,
|
|
74
|
-
get: function () { return
|
|
90
|
+
get: function () { return chunkBN75ZW24_cjs.useAITools; }
|
|
75
91
|
});
|
|
76
92
|
Object.defineProperty(exports, "useAgent", {
|
|
77
93
|
enumerable: true,
|
|
78
|
-
get: function () { return
|
|
94
|
+
get: function () { return chunkBN75ZW24_cjs.useAgent; }
|
|
79
95
|
});
|
|
80
96
|
Object.defineProperty(exports, "useCapabilities", {
|
|
81
97
|
enumerable: true,
|
|
82
|
-
get: function () { return
|
|
98
|
+
get: function () { return chunkBN75ZW24_cjs.useCapabilities; }
|
|
83
99
|
});
|
|
84
100
|
Object.defineProperty(exports, "useChat", {
|
|
85
101
|
enumerable: true,
|
|
86
|
-
get: function () { return
|
|
102
|
+
get: function () { return chunkBN75ZW24_cjs.useChat; }
|
|
87
103
|
});
|
|
88
104
|
Object.defineProperty(exports, "useCopilot", {
|
|
89
105
|
enumerable: true,
|
|
90
|
-
get: function () { return
|
|
106
|
+
get: function () { return chunkBN75ZW24_cjs.useCopilot; }
|
|
91
107
|
});
|
|
92
108
|
Object.defineProperty(exports, "useDevLogger", {
|
|
93
109
|
enumerable: true,
|
|
94
|
-
get: function () { return
|
|
110
|
+
get: function () { return chunkBN75ZW24_cjs.useDevLogger; }
|
|
95
111
|
});
|
|
96
112
|
Object.defineProperty(exports, "useFeatureSupport", {
|
|
97
113
|
enumerable: true,
|
|
98
|
-
get: function () { return
|
|
114
|
+
get: function () { return chunkBN75ZW24_cjs.useFeatureSupport; }
|
|
99
115
|
});
|
|
100
116
|
Object.defineProperty(exports, "useKnowledgeBase", {
|
|
101
117
|
enumerable: true,
|
|
102
|
-
get: function () { return
|
|
118
|
+
get: function () { return chunkBN75ZW24_cjs.useKnowledgeBase; }
|
|
103
119
|
});
|
|
104
120
|
Object.defineProperty(exports, "useSuggestions", {
|
|
105
121
|
enumerable: true,
|
|
106
|
-
get: function () { return
|
|
122
|
+
get: function () { return chunkBN75ZW24_cjs.useSuggestions; }
|
|
107
123
|
});
|
|
108
124
|
Object.defineProperty(exports, "useSupportedMediaTypes", {
|
|
109
125
|
enumerable: true,
|
|
110
|
-
get: function () { return
|
|
126
|
+
get: function () { return chunkBN75ZW24_cjs.useSupportedMediaTypes; }
|
|
127
|
+
});
|
|
128
|
+
Object.defineProperty(exports, "useThreadManager", {
|
|
129
|
+
enumerable: true,
|
|
130
|
+
get: function () { return chunkBN75ZW24_cjs.useThreadManager; }
|
|
111
131
|
});
|
|
112
132
|
Object.defineProperty(exports, "useTool", {
|
|
113
133
|
enumerable: true,
|
|
114
|
-
get: function () { return
|
|
134
|
+
get: function () { return chunkBN75ZW24_cjs.useTool; }
|
|
115
135
|
});
|
|
116
136
|
Object.defineProperty(exports, "useToolExecutor", {
|
|
117
137
|
enumerable: true,
|
|
118
|
-
get: function () { return
|
|
138
|
+
get: function () { return chunkBN75ZW24_cjs.useToolExecutor; }
|
|
119
139
|
});
|
|
120
140
|
Object.defineProperty(exports, "useToolWithSchema", {
|
|
121
141
|
enumerable: true,
|
|
122
|
-
get: function () { return
|
|
142
|
+
get: function () { return chunkBN75ZW24_cjs.useToolWithSchema; }
|
|
123
143
|
});
|
|
124
144
|
Object.defineProperty(exports, "useTools", {
|
|
125
145
|
enumerable: true,
|
|
126
|
-
get: function () { return
|
|
146
|
+
get: function () { return chunkBN75ZW24_cjs.useTools; }
|
|
127
147
|
});
|
|
128
148
|
Object.defineProperty(exports, "useToolsWithSchema", {
|
|
129
149
|
enumerable: true,
|
|
130
|
-
get: function () { return
|
|
150
|
+
get: function () { return chunkBN75ZW24_cjs.useToolsWithSchema; }
|
|
151
|
+
});
|
|
152
|
+
Object.defineProperty(exports, "createLocalStorageAdapter", {
|
|
153
|
+
enumerable: true,
|
|
154
|
+
get: function () { return chunk42YQ4ATO_cjs.createLocalStorageAdapter; }
|
|
155
|
+
});
|
|
156
|
+
Object.defineProperty(exports, "createMemoryAdapter", {
|
|
157
|
+
enumerable: true,
|
|
158
|
+
get: function () { return chunk42YQ4ATO_cjs.createMemoryAdapter; }
|
|
159
|
+
});
|
|
160
|
+
Object.defineProperty(exports, "createServerAdapter", {
|
|
161
|
+
enumerable: true,
|
|
162
|
+
get: function () { return chunk42YQ4ATO_cjs.createServerAdapter; }
|
|
131
163
|
});
|
|
132
164
|
Object.defineProperty(exports, "generateSuggestionReason", {
|
|
133
165
|
enumerable: true,
|
|
134
|
-
get: function () { return
|
|
166
|
+
get: function () { return chunk42YQ4ATO_cjs.generateSuggestionReason; }
|
|
135
167
|
});
|
|
136
168
|
//# sourceMappingURL=index.cjs.map
|
|
137
169
|
//# sourceMappingURL=index.cjs.map
|