@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,1170 @@
1
+ import { z } from 'zod';
2
+ export declare const WorkflowBuilderInputSchema: z.ZodObject<{
3
+ workflowName: z.ZodOptional<z.ZodString>;
4
+ action: z.ZodEnum<["create", "edit"]>;
5
+ description: z.ZodOptional<z.ZodString>;
6
+ requirements: z.ZodOptional<z.ZodString>;
7
+ projectPath: z.ZodOptional<z.ZodString>;
8
+ }, "strip", z.ZodTypeAny, {
9
+ action: "create" | "edit";
10
+ description?: string | undefined;
11
+ projectPath?: string | undefined;
12
+ workflowName?: string | undefined;
13
+ requirements?: string | undefined;
14
+ }, {
15
+ action: "create" | "edit";
16
+ description?: string | undefined;
17
+ projectPath?: string | undefined;
18
+ workflowName?: string | undefined;
19
+ requirements?: string | undefined;
20
+ }>;
21
+ export declare const DiscoveredWorkflowSchema: z.ZodObject<{
22
+ name: z.ZodString;
23
+ file: z.ZodString;
24
+ description: z.ZodOptional<z.ZodString>;
25
+ inputSchema: z.ZodOptional<z.ZodAny>;
26
+ outputSchema: z.ZodOptional<z.ZodAny>;
27
+ steps: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
28
+ }, "strip", z.ZodTypeAny, {
29
+ file: string;
30
+ name: string;
31
+ description?: string | undefined;
32
+ steps?: string[] | undefined;
33
+ inputSchema?: any;
34
+ outputSchema?: any;
35
+ }, {
36
+ file: string;
37
+ name: string;
38
+ description?: string | undefined;
39
+ steps?: string[] | undefined;
40
+ inputSchema?: any;
41
+ outputSchema?: any;
42
+ }>;
43
+ export declare const WorkflowDiscoveryResultSchema: z.ZodObject<{
44
+ success: z.ZodBoolean;
45
+ workflows: z.ZodArray<z.ZodObject<{
46
+ name: z.ZodString;
47
+ file: z.ZodString;
48
+ description: z.ZodOptional<z.ZodString>;
49
+ inputSchema: z.ZodOptional<z.ZodAny>;
50
+ outputSchema: z.ZodOptional<z.ZodAny>;
51
+ steps: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
52
+ }, "strip", z.ZodTypeAny, {
53
+ file: string;
54
+ name: string;
55
+ description?: string | undefined;
56
+ steps?: string[] | undefined;
57
+ inputSchema?: any;
58
+ outputSchema?: any;
59
+ }, {
60
+ file: string;
61
+ name: string;
62
+ description?: string | undefined;
63
+ steps?: string[] | undefined;
64
+ inputSchema?: any;
65
+ outputSchema?: any;
66
+ }>, "many">;
67
+ mastraIndexExists: z.ZodBoolean;
68
+ message: z.ZodString;
69
+ error: z.ZodOptional<z.ZodString>;
70
+ }, "strip", z.ZodTypeAny, {
71
+ message: string;
72
+ success: boolean;
73
+ workflows: {
74
+ file: string;
75
+ name: string;
76
+ description?: string | undefined;
77
+ steps?: string[] | undefined;
78
+ inputSchema?: any;
79
+ outputSchema?: any;
80
+ }[];
81
+ mastraIndexExists: boolean;
82
+ error?: string | undefined;
83
+ }, {
84
+ message: string;
85
+ success: boolean;
86
+ workflows: {
87
+ file: string;
88
+ name: string;
89
+ description?: string | undefined;
90
+ steps?: string[] | undefined;
91
+ inputSchema?: any;
92
+ outputSchema?: any;
93
+ }[];
94
+ mastraIndexExists: boolean;
95
+ error?: string | undefined;
96
+ }>;
97
+ export declare const ProjectDiscoveryResultSchema: z.ZodObject<{
98
+ success: z.ZodBoolean;
99
+ structure: z.ZodObject<{
100
+ hasWorkflowsDir: z.ZodBoolean;
101
+ hasAgentsDir: z.ZodBoolean;
102
+ hasToolsDir: z.ZodBoolean;
103
+ hasMastraIndex: z.ZodBoolean;
104
+ existingWorkflows: z.ZodArray<z.ZodString, "many">;
105
+ existingAgents: z.ZodArray<z.ZodString, "many">;
106
+ existingTools: z.ZodArray<z.ZodString, "many">;
107
+ }, "strip", z.ZodTypeAny, {
108
+ hasWorkflowsDir: boolean;
109
+ hasAgentsDir: boolean;
110
+ hasToolsDir: boolean;
111
+ hasMastraIndex: boolean;
112
+ existingWorkflows: string[];
113
+ existingAgents: string[];
114
+ existingTools: string[];
115
+ }, {
116
+ hasWorkflowsDir: boolean;
117
+ hasAgentsDir: boolean;
118
+ hasToolsDir: boolean;
119
+ hasMastraIndex: boolean;
120
+ existingWorkflows: string[];
121
+ existingAgents: string[];
122
+ existingTools: string[];
123
+ }>;
124
+ dependencies: z.ZodRecord<z.ZodString, z.ZodString>;
125
+ message: z.ZodString;
126
+ error: z.ZodOptional<z.ZodString>;
127
+ }, "strip", z.ZodTypeAny, {
128
+ message: string;
129
+ success: boolean;
130
+ dependencies: Record<string, string>;
131
+ structure: {
132
+ hasWorkflowsDir: boolean;
133
+ hasAgentsDir: boolean;
134
+ hasToolsDir: boolean;
135
+ hasMastraIndex: boolean;
136
+ existingWorkflows: string[];
137
+ existingAgents: string[];
138
+ existingTools: string[];
139
+ };
140
+ error?: string | undefined;
141
+ }, {
142
+ message: string;
143
+ success: boolean;
144
+ dependencies: Record<string, string>;
145
+ structure: {
146
+ hasWorkflowsDir: boolean;
147
+ hasAgentsDir: boolean;
148
+ hasToolsDir: boolean;
149
+ hasMastraIndex: boolean;
150
+ existingWorkflows: string[];
151
+ existingAgents: string[];
152
+ existingTools: string[];
153
+ };
154
+ error?: string | undefined;
155
+ }>;
156
+ export declare const WorkflowResearchResultSchema: z.ZodObject<{
157
+ success: z.ZodBoolean;
158
+ documentation: z.ZodObject<{
159
+ workflowPatterns: z.ZodArray<z.ZodString, "many">;
160
+ stepExamples: z.ZodArray<z.ZodString, "many">;
161
+ bestPractices: z.ZodArray<z.ZodString, "many">;
162
+ }, "strip", z.ZodTypeAny, {
163
+ workflowPatterns: string[];
164
+ stepExamples: string[];
165
+ bestPractices: string[];
166
+ }, {
167
+ workflowPatterns: string[];
168
+ stepExamples: string[];
169
+ bestPractices: string[];
170
+ }>;
171
+ webResources: z.ZodArray<z.ZodObject<{
172
+ title: z.ZodString;
173
+ url: z.ZodString;
174
+ snippet: z.ZodString;
175
+ relevance: z.ZodNumber;
176
+ }, "strip", z.ZodTypeAny, {
177
+ url: string;
178
+ relevance: number;
179
+ title: string;
180
+ snippet: string;
181
+ }, {
182
+ url: string;
183
+ relevance: number;
184
+ title: string;
185
+ snippet: string;
186
+ }>, "many">;
187
+ message: z.ZodString;
188
+ error: z.ZodOptional<z.ZodString>;
189
+ }, "strip", z.ZodTypeAny, {
190
+ message: string;
191
+ success: boolean;
192
+ documentation: {
193
+ workflowPatterns: string[];
194
+ stepExamples: string[];
195
+ bestPractices: string[];
196
+ };
197
+ webResources: {
198
+ url: string;
199
+ relevance: number;
200
+ title: string;
201
+ snippet: string;
202
+ }[];
203
+ error?: string | undefined;
204
+ }, {
205
+ message: string;
206
+ success: boolean;
207
+ documentation: {
208
+ workflowPatterns: string[];
209
+ stepExamples: string[];
210
+ bestPractices: string[];
211
+ };
212
+ webResources: {
213
+ url: string;
214
+ relevance: number;
215
+ title: string;
216
+ snippet: string;
217
+ }[];
218
+ error?: string | undefined;
219
+ }>;
220
+ export declare const TaskManagementResultSchema: z.ZodObject<{
221
+ success: z.ZodBoolean;
222
+ tasks: z.ZodArray<z.ZodObject<{
223
+ id: z.ZodString;
224
+ content: z.ZodString;
225
+ status: z.ZodDefault<z.ZodEnum<["pending", "in_progress", "completed", "blocked"]>>;
226
+ priority: z.ZodEnum<["high", "medium", "low"]>;
227
+ dependencies: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
228
+ notes: z.ZodString;
229
+ }, "strip", z.ZodTypeAny, {
230
+ status: "pending" | "in_progress" | "completed" | "blocked";
231
+ id: string;
232
+ content: string;
233
+ priority: "high" | "medium" | "low";
234
+ notes: string;
235
+ dependencies?: string[] | undefined;
236
+ }, {
237
+ id: string;
238
+ content: string;
239
+ priority: "high" | "medium" | "low";
240
+ notes: string;
241
+ status?: "pending" | "in_progress" | "completed" | "blocked" | undefined;
242
+ dependencies?: string[] | undefined;
243
+ }>, "many">;
244
+ message: z.ZodString;
245
+ error: z.ZodOptional<z.ZodString>;
246
+ }, "strip", z.ZodTypeAny, {
247
+ message: string;
248
+ success: boolean;
249
+ tasks: {
250
+ status: "pending" | "in_progress" | "completed" | "blocked";
251
+ id: string;
252
+ content: string;
253
+ priority: "high" | "medium" | "low";
254
+ notes: string;
255
+ dependencies?: string[] | undefined;
256
+ }[];
257
+ error?: string | undefined;
258
+ }, {
259
+ message: string;
260
+ success: boolean;
261
+ tasks: {
262
+ id: string;
263
+ content: string;
264
+ priority: "high" | "medium" | "low";
265
+ notes: string;
266
+ status?: "pending" | "in_progress" | "completed" | "blocked" | undefined;
267
+ dependencies?: string[] | undefined;
268
+ }[];
269
+ error?: string | undefined;
270
+ }>;
271
+ export declare const TaskExecutionInputSchema: z.ZodObject<{
272
+ action: z.ZodEnum<["create", "edit"]>;
273
+ workflowName: z.ZodOptional<z.ZodString>;
274
+ description: z.ZodOptional<z.ZodString>;
275
+ requirements: z.ZodOptional<z.ZodString>;
276
+ tasks: z.ZodArray<z.ZodObject<{
277
+ id: z.ZodString;
278
+ content: z.ZodString;
279
+ status: z.ZodDefault<z.ZodEnum<["pending", "in_progress", "completed", "blocked"]>>;
280
+ priority: z.ZodEnum<["high", "medium", "low"]>;
281
+ dependencies: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
282
+ notes: z.ZodString;
283
+ }, "strip", z.ZodTypeAny, {
284
+ status: "pending" | "in_progress" | "completed" | "blocked";
285
+ id: string;
286
+ content: string;
287
+ priority: "high" | "medium" | "low";
288
+ notes: string;
289
+ dependencies?: string[] | undefined;
290
+ }, {
291
+ id: string;
292
+ content: string;
293
+ priority: "high" | "medium" | "low";
294
+ notes: string;
295
+ status?: "pending" | "in_progress" | "completed" | "blocked" | undefined;
296
+ dependencies?: string[] | undefined;
297
+ }>, "many">;
298
+ discoveredWorkflows: z.ZodArray<z.ZodAny, "many">;
299
+ projectStructure: z.ZodAny;
300
+ research: z.ZodAny;
301
+ projectPath: z.ZodOptional<z.ZodString>;
302
+ }, "strip", z.ZodTypeAny, {
303
+ action: "create" | "edit";
304
+ tasks: {
305
+ status: "pending" | "in_progress" | "completed" | "blocked";
306
+ id: string;
307
+ content: string;
308
+ priority: "high" | "medium" | "low";
309
+ notes: string;
310
+ dependencies?: string[] | undefined;
311
+ }[];
312
+ discoveredWorkflows: any[];
313
+ description?: string | undefined;
314
+ projectPath?: string | undefined;
315
+ workflowName?: string | undefined;
316
+ requirements?: string | undefined;
317
+ projectStructure?: any;
318
+ research?: any;
319
+ }, {
320
+ action: "create" | "edit";
321
+ tasks: {
322
+ id: string;
323
+ content: string;
324
+ priority: "high" | "medium" | "low";
325
+ notes: string;
326
+ status?: "pending" | "in_progress" | "completed" | "blocked" | undefined;
327
+ dependencies?: string[] | undefined;
328
+ }[];
329
+ discoveredWorkflows: any[];
330
+ description?: string | undefined;
331
+ projectPath?: string | undefined;
332
+ workflowName?: string | undefined;
333
+ requirements?: string | undefined;
334
+ projectStructure?: any;
335
+ research?: any;
336
+ }>;
337
+ export declare const TaskExecutionSuspendSchema: z.ZodObject<{
338
+ questions: z.ZodArray<z.ZodObject<{
339
+ id: z.ZodString;
340
+ question: z.ZodString;
341
+ type: z.ZodEnum<["choice", "text", "boolean"]>;
342
+ options: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
343
+ context: z.ZodOptional<z.ZodString>;
344
+ }, "strip", z.ZodTypeAny, {
345
+ type: "boolean" | "text" | "choice";
346
+ id: string;
347
+ question: string;
348
+ options?: string[] | undefined;
349
+ context?: string | undefined;
350
+ }, {
351
+ type: "boolean" | "text" | "choice";
352
+ id: string;
353
+ question: string;
354
+ options?: string[] | undefined;
355
+ context?: string | undefined;
356
+ }>, "many">;
357
+ currentProgress: z.ZodString;
358
+ completedTasks: z.ZodArray<z.ZodString, "many">;
359
+ message: z.ZodString;
360
+ }, "strip", z.ZodTypeAny, {
361
+ message: string;
362
+ questions: {
363
+ type: "boolean" | "text" | "choice";
364
+ id: string;
365
+ question: string;
366
+ options?: string[] | undefined;
367
+ context?: string | undefined;
368
+ }[];
369
+ currentProgress: string;
370
+ completedTasks: string[];
371
+ }, {
372
+ message: string;
373
+ questions: {
374
+ type: "boolean" | "text" | "choice";
375
+ id: string;
376
+ question: string;
377
+ options?: string[] | undefined;
378
+ context?: string | undefined;
379
+ }[];
380
+ currentProgress: string;
381
+ completedTasks: string[];
382
+ }>;
383
+ export declare const TaskExecutionResumeSchema: z.ZodObject<{
384
+ answers: z.ZodArray<z.ZodObject<{
385
+ questionId: z.ZodString;
386
+ answer: z.ZodString;
387
+ }, "strip", z.ZodTypeAny, {
388
+ questionId: string;
389
+ answer: string;
390
+ }, {
391
+ questionId: string;
392
+ answer: string;
393
+ }>, "many">;
394
+ }, "strip", z.ZodTypeAny, {
395
+ answers: {
396
+ questionId: string;
397
+ answer: string;
398
+ }[];
399
+ }, {
400
+ answers: {
401
+ questionId: string;
402
+ answer: string;
403
+ }[];
404
+ }>;
405
+ export declare const TaskExecutionResultSchema: z.ZodObject<{
406
+ success: z.ZodBoolean;
407
+ filesModified: z.ZodArray<z.ZodString, "many">;
408
+ validationResults: z.ZodObject<{
409
+ passed: z.ZodBoolean;
410
+ errors: z.ZodArray<z.ZodString, "many">;
411
+ warnings: z.ZodArray<z.ZodString, "many">;
412
+ }, "strip", z.ZodTypeAny, {
413
+ errors: string[];
414
+ warnings: string[];
415
+ passed: boolean;
416
+ }, {
417
+ errors: string[];
418
+ warnings: string[];
419
+ passed: boolean;
420
+ }>;
421
+ completedTasks: z.ZodArray<z.ZodString, "many">;
422
+ message: z.ZodString;
423
+ error: z.ZodOptional<z.ZodString>;
424
+ }, "strip", z.ZodTypeAny, {
425
+ message: string;
426
+ success: boolean;
427
+ validationResults: {
428
+ errors: string[];
429
+ warnings: string[];
430
+ passed: boolean;
431
+ };
432
+ completedTasks: string[];
433
+ filesModified: string[];
434
+ error?: string | undefined;
435
+ }, {
436
+ message: string;
437
+ success: boolean;
438
+ validationResults: {
439
+ errors: string[];
440
+ warnings: string[];
441
+ passed: boolean;
442
+ };
443
+ completedTasks: string[];
444
+ filesModified: string[];
445
+ error?: string | undefined;
446
+ }>;
447
+ export declare const UserClarificationInputSchema: z.ZodObject<{
448
+ questions: z.ZodArray<z.ZodObject<{
449
+ id: z.ZodString;
450
+ question: z.ZodString;
451
+ type: z.ZodEnum<["choice", "text", "boolean"]>;
452
+ options: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
453
+ context: z.ZodOptional<z.ZodString>;
454
+ }, "strip", z.ZodTypeAny, {
455
+ type: "boolean" | "text" | "choice";
456
+ id: string;
457
+ question: string;
458
+ options?: string[] | undefined;
459
+ context?: string | undefined;
460
+ }, {
461
+ type: "boolean" | "text" | "choice";
462
+ id: string;
463
+ question: string;
464
+ options?: string[] | undefined;
465
+ context?: string | undefined;
466
+ }>, "many">;
467
+ }, "strip", z.ZodTypeAny, {
468
+ questions: {
469
+ type: "boolean" | "text" | "choice";
470
+ id: string;
471
+ question: string;
472
+ options?: string[] | undefined;
473
+ context?: string | undefined;
474
+ }[];
475
+ }, {
476
+ questions: {
477
+ type: "boolean" | "text" | "choice";
478
+ id: string;
479
+ question: string;
480
+ options?: string[] | undefined;
481
+ context?: string | undefined;
482
+ }[];
483
+ }>;
484
+ export declare const UserClarificationResultSchema: z.ZodObject<{
485
+ answers: z.ZodRecord<z.ZodString, z.ZodString>;
486
+ hasAnswers: z.ZodBoolean;
487
+ }, "strip", z.ZodTypeAny, {
488
+ answers: Record<string, string>;
489
+ hasAnswers: boolean;
490
+ }, {
491
+ answers: Record<string, string>;
492
+ hasAnswers: boolean;
493
+ }>;
494
+ export declare const WorkflowBuilderResultSchema: z.ZodObject<{
495
+ success: z.ZodBoolean;
496
+ action: z.ZodEnum<["create", "edit"]>;
497
+ workflowName: z.ZodOptional<z.ZodString>;
498
+ workflowFile: z.ZodOptional<z.ZodString>;
499
+ discovery: z.ZodOptional<z.ZodObject<{
500
+ success: z.ZodBoolean;
501
+ workflows: z.ZodArray<z.ZodObject<{
502
+ name: z.ZodString;
503
+ file: z.ZodString;
504
+ description: z.ZodOptional<z.ZodString>;
505
+ inputSchema: z.ZodOptional<z.ZodAny>;
506
+ outputSchema: z.ZodOptional<z.ZodAny>;
507
+ steps: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
508
+ }, "strip", z.ZodTypeAny, {
509
+ file: string;
510
+ name: string;
511
+ description?: string | undefined;
512
+ steps?: string[] | undefined;
513
+ inputSchema?: any;
514
+ outputSchema?: any;
515
+ }, {
516
+ file: string;
517
+ name: string;
518
+ description?: string | undefined;
519
+ steps?: string[] | undefined;
520
+ inputSchema?: any;
521
+ outputSchema?: any;
522
+ }>, "many">;
523
+ mastraIndexExists: z.ZodBoolean;
524
+ message: z.ZodString;
525
+ error: z.ZodOptional<z.ZodString>;
526
+ }, "strip", z.ZodTypeAny, {
527
+ message: string;
528
+ success: boolean;
529
+ workflows: {
530
+ file: string;
531
+ name: string;
532
+ description?: string | undefined;
533
+ steps?: string[] | undefined;
534
+ inputSchema?: any;
535
+ outputSchema?: any;
536
+ }[];
537
+ mastraIndexExists: boolean;
538
+ error?: string | undefined;
539
+ }, {
540
+ message: string;
541
+ success: boolean;
542
+ workflows: {
543
+ file: string;
544
+ name: string;
545
+ description?: string | undefined;
546
+ steps?: string[] | undefined;
547
+ inputSchema?: any;
548
+ outputSchema?: any;
549
+ }[];
550
+ mastraIndexExists: boolean;
551
+ error?: string | undefined;
552
+ }>>;
553
+ projectStructure: z.ZodOptional<z.ZodObject<{
554
+ success: z.ZodBoolean;
555
+ structure: z.ZodObject<{
556
+ hasWorkflowsDir: z.ZodBoolean;
557
+ hasAgentsDir: z.ZodBoolean;
558
+ hasToolsDir: z.ZodBoolean;
559
+ hasMastraIndex: z.ZodBoolean;
560
+ existingWorkflows: z.ZodArray<z.ZodString, "many">;
561
+ existingAgents: z.ZodArray<z.ZodString, "many">;
562
+ existingTools: z.ZodArray<z.ZodString, "many">;
563
+ }, "strip", z.ZodTypeAny, {
564
+ hasWorkflowsDir: boolean;
565
+ hasAgentsDir: boolean;
566
+ hasToolsDir: boolean;
567
+ hasMastraIndex: boolean;
568
+ existingWorkflows: string[];
569
+ existingAgents: string[];
570
+ existingTools: string[];
571
+ }, {
572
+ hasWorkflowsDir: boolean;
573
+ hasAgentsDir: boolean;
574
+ hasToolsDir: boolean;
575
+ hasMastraIndex: boolean;
576
+ existingWorkflows: string[];
577
+ existingAgents: string[];
578
+ existingTools: string[];
579
+ }>;
580
+ dependencies: z.ZodRecord<z.ZodString, z.ZodString>;
581
+ message: z.ZodString;
582
+ error: z.ZodOptional<z.ZodString>;
583
+ }, "strip", z.ZodTypeAny, {
584
+ message: string;
585
+ success: boolean;
586
+ dependencies: Record<string, string>;
587
+ structure: {
588
+ hasWorkflowsDir: boolean;
589
+ hasAgentsDir: boolean;
590
+ hasToolsDir: boolean;
591
+ hasMastraIndex: boolean;
592
+ existingWorkflows: string[];
593
+ existingAgents: string[];
594
+ existingTools: string[];
595
+ };
596
+ error?: string | undefined;
597
+ }, {
598
+ message: string;
599
+ success: boolean;
600
+ dependencies: Record<string, string>;
601
+ structure: {
602
+ hasWorkflowsDir: boolean;
603
+ hasAgentsDir: boolean;
604
+ hasToolsDir: boolean;
605
+ hasMastraIndex: boolean;
606
+ existingWorkflows: string[];
607
+ existingAgents: string[];
608
+ existingTools: string[];
609
+ };
610
+ error?: string | undefined;
611
+ }>>;
612
+ research: z.ZodOptional<z.ZodObject<{
613
+ success: z.ZodBoolean;
614
+ documentation: z.ZodObject<{
615
+ workflowPatterns: z.ZodArray<z.ZodString, "many">;
616
+ stepExamples: z.ZodArray<z.ZodString, "many">;
617
+ bestPractices: z.ZodArray<z.ZodString, "many">;
618
+ }, "strip", z.ZodTypeAny, {
619
+ workflowPatterns: string[];
620
+ stepExamples: string[];
621
+ bestPractices: string[];
622
+ }, {
623
+ workflowPatterns: string[];
624
+ stepExamples: string[];
625
+ bestPractices: string[];
626
+ }>;
627
+ webResources: z.ZodArray<z.ZodObject<{
628
+ title: z.ZodString;
629
+ url: z.ZodString;
630
+ snippet: z.ZodString;
631
+ relevance: z.ZodNumber;
632
+ }, "strip", z.ZodTypeAny, {
633
+ url: string;
634
+ relevance: number;
635
+ title: string;
636
+ snippet: string;
637
+ }, {
638
+ url: string;
639
+ relevance: number;
640
+ title: string;
641
+ snippet: string;
642
+ }>, "many">;
643
+ message: z.ZodString;
644
+ error: z.ZodOptional<z.ZodString>;
645
+ }, "strip", z.ZodTypeAny, {
646
+ message: string;
647
+ success: boolean;
648
+ documentation: {
649
+ workflowPatterns: string[];
650
+ stepExamples: string[];
651
+ bestPractices: string[];
652
+ };
653
+ webResources: {
654
+ url: string;
655
+ relevance: number;
656
+ title: string;
657
+ snippet: string;
658
+ }[];
659
+ error?: string | undefined;
660
+ }, {
661
+ message: string;
662
+ success: boolean;
663
+ documentation: {
664
+ workflowPatterns: string[];
665
+ stepExamples: string[];
666
+ bestPractices: string[];
667
+ };
668
+ webResources: {
669
+ url: string;
670
+ relevance: number;
671
+ title: string;
672
+ snippet: string;
673
+ }[];
674
+ error?: string | undefined;
675
+ }>>;
676
+ planning: z.ZodOptional<z.ZodObject<{
677
+ success: z.ZodBoolean;
678
+ tasks: z.ZodArray<z.ZodObject<{
679
+ id: z.ZodString;
680
+ content: z.ZodString;
681
+ status: z.ZodDefault<z.ZodEnum<["pending", "in_progress", "completed", "blocked"]>>;
682
+ priority: z.ZodEnum<["high", "medium", "low"]>;
683
+ dependencies: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
684
+ notes: z.ZodString;
685
+ }, "strip", z.ZodTypeAny, {
686
+ status: "pending" | "in_progress" | "completed" | "blocked";
687
+ id: string;
688
+ content: string;
689
+ priority: "high" | "medium" | "low";
690
+ notes: string;
691
+ dependencies?: string[] | undefined;
692
+ }, {
693
+ id: string;
694
+ content: string;
695
+ priority: "high" | "medium" | "low";
696
+ notes: string;
697
+ status?: "pending" | "in_progress" | "completed" | "blocked" | undefined;
698
+ dependencies?: string[] | undefined;
699
+ }>, "many">;
700
+ questions: z.ZodArray<z.ZodObject<{
701
+ id: z.ZodString;
702
+ question: z.ZodString;
703
+ type: z.ZodEnum<["choice", "text", "boolean"]>;
704
+ options: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
705
+ context: z.ZodOptional<z.ZodString>;
706
+ }, "strip", z.ZodTypeAny, {
707
+ type: "boolean" | "text" | "choice";
708
+ id: string;
709
+ question: string;
710
+ options?: string[] | undefined;
711
+ context?: string | undefined;
712
+ }, {
713
+ type: "boolean" | "text" | "choice";
714
+ id: string;
715
+ question: string;
716
+ options?: string[] | undefined;
717
+ context?: string | undefined;
718
+ }>, "many">;
719
+ reasoning: z.ZodString;
720
+ planComplete: z.ZodBoolean;
721
+ message: z.ZodString;
722
+ error: z.ZodOptional<z.ZodString>;
723
+ allPreviousQuestions: z.ZodOptional<z.ZodArray<z.ZodAny, "many">>;
724
+ allPreviousAnswers: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
725
+ }, "strip", z.ZodTypeAny, {
726
+ message: string;
727
+ success: boolean;
728
+ tasks: {
729
+ status: "pending" | "in_progress" | "completed" | "blocked";
730
+ id: string;
731
+ content: string;
732
+ priority: "high" | "medium" | "low";
733
+ notes: string;
734
+ dependencies?: string[] | undefined;
735
+ }[];
736
+ reasoning: string;
737
+ questions: {
738
+ type: "boolean" | "text" | "choice";
739
+ id: string;
740
+ question: string;
741
+ options?: string[] | undefined;
742
+ context?: string | undefined;
743
+ }[];
744
+ planComplete: boolean;
745
+ error?: string | undefined;
746
+ allPreviousQuestions?: any[] | undefined;
747
+ allPreviousAnswers?: Record<string, string> | undefined;
748
+ }, {
749
+ message: string;
750
+ success: boolean;
751
+ tasks: {
752
+ id: string;
753
+ content: string;
754
+ priority: "high" | "medium" | "low";
755
+ notes: string;
756
+ status?: "pending" | "in_progress" | "completed" | "blocked" | undefined;
757
+ dependencies?: string[] | undefined;
758
+ }[];
759
+ reasoning: string;
760
+ questions: {
761
+ type: "boolean" | "text" | "choice";
762
+ id: string;
763
+ question: string;
764
+ options?: string[] | undefined;
765
+ context?: string | undefined;
766
+ }[];
767
+ planComplete: boolean;
768
+ error?: string | undefined;
769
+ allPreviousQuestions?: any[] | undefined;
770
+ allPreviousAnswers?: Record<string, string> | undefined;
771
+ }>>;
772
+ taskManagement: z.ZodOptional<z.ZodObject<{
773
+ success: z.ZodBoolean;
774
+ tasks: z.ZodArray<z.ZodObject<{
775
+ id: z.ZodString;
776
+ content: z.ZodString;
777
+ status: z.ZodDefault<z.ZodEnum<["pending", "in_progress", "completed", "blocked"]>>;
778
+ priority: z.ZodEnum<["high", "medium", "low"]>;
779
+ dependencies: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
780
+ notes: z.ZodString;
781
+ }, "strip", z.ZodTypeAny, {
782
+ status: "pending" | "in_progress" | "completed" | "blocked";
783
+ id: string;
784
+ content: string;
785
+ priority: "high" | "medium" | "low";
786
+ notes: string;
787
+ dependencies?: string[] | undefined;
788
+ }, {
789
+ id: string;
790
+ content: string;
791
+ priority: "high" | "medium" | "low";
792
+ notes: string;
793
+ status?: "pending" | "in_progress" | "completed" | "blocked" | undefined;
794
+ dependencies?: string[] | undefined;
795
+ }>, "many">;
796
+ message: z.ZodString;
797
+ error: z.ZodOptional<z.ZodString>;
798
+ }, "strip", z.ZodTypeAny, {
799
+ message: string;
800
+ success: boolean;
801
+ tasks: {
802
+ status: "pending" | "in_progress" | "completed" | "blocked";
803
+ id: string;
804
+ content: string;
805
+ priority: "high" | "medium" | "low";
806
+ notes: string;
807
+ dependencies?: string[] | undefined;
808
+ }[];
809
+ error?: string | undefined;
810
+ }, {
811
+ message: string;
812
+ success: boolean;
813
+ tasks: {
814
+ id: string;
815
+ content: string;
816
+ priority: "high" | "medium" | "low";
817
+ notes: string;
818
+ status?: "pending" | "in_progress" | "completed" | "blocked" | undefined;
819
+ dependencies?: string[] | undefined;
820
+ }[];
821
+ error?: string | undefined;
822
+ }>>;
823
+ execution: z.ZodOptional<z.ZodObject<{
824
+ success: z.ZodBoolean;
825
+ filesModified: z.ZodArray<z.ZodString, "many">;
826
+ validationResults: z.ZodObject<{
827
+ passed: z.ZodBoolean;
828
+ errors: z.ZodArray<z.ZodString, "many">;
829
+ warnings: z.ZodArray<z.ZodString, "many">;
830
+ }, "strip", z.ZodTypeAny, {
831
+ errors: string[];
832
+ warnings: string[];
833
+ passed: boolean;
834
+ }, {
835
+ errors: string[];
836
+ warnings: string[];
837
+ passed: boolean;
838
+ }>;
839
+ completedTasks: z.ZodArray<z.ZodString, "many">;
840
+ message: z.ZodString;
841
+ error: z.ZodOptional<z.ZodString>;
842
+ }, "strip", z.ZodTypeAny, {
843
+ message: string;
844
+ success: boolean;
845
+ validationResults: {
846
+ errors: string[];
847
+ warnings: string[];
848
+ passed: boolean;
849
+ };
850
+ completedTasks: string[];
851
+ filesModified: string[];
852
+ error?: string | undefined;
853
+ }, {
854
+ message: string;
855
+ success: boolean;
856
+ validationResults: {
857
+ errors: string[];
858
+ warnings: string[];
859
+ passed: boolean;
860
+ };
861
+ completedTasks: string[];
862
+ filesModified: string[];
863
+ error?: string | undefined;
864
+ }>>;
865
+ needsUserInput: z.ZodOptional<z.ZodBoolean>;
866
+ questions: z.ZodOptional<z.ZodArray<z.ZodObject<{
867
+ id: z.ZodString;
868
+ question: z.ZodString;
869
+ type: z.ZodEnum<["choice", "text", "boolean"]>;
870
+ options: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
871
+ context: z.ZodOptional<z.ZodString>;
872
+ }, "strip", z.ZodTypeAny, {
873
+ type: "boolean" | "text" | "choice";
874
+ id: string;
875
+ question: string;
876
+ options?: string[] | undefined;
877
+ context?: string | undefined;
878
+ }, {
879
+ type: "boolean" | "text" | "choice";
880
+ id: string;
881
+ question: string;
882
+ options?: string[] | undefined;
883
+ context?: string | undefined;
884
+ }>, "many">>;
885
+ message: z.ZodString;
886
+ nextSteps: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
887
+ error: z.ZodOptional<z.ZodString>;
888
+ }, "strip", z.ZodTypeAny, {
889
+ message: string;
890
+ success: boolean;
891
+ action: "create" | "edit";
892
+ error?: string | undefined;
893
+ nextSteps?: string[] | undefined;
894
+ questions?: {
895
+ type: "boolean" | "text" | "choice";
896
+ id: string;
897
+ question: string;
898
+ options?: string[] | undefined;
899
+ context?: string | undefined;
900
+ }[] | undefined;
901
+ workflowName?: string | undefined;
902
+ projectStructure?: {
903
+ message: string;
904
+ success: boolean;
905
+ dependencies: Record<string, string>;
906
+ structure: {
907
+ hasWorkflowsDir: boolean;
908
+ hasAgentsDir: boolean;
909
+ hasToolsDir: boolean;
910
+ hasMastraIndex: boolean;
911
+ existingWorkflows: string[];
912
+ existingAgents: string[];
913
+ existingTools: string[];
914
+ };
915
+ error?: string | undefined;
916
+ } | undefined;
917
+ research?: {
918
+ message: string;
919
+ success: boolean;
920
+ documentation: {
921
+ workflowPatterns: string[];
922
+ stepExamples: string[];
923
+ bestPractices: string[];
924
+ };
925
+ webResources: {
926
+ url: string;
927
+ relevance: number;
928
+ title: string;
929
+ snippet: string;
930
+ }[];
931
+ error?: string | undefined;
932
+ } | undefined;
933
+ workflowFile?: string | undefined;
934
+ discovery?: {
935
+ message: string;
936
+ success: boolean;
937
+ workflows: {
938
+ file: string;
939
+ name: string;
940
+ description?: string | undefined;
941
+ steps?: string[] | undefined;
942
+ inputSchema?: any;
943
+ outputSchema?: any;
944
+ }[];
945
+ mastraIndexExists: boolean;
946
+ error?: string | undefined;
947
+ } | undefined;
948
+ planning?: {
949
+ message: string;
950
+ success: boolean;
951
+ tasks: {
952
+ status: "pending" | "in_progress" | "completed" | "blocked";
953
+ id: string;
954
+ content: string;
955
+ priority: "high" | "medium" | "low";
956
+ notes: string;
957
+ dependencies?: string[] | undefined;
958
+ }[];
959
+ reasoning: string;
960
+ questions: {
961
+ type: "boolean" | "text" | "choice";
962
+ id: string;
963
+ question: string;
964
+ options?: string[] | undefined;
965
+ context?: string | undefined;
966
+ }[];
967
+ planComplete: boolean;
968
+ error?: string | undefined;
969
+ allPreviousQuestions?: any[] | undefined;
970
+ allPreviousAnswers?: Record<string, string> | undefined;
971
+ } | undefined;
972
+ taskManagement?: {
973
+ message: string;
974
+ success: boolean;
975
+ tasks: {
976
+ status: "pending" | "in_progress" | "completed" | "blocked";
977
+ id: string;
978
+ content: string;
979
+ priority: "high" | "medium" | "low";
980
+ notes: string;
981
+ dependencies?: string[] | undefined;
982
+ }[];
983
+ error?: string | undefined;
984
+ } | undefined;
985
+ execution?: {
986
+ message: string;
987
+ success: boolean;
988
+ validationResults: {
989
+ errors: string[];
990
+ warnings: string[];
991
+ passed: boolean;
992
+ };
993
+ completedTasks: string[];
994
+ filesModified: string[];
995
+ error?: string | undefined;
996
+ } | undefined;
997
+ needsUserInput?: boolean | undefined;
998
+ }, {
999
+ message: string;
1000
+ success: boolean;
1001
+ action: "create" | "edit";
1002
+ error?: string | undefined;
1003
+ nextSteps?: string[] | undefined;
1004
+ questions?: {
1005
+ type: "boolean" | "text" | "choice";
1006
+ id: string;
1007
+ question: string;
1008
+ options?: string[] | undefined;
1009
+ context?: string | undefined;
1010
+ }[] | undefined;
1011
+ workflowName?: string | undefined;
1012
+ projectStructure?: {
1013
+ message: string;
1014
+ success: boolean;
1015
+ dependencies: Record<string, string>;
1016
+ structure: {
1017
+ hasWorkflowsDir: boolean;
1018
+ hasAgentsDir: boolean;
1019
+ hasToolsDir: boolean;
1020
+ hasMastraIndex: boolean;
1021
+ existingWorkflows: string[];
1022
+ existingAgents: string[];
1023
+ existingTools: string[];
1024
+ };
1025
+ error?: string | undefined;
1026
+ } | undefined;
1027
+ research?: {
1028
+ message: string;
1029
+ success: boolean;
1030
+ documentation: {
1031
+ workflowPatterns: string[];
1032
+ stepExamples: string[];
1033
+ bestPractices: string[];
1034
+ };
1035
+ webResources: {
1036
+ url: string;
1037
+ relevance: number;
1038
+ title: string;
1039
+ snippet: string;
1040
+ }[];
1041
+ error?: string | undefined;
1042
+ } | undefined;
1043
+ workflowFile?: string | undefined;
1044
+ discovery?: {
1045
+ message: string;
1046
+ success: boolean;
1047
+ workflows: {
1048
+ file: string;
1049
+ name: string;
1050
+ description?: string | undefined;
1051
+ steps?: string[] | undefined;
1052
+ inputSchema?: any;
1053
+ outputSchema?: any;
1054
+ }[];
1055
+ mastraIndexExists: boolean;
1056
+ error?: string | undefined;
1057
+ } | undefined;
1058
+ planning?: {
1059
+ message: string;
1060
+ success: boolean;
1061
+ tasks: {
1062
+ id: string;
1063
+ content: string;
1064
+ priority: "high" | "medium" | "low";
1065
+ notes: string;
1066
+ status?: "pending" | "in_progress" | "completed" | "blocked" | undefined;
1067
+ dependencies?: string[] | undefined;
1068
+ }[];
1069
+ reasoning: string;
1070
+ questions: {
1071
+ type: "boolean" | "text" | "choice";
1072
+ id: string;
1073
+ question: string;
1074
+ options?: string[] | undefined;
1075
+ context?: string | undefined;
1076
+ }[];
1077
+ planComplete: boolean;
1078
+ error?: string | undefined;
1079
+ allPreviousQuestions?: any[] | undefined;
1080
+ allPreviousAnswers?: Record<string, string> | undefined;
1081
+ } | undefined;
1082
+ taskManagement?: {
1083
+ message: string;
1084
+ success: boolean;
1085
+ tasks: {
1086
+ id: string;
1087
+ content: string;
1088
+ priority: "high" | "medium" | "low";
1089
+ notes: string;
1090
+ status?: "pending" | "in_progress" | "completed" | "blocked" | undefined;
1091
+ dependencies?: string[] | undefined;
1092
+ }[];
1093
+ error?: string | undefined;
1094
+ } | undefined;
1095
+ execution?: {
1096
+ message: string;
1097
+ success: boolean;
1098
+ validationResults: {
1099
+ errors: string[];
1100
+ warnings: string[];
1101
+ passed: boolean;
1102
+ };
1103
+ completedTasks: string[];
1104
+ filesModified: string[];
1105
+ error?: string | undefined;
1106
+ } | undefined;
1107
+ needsUserInput?: boolean | undefined;
1108
+ }>;
1109
+ export declare const TaskExecutionIterationInputSchema: (taskLength: number) => z.ZodObject<{
1110
+ status: z.ZodEnum<["in_progress", "completed", "needs_clarification"]>;
1111
+ progress: z.ZodString;
1112
+ completedTasks: z.ZodArray<z.ZodString, "many">;
1113
+ totalTasksRequired: z.ZodNumber;
1114
+ tasksRemaining: z.ZodArray<z.ZodString, "many">;
1115
+ filesModified: z.ZodArray<z.ZodString, "many">;
1116
+ questions: z.ZodOptional<z.ZodArray<z.ZodObject<{
1117
+ id: z.ZodString;
1118
+ question: z.ZodString;
1119
+ type: z.ZodEnum<["choice", "text", "boolean"]>;
1120
+ options: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
1121
+ context: z.ZodOptional<z.ZodString>;
1122
+ }, "strip", z.ZodTypeAny, {
1123
+ type: "boolean" | "text" | "choice";
1124
+ id: string;
1125
+ question: string;
1126
+ options?: string[] | undefined;
1127
+ context?: string | undefined;
1128
+ }, {
1129
+ type: "boolean" | "text" | "choice";
1130
+ id: string;
1131
+ question: string;
1132
+ options?: string[] | undefined;
1133
+ context?: string | undefined;
1134
+ }>, "many">>;
1135
+ message: z.ZodString;
1136
+ error: z.ZodOptional<z.ZodString>;
1137
+ }, "strip", z.ZodTypeAny, {
1138
+ status: "in_progress" | "completed" | "needs_clarification";
1139
+ message: string;
1140
+ completedTasks: string[];
1141
+ filesModified: string[];
1142
+ progress: string;
1143
+ totalTasksRequired: number;
1144
+ tasksRemaining: string[];
1145
+ error?: string | undefined;
1146
+ questions?: {
1147
+ type: "boolean" | "text" | "choice";
1148
+ id: string;
1149
+ question: string;
1150
+ options?: string[] | undefined;
1151
+ context?: string | undefined;
1152
+ }[] | undefined;
1153
+ }, {
1154
+ status: "in_progress" | "completed" | "needs_clarification";
1155
+ message: string;
1156
+ completedTasks: string[];
1157
+ filesModified: string[];
1158
+ progress: string;
1159
+ totalTasksRequired: number;
1160
+ tasksRemaining: string[];
1161
+ error?: string | undefined;
1162
+ questions?: {
1163
+ type: "boolean" | "text" | "choice";
1164
+ id: string;
1165
+ question: string;
1166
+ options?: string[] | undefined;
1167
+ context?: string | undefined;
1168
+ }[] | undefined;
1169
+ }>;
1170
+ //# sourceMappingURL=schema.d.ts.map