@mastra/agent-builder 0.0.0-bundle-studio-cloud-20251222034739 → 0.0.0-bundle-version-20260121132824

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,4 +1,15 @@
1
- import { z } from 'zod';
1
+ type TaskManagerInputType = {
2
+ action: 'create' | 'update' | 'list' | 'complete' | 'remove';
3
+ tasks?: Array<{
4
+ id: string;
5
+ content?: string;
6
+ status: 'pending' | 'in_progress' | 'completed' | 'blocked';
7
+ priority: 'high' | 'medium' | 'low';
8
+ dependencies?: string[];
9
+ notes?: string;
10
+ }>;
11
+ taskId?: string;
12
+ };
2
13
  export declare class AgentBuilderDefaults {
3
14
  static DEFAULT_INSTRUCTIONS: (projectPath?: string) => string;
4
15
  static DEFAULT_MEMORY_CONFIG: {
@@ -12,56 +23,13 @@ export declare class AgentBuilderDefaults {
12
23
  network: string;
13
24
  };
14
25
  static DEFAULT_TOOLS: (projectPath: string) => Promise<{
15
- readFile: import("@mastra/core/tools").Tool<z.ZodObject<{
16
- filePath: z.ZodString;
17
- startLine: z.ZodOptional<z.ZodNumber>;
18
- endLine: z.ZodOptional<z.ZodNumber>;
19
- encoding: z.ZodDefault<z.ZodString>;
20
- }, "strip", z.ZodTypeAny, {
21
- filePath: string;
22
- encoding: string;
23
- startLine?: number | undefined;
24
- endLine?: number | undefined;
25
- }, {
26
+ readFile: import("@mastra/core/tools").Tool<{
26
27
  filePath: string;
27
28
  startLine?: number | undefined;
28
29
  endLine?: number | undefined;
29
30
  encoding?: string | undefined;
30
- }>, z.ZodObject<{
31
- success: z.ZodBoolean;
32
- content: z.ZodOptional<z.ZodString>;
33
- lines: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
34
- metadata: z.ZodOptional<z.ZodObject<{
35
- size: z.ZodNumber;
36
- totalLines: z.ZodNumber;
37
- encoding: z.ZodString;
38
- lastModified: z.ZodString;
39
- }, "strip", z.ZodTypeAny, {
40
- encoding: string;
41
- size: number;
42
- totalLines: number;
43
- lastModified: string;
44
- }, {
45
- encoding: string;
46
- size: number;
47
- totalLines: number;
48
- lastModified: string;
49
- }>>;
50
- error: z.ZodOptional<z.ZodString>;
51
- }, "strip", z.ZodTypeAny, {
52
- success: boolean;
53
- error?: string | undefined;
54
- content?: string | undefined;
55
- lines?: string[] | undefined;
56
- metadata?: {
57
- encoding: string;
58
- size: number;
59
- totalLines: number;
60
- lastModified: string;
61
- } | undefined;
62
31
  }, {
63
32
  success: boolean;
64
- error?: string | undefined;
65
33
  content?: string | undefined;
66
34
  lines?: string[] | undefined;
67
35
  metadata?: {
@@ -70,230 +38,27 @@ export declare class AgentBuilderDefaults {
70
38
  totalLines: number;
71
39
  lastModified: string;
72
40
  } | undefined;
73
- }>, any, any, import("@mastra/core/tools").ToolExecutionContext<any, any>, "read-file"> & {
74
- inputSchema: z.ZodObject<{
75
- filePath: z.ZodString;
76
- startLine: z.ZodOptional<z.ZodNumber>;
77
- endLine: z.ZodOptional<z.ZodNumber>;
78
- encoding: z.ZodDefault<z.ZodString>;
79
- }, "strip", z.ZodTypeAny, {
80
- filePath: string;
81
- encoding: string;
82
- startLine?: number | undefined;
83
- endLine?: number | undefined;
84
- }, {
85
- filePath: string;
86
- startLine?: number | undefined;
87
- endLine?: number | undefined;
88
- encoding?: string | undefined;
89
- }>;
90
- outputSchema: z.ZodObject<{
91
- success: z.ZodBoolean;
92
- content: z.ZodOptional<z.ZodString>;
93
- lines: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
94
- metadata: z.ZodOptional<z.ZodObject<{
95
- size: z.ZodNumber;
96
- totalLines: z.ZodNumber;
97
- encoding: z.ZodString;
98
- lastModified: z.ZodString;
99
- }, "strip", z.ZodTypeAny, {
100
- encoding: string;
101
- size: number;
102
- totalLines: number;
103
- lastModified: string;
104
- }, {
105
- encoding: string;
106
- size: number;
107
- totalLines: number;
108
- lastModified: string;
109
- }>>;
110
- 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
- }>;
134
- execute: (inputData: {
135
- filePath: string;
136
- encoding: string;
137
- startLine?: number | undefined;
138
- endLine?: number | undefined;
139
- }, context?: import("@mastra/core/tools").ToolExecutionContext<any, any> | undefined) => Promise<{
140
- success: boolean;
141
- error?: string | undefined;
142
- content?: string | undefined;
143
- lines?: string[] | undefined;
144
- metadata?: {
145
- encoding: string;
146
- size: number;
147
- totalLines: number;
148
- lastModified: string;
149
- } | undefined;
150
- }>;
151
- };
152
- writeFile: import("@mastra/core/tools").Tool<z.ZodObject<{
153
- filePath: z.ZodString;
154
- content: z.ZodString;
155
- createDirs: z.ZodDefault<z.ZodBoolean>;
156
- encoding: z.ZodDefault<z.ZodString>;
157
- }, "strip", z.ZodTypeAny, {
158
- content: string;
159
- filePath: string;
160
- encoding: string;
161
- createDirs: boolean;
162
- }, {
41
+ errorMessage?: string | undefined;
42
+ }, unknown, unknown, import("@mastra/core/tools").ToolExecutionContext<unknown, unknown>, "read-file">;
43
+ writeFile: import("@mastra/core/tools").Tool<{
163
44
  content: string;
164
45
  filePath: string;
165
46
  encoding?: string | undefined;
166
47
  createDirs?: boolean | undefined;
167
- }>, z.ZodObject<{
168
- success: z.ZodBoolean;
169
- filePath: z.ZodString;
170
- bytesWritten: z.ZodOptional<z.ZodNumber>;
171
- message: z.ZodString;
172
- error: z.ZodOptional<z.ZodString>;
173
- }, "strip", z.ZodTypeAny, {
174
- message: string;
175
- success: boolean;
176
- filePath: string;
177
- error?: string | undefined;
178
- bytesWritten?: number | undefined;
179
48
  }, {
180
49
  message: string;
181
50
  success: boolean;
182
51
  filePath: string;
183
- error?: string | undefined;
52
+ errorMessage?: string | undefined;
184
53
  bytesWritten?: number | undefined;
185
- }>, any, any, import("@mastra/core/tools").ToolExecutionContext<any, any>, "write-file"> & {
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;
193
- filePath: string;
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: {
222
- content: string;
223
- filePath: string;
224
- encoding: string;
225
- createDirs: boolean;
226
- }, context?: import("@mastra/core/tools").ToolExecutionContext<any, any> | undefined) => Promise<{
227
- message: string;
228
- success: boolean;
229
- filePath: string;
230
- error?: string | undefined;
231
- bytesWritten?: number | undefined;
232
- }>;
233
- };
234
- listDirectory: import("@mastra/core/tools").Tool<z.ZodObject<{
235
- path: z.ZodString;
236
- recursive: z.ZodDefault<z.ZodBoolean>;
237
- includeHidden: z.ZodDefault<z.ZodBoolean>;
238
- pattern: z.ZodDefault<z.ZodString>;
239
- maxDepth: z.ZodDefault<z.ZodNumber>;
240
- includeMetadata: z.ZodDefault<z.ZodBoolean>;
241
- }, "strip", z.ZodTypeAny, {
242
- path: string;
243
- recursive: boolean;
244
- includeHidden: boolean;
245
- pattern: string;
246
- maxDepth: number;
247
- includeMetadata: boolean;
248
- }, {
54
+ }, unknown, unknown, import("@mastra/core/tools").ToolExecutionContext<unknown, unknown>, "write-file">;
55
+ listDirectory: import("@mastra/core/tools").Tool<{
249
56
  path: string;
250
57
  recursive?: boolean | undefined;
251
58
  includeHidden?: boolean | undefined;
252
59
  pattern?: string | undefined;
253
60
  maxDepth?: number | undefined;
254
61
  includeMetadata?: boolean | undefined;
255
- }>, z.ZodObject<{
256
- success: z.ZodBoolean;
257
- items: z.ZodArray<z.ZodObject<{
258
- name: z.ZodString;
259
- path: z.ZodString;
260
- type: z.ZodEnum<["file", "directory", "symlink"]>;
261
- size: z.ZodOptional<z.ZodNumber>;
262
- lastModified: z.ZodOptional<z.ZodString>;
263
- permissions: z.ZodOptional<z.ZodString>;
264
- }, "strip", z.ZodTypeAny, {
265
- path: string;
266
- type: "file" | "directory" | "symlink";
267
- name: string;
268
- size?: number | undefined;
269
- lastModified?: string | undefined;
270
- permissions?: string | undefined;
271
- }, {
272
- path: string;
273
- type: "file" | "directory" | "symlink";
274
- name: string;
275
- size?: number | undefined;
276
- lastModified?: string | undefined;
277
- permissions?: string | undefined;
278
- }>, "many">;
279
- totalItems: z.ZodNumber;
280
- path: z.ZodString;
281
- message: z.ZodString;
282
- error: z.ZodOptional<z.ZodString>;
283
- }, "strip", z.ZodTypeAny, {
284
- path: string;
285
- message: string;
286
- success: boolean;
287
- items: {
288
- path: string;
289
- type: "file" | "directory" | "symlink";
290
- name: string;
291
- size?: number | undefined;
292
- lastModified?: string | undefined;
293
- permissions?: string | undefined;
294
- }[];
295
- totalItems: number;
296
- error?: string | undefined;
297
62
  }, {
298
63
  path: string;
299
64
  message: string;
@@ -307,507 +72,31 @@ export declare class AgentBuilderDefaults {
307
72
  permissions?: string | undefined;
308
73
  }[];
309
74
  totalItems: number;
310
- error?: string | undefined;
311
- }>, any, any, import("@mastra/core/tools").ToolExecutionContext<any, any>, "list-directory"> & {
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
- }>;
391
- execute: (inputData: {
392
- path: string;
393
- recursive: boolean;
394
- includeHidden: boolean;
395
- pattern: string;
396
- maxDepth: number;
397
- includeMetadata: boolean;
398
- }, context?: import("@mastra/core/tools").ToolExecutionContext<any, any> | undefined) => Promise<{
399
- path: string;
400
- message: string;
401
- success: boolean;
402
- items: {
403
- path: string;
404
- type: "file" | "directory" | "symlink";
405
- name: string;
406
- size?: number | undefined;
407
- lastModified?: string | undefined;
408
- permissions?: string | undefined;
409
- }[];
410
- totalItems: number;
411
- error?: string | undefined;
412
- }>;
413
- };
414
- executeCommand: import("@mastra/core/tools").Tool<z.ZodObject<{
415
- command: z.ZodString;
416
- workingDirectory: z.ZodOptional<z.ZodString>;
417
- timeout: z.ZodDefault<z.ZodNumber>;
418
- captureOutput: z.ZodDefault<z.ZodBoolean>;
419
- shell: z.ZodOptional<z.ZodString>;
420
- env: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
421
- }, "strip", z.ZodTypeAny, {
422
- command: string;
423
- timeout: number;
424
- captureOutput: boolean;
425
- workingDirectory?: string | undefined;
426
- shell?: string | undefined;
427
- env?: Record<string, string> | undefined;
428
- }, {
75
+ errorMessage?: string | undefined;
76
+ }, unknown, unknown, import("@mastra/core/tools").ToolExecutionContext<unknown, unknown>, "list-directory">;
77
+ executeCommand: import("@mastra/core/tools").Tool<{
429
78
  command: string;
430
79
  workingDirectory?: string | undefined;
431
80
  timeout?: number | undefined;
432
81
  captureOutput?: boolean | undefined;
433
82
  shell?: string | undefined;
434
83
  env?: Record<string, string> | undefined;
435
- }>, z.ZodObject<{
436
- success: z.ZodBoolean;
437
- exitCode: z.ZodOptional<z.ZodNumber>;
438
- stdout: z.ZodOptional<z.ZodString>;
439
- stderr: z.ZodOptional<z.ZodString>;
440
- command: z.ZodString;
441
- workingDirectory: z.ZodOptional<z.ZodString>;
442
- executionTime: z.ZodOptional<z.ZodNumber>;
443
- error: z.ZodOptional<z.ZodString>;
444
- }, "strip", z.ZodTypeAny, {
445
- success: boolean;
446
- command: string;
447
- error?: string | undefined;
448
- stdout?: string | undefined;
449
- stderr?: string | undefined;
450
- workingDirectory?: string | undefined;
451
- exitCode?: number | undefined;
452
- executionTime?: number | undefined;
453
84
  }, {
454
85
  success: boolean;
455
86
  command: string;
456
- error?: string | undefined;
457
87
  stdout?: string | undefined;
458
88
  stderr?: string | undefined;
89
+ errorMessage?: string | undefined;
459
90
  workingDirectory?: string | undefined;
460
91
  exitCode?: number | undefined;
461
92
  executionTime?: number | undefined;
462
- }>, any, any, import("@mastra/core/tools").ToolExecutionContext<any, any>, "execute-command"> & {
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
- }>;
513
- execute: (inputData: {
514
- command: string;
515
- timeout: number;
516
- captureOutput: boolean;
517
- workingDirectory?: string | undefined;
518
- shell?: string | undefined;
519
- env?: Record<string, string> | undefined;
520
- }, context?: import("@mastra/core/tools").ToolExecutionContext<any, any> | undefined) => Promise<{
521
- success: boolean;
522
- command: string;
523
- error?: string | undefined;
524
- stdout?: string | undefined;
525
- stderr?: string | undefined;
526
- workingDirectory?: string | undefined;
527
- exitCode?: number | undefined;
528
- executionTime?: number | undefined;
529
- }>;
530
- };
531
- taskManager: import("@mastra/core/tools").Tool<z.ZodObject<{
532
- action: z.ZodEnum<["create", "update", "list", "complete", "remove"]>;
533
- tasks: z.ZodOptional<z.ZodArray<z.ZodObject<{
534
- id: z.ZodString;
535
- content: z.ZodOptional<z.ZodString>;
536
- status: z.ZodEnum<["pending", "in_progress", "completed", "blocked"]>;
537
- priority: z.ZodDefault<z.ZodEnum<["high", "medium", "low"]>>;
538
- dependencies: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
539
- notes: z.ZodOptional<z.ZodString>;
540
- }, "strip", z.ZodTypeAny, {
541
- status: "pending" | "in_progress" | "completed" | "blocked";
542
- id: string;
543
- priority: "high" | "medium" | "low";
544
- dependencies?: string[] | undefined;
545
- content?: string | undefined;
546
- notes?: string | undefined;
547
- }, {
548
- status: "pending" | "in_progress" | "completed" | "blocked";
549
- id: string;
550
- dependencies?: string[] | undefined;
551
- content?: string | undefined;
552
- priority?: "high" | "medium" | "low" | undefined;
553
- notes?: string | undefined;
554
- }>, "many">>;
555
- taskId: z.ZodOptional<z.ZodString>;
556
- }, "strip", z.ZodTypeAny, {
557
- action: "create" | "update" | "list" | "complete" | "remove";
558
- tasks?: {
559
- status: "pending" | "in_progress" | "completed" | "blocked";
560
- id: string;
561
- priority: "high" | "medium" | "low";
562
- dependencies?: string[] | undefined;
563
- content?: string | undefined;
564
- notes?: string | undefined;
565
- }[] | undefined;
566
- taskId?: string | undefined;
567
- }, {
568
- action: "create" | "update" | "list" | "complete" | "remove";
569
- tasks?: {
570
- status: "pending" | "in_progress" | "completed" | "blocked";
571
- id: string;
572
- dependencies?: string[] | undefined;
573
- content?: string | undefined;
574
- priority?: "high" | "medium" | "low" | undefined;
575
- notes?: string | undefined;
576
- }[] | undefined;
577
- taskId?: string | undefined;
578
- }>, z.ZodObject<{
579
- success: z.ZodBoolean;
580
- tasks: z.ZodArray<z.ZodObject<{
581
- id: z.ZodString;
582
- content: z.ZodString;
583
- status: z.ZodString;
584
- priority: z.ZodString;
585
- dependencies: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
586
- notes: z.ZodOptional<z.ZodString>;
587
- createdAt: z.ZodString;
588
- updatedAt: z.ZodString;
589
- }, "strip", z.ZodTypeAny, {
590
- status: string;
591
- id: string;
592
- content: string;
593
- priority: string;
594
- createdAt: string;
595
- updatedAt: string;
596
- dependencies?: string[] | undefined;
597
- notes?: string | undefined;
598
- }, {
599
- status: string;
600
- id: string;
601
- content: string;
602
- priority: string;
603
- createdAt: string;
604
- updatedAt: string;
605
- dependencies?: string[] | undefined;
606
- notes?: string | undefined;
607
- }>, "many">;
608
- message: z.ZodString;
609
- }, "strip", z.ZodTypeAny, {
610
- message: string;
93
+ }, unknown, unknown, import("@mastra/core/tools").ToolExecutionContext<unknown, unknown>, "execute-command">;
94
+ taskManager: import("@mastra/core/tools").Tool<TaskManagerInputType, {
611
95
  success: boolean;
612
- tasks: {
613
- status: string;
614
- id: string;
615
- content: string;
616
- priority: string;
617
- createdAt: string;
618
- updatedAt: string;
619
- dependencies?: string[] | undefined;
620
- notes?: string | undefined;
621
- }[];
622
- }, {
96
+ tasks: any[];
623
97
  message: string;
624
- success: boolean;
625
- tasks: {
626
- status: string;
627
- id: string;
628
- content: string;
629
- priority: string;
630
- createdAt: string;
631
- updatedAt: string;
632
- dependencies?: string[] | undefined;
633
- notes?: string | undefined;
634
- }[];
635
- }>, any, any, import("@mastra/core/tools").ToolExecutionContext<any, any>, "task-manager"> & {
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
- }>;
742
- execute: (inputData: {
743
- action: "create" | "update" | "list" | "complete" | "remove";
744
- tasks?: {
745
- status: "pending" | "in_progress" | "completed" | "blocked";
746
- id: string;
747
- priority: "high" | "medium" | "low";
748
- dependencies?: string[] | undefined;
749
- content?: string | undefined;
750
- notes?: string | undefined;
751
- }[] | undefined;
752
- taskId?: string | undefined;
753
- }, context?: import("@mastra/core/tools").ToolExecutionContext<any, any> | undefined) => Promise<{
754
- message: string;
755
- success: boolean;
756
- tasks: {
757
- status: string;
758
- id: string;
759
- content: string;
760
- priority: string;
761
- createdAt: string;
762
- updatedAt: string;
763
- dependencies?: string[] | undefined;
764
- notes?: string | undefined;
765
- }[];
766
- }>;
767
- };
768
- multiEdit: import("@mastra/core/tools").Tool<z.ZodObject<{
769
- operations: z.ZodArray<z.ZodObject<{
770
- filePath: z.ZodString;
771
- edits: z.ZodArray<z.ZodObject<{
772
- oldString: z.ZodString;
773
- newString: z.ZodString;
774
- replaceAll: z.ZodDefault<z.ZodBoolean>;
775
- }, "strip", z.ZodTypeAny, {
776
- replaceAll: boolean;
777
- oldString: string;
778
- newString: string;
779
- }, {
780
- oldString: string;
781
- newString: string;
782
- replaceAll?: boolean | undefined;
783
- }>, "many">;
784
- }, "strip", z.ZodTypeAny, {
785
- filePath: string;
786
- edits: {
787
- replaceAll: boolean;
788
- oldString: string;
789
- newString: string;
790
- }[];
791
- }, {
792
- filePath: string;
793
- edits: {
794
- oldString: string;
795
- newString: string;
796
- replaceAll?: boolean | undefined;
797
- }[];
798
- }>, "many">;
799
- createBackup: z.ZodDefault<z.ZodBoolean>;
800
- }, "strip", z.ZodTypeAny, {
801
- operations: {
802
- filePath: string;
803
- edits: {
804
- replaceAll: boolean;
805
- oldString: string;
806
- newString: string;
807
- }[];
808
- }[];
809
- createBackup: boolean;
810
- }, {
98
+ }, unknown, unknown, import("@mastra/core/tools").ToolExecutionContext<unknown, unknown>, "task-manager">;
99
+ multiEdit: import("@mastra/core/tools").Tool<{
811
100
  operations: {
812
101
  filePath: string;
813
102
  edits: {
@@ -817,288 +106,34 @@ export declare class AgentBuilderDefaults {
817
106
  }[];
818
107
  }[];
819
108
  createBackup?: boolean | undefined;
820
- }>, z.ZodObject<{
821
- success: z.ZodBoolean;
822
- results: z.ZodArray<z.ZodObject<{
823
- filePath: z.ZodString;
824
- editsApplied: z.ZodNumber;
825
- errors: z.ZodArray<z.ZodString, "many">;
826
- backup: z.ZodOptional<z.ZodString>;
827
- }, "strip", z.ZodTypeAny, {
828
- errors: string[];
829
- filePath: string;
830
- editsApplied: number;
831
- backup?: string | undefined;
832
- }, {
833
- errors: string[];
834
- filePath: string;
835
- editsApplied: number;
836
- backup?: string | undefined;
837
- }>, "many">;
838
- message: z.ZodString;
839
- }, "strip", z.ZodTypeAny, {
840
- message: string;
841
- success: boolean;
842
- results: {
843
- errors: string[];
844
- filePath: string;
845
- editsApplied: number;
846
- backup?: string | undefined;
847
- }[];
848
109
  }, {
849
- message: string;
850
110
  success: boolean;
851
111
  results: {
852
- errors: string[];
853
112
  filePath: string;
854
113
  editsApplied: number;
855
- backup?: string | undefined;
114
+ errors: string[];
115
+ backup?: string;
856
116
  }[];
857
- }>, any, any, import("@mastra/core/tools").ToolExecutionContext<any, any>, "multi-edit"> & {
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: {
951
- filePath: string;
952
- edits: {
953
- replaceAll: boolean;
954
- oldString: string;
955
- newString: string;
956
- }[];
957
- }[];
958
- createBackup: boolean;
959
- }, context?: import("@mastra/core/tools").ToolExecutionContext<any, any> | undefined) => Promise<{
960
- message: string;
961
- success: boolean;
962
- results: {
963
- errors: string[];
964
- filePath: string;
965
- editsApplied: number;
966
- backup?: string | undefined;
967
- }[];
968
- }>;
969
- };
970
- replaceLines: import("@mastra/core/tools").Tool<z.ZodObject<{
971
- filePath: z.ZodString;
972
- startLine: z.ZodNumber;
973
- endLine: z.ZodNumber;
974
- newContent: z.ZodString;
975
- createBackup: z.ZodDefault<z.ZodBoolean>;
976
- }, "strip", z.ZodTypeAny, {
977
- filePath: string;
978
- startLine: number;
979
- endLine: number;
980
- createBackup: boolean;
981
- newContent: string;
982
- }, {
117
+ message: string;
118
+ }, unknown, unknown, import("@mastra/core/tools").ToolExecutionContext<unknown, unknown>, "multi-edit">;
119
+ replaceLines: import("@mastra/core/tools").Tool<{
983
120
  filePath: string;
984
121
  startLine: number;
985
122
  endLine: number;
986
123
  newContent: string;
987
124
  createBackup?: boolean | undefined;
988
- }>, z.ZodObject<{
989
- success: z.ZodBoolean;
990
- message: z.ZodString;
991
- linesReplaced: z.ZodOptional<z.ZodNumber>;
992
- backup: z.ZodOptional<z.ZodString>;
993
- error: z.ZodOptional<z.ZodString>;
994
- }, "strip", z.ZodTypeAny, {
995
- message: string;
996
- success: boolean;
997
- error?: string | undefined;
998
- backup?: string | undefined;
999
- linesReplaced?: number | undefined;
1000
125
  }, {
1001
126
  message: string;
1002
127
  success: boolean;
1003
- error?: string | undefined;
128
+ errorMessage?: string | undefined;
1004
129
  backup?: string | undefined;
1005
130
  linesReplaced?: number | undefined;
1006
- }>, any, any, import("@mastra/core/tools").ToolExecutionContext<any, any>, "replace-lines"> & {
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
- }>;
1045
- execute: (inputData: {
1046
- filePath: string;
1047
- startLine: number;
1048
- endLine: number;
1049
- createBackup: boolean;
1050
- newContent: string;
1051
- }, context?: import("@mastra/core/tools").ToolExecutionContext<any, any> | undefined) => Promise<{
1052
- message: string;
1053
- success: boolean;
1054
- error?: string | undefined;
1055
- backup?: string | undefined;
1056
- linesReplaced?: number | undefined;
1057
- }>;
1058
- };
1059
- showFileLines: import("@mastra/core/tools").Tool<z.ZodObject<{
1060
- filePath: z.ZodString;
1061
- startLine: z.ZodOptional<z.ZodNumber>;
1062
- endLine: z.ZodOptional<z.ZodNumber>;
1063
- context: z.ZodDefault<z.ZodNumber>;
1064
- }, "strip", z.ZodTypeAny, {
1065
- filePath: string;
1066
- context: number;
1067
- startLine?: number | undefined;
1068
- endLine?: number | undefined;
1069
- }, {
131
+ }, unknown, unknown, import("@mastra/core/tools").ToolExecutionContext<unknown, unknown>, "replace-lines">;
132
+ showFileLines: import("@mastra/core/tools").Tool<{
1070
133
  filePath: string;
1071
134
  startLine?: number | undefined;
1072
135
  endLine?: number | undefined;
1073
136
  context?: number | undefined;
1074
- }>, z.ZodObject<{
1075
- success: z.ZodBoolean;
1076
- lines: z.ZodArray<z.ZodObject<{
1077
- lineNumber: z.ZodNumber;
1078
- content: z.ZodString;
1079
- isTarget: z.ZodBoolean;
1080
- }, "strip", z.ZodTypeAny, {
1081
- content: string;
1082
- lineNumber: number;
1083
- isTarget: boolean;
1084
- }, {
1085
- content: string;
1086
- lineNumber: number;
1087
- isTarget: boolean;
1088
- }>, "many">;
1089
- totalLines: z.ZodNumber;
1090
- message: z.ZodString;
1091
- error: z.ZodOptional<z.ZodString>;
1092
- }, "strip", z.ZodTypeAny, {
1093
- message: string;
1094
- success: boolean;
1095
- lines: {
1096
- content: string;
1097
- lineNumber: number;
1098
- isTarget: boolean;
1099
- }[];
1100
- totalLines: number;
1101
- error?: string | undefined;
1102
137
  }, {
1103
138
  message: string;
1104
139
  success: boolean;
@@ -1108,127 +143,9 @@ export declare class AgentBuilderDefaults {
1108
143
  isTarget: boolean;
1109
144
  }[];
1110
145
  totalLines: number;
1111
- error?: string | undefined;
1112
- }>, any, any, import("@mastra/core/tools").ToolExecutionContext<any, any>, "show-file-lines"> & {
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
- }>;
1168
- execute: (inputData: {
1169
- filePath: string;
1170
- context: number;
1171
- startLine?: number | undefined;
1172
- endLine?: number | undefined;
1173
- }, context?: import("@mastra/core/tools").ToolExecutionContext<any, any> | undefined) => Promise<{
1174
- message: string;
1175
- success: boolean;
1176
- lines: {
1177
- content: string;
1178
- lineNumber: number;
1179
- isTarget: boolean;
1180
- }[];
1181
- totalLines: number;
1182
- error?: string | undefined;
1183
- }>;
1184
- };
1185
- smartSearch: import("@mastra/core/tools").Tool<z.ZodObject<{
1186
- query: z.ZodString;
1187
- type: z.ZodDefault<z.ZodEnum<["text", "regex", "fuzzy", "semantic"]>>;
1188
- scope: z.ZodOptional<z.ZodObject<{
1189
- paths: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
1190
- fileTypes: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
1191
- excludePaths: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
1192
- maxResults: z.ZodDefault<z.ZodNumber>;
1193
- }, "strip", z.ZodTypeAny, {
1194
- maxResults: number;
1195
- paths?: string[] | undefined;
1196
- fileTypes?: string[] | undefined;
1197
- excludePaths?: string[] | undefined;
1198
- }, {
1199
- paths?: string[] | undefined;
1200
- fileTypes?: string[] | undefined;
1201
- excludePaths?: string[] | undefined;
1202
- maxResults?: number | undefined;
1203
- }>>;
1204
- context: z.ZodOptional<z.ZodObject<{
1205
- beforeLines: z.ZodDefault<z.ZodNumber>;
1206
- afterLines: z.ZodDefault<z.ZodNumber>;
1207
- includeDefinitions: z.ZodDefault<z.ZodBoolean>;
1208
- }, "strip", z.ZodTypeAny, {
1209
- beforeLines: number;
1210
- afterLines: number;
1211
- includeDefinitions: boolean;
1212
- }, {
1213
- beforeLines?: number | undefined;
1214
- afterLines?: number | undefined;
1215
- includeDefinitions?: boolean | undefined;
1216
- }>>;
1217
- }, "strip", z.ZodTypeAny, {
1218
- type: "text" | "regex" | "fuzzy" | "semantic";
1219
- query: string;
1220
- context?: {
1221
- beforeLines: number;
1222
- afterLines: number;
1223
- includeDefinitions: boolean;
1224
- } | undefined;
1225
- scope?: {
1226
- maxResults: number;
1227
- paths?: string[] | undefined;
1228
- fileTypes?: string[] | undefined;
1229
- excludePaths?: string[] | undefined;
1230
- } | undefined;
1231
- }, {
146
+ errorMessage?: string | undefined;
147
+ }, unknown, unknown, import("@mastra/core/tools").ToolExecutionContext<unknown, unknown>, "show-file-lines">;
148
+ smartSearch: import("@mastra/core/tools").Tool<{
1232
149
  query: string;
1233
150
  type?: "text" | "regex" | "fuzzy" | "semantic" | undefined;
1234
151
  context?: {
@@ -1242,361 +159,39 @@ export declare class AgentBuilderDefaults {
1242
159
  excludePaths?: string[] | undefined;
1243
160
  maxResults?: number | undefined;
1244
161
  } | undefined;
1245
- }>, z.ZodObject<{
1246
- success: z.ZodBoolean;
1247
- matches: z.ZodArray<z.ZodObject<{
1248
- file: z.ZodString;
1249
- line: z.ZodNumber;
1250
- column: z.ZodOptional<z.ZodNumber>;
1251
- match: z.ZodString;
1252
- context: z.ZodObject<{
1253
- before: z.ZodArray<z.ZodString, "many">;
1254
- after: z.ZodArray<z.ZodString, "many">;
1255
- }, "strip", z.ZodTypeAny, {
1256
- before: string[];
1257
- after: string[];
1258
- }, {
1259
- before: string[];
1260
- after: string[];
1261
- }>;
1262
- relevance: z.ZodOptional<z.ZodNumber>;
1263
- }, "strip", z.ZodTypeAny, {
1264
- file: string;
1265
- match: string;
1266
- context: {
1267
- before: string[];
1268
- after: string[];
1269
- };
1270
- line: number;
1271
- column?: number | undefined;
1272
- relevance?: number | undefined;
1273
- }, {
1274
- file: string;
1275
- match: string;
1276
- context: {
1277
- before: string[];
1278
- after: string[];
1279
- };
1280
- line: number;
1281
- column?: number | undefined;
1282
- relevance?: number | undefined;
1283
- }>, "many">;
1284
- summary: z.ZodObject<{
1285
- totalMatches: z.ZodNumber;
1286
- filesSearched: z.ZodNumber;
1287
- patterns: z.ZodArray<z.ZodString, "many">;
1288
- }, "strip", z.ZodTypeAny, {
1289
- totalMatches: number;
1290
- filesSearched: number;
1291
- patterns: string[];
1292
- }, {
1293
- totalMatches: number;
1294
- filesSearched: number;
1295
- patterns: string[];
1296
- }>;
1297
- }, "strip", z.ZodTypeAny, {
1298
- success: boolean;
1299
- matches: {
1300
- file: string;
1301
- match: string;
1302
- context: {
1303
- before: string[];
1304
- after: string[];
1305
- };
1306
- line: number;
1307
- column?: number | undefined;
1308
- relevance?: number | undefined;
1309
- }[];
1310
- summary: {
1311
- totalMatches: number;
1312
- filesSearched: number;
1313
- patterns: string[];
1314
- };
1315
162
  }, {
1316
163
  success: boolean;
1317
164
  matches: {
1318
165
  file: string;
166
+ line: number;
167
+ column?: number;
1319
168
  match: string;
1320
169
  context: {
1321
170
  before: string[];
1322
171
  after: string[];
1323
172
  };
1324
- line: number;
1325
- column?: number | undefined;
1326
- relevance?: number | undefined;
173
+ relevance?: number;
1327
174
  }[];
1328
175
  summary: {
1329
176
  totalMatches: number;
1330
177
  filesSearched: number;
1331
178
  patterns: string[];
1332
179
  };
1333
- }>, any, any, import("@mastra/core/tools").ToolExecutionContext<any, any>, "smart-search"> & {
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
- }>;
1484
- execute: (inputData: {
1485
- type: "text" | "regex" | "fuzzy" | "semantic";
1486
- query: string;
1487
- context?: {
1488
- beforeLines: number;
1489
- afterLines: number;
1490
- includeDefinitions: boolean;
1491
- } | undefined;
1492
- scope?: {
1493
- maxResults: number;
1494
- paths?: string[] | undefined;
1495
- fileTypes?: string[] | undefined;
1496
- excludePaths?: string[] | undefined;
1497
- } | undefined;
1498
- }, context?: import("@mastra/core/tools").ToolExecutionContext<any, any> | undefined) => Promise<{
1499
- success: boolean;
1500
- matches: {
1501
- file: string;
1502
- match: string;
1503
- context: {
1504
- before: string[];
1505
- after: string[];
1506
- };
1507
- line: number;
1508
- column?: number | undefined;
1509
- relevance?: number | undefined;
1510
- }[];
1511
- summary: {
1512
- totalMatches: number;
1513
- filesSearched: number;
1514
- patterns: string[];
1515
- };
1516
- }>;
1517
- };
1518
- validateCode: import("@mastra/core/tools").Tool<z.ZodObject<{
1519
- projectPath: z.ZodOptional<z.ZodString>;
1520
- validationType: z.ZodArray<z.ZodEnum<["types", "lint", "schemas", "tests", "build"]>, "many">;
1521
- files: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
1522
- }, "strip", z.ZodTypeAny, {
180
+ }, unknown, unknown, import("@mastra/core/tools").ToolExecutionContext<unknown, unknown>, "smart-search">;
181
+ validateCode: import("@mastra/core/tools").Tool<{
1523
182
  validationType: ("types" | "schemas" | "tests" | "lint" | "build")[];
1524
183
  projectPath?: string | undefined;
1525
184
  files?: string[] | undefined;
1526
185
  }, {
1527
- validationType: ("types" | "schemas" | "tests" | "lint" | "build")[];
1528
- projectPath?: string | undefined;
1529
- files?: string[] | undefined;
1530
- }>, z.ZodObject<{
1531
- valid: z.ZodBoolean;
1532
- errors: z.ZodArray<z.ZodObject<{
1533
- type: z.ZodEnum<["typescript", "eslint", "schema", "test", "build"]>;
1534
- severity: z.ZodEnum<["error", "warning", "info"]>;
1535
- message: z.ZodString;
1536
- file: z.ZodOptional<z.ZodString>;
1537
- line: z.ZodOptional<z.ZodNumber>;
1538
- column: z.ZodOptional<z.ZodNumber>;
1539
- code: z.ZodOptional<z.ZodString>;
1540
- }, "strip", z.ZodTypeAny, {
1541
- message: string;
1542
- type: "build" | "typescript" | "eslint" | "schema" | "test";
1543
- severity: "error" | "warning" | "info";
1544
- code?: string | undefined;
1545
- file?: string | undefined;
1546
- line?: number | undefined;
1547
- column?: number | undefined;
1548
- }, {
1549
- message: string;
1550
- type: "build" | "typescript" | "eslint" | "schema" | "test";
1551
- severity: "error" | "warning" | "info";
1552
- code?: string | undefined;
1553
- file?: string | undefined;
1554
- line?: number | undefined;
1555
- column?: number | undefined;
1556
- }>, "many">;
1557
- summary: z.ZodObject<{
1558
- totalErrors: z.ZodNumber;
1559
- totalWarnings: z.ZodNumber;
1560
- validationsPassed: z.ZodArray<z.ZodString, "many">;
1561
- validationsFailed: z.ZodArray<z.ZodString, "many">;
1562
- }, "strip", z.ZodTypeAny, {
1563
- totalErrors: number;
1564
- totalWarnings: number;
1565
- validationsPassed: string[];
1566
- validationsFailed: string[];
1567
- }, {
1568
- totalErrors: number;
1569
- totalWarnings: number;
1570
- validationsPassed: string[];
1571
- validationsFailed: string[];
1572
- }>;
1573
- }, "strip", z.ZodTypeAny, {
1574
186
  valid: boolean;
1575
187
  errors: {
1576
- message: string;
1577
- type: "build" | "typescript" | "eslint" | "schema" | "test";
188
+ type: "typescript" | "eslint" | "schema" | "test" | "build";
1578
189
  severity: "error" | "warning" | "info";
1579
- code?: string | undefined;
1580
- file?: string | undefined;
1581
- line?: number | undefined;
1582
- column?: number | undefined;
1583
- }[];
1584
- summary: {
1585
- totalErrors: number;
1586
- totalWarnings: number;
1587
- validationsPassed: string[];
1588
- validationsFailed: string[];
1589
- };
1590
- }, {
1591
- valid: boolean;
1592
- errors: {
1593
190
  message: string;
1594
- type: "build" | "typescript" | "eslint" | "schema" | "test";
1595
- severity: "error" | "warning" | "info";
1596
- code?: string | undefined;
1597
- file?: string | undefined;
1598
- line?: number | undefined;
1599
- column?: number | undefined;
191
+ file?: string;
192
+ line?: number;
193
+ column?: number;
194
+ code?: string;
1600
195
  }[];
1601
196
  summary: {
1602
197
  totalErrors: number;
@@ -1604,186 +199,14 @@ export declare class AgentBuilderDefaults {
1604
199
  validationsPassed: string[];
1605
200
  validationsFailed: string[];
1606
201
  };
1607
- }>, any, any, import("@mastra/core/tools").ToolExecutionContext<any, any>, "validate-code"> & {
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, {
1613
- validationType: ("types" | "schemas" | "tests" | "lint" | "build")[];
1614
- projectPath?: string | undefined;
1615
- files?: string[] | undefined;
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, {
1632
- message: string;
1633
- type: "build" | "typescript" | "eslint" | "schema" | "test";
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";
1709
- code?: string | undefined;
1710
- file?: string | undefined;
1711
- line?: number | undefined;
1712
- column?: number | undefined;
1713
- }[];
1714
- summary: {
1715
- totalErrors: number;
1716
- totalWarnings: number;
1717
- validationsPassed: string[];
1718
- validationsFailed: string[];
1719
- };
1720
- }>;
1721
- };
1722
- webSearch: import("@mastra/core/tools").Tool<z.ZodObject<{
1723
- query: z.ZodString;
1724
- maxResults: z.ZodDefault<z.ZodNumber>;
1725
- region: z.ZodDefault<z.ZodString>;
1726
- language: z.ZodDefault<z.ZodString>;
1727
- includeImages: z.ZodDefault<z.ZodBoolean>;
1728
- dateRange: z.ZodDefault<z.ZodEnum<["day", "week", "month", "year", "all"]>>;
1729
- }, "strip", z.ZodTypeAny, {
1730
- query: string;
1731
- maxResults: number;
1732
- region: string;
1733
- language: string;
1734
- includeImages: boolean;
1735
- dateRange: "day" | "week" | "month" | "year" | "all";
1736
- }, {
202
+ }, unknown, unknown, import("@mastra/core/tools").ToolExecutionContext<unknown, unknown>, "validate-code">;
203
+ webSearch: import("@mastra/core/tools").Tool<{
1737
204
  query: string;
1738
205
  maxResults?: number | undefined;
1739
206
  region?: string | undefined;
1740
207
  language?: string | undefined;
1741
208
  includeImages?: boolean | undefined;
1742
209
  dateRange?: "day" | "week" | "month" | "year" | "all" | undefined;
1743
- }>, z.ZodObject<{
1744
- success: z.ZodBoolean;
1745
- query: z.ZodString;
1746
- results: z.ZodArray<z.ZodObject<{
1747
- title: z.ZodString;
1748
- url: z.ZodString;
1749
- snippet: z.ZodString;
1750
- domain: z.ZodString;
1751
- publishDate: z.ZodOptional<z.ZodString>;
1752
- relevanceScore: z.ZodOptional<z.ZodNumber>;
1753
- }, "strip", z.ZodTypeAny, {
1754
- url: string;
1755
- title: string;
1756
- snippet: string;
1757
- domain: string;
1758
- publishDate?: string | undefined;
1759
- relevanceScore?: number | undefined;
1760
- }, {
1761
- url: string;
1762
- title: string;
1763
- snippet: string;
1764
- domain: string;
1765
- publishDate?: string | undefined;
1766
- relevanceScore?: number | undefined;
1767
- }>, "many">;
1768
- totalResults: z.ZodNumber;
1769
- searchTime: z.ZodNumber;
1770
- suggestions: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
1771
- error: z.ZodOptional<z.ZodString>;
1772
- }, "strip", z.ZodTypeAny, {
1773
- success: boolean;
1774
- results: {
1775
- url: string;
1776
- title: string;
1777
- snippet: string;
1778
- domain: string;
1779
- publishDate?: string | undefined;
1780
- relevanceScore?: number | undefined;
1781
- }[];
1782
- query: string;
1783
- totalResults: number;
1784
- searchTime: number;
1785
- error?: string | undefined;
1786
- suggestions?: string[] | undefined;
1787
210
  }, {
1788
211
  success: boolean;
1789
212
  results: {
@@ -1797,158 +220,10 @@ export declare class AgentBuilderDefaults {
1797
220
  query: string;
1798
221
  totalResults: number;
1799
222
  searchTime: number;
1800
- error?: string | undefined;
223
+ errorMessage?: string | undefined;
1801
224
  suggestions?: string[] | undefined;
1802
- }>, any, any, import("@mastra/core/tools").ToolExecutionContext<any, any>, "web-search"> & {
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
- }>;
1885
- execute: (inputData: {
1886
- query: string;
1887
- maxResults: number;
1888
- region: string;
1889
- language: string;
1890
- includeImages: boolean;
1891
- dateRange: "day" | "week" | "month" | "year" | "all";
1892
- }, context?: import("@mastra/core/tools").ToolExecutionContext<any, any> | undefined) => Promise<{
1893
- success: boolean;
1894
- results: {
1895
- url: string;
1896
- title: string;
1897
- snippet: string;
1898
- domain: string;
1899
- publishDate?: string | undefined;
1900
- relevanceScore?: number | undefined;
1901
- }[];
1902
- query: string;
1903
- totalResults: number;
1904
- searchTime: number;
1905
- error?: string | undefined;
1906
- suggestions?: string[] | undefined;
1907
- }>;
1908
- };
1909
- attemptCompletion: import("@mastra/core/tools").Tool<z.ZodObject<{
1910
- summary: z.ZodString;
1911
- changes: z.ZodArray<z.ZodObject<{
1912
- type: z.ZodEnum<["file_created", "file_modified", "file_deleted", "command_executed", "dependency_added"]>;
1913
- description: z.ZodString;
1914
- path: z.ZodOptional<z.ZodString>;
1915
- }, "strip", z.ZodTypeAny, {
1916
- type: "file_created" | "file_modified" | "file_deleted" | "command_executed" | "dependency_added";
1917
- description: string;
1918
- path?: string | undefined;
1919
- }, {
1920
- type: "file_created" | "file_modified" | "file_deleted" | "command_executed" | "dependency_added";
1921
- description: string;
1922
- path?: string | undefined;
1923
- }>, "many">;
1924
- validation: z.ZodObject<{
1925
- testsRun: z.ZodDefault<z.ZodBoolean>;
1926
- buildsSuccessfully: z.ZodDefault<z.ZodBoolean>;
1927
- manualTestingRequired: z.ZodDefault<z.ZodBoolean>;
1928
- }, "strip", z.ZodTypeAny, {
1929
- testsRun: boolean;
1930
- buildsSuccessfully: boolean;
1931
- manualTestingRequired: boolean;
1932
- }, {
1933
- testsRun?: boolean | undefined;
1934
- buildsSuccessfully?: boolean | undefined;
1935
- manualTestingRequired?: boolean | undefined;
1936
- }>;
1937
- nextSteps: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
1938
- }, "strip", z.ZodTypeAny, {
1939
- validation: {
1940
- testsRun: boolean;
1941
- buildsSuccessfully: boolean;
1942
- manualTestingRequired: boolean;
1943
- };
1944
- summary: string;
1945
- changes: {
1946
- type: "file_created" | "file_modified" | "file_deleted" | "command_executed" | "dependency_added";
1947
- description: string;
1948
- path?: string | undefined;
1949
- }[];
1950
- nextSteps?: string[] | undefined;
1951
- }, {
225
+ }, unknown, unknown, import("@mastra/core/tools").ToolExecutionContext<unknown, unknown>, "web-search">;
226
+ attemptCompletion: import("@mastra/core/tools").Tool<{
1952
227
  validation: {
1953
228
  testsRun?: boolean | undefined;
1954
229
  buildsSuccessfully?: boolean | undefined;
@@ -1961,442 +236,49 @@ export declare class AgentBuilderDefaults {
1961
236
  path?: string | undefined;
1962
237
  }[];
1963
238
  nextSteps?: string[] | undefined;
1964
- }>, z.ZodObject<{
1965
- completionId: z.ZodString;
1966
- status: z.ZodEnum<["completed", "needs_review", "needs_testing"]>;
1967
- summary: z.ZodString;
1968
- confidence: z.ZodNumber;
1969
- }, "strip", z.ZodTypeAny, {
1970
- status: "completed" | "needs_review" | "needs_testing";
1971
- summary: string;
1972
- completionId: string;
1973
- confidence: number;
1974
239
  }, {
240
+ completionId: string;
1975
241
  status: "completed" | "needs_review" | "needs_testing";
1976
242
  summary: string;
1977
- completionId: string;
1978
243
  confidence: number;
1979
- }>, any, any, import("@mastra/core/tools").ToolExecutionContext<any, any>, "attempt-completion"> & {
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
- }>;
2052
- execute: (inputData: {
2053
- validation: {
2054
- testsRun: boolean;
2055
- buildsSuccessfully: boolean;
2056
- manualTestingRequired: boolean;
2057
- };
2058
- summary: string;
2059
- changes: {
2060
- type: "file_created" | "file_modified" | "file_deleted" | "command_executed" | "dependency_added";
2061
- description: string;
2062
- path?: string | undefined;
2063
- }[];
2064
- nextSteps?: string[] | undefined;
2065
- }, context?: import("@mastra/core/tools").ToolExecutionContext<any, any> | undefined) => Promise<{
2066
- status: "completed" | "needs_review" | "needs_testing";
2067
- summary: string;
2068
- completionId: string;
2069
- confidence: number;
2070
- }>;
2071
- };
2072
- manageProject: import("@mastra/core/tools").Tool<z.ZodObject<{
2073
- action: z.ZodEnum<["create", "install", "upgrade"]>;
2074
- features: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
2075
- packages: z.ZodOptional<z.ZodArray<z.ZodObject<{
2076
- name: z.ZodString;
2077
- version: z.ZodOptional<z.ZodString>;
2078
- }, "strip", z.ZodTypeAny, {
2079
- name: string;
2080
- version?: string | undefined;
2081
- }, {
2082
- name: string;
2083
- version?: string | undefined;
2084
- }>, "many">>;
2085
- }, "strip", z.ZodTypeAny, {
244
+ }, unknown, unknown, import("@mastra/core/tools").ToolExecutionContext<unknown, unknown>, "attempt-completion">;
245
+ manageProject: import("@mastra/core/tools").Tool<{
2086
246
  action: "create" | "install" | "upgrade";
2087
247
  features?: string[] | undefined;
2088
248
  packages?: {
2089
249
  name: string;
2090
250
  version?: string | undefined;
2091
251
  }[] | undefined;
2092
- }, {
2093
- action: "create" | "install" | "upgrade";
2094
- features?: string[] | undefined;
2095
- packages?: {
2096
- name: string;
2097
- version?: string | undefined;
2098
- }[] | undefined;
2099
- }>, z.ZodObject<{
2100
- success: z.ZodBoolean;
2101
- installed: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
2102
- upgraded: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
2103
- warnings: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
2104
- message: z.ZodOptional<z.ZodString>;
2105
- details: z.ZodOptional<z.ZodString>;
2106
- error: z.ZodOptional<z.ZodString>;
2107
- }, "strip", z.ZodTypeAny, {
2108
- success: boolean;
2109
- message?: string | undefined;
2110
- error?: string | undefined;
2111
- installed?: string[] | undefined;
2112
- upgraded?: string[] | undefined;
2113
- warnings?: string[] | undefined;
2114
- details?: string | undefined;
2115
252
  }, {
2116
253
  success: boolean;
2117
254
  message?: string | undefined;
2118
- error?: string | undefined;
255
+ errorMessage?: string | undefined;
2119
256
  installed?: string[] | undefined;
2120
257
  upgraded?: string[] | undefined;
2121
258
  warnings?: string[] | undefined;
2122
259
  details?: string | undefined;
2123
- }>, any, any, import("@mastra/core/tools").ToolExecutionContext<any, any>, "manage-project"> & {
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
- }>;
2177
- execute: (inputData: {
2178
- action: "create" | "install" | "upgrade";
2179
- features?: string[] | undefined;
2180
- packages?: {
2181
- name: string;
2182
- version?: string | undefined;
2183
- }[] | undefined;
2184
- }, context?: import("@mastra/core/tools").ToolExecutionContext<any, any> | undefined) => Promise<{
2185
- success: boolean;
2186
- message?: string | undefined;
2187
- error?: string | undefined;
2188
- installed?: string[] | undefined;
2189
- upgraded?: string[] | undefined;
2190
- warnings?: string[] | undefined;
2191
- details?: string | undefined;
2192
- }>;
2193
- };
2194
- manageServer: import("@mastra/core/tools").Tool<z.ZodObject<{
2195
- action: z.ZodEnum<["start", "stop", "restart", "status"]>;
2196
- port: z.ZodDefault<z.ZodOptional<z.ZodNumber>>;
2197
- }, "strip", z.ZodTypeAny, {
2198
- action: "status" | "stop" | "start" | "restart";
2199
- port: number;
2200
- }, {
260
+ }, unknown, unknown, import("@mastra/core/tools").ToolExecutionContext<unknown, unknown>, "manage-project">;
261
+ manageServer: import("@mastra/core/tools").Tool<{
2201
262
  action: "status" | "stop" | "start" | "restart";
2202
263
  port?: number | undefined;
2203
- }>, z.ZodObject<{
2204
- success: z.ZodBoolean;
2205
- status: z.ZodEnum<["running", "stopped", "starting", "stopping", "unknown"]>;
2206
- pid: z.ZodOptional<z.ZodNumber>;
2207
- port: z.ZodOptional<z.ZodNumber>;
2208
- url: z.ZodOptional<z.ZodString>;
2209
- message: z.ZodOptional<z.ZodString>;
2210
- stdout: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
2211
- error: z.ZodOptional<z.ZodString>;
2212
- }, "strip", z.ZodTypeAny, {
2213
- status: "unknown" | "running" | "stopped" | "starting" | "stopping";
2214
- success: boolean;
2215
- message?: string | undefined;
2216
- error?: string | undefined;
2217
- stdout?: string[] | undefined;
2218
- url?: string | undefined;
2219
- port?: number | undefined;
2220
- pid?: number | undefined;
2221
- }, {
2222
- status: "unknown" | "running" | "stopped" | "starting" | "stopping";
2223
- success: boolean;
2224
- message?: string | undefined;
2225
- error?: string | undefined;
2226
- stdout?: string[] | undefined;
2227
- url?: string | undefined;
2228
- port?: number | undefined;
2229
- pid?: number | undefined;
2230
- }>, any, any, import("@mastra/core/tools").ToolExecutionContext<any, any>, "manage-server"> & {
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
- }>;
2269
- execute: (inputData: {
2270
- action: "status" | "stop" | "start" | "restart";
2271
- port: number;
2272
- }, context?: import("@mastra/core/tools").ToolExecutionContext<any, any> | undefined) => Promise<{
2273
- status: "unknown" | "running" | "stopped" | "starting" | "stopping";
2274
- success: boolean;
2275
- message?: string | undefined;
2276
- error?: string | undefined;
2277
- stdout?: string[] | undefined;
2278
- url?: string | undefined;
2279
- port?: number | undefined;
2280
- pid?: number | undefined;
2281
- }>;
2282
- };
2283
- httpRequest: import("@mastra/core/tools").Tool<z.ZodObject<{
2284
- method: z.ZodEnum<["GET", "POST", "PUT", "DELETE", "PATCH"]>;
2285
- url: z.ZodString;
2286
- baseUrl: z.ZodOptional<z.ZodString>;
2287
- headers: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
2288
- body: z.ZodOptional<z.ZodAny>;
2289
- timeout: z.ZodDefault<z.ZodOptional<z.ZodNumber>>;
2290
- }, "strip", z.ZodTypeAny, {
2291
- url: string;
2292
- timeout: number;
2293
- method: "GET" | "POST" | "PUT" | "DELETE" | "PATCH";
2294
- headers?: Record<string, string> | undefined;
2295
- baseUrl?: string | undefined;
2296
- body?: any;
2297
- }, {
264
+ }, any, unknown, unknown, import("@mastra/core/tools").ToolExecutionContext<unknown, unknown>, "manage-server">;
265
+ httpRequest: import("@mastra/core/tools").Tool<{
2298
266
  url: string;
2299
267
  method: "GET" | "POST" | "PUT" | "DELETE" | "PATCH";
2300
268
  headers?: Record<string, string> | undefined;
2301
269
  timeout?: number | undefined;
2302
270
  baseUrl?: string | undefined;
2303
271
  body?: any;
2304
- }>, z.ZodObject<{
2305
- success: z.ZodBoolean;
2306
- status: z.ZodOptional<z.ZodNumber>;
2307
- statusText: z.ZodOptional<z.ZodString>;
2308
- headers: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
2309
- data: z.ZodOptional<z.ZodAny>;
2310
- error: z.ZodOptional<z.ZodString>;
2311
- url: z.ZodString;
2312
- method: z.ZodString;
2313
- }, "strip", z.ZodTypeAny, {
2314
- success: boolean;
2315
- url: string;
2316
- method: string;
2317
- status?: number | undefined;
2318
- error?: string | undefined;
2319
- data?: any;
2320
- headers?: Record<string, string> | undefined;
2321
- statusText?: string | undefined;
2322
272
  }, {
2323
273
  success: boolean;
2324
274
  url: string;
2325
275
  method: string;
2326
276
  status?: number | undefined;
2327
- error?: string | undefined;
2328
277
  data?: any;
2329
278
  headers?: Record<string, string> | undefined;
279
+ errorMessage?: string | undefined;
2330
280
  statusText?: string | undefined;
2331
- }>, any, any, import("@mastra/core/tools").ToolExecutionContext<any, any>, "http-request"> & {
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;
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: {
2383
- url: string;
2384
- timeout: number;
2385
- method: "GET" | "POST" | "PUT" | "DELETE" | "PATCH";
2386
- headers?: Record<string, string> | undefined;
2387
- baseUrl?: string | undefined;
2388
- body?: any;
2389
- }, context?: import("@mastra/core/tools").ToolExecutionContext<any, any> | undefined) => Promise<{
2390
- success: boolean;
2391
- url: string;
2392
- method: string;
2393
- status?: number | undefined;
2394
- error?: string | undefined;
2395
- data?: any;
2396
- headers?: Record<string, string> | undefined;
2397
- statusText?: string | undefined;
2398
- }>;
2399
- };
281
+ }, unknown, unknown, import("@mastra/core/tools").ToolExecutionContext<unknown, unknown>, "http-request">;
2400
282
  }>;
2401
283
  /**
2402
284
  * Filter tools for template builder mode (excludes web search and other advanced tools)
@@ -2421,13 +303,13 @@ export declare class AgentBuilderDefaults {
2421
303
  projectPath: string;
2422
304
  message: string;
2423
305
  details: string;
2424
- error: string;
306
+ errorMessage: string;
2425
307
  } | {
2426
308
  success: boolean;
2427
309
  message: string;
2428
310
  projectPath?: undefined;
2429
311
  details?: undefined;
2430
- error?: undefined;
312
+ errorMessage?: undefined;
2431
313
  }>;
2432
314
  /**
2433
315
  * Install packages using the detected package manager
@@ -2486,22 +368,22 @@ export declare class AgentBuilderDefaults {
2486
368
  }): Promise<{
2487
369
  success: boolean;
2488
370
  status: "error";
2489
- error: string;
371
+ errorMessage: string;
2490
372
  message?: undefined;
2491
373
  } | {
2492
374
  success: boolean;
2493
375
  status: "stopped";
2494
376
  message: string;
2495
- error?: undefined;
377
+ errorMessage?: undefined;
2496
378
  } | {
2497
379
  success: boolean;
2498
380
  status: "unknown";
2499
381
  message: string;
2500
- error: string;
382
+ errorMessage: string;
2501
383
  } | {
2502
384
  success: boolean;
2503
385
  status: "unknown";
2504
- error: string;
386
+ errorMessage: string;
2505
387
  message?: undefined;
2506
388
  }>;
2507
389
  /**
@@ -2688,12 +570,12 @@ export declare class AgentBuilderDefaults {
2688
570
  data: any;
2689
571
  url: string;
2690
572
  method: "GET" | "POST" | "PUT" | "DELETE" | "PATCH";
2691
- error?: undefined;
573
+ errorMessage?: undefined;
2692
574
  } | {
2693
575
  success: boolean;
2694
576
  url: string;
2695
577
  method: "GET" | "POST" | "PUT" | "DELETE" | "PATCH";
2696
- error: string;
578
+ errorMessage: string;
2697
579
  status?: undefined;
2698
580
  statusText?: undefined;
2699
581
  headers?: undefined;
@@ -2755,7 +637,7 @@ export declare class AgentBuilderDefaults {
2755
637
  }): Promise<{
2756
638
  success: boolean;
2757
639
  message: string;
2758
- error: string;
640
+ errorMessage: string;
2759
641
  linesReplaced?: undefined;
2760
642
  backup?: undefined;
2761
643
  } | {
@@ -2763,7 +645,7 @@ export declare class AgentBuilderDefaults {
2763
645
  message: string;
2764
646
  linesReplaced: number;
2765
647
  backup: string | undefined;
2766
- error?: undefined;
648
+ errorMessage?: undefined;
2767
649
  }>;
2768
650
  /**
2769
651
  * Show file lines with line numbers for debugging
@@ -2783,13 +665,13 @@ export declare class AgentBuilderDefaults {
2783
665
  }[];
2784
666
  totalLines: number;
2785
667
  message: string;
2786
- error?: undefined;
668
+ errorMessage?: undefined;
2787
669
  } | {
2788
670
  success: boolean;
2789
671
  lines: never[];
2790
672
  totalLines: number;
2791
673
  message: string;
2792
- error: string;
674
+ errorMessage: string;
2793
675
  }>;
2794
676
  /**
2795
677
  * Signal task completion
@@ -2870,10 +752,10 @@ export declare class AgentBuilderDefaults {
2870
752
  encoding: string;
2871
753
  lastModified: string;
2872
754
  };
2873
- error?: undefined;
755
+ errorMessage?: undefined;
2874
756
  } | {
2875
757
  success: boolean;
2876
- error: string;
758
+ errorMessage: string;
2877
759
  content?: undefined;
2878
760
  lines?: undefined;
2879
761
  metadata?: undefined;
@@ -2892,12 +774,12 @@ export declare class AgentBuilderDefaults {
2892
774
  filePath: string;
2893
775
  bytesWritten: number;
2894
776
  message: string;
2895
- error?: undefined;
777
+ errorMessage?: undefined;
2896
778
  } | {
2897
779
  success: boolean;
2898
780
  filePath: string;
2899
781
  message: string;
2900
- error: string;
782
+ errorMessage: string;
2901
783
  bytesWritten?: undefined;
2902
784
  }>;
2903
785
  /**
@@ -2924,14 +806,14 @@ export declare class AgentBuilderDefaults {
2924
806
  totalItems: number;
2925
807
  path: string;
2926
808
  message: string;
2927
- error?: undefined;
809
+ errorMessage?: undefined;
2928
810
  } | {
2929
811
  success: boolean;
2930
812
  items: never[];
2931
813
  totalItems: number;
2932
814
  path: string;
2933
815
  message: string;
2934
- error: string;
816
+ errorMessage: string;
2935
817
  }>;
2936
818
  /**
2937
819
  * Execute shell commands with proper error handling
@@ -2951,7 +833,7 @@ export declare class AgentBuilderDefaults {
2951
833
  command: string;
2952
834
  workingDirectory: string | undefined;
2953
835
  executionTime: number;
2954
- error?: undefined;
836
+ errorMessage?: undefined;
2955
837
  } | {
2956
838
  success: boolean;
2957
839
  exitCode: any;
@@ -2960,7 +842,7 @@ export declare class AgentBuilderDefaults {
2960
842
  command: string;
2961
843
  workingDirectory: string | undefined;
2962
844
  executionTime: number;
2963
- error: string;
845
+ errorMessage: string;
2964
846
  }>;
2965
847
  /**
2966
848
  * Web search using a simple search approach
@@ -2986,15 +868,16 @@ export declare class AgentBuilderDefaults {
2986
868
  totalResults: number;
2987
869
  searchTime: number;
2988
870
  suggestions: any;
2989
- error?: undefined;
871
+ errorMessage?: undefined;
2990
872
  } | {
2991
873
  success: boolean;
2992
874
  query: string;
2993
875
  results: never[];
2994
876
  totalResults: number;
2995
877
  searchTime: number;
2996
- error: string;
878
+ errorMessage: string;
2997
879
  suggestions?: undefined;
2998
880
  }>;
2999
881
  }
882
+ export {};
3000
883
  //# sourceMappingURL=defaults.d.ts.map