@mastra/agent-builder 0.0.1-alpha.1 → 0.0.1-alpha.2

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 (73) hide show
  1. package/CHANGELOG.md +15 -0
  2. package/dist/agent/index.d.ts +5885 -0
  3. package/dist/agent/index.d.ts.map +1 -0
  4. package/dist/defaults.d.ts +6529 -0
  5. package/dist/defaults.d.ts.map +1 -0
  6. package/dist/index.d.ts +4 -4
  7. package/dist/index.d.ts.map +1 -0
  8. package/dist/index.js +1810 -36
  9. package/dist/index.js.map +1 -0
  10. package/dist/processors/tool-summary.d.ts +29 -0
  11. package/dist/processors/tool-summary.d.ts.map +1 -0
  12. package/dist/processors/write-file.d.ts +10 -0
  13. package/dist/processors/write-file.d.ts.map +1 -0
  14. package/dist/types.d.ts +1121 -0
  15. package/dist/types.d.ts.map +1 -0
  16. package/dist/utils.d.ts +63 -0
  17. package/dist/utils.d.ts.map +1 -0
  18. package/dist/workflows/index.d.ts +5 -0
  19. package/dist/workflows/index.d.ts.map +1 -0
  20. package/dist/workflows/shared/schema.d.ts +139 -0
  21. package/dist/workflows/shared/schema.d.ts.map +1 -0
  22. package/dist/workflows/task-planning/prompts.d.ts +37 -0
  23. package/dist/workflows/task-planning/prompts.d.ts.map +1 -0
  24. package/dist/workflows/task-planning/schema.d.ts +548 -0
  25. package/dist/workflows/task-planning/schema.d.ts.map +1 -0
  26. package/dist/workflows/task-planning/task-planning.d.ts +992 -0
  27. package/dist/workflows/task-planning/task-planning.d.ts.map +1 -0
  28. package/dist/workflows/template-builder/template-builder.d.ts +1910 -0
  29. package/dist/workflows/template-builder/template-builder.d.ts.map +1 -0
  30. package/dist/workflows/workflow-builder/prompts.d.ts +44 -0
  31. package/dist/workflows/workflow-builder/prompts.d.ts.map +1 -0
  32. package/dist/workflows/workflow-builder/schema.d.ts +1170 -0
  33. package/dist/workflows/workflow-builder/schema.d.ts.map +1 -0
  34. package/dist/workflows/workflow-builder/tools.d.ts +309 -0
  35. package/dist/workflows/workflow-builder/tools.d.ts.map +1 -0
  36. package/dist/workflows/workflow-builder/workflow-builder.d.ts +2714 -0
  37. package/dist/workflows/workflow-builder/workflow-builder.d.ts.map +1 -0
  38. package/dist/workflows/workflow-map.d.ts +3735 -0
  39. package/dist/workflows/workflow-map.d.ts.map +1 -0
  40. package/package.json +20 -9
  41. package/.turbo/turbo-build.log +0 -12
  42. package/dist/_tsup-dts-rollup.d.cts +0 -14933
  43. package/dist/_tsup-dts-rollup.d.ts +0 -14933
  44. package/dist/index.cjs +0 -4357
  45. package/dist/index.d.cts +0 -4
  46. package/eslint.config.js +0 -11
  47. package/integration-tests/CHANGELOG.md +0 -9
  48. package/integration-tests/README.md +0 -154
  49. package/integration-tests/docker-compose.yml +0 -39
  50. package/integration-tests/package.json +0 -38
  51. package/integration-tests/src/agent-template-behavior.test.ts +0 -103
  52. package/integration-tests/src/fixtures/minimal-mastra-project/env.example +0 -6
  53. package/integration-tests/src/fixtures/minimal-mastra-project/package.json +0 -17
  54. package/integration-tests/src/fixtures/minimal-mastra-project/src/mastra/agents/weather.ts +0 -34
  55. package/integration-tests/src/fixtures/minimal-mastra-project/src/mastra/index.ts +0 -15
  56. package/integration-tests/src/fixtures/minimal-mastra-project/src/mastra/mcp/index.ts +0 -46
  57. package/integration-tests/src/fixtures/minimal-mastra-project/src/mastra/tools/weather.ts +0 -14
  58. package/integration-tests/src/fixtures/minimal-mastra-project/tsconfig.json +0 -17
  59. package/integration-tests/src/template-integration.test.ts +0 -312
  60. package/integration-tests/tsconfig.json +0 -9
  61. package/integration-tests/vitest.config.ts +0 -18
  62. package/src/agent/index.ts +0 -187
  63. package/src/agent-builder.test.ts +0 -313
  64. package/src/defaults.ts +0 -2876
  65. package/src/index.ts +0 -3
  66. package/src/processors/tool-summary.ts +0 -145
  67. package/src/processors/write-file.ts +0 -17
  68. package/src/types.ts +0 -305
  69. package/src/utils.ts +0 -409
  70. package/src/workflows/index.ts +0 -1
  71. package/src/workflows/template-builder.ts +0 -1682
  72. package/tsconfig.json +0 -5
  73. package/vitest.config.ts +0 -11
@@ -0,0 +1,992 @@
1
+ export declare const planningAndApprovalWorkflow: import("@mastra/core/workflows").Workflow<import("@mastra/core").DefaultEngineType, (import("@mastra/core").Step<"planning-iteration", import("zod").ZodObject<{
2
+ action: import("zod").ZodEnum<["create", "edit"]>;
3
+ workflowName: import("zod").ZodOptional<import("zod").ZodString>;
4
+ description: import("zod").ZodOptional<import("zod").ZodString>;
5
+ requirements: import("zod").ZodOptional<import("zod").ZodString>;
6
+ discoveredWorkflows: import("zod").ZodArray<import("zod").ZodObject<{
7
+ name: import("zod").ZodString;
8
+ file: import("zod").ZodString;
9
+ description: import("zod").ZodOptional<import("zod").ZodString>;
10
+ inputSchema: import("zod").ZodOptional<import("zod").ZodAny>;
11
+ outputSchema: import("zod").ZodOptional<import("zod").ZodAny>;
12
+ steps: import("zod").ZodOptional<import("zod").ZodArray<import("zod").ZodString, "many">>;
13
+ }, "strip", import("zod").ZodTypeAny, {
14
+ file: string;
15
+ name: string;
16
+ description?: string | undefined;
17
+ steps?: string[] | undefined;
18
+ inputSchema?: any;
19
+ outputSchema?: any;
20
+ }, {
21
+ file: string;
22
+ name: string;
23
+ description?: string | undefined;
24
+ steps?: string[] | undefined;
25
+ inputSchema?: any;
26
+ outputSchema?: any;
27
+ }>, "many">;
28
+ projectStructure: import("zod").ZodObject<{
29
+ success: import("zod").ZodBoolean;
30
+ structure: import("zod").ZodObject<{
31
+ hasWorkflowsDir: import("zod").ZodBoolean;
32
+ hasAgentsDir: import("zod").ZodBoolean;
33
+ hasToolsDir: import("zod").ZodBoolean;
34
+ hasMastraIndex: import("zod").ZodBoolean;
35
+ existingWorkflows: import("zod").ZodArray<import("zod").ZodString, "many">;
36
+ existingAgents: import("zod").ZodArray<import("zod").ZodString, "many">;
37
+ existingTools: import("zod").ZodArray<import("zod").ZodString, "many">;
38
+ }, "strip", import("zod").ZodTypeAny, {
39
+ hasWorkflowsDir: boolean;
40
+ hasAgentsDir: boolean;
41
+ hasToolsDir: boolean;
42
+ hasMastraIndex: boolean;
43
+ existingWorkflows: string[];
44
+ existingAgents: string[];
45
+ existingTools: string[];
46
+ }, {
47
+ hasWorkflowsDir: boolean;
48
+ hasAgentsDir: boolean;
49
+ hasToolsDir: boolean;
50
+ hasMastraIndex: boolean;
51
+ existingWorkflows: string[];
52
+ existingAgents: string[];
53
+ existingTools: string[];
54
+ }>;
55
+ dependencies: import("zod").ZodRecord<import("zod").ZodString, import("zod").ZodString>;
56
+ message: import("zod").ZodString;
57
+ error: import("zod").ZodOptional<import("zod").ZodString>;
58
+ }, "strip", import("zod").ZodTypeAny, {
59
+ message: string;
60
+ success: boolean;
61
+ dependencies: Record<string, string>;
62
+ structure: {
63
+ hasWorkflowsDir: boolean;
64
+ hasAgentsDir: boolean;
65
+ hasToolsDir: boolean;
66
+ hasMastraIndex: boolean;
67
+ existingWorkflows: string[];
68
+ existingAgents: string[];
69
+ existingTools: string[];
70
+ };
71
+ error?: string | undefined;
72
+ }, {
73
+ message: string;
74
+ success: boolean;
75
+ dependencies: Record<string, string>;
76
+ structure: {
77
+ hasWorkflowsDir: boolean;
78
+ hasAgentsDir: boolean;
79
+ hasToolsDir: boolean;
80
+ hasMastraIndex: boolean;
81
+ existingWorkflows: string[];
82
+ existingAgents: string[];
83
+ existingTools: string[];
84
+ };
85
+ error?: string | undefined;
86
+ }>;
87
+ research: import("zod").ZodObject<{
88
+ success: import("zod").ZodBoolean;
89
+ documentation: import("zod").ZodObject<{
90
+ workflowPatterns: import("zod").ZodArray<import("zod").ZodString, "many">;
91
+ stepExamples: import("zod").ZodArray<import("zod").ZodString, "many">;
92
+ bestPractices: import("zod").ZodArray<import("zod").ZodString, "many">;
93
+ }, "strip", import("zod").ZodTypeAny, {
94
+ workflowPatterns: string[];
95
+ stepExamples: string[];
96
+ bestPractices: string[];
97
+ }, {
98
+ workflowPatterns: string[];
99
+ stepExamples: string[];
100
+ bestPractices: string[];
101
+ }>;
102
+ webResources: import("zod").ZodArray<import("zod").ZodObject<{
103
+ title: import("zod").ZodString;
104
+ url: import("zod").ZodString;
105
+ snippet: import("zod").ZodString;
106
+ relevance: import("zod").ZodNumber;
107
+ }, "strip", import("zod").ZodTypeAny, {
108
+ url: string;
109
+ relevance: number;
110
+ title: string;
111
+ snippet: string;
112
+ }, {
113
+ url: string;
114
+ relevance: number;
115
+ title: string;
116
+ snippet: string;
117
+ }>, "many">;
118
+ message: import("zod").ZodString;
119
+ error: import("zod").ZodOptional<import("zod").ZodString>;
120
+ }, "strip", import("zod").ZodTypeAny, {
121
+ message: string;
122
+ success: boolean;
123
+ documentation: {
124
+ workflowPatterns: string[];
125
+ stepExamples: string[];
126
+ bestPractices: string[];
127
+ };
128
+ webResources: {
129
+ url: string;
130
+ relevance: number;
131
+ title: string;
132
+ snippet: string;
133
+ }[];
134
+ error?: string | undefined;
135
+ }, {
136
+ message: string;
137
+ success: boolean;
138
+ documentation: {
139
+ workflowPatterns: string[];
140
+ stepExamples: string[];
141
+ bestPractices: string[];
142
+ };
143
+ webResources: {
144
+ url: string;
145
+ relevance: number;
146
+ title: string;
147
+ snippet: string;
148
+ }[];
149
+ error?: string | undefined;
150
+ }>;
151
+ userAnswers: import("zod").ZodOptional<import("zod").ZodRecord<import("zod").ZodString, import("zod").ZodString>>;
152
+ }, "strip", import("zod").ZodTypeAny, {
153
+ action: "create" | "edit";
154
+ discoveredWorkflows: {
155
+ file: string;
156
+ name: string;
157
+ description?: string | undefined;
158
+ steps?: string[] | undefined;
159
+ inputSchema?: any;
160
+ outputSchema?: any;
161
+ }[];
162
+ projectStructure: {
163
+ message: string;
164
+ success: boolean;
165
+ dependencies: Record<string, string>;
166
+ structure: {
167
+ hasWorkflowsDir: boolean;
168
+ hasAgentsDir: boolean;
169
+ hasToolsDir: boolean;
170
+ hasMastraIndex: boolean;
171
+ existingWorkflows: string[];
172
+ existingAgents: string[];
173
+ existingTools: string[];
174
+ };
175
+ error?: string | undefined;
176
+ };
177
+ research: {
178
+ message: string;
179
+ success: boolean;
180
+ documentation: {
181
+ workflowPatterns: string[];
182
+ stepExamples: string[];
183
+ bestPractices: string[];
184
+ };
185
+ webResources: {
186
+ url: string;
187
+ relevance: number;
188
+ title: string;
189
+ snippet: string;
190
+ }[];
191
+ error?: string | undefined;
192
+ };
193
+ description?: string | undefined;
194
+ workflowName?: string | undefined;
195
+ requirements?: string | undefined;
196
+ userAnswers?: Record<string, string> | undefined;
197
+ }, {
198
+ action: "create" | "edit";
199
+ discoveredWorkflows: {
200
+ file: string;
201
+ name: string;
202
+ description?: string | undefined;
203
+ steps?: string[] | undefined;
204
+ inputSchema?: any;
205
+ outputSchema?: any;
206
+ }[];
207
+ projectStructure: {
208
+ message: string;
209
+ success: boolean;
210
+ dependencies: Record<string, string>;
211
+ structure: {
212
+ hasWorkflowsDir: boolean;
213
+ hasAgentsDir: boolean;
214
+ hasToolsDir: boolean;
215
+ hasMastraIndex: boolean;
216
+ existingWorkflows: string[];
217
+ existingAgents: string[];
218
+ existingTools: string[];
219
+ };
220
+ error?: string | undefined;
221
+ };
222
+ research: {
223
+ message: string;
224
+ success: boolean;
225
+ documentation: {
226
+ workflowPatterns: string[];
227
+ stepExamples: string[];
228
+ bestPractices: string[];
229
+ };
230
+ webResources: {
231
+ url: string;
232
+ relevance: number;
233
+ title: string;
234
+ snippet: string;
235
+ }[];
236
+ error?: string | undefined;
237
+ };
238
+ description?: string | undefined;
239
+ workflowName?: string | undefined;
240
+ requirements?: string | undefined;
241
+ userAnswers?: Record<string, string> | undefined;
242
+ }>, import("zod").ZodObject<{
243
+ success: import("zod").ZodBoolean;
244
+ tasks: import("zod").ZodArray<import("zod").ZodObject<{
245
+ id: import("zod").ZodString;
246
+ content: import("zod").ZodString;
247
+ status: import("zod").ZodDefault<import("zod").ZodEnum<["pending", "in_progress", "completed", "blocked"]>>;
248
+ priority: import("zod").ZodEnum<["high", "medium", "low"]>;
249
+ dependencies: import("zod").ZodOptional<import("zod").ZodArray<import("zod").ZodString, "many">>;
250
+ notes: import("zod").ZodString;
251
+ }, "strip", import("zod").ZodTypeAny, {
252
+ status: "pending" | "in_progress" | "completed" | "blocked";
253
+ id: string;
254
+ content: string;
255
+ priority: "high" | "medium" | "low";
256
+ notes: string;
257
+ dependencies?: string[] | undefined;
258
+ }, {
259
+ id: string;
260
+ content: string;
261
+ priority: "high" | "medium" | "low";
262
+ notes: string;
263
+ status?: "pending" | "in_progress" | "completed" | "blocked" | undefined;
264
+ dependencies?: string[] | undefined;
265
+ }>, "many">;
266
+ questions: import("zod").ZodArray<import("zod").ZodObject<{
267
+ id: import("zod").ZodString;
268
+ question: import("zod").ZodString;
269
+ type: import("zod").ZodEnum<["choice", "text", "boolean"]>;
270
+ options: import("zod").ZodOptional<import("zod").ZodArray<import("zod").ZodString, "many">>;
271
+ context: import("zod").ZodOptional<import("zod").ZodString>;
272
+ }, "strip", import("zod").ZodTypeAny, {
273
+ type: "boolean" | "text" | "choice";
274
+ id: string;
275
+ question: string;
276
+ options?: string[] | undefined;
277
+ context?: string | undefined;
278
+ }, {
279
+ type: "boolean" | "text" | "choice";
280
+ id: string;
281
+ question: string;
282
+ options?: string[] | undefined;
283
+ context?: string | undefined;
284
+ }>, "many">;
285
+ reasoning: import("zod").ZodString;
286
+ planComplete: import("zod").ZodBoolean;
287
+ message: import("zod").ZodString;
288
+ error: import("zod").ZodOptional<import("zod").ZodString>;
289
+ allPreviousQuestions: import("zod").ZodOptional<import("zod").ZodArray<import("zod").ZodAny, "many">>;
290
+ allPreviousAnswers: import("zod").ZodOptional<import("zod").ZodRecord<import("zod").ZodString, import("zod").ZodString>>;
291
+ }, "strip", import("zod").ZodTypeAny, {
292
+ message: string;
293
+ success: boolean;
294
+ tasks: {
295
+ status: "pending" | "in_progress" | "completed" | "blocked";
296
+ id: string;
297
+ content: string;
298
+ priority: "high" | "medium" | "low";
299
+ notes: string;
300
+ dependencies?: string[] | undefined;
301
+ }[];
302
+ reasoning: string;
303
+ questions: {
304
+ type: "boolean" | "text" | "choice";
305
+ id: string;
306
+ question: string;
307
+ options?: string[] | undefined;
308
+ context?: string | undefined;
309
+ }[];
310
+ planComplete: boolean;
311
+ error?: string | undefined;
312
+ allPreviousQuestions?: any[] | undefined;
313
+ allPreviousAnswers?: Record<string, string> | undefined;
314
+ }, {
315
+ message: string;
316
+ success: boolean;
317
+ tasks: {
318
+ id: string;
319
+ content: string;
320
+ priority: "high" | "medium" | "low";
321
+ notes: string;
322
+ status?: "pending" | "in_progress" | "completed" | "blocked" | undefined;
323
+ dependencies?: string[] | undefined;
324
+ }[];
325
+ reasoning: string;
326
+ questions: {
327
+ type: "boolean" | "text" | "choice";
328
+ id: string;
329
+ question: string;
330
+ options?: string[] | undefined;
331
+ context?: string | undefined;
332
+ }[];
333
+ planComplete: boolean;
334
+ error?: string | undefined;
335
+ allPreviousQuestions?: any[] | undefined;
336
+ allPreviousAnswers?: Record<string, string> | undefined;
337
+ }>, import("zod").ZodObject<{
338
+ answers: import("zod").ZodRecord<import("zod").ZodString, import("zod").ZodString>;
339
+ }, "strip", import("zod").ZodTypeAny, {
340
+ answers: Record<string, string>;
341
+ }, {
342
+ answers: Record<string, string>;
343
+ }>, import("zod").ZodObject<{
344
+ questions: import("zod").ZodArray<import("zod").ZodObject<{
345
+ id: import("zod").ZodString;
346
+ question: import("zod").ZodString;
347
+ type: import("zod").ZodEnum<["choice", "text", "boolean"]>;
348
+ options: import("zod").ZodOptional<import("zod").ZodArray<import("zod").ZodString, "many">>;
349
+ context: import("zod").ZodOptional<import("zod").ZodString>;
350
+ }, "strip", import("zod").ZodTypeAny, {
351
+ type: "boolean" | "text" | "choice";
352
+ id: string;
353
+ question: string;
354
+ options?: string[] | undefined;
355
+ context?: string | undefined;
356
+ }, {
357
+ type: "boolean" | "text" | "choice";
358
+ id: string;
359
+ question: string;
360
+ options?: string[] | undefined;
361
+ context?: string | undefined;
362
+ }>, "many">;
363
+ message: import("zod").ZodString;
364
+ currentPlan: import("zod").ZodObject<{
365
+ tasks: import("zod").ZodArray<import("zod").ZodObject<{
366
+ id: import("zod").ZodString;
367
+ content: import("zod").ZodString;
368
+ status: import("zod").ZodDefault<import("zod").ZodEnum<["pending", "in_progress", "completed", "blocked"]>>;
369
+ priority: import("zod").ZodEnum<["high", "medium", "low"]>;
370
+ dependencies: import("zod").ZodOptional<import("zod").ZodArray<import("zod").ZodString, "many">>;
371
+ notes: import("zod").ZodString;
372
+ }, "strip", import("zod").ZodTypeAny, {
373
+ status: "pending" | "in_progress" | "completed" | "blocked";
374
+ id: string;
375
+ content: string;
376
+ priority: "high" | "medium" | "low";
377
+ notes: string;
378
+ dependencies?: string[] | undefined;
379
+ }, {
380
+ id: string;
381
+ content: string;
382
+ priority: "high" | "medium" | "low";
383
+ notes: string;
384
+ status?: "pending" | "in_progress" | "completed" | "blocked" | undefined;
385
+ dependencies?: string[] | undefined;
386
+ }>, "many">;
387
+ reasoning: import("zod").ZodString;
388
+ }, "strip", import("zod").ZodTypeAny, {
389
+ tasks: {
390
+ status: "pending" | "in_progress" | "completed" | "blocked";
391
+ id: string;
392
+ content: string;
393
+ priority: "high" | "medium" | "low";
394
+ notes: string;
395
+ dependencies?: string[] | undefined;
396
+ }[];
397
+ reasoning: string;
398
+ }, {
399
+ tasks: {
400
+ id: string;
401
+ content: string;
402
+ priority: "high" | "medium" | "low";
403
+ notes: string;
404
+ status?: "pending" | "in_progress" | "completed" | "blocked" | undefined;
405
+ dependencies?: string[] | undefined;
406
+ }[];
407
+ reasoning: string;
408
+ }>;
409
+ }, "strip", import("zod").ZodTypeAny, {
410
+ message: string;
411
+ questions: {
412
+ type: "boolean" | "text" | "choice";
413
+ id: string;
414
+ question: string;
415
+ options?: string[] | undefined;
416
+ context?: string | undefined;
417
+ }[];
418
+ currentPlan: {
419
+ tasks: {
420
+ status: "pending" | "in_progress" | "completed" | "blocked";
421
+ id: string;
422
+ content: string;
423
+ priority: "high" | "medium" | "low";
424
+ notes: string;
425
+ dependencies?: string[] | undefined;
426
+ }[];
427
+ reasoning: string;
428
+ };
429
+ }, {
430
+ message: string;
431
+ questions: {
432
+ type: "boolean" | "text" | "choice";
433
+ id: string;
434
+ question: string;
435
+ options?: string[] | undefined;
436
+ context?: string | undefined;
437
+ }[];
438
+ currentPlan: {
439
+ tasks: {
440
+ id: string;
441
+ content: string;
442
+ priority: "high" | "medium" | "low";
443
+ notes: string;
444
+ status?: "pending" | "in_progress" | "completed" | "blocked" | undefined;
445
+ dependencies?: string[] | undefined;
446
+ }[];
447
+ reasoning: string;
448
+ };
449
+ }>, import("@mastra/core").DefaultEngineType> | import("@mastra/core").Step<"task-approval", import("zod").ZodObject<{
450
+ success: import("zod").ZodBoolean;
451
+ tasks: import("zod").ZodArray<import("zod").ZodObject<{
452
+ id: import("zod").ZodString;
453
+ content: import("zod").ZodString;
454
+ status: import("zod").ZodDefault<import("zod").ZodEnum<["pending", "in_progress", "completed", "blocked"]>>;
455
+ priority: import("zod").ZodEnum<["high", "medium", "low"]>;
456
+ dependencies: import("zod").ZodOptional<import("zod").ZodArray<import("zod").ZodString, "many">>;
457
+ notes: import("zod").ZodString;
458
+ }, "strip", import("zod").ZodTypeAny, {
459
+ status: "pending" | "in_progress" | "completed" | "blocked";
460
+ id: string;
461
+ content: string;
462
+ priority: "high" | "medium" | "low";
463
+ notes: string;
464
+ dependencies?: string[] | undefined;
465
+ }, {
466
+ id: string;
467
+ content: string;
468
+ priority: "high" | "medium" | "low";
469
+ notes: string;
470
+ status?: "pending" | "in_progress" | "completed" | "blocked" | undefined;
471
+ dependencies?: string[] | undefined;
472
+ }>, "many">;
473
+ questions: import("zod").ZodArray<import("zod").ZodObject<{
474
+ id: import("zod").ZodString;
475
+ question: import("zod").ZodString;
476
+ type: import("zod").ZodEnum<["choice", "text", "boolean"]>;
477
+ options: import("zod").ZodOptional<import("zod").ZodArray<import("zod").ZodString, "many">>;
478
+ context: import("zod").ZodOptional<import("zod").ZodString>;
479
+ }, "strip", import("zod").ZodTypeAny, {
480
+ type: "boolean" | "text" | "choice";
481
+ id: string;
482
+ question: string;
483
+ options?: string[] | undefined;
484
+ context?: string | undefined;
485
+ }, {
486
+ type: "boolean" | "text" | "choice";
487
+ id: string;
488
+ question: string;
489
+ options?: string[] | undefined;
490
+ context?: string | undefined;
491
+ }>, "many">;
492
+ reasoning: import("zod").ZodString;
493
+ planComplete: import("zod").ZodBoolean;
494
+ message: import("zod").ZodString;
495
+ error: import("zod").ZodOptional<import("zod").ZodString>;
496
+ allPreviousQuestions: import("zod").ZodOptional<import("zod").ZodArray<import("zod").ZodAny, "many">>;
497
+ allPreviousAnswers: import("zod").ZodOptional<import("zod").ZodRecord<import("zod").ZodString, import("zod").ZodString>>;
498
+ }, "strip", import("zod").ZodTypeAny, {
499
+ message: string;
500
+ success: boolean;
501
+ tasks: {
502
+ status: "pending" | "in_progress" | "completed" | "blocked";
503
+ id: string;
504
+ content: string;
505
+ priority: "high" | "medium" | "low";
506
+ notes: string;
507
+ dependencies?: string[] | undefined;
508
+ }[];
509
+ reasoning: string;
510
+ questions: {
511
+ type: "boolean" | "text" | "choice";
512
+ id: string;
513
+ question: string;
514
+ options?: string[] | undefined;
515
+ context?: string | undefined;
516
+ }[];
517
+ planComplete: boolean;
518
+ error?: string | undefined;
519
+ allPreviousQuestions?: any[] | undefined;
520
+ allPreviousAnswers?: Record<string, string> | undefined;
521
+ }, {
522
+ message: string;
523
+ success: boolean;
524
+ tasks: {
525
+ id: string;
526
+ content: string;
527
+ priority: "high" | "medium" | "low";
528
+ notes: string;
529
+ status?: "pending" | "in_progress" | "completed" | "blocked" | undefined;
530
+ dependencies?: string[] | undefined;
531
+ }[];
532
+ reasoning: string;
533
+ questions: {
534
+ type: "boolean" | "text" | "choice";
535
+ id: string;
536
+ question: string;
537
+ options?: string[] | undefined;
538
+ context?: string | undefined;
539
+ }[];
540
+ planComplete: boolean;
541
+ error?: string | undefined;
542
+ allPreviousQuestions?: any[] | undefined;
543
+ allPreviousAnswers?: Record<string, string> | undefined;
544
+ }>, import("zod").ZodObject<{
545
+ approved: import("zod").ZodBoolean;
546
+ tasks: import("zod").ZodArray<import("zod").ZodObject<{
547
+ id: import("zod").ZodString;
548
+ content: import("zod").ZodString;
549
+ status: import("zod").ZodDefault<import("zod").ZodEnum<["pending", "in_progress", "completed", "blocked"]>>;
550
+ priority: import("zod").ZodEnum<["high", "medium", "low"]>;
551
+ dependencies: import("zod").ZodOptional<import("zod").ZodArray<import("zod").ZodString, "many">>;
552
+ notes: import("zod").ZodString;
553
+ }, "strip", import("zod").ZodTypeAny, {
554
+ status: "pending" | "in_progress" | "completed" | "blocked";
555
+ id: string;
556
+ content: string;
557
+ priority: "high" | "medium" | "low";
558
+ notes: string;
559
+ dependencies?: string[] | undefined;
560
+ }, {
561
+ id: string;
562
+ content: string;
563
+ priority: "high" | "medium" | "low";
564
+ notes: string;
565
+ status?: "pending" | "in_progress" | "completed" | "blocked" | undefined;
566
+ dependencies?: string[] | undefined;
567
+ }>, "many">;
568
+ message: import("zod").ZodString;
569
+ userFeedback: import("zod").ZodOptional<import("zod").ZodString>;
570
+ }, "strip", import("zod").ZodTypeAny, {
571
+ message: string;
572
+ tasks: {
573
+ status: "pending" | "in_progress" | "completed" | "blocked";
574
+ id: string;
575
+ content: string;
576
+ priority: "high" | "medium" | "low";
577
+ notes: string;
578
+ dependencies?: string[] | undefined;
579
+ }[];
580
+ approved: boolean;
581
+ userFeedback?: string | undefined;
582
+ }, {
583
+ message: string;
584
+ tasks: {
585
+ id: string;
586
+ content: string;
587
+ priority: "high" | "medium" | "low";
588
+ notes: string;
589
+ status?: "pending" | "in_progress" | "completed" | "blocked" | undefined;
590
+ dependencies?: string[] | undefined;
591
+ }[];
592
+ approved: boolean;
593
+ userFeedback?: string | undefined;
594
+ }>, import("zod").ZodObject<{
595
+ approved: import("zod").ZodBoolean;
596
+ modifications: import("zod").ZodOptional<import("zod").ZodString>;
597
+ }, "strip", import("zod").ZodTypeAny, {
598
+ approved: boolean;
599
+ modifications?: string | undefined;
600
+ }, {
601
+ approved: boolean;
602
+ modifications?: string | undefined;
603
+ }>, import("zod").ZodObject<{
604
+ taskList: import("zod").ZodArray<import("zod").ZodObject<{
605
+ id: import("zod").ZodString;
606
+ content: import("zod").ZodString;
607
+ status: import("zod").ZodDefault<import("zod").ZodEnum<["pending", "in_progress", "completed", "blocked"]>>;
608
+ priority: import("zod").ZodEnum<["high", "medium", "low"]>;
609
+ dependencies: import("zod").ZodOptional<import("zod").ZodArray<import("zod").ZodString, "many">>;
610
+ notes: import("zod").ZodString;
611
+ }, "strip", import("zod").ZodTypeAny, {
612
+ status: "pending" | "in_progress" | "completed" | "blocked";
613
+ id: string;
614
+ content: string;
615
+ priority: "high" | "medium" | "low";
616
+ notes: string;
617
+ dependencies?: string[] | undefined;
618
+ }, {
619
+ id: string;
620
+ content: string;
621
+ priority: "high" | "medium" | "low";
622
+ notes: string;
623
+ status?: "pending" | "in_progress" | "completed" | "blocked" | undefined;
624
+ dependencies?: string[] | undefined;
625
+ }>, "many">;
626
+ summary: import("zod").ZodString;
627
+ message: import("zod").ZodString;
628
+ }, "strip", import("zod").ZodTypeAny, {
629
+ message: string;
630
+ summary: string;
631
+ taskList: {
632
+ status: "pending" | "in_progress" | "completed" | "blocked";
633
+ id: string;
634
+ content: string;
635
+ priority: "high" | "medium" | "low";
636
+ notes: string;
637
+ dependencies?: string[] | undefined;
638
+ }[];
639
+ }, {
640
+ message: string;
641
+ summary: string;
642
+ taskList: {
643
+ id: string;
644
+ content: string;
645
+ priority: "high" | "medium" | "low";
646
+ notes: string;
647
+ status?: "pending" | "in_progress" | "completed" | "blocked" | undefined;
648
+ dependencies?: string[] | undefined;
649
+ }[];
650
+ }>, import("@mastra/core").DefaultEngineType>)[], "planning-and-approval", import("zod").ZodObject<{
651
+ action: import("zod").ZodEnum<["create", "edit"]>;
652
+ workflowName: import("zod").ZodOptional<import("zod").ZodString>;
653
+ description: import("zod").ZodOptional<import("zod").ZodString>;
654
+ requirements: import("zod").ZodOptional<import("zod").ZodString>;
655
+ discoveredWorkflows: import("zod").ZodArray<import("zod").ZodObject<{
656
+ name: import("zod").ZodString;
657
+ file: import("zod").ZodString;
658
+ description: import("zod").ZodOptional<import("zod").ZodString>;
659
+ inputSchema: import("zod").ZodOptional<import("zod").ZodAny>;
660
+ outputSchema: import("zod").ZodOptional<import("zod").ZodAny>;
661
+ steps: import("zod").ZodOptional<import("zod").ZodArray<import("zod").ZodString, "many">>;
662
+ }, "strip", import("zod").ZodTypeAny, {
663
+ file: string;
664
+ name: string;
665
+ description?: string | undefined;
666
+ steps?: string[] | undefined;
667
+ inputSchema?: any;
668
+ outputSchema?: any;
669
+ }, {
670
+ file: string;
671
+ name: string;
672
+ description?: string | undefined;
673
+ steps?: string[] | undefined;
674
+ inputSchema?: any;
675
+ outputSchema?: any;
676
+ }>, "many">;
677
+ projectStructure: import("zod").ZodObject<{
678
+ success: import("zod").ZodBoolean;
679
+ structure: import("zod").ZodObject<{
680
+ hasWorkflowsDir: import("zod").ZodBoolean;
681
+ hasAgentsDir: import("zod").ZodBoolean;
682
+ hasToolsDir: import("zod").ZodBoolean;
683
+ hasMastraIndex: import("zod").ZodBoolean;
684
+ existingWorkflows: import("zod").ZodArray<import("zod").ZodString, "many">;
685
+ existingAgents: import("zod").ZodArray<import("zod").ZodString, "many">;
686
+ existingTools: import("zod").ZodArray<import("zod").ZodString, "many">;
687
+ }, "strip", import("zod").ZodTypeAny, {
688
+ hasWorkflowsDir: boolean;
689
+ hasAgentsDir: boolean;
690
+ hasToolsDir: boolean;
691
+ hasMastraIndex: boolean;
692
+ existingWorkflows: string[];
693
+ existingAgents: string[];
694
+ existingTools: string[];
695
+ }, {
696
+ hasWorkflowsDir: boolean;
697
+ hasAgentsDir: boolean;
698
+ hasToolsDir: boolean;
699
+ hasMastraIndex: boolean;
700
+ existingWorkflows: string[];
701
+ existingAgents: string[];
702
+ existingTools: string[];
703
+ }>;
704
+ dependencies: import("zod").ZodRecord<import("zod").ZodString, import("zod").ZodString>;
705
+ message: import("zod").ZodString;
706
+ error: import("zod").ZodOptional<import("zod").ZodString>;
707
+ }, "strip", import("zod").ZodTypeAny, {
708
+ message: string;
709
+ success: boolean;
710
+ dependencies: Record<string, string>;
711
+ structure: {
712
+ hasWorkflowsDir: boolean;
713
+ hasAgentsDir: boolean;
714
+ hasToolsDir: boolean;
715
+ hasMastraIndex: boolean;
716
+ existingWorkflows: string[];
717
+ existingAgents: string[];
718
+ existingTools: string[];
719
+ };
720
+ error?: string | undefined;
721
+ }, {
722
+ message: string;
723
+ success: boolean;
724
+ dependencies: Record<string, string>;
725
+ structure: {
726
+ hasWorkflowsDir: boolean;
727
+ hasAgentsDir: boolean;
728
+ hasToolsDir: boolean;
729
+ hasMastraIndex: boolean;
730
+ existingWorkflows: string[];
731
+ existingAgents: string[];
732
+ existingTools: string[];
733
+ };
734
+ error?: string | undefined;
735
+ }>;
736
+ research: import("zod").ZodObject<{
737
+ success: import("zod").ZodBoolean;
738
+ documentation: import("zod").ZodObject<{
739
+ workflowPatterns: import("zod").ZodArray<import("zod").ZodString, "many">;
740
+ stepExamples: import("zod").ZodArray<import("zod").ZodString, "many">;
741
+ bestPractices: import("zod").ZodArray<import("zod").ZodString, "many">;
742
+ }, "strip", import("zod").ZodTypeAny, {
743
+ workflowPatterns: string[];
744
+ stepExamples: string[];
745
+ bestPractices: string[];
746
+ }, {
747
+ workflowPatterns: string[];
748
+ stepExamples: string[];
749
+ bestPractices: string[];
750
+ }>;
751
+ webResources: import("zod").ZodArray<import("zod").ZodObject<{
752
+ title: import("zod").ZodString;
753
+ url: import("zod").ZodString;
754
+ snippet: import("zod").ZodString;
755
+ relevance: import("zod").ZodNumber;
756
+ }, "strip", import("zod").ZodTypeAny, {
757
+ url: string;
758
+ relevance: number;
759
+ title: string;
760
+ snippet: string;
761
+ }, {
762
+ url: string;
763
+ relevance: number;
764
+ title: string;
765
+ snippet: string;
766
+ }>, "many">;
767
+ message: import("zod").ZodString;
768
+ error: import("zod").ZodOptional<import("zod").ZodString>;
769
+ }, "strip", import("zod").ZodTypeAny, {
770
+ message: string;
771
+ success: boolean;
772
+ documentation: {
773
+ workflowPatterns: string[];
774
+ stepExamples: string[];
775
+ bestPractices: string[];
776
+ };
777
+ webResources: {
778
+ url: string;
779
+ relevance: number;
780
+ title: string;
781
+ snippet: string;
782
+ }[];
783
+ error?: string | undefined;
784
+ }, {
785
+ message: string;
786
+ success: boolean;
787
+ documentation: {
788
+ workflowPatterns: string[];
789
+ stepExamples: string[];
790
+ bestPractices: string[];
791
+ };
792
+ webResources: {
793
+ url: string;
794
+ relevance: number;
795
+ title: string;
796
+ snippet: string;
797
+ }[];
798
+ error?: string | undefined;
799
+ }>;
800
+ userAnswers: import("zod").ZodOptional<import("zod").ZodRecord<import("zod").ZodString, import("zod").ZodString>>;
801
+ }, "strip", import("zod").ZodTypeAny, {
802
+ action: "create" | "edit";
803
+ discoveredWorkflows: {
804
+ file: string;
805
+ name: string;
806
+ description?: string | undefined;
807
+ steps?: string[] | undefined;
808
+ inputSchema?: any;
809
+ outputSchema?: any;
810
+ }[];
811
+ projectStructure: {
812
+ message: string;
813
+ success: boolean;
814
+ dependencies: Record<string, string>;
815
+ structure: {
816
+ hasWorkflowsDir: boolean;
817
+ hasAgentsDir: boolean;
818
+ hasToolsDir: boolean;
819
+ hasMastraIndex: boolean;
820
+ existingWorkflows: string[];
821
+ existingAgents: string[];
822
+ existingTools: string[];
823
+ };
824
+ error?: string | undefined;
825
+ };
826
+ research: {
827
+ message: string;
828
+ success: boolean;
829
+ documentation: {
830
+ workflowPatterns: string[];
831
+ stepExamples: string[];
832
+ bestPractices: string[];
833
+ };
834
+ webResources: {
835
+ url: string;
836
+ relevance: number;
837
+ title: string;
838
+ snippet: string;
839
+ }[];
840
+ error?: string | undefined;
841
+ };
842
+ description?: string | undefined;
843
+ workflowName?: string | undefined;
844
+ requirements?: string | undefined;
845
+ userAnswers?: Record<string, string> | undefined;
846
+ }, {
847
+ action: "create" | "edit";
848
+ discoveredWorkflows: {
849
+ file: string;
850
+ name: string;
851
+ description?: string | undefined;
852
+ steps?: string[] | undefined;
853
+ inputSchema?: any;
854
+ outputSchema?: any;
855
+ }[];
856
+ projectStructure: {
857
+ message: string;
858
+ success: boolean;
859
+ dependencies: Record<string, string>;
860
+ structure: {
861
+ hasWorkflowsDir: boolean;
862
+ hasAgentsDir: boolean;
863
+ hasToolsDir: boolean;
864
+ hasMastraIndex: boolean;
865
+ existingWorkflows: string[];
866
+ existingAgents: string[];
867
+ existingTools: string[];
868
+ };
869
+ error?: string | undefined;
870
+ };
871
+ research: {
872
+ message: string;
873
+ success: boolean;
874
+ documentation: {
875
+ workflowPatterns: string[];
876
+ stepExamples: string[];
877
+ bestPractices: string[];
878
+ };
879
+ webResources: {
880
+ url: string;
881
+ relevance: number;
882
+ title: string;
883
+ snippet: string;
884
+ }[];
885
+ error?: string | undefined;
886
+ };
887
+ description?: string | undefined;
888
+ workflowName?: string | undefined;
889
+ requirements?: string | undefined;
890
+ userAnswers?: Record<string, string> | undefined;
891
+ }>, import("zod").ZodObject<{
892
+ approved: import("zod").ZodBoolean;
893
+ tasks: import("zod").ZodArray<import("zod").ZodObject<{
894
+ id: import("zod").ZodString;
895
+ content: import("zod").ZodString;
896
+ status: import("zod").ZodDefault<import("zod").ZodEnum<["pending", "in_progress", "completed", "blocked"]>>;
897
+ priority: import("zod").ZodEnum<["high", "medium", "low"]>;
898
+ dependencies: import("zod").ZodOptional<import("zod").ZodArray<import("zod").ZodString, "many">>;
899
+ notes: import("zod").ZodString;
900
+ }, "strip", import("zod").ZodTypeAny, {
901
+ status: "pending" | "in_progress" | "completed" | "blocked";
902
+ id: string;
903
+ content: string;
904
+ priority: "high" | "medium" | "low";
905
+ notes: string;
906
+ dependencies?: string[] | undefined;
907
+ }, {
908
+ id: string;
909
+ content: string;
910
+ priority: "high" | "medium" | "low";
911
+ notes: string;
912
+ status?: "pending" | "in_progress" | "completed" | "blocked" | undefined;
913
+ dependencies?: string[] | undefined;
914
+ }>, "many">;
915
+ message: import("zod").ZodString;
916
+ userFeedback: import("zod").ZodOptional<import("zod").ZodString>;
917
+ }, "strip", import("zod").ZodTypeAny, {
918
+ message: string;
919
+ tasks: {
920
+ status: "pending" | "in_progress" | "completed" | "blocked";
921
+ id: string;
922
+ content: string;
923
+ priority: "high" | "medium" | "low";
924
+ notes: string;
925
+ dependencies?: string[] | undefined;
926
+ }[];
927
+ approved: boolean;
928
+ userFeedback?: string | undefined;
929
+ }, {
930
+ message: string;
931
+ tasks: {
932
+ id: string;
933
+ content: string;
934
+ priority: "high" | "medium" | "low";
935
+ notes: string;
936
+ status?: "pending" | "in_progress" | "completed" | "blocked" | undefined;
937
+ dependencies?: string[] | undefined;
938
+ }[];
939
+ approved: boolean;
940
+ userFeedback?: string | undefined;
941
+ }>, import("zod").ZodObject<{
942
+ approved: import("zod").ZodBoolean;
943
+ tasks: import("zod").ZodArray<import("zod").ZodObject<{
944
+ id: import("zod").ZodString;
945
+ content: import("zod").ZodString;
946
+ status: import("zod").ZodDefault<import("zod").ZodEnum<["pending", "in_progress", "completed", "blocked"]>>;
947
+ priority: import("zod").ZodEnum<["high", "medium", "low"]>;
948
+ dependencies: import("zod").ZodOptional<import("zod").ZodArray<import("zod").ZodString, "many">>;
949
+ notes: import("zod").ZodString;
950
+ }, "strip", import("zod").ZodTypeAny, {
951
+ status: "pending" | "in_progress" | "completed" | "blocked";
952
+ id: string;
953
+ content: string;
954
+ priority: "high" | "medium" | "low";
955
+ notes: string;
956
+ dependencies?: string[] | undefined;
957
+ }, {
958
+ id: string;
959
+ content: string;
960
+ priority: "high" | "medium" | "low";
961
+ notes: string;
962
+ status?: "pending" | "in_progress" | "completed" | "blocked" | undefined;
963
+ dependencies?: string[] | undefined;
964
+ }>, "many">;
965
+ message: import("zod").ZodString;
966
+ userFeedback: import("zod").ZodOptional<import("zod").ZodString>;
967
+ }, "strip", import("zod").ZodTypeAny, {
968
+ message: string;
969
+ tasks: {
970
+ status: "pending" | "in_progress" | "completed" | "blocked";
971
+ id: string;
972
+ content: string;
973
+ priority: "high" | "medium" | "low";
974
+ notes: string;
975
+ dependencies?: string[] | undefined;
976
+ }[];
977
+ approved: boolean;
978
+ userFeedback?: string | undefined;
979
+ }, {
980
+ message: string;
981
+ tasks: {
982
+ id: string;
983
+ content: string;
984
+ priority: "high" | "medium" | "low";
985
+ notes: string;
986
+ status?: "pending" | "in_progress" | "completed" | "blocked" | undefined;
987
+ dependencies?: string[] | undefined;
988
+ }[];
989
+ approved: boolean;
990
+ userFeedback?: string | undefined;
991
+ }>>;
992
+ //# sourceMappingURL=task-planning.d.ts.map