@yourgpt/copilot-sdk 0.1.1 → 1.0.0

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.
@@ -1,288 +1,316 @@
1
1
  'use strict';
2
2
 
3
- var chunkIH7WXWX4_cjs = require('../chunk-IH7WXWX4.cjs');
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 chunkIH7WXWX4_cjs.CLOUD_MAX_FILE_SIZE; }
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 chunkIH7WXWX4_cjs.DEFAULT_MODELS; }
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 chunkIH7WXWX4_cjs.DEFAULT_YOURGPT_ENDPOINT; }
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 chunkIH7WXWX4_cjs.actionToTool; }
29
+ get: function () { return chunk42YQ4ATO_cjs.actionToTool; }
22
30
  });
23
31
  Object.defineProperty(exports, "builtinTools", {
24
32
  enumerable: true,
25
- get: function () { return chunkIH7WXWX4_cjs.builtinTools; }
33
+ get: function () { return chunk42YQ4ATO_cjs.builtinTools; }
26
34
  });
27
35
  Object.defineProperty(exports, "captureCurrentLogs", {
28
36
  enumerable: true,
29
- get: function () { return chunkIH7WXWX4_cjs.captureCurrentLogs; }
37
+ get: function () { return chunk42YQ4ATO_cjs.captureCurrentLogs; }
30
38
  });
31
39
  Object.defineProperty(exports, "captureScreenshot", {
32
40
  enumerable: true,
33
- get: function () { return chunkIH7WXWX4_cjs.captureScreenshot; }
41
+ get: function () { return chunk42YQ4ATO_cjs.captureScreenshot; }
34
42
  });
35
43
  Object.defineProperty(exports, "clearConsoleLogs", {
36
44
  enumerable: true,
37
- get: function () { return chunkIH7WXWX4_cjs.clearConsoleLogs; }
45
+ get: function () { return chunk42YQ4ATO_cjs.clearConsoleLogs; }
38
46
  });
39
47
  Object.defineProperty(exports, "clearNetworkRequests", {
40
48
  enumerable: true,
41
- get: function () { return chunkIH7WXWX4_cjs.clearNetworkRequests; }
49
+ get: function () { return chunk42YQ4ATO_cjs.clearNetworkRequests; }
42
50
  });
43
51
  Object.defineProperty(exports, "consoleLogsTool", {
44
52
  enumerable: true,
45
- get: function () { return chunkIH7WXWX4_cjs.consoleLogsTool; }
53
+ get: function () { return chunk42YQ4ATO_cjs.consoleLogsTool; }
46
54
  });
47
55
  Object.defineProperty(exports, "createAssistantMessage", {
48
56
  enumerable: true,
49
- get: function () { return chunkIH7WXWX4_cjs.createAssistantMessage; }
57
+ get: function () { return chunk42YQ4ATO_cjs.createAssistantMessage; }
50
58
  });
51
59
  Object.defineProperty(exports, "createCloudStorage", {
52
60
  enumerable: true,
53
- get: function () { return chunkIH7WXWX4_cjs.createCloudStorage; }
61
+ get: function () { return chunk42YQ4ATO_cjs.createCloudStorage; }
54
62
  });
55
63
  Object.defineProperty(exports, "createConsoleLogsTool", {
56
64
  enumerable: true,
57
- get: function () { return chunkIH7WXWX4_cjs.createConsoleLogsTool; }
65
+ get: function () { return chunk42YQ4ATO_cjs.createConsoleLogsTool; }
58
66
  });
59
67
  Object.defineProperty(exports, "createCustomDetector", {
60
68
  enumerable: true,
61
- get: function () { return chunkIH7WXWX4_cjs.createCustomDetector; }
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 chunkIH7WXWX4_cjs.createMessage; }
81
+ get: function () { return chunk42YQ4ATO_cjs.createMessage; }
66
82
  });
67
83
  Object.defineProperty(exports, "createNetworkRequestsTool", {
68
84
  enumerable: true,
69
- get: function () { return chunkIH7WXWX4_cjs.createNetworkRequestsTool; }
85
+ get: function () { return chunk42YQ4ATO_cjs.createNetworkRequestsTool; }
70
86
  });
71
87
  Object.defineProperty(exports, "createSSEStream", {
72
88
  enumerable: true,
73
- get: function () { return chunkIH7WXWX4_cjs.createSSEStream; }
89
+ get: function () { return chunk42YQ4ATO_cjs.createSSEStream; }
74
90
  });
75
91
  Object.defineProperty(exports, "createScreenshotTool", {
76
92
  enumerable: true,
77
- get: function () { return chunkIH7WXWX4_cjs.createScreenshotTool; }
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 chunkIH7WXWX4_cjs.createToolCall; }
101
+ get: function () { return chunk42YQ4ATO_cjs.createToolCall; }
82
102
  });
83
103
  Object.defineProperty(exports, "createToolMessage", {
84
104
  enumerable: true,
85
- get: function () { return chunkIH7WXWX4_cjs.createToolMessage; }
105
+ get: function () { return chunk42YQ4ATO_cjs.createToolMessage; }
86
106
  });
87
107
  Object.defineProperty(exports, "createToolResult", {
88
108
  enumerable: true,
89
- get: function () { return chunkIH7WXWX4_cjs.createToolResult; }
109
+ get: function () { return chunk42YQ4ATO_cjs.createToolResult; }
90
110
  });
91
111
  Object.defineProperty(exports, "createUserMessage", {
92
112
  enumerable: true,
93
- get: function () { return chunkIH7WXWX4_cjs.createUserMessage; }
113
+ get: function () { return chunk42YQ4ATO_cjs.createUserMessage; }
94
114
  });
95
115
  Object.defineProperty(exports, "defaultSystemMessage", {
96
116
  enumerable: true,
97
- get: function () { return chunkIH7WXWX4_cjs.defaultSystemMessage; }
117
+ get: function () { return chunk42YQ4ATO_cjs.defaultSystemMessage; }
98
118
  });
99
119
  Object.defineProperty(exports, "defineClientTool", {
100
120
  enumerable: true,
101
- get: function () { return chunkIH7WXWX4_cjs.defineClientTool; }
121
+ get: function () { return chunk42YQ4ATO_cjs.defineClientTool; }
102
122
  });
103
123
  Object.defineProperty(exports, "defineServerTool", {
104
124
  enumerable: true,
105
- get: function () { return chunkIH7WXWX4_cjs.defineServerTool; }
125
+ get: function () { return chunk42YQ4ATO_cjs.defineServerTool; }
106
126
  });
107
127
  Object.defineProperty(exports, "defineTool", {
108
128
  enumerable: true,
109
- get: function () { return chunkIH7WXWX4_cjs.defineTool; }
129
+ get: function () { return chunk42YQ4ATO_cjs.defineTool; }
110
130
  });
111
131
  Object.defineProperty(exports, "detectIntent", {
112
132
  enumerable: true,
113
- get: function () { return chunkIH7WXWX4_cjs.detectIntent; }
133
+ get: function () { return chunk42YQ4ATO_cjs.detectIntent; }
114
134
  });
115
135
  Object.defineProperty(exports, "failure", {
116
136
  enumerable: true,
117
- get: function () { return chunkIH7WXWX4_cjs.failure; }
137
+ get: function () { return chunk42YQ4ATO_cjs.failure; }
118
138
  });
119
139
  Object.defineProperty(exports, "formatLogsForAI", {
120
140
  enumerable: true,
121
- get: function () { return chunkIH7WXWX4_cjs.formatLogsForAI; }
141
+ get: function () { return chunk42YQ4ATO_cjs.formatLogsForAI; }
122
142
  });
123
143
  Object.defineProperty(exports, "formatRequestsForAI", {
124
144
  enumerable: true,
125
- get: function () { return chunkIH7WXWX4_cjs.formatRequestsForAI; }
145
+ get: function () { return chunk42YQ4ATO_cjs.formatRequestsForAI; }
126
146
  });
127
147
  Object.defineProperty(exports, "formatSSE", {
128
148
  enumerable: true,
129
- get: function () { return chunkIH7WXWX4_cjs.formatSSE; }
149
+ get: function () { return chunk42YQ4ATO_cjs.formatSSE; }
130
150
  });
131
151
  Object.defineProperty(exports, "generateId", {
132
152
  enumerable: true,
133
- get: function () { return chunkIH7WXWX4_cjs.generateId; }
153
+ get: function () { return chunk42YQ4ATO_cjs.generateId; }
134
154
  });
135
155
  Object.defineProperty(exports, "generateMessageId", {
136
156
  enumerable: true,
137
- get: function () { return chunkIH7WXWX4_cjs.generateMessageId; }
157
+ get: function () { return chunk42YQ4ATO_cjs.generateMessageId; }
138
158
  });
139
159
  Object.defineProperty(exports, "generateSuggestionReason", {
140
160
  enumerable: true,
141
- get: function () { return chunkIH7WXWX4_cjs.generateSuggestionReason; }
161
+ get: function () { return chunk42YQ4ATO_cjs.generateSuggestionReason; }
142
162
  });
143
163
  Object.defineProperty(exports, "generateThreadId", {
144
164
  enumerable: true,
145
- get: function () { return chunkIH7WXWX4_cjs.generateThreadId; }
165
+ get: function () { return chunk42YQ4ATO_cjs.generateThreadId; }
146
166
  });
147
167
  Object.defineProperty(exports, "generateThreadTitle", {
148
168
  enumerable: true,
149
- get: function () { return chunkIH7WXWX4_cjs.generateThreadTitle; }
169
+ get: function () { return chunk42YQ4ATO_cjs.generateThreadTitle; }
150
170
  });
151
171
  Object.defineProperty(exports, "generateToolCallId", {
152
172
  enumerable: true,
153
- get: function () { return chunkIH7WXWX4_cjs.generateToolCallId; }
173
+ get: function () { return chunk42YQ4ATO_cjs.generateToolCallId; }
154
174
  });
155
175
  Object.defineProperty(exports, "getAttachmentTypeFromMime", {
156
176
  enumerable: true,
157
- get: function () { return chunkIH7WXWX4_cjs.getAttachmentTypeFromMime; }
177
+ get: function () { return chunk42YQ4ATO_cjs.getAttachmentTypeFromMime; }
158
178
  });
159
179
  Object.defineProperty(exports, "getConsoleErrors", {
160
180
  enumerable: true,
161
- get: function () { return chunkIH7WXWX4_cjs.getConsoleErrors; }
181
+ get: function () { return chunk42YQ4ATO_cjs.getConsoleErrors; }
162
182
  });
163
183
  Object.defineProperty(exports, "getConsoleLogs", {
164
184
  enumerable: true,
165
- get: function () { return chunkIH7WXWX4_cjs.getConsoleLogs; }
185
+ get: function () { return chunk42YQ4ATO_cjs.getConsoleLogs; }
166
186
  });
167
187
  Object.defineProperty(exports, "getConsoleWarnings", {
168
188
  enumerable: true,
169
- get: function () { return chunkIH7WXWX4_cjs.getConsoleWarnings; }
189
+ get: function () { return chunk42YQ4ATO_cjs.getConsoleWarnings; }
170
190
  });
171
191
  Object.defineProperty(exports, "getDefaultModel", {
172
192
  enumerable: true,
173
- get: function () { return chunkIH7WXWX4_cjs.getDefaultModel; }
193
+ get: function () { return chunk42YQ4ATO_cjs.getDefaultModel; }
174
194
  });
175
195
  Object.defineProperty(exports, "getFailedRequests", {
176
196
  enumerable: true,
177
- get: function () { return chunkIH7WXWX4_cjs.getFailedRequests; }
197
+ get: function () { return chunk42YQ4ATO_cjs.getFailedRequests; }
178
198
  });
179
199
  Object.defineProperty(exports, "getNetworkRequests", {
180
200
  enumerable: true,
181
- get: function () { return chunkIH7WXWX4_cjs.getNetworkRequests; }
201
+ get: function () { return chunk42YQ4ATO_cjs.getNetworkRequests; }
182
202
  });
183
203
  Object.defineProperty(exports, "getPrimaryTool", {
184
204
  enumerable: true,
185
- get: function () { return chunkIH7WXWX4_cjs.getPrimaryTool; }
205
+ get: function () { return chunk42YQ4ATO_cjs.getPrimaryTool; }
186
206
  });
187
207
  Object.defineProperty(exports, "hasToolCalls", {
188
208
  enumerable: true,
189
- get: function () { return chunkIH7WXWX4_cjs.hasToolCalls; }
209
+ get: function () { return chunk42YQ4ATO_cjs.hasToolCalls; }
190
210
  });
191
211
  Object.defineProperty(exports, "hasToolSuggestions", {
192
212
  enumerable: true,
193
- get: function () { return chunkIH7WXWX4_cjs.hasToolSuggestions; }
213
+ get: function () { return chunk42YQ4ATO_cjs.hasToolSuggestions; }
194
214
  });
195
215
  Object.defineProperty(exports, "isConsoleCaptureActive", {
196
216
  enumerable: true,
197
- get: function () { return chunkIH7WXWX4_cjs.isConsoleCaptureActive; }
217
+ get: function () { return chunk42YQ4ATO_cjs.isConsoleCaptureActive; }
198
218
  });
199
219
  Object.defineProperty(exports, "isNetworkCaptureActive", {
200
220
  enumerable: true,
201
- get: function () { return chunkIH7WXWX4_cjs.isNetworkCaptureActive; }
221
+ get: function () { return chunk42YQ4ATO_cjs.isNetworkCaptureActive; }
202
222
  });
203
223
  Object.defineProperty(exports, "isScreenshotSupported", {
204
224
  enumerable: true,
205
- get: function () { return chunkIH7WXWX4_cjs.isScreenshotSupported; }
225
+ get: function () { return chunk42YQ4ATO_cjs.isScreenshotSupported; }
206
226
  });
207
227
  Object.defineProperty(exports, "isToolResult", {
208
228
  enumerable: true,
209
- get: function () { return chunkIH7WXWX4_cjs.isToolResult; }
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 chunkIH7WXWX4_cjs.networkRequestsTool; }
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 chunkIH7WXWX4_cjs.parseSSELine; }
245
+ get: function () { return chunk42YQ4ATO_cjs.parseSSELine; }
218
246
  });
219
247
  Object.defineProperty(exports, "parseStreamEvent", {
220
248
  enumerable: true,
221
- get: function () { return chunkIH7WXWX4_cjs.parseStreamEvent; }
249
+ get: function () { return chunk42YQ4ATO_cjs.parseStreamEvent; }
222
250
  });
223
251
  Object.defineProperty(exports, "parseToolCallArgs", {
224
252
  enumerable: true,
225
- get: function () { return chunkIH7WXWX4_cjs.parseToolCallArgs; }
253
+ get: function () { return chunk42YQ4ATO_cjs.parseToolCallArgs; }
226
254
  });
227
255
  Object.defineProperty(exports, "processFileToAttachment", {
228
256
  enumerable: true,
229
- get: function () { return chunkIH7WXWX4_cjs.processFileToAttachment; }
257
+ get: function () { return chunk42YQ4ATO_cjs.processFileToAttachment; }
230
258
  });
231
259
  Object.defineProperty(exports, "resizeScreenshot", {
232
260
  enumerable: true,
233
- get: function () { return chunkIH7WXWX4_cjs.resizeScreenshot; }
261
+ get: function () { return chunk42YQ4ATO_cjs.resizeScreenshot; }
234
262
  });
235
263
  Object.defineProperty(exports, "screenshotTool", {
236
264
  enumerable: true,
237
- get: function () { return chunkIH7WXWX4_cjs.screenshotTool; }
265
+ get: function () { return chunk42YQ4ATO_cjs.screenshotTool; }
238
266
  });
239
267
  Object.defineProperty(exports, "serializeStreamEvent", {
240
268
  enumerable: true,
241
- get: function () { return chunkIH7WXWX4_cjs.serializeStreamEvent; }
269
+ get: function () { return chunk42YQ4ATO_cjs.serializeStreamEvent; }
242
270
  });
243
271
  Object.defineProperty(exports, "startConsoleCapture", {
244
272
  enumerable: true,
245
- get: function () { return chunkIH7WXWX4_cjs.startConsoleCapture; }
273
+ get: function () { return chunk42YQ4ATO_cjs.startConsoleCapture; }
246
274
  });
247
275
  Object.defineProperty(exports, "startNetworkCapture", {
248
276
  enumerable: true,
249
- get: function () { return chunkIH7WXWX4_cjs.startNetworkCapture; }
277
+ get: function () { return chunk42YQ4ATO_cjs.startNetworkCapture; }
250
278
  });
251
279
  Object.defineProperty(exports, "stopConsoleCapture", {
252
280
  enumerable: true,
253
- get: function () { return chunkIH7WXWX4_cjs.stopConsoleCapture; }
281
+ get: function () { return chunk42YQ4ATO_cjs.stopConsoleCapture; }
254
282
  });
255
283
  Object.defineProperty(exports, "stopNetworkCapture", {
256
284
  enumerable: true,
257
- get: function () { return chunkIH7WXWX4_cjs.stopNetworkCapture; }
285
+ get: function () { return chunk42YQ4ATO_cjs.stopNetworkCapture; }
258
286
  });
259
287
  Object.defineProperty(exports, "streamSSE", {
260
288
  enumerable: true,
261
- get: function () { return chunkIH7WXWX4_cjs.streamSSE; }
289
+ get: function () { return chunk42YQ4ATO_cjs.streamSSE; }
262
290
  });
263
291
  Object.defineProperty(exports, "success", {
264
292
  enumerable: true,
265
- get: function () { return chunkIH7WXWX4_cjs.success; }
293
+ get: function () { return chunk42YQ4ATO_cjs.success; }
266
294
  });
267
295
  Object.defineProperty(exports, "tool", {
268
296
  enumerable: true,
269
- get: function () { return chunkIH7WXWX4_cjs.tool; }
297
+ get: function () { return chunk42YQ4ATO_cjs.tool; }
270
298
  });
271
299
  Object.defineProperty(exports, "toolToAnthropicFormat", {
272
300
  enumerable: true,
273
- get: function () { return chunkIH7WXWX4_cjs.toolToAnthropicFormat; }
301
+ get: function () { return chunk42YQ4ATO_cjs.toolToAnthropicFormat; }
274
302
  });
275
303
  Object.defineProperty(exports, "toolToOpenAIFormat", {
276
304
  enumerable: true,
277
- get: function () { return chunkIH7WXWX4_cjs.toolToOpenAIFormat; }
305
+ get: function () { return chunk42YQ4ATO_cjs.toolToOpenAIFormat; }
278
306
  });
279
307
  Object.defineProperty(exports, "zodObjectToInputSchema", {
280
308
  enumerable: true,
281
- get: function () { return chunkIH7WXWX4_cjs.zodObjectToInputSchema; }
309
+ get: function () { return chunk42YQ4ATO_cjs.zodObjectToInputSchema; }
282
310
  });
283
311
  Object.defineProperty(exports, "zodToJsonSchema", {
284
312
  enumerable: true,
285
- get: function () { return chunkIH7WXWX4_cjs.zodToJsonSchema; }
313
+ get: function () { return chunk42YQ4ATO_cjs.zodToJsonSchema; }
286
314
  });
287
315
  //# sourceMappingURL=index.cjs.map
288
316
  //# sourceMappingURL=index.cjs.map
@@ -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, 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';
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
@@ -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, 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';
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
@@ -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-QWQELTEB.js';
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
@@ -1,137 +1,169 @@
1
1
  'use strict';
2
2
 
3
- var chunkR452HH3J_cjs = require('../chunk-R452HH3J.cjs');
4
- var chunkIH7WXWX4_cjs = require('../chunk-IH7WXWX4.cjs');
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 chunkR452HH3J_cjs.AbstractAgentLoop; }
10
+ get: function () { return chunkBN75ZW24_cjs.AbstractAgentLoop; }
11
11
  });
12
12
  Object.defineProperty(exports, "AbstractChat", {
13
13
  enumerable: true,
14
- get: function () { return chunkR452HH3J_cjs.AbstractChat; }
14
+ get: function () { return chunkBN75ZW24_cjs.AbstractChat; }
15
15
  });
16
16
  Object.defineProperty(exports, "CopilotProvider", {
17
17
  enumerable: true,
18
- get: function () { return chunkR452HH3J_cjs.CopilotProvider; }
18
+ get: function () { return chunkBN75ZW24_cjs.CopilotProvider; }
19
19
  });
20
20
  Object.defineProperty(exports, "ReactChat", {
21
21
  enumerable: true,
22
- get: function () { return chunkR452HH3J_cjs.ReactChat; }
22
+ get: function () { return chunkBN75ZW24_cjs.ReactChat; }
23
23
  });
24
24
  Object.defineProperty(exports, "ReactChatState", {
25
25
  enumerable: true,
26
- get: function () { return chunkR452HH3J_cjs.ReactChatState; }
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 chunkR452HH3J_cjs.createPermissionStorage; }
38
+ get: function () { return chunkBN75ZW24_cjs.createPermissionStorage; }
31
39
  });
32
40
  Object.defineProperty(exports, "createReactChat", {
33
41
  enumerable: true,
34
- get: function () { return chunkR452HH3J_cjs.createReactChat; }
42
+ get: function () { return chunkBN75ZW24_cjs.createReactChat; }
35
43
  });
36
44
  Object.defineProperty(exports, "createReactChatState", {
37
45
  enumerable: true,
38
- get: function () { return chunkR452HH3J_cjs.createReactChatState; }
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 chunkR452HH3J_cjs.createSessionPermissionCache; }
58
+ get: function () { return chunkBN75ZW24_cjs.createSessionPermissionCache; }
43
59
  });
44
60
  Object.defineProperty(exports, "formatKnowledgeResultsForAI", {
45
61
  enumerable: true,
46
- get: function () { return chunkR452HH3J_cjs.formatKnowledgeResultsForAI; }
62
+ get: function () { return chunkBN75ZW24_cjs.formatKnowledgeResultsForAI; }
47
63
  });
48
64
  Object.defineProperty(exports, "initialAgentLoopState", {
49
65
  enumerable: true,
50
- get: function () { return chunkR452HH3J_cjs.initialAgentLoopState; }
66
+ get: function () { return chunkBN75ZW24_cjs.initialAgentLoopState; }
51
67
  });
52
68
  Object.defineProperty(exports, "searchKnowledgeBase", {
53
69
  enumerable: true,
54
- get: function () { return chunkR452HH3J_cjs.searchKnowledgeBase; }
70
+ get: function () { return chunkBN75ZW24_cjs.searchKnowledgeBase; }
55
71
  });
56
72
  Object.defineProperty(exports, "useAIAction", {
57
73
  enumerable: true,
58
- get: function () { return chunkR452HH3J_cjs.useAIAction; }
74
+ get: function () { return chunkBN75ZW24_cjs.useAIAction; }
59
75
  });
60
76
  Object.defineProperty(exports, "useAIActions", {
61
77
  enumerable: true,
62
- get: function () { return chunkR452HH3J_cjs.useAIActions; }
78
+ get: function () { return chunkBN75ZW24_cjs.useAIActions; }
63
79
  });
64
80
  Object.defineProperty(exports, "useAIContext", {
65
81
  enumerable: true,
66
- get: function () { return chunkR452HH3J_cjs.useAIContext; }
82
+ get: function () { return chunkBN75ZW24_cjs.useAIContext; }
67
83
  });
68
84
  Object.defineProperty(exports, "useAIContexts", {
69
85
  enumerable: true,
70
- get: function () { return chunkR452HH3J_cjs.useAIContexts; }
86
+ get: function () { return chunkBN75ZW24_cjs.useAIContexts; }
71
87
  });
72
88
  Object.defineProperty(exports, "useAITools", {
73
89
  enumerable: true,
74
- get: function () { return chunkR452HH3J_cjs.useAITools; }
90
+ get: function () { return chunkBN75ZW24_cjs.useAITools; }
75
91
  });
76
92
  Object.defineProperty(exports, "useAgent", {
77
93
  enumerable: true,
78
- get: function () { return chunkR452HH3J_cjs.useAgent; }
94
+ get: function () { return chunkBN75ZW24_cjs.useAgent; }
79
95
  });
80
96
  Object.defineProperty(exports, "useCapabilities", {
81
97
  enumerable: true,
82
- get: function () { return chunkR452HH3J_cjs.useCapabilities; }
98
+ get: function () { return chunkBN75ZW24_cjs.useCapabilities; }
83
99
  });
84
100
  Object.defineProperty(exports, "useChat", {
85
101
  enumerable: true,
86
- get: function () { return chunkR452HH3J_cjs.useChat; }
102
+ get: function () { return chunkBN75ZW24_cjs.useChat; }
87
103
  });
88
104
  Object.defineProperty(exports, "useCopilot", {
89
105
  enumerable: true,
90
- get: function () { return chunkR452HH3J_cjs.useCopilot; }
106
+ get: function () { return chunkBN75ZW24_cjs.useCopilot; }
91
107
  });
92
108
  Object.defineProperty(exports, "useDevLogger", {
93
109
  enumerable: true,
94
- get: function () { return chunkR452HH3J_cjs.useDevLogger; }
110
+ get: function () { return chunkBN75ZW24_cjs.useDevLogger; }
95
111
  });
96
112
  Object.defineProperty(exports, "useFeatureSupport", {
97
113
  enumerable: true,
98
- get: function () { return chunkR452HH3J_cjs.useFeatureSupport; }
114
+ get: function () { return chunkBN75ZW24_cjs.useFeatureSupport; }
99
115
  });
100
116
  Object.defineProperty(exports, "useKnowledgeBase", {
101
117
  enumerable: true,
102
- get: function () { return chunkR452HH3J_cjs.useKnowledgeBase; }
118
+ get: function () { return chunkBN75ZW24_cjs.useKnowledgeBase; }
103
119
  });
104
120
  Object.defineProperty(exports, "useSuggestions", {
105
121
  enumerable: true,
106
- get: function () { return chunkR452HH3J_cjs.useSuggestions; }
122
+ get: function () { return chunkBN75ZW24_cjs.useSuggestions; }
107
123
  });
108
124
  Object.defineProperty(exports, "useSupportedMediaTypes", {
109
125
  enumerable: true,
110
- get: function () { return chunkR452HH3J_cjs.useSupportedMediaTypes; }
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 chunkR452HH3J_cjs.useTool; }
134
+ get: function () { return chunkBN75ZW24_cjs.useTool; }
115
135
  });
116
136
  Object.defineProperty(exports, "useToolExecutor", {
117
137
  enumerable: true,
118
- get: function () { return chunkR452HH3J_cjs.useToolExecutor; }
138
+ get: function () { return chunkBN75ZW24_cjs.useToolExecutor; }
119
139
  });
120
140
  Object.defineProperty(exports, "useToolWithSchema", {
121
141
  enumerable: true,
122
- get: function () { return chunkR452HH3J_cjs.useToolWithSchema; }
142
+ get: function () { return chunkBN75ZW24_cjs.useToolWithSchema; }
123
143
  });
124
144
  Object.defineProperty(exports, "useTools", {
125
145
  enumerable: true,
126
- get: function () { return chunkR452HH3J_cjs.useTools; }
146
+ get: function () { return chunkBN75ZW24_cjs.useTools; }
127
147
  });
128
148
  Object.defineProperty(exports, "useToolsWithSchema", {
129
149
  enumerable: true,
130
- get: function () { return chunkR452HH3J_cjs.useToolsWithSchema; }
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 chunkIH7WXWX4_cjs.generateSuggestionReason; }
166
+ get: function () { return chunk42YQ4ATO_cjs.generateSuggestionReason; }
135
167
  });
136
168
  //# sourceMappingURL=index.cjs.map
137
169
  //# sourceMappingURL=index.cjs.map