@mastra/agent-builder 0.0.0-issue-7087-20250910004053 → 0.0.0-jail-fs-20260105160110
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 +570 -4
- package/README.md +0 -4
- package/dist/agent/index.d.ts +5 -7
- package/dist/agent/index.d.ts.map +1 -1
- package/dist/chunk-2CIPVDK5.js +250 -0
- package/dist/chunk-2CIPVDK5.js.map +1 -0
- package/dist/chunk-E53QBCQN.js +84 -0
- package/dist/chunk-E53QBCQN.js.map +1 -0
- package/dist/defaults.d.ts +329 -847
- package/dist/defaults.d.ts.map +1 -1
- package/dist/index.js +4871 -566
- package/dist/index.js.map +1 -1
- package/dist/processors/tool-summary.d.ts +12 -6
- package/dist/processors/tool-summary.d.ts.map +1 -1
- package/dist/token-6GSAFR2W-KVDFAJ2M.js +61 -0
- package/dist/token-6GSAFR2W-KVDFAJ2M.js.map +1 -0
- package/dist/token-util-NEHG7TUY-DJYRKLRD.js +9 -0
- package/dist/token-util-NEHG7TUY-DJYRKLRD.js.map +1 -0
- package/dist/types.d.ts +9 -8
- package/dist/types.d.ts.map +1 -1
- package/dist/utils.d.ts +12 -11
- package/dist/utils.d.ts.map +1 -1
- package/dist/workflows/shared/schema.d.ts +2 -2
- package/dist/workflows/task-planning/schema.d.ts +16 -16
- package/dist/workflows/task-planning/task-planning.d.ts +43 -31
- package/dist/workflows/task-planning/task-planning.d.ts.map +1 -1
- package/dist/workflows/template-builder/template-builder.d.ts +125 -27
- 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 +26 -26
- package/dist/workflows/workflow-builder/tools.d.ts +15 -83
- package/dist/workflows/workflow-builder/tools.d.ts.map +1 -1
- package/dist/workflows/workflow-builder/workflow-builder.d.ts +112 -80
- package/dist/workflows/workflow-builder/workflow-builder.d.ts.map +1 -1
- package/dist/workflows/workflow-map.d.ts +2 -3767
- package/dist/workflows/workflow-map.d.ts.map +1 -1
- package/package.json +15 -12
package/dist/defaults.d.ts
CHANGED
|
@@ -47,10 +47,9 @@ export declare class AgentBuilderDefaults {
|
|
|
47
47
|
totalLines: number;
|
|
48
48
|
lastModified: string;
|
|
49
49
|
}>>;
|
|
50
|
-
|
|
50
|
+
errorMessage: z.ZodOptional<z.ZodString>;
|
|
51
51
|
}, "strip", z.ZodTypeAny, {
|
|
52
52
|
success: boolean;
|
|
53
|
-
error?: string | undefined;
|
|
54
53
|
content?: string | undefined;
|
|
55
54
|
lines?: string[] | undefined;
|
|
56
55
|
metadata?: {
|
|
@@ -59,9 +58,9 @@ export declare class AgentBuilderDefaults {
|
|
|
59
58
|
totalLines: number;
|
|
60
59
|
lastModified: string;
|
|
61
60
|
} | undefined;
|
|
61
|
+
errorMessage?: string | undefined;
|
|
62
62
|
}, {
|
|
63
63
|
success: boolean;
|
|
64
|
-
error?: string | undefined;
|
|
65
64
|
content?: string | undefined;
|
|
66
65
|
lines?: string[] | undefined;
|
|
67
66
|
metadata?: {
|
|
@@ -70,22 +69,8 @@ export declare class AgentBuilderDefaults {
|
|
|
70
69
|
totalLines: number;
|
|
71
70
|
lastModified: string;
|
|
72
71
|
} | undefined;
|
|
73
|
-
|
|
74
|
-
|
|
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
|
-
}>>> & {
|
|
72
|
+
errorMessage?: string | undefined;
|
|
73
|
+
}>, any, any, import("@mastra/core/tools").ToolExecutionContext<any, any>, "read-file"> & {
|
|
89
74
|
inputSchema: z.ZodObject<{
|
|
90
75
|
filePath: z.ZodString;
|
|
91
76
|
startLine: z.ZodOptional<z.ZodNumber>;
|
|
@@ -122,10 +107,9 @@ export declare class AgentBuilderDefaults {
|
|
|
122
107
|
totalLines: number;
|
|
123
108
|
lastModified: string;
|
|
124
109
|
}>>;
|
|
125
|
-
|
|
110
|
+
errorMessage: z.ZodOptional<z.ZodString>;
|
|
126
111
|
}, "strip", z.ZodTypeAny, {
|
|
127
112
|
success: boolean;
|
|
128
|
-
error?: string | undefined;
|
|
129
113
|
content?: string | undefined;
|
|
130
114
|
lines?: string[] | undefined;
|
|
131
115
|
metadata?: {
|
|
@@ -134,9 +118,9 @@ export declare class AgentBuilderDefaults {
|
|
|
134
118
|
totalLines: number;
|
|
135
119
|
lastModified: string;
|
|
136
120
|
} | undefined;
|
|
121
|
+
errorMessage?: string | undefined;
|
|
137
122
|
}, {
|
|
138
123
|
success: boolean;
|
|
139
|
-
error?: string | undefined;
|
|
140
124
|
content?: string | undefined;
|
|
141
125
|
lines?: string[] | undefined;
|
|
142
126
|
metadata?: {
|
|
@@ -145,23 +129,27 @@ export declare class AgentBuilderDefaults {
|
|
|
145
129
|
totalLines: number;
|
|
146
130
|
lastModified: string;
|
|
147
131
|
} | undefined;
|
|
132
|
+
errorMessage?: string | 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
|
+
content?: string | undefined;
|
|
142
|
+
lines?: string[] | undefined;
|
|
143
|
+
metadata?: {
|
|
144
|
+
encoding: string;
|
|
145
|
+
size: number;
|
|
146
|
+
totalLines: number;
|
|
147
|
+
lastModified: string;
|
|
148
|
+
} | undefined;
|
|
149
|
+
errorMessage?: string | undefined;
|
|
150
|
+
} & {
|
|
151
|
+
error?: never;
|
|
152
|
+
}>;
|
|
165
153
|
};
|
|
166
154
|
writeFile: import("@mastra/core/tools").Tool<z.ZodObject<{
|
|
167
155
|
filePath: z.ZodString;
|
|
@@ -169,13 +157,13 @@ export declare class AgentBuilderDefaults {
|
|
|
169
157
|
createDirs: z.ZodDefault<z.ZodBoolean>;
|
|
170
158
|
encoding: z.ZodDefault<z.ZodString>;
|
|
171
159
|
}, "strip", z.ZodTypeAny, {
|
|
160
|
+
content: string;
|
|
172
161
|
filePath: string;
|
|
173
162
|
encoding: string;
|
|
174
|
-
content: string;
|
|
175
163
|
createDirs: boolean;
|
|
176
164
|
}, {
|
|
177
|
-
filePath: string;
|
|
178
165
|
content: string;
|
|
166
|
+
filePath: string;
|
|
179
167
|
encoding?: string | undefined;
|
|
180
168
|
createDirs?: boolean | undefined;
|
|
181
169
|
}>, z.ZodObject<{
|
|
@@ -183,48 +171,33 @@ export declare class AgentBuilderDefaults {
|
|
|
183
171
|
filePath: z.ZodString;
|
|
184
172
|
bytesWritten: z.ZodOptional<z.ZodNumber>;
|
|
185
173
|
message: z.ZodString;
|
|
186
|
-
|
|
174
|
+
errorMessage: z.ZodOptional<z.ZodString>;
|
|
187
175
|
}, "strip", z.ZodTypeAny, {
|
|
188
176
|
message: string;
|
|
189
177
|
success: boolean;
|
|
190
178
|
filePath: string;
|
|
191
|
-
|
|
179
|
+
errorMessage?: string | undefined;
|
|
192
180
|
bytesWritten?: number | undefined;
|
|
193
181
|
}, {
|
|
194
182
|
message: string;
|
|
195
183
|
success: boolean;
|
|
196
184
|
filePath: string;
|
|
197
|
-
|
|
185
|
+
errorMessage?: string | undefined;
|
|
198
186
|
bytesWritten?: number | undefined;
|
|
199
|
-
}>, 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
|
-
}>>> & {
|
|
187
|
+
}>, any, any, import("@mastra/core/tools").ToolExecutionContext<any, any>, "write-file"> & {
|
|
215
188
|
inputSchema: z.ZodObject<{
|
|
216
189
|
filePath: z.ZodString;
|
|
217
190
|
content: z.ZodString;
|
|
218
191
|
createDirs: z.ZodDefault<z.ZodBoolean>;
|
|
219
192
|
encoding: z.ZodDefault<z.ZodString>;
|
|
220
193
|
}, "strip", z.ZodTypeAny, {
|
|
194
|
+
content: string;
|
|
221
195
|
filePath: string;
|
|
222
196
|
encoding: string;
|
|
223
|
-
content: string;
|
|
224
197
|
createDirs: boolean;
|
|
225
198
|
}, {
|
|
226
|
-
filePath: string;
|
|
227
199
|
content: string;
|
|
200
|
+
filePath: string;
|
|
228
201
|
encoding?: string | undefined;
|
|
229
202
|
createDirs?: boolean | undefined;
|
|
230
203
|
}>;
|
|
@@ -233,36 +206,34 @@ export declare class AgentBuilderDefaults {
|
|
|
233
206
|
filePath: z.ZodString;
|
|
234
207
|
bytesWritten: z.ZodOptional<z.ZodNumber>;
|
|
235
208
|
message: z.ZodString;
|
|
236
|
-
|
|
209
|
+
errorMessage: z.ZodOptional<z.ZodString>;
|
|
237
210
|
}, "strip", z.ZodTypeAny, {
|
|
238
211
|
message: string;
|
|
239
212
|
success: boolean;
|
|
240
213
|
filePath: string;
|
|
241
|
-
|
|
214
|
+
errorMessage?: string | undefined;
|
|
242
215
|
bytesWritten?: number | undefined;
|
|
243
216
|
}, {
|
|
244
217
|
message: string;
|
|
245
218
|
success: boolean;
|
|
246
219
|
filePath: string;
|
|
247
|
-
|
|
220
|
+
errorMessage?: string | undefined;
|
|
248
221
|
bytesWritten?: number | undefined;
|
|
249
222
|
}>;
|
|
250
|
-
execute: (
|
|
251
|
-
|
|
252
|
-
content: z.ZodString;
|
|
253
|
-
createDirs: z.ZodDefault<z.ZodBoolean>;
|
|
254
|
-
encoding: z.ZodDefault<z.ZodString>;
|
|
255
|
-
}, "strip", z.ZodTypeAny, {
|
|
223
|
+
execute: (inputData: {
|
|
224
|
+
content: string;
|
|
256
225
|
filePath: string;
|
|
257
226
|
encoding: string;
|
|
258
|
-
content: string;
|
|
259
227
|
createDirs: boolean;
|
|
260
|
-
}, {
|
|
228
|
+
}, context?: import("@mastra/core/tools").ToolExecutionContext<any, any> | undefined) => Promise<{
|
|
229
|
+
message: string;
|
|
230
|
+
success: boolean;
|
|
261
231
|
filePath: string;
|
|
262
|
-
|
|
263
|
-
|
|
264
|
-
|
|
265
|
-
|
|
232
|
+
errorMessage?: string | undefined;
|
|
233
|
+
bytesWritten?: number | undefined;
|
|
234
|
+
} & {
|
|
235
|
+
error?: never;
|
|
236
|
+
}>;
|
|
266
237
|
};
|
|
267
238
|
listDirectory: import("@mastra/core/tools").Tool<z.ZodObject<{
|
|
268
239
|
path: z.ZodString;
|
|
@@ -312,7 +283,7 @@ export declare class AgentBuilderDefaults {
|
|
|
312
283
|
totalItems: z.ZodNumber;
|
|
313
284
|
path: z.ZodString;
|
|
314
285
|
message: z.ZodString;
|
|
315
|
-
|
|
286
|
+
errorMessage: z.ZodOptional<z.ZodString>;
|
|
316
287
|
}, "strip", z.ZodTypeAny, {
|
|
317
288
|
path: string;
|
|
318
289
|
message: string;
|
|
@@ -326,7 +297,7 @@ export declare class AgentBuilderDefaults {
|
|
|
326
297
|
permissions?: string | undefined;
|
|
327
298
|
}[];
|
|
328
299
|
totalItems: number;
|
|
329
|
-
|
|
300
|
+
errorMessage?: string | undefined;
|
|
330
301
|
}, {
|
|
331
302
|
path: string;
|
|
332
303
|
message: string;
|
|
@@ -340,29 +311,8 @@ export declare class AgentBuilderDefaults {
|
|
|
340
311
|
permissions?: string | undefined;
|
|
341
312
|
}[];
|
|
342
313
|
totalItems: number;
|
|
343
|
-
|
|
344
|
-
}>, 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
|
-
}>>> & {
|
|
314
|
+
errorMessage?: string | undefined;
|
|
315
|
+
}>, any, any, import("@mastra/core/tools").ToolExecutionContext<any, any>, "list-directory"> & {
|
|
366
316
|
inputSchema: z.ZodObject<{
|
|
367
317
|
path: z.ZodString;
|
|
368
318
|
recursive: z.ZodDefault<z.ZodBoolean>;
|
|
@@ -412,7 +362,7 @@ export declare class AgentBuilderDefaults {
|
|
|
412
362
|
totalItems: z.ZodNumber;
|
|
413
363
|
path: z.ZodString;
|
|
414
364
|
message: z.ZodString;
|
|
415
|
-
|
|
365
|
+
errorMessage: z.ZodOptional<z.ZodString>;
|
|
416
366
|
}, "strip", z.ZodTypeAny, {
|
|
417
367
|
path: string;
|
|
418
368
|
message: string;
|
|
@@ -426,7 +376,7 @@ export declare class AgentBuilderDefaults {
|
|
|
426
376
|
permissions?: string | undefined;
|
|
427
377
|
}[];
|
|
428
378
|
totalItems: number;
|
|
429
|
-
|
|
379
|
+
errorMessage?: string | undefined;
|
|
430
380
|
}, {
|
|
431
381
|
path: string;
|
|
432
382
|
message: string;
|
|
@@ -440,30 +390,32 @@ export declare class AgentBuilderDefaults {
|
|
|
440
390
|
permissions?: string | undefined;
|
|
441
391
|
}[];
|
|
442
392
|
totalItems: number;
|
|
443
|
-
|
|
393
|
+
errorMessage?: string | undefined;
|
|
444
394
|
}>;
|
|
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, {
|
|
395
|
+
execute: (inputData: {
|
|
453
396
|
path: string;
|
|
454
397
|
recursive: boolean;
|
|
455
398
|
includeHidden: boolean;
|
|
456
399
|
pattern: string;
|
|
457
400
|
maxDepth: number;
|
|
458
401
|
includeMetadata: boolean;
|
|
459
|
-
}, {
|
|
402
|
+
}, context?: import("@mastra/core/tools").ToolExecutionContext<any, any> | undefined) => Promise<{
|
|
460
403
|
path: string;
|
|
461
|
-
|
|
462
|
-
|
|
463
|
-
|
|
464
|
-
|
|
465
|
-
|
|
466
|
-
|
|
404
|
+
message: string;
|
|
405
|
+
success: boolean;
|
|
406
|
+
items: {
|
|
407
|
+
path: string;
|
|
408
|
+
type: "file" | "directory" | "symlink";
|
|
409
|
+
name: string;
|
|
410
|
+
size?: number | undefined;
|
|
411
|
+
lastModified?: string | undefined;
|
|
412
|
+
permissions?: string | undefined;
|
|
413
|
+
}[];
|
|
414
|
+
totalItems: number;
|
|
415
|
+
errorMessage?: string | undefined;
|
|
416
|
+
} & {
|
|
417
|
+
error?: never;
|
|
418
|
+
}>;
|
|
467
419
|
};
|
|
468
420
|
executeCommand: import("@mastra/core/tools").Tool<z.ZodObject<{
|
|
469
421
|
command: z.ZodString;
|
|
@@ -494,47 +446,26 @@ export declare class AgentBuilderDefaults {
|
|
|
494
446
|
command: z.ZodString;
|
|
495
447
|
workingDirectory: z.ZodOptional<z.ZodString>;
|
|
496
448
|
executionTime: z.ZodOptional<z.ZodNumber>;
|
|
497
|
-
|
|
449
|
+
errorMessage: z.ZodOptional<z.ZodString>;
|
|
498
450
|
}, "strip", z.ZodTypeAny, {
|
|
499
451
|
success: boolean;
|
|
500
452
|
command: string;
|
|
501
|
-
error?: string | undefined;
|
|
502
453
|
stdout?: string | undefined;
|
|
503
454
|
stderr?: string | undefined;
|
|
455
|
+
errorMessage?: string | undefined;
|
|
504
456
|
workingDirectory?: string | undefined;
|
|
505
457
|
exitCode?: number | undefined;
|
|
506
458
|
executionTime?: number | undefined;
|
|
507
459
|
}, {
|
|
508
460
|
success: boolean;
|
|
509
461
|
command: string;
|
|
510
|
-
error?: string | undefined;
|
|
511
462
|
stdout?: string | undefined;
|
|
512
463
|
stderr?: string | undefined;
|
|
464
|
+
errorMessage?: string | undefined;
|
|
513
465
|
workingDirectory?: string | undefined;
|
|
514
466
|
exitCode?: number | undefined;
|
|
515
467
|
executionTime?: number | undefined;
|
|
516
|
-
}>, 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
|
-
}>>> & {
|
|
468
|
+
}>, any, any, import("@mastra/core/tools").ToolExecutionContext<any, any>, "execute-command"> & {
|
|
538
469
|
inputSchema: z.ZodObject<{
|
|
539
470
|
command: z.ZodString;
|
|
540
471
|
workingDirectory: z.ZodOptional<z.ZodString>;
|
|
@@ -565,48 +496,45 @@ export declare class AgentBuilderDefaults {
|
|
|
565
496
|
command: z.ZodString;
|
|
566
497
|
workingDirectory: z.ZodOptional<z.ZodString>;
|
|
567
498
|
executionTime: z.ZodOptional<z.ZodNumber>;
|
|
568
|
-
|
|
499
|
+
errorMessage: z.ZodOptional<z.ZodString>;
|
|
569
500
|
}, "strip", z.ZodTypeAny, {
|
|
570
501
|
success: boolean;
|
|
571
502
|
command: string;
|
|
572
|
-
error?: string | undefined;
|
|
573
503
|
stdout?: string | undefined;
|
|
574
504
|
stderr?: string | undefined;
|
|
505
|
+
errorMessage?: string | undefined;
|
|
575
506
|
workingDirectory?: string | undefined;
|
|
576
507
|
exitCode?: number | undefined;
|
|
577
508
|
executionTime?: number | undefined;
|
|
578
509
|
}, {
|
|
579
510
|
success: boolean;
|
|
580
511
|
command: string;
|
|
581
|
-
error?: string | undefined;
|
|
582
512
|
stdout?: string | undefined;
|
|
583
513
|
stderr?: string | undefined;
|
|
514
|
+
errorMessage?: string | undefined;
|
|
584
515
|
workingDirectory?: string | undefined;
|
|
585
516
|
exitCode?: number | undefined;
|
|
586
517
|
executionTime?: number | undefined;
|
|
587
518
|
}>;
|
|
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, {
|
|
519
|
+
execute: (inputData: {
|
|
596
520
|
command: string;
|
|
597
521
|
timeout: number;
|
|
598
522
|
captureOutput: boolean;
|
|
599
523
|
workingDirectory?: string | undefined;
|
|
600
524
|
shell?: string | undefined;
|
|
601
525
|
env?: Record<string, string> | undefined;
|
|
602
|
-
}, {
|
|
526
|
+
}, context?: import("@mastra/core/tools").ToolExecutionContext<any, any> | undefined) => Promise<{
|
|
527
|
+
success: boolean;
|
|
603
528
|
command: string;
|
|
529
|
+
stdout?: string | undefined;
|
|
530
|
+
stderr?: string | undefined;
|
|
531
|
+
errorMessage?: string | undefined;
|
|
604
532
|
workingDirectory?: string | undefined;
|
|
605
|
-
|
|
606
|
-
|
|
607
|
-
|
|
608
|
-
|
|
609
|
-
}
|
|
533
|
+
exitCode?: number | undefined;
|
|
534
|
+
executionTime?: number | undefined;
|
|
535
|
+
} & {
|
|
536
|
+
error?: never;
|
|
537
|
+
}>;
|
|
610
538
|
};
|
|
611
539
|
taskManager: import("@mastra/core/tools").Tool<z.ZodObject<{
|
|
612
540
|
action: z.ZodEnum<["create", "update", "list", "complete", "remove"]>;
|
|
@@ -712,54 +640,7 @@ export declare class AgentBuilderDefaults {
|
|
|
712
640
|
dependencies?: string[] | undefined;
|
|
713
641
|
notes?: string | undefined;
|
|
714
642
|
}[];
|
|
715
|
-
}>, 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
|
-
}>>> & {
|
|
643
|
+
}>, any, any, import("@mastra/core/tools").ToolExecutionContext<any, any>, "task-manager"> & {
|
|
763
644
|
inputSchema: z.ZodObject<{
|
|
764
645
|
action: z.ZodEnum<["create", "update", "list", "complete", "remove"]>;
|
|
765
646
|
tasks: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
@@ -866,32 +747,7 @@ export declare class AgentBuilderDefaults {
|
|
|
866
747
|
notes?: string | undefined;
|
|
867
748
|
}[];
|
|
868
749
|
}>;
|
|
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, {
|
|
750
|
+
execute: (inputData: {
|
|
895
751
|
action: "create" | "update" | "list" | "complete" | "remove";
|
|
896
752
|
tasks?: {
|
|
897
753
|
status: "pending" | "in_progress" | "completed" | "blocked";
|
|
@@ -902,18 +758,22 @@ export declare class AgentBuilderDefaults {
|
|
|
902
758
|
notes?: string | undefined;
|
|
903
759
|
}[] | undefined;
|
|
904
760
|
taskId?: string | undefined;
|
|
905
|
-
}, {
|
|
906
|
-
|
|
907
|
-
|
|
908
|
-
|
|
761
|
+
}, context?: import("@mastra/core/tools").ToolExecutionContext<any, any> | undefined) => Promise<{
|
|
762
|
+
message: string;
|
|
763
|
+
success: boolean;
|
|
764
|
+
tasks: {
|
|
765
|
+
status: string;
|
|
909
766
|
id: string;
|
|
767
|
+
content: string;
|
|
768
|
+
priority: string;
|
|
769
|
+
createdAt: string;
|
|
770
|
+
updatedAt: string;
|
|
910
771
|
dependencies?: string[] | undefined;
|
|
911
|
-
content?: string | undefined;
|
|
912
|
-
priority?: "high" | "medium" | "low" | undefined;
|
|
913
772
|
notes?: string | undefined;
|
|
914
|
-
}[]
|
|
915
|
-
|
|
916
|
-
|
|
773
|
+
}[];
|
|
774
|
+
} & {
|
|
775
|
+
error?: never;
|
|
776
|
+
}>;
|
|
917
777
|
};
|
|
918
778
|
multiEdit: import("@mastra/core/tools").Tool<z.ZodObject<{
|
|
919
779
|
operations: z.ZodArray<z.ZodObject<{
|
|
@@ -1004,59 +864,7 @@ export declare class AgentBuilderDefaults {
|
|
|
1004
864
|
editsApplied: number;
|
|
1005
865
|
backup?: string | undefined;
|
|
1006
866
|
}[];
|
|
1007
|
-
}>, 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
|
-
}>>> & {
|
|
867
|
+
}>, any, any, import("@mastra/core/tools").ToolExecutionContext<any, any>, "multi-edit"> & {
|
|
1060
868
|
inputSchema: z.ZodObject<{
|
|
1061
869
|
operations: z.ZodArray<z.ZodObject<{
|
|
1062
870
|
filePath: z.ZodString;
|
|
@@ -1148,39 +956,7 @@ export declare class AgentBuilderDefaults {
|
|
|
1148
956
|
backup?: string | undefined;
|
|
1149
957
|
}[];
|
|
1150
958
|
}>;
|
|
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, {
|
|
959
|
+
execute: (inputData: {
|
|
1184
960
|
operations: {
|
|
1185
961
|
filePath: string;
|
|
1186
962
|
edits: {
|
|
@@ -1190,17 +966,18 @@ export declare class AgentBuilderDefaults {
|
|
|
1190
966
|
}[];
|
|
1191
967
|
}[];
|
|
1192
968
|
createBackup: boolean;
|
|
1193
|
-
}, {
|
|
1194
|
-
|
|
969
|
+
}, context?: import("@mastra/core/tools").ToolExecutionContext<any, any> | undefined) => Promise<{
|
|
970
|
+
message: string;
|
|
971
|
+
success: boolean;
|
|
972
|
+
results: {
|
|
973
|
+
errors: string[];
|
|
1195
974
|
filePath: string;
|
|
1196
|
-
|
|
1197
|
-
|
|
1198
|
-
newString: string;
|
|
1199
|
-
replaceAll?: boolean | undefined;
|
|
1200
|
-
}[];
|
|
975
|
+
editsApplied: number;
|
|
976
|
+
backup?: string | undefined;
|
|
1201
977
|
}[];
|
|
1202
|
-
|
|
1203
|
-
|
|
978
|
+
} & {
|
|
979
|
+
error?: never;
|
|
980
|
+
}>;
|
|
1204
981
|
};
|
|
1205
982
|
replaceLines: import("@mastra/core/tools").Tool<z.ZodObject<{
|
|
1206
983
|
filePath: z.ZodString;
|
|
@@ -1225,38 +1002,20 @@ export declare class AgentBuilderDefaults {
|
|
|
1225
1002
|
message: z.ZodString;
|
|
1226
1003
|
linesReplaced: z.ZodOptional<z.ZodNumber>;
|
|
1227
1004
|
backup: z.ZodOptional<z.ZodString>;
|
|
1228
|
-
|
|
1005
|
+
errorMessage: z.ZodOptional<z.ZodString>;
|
|
1229
1006
|
}, "strip", z.ZodTypeAny, {
|
|
1230
1007
|
message: string;
|
|
1231
1008
|
success: boolean;
|
|
1232
|
-
|
|
1009
|
+
errorMessage?: string | undefined;
|
|
1233
1010
|
backup?: string | undefined;
|
|
1234
1011
|
linesReplaced?: number | undefined;
|
|
1235
1012
|
}, {
|
|
1236
1013
|
message: string;
|
|
1237
1014
|
success: boolean;
|
|
1238
|
-
|
|
1015
|
+
errorMessage?: string | undefined;
|
|
1239
1016
|
backup?: string | undefined;
|
|
1240
1017
|
linesReplaced?: number | undefined;
|
|
1241
|
-
}>, 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
|
-
}>>> & {
|
|
1018
|
+
}>, any, any, import("@mastra/core/tools").ToolExecutionContext<any, any>, "replace-lines"> & {
|
|
1260
1019
|
inputSchema: z.ZodObject<{
|
|
1261
1020
|
filePath: z.ZodString;
|
|
1262
1021
|
startLine: z.ZodNumber;
|
|
@@ -1281,39 +1040,35 @@ export declare class AgentBuilderDefaults {
|
|
|
1281
1040
|
message: z.ZodString;
|
|
1282
1041
|
linesReplaced: z.ZodOptional<z.ZodNumber>;
|
|
1283
1042
|
backup: z.ZodOptional<z.ZodString>;
|
|
1284
|
-
|
|
1043
|
+
errorMessage: z.ZodOptional<z.ZodString>;
|
|
1285
1044
|
}, "strip", z.ZodTypeAny, {
|
|
1286
1045
|
message: string;
|
|
1287
1046
|
success: boolean;
|
|
1288
|
-
|
|
1047
|
+
errorMessage?: string | undefined;
|
|
1289
1048
|
backup?: string | undefined;
|
|
1290
1049
|
linesReplaced?: number | undefined;
|
|
1291
1050
|
}, {
|
|
1292
1051
|
message: string;
|
|
1293
1052
|
success: boolean;
|
|
1294
|
-
|
|
1053
|
+
errorMessage?: string | undefined;
|
|
1295
1054
|
backup?: string | undefined;
|
|
1296
1055
|
linesReplaced?: number | undefined;
|
|
1297
1056
|
}>;
|
|
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, {
|
|
1057
|
+
execute: (inputData: {
|
|
1305
1058
|
filePath: string;
|
|
1306
1059
|
startLine: number;
|
|
1307
1060
|
endLine: number;
|
|
1308
1061
|
createBackup: boolean;
|
|
1309
1062
|
newContent: string;
|
|
1310
|
-
}, {
|
|
1311
|
-
|
|
1312
|
-
|
|
1313
|
-
|
|
1314
|
-
|
|
1315
|
-
|
|
1316
|
-
}
|
|
1063
|
+
}, context?: import("@mastra/core/tools").ToolExecutionContext<any, any> | undefined) => Promise<{
|
|
1064
|
+
message: string;
|
|
1065
|
+
success: boolean;
|
|
1066
|
+
errorMessage?: string | undefined;
|
|
1067
|
+
backup?: string | undefined;
|
|
1068
|
+
linesReplaced?: number | undefined;
|
|
1069
|
+
} & {
|
|
1070
|
+
error?: never;
|
|
1071
|
+
}>;
|
|
1317
1072
|
};
|
|
1318
1073
|
showFileLines: import("@mastra/core/tools").Tool<z.ZodObject<{
|
|
1319
1074
|
filePath: z.ZodString;
|
|
@@ -1347,7 +1102,7 @@ export declare class AgentBuilderDefaults {
|
|
|
1347
1102
|
}>, "many">;
|
|
1348
1103
|
totalLines: z.ZodNumber;
|
|
1349
1104
|
message: z.ZodString;
|
|
1350
|
-
|
|
1105
|
+
errorMessage: z.ZodOptional<z.ZodString>;
|
|
1351
1106
|
}, "strip", z.ZodTypeAny, {
|
|
1352
1107
|
message: string;
|
|
1353
1108
|
success: boolean;
|
|
@@ -1357,7 +1112,7 @@ export declare class AgentBuilderDefaults {
|
|
|
1357
1112
|
isTarget: boolean;
|
|
1358
1113
|
}[];
|
|
1359
1114
|
totalLines: number;
|
|
1360
|
-
|
|
1115
|
+
errorMessage?: string | undefined;
|
|
1361
1116
|
}, {
|
|
1362
1117
|
message: string;
|
|
1363
1118
|
success: boolean;
|
|
@@ -1367,23 +1122,8 @@ export declare class AgentBuilderDefaults {
|
|
|
1367
1122
|
isTarget: boolean;
|
|
1368
1123
|
}[];
|
|
1369
1124
|
totalLines: number;
|
|
1370
|
-
|
|
1371
|
-
}>, 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
|
-
}>>> & {
|
|
1125
|
+
errorMessage?: string | undefined;
|
|
1126
|
+
}>, any, any, import("@mastra/core/tools").ToolExecutionContext<any, any>, "show-file-lines"> & {
|
|
1387
1127
|
inputSchema: z.ZodObject<{
|
|
1388
1128
|
filePath: z.ZodString;
|
|
1389
1129
|
startLine: z.ZodOptional<z.ZodNumber>;
|
|
@@ -1417,7 +1157,7 @@ export declare class AgentBuilderDefaults {
|
|
|
1417
1157
|
}>, "many">;
|
|
1418
1158
|
totalLines: z.ZodNumber;
|
|
1419
1159
|
message: z.ZodString;
|
|
1420
|
-
|
|
1160
|
+
errorMessage: z.ZodOptional<z.ZodString>;
|
|
1421
1161
|
}, "strip", z.ZodTypeAny, {
|
|
1422
1162
|
message: string;
|
|
1423
1163
|
success: boolean;
|
|
@@ -1427,7 +1167,7 @@ export declare class AgentBuilderDefaults {
|
|
|
1427
1167
|
isTarget: boolean;
|
|
1428
1168
|
}[];
|
|
1429
1169
|
totalLines: number;
|
|
1430
|
-
|
|
1170
|
+
errorMessage?: string | undefined;
|
|
1431
1171
|
}, {
|
|
1432
1172
|
message: string;
|
|
1433
1173
|
success: boolean;
|
|
@@ -1437,24 +1177,26 @@ export declare class AgentBuilderDefaults {
|
|
|
1437
1177
|
isTarget: boolean;
|
|
1438
1178
|
}[];
|
|
1439
1179
|
totalLines: number;
|
|
1440
|
-
|
|
1180
|
+
errorMessage?: string | undefined;
|
|
1441
1181
|
}>;
|
|
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, {
|
|
1182
|
+
execute: (inputData: {
|
|
1448
1183
|
filePath: string;
|
|
1449
1184
|
context: number;
|
|
1450
1185
|
startLine?: number | undefined;
|
|
1451
1186
|
endLine?: number | undefined;
|
|
1452
|
-
}, {
|
|
1453
|
-
|
|
1454
|
-
|
|
1455
|
-
|
|
1456
|
-
|
|
1457
|
-
|
|
1187
|
+
}, context?: import("@mastra/core/tools").ToolExecutionContext<any, any> | undefined) => Promise<{
|
|
1188
|
+
message: string;
|
|
1189
|
+
success: boolean;
|
|
1190
|
+
lines: {
|
|
1191
|
+
content: string;
|
|
1192
|
+
lineNumber: number;
|
|
1193
|
+
isTarget: boolean;
|
|
1194
|
+
}[];
|
|
1195
|
+
totalLines: number;
|
|
1196
|
+
errorMessage?: string | undefined;
|
|
1197
|
+
} & {
|
|
1198
|
+
error?: never;
|
|
1199
|
+
}>;
|
|
1458
1200
|
};
|
|
1459
1201
|
smartSearch: import("@mastra/core/tools").Tool<z.ZodObject<{
|
|
1460
1202
|
query: z.ZodString;
|
|
@@ -1604,67 +1346,7 @@ export declare class AgentBuilderDefaults {
|
|
|
1604
1346
|
filesSearched: number;
|
|
1605
1347
|
patterns: string[];
|
|
1606
1348
|
};
|
|
1607
|
-
}>, 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
|
-
}>>> & {
|
|
1349
|
+
}>, any, any, import("@mastra/core/tools").ToolExecutionContext<any, any>, "smart-search"> & {
|
|
1668
1350
|
inputSchema: z.ZodObject<{
|
|
1669
1351
|
query: z.ZodString;
|
|
1670
1352
|
type: z.ZodDefault<z.ZodEnum<["text", "regex", "fuzzy", "semantic"]>>;
|
|
@@ -1815,39 +1497,7 @@ export declare class AgentBuilderDefaults {
|
|
|
1815
1497
|
patterns: string[];
|
|
1816
1498
|
};
|
|
1817
1499
|
}>;
|
|
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, {
|
|
1500
|
+
execute: (inputData: {
|
|
1851
1501
|
type: "text" | "regex" | "fuzzy" | "semantic";
|
|
1852
1502
|
query: string;
|
|
1853
1503
|
context?: {
|
|
@@ -1861,21 +1511,27 @@ export declare class AgentBuilderDefaults {
|
|
|
1861
1511
|
fileTypes?: string[] | undefined;
|
|
1862
1512
|
excludePaths?: string[] | undefined;
|
|
1863
1513
|
} | undefined;
|
|
1864
|
-
}, {
|
|
1865
|
-
|
|
1866
|
-
|
|
1867
|
-
|
|
1868
|
-
|
|
1869
|
-
|
|
1870
|
-
|
|
1871
|
-
|
|
1872
|
-
|
|
1873
|
-
|
|
1874
|
-
|
|
1875
|
-
|
|
1876
|
-
|
|
1877
|
-
|
|
1878
|
-
|
|
1514
|
+
}, context?: import("@mastra/core/tools").ToolExecutionContext<any, any> | undefined) => Promise<{
|
|
1515
|
+
success: boolean;
|
|
1516
|
+
matches: {
|
|
1517
|
+
file: string;
|
|
1518
|
+
match: string;
|
|
1519
|
+
context: {
|
|
1520
|
+
before: string[];
|
|
1521
|
+
after: string[];
|
|
1522
|
+
};
|
|
1523
|
+
line: number;
|
|
1524
|
+
column?: number | undefined;
|
|
1525
|
+
relevance?: number | undefined;
|
|
1526
|
+
}[];
|
|
1527
|
+
summary: {
|
|
1528
|
+
totalMatches: number;
|
|
1529
|
+
filesSearched: number;
|
|
1530
|
+
patterns: string[];
|
|
1531
|
+
};
|
|
1532
|
+
} & {
|
|
1533
|
+
error?: never;
|
|
1534
|
+
}>;
|
|
1879
1535
|
};
|
|
1880
1536
|
validateCode: import("@mastra/core/tools").Tool<z.ZodObject<{
|
|
1881
1537
|
projectPath: z.ZodOptional<z.ZodString>;
|
|
@@ -1966,19 +1622,7 @@ export declare class AgentBuilderDefaults {
|
|
|
1966
1622
|
validationsPassed: string[];
|
|
1967
1623
|
validationsFailed: string[];
|
|
1968
1624
|
};
|
|
1969
|
-
}>, 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
|
-
}>>> & {
|
|
1625
|
+
}>, any, any, import("@mastra/core/tools").ToolExecutionContext<any, any>, "validate-code"> & {
|
|
1982
1626
|
inputSchema: z.ZodObject<{
|
|
1983
1627
|
projectPath: z.ZodOptional<z.ZodString>;
|
|
1984
1628
|
validationType: z.ZodArray<z.ZodEnum<["types", "lint", "schemas", "tests", "build"]>, "many">;
|
|
@@ -2070,19 +1714,30 @@ export declare class AgentBuilderDefaults {
|
|
|
2070
1714
|
validationsFailed: string[];
|
|
2071
1715
|
};
|
|
2072
1716
|
}>;
|
|
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
|
-
}, {
|
|
1717
|
+
execute: (inputData: {
|
|
2082
1718
|
validationType: ("types" | "schemas" | "tests" | "lint" | "build")[];
|
|
2083
1719
|
projectPath?: string | undefined;
|
|
2084
1720
|
files?: string[] | undefined;
|
|
2085
|
-
}
|
|
1721
|
+
}, context?: import("@mastra/core/tools").ToolExecutionContext<any, any> | undefined) => Promise<{
|
|
1722
|
+
valid: boolean;
|
|
1723
|
+
errors: {
|
|
1724
|
+
message: string;
|
|
1725
|
+
type: "build" | "typescript" | "eslint" | "schema" | "test";
|
|
1726
|
+
severity: "error" | "warning" | "info";
|
|
1727
|
+
code?: string | undefined;
|
|
1728
|
+
file?: string | undefined;
|
|
1729
|
+
line?: number | undefined;
|
|
1730
|
+
column?: number | undefined;
|
|
1731
|
+
}[];
|
|
1732
|
+
summary: {
|
|
1733
|
+
totalErrors: number;
|
|
1734
|
+
totalWarnings: number;
|
|
1735
|
+
validationsPassed: string[];
|
|
1736
|
+
validationsFailed: string[];
|
|
1737
|
+
};
|
|
1738
|
+
} & {
|
|
1739
|
+
error?: never;
|
|
1740
|
+
}>;
|
|
2086
1741
|
};
|
|
2087
1742
|
webSearch: import("@mastra/core/tools").Tool<z.ZodObject<{
|
|
2088
1743
|
query: z.ZodString;
|
|
@@ -2116,15 +1771,15 @@ export declare class AgentBuilderDefaults {
|
|
|
2116
1771
|
publishDate: z.ZodOptional<z.ZodString>;
|
|
2117
1772
|
relevanceScore: z.ZodOptional<z.ZodNumber>;
|
|
2118
1773
|
}, "strip", z.ZodTypeAny, {
|
|
2119
|
-
title: string;
|
|
2120
1774
|
url: string;
|
|
1775
|
+
title: string;
|
|
2121
1776
|
snippet: string;
|
|
2122
1777
|
domain: string;
|
|
2123
1778
|
publishDate?: string | undefined;
|
|
2124
1779
|
relevanceScore?: number | undefined;
|
|
2125
1780
|
}, {
|
|
2126
|
-
title: string;
|
|
2127
1781
|
url: string;
|
|
1782
|
+
title: string;
|
|
2128
1783
|
snippet: string;
|
|
2129
1784
|
domain: string;
|
|
2130
1785
|
publishDate?: string | undefined;
|
|
@@ -2133,12 +1788,12 @@ export declare class AgentBuilderDefaults {
|
|
|
2133
1788
|
totalResults: z.ZodNumber;
|
|
2134
1789
|
searchTime: z.ZodNumber;
|
|
2135
1790
|
suggestions: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
2136
|
-
|
|
1791
|
+
errorMessage: z.ZodOptional<z.ZodString>;
|
|
2137
1792
|
}, "strip", z.ZodTypeAny, {
|
|
2138
1793
|
success: boolean;
|
|
2139
1794
|
results: {
|
|
2140
|
-
title: string;
|
|
2141
1795
|
url: string;
|
|
1796
|
+
title: string;
|
|
2142
1797
|
snippet: string;
|
|
2143
1798
|
domain: string;
|
|
2144
1799
|
publishDate?: string | undefined;
|
|
@@ -2147,13 +1802,13 @@ export declare class AgentBuilderDefaults {
|
|
|
2147
1802
|
query: string;
|
|
2148
1803
|
totalResults: number;
|
|
2149
1804
|
searchTime: number;
|
|
2150
|
-
|
|
1805
|
+
errorMessage?: string | undefined;
|
|
2151
1806
|
suggestions?: string[] | undefined;
|
|
2152
1807
|
}, {
|
|
2153
1808
|
success: boolean;
|
|
2154
1809
|
results: {
|
|
2155
|
-
title: string;
|
|
2156
1810
|
url: string;
|
|
1811
|
+
title: string;
|
|
2157
1812
|
snippet: string;
|
|
2158
1813
|
domain: string;
|
|
2159
1814
|
publishDate?: string | undefined;
|
|
@@ -2162,30 +1817,9 @@ export declare class AgentBuilderDefaults {
|
|
|
2162
1817
|
query: string;
|
|
2163
1818
|
totalResults: number;
|
|
2164
1819
|
searchTime: number;
|
|
2165
|
-
|
|
1820
|
+
errorMessage?: string | undefined;
|
|
2166
1821
|
suggestions?: string[] | undefined;
|
|
2167
|
-
}>, 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
|
-
}>>> & {
|
|
1822
|
+
}>, any, any, import("@mastra/core/tools").ToolExecutionContext<any, any>, "web-search"> & {
|
|
2189
1823
|
inputSchema: z.ZodObject<{
|
|
2190
1824
|
query: z.ZodString;
|
|
2191
1825
|
maxResults: z.ZodDefault<z.ZodNumber>;
|
|
@@ -2219,15 +1853,15 @@ export declare class AgentBuilderDefaults {
|
|
|
2219
1853
|
publishDate: z.ZodOptional<z.ZodString>;
|
|
2220
1854
|
relevanceScore: z.ZodOptional<z.ZodNumber>;
|
|
2221
1855
|
}, "strip", z.ZodTypeAny, {
|
|
2222
|
-
title: string;
|
|
2223
1856
|
url: string;
|
|
1857
|
+
title: string;
|
|
2224
1858
|
snippet: string;
|
|
2225
1859
|
domain: string;
|
|
2226
1860
|
publishDate?: string | undefined;
|
|
2227
1861
|
relevanceScore?: number | undefined;
|
|
2228
1862
|
}, {
|
|
2229
|
-
title: string;
|
|
2230
1863
|
url: string;
|
|
1864
|
+
title: string;
|
|
2231
1865
|
snippet: string;
|
|
2232
1866
|
domain: string;
|
|
2233
1867
|
publishDate?: string | undefined;
|
|
@@ -2236,12 +1870,12 @@ export declare class AgentBuilderDefaults {
|
|
|
2236
1870
|
totalResults: z.ZodNumber;
|
|
2237
1871
|
searchTime: z.ZodNumber;
|
|
2238
1872
|
suggestions: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
2239
|
-
|
|
1873
|
+
errorMessage: z.ZodOptional<z.ZodString>;
|
|
2240
1874
|
}, "strip", z.ZodTypeAny, {
|
|
2241
1875
|
success: boolean;
|
|
2242
1876
|
results: {
|
|
2243
|
-
title: string;
|
|
2244
1877
|
url: string;
|
|
1878
|
+
title: string;
|
|
2245
1879
|
snippet: string;
|
|
2246
1880
|
domain: string;
|
|
2247
1881
|
publishDate?: string | undefined;
|
|
@@ -2250,13 +1884,13 @@ export declare class AgentBuilderDefaults {
|
|
|
2250
1884
|
query: string;
|
|
2251
1885
|
totalResults: number;
|
|
2252
1886
|
searchTime: number;
|
|
2253
|
-
|
|
1887
|
+
errorMessage?: string | undefined;
|
|
2254
1888
|
suggestions?: string[] | undefined;
|
|
2255
1889
|
}, {
|
|
2256
1890
|
success: boolean;
|
|
2257
1891
|
results: {
|
|
2258
|
-
title: string;
|
|
2259
1892
|
url: string;
|
|
1893
|
+
title: string;
|
|
2260
1894
|
snippet: string;
|
|
2261
1895
|
domain: string;
|
|
2262
1896
|
publishDate?: string | undefined;
|
|
@@ -2265,31 +1899,34 @@ export declare class AgentBuilderDefaults {
|
|
|
2265
1899
|
query: string;
|
|
2266
1900
|
totalResults: number;
|
|
2267
1901
|
searchTime: number;
|
|
2268
|
-
|
|
1902
|
+
errorMessage?: string | undefined;
|
|
2269
1903
|
suggestions?: string[] | undefined;
|
|
2270
1904
|
}>;
|
|
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, {
|
|
1905
|
+
execute: (inputData: {
|
|
2279
1906
|
query: string;
|
|
2280
1907
|
maxResults: number;
|
|
2281
1908
|
region: string;
|
|
2282
1909
|
language: string;
|
|
2283
1910
|
includeImages: boolean;
|
|
2284
1911
|
dateRange: "day" | "week" | "month" | "year" | "all";
|
|
2285
|
-
}, {
|
|
1912
|
+
}, context?: import("@mastra/core/tools").ToolExecutionContext<any, any> | undefined) => Promise<{
|
|
1913
|
+
success: boolean;
|
|
1914
|
+
results: {
|
|
1915
|
+
url: string;
|
|
1916
|
+
title: string;
|
|
1917
|
+
snippet: string;
|
|
1918
|
+
domain: string;
|
|
1919
|
+
publishDate?: string | undefined;
|
|
1920
|
+
relevanceScore?: number | undefined;
|
|
1921
|
+
}[];
|
|
2286
1922
|
query: string;
|
|
2287
|
-
|
|
2288
|
-
|
|
2289
|
-
|
|
2290
|
-
|
|
2291
|
-
|
|
2292
|
-
|
|
1923
|
+
totalResults: number;
|
|
1924
|
+
searchTime: number;
|
|
1925
|
+
errorMessage?: string | undefined;
|
|
1926
|
+
suggestions?: string[] | undefined;
|
|
1927
|
+
} & {
|
|
1928
|
+
error?: never;
|
|
1929
|
+
}>;
|
|
2293
1930
|
};
|
|
2294
1931
|
attemptCompletion: import("@mastra/core/tools").Tool<z.ZodObject<{
|
|
2295
1932
|
summary: z.ZodString;
|
|
@@ -2361,62 +1998,7 @@ export declare class AgentBuilderDefaults {
|
|
|
2361
1998
|
summary: string;
|
|
2362
1999
|
completionId: string;
|
|
2363
2000
|
confidence: number;
|
|
2364
|
-
}>, 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
|
-
}>>> & {
|
|
2001
|
+
}>, any, any, import("@mastra/core/tools").ToolExecutionContext<any, any>, "attempt-completion"> & {
|
|
2420
2002
|
inputSchema: z.ZodObject<{
|
|
2421
2003
|
summary: z.ZodString;
|
|
2422
2004
|
changes: z.ZodArray<z.ZodObject<{
|
|
@@ -2489,36 +2071,7 @@ export declare class AgentBuilderDefaults {
|
|
|
2489
2071
|
completionId: string;
|
|
2490
2072
|
confidence: number;
|
|
2491
2073
|
}>;
|
|
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, {
|
|
2074
|
+
execute: (inputData: {
|
|
2522
2075
|
validation: {
|
|
2523
2076
|
testsRun: boolean;
|
|
2524
2077
|
buildsSuccessfully: boolean;
|
|
@@ -2531,20 +2084,14 @@ export declare class AgentBuilderDefaults {
|
|
|
2531
2084
|
path?: string | undefined;
|
|
2532
2085
|
}[];
|
|
2533
2086
|
nextSteps?: string[] | undefined;
|
|
2534
|
-
}, {
|
|
2535
|
-
|
|
2536
|
-
testsRun?: boolean | undefined;
|
|
2537
|
-
buildsSuccessfully?: boolean | undefined;
|
|
2538
|
-
manualTestingRequired?: boolean | undefined;
|
|
2539
|
-
};
|
|
2087
|
+
}, context?: import("@mastra/core/tools").ToolExecutionContext<any, any> | undefined) => Promise<{
|
|
2088
|
+
status: "completed" | "needs_review" | "needs_testing";
|
|
2540
2089
|
summary: string;
|
|
2541
|
-
|
|
2542
|
-
|
|
2543
|
-
|
|
2544
|
-
|
|
2545
|
-
|
|
2546
|
-
nextSteps?: string[] | undefined;
|
|
2547
|
-
}>>, options: import("ai").ToolExecutionOptions | import("ai").ToolCallOptions) => Promise<any>;
|
|
2090
|
+
completionId: string;
|
|
2091
|
+
confidence: number;
|
|
2092
|
+
} & {
|
|
2093
|
+
error?: never;
|
|
2094
|
+
}>;
|
|
2548
2095
|
};
|
|
2549
2096
|
manageProject: import("@mastra/core/tools").Tool<z.ZodObject<{
|
|
2550
2097
|
action: z.ZodEnum<["create", "install", "upgrade"]>;
|
|
@@ -2580,11 +2127,11 @@ export declare class AgentBuilderDefaults {
|
|
|
2580
2127
|
warnings: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
2581
2128
|
message: z.ZodOptional<z.ZodString>;
|
|
2582
2129
|
details: z.ZodOptional<z.ZodString>;
|
|
2583
|
-
|
|
2130
|
+
errorMessage: z.ZodOptional<z.ZodString>;
|
|
2584
2131
|
}, "strip", z.ZodTypeAny, {
|
|
2585
2132
|
success: boolean;
|
|
2586
2133
|
message?: string | undefined;
|
|
2587
|
-
|
|
2134
|
+
errorMessage?: string | undefined;
|
|
2588
2135
|
installed?: string[] | undefined;
|
|
2589
2136
|
upgraded?: string[] | undefined;
|
|
2590
2137
|
warnings?: string[] | undefined;
|
|
@@ -2592,39 +2139,12 @@ export declare class AgentBuilderDefaults {
|
|
|
2592
2139
|
}, {
|
|
2593
2140
|
success: boolean;
|
|
2594
2141
|
message?: string | undefined;
|
|
2595
|
-
|
|
2142
|
+
errorMessage?: string | undefined;
|
|
2596
2143
|
installed?: string[] | undefined;
|
|
2597
2144
|
upgraded?: string[] | undefined;
|
|
2598
2145
|
warnings?: string[] | undefined;
|
|
2599
2146
|
details?: string | undefined;
|
|
2600
|
-
}>, 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
|
-
}>>> & {
|
|
2147
|
+
}>, any, any, import("@mastra/core/tools").ToolExecutionContext<any, any>, "manage-project"> & {
|
|
2628
2148
|
inputSchema: z.ZodObject<{
|
|
2629
2149
|
action: z.ZodEnum<["create", "install", "upgrade"]>;
|
|
2630
2150
|
features: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
@@ -2660,11 +2180,11 @@ export declare class AgentBuilderDefaults {
|
|
|
2660
2180
|
warnings: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
2661
2181
|
message: z.ZodOptional<z.ZodString>;
|
|
2662
2182
|
details: z.ZodOptional<z.ZodString>;
|
|
2663
|
-
|
|
2183
|
+
errorMessage: z.ZodOptional<z.ZodString>;
|
|
2664
2184
|
}, "strip", z.ZodTypeAny, {
|
|
2665
2185
|
success: boolean;
|
|
2666
2186
|
message?: string | undefined;
|
|
2667
|
-
|
|
2187
|
+
errorMessage?: string | undefined;
|
|
2668
2188
|
installed?: string[] | undefined;
|
|
2669
2189
|
upgraded?: string[] | undefined;
|
|
2670
2190
|
warnings?: string[] | undefined;
|
|
@@ -2672,49 +2192,39 @@ export declare class AgentBuilderDefaults {
|
|
|
2672
2192
|
}, {
|
|
2673
2193
|
success: boolean;
|
|
2674
2194
|
message?: string | undefined;
|
|
2675
|
-
|
|
2195
|
+
errorMessage?: string | undefined;
|
|
2676
2196
|
installed?: string[] | undefined;
|
|
2677
2197
|
upgraded?: string[] | undefined;
|
|
2678
2198
|
warnings?: string[] | undefined;
|
|
2679
2199
|
details?: string | undefined;
|
|
2680
2200
|
}>;
|
|
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, {
|
|
2201
|
+
execute: (inputData: {
|
|
2695
2202
|
action: "create" | "install" | "upgrade";
|
|
2696
2203
|
features?: string[] | undefined;
|
|
2697
2204
|
packages?: {
|
|
2698
2205
|
name: string;
|
|
2699
2206
|
version?: string | undefined;
|
|
2700
2207
|
}[] | undefined;
|
|
2701
|
-
}, {
|
|
2702
|
-
|
|
2703
|
-
|
|
2704
|
-
|
|
2705
|
-
|
|
2706
|
-
|
|
2707
|
-
|
|
2708
|
-
|
|
2208
|
+
}, context?: import("@mastra/core/tools").ToolExecutionContext<any, any> | undefined) => Promise<{
|
|
2209
|
+
success: boolean;
|
|
2210
|
+
message?: string | undefined;
|
|
2211
|
+
errorMessage?: string | undefined;
|
|
2212
|
+
installed?: string[] | undefined;
|
|
2213
|
+
upgraded?: string[] | undefined;
|
|
2214
|
+
warnings?: string[] | undefined;
|
|
2215
|
+
details?: string | undefined;
|
|
2216
|
+
} & {
|
|
2217
|
+
error?: never;
|
|
2218
|
+
}>;
|
|
2709
2219
|
};
|
|
2710
2220
|
manageServer: import("@mastra/core/tools").Tool<z.ZodObject<{
|
|
2711
2221
|
action: z.ZodEnum<["start", "stop", "restart", "status"]>;
|
|
2712
2222
|
port: z.ZodDefault<z.ZodOptional<z.ZodNumber>>;
|
|
2713
2223
|
}, "strip", z.ZodTypeAny, {
|
|
2714
|
-
action: "status" | "
|
|
2224
|
+
action: "status" | "stop" | "start" | "restart";
|
|
2715
2225
|
port: number;
|
|
2716
2226
|
}, {
|
|
2717
|
-
action: "status" | "
|
|
2227
|
+
action: "status" | "stop" | "start" | "restart";
|
|
2718
2228
|
port?: number | undefined;
|
|
2719
2229
|
}>, z.ZodObject<{
|
|
2720
2230
|
success: z.ZodBoolean;
|
|
@@ -2724,43 +2234,34 @@ export declare class AgentBuilderDefaults {
|
|
|
2724
2234
|
url: z.ZodOptional<z.ZodString>;
|
|
2725
2235
|
message: z.ZodOptional<z.ZodString>;
|
|
2726
2236
|
stdout: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
2727
|
-
|
|
2237
|
+
errorMessage: z.ZodOptional<z.ZodString>;
|
|
2728
2238
|
}, "strip", z.ZodTypeAny, {
|
|
2729
2239
|
status: "unknown" | "running" | "stopped" | "starting" | "stopping";
|
|
2730
2240
|
success: boolean;
|
|
2731
2241
|
message?: string | undefined;
|
|
2732
|
-
error?: string | undefined;
|
|
2733
2242
|
stdout?: string[] | undefined;
|
|
2734
2243
|
url?: string | undefined;
|
|
2244
|
+
errorMessage?: string | undefined;
|
|
2735
2245
|
port?: number | undefined;
|
|
2736
2246
|
pid?: number | undefined;
|
|
2737
2247
|
}, {
|
|
2738
2248
|
status: "unknown" | "running" | "stopped" | "starting" | "stopping";
|
|
2739
2249
|
success: boolean;
|
|
2740
2250
|
message?: string | undefined;
|
|
2741
|
-
error?: string | undefined;
|
|
2742
2251
|
stdout?: string[] | undefined;
|
|
2743
2252
|
url?: string | undefined;
|
|
2253
|
+
errorMessage?: string | undefined;
|
|
2744
2254
|
port?: number | undefined;
|
|
2745
2255
|
pid?: number | undefined;
|
|
2746
|
-
}>, 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
|
-
}>>> & {
|
|
2256
|
+
}>, any, any, import("@mastra/core/tools").ToolExecutionContext<any, any>, "manage-server"> & {
|
|
2756
2257
|
inputSchema: z.ZodObject<{
|
|
2757
2258
|
action: z.ZodEnum<["start", "stop", "restart", "status"]>;
|
|
2758
2259
|
port: z.ZodDefault<z.ZodOptional<z.ZodNumber>>;
|
|
2759
2260
|
}, "strip", z.ZodTypeAny, {
|
|
2760
|
-
action: "status" | "
|
|
2261
|
+
action: "status" | "stop" | "start" | "restart";
|
|
2761
2262
|
port: number;
|
|
2762
2263
|
}, {
|
|
2763
|
-
action: "status" | "
|
|
2264
|
+
action: "status" | "stop" | "start" | "restart";
|
|
2764
2265
|
port?: number | undefined;
|
|
2765
2266
|
}>;
|
|
2766
2267
|
outputSchema: z.ZodObject<{
|
|
@@ -2771,36 +2272,41 @@ export declare class AgentBuilderDefaults {
|
|
|
2771
2272
|
url: z.ZodOptional<z.ZodString>;
|
|
2772
2273
|
message: z.ZodOptional<z.ZodString>;
|
|
2773
2274
|
stdout: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
2774
|
-
|
|
2275
|
+
errorMessage: z.ZodOptional<z.ZodString>;
|
|
2775
2276
|
}, "strip", z.ZodTypeAny, {
|
|
2776
2277
|
status: "unknown" | "running" | "stopped" | "starting" | "stopping";
|
|
2777
2278
|
success: boolean;
|
|
2778
2279
|
message?: string | undefined;
|
|
2779
|
-
error?: string | undefined;
|
|
2780
2280
|
stdout?: string[] | undefined;
|
|
2781
2281
|
url?: string | undefined;
|
|
2282
|
+
errorMessage?: string | undefined;
|
|
2782
2283
|
port?: number | undefined;
|
|
2783
2284
|
pid?: number | undefined;
|
|
2784
2285
|
}, {
|
|
2785
2286
|
status: "unknown" | "running" | "stopped" | "starting" | "stopping";
|
|
2786
2287
|
success: boolean;
|
|
2787
2288
|
message?: string | undefined;
|
|
2788
|
-
error?: string | undefined;
|
|
2789
2289
|
stdout?: string[] | undefined;
|
|
2790
2290
|
url?: string | undefined;
|
|
2291
|
+
errorMessage?: string | undefined;
|
|
2791
2292
|
port?: number | undefined;
|
|
2792
2293
|
pid?: number | undefined;
|
|
2793
2294
|
}>;
|
|
2794
|
-
execute: (
|
|
2795
|
-
action:
|
|
2796
|
-
port: z.ZodDefault<z.ZodOptional<z.ZodNumber>>;
|
|
2797
|
-
}, "strip", z.ZodTypeAny, {
|
|
2798
|
-
action: "status" | "start" | "stop" | "restart";
|
|
2295
|
+
execute: (inputData: {
|
|
2296
|
+
action: "status" | "stop" | "start" | "restart";
|
|
2799
2297
|
port: number;
|
|
2800
|
-
}, {
|
|
2801
|
-
|
|
2298
|
+
}, context?: import("@mastra/core/tools").ToolExecutionContext<any, any> | undefined) => Promise<{
|
|
2299
|
+
status: "unknown" | "running" | "stopped" | "starting" | "stopping";
|
|
2300
|
+
success: boolean;
|
|
2301
|
+
message?: string | undefined;
|
|
2302
|
+
stdout?: string[] | undefined;
|
|
2303
|
+
url?: string | undefined;
|
|
2304
|
+
errorMessage?: string | undefined;
|
|
2802
2305
|
port?: number | undefined;
|
|
2803
|
-
|
|
2306
|
+
pid?: number | undefined;
|
|
2307
|
+
} & {
|
|
2308
|
+
error?: never;
|
|
2309
|
+
}>;
|
|
2804
2310
|
};
|
|
2805
2311
|
httpRequest: import("@mastra/core/tools").Tool<z.ZodObject<{
|
|
2806
2312
|
method: z.ZodEnum<["GET", "POST", "PUT", "DELETE", "PATCH"]>;
|
|
@@ -2810,18 +2316,18 @@ export declare class AgentBuilderDefaults {
|
|
|
2810
2316
|
body: z.ZodOptional<z.ZodAny>;
|
|
2811
2317
|
timeout: z.ZodDefault<z.ZodOptional<z.ZodNumber>>;
|
|
2812
2318
|
}, "strip", z.ZodTypeAny, {
|
|
2813
|
-
timeout: number;
|
|
2814
2319
|
url: string;
|
|
2320
|
+
timeout: number;
|
|
2815
2321
|
method: "GET" | "POST" | "PUT" | "DELETE" | "PATCH";
|
|
2816
|
-
baseUrl?: string | undefined;
|
|
2817
2322
|
headers?: Record<string, string> | undefined;
|
|
2323
|
+
baseUrl?: string | undefined;
|
|
2818
2324
|
body?: any;
|
|
2819
2325
|
}, {
|
|
2820
2326
|
url: string;
|
|
2821
2327
|
method: "GET" | "POST" | "PUT" | "DELETE" | "PATCH";
|
|
2328
|
+
headers?: Record<string, string> | undefined;
|
|
2822
2329
|
timeout?: number | undefined;
|
|
2823
2330
|
baseUrl?: string | undefined;
|
|
2824
|
-
headers?: Record<string, string> | undefined;
|
|
2825
2331
|
body?: any;
|
|
2826
2332
|
}>, z.ZodObject<{
|
|
2827
2333
|
success: z.ZodBoolean;
|
|
@@ -2829,7 +2335,7 @@ export declare class AgentBuilderDefaults {
|
|
|
2829
2335
|
statusText: z.ZodOptional<z.ZodString>;
|
|
2830
2336
|
headers: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
2831
2337
|
data: z.ZodOptional<z.ZodAny>;
|
|
2832
|
-
|
|
2338
|
+
errorMessage: z.ZodOptional<z.ZodString>;
|
|
2833
2339
|
url: z.ZodString;
|
|
2834
2340
|
method: z.ZodString;
|
|
2835
2341
|
}, "strip", z.ZodTypeAny, {
|
|
@@ -2837,41 +2343,20 @@ export declare class AgentBuilderDefaults {
|
|
|
2837
2343
|
url: string;
|
|
2838
2344
|
method: string;
|
|
2839
2345
|
status?: number | undefined;
|
|
2840
|
-
error?: string | undefined;
|
|
2841
2346
|
data?: any;
|
|
2842
2347
|
headers?: Record<string, string> | undefined;
|
|
2348
|
+
errorMessage?: string | undefined;
|
|
2843
2349
|
statusText?: string | undefined;
|
|
2844
2350
|
}, {
|
|
2845
2351
|
success: boolean;
|
|
2846
2352
|
url: string;
|
|
2847
2353
|
method: string;
|
|
2848
2354
|
status?: number | undefined;
|
|
2849
|
-
error?: string | undefined;
|
|
2850
2355
|
data?: any;
|
|
2851
2356
|
headers?: Record<string, string> | undefined;
|
|
2357
|
+
errorMessage?: string | undefined;
|
|
2852
2358
|
statusText?: string | undefined;
|
|
2853
|
-
}>, 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
|
-
}>>> & {
|
|
2359
|
+
}>, any, any, import("@mastra/core/tools").ToolExecutionContext<any, any>, "http-request"> & {
|
|
2875
2360
|
inputSchema: z.ZodObject<{
|
|
2876
2361
|
method: z.ZodEnum<["GET", "POST", "PUT", "DELETE", "PATCH"]>;
|
|
2877
2362
|
url: z.ZodString;
|
|
@@ -2880,18 +2365,18 @@ export declare class AgentBuilderDefaults {
|
|
|
2880
2365
|
body: z.ZodOptional<z.ZodAny>;
|
|
2881
2366
|
timeout: z.ZodDefault<z.ZodOptional<z.ZodNumber>>;
|
|
2882
2367
|
}, "strip", z.ZodTypeAny, {
|
|
2883
|
-
timeout: number;
|
|
2884
2368
|
url: string;
|
|
2369
|
+
timeout: number;
|
|
2885
2370
|
method: "GET" | "POST" | "PUT" | "DELETE" | "PATCH";
|
|
2886
|
-
baseUrl?: string | undefined;
|
|
2887
2371
|
headers?: Record<string, string> | undefined;
|
|
2372
|
+
baseUrl?: string | undefined;
|
|
2888
2373
|
body?: any;
|
|
2889
2374
|
}, {
|
|
2890
2375
|
url: string;
|
|
2891
2376
|
method: "GET" | "POST" | "PUT" | "DELETE" | "PATCH";
|
|
2377
|
+
headers?: Record<string, string> | undefined;
|
|
2892
2378
|
timeout?: number | undefined;
|
|
2893
2379
|
baseUrl?: string | undefined;
|
|
2894
|
-
headers?: Record<string, string> | undefined;
|
|
2895
2380
|
body?: any;
|
|
2896
2381
|
}>;
|
|
2897
2382
|
outputSchema: z.ZodObject<{
|
|
@@ -2900,7 +2385,7 @@ export declare class AgentBuilderDefaults {
|
|
|
2900
2385
|
statusText: z.ZodOptional<z.ZodString>;
|
|
2901
2386
|
headers: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
2902
2387
|
data: z.ZodOptional<z.ZodAny>;
|
|
2903
|
-
|
|
2388
|
+
errorMessage: z.ZodOptional<z.ZodString>;
|
|
2904
2389
|
url: z.ZodString;
|
|
2905
2390
|
method: z.ZodString;
|
|
2906
2391
|
}, "strip", z.ZodTypeAny, {
|
|
@@ -2908,42 +2393,39 @@ export declare class AgentBuilderDefaults {
|
|
|
2908
2393
|
url: string;
|
|
2909
2394
|
method: string;
|
|
2910
2395
|
status?: number | undefined;
|
|
2911
|
-
error?: string | undefined;
|
|
2912
2396
|
data?: any;
|
|
2913
2397
|
headers?: Record<string, string> | undefined;
|
|
2398
|
+
errorMessage?: string | undefined;
|
|
2914
2399
|
statusText?: string | undefined;
|
|
2915
2400
|
}, {
|
|
2916
2401
|
success: boolean;
|
|
2917
2402
|
url: string;
|
|
2918
2403
|
method: string;
|
|
2919
2404
|
status?: number | undefined;
|
|
2920
|
-
error?: string | undefined;
|
|
2921
2405
|
data?: any;
|
|
2922
2406
|
headers?: Record<string, string> | undefined;
|
|
2407
|
+
errorMessage?: string | undefined;
|
|
2923
2408
|
statusText?: string | undefined;
|
|
2924
2409
|
}>;
|
|
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;
|
|
2410
|
+
execute: (inputData: {
|
|
2934
2411
|
url: string;
|
|
2412
|
+
timeout: number;
|
|
2935
2413
|
method: "GET" | "POST" | "PUT" | "DELETE" | "PATCH";
|
|
2936
|
-
baseUrl?: string | undefined;
|
|
2937
2414
|
headers?: Record<string, string> | undefined;
|
|
2415
|
+
baseUrl?: string | undefined;
|
|
2938
2416
|
body?: any;
|
|
2939
|
-
}, {
|
|
2417
|
+
}, context?: import("@mastra/core/tools").ToolExecutionContext<any, any> | undefined) => Promise<{
|
|
2418
|
+
success: boolean;
|
|
2940
2419
|
url: string;
|
|
2941
|
-
method:
|
|
2942
|
-
|
|
2943
|
-
|
|
2420
|
+
method: string;
|
|
2421
|
+
status?: number | undefined;
|
|
2422
|
+
data?: any;
|
|
2944
2423
|
headers?: Record<string, string> | undefined;
|
|
2945
|
-
|
|
2946
|
-
|
|
2424
|
+
errorMessage?: string | undefined;
|
|
2425
|
+
statusText?: string | undefined;
|
|
2426
|
+
} & {
|
|
2427
|
+
error?: never;
|
|
2428
|
+
}>;
|
|
2947
2429
|
};
|
|
2948
2430
|
}>;
|
|
2949
2431
|
/**
|
|
@@ -2957,7 +2439,7 @@ export declare class AgentBuilderDefaults {
|
|
|
2957
2439
|
/**
|
|
2958
2440
|
* Get tools for a specific mode
|
|
2959
2441
|
*/
|
|
2960
|
-
static
|
|
2442
|
+
static listToolsForMode(projectPath: string, mode?: 'template' | 'code-editor'): Promise<Record<string, any>>;
|
|
2961
2443
|
/**
|
|
2962
2444
|
* Create a new Mastra project using create-mastra CLI
|
|
2963
2445
|
*/
|
|
@@ -2969,13 +2451,13 @@ export declare class AgentBuilderDefaults {
|
|
|
2969
2451
|
projectPath: string;
|
|
2970
2452
|
message: string;
|
|
2971
2453
|
details: string;
|
|
2972
|
-
|
|
2454
|
+
errorMessage: string;
|
|
2973
2455
|
} | {
|
|
2974
2456
|
success: boolean;
|
|
2975
2457
|
message: string;
|
|
2976
2458
|
projectPath?: undefined;
|
|
2977
2459
|
details?: undefined;
|
|
2978
|
-
|
|
2460
|
+
errorMessage?: undefined;
|
|
2979
2461
|
}>;
|
|
2980
2462
|
/**
|
|
2981
2463
|
* Install packages using the detected package manager
|
|
@@ -3034,22 +2516,22 @@ export declare class AgentBuilderDefaults {
|
|
|
3034
2516
|
}): Promise<{
|
|
3035
2517
|
success: boolean;
|
|
3036
2518
|
status: "error";
|
|
3037
|
-
|
|
2519
|
+
errorMessage: string;
|
|
3038
2520
|
message?: undefined;
|
|
3039
2521
|
} | {
|
|
3040
2522
|
success: boolean;
|
|
3041
2523
|
status: "stopped";
|
|
3042
2524
|
message: string;
|
|
3043
|
-
|
|
2525
|
+
errorMessage?: undefined;
|
|
3044
2526
|
} | {
|
|
3045
2527
|
success: boolean;
|
|
3046
2528
|
status: "unknown";
|
|
3047
2529
|
message: string;
|
|
3048
|
-
|
|
2530
|
+
errorMessage: string;
|
|
3049
2531
|
} | {
|
|
3050
2532
|
success: boolean;
|
|
3051
2533
|
status: "unknown";
|
|
3052
|
-
|
|
2534
|
+
errorMessage: string;
|
|
3053
2535
|
message?: undefined;
|
|
3054
2536
|
}>;
|
|
3055
2537
|
/**
|
|
@@ -3236,12 +2718,12 @@ export declare class AgentBuilderDefaults {
|
|
|
3236
2718
|
data: any;
|
|
3237
2719
|
url: string;
|
|
3238
2720
|
method: "GET" | "POST" | "PUT" | "DELETE" | "PATCH";
|
|
3239
|
-
|
|
2721
|
+
errorMessage?: undefined;
|
|
3240
2722
|
} | {
|
|
3241
2723
|
success: boolean;
|
|
3242
2724
|
url: string;
|
|
3243
2725
|
method: "GET" | "POST" | "PUT" | "DELETE" | "PATCH";
|
|
3244
|
-
|
|
2726
|
+
errorMessage: string;
|
|
3245
2727
|
status?: undefined;
|
|
3246
2728
|
statusText?: undefined;
|
|
3247
2729
|
headers?: undefined;
|
|
@@ -3303,7 +2785,7 @@ export declare class AgentBuilderDefaults {
|
|
|
3303
2785
|
}): Promise<{
|
|
3304
2786
|
success: boolean;
|
|
3305
2787
|
message: string;
|
|
3306
|
-
|
|
2788
|
+
errorMessage: string;
|
|
3307
2789
|
linesReplaced?: undefined;
|
|
3308
2790
|
backup?: undefined;
|
|
3309
2791
|
} | {
|
|
@@ -3311,7 +2793,7 @@ export declare class AgentBuilderDefaults {
|
|
|
3311
2793
|
message: string;
|
|
3312
2794
|
linesReplaced: number;
|
|
3313
2795
|
backup: string | undefined;
|
|
3314
|
-
|
|
2796
|
+
errorMessage?: undefined;
|
|
3315
2797
|
}>;
|
|
3316
2798
|
/**
|
|
3317
2799
|
* Show file lines with line numbers for debugging
|
|
@@ -3331,13 +2813,13 @@ export declare class AgentBuilderDefaults {
|
|
|
3331
2813
|
}[];
|
|
3332
2814
|
totalLines: number;
|
|
3333
2815
|
message: string;
|
|
3334
|
-
|
|
2816
|
+
errorMessage?: undefined;
|
|
3335
2817
|
} | {
|
|
3336
2818
|
success: boolean;
|
|
3337
2819
|
lines: never[];
|
|
3338
2820
|
totalLines: number;
|
|
3339
2821
|
message: string;
|
|
3340
|
-
|
|
2822
|
+
errorMessage: string;
|
|
3341
2823
|
}>;
|
|
3342
2824
|
/**
|
|
3343
2825
|
* Signal task completion
|
|
@@ -3418,10 +2900,10 @@ export declare class AgentBuilderDefaults {
|
|
|
3418
2900
|
encoding: string;
|
|
3419
2901
|
lastModified: string;
|
|
3420
2902
|
};
|
|
3421
|
-
|
|
2903
|
+
errorMessage?: undefined;
|
|
3422
2904
|
} | {
|
|
3423
2905
|
success: boolean;
|
|
3424
|
-
|
|
2906
|
+
errorMessage: string;
|
|
3425
2907
|
content?: undefined;
|
|
3426
2908
|
lines?: undefined;
|
|
3427
2909
|
metadata?: undefined;
|
|
@@ -3440,12 +2922,12 @@ export declare class AgentBuilderDefaults {
|
|
|
3440
2922
|
filePath: string;
|
|
3441
2923
|
bytesWritten: number;
|
|
3442
2924
|
message: string;
|
|
3443
|
-
|
|
2925
|
+
errorMessage?: undefined;
|
|
3444
2926
|
} | {
|
|
3445
2927
|
success: boolean;
|
|
3446
2928
|
filePath: string;
|
|
3447
2929
|
message: string;
|
|
3448
|
-
|
|
2930
|
+
errorMessage: string;
|
|
3449
2931
|
bytesWritten?: undefined;
|
|
3450
2932
|
}>;
|
|
3451
2933
|
/**
|
|
@@ -3472,14 +2954,14 @@ export declare class AgentBuilderDefaults {
|
|
|
3472
2954
|
totalItems: number;
|
|
3473
2955
|
path: string;
|
|
3474
2956
|
message: string;
|
|
3475
|
-
|
|
2957
|
+
errorMessage?: undefined;
|
|
3476
2958
|
} | {
|
|
3477
2959
|
success: boolean;
|
|
3478
2960
|
items: never[];
|
|
3479
2961
|
totalItems: number;
|
|
3480
2962
|
path: string;
|
|
3481
2963
|
message: string;
|
|
3482
|
-
|
|
2964
|
+
errorMessage: string;
|
|
3483
2965
|
}>;
|
|
3484
2966
|
/**
|
|
3485
2967
|
* Execute shell commands with proper error handling
|
|
@@ -3499,7 +2981,7 @@ export declare class AgentBuilderDefaults {
|
|
|
3499
2981
|
command: string;
|
|
3500
2982
|
workingDirectory: string | undefined;
|
|
3501
2983
|
executionTime: number;
|
|
3502
|
-
|
|
2984
|
+
errorMessage?: undefined;
|
|
3503
2985
|
} | {
|
|
3504
2986
|
success: boolean;
|
|
3505
2987
|
exitCode: any;
|
|
@@ -3508,7 +2990,7 @@ export declare class AgentBuilderDefaults {
|
|
|
3508
2990
|
command: string;
|
|
3509
2991
|
workingDirectory: string | undefined;
|
|
3510
2992
|
executionTime: number;
|
|
3511
|
-
|
|
2993
|
+
errorMessage: string;
|
|
3512
2994
|
}>;
|
|
3513
2995
|
/**
|
|
3514
2996
|
* Web search using a simple search approach
|
|
@@ -3534,14 +3016,14 @@ export declare class AgentBuilderDefaults {
|
|
|
3534
3016
|
totalResults: number;
|
|
3535
3017
|
searchTime: number;
|
|
3536
3018
|
suggestions: any;
|
|
3537
|
-
|
|
3019
|
+
errorMessage?: undefined;
|
|
3538
3020
|
} | {
|
|
3539
3021
|
success: boolean;
|
|
3540
3022
|
query: string;
|
|
3541
3023
|
results: never[];
|
|
3542
3024
|
totalResults: number;
|
|
3543
3025
|
searchTime: number;
|
|
3544
|
-
|
|
3026
|
+
errorMessage: string;
|
|
3545
3027
|
suggestions?: undefined;
|
|
3546
3028
|
}>;
|
|
3547
3029
|
}
|