@mastra/agent-builder 0.0.0-iterate-traces-ui-again-20250912091900 → 0.0.0-main-test-20251105183450

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.
@@ -70,71 +70,13 @@ export declare class AgentBuilderDefaults {
70
70
  totalLines: number;
71
71
  lastModified: string;
72
72
  } | undefined;
73
- }>, import("@mastra/core").ToolExecutionContext<z.ZodObject<{
74
- filePath: z.ZodString;
75
- startLine: z.ZodOptional<z.ZodNumber>;
76
- endLine: z.ZodOptional<z.ZodNumber>;
77
- encoding: z.ZodDefault<z.ZodString>;
78
- }, "strip", z.ZodTypeAny, {
79
- filePath: string;
80
- encoding: string;
81
- startLine?: number | undefined;
82
- endLine?: number | undefined;
83
- }, {
84
- filePath: string;
85
- startLine?: number | undefined;
86
- endLine?: number | undefined;
87
- encoding?: string | undefined;
88
- }>>> & {
89
- inputSchema: z.ZodObject<{
90
- filePath: z.ZodString;
91
- startLine: z.ZodOptional<z.ZodNumber>;
92
- endLine: z.ZodOptional<z.ZodNumber>;
93
- encoding: z.ZodDefault<z.ZodString>;
94
- }, "strip", z.ZodTypeAny, {
73
+ }>, any, any, import("@mastra/core/tools").ToolExecutionContext<any, any>> & {
74
+ execute: (inputData: {
95
75
  filePath: string;
96
76
  encoding: string;
97
77
  startLine?: number | undefined;
98
78
  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
- }, {
79
+ }, context?: import("@mastra/core/tools").ToolExecutionContext<any, any> | undefined) => Promise<{
138
80
  success: boolean;
139
81
  error?: string | undefined;
140
82
  content?: string | undefined;
@@ -146,22 +88,6 @@ export declare class AgentBuilderDefaults {
146
88
  lastModified: string;
147
89
  } | undefined;
148
90
  }>;
149
- execute: (context: import("@mastra/core").ToolExecutionContext<z.ZodObject<{
150
- filePath: z.ZodString;
151
- startLine: z.ZodOptional<z.ZodNumber>;
152
- endLine: z.ZodOptional<z.ZodNumber>;
153
- encoding: z.ZodDefault<z.ZodString>;
154
- }, "strip", z.ZodTypeAny, {
155
- filePath: string;
156
- encoding: string;
157
- startLine?: number | undefined;
158
- endLine?: number | undefined;
159
- }, {
160
- filePath: string;
161
- startLine?: number | undefined;
162
- endLine?: number | undefined;
163
- encoding?: string | undefined;
164
- }>>, options: import("ai").ToolExecutionOptions | import("ai").ToolCallOptions) => Promise<any>;
165
91
  };
166
92
  writeFile: import("@mastra/core/tools").Tool<z.ZodObject<{
167
93
  filePath: z.ZodString;
@@ -196,73 +122,19 @@ export declare class AgentBuilderDefaults {
196
122
  filePath: string;
197
123
  error?: string | undefined;
198
124
  bytesWritten?: number | undefined;
199
- }>, import("@mastra/core").ToolExecutionContext<z.ZodObject<{
200
- filePath: z.ZodString;
201
- content: z.ZodString;
202
- createDirs: z.ZodDefault<z.ZodBoolean>;
203
- encoding: z.ZodDefault<z.ZodString>;
204
- }, "strip", z.ZodTypeAny, {
205
- filePath: string;
206
- encoding: string;
207
- content: string;
208
- createDirs: boolean;
209
- }, {
210
- filePath: string;
211
- content: string;
212
- encoding?: string | undefined;
213
- createDirs?: boolean | undefined;
214
- }>>> & {
215
- inputSchema: z.ZodObject<{
216
- filePath: z.ZodString;
217
- content: z.ZodString;
218
- createDirs: z.ZodDefault<z.ZodBoolean>;
219
- encoding: z.ZodDefault<z.ZodString>;
220
- }, "strip", z.ZodTypeAny, {
125
+ }>, any, any, import("@mastra/core/tools").ToolExecutionContext<any, any>> & {
126
+ execute: (inputData: {
221
127
  filePath: string;
222
128
  encoding: string;
223
129
  content: string;
224
130
  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
- }, {
131
+ }, context?: import("@mastra/core/tools").ToolExecutionContext<any, any> | undefined) => Promise<{
244
132
  message: string;
245
133
  success: boolean;
246
134
  filePath: string;
247
135
  error?: string | undefined;
248
136
  bytesWritten?: number | undefined;
249
137
  }>;
250
- execute: (context: import("@mastra/core").ToolExecutionContext<z.ZodObject<{
251
- filePath: z.ZodString;
252
- content: z.ZodString;
253
- createDirs: z.ZodDefault<z.ZodBoolean>;
254
- encoding: z.ZodDefault<z.ZodString>;
255
- }, "strip", z.ZodTypeAny, {
256
- filePath: string;
257
- encoding: string;
258
- content: string;
259
- createDirs: boolean;
260
- }, {
261
- filePath: string;
262
- content: string;
263
- encoding?: string | undefined;
264
- createDirs?: boolean | undefined;
265
- }>>, options: import("ai").ToolExecutionOptions | import("ai").ToolCallOptions) => Promise<any>;
266
138
  };
267
139
  listDirectory: import("@mastra/core/tools").Tool<z.ZodObject<{
268
140
  path: z.ZodString;
@@ -341,93 +213,15 @@ export declare class AgentBuilderDefaults {
341
213
  }[];
342
214
  totalItems: number;
343
215
  error?: string | undefined;
344
- }>, import("@mastra/core").ToolExecutionContext<z.ZodObject<{
345
- path: z.ZodString;
346
- recursive: z.ZodDefault<z.ZodBoolean>;
347
- includeHidden: z.ZodDefault<z.ZodBoolean>;
348
- pattern: z.ZodDefault<z.ZodString>;
349
- maxDepth: z.ZodDefault<z.ZodNumber>;
350
- includeMetadata: z.ZodDefault<z.ZodBoolean>;
351
- }, "strip", z.ZodTypeAny, {
352
- path: string;
353
- recursive: boolean;
354
- includeHidden: boolean;
355
- pattern: string;
356
- maxDepth: number;
357
- includeMetadata: boolean;
358
- }, {
359
- path: string;
360
- recursive?: boolean | undefined;
361
- includeHidden?: boolean | undefined;
362
- pattern?: string | undefined;
363
- maxDepth?: number | undefined;
364
- includeMetadata?: boolean | undefined;
365
- }>>> & {
366
- inputSchema: z.ZodObject<{
367
- path: z.ZodString;
368
- recursive: z.ZodDefault<z.ZodBoolean>;
369
- includeHidden: z.ZodDefault<z.ZodBoolean>;
370
- pattern: z.ZodDefault<z.ZodString>;
371
- maxDepth: z.ZodDefault<z.ZodNumber>;
372
- includeMetadata: z.ZodDefault<z.ZodBoolean>;
373
- }, "strip", z.ZodTypeAny, {
216
+ }>, any, any, import("@mastra/core/tools").ToolExecutionContext<any, any>> & {
217
+ execute: (inputData: {
374
218
  path: string;
375
219
  recursive: boolean;
376
220
  includeHidden: boolean;
377
221
  pattern: string;
378
222
  maxDepth: number;
379
223
  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
- }, {
224
+ }, context?: import("@mastra/core/tools").ToolExecutionContext<any, any> | undefined) => Promise<{
431
225
  path: string;
432
226
  message: string;
433
227
  success: boolean;
@@ -442,28 +236,6 @@ export declare class AgentBuilderDefaults {
442
236
  totalItems: number;
443
237
  error?: string | undefined;
444
238
  }>;
445
- execute: (context: import("@mastra/core").ToolExecutionContext<z.ZodObject<{
446
- path: z.ZodString;
447
- recursive: z.ZodDefault<z.ZodBoolean>;
448
- includeHidden: z.ZodDefault<z.ZodBoolean>;
449
- pattern: z.ZodDefault<z.ZodString>;
450
- maxDepth: z.ZodDefault<z.ZodNumber>;
451
- includeMetadata: z.ZodDefault<z.ZodBoolean>;
452
- }, "strip", z.ZodTypeAny, {
453
- path: string;
454
- recursive: boolean;
455
- includeHidden: boolean;
456
- pattern: string;
457
- maxDepth: number;
458
- includeMetadata: boolean;
459
- }, {
460
- path: string;
461
- recursive?: boolean | undefined;
462
- includeHidden?: boolean | undefined;
463
- pattern?: string | undefined;
464
- maxDepth?: number | undefined;
465
- includeMetadata?: boolean | undefined;
466
- }>>, options: import("ai").ToolExecutionOptions | import("ai").ToolCallOptions) => Promise<any>;
467
239
  };
468
240
  executeCommand: import("@mastra/core/tools").Tool<z.ZodObject<{
469
241
  command: z.ZodString;
@@ -513,69 +285,15 @@ export declare class AgentBuilderDefaults {
513
285
  workingDirectory?: string | undefined;
514
286
  exitCode?: number | undefined;
515
287
  executionTime?: number | undefined;
516
- }>, import("@mastra/core").ToolExecutionContext<z.ZodObject<{
517
- command: z.ZodString;
518
- workingDirectory: z.ZodOptional<z.ZodString>;
519
- timeout: z.ZodDefault<z.ZodNumber>;
520
- captureOutput: z.ZodDefault<z.ZodBoolean>;
521
- shell: z.ZodOptional<z.ZodString>;
522
- env: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
523
- }, "strip", z.ZodTypeAny, {
524
- command: string;
525
- timeout: number;
526
- captureOutput: boolean;
527
- workingDirectory?: string | undefined;
528
- shell?: string | undefined;
529
- env?: Record<string, string> | undefined;
530
- }, {
531
- command: string;
532
- workingDirectory?: string | undefined;
533
- timeout?: number | undefined;
534
- captureOutput?: boolean | undefined;
535
- shell?: string | undefined;
536
- env?: Record<string, string> | undefined;
537
- }>>> & {
538
- inputSchema: z.ZodObject<{
539
- command: z.ZodString;
540
- workingDirectory: z.ZodOptional<z.ZodString>;
541
- timeout: z.ZodDefault<z.ZodNumber>;
542
- captureOutput: z.ZodDefault<z.ZodBoolean>;
543
- shell: z.ZodOptional<z.ZodString>;
544
- env: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
545
- }, "strip", z.ZodTypeAny, {
288
+ }>, any, any, import("@mastra/core/tools").ToolExecutionContext<any, any>> & {
289
+ execute: (inputData: {
546
290
  command: string;
547
291
  timeout: number;
548
292
  captureOutput: boolean;
549
293
  workingDirectory?: string | undefined;
550
294
  shell?: string | undefined;
551
295
  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
- }, {
296
+ }, context?: import("@mastra/core/tools").ToolExecutionContext<any, any> | undefined) => Promise<{
579
297
  success: boolean;
580
298
  command: string;
581
299
  error?: string | undefined;
@@ -585,28 +303,6 @@ export declare class AgentBuilderDefaults {
585
303
  exitCode?: number | undefined;
586
304
  executionTime?: number | undefined;
587
305
  }>;
588
- execute: (context: import("@mastra/core").ToolExecutionContext<z.ZodObject<{
589
- command: z.ZodString;
590
- workingDirectory: z.ZodOptional<z.ZodString>;
591
- timeout: z.ZodDefault<z.ZodNumber>;
592
- captureOutput: z.ZodDefault<z.ZodBoolean>;
593
- shell: z.ZodOptional<z.ZodString>;
594
- env: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
595
- }, "strip", z.ZodTypeAny, {
596
- command: string;
597
- timeout: number;
598
- captureOutput: boolean;
599
- workingDirectory?: string | undefined;
600
- shell?: string | undefined;
601
- env?: Record<string, string> | undefined;
602
- }, {
603
- command: string;
604
- workingDirectory?: string | undefined;
605
- timeout?: number | undefined;
606
- captureOutput?: boolean | undefined;
607
- shell?: string | undefined;
608
- env?: Record<string, string> | undefined;
609
- }>>, options: import("ai").ToolExecutionOptions | import("ai").ToolCallOptions) => Promise<any>;
610
306
  };
611
307
  taskManager: import("@mastra/core/tools").Tool<z.ZodObject<{
612
308
  action: z.ZodEnum<["create", "update", "list", "complete", "remove"]>;
@@ -712,80 +408,8 @@ export declare class AgentBuilderDefaults {
712
408
  dependencies?: string[] | undefined;
713
409
  notes?: string | undefined;
714
410
  }[];
715
- }>, import("@mastra/core").ToolExecutionContext<z.ZodObject<{
716
- action: z.ZodEnum<["create", "update", "list", "complete", "remove"]>;
717
- tasks: z.ZodOptional<z.ZodArray<z.ZodObject<{
718
- id: z.ZodString;
719
- content: z.ZodOptional<z.ZodString>;
720
- status: z.ZodEnum<["pending", "in_progress", "completed", "blocked"]>;
721
- priority: z.ZodDefault<z.ZodEnum<["high", "medium", "low"]>>;
722
- dependencies: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
723
- notes: z.ZodOptional<z.ZodString>;
724
- }, "strip", z.ZodTypeAny, {
725
- status: "pending" | "in_progress" | "completed" | "blocked";
726
- id: string;
727
- priority: "high" | "medium" | "low";
728
- dependencies?: string[] | undefined;
729
- content?: string | undefined;
730
- notes?: string | undefined;
731
- }, {
732
- status: "pending" | "in_progress" | "completed" | "blocked";
733
- id: string;
734
- dependencies?: string[] | undefined;
735
- content?: string | undefined;
736
- priority?: "high" | "medium" | "low" | undefined;
737
- notes?: string | undefined;
738
- }>, "many">>;
739
- taskId: z.ZodOptional<z.ZodString>;
740
- }, "strip", z.ZodTypeAny, {
741
- action: "create" | "update" | "list" | "complete" | "remove";
742
- tasks?: {
743
- status: "pending" | "in_progress" | "completed" | "blocked";
744
- id: string;
745
- priority: "high" | "medium" | "low";
746
- dependencies?: string[] | undefined;
747
- content?: string | undefined;
748
- notes?: string | undefined;
749
- }[] | undefined;
750
- taskId?: string | undefined;
751
- }, {
752
- action: "create" | "update" | "list" | "complete" | "remove";
753
- tasks?: {
754
- status: "pending" | "in_progress" | "completed" | "blocked";
755
- id: string;
756
- dependencies?: string[] | undefined;
757
- content?: string | undefined;
758
- priority?: "high" | "medium" | "low" | undefined;
759
- notes?: string | undefined;
760
- }[] | undefined;
761
- taskId?: string | undefined;
762
- }>>> & {
763
- inputSchema: z.ZodObject<{
764
- action: z.ZodEnum<["create", "update", "list", "complete", "remove"]>;
765
- tasks: z.ZodOptional<z.ZodArray<z.ZodObject<{
766
- id: z.ZodString;
767
- content: z.ZodOptional<z.ZodString>;
768
- status: z.ZodEnum<["pending", "in_progress", "completed", "blocked"]>;
769
- priority: z.ZodDefault<z.ZodEnum<["high", "medium", "low"]>>;
770
- dependencies: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
771
- notes: z.ZodOptional<z.ZodString>;
772
- }, "strip", z.ZodTypeAny, {
773
- status: "pending" | "in_progress" | "completed" | "blocked";
774
- id: string;
775
- priority: "high" | "medium" | "low";
776
- dependencies?: string[] | undefined;
777
- content?: string | undefined;
778
- notes?: string | undefined;
779
- }, {
780
- status: "pending" | "in_progress" | "completed" | "blocked";
781
- id: string;
782
- dependencies?: string[] | undefined;
783
- content?: string | undefined;
784
- priority?: "high" | "medium" | "low" | undefined;
785
- notes?: string | undefined;
786
- }>, "many">>;
787
- taskId: z.ZodOptional<z.ZodString>;
788
- }, "strip", z.ZodTypeAny, {
411
+ }>, any, any, import("@mastra/core/tools").ToolExecutionContext<any, any>> & {
412
+ execute: (inputData: {
789
413
  action: "create" | "update" | "list" | "complete" | "remove";
790
414
  tasks?: {
791
415
  status: "pending" | "in_progress" | "completed" | "blocked";
@@ -796,63 +420,7 @@ export declare class AgentBuilderDefaults {
796
420
  notes?: string | undefined;
797
421
  }[] | undefined;
798
422
  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
- }, {
423
+ }, context?: import("@mastra/core/tools").ToolExecutionContext<any, any> | undefined) => Promise<{
856
424
  message: string;
857
425
  success: boolean;
858
426
  tasks: {
@@ -866,54 +434,6 @@ export declare class AgentBuilderDefaults {
866
434
  notes?: string | undefined;
867
435
  }[];
868
436
  }>;
869
- execute: (context: import("@mastra/core").ToolExecutionContext<z.ZodObject<{
870
- action: z.ZodEnum<["create", "update", "list", "complete", "remove"]>;
871
- tasks: z.ZodOptional<z.ZodArray<z.ZodObject<{
872
- id: z.ZodString;
873
- content: z.ZodOptional<z.ZodString>;
874
- status: z.ZodEnum<["pending", "in_progress", "completed", "blocked"]>;
875
- priority: z.ZodDefault<z.ZodEnum<["high", "medium", "low"]>>;
876
- dependencies: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
877
- notes: z.ZodOptional<z.ZodString>;
878
- }, "strip", z.ZodTypeAny, {
879
- status: "pending" | "in_progress" | "completed" | "blocked";
880
- id: string;
881
- priority: "high" | "medium" | "low";
882
- dependencies?: string[] | undefined;
883
- content?: string | undefined;
884
- notes?: string | undefined;
885
- }, {
886
- status: "pending" | "in_progress" | "completed" | "blocked";
887
- id: string;
888
- dependencies?: string[] | undefined;
889
- content?: string | undefined;
890
- priority?: "high" | "medium" | "low" | undefined;
891
- notes?: string | undefined;
892
- }>, "many">>;
893
- taskId: z.ZodOptional<z.ZodString>;
894
- }, "strip", z.ZodTypeAny, {
895
- action: "create" | "update" | "list" | "complete" | "remove";
896
- tasks?: {
897
- status: "pending" | "in_progress" | "completed" | "blocked";
898
- id: string;
899
- priority: "high" | "medium" | "low";
900
- dependencies?: string[] | undefined;
901
- content?: string | undefined;
902
- notes?: string | undefined;
903
- }[] | undefined;
904
- taskId?: string | undefined;
905
- }, {
906
- action: "create" | "update" | "list" | "complete" | "remove";
907
- tasks?: {
908
- status: "pending" | "in_progress" | "completed" | "blocked";
909
- id: string;
910
- dependencies?: string[] | undefined;
911
- content?: string | undefined;
912
- priority?: "high" | "medium" | "low" | undefined;
913
- notes?: string | undefined;
914
- }[] | undefined;
915
- taskId?: string | undefined;
916
- }>>, options: import("ai").ToolExecutionOptions | import("ai").ToolCallOptions) => Promise<any>;
917
437
  };
918
438
  multiEdit: import("@mastra/core/tools").Tool<z.ZodObject<{
919
439
  operations: z.ZodArray<z.ZodObject<{
@@ -1004,92 +524,8 @@ export declare class AgentBuilderDefaults {
1004
524
  editsApplied: number;
1005
525
  backup?: string | undefined;
1006
526
  }[];
1007
- }>, import("@mastra/core").ToolExecutionContext<z.ZodObject<{
1008
- operations: z.ZodArray<z.ZodObject<{
1009
- filePath: z.ZodString;
1010
- edits: z.ZodArray<z.ZodObject<{
1011
- oldString: z.ZodString;
1012
- newString: z.ZodString;
1013
- replaceAll: z.ZodDefault<z.ZodBoolean>;
1014
- }, "strip", z.ZodTypeAny, {
1015
- replaceAll: boolean;
1016
- oldString: string;
1017
- newString: string;
1018
- }, {
1019
- oldString: string;
1020
- newString: string;
1021
- replaceAll?: boolean | undefined;
1022
- }>, "many">;
1023
- }, "strip", z.ZodTypeAny, {
1024
- filePath: string;
1025
- edits: {
1026
- replaceAll: boolean;
1027
- oldString: string;
1028
- newString: string;
1029
- }[];
1030
- }, {
1031
- filePath: string;
1032
- edits: {
1033
- oldString: string;
1034
- newString: string;
1035
- replaceAll?: boolean | undefined;
1036
- }[];
1037
- }>, "many">;
1038
- createBackup: z.ZodDefault<z.ZodBoolean>;
1039
- }, "strip", z.ZodTypeAny, {
1040
- operations: {
1041
- filePath: string;
1042
- edits: {
1043
- replaceAll: boolean;
1044
- oldString: string;
1045
- newString: string;
1046
- }[];
1047
- }[];
1048
- createBackup: boolean;
1049
- }, {
1050
- operations: {
1051
- filePath: string;
1052
- edits: {
1053
- oldString: string;
1054
- newString: string;
1055
- replaceAll?: boolean | undefined;
1056
- }[];
1057
- }[];
1058
- createBackup?: boolean | undefined;
1059
- }>>> & {
1060
- inputSchema: z.ZodObject<{
1061
- operations: z.ZodArray<z.ZodObject<{
1062
- filePath: z.ZodString;
1063
- edits: z.ZodArray<z.ZodObject<{
1064
- oldString: z.ZodString;
1065
- newString: z.ZodString;
1066
- replaceAll: z.ZodDefault<z.ZodBoolean>;
1067
- }, "strip", z.ZodTypeAny, {
1068
- replaceAll: boolean;
1069
- oldString: string;
1070
- newString: string;
1071
- }, {
1072
- oldString: string;
1073
- newString: string;
1074
- replaceAll?: boolean | undefined;
1075
- }>, "many">;
1076
- }, "strip", z.ZodTypeAny, {
1077
- filePath: string;
1078
- edits: {
1079
- replaceAll: boolean;
1080
- oldString: string;
1081
- newString: string;
1082
- }[];
1083
- }, {
1084
- filePath: string;
1085
- edits: {
1086
- oldString: string;
1087
- newString: string;
1088
- replaceAll?: boolean | undefined;
1089
- }[];
1090
- }>, "many">;
1091
- createBackup: z.ZodDefault<z.ZodBoolean>;
1092
- }, "strip", z.ZodTypeAny, {
527
+ }>, any, any, import("@mastra/core/tools").ToolExecutionContext<any, any>> & {
528
+ execute: (inputData: {
1093
529
  operations: {
1094
530
  filePath: string;
1095
531
  edits: {
@@ -1099,46 +535,7 @@ export declare class AgentBuilderDefaults {
1099
535
  }[];
1100
536
  }[];
1101
537
  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
- }, {
538
+ }, context?: import("@mastra/core/tools").ToolExecutionContext<any, any> | undefined) => Promise<{
1142
539
  message: string;
1143
540
  success: boolean;
1144
541
  results: {
@@ -1148,59 +545,6 @@ export declare class AgentBuilderDefaults {
1148
545
  backup?: string | undefined;
1149
546
  }[];
1150
547
  }>;
1151
- execute: (context: import("@mastra/core").ToolExecutionContext<z.ZodObject<{
1152
- operations: z.ZodArray<z.ZodObject<{
1153
- filePath: z.ZodString;
1154
- edits: z.ZodArray<z.ZodObject<{
1155
- oldString: z.ZodString;
1156
- newString: z.ZodString;
1157
- replaceAll: z.ZodDefault<z.ZodBoolean>;
1158
- }, "strip", z.ZodTypeAny, {
1159
- replaceAll: boolean;
1160
- oldString: string;
1161
- newString: string;
1162
- }, {
1163
- oldString: string;
1164
- newString: string;
1165
- replaceAll?: boolean | undefined;
1166
- }>, "many">;
1167
- }, "strip", z.ZodTypeAny, {
1168
- filePath: string;
1169
- edits: {
1170
- replaceAll: boolean;
1171
- oldString: string;
1172
- newString: string;
1173
- }[];
1174
- }, {
1175
- filePath: string;
1176
- edits: {
1177
- oldString: string;
1178
- newString: string;
1179
- replaceAll?: boolean | undefined;
1180
- }[];
1181
- }>, "many">;
1182
- createBackup: z.ZodDefault<z.ZodBoolean>;
1183
- }, "strip", z.ZodTypeAny, {
1184
- operations: {
1185
- filePath: string;
1186
- edits: {
1187
- replaceAll: boolean;
1188
- oldString: string;
1189
- newString: string;
1190
- }[];
1191
- }[];
1192
- createBackup: boolean;
1193
- }, {
1194
- operations: {
1195
- filePath: string;
1196
- edits: {
1197
- oldString: string;
1198
- newString: string;
1199
- replaceAll?: boolean | undefined;
1200
- }[];
1201
- }[];
1202
- createBackup?: boolean | undefined;
1203
- }>>, options: import("ai").ToolExecutionOptions | import("ai").ToolCallOptions) => Promise<any>;
1204
548
  };
1205
549
  replaceLines: import("@mastra/core/tools").Tool<z.ZodObject<{
1206
550
  filePath: z.ZodString;
@@ -1238,82 +582,20 @@ export declare class AgentBuilderDefaults {
1238
582
  error?: string | undefined;
1239
583
  backup?: string | undefined;
1240
584
  linesReplaced?: number | undefined;
1241
- }>, import("@mastra/core").ToolExecutionContext<z.ZodObject<{
1242
- filePath: z.ZodString;
1243
- startLine: z.ZodNumber;
1244
- endLine: z.ZodNumber;
1245
- newContent: z.ZodString;
1246
- createBackup: z.ZodDefault<z.ZodBoolean>;
1247
- }, "strip", z.ZodTypeAny, {
1248
- filePath: string;
1249
- startLine: number;
1250
- endLine: number;
1251
- createBackup: boolean;
1252
- newContent: string;
1253
- }, {
1254
- filePath: string;
1255
- startLine: number;
1256
- endLine: number;
1257
- newContent: string;
1258
- createBackup?: boolean | undefined;
1259
- }>>> & {
1260
- inputSchema: z.ZodObject<{
1261
- filePath: z.ZodString;
1262
- startLine: z.ZodNumber;
1263
- endLine: z.ZodNumber;
1264
- newContent: z.ZodString;
1265
- createBackup: z.ZodDefault<z.ZodBoolean>;
1266
- }, "strip", z.ZodTypeAny, {
585
+ }>, any, any, import("@mastra/core/tools").ToolExecutionContext<any, any>> & {
586
+ execute: (inputData: {
1267
587
  filePath: string;
1268
588
  startLine: number;
1269
589
  endLine: number;
1270
590
  createBackup: boolean;
1271
591
  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
- }, {
592
+ }, context?: import("@mastra/core/tools").ToolExecutionContext<any, any> | undefined) => Promise<{
1292
593
  message: string;
1293
594
  success: boolean;
1294
595
  error?: string | undefined;
1295
596
  backup?: string | undefined;
1296
597
  linesReplaced?: number | undefined;
1297
598
  }>;
1298
- execute: (context: import("@mastra/core").ToolExecutionContext<z.ZodObject<{
1299
- filePath: z.ZodString;
1300
- startLine: z.ZodNumber;
1301
- endLine: z.ZodNumber;
1302
- newContent: z.ZodString;
1303
- createBackup: z.ZodDefault<z.ZodBoolean>;
1304
- }, "strip", z.ZodTypeAny, {
1305
- filePath: string;
1306
- startLine: number;
1307
- endLine: number;
1308
- createBackup: boolean;
1309
- newContent: string;
1310
- }, {
1311
- filePath: string;
1312
- startLine: number;
1313
- endLine: number;
1314
- newContent: string;
1315
- createBackup?: boolean | undefined;
1316
- }>>, options: import("ai").ToolExecutionOptions | import("ai").ToolCallOptions) => Promise<any>;
1317
599
  };
1318
600
  showFileLines: import("@mastra/core/tools").Tool<z.ZodObject<{
1319
601
  filePath: z.ZodString;
@@ -1368,67 +650,13 @@ export declare class AgentBuilderDefaults {
1368
650
  }[];
1369
651
  totalLines: number;
1370
652
  error?: string | undefined;
1371
- }>, import("@mastra/core").ToolExecutionContext<z.ZodObject<{
1372
- filePath: z.ZodString;
1373
- startLine: z.ZodOptional<z.ZodNumber>;
1374
- endLine: z.ZodOptional<z.ZodNumber>;
1375
- context: z.ZodDefault<z.ZodNumber>;
1376
- }, "strip", z.ZodTypeAny, {
1377
- filePath: string;
1378
- context: number;
1379
- startLine?: number | undefined;
1380
- endLine?: number | undefined;
1381
- }, {
1382
- filePath: string;
1383
- startLine?: number | undefined;
1384
- endLine?: number | undefined;
1385
- context?: number | undefined;
1386
- }>>> & {
1387
- inputSchema: z.ZodObject<{
1388
- filePath: z.ZodString;
1389
- startLine: z.ZodOptional<z.ZodNumber>;
1390
- endLine: z.ZodOptional<z.ZodNumber>;
1391
- context: z.ZodDefault<z.ZodNumber>;
1392
- }, "strip", z.ZodTypeAny, {
653
+ }>, any, any, import("@mastra/core/tools").ToolExecutionContext<any, any>> & {
654
+ execute: (inputData: {
1393
655
  filePath: string;
1394
656
  context: number;
1395
657
  startLine?: number | undefined;
1396
658
  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
- }, {
659
+ }, context?: import("@mastra/core/tools").ToolExecutionContext<any, any> | undefined) => Promise<{
1432
660
  message: string;
1433
661
  success: boolean;
1434
662
  lines: {
@@ -1439,22 +667,6 @@ export declare class AgentBuilderDefaults {
1439
667
  totalLines: number;
1440
668
  error?: string | undefined;
1441
669
  }>;
1442
- execute: (context: import("@mastra/core").ToolExecutionContext<z.ZodObject<{
1443
- filePath: z.ZodString;
1444
- startLine: z.ZodOptional<z.ZodNumber>;
1445
- endLine: z.ZodOptional<z.ZodNumber>;
1446
- context: z.ZodDefault<z.ZodNumber>;
1447
- }, "strip", z.ZodTypeAny, {
1448
- filePath: string;
1449
- context: number;
1450
- startLine?: number | undefined;
1451
- endLine?: number | undefined;
1452
- }, {
1453
- filePath: string;
1454
- startLine?: number | undefined;
1455
- endLine?: number | undefined;
1456
- context?: number | undefined;
1457
- }>>, options: import("ai").ToolExecutionOptions | import("ai").ToolCallOptions) => Promise<any>;
1458
670
  };
1459
671
  smartSearch: import("@mastra/core/tools").Tool<z.ZodObject<{
1460
672
  query: z.ZodString;
@@ -1604,100 +816,8 @@ export declare class AgentBuilderDefaults {
1604
816
  filesSearched: number;
1605
817
  patterns: string[];
1606
818
  };
1607
- }>, import("@mastra/core").ToolExecutionContext<z.ZodObject<{
1608
- query: z.ZodString;
1609
- type: z.ZodDefault<z.ZodEnum<["text", "regex", "fuzzy", "semantic"]>>;
1610
- scope: z.ZodOptional<z.ZodObject<{
1611
- paths: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
1612
- fileTypes: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
1613
- excludePaths: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
1614
- maxResults: z.ZodDefault<z.ZodNumber>;
1615
- }, "strip", z.ZodTypeAny, {
1616
- maxResults: number;
1617
- paths?: string[] | undefined;
1618
- fileTypes?: string[] | undefined;
1619
- excludePaths?: string[] | undefined;
1620
- }, {
1621
- paths?: string[] | undefined;
1622
- fileTypes?: string[] | undefined;
1623
- excludePaths?: string[] | undefined;
1624
- maxResults?: number | undefined;
1625
- }>>;
1626
- context: z.ZodOptional<z.ZodObject<{
1627
- beforeLines: z.ZodDefault<z.ZodNumber>;
1628
- afterLines: z.ZodDefault<z.ZodNumber>;
1629
- includeDefinitions: z.ZodDefault<z.ZodBoolean>;
1630
- }, "strip", z.ZodTypeAny, {
1631
- beforeLines: number;
1632
- afterLines: number;
1633
- includeDefinitions: boolean;
1634
- }, {
1635
- beforeLines?: number | undefined;
1636
- afterLines?: number | undefined;
1637
- includeDefinitions?: boolean | undefined;
1638
- }>>;
1639
- }, "strip", z.ZodTypeAny, {
1640
- type: "text" | "regex" | "fuzzy" | "semantic";
1641
- query: string;
1642
- context?: {
1643
- beforeLines: number;
1644
- afterLines: number;
1645
- includeDefinitions: boolean;
1646
- } | undefined;
1647
- scope?: {
1648
- maxResults: number;
1649
- paths?: string[] | undefined;
1650
- fileTypes?: string[] | undefined;
1651
- excludePaths?: string[] | undefined;
1652
- } | undefined;
1653
- }, {
1654
- query: string;
1655
- type?: "text" | "regex" | "fuzzy" | "semantic" | undefined;
1656
- context?: {
1657
- beforeLines?: number | undefined;
1658
- afterLines?: number | undefined;
1659
- includeDefinitions?: boolean | undefined;
1660
- } | undefined;
1661
- scope?: {
1662
- paths?: string[] | undefined;
1663
- fileTypes?: string[] | undefined;
1664
- excludePaths?: string[] | undefined;
1665
- maxResults?: number | undefined;
1666
- } | undefined;
1667
- }>>> & {
1668
- inputSchema: z.ZodObject<{
1669
- query: z.ZodString;
1670
- type: z.ZodDefault<z.ZodEnum<["text", "regex", "fuzzy", "semantic"]>>;
1671
- scope: z.ZodOptional<z.ZodObject<{
1672
- paths: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
1673
- fileTypes: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
1674
- excludePaths: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
1675
- maxResults: z.ZodDefault<z.ZodNumber>;
1676
- }, "strip", z.ZodTypeAny, {
1677
- maxResults: number;
1678
- paths?: string[] | undefined;
1679
- fileTypes?: string[] | undefined;
1680
- excludePaths?: string[] | undefined;
1681
- }, {
1682
- paths?: string[] | undefined;
1683
- fileTypes?: string[] | undefined;
1684
- excludePaths?: string[] | undefined;
1685
- maxResults?: number | undefined;
1686
- }>>;
1687
- context: z.ZodOptional<z.ZodObject<{
1688
- beforeLines: z.ZodDefault<z.ZodNumber>;
1689
- afterLines: z.ZodDefault<z.ZodNumber>;
1690
- includeDefinitions: z.ZodDefault<z.ZodBoolean>;
1691
- }, "strip", z.ZodTypeAny, {
1692
- beforeLines: number;
1693
- afterLines: number;
1694
- includeDefinitions: boolean;
1695
- }, {
1696
- beforeLines?: number | undefined;
1697
- afterLines?: number | undefined;
1698
- includeDefinitions?: boolean | undefined;
1699
- }>>;
1700
- }, "strip", z.ZodTypeAny, {
819
+ }>, any, any, import("@mastra/core/tools").ToolExecutionContext<any, any>> & {
820
+ execute: (inputData: {
1701
821
  type: "text" | "regex" | "fuzzy" | "semantic";
1702
822
  query: string;
1703
823
  context?: {
@@ -1711,92 +831,7 @@ export declare class AgentBuilderDefaults {
1711
831
  fileTypes?: string[] | undefined;
1712
832
  excludePaths?: string[] | undefined;
1713
833
  } | 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
- }, {
834
+ }, context?: import("@mastra/core/tools").ToolExecutionContext<any, any> | undefined) => Promise<{
1800
835
  success: boolean;
1801
836
  matches: {
1802
837
  file: string;
@@ -1815,67 +850,6 @@ export declare class AgentBuilderDefaults {
1815
850
  patterns: string[];
1816
851
  };
1817
852
  }>;
1818
- execute: (context: import("@mastra/core").ToolExecutionContext<z.ZodObject<{
1819
- query: z.ZodString;
1820
- type: z.ZodDefault<z.ZodEnum<["text", "regex", "fuzzy", "semantic"]>>;
1821
- scope: z.ZodOptional<z.ZodObject<{
1822
- paths: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
1823
- fileTypes: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
1824
- excludePaths: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
1825
- maxResults: z.ZodDefault<z.ZodNumber>;
1826
- }, "strip", z.ZodTypeAny, {
1827
- maxResults: number;
1828
- paths?: string[] | undefined;
1829
- fileTypes?: string[] | undefined;
1830
- excludePaths?: string[] | undefined;
1831
- }, {
1832
- paths?: string[] | undefined;
1833
- fileTypes?: string[] | undefined;
1834
- excludePaths?: string[] | undefined;
1835
- maxResults?: number | undefined;
1836
- }>>;
1837
- context: z.ZodOptional<z.ZodObject<{
1838
- beforeLines: z.ZodDefault<z.ZodNumber>;
1839
- afterLines: z.ZodDefault<z.ZodNumber>;
1840
- includeDefinitions: z.ZodDefault<z.ZodBoolean>;
1841
- }, "strip", z.ZodTypeAny, {
1842
- beforeLines: number;
1843
- afterLines: number;
1844
- includeDefinitions: boolean;
1845
- }, {
1846
- beforeLines?: number | undefined;
1847
- afterLines?: number | undefined;
1848
- includeDefinitions?: boolean | undefined;
1849
- }>>;
1850
- }, "strip", z.ZodTypeAny, {
1851
- type: "text" | "regex" | "fuzzy" | "semantic";
1852
- query: string;
1853
- context?: {
1854
- beforeLines: number;
1855
- afterLines: number;
1856
- includeDefinitions: boolean;
1857
- } | undefined;
1858
- scope?: {
1859
- maxResults: number;
1860
- paths?: string[] | undefined;
1861
- fileTypes?: string[] | undefined;
1862
- excludePaths?: string[] | undefined;
1863
- } | undefined;
1864
- }, {
1865
- query: string;
1866
- type?: "text" | "regex" | "fuzzy" | "semantic" | undefined;
1867
- context?: {
1868
- beforeLines?: number | undefined;
1869
- afterLines?: number | undefined;
1870
- includeDefinitions?: boolean | undefined;
1871
- } | undefined;
1872
- scope?: {
1873
- paths?: string[] | undefined;
1874
- fileTypes?: string[] | undefined;
1875
- excludePaths?: string[] | undefined;
1876
- maxResults?: number | undefined;
1877
- } | undefined;
1878
- }>>, options: import("ai").ToolExecutionOptions | import("ai").ToolCallOptions) => Promise<any>;
1879
853
  };
1880
854
  validateCode: import("@mastra/core/tools").Tool<z.ZodObject<{
1881
855
  projectPath: z.ZodOptional<z.ZodString>;
@@ -1902,7 +876,7 @@ export declare class AgentBuilderDefaults {
1902
876
  }, "strip", z.ZodTypeAny, {
1903
877
  message: string;
1904
878
  type: "build" | "typescript" | "eslint" | "schema" | "test";
1905
- severity: "error" | "warning" | "info";
879
+ severity: "error" | "info" | "warning";
1906
880
  code?: string | undefined;
1907
881
  file?: string | undefined;
1908
882
  line?: number | undefined;
@@ -1910,7 +884,7 @@ export declare class AgentBuilderDefaults {
1910
884
  }, {
1911
885
  message: string;
1912
886
  type: "build" | "typescript" | "eslint" | "schema" | "test";
1913
- severity: "error" | "warning" | "info";
887
+ severity: "error" | "info" | "warning";
1914
888
  code?: string | undefined;
1915
889
  file?: string | undefined;
1916
890
  line?: number | undefined;
@@ -1937,7 +911,7 @@ export declare class AgentBuilderDefaults {
1937
911
  errors: {
1938
912
  message: string;
1939
913
  type: "build" | "typescript" | "eslint" | "schema" | "test";
1940
- severity: "error" | "warning" | "info";
914
+ severity: "error" | "info" | "warning";
1941
915
  code?: string | undefined;
1942
916
  file?: string | undefined;
1943
917
  line?: number | undefined;
@@ -1954,7 +928,7 @@ export declare class AgentBuilderDefaults {
1954
928
  errors: {
1955
929
  message: string;
1956
930
  type: "build" | "typescript" | "eslint" | "schema" | "test";
1957
- severity: "error" | "warning" | "info";
931
+ severity: "error" | "info" | "warning";
1958
932
  code?: string | undefined;
1959
933
  file?: string | undefined;
1960
934
  line?: number | undefined;
@@ -1966,98 +940,17 @@ export declare class AgentBuilderDefaults {
1966
940
  validationsPassed: string[];
1967
941
  validationsFailed: string[];
1968
942
  };
1969
- }>, import("@mastra/core").ToolExecutionContext<z.ZodObject<{
1970
- projectPath: z.ZodOptional<z.ZodString>;
1971
- validationType: z.ZodArray<z.ZodEnum<["types", "lint", "schemas", "tests", "build"]>, "many">;
1972
- files: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
1973
- }, "strip", z.ZodTypeAny, {
1974
- validationType: ("types" | "schemas" | "tests" | "lint" | "build")[];
1975
- projectPath?: string | undefined;
1976
- files?: string[] | undefined;
1977
- }, {
1978
- validationType: ("types" | "schemas" | "tests" | "lint" | "build")[];
1979
- projectPath?: string | undefined;
1980
- files?: string[] | undefined;
1981
- }>>> & {
1982
- inputSchema: z.ZodObject<{
1983
- projectPath: z.ZodOptional<z.ZodString>;
1984
- validationType: z.ZodArray<z.ZodEnum<["types", "lint", "schemas", "tests", "build"]>, "many">;
1985
- files: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
1986
- }, "strip", z.ZodTypeAny, {
1987
- validationType: ("types" | "schemas" | "tests" | "lint" | "build")[];
1988
- projectPath?: string | undefined;
1989
- files?: string[] | undefined;
1990
- }, {
943
+ }>, any, any, import("@mastra/core/tools").ToolExecutionContext<any, any>> & {
944
+ execute: (inputData: {
1991
945
  validationType: ("types" | "schemas" | "tests" | "lint" | "build")[];
1992
946
  projectPath?: string | undefined;
1993
947
  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
- }, {
948
+ }, context?: import("@mastra/core/tools").ToolExecutionContext<any, any> | undefined) => Promise<{
2056
949
  valid: boolean;
2057
950
  errors: {
2058
951
  message: string;
2059
952
  type: "build" | "typescript" | "eslint" | "schema" | "test";
2060
- severity: "error" | "warning" | "info";
953
+ severity: "error" | "info" | "warning";
2061
954
  code?: string | undefined;
2062
955
  file?: string | undefined;
2063
956
  line?: number | undefined;
@@ -2070,19 +963,6 @@ export declare class AgentBuilderDefaults {
2070
963
  validationsFailed: string[];
2071
964
  };
2072
965
  }>;
2073
- execute: (context: import("@mastra/core").ToolExecutionContext<z.ZodObject<{
2074
- projectPath: z.ZodOptional<z.ZodString>;
2075
- validationType: z.ZodArray<z.ZodEnum<["types", "lint", "schemas", "tests", "build"]>, "many">;
2076
- files: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
2077
- }, "strip", z.ZodTypeAny, {
2078
- validationType: ("types" | "schemas" | "tests" | "lint" | "build")[];
2079
- projectPath?: string | undefined;
2080
- files?: string[] | undefined;
2081
- }, {
2082
- validationType: ("types" | "schemas" | "tests" | "lint" | "build")[];
2083
- projectPath?: string | undefined;
2084
- files?: string[] | undefined;
2085
- }>>, options: import("ai").ToolExecutionOptions | import("ai").ToolCallOptions) => Promise<any>;
2086
966
  };
2087
967
  webSearch: import("@mastra/core/tools").Tool<z.ZodObject<{
2088
968
  query: z.ZodString;
@@ -2164,204 +1044,32 @@ export declare class AgentBuilderDefaults {
2164
1044
  searchTime: number;
2165
1045
  error?: string | undefined;
2166
1046
  suggestions?: string[] | undefined;
2167
- }>, import("@mastra/core").ToolExecutionContext<z.ZodObject<{
2168
- query: z.ZodString;
2169
- maxResults: z.ZodDefault<z.ZodNumber>;
2170
- region: z.ZodDefault<z.ZodString>;
2171
- language: z.ZodDefault<z.ZodString>;
2172
- includeImages: z.ZodDefault<z.ZodBoolean>;
2173
- dateRange: z.ZodDefault<z.ZodEnum<["day", "week", "month", "year", "all"]>>;
2174
- }, "strip", z.ZodTypeAny, {
2175
- query: string;
2176
- maxResults: number;
2177
- region: string;
2178
- language: string;
2179
- includeImages: boolean;
2180
- dateRange: "day" | "week" | "month" | "year" | "all";
2181
- }, {
2182
- query: string;
2183
- maxResults?: number | undefined;
2184
- region?: string | undefined;
2185
- language?: string | undefined;
2186
- includeImages?: boolean | undefined;
2187
- dateRange?: "day" | "week" | "month" | "year" | "all" | undefined;
2188
- }>>> & {
2189
- inputSchema: z.ZodObject<{
2190
- query: z.ZodString;
2191
- maxResults: z.ZodDefault<z.ZodNumber>;
2192
- region: z.ZodDefault<z.ZodString>;
2193
- language: z.ZodDefault<z.ZodString>;
2194
- includeImages: z.ZodDefault<z.ZodBoolean>;
2195
- dateRange: z.ZodDefault<z.ZodEnum<["day", "week", "month", "year", "all"]>>;
2196
- }, "strip", z.ZodTypeAny, {
1047
+ }>, any, any, import("@mastra/core/tools").ToolExecutionContext<any, any>> & {
1048
+ execute: (inputData: {
2197
1049
  query: string;
2198
1050
  maxResults: number;
2199
1051
  region: string;
2200
1052
  language: string;
2201
1053
  includeImages: boolean;
2202
1054
  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
- }, {
1055
+ }, context?: import("@mastra/core/tools").ToolExecutionContext<any, any> | undefined) => Promise<{
2256
1056
  success: boolean;
2257
1057
  results: {
2258
1058
  title: string;
2259
- url: string;
2260
- snippet: string;
2261
- domain: string;
2262
- publishDate?: string | undefined;
2263
- relevanceScore?: number | undefined;
2264
- }[];
2265
- query: string;
2266
- totalResults: number;
2267
- searchTime: number;
2268
- error?: string | undefined;
2269
- suggestions?: string[] | undefined;
2270
- }>;
2271
- execute: (context: import("@mastra/core").ToolExecutionContext<z.ZodObject<{
2272
- query: z.ZodString;
2273
- maxResults: z.ZodDefault<z.ZodNumber>;
2274
- region: z.ZodDefault<z.ZodString>;
2275
- language: z.ZodDefault<z.ZodString>;
2276
- includeImages: z.ZodDefault<z.ZodBoolean>;
2277
- dateRange: z.ZodDefault<z.ZodEnum<["day", "week", "month", "year", "all"]>>;
2278
- }, "strip", z.ZodTypeAny, {
2279
- query: string;
2280
- maxResults: number;
2281
- region: string;
2282
- language: string;
2283
- includeImages: boolean;
2284
- dateRange: "day" | "week" | "month" | "year" | "all";
2285
- }, {
2286
- query: string;
2287
- maxResults?: number | undefined;
2288
- region?: string | undefined;
2289
- language?: string | undefined;
2290
- includeImages?: boolean | undefined;
2291
- dateRange?: "day" | "week" | "month" | "year" | "all" | undefined;
2292
- }>>, options: import("ai").ToolExecutionOptions | import("ai").ToolCallOptions) => Promise<any>;
2293
- };
2294
- attemptCompletion: import("@mastra/core/tools").Tool<z.ZodObject<{
2295
- summary: z.ZodString;
2296
- changes: z.ZodArray<z.ZodObject<{
2297
- type: z.ZodEnum<["file_created", "file_modified", "file_deleted", "command_executed", "dependency_added"]>;
2298
- description: z.ZodString;
2299
- path: z.ZodOptional<z.ZodString>;
2300
- }, "strip", z.ZodTypeAny, {
2301
- type: "file_created" | "file_modified" | "file_deleted" | "command_executed" | "dependency_added";
2302
- description: string;
2303
- path?: string | undefined;
2304
- }, {
2305
- type: "file_created" | "file_modified" | "file_deleted" | "command_executed" | "dependency_added";
2306
- description: string;
2307
- path?: string | undefined;
2308
- }>, "many">;
2309
- validation: z.ZodObject<{
2310
- testsRun: z.ZodDefault<z.ZodBoolean>;
2311
- buildsSuccessfully: z.ZodDefault<z.ZodBoolean>;
2312
- manualTestingRequired: z.ZodDefault<z.ZodBoolean>;
2313
- }, "strip", z.ZodTypeAny, {
2314
- testsRun: boolean;
2315
- buildsSuccessfully: boolean;
2316
- manualTestingRequired: boolean;
2317
- }, {
2318
- testsRun?: boolean | undefined;
2319
- buildsSuccessfully?: boolean | undefined;
2320
- manualTestingRequired?: boolean | undefined;
2321
- }>;
2322
- nextSteps: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
2323
- }, "strip", z.ZodTypeAny, {
2324
- validation: {
2325
- testsRun: boolean;
2326
- buildsSuccessfully: boolean;
2327
- manualTestingRequired: boolean;
2328
- };
2329
- summary: string;
2330
- changes: {
2331
- type: "file_created" | "file_modified" | "file_deleted" | "command_executed" | "dependency_added";
2332
- description: string;
2333
- path?: string | undefined;
2334
- }[];
2335
- nextSteps?: string[] | undefined;
2336
- }, {
2337
- validation: {
2338
- testsRun?: boolean | undefined;
2339
- buildsSuccessfully?: boolean | undefined;
2340
- manualTestingRequired?: boolean | undefined;
2341
- };
2342
- summary: string;
2343
- changes: {
2344
- type: "file_created" | "file_modified" | "file_deleted" | "command_executed" | "dependency_added";
2345
- description: string;
2346
- path?: string | undefined;
2347
- }[];
2348
- nextSteps?: string[] | undefined;
2349
- }>, z.ZodObject<{
2350
- completionId: z.ZodString;
2351
- status: z.ZodEnum<["completed", "needs_review", "needs_testing"]>;
2352
- summary: z.ZodString;
2353
- confidence: z.ZodNumber;
2354
- }, "strip", z.ZodTypeAny, {
2355
- status: "completed" | "needs_review" | "needs_testing";
2356
- summary: string;
2357
- completionId: string;
2358
- confidence: number;
2359
- }, {
2360
- status: "completed" | "needs_review" | "needs_testing";
2361
- summary: string;
2362
- completionId: string;
2363
- confidence: number;
2364
- }>, import("@mastra/core").ToolExecutionContext<z.ZodObject<{
1059
+ url: string;
1060
+ snippet: string;
1061
+ domain: string;
1062
+ publishDate?: string | undefined;
1063
+ relevanceScore?: number | undefined;
1064
+ }[];
1065
+ query: string;
1066
+ totalResults: number;
1067
+ searchTime: number;
1068
+ error?: string | undefined;
1069
+ suggestions?: string[] | undefined;
1070
+ }>;
1071
+ };
1072
+ attemptCompletion: import("@mastra/core/tools").Tool<z.ZodObject<{
2365
1073
  summary: z.ZodString;
2366
1074
  changes: z.ZodArray<z.ZodObject<{
2367
1075
  type: z.ZodEnum<["file_created", "file_modified", "file_deleted", "command_executed", "dependency_added"]>;
@@ -2416,37 +1124,23 @@ export declare class AgentBuilderDefaults {
2416
1124
  path?: string | undefined;
2417
1125
  }[];
2418
1126
  nextSteps?: string[] | undefined;
2419
- }>>> & {
2420
- inputSchema: z.ZodObject<{
2421
- summary: z.ZodString;
2422
- changes: z.ZodArray<z.ZodObject<{
2423
- type: z.ZodEnum<["file_created", "file_modified", "file_deleted", "command_executed", "dependency_added"]>;
2424
- description: z.ZodString;
2425
- path: z.ZodOptional<z.ZodString>;
2426
- }, "strip", z.ZodTypeAny, {
2427
- type: "file_created" | "file_modified" | "file_deleted" | "command_executed" | "dependency_added";
2428
- description: string;
2429
- path?: string | undefined;
2430
- }, {
2431
- type: "file_created" | "file_modified" | "file_deleted" | "command_executed" | "dependency_added";
2432
- description: string;
2433
- path?: string | undefined;
2434
- }>, "many">;
2435
- validation: z.ZodObject<{
2436
- testsRun: z.ZodDefault<z.ZodBoolean>;
2437
- buildsSuccessfully: z.ZodDefault<z.ZodBoolean>;
2438
- manualTestingRequired: z.ZodDefault<z.ZodBoolean>;
2439
- }, "strip", z.ZodTypeAny, {
2440
- testsRun: boolean;
2441
- buildsSuccessfully: boolean;
2442
- manualTestingRequired: boolean;
2443
- }, {
2444
- testsRun?: boolean | undefined;
2445
- buildsSuccessfully?: boolean | undefined;
2446
- manualTestingRequired?: boolean | undefined;
2447
- }>;
2448
- nextSteps: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
2449
- }, "strip", z.ZodTypeAny, {
1127
+ }>, z.ZodObject<{
1128
+ completionId: z.ZodString;
1129
+ status: z.ZodEnum<["completed", "needs_review", "needs_testing"]>;
1130
+ summary: z.ZodString;
1131
+ confidence: z.ZodNumber;
1132
+ }, "strip", z.ZodTypeAny, {
1133
+ status: "completed" | "needs_review" | "needs_testing";
1134
+ summary: string;
1135
+ completionId: string;
1136
+ confidence: number;
1137
+ }, {
1138
+ status: "completed" | "needs_review" | "needs_testing";
1139
+ summary: string;
1140
+ completionId: string;
1141
+ confidence: number;
1142
+ }>, any, any, import("@mastra/core/tools").ToolExecutionContext<any, any>> & {
1143
+ execute: (inputData: {
2450
1144
  validation: {
2451
1145
  testsRun: boolean;
2452
1146
  buildsSuccessfully: boolean;
@@ -2459,92 +1153,12 @@ export declare class AgentBuilderDefaults {
2459
1153
  path?: string | undefined;
2460
1154
  }[];
2461
1155
  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
- }, {
1156
+ }, context?: import("@mastra/core/tools").ToolExecutionContext<any, any> | undefined) => Promise<{
2487
1157
  status: "completed" | "needs_review" | "needs_testing";
2488
1158
  summary: string;
2489
1159
  completionId: string;
2490
1160
  confidence: number;
2491
1161
  }>;
2492
- execute: (context: import("@mastra/core").ToolExecutionContext<z.ZodObject<{
2493
- summary: z.ZodString;
2494
- changes: z.ZodArray<z.ZodObject<{
2495
- type: z.ZodEnum<["file_created", "file_modified", "file_deleted", "command_executed", "dependency_added"]>;
2496
- description: z.ZodString;
2497
- path: z.ZodOptional<z.ZodString>;
2498
- }, "strip", z.ZodTypeAny, {
2499
- type: "file_created" | "file_modified" | "file_deleted" | "command_executed" | "dependency_added";
2500
- description: string;
2501
- path?: string | undefined;
2502
- }, {
2503
- type: "file_created" | "file_modified" | "file_deleted" | "command_executed" | "dependency_added";
2504
- description: string;
2505
- path?: string | undefined;
2506
- }>, "many">;
2507
- validation: z.ZodObject<{
2508
- testsRun: z.ZodDefault<z.ZodBoolean>;
2509
- buildsSuccessfully: z.ZodDefault<z.ZodBoolean>;
2510
- manualTestingRequired: z.ZodDefault<z.ZodBoolean>;
2511
- }, "strip", z.ZodTypeAny, {
2512
- testsRun: boolean;
2513
- buildsSuccessfully: boolean;
2514
- manualTestingRequired: boolean;
2515
- }, {
2516
- testsRun?: boolean | undefined;
2517
- buildsSuccessfully?: boolean | undefined;
2518
- manualTestingRequired?: boolean | undefined;
2519
- }>;
2520
- nextSteps: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
2521
- }, "strip", z.ZodTypeAny, {
2522
- validation: {
2523
- testsRun: boolean;
2524
- buildsSuccessfully: boolean;
2525
- manualTestingRequired: boolean;
2526
- };
2527
- summary: string;
2528
- changes: {
2529
- type: "file_created" | "file_modified" | "file_deleted" | "command_executed" | "dependency_added";
2530
- description: string;
2531
- path?: string | undefined;
2532
- }[];
2533
- nextSteps?: string[] | undefined;
2534
- }, {
2535
- validation: {
2536
- testsRun?: boolean | undefined;
2537
- buildsSuccessfully?: boolean | undefined;
2538
- manualTestingRequired?: boolean | undefined;
2539
- };
2540
- summary: string;
2541
- changes: {
2542
- type: "file_created" | "file_modified" | "file_deleted" | "command_executed" | "dependency_added";
2543
- description: string;
2544
- path?: string | undefined;
2545
- }[];
2546
- nextSteps?: string[] | undefined;
2547
- }>>, options: import("ai").ToolExecutionOptions | import("ai").ToolCallOptions) => Promise<any>;
2548
1162
  };
2549
1163
  manageProject: import("@mastra/core/tools").Tool<z.ZodObject<{
2550
1164
  action: z.ZodEnum<["create", "install", "upgrade"]>;
@@ -2585,136 +1199,44 @@ export declare class AgentBuilderDefaults {
2585
1199
  success: boolean;
2586
1200
  message?: string | undefined;
2587
1201
  error?: string | undefined;
1202
+ warnings?: string[] | undefined;
2588
1203
  installed?: string[] | undefined;
2589
1204
  upgraded?: string[] | undefined;
2590
- warnings?: string[] | undefined;
2591
1205
  details?: string | undefined;
2592
1206
  }, {
2593
1207
  success: boolean;
2594
1208
  message?: string | undefined;
2595
1209
  error?: string | undefined;
1210
+ warnings?: string[] | undefined;
2596
1211
  installed?: string[] | undefined;
2597
1212
  upgraded?: string[] | undefined;
2598
- warnings?: string[] | undefined;
2599
1213
  details?: string | undefined;
2600
- }>, import("@mastra/core").ToolExecutionContext<z.ZodObject<{
2601
- action: z.ZodEnum<["create", "install", "upgrade"]>;
2602
- features: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
2603
- packages: z.ZodOptional<z.ZodArray<z.ZodObject<{
2604
- name: z.ZodString;
2605
- version: z.ZodOptional<z.ZodString>;
2606
- }, "strip", z.ZodTypeAny, {
2607
- name: string;
2608
- version?: string | undefined;
2609
- }, {
2610
- name: string;
2611
- version?: string | undefined;
2612
- }>, "many">>;
2613
- }, "strip", z.ZodTypeAny, {
2614
- action: "create" | "install" | "upgrade";
2615
- features?: string[] | undefined;
2616
- packages?: {
2617
- name: string;
2618
- version?: string | undefined;
2619
- }[] | undefined;
2620
- }, {
2621
- action: "create" | "install" | "upgrade";
2622
- features?: string[] | undefined;
2623
- packages?: {
2624
- name: string;
2625
- version?: string | undefined;
2626
- }[] | undefined;
2627
- }>>> & {
2628
- inputSchema: z.ZodObject<{
2629
- action: z.ZodEnum<["create", "install", "upgrade"]>;
2630
- features: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
2631
- packages: z.ZodOptional<z.ZodArray<z.ZodObject<{
2632
- name: z.ZodString;
2633
- version: z.ZodOptional<z.ZodString>;
2634
- }, "strip", z.ZodTypeAny, {
2635
- name: string;
2636
- version?: string | undefined;
2637
- }, {
2638
- name: string;
2639
- version?: string | undefined;
2640
- }>, "many">>;
2641
- }, "strip", z.ZodTypeAny, {
2642
- action: "create" | "install" | "upgrade";
2643
- features?: string[] | undefined;
2644
- packages?: {
2645
- name: string;
2646
- version?: string | undefined;
2647
- }[] | undefined;
2648
- }, {
1214
+ }>, any, any, import("@mastra/core/tools").ToolExecutionContext<any, any>> & {
1215
+ execute: (inputData: {
2649
1216
  action: "create" | "install" | "upgrade";
2650
1217
  features?: string[] | undefined;
2651
1218
  packages?: {
2652
1219
  name: string;
2653
1220
  version?: string | undefined;
2654
1221
  }[] | 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, {
1222
+ }, context?: import("@mastra/core/tools").ToolExecutionContext<any, any> | undefined) => Promise<{
2665
1223
  success: boolean;
2666
1224
  message?: string | undefined;
2667
1225
  error?: string | undefined;
2668
- installed?: string[] | undefined;
2669
- upgraded?: string[] | undefined;
2670
1226
  warnings?: string[] | undefined;
2671
- details?: string | undefined;
2672
- }, {
2673
- success: boolean;
2674
- message?: string | undefined;
2675
- error?: string | undefined;
2676
1227
  installed?: string[] | undefined;
2677
1228
  upgraded?: string[] | undefined;
2678
- warnings?: string[] | undefined;
2679
1229
  details?: string | undefined;
2680
1230
  }>;
2681
- execute: (context: import("@mastra/core").ToolExecutionContext<z.ZodObject<{
2682
- action: z.ZodEnum<["create", "install", "upgrade"]>;
2683
- features: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
2684
- packages: z.ZodOptional<z.ZodArray<z.ZodObject<{
2685
- name: z.ZodString;
2686
- version: z.ZodOptional<z.ZodString>;
2687
- }, "strip", z.ZodTypeAny, {
2688
- name: string;
2689
- version?: string | undefined;
2690
- }, {
2691
- name: string;
2692
- version?: string | undefined;
2693
- }>, "many">>;
2694
- }, "strip", z.ZodTypeAny, {
2695
- action: "create" | "install" | "upgrade";
2696
- features?: string[] | undefined;
2697
- packages?: {
2698
- name: string;
2699
- version?: string | undefined;
2700
- }[] | undefined;
2701
- }, {
2702
- action: "create" | "install" | "upgrade";
2703
- features?: string[] | undefined;
2704
- packages?: {
2705
- name: string;
2706
- version?: string | undefined;
2707
- }[] | undefined;
2708
- }>>, options: import("ai").ToolExecutionOptions | import("ai").ToolCallOptions) => Promise<any>;
2709
1231
  };
2710
1232
  manageServer: import("@mastra/core/tools").Tool<z.ZodObject<{
2711
1233
  action: z.ZodEnum<["start", "stop", "restart", "status"]>;
2712
1234
  port: z.ZodDefault<z.ZodOptional<z.ZodNumber>>;
2713
1235
  }, "strip", z.ZodTypeAny, {
2714
- action: "status" | "start" | "stop" | "restart";
1236
+ action: "status" | "stop" | "start" | "restart";
2715
1237
  port: number;
2716
1238
  }, {
2717
- action: "status" | "start" | "stop" | "restart";
1239
+ action: "status" | "stop" | "start" | "restart";
2718
1240
  port?: number | undefined;
2719
1241
  }>, z.ZodObject<{
2720
1242
  success: z.ZodBoolean;
@@ -2743,45 +1265,11 @@ export declare class AgentBuilderDefaults {
2743
1265
  url?: string | undefined;
2744
1266
  port?: number | undefined;
2745
1267
  pid?: number | undefined;
2746
- }>, import("@mastra/core").ToolExecutionContext<z.ZodObject<{
2747
- action: z.ZodEnum<["start", "stop", "restart", "status"]>;
2748
- port: z.ZodDefault<z.ZodOptional<z.ZodNumber>>;
2749
- }, "strip", z.ZodTypeAny, {
2750
- action: "status" | "start" | "stop" | "restart";
2751
- port: number;
2752
- }, {
2753
- action: "status" | "start" | "stop" | "restart";
2754
- port?: number | undefined;
2755
- }>>> & {
2756
- inputSchema: z.ZodObject<{
2757
- action: z.ZodEnum<["start", "stop", "restart", "status"]>;
2758
- port: z.ZodDefault<z.ZodOptional<z.ZodNumber>>;
2759
- }, "strip", z.ZodTypeAny, {
2760
- action: "status" | "start" | "stop" | "restart";
1268
+ }>, any, any, import("@mastra/core/tools").ToolExecutionContext<any, any>> & {
1269
+ execute: (inputData: {
1270
+ action: "status" | "stop" | "start" | "restart";
2761
1271
  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
- }, {
1272
+ }, context?: import("@mastra/core/tools").ToolExecutionContext<any, any> | undefined) => Promise<{
2785
1273
  status: "unknown" | "running" | "stopped" | "starting" | "stopping";
2786
1274
  success: boolean;
2787
1275
  message?: string | undefined;
@@ -2791,16 +1279,6 @@ export declare class AgentBuilderDefaults {
2791
1279
  port?: number | undefined;
2792
1280
  pid?: number | undefined;
2793
1281
  }>;
2794
- execute: (context: import("@mastra/core").ToolExecutionContext<z.ZodObject<{
2795
- action: z.ZodEnum<["start", "stop", "restart", "status"]>;
2796
- port: z.ZodDefault<z.ZodOptional<z.ZodNumber>>;
2797
- }, "strip", z.ZodTypeAny, {
2798
- action: "status" | "start" | "stop" | "restart";
2799
- port: number;
2800
- }, {
2801
- action: "status" | "start" | "stop" | "restart";
2802
- port?: number | undefined;
2803
- }>>, options: import("ai").ToolExecutionOptions | import("ai").ToolCallOptions) => Promise<any>;
2804
1282
  };
2805
1283
  httpRequest: import("@mastra/core/tools").Tool<z.ZodObject<{
2806
1284
  method: z.ZodEnum<["GET", "POST", "PUT", "DELETE", "PATCH"]>;
@@ -2813,15 +1291,15 @@ export declare class AgentBuilderDefaults {
2813
1291
  timeout: number;
2814
1292
  url: string;
2815
1293
  method: "GET" | "POST" | "PUT" | "DELETE" | "PATCH";
2816
- baseUrl?: string | undefined;
2817
1294
  headers?: Record<string, string> | undefined;
1295
+ baseUrl?: string | undefined;
2818
1296
  body?: any;
2819
1297
  }, {
2820
1298
  url: string;
2821
1299
  method: "GET" | "POST" | "PUT" | "DELETE" | "PATCH";
1300
+ headers?: Record<string, string> | undefined;
2822
1301
  timeout?: number | undefined;
2823
1302
  baseUrl?: string | undefined;
2824
- headers?: Record<string, string> | undefined;
2825
1303
  body?: any;
2826
1304
  }>, z.ZodObject<{
2827
1305
  success: z.ZodBoolean;
@@ -2850,69 +1328,15 @@ export declare class AgentBuilderDefaults {
2850
1328
  data?: any;
2851
1329
  headers?: Record<string, string> | undefined;
2852
1330
  statusText?: string | undefined;
2853
- }>, import("@mastra/core").ToolExecutionContext<z.ZodObject<{
2854
- method: z.ZodEnum<["GET", "POST", "PUT", "DELETE", "PATCH"]>;
2855
- url: z.ZodString;
2856
- baseUrl: z.ZodOptional<z.ZodString>;
2857
- headers: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
2858
- body: z.ZodOptional<z.ZodAny>;
2859
- timeout: z.ZodDefault<z.ZodOptional<z.ZodNumber>>;
2860
- }, "strip", z.ZodTypeAny, {
2861
- timeout: number;
2862
- url: string;
2863
- method: "GET" | "POST" | "PUT" | "DELETE" | "PATCH";
2864
- baseUrl?: string | undefined;
2865
- headers?: Record<string, string> | undefined;
2866
- body?: any;
2867
- }, {
2868
- url: string;
2869
- method: "GET" | "POST" | "PUT" | "DELETE" | "PATCH";
2870
- timeout?: number | undefined;
2871
- baseUrl?: string | undefined;
2872
- headers?: Record<string, string> | undefined;
2873
- body?: any;
2874
- }>>> & {
2875
- inputSchema: z.ZodObject<{
2876
- method: z.ZodEnum<["GET", "POST", "PUT", "DELETE", "PATCH"]>;
2877
- url: z.ZodString;
2878
- baseUrl: z.ZodOptional<z.ZodString>;
2879
- headers: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
2880
- body: z.ZodOptional<z.ZodAny>;
2881
- timeout: z.ZodDefault<z.ZodOptional<z.ZodNumber>>;
2882
- }, "strip", z.ZodTypeAny, {
1331
+ }>, any, any, import("@mastra/core/tools").ToolExecutionContext<any, any>> & {
1332
+ execute: (inputData: {
2883
1333
  timeout: number;
2884
1334
  url: string;
2885
1335
  method: "GET" | "POST" | "PUT" | "DELETE" | "PATCH";
2886
- baseUrl?: string | undefined;
2887
1336
  headers?: Record<string, string> | undefined;
2888
- body?: any;
2889
- }, {
2890
- url: string;
2891
- method: "GET" | "POST" | "PUT" | "DELETE" | "PATCH";
2892
- timeout?: number | undefined;
2893
1337
  baseUrl?: string | undefined;
2894
- headers?: Record<string, string> | undefined;
2895
1338
  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
- }, {
1339
+ }, context?: import("@mastra/core/tools").ToolExecutionContext<any, any> | undefined) => Promise<{
2916
1340
  success: boolean;
2917
1341
  url: string;
2918
1342
  method: string;
@@ -2922,28 +1346,6 @@ export declare class AgentBuilderDefaults {
2922
1346
  headers?: Record<string, string> | undefined;
2923
1347
  statusText?: string | undefined;
2924
1348
  }>;
2925
- execute: (context: import("@mastra/core").ToolExecutionContext<z.ZodObject<{
2926
- method: z.ZodEnum<["GET", "POST", "PUT", "DELETE", "PATCH"]>;
2927
- url: z.ZodString;
2928
- baseUrl: z.ZodOptional<z.ZodString>;
2929
- headers: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
2930
- body: z.ZodOptional<z.ZodAny>;
2931
- timeout: z.ZodDefault<z.ZodOptional<z.ZodNumber>>;
2932
- }, "strip", z.ZodTypeAny, {
2933
- timeout: number;
2934
- url: string;
2935
- method: "GET" | "POST" | "PUT" | "DELETE" | "PATCH";
2936
- baseUrl?: string | undefined;
2937
- headers?: Record<string, string> | undefined;
2938
- body?: any;
2939
- }, {
2940
- url: string;
2941
- method: "GET" | "POST" | "PUT" | "DELETE" | "PATCH";
2942
- timeout?: number | undefined;
2943
- baseUrl?: string | undefined;
2944
- headers?: Record<string, string> | undefined;
2945
- body?: any;
2946
- }>>, options: import("ai").ToolExecutionOptions | import("ai").ToolCallOptions) => Promise<any>;
2947
1349
  };
2948
1350
  }>;
2949
1351
  /**
@@ -2957,7 +1359,7 @@ export declare class AgentBuilderDefaults {
2957
1359
  /**
2958
1360
  * Get tools for a specific mode
2959
1361
  */
2960
- static getToolsForMode(projectPath: string, mode?: 'template' | 'code-editor'): Promise<Record<string, any>>;
1362
+ static listToolsForMode(projectPath: string, mode?: 'template' | 'code-editor'): Promise<Record<string, any>>;
2961
1363
  /**
2962
1364
  * Create a new Mastra project using create-mastra CLI
2963
1365
  */