harnessly 1.0.0

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