@mastra/agent-builder 1.0.0-beta.0 → 1.0.0-beta.10

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.
@@ -47,10 +47,9 @@ export declare class AgentBuilderDefaults {
47
47
  totalLines: number;
48
48
  lastModified: string;
49
49
  }>>;
50
- error: z.ZodOptional<z.ZodString>;
50
+ errorMessage: z.ZodOptional<z.ZodString>;
51
51
  }, "strip", z.ZodTypeAny, {
52
52
  success: boolean;
53
- error?: string | undefined;
54
53
  content?: string | undefined;
55
54
  lines?: string[] | undefined;
56
55
  metadata?: {
@@ -59,9 +58,9 @@ export declare class AgentBuilderDefaults {
59
58
  totalLines: number;
60
59
  lastModified: string;
61
60
  } | undefined;
61
+ errorMessage?: string | undefined;
62
62
  }, {
63
63
  success: boolean;
64
- error?: string | undefined;
65
64
  content?: string | undefined;
66
65
  lines?: string[] | undefined;
67
66
  metadata?: {
@@ -70,7 +69,8 @@ export declare class AgentBuilderDefaults {
70
69
  totalLines: number;
71
70
  lastModified: string;
72
71
  } | undefined;
73
- }>, any, any, import("@mastra/core/tools").ToolExecutionContext<any, any>> & {
72
+ errorMessage?: string | undefined;
73
+ }>, any, any, import("@mastra/core/tools").ToolExecutionContext<any, any>, "read-file"> & {
74
74
  inputSchema: z.ZodObject<{
75
75
  filePath: z.ZodString;
76
76
  startLine: z.ZodOptional<z.ZodNumber>;
@@ -107,10 +107,9 @@ export declare class AgentBuilderDefaults {
107
107
  totalLines: number;
108
108
  lastModified: string;
109
109
  }>>;
110
- error: z.ZodOptional<z.ZodString>;
110
+ errorMessage: z.ZodOptional<z.ZodString>;
111
111
  }, "strip", z.ZodTypeAny, {
112
112
  success: boolean;
113
- error?: string | undefined;
114
113
  content?: string | undefined;
115
114
  lines?: string[] | undefined;
116
115
  metadata?: {
@@ -119,9 +118,9 @@ export declare class AgentBuilderDefaults {
119
118
  totalLines: number;
120
119
  lastModified: string;
121
120
  } | undefined;
121
+ errorMessage?: string | undefined;
122
122
  }, {
123
123
  success: boolean;
124
- error?: string | undefined;
125
124
  content?: string | undefined;
126
125
  lines?: string[] | undefined;
127
126
  metadata?: {
@@ -130,6 +129,7 @@ export declare class AgentBuilderDefaults {
130
129
  totalLines: number;
131
130
  lastModified: string;
132
131
  } | undefined;
132
+ errorMessage?: string | undefined;
133
133
  }>;
134
134
  execute: (inputData: {
135
135
  filePath: string;
@@ -138,7 +138,6 @@ export declare class AgentBuilderDefaults {
138
138
  endLine?: number | undefined;
139
139
  }, context?: import("@mastra/core/tools").ToolExecutionContext<any, any> | undefined) => Promise<{
140
140
  success: boolean;
141
- error?: string | undefined;
142
141
  content?: string | undefined;
143
142
  lines?: string[] | undefined;
144
143
  metadata?: {
@@ -147,6 +146,9 @@ export declare class AgentBuilderDefaults {
147
146
  totalLines: number;
148
147
  lastModified: string;
149
148
  } | undefined;
149
+ errorMessage?: string | undefined;
150
+ } & {
151
+ error?: never;
150
152
  }>;
151
153
  };
152
154
  writeFile: import("@mastra/core/tools").Tool<z.ZodObject<{
@@ -169,20 +171,20 @@ export declare class AgentBuilderDefaults {
169
171
  filePath: z.ZodString;
170
172
  bytesWritten: z.ZodOptional<z.ZodNumber>;
171
173
  message: z.ZodString;
172
- error: z.ZodOptional<z.ZodString>;
174
+ errorMessage: z.ZodOptional<z.ZodString>;
173
175
  }, "strip", z.ZodTypeAny, {
174
176
  message: string;
175
177
  success: boolean;
176
178
  filePath: string;
177
- error?: string | undefined;
179
+ errorMessage?: string | undefined;
178
180
  bytesWritten?: number | undefined;
179
181
  }, {
180
182
  message: string;
181
183
  success: boolean;
182
184
  filePath: string;
183
- error?: string | undefined;
185
+ errorMessage?: string | undefined;
184
186
  bytesWritten?: number | undefined;
185
- }>, any, any, import("@mastra/core/tools").ToolExecutionContext<any, any>> & {
187
+ }>, any, any, import("@mastra/core/tools").ToolExecutionContext<any, any>, "write-file"> & {
186
188
  inputSchema: z.ZodObject<{
187
189
  filePath: z.ZodString;
188
190
  content: z.ZodString;
@@ -204,18 +206,18 @@ export declare class AgentBuilderDefaults {
204
206
  filePath: z.ZodString;
205
207
  bytesWritten: z.ZodOptional<z.ZodNumber>;
206
208
  message: z.ZodString;
207
- error: z.ZodOptional<z.ZodString>;
209
+ errorMessage: z.ZodOptional<z.ZodString>;
208
210
  }, "strip", z.ZodTypeAny, {
209
211
  message: string;
210
212
  success: boolean;
211
213
  filePath: string;
212
- error?: string | undefined;
214
+ errorMessage?: string | undefined;
213
215
  bytesWritten?: number | undefined;
214
216
  }, {
215
217
  message: string;
216
218
  success: boolean;
217
219
  filePath: string;
218
- error?: string | undefined;
220
+ errorMessage?: string | undefined;
219
221
  bytesWritten?: number | undefined;
220
222
  }>;
221
223
  execute: (inputData: {
@@ -227,8 +229,10 @@ export declare class AgentBuilderDefaults {
227
229
  message: string;
228
230
  success: boolean;
229
231
  filePath: string;
230
- error?: string | undefined;
232
+ errorMessage?: string | undefined;
231
233
  bytesWritten?: number | undefined;
234
+ } & {
235
+ error?: never;
232
236
  }>;
233
237
  };
234
238
  listDirectory: import("@mastra/core/tools").Tool<z.ZodObject<{
@@ -279,7 +283,7 @@ export declare class AgentBuilderDefaults {
279
283
  totalItems: z.ZodNumber;
280
284
  path: z.ZodString;
281
285
  message: z.ZodString;
282
- error: z.ZodOptional<z.ZodString>;
286
+ errorMessage: z.ZodOptional<z.ZodString>;
283
287
  }, "strip", z.ZodTypeAny, {
284
288
  path: string;
285
289
  message: string;
@@ -293,7 +297,7 @@ export declare class AgentBuilderDefaults {
293
297
  permissions?: string | undefined;
294
298
  }[];
295
299
  totalItems: number;
296
- error?: string | undefined;
300
+ errorMessage?: string | undefined;
297
301
  }, {
298
302
  path: string;
299
303
  message: string;
@@ -307,8 +311,8 @@ export declare class AgentBuilderDefaults {
307
311
  permissions?: string | undefined;
308
312
  }[];
309
313
  totalItems: number;
310
- error?: string | undefined;
311
- }>, any, any, import("@mastra/core/tools").ToolExecutionContext<any, any>> & {
314
+ errorMessage?: string | undefined;
315
+ }>, any, any, import("@mastra/core/tools").ToolExecutionContext<any, any>, "list-directory"> & {
312
316
  inputSchema: z.ZodObject<{
313
317
  path: z.ZodString;
314
318
  recursive: z.ZodDefault<z.ZodBoolean>;
@@ -358,7 +362,7 @@ export declare class AgentBuilderDefaults {
358
362
  totalItems: z.ZodNumber;
359
363
  path: z.ZodString;
360
364
  message: z.ZodString;
361
- error: z.ZodOptional<z.ZodString>;
365
+ errorMessage: z.ZodOptional<z.ZodString>;
362
366
  }, "strip", z.ZodTypeAny, {
363
367
  path: string;
364
368
  message: string;
@@ -372,7 +376,7 @@ export declare class AgentBuilderDefaults {
372
376
  permissions?: string | undefined;
373
377
  }[];
374
378
  totalItems: number;
375
- error?: string | undefined;
379
+ errorMessage?: string | undefined;
376
380
  }, {
377
381
  path: string;
378
382
  message: string;
@@ -386,7 +390,7 @@ export declare class AgentBuilderDefaults {
386
390
  permissions?: string | undefined;
387
391
  }[];
388
392
  totalItems: number;
389
- error?: string | undefined;
393
+ errorMessage?: string | undefined;
390
394
  }>;
391
395
  execute: (inputData: {
392
396
  path: string;
@@ -408,7 +412,9 @@ export declare class AgentBuilderDefaults {
408
412
  permissions?: string | undefined;
409
413
  }[];
410
414
  totalItems: number;
411
- error?: string | undefined;
415
+ errorMessage?: string | undefined;
416
+ } & {
417
+ error?: never;
412
418
  }>;
413
419
  };
414
420
  executeCommand: import("@mastra/core/tools").Tool<z.ZodObject<{
@@ -440,26 +446,26 @@ export declare class AgentBuilderDefaults {
440
446
  command: z.ZodString;
441
447
  workingDirectory: z.ZodOptional<z.ZodString>;
442
448
  executionTime: z.ZodOptional<z.ZodNumber>;
443
- error: z.ZodOptional<z.ZodString>;
449
+ errorMessage: z.ZodOptional<z.ZodString>;
444
450
  }, "strip", z.ZodTypeAny, {
445
451
  success: boolean;
446
452
  command: string;
447
- error?: string | undefined;
448
453
  stdout?: string | undefined;
449
454
  stderr?: string | undefined;
455
+ errorMessage?: string | undefined;
450
456
  workingDirectory?: string | undefined;
451
457
  exitCode?: number | undefined;
452
458
  executionTime?: number | undefined;
453
459
  }, {
454
460
  success: boolean;
455
461
  command: string;
456
- error?: string | undefined;
457
462
  stdout?: string | undefined;
458
463
  stderr?: string | undefined;
464
+ errorMessage?: string | undefined;
459
465
  workingDirectory?: string | undefined;
460
466
  exitCode?: number | undefined;
461
467
  executionTime?: number | undefined;
462
- }>, any, any, import("@mastra/core/tools").ToolExecutionContext<any, any>> & {
468
+ }>, any, any, import("@mastra/core/tools").ToolExecutionContext<any, any>, "execute-command"> & {
463
469
  inputSchema: z.ZodObject<{
464
470
  command: z.ZodString;
465
471
  workingDirectory: z.ZodOptional<z.ZodString>;
@@ -490,22 +496,22 @@ export declare class AgentBuilderDefaults {
490
496
  command: z.ZodString;
491
497
  workingDirectory: z.ZodOptional<z.ZodString>;
492
498
  executionTime: z.ZodOptional<z.ZodNumber>;
493
- error: z.ZodOptional<z.ZodString>;
499
+ errorMessage: z.ZodOptional<z.ZodString>;
494
500
  }, "strip", z.ZodTypeAny, {
495
501
  success: boolean;
496
502
  command: string;
497
- error?: string | undefined;
498
503
  stdout?: string | undefined;
499
504
  stderr?: string | undefined;
505
+ errorMessage?: string | undefined;
500
506
  workingDirectory?: string | undefined;
501
507
  exitCode?: number | undefined;
502
508
  executionTime?: number | undefined;
503
509
  }, {
504
510
  success: boolean;
505
511
  command: string;
506
- error?: string | undefined;
507
512
  stdout?: string | undefined;
508
513
  stderr?: string | undefined;
514
+ errorMessage?: string | undefined;
509
515
  workingDirectory?: string | undefined;
510
516
  exitCode?: number | undefined;
511
517
  executionTime?: number | undefined;
@@ -520,12 +526,14 @@ export declare class AgentBuilderDefaults {
520
526
  }, context?: import("@mastra/core/tools").ToolExecutionContext<any, any> | undefined) => Promise<{
521
527
  success: boolean;
522
528
  command: string;
523
- error?: string | undefined;
524
529
  stdout?: string | undefined;
525
530
  stderr?: string | undefined;
531
+ errorMessage?: string | undefined;
526
532
  workingDirectory?: string | undefined;
527
533
  exitCode?: number | undefined;
528
534
  executionTime?: number | undefined;
535
+ } & {
536
+ error?: never;
529
537
  }>;
530
538
  };
531
539
  taskManager: import("@mastra/core/tools").Tool<z.ZodObject<{
@@ -632,7 +640,7 @@ export declare class AgentBuilderDefaults {
632
640
  dependencies?: string[] | undefined;
633
641
  notes?: string | undefined;
634
642
  }[];
635
- }>, any, any, import("@mastra/core/tools").ToolExecutionContext<any, any>> & {
643
+ }>, any, any, import("@mastra/core/tools").ToolExecutionContext<any, any>, "task-manager"> & {
636
644
  inputSchema: z.ZodObject<{
637
645
  action: z.ZodEnum<["create", "update", "list", "complete", "remove"]>;
638
646
  tasks: z.ZodOptional<z.ZodArray<z.ZodObject<{
@@ -763,6 +771,8 @@ export declare class AgentBuilderDefaults {
763
771
  dependencies?: string[] | undefined;
764
772
  notes?: string | undefined;
765
773
  }[];
774
+ } & {
775
+ error?: never;
766
776
  }>;
767
777
  };
768
778
  multiEdit: import("@mastra/core/tools").Tool<z.ZodObject<{
@@ -854,7 +864,7 @@ export declare class AgentBuilderDefaults {
854
864
  editsApplied: number;
855
865
  backup?: string | undefined;
856
866
  }[];
857
- }>, any, any, import("@mastra/core/tools").ToolExecutionContext<any, any>> & {
867
+ }>, any, any, import("@mastra/core/tools").ToolExecutionContext<any, any>, "multi-edit"> & {
858
868
  inputSchema: z.ZodObject<{
859
869
  operations: z.ZodArray<z.ZodObject<{
860
870
  filePath: z.ZodString;
@@ -965,6 +975,8 @@ export declare class AgentBuilderDefaults {
965
975
  editsApplied: number;
966
976
  backup?: string | undefined;
967
977
  }[];
978
+ } & {
979
+ error?: never;
968
980
  }>;
969
981
  };
970
982
  replaceLines: import("@mastra/core/tools").Tool<z.ZodObject<{
@@ -990,20 +1002,20 @@ export declare class AgentBuilderDefaults {
990
1002
  message: z.ZodString;
991
1003
  linesReplaced: z.ZodOptional<z.ZodNumber>;
992
1004
  backup: z.ZodOptional<z.ZodString>;
993
- error: z.ZodOptional<z.ZodString>;
1005
+ errorMessage: z.ZodOptional<z.ZodString>;
994
1006
  }, "strip", z.ZodTypeAny, {
995
1007
  message: string;
996
1008
  success: boolean;
997
- error?: string | undefined;
1009
+ errorMessage?: string | undefined;
998
1010
  backup?: string | undefined;
999
1011
  linesReplaced?: number | undefined;
1000
1012
  }, {
1001
1013
  message: string;
1002
1014
  success: boolean;
1003
- error?: string | undefined;
1015
+ errorMessage?: string | undefined;
1004
1016
  backup?: string | undefined;
1005
1017
  linesReplaced?: number | undefined;
1006
- }>, any, any, import("@mastra/core/tools").ToolExecutionContext<any, any>> & {
1018
+ }>, any, any, import("@mastra/core/tools").ToolExecutionContext<any, any>, "replace-lines"> & {
1007
1019
  inputSchema: z.ZodObject<{
1008
1020
  filePath: z.ZodString;
1009
1021
  startLine: z.ZodNumber;
@@ -1028,17 +1040,17 @@ export declare class AgentBuilderDefaults {
1028
1040
  message: z.ZodString;
1029
1041
  linesReplaced: z.ZodOptional<z.ZodNumber>;
1030
1042
  backup: z.ZodOptional<z.ZodString>;
1031
- error: z.ZodOptional<z.ZodString>;
1043
+ errorMessage: z.ZodOptional<z.ZodString>;
1032
1044
  }, "strip", z.ZodTypeAny, {
1033
1045
  message: string;
1034
1046
  success: boolean;
1035
- error?: string | undefined;
1047
+ errorMessage?: string | undefined;
1036
1048
  backup?: string | undefined;
1037
1049
  linesReplaced?: number | undefined;
1038
1050
  }, {
1039
1051
  message: string;
1040
1052
  success: boolean;
1041
- error?: string | undefined;
1053
+ errorMessage?: string | undefined;
1042
1054
  backup?: string | undefined;
1043
1055
  linesReplaced?: number | undefined;
1044
1056
  }>;
@@ -1051,9 +1063,11 @@ export declare class AgentBuilderDefaults {
1051
1063
  }, context?: import("@mastra/core/tools").ToolExecutionContext<any, any> | undefined) => Promise<{
1052
1064
  message: string;
1053
1065
  success: boolean;
1054
- error?: string | undefined;
1066
+ errorMessage?: string | undefined;
1055
1067
  backup?: string | undefined;
1056
1068
  linesReplaced?: number | undefined;
1069
+ } & {
1070
+ error?: never;
1057
1071
  }>;
1058
1072
  };
1059
1073
  showFileLines: import("@mastra/core/tools").Tool<z.ZodObject<{
@@ -1088,7 +1102,7 @@ export declare class AgentBuilderDefaults {
1088
1102
  }>, "many">;
1089
1103
  totalLines: z.ZodNumber;
1090
1104
  message: z.ZodString;
1091
- error: z.ZodOptional<z.ZodString>;
1105
+ errorMessage: z.ZodOptional<z.ZodString>;
1092
1106
  }, "strip", z.ZodTypeAny, {
1093
1107
  message: string;
1094
1108
  success: boolean;
@@ -1098,7 +1112,7 @@ export declare class AgentBuilderDefaults {
1098
1112
  isTarget: boolean;
1099
1113
  }[];
1100
1114
  totalLines: number;
1101
- error?: string | undefined;
1115
+ errorMessage?: string | undefined;
1102
1116
  }, {
1103
1117
  message: string;
1104
1118
  success: boolean;
@@ -1108,8 +1122,8 @@ export declare class AgentBuilderDefaults {
1108
1122
  isTarget: boolean;
1109
1123
  }[];
1110
1124
  totalLines: number;
1111
- error?: string | undefined;
1112
- }>, any, any, import("@mastra/core/tools").ToolExecutionContext<any, any>> & {
1125
+ errorMessage?: string | undefined;
1126
+ }>, any, any, import("@mastra/core/tools").ToolExecutionContext<any, any>, "show-file-lines"> & {
1113
1127
  inputSchema: z.ZodObject<{
1114
1128
  filePath: z.ZodString;
1115
1129
  startLine: z.ZodOptional<z.ZodNumber>;
@@ -1143,7 +1157,7 @@ export declare class AgentBuilderDefaults {
1143
1157
  }>, "many">;
1144
1158
  totalLines: z.ZodNumber;
1145
1159
  message: z.ZodString;
1146
- error: z.ZodOptional<z.ZodString>;
1160
+ errorMessage: z.ZodOptional<z.ZodString>;
1147
1161
  }, "strip", z.ZodTypeAny, {
1148
1162
  message: string;
1149
1163
  success: boolean;
@@ -1153,7 +1167,7 @@ export declare class AgentBuilderDefaults {
1153
1167
  isTarget: boolean;
1154
1168
  }[];
1155
1169
  totalLines: number;
1156
- error?: string | undefined;
1170
+ errorMessage?: string | undefined;
1157
1171
  }, {
1158
1172
  message: string;
1159
1173
  success: boolean;
@@ -1163,7 +1177,7 @@ export declare class AgentBuilderDefaults {
1163
1177
  isTarget: boolean;
1164
1178
  }[];
1165
1179
  totalLines: number;
1166
- error?: string | undefined;
1180
+ errorMessage?: string | undefined;
1167
1181
  }>;
1168
1182
  execute: (inputData: {
1169
1183
  filePath: string;
@@ -1179,7 +1193,9 @@ export declare class AgentBuilderDefaults {
1179
1193
  isTarget: boolean;
1180
1194
  }[];
1181
1195
  totalLines: number;
1182
- error?: string | undefined;
1196
+ errorMessage?: string | undefined;
1197
+ } & {
1198
+ error?: never;
1183
1199
  }>;
1184
1200
  };
1185
1201
  smartSearch: import("@mastra/core/tools").Tool<z.ZodObject<{
@@ -1330,7 +1346,7 @@ export declare class AgentBuilderDefaults {
1330
1346
  filesSearched: number;
1331
1347
  patterns: string[];
1332
1348
  };
1333
- }>, any, any, import("@mastra/core/tools").ToolExecutionContext<any, any>> & {
1349
+ }>, any, any, import("@mastra/core/tools").ToolExecutionContext<any, any>, "smart-search"> & {
1334
1350
  inputSchema: z.ZodObject<{
1335
1351
  query: z.ZodString;
1336
1352
  type: z.ZodDefault<z.ZodEnum<["text", "regex", "fuzzy", "semantic"]>>;
@@ -1513,6 +1529,8 @@ export declare class AgentBuilderDefaults {
1513
1529
  filesSearched: number;
1514
1530
  patterns: string[];
1515
1531
  };
1532
+ } & {
1533
+ error?: never;
1516
1534
  }>;
1517
1535
  };
1518
1536
  validateCode: import("@mastra/core/tools").Tool<z.ZodObject<{
@@ -1604,7 +1622,7 @@ export declare class AgentBuilderDefaults {
1604
1622
  validationsPassed: string[];
1605
1623
  validationsFailed: string[];
1606
1624
  };
1607
- }>, any, any, import("@mastra/core/tools").ToolExecutionContext<any, any>> & {
1625
+ }>, any, any, import("@mastra/core/tools").ToolExecutionContext<any, any>, "validate-code"> & {
1608
1626
  inputSchema: z.ZodObject<{
1609
1627
  projectPath: z.ZodOptional<z.ZodString>;
1610
1628
  validationType: z.ZodArray<z.ZodEnum<["types", "lint", "schemas", "tests", "build"]>, "many">;
@@ -1717,6 +1735,8 @@ export declare class AgentBuilderDefaults {
1717
1735
  validationsPassed: string[];
1718
1736
  validationsFailed: string[];
1719
1737
  };
1738
+ } & {
1739
+ error?: never;
1720
1740
  }>;
1721
1741
  };
1722
1742
  webSearch: import("@mastra/core/tools").Tool<z.ZodObject<{
@@ -1768,7 +1788,7 @@ export declare class AgentBuilderDefaults {
1768
1788
  totalResults: z.ZodNumber;
1769
1789
  searchTime: z.ZodNumber;
1770
1790
  suggestions: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
1771
- error: z.ZodOptional<z.ZodString>;
1791
+ errorMessage: z.ZodOptional<z.ZodString>;
1772
1792
  }, "strip", z.ZodTypeAny, {
1773
1793
  success: boolean;
1774
1794
  results: {
@@ -1782,7 +1802,7 @@ export declare class AgentBuilderDefaults {
1782
1802
  query: string;
1783
1803
  totalResults: number;
1784
1804
  searchTime: number;
1785
- error?: string | undefined;
1805
+ errorMessage?: string | undefined;
1786
1806
  suggestions?: string[] | undefined;
1787
1807
  }, {
1788
1808
  success: boolean;
@@ -1797,9 +1817,9 @@ export declare class AgentBuilderDefaults {
1797
1817
  query: string;
1798
1818
  totalResults: number;
1799
1819
  searchTime: number;
1800
- error?: string | undefined;
1820
+ errorMessage?: string | undefined;
1801
1821
  suggestions?: string[] | undefined;
1802
- }>, any, any, import("@mastra/core/tools").ToolExecutionContext<any, any>> & {
1822
+ }>, any, any, import("@mastra/core/tools").ToolExecutionContext<any, any>, "web-search"> & {
1803
1823
  inputSchema: z.ZodObject<{
1804
1824
  query: z.ZodString;
1805
1825
  maxResults: z.ZodDefault<z.ZodNumber>;
@@ -1850,7 +1870,7 @@ export declare class AgentBuilderDefaults {
1850
1870
  totalResults: z.ZodNumber;
1851
1871
  searchTime: z.ZodNumber;
1852
1872
  suggestions: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
1853
- error: z.ZodOptional<z.ZodString>;
1873
+ errorMessage: z.ZodOptional<z.ZodString>;
1854
1874
  }, "strip", z.ZodTypeAny, {
1855
1875
  success: boolean;
1856
1876
  results: {
@@ -1864,7 +1884,7 @@ export declare class AgentBuilderDefaults {
1864
1884
  query: string;
1865
1885
  totalResults: number;
1866
1886
  searchTime: number;
1867
- error?: string | undefined;
1887
+ errorMessage?: string | undefined;
1868
1888
  suggestions?: string[] | undefined;
1869
1889
  }, {
1870
1890
  success: boolean;
@@ -1879,7 +1899,7 @@ export declare class AgentBuilderDefaults {
1879
1899
  query: string;
1880
1900
  totalResults: number;
1881
1901
  searchTime: number;
1882
- error?: string | undefined;
1902
+ errorMessage?: string | undefined;
1883
1903
  suggestions?: string[] | undefined;
1884
1904
  }>;
1885
1905
  execute: (inputData: {
@@ -1902,8 +1922,10 @@ export declare class AgentBuilderDefaults {
1902
1922
  query: string;
1903
1923
  totalResults: number;
1904
1924
  searchTime: number;
1905
- error?: string | undefined;
1925
+ errorMessage?: string | undefined;
1906
1926
  suggestions?: string[] | undefined;
1927
+ } & {
1928
+ error?: never;
1907
1929
  }>;
1908
1930
  };
1909
1931
  attemptCompletion: import("@mastra/core/tools").Tool<z.ZodObject<{
@@ -1976,7 +1998,7 @@ export declare class AgentBuilderDefaults {
1976
1998
  summary: string;
1977
1999
  completionId: string;
1978
2000
  confidence: number;
1979
- }>, any, any, import("@mastra/core/tools").ToolExecutionContext<any, any>> & {
2001
+ }>, any, any, import("@mastra/core/tools").ToolExecutionContext<any, any>, "attempt-completion"> & {
1980
2002
  inputSchema: z.ZodObject<{
1981
2003
  summary: z.ZodString;
1982
2004
  changes: z.ZodArray<z.ZodObject<{
@@ -2067,6 +2089,8 @@ export declare class AgentBuilderDefaults {
2067
2089
  summary: string;
2068
2090
  completionId: string;
2069
2091
  confidence: number;
2092
+ } & {
2093
+ error?: never;
2070
2094
  }>;
2071
2095
  };
2072
2096
  manageProject: import("@mastra/core/tools").Tool<z.ZodObject<{
@@ -2103,11 +2127,11 @@ export declare class AgentBuilderDefaults {
2103
2127
  warnings: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
2104
2128
  message: z.ZodOptional<z.ZodString>;
2105
2129
  details: z.ZodOptional<z.ZodString>;
2106
- error: z.ZodOptional<z.ZodString>;
2130
+ errorMessage: z.ZodOptional<z.ZodString>;
2107
2131
  }, "strip", z.ZodTypeAny, {
2108
2132
  success: boolean;
2109
2133
  message?: string | undefined;
2110
- error?: string | undefined;
2134
+ errorMessage?: string | undefined;
2111
2135
  installed?: string[] | undefined;
2112
2136
  upgraded?: string[] | undefined;
2113
2137
  warnings?: string[] | undefined;
@@ -2115,12 +2139,12 @@ export declare class AgentBuilderDefaults {
2115
2139
  }, {
2116
2140
  success: boolean;
2117
2141
  message?: string | undefined;
2118
- error?: string | undefined;
2142
+ errorMessage?: string | undefined;
2119
2143
  installed?: string[] | undefined;
2120
2144
  upgraded?: string[] | undefined;
2121
2145
  warnings?: string[] | undefined;
2122
2146
  details?: string | undefined;
2123
- }>, any, any, import("@mastra/core/tools").ToolExecutionContext<any, any>> & {
2147
+ }>, any, any, import("@mastra/core/tools").ToolExecutionContext<any, any>, "manage-project"> & {
2124
2148
  inputSchema: z.ZodObject<{
2125
2149
  action: z.ZodEnum<["create", "install", "upgrade"]>;
2126
2150
  features: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
@@ -2156,11 +2180,11 @@ export declare class AgentBuilderDefaults {
2156
2180
  warnings: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
2157
2181
  message: z.ZodOptional<z.ZodString>;
2158
2182
  details: z.ZodOptional<z.ZodString>;
2159
- error: z.ZodOptional<z.ZodString>;
2183
+ errorMessage: z.ZodOptional<z.ZodString>;
2160
2184
  }, "strip", z.ZodTypeAny, {
2161
2185
  success: boolean;
2162
2186
  message?: string | undefined;
2163
- error?: string | undefined;
2187
+ errorMessage?: string | undefined;
2164
2188
  installed?: string[] | undefined;
2165
2189
  upgraded?: string[] | undefined;
2166
2190
  warnings?: string[] | undefined;
@@ -2168,7 +2192,7 @@ export declare class AgentBuilderDefaults {
2168
2192
  }, {
2169
2193
  success: boolean;
2170
2194
  message?: string | undefined;
2171
- error?: string | undefined;
2195
+ errorMessage?: string | undefined;
2172
2196
  installed?: string[] | undefined;
2173
2197
  upgraded?: string[] | undefined;
2174
2198
  warnings?: string[] | undefined;
@@ -2184,11 +2208,13 @@ export declare class AgentBuilderDefaults {
2184
2208
  }, context?: import("@mastra/core/tools").ToolExecutionContext<any, any> | undefined) => Promise<{
2185
2209
  success: boolean;
2186
2210
  message?: string | undefined;
2187
- error?: string | undefined;
2211
+ errorMessage?: string | undefined;
2188
2212
  installed?: string[] | undefined;
2189
2213
  upgraded?: string[] | undefined;
2190
2214
  warnings?: string[] | undefined;
2191
2215
  details?: string | undefined;
2216
+ } & {
2217
+ error?: never;
2192
2218
  }>;
2193
2219
  };
2194
2220
  manageServer: import("@mastra/core/tools").Tool<z.ZodObject<{
@@ -2208,26 +2234,26 @@ export declare class AgentBuilderDefaults {
2208
2234
  url: z.ZodOptional<z.ZodString>;
2209
2235
  message: z.ZodOptional<z.ZodString>;
2210
2236
  stdout: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
2211
- error: z.ZodOptional<z.ZodString>;
2237
+ errorMessage: z.ZodOptional<z.ZodString>;
2212
2238
  }, "strip", z.ZodTypeAny, {
2213
2239
  status: "unknown" | "running" | "stopped" | "starting" | "stopping";
2214
2240
  success: boolean;
2215
2241
  message?: string | undefined;
2216
- error?: string | undefined;
2217
2242
  stdout?: string[] | undefined;
2218
2243
  url?: string | undefined;
2244
+ errorMessage?: string | undefined;
2219
2245
  port?: number | undefined;
2220
2246
  pid?: number | undefined;
2221
2247
  }, {
2222
2248
  status: "unknown" | "running" | "stopped" | "starting" | "stopping";
2223
2249
  success: boolean;
2224
2250
  message?: string | undefined;
2225
- error?: string | undefined;
2226
2251
  stdout?: string[] | undefined;
2227
2252
  url?: string | undefined;
2253
+ errorMessage?: string | undefined;
2228
2254
  port?: number | undefined;
2229
2255
  pid?: number | undefined;
2230
- }>, any, any, import("@mastra/core/tools").ToolExecutionContext<any, any>> & {
2256
+ }>, any, any, import("@mastra/core/tools").ToolExecutionContext<any, any>, "manage-server"> & {
2231
2257
  inputSchema: z.ZodObject<{
2232
2258
  action: z.ZodEnum<["start", "stop", "restart", "status"]>;
2233
2259
  port: z.ZodDefault<z.ZodOptional<z.ZodNumber>>;
@@ -2246,23 +2272,23 @@ export declare class AgentBuilderDefaults {
2246
2272
  url: z.ZodOptional<z.ZodString>;
2247
2273
  message: z.ZodOptional<z.ZodString>;
2248
2274
  stdout: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
2249
- error: z.ZodOptional<z.ZodString>;
2275
+ errorMessage: z.ZodOptional<z.ZodString>;
2250
2276
  }, "strip", z.ZodTypeAny, {
2251
2277
  status: "unknown" | "running" | "stopped" | "starting" | "stopping";
2252
2278
  success: boolean;
2253
2279
  message?: string | undefined;
2254
- error?: string | undefined;
2255
2280
  stdout?: string[] | undefined;
2256
2281
  url?: string | undefined;
2282
+ errorMessage?: string | undefined;
2257
2283
  port?: number | undefined;
2258
2284
  pid?: number | undefined;
2259
2285
  }, {
2260
2286
  status: "unknown" | "running" | "stopped" | "starting" | "stopping";
2261
2287
  success: boolean;
2262
2288
  message?: string | undefined;
2263
- error?: string | undefined;
2264
2289
  stdout?: string[] | undefined;
2265
2290
  url?: string | undefined;
2291
+ errorMessage?: string | undefined;
2266
2292
  port?: number | undefined;
2267
2293
  pid?: number | undefined;
2268
2294
  }>;
@@ -2273,11 +2299,13 @@ export declare class AgentBuilderDefaults {
2273
2299
  status: "unknown" | "running" | "stopped" | "starting" | "stopping";
2274
2300
  success: boolean;
2275
2301
  message?: string | undefined;
2276
- error?: string | undefined;
2277
2302
  stdout?: string[] | undefined;
2278
2303
  url?: string | undefined;
2304
+ errorMessage?: string | undefined;
2279
2305
  port?: number | undefined;
2280
2306
  pid?: number | undefined;
2307
+ } & {
2308
+ error?: never;
2281
2309
  }>;
2282
2310
  };
2283
2311
  httpRequest: import("@mastra/core/tools").Tool<z.ZodObject<{
@@ -2307,7 +2335,7 @@ export declare class AgentBuilderDefaults {
2307
2335
  statusText: z.ZodOptional<z.ZodString>;
2308
2336
  headers: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
2309
2337
  data: z.ZodOptional<z.ZodAny>;
2310
- error: z.ZodOptional<z.ZodString>;
2338
+ errorMessage: z.ZodOptional<z.ZodString>;
2311
2339
  url: z.ZodString;
2312
2340
  method: z.ZodString;
2313
2341
  }, "strip", z.ZodTypeAny, {
@@ -2315,20 +2343,20 @@ export declare class AgentBuilderDefaults {
2315
2343
  url: string;
2316
2344
  method: string;
2317
2345
  status?: number | undefined;
2318
- error?: string | undefined;
2319
2346
  data?: any;
2320
2347
  headers?: Record<string, string> | undefined;
2348
+ errorMessage?: string | undefined;
2321
2349
  statusText?: string | undefined;
2322
2350
  }, {
2323
2351
  success: boolean;
2324
2352
  url: string;
2325
2353
  method: string;
2326
2354
  status?: number | undefined;
2327
- error?: string | undefined;
2328
2355
  data?: any;
2329
2356
  headers?: Record<string, string> | undefined;
2357
+ errorMessage?: string | undefined;
2330
2358
  statusText?: string | undefined;
2331
- }>, any, any, import("@mastra/core/tools").ToolExecutionContext<any, any>> & {
2359
+ }>, any, any, import("@mastra/core/tools").ToolExecutionContext<any, any>, "http-request"> & {
2332
2360
  inputSchema: z.ZodObject<{
2333
2361
  method: z.ZodEnum<["GET", "POST", "PUT", "DELETE", "PATCH"]>;
2334
2362
  url: z.ZodString;
@@ -2357,7 +2385,7 @@ export declare class AgentBuilderDefaults {
2357
2385
  statusText: z.ZodOptional<z.ZodString>;
2358
2386
  headers: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
2359
2387
  data: z.ZodOptional<z.ZodAny>;
2360
- error: z.ZodOptional<z.ZodString>;
2388
+ errorMessage: z.ZodOptional<z.ZodString>;
2361
2389
  url: z.ZodString;
2362
2390
  method: z.ZodString;
2363
2391
  }, "strip", z.ZodTypeAny, {
@@ -2365,18 +2393,18 @@ export declare class AgentBuilderDefaults {
2365
2393
  url: string;
2366
2394
  method: string;
2367
2395
  status?: number | undefined;
2368
- error?: string | undefined;
2369
2396
  data?: any;
2370
2397
  headers?: Record<string, string> | undefined;
2398
+ errorMessage?: string | undefined;
2371
2399
  statusText?: string | undefined;
2372
2400
  }, {
2373
2401
  success: boolean;
2374
2402
  url: string;
2375
2403
  method: string;
2376
2404
  status?: number | undefined;
2377
- error?: string | undefined;
2378
2405
  data?: any;
2379
2406
  headers?: Record<string, string> | undefined;
2407
+ errorMessage?: string | undefined;
2380
2408
  statusText?: string | undefined;
2381
2409
  }>;
2382
2410
  execute: (inputData: {
@@ -2391,10 +2419,12 @@ export declare class AgentBuilderDefaults {
2391
2419
  url: string;
2392
2420
  method: string;
2393
2421
  status?: number | undefined;
2394
- error?: string | undefined;
2395
2422
  data?: any;
2396
2423
  headers?: Record<string, string> | undefined;
2424
+ errorMessage?: string | undefined;
2397
2425
  statusText?: string | undefined;
2426
+ } & {
2427
+ error?: never;
2398
2428
  }>;
2399
2429
  };
2400
2430
  }>;
@@ -2421,13 +2451,13 @@ export declare class AgentBuilderDefaults {
2421
2451
  projectPath: string;
2422
2452
  message: string;
2423
2453
  details: string;
2424
- error: string;
2454
+ errorMessage: string;
2425
2455
  } | {
2426
2456
  success: boolean;
2427
2457
  message: string;
2428
2458
  projectPath?: undefined;
2429
2459
  details?: undefined;
2430
- error?: undefined;
2460
+ errorMessage?: undefined;
2431
2461
  }>;
2432
2462
  /**
2433
2463
  * Install packages using the detected package manager
@@ -2486,22 +2516,22 @@ export declare class AgentBuilderDefaults {
2486
2516
  }): Promise<{
2487
2517
  success: boolean;
2488
2518
  status: "error";
2489
- error: string;
2519
+ errorMessage: string;
2490
2520
  message?: undefined;
2491
2521
  } | {
2492
2522
  success: boolean;
2493
2523
  status: "stopped";
2494
2524
  message: string;
2495
- error?: undefined;
2525
+ errorMessage?: undefined;
2496
2526
  } | {
2497
2527
  success: boolean;
2498
2528
  status: "unknown";
2499
2529
  message: string;
2500
- error: string;
2530
+ errorMessage: string;
2501
2531
  } | {
2502
2532
  success: boolean;
2503
2533
  status: "unknown";
2504
- error: string;
2534
+ errorMessage: string;
2505
2535
  message?: undefined;
2506
2536
  }>;
2507
2537
  /**
@@ -2688,12 +2718,12 @@ export declare class AgentBuilderDefaults {
2688
2718
  data: any;
2689
2719
  url: string;
2690
2720
  method: "GET" | "POST" | "PUT" | "DELETE" | "PATCH";
2691
- error?: undefined;
2721
+ errorMessage?: undefined;
2692
2722
  } | {
2693
2723
  success: boolean;
2694
2724
  url: string;
2695
2725
  method: "GET" | "POST" | "PUT" | "DELETE" | "PATCH";
2696
- error: string;
2726
+ errorMessage: string;
2697
2727
  status?: undefined;
2698
2728
  statusText?: undefined;
2699
2729
  headers?: undefined;
@@ -2755,7 +2785,7 @@ export declare class AgentBuilderDefaults {
2755
2785
  }): Promise<{
2756
2786
  success: boolean;
2757
2787
  message: string;
2758
- error: string;
2788
+ errorMessage: string;
2759
2789
  linesReplaced?: undefined;
2760
2790
  backup?: undefined;
2761
2791
  } | {
@@ -2763,7 +2793,7 @@ export declare class AgentBuilderDefaults {
2763
2793
  message: string;
2764
2794
  linesReplaced: number;
2765
2795
  backup: string | undefined;
2766
- error?: undefined;
2796
+ errorMessage?: undefined;
2767
2797
  }>;
2768
2798
  /**
2769
2799
  * Show file lines with line numbers for debugging
@@ -2783,13 +2813,13 @@ export declare class AgentBuilderDefaults {
2783
2813
  }[];
2784
2814
  totalLines: number;
2785
2815
  message: string;
2786
- error?: undefined;
2816
+ errorMessage?: undefined;
2787
2817
  } | {
2788
2818
  success: boolean;
2789
2819
  lines: never[];
2790
2820
  totalLines: number;
2791
2821
  message: string;
2792
- error: string;
2822
+ errorMessage: string;
2793
2823
  }>;
2794
2824
  /**
2795
2825
  * Signal task completion
@@ -2870,10 +2900,10 @@ export declare class AgentBuilderDefaults {
2870
2900
  encoding: string;
2871
2901
  lastModified: string;
2872
2902
  };
2873
- error?: undefined;
2903
+ errorMessage?: undefined;
2874
2904
  } | {
2875
2905
  success: boolean;
2876
- error: string;
2906
+ errorMessage: string;
2877
2907
  content?: undefined;
2878
2908
  lines?: undefined;
2879
2909
  metadata?: undefined;
@@ -2892,12 +2922,12 @@ export declare class AgentBuilderDefaults {
2892
2922
  filePath: string;
2893
2923
  bytesWritten: number;
2894
2924
  message: string;
2895
- error?: undefined;
2925
+ errorMessage?: undefined;
2896
2926
  } | {
2897
2927
  success: boolean;
2898
2928
  filePath: string;
2899
2929
  message: string;
2900
- error: string;
2930
+ errorMessage: string;
2901
2931
  bytesWritten?: undefined;
2902
2932
  }>;
2903
2933
  /**
@@ -2924,14 +2954,14 @@ export declare class AgentBuilderDefaults {
2924
2954
  totalItems: number;
2925
2955
  path: string;
2926
2956
  message: string;
2927
- error?: undefined;
2957
+ errorMessage?: undefined;
2928
2958
  } | {
2929
2959
  success: boolean;
2930
2960
  items: never[];
2931
2961
  totalItems: number;
2932
2962
  path: string;
2933
2963
  message: string;
2934
- error: string;
2964
+ errorMessage: string;
2935
2965
  }>;
2936
2966
  /**
2937
2967
  * Execute shell commands with proper error handling
@@ -2951,7 +2981,7 @@ export declare class AgentBuilderDefaults {
2951
2981
  command: string;
2952
2982
  workingDirectory: string | undefined;
2953
2983
  executionTime: number;
2954
- error?: undefined;
2984
+ errorMessage?: undefined;
2955
2985
  } | {
2956
2986
  success: boolean;
2957
2987
  exitCode: any;
@@ -2960,7 +2990,7 @@ export declare class AgentBuilderDefaults {
2960
2990
  command: string;
2961
2991
  workingDirectory: string | undefined;
2962
2992
  executionTime: number;
2963
- error: string;
2993
+ errorMessage: string;
2964
2994
  }>;
2965
2995
  /**
2966
2996
  * Web search using a simple search approach
@@ -2986,14 +3016,14 @@ export declare class AgentBuilderDefaults {
2986
3016
  totalResults: number;
2987
3017
  searchTime: number;
2988
3018
  suggestions: any;
2989
- error?: undefined;
3019
+ errorMessage?: undefined;
2990
3020
  } | {
2991
3021
  success: boolean;
2992
3022
  query: string;
2993
3023
  results: never[];
2994
3024
  totalResults: number;
2995
3025
  searchTime: number;
2996
- error: string;
3026
+ errorMessage: string;
2997
3027
  suggestions?: undefined;
2998
3028
  }>;
2999
3029
  }