@mastra/agent-builder 1.1.31-alpha.3 → 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.
@@ -68,15 +68,15 @@ export declare const TaskManagementResultSchema: z.ZodObject<{
68
68
  id: z.ZodString;
69
69
  content: z.ZodString;
70
70
  status: z.ZodDefault<z.ZodEnum<{
71
- pending: "pending";
72
- in_progress: "in_progress";
73
- completed: "completed";
74
71
  blocked: "blocked";
72
+ completed: "completed";
73
+ in_progress: "in_progress";
74
+ pending: "pending";
75
75
  }>>;
76
76
  priority: z.ZodEnum<{
77
77
  high: "high";
78
- medium: "medium";
79
78
  low: "low";
79
+ medium: "medium";
80
80
  }>;
81
81
  dependencies: z.ZodOptional<z.ZodArray<z.ZodString>>;
82
82
  notes: z.ZodString;
@@ -96,15 +96,15 @@ export declare const TaskExecutionInputSchema: z.ZodObject<{
96
96
  id: z.ZodString;
97
97
  content: z.ZodString;
98
98
  status: z.ZodDefault<z.ZodEnum<{
99
- pending: "pending";
100
- in_progress: "in_progress";
101
- completed: "completed";
102
99
  blocked: "blocked";
100
+ completed: "completed";
101
+ in_progress: "in_progress";
102
+ pending: "pending";
103
103
  }>>;
104
104
  priority: z.ZodEnum<{
105
105
  high: "high";
106
- medium: "medium";
107
106
  low: "low";
107
+ medium: "medium";
108
108
  }>;
109
109
  dependencies: z.ZodOptional<z.ZodArray<z.ZodString>>;
110
110
  notes: z.ZodString;
@@ -120,8 +120,8 @@ export declare const TaskExecutionSuspendSchema: z.ZodObject<{
120
120
  question: z.ZodString;
121
121
  type: z.ZodEnum<{
122
122
  boolean: "boolean";
123
- text: "text";
124
123
  choice: "choice";
124
+ text: "text";
125
125
  }>;
126
126
  options: z.ZodOptional<z.ZodArray<z.ZodString>>;
127
127
  context: z.ZodOptional<z.ZodString>;
@@ -154,8 +154,8 @@ export declare const UserClarificationInputSchema: z.ZodObject<{
154
154
  question: z.ZodString;
155
155
  type: z.ZodEnum<{
156
156
  boolean: "boolean";
157
- text: "text";
158
157
  choice: "choice";
158
+ text: "text";
159
159
  }>;
160
160
  options: z.ZodOptional<z.ZodArray<z.ZodString>>;
161
161
  context: z.ZodOptional<z.ZodString>;
@@ -224,15 +224,15 @@ export declare const WorkflowBuilderResultSchema: z.ZodObject<{
224
224
  id: z.ZodString;
225
225
  content: z.ZodString;
226
226
  status: z.ZodDefault<z.ZodEnum<{
227
- pending: "pending";
228
- in_progress: "in_progress";
229
- completed: "completed";
230
227
  blocked: "blocked";
228
+ completed: "completed";
229
+ in_progress: "in_progress";
230
+ pending: "pending";
231
231
  }>>;
232
232
  priority: z.ZodEnum<{
233
233
  high: "high";
234
- medium: "medium";
235
234
  low: "low";
235
+ medium: "medium";
236
236
  }>;
237
237
  dependencies: z.ZodOptional<z.ZodArray<z.ZodString>>;
238
238
  notes: z.ZodString;
@@ -242,8 +242,8 @@ export declare const WorkflowBuilderResultSchema: z.ZodObject<{
242
242
  question: z.ZodString;
243
243
  type: z.ZodEnum<{
244
244
  boolean: "boolean";
245
- text: "text";
246
245
  choice: "choice";
246
+ text: "text";
247
247
  }>;
248
248
  options: z.ZodOptional<z.ZodArray<z.ZodString>>;
249
249
  context: z.ZodOptional<z.ZodString>;
@@ -261,15 +261,15 @@ export declare const WorkflowBuilderResultSchema: z.ZodObject<{
261
261
  id: z.ZodString;
262
262
  content: z.ZodString;
263
263
  status: z.ZodDefault<z.ZodEnum<{
264
- pending: "pending";
265
- in_progress: "in_progress";
266
- completed: "completed";
267
264
  blocked: "blocked";
265
+ completed: "completed";
266
+ in_progress: "in_progress";
267
+ pending: "pending";
268
268
  }>>;
269
269
  priority: z.ZodEnum<{
270
270
  high: "high";
271
- medium: "medium";
272
271
  low: "low";
272
+ medium: "medium";
273
273
  }>;
274
274
  dependencies: z.ZodOptional<z.ZodArray<z.ZodString>>;
275
275
  notes: z.ZodString;
@@ -295,8 +295,8 @@ export declare const WorkflowBuilderResultSchema: z.ZodObject<{
295
295
  question: z.ZodString;
296
296
  type: z.ZodEnum<{
297
297
  boolean: "boolean";
298
- text: "text";
299
298
  choice: "choice";
299
+ text: "text";
300
300
  }>;
301
301
  options: z.ZodOptional<z.ZodArray<z.ZodString>>;
302
302
  context: z.ZodOptional<z.ZodString>;
@@ -307,8 +307,8 @@ export declare const WorkflowBuilderResultSchema: z.ZodObject<{
307
307
  }, z.core.$strip>;
308
308
  export declare const TaskExecutionIterationInputSchema: (taskLength: number) => z.ZodObject<{
309
309
  status: z.ZodEnum<{
310
- in_progress: "in_progress";
311
310
  completed: "completed";
311
+ in_progress: "in_progress";
312
312
  needs_clarification: "needs_clarification";
313
313
  }>;
314
314
  progress: z.ZodString;
@@ -321,8 +321,8 @@ export declare const TaskExecutionIterationInputSchema: (taskLength: number) =>
321
321
  question: z.ZodString;
322
322
  type: z.ZodEnum<{
323
323
  boolean: "boolean";
324
- text: "text";
325
324
  choice: "choice";
325
+ text: "text";
326
326
  }>;
327
327
  options: z.ZodOptional<z.ZodArray<z.ZodString>>;
328
328
  context: z.ZodOptional<z.ZodString>;
@@ -1 +1 @@
1
- {"version":3,"file":"schema.d.ts","sourceRoot":"","sources":["../../../src/workflows/workflow-builder/schema.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAIxB,eAAO,MAAM,0BAA0B;;;;;;;;;iBAMrC,CAAC;AAEH,eAAO,MAAM,wBAAwB;;;;;;;iBAOnC,CAAC;AAEH,eAAO,MAAM,6BAA6B;;;;;;;;;;;;;iBAMxC,CAAC;AAEH,eAAO,MAAM,4BAA4B;;;;;;;;;;;;;;iBAcvC,CAAC;AAEH,eAAO,MAAM,4BAA4B;;;;;;;;;;;;;;;iBAiBvC,CAAC;AAEH,eAAO,MAAM,0BAA0B;;;;;;;;;;;;;;;;;;;;;iBAKrC,CAAC;AAEH,eAAO,MAAM,wBAAwB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;iBAUnC,CAAC;AAEH,eAAO,MAAM,0BAA0B;;;;;;;;;;;;;;;iBAKrC,CAAC;AAEH,eAAO,MAAM,yBAAyB;;;;;iBAOpC,CAAC;AAEH,eAAO,MAAM,yBAAyB;;;;;;;;;;;iBAWpC,CAAC;AAEH,eAAO,MAAM,4BAA4B;;;;;;;;;;;;iBAEvC,CAAC;AAEH,eAAO,MAAM,6BAA6B;;;iBAGxC,CAAC;AAEH,eAAO,MAAM,2BAA2B;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;iBAgBtC,CAAC;AAEH,eAAO,MAAM,iCAAiC,GAAI,YAAY,MAAM;;;;;;;;;;;;;;;;;;;;;;;;iBAiBhE,CAAC"}
1
+ {"version":3,"file":"schema.d.ts","sourceRoot":"","sources":["../../../src/workflows/workflow-builder/schema.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAIxB,eAAO,MAAM,0BAA0B;;;;;;;;;iBAMrC,CAAC;AAEH,eAAO,MAAM,wBAAwB;;;;;;;iBAOnC,CAAC;AAEH,eAAO,MAAM,6BAA6B;;;;;;;;;;;;;iBAMxC,CAAC;AAEH,eAAO,MAAM,4BAA4B;;;;;;;;;;;;;;iBAcvC,CAAC;AAEH,eAAO,MAAM,4BAA4B;;;;;;;;;;;;;;;iBAiBvC,CAAC;AAEH,eAAO,MAAM,0BAA0B;;;;;;;;;;;;;;;;;;;;;iBAKrC,CAAC;AAEH,eAAO,MAAM,wBAAwB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;iBAUnC,CAAC;AAEH,eAAO,MAAM,0BAA0B;;;;;;;;;;;;;;;iBAKrC,CAAC;AAEH,eAAO,MAAM,yBAAyB;;;;;iBAOpC,CAAC;AAEH,eAAO,MAAM,yBAAyB;;;;;;;;;;;iBAWpC,CAAC;AAEH,eAAO,MAAM,4BAA4B;;;;;;;;;;;;iBAEvC,CAAC;AAEH,eAAO,MAAM,6BAA6B;;;iBAGxC,CAAC;AAEH,eAAO,MAAM,2BAA2B;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;iBAgBtC,CAAC;AAEH,eAAO,MAAM,iCAAiC,eAAgB,MAAM;;;;;;;;;;;;;;;;;;;;;;;;iBAiBhE,CAAC"}
@@ -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>;