@mastra/agent-builder 0.0.0-monorepo-binary-20251013210052 → 0.0.0-new-button-export-20251219130424
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.
- package/CHANGELOG.md +270 -4
- package/dist/agent/index.d.ts +3 -3
- package/dist/agent/index.d.ts.map +1 -1
- package/dist/chunk-2CIPVDK5.js +250 -0
- package/dist/chunk-2CIPVDK5.js.map +1 -0
- package/dist/chunk-E53QBCQN.js +84 -0
- package/dist/chunk-E53QBCQN.js.map +1 -0
- package/dist/defaults.d.ts +217 -765
- package/dist/defaults.d.ts.map +1 -1
- package/dist/index.js +4741 -412
- package/dist/index.js.map +1 -1
- package/dist/processors/tool-summary.d.ts +12 -6
- package/dist/processors/tool-summary.d.ts.map +1 -1
- package/dist/token-6GSAFR2W-KVDFAJ2M.js +61 -0
- package/dist/token-6GSAFR2W-KVDFAJ2M.js.map +1 -0
- package/dist/token-util-NEHG7TUY-DJYRKLRD.js +9 -0
- package/dist/token-util-NEHG7TUY-DJYRKLRD.js.map +1 -0
- package/dist/types.d.ts +9 -8
- package/dist/types.d.ts.map +1 -1
- package/dist/utils.d.ts +12 -11
- package/dist/utils.d.ts.map +1 -1
- package/dist/workflows/shared/schema.d.ts +2 -2
- package/dist/workflows/task-planning/schema.d.ts +12 -12
- package/dist/workflows/task-planning/task-planning.d.ts +23 -23
- package/dist/workflows/task-planning/task-planning.d.ts.map +1 -1
- package/dist/workflows/template-builder/template-builder.d.ts +27 -27
- package/dist/workflows/template-builder/template-builder.d.ts.map +1 -1
- package/dist/workflows/workflow-builder/prompts.d.ts +1 -1
- package/dist/workflows/workflow-builder/prompts.d.ts.map +1 -1
- package/dist/workflows/workflow-builder/schema.d.ts +14 -14
- package/dist/workflows/workflow-builder/tools.d.ts +13 -83
- package/dist/workflows/workflow-builder/tools.d.ts.map +1 -1
- package/dist/workflows/workflow-builder/workflow-builder.d.ts +52 -52
- package/dist/workflows/workflow-builder/workflow-builder.d.ts.map +1 -1
- package/package.json +14 -11
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export declare const planningAndApprovalWorkflow: import("@mastra/core/workflows").Workflow<import("@mastra/core").DefaultEngineType, (import("@mastra/core").Step<"planning-iteration", import("zod").ZodObject<any, import("zod").UnknownKeysParam, import("zod").ZodTypeAny, {
|
|
1
|
+
export declare const planningAndApprovalWorkflow: import("@mastra/core/workflows").Workflow<import("@mastra/core/workflows").DefaultEngineType, (import("@mastra/core/workflows").Step<"planning-iteration", import("zod").ZodObject<any, import("zod").UnknownKeysParam, import("zod").ZodTypeAny, {
|
|
2
2
|
[x: string]: any;
|
|
3
3
|
}, {
|
|
4
4
|
[x: string]: any;
|
|
@@ -109,14 +109,14 @@ export declare const planningAndApprovalWorkflow: import("@mastra/core/workflows
|
|
|
109
109
|
snippet: import("zod").ZodString;
|
|
110
110
|
relevance: import("zod").ZodNumber;
|
|
111
111
|
}, "strip", import("zod").ZodTypeAny, {
|
|
112
|
+
url: string;
|
|
112
113
|
relevance: number;
|
|
113
114
|
title: string;
|
|
114
|
-
url: string;
|
|
115
115
|
snippet: string;
|
|
116
116
|
}, {
|
|
117
|
+
url: string;
|
|
117
118
|
relevance: number;
|
|
118
119
|
title: string;
|
|
119
|
-
url: string;
|
|
120
120
|
snippet: string;
|
|
121
121
|
}>, "many">;
|
|
122
122
|
message: import("zod").ZodString;
|
|
@@ -130,9 +130,9 @@ export declare const planningAndApprovalWorkflow: import("@mastra/core/workflows
|
|
|
130
130
|
bestPractices: string[];
|
|
131
131
|
};
|
|
132
132
|
webResources: {
|
|
133
|
+
url: string;
|
|
133
134
|
relevance: number;
|
|
134
135
|
title: string;
|
|
135
|
-
url: string;
|
|
136
136
|
snippet: string;
|
|
137
137
|
}[];
|
|
138
138
|
error?: string | undefined;
|
|
@@ -145,9 +145,9 @@ export declare const planningAndApprovalWorkflow: import("@mastra/core/workflows
|
|
|
145
145
|
bestPractices: string[];
|
|
146
146
|
};
|
|
147
147
|
webResources: {
|
|
148
|
+
url: string;
|
|
148
149
|
relevance: number;
|
|
149
150
|
title: string;
|
|
150
|
-
url: string;
|
|
151
151
|
snippet: string;
|
|
152
152
|
}[];
|
|
153
153
|
error?: string | undefined;
|
|
@@ -187,9 +187,9 @@ export declare const planningAndApprovalWorkflow: import("@mastra/core/workflows
|
|
|
187
187
|
bestPractices: string[];
|
|
188
188
|
};
|
|
189
189
|
webResources: {
|
|
190
|
+
url: string;
|
|
190
191
|
relevance: number;
|
|
191
192
|
title: string;
|
|
192
|
-
url: string;
|
|
193
193
|
snippet: string;
|
|
194
194
|
}[];
|
|
195
195
|
error?: string | undefined;
|
|
@@ -232,9 +232,9 @@ export declare const planningAndApprovalWorkflow: import("@mastra/core/workflows
|
|
|
232
232
|
bestPractices: string[];
|
|
233
233
|
};
|
|
234
234
|
webResources: {
|
|
235
|
+
url: string;
|
|
235
236
|
relevance: number;
|
|
236
237
|
title: string;
|
|
237
|
-
url: string;
|
|
238
238
|
snippet: string;
|
|
239
239
|
}[];
|
|
240
240
|
error?: string | undefined;
|
|
@@ -295,6 +295,7 @@ export declare const planningAndApprovalWorkflow: import("@mastra/core/workflows
|
|
|
295
295
|
}, "strip", import("zod").ZodTypeAny, {
|
|
296
296
|
message: string;
|
|
297
297
|
success: boolean;
|
|
298
|
+
reasoning: string;
|
|
298
299
|
tasks: {
|
|
299
300
|
status: "pending" | "in_progress" | "completed" | "blocked";
|
|
300
301
|
id: string;
|
|
@@ -303,7 +304,6 @@ export declare const planningAndApprovalWorkflow: import("@mastra/core/workflows
|
|
|
303
304
|
notes: string;
|
|
304
305
|
dependencies?: string[] | undefined;
|
|
305
306
|
}[];
|
|
306
|
-
reasoning: string;
|
|
307
307
|
questions: {
|
|
308
308
|
type: "boolean" | "text" | "choice";
|
|
309
309
|
id: string;
|
|
@@ -318,6 +318,7 @@ export declare const planningAndApprovalWorkflow: import("@mastra/core/workflows
|
|
|
318
318
|
}, {
|
|
319
319
|
message: string;
|
|
320
320
|
success: boolean;
|
|
321
|
+
reasoning: string;
|
|
321
322
|
tasks: {
|
|
322
323
|
id: string;
|
|
323
324
|
content: string;
|
|
@@ -326,7 +327,6 @@ export declare const planningAndApprovalWorkflow: import("@mastra/core/workflows
|
|
|
326
327
|
status?: "pending" | "in_progress" | "completed" | "blocked" | undefined;
|
|
327
328
|
dependencies?: string[] | undefined;
|
|
328
329
|
}[];
|
|
329
|
-
reasoning: string;
|
|
330
330
|
questions: {
|
|
331
331
|
type: "boolean" | "text" | "choice";
|
|
332
332
|
id: string;
|
|
@@ -390,6 +390,7 @@ export declare const planningAndApprovalWorkflow: import("@mastra/core/workflows
|
|
|
390
390
|
}>, "many">;
|
|
391
391
|
reasoning: import("zod").ZodString;
|
|
392
392
|
}, "strip", import("zod").ZodTypeAny, {
|
|
393
|
+
reasoning: string;
|
|
393
394
|
tasks: {
|
|
394
395
|
status: "pending" | "in_progress" | "completed" | "blocked";
|
|
395
396
|
id: string;
|
|
@@ -398,8 +399,8 @@ export declare const planningAndApprovalWorkflow: import("@mastra/core/workflows
|
|
|
398
399
|
notes: string;
|
|
399
400
|
dependencies?: string[] | undefined;
|
|
400
401
|
}[];
|
|
401
|
-
reasoning: string;
|
|
402
402
|
}, {
|
|
403
|
+
reasoning: string;
|
|
403
404
|
tasks: {
|
|
404
405
|
id: string;
|
|
405
406
|
content: string;
|
|
@@ -408,7 +409,6 @@ export declare const planningAndApprovalWorkflow: import("@mastra/core/workflows
|
|
|
408
409
|
status?: "pending" | "in_progress" | "completed" | "blocked" | undefined;
|
|
409
410
|
dependencies?: string[] | undefined;
|
|
410
411
|
}[];
|
|
411
|
-
reasoning: string;
|
|
412
412
|
}>;
|
|
413
413
|
}, "strip", import("zod").ZodTypeAny, {
|
|
414
414
|
message: string;
|
|
@@ -420,6 +420,7 @@ export declare const planningAndApprovalWorkflow: import("@mastra/core/workflows
|
|
|
420
420
|
context?: string | undefined;
|
|
421
421
|
}[];
|
|
422
422
|
currentPlan: {
|
|
423
|
+
reasoning: string;
|
|
423
424
|
tasks: {
|
|
424
425
|
status: "pending" | "in_progress" | "completed" | "blocked";
|
|
425
426
|
id: string;
|
|
@@ -428,7 +429,6 @@ export declare const planningAndApprovalWorkflow: import("@mastra/core/workflows
|
|
|
428
429
|
notes: string;
|
|
429
430
|
dependencies?: string[] | undefined;
|
|
430
431
|
}[];
|
|
431
|
-
reasoning: string;
|
|
432
432
|
};
|
|
433
433
|
}, {
|
|
434
434
|
message: string;
|
|
@@ -440,6 +440,7 @@ export declare const planningAndApprovalWorkflow: import("@mastra/core/workflows
|
|
|
440
440
|
context?: string | undefined;
|
|
441
441
|
}[];
|
|
442
442
|
currentPlan: {
|
|
443
|
+
reasoning: string;
|
|
443
444
|
tasks: {
|
|
444
445
|
id: string;
|
|
445
446
|
content: string;
|
|
@@ -448,9 +449,8 @@ export declare const planningAndApprovalWorkflow: import("@mastra/core/workflows
|
|
|
448
449
|
status?: "pending" | "in_progress" | "completed" | "blocked" | undefined;
|
|
449
450
|
dependencies?: string[] | undefined;
|
|
450
451
|
}[];
|
|
451
|
-
reasoning: string;
|
|
452
452
|
};
|
|
453
|
-
}>, import("@mastra/core").DefaultEngineType> | import("@mastra/core").Step<"task-approval", import("zod").ZodObject<any, import("zod").UnknownKeysParam, import("zod").ZodTypeAny, {
|
|
453
|
+
}>, import("@mastra/core/workflows").DefaultEngineType> | import("@mastra/core/workflows").Step<"task-approval", import("zod").ZodObject<any, import("zod").UnknownKeysParam, import("zod").ZodTypeAny, {
|
|
454
454
|
[x: string]: any;
|
|
455
455
|
}, {
|
|
456
456
|
[x: string]: any;
|
|
@@ -506,6 +506,7 @@ export declare const planningAndApprovalWorkflow: import("@mastra/core/workflows
|
|
|
506
506
|
}, "strip", import("zod").ZodTypeAny, {
|
|
507
507
|
message: string;
|
|
508
508
|
success: boolean;
|
|
509
|
+
reasoning: string;
|
|
509
510
|
tasks: {
|
|
510
511
|
status: "pending" | "in_progress" | "completed" | "blocked";
|
|
511
512
|
id: string;
|
|
@@ -514,7 +515,6 @@ export declare const planningAndApprovalWorkflow: import("@mastra/core/workflows
|
|
|
514
515
|
notes: string;
|
|
515
516
|
dependencies?: string[] | undefined;
|
|
516
517
|
}[];
|
|
517
|
-
reasoning: string;
|
|
518
518
|
questions: {
|
|
519
519
|
type: "boolean" | "text" | "choice";
|
|
520
520
|
id: string;
|
|
@@ -529,6 +529,7 @@ export declare const planningAndApprovalWorkflow: import("@mastra/core/workflows
|
|
|
529
529
|
}, {
|
|
530
530
|
message: string;
|
|
531
531
|
success: boolean;
|
|
532
|
+
reasoning: string;
|
|
532
533
|
tasks: {
|
|
533
534
|
id: string;
|
|
534
535
|
content: string;
|
|
@@ -537,7 +538,6 @@ export declare const planningAndApprovalWorkflow: import("@mastra/core/workflows
|
|
|
537
538
|
status?: "pending" | "in_progress" | "completed" | "blocked" | undefined;
|
|
538
539
|
dependencies?: string[] | undefined;
|
|
539
540
|
}[];
|
|
540
|
-
reasoning: string;
|
|
541
541
|
questions: {
|
|
542
542
|
type: "boolean" | "text" | "choice";
|
|
543
543
|
id: string;
|
|
@@ -655,7 +655,7 @@ export declare const planningAndApprovalWorkflow: import("@mastra/core/workflows
|
|
|
655
655
|
status?: "pending" | "in_progress" | "completed" | "blocked" | undefined;
|
|
656
656
|
dependencies?: string[] | undefined;
|
|
657
657
|
}[];
|
|
658
|
-
}>, import("@mastra/core").DefaultEngineType>)[], "planning-and-approval", import("zod").ZodObject<any, import("zod").UnknownKeysParam, import("zod").ZodTypeAny, {
|
|
658
|
+
}>, import("@mastra/core/workflows").DefaultEngineType>)[], "planning-and-approval", import("zod").ZodObject<any, import("zod").UnknownKeysParam, import("zod").ZodTypeAny, {
|
|
659
659
|
[x: string]: any;
|
|
660
660
|
}, {
|
|
661
661
|
[x: string]: any;
|
|
@@ -766,14 +766,14 @@ export declare const planningAndApprovalWorkflow: import("@mastra/core/workflows
|
|
|
766
766
|
snippet: import("zod").ZodString;
|
|
767
767
|
relevance: import("zod").ZodNumber;
|
|
768
768
|
}, "strip", import("zod").ZodTypeAny, {
|
|
769
|
+
url: string;
|
|
769
770
|
relevance: number;
|
|
770
771
|
title: string;
|
|
771
|
-
url: string;
|
|
772
772
|
snippet: string;
|
|
773
773
|
}, {
|
|
774
|
+
url: string;
|
|
774
775
|
relevance: number;
|
|
775
776
|
title: string;
|
|
776
|
-
url: string;
|
|
777
777
|
snippet: string;
|
|
778
778
|
}>, "many">;
|
|
779
779
|
message: import("zod").ZodString;
|
|
@@ -787,9 +787,9 @@ export declare const planningAndApprovalWorkflow: import("@mastra/core/workflows
|
|
|
787
787
|
bestPractices: string[];
|
|
788
788
|
};
|
|
789
789
|
webResources: {
|
|
790
|
+
url: string;
|
|
790
791
|
relevance: number;
|
|
791
792
|
title: string;
|
|
792
|
-
url: string;
|
|
793
793
|
snippet: string;
|
|
794
794
|
}[];
|
|
795
795
|
error?: string | undefined;
|
|
@@ -802,9 +802,9 @@ export declare const planningAndApprovalWorkflow: import("@mastra/core/workflows
|
|
|
802
802
|
bestPractices: string[];
|
|
803
803
|
};
|
|
804
804
|
webResources: {
|
|
805
|
+
url: string;
|
|
805
806
|
relevance: number;
|
|
806
807
|
title: string;
|
|
807
|
-
url: string;
|
|
808
808
|
snippet: string;
|
|
809
809
|
}[];
|
|
810
810
|
error?: string | undefined;
|
|
@@ -844,9 +844,9 @@ export declare const planningAndApprovalWorkflow: import("@mastra/core/workflows
|
|
|
844
844
|
bestPractices: string[];
|
|
845
845
|
};
|
|
846
846
|
webResources: {
|
|
847
|
+
url: string;
|
|
847
848
|
relevance: number;
|
|
848
849
|
title: string;
|
|
849
|
-
url: string;
|
|
850
850
|
snippet: string;
|
|
851
851
|
}[];
|
|
852
852
|
error?: string | undefined;
|
|
@@ -889,9 +889,9 @@ export declare const planningAndApprovalWorkflow: import("@mastra/core/workflows
|
|
|
889
889
|
bestPractices: string[];
|
|
890
890
|
};
|
|
891
891
|
webResources: {
|
|
892
|
+
url: string;
|
|
892
893
|
relevance: number;
|
|
893
894
|
title: string;
|
|
894
|
-
url: string;
|
|
895
895
|
snippet: string;
|
|
896
896
|
}[];
|
|
897
897
|
error?: string | undefined;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"task-planning.d.ts","sourceRoot":"","sources":["../../../src/workflows/task-planning/task-planning.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"task-planning.d.ts","sourceRoot":"","sources":["../../../src/workflows/task-planning/task-planning.ts"],"names":[],"mappings":"AA6PA,eAAO,MAAM,2BAA2B;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA0B7B,CAAC"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
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<any, z.UnknownKeysParam, z.ZodTypeAny, {
|
|
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
3
|
[x: string]: any;
|
|
4
4
|
}, {
|
|
5
5
|
[x: string]: any;
|
|
@@ -42,7 +42,7 @@ export declare const agentBuilderTemplateWorkflow: import("@mastra/core/workflow
|
|
|
42
42
|
targetPath?: string | undefined;
|
|
43
43
|
success?: boolean | undefined;
|
|
44
44
|
error?: string | undefined;
|
|
45
|
-
}>, z.ZodType<any, z.ZodTypeDef, any>, z.ZodType<any, z.ZodTypeDef, any>, import("@mastra/core").DefaultEngineType> | import("@mastra/core").Step<"analyze-package", z.ZodObject<any, z.UnknownKeysParam, z.ZodTypeAny, {
|
|
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
46
|
[x: string]: any;
|
|
47
47
|
}, {
|
|
48
48
|
[x: string]: any;
|
|
@@ -97,7 +97,7 @@ export declare const agentBuilderTemplateWorkflow: import("@mastra/core/workflow
|
|
|
97
97
|
devDependencies?: Record<string, string> | undefined;
|
|
98
98
|
peerDependencies?: Record<string, string> | undefined;
|
|
99
99
|
scripts?: Record<string, string> | undefined;
|
|
100
|
-
}>, z.ZodType<any, z.ZodTypeDef, any>, z.ZodType<any, z.ZodTypeDef, any>, import("@mastra/core").DefaultEngineType> | import("@mastra/core").Step<"discover-units", z.ZodObject<any, z.UnknownKeysParam, z.ZodTypeAny, {
|
|
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
101
|
[x: string]: any;
|
|
102
102
|
}, {
|
|
103
103
|
[x: string]: any;
|
|
@@ -154,7 +154,7 @@ export declare const agentBuilderTemplateWorkflow: import("@mastra/core/workflow
|
|
|
154
154
|
}[];
|
|
155
155
|
success?: boolean | undefined;
|
|
156
156
|
error?: string | undefined;
|
|
157
|
-
}>, z.ZodType<any, z.ZodTypeDef, any>, z.ZodType<any, z.ZodTypeDef, any>, import("@mastra/core").DefaultEngineType> | import("@mastra/core").Step<"order-units", z.ZodObject<any, z.UnknownKeysParam, z.ZodTypeAny, {
|
|
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
158
|
[x: string]: any;
|
|
159
159
|
}, {
|
|
160
160
|
[x: string]: any;
|
|
@@ -222,7 +222,7 @@ export declare const agentBuilderTemplateWorkflow: import("@mastra/core/workflow
|
|
|
222
222
|
}[];
|
|
223
223
|
success?: boolean | undefined;
|
|
224
224
|
error?: string | undefined;
|
|
225
|
-
}>, z.ZodType<any, z.ZodTypeDef, any>, z.ZodType<any, z.ZodTypeDef, any>, import("@mastra/core").DefaultEngineType> | import("@mastra/core").Step<"package-merge", z.ZodObject<any, z.UnknownKeysParam, z.ZodTypeAny, {
|
|
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
226
|
[x: string]: any;
|
|
227
227
|
}, {
|
|
228
228
|
[x: string]: any;
|
|
@@ -306,16 +306,16 @@ export declare const agentBuilderTemplateWorkflow: import("@mastra/core/workflow
|
|
|
306
306
|
success: boolean;
|
|
307
307
|
applied: boolean;
|
|
308
308
|
error?: string | undefined;
|
|
309
|
-
}>, z.ZodType<any, z.ZodTypeDef, any>, z.ZodType<any, z.ZodTypeDef, any>, import("@mastra/core").DefaultEngineType> | import("@mastra/core").Step<"install", z.ZodObject<any, z.UnknownKeysParam, z.ZodTypeAny, {
|
|
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
310
|
[x: string]: any;
|
|
311
311
|
}, {
|
|
312
312
|
[x: string]: any;
|
|
313
313
|
}>, z.ZodObject<{
|
|
314
|
-
targetPath: z.ZodString
|
|
314
|
+
targetPath: z.ZodOptional<z.ZodString>;
|
|
315
315
|
}, "strip", z.ZodTypeAny, {
|
|
316
|
-
targetPath
|
|
316
|
+
targetPath?: string | undefined;
|
|
317
317
|
}, {
|
|
318
|
-
targetPath
|
|
318
|
+
targetPath?: string | undefined;
|
|
319
319
|
}>, z.ZodObject<{
|
|
320
320
|
success: z.ZodBoolean;
|
|
321
321
|
error: z.ZodOptional<z.ZodString>;
|
|
@@ -325,7 +325,7 @@ export declare const agentBuilderTemplateWorkflow: import("@mastra/core/workflow
|
|
|
325
325
|
}, {
|
|
326
326
|
success: boolean;
|
|
327
327
|
error?: string | undefined;
|
|
328
|
-
}>, 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<any, z.UnknownKeysParam, z.ZodTypeAny, {
|
|
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
329
|
[x: string]: any;
|
|
330
330
|
}, {
|
|
331
331
|
[x: string]: any;
|
|
@@ -475,7 +475,7 @@ export declare const agentBuilderTemplateWorkflow: import("@mastra/core/workflow
|
|
|
475
475
|
targetFile: string;
|
|
476
476
|
}[];
|
|
477
477
|
error?: string | undefined;
|
|
478
|
-
}>, z.ZodType<any, z.ZodTypeDef, any>, z.ZodType<any, z.ZodTypeDef, any>, import("@mastra/core").DefaultEngineType> | import("@mastra/core").Step<"intelligent-merge", z.ZodObject<any, z.UnknownKeysParam, z.ZodTypeAny, {
|
|
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
479
|
[x: string]: any;
|
|
480
480
|
}, {
|
|
481
481
|
[x: string]: any;
|
|
@@ -649,7 +649,7 @@ export declare const agentBuilderTemplateWorkflow: import("@mastra/core/workflow
|
|
|
649
649
|
resolution: string;
|
|
650
650
|
}[];
|
|
651
651
|
error?: string | undefined;
|
|
652
|
-
}>, 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<any, z.UnknownKeysParam, z.ZodTypeAny, {
|
|
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
653
|
[x: string]: any;
|
|
654
654
|
}, {
|
|
655
655
|
[x: string]: any;
|
|
@@ -825,7 +825,7 @@ export declare const agentBuilderTemplateWorkflow: import("@mastra/core/workflow
|
|
|
825
825
|
errors?: any[] | undefined;
|
|
826
826
|
};
|
|
827
827
|
error?: string | undefined;
|
|
828
|
-
}>, z.ZodType<any, z.ZodTypeDef, any>, z.ZodType<any, z.ZodTypeDef, any>, import("@mastra/core").DefaultEngineType>)[], "agent-builder-template", z.ZodObject<any, z.UnknownKeysParam, z.ZodTypeAny, {
|
|
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
829
|
[x: string]: any;
|
|
830
830
|
}, {
|
|
831
831
|
[x: string]: any;
|
|
@@ -1092,7 +1092,7 @@ export declare const agentBuilderTemplateWorkflow: import("@mastra/core/workflow
|
|
|
1092
1092
|
validationSuccess?: boolean | undefined;
|
|
1093
1093
|
} | undefined;
|
|
1094
1094
|
}>>;
|
|
1095
|
-
export declare function mergeTemplateBySlug(slug: string, targetPath?: string): Promise<import("@mastra/core").WorkflowResult<z.ZodObject<any, z.UnknownKeysParam, z.ZodTypeAny, {
|
|
1095
|
+
export declare function mergeTemplateBySlug(slug: string, targetPath?: string): Promise<import("@mastra/core/workflows").WorkflowResult<z.ZodObject<any, z.UnknownKeysParam, z.ZodTypeAny, {
|
|
1096
1096
|
[x: string]: any;
|
|
1097
1097
|
}, {
|
|
1098
1098
|
[x: string]: any;
|
|
@@ -1236,7 +1236,7 @@ export declare function mergeTemplateBySlug(slug: string, targetPath?: string):
|
|
|
1236
1236
|
mergeSuccess?: boolean | undefined;
|
|
1237
1237
|
validationSuccess?: boolean | undefined;
|
|
1238
1238
|
} | undefined;
|
|
1239
|
-
}>, (import("@mastra/core").Step<"clone-template", z.ZodObject<any, z.UnknownKeysParam, z.ZodTypeAny, {
|
|
1239
|
+
}>, (import("@mastra/core/workflows").Step<"clone-template", z.ZodObject<any, z.UnknownKeysParam, z.ZodTypeAny, {
|
|
1240
1240
|
[x: string]: any;
|
|
1241
1241
|
}, {
|
|
1242
1242
|
[x: string]: any;
|
|
@@ -1279,7 +1279,7 @@ export declare function mergeTemplateBySlug(slug: string, targetPath?: string):
|
|
|
1279
1279
|
targetPath?: string | undefined;
|
|
1280
1280
|
success?: boolean | undefined;
|
|
1281
1281
|
error?: string | undefined;
|
|
1282
|
-
}>, z.ZodType<any, z.ZodTypeDef, any>, z.ZodType<any, z.ZodTypeDef, any>, import("@mastra/core").DefaultEngineType> | import("@mastra/core").Step<"analyze-package", z.ZodObject<any, z.UnknownKeysParam, z.ZodTypeAny, {
|
|
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
1283
|
[x: string]: any;
|
|
1284
1284
|
}, {
|
|
1285
1285
|
[x: string]: any;
|
|
@@ -1334,7 +1334,7 @@ export declare function mergeTemplateBySlug(slug: string, targetPath?: string):
|
|
|
1334
1334
|
devDependencies?: Record<string, string> | undefined;
|
|
1335
1335
|
peerDependencies?: Record<string, string> | undefined;
|
|
1336
1336
|
scripts?: Record<string, string> | undefined;
|
|
1337
|
-
}>, z.ZodType<any, z.ZodTypeDef, any>, z.ZodType<any, z.ZodTypeDef, any>, import("@mastra/core").DefaultEngineType> | import("@mastra/core").Step<"discover-units", z.ZodObject<any, z.UnknownKeysParam, z.ZodTypeAny, {
|
|
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
1338
|
[x: string]: any;
|
|
1339
1339
|
}, {
|
|
1340
1340
|
[x: string]: any;
|
|
@@ -1391,7 +1391,7 @@ export declare function mergeTemplateBySlug(slug: string, targetPath?: string):
|
|
|
1391
1391
|
}[];
|
|
1392
1392
|
success?: boolean | undefined;
|
|
1393
1393
|
error?: string | undefined;
|
|
1394
|
-
}>, z.ZodType<any, z.ZodTypeDef, any>, z.ZodType<any, z.ZodTypeDef, any>, import("@mastra/core").DefaultEngineType> | import("@mastra/core").Step<"order-units", z.ZodObject<any, z.UnknownKeysParam, z.ZodTypeAny, {
|
|
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
1395
|
[x: string]: any;
|
|
1396
1396
|
}, {
|
|
1397
1397
|
[x: string]: any;
|
|
@@ -1459,7 +1459,7 @@ export declare function mergeTemplateBySlug(slug: string, targetPath?: string):
|
|
|
1459
1459
|
}[];
|
|
1460
1460
|
success?: boolean | undefined;
|
|
1461
1461
|
error?: string | undefined;
|
|
1462
|
-
}>, z.ZodType<any, z.ZodTypeDef, any>, z.ZodType<any, z.ZodTypeDef, any>, import("@mastra/core").DefaultEngineType> | import("@mastra/core").Step<"package-merge", z.ZodObject<any, z.UnknownKeysParam, z.ZodTypeAny, {
|
|
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
1463
|
[x: string]: any;
|
|
1464
1464
|
}, {
|
|
1465
1465
|
[x: string]: any;
|
|
@@ -1543,16 +1543,16 @@ export declare function mergeTemplateBySlug(slug: string, targetPath?: string):
|
|
|
1543
1543
|
success: boolean;
|
|
1544
1544
|
applied: boolean;
|
|
1545
1545
|
error?: string | undefined;
|
|
1546
|
-
}>, z.ZodType<any, z.ZodTypeDef, any>, z.ZodType<any, z.ZodTypeDef, any>, import("@mastra/core").DefaultEngineType> | import("@mastra/core").Step<"install", z.ZodObject<any, z.UnknownKeysParam, z.ZodTypeAny, {
|
|
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
1547
|
[x: string]: any;
|
|
1548
1548
|
}, {
|
|
1549
1549
|
[x: string]: any;
|
|
1550
1550
|
}>, z.ZodObject<{
|
|
1551
|
-
targetPath: z.ZodString
|
|
1551
|
+
targetPath: z.ZodOptional<z.ZodString>;
|
|
1552
1552
|
}, "strip", z.ZodTypeAny, {
|
|
1553
|
-
targetPath
|
|
1553
|
+
targetPath?: string | undefined;
|
|
1554
1554
|
}, {
|
|
1555
|
-
targetPath
|
|
1555
|
+
targetPath?: string | undefined;
|
|
1556
1556
|
}>, z.ZodObject<{
|
|
1557
1557
|
success: z.ZodBoolean;
|
|
1558
1558
|
error: z.ZodOptional<z.ZodString>;
|
|
@@ -1562,7 +1562,7 @@ export declare function mergeTemplateBySlug(slug: string, targetPath?: string):
|
|
|
1562
1562
|
}, {
|
|
1563
1563
|
success: boolean;
|
|
1564
1564
|
error?: string | undefined;
|
|
1565
|
-
}>, 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<any, z.UnknownKeysParam, z.ZodTypeAny, {
|
|
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
1566
|
[x: string]: any;
|
|
1567
1567
|
}, {
|
|
1568
1568
|
[x: string]: any;
|
|
@@ -1712,7 +1712,7 @@ export declare function mergeTemplateBySlug(slug: string, targetPath?: string):
|
|
|
1712
1712
|
targetFile: string;
|
|
1713
1713
|
}[];
|
|
1714
1714
|
error?: string | undefined;
|
|
1715
|
-
}>, z.ZodType<any, z.ZodTypeDef, any>, z.ZodType<any, z.ZodTypeDef, any>, import("@mastra/core").DefaultEngineType> | import("@mastra/core").Step<"intelligent-merge", z.ZodObject<any, z.UnknownKeysParam, z.ZodTypeAny, {
|
|
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
1716
|
[x: string]: any;
|
|
1717
1717
|
}, {
|
|
1718
1718
|
[x: string]: any;
|
|
@@ -1886,7 +1886,7 @@ export declare function mergeTemplateBySlug(slug: string, targetPath?: string):
|
|
|
1886
1886
|
resolution: string;
|
|
1887
1887
|
}[];
|
|
1888
1888
|
error?: string | undefined;
|
|
1889
|
-
}>, 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<any, z.UnknownKeysParam, z.ZodTypeAny, {
|
|
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
1890
|
[x: string]: any;
|
|
1891
1891
|
}, {
|
|
1892
1892
|
[x: string]: any;
|
|
@@ -2062,5 +2062,5 @@ export declare function mergeTemplateBySlug(slug: string, targetPath?: string):
|
|
|
2062
2062
|
errors?: any[] | undefined;
|
|
2063
2063
|
};
|
|
2064
2064
|
error?: string | undefined;
|
|
2065
|
-
}>, z.ZodType<any, z.ZodTypeDef, any>, z.ZodType<any, z.ZodTypeDef, any>, import("@mastra/core").DefaultEngineType>)[]>>;
|
|
2065
|
+
}>, z.ZodType<any, z.ZodTypeDef, any>, z.ZodType<any, z.ZodTypeDef, any>, import("@mastra/core/workflows").DefaultEngineType>)[]>>;
|
|
2066
2066
|
//# sourceMappingURL=template-builder.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"template-builder.d.ts","sourceRoot":"","sources":["../../../src/workflows/template-builder/template-builder.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"template-builder.d.ts","sourceRoot":"","sources":["../../../src/workflows/template-builder/template-builder.ts"],"names":[],"mappings":"AAaA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAmhDxB,eAAO,MAAM,4BAA4B;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA0N9B,CAAC;AAGZ,wBAAsB,mBAAmB,CAAC,IAAI,EAAE,MAAM,EAAE,UAAU,CAAC,EAAE,MAAM;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;mIAU1E"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export declare const workflowResearch = "\n## \uD83D\uDD0D **COMPREHENSIVE MASTRA WORKFLOW RESEARCH SUMMARY**\n\nBased on extensive research of Mastra documentation and examples, here's essential information for building effective Mastra workflows:\n\n### **\uD83D\uDCCB WORKFLOW FUNDAMENTALS**\n\n**Core Components:**\n- **`createWorkflow()`**: Main factory function that creates workflow instances\n- **`createStep()`**: Creates individual workflow steps with typed inputs/outputs \n- **`.commit()`**: Finalizes workflow definition (REQUIRED to make workflows executable)\n- **Zod schemas**: Used for strict input/output typing and validation\n\n**Basic Structure:**\n```typescript\nimport { createWorkflow, createStep } from \"@mastra/core/workflows\";\nimport { z } from \"zod\";\n\nconst workflow = createWorkflow({\n id: \"unique-workflow-id\", // Required: kebab-case recommended\n description: \"What this workflow does\", // Optional but recommended\n inputSchema: z.object({...}), // Required: Defines workflow inputs\n outputSchema: z.object({...}) // Required: Defines final outputs\n})\n .then(step1) // Chain steps sequentially\n .then(step2)\n .commit(); // CRITICAL: Makes workflow executable\n```\n\n### **\uD83D\uDD27 STEP CREATION PATTERNS**\n\n**Standard Step Definition:**\n```typescript\nconst myStep = createStep({\n id: \"step-id\", // Required: unique identifier\n description: \"Step description\", // Recommended for clarity\n inputSchema: z.object({...}), // Required: input validation\n outputSchema: z.object({...}), // Required: output validation\n execute: async ({ inputData, mastra, getStepResult, getInitData }) => {\n // Step logic here\n return { /* matches outputSchema */ };\n }\n});\n```\n\n**Execute Function Parameters:**\n- `inputData`: Validated input matching inputSchema\n- `mastra`: Access to Mastra instance (agents, tools, other workflows)\n- `getStepResult(stepInstance)`: Get results from previous steps\n- `getInitData()`: Access original workflow input data\n- `
|
|
1
|
+
export declare const workflowResearch = "\n## \uD83D\uDD0D **COMPREHENSIVE MASTRA WORKFLOW RESEARCH SUMMARY**\n\nBased on extensive research of Mastra documentation and examples, here's essential information for building effective Mastra workflows:\n\n### **\uD83D\uDCCB WORKFLOW FUNDAMENTALS**\n\n**Core Components:**\n- **`createWorkflow()`**: Main factory function that creates workflow instances\n- **`createStep()`**: Creates individual workflow steps with typed inputs/outputs \n- **`.commit()`**: Finalizes workflow definition (REQUIRED to make workflows executable)\n- **Zod schemas**: Used for strict input/output typing and validation\n\n**Basic Structure:**\n```typescript\nimport { createWorkflow, createStep } from \"@mastra/core/workflows\";\nimport { z } from \"zod\";\n\nconst workflow = createWorkflow({\n id: \"unique-workflow-id\", // Required: kebab-case recommended\n description: \"What this workflow does\", // Optional but recommended\n inputSchema: z.object({...}), // Required: Defines workflow inputs\n outputSchema: z.object({...}) // Required: Defines final outputs\n})\n .then(step1) // Chain steps sequentially\n .then(step2)\n .commit(); // CRITICAL: Makes workflow executable\n```\n\n### **\uD83D\uDD27 STEP CREATION PATTERNS**\n\n**Standard Step Definition:**\n```typescript\nconst myStep = createStep({\n id: \"step-id\", // Required: unique identifier\n description: \"Step description\", // Recommended for clarity\n inputSchema: z.object({...}), // Required: input validation\n outputSchema: z.object({...}), // Required: output validation\n execute: async ({ inputData, mastra, getStepResult, getInitData }) => {\n // Step logic here\n return { /* matches outputSchema */ };\n }\n});\n```\n\n**Execute Function Parameters:**\n- `inputData`: Validated input matching inputSchema\n- `mastra`: Access to Mastra instance (agents, tools, other workflows)\n- `getStepResult(stepInstance)`: Get results from previous steps\n- `getInitData()`: Access original workflow input data\n- `requestContext`: Runtime dependency injection context\n- `runCount`: Number of times this step has run (useful for retries)\n\n### **\uD83D\uDD04 CONTROL FLOW METHODS**\n\n**Sequential Execution:**\n- `.then(step)`: Execute steps one after another\n- Data flows automatically if schemas match\n\n**Parallel Execution:**\n- `.parallel([step1, step2])`: Run steps simultaneously\n- All parallel steps complete before continuing\n\n**Conditional Logic:**\n- `.branch([[condition, step], [condition, step]])`: Execute different steps based on conditions\n- Conditions evaluated sequentially, matching steps run in parallel\n\n**Loops:**\n- `.dountil(step, condition)`: Repeat until condition becomes true\n- `.dowhile(step, condition)`: Repeat while condition is true \n- `.foreach(step, {concurrency: N})`: Execute step for each array item\n\n**Data Transformation:**\n- `.map(({ inputData, getStepResult, getInitData }) => transformedData)`: Transform data between steps\n\n### **\u23F8\uFE0F SUSPEND & RESUME CAPABILITIES**\n\n**For Human-in-the-Loop Workflows:**\n```typescript\nconst userInputStep = createStep({\n id: \"user-input\",\n suspendSchema: z.object({}), // Schema for suspension payload\n resumeSchema: z.object({ // Schema for resume data\n userResponse: z.string()\n }),\n execute: async ({ resumeData, suspend }) => {\n if (!resumeData?.userResponse) {\n await suspend({}); // Pause workflow\n return { response: \"\" };\n }\n return { response: resumeData.userResponse };\n }\n});\n```\n\n**Resume Workflow:**\n```typescript\nconst result = await run.start({ inputData: {...} });\nif (result.status === \"suspended\") {\n await run.resume({\n step: result.suspended[0], // Or specific step ID\n resumeData: { userResponse: \"answer\" }\n });\n}\n```\n\n### **\uD83D\uDEE0\uFE0F INTEGRATING AGENTS & TOOLS**\n\n**Using Agents in Steps:**\n```typescript\n// Method 1: Agent as step\nconst agentStep = createStep(myAgent);\n\n// Method 2: Call agent in execute function\nconst step = createStep({\n execute: async ({ inputData }) => {\n const result = await myAgent.generate(prompt);\n return { output: result.text };\n }\n});\n```\n\n**Using Tools in Steps:**\n```typescript\n// Method 1: Tool as step \nconst toolStep = createStep(myTool);\n\n// Method 2: Call tool in execute function\nconst step = createStep({\n execute: async ({ inputData, requestContext }) => {\n const result = await myTool.execute({\n context: inputData,\n requestContext\n });\n return result;\n }\n});\n```\n\n### **\uD83D\uDDC2\uFE0F PROJECT ORGANIZATION PATTERNS**\n\n**MANDATORY Workflow Organization:**\nEach workflow MUST be organized in its own dedicated folder with separated concerns:\n\n```\nsrc/mastra/workflows/\n\u251C\u2500\u2500 my-workflow-name/ # Kebab-case folder name\n\u2502 \u251C\u2500\u2500 types.ts # All Zod schemas and TypeScript types\n\u2502 \u251C\u2500\u2500 steps.ts # All individual step definitions\n\u2502 \u251C\u2500\u2500 workflow.ts # Main workflow composition and export\n\u2502 \u2514\u2500\u2500 utils.ts # Helper functions (if needed)\n\u251C\u2500\u2500 another-workflow/\n\u2502 \u251C\u2500\u2500 types.ts\n\u2502 \u251C\u2500\u2500 steps.ts\n\u2502 \u251C\u2500\u2500 workflow.ts\n\u2502 \u2514\u2500\u2500 utils.ts\n\u2514\u2500\u2500 index.ts # Export all workflows\n```\n\n**CRITICAL File Organization Rules:**\n- **ALWAYS create a dedicated folder** for each workflow\n- **Folder names MUST be kebab-case** version of workflow name\n- **types.ts**: Define all input/output schemas, validation types, and interfaces\n- **steps.ts**: Create all individual step definitions using createStep()\n- **workflow.ts**: Compose steps into workflow using createWorkflow() and export the final workflow\n- **utils.ts**: Any helper functions, constants, or utilities (create only if needed)\n- **NEVER put everything in one file** - always separate concerns properly\n\n**Workflow Registration:**\n```typescript\n// src/mastra/index.ts\nexport const mastra = new Mastra({\n workflows: {\n sendEmailWorkflow, // Use camelCase for keys\n dataProcessingWorkflow\n },\n storage: new LibSQLStore({ id: 'mastra-storage', url: 'file:./mastra.db' }), // Required for suspend/resume\n});\n```\n\n### **\uD83D\uDCE6 ESSENTIAL DEPENDENCIES**\n\n**Required Packages:**\n```json\n{\n \"dependencies\": {\n \"@mastra/core\": \"latest\",\n \"zod\": \"^3.25.67\"\n }\n}\n```\n\n**Additional Packages (as needed):**\n- `@mastra/libsql`: For workflow state persistence\n- `@ai-sdk/openai`: For AI model integration\n- `ai`: For AI SDK functionality\n\n### **\u2705 WORKFLOW BEST PRACTICES**\n\n**Schema Design:**\n- Use descriptive property names in schemas\n- Make schemas as specific as possible (avoid `z.any()`)\n- Include validation for required business logic\n\n**Error Handling:**\n- Use `try/catch` blocks in step execute functions\n- Return meaningful error messages\n- Consider using `bail()` for early successful exits\n\n**Step Organization:**\n- Keep steps focused on single responsibilities\n- Use descriptive step IDs (kebab-case recommended)\n- Create reusable steps for common operations\n\n**Data Flow:**\n- Use `.map()` when schemas don't align between steps\n- Access previous step results with `getStepResult(stepInstance)`\n- Use `getInitData()` to access original workflow input\n\n### **\uD83D\uDE80 EXECUTION PATTERNS**\n\n**Running Workflows:**\n```typescript\n// Create and start run\nconst run = await workflow.createRun();\nconst result = await run.start({ inputData: {...} });\n\n// Stream execution for real-time monitoring\nconst stream = await run.streamVNext({ inputData: {...} });\nfor await (const chunk of stream) {\n console.log(chunk);\n}\n\n// Watch for events\nrun.watch((event) => console.log(event));\n```\n\n**Workflow Status Types:**\n- `\"success\"`: Completed successfully\n- `\"suspended\"`: Paused awaiting input\n- `\"failed\"`: Encountered error\n\n### **\uD83D\uDD17 ADVANCED FEATURES**\n\n**Nested Workflows:**\n- Use workflows as steps: `.then(otherWorkflow)`\n- Enable complex workflow composition\n\n**Request Context:**\n- Pass shared data across all steps\n- Enable dependency injection patterns\n\n**Streaming & Events:**\n- Real-time workflow monitoring\n- Integration with external event systems\n\n**Cloning:**\n- `cloneWorkflow(original, {id: \"new-id\"})`: Reuse workflow structure\n- `cloneStep(original, {id: \"new-id\"})`: Reuse step logic\n\nThis comprehensive research provides the foundation for creating robust, maintainable Mastra workflows with proper typing, error handling, and architectural patterns.\n";
|
|
2
2
|
/**
|
|
3
3
|
* Prompts and instructions for workflow builder agents
|
|
4
4
|
*/
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"prompts.d.ts","sourceRoot":"","sources":["../../../src/workflows/workflow-builder/prompts.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,gBAAgB,
|
|
1
|
+
{"version":3,"file":"prompts.d.ts","sourceRoot":"","sources":["../../../src/workflows/workflow-builder/prompts.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,gBAAgB,2rRAqQ5B,CAAC;AACF;;GAEG;AAEH,MAAM,WAAW,sBAAsB;IACrC,aAAa,EAAE;QACb,YAAY,EAAE,MAAM,CAAC;QACrB,MAAM,EAAE,CAAC,OAAO,EAAE;YAAE,gBAAgB,EAAE,GAAG,CAAC;YAAC,YAAY,EAAE,GAAG,CAAC;YAAC,eAAe,EAAE,OAAO,CAAA;SAAE,KAAK,MAAM,CAAC;KACrG,CAAC;IACF,cAAc,EAAE;QACd,YAAY,EAAE,CAAC,OAAO,EAAE;YACtB,MAAM,EAAE,MAAM,CAAC;YACf,YAAY,CAAC,EAAE,MAAM,CAAC;YACtB,WAAW,EAAE,MAAM,CAAC;YACpB,kBAAkB,EAAE,MAAM,CAAC;YAC3B,mBAAmB,EAAE,GAAG,CAAC;YACzB,gBAAgB,EAAE,GAAG,CAAC;YACtB,QAAQ,EAAE,GAAG,CAAC;YACd,KAAK,EAAE,GAAG,EAAE,CAAC;YACb,UAAU,CAAC,EAAE,GAAG,CAAC;SAClB,KAAK,MAAM,CAAC;QACb,MAAM,EAAE,CAAC,OAAO,EAAE;YAAE,MAAM,EAAE,MAAM,CAAC;YAAC,YAAY,CAAC,EAAE,MAAM,CAAC;YAAC,KAAK,EAAE,GAAG,EAAE,CAAC;YAAC,UAAU,CAAC,EAAE,GAAG,CAAA;SAAE,KAAK,MAAM,CAAC;QACvG,eAAe,EAAE,CAAC,OAAO,EAAE;YACzB,cAAc,EAAE,GAAG,EAAE,CAAC;YACtB,YAAY,EAAE,GAAG,EAAE,CAAC;YACpB,YAAY,CAAC,EAAE,MAAM,CAAC;YACtB,UAAU,CAAC,EAAE,GAAG,CAAC;SAClB,KAAK,MAAM,CAAC;KACd,CAAC;IACF,UAAU,EAAE;QACV,YAAY,EAAE,MAAM,CAAC;KACtB,CAAC;CACH;AAED,eAAO,MAAM,sBAAsB,EAAE,sBAsIpC,CAAC"}
|