@mastra/agent-builder 0.0.0-error-handler-fix-20251020202607 → 0.0.0-execa-dynamic-import-20260304221256

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 (36) hide show
  1. package/CHANGELOG.md +690 -4
  2. package/LICENSE.md +15 -0
  3. package/dist/agent/index.d.ts +17 -5
  4. package/dist/agent/index.d.ts.map +1 -1
  5. package/dist/chunk-2XSP7TVS.js +250 -0
  6. package/dist/chunk-2XSP7TVS.js.map +1 -0
  7. package/dist/chunk-RQJR2QYC.js +84 -0
  8. package/dist/chunk-RQJR2QYC.js.map +1 -0
  9. package/dist/defaults.d.ts +88 -2753
  10. package/dist/defaults.d.ts.map +1 -1
  11. package/dist/index.js +4771 -439
  12. package/dist/index.js.map +1 -1
  13. package/dist/processors/tool-summary.d.ts +12 -6
  14. package/dist/processors/tool-summary.d.ts.map +1 -1
  15. package/dist/token-6GSAFR2W-F2L44NEJ.js +61 -0
  16. package/dist/token-6GSAFR2W-F2L44NEJ.js.map +1 -0
  17. package/dist/token-util-NEHG7TUY-4YJ4EPCL.js +9 -0
  18. package/dist/token-util-NEHG7TUY-4YJ4EPCL.js.map +1 -0
  19. package/dist/types.d.ts +9 -8
  20. package/dist/types.d.ts.map +1 -1
  21. package/dist/utils.d.ts +12 -11
  22. package/dist/utils.d.ts.map +1 -1
  23. package/dist/workflows/shared/schema.d.ts +2 -2
  24. package/dist/workflows/task-planning/schema.d.ts +12 -12
  25. package/dist/workflows/task-planning/task-planning.d.ts +31 -825
  26. package/dist/workflows/task-planning/task-planning.d.ts.map +1 -1
  27. package/dist/workflows/template-builder/template-builder.d.ts +67 -1650
  28. package/dist/workflows/template-builder/template-builder.d.ts.map +1 -1
  29. package/dist/workflows/workflow-builder/prompts.d.ts +1 -1
  30. package/dist/workflows/workflow-builder/prompts.d.ts.map +1 -1
  31. package/dist/workflows/workflow-builder/schema.d.ts +14 -14
  32. package/dist/workflows/workflow-builder/tools.d.ts +3 -295
  33. package/dist/workflows/workflow-builder/tools.d.ts.map +1 -1
  34. package/dist/workflows/workflow-builder/workflow-builder.d.ts +247 -2438
  35. package/dist/workflows/workflow-builder/workflow-builder.d.ts.map +1 -1
  36. package/package.json +22 -19
@@ -1,4 +1,15 @@
1
- import { z } from 'zod';
1
+ type TaskManagerInputType = {
2
+ action: 'create' | 'update' | 'list' | 'complete' | 'remove';
3
+ tasks?: Array<{
4
+ id: string;
5
+ content?: string;
6
+ status: 'pending' | 'in_progress' | 'completed' | 'blocked';
7
+ priority: 'high' | 'medium' | 'low';
8
+ dependencies?: string[];
9
+ notes?: string;
10
+ }>;
11
+ taskId?: string;
12
+ };
2
13
  export declare class AgentBuilderDefaults {
3
14
  static DEFAULT_INSTRUCTIONS: (projectPath?: string) => string;
4
15
  static DEFAULT_MEMORY_CONFIG: {
@@ -12,56 +23,13 @@ export declare class AgentBuilderDefaults {
12
23
  network: string;
13
24
  };
14
25
  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, {
26
+ readFile: import("@mastra/core/tools").Tool<{
21
27
  filePath: string;
22
28
  encoding: string;
23
29
  startLine?: number | undefined;
24
30
  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
31
  }, {
63
32
  success: boolean;
64
- error?: string | undefined;
65
33
  content?: string | undefined;
66
34
  lines?: string[] | undefined;
67
35
  metadata?: {
@@ -70,263 +38,27 @@ export declare class AgentBuilderDefaults {
70
38
  totalLines: number;
71
39
  lastModified: string;
72
40
  } | undefined;
73
- }>, any, any, 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
- }>, any, any>> & {
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
- }>, any, any>, options: import("@mastra/core").ToolInvocationOptions) => 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, {
41
+ errorMessage?: string | undefined;
42
+ }, unknown, unknown, import("@mastra/core/tools").ToolExecutionContext<unknown, unknown, unknown>, "read-file", unknown>;
43
+ writeFile: import("@mastra/core/tools").Tool<{
44
+ content: string;
172
45
  filePath: string;
173
46
  encoding: string;
174
- content: string;
175
47
  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
48
  }, {
194
49
  message: string;
195
50
  success: boolean;
196
51
  filePath: string;
197
- error?: string | undefined;
52
+ errorMessage?: string | undefined;
198
53
  bytesWritten?: number | undefined;
199
- }>, any, any, 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
- }>, any, any>> & {
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
- }>, any, any>, options: import("@mastra/core").ToolInvocationOptions) => 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, {
54
+ }, unknown, unknown, import("@mastra/core/tools").ToolExecutionContext<unknown, unknown, unknown>, "write-file", unknown>;
55
+ listDirectory: import("@mastra/core/tools").Tool<{
275
56
  path: string;
276
57
  recursive: boolean;
277
58
  includeHidden: boolean;
278
59
  pattern: string;
279
60
  maxDepth: number;
280
61
  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
62
  }, {
331
63
  path: string;
332
64
  message: string;
@@ -340,614 +72,31 @@ export declare class AgentBuilderDefaults {
340
72
  permissions?: string | undefined;
341
73
  }[];
342
74
  totalItems: number;
343
- error?: string | undefined;
344
- }>, any, any, 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
- }>, any, any>> & {
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
- }>, any, any>, options: import("@mastra/core").ToolInvocationOptions) => 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, {
75
+ errorMessage?: string | undefined;
76
+ }, unknown, unknown, import("@mastra/core/tools").ToolExecutionContext<unknown, unknown, unknown>, "list-directory", unknown>;
77
+ executeCommand: import("@mastra/core/tools").Tool<{
476
78
  command: string;
477
79
  timeout: number;
478
80
  captureOutput: boolean;
479
81
  workingDirectory?: string | undefined;
480
82
  shell?: string | undefined;
481
83
  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
84
  }, {
508
85
  success: boolean;
509
86
  command: string;
510
- error?: string | undefined;
511
87
  stdout?: string | undefined;
512
88
  stderr?: string | undefined;
89
+ errorMessage?: string | undefined;
513
90
  workingDirectory?: string | undefined;
514
91
  exitCode?: number | undefined;
515
92
  executionTime?: number | undefined;
516
- }>, any, any, 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
- }>, any, any>> & {
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
- }>, any, any>, options: import("@mastra/core").ToolInvocationOptions) => 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;
93
+ }, unknown, unknown, import("@mastra/core/tools").ToolExecutionContext<unknown, unknown, unknown>, "execute-command", unknown>;
94
+ taskManager: import("@mastra/core/tools").Tool<TaskManagerInputType, {
691
95
  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
- }, {
96
+ tasks: any[];
703
97
  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
- }>, any, any, 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
- }>, any, any>> & {
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
- }>, any, any>, options: import("@mastra/core").ToolInvocationOptions) => 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, {
98
+ }, unknown, unknown, import("@mastra/core/tools").ToolExecutionContext<unknown, unknown, unknown>, "task-manager", unknown>;
99
+ multiEdit: import("@mastra/core/tools").Tool<{
951
100
  operations: {
952
101
  filePath: string;
953
102
  edits: {
@@ -958,406 +107,33 @@ export declare class AgentBuilderDefaults {
958
107
  }[];
959
108
  createBackup: boolean;
960
109
  }, {
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
110
  success: boolean;
992
111
  results: {
993
- errors: string[];
994
112
  filePath: string;
995
113
  editsApplied: number;
996
- backup?: string | undefined;
997
- }[];
998
- }, {
999
- message: string;
1000
- success: boolean;
1001
- results: {
1002
114
  errors: string[];
1003
- filePath: string;
1004
- editsApplied: number;
1005
- backup?: string | undefined;
1006
- }[];
1007
- }>, any, any, 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
- }[];
115
+ backup?: string;
1057
116
  }[];
1058
- createBackup?: boolean | undefined;
1059
- }>, any, any>> & {
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
- }>, any, any>, options: import("@mastra/core").ToolInvocationOptions) => 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, {
117
+ message: string;
118
+ }, unknown, unknown, import("@mastra/core/tools").ToolExecutionContext<unknown, unknown, unknown>, "multi-edit", unknown>;
119
+ replaceLines: import("@mastra/core/tools").Tool<{
1212
120
  filePath: string;
1213
121
  startLine: number;
1214
122
  endLine: number;
1215
123
  createBackup: boolean;
1216
124
  newContent: string;
1217
125
  }, {
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
126
  message: string;
1231
127
  success: boolean;
1232
- error?: string | undefined;
128
+ errorMessage?: string | undefined;
1233
129
  backup?: string | undefined;
1234
130
  linesReplaced?: number | undefined;
1235
- }, {
1236
- message: string;
1237
- success: boolean;
1238
- error?: string | undefined;
1239
- backup?: string | undefined;
1240
- linesReplaced?: number | undefined;
1241
- }>, any, any, 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
- }>, any, any>> & {
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
- }>, any, any>, options: import("@mastra/core").ToolInvocationOptions) => 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, {
131
+ }, unknown, unknown, import("@mastra/core/tools").ToolExecutionContext<unknown, unknown, unknown>, "replace-lines", unknown>;
132
+ showFileLines: import("@mastra/core/tools").Tool<{
1324
133
  filePath: string;
1325
134
  context: number;
1326
135
  startLine?: number | undefined;
1327
136
  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
137
  }, {
1362
138
  message: string;
1363
139
  success: boolean;
@@ -1367,128 +143,9 @@ export declare class AgentBuilderDefaults {
1367
143
  isTarget: boolean;
1368
144
  }[];
1369
145
  totalLines: number;
1370
- error?: string | undefined;
1371
- }>, any, any, 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
- }>, any, any>> & {
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
- }>, any, any>, options: import("@mastra/core").ToolInvocationOptions) => 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, {
146
+ errorMessage?: string | undefined;
147
+ }, unknown, unknown, import("@mastra/core/tools").ToolExecutionContext<unknown, unknown, unknown>, "show-file-lines", unknown>;
148
+ smartSearch: import("@mastra/core/tools").Tool<{
1492
149
  type: "text" | "regex" | "fuzzy" | "semantic";
1493
150
  query: string;
1494
151
  context?: {
@@ -1503,462 +160,38 @@ export declare class AgentBuilderDefaults {
1503
160
  excludePaths?: string[] | undefined;
1504
161
  } | undefined;
1505
162
  }, {
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
163
  success: boolean;
1573
164
  matches: {
1574
165
  file: string;
1575
- match: string;
1576
- context: {
1577
- before: string[];
1578
- after: string[];
1579
- };
1580
166
  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;
167
+ column?: number;
1593
168
  match: string;
1594
169
  context: {
1595
170
  before: string[];
1596
171
  after: string[];
1597
172
  };
1598
- line: number;
1599
- column?: number | undefined;
1600
- relevance?: number | undefined;
173
+ relevance?: number;
1601
174
  }[];
1602
175
  summary: {
1603
176
  totalMatches: number;
1604
177
  filesSearched: number;
1605
178
  patterns: string[];
1606
179
  };
1607
- }>, any, any, 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
- }>, any, any>> & {
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
- }>, any, any>, options: import("@mastra/core").ToolInvocationOptions) => 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, {
180
+ }, unknown, unknown, import("@mastra/core/tools").ToolExecutionContext<unknown, unknown, unknown>, "smart-search", unknown>;
181
+ validateCode: import("@mastra/core/tools").Tool<{
1885
182
  validationType: ("types" | "schemas" | "tests" | "lint" | "build")[];
1886
183
  projectPath?: string | undefined;
1887
184
  files?: string[] | undefined;
1888
185
  }, {
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
186
  valid: boolean;
1937
187
  errors: {
1938
- message: string;
1939
- type: "build" | "typescript" | "eslint" | "schema" | "test";
188
+ type: "typescript" | "eslint" | "schema" | "test" | "build";
1940
189
  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
190
  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;
191
+ file?: string;
192
+ line?: number;
193
+ column?: number;
194
+ code?: string;
1962
195
  }[];
1963
196
  summary: {
1964
197
  totalErrors: number;
@@ -1966,132 +199,8 @@ export declare class AgentBuilderDefaults {
1966
199
  validationsPassed: string[];
1967
200
  validationsFailed: string[];
1968
201
  };
1969
- }>, any, any, 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
- }>, any, any>> & {
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
- }>, any, any>, options: import("@mastra/core").ToolInvocationOptions) => 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, {
202
+ }, unknown, unknown, import("@mastra/core/tools").ToolExecutionContext<unknown, unknown, unknown>, "validate-code", unknown>;
203
+ webSearch: import("@mastra/core/tools").Tool<{
2095
204
  query: string;
2096
205
  maxResults: number;
2097
206
  region: string;
@@ -2099,61 +208,10 @@ export declare class AgentBuilderDefaults {
2099
208
  includeImages: boolean;
2100
209
  dateRange: "day" | "week" | "month" | "year" | "all";
2101
210
  }, {
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
211
  success: boolean;
2139
212
  results: {
2140
- title: string;
2141
213
  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
214
  title: string;
2156
- url: string;
2157
215
  snippet: string;
2158
216
  domain: string;
2159
217
  publishDate?: string | undefined;
@@ -2162,165 +220,10 @@ export declare class AgentBuilderDefaults {
2162
220
  query: string;
2163
221
  totalResults: number;
2164
222
  searchTime: number;
2165
- error?: string | undefined;
223
+ errorMessage?: string | undefined;
2166
224
  suggestions?: string[] | undefined;
2167
- }>, any, any, 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
- }>, any, any>> & {
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
- }>, any, any>, options: import("@mastra/core").ToolInvocationOptions) => 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, {
225
+ }, unknown, unknown, import("@mastra/core/tools").ToolExecutionContext<unknown, unknown, unknown>, "web-search", unknown>;
226
+ attemptCompletion: import("@mastra/core/tools").Tool<{
2324
227
  validation: {
2325
228
  testsRun: boolean;
2326
229
  buildsSuccessfully: boolean;
@@ -2334,232 +237,12 @@ export declare class AgentBuilderDefaults {
2334
237
  }[];
2335
238
  nextSteps?: string[] | undefined;
2336
239
  }, {
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
240
  completionId: string;
2358
- confidence: number;
2359
- }, {
2360
241
  status: "completed" | "needs_review" | "needs_testing";
2361
242
  summary: string;
2362
- completionId: string;
2363
243
  confidence: number;
2364
- }>, any, any, 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
- }>, any, any>> & {
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
- }>, any, any>, options: import("@mastra/core").ToolInvocationOptions) => 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, {
244
+ }, unknown, unknown, import("@mastra/core/tools").ToolExecutionContext<unknown, unknown, unknown>, "attempt-completion", unknown>;
245
+ manageProject: import("@mastra/core/tools").Tool<{
2563
246
  action: "create" | "install" | "upgrade";
2564
247
  features?: string[] | undefined;
2565
248
  packages?: {
@@ -2567,384 +250,35 @@ export declare class AgentBuilderDefaults {
2567
250
  version?: string | undefined;
2568
251
  }[] | undefined;
2569
252
  }, {
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
253
  success: boolean;
2586
254
  message?: string | undefined;
2587
- error?: string | undefined;
255
+ errorMessage?: string | undefined;
2588
256
  installed?: string[] | undefined;
2589
257
  upgraded?: string[] | undefined;
2590
258
  warnings?: string[] | undefined;
2591
259
  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
- }>, any, any, 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
- }>, any, any>> & {
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
- }>, any, any>, options: import("@mastra/core").ToolInvocationOptions) => 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";
260
+ }, unknown, unknown, import("@mastra/core/tools").ToolExecutionContext<unknown, unknown, unknown>, "manage-project", unknown>;
261
+ manageServer: import("@mastra/core/tools").Tool<{
262
+ action: "status" | "stop" | "start" | "restart";
2715
263
  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
- }>, any, any, 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
- }>, any, any>> & {
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
- }>, any, any>, options: import("@mastra/core").ToolInvocationOptions) => 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;
264
+ }, any, unknown, unknown, import("@mastra/core/tools").ToolExecutionContext<unknown, unknown, unknown>, "manage-server", unknown>;
265
+ httpRequest: import("@mastra/core/tools").Tool<{
2814
266
  url: string;
267
+ timeout: number;
2815
268
  method: "GET" | "POST" | "PUT" | "DELETE" | "PATCH";
2816
- baseUrl?: string | undefined;
2817
269
  headers?: Record<string, string> | undefined;
2818
- body?: any;
2819
- }, {
2820
- url: string;
2821
- method: "GET" | "POST" | "PUT" | "DELETE" | "PATCH";
2822
- timeout?: number | undefined;
2823
270
  baseUrl?: string | undefined;
2824
- headers?: Record<string, string> | undefined;
2825
271
  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
272
  }, {
2845
273
  success: boolean;
2846
274
  url: string;
2847
275
  method: string;
2848
276
  status?: number | undefined;
2849
- error?: string | undefined;
2850
277
  data?: any;
2851
278
  headers?: Record<string, string> | undefined;
279
+ errorMessage?: string | undefined;
2852
280
  statusText?: string | undefined;
2853
- }>, any, any, 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
- }>, any, any>> & {
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
- }>, any, any>, options: import("@mastra/core").ToolInvocationOptions) => Promise<any>;
2947
- };
281
+ }, unknown, unknown, import("@mastra/core/tools").ToolExecutionContext<unknown, unknown, unknown>, "http-request", unknown>;
2948
282
  }>;
2949
283
  /**
2950
284
  * Filter tools for template builder mode (excludes web search and other advanced tools)
@@ -2957,7 +291,7 @@ export declare class AgentBuilderDefaults {
2957
291
  /**
2958
292
  * Get tools for a specific mode
2959
293
  */
2960
- static getToolsForMode(projectPath: string, mode?: 'template' | 'code-editor'): Promise<Record<string, any>>;
294
+ static listToolsForMode(projectPath: string, mode?: 'template' | 'code-editor'): Promise<Record<string, any>>;
2961
295
  /**
2962
296
  * Create a new Mastra project using create-mastra CLI
2963
297
  */
@@ -2969,13 +303,13 @@ export declare class AgentBuilderDefaults {
2969
303
  projectPath: string;
2970
304
  message: string;
2971
305
  details: string;
2972
- error: string;
306
+ errorMessage: string;
2973
307
  } | {
2974
308
  success: boolean;
2975
309
  message: string;
2976
310
  projectPath?: undefined;
2977
311
  details?: undefined;
2978
- error?: undefined;
312
+ errorMessage?: undefined;
2979
313
  }>;
2980
314
  /**
2981
315
  * Install packages using the detected package manager
@@ -3034,22 +368,22 @@ export declare class AgentBuilderDefaults {
3034
368
  }): Promise<{
3035
369
  success: boolean;
3036
370
  status: "error";
3037
- error: string;
371
+ errorMessage: string;
3038
372
  message?: undefined;
3039
373
  } | {
3040
374
  success: boolean;
3041
375
  status: "stopped";
3042
376
  message: string;
3043
- error?: undefined;
377
+ errorMessage?: undefined;
3044
378
  } | {
3045
379
  success: boolean;
3046
380
  status: "unknown";
3047
381
  message: string;
3048
- error: string;
382
+ errorMessage: string;
3049
383
  } | {
3050
384
  success: boolean;
3051
385
  status: "unknown";
3052
- error: string;
386
+ errorMessage: string;
3053
387
  message?: undefined;
3054
388
  }>;
3055
389
  /**
@@ -3236,12 +570,12 @@ export declare class AgentBuilderDefaults {
3236
570
  data: any;
3237
571
  url: string;
3238
572
  method: "GET" | "POST" | "PUT" | "DELETE" | "PATCH";
3239
- error?: undefined;
573
+ errorMessage?: undefined;
3240
574
  } | {
3241
575
  success: boolean;
3242
576
  url: string;
3243
577
  method: "GET" | "POST" | "PUT" | "DELETE" | "PATCH";
3244
- error: string;
578
+ errorMessage: string;
3245
579
  status?: undefined;
3246
580
  statusText?: undefined;
3247
581
  headers?: undefined;
@@ -3303,7 +637,7 @@ export declare class AgentBuilderDefaults {
3303
637
  }): Promise<{
3304
638
  success: boolean;
3305
639
  message: string;
3306
- error: string;
640
+ errorMessage: string;
3307
641
  linesReplaced?: undefined;
3308
642
  backup?: undefined;
3309
643
  } | {
@@ -3311,7 +645,7 @@ export declare class AgentBuilderDefaults {
3311
645
  message: string;
3312
646
  linesReplaced: number;
3313
647
  backup: string | undefined;
3314
- error?: undefined;
648
+ errorMessage?: undefined;
3315
649
  }>;
3316
650
  /**
3317
651
  * Show file lines with line numbers for debugging
@@ -3331,13 +665,13 @@ export declare class AgentBuilderDefaults {
3331
665
  }[];
3332
666
  totalLines: number;
3333
667
  message: string;
3334
- error?: undefined;
668
+ errorMessage?: undefined;
3335
669
  } | {
3336
670
  success: boolean;
3337
671
  lines: never[];
3338
672
  totalLines: number;
3339
673
  message: string;
3340
- error: string;
674
+ errorMessage: string;
3341
675
  }>;
3342
676
  /**
3343
677
  * Signal task completion
@@ -3418,10 +752,10 @@ export declare class AgentBuilderDefaults {
3418
752
  encoding: string;
3419
753
  lastModified: string;
3420
754
  };
3421
- error?: undefined;
755
+ errorMessage?: undefined;
3422
756
  } | {
3423
757
  success: boolean;
3424
- error: string;
758
+ errorMessage: string;
3425
759
  content?: undefined;
3426
760
  lines?: undefined;
3427
761
  metadata?: undefined;
@@ -3440,12 +774,12 @@ export declare class AgentBuilderDefaults {
3440
774
  filePath: string;
3441
775
  bytesWritten: number;
3442
776
  message: string;
3443
- error?: undefined;
777
+ errorMessage?: undefined;
3444
778
  } | {
3445
779
  success: boolean;
3446
780
  filePath: string;
3447
781
  message: string;
3448
- error: string;
782
+ errorMessage: string;
3449
783
  bytesWritten?: undefined;
3450
784
  }>;
3451
785
  /**
@@ -3472,14 +806,14 @@ export declare class AgentBuilderDefaults {
3472
806
  totalItems: number;
3473
807
  path: string;
3474
808
  message: string;
3475
- error?: undefined;
809
+ errorMessage?: undefined;
3476
810
  } | {
3477
811
  success: boolean;
3478
812
  items: never[];
3479
813
  totalItems: number;
3480
814
  path: string;
3481
815
  message: string;
3482
- error: string;
816
+ errorMessage: string;
3483
817
  }>;
3484
818
  /**
3485
819
  * Execute shell commands with proper error handling
@@ -3499,7 +833,7 @@ export declare class AgentBuilderDefaults {
3499
833
  command: string;
3500
834
  workingDirectory: string | undefined;
3501
835
  executionTime: number;
3502
- error?: undefined;
836
+ errorMessage?: undefined;
3503
837
  } | {
3504
838
  success: boolean;
3505
839
  exitCode: any;
@@ -3508,7 +842,7 @@ export declare class AgentBuilderDefaults {
3508
842
  command: string;
3509
843
  workingDirectory: string | undefined;
3510
844
  executionTime: number;
3511
- error: string;
845
+ errorMessage: string;
3512
846
  }>;
3513
847
  /**
3514
848
  * Web search using a simple search approach
@@ -3534,15 +868,16 @@ export declare class AgentBuilderDefaults {
3534
868
  totalResults: number;
3535
869
  searchTime: number;
3536
870
  suggestions: any;
3537
- error?: undefined;
871
+ errorMessage?: undefined;
3538
872
  } | {
3539
873
  success: boolean;
3540
874
  query: string;
3541
875
  results: never[];
3542
876
  totalResults: number;
3543
877
  searchTime: number;
3544
- error: string;
878
+ errorMessage: string;
3545
879
  suggestions?: undefined;
3546
880
  }>;
3547
881
  }
882
+ export {};
3548
883
  //# sourceMappingURL=defaults.d.ts.map