@mastra/agent-builder 0.0.0-experimental-agent-builder-20250815195917 → 0.0.0-pgvector-index-fix-20250905222058

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 (71) hide show
  1. package/CHANGELOG.md +179 -19
  2. package/README.md +7 -20
  3. package/dist/agent/index.d.ts +31 -0
  4. package/dist/agent/index.d.ts.map +1 -0
  5. package/dist/defaults.d.ts +3548 -0
  6. package/dist/defaults.d.ts.map +1 -0
  7. package/dist/index.d.ts +4 -1
  8. package/dist/index.d.ts.map +1 -0
  9. package/dist/index.js +3611 -1229
  10. package/dist/index.js.map +1 -0
  11. package/dist/processors/tool-summary.d.ts +30 -0
  12. package/dist/processors/tool-summary.d.ts.map +1 -0
  13. package/dist/processors/write-file.d.ts +10 -0
  14. package/dist/processors/write-file.d.ts.map +1 -0
  15. package/dist/types.d.ts +1143 -0
  16. package/dist/types.d.ts.map +1 -0
  17. package/dist/utils.d.ts +71 -0
  18. package/dist/utils.d.ts.map +1 -0
  19. package/dist/workflows/index.d.ts +5 -0
  20. package/dist/workflows/index.d.ts.map +1 -0
  21. package/dist/workflows/shared/schema.d.ts +139 -0
  22. package/dist/workflows/shared/schema.d.ts.map +1 -0
  23. package/dist/workflows/task-planning/prompts.d.ts +37 -0
  24. package/dist/workflows/task-planning/prompts.d.ts.map +1 -0
  25. package/dist/workflows/task-planning/schema.d.ts +548 -0
  26. package/dist/workflows/task-planning/schema.d.ts.map +1 -0
  27. package/dist/workflows/task-planning/task-planning.d.ts +992 -0
  28. package/dist/workflows/task-planning/task-planning.d.ts.map +1 -0
  29. package/dist/workflows/template-builder/template-builder.d.ts +1968 -0
  30. package/dist/workflows/template-builder/template-builder.d.ts.map +1 -0
  31. package/dist/workflows/workflow-builder/prompts.d.ts +44 -0
  32. package/dist/workflows/workflow-builder/prompts.d.ts.map +1 -0
  33. package/dist/workflows/workflow-builder/schema.d.ts +1170 -0
  34. package/dist/workflows/workflow-builder/schema.d.ts.map +1 -0
  35. package/dist/workflows/workflow-builder/tools.d.ts +309 -0
  36. package/dist/workflows/workflow-builder/tools.d.ts.map +1 -0
  37. package/dist/workflows/workflow-builder/workflow-builder.d.ts +2714 -0
  38. package/dist/workflows/workflow-builder/workflow-builder.d.ts.map +1 -0
  39. package/dist/workflows/workflow-map.d.ts +3768 -0
  40. package/dist/workflows/workflow-map.d.ts.map +1 -0
  41. package/package.json +39 -10
  42. package/dist/_tsup-dts-rollup.d.cts +0 -13109
  43. package/dist/_tsup-dts-rollup.d.ts +0 -13109
  44. package/dist/index.cjs +0 -3772
  45. package/dist/index.d.cts +0 -1
  46. package/eslint.config.js +0 -11
  47. package/integration-tests/CHANGELOG.md +0 -20
  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 -13
  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 -13
  61. package/integration-tests/vitest.config.ts +0 -17
  62. package/src/agent-builder.test.ts +0 -291
  63. package/src/defaults.ts +0 -2728
  64. package/src/index.ts +0 -187
  65. package/src/processors/tool-summary.ts +0 -136
  66. package/src/processors/write-file.ts +0 -17
  67. package/src/types.ts +0 -120
  68. package/src/utils.ts +0 -133
  69. package/src/workflows/index.ts +0 -1541
  70. package/tsconfig.json +0 -5
  71. package/vitest.config.ts +0 -11
@@ -0,0 +1,1968 @@
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
+ variables: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
8
+ }, "strip", z.ZodTypeAny, {
9
+ repo: string;
10
+ slug?: string | undefined;
11
+ ref?: string | undefined;
12
+ targetPath?: string | undefined;
13
+ variables?: Record<string, string> | undefined;
14
+ }, {
15
+ repo: string;
16
+ slug?: string | undefined;
17
+ ref?: string | undefined;
18
+ targetPath?: string | undefined;
19
+ variables?: Record<string, string> | undefined;
20
+ }>, z.ZodObject<{
21
+ templateDir: z.ZodString;
22
+ commitSha: z.ZodString;
23
+ slug: z.ZodString;
24
+ success: z.ZodOptional<z.ZodBoolean>;
25
+ error: z.ZodOptional<z.ZodString>;
26
+ targetPath: z.ZodOptional<z.ZodString>;
27
+ }, "strip", z.ZodTypeAny, {
28
+ slug: string;
29
+ commitSha: string;
30
+ templateDir: string;
31
+ targetPath?: string | undefined;
32
+ success?: boolean | undefined;
33
+ error?: string | undefined;
34
+ }, {
35
+ slug: string;
36
+ commitSha: string;
37
+ templateDir: string;
38
+ targetPath?: string | undefined;
39
+ success?: boolean | undefined;
40
+ error?: string | undefined;
41
+ }>, z.ZodType<any, z.ZodTypeDef, any>, z.ZodType<any, z.ZodTypeDef, any>, import("@mastra/core").DefaultEngineType> | import("@mastra/core").Step<"analyze-package", z.ZodObject<{
42
+ templateDir: z.ZodString;
43
+ commitSha: z.ZodString;
44
+ slug: z.ZodString;
45
+ success: z.ZodOptional<z.ZodBoolean>;
46
+ error: z.ZodOptional<z.ZodString>;
47
+ targetPath: z.ZodOptional<z.ZodString>;
48
+ }, "strip", z.ZodTypeAny, {
49
+ slug: string;
50
+ commitSha: string;
51
+ templateDir: string;
52
+ targetPath?: string | undefined;
53
+ success?: boolean | undefined;
54
+ error?: string | undefined;
55
+ }, {
56
+ slug: string;
57
+ commitSha: string;
58
+ templateDir: string;
59
+ targetPath?: string | undefined;
60
+ success?: boolean | undefined;
61
+ error?: string | undefined;
62
+ }>, z.ZodObject<{
63
+ name: z.ZodOptional<z.ZodString>;
64
+ version: z.ZodOptional<z.ZodString>;
65
+ description: z.ZodOptional<z.ZodString>;
66
+ dependencies: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
67
+ devDependencies: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
68
+ peerDependencies: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
69
+ scripts: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
70
+ success: z.ZodOptional<z.ZodBoolean>;
71
+ error: z.ZodOptional<z.ZodString>;
72
+ }, "strip", z.ZodTypeAny, {
73
+ description?: string | undefined;
74
+ success?: boolean | undefined;
75
+ error?: string | undefined;
76
+ name?: string | undefined;
77
+ version?: string | undefined;
78
+ dependencies?: Record<string, string> | undefined;
79
+ devDependencies?: Record<string, string> | undefined;
80
+ peerDependencies?: Record<string, string> | undefined;
81
+ scripts?: Record<string, string> | undefined;
82
+ }, {
83
+ description?: string | undefined;
84
+ success?: boolean | undefined;
85
+ error?: string | undefined;
86
+ name?: string | undefined;
87
+ version?: string | undefined;
88
+ dependencies?: Record<string, string> | undefined;
89
+ devDependencies?: Record<string, string> | undefined;
90
+ peerDependencies?: Record<string, string> | undefined;
91
+ scripts?: Record<string, string> | undefined;
92
+ }>, z.ZodType<any, z.ZodTypeDef, any>, z.ZodType<any, z.ZodTypeDef, any>, import("@mastra/core").DefaultEngineType> | import("@mastra/core").Step<"discover-units", z.ZodObject<{
93
+ templateDir: z.ZodString;
94
+ commitSha: z.ZodString;
95
+ slug: z.ZodString;
96
+ success: z.ZodOptional<z.ZodBoolean>;
97
+ error: z.ZodOptional<z.ZodString>;
98
+ targetPath: z.ZodOptional<z.ZodString>;
99
+ }, "strip", z.ZodTypeAny, {
100
+ slug: string;
101
+ commitSha: string;
102
+ templateDir: string;
103
+ targetPath?: string | undefined;
104
+ success?: boolean | undefined;
105
+ error?: string | undefined;
106
+ }, {
107
+ slug: string;
108
+ commitSha: string;
109
+ templateDir: string;
110
+ targetPath?: string | undefined;
111
+ success?: boolean | undefined;
112
+ error?: string | undefined;
113
+ }>, z.ZodObject<{
114
+ units: z.ZodArray<z.ZodObject<{
115
+ kind: z.ZodEnum<["mcp-server", "tool", "workflow", "agent", "integration", "network", "other"]>;
116
+ id: z.ZodString;
117
+ file: z.ZodString;
118
+ }, "strip", z.ZodTypeAny, {
119
+ kind: "integration" | "mcp-server" | "tool" | "workflow" | "agent" | "network" | "other";
120
+ id: string;
121
+ file: string;
122
+ }, {
123
+ kind: "integration" | "mcp-server" | "tool" | "workflow" | "agent" | "network" | "other";
124
+ id: string;
125
+ file: string;
126
+ }>, "many">;
127
+ success: z.ZodOptional<z.ZodBoolean>;
128
+ error: z.ZodOptional<z.ZodString>;
129
+ }, "strip", z.ZodTypeAny, {
130
+ units: {
131
+ kind: "integration" | "mcp-server" | "tool" | "workflow" | "agent" | "network" | "other";
132
+ id: string;
133
+ file: string;
134
+ }[];
135
+ success?: boolean | undefined;
136
+ error?: string | undefined;
137
+ }, {
138
+ units: {
139
+ kind: "integration" | "mcp-server" | "tool" | "workflow" | "agent" | "network" | "other";
140
+ id: string;
141
+ file: string;
142
+ }[];
143
+ success?: boolean | undefined;
144
+ error?: string | undefined;
145
+ }>, z.ZodType<any, z.ZodTypeDef, any>, z.ZodType<any, z.ZodTypeDef, any>, import("@mastra/core").DefaultEngineType> | import("@mastra/core").Step<"order-units", z.ZodObject<{
146
+ units: z.ZodArray<z.ZodObject<{
147
+ kind: z.ZodEnum<["mcp-server", "tool", "workflow", "agent", "integration", "network", "other"]>;
148
+ id: z.ZodString;
149
+ file: z.ZodString;
150
+ }, "strip", z.ZodTypeAny, {
151
+ kind: "integration" | "mcp-server" | "tool" | "workflow" | "agent" | "network" | "other";
152
+ id: string;
153
+ file: string;
154
+ }, {
155
+ kind: "integration" | "mcp-server" | "tool" | "workflow" | "agent" | "network" | "other";
156
+ id: string;
157
+ file: string;
158
+ }>, "many">;
159
+ success: z.ZodOptional<z.ZodBoolean>;
160
+ error: z.ZodOptional<z.ZodString>;
161
+ }, "strip", z.ZodTypeAny, {
162
+ units: {
163
+ kind: "integration" | "mcp-server" | "tool" | "workflow" | "agent" | "network" | "other";
164
+ id: string;
165
+ file: string;
166
+ }[];
167
+ success?: boolean | undefined;
168
+ error?: string | undefined;
169
+ }, {
170
+ units: {
171
+ kind: "integration" | "mcp-server" | "tool" | "workflow" | "agent" | "network" | "other";
172
+ id: string;
173
+ file: string;
174
+ }[];
175
+ success?: boolean | undefined;
176
+ error?: string | undefined;
177
+ }>, z.ZodObject<{
178
+ orderedUnits: z.ZodArray<z.ZodObject<{
179
+ kind: z.ZodEnum<["mcp-server", "tool", "workflow", "agent", "integration", "network", "other"]>;
180
+ id: z.ZodString;
181
+ file: z.ZodString;
182
+ }, "strip", z.ZodTypeAny, {
183
+ kind: "integration" | "mcp-server" | "tool" | "workflow" | "agent" | "network" | "other";
184
+ id: string;
185
+ file: string;
186
+ }, {
187
+ kind: "integration" | "mcp-server" | "tool" | "workflow" | "agent" | "network" | "other";
188
+ id: string;
189
+ file: string;
190
+ }>, "many">;
191
+ success: z.ZodOptional<z.ZodBoolean>;
192
+ error: z.ZodOptional<z.ZodString>;
193
+ }, "strip", z.ZodTypeAny, {
194
+ orderedUnits: {
195
+ kind: "integration" | "mcp-server" | "tool" | "workflow" | "agent" | "network" | "other";
196
+ id: string;
197
+ file: string;
198
+ }[];
199
+ success?: boolean | undefined;
200
+ error?: string | undefined;
201
+ }, {
202
+ orderedUnits: {
203
+ kind: "integration" | "mcp-server" | "tool" | "workflow" | "agent" | "network" | "other";
204
+ id: string;
205
+ file: string;
206
+ }[];
207
+ success?: boolean | undefined;
208
+ error?: string | undefined;
209
+ }>, z.ZodType<any, z.ZodTypeDef, any>, z.ZodType<any, z.ZodTypeDef, any>, import("@mastra/core").DefaultEngineType> | import("@mastra/core").Step<"package-merge", z.ZodObject<{
210
+ commitSha: z.ZodString;
211
+ slug: z.ZodString;
212
+ targetPath: z.ZodOptional<z.ZodString>;
213
+ packageInfo: z.ZodObject<{
214
+ name: z.ZodOptional<z.ZodString>;
215
+ version: z.ZodOptional<z.ZodString>;
216
+ description: z.ZodOptional<z.ZodString>;
217
+ dependencies: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
218
+ devDependencies: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
219
+ peerDependencies: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
220
+ scripts: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
221
+ success: z.ZodOptional<z.ZodBoolean>;
222
+ error: z.ZodOptional<z.ZodString>;
223
+ }, "strip", z.ZodTypeAny, {
224
+ description?: string | undefined;
225
+ success?: boolean | undefined;
226
+ error?: string | undefined;
227
+ name?: string | undefined;
228
+ version?: string | undefined;
229
+ dependencies?: Record<string, string> | undefined;
230
+ devDependencies?: Record<string, string> | undefined;
231
+ peerDependencies?: Record<string, string> | undefined;
232
+ scripts?: Record<string, string> | undefined;
233
+ }, {
234
+ description?: string | undefined;
235
+ success?: boolean | undefined;
236
+ error?: string | undefined;
237
+ name?: string | undefined;
238
+ version?: string | undefined;
239
+ dependencies?: Record<string, string> | undefined;
240
+ devDependencies?: Record<string, string> | undefined;
241
+ peerDependencies?: Record<string, string> | undefined;
242
+ scripts?: Record<string, string> | undefined;
243
+ }>;
244
+ }, "strip", z.ZodTypeAny, {
245
+ slug: string;
246
+ commitSha: string;
247
+ packageInfo: {
248
+ description?: string | undefined;
249
+ success?: boolean | undefined;
250
+ error?: string | undefined;
251
+ name?: string | undefined;
252
+ version?: string | undefined;
253
+ dependencies?: Record<string, string> | undefined;
254
+ devDependencies?: Record<string, string> | undefined;
255
+ peerDependencies?: Record<string, string> | undefined;
256
+ scripts?: Record<string, string> | undefined;
257
+ };
258
+ targetPath?: string | undefined;
259
+ }, {
260
+ slug: string;
261
+ commitSha: string;
262
+ packageInfo: {
263
+ description?: string | undefined;
264
+ success?: boolean | undefined;
265
+ error?: string | undefined;
266
+ name?: string | undefined;
267
+ version?: string | undefined;
268
+ dependencies?: Record<string, string> | undefined;
269
+ devDependencies?: Record<string, string> | undefined;
270
+ peerDependencies?: Record<string, string> | undefined;
271
+ scripts?: Record<string, string> | undefined;
272
+ };
273
+ targetPath?: string | undefined;
274
+ }>, z.ZodObject<{
275
+ success: z.ZodBoolean;
276
+ applied: z.ZodBoolean;
277
+ message: z.ZodString;
278
+ error: z.ZodOptional<z.ZodString>;
279
+ }, "strip", z.ZodTypeAny, {
280
+ message: string;
281
+ success: boolean;
282
+ applied: boolean;
283
+ error?: string | undefined;
284
+ }, {
285
+ message: string;
286
+ success: boolean;
287
+ applied: boolean;
288
+ error?: string | undefined;
289
+ }>, z.ZodType<any, z.ZodTypeDef, any>, z.ZodType<any, z.ZodTypeDef, any>, import("@mastra/core").DefaultEngineType> | import("@mastra/core").Step<"install", z.ZodObject<{
290
+ targetPath: z.ZodString;
291
+ }, "strip", z.ZodTypeAny, {
292
+ targetPath: string;
293
+ }, {
294
+ targetPath: string;
295
+ }>, z.ZodObject<{
296
+ success: z.ZodBoolean;
297
+ error: z.ZodOptional<z.ZodString>;
298
+ }, "strip", z.ZodTypeAny, {
299
+ success: boolean;
300
+ error?: string | undefined;
301
+ }, {
302
+ success: boolean;
303
+ error?: string | undefined;
304
+ }>, 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<{
305
+ orderedUnits: z.ZodArray<z.ZodObject<{
306
+ kind: z.ZodEnum<["mcp-server", "tool", "workflow", "agent", "integration", "network", "other"]>;
307
+ id: z.ZodString;
308
+ file: z.ZodString;
309
+ }, "strip", z.ZodTypeAny, {
310
+ kind: "integration" | "mcp-server" | "tool" | "workflow" | "agent" | "network" | "other";
311
+ id: string;
312
+ file: string;
313
+ }, {
314
+ kind: "integration" | "mcp-server" | "tool" | "workflow" | "agent" | "network" | "other";
315
+ id: string;
316
+ file: string;
317
+ }>, "many">;
318
+ templateDir: z.ZodString;
319
+ commitSha: z.ZodString;
320
+ slug: z.ZodString;
321
+ targetPath: z.ZodOptional<z.ZodString>;
322
+ variables: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
323
+ }, "strip", z.ZodTypeAny, {
324
+ slug: string;
325
+ commitSha: string;
326
+ templateDir: string;
327
+ orderedUnits: {
328
+ kind: "integration" | "mcp-server" | "tool" | "workflow" | "agent" | "network" | "other";
329
+ id: string;
330
+ file: string;
331
+ }[];
332
+ targetPath?: string | undefined;
333
+ variables?: Record<string, string> | undefined;
334
+ }, {
335
+ slug: string;
336
+ commitSha: string;
337
+ templateDir: string;
338
+ orderedUnits: {
339
+ kind: "integration" | "mcp-server" | "tool" | "workflow" | "agent" | "network" | "other";
340
+ id: string;
341
+ file: string;
342
+ }[];
343
+ targetPath?: string | undefined;
344
+ variables?: Record<string, string> | undefined;
345
+ }>, z.ZodObject<{
346
+ success: z.ZodBoolean;
347
+ copiedFiles: z.ZodArray<z.ZodObject<{
348
+ source: z.ZodString;
349
+ destination: z.ZodString;
350
+ unit: z.ZodObject<{
351
+ kind: z.ZodEnum<["mcp-server", "tool", "workflow", "agent", "integration", "network", "other"]>;
352
+ id: z.ZodString;
353
+ }, "strip", z.ZodTypeAny, {
354
+ kind: "integration" | "mcp-server" | "tool" | "workflow" | "agent" | "network" | "other";
355
+ id: string;
356
+ }, {
357
+ kind: "integration" | "mcp-server" | "tool" | "workflow" | "agent" | "network" | "other";
358
+ id: string;
359
+ }>;
360
+ }, "strip", z.ZodTypeAny, {
361
+ source: string;
362
+ destination: string;
363
+ unit: {
364
+ kind: "integration" | "mcp-server" | "tool" | "workflow" | "agent" | "network" | "other";
365
+ id: string;
366
+ };
367
+ }, {
368
+ source: string;
369
+ destination: string;
370
+ unit: {
371
+ kind: "integration" | "mcp-server" | "tool" | "workflow" | "agent" | "network" | "other";
372
+ id: string;
373
+ };
374
+ }>, "many">;
375
+ conflicts: z.ZodArray<z.ZodObject<{
376
+ unit: z.ZodObject<{
377
+ kind: z.ZodEnum<["mcp-server", "tool", "workflow", "agent", "integration", "network", "other"]>;
378
+ id: z.ZodString;
379
+ }, "strip", z.ZodTypeAny, {
380
+ kind: "integration" | "mcp-server" | "tool" | "workflow" | "agent" | "network" | "other";
381
+ id: string;
382
+ }, {
383
+ kind: "integration" | "mcp-server" | "tool" | "workflow" | "agent" | "network" | "other";
384
+ id: string;
385
+ }>;
386
+ issue: z.ZodString;
387
+ sourceFile: z.ZodString;
388
+ targetFile: z.ZodString;
389
+ }, "strip", z.ZodTypeAny, {
390
+ unit: {
391
+ kind: "integration" | "mcp-server" | "tool" | "workflow" | "agent" | "network" | "other";
392
+ id: string;
393
+ };
394
+ issue: string;
395
+ sourceFile: string;
396
+ targetFile: string;
397
+ }, {
398
+ unit: {
399
+ kind: "integration" | "mcp-server" | "tool" | "workflow" | "agent" | "network" | "other";
400
+ id: string;
401
+ };
402
+ issue: string;
403
+ sourceFile: string;
404
+ targetFile: string;
405
+ }>, "many">;
406
+ message: z.ZodString;
407
+ error: z.ZodOptional<z.ZodString>;
408
+ }, "strip", z.ZodTypeAny, {
409
+ message: string;
410
+ success: boolean;
411
+ copiedFiles: {
412
+ source: string;
413
+ destination: string;
414
+ unit: {
415
+ kind: "integration" | "mcp-server" | "tool" | "workflow" | "agent" | "network" | "other";
416
+ id: string;
417
+ };
418
+ }[];
419
+ conflicts: {
420
+ unit: {
421
+ kind: "integration" | "mcp-server" | "tool" | "workflow" | "agent" | "network" | "other";
422
+ id: string;
423
+ };
424
+ issue: string;
425
+ sourceFile: string;
426
+ targetFile: string;
427
+ }[];
428
+ error?: string | undefined;
429
+ }, {
430
+ message: string;
431
+ success: boolean;
432
+ copiedFiles: {
433
+ source: string;
434
+ destination: string;
435
+ unit: {
436
+ kind: "integration" | "mcp-server" | "tool" | "workflow" | "agent" | "network" | "other";
437
+ id: string;
438
+ };
439
+ }[];
440
+ conflicts: {
441
+ unit: {
442
+ kind: "integration" | "mcp-server" | "tool" | "workflow" | "agent" | "network" | "other";
443
+ id: string;
444
+ };
445
+ issue: string;
446
+ sourceFile: string;
447
+ targetFile: string;
448
+ }[];
449
+ error?: string | undefined;
450
+ }>, z.ZodType<any, z.ZodTypeDef, any>, z.ZodType<any, z.ZodTypeDef, any>, import("@mastra/core").DefaultEngineType> | import("@mastra/core").Step<"intelligent-merge", z.ZodObject<{
451
+ conflicts: z.ZodArray<z.ZodObject<{
452
+ unit: z.ZodObject<{
453
+ kind: z.ZodEnum<["mcp-server", "tool", "workflow", "agent", "integration", "network", "other"]>;
454
+ id: z.ZodString;
455
+ }, "strip", z.ZodTypeAny, {
456
+ kind: "integration" | "mcp-server" | "tool" | "workflow" | "agent" | "network" | "other";
457
+ id: string;
458
+ }, {
459
+ kind: "integration" | "mcp-server" | "tool" | "workflow" | "agent" | "network" | "other";
460
+ id: string;
461
+ }>;
462
+ issue: z.ZodString;
463
+ sourceFile: z.ZodString;
464
+ targetFile: z.ZodString;
465
+ }, "strip", z.ZodTypeAny, {
466
+ unit: {
467
+ kind: "integration" | "mcp-server" | "tool" | "workflow" | "agent" | "network" | "other";
468
+ id: string;
469
+ };
470
+ issue: string;
471
+ sourceFile: string;
472
+ targetFile: string;
473
+ }, {
474
+ unit: {
475
+ kind: "integration" | "mcp-server" | "tool" | "workflow" | "agent" | "network" | "other";
476
+ id: string;
477
+ };
478
+ issue: string;
479
+ sourceFile: string;
480
+ targetFile: string;
481
+ }>, "many">;
482
+ copiedFiles: z.ZodArray<z.ZodObject<{
483
+ source: z.ZodString;
484
+ destination: z.ZodString;
485
+ unit: z.ZodObject<{
486
+ kind: z.ZodEnum<["mcp-server", "tool", "workflow", "agent", "integration", "network", "other"]>;
487
+ id: z.ZodString;
488
+ }, "strip", z.ZodTypeAny, {
489
+ kind: "integration" | "mcp-server" | "tool" | "workflow" | "agent" | "network" | "other";
490
+ id: string;
491
+ }, {
492
+ kind: "integration" | "mcp-server" | "tool" | "workflow" | "agent" | "network" | "other";
493
+ id: string;
494
+ }>;
495
+ }, "strip", z.ZodTypeAny, {
496
+ source: string;
497
+ destination: string;
498
+ unit: {
499
+ kind: "integration" | "mcp-server" | "tool" | "workflow" | "agent" | "network" | "other";
500
+ id: string;
501
+ };
502
+ }, {
503
+ source: string;
504
+ destination: string;
505
+ unit: {
506
+ kind: "integration" | "mcp-server" | "tool" | "workflow" | "agent" | "network" | "other";
507
+ id: string;
508
+ };
509
+ }>, "many">;
510
+ templateDir: z.ZodString;
511
+ commitSha: z.ZodString;
512
+ slug: z.ZodString;
513
+ targetPath: z.ZodOptional<z.ZodString>;
514
+ branchName: z.ZodOptional<z.ZodString>;
515
+ }, "strip", z.ZodTypeAny, {
516
+ slug: string;
517
+ commitSha: string;
518
+ templateDir: string;
519
+ copiedFiles: {
520
+ source: string;
521
+ destination: string;
522
+ unit: {
523
+ kind: "integration" | "mcp-server" | "tool" | "workflow" | "agent" | "network" | "other";
524
+ id: string;
525
+ };
526
+ }[];
527
+ conflicts: {
528
+ unit: {
529
+ kind: "integration" | "mcp-server" | "tool" | "workflow" | "agent" | "network" | "other";
530
+ id: string;
531
+ };
532
+ issue: string;
533
+ sourceFile: string;
534
+ targetFile: string;
535
+ }[];
536
+ targetPath?: string | undefined;
537
+ branchName?: string | undefined;
538
+ }, {
539
+ slug: string;
540
+ commitSha: string;
541
+ templateDir: string;
542
+ copiedFiles: {
543
+ source: string;
544
+ destination: string;
545
+ unit: {
546
+ kind: "integration" | "mcp-server" | "tool" | "workflow" | "agent" | "network" | "other";
547
+ id: string;
548
+ };
549
+ }[];
550
+ conflicts: {
551
+ unit: {
552
+ kind: "integration" | "mcp-server" | "tool" | "workflow" | "agent" | "network" | "other";
553
+ id: string;
554
+ };
555
+ issue: string;
556
+ sourceFile: string;
557
+ targetFile: string;
558
+ }[];
559
+ targetPath?: string | undefined;
560
+ branchName?: string | undefined;
561
+ }>, z.ZodObject<{
562
+ success: z.ZodBoolean;
563
+ applied: z.ZodBoolean;
564
+ message: z.ZodString;
565
+ conflictsResolved: z.ZodArray<z.ZodObject<{
566
+ unit: z.ZodObject<{
567
+ kind: z.ZodEnum<["mcp-server", "tool", "workflow", "agent", "integration", "network", "other"]>;
568
+ id: z.ZodString;
569
+ }, "strip", z.ZodTypeAny, {
570
+ kind: "integration" | "mcp-server" | "tool" | "workflow" | "agent" | "network" | "other";
571
+ id: string;
572
+ }, {
573
+ kind: "integration" | "mcp-server" | "tool" | "workflow" | "agent" | "network" | "other";
574
+ id: string;
575
+ }>;
576
+ issue: z.ZodString;
577
+ resolution: z.ZodString;
578
+ }, "strip", z.ZodTypeAny, {
579
+ unit: {
580
+ kind: "integration" | "mcp-server" | "tool" | "workflow" | "agent" | "network" | "other";
581
+ id: string;
582
+ };
583
+ issue: string;
584
+ resolution: string;
585
+ }, {
586
+ unit: {
587
+ kind: "integration" | "mcp-server" | "tool" | "workflow" | "agent" | "network" | "other";
588
+ id: string;
589
+ };
590
+ issue: string;
591
+ resolution: string;
592
+ }>, "many">;
593
+ error: z.ZodOptional<z.ZodString>;
594
+ }, "strip", z.ZodTypeAny, {
595
+ message: string;
596
+ success: boolean;
597
+ applied: boolean;
598
+ conflictsResolved: {
599
+ unit: {
600
+ kind: "integration" | "mcp-server" | "tool" | "workflow" | "agent" | "network" | "other";
601
+ id: string;
602
+ };
603
+ issue: string;
604
+ resolution: string;
605
+ }[];
606
+ error?: string | undefined;
607
+ }, {
608
+ message: string;
609
+ success: boolean;
610
+ applied: boolean;
611
+ conflictsResolved: {
612
+ unit: {
613
+ kind: "integration" | "mcp-server" | "tool" | "workflow" | "agent" | "network" | "other";
614
+ id: string;
615
+ };
616
+ issue: string;
617
+ resolution: string;
618
+ }[];
619
+ error?: string | undefined;
620
+ }>, 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<{
621
+ commitSha: z.ZodString;
622
+ slug: z.ZodString;
623
+ targetPath: z.ZodOptional<z.ZodString>;
624
+ templateDir: z.ZodString;
625
+ orderedUnits: z.ZodArray<z.ZodObject<{
626
+ kind: z.ZodEnum<["mcp-server", "tool", "workflow", "agent", "integration", "network", "other"]>;
627
+ id: z.ZodString;
628
+ file: z.ZodString;
629
+ }, "strip", z.ZodTypeAny, {
630
+ kind: "integration" | "mcp-server" | "tool" | "workflow" | "agent" | "network" | "other";
631
+ id: string;
632
+ file: string;
633
+ }, {
634
+ kind: "integration" | "mcp-server" | "tool" | "workflow" | "agent" | "network" | "other";
635
+ id: string;
636
+ file: string;
637
+ }>, "many">;
638
+ copiedFiles: z.ZodArray<z.ZodObject<{
639
+ source: z.ZodString;
640
+ destination: z.ZodString;
641
+ unit: z.ZodObject<{
642
+ kind: z.ZodEnum<["mcp-server", "tool", "workflow", "agent", "integration", "network", "other"]>;
643
+ id: z.ZodString;
644
+ }, "strip", z.ZodTypeAny, {
645
+ kind: "integration" | "mcp-server" | "tool" | "workflow" | "agent" | "network" | "other";
646
+ id: string;
647
+ }, {
648
+ kind: "integration" | "mcp-server" | "tool" | "workflow" | "agent" | "network" | "other";
649
+ id: string;
650
+ }>;
651
+ }, "strip", z.ZodTypeAny, {
652
+ source: string;
653
+ destination: string;
654
+ unit: {
655
+ kind: "integration" | "mcp-server" | "tool" | "workflow" | "agent" | "network" | "other";
656
+ id: string;
657
+ };
658
+ }, {
659
+ source: string;
660
+ destination: string;
661
+ unit: {
662
+ kind: "integration" | "mcp-server" | "tool" | "workflow" | "agent" | "network" | "other";
663
+ id: string;
664
+ };
665
+ }>, "many">;
666
+ conflictsResolved: z.ZodOptional<z.ZodArray<z.ZodObject<{
667
+ unit: z.ZodObject<{
668
+ kind: z.ZodEnum<["mcp-server", "tool", "workflow", "agent", "integration", "network", "other"]>;
669
+ id: z.ZodString;
670
+ }, "strip", z.ZodTypeAny, {
671
+ kind: "integration" | "mcp-server" | "tool" | "workflow" | "agent" | "network" | "other";
672
+ id: string;
673
+ }, {
674
+ kind: "integration" | "mcp-server" | "tool" | "workflow" | "agent" | "network" | "other";
675
+ id: string;
676
+ }>;
677
+ issue: z.ZodString;
678
+ resolution: z.ZodString;
679
+ }, "strip", z.ZodTypeAny, {
680
+ unit: {
681
+ kind: "integration" | "mcp-server" | "tool" | "workflow" | "agent" | "network" | "other";
682
+ id: string;
683
+ };
684
+ issue: string;
685
+ resolution: string;
686
+ }, {
687
+ unit: {
688
+ kind: "integration" | "mcp-server" | "tool" | "workflow" | "agent" | "network" | "other";
689
+ id: string;
690
+ };
691
+ issue: string;
692
+ resolution: string;
693
+ }>, "many">>;
694
+ maxIterations: z.ZodDefault<z.ZodOptional<z.ZodNumber>>;
695
+ }, "strip", z.ZodTypeAny, {
696
+ slug: string;
697
+ commitSha: string;
698
+ templateDir: string;
699
+ orderedUnits: {
700
+ kind: "integration" | "mcp-server" | "tool" | "workflow" | "agent" | "network" | "other";
701
+ id: string;
702
+ file: string;
703
+ }[];
704
+ copiedFiles: {
705
+ source: string;
706
+ destination: string;
707
+ unit: {
708
+ kind: "integration" | "mcp-server" | "tool" | "workflow" | "agent" | "network" | "other";
709
+ id: string;
710
+ };
711
+ }[];
712
+ maxIterations: number;
713
+ targetPath?: string | undefined;
714
+ conflictsResolved?: {
715
+ unit: {
716
+ kind: "integration" | "mcp-server" | "tool" | "workflow" | "agent" | "network" | "other";
717
+ id: string;
718
+ };
719
+ issue: string;
720
+ resolution: string;
721
+ }[] | undefined;
722
+ }, {
723
+ slug: string;
724
+ commitSha: string;
725
+ templateDir: string;
726
+ orderedUnits: {
727
+ kind: "integration" | "mcp-server" | "tool" | "workflow" | "agent" | "network" | "other";
728
+ id: string;
729
+ file: string;
730
+ }[];
731
+ copiedFiles: {
732
+ source: string;
733
+ destination: string;
734
+ unit: {
735
+ kind: "integration" | "mcp-server" | "tool" | "workflow" | "agent" | "network" | "other";
736
+ id: string;
737
+ };
738
+ }[];
739
+ targetPath?: string | undefined;
740
+ conflictsResolved?: {
741
+ unit: {
742
+ kind: "integration" | "mcp-server" | "tool" | "workflow" | "agent" | "network" | "other";
743
+ id: string;
744
+ };
745
+ issue: string;
746
+ resolution: string;
747
+ }[] | undefined;
748
+ maxIterations?: number | undefined;
749
+ }>, z.ZodObject<{
750
+ success: z.ZodBoolean;
751
+ applied: z.ZodBoolean;
752
+ message: z.ZodString;
753
+ validationResults: z.ZodObject<{
754
+ valid: z.ZodBoolean;
755
+ errorsFixed: z.ZodNumber;
756
+ remainingErrors: z.ZodNumber;
757
+ errors: z.ZodOptional<z.ZodArray<z.ZodAny, "many">>;
758
+ }, "strip", z.ZodTypeAny, {
759
+ valid: boolean;
760
+ errorsFixed: number;
761
+ remainingErrors: number;
762
+ errors?: any[] | undefined;
763
+ }, {
764
+ valid: boolean;
765
+ errorsFixed: number;
766
+ remainingErrors: number;
767
+ errors?: any[] | undefined;
768
+ }>;
769
+ error: z.ZodOptional<z.ZodString>;
770
+ }, "strip", z.ZodTypeAny, {
771
+ message: string;
772
+ success: boolean;
773
+ applied: boolean;
774
+ validationResults: {
775
+ valid: boolean;
776
+ errorsFixed: number;
777
+ remainingErrors: number;
778
+ errors?: any[] | undefined;
779
+ };
780
+ error?: string | undefined;
781
+ }, {
782
+ message: string;
783
+ success: boolean;
784
+ applied: boolean;
785
+ validationResults: {
786
+ valid: boolean;
787
+ errorsFixed: number;
788
+ remainingErrors: number;
789
+ errors?: any[] | undefined;
790
+ };
791
+ error?: string | undefined;
792
+ }>, z.ZodType<any, z.ZodTypeDef, any>, z.ZodType<any, z.ZodTypeDef, any>, import("@mastra/core").DefaultEngineType>)[], "agent-builder-template", z.ZodObject<{
793
+ repo: z.ZodString;
794
+ ref: z.ZodOptional<z.ZodString>;
795
+ slug: z.ZodOptional<z.ZodString>;
796
+ targetPath: z.ZodOptional<z.ZodString>;
797
+ variables: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
798
+ }, "strip", z.ZodTypeAny, {
799
+ repo: string;
800
+ slug?: string | undefined;
801
+ ref?: string | undefined;
802
+ targetPath?: string | undefined;
803
+ variables?: Record<string, string> | undefined;
804
+ }, {
805
+ repo: string;
806
+ slug?: string | undefined;
807
+ ref?: string | undefined;
808
+ targetPath?: string | undefined;
809
+ variables?: Record<string, string> | undefined;
810
+ }>, z.ZodObject<{
811
+ success: z.ZodBoolean;
812
+ applied: z.ZodBoolean;
813
+ branchName: z.ZodOptional<z.ZodString>;
814
+ message: z.ZodString;
815
+ validationResults: z.ZodOptional<z.ZodObject<{
816
+ valid: z.ZodBoolean;
817
+ errorsFixed: z.ZodNumber;
818
+ remainingErrors: z.ZodNumber;
819
+ errors: z.ZodOptional<z.ZodArray<z.ZodAny, "many">>;
820
+ }, "strip", z.ZodTypeAny, {
821
+ valid: boolean;
822
+ errorsFixed: number;
823
+ remainingErrors: number;
824
+ errors?: any[] | undefined;
825
+ }, {
826
+ valid: boolean;
827
+ errorsFixed: number;
828
+ remainingErrors: number;
829
+ errors?: any[] | undefined;
830
+ }>>;
831
+ error: z.ZodOptional<z.ZodString>;
832
+ errors: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
833
+ stepResults: z.ZodOptional<z.ZodObject<{
834
+ cloneSuccess: z.ZodOptional<z.ZodBoolean>;
835
+ analyzeSuccess: z.ZodOptional<z.ZodBoolean>;
836
+ discoverSuccess: z.ZodOptional<z.ZodBoolean>;
837
+ orderSuccess: z.ZodOptional<z.ZodBoolean>;
838
+ prepareBranchSuccess: z.ZodOptional<z.ZodBoolean>;
839
+ packageMergeSuccess: z.ZodOptional<z.ZodBoolean>;
840
+ installSuccess: z.ZodOptional<z.ZodBoolean>;
841
+ copySuccess: z.ZodOptional<z.ZodBoolean>;
842
+ mergeSuccess: z.ZodOptional<z.ZodBoolean>;
843
+ validationSuccess: z.ZodOptional<z.ZodBoolean>;
844
+ filesCopied: z.ZodNumber;
845
+ conflictsSkipped: z.ZodNumber;
846
+ conflictsResolved: z.ZodNumber;
847
+ }, "strip", z.ZodTypeAny, {
848
+ conflictsResolved: number;
849
+ filesCopied: number;
850
+ conflictsSkipped: number;
851
+ cloneSuccess?: boolean | undefined;
852
+ analyzeSuccess?: boolean | undefined;
853
+ discoverSuccess?: boolean | undefined;
854
+ orderSuccess?: boolean | undefined;
855
+ prepareBranchSuccess?: boolean | undefined;
856
+ packageMergeSuccess?: boolean | undefined;
857
+ installSuccess?: boolean | undefined;
858
+ copySuccess?: boolean | undefined;
859
+ mergeSuccess?: boolean | undefined;
860
+ validationSuccess?: boolean | undefined;
861
+ }, {
862
+ conflictsResolved: number;
863
+ filesCopied: number;
864
+ conflictsSkipped: number;
865
+ cloneSuccess?: boolean | undefined;
866
+ analyzeSuccess?: boolean | undefined;
867
+ discoverSuccess?: boolean | undefined;
868
+ orderSuccess?: boolean | undefined;
869
+ prepareBranchSuccess?: boolean | undefined;
870
+ packageMergeSuccess?: boolean | undefined;
871
+ installSuccess?: boolean | undefined;
872
+ copySuccess?: boolean | undefined;
873
+ mergeSuccess?: boolean | undefined;
874
+ validationSuccess?: boolean | undefined;
875
+ }>>;
876
+ }, "strip", z.ZodTypeAny, {
877
+ message: string;
878
+ success: boolean;
879
+ applied: boolean;
880
+ error?: string | undefined;
881
+ branchName?: string | undefined;
882
+ errors?: string[] | undefined;
883
+ validationResults?: {
884
+ valid: boolean;
885
+ errorsFixed: number;
886
+ remainingErrors: number;
887
+ errors?: any[] | undefined;
888
+ } | 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
+ }, {
905
+ message: string;
906
+ success: boolean;
907
+ applied: boolean;
908
+ error?: string | undefined;
909
+ branchName?: string | undefined;
910
+ errors?: string[] | undefined;
911
+ validationResults?: {
912
+ valid: boolean;
913
+ errorsFixed: number;
914
+ remainingErrors: number;
915
+ errors?: any[] | undefined;
916
+ } | undefined;
917
+ stepResults?: {
918
+ conflictsResolved: number;
919
+ filesCopied: number;
920
+ conflictsSkipped: number;
921
+ cloneSuccess?: boolean | undefined;
922
+ analyzeSuccess?: boolean | undefined;
923
+ discoverSuccess?: boolean | undefined;
924
+ orderSuccess?: boolean | undefined;
925
+ prepareBranchSuccess?: boolean | undefined;
926
+ packageMergeSuccess?: boolean | undefined;
927
+ installSuccess?: boolean | undefined;
928
+ copySuccess?: boolean | undefined;
929
+ mergeSuccess?: boolean | undefined;
930
+ validationSuccess?: boolean | undefined;
931
+ } | undefined;
932
+ }>, z.ZodObject<{
933
+ success: z.ZodBoolean;
934
+ applied: z.ZodBoolean;
935
+ branchName: z.ZodOptional<z.ZodString>;
936
+ message: z.ZodString;
937
+ validationResults: z.ZodOptional<z.ZodObject<{
938
+ valid: z.ZodBoolean;
939
+ errorsFixed: z.ZodNumber;
940
+ remainingErrors: z.ZodNumber;
941
+ errors: z.ZodOptional<z.ZodArray<z.ZodAny, "many">>;
942
+ }, "strip", z.ZodTypeAny, {
943
+ valid: boolean;
944
+ errorsFixed: number;
945
+ remainingErrors: number;
946
+ errors?: any[] | undefined;
947
+ }, {
948
+ valid: boolean;
949
+ errorsFixed: number;
950
+ remainingErrors: number;
951
+ errors?: any[] | undefined;
952
+ }>>;
953
+ error: z.ZodOptional<z.ZodString>;
954
+ errors: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
955
+ stepResults: z.ZodOptional<z.ZodObject<{
956
+ cloneSuccess: z.ZodOptional<z.ZodBoolean>;
957
+ analyzeSuccess: z.ZodOptional<z.ZodBoolean>;
958
+ discoverSuccess: z.ZodOptional<z.ZodBoolean>;
959
+ orderSuccess: z.ZodOptional<z.ZodBoolean>;
960
+ prepareBranchSuccess: z.ZodOptional<z.ZodBoolean>;
961
+ packageMergeSuccess: z.ZodOptional<z.ZodBoolean>;
962
+ installSuccess: z.ZodOptional<z.ZodBoolean>;
963
+ copySuccess: z.ZodOptional<z.ZodBoolean>;
964
+ mergeSuccess: z.ZodOptional<z.ZodBoolean>;
965
+ validationSuccess: z.ZodOptional<z.ZodBoolean>;
966
+ filesCopied: z.ZodNumber;
967
+ conflictsSkipped: z.ZodNumber;
968
+ conflictsResolved: z.ZodNumber;
969
+ }, "strip", z.ZodTypeAny, {
970
+ conflictsResolved: number;
971
+ filesCopied: number;
972
+ conflictsSkipped: number;
973
+ cloneSuccess?: boolean | undefined;
974
+ analyzeSuccess?: boolean | undefined;
975
+ discoverSuccess?: boolean | undefined;
976
+ orderSuccess?: boolean | undefined;
977
+ prepareBranchSuccess?: boolean | undefined;
978
+ packageMergeSuccess?: boolean | undefined;
979
+ installSuccess?: boolean | undefined;
980
+ copySuccess?: boolean | undefined;
981
+ mergeSuccess?: boolean | undefined;
982
+ validationSuccess?: boolean | undefined;
983
+ }, {
984
+ conflictsResolved: number;
985
+ filesCopied: number;
986
+ conflictsSkipped: number;
987
+ cloneSuccess?: boolean | undefined;
988
+ analyzeSuccess?: boolean | undefined;
989
+ discoverSuccess?: boolean | undefined;
990
+ orderSuccess?: boolean | undefined;
991
+ prepareBranchSuccess?: boolean | undefined;
992
+ packageMergeSuccess?: boolean | undefined;
993
+ installSuccess?: boolean | undefined;
994
+ copySuccess?: boolean | undefined;
995
+ mergeSuccess?: boolean | undefined;
996
+ validationSuccess?: boolean | undefined;
997
+ }>>;
998
+ }, "strip", z.ZodTypeAny, {
999
+ message: string;
1000
+ success: boolean;
1001
+ applied: boolean;
1002
+ error?: string | undefined;
1003
+ branchName?: string | undefined;
1004
+ errors?: string[] | undefined;
1005
+ validationResults?: {
1006
+ valid: boolean;
1007
+ errorsFixed: number;
1008
+ remainingErrors: number;
1009
+ errors?: any[] | undefined;
1010
+ } | undefined;
1011
+ stepResults?: {
1012
+ conflictsResolved: number;
1013
+ filesCopied: number;
1014
+ conflictsSkipped: number;
1015
+ cloneSuccess?: boolean | undefined;
1016
+ analyzeSuccess?: boolean | undefined;
1017
+ discoverSuccess?: boolean | undefined;
1018
+ orderSuccess?: boolean | undefined;
1019
+ prepareBranchSuccess?: boolean | undefined;
1020
+ packageMergeSuccess?: boolean | undefined;
1021
+ installSuccess?: boolean | undefined;
1022
+ copySuccess?: boolean | undefined;
1023
+ mergeSuccess?: boolean | undefined;
1024
+ validationSuccess?: boolean | undefined;
1025
+ } | undefined;
1026
+ }, {
1027
+ message: string;
1028
+ success: boolean;
1029
+ applied: boolean;
1030
+ error?: string | undefined;
1031
+ branchName?: string | undefined;
1032
+ errors?: string[] | undefined;
1033
+ validationResults?: {
1034
+ valid: boolean;
1035
+ errorsFixed: number;
1036
+ remainingErrors: number;
1037
+ errors?: any[] | undefined;
1038
+ } | undefined;
1039
+ stepResults?: {
1040
+ conflictsResolved: number;
1041
+ filesCopied: number;
1042
+ conflictsSkipped: number;
1043
+ cloneSuccess?: boolean | undefined;
1044
+ analyzeSuccess?: boolean | undefined;
1045
+ discoverSuccess?: boolean | undefined;
1046
+ orderSuccess?: boolean | undefined;
1047
+ prepareBranchSuccess?: boolean | undefined;
1048
+ packageMergeSuccess?: boolean | undefined;
1049
+ installSuccess?: boolean | undefined;
1050
+ copySuccess?: boolean | undefined;
1051
+ mergeSuccess?: boolean | undefined;
1052
+ validationSuccess?: boolean | undefined;
1053
+ } | undefined;
1054
+ }>>;
1055
+ export declare function mergeTemplateBySlug(slug: string, targetPath?: string): Promise<import("@mastra/core").WorkflowResult<z.ZodObject<{
1056
+ success: z.ZodBoolean;
1057
+ applied: z.ZodBoolean;
1058
+ branchName: z.ZodOptional<z.ZodString>;
1059
+ message: z.ZodString;
1060
+ validationResults: z.ZodOptional<z.ZodObject<{
1061
+ valid: z.ZodBoolean;
1062
+ errorsFixed: z.ZodNumber;
1063
+ remainingErrors: z.ZodNumber;
1064
+ errors: z.ZodOptional<z.ZodArray<z.ZodAny, "many">>;
1065
+ }, "strip", z.ZodTypeAny, {
1066
+ valid: boolean;
1067
+ errorsFixed: number;
1068
+ remainingErrors: number;
1069
+ errors?: any[] | undefined;
1070
+ }, {
1071
+ valid: boolean;
1072
+ errorsFixed: number;
1073
+ remainingErrors: number;
1074
+ errors?: any[] | undefined;
1075
+ }>>;
1076
+ error: z.ZodOptional<z.ZodString>;
1077
+ errors: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
1078
+ stepResults: z.ZodOptional<z.ZodObject<{
1079
+ cloneSuccess: z.ZodOptional<z.ZodBoolean>;
1080
+ analyzeSuccess: z.ZodOptional<z.ZodBoolean>;
1081
+ discoverSuccess: z.ZodOptional<z.ZodBoolean>;
1082
+ orderSuccess: z.ZodOptional<z.ZodBoolean>;
1083
+ prepareBranchSuccess: z.ZodOptional<z.ZodBoolean>;
1084
+ packageMergeSuccess: z.ZodOptional<z.ZodBoolean>;
1085
+ installSuccess: z.ZodOptional<z.ZodBoolean>;
1086
+ copySuccess: z.ZodOptional<z.ZodBoolean>;
1087
+ mergeSuccess: z.ZodOptional<z.ZodBoolean>;
1088
+ validationSuccess: z.ZodOptional<z.ZodBoolean>;
1089
+ filesCopied: z.ZodNumber;
1090
+ conflictsSkipped: z.ZodNumber;
1091
+ conflictsResolved: z.ZodNumber;
1092
+ }, "strip", z.ZodTypeAny, {
1093
+ conflictsResolved: number;
1094
+ filesCopied: number;
1095
+ conflictsSkipped: number;
1096
+ cloneSuccess?: boolean | undefined;
1097
+ analyzeSuccess?: boolean | undefined;
1098
+ discoverSuccess?: boolean | undefined;
1099
+ orderSuccess?: boolean | undefined;
1100
+ prepareBranchSuccess?: boolean | undefined;
1101
+ packageMergeSuccess?: boolean | undefined;
1102
+ installSuccess?: boolean | undefined;
1103
+ copySuccess?: boolean | undefined;
1104
+ mergeSuccess?: boolean | undefined;
1105
+ validationSuccess?: boolean | undefined;
1106
+ }, {
1107
+ conflictsResolved: number;
1108
+ filesCopied: number;
1109
+ conflictsSkipped: number;
1110
+ cloneSuccess?: boolean | undefined;
1111
+ analyzeSuccess?: boolean | undefined;
1112
+ discoverSuccess?: boolean | undefined;
1113
+ orderSuccess?: boolean | undefined;
1114
+ prepareBranchSuccess?: boolean | undefined;
1115
+ packageMergeSuccess?: boolean | undefined;
1116
+ installSuccess?: boolean | undefined;
1117
+ copySuccess?: boolean | undefined;
1118
+ mergeSuccess?: boolean | undefined;
1119
+ validationSuccess?: boolean | undefined;
1120
+ }>>;
1121
+ }, "strip", z.ZodTypeAny, {
1122
+ message: string;
1123
+ success: boolean;
1124
+ applied: boolean;
1125
+ error?: string | undefined;
1126
+ branchName?: string | undefined;
1127
+ errors?: string[] | undefined;
1128
+ validationResults?: {
1129
+ valid: boolean;
1130
+ errorsFixed: number;
1131
+ remainingErrors: number;
1132
+ errors?: any[] | undefined;
1133
+ } | undefined;
1134
+ stepResults?: {
1135
+ conflictsResolved: number;
1136
+ filesCopied: number;
1137
+ conflictsSkipped: number;
1138
+ cloneSuccess?: boolean | undefined;
1139
+ analyzeSuccess?: boolean | undefined;
1140
+ discoverSuccess?: boolean | undefined;
1141
+ orderSuccess?: boolean | undefined;
1142
+ prepareBranchSuccess?: boolean | undefined;
1143
+ packageMergeSuccess?: boolean | undefined;
1144
+ installSuccess?: boolean | undefined;
1145
+ copySuccess?: boolean | undefined;
1146
+ mergeSuccess?: boolean | undefined;
1147
+ validationSuccess?: boolean | undefined;
1148
+ } | undefined;
1149
+ }, {
1150
+ message: string;
1151
+ success: boolean;
1152
+ applied: boolean;
1153
+ error?: string | undefined;
1154
+ branchName?: string | undefined;
1155
+ errors?: string[] | undefined;
1156
+ validationResults?: {
1157
+ valid: boolean;
1158
+ errorsFixed: number;
1159
+ remainingErrors: number;
1160
+ errors?: any[] | undefined;
1161
+ } | undefined;
1162
+ stepResults?: {
1163
+ conflictsResolved: number;
1164
+ filesCopied: number;
1165
+ conflictsSkipped: number;
1166
+ cloneSuccess?: boolean | undefined;
1167
+ analyzeSuccess?: boolean | undefined;
1168
+ discoverSuccess?: boolean | undefined;
1169
+ orderSuccess?: boolean | undefined;
1170
+ prepareBranchSuccess?: boolean | undefined;
1171
+ packageMergeSuccess?: boolean | undefined;
1172
+ installSuccess?: boolean | undefined;
1173
+ copySuccess?: boolean | undefined;
1174
+ mergeSuccess?: boolean | undefined;
1175
+ validationSuccess?: boolean | undefined;
1176
+ } | undefined;
1177
+ }>, (import("@mastra/core").Step<"clone-template", z.ZodObject<{
1178
+ repo: z.ZodString;
1179
+ ref: z.ZodOptional<z.ZodString>;
1180
+ slug: z.ZodOptional<z.ZodString>;
1181
+ targetPath: z.ZodOptional<z.ZodString>;
1182
+ variables: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
1183
+ }, "strip", z.ZodTypeAny, {
1184
+ repo: string;
1185
+ slug?: string | undefined;
1186
+ ref?: string | undefined;
1187
+ targetPath?: string | undefined;
1188
+ variables?: Record<string, string> | undefined;
1189
+ }, {
1190
+ repo: string;
1191
+ slug?: string | undefined;
1192
+ ref?: string | undefined;
1193
+ targetPath?: string | undefined;
1194
+ variables?: Record<string, string> | undefined;
1195
+ }>, z.ZodObject<{
1196
+ templateDir: z.ZodString;
1197
+ commitSha: z.ZodString;
1198
+ slug: z.ZodString;
1199
+ success: z.ZodOptional<z.ZodBoolean>;
1200
+ error: z.ZodOptional<z.ZodString>;
1201
+ targetPath: z.ZodOptional<z.ZodString>;
1202
+ }, "strip", z.ZodTypeAny, {
1203
+ slug: string;
1204
+ commitSha: string;
1205
+ templateDir: string;
1206
+ targetPath?: string | undefined;
1207
+ success?: boolean | undefined;
1208
+ error?: string | undefined;
1209
+ }, {
1210
+ slug: string;
1211
+ commitSha: string;
1212
+ templateDir: string;
1213
+ targetPath?: string | undefined;
1214
+ success?: boolean | undefined;
1215
+ error?: string | undefined;
1216
+ }>, z.ZodType<any, z.ZodTypeDef, any>, z.ZodType<any, z.ZodTypeDef, any>, import("@mastra/core").DefaultEngineType> | import("@mastra/core").Step<"analyze-package", z.ZodObject<{
1217
+ templateDir: z.ZodString;
1218
+ commitSha: z.ZodString;
1219
+ slug: z.ZodString;
1220
+ success: z.ZodOptional<z.ZodBoolean>;
1221
+ error: z.ZodOptional<z.ZodString>;
1222
+ targetPath: z.ZodOptional<z.ZodString>;
1223
+ }, "strip", z.ZodTypeAny, {
1224
+ slug: string;
1225
+ commitSha: string;
1226
+ templateDir: string;
1227
+ targetPath?: string | undefined;
1228
+ success?: boolean | undefined;
1229
+ error?: string | undefined;
1230
+ }, {
1231
+ slug: string;
1232
+ commitSha: string;
1233
+ templateDir: string;
1234
+ targetPath?: string | undefined;
1235
+ success?: boolean | undefined;
1236
+ error?: string | undefined;
1237
+ }>, z.ZodObject<{
1238
+ name: z.ZodOptional<z.ZodString>;
1239
+ version: z.ZodOptional<z.ZodString>;
1240
+ description: z.ZodOptional<z.ZodString>;
1241
+ dependencies: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
1242
+ devDependencies: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
1243
+ peerDependencies: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
1244
+ scripts: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
1245
+ success: z.ZodOptional<z.ZodBoolean>;
1246
+ error: z.ZodOptional<z.ZodString>;
1247
+ }, "strip", z.ZodTypeAny, {
1248
+ description?: string | undefined;
1249
+ success?: boolean | undefined;
1250
+ error?: string | undefined;
1251
+ name?: string | undefined;
1252
+ version?: string | undefined;
1253
+ dependencies?: Record<string, string> | undefined;
1254
+ devDependencies?: Record<string, string> | undefined;
1255
+ peerDependencies?: Record<string, string> | undefined;
1256
+ scripts?: Record<string, string> | undefined;
1257
+ }, {
1258
+ description?: string | undefined;
1259
+ success?: boolean | undefined;
1260
+ error?: string | undefined;
1261
+ name?: string | undefined;
1262
+ version?: string | undefined;
1263
+ dependencies?: Record<string, string> | undefined;
1264
+ devDependencies?: Record<string, string> | undefined;
1265
+ peerDependencies?: Record<string, string> | undefined;
1266
+ scripts?: Record<string, string> | undefined;
1267
+ }>, z.ZodType<any, z.ZodTypeDef, any>, z.ZodType<any, z.ZodTypeDef, any>, import("@mastra/core").DefaultEngineType> | import("@mastra/core").Step<"discover-units", z.ZodObject<{
1268
+ templateDir: z.ZodString;
1269
+ commitSha: z.ZodString;
1270
+ slug: z.ZodString;
1271
+ success: z.ZodOptional<z.ZodBoolean>;
1272
+ error: z.ZodOptional<z.ZodString>;
1273
+ targetPath: z.ZodOptional<z.ZodString>;
1274
+ }, "strip", z.ZodTypeAny, {
1275
+ slug: string;
1276
+ commitSha: string;
1277
+ templateDir: string;
1278
+ targetPath?: string | undefined;
1279
+ success?: boolean | undefined;
1280
+ error?: string | undefined;
1281
+ }, {
1282
+ slug: string;
1283
+ commitSha: string;
1284
+ templateDir: string;
1285
+ targetPath?: string | undefined;
1286
+ success?: boolean | undefined;
1287
+ error?: string | undefined;
1288
+ }>, z.ZodObject<{
1289
+ units: z.ZodArray<z.ZodObject<{
1290
+ kind: z.ZodEnum<["mcp-server", "tool", "workflow", "agent", "integration", "network", "other"]>;
1291
+ id: z.ZodString;
1292
+ file: z.ZodString;
1293
+ }, "strip", z.ZodTypeAny, {
1294
+ kind: "integration" | "mcp-server" | "tool" | "workflow" | "agent" | "network" | "other";
1295
+ id: string;
1296
+ file: string;
1297
+ }, {
1298
+ kind: "integration" | "mcp-server" | "tool" | "workflow" | "agent" | "network" | "other";
1299
+ id: string;
1300
+ file: string;
1301
+ }>, "many">;
1302
+ success: z.ZodOptional<z.ZodBoolean>;
1303
+ error: z.ZodOptional<z.ZodString>;
1304
+ }, "strip", z.ZodTypeAny, {
1305
+ units: {
1306
+ kind: "integration" | "mcp-server" | "tool" | "workflow" | "agent" | "network" | "other";
1307
+ id: string;
1308
+ file: string;
1309
+ }[];
1310
+ success?: boolean | undefined;
1311
+ error?: string | undefined;
1312
+ }, {
1313
+ units: {
1314
+ kind: "integration" | "mcp-server" | "tool" | "workflow" | "agent" | "network" | "other";
1315
+ id: string;
1316
+ file: string;
1317
+ }[];
1318
+ success?: boolean | undefined;
1319
+ error?: string | undefined;
1320
+ }>, z.ZodType<any, z.ZodTypeDef, any>, z.ZodType<any, z.ZodTypeDef, any>, import("@mastra/core").DefaultEngineType> | import("@mastra/core").Step<"order-units", z.ZodObject<{
1321
+ units: z.ZodArray<z.ZodObject<{
1322
+ kind: z.ZodEnum<["mcp-server", "tool", "workflow", "agent", "integration", "network", "other"]>;
1323
+ id: z.ZodString;
1324
+ file: z.ZodString;
1325
+ }, "strip", z.ZodTypeAny, {
1326
+ kind: "integration" | "mcp-server" | "tool" | "workflow" | "agent" | "network" | "other";
1327
+ id: string;
1328
+ file: string;
1329
+ }, {
1330
+ kind: "integration" | "mcp-server" | "tool" | "workflow" | "agent" | "network" | "other";
1331
+ id: string;
1332
+ file: string;
1333
+ }>, "many">;
1334
+ success: z.ZodOptional<z.ZodBoolean>;
1335
+ error: z.ZodOptional<z.ZodString>;
1336
+ }, "strip", z.ZodTypeAny, {
1337
+ units: {
1338
+ kind: "integration" | "mcp-server" | "tool" | "workflow" | "agent" | "network" | "other";
1339
+ id: string;
1340
+ file: string;
1341
+ }[];
1342
+ success?: boolean | undefined;
1343
+ error?: string | undefined;
1344
+ }, {
1345
+ units: {
1346
+ kind: "integration" | "mcp-server" | "tool" | "workflow" | "agent" | "network" | "other";
1347
+ id: string;
1348
+ file: string;
1349
+ }[];
1350
+ success?: boolean | undefined;
1351
+ error?: string | undefined;
1352
+ }>, z.ZodObject<{
1353
+ orderedUnits: z.ZodArray<z.ZodObject<{
1354
+ kind: z.ZodEnum<["mcp-server", "tool", "workflow", "agent", "integration", "network", "other"]>;
1355
+ id: z.ZodString;
1356
+ file: z.ZodString;
1357
+ }, "strip", z.ZodTypeAny, {
1358
+ kind: "integration" | "mcp-server" | "tool" | "workflow" | "agent" | "network" | "other";
1359
+ id: string;
1360
+ file: string;
1361
+ }, {
1362
+ kind: "integration" | "mcp-server" | "tool" | "workflow" | "agent" | "network" | "other";
1363
+ id: string;
1364
+ file: string;
1365
+ }>, "many">;
1366
+ success: z.ZodOptional<z.ZodBoolean>;
1367
+ error: z.ZodOptional<z.ZodString>;
1368
+ }, "strip", z.ZodTypeAny, {
1369
+ orderedUnits: {
1370
+ kind: "integration" | "mcp-server" | "tool" | "workflow" | "agent" | "network" | "other";
1371
+ id: string;
1372
+ file: string;
1373
+ }[];
1374
+ success?: boolean | undefined;
1375
+ error?: string | undefined;
1376
+ }, {
1377
+ orderedUnits: {
1378
+ kind: "integration" | "mcp-server" | "tool" | "workflow" | "agent" | "network" | "other";
1379
+ id: string;
1380
+ file: string;
1381
+ }[];
1382
+ success?: boolean | undefined;
1383
+ error?: string | undefined;
1384
+ }>, z.ZodType<any, z.ZodTypeDef, any>, z.ZodType<any, z.ZodTypeDef, any>, import("@mastra/core").DefaultEngineType> | import("@mastra/core").Step<"package-merge", z.ZodObject<{
1385
+ commitSha: z.ZodString;
1386
+ slug: z.ZodString;
1387
+ targetPath: z.ZodOptional<z.ZodString>;
1388
+ packageInfo: z.ZodObject<{
1389
+ name: z.ZodOptional<z.ZodString>;
1390
+ version: z.ZodOptional<z.ZodString>;
1391
+ description: z.ZodOptional<z.ZodString>;
1392
+ dependencies: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
1393
+ devDependencies: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
1394
+ peerDependencies: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
1395
+ scripts: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
1396
+ success: z.ZodOptional<z.ZodBoolean>;
1397
+ error: z.ZodOptional<z.ZodString>;
1398
+ }, "strip", z.ZodTypeAny, {
1399
+ description?: string | undefined;
1400
+ success?: boolean | undefined;
1401
+ error?: string | undefined;
1402
+ name?: string | undefined;
1403
+ version?: string | undefined;
1404
+ dependencies?: Record<string, string> | undefined;
1405
+ devDependencies?: Record<string, string> | undefined;
1406
+ peerDependencies?: Record<string, string> | undefined;
1407
+ scripts?: Record<string, string> | undefined;
1408
+ }, {
1409
+ description?: string | undefined;
1410
+ success?: boolean | undefined;
1411
+ error?: string | undefined;
1412
+ name?: string | undefined;
1413
+ version?: string | undefined;
1414
+ dependencies?: Record<string, string> | undefined;
1415
+ devDependencies?: Record<string, string> | undefined;
1416
+ peerDependencies?: Record<string, string> | undefined;
1417
+ scripts?: Record<string, string> | undefined;
1418
+ }>;
1419
+ }, "strip", z.ZodTypeAny, {
1420
+ slug: string;
1421
+ commitSha: string;
1422
+ packageInfo: {
1423
+ description?: string | undefined;
1424
+ success?: boolean | undefined;
1425
+ error?: string | undefined;
1426
+ name?: string | undefined;
1427
+ version?: string | undefined;
1428
+ dependencies?: Record<string, string> | undefined;
1429
+ devDependencies?: Record<string, string> | undefined;
1430
+ peerDependencies?: Record<string, string> | undefined;
1431
+ scripts?: Record<string, string> | undefined;
1432
+ };
1433
+ targetPath?: string | undefined;
1434
+ }, {
1435
+ slug: string;
1436
+ commitSha: string;
1437
+ packageInfo: {
1438
+ description?: string | undefined;
1439
+ success?: boolean | undefined;
1440
+ error?: string | undefined;
1441
+ name?: string | undefined;
1442
+ version?: string | undefined;
1443
+ dependencies?: Record<string, string> | undefined;
1444
+ devDependencies?: Record<string, string> | undefined;
1445
+ peerDependencies?: Record<string, string> | undefined;
1446
+ scripts?: Record<string, string> | undefined;
1447
+ };
1448
+ targetPath?: string | undefined;
1449
+ }>, z.ZodObject<{
1450
+ success: z.ZodBoolean;
1451
+ applied: z.ZodBoolean;
1452
+ message: z.ZodString;
1453
+ error: z.ZodOptional<z.ZodString>;
1454
+ }, "strip", z.ZodTypeAny, {
1455
+ message: string;
1456
+ success: boolean;
1457
+ applied: boolean;
1458
+ error?: string | undefined;
1459
+ }, {
1460
+ message: string;
1461
+ success: boolean;
1462
+ applied: boolean;
1463
+ error?: string | undefined;
1464
+ }>, z.ZodType<any, z.ZodTypeDef, any>, z.ZodType<any, z.ZodTypeDef, any>, import("@mastra/core").DefaultEngineType> | import("@mastra/core").Step<"install", z.ZodObject<{
1465
+ targetPath: z.ZodString;
1466
+ }, "strip", z.ZodTypeAny, {
1467
+ targetPath: string;
1468
+ }, {
1469
+ targetPath: string;
1470
+ }>, z.ZodObject<{
1471
+ success: z.ZodBoolean;
1472
+ error: z.ZodOptional<z.ZodString>;
1473
+ }, "strip", z.ZodTypeAny, {
1474
+ success: boolean;
1475
+ error?: string | undefined;
1476
+ }, {
1477
+ success: boolean;
1478
+ error?: string | undefined;
1479
+ }>, 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<{
1480
+ orderedUnits: z.ZodArray<z.ZodObject<{
1481
+ kind: z.ZodEnum<["mcp-server", "tool", "workflow", "agent", "integration", "network", "other"]>;
1482
+ id: z.ZodString;
1483
+ file: z.ZodString;
1484
+ }, "strip", z.ZodTypeAny, {
1485
+ kind: "integration" | "mcp-server" | "tool" | "workflow" | "agent" | "network" | "other";
1486
+ id: string;
1487
+ file: string;
1488
+ }, {
1489
+ kind: "integration" | "mcp-server" | "tool" | "workflow" | "agent" | "network" | "other";
1490
+ id: string;
1491
+ file: string;
1492
+ }>, "many">;
1493
+ templateDir: z.ZodString;
1494
+ commitSha: z.ZodString;
1495
+ slug: z.ZodString;
1496
+ targetPath: z.ZodOptional<z.ZodString>;
1497
+ variables: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
1498
+ }, "strip", z.ZodTypeAny, {
1499
+ slug: string;
1500
+ commitSha: string;
1501
+ templateDir: string;
1502
+ orderedUnits: {
1503
+ kind: "integration" | "mcp-server" | "tool" | "workflow" | "agent" | "network" | "other";
1504
+ id: string;
1505
+ file: string;
1506
+ }[];
1507
+ targetPath?: string | undefined;
1508
+ variables?: Record<string, string> | undefined;
1509
+ }, {
1510
+ slug: string;
1511
+ commitSha: string;
1512
+ templateDir: string;
1513
+ orderedUnits: {
1514
+ kind: "integration" | "mcp-server" | "tool" | "workflow" | "agent" | "network" | "other";
1515
+ id: string;
1516
+ file: string;
1517
+ }[];
1518
+ targetPath?: string | undefined;
1519
+ variables?: Record<string, string> | undefined;
1520
+ }>, z.ZodObject<{
1521
+ success: z.ZodBoolean;
1522
+ copiedFiles: z.ZodArray<z.ZodObject<{
1523
+ source: z.ZodString;
1524
+ destination: z.ZodString;
1525
+ unit: z.ZodObject<{
1526
+ kind: z.ZodEnum<["mcp-server", "tool", "workflow", "agent", "integration", "network", "other"]>;
1527
+ id: z.ZodString;
1528
+ }, "strip", z.ZodTypeAny, {
1529
+ kind: "integration" | "mcp-server" | "tool" | "workflow" | "agent" | "network" | "other";
1530
+ id: string;
1531
+ }, {
1532
+ kind: "integration" | "mcp-server" | "tool" | "workflow" | "agent" | "network" | "other";
1533
+ id: string;
1534
+ }>;
1535
+ }, "strip", z.ZodTypeAny, {
1536
+ source: string;
1537
+ destination: string;
1538
+ unit: {
1539
+ kind: "integration" | "mcp-server" | "tool" | "workflow" | "agent" | "network" | "other";
1540
+ id: string;
1541
+ };
1542
+ }, {
1543
+ source: string;
1544
+ destination: string;
1545
+ unit: {
1546
+ kind: "integration" | "mcp-server" | "tool" | "workflow" | "agent" | "network" | "other";
1547
+ id: string;
1548
+ };
1549
+ }>, "many">;
1550
+ conflicts: z.ZodArray<z.ZodObject<{
1551
+ unit: z.ZodObject<{
1552
+ kind: z.ZodEnum<["mcp-server", "tool", "workflow", "agent", "integration", "network", "other"]>;
1553
+ id: z.ZodString;
1554
+ }, "strip", z.ZodTypeAny, {
1555
+ kind: "integration" | "mcp-server" | "tool" | "workflow" | "agent" | "network" | "other";
1556
+ id: string;
1557
+ }, {
1558
+ kind: "integration" | "mcp-server" | "tool" | "workflow" | "agent" | "network" | "other";
1559
+ id: string;
1560
+ }>;
1561
+ issue: z.ZodString;
1562
+ sourceFile: z.ZodString;
1563
+ targetFile: z.ZodString;
1564
+ }, "strip", z.ZodTypeAny, {
1565
+ unit: {
1566
+ kind: "integration" | "mcp-server" | "tool" | "workflow" | "agent" | "network" | "other";
1567
+ id: string;
1568
+ };
1569
+ issue: string;
1570
+ sourceFile: string;
1571
+ targetFile: string;
1572
+ }, {
1573
+ unit: {
1574
+ kind: "integration" | "mcp-server" | "tool" | "workflow" | "agent" | "network" | "other";
1575
+ id: string;
1576
+ };
1577
+ issue: string;
1578
+ sourceFile: string;
1579
+ targetFile: string;
1580
+ }>, "many">;
1581
+ message: z.ZodString;
1582
+ error: z.ZodOptional<z.ZodString>;
1583
+ }, "strip", z.ZodTypeAny, {
1584
+ message: string;
1585
+ success: boolean;
1586
+ copiedFiles: {
1587
+ source: string;
1588
+ destination: string;
1589
+ unit: {
1590
+ kind: "integration" | "mcp-server" | "tool" | "workflow" | "agent" | "network" | "other";
1591
+ id: string;
1592
+ };
1593
+ }[];
1594
+ conflicts: {
1595
+ unit: {
1596
+ kind: "integration" | "mcp-server" | "tool" | "workflow" | "agent" | "network" | "other";
1597
+ id: string;
1598
+ };
1599
+ issue: string;
1600
+ sourceFile: string;
1601
+ targetFile: string;
1602
+ }[];
1603
+ error?: string | undefined;
1604
+ }, {
1605
+ message: string;
1606
+ success: boolean;
1607
+ copiedFiles: {
1608
+ source: string;
1609
+ destination: string;
1610
+ unit: {
1611
+ kind: "integration" | "mcp-server" | "tool" | "workflow" | "agent" | "network" | "other";
1612
+ id: string;
1613
+ };
1614
+ }[];
1615
+ conflicts: {
1616
+ unit: {
1617
+ kind: "integration" | "mcp-server" | "tool" | "workflow" | "agent" | "network" | "other";
1618
+ id: string;
1619
+ };
1620
+ issue: string;
1621
+ sourceFile: string;
1622
+ targetFile: string;
1623
+ }[];
1624
+ error?: string | undefined;
1625
+ }>, z.ZodType<any, z.ZodTypeDef, any>, z.ZodType<any, z.ZodTypeDef, any>, import("@mastra/core").DefaultEngineType> | import("@mastra/core").Step<"intelligent-merge", z.ZodObject<{
1626
+ conflicts: z.ZodArray<z.ZodObject<{
1627
+ unit: z.ZodObject<{
1628
+ kind: z.ZodEnum<["mcp-server", "tool", "workflow", "agent", "integration", "network", "other"]>;
1629
+ id: z.ZodString;
1630
+ }, "strip", z.ZodTypeAny, {
1631
+ kind: "integration" | "mcp-server" | "tool" | "workflow" | "agent" | "network" | "other";
1632
+ id: string;
1633
+ }, {
1634
+ kind: "integration" | "mcp-server" | "tool" | "workflow" | "agent" | "network" | "other";
1635
+ id: string;
1636
+ }>;
1637
+ issue: z.ZodString;
1638
+ sourceFile: z.ZodString;
1639
+ targetFile: z.ZodString;
1640
+ }, "strip", z.ZodTypeAny, {
1641
+ unit: {
1642
+ kind: "integration" | "mcp-server" | "tool" | "workflow" | "agent" | "network" | "other";
1643
+ id: string;
1644
+ };
1645
+ issue: string;
1646
+ sourceFile: string;
1647
+ targetFile: string;
1648
+ }, {
1649
+ unit: {
1650
+ kind: "integration" | "mcp-server" | "tool" | "workflow" | "agent" | "network" | "other";
1651
+ id: string;
1652
+ };
1653
+ issue: string;
1654
+ sourceFile: string;
1655
+ targetFile: string;
1656
+ }>, "many">;
1657
+ copiedFiles: z.ZodArray<z.ZodObject<{
1658
+ source: z.ZodString;
1659
+ destination: z.ZodString;
1660
+ unit: z.ZodObject<{
1661
+ kind: z.ZodEnum<["mcp-server", "tool", "workflow", "agent", "integration", "network", "other"]>;
1662
+ id: z.ZodString;
1663
+ }, "strip", z.ZodTypeAny, {
1664
+ kind: "integration" | "mcp-server" | "tool" | "workflow" | "agent" | "network" | "other";
1665
+ id: string;
1666
+ }, {
1667
+ kind: "integration" | "mcp-server" | "tool" | "workflow" | "agent" | "network" | "other";
1668
+ id: string;
1669
+ }>;
1670
+ }, "strip", z.ZodTypeAny, {
1671
+ source: string;
1672
+ destination: string;
1673
+ unit: {
1674
+ kind: "integration" | "mcp-server" | "tool" | "workflow" | "agent" | "network" | "other";
1675
+ id: string;
1676
+ };
1677
+ }, {
1678
+ source: string;
1679
+ destination: string;
1680
+ unit: {
1681
+ kind: "integration" | "mcp-server" | "tool" | "workflow" | "agent" | "network" | "other";
1682
+ id: string;
1683
+ };
1684
+ }>, "many">;
1685
+ templateDir: z.ZodString;
1686
+ commitSha: z.ZodString;
1687
+ slug: z.ZodString;
1688
+ targetPath: z.ZodOptional<z.ZodString>;
1689
+ branchName: z.ZodOptional<z.ZodString>;
1690
+ }, "strip", z.ZodTypeAny, {
1691
+ slug: string;
1692
+ commitSha: string;
1693
+ templateDir: string;
1694
+ copiedFiles: {
1695
+ source: string;
1696
+ destination: string;
1697
+ unit: {
1698
+ kind: "integration" | "mcp-server" | "tool" | "workflow" | "agent" | "network" | "other";
1699
+ id: string;
1700
+ };
1701
+ }[];
1702
+ conflicts: {
1703
+ unit: {
1704
+ kind: "integration" | "mcp-server" | "tool" | "workflow" | "agent" | "network" | "other";
1705
+ id: string;
1706
+ };
1707
+ issue: string;
1708
+ sourceFile: string;
1709
+ targetFile: string;
1710
+ }[];
1711
+ targetPath?: string | undefined;
1712
+ branchName?: string | undefined;
1713
+ }, {
1714
+ slug: string;
1715
+ commitSha: string;
1716
+ templateDir: string;
1717
+ copiedFiles: {
1718
+ source: string;
1719
+ destination: string;
1720
+ unit: {
1721
+ kind: "integration" | "mcp-server" | "tool" | "workflow" | "agent" | "network" | "other";
1722
+ id: string;
1723
+ };
1724
+ }[];
1725
+ conflicts: {
1726
+ unit: {
1727
+ kind: "integration" | "mcp-server" | "tool" | "workflow" | "agent" | "network" | "other";
1728
+ id: string;
1729
+ };
1730
+ issue: string;
1731
+ sourceFile: string;
1732
+ targetFile: string;
1733
+ }[];
1734
+ targetPath?: string | undefined;
1735
+ branchName?: string | undefined;
1736
+ }>, z.ZodObject<{
1737
+ success: z.ZodBoolean;
1738
+ applied: z.ZodBoolean;
1739
+ message: z.ZodString;
1740
+ conflictsResolved: z.ZodArray<z.ZodObject<{
1741
+ unit: z.ZodObject<{
1742
+ kind: z.ZodEnum<["mcp-server", "tool", "workflow", "agent", "integration", "network", "other"]>;
1743
+ id: z.ZodString;
1744
+ }, "strip", z.ZodTypeAny, {
1745
+ kind: "integration" | "mcp-server" | "tool" | "workflow" | "agent" | "network" | "other";
1746
+ id: string;
1747
+ }, {
1748
+ kind: "integration" | "mcp-server" | "tool" | "workflow" | "agent" | "network" | "other";
1749
+ id: string;
1750
+ }>;
1751
+ issue: z.ZodString;
1752
+ resolution: z.ZodString;
1753
+ }, "strip", z.ZodTypeAny, {
1754
+ unit: {
1755
+ kind: "integration" | "mcp-server" | "tool" | "workflow" | "agent" | "network" | "other";
1756
+ id: string;
1757
+ };
1758
+ issue: string;
1759
+ resolution: string;
1760
+ }, {
1761
+ unit: {
1762
+ kind: "integration" | "mcp-server" | "tool" | "workflow" | "agent" | "network" | "other";
1763
+ id: string;
1764
+ };
1765
+ issue: string;
1766
+ resolution: string;
1767
+ }>, "many">;
1768
+ error: z.ZodOptional<z.ZodString>;
1769
+ }, "strip", z.ZodTypeAny, {
1770
+ message: string;
1771
+ success: boolean;
1772
+ applied: boolean;
1773
+ conflictsResolved: {
1774
+ unit: {
1775
+ kind: "integration" | "mcp-server" | "tool" | "workflow" | "agent" | "network" | "other";
1776
+ id: string;
1777
+ };
1778
+ issue: string;
1779
+ resolution: string;
1780
+ }[];
1781
+ error?: string | undefined;
1782
+ }, {
1783
+ message: string;
1784
+ success: boolean;
1785
+ applied: boolean;
1786
+ conflictsResolved: {
1787
+ unit: {
1788
+ kind: "integration" | "mcp-server" | "tool" | "workflow" | "agent" | "network" | "other";
1789
+ id: string;
1790
+ };
1791
+ issue: string;
1792
+ resolution: string;
1793
+ }[];
1794
+ error?: string | undefined;
1795
+ }>, 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<{
1796
+ commitSha: z.ZodString;
1797
+ slug: z.ZodString;
1798
+ targetPath: z.ZodOptional<z.ZodString>;
1799
+ templateDir: z.ZodString;
1800
+ orderedUnits: z.ZodArray<z.ZodObject<{
1801
+ kind: z.ZodEnum<["mcp-server", "tool", "workflow", "agent", "integration", "network", "other"]>;
1802
+ id: z.ZodString;
1803
+ file: z.ZodString;
1804
+ }, "strip", z.ZodTypeAny, {
1805
+ kind: "integration" | "mcp-server" | "tool" | "workflow" | "agent" | "network" | "other";
1806
+ id: string;
1807
+ file: string;
1808
+ }, {
1809
+ kind: "integration" | "mcp-server" | "tool" | "workflow" | "agent" | "network" | "other";
1810
+ id: string;
1811
+ file: string;
1812
+ }>, "many">;
1813
+ copiedFiles: z.ZodArray<z.ZodObject<{
1814
+ source: z.ZodString;
1815
+ destination: z.ZodString;
1816
+ unit: z.ZodObject<{
1817
+ kind: z.ZodEnum<["mcp-server", "tool", "workflow", "agent", "integration", "network", "other"]>;
1818
+ id: z.ZodString;
1819
+ }, "strip", z.ZodTypeAny, {
1820
+ kind: "integration" | "mcp-server" | "tool" | "workflow" | "agent" | "network" | "other";
1821
+ id: string;
1822
+ }, {
1823
+ kind: "integration" | "mcp-server" | "tool" | "workflow" | "agent" | "network" | "other";
1824
+ id: string;
1825
+ }>;
1826
+ }, "strip", z.ZodTypeAny, {
1827
+ source: string;
1828
+ destination: string;
1829
+ unit: {
1830
+ kind: "integration" | "mcp-server" | "tool" | "workflow" | "agent" | "network" | "other";
1831
+ id: string;
1832
+ };
1833
+ }, {
1834
+ source: string;
1835
+ destination: string;
1836
+ unit: {
1837
+ kind: "integration" | "mcp-server" | "tool" | "workflow" | "agent" | "network" | "other";
1838
+ id: string;
1839
+ };
1840
+ }>, "many">;
1841
+ conflictsResolved: z.ZodOptional<z.ZodArray<z.ZodObject<{
1842
+ unit: z.ZodObject<{
1843
+ kind: z.ZodEnum<["mcp-server", "tool", "workflow", "agent", "integration", "network", "other"]>;
1844
+ id: z.ZodString;
1845
+ }, "strip", z.ZodTypeAny, {
1846
+ kind: "integration" | "mcp-server" | "tool" | "workflow" | "agent" | "network" | "other";
1847
+ id: string;
1848
+ }, {
1849
+ kind: "integration" | "mcp-server" | "tool" | "workflow" | "agent" | "network" | "other";
1850
+ id: string;
1851
+ }>;
1852
+ issue: z.ZodString;
1853
+ resolution: z.ZodString;
1854
+ }, "strip", z.ZodTypeAny, {
1855
+ unit: {
1856
+ kind: "integration" | "mcp-server" | "tool" | "workflow" | "agent" | "network" | "other";
1857
+ id: string;
1858
+ };
1859
+ issue: string;
1860
+ resolution: string;
1861
+ }, {
1862
+ unit: {
1863
+ kind: "integration" | "mcp-server" | "tool" | "workflow" | "agent" | "network" | "other";
1864
+ id: string;
1865
+ };
1866
+ issue: string;
1867
+ resolution: string;
1868
+ }>, "many">>;
1869
+ maxIterations: z.ZodDefault<z.ZodOptional<z.ZodNumber>>;
1870
+ }, "strip", z.ZodTypeAny, {
1871
+ slug: string;
1872
+ commitSha: string;
1873
+ templateDir: string;
1874
+ orderedUnits: {
1875
+ kind: "integration" | "mcp-server" | "tool" | "workflow" | "agent" | "network" | "other";
1876
+ id: string;
1877
+ file: string;
1878
+ }[];
1879
+ copiedFiles: {
1880
+ source: string;
1881
+ destination: string;
1882
+ unit: {
1883
+ kind: "integration" | "mcp-server" | "tool" | "workflow" | "agent" | "network" | "other";
1884
+ id: string;
1885
+ };
1886
+ }[];
1887
+ maxIterations: number;
1888
+ targetPath?: string | undefined;
1889
+ conflictsResolved?: {
1890
+ unit: {
1891
+ kind: "integration" | "mcp-server" | "tool" | "workflow" | "agent" | "network" | "other";
1892
+ id: string;
1893
+ };
1894
+ issue: string;
1895
+ resolution: string;
1896
+ }[] | undefined;
1897
+ }, {
1898
+ slug: string;
1899
+ commitSha: string;
1900
+ templateDir: string;
1901
+ orderedUnits: {
1902
+ kind: "integration" | "mcp-server" | "tool" | "workflow" | "agent" | "network" | "other";
1903
+ id: string;
1904
+ file: string;
1905
+ }[];
1906
+ copiedFiles: {
1907
+ source: string;
1908
+ destination: string;
1909
+ unit: {
1910
+ kind: "integration" | "mcp-server" | "tool" | "workflow" | "agent" | "network" | "other";
1911
+ id: string;
1912
+ };
1913
+ }[];
1914
+ targetPath?: string | undefined;
1915
+ conflictsResolved?: {
1916
+ unit: {
1917
+ kind: "integration" | "mcp-server" | "tool" | "workflow" | "agent" | "network" | "other";
1918
+ id: string;
1919
+ };
1920
+ issue: string;
1921
+ resolution: string;
1922
+ }[] | undefined;
1923
+ maxIterations?: number | undefined;
1924
+ }>, z.ZodObject<{
1925
+ success: z.ZodBoolean;
1926
+ applied: z.ZodBoolean;
1927
+ message: z.ZodString;
1928
+ validationResults: z.ZodObject<{
1929
+ valid: z.ZodBoolean;
1930
+ errorsFixed: z.ZodNumber;
1931
+ remainingErrors: z.ZodNumber;
1932
+ errors: z.ZodOptional<z.ZodArray<z.ZodAny, "many">>;
1933
+ }, "strip", z.ZodTypeAny, {
1934
+ valid: boolean;
1935
+ errorsFixed: number;
1936
+ remainingErrors: number;
1937
+ errors?: any[] | undefined;
1938
+ }, {
1939
+ valid: boolean;
1940
+ errorsFixed: number;
1941
+ remainingErrors: number;
1942
+ errors?: any[] | undefined;
1943
+ }>;
1944
+ error: z.ZodOptional<z.ZodString>;
1945
+ }, "strip", z.ZodTypeAny, {
1946
+ message: string;
1947
+ success: boolean;
1948
+ applied: boolean;
1949
+ validationResults: {
1950
+ valid: boolean;
1951
+ errorsFixed: number;
1952
+ remainingErrors: number;
1953
+ errors?: any[] | undefined;
1954
+ };
1955
+ error?: string | undefined;
1956
+ }, {
1957
+ message: string;
1958
+ success: boolean;
1959
+ applied: boolean;
1960
+ validationResults: {
1961
+ valid: boolean;
1962
+ errorsFixed: number;
1963
+ remainingErrors: number;
1964
+ errors?: any[] | undefined;
1965
+ };
1966
+ error?: string | undefined;
1967
+ }>, z.ZodType<any, z.ZodTypeDef, any>, z.ZodType<any, z.ZodTypeDef, any>, import("@mastra/core").DefaultEngineType>)[]>>;
1968
+ //# sourceMappingURL=template-builder.d.ts.map