@deepagents/toolbox 7.0.2 → 7.1.1

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