@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,1910 @@
1
+ import { z } from 'zod';
2
+ export declare const agentBuilderTemplateWorkflow: import("@mastra/core/workflows").Workflow<import("@mastra/core").DefaultEngineType, (import("@mastra/core").Step<"clone-template", z.ZodObject<{
3
+ repo: z.ZodString;
4
+ ref: z.ZodOptional<z.ZodString>;
5
+ slug: z.ZodOptional<z.ZodString>;
6
+ targetPath: z.ZodOptional<z.ZodString>;
7
+ }, "strip", z.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
+ }>, z.ZodObject<{
18
+ templateDir: z.ZodString;
19
+ commitSha: z.ZodString;
20
+ slug: z.ZodString;
21
+ success: z.ZodOptional<z.ZodBoolean>;
22
+ error: z.ZodOptional<z.ZodString>;
23
+ }, "strip", z.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
+ }>, z.ZodType<any, z.ZodTypeDef, any>, z.ZodType<any, z.ZodTypeDef, any>, import("@mastra/core").DefaultEngineType> | import("@mastra/core").Step<"analyze-package", z.ZodObject<{
36
+ templateDir: z.ZodString;
37
+ commitSha: z.ZodString;
38
+ slug: z.ZodString;
39
+ success: z.ZodOptional<z.ZodBoolean>;
40
+ error: z.ZodOptional<z.ZodString>;
41
+ }, "strip", z.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
+ }>, z.ZodObject<{
54
+ name: z.ZodOptional<z.ZodString>;
55
+ version: z.ZodOptional<z.ZodString>;
56
+ description: z.ZodOptional<z.ZodString>;
57
+ dependencies: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
58
+ devDependencies: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
59
+ peerDependencies: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
60
+ scripts: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
61
+ success: z.ZodOptional<z.ZodBoolean>;
62
+ error: z.ZodOptional<z.ZodString>;
63
+ }, "strip", z.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
+ }>, z.ZodType<any, z.ZodTypeDef, any>, z.ZodType<any, z.ZodTypeDef, any>, import("@mastra/core").DefaultEngineType> | import("@mastra/core").Step<"discover-units", z.ZodObject<{
84
+ templateDir: z.ZodString;
85
+ commitSha: z.ZodString;
86
+ slug: z.ZodString;
87
+ success: z.ZodOptional<z.ZodBoolean>;
88
+ error: z.ZodOptional<z.ZodString>;
89
+ }, "strip", z.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
+ }>, z.ZodObject<{
102
+ units: z.ZodArray<z.ZodObject<{
103
+ kind: z.ZodEnum<["mcp-server", "tool", "workflow", "agent", "integration", "network", "other"]>;
104
+ id: z.ZodString;
105
+ file: z.ZodString;
106
+ }, "strip", z.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: z.ZodOptional<z.ZodBoolean>;
116
+ error: z.ZodOptional<z.ZodString>;
117
+ }, "strip", z.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
+ }>, z.ZodType<any, z.ZodTypeDef, any>, z.ZodType<any, z.ZodTypeDef, any>, import("@mastra/core").DefaultEngineType> | import("@mastra/core").Step<"order-units", z.ZodObject<{
134
+ units: z.ZodArray<z.ZodObject<{
135
+ kind: z.ZodEnum<["mcp-server", "tool", "workflow", "agent", "integration", "network", "other"]>;
136
+ id: z.ZodString;
137
+ file: z.ZodString;
138
+ }, "strip", z.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: z.ZodOptional<z.ZodBoolean>;
148
+ error: z.ZodOptional<z.ZodString>;
149
+ }, "strip", z.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
+ }>, z.ZodObject<{
166
+ orderedUnits: z.ZodArray<z.ZodObject<{
167
+ kind: z.ZodEnum<["mcp-server", "tool", "workflow", "agent", "integration", "network", "other"]>;
168
+ id: z.ZodString;
169
+ file: z.ZodString;
170
+ }, "strip", z.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: z.ZodOptional<z.ZodBoolean>;
180
+ error: z.ZodOptional<z.ZodString>;
181
+ }, "strip", z.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
+ }>, z.ZodType<any, z.ZodTypeDef, any>, z.ZodType<any, z.ZodTypeDef, any>, import("@mastra/core").DefaultEngineType> | import("@mastra/core").Step<"package-merge", z.ZodObject<{
198
+ commitSha: z.ZodString;
199
+ slug: z.ZodString;
200
+ targetPath: z.ZodOptional<z.ZodString>;
201
+ packageInfo: z.ZodObject<{
202
+ name: z.ZodOptional<z.ZodString>;
203
+ version: z.ZodOptional<z.ZodString>;
204
+ description: z.ZodOptional<z.ZodString>;
205
+ dependencies: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
206
+ devDependencies: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
207
+ peerDependencies: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
208
+ scripts: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
209
+ success: z.ZodOptional<z.ZodBoolean>;
210
+ error: z.ZodOptional<z.ZodString>;
211
+ }, "strip", z.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", z.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
+ }>, z.ZodObject<{
263
+ success: z.ZodBoolean;
264
+ applied: z.ZodBoolean;
265
+ message: z.ZodString;
266
+ error: z.ZodOptional<z.ZodString>;
267
+ }, "strip", z.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
+ }>, z.ZodType<any, z.ZodTypeDef, any>, z.ZodType<any, z.ZodTypeDef, any>, import("@mastra/core").DefaultEngineType> | import("@mastra/core").Step<"install", z.ZodObject<{
278
+ targetPath: z.ZodString;
279
+ }, "strip", z.ZodTypeAny, {
280
+ targetPath: string;
281
+ }, {
282
+ targetPath: string;
283
+ }>, z.ZodObject<{
284
+ success: z.ZodBoolean;
285
+ error: z.ZodOptional<z.ZodString>;
286
+ }, "strip", z.ZodTypeAny, {
287
+ success: boolean;
288
+ error?: string | undefined;
289
+ }, {
290
+ success: boolean;
291
+ error?: string | undefined;
292
+ }>, z.ZodType<any, z.ZodTypeDef, any>, z.ZodType<any, z.ZodTypeDef, any>, import("@mastra/core").DefaultEngineType> | import("@mastra/core").Step<"programmatic-file-copy", z.ZodObject<{
293
+ orderedUnits: z.ZodArray<z.ZodObject<{
294
+ kind: z.ZodEnum<["mcp-server", "tool", "workflow", "agent", "integration", "network", "other"]>;
295
+ id: z.ZodString;
296
+ file: z.ZodString;
297
+ }, "strip", z.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: z.ZodString;
307
+ commitSha: z.ZodString;
308
+ slug: z.ZodString;
309
+ targetPath: z.ZodOptional<z.ZodString>;
310
+ }, "strip", z.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
+ }>, z.ZodObject<{
331
+ success: z.ZodBoolean;
332
+ copiedFiles: z.ZodArray<z.ZodObject<{
333
+ source: z.ZodString;
334
+ destination: z.ZodString;
335
+ unit: z.ZodObject<{
336
+ kind: z.ZodEnum<["mcp-server", "tool", "workflow", "agent", "integration", "network", "other"]>;
337
+ id: z.ZodString;
338
+ }, "strip", z.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", z.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: z.ZodArray<z.ZodObject<{
361
+ unit: z.ZodObject<{
362
+ kind: z.ZodEnum<["mcp-server", "tool", "workflow", "agent", "integration", "network", "other"]>;
363
+ id: z.ZodString;
364
+ }, "strip", z.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: z.ZodString;
372
+ sourceFile: z.ZodString;
373
+ targetFile: z.ZodString;
374
+ }, "strip", z.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: z.ZodString;
392
+ error: z.ZodOptional<z.ZodString>;
393
+ }, "strip", z.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
+ }>, z.ZodType<any, z.ZodTypeDef, any>, z.ZodType<any, z.ZodTypeDef, any>, import("@mastra/core").DefaultEngineType> | import("@mastra/core").Step<"intelligent-merge", z.ZodObject<{
436
+ conflicts: z.ZodArray<z.ZodObject<{
437
+ unit: z.ZodObject<{
438
+ kind: z.ZodEnum<["mcp-server", "tool", "workflow", "agent", "integration", "network", "other"]>;
439
+ id: z.ZodString;
440
+ }, "strip", z.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: z.ZodString;
448
+ sourceFile: z.ZodString;
449
+ targetFile: z.ZodString;
450
+ }, "strip", z.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: z.ZodArray<z.ZodObject<{
468
+ source: z.ZodString;
469
+ destination: z.ZodString;
470
+ unit: z.ZodObject<{
471
+ kind: z.ZodEnum<["mcp-server", "tool", "workflow", "agent", "integration", "network", "other"]>;
472
+ id: z.ZodString;
473
+ }, "strip", z.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", z.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: z.ZodString;
496
+ commitSha: z.ZodString;
497
+ slug: z.ZodString;
498
+ targetPath: z.ZodOptional<z.ZodString>;
499
+ branchName: z.ZodOptional<z.ZodString>;
500
+ }, "strip", z.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
+ }>, z.ZodObject<{
547
+ success: z.ZodBoolean;
548
+ applied: z.ZodBoolean;
549
+ message: z.ZodString;
550
+ conflictsResolved: z.ZodArray<z.ZodObject<{
551
+ unit: z.ZodObject<{
552
+ kind: z.ZodEnum<["mcp-server", "tool", "workflow", "agent", "integration", "network", "other"]>;
553
+ id: z.ZodString;
554
+ }, "strip", z.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: z.ZodString;
562
+ resolution: z.ZodString;
563
+ }, "strip", z.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: z.ZodOptional<z.ZodString>;
579
+ }, "strip", z.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
+ }>, z.ZodType<any, z.ZodTypeDef, any>, z.ZodType<any, z.ZodTypeDef, any>, import("@mastra/core").DefaultEngineType> | import("@mastra/core").Step<"validation-and-fix", z.ZodObject<{
606
+ commitSha: z.ZodString;
607
+ slug: z.ZodString;
608
+ targetPath: z.ZodOptional<z.ZodString>;
609
+ templateDir: z.ZodString;
610
+ orderedUnits: z.ZodArray<z.ZodObject<{
611
+ kind: z.ZodEnum<["mcp-server", "tool", "workflow", "agent", "integration", "network", "other"]>;
612
+ id: z.ZodString;
613
+ file: z.ZodString;
614
+ }, "strip", z.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: z.ZodArray<z.ZodObject<{
624
+ source: z.ZodString;
625
+ destination: z.ZodString;
626
+ unit: z.ZodObject<{
627
+ kind: z.ZodEnum<["mcp-server", "tool", "workflow", "agent", "integration", "network", "other"]>;
628
+ id: z.ZodString;
629
+ }, "strip", z.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", z.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: z.ZodOptional<z.ZodArray<z.ZodObject<{
652
+ unit: z.ZodObject<{
653
+ kind: z.ZodEnum<["mcp-server", "tool", "workflow", "agent", "integration", "network", "other"]>;
654
+ id: z.ZodString;
655
+ }, "strip", z.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: z.ZodString;
663
+ resolution: z.ZodString;
664
+ }, "strip", z.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: z.ZodDefault<z.ZodOptional<z.ZodNumber>>;
680
+ }, "strip", z.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
+ }>, z.ZodObject<{
735
+ success: z.ZodBoolean;
736
+ applied: z.ZodBoolean;
737
+ message: z.ZodString;
738
+ validationResults: z.ZodObject<{
739
+ valid: z.ZodBoolean;
740
+ errorsFixed: z.ZodNumber;
741
+ remainingErrors: z.ZodNumber;
742
+ }, "strip", z.ZodTypeAny, {
743
+ valid: boolean;
744
+ errorsFixed: number;
745
+ remainingErrors: number;
746
+ }, {
747
+ valid: boolean;
748
+ errorsFixed: number;
749
+ remainingErrors: number;
750
+ }>;
751
+ error: z.ZodOptional<z.ZodString>;
752
+ }, "strip", z.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
+ }>, z.ZodType<any, z.ZodTypeDef, any>, z.ZodType<any, z.ZodTypeDef, any>, import("@mastra/core").DefaultEngineType>)[], "agent-builder-template", z.ZodObject<{
773
+ repo: z.ZodString;
774
+ ref: z.ZodOptional<z.ZodString>;
775
+ slug: z.ZodOptional<z.ZodString>;
776
+ targetPath: z.ZodOptional<z.ZodString>;
777
+ }, "strip", z.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
+ }>, z.ZodObject<{
788
+ success: z.ZodBoolean;
789
+ applied: z.ZodBoolean;
790
+ branchName: z.ZodOptional<z.ZodString>;
791
+ message: z.ZodString;
792
+ validationResults: z.ZodOptional<z.ZodObject<{
793
+ valid: z.ZodBoolean;
794
+ errorsFixed: z.ZodNumber;
795
+ remainingErrors: z.ZodNumber;
796
+ }, "strip", z.ZodTypeAny, {
797
+ valid: boolean;
798
+ errorsFixed: number;
799
+ remainingErrors: number;
800
+ }, {
801
+ valid: boolean;
802
+ errorsFixed: number;
803
+ remainingErrors: number;
804
+ }>>;
805
+ error: z.ZodOptional<z.ZodString>;
806
+ errors: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
807
+ stepResults: z.ZodOptional<z.ZodObject<{
808
+ cloneSuccess: z.ZodOptional<z.ZodBoolean>;
809
+ analyzeSuccess: z.ZodOptional<z.ZodBoolean>;
810
+ discoverSuccess: z.ZodOptional<z.ZodBoolean>;
811
+ orderSuccess: z.ZodOptional<z.ZodBoolean>;
812
+ prepareBranchSuccess: z.ZodOptional<z.ZodBoolean>;
813
+ packageMergeSuccess: z.ZodOptional<z.ZodBoolean>;
814
+ installSuccess: z.ZodOptional<z.ZodBoolean>;
815
+ copySuccess: z.ZodOptional<z.ZodBoolean>;
816
+ mergeSuccess: z.ZodOptional<z.ZodBoolean>;
817
+ validationSuccess: z.ZodOptional<z.ZodBoolean>;
818
+ filesCopied: z.ZodNumber;
819
+ conflictsSkipped: z.ZodNumber;
820
+ conflictsResolved: z.ZodNumber;
821
+ }, "strip", z.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", z.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
+ }>, z.ZodObject<{
905
+ success: z.ZodBoolean;
906
+ applied: z.ZodBoolean;
907
+ branchName: z.ZodOptional<z.ZodString>;
908
+ message: z.ZodString;
909
+ validationResults: z.ZodOptional<z.ZodObject<{
910
+ valid: z.ZodBoolean;
911
+ errorsFixed: z.ZodNumber;
912
+ remainingErrors: z.ZodNumber;
913
+ }, "strip", z.ZodTypeAny, {
914
+ valid: boolean;
915
+ errorsFixed: number;
916
+ remainingErrors: number;
917
+ }, {
918
+ valid: boolean;
919
+ errorsFixed: number;
920
+ remainingErrors: number;
921
+ }>>;
922
+ error: z.ZodOptional<z.ZodString>;
923
+ errors: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
924
+ stepResults: z.ZodOptional<z.ZodObject<{
925
+ cloneSuccess: z.ZodOptional<z.ZodBoolean>;
926
+ analyzeSuccess: z.ZodOptional<z.ZodBoolean>;
927
+ discoverSuccess: z.ZodOptional<z.ZodBoolean>;
928
+ orderSuccess: z.ZodOptional<z.ZodBoolean>;
929
+ prepareBranchSuccess: z.ZodOptional<z.ZodBoolean>;
930
+ packageMergeSuccess: z.ZodOptional<z.ZodBoolean>;
931
+ installSuccess: z.ZodOptional<z.ZodBoolean>;
932
+ copySuccess: z.ZodOptional<z.ZodBoolean>;
933
+ mergeSuccess: z.ZodOptional<z.ZodBoolean>;
934
+ validationSuccess: z.ZodOptional<z.ZodBoolean>;
935
+ filesCopied: z.ZodNumber;
936
+ conflictsSkipped: z.ZodNumber;
937
+ conflictsResolved: z.ZodNumber;
938
+ }, "strip", z.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", z.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
+ export declare function mergeTemplateBySlug(slug: string, targetPath?: string): Promise<import("@mastra/core").WorkflowResult<z.ZodObject<{
1023
+ success: z.ZodBoolean;
1024
+ applied: z.ZodBoolean;
1025
+ branchName: z.ZodOptional<z.ZodString>;
1026
+ message: z.ZodString;
1027
+ validationResults: z.ZodOptional<z.ZodObject<{
1028
+ valid: z.ZodBoolean;
1029
+ errorsFixed: z.ZodNumber;
1030
+ remainingErrors: z.ZodNumber;
1031
+ }, "strip", z.ZodTypeAny, {
1032
+ valid: boolean;
1033
+ errorsFixed: number;
1034
+ remainingErrors: number;
1035
+ }, {
1036
+ valid: boolean;
1037
+ errorsFixed: number;
1038
+ remainingErrors: number;
1039
+ }>>;
1040
+ error: z.ZodOptional<z.ZodString>;
1041
+ errors: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
1042
+ stepResults: z.ZodOptional<z.ZodObject<{
1043
+ cloneSuccess: z.ZodOptional<z.ZodBoolean>;
1044
+ analyzeSuccess: z.ZodOptional<z.ZodBoolean>;
1045
+ discoverSuccess: z.ZodOptional<z.ZodBoolean>;
1046
+ orderSuccess: z.ZodOptional<z.ZodBoolean>;
1047
+ prepareBranchSuccess: z.ZodOptional<z.ZodBoolean>;
1048
+ packageMergeSuccess: z.ZodOptional<z.ZodBoolean>;
1049
+ installSuccess: z.ZodOptional<z.ZodBoolean>;
1050
+ copySuccess: z.ZodOptional<z.ZodBoolean>;
1051
+ mergeSuccess: z.ZodOptional<z.ZodBoolean>;
1052
+ validationSuccess: z.ZodOptional<z.ZodBoolean>;
1053
+ filesCopied: z.ZodNumber;
1054
+ conflictsSkipped: z.ZodNumber;
1055
+ conflictsResolved: z.ZodNumber;
1056
+ }, "strip", z.ZodTypeAny, {
1057
+ conflictsResolved: number;
1058
+ filesCopied: number;
1059
+ conflictsSkipped: number;
1060
+ cloneSuccess?: boolean | undefined;
1061
+ analyzeSuccess?: boolean | undefined;
1062
+ discoverSuccess?: boolean | undefined;
1063
+ orderSuccess?: boolean | undefined;
1064
+ prepareBranchSuccess?: boolean | undefined;
1065
+ packageMergeSuccess?: boolean | undefined;
1066
+ installSuccess?: boolean | undefined;
1067
+ copySuccess?: boolean | undefined;
1068
+ mergeSuccess?: boolean | undefined;
1069
+ validationSuccess?: boolean | undefined;
1070
+ }, {
1071
+ conflictsResolved: number;
1072
+ filesCopied: number;
1073
+ conflictsSkipped: number;
1074
+ cloneSuccess?: boolean | undefined;
1075
+ analyzeSuccess?: boolean | undefined;
1076
+ discoverSuccess?: boolean | undefined;
1077
+ orderSuccess?: boolean | undefined;
1078
+ prepareBranchSuccess?: boolean | undefined;
1079
+ packageMergeSuccess?: boolean | undefined;
1080
+ installSuccess?: boolean | undefined;
1081
+ copySuccess?: boolean | undefined;
1082
+ mergeSuccess?: boolean | undefined;
1083
+ validationSuccess?: boolean | undefined;
1084
+ }>>;
1085
+ }, "strip", z.ZodTypeAny, {
1086
+ message: string;
1087
+ success: boolean;
1088
+ applied: boolean;
1089
+ error?: string | undefined;
1090
+ branchName?: string | undefined;
1091
+ validationResults?: {
1092
+ valid: boolean;
1093
+ errorsFixed: number;
1094
+ remainingErrors: number;
1095
+ } | undefined;
1096
+ errors?: string[] | undefined;
1097
+ stepResults?: {
1098
+ conflictsResolved: number;
1099
+ filesCopied: number;
1100
+ conflictsSkipped: number;
1101
+ cloneSuccess?: boolean | undefined;
1102
+ analyzeSuccess?: boolean | undefined;
1103
+ discoverSuccess?: boolean | undefined;
1104
+ orderSuccess?: boolean | undefined;
1105
+ prepareBranchSuccess?: boolean | undefined;
1106
+ packageMergeSuccess?: boolean | undefined;
1107
+ installSuccess?: boolean | undefined;
1108
+ copySuccess?: boolean | undefined;
1109
+ mergeSuccess?: boolean | undefined;
1110
+ validationSuccess?: boolean | undefined;
1111
+ } | undefined;
1112
+ }, {
1113
+ message: string;
1114
+ success: boolean;
1115
+ applied: boolean;
1116
+ error?: string | undefined;
1117
+ branchName?: string | undefined;
1118
+ validationResults?: {
1119
+ valid: boolean;
1120
+ errorsFixed: number;
1121
+ remainingErrors: number;
1122
+ } | undefined;
1123
+ errors?: string[] | undefined;
1124
+ stepResults?: {
1125
+ conflictsResolved: number;
1126
+ filesCopied: number;
1127
+ conflictsSkipped: number;
1128
+ cloneSuccess?: boolean | undefined;
1129
+ analyzeSuccess?: boolean | undefined;
1130
+ discoverSuccess?: boolean | undefined;
1131
+ orderSuccess?: boolean | undefined;
1132
+ prepareBranchSuccess?: boolean | undefined;
1133
+ packageMergeSuccess?: boolean | undefined;
1134
+ installSuccess?: boolean | undefined;
1135
+ copySuccess?: boolean | undefined;
1136
+ mergeSuccess?: boolean | undefined;
1137
+ validationSuccess?: boolean | undefined;
1138
+ } | undefined;
1139
+ }>, (import("@mastra/core").Step<"clone-template", z.ZodObject<{
1140
+ repo: z.ZodString;
1141
+ ref: z.ZodOptional<z.ZodString>;
1142
+ slug: z.ZodOptional<z.ZodString>;
1143
+ targetPath: z.ZodOptional<z.ZodString>;
1144
+ }, "strip", z.ZodTypeAny, {
1145
+ repo: string;
1146
+ slug?: string | undefined;
1147
+ ref?: string | undefined;
1148
+ targetPath?: string | undefined;
1149
+ }, {
1150
+ repo: string;
1151
+ slug?: string | undefined;
1152
+ ref?: string | undefined;
1153
+ targetPath?: string | undefined;
1154
+ }>, z.ZodObject<{
1155
+ templateDir: z.ZodString;
1156
+ commitSha: z.ZodString;
1157
+ slug: z.ZodString;
1158
+ success: z.ZodOptional<z.ZodBoolean>;
1159
+ error: z.ZodOptional<z.ZodString>;
1160
+ }, "strip", z.ZodTypeAny, {
1161
+ slug: string;
1162
+ commitSha: string;
1163
+ templateDir: string;
1164
+ success?: boolean | undefined;
1165
+ error?: string | undefined;
1166
+ }, {
1167
+ slug: string;
1168
+ commitSha: string;
1169
+ templateDir: string;
1170
+ success?: boolean | undefined;
1171
+ error?: string | undefined;
1172
+ }>, z.ZodType<any, z.ZodTypeDef, any>, z.ZodType<any, z.ZodTypeDef, any>, import("@mastra/core").DefaultEngineType> | import("@mastra/core").Step<"analyze-package", z.ZodObject<{
1173
+ templateDir: z.ZodString;
1174
+ commitSha: z.ZodString;
1175
+ slug: z.ZodString;
1176
+ success: z.ZodOptional<z.ZodBoolean>;
1177
+ error: z.ZodOptional<z.ZodString>;
1178
+ }, "strip", z.ZodTypeAny, {
1179
+ slug: string;
1180
+ commitSha: string;
1181
+ templateDir: string;
1182
+ success?: boolean | undefined;
1183
+ error?: string | undefined;
1184
+ }, {
1185
+ slug: string;
1186
+ commitSha: string;
1187
+ templateDir: string;
1188
+ success?: boolean | undefined;
1189
+ error?: string | undefined;
1190
+ }>, z.ZodObject<{
1191
+ name: z.ZodOptional<z.ZodString>;
1192
+ version: z.ZodOptional<z.ZodString>;
1193
+ description: z.ZodOptional<z.ZodString>;
1194
+ dependencies: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
1195
+ devDependencies: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
1196
+ peerDependencies: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
1197
+ scripts: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
1198
+ success: z.ZodOptional<z.ZodBoolean>;
1199
+ error: z.ZodOptional<z.ZodString>;
1200
+ }, "strip", z.ZodTypeAny, {
1201
+ description?: string | undefined;
1202
+ success?: boolean | undefined;
1203
+ error?: string | undefined;
1204
+ name?: string | undefined;
1205
+ version?: string | undefined;
1206
+ dependencies?: Record<string, string> | undefined;
1207
+ devDependencies?: Record<string, string> | undefined;
1208
+ peerDependencies?: Record<string, string> | undefined;
1209
+ scripts?: Record<string, string> | undefined;
1210
+ }, {
1211
+ description?: string | undefined;
1212
+ success?: boolean | undefined;
1213
+ error?: string | undefined;
1214
+ name?: string | undefined;
1215
+ version?: string | undefined;
1216
+ dependencies?: Record<string, string> | undefined;
1217
+ devDependencies?: Record<string, string> | undefined;
1218
+ peerDependencies?: Record<string, string> | undefined;
1219
+ scripts?: Record<string, string> | undefined;
1220
+ }>, z.ZodType<any, z.ZodTypeDef, any>, z.ZodType<any, z.ZodTypeDef, any>, import("@mastra/core").DefaultEngineType> | import("@mastra/core").Step<"discover-units", z.ZodObject<{
1221
+ templateDir: z.ZodString;
1222
+ commitSha: z.ZodString;
1223
+ slug: z.ZodString;
1224
+ success: z.ZodOptional<z.ZodBoolean>;
1225
+ error: z.ZodOptional<z.ZodString>;
1226
+ }, "strip", z.ZodTypeAny, {
1227
+ slug: string;
1228
+ commitSha: string;
1229
+ templateDir: string;
1230
+ success?: boolean | undefined;
1231
+ error?: string | undefined;
1232
+ }, {
1233
+ slug: string;
1234
+ commitSha: string;
1235
+ templateDir: string;
1236
+ success?: boolean | undefined;
1237
+ error?: string | undefined;
1238
+ }>, z.ZodObject<{
1239
+ units: z.ZodArray<z.ZodObject<{
1240
+ kind: z.ZodEnum<["mcp-server", "tool", "workflow", "agent", "integration", "network", "other"]>;
1241
+ id: z.ZodString;
1242
+ file: z.ZodString;
1243
+ }, "strip", z.ZodTypeAny, {
1244
+ kind: "integration" | "mcp-server" | "tool" | "workflow" | "agent" | "network" | "other";
1245
+ id: string;
1246
+ file: string;
1247
+ }, {
1248
+ kind: "integration" | "mcp-server" | "tool" | "workflow" | "agent" | "network" | "other";
1249
+ id: string;
1250
+ file: string;
1251
+ }>, "many">;
1252
+ success: z.ZodOptional<z.ZodBoolean>;
1253
+ error: z.ZodOptional<z.ZodString>;
1254
+ }, "strip", z.ZodTypeAny, {
1255
+ units: {
1256
+ kind: "integration" | "mcp-server" | "tool" | "workflow" | "agent" | "network" | "other";
1257
+ id: string;
1258
+ file: string;
1259
+ }[];
1260
+ success?: boolean | undefined;
1261
+ error?: string | undefined;
1262
+ }, {
1263
+ units: {
1264
+ kind: "integration" | "mcp-server" | "tool" | "workflow" | "agent" | "network" | "other";
1265
+ id: string;
1266
+ file: string;
1267
+ }[];
1268
+ success?: boolean | undefined;
1269
+ error?: string | undefined;
1270
+ }>, z.ZodType<any, z.ZodTypeDef, any>, z.ZodType<any, z.ZodTypeDef, any>, import("@mastra/core").DefaultEngineType> | import("@mastra/core").Step<"order-units", z.ZodObject<{
1271
+ units: z.ZodArray<z.ZodObject<{
1272
+ kind: z.ZodEnum<["mcp-server", "tool", "workflow", "agent", "integration", "network", "other"]>;
1273
+ id: z.ZodString;
1274
+ file: z.ZodString;
1275
+ }, "strip", z.ZodTypeAny, {
1276
+ kind: "integration" | "mcp-server" | "tool" | "workflow" | "agent" | "network" | "other";
1277
+ id: string;
1278
+ file: string;
1279
+ }, {
1280
+ kind: "integration" | "mcp-server" | "tool" | "workflow" | "agent" | "network" | "other";
1281
+ id: string;
1282
+ file: string;
1283
+ }>, "many">;
1284
+ success: z.ZodOptional<z.ZodBoolean>;
1285
+ error: z.ZodOptional<z.ZodString>;
1286
+ }, "strip", z.ZodTypeAny, {
1287
+ units: {
1288
+ kind: "integration" | "mcp-server" | "tool" | "workflow" | "agent" | "network" | "other";
1289
+ id: string;
1290
+ file: string;
1291
+ }[];
1292
+ success?: boolean | undefined;
1293
+ error?: string | undefined;
1294
+ }, {
1295
+ units: {
1296
+ kind: "integration" | "mcp-server" | "tool" | "workflow" | "agent" | "network" | "other";
1297
+ id: string;
1298
+ file: string;
1299
+ }[];
1300
+ success?: boolean | undefined;
1301
+ error?: string | undefined;
1302
+ }>, z.ZodObject<{
1303
+ orderedUnits: z.ZodArray<z.ZodObject<{
1304
+ kind: z.ZodEnum<["mcp-server", "tool", "workflow", "agent", "integration", "network", "other"]>;
1305
+ id: z.ZodString;
1306
+ file: z.ZodString;
1307
+ }, "strip", z.ZodTypeAny, {
1308
+ kind: "integration" | "mcp-server" | "tool" | "workflow" | "agent" | "network" | "other";
1309
+ id: string;
1310
+ file: string;
1311
+ }, {
1312
+ kind: "integration" | "mcp-server" | "tool" | "workflow" | "agent" | "network" | "other";
1313
+ id: string;
1314
+ file: string;
1315
+ }>, "many">;
1316
+ success: z.ZodOptional<z.ZodBoolean>;
1317
+ error: z.ZodOptional<z.ZodString>;
1318
+ }, "strip", z.ZodTypeAny, {
1319
+ orderedUnits: {
1320
+ kind: "integration" | "mcp-server" | "tool" | "workflow" | "agent" | "network" | "other";
1321
+ id: string;
1322
+ file: string;
1323
+ }[];
1324
+ success?: boolean | undefined;
1325
+ error?: string | undefined;
1326
+ }, {
1327
+ orderedUnits: {
1328
+ kind: "integration" | "mcp-server" | "tool" | "workflow" | "agent" | "network" | "other";
1329
+ id: string;
1330
+ file: string;
1331
+ }[];
1332
+ success?: boolean | undefined;
1333
+ error?: string | undefined;
1334
+ }>, z.ZodType<any, z.ZodTypeDef, any>, z.ZodType<any, z.ZodTypeDef, any>, import("@mastra/core").DefaultEngineType> | import("@mastra/core").Step<"package-merge", z.ZodObject<{
1335
+ commitSha: z.ZodString;
1336
+ slug: z.ZodString;
1337
+ targetPath: z.ZodOptional<z.ZodString>;
1338
+ packageInfo: z.ZodObject<{
1339
+ name: z.ZodOptional<z.ZodString>;
1340
+ version: z.ZodOptional<z.ZodString>;
1341
+ description: z.ZodOptional<z.ZodString>;
1342
+ dependencies: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
1343
+ devDependencies: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
1344
+ peerDependencies: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
1345
+ scripts: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
1346
+ success: z.ZodOptional<z.ZodBoolean>;
1347
+ error: z.ZodOptional<z.ZodString>;
1348
+ }, "strip", z.ZodTypeAny, {
1349
+ description?: string | undefined;
1350
+ success?: boolean | undefined;
1351
+ error?: string | undefined;
1352
+ name?: string | undefined;
1353
+ version?: string | undefined;
1354
+ dependencies?: Record<string, string> | undefined;
1355
+ devDependencies?: Record<string, string> | undefined;
1356
+ peerDependencies?: Record<string, string> | undefined;
1357
+ scripts?: Record<string, string> | undefined;
1358
+ }, {
1359
+ description?: string | undefined;
1360
+ success?: boolean | undefined;
1361
+ error?: string | undefined;
1362
+ name?: string | undefined;
1363
+ version?: string | undefined;
1364
+ dependencies?: Record<string, string> | undefined;
1365
+ devDependencies?: Record<string, string> | undefined;
1366
+ peerDependencies?: Record<string, string> | undefined;
1367
+ scripts?: Record<string, string> | undefined;
1368
+ }>;
1369
+ }, "strip", z.ZodTypeAny, {
1370
+ slug: string;
1371
+ commitSha: string;
1372
+ packageInfo: {
1373
+ description?: string | undefined;
1374
+ success?: boolean | undefined;
1375
+ error?: string | undefined;
1376
+ name?: string | undefined;
1377
+ version?: string | undefined;
1378
+ dependencies?: Record<string, string> | undefined;
1379
+ devDependencies?: Record<string, string> | undefined;
1380
+ peerDependencies?: Record<string, string> | undefined;
1381
+ scripts?: Record<string, string> | undefined;
1382
+ };
1383
+ targetPath?: string | undefined;
1384
+ }, {
1385
+ slug: string;
1386
+ commitSha: string;
1387
+ packageInfo: {
1388
+ description?: string | undefined;
1389
+ success?: boolean | undefined;
1390
+ error?: string | undefined;
1391
+ name?: string | undefined;
1392
+ version?: string | undefined;
1393
+ dependencies?: Record<string, string> | undefined;
1394
+ devDependencies?: Record<string, string> | undefined;
1395
+ peerDependencies?: Record<string, string> | undefined;
1396
+ scripts?: Record<string, string> | undefined;
1397
+ };
1398
+ targetPath?: string | undefined;
1399
+ }>, z.ZodObject<{
1400
+ success: z.ZodBoolean;
1401
+ applied: z.ZodBoolean;
1402
+ message: z.ZodString;
1403
+ error: z.ZodOptional<z.ZodString>;
1404
+ }, "strip", z.ZodTypeAny, {
1405
+ message: string;
1406
+ success: boolean;
1407
+ applied: boolean;
1408
+ error?: string | undefined;
1409
+ }, {
1410
+ message: string;
1411
+ success: boolean;
1412
+ applied: boolean;
1413
+ error?: string | undefined;
1414
+ }>, z.ZodType<any, z.ZodTypeDef, any>, z.ZodType<any, z.ZodTypeDef, any>, import("@mastra/core").DefaultEngineType> | import("@mastra/core").Step<"install", z.ZodObject<{
1415
+ targetPath: z.ZodString;
1416
+ }, "strip", z.ZodTypeAny, {
1417
+ targetPath: string;
1418
+ }, {
1419
+ targetPath: string;
1420
+ }>, z.ZodObject<{
1421
+ success: z.ZodBoolean;
1422
+ error: z.ZodOptional<z.ZodString>;
1423
+ }, "strip", z.ZodTypeAny, {
1424
+ success: boolean;
1425
+ error?: string | undefined;
1426
+ }, {
1427
+ success: boolean;
1428
+ error?: string | undefined;
1429
+ }>, z.ZodType<any, z.ZodTypeDef, any>, z.ZodType<any, z.ZodTypeDef, any>, import("@mastra/core").DefaultEngineType> | import("@mastra/core").Step<"programmatic-file-copy", z.ZodObject<{
1430
+ orderedUnits: z.ZodArray<z.ZodObject<{
1431
+ kind: z.ZodEnum<["mcp-server", "tool", "workflow", "agent", "integration", "network", "other"]>;
1432
+ id: z.ZodString;
1433
+ file: z.ZodString;
1434
+ }, "strip", z.ZodTypeAny, {
1435
+ kind: "integration" | "mcp-server" | "tool" | "workflow" | "agent" | "network" | "other";
1436
+ id: string;
1437
+ file: string;
1438
+ }, {
1439
+ kind: "integration" | "mcp-server" | "tool" | "workflow" | "agent" | "network" | "other";
1440
+ id: string;
1441
+ file: string;
1442
+ }>, "many">;
1443
+ templateDir: z.ZodString;
1444
+ commitSha: z.ZodString;
1445
+ slug: z.ZodString;
1446
+ targetPath: z.ZodOptional<z.ZodString>;
1447
+ }, "strip", z.ZodTypeAny, {
1448
+ slug: string;
1449
+ commitSha: string;
1450
+ templateDir: string;
1451
+ orderedUnits: {
1452
+ kind: "integration" | "mcp-server" | "tool" | "workflow" | "agent" | "network" | "other";
1453
+ id: string;
1454
+ file: string;
1455
+ }[];
1456
+ targetPath?: string | undefined;
1457
+ }, {
1458
+ slug: string;
1459
+ commitSha: string;
1460
+ templateDir: string;
1461
+ orderedUnits: {
1462
+ kind: "integration" | "mcp-server" | "tool" | "workflow" | "agent" | "network" | "other";
1463
+ id: string;
1464
+ file: string;
1465
+ }[];
1466
+ targetPath?: string | undefined;
1467
+ }>, z.ZodObject<{
1468
+ success: z.ZodBoolean;
1469
+ copiedFiles: z.ZodArray<z.ZodObject<{
1470
+ source: z.ZodString;
1471
+ destination: z.ZodString;
1472
+ unit: z.ZodObject<{
1473
+ kind: z.ZodEnum<["mcp-server", "tool", "workflow", "agent", "integration", "network", "other"]>;
1474
+ id: z.ZodString;
1475
+ }, "strip", z.ZodTypeAny, {
1476
+ kind: "integration" | "mcp-server" | "tool" | "workflow" | "agent" | "network" | "other";
1477
+ id: string;
1478
+ }, {
1479
+ kind: "integration" | "mcp-server" | "tool" | "workflow" | "agent" | "network" | "other";
1480
+ id: string;
1481
+ }>;
1482
+ }, "strip", z.ZodTypeAny, {
1483
+ source: string;
1484
+ destination: string;
1485
+ unit: {
1486
+ kind: "integration" | "mcp-server" | "tool" | "workflow" | "agent" | "network" | "other";
1487
+ id: string;
1488
+ };
1489
+ }, {
1490
+ source: string;
1491
+ destination: string;
1492
+ unit: {
1493
+ kind: "integration" | "mcp-server" | "tool" | "workflow" | "agent" | "network" | "other";
1494
+ id: string;
1495
+ };
1496
+ }>, "many">;
1497
+ conflicts: z.ZodArray<z.ZodObject<{
1498
+ unit: z.ZodObject<{
1499
+ kind: z.ZodEnum<["mcp-server", "tool", "workflow", "agent", "integration", "network", "other"]>;
1500
+ id: z.ZodString;
1501
+ }, "strip", z.ZodTypeAny, {
1502
+ kind: "integration" | "mcp-server" | "tool" | "workflow" | "agent" | "network" | "other";
1503
+ id: string;
1504
+ }, {
1505
+ kind: "integration" | "mcp-server" | "tool" | "workflow" | "agent" | "network" | "other";
1506
+ id: string;
1507
+ }>;
1508
+ issue: z.ZodString;
1509
+ sourceFile: z.ZodString;
1510
+ targetFile: z.ZodString;
1511
+ }, "strip", z.ZodTypeAny, {
1512
+ unit: {
1513
+ kind: "integration" | "mcp-server" | "tool" | "workflow" | "agent" | "network" | "other";
1514
+ id: string;
1515
+ };
1516
+ issue: string;
1517
+ sourceFile: string;
1518
+ targetFile: string;
1519
+ }, {
1520
+ unit: {
1521
+ kind: "integration" | "mcp-server" | "tool" | "workflow" | "agent" | "network" | "other";
1522
+ id: string;
1523
+ };
1524
+ issue: string;
1525
+ sourceFile: string;
1526
+ targetFile: string;
1527
+ }>, "many">;
1528
+ message: z.ZodString;
1529
+ error: z.ZodOptional<z.ZodString>;
1530
+ }, "strip", z.ZodTypeAny, {
1531
+ message: string;
1532
+ success: boolean;
1533
+ copiedFiles: {
1534
+ source: string;
1535
+ destination: string;
1536
+ unit: {
1537
+ kind: "integration" | "mcp-server" | "tool" | "workflow" | "agent" | "network" | "other";
1538
+ id: string;
1539
+ };
1540
+ }[];
1541
+ conflicts: {
1542
+ unit: {
1543
+ kind: "integration" | "mcp-server" | "tool" | "workflow" | "agent" | "network" | "other";
1544
+ id: string;
1545
+ };
1546
+ issue: string;
1547
+ sourceFile: string;
1548
+ targetFile: string;
1549
+ }[];
1550
+ error?: string | undefined;
1551
+ }, {
1552
+ message: string;
1553
+ success: boolean;
1554
+ copiedFiles: {
1555
+ source: string;
1556
+ destination: string;
1557
+ unit: {
1558
+ kind: "integration" | "mcp-server" | "tool" | "workflow" | "agent" | "network" | "other";
1559
+ id: string;
1560
+ };
1561
+ }[];
1562
+ conflicts: {
1563
+ unit: {
1564
+ kind: "integration" | "mcp-server" | "tool" | "workflow" | "agent" | "network" | "other";
1565
+ id: string;
1566
+ };
1567
+ issue: string;
1568
+ sourceFile: string;
1569
+ targetFile: string;
1570
+ }[];
1571
+ error?: string | undefined;
1572
+ }>, z.ZodType<any, z.ZodTypeDef, any>, z.ZodType<any, z.ZodTypeDef, any>, import("@mastra/core").DefaultEngineType> | import("@mastra/core").Step<"intelligent-merge", z.ZodObject<{
1573
+ conflicts: z.ZodArray<z.ZodObject<{
1574
+ unit: z.ZodObject<{
1575
+ kind: z.ZodEnum<["mcp-server", "tool", "workflow", "agent", "integration", "network", "other"]>;
1576
+ id: z.ZodString;
1577
+ }, "strip", z.ZodTypeAny, {
1578
+ kind: "integration" | "mcp-server" | "tool" | "workflow" | "agent" | "network" | "other";
1579
+ id: string;
1580
+ }, {
1581
+ kind: "integration" | "mcp-server" | "tool" | "workflow" | "agent" | "network" | "other";
1582
+ id: string;
1583
+ }>;
1584
+ issue: z.ZodString;
1585
+ sourceFile: z.ZodString;
1586
+ targetFile: z.ZodString;
1587
+ }, "strip", z.ZodTypeAny, {
1588
+ unit: {
1589
+ kind: "integration" | "mcp-server" | "tool" | "workflow" | "agent" | "network" | "other";
1590
+ id: string;
1591
+ };
1592
+ issue: string;
1593
+ sourceFile: string;
1594
+ targetFile: string;
1595
+ }, {
1596
+ unit: {
1597
+ kind: "integration" | "mcp-server" | "tool" | "workflow" | "agent" | "network" | "other";
1598
+ id: string;
1599
+ };
1600
+ issue: string;
1601
+ sourceFile: string;
1602
+ targetFile: string;
1603
+ }>, "many">;
1604
+ copiedFiles: z.ZodArray<z.ZodObject<{
1605
+ source: z.ZodString;
1606
+ destination: z.ZodString;
1607
+ unit: z.ZodObject<{
1608
+ kind: z.ZodEnum<["mcp-server", "tool", "workflow", "agent", "integration", "network", "other"]>;
1609
+ id: z.ZodString;
1610
+ }, "strip", z.ZodTypeAny, {
1611
+ kind: "integration" | "mcp-server" | "tool" | "workflow" | "agent" | "network" | "other";
1612
+ id: string;
1613
+ }, {
1614
+ kind: "integration" | "mcp-server" | "tool" | "workflow" | "agent" | "network" | "other";
1615
+ id: string;
1616
+ }>;
1617
+ }, "strip", z.ZodTypeAny, {
1618
+ source: string;
1619
+ destination: string;
1620
+ unit: {
1621
+ kind: "integration" | "mcp-server" | "tool" | "workflow" | "agent" | "network" | "other";
1622
+ id: string;
1623
+ };
1624
+ }, {
1625
+ source: string;
1626
+ destination: string;
1627
+ unit: {
1628
+ kind: "integration" | "mcp-server" | "tool" | "workflow" | "agent" | "network" | "other";
1629
+ id: string;
1630
+ };
1631
+ }>, "many">;
1632
+ templateDir: z.ZodString;
1633
+ commitSha: z.ZodString;
1634
+ slug: z.ZodString;
1635
+ targetPath: z.ZodOptional<z.ZodString>;
1636
+ branchName: z.ZodOptional<z.ZodString>;
1637
+ }, "strip", z.ZodTypeAny, {
1638
+ slug: string;
1639
+ commitSha: string;
1640
+ templateDir: string;
1641
+ copiedFiles: {
1642
+ source: string;
1643
+ destination: string;
1644
+ unit: {
1645
+ kind: "integration" | "mcp-server" | "tool" | "workflow" | "agent" | "network" | "other";
1646
+ id: string;
1647
+ };
1648
+ }[];
1649
+ conflicts: {
1650
+ unit: {
1651
+ kind: "integration" | "mcp-server" | "tool" | "workflow" | "agent" | "network" | "other";
1652
+ id: string;
1653
+ };
1654
+ issue: string;
1655
+ sourceFile: string;
1656
+ targetFile: string;
1657
+ }[];
1658
+ targetPath?: string | undefined;
1659
+ branchName?: string | undefined;
1660
+ }, {
1661
+ slug: string;
1662
+ commitSha: string;
1663
+ templateDir: string;
1664
+ copiedFiles: {
1665
+ source: string;
1666
+ destination: string;
1667
+ unit: {
1668
+ kind: "integration" | "mcp-server" | "tool" | "workflow" | "agent" | "network" | "other";
1669
+ id: string;
1670
+ };
1671
+ }[];
1672
+ conflicts: {
1673
+ unit: {
1674
+ kind: "integration" | "mcp-server" | "tool" | "workflow" | "agent" | "network" | "other";
1675
+ id: string;
1676
+ };
1677
+ issue: string;
1678
+ sourceFile: string;
1679
+ targetFile: string;
1680
+ }[];
1681
+ targetPath?: string | undefined;
1682
+ branchName?: string | undefined;
1683
+ }>, z.ZodObject<{
1684
+ success: z.ZodBoolean;
1685
+ applied: z.ZodBoolean;
1686
+ message: z.ZodString;
1687
+ conflictsResolved: z.ZodArray<z.ZodObject<{
1688
+ unit: z.ZodObject<{
1689
+ kind: z.ZodEnum<["mcp-server", "tool", "workflow", "agent", "integration", "network", "other"]>;
1690
+ id: z.ZodString;
1691
+ }, "strip", z.ZodTypeAny, {
1692
+ kind: "integration" | "mcp-server" | "tool" | "workflow" | "agent" | "network" | "other";
1693
+ id: string;
1694
+ }, {
1695
+ kind: "integration" | "mcp-server" | "tool" | "workflow" | "agent" | "network" | "other";
1696
+ id: string;
1697
+ }>;
1698
+ issue: z.ZodString;
1699
+ resolution: z.ZodString;
1700
+ }, "strip", z.ZodTypeAny, {
1701
+ unit: {
1702
+ kind: "integration" | "mcp-server" | "tool" | "workflow" | "agent" | "network" | "other";
1703
+ id: string;
1704
+ };
1705
+ issue: string;
1706
+ resolution: string;
1707
+ }, {
1708
+ unit: {
1709
+ kind: "integration" | "mcp-server" | "tool" | "workflow" | "agent" | "network" | "other";
1710
+ id: string;
1711
+ };
1712
+ issue: string;
1713
+ resolution: string;
1714
+ }>, "many">;
1715
+ error: z.ZodOptional<z.ZodString>;
1716
+ }, "strip", z.ZodTypeAny, {
1717
+ message: string;
1718
+ success: boolean;
1719
+ applied: boolean;
1720
+ conflictsResolved: {
1721
+ unit: {
1722
+ kind: "integration" | "mcp-server" | "tool" | "workflow" | "agent" | "network" | "other";
1723
+ id: string;
1724
+ };
1725
+ issue: string;
1726
+ resolution: string;
1727
+ }[];
1728
+ error?: string | undefined;
1729
+ }, {
1730
+ message: string;
1731
+ success: boolean;
1732
+ applied: boolean;
1733
+ conflictsResolved: {
1734
+ unit: {
1735
+ kind: "integration" | "mcp-server" | "tool" | "workflow" | "agent" | "network" | "other";
1736
+ id: string;
1737
+ };
1738
+ issue: string;
1739
+ resolution: string;
1740
+ }[];
1741
+ error?: string | undefined;
1742
+ }>, z.ZodType<any, z.ZodTypeDef, any>, z.ZodType<any, z.ZodTypeDef, any>, import("@mastra/core").DefaultEngineType> | import("@mastra/core").Step<"validation-and-fix", z.ZodObject<{
1743
+ commitSha: z.ZodString;
1744
+ slug: z.ZodString;
1745
+ targetPath: z.ZodOptional<z.ZodString>;
1746
+ templateDir: z.ZodString;
1747
+ orderedUnits: z.ZodArray<z.ZodObject<{
1748
+ kind: z.ZodEnum<["mcp-server", "tool", "workflow", "agent", "integration", "network", "other"]>;
1749
+ id: z.ZodString;
1750
+ file: z.ZodString;
1751
+ }, "strip", z.ZodTypeAny, {
1752
+ kind: "integration" | "mcp-server" | "tool" | "workflow" | "agent" | "network" | "other";
1753
+ id: string;
1754
+ file: string;
1755
+ }, {
1756
+ kind: "integration" | "mcp-server" | "tool" | "workflow" | "agent" | "network" | "other";
1757
+ id: string;
1758
+ file: string;
1759
+ }>, "many">;
1760
+ copiedFiles: z.ZodArray<z.ZodObject<{
1761
+ source: z.ZodString;
1762
+ destination: z.ZodString;
1763
+ unit: z.ZodObject<{
1764
+ kind: z.ZodEnum<["mcp-server", "tool", "workflow", "agent", "integration", "network", "other"]>;
1765
+ id: z.ZodString;
1766
+ }, "strip", z.ZodTypeAny, {
1767
+ kind: "integration" | "mcp-server" | "tool" | "workflow" | "agent" | "network" | "other";
1768
+ id: string;
1769
+ }, {
1770
+ kind: "integration" | "mcp-server" | "tool" | "workflow" | "agent" | "network" | "other";
1771
+ id: string;
1772
+ }>;
1773
+ }, "strip", z.ZodTypeAny, {
1774
+ source: string;
1775
+ destination: string;
1776
+ unit: {
1777
+ kind: "integration" | "mcp-server" | "tool" | "workflow" | "agent" | "network" | "other";
1778
+ id: string;
1779
+ };
1780
+ }, {
1781
+ source: string;
1782
+ destination: string;
1783
+ unit: {
1784
+ kind: "integration" | "mcp-server" | "tool" | "workflow" | "agent" | "network" | "other";
1785
+ id: string;
1786
+ };
1787
+ }>, "many">;
1788
+ conflictsResolved: z.ZodOptional<z.ZodArray<z.ZodObject<{
1789
+ unit: z.ZodObject<{
1790
+ kind: z.ZodEnum<["mcp-server", "tool", "workflow", "agent", "integration", "network", "other"]>;
1791
+ id: z.ZodString;
1792
+ }, "strip", z.ZodTypeAny, {
1793
+ kind: "integration" | "mcp-server" | "tool" | "workflow" | "agent" | "network" | "other";
1794
+ id: string;
1795
+ }, {
1796
+ kind: "integration" | "mcp-server" | "tool" | "workflow" | "agent" | "network" | "other";
1797
+ id: string;
1798
+ }>;
1799
+ issue: z.ZodString;
1800
+ resolution: z.ZodString;
1801
+ }, "strip", z.ZodTypeAny, {
1802
+ unit: {
1803
+ kind: "integration" | "mcp-server" | "tool" | "workflow" | "agent" | "network" | "other";
1804
+ id: string;
1805
+ };
1806
+ issue: string;
1807
+ resolution: string;
1808
+ }, {
1809
+ unit: {
1810
+ kind: "integration" | "mcp-server" | "tool" | "workflow" | "agent" | "network" | "other";
1811
+ id: string;
1812
+ };
1813
+ issue: string;
1814
+ resolution: string;
1815
+ }>, "many">>;
1816
+ maxIterations: z.ZodDefault<z.ZodOptional<z.ZodNumber>>;
1817
+ }, "strip", z.ZodTypeAny, {
1818
+ slug: string;
1819
+ commitSha: string;
1820
+ templateDir: string;
1821
+ orderedUnits: {
1822
+ kind: "integration" | "mcp-server" | "tool" | "workflow" | "agent" | "network" | "other";
1823
+ id: string;
1824
+ file: string;
1825
+ }[];
1826
+ copiedFiles: {
1827
+ source: string;
1828
+ destination: string;
1829
+ unit: {
1830
+ kind: "integration" | "mcp-server" | "tool" | "workflow" | "agent" | "network" | "other";
1831
+ id: string;
1832
+ };
1833
+ }[];
1834
+ maxIterations: number;
1835
+ targetPath?: string | undefined;
1836
+ conflictsResolved?: {
1837
+ unit: {
1838
+ kind: "integration" | "mcp-server" | "tool" | "workflow" | "agent" | "network" | "other";
1839
+ id: string;
1840
+ };
1841
+ issue: string;
1842
+ resolution: string;
1843
+ }[] | undefined;
1844
+ }, {
1845
+ slug: string;
1846
+ commitSha: string;
1847
+ templateDir: string;
1848
+ orderedUnits: {
1849
+ kind: "integration" | "mcp-server" | "tool" | "workflow" | "agent" | "network" | "other";
1850
+ id: string;
1851
+ file: string;
1852
+ }[];
1853
+ copiedFiles: {
1854
+ source: string;
1855
+ destination: string;
1856
+ unit: {
1857
+ kind: "integration" | "mcp-server" | "tool" | "workflow" | "agent" | "network" | "other";
1858
+ id: string;
1859
+ };
1860
+ }[];
1861
+ targetPath?: string | undefined;
1862
+ conflictsResolved?: {
1863
+ unit: {
1864
+ kind: "integration" | "mcp-server" | "tool" | "workflow" | "agent" | "network" | "other";
1865
+ id: string;
1866
+ };
1867
+ issue: string;
1868
+ resolution: string;
1869
+ }[] | undefined;
1870
+ maxIterations?: number | undefined;
1871
+ }>, z.ZodObject<{
1872
+ success: z.ZodBoolean;
1873
+ applied: z.ZodBoolean;
1874
+ message: z.ZodString;
1875
+ validationResults: z.ZodObject<{
1876
+ valid: z.ZodBoolean;
1877
+ errorsFixed: z.ZodNumber;
1878
+ remainingErrors: z.ZodNumber;
1879
+ }, "strip", z.ZodTypeAny, {
1880
+ valid: boolean;
1881
+ errorsFixed: number;
1882
+ remainingErrors: number;
1883
+ }, {
1884
+ valid: boolean;
1885
+ errorsFixed: number;
1886
+ remainingErrors: number;
1887
+ }>;
1888
+ error: z.ZodOptional<z.ZodString>;
1889
+ }, "strip", z.ZodTypeAny, {
1890
+ message: string;
1891
+ success: boolean;
1892
+ applied: boolean;
1893
+ validationResults: {
1894
+ valid: boolean;
1895
+ errorsFixed: number;
1896
+ remainingErrors: number;
1897
+ };
1898
+ error?: string | undefined;
1899
+ }, {
1900
+ message: string;
1901
+ success: boolean;
1902
+ applied: boolean;
1903
+ validationResults: {
1904
+ valid: boolean;
1905
+ errorsFixed: number;
1906
+ remainingErrors: number;
1907
+ };
1908
+ error?: string | undefined;
1909
+ }>, z.ZodType<any, z.ZodTypeDef, any>, z.ZodType<any, z.ZodTypeDef, any>, import("@mastra/core").DefaultEngineType>)[]>>;
1910
+ //# sourceMappingURL=template-builder.d.ts.map