@deepagents/toolbox 7.0.1 → 7.1.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.
- package/dist/index.js +127 -90
- package/dist/index.js.map +4 -4
- package/dist/lib/container.d.ts +4 -0
- package/dist/lib/container.d.ts.map +1 -1
- package/dist/lib/ddg-search.d.ts +4 -0
- package/dist/lib/ddg-search.d.ts.map +1 -1
- package/dist/lib/ddg-search.js +7 -2
- package/dist/lib/ddg-search.js.map +2 -2
- package/dist/lib/ddg-stocks.d.ts +4 -0
- package/dist/lib/ddg-stocks.d.ts.map +1 -1
- package/dist/lib/filesystem.d.ts +175 -150
- package/dist/lib/filesystem.d.ts.map +1 -1
- package/dist/lib/filesystem.js +12 -21
- package/dist/lib/filesystem.js.map +3 -3
- package/dist/lib/hackernews-search.d.ts +916 -775
- package/dist/lib/hackernews-search.d.ts.map +1 -1
- package/dist/lib/hackernews-search.js +78 -64
- package/dist/lib/hackernews-search.js.map +3 -3
- package/dist/lib/scratchbad.d.ts +95 -30
- package/dist/lib/scratchbad.d.ts.map +1 -1
- package/dist/lib/scratchbad.js +1 -9
- package/dist/lib/scratchbad.js.map +3 -3
- package/dist/lib/user-story-formatter.d.ts +122 -30
- package/dist/lib/user-story-formatter.d.ts.map +1 -1
- package/dist/lib/user-story-formatter.js +1 -9
- package/dist/lib/user-story-formatter.js.map +3 -3
- package/dist/lib/weather.d.ts +4 -0
- package/dist/lib/weather.d.ts.map +1 -1
- package/dist/lib/weather.js +28 -6
- package/dist/lib/weather.js.map +2 -2
- package/dist/lib/web-search.d.ts +4 -0
- package/dist/lib/web-search.d.ts.map +1 -1
- package/dist/lib/web-search.js +7 -2
- package/dist/lib/web-search.js.map +2 -2
- package/package.json +5 -6
- package/dist/lib/state.d.ts +0 -3
- package/dist/lib/state.d.ts.map +0 -1
- package/dist/lib/state.js +0 -8
- package/dist/lib/state.js.map +0 -7
package/dist/lib/filesystem.d.ts
CHANGED
|
@@ -1,4 +1,10 @@
|
|
|
1
|
+
import { type ToolExecutionOptions } from 'ai';
|
|
2
|
+
/** Tool context: the repository the file tools read from. */
|
|
3
|
+
export type RepoContext = {
|
|
4
|
+
repo_path: string;
|
|
5
|
+
};
|
|
1
6
|
export declare const read_file_tool: ({
|
|
7
|
+
deferLoading?: boolean;
|
|
2
8
|
title?: string;
|
|
3
9
|
providerOptions?: import("@ai-sdk/provider-utils").ProviderOptions;
|
|
4
10
|
metadata?: import("@ai-sdk/provider").JSONObject;
|
|
@@ -7,23 +13,23 @@ export declare const read_file_tool: ({
|
|
|
7
13
|
lineStart?: number | undefined;
|
|
8
14
|
lineEnd?: number | undefined;
|
|
9
15
|
}>;
|
|
10
|
-
contextSchema?: import("ai").FlexibleSchema<
|
|
16
|
+
contextSchema?: import("ai").FlexibleSchema<RepoContext> | undefined;
|
|
11
17
|
needsApproval?: boolean | import("@ai-sdk/provider-utils").ToolNeedsApprovalFunction<{
|
|
12
18
|
filePath: string;
|
|
13
19
|
lineStart?: number | undefined;
|
|
14
20
|
lineEnd?: number | undefined;
|
|
15
|
-
}, NoInfer<
|
|
16
|
-
onInputStart?: ((options:
|
|
21
|
+
}, NoInfer<RepoContext>> | undefined;
|
|
22
|
+
onInputStart?: ((options: ToolExecutionOptions<NoInfer<RepoContext>>) => void | PromiseLike<void>) | undefined;
|
|
17
23
|
onInputDelta?: ((options: {
|
|
18
24
|
inputTextDelta: string;
|
|
19
|
-
} &
|
|
25
|
+
} & ToolExecutionOptions<NoInfer<RepoContext>>) => void | PromiseLike<void>) | undefined;
|
|
20
26
|
onInputAvailable?: ((options: {
|
|
21
27
|
input: {
|
|
22
28
|
filePath: string;
|
|
23
29
|
lineStart?: number | undefined;
|
|
24
30
|
lineEnd?: number | undefined;
|
|
25
31
|
};
|
|
26
|
-
} &
|
|
32
|
+
} & ToolExecutionOptions<NoInfer<RepoContext>>) => void | PromiseLike<void>) | undefined;
|
|
27
33
|
toModelOutput?: ((options: {
|
|
28
34
|
toolCallId: string;
|
|
29
35
|
input: {
|
|
@@ -39,10 +45,10 @@ export declare const read_file_tool: ({
|
|
|
39
45
|
filePath: string;
|
|
40
46
|
lineStart?: number | undefined;
|
|
41
47
|
lineEnd?: number | undefined;
|
|
42
|
-
}, string, NoInfer<
|
|
48
|
+
}, string, NoInfer<RepoContext>>;
|
|
43
49
|
} & {
|
|
44
50
|
description?: string | ((options: {
|
|
45
|
-
context: NoInfer<
|
|
51
|
+
context: NoInfer<RepoContext>;
|
|
46
52
|
experimental_sandbox?: import("ai").Experimental_SandboxSession;
|
|
47
53
|
}) => string) | undefined;
|
|
48
54
|
strict?: boolean;
|
|
@@ -64,8 +70,9 @@ export declare const read_file_tool: ({
|
|
|
64
70
|
filePath: string;
|
|
65
71
|
lineStart?: number | undefined;
|
|
66
72
|
lineEnd?: number | undefined;
|
|
67
|
-
}, string, NoInfer<
|
|
73
|
+
}, string, NoInfer<RepoContext>>;
|
|
68
74
|
}) | ({
|
|
75
|
+
deferLoading?: boolean;
|
|
69
76
|
title?: string;
|
|
70
77
|
providerOptions?: import("@ai-sdk/provider-utils").ProviderOptions;
|
|
71
78
|
metadata?: import("@ai-sdk/provider").JSONObject;
|
|
@@ -74,23 +81,23 @@ export declare const read_file_tool: ({
|
|
|
74
81
|
lineStart?: number | undefined;
|
|
75
82
|
lineEnd?: number | undefined;
|
|
76
83
|
}>;
|
|
77
|
-
contextSchema?: import("ai").FlexibleSchema<
|
|
84
|
+
contextSchema?: import("ai").FlexibleSchema<RepoContext> | undefined;
|
|
78
85
|
needsApproval?: boolean | import("@ai-sdk/provider-utils").ToolNeedsApprovalFunction<{
|
|
79
86
|
filePath: string;
|
|
80
87
|
lineStart?: number | undefined;
|
|
81
88
|
lineEnd?: number | undefined;
|
|
82
|
-
}, NoInfer<
|
|
83
|
-
onInputStart?: ((options:
|
|
89
|
+
}, NoInfer<RepoContext>> | undefined;
|
|
90
|
+
onInputStart?: ((options: ToolExecutionOptions<NoInfer<RepoContext>>) => void | PromiseLike<void>) | undefined;
|
|
84
91
|
onInputDelta?: ((options: {
|
|
85
92
|
inputTextDelta: string;
|
|
86
|
-
} &
|
|
93
|
+
} & ToolExecutionOptions<NoInfer<RepoContext>>) => void | PromiseLike<void>) | undefined;
|
|
87
94
|
onInputAvailable?: ((options: {
|
|
88
95
|
input: {
|
|
89
96
|
filePath: string;
|
|
90
97
|
lineStart?: number | undefined;
|
|
91
98
|
lineEnd?: number | undefined;
|
|
92
99
|
};
|
|
93
|
-
} &
|
|
100
|
+
} & ToolExecutionOptions<NoInfer<RepoContext>>) => void | PromiseLike<void>) | undefined;
|
|
94
101
|
toModelOutput?: ((options: {
|
|
95
102
|
toolCallId: string;
|
|
96
103
|
input: {
|
|
@@ -106,10 +113,10 @@ export declare const read_file_tool: ({
|
|
|
106
113
|
filePath: string;
|
|
107
114
|
lineStart?: number | undefined;
|
|
108
115
|
lineEnd?: number | undefined;
|
|
109
|
-
}, string, NoInfer<
|
|
116
|
+
}, string, NoInfer<RepoContext>>;
|
|
110
117
|
} & {
|
|
111
118
|
description?: string | ((options: {
|
|
112
|
-
context: NoInfer<
|
|
119
|
+
context: NoInfer<RepoContext>;
|
|
113
120
|
experimental_sandbox?: import("ai").Experimental_SandboxSession;
|
|
114
121
|
}) => string) | undefined;
|
|
115
122
|
strict?: boolean;
|
|
@@ -131,8 +138,9 @@ export declare const read_file_tool: ({
|
|
|
131
138
|
filePath: string;
|
|
132
139
|
lineStart?: number | undefined;
|
|
133
140
|
lineEnd?: number | undefined;
|
|
134
|
-
}, string, NoInfer<
|
|
141
|
+
}, string, NoInfer<RepoContext>>;
|
|
135
142
|
}) | ({
|
|
143
|
+
deferLoading?: boolean;
|
|
136
144
|
title?: string;
|
|
137
145
|
providerOptions?: import("@ai-sdk/provider-utils").ProviderOptions;
|
|
138
146
|
metadata?: import("@ai-sdk/provider").JSONObject;
|
|
@@ -141,23 +149,23 @@ export declare const read_file_tool: ({
|
|
|
141
149
|
lineStart?: number | undefined;
|
|
142
150
|
lineEnd?: number | undefined;
|
|
143
151
|
}>;
|
|
144
|
-
contextSchema?: import("ai").FlexibleSchema<
|
|
152
|
+
contextSchema?: import("ai").FlexibleSchema<RepoContext> | undefined;
|
|
145
153
|
needsApproval?: boolean | import("@ai-sdk/provider-utils").ToolNeedsApprovalFunction<{
|
|
146
154
|
filePath: string;
|
|
147
155
|
lineStart?: number | undefined;
|
|
148
156
|
lineEnd?: number | undefined;
|
|
149
|
-
}, NoInfer<
|
|
150
|
-
onInputStart?: ((options:
|
|
157
|
+
}, NoInfer<RepoContext>> | undefined;
|
|
158
|
+
onInputStart?: ((options: ToolExecutionOptions<NoInfer<RepoContext>>) => void | PromiseLike<void>) | undefined;
|
|
151
159
|
onInputDelta?: ((options: {
|
|
152
160
|
inputTextDelta: string;
|
|
153
|
-
} &
|
|
161
|
+
} & ToolExecutionOptions<NoInfer<RepoContext>>) => void | PromiseLike<void>) | undefined;
|
|
154
162
|
onInputAvailable?: ((options: {
|
|
155
163
|
input: {
|
|
156
164
|
filePath: string;
|
|
157
165
|
lineStart?: number | undefined;
|
|
158
166
|
lineEnd?: number | undefined;
|
|
159
167
|
};
|
|
160
|
-
} &
|
|
168
|
+
} & ToolExecutionOptions<NoInfer<RepoContext>>) => void | PromiseLike<void>) | undefined;
|
|
161
169
|
toModelOutput?: ((options: {
|
|
162
170
|
toolCallId: string;
|
|
163
171
|
input: {
|
|
@@ -173,7 +181,7 @@ export declare const read_file_tool: ({
|
|
|
173
181
|
filePath: string;
|
|
174
182
|
lineStart?: number | undefined;
|
|
175
183
|
lineEnd?: number | undefined;
|
|
176
|
-
}, string, NoInfer<
|
|
184
|
+
}, string, NoInfer<RepoContext>>;
|
|
177
185
|
} & {
|
|
178
186
|
type: "provider";
|
|
179
187
|
id: `${string}.${string}`;
|
|
@@ -189,8 +197,9 @@ export declare const read_file_tool: ({
|
|
|
189
197
|
filePath: string;
|
|
190
198
|
lineStart?: number | undefined;
|
|
191
199
|
lineEnd?: number | undefined;
|
|
192
|
-
}, string, NoInfer<
|
|
200
|
+
}, string, NoInfer<RepoContext>>;
|
|
193
201
|
}) | ({
|
|
202
|
+
deferLoading?: boolean;
|
|
194
203
|
title?: string;
|
|
195
204
|
providerOptions?: import("@ai-sdk/provider-utils").ProviderOptions;
|
|
196
205
|
metadata?: import("@ai-sdk/provider").JSONObject;
|
|
@@ -199,23 +208,23 @@ export declare const read_file_tool: ({
|
|
|
199
208
|
lineStart?: number | undefined;
|
|
200
209
|
lineEnd?: number | undefined;
|
|
201
210
|
}>;
|
|
202
|
-
contextSchema?: import("ai").FlexibleSchema<
|
|
211
|
+
contextSchema?: import("ai").FlexibleSchema<RepoContext> | undefined;
|
|
203
212
|
needsApproval?: boolean | import("@ai-sdk/provider-utils").ToolNeedsApprovalFunction<{
|
|
204
213
|
filePath: string;
|
|
205
214
|
lineStart?: number | undefined;
|
|
206
215
|
lineEnd?: number | undefined;
|
|
207
|
-
}, NoInfer<
|
|
208
|
-
onInputStart?: ((options:
|
|
216
|
+
}, NoInfer<RepoContext>> | undefined;
|
|
217
|
+
onInputStart?: ((options: ToolExecutionOptions<NoInfer<RepoContext>>) => void | PromiseLike<void>) | undefined;
|
|
209
218
|
onInputDelta?: ((options: {
|
|
210
219
|
inputTextDelta: string;
|
|
211
|
-
} &
|
|
220
|
+
} & ToolExecutionOptions<NoInfer<RepoContext>>) => void | PromiseLike<void>) | undefined;
|
|
212
221
|
onInputAvailable?: ((options: {
|
|
213
222
|
input: {
|
|
214
223
|
filePath: string;
|
|
215
224
|
lineStart?: number | undefined;
|
|
216
225
|
lineEnd?: number | undefined;
|
|
217
226
|
};
|
|
218
|
-
} &
|
|
227
|
+
} & ToolExecutionOptions<NoInfer<RepoContext>>) => void | PromiseLike<void>) | undefined;
|
|
219
228
|
toModelOutput?: ((options: {
|
|
220
229
|
toolCallId: string;
|
|
221
230
|
input: {
|
|
@@ -231,7 +240,7 @@ export declare const read_file_tool: ({
|
|
|
231
240
|
filePath: string;
|
|
232
241
|
lineStart?: number | undefined;
|
|
233
242
|
lineEnd?: number | undefined;
|
|
234
|
-
}, string, NoInfer<
|
|
243
|
+
}, string, NoInfer<RepoContext>>;
|
|
235
244
|
} & {
|
|
236
245
|
type: "provider";
|
|
237
246
|
id: `${string}.${string}`;
|
|
@@ -247,28 +256,29 @@ export declare const read_file_tool: ({
|
|
|
247
256
|
filePath: string;
|
|
248
257
|
lineStart?: number | undefined;
|
|
249
258
|
lineEnd?: number | undefined;
|
|
250
|
-
}, string, NoInfer<
|
|
259
|
+
}, string, NoInfer<RepoContext>>;
|
|
251
260
|
});
|
|
252
261
|
export declare const read_dir_tool: ({
|
|
262
|
+
deferLoading?: boolean;
|
|
253
263
|
title?: string;
|
|
254
264
|
providerOptions?: import("@ai-sdk/provider-utils").ProviderOptions;
|
|
255
265
|
metadata?: import("@ai-sdk/provider").JSONObject;
|
|
256
266
|
inputSchema: import("ai").FlexibleSchema<{
|
|
257
267
|
dir_path: string;
|
|
258
268
|
}>;
|
|
259
|
-
contextSchema?: import("ai").FlexibleSchema<
|
|
269
|
+
contextSchema?: import("ai").FlexibleSchema<RepoContext> | undefined;
|
|
260
270
|
needsApproval?: boolean | import("@ai-sdk/provider-utils").ToolNeedsApprovalFunction<{
|
|
261
271
|
dir_path: string;
|
|
262
|
-
}, NoInfer<
|
|
263
|
-
onInputStart?: ((options:
|
|
272
|
+
}, NoInfer<RepoContext>> | undefined;
|
|
273
|
+
onInputStart?: ((options: ToolExecutionOptions<NoInfer<RepoContext>>) => void | PromiseLike<void>) | undefined;
|
|
264
274
|
onInputDelta?: ((options: {
|
|
265
275
|
inputTextDelta: string;
|
|
266
|
-
} &
|
|
276
|
+
} & ToolExecutionOptions<NoInfer<RepoContext>>) => void | PromiseLike<void>) | undefined;
|
|
267
277
|
onInputAvailable?: ((options: {
|
|
268
278
|
input: {
|
|
269
279
|
dir_path: string;
|
|
270
280
|
};
|
|
271
|
-
} &
|
|
281
|
+
} & ToolExecutionOptions<NoInfer<RepoContext>>) => void | PromiseLike<void>) | undefined;
|
|
272
282
|
toModelOutput?: ((options: {
|
|
273
283
|
toolCallId: string;
|
|
274
284
|
input: {
|
|
@@ -280,10 +290,10 @@ export declare const read_dir_tool: ({
|
|
|
280
290
|
outputSchema?: import("ai").FlexibleSchema<string[]> | undefined;
|
|
281
291
|
execute: import("ai").ToolExecuteFunction<{
|
|
282
292
|
dir_path: string;
|
|
283
|
-
}, string[], NoInfer<
|
|
293
|
+
}, string[], NoInfer<RepoContext>>;
|
|
284
294
|
} & {
|
|
285
295
|
description?: string | ((options: {
|
|
286
|
-
context: NoInfer<
|
|
296
|
+
context: NoInfer<RepoContext>;
|
|
287
297
|
experimental_sandbox?: import("ai").Experimental_SandboxSession;
|
|
288
298
|
}) => string) | undefined;
|
|
289
299
|
strict?: boolean;
|
|
@@ -301,27 +311,28 @@ export declare const read_dir_tool: ({
|
|
|
301
311
|
} & {
|
|
302
312
|
execute: import("ai").ToolExecuteFunction<{
|
|
303
313
|
dir_path: string;
|
|
304
|
-
}, string[], NoInfer<
|
|
314
|
+
}, string[], NoInfer<RepoContext>>;
|
|
305
315
|
}) | ({
|
|
316
|
+
deferLoading?: boolean;
|
|
306
317
|
title?: string;
|
|
307
318
|
providerOptions?: import("@ai-sdk/provider-utils").ProviderOptions;
|
|
308
319
|
metadata?: import("@ai-sdk/provider").JSONObject;
|
|
309
320
|
inputSchema: import("ai").FlexibleSchema<{
|
|
310
321
|
dir_path: string;
|
|
311
322
|
}>;
|
|
312
|
-
contextSchema?: import("ai").FlexibleSchema<
|
|
323
|
+
contextSchema?: import("ai").FlexibleSchema<RepoContext> | undefined;
|
|
313
324
|
needsApproval?: boolean | import("@ai-sdk/provider-utils").ToolNeedsApprovalFunction<{
|
|
314
325
|
dir_path: string;
|
|
315
|
-
}, NoInfer<
|
|
316
|
-
onInputStart?: ((options:
|
|
326
|
+
}, NoInfer<RepoContext>> | undefined;
|
|
327
|
+
onInputStart?: ((options: ToolExecutionOptions<NoInfer<RepoContext>>) => void | PromiseLike<void>) | undefined;
|
|
317
328
|
onInputDelta?: ((options: {
|
|
318
329
|
inputTextDelta: string;
|
|
319
|
-
} &
|
|
330
|
+
} & ToolExecutionOptions<NoInfer<RepoContext>>) => void | PromiseLike<void>) | undefined;
|
|
320
331
|
onInputAvailable?: ((options: {
|
|
321
332
|
input: {
|
|
322
333
|
dir_path: string;
|
|
323
334
|
};
|
|
324
|
-
} &
|
|
335
|
+
} & ToolExecutionOptions<NoInfer<RepoContext>>) => void | PromiseLike<void>) | undefined;
|
|
325
336
|
toModelOutput?: ((options: {
|
|
326
337
|
toolCallId: string;
|
|
327
338
|
input: {
|
|
@@ -333,10 +344,10 @@ export declare const read_dir_tool: ({
|
|
|
333
344
|
outputSchema?: import("ai").FlexibleSchema<string[]> | undefined;
|
|
334
345
|
execute: import("ai").ToolExecuteFunction<{
|
|
335
346
|
dir_path: string;
|
|
336
|
-
}, string[], NoInfer<
|
|
347
|
+
}, string[], NoInfer<RepoContext>>;
|
|
337
348
|
} & {
|
|
338
349
|
description?: string | ((options: {
|
|
339
|
-
context: NoInfer<
|
|
350
|
+
context: NoInfer<RepoContext>;
|
|
340
351
|
experimental_sandbox?: import("ai").Experimental_SandboxSession;
|
|
341
352
|
}) => string) | undefined;
|
|
342
353
|
strict?: boolean;
|
|
@@ -354,27 +365,28 @@ export declare const read_dir_tool: ({
|
|
|
354
365
|
} & {
|
|
355
366
|
execute: import("ai").ToolExecuteFunction<{
|
|
356
367
|
dir_path: string;
|
|
357
|
-
}, string[], NoInfer<
|
|
368
|
+
}, string[], NoInfer<RepoContext>>;
|
|
358
369
|
}) | ({
|
|
370
|
+
deferLoading?: boolean;
|
|
359
371
|
title?: string;
|
|
360
372
|
providerOptions?: import("@ai-sdk/provider-utils").ProviderOptions;
|
|
361
373
|
metadata?: import("@ai-sdk/provider").JSONObject;
|
|
362
374
|
inputSchema: import("ai").FlexibleSchema<{
|
|
363
375
|
dir_path: string;
|
|
364
376
|
}>;
|
|
365
|
-
contextSchema?: import("ai").FlexibleSchema<
|
|
377
|
+
contextSchema?: import("ai").FlexibleSchema<RepoContext> | undefined;
|
|
366
378
|
needsApproval?: boolean | import("@ai-sdk/provider-utils").ToolNeedsApprovalFunction<{
|
|
367
379
|
dir_path: string;
|
|
368
|
-
}, NoInfer<
|
|
369
|
-
onInputStart?: ((options:
|
|
380
|
+
}, NoInfer<RepoContext>> | undefined;
|
|
381
|
+
onInputStart?: ((options: ToolExecutionOptions<NoInfer<RepoContext>>) => void | PromiseLike<void>) | undefined;
|
|
370
382
|
onInputDelta?: ((options: {
|
|
371
383
|
inputTextDelta: string;
|
|
372
|
-
} &
|
|
384
|
+
} & ToolExecutionOptions<NoInfer<RepoContext>>) => void | PromiseLike<void>) | undefined;
|
|
373
385
|
onInputAvailable?: ((options: {
|
|
374
386
|
input: {
|
|
375
387
|
dir_path: string;
|
|
376
388
|
};
|
|
377
|
-
} &
|
|
389
|
+
} & ToolExecutionOptions<NoInfer<RepoContext>>) => void | PromiseLike<void>) | undefined;
|
|
378
390
|
toModelOutput?: ((options: {
|
|
379
391
|
toolCallId: string;
|
|
380
392
|
input: {
|
|
@@ -386,7 +398,7 @@ export declare const read_dir_tool: ({
|
|
|
386
398
|
outputSchema?: import("ai").FlexibleSchema<string[]> | undefined;
|
|
387
399
|
execute: import("ai").ToolExecuteFunction<{
|
|
388
400
|
dir_path: string;
|
|
389
|
-
}, string[], NoInfer<
|
|
401
|
+
}, string[], NoInfer<RepoContext>>;
|
|
390
402
|
} & {
|
|
391
403
|
type: "provider";
|
|
392
404
|
id: `${string}.${string}`;
|
|
@@ -400,27 +412,28 @@ export declare const read_dir_tool: ({
|
|
|
400
412
|
} & {
|
|
401
413
|
execute: import("ai").ToolExecuteFunction<{
|
|
402
414
|
dir_path: string;
|
|
403
|
-
}, string[], NoInfer<
|
|
415
|
+
}, string[], NoInfer<RepoContext>>;
|
|
404
416
|
}) | ({
|
|
417
|
+
deferLoading?: boolean;
|
|
405
418
|
title?: string;
|
|
406
419
|
providerOptions?: import("@ai-sdk/provider-utils").ProviderOptions;
|
|
407
420
|
metadata?: import("@ai-sdk/provider").JSONObject;
|
|
408
421
|
inputSchema: import("ai").FlexibleSchema<{
|
|
409
422
|
dir_path: string;
|
|
410
423
|
}>;
|
|
411
|
-
contextSchema?: import("ai").FlexibleSchema<
|
|
424
|
+
contextSchema?: import("ai").FlexibleSchema<RepoContext> | undefined;
|
|
412
425
|
needsApproval?: boolean | import("@ai-sdk/provider-utils").ToolNeedsApprovalFunction<{
|
|
413
426
|
dir_path: string;
|
|
414
|
-
}, NoInfer<
|
|
415
|
-
onInputStart?: ((options:
|
|
427
|
+
}, NoInfer<RepoContext>> | undefined;
|
|
428
|
+
onInputStart?: ((options: ToolExecutionOptions<NoInfer<RepoContext>>) => void | PromiseLike<void>) | undefined;
|
|
416
429
|
onInputDelta?: ((options: {
|
|
417
430
|
inputTextDelta: string;
|
|
418
|
-
} &
|
|
431
|
+
} & ToolExecutionOptions<NoInfer<RepoContext>>) => void | PromiseLike<void>) | undefined;
|
|
419
432
|
onInputAvailable?: ((options: {
|
|
420
433
|
input: {
|
|
421
434
|
dir_path: string;
|
|
422
435
|
};
|
|
423
|
-
} &
|
|
436
|
+
} & ToolExecutionOptions<NoInfer<RepoContext>>) => void | PromiseLike<void>) | undefined;
|
|
424
437
|
toModelOutput?: ((options: {
|
|
425
438
|
toolCallId: string;
|
|
426
439
|
input: {
|
|
@@ -432,7 +445,7 @@ export declare const read_dir_tool: ({
|
|
|
432
445
|
outputSchema?: import("ai").FlexibleSchema<string[]> | undefined;
|
|
433
446
|
execute: import("ai").ToolExecuteFunction<{
|
|
434
447
|
dir_path: string;
|
|
435
|
-
}, string[], NoInfer<
|
|
448
|
+
}, string[], NoInfer<RepoContext>>;
|
|
436
449
|
} & {
|
|
437
450
|
type: "provider";
|
|
438
451
|
id: `${string}.${string}`;
|
|
@@ -446,28 +459,29 @@ export declare const read_dir_tool: ({
|
|
|
446
459
|
} & {
|
|
447
460
|
execute: import("ai").ToolExecuteFunction<{
|
|
448
461
|
dir_path: string;
|
|
449
|
-
}, string[], NoInfer<
|
|
462
|
+
}, string[], NoInfer<RepoContext>>;
|
|
450
463
|
});
|
|
451
464
|
export declare const glob_tool: ({
|
|
465
|
+
deferLoading?: boolean;
|
|
452
466
|
title?: string;
|
|
453
467
|
providerOptions?: import("@ai-sdk/provider-utils").ProviderOptions;
|
|
454
468
|
metadata?: import("@ai-sdk/provider").JSONObject;
|
|
455
469
|
inputSchema: import("ai").FlexibleSchema<{
|
|
456
470
|
pattern: string;
|
|
457
471
|
}>;
|
|
458
|
-
contextSchema?: import("ai").FlexibleSchema<
|
|
472
|
+
contextSchema?: import("ai").FlexibleSchema<RepoContext> | undefined;
|
|
459
473
|
needsApproval?: boolean | import("@ai-sdk/provider-utils").ToolNeedsApprovalFunction<{
|
|
460
474
|
pattern: string;
|
|
461
|
-
}, NoInfer<
|
|
462
|
-
onInputStart?: ((options:
|
|
475
|
+
}, NoInfer<RepoContext>> | undefined;
|
|
476
|
+
onInputStart?: ((options: ToolExecutionOptions<NoInfer<RepoContext>>) => void | PromiseLike<void>) | undefined;
|
|
463
477
|
onInputDelta?: ((options: {
|
|
464
478
|
inputTextDelta: string;
|
|
465
|
-
} &
|
|
479
|
+
} & ToolExecutionOptions<NoInfer<RepoContext>>) => void | PromiseLike<void>) | undefined;
|
|
466
480
|
onInputAvailable?: ((options: {
|
|
467
481
|
input: {
|
|
468
482
|
pattern: string;
|
|
469
483
|
};
|
|
470
|
-
} &
|
|
484
|
+
} & ToolExecutionOptions<NoInfer<RepoContext>>) => void | PromiseLike<void>) | undefined;
|
|
471
485
|
toModelOutput?: ((options: {
|
|
472
486
|
toolCallId: string;
|
|
473
487
|
input: {
|
|
@@ -479,10 +493,10 @@ export declare const glob_tool: ({
|
|
|
479
493
|
outputSchema?: import("ai").FlexibleSchema<string[]> | undefined;
|
|
480
494
|
execute: import("ai").ToolExecuteFunction<{
|
|
481
495
|
pattern: string;
|
|
482
|
-
}, string[], NoInfer<
|
|
496
|
+
}, string[], NoInfer<RepoContext>>;
|
|
483
497
|
} & {
|
|
484
498
|
description?: string | ((options: {
|
|
485
|
-
context: NoInfer<
|
|
499
|
+
context: NoInfer<RepoContext>;
|
|
486
500
|
experimental_sandbox?: import("ai").Experimental_SandboxSession;
|
|
487
501
|
}) => string) | undefined;
|
|
488
502
|
strict?: boolean;
|
|
@@ -500,27 +514,28 @@ export declare const glob_tool: ({
|
|
|
500
514
|
} & {
|
|
501
515
|
execute: import("ai").ToolExecuteFunction<{
|
|
502
516
|
pattern: string;
|
|
503
|
-
}, string[], NoInfer<
|
|
517
|
+
}, string[], NoInfer<RepoContext>>;
|
|
504
518
|
}) | ({
|
|
519
|
+
deferLoading?: boolean;
|
|
505
520
|
title?: string;
|
|
506
521
|
providerOptions?: import("@ai-sdk/provider-utils").ProviderOptions;
|
|
507
522
|
metadata?: import("@ai-sdk/provider").JSONObject;
|
|
508
523
|
inputSchema: import("ai").FlexibleSchema<{
|
|
509
524
|
pattern: string;
|
|
510
525
|
}>;
|
|
511
|
-
contextSchema?: import("ai").FlexibleSchema<
|
|
526
|
+
contextSchema?: import("ai").FlexibleSchema<RepoContext> | undefined;
|
|
512
527
|
needsApproval?: boolean | import("@ai-sdk/provider-utils").ToolNeedsApprovalFunction<{
|
|
513
528
|
pattern: string;
|
|
514
|
-
}, NoInfer<
|
|
515
|
-
onInputStart?: ((options:
|
|
529
|
+
}, NoInfer<RepoContext>> | undefined;
|
|
530
|
+
onInputStart?: ((options: ToolExecutionOptions<NoInfer<RepoContext>>) => void | PromiseLike<void>) | undefined;
|
|
516
531
|
onInputDelta?: ((options: {
|
|
517
532
|
inputTextDelta: string;
|
|
518
|
-
} &
|
|
533
|
+
} & ToolExecutionOptions<NoInfer<RepoContext>>) => void | PromiseLike<void>) | undefined;
|
|
519
534
|
onInputAvailable?: ((options: {
|
|
520
535
|
input: {
|
|
521
536
|
pattern: string;
|
|
522
537
|
};
|
|
523
|
-
} &
|
|
538
|
+
} & ToolExecutionOptions<NoInfer<RepoContext>>) => void | PromiseLike<void>) | undefined;
|
|
524
539
|
toModelOutput?: ((options: {
|
|
525
540
|
toolCallId: string;
|
|
526
541
|
input: {
|
|
@@ -532,10 +547,10 @@ export declare const glob_tool: ({
|
|
|
532
547
|
outputSchema?: import("ai").FlexibleSchema<string[]> | undefined;
|
|
533
548
|
execute: import("ai").ToolExecuteFunction<{
|
|
534
549
|
pattern: string;
|
|
535
|
-
}, string[], NoInfer<
|
|
550
|
+
}, string[], NoInfer<RepoContext>>;
|
|
536
551
|
} & {
|
|
537
552
|
description?: string | ((options: {
|
|
538
|
-
context: NoInfer<
|
|
553
|
+
context: NoInfer<RepoContext>;
|
|
539
554
|
experimental_sandbox?: import("ai").Experimental_SandboxSession;
|
|
540
555
|
}) => string) | undefined;
|
|
541
556
|
strict?: boolean;
|
|
@@ -553,27 +568,28 @@ export declare const glob_tool: ({
|
|
|
553
568
|
} & {
|
|
554
569
|
execute: import("ai").ToolExecuteFunction<{
|
|
555
570
|
pattern: string;
|
|
556
|
-
}, string[], NoInfer<
|
|
571
|
+
}, string[], NoInfer<RepoContext>>;
|
|
557
572
|
}) | ({
|
|
573
|
+
deferLoading?: boolean;
|
|
558
574
|
title?: string;
|
|
559
575
|
providerOptions?: import("@ai-sdk/provider-utils").ProviderOptions;
|
|
560
576
|
metadata?: import("@ai-sdk/provider").JSONObject;
|
|
561
577
|
inputSchema: import("ai").FlexibleSchema<{
|
|
562
578
|
pattern: string;
|
|
563
579
|
}>;
|
|
564
|
-
contextSchema?: import("ai").FlexibleSchema<
|
|
580
|
+
contextSchema?: import("ai").FlexibleSchema<RepoContext> | undefined;
|
|
565
581
|
needsApproval?: boolean | import("@ai-sdk/provider-utils").ToolNeedsApprovalFunction<{
|
|
566
582
|
pattern: string;
|
|
567
|
-
}, NoInfer<
|
|
568
|
-
onInputStart?: ((options:
|
|
583
|
+
}, NoInfer<RepoContext>> | undefined;
|
|
584
|
+
onInputStart?: ((options: ToolExecutionOptions<NoInfer<RepoContext>>) => void | PromiseLike<void>) | undefined;
|
|
569
585
|
onInputDelta?: ((options: {
|
|
570
586
|
inputTextDelta: string;
|
|
571
|
-
} &
|
|
587
|
+
} & ToolExecutionOptions<NoInfer<RepoContext>>) => void | PromiseLike<void>) | undefined;
|
|
572
588
|
onInputAvailable?: ((options: {
|
|
573
589
|
input: {
|
|
574
590
|
pattern: string;
|
|
575
591
|
};
|
|
576
|
-
} &
|
|
592
|
+
} & ToolExecutionOptions<NoInfer<RepoContext>>) => void | PromiseLike<void>) | undefined;
|
|
577
593
|
toModelOutput?: ((options: {
|
|
578
594
|
toolCallId: string;
|
|
579
595
|
input: {
|
|
@@ -585,7 +601,7 @@ export declare const glob_tool: ({
|
|
|
585
601
|
outputSchema?: import("ai").FlexibleSchema<string[]> | undefined;
|
|
586
602
|
execute: import("ai").ToolExecuteFunction<{
|
|
587
603
|
pattern: string;
|
|
588
|
-
}, string[], NoInfer<
|
|
604
|
+
}, string[], NoInfer<RepoContext>>;
|
|
589
605
|
} & {
|
|
590
606
|
type: "provider";
|
|
591
607
|
id: `${string}.${string}`;
|
|
@@ -599,27 +615,28 @@ export declare const glob_tool: ({
|
|
|
599
615
|
} & {
|
|
600
616
|
execute: import("ai").ToolExecuteFunction<{
|
|
601
617
|
pattern: string;
|
|
602
|
-
}, string[], NoInfer<
|
|
618
|
+
}, string[], NoInfer<RepoContext>>;
|
|
603
619
|
}) | ({
|
|
620
|
+
deferLoading?: boolean;
|
|
604
621
|
title?: string;
|
|
605
622
|
providerOptions?: import("@ai-sdk/provider-utils").ProviderOptions;
|
|
606
623
|
metadata?: import("@ai-sdk/provider").JSONObject;
|
|
607
624
|
inputSchema: import("ai").FlexibleSchema<{
|
|
608
625
|
pattern: string;
|
|
609
626
|
}>;
|
|
610
|
-
contextSchema?: import("ai").FlexibleSchema<
|
|
627
|
+
contextSchema?: import("ai").FlexibleSchema<RepoContext> | undefined;
|
|
611
628
|
needsApproval?: boolean | import("@ai-sdk/provider-utils").ToolNeedsApprovalFunction<{
|
|
612
629
|
pattern: string;
|
|
613
|
-
}, NoInfer<
|
|
614
|
-
onInputStart?: ((options:
|
|
630
|
+
}, NoInfer<RepoContext>> | undefined;
|
|
631
|
+
onInputStart?: ((options: ToolExecutionOptions<NoInfer<RepoContext>>) => void | PromiseLike<void>) | undefined;
|
|
615
632
|
onInputDelta?: ((options: {
|
|
616
633
|
inputTextDelta: string;
|
|
617
|
-
} &
|
|
634
|
+
} & ToolExecutionOptions<NoInfer<RepoContext>>) => void | PromiseLike<void>) | undefined;
|
|
618
635
|
onInputAvailable?: ((options: {
|
|
619
636
|
input: {
|
|
620
637
|
pattern: string;
|
|
621
638
|
};
|
|
622
|
-
} &
|
|
639
|
+
} & ToolExecutionOptions<NoInfer<RepoContext>>) => void | PromiseLike<void>) | undefined;
|
|
623
640
|
toModelOutput?: ((options: {
|
|
624
641
|
toolCallId: string;
|
|
625
642
|
input: {
|
|
@@ -631,7 +648,7 @@ export declare const glob_tool: ({
|
|
|
631
648
|
outputSchema?: import("ai").FlexibleSchema<string[]> | undefined;
|
|
632
649
|
execute: import("ai").ToolExecuteFunction<{
|
|
633
650
|
pattern: string;
|
|
634
|
-
}, string[], NoInfer<
|
|
651
|
+
}, string[], NoInfer<RepoContext>>;
|
|
635
652
|
} & {
|
|
636
653
|
type: "provider";
|
|
637
654
|
id: `${string}.${string}`;
|
|
@@ -645,9 +662,10 @@ export declare const glob_tool: ({
|
|
|
645
662
|
} & {
|
|
646
663
|
execute: import("ai").ToolExecuteFunction<{
|
|
647
664
|
pattern: string;
|
|
648
|
-
}, string[], NoInfer<
|
|
665
|
+
}, string[], NoInfer<RepoContext>>;
|
|
649
666
|
});
|
|
650
667
|
export declare const search_files_tool: ({
|
|
668
|
+
deferLoading?: boolean;
|
|
651
669
|
title?: string;
|
|
652
670
|
providerOptions?: import("@ai-sdk/provider-utils").ProviderOptions;
|
|
653
671
|
metadata?: import("@ai-sdk/provider").JSONObject;
|
|
@@ -656,23 +674,23 @@ export declare const search_files_tool: ({
|
|
|
656
674
|
max_results: number;
|
|
657
675
|
depth: number;
|
|
658
676
|
}>;
|
|
659
|
-
contextSchema?: import("ai").FlexibleSchema<
|
|
677
|
+
contextSchema?: import("ai").FlexibleSchema<RepoContext> | undefined;
|
|
660
678
|
needsApproval?: boolean | import("@ai-sdk/provider-utils").ToolNeedsApprovalFunction<{
|
|
661
679
|
pattern: string;
|
|
662
680
|
max_results: number;
|
|
663
681
|
depth: number;
|
|
664
|
-
}, NoInfer<
|
|
665
|
-
onInputStart?: ((options:
|
|
682
|
+
}, NoInfer<RepoContext>> | undefined;
|
|
683
|
+
onInputStart?: ((options: ToolExecutionOptions<NoInfer<RepoContext>>) => void | PromiseLike<void>) | undefined;
|
|
666
684
|
onInputDelta?: ((options: {
|
|
667
685
|
inputTextDelta: string;
|
|
668
|
-
} &
|
|
686
|
+
} & ToolExecutionOptions<NoInfer<RepoContext>>) => void | PromiseLike<void>) | undefined;
|
|
669
687
|
onInputAvailable?: ((options: {
|
|
670
688
|
input: {
|
|
671
689
|
pattern: string;
|
|
672
690
|
max_results: number;
|
|
673
691
|
depth: number;
|
|
674
692
|
};
|
|
675
|
-
} &
|
|
693
|
+
} & ToolExecutionOptions<NoInfer<RepoContext>>) => void | PromiseLike<void>) | undefined;
|
|
676
694
|
toModelOutput?: ((options: {
|
|
677
695
|
toolCallId: string;
|
|
678
696
|
input: {
|
|
@@ -688,10 +706,10 @@ export declare const search_files_tool: ({
|
|
|
688
706
|
pattern: string;
|
|
689
707
|
max_results: number;
|
|
690
708
|
depth: number;
|
|
691
|
-
}, string[], NoInfer<
|
|
709
|
+
}, string[], NoInfer<RepoContext>>;
|
|
692
710
|
} & {
|
|
693
711
|
description?: string | ((options: {
|
|
694
|
-
context: NoInfer<
|
|
712
|
+
context: NoInfer<RepoContext>;
|
|
695
713
|
experimental_sandbox?: import("ai").Experimental_SandboxSession;
|
|
696
714
|
}) => string) | undefined;
|
|
697
715
|
strict?: boolean;
|
|
@@ -713,8 +731,9 @@ export declare const search_files_tool: ({
|
|
|
713
731
|
pattern: string;
|
|
714
732
|
max_results: number;
|
|
715
733
|
depth: number;
|
|
716
|
-
}, string[], NoInfer<
|
|
734
|
+
}, string[], NoInfer<RepoContext>>;
|
|
717
735
|
}) | ({
|
|
736
|
+
deferLoading?: boolean;
|
|
718
737
|
title?: string;
|
|
719
738
|
providerOptions?: import("@ai-sdk/provider-utils").ProviderOptions;
|
|
720
739
|
metadata?: import("@ai-sdk/provider").JSONObject;
|
|
@@ -723,23 +742,23 @@ export declare const search_files_tool: ({
|
|
|
723
742
|
max_results: number;
|
|
724
743
|
depth: number;
|
|
725
744
|
}>;
|
|
726
|
-
contextSchema?: import("ai").FlexibleSchema<
|
|
745
|
+
contextSchema?: import("ai").FlexibleSchema<RepoContext> | undefined;
|
|
727
746
|
needsApproval?: boolean | import("@ai-sdk/provider-utils").ToolNeedsApprovalFunction<{
|
|
728
747
|
pattern: string;
|
|
729
748
|
max_results: number;
|
|
730
749
|
depth: number;
|
|
731
|
-
}, NoInfer<
|
|
732
|
-
onInputStart?: ((options:
|
|
750
|
+
}, NoInfer<RepoContext>> | undefined;
|
|
751
|
+
onInputStart?: ((options: ToolExecutionOptions<NoInfer<RepoContext>>) => void | PromiseLike<void>) | undefined;
|
|
733
752
|
onInputDelta?: ((options: {
|
|
734
753
|
inputTextDelta: string;
|
|
735
|
-
} &
|
|
754
|
+
} & ToolExecutionOptions<NoInfer<RepoContext>>) => void | PromiseLike<void>) | undefined;
|
|
736
755
|
onInputAvailable?: ((options: {
|
|
737
756
|
input: {
|
|
738
757
|
pattern: string;
|
|
739
758
|
max_results: number;
|
|
740
759
|
depth: number;
|
|
741
760
|
};
|
|
742
|
-
} &
|
|
761
|
+
} & ToolExecutionOptions<NoInfer<RepoContext>>) => void | PromiseLike<void>) | undefined;
|
|
743
762
|
toModelOutput?: ((options: {
|
|
744
763
|
toolCallId: string;
|
|
745
764
|
input: {
|
|
@@ -755,10 +774,10 @@ export declare const search_files_tool: ({
|
|
|
755
774
|
pattern: string;
|
|
756
775
|
max_results: number;
|
|
757
776
|
depth: number;
|
|
758
|
-
}, string[], NoInfer<
|
|
777
|
+
}, string[], NoInfer<RepoContext>>;
|
|
759
778
|
} & {
|
|
760
779
|
description?: string | ((options: {
|
|
761
|
-
context: NoInfer<
|
|
780
|
+
context: NoInfer<RepoContext>;
|
|
762
781
|
experimental_sandbox?: import("ai").Experimental_SandboxSession;
|
|
763
782
|
}) => string) | undefined;
|
|
764
783
|
strict?: boolean;
|
|
@@ -780,8 +799,9 @@ export declare const search_files_tool: ({
|
|
|
780
799
|
pattern: string;
|
|
781
800
|
max_results: number;
|
|
782
801
|
depth: number;
|
|
783
|
-
}, string[], NoInfer<
|
|
802
|
+
}, string[], NoInfer<RepoContext>>;
|
|
784
803
|
}) | ({
|
|
804
|
+
deferLoading?: boolean;
|
|
785
805
|
title?: string;
|
|
786
806
|
providerOptions?: import("@ai-sdk/provider-utils").ProviderOptions;
|
|
787
807
|
metadata?: import("@ai-sdk/provider").JSONObject;
|
|
@@ -790,23 +810,23 @@ export declare const search_files_tool: ({
|
|
|
790
810
|
max_results: number;
|
|
791
811
|
depth: number;
|
|
792
812
|
}>;
|
|
793
|
-
contextSchema?: import("ai").FlexibleSchema<
|
|
813
|
+
contextSchema?: import("ai").FlexibleSchema<RepoContext> | undefined;
|
|
794
814
|
needsApproval?: boolean | import("@ai-sdk/provider-utils").ToolNeedsApprovalFunction<{
|
|
795
815
|
pattern: string;
|
|
796
816
|
max_results: number;
|
|
797
817
|
depth: number;
|
|
798
|
-
}, NoInfer<
|
|
799
|
-
onInputStart?: ((options:
|
|
818
|
+
}, NoInfer<RepoContext>> | undefined;
|
|
819
|
+
onInputStart?: ((options: ToolExecutionOptions<NoInfer<RepoContext>>) => void | PromiseLike<void>) | undefined;
|
|
800
820
|
onInputDelta?: ((options: {
|
|
801
821
|
inputTextDelta: string;
|
|
802
|
-
} &
|
|
822
|
+
} & ToolExecutionOptions<NoInfer<RepoContext>>) => void | PromiseLike<void>) | undefined;
|
|
803
823
|
onInputAvailable?: ((options: {
|
|
804
824
|
input: {
|
|
805
825
|
pattern: string;
|
|
806
826
|
max_results: number;
|
|
807
827
|
depth: number;
|
|
808
828
|
};
|
|
809
|
-
} &
|
|
829
|
+
} & ToolExecutionOptions<NoInfer<RepoContext>>) => void | PromiseLike<void>) | undefined;
|
|
810
830
|
toModelOutput?: ((options: {
|
|
811
831
|
toolCallId: string;
|
|
812
832
|
input: {
|
|
@@ -822,7 +842,7 @@ export declare const search_files_tool: ({
|
|
|
822
842
|
pattern: string;
|
|
823
843
|
max_results: number;
|
|
824
844
|
depth: number;
|
|
825
|
-
}, string[], NoInfer<
|
|
845
|
+
}, string[], NoInfer<RepoContext>>;
|
|
826
846
|
} & {
|
|
827
847
|
type: "provider";
|
|
828
848
|
id: `${string}.${string}`;
|
|
@@ -838,8 +858,9 @@ export declare const search_files_tool: ({
|
|
|
838
858
|
pattern: string;
|
|
839
859
|
max_results: number;
|
|
840
860
|
depth: number;
|
|
841
|
-
}, string[], NoInfer<
|
|
861
|
+
}, string[], NoInfer<RepoContext>>;
|
|
842
862
|
}) | ({
|
|
863
|
+
deferLoading?: boolean;
|
|
843
864
|
title?: string;
|
|
844
865
|
providerOptions?: import("@ai-sdk/provider-utils").ProviderOptions;
|
|
845
866
|
metadata?: import("@ai-sdk/provider").JSONObject;
|
|
@@ -848,23 +869,23 @@ export declare const search_files_tool: ({
|
|
|
848
869
|
max_results: number;
|
|
849
870
|
depth: number;
|
|
850
871
|
}>;
|
|
851
|
-
contextSchema?: import("ai").FlexibleSchema<
|
|
872
|
+
contextSchema?: import("ai").FlexibleSchema<RepoContext> | undefined;
|
|
852
873
|
needsApproval?: boolean | import("@ai-sdk/provider-utils").ToolNeedsApprovalFunction<{
|
|
853
874
|
pattern: string;
|
|
854
875
|
max_results: number;
|
|
855
876
|
depth: number;
|
|
856
|
-
}, NoInfer<
|
|
857
|
-
onInputStart?: ((options:
|
|
877
|
+
}, NoInfer<RepoContext>> | undefined;
|
|
878
|
+
onInputStart?: ((options: ToolExecutionOptions<NoInfer<RepoContext>>) => void | PromiseLike<void>) | undefined;
|
|
858
879
|
onInputDelta?: ((options: {
|
|
859
880
|
inputTextDelta: string;
|
|
860
|
-
} &
|
|
881
|
+
} & ToolExecutionOptions<NoInfer<RepoContext>>) => void | PromiseLike<void>) | undefined;
|
|
861
882
|
onInputAvailable?: ((options: {
|
|
862
883
|
input: {
|
|
863
884
|
pattern: string;
|
|
864
885
|
max_results: number;
|
|
865
886
|
depth: number;
|
|
866
887
|
};
|
|
867
|
-
} &
|
|
888
|
+
} & ToolExecutionOptions<NoInfer<RepoContext>>) => void | PromiseLike<void>) | undefined;
|
|
868
889
|
toModelOutput?: ((options: {
|
|
869
890
|
toolCallId: string;
|
|
870
891
|
input: {
|
|
@@ -880,7 +901,7 @@ export declare const search_files_tool: ({
|
|
|
880
901
|
pattern: string;
|
|
881
902
|
max_results: number;
|
|
882
903
|
depth: number;
|
|
883
|
-
}, string[], NoInfer<
|
|
904
|
+
}, string[], NoInfer<RepoContext>>;
|
|
884
905
|
} & {
|
|
885
906
|
type: "provider";
|
|
886
907
|
id: `${string}.${string}`;
|
|
@@ -896,28 +917,29 @@ export declare const search_files_tool: ({
|
|
|
896
917
|
pattern: string;
|
|
897
918
|
max_results: number;
|
|
898
919
|
depth: number;
|
|
899
|
-
}, string[], NoInfer<
|
|
920
|
+
}, string[], NoInfer<RepoContext>>;
|
|
900
921
|
});
|
|
901
922
|
export declare const file_exists_tool: ({
|
|
923
|
+
deferLoading?: boolean;
|
|
902
924
|
title?: string;
|
|
903
925
|
providerOptions?: import("@ai-sdk/provider-utils").ProviderOptions;
|
|
904
926
|
metadata?: import("@ai-sdk/provider").JSONObject;
|
|
905
927
|
inputSchema: import("ai").FlexibleSchema<{
|
|
906
928
|
filePath: string;
|
|
907
929
|
}>;
|
|
908
|
-
contextSchema?: import("ai").FlexibleSchema<
|
|
930
|
+
contextSchema?: import("ai").FlexibleSchema<RepoContext> | undefined;
|
|
909
931
|
needsApproval?: boolean | import("@ai-sdk/provider-utils").ToolNeedsApprovalFunction<{
|
|
910
932
|
filePath: string;
|
|
911
|
-
}, NoInfer<
|
|
912
|
-
onInputStart?: ((options:
|
|
933
|
+
}, NoInfer<RepoContext>> | undefined;
|
|
934
|
+
onInputStart?: ((options: ToolExecutionOptions<NoInfer<RepoContext>>) => void | PromiseLike<void>) | undefined;
|
|
913
935
|
onInputDelta?: ((options: {
|
|
914
936
|
inputTextDelta: string;
|
|
915
|
-
} &
|
|
937
|
+
} & ToolExecutionOptions<NoInfer<RepoContext>>) => void | PromiseLike<void>) | undefined;
|
|
916
938
|
onInputAvailable?: ((options: {
|
|
917
939
|
input: {
|
|
918
940
|
filePath: string;
|
|
919
941
|
};
|
|
920
|
-
} &
|
|
942
|
+
} & ToolExecutionOptions<NoInfer<RepoContext>>) => void | PromiseLike<void>) | undefined;
|
|
921
943
|
toModelOutput?: ((options: {
|
|
922
944
|
toolCallId: string;
|
|
923
945
|
input: {
|
|
@@ -929,10 +951,10 @@ export declare const file_exists_tool: ({
|
|
|
929
951
|
outputSchema?: import("ai").FlexibleSchema<boolean> | undefined;
|
|
930
952
|
execute: import("ai").ToolExecuteFunction<{
|
|
931
953
|
filePath: string;
|
|
932
|
-
}, boolean, NoInfer<
|
|
954
|
+
}, boolean, NoInfer<RepoContext>>;
|
|
933
955
|
} & {
|
|
934
956
|
description?: string | ((options: {
|
|
935
|
-
context: NoInfer<
|
|
957
|
+
context: NoInfer<RepoContext>;
|
|
936
958
|
experimental_sandbox?: import("ai").Experimental_SandboxSession;
|
|
937
959
|
}) => string) | undefined;
|
|
938
960
|
strict?: boolean;
|
|
@@ -950,27 +972,28 @@ export declare const file_exists_tool: ({
|
|
|
950
972
|
} & {
|
|
951
973
|
execute: import("ai").ToolExecuteFunction<{
|
|
952
974
|
filePath: string;
|
|
953
|
-
}, boolean, NoInfer<
|
|
975
|
+
}, boolean, NoInfer<RepoContext>>;
|
|
954
976
|
}) | ({
|
|
977
|
+
deferLoading?: boolean;
|
|
955
978
|
title?: string;
|
|
956
979
|
providerOptions?: import("@ai-sdk/provider-utils").ProviderOptions;
|
|
957
980
|
metadata?: import("@ai-sdk/provider").JSONObject;
|
|
958
981
|
inputSchema: import("ai").FlexibleSchema<{
|
|
959
982
|
filePath: string;
|
|
960
983
|
}>;
|
|
961
|
-
contextSchema?: import("ai").FlexibleSchema<
|
|
984
|
+
contextSchema?: import("ai").FlexibleSchema<RepoContext> | undefined;
|
|
962
985
|
needsApproval?: boolean | import("@ai-sdk/provider-utils").ToolNeedsApprovalFunction<{
|
|
963
986
|
filePath: string;
|
|
964
|
-
}, NoInfer<
|
|
965
|
-
onInputStart?: ((options:
|
|
987
|
+
}, NoInfer<RepoContext>> | undefined;
|
|
988
|
+
onInputStart?: ((options: ToolExecutionOptions<NoInfer<RepoContext>>) => void | PromiseLike<void>) | undefined;
|
|
966
989
|
onInputDelta?: ((options: {
|
|
967
990
|
inputTextDelta: string;
|
|
968
|
-
} &
|
|
991
|
+
} & ToolExecutionOptions<NoInfer<RepoContext>>) => void | PromiseLike<void>) | undefined;
|
|
969
992
|
onInputAvailable?: ((options: {
|
|
970
993
|
input: {
|
|
971
994
|
filePath: string;
|
|
972
995
|
};
|
|
973
|
-
} &
|
|
996
|
+
} & ToolExecutionOptions<NoInfer<RepoContext>>) => void | PromiseLike<void>) | undefined;
|
|
974
997
|
toModelOutput?: ((options: {
|
|
975
998
|
toolCallId: string;
|
|
976
999
|
input: {
|
|
@@ -982,10 +1005,10 @@ export declare const file_exists_tool: ({
|
|
|
982
1005
|
outputSchema?: import("ai").FlexibleSchema<boolean> | undefined;
|
|
983
1006
|
execute: import("ai").ToolExecuteFunction<{
|
|
984
1007
|
filePath: string;
|
|
985
|
-
}, boolean, NoInfer<
|
|
1008
|
+
}, boolean, NoInfer<RepoContext>>;
|
|
986
1009
|
} & {
|
|
987
1010
|
description?: string | ((options: {
|
|
988
|
-
context: NoInfer<
|
|
1011
|
+
context: NoInfer<RepoContext>;
|
|
989
1012
|
experimental_sandbox?: import("ai").Experimental_SandboxSession;
|
|
990
1013
|
}) => string) | undefined;
|
|
991
1014
|
strict?: boolean;
|
|
@@ -1003,27 +1026,28 @@ export declare const file_exists_tool: ({
|
|
|
1003
1026
|
} & {
|
|
1004
1027
|
execute: import("ai").ToolExecuteFunction<{
|
|
1005
1028
|
filePath: string;
|
|
1006
|
-
}, boolean, NoInfer<
|
|
1029
|
+
}, boolean, NoInfer<RepoContext>>;
|
|
1007
1030
|
}) | ({
|
|
1031
|
+
deferLoading?: boolean;
|
|
1008
1032
|
title?: string;
|
|
1009
1033
|
providerOptions?: import("@ai-sdk/provider-utils").ProviderOptions;
|
|
1010
1034
|
metadata?: import("@ai-sdk/provider").JSONObject;
|
|
1011
1035
|
inputSchema: import("ai").FlexibleSchema<{
|
|
1012
1036
|
filePath: string;
|
|
1013
1037
|
}>;
|
|
1014
|
-
contextSchema?: import("ai").FlexibleSchema<
|
|
1038
|
+
contextSchema?: import("ai").FlexibleSchema<RepoContext> | undefined;
|
|
1015
1039
|
needsApproval?: boolean | import("@ai-sdk/provider-utils").ToolNeedsApprovalFunction<{
|
|
1016
1040
|
filePath: string;
|
|
1017
|
-
}, NoInfer<
|
|
1018
|
-
onInputStart?: ((options:
|
|
1041
|
+
}, NoInfer<RepoContext>> | undefined;
|
|
1042
|
+
onInputStart?: ((options: ToolExecutionOptions<NoInfer<RepoContext>>) => void | PromiseLike<void>) | undefined;
|
|
1019
1043
|
onInputDelta?: ((options: {
|
|
1020
1044
|
inputTextDelta: string;
|
|
1021
|
-
} &
|
|
1045
|
+
} & ToolExecutionOptions<NoInfer<RepoContext>>) => void | PromiseLike<void>) | undefined;
|
|
1022
1046
|
onInputAvailable?: ((options: {
|
|
1023
1047
|
input: {
|
|
1024
1048
|
filePath: string;
|
|
1025
1049
|
};
|
|
1026
|
-
} &
|
|
1050
|
+
} & ToolExecutionOptions<NoInfer<RepoContext>>) => void | PromiseLike<void>) | undefined;
|
|
1027
1051
|
toModelOutput?: ((options: {
|
|
1028
1052
|
toolCallId: string;
|
|
1029
1053
|
input: {
|
|
@@ -1035,7 +1059,7 @@ export declare const file_exists_tool: ({
|
|
|
1035
1059
|
outputSchema?: import("ai").FlexibleSchema<boolean> | undefined;
|
|
1036
1060
|
execute: import("ai").ToolExecuteFunction<{
|
|
1037
1061
|
filePath: string;
|
|
1038
|
-
}, boolean, NoInfer<
|
|
1062
|
+
}, boolean, NoInfer<RepoContext>>;
|
|
1039
1063
|
} & {
|
|
1040
1064
|
type: "provider";
|
|
1041
1065
|
id: `${string}.${string}`;
|
|
@@ -1049,27 +1073,28 @@ export declare const file_exists_tool: ({
|
|
|
1049
1073
|
} & {
|
|
1050
1074
|
execute: import("ai").ToolExecuteFunction<{
|
|
1051
1075
|
filePath: string;
|
|
1052
|
-
}, boolean, NoInfer<
|
|
1076
|
+
}, boolean, NoInfer<RepoContext>>;
|
|
1053
1077
|
}) | ({
|
|
1078
|
+
deferLoading?: boolean;
|
|
1054
1079
|
title?: string;
|
|
1055
1080
|
providerOptions?: import("@ai-sdk/provider-utils").ProviderOptions;
|
|
1056
1081
|
metadata?: import("@ai-sdk/provider").JSONObject;
|
|
1057
1082
|
inputSchema: import("ai").FlexibleSchema<{
|
|
1058
1083
|
filePath: string;
|
|
1059
1084
|
}>;
|
|
1060
|
-
contextSchema?: import("ai").FlexibleSchema<
|
|
1085
|
+
contextSchema?: import("ai").FlexibleSchema<RepoContext> | undefined;
|
|
1061
1086
|
needsApproval?: boolean | import("@ai-sdk/provider-utils").ToolNeedsApprovalFunction<{
|
|
1062
1087
|
filePath: string;
|
|
1063
|
-
}, NoInfer<
|
|
1064
|
-
onInputStart?: ((options:
|
|
1088
|
+
}, NoInfer<RepoContext>> | undefined;
|
|
1089
|
+
onInputStart?: ((options: ToolExecutionOptions<NoInfer<RepoContext>>) => void | PromiseLike<void>) | undefined;
|
|
1065
1090
|
onInputDelta?: ((options: {
|
|
1066
1091
|
inputTextDelta: string;
|
|
1067
|
-
} &
|
|
1092
|
+
} & ToolExecutionOptions<NoInfer<RepoContext>>) => void | PromiseLike<void>) | undefined;
|
|
1068
1093
|
onInputAvailable?: ((options: {
|
|
1069
1094
|
input: {
|
|
1070
1095
|
filePath: string;
|
|
1071
1096
|
};
|
|
1072
|
-
} &
|
|
1097
|
+
} & ToolExecutionOptions<NoInfer<RepoContext>>) => void | PromiseLike<void>) | undefined;
|
|
1073
1098
|
toModelOutput?: ((options: {
|
|
1074
1099
|
toolCallId: string;
|
|
1075
1100
|
input: {
|
|
@@ -1081,7 +1106,7 @@ export declare const file_exists_tool: ({
|
|
|
1081
1106
|
outputSchema?: import("ai").FlexibleSchema<boolean> | undefined;
|
|
1082
1107
|
execute: import("ai").ToolExecuteFunction<{
|
|
1083
1108
|
filePath: string;
|
|
1084
|
-
}, boolean, NoInfer<
|
|
1109
|
+
}, boolean, NoInfer<RepoContext>>;
|
|
1085
1110
|
} & {
|
|
1086
1111
|
type: "provider";
|
|
1087
1112
|
id: `${string}.${string}`;
|
|
@@ -1095,7 +1120,7 @@ export declare const file_exists_tool: ({
|
|
|
1095
1120
|
} & {
|
|
1096
1121
|
execute: import("ai").ToolExecuteFunction<{
|
|
1097
1122
|
filePath: string;
|
|
1098
|
-
}, boolean, NoInfer<
|
|
1123
|
+
}, boolean, NoInfer<RepoContext>>;
|
|
1099
1124
|
});
|
|
1100
1125
|
export declare const search_content_tool: import("@ai-sdk/provider-utils").DynamicTool<unknown, unknown, import("@ai-sdk/provider-utils").Context>;
|
|
1101
1126
|
export declare function repoTree(dir_path: string): Promise<string>;
|