@gugacoder/agentic-sdk 0.2.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.
Files changed (129) hide show
  1. package/dist/agent.d.ts +2 -0
  2. package/dist/agent.js +463 -0
  3. package/dist/context/compaction.d.ts +27 -0
  4. package/dist/context/compaction.js +219 -0
  5. package/dist/context/models.d.ts +6 -0
  6. package/dist/context/models.js +41 -0
  7. package/dist/context/tokenizer.d.ts +5 -0
  8. package/dist/context/tokenizer.js +11 -0
  9. package/dist/context/usage.d.ts +11 -0
  10. package/dist/context/usage.js +49 -0
  11. package/dist/display-schemas.d.ts +1865 -0
  12. package/dist/display-schemas.js +219 -0
  13. package/dist/index.d.ts +38 -0
  14. package/dist/index.js +28 -0
  15. package/dist/middleware/logging.d.ts +2 -0
  16. package/dist/middleware/logging.js +32 -0
  17. package/dist/prompts/assembly.d.ts +13 -0
  18. package/dist/prompts/assembly.js +229 -0
  19. package/dist/providers.d.ts +19 -0
  20. package/dist/providers.js +44 -0
  21. package/dist/proxy.d.ts +2 -0
  22. package/dist/proxy.js +103 -0
  23. package/dist/schemas.d.ts +228 -0
  24. package/dist/schemas.js +51 -0
  25. package/dist/session.d.ts +7 -0
  26. package/dist/session.js +102 -0
  27. package/dist/structured.d.ts +18 -0
  28. package/dist/structured.js +38 -0
  29. package/dist/tool-repair.d.ts +21 -0
  30. package/dist/tool-repair.js +72 -0
  31. package/dist/tools/api-spec.d.ts +4 -0
  32. package/dist/tools/api-spec.js +123 -0
  33. package/dist/tools/apply-patch.d.ts +484 -0
  34. package/dist/tools/apply-patch.js +157 -0
  35. package/dist/tools/ask-user.d.ts +14 -0
  36. package/dist/tools/ask-user.js +27 -0
  37. package/dist/tools/bash.d.ts +550 -0
  38. package/dist/tools/bash.js +43 -0
  39. package/dist/tools/batch.d.ts +13 -0
  40. package/dist/tools/batch.js +84 -0
  41. package/dist/tools/brave-search.d.ts +6 -0
  42. package/dist/tools/brave-search.js +19 -0
  43. package/dist/tools/code-search.d.ts +20 -0
  44. package/dist/tools/code-search.js +42 -0
  45. package/dist/tools/diagnostics.d.ts +4 -0
  46. package/dist/tools/diagnostics.js +69 -0
  47. package/dist/tools/display.d.ts +483 -0
  48. package/dist/tools/display.js +77 -0
  49. package/dist/tools/edit.d.ts +682 -0
  50. package/dist/tools/edit.js +47 -0
  51. package/dist/tools/glob.d.ts +4 -0
  52. package/dist/tools/glob.js +42 -0
  53. package/dist/tools/grep.d.ts +6 -0
  54. package/dist/tools/grep.js +69 -0
  55. package/dist/tools/http-request.d.ts +7 -0
  56. package/dist/tools/http-request.js +98 -0
  57. package/dist/tools/index.d.ts +1611 -0
  58. package/dist/tools/index.js +46 -0
  59. package/dist/tools/job-tools.d.ts +24 -0
  60. package/dist/tools/job-tools.js +67 -0
  61. package/dist/tools/list-dir.d.ts +5 -0
  62. package/dist/tools/list-dir.js +79 -0
  63. package/dist/tools/multi-edit.d.ts +814 -0
  64. package/dist/tools/multi-edit.js +57 -0
  65. package/dist/tools/read.d.ts +5 -0
  66. package/dist/tools/read.js +33 -0
  67. package/dist/tools/task.d.ts +21 -0
  68. package/dist/tools/task.js +51 -0
  69. package/dist/tools/todo.d.ts +14 -0
  70. package/dist/tools/todo.js +60 -0
  71. package/dist/tools/web-fetch.d.ts +4 -0
  72. package/dist/tools/web-fetch.js +126 -0
  73. package/dist/tools/web-search.d.ts +22 -0
  74. package/dist/tools/web-search.js +48 -0
  75. package/dist/tools/write.d.ts +550 -0
  76. package/dist/tools/write.js +30 -0
  77. package/dist/types.d.ts +201 -0
  78. package/dist/types.js +1 -0
  79. package/package.json +43 -0
  80. package/src/agent.ts +520 -0
  81. package/src/context/compaction.ts +265 -0
  82. package/src/context/models.ts +42 -0
  83. package/src/context/tokenizer.ts +12 -0
  84. package/src/context/usage.ts +65 -0
  85. package/src/display-schemas.ts +276 -0
  86. package/src/index.ts +43 -0
  87. package/src/middleware/logging.ts +37 -0
  88. package/src/prompts/assembly.ts +263 -0
  89. package/src/prompts/identity.md +10 -0
  90. package/src/prompts/patterns.md +7 -0
  91. package/src/prompts/safety.md +7 -0
  92. package/src/prompts/tool-guide.md +9 -0
  93. package/src/prompts/tools/bash.md +7 -0
  94. package/src/prompts/tools/edit.md +7 -0
  95. package/src/prompts/tools/glob.md +7 -0
  96. package/src/prompts/tools/grep.md +7 -0
  97. package/src/prompts/tools/read.md +7 -0
  98. package/src/prompts/tools/write.md +7 -0
  99. package/src/providers.ts +58 -0
  100. package/src/proxy.ts +101 -0
  101. package/src/schemas.ts +58 -0
  102. package/src/session.ts +110 -0
  103. package/src/structured.ts +65 -0
  104. package/src/tool-repair.ts +92 -0
  105. package/src/tools/api-spec.ts +158 -0
  106. package/src/tools/apply-patch.ts +188 -0
  107. package/src/tools/ask-user.ts +40 -0
  108. package/src/tools/bash.ts +51 -0
  109. package/src/tools/batch.ts +103 -0
  110. package/src/tools/brave-search.ts +24 -0
  111. package/src/tools/code-search.ts +69 -0
  112. package/src/tools/diagnostics.ts +93 -0
  113. package/src/tools/display.ts +105 -0
  114. package/src/tools/edit.ts +55 -0
  115. package/src/tools/glob.ts +46 -0
  116. package/src/tools/grep.ts +68 -0
  117. package/src/tools/http-request.ts +103 -0
  118. package/src/tools/index.ts +48 -0
  119. package/src/tools/job-tools.ts +84 -0
  120. package/src/tools/list-dir.ts +102 -0
  121. package/src/tools/multi-edit.ts +65 -0
  122. package/src/tools/read.ts +40 -0
  123. package/src/tools/task.ts +71 -0
  124. package/src/tools/todo.ts +82 -0
  125. package/src/tools/web-fetch.ts +155 -0
  126. package/src/tools/web-search.ts +75 -0
  127. package/src/tools/write.ts +34 -0
  128. package/src/types.ts +145 -0
  129. package/tsconfig.json +17 -0
@@ -0,0 +1,1611 @@
1
+ export { createBashTool } from "./bash.js";
2
+ export { createWriteTool } from "./write.js";
3
+ export { createEditTool } from "./edit.js";
4
+ export { createMultiEditTool } from "./multi-edit.js";
5
+ export { createApplyPatchTool } from "./apply-patch.js";
6
+ export declare const codingTools: {
7
+ Read: import("ai").Tool<{
8
+ file_path: string;
9
+ offset?: number | undefined;
10
+ limit?: number | undefined;
11
+ }, string>;
12
+ Write: ({
13
+ description?: string;
14
+ title?: string;
15
+ providerOptions?: import("@ai-sdk/provider-utils").ProviderOptions;
16
+ inputSchema: import("ai").FlexibleSchema<{
17
+ file_path: string;
18
+ content: string;
19
+ }>;
20
+ inputExamples?: {
21
+ input: NoInfer<{
22
+ file_path: string;
23
+ content: string;
24
+ }>;
25
+ }[] | undefined;
26
+ needsApproval?: boolean | import("@ai-sdk/provider-utils").ToolNeedsApprovalFunction<{
27
+ file_path: string;
28
+ content: string;
29
+ }> | undefined;
30
+ strict?: boolean;
31
+ onInputStart?: (options: import("ai").ToolExecutionOptions) => void | PromiseLike<void>;
32
+ onInputDelta?: (options: {
33
+ inputTextDelta: string;
34
+ } & import("ai").ToolExecutionOptions) => void | PromiseLike<void>;
35
+ onInputAvailable?: ((options: {
36
+ input: {
37
+ file_path: string;
38
+ content: string;
39
+ };
40
+ } & import("ai").ToolExecutionOptions) => void | PromiseLike<void>) | undefined;
41
+ } & {
42
+ outputSchema: import("ai").FlexibleSchema<string>;
43
+ execute?: never;
44
+ } & {
45
+ toModelOutput?: ((options: {
46
+ toolCallId: string;
47
+ input: {
48
+ file_path: string;
49
+ content: string;
50
+ };
51
+ output: string;
52
+ }) => import("@ai-sdk/provider-utils").ToolResultOutput | PromiseLike<import("@ai-sdk/provider-utils").ToolResultOutput>) | undefined;
53
+ } & {
54
+ type?: undefined | "function";
55
+ }) | ({
56
+ description?: string;
57
+ title?: string;
58
+ providerOptions?: import("@ai-sdk/provider-utils").ProviderOptions;
59
+ inputSchema: import("ai").FlexibleSchema<{
60
+ file_path: string;
61
+ content: string;
62
+ }>;
63
+ inputExamples?: {
64
+ input: NoInfer<{
65
+ file_path: string;
66
+ content: string;
67
+ }>;
68
+ }[] | undefined;
69
+ needsApproval?: boolean | import("@ai-sdk/provider-utils").ToolNeedsApprovalFunction<{
70
+ file_path: string;
71
+ content: string;
72
+ }> | undefined;
73
+ strict?: boolean;
74
+ onInputStart?: (options: import("ai").ToolExecutionOptions) => void | PromiseLike<void>;
75
+ onInputDelta?: (options: {
76
+ inputTextDelta: string;
77
+ } & import("ai").ToolExecutionOptions) => void | PromiseLike<void>;
78
+ onInputAvailable?: ((options: {
79
+ input: {
80
+ file_path: string;
81
+ content: string;
82
+ };
83
+ } & import("ai").ToolExecutionOptions) => void | PromiseLike<void>) | undefined;
84
+ } & {
85
+ outputSchema: import("ai").FlexibleSchema<string>;
86
+ execute?: never;
87
+ } & {
88
+ toModelOutput?: ((options: {
89
+ toolCallId: string;
90
+ input: {
91
+ file_path: string;
92
+ content: string;
93
+ };
94
+ output: string;
95
+ }) => import("@ai-sdk/provider-utils").ToolResultOutput | PromiseLike<import("@ai-sdk/provider-utils").ToolResultOutput>) | undefined;
96
+ } & {
97
+ type: "dynamic";
98
+ }) | ({
99
+ description?: string;
100
+ title?: string;
101
+ providerOptions?: import("@ai-sdk/provider-utils").ProviderOptions;
102
+ inputSchema: import("ai").FlexibleSchema<{
103
+ file_path: string;
104
+ content: string;
105
+ }>;
106
+ inputExamples?: {
107
+ input: NoInfer<{
108
+ file_path: string;
109
+ content: string;
110
+ }>;
111
+ }[] | undefined;
112
+ needsApproval?: boolean | import("@ai-sdk/provider-utils").ToolNeedsApprovalFunction<{
113
+ file_path: string;
114
+ content: string;
115
+ }> | undefined;
116
+ strict?: boolean;
117
+ onInputStart?: (options: import("ai").ToolExecutionOptions) => void | PromiseLike<void>;
118
+ onInputDelta?: (options: {
119
+ inputTextDelta: string;
120
+ } & import("ai").ToolExecutionOptions) => void | PromiseLike<void>;
121
+ onInputAvailable?: ((options: {
122
+ input: {
123
+ file_path: string;
124
+ content: string;
125
+ };
126
+ } & import("ai").ToolExecutionOptions) => void | PromiseLike<void>) | undefined;
127
+ } & {
128
+ outputSchema: import("ai").FlexibleSchema<string>;
129
+ execute?: never;
130
+ } & {
131
+ toModelOutput?: ((options: {
132
+ toolCallId: string;
133
+ input: {
134
+ file_path: string;
135
+ content: string;
136
+ };
137
+ output: string;
138
+ }) => import("@ai-sdk/provider-utils").ToolResultOutput | PromiseLike<import("@ai-sdk/provider-utils").ToolResultOutput>) | undefined;
139
+ } & {
140
+ type: "provider";
141
+ id: `${string}.${string}`;
142
+ args: Record<string, unknown>;
143
+ supportsDeferredResults?: boolean;
144
+ }) | ({
145
+ description?: string;
146
+ title?: string;
147
+ providerOptions?: import("@ai-sdk/provider-utils").ProviderOptions;
148
+ inputSchema: import("ai").FlexibleSchema<{
149
+ file_path: string;
150
+ content: string;
151
+ }>;
152
+ inputExamples?: {
153
+ input: NoInfer<{
154
+ file_path: string;
155
+ content: string;
156
+ }>;
157
+ }[] | undefined;
158
+ needsApproval?: boolean | import("@ai-sdk/provider-utils").ToolNeedsApprovalFunction<{
159
+ file_path: string;
160
+ content: string;
161
+ }> | undefined;
162
+ strict?: boolean;
163
+ onInputStart?: (options: import("ai").ToolExecutionOptions) => void | PromiseLike<void>;
164
+ onInputDelta?: (options: {
165
+ inputTextDelta: string;
166
+ } & import("ai").ToolExecutionOptions) => void | PromiseLike<void>;
167
+ onInputAvailable?: ((options: {
168
+ input: {
169
+ file_path: string;
170
+ content: string;
171
+ };
172
+ } & import("ai").ToolExecutionOptions) => void | PromiseLike<void>) | undefined;
173
+ } & {
174
+ execute: import("ai").ToolExecuteFunction<{
175
+ file_path: string;
176
+ content: string;
177
+ }, string>;
178
+ outputSchema?: import("ai").FlexibleSchema<string> | undefined;
179
+ } & {
180
+ toModelOutput?: ((options: {
181
+ toolCallId: string;
182
+ input: {
183
+ file_path: string;
184
+ content: string;
185
+ };
186
+ output: string;
187
+ }) => import("@ai-sdk/provider-utils").ToolResultOutput | PromiseLike<import("@ai-sdk/provider-utils").ToolResultOutput>) | undefined;
188
+ } & {
189
+ type?: undefined | "function";
190
+ }) | ({
191
+ description?: string;
192
+ title?: string;
193
+ providerOptions?: import("@ai-sdk/provider-utils").ProviderOptions;
194
+ inputSchema: import("ai").FlexibleSchema<{
195
+ file_path: string;
196
+ content: string;
197
+ }>;
198
+ inputExamples?: {
199
+ input: NoInfer<{
200
+ file_path: string;
201
+ content: string;
202
+ }>;
203
+ }[] | undefined;
204
+ needsApproval?: boolean | import("@ai-sdk/provider-utils").ToolNeedsApprovalFunction<{
205
+ file_path: string;
206
+ content: string;
207
+ }> | undefined;
208
+ strict?: boolean;
209
+ onInputStart?: (options: import("ai").ToolExecutionOptions) => void | PromiseLike<void>;
210
+ onInputDelta?: (options: {
211
+ inputTextDelta: string;
212
+ } & import("ai").ToolExecutionOptions) => void | PromiseLike<void>;
213
+ onInputAvailable?: ((options: {
214
+ input: {
215
+ file_path: string;
216
+ content: string;
217
+ };
218
+ } & import("ai").ToolExecutionOptions) => void | PromiseLike<void>) | undefined;
219
+ } & {
220
+ execute: import("ai").ToolExecuteFunction<{
221
+ file_path: string;
222
+ content: string;
223
+ }, string>;
224
+ outputSchema?: import("ai").FlexibleSchema<string> | undefined;
225
+ } & {
226
+ toModelOutput?: ((options: {
227
+ toolCallId: string;
228
+ input: {
229
+ file_path: string;
230
+ content: string;
231
+ };
232
+ output: string;
233
+ }) => import("@ai-sdk/provider-utils").ToolResultOutput | PromiseLike<import("@ai-sdk/provider-utils").ToolResultOutput>) | undefined;
234
+ } & {
235
+ type: "dynamic";
236
+ }) | ({
237
+ description?: string;
238
+ title?: string;
239
+ providerOptions?: import("@ai-sdk/provider-utils").ProviderOptions;
240
+ inputSchema: import("ai").FlexibleSchema<{
241
+ file_path: string;
242
+ content: string;
243
+ }>;
244
+ inputExamples?: {
245
+ input: NoInfer<{
246
+ file_path: string;
247
+ content: string;
248
+ }>;
249
+ }[] | undefined;
250
+ needsApproval?: boolean | import("@ai-sdk/provider-utils").ToolNeedsApprovalFunction<{
251
+ file_path: string;
252
+ content: string;
253
+ }> | undefined;
254
+ strict?: boolean;
255
+ onInputStart?: (options: import("ai").ToolExecutionOptions) => void | PromiseLike<void>;
256
+ onInputDelta?: (options: {
257
+ inputTextDelta: string;
258
+ } & import("ai").ToolExecutionOptions) => void | PromiseLike<void>;
259
+ onInputAvailable?: ((options: {
260
+ input: {
261
+ file_path: string;
262
+ content: string;
263
+ };
264
+ } & import("ai").ToolExecutionOptions) => void | PromiseLike<void>) | undefined;
265
+ } & {
266
+ execute: import("ai").ToolExecuteFunction<{
267
+ file_path: string;
268
+ content: string;
269
+ }, string>;
270
+ outputSchema?: import("ai").FlexibleSchema<string> | undefined;
271
+ } & {
272
+ toModelOutput?: ((options: {
273
+ toolCallId: string;
274
+ input: {
275
+ file_path: string;
276
+ content: string;
277
+ };
278
+ output: string;
279
+ }) => import("@ai-sdk/provider-utils").ToolResultOutput | PromiseLike<import("@ai-sdk/provider-utils").ToolResultOutput>) | undefined;
280
+ } & {
281
+ type: "provider";
282
+ id: `${string}.${string}`;
283
+ args: Record<string, unknown>;
284
+ supportsDeferredResults?: boolean;
285
+ });
286
+ Edit: ({
287
+ description?: string;
288
+ title?: string;
289
+ providerOptions?: import("@ai-sdk/provider-utils").ProviderOptions;
290
+ inputSchema: import("ai").FlexibleSchema<{
291
+ file_path: string;
292
+ old_string: string;
293
+ new_string: string;
294
+ replace_all: boolean;
295
+ }>;
296
+ inputExamples?: {
297
+ input: NoInfer<{
298
+ file_path: string;
299
+ old_string: string;
300
+ new_string: string;
301
+ replace_all: boolean;
302
+ }>;
303
+ }[] | undefined;
304
+ needsApproval?: boolean | import("@ai-sdk/provider-utils").ToolNeedsApprovalFunction<{
305
+ file_path: string;
306
+ old_string: string;
307
+ new_string: string;
308
+ replace_all: boolean;
309
+ }> | undefined;
310
+ strict?: boolean;
311
+ onInputStart?: (options: import("ai").ToolExecutionOptions) => void | PromiseLike<void>;
312
+ onInputDelta?: (options: {
313
+ inputTextDelta: string;
314
+ } & import("ai").ToolExecutionOptions) => void | PromiseLike<void>;
315
+ onInputAvailable?: ((options: {
316
+ input: {
317
+ file_path: string;
318
+ old_string: string;
319
+ new_string: string;
320
+ replace_all: boolean;
321
+ };
322
+ } & import("ai").ToolExecutionOptions) => void | PromiseLike<void>) | undefined;
323
+ } & {
324
+ outputSchema: import("ai").FlexibleSchema<string>;
325
+ execute?: never;
326
+ } & {
327
+ toModelOutput?: ((options: {
328
+ toolCallId: string;
329
+ input: {
330
+ file_path: string;
331
+ old_string: string;
332
+ new_string: string;
333
+ replace_all: boolean;
334
+ };
335
+ output: string;
336
+ }) => import("@ai-sdk/provider-utils").ToolResultOutput | PromiseLike<import("@ai-sdk/provider-utils").ToolResultOutput>) | undefined;
337
+ } & {
338
+ type?: undefined | "function";
339
+ }) | ({
340
+ description?: string;
341
+ title?: string;
342
+ providerOptions?: import("@ai-sdk/provider-utils").ProviderOptions;
343
+ inputSchema: import("ai").FlexibleSchema<{
344
+ file_path: string;
345
+ old_string: string;
346
+ new_string: string;
347
+ replace_all: boolean;
348
+ }>;
349
+ inputExamples?: {
350
+ input: NoInfer<{
351
+ file_path: string;
352
+ old_string: string;
353
+ new_string: string;
354
+ replace_all: boolean;
355
+ }>;
356
+ }[] | undefined;
357
+ needsApproval?: boolean | import("@ai-sdk/provider-utils").ToolNeedsApprovalFunction<{
358
+ file_path: string;
359
+ old_string: string;
360
+ new_string: string;
361
+ replace_all: boolean;
362
+ }> | undefined;
363
+ strict?: boolean;
364
+ onInputStart?: (options: import("ai").ToolExecutionOptions) => void | PromiseLike<void>;
365
+ onInputDelta?: (options: {
366
+ inputTextDelta: string;
367
+ } & import("ai").ToolExecutionOptions) => void | PromiseLike<void>;
368
+ onInputAvailable?: ((options: {
369
+ input: {
370
+ file_path: string;
371
+ old_string: string;
372
+ new_string: string;
373
+ replace_all: boolean;
374
+ };
375
+ } & import("ai").ToolExecutionOptions) => void | PromiseLike<void>) | undefined;
376
+ } & {
377
+ outputSchema: import("ai").FlexibleSchema<string>;
378
+ execute?: never;
379
+ } & {
380
+ toModelOutput?: ((options: {
381
+ toolCallId: string;
382
+ input: {
383
+ file_path: string;
384
+ old_string: string;
385
+ new_string: string;
386
+ replace_all: boolean;
387
+ };
388
+ output: string;
389
+ }) => import("@ai-sdk/provider-utils").ToolResultOutput | PromiseLike<import("@ai-sdk/provider-utils").ToolResultOutput>) | undefined;
390
+ } & {
391
+ type: "dynamic";
392
+ }) | ({
393
+ description?: string;
394
+ title?: string;
395
+ providerOptions?: import("@ai-sdk/provider-utils").ProviderOptions;
396
+ inputSchema: import("ai").FlexibleSchema<{
397
+ file_path: string;
398
+ old_string: string;
399
+ new_string: string;
400
+ replace_all: boolean;
401
+ }>;
402
+ inputExamples?: {
403
+ input: NoInfer<{
404
+ file_path: string;
405
+ old_string: string;
406
+ new_string: string;
407
+ replace_all: boolean;
408
+ }>;
409
+ }[] | undefined;
410
+ needsApproval?: boolean | import("@ai-sdk/provider-utils").ToolNeedsApprovalFunction<{
411
+ file_path: string;
412
+ old_string: string;
413
+ new_string: string;
414
+ replace_all: boolean;
415
+ }> | undefined;
416
+ strict?: boolean;
417
+ onInputStart?: (options: import("ai").ToolExecutionOptions) => void | PromiseLike<void>;
418
+ onInputDelta?: (options: {
419
+ inputTextDelta: string;
420
+ } & import("ai").ToolExecutionOptions) => void | PromiseLike<void>;
421
+ onInputAvailable?: ((options: {
422
+ input: {
423
+ file_path: string;
424
+ old_string: string;
425
+ new_string: string;
426
+ replace_all: boolean;
427
+ };
428
+ } & import("ai").ToolExecutionOptions) => void | PromiseLike<void>) | undefined;
429
+ } & {
430
+ outputSchema: import("ai").FlexibleSchema<string>;
431
+ execute?: never;
432
+ } & {
433
+ toModelOutput?: ((options: {
434
+ toolCallId: string;
435
+ input: {
436
+ file_path: string;
437
+ old_string: string;
438
+ new_string: string;
439
+ replace_all: boolean;
440
+ };
441
+ output: string;
442
+ }) => import("@ai-sdk/provider-utils").ToolResultOutput | PromiseLike<import("@ai-sdk/provider-utils").ToolResultOutput>) | undefined;
443
+ } & {
444
+ type: "provider";
445
+ id: `${string}.${string}`;
446
+ args: Record<string, unknown>;
447
+ supportsDeferredResults?: boolean;
448
+ }) | ({
449
+ description?: string;
450
+ title?: string;
451
+ providerOptions?: import("@ai-sdk/provider-utils").ProviderOptions;
452
+ inputSchema: import("ai").FlexibleSchema<{
453
+ file_path: string;
454
+ old_string: string;
455
+ new_string: string;
456
+ replace_all: boolean;
457
+ }>;
458
+ inputExamples?: {
459
+ input: NoInfer<{
460
+ file_path: string;
461
+ old_string: string;
462
+ new_string: string;
463
+ replace_all: boolean;
464
+ }>;
465
+ }[] | undefined;
466
+ needsApproval?: boolean | import("@ai-sdk/provider-utils").ToolNeedsApprovalFunction<{
467
+ file_path: string;
468
+ old_string: string;
469
+ new_string: string;
470
+ replace_all: boolean;
471
+ }> | undefined;
472
+ strict?: boolean;
473
+ onInputStart?: (options: import("ai").ToolExecutionOptions) => void | PromiseLike<void>;
474
+ onInputDelta?: (options: {
475
+ inputTextDelta: string;
476
+ } & import("ai").ToolExecutionOptions) => void | PromiseLike<void>;
477
+ onInputAvailable?: ((options: {
478
+ input: {
479
+ file_path: string;
480
+ old_string: string;
481
+ new_string: string;
482
+ replace_all: boolean;
483
+ };
484
+ } & import("ai").ToolExecutionOptions) => void | PromiseLike<void>) | undefined;
485
+ } & {
486
+ execute: import("ai").ToolExecuteFunction<{
487
+ file_path: string;
488
+ old_string: string;
489
+ new_string: string;
490
+ replace_all: boolean;
491
+ }, string>;
492
+ outputSchema?: import("ai").FlexibleSchema<string> | undefined;
493
+ } & {
494
+ toModelOutput?: ((options: {
495
+ toolCallId: string;
496
+ input: {
497
+ file_path: string;
498
+ old_string: string;
499
+ new_string: string;
500
+ replace_all: boolean;
501
+ };
502
+ output: string;
503
+ }) => import("@ai-sdk/provider-utils").ToolResultOutput | PromiseLike<import("@ai-sdk/provider-utils").ToolResultOutput>) | undefined;
504
+ } & {
505
+ type?: undefined | "function";
506
+ }) | ({
507
+ description?: string;
508
+ title?: string;
509
+ providerOptions?: import("@ai-sdk/provider-utils").ProviderOptions;
510
+ inputSchema: import("ai").FlexibleSchema<{
511
+ file_path: string;
512
+ old_string: string;
513
+ new_string: string;
514
+ replace_all: boolean;
515
+ }>;
516
+ inputExamples?: {
517
+ input: NoInfer<{
518
+ file_path: string;
519
+ old_string: string;
520
+ new_string: string;
521
+ replace_all: boolean;
522
+ }>;
523
+ }[] | undefined;
524
+ needsApproval?: boolean | import("@ai-sdk/provider-utils").ToolNeedsApprovalFunction<{
525
+ file_path: string;
526
+ old_string: string;
527
+ new_string: string;
528
+ replace_all: boolean;
529
+ }> | undefined;
530
+ strict?: boolean;
531
+ onInputStart?: (options: import("ai").ToolExecutionOptions) => void | PromiseLike<void>;
532
+ onInputDelta?: (options: {
533
+ inputTextDelta: string;
534
+ } & import("ai").ToolExecutionOptions) => void | PromiseLike<void>;
535
+ onInputAvailable?: ((options: {
536
+ input: {
537
+ file_path: string;
538
+ old_string: string;
539
+ new_string: string;
540
+ replace_all: boolean;
541
+ };
542
+ } & import("ai").ToolExecutionOptions) => void | PromiseLike<void>) | undefined;
543
+ } & {
544
+ execute: import("ai").ToolExecuteFunction<{
545
+ file_path: string;
546
+ old_string: string;
547
+ new_string: string;
548
+ replace_all: boolean;
549
+ }, string>;
550
+ outputSchema?: import("ai").FlexibleSchema<string> | undefined;
551
+ } & {
552
+ toModelOutput?: ((options: {
553
+ toolCallId: string;
554
+ input: {
555
+ file_path: string;
556
+ old_string: string;
557
+ new_string: string;
558
+ replace_all: boolean;
559
+ };
560
+ output: string;
561
+ }) => import("@ai-sdk/provider-utils").ToolResultOutput | PromiseLike<import("@ai-sdk/provider-utils").ToolResultOutput>) | undefined;
562
+ } & {
563
+ type: "dynamic";
564
+ }) | ({
565
+ description?: string;
566
+ title?: string;
567
+ providerOptions?: import("@ai-sdk/provider-utils").ProviderOptions;
568
+ inputSchema: import("ai").FlexibleSchema<{
569
+ file_path: string;
570
+ old_string: string;
571
+ new_string: string;
572
+ replace_all: boolean;
573
+ }>;
574
+ inputExamples?: {
575
+ input: NoInfer<{
576
+ file_path: string;
577
+ old_string: string;
578
+ new_string: string;
579
+ replace_all: boolean;
580
+ }>;
581
+ }[] | undefined;
582
+ needsApproval?: boolean | import("@ai-sdk/provider-utils").ToolNeedsApprovalFunction<{
583
+ file_path: string;
584
+ old_string: string;
585
+ new_string: string;
586
+ replace_all: boolean;
587
+ }> | undefined;
588
+ strict?: boolean;
589
+ onInputStart?: (options: import("ai").ToolExecutionOptions) => void | PromiseLike<void>;
590
+ onInputDelta?: (options: {
591
+ inputTextDelta: string;
592
+ } & import("ai").ToolExecutionOptions) => void | PromiseLike<void>;
593
+ onInputAvailable?: ((options: {
594
+ input: {
595
+ file_path: string;
596
+ old_string: string;
597
+ new_string: string;
598
+ replace_all: boolean;
599
+ };
600
+ } & import("ai").ToolExecutionOptions) => void | PromiseLike<void>) | undefined;
601
+ } & {
602
+ execute: import("ai").ToolExecuteFunction<{
603
+ file_path: string;
604
+ old_string: string;
605
+ new_string: string;
606
+ replace_all: boolean;
607
+ }, string>;
608
+ outputSchema?: import("ai").FlexibleSchema<string> | undefined;
609
+ } & {
610
+ toModelOutput?: ((options: {
611
+ toolCallId: string;
612
+ input: {
613
+ file_path: string;
614
+ old_string: string;
615
+ new_string: string;
616
+ replace_all: boolean;
617
+ };
618
+ output: string;
619
+ }) => import("@ai-sdk/provider-utils").ToolResultOutput | PromiseLike<import("@ai-sdk/provider-utils").ToolResultOutput>) | undefined;
620
+ } & {
621
+ type: "provider";
622
+ id: `${string}.${string}`;
623
+ args: Record<string, unknown>;
624
+ supportsDeferredResults?: boolean;
625
+ });
626
+ Bash: ({
627
+ description?: string;
628
+ title?: string;
629
+ providerOptions?: import("@ai-sdk/provider-utils").ProviderOptions;
630
+ inputSchema: import("ai").FlexibleSchema<{
631
+ command: string;
632
+ timeout?: number | undefined;
633
+ }>;
634
+ inputExamples?: {
635
+ input: NoInfer<{
636
+ command: string;
637
+ timeout?: number | undefined;
638
+ }>;
639
+ }[] | undefined;
640
+ needsApproval?: boolean | import("@ai-sdk/provider-utils").ToolNeedsApprovalFunction<{
641
+ command: string;
642
+ timeout?: number | undefined;
643
+ }> | undefined;
644
+ strict?: boolean;
645
+ onInputStart?: (options: import("ai").ToolExecutionOptions) => void | PromiseLike<void>;
646
+ onInputDelta?: (options: {
647
+ inputTextDelta: string;
648
+ } & import("ai").ToolExecutionOptions) => void | PromiseLike<void>;
649
+ onInputAvailable?: ((options: {
650
+ input: {
651
+ command: string;
652
+ timeout?: number | undefined;
653
+ };
654
+ } & import("ai").ToolExecutionOptions) => void | PromiseLike<void>) | undefined;
655
+ } & {
656
+ outputSchema: import("ai").FlexibleSchema<string>;
657
+ execute?: never;
658
+ } & {
659
+ toModelOutput?: ((options: {
660
+ toolCallId: string;
661
+ input: {
662
+ command: string;
663
+ timeout?: number | undefined;
664
+ };
665
+ output: string;
666
+ }) => import("@ai-sdk/provider-utils").ToolResultOutput | PromiseLike<import("@ai-sdk/provider-utils").ToolResultOutput>) | undefined;
667
+ } & {
668
+ type?: undefined | "function";
669
+ }) | ({
670
+ description?: string;
671
+ title?: string;
672
+ providerOptions?: import("@ai-sdk/provider-utils").ProviderOptions;
673
+ inputSchema: import("ai").FlexibleSchema<{
674
+ command: string;
675
+ timeout?: number | undefined;
676
+ }>;
677
+ inputExamples?: {
678
+ input: NoInfer<{
679
+ command: string;
680
+ timeout?: number | undefined;
681
+ }>;
682
+ }[] | undefined;
683
+ needsApproval?: boolean | import("@ai-sdk/provider-utils").ToolNeedsApprovalFunction<{
684
+ command: string;
685
+ timeout?: number | undefined;
686
+ }> | undefined;
687
+ strict?: boolean;
688
+ onInputStart?: (options: import("ai").ToolExecutionOptions) => void | PromiseLike<void>;
689
+ onInputDelta?: (options: {
690
+ inputTextDelta: string;
691
+ } & import("ai").ToolExecutionOptions) => void | PromiseLike<void>;
692
+ onInputAvailable?: ((options: {
693
+ input: {
694
+ command: string;
695
+ timeout?: number | undefined;
696
+ };
697
+ } & import("ai").ToolExecutionOptions) => void | PromiseLike<void>) | undefined;
698
+ } & {
699
+ outputSchema: import("ai").FlexibleSchema<string>;
700
+ execute?: never;
701
+ } & {
702
+ toModelOutput?: ((options: {
703
+ toolCallId: string;
704
+ input: {
705
+ command: string;
706
+ timeout?: number | undefined;
707
+ };
708
+ output: string;
709
+ }) => import("@ai-sdk/provider-utils").ToolResultOutput | PromiseLike<import("@ai-sdk/provider-utils").ToolResultOutput>) | undefined;
710
+ } & {
711
+ type: "dynamic";
712
+ }) | ({
713
+ description?: string;
714
+ title?: string;
715
+ providerOptions?: import("@ai-sdk/provider-utils").ProviderOptions;
716
+ inputSchema: import("ai").FlexibleSchema<{
717
+ command: string;
718
+ timeout?: number | undefined;
719
+ }>;
720
+ inputExamples?: {
721
+ input: NoInfer<{
722
+ command: string;
723
+ timeout?: number | undefined;
724
+ }>;
725
+ }[] | undefined;
726
+ needsApproval?: boolean | import("@ai-sdk/provider-utils").ToolNeedsApprovalFunction<{
727
+ command: string;
728
+ timeout?: number | undefined;
729
+ }> | undefined;
730
+ strict?: boolean;
731
+ onInputStart?: (options: import("ai").ToolExecutionOptions) => void | PromiseLike<void>;
732
+ onInputDelta?: (options: {
733
+ inputTextDelta: string;
734
+ } & import("ai").ToolExecutionOptions) => void | PromiseLike<void>;
735
+ onInputAvailable?: ((options: {
736
+ input: {
737
+ command: string;
738
+ timeout?: number | undefined;
739
+ };
740
+ } & import("ai").ToolExecutionOptions) => void | PromiseLike<void>) | undefined;
741
+ } & {
742
+ outputSchema: import("ai").FlexibleSchema<string>;
743
+ execute?: never;
744
+ } & {
745
+ toModelOutput?: ((options: {
746
+ toolCallId: string;
747
+ input: {
748
+ command: string;
749
+ timeout?: number | undefined;
750
+ };
751
+ output: string;
752
+ }) => import("@ai-sdk/provider-utils").ToolResultOutput | PromiseLike<import("@ai-sdk/provider-utils").ToolResultOutput>) | undefined;
753
+ } & {
754
+ type: "provider";
755
+ id: `${string}.${string}`;
756
+ args: Record<string, unknown>;
757
+ supportsDeferredResults?: boolean;
758
+ }) | ({
759
+ description?: string;
760
+ title?: string;
761
+ providerOptions?: import("@ai-sdk/provider-utils").ProviderOptions;
762
+ inputSchema: import("ai").FlexibleSchema<{
763
+ command: string;
764
+ timeout?: number | undefined;
765
+ }>;
766
+ inputExamples?: {
767
+ input: NoInfer<{
768
+ command: string;
769
+ timeout?: number | undefined;
770
+ }>;
771
+ }[] | undefined;
772
+ needsApproval?: boolean | import("@ai-sdk/provider-utils").ToolNeedsApprovalFunction<{
773
+ command: string;
774
+ timeout?: number | undefined;
775
+ }> | undefined;
776
+ strict?: boolean;
777
+ onInputStart?: (options: import("ai").ToolExecutionOptions) => void | PromiseLike<void>;
778
+ onInputDelta?: (options: {
779
+ inputTextDelta: string;
780
+ } & import("ai").ToolExecutionOptions) => void | PromiseLike<void>;
781
+ onInputAvailable?: ((options: {
782
+ input: {
783
+ command: string;
784
+ timeout?: number | undefined;
785
+ };
786
+ } & import("ai").ToolExecutionOptions) => void | PromiseLike<void>) | undefined;
787
+ } & {
788
+ execute: import("ai").ToolExecuteFunction<{
789
+ command: string;
790
+ timeout?: number | undefined;
791
+ }, string>;
792
+ outputSchema?: import("ai").FlexibleSchema<string> | undefined;
793
+ } & {
794
+ toModelOutput?: ((options: {
795
+ toolCallId: string;
796
+ input: {
797
+ command: string;
798
+ timeout?: number | undefined;
799
+ };
800
+ output: string;
801
+ }) => import("@ai-sdk/provider-utils").ToolResultOutput | PromiseLike<import("@ai-sdk/provider-utils").ToolResultOutput>) | undefined;
802
+ } & {
803
+ type?: undefined | "function";
804
+ }) | ({
805
+ description?: string;
806
+ title?: string;
807
+ providerOptions?: import("@ai-sdk/provider-utils").ProviderOptions;
808
+ inputSchema: import("ai").FlexibleSchema<{
809
+ command: string;
810
+ timeout?: number | undefined;
811
+ }>;
812
+ inputExamples?: {
813
+ input: NoInfer<{
814
+ command: string;
815
+ timeout?: number | undefined;
816
+ }>;
817
+ }[] | undefined;
818
+ needsApproval?: boolean | import("@ai-sdk/provider-utils").ToolNeedsApprovalFunction<{
819
+ command: string;
820
+ timeout?: number | undefined;
821
+ }> | undefined;
822
+ strict?: boolean;
823
+ onInputStart?: (options: import("ai").ToolExecutionOptions) => void | PromiseLike<void>;
824
+ onInputDelta?: (options: {
825
+ inputTextDelta: string;
826
+ } & import("ai").ToolExecutionOptions) => void | PromiseLike<void>;
827
+ onInputAvailable?: ((options: {
828
+ input: {
829
+ command: string;
830
+ timeout?: number | undefined;
831
+ };
832
+ } & import("ai").ToolExecutionOptions) => void | PromiseLike<void>) | undefined;
833
+ } & {
834
+ execute: import("ai").ToolExecuteFunction<{
835
+ command: string;
836
+ timeout?: number | undefined;
837
+ }, string>;
838
+ outputSchema?: import("ai").FlexibleSchema<string> | undefined;
839
+ } & {
840
+ toModelOutput?: ((options: {
841
+ toolCallId: string;
842
+ input: {
843
+ command: string;
844
+ timeout?: number | undefined;
845
+ };
846
+ output: string;
847
+ }) => import("@ai-sdk/provider-utils").ToolResultOutput | PromiseLike<import("@ai-sdk/provider-utils").ToolResultOutput>) | undefined;
848
+ } & {
849
+ type: "dynamic";
850
+ }) | ({
851
+ description?: string;
852
+ title?: string;
853
+ providerOptions?: import("@ai-sdk/provider-utils").ProviderOptions;
854
+ inputSchema: import("ai").FlexibleSchema<{
855
+ command: string;
856
+ timeout?: number | undefined;
857
+ }>;
858
+ inputExamples?: {
859
+ input: NoInfer<{
860
+ command: string;
861
+ timeout?: number | undefined;
862
+ }>;
863
+ }[] | undefined;
864
+ needsApproval?: boolean | import("@ai-sdk/provider-utils").ToolNeedsApprovalFunction<{
865
+ command: string;
866
+ timeout?: number | undefined;
867
+ }> | undefined;
868
+ strict?: boolean;
869
+ onInputStart?: (options: import("ai").ToolExecutionOptions) => void | PromiseLike<void>;
870
+ onInputDelta?: (options: {
871
+ inputTextDelta: string;
872
+ } & import("ai").ToolExecutionOptions) => void | PromiseLike<void>;
873
+ onInputAvailable?: ((options: {
874
+ input: {
875
+ command: string;
876
+ timeout?: number | undefined;
877
+ };
878
+ } & import("ai").ToolExecutionOptions) => void | PromiseLike<void>) | undefined;
879
+ } & {
880
+ execute: import("ai").ToolExecuteFunction<{
881
+ command: string;
882
+ timeout?: number | undefined;
883
+ }, string>;
884
+ outputSchema?: import("ai").FlexibleSchema<string> | undefined;
885
+ } & {
886
+ toModelOutput?: ((options: {
887
+ toolCallId: string;
888
+ input: {
889
+ command: string;
890
+ timeout?: number | undefined;
891
+ };
892
+ output: string;
893
+ }) => import("@ai-sdk/provider-utils").ToolResultOutput | PromiseLike<import("@ai-sdk/provider-utils").ToolResultOutput>) | undefined;
894
+ } & {
895
+ type: "provider";
896
+ id: `${string}.${string}`;
897
+ args: Record<string, unknown>;
898
+ supportsDeferredResults?: boolean;
899
+ });
900
+ Glob: import("ai").Tool<{
901
+ pattern: string;
902
+ path?: string | undefined;
903
+ }, string>;
904
+ Grep: import("ai").Tool<{
905
+ pattern: string;
906
+ output_mode: "content" | "files_with_matches" | "count";
907
+ path?: string | undefined;
908
+ glob?: string | undefined;
909
+ }, string>;
910
+ ListDir: import("ai").Tool<{
911
+ path: string;
912
+ depth: number;
913
+ ignore: string[];
914
+ }, string>;
915
+ MultiEdit: ({
916
+ description?: string;
917
+ title?: string;
918
+ providerOptions?: import("@ai-sdk/provider-utils").ProviderOptions;
919
+ inputSchema: import("ai").FlexibleSchema<{
920
+ file_path: string;
921
+ edits: {
922
+ old_string: string;
923
+ new_string: string;
924
+ replace_all: boolean;
925
+ }[];
926
+ }>;
927
+ inputExamples?: {
928
+ input: NoInfer<{
929
+ file_path: string;
930
+ edits: {
931
+ old_string: string;
932
+ new_string: string;
933
+ replace_all: boolean;
934
+ }[];
935
+ }>;
936
+ }[] | undefined;
937
+ needsApproval?: boolean | import("@ai-sdk/provider-utils").ToolNeedsApprovalFunction<{
938
+ file_path: string;
939
+ edits: {
940
+ old_string: string;
941
+ new_string: string;
942
+ replace_all: boolean;
943
+ }[];
944
+ }> | undefined;
945
+ strict?: boolean;
946
+ onInputStart?: (options: import("ai").ToolExecutionOptions) => void | PromiseLike<void>;
947
+ onInputDelta?: (options: {
948
+ inputTextDelta: string;
949
+ } & import("ai").ToolExecutionOptions) => void | PromiseLike<void>;
950
+ onInputAvailable?: ((options: {
951
+ input: {
952
+ file_path: string;
953
+ edits: {
954
+ old_string: string;
955
+ new_string: string;
956
+ replace_all: boolean;
957
+ }[];
958
+ };
959
+ } & import("ai").ToolExecutionOptions) => void | PromiseLike<void>) | undefined;
960
+ } & {
961
+ outputSchema: import("ai").FlexibleSchema<string>;
962
+ execute?: never;
963
+ } & {
964
+ toModelOutput?: ((options: {
965
+ toolCallId: string;
966
+ input: {
967
+ file_path: string;
968
+ edits: {
969
+ old_string: string;
970
+ new_string: string;
971
+ replace_all: boolean;
972
+ }[];
973
+ };
974
+ output: string;
975
+ }) => import("@ai-sdk/provider-utils").ToolResultOutput | PromiseLike<import("@ai-sdk/provider-utils").ToolResultOutput>) | undefined;
976
+ } & {
977
+ type?: undefined | "function";
978
+ }) | ({
979
+ description?: string;
980
+ title?: string;
981
+ providerOptions?: import("@ai-sdk/provider-utils").ProviderOptions;
982
+ inputSchema: import("ai").FlexibleSchema<{
983
+ file_path: string;
984
+ edits: {
985
+ old_string: string;
986
+ new_string: string;
987
+ replace_all: boolean;
988
+ }[];
989
+ }>;
990
+ inputExamples?: {
991
+ input: NoInfer<{
992
+ file_path: string;
993
+ edits: {
994
+ old_string: string;
995
+ new_string: string;
996
+ replace_all: boolean;
997
+ }[];
998
+ }>;
999
+ }[] | undefined;
1000
+ needsApproval?: boolean | import("@ai-sdk/provider-utils").ToolNeedsApprovalFunction<{
1001
+ file_path: string;
1002
+ edits: {
1003
+ old_string: string;
1004
+ new_string: string;
1005
+ replace_all: boolean;
1006
+ }[];
1007
+ }> | undefined;
1008
+ strict?: boolean;
1009
+ onInputStart?: (options: import("ai").ToolExecutionOptions) => void | PromiseLike<void>;
1010
+ onInputDelta?: (options: {
1011
+ inputTextDelta: string;
1012
+ } & import("ai").ToolExecutionOptions) => void | PromiseLike<void>;
1013
+ onInputAvailable?: ((options: {
1014
+ input: {
1015
+ file_path: string;
1016
+ edits: {
1017
+ old_string: string;
1018
+ new_string: string;
1019
+ replace_all: boolean;
1020
+ }[];
1021
+ };
1022
+ } & import("ai").ToolExecutionOptions) => void | PromiseLike<void>) | undefined;
1023
+ } & {
1024
+ outputSchema: import("ai").FlexibleSchema<string>;
1025
+ execute?: never;
1026
+ } & {
1027
+ toModelOutput?: ((options: {
1028
+ toolCallId: string;
1029
+ input: {
1030
+ file_path: string;
1031
+ edits: {
1032
+ old_string: string;
1033
+ new_string: string;
1034
+ replace_all: boolean;
1035
+ }[];
1036
+ };
1037
+ output: string;
1038
+ }) => import("@ai-sdk/provider-utils").ToolResultOutput | PromiseLike<import("@ai-sdk/provider-utils").ToolResultOutput>) | undefined;
1039
+ } & {
1040
+ type: "dynamic";
1041
+ }) | ({
1042
+ description?: string;
1043
+ title?: string;
1044
+ providerOptions?: import("@ai-sdk/provider-utils").ProviderOptions;
1045
+ inputSchema: import("ai").FlexibleSchema<{
1046
+ file_path: string;
1047
+ edits: {
1048
+ old_string: string;
1049
+ new_string: string;
1050
+ replace_all: boolean;
1051
+ }[];
1052
+ }>;
1053
+ inputExamples?: {
1054
+ input: NoInfer<{
1055
+ file_path: string;
1056
+ edits: {
1057
+ old_string: string;
1058
+ new_string: string;
1059
+ replace_all: boolean;
1060
+ }[];
1061
+ }>;
1062
+ }[] | undefined;
1063
+ needsApproval?: boolean | import("@ai-sdk/provider-utils").ToolNeedsApprovalFunction<{
1064
+ file_path: string;
1065
+ edits: {
1066
+ old_string: string;
1067
+ new_string: string;
1068
+ replace_all: boolean;
1069
+ }[];
1070
+ }> | undefined;
1071
+ strict?: boolean;
1072
+ onInputStart?: (options: import("ai").ToolExecutionOptions) => void | PromiseLike<void>;
1073
+ onInputDelta?: (options: {
1074
+ inputTextDelta: string;
1075
+ } & import("ai").ToolExecutionOptions) => void | PromiseLike<void>;
1076
+ onInputAvailable?: ((options: {
1077
+ input: {
1078
+ file_path: string;
1079
+ edits: {
1080
+ old_string: string;
1081
+ new_string: string;
1082
+ replace_all: boolean;
1083
+ }[];
1084
+ };
1085
+ } & import("ai").ToolExecutionOptions) => void | PromiseLike<void>) | undefined;
1086
+ } & {
1087
+ outputSchema: import("ai").FlexibleSchema<string>;
1088
+ execute?: never;
1089
+ } & {
1090
+ toModelOutput?: ((options: {
1091
+ toolCallId: string;
1092
+ input: {
1093
+ file_path: string;
1094
+ edits: {
1095
+ old_string: string;
1096
+ new_string: string;
1097
+ replace_all: boolean;
1098
+ }[];
1099
+ };
1100
+ output: string;
1101
+ }) => import("@ai-sdk/provider-utils").ToolResultOutput | PromiseLike<import("@ai-sdk/provider-utils").ToolResultOutput>) | undefined;
1102
+ } & {
1103
+ type: "provider";
1104
+ id: `${string}.${string}`;
1105
+ args: Record<string, unknown>;
1106
+ supportsDeferredResults?: boolean;
1107
+ }) | ({
1108
+ description?: string;
1109
+ title?: string;
1110
+ providerOptions?: import("@ai-sdk/provider-utils").ProviderOptions;
1111
+ inputSchema: import("ai").FlexibleSchema<{
1112
+ file_path: string;
1113
+ edits: {
1114
+ old_string: string;
1115
+ new_string: string;
1116
+ replace_all: boolean;
1117
+ }[];
1118
+ }>;
1119
+ inputExamples?: {
1120
+ input: NoInfer<{
1121
+ file_path: string;
1122
+ edits: {
1123
+ old_string: string;
1124
+ new_string: string;
1125
+ replace_all: boolean;
1126
+ }[];
1127
+ }>;
1128
+ }[] | undefined;
1129
+ needsApproval?: boolean | import("@ai-sdk/provider-utils").ToolNeedsApprovalFunction<{
1130
+ file_path: string;
1131
+ edits: {
1132
+ old_string: string;
1133
+ new_string: string;
1134
+ replace_all: boolean;
1135
+ }[];
1136
+ }> | undefined;
1137
+ strict?: boolean;
1138
+ onInputStart?: (options: import("ai").ToolExecutionOptions) => void | PromiseLike<void>;
1139
+ onInputDelta?: (options: {
1140
+ inputTextDelta: string;
1141
+ } & import("ai").ToolExecutionOptions) => void | PromiseLike<void>;
1142
+ onInputAvailable?: ((options: {
1143
+ input: {
1144
+ file_path: string;
1145
+ edits: {
1146
+ old_string: string;
1147
+ new_string: string;
1148
+ replace_all: boolean;
1149
+ }[];
1150
+ };
1151
+ } & import("ai").ToolExecutionOptions) => void | PromiseLike<void>) | undefined;
1152
+ } & {
1153
+ execute: import("ai").ToolExecuteFunction<{
1154
+ file_path: string;
1155
+ edits: {
1156
+ old_string: string;
1157
+ new_string: string;
1158
+ replace_all: boolean;
1159
+ }[];
1160
+ }, string>;
1161
+ outputSchema?: import("ai").FlexibleSchema<string> | undefined;
1162
+ } & {
1163
+ toModelOutput?: ((options: {
1164
+ toolCallId: string;
1165
+ input: {
1166
+ file_path: string;
1167
+ edits: {
1168
+ old_string: string;
1169
+ new_string: string;
1170
+ replace_all: boolean;
1171
+ }[];
1172
+ };
1173
+ output: string;
1174
+ }) => import("@ai-sdk/provider-utils").ToolResultOutput | PromiseLike<import("@ai-sdk/provider-utils").ToolResultOutput>) | undefined;
1175
+ } & {
1176
+ type?: undefined | "function";
1177
+ }) | ({
1178
+ description?: string;
1179
+ title?: string;
1180
+ providerOptions?: import("@ai-sdk/provider-utils").ProviderOptions;
1181
+ inputSchema: import("ai").FlexibleSchema<{
1182
+ file_path: string;
1183
+ edits: {
1184
+ old_string: string;
1185
+ new_string: string;
1186
+ replace_all: boolean;
1187
+ }[];
1188
+ }>;
1189
+ inputExamples?: {
1190
+ input: NoInfer<{
1191
+ file_path: string;
1192
+ edits: {
1193
+ old_string: string;
1194
+ new_string: string;
1195
+ replace_all: boolean;
1196
+ }[];
1197
+ }>;
1198
+ }[] | undefined;
1199
+ needsApproval?: boolean | import("@ai-sdk/provider-utils").ToolNeedsApprovalFunction<{
1200
+ file_path: string;
1201
+ edits: {
1202
+ old_string: string;
1203
+ new_string: string;
1204
+ replace_all: boolean;
1205
+ }[];
1206
+ }> | undefined;
1207
+ strict?: boolean;
1208
+ onInputStart?: (options: import("ai").ToolExecutionOptions) => void | PromiseLike<void>;
1209
+ onInputDelta?: (options: {
1210
+ inputTextDelta: string;
1211
+ } & import("ai").ToolExecutionOptions) => void | PromiseLike<void>;
1212
+ onInputAvailable?: ((options: {
1213
+ input: {
1214
+ file_path: string;
1215
+ edits: {
1216
+ old_string: string;
1217
+ new_string: string;
1218
+ replace_all: boolean;
1219
+ }[];
1220
+ };
1221
+ } & import("ai").ToolExecutionOptions) => void | PromiseLike<void>) | undefined;
1222
+ } & {
1223
+ execute: import("ai").ToolExecuteFunction<{
1224
+ file_path: string;
1225
+ edits: {
1226
+ old_string: string;
1227
+ new_string: string;
1228
+ replace_all: boolean;
1229
+ }[];
1230
+ }, string>;
1231
+ outputSchema?: import("ai").FlexibleSchema<string> | undefined;
1232
+ } & {
1233
+ toModelOutput?: ((options: {
1234
+ toolCallId: string;
1235
+ input: {
1236
+ file_path: string;
1237
+ edits: {
1238
+ old_string: string;
1239
+ new_string: string;
1240
+ replace_all: boolean;
1241
+ }[];
1242
+ };
1243
+ output: string;
1244
+ }) => import("@ai-sdk/provider-utils").ToolResultOutput | PromiseLike<import("@ai-sdk/provider-utils").ToolResultOutput>) | undefined;
1245
+ } & {
1246
+ type: "dynamic";
1247
+ }) | ({
1248
+ description?: string;
1249
+ title?: string;
1250
+ providerOptions?: import("@ai-sdk/provider-utils").ProviderOptions;
1251
+ inputSchema: import("ai").FlexibleSchema<{
1252
+ file_path: string;
1253
+ edits: {
1254
+ old_string: string;
1255
+ new_string: string;
1256
+ replace_all: boolean;
1257
+ }[];
1258
+ }>;
1259
+ inputExamples?: {
1260
+ input: NoInfer<{
1261
+ file_path: string;
1262
+ edits: {
1263
+ old_string: string;
1264
+ new_string: string;
1265
+ replace_all: boolean;
1266
+ }[];
1267
+ }>;
1268
+ }[] | undefined;
1269
+ needsApproval?: boolean | import("@ai-sdk/provider-utils").ToolNeedsApprovalFunction<{
1270
+ file_path: string;
1271
+ edits: {
1272
+ old_string: string;
1273
+ new_string: string;
1274
+ replace_all: boolean;
1275
+ }[];
1276
+ }> | undefined;
1277
+ strict?: boolean;
1278
+ onInputStart?: (options: import("ai").ToolExecutionOptions) => void | PromiseLike<void>;
1279
+ onInputDelta?: (options: {
1280
+ inputTextDelta: string;
1281
+ } & import("ai").ToolExecutionOptions) => void | PromiseLike<void>;
1282
+ onInputAvailable?: ((options: {
1283
+ input: {
1284
+ file_path: string;
1285
+ edits: {
1286
+ old_string: string;
1287
+ new_string: string;
1288
+ replace_all: boolean;
1289
+ }[];
1290
+ };
1291
+ } & import("ai").ToolExecutionOptions) => void | PromiseLike<void>) | undefined;
1292
+ } & {
1293
+ execute: import("ai").ToolExecuteFunction<{
1294
+ file_path: string;
1295
+ edits: {
1296
+ old_string: string;
1297
+ new_string: string;
1298
+ replace_all: boolean;
1299
+ }[];
1300
+ }, string>;
1301
+ outputSchema?: import("ai").FlexibleSchema<string> | undefined;
1302
+ } & {
1303
+ toModelOutput?: ((options: {
1304
+ toolCallId: string;
1305
+ input: {
1306
+ file_path: string;
1307
+ edits: {
1308
+ old_string: string;
1309
+ new_string: string;
1310
+ replace_all: boolean;
1311
+ }[];
1312
+ };
1313
+ output: string;
1314
+ }) => import("@ai-sdk/provider-utils").ToolResultOutput | PromiseLike<import("@ai-sdk/provider-utils").ToolResultOutput>) | undefined;
1315
+ } & {
1316
+ type: "provider";
1317
+ id: `${string}.${string}`;
1318
+ args: Record<string, unknown>;
1319
+ supportsDeferredResults?: boolean;
1320
+ });
1321
+ TodoWrite: import("ai").Tool<{
1322
+ todos: {
1323
+ status: "pending" | "in_progress" | "completed";
1324
+ id: string;
1325
+ content: string;
1326
+ priority: "high" | "medium" | "low";
1327
+ }[];
1328
+ }, string>;
1329
+ TodoRead: import("ai").Tool<{}, string>;
1330
+ Diagnostics: import("ai").Tool<{
1331
+ file_path?: string | undefined;
1332
+ command?: string | undefined;
1333
+ }, string>;
1334
+ AskUser: import("ai").Tool<{
1335
+ question: string;
1336
+ options?: string[] | undefined;
1337
+ }, string>;
1338
+ WebFetch: import("ai").Tool<{
1339
+ url: string;
1340
+ prompt?: string | undefined;
1341
+ }, string>;
1342
+ WebSearch: import("ai").Tool<{
1343
+ query: string;
1344
+ numResults: number;
1345
+ }, string>;
1346
+ Task: import("ai").Tool<{
1347
+ description: string;
1348
+ prompt: string;
1349
+ }, string>;
1350
+ Batch: import("ai").Tool<{
1351
+ tool_calls: {
1352
+ tool: string;
1353
+ parameters: Record<string, any>;
1354
+ }[];
1355
+ }, string>;
1356
+ ApplyPatch: ({
1357
+ description?: string;
1358
+ title?: string;
1359
+ providerOptions?: import("@ai-sdk/provider-utils").ProviderOptions;
1360
+ inputSchema: import("ai").FlexibleSchema<{
1361
+ patch: string;
1362
+ }>;
1363
+ inputExamples?: {
1364
+ input: NoInfer<{
1365
+ patch: string;
1366
+ }>;
1367
+ }[] | undefined;
1368
+ needsApproval?: boolean | import("@ai-sdk/provider-utils").ToolNeedsApprovalFunction<{
1369
+ patch: string;
1370
+ }> | undefined;
1371
+ strict?: boolean;
1372
+ onInputStart?: (options: import("ai").ToolExecutionOptions) => void | PromiseLike<void>;
1373
+ onInputDelta?: (options: {
1374
+ inputTextDelta: string;
1375
+ } & import("ai").ToolExecutionOptions) => void | PromiseLike<void>;
1376
+ onInputAvailable?: ((options: {
1377
+ input: {
1378
+ patch: string;
1379
+ };
1380
+ } & import("ai").ToolExecutionOptions) => void | PromiseLike<void>) | undefined;
1381
+ } & {
1382
+ outputSchema: import("ai").FlexibleSchema<string>;
1383
+ execute?: never;
1384
+ } & {
1385
+ toModelOutput?: ((options: {
1386
+ toolCallId: string;
1387
+ input: {
1388
+ patch: string;
1389
+ };
1390
+ output: string;
1391
+ }) => import("@ai-sdk/provider-utils").ToolResultOutput | PromiseLike<import("@ai-sdk/provider-utils").ToolResultOutput>) | undefined;
1392
+ } & {
1393
+ type?: undefined | "function";
1394
+ }) | ({
1395
+ description?: string;
1396
+ title?: string;
1397
+ providerOptions?: import("@ai-sdk/provider-utils").ProviderOptions;
1398
+ inputSchema: import("ai").FlexibleSchema<{
1399
+ patch: string;
1400
+ }>;
1401
+ inputExamples?: {
1402
+ input: NoInfer<{
1403
+ patch: string;
1404
+ }>;
1405
+ }[] | undefined;
1406
+ needsApproval?: boolean | import("@ai-sdk/provider-utils").ToolNeedsApprovalFunction<{
1407
+ patch: string;
1408
+ }> | undefined;
1409
+ strict?: boolean;
1410
+ onInputStart?: (options: import("ai").ToolExecutionOptions) => void | PromiseLike<void>;
1411
+ onInputDelta?: (options: {
1412
+ inputTextDelta: string;
1413
+ } & import("ai").ToolExecutionOptions) => void | PromiseLike<void>;
1414
+ onInputAvailable?: ((options: {
1415
+ input: {
1416
+ patch: string;
1417
+ };
1418
+ } & import("ai").ToolExecutionOptions) => void | PromiseLike<void>) | undefined;
1419
+ } & {
1420
+ outputSchema: import("ai").FlexibleSchema<string>;
1421
+ execute?: never;
1422
+ } & {
1423
+ toModelOutput?: ((options: {
1424
+ toolCallId: string;
1425
+ input: {
1426
+ patch: string;
1427
+ };
1428
+ output: string;
1429
+ }) => import("@ai-sdk/provider-utils").ToolResultOutput | PromiseLike<import("@ai-sdk/provider-utils").ToolResultOutput>) | undefined;
1430
+ } & {
1431
+ type: "dynamic";
1432
+ }) | ({
1433
+ description?: string;
1434
+ title?: string;
1435
+ providerOptions?: import("@ai-sdk/provider-utils").ProviderOptions;
1436
+ inputSchema: import("ai").FlexibleSchema<{
1437
+ patch: string;
1438
+ }>;
1439
+ inputExamples?: {
1440
+ input: NoInfer<{
1441
+ patch: string;
1442
+ }>;
1443
+ }[] | undefined;
1444
+ needsApproval?: boolean | import("@ai-sdk/provider-utils").ToolNeedsApprovalFunction<{
1445
+ patch: string;
1446
+ }> | undefined;
1447
+ strict?: boolean;
1448
+ onInputStart?: (options: import("ai").ToolExecutionOptions) => void | PromiseLike<void>;
1449
+ onInputDelta?: (options: {
1450
+ inputTextDelta: string;
1451
+ } & import("ai").ToolExecutionOptions) => void | PromiseLike<void>;
1452
+ onInputAvailable?: ((options: {
1453
+ input: {
1454
+ patch: string;
1455
+ };
1456
+ } & import("ai").ToolExecutionOptions) => void | PromiseLike<void>) | undefined;
1457
+ } & {
1458
+ outputSchema: import("ai").FlexibleSchema<string>;
1459
+ execute?: never;
1460
+ } & {
1461
+ toModelOutput?: ((options: {
1462
+ toolCallId: string;
1463
+ input: {
1464
+ patch: string;
1465
+ };
1466
+ output: string;
1467
+ }) => import("@ai-sdk/provider-utils").ToolResultOutput | PromiseLike<import("@ai-sdk/provider-utils").ToolResultOutput>) | undefined;
1468
+ } & {
1469
+ type: "provider";
1470
+ id: `${string}.${string}`;
1471
+ args: Record<string, unknown>;
1472
+ supportsDeferredResults?: boolean;
1473
+ }) | ({
1474
+ description?: string;
1475
+ title?: string;
1476
+ providerOptions?: import("@ai-sdk/provider-utils").ProviderOptions;
1477
+ inputSchema: import("ai").FlexibleSchema<{
1478
+ patch: string;
1479
+ }>;
1480
+ inputExamples?: {
1481
+ input: NoInfer<{
1482
+ patch: string;
1483
+ }>;
1484
+ }[] | undefined;
1485
+ needsApproval?: boolean | import("@ai-sdk/provider-utils").ToolNeedsApprovalFunction<{
1486
+ patch: string;
1487
+ }> | undefined;
1488
+ strict?: boolean;
1489
+ onInputStart?: (options: import("ai").ToolExecutionOptions) => void | PromiseLike<void>;
1490
+ onInputDelta?: (options: {
1491
+ inputTextDelta: string;
1492
+ } & import("ai").ToolExecutionOptions) => void | PromiseLike<void>;
1493
+ onInputAvailable?: ((options: {
1494
+ input: {
1495
+ patch: string;
1496
+ };
1497
+ } & import("ai").ToolExecutionOptions) => void | PromiseLike<void>) | undefined;
1498
+ } & {
1499
+ execute: import("ai").ToolExecuteFunction<{
1500
+ patch: string;
1501
+ }, string>;
1502
+ outputSchema?: import("ai").FlexibleSchema<string> | undefined;
1503
+ } & {
1504
+ toModelOutput?: ((options: {
1505
+ toolCallId: string;
1506
+ input: {
1507
+ patch: string;
1508
+ };
1509
+ output: string;
1510
+ }) => import("@ai-sdk/provider-utils").ToolResultOutput | PromiseLike<import("@ai-sdk/provider-utils").ToolResultOutput>) | undefined;
1511
+ } & {
1512
+ type?: undefined | "function";
1513
+ }) | ({
1514
+ description?: string;
1515
+ title?: string;
1516
+ providerOptions?: import("@ai-sdk/provider-utils").ProviderOptions;
1517
+ inputSchema: import("ai").FlexibleSchema<{
1518
+ patch: string;
1519
+ }>;
1520
+ inputExamples?: {
1521
+ input: NoInfer<{
1522
+ patch: string;
1523
+ }>;
1524
+ }[] | undefined;
1525
+ needsApproval?: boolean | import("@ai-sdk/provider-utils").ToolNeedsApprovalFunction<{
1526
+ patch: string;
1527
+ }> | undefined;
1528
+ strict?: boolean;
1529
+ onInputStart?: (options: import("ai").ToolExecutionOptions) => void | PromiseLike<void>;
1530
+ onInputDelta?: (options: {
1531
+ inputTextDelta: string;
1532
+ } & import("ai").ToolExecutionOptions) => void | PromiseLike<void>;
1533
+ onInputAvailable?: ((options: {
1534
+ input: {
1535
+ patch: string;
1536
+ };
1537
+ } & import("ai").ToolExecutionOptions) => void | PromiseLike<void>) | undefined;
1538
+ } & {
1539
+ execute: import("ai").ToolExecuteFunction<{
1540
+ patch: string;
1541
+ }, string>;
1542
+ outputSchema?: import("ai").FlexibleSchema<string> | undefined;
1543
+ } & {
1544
+ toModelOutput?: ((options: {
1545
+ toolCallId: string;
1546
+ input: {
1547
+ patch: string;
1548
+ };
1549
+ output: string;
1550
+ }) => import("@ai-sdk/provider-utils").ToolResultOutput | PromiseLike<import("@ai-sdk/provider-utils").ToolResultOutput>) | undefined;
1551
+ } & {
1552
+ type: "dynamic";
1553
+ }) | ({
1554
+ description?: string;
1555
+ title?: string;
1556
+ providerOptions?: import("@ai-sdk/provider-utils").ProviderOptions;
1557
+ inputSchema: import("ai").FlexibleSchema<{
1558
+ patch: string;
1559
+ }>;
1560
+ inputExamples?: {
1561
+ input: NoInfer<{
1562
+ patch: string;
1563
+ }>;
1564
+ }[] | undefined;
1565
+ needsApproval?: boolean | import("@ai-sdk/provider-utils").ToolNeedsApprovalFunction<{
1566
+ patch: string;
1567
+ }> | undefined;
1568
+ strict?: boolean;
1569
+ onInputStart?: (options: import("ai").ToolExecutionOptions) => void | PromiseLike<void>;
1570
+ onInputDelta?: (options: {
1571
+ inputTextDelta: string;
1572
+ } & import("ai").ToolExecutionOptions) => void | PromiseLike<void>;
1573
+ onInputAvailable?: ((options: {
1574
+ input: {
1575
+ patch: string;
1576
+ };
1577
+ } & import("ai").ToolExecutionOptions) => void | PromiseLike<void>) | undefined;
1578
+ } & {
1579
+ execute: import("ai").ToolExecuteFunction<{
1580
+ patch: string;
1581
+ }, string>;
1582
+ outputSchema?: import("ai").FlexibleSchema<string> | undefined;
1583
+ } & {
1584
+ toModelOutput?: ((options: {
1585
+ toolCallId: string;
1586
+ input: {
1587
+ patch: string;
1588
+ };
1589
+ output: string;
1590
+ }) => import("@ai-sdk/provider-utils").ToolResultOutput | PromiseLike<import("@ai-sdk/provider-utils").ToolResultOutput>) | undefined;
1591
+ } & {
1592
+ type: "provider";
1593
+ id: `${string}.${string}`;
1594
+ args: Record<string, unknown>;
1595
+ supportsDeferredResults?: boolean;
1596
+ });
1597
+ CodeSearch: import("ai").Tool<{
1598
+ query: string;
1599
+ }, string>;
1600
+ HttpRequest: import("ai").Tool<{
1601
+ timeout: number;
1602
+ url: string;
1603
+ method: "GET" | "POST" | "PUT" | "PATCH" | "DELETE" | "HEAD" | "OPTIONS";
1604
+ headers?: Record<string, string> | undefined;
1605
+ body?: string | undefined;
1606
+ }, string>;
1607
+ ApiSpec: import("ai").Tool<{
1608
+ url: string;
1609
+ format: "auto" | "openapi";
1610
+ }, string>;
1611
+ };