@mastra/agent-builder 0.0.0-experimental-agent-builder-20250815195917 → 0.0.0-issue-7498-20250905233741

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 (71) hide show
  1. package/CHANGELOG.md +180 -19
  2. package/README.md +7 -20
  3. package/dist/agent/index.d.ts +31 -0
  4. package/dist/agent/index.d.ts.map +1 -0
  5. package/dist/defaults.d.ts +3548 -0
  6. package/dist/defaults.d.ts.map +1 -0
  7. package/dist/index.d.ts +4 -1
  8. package/dist/index.d.ts.map +1 -0
  9. package/dist/index.js +3611 -1229
  10. package/dist/index.js.map +1 -0
  11. package/dist/processors/tool-summary.d.ts +30 -0
  12. package/dist/processors/tool-summary.d.ts.map +1 -0
  13. package/dist/processors/write-file.d.ts +10 -0
  14. package/dist/processors/write-file.d.ts.map +1 -0
  15. package/dist/types.d.ts +1143 -0
  16. package/dist/types.d.ts.map +1 -0
  17. package/dist/utils.d.ts +71 -0
  18. package/dist/utils.d.ts.map +1 -0
  19. package/dist/workflows/index.d.ts +5 -0
  20. package/dist/workflows/index.d.ts.map +1 -0
  21. package/dist/workflows/shared/schema.d.ts +139 -0
  22. package/dist/workflows/shared/schema.d.ts.map +1 -0
  23. package/dist/workflows/task-planning/prompts.d.ts +37 -0
  24. package/dist/workflows/task-planning/prompts.d.ts.map +1 -0
  25. package/dist/workflows/task-planning/schema.d.ts +548 -0
  26. package/dist/workflows/task-planning/schema.d.ts.map +1 -0
  27. package/dist/workflows/task-planning/task-planning.d.ts +992 -0
  28. package/dist/workflows/task-planning/task-planning.d.ts.map +1 -0
  29. package/dist/workflows/template-builder/template-builder.d.ts +1968 -0
  30. package/dist/workflows/template-builder/template-builder.d.ts.map +1 -0
  31. package/dist/workflows/workflow-builder/prompts.d.ts +44 -0
  32. package/dist/workflows/workflow-builder/prompts.d.ts.map +1 -0
  33. package/dist/workflows/workflow-builder/schema.d.ts +1170 -0
  34. package/dist/workflows/workflow-builder/schema.d.ts.map +1 -0
  35. package/dist/workflows/workflow-builder/tools.d.ts +309 -0
  36. package/dist/workflows/workflow-builder/tools.d.ts.map +1 -0
  37. package/dist/workflows/workflow-builder/workflow-builder.d.ts +2714 -0
  38. package/dist/workflows/workflow-builder/workflow-builder.d.ts.map +1 -0
  39. package/dist/workflows/workflow-map.d.ts +3768 -0
  40. package/dist/workflows/workflow-map.d.ts.map +1 -0
  41. package/package.json +39 -10
  42. package/dist/_tsup-dts-rollup.d.cts +0 -13109
  43. package/dist/_tsup-dts-rollup.d.ts +0 -13109
  44. package/dist/index.cjs +0 -3772
  45. package/dist/index.d.cts +0 -1
  46. package/eslint.config.js +0 -11
  47. package/integration-tests/CHANGELOG.md +0 -20
  48. package/integration-tests/README.md +0 -154
  49. package/integration-tests/docker-compose.yml +0 -39
  50. package/integration-tests/package.json +0 -38
  51. package/integration-tests/src/agent-template-behavior.test.ts +0 -103
  52. package/integration-tests/src/fixtures/minimal-mastra-project/env.example +0 -6
  53. package/integration-tests/src/fixtures/minimal-mastra-project/package.json +0 -17
  54. package/integration-tests/src/fixtures/minimal-mastra-project/src/mastra/agents/weather.ts +0 -34
  55. package/integration-tests/src/fixtures/minimal-mastra-project/src/mastra/index.ts +0 -15
  56. package/integration-tests/src/fixtures/minimal-mastra-project/src/mastra/mcp/index.ts +0 -46
  57. package/integration-tests/src/fixtures/minimal-mastra-project/src/mastra/tools/weather.ts +0 -13
  58. package/integration-tests/src/fixtures/minimal-mastra-project/tsconfig.json +0 -17
  59. package/integration-tests/src/template-integration.test.ts +0 -312
  60. package/integration-tests/tsconfig.json +0 -13
  61. package/integration-tests/vitest.config.ts +0 -17
  62. package/src/agent-builder.test.ts +0 -291
  63. package/src/defaults.ts +0 -2728
  64. package/src/index.ts +0 -187
  65. package/src/processors/tool-summary.ts +0 -136
  66. package/src/processors/write-file.ts +0 -17
  67. package/src/types.ts +0 -120
  68. package/src/utils.ts +0 -133
  69. package/src/workflows/index.ts +0 -1541
  70. package/tsconfig.json +0 -5
  71. package/vitest.config.ts +0 -11
@@ -0,0 +1,3548 @@
1
+ import { z } from 'zod';
2
+ export declare class AgentBuilderDefaults {
3
+ static DEFAULT_INSTRUCTIONS: (projectPath?: string) => string;
4
+ static DEFAULT_MEMORY_CONFIG: {
5
+ lastMessages: number;
6
+ };
7
+ static DEFAULT_FOLDER_STRUCTURE: {
8
+ agent: string;
9
+ workflow: string;
10
+ tool: string;
11
+ 'mcp-server': string;
12
+ network: string;
13
+ };
14
+ static DEFAULT_TOOLS: (projectPath: string) => Promise<{
15
+ readFile: import("@mastra/core/tools").Tool<z.ZodObject<{
16
+ filePath: z.ZodString;
17
+ startLine: z.ZodOptional<z.ZodNumber>;
18
+ endLine: z.ZodOptional<z.ZodNumber>;
19
+ encoding: z.ZodDefault<z.ZodString>;
20
+ }, "strip", z.ZodTypeAny, {
21
+ filePath: string;
22
+ encoding: string;
23
+ startLine?: number | undefined;
24
+ endLine?: number | undefined;
25
+ }, {
26
+ filePath: string;
27
+ startLine?: number | undefined;
28
+ endLine?: number | undefined;
29
+ encoding?: string | undefined;
30
+ }>, z.ZodObject<{
31
+ success: z.ZodBoolean;
32
+ content: z.ZodOptional<z.ZodString>;
33
+ lines: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
34
+ metadata: z.ZodOptional<z.ZodObject<{
35
+ size: z.ZodNumber;
36
+ totalLines: z.ZodNumber;
37
+ encoding: z.ZodString;
38
+ lastModified: z.ZodString;
39
+ }, "strip", z.ZodTypeAny, {
40
+ encoding: string;
41
+ size: number;
42
+ totalLines: number;
43
+ lastModified: string;
44
+ }, {
45
+ encoding: string;
46
+ size: number;
47
+ totalLines: number;
48
+ lastModified: string;
49
+ }>>;
50
+ error: z.ZodOptional<z.ZodString>;
51
+ }, "strip", z.ZodTypeAny, {
52
+ success: boolean;
53
+ error?: string | undefined;
54
+ content?: string | undefined;
55
+ lines?: string[] | undefined;
56
+ metadata?: {
57
+ encoding: string;
58
+ size: number;
59
+ totalLines: number;
60
+ lastModified: string;
61
+ } | undefined;
62
+ }, {
63
+ success: boolean;
64
+ error?: string | undefined;
65
+ content?: string | undefined;
66
+ lines?: string[] | undefined;
67
+ metadata?: {
68
+ encoding: string;
69
+ size: number;
70
+ totalLines: number;
71
+ lastModified: string;
72
+ } | undefined;
73
+ }>, import("@mastra/core").ToolExecutionContext<z.ZodObject<{
74
+ filePath: z.ZodString;
75
+ startLine: z.ZodOptional<z.ZodNumber>;
76
+ endLine: z.ZodOptional<z.ZodNumber>;
77
+ encoding: z.ZodDefault<z.ZodString>;
78
+ }, "strip", z.ZodTypeAny, {
79
+ filePath: string;
80
+ encoding: string;
81
+ startLine?: number | undefined;
82
+ endLine?: number | undefined;
83
+ }, {
84
+ filePath: string;
85
+ startLine?: number | undefined;
86
+ endLine?: number | undefined;
87
+ encoding?: string | undefined;
88
+ }>>> & {
89
+ inputSchema: z.ZodObject<{
90
+ filePath: z.ZodString;
91
+ startLine: z.ZodOptional<z.ZodNumber>;
92
+ endLine: z.ZodOptional<z.ZodNumber>;
93
+ encoding: z.ZodDefault<z.ZodString>;
94
+ }, "strip", z.ZodTypeAny, {
95
+ filePath: string;
96
+ encoding: string;
97
+ startLine?: number | undefined;
98
+ endLine?: number | undefined;
99
+ }, {
100
+ filePath: string;
101
+ startLine?: number | undefined;
102
+ endLine?: number | undefined;
103
+ encoding?: string | undefined;
104
+ }>;
105
+ outputSchema: z.ZodObject<{
106
+ success: z.ZodBoolean;
107
+ content: z.ZodOptional<z.ZodString>;
108
+ lines: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
109
+ metadata: z.ZodOptional<z.ZodObject<{
110
+ size: z.ZodNumber;
111
+ totalLines: z.ZodNumber;
112
+ encoding: z.ZodString;
113
+ lastModified: z.ZodString;
114
+ }, "strip", z.ZodTypeAny, {
115
+ encoding: string;
116
+ size: number;
117
+ totalLines: number;
118
+ lastModified: string;
119
+ }, {
120
+ encoding: string;
121
+ size: number;
122
+ totalLines: number;
123
+ lastModified: string;
124
+ }>>;
125
+ error: z.ZodOptional<z.ZodString>;
126
+ }, "strip", z.ZodTypeAny, {
127
+ success: boolean;
128
+ error?: string | undefined;
129
+ content?: string | undefined;
130
+ lines?: string[] | undefined;
131
+ metadata?: {
132
+ encoding: string;
133
+ size: number;
134
+ totalLines: number;
135
+ lastModified: string;
136
+ } | undefined;
137
+ }, {
138
+ success: boolean;
139
+ error?: string | undefined;
140
+ content?: string | undefined;
141
+ lines?: string[] | undefined;
142
+ metadata?: {
143
+ encoding: string;
144
+ size: number;
145
+ totalLines: number;
146
+ lastModified: string;
147
+ } | undefined;
148
+ }>;
149
+ execute: (context: import("@mastra/core").ToolExecutionContext<z.ZodObject<{
150
+ filePath: z.ZodString;
151
+ startLine: z.ZodOptional<z.ZodNumber>;
152
+ endLine: z.ZodOptional<z.ZodNumber>;
153
+ encoding: z.ZodDefault<z.ZodString>;
154
+ }, "strip", z.ZodTypeAny, {
155
+ filePath: string;
156
+ encoding: string;
157
+ startLine?: number | undefined;
158
+ endLine?: number | undefined;
159
+ }, {
160
+ filePath: string;
161
+ startLine?: number | undefined;
162
+ endLine?: number | undefined;
163
+ encoding?: string | undefined;
164
+ }>>, options: import("ai").ToolExecutionOptions | import("ai").ToolCallOptions) => Promise<any>;
165
+ };
166
+ writeFile: import("@mastra/core/tools").Tool<z.ZodObject<{
167
+ filePath: z.ZodString;
168
+ content: z.ZodString;
169
+ createDirs: z.ZodDefault<z.ZodBoolean>;
170
+ encoding: z.ZodDefault<z.ZodString>;
171
+ }, "strip", z.ZodTypeAny, {
172
+ filePath: string;
173
+ encoding: string;
174
+ content: string;
175
+ createDirs: boolean;
176
+ }, {
177
+ filePath: string;
178
+ content: string;
179
+ encoding?: string | undefined;
180
+ createDirs?: boolean | undefined;
181
+ }>, z.ZodObject<{
182
+ success: z.ZodBoolean;
183
+ filePath: z.ZodString;
184
+ bytesWritten: z.ZodOptional<z.ZodNumber>;
185
+ message: z.ZodString;
186
+ error: z.ZodOptional<z.ZodString>;
187
+ }, "strip", z.ZodTypeAny, {
188
+ message: string;
189
+ success: boolean;
190
+ filePath: string;
191
+ error?: string | undefined;
192
+ bytesWritten?: number | undefined;
193
+ }, {
194
+ message: string;
195
+ success: boolean;
196
+ filePath: string;
197
+ error?: string | undefined;
198
+ bytesWritten?: number | undefined;
199
+ }>, import("@mastra/core").ToolExecutionContext<z.ZodObject<{
200
+ filePath: z.ZodString;
201
+ content: z.ZodString;
202
+ createDirs: z.ZodDefault<z.ZodBoolean>;
203
+ encoding: z.ZodDefault<z.ZodString>;
204
+ }, "strip", z.ZodTypeAny, {
205
+ filePath: string;
206
+ encoding: string;
207
+ content: string;
208
+ createDirs: boolean;
209
+ }, {
210
+ filePath: string;
211
+ content: string;
212
+ encoding?: string | undefined;
213
+ createDirs?: boolean | undefined;
214
+ }>>> & {
215
+ inputSchema: z.ZodObject<{
216
+ filePath: z.ZodString;
217
+ content: z.ZodString;
218
+ createDirs: z.ZodDefault<z.ZodBoolean>;
219
+ encoding: z.ZodDefault<z.ZodString>;
220
+ }, "strip", z.ZodTypeAny, {
221
+ filePath: string;
222
+ encoding: string;
223
+ content: string;
224
+ createDirs: boolean;
225
+ }, {
226
+ filePath: string;
227
+ content: string;
228
+ encoding?: string | undefined;
229
+ createDirs?: boolean | undefined;
230
+ }>;
231
+ outputSchema: z.ZodObject<{
232
+ success: z.ZodBoolean;
233
+ filePath: z.ZodString;
234
+ bytesWritten: z.ZodOptional<z.ZodNumber>;
235
+ message: z.ZodString;
236
+ error: z.ZodOptional<z.ZodString>;
237
+ }, "strip", z.ZodTypeAny, {
238
+ message: string;
239
+ success: boolean;
240
+ filePath: string;
241
+ error?: string | undefined;
242
+ bytesWritten?: number | undefined;
243
+ }, {
244
+ message: string;
245
+ success: boolean;
246
+ filePath: string;
247
+ error?: string | undefined;
248
+ bytesWritten?: number | undefined;
249
+ }>;
250
+ execute: (context: import("@mastra/core").ToolExecutionContext<z.ZodObject<{
251
+ filePath: z.ZodString;
252
+ content: z.ZodString;
253
+ createDirs: z.ZodDefault<z.ZodBoolean>;
254
+ encoding: z.ZodDefault<z.ZodString>;
255
+ }, "strip", z.ZodTypeAny, {
256
+ filePath: string;
257
+ encoding: string;
258
+ content: string;
259
+ createDirs: boolean;
260
+ }, {
261
+ filePath: string;
262
+ content: string;
263
+ encoding?: string | undefined;
264
+ createDirs?: boolean | undefined;
265
+ }>>, options: import("ai").ToolExecutionOptions | import("ai").ToolCallOptions) => Promise<any>;
266
+ };
267
+ listDirectory: import("@mastra/core/tools").Tool<z.ZodObject<{
268
+ path: z.ZodString;
269
+ recursive: z.ZodDefault<z.ZodBoolean>;
270
+ includeHidden: z.ZodDefault<z.ZodBoolean>;
271
+ pattern: z.ZodDefault<z.ZodString>;
272
+ maxDepth: z.ZodDefault<z.ZodNumber>;
273
+ includeMetadata: z.ZodDefault<z.ZodBoolean>;
274
+ }, "strip", z.ZodTypeAny, {
275
+ path: string;
276
+ recursive: boolean;
277
+ includeHidden: boolean;
278
+ pattern: string;
279
+ maxDepth: number;
280
+ includeMetadata: boolean;
281
+ }, {
282
+ path: string;
283
+ recursive?: boolean | undefined;
284
+ includeHidden?: boolean | undefined;
285
+ pattern?: string | undefined;
286
+ maxDepth?: number | undefined;
287
+ includeMetadata?: boolean | undefined;
288
+ }>, z.ZodObject<{
289
+ success: z.ZodBoolean;
290
+ items: z.ZodArray<z.ZodObject<{
291
+ name: z.ZodString;
292
+ path: z.ZodString;
293
+ type: z.ZodEnum<["file", "directory", "symlink"]>;
294
+ size: z.ZodOptional<z.ZodNumber>;
295
+ lastModified: z.ZodOptional<z.ZodString>;
296
+ permissions: z.ZodOptional<z.ZodString>;
297
+ }, "strip", z.ZodTypeAny, {
298
+ path: string;
299
+ type: "file" | "directory" | "symlink";
300
+ name: string;
301
+ size?: number | undefined;
302
+ lastModified?: string | undefined;
303
+ permissions?: string | undefined;
304
+ }, {
305
+ path: string;
306
+ type: "file" | "directory" | "symlink";
307
+ name: string;
308
+ size?: number | undefined;
309
+ lastModified?: string | undefined;
310
+ permissions?: string | undefined;
311
+ }>, "many">;
312
+ totalItems: z.ZodNumber;
313
+ path: z.ZodString;
314
+ message: z.ZodString;
315
+ error: z.ZodOptional<z.ZodString>;
316
+ }, "strip", z.ZodTypeAny, {
317
+ path: string;
318
+ message: string;
319
+ success: boolean;
320
+ items: {
321
+ path: string;
322
+ type: "file" | "directory" | "symlink";
323
+ name: string;
324
+ size?: number | undefined;
325
+ lastModified?: string | undefined;
326
+ permissions?: string | undefined;
327
+ }[];
328
+ totalItems: number;
329
+ error?: string | undefined;
330
+ }, {
331
+ path: string;
332
+ message: string;
333
+ success: boolean;
334
+ items: {
335
+ path: string;
336
+ type: "file" | "directory" | "symlink";
337
+ name: string;
338
+ size?: number | undefined;
339
+ lastModified?: string | undefined;
340
+ permissions?: string | undefined;
341
+ }[];
342
+ totalItems: number;
343
+ error?: string | undefined;
344
+ }>, import("@mastra/core").ToolExecutionContext<z.ZodObject<{
345
+ path: z.ZodString;
346
+ recursive: z.ZodDefault<z.ZodBoolean>;
347
+ includeHidden: z.ZodDefault<z.ZodBoolean>;
348
+ pattern: z.ZodDefault<z.ZodString>;
349
+ maxDepth: z.ZodDefault<z.ZodNumber>;
350
+ includeMetadata: z.ZodDefault<z.ZodBoolean>;
351
+ }, "strip", z.ZodTypeAny, {
352
+ path: string;
353
+ recursive: boolean;
354
+ includeHidden: boolean;
355
+ pattern: string;
356
+ maxDepth: number;
357
+ includeMetadata: boolean;
358
+ }, {
359
+ path: string;
360
+ recursive?: boolean | undefined;
361
+ includeHidden?: boolean | undefined;
362
+ pattern?: string | undefined;
363
+ maxDepth?: number | undefined;
364
+ includeMetadata?: boolean | undefined;
365
+ }>>> & {
366
+ inputSchema: z.ZodObject<{
367
+ path: z.ZodString;
368
+ recursive: z.ZodDefault<z.ZodBoolean>;
369
+ includeHidden: z.ZodDefault<z.ZodBoolean>;
370
+ pattern: z.ZodDefault<z.ZodString>;
371
+ maxDepth: z.ZodDefault<z.ZodNumber>;
372
+ includeMetadata: z.ZodDefault<z.ZodBoolean>;
373
+ }, "strip", z.ZodTypeAny, {
374
+ path: string;
375
+ recursive: boolean;
376
+ includeHidden: boolean;
377
+ pattern: string;
378
+ maxDepth: number;
379
+ includeMetadata: boolean;
380
+ }, {
381
+ path: string;
382
+ recursive?: boolean | undefined;
383
+ includeHidden?: boolean | undefined;
384
+ pattern?: string | undefined;
385
+ maxDepth?: number | undefined;
386
+ includeMetadata?: boolean | undefined;
387
+ }>;
388
+ outputSchema: z.ZodObject<{
389
+ success: z.ZodBoolean;
390
+ items: z.ZodArray<z.ZodObject<{
391
+ name: z.ZodString;
392
+ path: z.ZodString;
393
+ type: z.ZodEnum<["file", "directory", "symlink"]>;
394
+ size: z.ZodOptional<z.ZodNumber>;
395
+ lastModified: z.ZodOptional<z.ZodString>;
396
+ permissions: z.ZodOptional<z.ZodString>;
397
+ }, "strip", z.ZodTypeAny, {
398
+ path: string;
399
+ type: "file" | "directory" | "symlink";
400
+ name: string;
401
+ size?: number | undefined;
402
+ lastModified?: string | undefined;
403
+ permissions?: string | undefined;
404
+ }, {
405
+ path: string;
406
+ type: "file" | "directory" | "symlink";
407
+ name: string;
408
+ size?: number | undefined;
409
+ lastModified?: string | undefined;
410
+ permissions?: string | undefined;
411
+ }>, "many">;
412
+ totalItems: z.ZodNumber;
413
+ path: z.ZodString;
414
+ message: z.ZodString;
415
+ error: z.ZodOptional<z.ZodString>;
416
+ }, "strip", z.ZodTypeAny, {
417
+ path: string;
418
+ message: string;
419
+ success: boolean;
420
+ items: {
421
+ path: string;
422
+ type: "file" | "directory" | "symlink";
423
+ name: string;
424
+ size?: number | undefined;
425
+ lastModified?: string | undefined;
426
+ permissions?: string | undefined;
427
+ }[];
428
+ totalItems: number;
429
+ error?: string | undefined;
430
+ }, {
431
+ path: string;
432
+ message: string;
433
+ success: boolean;
434
+ items: {
435
+ path: string;
436
+ type: "file" | "directory" | "symlink";
437
+ name: string;
438
+ size?: number | undefined;
439
+ lastModified?: string | undefined;
440
+ permissions?: string | undefined;
441
+ }[];
442
+ totalItems: number;
443
+ error?: string | undefined;
444
+ }>;
445
+ execute: (context: import("@mastra/core").ToolExecutionContext<z.ZodObject<{
446
+ path: z.ZodString;
447
+ recursive: z.ZodDefault<z.ZodBoolean>;
448
+ includeHidden: z.ZodDefault<z.ZodBoolean>;
449
+ pattern: z.ZodDefault<z.ZodString>;
450
+ maxDepth: z.ZodDefault<z.ZodNumber>;
451
+ includeMetadata: z.ZodDefault<z.ZodBoolean>;
452
+ }, "strip", z.ZodTypeAny, {
453
+ path: string;
454
+ recursive: boolean;
455
+ includeHidden: boolean;
456
+ pattern: string;
457
+ maxDepth: number;
458
+ includeMetadata: boolean;
459
+ }, {
460
+ path: string;
461
+ recursive?: boolean | undefined;
462
+ includeHidden?: boolean | undefined;
463
+ pattern?: string | undefined;
464
+ maxDepth?: number | undefined;
465
+ includeMetadata?: boolean | undefined;
466
+ }>>, options: import("ai").ToolExecutionOptions | import("ai").ToolCallOptions) => Promise<any>;
467
+ };
468
+ executeCommand: import("@mastra/core/tools").Tool<z.ZodObject<{
469
+ command: z.ZodString;
470
+ workingDirectory: z.ZodOptional<z.ZodString>;
471
+ timeout: z.ZodDefault<z.ZodNumber>;
472
+ captureOutput: z.ZodDefault<z.ZodBoolean>;
473
+ shell: z.ZodOptional<z.ZodString>;
474
+ env: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
475
+ }, "strip", z.ZodTypeAny, {
476
+ command: string;
477
+ timeout: number;
478
+ captureOutput: boolean;
479
+ workingDirectory?: string | undefined;
480
+ shell?: string | undefined;
481
+ env?: Record<string, string> | undefined;
482
+ }, {
483
+ command: string;
484
+ workingDirectory?: string | undefined;
485
+ timeout?: number | undefined;
486
+ captureOutput?: boolean | undefined;
487
+ shell?: string | undefined;
488
+ env?: Record<string, string> | undefined;
489
+ }>, z.ZodObject<{
490
+ success: z.ZodBoolean;
491
+ exitCode: z.ZodOptional<z.ZodNumber>;
492
+ stdout: z.ZodOptional<z.ZodString>;
493
+ stderr: z.ZodOptional<z.ZodString>;
494
+ command: z.ZodString;
495
+ workingDirectory: z.ZodOptional<z.ZodString>;
496
+ executionTime: z.ZodOptional<z.ZodNumber>;
497
+ error: z.ZodOptional<z.ZodString>;
498
+ }, "strip", z.ZodTypeAny, {
499
+ success: boolean;
500
+ command: string;
501
+ error?: string | undefined;
502
+ stdout?: string | undefined;
503
+ stderr?: string | undefined;
504
+ workingDirectory?: string | undefined;
505
+ exitCode?: number | undefined;
506
+ executionTime?: number | undefined;
507
+ }, {
508
+ success: boolean;
509
+ command: string;
510
+ error?: string | undefined;
511
+ stdout?: string | undefined;
512
+ stderr?: string | undefined;
513
+ workingDirectory?: string | undefined;
514
+ exitCode?: number | undefined;
515
+ executionTime?: number | undefined;
516
+ }>, import("@mastra/core").ToolExecutionContext<z.ZodObject<{
517
+ command: z.ZodString;
518
+ workingDirectory: z.ZodOptional<z.ZodString>;
519
+ timeout: z.ZodDefault<z.ZodNumber>;
520
+ captureOutput: z.ZodDefault<z.ZodBoolean>;
521
+ shell: z.ZodOptional<z.ZodString>;
522
+ env: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
523
+ }, "strip", z.ZodTypeAny, {
524
+ command: string;
525
+ timeout: number;
526
+ captureOutput: boolean;
527
+ workingDirectory?: string | undefined;
528
+ shell?: string | undefined;
529
+ env?: Record<string, string> | undefined;
530
+ }, {
531
+ command: string;
532
+ workingDirectory?: string | undefined;
533
+ timeout?: number | undefined;
534
+ captureOutput?: boolean | undefined;
535
+ shell?: string | undefined;
536
+ env?: Record<string, string> | undefined;
537
+ }>>> & {
538
+ inputSchema: z.ZodObject<{
539
+ command: z.ZodString;
540
+ workingDirectory: z.ZodOptional<z.ZodString>;
541
+ timeout: z.ZodDefault<z.ZodNumber>;
542
+ captureOutput: z.ZodDefault<z.ZodBoolean>;
543
+ shell: z.ZodOptional<z.ZodString>;
544
+ env: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
545
+ }, "strip", z.ZodTypeAny, {
546
+ command: string;
547
+ timeout: number;
548
+ captureOutput: boolean;
549
+ workingDirectory?: string | undefined;
550
+ shell?: string | undefined;
551
+ env?: Record<string, string> | undefined;
552
+ }, {
553
+ command: string;
554
+ workingDirectory?: string | undefined;
555
+ timeout?: number | undefined;
556
+ captureOutput?: boolean | undefined;
557
+ shell?: string | undefined;
558
+ env?: Record<string, string> | undefined;
559
+ }>;
560
+ outputSchema: z.ZodObject<{
561
+ success: z.ZodBoolean;
562
+ exitCode: z.ZodOptional<z.ZodNumber>;
563
+ stdout: z.ZodOptional<z.ZodString>;
564
+ stderr: z.ZodOptional<z.ZodString>;
565
+ command: z.ZodString;
566
+ workingDirectory: z.ZodOptional<z.ZodString>;
567
+ executionTime: z.ZodOptional<z.ZodNumber>;
568
+ error: z.ZodOptional<z.ZodString>;
569
+ }, "strip", z.ZodTypeAny, {
570
+ success: boolean;
571
+ command: string;
572
+ error?: string | undefined;
573
+ stdout?: string | undefined;
574
+ stderr?: string | undefined;
575
+ workingDirectory?: string | undefined;
576
+ exitCode?: number | undefined;
577
+ executionTime?: number | undefined;
578
+ }, {
579
+ success: boolean;
580
+ command: string;
581
+ error?: string | undefined;
582
+ stdout?: string | undefined;
583
+ stderr?: string | undefined;
584
+ workingDirectory?: string | undefined;
585
+ exitCode?: number | undefined;
586
+ executionTime?: number | undefined;
587
+ }>;
588
+ execute: (context: import("@mastra/core").ToolExecutionContext<z.ZodObject<{
589
+ command: z.ZodString;
590
+ workingDirectory: z.ZodOptional<z.ZodString>;
591
+ timeout: z.ZodDefault<z.ZodNumber>;
592
+ captureOutput: z.ZodDefault<z.ZodBoolean>;
593
+ shell: z.ZodOptional<z.ZodString>;
594
+ env: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
595
+ }, "strip", z.ZodTypeAny, {
596
+ command: string;
597
+ timeout: number;
598
+ captureOutput: boolean;
599
+ workingDirectory?: string | undefined;
600
+ shell?: string | undefined;
601
+ env?: Record<string, string> | undefined;
602
+ }, {
603
+ command: string;
604
+ workingDirectory?: string | undefined;
605
+ timeout?: number | undefined;
606
+ captureOutput?: boolean | undefined;
607
+ shell?: string | undefined;
608
+ env?: Record<string, string> | undefined;
609
+ }>>, options: import("ai").ToolExecutionOptions | import("ai").ToolCallOptions) => Promise<any>;
610
+ };
611
+ taskManager: import("@mastra/core/tools").Tool<z.ZodObject<{
612
+ action: z.ZodEnum<["create", "update", "list", "complete", "remove"]>;
613
+ tasks: z.ZodOptional<z.ZodArray<z.ZodObject<{
614
+ id: z.ZodString;
615
+ content: z.ZodOptional<z.ZodString>;
616
+ status: z.ZodEnum<["pending", "in_progress", "completed", "blocked"]>;
617
+ priority: z.ZodDefault<z.ZodEnum<["high", "medium", "low"]>>;
618
+ dependencies: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
619
+ notes: z.ZodOptional<z.ZodString>;
620
+ }, "strip", z.ZodTypeAny, {
621
+ status: "pending" | "in_progress" | "completed" | "blocked";
622
+ id: string;
623
+ priority: "high" | "medium" | "low";
624
+ dependencies?: string[] | undefined;
625
+ content?: string | undefined;
626
+ notes?: string | undefined;
627
+ }, {
628
+ status: "pending" | "in_progress" | "completed" | "blocked";
629
+ id: string;
630
+ dependencies?: string[] | undefined;
631
+ content?: string | undefined;
632
+ priority?: "high" | "medium" | "low" | undefined;
633
+ notes?: string | undefined;
634
+ }>, "many">>;
635
+ taskId: z.ZodOptional<z.ZodString>;
636
+ }, "strip", z.ZodTypeAny, {
637
+ action: "create" | "update" | "list" | "complete" | "remove";
638
+ tasks?: {
639
+ status: "pending" | "in_progress" | "completed" | "blocked";
640
+ id: string;
641
+ priority: "high" | "medium" | "low";
642
+ dependencies?: string[] | undefined;
643
+ content?: string | undefined;
644
+ notes?: string | undefined;
645
+ }[] | undefined;
646
+ taskId?: string | undefined;
647
+ }, {
648
+ action: "create" | "update" | "list" | "complete" | "remove";
649
+ tasks?: {
650
+ status: "pending" | "in_progress" | "completed" | "blocked";
651
+ id: string;
652
+ dependencies?: string[] | undefined;
653
+ content?: string | undefined;
654
+ priority?: "high" | "medium" | "low" | undefined;
655
+ notes?: string | undefined;
656
+ }[] | undefined;
657
+ taskId?: string | undefined;
658
+ }>, z.ZodObject<{
659
+ success: z.ZodBoolean;
660
+ tasks: z.ZodArray<z.ZodObject<{
661
+ id: z.ZodString;
662
+ content: z.ZodString;
663
+ status: z.ZodString;
664
+ priority: z.ZodString;
665
+ dependencies: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
666
+ notes: z.ZodOptional<z.ZodString>;
667
+ createdAt: z.ZodString;
668
+ updatedAt: z.ZodString;
669
+ }, "strip", z.ZodTypeAny, {
670
+ status: string;
671
+ id: string;
672
+ content: string;
673
+ priority: string;
674
+ createdAt: string;
675
+ updatedAt: string;
676
+ dependencies?: string[] | undefined;
677
+ notes?: string | undefined;
678
+ }, {
679
+ status: string;
680
+ id: string;
681
+ content: string;
682
+ priority: string;
683
+ createdAt: string;
684
+ updatedAt: string;
685
+ dependencies?: string[] | undefined;
686
+ notes?: string | undefined;
687
+ }>, "many">;
688
+ message: z.ZodString;
689
+ }, "strip", z.ZodTypeAny, {
690
+ message: string;
691
+ success: boolean;
692
+ tasks: {
693
+ status: string;
694
+ id: string;
695
+ content: string;
696
+ priority: string;
697
+ createdAt: string;
698
+ updatedAt: string;
699
+ dependencies?: string[] | undefined;
700
+ notes?: string | undefined;
701
+ }[];
702
+ }, {
703
+ message: string;
704
+ success: boolean;
705
+ tasks: {
706
+ status: string;
707
+ id: string;
708
+ content: string;
709
+ priority: string;
710
+ createdAt: string;
711
+ updatedAt: string;
712
+ dependencies?: string[] | undefined;
713
+ notes?: string | undefined;
714
+ }[];
715
+ }>, import("@mastra/core").ToolExecutionContext<z.ZodObject<{
716
+ action: z.ZodEnum<["create", "update", "list", "complete", "remove"]>;
717
+ tasks: z.ZodOptional<z.ZodArray<z.ZodObject<{
718
+ id: z.ZodString;
719
+ content: z.ZodOptional<z.ZodString>;
720
+ status: z.ZodEnum<["pending", "in_progress", "completed", "blocked"]>;
721
+ priority: z.ZodDefault<z.ZodEnum<["high", "medium", "low"]>>;
722
+ dependencies: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
723
+ notes: z.ZodOptional<z.ZodString>;
724
+ }, "strip", z.ZodTypeAny, {
725
+ status: "pending" | "in_progress" | "completed" | "blocked";
726
+ id: string;
727
+ priority: "high" | "medium" | "low";
728
+ dependencies?: string[] | undefined;
729
+ content?: string | undefined;
730
+ notes?: string | undefined;
731
+ }, {
732
+ status: "pending" | "in_progress" | "completed" | "blocked";
733
+ id: string;
734
+ dependencies?: string[] | undefined;
735
+ content?: string | undefined;
736
+ priority?: "high" | "medium" | "low" | undefined;
737
+ notes?: string | undefined;
738
+ }>, "many">>;
739
+ taskId: z.ZodOptional<z.ZodString>;
740
+ }, "strip", z.ZodTypeAny, {
741
+ action: "create" | "update" | "list" | "complete" | "remove";
742
+ tasks?: {
743
+ status: "pending" | "in_progress" | "completed" | "blocked";
744
+ id: string;
745
+ priority: "high" | "medium" | "low";
746
+ dependencies?: string[] | undefined;
747
+ content?: string | undefined;
748
+ notes?: string | undefined;
749
+ }[] | undefined;
750
+ taskId?: string | undefined;
751
+ }, {
752
+ action: "create" | "update" | "list" | "complete" | "remove";
753
+ tasks?: {
754
+ status: "pending" | "in_progress" | "completed" | "blocked";
755
+ id: string;
756
+ dependencies?: string[] | undefined;
757
+ content?: string | undefined;
758
+ priority?: "high" | "medium" | "low" | undefined;
759
+ notes?: string | undefined;
760
+ }[] | undefined;
761
+ taskId?: string | undefined;
762
+ }>>> & {
763
+ inputSchema: z.ZodObject<{
764
+ action: z.ZodEnum<["create", "update", "list", "complete", "remove"]>;
765
+ tasks: z.ZodOptional<z.ZodArray<z.ZodObject<{
766
+ id: z.ZodString;
767
+ content: z.ZodOptional<z.ZodString>;
768
+ status: z.ZodEnum<["pending", "in_progress", "completed", "blocked"]>;
769
+ priority: z.ZodDefault<z.ZodEnum<["high", "medium", "low"]>>;
770
+ dependencies: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
771
+ notes: z.ZodOptional<z.ZodString>;
772
+ }, "strip", z.ZodTypeAny, {
773
+ status: "pending" | "in_progress" | "completed" | "blocked";
774
+ id: string;
775
+ priority: "high" | "medium" | "low";
776
+ dependencies?: string[] | undefined;
777
+ content?: string | undefined;
778
+ notes?: string | undefined;
779
+ }, {
780
+ status: "pending" | "in_progress" | "completed" | "blocked";
781
+ id: string;
782
+ dependencies?: string[] | undefined;
783
+ content?: string | undefined;
784
+ priority?: "high" | "medium" | "low" | undefined;
785
+ notes?: string | undefined;
786
+ }>, "many">>;
787
+ taskId: z.ZodOptional<z.ZodString>;
788
+ }, "strip", z.ZodTypeAny, {
789
+ action: "create" | "update" | "list" | "complete" | "remove";
790
+ tasks?: {
791
+ status: "pending" | "in_progress" | "completed" | "blocked";
792
+ id: string;
793
+ priority: "high" | "medium" | "low";
794
+ dependencies?: string[] | undefined;
795
+ content?: string | undefined;
796
+ notes?: string | undefined;
797
+ }[] | undefined;
798
+ taskId?: string | undefined;
799
+ }, {
800
+ action: "create" | "update" | "list" | "complete" | "remove";
801
+ tasks?: {
802
+ status: "pending" | "in_progress" | "completed" | "blocked";
803
+ id: string;
804
+ dependencies?: string[] | undefined;
805
+ content?: string | undefined;
806
+ priority?: "high" | "medium" | "low" | undefined;
807
+ notes?: string | undefined;
808
+ }[] | undefined;
809
+ taskId?: string | undefined;
810
+ }>;
811
+ outputSchema: z.ZodObject<{
812
+ success: z.ZodBoolean;
813
+ tasks: z.ZodArray<z.ZodObject<{
814
+ id: z.ZodString;
815
+ content: z.ZodString;
816
+ status: z.ZodString;
817
+ priority: z.ZodString;
818
+ dependencies: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
819
+ notes: z.ZodOptional<z.ZodString>;
820
+ createdAt: z.ZodString;
821
+ updatedAt: z.ZodString;
822
+ }, "strip", z.ZodTypeAny, {
823
+ status: string;
824
+ id: string;
825
+ content: string;
826
+ priority: string;
827
+ createdAt: string;
828
+ updatedAt: string;
829
+ dependencies?: string[] | undefined;
830
+ notes?: string | undefined;
831
+ }, {
832
+ status: string;
833
+ id: string;
834
+ content: string;
835
+ priority: string;
836
+ createdAt: string;
837
+ updatedAt: string;
838
+ dependencies?: string[] | undefined;
839
+ notes?: string | undefined;
840
+ }>, "many">;
841
+ message: z.ZodString;
842
+ }, "strip", z.ZodTypeAny, {
843
+ message: string;
844
+ success: boolean;
845
+ tasks: {
846
+ status: string;
847
+ id: string;
848
+ content: string;
849
+ priority: string;
850
+ createdAt: string;
851
+ updatedAt: string;
852
+ dependencies?: string[] | undefined;
853
+ notes?: string | undefined;
854
+ }[];
855
+ }, {
856
+ message: string;
857
+ success: boolean;
858
+ tasks: {
859
+ status: string;
860
+ id: string;
861
+ content: string;
862
+ priority: string;
863
+ createdAt: string;
864
+ updatedAt: string;
865
+ dependencies?: string[] | undefined;
866
+ notes?: string | undefined;
867
+ }[];
868
+ }>;
869
+ execute: (context: import("@mastra/core").ToolExecutionContext<z.ZodObject<{
870
+ action: z.ZodEnum<["create", "update", "list", "complete", "remove"]>;
871
+ tasks: z.ZodOptional<z.ZodArray<z.ZodObject<{
872
+ id: z.ZodString;
873
+ content: z.ZodOptional<z.ZodString>;
874
+ status: z.ZodEnum<["pending", "in_progress", "completed", "blocked"]>;
875
+ priority: z.ZodDefault<z.ZodEnum<["high", "medium", "low"]>>;
876
+ dependencies: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
877
+ notes: z.ZodOptional<z.ZodString>;
878
+ }, "strip", z.ZodTypeAny, {
879
+ status: "pending" | "in_progress" | "completed" | "blocked";
880
+ id: string;
881
+ priority: "high" | "medium" | "low";
882
+ dependencies?: string[] | undefined;
883
+ content?: string | undefined;
884
+ notes?: string | undefined;
885
+ }, {
886
+ status: "pending" | "in_progress" | "completed" | "blocked";
887
+ id: string;
888
+ dependencies?: string[] | undefined;
889
+ content?: string | undefined;
890
+ priority?: "high" | "medium" | "low" | undefined;
891
+ notes?: string | undefined;
892
+ }>, "many">>;
893
+ taskId: z.ZodOptional<z.ZodString>;
894
+ }, "strip", z.ZodTypeAny, {
895
+ action: "create" | "update" | "list" | "complete" | "remove";
896
+ tasks?: {
897
+ status: "pending" | "in_progress" | "completed" | "blocked";
898
+ id: string;
899
+ priority: "high" | "medium" | "low";
900
+ dependencies?: string[] | undefined;
901
+ content?: string | undefined;
902
+ notes?: string | undefined;
903
+ }[] | undefined;
904
+ taskId?: string | undefined;
905
+ }, {
906
+ action: "create" | "update" | "list" | "complete" | "remove";
907
+ tasks?: {
908
+ status: "pending" | "in_progress" | "completed" | "blocked";
909
+ id: string;
910
+ dependencies?: string[] | undefined;
911
+ content?: string | undefined;
912
+ priority?: "high" | "medium" | "low" | undefined;
913
+ notes?: string | undefined;
914
+ }[] | undefined;
915
+ taskId?: string | undefined;
916
+ }>>, options: import("ai").ToolExecutionOptions | import("ai").ToolCallOptions) => Promise<any>;
917
+ };
918
+ multiEdit: import("@mastra/core/tools").Tool<z.ZodObject<{
919
+ operations: z.ZodArray<z.ZodObject<{
920
+ filePath: z.ZodString;
921
+ edits: z.ZodArray<z.ZodObject<{
922
+ oldString: z.ZodString;
923
+ newString: z.ZodString;
924
+ replaceAll: z.ZodDefault<z.ZodBoolean>;
925
+ }, "strip", z.ZodTypeAny, {
926
+ replaceAll: boolean;
927
+ oldString: string;
928
+ newString: string;
929
+ }, {
930
+ oldString: string;
931
+ newString: string;
932
+ replaceAll?: boolean | undefined;
933
+ }>, "many">;
934
+ }, "strip", z.ZodTypeAny, {
935
+ filePath: string;
936
+ edits: {
937
+ replaceAll: boolean;
938
+ oldString: string;
939
+ newString: string;
940
+ }[];
941
+ }, {
942
+ filePath: string;
943
+ edits: {
944
+ oldString: string;
945
+ newString: string;
946
+ replaceAll?: boolean | undefined;
947
+ }[];
948
+ }>, "many">;
949
+ createBackup: z.ZodDefault<z.ZodBoolean>;
950
+ }, "strip", z.ZodTypeAny, {
951
+ operations: {
952
+ filePath: string;
953
+ edits: {
954
+ replaceAll: boolean;
955
+ oldString: string;
956
+ newString: string;
957
+ }[];
958
+ }[];
959
+ createBackup: boolean;
960
+ }, {
961
+ operations: {
962
+ filePath: string;
963
+ edits: {
964
+ oldString: string;
965
+ newString: string;
966
+ replaceAll?: boolean | undefined;
967
+ }[];
968
+ }[];
969
+ createBackup?: boolean | undefined;
970
+ }>, z.ZodObject<{
971
+ success: z.ZodBoolean;
972
+ results: z.ZodArray<z.ZodObject<{
973
+ filePath: z.ZodString;
974
+ editsApplied: z.ZodNumber;
975
+ errors: z.ZodArray<z.ZodString, "many">;
976
+ backup: z.ZodOptional<z.ZodString>;
977
+ }, "strip", z.ZodTypeAny, {
978
+ errors: string[];
979
+ filePath: string;
980
+ editsApplied: number;
981
+ backup?: string | undefined;
982
+ }, {
983
+ errors: string[];
984
+ filePath: string;
985
+ editsApplied: number;
986
+ backup?: string | undefined;
987
+ }>, "many">;
988
+ message: z.ZodString;
989
+ }, "strip", z.ZodTypeAny, {
990
+ message: string;
991
+ success: boolean;
992
+ results: {
993
+ errors: string[];
994
+ filePath: string;
995
+ editsApplied: number;
996
+ backup?: string | undefined;
997
+ }[];
998
+ }, {
999
+ message: string;
1000
+ success: boolean;
1001
+ results: {
1002
+ errors: string[];
1003
+ filePath: string;
1004
+ editsApplied: number;
1005
+ backup?: string | undefined;
1006
+ }[];
1007
+ }>, import("@mastra/core").ToolExecutionContext<z.ZodObject<{
1008
+ operations: z.ZodArray<z.ZodObject<{
1009
+ filePath: z.ZodString;
1010
+ edits: z.ZodArray<z.ZodObject<{
1011
+ oldString: z.ZodString;
1012
+ newString: z.ZodString;
1013
+ replaceAll: z.ZodDefault<z.ZodBoolean>;
1014
+ }, "strip", z.ZodTypeAny, {
1015
+ replaceAll: boolean;
1016
+ oldString: string;
1017
+ newString: string;
1018
+ }, {
1019
+ oldString: string;
1020
+ newString: string;
1021
+ replaceAll?: boolean | undefined;
1022
+ }>, "many">;
1023
+ }, "strip", z.ZodTypeAny, {
1024
+ filePath: string;
1025
+ edits: {
1026
+ replaceAll: boolean;
1027
+ oldString: string;
1028
+ newString: string;
1029
+ }[];
1030
+ }, {
1031
+ filePath: string;
1032
+ edits: {
1033
+ oldString: string;
1034
+ newString: string;
1035
+ replaceAll?: boolean | undefined;
1036
+ }[];
1037
+ }>, "many">;
1038
+ createBackup: z.ZodDefault<z.ZodBoolean>;
1039
+ }, "strip", z.ZodTypeAny, {
1040
+ operations: {
1041
+ filePath: string;
1042
+ edits: {
1043
+ replaceAll: boolean;
1044
+ oldString: string;
1045
+ newString: string;
1046
+ }[];
1047
+ }[];
1048
+ createBackup: boolean;
1049
+ }, {
1050
+ operations: {
1051
+ filePath: string;
1052
+ edits: {
1053
+ oldString: string;
1054
+ newString: string;
1055
+ replaceAll?: boolean | undefined;
1056
+ }[];
1057
+ }[];
1058
+ createBackup?: boolean | undefined;
1059
+ }>>> & {
1060
+ inputSchema: z.ZodObject<{
1061
+ operations: z.ZodArray<z.ZodObject<{
1062
+ filePath: z.ZodString;
1063
+ edits: z.ZodArray<z.ZodObject<{
1064
+ oldString: z.ZodString;
1065
+ newString: z.ZodString;
1066
+ replaceAll: z.ZodDefault<z.ZodBoolean>;
1067
+ }, "strip", z.ZodTypeAny, {
1068
+ replaceAll: boolean;
1069
+ oldString: string;
1070
+ newString: string;
1071
+ }, {
1072
+ oldString: string;
1073
+ newString: string;
1074
+ replaceAll?: boolean | undefined;
1075
+ }>, "many">;
1076
+ }, "strip", z.ZodTypeAny, {
1077
+ filePath: string;
1078
+ edits: {
1079
+ replaceAll: boolean;
1080
+ oldString: string;
1081
+ newString: string;
1082
+ }[];
1083
+ }, {
1084
+ filePath: string;
1085
+ edits: {
1086
+ oldString: string;
1087
+ newString: string;
1088
+ replaceAll?: boolean | undefined;
1089
+ }[];
1090
+ }>, "many">;
1091
+ createBackup: z.ZodDefault<z.ZodBoolean>;
1092
+ }, "strip", z.ZodTypeAny, {
1093
+ operations: {
1094
+ filePath: string;
1095
+ edits: {
1096
+ replaceAll: boolean;
1097
+ oldString: string;
1098
+ newString: string;
1099
+ }[];
1100
+ }[];
1101
+ createBackup: boolean;
1102
+ }, {
1103
+ operations: {
1104
+ filePath: string;
1105
+ edits: {
1106
+ oldString: string;
1107
+ newString: string;
1108
+ replaceAll?: boolean | undefined;
1109
+ }[];
1110
+ }[];
1111
+ createBackup?: boolean | undefined;
1112
+ }>;
1113
+ outputSchema: z.ZodObject<{
1114
+ success: z.ZodBoolean;
1115
+ results: z.ZodArray<z.ZodObject<{
1116
+ filePath: z.ZodString;
1117
+ editsApplied: z.ZodNumber;
1118
+ errors: z.ZodArray<z.ZodString, "many">;
1119
+ backup: z.ZodOptional<z.ZodString>;
1120
+ }, "strip", z.ZodTypeAny, {
1121
+ errors: string[];
1122
+ filePath: string;
1123
+ editsApplied: number;
1124
+ backup?: string | undefined;
1125
+ }, {
1126
+ errors: string[];
1127
+ filePath: string;
1128
+ editsApplied: number;
1129
+ backup?: string | undefined;
1130
+ }>, "many">;
1131
+ message: z.ZodString;
1132
+ }, "strip", z.ZodTypeAny, {
1133
+ message: string;
1134
+ success: boolean;
1135
+ results: {
1136
+ errors: string[];
1137
+ filePath: string;
1138
+ editsApplied: number;
1139
+ backup?: string | undefined;
1140
+ }[];
1141
+ }, {
1142
+ message: string;
1143
+ success: boolean;
1144
+ results: {
1145
+ errors: string[];
1146
+ filePath: string;
1147
+ editsApplied: number;
1148
+ backup?: string | undefined;
1149
+ }[];
1150
+ }>;
1151
+ execute: (context: import("@mastra/core").ToolExecutionContext<z.ZodObject<{
1152
+ operations: z.ZodArray<z.ZodObject<{
1153
+ filePath: z.ZodString;
1154
+ edits: z.ZodArray<z.ZodObject<{
1155
+ oldString: z.ZodString;
1156
+ newString: z.ZodString;
1157
+ replaceAll: z.ZodDefault<z.ZodBoolean>;
1158
+ }, "strip", z.ZodTypeAny, {
1159
+ replaceAll: boolean;
1160
+ oldString: string;
1161
+ newString: string;
1162
+ }, {
1163
+ oldString: string;
1164
+ newString: string;
1165
+ replaceAll?: boolean | undefined;
1166
+ }>, "many">;
1167
+ }, "strip", z.ZodTypeAny, {
1168
+ filePath: string;
1169
+ edits: {
1170
+ replaceAll: boolean;
1171
+ oldString: string;
1172
+ newString: string;
1173
+ }[];
1174
+ }, {
1175
+ filePath: string;
1176
+ edits: {
1177
+ oldString: string;
1178
+ newString: string;
1179
+ replaceAll?: boolean | undefined;
1180
+ }[];
1181
+ }>, "many">;
1182
+ createBackup: z.ZodDefault<z.ZodBoolean>;
1183
+ }, "strip", z.ZodTypeAny, {
1184
+ operations: {
1185
+ filePath: string;
1186
+ edits: {
1187
+ replaceAll: boolean;
1188
+ oldString: string;
1189
+ newString: string;
1190
+ }[];
1191
+ }[];
1192
+ createBackup: boolean;
1193
+ }, {
1194
+ operations: {
1195
+ filePath: string;
1196
+ edits: {
1197
+ oldString: string;
1198
+ newString: string;
1199
+ replaceAll?: boolean | undefined;
1200
+ }[];
1201
+ }[];
1202
+ createBackup?: boolean | undefined;
1203
+ }>>, options: import("ai").ToolExecutionOptions | import("ai").ToolCallOptions) => Promise<any>;
1204
+ };
1205
+ replaceLines: import("@mastra/core/tools").Tool<z.ZodObject<{
1206
+ filePath: z.ZodString;
1207
+ startLine: z.ZodNumber;
1208
+ endLine: z.ZodNumber;
1209
+ newContent: z.ZodString;
1210
+ createBackup: z.ZodDefault<z.ZodBoolean>;
1211
+ }, "strip", z.ZodTypeAny, {
1212
+ filePath: string;
1213
+ startLine: number;
1214
+ endLine: number;
1215
+ createBackup: boolean;
1216
+ newContent: string;
1217
+ }, {
1218
+ filePath: string;
1219
+ startLine: number;
1220
+ endLine: number;
1221
+ newContent: string;
1222
+ createBackup?: boolean | undefined;
1223
+ }>, z.ZodObject<{
1224
+ success: z.ZodBoolean;
1225
+ message: z.ZodString;
1226
+ linesReplaced: z.ZodOptional<z.ZodNumber>;
1227
+ backup: z.ZodOptional<z.ZodString>;
1228
+ error: z.ZodOptional<z.ZodString>;
1229
+ }, "strip", z.ZodTypeAny, {
1230
+ message: string;
1231
+ success: boolean;
1232
+ error?: string | undefined;
1233
+ backup?: string | undefined;
1234
+ linesReplaced?: number | undefined;
1235
+ }, {
1236
+ message: string;
1237
+ success: boolean;
1238
+ error?: string | undefined;
1239
+ backup?: string | undefined;
1240
+ linesReplaced?: number | undefined;
1241
+ }>, import("@mastra/core").ToolExecutionContext<z.ZodObject<{
1242
+ filePath: z.ZodString;
1243
+ startLine: z.ZodNumber;
1244
+ endLine: z.ZodNumber;
1245
+ newContent: z.ZodString;
1246
+ createBackup: z.ZodDefault<z.ZodBoolean>;
1247
+ }, "strip", z.ZodTypeAny, {
1248
+ filePath: string;
1249
+ startLine: number;
1250
+ endLine: number;
1251
+ createBackup: boolean;
1252
+ newContent: string;
1253
+ }, {
1254
+ filePath: string;
1255
+ startLine: number;
1256
+ endLine: number;
1257
+ newContent: string;
1258
+ createBackup?: boolean | undefined;
1259
+ }>>> & {
1260
+ inputSchema: z.ZodObject<{
1261
+ filePath: z.ZodString;
1262
+ startLine: z.ZodNumber;
1263
+ endLine: z.ZodNumber;
1264
+ newContent: z.ZodString;
1265
+ createBackup: z.ZodDefault<z.ZodBoolean>;
1266
+ }, "strip", z.ZodTypeAny, {
1267
+ filePath: string;
1268
+ startLine: number;
1269
+ endLine: number;
1270
+ createBackup: boolean;
1271
+ newContent: string;
1272
+ }, {
1273
+ filePath: string;
1274
+ startLine: number;
1275
+ endLine: number;
1276
+ newContent: string;
1277
+ createBackup?: boolean | undefined;
1278
+ }>;
1279
+ outputSchema: z.ZodObject<{
1280
+ success: z.ZodBoolean;
1281
+ message: z.ZodString;
1282
+ linesReplaced: z.ZodOptional<z.ZodNumber>;
1283
+ backup: z.ZodOptional<z.ZodString>;
1284
+ error: z.ZodOptional<z.ZodString>;
1285
+ }, "strip", z.ZodTypeAny, {
1286
+ message: string;
1287
+ success: boolean;
1288
+ error?: string | undefined;
1289
+ backup?: string | undefined;
1290
+ linesReplaced?: number | undefined;
1291
+ }, {
1292
+ message: string;
1293
+ success: boolean;
1294
+ error?: string | undefined;
1295
+ backup?: string | undefined;
1296
+ linesReplaced?: number | undefined;
1297
+ }>;
1298
+ execute: (context: import("@mastra/core").ToolExecutionContext<z.ZodObject<{
1299
+ filePath: z.ZodString;
1300
+ startLine: z.ZodNumber;
1301
+ endLine: z.ZodNumber;
1302
+ newContent: z.ZodString;
1303
+ createBackup: z.ZodDefault<z.ZodBoolean>;
1304
+ }, "strip", z.ZodTypeAny, {
1305
+ filePath: string;
1306
+ startLine: number;
1307
+ endLine: number;
1308
+ createBackup: boolean;
1309
+ newContent: string;
1310
+ }, {
1311
+ filePath: string;
1312
+ startLine: number;
1313
+ endLine: number;
1314
+ newContent: string;
1315
+ createBackup?: boolean | undefined;
1316
+ }>>, options: import("ai").ToolExecutionOptions | import("ai").ToolCallOptions) => Promise<any>;
1317
+ };
1318
+ showFileLines: import("@mastra/core/tools").Tool<z.ZodObject<{
1319
+ filePath: z.ZodString;
1320
+ startLine: z.ZodOptional<z.ZodNumber>;
1321
+ endLine: z.ZodOptional<z.ZodNumber>;
1322
+ context: z.ZodDefault<z.ZodNumber>;
1323
+ }, "strip", z.ZodTypeAny, {
1324
+ filePath: string;
1325
+ context: number;
1326
+ startLine?: number | undefined;
1327
+ endLine?: number | undefined;
1328
+ }, {
1329
+ filePath: string;
1330
+ startLine?: number | undefined;
1331
+ endLine?: number | undefined;
1332
+ context?: number | undefined;
1333
+ }>, z.ZodObject<{
1334
+ success: z.ZodBoolean;
1335
+ lines: z.ZodArray<z.ZodObject<{
1336
+ lineNumber: z.ZodNumber;
1337
+ content: z.ZodString;
1338
+ isTarget: z.ZodBoolean;
1339
+ }, "strip", z.ZodTypeAny, {
1340
+ content: string;
1341
+ lineNumber: number;
1342
+ isTarget: boolean;
1343
+ }, {
1344
+ content: string;
1345
+ lineNumber: number;
1346
+ isTarget: boolean;
1347
+ }>, "many">;
1348
+ totalLines: z.ZodNumber;
1349
+ message: z.ZodString;
1350
+ error: z.ZodOptional<z.ZodString>;
1351
+ }, "strip", z.ZodTypeAny, {
1352
+ message: string;
1353
+ success: boolean;
1354
+ lines: {
1355
+ content: string;
1356
+ lineNumber: number;
1357
+ isTarget: boolean;
1358
+ }[];
1359
+ totalLines: number;
1360
+ error?: string | undefined;
1361
+ }, {
1362
+ message: string;
1363
+ success: boolean;
1364
+ lines: {
1365
+ content: string;
1366
+ lineNumber: number;
1367
+ isTarget: boolean;
1368
+ }[];
1369
+ totalLines: number;
1370
+ error?: string | undefined;
1371
+ }>, import("@mastra/core").ToolExecutionContext<z.ZodObject<{
1372
+ filePath: z.ZodString;
1373
+ startLine: z.ZodOptional<z.ZodNumber>;
1374
+ endLine: z.ZodOptional<z.ZodNumber>;
1375
+ context: z.ZodDefault<z.ZodNumber>;
1376
+ }, "strip", z.ZodTypeAny, {
1377
+ filePath: string;
1378
+ context: number;
1379
+ startLine?: number | undefined;
1380
+ endLine?: number | undefined;
1381
+ }, {
1382
+ filePath: string;
1383
+ startLine?: number | undefined;
1384
+ endLine?: number | undefined;
1385
+ context?: number | undefined;
1386
+ }>>> & {
1387
+ inputSchema: z.ZodObject<{
1388
+ filePath: z.ZodString;
1389
+ startLine: z.ZodOptional<z.ZodNumber>;
1390
+ endLine: z.ZodOptional<z.ZodNumber>;
1391
+ context: z.ZodDefault<z.ZodNumber>;
1392
+ }, "strip", z.ZodTypeAny, {
1393
+ filePath: string;
1394
+ context: number;
1395
+ startLine?: number | undefined;
1396
+ endLine?: number | undefined;
1397
+ }, {
1398
+ filePath: string;
1399
+ startLine?: number | undefined;
1400
+ endLine?: number | undefined;
1401
+ context?: number | undefined;
1402
+ }>;
1403
+ outputSchema: z.ZodObject<{
1404
+ success: z.ZodBoolean;
1405
+ lines: z.ZodArray<z.ZodObject<{
1406
+ lineNumber: z.ZodNumber;
1407
+ content: z.ZodString;
1408
+ isTarget: z.ZodBoolean;
1409
+ }, "strip", z.ZodTypeAny, {
1410
+ content: string;
1411
+ lineNumber: number;
1412
+ isTarget: boolean;
1413
+ }, {
1414
+ content: string;
1415
+ lineNumber: number;
1416
+ isTarget: boolean;
1417
+ }>, "many">;
1418
+ totalLines: z.ZodNumber;
1419
+ message: z.ZodString;
1420
+ error: z.ZodOptional<z.ZodString>;
1421
+ }, "strip", z.ZodTypeAny, {
1422
+ message: string;
1423
+ success: boolean;
1424
+ lines: {
1425
+ content: string;
1426
+ lineNumber: number;
1427
+ isTarget: boolean;
1428
+ }[];
1429
+ totalLines: number;
1430
+ error?: string | undefined;
1431
+ }, {
1432
+ message: string;
1433
+ success: boolean;
1434
+ lines: {
1435
+ content: string;
1436
+ lineNumber: number;
1437
+ isTarget: boolean;
1438
+ }[];
1439
+ totalLines: number;
1440
+ error?: string | undefined;
1441
+ }>;
1442
+ execute: (context: import("@mastra/core").ToolExecutionContext<z.ZodObject<{
1443
+ filePath: z.ZodString;
1444
+ startLine: z.ZodOptional<z.ZodNumber>;
1445
+ endLine: z.ZodOptional<z.ZodNumber>;
1446
+ context: z.ZodDefault<z.ZodNumber>;
1447
+ }, "strip", z.ZodTypeAny, {
1448
+ filePath: string;
1449
+ context: number;
1450
+ startLine?: number | undefined;
1451
+ endLine?: number | undefined;
1452
+ }, {
1453
+ filePath: string;
1454
+ startLine?: number | undefined;
1455
+ endLine?: number | undefined;
1456
+ context?: number | undefined;
1457
+ }>>, options: import("ai").ToolExecutionOptions | import("ai").ToolCallOptions) => Promise<any>;
1458
+ };
1459
+ smartSearch: import("@mastra/core/tools").Tool<z.ZodObject<{
1460
+ query: z.ZodString;
1461
+ type: z.ZodDefault<z.ZodEnum<["text", "regex", "fuzzy", "semantic"]>>;
1462
+ scope: z.ZodOptional<z.ZodObject<{
1463
+ paths: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
1464
+ fileTypes: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
1465
+ excludePaths: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
1466
+ maxResults: z.ZodDefault<z.ZodNumber>;
1467
+ }, "strip", z.ZodTypeAny, {
1468
+ maxResults: number;
1469
+ paths?: string[] | undefined;
1470
+ fileTypes?: string[] | undefined;
1471
+ excludePaths?: string[] | undefined;
1472
+ }, {
1473
+ paths?: string[] | undefined;
1474
+ fileTypes?: string[] | undefined;
1475
+ excludePaths?: string[] | undefined;
1476
+ maxResults?: number | undefined;
1477
+ }>>;
1478
+ context: z.ZodOptional<z.ZodObject<{
1479
+ beforeLines: z.ZodDefault<z.ZodNumber>;
1480
+ afterLines: z.ZodDefault<z.ZodNumber>;
1481
+ includeDefinitions: z.ZodDefault<z.ZodBoolean>;
1482
+ }, "strip", z.ZodTypeAny, {
1483
+ beforeLines: number;
1484
+ afterLines: number;
1485
+ includeDefinitions: boolean;
1486
+ }, {
1487
+ beforeLines?: number | undefined;
1488
+ afterLines?: number | undefined;
1489
+ includeDefinitions?: boolean | undefined;
1490
+ }>>;
1491
+ }, "strip", z.ZodTypeAny, {
1492
+ type: "text" | "regex" | "fuzzy" | "semantic";
1493
+ query: string;
1494
+ context?: {
1495
+ beforeLines: number;
1496
+ afterLines: number;
1497
+ includeDefinitions: boolean;
1498
+ } | undefined;
1499
+ scope?: {
1500
+ maxResults: number;
1501
+ paths?: string[] | undefined;
1502
+ fileTypes?: string[] | undefined;
1503
+ excludePaths?: string[] | undefined;
1504
+ } | undefined;
1505
+ }, {
1506
+ query: string;
1507
+ type?: "text" | "regex" | "fuzzy" | "semantic" | undefined;
1508
+ context?: {
1509
+ beforeLines?: number | undefined;
1510
+ afterLines?: number | undefined;
1511
+ includeDefinitions?: boolean | undefined;
1512
+ } | undefined;
1513
+ scope?: {
1514
+ paths?: string[] | undefined;
1515
+ fileTypes?: string[] | undefined;
1516
+ excludePaths?: string[] | undefined;
1517
+ maxResults?: number | undefined;
1518
+ } | undefined;
1519
+ }>, z.ZodObject<{
1520
+ success: z.ZodBoolean;
1521
+ matches: z.ZodArray<z.ZodObject<{
1522
+ file: z.ZodString;
1523
+ line: z.ZodNumber;
1524
+ column: z.ZodOptional<z.ZodNumber>;
1525
+ match: z.ZodString;
1526
+ context: z.ZodObject<{
1527
+ before: z.ZodArray<z.ZodString, "many">;
1528
+ after: z.ZodArray<z.ZodString, "many">;
1529
+ }, "strip", z.ZodTypeAny, {
1530
+ before: string[];
1531
+ after: string[];
1532
+ }, {
1533
+ before: string[];
1534
+ after: string[];
1535
+ }>;
1536
+ relevance: z.ZodOptional<z.ZodNumber>;
1537
+ }, "strip", z.ZodTypeAny, {
1538
+ file: string;
1539
+ match: string;
1540
+ context: {
1541
+ before: string[];
1542
+ after: string[];
1543
+ };
1544
+ line: number;
1545
+ column?: number | undefined;
1546
+ relevance?: number | undefined;
1547
+ }, {
1548
+ file: string;
1549
+ match: string;
1550
+ context: {
1551
+ before: string[];
1552
+ after: string[];
1553
+ };
1554
+ line: number;
1555
+ column?: number | undefined;
1556
+ relevance?: number | undefined;
1557
+ }>, "many">;
1558
+ summary: z.ZodObject<{
1559
+ totalMatches: z.ZodNumber;
1560
+ filesSearched: z.ZodNumber;
1561
+ patterns: z.ZodArray<z.ZodString, "many">;
1562
+ }, "strip", z.ZodTypeAny, {
1563
+ totalMatches: number;
1564
+ filesSearched: number;
1565
+ patterns: string[];
1566
+ }, {
1567
+ totalMatches: number;
1568
+ filesSearched: number;
1569
+ patterns: string[];
1570
+ }>;
1571
+ }, "strip", z.ZodTypeAny, {
1572
+ success: boolean;
1573
+ matches: {
1574
+ file: string;
1575
+ match: string;
1576
+ context: {
1577
+ before: string[];
1578
+ after: string[];
1579
+ };
1580
+ line: number;
1581
+ column?: number | undefined;
1582
+ relevance?: number | undefined;
1583
+ }[];
1584
+ summary: {
1585
+ totalMatches: number;
1586
+ filesSearched: number;
1587
+ patterns: string[];
1588
+ };
1589
+ }, {
1590
+ success: boolean;
1591
+ matches: {
1592
+ file: string;
1593
+ match: string;
1594
+ context: {
1595
+ before: string[];
1596
+ after: string[];
1597
+ };
1598
+ line: number;
1599
+ column?: number | undefined;
1600
+ relevance?: number | undefined;
1601
+ }[];
1602
+ summary: {
1603
+ totalMatches: number;
1604
+ filesSearched: number;
1605
+ patterns: string[];
1606
+ };
1607
+ }>, import("@mastra/core").ToolExecutionContext<z.ZodObject<{
1608
+ query: z.ZodString;
1609
+ type: z.ZodDefault<z.ZodEnum<["text", "regex", "fuzzy", "semantic"]>>;
1610
+ scope: z.ZodOptional<z.ZodObject<{
1611
+ paths: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
1612
+ fileTypes: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
1613
+ excludePaths: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
1614
+ maxResults: z.ZodDefault<z.ZodNumber>;
1615
+ }, "strip", z.ZodTypeAny, {
1616
+ maxResults: number;
1617
+ paths?: string[] | undefined;
1618
+ fileTypes?: string[] | undefined;
1619
+ excludePaths?: string[] | undefined;
1620
+ }, {
1621
+ paths?: string[] | undefined;
1622
+ fileTypes?: string[] | undefined;
1623
+ excludePaths?: string[] | undefined;
1624
+ maxResults?: number | undefined;
1625
+ }>>;
1626
+ context: z.ZodOptional<z.ZodObject<{
1627
+ beforeLines: z.ZodDefault<z.ZodNumber>;
1628
+ afterLines: z.ZodDefault<z.ZodNumber>;
1629
+ includeDefinitions: z.ZodDefault<z.ZodBoolean>;
1630
+ }, "strip", z.ZodTypeAny, {
1631
+ beforeLines: number;
1632
+ afterLines: number;
1633
+ includeDefinitions: boolean;
1634
+ }, {
1635
+ beforeLines?: number | undefined;
1636
+ afterLines?: number | undefined;
1637
+ includeDefinitions?: boolean | undefined;
1638
+ }>>;
1639
+ }, "strip", z.ZodTypeAny, {
1640
+ type: "text" | "regex" | "fuzzy" | "semantic";
1641
+ query: string;
1642
+ context?: {
1643
+ beforeLines: number;
1644
+ afterLines: number;
1645
+ includeDefinitions: boolean;
1646
+ } | undefined;
1647
+ scope?: {
1648
+ maxResults: number;
1649
+ paths?: string[] | undefined;
1650
+ fileTypes?: string[] | undefined;
1651
+ excludePaths?: string[] | undefined;
1652
+ } | undefined;
1653
+ }, {
1654
+ query: string;
1655
+ type?: "text" | "regex" | "fuzzy" | "semantic" | undefined;
1656
+ context?: {
1657
+ beforeLines?: number | undefined;
1658
+ afterLines?: number | undefined;
1659
+ includeDefinitions?: boolean | undefined;
1660
+ } | undefined;
1661
+ scope?: {
1662
+ paths?: string[] | undefined;
1663
+ fileTypes?: string[] | undefined;
1664
+ excludePaths?: string[] | undefined;
1665
+ maxResults?: number | undefined;
1666
+ } | undefined;
1667
+ }>>> & {
1668
+ inputSchema: z.ZodObject<{
1669
+ query: z.ZodString;
1670
+ type: z.ZodDefault<z.ZodEnum<["text", "regex", "fuzzy", "semantic"]>>;
1671
+ scope: z.ZodOptional<z.ZodObject<{
1672
+ paths: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
1673
+ fileTypes: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
1674
+ excludePaths: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
1675
+ maxResults: z.ZodDefault<z.ZodNumber>;
1676
+ }, "strip", z.ZodTypeAny, {
1677
+ maxResults: number;
1678
+ paths?: string[] | undefined;
1679
+ fileTypes?: string[] | undefined;
1680
+ excludePaths?: string[] | undefined;
1681
+ }, {
1682
+ paths?: string[] | undefined;
1683
+ fileTypes?: string[] | undefined;
1684
+ excludePaths?: string[] | undefined;
1685
+ maxResults?: number | undefined;
1686
+ }>>;
1687
+ context: z.ZodOptional<z.ZodObject<{
1688
+ beforeLines: z.ZodDefault<z.ZodNumber>;
1689
+ afterLines: z.ZodDefault<z.ZodNumber>;
1690
+ includeDefinitions: z.ZodDefault<z.ZodBoolean>;
1691
+ }, "strip", z.ZodTypeAny, {
1692
+ beforeLines: number;
1693
+ afterLines: number;
1694
+ includeDefinitions: boolean;
1695
+ }, {
1696
+ beforeLines?: number | undefined;
1697
+ afterLines?: number | undefined;
1698
+ includeDefinitions?: boolean | undefined;
1699
+ }>>;
1700
+ }, "strip", z.ZodTypeAny, {
1701
+ type: "text" | "regex" | "fuzzy" | "semantic";
1702
+ query: string;
1703
+ context?: {
1704
+ beforeLines: number;
1705
+ afterLines: number;
1706
+ includeDefinitions: boolean;
1707
+ } | undefined;
1708
+ scope?: {
1709
+ maxResults: number;
1710
+ paths?: string[] | undefined;
1711
+ fileTypes?: string[] | undefined;
1712
+ excludePaths?: string[] | undefined;
1713
+ } | undefined;
1714
+ }, {
1715
+ query: string;
1716
+ type?: "text" | "regex" | "fuzzy" | "semantic" | undefined;
1717
+ context?: {
1718
+ beforeLines?: number | undefined;
1719
+ afterLines?: number | undefined;
1720
+ includeDefinitions?: boolean | undefined;
1721
+ } | undefined;
1722
+ scope?: {
1723
+ paths?: string[] | undefined;
1724
+ fileTypes?: string[] | undefined;
1725
+ excludePaths?: string[] | undefined;
1726
+ maxResults?: number | undefined;
1727
+ } | undefined;
1728
+ }>;
1729
+ outputSchema: z.ZodObject<{
1730
+ success: z.ZodBoolean;
1731
+ matches: z.ZodArray<z.ZodObject<{
1732
+ file: z.ZodString;
1733
+ line: z.ZodNumber;
1734
+ column: z.ZodOptional<z.ZodNumber>;
1735
+ match: z.ZodString;
1736
+ context: z.ZodObject<{
1737
+ before: z.ZodArray<z.ZodString, "many">;
1738
+ after: z.ZodArray<z.ZodString, "many">;
1739
+ }, "strip", z.ZodTypeAny, {
1740
+ before: string[];
1741
+ after: string[];
1742
+ }, {
1743
+ before: string[];
1744
+ after: string[];
1745
+ }>;
1746
+ relevance: z.ZodOptional<z.ZodNumber>;
1747
+ }, "strip", z.ZodTypeAny, {
1748
+ file: string;
1749
+ match: string;
1750
+ context: {
1751
+ before: string[];
1752
+ after: string[];
1753
+ };
1754
+ line: number;
1755
+ column?: number | undefined;
1756
+ relevance?: number | undefined;
1757
+ }, {
1758
+ file: string;
1759
+ match: string;
1760
+ context: {
1761
+ before: string[];
1762
+ after: string[];
1763
+ };
1764
+ line: number;
1765
+ column?: number | undefined;
1766
+ relevance?: number | undefined;
1767
+ }>, "many">;
1768
+ summary: z.ZodObject<{
1769
+ totalMatches: z.ZodNumber;
1770
+ filesSearched: z.ZodNumber;
1771
+ patterns: z.ZodArray<z.ZodString, "many">;
1772
+ }, "strip", z.ZodTypeAny, {
1773
+ totalMatches: number;
1774
+ filesSearched: number;
1775
+ patterns: string[];
1776
+ }, {
1777
+ totalMatches: number;
1778
+ filesSearched: number;
1779
+ patterns: string[];
1780
+ }>;
1781
+ }, "strip", z.ZodTypeAny, {
1782
+ success: boolean;
1783
+ matches: {
1784
+ file: string;
1785
+ match: string;
1786
+ context: {
1787
+ before: string[];
1788
+ after: string[];
1789
+ };
1790
+ line: number;
1791
+ column?: number | undefined;
1792
+ relevance?: number | undefined;
1793
+ }[];
1794
+ summary: {
1795
+ totalMatches: number;
1796
+ filesSearched: number;
1797
+ patterns: string[];
1798
+ };
1799
+ }, {
1800
+ success: boolean;
1801
+ matches: {
1802
+ file: string;
1803
+ match: string;
1804
+ context: {
1805
+ before: string[];
1806
+ after: string[];
1807
+ };
1808
+ line: number;
1809
+ column?: number | undefined;
1810
+ relevance?: number | undefined;
1811
+ }[];
1812
+ summary: {
1813
+ totalMatches: number;
1814
+ filesSearched: number;
1815
+ patterns: string[];
1816
+ };
1817
+ }>;
1818
+ execute: (context: import("@mastra/core").ToolExecutionContext<z.ZodObject<{
1819
+ query: z.ZodString;
1820
+ type: z.ZodDefault<z.ZodEnum<["text", "regex", "fuzzy", "semantic"]>>;
1821
+ scope: z.ZodOptional<z.ZodObject<{
1822
+ paths: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
1823
+ fileTypes: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
1824
+ excludePaths: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
1825
+ maxResults: z.ZodDefault<z.ZodNumber>;
1826
+ }, "strip", z.ZodTypeAny, {
1827
+ maxResults: number;
1828
+ paths?: string[] | undefined;
1829
+ fileTypes?: string[] | undefined;
1830
+ excludePaths?: string[] | undefined;
1831
+ }, {
1832
+ paths?: string[] | undefined;
1833
+ fileTypes?: string[] | undefined;
1834
+ excludePaths?: string[] | undefined;
1835
+ maxResults?: number | undefined;
1836
+ }>>;
1837
+ context: z.ZodOptional<z.ZodObject<{
1838
+ beforeLines: z.ZodDefault<z.ZodNumber>;
1839
+ afterLines: z.ZodDefault<z.ZodNumber>;
1840
+ includeDefinitions: z.ZodDefault<z.ZodBoolean>;
1841
+ }, "strip", z.ZodTypeAny, {
1842
+ beforeLines: number;
1843
+ afterLines: number;
1844
+ includeDefinitions: boolean;
1845
+ }, {
1846
+ beforeLines?: number | undefined;
1847
+ afterLines?: number | undefined;
1848
+ includeDefinitions?: boolean | undefined;
1849
+ }>>;
1850
+ }, "strip", z.ZodTypeAny, {
1851
+ type: "text" | "regex" | "fuzzy" | "semantic";
1852
+ query: string;
1853
+ context?: {
1854
+ beforeLines: number;
1855
+ afterLines: number;
1856
+ includeDefinitions: boolean;
1857
+ } | undefined;
1858
+ scope?: {
1859
+ maxResults: number;
1860
+ paths?: string[] | undefined;
1861
+ fileTypes?: string[] | undefined;
1862
+ excludePaths?: string[] | undefined;
1863
+ } | undefined;
1864
+ }, {
1865
+ query: string;
1866
+ type?: "text" | "regex" | "fuzzy" | "semantic" | undefined;
1867
+ context?: {
1868
+ beforeLines?: number | undefined;
1869
+ afterLines?: number | undefined;
1870
+ includeDefinitions?: boolean | undefined;
1871
+ } | undefined;
1872
+ scope?: {
1873
+ paths?: string[] | undefined;
1874
+ fileTypes?: string[] | undefined;
1875
+ excludePaths?: string[] | undefined;
1876
+ maxResults?: number | undefined;
1877
+ } | undefined;
1878
+ }>>, options: import("ai").ToolExecutionOptions | import("ai").ToolCallOptions) => Promise<any>;
1879
+ };
1880
+ validateCode: import("@mastra/core/tools").Tool<z.ZodObject<{
1881
+ projectPath: z.ZodOptional<z.ZodString>;
1882
+ validationType: z.ZodArray<z.ZodEnum<["types", "lint", "schemas", "tests", "build"]>, "many">;
1883
+ files: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
1884
+ }, "strip", z.ZodTypeAny, {
1885
+ validationType: ("types" | "schemas" | "tests" | "lint" | "build")[];
1886
+ projectPath?: string | undefined;
1887
+ files?: string[] | undefined;
1888
+ }, {
1889
+ validationType: ("types" | "schemas" | "tests" | "lint" | "build")[];
1890
+ projectPath?: string | undefined;
1891
+ files?: string[] | undefined;
1892
+ }>, z.ZodObject<{
1893
+ valid: z.ZodBoolean;
1894
+ errors: z.ZodArray<z.ZodObject<{
1895
+ type: z.ZodEnum<["typescript", "eslint", "schema", "test", "build"]>;
1896
+ severity: z.ZodEnum<["error", "warning", "info"]>;
1897
+ message: z.ZodString;
1898
+ file: z.ZodOptional<z.ZodString>;
1899
+ line: z.ZodOptional<z.ZodNumber>;
1900
+ column: z.ZodOptional<z.ZodNumber>;
1901
+ code: z.ZodOptional<z.ZodString>;
1902
+ }, "strip", z.ZodTypeAny, {
1903
+ message: string;
1904
+ type: "build" | "typescript" | "eslint" | "schema" | "test";
1905
+ severity: "error" | "warning" | "info";
1906
+ code?: string | undefined;
1907
+ file?: string | undefined;
1908
+ line?: number | undefined;
1909
+ column?: number | undefined;
1910
+ }, {
1911
+ message: string;
1912
+ type: "build" | "typescript" | "eslint" | "schema" | "test";
1913
+ severity: "error" | "warning" | "info";
1914
+ code?: string | undefined;
1915
+ file?: string | undefined;
1916
+ line?: number | undefined;
1917
+ column?: number | undefined;
1918
+ }>, "many">;
1919
+ summary: z.ZodObject<{
1920
+ totalErrors: z.ZodNumber;
1921
+ totalWarnings: z.ZodNumber;
1922
+ validationsPassed: z.ZodArray<z.ZodString, "many">;
1923
+ validationsFailed: z.ZodArray<z.ZodString, "many">;
1924
+ }, "strip", z.ZodTypeAny, {
1925
+ totalErrors: number;
1926
+ totalWarnings: number;
1927
+ validationsPassed: string[];
1928
+ validationsFailed: string[];
1929
+ }, {
1930
+ totalErrors: number;
1931
+ totalWarnings: number;
1932
+ validationsPassed: string[];
1933
+ validationsFailed: string[];
1934
+ }>;
1935
+ }, "strip", z.ZodTypeAny, {
1936
+ valid: boolean;
1937
+ errors: {
1938
+ message: string;
1939
+ type: "build" | "typescript" | "eslint" | "schema" | "test";
1940
+ severity: "error" | "warning" | "info";
1941
+ code?: string | undefined;
1942
+ file?: string | undefined;
1943
+ line?: number | undefined;
1944
+ column?: number | undefined;
1945
+ }[];
1946
+ summary: {
1947
+ totalErrors: number;
1948
+ totalWarnings: number;
1949
+ validationsPassed: string[];
1950
+ validationsFailed: string[];
1951
+ };
1952
+ }, {
1953
+ valid: boolean;
1954
+ errors: {
1955
+ message: string;
1956
+ type: "build" | "typescript" | "eslint" | "schema" | "test";
1957
+ severity: "error" | "warning" | "info";
1958
+ code?: string | undefined;
1959
+ file?: string | undefined;
1960
+ line?: number | undefined;
1961
+ column?: number | undefined;
1962
+ }[];
1963
+ summary: {
1964
+ totalErrors: number;
1965
+ totalWarnings: number;
1966
+ validationsPassed: string[];
1967
+ validationsFailed: string[];
1968
+ };
1969
+ }>, import("@mastra/core").ToolExecutionContext<z.ZodObject<{
1970
+ projectPath: z.ZodOptional<z.ZodString>;
1971
+ validationType: z.ZodArray<z.ZodEnum<["types", "lint", "schemas", "tests", "build"]>, "many">;
1972
+ files: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
1973
+ }, "strip", z.ZodTypeAny, {
1974
+ validationType: ("types" | "schemas" | "tests" | "lint" | "build")[];
1975
+ projectPath?: string | undefined;
1976
+ files?: string[] | undefined;
1977
+ }, {
1978
+ validationType: ("types" | "schemas" | "tests" | "lint" | "build")[];
1979
+ projectPath?: string | undefined;
1980
+ files?: string[] | undefined;
1981
+ }>>> & {
1982
+ inputSchema: z.ZodObject<{
1983
+ projectPath: z.ZodOptional<z.ZodString>;
1984
+ validationType: z.ZodArray<z.ZodEnum<["types", "lint", "schemas", "tests", "build"]>, "many">;
1985
+ files: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
1986
+ }, "strip", z.ZodTypeAny, {
1987
+ validationType: ("types" | "schemas" | "tests" | "lint" | "build")[];
1988
+ projectPath?: string | undefined;
1989
+ files?: string[] | undefined;
1990
+ }, {
1991
+ validationType: ("types" | "schemas" | "tests" | "lint" | "build")[];
1992
+ projectPath?: string | undefined;
1993
+ files?: string[] | undefined;
1994
+ }>;
1995
+ outputSchema: z.ZodObject<{
1996
+ valid: z.ZodBoolean;
1997
+ errors: z.ZodArray<z.ZodObject<{
1998
+ type: z.ZodEnum<["typescript", "eslint", "schema", "test", "build"]>;
1999
+ severity: z.ZodEnum<["error", "warning", "info"]>;
2000
+ message: z.ZodString;
2001
+ file: z.ZodOptional<z.ZodString>;
2002
+ line: z.ZodOptional<z.ZodNumber>;
2003
+ column: z.ZodOptional<z.ZodNumber>;
2004
+ code: z.ZodOptional<z.ZodString>;
2005
+ }, "strip", z.ZodTypeAny, {
2006
+ message: string;
2007
+ type: "build" | "typescript" | "eslint" | "schema" | "test";
2008
+ severity: "error" | "warning" | "info";
2009
+ code?: string | undefined;
2010
+ file?: string | undefined;
2011
+ line?: number | undefined;
2012
+ column?: number | undefined;
2013
+ }, {
2014
+ message: string;
2015
+ type: "build" | "typescript" | "eslint" | "schema" | "test";
2016
+ severity: "error" | "warning" | "info";
2017
+ code?: string | undefined;
2018
+ file?: string | undefined;
2019
+ line?: number | undefined;
2020
+ column?: number | undefined;
2021
+ }>, "many">;
2022
+ summary: z.ZodObject<{
2023
+ totalErrors: z.ZodNumber;
2024
+ totalWarnings: z.ZodNumber;
2025
+ validationsPassed: z.ZodArray<z.ZodString, "many">;
2026
+ validationsFailed: z.ZodArray<z.ZodString, "many">;
2027
+ }, "strip", z.ZodTypeAny, {
2028
+ totalErrors: number;
2029
+ totalWarnings: number;
2030
+ validationsPassed: string[];
2031
+ validationsFailed: string[];
2032
+ }, {
2033
+ totalErrors: number;
2034
+ totalWarnings: number;
2035
+ validationsPassed: string[];
2036
+ validationsFailed: string[];
2037
+ }>;
2038
+ }, "strip", z.ZodTypeAny, {
2039
+ valid: boolean;
2040
+ errors: {
2041
+ message: string;
2042
+ type: "build" | "typescript" | "eslint" | "schema" | "test";
2043
+ severity: "error" | "warning" | "info";
2044
+ code?: string | undefined;
2045
+ file?: string | undefined;
2046
+ line?: number | undefined;
2047
+ column?: number | undefined;
2048
+ }[];
2049
+ summary: {
2050
+ totalErrors: number;
2051
+ totalWarnings: number;
2052
+ validationsPassed: string[];
2053
+ validationsFailed: string[];
2054
+ };
2055
+ }, {
2056
+ valid: boolean;
2057
+ errors: {
2058
+ message: string;
2059
+ type: "build" | "typescript" | "eslint" | "schema" | "test";
2060
+ severity: "error" | "warning" | "info";
2061
+ code?: string | undefined;
2062
+ file?: string | undefined;
2063
+ line?: number | undefined;
2064
+ column?: number | undefined;
2065
+ }[];
2066
+ summary: {
2067
+ totalErrors: number;
2068
+ totalWarnings: number;
2069
+ validationsPassed: string[];
2070
+ validationsFailed: string[];
2071
+ };
2072
+ }>;
2073
+ execute: (context: import("@mastra/core").ToolExecutionContext<z.ZodObject<{
2074
+ projectPath: z.ZodOptional<z.ZodString>;
2075
+ validationType: z.ZodArray<z.ZodEnum<["types", "lint", "schemas", "tests", "build"]>, "many">;
2076
+ files: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
2077
+ }, "strip", z.ZodTypeAny, {
2078
+ validationType: ("types" | "schemas" | "tests" | "lint" | "build")[];
2079
+ projectPath?: string | undefined;
2080
+ files?: string[] | undefined;
2081
+ }, {
2082
+ validationType: ("types" | "schemas" | "tests" | "lint" | "build")[];
2083
+ projectPath?: string | undefined;
2084
+ files?: string[] | undefined;
2085
+ }>>, options: import("ai").ToolExecutionOptions | import("ai").ToolCallOptions) => Promise<any>;
2086
+ };
2087
+ webSearch: import("@mastra/core/tools").Tool<z.ZodObject<{
2088
+ query: z.ZodString;
2089
+ maxResults: z.ZodDefault<z.ZodNumber>;
2090
+ region: z.ZodDefault<z.ZodString>;
2091
+ language: z.ZodDefault<z.ZodString>;
2092
+ includeImages: z.ZodDefault<z.ZodBoolean>;
2093
+ dateRange: z.ZodDefault<z.ZodEnum<["day", "week", "month", "year", "all"]>>;
2094
+ }, "strip", z.ZodTypeAny, {
2095
+ query: string;
2096
+ maxResults: number;
2097
+ region: string;
2098
+ language: string;
2099
+ includeImages: boolean;
2100
+ dateRange: "day" | "week" | "month" | "year" | "all";
2101
+ }, {
2102
+ query: string;
2103
+ maxResults?: number | undefined;
2104
+ region?: string | undefined;
2105
+ language?: string | undefined;
2106
+ includeImages?: boolean | undefined;
2107
+ dateRange?: "day" | "week" | "month" | "year" | "all" | undefined;
2108
+ }>, z.ZodObject<{
2109
+ success: z.ZodBoolean;
2110
+ query: z.ZodString;
2111
+ results: z.ZodArray<z.ZodObject<{
2112
+ title: z.ZodString;
2113
+ url: z.ZodString;
2114
+ snippet: z.ZodString;
2115
+ domain: z.ZodString;
2116
+ publishDate: z.ZodOptional<z.ZodString>;
2117
+ relevanceScore: z.ZodOptional<z.ZodNumber>;
2118
+ }, "strip", z.ZodTypeAny, {
2119
+ title: string;
2120
+ url: string;
2121
+ snippet: string;
2122
+ domain: string;
2123
+ publishDate?: string | undefined;
2124
+ relevanceScore?: number | undefined;
2125
+ }, {
2126
+ title: string;
2127
+ url: string;
2128
+ snippet: string;
2129
+ domain: string;
2130
+ publishDate?: string | undefined;
2131
+ relevanceScore?: number | undefined;
2132
+ }>, "many">;
2133
+ totalResults: z.ZodNumber;
2134
+ searchTime: z.ZodNumber;
2135
+ suggestions: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
2136
+ error: z.ZodOptional<z.ZodString>;
2137
+ }, "strip", z.ZodTypeAny, {
2138
+ success: boolean;
2139
+ results: {
2140
+ title: string;
2141
+ url: string;
2142
+ snippet: string;
2143
+ domain: string;
2144
+ publishDate?: string | undefined;
2145
+ relevanceScore?: number | undefined;
2146
+ }[];
2147
+ query: string;
2148
+ totalResults: number;
2149
+ searchTime: number;
2150
+ error?: string | undefined;
2151
+ suggestions?: string[] | undefined;
2152
+ }, {
2153
+ success: boolean;
2154
+ results: {
2155
+ title: string;
2156
+ url: string;
2157
+ snippet: string;
2158
+ domain: string;
2159
+ publishDate?: string | undefined;
2160
+ relevanceScore?: number | undefined;
2161
+ }[];
2162
+ query: string;
2163
+ totalResults: number;
2164
+ searchTime: number;
2165
+ error?: string | undefined;
2166
+ suggestions?: string[] | undefined;
2167
+ }>, import("@mastra/core").ToolExecutionContext<z.ZodObject<{
2168
+ query: z.ZodString;
2169
+ maxResults: z.ZodDefault<z.ZodNumber>;
2170
+ region: z.ZodDefault<z.ZodString>;
2171
+ language: z.ZodDefault<z.ZodString>;
2172
+ includeImages: z.ZodDefault<z.ZodBoolean>;
2173
+ dateRange: z.ZodDefault<z.ZodEnum<["day", "week", "month", "year", "all"]>>;
2174
+ }, "strip", z.ZodTypeAny, {
2175
+ query: string;
2176
+ maxResults: number;
2177
+ region: string;
2178
+ language: string;
2179
+ includeImages: boolean;
2180
+ dateRange: "day" | "week" | "month" | "year" | "all";
2181
+ }, {
2182
+ query: string;
2183
+ maxResults?: number | undefined;
2184
+ region?: string | undefined;
2185
+ language?: string | undefined;
2186
+ includeImages?: boolean | undefined;
2187
+ dateRange?: "day" | "week" | "month" | "year" | "all" | undefined;
2188
+ }>>> & {
2189
+ inputSchema: z.ZodObject<{
2190
+ query: z.ZodString;
2191
+ maxResults: z.ZodDefault<z.ZodNumber>;
2192
+ region: z.ZodDefault<z.ZodString>;
2193
+ language: z.ZodDefault<z.ZodString>;
2194
+ includeImages: z.ZodDefault<z.ZodBoolean>;
2195
+ dateRange: z.ZodDefault<z.ZodEnum<["day", "week", "month", "year", "all"]>>;
2196
+ }, "strip", z.ZodTypeAny, {
2197
+ query: string;
2198
+ maxResults: number;
2199
+ region: string;
2200
+ language: string;
2201
+ includeImages: boolean;
2202
+ dateRange: "day" | "week" | "month" | "year" | "all";
2203
+ }, {
2204
+ query: string;
2205
+ maxResults?: number | undefined;
2206
+ region?: string | undefined;
2207
+ language?: string | undefined;
2208
+ includeImages?: boolean | undefined;
2209
+ dateRange?: "day" | "week" | "month" | "year" | "all" | undefined;
2210
+ }>;
2211
+ outputSchema: z.ZodObject<{
2212
+ success: z.ZodBoolean;
2213
+ query: z.ZodString;
2214
+ results: z.ZodArray<z.ZodObject<{
2215
+ title: z.ZodString;
2216
+ url: z.ZodString;
2217
+ snippet: z.ZodString;
2218
+ domain: z.ZodString;
2219
+ publishDate: z.ZodOptional<z.ZodString>;
2220
+ relevanceScore: z.ZodOptional<z.ZodNumber>;
2221
+ }, "strip", z.ZodTypeAny, {
2222
+ title: string;
2223
+ url: string;
2224
+ snippet: string;
2225
+ domain: string;
2226
+ publishDate?: string | undefined;
2227
+ relevanceScore?: number | undefined;
2228
+ }, {
2229
+ title: string;
2230
+ url: string;
2231
+ snippet: string;
2232
+ domain: string;
2233
+ publishDate?: string | undefined;
2234
+ relevanceScore?: number | undefined;
2235
+ }>, "many">;
2236
+ totalResults: z.ZodNumber;
2237
+ searchTime: z.ZodNumber;
2238
+ suggestions: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
2239
+ error: z.ZodOptional<z.ZodString>;
2240
+ }, "strip", z.ZodTypeAny, {
2241
+ success: boolean;
2242
+ results: {
2243
+ title: string;
2244
+ url: string;
2245
+ snippet: string;
2246
+ domain: string;
2247
+ publishDate?: string | undefined;
2248
+ relevanceScore?: number | undefined;
2249
+ }[];
2250
+ query: string;
2251
+ totalResults: number;
2252
+ searchTime: number;
2253
+ error?: string | undefined;
2254
+ suggestions?: string[] | undefined;
2255
+ }, {
2256
+ success: boolean;
2257
+ results: {
2258
+ title: string;
2259
+ url: string;
2260
+ snippet: string;
2261
+ domain: string;
2262
+ publishDate?: string | undefined;
2263
+ relevanceScore?: number | undefined;
2264
+ }[];
2265
+ query: string;
2266
+ totalResults: number;
2267
+ searchTime: number;
2268
+ error?: string | undefined;
2269
+ suggestions?: string[] | undefined;
2270
+ }>;
2271
+ execute: (context: import("@mastra/core").ToolExecutionContext<z.ZodObject<{
2272
+ query: z.ZodString;
2273
+ maxResults: z.ZodDefault<z.ZodNumber>;
2274
+ region: z.ZodDefault<z.ZodString>;
2275
+ language: z.ZodDefault<z.ZodString>;
2276
+ includeImages: z.ZodDefault<z.ZodBoolean>;
2277
+ dateRange: z.ZodDefault<z.ZodEnum<["day", "week", "month", "year", "all"]>>;
2278
+ }, "strip", z.ZodTypeAny, {
2279
+ query: string;
2280
+ maxResults: number;
2281
+ region: string;
2282
+ language: string;
2283
+ includeImages: boolean;
2284
+ dateRange: "day" | "week" | "month" | "year" | "all";
2285
+ }, {
2286
+ query: string;
2287
+ maxResults?: number | undefined;
2288
+ region?: string | undefined;
2289
+ language?: string | undefined;
2290
+ includeImages?: boolean | undefined;
2291
+ dateRange?: "day" | "week" | "month" | "year" | "all" | undefined;
2292
+ }>>, options: import("ai").ToolExecutionOptions | import("ai").ToolCallOptions) => Promise<any>;
2293
+ };
2294
+ attemptCompletion: import("@mastra/core/tools").Tool<z.ZodObject<{
2295
+ summary: z.ZodString;
2296
+ changes: z.ZodArray<z.ZodObject<{
2297
+ type: z.ZodEnum<["file_created", "file_modified", "file_deleted", "command_executed", "dependency_added"]>;
2298
+ description: z.ZodString;
2299
+ path: z.ZodOptional<z.ZodString>;
2300
+ }, "strip", z.ZodTypeAny, {
2301
+ type: "file_created" | "file_modified" | "file_deleted" | "command_executed" | "dependency_added";
2302
+ description: string;
2303
+ path?: string | undefined;
2304
+ }, {
2305
+ type: "file_created" | "file_modified" | "file_deleted" | "command_executed" | "dependency_added";
2306
+ description: string;
2307
+ path?: string | undefined;
2308
+ }>, "many">;
2309
+ validation: z.ZodObject<{
2310
+ testsRun: z.ZodDefault<z.ZodBoolean>;
2311
+ buildsSuccessfully: z.ZodDefault<z.ZodBoolean>;
2312
+ manualTestingRequired: z.ZodDefault<z.ZodBoolean>;
2313
+ }, "strip", z.ZodTypeAny, {
2314
+ testsRun: boolean;
2315
+ buildsSuccessfully: boolean;
2316
+ manualTestingRequired: boolean;
2317
+ }, {
2318
+ testsRun?: boolean | undefined;
2319
+ buildsSuccessfully?: boolean | undefined;
2320
+ manualTestingRequired?: boolean | undefined;
2321
+ }>;
2322
+ nextSteps: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
2323
+ }, "strip", z.ZodTypeAny, {
2324
+ validation: {
2325
+ testsRun: boolean;
2326
+ buildsSuccessfully: boolean;
2327
+ manualTestingRequired: boolean;
2328
+ };
2329
+ summary: string;
2330
+ changes: {
2331
+ type: "file_created" | "file_modified" | "file_deleted" | "command_executed" | "dependency_added";
2332
+ description: string;
2333
+ path?: string | undefined;
2334
+ }[];
2335
+ nextSteps?: string[] | undefined;
2336
+ }, {
2337
+ validation: {
2338
+ testsRun?: boolean | undefined;
2339
+ buildsSuccessfully?: boolean | undefined;
2340
+ manualTestingRequired?: boolean | undefined;
2341
+ };
2342
+ summary: string;
2343
+ changes: {
2344
+ type: "file_created" | "file_modified" | "file_deleted" | "command_executed" | "dependency_added";
2345
+ description: string;
2346
+ path?: string | undefined;
2347
+ }[];
2348
+ nextSteps?: string[] | undefined;
2349
+ }>, z.ZodObject<{
2350
+ completionId: z.ZodString;
2351
+ status: z.ZodEnum<["completed", "needs_review", "needs_testing"]>;
2352
+ summary: z.ZodString;
2353
+ confidence: z.ZodNumber;
2354
+ }, "strip", z.ZodTypeAny, {
2355
+ status: "completed" | "needs_review" | "needs_testing";
2356
+ summary: string;
2357
+ completionId: string;
2358
+ confidence: number;
2359
+ }, {
2360
+ status: "completed" | "needs_review" | "needs_testing";
2361
+ summary: string;
2362
+ completionId: string;
2363
+ confidence: number;
2364
+ }>, import("@mastra/core").ToolExecutionContext<z.ZodObject<{
2365
+ summary: z.ZodString;
2366
+ changes: z.ZodArray<z.ZodObject<{
2367
+ type: z.ZodEnum<["file_created", "file_modified", "file_deleted", "command_executed", "dependency_added"]>;
2368
+ description: z.ZodString;
2369
+ path: z.ZodOptional<z.ZodString>;
2370
+ }, "strip", z.ZodTypeAny, {
2371
+ type: "file_created" | "file_modified" | "file_deleted" | "command_executed" | "dependency_added";
2372
+ description: string;
2373
+ path?: string | undefined;
2374
+ }, {
2375
+ type: "file_created" | "file_modified" | "file_deleted" | "command_executed" | "dependency_added";
2376
+ description: string;
2377
+ path?: string | undefined;
2378
+ }>, "many">;
2379
+ validation: z.ZodObject<{
2380
+ testsRun: z.ZodDefault<z.ZodBoolean>;
2381
+ buildsSuccessfully: z.ZodDefault<z.ZodBoolean>;
2382
+ manualTestingRequired: z.ZodDefault<z.ZodBoolean>;
2383
+ }, "strip", z.ZodTypeAny, {
2384
+ testsRun: boolean;
2385
+ buildsSuccessfully: boolean;
2386
+ manualTestingRequired: boolean;
2387
+ }, {
2388
+ testsRun?: boolean | undefined;
2389
+ buildsSuccessfully?: boolean | undefined;
2390
+ manualTestingRequired?: boolean | undefined;
2391
+ }>;
2392
+ nextSteps: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
2393
+ }, "strip", z.ZodTypeAny, {
2394
+ validation: {
2395
+ testsRun: boolean;
2396
+ buildsSuccessfully: boolean;
2397
+ manualTestingRequired: boolean;
2398
+ };
2399
+ summary: string;
2400
+ changes: {
2401
+ type: "file_created" | "file_modified" | "file_deleted" | "command_executed" | "dependency_added";
2402
+ description: string;
2403
+ path?: string | undefined;
2404
+ }[];
2405
+ nextSteps?: string[] | undefined;
2406
+ }, {
2407
+ validation: {
2408
+ testsRun?: boolean | undefined;
2409
+ buildsSuccessfully?: boolean | undefined;
2410
+ manualTestingRequired?: boolean | undefined;
2411
+ };
2412
+ summary: string;
2413
+ changes: {
2414
+ type: "file_created" | "file_modified" | "file_deleted" | "command_executed" | "dependency_added";
2415
+ description: string;
2416
+ path?: string | undefined;
2417
+ }[];
2418
+ nextSteps?: string[] | undefined;
2419
+ }>>> & {
2420
+ inputSchema: z.ZodObject<{
2421
+ summary: z.ZodString;
2422
+ changes: z.ZodArray<z.ZodObject<{
2423
+ type: z.ZodEnum<["file_created", "file_modified", "file_deleted", "command_executed", "dependency_added"]>;
2424
+ description: z.ZodString;
2425
+ path: z.ZodOptional<z.ZodString>;
2426
+ }, "strip", z.ZodTypeAny, {
2427
+ type: "file_created" | "file_modified" | "file_deleted" | "command_executed" | "dependency_added";
2428
+ description: string;
2429
+ path?: string | undefined;
2430
+ }, {
2431
+ type: "file_created" | "file_modified" | "file_deleted" | "command_executed" | "dependency_added";
2432
+ description: string;
2433
+ path?: string | undefined;
2434
+ }>, "many">;
2435
+ validation: z.ZodObject<{
2436
+ testsRun: z.ZodDefault<z.ZodBoolean>;
2437
+ buildsSuccessfully: z.ZodDefault<z.ZodBoolean>;
2438
+ manualTestingRequired: z.ZodDefault<z.ZodBoolean>;
2439
+ }, "strip", z.ZodTypeAny, {
2440
+ testsRun: boolean;
2441
+ buildsSuccessfully: boolean;
2442
+ manualTestingRequired: boolean;
2443
+ }, {
2444
+ testsRun?: boolean | undefined;
2445
+ buildsSuccessfully?: boolean | undefined;
2446
+ manualTestingRequired?: boolean | undefined;
2447
+ }>;
2448
+ nextSteps: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
2449
+ }, "strip", z.ZodTypeAny, {
2450
+ validation: {
2451
+ testsRun: boolean;
2452
+ buildsSuccessfully: boolean;
2453
+ manualTestingRequired: boolean;
2454
+ };
2455
+ summary: string;
2456
+ changes: {
2457
+ type: "file_created" | "file_modified" | "file_deleted" | "command_executed" | "dependency_added";
2458
+ description: string;
2459
+ path?: string | undefined;
2460
+ }[];
2461
+ nextSteps?: string[] | undefined;
2462
+ }, {
2463
+ validation: {
2464
+ testsRun?: boolean | undefined;
2465
+ buildsSuccessfully?: boolean | undefined;
2466
+ manualTestingRequired?: boolean | undefined;
2467
+ };
2468
+ summary: string;
2469
+ changes: {
2470
+ type: "file_created" | "file_modified" | "file_deleted" | "command_executed" | "dependency_added";
2471
+ description: string;
2472
+ path?: string | undefined;
2473
+ }[];
2474
+ nextSteps?: string[] | undefined;
2475
+ }>;
2476
+ outputSchema: z.ZodObject<{
2477
+ completionId: z.ZodString;
2478
+ status: z.ZodEnum<["completed", "needs_review", "needs_testing"]>;
2479
+ summary: z.ZodString;
2480
+ confidence: z.ZodNumber;
2481
+ }, "strip", z.ZodTypeAny, {
2482
+ status: "completed" | "needs_review" | "needs_testing";
2483
+ summary: string;
2484
+ completionId: string;
2485
+ confidence: number;
2486
+ }, {
2487
+ status: "completed" | "needs_review" | "needs_testing";
2488
+ summary: string;
2489
+ completionId: string;
2490
+ confidence: number;
2491
+ }>;
2492
+ execute: (context: import("@mastra/core").ToolExecutionContext<z.ZodObject<{
2493
+ summary: z.ZodString;
2494
+ changes: z.ZodArray<z.ZodObject<{
2495
+ type: z.ZodEnum<["file_created", "file_modified", "file_deleted", "command_executed", "dependency_added"]>;
2496
+ description: z.ZodString;
2497
+ path: z.ZodOptional<z.ZodString>;
2498
+ }, "strip", z.ZodTypeAny, {
2499
+ type: "file_created" | "file_modified" | "file_deleted" | "command_executed" | "dependency_added";
2500
+ description: string;
2501
+ path?: string | undefined;
2502
+ }, {
2503
+ type: "file_created" | "file_modified" | "file_deleted" | "command_executed" | "dependency_added";
2504
+ description: string;
2505
+ path?: string | undefined;
2506
+ }>, "many">;
2507
+ validation: z.ZodObject<{
2508
+ testsRun: z.ZodDefault<z.ZodBoolean>;
2509
+ buildsSuccessfully: z.ZodDefault<z.ZodBoolean>;
2510
+ manualTestingRequired: z.ZodDefault<z.ZodBoolean>;
2511
+ }, "strip", z.ZodTypeAny, {
2512
+ testsRun: boolean;
2513
+ buildsSuccessfully: boolean;
2514
+ manualTestingRequired: boolean;
2515
+ }, {
2516
+ testsRun?: boolean | undefined;
2517
+ buildsSuccessfully?: boolean | undefined;
2518
+ manualTestingRequired?: boolean | undefined;
2519
+ }>;
2520
+ nextSteps: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
2521
+ }, "strip", z.ZodTypeAny, {
2522
+ validation: {
2523
+ testsRun: boolean;
2524
+ buildsSuccessfully: boolean;
2525
+ manualTestingRequired: boolean;
2526
+ };
2527
+ summary: string;
2528
+ changes: {
2529
+ type: "file_created" | "file_modified" | "file_deleted" | "command_executed" | "dependency_added";
2530
+ description: string;
2531
+ path?: string | undefined;
2532
+ }[];
2533
+ nextSteps?: string[] | undefined;
2534
+ }, {
2535
+ validation: {
2536
+ testsRun?: boolean | undefined;
2537
+ buildsSuccessfully?: boolean | undefined;
2538
+ manualTestingRequired?: boolean | undefined;
2539
+ };
2540
+ summary: string;
2541
+ changes: {
2542
+ type: "file_created" | "file_modified" | "file_deleted" | "command_executed" | "dependency_added";
2543
+ description: string;
2544
+ path?: string | undefined;
2545
+ }[];
2546
+ nextSteps?: string[] | undefined;
2547
+ }>>, options: import("ai").ToolExecutionOptions | import("ai").ToolCallOptions) => Promise<any>;
2548
+ };
2549
+ manageProject: import("@mastra/core/tools").Tool<z.ZodObject<{
2550
+ action: z.ZodEnum<["create", "install", "upgrade"]>;
2551
+ features: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
2552
+ packages: z.ZodOptional<z.ZodArray<z.ZodObject<{
2553
+ name: z.ZodString;
2554
+ version: z.ZodOptional<z.ZodString>;
2555
+ }, "strip", z.ZodTypeAny, {
2556
+ name: string;
2557
+ version?: string | undefined;
2558
+ }, {
2559
+ name: string;
2560
+ version?: string | undefined;
2561
+ }>, "many">>;
2562
+ }, "strip", z.ZodTypeAny, {
2563
+ action: "create" | "install" | "upgrade";
2564
+ features?: string[] | undefined;
2565
+ packages?: {
2566
+ name: string;
2567
+ version?: string | undefined;
2568
+ }[] | undefined;
2569
+ }, {
2570
+ action: "create" | "install" | "upgrade";
2571
+ features?: string[] | undefined;
2572
+ packages?: {
2573
+ name: string;
2574
+ version?: string | undefined;
2575
+ }[] | undefined;
2576
+ }>, z.ZodObject<{
2577
+ success: z.ZodBoolean;
2578
+ installed: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
2579
+ upgraded: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
2580
+ warnings: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
2581
+ message: z.ZodOptional<z.ZodString>;
2582
+ details: z.ZodOptional<z.ZodString>;
2583
+ error: z.ZodOptional<z.ZodString>;
2584
+ }, "strip", z.ZodTypeAny, {
2585
+ success: boolean;
2586
+ message?: string | undefined;
2587
+ error?: string | undefined;
2588
+ installed?: string[] | undefined;
2589
+ upgraded?: string[] | undefined;
2590
+ warnings?: string[] | undefined;
2591
+ details?: string | undefined;
2592
+ }, {
2593
+ success: boolean;
2594
+ message?: string | undefined;
2595
+ error?: string | undefined;
2596
+ installed?: string[] | undefined;
2597
+ upgraded?: string[] | undefined;
2598
+ warnings?: string[] | undefined;
2599
+ details?: string | undefined;
2600
+ }>, import("@mastra/core").ToolExecutionContext<z.ZodObject<{
2601
+ action: z.ZodEnum<["create", "install", "upgrade"]>;
2602
+ features: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
2603
+ packages: z.ZodOptional<z.ZodArray<z.ZodObject<{
2604
+ name: z.ZodString;
2605
+ version: z.ZodOptional<z.ZodString>;
2606
+ }, "strip", z.ZodTypeAny, {
2607
+ name: string;
2608
+ version?: string | undefined;
2609
+ }, {
2610
+ name: string;
2611
+ version?: string | undefined;
2612
+ }>, "many">>;
2613
+ }, "strip", z.ZodTypeAny, {
2614
+ action: "create" | "install" | "upgrade";
2615
+ features?: string[] | undefined;
2616
+ packages?: {
2617
+ name: string;
2618
+ version?: string | undefined;
2619
+ }[] | undefined;
2620
+ }, {
2621
+ action: "create" | "install" | "upgrade";
2622
+ features?: string[] | undefined;
2623
+ packages?: {
2624
+ name: string;
2625
+ version?: string | undefined;
2626
+ }[] | undefined;
2627
+ }>>> & {
2628
+ inputSchema: z.ZodObject<{
2629
+ action: z.ZodEnum<["create", "install", "upgrade"]>;
2630
+ features: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
2631
+ packages: z.ZodOptional<z.ZodArray<z.ZodObject<{
2632
+ name: z.ZodString;
2633
+ version: z.ZodOptional<z.ZodString>;
2634
+ }, "strip", z.ZodTypeAny, {
2635
+ name: string;
2636
+ version?: string | undefined;
2637
+ }, {
2638
+ name: string;
2639
+ version?: string | undefined;
2640
+ }>, "many">>;
2641
+ }, "strip", z.ZodTypeAny, {
2642
+ action: "create" | "install" | "upgrade";
2643
+ features?: string[] | undefined;
2644
+ packages?: {
2645
+ name: string;
2646
+ version?: string | undefined;
2647
+ }[] | undefined;
2648
+ }, {
2649
+ action: "create" | "install" | "upgrade";
2650
+ features?: string[] | undefined;
2651
+ packages?: {
2652
+ name: string;
2653
+ version?: string | undefined;
2654
+ }[] | undefined;
2655
+ }>;
2656
+ outputSchema: z.ZodObject<{
2657
+ success: z.ZodBoolean;
2658
+ installed: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
2659
+ upgraded: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
2660
+ warnings: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
2661
+ message: z.ZodOptional<z.ZodString>;
2662
+ details: z.ZodOptional<z.ZodString>;
2663
+ error: z.ZodOptional<z.ZodString>;
2664
+ }, "strip", z.ZodTypeAny, {
2665
+ success: boolean;
2666
+ message?: string | undefined;
2667
+ error?: string | undefined;
2668
+ installed?: string[] | undefined;
2669
+ upgraded?: string[] | undefined;
2670
+ warnings?: string[] | undefined;
2671
+ details?: string | undefined;
2672
+ }, {
2673
+ success: boolean;
2674
+ message?: string | undefined;
2675
+ error?: string | undefined;
2676
+ installed?: string[] | undefined;
2677
+ upgraded?: string[] | undefined;
2678
+ warnings?: string[] | undefined;
2679
+ details?: string | undefined;
2680
+ }>;
2681
+ execute: (context: import("@mastra/core").ToolExecutionContext<z.ZodObject<{
2682
+ action: z.ZodEnum<["create", "install", "upgrade"]>;
2683
+ features: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
2684
+ packages: z.ZodOptional<z.ZodArray<z.ZodObject<{
2685
+ name: z.ZodString;
2686
+ version: z.ZodOptional<z.ZodString>;
2687
+ }, "strip", z.ZodTypeAny, {
2688
+ name: string;
2689
+ version?: string | undefined;
2690
+ }, {
2691
+ name: string;
2692
+ version?: string | undefined;
2693
+ }>, "many">>;
2694
+ }, "strip", z.ZodTypeAny, {
2695
+ action: "create" | "install" | "upgrade";
2696
+ features?: string[] | undefined;
2697
+ packages?: {
2698
+ name: string;
2699
+ version?: string | undefined;
2700
+ }[] | undefined;
2701
+ }, {
2702
+ action: "create" | "install" | "upgrade";
2703
+ features?: string[] | undefined;
2704
+ packages?: {
2705
+ name: string;
2706
+ version?: string | undefined;
2707
+ }[] | undefined;
2708
+ }>>, options: import("ai").ToolExecutionOptions | import("ai").ToolCallOptions) => Promise<any>;
2709
+ };
2710
+ manageServer: import("@mastra/core/tools").Tool<z.ZodObject<{
2711
+ action: z.ZodEnum<["start", "stop", "restart", "status"]>;
2712
+ port: z.ZodDefault<z.ZodOptional<z.ZodNumber>>;
2713
+ }, "strip", z.ZodTypeAny, {
2714
+ action: "status" | "start" | "stop" | "restart";
2715
+ port: number;
2716
+ }, {
2717
+ action: "status" | "start" | "stop" | "restart";
2718
+ port?: number | undefined;
2719
+ }>, z.ZodObject<{
2720
+ success: z.ZodBoolean;
2721
+ status: z.ZodEnum<["running", "stopped", "starting", "stopping", "unknown"]>;
2722
+ pid: z.ZodOptional<z.ZodNumber>;
2723
+ port: z.ZodOptional<z.ZodNumber>;
2724
+ url: z.ZodOptional<z.ZodString>;
2725
+ message: z.ZodOptional<z.ZodString>;
2726
+ stdout: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
2727
+ error: z.ZodOptional<z.ZodString>;
2728
+ }, "strip", z.ZodTypeAny, {
2729
+ status: "unknown" | "running" | "stopped" | "starting" | "stopping";
2730
+ success: boolean;
2731
+ message?: string | undefined;
2732
+ error?: string | undefined;
2733
+ stdout?: string[] | undefined;
2734
+ url?: string | undefined;
2735
+ port?: number | undefined;
2736
+ pid?: number | undefined;
2737
+ }, {
2738
+ status: "unknown" | "running" | "stopped" | "starting" | "stopping";
2739
+ success: boolean;
2740
+ message?: string | undefined;
2741
+ error?: string | undefined;
2742
+ stdout?: string[] | undefined;
2743
+ url?: string | undefined;
2744
+ port?: number | undefined;
2745
+ pid?: number | undefined;
2746
+ }>, import("@mastra/core").ToolExecutionContext<z.ZodObject<{
2747
+ action: z.ZodEnum<["start", "stop", "restart", "status"]>;
2748
+ port: z.ZodDefault<z.ZodOptional<z.ZodNumber>>;
2749
+ }, "strip", z.ZodTypeAny, {
2750
+ action: "status" | "start" | "stop" | "restart";
2751
+ port: number;
2752
+ }, {
2753
+ action: "status" | "start" | "stop" | "restart";
2754
+ port?: number | undefined;
2755
+ }>>> & {
2756
+ inputSchema: z.ZodObject<{
2757
+ action: z.ZodEnum<["start", "stop", "restart", "status"]>;
2758
+ port: z.ZodDefault<z.ZodOptional<z.ZodNumber>>;
2759
+ }, "strip", z.ZodTypeAny, {
2760
+ action: "status" | "start" | "stop" | "restart";
2761
+ port: number;
2762
+ }, {
2763
+ action: "status" | "start" | "stop" | "restart";
2764
+ port?: number | undefined;
2765
+ }>;
2766
+ outputSchema: z.ZodObject<{
2767
+ success: z.ZodBoolean;
2768
+ status: z.ZodEnum<["running", "stopped", "starting", "stopping", "unknown"]>;
2769
+ pid: z.ZodOptional<z.ZodNumber>;
2770
+ port: z.ZodOptional<z.ZodNumber>;
2771
+ url: z.ZodOptional<z.ZodString>;
2772
+ message: z.ZodOptional<z.ZodString>;
2773
+ stdout: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
2774
+ error: z.ZodOptional<z.ZodString>;
2775
+ }, "strip", z.ZodTypeAny, {
2776
+ status: "unknown" | "running" | "stopped" | "starting" | "stopping";
2777
+ success: boolean;
2778
+ message?: string | undefined;
2779
+ error?: string | undefined;
2780
+ stdout?: string[] | undefined;
2781
+ url?: string | undefined;
2782
+ port?: number | undefined;
2783
+ pid?: number | undefined;
2784
+ }, {
2785
+ status: "unknown" | "running" | "stopped" | "starting" | "stopping";
2786
+ success: boolean;
2787
+ message?: string | undefined;
2788
+ error?: string | undefined;
2789
+ stdout?: string[] | undefined;
2790
+ url?: string | undefined;
2791
+ port?: number | undefined;
2792
+ pid?: number | undefined;
2793
+ }>;
2794
+ execute: (context: import("@mastra/core").ToolExecutionContext<z.ZodObject<{
2795
+ action: z.ZodEnum<["start", "stop", "restart", "status"]>;
2796
+ port: z.ZodDefault<z.ZodOptional<z.ZodNumber>>;
2797
+ }, "strip", z.ZodTypeAny, {
2798
+ action: "status" | "start" | "stop" | "restart";
2799
+ port: number;
2800
+ }, {
2801
+ action: "status" | "start" | "stop" | "restart";
2802
+ port?: number | undefined;
2803
+ }>>, options: import("ai").ToolExecutionOptions | import("ai").ToolCallOptions) => Promise<any>;
2804
+ };
2805
+ httpRequest: import("@mastra/core/tools").Tool<z.ZodObject<{
2806
+ method: z.ZodEnum<["GET", "POST", "PUT", "DELETE", "PATCH"]>;
2807
+ url: z.ZodString;
2808
+ baseUrl: z.ZodOptional<z.ZodString>;
2809
+ headers: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
2810
+ body: z.ZodOptional<z.ZodAny>;
2811
+ timeout: z.ZodDefault<z.ZodOptional<z.ZodNumber>>;
2812
+ }, "strip", z.ZodTypeAny, {
2813
+ timeout: number;
2814
+ url: string;
2815
+ method: "GET" | "POST" | "PUT" | "DELETE" | "PATCH";
2816
+ baseUrl?: string | undefined;
2817
+ headers?: Record<string, string> | undefined;
2818
+ body?: any;
2819
+ }, {
2820
+ url: string;
2821
+ method: "GET" | "POST" | "PUT" | "DELETE" | "PATCH";
2822
+ timeout?: number | undefined;
2823
+ baseUrl?: string | undefined;
2824
+ headers?: Record<string, string> | undefined;
2825
+ body?: any;
2826
+ }>, z.ZodObject<{
2827
+ success: z.ZodBoolean;
2828
+ status: z.ZodOptional<z.ZodNumber>;
2829
+ statusText: z.ZodOptional<z.ZodString>;
2830
+ headers: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
2831
+ data: z.ZodOptional<z.ZodAny>;
2832
+ error: z.ZodOptional<z.ZodString>;
2833
+ url: z.ZodString;
2834
+ method: z.ZodString;
2835
+ }, "strip", z.ZodTypeAny, {
2836
+ success: boolean;
2837
+ url: string;
2838
+ method: string;
2839
+ status?: number | undefined;
2840
+ error?: string | undefined;
2841
+ data?: any;
2842
+ headers?: Record<string, string> | undefined;
2843
+ statusText?: string | undefined;
2844
+ }, {
2845
+ success: boolean;
2846
+ url: string;
2847
+ method: string;
2848
+ status?: number | undefined;
2849
+ error?: string | undefined;
2850
+ data?: any;
2851
+ headers?: Record<string, string> | undefined;
2852
+ statusText?: string | undefined;
2853
+ }>, import("@mastra/core").ToolExecutionContext<z.ZodObject<{
2854
+ method: z.ZodEnum<["GET", "POST", "PUT", "DELETE", "PATCH"]>;
2855
+ url: z.ZodString;
2856
+ baseUrl: z.ZodOptional<z.ZodString>;
2857
+ headers: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
2858
+ body: z.ZodOptional<z.ZodAny>;
2859
+ timeout: z.ZodDefault<z.ZodOptional<z.ZodNumber>>;
2860
+ }, "strip", z.ZodTypeAny, {
2861
+ timeout: number;
2862
+ url: string;
2863
+ method: "GET" | "POST" | "PUT" | "DELETE" | "PATCH";
2864
+ baseUrl?: string | undefined;
2865
+ headers?: Record<string, string> | undefined;
2866
+ body?: any;
2867
+ }, {
2868
+ url: string;
2869
+ method: "GET" | "POST" | "PUT" | "DELETE" | "PATCH";
2870
+ timeout?: number | undefined;
2871
+ baseUrl?: string | undefined;
2872
+ headers?: Record<string, string> | undefined;
2873
+ body?: any;
2874
+ }>>> & {
2875
+ inputSchema: z.ZodObject<{
2876
+ method: z.ZodEnum<["GET", "POST", "PUT", "DELETE", "PATCH"]>;
2877
+ url: z.ZodString;
2878
+ baseUrl: z.ZodOptional<z.ZodString>;
2879
+ headers: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
2880
+ body: z.ZodOptional<z.ZodAny>;
2881
+ timeout: z.ZodDefault<z.ZodOptional<z.ZodNumber>>;
2882
+ }, "strip", z.ZodTypeAny, {
2883
+ timeout: number;
2884
+ url: string;
2885
+ method: "GET" | "POST" | "PUT" | "DELETE" | "PATCH";
2886
+ baseUrl?: string | undefined;
2887
+ headers?: Record<string, string> | undefined;
2888
+ body?: any;
2889
+ }, {
2890
+ url: string;
2891
+ method: "GET" | "POST" | "PUT" | "DELETE" | "PATCH";
2892
+ timeout?: number | undefined;
2893
+ baseUrl?: string | undefined;
2894
+ headers?: Record<string, string> | undefined;
2895
+ body?: any;
2896
+ }>;
2897
+ outputSchema: z.ZodObject<{
2898
+ success: z.ZodBoolean;
2899
+ status: z.ZodOptional<z.ZodNumber>;
2900
+ statusText: z.ZodOptional<z.ZodString>;
2901
+ headers: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
2902
+ data: z.ZodOptional<z.ZodAny>;
2903
+ error: z.ZodOptional<z.ZodString>;
2904
+ url: z.ZodString;
2905
+ method: z.ZodString;
2906
+ }, "strip", z.ZodTypeAny, {
2907
+ success: boolean;
2908
+ url: string;
2909
+ method: string;
2910
+ status?: number | undefined;
2911
+ error?: string | undefined;
2912
+ data?: any;
2913
+ headers?: Record<string, string> | undefined;
2914
+ statusText?: string | undefined;
2915
+ }, {
2916
+ success: boolean;
2917
+ url: string;
2918
+ method: string;
2919
+ status?: number | undefined;
2920
+ error?: string | undefined;
2921
+ data?: any;
2922
+ headers?: Record<string, string> | undefined;
2923
+ statusText?: string | undefined;
2924
+ }>;
2925
+ execute: (context: import("@mastra/core").ToolExecutionContext<z.ZodObject<{
2926
+ method: z.ZodEnum<["GET", "POST", "PUT", "DELETE", "PATCH"]>;
2927
+ url: z.ZodString;
2928
+ baseUrl: z.ZodOptional<z.ZodString>;
2929
+ headers: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
2930
+ body: z.ZodOptional<z.ZodAny>;
2931
+ timeout: z.ZodDefault<z.ZodOptional<z.ZodNumber>>;
2932
+ }, "strip", z.ZodTypeAny, {
2933
+ timeout: number;
2934
+ url: string;
2935
+ method: "GET" | "POST" | "PUT" | "DELETE" | "PATCH";
2936
+ baseUrl?: string | undefined;
2937
+ headers?: Record<string, string> | undefined;
2938
+ body?: any;
2939
+ }, {
2940
+ url: string;
2941
+ method: "GET" | "POST" | "PUT" | "DELETE" | "PATCH";
2942
+ timeout?: number | undefined;
2943
+ baseUrl?: string | undefined;
2944
+ headers?: Record<string, string> | undefined;
2945
+ body?: any;
2946
+ }>>, options: import("ai").ToolExecutionOptions | import("ai").ToolCallOptions) => Promise<any>;
2947
+ };
2948
+ }>;
2949
+ /**
2950
+ * Filter tools for template builder mode (excludes web search and other advanced tools)
2951
+ */
2952
+ static filterToolsForTemplateBuilder(tools: Record<string, any>): Record<string, any>;
2953
+ /**
2954
+ * Filter tools for code editor mode (includes all tools)
2955
+ */
2956
+ static filterToolsForCodeEditor(tools: Record<string, any>): Record<string, any>;
2957
+ /**
2958
+ * Get tools for a specific mode
2959
+ */
2960
+ static getToolsForMode(projectPath: string, mode?: 'template' | 'code-editor'): Promise<Record<string, any>>;
2961
+ /**
2962
+ * Create a new Mastra project using create-mastra CLI
2963
+ */
2964
+ static createMastraProject({ features, projectName }: {
2965
+ features?: string[];
2966
+ projectName?: string;
2967
+ }): Promise<{
2968
+ success: boolean;
2969
+ projectPath: string;
2970
+ message: string;
2971
+ details: string;
2972
+ error: string;
2973
+ } | {
2974
+ success: boolean;
2975
+ message: string;
2976
+ projectPath?: undefined;
2977
+ details?: undefined;
2978
+ error?: undefined;
2979
+ }>;
2980
+ /**
2981
+ * Install packages using the detected package manager
2982
+ */
2983
+ static installPackages({ packages, projectPath, }: {
2984
+ packages: Array<{
2985
+ name: string;
2986
+ version?: string;
2987
+ }>;
2988
+ projectPath?: string;
2989
+ }): Promise<{
2990
+ success: boolean;
2991
+ installed: string[];
2992
+ message: string;
2993
+ details: string;
2994
+ } | {
2995
+ success: boolean;
2996
+ message: string;
2997
+ installed?: undefined;
2998
+ details?: undefined;
2999
+ }>;
3000
+ /**
3001
+ * Upgrade packages using the detected package manager
3002
+ */
3003
+ static upgradePackages({ packages, projectPath, }: {
3004
+ packages?: Array<{
3005
+ name: string;
3006
+ version?: string;
3007
+ }>;
3008
+ projectPath?: string;
3009
+ }): Promise<{
3010
+ success: boolean;
3011
+ upgraded: string[];
3012
+ message: string;
3013
+ details: string;
3014
+ } | {
3015
+ success: boolean;
3016
+ message: string;
3017
+ upgraded?: undefined;
3018
+ details?: undefined;
3019
+ }>;
3020
+ /**
3021
+ * Start the Mastra server
3022
+ */
3023
+ static startMastraServer({ port, projectPath, env, }: {
3024
+ port?: number;
3025
+ projectPath?: string;
3026
+ env?: Record<string, string>;
3027
+ }): Promise<any>;
3028
+ /**
3029
+ * Stop the Mastra server
3030
+ */
3031
+ static stopMastraServer({ port, projectPath: _projectPath }: {
3032
+ port?: number;
3033
+ projectPath?: string;
3034
+ }): Promise<{
3035
+ success: boolean;
3036
+ status: "error";
3037
+ error: string;
3038
+ message?: undefined;
3039
+ } | {
3040
+ success: boolean;
3041
+ status: "stopped";
3042
+ message: string;
3043
+ error?: undefined;
3044
+ } | {
3045
+ success: boolean;
3046
+ status: "unknown";
3047
+ message: string;
3048
+ error: string;
3049
+ } | {
3050
+ success: boolean;
3051
+ status: "unknown";
3052
+ error: string;
3053
+ message?: undefined;
3054
+ }>;
3055
+ /**
3056
+ * Check Mastra server status
3057
+ */
3058
+ static checkMastraServerStatus({ port, projectPath: _projectPath, }: {
3059
+ port?: number;
3060
+ projectPath?: string;
3061
+ }): Promise<{
3062
+ success: boolean;
3063
+ status: "running";
3064
+ port: number;
3065
+ url: string;
3066
+ message: string;
3067
+ } | {
3068
+ success: boolean;
3069
+ status: "unknown";
3070
+ port: number;
3071
+ message: string;
3072
+ url?: undefined;
3073
+ } | {
3074
+ success: boolean;
3075
+ status: "stopped" | "starting";
3076
+ port: number;
3077
+ message: string;
3078
+ url?: undefined;
3079
+ }>;
3080
+ private static tsProgram;
3081
+ private static programProjectPath;
3082
+ /**
3083
+ * Validate code using hybrid approach: syntax -> types -> lint
3084
+ *
3085
+ * BEST PRACTICES FOR CODING AGENTS:
3086
+ *
3087
+ * ✅ RECOMMENDED (Fast & Accurate):
3088
+ * validateCode({
3089
+ * validationType: ['types', 'lint'],
3090
+ * files: ['src/workflows/my-workflow.ts', 'src/components/Button.tsx']
3091
+ * })
3092
+ *
3093
+ * Performance: ~150ms
3094
+ * - Syntax check (1ms) - catches 80% of issues instantly
3095
+ * - Semantic validation (100ms) - full type checking with dependencies
3096
+ * - ESLint (50ms) - style and best practices
3097
+ * - Only shows errors from YOUR files
3098
+ *
3099
+ * ❌ AVOID (Slow & Noisy):
3100
+ * validateCode({ validationType: ['types', 'lint'] }) // no files specified
3101
+ *
3102
+ * Performance: ~2000ms+
3103
+ * - Full project CLI validation
3104
+ * - Shows errors from all project files (confusing)
3105
+ * - Much slower for coding agents
3106
+ *
3107
+ * @param projectPath - Project root directory (defaults to cwd)
3108
+ * @param validationType - ['types', 'lint'] recommended for most use cases
3109
+ * @param files - ALWAYS provide this for best performance
3110
+ */
3111
+ static validateCode({ projectPath, validationType, files, }: {
3112
+ projectPath?: string;
3113
+ validationType: Array<'types' | 'lint' | 'schemas' | 'tests' | 'build'>;
3114
+ files?: string[];
3115
+ }): Promise<{
3116
+ valid: boolean;
3117
+ errors: {
3118
+ type: "typescript" | "eslint" | "schema" | "test" | "build";
3119
+ severity: "error" | "warning" | "info";
3120
+ message: string;
3121
+ file?: string;
3122
+ line?: number;
3123
+ column?: number;
3124
+ code?: string;
3125
+ }[];
3126
+ summary: {
3127
+ totalErrors: number;
3128
+ totalWarnings: number;
3129
+ validationsPassed: string[];
3130
+ validationsFailed: string[];
3131
+ };
3132
+ }>;
3133
+ /**
3134
+ * CLI-based validation for when no specific files are provided
3135
+ */
3136
+ static validateCodeCLI({ projectPath, validationType, }: {
3137
+ projectPath?: string;
3138
+ validationType: Array<'types' | 'lint' | 'schemas' | 'tests' | 'build'>;
3139
+ }): Promise<{
3140
+ valid: boolean;
3141
+ errors: {
3142
+ type: "typescript" | "eslint" | "schema" | "test" | "build";
3143
+ severity: "error" | "warning" | "info";
3144
+ message: string;
3145
+ file?: string;
3146
+ line?: number;
3147
+ column?: number;
3148
+ code?: string;
3149
+ }[];
3150
+ summary: {
3151
+ totalErrors: number;
3152
+ totalWarnings: number;
3153
+ validationsPassed: string[];
3154
+ validationsFailed: string[];
3155
+ };
3156
+ }>;
3157
+ /**
3158
+ * Hybrid validation for a single file
3159
+ */
3160
+ static validateSingleFileHybrid(filePath: string, fileContent: string, projectPath: string, validationType: Array<'types' | 'lint' | 'schemas' | 'tests' | 'build'>): Promise<{
3161
+ errors: {
3162
+ type: "typescript" | "eslint" | "schema" | "test" | "build";
3163
+ severity: "error" | "warning" | "info";
3164
+ message: string;
3165
+ file?: string;
3166
+ line?: number;
3167
+ column?: number;
3168
+ code?: string;
3169
+ }[];
3170
+ }>;
3171
+ /**
3172
+ * Fast syntax-only validation using TypeScript parser
3173
+ */
3174
+ static validateSyntaxOnly(fileContent: string, fileName: string): Promise<{
3175
+ type: "typescript";
3176
+ severity: "error";
3177
+ message: string;
3178
+ file?: string;
3179
+ line?: number;
3180
+ column?: number;
3181
+ }[]>;
3182
+ /**
3183
+ * TypeScript semantic validation using incremental program
3184
+ */
3185
+ static validateTypesSemantic(filePath: string, projectPath: string): Promise<{
3186
+ type: "typescript";
3187
+ severity: "error" | "warning";
3188
+ message: string;
3189
+ file?: string;
3190
+ line?: number;
3191
+ column?: number;
3192
+ }[]>;
3193
+ /**
3194
+ * ESLint validation for a single file
3195
+ */
3196
+ static validateESLintSingle(filePath: string, projectPath: string): Promise<{
3197
+ type: "eslint";
3198
+ severity: "error" | "warning";
3199
+ message: string;
3200
+ file?: string;
3201
+ line?: number;
3202
+ column?: number;
3203
+ code?: string;
3204
+ }[]>;
3205
+ /**
3206
+ * Get or create TypeScript program
3207
+ */
3208
+ static getOrCreateTSProgram(projectPath: string): Promise<any | null>;
3209
+ /**
3210
+ * Parse ESLint errors from JSON output
3211
+ */
3212
+ static parseESLintErrors(eslintResults: any[]): Array<{
3213
+ type: 'eslint';
3214
+ severity: 'error' | 'warning';
3215
+ message: string;
3216
+ file?: string;
3217
+ line?: number;
3218
+ column?: number;
3219
+ code?: string;
3220
+ }>;
3221
+ /**
3222
+ * Make HTTP request to server or external API
3223
+ */
3224
+ static makeHttpRequest({ method, url, baseUrl, headers, body, timeout, }: {
3225
+ method: 'GET' | 'POST' | 'PUT' | 'DELETE' | 'PATCH';
3226
+ url: string;
3227
+ baseUrl?: string;
3228
+ headers?: Record<string, string>;
3229
+ body?: any;
3230
+ timeout?: number;
3231
+ }): Promise<{
3232
+ success: boolean;
3233
+ status: number;
3234
+ statusText: string;
3235
+ headers: Record<string, string>;
3236
+ data: any;
3237
+ url: string;
3238
+ method: "GET" | "POST" | "PUT" | "DELETE" | "PATCH";
3239
+ error?: undefined;
3240
+ } | {
3241
+ success: boolean;
3242
+ url: string;
3243
+ method: "GET" | "POST" | "PUT" | "DELETE" | "PATCH";
3244
+ error: string;
3245
+ status?: undefined;
3246
+ statusText?: undefined;
3247
+ headers?: undefined;
3248
+ data?: undefined;
3249
+ }>;
3250
+ /**
3251
+ * Enhanced task management system for complex coding tasks
3252
+ */
3253
+ static manageTaskList(context: {
3254
+ action: 'create' | 'update' | 'list' | 'complete' | 'remove';
3255
+ tasks?: Array<{
3256
+ id: string;
3257
+ content?: string;
3258
+ status: 'pending' | 'in_progress' | 'completed' | 'blocked';
3259
+ priority: 'high' | 'medium' | 'low';
3260
+ dependencies?: string[];
3261
+ notes?: string;
3262
+ }>;
3263
+ taskId?: string;
3264
+ }): Promise<{
3265
+ success: boolean;
3266
+ tasks: any[];
3267
+ message: string;
3268
+ }>;
3269
+ /**
3270
+ * Perform multiple edits across files atomically
3271
+ */
3272
+ static performMultiEdit(context: {
3273
+ operations: Array<{
3274
+ filePath: string;
3275
+ edits: Array<{
3276
+ oldString: string;
3277
+ newString: string;
3278
+ replaceAll?: boolean;
3279
+ }>;
3280
+ }>;
3281
+ createBackup?: boolean;
3282
+ projectPath?: string;
3283
+ }): Promise<{
3284
+ success: boolean;
3285
+ results: {
3286
+ filePath: string;
3287
+ editsApplied: number;
3288
+ errors: string[];
3289
+ backup?: string;
3290
+ }[];
3291
+ message: string;
3292
+ }>;
3293
+ /**
3294
+ * Replace specific line ranges in a file with new content
3295
+ */
3296
+ static replaceLines(context: {
3297
+ filePath: string;
3298
+ startLine: number;
3299
+ endLine: number;
3300
+ newContent: string;
3301
+ createBackup?: boolean;
3302
+ projectPath?: string;
3303
+ }): Promise<{
3304
+ success: boolean;
3305
+ message: string;
3306
+ error: string;
3307
+ linesReplaced?: undefined;
3308
+ backup?: undefined;
3309
+ } | {
3310
+ success: boolean;
3311
+ message: string;
3312
+ linesReplaced: number;
3313
+ backup: string | undefined;
3314
+ error?: undefined;
3315
+ }>;
3316
+ /**
3317
+ * Show file lines with line numbers for debugging
3318
+ */
3319
+ static showFileLines(context: {
3320
+ filePath: string;
3321
+ startLine?: number;
3322
+ endLine?: number;
3323
+ context?: number;
3324
+ projectPath?: string;
3325
+ }): Promise<{
3326
+ success: boolean;
3327
+ lines: {
3328
+ lineNumber: number;
3329
+ content: string;
3330
+ isTarget: boolean;
3331
+ }[];
3332
+ totalLines: number;
3333
+ message: string;
3334
+ error?: undefined;
3335
+ } | {
3336
+ success: boolean;
3337
+ lines: never[];
3338
+ totalLines: number;
3339
+ message: string;
3340
+ error: string;
3341
+ }>;
3342
+ /**
3343
+ * Signal task completion
3344
+ */
3345
+ static signalCompletion(context: {
3346
+ summary: string;
3347
+ changes: Array<{
3348
+ type: 'file_created' | 'file_modified' | 'file_deleted' | 'command_executed' | 'dependency_added';
3349
+ description: string;
3350
+ path?: string;
3351
+ }>;
3352
+ validation: {
3353
+ testsRun?: boolean;
3354
+ buildsSuccessfully?: boolean;
3355
+ manualTestingRequired?: boolean;
3356
+ };
3357
+ nextSteps?: string[];
3358
+ }): Promise<{
3359
+ completionId: string;
3360
+ status: "completed" | "needs_review" | "needs_testing";
3361
+ summary: string;
3362
+ confidence: number;
3363
+ }>;
3364
+ /**
3365
+ * Perform intelligent search with context
3366
+ */
3367
+ static performSmartSearch(context: {
3368
+ query: string;
3369
+ type?: 'text' | 'regex' | 'fuzzy' | 'semantic';
3370
+ scope?: {
3371
+ paths?: string[];
3372
+ fileTypes?: string[];
3373
+ excludePaths?: string[];
3374
+ maxResults?: number;
3375
+ };
3376
+ context?: {
3377
+ beforeLines?: number;
3378
+ afterLines?: number;
3379
+ includeDefinitions?: boolean;
3380
+ };
3381
+ }, projectPath: string): Promise<{
3382
+ success: boolean;
3383
+ matches: {
3384
+ file: string;
3385
+ line: number;
3386
+ column?: number;
3387
+ match: string;
3388
+ context: {
3389
+ before: string[];
3390
+ after: string[];
3391
+ };
3392
+ relevance?: number;
3393
+ }[];
3394
+ summary: {
3395
+ totalMatches: number;
3396
+ filesSearched: number;
3397
+ patterns: string[];
3398
+ };
3399
+ }>;
3400
+ private static taskStorage;
3401
+ private static pendingQuestions;
3402
+ /**
3403
+ * Read file contents with optional line range
3404
+ */
3405
+ static readFile(context: {
3406
+ filePath: string;
3407
+ startLine?: number;
3408
+ endLine?: number;
3409
+ encoding?: string;
3410
+ projectPath?: string;
3411
+ }): Promise<{
3412
+ success: boolean;
3413
+ content: string;
3414
+ lines: string[];
3415
+ metadata: {
3416
+ size: number;
3417
+ totalLines: number;
3418
+ encoding: string;
3419
+ lastModified: string;
3420
+ };
3421
+ error?: undefined;
3422
+ } | {
3423
+ success: boolean;
3424
+ error: string;
3425
+ content?: undefined;
3426
+ lines?: undefined;
3427
+ metadata?: undefined;
3428
+ }>;
3429
+ /**
3430
+ * Write content to file with directory creation and backup options
3431
+ */
3432
+ static writeFile(context: {
3433
+ filePath: string;
3434
+ content: string;
3435
+ createDirs?: boolean;
3436
+ encoding?: string;
3437
+ projectPath?: string;
3438
+ }): Promise<{
3439
+ success: boolean;
3440
+ filePath: string;
3441
+ bytesWritten: number;
3442
+ message: string;
3443
+ error?: undefined;
3444
+ } | {
3445
+ success: boolean;
3446
+ filePath: string;
3447
+ message: string;
3448
+ error: string;
3449
+ bytesWritten?: undefined;
3450
+ }>;
3451
+ /**
3452
+ * List directory contents with filtering and metadata
3453
+ */
3454
+ static listDirectory(context: {
3455
+ path: string;
3456
+ recursive?: boolean;
3457
+ includeHidden?: boolean;
3458
+ pattern?: string;
3459
+ maxDepth?: number;
3460
+ includeMetadata?: boolean;
3461
+ projectPath?: string;
3462
+ }): Promise<{
3463
+ success: boolean;
3464
+ items: {
3465
+ name: string;
3466
+ path: string;
3467
+ type: "file" | "directory" | "symlink";
3468
+ size?: number;
3469
+ lastModified?: string;
3470
+ permissions?: string;
3471
+ }[];
3472
+ totalItems: number;
3473
+ path: string;
3474
+ message: string;
3475
+ error?: undefined;
3476
+ } | {
3477
+ success: boolean;
3478
+ items: never[];
3479
+ totalItems: number;
3480
+ path: string;
3481
+ message: string;
3482
+ error: string;
3483
+ }>;
3484
+ /**
3485
+ * Execute shell commands with proper error handling
3486
+ */
3487
+ static executeCommand(context: {
3488
+ command: string;
3489
+ workingDirectory?: string;
3490
+ timeout?: number;
3491
+ captureOutput?: boolean;
3492
+ shell?: string;
3493
+ env?: Record<string, string>;
3494
+ }): Promise<{
3495
+ success: boolean;
3496
+ exitCode: number;
3497
+ stdout: string | undefined;
3498
+ stderr: string | undefined;
3499
+ command: string;
3500
+ workingDirectory: string | undefined;
3501
+ executionTime: number;
3502
+ error?: undefined;
3503
+ } | {
3504
+ success: boolean;
3505
+ exitCode: any;
3506
+ stdout: string;
3507
+ stderr: string;
3508
+ command: string;
3509
+ workingDirectory: string | undefined;
3510
+ executionTime: number;
3511
+ error: string;
3512
+ }>;
3513
+ /**
3514
+ * Web search using a simple search approach
3515
+ */
3516
+ static webSearch(context: {
3517
+ query: string;
3518
+ maxResults?: number;
3519
+ region?: string;
3520
+ language?: string;
3521
+ includeImages?: boolean;
3522
+ dateRange?: 'day' | 'week' | 'month' | 'year' | 'all';
3523
+ }): Promise<{
3524
+ success: boolean;
3525
+ query: string;
3526
+ results: {
3527
+ title: string;
3528
+ url: string;
3529
+ snippet: string;
3530
+ domain: string;
3531
+ publishDate?: string;
3532
+ relevanceScore?: number;
3533
+ }[];
3534
+ totalResults: number;
3535
+ searchTime: number;
3536
+ suggestions: any;
3537
+ error?: undefined;
3538
+ } | {
3539
+ success: boolean;
3540
+ query: string;
3541
+ results: never[];
3542
+ totalResults: number;
3543
+ searchTime: number;
3544
+ error: string;
3545
+ suggestions?: undefined;
3546
+ }>;
3547
+ }
3548
+ //# sourceMappingURL=defaults.d.ts.map