@mastra/agent-builder 1.0.0-beta.8 → 1.0.0

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