@mastra/agent-builder 0.2.4 → 1.0.0-beta.0
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 +63 -27
- package/dist/agent/index.d.ts +3 -3
- package/dist/agent/index.d.ts.map +1 -1
- package/dist/defaults.d.ts +217 -765
- package/dist/defaults.d.ts.map +1 -1
- package/dist/index.js +110 -106
- package/dist/index.js.map +1 -1
- 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 +13 -83
- 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 +7 -14
package/dist/defaults.d.ts
CHANGED
|
@@ -70,22 +70,7 @@ export declare class AgentBuilderDefaults {
|
|
|
70
70
|
totalLines: number;
|
|
71
71
|
lastModified: string;
|
|
72
72
|
} | undefined;
|
|
73
|
-
}>, any, any, import("@mastra/core").ToolExecutionContext<
|
|
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>> & {
|
|
73
|
+
}>, any, any, import("@mastra/core/tools").ToolExecutionContext<any, any>> & {
|
|
89
74
|
inputSchema: z.ZodObject<{
|
|
90
75
|
filePath: z.ZodString;
|
|
91
76
|
startLine: z.ZodOptional<z.ZodNumber>;
|
|
@@ -146,22 +131,23 @@ export declare class AgentBuilderDefaults {
|
|
|
146
131
|
lastModified: string;
|
|
147
132
|
} | undefined;
|
|
148
133
|
}>;
|
|
149
|
-
execute: (
|
|
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, {
|
|
134
|
+
execute: (inputData: {
|
|
155
135
|
filePath: string;
|
|
156
136
|
encoding: string;
|
|
157
137
|
startLine?: number | undefined;
|
|
158
138
|
endLine?: number | undefined;
|
|
159
|
-
}, {
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
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
|
+
}>;
|
|
165
151
|
};
|
|
166
152
|
writeFile: import("@mastra/core/tools").Tool<z.ZodObject<{
|
|
167
153
|
filePath: z.ZodString;
|
|
@@ -169,13 +155,13 @@ export declare class AgentBuilderDefaults {
|
|
|
169
155
|
createDirs: z.ZodDefault<z.ZodBoolean>;
|
|
170
156
|
encoding: z.ZodDefault<z.ZodString>;
|
|
171
157
|
}, "strip", z.ZodTypeAny, {
|
|
158
|
+
content: string;
|
|
172
159
|
filePath: string;
|
|
173
160
|
encoding: string;
|
|
174
|
-
content: string;
|
|
175
161
|
createDirs: boolean;
|
|
176
162
|
}, {
|
|
177
|
-
filePath: string;
|
|
178
163
|
content: string;
|
|
164
|
+
filePath: string;
|
|
179
165
|
encoding?: string | undefined;
|
|
180
166
|
createDirs?: boolean | undefined;
|
|
181
167
|
}>, z.ZodObject<{
|
|
@@ -196,35 +182,20 @@ export declare class AgentBuilderDefaults {
|
|
|
196
182
|
filePath: string;
|
|
197
183
|
error?: string | undefined;
|
|
198
184
|
bytesWritten?: number | undefined;
|
|
199
|
-
}>, any, any, import("@mastra/core").ToolExecutionContext<
|
|
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>> & {
|
|
185
|
+
}>, any, any, import("@mastra/core/tools").ToolExecutionContext<any, any>> & {
|
|
215
186
|
inputSchema: z.ZodObject<{
|
|
216
187
|
filePath: z.ZodString;
|
|
217
188
|
content: z.ZodString;
|
|
218
189
|
createDirs: z.ZodDefault<z.ZodBoolean>;
|
|
219
190
|
encoding: z.ZodDefault<z.ZodString>;
|
|
220
191
|
}, "strip", z.ZodTypeAny, {
|
|
192
|
+
content: string;
|
|
221
193
|
filePath: string;
|
|
222
194
|
encoding: string;
|
|
223
|
-
content: string;
|
|
224
195
|
createDirs: boolean;
|
|
225
196
|
}, {
|
|
226
|
-
filePath: string;
|
|
227
197
|
content: string;
|
|
198
|
+
filePath: string;
|
|
228
199
|
encoding?: string | undefined;
|
|
229
200
|
createDirs?: boolean | undefined;
|
|
230
201
|
}>;
|
|
@@ -247,22 +218,18 @@ export declare class AgentBuilderDefaults {
|
|
|
247
218
|
error?: string | undefined;
|
|
248
219
|
bytesWritten?: number | undefined;
|
|
249
220
|
}>;
|
|
250
|
-
execute: (
|
|
251
|
-
|
|
252
|
-
content: z.ZodString;
|
|
253
|
-
createDirs: z.ZodDefault<z.ZodBoolean>;
|
|
254
|
-
encoding: z.ZodDefault<z.ZodString>;
|
|
255
|
-
}, "strip", z.ZodTypeAny, {
|
|
221
|
+
execute: (inputData: {
|
|
222
|
+
content: string;
|
|
256
223
|
filePath: string;
|
|
257
224
|
encoding: string;
|
|
258
|
-
content: string;
|
|
259
225
|
createDirs: boolean;
|
|
260
|
-
}, {
|
|
226
|
+
}, context?: import("@mastra/core/tools").ToolExecutionContext<any, any> | undefined) => Promise<{
|
|
227
|
+
message: string;
|
|
228
|
+
success: boolean;
|
|
261
229
|
filePath: string;
|
|
262
|
-
|
|
263
|
-
|
|
264
|
-
|
|
265
|
-
}>, any, any>, options: import("@mastra/core").MastraToolInvocationOptions) => Promise<any>;
|
|
230
|
+
error?: string | undefined;
|
|
231
|
+
bytesWritten?: number | undefined;
|
|
232
|
+
}>;
|
|
266
233
|
};
|
|
267
234
|
listDirectory: import("@mastra/core/tools").Tool<z.ZodObject<{
|
|
268
235
|
path: z.ZodString;
|
|
@@ -341,28 +308,7 @@ export declare class AgentBuilderDefaults {
|
|
|
341
308
|
}[];
|
|
342
309
|
totalItems: number;
|
|
343
310
|
error?: string | undefined;
|
|
344
|
-
}>, any, any, import("@mastra/core").ToolExecutionContext<
|
|
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>> & {
|
|
311
|
+
}>, any, any, import("@mastra/core/tools").ToolExecutionContext<any, any>> & {
|
|
366
312
|
inputSchema: z.ZodObject<{
|
|
367
313
|
path: z.ZodString;
|
|
368
314
|
recursive: z.ZodDefault<z.ZodBoolean>;
|
|
@@ -442,28 +388,28 @@ export declare class AgentBuilderDefaults {
|
|
|
442
388
|
totalItems: number;
|
|
443
389
|
error?: string | undefined;
|
|
444
390
|
}>;
|
|
445
|
-
execute: (
|
|
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, {
|
|
391
|
+
execute: (inputData: {
|
|
453
392
|
path: string;
|
|
454
393
|
recursive: boolean;
|
|
455
394
|
includeHidden: boolean;
|
|
456
395
|
pattern: string;
|
|
457
396
|
maxDepth: number;
|
|
458
397
|
includeMetadata: boolean;
|
|
459
|
-
}, {
|
|
398
|
+
}, context?: import("@mastra/core/tools").ToolExecutionContext<any, any> | undefined) => Promise<{
|
|
460
399
|
path: string;
|
|
461
|
-
|
|
462
|
-
|
|
463
|
-
|
|
464
|
-
|
|
465
|
-
|
|
466
|
-
|
|
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
|
+
}>;
|
|
467
413
|
};
|
|
468
414
|
executeCommand: import("@mastra/core/tools").Tool<z.ZodObject<{
|
|
469
415
|
command: z.ZodString;
|
|
@@ -513,28 +459,7 @@ export declare class AgentBuilderDefaults {
|
|
|
513
459
|
workingDirectory?: string | undefined;
|
|
514
460
|
exitCode?: number | undefined;
|
|
515
461
|
executionTime?: number | undefined;
|
|
516
|
-
}>, any, any, import("@mastra/core").ToolExecutionContext<
|
|
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>> & {
|
|
462
|
+
}>, any, any, import("@mastra/core/tools").ToolExecutionContext<any, any>> & {
|
|
538
463
|
inputSchema: z.ZodObject<{
|
|
539
464
|
command: z.ZodString;
|
|
540
465
|
workingDirectory: z.ZodOptional<z.ZodString>;
|
|
@@ -585,28 +510,23 @@ export declare class AgentBuilderDefaults {
|
|
|
585
510
|
exitCode?: number | undefined;
|
|
586
511
|
executionTime?: number | undefined;
|
|
587
512
|
}>;
|
|
588
|
-
execute: (
|
|
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, {
|
|
513
|
+
execute: (inputData: {
|
|
596
514
|
command: string;
|
|
597
515
|
timeout: number;
|
|
598
516
|
captureOutput: boolean;
|
|
599
517
|
workingDirectory?: string | undefined;
|
|
600
518
|
shell?: string | undefined;
|
|
601
519
|
env?: Record<string, string> | undefined;
|
|
602
|
-
}, {
|
|
520
|
+
}, context?: import("@mastra/core/tools").ToolExecutionContext<any, any> | undefined) => Promise<{
|
|
521
|
+
success: boolean;
|
|
603
522
|
command: string;
|
|
523
|
+
error?: string | undefined;
|
|
524
|
+
stdout?: string | undefined;
|
|
525
|
+
stderr?: string | undefined;
|
|
604
526
|
workingDirectory?: string | undefined;
|
|
605
|
-
|
|
606
|
-
|
|
607
|
-
|
|
608
|
-
env?: Record<string, string> | undefined;
|
|
609
|
-
}>, any, any>, options: import("@mastra/core").MastraToolInvocationOptions) => Promise<any>;
|
|
527
|
+
exitCode?: number | undefined;
|
|
528
|
+
executionTime?: number | undefined;
|
|
529
|
+
}>;
|
|
610
530
|
};
|
|
611
531
|
taskManager: import("@mastra/core/tools").Tool<z.ZodObject<{
|
|
612
532
|
action: z.ZodEnum<["create", "update", "list", "complete", "remove"]>;
|
|
@@ -712,54 +632,7 @@ export declare class AgentBuilderDefaults {
|
|
|
712
632
|
dependencies?: string[] | undefined;
|
|
713
633
|
notes?: string | undefined;
|
|
714
634
|
}[];
|
|
715
|
-
}>, any, any, import("@mastra/core").ToolExecutionContext<
|
|
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>> & {
|
|
635
|
+
}>, any, any, import("@mastra/core/tools").ToolExecutionContext<any, any>> & {
|
|
763
636
|
inputSchema: z.ZodObject<{
|
|
764
637
|
action: z.ZodEnum<["create", "update", "list", "complete", "remove"]>;
|
|
765
638
|
tasks: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
@@ -866,32 +739,7 @@ export declare class AgentBuilderDefaults {
|
|
|
866
739
|
notes?: string | undefined;
|
|
867
740
|
}[];
|
|
868
741
|
}>;
|
|
869
|
-
execute: (
|
|
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, {
|
|
742
|
+
execute: (inputData: {
|
|
895
743
|
action: "create" | "update" | "list" | "complete" | "remove";
|
|
896
744
|
tasks?: {
|
|
897
745
|
status: "pending" | "in_progress" | "completed" | "blocked";
|
|
@@ -902,18 +750,20 @@ export declare class AgentBuilderDefaults {
|
|
|
902
750
|
notes?: string | undefined;
|
|
903
751
|
}[] | undefined;
|
|
904
752
|
taskId?: string | undefined;
|
|
905
|
-
}, {
|
|
906
|
-
|
|
907
|
-
|
|
908
|
-
|
|
753
|
+
}, context?: import("@mastra/core/tools").ToolExecutionContext<any, any> | undefined) => Promise<{
|
|
754
|
+
message: string;
|
|
755
|
+
success: boolean;
|
|
756
|
+
tasks: {
|
|
757
|
+
status: string;
|
|
909
758
|
id: string;
|
|
759
|
+
content: string;
|
|
760
|
+
priority: string;
|
|
761
|
+
createdAt: string;
|
|
762
|
+
updatedAt: string;
|
|
910
763
|
dependencies?: string[] | undefined;
|
|
911
|
-
content?: string | undefined;
|
|
912
|
-
priority?: "high" | "medium" | "low" | undefined;
|
|
913
764
|
notes?: string | undefined;
|
|
914
|
-
}[]
|
|
915
|
-
|
|
916
|
-
}>, any, any>, options: import("@mastra/core").MastraToolInvocationOptions) => Promise<any>;
|
|
765
|
+
}[];
|
|
766
|
+
}>;
|
|
917
767
|
};
|
|
918
768
|
multiEdit: import("@mastra/core/tools").Tool<z.ZodObject<{
|
|
919
769
|
operations: z.ZodArray<z.ZodObject<{
|
|
@@ -1004,59 +854,7 @@ export declare class AgentBuilderDefaults {
|
|
|
1004
854
|
editsApplied: number;
|
|
1005
855
|
backup?: string | undefined;
|
|
1006
856
|
}[];
|
|
1007
|
-
}>, any, any, import("@mastra/core").ToolExecutionContext<
|
|
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>> & {
|
|
857
|
+
}>, any, any, import("@mastra/core/tools").ToolExecutionContext<any, any>> & {
|
|
1060
858
|
inputSchema: z.ZodObject<{
|
|
1061
859
|
operations: z.ZodArray<z.ZodObject<{
|
|
1062
860
|
filePath: z.ZodString;
|
|
@@ -1148,39 +946,7 @@ export declare class AgentBuilderDefaults {
|
|
|
1148
946
|
backup?: string | undefined;
|
|
1149
947
|
}[];
|
|
1150
948
|
}>;
|
|
1151
|
-
execute: (
|
|
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, {
|
|
949
|
+
execute: (inputData: {
|
|
1184
950
|
operations: {
|
|
1185
951
|
filePath: string;
|
|
1186
952
|
edits: {
|
|
@@ -1190,17 +956,16 @@ export declare class AgentBuilderDefaults {
|
|
|
1190
956
|
}[];
|
|
1191
957
|
}[];
|
|
1192
958
|
createBackup: boolean;
|
|
1193
|
-
}, {
|
|
1194
|
-
|
|
959
|
+
}, context?: import("@mastra/core/tools").ToolExecutionContext<any, any> | undefined) => Promise<{
|
|
960
|
+
message: string;
|
|
961
|
+
success: boolean;
|
|
962
|
+
results: {
|
|
963
|
+
errors: string[];
|
|
1195
964
|
filePath: string;
|
|
1196
|
-
|
|
1197
|
-
|
|
1198
|
-
newString: string;
|
|
1199
|
-
replaceAll?: boolean | undefined;
|
|
1200
|
-
}[];
|
|
965
|
+
editsApplied: number;
|
|
966
|
+
backup?: string | undefined;
|
|
1201
967
|
}[];
|
|
1202
|
-
|
|
1203
|
-
}>, any, any>, options: import("@mastra/core").MastraToolInvocationOptions) => Promise<any>;
|
|
968
|
+
}>;
|
|
1204
969
|
};
|
|
1205
970
|
replaceLines: import("@mastra/core/tools").Tool<z.ZodObject<{
|
|
1206
971
|
filePath: z.ZodString;
|
|
@@ -1238,25 +1003,7 @@ export declare class AgentBuilderDefaults {
|
|
|
1238
1003
|
error?: string | undefined;
|
|
1239
1004
|
backup?: string | undefined;
|
|
1240
1005
|
linesReplaced?: number | undefined;
|
|
1241
|
-
}>, any, any, import("@mastra/core").ToolExecutionContext<
|
|
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>> & {
|
|
1006
|
+
}>, any, any, import("@mastra/core/tools").ToolExecutionContext<any, any>> & {
|
|
1260
1007
|
inputSchema: z.ZodObject<{
|
|
1261
1008
|
filePath: z.ZodString;
|
|
1262
1009
|
startLine: z.ZodNumber;
|
|
@@ -1295,25 +1042,19 @@ export declare class AgentBuilderDefaults {
|
|
|
1295
1042
|
backup?: string | undefined;
|
|
1296
1043
|
linesReplaced?: number | undefined;
|
|
1297
1044
|
}>;
|
|
1298
|
-
execute: (
|
|
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, {
|
|
1045
|
+
execute: (inputData: {
|
|
1305
1046
|
filePath: string;
|
|
1306
1047
|
startLine: number;
|
|
1307
1048
|
endLine: number;
|
|
1308
1049
|
createBackup: boolean;
|
|
1309
1050
|
newContent: string;
|
|
1310
|
-
}, {
|
|
1311
|
-
|
|
1312
|
-
|
|
1313
|
-
|
|
1314
|
-
|
|
1315
|
-
|
|
1316
|
-
}
|
|
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
|
+
}>;
|
|
1317
1058
|
};
|
|
1318
1059
|
showFileLines: import("@mastra/core/tools").Tool<z.ZodObject<{
|
|
1319
1060
|
filePath: z.ZodString;
|
|
@@ -1368,22 +1109,7 @@ export declare class AgentBuilderDefaults {
|
|
|
1368
1109
|
}[];
|
|
1369
1110
|
totalLines: number;
|
|
1370
1111
|
error?: string | undefined;
|
|
1371
|
-
}>, any, any, import("@mastra/core").ToolExecutionContext<
|
|
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>> & {
|
|
1112
|
+
}>, any, any, import("@mastra/core/tools").ToolExecutionContext<any, any>> & {
|
|
1387
1113
|
inputSchema: z.ZodObject<{
|
|
1388
1114
|
filePath: z.ZodString;
|
|
1389
1115
|
startLine: z.ZodOptional<z.ZodNumber>;
|
|
@@ -1439,22 +1165,22 @@ export declare class AgentBuilderDefaults {
|
|
|
1439
1165
|
totalLines: number;
|
|
1440
1166
|
error?: string | undefined;
|
|
1441
1167
|
}>;
|
|
1442
|
-
execute: (
|
|
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, {
|
|
1168
|
+
execute: (inputData: {
|
|
1448
1169
|
filePath: string;
|
|
1449
1170
|
context: number;
|
|
1450
1171
|
startLine?: number | undefined;
|
|
1451
1172
|
endLine?: number | undefined;
|
|
1452
|
-
}, {
|
|
1453
|
-
|
|
1454
|
-
|
|
1455
|
-
|
|
1456
|
-
|
|
1457
|
-
|
|
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
|
+
}>;
|
|
1458
1184
|
};
|
|
1459
1185
|
smartSearch: import("@mastra/core/tools").Tool<z.ZodObject<{
|
|
1460
1186
|
query: z.ZodString;
|
|
@@ -1604,67 +1330,7 @@ export declare class AgentBuilderDefaults {
|
|
|
1604
1330
|
filesSearched: number;
|
|
1605
1331
|
patterns: string[];
|
|
1606
1332
|
};
|
|
1607
|
-
}>, any, any, import("@mastra/core").ToolExecutionContext<
|
|
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>> & {
|
|
1333
|
+
}>, any, any, import("@mastra/core/tools").ToolExecutionContext<any, any>> & {
|
|
1668
1334
|
inputSchema: z.ZodObject<{
|
|
1669
1335
|
query: z.ZodString;
|
|
1670
1336
|
type: z.ZodDefault<z.ZodEnum<["text", "regex", "fuzzy", "semantic"]>>;
|
|
@@ -1815,39 +1481,7 @@ export declare class AgentBuilderDefaults {
|
|
|
1815
1481
|
patterns: string[];
|
|
1816
1482
|
};
|
|
1817
1483
|
}>;
|
|
1818
|
-
execute: (
|
|
1819
|
-
query: z.ZodString;
|
|
1820
|
-
type: z.ZodDefault<z.ZodEnum<["text", "regex", "fuzzy", "semantic"]>>;
|
|
1821
|
-
scope: z.ZodOptional<z.ZodObject<{
|
|
1822
|
-
paths: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
1823
|
-
fileTypes: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
1824
|
-
excludePaths: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
1825
|
-
maxResults: z.ZodDefault<z.ZodNumber>;
|
|
1826
|
-
}, "strip", z.ZodTypeAny, {
|
|
1827
|
-
maxResults: number;
|
|
1828
|
-
paths?: string[] | undefined;
|
|
1829
|
-
fileTypes?: string[] | undefined;
|
|
1830
|
-
excludePaths?: string[] | undefined;
|
|
1831
|
-
}, {
|
|
1832
|
-
paths?: string[] | undefined;
|
|
1833
|
-
fileTypes?: string[] | undefined;
|
|
1834
|
-
excludePaths?: string[] | undefined;
|
|
1835
|
-
maxResults?: number | undefined;
|
|
1836
|
-
}>>;
|
|
1837
|
-
context: z.ZodOptional<z.ZodObject<{
|
|
1838
|
-
beforeLines: z.ZodDefault<z.ZodNumber>;
|
|
1839
|
-
afterLines: z.ZodDefault<z.ZodNumber>;
|
|
1840
|
-
includeDefinitions: z.ZodDefault<z.ZodBoolean>;
|
|
1841
|
-
}, "strip", z.ZodTypeAny, {
|
|
1842
|
-
beforeLines: number;
|
|
1843
|
-
afterLines: number;
|
|
1844
|
-
includeDefinitions: boolean;
|
|
1845
|
-
}, {
|
|
1846
|
-
beforeLines?: number | undefined;
|
|
1847
|
-
afterLines?: number | undefined;
|
|
1848
|
-
includeDefinitions?: boolean | undefined;
|
|
1849
|
-
}>>;
|
|
1850
|
-
}, "strip", z.ZodTypeAny, {
|
|
1484
|
+
execute: (inputData: {
|
|
1851
1485
|
type: "text" | "regex" | "fuzzy" | "semantic";
|
|
1852
1486
|
query: string;
|
|
1853
1487
|
context?: {
|
|
@@ -1861,21 +1495,25 @@ export declare class AgentBuilderDefaults {
|
|
|
1861
1495
|
fileTypes?: string[] | undefined;
|
|
1862
1496
|
excludePaths?: string[] | undefined;
|
|
1863
1497
|
} | undefined;
|
|
1864
|
-
}, {
|
|
1865
|
-
|
|
1866
|
-
|
|
1867
|
-
|
|
1868
|
-
|
|
1869
|
-
|
|
1870
|
-
|
|
1871
|
-
|
|
1872
|
-
|
|
1873
|
-
|
|
1874
|
-
|
|
1875
|
-
|
|
1876
|
-
|
|
1877
|
-
|
|
1878
|
-
|
|
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
|
+
}>;
|
|
1879
1517
|
};
|
|
1880
1518
|
validateCode: import("@mastra/core/tools").Tool<z.ZodObject<{
|
|
1881
1519
|
projectPath: z.ZodOptional<z.ZodString>;
|
|
@@ -1966,19 +1604,7 @@ export declare class AgentBuilderDefaults {
|
|
|
1966
1604
|
validationsPassed: string[];
|
|
1967
1605
|
validationsFailed: string[];
|
|
1968
1606
|
};
|
|
1969
|
-
}>, any, any, import("@mastra/core").ToolExecutionContext<
|
|
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>> & {
|
|
1607
|
+
}>, any, any, import("@mastra/core/tools").ToolExecutionContext<any, any>> & {
|
|
1982
1608
|
inputSchema: z.ZodObject<{
|
|
1983
1609
|
projectPath: z.ZodOptional<z.ZodString>;
|
|
1984
1610
|
validationType: z.ZodArray<z.ZodEnum<["types", "lint", "schemas", "tests", "build"]>, "many">;
|
|
@@ -2070,19 +1696,28 @@ export declare class AgentBuilderDefaults {
|
|
|
2070
1696
|
validationsFailed: string[];
|
|
2071
1697
|
};
|
|
2072
1698
|
}>;
|
|
2073
|
-
execute: (
|
|
2074
|
-
projectPath: z.ZodOptional<z.ZodString>;
|
|
2075
|
-
validationType: z.ZodArray<z.ZodEnum<["types", "lint", "schemas", "tests", "build"]>, "many">;
|
|
2076
|
-
files: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
2077
|
-
}, "strip", z.ZodTypeAny, {
|
|
2078
|
-
validationType: ("types" | "schemas" | "tests" | "lint" | "build")[];
|
|
2079
|
-
projectPath?: string | undefined;
|
|
2080
|
-
files?: string[] | undefined;
|
|
2081
|
-
}, {
|
|
1699
|
+
execute: (inputData: {
|
|
2082
1700
|
validationType: ("types" | "schemas" | "tests" | "lint" | "build")[];
|
|
2083
1701
|
projectPath?: string | undefined;
|
|
2084
1702
|
files?: string[] | undefined;
|
|
2085
|
-
}
|
|
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
|
+
}>;
|
|
2086
1721
|
};
|
|
2087
1722
|
webSearch: import("@mastra/core/tools").Tool<z.ZodObject<{
|
|
2088
1723
|
query: z.ZodString;
|
|
@@ -2116,15 +1751,15 @@ export declare class AgentBuilderDefaults {
|
|
|
2116
1751
|
publishDate: z.ZodOptional<z.ZodString>;
|
|
2117
1752
|
relevanceScore: z.ZodOptional<z.ZodNumber>;
|
|
2118
1753
|
}, "strip", z.ZodTypeAny, {
|
|
2119
|
-
title: string;
|
|
2120
1754
|
url: string;
|
|
1755
|
+
title: string;
|
|
2121
1756
|
snippet: string;
|
|
2122
1757
|
domain: string;
|
|
2123
1758
|
publishDate?: string | undefined;
|
|
2124
1759
|
relevanceScore?: number | undefined;
|
|
2125
1760
|
}, {
|
|
2126
|
-
title: string;
|
|
2127
1761
|
url: string;
|
|
1762
|
+
title: string;
|
|
2128
1763
|
snippet: string;
|
|
2129
1764
|
domain: string;
|
|
2130
1765
|
publishDate?: string | undefined;
|
|
@@ -2137,8 +1772,8 @@ export declare class AgentBuilderDefaults {
|
|
|
2137
1772
|
}, "strip", z.ZodTypeAny, {
|
|
2138
1773
|
success: boolean;
|
|
2139
1774
|
results: {
|
|
2140
|
-
title: string;
|
|
2141
1775
|
url: string;
|
|
1776
|
+
title: string;
|
|
2142
1777
|
snippet: string;
|
|
2143
1778
|
domain: string;
|
|
2144
1779
|
publishDate?: string | undefined;
|
|
@@ -2152,8 +1787,8 @@ export declare class AgentBuilderDefaults {
|
|
|
2152
1787
|
}, {
|
|
2153
1788
|
success: boolean;
|
|
2154
1789
|
results: {
|
|
2155
|
-
title: string;
|
|
2156
1790
|
url: string;
|
|
1791
|
+
title: string;
|
|
2157
1792
|
snippet: string;
|
|
2158
1793
|
domain: string;
|
|
2159
1794
|
publishDate?: string | undefined;
|
|
@@ -2164,28 +1799,7 @@ export declare class AgentBuilderDefaults {
|
|
|
2164
1799
|
searchTime: number;
|
|
2165
1800
|
error?: string | undefined;
|
|
2166
1801
|
suggestions?: string[] | undefined;
|
|
2167
|
-
}>, any, any, import("@mastra/core").ToolExecutionContext<
|
|
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>> & {
|
|
1802
|
+
}>, any, any, import("@mastra/core/tools").ToolExecutionContext<any, any>> & {
|
|
2189
1803
|
inputSchema: z.ZodObject<{
|
|
2190
1804
|
query: z.ZodString;
|
|
2191
1805
|
maxResults: z.ZodDefault<z.ZodNumber>;
|
|
@@ -2219,15 +1833,15 @@ export declare class AgentBuilderDefaults {
|
|
|
2219
1833
|
publishDate: z.ZodOptional<z.ZodString>;
|
|
2220
1834
|
relevanceScore: z.ZodOptional<z.ZodNumber>;
|
|
2221
1835
|
}, "strip", z.ZodTypeAny, {
|
|
2222
|
-
title: string;
|
|
2223
1836
|
url: string;
|
|
1837
|
+
title: string;
|
|
2224
1838
|
snippet: string;
|
|
2225
1839
|
domain: string;
|
|
2226
1840
|
publishDate?: string | undefined;
|
|
2227
1841
|
relevanceScore?: number | undefined;
|
|
2228
1842
|
}, {
|
|
2229
|
-
title: string;
|
|
2230
1843
|
url: string;
|
|
1844
|
+
title: string;
|
|
2231
1845
|
snippet: string;
|
|
2232
1846
|
domain: string;
|
|
2233
1847
|
publishDate?: string | undefined;
|
|
@@ -2240,8 +1854,8 @@ export declare class AgentBuilderDefaults {
|
|
|
2240
1854
|
}, "strip", z.ZodTypeAny, {
|
|
2241
1855
|
success: boolean;
|
|
2242
1856
|
results: {
|
|
2243
|
-
title: string;
|
|
2244
1857
|
url: string;
|
|
1858
|
+
title: string;
|
|
2245
1859
|
snippet: string;
|
|
2246
1860
|
domain: string;
|
|
2247
1861
|
publishDate?: string | undefined;
|
|
@@ -2255,8 +1869,8 @@ export declare class AgentBuilderDefaults {
|
|
|
2255
1869
|
}, {
|
|
2256
1870
|
success: boolean;
|
|
2257
1871
|
results: {
|
|
2258
|
-
title: string;
|
|
2259
1872
|
url: string;
|
|
1873
|
+
title: string;
|
|
2260
1874
|
snippet: string;
|
|
2261
1875
|
domain: string;
|
|
2262
1876
|
publishDate?: string | undefined;
|
|
@@ -2268,28 +1882,29 @@ export declare class AgentBuilderDefaults {
|
|
|
2268
1882
|
error?: string | undefined;
|
|
2269
1883
|
suggestions?: string[] | undefined;
|
|
2270
1884
|
}>;
|
|
2271
|
-
execute: (
|
|
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, {
|
|
1885
|
+
execute: (inputData: {
|
|
2279
1886
|
query: string;
|
|
2280
1887
|
maxResults: number;
|
|
2281
1888
|
region: string;
|
|
2282
1889
|
language: string;
|
|
2283
1890
|
includeImages: boolean;
|
|
2284
1891
|
dateRange: "day" | "week" | "month" | "year" | "all";
|
|
2285
|
-
}, {
|
|
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
|
+
}[];
|
|
2286
1902
|
query: string;
|
|
2287
|
-
|
|
2288
|
-
|
|
2289
|
-
|
|
2290
|
-
|
|
2291
|
-
|
|
2292
|
-
}>, any, any>, options: import("@mastra/core").MastraToolInvocationOptions) => Promise<any>;
|
|
1903
|
+
totalResults: number;
|
|
1904
|
+
searchTime: number;
|
|
1905
|
+
error?: string | undefined;
|
|
1906
|
+
suggestions?: string[] | undefined;
|
|
1907
|
+
}>;
|
|
2293
1908
|
};
|
|
2294
1909
|
attemptCompletion: import("@mastra/core/tools").Tool<z.ZodObject<{
|
|
2295
1910
|
summary: z.ZodString;
|
|
@@ -2361,62 +1976,7 @@ export declare class AgentBuilderDefaults {
|
|
|
2361
1976
|
summary: string;
|
|
2362
1977
|
completionId: string;
|
|
2363
1978
|
confidence: number;
|
|
2364
|
-
}>, any, any, import("@mastra/core").ToolExecutionContext<
|
|
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>> & {
|
|
1979
|
+
}>, any, any, import("@mastra/core/tools").ToolExecutionContext<any, any>> & {
|
|
2420
1980
|
inputSchema: z.ZodObject<{
|
|
2421
1981
|
summary: z.ZodString;
|
|
2422
1982
|
changes: z.ZodArray<z.ZodObject<{
|
|
@@ -2489,36 +2049,7 @@ export declare class AgentBuilderDefaults {
|
|
|
2489
2049
|
completionId: string;
|
|
2490
2050
|
confidence: number;
|
|
2491
2051
|
}>;
|
|
2492
|
-
execute: (
|
|
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, {
|
|
2052
|
+
execute: (inputData: {
|
|
2522
2053
|
validation: {
|
|
2523
2054
|
testsRun: boolean;
|
|
2524
2055
|
buildsSuccessfully: boolean;
|
|
@@ -2531,20 +2062,12 @@ export declare class AgentBuilderDefaults {
|
|
|
2531
2062
|
path?: string | undefined;
|
|
2532
2063
|
}[];
|
|
2533
2064
|
nextSteps?: string[] | undefined;
|
|
2534
|
-
}, {
|
|
2535
|
-
|
|
2536
|
-
testsRun?: boolean | undefined;
|
|
2537
|
-
buildsSuccessfully?: boolean | undefined;
|
|
2538
|
-
manualTestingRequired?: boolean | undefined;
|
|
2539
|
-
};
|
|
2065
|
+
}, context?: import("@mastra/core/tools").ToolExecutionContext<any, any> | undefined) => Promise<{
|
|
2066
|
+
status: "completed" | "needs_review" | "needs_testing";
|
|
2540
2067
|
summary: string;
|
|
2541
|
-
|
|
2542
|
-
|
|
2543
|
-
|
|
2544
|
-
path?: string | undefined;
|
|
2545
|
-
}[];
|
|
2546
|
-
nextSteps?: string[] | undefined;
|
|
2547
|
-
}>, any, any>, options: import("@mastra/core").MastraToolInvocationOptions) => Promise<any>;
|
|
2068
|
+
completionId: string;
|
|
2069
|
+
confidence: number;
|
|
2070
|
+
}>;
|
|
2548
2071
|
};
|
|
2549
2072
|
manageProject: import("@mastra/core/tools").Tool<z.ZodObject<{
|
|
2550
2073
|
action: z.ZodEnum<["create", "install", "upgrade"]>;
|
|
@@ -2597,34 +2120,7 @@ export declare class AgentBuilderDefaults {
|
|
|
2597
2120
|
upgraded?: string[] | undefined;
|
|
2598
2121
|
warnings?: string[] | undefined;
|
|
2599
2122
|
details?: string | undefined;
|
|
2600
|
-
}>, any, any, import("@mastra/core").ToolExecutionContext<
|
|
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>> & {
|
|
2123
|
+
}>, any, any, import("@mastra/core/tools").ToolExecutionContext<any, any>> & {
|
|
2628
2124
|
inputSchema: z.ZodObject<{
|
|
2629
2125
|
action: z.ZodEnum<["create", "install", "upgrade"]>;
|
|
2630
2126
|
features: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
@@ -2678,43 +2174,31 @@ export declare class AgentBuilderDefaults {
|
|
|
2678
2174
|
warnings?: string[] | undefined;
|
|
2679
2175
|
details?: string | undefined;
|
|
2680
2176
|
}>;
|
|
2681
|
-
execute: (
|
|
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, {
|
|
2177
|
+
execute: (inputData: {
|
|
2695
2178
|
action: "create" | "install" | "upgrade";
|
|
2696
2179
|
features?: string[] | undefined;
|
|
2697
2180
|
packages?: {
|
|
2698
2181
|
name: string;
|
|
2699
2182
|
version?: string | undefined;
|
|
2700
2183
|
}[] | undefined;
|
|
2701
|
-
}, {
|
|
2702
|
-
|
|
2703
|
-
|
|
2704
|
-
|
|
2705
|
-
|
|
2706
|
-
|
|
2707
|
-
|
|
2708
|
-
|
|
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
|
+
}>;
|
|
2709
2193
|
};
|
|
2710
2194
|
manageServer: import("@mastra/core/tools").Tool<z.ZodObject<{
|
|
2711
2195
|
action: z.ZodEnum<["start", "stop", "restart", "status"]>;
|
|
2712
2196
|
port: z.ZodDefault<z.ZodOptional<z.ZodNumber>>;
|
|
2713
2197
|
}, "strip", z.ZodTypeAny, {
|
|
2714
|
-
action: "status" | "
|
|
2198
|
+
action: "status" | "stop" | "start" | "restart";
|
|
2715
2199
|
port: number;
|
|
2716
2200
|
}, {
|
|
2717
|
-
action: "status" | "
|
|
2201
|
+
action: "status" | "stop" | "start" | "restart";
|
|
2718
2202
|
port?: number | undefined;
|
|
2719
2203
|
}>, z.ZodObject<{
|
|
2720
2204
|
success: z.ZodBoolean;
|
|
@@ -2743,24 +2227,15 @@ export declare class AgentBuilderDefaults {
|
|
|
2743
2227
|
url?: string | undefined;
|
|
2744
2228
|
port?: number | undefined;
|
|
2745
2229
|
pid?: number | undefined;
|
|
2746
|
-
}>, any, any, import("@mastra/core").ToolExecutionContext<
|
|
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>> & {
|
|
2230
|
+
}>, any, any, import("@mastra/core/tools").ToolExecutionContext<any, any>> & {
|
|
2756
2231
|
inputSchema: z.ZodObject<{
|
|
2757
2232
|
action: z.ZodEnum<["start", "stop", "restart", "status"]>;
|
|
2758
2233
|
port: z.ZodDefault<z.ZodOptional<z.ZodNumber>>;
|
|
2759
2234
|
}, "strip", z.ZodTypeAny, {
|
|
2760
|
-
action: "status" | "
|
|
2235
|
+
action: "status" | "stop" | "start" | "restart";
|
|
2761
2236
|
port: number;
|
|
2762
2237
|
}, {
|
|
2763
|
-
action: "status" | "
|
|
2238
|
+
action: "status" | "stop" | "start" | "restart";
|
|
2764
2239
|
port?: number | undefined;
|
|
2765
2240
|
}>;
|
|
2766
2241
|
outputSchema: z.ZodObject<{
|
|
@@ -2791,16 +2266,19 @@ export declare class AgentBuilderDefaults {
|
|
|
2791
2266
|
port?: number | undefined;
|
|
2792
2267
|
pid?: number | undefined;
|
|
2793
2268
|
}>;
|
|
2794
|
-
execute: (
|
|
2795
|
-
action:
|
|
2796
|
-
port: z.ZodDefault<z.ZodOptional<z.ZodNumber>>;
|
|
2797
|
-
}, "strip", z.ZodTypeAny, {
|
|
2798
|
-
action: "status" | "start" | "stop" | "restart";
|
|
2269
|
+
execute: (inputData: {
|
|
2270
|
+
action: "status" | "stop" | "start" | "restart";
|
|
2799
2271
|
port: number;
|
|
2800
|
-
}, {
|
|
2801
|
-
|
|
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;
|
|
2802
2279
|
port?: number | undefined;
|
|
2803
|
-
|
|
2280
|
+
pid?: number | undefined;
|
|
2281
|
+
}>;
|
|
2804
2282
|
};
|
|
2805
2283
|
httpRequest: import("@mastra/core/tools").Tool<z.ZodObject<{
|
|
2806
2284
|
method: z.ZodEnum<["GET", "POST", "PUT", "DELETE", "PATCH"]>;
|
|
@@ -2810,18 +2288,18 @@ export declare class AgentBuilderDefaults {
|
|
|
2810
2288
|
body: z.ZodOptional<z.ZodAny>;
|
|
2811
2289
|
timeout: z.ZodDefault<z.ZodOptional<z.ZodNumber>>;
|
|
2812
2290
|
}, "strip", z.ZodTypeAny, {
|
|
2813
|
-
timeout: number;
|
|
2814
2291
|
url: string;
|
|
2292
|
+
timeout: number;
|
|
2815
2293
|
method: "GET" | "POST" | "PUT" | "DELETE" | "PATCH";
|
|
2816
|
-
baseUrl?: string | undefined;
|
|
2817
2294
|
headers?: Record<string, string> | undefined;
|
|
2295
|
+
baseUrl?: string | undefined;
|
|
2818
2296
|
body?: any;
|
|
2819
2297
|
}, {
|
|
2820
2298
|
url: string;
|
|
2821
2299
|
method: "GET" | "POST" | "PUT" | "DELETE" | "PATCH";
|
|
2300
|
+
headers?: Record<string, string> | undefined;
|
|
2822
2301
|
timeout?: number | undefined;
|
|
2823
2302
|
baseUrl?: string | undefined;
|
|
2824
|
-
headers?: Record<string, string> | undefined;
|
|
2825
2303
|
body?: any;
|
|
2826
2304
|
}>, z.ZodObject<{
|
|
2827
2305
|
success: z.ZodBoolean;
|
|
@@ -2850,28 +2328,7 @@ export declare class AgentBuilderDefaults {
|
|
|
2850
2328
|
data?: any;
|
|
2851
2329
|
headers?: Record<string, string> | undefined;
|
|
2852
2330
|
statusText?: string | undefined;
|
|
2853
|
-
}>, any, any, import("@mastra/core").ToolExecutionContext<
|
|
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>> & {
|
|
2331
|
+
}>, any, any, import("@mastra/core/tools").ToolExecutionContext<any, any>> & {
|
|
2875
2332
|
inputSchema: z.ZodObject<{
|
|
2876
2333
|
method: z.ZodEnum<["GET", "POST", "PUT", "DELETE", "PATCH"]>;
|
|
2877
2334
|
url: z.ZodString;
|
|
@@ -2880,18 +2337,18 @@ export declare class AgentBuilderDefaults {
|
|
|
2880
2337
|
body: z.ZodOptional<z.ZodAny>;
|
|
2881
2338
|
timeout: z.ZodDefault<z.ZodOptional<z.ZodNumber>>;
|
|
2882
2339
|
}, "strip", z.ZodTypeAny, {
|
|
2883
|
-
timeout: number;
|
|
2884
2340
|
url: string;
|
|
2341
|
+
timeout: number;
|
|
2885
2342
|
method: "GET" | "POST" | "PUT" | "DELETE" | "PATCH";
|
|
2886
|
-
baseUrl?: string | undefined;
|
|
2887
2343
|
headers?: Record<string, string> | undefined;
|
|
2344
|
+
baseUrl?: string | undefined;
|
|
2888
2345
|
body?: any;
|
|
2889
2346
|
}, {
|
|
2890
2347
|
url: string;
|
|
2891
2348
|
method: "GET" | "POST" | "PUT" | "DELETE" | "PATCH";
|
|
2349
|
+
headers?: Record<string, string> | undefined;
|
|
2892
2350
|
timeout?: number | undefined;
|
|
2893
2351
|
baseUrl?: string | undefined;
|
|
2894
|
-
headers?: Record<string, string> | undefined;
|
|
2895
2352
|
body?: any;
|
|
2896
2353
|
}>;
|
|
2897
2354
|
outputSchema: z.ZodObject<{
|
|
@@ -2922,28 +2379,23 @@ export declare class AgentBuilderDefaults {
|
|
|
2922
2379
|
headers?: Record<string, string> | undefined;
|
|
2923
2380
|
statusText?: string | undefined;
|
|
2924
2381
|
}>;
|
|
2925
|
-
execute: (
|
|
2926
|
-
method: z.ZodEnum<["GET", "POST", "PUT", "DELETE", "PATCH"]>;
|
|
2927
|
-
url: z.ZodString;
|
|
2928
|
-
baseUrl: z.ZodOptional<z.ZodString>;
|
|
2929
|
-
headers: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
2930
|
-
body: z.ZodOptional<z.ZodAny>;
|
|
2931
|
-
timeout: z.ZodDefault<z.ZodOptional<z.ZodNumber>>;
|
|
2932
|
-
}, "strip", z.ZodTypeAny, {
|
|
2933
|
-
timeout: number;
|
|
2382
|
+
execute: (inputData: {
|
|
2934
2383
|
url: string;
|
|
2384
|
+
timeout: number;
|
|
2935
2385
|
method: "GET" | "POST" | "PUT" | "DELETE" | "PATCH";
|
|
2936
|
-
baseUrl?: string | undefined;
|
|
2937
2386
|
headers?: Record<string, string> | undefined;
|
|
2387
|
+
baseUrl?: string | undefined;
|
|
2938
2388
|
body?: any;
|
|
2939
|
-
}, {
|
|
2389
|
+
}, context?: import("@mastra/core/tools").ToolExecutionContext<any, any> | undefined) => Promise<{
|
|
2390
|
+
success: boolean;
|
|
2940
2391
|
url: string;
|
|
2941
|
-
method:
|
|
2942
|
-
|
|
2943
|
-
|
|
2392
|
+
method: string;
|
|
2393
|
+
status?: number | undefined;
|
|
2394
|
+
error?: string | undefined;
|
|
2395
|
+
data?: any;
|
|
2944
2396
|
headers?: Record<string, string> | undefined;
|
|
2945
|
-
|
|
2946
|
-
}
|
|
2397
|
+
statusText?: string | undefined;
|
|
2398
|
+
}>;
|
|
2947
2399
|
};
|
|
2948
2400
|
}>;
|
|
2949
2401
|
/**
|
|
@@ -2957,7 +2409,7 @@ export declare class AgentBuilderDefaults {
|
|
|
2957
2409
|
/**
|
|
2958
2410
|
* Get tools for a specific mode
|
|
2959
2411
|
*/
|
|
2960
|
-
static
|
|
2412
|
+
static listToolsForMode(projectPath: string, mode?: 'template' | 'code-editor'): Promise<Record<string, any>>;
|
|
2961
2413
|
/**
|
|
2962
2414
|
* Create a new Mastra project using create-mastra CLI
|
|
2963
2415
|
*/
|