@mastra/agent-builder 0.0.0-vnext-20251104230439 → 0.0.0-vnext-20251119160359

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.
@@ -71,6 +71,66 @@ export declare class AgentBuilderDefaults {
71
71
  lastModified: string;
72
72
  } | undefined;
73
73
  }>, any, any, import("@mastra/core/tools").ToolExecutionContext<any, any>> & {
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
+ error: z.ZodOptional<z.ZodString>;
111
+ }, "strip", z.ZodTypeAny, {
112
+ success: boolean;
113
+ error?: string | undefined;
114
+ content?: string | undefined;
115
+ lines?: string[] | undefined;
116
+ metadata?: {
117
+ encoding: string;
118
+ size: number;
119
+ totalLines: number;
120
+ lastModified: string;
121
+ } | undefined;
122
+ }, {
123
+ success: boolean;
124
+ error?: string | undefined;
125
+ content?: string | undefined;
126
+ lines?: string[] | undefined;
127
+ metadata?: {
128
+ encoding: string;
129
+ size: number;
130
+ totalLines: number;
131
+ lastModified: string;
132
+ } | undefined;
133
+ }>;
74
134
  execute: (inputData: {
75
135
  filePath: string;
76
136
  encoding: string;
@@ -95,13 +155,13 @@ export declare class AgentBuilderDefaults {
95
155
  createDirs: z.ZodDefault<z.ZodBoolean>;
96
156
  encoding: z.ZodDefault<z.ZodString>;
97
157
  }, "strip", z.ZodTypeAny, {
158
+ content: string;
98
159
  filePath: string;
99
160
  encoding: string;
100
- content: string;
101
161
  createDirs: boolean;
102
162
  }, {
103
- filePath: string;
104
163
  content: string;
164
+ filePath: string;
105
165
  encoding?: string | undefined;
106
166
  createDirs?: boolean | undefined;
107
167
  }>, z.ZodObject<{
@@ -123,10 +183,45 @@ export declare class AgentBuilderDefaults {
123
183
  error?: string | undefined;
124
184
  bytesWritten?: number | undefined;
125
185
  }>, any, any, import("@mastra/core/tools").ToolExecutionContext<any, any>> & {
126
- execute: (inputData: {
186
+ inputSchema: z.ZodObject<{
187
+ filePath: z.ZodString;
188
+ content: z.ZodString;
189
+ createDirs: z.ZodDefault<z.ZodBoolean>;
190
+ encoding: z.ZodDefault<z.ZodString>;
191
+ }, "strip", z.ZodTypeAny, {
192
+ content: string;
127
193
  filePath: string;
128
194
  encoding: string;
195
+ createDirs: boolean;
196
+ }, {
197
+ content: string;
198
+ filePath: string;
199
+ encoding?: string | undefined;
200
+ createDirs?: boolean | undefined;
201
+ }>;
202
+ outputSchema: z.ZodObject<{
203
+ success: z.ZodBoolean;
204
+ filePath: z.ZodString;
205
+ bytesWritten: z.ZodOptional<z.ZodNumber>;
206
+ message: z.ZodString;
207
+ error: z.ZodOptional<z.ZodString>;
208
+ }, "strip", z.ZodTypeAny, {
209
+ message: string;
210
+ success: boolean;
211
+ filePath: string;
212
+ error?: string | undefined;
213
+ bytesWritten?: number | undefined;
214
+ }, {
215
+ message: string;
216
+ success: boolean;
217
+ filePath: string;
218
+ error?: string | undefined;
219
+ bytesWritten?: number | undefined;
220
+ }>;
221
+ execute: (inputData: {
129
222
  content: string;
223
+ filePath: string;
224
+ encoding: string;
130
225
  createDirs: boolean;
131
226
  }, context?: import("@mastra/core/tools").ToolExecutionContext<any, any> | undefined) => Promise<{
132
227
  message: string;
@@ -214,6 +309,85 @@ export declare class AgentBuilderDefaults {
214
309
  totalItems: number;
215
310
  error?: string | undefined;
216
311
  }>, any, any, import("@mastra/core/tools").ToolExecutionContext<any, any>> & {
312
+ inputSchema: z.ZodObject<{
313
+ path: z.ZodString;
314
+ recursive: z.ZodDefault<z.ZodBoolean>;
315
+ includeHidden: z.ZodDefault<z.ZodBoolean>;
316
+ pattern: z.ZodDefault<z.ZodString>;
317
+ maxDepth: z.ZodDefault<z.ZodNumber>;
318
+ includeMetadata: z.ZodDefault<z.ZodBoolean>;
319
+ }, "strip", z.ZodTypeAny, {
320
+ path: string;
321
+ recursive: boolean;
322
+ includeHidden: boolean;
323
+ pattern: string;
324
+ maxDepth: number;
325
+ includeMetadata: boolean;
326
+ }, {
327
+ path: string;
328
+ recursive?: boolean | undefined;
329
+ includeHidden?: boolean | undefined;
330
+ pattern?: string | undefined;
331
+ maxDepth?: number | undefined;
332
+ includeMetadata?: boolean | undefined;
333
+ }>;
334
+ outputSchema: z.ZodObject<{
335
+ success: z.ZodBoolean;
336
+ items: z.ZodArray<z.ZodObject<{
337
+ name: z.ZodString;
338
+ path: z.ZodString;
339
+ type: z.ZodEnum<["file", "directory", "symlink"]>;
340
+ size: z.ZodOptional<z.ZodNumber>;
341
+ lastModified: z.ZodOptional<z.ZodString>;
342
+ permissions: z.ZodOptional<z.ZodString>;
343
+ }, "strip", z.ZodTypeAny, {
344
+ path: string;
345
+ type: "file" | "directory" | "symlink";
346
+ name: string;
347
+ size?: number | undefined;
348
+ lastModified?: string | undefined;
349
+ permissions?: string | undefined;
350
+ }, {
351
+ path: string;
352
+ type: "file" | "directory" | "symlink";
353
+ name: string;
354
+ size?: number | undefined;
355
+ lastModified?: string | undefined;
356
+ permissions?: string | undefined;
357
+ }>, "many">;
358
+ totalItems: z.ZodNumber;
359
+ path: z.ZodString;
360
+ message: z.ZodString;
361
+ error: z.ZodOptional<z.ZodString>;
362
+ }, "strip", z.ZodTypeAny, {
363
+ path: string;
364
+ message: string;
365
+ success: boolean;
366
+ items: {
367
+ path: string;
368
+ type: "file" | "directory" | "symlink";
369
+ name: string;
370
+ size?: number | undefined;
371
+ lastModified?: string | undefined;
372
+ permissions?: string | undefined;
373
+ }[];
374
+ totalItems: number;
375
+ error?: string | undefined;
376
+ }, {
377
+ path: string;
378
+ message: string;
379
+ success: boolean;
380
+ items: {
381
+ path: string;
382
+ type: "file" | "directory" | "symlink";
383
+ name: string;
384
+ size?: number | undefined;
385
+ lastModified?: string | undefined;
386
+ permissions?: string | undefined;
387
+ }[];
388
+ totalItems: number;
389
+ error?: string | undefined;
390
+ }>;
217
391
  execute: (inputData: {
218
392
  path: string;
219
393
  recursive: boolean;
@@ -286,6 +460,56 @@ export declare class AgentBuilderDefaults {
286
460
  exitCode?: number | undefined;
287
461
  executionTime?: number | undefined;
288
462
  }>, any, any, import("@mastra/core/tools").ToolExecutionContext<any, any>> & {
463
+ inputSchema: z.ZodObject<{
464
+ command: z.ZodString;
465
+ workingDirectory: z.ZodOptional<z.ZodString>;
466
+ timeout: z.ZodDefault<z.ZodNumber>;
467
+ captureOutput: z.ZodDefault<z.ZodBoolean>;
468
+ shell: z.ZodOptional<z.ZodString>;
469
+ env: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
470
+ }, "strip", z.ZodTypeAny, {
471
+ command: string;
472
+ timeout: number;
473
+ captureOutput: boolean;
474
+ workingDirectory?: string | undefined;
475
+ shell?: string | undefined;
476
+ env?: Record<string, string> | undefined;
477
+ }, {
478
+ command: string;
479
+ workingDirectory?: string | undefined;
480
+ timeout?: number | undefined;
481
+ captureOutput?: boolean | undefined;
482
+ shell?: string | undefined;
483
+ env?: Record<string, string> | undefined;
484
+ }>;
485
+ outputSchema: z.ZodObject<{
486
+ success: z.ZodBoolean;
487
+ exitCode: z.ZodOptional<z.ZodNumber>;
488
+ stdout: z.ZodOptional<z.ZodString>;
489
+ stderr: z.ZodOptional<z.ZodString>;
490
+ command: z.ZodString;
491
+ workingDirectory: z.ZodOptional<z.ZodString>;
492
+ executionTime: z.ZodOptional<z.ZodNumber>;
493
+ error: z.ZodOptional<z.ZodString>;
494
+ }, "strip", z.ZodTypeAny, {
495
+ success: boolean;
496
+ command: string;
497
+ error?: string | undefined;
498
+ stdout?: string | undefined;
499
+ stderr?: string | undefined;
500
+ workingDirectory?: string | undefined;
501
+ exitCode?: number | undefined;
502
+ executionTime?: number | undefined;
503
+ }, {
504
+ success: boolean;
505
+ command: string;
506
+ error?: string | undefined;
507
+ stdout?: string | undefined;
508
+ stderr?: string | undefined;
509
+ workingDirectory?: string | undefined;
510
+ exitCode?: number | undefined;
511
+ executionTime?: number | undefined;
512
+ }>;
289
513
  execute: (inputData: {
290
514
  command: string;
291
515
  timeout: number;
@@ -409,6 +633,112 @@ export declare class AgentBuilderDefaults {
409
633
  notes?: string | undefined;
410
634
  }[];
411
635
  }>, any, any, import("@mastra/core/tools").ToolExecutionContext<any, any>> & {
636
+ inputSchema: z.ZodObject<{
637
+ action: z.ZodEnum<["create", "update", "list", "complete", "remove"]>;
638
+ tasks: z.ZodOptional<z.ZodArray<z.ZodObject<{
639
+ id: z.ZodString;
640
+ content: z.ZodOptional<z.ZodString>;
641
+ status: z.ZodEnum<["pending", "in_progress", "completed", "blocked"]>;
642
+ priority: z.ZodDefault<z.ZodEnum<["high", "medium", "low"]>>;
643
+ dependencies: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
644
+ notes: z.ZodOptional<z.ZodString>;
645
+ }, "strip", z.ZodTypeAny, {
646
+ status: "pending" | "in_progress" | "completed" | "blocked";
647
+ id: string;
648
+ priority: "high" | "medium" | "low";
649
+ dependencies?: string[] | undefined;
650
+ content?: string | undefined;
651
+ notes?: string | undefined;
652
+ }, {
653
+ status: "pending" | "in_progress" | "completed" | "blocked";
654
+ id: string;
655
+ dependencies?: string[] | undefined;
656
+ content?: string | undefined;
657
+ priority?: "high" | "medium" | "low" | undefined;
658
+ notes?: string | undefined;
659
+ }>, "many">>;
660
+ taskId: z.ZodOptional<z.ZodString>;
661
+ }, "strip", z.ZodTypeAny, {
662
+ action: "create" | "update" | "list" | "complete" | "remove";
663
+ tasks?: {
664
+ status: "pending" | "in_progress" | "completed" | "blocked";
665
+ id: string;
666
+ priority: "high" | "medium" | "low";
667
+ dependencies?: string[] | undefined;
668
+ content?: string | undefined;
669
+ notes?: string | undefined;
670
+ }[] | undefined;
671
+ taskId?: string | undefined;
672
+ }, {
673
+ action: "create" | "update" | "list" | "complete" | "remove";
674
+ tasks?: {
675
+ status: "pending" | "in_progress" | "completed" | "blocked";
676
+ id: string;
677
+ dependencies?: string[] | undefined;
678
+ content?: string | undefined;
679
+ priority?: "high" | "medium" | "low" | undefined;
680
+ notes?: string | undefined;
681
+ }[] | undefined;
682
+ taskId?: string | undefined;
683
+ }>;
684
+ outputSchema: z.ZodObject<{
685
+ success: z.ZodBoolean;
686
+ tasks: z.ZodArray<z.ZodObject<{
687
+ id: z.ZodString;
688
+ content: z.ZodString;
689
+ status: z.ZodString;
690
+ priority: z.ZodString;
691
+ dependencies: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
692
+ notes: z.ZodOptional<z.ZodString>;
693
+ createdAt: z.ZodString;
694
+ updatedAt: z.ZodString;
695
+ }, "strip", z.ZodTypeAny, {
696
+ status: string;
697
+ id: string;
698
+ content: string;
699
+ priority: string;
700
+ createdAt: string;
701
+ updatedAt: string;
702
+ dependencies?: string[] | undefined;
703
+ notes?: string | undefined;
704
+ }, {
705
+ status: string;
706
+ id: string;
707
+ content: string;
708
+ priority: string;
709
+ createdAt: string;
710
+ updatedAt: string;
711
+ dependencies?: string[] | undefined;
712
+ notes?: string | undefined;
713
+ }>, "many">;
714
+ message: z.ZodString;
715
+ }, "strip", z.ZodTypeAny, {
716
+ message: string;
717
+ success: boolean;
718
+ tasks: {
719
+ status: string;
720
+ id: string;
721
+ content: string;
722
+ priority: string;
723
+ createdAt: string;
724
+ updatedAt: string;
725
+ dependencies?: string[] | undefined;
726
+ notes?: string | undefined;
727
+ }[];
728
+ }, {
729
+ message: string;
730
+ success: boolean;
731
+ tasks: {
732
+ status: string;
733
+ id: string;
734
+ content: string;
735
+ priority: string;
736
+ createdAt: string;
737
+ updatedAt: string;
738
+ dependencies?: string[] | undefined;
739
+ notes?: string | undefined;
740
+ }[];
741
+ }>;
412
742
  execute: (inputData: {
413
743
  action: "create" | "update" | "list" | "complete" | "remove";
414
744
  tasks?: {
@@ -525,8 +855,99 @@ export declare class AgentBuilderDefaults {
525
855
  backup?: string | undefined;
526
856
  }[];
527
857
  }>, any, any, import("@mastra/core/tools").ToolExecutionContext<any, any>> & {
528
- execute: (inputData: {
529
- operations: {
858
+ inputSchema: z.ZodObject<{
859
+ operations: z.ZodArray<z.ZodObject<{
860
+ filePath: z.ZodString;
861
+ edits: z.ZodArray<z.ZodObject<{
862
+ oldString: z.ZodString;
863
+ newString: z.ZodString;
864
+ replaceAll: z.ZodDefault<z.ZodBoolean>;
865
+ }, "strip", z.ZodTypeAny, {
866
+ replaceAll: boolean;
867
+ oldString: string;
868
+ newString: string;
869
+ }, {
870
+ oldString: string;
871
+ newString: string;
872
+ replaceAll?: boolean | undefined;
873
+ }>, "many">;
874
+ }, "strip", z.ZodTypeAny, {
875
+ filePath: string;
876
+ edits: {
877
+ replaceAll: boolean;
878
+ oldString: string;
879
+ newString: string;
880
+ }[];
881
+ }, {
882
+ filePath: string;
883
+ edits: {
884
+ oldString: string;
885
+ newString: string;
886
+ replaceAll?: boolean | undefined;
887
+ }[];
888
+ }>, "many">;
889
+ createBackup: z.ZodDefault<z.ZodBoolean>;
890
+ }, "strip", z.ZodTypeAny, {
891
+ operations: {
892
+ filePath: string;
893
+ edits: {
894
+ replaceAll: boolean;
895
+ oldString: string;
896
+ newString: string;
897
+ }[];
898
+ }[];
899
+ createBackup: boolean;
900
+ }, {
901
+ operations: {
902
+ filePath: string;
903
+ edits: {
904
+ oldString: string;
905
+ newString: string;
906
+ replaceAll?: boolean | undefined;
907
+ }[];
908
+ }[];
909
+ createBackup?: boolean | undefined;
910
+ }>;
911
+ outputSchema: z.ZodObject<{
912
+ success: z.ZodBoolean;
913
+ results: z.ZodArray<z.ZodObject<{
914
+ filePath: z.ZodString;
915
+ editsApplied: z.ZodNumber;
916
+ errors: z.ZodArray<z.ZodString, "many">;
917
+ backup: z.ZodOptional<z.ZodString>;
918
+ }, "strip", z.ZodTypeAny, {
919
+ errors: string[];
920
+ filePath: string;
921
+ editsApplied: number;
922
+ backup?: string | undefined;
923
+ }, {
924
+ errors: string[];
925
+ filePath: string;
926
+ editsApplied: number;
927
+ backup?: string | undefined;
928
+ }>, "many">;
929
+ message: z.ZodString;
930
+ }, "strip", z.ZodTypeAny, {
931
+ message: string;
932
+ success: boolean;
933
+ results: {
934
+ errors: string[];
935
+ filePath: string;
936
+ editsApplied: number;
937
+ backup?: string | undefined;
938
+ }[];
939
+ }, {
940
+ message: string;
941
+ success: boolean;
942
+ results: {
943
+ errors: string[];
944
+ filePath: string;
945
+ editsApplied: number;
946
+ backup?: string | undefined;
947
+ }[];
948
+ }>;
949
+ execute: (inputData: {
950
+ operations: {
530
951
  filePath: string;
531
952
  edits: {
532
953
  replaceAll: boolean;
@@ -583,6 +1004,44 @@ export declare class AgentBuilderDefaults {
583
1004
  backup?: string | undefined;
584
1005
  linesReplaced?: number | undefined;
585
1006
  }>, any, any, import("@mastra/core/tools").ToolExecutionContext<any, any>> & {
1007
+ inputSchema: z.ZodObject<{
1008
+ filePath: z.ZodString;
1009
+ startLine: z.ZodNumber;
1010
+ endLine: z.ZodNumber;
1011
+ newContent: z.ZodString;
1012
+ createBackup: z.ZodDefault<z.ZodBoolean>;
1013
+ }, "strip", z.ZodTypeAny, {
1014
+ filePath: string;
1015
+ startLine: number;
1016
+ endLine: number;
1017
+ createBackup: boolean;
1018
+ newContent: string;
1019
+ }, {
1020
+ filePath: string;
1021
+ startLine: number;
1022
+ endLine: number;
1023
+ newContent: string;
1024
+ createBackup?: boolean | undefined;
1025
+ }>;
1026
+ outputSchema: z.ZodObject<{
1027
+ success: z.ZodBoolean;
1028
+ message: z.ZodString;
1029
+ linesReplaced: z.ZodOptional<z.ZodNumber>;
1030
+ backup: z.ZodOptional<z.ZodString>;
1031
+ error: z.ZodOptional<z.ZodString>;
1032
+ }, "strip", z.ZodTypeAny, {
1033
+ message: string;
1034
+ success: boolean;
1035
+ error?: string | undefined;
1036
+ backup?: string | undefined;
1037
+ linesReplaced?: number | undefined;
1038
+ }, {
1039
+ message: string;
1040
+ success: boolean;
1041
+ error?: string | undefined;
1042
+ backup?: string | undefined;
1043
+ linesReplaced?: number | undefined;
1044
+ }>;
586
1045
  execute: (inputData: {
587
1046
  filePath: string;
588
1047
  startLine: number;
@@ -651,6 +1110,61 @@ export declare class AgentBuilderDefaults {
651
1110
  totalLines: number;
652
1111
  error?: string | undefined;
653
1112
  }>, any, any, import("@mastra/core/tools").ToolExecutionContext<any, any>> & {
1113
+ inputSchema: z.ZodObject<{
1114
+ filePath: z.ZodString;
1115
+ startLine: z.ZodOptional<z.ZodNumber>;
1116
+ endLine: z.ZodOptional<z.ZodNumber>;
1117
+ context: z.ZodDefault<z.ZodNumber>;
1118
+ }, "strip", z.ZodTypeAny, {
1119
+ filePath: string;
1120
+ context: number;
1121
+ startLine?: number | undefined;
1122
+ endLine?: number | undefined;
1123
+ }, {
1124
+ filePath: string;
1125
+ startLine?: number | undefined;
1126
+ endLine?: number | undefined;
1127
+ context?: number | undefined;
1128
+ }>;
1129
+ outputSchema: z.ZodObject<{
1130
+ success: z.ZodBoolean;
1131
+ lines: z.ZodArray<z.ZodObject<{
1132
+ lineNumber: z.ZodNumber;
1133
+ content: z.ZodString;
1134
+ isTarget: z.ZodBoolean;
1135
+ }, "strip", z.ZodTypeAny, {
1136
+ content: string;
1137
+ lineNumber: number;
1138
+ isTarget: boolean;
1139
+ }, {
1140
+ content: string;
1141
+ lineNumber: number;
1142
+ isTarget: boolean;
1143
+ }>, "many">;
1144
+ totalLines: z.ZodNumber;
1145
+ message: z.ZodString;
1146
+ error: z.ZodOptional<z.ZodString>;
1147
+ }, "strip", z.ZodTypeAny, {
1148
+ message: string;
1149
+ success: boolean;
1150
+ lines: {
1151
+ content: string;
1152
+ lineNumber: number;
1153
+ isTarget: boolean;
1154
+ }[];
1155
+ totalLines: number;
1156
+ error?: string | undefined;
1157
+ }, {
1158
+ message: string;
1159
+ success: boolean;
1160
+ lines: {
1161
+ content: string;
1162
+ lineNumber: number;
1163
+ isTarget: boolean;
1164
+ }[];
1165
+ totalLines: number;
1166
+ error?: string | undefined;
1167
+ }>;
654
1168
  execute: (inputData: {
655
1169
  filePath: string;
656
1170
  context: number;
@@ -817,6 +1331,156 @@ export declare class AgentBuilderDefaults {
817
1331
  patterns: string[];
818
1332
  };
819
1333
  }>, any, any, import("@mastra/core/tools").ToolExecutionContext<any, any>> & {
1334
+ inputSchema: z.ZodObject<{
1335
+ query: z.ZodString;
1336
+ type: z.ZodDefault<z.ZodEnum<["text", "regex", "fuzzy", "semantic"]>>;
1337
+ scope: z.ZodOptional<z.ZodObject<{
1338
+ paths: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
1339
+ fileTypes: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
1340
+ excludePaths: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
1341
+ maxResults: z.ZodDefault<z.ZodNumber>;
1342
+ }, "strip", z.ZodTypeAny, {
1343
+ maxResults: number;
1344
+ paths?: string[] | undefined;
1345
+ fileTypes?: string[] | undefined;
1346
+ excludePaths?: string[] | undefined;
1347
+ }, {
1348
+ paths?: string[] | undefined;
1349
+ fileTypes?: string[] | undefined;
1350
+ excludePaths?: string[] | undefined;
1351
+ maxResults?: number | undefined;
1352
+ }>>;
1353
+ context: z.ZodOptional<z.ZodObject<{
1354
+ beforeLines: z.ZodDefault<z.ZodNumber>;
1355
+ afterLines: z.ZodDefault<z.ZodNumber>;
1356
+ includeDefinitions: z.ZodDefault<z.ZodBoolean>;
1357
+ }, "strip", z.ZodTypeAny, {
1358
+ beforeLines: number;
1359
+ afterLines: number;
1360
+ includeDefinitions: boolean;
1361
+ }, {
1362
+ beforeLines?: number | undefined;
1363
+ afterLines?: number | undefined;
1364
+ includeDefinitions?: boolean | undefined;
1365
+ }>>;
1366
+ }, "strip", z.ZodTypeAny, {
1367
+ type: "text" | "regex" | "fuzzy" | "semantic";
1368
+ query: string;
1369
+ context?: {
1370
+ beforeLines: number;
1371
+ afterLines: number;
1372
+ includeDefinitions: boolean;
1373
+ } | undefined;
1374
+ scope?: {
1375
+ maxResults: number;
1376
+ paths?: string[] | undefined;
1377
+ fileTypes?: string[] | undefined;
1378
+ excludePaths?: string[] | undefined;
1379
+ } | undefined;
1380
+ }, {
1381
+ query: string;
1382
+ type?: "text" | "regex" | "fuzzy" | "semantic" | undefined;
1383
+ context?: {
1384
+ beforeLines?: number | undefined;
1385
+ afterLines?: number | undefined;
1386
+ includeDefinitions?: boolean | undefined;
1387
+ } | undefined;
1388
+ scope?: {
1389
+ paths?: string[] | undefined;
1390
+ fileTypes?: string[] | undefined;
1391
+ excludePaths?: string[] | undefined;
1392
+ maxResults?: number | undefined;
1393
+ } | undefined;
1394
+ }>;
1395
+ outputSchema: z.ZodObject<{
1396
+ success: z.ZodBoolean;
1397
+ matches: z.ZodArray<z.ZodObject<{
1398
+ file: z.ZodString;
1399
+ line: z.ZodNumber;
1400
+ column: z.ZodOptional<z.ZodNumber>;
1401
+ match: z.ZodString;
1402
+ context: z.ZodObject<{
1403
+ before: z.ZodArray<z.ZodString, "many">;
1404
+ after: z.ZodArray<z.ZodString, "many">;
1405
+ }, "strip", z.ZodTypeAny, {
1406
+ before: string[];
1407
+ after: string[];
1408
+ }, {
1409
+ before: string[];
1410
+ after: string[];
1411
+ }>;
1412
+ relevance: z.ZodOptional<z.ZodNumber>;
1413
+ }, "strip", z.ZodTypeAny, {
1414
+ file: string;
1415
+ match: string;
1416
+ context: {
1417
+ before: string[];
1418
+ after: string[];
1419
+ };
1420
+ line: number;
1421
+ column?: number | undefined;
1422
+ relevance?: number | undefined;
1423
+ }, {
1424
+ file: string;
1425
+ match: string;
1426
+ context: {
1427
+ before: string[];
1428
+ after: string[];
1429
+ };
1430
+ line: number;
1431
+ column?: number | undefined;
1432
+ relevance?: number | undefined;
1433
+ }>, "many">;
1434
+ summary: z.ZodObject<{
1435
+ totalMatches: z.ZodNumber;
1436
+ filesSearched: z.ZodNumber;
1437
+ patterns: z.ZodArray<z.ZodString, "many">;
1438
+ }, "strip", z.ZodTypeAny, {
1439
+ totalMatches: number;
1440
+ filesSearched: number;
1441
+ patterns: string[];
1442
+ }, {
1443
+ totalMatches: number;
1444
+ filesSearched: number;
1445
+ patterns: string[];
1446
+ }>;
1447
+ }, "strip", z.ZodTypeAny, {
1448
+ success: boolean;
1449
+ matches: {
1450
+ file: string;
1451
+ match: string;
1452
+ context: {
1453
+ before: string[];
1454
+ after: string[];
1455
+ };
1456
+ line: number;
1457
+ column?: number | undefined;
1458
+ relevance?: number | undefined;
1459
+ }[];
1460
+ summary: {
1461
+ totalMatches: number;
1462
+ filesSearched: number;
1463
+ patterns: string[];
1464
+ };
1465
+ }, {
1466
+ success: boolean;
1467
+ matches: {
1468
+ file: string;
1469
+ match: string;
1470
+ context: {
1471
+ before: string[];
1472
+ after: string[];
1473
+ };
1474
+ line: number;
1475
+ column?: number | undefined;
1476
+ relevance?: number | undefined;
1477
+ }[];
1478
+ summary: {
1479
+ totalMatches: number;
1480
+ filesSearched: number;
1481
+ patterns: string[];
1482
+ };
1483
+ }>;
820
1484
  execute: (inputData: {
821
1485
  type: "text" | "regex" | "fuzzy" | "semantic";
822
1486
  query: string;
@@ -876,7 +1540,7 @@ export declare class AgentBuilderDefaults {
876
1540
  }, "strip", z.ZodTypeAny, {
877
1541
  message: string;
878
1542
  type: "build" | "typescript" | "eslint" | "schema" | "test";
879
- severity: "error" | "info" | "warning";
1543
+ severity: "error" | "warning" | "info";
880
1544
  code?: string | undefined;
881
1545
  file?: string | undefined;
882
1546
  line?: number | undefined;
@@ -884,7 +1548,7 @@ export declare class AgentBuilderDefaults {
884
1548
  }, {
885
1549
  message: string;
886
1550
  type: "build" | "typescript" | "eslint" | "schema" | "test";
887
- severity: "error" | "info" | "warning";
1551
+ severity: "error" | "warning" | "info";
888
1552
  code?: string | undefined;
889
1553
  file?: string | undefined;
890
1554
  line?: number | undefined;
@@ -911,7 +1575,7 @@ export declare class AgentBuilderDefaults {
911
1575
  errors: {
912
1576
  message: string;
913
1577
  type: "build" | "typescript" | "eslint" | "schema" | "test";
914
- severity: "error" | "info" | "warning";
1578
+ severity: "error" | "warning" | "info";
915
1579
  code?: string | undefined;
916
1580
  file?: string | undefined;
917
1581
  line?: number | undefined;
@@ -928,7 +1592,7 @@ export declare class AgentBuilderDefaults {
928
1592
  errors: {
929
1593
  message: string;
930
1594
  type: "build" | "typescript" | "eslint" | "schema" | "test";
931
- severity: "error" | "info" | "warning";
1595
+ severity: "error" | "warning" | "info";
932
1596
  code?: string | undefined;
933
1597
  file?: string | undefined;
934
1598
  line?: number | undefined;
@@ -941,16 +1605,107 @@ export declare class AgentBuilderDefaults {
941
1605
  validationsFailed: string[];
942
1606
  };
943
1607
  }>, any, any, import("@mastra/core/tools").ToolExecutionContext<any, any>> & {
944
- execute: (inputData: {
1608
+ inputSchema: z.ZodObject<{
1609
+ projectPath: z.ZodOptional<z.ZodString>;
1610
+ validationType: z.ZodArray<z.ZodEnum<["types", "lint", "schemas", "tests", "build"]>, "many">;
1611
+ files: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
1612
+ }, "strip", z.ZodTypeAny, {
945
1613
  validationType: ("types" | "schemas" | "tests" | "lint" | "build")[];
946
1614
  projectPath?: string | undefined;
947
1615
  files?: string[] | undefined;
948
- }, context?: import("@mastra/core/tools").ToolExecutionContext<any, any> | undefined) => Promise<{
949
- valid: boolean;
950
- errors: {
1616
+ }, {
1617
+ validationType: ("types" | "schemas" | "tests" | "lint" | "build")[];
1618
+ projectPath?: string | undefined;
1619
+ files?: string[] | undefined;
1620
+ }>;
1621
+ outputSchema: z.ZodObject<{
1622
+ valid: z.ZodBoolean;
1623
+ errors: z.ZodArray<z.ZodObject<{
1624
+ type: z.ZodEnum<["typescript", "eslint", "schema", "test", "build"]>;
1625
+ severity: z.ZodEnum<["error", "warning", "info"]>;
1626
+ message: z.ZodString;
1627
+ file: z.ZodOptional<z.ZodString>;
1628
+ line: z.ZodOptional<z.ZodNumber>;
1629
+ column: z.ZodOptional<z.ZodNumber>;
1630
+ code: z.ZodOptional<z.ZodString>;
1631
+ }, "strip", z.ZodTypeAny, {
951
1632
  message: string;
952
1633
  type: "build" | "typescript" | "eslint" | "schema" | "test";
953
- severity: "error" | "info" | "warning";
1634
+ severity: "error" | "warning" | "info";
1635
+ code?: string | undefined;
1636
+ file?: string | undefined;
1637
+ line?: number | undefined;
1638
+ column?: number | undefined;
1639
+ }, {
1640
+ message: string;
1641
+ type: "build" | "typescript" | "eslint" | "schema" | "test";
1642
+ severity: "error" | "warning" | "info";
1643
+ code?: string | undefined;
1644
+ file?: string | undefined;
1645
+ line?: number | undefined;
1646
+ column?: number | undefined;
1647
+ }>, "many">;
1648
+ summary: z.ZodObject<{
1649
+ totalErrors: z.ZodNumber;
1650
+ totalWarnings: z.ZodNumber;
1651
+ validationsPassed: z.ZodArray<z.ZodString, "many">;
1652
+ validationsFailed: z.ZodArray<z.ZodString, "many">;
1653
+ }, "strip", z.ZodTypeAny, {
1654
+ totalErrors: number;
1655
+ totalWarnings: number;
1656
+ validationsPassed: string[];
1657
+ validationsFailed: string[];
1658
+ }, {
1659
+ totalErrors: number;
1660
+ totalWarnings: number;
1661
+ validationsPassed: string[];
1662
+ validationsFailed: string[];
1663
+ }>;
1664
+ }, "strip", z.ZodTypeAny, {
1665
+ valid: boolean;
1666
+ errors: {
1667
+ message: string;
1668
+ type: "build" | "typescript" | "eslint" | "schema" | "test";
1669
+ severity: "error" | "warning" | "info";
1670
+ code?: string | undefined;
1671
+ file?: string | undefined;
1672
+ line?: number | undefined;
1673
+ column?: number | undefined;
1674
+ }[];
1675
+ summary: {
1676
+ totalErrors: number;
1677
+ totalWarnings: number;
1678
+ validationsPassed: string[];
1679
+ validationsFailed: string[];
1680
+ };
1681
+ }, {
1682
+ valid: boolean;
1683
+ errors: {
1684
+ message: string;
1685
+ type: "build" | "typescript" | "eslint" | "schema" | "test";
1686
+ severity: "error" | "warning" | "info";
1687
+ code?: string | undefined;
1688
+ file?: string | undefined;
1689
+ line?: number | undefined;
1690
+ column?: number | undefined;
1691
+ }[];
1692
+ summary: {
1693
+ totalErrors: number;
1694
+ totalWarnings: number;
1695
+ validationsPassed: string[];
1696
+ validationsFailed: string[];
1697
+ };
1698
+ }>;
1699
+ execute: (inputData: {
1700
+ validationType: ("types" | "schemas" | "tests" | "lint" | "build")[];
1701
+ projectPath?: string | undefined;
1702
+ files?: string[] | undefined;
1703
+ }, context?: import("@mastra/core/tools").ToolExecutionContext<any, any> | undefined) => Promise<{
1704
+ valid: boolean;
1705
+ errors: {
1706
+ message: string;
1707
+ type: "build" | "typescript" | "eslint" | "schema" | "test";
1708
+ severity: "error" | "warning" | "info";
954
1709
  code?: string | undefined;
955
1710
  file?: string | undefined;
956
1711
  line?: number | undefined;
@@ -996,15 +1751,15 @@ export declare class AgentBuilderDefaults {
996
1751
  publishDate: z.ZodOptional<z.ZodString>;
997
1752
  relevanceScore: z.ZodOptional<z.ZodNumber>;
998
1753
  }, "strip", z.ZodTypeAny, {
999
- title: string;
1000
1754
  url: string;
1755
+ title: string;
1001
1756
  snippet: string;
1002
1757
  domain: string;
1003
1758
  publishDate?: string | undefined;
1004
1759
  relevanceScore?: number | undefined;
1005
1760
  }, {
1006
- title: string;
1007
1761
  url: string;
1762
+ title: string;
1008
1763
  snippet: string;
1009
1764
  domain: string;
1010
1765
  publishDate?: string | undefined;
@@ -1017,8 +1772,8 @@ export declare class AgentBuilderDefaults {
1017
1772
  }, "strip", z.ZodTypeAny, {
1018
1773
  success: boolean;
1019
1774
  results: {
1020
- title: string;
1021
1775
  url: string;
1776
+ title: string;
1022
1777
  snippet: string;
1023
1778
  domain: string;
1024
1779
  publishDate?: string | undefined;
@@ -1032,8 +1787,8 @@ export declare class AgentBuilderDefaults {
1032
1787
  }, {
1033
1788
  success: boolean;
1034
1789
  results: {
1035
- title: string;
1036
1790
  url: string;
1791
+ title: string;
1037
1792
  snippet: string;
1038
1793
  domain: string;
1039
1794
  publishDate?: string | undefined;
@@ -1045,6 +1800,88 @@ export declare class AgentBuilderDefaults {
1045
1800
  error?: string | undefined;
1046
1801
  suggestions?: string[] | undefined;
1047
1802
  }>, any, any, import("@mastra/core/tools").ToolExecutionContext<any, any>> & {
1803
+ inputSchema: z.ZodObject<{
1804
+ query: z.ZodString;
1805
+ maxResults: z.ZodDefault<z.ZodNumber>;
1806
+ region: z.ZodDefault<z.ZodString>;
1807
+ language: z.ZodDefault<z.ZodString>;
1808
+ includeImages: z.ZodDefault<z.ZodBoolean>;
1809
+ dateRange: z.ZodDefault<z.ZodEnum<["day", "week", "month", "year", "all"]>>;
1810
+ }, "strip", z.ZodTypeAny, {
1811
+ query: string;
1812
+ maxResults: number;
1813
+ region: string;
1814
+ language: string;
1815
+ includeImages: boolean;
1816
+ dateRange: "day" | "week" | "month" | "year" | "all";
1817
+ }, {
1818
+ query: string;
1819
+ maxResults?: number | undefined;
1820
+ region?: string | undefined;
1821
+ language?: string | undefined;
1822
+ includeImages?: boolean | undefined;
1823
+ dateRange?: "day" | "week" | "month" | "year" | "all" | undefined;
1824
+ }>;
1825
+ outputSchema: z.ZodObject<{
1826
+ success: z.ZodBoolean;
1827
+ query: z.ZodString;
1828
+ results: z.ZodArray<z.ZodObject<{
1829
+ title: z.ZodString;
1830
+ url: z.ZodString;
1831
+ snippet: z.ZodString;
1832
+ domain: z.ZodString;
1833
+ publishDate: z.ZodOptional<z.ZodString>;
1834
+ relevanceScore: z.ZodOptional<z.ZodNumber>;
1835
+ }, "strip", z.ZodTypeAny, {
1836
+ url: string;
1837
+ title: string;
1838
+ snippet: string;
1839
+ domain: string;
1840
+ publishDate?: string | undefined;
1841
+ relevanceScore?: number | undefined;
1842
+ }, {
1843
+ url: string;
1844
+ title: string;
1845
+ snippet: string;
1846
+ domain: string;
1847
+ publishDate?: string | undefined;
1848
+ relevanceScore?: number | undefined;
1849
+ }>, "many">;
1850
+ totalResults: z.ZodNumber;
1851
+ searchTime: z.ZodNumber;
1852
+ suggestions: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
1853
+ error: z.ZodOptional<z.ZodString>;
1854
+ }, "strip", z.ZodTypeAny, {
1855
+ success: boolean;
1856
+ results: {
1857
+ url: string;
1858
+ title: string;
1859
+ snippet: string;
1860
+ domain: string;
1861
+ publishDate?: string | undefined;
1862
+ relevanceScore?: number | undefined;
1863
+ }[];
1864
+ query: string;
1865
+ totalResults: number;
1866
+ searchTime: number;
1867
+ error?: string | undefined;
1868
+ suggestions?: string[] | undefined;
1869
+ }, {
1870
+ success: boolean;
1871
+ results: {
1872
+ url: string;
1873
+ title: string;
1874
+ snippet: string;
1875
+ domain: string;
1876
+ publishDate?: string | undefined;
1877
+ relevanceScore?: number | undefined;
1878
+ }[];
1879
+ query: string;
1880
+ totalResults: number;
1881
+ searchTime: number;
1882
+ error?: string | undefined;
1883
+ suggestions?: string[] | undefined;
1884
+ }>;
1048
1885
  execute: (inputData: {
1049
1886
  query: string;
1050
1887
  maxResults: number;
@@ -1055,8 +1892,8 @@ export declare class AgentBuilderDefaults {
1055
1892
  }, context?: import("@mastra/core/tools").ToolExecutionContext<any, any> | undefined) => Promise<{
1056
1893
  success: boolean;
1057
1894
  results: {
1058
- title: string;
1059
1895
  url: string;
1896
+ title: string;
1060
1897
  snippet: string;
1061
1898
  domain: string;
1062
1899
  publishDate?: string | undefined;
@@ -1140,6 +1977,78 @@ export declare class AgentBuilderDefaults {
1140
1977
  completionId: string;
1141
1978
  confidence: number;
1142
1979
  }>, any, any, import("@mastra/core/tools").ToolExecutionContext<any, any>> & {
1980
+ inputSchema: z.ZodObject<{
1981
+ summary: z.ZodString;
1982
+ changes: z.ZodArray<z.ZodObject<{
1983
+ type: z.ZodEnum<["file_created", "file_modified", "file_deleted", "command_executed", "dependency_added"]>;
1984
+ description: z.ZodString;
1985
+ path: z.ZodOptional<z.ZodString>;
1986
+ }, "strip", z.ZodTypeAny, {
1987
+ type: "file_created" | "file_modified" | "file_deleted" | "command_executed" | "dependency_added";
1988
+ description: string;
1989
+ path?: string | undefined;
1990
+ }, {
1991
+ type: "file_created" | "file_modified" | "file_deleted" | "command_executed" | "dependency_added";
1992
+ description: string;
1993
+ path?: string | undefined;
1994
+ }>, "many">;
1995
+ validation: z.ZodObject<{
1996
+ testsRun: z.ZodDefault<z.ZodBoolean>;
1997
+ buildsSuccessfully: z.ZodDefault<z.ZodBoolean>;
1998
+ manualTestingRequired: z.ZodDefault<z.ZodBoolean>;
1999
+ }, "strip", z.ZodTypeAny, {
2000
+ testsRun: boolean;
2001
+ buildsSuccessfully: boolean;
2002
+ manualTestingRequired: boolean;
2003
+ }, {
2004
+ testsRun?: boolean | undefined;
2005
+ buildsSuccessfully?: boolean | undefined;
2006
+ manualTestingRequired?: boolean | undefined;
2007
+ }>;
2008
+ nextSteps: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
2009
+ }, "strip", z.ZodTypeAny, {
2010
+ validation: {
2011
+ testsRun: boolean;
2012
+ buildsSuccessfully: boolean;
2013
+ manualTestingRequired: boolean;
2014
+ };
2015
+ summary: string;
2016
+ changes: {
2017
+ type: "file_created" | "file_modified" | "file_deleted" | "command_executed" | "dependency_added";
2018
+ description: string;
2019
+ path?: string | undefined;
2020
+ }[];
2021
+ nextSteps?: string[] | undefined;
2022
+ }, {
2023
+ validation: {
2024
+ testsRun?: boolean | undefined;
2025
+ buildsSuccessfully?: boolean | undefined;
2026
+ manualTestingRequired?: boolean | undefined;
2027
+ };
2028
+ summary: string;
2029
+ changes: {
2030
+ type: "file_created" | "file_modified" | "file_deleted" | "command_executed" | "dependency_added";
2031
+ description: string;
2032
+ path?: string | undefined;
2033
+ }[];
2034
+ nextSteps?: string[] | undefined;
2035
+ }>;
2036
+ outputSchema: z.ZodObject<{
2037
+ completionId: z.ZodString;
2038
+ status: z.ZodEnum<["completed", "needs_review", "needs_testing"]>;
2039
+ summary: z.ZodString;
2040
+ confidence: z.ZodNumber;
2041
+ }, "strip", z.ZodTypeAny, {
2042
+ status: "completed" | "needs_review" | "needs_testing";
2043
+ summary: string;
2044
+ completionId: string;
2045
+ confidence: number;
2046
+ }, {
2047
+ status: "completed" | "needs_review" | "needs_testing";
2048
+ summary: string;
2049
+ completionId: string;
2050
+ confidence: number;
2051
+ }>;
1143
2052
  execute: (inputData: {
1144
2053
  validation: {
1145
2054
  testsRun: boolean;
@@ -1199,19 +2108,72 @@ export declare class AgentBuilderDefaults {
1199
2108
  success: boolean;
1200
2109
  message?: string | undefined;
1201
2110
  error?: string | undefined;
1202
- warnings?: string[] | undefined;
1203
2111
  installed?: string[] | undefined;
1204
2112
  upgraded?: string[] | undefined;
2113
+ warnings?: string[] | undefined;
1205
2114
  details?: string | undefined;
1206
2115
  }, {
1207
2116
  success: boolean;
1208
2117
  message?: string | undefined;
1209
2118
  error?: string | undefined;
1210
- warnings?: string[] | undefined;
1211
2119
  installed?: string[] | undefined;
1212
2120
  upgraded?: string[] | undefined;
2121
+ warnings?: string[] | undefined;
1213
2122
  details?: string | undefined;
1214
2123
  }>, any, any, import("@mastra/core/tools").ToolExecutionContext<any, any>> & {
2124
+ inputSchema: z.ZodObject<{
2125
+ action: z.ZodEnum<["create", "install", "upgrade"]>;
2126
+ features: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
2127
+ packages: z.ZodOptional<z.ZodArray<z.ZodObject<{
2128
+ name: z.ZodString;
2129
+ version: z.ZodOptional<z.ZodString>;
2130
+ }, "strip", z.ZodTypeAny, {
2131
+ name: string;
2132
+ version?: string | undefined;
2133
+ }, {
2134
+ name: string;
2135
+ version?: string | undefined;
2136
+ }>, "many">>;
2137
+ }, "strip", z.ZodTypeAny, {
2138
+ action: "create" | "install" | "upgrade";
2139
+ features?: string[] | undefined;
2140
+ packages?: {
2141
+ name: string;
2142
+ version?: string | undefined;
2143
+ }[] | undefined;
2144
+ }, {
2145
+ action: "create" | "install" | "upgrade";
2146
+ features?: string[] | undefined;
2147
+ packages?: {
2148
+ name: string;
2149
+ version?: string | undefined;
2150
+ }[] | undefined;
2151
+ }>;
2152
+ outputSchema: z.ZodObject<{
2153
+ success: z.ZodBoolean;
2154
+ installed: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
2155
+ upgraded: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
2156
+ warnings: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
2157
+ message: z.ZodOptional<z.ZodString>;
2158
+ details: z.ZodOptional<z.ZodString>;
2159
+ error: z.ZodOptional<z.ZodString>;
2160
+ }, "strip", z.ZodTypeAny, {
2161
+ success: boolean;
2162
+ message?: string | undefined;
2163
+ error?: string | undefined;
2164
+ installed?: string[] | undefined;
2165
+ upgraded?: string[] | undefined;
2166
+ warnings?: string[] | undefined;
2167
+ details?: string | undefined;
2168
+ }, {
2169
+ success: boolean;
2170
+ message?: string | undefined;
2171
+ error?: string | undefined;
2172
+ installed?: string[] | undefined;
2173
+ upgraded?: string[] | undefined;
2174
+ warnings?: string[] | undefined;
2175
+ details?: string | undefined;
2176
+ }>;
1215
2177
  execute: (inputData: {
1216
2178
  action: "create" | "install" | "upgrade";
1217
2179
  features?: string[] | undefined;
@@ -1223,9 +2185,9 @@ export declare class AgentBuilderDefaults {
1223
2185
  success: boolean;
1224
2186
  message?: string | undefined;
1225
2187
  error?: string | undefined;
1226
- warnings?: string[] | undefined;
1227
2188
  installed?: string[] | undefined;
1228
2189
  upgraded?: string[] | undefined;
2190
+ warnings?: string[] | undefined;
1229
2191
  details?: string | undefined;
1230
2192
  }>;
1231
2193
  };
@@ -1266,6 +2228,44 @@ export declare class AgentBuilderDefaults {
1266
2228
  port?: number | undefined;
1267
2229
  pid?: number | undefined;
1268
2230
  }>, any, any, import("@mastra/core/tools").ToolExecutionContext<any, any>> & {
2231
+ inputSchema: z.ZodObject<{
2232
+ action: z.ZodEnum<["start", "stop", "restart", "status"]>;
2233
+ port: z.ZodDefault<z.ZodOptional<z.ZodNumber>>;
2234
+ }, "strip", z.ZodTypeAny, {
2235
+ action: "status" | "stop" | "start" | "restart";
2236
+ port: number;
2237
+ }, {
2238
+ action: "status" | "stop" | "start" | "restart";
2239
+ port?: number | undefined;
2240
+ }>;
2241
+ outputSchema: z.ZodObject<{
2242
+ success: z.ZodBoolean;
2243
+ status: z.ZodEnum<["running", "stopped", "starting", "stopping", "unknown"]>;
2244
+ pid: z.ZodOptional<z.ZodNumber>;
2245
+ port: z.ZodOptional<z.ZodNumber>;
2246
+ url: z.ZodOptional<z.ZodString>;
2247
+ message: z.ZodOptional<z.ZodString>;
2248
+ stdout: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
2249
+ error: z.ZodOptional<z.ZodString>;
2250
+ }, "strip", z.ZodTypeAny, {
2251
+ status: "unknown" | "running" | "stopped" | "starting" | "stopping";
2252
+ success: boolean;
2253
+ message?: string | undefined;
2254
+ error?: string | undefined;
2255
+ stdout?: string[] | undefined;
2256
+ url?: string | undefined;
2257
+ port?: number | undefined;
2258
+ pid?: number | undefined;
2259
+ }, {
2260
+ status: "unknown" | "running" | "stopped" | "starting" | "stopping";
2261
+ success: boolean;
2262
+ message?: string | undefined;
2263
+ error?: string | undefined;
2264
+ stdout?: string[] | undefined;
2265
+ url?: string | undefined;
2266
+ port?: number | undefined;
2267
+ pid?: number | undefined;
2268
+ }>;
1269
2269
  execute: (inputData: {
1270
2270
  action: "status" | "stop" | "start" | "restart";
1271
2271
  port: number;
@@ -1288,8 +2288,8 @@ export declare class AgentBuilderDefaults {
1288
2288
  body: z.ZodOptional<z.ZodAny>;
1289
2289
  timeout: z.ZodDefault<z.ZodOptional<z.ZodNumber>>;
1290
2290
  }, "strip", z.ZodTypeAny, {
1291
- timeout: number;
1292
2291
  url: string;
2292
+ timeout: number;
1293
2293
  method: "GET" | "POST" | "PUT" | "DELETE" | "PATCH";
1294
2294
  headers?: Record<string, string> | undefined;
1295
2295
  baseUrl?: string | undefined;
@@ -1329,9 +2329,59 @@ export declare class AgentBuilderDefaults {
1329
2329
  headers?: Record<string, string> | undefined;
1330
2330
  statusText?: string | undefined;
1331
2331
  }>, any, any, import("@mastra/core/tools").ToolExecutionContext<any, any>> & {
1332
- execute: (inputData: {
2332
+ inputSchema: z.ZodObject<{
2333
+ method: z.ZodEnum<["GET", "POST", "PUT", "DELETE", "PATCH"]>;
2334
+ url: z.ZodString;
2335
+ baseUrl: z.ZodOptional<z.ZodString>;
2336
+ headers: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
2337
+ body: z.ZodOptional<z.ZodAny>;
2338
+ timeout: z.ZodDefault<z.ZodOptional<z.ZodNumber>>;
2339
+ }, "strip", z.ZodTypeAny, {
2340
+ url: string;
1333
2341
  timeout: number;
2342
+ method: "GET" | "POST" | "PUT" | "DELETE" | "PATCH";
2343
+ headers?: Record<string, string> | undefined;
2344
+ baseUrl?: string | undefined;
2345
+ body?: any;
2346
+ }, {
2347
+ url: string;
2348
+ method: "GET" | "POST" | "PUT" | "DELETE" | "PATCH";
2349
+ headers?: Record<string, string> | undefined;
2350
+ timeout?: number | undefined;
2351
+ baseUrl?: string | undefined;
2352
+ body?: any;
2353
+ }>;
2354
+ outputSchema: z.ZodObject<{
2355
+ success: z.ZodBoolean;
2356
+ status: z.ZodOptional<z.ZodNumber>;
2357
+ statusText: z.ZodOptional<z.ZodString>;
2358
+ headers: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
2359
+ data: z.ZodOptional<z.ZodAny>;
2360
+ error: z.ZodOptional<z.ZodString>;
2361
+ url: z.ZodString;
2362
+ method: z.ZodString;
2363
+ }, "strip", z.ZodTypeAny, {
2364
+ success: boolean;
2365
+ url: string;
2366
+ method: string;
2367
+ status?: number | undefined;
2368
+ error?: string | undefined;
2369
+ data?: any;
2370
+ headers?: Record<string, string> | undefined;
2371
+ statusText?: string | undefined;
2372
+ }, {
2373
+ success: boolean;
2374
+ url: string;
2375
+ method: string;
2376
+ status?: number | undefined;
2377
+ error?: string | undefined;
2378
+ data?: any;
2379
+ headers?: Record<string, string> | undefined;
2380
+ statusText?: string | undefined;
2381
+ }>;
2382
+ execute: (inputData: {
1334
2383
  url: string;
2384
+ timeout: number;
1335
2385
  method: "GET" | "POST" | "PUT" | "DELETE" | "PATCH";
1336
2386
  headers?: Record<string, string> | undefined;
1337
2387
  baseUrl?: string | undefined;