@mastra/agent-builder 1.1.31 → 1.1.32-alpha.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.
@@ -1,10 +1,10 @@
1
1
  export declare const restrictedTaskManager: import("@mastra/core/tools").Tool<{
2
- action: "update" | "list" | "complete";
2
+ action: "complete" | "list" | "update";
3
3
  tasks?: {
4
4
  id: string;
5
- status: "pending" | "in_progress" | "completed" | "blocked";
6
5
  content?: string | undefined;
7
- priority?: "high" | "medium" | "low" | undefined;
6
+ status: "blocked" | "completed" | "in_progress" | "pending";
7
+ priority?: "high" | "low" | "medium" | undefined;
8
8
  dependencies?: string[] | undefined;
9
9
  notes?: string | undefined;
10
10
  }[] | undefined;
@@ -16,10 +16,10 @@ export declare const restrictedTaskManager: import("@mastra/core/tools").Tool<{
16
16
  content: string;
17
17
  status: string;
18
18
  priority: string;
19
- createdAt: string;
20
- updatedAt: string;
21
19
  dependencies?: string[] | undefined;
22
20
  notes?: string | undefined;
21
+ createdAt: string;
22
+ updatedAt: string;
23
23
  }[];
24
24
  message: string;
25
25
  }, unknown, unknown, import("@mastra/core/tools").ToolExecutionContext<unknown, unknown, unknown>, "task-manager", unknown>;
@@ -1,5 +1,127 @@
1
- export declare const workflowBuilderWorkflow: import("@mastra/core/workflows").Workflow<import("@mastra/core/workflows").DefaultEngineType, (import("@mastra/core/workflows").Workflow<import("@mastra/core/workflows").DefaultEngineType, (import("@mastra/core/workflows").Step<"planning-iteration", unknown, {
1
+ export declare const workflowBuilderWorkflow: import("@mastra/core/workflows").Workflow<import("@mastra/core/workflows").DefaultEngineType, (import("@mastra/core/workflows").Step<"project-discovery", unknown, {
2
+ success: boolean;
3
+ workflows: {
4
+ name: string;
5
+ file: string;
6
+ description?: string | undefined;
7
+ inputSchema?: any;
8
+ outputSchema?: any;
9
+ steps?: string[] | undefined;
10
+ }[];
11
+ mastraIndexExists: boolean;
12
+ message: string;
13
+ error?: string | undefined;
14
+ }, {
15
+ success: boolean;
16
+ structure: {
17
+ hasWorkflowsDir: boolean;
18
+ hasAgentsDir: boolean;
19
+ hasToolsDir: boolean;
20
+ hasMastraIndex: boolean;
21
+ existingWorkflows: string[];
22
+ existingAgents: string[];
23
+ existingTools: string[];
24
+ };
25
+ dependencies: Record<string, string>;
26
+ message: string;
27
+ error?: string | undefined;
28
+ }, unknown, unknown, import("@mastra/core/workflows").DefaultEngineType, unknown> | import("@mastra/core/workflows").Step<"task-execution", unknown, {
2
29
  action: "create" | "edit";
30
+ workflowName?: string | undefined;
31
+ description?: string | undefined;
32
+ requirements?: string | undefined;
33
+ tasks: {
34
+ id: string;
35
+ content: string;
36
+ status: "blocked" | "completed" | "in_progress" | "pending";
37
+ priority: "high" | "low" | "medium";
38
+ dependencies?: string[] | undefined;
39
+ notes: string;
40
+ }[];
41
+ discoveredWorkflows: any[];
42
+ projectStructure: any;
43
+ research: any;
44
+ projectPath?: string | undefined;
45
+ }, {
46
+ success: boolean;
47
+ filesModified: string[];
48
+ validationResults: {
49
+ passed: boolean;
50
+ errors: string[];
51
+ warnings: string[];
52
+ };
53
+ completedTasks: string[];
54
+ message: string;
55
+ error?: string | undefined;
56
+ }, {
57
+ answers: {
58
+ questionId: string;
59
+ answer: string;
60
+ }[];
61
+ }, {
62
+ questions: {
63
+ id: string;
64
+ question: string;
65
+ type: "boolean" | "choice" | "text";
66
+ options?: string[] | undefined;
67
+ context?: string | undefined;
68
+ }[];
69
+ currentProgress: string;
70
+ completedTasks: string[];
71
+ message: string;
72
+ }, import("@mastra/core/workflows").DefaultEngineType, unknown> | import("@mastra/core/workflows").Step<"workflow-discovery", unknown, {
73
+ workflowName?: string | undefined;
74
+ action: "create" | "edit";
75
+ description?: string | undefined;
76
+ requirements?: string | undefined;
77
+ projectPath?: string | undefined;
78
+ }, {
79
+ success: boolean;
80
+ workflows: {
81
+ name: string;
82
+ file: string;
83
+ description?: string | undefined;
84
+ inputSchema?: any;
85
+ outputSchema?: any;
86
+ steps?: string[] | undefined;
87
+ }[];
88
+ mastraIndexExists: boolean;
89
+ message: string;
90
+ error?: string | undefined;
91
+ }, unknown, unknown, import("@mastra/core/workflows").DefaultEngineType, unknown> | import("@mastra/core/workflows").Step<"workflow-research", unknown, {
92
+ success: boolean;
93
+ structure: {
94
+ hasWorkflowsDir: boolean;
95
+ hasAgentsDir: boolean;
96
+ hasToolsDir: boolean;
97
+ hasMastraIndex: boolean;
98
+ existingWorkflows: string[];
99
+ existingAgents: string[];
100
+ existingTools: string[];
101
+ };
102
+ dependencies: Record<string, string>;
103
+ message: string;
104
+ error?: string | undefined;
105
+ }, {
106
+ success: boolean;
107
+ documentation: {
108
+ workflowPatterns: string[];
109
+ stepExamples: string[];
110
+ bestPractices: string[];
111
+ };
112
+ webResources: {
113
+ title: string;
114
+ url: string;
115
+ snippet: string;
116
+ relevance: number;
117
+ }[];
118
+ message: string;
119
+ error?: string | undefined;
120
+ }, unknown, unknown, import("@mastra/core/workflows").DefaultEngineType, unknown> | import("@mastra/core/workflows").Workflow<import("@mastra/core/workflows").DefaultEngineType, (import("@mastra/core/workflows").Step<"planning-iteration", unknown, {
121
+ action: "create" | "edit";
122
+ workflowName?: string | undefined;
123
+ description?: string | undefined;
124
+ requirements?: string | undefined;
3
125
  discoveredWorkflows: {
4
126
  name: string;
5
127
  file: string;
@@ -39,24 +161,21 @@ export declare const workflowBuilderWorkflow: import("@mastra/core/workflows").W
39
161
  message: string;
40
162
  error?: string | undefined;
41
163
  };
42
- workflowName?: string | undefined;
43
- description?: string | undefined;
44
- requirements?: string | undefined;
45
164
  userAnswers?: Record<string, string> | undefined;
46
165
  }, {
47
166
  success: boolean;
48
167
  tasks: {
49
168
  id: string;
50
169
  content: string;
51
- status: "pending" | "in_progress" | "completed" | "blocked";
52
- priority: "high" | "medium" | "low";
53
- notes: string;
170
+ status: "blocked" | "completed" | "in_progress" | "pending";
171
+ priority: "high" | "low" | "medium";
54
172
  dependencies?: string[] | undefined;
173
+ notes: string;
55
174
  }[];
56
175
  questions: {
57
176
  id: string;
58
177
  question: string;
59
- type: "boolean" | "text" | "choice";
178
+ type: "boolean" | "choice" | "text";
60
179
  options?: string[] | undefined;
61
180
  context?: string | undefined;
62
181
  }[];
@@ -72,7 +191,7 @@ export declare const workflowBuilderWorkflow: import("@mastra/core/workflows").W
72
191
  questions: {
73
192
  id: string;
74
193
  question: string;
75
- type: "boolean" | "text" | "choice";
194
+ type: "boolean" | "choice" | "text";
76
195
  options?: string[] | undefined;
77
196
  context?: string | undefined;
78
197
  }[];
@@ -81,10 +200,10 @@ export declare const workflowBuilderWorkflow: import("@mastra/core/workflows").W
81
200
  tasks: {
82
201
  id: string;
83
202
  content: string;
84
- status: "pending" | "in_progress" | "completed" | "blocked";
85
- priority: "high" | "medium" | "low";
86
- notes: string;
203
+ status: "blocked" | "completed" | "in_progress" | "pending";
204
+ priority: "high" | "low" | "medium";
87
205
  dependencies?: string[] | undefined;
206
+ notes: string;
88
207
  }[];
89
208
  reasoning: string;
90
209
  };
@@ -93,15 +212,15 @@ export declare const workflowBuilderWorkflow: import("@mastra/core/workflows").W
93
212
  tasks: {
94
213
  id: string;
95
214
  content: string;
96
- status: "pending" | "in_progress" | "completed" | "blocked";
97
- priority: "high" | "medium" | "low";
98
- notes: string;
215
+ status: "blocked" | "completed" | "in_progress" | "pending";
216
+ priority: "high" | "low" | "medium";
99
217
  dependencies?: string[] | undefined;
218
+ notes: string;
100
219
  }[];
101
220
  questions: {
102
221
  id: string;
103
222
  question: string;
104
- type: "boolean" | "text" | "choice";
223
+ type: "boolean" | "choice" | "text";
105
224
  options?: string[] | undefined;
106
225
  context?: string | undefined;
107
226
  }[];
@@ -116,10 +235,10 @@ export declare const workflowBuilderWorkflow: import("@mastra/core/workflows").W
116
235
  tasks: {
117
236
  id: string;
118
237
  content: string;
119
- status: "pending" | "in_progress" | "completed" | "blocked";
120
- priority: "high" | "medium" | "low";
121
- notes: string;
238
+ status: "blocked" | "completed" | "in_progress" | "pending";
239
+ priority: "high" | "low" | "medium";
122
240
  dependencies?: string[] | undefined;
241
+ notes: string;
123
242
  }[];
124
243
  message: string;
125
244
  userFeedback?: string | undefined;
@@ -130,15 +249,18 @@ export declare const workflowBuilderWorkflow: import("@mastra/core/workflows").W
130
249
  taskList: {
131
250
  id: string;
132
251
  content: string;
133
- status: "pending" | "in_progress" | "completed" | "blocked";
134
- priority: "high" | "medium" | "low";
135
- notes: string;
252
+ status: "blocked" | "completed" | "in_progress" | "pending";
253
+ priority: "high" | "low" | "medium";
136
254
  dependencies?: string[] | undefined;
255
+ notes: string;
137
256
  }[];
138
257
  summary: string;
139
258
  message: string;
140
259
  }, import("@mastra/core/workflows").DefaultEngineType, unknown>)[], "planning-and-approval", unknown, {
141
260
  action: "create" | "edit";
261
+ workflowName?: string | undefined;
262
+ description?: string | undefined;
263
+ requirements?: string | undefined;
142
264
  discoveredWorkflows: {
143
265
  name: string;
144
266
  file: string;
@@ -178,19 +300,16 @@ export declare const workflowBuilderWorkflow: import("@mastra/core/workflows").W
178
300
  message: string;
179
301
  error?: string | undefined;
180
302
  };
181
- workflowName?: string | undefined;
182
- description?: string | undefined;
183
- requirements?: string | undefined;
184
303
  userAnswers?: Record<string, string> | undefined;
185
304
  }, {
186
305
  approved: boolean;
187
306
  tasks: {
188
307
  id: string;
189
308
  content: string;
190
- status: "pending" | "in_progress" | "completed" | "blocked";
191
- priority: "high" | "medium" | "low";
192
- notes: string;
309
+ status: "blocked" | "completed" | "in_progress" | "pending";
310
+ priority: "high" | "low" | "medium";
193
311
  dependencies?: string[] | undefined;
312
+ notes: string;
194
313
  }[];
195
314
  message: string;
196
315
  userFeedback?: string | undefined;
@@ -199,142 +318,22 @@ export declare const workflowBuilderWorkflow: import("@mastra/core/workflows").W
199
318
  tasks: {
200
319
  id: string;
201
320
  content: string;
202
- status: "pending" | "in_progress" | "completed" | "blocked";
203
- priority: "high" | "medium" | "low";
204
- notes: string;
321
+ status: "blocked" | "completed" | "in_progress" | "pending";
322
+ priority: "high" | "low" | "medium";
205
323
  dependencies?: string[] | undefined;
324
+ notes: string;
206
325
  }[];
207
326
  message: string;
208
327
  userFeedback?: string | undefined;
209
- }, unknown> | import("@mastra/core/workflows").Step<"workflow-discovery", unknown, {
210
- action: "create" | "edit";
328
+ }, unknown>)[], "workflow-builder", unknown, {
211
329
  workflowName?: string | undefined;
212
- description?: string | undefined;
213
- requirements?: string | undefined;
214
- projectPath?: string | undefined;
215
- }, {
216
- success: boolean;
217
- workflows: {
218
- name: string;
219
- file: string;
220
- description?: string | undefined;
221
- inputSchema?: any;
222
- outputSchema?: any;
223
- steps?: string[] | undefined;
224
- }[];
225
- mastraIndexExists: boolean;
226
- message: string;
227
- error?: string | undefined;
228
- }, unknown, unknown, import("@mastra/core/workflows").DefaultEngineType, unknown> | import("@mastra/core/workflows").Step<"project-discovery", unknown, {
229
- success: boolean;
230
- workflows: {
231
- name: string;
232
- file: string;
233
- description?: string | undefined;
234
- inputSchema?: any;
235
- outputSchema?: any;
236
- steps?: string[] | undefined;
237
- }[];
238
- mastraIndexExists: boolean;
239
- message: string;
240
- error?: string | undefined;
241
- }, {
242
- success: boolean;
243
- structure: {
244
- hasWorkflowsDir: boolean;
245
- hasAgentsDir: boolean;
246
- hasToolsDir: boolean;
247
- hasMastraIndex: boolean;
248
- existingWorkflows: string[];
249
- existingAgents: string[];
250
- existingTools: string[];
251
- };
252
- dependencies: Record<string, string>;
253
- message: string;
254
- error?: string | undefined;
255
- }, unknown, unknown, import("@mastra/core/workflows").DefaultEngineType, unknown> | import("@mastra/core/workflows").Step<"workflow-research", unknown, {
256
- success: boolean;
257
- structure: {
258
- hasWorkflowsDir: boolean;
259
- hasAgentsDir: boolean;
260
- hasToolsDir: boolean;
261
- hasMastraIndex: boolean;
262
- existingWorkflows: string[];
263
- existingAgents: string[];
264
- existingTools: string[];
265
- };
266
- dependencies: Record<string, string>;
267
- message: string;
268
- error?: string | undefined;
269
- }, {
270
- success: boolean;
271
- documentation: {
272
- workflowPatterns: string[];
273
- stepExamples: string[];
274
- bestPractices: string[];
275
- };
276
- webResources: {
277
- title: string;
278
- url: string;
279
- snippet: string;
280
- relevance: number;
281
- }[];
282
- message: string;
283
- error?: string | undefined;
284
- }, unknown, unknown, import("@mastra/core/workflows").DefaultEngineType, unknown> | import("@mastra/core/workflows").Step<"task-execution", unknown, {
285
- action: "create" | "edit";
286
- tasks: {
287
- id: string;
288
- content: string;
289
- status: "pending" | "in_progress" | "completed" | "blocked";
290
- priority: "high" | "medium" | "low";
291
- notes: string;
292
- dependencies?: string[] | undefined;
293
- }[];
294
- discoveredWorkflows: any[];
295
- projectStructure: any;
296
- research: any;
297
- workflowName?: string | undefined;
298
- description?: string | undefined;
299
- requirements?: string | undefined;
300
- projectPath?: string | undefined;
301
- }, {
302
- success: boolean;
303
- filesModified: string[];
304
- validationResults: {
305
- passed: boolean;
306
- errors: string[];
307
- warnings: string[];
308
- };
309
- completedTasks: string[];
310
- message: string;
311
- error?: string | undefined;
312
- }, {
313
- answers: {
314
- questionId: string;
315
- answer: string;
316
- }[];
317
- }, {
318
- questions: {
319
- id: string;
320
- question: string;
321
- type: "boolean" | "text" | "choice";
322
- options?: string[] | undefined;
323
- context?: string | undefined;
324
- }[];
325
- currentProgress: string;
326
- completedTasks: string[];
327
- message: string;
328
- }, import("@mastra/core/workflows").DefaultEngineType, unknown>)[], "workflow-builder", unknown, {
329
330
  action: "create" | "edit";
330
- workflowName?: string | undefined;
331
331
  description?: string | undefined;
332
332
  requirements?: string | undefined;
333
333
  projectPath?: string | undefined;
334
334
  }, {
335
335
  success: boolean;
336
336
  action: "create" | "edit";
337
- message: string;
338
337
  workflowName?: string | undefined;
339
338
  workflowFile?: string | undefined;
340
339
  discovery?: {
@@ -387,15 +386,15 @@ export declare const workflowBuilderWorkflow: import("@mastra/core/workflows").W
387
386
  tasks: {
388
387
  id: string;
389
388
  content: string;
390
- status: "pending" | "in_progress" | "completed" | "blocked";
391
- priority: "high" | "medium" | "low";
392
- notes: string;
389
+ status: "blocked" | "completed" | "in_progress" | "pending";
390
+ priority: "high" | "low" | "medium";
393
391
  dependencies?: string[] | undefined;
392
+ notes: string;
394
393
  }[];
395
394
  questions: {
396
395
  id: string;
397
396
  question: string;
398
- type: "boolean" | "text" | "choice";
397
+ type: "boolean" | "choice" | "text";
399
398
  options?: string[] | undefined;
400
399
  context?: string | undefined;
401
400
  }[];
@@ -411,10 +410,10 @@ export declare const workflowBuilderWorkflow: import("@mastra/core/workflows").W
411
410
  tasks: {
412
411
  id: string;
413
412
  content: string;
414
- status: "pending" | "in_progress" | "completed" | "blocked";
415
- priority: "high" | "medium" | "low";
416
- notes: string;
413
+ status: "blocked" | "completed" | "in_progress" | "pending";
414
+ priority: "high" | "low" | "medium";
417
415
  dependencies?: string[] | undefined;
416
+ notes: string;
418
417
  }[];
419
418
  message: string;
420
419
  error?: string | undefined;
@@ -435,16 +434,16 @@ export declare const workflowBuilderWorkflow: import("@mastra/core/workflows").W
435
434
  questions?: {
436
435
  id: string;
437
436
  question: string;
438
- type: "boolean" | "text" | "choice";
437
+ type: "boolean" | "choice" | "text";
439
438
  options?: string[] | undefined;
440
439
  context?: string | undefined;
441
440
  }[] | undefined;
441
+ message: string;
442
442
  nextSteps?: string[] | undefined;
443
443
  error?: string | undefined;
444
444
  }, {
445
445
  success: boolean;
446
446
  action: "create" | "edit";
447
- message: string;
448
447
  workflowName?: string | undefined;
449
448
  workflowFile?: string | undefined;
450
449
  discovery?: {
@@ -497,15 +496,15 @@ export declare const workflowBuilderWorkflow: import("@mastra/core/workflows").W
497
496
  tasks: {
498
497
  id: string;
499
498
  content: string;
500
- status: "pending" | "in_progress" | "completed" | "blocked";
501
- priority: "high" | "medium" | "low";
502
- notes: string;
499
+ status: "blocked" | "completed" | "in_progress" | "pending";
500
+ priority: "high" | "low" | "medium";
503
501
  dependencies?: string[] | undefined;
502
+ notes: string;
504
503
  }[];
505
504
  questions: {
506
505
  id: string;
507
506
  question: string;
508
- type: "boolean" | "text" | "choice";
507
+ type: "boolean" | "choice" | "text";
509
508
  options?: string[] | undefined;
510
509
  context?: string | undefined;
511
510
  }[];
@@ -521,10 +520,10 @@ export declare const workflowBuilderWorkflow: import("@mastra/core/workflows").W
521
520
  tasks: {
522
521
  id: string;
523
522
  content: string;
524
- status: "pending" | "in_progress" | "completed" | "blocked";
525
- priority: "high" | "medium" | "low";
526
- notes: string;
523
+ status: "blocked" | "completed" | "in_progress" | "pending";
524
+ priority: "high" | "low" | "medium";
527
525
  dependencies?: string[] | undefined;
526
+ notes: string;
528
527
  }[];
529
528
  message: string;
530
529
  error?: string | undefined;
@@ -545,10 +544,11 @@ export declare const workflowBuilderWorkflow: import("@mastra/core/workflows").W
545
544
  questions?: {
546
545
  id: string;
547
546
  question: string;
548
- type: "boolean" | "text" | "choice";
547
+ type: "boolean" | "choice" | "text";
549
548
  options?: string[] | undefined;
550
549
  context?: string | undefined;
551
550
  }[] | undefined;
551
+ message: string;
552
552
  nextSteps?: string[] | undefined;
553
553
  error?: string | undefined;
554
554
  }, unknown>;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@mastra/agent-builder",
3
- "version": "1.1.31",
3
+ "version": "1.1.32-alpha.0",
4
4
  "license": "Apache-2.0",
5
5
  "type": "module",
6
6
  "main": "dist/index.js",
@@ -23,32 +23,32 @@
23
23
  ],
24
24
  "dependencies": {
25
25
  "@ai-sdk/anthropic": "^1.2.12",
26
- "@ai-sdk/anthropic-v5": "npm:@ai-sdk/anthropic@2.0.109",
26
+ "@ai-sdk/anthropic-v5": "npm:@ai-sdk/anthropic@2.0.110",
27
27
  "@ai-sdk/google": "^1.2.22",
28
- "@ai-sdk/google-v5": "npm:@ai-sdk/google@2.0.103",
28
+ "@ai-sdk/google-v5": "npm:@ai-sdk/google@2.0.106",
29
29
  "@ai-sdk/groq": "^1.2.9",
30
- "@ai-sdk/groq-v5": "npm:@ai-sdk/groq@2.0.58",
30
+ "@ai-sdk/groq-v5": "npm:@ai-sdk/groq@2.0.59",
31
31
  "@ai-sdk/openai": "^1.3.24",
32
- "@ai-sdk/openai-v5": "npm:@ai-sdk/openai@2.0.135",
32
+ "@ai-sdk/openai-v5": "npm:@ai-sdk/openai@2.0.137",
33
33
  "@ai-sdk/xai": "^1.2.18",
34
- "@ai-sdk/xai-v5": "npm:@ai-sdk/xai@2.0.99",
34
+ "@ai-sdk/xai-v5": "npm:@ai-sdk/xai@2.0.100",
35
35
  "ignore": "^7.0.14",
36
- "@mastra/memory": "1.39.1",
36
+ "@mastra/memory": "1.40.0-alpha.0",
37
37
  "@mastra/schema-compat": "1.3.17"
38
38
  },
39
39
  "devDependencies": {
40
40
  "@types/node": "22.19.15",
41
41
  "@vitest/coverage-v8": "4.1.12",
42
42
  "@vitest/ui": "4.1.12",
43
- "ai-v5": "npm:ai@5.0.277",
43
+ "ai-v5": "npm:ai@5.0.282",
44
44
  "tsdown": "0.23.1",
45
45
  "typescript": "^6.0.3",
46
46
  "vitest": "4.1.12",
47
47
  "zod": "^4.6.7",
48
- "@internal/ai-sdk-v5": "0.0.93",
49
48
  "@internal/lint": "0.0.146",
49
+ "@internal/ai-sdk-v5": "0.0.93",
50
50
  "@internal/types-builder": "0.0.121",
51
- "@mastra/core": "1.80.0"
51
+ "@mastra/core": "1.81.0-alpha.0"
52
52
  },
53
53
  "peerDependencies": {
54
54
  "@mastra/core": ">=1.80.0-0 <2.0.0-0",