@mastra/agent-builder 1.0.0-beta.9 → 1.0.1-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.
Files changed (28) hide show
  1. package/CHANGELOG.md +294 -0
  2. package/dist/agent/index.d.ts +17 -5
  3. package/dist/agent/index.d.ts.map +1 -1
  4. package/dist/{chunk-2CIPVDK5.js → chunk-2XSP7TVS.js} +5 -5
  5. package/dist/chunk-2XSP7TVS.js.map +1 -0
  6. package/dist/{chunk-E53QBCQN.js → chunk-RQJR2QYC.js} +3 -3
  7. package/dist/chunk-RQJR2QYC.js.map +1 -0
  8. package/dist/defaults.d.ts +56 -2203
  9. package/dist/defaults.d.ts.map +1 -1
  10. package/dist/index.js +25 -22
  11. package/dist/index.js.map +1 -1
  12. package/dist/{token-6GSAFR2W-KVDFAJ2M.js → token-6GSAFR2W-F2L44NEJ.js} +5 -5
  13. package/dist/token-6GSAFR2W-F2L44NEJ.js.map +1 -0
  14. package/dist/token-util-NEHG7TUY-4YJ4EPCL.js +9 -0
  15. package/dist/{token-util-NEHG7TUY-DJYRKLRD.js.map → token-util-NEHG7TUY-4YJ4EPCL.js.map} +1 -1
  16. package/dist/workflows/task-planning/task-planning.d.ts +20 -814
  17. package/dist/workflows/task-planning/task-planning.d.ts.map +1 -1
  18. package/dist/workflows/template-builder/template-builder.d.ts +65 -1648
  19. package/dist/workflows/template-builder/template-builder.d.ts.map +1 -1
  20. package/dist/workflows/workflow-builder/tools.d.ts +3 -227
  21. package/dist/workflows/workflow-builder/tools.d.ts.map +1 -1
  22. package/dist/workflows/workflow-builder/workflow-builder.d.ts +239 -2430
  23. package/dist/workflows/workflow-builder/workflow-builder.d.ts.map +1 -1
  24. package/package.json +11 -11
  25. package/dist/chunk-2CIPVDK5.js.map +0 -1
  26. package/dist/chunk-E53QBCQN.js.map +0 -1
  27. package/dist/token-6GSAFR2W-KVDFAJ2M.js.map +0 -1
  28. package/dist/token-util-NEHG7TUY-DJYRKLRD.js +0 -9
@@ -1,160 +1,4 @@
1
- import type { z } from 'zod';
2
- 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", z.ZodObject<any, z.UnknownKeysParam, z.ZodTypeAny, {
3
- [x: string]: any;
4
- }, {
5
- [x: string]: any;
6
- }>, z.ZodObject<{
7
- action: z.ZodEnum<["create", "edit"]>;
8
- workflowName: z.ZodOptional<z.ZodString>;
9
- description: z.ZodOptional<z.ZodString>;
10
- requirements: z.ZodOptional<z.ZodString>;
11
- discoveredWorkflows: z.ZodArray<z.ZodObject<{
12
- name: z.ZodString;
13
- file: z.ZodString;
14
- description: z.ZodOptional<z.ZodString>;
15
- inputSchema: z.ZodOptional<z.ZodAny>;
16
- outputSchema: z.ZodOptional<z.ZodAny>;
17
- steps: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
18
- }, "strip", z.ZodTypeAny, {
19
- file: string;
20
- name: string;
21
- description?: string | undefined;
22
- outputSchema?: any;
23
- inputSchema?: any;
24
- steps?: string[] | undefined;
25
- }, {
26
- file: string;
27
- name: string;
28
- description?: string | undefined;
29
- outputSchema?: any;
30
- inputSchema?: any;
31
- steps?: string[] | undefined;
32
- }>, "many">;
33
- projectStructure: z.ZodObject<{
34
- success: z.ZodBoolean;
35
- structure: z.ZodObject<{
36
- hasWorkflowsDir: z.ZodBoolean;
37
- hasAgentsDir: z.ZodBoolean;
38
- hasToolsDir: z.ZodBoolean;
39
- hasMastraIndex: z.ZodBoolean;
40
- existingWorkflows: z.ZodArray<z.ZodString, "many">;
41
- existingAgents: z.ZodArray<z.ZodString, "many">;
42
- existingTools: z.ZodArray<z.ZodString, "many">;
43
- }, "strip", z.ZodTypeAny, {
44
- hasWorkflowsDir: boolean;
45
- hasAgentsDir: boolean;
46
- hasToolsDir: boolean;
47
- hasMastraIndex: boolean;
48
- existingWorkflows: string[];
49
- existingAgents: string[];
50
- existingTools: string[];
51
- }, {
52
- hasWorkflowsDir: boolean;
53
- hasAgentsDir: boolean;
54
- hasToolsDir: boolean;
55
- hasMastraIndex: boolean;
56
- existingWorkflows: string[];
57
- existingAgents: string[];
58
- existingTools: string[];
59
- }>;
60
- dependencies: z.ZodRecord<z.ZodString, z.ZodString>;
61
- message: z.ZodString;
62
- error: z.ZodOptional<z.ZodString>;
63
- }, "strip", z.ZodTypeAny, {
64
- message: string;
65
- success: boolean;
66
- dependencies: Record<string, string>;
67
- structure: {
68
- hasWorkflowsDir: boolean;
69
- hasAgentsDir: boolean;
70
- hasToolsDir: boolean;
71
- hasMastraIndex: boolean;
72
- existingWorkflows: string[];
73
- existingAgents: string[];
74
- existingTools: string[];
75
- };
76
- error?: string | undefined;
77
- }, {
78
- message: string;
79
- success: boolean;
80
- dependencies: Record<string, string>;
81
- structure: {
82
- hasWorkflowsDir: boolean;
83
- hasAgentsDir: boolean;
84
- hasToolsDir: boolean;
85
- hasMastraIndex: boolean;
86
- existingWorkflows: string[];
87
- existingAgents: string[];
88
- existingTools: string[];
89
- };
90
- error?: string | undefined;
91
- }>;
92
- research: z.ZodObject<{
93
- success: z.ZodBoolean;
94
- documentation: z.ZodObject<{
95
- workflowPatterns: z.ZodArray<z.ZodString, "many">;
96
- stepExamples: z.ZodArray<z.ZodString, "many">;
97
- bestPractices: z.ZodArray<z.ZodString, "many">;
98
- }, "strip", z.ZodTypeAny, {
99
- workflowPatterns: string[];
100
- stepExamples: string[];
101
- bestPractices: string[];
102
- }, {
103
- workflowPatterns: string[];
104
- stepExamples: string[];
105
- bestPractices: string[];
106
- }>;
107
- webResources: z.ZodArray<z.ZodObject<{
108
- title: z.ZodString;
109
- url: z.ZodString;
110
- snippet: z.ZodString;
111
- relevance: z.ZodNumber;
112
- }, "strip", z.ZodTypeAny, {
113
- url: string;
114
- relevance: number;
115
- title: string;
116
- snippet: string;
117
- }, {
118
- url: string;
119
- relevance: number;
120
- title: string;
121
- snippet: string;
122
- }>, "many">;
123
- message: z.ZodString;
124
- error: z.ZodOptional<z.ZodString>;
125
- }, "strip", z.ZodTypeAny, {
126
- message: string;
127
- success: boolean;
128
- documentation: {
129
- workflowPatterns: string[];
130
- stepExamples: string[];
131
- bestPractices: string[];
132
- };
133
- webResources: {
134
- url: string;
135
- relevance: number;
136
- title: string;
137
- snippet: string;
138
- }[];
139
- error?: string | undefined;
140
- }, {
141
- message: string;
142
- success: boolean;
143
- documentation: {
144
- workflowPatterns: string[];
145
- stepExamples: string[];
146
- bestPractices: string[];
147
- };
148
- webResources: {
149
- url: string;
150
- relevance: number;
151
- title: string;
152
- snippet: string;
153
- }[];
154
- error?: string | undefined;
155
- }>;
156
- userAnswers: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
157
- }, "strip", z.ZodTypeAny, {
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", any, {
158
2
  action: "create" | "edit";
159
3
  discoveredWorkflows: {
160
4
  file: string;
@@ -200,100 +44,6 @@ export declare const workflowBuilderWorkflow: import("@mastra/core/workflows").W
200
44
  requirements?: string | undefined;
201
45
  userAnswers?: Record<string, string> | undefined;
202
46
  }, {
203
- action: "create" | "edit";
204
- discoveredWorkflows: {
205
- file: string;
206
- name: string;
207
- description?: string | undefined;
208
- outputSchema?: any;
209
- inputSchema?: any;
210
- steps?: string[] | undefined;
211
- }[];
212
- projectStructure: {
213
- message: string;
214
- success: boolean;
215
- dependencies: Record<string, string>;
216
- structure: {
217
- hasWorkflowsDir: boolean;
218
- hasAgentsDir: boolean;
219
- hasToolsDir: boolean;
220
- hasMastraIndex: boolean;
221
- existingWorkflows: string[];
222
- existingAgents: string[];
223
- existingTools: string[];
224
- };
225
- error?: string | undefined;
226
- };
227
- research: {
228
- message: string;
229
- success: boolean;
230
- documentation: {
231
- workflowPatterns: string[];
232
- stepExamples: string[];
233
- bestPractices: string[];
234
- };
235
- webResources: {
236
- url: string;
237
- relevance: number;
238
- title: string;
239
- snippet: string;
240
- }[];
241
- error?: string | undefined;
242
- };
243
- description?: string | undefined;
244
- workflowName?: string | undefined;
245
- requirements?: string | undefined;
246
- userAnswers?: Record<string, string> | undefined;
247
- }>, z.ZodObject<{
248
- success: z.ZodBoolean;
249
- tasks: z.ZodArray<z.ZodObject<{
250
- id: z.ZodString;
251
- content: z.ZodString;
252
- status: z.ZodDefault<z.ZodEnum<["pending", "in_progress", "completed", "blocked"]>>;
253
- priority: z.ZodEnum<["high", "medium", "low"]>;
254
- dependencies: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
255
- notes: z.ZodString;
256
- }, "strip", z.ZodTypeAny, {
257
- status: "pending" | "in_progress" | "completed" | "blocked";
258
- id: string;
259
- content: string;
260
- priority: "high" | "medium" | "low";
261
- notes: string;
262
- dependencies?: string[] | undefined;
263
- }, {
264
- id: string;
265
- content: string;
266
- priority: "high" | "medium" | "low";
267
- notes: string;
268
- status?: "pending" | "in_progress" | "completed" | "blocked" | undefined;
269
- dependencies?: string[] | undefined;
270
- }>, "many">;
271
- questions: z.ZodArray<z.ZodObject<{
272
- id: z.ZodString;
273
- question: z.ZodString;
274
- type: z.ZodEnum<["choice", "text", "boolean"]>;
275
- options: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
276
- context: z.ZodOptional<z.ZodString>;
277
- }, "strip", z.ZodTypeAny, {
278
- type: "boolean" | "text" | "choice";
279
- id: string;
280
- question: string;
281
- options?: string[] | undefined;
282
- context?: string | undefined;
283
- }, {
284
- type: "boolean" | "text" | "choice";
285
- id: string;
286
- question: string;
287
- options?: string[] | undefined;
288
- context?: string | undefined;
289
- }>, "many">;
290
- reasoning: z.ZodString;
291
- planComplete: z.ZodBoolean;
292
- message: z.ZodString;
293
- error: z.ZodOptional<z.ZodString>;
294
- allPreviousQuestions: z.ZodOptional<z.ZodArray<z.ZodAny, "many">>;
295
- allPreviousAnswers: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
296
- }, "strip", z.ZodTypeAny, {
297
47
  message: string;
298
48
  success: boolean;
299
49
  reasoning: string;
@@ -316,121 +66,8 @@ export declare const workflowBuilderWorkflow: import("@mastra/core/workflows").W
316
66
  error?: string | undefined;
317
67
  allPreviousQuestions?: any[] | undefined;
318
68
  allPreviousAnswers?: Record<string, string> | undefined;
319
- }, {
320
- message: string;
321
- success: boolean;
322
- reasoning: string;
323
- tasks: {
324
- id: string;
325
- content: string;
326
- priority: "high" | "medium" | "low";
327
- notes: string;
328
- status?: "pending" | "in_progress" | "completed" | "blocked" | undefined;
329
- dependencies?: string[] | undefined;
330
- }[];
331
- questions: {
332
- type: "boolean" | "text" | "choice";
333
- id: string;
334
- question: string;
335
- options?: string[] | undefined;
336
- context?: string | undefined;
337
- }[];
338
- planComplete: boolean;
339
- error?: string | undefined;
340
- allPreviousQuestions?: any[] | undefined;
341
- allPreviousAnswers?: Record<string, string> | undefined;
342
- }>, z.ZodObject<{
343
- answers: z.ZodRecord<z.ZodString, z.ZodString>;
344
- }, "strip", z.ZodTypeAny, {
345
- answers: Record<string, string>;
346
69
  }, {
347
70
  answers: Record<string, string>;
348
- }>, z.ZodObject<{
349
- questions: z.ZodArray<z.ZodObject<{
350
- id: z.ZodString;
351
- question: z.ZodString;
352
- type: z.ZodEnum<["choice", "text", "boolean"]>;
353
- options: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
354
- context: z.ZodOptional<z.ZodString>;
355
- }, "strip", z.ZodTypeAny, {
356
- type: "boolean" | "text" | "choice";
357
- id: string;
358
- question: string;
359
- options?: string[] | undefined;
360
- context?: string | undefined;
361
- }, {
362
- type: "boolean" | "text" | "choice";
363
- id: string;
364
- question: string;
365
- options?: string[] | undefined;
366
- context?: string | undefined;
367
- }>, "many">;
368
- message: z.ZodString;
369
- currentPlan: z.ZodObject<{
370
- tasks: z.ZodArray<z.ZodObject<{
371
- id: z.ZodString;
372
- content: z.ZodString;
373
- status: z.ZodDefault<z.ZodEnum<["pending", "in_progress", "completed", "blocked"]>>;
374
- priority: z.ZodEnum<["high", "medium", "low"]>;
375
- dependencies: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
376
- notes: z.ZodString;
377
- }, "strip", z.ZodTypeAny, {
378
- status: "pending" | "in_progress" | "completed" | "blocked";
379
- id: string;
380
- content: string;
381
- priority: "high" | "medium" | "low";
382
- notes: string;
383
- dependencies?: string[] | undefined;
384
- }, {
385
- id: string;
386
- content: string;
387
- priority: "high" | "medium" | "low";
388
- notes: string;
389
- status?: "pending" | "in_progress" | "completed" | "blocked" | undefined;
390
- dependencies?: string[] | undefined;
391
- }>, "many">;
392
- reasoning: z.ZodString;
393
- }, "strip", z.ZodTypeAny, {
394
- reasoning: string;
395
- tasks: {
396
- status: "pending" | "in_progress" | "completed" | "blocked";
397
- id: string;
398
- content: string;
399
- priority: "high" | "medium" | "low";
400
- notes: string;
401
- dependencies?: string[] | undefined;
402
- }[];
403
- }, {
404
- reasoning: string;
405
- tasks: {
406
- id: string;
407
- content: string;
408
- priority: "high" | "medium" | "low";
409
- notes: string;
410
- status?: "pending" | "in_progress" | "completed" | "blocked" | undefined;
411
- dependencies?: string[] | undefined;
412
- }[];
413
- }>;
414
- }, "strip", z.ZodTypeAny, {
415
- message: string;
416
- questions: {
417
- type: "boolean" | "text" | "choice";
418
- id: string;
419
- question: string;
420
- options?: string[] | undefined;
421
- context?: string | undefined;
422
- }[];
423
- currentPlan: {
424
- reasoning: string;
425
- tasks: {
426
- status: "pending" | "in_progress" | "completed" | "blocked";
427
- id: string;
428
- content: string;
429
- priority: "high" | "medium" | "low";
430
- notes: string;
431
- dependencies?: string[] | undefined;
432
- }[];
433
- };
434
71
  }, {
435
72
  message: string;
436
73
  questions: {
@@ -439,2090 +76,262 @@ export declare const workflowBuilderWorkflow: import("@mastra/core/workflows").W
439
76
  question: string;
440
77
  options?: string[] | undefined;
441
78
  context?: string | undefined;
442
- }[];
443
- currentPlan: {
444
- reasoning: string;
445
- tasks: {
446
- id: string;
447
- content: string;
448
- priority: "high" | "medium" | "low";
449
- notes: string;
450
- status?: "pending" | "in_progress" | "completed" | "blocked" | undefined;
451
- dependencies?: string[] | undefined;
452
- }[];
453
- };
454
- }>, import("@mastra/core/workflows").DefaultEngineType> | import("@mastra/core/workflows").Step<"task-approval", z.ZodObject<any, z.UnknownKeysParam, z.ZodTypeAny, {
455
- [x: string]: any;
456
- }, {
457
- [x: string]: any;
458
- }>, z.ZodObject<{
459
- success: z.ZodBoolean;
460
- tasks: z.ZodArray<z.ZodObject<{
461
- id: z.ZodString;
462
- content: z.ZodString;
463
- status: z.ZodDefault<z.ZodEnum<["pending", "in_progress", "completed", "blocked"]>>;
464
- priority: z.ZodEnum<["high", "medium", "low"]>;
465
- dependencies: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
466
- notes: z.ZodString;
467
- }, "strip", z.ZodTypeAny, {
468
- status: "pending" | "in_progress" | "completed" | "blocked";
469
- id: string;
470
- content: string;
471
- priority: "high" | "medium" | "low";
472
- notes: string;
473
- dependencies?: string[] | undefined;
474
- }, {
475
- id: string;
476
- content: string;
477
- priority: "high" | "medium" | "low";
478
- notes: string;
479
- status?: "pending" | "in_progress" | "completed" | "blocked" | undefined;
480
- dependencies?: string[] | undefined;
481
- }>, "many">;
482
- questions: z.ZodArray<z.ZodObject<{
483
- id: z.ZodString;
484
- question: z.ZodString;
485
- type: z.ZodEnum<["choice", "text", "boolean"]>;
486
- options: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
487
- context: z.ZodOptional<z.ZodString>;
488
- }, "strip", z.ZodTypeAny, {
489
- type: "boolean" | "text" | "choice";
490
- id: string;
491
- question: string;
492
- options?: string[] | undefined;
493
- context?: string | undefined;
494
- }, {
495
- type: "boolean" | "text" | "choice";
496
- id: string;
497
- question: string;
498
- options?: string[] | undefined;
499
- context?: string | undefined;
500
- }>, "many">;
501
- reasoning: z.ZodString;
502
- planComplete: z.ZodBoolean;
503
- message: z.ZodString;
504
- error: z.ZodOptional<z.ZodString>;
505
- allPreviousQuestions: z.ZodOptional<z.ZodArray<z.ZodAny, "many">>;
506
- allPreviousAnswers: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
507
- }, "strip", z.ZodTypeAny, {
508
- message: string;
509
- success: boolean;
510
- reasoning: string;
511
- tasks: {
512
- status: "pending" | "in_progress" | "completed" | "blocked";
513
- id: string;
514
- content: string;
515
- priority: "high" | "medium" | "low";
516
- notes: string;
517
- dependencies?: string[] | undefined;
518
- }[];
519
- questions: {
520
- type: "boolean" | "text" | "choice";
521
- id: string;
522
- question: string;
523
- options?: string[] | undefined;
524
- context?: string | undefined;
525
- }[];
526
- planComplete: boolean;
527
- error?: string | undefined;
528
- allPreviousQuestions?: any[] | undefined;
529
- allPreviousAnswers?: Record<string, string> | undefined;
530
- }, {
531
- message: string;
532
- success: boolean;
533
- reasoning: string;
534
- tasks: {
535
- id: string;
536
- content: string;
537
- priority: "high" | "medium" | "low";
538
- notes: string;
539
- status?: "pending" | "in_progress" | "completed" | "blocked" | undefined;
540
- dependencies?: string[] | undefined;
541
- }[];
542
- questions: {
543
- type: "boolean" | "text" | "choice";
544
- id: string;
545
- question: string;
546
- options?: string[] | undefined;
547
- context?: string | undefined;
548
- }[];
549
- planComplete: boolean;
550
- error?: string | undefined;
551
- allPreviousQuestions?: any[] | undefined;
552
- allPreviousAnswers?: Record<string, string> | undefined;
553
- }>, z.ZodObject<{
554
- approved: z.ZodBoolean;
555
- tasks: z.ZodArray<z.ZodObject<{
556
- id: z.ZodString;
557
- content: z.ZodString;
558
- status: z.ZodDefault<z.ZodEnum<["pending", "in_progress", "completed", "blocked"]>>;
559
- priority: z.ZodEnum<["high", "medium", "low"]>;
560
- dependencies: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
561
- notes: z.ZodString;
562
- }, "strip", z.ZodTypeAny, {
563
- status: "pending" | "in_progress" | "completed" | "blocked";
564
- id: string;
565
- content: string;
566
- priority: "high" | "medium" | "low";
567
- notes: string;
568
- dependencies?: string[] | undefined;
569
- }, {
570
- id: string;
571
- content: string;
572
- priority: "high" | "medium" | "low";
573
- notes: string;
574
- status?: "pending" | "in_progress" | "completed" | "blocked" | undefined;
575
- dependencies?: string[] | undefined;
576
- }>, "many">;
577
- message: z.ZodString;
578
- userFeedback: z.ZodOptional<z.ZodString>;
579
- }, "strip", z.ZodTypeAny, {
580
- message: string;
581
- tasks: {
582
- status: "pending" | "in_progress" | "completed" | "blocked";
583
- id: string;
584
- content: string;
585
- priority: "high" | "medium" | "low";
586
- notes: string;
587
- dependencies?: string[] | undefined;
588
- }[];
589
- approved: boolean;
590
- userFeedback?: string | undefined;
591
- }, {
592
- message: string;
593
- tasks: {
594
- id: string;
595
- content: string;
596
- priority: "high" | "medium" | "low";
597
- notes: string;
598
- status?: "pending" | "in_progress" | "completed" | "blocked" | undefined;
599
- dependencies?: string[] | undefined;
600
- }[];
601
- approved: boolean;
602
- userFeedback?: string | undefined;
603
- }>, z.ZodObject<{
604
- approved: z.ZodBoolean;
605
- modifications: z.ZodOptional<z.ZodString>;
606
- }, "strip", z.ZodTypeAny, {
607
- approved: boolean;
608
- modifications?: string | undefined;
609
- }, {
610
- approved: boolean;
611
- modifications?: string | undefined;
612
- }>, z.ZodObject<{
613
- taskList: z.ZodArray<z.ZodObject<{
614
- id: z.ZodString;
615
- content: z.ZodString;
616
- status: z.ZodDefault<z.ZodEnum<["pending", "in_progress", "completed", "blocked"]>>;
617
- priority: z.ZodEnum<["high", "medium", "low"]>;
618
- dependencies: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
619
- notes: z.ZodString;
620
- }, "strip", z.ZodTypeAny, {
621
- status: "pending" | "in_progress" | "completed" | "blocked";
622
- id: string;
623
- content: string;
624
- priority: "high" | "medium" | "low";
625
- notes: string;
626
- dependencies?: string[] | undefined;
627
- }, {
628
- id: string;
629
- content: string;
630
- priority: "high" | "medium" | "low";
631
- notes: string;
632
- status?: "pending" | "in_progress" | "completed" | "blocked" | undefined;
633
- dependencies?: string[] | undefined;
634
- }>, "many">;
635
- summary: z.ZodString;
636
- message: z.ZodString;
637
- }, "strip", z.ZodTypeAny, {
638
- message: string;
639
- summary: string;
640
- taskList: {
641
- status: "pending" | "in_progress" | "completed" | "blocked";
642
- id: string;
643
- content: string;
644
- priority: "high" | "medium" | "low";
645
- notes: string;
646
- dependencies?: string[] | undefined;
647
- }[];
648
- }, {
649
- message: string;
650
- summary: string;
651
- taskList: {
652
- id: string;
653
- content: string;
654
- priority: "high" | "medium" | "low";
655
- notes: string;
656
- status?: "pending" | "in_progress" | "completed" | "blocked" | undefined;
657
- dependencies?: string[] | undefined;
658
- }[];
659
- }>, import("@mastra/core/workflows").DefaultEngineType>)[], "planning-and-approval", z.ZodObject<any, z.UnknownKeysParam, z.ZodTypeAny, {
660
- [x: string]: any;
661
- }, {
662
- [x: string]: any;
663
- }>, z.ZodObject<{
664
- action: z.ZodEnum<["create", "edit"]>;
665
- workflowName: z.ZodOptional<z.ZodString>;
666
- description: z.ZodOptional<z.ZodString>;
667
- requirements: z.ZodOptional<z.ZodString>;
668
- discoveredWorkflows: z.ZodArray<z.ZodObject<{
669
- name: z.ZodString;
670
- file: z.ZodString;
671
- description: z.ZodOptional<z.ZodString>;
672
- inputSchema: z.ZodOptional<z.ZodAny>;
673
- outputSchema: z.ZodOptional<z.ZodAny>;
674
- steps: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
675
- }, "strip", z.ZodTypeAny, {
676
- file: string;
677
- name: string;
678
- description?: string | undefined;
679
- outputSchema?: any;
680
- inputSchema?: any;
681
- steps?: string[] | undefined;
682
- }, {
683
- file: string;
684
- name: string;
685
- description?: string | undefined;
686
- outputSchema?: any;
687
- inputSchema?: any;
688
- steps?: string[] | undefined;
689
- }>, "many">;
690
- projectStructure: z.ZodObject<{
691
- success: z.ZodBoolean;
692
- structure: z.ZodObject<{
693
- hasWorkflowsDir: z.ZodBoolean;
694
- hasAgentsDir: z.ZodBoolean;
695
- hasToolsDir: z.ZodBoolean;
696
- hasMastraIndex: z.ZodBoolean;
697
- existingWorkflows: z.ZodArray<z.ZodString, "many">;
698
- existingAgents: z.ZodArray<z.ZodString, "many">;
699
- existingTools: z.ZodArray<z.ZodString, "many">;
700
- }, "strip", z.ZodTypeAny, {
701
- hasWorkflowsDir: boolean;
702
- hasAgentsDir: boolean;
703
- hasToolsDir: boolean;
704
- hasMastraIndex: boolean;
705
- existingWorkflows: string[];
706
- existingAgents: string[];
707
- existingTools: string[];
708
- }, {
709
- hasWorkflowsDir: boolean;
710
- hasAgentsDir: boolean;
711
- hasToolsDir: boolean;
712
- hasMastraIndex: boolean;
713
- existingWorkflows: string[];
714
- existingAgents: string[];
715
- existingTools: string[];
716
- }>;
717
- dependencies: z.ZodRecord<z.ZodString, z.ZodString>;
718
- message: z.ZodString;
719
- error: z.ZodOptional<z.ZodString>;
720
- }, "strip", z.ZodTypeAny, {
721
- message: string;
722
- success: boolean;
723
- dependencies: Record<string, string>;
724
- structure: {
725
- hasWorkflowsDir: boolean;
726
- hasAgentsDir: boolean;
727
- hasToolsDir: boolean;
728
- hasMastraIndex: boolean;
729
- existingWorkflows: string[];
730
- existingAgents: string[];
731
- existingTools: string[];
732
- };
733
- error?: string | undefined;
734
- }, {
735
- message: string;
736
- success: boolean;
737
- dependencies: Record<string, string>;
738
- structure: {
739
- hasWorkflowsDir: boolean;
740
- hasAgentsDir: boolean;
741
- hasToolsDir: boolean;
742
- hasMastraIndex: boolean;
743
- existingWorkflows: string[];
744
- existingAgents: string[];
745
- existingTools: string[];
746
- };
747
- error?: string | undefined;
748
- }>;
749
- research: z.ZodObject<{
750
- success: z.ZodBoolean;
751
- documentation: z.ZodObject<{
752
- workflowPatterns: z.ZodArray<z.ZodString, "many">;
753
- stepExamples: z.ZodArray<z.ZodString, "many">;
754
- bestPractices: z.ZodArray<z.ZodString, "many">;
755
- }, "strip", z.ZodTypeAny, {
756
- workflowPatterns: string[];
757
- stepExamples: string[];
758
- bestPractices: string[];
759
- }, {
760
- workflowPatterns: string[];
761
- stepExamples: string[];
762
- bestPractices: string[];
763
- }>;
764
- webResources: z.ZodArray<z.ZodObject<{
765
- title: z.ZodString;
766
- url: z.ZodString;
767
- snippet: z.ZodString;
768
- relevance: z.ZodNumber;
769
- }, "strip", z.ZodTypeAny, {
770
- url: string;
771
- relevance: number;
772
- title: string;
773
- snippet: string;
774
- }, {
775
- url: string;
776
- relevance: number;
777
- title: string;
778
- snippet: string;
779
- }>, "many">;
780
- message: z.ZodString;
781
- error: z.ZodOptional<z.ZodString>;
782
- }, "strip", z.ZodTypeAny, {
783
- message: string;
784
- success: boolean;
785
- documentation: {
786
- workflowPatterns: string[];
787
- stepExamples: string[];
788
- bestPractices: string[];
789
- };
790
- webResources: {
791
- url: string;
792
- relevance: number;
793
- title: string;
794
- snippet: string;
795
- }[];
796
- error?: string | undefined;
797
- }, {
798
- message: string;
799
- success: boolean;
800
- documentation: {
801
- workflowPatterns: string[];
802
- stepExamples: string[];
803
- bestPractices: string[];
804
- };
805
- webResources: {
806
- url: string;
807
- relevance: number;
808
- title: string;
809
- snippet: string;
810
- }[];
811
- error?: string | undefined;
812
- }>;
813
- userAnswers: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
814
- }, "strip", z.ZodTypeAny, {
815
- action: "create" | "edit";
816
- discoveredWorkflows: {
817
- file: string;
818
- name: string;
819
- description?: string | undefined;
820
- outputSchema?: any;
821
- inputSchema?: any;
822
- steps?: string[] | undefined;
823
- }[];
824
- projectStructure: {
825
- message: string;
826
- success: boolean;
827
- dependencies: Record<string, string>;
828
- structure: {
829
- hasWorkflowsDir: boolean;
830
- hasAgentsDir: boolean;
831
- hasToolsDir: boolean;
832
- hasMastraIndex: boolean;
833
- existingWorkflows: string[];
834
- existingAgents: string[];
835
- existingTools: string[];
836
- };
837
- error?: string | undefined;
838
- };
839
- research: {
840
- message: string;
841
- success: boolean;
842
- documentation: {
843
- workflowPatterns: string[];
844
- stepExamples: string[];
845
- bestPractices: string[];
846
- };
847
- webResources: {
848
- url: string;
849
- relevance: number;
850
- title: string;
851
- snippet: string;
852
- }[];
853
- error?: string | undefined;
854
- };
855
- description?: string | undefined;
856
- workflowName?: string | undefined;
857
- requirements?: string | undefined;
858
- userAnswers?: Record<string, string> | undefined;
859
- }, {
860
- action: "create" | "edit";
861
- discoveredWorkflows: {
862
- file: string;
863
- name: string;
864
- description?: string | undefined;
865
- outputSchema?: any;
866
- inputSchema?: any;
867
- steps?: string[] | undefined;
868
- }[];
869
- projectStructure: {
870
- message: string;
871
- success: boolean;
872
- dependencies: Record<string, string>;
873
- structure: {
874
- hasWorkflowsDir: boolean;
875
- hasAgentsDir: boolean;
876
- hasToolsDir: boolean;
877
- hasMastraIndex: boolean;
878
- existingWorkflows: string[];
879
- existingAgents: string[];
880
- existingTools: string[];
881
- };
882
- error?: string | undefined;
883
- };
884
- research: {
885
- message: string;
886
- success: boolean;
887
- documentation: {
888
- workflowPatterns: string[];
889
- stepExamples: string[];
890
- bestPractices: string[];
891
- };
892
- webResources: {
893
- url: string;
894
- relevance: number;
895
- title: string;
896
- snippet: string;
897
- }[];
898
- error?: string | undefined;
899
- };
900
- description?: string | undefined;
901
- workflowName?: string | undefined;
902
- requirements?: string | undefined;
903
- userAnswers?: Record<string, string> | undefined;
904
- }>, z.ZodObject<{
905
- approved: z.ZodBoolean;
906
- tasks: z.ZodArray<z.ZodObject<{
907
- id: z.ZodString;
908
- content: z.ZodString;
909
- status: z.ZodDefault<z.ZodEnum<["pending", "in_progress", "completed", "blocked"]>>;
910
- priority: z.ZodEnum<["high", "medium", "low"]>;
911
- dependencies: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
912
- notes: z.ZodString;
913
- }, "strip", z.ZodTypeAny, {
914
- status: "pending" | "in_progress" | "completed" | "blocked";
915
- id: string;
916
- content: string;
917
- priority: "high" | "medium" | "low";
918
- notes: string;
919
- dependencies?: string[] | undefined;
920
- }, {
921
- id: string;
922
- content: string;
923
- priority: "high" | "medium" | "low";
924
- notes: string;
925
- status?: "pending" | "in_progress" | "completed" | "blocked" | undefined;
926
- dependencies?: string[] | undefined;
927
- }>, "many">;
928
- message: z.ZodString;
929
- userFeedback: z.ZodOptional<z.ZodString>;
930
- }, "strip", z.ZodTypeAny, {
931
- message: string;
932
- tasks: {
933
- status: "pending" | "in_progress" | "completed" | "blocked";
934
- id: string;
935
- content: string;
936
- priority: "high" | "medium" | "low";
937
- notes: string;
938
- dependencies?: string[] | undefined;
939
- }[];
940
- approved: boolean;
941
- userFeedback?: string | undefined;
942
- }, {
943
- message: string;
944
- tasks: {
945
- id: string;
946
- content: string;
947
- priority: "high" | "medium" | "low";
948
- notes: string;
949
- status?: "pending" | "in_progress" | "completed" | "blocked" | undefined;
950
- dependencies?: string[] | undefined;
951
- }[];
952
- approved: boolean;
953
- userFeedback?: string | undefined;
954
- }>, z.ZodObject<{
955
- approved: z.ZodBoolean;
956
- tasks: z.ZodArray<z.ZodObject<{
957
- id: z.ZodString;
958
- content: z.ZodString;
959
- status: z.ZodDefault<z.ZodEnum<["pending", "in_progress", "completed", "blocked"]>>;
960
- priority: z.ZodEnum<["high", "medium", "low"]>;
961
- dependencies: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
962
- notes: z.ZodString;
963
- }, "strip", z.ZodTypeAny, {
964
- status: "pending" | "in_progress" | "completed" | "blocked";
965
- id: string;
966
- content: string;
967
- priority: "high" | "medium" | "low";
968
- notes: string;
969
- dependencies?: string[] | undefined;
970
- }, {
971
- id: string;
972
- content: string;
973
- priority: "high" | "medium" | "low";
974
- notes: string;
975
- status?: "pending" | "in_progress" | "completed" | "blocked" | undefined;
976
- dependencies?: string[] | undefined;
977
- }>, "many">;
978
- message: z.ZodString;
979
- userFeedback: z.ZodOptional<z.ZodString>;
980
- }, "strip", z.ZodTypeAny, {
981
- message: string;
982
- tasks: {
983
- status: "pending" | "in_progress" | "completed" | "blocked";
984
- id: string;
985
- content: string;
986
- priority: "high" | "medium" | "low";
987
- notes: string;
988
- dependencies?: string[] | undefined;
989
- }[];
990
- approved: boolean;
991
- userFeedback?: string | undefined;
992
- }, {
993
- message: string;
994
- tasks: {
995
- id: string;
996
- content: string;
997
- priority: "high" | "medium" | "low";
998
- notes: string;
999
- status?: "pending" | "in_progress" | "completed" | "blocked" | undefined;
1000
- dependencies?: string[] | undefined;
1001
- }[];
1002
- approved: boolean;
1003
- userFeedback?: string | undefined;
1004
- }>> | import("@mastra/core/workflows").Step<"workflow-discovery", z.ZodObject<any, z.UnknownKeysParam, z.ZodTypeAny, {
1005
- [x: string]: any;
1006
- }, {
1007
- [x: string]: any;
1008
- }>, z.ZodObject<{
1009
- workflowName: z.ZodOptional<z.ZodString>;
1010
- action: z.ZodEnum<["create", "edit"]>;
1011
- description: z.ZodOptional<z.ZodString>;
1012
- requirements: z.ZodOptional<z.ZodString>;
1013
- projectPath: z.ZodOptional<z.ZodString>;
1014
- }, "strip", z.ZodTypeAny, {
1015
- action: "create" | "edit";
1016
- description?: string | undefined;
1017
- projectPath?: string | undefined;
1018
- workflowName?: string | undefined;
1019
- requirements?: string | undefined;
1020
- }, {
1021
- action: "create" | "edit";
1022
- description?: string | undefined;
1023
- projectPath?: string | undefined;
1024
- workflowName?: string | undefined;
1025
- requirements?: string | undefined;
1026
- }>, z.ZodObject<{
1027
- success: z.ZodBoolean;
1028
- workflows: z.ZodArray<z.ZodObject<{
1029
- name: z.ZodString;
1030
- file: z.ZodString;
1031
- description: z.ZodOptional<z.ZodString>;
1032
- inputSchema: z.ZodOptional<z.ZodAny>;
1033
- outputSchema: z.ZodOptional<z.ZodAny>;
1034
- steps: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
1035
- }, "strip", z.ZodTypeAny, {
1036
- file: string;
1037
- name: string;
1038
- description?: string | undefined;
1039
- outputSchema?: any;
1040
- inputSchema?: any;
1041
- steps?: string[] | undefined;
1042
- }, {
1043
- file: string;
1044
- name: string;
1045
- description?: string | undefined;
1046
- outputSchema?: any;
1047
- inputSchema?: any;
1048
- steps?: string[] | undefined;
1049
- }>, "many">;
1050
- mastraIndexExists: z.ZodBoolean;
1051
- message: z.ZodString;
1052
- error: z.ZodOptional<z.ZodString>;
1053
- }, "strip", z.ZodTypeAny, {
1054
- message: string;
1055
- success: boolean;
1056
- workflows: {
1057
- file: string;
1058
- name: string;
1059
- description?: string | undefined;
1060
- outputSchema?: any;
1061
- inputSchema?: any;
1062
- steps?: string[] | undefined;
1063
- }[];
1064
- mastraIndexExists: boolean;
1065
- error?: string | undefined;
1066
- }, {
1067
- message: string;
1068
- success: boolean;
1069
- workflows: {
1070
- file: string;
1071
- name: string;
1072
- description?: string | undefined;
1073
- outputSchema?: any;
1074
- inputSchema?: any;
1075
- steps?: string[] | undefined;
1076
- }[];
1077
- mastraIndexExists: boolean;
1078
- error?: string | undefined;
1079
- }>, z.ZodType<any, z.ZodTypeDef, any>, z.ZodType<any, z.ZodTypeDef, any>, import("@mastra/core/workflows").DefaultEngineType> | import("@mastra/core/workflows").Step<"project-discovery", z.ZodObject<any, z.UnknownKeysParam, z.ZodTypeAny, {
1080
- [x: string]: any;
1081
- }, {
1082
- [x: string]: any;
1083
- }>, z.ZodObject<{
1084
- success: z.ZodBoolean;
1085
- workflows: z.ZodArray<z.ZodObject<{
1086
- name: z.ZodString;
1087
- file: z.ZodString;
1088
- description: z.ZodOptional<z.ZodString>;
1089
- inputSchema: z.ZodOptional<z.ZodAny>;
1090
- outputSchema: z.ZodOptional<z.ZodAny>;
1091
- steps: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
1092
- }, "strip", z.ZodTypeAny, {
1093
- file: string;
1094
- name: string;
1095
- description?: string | undefined;
1096
- outputSchema?: any;
1097
- inputSchema?: any;
1098
- steps?: string[] | undefined;
1099
- }, {
1100
- file: string;
1101
- name: string;
1102
- description?: string | undefined;
1103
- outputSchema?: any;
1104
- inputSchema?: any;
1105
- steps?: string[] | undefined;
1106
- }>, "many">;
1107
- mastraIndexExists: z.ZodBoolean;
1108
- message: z.ZodString;
1109
- error: z.ZodOptional<z.ZodString>;
1110
- }, "strip", z.ZodTypeAny, {
1111
- message: string;
1112
- success: boolean;
1113
- workflows: {
1114
- file: string;
1115
- name: string;
1116
- description?: string | undefined;
1117
- outputSchema?: any;
1118
- inputSchema?: any;
1119
- steps?: string[] | undefined;
1120
- }[];
1121
- mastraIndexExists: boolean;
1122
- error?: string | undefined;
1123
- }, {
1124
- message: string;
1125
- success: boolean;
1126
- workflows: {
1127
- file: string;
1128
- name: string;
1129
- description?: string | undefined;
1130
- outputSchema?: any;
1131
- inputSchema?: any;
1132
- steps?: string[] | undefined;
1133
- }[];
1134
- mastraIndexExists: boolean;
1135
- error?: string | undefined;
1136
- }>, z.ZodObject<{
1137
- success: z.ZodBoolean;
1138
- structure: z.ZodObject<{
1139
- hasWorkflowsDir: z.ZodBoolean;
1140
- hasAgentsDir: z.ZodBoolean;
1141
- hasToolsDir: z.ZodBoolean;
1142
- hasMastraIndex: z.ZodBoolean;
1143
- existingWorkflows: z.ZodArray<z.ZodString, "many">;
1144
- existingAgents: z.ZodArray<z.ZodString, "many">;
1145
- existingTools: z.ZodArray<z.ZodString, "many">;
1146
- }, "strip", z.ZodTypeAny, {
1147
- hasWorkflowsDir: boolean;
1148
- hasAgentsDir: boolean;
1149
- hasToolsDir: boolean;
1150
- hasMastraIndex: boolean;
1151
- existingWorkflows: string[];
1152
- existingAgents: string[];
1153
- existingTools: string[];
1154
- }, {
1155
- hasWorkflowsDir: boolean;
1156
- hasAgentsDir: boolean;
1157
- hasToolsDir: boolean;
1158
- hasMastraIndex: boolean;
1159
- existingWorkflows: string[];
1160
- existingAgents: string[];
1161
- existingTools: string[];
1162
- }>;
1163
- dependencies: z.ZodRecord<z.ZodString, z.ZodString>;
1164
- message: z.ZodString;
1165
- error: z.ZodOptional<z.ZodString>;
1166
- }, "strip", z.ZodTypeAny, {
1167
- message: string;
1168
- success: boolean;
1169
- dependencies: Record<string, string>;
1170
- structure: {
1171
- hasWorkflowsDir: boolean;
1172
- hasAgentsDir: boolean;
1173
- hasToolsDir: boolean;
1174
- hasMastraIndex: boolean;
1175
- existingWorkflows: string[];
1176
- existingAgents: string[];
1177
- existingTools: string[];
1178
- };
1179
- error?: string | undefined;
1180
- }, {
1181
- message: string;
1182
- success: boolean;
1183
- dependencies: Record<string, string>;
1184
- structure: {
1185
- hasWorkflowsDir: boolean;
1186
- hasAgentsDir: boolean;
1187
- hasToolsDir: boolean;
1188
- hasMastraIndex: boolean;
1189
- existingWorkflows: string[];
1190
- existingAgents: string[];
1191
- existingTools: string[];
1192
- };
1193
- error?: string | undefined;
1194
- }>, z.ZodType<any, z.ZodTypeDef, any>, z.ZodType<any, z.ZodTypeDef, any>, import("@mastra/core/workflows").DefaultEngineType> | import("@mastra/core/workflows").Step<"workflow-research", z.ZodObject<any, z.UnknownKeysParam, z.ZodTypeAny, {
1195
- [x: string]: any;
1196
- }, {
1197
- [x: string]: any;
1198
- }>, z.ZodObject<{
1199
- success: z.ZodBoolean;
1200
- structure: z.ZodObject<{
1201
- hasWorkflowsDir: z.ZodBoolean;
1202
- hasAgentsDir: z.ZodBoolean;
1203
- hasToolsDir: z.ZodBoolean;
1204
- hasMastraIndex: z.ZodBoolean;
1205
- existingWorkflows: z.ZodArray<z.ZodString, "many">;
1206
- existingAgents: z.ZodArray<z.ZodString, "many">;
1207
- existingTools: z.ZodArray<z.ZodString, "many">;
1208
- }, "strip", z.ZodTypeAny, {
1209
- hasWorkflowsDir: boolean;
1210
- hasAgentsDir: boolean;
1211
- hasToolsDir: boolean;
1212
- hasMastraIndex: boolean;
1213
- existingWorkflows: string[];
1214
- existingAgents: string[];
1215
- existingTools: string[];
1216
- }, {
1217
- hasWorkflowsDir: boolean;
1218
- hasAgentsDir: boolean;
1219
- hasToolsDir: boolean;
1220
- hasMastraIndex: boolean;
1221
- existingWorkflows: string[];
1222
- existingAgents: string[];
1223
- existingTools: string[];
1224
- }>;
1225
- dependencies: z.ZodRecord<z.ZodString, z.ZodString>;
1226
- message: z.ZodString;
1227
- error: z.ZodOptional<z.ZodString>;
1228
- }, "strip", z.ZodTypeAny, {
1229
- message: string;
1230
- success: boolean;
1231
- dependencies: Record<string, string>;
1232
- structure: {
1233
- hasWorkflowsDir: boolean;
1234
- hasAgentsDir: boolean;
1235
- hasToolsDir: boolean;
1236
- hasMastraIndex: boolean;
1237
- existingWorkflows: string[];
1238
- existingAgents: string[];
1239
- existingTools: string[];
1240
- };
1241
- error?: string | undefined;
1242
- }, {
1243
- message: string;
1244
- success: boolean;
1245
- dependencies: Record<string, string>;
1246
- structure: {
1247
- hasWorkflowsDir: boolean;
1248
- hasAgentsDir: boolean;
1249
- hasToolsDir: boolean;
1250
- hasMastraIndex: boolean;
1251
- existingWorkflows: string[];
1252
- existingAgents: string[];
1253
- existingTools: string[];
1254
- };
1255
- error?: string | undefined;
1256
- }>, z.ZodObject<{
1257
- success: z.ZodBoolean;
1258
- documentation: z.ZodObject<{
1259
- workflowPatterns: z.ZodArray<z.ZodString, "many">;
1260
- stepExamples: z.ZodArray<z.ZodString, "many">;
1261
- bestPractices: z.ZodArray<z.ZodString, "many">;
1262
- }, "strip", z.ZodTypeAny, {
1263
- workflowPatterns: string[];
1264
- stepExamples: string[];
1265
- bestPractices: string[];
1266
- }, {
1267
- workflowPatterns: string[];
1268
- stepExamples: string[];
1269
- bestPractices: string[];
1270
- }>;
1271
- webResources: z.ZodArray<z.ZodObject<{
1272
- title: z.ZodString;
1273
- url: z.ZodString;
1274
- snippet: z.ZodString;
1275
- relevance: z.ZodNumber;
1276
- }, "strip", z.ZodTypeAny, {
1277
- url: string;
1278
- relevance: number;
1279
- title: string;
1280
- snippet: string;
1281
- }, {
1282
- url: string;
1283
- relevance: number;
1284
- title: string;
1285
- snippet: string;
1286
- }>, "many">;
1287
- message: z.ZodString;
1288
- error: z.ZodOptional<z.ZodString>;
1289
- }, "strip", z.ZodTypeAny, {
1290
- message: string;
1291
- success: boolean;
1292
- documentation: {
1293
- workflowPatterns: string[];
1294
- stepExamples: string[];
1295
- bestPractices: string[];
1296
- };
1297
- webResources: {
1298
- url: string;
1299
- relevance: number;
1300
- title: string;
1301
- snippet: string;
1302
- }[];
1303
- error?: string | undefined;
1304
- }, {
1305
- message: string;
1306
- success: boolean;
1307
- documentation: {
1308
- workflowPatterns: string[];
1309
- stepExamples: string[];
1310
- bestPractices: string[];
1311
- };
1312
- webResources: {
1313
- url: string;
1314
- relevance: number;
1315
- title: string;
1316
- snippet: string;
1317
- }[];
1318
- error?: string | undefined;
1319
- }>, z.ZodType<any, z.ZodTypeDef, any>, z.ZodType<any, z.ZodTypeDef, any>, import("@mastra/core/workflows").DefaultEngineType> | import("@mastra/core/workflows").Step<"task-execution", z.ZodObject<any, z.UnknownKeysParam, z.ZodTypeAny, {
1320
- [x: string]: any;
1321
- }, {
1322
- [x: string]: any;
1323
- }>, z.ZodObject<{
1324
- action: z.ZodEnum<["create", "edit"]>;
1325
- workflowName: z.ZodOptional<z.ZodString>;
1326
- description: z.ZodOptional<z.ZodString>;
1327
- requirements: z.ZodOptional<z.ZodString>;
1328
- tasks: z.ZodArray<z.ZodObject<{
1329
- id: z.ZodString;
1330
- content: z.ZodString;
1331
- status: z.ZodDefault<z.ZodEnum<["pending", "in_progress", "completed", "blocked"]>>;
1332
- priority: z.ZodEnum<["high", "medium", "low"]>;
1333
- dependencies: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
1334
- notes: z.ZodString;
1335
- }, "strip", z.ZodTypeAny, {
1336
- status: "pending" | "in_progress" | "completed" | "blocked";
1337
- id: string;
1338
- content: string;
1339
- priority: "high" | "medium" | "low";
1340
- notes: string;
1341
- dependencies?: string[] | undefined;
1342
- }, {
1343
- id: string;
1344
- content: string;
1345
- priority: "high" | "medium" | "low";
1346
- notes: string;
1347
- status?: "pending" | "in_progress" | "completed" | "blocked" | undefined;
1348
- dependencies?: string[] | undefined;
1349
- }>, "many">;
1350
- discoveredWorkflows: z.ZodArray<z.ZodAny, "many">;
1351
- projectStructure: z.ZodAny;
1352
- research: z.ZodAny;
1353
- projectPath: z.ZodOptional<z.ZodString>;
1354
- }, "strip", z.ZodTypeAny, {
1355
- action: "create" | "edit";
1356
- tasks: {
1357
- status: "pending" | "in_progress" | "completed" | "blocked";
1358
- id: string;
1359
- content: string;
1360
- priority: "high" | "medium" | "low";
1361
- notes: string;
1362
- dependencies?: string[] | undefined;
1363
- }[];
1364
- discoveredWorkflows: any[];
1365
- description?: string | undefined;
1366
- projectPath?: string | undefined;
1367
- workflowName?: string | undefined;
1368
- requirements?: string | undefined;
1369
- projectStructure?: any;
1370
- research?: any;
1371
- }, {
1372
- action: "create" | "edit";
1373
- tasks: {
1374
- id: string;
1375
- content: string;
1376
- priority: "high" | "medium" | "low";
1377
- notes: string;
1378
- status?: "pending" | "in_progress" | "completed" | "blocked" | undefined;
1379
- dependencies?: string[] | undefined;
1380
- }[];
1381
- discoveredWorkflows: any[];
1382
- description?: string | undefined;
1383
- projectPath?: string | undefined;
1384
- workflowName?: string | undefined;
1385
- requirements?: string | undefined;
1386
- projectStructure?: any;
1387
- research?: any;
1388
- }>, z.ZodObject<{
1389
- success: z.ZodBoolean;
1390
- filesModified: z.ZodArray<z.ZodString, "many">;
1391
- validationResults: z.ZodObject<{
1392
- passed: z.ZodBoolean;
1393
- errors: z.ZodArray<z.ZodString, "many">;
1394
- warnings: z.ZodArray<z.ZodString, "many">;
1395
- }, "strip", z.ZodTypeAny, {
1396
- errors: string[];
1397
- warnings: string[];
1398
- passed: boolean;
1399
- }, {
1400
- errors: string[];
1401
- warnings: string[];
1402
- passed: boolean;
1403
- }>;
1404
- completedTasks: z.ZodArray<z.ZodString, "many">;
1405
- message: z.ZodString;
1406
- error: z.ZodOptional<z.ZodString>;
1407
- }, "strip", z.ZodTypeAny, {
1408
- message: string;
1409
- success: boolean;
1410
- validationResults: {
1411
- errors: string[];
1412
- warnings: string[];
1413
- passed: boolean;
1414
- };
1415
- completedTasks: string[];
1416
- filesModified: string[];
1417
- error?: string | undefined;
1418
- }, {
1419
- message: string;
1420
- success: boolean;
1421
- validationResults: {
1422
- errors: string[];
1423
- warnings: string[];
1424
- passed: boolean;
1425
- };
1426
- completedTasks: string[];
1427
- filesModified: string[];
1428
- error?: string | undefined;
1429
- }>, z.ZodObject<{
1430
- answers: z.ZodArray<z.ZodObject<{
1431
- questionId: z.ZodString;
1432
- answer: z.ZodString;
1433
- }, "strip", z.ZodTypeAny, {
1434
- questionId: string;
1435
- answer: string;
1436
- }, {
1437
- questionId: string;
1438
- answer: string;
1439
- }>, "many">;
1440
- }, "strip", z.ZodTypeAny, {
1441
- answers: {
1442
- questionId: string;
1443
- answer: string;
1444
- }[];
1445
- }, {
1446
- answers: {
1447
- questionId: string;
1448
- answer: string;
1449
- }[];
1450
- }>, z.ZodObject<{
1451
- questions: z.ZodArray<z.ZodObject<{
1452
- id: z.ZodString;
1453
- question: z.ZodString;
1454
- type: z.ZodEnum<["choice", "text", "boolean"]>;
1455
- options: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
1456
- context: z.ZodOptional<z.ZodString>;
1457
- }, "strip", z.ZodTypeAny, {
1458
- type: "boolean" | "text" | "choice";
1459
- id: string;
1460
- question: string;
1461
- options?: string[] | undefined;
1462
- context?: string | undefined;
1463
- }, {
1464
- type: "boolean" | "text" | "choice";
1465
- id: string;
1466
- question: string;
1467
- options?: string[] | undefined;
1468
- context?: string | undefined;
1469
- }>, "many">;
1470
- currentProgress: z.ZodString;
1471
- completedTasks: z.ZodArray<z.ZodString, "many">;
1472
- message: z.ZodString;
1473
- }, "strip", z.ZodTypeAny, {
1474
- message: string;
1475
- questions: {
1476
- type: "boolean" | "text" | "choice";
1477
- id: string;
1478
- question: string;
1479
- options?: string[] | undefined;
1480
- context?: string | undefined;
1481
- }[];
1482
- currentProgress: string;
1483
- completedTasks: string[];
1484
- }, {
1485
- message: string;
1486
- questions: {
1487
- type: "boolean" | "text" | "choice";
1488
- id: string;
1489
- question: string;
1490
- options?: string[] | undefined;
1491
- context?: string | undefined;
1492
- }[];
1493
- currentProgress: string;
1494
- completedTasks: string[];
1495
- }>, import("@mastra/core/workflows").DefaultEngineType>)[], "workflow-builder", z.ZodObject<any, z.UnknownKeysParam, z.ZodTypeAny, {
1496
- [x: string]: any;
1497
- }, {
1498
- [x: string]: any;
1499
- }>, z.ZodObject<{
1500
- workflowName: z.ZodOptional<z.ZodString>;
1501
- action: z.ZodEnum<["create", "edit"]>;
1502
- description: z.ZodOptional<z.ZodString>;
1503
- requirements: z.ZodOptional<z.ZodString>;
1504
- projectPath: z.ZodOptional<z.ZodString>;
1505
- }, "strip", z.ZodTypeAny, {
1506
- action: "create" | "edit";
1507
- description?: string | undefined;
1508
- projectPath?: string | undefined;
1509
- workflowName?: string | undefined;
1510
- requirements?: string | undefined;
1511
- }, {
1512
- action: "create" | "edit";
1513
- description?: string | undefined;
1514
- projectPath?: string | undefined;
1515
- workflowName?: string | undefined;
1516
- requirements?: string | undefined;
1517
- }>, z.ZodObject<{
1518
- success: z.ZodBoolean;
1519
- action: z.ZodEnum<["create", "edit"]>;
1520
- workflowName: z.ZodOptional<z.ZodString>;
1521
- workflowFile: z.ZodOptional<z.ZodString>;
1522
- discovery: z.ZodOptional<z.ZodObject<{
1523
- success: z.ZodBoolean;
1524
- workflows: z.ZodArray<z.ZodObject<{
1525
- name: z.ZodString;
1526
- file: z.ZodString;
1527
- description: z.ZodOptional<z.ZodString>;
1528
- inputSchema: z.ZodOptional<z.ZodAny>;
1529
- outputSchema: z.ZodOptional<z.ZodAny>;
1530
- steps: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
1531
- }, "strip", z.ZodTypeAny, {
1532
- file: string;
1533
- name: string;
1534
- description?: string | undefined;
1535
- outputSchema?: any;
1536
- inputSchema?: any;
1537
- steps?: string[] | undefined;
1538
- }, {
1539
- file: string;
1540
- name: string;
1541
- description?: string | undefined;
1542
- outputSchema?: any;
1543
- inputSchema?: any;
1544
- steps?: string[] | undefined;
1545
- }>, "many">;
1546
- mastraIndexExists: z.ZodBoolean;
1547
- message: z.ZodString;
1548
- error: z.ZodOptional<z.ZodString>;
1549
- }, "strip", z.ZodTypeAny, {
1550
- message: string;
1551
- success: boolean;
1552
- workflows: {
1553
- file: string;
1554
- name: string;
1555
- description?: string | undefined;
1556
- outputSchema?: any;
1557
- inputSchema?: any;
1558
- steps?: string[] | undefined;
1559
- }[];
1560
- mastraIndexExists: boolean;
1561
- error?: string | undefined;
1562
- }, {
1563
- message: string;
1564
- success: boolean;
1565
- workflows: {
1566
- file: string;
1567
- name: string;
1568
- description?: string | undefined;
1569
- outputSchema?: any;
1570
- inputSchema?: any;
1571
- steps?: string[] | undefined;
1572
- }[];
1573
- mastraIndexExists: boolean;
1574
- error?: string | undefined;
1575
- }>>;
1576
- projectStructure: z.ZodOptional<z.ZodObject<{
1577
- success: z.ZodBoolean;
1578
- structure: z.ZodObject<{
1579
- hasWorkflowsDir: z.ZodBoolean;
1580
- hasAgentsDir: z.ZodBoolean;
1581
- hasToolsDir: z.ZodBoolean;
1582
- hasMastraIndex: z.ZodBoolean;
1583
- existingWorkflows: z.ZodArray<z.ZodString, "many">;
1584
- existingAgents: z.ZodArray<z.ZodString, "many">;
1585
- existingTools: z.ZodArray<z.ZodString, "many">;
1586
- }, "strip", z.ZodTypeAny, {
1587
- hasWorkflowsDir: boolean;
1588
- hasAgentsDir: boolean;
1589
- hasToolsDir: boolean;
1590
- hasMastraIndex: boolean;
1591
- existingWorkflows: string[];
1592
- existingAgents: string[];
1593
- existingTools: string[];
1594
- }, {
1595
- hasWorkflowsDir: boolean;
1596
- hasAgentsDir: boolean;
1597
- hasToolsDir: boolean;
1598
- hasMastraIndex: boolean;
1599
- existingWorkflows: string[];
1600
- existingAgents: string[];
1601
- existingTools: string[];
1602
- }>;
1603
- dependencies: z.ZodRecord<z.ZodString, z.ZodString>;
1604
- message: z.ZodString;
1605
- error: z.ZodOptional<z.ZodString>;
1606
- }, "strip", z.ZodTypeAny, {
1607
- message: string;
1608
- success: boolean;
1609
- dependencies: Record<string, string>;
1610
- structure: {
1611
- hasWorkflowsDir: boolean;
1612
- hasAgentsDir: boolean;
1613
- hasToolsDir: boolean;
1614
- hasMastraIndex: boolean;
1615
- existingWorkflows: string[];
1616
- existingAgents: string[];
1617
- existingTools: string[];
1618
- };
1619
- error?: string | undefined;
1620
- }, {
1621
- message: string;
1622
- success: boolean;
1623
- dependencies: Record<string, string>;
1624
- structure: {
1625
- hasWorkflowsDir: boolean;
1626
- hasAgentsDir: boolean;
1627
- hasToolsDir: boolean;
1628
- hasMastraIndex: boolean;
1629
- existingWorkflows: string[];
1630
- existingAgents: string[];
1631
- existingTools: string[];
1632
- };
1633
- error?: string | undefined;
1634
- }>>;
1635
- research: z.ZodOptional<z.ZodObject<{
1636
- success: z.ZodBoolean;
1637
- documentation: z.ZodObject<{
1638
- workflowPatterns: z.ZodArray<z.ZodString, "many">;
1639
- stepExamples: z.ZodArray<z.ZodString, "many">;
1640
- bestPractices: z.ZodArray<z.ZodString, "many">;
1641
- }, "strip", z.ZodTypeAny, {
1642
- workflowPatterns: string[];
1643
- stepExamples: string[];
1644
- bestPractices: string[];
1645
- }, {
1646
- workflowPatterns: string[];
1647
- stepExamples: string[];
1648
- bestPractices: string[];
1649
- }>;
1650
- webResources: z.ZodArray<z.ZodObject<{
1651
- title: z.ZodString;
1652
- url: z.ZodString;
1653
- snippet: z.ZodString;
1654
- relevance: z.ZodNumber;
1655
- }, "strip", z.ZodTypeAny, {
1656
- url: string;
1657
- relevance: number;
1658
- title: string;
1659
- snippet: string;
1660
- }, {
1661
- url: string;
1662
- relevance: number;
1663
- title: string;
1664
- snippet: string;
1665
- }>, "many">;
1666
- message: z.ZodString;
1667
- error: z.ZodOptional<z.ZodString>;
1668
- }, "strip", z.ZodTypeAny, {
1669
- message: string;
1670
- success: boolean;
1671
- documentation: {
1672
- workflowPatterns: string[];
1673
- stepExamples: string[];
1674
- bestPractices: string[];
1675
- };
1676
- webResources: {
1677
- url: string;
1678
- relevance: number;
1679
- title: string;
1680
- snippet: string;
1681
- }[];
1682
- error?: string | undefined;
1683
- }, {
1684
- message: string;
1685
- success: boolean;
1686
- documentation: {
1687
- workflowPatterns: string[];
1688
- stepExamples: string[];
1689
- bestPractices: string[];
1690
- };
1691
- webResources: {
1692
- url: string;
1693
- relevance: number;
1694
- title: string;
1695
- snippet: string;
1696
- }[];
1697
- error?: string | undefined;
1698
- }>>;
1699
- planning: z.ZodOptional<z.ZodObject<{
1700
- success: z.ZodBoolean;
1701
- tasks: z.ZodArray<z.ZodObject<{
1702
- id: z.ZodString;
1703
- content: z.ZodString;
1704
- status: z.ZodDefault<z.ZodEnum<["pending", "in_progress", "completed", "blocked"]>>;
1705
- priority: z.ZodEnum<["high", "medium", "low"]>;
1706
- dependencies: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
1707
- notes: z.ZodString;
1708
- }, "strip", z.ZodTypeAny, {
1709
- status: "pending" | "in_progress" | "completed" | "blocked";
1710
- id: string;
1711
- content: string;
1712
- priority: "high" | "medium" | "low";
1713
- notes: string;
1714
- dependencies?: string[] | undefined;
1715
- }, {
1716
- id: string;
1717
- content: string;
1718
- priority: "high" | "medium" | "low";
1719
- notes: string;
1720
- status?: "pending" | "in_progress" | "completed" | "blocked" | undefined;
1721
- dependencies?: string[] | undefined;
1722
- }>, "many">;
1723
- questions: z.ZodArray<z.ZodObject<{
1724
- id: z.ZodString;
1725
- question: z.ZodString;
1726
- type: z.ZodEnum<["choice", "text", "boolean"]>;
1727
- options: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
1728
- context: z.ZodOptional<z.ZodString>;
1729
- }, "strip", z.ZodTypeAny, {
1730
- type: "boolean" | "text" | "choice";
1731
- id: string;
1732
- question: string;
1733
- options?: string[] | undefined;
1734
- context?: string | undefined;
1735
- }, {
1736
- type: "boolean" | "text" | "choice";
1737
- id: string;
1738
- question: string;
1739
- options?: string[] | undefined;
1740
- context?: string | undefined;
1741
- }>, "many">;
1742
- reasoning: z.ZodString;
1743
- planComplete: z.ZodBoolean;
1744
- message: z.ZodString;
1745
- error: z.ZodOptional<z.ZodString>;
1746
- allPreviousQuestions: z.ZodOptional<z.ZodArray<z.ZodAny, "many">>;
1747
- allPreviousAnswers: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
1748
- }, "strip", z.ZodTypeAny, {
1749
- message: string;
1750
- success: boolean;
1751
- reasoning: string;
1752
- tasks: {
1753
- status: "pending" | "in_progress" | "completed" | "blocked";
1754
- id: string;
1755
- content: string;
1756
- priority: "high" | "medium" | "low";
1757
- notes: string;
1758
- dependencies?: string[] | undefined;
1759
- }[];
1760
- questions: {
1761
- type: "boolean" | "text" | "choice";
1762
- id: string;
1763
- question: string;
1764
- options?: string[] | undefined;
1765
- context?: string | undefined;
1766
- }[];
1767
- planComplete: boolean;
1768
- error?: string | undefined;
1769
- allPreviousQuestions?: any[] | undefined;
1770
- allPreviousAnswers?: Record<string, string> | undefined;
1771
- }, {
1772
- message: string;
1773
- success: boolean;
1774
- reasoning: string;
1775
- tasks: {
1776
- id: string;
1777
- content: string;
1778
- priority: "high" | "medium" | "low";
1779
- notes: string;
1780
- status?: "pending" | "in_progress" | "completed" | "blocked" | undefined;
1781
- dependencies?: string[] | undefined;
1782
- }[];
1783
- questions: {
1784
- type: "boolean" | "text" | "choice";
1785
- id: string;
1786
- question: string;
1787
- options?: string[] | undefined;
1788
- context?: string | undefined;
1789
- }[];
1790
- planComplete: boolean;
1791
- error?: string | undefined;
1792
- allPreviousQuestions?: any[] | undefined;
1793
- allPreviousAnswers?: Record<string, string> | undefined;
1794
- }>>;
1795
- taskManagement: z.ZodOptional<z.ZodObject<{
1796
- success: z.ZodBoolean;
1797
- tasks: z.ZodArray<z.ZodObject<{
1798
- id: z.ZodString;
1799
- content: z.ZodString;
1800
- status: z.ZodDefault<z.ZodEnum<["pending", "in_progress", "completed", "blocked"]>>;
1801
- priority: z.ZodEnum<["high", "medium", "low"]>;
1802
- dependencies: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
1803
- notes: z.ZodString;
1804
- }, "strip", z.ZodTypeAny, {
1805
- status: "pending" | "in_progress" | "completed" | "blocked";
1806
- id: string;
1807
- content: string;
1808
- priority: "high" | "medium" | "low";
1809
- notes: string;
1810
- dependencies?: string[] | undefined;
1811
- }, {
1812
- id: string;
1813
- content: string;
1814
- priority: "high" | "medium" | "low";
1815
- notes: string;
1816
- status?: "pending" | "in_progress" | "completed" | "blocked" | undefined;
1817
- dependencies?: string[] | undefined;
1818
- }>, "many">;
1819
- message: z.ZodString;
1820
- error: z.ZodOptional<z.ZodString>;
1821
- }, "strip", z.ZodTypeAny, {
1822
- message: string;
1823
- success: boolean;
1824
- tasks: {
1825
- status: "pending" | "in_progress" | "completed" | "blocked";
1826
- id: string;
1827
- content: string;
1828
- priority: "high" | "medium" | "low";
1829
- notes: string;
1830
- dependencies?: string[] | undefined;
1831
- }[];
1832
- error?: string | undefined;
1833
- }, {
1834
- message: string;
1835
- success: boolean;
1836
- tasks: {
1837
- id: string;
1838
- content: string;
1839
- priority: "high" | "medium" | "low";
1840
- notes: string;
1841
- status?: "pending" | "in_progress" | "completed" | "blocked" | undefined;
1842
- dependencies?: string[] | undefined;
1843
- }[];
1844
- error?: string | undefined;
1845
- }>>;
1846
- execution: z.ZodOptional<z.ZodObject<{
1847
- success: z.ZodBoolean;
1848
- filesModified: z.ZodArray<z.ZodString, "many">;
1849
- validationResults: z.ZodObject<{
1850
- passed: z.ZodBoolean;
1851
- errors: z.ZodArray<z.ZodString, "many">;
1852
- warnings: z.ZodArray<z.ZodString, "many">;
1853
- }, "strip", z.ZodTypeAny, {
1854
- errors: string[];
1855
- warnings: string[];
1856
- passed: boolean;
1857
- }, {
1858
- errors: string[];
1859
- warnings: string[];
1860
- passed: boolean;
1861
- }>;
1862
- completedTasks: z.ZodArray<z.ZodString, "many">;
1863
- message: z.ZodString;
1864
- error: z.ZodOptional<z.ZodString>;
1865
- }, "strip", z.ZodTypeAny, {
1866
- message: string;
1867
- success: boolean;
1868
- validationResults: {
1869
- errors: string[];
1870
- warnings: string[];
1871
- passed: boolean;
1872
- };
1873
- completedTasks: string[];
1874
- filesModified: string[];
1875
- error?: string | undefined;
1876
- }, {
1877
- message: string;
1878
- success: boolean;
1879
- validationResults: {
1880
- errors: string[];
1881
- warnings: string[];
1882
- passed: boolean;
1883
- };
1884
- completedTasks: string[];
1885
- filesModified: string[];
1886
- error?: string | undefined;
1887
- }>>;
1888
- needsUserInput: z.ZodOptional<z.ZodBoolean>;
1889
- questions: z.ZodOptional<z.ZodArray<z.ZodObject<{
1890
- id: z.ZodString;
1891
- question: z.ZodString;
1892
- type: z.ZodEnum<["choice", "text", "boolean"]>;
1893
- options: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
1894
- context: z.ZodOptional<z.ZodString>;
1895
- }, "strip", z.ZodTypeAny, {
1896
- type: "boolean" | "text" | "choice";
1897
- id: string;
1898
- question: string;
1899
- options?: string[] | undefined;
1900
- context?: string | undefined;
1901
- }, {
1902
- type: "boolean" | "text" | "choice";
1903
- id: string;
1904
- question: string;
1905
- options?: string[] | undefined;
1906
- context?: string | undefined;
1907
- }>, "many">>;
1908
- message: z.ZodString;
1909
- nextSteps: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
1910
- error: z.ZodOptional<z.ZodString>;
1911
- }, "strip", z.ZodTypeAny, {
1912
- message: string;
1913
- success: boolean;
1914
- action: "create" | "edit";
1915
- error?: string | undefined;
1916
- nextSteps?: string[] | undefined;
1917
- questions?: {
1918
- type: "boolean" | "text" | "choice";
1919
- id: string;
1920
- question: string;
1921
- options?: string[] | undefined;
1922
- context?: string | undefined;
1923
- }[] | undefined;
1924
- workflowName?: string | undefined;
1925
- projectStructure?: {
1926
- message: string;
1927
- success: boolean;
1928
- dependencies: Record<string, string>;
1929
- structure: {
1930
- hasWorkflowsDir: boolean;
1931
- hasAgentsDir: boolean;
1932
- hasToolsDir: boolean;
1933
- hasMastraIndex: boolean;
1934
- existingWorkflows: string[];
1935
- existingAgents: string[];
1936
- existingTools: string[];
1937
- };
1938
- error?: string | undefined;
1939
- } | undefined;
1940
- research?: {
1941
- message: string;
1942
- success: boolean;
1943
- documentation: {
1944
- workflowPatterns: string[];
1945
- stepExamples: string[];
1946
- bestPractices: string[];
1947
- };
1948
- webResources: {
1949
- url: string;
1950
- relevance: number;
1951
- title: string;
1952
- snippet: string;
1953
- }[];
1954
- error?: string | undefined;
1955
- } | undefined;
1956
- workflowFile?: string | undefined;
1957
- discovery?: {
1958
- message: string;
1959
- success: boolean;
1960
- workflows: {
1961
- file: string;
1962
- name: string;
1963
- description?: string | undefined;
1964
- outputSchema?: any;
1965
- inputSchema?: any;
1966
- steps?: string[] | undefined;
1967
- }[];
1968
- mastraIndexExists: boolean;
1969
- error?: string | undefined;
1970
- } | undefined;
1971
- planning?: {
1972
- message: string;
1973
- success: boolean;
1974
- reasoning: string;
1975
- tasks: {
1976
- status: "pending" | "in_progress" | "completed" | "blocked";
1977
- id: string;
1978
- content: string;
1979
- priority: "high" | "medium" | "low";
1980
- notes: string;
1981
- dependencies?: string[] | undefined;
1982
- }[];
1983
- questions: {
1984
- type: "boolean" | "text" | "choice";
1985
- id: string;
1986
- question: string;
1987
- options?: string[] | undefined;
1988
- context?: string | undefined;
1989
- }[];
1990
- planComplete: boolean;
1991
- error?: string | undefined;
1992
- allPreviousQuestions?: any[] | undefined;
1993
- allPreviousAnswers?: Record<string, string> | undefined;
1994
- } | undefined;
1995
- taskManagement?: {
1996
- message: string;
1997
- success: boolean;
1998
- tasks: {
1999
- status: "pending" | "in_progress" | "completed" | "blocked";
2000
- id: string;
2001
- content: string;
2002
- priority: "high" | "medium" | "low";
2003
- notes: string;
2004
- dependencies?: string[] | undefined;
2005
- }[];
2006
- error?: string | undefined;
2007
- } | undefined;
2008
- execution?: {
2009
- message: string;
2010
- success: boolean;
2011
- validationResults: {
2012
- errors: string[];
2013
- warnings: string[];
2014
- passed: boolean;
2015
- };
2016
- completedTasks: string[];
2017
- filesModified: string[];
2018
- error?: string | undefined;
2019
- } | undefined;
2020
- needsUserInput?: boolean | undefined;
2021
- }, {
2022
- message: string;
2023
- success: boolean;
2024
- action: "create" | "edit";
2025
- error?: string | undefined;
2026
- nextSteps?: string[] | undefined;
2027
- questions?: {
2028
- type: "boolean" | "text" | "choice";
2029
- id: string;
2030
- question: string;
2031
- options?: string[] | undefined;
2032
- context?: string | undefined;
2033
- }[] | undefined;
2034
- workflowName?: string | undefined;
2035
- projectStructure?: {
2036
- message: string;
2037
- success: boolean;
2038
- dependencies: Record<string, string>;
2039
- structure: {
2040
- hasWorkflowsDir: boolean;
2041
- hasAgentsDir: boolean;
2042
- hasToolsDir: boolean;
2043
- hasMastraIndex: boolean;
2044
- existingWorkflows: string[];
2045
- existingAgents: string[];
2046
- existingTools: string[];
2047
- };
2048
- error?: string | undefined;
2049
- } | undefined;
2050
- research?: {
2051
- message: string;
2052
- success: boolean;
2053
- documentation: {
2054
- workflowPatterns: string[];
2055
- stepExamples: string[];
2056
- bestPractices: string[];
2057
- };
2058
- webResources: {
2059
- url: string;
2060
- relevance: number;
2061
- title: string;
2062
- snippet: string;
2063
- }[];
2064
- error?: string | undefined;
2065
- } | undefined;
2066
- workflowFile?: string | undefined;
2067
- discovery?: {
2068
- message: string;
2069
- success: boolean;
2070
- workflows: {
2071
- file: string;
2072
- name: string;
2073
- description?: string | undefined;
2074
- outputSchema?: any;
2075
- inputSchema?: any;
2076
- steps?: string[] | undefined;
2077
- }[];
2078
- mastraIndexExists: boolean;
2079
- error?: string | undefined;
2080
- } | undefined;
2081
- planning?: {
2082
- message: string;
2083
- success: boolean;
2084
- reasoning: string;
2085
- tasks: {
2086
- id: string;
2087
- content: string;
2088
- priority: "high" | "medium" | "low";
2089
- notes: string;
2090
- status?: "pending" | "in_progress" | "completed" | "blocked" | undefined;
2091
- dependencies?: string[] | undefined;
2092
- }[];
2093
- questions: {
2094
- type: "boolean" | "text" | "choice";
2095
- id: string;
2096
- question: string;
2097
- options?: string[] | undefined;
2098
- context?: string | undefined;
2099
- }[];
2100
- planComplete: boolean;
2101
- error?: string | undefined;
2102
- allPreviousQuestions?: any[] | undefined;
2103
- allPreviousAnswers?: Record<string, string> | undefined;
2104
- } | undefined;
2105
- taskManagement?: {
2106
- message: string;
2107
- success: boolean;
2108
- tasks: {
2109
- id: string;
2110
- content: string;
2111
- priority: "high" | "medium" | "low";
2112
- notes: string;
2113
- status?: "pending" | "in_progress" | "completed" | "blocked" | undefined;
2114
- dependencies?: string[] | undefined;
2115
- }[];
2116
- error?: string | undefined;
2117
- } | undefined;
2118
- execution?: {
2119
- message: string;
2120
- success: boolean;
2121
- validationResults: {
2122
- errors: string[];
2123
- warnings: string[];
2124
- passed: boolean;
2125
- };
2126
- completedTasks: string[];
2127
- filesModified: string[];
2128
- error?: string | undefined;
2129
- } | undefined;
2130
- needsUserInput?: boolean | undefined;
2131
- }>, z.ZodObject<{
2132
- success: z.ZodBoolean;
2133
- action: z.ZodEnum<["create", "edit"]>;
2134
- workflowName: z.ZodOptional<z.ZodString>;
2135
- workflowFile: z.ZodOptional<z.ZodString>;
2136
- discovery: z.ZodOptional<z.ZodObject<{
2137
- success: z.ZodBoolean;
2138
- workflows: z.ZodArray<z.ZodObject<{
2139
- name: z.ZodString;
2140
- file: z.ZodString;
2141
- description: z.ZodOptional<z.ZodString>;
2142
- inputSchema: z.ZodOptional<z.ZodAny>;
2143
- outputSchema: z.ZodOptional<z.ZodAny>;
2144
- steps: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
2145
- }, "strip", z.ZodTypeAny, {
2146
- file: string;
2147
- name: string;
2148
- description?: string | undefined;
2149
- outputSchema?: any;
2150
- inputSchema?: any;
2151
- steps?: string[] | undefined;
2152
- }, {
2153
- file: string;
2154
- name: string;
2155
- description?: string | undefined;
2156
- outputSchema?: any;
2157
- inputSchema?: any;
2158
- steps?: string[] | undefined;
2159
- }>, "many">;
2160
- mastraIndexExists: z.ZodBoolean;
2161
- message: z.ZodString;
2162
- error: z.ZodOptional<z.ZodString>;
2163
- }, "strip", z.ZodTypeAny, {
2164
- message: string;
2165
- success: boolean;
2166
- workflows: {
2167
- file: string;
2168
- name: string;
2169
- description?: string | undefined;
2170
- outputSchema?: any;
2171
- inputSchema?: any;
2172
- steps?: string[] | undefined;
2173
- }[];
2174
- mastraIndexExists: boolean;
2175
- error?: string | undefined;
2176
- }, {
2177
- message: string;
2178
- success: boolean;
2179
- workflows: {
2180
- file: string;
2181
- name: string;
2182
- description?: string | undefined;
2183
- outputSchema?: any;
2184
- inputSchema?: any;
2185
- steps?: string[] | undefined;
2186
- }[];
2187
- mastraIndexExists: boolean;
2188
- error?: string | undefined;
2189
- }>>;
2190
- projectStructure: z.ZodOptional<z.ZodObject<{
2191
- success: z.ZodBoolean;
2192
- structure: z.ZodObject<{
2193
- hasWorkflowsDir: z.ZodBoolean;
2194
- hasAgentsDir: z.ZodBoolean;
2195
- hasToolsDir: z.ZodBoolean;
2196
- hasMastraIndex: z.ZodBoolean;
2197
- existingWorkflows: z.ZodArray<z.ZodString, "many">;
2198
- existingAgents: z.ZodArray<z.ZodString, "many">;
2199
- existingTools: z.ZodArray<z.ZodString, "many">;
2200
- }, "strip", z.ZodTypeAny, {
2201
- hasWorkflowsDir: boolean;
2202
- hasAgentsDir: boolean;
2203
- hasToolsDir: boolean;
2204
- hasMastraIndex: boolean;
2205
- existingWorkflows: string[];
2206
- existingAgents: string[];
2207
- existingTools: string[];
2208
- }, {
2209
- hasWorkflowsDir: boolean;
2210
- hasAgentsDir: boolean;
2211
- hasToolsDir: boolean;
2212
- hasMastraIndex: boolean;
2213
- existingWorkflows: string[];
2214
- existingAgents: string[];
2215
- existingTools: string[];
2216
- }>;
2217
- dependencies: z.ZodRecord<z.ZodString, z.ZodString>;
2218
- message: z.ZodString;
2219
- error: z.ZodOptional<z.ZodString>;
2220
- }, "strip", z.ZodTypeAny, {
2221
- message: string;
2222
- success: boolean;
2223
- dependencies: Record<string, string>;
2224
- structure: {
2225
- hasWorkflowsDir: boolean;
2226
- hasAgentsDir: boolean;
2227
- hasToolsDir: boolean;
2228
- hasMastraIndex: boolean;
2229
- existingWorkflows: string[];
2230
- existingAgents: string[];
2231
- existingTools: string[];
2232
- };
2233
- error?: string | undefined;
2234
- }, {
2235
- message: string;
2236
- success: boolean;
2237
- dependencies: Record<string, string>;
2238
- structure: {
2239
- hasWorkflowsDir: boolean;
2240
- hasAgentsDir: boolean;
2241
- hasToolsDir: boolean;
2242
- hasMastraIndex: boolean;
2243
- existingWorkflows: string[];
2244
- existingAgents: string[];
2245
- existingTools: string[];
2246
- };
2247
- error?: string | undefined;
2248
- }>>;
2249
- research: z.ZodOptional<z.ZodObject<{
2250
- success: z.ZodBoolean;
2251
- documentation: z.ZodObject<{
2252
- workflowPatterns: z.ZodArray<z.ZodString, "many">;
2253
- stepExamples: z.ZodArray<z.ZodString, "many">;
2254
- bestPractices: z.ZodArray<z.ZodString, "many">;
2255
- }, "strip", z.ZodTypeAny, {
2256
- workflowPatterns: string[];
2257
- stepExamples: string[];
2258
- bestPractices: string[];
2259
- }, {
2260
- workflowPatterns: string[];
2261
- stepExamples: string[];
2262
- bestPractices: string[];
2263
- }>;
2264
- webResources: z.ZodArray<z.ZodObject<{
2265
- title: z.ZodString;
2266
- url: z.ZodString;
2267
- snippet: z.ZodString;
2268
- relevance: z.ZodNumber;
2269
- }, "strip", z.ZodTypeAny, {
2270
- url: string;
2271
- relevance: number;
2272
- title: string;
2273
- snippet: string;
2274
- }, {
2275
- url: string;
2276
- relevance: number;
2277
- title: string;
2278
- snippet: string;
2279
- }>, "many">;
2280
- message: z.ZodString;
2281
- error: z.ZodOptional<z.ZodString>;
2282
- }, "strip", z.ZodTypeAny, {
2283
- message: string;
2284
- success: boolean;
2285
- documentation: {
2286
- workflowPatterns: string[];
2287
- stepExamples: string[];
2288
- bestPractices: string[];
2289
- };
2290
- webResources: {
2291
- url: string;
2292
- relevance: number;
2293
- title: string;
2294
- snippet: string;
2295
- }[];
2296
- error?: string | undefined;
2297
- }, {
2298
- message: string;
2299
- success: boolean;
2300
- documentation: {
2301
- workflowPatterns: string[];
2302
- stepExamples: string[];
2303
- bestPractices: string[];
2304
- };
2305
- webResources: {
2306
- url: string;
2307
- relevance: number;
2308
- title: string;
2309
- snippet: string;
2310
- }[];
2311
- error?: string | undefined;
2312
- }>>;
2313
- planning: z.ZodOptional<z.ZodObject<{
2314
- success: z.ZodBoolean;
2315
- tasks: z.ZodArray<z.ZodObject<{
2316
- id: z.ZodString;
2317
- content: z.ZodString;
2318
- status: z.ZodDefault<z.ZodEnum<["pending", "in_progress", "completed", "blocked"]>>;
2319
- priority: z.ZodEnum<["high", "medium", "low"]>;
2320
- dependencies: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
2321
- notes: z.ZodString;
2322
- }, "strip", z.ZodTypeAny, {
2323
- status: "pending" | "in_progress" | "completed" | "blocked";
2324
- id: string;
2325
- content: string;
2326
- priority: "high" | "medium" | "low";
2327
- notes: string;
2328
- dependencies?: string[] | undefined;
2329
- }, {
2330
- id: string;
2331
- content: string;
2332
- priority: "high" | "medium" | "low";
2333
- notes: string;
2334
- status?: "pending" | "in_progress" | "completed" | "blocked" | undefined;
2335
- dependencies?: string[] | undefined;
2336
- }>, "many">;
2337
- questions: z.ZodArray<z.ZodObject<{
2338
- id: z.ZodString;
2339
- question: z.ZodString;
2340
- type: z.ZodEnum<["choice", "text", "boolean"]>;
2341
- options: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
2342
- context: z.ZodOptional<z.ZodString>;
2343
- }, "strip", z.ZodTypeAny, {
2344
- type: "boolean" | "text" | "choice";
2345
- id: string;
2346
- question: string;
2347
- options?: string[] | undefined;
2348
- context?: string | undefined;
2349
- }, {
2350
- type: "boolean" | "text" | "choice";
2351
- id: string;
2352
- question: string;
2353
- options?: string[] | undefined;
2354
- context?: string | undefined;
2355
- }>, "many">;
2356
- reasoning: z.ZodString;
2357
- planComplete: z.ZodBoolean;
2358
- message: z.ZodString;
2359
- error: z.ZodOptional<z.ZodString>;
2360
- allPreviousQuestions: z.ZodOptional<z.ZodArray<z.ZodAny, "many">>;
2361
- allPreviousAnswers: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
2362
- }, "strip", z.ZodTypeAny, {
2363
- message: string;
2364
- success: boolean;
2365
- reasoning: string;
2366
- tasks: {
2367
- status: "pending" | "in_progress" | "completed" | "blocked";
2368
- id: string;
2369
- content: string;
2370
- priority: "high" | "medium" | "low";
2371
- notes: string;
2372
- dependencies?: string[] | undefined;
2373
- }[];
2374
- questions: {
2375
- type: "boolean" | "text" | "choice";
2376
- id: string;
2377
- question: string;
2378
- options?: string[] | undefined;
2379
- context?: string | undefined;
2380
- }[];
2381
- planComplete: boolean;
2382
- error?: string | undefined;
2383
- allPreviousQuestions?: any[] | undefined;
2384
- allPreviousAnswers?: Record<string, string> | undefined;
2385
- }, {
2386
- message: string;
2387
- success: boolean;
2388
- reasoning: string;
2389
- tasks: {
2390
- id: string;
2391
- content: string;
2392
- priority: "high" | "medium" | "low";
2393
- notes: string;
2394
- status?: "pending" | "in_progress" | "completed" | "blocked" | undefined;
2395
- dependencies?: string[] | undefined;
2396
- }[];
2397
- questions: {
2398
- type: "boolean" | "text" | "choice";
2399
- id: string;
2400
- question: string;
2401
- options?: string[] | undefined;
2402
- context?: string | undefined;
2403
- }[];
2404
- planComplete: boolean;
2405
- error?: string | undefined;
2406
- allPreviousQuestions?: any[] | undefined;
2407
- allPreviousAnswers?: Record<string, string> | undefined;
2408
- }>>;
2409
- taskManagement: z.ZodOptional<z.ZodObject<{
2410
- success: z.ZodBoolean;
2411
- tasks: z.ZodArray<z.ZodObject<{
2412
- id: z.ZodString;
2413
- content: z.ZodString;
2414
- status: z.ZodDefault<z.ZodEnum<["pending", "in_progress", "completed", "blocked"]>>;
2415
- priority: z.ZodEnum<["high", "medium", "low"]>;
2416
- dependencies: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
2417
- notes: z.ZodString;
2418
- }, "strip", z.ZodTypeAny, {
2419
- status: "pending" | "in_progress" | "completed" | "blocked";
2420
- id: string;
2421
- content: string;
2422
- priority: "high" | "medium" | "low";
2423
- notes: string;
2424
- dependencies?: string[] | undefined;
2425
- }, {
2426
- id: string;
2427
- content: string;
2428
- priority: "high" | "medium" | "low";
2429
- notes: string;
2430
- status?: "pending" | "in_progress" | "completed" | "blocked" | undefined;
2431
- dependencies?: string[] | undefined;
2432
- }>, "many">;
2433
- message: z.ZodString;
2434
- error: z.ZodOptional<z.ZodString>;
2435
- }, "strip", z.ZodTypeAny, {
2436
- message: string;
2437
- success: boolean;
2438
- tasks: {
2439
- status: "pending" | "in_progress" | "completed" | "blocked";
2440
- id: string;
2441
- content: string;
2442
- priority: "high" | "medium" | "low";
2443
- notes: string;
2444
- dependencies?: string[] | undefined;
2445
- }[];
2446
- error?: string | undefined;
2447
- }, {
2448
- message: string;
2449
- success: boolean;
79
+ }[];
80
+ currentPlan: {
81
+ reasoning: string;
2450
82
  tasks: {
83
+ status: "pending" | "in_progress" | "completed" | "blocked";
2451
84
  id: string;
2452
85
  content: string;
2453
86
  priority: "high" | "medium" | "low";
2454
87
  notes: string;
2455
- status?: "pending" | "in_progress" | "completed" | "blocked" | undefined;
2456
88
  dependencies?: string[] | undefined;
2457
89
  }[];
2458
- error?: string | undefined;
2459
- }>>;
2460
- execution: z.ZodOptional<z.ZodObject<{
2461
- success: z.ZodBoolean;
2462
- filesModified: z.ZodArray<z.ZodString, "many">;
2463
- validationResults: z.ZodObject<{
2464
- passed: z.ZodBoolean;
2465
- errors: z.ZodArray<z.ZodString, "many">;
2466
- warnings: z.ZodArray<z.ZodString, "many">;
2467
- }, "strip", z.ZodTypeAny, {
2468
- errors: string[];
2469
- warnings: string[];
2470
- passed: boolean;
2471
- }, {
2472
- errors: string[];
2473
- warnings: string[];
2474
- passed: boolean;
2475
- }>;
2476
- completedTasks: z.ZodArray<z.ZodString, "many">;
2477
- message: z.ZodString;
2478
- error: z.ZodOptional<z.ZodString>;
2479
- }, "strip", z.ZodTypeAny, {
90
+ };
91
+ }, import("@mastra/core/workflows").DefaultEngineType, unknown> | import("@mastra/core/workflows").Step<"task-approval", any, {
92
+ message: string;
93
+ success: boolean;
94
+ reasoning: string;
95
+ tasks: {
96
+ status: "pending" | "in_progress" | "completed" | "blocked";
97
+ id: string;
98
+ content: string;
99
+ priority: "high" | "medium" | "low";
100
+ notes: string;
101
+ dependencies?: string[] | undefined;
102
+ }[];
103
+ questions: {
104
+ type: "boolean" | "text" | "choice";
105
+ id: string;
106
+ question: string;
107
+ options?: string[] | undefined;
108
+ context?: string | undefined;
109
+ }[];
110
+ planComplete: boolean;
111
+ error?: string | undefined;
112
+ allPreviousQuestions?: any[] | undefined;
113
+ allPreviousAnswers?: Record<string, string> | undefined;
114
+ }, {
115
+ message: string;
116
+ tasks: {
117
+ status: "pending" | "in_progress" | "completed" | "blocked";
118
+ id: string;
119
+ content: string;
120
+ priority: "high" | "medium" | "low";
121
+ notes: string;
122
+ dependencies?: string[] | undefined;
123
+ }[];
124
+ approved: boolean;
125
+ userFeedback?: string | undefined;
126
+ }, {
127
+ approved: boolean;
128
+ modifications?: string | undefined;
129
+ }, {
130
+ message: string;
131
+ summary: string;
132
+ taskList: {
133
+ status: "pending" | "in_progress" | "completed" | "blocked";
134
+ id: string;
135
+ content: string;
136
+ priority: "high" | "medium" | "low";
137
+ notes: string;
138
+ dependencies?: string[] | undefined;
139
+ }[];
140
+ }, import("@mastra/core/workflows").DefaultEngineType, unknown>)[], "planning-and-approval", unknown, {
141
+ action: "create" | "edit";
142
+ discoveredWorkflows: {
143
+ file: string;
144
+ name: string;
145
+ description?: string | undefined;
146
+ outputSchema?: any;
147
+ inputSchema?: any;
148
+ steps?: string[] | undefined;
149
+ }[];
150
+ projectStructure: {
2480
151
  message: string;
2481
152
  success: boolean;
2482
- validationResults: {
2483
- errors: string[];
2484
- warnings: string[];
2485
- passed: boolean;
153
+ dependencies: Record<string, string>;
154
+ structure: {
155
+ hasWorkflowsDir: boolean;
156
+ hasAgentsDir: boolean;
157
+ hasToolsDir: boolean;
158
+ hasMastraIndex: boolean;
159
+ existingWorkflows: string[];
160
+ existingAgents: string[];
161
+ existingTools: string[];
2486
162
  };
2487
- completedTasks: string[];
2488
- filesModified: string[];
2489
163
  error?: string | undefined;
2490
- }, {
164
+ };
165
+ research: {
2491
166
  message: string;
2492
167
  success: boolean;
2493
- validationResults: {
2494
- errors: string[];
2495
- warnings: string[];
2496
- passed: boolean;
168
+ documentation: {
169
+ workflowPatterns: string[];
170
+ stepExamples: string[];
171
+ bestPractices: string[];
2497
172
  };
2498
- completedTasks: string[];
2499
- filesModified: string[];
173
+ webResources: {
174
+ url: string;
175
+ relevance: number;
176
+ title: string;
177
+ snippet: string;
178
+ }[];
2500
179
  error?: string | undefined;
2501
- }>>;
2502
- needsUserInput: z.ZodOptional<z.ZodBoolean>;
2503
- questions: z.ZodOptional<z.ZodArray<z.ZodObject<{
2504
- id: z.ZodString;
2505
- question: z.ZodString;
2506
- type: z.ZodEnum<["choice", "text", "boolean"]>;
2507
- options: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
2508
- context: z.ZodOptional<z.ZodString>;
2509
- }, "strip", z.ZodTypeAny, {
2510
- type: "boolean" | "text" | "choice";
180
+ };
181
+ description?: string | undefined;
182
+ workflowName?: string | undefined;
183
+ requirements?: string | undefined;
184
+ userAnswers?: Record<string, string> | undefined;
185
+ }, {
186
+ message: string;
187
+ tasks: {
2511
188
  id: string;
2512
- question: string;
2513
- options?: string[] | undefined;
2514
- context?: string | undefined;
2515
- }, {
189
+ content: string;
190
+ priority: "high" | "medium" | "low";
191
+ notes: string;
192
+ status?: "pending" | "in_progress" | "completed" | "blocked" | undefined;
193
+ dependencies?: string[] | undefined;
194
+ }[];
195
+ approved: boolean;
196
+ userFeedback?: string | undefined;
197
+ }, {
198
+ message: string;
199
+ tasks: {
200
+ id: string;
201
+ content: string;
202
+ priority: "high" | "medium" | "low";
203
+ notes: string;
204
+ status?: "pending" | "in_progress" | "completed" | "blocked" | undefined;
205
+ dependencies?: string[] | undefined;
206
+ }[];
207
+ approved: boolean;
208
+ userFeedback?: string | undefined;
209
+ }, unknown> | import("@mastra/core/workflows").Step<"workflow-discovery", any, {
210
+ action: "create" | "edit";
211
+ description?: string | undefined;
212
+ projectPath?: string | undefined;
213
+ workflowName?: string | undefined;
214
+ requirements?: string | undefined;
215
+ }, {
216
+ message: string;
217
+ success: boolean;
218
+ workflows: {
219
+ file: string;
220
+ name: string;
221
+ description?: string | undefined;
222
+ outputSchema?: any;
223
+ inputSchema?: any;
224
+ steps?: string[] | undefined;
225
+ }[];
226
+ mastraIndexExists: boolean;
227
+ error?: string | undefined;
228
+ }, unknown, unknown, import("@mastra/core/workflows").DefaultEngineType, unknown> | import("@mastra/core/workflows").Step<"project-discovery", any, {
229
+ message: string;
230
+ success: boolean;
231
+ workflows: {
232
+ file: string;
233
+ name: string;
234
+ description?: string | undefined;
235
+ outputSchema?: any;
236
+ inputSchema?: any;
237
+ steps?: string[] | undefined;
238
+ }[];
239
+ mastraIndexExists: boolean;
240
+ error?: string | undefined;
241
+ }, {
242
+ message: string;
243
+ success: boolean;
244
+ dependencies: Record<string, string>;
245
+ structure: {
246
+ hasWorkflowsDir: boolean;
247
+ hasAgentsDir: boolean;
248
+ hasToolsDir: boolean;
249
+ hasMastraIndex: boolean;
250
+ existingWorkflows: string[];
251
+ existingAgents: string[];
252
+ existingTools: string[];
253
+ };
254
+ error?: string | undefined;
255
+ }, unknown, unknown, import("@mastra/core/workflows").DefaultEngineType, unknown> | import("@mastra/core/workflows").Step<"workflow-research", any, {
256
+ message: string;
257
+ success: boolean;
258
+ dependencies: Record<string, string>;
259
+ structure: {
260
+ hasWorkflowsDir: boolean;
261
+ hasAgentsDir: boolean;
262
+ hasToolsDir: boolean;
263
+ hasMastraIndex: boolean;
264
+ existingWorkflows: string[];
265
+ existingAgents: string[];
266
+ existingTools: string[];
267
+ };
268
+ error?: string | undefined;
269
+ }, {
270
+ message: string;
271
+ success: boolean;
272
+ documentation: {
273
+ workflowPatterns: string[];
274
+ stepExamples: string[];
275
+ bestPractices: string[];
276
+ };
277
+ webResources: {
278
+ url: string;
279
+ relevance: number;
280
+ title: string;
281
+ snippet: string;
282
+ }[];
283
+ error?: string | undefined;
284
+ }, unknown, unknown, import("@mastra/core/workflows").DefaultEngineType, unknown> | import("@mastra/core/workflows").Step<"task-execution", any, {
285
+ action: "create" | "edit";
286
+ tasks: {
287
+ status: "pending" | "in_progress" | "completed" | "blocked";
288
+ id: string;
289
+ content: string;
290
+ priority: "high" | "medium" | "low";
291
+ notes: string;
292
+ dependencies?: string[] | undefined;
293
+ }[];
294
+ discoveredWorkflows: any[];
295
+ description?: string | undefined;
296
+ projectPath?: string | undefined;
297
+ workflowName?: string | undefined;
298
+ requirements?: string | undefined;
299
+ projectStructure?: any;
300
+ research?: any;
301
+ }, {
302
+ message: string;
303
+ success: boolean;
304
+ validationResults: {
305
+ errors: string[];
306
+ warnings: string[];
307
+ passed: boolean;
308
+ };
309
+ completedTasks: string[];
310
+ filesModified: string[];
311
+ error?: string | undefined;
312
+ }, {
313
+ answers: {
314
+ questionId: string;
315
+ answer: string;
316
+ }[];
317
+ }, {
318
+ message: string;
319
+ questions: {
2516
320
  type: "boolean" | "text" | "choice";
2517
321
  id: string;
2518
322
  question: string;
2519
323
  options?: string[] | undefined;
2520
324
  context?: string | undefined;
2521
- }>, "many">>;
2522
- message: z.ZodString;
2523
- nextSteps: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
2524
- error: z.ZodOptional<z.ZodString>;
2525
- }, "strip", z.ZodTypeAny, {
325
+ }[];
326
+ currentProgress: string;
327
+ completedTasks: string[];
328
+ }, import("@mastra/core/workflows").DefaultEngineType, unknown>)[], "workflow-builder", unknown, {
329
+ action: "create" | "edit";
330
+ description?: string | undefined;
331
+ projectPath?: string | undefined;
332
+ workflowName?: string | undefined;
333
+ requirements?: string | undefined;
334
+ }, {
2526
335
  message: string;
2527
336
  success: boolean;
2528
337
  action: "create" | "edit";
@@ -2587,11 +396,11 @@ export declare const workflowBuilderWorkflow: import("@mastra/core/workflows").W
2587
396
  success: boolean;
2588
397
  reasoning: string;
2589
398
  tasks: {
2590
- status: "pending" | "in_progress" | "completed" | "blocked";
2591
399
  id: string;
2592
400
  content: string;
2593
401
  priority: "high" | "medium" | "low";
2594
402
  notes: string;
403
+ status?: "pending" | "in_progress" | "completed" | "blocked" | undefined;
2595
404
  dependencies?: string[] | undefined;
2596
405
  }[];
2597
406
  questions: {
@@ -2610,11 +419,11 @@ export declare const workflowBuilderWorkflow: import("@mastra/core/workflows").W
2610
419
  message: string;
2611
420
  success: boolean;
2612
421
  tasks: {
2613
- status: "pending" | "in_progress" | "completed" | "blocked";
2614
422
  id: string;
2615
423
  content: string;
2616
424
  priority: "high" | "medium" | "low";
2617
425
  notes: string;
426
+ status?: "pending" | "in_progress" | "completed" | "blocked" | undefined;
2618
427
  dependencies?: string[] | undefined;
2619
428
  }[];
2620
429
  error?: string | undefined;
@@ -2742,5 +551,5 @@ export declare const workflowBuilderWorkflow: import("@mastra/core/workflows").W
2742
551
  error?: string | undefined;
2743
552
  } | undefined;
2744
553
  needsUserInput?: boolean | undefined;
2745
- }>>;
554
+ }, unknown>;
2746
555
  //# sourceMappingURL=workflow-builder.d.ts.map