@mastra/agent-builder 1.1.31 → 1.1.32-alpha.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 +1 @@
1
- {"version":3,"file":"tool-summary.d.ts","sourceRoot":"","sources":["../../src/processors/tool-summary.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,eAAe,EAAE,WAAW,EAAE,MAAM,oBAAoB,CAAC;AACvE,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,kBAAkB,CAAC;AAC1D,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,yBAAyB,CAAC;AAEzD;;GAEG;AACH,qBAAa,oBAAqB,YAAW,SAAS;IACpD,QAAQ,CAAC,EAAE,4BAA4B;IACvC,QAAQ,CAAC,IAAI,0BAA0B;IAEvC,OAAO,CAAC,YAAY,CAAQ;IAC5B,OAAO,CAAC,YAAY,CAAkC;gBAE1C,EAAE,YAAY,EAAE,EAAE;QAAE,YAAY,EAAE,iBAAiB,CAAA;KAAE;IAUjE;;OAEG;IACI,cAAc,CAAC,QAAQ,EAAE,GAAG,GAAG,MAAM;IAkB5C;;OAEG;IACI,UAAU,IAAI,IAAI;IAIzB;;OAEG;IACI,aAAa,IAAI;QAAE,IAAI,EAAE,MAAM,CAAC;QAAC,IAAI,EAAE,MAAM,EAAE,CAAA;KAAE;IAOlD,YAAY,CAAC,EACjB,QAAQ,EACR,WAAW,EAAE,YAAY,GAC1B,EAAE;QACD,QAAQ,EAAE,eAAe,EAAE,CAAC;QAC5B,WAAW,EAAE,WAAW,CAAC;QACzB,KAAK,EAAE,CAAC,MAAM,CAAC,EAAE,MAAM,KAAK,KAAK,CAAC;KACnC,GAAG,OAAO,CAAC,eAAe,EAAE,CAAC;CA6F/B"}
1
+ {"version":3,"file":"tool-summary.d.ts","sourceRoot":"","sources":["../../src/processors/tool-summary.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,eAAe,EAAE,WAAW,EAAE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AAQ,EAAE,WAAW,EAAE,GAAG,OAAO,CAAC,WAAW,EAAE,CAAC;CAI/D"}
1
+ {"version":3,"file":"write-file.d.ts","sourceRoot":"","sources":["../../src/processors/write-file.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,kBAAkB,CAAC;AACpD,OAAO,EAAE,eAAe,EAAE,MAAM,qBAAqB,CAAC;AAEtD,qBAAa,oBAAqB,SAAQ,eAAe;IACvD,OAAO,CAAC,MAAM,CAAS;IAEvB,YAAY,EAAE,MAAmB,EAAE,GAAE;QAAE,MAAM,CAAC,EAAE,MAAM,CAAA;KAAO,EAG5D;IAEK,OAAO,CAAC,QAAQ,EAAE,WAAW,EAAE,GAAG,OAAO,CAAC,WAAW,EAAE,CAAC,CAG7D;CACF"}
package/dist/types.d.ts CHANGED
@@ -54,7 +54,7 @@ export type PackageManager = 'npm' | 'pnpm' | 'yarn';
54
54
  * Validation types for code validation
55
55
  */
56
56
  export type ValidationType = 'types' | 'schemas' | 'tests' | 'integration';
57
- export declare const UNIT_KINDS: readonly ["mcp-server", "tool", "workflow", "agent", "integration", "network", "other"];
57
+ export declare const UNIT_KINDS: readonly ['mcp-server', 'tool', 'workflow', 'agent', 'integration', 'network', 'other'];
58
58
  export type UnitKind = (typeof UNIT_KINDS)[number];
59
59
  export interface TemplateUnit {
60
60
  kind: UnitKind;
@@ -75,13 +75,13 @@ export interface MergePlan {
75
75
  }
76
76
  export declare const TemplateUnitSchema: z.ZodObject<{
77
77
  kind: z.ZodEnum<{
78
+ agent: "agent";
78
79
  integration: "integration";
79
80
  "mcp-server": "mcp-server";
80
- tool: "tool";
81
- workflow: "workflow";
82
- agent: "agent";
83
81
  network: "network";
84
82
  other: "other";
83
+ tool: "tool";
84
+ workflow: "workflow";
85
85
  }>;
86
86
  id: z.ZodString;
87
87
  file: z.ZodString;
@@ -92,13 +92,13 @@ export declare const TemplateManifestSchema: z.ZodObject<{
92
92
  description: z.ZodOptional<z.ZodString>;
93
93
  units: z.ZodArray<z.ZodObject<{
94
94
  kind: z.ZodEnum<{
95
+ agent: "agent";
95
96
  integration: "integration";
96
97
  "mcp-server": "mcp-server";
97
- tool: "tool";
98
- workflow: "workflow";
99
- agent: "agent";
100
98
  network: "network";
101
99
  other: "other";
100
+ tool: "tool";
101
+ workflow: "workflow";
102
102
  }>;
103
103
  id: z.ZodString;
104
104
  file: z.ZodString;
@@ -117,13 +117,13 @@ export declare const MergePlanSchema: z.ZodObject<{
117
117
  templateDir: z.ZodString;
118
118
  units: z.ZodArray<z.ZodObject<{
119
119
  kind: z.ZodEnum<{
120
+ agent: "agent";
120
121
  integration: "integration";
121
122
  "mcp-server": "mcp-server";
122
- tool: "tool";
123
- workflow: "workflow";
124
- agent: "agent";
125
123
  network: "network";
126
124
  other: "other";
125
+ tool: "tool";
126
+ workflow: "workflow";
127
127
  }>;
128
128
  id: z.ZodString;
129
129
  file: z.ZodString;
@@ -134,13 +134,13 @@ export declare const CopiedFileSchema: z.ZodObject<{
134
134
  destination: z.ZodString;
135
135
  unit: z.ZodObject<{
136
136
  kind: z.ZodEnum<{
137
+ agent: "agent";
137
138
  integration: "integration";
138
139
  "mcp-server": "mcp-server";
139
- tool: "tool";
140
- workflow: "workflow";
141
- agent: "agent";
142
140
  network: "network";
143
141
  other: "other";
142
+ tool: "tool";
143
+ workflow: "workflow";
144
144
  }>;
145
145
  id: z.ZodString;
146
146
  }, z.core.$strip>;
@@ -148,13 +148,13 @@ export declare const CopiedFileSchema: z.ZodObject<{
148
148
  export declare const ConflictSchema: z.ZodObject<{
149
149
  unit: z.ZodObject<{
150
150
  kind: z.ZodEnum<{
151
+ agent: "agent";
151
152
  integration: "integration";
152
153
  "mcp-server": "mcp-server";
153
- tool: "tool";
154
- workflow: "workflow";
155
- agent: "agent";
156
154
  network: "network";
157
155
  other: "other";
156
+ tool: "tool";
157
+ workflow: "workflow";
158
158
  }>;
159
159
  id: z.ZodString;
160
160
  }, z.core.$strip>;
@@ -165,13 +165,13 @@ export declare const ConflictSchema: z.ZodObject<{
165
165
  export declare const FileCopyInputSchema: z.ZodObject<{
166
166
  orderedUnits: z.ZodArray<z.ZodObject<{
167
167
  kind: z.ZodEnum<{
168
+ agent: "agent";
168
169
  integration: "integration";
169
170
  "mcp-server": "mcp-server";
170
- tool: "tool";
171
- workflow: "workflow";
172
- agent: "agent";
173
171
  network: "network";
174
172
  other: "other";
173
+ tool: "tool";
174
+ workflow: "workflow";
175
175
  }>;
176
176
  id: z.ZodString;
177
177
  file: z.ZodString;
@@ -189,13 +189,13 @@ export declare const FileCopyResultSchema: z.ZodObject<{
189
189
  destination: z.ZodString;
190
190
  unit: z.ZodObject<{
191
191
  kind: z.ZodEnum<{
192
+ agent: "agent";
192
193
  integration: "integration";
193
194
  "mcp-server": "mcp-server";
194
- tool: "tool";
195
- workflow: "workflow";
196
- agent: "agent";
197
195
  network: "network";
198
196
  other: "other";
197
+ tool: "tool";
198
+ workflow: "workflow";
199
199
  }>;
200
200
  id: z.ZodString;
201
201
  }, z.core.$strip>;
@@ -203,13 +203,13 @@ export declare const FileCopyResultSchema: z.ZodObject<{
203
203
  conflicts: z.ZodArray<z.ZodObject<{
204
204
  unit: z.ZodObject<{
205
205
  kind: z.ZodEnum<{
206
+ agent: "agent";
206
207
  integration: "integration";
207
208
  "mcp-server": "mcp-server";
208
- tool: "tool";
209
- workflow: "workflow";
210
- agent: "agent";
211
209
  network: "network";
212
210
  other: "other";
211
+ tool: "tool";
212
+ workflow: "workflow";
213
213
  }>;
214
214
  id: z.ZodString;
215
215
  }, z.core.$strip>;
@@ -223,13 +223,13 @@ export declare const FileCopyResultSchema: z.ZodObject<{
223
223
  export declare const ConflictResolutionSchema: z.ZodObject<{
224
224
  unit: z.ZodObject<{
225
225
  kind: z.ZodEnum<{
226
+ agent: "agent";
226
227
  integration: "integration";
227
228
  "mcp-server": "mcp-server";
228
- tool: "tool";
229
- workflow: "workflow";
230
- agent: "agent";
231
229
  network: "network";
232
230
  other: "other";
231
+ tool: "tool";
232
+ workflow: "workflow";
233
233
  }>;
234
234
  id: z.ZodString;
235
235
  }, z.core.$strip>;
@@ -240,13 +240,13 @@ export declare const IntelligentMergeInputSchema: z.ZodObject<{
240
240
  conflicts: z.ZodArray<z.ZodObject<{
241
241
  unit: z.ZodObject<{
242
242
  kind: z.ZodEnum<{
243
+ agent: "agent";
243
244
  integration: "integration";
244
245
  "mcp-server": "mcp-server";
245
- tool: "tool";
246
- workflow: "workflow";
247
- agent: "agent";
248
246
  network: "network";
249
247
  other: "other";
248
+ tool: "tool";
249
+ workflow: "workflow";
250
250
  }>;
251
251
  id: z.ZodString;
252
252
  }, z.core.$strip>;
@@ -259,13 +259,13 @@ export declare const IntelligentMergeInputSchema: z.ZodObject<{
259
259
  destination: z.ZodString;
260
260
  unit: z.ZodObject<{
261
261
  kind: z.ZodEnum<{
262
+ agent: "agent";
262
263
  integration: "integration";
263
264
  "mcp-server": "mcp-server";
264
- tool: "tool";
265
- workflow: "workflow";
266
- agent: "agent";
267
265
  network: "network";
268
266
  other: "other";
267
+ tool: "tool";
268
+ workflow: "workflow";
269
269
  }>;
270
270
  id: z.ZodString;
271
271
  }, z.core.$strip>;
@@ -283,13 +283,13 @@ export declare const IntelligentMergeResultSchema: z.ZodObject<{
283
283
  conflictsResolved: z.ZodArray<z.ZodObject<{
284
284
  unit: z.ZodObject<{
285
285
  kind: z.ZodEnum<{
286
+ agent: "agent";
286
287
  integration: "integration";
287
288
  "mcp-server": "mcp-server";
288
- tool: "tool";
289
- workflow: "workflow";
290
- agent: "agent";
291
289
  network: "network";
292
290
  other: "other";
291
+ tool: "tool";
292
+ workflow: "workflow";
293
293
  }>;
294
294
  id: z.ZodString;
295
295
  }, z.core.$strip>;
@@ -311,13 +311,13 @@ export declare const ValidationFixInputSchema: z.ZodObject<{
311
311
  templateDir: z.ZodString;
312
312
  orderedUnits: z.ZodArray<z.ZodObject<{
313
313
  kind: z.ZodEnum<{
314
+ agent: "agent";
314
315
  integration: "integration";
315
316
  "mcp-server": "mcp-server";
316
- tool: "tool";
317
- workflow: "workflow";
318
- agent: "agent";
319
317
  network: "network";
320
318
  other: "other";
319
+ tool: "tool";
320
+ workflow: "workflow";
321
321
  }>;
322
322
  id: z.ZodString;
323
323
  file: z.ZodString;
@@ -327,13 +327,13 @@ export declare const ValidationFixInputSchema: z.ZodObject<{
327
327
  destination: z.ZodString;
328
328
  unit: z.ZodObject<{
329
329
  kind: z.ZodEnum<{
330
+ agent: "agent";
330
331
  integration: "integration";
331
332
  "mcp-server": "mcp-server";
332
- tool: "tool";
333
- workflow: "workflow";
334
- agent: "agent";
335
333
  network: "network";
336
334
  other: "other";
335
+ tool: "tool";
336
+ workflow: "workflow";
337
337
  }>;
338
338
  id: z.ZodString;
339
339
  }, z.core.$strip>;
@@ -341,13 +341,13 @@ export declare const ValidationFixInputSchema: z.ZodObject<{
341
341
  conflictsResolved: z.ZodOptional<z.ZodArray<z.ZodObject<{
342
342
  unit: z.ZodObject<{
343
343
  kind: z.ZodEnum<{
344
+ agent: "agent";
344
345
  integration: "integration";
345
346
  "mcp-server": "mcp-server";
346
- tool: "tool";
347
- workflow: "workflow";
348
- agent: "agent";
349
347
  network: "network";
350
348
  other: "other";
349
+ tool: "tool";
350
+ workflow: "workflow";
351
351
  }>;
352
352
  id: z.ZodString;
353
353
  }, z.core.$strip>;
@@ -419,13 +419,13 @@ export declare const PackageAnalysisSchema: z.ZodObject<{
419
419
  export declare const DiscoveryResultSchema: z.ZodObject<{
420
420
  units: z.ZodArray<z.ZodObject<{
421
421
  kind: z.ZodEnum<{
422
+ agent: "agent";
422
423
  integration: "integration";
423
424
  "mcp-server": "mcp-server";
424
- tool: "tool";
425
- workflow: "workflow";
426
- agent: "agent";
427
425
  network: "network";
428
426
  other: "other";
427
+ tool: "tool";
428
+ workflow: "workflow";
429
429
  }>;
430
430
  id: z.ZodString;
431
431
  file: z.ZodString;
@@ -436,13 +436,13 @@ export declare const DiscoveryResultSchema: z.ZodObject<{
436
436
  export declare const OrderedUnitsSchema: z.ZodObject<{
437
437
  orderedUnits: z.ZodArray<z.ZodObject<{
438
438
  kind: z.ZodEnum<{
439
+ agent: "agent";
439
440
  integration: "integration";
440
441
  "mcp-server": "mcp-server";
441
- tool: "tool";
442
- workflow: "workflow";
443
- agent: "agent";
444
442
  network: "network";
445
443
  other: "other";
444
+ tool: "tool";
445
+ workflow: "workflow";
446
446
  }>;
447
447
  id: z.ZodString;
448
448
  file: z.ZodString;
@@ -1 +1 @@
1
- {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../src/types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,oBAAoB,CAAC;AACrD,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,kBAAkB,CAAC;AAC1D,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,sBAAsB,CAAC;AAC1D,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,qBAAqB,CAAC;AACxD,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB;;GAEG;AACH,MAAM,WAAW,kBAAkB;IACjC,qDAAqD;IACrD,KAAK,EAAE,iBAAiB,CAAC;IACzB,6CAA6C;IAC7C,OAAO,CAAC,EAAE,aAAa,CAAC;IACxB,4CAA4C;IAC5C,cAAc,CAAC,EAAE,YAAY,CAAC;IAC9B,yDAAyD;IACzD,KAAK,CAAC,EAAE,UAAU,CAAC;IACnB,iEAAiE;IACjE,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,mCAAmC;IACnC,YAAY,CAAC,EAAE;QACb,WAAW,CAAC,EAAE,MAAM,CAAC;QACrB,UAAU,CAAC,EAAE,MAAM,CAAC;KACrB,CAAC;IACF,mBAAmB;IACnB,WAAW,EAAE,MAAM,CAAC;IACpB,oBAAoB;IACpB,YAAY,CAAC,EAAE,iBAAiB,CAAC;IACjC,WAAW;IACX,IAAI,CAAC,EAAE,UAAU,GAAG,aAAa,CAAC;CACnC;AAED;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inputData: any, requestContext: any) => string;
63
63
  export declare const mergeGitignoreFiles: (targetContent: string, templateContent: string, templateSlug: string) => string;
64
64
  export declare const mergeEnvFiles: (targetContent: string, templateVariables: Record<string, string>, templateSlug: string) => string;
65
- export declare const detectAISDKVersion: (projectPath: string) => Promise<"v1" | "v2">;
66
- export declare const createModelInstance: (provider: string, modelId: string, version?: "v1" | "v2") => Promise<MastraLanguageModel | MastraLegacyLanguageModel | ModelRouterLanguageModel | null>;
65
+ export declare const detectAISDKVersion: (projectPath: string) => Promise<'v1' | 'v2'>;
66
+ export declare const createModelInstance: (provider: string, modelId: string, version?: 'v1' | 'v2') => Promise<MastraLanguageModel | MastraLegacyLanguageModel | ModelRouterLanguageModel | null>;
67
67
  export declare const resolveModel: ({ requestContext, defaultModel, projectPath, }: {
68
68
  requestContext: RequestContext;
69
69
  defaultModel?: MastraLanguageModel | MastraLegacyLanguageModel | string;
@@ -1 +1 @@
1
- {"version":3,"file":"utils.d.ts","sourceRoot":"","sources":["../src/utils.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,IAAI,IAAI,UAAU,EAAE,QAAQ,IAAI,cAAc,EAAsB,MAAM,oBAAoB,CAAC;AACxG,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,oBAAoB,CAAC;AAMvD,OAAO,KAAK,EAAE,mBAAmB,EAAE,yBAAyB,EAAE,MAAM,oBAAoB,CAAC;AACzF,OAAO,EAAE,wBAAwB,EAAE,MAAM,kBAAkB,CAAC;AAC5D,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,8BAA8B,CAAC;AAEnE,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,SAAS,CAAC;AAExC,eAAO,MAAM,IAAI,iCAAwB,CAAC;AAC1C,eAAO,MAAM,QAAQ,qCAA4B,CAAC;AA0DlD,wBAAgB,KAAK,CAAC,OAAO,EAAE,MAAM,EAAE,IAAI,EAAE,MAAM,EAAE,EAAE,OAAO,EAAE,GAAG,oBAiBlE;AAGD,wBAA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mBAAmB,GAAG,yBAAyB,GAAG,MAAM,CAAC;IACxE,WAAW,CAAC,EAAE,MAAM,CAAC;CACtB,KAAG,OAAO,CAAC,mBAAmB,GAAG,yBAAyB,CAiC1D,CAAC"}
@@ -3,15 +3,15 @@ export declare const TaskSchema: z.ZodArray<z.ZodObject<{
3
3
  id: z.ZodString;
4
4
  content: z.ZodString;
5
5
  status: z.ZodDefault<z.ZodEnum<{
6
- pending: "pending";
7
- in_progress: "in_progress";
8
- completed: "completed";
9
6
  blocked: "blocked";
7
+ completed: "completed";
8
+ in_progress: "in_progress";
9
+ pending: "pending";
10
10
  }>>;
11
11
  priority: z.ZodEnum<{
12
12
  high: "high";
13
- medium: "medium";
14
13
  low: "low";
14
+ medium: "medium";
15
15
  }>;
16
16
  dependencies: z.ZodOptional<z.ZodArray<z.ZodString>>;
17
17
  notes: z.ZodString;
@@ -21,8 +21,8 @@ export declare const QuestionSchema: z.ZodArray<z.ZodObject<{
21
21
  question: z.ZodString;
22
22
  type: z.ZodEnum<{
23
23
  boolean: "boolean";
24
- text: "text";
25
24
  choice: "choice";
25
+ text: "text";
26
26
  }>;
27
27
  options: z.ZodOptional<z.ZodArray<z.ZodString>>;
28
28
  context: z.ZodOptional<z.ZodString>;
@@ -33,15 +33,15 @@ export declare const PlanningIterationResultSchema: z.ZodObject<{
33
33
  id: z.ZodString;
34
34
  content: z.ZodString;
35
35
  status: z.ZodDefault<z.ZodEnum<{
36
- pending: "pending";
37
- in_progress: "in_progress";
38
- completed: "completed";
39
36
  blocked: "blocked";
37
+ completed: "completed";
38
+ in_progress: "in_progress";
39
+ pending: "pending";
40
40
  }>>;
41
41
  priority: z.ZodEnum<{
42
42
  high: "high";
43
- medium: "medium";
44
43
  low: "low";
44
+ medium: "medium";
45
45
  }>;
46
46
  dependencies: z.ZodOptional<z.ZodArray<z.ZodString>>;
47
47
  notes: z.ZodString;
@@ -51,8 +51,8 @@ export declare const PlanningIterationResultSchema: z.ZodObject<{
51
51
  question: z.ZodString;
52
52
  type: z.ZodEnum<{
53
53
  boolean: "boolean";
54
- text: "text";
55
54
  choice: "choice";
55
+ text: "text";
56
56
  }>;
57
57
  options: z.ZodOptional<z.ZodArray<z.ZodString>>;
58
58
  context: z.ZodOptional<z.ZodString>;
@@ -54,8 +54,8 @@ export declare const PlanningIterationSuspendSchema: z.ZodObject<{
54
54
  question: z.ZodString;
55
55
  type: z.ZodEnum<{
56
56
  boolean: "boolean";
57
- text: "text";
58
57
  choice: "choice";
58
+ text: "text";
59
59
  }>;
60
60
  options: z.ZodOptional<z.ZodArray<z.ZodString>>;
61
61
  context: z.ZodOptional<z.ZodString>;
@@ -66,15 +66,15 @@ export declare const PlanningIterationSuspendSchema: z.ZodObject<{
66
66
  id: z.ZodString;
67
67
  content: z.ZodString;
68
68
  status: z.ZodDefault<z.ZodEnum<{
69
- pending: "pending";
70
- in_progress: "in_progress";
71
- completed: "completed";
72
69
  blocked: "blocked";
70
+ completed: "completed";
71
+ in_progress: "in_progress";
72
+ pending: "pending";
73
73
  }>>;
74
74
  priority: z.ZodEnum<{
75
75
  high: "high";
76
- medium: "medium";
77
76
  low: "low";
77
+ medium: "medium";
78
78
  }>;
79
79
  dependencies: z.ZodOptional<z.ZodArray<z.ZodString>>;
80
80
  notes: z.ZodString;
@@ -90,15 +90,15 @@ export declare const PlanningAgentOutputSchema: z.ZodObject<{
90
90
  id: z.ZodString;
91
91
  content: z.ZodString;
92
92
  status: z.ZodDefault<z.ZodEnum<{
93
- pending: "pending";
94
- in_progress: "in_progress";
95
- completed: "completed";
96
93
  blocked: "blocked";
94
+ completed: "completed";
95
+ in_progress: "in_progress";
96
+ pending: "pending";
97
97
  }>>;
98
98
  priority: z.ZodEnum<{
99
99
  high: "high";
100
- medium: "medium";
101
100
  low: "low";
101
+ medium: "medium";
102
102
  }>;
103
103
  dependencies: z.ZodOptional<z.ZodArray<z.ZodString>>;
104
104
  notes: z.ZodString;
@@ -108,8 +108,8 @@ export declare const PlanningAgentOutputSchema: z.ZodObject<{
108
108
  question: z.ZodString;
109
109
  type: z.ZodEnum<{
110
110
  boolean: "boolean";
111
- text: "text";
112
111
  choice: "choice";
112
+ text: "text";
113
113
  }>;
114
114
  options: z.ZodOptional<z.ZodArray<z.ZodString>>;
115
115
  context: z.ZodOptional<z.ZodString>;
@@ -123,15 +123,15 @@ export declare const TaskApprovalOutputSchema: z.ZodObject<{
123
123
  id: z.ZodString;
124
124
  content: z.ZodString;
125
125
  status: z.ZodDefault<z.ZodEnum<{
126
- pending: "pending";
127
- in_progress: "in_progress";
128
- completed: "completed";
129
126
  blocked: "blocked";
127
+ completed: "completed";
128
+ in_progress: "in_progress";
129
+ pending: "pending";
130
130
  }>>;
131
131
  priority: z.ZodEnum<{
132
132
  high: "high";
133
- medium: "medium";
134
133
  low: "low";
134
+ medium: "medium";
135
135
  }>;
136
136
  dependencies: z.ZodOptional<z.ZodArray<z.ZodString>>;
137
137
  notes: z.ZodString;
@@ -144,15 +144,15 @@ export declare const TaskApprovalSuspendSchema: z.ZodObject<{
144
144
  id: z.ZodString;
145
145
  content: z.ZodString;
146
146
  status: z.ZodDefault<z.ZodEnum<{
147
- pending: "pending";
148
- in_progress: "in_progress";
149
- completed: "completed";
150
147
  blocked: "blocked";
148
+ completed: "completed";
149
+ in_progress: "in_progress";
150
+ pending: "pending";
151
151
  }>>;
152
152
  priority: z.ZodEnum<{
153
153
  high: "high";
154
- medium: "medium";
155
154
  low: "low";
155
+ medium: "medium";
156
156
  }>;
157
157
  dependencies: z.ZodOptional<z.ZodArray<z.ZodString>>;
158
158
  notes: z.ZodString;
@@ -1,5 +1,8 @@
1
1
  export declare const planningAndApprovalWorkflow: import("@mastra/core/workflows").Workflow<import("@mastra/core/workflows").DefaultEngineType, (import("@mastra/core/workflows").Step<"planning-iteration", unknown, {
2
2
  action: "create" | "edit";
3
+ workflowName?: string | undefined;
4
+ description?: string | undefined;
5
+ requirements?: string | undefined;
3
6
  discoveredWorkflows: {
4
7
  name: string;
5
8
  file: string;
@@ -39,24 +42,21 @@ export declare const planningAndApprovalWorkflow: import("@mastra/core/workflows
39
42
  message: string;
40
43
  error?: string | undefined;
41
44
  };
42
- workflowName?: string | undefined;
43
- description?: string | undefined;
44
- requirements?: string | undefined;
45
45
  userAnswers?: Record<string, string> | undefined;
46
46
  }, {
47
47
  success: boolean;
48
48
  tasks: {
49
49
  id: string;
50
50
  content: string;
51
- status: "pending" | "in_progress" | "completed" | "blocked";
52
- priority: "high" | "medium" | "low";
53
- notes: string;
51
+ status: "blocked" | "completed" | "in_progress" | "pending";
52
+ priority: "high" | "low" | "medium";
54
53
  dependencies?: string[] | undefined;
54
+ notes: string;
55
55
  }[];
56
56
  questions: {
57
57
  id: string;
58
58
  question: string;
59
- type: "boolean" | "text" | "choice";
59
+ type: "boolean" | "choice" | "text";
60
60
  options?: string[] | undefined;
61
61
  context?: string | undefined;
62
62
  }[];
@@ -72,7 +72,7 @@ export declare const planningAndApprovalWorkflow: import("@mastra/core/workflows
72
72
  questions: {
73
73
  id: string;
74
74
  question: string;
75
- type: "boolean" | "text" | "choice";
75
+ type: "boolean" | "choice" | "text";
76
76
  options?: string[] | undefined;
77
77
  context?: string | undefined;
78
78
  }[];
@@ -81,10 +81,10 @@ export declare const planningAndApprovalWorkflow: import("@mastra/core/workflows
81
81
  tasks: {
82
82
  id: string;
83
83
  content: string;
84
- status: "pending" | "in_progress" | "completed" | "blocked";
85
- priority: "high" | "medium" | "low";
86
- notes: string;
84
+ status: "blocked" | "completed" | "in_progress" | "pending";
85
+ priority: "high" | "low" | "medium";
87
86
  dependencies?: string[] | undefined;
87
+ notes: string;
88
88
  }[];
89
89
  reasoning: string;
90
90
  };
@@ -93,15 +93,15 @@ export declare const planningAndApprovalWorkflow: import("@mastra/core/workflows
93
93
  tasks: {
94
94
  id: string;
95
95
  content: string;
96
- status: "pending" | "in_progress" | "completed" | "blocked";
97
- priority: "high" | "medium" | "low";
98
- notes: string;
96
+ status: "blocked" | "completed" | "in_progress" | "pending";
97
+ priority: "high" | "low" | "medium";
99
98
  dependencies?: string[] | undefined;
99
+ notes: string;
100
100
  }[];
101
101
  questions: {
102
102
  id: string;
103
103
  question: string;
104
- type: "boolean" | "text" | "choice";
104
+ type: "boolean" | "choice" | "text";
105
105
  options?: string[] | undefined;
106
106
  context?: string | undefined;
107
107
  }[];
@@ -116,10 +116,10 @@ export declare const planningAndApprovalWorkflow: import("@mastra/core/workflows
116
116
  tasks: {
117
117
  id: string;
118
118
  content: string;
119
- status: "pending" | "in_progress" | "completed" | "blocked";
120
- priority: "high" | "medium" | "low";
121
- notes: string;
119
+ status: "blocked" | "completed" | "in_progress" | "pending";
120
+ priority: "high" | "low" | "medium";
122
121
  dependencies?: string[] | undefined;
122
+ notes: string;
123
123
  }[];
124
124
  message: string;
125
125
  userFeedback?: string | undefined;
@@ -130,15 +130,18 @@ export declare const planningAndApprovalWorkflow: import("@mastra/core/workflows
130
130
  taskList: {
131
131
  id: string;
132
132
  content: string;
133
- status: "pending" | "in_progress" | "completed" | "blocked";
134
- priority: "high" | "medium" | "low";
135
- notes: string;
133
+ status: "blocked" | "completed" | "in_progress" | "pending";
134
+ priority: "high" | "low" | "medium";
136
135
  dependencies?: string[] | undefined;
136
+ notes: string;
137
137
  }[];
138
138
  summary: string;
139
139
  message: string;
140
140
  }, import("@mastra/core/workflows").DefaultEngineType, unknown>)[], "planning-and-approval", unknown, {
141
141
  action: "create" | "edit";
142
+ workflowName?: string | undefined;
143
+ description?: string | undefined;
144
+ requirements?: string | undefined;
142
145
  discoveredWorkflows: {
143
146
  name: string;
144
147
  file: string;
@@ -178,19 +181,16 @@ export declare const planningAndApprovalWorkflow: import("@mastra/core/workflows
178
181
  message: string;
179
182
  error?: string | undefined;
180
183
  };
181
- workflowName?: string | undefined;
182
- description?: string | undefined;
183
- requirements?: string | undefined;
184
184
  userAnswers?: Record<string, string> | undefined;
185
185
  }, {
186
186
  approved: boolean;
187
187
  tasks: {
188
188
  id: string;
189
189
  content: string;
190
- status: "pending" | "in_progress" | "completed" | "blocked";
191
- priority: "high" | "medium" | "low";
192
- notes: string;
190
+ status: "blocked" | "completed" | "in_progress" | "pending";
191
+ priority: "high" | "low" | "medium";
193
192
  dependencies?: string[] | undefined;
193
+ notes: string;
194
194
  }[];
195
195
  message: string;
196
196
  userFeedback?: string | undefined;
@@ -199,10 +199,10 @@ export declare const planningAndApprovalWorkflow: import("@mastra/core/workflows
199
199
  tasks: {
200
200
  id: string;
201
201
  content: string;
202
- status: "pending" | "in_progress" | "completed" | "blocked";
203
- priority: "high" | "medium" | "low";
204
- notes: string;
202
+ status: "blocked" | "completed" | "in_progress" | "pending";
203
+ priority: "high" | "low" | "medium";
205
204
  dependencies?: string[] | undefined;
205
+ notes: string;
206
206
  }[];
207
207
  message: string;
208
208
  userFeedback?: string | undefined;