@mastra/agent-builder 0.0.0-netlify-no-bundle-20251127120354 → 0.0.0-partial-response-backport-20251204204441
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.
- package/CHANGELOG.md +39 -149
- package/dist/agent/index.d.ts +3 -3
- package/dist/agent/index.d.ts.map +1 -1
- package/dist/defaults.d.ts +783 -235
- package/dist/defaults.d.ts.map +1 -1
- package/dist/index.js +137 -163
- package/dist/index.js.map +1 -1
- package/dist/processors/tool-summary.d.ts +5 -10
- package/dist/processors/tool-summary.d.ts.map +1 -1
- package/dist/types.d.ts +2 -2
- package/dist/utils.d.ts +4 -4
- package/dist/workflows/shared/schema.d.ts +2 -2
- package/dist/workflows/task-planning/schema.d.ts +12 -12
- package/dist/workflows/task-planning/task-planning.d.ts +23 -23
- package/dist/workflows/task-planning/task-planning.d.ts.map +1 -1
- package/dist/workflows/template-builder/template-builder.d.ts +21 -21
- package/dist/workflows/template-builder/template-builder.d.ts.map +1 -1
- package/dist/workflows/workflow-builder/prompts.d.ts +1 -1
- package/dist/workflows/workflow-builder/prompts.d.ts.map +1 -1
- package/dist/workflows/workflow-builder/schema.d.ts +14 -14
- package/dist/workflows/workflow-builder/tools.d.ts +83 -13
- package/dist/workflows/workflow-builder/tools.d.ts.map +1 -1
- package/dist/workflows/workflow-builder/workflow-builder.d.ts +52 -52
- package/dist/workflows/workflow-builder/workflow-builder.d.ts.map +1 -1
- package/package.json +16 -11
package/dist/defaults.d.ts
CHANGED
|
@@ -70,7 +70,22 @@ export declare class AgentBuilderDefaults {
|
|
|
70
70
|
totalLines: number;
|
|
71
71
|
lastModified: string;
|
|
72
72
|
} | undefined;
|
|
73
|
-
}>, any, any, import("@mastra/core
|
|
73
|
+
}>, any, any, import("@mastra/core").ToolExecutionContext<z.ZodObject<{
|
|
74
|
+
filePath: z.ZodString;
|
|
75
|
+
startLine: z.ZodOptional<z.ZodNumber>;
|
|
76
|
+
endLine: z.ZodOptional<z.ZodNumber>;
|
|
77
|
+
encoding: z.ZodDefault<z.ZodString>;
|
|
78
|
+
}, "strip", z.ZodTypeAny, {
|
|
79
|
+
filePath: string;
|
|
80
|
+
encoding: string;
|
|
81
|
+
startLine?: number | undefined;
|
|
82
|
+
endLine?: number | undefined;
|
|
83
|
+
}, {
|
|
84
|
+
filePath: string;
|
|
85
|
+
startLine?: number | undefined;
|
|
86
|
+
endLine?: number | undefined;
|
|
87
|
+
encoding?: string | undefined;
|
|
88
|
+
}>, any, any>> & {
|
|
74
89
|
inputSchema: z.ZodObject<{
|
|
75
90
|
filePath: z.ZodString;
|
|
76
91
|
startLine: z.ZodOptional<z.ZodNumber>;
|
|
@@ -131,23 +146,22 @@ export declare class AgentBuilderDefaults {
|
|
|
131
146
|
lastModified: string;
|
|
132
147
|
} | undefined;
|
|
133
148
|
}>;
|
|
134
|
-
execute: (
|
|
149
|
+
execute: (context: import("@mastra/core").ToolExecutionContext<z.ZodObject<{
|
|
150
|
+
filePath: z.ZodString;
|
|
151
|
+
startLine: z.ZodOptional<z.ZodNumber>;
|
|
152
|
+
endLine: z.ZodOptional<z.ZodNumber>;
|
|
153
|
+
encoding: z.ZodDefault<z.ZodString>;
|
|
154
|
+
}, "strip", z.ZodTypeAny, {
|
|
135
155
|
filePath: string;
|
|
136
156
|
encoding: string;
|
|
137
157
|
startLine?: number | undefined;
|
|
138
158
|
endLine?: number | undefined;
|
|
139
|
-
},
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
encoding: string;
|
|
146
|
-
size: number;
|
|
147
|
-
totalLines: number;
|
|
148
|
-
lastModified: string;
|
|
149
|
-
} | undefined;
|
|
150
|
-
}>;
|
|
159
|
+
}, {
|
|
160
|
+
filePath: string;
|
|
161
|
+
startLine?: number | undefined;
|
|
162
|
+
endLine?: number | undefined;
|
|
163
|
+
encoding?: string | undefined;
|
|
164
|
+
}>, any, any>, options: import("@mastra/core").MastraToolInvocationOptions) => Promise<any>;
|
|
151
165
|
};
|
|
152
166
|
writeFile: import("@mastra/core/tools").Tool<z.ZodObject<{
|
|
153
167
|
filePath: z.ZodString;
|
|
@@ -155,13 +169,13 @@ export declare class AgentBuilderDefaults {
|
|
|
155
169
|
createDirs: z.ZodDefault<z.ZodBoolean>;
|
|
156
170
|
encoding: z.ZodDefault<z.ZodString>;
|
|
157
171
|
}, "strip", z.ZodTypeAny, {
|
|
158
|
-
content: string;
|
|
159
172
|
filePath: string;
|
|
160
173
|
encoding: string;
|
|
174
|
+
content: string;
|
|
161
175
|
createDirs: boolean;
|
|
162
176
|
}, {
|
|
163
|
-
content: string;
|
|
164
177
|
filePath: string;
|
|
178
|
+
content: string;
|
|
165
179
|
encoding?: string | undefined;
|
|
166
180
|
createDirs?: boolean | undefined;
|
|
167
181
|
}>, z.ZodObject<{
|
|
@@ -182,20 +196,35 @@ export declare class AgentBuilderDefaults {
|
|
|
182
196
|
filePath: string;
|
|
183
197
|
error?: string | undefined;
|
|
184
198
|
bytesWritten?: number | undefined;
|
|
185
|
-
}>, any, any, import("@mastra/core
|
|
199
|
+
}>, any, any, import("@mastra/core").ToolExecutionContext<z.ZodObject<{
|
|
200
|
+
filePath: z.ZodString;
|
|
201
|
+
content: z.ZodString;
|
|
202
|
+
createDirs: z.ZodDefault<z.ZodBoolean>;
|
|
203
|
+
encoding: z.ZodDefault<z.ZodString>;
|
|
204
|
+
}, "strip", z.ZodTypeAny, {
|
|
205
|
+
filePath: string;
|
|
206
|
+
encoding: string;
|
|
207
|
+
content: string;
|
|
208
|
+
createDirs: boolean;
|
|
209
|
+
}, {
|
|
210
|
+
filePath: string;
|
|
211
|
+
content: string;
|
|
212
|
+
encoding?: string | undefined;
|
|
213
|
+
createDirs?: boolean | undefined;
|
|
214
|
+
}>, any, any>> & {
|
|
186
215
|
inputSchema: z.ZodObject<{
|
|
187
216
|
filePath: z.ZodString;
|
|
188
217
|
content: z.ZodString;
|
|
189
218
|
createDirs: z.ZodDefault<z.ZodBoolean>;
|
|
190
219
|
encoding: z.ZodDefault<z.ZodString>;
|
|
191
220
|
}, "strip", z.ZodTypeAny, {
|
|
192
|
-
content: string;
|
|
193
221
|
filePath: string;
|
|
194
222
|
encoding: string;
|
|
223
|
+
content: string;
|
|
195
224
|
createDirs: boolean;
|
|
196
225
|
}, {
|
|
197
|
-
content: string;
|
|
198
226
|
filePath: string;
|
|
227
|
+
content: string;
|
|
199
228
|
encoding?: string | undefined;
|
|
200
229
|
createDirs?: boolean | undefined;
|
|
201
230
|
}>;
|
|
@@ -218,18 +247,22 @@ export declare class AgentBuilderDefaults {
|
|
|
218
247
|
error?: string | undefined;
|
|
219
248
|
bytesWritten?: number | undefined;
|
|
220
249
|
}>;
|
|
221
|
-
execute: (
|
|
222
|
-
|
|
250
|
+
execute: (context: import("@mastra/core").ToolExecutionContext<z.ZodObject<{
|
|
251
|
+
filePath: z.ZodString;
|
|
252
|
+
content: z.ZodString;
|
|
253
|
+
createDirs: z.ZodDefault<z.ZodBoolean>;
|
|
254
|
+
encoding: z.ZodDefault<z.ZodString>;
|
|
255
|
+
}, "strip", z.ZodTypeAny, {
|
|
223
256
|
filePath: string;
|
|
224
257
|
encoding: string;
|
|
258
|
+
content: string;
|
|
225
259
|
createDirs: boolean;
|
|
226
|
-
},
|
|
227
|
-
message: string;
|
|
228
|
-
success: boolean;
|
|
260
|
+
}, {
|
|
229
261
|
filePath: string;
|
|
230
|
-
|
|
231
|
-
|
|
232
|
-
|
|
262
|
+
content: string;
|
|
263
|
+
encoding?: string | undefined;
|
|
264
|
+
createDirs?: boolean | undefined;
|
|
265
|
+
}>, any, any>, options: import("@mastra/core").MastraToolInvocationOptions) => Promise<any>;
|
|
233
266
|
};
|
|
234
267
|
listDirectory: import("@mastra/core/tools").Tool<z.ZodObject<{
|
|
235
268
|
path: z.ZodString;
|
|
@@ -308,7 +341,28 @@ export declare class AgentBuilderDefaults {
|
|
|
308
341
|
}[];
|
|
309
342
|
totalItems: number;
|
|
310
343
|
error?: string | undefined;
|
|
311
|
-
}>, any, any, import("@mastra/core
|
|
344
|
+
}>, any, any, import("@mastra/core").ToolExecutionContext<z.ZodObject<{
|
|
345
|
+
path: z.ZodString;
|
|
346
|
+
recursive: z.ZodDefault<z.ZodBoolean>;
|
|
347
|
+
includeHidden: z.ZodDefault<z.ZodBoolean>;
|
|
348
|
+
pattern: z.ZodDefault<z.ZodString>;
|
|
349
|
+
maxDepth: z.ZodDefault<z.ZodNumber>;
|
|
350
|
+
includeMetadata: z.ZodDefault<z.ZodBoolean>;
|
|
351
|
+
}, "strip", z.ZodTypeAny, {
|
|
352
|
+
path: string;
|
|
353
|
+
recursive: boolean;
|
|
354
|
+
includeHidden: boolean;
|
|
355
|
+
pattern: string;
|
|
356
|
+
maxDepth: number;
|
|
357
|
+
includeMetadata: boolean;
|
|
358
|
+
}, {
|
|
359
|
+
path: string;
|
|
360
|
+
recursive?: boolean | undefined;
|
|
361
|
+
includeHidden?: boolean | undefined;
|
|
362
|
+
pattern?: string | undefined;
|
|
363
|
+
maxDepth?: number | undefined;
|
|
364
|
+
includeMetadata?: boolean | undefined;
|
|
365
|
+
}>, any, any>> & {
|
|
312
366
|
inputSchema: z.ZodObject<{
|
|
313
367
|
path: z.ZodString;
|
|
314
368
|
recursive: z.ZodDefault<z.ZodBoolean>;
|
|
@@ -388,28 +442,28 @@ export declare class AgentBuilderDefaults {
|
|
|
388
442
|
totalItems: number;
|
|
389
443
|
error?: string | undefined;
|
|
390
444
|
}>;
|
|
391
|
-
execute: (
|
|
445
|
+
execute: (context: import("@mastra/core").ToolExecutionContext<z.ZodObject<{
|
|
446
|
+
path: z.ZodString;
|
|
447
|
+
recursive: z.ZodDefault<z.ZodBoolean>;
|
|
448
|
+
includeHidden: z.ZodDefault<z.ZodBoolean>;
|
|
449
|
+
pattern: z.ZodDefault<z.ZodString>;
|
|
450
|
+
maxDepth: z.ZodDefault<z.ZodNumber>;
|
|
451
|
+
includeMetadata: z.ZodDefault<z.ZodBoolean>;
|
|
452
|
+
}, "strip", z.ZodTypeAny, {
|
|
392
453
|
path: string;
|
|
393
454
|
recursive: boolean;
|
|
394
455
|
includeHidden: boolean;
|
|
395
456
|
pattern: string;
|
|
396
457
|
maxDepth: number;
|
|
397
458
|
includeMetadata: boolean;
|
|
398
|
-
},
|
|
459
|
+
}, {
|
|
399
460
|
path: string;
|
|
400
|
-
|
|
401
|
-
|
|
402
|
-
|
|
403
|
-
|
|
404
|
-
|
|
405
|
-
|
|
406
|
-
size?: number | undefined;
|
|
407
|
-
lastModified?: string | undefined;
|
|
408
|
-
permissions?: string | undefined;
|
|
409
|
-
}[];
|
|
410
|
-
totalItems: number;
|
|
411
|
-
error?: string | undefined;
|
|
412
|
-
}>;
|
|
461
|
+
recursive?: boolean | undefined;
|
|
462
|
+
includeHidden?: boolean | undefined;
|
|
463
|
+
pattern?: string | undefined;
|
|
464
|
+
maxDepth?: number | undefined;
|
|
465
|
+
includeMetadata?: boolean | undefined;
|
|
466
|
+
}>, any, any>, options: import("@mastra/core").MastraToolInvocationOptions) => Promise<any>;
|
|
413
467
|
};
|
|
414
468
|
executeCommand: import("@mastra/core/tools").Tool<z.ZodObject<{
|
|
415
469
|
command: z.ZodString;
|
|
@@ -459,7 +513,28 @@ export declare class AgentBuilderDefaults {
|
|
|
459
513
|
workingDirectory?: string | undefined;
|
|
460
514
|
exitCode?: number | undefined;
|
|
461
515
|
executionTime?: number | undefined;
|
|
462
|
-
}>, any, any, import("@mastra/core
|
|
516
|
+
}>, any, any, import("@mastra/core").ToolExecutionContext<z.ZodObject<{
|
|
517
|
+
command: z.ZodString;
|
|
518
|
+
workingDirectory: z.ZodOptional<z.ZodString>;
|
|
519
|
+
timeout: z.ZodDefault<z.ZodNumber>;
|
|
520
|
+
captureOutput: z.ZodDefault<z.ZodBoolean>;
|
|
521
|
+
shell: z.ZodOptional<z.ZodString>;
|
|
522
|
+
env: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
523
|
+
}, "strip", z.ZodTypeAny, {
|
|
524
|
+
command: string;
|
|
525
|
+
timeout: number;
|
|
526
|
+
captureOutput: boolean;
|
|
527
|
+
workingDirectory?: string | undefined;
|
|
528
|
+
shell?: string | undefined;
|
|
529
|
+
env?: Record<string, string> | undefined;
|
|
530
|
+
}, {
|
|
531
|
+
command: string;
|
|
532
|
+
workingDirectory?: string | undefined;
|
|
533
|
+
timeout?: number | undefined;
|
|
534
|
+
captureOutput?: boolean | undefined;
|
|
535
|
+
shell?: string | undefined;
|
|
536
|
+
env?: Record<string, string> | undefined;
|
|
537
|
+
}>, any, any>> & {
|
|
463
538
|
inputSchema: z.ZodObject<{
|
|
464
539
|
command: z.ZodString;
|
|
465
540
|
workingDirectory: z.ZodOptional<z.ZodString>;
|
|
@@ -510,23 +585,28 @@ export declare class AgentBuilderDefaults {
|
|
|
510
585
|
exitCode?: number | undefined;
|
|
511
586
|
executionTime?: number | undefined;
|
|
512
587
|
}>;
|
|
513
|
-
execute: (
|
|
588
|
+
execute: (context: import("@mastra/core").ToolExecutionContext<z.ZodObject<{
|
|
589
|
+
command: z.ZodString;
|
|
590
|
+
workingDirectory: z.ZodOptional<z.ZodString>;
|
|
591
|
+
timeout: z.ZodDefault<z.ZodNumber>;
|
|
592
|
+
captureOutput: z.ZodDefault<z.ZodBoolean>;
|
|
593
|
+
shell: z.ZodOptional<z.ZodString>;
|
|
594
|
+
env: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
595
|
+
}, "strip", z.ZodTypeAny, {
|
|
514
596
|
command: string;
|
|
515
597
|
timeout: number;
|
|
516
598
|
captureOutput: boolean;
|
|
517
599
|
workingDirectory?: string | undefined;
|
|
518
600
|
shell?: string | undefined;
|
|
519
601
|
env?: Record<string, string> | undefined;
|
|
520
|
-
},
|
|
521
|
-
success: boolean;
|
|
602
|
+
}, {
|
|
522
603
|
command: string;
|
|
523
|
-
error?: string | undefined;
|
|
524
|
-
stdout?: string | undefined;
|
|
525
|
-
stderr?: string | undefined;
|
|
526
604
|
workingDirectory?: string | undefined;
|
|
527
|
-
|
|
528
|
-
|
|
529
|
-
|
|
605
|
+
timeout?: number | undefined;
|
|
606
|
+
captureOutput?: boolean | undefined;
|
|
607
|
+
shell?: string | undefined;
|
|
608
|
+
env?: Record<string, string> | undefined;
|
|
609
|
+
}>, any, any>, options: import("@mastra/core").MastraToolInvocationOptions) => Promise<any>;
|
|
530
610
|
};
|
|
531
611
|
taskManager: import("@mastra/core/tools").Tool<z.ZodObject<{
|
|
532
612
|
action: z.ZodEnum<["create", "update", "list", "complete", "remove"]>;
|
|
@@ -632,7 +712,54 @@ export declare class AgentBuilderDefaults {
|
|
|
632
712
|
dependencies?: string[] | undefined;
|
|
633
713
|
notes?: string | undefined;
|
|
634
714
|
}[];
|
|
635
|
-
}>, any, any, import("@mastra/core
|
|
715
|
+
}>, any, any, import("@mastra/core").ToolExecutionContext<z.ZodObject<{
|
|
716
|
+
action: z.ZodEnum<["create", "update", "list", "complete", "remove"]>;
|
|
717
|
+
tasks: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
718
|
+
id: z.ZodString;
|
|
719
|
+
content: z.ZodOptional<z.ZodString>;
|
|
720
|
+
status: z.ZodEnum<["pending", "in_progress", "completed", "blocked"]>;
|
|
721
|
+
priority: z.ZodDefault<z.ZodEnum<["high", "medium", "low"]>>;
|
|
722
|
+
dependencies: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
723
|
+
notes: z.ZodOptional<z.ZodString>;
|
|
724
|
+
}, "strip", z.ZodTypeAny, {
|
|
725
|
+
status: "pending" | "in_progress" | "completed" | "blocked";
|
|
726
|
+
id: string;
|
|
727
|
+
priority: "high" | "medium" | "low";
|
|
728
|
+
dependencies?: string[] | undefined;
|
|
729
|
+
content?: string | undefined;
|
|
730
|
+
notes?: string | undefined;
|
|
731
|
+
}, {
|
|
732
|
+
status: "pending" | "in_progress" | "completed" | "blocked";
|
|
733
|
+
id: string;
|
|
734
|
+
dependencies?: string[] | undefined;
|
|
735
|
+
content?: string | undefined;
|
|
736
|
+
priority?: "high" | "medium" | "low" | undefined;
|
|
737
|
+
notes?: string | undefined;
|
|
738
|
+
}>, "many">>;
|
|
739
|
+
taskId: z.ZodOptional<z.ZodString>;
|
|
740
|
+
}, "strip", z.ZodTypeAny, {
|
|
741
|
+
action: "create" | "update" | "list" | "complete" | "remove";
|
|
742
|
+
tasks?: {
|
|
743
|
+
status: "pending" | "in_progress" | "completed" | "blocked";
|
|
744
|
+
id: string;
|
|
745
|
+
priority: "high" | "medium" | "low";
|
|
746
|
+
dependencies?: string[] | undefined;
|
|
747
|
+
content?: string | undefined;
|
|
748
|
+
notes?: string | undefined;
|
|
749
|
+
}[] | undefined;
|
|
750
|
+
taskId?: string | undefined;
|
|
751
|
+
}, {
|
|
752
|
+
action: "create" | "update" | "list" | "complete" | "remove";
|
|
753
|
+
tasks?: {
|
|
754
|
+
status: "pending" | "in_progress" | "completed" | "blocked";
|
|
755
|
+
id: string;
|
|
756
|
+
dependencies?: string[] | undefined;
|
|
757
|
+
content?: string | undefined;
|
|
758
|
+
priority?: "high" | "medium" | "low" | undefined;
|
|
759
|
+
notes?: string | undefined;
|
|
760
|
+
}[] | undefined;
|
|
761
|
+
taskId?: string | undefined;
|
|
762
|
+
}>, any, any>> & {
|
|
636
763
|
inputSchema: z.ZodObject<{
|
|
637
764
|
action: z.ZodEnum<["create", "update", "list", "complete", "remove"]>;
|
|
638
765
|
tasks: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
@@ -739,7 +866,32 @@ export declare class AgentBuilderDefaults {
|
|
|
739
866
|
notes?: string | undefined;
|
|
740
867
|
}[];
|
|
741
868
|
}>;
|
|
742
|
-
execute: (
|
|
869
|
+
execute: (context: import("@mastra/core").ToolExecutionContext<z.ZodObject<{
|
|
870
|
+
action: z.ZodEnum<["create", "update", "list", "complete", "remove"]>;
|
|
871
|
+
tasks: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
872
|
+
id: z.ZodString;
|
|
873
|
+
content: z.ZodOptional<z.ZodString>;
|
|
874
|
+
status: z.ZodEnum<["pending", "in_progress", "completed", "blocked"]>;
|
|
875
|
+
priority: z.ZodDefault<z.ZodEnum<["high", "medium", "low"]>>;
|
|
876
|
+
dependencies: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
877
|
+
notes: z.ZodOptional<z.ZodString>;
|
|
878
|
+
}, "strip", z.ZodTypeAny, {
|
|
879
|
+
status: "pending" | "in_progress" | "completed" | "blocked";
|
|
880
|
+
id: string;
|
|
881
|
+
priority: "high" | "medium" | "low";
|
|
882
|
+
dependencies?: string[] | undefined;
|
|
883
|
+
content?: string | undefined;
|
|
884
|
+
notes?: string | undefined;
|
|
885
|
+
}, {
|
|
886
|
+
status: "pending" | "in_progress" | "completed" | "blocked";
|
|
887
|
+
id: string;
|
|
888
|
+
dependencies?: string[] | undefined;
|
|
889
|
+
content?: string | undefined;
|
|
890
|
+
priority?: "high" | "medium" | "low" | undefined;
|
|
891
|
+
notes?: string | undefined;
|
|
892
|
+
}>, "many">>;
|
|
893
|
+
taskId: z.ZodOptional<z.ZodString>;
|
|
894
|
+
}, "strip", z.ZodTypeAny, {
|
|
743
895
|
action: "create" | "update" | "list" | "complete" | "remove";
|
|
744
896
|
tasks?: {
|
|
745
897
|
status: "pending" | "in_progress" | "completed" | "blocked";
|
|
@@ -750,20 +902,18 @@ export declare class AgentBuilderDefaults {
|
|
|
750
902
|
notes?: string | undefined;
|
|
751
903
|
}[] | undefined;
|
|
752
904
|
taskId?: string | undefined;
|
|
753
|
-
},
|
|
754
|
-
|
|
755
|
-
|
|
756
|
-
|
|
757
|
-
status: string;
|
|
905
|
+
}, {
|
|
906
|
+
action: "create" | "update" | "list" | "complete" | "remove";
|
|
907
|
+
tasks?: {
|
|
908
|
+
status: "pending" | "in_progress" | "completed" | "blocked";
|
|
758
909
|
id: string;
|
|
759
|
-
content: string;
|
|
760
|
-
priority: string;
|
|
761
|
-
createdAt: string;
|
|
762
|
-
updatedAt: string;
|
|
763
910
|
dependencies?: string[] | undefined;
|
|
911
|
+
content?: string | undefined;
|
|
912
|
+
priority?: "high" | "medium" | "low" | undefined;
|
|
764
913
|
notes?: string | undefined;
|
|
765
|
-
}[];
|
|
766
|
-
|
|
914
|
+
}[] | undefined;
|
|
915
|
+
taskId?: string | undefined;
|
|
916
|
+
}>, any, any>, options: import("@mastra/core").MastraToolInvocationOptions) => Promise<any>;
|
|
767
917
|
};
|
|
768
918
|
multiEdit: import("@mastra/core/tools").Tool<z.ZodObject<{
|
|
769
919
|
operations: z.ZodArray<z.ZodObject<{
|
|
@@ -854,16 +1004,68 @@ export declare class AgentBuilderDefaults {
|
|
|
854
1004
|
editsApplied: number;
|
|
855
1005
|
backup?: string | undefined;
|
|
856
1006
|
}[];
|
|
857
|
-
}>, any, any, import("@mastra/core
|
|
858
|
-
|
|
859
|
-
|
|
860
|
-
|
|
861
|
-
|
|
862
|
-
|
|
863
|
-
|
|
864
|
-
|
|
865
|
-
|
|
866
|
-
|
|
1007
|
+
}>, any, any, import("@mastra/core").ToolExecutionContext<z.ZodObject<{
|
|
1008
|
+
operations: z.ZodArray<z.ZodObject<{
|
|
1009
|
+
filePath: z.ZodString;
|
|
1010
|
+
edits: z.ZodArray<z.ZodObject<{
|
|
1011
|
+
oldString: z.ZodString;
|
|
1012
|
+
newString: z.ZodString;
|
|
1013
|
+
replaceAll: z.ZodDefault<z.ZodBoolean>;
|
|
1014
|
+
}, "strip", z.ZodTypeAny, {
|
|
1015
|
+
replaceAll: boolean;
|
|
1016
|
+
oldString: string;
|
|
1017
|
+
newString: string;
|
|
1018
|
+
}, {
|
|
1019
|
+
oldString: string;
|
|
1020
|
+
newString: string;
|
|
1021
|
+
replaceAll?: boolean | undefined;
|
|
1022
|
+
}>, "many">;
|
|
1023
|
+
}, "strip", z.ZodTypeAny, {
|
|
1024
|
+
filePath: string;
|
|
1025
|
+
edits: {
|
|
1026
|
+
replaceAll: boolean;
|
|
1027
|
+
oldString: string;
|
|
1028
|
+
newString: string;
|
|
1029
|
+
}[];
|
|
1030
|
+
}, {
|
|
1031
|
+
filePath: string;
|
|
1032
|
+
edits: {
|
|
1033
|
+
oldString: string;
|
|
1034
|
+
newString: string;
|
|
1035
|
+
replaceAll?: boolean | undefined;
|
|
1036
|
+
}[];
|
|
1037
|
+
}>, "many">;
|
|
1038
|
+
createBackup: z.ZodDefault<z.ZodBoolean>;
|
|
1039
|
+
}, "strip", z.ZodTypeAny, {
|
|
1040
|
+
operations: {
|
|
1041
|
+
filePath: string;
|
|
1042
|
+
edits: {
|
|
1043
|
+
replaceAll: boolean;
|
|
1044
|
+
oldString: string;
|
|
1045
|
+
newString: string;
|
|
1046
|
+
}[];
|
|
1047
|
+
}[];
|
|
1048
|
+
createBackup: boolean;
|
|
1049
|
+
}, {
|
|
1050
|
+
operations: {
|
|
1051
|
+
filePath: string;
|
|
1052
|
+
edits: {
|
|
1053
|
+
oldString: string;
|
|
1054
|
+
newString: string;
|
|
1055
|
+
replaceAll?: boolean | undefined;
|
|
1056
|
+
}[];
|
|
1057
|
+
}[];
|
|
1058
|
+
createBackup?: boolean | undefined;
|
|
1059
|
+
}>, any, any>> & {
|
|
1060
|
+
inputSchema: z.ZodObject<{
|
|
1061
|
+
operations: z.ZodArray<z.ZodObject<{
|
|
1062
|
+
filePath: z.ZodString;
|
|
1063
|
+
edits: z.ZodArray<z.ZodObject<{
|
|
1064
|
+
oldString: z.ZodString;
|
|
1065
|
+
newString: z.ZodString;
|
|
1066
|
+
replaceAll: z.ZodDefault<z.ZodBoolean>;
|
|
1067
|
+
}, "strip", z.ZodTypeAny, {
|
|
1068
|
+
replaceAll: boolean;
|
|
867
1069
|
oldString: string;
|
|
868
1070
|
newString: string;
|
|
869
1071
|
}, {
|
|
@@ -946,7 +1148,39 @@ export declare class AgentBuilderDefaults {
|
|
|
946
1148
|
backup?: string | undefined;
|
|
947
1149
|
}[];
|
|
948
1150
|
}>;
|
|
949
|
-
execute: (
|
|
1151
|
+
execute: (context: import("@mastra/core").ToolExecutionContext<z.ZodObject<{
|
|
1152
|
+
operations: z.ZodArray<z.ZodObject<{
|
|
1153
|
+
filePath: z.ZodString;
|
|
1154
|
+
edits: z.ZodArray<z.ZodObject<{
|
|
1155
|
+
oldString: z.ZodString;
|
|
1156
|
+
newString: z.ZodString;
|
|
1157
|
+
replaceAll: z.ZodDefault<z.ZodBoolean>;
|
|
1158
|
+
}, "strip", z.ZodTypeAny, {
|
|
1159
|
+
replaceAll: boolean;
|
|
1160
|
+
oldString: string;
|
|
1161
|
+
newString: string;
|
|
1162
|
+
}, {
|
|
1163
|
+
oldString: string;
|
|
1164
|
+
newString: string;
|
|
1165
|
+
replaceAll?: boolean | undefined;
|
|
1166
|
+
}>, "many">;
|
|
1167
|
+
}, "strip", z.ZodTypeAny, {
|
|
1168
|
+
filePath: string;
|
|
1169
|
+
edits: {
|
|
1170
|
+
replaceAll: boolean;
|
|
1171
|
+
oldString: string;
|
|
1172
|
+
newString: string;
|
|
1173
|
+
}[];
|
|
1174
|
+
}, {
|
|
1175
|
+
filePath: string;
|
|
1176
|
+
edits: {
|
|
1177
|
+
oldString: string;
|
|
1178
|
+
newString: string;
|
|
1179
|
+
replaceAll?: boolean | undefined;
|
|
1180
|
+
}[];
|
|
1181
|
+
}>, "many">;
|
|
1182
|
+
createBackup: z.ZodDefault<z.ZodBoolean>;
|
|
1183
|
+
}, "strip", z.ZodTypeAny, {
|
|
950
1184
|
operations: {
|
|
951
1185
|
filePath: string;
|
|
952
1186
|
edits: {
|
|
@@ -956,16 +1190,17 @@ export declare class AgentBuilderDefaults {
|
|
|
956
1190
|
}[];
|
|
957
1191
|
}[];
|
|
958
1192
|
createBackup: boolean;
|
|
959
|
-
},
|
|
960
|
-
|
|
961
|
-
success: boolean;
|
|
962
|
-
results: {
|
|
963
|
-
errors: string[];
|
|
1193
|
+
}, {
|
|
1194
|
+
operations: {
|
|
964
1195
|
filePath: string;
|
|
965
|
-
|
|
966
|
-
|
|
1196
|
+
edits: {
|
|
1197
|
+
oldString: string;
|
|
1198
|
+
newString: string;
|
|
1199
|
+
replaceAll?: boolean | undefined;
|
|
1200
|
+
}[];
|
|
967
1201
|
}[];
|
|
968
|
-
|
|
1202
|
+
createBackup?: boolean | undefined;
|
|
1203
|
+
}>, any, any>, options: import("@mastra/core").MastraToolInvocationOptions) => Promise<any>;
|
|
969
1204
|
};
|
|
970
1205
|
replaceLines: import("@mastra/core/tools").Tool<z.ZodObject<{
|
|
971
1206
|
filePath: z.ZodString;
|
|
@@ -1003,7 +1238,25 @@ export declare class AgentBuilderDefaults {
|
|
|
1003
1238
|
error?: string | undefined;
|
|
1004
1239
|
backup?: string | undefined;
|
|
1005
1240
|
linesReplaced?: number | undefined;
|
|
1006
|
-
}>, any, any, import("@mastra/core
|
|
1241
|
+
}>, any, any, import("@mastra/core").ToolExecutionContext<z.ZodObject<{
|
|
1242
|
+
filePath: z.ZodString;
|
|
1243
|
+
startLine: z.ZodNumber;
|
|
1244
|
+
endLine: z.ZodNumber;
|
|
1245
|
+
newContent: z.ZodString;
|
|
1246
|
+
createBackup: z.ZodDefault<z.ZodBoolean>;
|
|
1247
|
+
}, "strip", z.ZodTypeAny, {
|
|
1248
|
+
filePath: string;
|
|
1249
|
+
startLine: number;
|
|
1250
|
+
endLine: number;
|
|
1251
|
+
createBackup: boolean;
|
|
1252
|
+
newContent: string;
|
|
1253
|
+
}, {
|
|
1254
|
+
filePath: string;
|
|
1255
|
+
startLine: number;
|
|
1256
|
+
endLine: number;
|
|
1257
|
+
newContent: string;
|
|
1258
|
+
createBackup?: boolean | undefined;
|
|
1259
|
+
}>, any, any>> & {
|
|
1007
1260
|
inputSchema: z.ZodObject<{
|
|
1008
1261
|
filePath: z.ZodString;
|
|
1009
1262
|
startLine: z.ZodNumber;
|
|
@@ -1042,19 +1295,25 @@ export declare class AgentBuilderDefaults {
|
|
|
1042
1295
|
backup?: string | undefined;
|
|
1043
1296
|
linesReplaced?: number | undefined;
|
|
1044
1297
|
}>;
|
|
1045
|
-
execute: (
|
|
1298
|
+
execute: (context: import("@mastra/core").ToolExecutionContext<z.ZodObject<{
|
|
1299
|
+
filePath: z.ZodString;
|
|
1300
|
+
startLine: z.ZodNumber;
|
|
1301
|
+
endLine: z.ZodNumber;
|
|
1302
|
+
newContent: z.ZodString;
|
|
1303
|
+
createBackup: z.ZodDefault<z.ZodBoolean>;
|
|
1304
|
+
}, "strip", z.ZodTypeAny, {
|
|
1046
1305
|
filePath: string;
|
|
1047
1306
|
startLine: number;
|
|
1048
1307
|
endLine: number;
|
|
1049
1308
|
createBackup: boolean;
|
|
1050
1309
|
newContent: string;
|
|
1051
|
-
},
|
|
1052
|
-
|
|
1053
|
-
|
|
1054
|
-
|
|
1055
|
-
|
|
1056
|
-
|
|
1057
|
-
}>;
|
|
1310
|
+
}, {
|
|
1311
|
+
filePath: string;
|
|
1312
|
+
startLine: number;
|
|
1313
|
+
endLine: number;
|
|
1314
|
+
newContent: string;
|
|
1315
|
+
createBackup?: boolean | undefined;
|
|
1316
|
+
}>, any, any>, options: import("@mastra/core").MastraToolInvocationOptions) => Promise<any>;
|
|
1058
1317
|
};
|
|
1059
1318
|
showFileLines: import("@mastra/core/tools").Tool<z.ZodObject<{
|
|
1060
1319
|
filePath: z.ZodString;
|
|
@@ -1109,7 +1368,22 @@ export declare class AgentBuilderDefaults {
|
|
|
1109
1368
|
}[];
|
|
1110
1369
|
totalLines: number;
|
|
1111
1370
|
error?: string | undefined;
|
|
1112
|
-
}>, any, any, import("@mastra/core
|
|
1371
|
+
}>, any, any, import("@mastra/core").ToolExecutionContext<z.ZodObject<{
|
|
1372
|
+
filePath: z.ZodString;
|
|
1373
|
+
startLine: z.ZodOptional<z.ZodNumber>;
|
|
1374
|
+
endLine: z.ZodOptional<z.ZodNumber>;
|
|
1375
|
+
context: z.ZodDefault<z.ZodNumber>;
|
|
1376
|
+
}, "strip", z.ZodTypeAny, {
|
|
1377
|
+
filePath: string;
|
|
1378
|
+
context: number;
|
|
1379
|
+
startLine?: number | undefined;
|
|
1380
|
+
endLine?: number | undefined;
|
|
1381
|
+
}, {
|
|
1382
|
+
filePath: string;
|
|
1383
|
+
startLine?: number | undefined;
|
|
1384
|
+
endLine?: number | undefined;
|
|
1385
|
+
context?: number | undefined;
|
|
1386
|
+
}>, any, any>> & {
|
|
1113
1387
|
inputSchema: z.ZodObject<{
|
|
1114
1388
|
filePath: z.ZodString;
|
|
1115
1389
|
startLine: z.ZodOptional<z.ZodNumber>;
|
|
@@ -1165,22 +1439,22 @@ export declare class AgentBuilderDefaults {
|
|
|
1165
1439
|
totalLines: number;
|
|
1166
1440
|
error?: string | undefined;
|
|
1167
1441
|
}>;
|
|
1168
|
-
execute: (
|
|
1442
|
+
execute: (context: import("@mastra/core").ToolExecutionContext<z.ZodObject<{
|
|
1443
|
+
filePath: z.ZodString;
|
|
1444
|
+
startLine: z.ZodOptional<z.ZodNumber>;
|
|
1445
|
+
endLine: z.ZodOptional<z.ZodNumber>;
|
|
1446
|
+
context: z.ZodDefault<z.ZodNumber>;
|
|
1447
|
+
}, "strip", z.ZodTypeAny, {
|
|
1169
1448
|
filePath: string;
|
|
1170
1449
|
context: number;
|
|
1171
1450
|
startLine?: number | undefined;
|
|
1172
1451
|
endLine?: number | undefined;
|
|
1173
|
-
},
|
|
1174
|
-
|
|
1175
|
-
|
|
1176
|
-
|
|
1177
|
-
|
|
1178
|
-
|
|
1179
|
-
isTarget: boolean;
|
|
1180
|
-
}[];
|
|
1181
|
-
totalLines: number;
|
|
1182
|
-
error?: string | undefined;
|
|
1183
|
-
}>;
|
|
1452
|
+
}, {
|
|
1453
|
+
filePath: string;
|
|
1454
|
+
startLine?: number | undefined;
|
|
1455
|
+
endLine?: number | undefined;
|
|
1456
|
+
context?: number | undefined;
|
|
1457
|
+
}>, any, any>, options: import("@mastra/core").MastraToolInvocationOptions) => Promise<any>;
|
|
1184
1458
|
};
|
|
1185
1459
|
smartSearch: import("@mastra/core/tools").Tool<z.ZodObject<{
|
|
1186
1460
|
query: z.ZodString;
|
|
@@ -1330,7 +1604,67 @@ export declare class AgentBuilderDefaults {
|
|
|
1330
1604
|
filesSearched: number;
|
|
1331
1605
|
patterns: string[];
|
|
1332
1606
|
};
|
|
1333
|
-
}>, any, any, import("@mastra/core
|
|
1607
|
+
}>, any, any, import("@mastra/core").ToolExecutionContext<z.ZodObject<{
|
|
1608
|
+
query: z.ZodString;
|
|
1609
|
+
type: z.ZodDefault<z.ZodEnum<["text", "regex", "fuzzy", "semantic"]>>;
|
|
1610
|
+
scope: z.ZodOptional<z.ZodObject<{
|
|
1611
|
+
paths: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
1612
|
+
fileTypes: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
1613
|
+
excludePaths: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
1614
|
+
maxResults: z.ZodDefault<z.ZodNumber>;
|
|
1615
|
+
}, "strip", z.ZodTypeAny, {
|
|
1616
|
+
maxResults: number;
|
|
1617
|
+
paths?: string[] | undefined;
|
|
1618
|
+
fileTypes?: string[] | undefined;
|
|
1619
|
+
excludePaths?: string[] | undefined;
|
|
1620
|
+
}, {
|
|
1621
|
+
paths?: string[] | undefined;
|
|
1622
|
+
fileTypes?: string[] | undefined;
|
|
1623
|
+
excludePaths?: string[] | undefined;
|
|
1624
|
+
maxResults?: number | undefined;
|
|
1625
|
+
}>>;
|
|
1626
|
+
context: z.ZodOptional<z.ZodObject<{
|
|
1627
|
+
beforeLines: z.ZodDefault<z.ZodNumber>;
|
|
1628
|
+
afterLines: z.ZodDefault<z.ZodNumber>;
|
|
1629
|
+
includeDefinitions: z.ZodDefault<z.ZodBoolean>;
|
|
1630
|
+
}, "strip", z.ZodTypeAny, {
|
|
1631
|
+
beforeLines: number;
|
|
1632
|
+
afterLines: number;
|
|
1633
|
+
includeDefinitions: boolean;
|
|
1634
|
+
}, {
|
|
1635
|
+
beforeLines?: number | undefined;
|
|
1636
|
+
afterLines?: number | undefined;
|
|
1637
|
+
includeDefinitions?: boolean | undefined;
|
|
1638
|
+
}>>;
|
|
1639
|
+
}, "strip", z.ZodTypeAny, {
|
|
1640
|
+
type: "text" | "regex" | "fuzzy" | "semantic";
|
|
1641
|
+
query: string;
|
|
1642
|
+
context?: {
|
|
1643
|
+
beforeLines: number;
|
|
1644
|
+
afterLines: number;
|
|
1645
|
+
includeDefinitions: boolean;
|
|
1646
|
+
} | undefined;
|
|
1647
|
+
scope?: {
|
|
1648
|
+
maxResults: number;
|
|
1649
|
+
paths?: string[] | undefined;
|
|
1650
|
+
fileTypes?: string[] | undefined;
|
|
1651
|
+
excludePaths?: string[] | undefined;
|
|
1652
|
+
} | undefined;
|
|
1653
|
+
}, {
|
|
1654
|
+
query: string;
|
|
1655
|
+
type?: "text" | "regex" | "fuzzy" | "semantic" | undefined;
|
|
1656
|
+
context?: {
|
|
1657
|
+
beforeLines?: number | undefined;
|
|
1658
|
+
afterLines?: number | undefined;
|
|
1659
|
+
includeDefinitions?: boolean | undefined;
|
|
1660
|
+
} | undefined;
|
|
1661
|
+
scope?: {
|
|
1662
|
+
paths?: string[] | undefined;
|
|
1663
|
+
fileTypes?: string[] | undefined;
|
|
1664
|
+
excludePaths?: string[] | undefined;
|
|
1665
|
+
maxResults?: number | undefined;
|
|
1666
|
+
} | undefined;
|
|
1667
|
+
}>, any, any>> & {
|
|
1334
1668
|
inputSchema: z.ZodObject<{
|
|
1335
1669
|
query: z.ZodString;
|
|
1336
1670
|
type: z.ZodDefault<z.ZodEnum<["text", "regex", "fuzzy", "semantic"]>>;
|
|
@@ -1481,39 +1815,67 @@ export declare class AgentBuilderDefaults {
|
|
|
1481
1815
|
patterns: string[];
|
|
1482
1816
|
};
|
|
1483
1817
|
}>;
|
|
1484
|
-
execute: (
|
|
1485
|
-
|
|
1486
|
-
|
|
1487
|
-
|
|
1488
|
-
|
|
1489
|
-
|
|
1490
|
-
|
|
1491
|
-
|
|
1492
|
-
|
|
1818
|
+
execute: (context: import("@mastra/core").ToolExecutionContext<z.ZodObject<{
|
|
1819
|
+
query: z.ZodString;
|
|
1820
|
+
type: z.ZodDefault<z.ZodEnum<["text", "regex", "fuzzy", "semantic"]>>;
|
|
1821
|
+
scope: z.ZodOptional<z.ZodObject<{
|
|
1822
|
+
paths: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
1823
|
+
fileTypes: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
1824
|
+
excludePaths: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
1825
|
+
maxResults: z.ZodDefault<z.ZodNumber>;
|
|
1826
|
+
}, "strip", z.ZodTypeAny, {
|
|
1493
1827
|
maxResults: number;
|
|
1494
1828
|
paths?: string[] | undefined;
|
|
1495
1829
|
fileTypes?: string[] | undefined;
|
|
1496
1830
|
excludePaths?: string[] | undefined;
|
|
1497
|
-
}
|
|
1498
|
-
|
|
1499
|
-
|
|
1500
|
-
|
|
1501
|
-
|
|
1502
|
-
|
|
1503
|
-
|
|
1504
|
-
|
|
1505
|
-
|
|
1506
|
-
|
|
1507
|
-
|
|
1508
|
-
|
|
1509
|
-
|
|
1510
|
-
|
|
1511
|
-
|
|
1512
|
-
|
|
1513
|
-
|
|
1514
|
-
|
|
1515
|
-
}
|
|
1516
|
-
}
|
|
1831
|
+
}, {
|
|
1832
|
+
paths?: string[] | undefined;
|
|
1833
|
+
fileTypes?: string[] | undefined;
|
|
1834
|
+
excludePaths?: string[] | undefined;
|
|
1835
|
+
maxResults?: number | undefined;
|
|
1836
|
+
}>>;
|
|
1837
|
+
context: z.ZodOptional<z.ZodObject<{
|
|
1838
|
+
beforeLines: z.ZodDefault<z.ZodNumber>;
|
|
1839
|
+
afterLines: z.ZodDefault<z.ZodNumber>;
|
|
1840
|
+
includeDefinitions: z.ZodDefault<z.ZodBoolean>;
|
|
1841
|
+
}, "strip", z.ZodTypeAny, {
|
|
1842
|
+
beforeLines: number;
|
|
1843
|
+
afterLines: number;
|
|
1844
|
+
includeDefinitions: boolean;
|
|
1845
|
+
}, {
|
|
1846
|
+
beforeLines?: number | undefined;
|
|
1847
|
+
afterLines?: number | undefined;
|
|
1848
|
+
includeDefinitions?: boolean | undefined;
|
|
1849
|
+
}>>;
|
|
1850
|
+
}, "strip", z.ZodTypeAny, {
|
|
1851
|
+
type: "text" | "regex" | "fuzzy" | "semantic";
|
|
1852
|
+
query: string;
|
|
1853
|
+
context?: {
|
|
1854
|
+
beforeLines: number;
|
|
1855
|
+
afterLines: number;
|
|
1856
|
+
includeDefinitions: boolean;
|
|
1857
|
+
} | undefined;
|
|
1858
|
+
scope?: {
|
|
1859
|
+
maxResults: number;
|
|
1860
|
+
paths?: string[] | undefined;
|
|
1861
|
+
fileTypes?: string[] | undefined;
|
|
1862
|
+
excludePaths?: string[] | undefined;
|
|
1863
|
+
} | undefined;
|
|
1864
|
+
}, {
|
|
1865
|
+
query: string;
|
|
1866
|
+
type?: "text" | "regex" | "fuzzy" | "semantic" | undefined;
|
|
1867
|
+
context?: {
|
|
1868
|
+
beforeLines?: number | undefined;
|
|
1869
|
+
afterLines?: number | undefined;
|
|
1870
|
+
includeDefinitions?: boolean | undefined;
|
|
1871
|
+
} | undefined;
|
|
1872
|
+
scope?: {
|
|
1873
|
+
paths?: string[] | undefined;
|
|
1874
|
+
fileTypes?: string[] | undefined;
|
|
1875
|
+
excludePaths?: string[] | undefined;
|
|
1876
|
+
maxResults?: number | undefined;
|
|
1877
|
+
} | undefined;
|
|
1878
|
+
}>, any, any>, options: import("@mastra/core").MastraToolInvocationOptions) => Promise<any>;
|
|
1517
1879
|
};
|
|
1518
1880
|
validateCode: import("@mastra/core/tools").Tool<z.ZodObject<{
|
|
1519
1881
|
projectPath: z.ZodOptional<z.ZodString>;
|
|
@@ -1604,7 +1966,19 @@ export declare class AgentBuilderDefaults {
|
|
|
1604
1966
|
validationsPassed: string[];
|
|
1605
1967
|
validationsFailed: string[];
|
|
1606
1968
|
};
|
|
1607
|
-
}>, any, any, import("@mastra/core
|
|
1969
|
+
}>, any, any, import("@mastra/core").ToolExecutionContext<z.ZodObject<{
|
|
1970
|
+
projectPath: z.ZodOptional<z.ZodString>;
|
|
1971
|
+
validationType: z.ZodArray<z.ZodEnum<["types", "lint", "schemas", "tests", "build"]>, "many">;
|
|
1972
|
+
files: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
1973
|
+
}, "strip", z.ZodTypeAny, {
|
|
1974
|
+
validationType: ("types" | "schemas" | "tests" | "lint" | "build")[];
|
|
1975
|
+
projectPath?: string | undefined;
|
|
1976
|
+
files?: string[] | undefined;
|
|
1977
|
+
}, {
|
|
1978
|
+
validationType: ("types" | "schemas" | "tests" | "lint" | "build")[];
|
|
1979
|
+
projectPath?: string | undefined;
|
|
1980
|
+
files?: string[] | undefined;
|
|
1981
|
+
}>, any, any>> & {
|
|
1608
1982
|
inputSchema: z.ZodObject<{
|
|
1609
1983
|
projectPath: z.ZodOptional<z.ZodString>;
|
|
1610
1984
|
validationType: z.ZodArray<z.ZodEnum<["types", "lint", "schemas", "tests", "build"]>, "many">;
|
|
@@ -1696,28 +2070,19 @@ export declare class AgentBuilderDefaults {
|
|
|
1696
2070
|
validationsFailed: string[];
|
|
1697
2071
|
};
|
|
1698
2072
|
}>;
|
|
1699
|
-
execute: (
|
|
2073
|
+
execute: (context: import("@mastra/core").ToolExecutionContext<z.ZodObject<{
|
|
2074
|
+
projectPath: z.ZodOptional<z.ZodString>;
|
|
2075
|
+
validationType: z.ZodArray<z.ZodEnum<["types", "lint", "schemas", "tests", "build"]>, "many">;
|
|
2076
|
+
files: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
2077
|
+
}, "strip", z.ZodTypeAny, {
|
|
1700
2078
|
validationType: ("types" | "schemas" | "tests" | "lint" | "build")[];
|
|
1701
2079
|
projectPath?: string | undefined;
|
|
1702
2080
|
files?: string[] | undefined;
|
|
1703
|
-
},
|
|
1704
|
-
|
|
1705
|
-
|
|
1706
|
-
|
|
1707
|
-
|
|
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
|
-
}>;
|
|
2081
|
+
}, {
|
|
2082
|
+
validationType: ("types" | "schemas" | "tests" | "lint" | "build")[];
|
|
2083
|
+
projectPath?: string | undefined;
|
|
2084
|
+
files?: string[] | undefined;
|
|
2085
|
+
}>, any, any>, options: import("@mastra/core").MastraToolInvocationOptions) => Promise<any>;
|
|
1721
2086
|
};
|
|
1722
2087
|
webSearch: import("@mastra/core/tools").Tool<z.ZodObject<{
|
|
1723
2088
|
query: z.ZodString;
|
|
@@ -1751,15 +2116,15 @@ export declare class AgentBuilderDefaults {
|
|
|
1751
2116
|
publishDate: z.ZodOptional<z.ZodString>;
|
|
1752
2117
|
relevanceScore: z.ZodOptional<z.ZodNumber>;
|
|
1753
2118
|
}, "strip", z.ZodTypeAny, {
|
|
1754
|
-
url: string;
|
|
1755
2119
|
title: string;
|
|
2120
|
+
url: string;
|
|
1756
2121
|
snippet: string;
|
|
1757
2122
|
domain: string;
|
|
1758
2123
|
publishDate?: string | undefined;
|
|
1759
2124
|
relevanceScore?: number | undefined;
|
|
1760
2125
|
}, {
|
|
1761
|
-
url: string;
|
|
1762
2126
|
title: string;
|
|
2127
|
+
url: string;
|
|
1763
2128
|
snippet: string;
|
|
1764
2129
|
domain: string;
|
|
1765
2130
|
publishDate?: string | undefined;
|
|
@@ -1772,8 +2137,8 @@ export declare class AgentBuilderDefaults {
|
|
|
1772
2137
|
}, "strip", z.ZodTypeAny, {
|
|
1773
2138
|
success: boolean;
|
|
1774
2139
|
results: {
|
|
1775
|
-
url: string;
|
|
1776
2140
|
title: string;
|
|
2141
|
+
url: string;
|
|
1777
2142
|
snippet: string;
|
|
1778
2143
|
domain: string;
|
|
1779
2144
|
publishDate?: string | undefined;
|
|
@@ -1787,8 +2152,8 @@ export declare class AgentBuilderDefaults {
|
|
|
1787
2152
|
}, {
|
|
1788
2153
|
success: boolean;
|
|
1789
2154
|
results: {
|
|
1790
|
-
url: string;
|
|
1791
2155
|
title: string;
|
|
2156
|
+
url: string;
|
|
1792
2157
|
snippet: string;
|
|
1793
2158
|
domain: string;
|
|
1794
2159
|
publishDate?: string | undefined;
|
|
@@ -1799,7 +2164,28 @@ export declare class AgentBuilderDefaults {
|
|
|
1799
2164
|
searchTime: number;
|
|
1800
2165
|
error?: string | undefined;
|
|
1801
2166
|
suggestions?: string[] | undefined;
|
|
1802
|
-
}>, any, any, import("@mastra/core
|
|
2167
|
+
}>, any, any, import("@mastra/core").ToolExecutionContext<z.ZodObject<{
|
|
2168
|
+
query: z.ZodString;
|
|
2169
|
+
maxResults: z.ZodDefault<z.ZodNumber>;
|
|
2170
|
+
region: z.ZodDefault<z.ZodString>;
|
|
2171
|
+
language: z.ZodDefault<z.ZodString>;
|
|
2172
|
+
includeImages: z.ZodDefault<z.ZodBoolean>;
|
|
2173
|
+
dateRange: z.ZodDefault<z.ZodEnum<["day", "week", "month", "year", "all"]>>;
|
|
2174
|
+
}, "strip", z.ZodTypeAny, {
|
|
2175
|
+
query: string;
|
|
2176
|
+
maxResults: number;
|
|
2177
|
+
region: string;
|
|
2178
|
+
language: string;
|
|
2179
|
+
includeImages: boolean;
|
|
2180
|
+
dateRange: "day" | "week" | "month" | "year" | "all";
|
|
2181
|
+
}, {
|
|
2182
|
+
query: string;
|
|
2183
|
+
maxResults?: number | undefined;
|
|
2184
|
+
region?: string | undefined;
|
|
2185
|
+
language?: string | undefined;
|
|
2186
|
+
includeImages?: boolean | undefined;
|
|
2187
|
+
dateRange?: "day" | "week" | "month" | "year" | "all" | undefined;
|
|
2188
|
+
}>, any, any>> & {
|
|
1803
2189
|
inputSchema: z.ZodObject<{
|
|
1804
2190
|
query: z.ZodString;
|
|
1805
2191
|
maxResults: z.ZodDefault<z.ZodNumber>;
|
|
@@ -1833,15 +2219,15 @@ export declare class AgentBuilderDefaults {
|
|
|
1833
2219
|
publishDate: z.ZodOptional<z.ZodString>;
|
|
1834
2220
|
relevanceScore: z.ZodOptional<z.ZodNumber>;
|
|
1835
2221
|
}, "strip", z.ZodTypeAny, {
|
|
1836
|
-
url: string;
|
|
1837
2222
|
title: string;
|
|
2223
|
+
url: string;
|
|
1838
2224
|
snippet: string;
|
|
1839
2225
|
domain: string;
|
|
1840
2226
|
publishDate?: string | undefined;
|
|
1841
2227
|
relevanceScore?: number | undefined;
|
|
1842
2228
|
}, {
|
|
1843
|
-
url: string;
|
|
1844
2229
|
title: string;
|
|
2230
|
+
url: string;
|
|
1845
2231
|
snippet: string;
|
|
1846
2232
|
domain: string;
|
|
1847
2233
|
publishDate?: string | undefined;
|
|
@@ -1854,8 +2240,8 @@ export declare class AgentBuilderDefaults {
|
|
|
1854
2240
|
}, "strip", z.ZodTypeAny, {
|
|
1855
2241
|
success: boolean;
|
|
1856
2242
|
results: {
|
|
1857
|
-
url: string;
|
|
1858
2243
|
title: string;
|
|
2244
|
+
url: string;
|
|
1859
2245
|
snippet: string;
|
|
1860
2246
|
domain: string;
|
|
1861
2247
|
publishDate?: string | undefined;
|
|
@@ -1869,8 +2255,8 @@ export declare class AgentBuilderDefaults {
|
|
|
1869
2255
|
}, {
|
|
1870
2256
|
success: boolean;
|
|
1871
2257
|
results: {
|
|
1872
|
-
url: string;
|
|
1873
2258
|
title: string;
|
|
2259
|
+
url: string;
|
|
1874
2260
|
snippet: string;
|
|
1875
2261
|
domain: string;
|
|
1876
2262
|
publishDate?: string | undefined;
|
|
@@ -1882,29 +2268,28 @@ export declare class AgentBuilderDefaults {
|
|
|
1882
2268
|
error?: string | undefined;
|
|
1883
2269
|
suggestions?: string[] | undefined;
|
|
1884
2270
|
}>;
|
|
1885
|
-
execute: (
|
|
2271
|
+
execute: (context: import("@mastra/core").ToolExecutionContext<z.ZodObject<{
|
|
2272
|
+
query: z.ZodString;
|
|
2273
|
+
maxResults: z.ZodDefault<z.ZodNumber>;
|
|
2274
|
+
region: z.ZodDefault<z.ZodString>;
|
|
2275
|
+
language: z.ZodDefault<z.ZodString>;
|
|
2276
|
+
includeImages: z.ZodDefault<z.ZodBoolean>;
|
|
2277
|
+
dateRange: z.ZodDefault<z.ZodEnum<["day", "week", "month", "year", "all"]>>;
|
|
2278
|
+
}, "strip", z.ZodTypeAny, {
|
|
1886
2279
|
query: string;
|
|
1887
2280
|
maxResults: number;
|
|
1888
2281
|
region: string;
|
|
1889
2282
|
language: string;
|
|
1890
2283
|
includeImages: boolean;
|
|
1891
2284
|
dateRange: "day" | "week" | "month" | "year" | "all";
|
|
1892
|
-
},
|
|
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
|
-
}[];
|
|
2285
|
+
}, {
|
|
1902
2286
|
query: string;
|
|
1903
|
-
|
|
1904
|
-
|
|
1905
|
-
|
|
1906
|
-
|
|
1907
|
-
|
|
2287
|
+
maxResults?: number | undefined;
|
|
2288
|
+
region?: string | undefined;
|
|
2289
|
+
language?: string | undefined;
|
|
2290
|
+
includeImages?: boolean | undefined;
|
|
2291
|
+
dateRange?: "day" | "week" | "month" | "year" | "all" | undefined;
|
|
2292
|
+
}>, any, any>, options: import("@mastra/core").MastraToolInvocationOptions) => Promise<any>;
|
|
1908
2293
|
};
|
|
1909
2294
|
attemptCompletion: import("@mastra/core/tools").Tool<z.ZodObject<{
|
|
1910
2295
|
summary: z.ZodString;
|
|
@@ -1976,7 +2361,62 @@ export declare class AgentBuilderDefaults {
|
|
|
1976
2361
|
summary: string;
|
|
1977
2362
|
completionId: string;
|
|
1978
2363
|
confidence: number;
|
|
1979
|
-
}>, any, any, import("@mastra/core
|
|
2364
|
+
}>, any, any, import("@mastra/core").ToolExecutionContext<z.ZodObject<{
|
|
2365
|
+
summary: z.ZodString;
|
|
2366
|
+
changes: z.ZodArray<z.ZodObject<{
|
|
2367
|
+
type: z.ZodEnum<["file_created", "file_modified", "file_deleted", "command_executed", "dependency_added"]>;
|
|
2368
|
+
description: z.ZodString;
|
|
2369
|
+
path: z.ZodOptional<z.ZodString>;
|
|
2370
|
+
}, "strip", z.ZodTypeAny, {
|
|
2371
|
+
type: "file_created" | "file_modified" | "file_deleted" | "command_executed" | "dependency_added";
|
|
2372
|
+
description: string;
|
|
2373
|
+
path?: string | undefined;
|
|
2374
|
+
}, {
|
|
2375
|
+
type: "file_created" | "file_modified" | "file_deleted" | "command_executed" | "dependency_added";
|
|
2376
|
+
description: string;
|
|
2377
|
+
path?: string | undefined;
|
|
2378
|
+
}>, "many">;
|
|
2379
|
+
validation: z.ZodObject<{
|
|
2380
|
+
testsRun: z.ZodDefault<z.ZodBoolean>;
|
|
2381
|
+
buildsSuccessfully: z.ZodDefault<z.ZodBoolean>;
|
|
2382
|
+
manualTestingRequired: z.ZodDefault<z.ZodBoolean>;
|
|
2383
|
+
}, "strip", z.ZodTypeAny, {
|
|
2384
|
+
testsRun: boolean;
|
|
2385
|
+
buildsSuccessfully: boolean;
|
|
2386
|
+
manualTestingRequired: boolean;
|
|
2387
|
+
}, {
|
|
2388
|
+
testsRun?: boolean | undefined;
|
|
2389
|
+
buildsSuccessfully?: boolean | undefined;
|
|
2390
|
+
manualTestingRequired?: boolean | undefined;
|
|
2391
|
+
}>;
|
|
2392
|
+
nextSteps: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
2393
|
+
}, "strip", z.ZodTypeAny, {
|
|
2394
|
+
validation: {
|
|
2395
|
+
testsRun: boolean;
|
|
2396
|
+
buildsSuccessfully: boolean;
|
|
2397
|
+
manualTestingRequired: boolean;
|
|
2398
|
+
};
|
|
2399
|
+
summary: string;
|
|
2400
|
+
changes: {
|
|
2401
|
+
type: "file_created" | "file_modified" | "file_deleted" | "command_executed" | "dependency_added";
|
|
2402
|
+
description: string;
|
|
2403
|
+
path?: string | undefined;
|
|
2404
|
+
}[];
|
|
2405
|
+
nextSteps?: string[] | undefined;
|
|
2406
|
+
}, {
|
|
2407
|
+
validation: {
|
|
2408
|
+
testsRun?: boolean | undefined;
|
|
2409
|
+
buildsSuccessfully?: boolean | undefined;
|
|
2410
|
+
manualTestingRequired?: boolean | undefined;
|
|
2411
|
+
};
|
|
2412
|
+
summary: string;
|
|
2413
|
+
changes: {
|
|
2414
|
+
type: "file_created" | "file_modified" | "file_deleted" | "command_executed" | "dependency_added";
|
|
2415
|
+
description: string;
|
|
2416
|
+
path?: string | undefined;
|
|
2417
|
+
}[];
|
|
2418
|
+
nextSteps?: string[] | undefined;
|
|
2419
|
+
}>, any, any>> & {
|
|
1980
2420
|
inputSchema: z.ZodObject<{
|
|
1981
2421
|
summary: z.ZodString;
|
|
1982
2422
|
changes: z.ZodArray<z.ZodObject<{
|
|
@@ -2049,7 +2489,36 @@ export declare class AgentBuilderDefaults {
|
|
|
2049
2489
|
completionId: string;
|
|
2050
2490
|
confidence: number;
|
|
2051
2491
|
}>;
|
|
2052
|
-
execute: (
|
|
2492
|
+
execute: (context: import("@mastra/core").ToolExecutionContext<z.ZodObject<{
|
|
2493
|
+
summary: z.ZodString;
|
|
2494
|
+
changes: z.ZodArray<z.ZodObject<{
|
|
2495
|
+
type: z.ZodEnum<["file_created", "file_modified", "file_deleted", "command_executed", "dependency_added"]>;
|
|
2496
|
+
description: z.ZodString;
|
|
2497
|
+
path: z.ZodOptional<z.ZodString>;
|
|
2498
|
+
}, "strip", z.ZodTypeAny, {
|
|
2499
|
+
type: "file_created" | "file_modified" | "file_deleted" | "command_executed" | "dependency_added";
|
|
2500
|
+
description: string;
|
|
2501
|
+
path?: string | undefined;
|
|
2502
|
+
}, {
|
|
2503
|
+
type: "file_created" | "file_modified" | "file_deleted" | "command_executed" | "dependency_added";
|
|
2504
|
+
description: string;
|
|
2505
|
+
path?: string | undefined;
|
|
2506
|
+
}>, "many">;
|
|
2507
|
+
validation: z.ZodObject<{
|
|
2508
|
+
testsRun: z.ZodDefault<z.ZodBoolean>;
|
|
2509
|
+
buildsSuccessfully: z.ZodDefault<z.ZodBoolean>;
|
|
2510
|
+
manualTestingRequired: z.ZodDefault<z.ZodBoolean>;
|
|
2511
|
+
}, "strip", z.ZodTypeAny, {
|
|
2512
|
+
testsRun: boolean;
|
|
2513
|
+
buildsSuccessfully: boolean;
|
|
2514
|
+
manualTestingRequired: boolean;
|
|
2515
|
+
}, {
|
|
2516
|
+
testsRun?: boolean | undefined;
|
|
2517
|
+
buildsSuccessfully?: boolean | undefined;
|
|
2518
|
+
manualTestingRequired?: boolean | undefined;
|
|
2519
|
+
}>;
|
|
2520
|
+
nextSteps: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
2521
|
+
}, "strip", z.ZodTypeAny, {
|
|
2053
2522
|
validation: {
|
|
2054
2523
|
testsRun: boolean;
|
|
2055
2524
|
buildsSuccessfully: boolean;
|
|
@@ -2062,12 +2531,20 @@ export declare class AgentBuilderDefaults {
|
|
|
2062
2531
|
path?: string | undefined;
|
|
2063
2532
|
}[];
|
|
2064
2533
|
nextSteps?: string[] | undefined;
|
|
2065
|
-
},
|
|
2066
|
-
|
|
2534
|
+
}, {
|
|
2535
|
+
validation: {
|
|
2536
|
+
testsRun?: boolean | undefined;
|
|
2537
|
+
buildsSuccessfully?: boolean | undefined;
|
|
2538
|
+
manualTestingRequired?: boolean | undefined;
|
|
2539
|
+
};
|
|
2067
2540
|
summary: string;
|
|
2068
|
-
|
|
2069
|
-
|
|
2070
|
-
|
|
2541
|
+
changes: {
|
|
2542
|
+
type: "file_created" | "file_modified" | "file_deleted" | "command_executed" | "dependency_added";
|
|
2543
|
+
description: string;
|
|
2544
|
+
path?: string | undefined;
|
|
2545
|
+
}[];
|
|
2546
|
+
nextSteps?: string[] | undefined;
|
|
2547
|
+
}>, any, any>, options: import("@mastra/core").MastraToolInvocationOptions) => Promise<any>;
|
|
2071
2548
|
};
|
|
2072
2549
|
manageProject: import("@mastra/core/tools").Tool<z.ZodObject<{
|
|
2073
2550
|
action: z.ZodEnum<["create", "install", "upgrade"]>;
|
|
@@ -2120,7 +2597,34 @@ export declare class AgentBuilderDefaults {
|
|
|
2120
2597
|
upgraded?: string[] | undefined;
|
|
2121
2598
|
warnings?: string[] | undefined;
|
|
2122
2599
|
details?: string | undefined;
|
|
2123
|
-
}>, any, any, import("@mastra/core
|
|
2600
|
+
}>, any, any, import("@mastra/core").ToolExecutionContext<z.ZodObject<{
|
|
2601
|
+
action: z.ZodEnum<["create", "install", "upgrade"]>;
|
|
2602
|
+
features: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
2603
|
+
packages: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
2604
|
+
name: z.ZodString;
|
|
2605
|
+
version: z.ZodOptional<z.ZodString>;
|
|
2606
|
+
}, "strip", z.ZodTypeAny, {
|
|
2607
|
+
name: string;
|
|
2608
|
+
version?: string | undefined;
|
|
2609
|
+
}, {
|
|
2610
|
+
name: string;
|
|
2611
|
+
version?: string | undefined;
|
|
2612
|
+
}>, "many">>;
|
|
2613
|
+
}, "strip", z.ZodTypeAny, {
|
|
2614
|
+
action: "create" | "install" | "upgrade";
|
|
2615
|
+
features?: string[] | undefined;
|
|
2616
|
+
packages?: {
|
|
2617
|
+
name: string;
|
|
2618
|
+
version?: string | undefined;
|
|
2619
|
+
}[] | undefined;
|
|
2620
|
+
}, {
|
|
2621
|
+
action: "create" | "install" | "upgrade";
|
|
2622
|
+
features?: string[] | undefined;
|
|
2623
|
+
packages?: {
|
|
2624
|
+
name: string;
|
|
2625
|
+
version?: string | undefined;
|
|
2626
|
+
}[] | undefined;
|
|
2627
|
+
}>, any, any>> & {
|
|
2124
2628
|
inputSchema: z.ZodObject<{
|
|
2125
2629
|
action: z.ZodEnum<["create", "install", "upgrade"]>;
|
|
2126
2630
|
features: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
@@ -2174,31 +2678,43 @@ export declare class AgentBuilderDefaults {
|
|
|
2174
2678
|
warnings?: string[] | undefined;
|
|
2175
2679
|
details?: string | undefined;
|
|
2176
2680
|
}>;
|
|
2177
|
-
execute: (
|
|
2681
|
+
execute: (context: import("@mastra/core").ToolExecutionContext<z.ZodObject<{
|
|
2682
|
+
action: z.ZodEnum<["create", "install", "upgrade"]>;
|
|
2683
|
+
features: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
2684
|
+
packages: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
2685
|
+
name: z.ZodString;
|
|
2686
|
+
version: z.ZodOptional<z.ZodString>;
|
|
2687
|
+
}, "strip", z.ZodTypeAny, {
|
|
2688
|
+
name: string;
|
|
2689
|
+
version?: string | undefined;
|
|
2690
|
+
}, {
|
|
2691
|
+
name: string;
|
|
2692
|
+
version?: string | undefined;
|
|
2693
|
+
}>, "many">>;
|
|
2694
|
+
}, "strip", z.ZodTypeAny, {
|
|
2178
2695
|
action: "create" | "install" | "upgrade";
|
|
2179
2696
|
features?: string[] | undefined;
|
|
2180
2697
|
packages?: {
|
|
2181
2698
|
name: string;
|
|
2182
2699
|
version?: string | undefined;
|
|
2183
2700
|
}[] | undefined;
|
|
2184
|
-
},
|
|
2185
|
-
|
|
2186
|
-
|
|
2187
|
-
|
|
2188
|
-
|
|
2189
|
-
|
|
2190
|
-
|
|
2191
|
-
|
|
2192
|
-
}>;
|
|
2701
|
+
}, {
|
|
2702
|
+
action: "create" | "install" | "upgrade";
|
|
2703
|
+
features?: string[] | undefined;
|
|
2704
|
+
packages?: {
|
|
2705
|
+
name: string;
|
|
2706
|
+
version?: string | undefined;
|
|
2707
|
+
}[] | undefined;
|
|
2708
|
+
}>, any, any>, options: import("@mastra/core").MastraToolInvocationOptions) => Promise<any>;
|
|
2193
2709
|
};
|
|
2194
2710
|
manageServer: import("@mastra/core/tools").Tool<z.ZodObject<{
|
|
2195
2711
|
action: z.ZodEnum<["start", "stop", "restart", "status"]>;
|
|
2196
2712
|
port: z.ZodDefault<z.ZodOptional<z.ZodNumber>>;
|
|
2197
2713
|
}, "strip", z.ZodTypeAny, {
|
|
2198
|
-
action: "status" | "
|
|
2714
|
+
action: "status" | "start" | "stop" | "restart";
|
|
2199
2715
|
port: number;
|
|
2200
2716
|
}, {
|
|
2201
|
-
action: "status" | "
|
|
2717
|
+
action: "status" | "start" | "stop" | "restart";
|
|
2202
2718
|
port?: number | undefined;
|
|
2203
2719
|
}>, z.ZodObject<{
|
|
2204
2720
|
success: z.ZodBoolean;
|
|
@@ -2227,15 +2743,24 @@ export declare class AgentBuilderDefaults {
|
|
|
2227
2743
|
url?: string | undefined;
|
|
2228
2744
|
port?: number | undefined;
|
|
2229
2745
|
pid?: number | undefined;
|
|
2230
|
-
}>, any, any, import("@mastra/core
|
|
2746
|
+
}>, any, any, import("@mastra/core").ToolExecutionContext<z.ZodObject<{
|
|
2747
|
+
action: z.ZodEnum<["start", "stop", "restart", "status"]>;
|
|
2748
|
+
port: z.ZodDefault<z.ZodOptional<z.ZodNumber>>;
|
|
2749
|
+
}, "strip", z.ZodTypeAny, {
|
|
2750
|
+
action: "status" | "start" | "stop" | "restart";
|
|
2751
|
+
port: number;
|
|
2752
|
+
}, {
|
|
2753
|
+
action: "status" | "start" | "stop" | "restart";
|
|
2754
|
+
port?: number | undefined;
|
|
2755
|
+
}>, any, any>> & {
|
|
2231
2756
|
inputSchema: z.ZodObject<{
|
|
2232
2757
|
action: z.ZodEnum<["start", "stop", "restart", "status"]>;
|
|
2233
2758
|
port: z.ZodDefault<z.ZodOptional<z.ZodNumber>>;
|
|
2234
2759
|
}, "strip", z.ZodTypeAny, {
|
|
2235
|
-
action: "status" | "
|
|
2760
|
+
action: "status" | "start" | "stop" | "restart";
|
|
2236
2761
|
port: number;
|
|
2237
2762
|
}, {
|
|
2238
|
-
action: "status" | "
|
|
2763
|
+
action: "status" | "start" | "stop" | "restart";
|
|
2239
2764
|
port?: number | undefined;
|
|
2240
2765
|
}>;
|
|
2241
2766
|
outputSchema: z.ZodObject<{
|
|
@@ -2266,19 +2791,16 @@ export declare class AgentBuilderDefaults {
|
|
|
2266
2791
|
port?: number | undefined;
|
|
2267
2792
|
pid?: number | undefined;
|
|
2268
2793
|
}>;
|
|
2269
|
-
execute: (
|
|
2270
|
-
action: "
|
|
2794
|
+
execute: (context: import("@mastra/core").ToolExecutionContext<z.ZodObject<{
|
|
2795
|
+
action: z.ZodEnum<["start", "stop", "restart", "status"]>;
|
|
2796
|
+
port: z.ZodDefault<z.ZodOptional<z.ZodNumber>>;
|
|
2797
|
+
}, "strip", z.ZodTypeAny, {
|
|
2798
|
+
action: "status" | "start" | "stop" | "restart";
|
|
2271
2799
|
port: number;
|
|
2272
|
-
},
|
|
2273
|
-
|
|
2274
|
-
success: boolean;
|
|
2275
|
-
message?: string | undefined;
|
|
2276
|
-
error?: string | undefined;
|
|
2277
|
-
stdout?: string[] | undefined;
|
|
2278
|
-
url?: string | undefined;
|
|
2800
|
+
}, {
|
|
2801
|
+
action: "status" | "start" | "stop" | "restart";
|
|
2279
2802
|
port?: number | undefined;
|
|
2280
|
-
|
|
2281
|
-
}>;
|
|
2803
|
+
}>, any, any>, options: import("@mastra/core").MastraToolInvocationOptions) => Promise<any>;
|
|
2282
2804
|
};
|
|
2283
2805
|
httpRequest: import("@mastra/core/tools").Tool<z.ZodObject<{
|
|
2284
2806
|
method: z.ZodEnum<["GET", "POST", "PUT", "DELETE", "PATCH"]>;
|
|
@@ -2288,18 +2810,18 @@ export declare class AgentBuilderDefaults {
|
|
|
2288
2810
|
body: z.ZodOptional<z.ZodAny>;
|
|
2289
2811
|
timeout: z.ZodDefault<z.ZodOptional<z.ZodNumber>>;
|
|
2290
2812
|
}, "strip", z.ZodTypeAny, {
|
|
2291
|
-
url: string;
|
|
2292
2813
|
timeout: number;
|
|
2814
|
+
url: string;
|
|
2293
2815
|
method: "GET" | "POST" | "PUT" | "DELETE" | "PATCH";
|
|
2294
|
-
headers?: Record<string, string> | undefined;
|
|
2295
2816
|
baseUrl?: string | undefined;
|
|
2817
|
+
headers?: Record<string, string> | undefined;
|
|
2296
2818
|
body?: any;
|
|
2297
2819
|
}, {
|
|
2298
2820
|
url: string;
|
|
2299
2821
|
method: "GET" | "POST" | "PUT" | "DELETE" | "PATCH";
|
|
2300
|
-
headers?: Record<string, string> | undefined;
|
|
2301
2822
|
timeout?: number | undefined;
|
|
2302
2823
|
baseUrl?: string | undefined;
|
|
2824
|
+
headers?: Record<string, string> | undefined;
|
|
2303
2825
|
body?: any;
|
|
2304
2826
|
}>, z.ZodObject<{
|
|
2305
2827
|
success: z.ZodBoolean;
|
|
@@ -2328,7 +2850,28 @@ export declare class AgentBuilderDefaults {
|
|
|
2328
2850
|
data?: any;
|
|
2329
2851
|
headers?: Record<string, string> | undefined;
|
|
2330
2852
|
statusText?: string | undefined;
|
|
2331
|
-
}>, any, any, import("@mastra/core
|
|
2853
|
+
}>, any, any, import("@mastra/core").ToolExecutionContext<z.ZodObject<{
|
|
2854
|
+
method: z.ZodEnum<["GET", "POST", "PUT", "DELETE", "PATCH"]>;
|
|
2855
|
+
url: z.ZodString;
|
|
2856
|
+
baseUrl: z.ZodOptional<z.ZodString>;
|
|
2857
|
+
headers: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
2858
|
+
body: z.ZodOptional<z.ZodAny>;
|
|
2859
|
+
timeout: z.ZodDefault<z.ZodOptional<z.ZodNumber>>;
|
|
2860
|
+
}, "strip", z.ZodTypeAny, {
|
|
2861
|
+
timeout: number;
|
|
2862
|
+
url: string;
|
|
2863
|
+
method: "GET" | "POST" | "PUT" | "DELETE" | "PATCH";
|
|
2864
|
+
baseUrl?: string | undefined;
|
|
2865
|
+
headers?: Record<string, string> | undefined;
|
|
2866
|
+
body?: any;
|
|
2867
|
+
}, {
|
|
2868
|
+
url: string;
|
|
2869
|
+
method: "GET" | "POST" | "PUT" | "DELETE" | "PATCH";
|
|
2870
|
+
timeout?: number | undefined;
|
|
2871
|
+
baseUrl?: string | undefined;
|
|
2872
|
+
headers?: Record<string, string> | undefined;
|
|
2873
|
+
body?: any;
|
|
2874
|
+
}>, any, any>> & {
|
|
2332
2875
|
inputSchema: z.ZodObject<{
|
|
2333
2876
|
method: z.ZodEnum<["GET", "POST", "PUT", "DELETE", "PATCH"]>;
|
|
2334
2877
|
url: z.ZodString;
|
|
@@ -2337,18 +2880,18 @@ export declare class AgentBuilderDefaults {
|
|
|
2337
2880
|
body: z.ZodOptional<z.ZodAny>;
|
|
2338
2881
|
timeout: z.ZodDefault<z.ZodOptional<z.ZodNumber>>;
|
|
2339
2882
|
}, "strip", z.ZodTypeAny, {
|
|
2340
|
-
url: string;
|
|
2341
2883
|
timeout: number;
|
|
2884
|
+
url: string;
|
|
2342
2885
|
method: "GET" | "POST" | "PUT" | "DELETE" | "PATCH";
|
|
2343
|
-
headers?: Record<string, string> | undefined;
|
|
2344
2886
|
baseUrl?: string | undefined;
|
|
2887
|
+
headers?: Record<string, string> | undefined;
|
|
2345
2888
|
body?: any;
|
|
2346
2889
|
}, {
|
|
2347
2890
|
url: string;
|
|
2348
2891
|
method: "GET" | "POST" | "PUT" | "DELETE" | "PATCH";
|
|
2349
|
-
headers?: Record<string, string> | undefined;
|
|
2350
2892
|
timeout?: number | undefined;
|
|
2351
2893
|
baseUrl?: string | undefined;
|
|
2894
|
+
headers?: Record<string, string> | undefined;
|
|
2352
2895
|
body?: any;
|
|
2353
2896
|
}>;
|
|
2354
2897
|
outputSchema: z.ZodObject<{
|
|
@@ -2379,23 +2922,28 @@ export declare class AgentBuilderDefaults {
|
|
|
2379
2922
|
headers?: Record<string, string> | undefined;
|
|
2380
2923
|
statusText?: string | undefined;
|
|
2381
2924
|
}>;
|
|
2382
|
-
execute: (
|
|
2383
|
-
|
|
2925
|
+
execute: (context: import("@mastra/core").ToolExecutionContext<z.ZodObject<{
|
|
2926
|
+
method: z.ZodEnum<["GET", "POST", "PUT", "DELETE", "PATCH"]>;
|
|
2927
|
+
url: z.ZodString;
|
|
2928
|
+
baseUrl: z.ZodOptional<z.ZodString>;
|
|
2929
|
+
headers: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
2930
|
+
body: z.ZodOptional<z.ZodAny>;
|
|
2931
|
+
timeout: z.ZodDefault<z.ZodOptional<z.ZodNumber>>;
|
|
2932
|
+
}, "strip", z.ZodTypeAny, {
|
|
2384
2933
|
timeout: number;
|
|
2934
|
+
url: string;
|
|
2385
2935
|
method: "GET" | "POST" | "PUT" | "DELETE" | "PATCH";
|
|
2386
|
-
headers?: Record<string, string> | undefined;
|
|
2387
2936
|
baseUrl?: string | undefined;
|
|
2937
|
+
headers?: Record<string, string> | undefined;
|
|
2388
2938
|
body?: any;
|
|
2389
|
-
},
|
|
2390
|
-
success: boolean;
|
|
2939
|
+
}, {
|
|
2391
2940
|
url: string;
|
|
2392
|
-
method:
|
|
2393
|
-
|
|
2394
|
-
|
|
2395
|
-
data?: any;
|
|
2941
|
+
method: "GET" | "POST" | "PUT" | "DELETE" | "PATCH";
|
|
2942
|
+
timeout?: number | undefined;
|
|
2943
|
+
baseUrl?: string | undefined;
|
|
2396
2944
|
headers?: Record<string, string> | undefined;
|
|
2397
|
-
|
|
2398
|
-
}>;
|
|
2945
|
+
body?: any;
|
|
2946
|
+
}>, any, any>, options: import("@mastra/core").MastraToolInvocationOptions) => Promise<any>;
|
|
2399
2947
|
};
|
|
2400
2948
|
}>;
|
|
2401
2949
|
/**
|
|
@@ -2409,7 +2957,7 @@ export declare class AgentBuilderDefaults {
|
|
|
2409
2957
|
/**
|
|
2410
2958
|
* Get tools for a specific mode
|
|
2411
2959
|
*/
|
|
2412
|
-
static
|
|
2960
|
+
static getToolsForMode(projectPath: string, mode?: 'template' | 'code-editor'): Promise<Record<string, any>>;
|
|
2413
2961
|
/**
|
|
2414
2962
|
* Create a new Mastra project using create-mastra CLI
|
|
2415
2963
|
*/
|