@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,3735 @@
1
+ export declare const agentBuilderWorkflows: {
2
+ 'merge-template': import("@mastra/core/workflows").Workflow<import("@mastra/core").DefaultEngineType, (import("@mastra/core").Step<"clone-template", import("zod").ZodObject<{
3
+ repo: import("zod").ZodString;
4
+ ref: import("zod").ZodOptional<import("zod").ZodString>;
5
+ slug: import("zod").ZodOptional<import("zod").ZodString>;
6
+ targetPath: import("zod").ZodOptional<import("zod").ZodString>;
7
+ }, "strip", import("zod").ZodTypeAny, {
8
+ repo: string;
9
+ slug?: string | undefined;
10
+ ref?: string | undefined;
11
+ targetPath?: string | undefined;
12
+ }, {
13
+ repo: string;
14
+ slug?: string | undefined;
15
+ ref?: string | undefined;
16
+ targetPath?: string | undefined;
17
+ }>, import("zod").ZodObject<{
18
+ templateDir: import("zod").ZodString;
19
+ commitSha: import("zod").ZodString;
20
+ slug: import("zod").ZodString;
21
+ success: import("zod").ZodOptional<import("zod").ZodBoolean>;
22
+ error: import("zod").ZodOptional<import("zod").ZodString>;
23
+ }, "strip", import("zod").ZodTypeAny, {
24
+ slug: string;
25
+ commitSha: string;
26
+ templateDir: string;
27
+ success?: boolean | undefined;
28
+ error?: string | undefined;
29
+ }, {
30
+ slug: string;
31
+ commitSha: string;
32
+ templateDir: string;
33
+ success?: boolean | undefined;
34
+ error?: string | undefined;
35
+ }>, import("zod").ZodType<any, import("zod").ZodTypeDef, any>, import("zod").ZodType<any, import("zod").ZodTypeDef, any>, import("@mastra/core").DefaultEngineType> | import("@mastra/core").Step<"analyze-package", import("zod").ZodObject<{
36
+ templateDir: import("zod").ZodString;
37
+ commitSha: import("zod").ZodString;
38
+ slug: import("zod").ZodString;
39
+ success: import("zod").ZodOptional<import("zod").ZodBoolean>;
40
+ error: import("zod").ZodOptional<import("zod").ZodString>;
41
+ }, "strip", import("zod").ZodTypeAny, {
42
+ slug: string;
43
+ commitSha: string;
44
+ templateDir: string;
45
+ success?: boolean | undefined;
46
+ error?: string | undefined;
47
+ }, {
48
+ slug: string;
49
+ commitSha: string;
50
+ templateDir: string;
51
+ success?: boolean | undefined;
52
+ error?: string | undefined;
53
+ }>, import("zod").ZodObject<{
54
+ name: import("zod").ZodOptional<import("zod").ZodString>;
55
+ version: import("zod").ZodOptional<import("zod").ZodString>;
56
+ description: import("zod").ZodOptional<import("zod").ZodString>;
57
+ dependencies: import("zod").ZodOptional<import("zod").ZodRecord<import("zod").ZodString, import("zod").ZodString>>;
58
+ devDependencies: import("zod").ZodOptional<import("zod").ZodRecord<import("zod").ZodString, import("zod").ZodString>>;
59
+ peerDependencies: import("zod").ZodOptional<import("zod").ZodRecord<import("zod").ZodString, import("zod").ZodString>>;
60
+ scripts: import("zod").ZodOptional<import("zod").ZodRecord<import("zod").ZodString, import("zod").ZodString>>;
61
+ success: import("zod").ZodOptional<import("zod").ZodBoolean>;
62
+ error: import("zod").ZodOptional<import("zod").ZodString>;
63
+ }, "strip", import("zod").ZodTypeAny, {
64
+ description?: string | undefined;
65
+ success?: boolean | undefined;
66
+ error?: string | undefined;
67
+ name?: string | undefined;
68
+ version?: string | undefined;
69
+ dependencies?: Record<string, string> | undefined;
70
+ devDependencies?: Record<string, string> | undefined;
71
+ peerDependencies?: Record<string, string> | undefined;
72
+ scripts?: Record<string, string> | undefined;
73
+ }, {
74
+ description?: string | undefined;
75
+ success?: boolean | undefined;
76
+ error?: string | undefined;
77
+ name?: string | undefined;
78
+ version?: string | undefined;
79
+ dependencies?: Record<string, string> | undefined;
80
+ devDependencies?: Record<string, string> | undefined;
81
+ peerDependencies?: Record<string, string> | undefined;
82
+ scripts?: Record<string, string> | undefined;
83
+ }>, import("zod").ZodType<any, import("zod").ZodTypeDef, any>, import("zod").ZodType<any, import("zod").ZodTypeDef, any>, import("@mastra/core").DefaultEngineType> | import("@mastra/core").Step<"discover-units", import("zod").ZodObject<{
84
+ templateDir: import("zod").ZodString;
85
+ commitSha: import("zod").ZodString;
86
+ slug: import("zod").ZodString;
87
+ success: import("zod").ZodOptional<import("zod").ZodBoolean>;
88
+ error: import("zod").ZodOptional<import("zod").ZodString>;
89
+ }, "strip", import("zod").ZodTypeAny, {
90
+ slug: string;
91
+ commitSha: string;
92
+ templateDir: string;
93
+ success?: boolean | undefined;
94
+ error?: string | undefined;
95
+ }, {
96
+ slug: string;
97
+ commitSha: string;
98
+ templateDir: string;
99
+ success?: boolean | undefined;
100
+ error?: string | undefined;
101
+ }>, import("zod").ZodObject<{
102
+ units: import("zod").ZodArray<import("zod").ZodObject<{
103
+ kind: import("zod").ZodEnum<["mcp-server", "tool", "workflow", "agent", "integration", "network", "other"]>;
104
+ id: import("zod").ZodString;
105
+ file: import("zod").ZodString;
106
+ }, "strip", import("zod").ZodTypeAny, {
107
+ kind: "integration" | "mcp-server" | "tool" | "workflow" | "agent" | "network" | "other";
108
+ id: string;
109
+ file: string;
110
+ }, {
111
+ kind: "integration" | "mcp-server" | "tool" | "workflow" | "agent" | "network" | "other";
112
+ id: string;
113
+ file: string;
114
+ }>, "many">;
115
+ success: import("zod").ZodOptional<import("zod").ZodBoolean>;
116
+ error: import("zod").ZodOptional<import("zod").ZodString>;
117
+ }, "strip", import("zod").ZodTypeAny, {
118
+ units: {
119
+ kind: "integration" | "mcp-server" | "tool" | "workflow" | "agent" | "network" | "other";
120
+ id: string;
121
+ file: string;
122
+ }[];
123
+ success?: boolean | undefined;
124
+ error?: string | undefined;
125
+ }, {
126
+ units: {
127
+ kind: "integration" | "mcp-server" | "tool" | "workflow" | "agent" | "network" | "other";
128
+ id: string;
129
+ file: string;
130
+ }[];
131
+ success?: boolean | undefined;
132
+ error?: string | undefined;
133
+ }>, import("zod").ZodType<any, import("zod").ZodTypeDef, any>, import("zod").ZodType<any, import("zod").ZodTypeDef, any>, import("@mastra/core").DefaultEngineType> | import("@mastra/core").Step<"order-units", import("zod").ZodObject<{
134
+ units: import("zod").ZodArray<import("zod").ZodObject<{
135
+ kind: import("zod").ZodEnum<["mcp-server", "tool", "workflow", "agent", "integration", "network", "other"]>;
136
+ id: import("zod").ZodString;
137
+ file: import("zod").ZodString;
138
+ }, "strip", import("zod").ZodTypeAny, {
139
+ kind: "integration" | "mcp-server" | "tool" | "workflow" | "agent" | "network" | "other";
140
+ id: string;
141
+ file: string;
142
+ }, {
143
+ kind: "integration" | "mcp-server" | "tool" | "workflow" | "agent" | "network" | "other";
144
+ id: string;
145
+ file: string;
146
+ }>, "many">;
147
+ success: import("zod").ZodOptional<import("zod").ZodBoolean>;
148
+ error: import("zod").ZodOptional<import("zod").ZodString>;
149
+ }, "strip", import("zod").ZodTypeAny, {
150
+ units: {
151
+ kind: "integration" | "mcp-server" | "tool" | "workflow" | "agent" | "network" | "other";
152
+ id: string;
153
+ file: string;
154
+ }[];
155
+ success?: boolean | undefined;
156
+ error?: string | undefined;
157
+ }, {
158
+ units: {
159
+ kind: "integration" | "mcp-server" | "tool" | "workflow" | "agent" | "network" | "other";
160
+ id: string;
161
+ file: string;
162
+ }[];
163
+ success?: boolean | undefined;
164
+ error?: string | undefined;
165
+ }>, import("zod").ZodObject<{
166
+ orderedUnits: import("zod").ZodArray<import("zod").ZodObject<{
167
+ kind: import("zod").ZodEnum<["mcp-server", "tool", "workflow", "agent", "integration", "network", "other"]>;
168
+ id: import("zod").ZodString;
169
+ file: import("zod").ZodString;
170
+ }, "strip", import("zod").ZodTypeAny, {
171
+ kind: "integration" | "mcp-server" | "tool" | "workflow" | "agent" | "network" | "other";
172
+ id: string;
173
+ file: string;
174
+ }, {
175
+ kind: "integration" | "mcp-server" | "tool" | "workflow" | "agent" | "network" | "other";
176
+ id: string;
177
+ file: string;
178
+ }>, "many">;
179
+ success: import("zod").ZodOptional<import("zod").ZodBoolean>;
180
+ error: import("zod").ZodOptional<import("zod").ZodString>;
181
+ }, "strip", import("zod").ZodTypeAny, {
182
+ orderedUnits: {
183
+ kind: "integration" | "mcp-server" | "tool" | "workflow" | "agent" | "network" | "other";
184
+ id: string;
185
+ file: string;
186
+ }[];
187
+ success?: boolean | undefined;
188
+ error?: string | undefined;
189
+ }, {
190
+ orderedUnits: {
191
+ kind: "integration" | "mcp-server" | "tool" | "workflow" | "agent" | "network" | "other";
192
+ id: string;
193
+ file: string;
194
+ }[];
195
+ success?: boolean | undefined;
196
+ error?: string | undefined;
197
+ }>, import("zod").ZodType<any, import("zod").ZodTypeDef, any>, import("zod").ZodType<any, import("zod").ZodTypeDef, any>, import("@mastra/core").DefaultEngineType> | import("@mastra/core").Step<"package-merge", import("zod").ZodObject<{
198
+ commitSha: import("zod").ZodString;
199
+ slug: import("zod").ZodString;
200
+ targetPath: import("zod").ZodOptional<import("zod").ZodString>;
201
+ packageInfo: import("zod").ZodObject<{
202
+ name: import("zod").ZodOptional<import("zod").ZodString>;
203
+ version: import("zod").ZodOptional<import("zod").ZodString>;
204
+ description: import("zod").ZodOptional<import("zod").ZodString>;
205
+ dependencies: import("zod").ZodOptional<import("zod").ZodRecord<import("zod").ZodString, import("zod").ZodString>>;
206
+ devDependencies: import("zod").ZodOptional<import("zod").ZodRecord<import("zod").ZodString, import("zod").ZodString>>;
207
+ peerDependencies: import("zod").ZodOptional<import("zod").ZodRecord<import("zod").ZodString, import("zod").ZodString>>;
208
+ scripts: import("zod").ZodOptional<import("zod").ZodRecord<import("zod").ZodString, import("zod").ZodString>>;
209
+ success: import("zod").ZodOptional<import("zod").ZodBoolean>;
210
+ error: import("zod").ZodOptional<import("zod").ZodString>;
211
+ }, "strip", import("zod").ZodTypeAny, {
212
+ description?: string | undefined;
213
+ success?: boolean | undefined;
214
+ error?: string | undefined;
215
+ name?: string | undefined;
216
+ version?: string | undefined;
217
+ dependencies?: Record<string, string> | undefined;
218
+ devDependencies?: Record<string, string> | undefined;
219
+ peerDependencies?: Record<string, string> | undefined;
220
+ scripts?: Record<string, string> | undefined;
221
+ }, {
222
+ description?: string | undefined;
223
+ success?: boolean | undefined;
224
+ error?: string | undefined;
225
+ name?: string | undefined;
226
+ version?: string | undefined;
227
+ dependencies?: Record<string, string> | undefined;
228
+ devDependencies?: Record<string, string> | undefined;
229
+ peerDependencies?: Record<string, string> | undefined;
230
+ scripts?: Record<string, string> | undefined;
231
+ }>;
232
+ }, "strip", import("zod").ZodTypeAny, {
233
+ slug: string;
234
+ commitSha: string;
235
+ packageInfo: {
236
+ description?: string | undefined;
237
+ success?: boolean | undefined;
238
+ error?: string | undefined;
239
+ name?: string | undefined;
240
+ version?: string | undefined;
241
+ dependencies?: Record<string, string> | undefined;
242
+ devDependencies?: Record<string, string> | undefined;
243
+ peerDependencies?: Record<string, string> | undefined;
244
+ scripts?: Record<string, string> | undefined;
245
+ };
246
+ targetPath?: string | undefined;
247
+ }, {
248
+ slug: string;
249
+ commitSha: string;
250
+ packageInfo: {
251
+ description?: string | undefined;
252
+ success?: boolean | undefined;
253
+ error?: string | undefined;
254
+ name?: string | undefined;
255
+ version?: string | undefined;
256
+ dependencies?: Record<string, string> | undefined;
257
+ devDependencies?: Record<string, string> | undefined;
258
+ peerDependencies?: Record<string, string> | undefined;
259
+ scripts?: Record<string, string> | undefined;
260
+ };
261
+ targetPath?: string | undefined;
262
+ }>, import("zod").ZodObject<{
263
+ success: import("zod").ZodBoolean;
264
+ applied: import("zod").ZodBoolean;
265
+ message: import("zod").ZodString;
266
+ error: import("zod").ZodOptional<import("zod").ZodString>;
267
+ }, "strip", import("zod").ZodTypeAny, {
268
+ message: string;
269
+ success: boolean;
270
+ applied: boolean;
271
+ error?: string | undefined;
272
+ }, {
273
+ message: string;
274
+ success: boolean;
275
+ applied: boolean;
276
+ error?: string | undefined;
277
+ }>, import("zod").ZodType<any, import("zod").ZodTypeDef, any>, import("zod").ZodType<any, import("zod").ZodTypeDef, any>, import("@mastra/core").DefaultEngineType> | import("@mastra/core").Step<"install", import("zod").ZodObject<{
278
+ targetPath: import("zod").ZodString;
279
+ }, "strip", import("zod").ZodTypeAny, {
280
+ targetPath: string;
281
+ }, {
282
+ targetPath: string;
283
+ }>, import("zod").ZodObject<{
284
+ success: import("zod").ZodBoolean;
285
+ error: import("zod").ZodOptional<import("zod").ZodString>;
286
+ }, "strip", import("zod").ZodTypeAny, {
287
+ success: boolean;
288
+ error?: string | undefined;
289
+ }, {
290
+ success: boolean;
291
+ error?: string | undefined;
292
+ }>, import("zod").ZodType<any, import("zod").ZodTypeDef, any>, import("zod").ZodType<any, import("zod").ZodTypeDef, any>, import("@mastra/core").DefaultEngineType> | import("@mastra/core").Step<"programmatic-file-copy", import("zod").ZodObject<{
293
+ orderedUnits: import("zod").ZodArray<import("zod").ZodObject<{
294
+ kind: import("zod").ZodEnum<["mcp-server", "tool", "workflow", "agent", "integration", "network", "other"]>;
295
+ id: import("zod").ZodString;
296
+ file: import("zod").ZodString;
297
+ }, "strip", import("zod").ZodTypeAny, {
298
+ kind: "integration" | "mcp-server" | "tool" | "workflow" | "agent" | "network" | "other";
299
+ id: string;
300
+ file: string;
301
+ }, {
302
+ kind: "integration" | "mcp-server" | "tool" | "workflow" | "agent" | "network" | "other";
303
+ id: string;
304
+ file: string;
305
+ }>, "many">;
306
+ templateDir: import("zod").ZodString;
307
+ commitSha: import("zod").ZodString;
308
+ slug: import("zod").ZodString;
309
+ targetPath: import("zod").ZodOptional<import("zod").ZodString>;
310
+ }, "strip", import("zod").ZodTypeAny, {
311
+ slug: string;
312
+ commitSha: string;
313
+ templateDir: string;
314
+ orderedUnits: {
315
+ kind: "integration" | "mcp-server" | "tool" | "workflow" | "agent" | "network" | "other";
316
+ id: string;
317
+ file: string;
318
+ }[];
319
+ targetPath?: string | undefined;
320
+ }, {
321
+ slug: string;
322
+ commitSha: string;
323
+ templateDir: string;
324
+ orderedUnits: {
325
+ kind: "integration" | "mcp-server" | "tool" | "workflow" | "agent" | "network" | "other";
326
+ id: string;
327
+ file: string;
328
+ }[];
329
+ targetPath?: string | undefined;
330
+ }>, import("zod").ZodObject<{
331
+ success: import("zod").ZodBoolean;
332
+ copiedFiles: import("zod").ZodArray<import("zod").ZodObject<{
333
+ source: import("zod").ZodString;
334
+ destination: import("zod").ZodString;
335
+ unit: import("zod").ZodObject<{
336
+ kind: import("zod").ZodEnum<["mcp-server", "tool", "workflow", "agent", "integration", "network", "other"]>;
337
+ id: import("zod").ZodString;
338
+ }, "strip", import("zod").ZodTypeAny, {
339
+ kind: "integration" | "mcp-server" | "tool" | "workflow" | "agent" | "network" | "other";
340
+ id: string;
341
+ }, {
342
+ kind: "integration" | "mcp-server" | "tool" | "workflow" | "agent" | "network" | "other";
343
+ id: string;
344
+ }>;
345
+ }, "strip", import("zod").ZodTypeAny, {
346
+ source: string;
347
+ destination: string;
348
+ unit: {
349
+ kind: "integration" | "mcp-server" | "tool" | "workflow" | "agent" | "network" | "other";
350
+ id: string;
351
+ };
352
+ }, {
353
+ source: string;
354
+ destination: string;
355
+ unit: {
356
+ kind: "integration" | "mcp-server" | "tool" | "workflow" | "agent" | "network" | "other";
357
+ id: string;
358
+ };
359
+ }>, "many">;
360
+ conflicts: import("zod").ZodArray<import("zod").ZodObject<{
361
+ unit: import("zod").ZodObject<{
362
+ kind: import("zod").ZodEnum<["mcp-server", "tool", "workflow", "agent", "integration", "network", "other"]>;
363
+ id: import("zod").ZodString;
364
+ }, "strip", import("zod").ZodTypeAny, {
365
+ kind: "integration" | "mcp-server" | "tool" | "workflow" | "agent" | "network" | "other";
366
+ id: string;
367
+ }, {
368
+ kind: "integration" | "mcp-server" | "tool" | "workflow" | "agent" | "network" | "other";
369
+ id: string;
370
+ }>;
371
+ issue: import("zod").ZodString;
372
+ sourceFile: import("zod").ZodString;
373
+ targetFile: import("zod").ZodString;
374
+ }, "strip", import("zod").ZodTypeAny, {
375
+ unit: {
376
+ kind: "integration" | "mcp-server" | "tool" | "workflow" | "agent" | "network" | "other";
377
+ id: string;
378
+ };
379
+ issue: string;
380
+ sourceFile: string;
381
+ targetFile: string;
382
+ }, {
383
+ unit: {
384
+ kind: "integration" | "mcp-server" | "tool" | "workflow" | "agent" | "network" | "other";
385
+ id: string;
386
+ };
387
+ issue: string;
388
+ sourceFile: string;
389
+ targetFile: string;
390
+ }>, "many">;
391
+ message: import("zod").ZodString;
392
+ error: import("zod").ZodOptional<import("zod").ZodString>;
393
+ }, "strip", import("zod").ZodTypeAny, {
394
+ message: string;
395
+ success: boolean;
396
+ copiedFiles: {
397
+ source: string;
398
+ destination: string;
399
+ unit: {
400
+ kind: "integration" | "mcp-server" | "tool" | "workflow" | "agent" | "network" | "other";
401
+ id: string;
402
+ };
403
+ }[];
404
+ conflicts: {
405
+ unit: {
406
+ kind: "integration" | "mcp-server" | "tool" | "workflow" | "agent" | "network" | "other";
407
+ id: string;
408
+ };
409
+ issue: string;
410
+ sourceFile: string;
411
+ targetFile: string;
412
+ }[];
413
+ error?: string | undefined;
414
+ }, {
415
+ message: string;
416
+ success: boolean;
417
+ copiedFiles: {
418
+ source: string;
419
+ destination: string;
420
+ unit: {
421
+ kind: "integration" | "mcp-server" | "tool" | "workflow" | "agent" | "network" | "other";
422
+ id: string;
423
+ };
424
+ }[];
425
+ conflicts: {
426
+ unit: {
427
+ kind: "integration" | "mcp-server" | "tool" | "workflow" | "agent" | "network" | "other";
428
+ id: string;
429
+ };
430
+ issue: string;
431
+ sourceFile: string;
432
+ targetFile: string;
433
+ }[];
434
+ error?: string | undefined;
435
+ }>, import("zod").ZodType<any, import("zod").ZodTypeDef, any>, import("zod").ZodType<any, import("zod").ZodTypeDef, any>, import("@mastra/core").DefaultEngineType> | import("@mastra/core").Step<"intelligent-merge", import("zod").ZodObject<{
436
+ conflicts: import("zod").ZodArray<import("zod").ZodObject<{
437
+ unit: import("zod").ZodObject<{
438
+ kind: import("zod").ZodEnum<["mcp-server", "tool", "workflow", "agent", "integration", "network", "other"]>;
439
+ id: import("zod").ZodString;
440
+ }, "strip", import("zod").ZodTypeAny, {
441
+ kind: "integration" | "mcp-server" | "tool" | "workflow" | "agent" | "network" | "other";
442
+ id: string;
443
+ }, {
444
+ kind: "integration" | "mcp-server" | "tool" | "workflow" | "agent" | "network" | "other";
445
+ id: string;
446
+ }>;
447
+ issue: import("zod").ZodString;
448
+ sourceFile: import("zod").ZodString;
449
+ targetFile: import("zod").ZodString;
450
+ }, "strip", import("zod").ZodTypeAny, {
451
+ unit: {
452
+ kind: "integration" | "mcp-server" | "tool" | "workflow" | "agent" | "network" | "other";
453
+ id: string;
454
+ };
455
+ issue: string;
456
+ sourceFile: string;
457
+ targetFile: string;
458
+ }, {
459
+ unit: {
460
+ kind: "integration" | "mcp-server" | "tool" | "workflow" | "agent" | "network" | "other";
461
+ id: string;
462
+ };
463
+ issue: string;
464
+ sourceFile: string;
465
+ targetFile: string;
466
+ }>, "many">;
467
+ copiedFiles: import("zod").ZodArray<import("zod").ZodObject<{
468
+ source: import("zod").ZodString;
469
+ destination: import("zod").ZodString;
470
+ unit: import("zod").ZodObject<{
471
+ kind: import("zod").ZodEnum<["mcp-server", "tool", "workflow", "agent", "integration", "network", "other"]>;
472
+ id: import("zod").ZodString;
473
+ }, "strip", import("zod").ZodTypeAny, {
474
+ kind: "integration" | "mcp-server" | "tool" | "workflow" | "agent" | "network" | "other";
475
+ id: string;
476
+ }, {
477
+ kind: "integration" | "mcp-server" | "tool" | "workflow" | "agent" | "network" | "other";
478
+ id: string;
479
+ }>;
480
+ }, "strip", import("zod").ZodTypeAny, {
481
+ source: string;
482
+ destination: string;
483
+ unit: {
484
+ kind: "integration" | "mcp-server" | "tool" | "workflow" | "agent" | "network" | "other";
485
+ id: string;
486
+ };
487
+ }, {
488
+ source: string;
489
+ destination: string;
490
+ unit: {
491
+ kind: "integration" | "mcp-server" | "tool" | "workflow" | "agent" | "network" | "other";
492
+ id: string;
493
+ };
494
+ }>, "many">;
495
+ templateDir: import("zod").ZodString;
496
+ commitSha: import("zod").ZodString;
497
+ slug: import("zod").ZodString;
498
+ targetPath: import("zod").ZodOptional<import("zod").ZodString>;
499
+ branchName: import("zod").ZodOptional<import("zod").ZodString>;
500
+ }, "strip", import("zod").ZodTypeAny, {
501
+ slug: string;
502
+ commitSha: string;
503
+ templateDir: string;
504
+ copiedFiles: {
505
+ source: string;
506
+ destination: string;
507
+ unit: {
508
+ kind: "integration" | "mcp-server" | "tool" | "workflow" | "agent" | "network" | "other";
509
+ id: string;
510
+ };
511
+ }[];
512
+ conflicts: {
513
+ unit: {
514
+ kind: "integration" | "mcp-server" | "tool" | "workflow" | "agent" | "network" | "other";
515
+ id: string;
516
+ };
517
+ issue: string;
518
+ sourceFile: string;
519
+ targetFile: string;
520
+ }[];
521
+ targetPath?: string | undefined;
522
+ branchName?: string | undefined;
523
+ }, {
524
+ slug: string;
525
+ commitSha: string;
526
+ templateDir: string;
527
+ copiedFiles: {
528
+ source: string;
529
+ destination: string;
530
+ unit: {
531
+ kind: "integration" | "mcp-server" | "tool" | "workflow" | "agent" | "network" | "other";
532
+ id: string;
533
+ };
534
+ }[];
535
+ conflicts: {
536
+ unit: {
537
+ kind: "integration" | "mcp-server" | "tool" | "workflow" | "agent" | "network" | "other";
538
+ id: string;
539
+ };
540
+ issue: string;
541
+ sourceFile: string;
542
+ targetFile: string;
543
+ }[];
544
+ targetPath?: string | undefined;
545
+ branchName?: string | undefined;
546
+ }>, import("zod").ZodObject<{
547
+ success: import("zod").ZodBoolean;
548
+ applied: import("zod").ZodBoolean;
549
+ message: import("zod").ZodString;
550
+ conflictsResolved: import("zod").ZodArray<import("zod").ZodObject<{
551
+ unit: import("zod").ZodObject<{
552
+ kind: import("zod").ZodEnum<["mcp-server", "tool", "workflow", "agent", "integration", "network", "other"]>;
553
+ id: import("zod").ZodString;
554
+ }, "strip", import("zod").ZodTypeAny, {
555
+ kind: "integration" | "mcp-server" | "tool" | "workflow" | "agent" | "network" | "other";
556
+ id: string;
557
+ }, {
558
+ kind: "integration" | "mcp-server" | "tool" | "workflow" | "agent" | "network" | "other";
559
+ id: string;
560
+ }>;
561
+ issue: import("zod").ZodString;
562
+ resolution: import("zod").ZodString;
563
+ }, "strip", import("zod").ZodTypeAny, {
564
+ unit: {
565
+ kind: "integration" | "mcp-server" | "tool" | "workflow" | "agent" | "network" | "other";
566
+ id: string;
567
+ };
568
+ issue: string;
569
+ resolution: string;
570
+ }, {
571
+ unit: {
572
+ kind: "integration" | "mcp-server" | "tool" | "workflow" | "agent" | "network" | "other";
573
+ id: string;
574
+ };
575
+ issue: string;
576
+ resolution: string;
577
+ }>, "many">;
578
+ error: import("zod").ZodOptional<import("zod").ZodString>;
579
+ }, "strip", import("zod").ZodTypeAny, {
580
+ message: string;
581
+ success: boolean;
582
+ applied: boolean;
583
+ conflictsResolved: {
584
+ unit: {
585
+ kind: "integration" | "mcp-server" | "tool" | "workflow" | "agent" | "network" | "other";
586
+ id: string;
587
+ };
588
+ issue: string;
589
+ resolution: string;
590
+ }[];
591
+ error?: string | undefined;
592
+ }, {
593
+ message: string;
594
+ success: boolean;
595
+ applied: boolean;
596
+ conflictsResolved: {
597
+ unit: {
598
+ kind: "integration" | "mcp-server" | "tool" | "workflow" | "agent" | "network" | "other";
599
+ id: string;
600
+ };
601
+ issue: string;
602
+ resolution: string;
603
+ }[];
604
+ error?: string | undefined;
605
+ }>, import("zod").ZodType<any, import("zod").ZodTypeDef, any>, import("zod").ZodType<any, import("zod").ZodTypeDef, any>, import("@mastra/core").DefaultEngineType> | import("@mastra/core").Step<"validation-and-fix", import("zod").ZodObject<{
606
+ commitSha: import("zod").ZodString;
607
+ slug: import("zod").ZodString;
608
+ targetPath: import("zod").ZodOptional<import("zod").ZodString>;
609
+ templateDir: import("zod").ZodString;
610
+ orderedUnits: import("zod").ZodArray<import("zod").ZodObject<{
611
+ kind: import("zod").ZodEnum<["mcp-server", "tool", "workflow", "agent", "integration", "network", "other"]>;
612
+ id: import("zod").ZodString;
613
+ file: import("zod").ZodString;
614
+ }, "strip", import("zod").ZodTypeAny, {
615
+ kind: "integration" | "mcp-server" | "tool" | "workflow" | "agent" | "network" | "other";
616
+ id: string;
617
+ file: string;
618
+ }, {
619
+ kind: "integration" | "mcp-server" | "tool" | "workflow" | "agent" | "network" | "other";
620
+ id: string;
621
+ file: string;
622
+ }>, "many">;
623
+ copiedFiles: import("zod").ZodArray<import("zod").ZodObject<{
624
+ source: import("zod").ZodString;
625
+ destination: import("zod").ZodString;
626
+ unit: import("zod").ZodObject<{
627
+ kind: import("zod").ZodEnum<["mcp-server", "tool", "workflow", "agent", "integration", "network", "other"]>;
628
+ id: import("zod").ZodString;
629
+ }, "strip", import("zod").ZodTypeAny, {
630
+ kind: "integration" | "mcp-server" | "tool" | "workflow" | "agent" | "network" | "other";
631
+ id: string;
632
+ }, {
633
+ kind: "integration" | "mcp-server" | "tool" | "workflow" | "agent" | "network" | "other";
634
+ id: string;
635
+ }>;
636
+ }, "strip", import("zod").ZodTypeAny, {
637
+ source: string;
638
+ destination: string;
639
+ unit: {
640
+ kind: "integration" | "mcp-server" | "tool" | "workflow" | "agent" | "network" | "other";
641
+ id: string;
642
+ };
643
+ }, {
644
+ source: string;
645
+ destination: string;
646
+ unit: {
647
+ kind: "integration" | "mcp-server" | "tool" | "workflow" | "agent" | "network" | "other";
648
+ id: string;
649
+ };
650
+ }>, "many">;
651
+ conflictsResolved: import("zod").ZodOptional<import("zod").ZodArray<import("zod").ZodObject<{
652
+ unit: import("zod").ZodObject<{
653
+ kind: import("zod").ZodEnum<["mcp-server", "tool", "workflow", "agent", "integration", "network", "other"]>;
654
+ id: import("zod").ZodString;
655
+ }, "strip", import("zod").ZodTypeAny, {
656
+ kind: "integration" | "mcp-server" | "tool" | "workflow" | "agent" | "network" | "other";
657
+ id: string;
658
+ }, {
659
+ kind: "integration" | "mcp-server" | "tool" | "workflow" | "agent" | "network" | "other";
660
+ id: string;
661
+ }>;
662
+ issue: import("zod").ZodString;
663
+ resolution: import("zod").ZodString;
664
+ }, "strip", import("zod").ZodTypeAny, {
665
+ unit: {
666
+ kind: "integration" | "mcp-server" | "tool" | "workflow" | "agent" | "network" | "other";
667
+ id: string;
668
+ };
669
+ issue: string;
670
+ resolution: string;
671
+ }, {
672
+ unit: {
673
+ kind: "integration" | "mcp-server" | "tool" | "workflow" | "agent" | "network" | "other";
674
+ id: string;
675
+ };
676
+ issue: string;
677
+ resolution: string;
678
+ }>, "many">>;
679
+ maxIterations: import("zod").ZodDefault<import("zod").ZodOptional<import("zod").ZodNumber>>;
680
+ }, "strip", import("zod").ZodTypeAny, {
681
+ slug: string;
682
+ commitSha: string;
683
+ templateDir: string;
684
+ orderedUnits: {
685
+ kind: "integration" | "mcp-server" | "tool" | "workflow" | "agent" | "network" | "other";
686
+ id: string;
687
+ file: string;
688
+ }[];
689
+ copiedFiles: {
690
+ source: string;
691
+ destination: string;
692
+ unit: {
693
+ kind: "integration" | "mcp-server" | "tool" | "workflow" | "agent" | "network" | "other";
694
+ id: string;
695
+ };
696
+ }[];
697
+ maxIterations: number;
698
+ targetPath?: string | undefined;
699
+ conflictsResolved?: {
700
+ unit: {
701
+ kind: "integration" | "mcp-server" | "tool" | "workflow" | "agent" | "network" | "other";
702
+ id: string;
703
+ };
704
+ issue: string;
705
+ resolution: string;
706
+ }[] | undefined;
707
+ }, {
708
+ slug: string;
709
+ commitSha: string;
710
+ templateDir: string;
711
+ orderedUnits: {
712
+ kind: "integration" | "mcp-server" | "tool" | "workflow" | "agent" | "network" | "other";
713
+ id: string;
714
+ file: string;
715
+ }[];
716
+ copiedFiles: {
717
+ source: string;
718
+ destination: string;
719
+ unit: {
720
+ kind: "integration" | "mcp-server" | "tool" | "workflow" | "agent" | "network" | "other";
721
+ id: string;
722
+ };
723
+ }[];
724
+ targetPath?: string | undefined;
725
+ conflictsResolved?: {
726
+ unit: {
727
+ kind: "integration" | "mcp-server" | "tool" | "workflow" | "agent" | "network" | "other";
728
+ id: string;
729
+ };
730
+ issue: string;
731
+ resolution: string;
732
+ }[] | undefined;
733
+ maxIterations?: number | undefined;
734
+ }>, import("zod").ZodObject<{
735
+ success: import("zod").ZodBoolean;
736
+ applied: import("zod").ZodBoolean;
737
+ message: import("zod").ZodString;
738
+ validationResults: import("zod").ZodObject<{
739
+ valid: import("zod").ZodBoolean;
740
+ errorsFixed: import("zod").ZodNumber;
741
+ remainingErrors: import("zod").ZodNumber;
742
+ }, "strip", import("zod").ZodTypeAny, {
743
+ valid: boolean;
744
+ errorsFixed: number;
745
+ remainingErrors: number;
746
+ }, {
747
+ valid: boolean;
748
+ errorsFixed: number;
749
+ remainingErrors: number;
750
+ }>;
751
+ error: import("zod").ZodOptional<import("zod").ZodString>;
752
+ }, "strip", import("zod").ZodTypeAny, {
753
+ message: string;
754
+ success: boolean;
755
+ applied: boolean;
756
+ validationResults: {
757
+ valid: boolean;
758
+ errorsFixed: number;
759
+ remainingErrors: number;
760
+ };
761
+ error?: string | undefined;
762
+ }, {
763
+ message: string;
764
+ success: boolean;
765
+ applied: boolean;
766
+ validationResults: {
767
+ valid: boolean;
768
+ errorsFixed: number;
769
+ remainingErrors: number;
770
+ };
771
+ error?: string | undefined;
772
+ }>, import("zod").ZodType<any, import("zod").ZodTypeDef, any>, import("zod").ZodType<any, import("zod").ZodTypeDef, any>, import("@mastra/core").DefaultEngineType>)[], "agent-builder-template", import("zod").ZodObject<{
773
+ repo: import("zod").ZodString;
774
+ ref: import("zod").ZodOptional<import("zod").ZodString>;
775
+ slug: import("zod").ZodOptional<import("zod").ZodString>;
776
+ targetPath: import("zod").ZodOptional<import("zod").ZodString>;
777
+ }, "strip", import("zod").ZodTypeAny, {
778
+ repo: string;
779
+ slug?: string | undefined;
780
+ ref?: string | undefined;
781
+ targetPath?: string | undefined;
782
+ }, {
783
+ repo: string;
784
+ slug?: string | undefined;
785
+ ref?: string | undefined;
786
+ targetPath?: string | undefined;
787
+ }>, import("zod").ZodObject<{
788
+ success: import("zod").ZodBoolean;
789
+ applied: import("zod").ZodBoolean;
790
+ branchName: import("zod").ZodOptional<import("zod").ZodString>;
791
+ message: import("zod").ZodString;
792
+ validationResults: import("zod").ZodOptional<import("zod").ZodObject<{
793
+ valid: import("zod").ZodBoolean;
794
+ errorsFixed: import("zod").ZodNumber;
795
+ remainingErrors: import("zod").ZodNumber;
796
+ }, "strip", import("zod").ZodTypeAny, {
797
+ valid: boolean;
798
+ errorsFixed: number;
799
+ remainingErrors: number;
800
+ }, {
801
+ valid: boolean;
802
+ errorsFixed: number;
803
+ remainingErrors: number;
804
+ }>>;
805
+ error: import("zod").ZodOptional<import("zod").ZodString>;
806
+ errors: import("zod").ZodOptional<import("zod").ZodArray<import("zod").ZodString, "many">>;
807
+ stepResults: import("zod").ZodOptional<import("zod").ZodObject<{
808
+ cloneSuccess: import("zod").ZodOptional<import("zod").ZodBoolean>;
809
+ analyzeSuccess: import("zod").ZodOptional<import("zod").ZodBoolean>;
810
+ discoverSuccess: import("zod").ZodOptional<import("zod").ZodBoolean>;
811
+ orderSuccess: import("zod").ZodOptional<import("zod").ZodBoolean>;
812
+ prepareBranchSuccess: import("zod").ZodOptional<import("zod").ZodBoolean>;
813
+ packageMergeSuccess: import("zod").ZodOptional<import("zod").ZodBoolean>;
814
+ installSuccess: import("zod").ZodOptional<import("zod").ZodBoolean>;
815
+ copySuccess: import("zod").ZodOptional<import("zod").ZodBoolean>;
816
+ mergeSuccess: import("zod").ZodOptional<import("zod").ZodBoolean>;
817
+ validationSuccess: import("zod").ZodOptional<import("zod").ZodBoolean>;
818
+ filesCopied: import("zod").ZodNumber;
819
+ conflictsSkipped: import("zod").ZodNumber;
820
+ conflictsResolved: import("zod").ZodNumber;
821
+ }, "strip", import("zod").ZodTypeAny, {
822
+ conflictsResolved: number;
823
+ filesCopied: number;
824
+ conflictsSkipped: number;
825
+ cloneSuccess?: boolean | undefined;
826
+ analyzeSuccess?: boolean | undefined;
827
+ discoverSuccess?: boolean | undefined;
828
+ orderSuccess?: boolean | undefined;
829
+ prepareBranchSuccess?: boolean | undefined;
830
+ packageMergeSuccess?: boolean | undefined;
831
+ installSuccess?: boolean | undefined;
832
+ copySuccess?: boolean | undefined;
833
+ mergeSuccess?: boolean | undefined;
834
+ validationSuccess?: boolean | undefined;
835
+ }, {
836
+ conflictsResolved: number;
837
+ filesCopied: number;
838
+ conflictsSkipped: number;
839
+ cloneSuccess?: boolean | undefined;
840
+ analyzeSuccess?: boolean | undefined;
841
+ discoverSuccess?: boolean | undefined;
842
+ orderSuccess?: boolean | undefined;
843
+ prepareBranchSuccess?: boolean | undefined;
844
+ packageMergeSuccess?: boolean | undefined;
845
+ installSuccess?: boolean | undefined;
846
+ copySuccess?: boolean | undefined;
847
+ mergeSuccess?: boolean | undefined;
848
+ validationSuccess?: boolean | undefined;
849
+ }>>;
850
+ }, "strip", import("zod").ZodTypeAny, {
851
+ message: string;
852
+ success: boolean;
853
+ applied: boolean;
854
+ error?: string | undefined;
855
+ branchName?: string | undefined;
856
+ validationResults?: {
857
+ valid: boolean;
858
+ errorsFixed: number;
859
+ remainingErrors: number;
860
+ } | undefined;
861
+ errors?: string[] | undefined;
862
+ stepResults?: {
863
+ conflictsResolved: number;
864
+ filesCopied: number;
865
+ conflictsSkipped: number;
866
+ cloneSuccess?: boolean | undefined;
867
+ analyzeSuccess?: boolean | undefined;
868
+ discoverSuccess?: boolean | undefined;
869
+ orderSuccess?: boolean | undefined;
870
+ prepareBranchSuccess?: boolean | undefined;
871
+ packageMergeSuccess?: boolean | undefined;
872
+ installSuccess?: boolean | undefined;
873
+ copySuccess?: boolean | undefined;
874
+ mergeSuccess?: boolean | undefined;
875
+ validationSuccess?: boolean | undefined;
876
+ } | undefined;
877
+ }, {
878
+ message: string;
879
+ success: boolean;
880
+ applied: boolean;
881
+ error?: string | undefined;
882
+ branchName?: string | undefined;
883
+ validationResults?: {
884
+ valid: boolean;
885
+ errorsFixed: number;
886
+ remainingErrors: number;
887
+ } | undefined;
888
+ errors?: string[] | undefined;
889
+ stepResults?: {
890
+ conflictsResolved: number;
891
+ filesCopied: number;
892
+ conflictsSkipped: number;
893
+ cloneSuccess?: boolean | undefined;
894
+ analyzeSuccess?: boolean | undefined;
895
+ discoverSuccess?: boolean | undefined;
896
+ orderSuccess?: boolean | undefined;
897
+ prepareBranchSuccess?: boolean | undefined;
898
+ packageMergeSuccess?: boolean | undefined;
899
+ installSuccess?: boolean | undefined;
900
+ copySuccess?: boolean | undefined;
901
+ mergeSuccess?: boolean | undefined;
902
+ validationSuccess?: boolean | undefined;
903
+ } | undefined;
904
+ }>, import("zod").ZodObject<{
905
+ success: import("zod").ZodBoolean;
906
+ applied: import("zod").ZodBoolean;
907
+ branchName: import("zod").ZodOptional<import("zod").ZodString>;
908
+ message: import("zod").ZodString;
909
+ validationResults: import("zod").ZodOptional<import("zod").ZodObject<{
910
+ valid: import("zod").ZodBoolean;
911
+ errorsFixed: import("zod").ZodNumber;
912
+ remainingErrors: import("zod").ZodNumber;
913
+ }, "strip", import("zod").ZodTypeAny, {
914
+ valid: boolean;
915
+ errorsFixed: number;
916
+ remainingErrors: number;
917
+ }, {
918
+ valid: boolean;
919
+ errorsFixed: number;
920
+ remainingErrors: number;
921
+ }>>;
922
+ error: import("zod").ZodOptional<import("zod").ZodString>;
923
+ errors: import("zod").ZodOptional<import("zod").ZodArray<import("zod").ZodString, "many">>;
924
+ stepResults: import("zod").ZodOptional<import("zod").ZodObject<{
925
+ cloneSuccess: import("zod").ZodOptional<import("zod").ZodBoolean>;
926
+ analyzeSuccess: import("zod").ZodOptional<import("zod").ZodBoolean>;
927
+ discoverSuccess: import("zod").ZodOptional<import("zod").ZodBoolean>;
928
+ orderSuccess: import("zod").ZodOptional<import("zod").ZodBoolean>;
929
+ prepareBranchSuccess: import("zod").ZodOptional<import("zod").ZodBoolean>;
930
+ packageMergeSuccess: import("zod").ZodOptional<import("zod").ZodBoolean>;
931
+ installSuccess: import("zod").ZodOptional<import("zod").ZodBoolean>;
932
+ copySuccess: import("zod").ZodOptional<import("zod").ZodBoolean>;
933
+ mergeSuccess: import("zod").ZodOptional<import("zod").ZodBoolean>;
934
+ validationSuccess: import("zod").ZodOptional<import("zod").ZodBoolean>;
935
+ filesCopied: import("zod").ZodNumber;
936
+ conflictsSkipped: import("zod").ZodNumber;
937
+ conflictsResolved: import("zod").ZodNumber;
938
+ }, "strip", import("zod").ZodTypeAny, {
939
+ conflictsResolved: number;
940
+ filesCopied: number;
941
+ conflictsSkipped: number;
942
+ cloneSuccess?: boolean | undefined;
943
+ analyzeSuccess?: boolean | undefined;
944
+ discoverSuccess?: boolean | undefined;
945
+ orderSuccess?: boolean | undefined;
946
+ prepareBranchSuccess?: boolean | undefined;
947
+ packageMergeSuccess?: boolean | undefined;
948
+ installSuccess?: boolean | undefined;
949
+ copySuccess?: boolean | undefined;
950
+ mergeSuccess?: boolean | undefined;
951
+ validationSuccess?: boolean | undefined;
952
+ }, {
953
+ conflictsResolved: number;
954
+ filesCopied: number;
955
+ conflictsSkipped: number;
956
+ cloneSuccess?: boolean | undefined;
957
+ analyzeSuccess?: boolean | undefined;
958
+ discoverSuccess?: boolean | undefined;
959
+ orderSuccess?: boolean | undefined;
960
+ prepareBranchSuccess?: boolean | undefined;
961
+ packageMergeSuccess?: boolean | undefined;
962
+ installSuccess?: boolean | undefined;
963
+ copySuccess?: boolean | undefined;
964
+ mergeSuccess?: boolean | undefined;
965
+ validationSuccess?: boolean | undefined;
966
+ }>>;
967
+ }, "strip", import("zod").ZodTypeAny, {
968
+ message: string;
969
+ success: boolean;
970
+ applied: boolean;
971
+ error?: string | undefined;
972
+ branchName?: string | undefined;
973
+ validationResults?: {
974
+ valid: boolean;
975
+ errorsFixed: number;
976
+ remainingErrors: number;
977
+ } | undefined;
978
+ errors?: string[] | undefined;
979
+ stepResults?: {
980
+ conflictsResolved: number;
981
+ filesCopied: number;
982
+ conflictsSkipped: number;
983
+ cloneSuccess?: boolean | undefined;
984
+ analyzeSuccess?: boolean | undefined;
985
+ discoverSuccess?: boolean | undefined;
986
+ orderSuccess?: boolean | undefined;
987
+ prepareBranchSuccess?: boolean | undefined;
988
+ packageMergeSuccess?: boolean | undefined;
989
+ installSuccess?: boolean | undefined;
990
+ copySuccess?: boolean | undefined;
991
+ mergeSuccess?: boolean | undefined;
992
+ validationSuccess?: boolean | undefined;
993
+ } | undefined;
994
+ }, {
995
+ message: string;
996
+ success: boolean;
997
+ applied: boolean;
998
+ error?: string | undefined;
999
+ branchName?: string | undefined;
1000
+ validationResults?: {
1001
+ valid: boolean;
1002
+ errorsFixed: number;
1003
+ remainingErrors: number;
1004
+ } | undefined;
1005
+ errors?: string[] | undefined;
1006
+ stepResults?: {
1007
+ conflictsResolved: number;
1008
+ filesCopied: number;
1009
+ conflictsSkipped: number;
1010
+ cloneSuccess?: boolean | undefined;
1011
+ analyzeSuccess?: boolean | undefined;
1012
+ discoverSuccess?: boolean | undefined;
1013
+ orderSuccess?: boolean | undefined;
1014
+ prepareBranchSuccess?: boolean | undefined;
1015
+ packageMergeSuccess?: boolean | undefined;
1016
+ installSuccess?: boolean | undefined;
1017
+ copySuccess?: boolean | undefined;
1018
+ mergeSuccess?: boolean | undefined;
1019
+ validationSuccess?: boolean | undefined;
1020
+ } | undefined;
1021
+ }>>;
1022
+ 'workflow-builder': import("@mastra/core/workflows").Workflow<import("@mastra/core").DefaultEngineType, (import("@mastra/core/workflows").Workflow<import("@mastra/core").DefaultEngineType, (import("@mastra/core").Step<"planning-iteration", import("zod").ZodObject<{
1023
+ action: import("zod").ZodEnum<["create", "edit"]>;
1024
+ workflowName: import("zod").ZodOptional<import("zod").ZodString>;
1025
+ description: import("zod").ZodOptional<import("zod").ZodString>;
1026
+ requirements: import("zod").ZodOptional<import("zod").ZodString>;
1027
+ discoveredWorkflows: import("zod").ZodArray<import("zod").ZodObject<{
1028
+ name: import("zod").ZodString;
1029
+ file: import("zod").ZodString;
1030
+ description: import("zod").ZodOptional<import("zod").ZodString>;
1031
+ inputSchema: import("zod").ZodOptional<import("zod").ZodAny>;
1032
+ outputSchema: import("zod").ZodOptional<import("zod").ZodAny>;
1033
+ steps: import("zod").ZodOptional<import("zod").ZodArray<import("zod").ZodString, "many">>;
1034
+ }, "strip", import("zod").ZodTypeAny, {
1035
+ file: string;
1036
+ name: string;
1037
+ description?: string | undefined;
1038
+ steps?: string[] | undefined;
1039
+ inputSchema?: any;
1040
+ outputSchema?: any;
1041
+ }, {
1042
+ file: string;
1043
+ name: string;
1044
+ description?: string | undefined;
1045
+ steps?: string[] | undefined;
1046
+ inputSchema?: any;
1047
+ outputSchema?: any;
1048
+ }>, "many">;
1049
+ projectStructure: import("zod").ZodObject<{
1050
+ success: import("zod").ZodBoolean;
1051
+ structure: import("zod").ZodObject<{
1052
+ hasWorkflowsDir: import("zod").ZodBoolean;
1053
+ hasAgentsDir: import("zod").ZodBoolean;
1054
+ hasToolsDir: import("zod").ZodBoolean;
1055
+ hasMastraIndex: import("zod").ZodBoolean;
1056
+ existingWorkflows: import("zod").ZodArray<import("zod").ZodString, "many">;
1057
+ existingAgents: import("zod").ZodArray<import("zod").ZodString, "many">;
1058
+ existingTools: import("zod").ZodArray<import("zod").ZodString, "many">;
1059
+ }, "strip", import("zod").ZodTypeAny, {
1060
+ hasWorkflowsDir: boolean;
1061
+ hasAgentsDir: boolean;
1062
+ hasToolsDir: boolean;
1063
+ hasMastraIndex: boolean;
1064
+ existingWorkflows: string[];
1065
+ existingAgents: string[];
1066
+ existingTools: string[];
1067
+ }, {
1068
+ hasWorkflowsDir: boolean;
1069
+ hasAgentsDir: boolean;
1070
+ hasToolsDir: boolean;
1071
+ hasMastraIndex: boolean;
1072
+ existingWorkflows: string[];
1073
+ existingAgents: string[];
1074
+ existingTools: string[];
1075
+ }>;
1076
+ dependencies: import("zod").ZodRecord<import("zod").ZodString, import("zod").ZodString>;
1077
+ message: import("zod").ZodString;
1078
+ error: import("zod").ZodOptional<import("zod").ZodString>;
1079
+ }, "strip", import("zod").ZodTypeAny, {
1080
+ message: string;
1081
+ success: boolean;
1082
+ dependencies: Record<string, string>;
1083
+ structure: {
1084
+ hasWorkflowsDir: boolean;
1085
+ hasAgentsDir: boolean;
1086
+ hasToolsDir: boolean;
1087
+ hasMastraIndex: boolean;
1088
+ existingWorkflows: string[];
1089
+ existingAgents: string[];
1090
+ existingTools: string[];
1091
+ };
1092
+ error?: string | undefined;
1093
+ }, {
1094
+ message: string;
1095
+ success: boolean;
1096
+ dependencies: Record<string, string>;
1097
+ structure: {
1098
+ hasWorkflowsDir: boolean;
1099
+ hasAgentsDir: boolean;
1100
+ hasToolsDir: boolean;
1101
+ hasMastraIndex: boolean;
1102
+ existingWorkflows: string[];
1103
+ existingAgents: string[];
1104
+ existingTools: string[];
1105
+ };
1106
+ error?: string | undefined;
1107
+ }>;
1108
+ research: import("zod").ZodObject<{
1109
+ success: import("zod").ZodBoolean;
1110
+ documentation: import("zod").ZodObject<{
1111
+ workflowPatterns: import("zod").ZodArray<import("zod").ZodString, "many">;
1112
+ stepExamples: import("zod").ZodArray<import("zod").ZodString, "many">;
1113
+ bestPractices: import("zod").ZodArray<import("zod").ZodString, "many">;
1114
+ }, "strip", import("zod").ZodTypeAny, {
1115
+ workflowPatterns: string[];
1116
+ stepExamples: string[];
1117
+ bestPractices: string[];
1118
+ }, {
1119
+ workflowPatterns: string[];
1120
+ stepExamples: string[];
1121
+ bestPractices: string[];
1122
+ }>;
1123
+ webResources: import("zod").ZodArray<import("zod").ZodObject<{
1124
+ title: import("zod").ZodString;
1125
+ url: import("zod").ZodString;
1126
+ snippet: import("zod").ZodString;
1127
+ relevance: import("zod").ZodNumber;
1128
+ }, "strip", import("zod").ZodTypeAny, {
1129
+ url: string;
1130
+ relevance: number;
1131
+ title: string;
1132
+ snippet: string;
1133
+ }, {
1134
+ url: string;
1135
+ relevance: number;
1136
+ title: string;
1137
+ snippet: string;
1138
+ }>, "many">;
1139
+ message: import("zod").ZodString;
1140
+ error: import("zod").ZodOptional<import("zod").ZodString>;
1141
+ }, "strip", import("zod").ZodTypeAny, {
1142
+ message: string;
1143
+ success: boolean;
1144
+ documentation: {
1145
+ workflowPatterns: string[];
1146
+ stepExamples: string[];
1147
+ bestPractices: string[];
1148
+ };
1149
+ webResources: {
1150
+ url: string;
1151
+ relevance: number;
1152
+ title: string;
1153
+ snippet: string;
1154
+ }[];
1155
+ error?: string | undefined;
1156
+ }, {
1157
+ message: string;
1158
+ success: boolean;
1159
+ documentation: {
1160
+ workflowPatterns: string[];
1161
+ stepExamples: string[];
1162
+ bestPractices: string[];
1163
+ };
1164
+ webResources: {
1165
+ url: string;
1166
+ relevance: number;
1167
+ title: string;
1168
+ snippet: string;
1169
+ }[];
1170
+ error?: string | undefined;
1171
+ }>;
1172
+ userAnswers: import("zod").ZodOptional<import("zod").ZodRecord<import("zod").ZodString, import("zod").ZodString>>;
1173
+ }, "strip", import("zod").ZodTypeAny, {
1174
+ action: "create" | "edit";
1175
+ discoveredWorkflows: {
1176
+ file: string;
1177
+ name: string;
1178
+ description?: string | undefined;
1179
+ steps?: string[] | undefined;
1180
+ inputSchema?: any;
1181
+ outputSchema?: any;
1182
+ }[];
1183
+ projectStructure: {
1184
+ message: string;
1185
+ success: boolean;
1186
+ dependencies: Record<string, string>;
1187
+ structure: {
1188
+ hasWorkflowsDir: boolean;
1189
+ hasAgentsDir: boolean;
1190
+ hasToolsDir: boolean;
1191
+ hasMastraIndex: boolean;
1192
+ existingWorkflows: string[];
1193
+ existingAgents: string[];
1194
+ existingTools: string[];
1195
+ };
1196
+ error?: string | undefined;
1197
+ };
1198
+ research: {
1199
+ message: string;
1200
+ success: boolean;
1201
+ documentation: {
1202
+ workflowPatterns: string[];
1203
+ stepExamples: string[];
1204
+ bestPractices: string[];
1205
+ };
1206
+ webResources: {
1207
+ url: string;
1208
+ relevance: number;
1209
+ title: string;
1210
+ snippet: string;
1211
+ }[];
1212
+ error?: string | undefined;
1213
+ };
1214
+ description?: string | undefined;
1215
+ workflowName?: string | undefined;
1216
+ requirements?: string | undefined;
1217
+ userAnswers?: Record<string, string> | undefined;
1218
+ }, {
1219
+ action: "create" | "edit";
1220
+ discoveredWorkflows: {
1221
+ file: string;
1222
+ name: string;
1223
+ description?: string | undefined;
1224
+ steps?: string[] | undefined;
1225
+ inputSchema?: any;
1226
+ outputSchema?: any;
1227
+ }[];
1228
+ projectStructure: {
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
+ research: {
1244
+ message: string;
1245
+ success: boolean;
1246
+ documentation: {
1247
+ workflowPatterns: string[];
1248
+ stepExamples: string[];
1249
+ bestPractices: string[];
1250
+ };
1251
+ webResources: {
1252
+ url: string;
1253
+ relevance: number;
1254
+ title: string;
1255
+ snippet: string;
1256
+ }[];
1257
+ error?: string | undefined;
1258
+ };
1259
+ description?: string | undefined;
1260
+ workflowName?: string | undefined;
1261
+ requirements?: string | undefined;
1262
+ userAnswers?: Record<string, string> | undefined;
1263
+ }>, import("zod").ZodObject<{
1264
+ success: import("zod").ZodBoolean;
1265
+ tasks: import("zod").ZodArray<import("zod").ZodObject<{
1266
+ id: import("zod").ZodString;
1267
+ content: import("zod").ZodString;
1268
+ status: import("zod").ZodDefault<import("zod").ZodEnum<["pending", "in_progress", "completed", "blocked"]>>;
1269
+ priority: import("zod").ZodEnum<["high", "medium", "low"]>;
1270
+ dependencies: import("zod").ZodOptional<import("zod").ZodArray<import("zod").ZodString, "many">>;
1271
+ notes: import("zod").ZodString;
1272
+ }, "strip", import("zod").ZodTypeAny, {
1273
+ status: "pending" | "in_progress" | "completed" | "blocked";
1274
+ id: string;
1275
+ content: string;
1276
+ priority: "high" | "medium" | "low";
1277
+ notes: string;
1278
+ dependencies?: string[] | undefined;
1279
+ }, {
1280
+ id: string;
1281
+ content: string;
1282
+ priority: "high" | "medium" | "low";
1283
+ notes: string;
1284
+ status?: "pending" | "in_progress" | "completed" | "blocked" | undefined;
1285
+ dependencies?: string[] | undefined;
1286
+ }>, "many">;
1287
+ questions: import("zod").ZodArray<import("zod").ZodObject<{
1288
+ id: import("zod").ZodString;
1289
+ question: import("zod").ZodString;
1290
+ type: import("zod").ZodEnum<["choice", "text", "boolean"]>;
1291
+ options: import("zod").ZodOptional<import("zod").ZodArray<import("zod").ZodString, "many">>;
1292
+ context: import("zod").ZodOptional<import("zod").ZodString>;
1293
+ }, "strip", import("zod").ZodTypeAny, {
1294
+ type: "boolean" | "text" | "choice";
1295
+ id: string;
1296
+ question: string;
1297
+ options?: string[] | undefined;
1298
+ context?: string | undefined;
1299
+ }, {
1300
+ type: "boolean" | "text" | "choice";
1301
+ id: string;
1302
+ question: string;
1303
+ options?: string[] | undefined;
1304
+ context?: string | undefined;
1305
+ }>, "many">;
1306
+ reasoning: import("zod").ZodString;
1307
+ planComplete: import("zod").ZodBoolean;
1308
+ message: import("zod").ZodString;
1309
+ error: import("zod").ZodOptional<import("zod").ZodString>;
1310
+ allPreviousQuestions: import("zod").ZodOptional<import("zod").ZodArray<import("zod").ZodAny, "many">>;
1311
+ allPreviousAnswers: import("zod").ZodOptional<import("zod").ZodRecord<import("zod").ZodString, import("zod").ZodString>>;
1312
+ }, "strip", import("zod").ZodTypeAny, {
1313
+ message: string;
1314
+ success: boolean;
1315
+ tasks: {
1316
+ status: "pending" | "in_progress" | "completed" | "blocked";
1317
+ id: string;
1318
+ content: string;
1319
+ priority: "high" | "medium" | "low";
1320
+ notes: string;
1321
+ dependencies?: string[] | undefined;
1322
+ }[];
1323
+ reasoning: string;
1324
+ questions: {
1325
+ type: "boolean" | "text" | "choice";
1326
+ id: string;
1327
+ question: string;
1328
+ options?: string[] | undefined;
1329
+ context?: string | undefined;
1330
+ }[];
1331
+ planComplete: boolean;
1332
+ error?: string | undefined;
1333
+ allPreviousQuestions?: any[] | undefined;
1334
+ allPreviousAnswers?: Record<string, string> | undefined;
1335
+ }, {
1336
+ message: string;
1337
+ success: boolean;
1338
+ tasks: {
1339
+ id: string;
1340
+ content: string;
1341
+ priority: "high" | "medium" | "low";
1342
+ notes: string;
1343
+ status?: "pending" | "in_progress" | "completed" | "blocked" | undefined;
1344
+ dependencies?: string[] | undefined;
1345
+ }[];
1346
+ reasoning: string;
1347
+ questions: {
1348
+ type: "boolean" | "text" | "choice";
1349
+ id: string;
1350
+ question: string;
1351
+ options?: string[] | undefined;
1352
+ context?: string | undefined;
1353
+ }[];
1354
+ planComplete: boolean;
1355
+ error?: string | undefined;
1356
+ allPreviousQuestions?: any[] | undefined;
1357
+ allPreviousAnswers?: Record<string, string> | undefined;
1358
+ }>, import("zod").ZodObject<{
1359
+ answers: import("zod").ZodRecord<import("zod").ZodString, import("zod").ZodString>;
1360
+ }, "strip", import("zod").ZodTypeAny, {
1361
+ answers: Record<string, string>;
1362
+ }, {
1363
+ answers: Record<string, string>;
1364
+ }>, import("zod").ZodObject<{
1365
+ questions: import("zod").ZodArray<import("zod").ZodObject<{
1366
+ id: import("zod").ZodString;
1367
+ question: import("zod").ZodString;
1368
+ type: import("zod").ZodEnum<["choice", "text", "boolean"]>;
1369
+ options: import("zod").ZodOptional<import("zod").ZodArray<import("zod").ZodString, "many">>;
1370
+ context: import("zod").ZodOptional<import("zod").ZodString>;
1371
+ }, "strip", import("zod").ZodTypeAny, {
1372
+ type: "boolean" | "text" | "choice";
1373
+ id: string;
1374
+ question: string;
1375
+ options?: string[] | undefined;
1376
+ context?: string | undefined;
1377
+ }, {
1378
+ type: "boolean" | "text" | "choice";
1379
+ id: string;
1380
+ question: string;
1381
+ options?: string[] | undefined;
1382
+ context?: string | undefined;
1383
+ }>, "many">;
1384
+ message: import("zod").ZodString;
1385
+ currentPlan: import("zod").ZodObject<{
1386
+ tasks: import("zod").ZodArray<import("zod").ZodObject<{
1387
+ id: import("zod").ZodString;
1388
+ content: import("zod").ZodString;
1389
+ status: import("zod").ZodDefault<import("zod").ZodEnum<["pending", "in_progress", "completed", "blocked"]>>;
1390
+ priority: import("zod").ZodEnum<["high", "medium", "low"]>;
1391
+ dependencies: import("zod").ZodOptional<import("zod").ZodArray<import("zod").ZodString, "many">>;
1392
+ notes: import("zod").ZodString;
1393
+ }, "strip", import("zod").ZodTypeAny, {
1394
+ status: "pending" | "in_progress" | "completed" | "blocked";
1395
+ id: string;
1396
+ content: string;
1397
+ priority: "high" | "medium" | "low";
1398
+ notes: string;
1399
+ dependencies?: string[] | undefined;
1400
+ }, {
1401
+ id: string;
1402
+ content: string;
1403
+ priority: "high" | "medium" | "low";
1404
+ notes: string;
1405
+ status?: "pending" | "in_progress" | "completed" | "blocked" | undefined;
1406
+ dependencies?: string[] | undefined;
1407
+ }>, "many">;
1408
+ reasoning: import("zod").ZodString;
1409
+ }, "strip", import("zod").ZodTypeAny, {
1410
+ tasks: {
1411
+ status: "pending" | "in_progress" | "completed" | "blocked";
1412
+ id: string;
1413
+ content: string;
1414
+ priority: "high" | "medium" | "low";
1415
+ notes: string;
1416
+ dependencies?: string[] | undefined;
1417
+ }[];
1418
+ reasoning: string;
1419
+ }, {
1420
+ tasks: {
1421
+ id: string;
1422
+ content: string;
1423
+ priority: "high" | "medium" | "low";
1424
+ notes: string;
1425
+ status?: "pending" | "in_progress" | "completed" | "blocked" | undefined;
1426
+ dependencies?: string[] | undefined;
1427
+ }[];
1428
+ reasoning: string;
1429
+ }>;
1430
+ }, "strip", import("zod").ZodTypeAny, {
1431
+ message: string;
1432
+ questions: {
1433
+ type: "boolean" | "text" | "choice";
1434
+ id: string;
1435
+ question: string;
1436
+ options?: string[] | undefined;
1437
+ context?: string | undefined;
1438
+ }[];
1439
+ currentPlan: {
1440
+ tasks: {
1441
+ status: "pending" | "in_progress" | "completed" | "blocked";
1442
+ id: string;
1443
+ content: string;
1444
+ priority: "high" | "medium" | "low";
1445
+ notes: string;
1446
+ dependencies?: string[] | undefined;
1447
+ }[];
1448
+ reasoning: string;
1449
+ };
1450
+ }, {
1451
+ message: string;
1452
+ questions: {
1453
+ type: "boolean" | "text" | "choice";
1454
+ id: string;
1455
+ question: string;
1456
+ options?: string[] | undefined;
1457
+ context?: string | undefined;
1458
+ }[];
1459
+ currentPlan: {
1460
+ tasks: {
1461
+ id: string;
1462
+ content: string;
1463
+ priority: "high" | "medium" | "low";
1464
+ notes: string;
1465
+ status?: "pending" | "in_progress" | "completed" | "blocked" | undefined;
1466
+ dependencies?: string[] | undefined;
1467
+ }[];
1468
+ reasoning: string;
1469
+ };
1470
+ }>, import("@mastra/core").DefaultEngineType> | import("@mastra/core").Step<"task-approval", import("zod").ZodObject<{
1471
+ success: import("zod").ZodBoolean;
1472
+ tasks: import("zod").ZodArray<import("zod").ZodObject<{
1473
+ id: import("zod").ZodString;
1474
+ content: import("zod").ZodString;
1475
+ status: import("zod").ZodDefault<import("zod").ZodEnum<["pending", "in_progress", "completed", "blocked"]>>;
1476
+ priority: import("zod").ZodEnum<["high", "medium", "low"]>;
1477
+ dependencies: import("zod").ZodOptional<import("zod").ZodArray<import("zod").ZodString, "many">>;
1478
+ notes: import("zod").ZodString;
1479
+ }, "strip", import("zod").ZodTypeAny, {
1480
+ status: "pending" | "in_progress" | "completed" | "blocked";
1481
+ id: string;
1482
+ content: string;
1483
+ priority: "high" | "medium" | "low";
1484
+ notes: string;
1485
+ dependencies?: string[] | undefined;
1486
+ }, {
1487
+ id: string;
1488
+ content: string;
1489
+ priority: "high" | "medium" | "low";
1490
+ notes: string;
1491
+ status?: "pending" | "in_progress" | "completed" | "blocked" | undefined;
1492
+ dependencies?: string[] | undefined;
1493
+ }>, "many">;
1494
+ questions: import("zod").ZodArray<import("zod").ZodObject<{
1495
+ id: import("zod").ZodString;
1496
+ question: import("zod").ZodString;
1497
+ type: import("zod").ZodEnum<["choice", "text", "boolean"]>;
1498
+ options: import("zod").ZodOptional<import("zod").ZodArray<import("zod").ZodString, "many">>;
1499
+ context: import("zod").ZodOptional<import("zod").ZodString>;
1500
+ }, "strip", import("zod").ZodTypeAny, {
1501
+ type: "boolean" | "text" | "choice";
1502
+ id: string;
1503
+ question: string;
1504
+ options?: string[] | undefined;
1505
+ context?: string | undefined;
1506
+ }, {
1507
+ type: "boolean" | "text" | "choice";
1508
+ id: string;
1509
+ question: string;
1510
+ options?: string[] | undefined;
1511
+ context?: string | undefined;
1512
+ }>, "many">;
1513
+ reasoning: import("zod").ZodString;
1514
+ planComplete: import("zod").ZodBoolean;
1515
+ message: import("zod").ZodString;
1516
+ error: import("zod").ZodOptional<import("zod").ZodString>;
1517
+ allPreviousQuestions: import("zod").ZodOptional<import("zod").ZodArray<import("zod").ZodAny, "many">>;
1518
+ allPreviousAnswers: import("zod").ZodOptional<import("zod").ZodRecord<import("zod").ZodString, import("zod").ZodString>>;
1519
+ }, "strip", import("zod").ZodTypeAny, {
1520
+ message: string;
1521
+ success: boolean;
1522
+ tasks: {
1523
+ status: "pending" | "in_progress" | "completed" | "blocked";
1524
+ id: string;
1525
+ content: string;
1526
+ priority: "high" | "medium" | "low";
1527
+ notes: string;
1528
+ dependencies?: string[] | undefined;
1529
+ }[];
1530
+ reasoning: string;
1531
+ questions: {
1532
+ type: "boolean" | "text" | "choice";
1533
+ id: string;
1534
+ question: string;
1535
+ options?: string[] | undefined;
1536
+ context?: string | undefined;
1537
+ }[];
1538
+ planComplete: boolean;
1539
+ error?: string | undefined;
1540
+ allPreviousQuestions?: any[] | undefined;
1541
+ allPreviousAnswers?: Record<string, string> | undefined;
1542
+ }, {
1543
+ message: string;
1544
+ success: boolean;
1545
+ tasks: {
1546
+ id: string;
1547
+ content: string;
1548
+ priority: "high" | "medium" | "low";
1549
+ notes: string;
1550
+ status?: "pending" | "in_progress" | "completed" | "blocked" | undefined;
1551
+ dependencies?: string[] | undefined;
1552
+ }[];
1553
+ reasoning: string;
1554
+ questions: {
1555
+ type: "boolean" | "text" | "choice";
1556
+ id: string;
1557
+ question: string;
1558
+ options?: string[] | undefined;
1559
+ context?: string | undefined;
1560
+ }[];
1561
+ planComplete: boolean;
1562
+ error?: string | undefined;
1563
+ allPreviousQuestions?: any[] | undefined;
1564
+ allPreviousAnswers?: Record<string, string> | undefined;
1565
+ }>, import("zod").ZodObject<{
1566
+ approved: import("zod").ZodBoolean;
1567
+ tasks: import("zod").ZodArray<import("zod").ZodObject<{
1568
+ id: import("zod").ZodString;
1569
+ content: import("zod").ZodString;
1570
+ status: import("zod").ZodDefault<import("zod").ZodEnum<["pending", "in_progress", "completed", "blocked"]>>;
1571
+ priority: import("zod").ZodEnum<["high", "medium", "low"]>;
1572
+ dependencies: import("zod").ZodOptional<import("zod").ZodArray<import("zod").ZodString, "many">>;
1573
+ notes: import("zod").ZodString;
1574
+ }, "strip", import("zod").ZodTypeAny, {
1575
+ status: "pending" | "in_progress" | "completed" | "blocked";
1576
+ id: string;
1577
+ content: string;
1578
+ priority: "high" | "medium" | "low";
1579
+ notes: string;
1580
+ dependencies?: string[] | undefined;
1581
+ }, {
1582
+ id: string;
1583
+ content: string;
1584
+ priority: "high" | "medium" | "low";
1585
+ notes: string;
1586
+ status?: "pending" | "in_progress" | "completed" | "blocked" | undefined;
1587
+ dependencies?: string[] | undefined;
1588
+ }>, "many">;
1589
+ message: import("zod").ZodString;
1590
+ userFeedback: import("zod").ZodOptional<import("zod").ZodString>;
1591
+ }, "strip", import("zod").ZodTypeAny, {
1592
+ message: string;
1593
+ tasks: {
1594
+ status: "pending" | "in_progress" | "completed" | "blocked";
1595
+ id: string;
1596
+ content: string;
1597
+ priority: "high" | "medium" | "low";
1598
+ notes: string;
1599
+ dependencies?: string[] | undefined;
1600
+ }[];
1601
+ approved: boolean;
1602
+ userFeedback?: string | undefined;
1603
+ }, {
1604
+ message: string;
1605
+ tasks: {
1606
+ id: string;
1607
+ content: string;
1608
+ priority: "high" | "medium" | "low";
1609
+ notes: string;
1610
+ status?: "pending" | "in_progress" | "completed" | "blocked" | undefined;
1611
+ dependencies?: string[] | undefined;
1612
+ }[];
1613
+ approved: boolean;
1614
+ userFeedback?: string | undefined;
1615
+ }>, import("zod").ZodObject<{
1616
+ approved: import("zod").ZodBoolean;
1617
+ modifications: import("zod").ZodOptional<import("zod").ZodString>;
1618
+ }, "strip", import("zod").ZodTypeAny, {
1619
+ approved: boolean;
1620
+ modifications?: string | undefined;
1621
+ }, {
1622
+ approved: boolean;
1623
+ modifications?: string | undefined;
1624
+ }>, import("zod").ZodObject<{
1625
+ taskList: import("zod").ZodArray<import("zod").ZodObject<{
1626
+ id: import("zod").ZodString;
1627
+ content: import("zod").ZodString;
1628
+ status: import("zod").ZodDefault<import("zod").ZodEnum<["pending", "in_progress", "completed", "blocked"]>>;
1629
+ priority: import("zod").ZodEnum<["high", "medium", "low"]>;
1630
+ dependencies: import("zod").ZodOptional<import("zod").ZodArray<import("zod").ZodString, "many">>;
1631
+ notes: import("zod").ZodString;
1632
+ }, "strip", import("zod").ZodTypeAny, {
1633
+ status: "pending" | "in_progress" | "completed" | "blocked";
1634
+ id: string;
1635
+ content: string;
1636
+ priority: "high" | "medium" | "low";
1637
+ notes: string;
1638
+ dependencies?: string[] | undefined;
1639
+ }, {
1640
+ id: string;
1641
+ content: string;
1642
+ priority: "high" | "medium" | "low";
1643
+ notes: string;
1644
+ status?: "pending" | "in_progress" | "completed" | "blocked" | undefined;
1645
+ dependencies?: string[] | undefined;
1646
+ }>, "many">;
1647
+ summary: import("zod").ZodString;
1648
+ message: import("zod").ZodString;
1649
+ }, "strip", import("zod").ZodTypeAny, {
1650
+ message: string;
1651
+ summary: string;
1652
+ taskList: {
1653
+ status: "pending" | "in_progress" | "completed" | "blocked";
1654
+ id: string;
1655
+ content: string;
1656
+ priority: "high" | "medium" | "low";
1657
+ notes: string;
1658
+ dependencies?: string[] | undefined;
1659
+ }[];
1660
+ }, {
1661
+ message: string;
1662
+ summary: string;
1663
+ taskList: {
1664
+ id: string;
1665
+ content: string;
1666
+ priority: "high" | "medium" | "low";
1667
+ notes: string;
1668
+ status?: "pending" | "in_progress" | "completed" | "blocked" | undefined;
1669
+ dependencies?: string[] | undefined;
1670
+ }[];
1671
+ }>, import("@mastra/core").DefaultEngineType>)[], "planning-and-approval", import("zod").ZodObject<{
1672
+ action: import("zod").ZodEnum<["create", "edit"]>;
1673
+ workflowName: import("zod").ZodOptional<import("zod").ZodString>;
1674
+ description: import("zod").ZodOptional<import("zod").ZodString>;
1675
+ requirements: import("zod").ZodOptional<import("zod").ZodString>;
1676
+ discoveredWorkflows: import("zod").ZodArray<import("zod").ZodObject<{
1677
+ name: import("zod").ZodString;
1678
+ file: import("zod").ZodString;
1679
+ description: import("zod").ZodOptional<import("zod").ZodString>;
1680
+ inputSchema: import("zod").ZodOptional<import("zod").ZodAny>;
1681
+ outputSchema: import("zod").ZodOptional<import("zod").ZodAny>;
1682
+ steps: import("zod").ZodOptional<import("zod").ZodArray<import("zod").ZodString, "many">>;
1683
+ }, "strip", import("zod").ZodTypeAny, {
1684
+ file: string;
1685
+ name: string;
1686
+ description?: string | undefined;
1687
+ steps?: string[] | undefined;
1688
+ inputSchema?: any;
1689
+ outputSchema?: any;
1690
+ }, {
1691
+ file: string;
1692
+ name: string;
1693
+ description?: string | undefined;
1694
+ steps?: string[] | undefined;
1695
+ inputSchema?: any;
1696
+ outputSchema?: any;
1697
+ }>, "many">;
1698
+ projectStructure: import("zod").ZodObject<{
1699
+ success: import("zod").ZodBoolean;
1700
+ structure: import("zod").ZodObject<{
1701
+ hasWorkflowsDir: import("zod").ZodBoolean;
1702
+ hasAgentsDir: import("zod").ZodBoolean;
1703
+ hasToolsDir: import("zod").ZodBoolean;
1704
+ hasMastraIndex: import("zod").ZodBoolean;
1705
+ existingWorkflows: import("zod").ZodArray<import("zod").ZodString, "many">;
1706
+ existingAgents: import("zod").ZodArray<import("zod").ZodString, "many">;
1707
+ existingTools: import("zod").ZodArray<import("zod").ZodString, "many">;
1708
+ }, "strip", import("zod").ZodTypeAny, {
1709
+ hasWorkflowsDir: boolean;
1710
+ hasAgentsDir: boolean;
1711
+ hasToolsDir: boolean;
1712
+ hasMastraIndex: boolean;
1713
+ existingWorkflows: string[];
1714
+ existingAgents: string[];
1715
+ existingTools: string[];
1716
+ }, {
1717
+ hasWorkflowsDir: boolean;
1718
+ hasAgentsDir: boolean;
1719
+ hasToolsDir: boolean;
1720
+ hasMastraIndex: boolean;
1721
+ existingWorkflows: string[];
1722
+ existingAgents: string[];
1723
+ existingTools: string[];
1724
+ }>;
1725
+ dependencies: import("zod").ZodRecord<import("zod").ZodString, import("zod").ZodString>;
1726
+ message: import("zod").ZodString;
1727
+ error: import("zod").ZodOptional<import("zod").ZodString>;
1728
+ }, "strip", import("zod").ZodTypeAny, {
1729
+ message: string;
1730
+ success: boolean;
1731
+ dependencies: Record<string, string>;
1732
+ structure: {
1733
+ hasWorkflowsDir: boolean;
1734
+ hasAgentsDir: boolean;
1735
+ hasToolsDir: boolean;
1736
+ hasMastraIndex: boolean;
1737
+ existingWorkflows: string[];
1738
+ existingAgents: string[];
1739
+ existingTools: string[];
1740
+ };
1741
+ error?: string | undefined;
1742
+ }, {
1743
+ message: string;
1744
+ success: boolean;
1745
+ dependencies: Record<string, string>;
1746
+ structure: {
1747
+ hasWorkflowsDir: boolean;
1748
+ hasAgentsDir: boolean;
1749
+ hasToolsDir: boolean;
1750
+ hasMastraIndex: boolean;
1751
+ existingWorkflows: string[];
1752
+ existingAgents: string[];
1753
+ existingTools: string[];
1754
+ };
1755
+ error?: string | undefined;
1756
+ }>;
1757
+ research: import("zod").ZodObject<{
1758
+ success: import("zod").ZodBoolean;
1759
+ documentation: import("zod").ZodObject<{
1760
+ workflowPatterns: import("zod").ZodArray<import("zod").ZodString, "many">;
1761
+ stepExamples: import("zod").ZodArray<import("zod").ZodString, "many">;
1762
+ bestPractices: import("zod").ZodArray<import("zod").ZodString, "many">;
1763
+ }, "strip", import("zod").ZodTypeAny, {
1764
+ workflowPatterns: string[];
1765
+ stepExamples: string[];
1766
+ bestPractices: string[];
1767
+ }, {
1768
+ workflowPatterns: string[];
1769
+ stepExamples: string[];
1770
+ bestPractices: string[];
1771
+ }>;
1772
+ webResources: import("zod").ZodArray<import("zod").ZodObject<{
1773
+ title: import("zod").ZodString;
1774
+ url: import("zod").ZodString;
1775
+ snippet: import("zod").ZodString;
1776
+ relevance: import("zod").ZodNumber;
1777
+ }, "strip", import("zod").ZodTypeAny, {
1778
+ url: string;
1779
+ relevance: number;
1780
+ title: string;
1781
+ snippet: string;
1782
+ }, {
1783
+ url: string;
1784
+ relevance: number;
1785
+ title: string;
1786
+ snippet: string;
1787
+ }>, "many">;
1788
+ message: import("zod").ZodString;
1789
+ error: import("zod").ZodOptional<import("zod").ZodString>;
1790
+ }, "strip", import("zod").ZodTypeAny, {
1791
+ message: string;
1792
+ success: boolean;
1793
+ documentation: {
1794
+ workflowPatterns: string[];
1795
+ stepExamples: string[];
1796
+ bestPractices: string[];
1797
+ };
1798
+ webResources: {
1799
+ url: string;
1800
+ relevance: number;
1801
+ title: string;
1802
+ snippet: string;
1803
+ }[];
1804
+ error?: string | undefined;
1805
+ }, {
1806
+ message: string;
1807
+ success: boolean;
1808
+ documentation: {
1809
+ workflowPatterns: string[];
1810
+ stepExamples: string[];
1811
+ bestPractices: string[];
1812
+ };
1813
+ webResources: {
1814
+ url: string;
1815
+ relevance: number;
1816
+ title: string;
1817
+ snippet: string;
1818
+ }[];
1819
+ error?: string | undefined;
1820
+ }>;
1821
+ userAnswers: import("zod").ZodOptional<import("zod").ZodRecord<import("zod").ZodString, import("zod").ZodString>>;
1822
+ }, "strip", import("zod").ZodTypeAny, {
1823
+ action: "create" | "edit";
1824
+ discoveredWorkflows: {
1825
+ file: string;
1826
+ name: string;
1827
+ description?: string | undefined;
1828
+ steps?: string[] | undefined;
1829
+ inputSchema?: any;
1830
+ outputSchema?: any;
1831
+ }[];
1832
+ projectStructure: {
1833
+ message: string;
1834
+ success: boolean;
1835
+ dependencies: Record<string, string>;
1836
+ structure: {
1837
+ hasWorkflowsDir: boolean;
1838
+ hasAgentsDir: boolean;
1839
+ hasToolsDir: boolean;
1840
+ hasMastraIndex: boolean;
1841
+ existingWorkflows: string[];
1842
+ existingAgents: string[];
1843
+ existingTools: string[];
1844
+ };
1845
+ error?: string | undefined;
1846
+ };
1847
+ research: {
1848
+ message: string;
1849
+ success: boolean;
1850
+ documentation: {
1851
+ workflowPatterns: string[];
1852
+ stepExamples: string[];
1853
+ bestPractices: string[];
1854
+ };
1855
+ webResources: {
1856
+ url: string;
1857
+ relevance: number;
1858
+ title: string;
1859
+ snippet: string;
1860
+ }[];
1861
+ error?: string | undefined;
1862
+ };
1863
+ description?: string | undefined;
1864
+ workflowName?: string | undefined;
1865
+ requirements?: string | undefined;
1866
+ userAnswers?: Record<string, string> | undefined;
1867
+ }, {
1868
+ action: "create" | "edit";
1869
+ discoveredWorkflows: {
1870
+ file: string;
1871
+ name: string;
1872
+ description?: string | undefined;
1873
+ steps?: string[] | undefined;
1874
+ inputSchema?: any;
1875
+ outputSchema?: any;
1876
+ }[];
1877
+ projectStructure: {
1878
+ message: string;
1879
+ success: boolean;
1880
+ dependencies: Record<string, string>;
1881
+ structure: {
1882
+ hasWorkflowsDir: boolean;
1883
+ hasAgentsDir: boolean;
1884
+ hasToolsDir: boolean;
1885
+ hasMastraIndex: boolean;
1886
+ existingWorkflows: string[];
1887
+ existingAgents: string[];
1888
+ existingTools: string[];
1889
+ };
1890
+ error?: string | undefined;
1891
+ };
1892
+ research: {
1893
+ message: string;
1894
+ success: boolean;
1895
+ documentation: {
1896
+ workflowPatterns: string[];
1897
+ stepExamples: string[];
1898
+ bestPractices: string[];
1899
+ };
1900
+ webResources: {
1901
+ url: string;
1902
+ relevance: number;
1903
+ title: string;
1904
+ snippet: string;
1905
+ }[];
1906
+ error?: string | undefined;
1907
+ };
1908
+ description?: string | undefined;
1909
+ workflowName?: string | undefined;
1910
+ requirements?: string | undefined;
1911
+ userAnswers?: Record<string, string> | undefined;
1912
+ }>, import("zod").ZodObject<{
1913
+ approved: import("zod").ZodBoolean;
1914
+ tasks: import("zod").ZodArray<import("zod").ZodObject<{
1915
+ id: import("zod").ZodString;
1916
+ content: import("zod").ZodString;
1917
+ status: import("zod").ZodDefault<import("zod").ZodEnum<["pending", "in_progress", "completed", "blocked"]>>;
1918
+ priority: import("zod").ZodEnum<["high", "medium", "low"]>;
1919
+ dependencies: import("zod").ZodOptional<import("zod").ZodArray<import("zod").ZodString, "many">>;
1920
+ notes: import("zod").ZodString;
1921
+ }, "strip", import("zod").ZodTypeAny, {
1922
+ status: "pending" | "in_progress" | "completed" | "blocked";
1923
+ id: string;
1924
+ content: string;
1925
+ priority: "high" | "medium" | "low";
1926
+ notes: string;
1927
+ dependencies?: string[] | undefined;
1928
+ }, {
1929
+ id: string;
1930
+ content: string;
1931
+ priority: "high" | "medium" | "low";
1932
+ notes: string;
1933
+ status?: "pending" | "in_progress" | "completed" | "blocked" | undefined;
1934
+ dependencies?: string[] | undefined;
1935
+ }>, "many">;
1936
+ message: import("zod").ZodString;
1937
+ userFeedback: import("zod").ZodOptional<import("zod").ZodString>;
1938
+ }, "strip", import("zod").ZodTypeAny, {
1939
+ message: string;
1940
+ tasks: {
1941
+ status: "pending" | "in_progress" | "completed" | "blocked";
1942
+ id: string;
1943
+ content: string;
1944
+ priority: "high" | "medium" | "low";
1945
+ notes: string;
1946
+ dependencies?: string[] | undefined;
1947
+ }[];
1948
+ approved: boolean;
1949
+ userFeedback?: string | undefined;
1950
+ }, {
1951
+ message: string;
1952
+ tasks: {
1953
+ id: string;
1954
+ content: string;
1955
+ priority: "high" | "medium" | "low";
1956
+ notes: string;
1957
+ status?: "pending" | "in_progress" | "completed" | "blocked" | undefined;
1958
+ dependencies?: string[] | undefined;
1959
+ }[];
1960
+ approved: boolean;
1961
+ userFeedback?: string | undefined;
1962
+ }>, import("zod").ZodObject<{
1963
+ approved: import("zod").ZodBoolean;
1964
+ tasks: import("zod").ZodArray<import("zod").ZodObject<{
1965
+ id: import("zod").ZodString;
1966
+ content: import("zod").ZodString;
1967
+ status: import("zod").ZodDefault<import("zod").ZodEnum<["pending", "in_progress", "completed", "blocked"]>>;
1968
+ priority: import("zod").ZodEnum<["high", "medium", "low"]>;
1969
+ dependencies: import("zod").ZodOptional<import("zod").ZodArray<import("zod").ZodString, "many">>;
1970
+ notes: import("zod").ZodString;
1971
+ }, "strip", import("zod").ZodTypeAny, {
1972
+ status: "pending" | "in_progress" | "completed" | "blocked";
1973
+ id: string;
1974
+ content: string;
1975
+ priority: "high" | "medium" | "low";
1976
+ notes: string;
1977
+ dependencies?: string[] | undefined;
1978
+ }, {
1979
+ id: string;
1980
+ content: string;
1981
+ priority: "high" | "medium" | "low";
1982
+ notes: string;
1983
+ status?: "pending" | "in_progress" | "completed" | "blocked" | undefined;
1984
+ dependencies?: string[] | undefined;
1985
+ }>, "many">;
1986
+ message: import("zod").ZodString;
1987
+ userFeedback: import("zod").ZodOptional<import("zod").ZodString>;
1988
+ }, "strip", import("zod").ZodTypeAny, {
1989
+ message: string;
1990
+ tasks: {
1991
+ status: "pending" | "in_progress" | "completed" | "blocked";
1992
+ id: string;
1993
+ content: string;
1994
+ priority: "high" | "medium" | "low";
1995
+ notes: string;
1996
+ dependencies?: string[] | undefined;
1997
+ }[];
1998
+ approved: boolean;
1999
+ userFeedback?: string | undefined;
2000
+ }, {
2001
+ message: string;
2002
+ tasks: {
2003
+ id: string;
2004
+ content: string;
2005
+ priority: "high" | "medium" | "low";
2006
+ notes: string;
2007
+ status?: "pending" | "in_progress" | "completed" | "blocked" | undefined;
2008
+ dependencies?: string[] | undefined;
2009
+ }[];
2010
+ approved: boolean;
2011
+ userFeedback?: string | undefined;
2012
+ }>> | import("@mastra/core").Step<"workflow-discovery", import("zod").ZodObject<{
2013
+ workflowName: import("zod").ZodOptional<import("zod").ZodString>;
2014
+ action: import("zod").ZodEnum<["create", "edit"]>;
2015
+ description: import("zod").ZodOptional<import("zod").ZodString>;
2016
+ requirements: import("zod").ZodOptional<import("zod").ZodString>;
2017
+ projectPath: import("zod").ZodOptional<import("zod").ZodString>;
2018
+ }, "strip", import("zod").ZodTypeAny, {
2019
+ action: "create" | "edit";
2020
+ description?: string | undefined;
2021
+ projectPath?: string | undefined;
2022
+ workflowName?: string | undefined;
2023
+ requirements?: string | undefined;
2024
+ }, {
2025
+ action: "create" | "edit";
2026
+ description?: string | undefined;
2027
+ projectPath?: string | undefined;
2028
+ workflowName?: string | undefined;
2029
+ requirements?: string | undefined;
2030
+ }>, import("zod").ZodObject<{
2031
+ success: import("zod").ZodBoolean;
2032
+ workflows: import("zod").ZodArray<import("zod").ZodObject<{
2033
+ name: import("zod").ZodString;
2034
+ file: import("zod").ZodString;
2035
+ description: import("zod").ZodOptional<import("zod").ZodString>;
2036
+ inputSchema: import("zod").ZodOptional<import("zod").ZodAny>;
2037
+ outputSchema: import("zod").ZodOptional<import("zod").ZodAny>;
2038
+ steps: import("zod").ZodOptional<import("zod").ZodArray<import("zod").ZodString, "many">>;
2039
+ }, "strip", import("zod").ZodTypeAny, {
2040
+ file: string;
2041
+ name: string;
2042
+ description?: string | undefined;
2043
+ steps?: string[] | undefined;
2044
+ inputSchema?: any;
2045
+ outputSchema?: any;
2046
+ }, {
2047
+ file: string;
2048
+ name: string;
2049
+ description?: string | undefined;
2050
+ steps?: string[] | undefined;
2051
+ inputSchema?: any;
2052
+ outputSchema?: any;
2053
+ }>, "many">;
2054
+ mastraIndexExists: import("zod").ZodBoolean;
2055
+ message: import("zod").ZodString;
2056
+ error: import("zod").ZodOptional<import("zod").ZodString>;
2057
+ }, "strip", import("zod").ZodTypeAny, {
2058
+ message: string;
2059
+ success: boolean;
2060
+ workflows: {
2061
+ file: string;
2062
+ name: string;
2063
+ description?: string | undefined;
2064
+ steps?: string[] | undefined;
2065
+ inputSchema?: any;
2066
+ outputSchema?: any;
2067
+ }[];
2068
+ mastraIndexExists: boolean;
2069
+ error?: string | undefined;
2070
+ }, {
2071
+ message: string;
2072
+ success: boolean;
2073
+ workflows: {
2074
+ file: string;
2075
+ name: string;
2076
+ description?: string | undefined;
2077
+ steps?: string[] | undefined;
2078
+ inputSchema?: any;
2079
+ outputSchema?: any;
2080
+ }[];
2081
+ mastraIndexExists: boolean;
2082
+ error?: string | undefined;
2083
+ }>, import("zod").ZodType<any, import("zod").ZodTypeDef, any>, import("zod").ZodType<any, import("zod").ZodTypeDef, any>, import("@mastra/core").DefaultEngineType> | import("@mastra/core").Step<"project-discovery", import("zod").ZodObject<{
2084
+ success: import("zod").ZodBoolean;
2085
+ workflows: import("zod").ZodArray<import("zod").ZodObject<{
2086
+ name: import("zod").ZodString;
2087
+ file: import("zod").ZodString;
2088
+ description: import("zod").ZodOptional<import("zod").ZodString>;
2089
+ inputSchema: import("zod").ZodOptional<import("zod").ZodAny>;
2090
+ outputSchema: import("zod").ZodOptional<import("zod").ZodAny>;
2091
+ steps: import("zod").ZodOptional<import("zod").ZodArray<import("zod").ZodString, "many">>;
2092
+ }, "strip", import("zod").ZodTypeAny, {
2093
+ file: string;
2094
+ name: string;
2095
+ description?: string | undefined;
2096
+ steps?: string[] | undefined;
2097
+ inputSchema?: any;
2098
+ outputSchema?: any;
2099
+ }, {
2100
+ file: string;
2101
+ name: string;
2102
+ description?: string | undefined;
2103
+ steps?: string[] | undefined;
2104
+ inputSchema?: any;
2105
+ outputSchema?: any;
2106
+ }>, "many">;
2107
+ mastraIndexExists: import("zod").ZodBoolean;
2108
+ message: import("zod").ZodString;
2109
+ error: import("zod").ZodOptional<import("zod").ZodString>;
2110
+ }, "strip", import("zod").ZodTypeAny, {
2111
+ message: string;
2112
+ success: boolean;
2113
+ workflows: {
2114
+ file: string;
2115
+ name: string;
2116
+ description?: string | undefined;
2117
+ steps?: string[] | undefined;
2118
+ inputSchema?: any;
2119
+ outputSchema?: any;
2120
+ }[];
2121
+ mastraIndexExists: boolean;
2122
+ error?: string | undefined;
2123
+ }, {
2124
+ message: string;
2125
+ success: boolean;
2126
+ workflows: {
2127
+ file: string;
2128
+ name: string;
2129
+ description?: string | undefined;
2130
+ steps?: string[] | undefined;
2131
+ inputSchema?: any;
2132
+ outputSchema?: any;
2133
+ }[];
2134
+ mastraIndexExists: boolean;
2135
+ error?: string | undefined;
2136
+ }>, import("zod").ZodObject<{
2137
+ success: import("zod").ZodBoolean;
2138
+ structure: import("zod").ZodObject<{
2139
+ hasWorkflowsDir: import("zod").ZodBoolean;
2140
+ hasAgentsDir: import("zod").ZodBoolean;
2141
+ hasToolsDir: import("zod").ZodBoolean;
2142
+ hasMastraIndex: import("zod").ZodBoolean;
2143
+ existingWorkflows: import("zod").ZodArray<import("zod").ZodString, "many">;
2144
+ existingAgents: import("zod").ZodArray<import("zod").ZodString, "many">;
2145
+ existingTools: import("zod").ZodArray<import("zod").ZodString, "many">;
2146
+ }, "strip", import("zod").ZodTypeAny, {
2147
+ hasWorkflowsDir: boolean;
2148
+ hasAgentsDir: boolean;
2149
+ hasToolsDir: boolean;
2150
+ hasMastraIndex: boolean;
2151
+ existingWorkflows: string[];
2152
+ existingAgents: string[];
2153
+ existingTools: string[];
2154
+ }, {
2155
+ hasWorkflowsDir: boolean;
2156
+ hasAgentsDir: boolean;
2157
+ hasToolsDir: boolean;
2158
+ hasMastraIndex: boolean;
2159
+ existingWorkflows: string[];
2160
+ existingAgents: string[];
2161
+ existingTools: string[];
2162
+ }>;
2163
+ dependencies: import("zod").ZodRecord<import("zod").ZodString, import("zod").ZodString>;
2164
+ message: import("zod").ZodString;
2165
+ error: import("zod").ZodOptional<import("zod").ZodString>;
2166
+ }, "strip", import("zod").ZodTypeAny, {
2167
+ message: string;
2168
+ success: boolean;
2169
+ dependencies: Record<string, string>;
2170
+ structure: {
2171
+ hasWorkflowsDir: boolean;
2172
+ hasAgentsDir: boolean;
2173
+ hasToolsDir: boolean;
2174
+ hasMastraIndex: boolean;
2175
+ existingWorkflows: string[];
2176
+ existingAgents: string[];
2177
+ existingTools: string[];
2178
+ };
2179
+ error?: string | undefined;
2180
+ }, {
2181
+ message: string;
2182
+ success: boolean;
2183
+ dependencies: Record<string, string>;
2184
+ structure: {
2185
+ hasWorkflowsDir: boolean;
2186
+ hasAgentsDir: boolean;
2187
+ hasToolsDir: boolean;
2188
+ hasMastraIndex: boolean;
2189
+ existingWorkflows: string[];
2190
+ existingAgents: string[];
2191
+ existingTools: string[];
2192
+ };
2193
+ error?: string | undefined;
2194
+ }>, import("zod").ZodType<any, import("zod").ZodTypeDef, any>, import("zod").ZodType<any, import("zod").ZodTypeDef, any>, import("@mastra/core").DefaultEngineType> | import("@mastra/core").Step<"workflow-research", import("zod").ZodObject<{
2195
+ success: import("zod").ZodBoolean;
2196
+ structure: import("zod").ZodObject<{
2197
+ hasWorkflowsDir: import("zod").ZodBoolean;
2198
+ hasAgentsDir: import("zod").ZodBoolean;
2199
+ hasToolsDir: import("zod").ZodBoolean;
2200
+ hasMastraIndex: import("zod").ZodBoolean;
2201
+ existingWorkflows: import("zod").ZodArray<import("zod").ZodString, "many">;
2202
+ existingAgents: import("zod").ZodArray<import("zod").ZodString, "many">;
2203
+ existingTools: import("zod").ZodArray<import("zod").ZodString, "many">;
2204
+ }, "strip", import("zod").ZodTypeAny, {
2205
+ hasWorkflowsDir: boolean;
2206
+ hasAgentsDir: boolean;
2207
+ hasToolsDir: boolean;
2208
+ hasMastraIndex: boolean;
2209
+ existingWorkflows: string[];
2210
+ existingAgents: string[];
2211
+ existingTools: string[];
2212
+ }, {
2213
+ hasWorkflowsDir: boolean;
2214
+ hasAgentsDir: boolean;
2215
+ hasToolsDir: boolean;
2216
+ hasMastraIndex: boolean;
2217
+ existingWorkflows: string[];
2218
+ existingAgents: string[];
2219
+ existingTools: string[];
2220
+ }>;
2221
+ dependencies: import("zod").ZodRecord<import("zod").ZodString, import("zod").ZodString>;
2222
+ message: import("zod").ZodString;
2223
+ error: import("zod").ZodOptional<import("zod").ZodString>;
2224
+ }, "strip", import("zod").ZodTypeAny, {
2225
+ message: string;
2226
+ success: boolean;
2227
+ dependencies: Record<string, string>;
2228
+ structure: {
2229
+ hasWorkflowsDir: boolean;
2230
+ hasAgentsDir: boolean;
2231
+ hasToolsDir: boolean;
2232
+ hasMastraIndex: boolean;
2233
+ existingWorkflows: string[];
2234
+ existingAgents: string[];
2235
+ existingTools: string[];
2236
+ };
2237
+ error?: string | undefined;
2238
+ }, {
2239
+ message: string;
2240
+ success: boolean;
2241
+ dependencies: Record<string, string>;
2242
+ structure: {
2243
+ hasWorkflowsDir: boolean;
2244
+ hasAgentsDir: boolean;
2245
+ hasToolsDir: boolean;
2246
+ hasMastraIndex: boolean;
2247
+ existingWorkflows: string[];
2248
+ existingAgents: string[];
2249
+ existingTools: string[];
2250
+ };
2251
+ error?: string | undefined;
2252
+ }>, import("zod").ZodObject<{
2253
+ success: import("zod").ZodBoolean;
2254
+ documentation: import("zod").ZodObject<{
2255
+ workflowPatterns: import("zod").ZodArray<import("zod").ZodString, "many">;
2256
+ stepExamples: import("zod").ZodArray<import("zod").ZodString, "many">;
2257
+ bestPractices: import("zod").ZodArray<import("zod").ZodString, "many">;
2258
+ }, "strip", import("zod").ZodTypeAny, {
2259
+ workflowPatterns: string[];
2260
+ stepExamples: string[];
2261
+ bestPractices: string[];
2262
+ }, {
2263
+ workflowPatterns: string[];
2264
+ stepExamples: string[];
2265
+ bestPractices: string[];
2266
+ }>;
2267
+ webResources: import("zod").ZodArray<import("zod").ZodObject<{
2268
+ title: import("zod").ZodString;
2269
+ url: import("zod").ZodString;
2270
+ snippet: import("zod").ZodString;
2271
+ relevance: import("zod").ZodNumber;
2272
+ }, "strip", import("zod").ZodTypeAny, {
2273
+ url: string;
2274
+ relevance: number;
2275
+ title: string;
2276
+ snippet: string;
2277
+ }, {
2278
+ url: string;
2279
+ relevance: number;
2280
+ title: string;
2281
+ snippet: string;
2282
+ }>, "many">;
2283
+ message: import("zod").ZodString;
2284
+ error: import("zod").ZodOptional<import("zod").ZodString>;
2285
+ }, "strip", import("zod").ZodTypeAny, {
2286
+ message: string;
2287
+ success: boolean;
2288
+ documentation: {
2289
+ workflowPatterns: string[];
2290
+ stepExamples: string[];
2291
+ bestPractices: string[];
2292
+ };
2293
+ webResources: {
2294
+ url: string;
2295
+ relevance: number;
2296
+ title: string;
2297
+ snippet: string;
2298
+ }[];
2299
+ error?: string | undefined;
2300
+ }, {
2301
+ message: string;
2302
+ success: boolean;
2303
+ documentation: {
2304
+ workflowPatterns: string[];
2305
+ stepExamples: string[];
2306
+ bestPractices: string[];
2307
+ };
2308
+ webResources: {
2309
+ url: string;
2310
+ relevance: number;
2311
+ title: string;
2312
+ snippet: string;
2313
+ }[];
2314
+ error?: string | undefined;
2315
+ }>, import("zod").ZodType<any, import("zod").ZodTypeDef, any>, import("zod").ZodType<any, import("zod").ZodTypeDef, any>, import("@mastra/core").DefaultEngineType> | import("@mastra/core").Step<"task-execution", import("zod").ZodObject<{
2316
+ action: import("zod").ZodEnum<["create", "edit"]>;
2317
+ workflowName: import("zod").ZodOptional<import("zod").ZodString>;
2318
+ description: import("zod").ZodOptional<import("zod").ZodString>;
2319
+ requirements: import("zod").ZodOptional<import("zod").ZodString>;
2320
+ tasks: import("zod").ZodArray<import("zod").ZodObject<{
2321
+ id: import("zod").ZodString;
2322
+ content: import("zod").ZodString;
2323
+ status: import("zod").ZodDefault<import("zod").ZodEnum<["pending", "in_progress", "completed", "blocked"]>>;
2324
+ priority: import("zod").ZodEnum<["high", "medium", "low"]>;
2325
+ dependencies: import("zod").ZodOptional<import("zod").ZodArray<import("zod").ZodString, "many">>;
2326
+ notes: import("zod").ZodString;
2327
+ }, "strip", import("zod").ZodTypeAny, {
2328
+ status: "pending" | "in_progress" | "completed" | "blocked";
2329
+ id: string;
2330
+ content: string;
2331
+ priority: "high" | "medium" | "low";
2332
+ notes: string;
2333
+ dependencies?: string[] | undefined;
2334
+ }, {
2335
+ id: string;
2336
+ content: string;
2337
+ priority: "high" | "medium" | "low";
2338
+ notes: string;
2339
+ status?: "pending" | "in_progress" | "completed" | "blocked" | undefined;
2340
+ dependencies?: string[] | undefined;
2341
+ }>, "many">;
2342
+ discoveredWorkflows: import("zod").ZodArray<import("zod").ZodAny, "many">;
2343
+ projectStructure: import("zod").ZodAny;
2344
+ research: import("zod").ZodAny;
2345
+ projectPath: import("zod").ZodOptional<import("zod").ZodString>;
2346
+ }, "strip", import("zod").ZodTypeAny, {
2347
+ action: "create" | "edit";
2348
+ tasks: {
2349
+ status: "pending" | "in_progress" | "completed" | "blocked";
2350
+ id: string;
2351
+ content: string;
2352
+ priority: "high" | "medium" | "low";
2353
+ notes: string;
2354
+ dependencies?: string[] | undefined;
2355
+ }[];
2356
+ discoveredWorkflows: any[];
2357
+ description?: string | undefined;
2358
+ projectPath?: string | undefined;
2359
+ workflowName?: string | undefined;
2360
+ requirements?: string | undefined;
2361
+ projectStructure?: any;
2362
+ research?: any;
2363
+ }, {
2364
+ action: "create" | "edit";
2365
+ tasks: {
2366
+ id: string;
2367
+ content: string;
2368
+ priority: "high" | "medium" | "low";
2369
+ notes: string;
2370
+ status?: "pending" | "in_progress" | "completed" | "blocked" | undefined;
2371
+ dependencies?: string[] | undefined;
2372
+ }[];
2373
+ discoveredWorkflows: any[];
2374
+ description?: string | undefined;
2375
+ projectPath?: string | undefined;
2376
+ workflowName?: string | undefined;
2377
+ requirements?: string | undefined;
2378
+ projectStructure?: any;
2379
+ research?: any;
2380
+ }>, import("zod").ZodObject<{
2381
+ success: import("zod").ZodBoolean;
2382
+ filesModified: import("zod").ZodArray<import("zod").ZodString, "many">;
2383
+ validationResults: import("zod").ZodObject<{
2384
+ passed: import("zod").ZodBoolean;
2385
+ errors: import("zod").ZodArray<import("zod").ZodString, "many">;
2386
+ warnings: import("zod").ZodArray<import("zod").ZodString, "many">;
2387
+ }, "strip", import("zod").ZodTypeAny, {
2388
+ errors: string[];
2389
+ warnings: string[];
2390
+ passed: boolean;
2391
+ }, {
2392
+ errors: string[];
2393
+ warnings: string[];
2394
+ passed: boolean;
2395
+ }>;
2396
+ completedTasks: import("zod").ZodArray<import("zod").ZodString, "many">;
2397
+ message: import("zod").ZodString;
2398
+ error: import("zod").ZodOptional<import("zod").ZodString>;
2399
+ }, "strip", import("zod").ZodTypeAny, {
2400
+ message: string;
2401
+ success: boolean;
2402
+ validationResults: {
2403
+ errors: string[];
2404
+ warnings: string[];
2405
+ passed: boolean;
2406
+ };
2407
+ completedTasks: string[];
2408
+ filesModified: string[];
2409
+ error?: string | undefined;
2410
+ }, {
2411
+ message: string;
2412
+ success: boolean;
2413
+ validationResults: {
2414
+ errors: string[];
2415
+ warnings: string[];
2416
+ passed: boolean;
2417
+ };
2418
+ completedTasks: string[];
2419
+ filesModified: string[];
2420
+ error?: string | undefined;
2421
+ }>, import("zod").ZodObject<{
2422
+ answers: import("zod").ZodArray<import("zod").ZodObject<{
2423
+ questionId: import("zod").ZodString;
2424
+ answer: import("zod").ZodString;
2425
+ }, "strip", import("zod").ZodTypeAny, {
2426
+ questionId: string;
2427
+ answer: string;
2428
+ }, {
2429
+ questionId: string;
2430
+ answer: string;
2431
+ }>, "many">;
2432
+ }, "strip", import("zod").ZodTypeAny, {
2433
+ answers: {
2434
+ questionId: string;
2435
+ answer: string;
2436
+ }[];
2437
+ }, {
2438
+ answers: {
2439
+ questionId: string;
2440
+ answer: string;
2441
+ }[];
2442
+ }>, import("zod").ZodObject<{
2443
+ questions: import("zod").ZodArray<import("zod").ZodObject<{
2444
+ id: import("zod").ZodString;
2445
+ question: import("zod").ZodString;
2446
+ type: import("zod").ZodEnum<["choice", "text", "boolean"]>;
2447
+ options: import("zod").ZodOptional<import("zod").ZodArray<import("zod").ZodString, "many">>;
2448
+ context: import("zod").ZodOptional<import("zod").ZodString>;
2449
+ }, "strip", import("zod").ZodTypeAny, {
2450
+ type: "boolean" | "text" | "choice";
2451
+ id: string;
2452
+ question: string;
2453
+ options?: string[] | undefined;
2454
+ context?: string | undefined;
2455
+ }, {
2456
+ type: "boolean" | "text" | "choice";
2457
+ id: string;
2458
+ question: string;
2459
+ options?: string[] | undefined;
2460
+ context?: string | undefined;
2461
+ }>, "many">;
2462
+ currentProgress: import("zod").ZodString;
2463
+ completedTasks: import("zod").ZodArray<import("zod").ZodString, "many">;
2464
+ message: import("zod").ZodString;
2465
+ }, "strip", import("zod").ZodTypeAny, {
2466
+ message: string;
2467
+ questions: {
2468
+ type: "boolean" | "text" | "choice";
2469
+ id: string;
2470
+ question: string;
2471
+ options?: string[] | undefined;
2472
+ context?: string | undefined;
2473
+ }[];
2474
+ currentProgress: string;
2475
+ completedTasks: string[];
2476
+ }, {
2477
+ message: string;
2478
+ questions: {
2479
+ type: "boolean" | "text" | "choice";
2480
+ id: string;
2481
+ question: string;
2482
+ options?: string[] | undefined;
2483
+ context?: string | undefined;
2484
+ }[];
2485
+ currentProgress: string;
2486
+ completedTasks: string[];
2487
+ }>, import("@mastra/core").DefaultEngineType>)[], "workflow-builder", import("zod").ZodObject<{
2488
+ workflowName: import("zod").ZodOptional<import("zod").ZodString>;
2489
+ action: import("zod").ZodEnum<["create", "edit"]>;
2490
+ description: import("zod").ZodOptional<import("zod").ZodString>;
2491
+ requirements: import("zod").ZodOptional<import("zod").ZodString>;
2492
+ projectPath: import("zod").ZodOptional<import("zod").ZodString>;
2493
+ }, "strip", import("zod").ZodTypeAny, {
2494
+ action: "create" | "edit";
2495
+ description?: string | undefined;
2496
+ projectPath?: string | undefined;
2497
+ workflowName?: string | undefined;
2498
+ requirements?: string | undefined;
2499
+ }, {
2500
+ action: "create" | "edit";
2501
+ description?: string | undefined;
2502
+ projectPath?: string | undefined;
2503
+ workflowName?: string | undefined;
2504
+ requirements?: string | undefined;
2505
+ }>, import("zod").ZodObject<{
2506
+ success: import("zod").ZodBoolean;
2507
+ action: import("zod").ZodEnum<["create", "edit"]>;
2508
+ workflowName: import("zod").ZodOptional<import("zod").ZodString>;
2509
+ workflowFile: import("zod").ZodOptional<import("zod").ZodString>;
2510
+ discovery: import("zod").ZodOptional<import("zod").ZodObject<{
2511
+ success: import("zod").ZodBoolean;
2512
+ workflows: import("zod").ZodArray<import("zod").ZodObject<{
2513
+ name: import("zod").ZodString;
2514
+ file: import("zod").ZodString;
2515
+ description: import("zod").ZodOptional<import("zod").ZodString>;
2516
+ inputSchema: import("zod").ZodOptional<import("zod").ZodAny>;
2517
+ outputSchema: import("zod").ZodOptional<import("zod").ZodAny>;
2518
+ steps: import("zod").ZodOptional<import("zod").ZodArray<import("zod").ZodString, "many">>;
2519
+ }, "strip", import("zod").ZodTypeAny, {
2520
+ file: string;
2521
+ name: string;
2522
+ description?: string | undefined;
2523
+ steps?: string[] | undefined;
2524
+ inputSchema?: any;
2525
+ outputSchema?: any;
2526
+ }, {
2527
+ file: string;
2528
+ name: string;
2529
+ description?: string | undefined;
2530
+ steps?: string[] | undefined;
2531
+ inputSchema?: any;
2532
+ outputSchema?: any;
2533
+ }>, "many">;
2534
+ mastraIndexExists: import("zod").ZodBoolean;
2535
+ message: import("zod").ZodString;
2536
+ error: import("zod").ZodOptional<import("zod").ZodString>;
2537
+ }, "strip", import("zod").ZodTypeAny, {
2538
+ message: string;
2539
+ success: boolean;
2540
+ workflows: {
2541
+ file: string;
2542
+ name: string;
2543
+ description?: string | undefined;
2544
+ steps?: string[] | undefined;
2545
+ inputSchema?: any;
2546
+ outputSchema?: any;
2547
+ }[];
2548
+ mastraIndexExists: boolean;
2549
+ error?: string | undefined;
2550
+ }, {
2551
+ message: string;
2552
+ success: boolean;
2553
+ workflows: {
2554
+ file: string;
2555
+ name: string;
2556
+ description?: string | undefined;
2557
+ steps?: string[] | undefined;
2558
+ inputSchema?: any;
2559
+ outputSchema?: any;
2560
+ }[];
2561
+ mastraIndexExists: boolean;
2562
+ error?: string | undefined;
2563
+ }>>;
2564
+ projectStructure: import("zod").ZodOptional<import("zod").ZodObject<{
2565
+ success: import("zod").ZodBoolean;
2566
+ structure: import("zod").ZodObject<{
2567
+ hasWorkflowsDir: import("zod").ZodBoolean;
2568
+ hasAgentsDir: import("zod").ZodBoolean;
2569
+ hasToolsDir: import("zod").ZodBoolean;
2570
+ hasMastraIndex: import("zod").ZodBoolean;
2571
+ existingWorkflows: import("zod").ZodArray<import("zod").ZodString, "many">;
2572
+ existingAgents: import("zod").ZodArray<import("zod").ZodString, "many">;
2573
+ existingTools: import("zod").ZodArray<import("zod").ZodString, "many">;
2574
+ }, "strip", import("zod").ZodTypeAny, {
2575
+ hasWorkflowsDir: boolean;
2576
+ hasAgentsDir: boolean;
2577
+ hasToolsDir: boolean;
2578
+ hasMastraIndex: boolean;
2579
+ existingWorkflows: string[];
2580
+ existingAgents: string[];
2581
+ existingTools: string[];
2582
+ }, {
2583
+ hasWorkflowsDir: boolean;
2584
+ hasAgentsDir: boolean;
2585
+ hasToolsDir: boolean;
2586
+ hasMastraIndex: boolean;
2587
+ existingWorkflows: string[];
2588
+ existingAgents: string[];
2589
+ existingTools: string[];
2590
+ }>;
2591
+ dependencies: import("zod").ZodRecord<import("zod").ZodString, import("zod").ZodString>;
2592
+ message: import("zod").ZodString;
2593
+ error: import("zod").ZodOptional<import("zod").ZodString>;
2594
+ }, "strip", import("zod").ZodTypeAny, {
2595
+ message: string;
2596
+ success: boolean;
2597
+ dependencies: Record<string, string>;
2598
+ structure: {
2599
+ hasWorkflowsDir: boolean;
2600
+ hasAgentsDir: boolean;
2601
+ hasToolsDir: boolean;
2602
+ hasMastraIndex: boolean;
2603
+ existingWorkflows: string[];
2604
+ existingAgents: string[];
2605
+ existingTools: string[];
2606
+ };
2607
+ error?: string | undefined;
2608
+ }, {
2609
+ message: string;
2610
+ success: boolean;
2611
+ dependencies: Record<string, string>;
2612
+ structure: {
2613
+ hasWorkflowsDir: boolean;
2614
+ hasAgentsDir: boolean;
2615
+ hasToolsDir: boolean;
2616
+ hasMastraIndex: boolean;
2617
+ existingWorkflows: string[];
2618
+ existingAgents: string[];
2619
+ existingTools: string[];
2620
+ };
2621
+ error?: string | undefined;
2622
+ }>>;
2623
+ research: import("zod").ZodOptional<import("zod").ZodObject<{
2624
+ success: import("zod").ZodBoolean;
2625
+ documentation: import("zod").ZodObject<{
2626
+ workflowPatterns: import("zod").ZodArray<import("zod").ZodString, "many">;
2627
+ stepExamples: import("zod").ZodArray<import("zod").ZodString, "many">;
2628
+ bestPractices: import("zod").ZodArray<import("zod").ZodString, "many">;
2629
+ }, "strip", import("zod").ZodTypeAny, {
2630
+ workflowPatterns: string[];
2631
+ stepExamples: string[];
2632
+ bestPractices: string[];
2633
+ }, {
2634
+ workflowPatterns: string[];
2635
+ stepExamples: string[];
2636
+ bestPractices: string[];
2637
+ }>;
2638
+ webResources: import("zod").ZodArray<import("zod").ZodObject<{
2639
+ title: import("zod").ZodString;
2640
+ url: import("zod").ZodString;
2641
+ snippet: import("zod").ZodString;
2642
+ relevance: import("zod").ZodNumber;
2643
+ }, "strip", import("zod").ZodTypeAny, {
2644
+ url: string;
2645
+ relevance: number;
2646
+ title: string;
2647
+ snippet: string;
2648
+ }, {
2649
+ url: string;
2650
+ relevance: number;
2651
+ title: string;
2652
+ snippet: string;
2653
+ }>, "many">;
2654
+ message: import("zod").ZodString;
2655
+ error: import("zod").ZodOptional<import("zod").ZodString>;
2656
+ }, "strip", import("zod").ZodTypeAny, {
2657
+ message: string;
2658
+ success: boolean;
2659
+ documentation: {
2660
+ workflowPatterns: string[];
2661
+ stepExamples: string[];
2662
+ bestPractices: string[];
2663
+ };
2664
+ webResources: {
2665
+ url: string;
2666
+ relevance: number;
2667
+ title: string;
2668
+ snippet: string;
2669
+ }[];
2670
+ error?: string | undefined;
2671
+ }, {
2672
+ message: string;
2673
+ success: boolean;
2674
+ documentation: {
2675
+ workflowPatterns: string[];
2676
+ stepExamples: string[];
2677
+ bestPractices: string[];
2678
+ };
2679
+ webResources: {
2680
+ url: string;
2681
+ relevance: number;
2682
+ title: string;
2683
+ snippet: string;
2684
+ }[];
2685
+ error?: string | undefined;
2686
+ }>>;
2687
+ planning: import("zod").ZodOptional<import("zod").ZodObject<{
2688
+ success: import("zod").ZodBoolean;
2689
+ tasks: import("zod").ZodArray<import("zod").ZodObject<{
2690
+ id: import("zod").ZodString;
2691
+ content: import("zod").ZodString;
2692
+ status: import("zod").ZodDefault<import("zod").ZodEnum<["pending", "in_progress", "completed", "blocked"]>>;
2693
+ priority: import("zod").ZodEnum<["high", "medium", "low"]>;
2694
+ dependencies: import("zod").ZodOptional<import("zod").ZodArray<import("zod").ZodString, "many">>;
2695
+ notes: import("zod").ZodString;
2696
+ }, "strip", import("zod").ZodTypeAny, {
2697
+ status: "pending" | "in_progress" | "completed" | "blocked";
2698
+ id: string;
2699
+ content: string;
2700
+ priority: "high" | "medium" | "low";
2701
+ notes: string;
2702
+ dependencies?: string[] | undefined;
2703
+ }, {
2704
+ id: string;
2705
+ content: string;
2706
+ priority: "high" | "medium" | "low";
2707
+ notes: string;
2708
+ status?: "pending" | "in_progress" | "completed" | "blocked" | undefined;
2709
+ dependencies?: string[] | undefined;
2710
+ }>, "many">;
2711
+ questions: import("zod").ZodArray<import("zod").ZodObject<{
2712
+ id: import("zod").ZodString;
2713
+ question: import("zod").ZodString;
2714
+ type: import("zod").ZodEnum<["choice", "text", "boolean"]>;
2715
+ options: import("zod").ZodOptional<import("zod").ZodArray<import("zod").ZodString, "many">>;
2716
+ context: import("zod").ZodOptional<import("zod").ZodString>;
2717
+ }, "strip", import("zod").ZodTypeAny, {
2718
+ type: "boolean" | "text" | "choice";
2719
+ id: string;
2720
+ question: string;
2721
+ options?: string[] | undefined;
2722
+ context?: string | undefined;
2723
+ }, {
2724
+ type: "boolean" | "text" | "choice";
2725
+ id: string;
2726
+ question: string;
2727
+ options?: string[] | undefined;
2728
+ context?: string | undefined;
2729
+ }>, "many">;
2730
+ reasoning: import("zod").ZodString;
2731
+ planComplete: import("zod").ZodBoolean;
2732
+ message: import("zod").ZodString;
2733
+ error: import("zod").ZodOptional<import("zod").ZodString>;
2734
+ allPreviousQuestions: import("zod").ZodOptional<import("zod").ZodArray<import("zod").ZodAny, "many">>;
2735
+ allPreviousAnswers: import("zod").ZodOptional<import("zod").ZodRecord<import("zod").ZodString, import("zod").ZodString>>;
2736
+ }, "strip", import("zod").ZodTypeAny, {
2737
+ message: string;
2738
+ success: boolean;
2739
+ tasks: {
2740
+ status: "pending" | "in_progress" | "completed" | "blocked";
2741
+ id: string;
2742
+ content: string;
2743
+ priority: "high" | "medium" | "low";
2744
+ notes: string;
2745
+ dependencies?: string[] | undefined;
2746
+ }[];
2747
+ reasoning: string;
2748
+ questions: {
2749
+ type: "boolean" | "text" | "choice";
2750
+ id: string;
2751
+ question: string;
2752
+ options?: string[] | undefined;
2753
+ context?: string | undefined;
2754
+ }[];
2755
+ planComplete: boolean;
2756
+ error?: string | undefined;
2757
+ allPreviousQuestions?: any[] | undefined;
2758
+ allPreviousAnswers?: Record<string, string> | undefined;
2759
+ }, {
2760
+ message: string;
2761
+ success: boolean;
2762
+ tasks: {
2763
+ id: string;
2764
+ content: string;
2765
+ priority: "high" | "medium" | "low";
2766
+ notes: string;
2767
+ status?: "pending" | "in_progress" | "completed" | "blocked" | undefined;
2768
+ dependencies?: string[] | undefined;
2769
+ }[];
2770
+ reasoning: string;
2771
+ questions: {
2772
+ type: "boolean" | "text" | "choice";
2773
+ id: string;
2774
+ question: string;
2775
+ options?: string[] | undefined;
2776
+ context?: string | undefined;
2777
+ }[];
2778
+ planComplete: boolean;
2779
+ error?: string | undefined;
2780
+ allPreviousQuestions?: any[] | undefined;
2781
+ allPreviousAnswers?: Record<string, string> | undefined;
2782
+ }>>;
2783
+ taskManagement: import("zod").ZodOptional<import("zod").ZodObject<{
2784
+ success: import("zod").ZodBoolean;
2785
+ tasks: import("zod").ZodArray<import("zod").ZodObject<{
2786
+ id: import("zod").ZodString;
2787
+ content: import("zod").ZodString;
2788
+ status: import("zod").ZodDefault<import("zod").ZodEnum<["pending", "in_progress", "completed", "blocked"]>>;
2789
+ priority: import("zod").ZodEnum<["high", "medium", "low"]>;
2790
+ dependencies: import("zod").ZodOptional<import("zod").ZodArray<import("zod").ZodString, "many">>;
2791
+ notes: import("zod").ZodString;
2792
+ }, "strip", import("zod").ZodTypeAny, {
2793
+ status: "pending" | "in_progress" | "completed" | "blocked";
2794
+ id: string;
2795
+ content: string;
2796
+ priority: "high" | "medium" | "low";
2797
+ notes: string;
2798
+ dependencies?: string[] | undefined;
2799
+ }, {
2800
+ id: string;
2801
+ content: string;
2802
+ priority: "high" | "medium" | "low";
2803
+ notes: string;
2804
+ status?: "pending" | "in_progress" | "completed" | "blocked" | undefined;
2805
+ dependencies?: string[] | undefined;
2806
+ }>, "many">;
2807
+ message: import("zod").ZodString;
2808
+ error: import("zod").ZodOptional<import("zod").ZodString>;
2809
+ }, "strip", import("zod").ZodTypeAny, {
2810
+ message: string;
2811
+ success: boolean;
2812
+ tasks: {
2813
+ status: "pending" | "in_progress" | "completed" | "blocked";
2814
+ id: string;
2815
+ content: string;
2816
+ priority: "high" | "medium" | "low";
2817
+ notes: string;
2818
+ dependencies?: string[] | undefined;
2819
+ }[];
2820
+ error?: string | undefined;
2821
+ }, {
2822
+ message: string;
2823
+ success: boolean;
2824
+ tasks: {
2825
+ id: string;
2826
+ content: string;
2827
+ priority: "high" | "medium" | "low";
2828
+ notes: string;
2829
+ status?: "pending" | "in_progress" | "completed" | "blocked" | undefined;
2830
+ dependencies?: string[] | undefined;
2831
+ }[];
2832
+ error?: string | undefined;
2833
+ }>>;
2834
+ execution: import("zod").ZodOptional<import("zod").ZodObject<{
2835
+ success: import("zod").ZodBoolean;
2836
+ filesModified: import("zod").ZodArray<import("zod").ZodString, "many">;
2837
+ validationResults: import("zod").ZodObject<{
2838
+ passed: import("zod").ZodBoolean;
2839
+ errors: import("zod").ZodArray<import("zod").ZodString, "many">;
2840
+ warnings: import("zod").ZodArray<import("zod").ZodString, "many">;
2841
+ }, "strip", import("zod").ZodTypeAny, {
2842
+ errors: string[];
2843
+ warnings: string[];
2844
+ passed: boolean;
2845
+ }, {
2846
+ errors: string[];
2847
+ warnings: string[];
2848
+ passed: boolean;
2849
+ }>;
2850
+ completedTasks: import("zod").ZodArray<import("zod").ZodString, "many">;
2851
+ message: import("zod").ZodString;
2852
+ error: import("zod").ZodOptional<import("zod").ZodString>;
2853
+ }, "strip", import("zod").ZodTypeAny, {
2854
+ message: string;
2855
+ success: boolean;
2856
+ validationResults: {
2857
+ errors: string[];
2858
+ warnings: string[];
2859
+ passed: boolean;
2860
+ };
2861
+ completedTasks: string[];
2862
+ filesModified: string[];
2863
+ error?: string | undefined;
2864
+ }, {
2865
+ message: string;
2866
+ success: boolean;
2867
+ validationResults: {
2868
+ errors: string[];
2869
+ warnings: string[];
2870
+ passed: boolean;
2871
+ };
2872
+ completedTasks: string[];
2873
+ filesModified: string[];
2874
+ error?: string | undefined;
2875
+ }>>;
2876
+ needsUserInput: import("zod").ZodOptional<import("zod").ZodBoolean>;
2877
+ questions: import("zod").ZodOptional<import("zod").ZodArray<import("zod").ZodObject<{
2878
+ id: import("zod").ZodString;
2879
+ question: import("zod").ZodString;
2880
+ type: import("zod").ZodEnum<["choice", "text", "boolean"]>;
2881
+ options: import("zod").ZodOptional<import("zod").ZodArray<import("zod").ZodString, "many">>;
2882
+ context: import("zod").ZodOptional<import("zod").ZodString>;
2883
+ }, "strip", import("zod").ZodTypeAny, {
2884
+ type: "boolean" | "text" | "choice";
2885
+ id: string;
2886
+ question: string;
2887
+ options?: string[] | undefined;
2888
+ context?: string | undefined;
2889
+ }, {
2890
+ type: "boolean" | "text" | "choice";
2891
+ id: string;
2892
+ question: string;
2893
+ options?: string[] | undefined;
2894
+ context?: string | undefined;
2895
+ }>, "many">>;
2896
+ message: import("zod").ZodString;
2897
+ nextSteps: import("zod").ZodOptional<import("zod").ZodArray<import("zod").ZodString, "many">>;
2898
+ error: import("zod").ZodOptional<import("zod").ZodString>;
2899
+ }, "strip", import("zod").ZodTypeAny, {
2900
+ message: string;
2901
+ success: boolean;
2902
+ action: "create" | "edit";
2903
+ error?: string | undefined;
2904
+ nextSteps?: string[] | undefined;
2905
+ questions?: {
2906
+ type: "boolean" | "text" | "choice";
2907
+ id: string;
2908
+ question: string;
2909
+ options?: string[] | undefined;
2910
+ context?: string | undefined;
2911
+ }[] | undefined;
2912
+ workflowName?: string | undefined;
2913
+ projectStructure?: {
2914
+ message: string;
2915
+ success: boolean;
2916
+ dependencies: Record<string, string>;
2917
+ structure: {
2918
+ hasWorkflowsDir: boolean;
2919
+ hasAgentsDir: boolean;
2920
+ hasToolsDir: boolean;
2921
+ hasMastraIndex: boolean;
2922
+ existingWorkflows: string[];
2923
+ existingAgents: string[];
2924
+ existingTools: string[];
2925
+ };
2926
+ error?: string | undefined;
2927
+ } | undefined;
2928
+ research?: {
2929
+ message: string;
2930
+ success: boolean;
2931
+ documentation: {
2932
+ workflowPatterns: string[];
2933
+ stepExamples: string[];
2934
+ bestPractices: string[];
2935
+ };
2936
+ webResources: {
2937
+ url: string;
2938
+ relevance: number;
2939
+ title: string;
2940
+ snippet: string;
2941
+ }[];
2942
+ error?: string | undefined;
2943
+ } | undefined;
2944
+ workflowFile?: string | undefined;
2945
+ discovery?: {
2946
+ message: string;
2947
+ success: boolean;
2948
+ workflows: {
2949
+ file: string;
2950
+ name: string;
2951
+ description?: string | undefined;
2952
+ steps?: string[] | undefined;
2953
+ inputSchema?: any;
2954
+ outputSchema?: any;
2955
+ }[];
2956
+ mastraIndexExists: boolean;
2957
+ error?: string | undefined;
2958
+ } | undefined;
2959
+ planning?: {
2960
+ message: string;
2961
+ success: boolean;
2962
+ tasks: {
2963
+ status: "pending" | "in_progress" | "completed" | "blocked";
2964
+ id: string;
2965
+ content: string;
2966
+ priority: "high" | "medium" | "low";
2967
+ notes: string;
2968
+ dependencies?: string[] | undefined;
2969
+ }[];
2970
+ reasoning: string;
2971
+ questions: {
2972
+ type: "boolean" | "text" | "choice";
2973
+ id: string;
2974
+ question: string;
2975
+ options?: string[] | undefined;
2976
+ context?: string | undefined;
2977
+ }[];
2978
+ planComplete: boolean;
2979
+ error?: string | undefined;
2980
+ allPreviousQuestions?: any[] | undefined;
2981
+ allPreviousAnswers?: Record<string, string> | undefined;
2982
+ } | undefined;
2983
+ taskManagement?: {
2984
+ message: string;
2985
+ success: boolean;
2986
+ tasks: {
2987
+ status: "pending" | "in_progress" | "completed" | "blocked";
2988
+ id: string;
2989
+ content: string;
2990
+ priority: "high" | "medium" | "low";
2991
+ notes: string;
2992
+ dependencies?: string[] | undefined;
2993
+ }[];
2994
+ error?: string | undefined;
2995
+ } | undefined;
2996
+ execution?: {
2997
+ message: string;
2998
+ success: boolean;
2999
+ validationResults: {
3000
+ errors: string[];
3001
+ warnings: string[];
3002
+ passed: boolean;
3003
+ };
3004
+ completedTasks: string[];
3005
+ filesModified: string[];
3006
+ error?: string | undefined;
3007
+ } | undefined;
3008
+ needsUserInput?: boolean | undefined;
3009
+ }, {
3010
+ message: string;
3011
+ success: boolean;
3012
+ action: "create" | "edit";
3013
+ error?: string | undefined;
3014
+ nextSteps?: string[] | undefined;
3015
+ questions?: {
3016
+ type: "boolean" | "text" | "choice";
3017
+ id: string;
3018
+ question: string;
3019
+ options?: string[] | undefined;
3020
+ context?: string | undefined;
3021
+ }[] | undefined;
3022
+ workflowName?: string | undefined;
3023
+ projectStructure?: {
3024
+ message: string;
3025
+ success: boolean;
3026
+ dependencies: Record<string, string>;
3027
+ structure: {
3028
+ hasWorkflowsDir: boolean;
3029
+ hasAgentsDir: boolean;
3030
+ hasToolsDir: boolean;
3031
+ hasMastraIndex: boolean;
3032
+ existingWorkflows: string[];
3033
+ existingAgents: string[];
3034
+ existingTools: string[];
3035
+ };
3036
+ error?: string | undefined;
3037
+ } | undefined;
3038
+ research?: {
3039
+ message: string;
3040
+ success: boolean;
3041
+ documentation: {
3042
+ workflowPatterns: string[];
3043
+ stepExamples: string[];
3044
+ bestPractices: string[];
3045
+ };
3046
+ webResources: {
3047
+ url: string;
3048
+ relevance: number;
3049
+ title: string;
3050
+ snippet: string;
3051
+ }[];
3052
+ error?: string | undefined;
3053
+ } | undefined;
3054
+ workflowFile?: string | undefined;
3055
+ discovery?: {
3056
+ message: string;
3057
+ success: boolean;
3058
+ workflows: {
3059
+ file: string;
3060
+ name: string;
3061
+ description?: string | undefined;
3062
+ steps?: string[] | undefined;
3063
+ inputSchema?: any;
3064
+ outputSchema?: any;
3065
+ }[];
3066
+ mastraIndexExists: boolean;
3067
+ error?: string | undefined;
3068
+ } | undefined;
3069
+ planning?: {
3070
+ message: string;
3071
+ success: boolean;
3072
+ tasks: {
3073
+ id: string;
3074
+ content: string;
3075
+ priority: "high" | "medium" | "low";
3076
+ notes: string;
3077
+ status?: "pending" | "in_progress" | "completed" | "blocked" | undefined;
3078
+ dependencies?: string[] | undefined;
3079
+ }[];
3080
+ reasoning: string;
3081
+ questions: {
3082
+ type: "boolean" | "text" | "choice";
3083
+ id: string;
3084
+ question: string;
3085
+ options?: string[] | undefined;
3086
+ context?: string | undefined;
3087
+ }[];
3088
+ planComplete: boolean;
3089
+ error?: string | undefined;
3090
+ allPreviousQuestions?: any[] | undefined;
3091
+ allPreviousAnswers?: Record<string, string> | undefined;
3092
+ } | undefined;
3093
+ taskManagement?: {
3094
+ message: string;
3095
+ success: boolean;
3096
+ tasks: {
3097
+ id: string;
3098
+ content: string;
3099
+ priority: "high" | "medium" | "low";
3100
+ notes: string;
3101
+ status?: "pending" | "in_progress" | "completed" | "blocked" | undefined;
3102
+ dependencies?: string[] | undefined;
3103
+ }[];
3104
+ error?: string | undefined;
3105
+ } | undefined;
3106
+ execution?: {
3107
+ message: string;
3108
+ success: boolean;
3109
+ validationResults: {
3110
+ errors: string[];
3111
+ warnings: string[];
3112
+ passed: boolean;
3113
+ };
3114
+ completedTasks: string[];
3115
+ filesModified: string[];
3116
+ error?: string | undefined;
3117
+ } | undefined;
3118
+ needsUserInput?: boolean | undefined;
3119
+ }>, import("zod").ZodObject<{
3120
+ success: import("zod").ZodBoolean;
3121
+ action: import("zod").ZodEnum<["create", "edit"]>;
3122
+ workflowName: import("zod").ZodOptional<import("zod").ZodString>;
3123
+ workflowFile: import("zod").ZodOptional<import("zod").ZodString>;
3124
+ discovery: import("zod").ZodOptional<import("zod").ZodObject<{
3125
+ success: import("zod").ZodBoolean;
3126
+ workflows: import("zod").ZodArray<import("zod").ZodObject<{
3127
+ name: import("zod").ZodString;
3128
+ file: import("zod").ZodString;
3129
+ description: import("zod").ZodOptional<import("zod").ZodString>;
3130
+ inputSchema: import("zod").ZodOptional<import("zod").ZodAny>;
3131
+ outputSchema: import("zod").ZodOptional<import("zod").ZodAny>;
3132
+ steps: import("zod").ZodOptional<import("zod").ZodArray<import("zod").ZodString, "many">>;
3133
+ }, "strip", import("zod").ZodTypeAny, {
3134
+ file: string;
3135
+ name: string;
3136
+ description?: string | undefined;
3137
+ steps?: string[] | undefined;
3138
+ inputSchema?: any;
3139
+ outputSchema?: any;
3140
+ }, {
3141
+ file: string;
3142
+ name: string;
3143
+ description?: string | undefined;
3144
+ steps?: string[] | undefined;
3145
+ inputSchema?: any;
3146
+ outputSchema?: any;
3147
+ }>, "many">;
3148
+ mastraIndexExists: import("zod").ZodBoolean;
3149
+ message: import("zod").ZodString;
3150
+ error: import("zod").ZodOptional<import("zod").ZodString>;
3151
+ }, "strip", import("zod").ZodTypeAny, {
3152
+ message: string;
3153
+ success: boolean;
3154
+ workflows: {
3155
+ file: string;
3156
+ name: string;
3157
+ description?: string | undefined;
3158
+ steps?: string[] | undefined;
3159
+ inputSchema?: any;
3160
+ outputSchema?: any;
3161
+ }[];
3162
+ mastraIndexExists: boolean;
3163
+ error?: string | undefined;
3164
+ }, {
3165
+ message: string;
3166
+ success: boolean;
3167
+ workflows: {
3168
+ file: string;
3169
+ name: string;
3170
+ description?: string | undefined;
3171
+ steps?: string[] | undefined;
3172
+ inputSchema?: any;
3173
+ outputSchema?: any;
3174
+ }[];
3175
+ mastraIndexExists: boolean;
3176
+ error?: string | undefined;
3177
+ }>>;
3178
+ projectStructure: import("zod").ZodOptional<import("zod").ZodObject<{
3179
+ success: import("zod").ZodBoolean;
3180
+ structure: import("zod").ZodObject<{
3181
+ hasWorkflowsDir: import("zod").ZodBoolean;
3182
+ hasAgentsDir: import("zod").ZodBoolean;
3183
+ hasToolsDir: import("zod").ZodBoolean;
3184
+ hasMastraIndex: import("zod").ZodBoolean;
3185
+ existingWorkflows: import("zod").ZodArray<import("zod").ZodString, "many">;
3186
+ existingAgents: import("zod").ZodArray<import("zod").ZodString, "many">;
3187
+ existingTools: import("zod").ZodArray<import("zod").ZodString, "many">;
3188
+ }, "strip", import("zod").ZodTypeAny, {
3189
+ hasWorkflowsDir: boolean;
3190
+ hasAgentsDir: boolean;
3191
+ hasToolsDir: boolean;
3192
+ hasMastraIndex: boolean;
3193
+ existingWorkflows: string[];
3194
+ existingAgents: string[];
3195
+ existingTools: string[];
3196
+ }, {
3197
+ hasWorkflowsDir: boolean;
3198
+ hasAgentsDir: boolean;
3199
+ hasToolsDir: boolean;
3200
+ hasMastraIndex: boolean;
3201
+ existingWorkflows: string[];
3202
+ existingAgents: string[];
3203
+ existingTools: string[];
3204
+ }>;
3205
+ dependencies: import("zod").ZodRecord<import("zod").ZodString, import("zod").ZodString>;
3206
+ message: import("zod").ZodString;
3207
+ error: import("zod").ZodOptional<import("zod").ZodString>;
3208
+ }, "strip", import("zod").ZodTypeAny, {
3209
+ message: string;
3210
+ success: boolean;
3211
+ dependencies: Record<string, string>;
3212
+ structure: {
3213
+ hasWorkflowsDir: boolean;
3214
+ hasAgentsDir: boolean;
3215
+ hasToolsDir: boolean;
3216
+ hasMastraIndex: boolean;
3217
+ existingWorkflows: string[];
3218
+ existingAgents: string[];
3219
+ existingTools: string[];
3220
+ };
3221
+ error?: string | undefined;
3222
+ }, {
3223
+ message: string;
3224
+ success: boolean;
3225
+ dependencies: Record<string, string>;
3226
+ structure: {
3227
+ hasWorkflowsDir: boolean;
3228
+ hasAgentsDir: boolean;
3229
+ hasToolsDir: boolean;
3230
+ hasMastraIndex: boolean;
3231
+ existingWorkflows: string[];
3232
+ existingAgents: string[];
3233
+ existingTools: string[];
3234
+ };
3235
+ error?: string | undefined;
3236
+ }>>;
3237
+ research: import("zod").ZodOptional<import("zod").ZodObject<{
3238
+ success: import("zod").ZodBoolean;
3239
+ documentation: import("zod").ZodObject<{
3240
+ workflowPatterns: import("zod").ZodArray<import("zod").ZodString, "many">;
3241
+ stepExamples: import("zod").ZodArray<import("zod").ZodString, "many">;
3242
+ bestPractices: import("zod").ZodArray<import("zod").ZodString, "many">;
3243
+ }, "strip", import("zod").ZodTypeAny, {
3244
+ workflowPatterns: string[];
3245
+ stepExamples: string[];
3246
+ bestPractices: string[];
3247
+ }, {
3248
+ workflowPatterns: string[];
3249
+ stepExamples: string[];
3250
+ bestPractices: string[];
3251
+ }>;
3252
+ webResources: import("zod").ZodArray<import("zod").ZodObject<{
3253
+ title: import("zod").ZodString;
3254
+ url: import("zod").ZodString;
3255
+ snippet: import("zod").ZodString;
3256
+ relevance: import("zod").ZodNumber;
3257
+ }, "strip", import("zod").ZodTypeAny, {
3258
+ url: string;
3259
+ relevance: number;
3260
+ title: string;
3261
+ snippet: string;
3262
+ }, {
3263
+ url: string;
3264
+ relevance: number;
3265
+ title: string;
3266
+ snippet: string;
3267
+ }>, "many">;
3268
+ message: import("zod").ZodString;
3269
+ error: import("zod").ZodOptional<import("zod").ZodString>;
3270
+ }, "strip", import("zod").ZodTypeAny, {
3271
+ message: string;
3272
+ success: boolean;
3273
+ documentation: {
3274
+ workflowPatterns: string[];
3275
+ stepExamples: string[];
3276
+ bestPractices: string[];
3277
+ };
3278
+ webResources: {
3279
+ url: string;
3280
+ relevance: number;
3281
+ title: string;
3282
+ snippet: string;
3283
+ }[];
3284
+ error?: string | undefined;
3285
+ }, {
3286
+ message: string;
3287
+ success: boolean;
3288
+ documentation: {
3289
+ workflowPatterns: string[];
3290
+ stepExamples: string[];
3291
+ bestPractices: string[];
3292
+ };
3293
+ webResources: {
3294
+ url: string;
3295
+ relevance: number;
3296
+ title: string;
3297
+ snippet: string;
3298
+ }[];
3299
+ error?: string | undefined;
3300
+ }>>;
3301
+ planning: import("zod").ZodOptional<import("zod").ZodObject<{
3302
+ success: import("zod").ZodBoolean;
3303
+ tasks: import("zod").ZodArray<import("zod").ZodObject<{
3304
+ id: import("zod").ZodString;
3305
+ content: import("zod").ZodString;
3306
+ status: import("zod").ZodDefault<import("zod").ZodEnum<["pending", "in_progress", "completed", "blocked"]>>;
3307
+ priority: import("zod").ZodEnum<["high", "medium", "low"]>;
3308
+ dependencies: import("zod").ZodOptional<import("zod").ZodArray<import("zod").ZodString, "many">>;
3309
+ notes: import("zod").ZodString;
3310
+ }, "strip", import("zod").ZodTypeAny, {
3311
+ status: "pending" | "in_progress" | "completed" | "blocked";
3312
+ id: string;
3313
+ content: string;
3314
+ priority: "high" | "medium" | "low";
3315
+ notes: string;
3316
+ dependencies?: string[] | undefined;
3317
+ }, {
3318
+ id: string;
3319
+ content: string;
3320
+ priority: "high" | "medium" | "low";
3321
+ notes: string;
3322
+ status?: "pending" | "in_progress" | "completed" | "blocked" | undefined;
3323
+ dependencies?: string[] | undefined;
3324
+ }>, "many">;
3325
+ questions: import("zod").ZodArray<import("zod").ZodObject<{
3326
+ id: import("zod").ZodString;
3327
+ question: import("zod").ZodString;
3328
+ type: import("zod").ZodEnum<["choice", "text", "boolean"]>;
3329
+ options: import("zod").ZodOptional<import("zod").ZodArray<import("zod").ZodString, "many">>;
3330
+ context: import("zod").ZodOptional<import("zod").ZodString>;
3331
+ }, "strip", import("zod").ZodTypeAny, {
3332
+ type: "boolean" | "text" | "choice";
3333
+ id: string;
3334
+ question: string;
3335
+ options?: string[] | undefined;
3336
+ context?: string | undefined;
3337
+ }, {
3338
+ type: "boolean" | "text" | "choice";
3339
+ id: string;
3340
+ question: string;
3341
+ options?: string[] | undefined;
3342
+ context?: string | undefined;
3343
+ }>, "many">;
3344
+ reasoning: import("zod").ZodString;
3345
+ planComplete: import("zod").ZodBoolean;
3346
+ message: import("zod").ZodString;
3347
+ error: import("zod").ZodOptional<import("zod").ZodString>;
3348
+ allPreviousQuestions: import("zod").ZodOptional<import("zod").ZodArray<import("zod").ZodAny, "many">>;
3349
+ allPreviousAnswers: import("zod").ZodOptional<import("zod").ZodRecord<import("zod").ZodString, import("zod").ZodString>>;
3350
+ }, "strip", import("zod").ZodTypeAny, {
3351
+ message: string;
3352
+ success: boolean;
3353
+ tasks: {
3354
+ status: "pending" | "in_progress" | "completed" | "blocked";
3355
+ id: string;
3356
+ content: string;
3357
+ priority: "high" | "medium" | "low";
3358
+ notes: string;
3359
+ dependencies?: string[] | undefined;
3360
+ }[];
3361
+ reasoning: string;
3362
+ questions: {
3363
+ type: "boolean" | "text" | "choice";
3364
+ id: string;
3365
+ question: string;
3366
+ options?: string[] | undefined;
3367
+ context?: string | undefined;
3368
+ }[];
3369
+ planComplete: boolean;
3370
+ error?: string | undefined;
3371
+ allPreviousQuestions?: any[] | undefined;
3372
+ allPreviousAnswers?: Record<string, string> | undefined;
3373
+ }, {
3374
+ message: string;
3375
+ success: boolean;
3376
+ tasks: {
3377
+ id: string;
3378
+ content: string;
3379
+ priority: "high" | "medium" | "low";
3380
+ notes: string;
3381
+ status?: "pending" | "in_progress" | "completed" | "blocked" | undefined;
3382
+ dependencies?: string[] | undefined;
3383
+ }[];
3384
+ reasoning: string;
3385
+ questions: {
3386
+ type: "boolean" | "text" | "choice";
3387
+ id: string;
3388
+ question: string;
3389
+ options?: string[] | undefined;
3390
+ context?: string | undefined;
3391
+ }[];
3392
+ planComplete: boolean;
3393
+ error?: string | undefined;
3394
+ allPreviousQuestions?: any[] | undefined;
3395
+ allPreviousAnswers?: Record<string, string> | undefined;
3396
+ }>>;
3397
+ taskManagement: import("zod").ZodOptional<import("zod").ZodObject<{
3398
+ success: import("zod").ZodBoolean;
3399
+ tasks: import("zod").ZodArray<import("zod").ZodObject<{
3400
+ id: import("zod").ZodString;
3401
+ content: import("zod").ZodString;
3402
+ status: import("zod").ZodDefault<import("zod").ZodEnum<["pending", "in_progress", "completed", "blocked"]>>;
3403
+ priority: import("zod").ZodEnum<["high", "medium", "low"]>;
3404
+ dependencies: import("zod").ZodOptional<import("zod").ZodArray<import("zod").ZodString, "many">>;
3405
+ notes: import("zod").ZodString;
3406
+ }, "strip", import("zod").ZodTypeAny, {
3407
+ status: "pending" | "in_progress" | "completed" | "blocked";
3408
+ id: string;
3409
+ content: string;
3410
+ priority: "high" | "medium" | "low";
3411
+ notes: string;
3412
+ dependencies?: string[] | undefined;
3413
+ }, {
3414
+ id: string;
3415
+ content: string;
3416
+ priority: "high" | "medium" | "low";
3417
+ notes: string;
3418
+ status?: "pending" | "in_progress" | "completed" | "blocked" | undefined;
3419
+ dependencies?: string[] | undefined;
3420
+ }>, "many">;
3421
+ message: import("zod").ZodString;
3422
+ error: import("zod").ZodOptional<import("zod").ZodString>;
3423
+ }, "strip", import("zod").ZodTypeAny, {
3424
+ message: string;
3425
+ success: boolean;
3426
+ tasks: {
3427
+ status: "pending" | "in_progress" | "completed" | "blocked";
3428
+ id: string;
3429
+ content: string;
3430
+ priority: "high" | "medium" | "low";
3431
+ notes: string;
3432
+ dependencies?: string[] | undefined;
3433
+ }[];
3434
+ error?: string | undefined;
3435
+ }, {
3436
+ message: string;
3437
+ success: boolean;
3438
+ tasks: {
3439
+ id: string;
3440
+ content: string;
3441
+ priority: "high" | "medium" | "low";
3442
+ notes: string;
3443
+ status?: "pending" | "in_progress" | "completed" | "blocked" | undefined;
3444
+ dependencies?: string[] | undefined;
3445
+ }[];
3446
+ error?: string | undefined;
3447
+ }>>;
3448
+ execution: import("zod").ZodOptional<import("zod").ZodObject<{
3449
+ success: import("zod").ZodBoolean;
3450
+ filesModified: import("zod").ZodArray<import("zod").ZodString, "many">;
3451
+ validationResults: import("zod").ZodObject<{
3452
+ passed: import("zod").ZodBoolean;
3453
+ errors: import("zod").ZodArray<import("zod").ZodString, "many">;
3454
+ warnings: import("zod").ZodArray<import("zod").ZodString, "many">;
3455
+ }, "strip", import("zod").ZodTypeAny, {
3456
+ errors: string[];
3457
+ warnings: string[];
3458
+ passed: boolean;
3459
+ }, {
3460
+ errors: string[];
3461
+ warnings: string[];
3462
+ passed: boolean;
3463
+ }>;
3464
+ completedTasks: import("zod").ZodArray<import("zod").ZodString, "many">;
3465
+ message: import("zod").ZodString;
3466
+ error: import("zod").ZodOptional<import("zod").ZodString>;
3467
+ }, "strip", import("zod").ZodTypeAny, {
3468
+ message: string;
3469
+ success: boolean;
3470
+ validationResults: {
3471
+ errors: string[];
3472
+ warnings: string[];
3473
+ passed: boolean;
3474
+ };
3475
+ completedTasks: string[];
3476
+ filesModified: string[];
3477
+ error?: string | undefined;
3478
+ }, {
3479
+ message: string;
3480
+ success: boolean;
3481
+ validationResults: {
3482
+ errors: string[];
3483
+ warnings: string[];
3484
+ passed: boolean;
3485
+ };
3486
+ completedTasks: string[];
3487
+ filesModified: string[];
3488
+ error?: string | undefined;
3489
+ }>>;
3490
+ needsUserInput: import("zod").ZodOptional<import("zod").ZodBoolean>;
3491
+ questions: import("zod").ZodOptional<import("zod").ZodArray<import("zod").ZodObject<{
3492
+ id: import("zod").ZodString;
3493
+ question: import("zod").ZodString;
3494
+ type: import("zod").ZodEnum<["choice", "text", "boolean"]>;
3495
+ options: import("zod").ZodOptional<import("zod").ZodArray<import("zod").ZodString, "many">>;
3496
+ context: import("zod").ZodOptional<import("zod").ZodString>;
3497
+ }, "strip", import("zod").ZodTypeAny, {
3498
+ type: "boolean" | "text" | "choice";
3499
+ id: string;
3500
+ question: string;
3501
+ options?: string[] | undefined;
3502
+ context?: string | undefined;
3503
+ }, {
3504
+ type: "boolean" | "text" | "choice";
3505
+ id: string;
3506
+ question: string;
3507
+ options?: string[] | undefined;
3508
+ context?: string | undefined;
3509
+ }>, "many">>;
3510
+ message: import("zod").ZodString;
3511
+ nextSteps: import("zod").ZodOptional<import("zod").ZodArray<import("zod").ZodString, "many">>;
3512
+ error: import("zod").ZodOptional<import("zod").ZodString>;
3513
+ }, "strip", import("zod").ZodTypeAny, {
3514
+ message: string;
3515
+ success: boolean;
3516
+ action: "create" | "edit";
3517
+ error?: string | undefined;
3518
+ nextSteps?: string[] | undefined;
3519
+ questions?: {
3520
+ type: "boolean" | "text" | "choice";
3521
+ id: string;
3522
+ question: string;
3523
+ options?: string[] | undefined;
3524
+ context?: string | undefined;
3525
+ }[] | undefined;
3526
+ workflowName?: string | undefined;
3527
+ projectStructure?: {
3528
+ message: string;
3529
+ success: boolean;
3530
+ dependencies: Record<string, string>;
3531
+ structure: {
3532
+ hasWorkflowsDir: boolean;
3533
+ hasAgentsDir: boolean;
3534
+ hasToolsDir: boolean;
3535
+ hasMastraIndex: boolean;
3536
+ existingWorkflows: string[];
3537
+ existingAgents: string[];
3538
+ existingTools: string[];
3539
+ };
3540
+ error?: string | undefined;
3541
+ } | undefined;
3542
+ research?: {
3543
+ message: string;
3544
+ success: boolean;
3545
+ documentation: {
3546
+ workflowPatterns: string[];
3547
+ stepExamples: string[];
3548
+ bestPractices: string[];
3549
+ };
3550
+ webResources: {
3551
+ url: string;
3552
+ relevance: number;
3553
+ title: string;
3554
+ snippet: string;
3555
+ }[];
3556
+ error?: string | undefined;
3557
+ } | undefined;
3558
+ workflowFile?: string | undefined;
3559
+ discovery?: {
3560
+ message: string;
3561
+ success: boolean;
3562
+ workflows: {
3563
+ file: string;
3564
+ name: string;
3565
+ description?: string | undefined;
3566
+ steps?: string[] | undefined;
3567
+ inputSchema?: any;
3568
+ outputSchema?: any;
3569
+ }[];
3570
+ mastraIndexExists: boolean;
3571
+ error?: string | undefined;
3572
+ } | undefined;
3573
+ planning?: {
3574
+ message: string;
3575
+ success: boolean;
3576
+ tasks: {
3577
+ status: "pending" | "in_progress" | "completed" | "blocked";
3578
+ id: string;
3579
+ content: string;
3580
+ priority: "high" | "medium" | "low";
3581
+ notes: string;
3582
+ dependencies?: string[] | undefined;
3583
+ }[];
3584
+ reasoning: string;
3585
+ questions: {
3586
+ type: "boolean" | "text" | "choice";
3587
+ id: string;
3588
+ question: string;
3589
+ options?: string[] | undefined;
3590
+ context?: string | undefined;
3591
+ }[];
3592
+ planComplete: boolean;
3593
+ error?: string | undefined;
3594
+ allPreviousQuestions?: any[] | undefined;
3595
+ allPreviousAnswers?: Record<string, string> | undefined;
3596
+ } | undefined;
3597
+ taskManagement?: {
3598
+ message: string;
3599
+ success: boolean;
3600
+ tasks: {
3601
+ status: "pending" | "in_progress" | "completed" | "blocked";
3602
+ id: string;
3603
+ content: string;
3604
+ priority: "high" | "medium" | "low";
3605
+ notes: string;
3606
+ dependencies?: string[] | undefined;
3607
+ }[];
3608
+ error?: string | undefined;
3609
+ } | undefined;
3610
+ execution?: {
3611
+ message: string;
3612
+ success: boolean;
3613
+ validationResults: {
3614
+ errors: string[];
3615
+ warnings: string[];
3616
+ passed: boolean;
3617
+ };
3618
+ completedTasks: string[];
3619
+ filesModified: string[];
3620
+ error?: string | undefined;
3621
+ } | undefined;
3622
+ needsUserInput?: boolean | undefined;
3623
+ }, {
3624
+ message: string;
3625
+ success: boolean;
3626
+ action: "create" | "edit";
3627
+ error?: string | undefined;
3628
+ nextSteps?: string[] | undefined;
3629
+ questions?: {
3630
+ type: "boolean" | "text" | "choice";
3631
+ id: string;
3632
+ question: string;
3633
+ options?: string[] | undefined;
3634
+ context?: string | undefined;
3635
+ }[] | undefined;
3636
+ workflowName?: string | undefined;
3637
+ projectStructure?: {
3638
+ message: string;
3639
+ success: boolean;
3640
+ dependencies: Record<string, string>;
3641
+ structure: {
3642
+ hasWorkflowsDir: boolean;
3643
+ hasAgentsDir: boolean;
3644
+ hasToolsDir: boolean;
3645
+ hasMastraIndex: boolean;
3646
+ existingWorkflows: string[];
3647
+ existingAgents: string[];
3648
+ existingTools: string[];
3649
+ };
3650
+ error?: string | undefined;
3651
+ } | undefined;
3652
+ research?: {
3653
+ message: string;
3654
+ success: boolean;
3655
+ documentation: {
3656
+ workflowPatterns: string[];
3657
+ stepExamples: string[];
3658
+ bestPractices: string[];
3659
+ };
3660
+ webResources: {
3661
+ url: string;
3662
+ relevance: number;
3663
+ title: string;
3664
+ snippet: string;
3665
+ }[];
3666
+ error?: string | undefined;
3667
+ } | undefined;
3668
+ workflowFile?: string | undefined;
3669
+ discovery?: {
3670
+ message: string;
3671
+ success: boolean;
3672
+ workflows: {
3673
+ file: string;
3674
+ name: string;
3675
+ description?: string | undefined;
3676
+ steps?: string[] | undefined;
3677
+ inputSchema?: any;
3678
+ outputSchema?: any;
3679
+ }[];
3680
+ mastraIndexExists: boolean;
3681
+ error?: string | undefined;
3682
+ } | undefined;
3683
+ planning?: {
3684
+ message: string;
3685
+ success: boolean;
3686
+ tasks: {
3687
+ id: string;
3688
+ content: string;
3689
+ priority: "high" | "medium" | "low";
3690
+ notes: string;
3691
+ status?: "pending" | "in_progress" | "completed" | "blocked" | undefined;
3692
+ dependencies?: string[] | undefined;
3693
+ }[];
3694
+ reasoning: string;
3695
+ questions: {
3696
+ type: "boolean" | "text" | "choice";
3697
+ id: string;
3698
+ question: string;
3699
+ options?: string[] | undefined;
3700
+ context?: string | undefined;
3701
+ }[];
3702
+ planComplete: boolean;
3703
+ error?: string | undefined;
3704
+ allPreviousQuestions?: any[] | undefined;
3705
+ allPreviousAnswers?: Record<string, string> | undefined;
3706
+ } | undefined;
3707
+ taskManagement?: {
3708
+ message: string;
3709
+ success: boolean;
3710
+ tasks: {
3711
+ id: string;
3712
+ content: string;
3713
+ priority: "high" | "medium" | "low";
3714
+ notes: string;
3715
+ status?: "pending" | "in_progress" | "completed" | "blocked" | undefined;
3716
+ dependencies?: string[] | undefined;
3717
+ }[];
3718
+ error?: string | undefined;
3719
+ } | undefined;
3720
+ execution?: {
3721
+ message: string;
3722
+ success: boolean;
3723
+ validationResults: {
3724
+ errors: string[];
3725
+ warnings: string[];
3726
+ passed: boolean;
3727
+ };
3728
+ completedTasks: string[];
3729
+ filesModified: string[];
3730
+ error?: string | undefined;
3731
+ } | undefined;
3732
+ needsUserInput?: boolean | undefined;
3733
+ }>>;
3734
+ };
3735
+ //# sourceMappingURL=workflow-map.d.ts.map