@mastra/agent-builder 1.0.0-beta.8 → 1.0.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -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,53 +23,11 @@ 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, {
21
- filePath: string;
22
- encoding: string;
23
- startLine?: number | undefined;
24
- endLine?: number | undefined;
25
- }, {
26
+ readFile: import("@mastra/core/tools").Tool<{
26
27
  filePath: string;
27
28
  startLine?: number | undefined;
28
29
  endLine?: number | undefined;
29
30
  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
- errorMessage: z.ZodOptional<z.ZodString>;
51
- }, "strip", z.ZodTypeAny, {
52
- success: boolean;
53
- content?: string | undefined;
54
- lines?: string[] | undefined;
55
- metadata?: {
56
- encoding: string;
57
- size: number;
58
- totalLines: number;
59
- lastModified: string;
60
- } | undefined;
61
- errorMessage?: string | undefined;
62
31
  }, {
63
32
  success: boolean;
64
33
  content?: string | undefined;
@@ -70,234 +39,26 @@ export declare class AgentBuilderDefaults {
70
39
  lastModified: string;
71
40
  } | undefined;
72
41
  errorMessage?: string | undefined;
73
- }>, any, any, import("@mastra/core/tools").ToolExecutionContext<any, any>, "read-file"> & {
74
- inputSchema: z.ZodObject<{
75
- filePath: z.ZodString;
76
- startLine: z.ZodOptional<z.ZodNumber>;
77
- endLine: z.ZodOptional<z.ZodNumber>;
78
- encoding: z.ZodDefault<z.ZodString>;
79
- }, "strip", z.ZodTypeAny, {
80
- filePath: string;
81
- encoding: string;
82
- startLine?: number | undefined;
83
- endLine?: number | undefined;
84
- }, {
85
- filePath: string;
86
- startLine?: number | undefined;
87
- endLine?: number | undefined;
88
- encoding?: string | undefined;
89
- }>;
90
- outputSchema: z.ZodObject<{
91
- success: z.ZodBoolean;
92
- content: z.ZodOptional<z.ZodString>;
93
- lines: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
94
- metadata: z.ZodOptional<z.ZodObject<{
95
- size: z.ZodNumber;
96
- totalLines: z.ZodNumber;
97
- encoding: z.ZodString;
98
- lastModified: z.ZodString;
99
- }, "strip", z.ZodTypeAny, {
100
- encoding: string;
101
- size: number;
102
- totalLines: number;
103
- lastModified: string;
104
- }, {
105
- encoding: string;
106
- size: number;
107
- totalLines: number;
108
- lastModified: string;
109
- }>>;
110
- errorMessage: z.ZodOptional<z.ZodString>;
111
- }, "strip", z.ZodTypeAny, {
112
- success: boolean;
113
- content?: string | undefined;
114
- lines?: string[] | undefined;
115
- metadata?: {
116
- encoding: string;
117
- size: number;
118
- totalLines: number;
119
- lastModified: string;
120
- } | undefined;
121
- errorMessage?: string | undefined;
122
- }, {
123
- success: boolean;
124
- content?: string | undefined;
125
- lines?: string[] | undefined;
126
- metadata?: {
127
- encoding: string;
128
- size: number;
129
- totalLines: number;
130
- lastModified: string;
131
- } | undefined;
132
- errorMessage?: string | undefined;
133
- }>;
134
- execute: (inputData: {
135
- filePath: string;
136
- encoding: string;
137
- startLine?: number | undefined;
138
- endLine?: number | undefined;
139
- }, context?: import("@mastra/core/tools").ToolExecutionContext<any, any> | undefined) => Promise<{
140
- success: boolean;
141
- content?: string | undefined;
142
- lines?: string[] | undefined;
143
- metadata?: {
144
- encoding: string;
145
- size: number;
146
- totalLines: number;
147
- lastModified: string;
148
- } | undefined;
149
- errorMessage?: string | undefined;
150
- } & {
151
- error?: never;
152
- }>;
153
- };
154
- writeFile: import("@mastra/core/tools").Tool<z.ZodObject<{
155
- filePath: z.ZodString;
156
- content: z.ZodString;
157
- createDirs: z.ZodDefault<z.ZodBoolean>;
158
- encoding: z.ZodDefault<z.ZodString>;
159
- }, "strip", z.ZodTypeAny, {
160
- content: string;
161
- filePath: string;
162
- encoding: string;
163
- createDirs: boolean;
164
- }, {
42
+ }, unknown, unknown, import("@mastra/core/tools").ToolExecutionContext<unknown, unknown>, "read-file">;
43
+ writeFile: import("@mastra/core/tools").Tool<{
165
44
  content: string;
166
45
  filePath: string;
167
46
  encoding?: string | undefined;
168
47
  createDirs?: boolean | undefined;
169
- }>, z.ZodObject<{
170
- success: z.ZodBoolean;
171
- filePath: z.ZodString;
172
- bytesWritten: z.ZodOptional<z.ZodNumber>;
173
- message: z.ZodString;
174
- errorMessage: z.ZodOptional<z.ZodString>;
175
- }, "strip", z.ZodTypeAny, {
176
- message: string;
177
- success: boolean;
178
- filePath: string;
179
- errorMessage?: string | undefined;
180
- bytesWritten?: number | undefined;
181
48
  }, {
182
49
  message: string;
183
50
  success: boolean;
184
51
  filePath: string;
185
52
  errorMessage?: string | undefined;
186
53
  bytesWritten?: number | undefined;
187
- }>, any, any, import("@mastra/core/tools").ToolExecutionContext<any, any>, "write-file"> & {
188
- inputSchema: z.ZodObject<{
189
- filePath: z.ZodString;
190
- content: z.ZodString;
191
- createDirs: z.ZodDefault<z.ZodBoolean>;
192
- encoding: z.ZodDefault<z.ZodString>;
193
- }, "strip", z.ZodTypeAny, {
194
- content: string;
195
- filePath: string;
196
- encoding: string;
197
- createDirs: boolean;
198
- }, {
199
- content: string;
200
- filePath: string;
201
- encoding?: string | undefined;
202
- createDirs?: boolean | undefined;
203
- }>;
204
- outputSchema: z.ZodObject<{
205
- success: z.ZodBoolean;
206
- filePath: z.ZodString;
207
- bytesWritten: z.ZodOptional<z.ZodNumber>;
208
- message: z.ZodString;
209
- errorMessage: z.ZodOptional<z.ZodString>;
210
- }, "strip", z.ZodTypeAny, {
211
- message: string;
212
- success: boolean;
213
- filePath: string;
214
- errorMessage?: string | undefined;
215
- bytesWritten?: number | undefined;
216
- }, {
217
- message: string;
218
- success: boolean;
219
- filePath: string;
220
- errorMessage?: string | undefined;
221
- bytesWritten?: number | undefined;
222
- }>;
223
- execute: (inputData: {
224
- content: string;
225
- filePath: string;
226
- encoding: string;
227
- createDirs: boolean;
228
- }, context?: import("@mastra/core/tools").ToolExecutionContext<any, any> | undefined) => Promise<{
229
- message: string;
230
- success: boolean;
231
- filePath: string;
232
- errorMessage?: string | undefined;
233
- bytesWritten?: number | undefined;
234
- } & {
235
- error?: never;
236
- }>;
237
- };
238
- listDirectory: import("@mastra/core/tools").Tool<z.ZodObject<{
239
- path: z.ZodString;
240
- recursive: z.ZodDefault<z.ZodBoolean>;
241
- includeHidden: z.ZodDefault<z.ZodBoolean>;
242
- pattern: z.ZodDefault<z.ZodString>;
243
- maxDepth: z.ZodDefault<z.ZodNumber>;
244
- includeMetadata: z.ZodDefault<z.ZodBoolean>;
245
- }, "strip", z.ZodTypeAny, {
246
- path: string;
247
- recursive: boolean;
248
- includeHidden: boolean;
249
- pattern: string;
250
- maxDepth: number;
251
- includeMetadata: boolean;
252
- }, {
54
+ }, unknown, unknown, import("@mastra/core/tools").ToolExecutionContext<unknown, unknown>, "write-file">;
55
+ listDirectory: import("@mastra/core/tools").Tool<{
253
56
  path: string;
254
57
  recursive?: boolean | undefined;
255
58
  includeHidden?: boolean | undefined;
256
59
  pattern?: string | undefined;
257
60
  maxDepth?: number | undefined;
258
61
  includeMetadata?: boolean | undefined;
259
- }>, z.ZodObject<{
260
- success: z.ZodBoolean;
261
- items: z.ZodArray<z.ZodObject<{
262
- name: z.ZodString;
263
- path: z.ZodString;
264
- type: z.ZodEnum<["file", "directory", "symlink"]>;
265
- size: z.ZodOptional<z.ZodNumber>;
266
- lastModified: z.ZodOptional<z.ZodString>;
267
- permissions: z.ZodOptional<z.ZodString>;
268
- }, "strip", z.ZodTypeAny, {
269
- path: string;
270
- type: "file" | "directory" | "symlink";
271
- name: string;
272
- size?: number | undefined;
273
- lastModified?: string | undefined;
274
- permissions?: string | undefined;
275
- }, {
276
- path: string;
277
- type: "file" | "directory" | "symlink";
278
- name: string;
279
- size?: number | undefined;
280
- lastModified?: string | undefined;
281
- permissions?: string | undefined;
282
- }>, "many">;
283
- totalItems: z.ZodNumber;
284
- path: z.ZodString;
285
- message: z.ZodString;
286
- errorMessage: z.ZodOptional<z.ZodString>;
287
- }, "strip", z.ZodTypeAny, {
288
- path: string;
289
- message: string;
290
- success: boolean;
291
- items: {
292
- path: string;
293
- type: "file" | "directory" | "symlink";
294
- name: string;
295
- size?: number | undefined;
296
- lastModified?: string | undefined;
297
- permissions?: string | undefined;
298
- }[];
299
- totalItems: number;
300
- errorMessage?: string | undefined;
301
62
  }, {
302
63
  path: string;
303
64
  message: string;
@@ -312,150 +73,14 @@ export declare class AgentBuilderDefaults {
312
73
  }[];
313
74
  totalItems: number;
314
75
  errorMessage?: string | undefined;
315
- }>, any, any, import("@mastra/core/tools").ToolExecutionContext<any, any>, "list-directory"> & {
316
- inputSchema: z.ZodObject<{
317
- path: z.ZodString;
318
- recursive: z.ZodDefault<z.ZodBoolean>;
319
- includeHidden: z.ZodDefault<z.ZodBoolean>;
320
- pattern: z.ZodDefault<z.ZodString>;
321
- maxDepth: z.ZodDefault<z.ZodNumber>;
322
- includeMetadata: z.ZodDefault<z.ZodBoolean>;
323
- }, "strip", z.ZodTypeAny, {
324
- path: string;
325
- recursive: boolean;
326
- includeHidden: boolean;
327
- pattern: string;
328
- maxDepth: number;
329
- includeMetadata: boolean;
330
- }, {
331
- path: string;
332
- recursive?: boolean | undefined;
333
- includeHidden?: boolean | undefined;
334
- pattern?: string | undefined;
335
- maxDepth?: number | undefined;
336
- includeMetadata?: boolean | undefined;
337
- }>;
338
- outputSchema: z.ZodObject<{
339
- success: z.ZodBoolean;
340
- items: z.ZodArray<z.ZodObject<{
341
- name: z.ZodString;
342
- path: z.ZodString;
343
- type: z.ZodEnum<["file", "directory", "symlink"]>;
344
- size: z.ZodOptional<z.ZodNumber>;
345
- lastModified: z.ZodOptional<z.ZodString>;
346
- permissions: z.ZodOptional<z.ZodString>;
347
- }, "strip", z.ZodTypeAny, {
348
- path: string;
349
- type: "file" | "directory" | "symlink";
350
- name: string;
351
- size?: number | undefined;
352
- lastModified?: string | undefined;
353
- permissions?: string | undefined;
354
- }, {
355
- path: string;
356
- type: "file" | "directory" | "symlink";
357
- name: string;
358
- size?: number | undefined;
359
- lastModified?: string | undefined;
360
- permissions?: string | undefined;
361
- }>, "many">;
362
- totalItems: z.ZodNumber;
363
- path: z.ZodString;
364
- message: z.ZodString;
365
- errorMessage: z.ZodOptional<z.ZodString>;
366
- }, "strip", z.ZodTypeAny, {
367
- path: string;
368
- message: string;
369
- success: boolean;
370
- items: {
371
- path: string;
372
- type: "file" | "directory" | "symlink";
373
- name: string;
374
- size?: number | undefined;
375
- lastModified?: string | undefined;
376
- permissions?: string | undefined;
377
- }[];
378
- totalItems: number;
379
- errorMessage?: string | undefined;
380
- }, {
381
- path: string;
382
- message: string;
383
- success: boolean;
384
- items: {
385
- path: string;
386
- type: "file" | "directory" | "symlink";
387
- name: string;
388
- size?: number | undefined;
389
- lastModified?: string | undefined;
390
- permissions?: string | undefined;
391
- }[];
392
- totalItems: number;
393
- errorMessage?: string | undefined;
394
- }>;
395
- execute: (inputData: {
396
- path: string;
397
- recursive: boolean;
398
- includeHidden: boolean;
399
- pattern: string;
400
- maxDepth: number;
401
- includeMetadata: boolean;
402
- }, context?: import("@mastra/core/tools").ToolExecutionContext<any, any> | undefined) => Promise<{
403
- path: string;
404
- message: string;
405
- success: boolean;
406
- items: {
407
- path: string;
408
- type: "file" | "directory" | "symlink";
409
- name: string;
410
- size?: number | undefined;
411
- lastModified?: string | undefined;
412
- permissions?: string | undefined;
413
- }[];
414
- totalItems: number;
415
- errorMessage?: string | undefined;
416
- } & {
417
- error?: never;
418
- }>;
419
- };
420
- executeCommand: import("@mastra/core/tools").Tool<z.ZodObject<{
421
- command: z.ZodString;
422
- workingDirectory: z.ZodOptional<z.ZodString>;
423
- timeout: z.ZodDefault<z.ZodNumber>;
424
- captureOutput: z.ZodDefault<z.ZodBoolean>;
425
- shell: z.ZodOptional<z.ZodString>;
426
- env: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
427
- }, "strip", z.ZodTypeAny, {
428
- command: string;
429
- timeout: number;
430
- captureOutput: boolean;
431
- workingDirectory?: string | undefined;
432
- shell?: string | undefined;
433
- env?: Record<string, string> | undefined;
434
- }, {
76
+ }, unknown, unknown, import("@mastra/core/tools").ToolExecutionContext<unknown, unknown>, "list-directory">;
77
+ executeCommand: import("@mastra/core/tools").Tool<{
435
78
  command: string;
436
79
  workingDirectory?: string | undefined;
437
80
  timeout?: number | undefined;
438
81
  captureOutput?: boolean | undefined;
439
82
  shell?: string | undefined;
440
83
  env?: Record<string, string> | undefined;
441
- }>, z.ZodObject<{
442
- success: z.ZodBoolean;
443
- exitCode: z.ZodOptional<z.ZodNumber>;
444
- stdout: z.ZodOptional<z.ZodString>;
445
- stderr: z.ZodOptional<z.ZodString>;
446
- command: z.ZodString;
447
- workingDirectory: z.ZodOptional<z.ZodString>;
448
- executionTime: z.ZodOptional<z.ZodNumber>;
449
- errorMessage: z.ZodOptional<z.ZodString>;
450
- }, "strip", z.ZodTypeAny, {
451
- success: boolean;
452
- command: string;
453
- stdout?: string | undefined;
454
- stderr?: string | undefined;
455
- errorMessage?: string | undefined;
456
- workingDirectory?: string | undefined;
457
- exitCode?: number | undefined;
458
- executionTime?: number | undefined;
459
84
  }, {
460
85
  success: boolean;
461
86
  command: string;
@@ -465,359 +90,13 @@ export declare class AgentBuilderDefaults {
465
90
  workingDirectory?: string | undefined;
466
91
  exitCode?: number | undefined;
467
92
  executionTime?: number | undefined;
468
- }>, any, any, import("@mastra/core/tools").ToolExecutionContext<any, any>, "execute-command"> & {
469
- inputSchema: z.ZodObject<{
470
- command: z.ZodString;
471
- workingDirectory: z.ZodOptional<z.ZodString>;
472
- timeout: z.ZodDefault<z.ZodNumber>;
473
- captureOutput: z.ZodDefault<z.ZodBoolean>;
474
- shell: z.ZodOptional<z.ZodString>;
475
- env: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
476
- }, "strip", z.ZodTypeAny, {
477
- command: string;
478
- timeout: number;
479
- captureOutput: boolean;
480
- workingDirectory?: string | undefined;
481
- shell?: string | undefined;
482
- env?: Record<string, string> | undefined;
483
- }, {
484
- command: string;
485
- workingDirectory?: string | undefined;
486
- timeout?: number | undefined;
487
- captureOutput?: boolean | undefined;
488
- shell?: string | undefined;
489
- env?: Record<string, string> | undefined;
490
- }>;
491
- outputSchema: z.ZodObject<{
492
- success: z.ZodBoolean;
493
- exitCode: z.ZodOptional<z.ZodNumber>;
494
- stdout: z.ZodOptional<z.ZodString>;
495
- stderr: z.ZodOptional<z.ZodString>;
496
- command: z.ZodString;
497
- workingDirectory: z.ZodOptional<z.ZodString>;
498
- executionTime: z.ZodOptional<z.ZodNumber>;
499
- errorMessage: z.ZodOptional<z.ZodString>;
500
- }, "strip", z.ZodTypeAny, {
501
- success: boolean;
502
- command: string;
503
- stdout?: string | undefined;
504
- stderr?: string | undefined;
505
- errorMessage?: string | undefined;
506
- workingDirectory?: string | undefined;
507
- exitCode?: number | undefined;
508
- executionTime?: number | undefined;
509
- }, {
510
- success: boolean;
511
- command: string;
512
- stdout?: string | undefined;
513
- stderr?: string | undefined;
514
- errorMessage?: string | undefined;
515
- workingDirectory?: string | undefined;
516
- exitCode?: number | undefined;
517
- executionTime?: number | undefined;
518
- }>;
519
- execute: (inputData: {
520
- command: string;
521
- timeout: number;
522
- captureOutput: boolean;
523
- workingDirectory?: string | undefined;
524
- shell?: string | undefined;
525
- env?: Record<string, string> | undefined;
526
- }, context?: import("@mastra/core/tools").ToolExecutionContext<any, any> | undefined) => Promise<{
527
- success: boolean;
528
- command: string;
529
- stdout?: string | undefined;
530
- stderr?: string | undefined;
531
- errorMessage?: string | undefined;
532
- workingDirectory?: string | undefined;
533
- exitCode?: number | undefined;
534
- executionTime?: number | undefined;
535
- } & {
536
- error?: never;
537
- }>;
538
- };
539
- taskManager: import("@mastra/core/tools").Tool<z.ZodObject<{
540
- action: z.ZodEnum<["create", "update", "list", "complete", "remove"]>;
541
- tasks: z.ZodOptional<z.ZodArray<z.ZodObject<{
542
- id: z.ZodString;
543
- content: z.ZodOptional<z.ZodString>;
544
- status: z.ZodEnum<["pending", "in_progress", "completed", "blocked"]>;
545
- priority: z.ZodDefault<z.ZodEnum<["high", "medium", "low"]>>;
546
- dependencies: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
547
- notes: z.ZodOptional<z.ZodString>;
548
- }, "strip", z.ZodTypeAny, {
549
- status: "pending" | "in_progress" | "completed" | "blocked";
550
- id: string;
551
- priority: "high" | "medium" | "low";
552
- dependencies?: string[] | undefined;
553
- content?: string | undefined;
554
- notes?: string | undefined;
555
- }, {
556
- status: "pending" | "in_progress" | "completed" | "blocked";
557
- id: string;
558
- dependencies?: string[] | undefined;
559
- content?: string | undefined;
560
- priority?: "high" | "medium" | "low" | undefined;
561
- notes?: string | undefined;
562
- }>, "many">>;
563
- taskId: z.ZodOptional<z.ZodString>;
564
- }, "strip", z.ZodTypeAny, {
565
- action: "create" | "update" | "list" | "complete" | "remove";
566
- tasks?: {
567
- status: "pending" | "in_progress" | "completed" | "blocked";
568
- id: string;
569
- priority: "high" | "medium" | "low";
570
- dependencies?: string[] | undefined;
571
- content?: string | undefined;
572
- notes?: string | undefined;
573
- }[] | undefined;
574
- taskId?: string | undefined;
575
- }, {
576
- action: "create" | "update" | "list" | "complete" | "remove";
577
- tasks?: {
578
- status: "pending" | "in_progress" | "completed" | "blocked";
579
- id: string;
580
- dependencies?: string[] | undefined;
581
- content?: string | undefined;
582
- priority?: "high" | "medium" | "low" | undefined;
583
- notes?: string | undefined;
584
- }[] | undefined;
585
- taskId?: string | undefined;
586
- }>, z.ZodObject<{
587
- success: z.ZodBoolean;
588
- tasks: z.ZodArray<z.ZodObject<{
589
- id: z.ZodString;
590
- content: z.ZodString;
591
- status: z.ZodString;
592
- priority: z.ZodString;
593
- dependencies: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
594
- notes: z.ZodOptional<z.ZodString>;
595
- createdAt: z.ZodString;
596
- updatedAt: z.ZodString;
597
- }, "strip", z.ZodTypeAny, {
598
- status: string;
599
- id: string;
600
- content: string;
601
- priority: string;
602
- createdAt: string;
603
- updatedAt: string;
604
- dependencies?: string[] | undefined;
605
- notes?: string | undefined;
606
- }, {
607
- status: string;
608
- id: string;
609
- content: string;
610
- priority: string;
611
- createdAt: string;
612
- updatedAt: string;
613
- dependencies?: string[] | undefined;
614
- notes?: string | undefined;
615
- }>, "many">;
616
- message: z.ZodString;
617
- }, "strip", z.ZodTypeAny, {
618
- message: string;
93
+ }, unknown, unknown, import("@mastra/core/tools").ToolExecutionContext<unknown, unknown>, "execute-command">;
94
+ taskManager: import("@mastra/core/tools").Tool<TaskManagerInputType, {
619
95
  success: boolean;
620
- tasks: {
621
- status: string;
622
- id: string;
623
- content: string;
624
- priority: string;
625
- createdAt: string;
626
- updatedAt: string;
627
- dependencies?: string[] | undefined;
628
- notes?: string | undefined;
629
- }[];
630
- }, {
96
+ tasks: any[];
631
97
  message: string;
632
- success: boolean;
633
- tasks: {
634
- status: string;
635
- id: string;
636
- content: string;
637
- priority: string;
638
- createdAt: string;
639
- updatedAt: string;
640
- dependencies?: string[] | undefined;
641
- notes?: string | undefined;
642
- }[];
643
- }>, any, any, import("@mastra/core/tools").ToolExecutionContext<any, any>, "task-manager"> & {
644
- inputSchema: z.ZodObject<{
645
- action: z.ZodEnum<["create", "update", "list", "complete", "remove"]>;
646
- tasks: z.ZodOptional<z.ZodArray<z.ZodObject<{
647
- id: z.ZodString;
648
- content: z.ZodOptional<z.ZodString>;
649
- status: z.ZodEnum<["pending", "in_progress", "completed", "blocked"]>;
650
- priority: z.ZodDefault<z.ZodEnum<["high", "medium", "low"]>>;
651
- dependencies: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
652
- notes: z.ZodOptional<z.ZodString>;
653
- }, "strip", z.ZodTypeAny, {
654
- status: "pending" | "in_progress" | "completed" | "blocked";
655
- id: string;
656
- priority: "high" | "medium" | "low";
657
- dependencies?: string[] | undefined;
658
- content?: string | undefined;
659
- notes?: string | undefined;
660
- }, {
661
- status: "pending" | "in_progress" | "completed" | "blocked";
662
- id: string;
663
- dependencies?: string[] | undefined;
664
- content?: string | undefined;
665
- priority?: "high" | "medium" | "low" | undefined;
666
- notes?: string | undefined;
667
- }>, "many">>;
668
- taskId: z.ZodOptional<z.ZodString>;
669
- }, "strip", z.ZodTypeAny, {
670
- action: "create" | "update" | "list" | "complete" | "remove";
671
- tasks?: {
672
- status: "pending" | "in_progress" | "completed" | "blocked";
673
- id: string;
674
- priority: "high" | "medium" | "low";
675
- dependencies?: string[] | undefined;
676
- content?: string | undefined;
677
- notes?: string | undefined;
678
- }[] | undefined;
679
- taskId?: string | undefined;
680
- }, {
681
- action: "create" | "update" | "list" | "complete" | "remove";
682
- tasks?: {
683
- status: "pending" | "in_progress" | "completed" | "blocked";
684
- id: string;
685
- dependencies?: string[] | undefined;
686
- content?: string | undefined;
687
- priority?: "high" | "medium" | "low" | undefined;
688
- notes?: string | undefined;
689
- }[] | undefined;
690
- taskId?: string | undefined;
691
- }>;
692
- outputSchema: z.ZodObject<{
693
- success: z.ZodBoolean;
694
- tasks: z.ZodArray<z.ZodObject<{
695
- id: z.ZodString;
696
- content: z.ZodString;
697
- status: z.ZodString;
698
- priority: z.ZodString;
699
- dependencies: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
700
- notes: z.ZodOptional<z.ZodString>;
701
- createdAt: z.ZodString;
702
- updatedAt: z.ZodString;
703
- }, "strip", z.ZodTypeAny, {
704
- status: string;
705
- id: string;
706
- content: string;
707
- priority: string;
708
- createdAt: string;
709
- updatedAt: string;
710
- dependencies?: string[] | undefined;
711
- notes?: string | undefined;
712
- }, {
713
- status: string;
714
- id: string;
715
- content: string;
716
- priority: string;
717
- createdAt: string;
718
- updatedAt: string;
719
- dependencies?: string[] | undefined;
720
- notes?: string | undefined;
721
- }>, "many">;
722
- message: z.ZodString;
723
- }, "strip", z.ZodTypeAny, {
724
- message: string;
725
- success: boolean;
726
- tasks: {
727
- status: string;
728
- id: string;
729
- content: string;
730
- priority: string;
731
- createdAt: string;
732
- updatedAt: string;
733
- dependencies?: string[] | undefined;
734
- notes?: string | undefined;
735
- }[];
736
- }, {
737
- message: string;
738
- success: boolean;
739
- tasks: {
740
- status: string;
741
- id: string;
742
- content: string;
743
- priority: string;
744
- createdAt: string;
745
- updatedAt: string;
746
- dependencies?: string[] | undefined;
747
- notes?: string | undefined;
748
- }[];
749
- }>;
750
- execute: (inputData: {
751
- action: "create" | "update" | "list" | "complete" | "remove";
752
- tasks?: {
753
- status: "pending" | "in_progress" | "completed" | "blocked";
754
- id: string;
755
- priority: "high" | "medium" | "low";
756
- dependencies?: string[] | undefined;
757
- content?: string | undefined;
758
- notes?: string | undefined;
759
- }[] | undefined;
760
- taskId?: string | undefined;
761
- }, context?: import("@mastra/core/tools").ToolExecutionContext<any, any> | undefined) => Promise<{
762
- message: string;
763
- success: boolean;
764
- tasks: {
765
- status: string;
766
- id: string;
767
- content: string;
768
- priority: string;
769
- createdAt: string;
770
- updatedAt: string;
771
- dependencies?: string[] | undefined;
772
- notes?: string | undefined;
773
- }[];
774
- } & {
775
- error?: never;
776
- }>;
777
- };
778
- multiEdit: import("@mastra/core/tools").Tool<z.ZodObject<{
779
- operations: z.ZodArray<z.ZodObject<{
780
- filePath: z.ZodString;
781
- edits: z.ZodArray<z.ZodObject<{
782
- oldString: z.ZodString;
783
- newString: z.ZodString;
784
- replaceAll: z.ZodDefault<z.ZodBoolean>;
785
- }, "strip", z.ZodTypeAny, {
786
- replaceAll: boolean;
787
- oldString: string;
788
- newString: string;
789
- }, {
790
- oldString: string;
791
- newString: string;
792
- replaceAll?: boolean | undefined;
793
- }>, "many">;
794
- }, "strip", z.ZodTypeAny, {
795
- filePath: string;
796
- edits: {
797
- replaceAll: boolean;
798
- oldString: string;
799
- newString: string;
800
- }[];
801
- }, {
802
- filePath: string;
803
- edits: {
804
- oldString: string;
805
- newString: string;
806
- replaceAll?: boolean | undefined;
807
- }[];
808
- }>, "many">;
809
- createBackup: z.ZodDefault<z.ZodBoolean>;
810
- }, "strip", z.ZodTypeAny, {
811
- operations: {
812
- filePath: string;
813
- edits: {
814
- replaceAll: boolean;
815
- oldString: string;
816
- newString: string;
817
- }[];
818
- }[];
819
- createBackup: boolean;
820
- }, {
98
+ }, unknown, unknown, import("@mastra/core/tools").ToolExecutionContext<unknown, unknown>, "task-manager">;
99
+ multiEdit: import("@mastra/core/tools").Tool<{
821
100
  operations: {
822
101
  filePath: string;
823
102
  edits: {
@@ -827,292 +106,34 @@ export declare class AgentBuilderDefaults {
827
106
  }[];
828
107
  }[];
829
108
  createBackup?: boolean | undefined;
830
- }>, z.ZodObject<{
831
- success: z.ZodBoolean;
832
- results: z.ZodArray<z.ZodObject<{
833
- filePath: z.ZodString;
834
- editsApplied: z.ZodNumber;
835
- errors: z.ZodArray<z.ZodString, "many">;
836
- backup: z.ZodOptional<z.ZodString>;
837
- }, "strip", z.ZodTypeAny, {
838
- errors: string[];
839
- filePath: string;
840
- editsApplied: number;
841
- backup?: string | undefined;
842
- }, {
843
- errors: string[];
844
- filePath: string;
845
- editsApplied: number;
846
- backup?: string | undefined;
847
- }>, "many">;
848
- message: z.ZodString;
849
- }, "strip", z.ZodTypeAny, {
850
- message: string;
851
- success: boolean;
852
- results: {
853
- errors: string[];
854
- filePath: string;
855
- editsApplied: number;
856
- backup?: string | undefined;
857
- }[];
858
109
  }, {
859
- message: string;
860
110
  success: boolean;
861
111
  results: {
862
- errors: string[];
863
112
  filePath: string;
864
113
  editsApplied: number;
865
- backup?: string | undefined;
114
+ errors: string[];
115
+ backup?: string;
866
116
  }[];
867
- }>, any, any, import("@mastra/core/tools").ToolExecutionContext<any, any>, "multi-edit"> & {
868
- inputSchema: z.ZodObject<{
869
- operations: z.ZodArray<z.ZodObject<{
870
- filePath: z.ZodString;
871
- edits: z.ZodArray<z.ZodObject<{
872
- oldString: z.ZodString;
873
- newString: z.ZodString;
874
- replaceAll: z.ZodDefault<z.ZodBoolean>;
875
- }, "strip", z.ZodTypeAny, {
876
- replaceAll: boolean;
877
- oldString: string;
878
- newString: string;
879
- }, {
880
- oldString: string;
881
- newString: string;
882
- replaceAll?: boolean | undefined;
883
- }>, "many">;
884
- }, "strip", z.ZodTypeAny, {
885
- filePath: string;
886
- edits: {
887
- replaceAll: boolean;
888
- oldString: string;
889
- newString: string;
890
- }[];
891
- }, {
892
- filePath: string;
893
- edits: {
894
- oldString: string;
895
- newString: string;
896
- replaceAll?: boolean | undefined;
897
- }[];
898
- }>, "many">;
899
- createBackup: z.ZodDefault<z.ZodBoolean>;
900
- }, "strip", z.ZodTypeAny, {
901
- operations: {
902
- filePath: string;
903
- edits: {
904
- replaceAll: boolean;
905
- oldString: string;
906
- newString: string;
907
- }[];
908
- }[];
909
- createBackup: boolean;
910
- }, {
911
- operations: {
912
- filePath: string;
913
- edits: {
914
- oldString: string;
915
- newString: string;
916
- replaceAll?: boolean | undefined;
917
- }[];
918
- }[];
919
- createBackup?: boolean | undefined;
920
- }>;
921
- outputSchema: z.ZodObject<{
922
- success: z.ZodBoolean;
923
- results: z.ZodArray<z.ZodObject<{
924
- filePath: z.ZodString;
925
- editsApplied: z.ZodNumber;
926
- errors: z.ZodArray<z.ZodString, "many">;
927
- backup: z.ZodOptional<z.ZodString>;
928
- }, "strip", z.ZodTypeAny, {
929
- errors: string[];
930
- filePath: string;
931
- editsApplied: number;
932
- backup?: string | undefined;
933
- }, {
934
- errors: string[];
935
- filePath: string;
936
- editsApplied: number;
937
- backup?: string | undefined;
938
- }>, "many">;
939
- message: z.ZodString;
940
- }, "strip", z.ZodTypeAny, {
941
- message: string;
942
- success: boolean;
943
- results: {
944
- errors: string[];
945
- filePath: string;
946
- editsApplied: number;
947
- backup?: string | undefined;
948
- }[];
949
- }, {
950
- message: string;
951
- success: boolean;
952
- results: {
953
- errors: string[];
954
- filePath: string;
955
- editsApplied: number;
956
- backup?: string | undefined;
957
- }[];
958
- }>;
959
- execute: (inputData: {
960
- operations: {
961
- filePath: string;
962
- edits: {
963
- replaceAll: boolean;
964
- oldString: string;
965
- newString: string;
966
- }[];
967
- }[];
968
- createBackup: boolean;
969
- }, context?: import("@mastra/core/tools").ToolExecutionContext<any, any> | undefined) => Promise<{
970
- message: string;
971
- success: boolean;
972
- results: {
973
- errors: string[];
974
- filePath: string;
975
- editsApplied: number;
976
- backup?: string | undefined;
977
- }[];
978
- } & {
979
- error?: never;
980
- }>;
981
- };
982
- replaceLines: import("@mastra/core/tools").Tool<z.ZodObject<{
983
- filePath: z.ZodString;
984
- startLine: z.ZodNumber;
985
- endLine: z.ZodNumber;
986
- newContent: z.ZodString;
987
- createBackup: z.ZodDefault<z.ZodBoolean>;
988
- }, "strip", z.ZodTypeAny, {
989
- filePath: string;
990
- startLine: number;
991
- endLine: number;
992
- createBackup: boolean;
993
- newContent: string;
994
- }, {
117
+ message: string;
118
+ }, unknown, unknown, import("@mastra/core/tools").ToolExecutionContext<unknown, unknown>, "multi-edit">;
119
+ replaceLines: import("@mastra/core/tools").Tool<{
995
120
  filePath: string;
996
121
  startLine: number;
997
122
  endLine: number;
998
123
  newContent: string;
999
124
  createBackup?: boolean | undefined;
1000
- }>, z.ZodObject<{
1001
- success: z.ZodBoolean;
1002
- message: z.ZodString;
1003
- linesReplaced: z.ZodOptional<z.ZodNumber>;
1004
- backup: z.ZodOptional<z.ZodString>;
1005
- errorMessage: z.ZodOptional<z.ZodString>;
1006
- }, "strip", z.ZodTypeAny, {
1007
- message: string;
1008
- success: boolean;
1009
- errorMessage?: string | undefined;
1010
- backup?: string | undefined;
1011
- linesReplaced?: number | undefined;
1012
125
  }, {
1013
126
  message: string;
1014
127
  success: boolean;
1015
128
  errorMessage?: string | undefined;
1016
129
  backup?: string | undefined;
1017
130
  linesReplaced?: number | undefined;
1018
- }>, any, any, import("@mastra/core/tools").ToolExecutionContext<any, any>, "replace-lines"> & {
1019
- inputSchema: z.ZodObject<{
1020
- filePath: z.ZodString;
1021
- startLine: z.ZodNumber;
1022
- endLine: z.ZodNumber;
1023
- newContent: z.ZodString;
1024
- createBackup: z.ZodDefault<z.ZodBoolean>;
1025
- }, "strip", z.ZodTypeAny, {
1026
- filePath: string;
1027
- startLine: number;
1028
- endLine: number;
1029
- createBackup: boolean;
1030
- newContent: string;
1031
- }, {
1032
- filePath: string;
1033
- startLine: number;
1034
- endLine: number;
1035
- newContent: string;
1036
- createBackup?: boolean | undefined;
1037
- }>;
1038
- outputSchema: z.ZodObject<{
1039
- success: z.ZodBoolean;
1040
- message: z.ZodString;
1041
- linesReplaced: z.ZodOptional<z.ZodNumber>;
1042
- backup: z.ZodOptional<z.ZodString>;
1043
- errorMessage: z.ZodOptional<z.ZodString>;
1044
- }, "strip", z.ZodTypeAny, {
1045
- message: string;
1046
- success: boolean;
1047
- errorMessage?: string | undefined;
1048
- backup?: string | undefined;
1049
- linesReplaced?: number | undefined;
1050
- }, {
1051
- message: string;
1052
- success: boolean;
1053
- errorMessage?: string | undefined;
1054
- backup?: string | undefined;
1055
- linesReplaced?: number | undefined;
1056
- }>;
1057
- execute: (inputData: {
1058
- filePath: string;
1059
- startLine: number;
1060
- endLine: number;
1061
- createBackup: boolean;
1062
- newContent: string;
1063
- }, context?: import("@mastra/core/tools").ToolExecutionContext<any, any> | undefined) => Promise<{
1064
- message: string;
1065
- success: boolean;
1066
- errorMessage?: string | undefined;
1067
- backup?: string | undefined;
1068
- linesReplaced?: number | undefined;
1069
- } & {
1070
- error?: never;
1071
- }>;
1072
- };
1073
- showFileLines: import("@mastra/core/tools").Tool<z.ZodObject<{
1074
- filePath: z.ZodString;
1075
- startLine: z.ZodOptional<z.ZodNumber>;
1076
- endLine: z.ZodOptional<z.ZodNumber>;
1077
- context: z.ZodDefault<z.ZodNumber>;
1078
- }, "strip", z.ZodTypeAny, {
1079
- filePath: string;
1080
- context: number;
1081
- startLine?: number | undefined;
1082
- endLine?: number | undefined;
1083
- }, {
131
+ }, unknown, unknown, import("@mastra/core/tools").ToolExecutionContext<unknown, unknown>, "replace-lines">;
132
+ showFileLines: import("@mastra/core/tools").Tool<{
1084
133
  filePath: string;
1085
134
  startLine?: number | undefined;
1086
135
  endLine?: number | undefined;
1087
136
  context?: number | undefined;
1088
- }>, z.ZodObject<{
1089
- success: z.ZodBoolean;
1090
- lines: z.ZodArray<z.ZodObject<{
1091
- lineNumber: z.ZodNumber;
1092
- content: z.ZodString;
1093
- isTarget: z.ZodBoolean;
1094
- }, "strip", z.ZodTypeAny, {
1095
- content: string;
1096
- lineNumber: number;
1097
- isTarget: boolean;
1098
- }, {
1099
- content: string;
1100
- lineNumber: number;
1101
- isTarget: boolean;
1102
- }>, "many">;
1103
- totalLines: z.ZodNumber;
1104
- message: z.ZodString;
1105
- errorMessage: z.ZodOptional<z.ZodString>;
1106
- }, "strip", z.ZodTypeAny, {
1107
- message: string;
1108
- success: boolean;
1109
- lines: {
1110
- content: string;
1111
- lineNumber: number;
1112
- isTarget: boolean;
1113
- }[];
1114
- totalLines: number;
1115
- errorMessage?: string | undefined;
1116
137
  }, {
1117
138
  message: string;
1118
139
  success: boolean;
@@ -1123,128 +144,8 @@ export declare class AgentBuilderDefaults {
1123
144
  }[];
1124
145
  totalLines: number;
1125
146
  errorMessage?: string | undefined;
1126
- }>, any, any, import("@mastra/core/tools").ToolExecutionContext<any, any>, "show-file-lines"> & {
1127
- inputSchema: z.ZodObject<{
1128
- filePath: z.ZodString;
1129
- startLine: z.ZodOptional<z.ZodNumber>;
1130
- endLine: z.ZodOptional<z.ZodNumber>;
1131
- context: z.ZodDefault<z.ZodNumber>;
1132
- }, "strip", z.ZodTypeAny, {
1133
- filePath: string;
1134
- context: number;
1135
- startLine?: number | undefined;
1136
- endLine?: number | undefined;
1137
- }, {
1138
- filePath: string;
1139
- startLine?: number | undefined;
1140
- endLine?: number | undefined;
1141
- context?: number | undefined;
1142
- }>;
1143
- outputSchema: z.ZodObject<{
1144
- success: z.ZodBoolean;
1145
- lines: z.ZodArray<z.ZodObject<{
1146
- lineNumber: z.ZodNumber;
1147
- content: z.ZodString;
1148
- isTarget: z.ZodBoolean;
1149
- }, "strip", z.ZodTypeAny, {
1150
- content: string;
1151
- lineNumber: number;
1152
- isTarget: boolean;
1153
- }, {
1154
- content: string;
1155
- lineNumber: number;
1156
- isTarget: boolean;
1157
- }>, "many">;
1158
- totalLines: z.ZodNumber;
1159
- message: z.ZodString;
1160
- errorMessage: z.ZodOptional<z.ZodString>;
1161
- }, "strip", z.ZodTypeAny, {
1162
- message: string;
1163
- success: boolean;
1164
- lines: {
1165
- content: string;
1166
- lineNumber: number;
1167
- isTarget: boolean;
1168
- }[];
1169
- totalLines: number;
1170
- errorMessage?: string | undefined;
1171
- }, {
1172
- message: string;
1173
- success: boolean;
1174
- lines: {
1175
- content: string;
1176
- lineNumber: number;
1177
- isTarget: boolean;
1178
- }[];
1179
- totalLines: number;
1180
- errorMessage?: string | undefined;
1181
- }>;
1182
- execute: (inputData: {
1183
- filePath: string;
1184
- context: number;
1185
- startLine?: number | undefined;
1186
- endLine?: number | undefined;
1187
- }, context?: import("@mastra/core/tools").ToolExecutionContext<any, any> | undefined) => Promise<{
1188
- message: string;
1189
- success: boolean;
1190
- lines: {
1191
- content: string;
1192
- lineNumber: number;
1193
- isTarget: boolean;
1194
- }[];
1195
- totalLines: number;
1196
- errorMessage?: string | undefined;
1197
- } & {
1198
- error?: never;
1199
- }>;
1200
- };
1201
- smartSearch: import("@mastra/core/tools").Tool<z.ZodObject<{
1202
- query: z.ZodString;
1203
- type: z.ZodDefault<z.ZodEnum<["text", "regex", "fuzzy", "semantic"]>>;
1204
- scope: z.ZodOptional<z.ZodObject<{
1205
- paths: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
1206
- fileTypes: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
1207
- excludePaths: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
1208
- maxResults: z.ZodDefault<z.ZodNumber>;
1209
- }, "strip", z.ZodTypeAny, {
1210
- maxResults: number;
1211
- paths?: string[] | undefined;
1212
- fileTypes?: string[] | undefined;
1213
- excludePaths?: string[] | undefined;
1214
- }, {
1215
- paths?: string[] | undefined;
1216
- fileTypes?: string[] | undefined;
1217
- excludePaths?: string[] | undefined;
1218
- maxResults?: number | undefined;
1219
- }>>;
1220
- context: z.ZodOptional<z.ZodObject<{
1221
- beforeLines: z.ZodDefault<z.ZodNumber>;
1222
- afterLines: z.ZodDefault<z.ZodNumber>;
1223
- includeDefinitions: z.ZodDefault<z.ZodBoolean>;
1224
- }, "strip", z.ZodTypeAny, {
1225
- beforeLines: number;
1226
- afterLines: number;
1227
- includeDefinitions: boolean;
1228
- }, {
1229
- beforeLines?: number | undefined;
1230
- afterLines?: number | undefined;
1231
- includeDefinitions?: boolean | undefined;
1232
- }>>;
1233
- }, "strip", z.ZodTypeAny, {
1234
- type: "text" | "regex" | "fuzzy" | "semantic";
1235
- query: string;
1236
- context?: {
1237
- beforeLines: number;
1238
- afterLines: number;
1239
- includeDefinitions: boolean;
1240
- } | undefined;
1241
- scope?: {
1242
- maxResults: number;
1243
- paths?: string[] | undefined;
1244
- fileTypes?: string[] | undefined;
1245
- excludePaths?: string[] | undefined;
1246
- } | undefined;
1247
- }, {
147
+ }, unknown, unknown, import("@mastra/core/tools").ToolExecutionContext<unknown, unknown>, "show-file-lines">;
148
+ smartSearch: import("@mastra/core/tools").Tool<{
1248
149
  query: string;
1249
150
  type?: "text" | "regex" | "fuzzy" | "semantic" | undefined;
1250
151
  context?: {
@@ -1258,363 +159,39 @@ export declare class AgentBuilderDefaults {
1258
159
  excludePaths?: string[] | undefined;
1259
160
  maxResults?: number | undefined;
1260
161
  } | undefined;
1261
- }>, z.ZodObject<{
1262
- success: z.ZodBoolean;
1263
- matches: z.ZodArray<z.ZodObject<{
1264
- file: z.ZodString;
1265
- line: z.ZodNumber;
1266
- column: z.ZodOptional<z.ZodNumber>;
1267
- match: z.ZodString;
1268
- context: z.ZodObject<{
1269
- before: z.ZodArray<z.ZodString, "many">;
1270
- after: z.ZodArray<z.ZodString, "many">;
1271
- }, "strip", z.ZodTypeAny, {
1272
- before: string[];
1273
- after: string[];
1274
- }, {
1275
- before: string[];
1276
- after: string[];
1277
- }>;
1278
- relevance: z.ZodOptional<z.ZodNumber>;
1279
- }, "strip", z.ZodTypeAny, {
1280
- file: string;
1281
- match: string;
1282
- context: {
1283
- before: string[];
1284
- after: string[];
1285
- };
1286
- line: number;
1287
- column?: number | undefined;
1288
- relevance?: number | undefined;
1289
- }, {
1290
- file: string;
1291
- match: string;
1292
- context: {
1293
- before: string[];
1294
- after: string[];
1295
- };
1296
- line: number;
1297
- column?: number | undefined;
1298
- relevance?: number | undefined;
1299
- }>, "many">;
1300
- summary: z.ZodObject<{
1301
- totalMatches: z.ZodNumber;
1302
- filesSearched: z.ZodNumber;
1303
- patterns: z.ZodArray<z.ZodString, "many">;
1304
- }, "strip", z.ZodTypeAny, {
1305
- totalMatches: number;
1306
- filesSearched: number;
1307
- patterns: string[];
1308
- }, {
1309
- totalMatches: number;
1310
- filesSearched: number;
1311
- patterns: string[];
1312
- }>;
1313
- }, "strip", z.ZodTypeAny, {
1314
- success: boolean;
1315
- matches: {
1316
- file: string;
1317
- match: string;
1318
- context: {
1319
- before: string[];
1320
- after: string[];
1321
- };
1322
- line: number;
1323
- column?: number | undefined;
1324
- relevance?: number | undefined;
1325
- }[];
1326
- summary: {
1327
- totalMatches: number;
1328
- filesSearched: number;
1329
- patterns: string[];
1330
- };
1331
162
  }, {
1332
163
  success: boolean;
1333
164
  matches: {
1334
165
  file: string;
166
+ line: number;
167
+ column?: number;
1335
168
  match: string;
1336
169
  context: {
1337
170
  before: string[];
1338
171
  after: string[];
1339
172
  };
1340
- line: number;
1341
- column?: number | undefined;
1342
- relevance?: number | undefined;
173
+ relevance?: number;
1343
174
  }[];
1344
175
  summary: {
1345
176
  totalMatches: number;
1346
177
  filesSearched: number;
1347
178
  patterns: string[];
1348
179
  };
1349
- }>, any, any, import("@mastra/core/tools").ToolExecutionContext<any, any>, "smart-search"> & {
1350
- inputSchema: z.ZodObject<{
1351
- query: z.ZodString;
1352
- type: z.ZodDefault<z.ZodEnum<["text", "regex", "fuzzy", "semantic"]>>;
1353
- scope: z.ZodOptional<z.ZodObject<{
1354
- paths: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
1355
- fileTypes: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
1356
- excludePaths: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
1357
- maxResults: z.ZodDefault<z.ZodNumber>;
1358
- }, "strip", z.ZodTypeAny, {
1359
- maxResults: number;
1360
- paths?: string[] | undefined;
1361
- fileTypes?: string[] | undefined;
1362
- excludePaths?: string[] | undefined;
1363
- }, {
1364
- paths?: string[] | undefined;
1365
- fileTypes?: string[] | undefined;
1366
- excludePaths?: string[] | undefined;
1367
- maxResults?: number | undefined;
1368
- }>>;
1369
- context: z.ZodOptional<z.ZodObject<{
1370
- beforeLines: z.ZodDefault<z.ZodNumber>;
1371
- afterLines: z.ZodDefault<z.ZodNumber>;
1372
- includeDefinitions: z.ZodDefault<z.ZodBoolean>;
1373
- }, "strip", z.ZodTypeAny, {
1374
- beforeLines: number;
1375
- afterLines: number;
1376
- includeDefinitions: boolean;
1377
- }, {
1378
- beforeLines?: number | undefined;
1379
- afterLines?: number | undefined;
1380
- includeDefinitions?: boolean | undefined;
1381
- }>>;
1382
- }, "strip", z.ZodTypeAny, {
1383
- type: "text" | "regex" | "fuzzy" | "semantic";
1384
- query: string;
1385
- context?: {
1386
- beforeLines: number;
1387
- afterLines: number;
1388
- includeDefinitions: boolean;
1389
- } | undefined;
1390
- scope?: {
1391
- maxResults: number;
1392
- paths?: string[] | undefined;
1393
- fileTypes?: string[] | undefined;
1394
- excludePaths?: string[] | undefined;
1395
- } | undefined;
1396
- }, {
1397
- query: string;
1398
- type?: "text" | "regex" | "fuzzy" | "semantic" | undefined;
1399
- context?: {
1400
- beforeLines?: number | undefined;
1401
- afterLines?: number | undefined;
1402
- includeDefinitions?: boolean | undefined;
1403
- } | undefined;
1404
- scope?: {
1405
- paths?: string[] | undefined;
1406
- fileTypes?: string[] | undefined;
1407
- excludePaths?: string[] | undefined;
1408
- maxResults?: number | undefined;
1409
- } | undefined;
1410
- }>;
1411
- outputSchema: z.ZodObject<{
1412
- success: z.ZodBoolean;
1413
- matches: z.ZodArray<z.ZodObject<{
1414
- file: z.ZodString;
1415
- line: z.ZodNumber;
1416
- column: z.ZodOptional<z.ZodNumber>;
1417
- match: z.ZodString;
1418
- context: z.ZodObject<{
1419
- before: z.ZodArray<z.ZodString, "many">;
1420
- after: z.ZodArray<z.ZodString, "many">;
1421
- }, "strip", z.ZodTypeAny, {
1422
- before: string[];
1423
- after: string[];
1424
- }, {
1425
- before: string[];
1426
- after: string[];
1427
- }>;
1428
- relevance: z.ZodOptional<z.ZodNumber>;
1429
- }, "strip", z.ZodTypeAny, {
1430
- file: string;
1431
- match: string;
1432
- context: {
1433
- before: string[];
1434
- after: string[];
1435
- };
1436
- line: number;
1437
- column?: number | undefined;
1438
- relevance?: number | undefined;
1439
- }, {
1440
- file: string;
1441
- match: string;
1442
- context: {
1443
- before: string[];
1444
- after: string[];
1445
- };
1446
- line: number;
1447
- column?: number | undefined;
1448
- relevance?: number | undefined;
1449
- }>, "many">;
1450
- summary: z.ZodObject<{
1451
- totalMatches: z.ZodNumber;
1452
- filesSearched: z.ZodNumber;
1453
- patterns: z.ZodArray<z.ZodString, "many">;
1454
- }, "strip", z.ZodTypeAny, {
1455
- totalMatches: number;
1456
- filesSearched: number;
1457
- patterns: string[];
1458
- }, {
1459
- totalMatches: number;
1460
- filesSearched: number;
1461
- patterns: string[];
1462
- }>;
1463
- }, "strip", z.ZodTypeAny, {
1464
- success: boolean;
1465
- matches: {
1466
- file: string;
1467
- match: string;
1468
- context: {
1469
- before: string[];
1470
- after: string[];
1471
- };
1472
- line: number;
1473
- column?: number | undefined;
1474
- relevance?: number | undefined;
1475
- }[];
1476
- summary: {
1477
- totalMatches: number;
1478
- filesSearched: number;
1479
- patterns: string[];
1480
- };
1481
- }, {
1482
- success: boolean;
1483
- matches: {
1484
- file: string;
1485
- match: string;
1486
- context: {
1487
- before: string[];
1488
- after: string[];
1489
- };
1490
- line: number;
1491
- column?: number | undefined;
1492
- relevance?: number | undefined;
1493
- }[];
1494
- summary: {
1495
- totalMatches: number;
1496
- filesSearched: number;
1497
- patterns: string[];
1498
- };
1499
- }>;
1500
- execute: (inputData: {
1501
- type: "text" | "regex" | "fuzzy" | "semantic";
1502
- query: string;
1503
- context?: {
1504
- beforeLines: number;
1505
- afterLines: number;
1506
- includeDefinitions: boolean;
1507
- } | undefined;
1508
- scope?: {
1509
- maxResults: number;
1510
- paths?: string[] | undefined;
1511
- fileTypes?: string[] | undefined;
1512
- excludePaths?: string[] | undefined;
1513
- } | undefined;
1514
- }, context?: import("@mastra/core/tools").ToolExecutionContext<any, any> | undefined) => Promise<{
1515
- success: boolean;
1516
- matches: {
1517
- file: string;
1518
- match: string;
1519
- context: {
1520
- before: string[];
1521
- after: string[];
1522
- };
1523
- line: number;
1524
- column?: number | undefined;
1525
- relevance?: number | undefined;
1526
- }[];
1527
- summary: {
1528
- totalMatches: number;
1529
- filesSearched: number;
1530
- patterns: string[];
1531
- };
1532
- } & {
1533
- error?: never;
1534
- }>;
1535
- };
1536
- validateCode: import("@mastra/core/tools").Tool<z.ZodObject<{
1537
- projectPath: z.ZodOptional<z.ZodString>;
1538
- validationType: z.ZodArray<z.ZodEnum<["types", "lint", "schemas", "tests", "build"]>, "many">;
1539
- files: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
1540
- }, "strip", z.ZodTypeAny, {
180
+ }, unknown, unknown, import("@mastra/core/tools").ToolExecutionContext<unknown, unknown>, "smart-search">;
181
+ validateCode: import("@mastra/core/tools").Tool<{
1541
182
  validationType: ("types" | "schemas" | "tests" | "lint" | "build")[];
1542
183
  projectPath?: string | undefined;
1543
184
  files?: string[] | undefined;
1544
185
  }, {
1545
- validationType: ("types" | "schemas" | "tests" | "lint" | "build")[];
1546
- projectPath?: string | undefined;
1547
- files?: string[] | undefined;
1548
- }>, z.ZodObject<{
1549
- valid: z.ZodBoolean;
1550
- errors: z.ZodArray<z.ZodObject<{
1551
- type: z.ZodEnum<["typescript", "eslint", "schema", "test", "build"]>;
1552
- severity: z.ZodEnum<["error", "warning", "info"]>;
1553
- message: z.ZodString;
1554
- file: z.ZodOptional<z.ZodString>;
1555
- line: z.ZodOptional<z.ZodNumber>;
1556
- column: z.ZodOptional<z.ZodNumber>;
1557
- code: z.ZodOptional<z.ZodString>;
1558
- }, "strip", z.ZodTypeAny, {
1559
- message: string;
1560
- type: "build" | "typescript" | "eslint" | "schema" | "test";
1561
- severity: "error" | "warning" | "info";
1562
- code?: string | undefined;
1563
- file?: string | undefined;
1564
- line?: number | undefined;
1565
- column?: number | undefined;
1566
- }, {
1567
- message: string;
1568
- type: "build" | "typescript" | "eslint" | "schema" | "test";
1569
- severity: "error" | "warning" | "info";
1570
- code?: string | undefined;
1571
- file?: string | undefined;
1572
- line?: number | undefined;
1573
- column?: number | undefined;
1574
- }>, "many">;
1575
- summary: z.ZodObject<{
1576
- totalErrors: z.ZodNumber;
1577
- totalWarnings: z.ZodNumber;
1578
- validationsPassed: z.ZodArray<z.ZodString, "many">;
1579
- validationsFailed: z.ZodArray<z.ZodString, "many">;
1580
- }, "strip", z.ZodTypeAny, {
1581
- totalErrors: number;
1582
- totalWarnings: number;
1583
- validationsPassed: string[];
1584
- validationsFailed: string[];
1585
- }, {
1586
- totalErrors: number;
1587
- totalWarnings: number;
1588
- validationsPassed: string[];
1589
- validationsFailed: string[];
1590
- }>;
1591
- }, "strip", z.ZodTypeAny, {
1592
186
  valid: boolean;
1593
187
  errors: {
1594
- message: string;
1595
- type: "build" | "typescript" | "eslint" | "schema" | "test";
188
+ type: "typescript" | "eslint" | "schema" | "test" | "build";
1596
189
  severity: "error" | "warning" | "info";
1597
- code?: string | undefined;
1598
- file?: string | undefined;
1599
- line?: number | undefined;
1600
- column?: number | undefined;
1601
- }[];
1602
- summary: {
1603
- totalErrors: number;
1604
- totalWarnings: number;
1605
- validationsPassed: string[];
1606
- validationsFailed: string[];
1607
- };
1608
- }, {
1609
- valid: boolean;
1610
- errors: {
1611
190
  message: string;
1612
- type: "build" | "typescript" | "eslint" | "schema" | "test";
1613
- severity: "error" | "warning" | "info";
1614
- code?: string | undefined;
1615
- file?: string | undefined;
1616
- line?: number | undefined;
1617
- column?: number | undefined;
191
+ file?: string;
192
+ line?: number;
193
+ column?: number;
194
+ code?: string;
1618
195
  }[];
1619
196
  summary: {
1620
197
  totalErrors: number;
@@ -1622,188 +199,14 @@ export declare class AgentBuilderDefaults {
1622
199
  validationsPassed: string[];
1623
200
  validationsFailed: string[];
1624
201
  };
1625
- }>, any, any, import("@mastra/core/tools").ToolExecutionContext<any, any>, "validate-code"> & {
1626
- inputSchema: z.ZodObject<{
1627
- projectPath: z.ZodOptional<z.ZodString>;
1628
- validationType: z.ZodArray<z.ZodEnum<["types", "lint", "schemas", "tests", "build"]>, "many">;
1629
- files: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
1630
- }, "strip", z.ZodTypeAny, {
1631
- validationType: ("types" | "schemas" | "tests" | "lint" | "build")[];
1632
- projectPath?: string | undefined;
1633
- files?: string[] | undefined;
1634
- }, {
1635
- validationType: ("types" | "schemas" | "tests" | "lint" | "build")[];
1636
- projectPath?: string | undefined;
1637
- files?: string[] | undefined;
1638
- }>;
1639
- outputSchema: z.ZodObject<{
1640
- valid: z.ZodBoolean;
1641
- errors: z.ZodArray<z.ZodObject<{
1642
- type: z.ZodEnum<["typescript", "eslint", "schema", "test", "build"]>;
1643
- severity: z.ZodEnum<["error", "warning", "info"]>;
1644
- message: z.ZodString;
1645
- file: z.ZodOptional<z.ZodString>;
1646
- line: z.ZodOptional<z.ZodNumber>;
1647
- column: z.ZodOptional<z.ZodNumber>;
1648
- code: z.ZodOptional<z.ZodString>;
1649
- }, "strip", z.ZodTypeAny, {
1650
- message: string;
1651
- type: "build" | "typescript" | "eslint" | "schema" | "test";
1652
- severity: "error" | "warning" | "info";
1653
- code?: string | undefined;
1654
- file?: string | undefined;
1655
- line?: number | undefined;
1656
- column?: number | undefined;
1657
- }, {
1658
- message: string;
1659
- type: "build" | "typescript" | "eslint" | "schema" | "test";
1660
- severity: "error" | "warning" | "info";
1661
- code?: string | undefined;
1662
- file?: string | undefined;
1663
- line?: number | undefined;
1664
- column?: number | undefined;
1665
- }>, "many">;
1666
- summary: z.ZodObject<{
1667
- totalErrors: z.ZodNumber;
1668
- totalWarnings: z.ZodNumber;
1669
- validationsPassed: z.ZodArray<z.ZodString, "many">;
1670
- validationsFailed: z.ZodArray<z.ZodString, "many">;
1671
- }, "strip", z.ZodTypeAny, {
1672
- totalErrors: number;
1673
- totalWarnings: number;
1674
- validationsPassed: string[];
1675
- validationsFailed: string[];
1676
- }, {
1677
- totalErrors: number;
1678
- totalWarnings: number;
1679
- validationsPassed: string[];
1680
- validationsFailed: string[];
1681
- }>;
1682
- }, "strip", z.ZodTypeAny, {
1683
- valid: boolean;
1684
- errors: {
1685
- message: string;
1686
- type: "build" | "typescript" | "eslint" | "schema" | "test";
1687
- severity: "error" | "warning" | "info";
1688
- code?: string | undefined;
1689
- file?: string | undefined;
1690
- line?: number | undefined;
1691
- column?: number | undefined;
1692
- }[];
1693
- summary: {
1694
- totalErrors: number;
1695
- totalWarnings: number;
1696
- validationsPassed: string[];
1697
- validationsFailed: string[];
1698
- };
1699
- }, {
1700
- valid: boolean;
1701
- errors: {
1702
- message: string;
1703
- type: "build" | "typescript" | "eslint" | "schema" | "test";
1704
- severity: "error" | "warning" | "info";
1705
- code?: string | undefined;
1706
- file?: string | undefined;
1707
- line?: number | undefined;
1708
- column?: number | undefined;
1709
- }[];
1710
- summary: {
1711
- totalErrors: number;
1712
- totalWarnings: number;
1713
- validationsPassed: string[];
1714
- validationsFailed: string[];
1715
- };
1716
- }>;
1717
- execute: (inputData: {
1718
- validationType: ("types" | "schemas" | "tests" | "lint" | "build")[];
1719
- projectPath?: string | undefined;
1720
- files?: string[] | undefined;
1721
- }, context?: import("@mastra/core/tools").ToolExecutionContext<any, any> | undefined) => Promise<{
1722
- valid: boolean;
1723
- errors: {
1724
- message: string;
1725
- type: "build" | "typescript" | "eslint" | "schema" | "test";
1726
- severity: "error" | "warning" | "info";
1727
- code?: string | undefined;
1728
- file?: string | undefined;
1729
- line?: number | undefined;
1730
- column?: number | undefined;
1731
- }[];
1732
- summary: {
1733
- totalErrors: number;
1734
- totalWarnings: number;
1735
- validationsPassed: string[];
1736
- validationsFailed: string[];
1737
- };
1738
- } & {
1739
- error?: never;
1740
- }>;
1741
- };
1742
- webSearch: import("@mastra/core/tools").Tool<z.ZodObject<{
1743
- query: z.ZodString;
1744
- maxResults: z.ZodDefault<z.ZodNumber>;
1745
- region: z.ZodDefault<z.ZodString>;
1746
- language: z.ZodDefault<z.ZodString>;
1747
- includeImages: z.ZodDefault<z.ZodBoolean>;
1748
- dateRange: z.ZodDefault<z.ZodEnum<["day", "week", "month", "year", "all"]>>;
1749
- }, "strip", z.ZodTypeAny, {
1750
- query: string;
1751
- maxResults: number;
1752
- region: string;
1753
- language: string;
1754
- includeImages: boolean;
1755
- dateRange: "day" | "week" | "month" | "year" | "all";
1756
- }, {
202
+ }, unknown, unknown, import("@mastra/core/tools").ToolExecutionContext<unknown, unknown>, "validate-code">;
203
+ webSearch: import("@mastra/core/tools").Tool<{
1757
204
  query: string;
1758
205
  maxResults?: number | undefined;
1759
206
  region?: string | undefined;
1760
207
  language?: string | undefined;
1761
208
  includeImages?: boolean | undefined;
1762
209
  dateRange?: "day" | "week" | "month" | "year" | "all" | undefined;
1763
- }>, z.ZodObject<{
1764
- success: z.ZodBoolean;
1765
- query: z.ZodString;
1766
- results: z.ZodArray<z.ZodObject<{
1767
- title: z.ZodString;
1768
- url: z.ZodString;
1769
- snippet: z.ZodString;
1770
- domain: z.ZodString;
1771
- publishDate: z.ZodOptional<z.ZodString>;
1772
- relevanceScore: z.ZodOptional<z.ZodNumber>;
1773
- }, "strip", z.ZodTypeAny, {
1774
- url: string;
1775
- title: string;
1776
- snippet: string;
1777
- domain: string;
1778
- publishDate?: string | undefined;
1779
- relevanceScore?: number | undefined;
1780
- }, {
1781
- url: string;
1782
- title: string;
1783
- snippet: string;
1784
- domain: string;
1785
- publishDate?: string | undefined;
1786
- relevanceScore?: number | undefined;
1787
- }>, "many">;
1788
- totalResults: z.ZodNumber;
1789
- searchTime: z.ZodNumber;
1790
- suggestions: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
1791
- errorMessage: z.ZodOptional<z.ZodString>;
1792
- }, "strip", z.ZodTypeAny, {
1793
- success: boolean;
1794
- results: {
1795
- url: string;
1796
- title: string;
1797
- snippet: string;
1798
- domain: string;
1799
- publishDate?: string | undefined;
1800
- relevanceScore?: number | undefined;
1801
- }[];
1802
- query: string;
1803
- totalResults: number;
1804
- searchTime: number;
1805
- errorMessage?: string | undefined;
1806
- suggestions?: string[] | undefined;
1807
210
  }, {
1808
211
  success: boolean;
1809
212
  results: {
@@ -1819,158 +222,8 @@ export declare class AgentBuilderDefaults {
1819
222
  searchTime: number;
1820
223
  errorMessage?: string | undefined;
1821
224
  suggestions?: string[] | undefined;
1822
- }>, any, any, import("@mastra/core/tools").ToolExecutionContext<any, any>, "web-search"> & {
1823
- inputSchema: z.ZodObject<{
1824
- query: z.ZodString;
1825
- maxResults: z.ZodDefault<z.ZodNumber>;
1826
- region: z.ZodDefault<z.ZodString>;
1827
- language: z.ZodDefault<z.ZodString>;
1828
- includeImages: z.ZodDefault<z.ZodBoolean>;
1829
- dateRange: z.ZodDefault<z.ZodEnum<["day", "week", "month", "year", "all"]>>;
1830
- }, "strip", z.ZodTypeAny, {
1831
- query: string;
1832
- maxResults: number;
1833
- region: string;
1834
- language: string;
1835
- includeImages: boolean;
1836
- dateRange: "day" | "week" | "month" | "year" | "all";
1837
- }, {
1838
- query: string;
1839
- maxResults?: number | undefined;
1840
- region?: string | undefined;
1841
- language?: string | undefined;
1842
- includeImages?: boolean | undefined;
1843
- dateRange?: "day" | "week" | "month" | "year" | "all" | undefined;
1844
- }>;
1845
- outputSchema: z.ZodObject<{
1846
- success: z.ZodBoolean;
1847
- query: z.ZodString;
1848
- results: z.ZodArray<z.ZodObject<{
1849
- title: z.ZodString;
1850
- url: z.ZodString;
1851
- snippet: z.ZodString;
1852
- domain: z.ZodString;
1853
- publishDate: z.ZodOptional<z.ZodString>;
1854
- relevanceScore: z.ZodOptional<z.ZodNumber>;
1855
- }, "strip", z.ZodTypeAny, {
1856
- url: string;
1857
- title: string;
1858
- snippet: string;
1859
- domain: string;
1860
- publishDate?: string | undefined;
1861
- relevanceScore?: number | undefined;
1862
- }, {
1863
- url: string;
1864
- title: string;
1865
- snippet: string;
1866
- domain: string;
1867
- publishDate?: string | undefined;
1868
- relevanceScore?: number | undefined;
1869
- }>, "many">;
1870
- totalResults: z.ZodNumber;
1871
- searchTime: z.ZodNumber;
1872
- suggestions: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
1873
- errorMessage: z.ZodOptional<z.ZodString>;
1874
- }, "strip", z.ZodTypeAny, {
1875
- success: boolean;
1876
- results: {
1877
- url: string;
1878
- title: string;
1879
- snippet: string;
1880
- domain: string;
1881
- publishDate?: string | undefined;
1882
- relevanceScore?: number | undefined;
1883
- }[];
1884
- query: string;
1885
- totalResults: number;
1886
- searchTime: number;
1887
- errorMessage?: string | undefined;
1888
- suggestions?: string[] | undefined;
1889
- }, {
1890
- success: boolean;
1891
- results: {
1892
- url: string;
1893
- title: string;
1894
- snippet: string;
1895
- domain: string;
1896
- publishDate?: string | undefined;
1897
- relevanceScore?: number | undefined;
1898
- }[];
1899
- query: string;
1900
- totalResults: number;
1901
- searchTime: number;
1902
- errorMessage?: string | undefined;
1903
- suggestions?: string[] | undefined;
1904
- }>;
1905
- execute: (inputData: {
1906
- query: string;
1907
- maxResults: number;
1908
- region: string;
1909
- language: string;
1910
- includeImages: boolean;
1911
- dateRange: "day" | "week" | "month" | "year" | "all";
1912
- }, context?: import("@mastra/core/tools").ToolExecutionContext<any, any> | undefined) => Promise<{
1913
- success: boolean;
1914
- results: {
1915
- url: string;
1916
- title: string;
1917
- snippet: string;
1918
- domain: string;
1919
- publishDate?: string | undefined;
1920
- relevanceScore?: number | undefined;
1921
- }[];
1922
- query: string;
1923
- totalResults: number;
1924
- searchTime: number;
1925
- errorMessage?: string | undefined;
1926
- suggestions?: string[] | undefined;
1927
- } & {
1928
- error?: never;
1929
- }>;
1930
- };
1931
- attemptCompletion: import("@mastra/core/tools").Tool<z.ZodObject<{
1932
- summary: z.ZodString;
1933
- changes: z.ZodArray<z.ZodObject<{
1934
- type: z.ZodEnum<["file_created", "file_modified", "file_deleted", "command_executed", "dependency_added"]>;
1935
- description: z.ZodString;
1936
- path: z.ZodOptional<z.ZodString>;
1937
- }, "strip", z.ZodTypeAny, {
1938
- type: "file_created" | "file_modified" | "file_deleted" | "command_executed" | "dependency_added";
1939
- description: string;
1940
- path?: string | undefined;
1941
- }, {
1942
- type: "file_created" | "file_modified" | "file_deleted" | "command_executed" | "dependency_added";
1943
- description: string;
1944
- path?: string | undefined;
1945
- }>, "many">;
1946
- validation: z.ZodObject<{
1947
- testsRun: z.ZodDefault<z.ZodBoolean>;
1948
- buildsSuccessfully: z.ZodDefault<z.ZodBoolean>;
1949
- manualTestingRequired: z.ZodDefault<z.ZodBoolean>;
1950
- }, "strip", z.ZodTypeAny, {
1951
- testsRun: boolean;
1952
- buildsSuccessfully: boolean;
1953
- manualTestingRequired: boolean;
1954
- }, {
1955
- testsRun?: boolean | undefined;
1956
- buildsSuccessfully?: boolean | undefined;
1957
- manualTestingRequired?: boolean | undefined;
1958
- }>;
1959
- nextSteps: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
1960
- }, "strip", z.ZodTypeAny, {
1961
- validation: {
1962
- testsRun: boolean;
1963
- buildsSuccessfully: boolean;
1964
- manualTestingRequired: boolean;
1965
- };
1966
- summary: string;
1967
- changes: {
1968
- type: "file_created" | "file_modified" | "file_deleted" | "command_executed" | "dependency_added";
1969
- description: string;
1970
- path?: string | undefined;
1971
- }[];
1972
- nextSteps?: string[] | undefined;
1973
- }, {
225
+ }, unknown, unknown, import("@mastra/core/tools").ToolExecutionContext<unknown, unknown>, "web-search">;
226
+ attemptCompletion: import("@mastra/core/tools").Tool<{
1974
227
  validation: {
1975
228
  testsRun?: boolean | undefined;
1976
229
  buildsSuccessfully?: boolean | undefined;
@@ -1983,130 +236,13 @@ export declare class AgentBuilderDefaults {
1983
236
  path?: string | undefined;
1984
237
  }[];
1985
238
  nextSteps?: string[] | undefined;
1986
- }>, z.ZodObject<{
1987
- completionId: z.ZodString;
1988
- status: z.ZodEnum<["completed", "needs_review", "needs_testing"]>;
1989
- summary: z.ZodString;
1990
- confidence: z.ZodNumber;
1991
- }, "strip", z.ZodTypeAny, {
1992
- status: "completed" | "needs_review" | "needs_testing";
1993
- summary: string;
1994
- completionId: string;
1995
- confidence: number;
1996
239
  }, {
240
+ completionId: string;
1997
241
  status: "completed" | "needs_review" | "needs_testing";
1998
242
  summary: string;
1999
- completionId: string;
2000
243
  confidence: number;
2001
- }>, any, any, import("@mastra/core/tools").ToolExecutionContext<any, any>, "attempt-completion"> & {
2002
- inputSchema: z.ZodObject<{
2003
- summary: z.ZodString;
2004
- changes: z.ZodArray<z.ZodObject<{
2005
- type: z.ZodEnum<["file_created", "file_modified", "file_deleted", "command_executed", "dependency_added"]>;
2006
- description: z.ZodString;
2007
- path: z.ZodOptional<z.ZodString>;
2008
- }, "strip", z.ZodTypeAny, {
2009
- type: "file_created" | "file_modified" | "file_deleted" | "command_executed" | "dependency_added";
2010
- description: string;
2011
- path?: string | undefined;
2012
- }, {
2013
- type: "file_created" | "file_modified" | "file_deleted" | "command_executed" | "dependency_added";
2014
- description: string;
2015
- path?: string | undefined;
2016
- }>, "many">;
2017
- validation: z.ZodObject<{
2018
- testsRun: z.ZodDefault<z.ZodBoolean>;
2019
- buildsSuccessfully: z.ZodDefault<z.ZodBoolean>;
2020
- manualTestingRequired: z.ZodDefault<z.ZodBoolean>;
2021
- }, "strip", z.ZodTypeAny, {
2022
- testsRun: boolean;
2023
- buildsSuccessfully: boolean;
2024
- manualTestingRequired: boolean;
2025
- }, {
2026
- testsRun?: boolean | undefined;
2027
- buildsSuccessfully?: boolean | undefined;
2028
- manualTestingRequired?: boolean | undefined;
2029
- }>;
2030
- nextSteps: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
2031
- }, "strip", z.ZodTypeAny, {
2032
- validation: {
2033
- testsRun: boolean;
2034
- buildsSuccessfully: boolean;
2035
- manualTestingRequired: boolean;
2036
- };
2037
- summary: string;
2038
- changes: {
2039
- type: "file_created" | "file_modified" | "file_deleted" | "command_executed" | "dependency_added";
2040
- description: string;
2041
- path?: string | undefined;
2042
- }[];
2043
- nextSteps?: string[] | undefined;
2044
- }, {
2045
- validation: {
2046
- testsRun?: boolean | undefined;
2047
- buildsSuccessfully?: boolean | undefined;
2048
- manualTestingRequired?: boolean | undefined;
2049
- };
2050
- summary: string;
2051
- changes: {
2052
- type: "file_created" | "file_modified" | "file_deleted" | "command_executed" | "dependency_added";
2053
- description: string;
2054
- path?: string | undefined;
2055
- }[];
2056
- nextSteps?: string[] | undefined;
2057
- }>;
2058
- outputSchema: z.ZodObject<{
2059
- completionId: z.ZodString;
2060
- status: z.ZodEnum<["completed", "needs_review", "needs_testing"]>;
2061
- summary: z.ZodString;
2062
- confidence: z.ZodNumber;
2063
- }, "strip", z.ZodTypeAny, {
2064
- status: "completed" | "needs_review" | "needs_testing";
2065
- summary: string;
2066
- completionId: string;
2067
- confidence: number;
2068
- }, {
2069
- status: "completed" | "needs_review" | "needs_testing";
2070
- summary: string;
2071
- completionId: string;
2072
- confidence: number;
2073
- }>;
2074
- execute: (inputData: {
2075
- validation: {
2076
- testsRun: boolean;
2077
- buildsSuccessfully: boolean;
2078
- manualTestingRequired: boolean;
2079
- };
2080
- summary: string;
2081
- changes: {
2082
- type: "file_created" | "file_modified" | "file_deleted" | "command_executed" | "dependency_added";
2083
- description: string;
2084
- path?: string | undefined;
2085
- }[];
2086
- nextSteps?: string[] | undefined;
2087
- }, context?: import("@mastra/core/tools").ToolExecutionContext<any, any> | undefined) => Promise<{
2088
- status: "completed" | "needs_review" | "needs_testing";
2089
- summary: string;
2090
- completionId: string;
2091
- confidence: number;
2092
- } & {
2093
- error?: never;
2094
- }>;
2095
- };
2096
- manageProject: import("@mastra/core/tools").Tool<z.ZodObject<{
2097
- action: z.ZodEnum<["create", "install", "upgrade"]>;
2098
- features: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
2099
- packages: z.ZodOptional<z.ZodArray<z.ZodObject<{
2100
- name: z.ZodString;
2101
- version: z.ZodOptional<z.ZodString>;
2102
- }, "strip", z.ZodTypeAny, {
2103
- name: string;
2104
- version?: string | undefined;
2105
- }, {
2106
- name: string;
2107
- version?: string | undefined;
2108
- }>, "many">>;
2109
- }, "strip", z.ZodTypeAny, {
244
+ }, unknown, unknown, import("@mastra/core/tools").ToolExecutionContext<unknown, unknown>, "attempt-completion">;
245
+ manageProject: import("@mastra/core/tools").Tool<{
2110
246
  action: "create" | "install" | "upgrade";
2111
247
  features?: string[] | undefined;
2112
248
  packages?: {
@@ -2114,21 +250,6 @@ export declare class AgentBuilderDefaults {
2114
250
  version?: string | undefined;
2115
251
  }[] | undefined;
2116
252
  }, {
2117
- action: "create" | "install" | "upgrade";
2118
- features?: string[] | undefined;
2119
- packages?: {
2120
- name: string;
2121
- version?: string | undefined;
2122
- }[] | undefined;
2123
- }>, z.ZodObject<{
2124
- success: z.ZodBoolean;
2125
- installed: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
2126
- upgraded: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
2127
- warnings: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
2128
- message: z.ZodOptional<z.ZodString>;
2129
- details: z.ZodOptional<z.ZodString>;
2130
- errorMessage: z.ZodOptional<z.ZodString>;
2131
- }, "strip", z.ZodTypeAny, {
2132
253
  success: boolean;
2133
254
  message?: string | undefined;
2134
255
  errorMessage?: string | undefined;
@@ -2136,217 +257,18 @@ export declare class AgentBuilderDefaults {
2136
257
  upgraded?: string[] | undefined;
2137
258
  warnings?: string[] | undefined;
2138
259
  details?: string | undefined;
2139
- }, {
2140
- success: boolean;
2141
- message?: string | undefined;
2142
- errorMessage?: string | undefined;
2143
- installed?: string[] | undefined;
2144
- upgraded?: string[] | undefined;
2145
- warnings?: string[] | undefined;
2146
- details?: string | undefined;
2147
- }>, any, any, import("@mastra/core/tools").ToolExecutionContext<any, any>, "manage-project"> & {
2148
- inputSchema: z.ZodObject<{
2149
- action: z.ZodEnum<["create", "install", "upgrade"]>;
2150
- features: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
2151
- packages: z.ZodOptional<z.ZodArray<z.ZodObject<{
2152
- name: z.ZodString;
2153
- version: z.ZodOptional<z.ZodString>;
2154
- }, "strip", z.ZodTypeAny, {
2155
- name: string;
2156
- version?: string | undefined;
2157
- }, {
2158
- name: string;
2159
- version?: string | undefined;
2160
- }>, "many">>;
2161
- }, "strip", z.ZodTypeAny, {
2162
- action: "create" | "install" | "upgrade";
2163
- features?: string[] | undefined;
2164
- packages?: {
2165
- name: string;
2166
- version?: string | undefined;
2167
- }[] | undefined;
2168
- }, {
2169
- action: "create" | "install" | "upgrade";
2170
- features?: string[] | undefined;
2171
- packages?: {
2172
- name: string;
2173
- version?: string | undefined;
2174
- }[] | undefined;
2175
- }>;
2176
- outputSchema: z.ZodObject<{
2177
- success: z.ZodBoolean;
2178
- installed: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
2179
- upgraded: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
2180
- warnings: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
2181
- message: z.ZodOptional<z.ZodString>;
2182
- details: z.ZodOptional<z.ZodString>;
2183
- errorMessage: z.ZodOptional<z.ZodString>;
2184
- }, "strip", z.ZodTypeAny, {
2185
- success: boolean;
2186
- message?: string | undefined;
2187
- errorMessage?: string | undefined;
2188
- installed?: string[] | undefined;
2189
- upgraded?: string[] | undefined;
2190
- warnings?: string[] | undefined;
2191
- details?: string | undefined;
2192
- }, {
2193
- success: boolean;
2194
- message?: string | undefined;
2195
- errorMessage?: string | undefined;
2196
- installed?: string[] | undefined;
2197
- upgraded?: string[] | undefined;
2198
- warnings?: string[] | undefined;
2199
- details?: string | undefined;
2200
- }>;
2201
- execute: (inputData: {
2202
- action: "create" | "install" | "upgrade";
2203
- features?: string[] | undefined;
2204
- packages?: {
2205
- name: string;
2206
- version?: string | undefined;
2207
- }[] | undefined;
2208
- }, context?: import("@mastra/core/tools").ToolExecutionContext<any, any> | undefined) => Promise<{
2209
- success: boolean;
2210
- message?: string | undefined;
2211
- errorMessage?: string | undefined;
2212
- installed?: string[] | undefined;
2213
- upgraded?: string[] | undefined;
2214
- warnings?: string[] | undefined;
2215
- details?: string | undefined;
2216
- } & {
2217
- error?: never;
2218
- }>;
2219
- };
2220
- manageServer: import("@mastra/core/tools").Tool<z.ZodObject<{
2221
- action: z.ZodEnum<["start", "stop", "restart", "status"]>;
2222
- port: z.ZodDefault<z.ZodOptional<z.ZodNumber>>;
2223
- }, "strip", z.ZodTypeAny, {
2224
- action: "status" | "stop" | "start" | "restart";
2225
- port: number;
2226
- }, {
260
+ }, unknown, unknown, import("@mastra/core/tools").ToolExecutionContext<unknown, unknown>, "manage-project">;
261
+ manageServer: import("@mastra/core/tools").Tool<{
2227
262
  action: "status" | "stop" | "start" | "restart";
2228
263
  port?: number | undefined;
2229
- }>, z.ZodObject<{
2230
- success: z.ZodBoolean;
2231
- status: z.ZodEnum<["running", "stopped", "starting", "stopping", "unknown"]>;
2232
- pid: z.ZodOptional<z.ZodNumber>;
2233
- port: z.ZodOptional<z.ZodNumber>;
2234
- url: z.ZodOptional<z.ZodString>;
2235
- message: z.ZodOptional<z.ZodString>;
2236
- stdout: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
2237
- errorMessage: z.ZodOptional<z.ZodString>;
2238
- }, "strip", z.ZodTypeAny, {
2239
- status: "unknown" | "running" | "stopped" | "starting" | "stopping";
2240
- success: boolean;
2241
- message?: string | undefined;
2242
- stdout?: string[] | undefined;
2243
- url?: string | undefined;
2244
- errorMessage?: string | undefined;
2245
- port?: number | undefined;
2246
- pid?: number | undefined;
2247
- }, {
2248
- status: "unknown" | "running" | "stopped" | "starting" | "stopping";
2249
- success: boolean;
2250
- message?: string | undefined;
2251
- stdout?: string[] | undefined;
2252
- url?: string | undefined;
2253
- errorMessage?: string | undefined;
2254
- port?: number | undefined;
2255
- pid?: number | undefined;
2256
- }>, any, any, import("@mastra/core/tools").ToolExecutionContext<any, any>, "manage-server"> & {
2257
- inputSchema: z.ZodObject<{
2258
- action: z.ZodEnum<["start", "stop", "restart", "status"]>;
2259
- port: z.ZodDefault<z.ZodOptional<z.ZodNumber>>;
2260
- }, "strip", z.ZodTypeAny, {
2261
- action: "status" | "stop" | "start" | "restart";
2262
- port: number;
2263
- }, {
2264
- action: "status" | "stop" | "start" | "restart";
2265
- port?: number | undefined;
2266
- }>;
2267
- outputSchema: z.ZodObject<{
2268
- success: z.ZodBoolean;
2269
- status: z.ZodEnum<["running", "stopped", "starting", "stopping", "unknown"]>;
2270
- pid: z.ZodOptional<z.ZodNumber>;
2271
- port: z.ZodOptional<z.ZodNumber>;
2272
- url: z.ZodOptional<z.ZodString>;
2273
- message: z.ZodOptional<z.ZodString>;
2274
- stdout: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
2275
- errorMessage: z.ZodOptional<z.ZodString>;
2276
- }, "strip", z.ZodTypeAny, {
2277
- status: "unknown" | "running" | "stopped" | "starting" | "stopping";
2278
- success: boolean;
2279
- message?: string | undefined;
2280
- stdout?: string[] | undefined;
2281
- url?: string | undefined;
2282
- errorMessage?: string | undefined;
2283
- port?: number | undefined;
2284
- pid?: number | undefined;
2285
- }, {
2286
- status: "unknown" | "running" | "stopped" | "starting" | "stopping";
2287
- success: boolean;
2288
- message?: string | undefined;
2289
- stdout?: string[] | undefined;
2290
- url?: string | undefined;
2291
- errorMessage?: string | undefined;
2292
- port?: number | undefined;
2293
- pid?: number | undefined;
2294
- }>;
2295
- execute: (inputData: {
2296
- action: "status" | "stop" | "start" | "restart";
2297
- port: number;
2298
- }, context?: import("@mastra/core/tools").ToolExecutionContext<any, any> | undefined) => Promise<{
2299
- status: "unknown" | "running" | "stopped" | "starting" | "stopping";
2300
- success: boolean;
2301
- message?: string | undefined;
2302
- stdout?: string[] | undefined;
2303
- url?: string | undefined;
2304
- errorMessage?: string | undefined;
2305
- port?: number | undefined;
2306
- pid?: number | undefined;
2307
- } & {
2308
- error?: never;
2309
- }>;
2310
- };
2311
- httpRequest: import("@mastra/core/tools").Tool<z.ZodObject<{
2312
- method: z.ZodEnum<["GET", "POST", "PUT", "DELETE", "PATCH"]>;
2313
- url: z.ZodString;
2314
- baseUrl: z.ZodOptional<z.ZodString>;
2315
- headers: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
2316
- body: z.ZodOptional<z.ZodAny>;
2317
- timeout: z.ZodDefault<z.ZodOptional<z.ZodNumber>>;
2318
- }, "strip", z.ZodTypeAny, {
2319
- url: string;
2320
- timeout: number;
2321
- method: "GET" | "POST" | "PUT" | "DELETE" | "PATCH";
2322
- headers?: Record<string, string> | undefined;
2323
- baseUrl?: string | undefined;
2324
- body?: any;
2325
- }, {
264
+ }, any, unknown, unknown, import("@mastra/core/tools").ToolExecutionContext<unknown, unknown>, "manage-server">;
265
+ httpRequest: import("@mastra/core/tools").Tool<{
2326
266
  url: string;
2327
267
  method: "GET" | "POST" | "PUT" | "DELETE" | "PATCH";
2328
268
  headers?: Record<string, string> | undefined;
2329
269
  timeout?: number | undefined;
2330
270
  baseUrl?: string | undefined;
2331
271
  body?: any;
2332
- }>, z.ZodObject<{
2333
- success: z.ZodBoolean;
2334
- status: z.ZodOptional<z.ZodNumber>;
2335
- statusText: z.ZodOptional<z.ZodString>;
2336
- headers: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
2337
- data: z.ZodOptional<z.ZodAny>;
2338
- errorMessage: z.ZodOptional<z.ZodString>;
2339
- url: z.ZodString;
2340
- method: z.ZodString;
2341
- }, "strip", z.ZodTypeAny, {
2342
- success: boolean;
2343
- url: string;
2344
- method: string;
2345
- status?: number | undefined;
2346
- data?: any;
2347
- headers?: Record<string, string> | undefined;
2348
- errorMessage?: string | undefined;
2349
- statusText?: string | undefined;
2350
272
  }, {
2351
273
  success: boolean;
2352
274
  url: string;
@@ -2356,77 +278,7 @@ export declare class AgentBuilderDefaults {
2356
278
  headers?: Record<string, string> | undefined;
2357
279
  errorMessage?: string | undefined;
2358
280
  statusText?: string | undefined;
2359
- }>, any, any, import("@mastra/core/tools").ToolExecutionContext<any, any>, "http-request"> & {
2360
- inputSchema: z.ZodObject<{
2361
- method: z.ZodEnum<["GET", "POST", "PUT", "DELETE", "PATCH"]>;
2362
- url: z.ZodString;
2363
- baseUrl: z.ZodOptional<z.ZodString>;
2364
- headers: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
2365
- body: z.ZodOptional<z.ZodAny>;
2366
- timeout: z.ZodDefault<z.ZodOptional<z.ZodNumber>>;
2367
- }, "strip", z.ZodTypeAny, {
2368
- url: string;
2369
- timeout: number;
2370
- method: "GET" | "POST" | "PUT" | "DELETE" | "PATCH";
2371
- headers?: Record<string, string> | undefined;
2372
- baseUrl?: string | undefined;
2373
- body?: any;
2374
- }, {
2375
- url: string;
2376
- method: "GET" | "POST" | "PUT" | "DELETE" | "PATCH";
2377
- headers?: Record<string, string> | undefined;
2378
- timeout?: number | undefined;
2379
- baseUrl?: string | undefined;
2380
- body?: any;
2381
- }>;
2382
- outputSchema: z.ZodObject<{
2383
- success: z.ZodBoolean;
2384
- status: z.ZodOptional<z.ZodNumber>;
2385
- statusText: z.ZodOptional<z.ZodString>;
2386
- headers: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
2387
- data: z.ZodOptional<z.ZodAny>;
2388
- errorMessage: z.ZodOptional<z.ZodString>;
2389
- url: z.ZodString;
2390
- method: z.ZodString;
2391
- }, "strip", z.ZodTypeAny, {
2392
- success: boolean;
2393
- url: string;
2394
- method: string;
2395
- status?: number | undefined;
2396
- data?: any;
2397
- headers?: Record<string, string> | undefined;
2398
- errorMessage?: string | undefined;
2399
- statusText?: string | undefined;
2400
- }, {
2401
- success: boolean;
2402
- url: string;
2403
- method: string;
2404
- status?: number | undefined;
2405
- data?: any;
2406
- headers?: Record<string, string> | undefined;
2407
- errorMessage?: string | undefined;
2408
- statusText?: string | undefined;
2409
- }>;
2410
- execute: (inputData: {
2411
- url: string;
2412
- timeout: number;
2413
- method: "GET" | "POST" | "PUT" | "DELETE" | "PATCH";
2414
- headers?: Record<string, string> | undefined;
2415
- baseUrl?: string | undefined;
2416
- body?: any;
2417
- }, context?: import("@mastra/core/tools").ToolExecutionContext<any, any> | undefined) => Promise<{
2418
- success: boolean;
2419
- url: string;
2420
- method: string;
2421
- status?: number | undefined;
2422
- data?: any;
2423
- headers?: Record<string, string> | undefined;
2424
- errorMessage?: string | undefined;
2425
- statusText?: string | undefined;
2426
- } & {
2427
- error?: never;
2428
- }>;
2429
- };
281
+ }, unknown, unknown, import("@mastra/core/tools").ToolExecutionContext<unknown, unknown>, "http-request">;
2430
282
  }>;
2431
283
  /**
2432
284
  * Filter tools for template builder mode (excludes web search and other advanced tools)
@@ -3027,4 +879,5 @@ export declare class AgentBuilderDefaults {
3027
879
  suggestions?: undefined;
3028
880
  }>;
3029
881
  }
882
+ export {};
3030
883
  //# sourceMappingURL=defaults.d.ts.map