@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,682 @@
1
+ export declare function createEditTool(opts?: {
2
+ autoApprove?: boolean;
3
+ }): ({
4
+ description?: string;
5
+ title?: string;
6
+ providerOptions?: import("@ai-sdk/provider-utils").ProviderOptions;
7
+ inputSchema: import("ai").FlexibleSchema<{
8
+ file_path: string;
9
+ old_string: string;
10
+ new_string: string;
11
+ replace_all: boolean;
12
+ }>;
13
+ inputExamples?: {
14
+ input: NoInfer<{
15
+ file_path: string;
16
+ old_string: string;
17
+ new_string: string;
18
+ replace_all: boolean;
19
+ }>;
20
+ }[] | undefined;
21
+ needsApproval?: boolean | import("@ai-sdk/provider-utils").ToolNeedsApprovalFunction<{
22
+ file_path: string;
23
+ old_string: string;
24
+ new_string: string;
25
+ replace_all: boolean;
26
+ }> | undefined;
27
+ strict?: boolean;
28
+ onInputStart?: (options: import("ai").ToolExecutionOptions) => void | PromiseLike<void>;
29
+ onInputDelta?: (options: {
30
+ inputTextDelta: string;
31
+ } & import("ai").ToolExecutionOptions) => void | PromiseLike<void>;
32
+ onInputAvailable?: ((options: {
33
+ input: {
34
+ file_path: string;
35
+ old_string: string;
36
+ new_string: string;
37
+ replace_all: boolean;
38
+ };
39
+ } & import("ai").ToolExecutionOptions) => void | PromiseLike<void>) | undefined;
40
+ } & {
41
+ outputSchema: import("ai").FlexibleSchema<string>;
42
+ execute?: never;
43
+ } & {
44
+ toModelOutput?: ((options: {
45
+ toolCallId: string;
46
+ input: {
47
+ file_path: string;
48
+ old_string: string;
49
+ new_string: string;
50
+ replace_all: boolean;
51
+ };
52
+ output: string;
53
+ }) => import("@ai-sdk/provider-utils").ToolResultOutput | PromiseLike<import("@ai-sdk/provider-utils").ToolResultOutput>) | undefined;
54
+ } & {
55
+ type?: undefined | "function";
56
+ }) | ({
57
+ description?: string;
58
+ title?: string;
59
+ providerOptions?: import("@ai-sdk/provider-utils").ProviderOptions;
60
+ inputSchema: import("ai").FlexibleSchema<{
61
+ file_path: string;
62
+ old_string: string;
63
+ new_string: string;
64
+ replace_all: boolean;
65
+ }>;
66
+ inputExamples?: {
67
+ input: NoInfer<{
68
+ file_path: string;
69
+ old_string: string;
70
+ new_string: string;
71
+ replace_all: boolean;
72
+ }>;
73
+ }[] | undefined;
74
+ needsApproval?: boolean | import("@ai-sdk/provider-utils").ToolNeedsApprovalFunction<{
75
+ file_path: string;
76
+ old_string: string;
77
+ new_string: string;
78
+ replace_all: boolean;
79
+ }> | undefined;
80
+ strict?: boolean;
81
+ onInputStart?: (options: import("ai").ToolExecutionOptions) => void | PromiseLike<void>;
82
+ onInputDelta?: (options: {
83
+ inputTextDelta: string;
84
+ } & import("ai").ToolExecutionOptions) => void | PromiseLike<void>;
85
+ onInputAvailable?: ((options: {
86
+ input: {
87
+ file_path: string;
88
+ old_string: string;
89
+ new_string: string;
90
+ replace_all: boolean;
91
+ };
92
+ } & import("ai").ToolExecutionOptions) => void | PromiseLike<void>) | undefined;
93
+ } & {
94
+ outputSchema: import("ai").FlexibleSchema<string>;
95
+ execute?: never;
96
+ } & {
97
+ toModelOutput?: ((options: {
98
+ toolCallId: string;
99
+ input: {
100
+ file_path: string;
101
+ old_string: string;
102
+ new_string: string;
103
+ replace_all: boolean;
104
+ };
105
+ output: string;
106
+ }) => import("@ai-sdk/provider-utils").ToolResultOutput | PromiseLike<import("@ai-sdk/provider-utils").ToolResultOutput>) | undefined;
107
+ } & {
108
+ type: "dynamic";
109
+ }) | ({
110
+ description?: string;
111
+ title?: string;
112
+ providerOptions?: import("@ai-sdk/provider-utils").ProviderOptions;
113
+ inputSchema: import("ai").FlexibleSchema<{
114
+ file_path: string;
115
+ old_string: string;
116
+ new_string: string;
117
+ replace_all: boolean;
118
+ }>;
119
+ inputExamples?: {
120
+ input: NoInfer<{
121
+ file_path: string;
122
+ old_string: string;
123
+ new_string: string;
124
+ replace_all: boolean;
125
+ }>;
126
+ }[] | undefined;
127
+ needsApproval?: boolean | import("@ai-sdk/provider-utils").ToolNeedsApprovalFunction<{
128
+ file_path: string;
129
+ old_string: string;
130
+ new_string: string;
131
+ replace_all: boolean;
132
+ }> | undefined;
133
+ strict?: boolean;
134
+ onInputStart?: (options: import("ai").ToolExecutionOptions) => void | PromiseLike<void>;
135
+ onInputDelta?: (options: {
136
+ inputTextDelta: string;
137
+ } & import("ai").ToolExecutionOptions) => void | PromiseLike<void>;
138
+ onInputAvailable?: ((options: {
139
+ input: {
140
+ file_path: string;
141
+ old_string: string;
142
+ new_string: string;
143
+ replace_all: boolean;
144
+ };
145
+ } & import("ai").ToolExecutionOptions) => void | PromiseLike<void>) | undefined;
146
+ } & {
147
+ outputSchema: import("ai").FlexibleSchema<string>;
148
+ execute?: never;
149
+ } & {
150
+ toModelOutput?: ((options: {
151
+ toolCallId: string;
152
+ input: {
153
+ file_path: string;
154
+ old_string: string;
155
+ new_string: string;
156
+ replace_all: boolean;
157
+ };
158
+ output: string;
159
+ }) => import("@ai-sdk/provider-utils").ToolResultOutput | PromiseLike<import("@ai-sdk/provider-utils").ToolResultOutput>) | undefined;
160
+ } & {
161
+ type: "provider";
162
+ id: `${string}.${string}`;
163
+ args: Record<string, unknown>;
164
+ supportsDeferredResults?: boolean;
165
+ }) | ({
166
+ description?: string;
167
+ title?: string;
168
+ providerOptions?: import("@ai-sdk/provider-utils").ProviderOptions;
169
+ inputSchema: import("ai").FlexibleSchema<{
170
+ file_path: string;
171
+ old_string: string;
172
+ new_string: string;
173
+ replace_all: boolean;
174
+ }>;
175
+ inputExamples?: {
176
+ input: NoInfer<{
177
+ file_path: string;
178
+ old_string: string;
179
+ new_string: string;
180
+ replace_all: boolean;
181
+ }>;
182
+ }[] | undefined;
183
+ needsApproval?: boolean | import("@ai-sdk/provider-utils").ToolNeedsApprovalFunction<{
184
+ file_path: string;
185
+ old_string: string;
186
+ new_string: string;
187
+ replace_all: boolean;
188
+ }> | undefined;
189
+ strict?: boolean;
190
+ onInputStart?: (options: import("ai").ToolExecutionOptions) => void | PromiseLike<void>;
191
+ onInputDelta?: (options: {
192
+ inputTextDelta: string;
193
+ } & import("ai").ToolExecutionOptions) => void | PromiseLike<void>;
194
+ onInputAvailable?: ((options: {
195
+ input: {
196
+ file_path: string;
197
+ old_string: string;
198
+ new_string: string;
199
+ replace_all: boolean;
200
+ };
201
+ } & import("ai").ToolExecutionOptions) => void | PromiseLike<void>) | undefined;
202
+ } & {
203
+ execute: import("ai").ToolExecuteFunction<{
204
+ file_path: string;
205
+ old_string: string;
206
+ new_string: string;
207
+ replace_all: boolean;
208
+ }, string>;
209
+ outputSchema?: import("ai").FlexibleSchema<string> | undefined;
210
+ } & {
211
+ toModelOutput?: ((options: {
212
+ toolCallId: string;
213
+ input: {
214
+ file_path: string;
215
+ old_string: string;
216
+ new_string: string;
217
+ replace_all: boolean;
218
+ };
219
+ output: string;
220
+ }) => import("@ai-sdk/provider-utils").ToolResultOutput | PromiseLike<import("@ai-sdk/provider-utils").ToolResultOutput>) | undefined;
221
+ } & {
222
+ type?: undefined | "function";
223
+ }) | ({
224
+ description?: string;
225
+ title?: string;
226
+ providerOptions?: import("@ai-sdk/provider-utils").ProviderOptions;
227
+ inputSchema: import("ai").FlexibleSchema<{
228
+ file_path: string;
229
+ old_string: string;
230
+ new_string: string;
231
+ replace_all: boolean;
232
+ }>;
233
+ inputExamples?: {
234
+ input: NoInfer<{
235
+ file_path: string;
236
+ old_string: string;
237
+ new_string: string;
238
+ replace_all: boolean;
239
+ }>;
240
+ }[] | undefined;
241
+ needsApproval?: boolean | import("@ai-sdk/provider-utils").ToolNeedsApprovalFunction<{
242
+ file_path: string;
243
+ old_string: string;
244
+ new_string: string;
245
+ replace_all: boolean;
246
+ }> | undefined;
247
+ strict?: boolean;
248
+ onInputStart?: (options: import("ai").ToolExecutionOptions) => void | PromiseLike<void>;
249
+ onInputDelta?: (options: {
250
+ inputTextDelta: string;
251
+ } & import("ai").ToolExecutionOptions) => void | PromiseLike<void>;
252
+ onInputAvailable?: ((options: {
253
+ input: {
254
+ file_path: string;
255
+ old_string: string;
256
+ new_string: string;
257
+ replace_all: boolean;
258
+ };
259
+ } & import("ai").ToolExecutionOptions) => void | PromiseLike<void>) | undefined;
260
+ } & {
261
+ execute: import("ai").ToolExecuteFunction<{
262
+ file_path: string;
263
+ old_string: string;
264
+ new_string: string;
265
+ replace_all: boolean;
266
+ }, string>;
267
+ outputSchema?: import("ai").FlexibleSchema<string> | undefined;
268
+ } & {
269
+ toModelOutput?: ((options: {
270
+ toolCallId: string;
271
+ input: {
272
+ file_path: string;
273
+ old_string: string;
274
+ new_string: string;
275
+ replace_all: boolean;
276
+ };
277
+ output: string;
278
+ }) => import("@ai-sdk/provider-utils").ToolResultOutput | PromiseLike<import("@ai-sdk/provider-utils").ToolResultOutput>) | undefined;
279
+ } & {
280
+ type: "dynamic";
281
+ }) | ({
282
+ description?: string;
283
+ title?: string;
284
+ providerOptions?: import("@ai-sdk/provider-utils").ProviderOptions;
285
+ inputSchema: import("ai").FlexibleSchema<{
286
+ file_path: string;
287
+ old_string: string;
288
+ new_string: string;
289
+ replace_all: boolean;
290
+ }>;
291
+ inputExamples?: {
292
+ input: NoInfer<{
293
+ file_path: string;
294
+ old_string: string;
295
+ new_string: string;
296
+ replace_all: boolean;
297
+ }>;
298
+ }[] | undefined;
299
+ needsApproval?: boolean | import("@ai-sdk/provider-utils").ToolNeedsApprovalFunction<{
300
+ file_path: string;
301
+ old_string: string;
302
+ new_string: string;
303
+ replace_all: boolean;
304
+ }> | undefined;
305
+ strict?: boolean;
306
+ onInputStart?: (options: import("ai").ToolExecutionOptions) => void | PromiseLike<void>;
307
+ onInputDelta?: (options: {
308
+ inputTextDelta: string;
309
+ } & import("ai").ToolExecutionOptions) => void | PromiseLike<void>;
310
+ onInputAvailable?: ((options: {
311
+ input: {
312
+ file_path: string;
313
+ old_string: string;
314
+ new_string: string;
315
+ replace_all: boolean;
316
+ };
317
+ } & import("ai").ToolExecutionOptions) => void | PromiseLike<void>) | undefined;
318
+ } & {
319
+ execute: import("ai").ToolExecuteFunction<{
320
+ file_path: string;
321
+ old_string: string;
322
+ new_string: string;
323
+ replace_all: boolean;
324
+ }, string>;
325
+ outputSchema?: import("ai").FlexibleSchema<string> | undefined;
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: "provider";
339
+ id: `${string}.${string}`;
340
+ args: Record<string, unknown>;
341
+ supportsDeferredResults?: boolean;
342
+ });
343
+ export declare const editTool: ({
344
+ description?: string;
345
+ title?: string;
346
+ providerOptions?: import("@ai-sdk/provider-utils").ProviderOptions;
347
+ inputSchema: import("ai").FlexibleSchema<{
348
+ file_path: string;
349
+ old_string: string;
350
+ new_string: string;
351
+ replace_all: boolean;
352
+ }>;
353
+ inputExamples?: {
354
+ input: NoInfer<{
355
+ file_path: string;
356
+ old_string: string;
357
+ new_string: string;
358
+ replace_all: boolean;
359
+ }>;
360
+ }[] | undefined;
361
+ needsApproval?: boolean | import("@ai-sdk/provider-utils").ToolNeedsApprovalFunction<{
362
+ file_path: string;
363
+ old_string: string;
364
+ new_string: string;
365
+ replace_all: boolean;
366
+ }> | undefined;
367
+ strict?: boolean;
368
+ onInputStart?: (options: import("ai").ToolExecutionOptions) => void | PromiseLike<void>;
369
+ onInputDelta?: (options: {
370
+ inputTextDelta: string;
371
+ } & import("ai").ToolExecutionOptions) => void | PromiseLike<void>;
372
+ onInputAvailable?: ((options: {
373
+ input: {
374
+ file_path: string;
375
+ old_string: string;
376
+ new_string: string;
377
+ replace_all: boolean;
378
+ };
379
+ } & import("ai").ToolExecutionOptions) => void | PromiseLike<void>) | undefined;
380
+ } & {
381
+ outputSchema: import("ai").FlexibleSchema<string>;
382
+ execute?: never;
383
+ } & {
384
+ toModelOutput?: ((options: {
385
+ toolCallId: string;
386
+ input: {
387
+ file_path: string;
388
+ old_string: string;
389
+ new_string: string;
390
+ replace_all: boolean;
391
+ };
392
+ output: string;
393
+ }) => import("@ai-sdk/provider-utils").ToolResultOutput | PromiseLike<import("@ai-sdk/provider-utils").ToolResultOutput>) | undefined;
394
+ } & {
395
+ type?: undefined | "function";
396
+ }) | ({
397
+ description?: string;
398
+ title?: string;
399
+ providerOptions?: import("@ai-sdk/provider-utils").ProviderOptions;
400
+ inputSchema: import("ai").FlexibleSchema<{
401
+ file_path: string;
402
+ old_string: string;
403
+ new_string: string;
404
+ replace_all: boolean;
405
+ }>;
406
+ inputExamples?: {
407
+ input: NoInfer<{
408
+ file_path: string;
409
+ old_string: string;
410
+ new_string: string;
411
+ replace_all: boolean;
412
+ }>;
413
+ }[] | undefined;
414
+ needsApproval?: boolean | import("@ai-sdk/provider-utils").ToolNeedsApprovalFunction<{
415
+ file_path: string;
416
+ old_string: string;
417
+ new_string: string;
418
+ replace_all: boolean;
419
+ }> | undefined;
420
+ strict?: boolean;
421
+ onInputStart?: (options: import("ai").ToolExecutionOptions) => void | PromiseLike<void>;
422
+ onInputDelta?: (options: {
423
+ inputTextDelta: string;
424
+ } & import("ai").ToolExecutionOptions) => void | PromiseLike<void>;
425
+ onInputAvailable?: ((options: {
426
+ input: {
427
+ file_path: string;
428
+ old_string: string;
429
+ new_string: string;
430
+ replace_all: boolean;
431
+ };
432
+ } & import("ai").ToolExecutionOptions) => void | PromiseLike<void>) | undefined;
433
+ } & {
434
+ outputSchema: import("ai").FlexibleSchema<string>;
435
+ execute?: never;
436
+ } & {
437
+ toModelOutput?: ((options: {
438
+ toolCallId: string;
439
+ input: {
440
+ file_path: string;
441
+ old_string: string;
442
+ new_string: string;
443
+ replace_all: boolean;
444
+ };
445
+ output: string;
446
+ }) => import("@ai-sdk/provider-utils").ToolResultOutput | PromiseLike<import("@ai-sdk/provider-utils").ToolResultOutput>) | undefined;
447
+ } & {
448
+ type: "dynamic";
449
+ }) | ({
450
+ description?: string;
451
+ title?: string;
452
+ providerOptions?: import("@ai-sdk/provider-utils").ProviderOptions;
453
+ inputSchema: import("ai").FlexibleSchema<{
454
+ file_path: string;
455
+ old_string: string;
456
+ new_string: string;
457
+ replace_all: boolean;
458
+ }>;
459
+ inputExamples?: {
460
+ input: NoInfer<{
461
+ file_path: string;
462
+ old_string: string;
463
+ new_string: string;
464
+ replace_all: boolean;
465
+ }>;
466
+ }[] | undefined;
467
+ needsApproval?: boolean | import("@ai-sdk/provider-utils").ToolNeedsApprovalFunction<{
468
+ file_path: string;
469
+ old_string: string;
470
+ new_string: string;
471
+ replace_all: boolean;
472
+ }> | undefined;
473
+ strict?: boolean;
474
+ onInputStart?: (options: import("ai").ToolExecutionOptions) => void | PromiseLike<void>;
475
+ onInputDelta?: (options: {
476
+ inputTextDelta: string;
477
+ } & import("ai").ToolExecutionOptions) => void | PromiseLike<void>;
478
+ onInputAvailable?: ((options: {
479
+ input: {
480
+ file_path: string;
481
+ old_string: string;
482
+ new_string: string;
483
+ replace_all: boolean;
484
+ };
485
+ } & import("ai").ToolExecutionOptions) => void | PromiseLike<void>) | undefined;
486
+ } & {
487
+ outputSchema: import("ai").FlexibleSchema<string>;
488
+ execute?: never;
489
+ } & {
490
+ toModelOutput?: ((options: {
491
+ toolCallId: string;
492
+ input: {
493
+ file_path: string;
494
+ old_string: string;
495
+ new_string: string;
496
+ replace_all: boolean;
497
+ };
498
+ output: string;
499
+ }) => import("@ai-sdk/provider-utils").ToolResultOutput | PromiseLike<import("@ai-sdk/provider-utils").ToolResultOutput>) | undefined;
500
+ } & {
501
+ type: "provider";
502
+ id: `${string}.${string}`;
503
+ args: Record<string, unknown>;
504
+ supportsDeferredResults?: boolean;
505
+ }) | ({
506
+ description?: string;
507
+ title?: string;
508
+ providerOptions?: import("@ai-sdk/provider-utils").ProviderOptions;
509
+ inputSchema: import("ai").FlexibleSchema<{
510
+ file_path: string;
511
+ old_string: string;
512
+ new_string: string;
513
+ replace_all: boolean;
514
+ }>;
515
+ inputExamples?: {
516
+ input: NoInfer<{
517
+ file_path: string;
518
+ old_string: string;
519
+ new_string: string;
520
+ replace_all: boolean;
521
+ }>;
522
+ }[] | undefined;
523
+ needsApproval?: boolean | import("@ai-sdk/provider-utils").ToolNeedsApprovalFunction<{
524
+ file_path: string;
525
+ old_string: string;
526
+ new_string: string;
527
+ replace_all: boolean;
528
+ }> | undefined;
529
+ strict?: boolean;
530
+ onInputStart?: (options: import("ai").ToolExecutionOptions) => void | PromiseLike<void>;
531
+ onInputDelta?: (options: {
532
+ inputTextDelta: string;
533
+ } & import("ai").ToolExecutionOptions) => void | PromiseLike<void>;
534
+ onInputAvailable?: ((options: {
535
+ input: {
536
+ file_path: string;
537
+ old_string: string;
538
+ new_string: string;
539
+ replace_all: boolean;
540
+ };
541
+ } & import("ai").ToolExecutionOptions) => void | PromiseLike<void>) | undefined;
542
+ } & {
543
+ execute: import("ai").ToolExecuteFunction<{
544
+ file_path: string;
545
+ old_string: string;
546
+ new_string: string;
547
+ replace_all: boolean;
548
+ }, string>;
549
+ outputSchema?: import("ai").FlexibleSchema<string> | undefined;
550
+ } & {
551
+ toModelOutput?: ((options: {
552
+ toolCallId: string;
553
+ input: {
554
+ file_path: string;
555
+ old_string: string;
556
+ new_string: string;
557
+ replace_all: boolean;
558
+ };
559
+ output: string;
560
+ }) => import("@ai-sdk/provider-utils").ToolResultOutput | PromiseLike<import("@ai-sdk/provider-utils").ToolResultOutput>) | undefined;
561
+ } & {
562
+ type?: undefined | "function";
563
+ }) | ({
564
+ description?: string;
565
+ title?: string;
566
+ providerOptions?: import("@ai-sdk/provider-utils").ProviderOptions;
567
+ inputSchema: import("ai").FlexibleSchema<{
568
+ file_path: string;
569
+ old_string: string;
570
+ new_string: string;
571
+ replace_all: boolean;
572
+ }>;
573
+ inputExamples?: {
574
+ input: NoInfer<{
575
+ file_path: string;
576
+ old_string: string;
577
+ new_string: string;
578
+ replace_all: boolean;
579
+ }>;
580
+ }[] | undefined;
581
+ needsApproval?: boolean | import("@ai-sdk/provider-utils").ToolNeedsApprovalFunction<{
582
+ file_path: string;
583
+ old_string: string;
584
+ new_string: string;
585
+ replace_all: boolean;
586
+ }> | undefined;
587
+ strict?: boolean;
588
+ onInputStart?: (options: import("ai").ToolExecutionOptions) => void | PromiseLike<void>;
589
+ onInputDelta?: (options: {
590
+ inputTextDelta: string;
591
+ } & import("ai").ToolExecutionOptions) => void | PromiseLike<void>;
592
+ onInputAvailable?: ((options: {
593
+ input: {
594
+ file_path: string;
595
+ old_string: string;
596
+ new_string: string;
597
+ replace_all: boolean;
598
+ };
599
+ } & import("ai").ToolExecutionOptions) => void | PromiseLike<void>) | undefined;
600
+ } & {
601
+ execute: import("ai").ToolExecuteFunction<{
602
+ file_path: string;
603
+ old_string: string;
604
+ new_string: string;
605
+ replace_all: boolean;
606
+ }, string>;
607
+ outputSchema?: import("ai").FlexibleSchema<string> | undefined;
608
+ } & {
609
+ toModelOutput?: ((options: {
610
+ toolCallId: string;
611
+ input: {
612
+ file_path: string;
613
+ old_string: string;
614
+ new_string: string;
615
+ replace_all: boolean;
616
+ };
617
+ output: string;
618
+ }) => import("@ai-sdk/provider-utils").ToolResultOutput | PromiseLike<import("@ai-sdk/provider-utils").ToolResultOutput>) | undefined;
619
+ } & {
620
+ type: "dynamic";
621
+ }) | ({
622
+ description?: string;
623
+ title?: string;
624
+ providerOptions?: import("@ai-sdk/provider-utils").ProviderOptions;
625
+ inputSchema: import("ai").FlexibleSchema<{
626
+ file_path: string;
627
+ old_string: string;
628
+ new_string: string;
629
+ replace_all: boolean;
630
+ }>;
631
+ inputExamples?: {
632
+ input: NoInfer<{
633
+ file_path: string;
634
+ old_string: string;
635
+ new_string: string;
636
+ replace_all: boolean;
637
+ }>;
638
+ }[] | undefined;
639
+ needsApproval?: boolean | import("@ai-sdk/provider-utils").ToolNeedsApprovalFunction<{
640
+ file_path: string;
641
+ old_string: string;
642
+ new_string: string;
643
+ replace_all: boolean;
644
+ }> | undefined;
645
+ strict?: boolean;
646
+ onInputStart?: (options: import("ai").ToolExecutionOptions) => void | PromiseLike<void>;
647
+ onInputDelta?: (options: {
648
+ inputTextDelta: string;
649
+ } & import("ai").ToolExecutionOptions) => void | PromiseLike<void>;
650
+ onInputAvailable?: ((options: {
651
+ input: {
652
+ file_path: string;
653
+ old_string: string;
654
+ new_string: string;
655
+ replace_all: boolean;
656
+ };
657
+ } & import("ai").ToolExecutionOptions) => void | PromiseLike<void>) | undefined;
658
+ } & {
659
+ execute: import("ai").ToolExecuteFunction<{
660
+ file_path: string;
661
+ old_string: string;
662
+ new_string: string;
663
+ replace_all: boolean;
664
+ }, string>;
665
+ outputSchema?: import("ai").FlexibleSchema<string> | undefined;
666
+ } & {
667
+ toModelOutput?: ((options: {
668
+ toolCallId: string;
669
+ input: {
670
+ file_path: string;
671
+ old_string: string;
672
+ new_string: string;
673
+ replace_all: boolean;
674
+ };
675
+ output: string;
676
+ }) => import("@ai-sdk/provider-utils").ToolResultOutput | PromiseLike<import("@ai-sdk/provider-utils").ToolResultOutput>) | undefined;
677
+ } & {
678
+ type: "provider";
679
+ id: `${string}.${string}`;
680
+ args: Record<string, unknown>;
681
+ supportsDeferredResults?: boolean;
682
+ });