@mastra/agent-builder 0.0.0-main-test-05-11-2025-2-20251106053353 → 0.0.0-mastra-auto-detect-server-20260108233416

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (32) hide show
  1. package/CHANGELOG.md +248 -4
  2. package/dist/agent/index.d.ts.map +1 -1
  3. package/dist/chunk-2CIPVDK5.js +250 -0
  4. package/dist/chunk-2CIPVDK5.js.map +1 -0
  5. package/dist/chunk-E53QBCQN.js +84 -0
  6. package/dist/chunk-E53QBCQN.js.map +1 -0
  7. package/dist/defaults.d.ts +164 -134
  8. package/dist/defaults.d.ts.map +1 -1
  9. package/dist/index.js +4428 -103
  10. package/dist/index.js.map +1 -1
  11. package/dist/processors/tool-summary.d.ts +12 -6
  12. package/dist/processors/tool-summary.d.ts.map +1 -1
  13. package/dist/token-6GSAFR2W-KVDFAJ2M.js +61 -0
  14. package/dist/token-6GSAFR2W-KVDFAJ2M.js.map +1 -0
  15. package/dist/token-util-NEHG7TUY-DJYRKLRD.js +9 -0
  16. package/dist/token-util-NEHG7TUY-DJYRKLRD.js.map +1 -0
  17. package/dist/types.d.ts +7 -6
  18. package/dist/types.d.ts.map +1 -1
  19. package/dist/utils.d.ts +8 -7
  20. package/dist/utils.d.ts.map +1 -1
  21. package/dist/workflows/shared/schema.d.ts +2 -2
  22. package/dist/workflows/task-planning/schema.d.ts +12 -12
  23. package/dist/workflows/task-planning/task-planning.d.ts +243 -242
  24. package/dist/workflows/task-planning/task-planning.d.ts.map +1 -1
  25. package/dist/workflows/template-builder/template-builder.d.ts +6 -6
  26. package/dist/workflows/template-builder/template-builder.d.ts.map +1 -1
  27. package/dist/workflows/workflow-builder/schema.d.ts +14 -14
  28. package/dist/workflows/workflow-builder/tools.d.ts +3 -1
  29. package/dist/workflows/workflow-builder/tools.d.ts.map +1 -1
  30. package/dist/workflows/workflow-builder/workflow-builder.d.ts +44 -44
  31. package/dist/workflows/workflow-builder/workflow-builder.d.ts.map +1 -1
  32. package/package.json +14 -11
@@ -1,20 +1,21 @@
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, {
1
+ import type z from 'zod';
2
+ export declare const planningAndApprovalWorkflow: import("@mastra/core/workflows").Workflow<import("@mastra/core/workflows").DefaultEngineType, (import("@mastra/core/workflows").Step<"planning-iteration", z.ZodObject<any, z.UnknownKeysParam, z.ZodTypeAny, {
2
3
  [x: string]: any;
3
4
  }, {
4
5
  [x: string]: any;
5
- }>, import("zod").ZodObject<{
6
- action: import("zod").ZodEnum<["create", "edit"]>;
7
- workflowName: import("zod").ZodOptional<import("zod").ZodString>;
8
- description: import("zod").ZodOptional<import("zod").ZodString>;
9
- requirements: import("zod").ZodOptional<import("zod").ZodString>;
10
- discoveredWorkflows: import("zod").ZodArray<import("zod").ZodObject<{
11
- name: import("zod").ZodString;
12
- file: import("zod").ZodString;
13
- description: import("zod").ZodOptional<import("zod").ZodString>;
14
- inputSchema: import("zod").ZodOptional<import("zod").ZodAny>;
15
- outputSchema: import("zod").ZodOptional<import("zod").ZodAny>;
16
- steps: import("zod").ZodOptional<import("zod").ZodArray<import("zod").ZodString, "many">>;
17
- }, "strip", import("zod").ZodTypeAny, {
6
+ }>, z.ZodObject<{
7
+ action: z.ZodEnum<["create", "edit"]>;
8
+ workflowName: z.ZodOptional<z.ZodString>;
9
+ description: z.ZodOptional<z.ZodString>;
10
+ requirements: z.ZodOptional<z.ZodString>;
11
+ discoveredWorkflows: z.ZodArray<z.ZodObject<{
12
+ name: z.ZodString;
13
+ file: z.ZodString;
14
+ description: z.ZodOptional<z.ZodString>;
15
+ inputSchema: z.ZodOptional<z.ZodAny>;
16
+ outputSchema: z.ZodOptional<z.ZodAny>;
17
+ steps: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
18
+ }, "strip", z.ZodTypeAny, {
18
19
  file: string;
19
20
  name: string;
20
21
  description?: string | undefined;
@@ -29,17 +30,17 @@ export declare const planningAndApprovalWorkflow: import("@mastra/core/workflows
29
30
  inputSchema?: any;
30
31
  steps?: string[] | undefined;
31
32
  }>, "many">;
32
- projectStructure: import("zod").ZodObject<{
33
- success: import("zod").ZodBoolean;
34
- structure: import("zod").ZodObject<{
35
- hasWorkflowsDir: import("zod").ZodBoolean;
36
- hasAgentsDir: import("zod").ZodBoolean;
37
- hasToolsDir: import("zod").ZodBoolean;
38
- hasMastraIndex: import("zod").ZodBoolean;
39
- existingWorkflows: import("zod").ZodArray<import("zod").ZodString, "many">;
40
- existingAgents: import("zod").ZodArray<import("zod").ZodString, "many">;
41
- existingTools: import("zod").ZodArray<import("zod").ZodString, "many">;
42
- }, "strip", import("zod").ZodTypeAny, {
33
+ projectStructure: z.ZodObject<{
34
+ success: z.ZodBoolean;
35
+ structure: z.ZodObject<{
36
+ hasWorkflowsDir: z.ZodBoolean;
37
+ hasAgentsDir: z.ZodBoolean;
38
+ hasToolsDir: z.ZodBoolean;
39
+ hasMastraIndex: z.ZodBoolean;
40
+ existingWorkflows: z.ZodArray<z.ZodString, "many">;
41
+ existingAgents: z.ZodArray<z.ZodString, "many">;
42
+ existingTools: z.ZodArray<z.ZodString, "many">;
43
+ }, "strip", z.ZodTypeAny, {
43
44
  hasWorkflowsDir: boolean;
44
45
  hasAgentsDir: boolean;
45
46
  hasToolsDir: boolean;
@@ -56,10 +57,10 @@ export declare const planningAndApprovalWorkflow: import("@mastra/core/workflows
56
57
  existingAgents: string[];
57
58
  existingTools: string[];
58
59
  }>;
59
- dependencies: import("zod").ZodRecord<import("zod").ZodString, import("zod").ZodString>;
60
- message: import("zod").ZodString;
61
- error: import("zod").ZodOptional<import("zod").ZodString>;
62
- }, "strip", import("zod").ZodTypeAny, {
60
+ dependencies: z.ZodRecord<z.ZodString, z.ZodString>;
61
+ message: z.ZodString;
62
+ error: z.ZodOptional<z.ZodString>;
63
+ }, "strip", z.ZodTypeAny, {
63
64
  message: string;
64
65
  success: boolean;
65
66
  dependencies: Record<string, string>;
@@ -88,13 +89,13 @@ export declare const planningAndApprovalWorkflow: import("@mastra/core/workflows
88
89
  };
89
90
  error?: string | undefined;
90
91
  }>;
91
- research: import("zod").ZodObject<{
92
- success: import("zod").ZodBoolean;
93
- documentation: import("zod").ZodObject<{
94
- workflowPatterns: import("zod").ZodArray<import("zod").ZodString, "many">;
95
- stepExamples: import("zod").ZodArray<import("zod").ZodString, "many">;
96
- bestPractices: import("zod").ZodArray<import("zod").ZodString, "many">;
97
- }, "strip", import("zod").ZodTypeAny, {
92
+ research: z.ZodObject<{
93
+ success: z.ZodBoolean;
94
+ documentation: z.ZodObject<{
95
+ workflowPatterns: z.ZodArray<z.ZodString, "many">;
96
+ stepExamples: z.ZodArray<z.ZodString, "many">;
97
+ bestPractices: z.ZodArray<z.ZodString, "many">;
98
+ }, "strip", z.ZodTypeAny, {
98
99
  workflowPatterns: string[];
99
100
  stepExamples: string[];
100
101
  bestPractices: string[];
@@ -103,25 +104,25 @@ export declare const planningAndApprovalWorkflow: import("@mastra/core/workflows
103
104
  stepExamples: string[];
104
105
  bestPractices: string[];
105
106
  }>;
106
- webResources: import("zod").ZodArray<import("zod").ZodObject<{
107
- title: import("zod").ZodString;
108
- url: import("zod").ZodString;
109
- snippet: import("zod").ZodString;
110
- relevance: import("zod").ZodNumber;
111
- }, "strip", import("zod").ZodTypeAny, {
107
+ webResources: z.ZodArray<z.ZodObject<{
108
+ title: z.ZodString;
109
+ url: z.ZodString;
110
+ snippet: z.ZodString;
111
+ relevance: z.ZodNumber;
112
+ }, "strip", z.ZodTypeAny, {
113
+ url: string;
112
114
  relevance: number;
113
115
  title: string;
114
- url: string;
115
116
  snippet: string;
116
117
  }, {
118
+ url: string;
117
119
  relevance: number;
118
120
  title: string;
119
- url: string;
120
121
  snippet: string;
121
122
  }>, "many">;
122
- message: import("zod").ZodString;
123
- error: import("zod").ZodOptional<import("zod").ZodString>;
124
- }, "strip", import("zod").ZodTypeAny, {
123
+ message: z.ZodString;
124
+ error: z.ZodOptional<z.ZodString>;
125
+ }, "strip", z.ZodTypeAny, {
125
126
  message: string;
126
127
  success: boolean;
127
128
  documentation: {
@@ -130,9 +131,9 @@ export declare const planningAndApprovalWorkflow: import("@mastra/core/workflows
130
131
  bestPractices: string[];
131
132
  };
132
133
  webResources: {
134
+ url: string;
133
135
  relevance: number;
134
136
  title: string;
135
- url: string;
136
137
  snippet: string;
137
138
  }[];
138
139
  error?: string | undefined;
@@ -145,15 +146,15 @@ export declare const planningAndApprovalWorkflow: import("@mastra/core/workflows
145
146
  bestPractices: string[];
146
147
  };
147
148
  webResources: {
149
+ url: string;
148
150
  relevance: number;
149
151
  title: string;
150
- url: string;
151
152
  snippet: string;
152
153
  }[];
153
154
  error?: string | undefined;
154
155
  }>;
155
- userAnswers: import("zod").ZodOptional<import("zod").ZodRecord<import("zod").ZodString, import("zod").ZodString>>;
156
- }, "strip", import("zod").ZodTypeAny, {
156
+ userAnswers: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
157
+ }, "strip", z.ZodTypeAny, {
157
158
  action: "create" | "edit";
158
159
  discoveredWorkflows: {
159
160
  file: string;
@@ -187,9 +188,9 @@ export declare const planningAndApprovalWorkflow: import("@mastra/core/workflows
187
188
  bestPractices: string[];
188
189
  };
189
190
  webResources: {
191
+ url: string;
190
192
  relevance: number;
191
193
  title: string;
192
- url: string;
193
194
  snippet: string;
194
195
  }[];
195
196
  error?: string | undefined;
@@ -232,9 +233,9 @@ export declare const planningAndApprovalWorkflow: import("@mastra/core/workflows
232
233
  bestPractices: string[];
233
234
  };
234
235
  webResources: {
236
+ url: string;
235
237
  relevance: number;
236
238
  title: string;
237
- url: string;
238
239
  snippet: string;
239
240
  }[];
240
241
  error?: string | undefined;
@@ -243,16 +244,16 @@ export declare const planningAndApprovalWorkflow: import("@mastra/core/workflows
243
244
  workflowName?: string | undefined;
244
245
  requirements?: string | undefined;
245
246
  userAnswers?: Record<string, string> | undefined;
246
- }>, import("zod").ZodObject<{
247
- success: import("zod").ZodBoolean;
248
- tasks: import("zod").ZodArray<import("zod").ZodObject<{
249
- id: import("zod").ZodString;
250
- content: import("zod").ZodString;
251
- status: import("zod").ZodDefault<import("zod").ZodEnum<["pending", "in_progress", "completed", "blocked"]>>;
252
- priority: import("zod").ZodEnum<["high", "medium", "low"]>;
253
- dependencies: import("zod").ZodOptional<import("zod").ZodArray<import("zod").ZodString, "many">>;
254
- notes: import("zod").ZodString;
255
- }, "strip", import("zod").ZodTypeAny, {
247
+ }>, z.ZodObject<{
248
+ success: z.ZodBoolean;
249
+ tasks: z.ZodArray<z.ZodObject<{
250
+ id: z.ZodString;
251
+ content: z.ZodString;
252
+ status: z.ZodDefault<z.ZodEnum<["pending", "in_progress", "completed", "blocked"]>>;
253
+ priority: z.ZodEnum<["high", "medium", "low"]>;
254
+ dependencies: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
255
+ notes: z.ZodString;
256
+ }, "strip", z.ZodTypeAny, {
256
257
  status: "pending" | "in_progress" | "completed" | "blocked";
257
258
  id: string;
258
259
  content: string;
@@ -267,13 +268,13 @@ export declare const planningAndApprovalWorkflow: import("@mastra/core/workflows
267
268
  status?: "pending" | "in_progress" | "completed" | "blocked" | undefined;
268
269
  dependencies?: string[] | undefined;
269
270
  }>, "many">;
270
- questions: import("zod").ZodArray<import("zod").ZodObject<{
271
- id: import("zod").ZodString;
272
- question: import("zod").ZodString;
273
- type: import("zod").ZodEnum<["choice", "text", "boolean"]>;
274
- options: import("zod").ZodOptional<import("zod").ZodArray<import("zod").ZodString, "many">>;
275
- context: import("zod").ZodOptional<import("zod").ZodString>;
276
- }, "strip", import("zod").ZodTypeAny, {
271
+ questions: z.ZodArray<z.ZodObject<{
272
+ id: z.ZodString;
273
+ question: z.ZodString;
274
+ type: z.ZodEnum<["choice", "text", "boolean"]>;
275
+ options: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
276
+ context: z.ZodOptional<z.ZodString>;
277
+ }, "strip", z.ZodTypeAny, {
277
278
  type: "boolean" | "text" | "choice";
278
279
  id: string;
279
280
  question: string;
@@ -286,15 +287,16 @@ export declare const planningAndApprovalWorkflow: import("@mastra/core/workflows
286
287
  options?: string[] | undefined;
287
288
  context?: string | undefined;
288
289
  }>, "many">;
289
- reasoning: import("zod").ZodString;
290
- planComplete: import("zod").ZodBoolean;
291
- message: import("zod").ZodString;
292
- error: import("zod").ZodOptional<import("zod").ZodString>;
293
- allPreviousQuestions: import("zod").ZodOptional<import("zod").ZodArray<import("zod").ZodAny, "many">>;
294
- allPreviousAnswers: import("zod").ZodOptional<import("zod").ZodRecord<import("zod").ZodString, import("zod").ZodString>>;
295
- }, "strip", import("zod").ZodTypeAny, {
290
+ reasoning: z.ZodString;
291
+ planComplete: z.ZodBoolean;
292
+ message: z.ZodString;
293
+ error: z.ZodOptional<z.ZodString>;
294
+ allPreviousQuestions: z.ZodOptional<z.ZodArray<z.ZodAny, "many">>;
295
+ allPreviousAnswers: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
296
+ }, "strip", z.ZodTypeAny, {
296
297
  message: string;
297
298
  success: boolean;
299
+ reasoning: string;
298
300
  tasks: {
299
301
  status: "pending" | "in_progress" | "completed" | "blocked";
300
302
  id: string;
@@ -303,7 +305,6 @@ export declare const planningAndApprovalWorkflow: import("@mastra/core/workflows
303
305
  notes: string;
304
306
  dependencies?: string[] | undefined;
305
307
  }[];
306
- reasoning: string;
307
308
  questions: {
308
309
  type: "boolean" | "text" | "choice";
309
310
  id: string;
@@ -318,6 +319,7 @@ export declare const planningAndApprovalWorkflow: import("@mastra/core/workflows
318
319
  }, {
319
320
  message: string;
320
321
  success: boolean;
322
+ reasoning: string;
321
323
  tasks: {
322
324
  id: string;
323
325
  content: string;
@@ -326,7 +328,6 @@ export declare const planningAndApprovalWorkflow: import("@mastra/core/workflows
326
328
  status?: "pending" | "in_progress" | "completed" | "blocked" | undefined;
327
329
  dependencies?: string[] | undefined;
328
330
  }[];
329
- reasoning: string;
330
331
  questions: {
331
332
  type: "boolean" | "text" | "choice";
332
333
  id: string;
@@ -338,20 +339,20 @@ export declare const planningAndApprovalWorkflow: import("@mastra/core/workflows
338
339
  error?: string | undefined;
339
340
  allPreviousQuestions?: any[] | undefined;
340
341
  allPreviousAnswers?: Record<string, string> | undefined;
341
- }>, import("zod").ZodObject<{
342
- answers: import("zod").ZodRecord<import("zod").ZodString, import("zod").ZodString>;
343
- }, "strip", import("zod").ZodTypeAny, {
342
+ }>, z.ZodObject<{
343
+ answers: z.ZodRecord<z.ZodString, z.ZodString>;
344
+ }, "strip", z.ZodTypeAny, {
344
345
  answers: Record<string, string>;
345
346
  }, {
346
347
  answers: Record<string, string>;
347
- }>, import("zod").ZodObject<{
348
- questions: import("zod").ZodArray<import("zod").ZodObject<{
349
- id: import("zod").ZodString;
350
- question: import("zod").ZodString;
351
- type: import("zod").ZodEnum<["choice", "text", "boolean"]>;
352
- options: import("zod").ZodOptional<import("zod").ZodArray<import("zod").ZodString, "many">>;
353
- context: import("zod").ZodOptional<import("zod").ZodString>;
354
- }, "strip", import("zod").ZodTypeAny, {
348
+ }>, z.ZodObject<{
349
+ questions: z.ZodArray<z.ZodObject<{
350
+ id: z.ZodString;
351
+ question: z.ZodString;
352
+ type: z.ZodEnum<["choice", "text", "boolean"]>;
353
+ options: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
354
+ context: z.ZodOptional<z.ZodString>;
355
+ }, "strip", z.ZodTypeAny, {
355
356
  type: "boolean" | "text" | "choice";
356
357
  id: string;
357
358
  question: string;
@@ -364,16 +365,16 @@ export declare const planningAndApprovalWorkflow: import("@mastra/core/workflows
364
365
  options?: string[] | undefined;
365
366
  context?: string | undefined;
366
367
  }>, "many">;
367
- message: import("zod").ZodString;
368
- currentPlan: import("zod").ZodObject<{
369
- tasks: import("zod").ZodArray<import("zod").ZodObject<{
370
- id: import("zod").ZodString;
371
- content: import("zod").ZodString;
372
- status: import("zod").ZodDefault<import("zod").ZodEnum<["pending", "in_progress", "completed", "blocked"]>>;
373
- priority: import("zod").ZodEnum<["high", "medium", "low"]>;
374
- dependencies: import("zod").ZodOptional<import("zod").ZodArray<import("zod").ZodString, "many">>;
375
- notes: import("zod").ZodString;
376
- }, "strip", import("zod").ZodTypeAny, {
368
+ message: z.ZodString;
369
+ currentPlan: z.ZodObject<{
370
+ tasks: z.ZodArray<z.ZodObject<{
371
+ id: z.ZodString;
372
+ content: z.ZodString;
373
+ status: z.ZodDefault<z.ZodEnum<["pending", "in_progress", "completed", "blocked"]>>;
374
+ priority: z.ZodEnum<["high", "medium", "low"]>;
375
+ dependencies: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
376
+ notes: z.ZodString;
377
+ }, "strip", z.ZodTypeAny, {
377
378
  status: "pending" | "in_progress" | "completed" | "blocked";
378
379
  id: string;
379
380
  content: string;
@@ -388,8 +389,9 @@ export declare const planningAndApprovalWorkflow: import("@mastra/core/workflows
388
389
  status?: "pending" | "in_progress" | "completed" | "blocked" | undefined;
389
390
  dependencies?: string[] | undefined;
390
391
  }>, "many">;
391
- reasoning: import("zod").ZodString;
392
- }, "strip", import("zod").ZodTypeAny, {
392
+ reasoning: z.ZodString;
393
+ }, "strip", z.ZodTypeAny, {
394
+ reasoning: string;
393
395
  tasks: {
394
396
  status: "pending" | "in_progress" | "completed" | "blocked";
395
397
  id: string;
@@ -398,8 +400,8 @@ export declare const planningAndApprovalWorkflow: import("@mastra/core/workflows
398
400
  notes: string;
399
401
  dependencies?: string[] | undefined;
400
402
  }[];
401
- reasoning: string;
402
403
  }, {
404
+ reasoning: string;
403
405
  tasks: {
404
406
  id: string;
405
407
  content: string;
@@ -408,9 +410,8 @@ export declare const planningAndApprovalWorkflow: import("@mastra/core/workflows
408
410
  status?: "pending" | "in_progress" | "completed" | "blocked" | undefined;
409
411
  dependencies?: string[] | undefined;
410
412
  }[];
411
- reasoning: string;
412
413
  }>;
413
- }, "strip", import("zod").ZodTypeAny, {
414
+ }, "strip", z.ZodTypeAny, {
414
415
  message: string;
415
416
  questions: {
416
417
  type: "boolean" | "text" | "choice";
@@ -420,6 +421,7 @@ export declare const planningAndApprovalWorkflow: import("@mastra/core/workflows
420
421
  context?: string | undefined;
421
422
  }[];
422
423
  currentPlan: {
424
+ reasoning: string;
423
425
  tasks: {
424
426
  status: "pending" | "in_progress" | "completed" | "blocked";
425
427
  id: string;
@@ -428,7 +430,6 @@ export declare const planningAndApprovalWorkflow: import("@mastra/core/workflows
428
430
  notes: string;
429
431
  dependencies?: string[] | undefined;
430
432
  }[];
431
- reasoning: string;
432
433
  };
433
434
  }, {
434
435
  message: string;
@@ -440,6 +441,7 @@ export declare const planningAndApprovalWorkflow: import("@mastra/core/workflows
440
441
  context?: string | undefined;
441
442
  }[];
442
443
  currentPlan: {
444
+ reasoning: string;
443
445
  tasks: {
444
446
  id: string;
445
447
  content: string;
@@ -448,22 +450,21 @@ export declare const planningAndApprovalWorkflow: import("@mastra/core/workflows
448
450
  status?: "pending" | "in_progress" | "completed" | "blocked" | undefined;
449
451
  dependencies?: string[] | undefined;
450
452
  }[];
451
- reasoning: string;
452
453
  };
453
- }>, import("@mastra/core/workflows").DefaultEngineType> | import("@mastra/core/workflows").Step<"task-approval", import("zod").ZodObject<any, import("zod").UnknownKeysParam, import("zod").ZodTypeAny, {
454
+ }>, import("@mastra/core/workflows").DefaultEngineType> | import("@mastra/core/workflows").Step<"task-approval", z.ZodObject<any, z.UnknownKeysParam, z.ZodTypeAny, {
454
455
  [x: string]: any;
455
456
  }, {
456
457
  [x: string]: any;
457
- }>, import("zod").ZodObject<{
458
- success: import("zod").ZodBoolean;
459
- tasks: import("zod").ZodArray<import("zod").ZodObject<{
460
- id: import("zod").ZodString;
461
- content: import("zod").ZodString;
462
- status: import("zod").ZodDefault<import("zod").ZodEnum<["pending", "in_progress", "completed", "blocked"]>>;
463
- priority: import("zod").ZodEnum<["high", "medium", "low"]>;
464
- dependencies: import("zod").ZodOptional<import("zod").ZodArray<import("zod").ZodString, "many">>;
465
- notes: import("zod").ZodString;
466
- }, "strip", import("zod").ZodTypeAny, {
458
+ }>, z.ZodObject<{
459
+ success: z.ZodBoolean;
460
+ tasks: z.ZodArray<z.ZodObject<{
461
+ id: z.ZodString;
462
+ content: z.ZodString;
463
+ status: z.ZodDefault<z.ZodEnum<["pending", "in_progress", "completed", "blocked"]>>;
464
+ priority: z.ZodEnum<["high", "medium", "low"]>;
465
+ dependencies: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
466
+ notes: z.ZodString;
467
+ }, "strip", z.ZodTypeAny, {
467
468
  status: "pending" | "in_progress" | "completed" | "blocked";
468
469
  id: string;
469
470
  content: string;
@@ -478,13 +479,13 @@ export declare const planningAndApprovalWorkflow: import("@mastra/core/workflows
478
479
  status?: "pending" | "in_progress" | "completed" | "blocked" | undefined;
479
480
  dependencies?: string[] | undefined;
480
481
  }>, "many">;
481
- questions: import("zod").ZodArray<import("zod").ZodObject<{
482
- id: import("zod").ZodString;
483
- question: import("zod").ZodString;
484
- type: import("zod").ZodEnum<["choice", "text", "boolean"]>;
485
- options: import("zod").ZodOptional<import("zod").ZodArray<import("zod").ZodString, "many">>;
486
- context: import("zod").ZodOptional<import("zod").ZodString>;
487
- }, "strip", import("zod").ZodTypeAny, {
482
+ questions: z.ZodArray<z.ZodObject<{
483
+ id: z.ZodString;
484
+ question: z.ZodString;
485
+ type: z.ZodEnum<["choice", "text", "boolean"]>;
486
+ options: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
487
+ context: z.ZodOptional<z.ZodString>;
488
+ }, "strip", z.ZodTypeAny, {
488
489
  type: "boolean" | "text" | "choice";
489
490
  id: string;
490
491
  question: string;
@@ -497,15 +498,16 @@ export declare const planningAndApprovalWorkflow: import("@mastra/core/workflows
497
498
  options?: string[] | undefined;
498
499
  context?: string | undefined;
499
500
  }>, "many">;
500
- reasoning: import("zod").ZodString;
501
- planComplete: import("zod").ZodBoolean;
502
- message: import("zod").ZodString;
503
- error: import("zod").ZodOptional<import("zod").ZodString>;
504
- allPreviousQuestions: import("zod").ZodOptional<import("zod").ZodArray<import("zod").ZodAny, "many">>;
505
- allPreviousAnswers: import("zod").ZodOptional<import("zod").ZodRecord<import("zod").ZodString, import("zod").ZodString>>;
506
- }, "strip", import("zod").ZodTypeAny, {
501
+ reasoning: z.ZodString;
502
+ planComplete: z.ZodBoolean;
503
+ message: z.ZodString;
504
+ error: z.ZodOptional<z.ZodString>;
505
+ allPreviousQuestions: z.ZodOptional<z.ZodArray<z.ZodAny, "many">>;
506
+ allPreviousAnswers: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
507
+ }, "strip", z.ZodTypeAny, {
507
508
  message: string;
508
509
  success: boolean;
510
+ reasoning: string;
509
511
  tasks: {
510
512
  status: "pending" | "in_progress" | "completed" | "blocked";
511
513
  id: string;
@@ -514,7 +516,6 @@ export declare const planningAndApprovalWorkflow: import("@mastra/core/workflows
514
516
  notes: string;
515
517
  dependencies?: string[] | undefined;
516
518
  }[];
517
- reasoning: string;
518
519
  questions: {
519
520
  type: "boolean" | "text" | "choice";
520
521
  id: string;
@@ -529,6 +530,7 @@ export declare const planningAndApprovalWorkflow: import("@mastra/core/workflows
529
530
  }, {
530
531
  message: string;
531
532
  success: boolean;
533
+ reasoning: string;
532
534
  tasks: {
533
535
  id: string;
534
536
  content: string;
@@ -537,7 +539,6 @@ export declare const planningAndApprovalWorkflow: import("@mastra/core/workflows
537
539
  status?: "pending" | "in_progress" | "completed" | "blocked" | undefined;
538
540
  dependencies?: string[] | undefined;
539
541
  }[];
540
- reasoning: string;
541
542
  questions: {
542
543
  type: "boolean" | "text" | "choice";
543
544
  id: string;
@@ -549,16 +550,16 @@ export declare const planningAndApprovalWorkflow: import("@mastra/core/workflows
549
550
  error?: string | undefined;
550
551
  allPreviousQuestions?: any[] | undefined;
551
552
  allPreviousAnswers?: Record<string, string> | undefined;
552
- }>, import("zod").ZodObject<{
553
- approved: import("zod").ZodBoolean;
554
- tasks: import("zod").ZodArray<import("zod").ZodObject<{
555
- id: import("zod").ZodString;
556
- content: import("zod").ZodString;
557
- status: import("zod").ZodDefault<import("zod").ZodEnum<["pending", "in_progress", "completed", "blocked"]>>;
558
- priority: import("zod").ZodEnum<["high", "medium", "low"]>;
559
- dependencies: import("zod").ZodOptional<import("zod").ZodArray<import("zod").ZodString, "many">>;
560
- notes: import("zod").ZodString;
561
- }, "strip", import("zod").ZodTypeAny, {
553
+ }>, z.ZodObject<{
554
+ approved: z.ZodBoolean;
555
+ tasks: z.ZodArray<z.ZodObject<{
556
+ id: z.ZodString;
557
+ content: z.ZodString;
558
+ status: z.ZodDefault<z.ZodEnum<["pending", "in_progress", "completed", "blocked"]>>;
559
+ priority: z.ZodEnum<["high", "medium", "low"]>;
560
+ dependencies: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
561
+ notes: z.ZodString;
562
+ }, "strip", z.ZodTypeAny, {
562
563
  status: "pending" | "in_progress" | "completed" | "blocked";
563
564
  id: string;
564
565
  content: string;
@@ -573,9 +574,9 @@ export declare const planningAndApprovalWorkflow: import("@mastra/core/workflows
573
574
  status?: "pending" | "in_progress" | "completed" | "blocked" | undefined;
574
575
  dependencies?: string[] | undefined;
575
576
  }>, "many">;
576
- message: import("zod").ZodString;
577
- userFeedback: import("zod").ZodOptional<import("zod").ZodString>;
578
- }, "strip", import("zod").ZodTypeAny, {
577
+ message: z.ZodString;
578
+ userFeedback: z.ZodOptional<z.ZodString>;
579
+ }, "strip", z.ZodTypeAny, {
579
580
  message: string;
580
581
  tasks: {
581
582
  status: "pending" | "in_progress" | "completed" | "blocked";
@@ -599,24 +600,24 @@ export declare const planningAndApprovalWorkflow: import("@mastra/core/workflows
599
600
  }[];
600
601
  approved: boolean;
601
602
  userFeedback?: string | undefined;
602
- }>, import("zod").ZodObject<{
603
- approved: import("zod").ZodBoolean;
604
- modifications: import("zod").ZodOptional<import("zod").ZodString>;
605
- }, "strip", import("zod").ZodTypeAny, {
603
+ }>, z.ZodObject<{
604
+ approved: z.ZodBoolean;
605
+ modifications: z.ZodOptional<z.ZodString>;
606
+ }, "strip", z.ZodTypeAny, {
606
607
  approved: boolean;
607
608
  modifications?: string | undefined;
608
609
  }, {
609
610
  approved: boolean;
610
611
  modifications?: string | undefined;
611
- }>, import("zod").ZodObject<{
612
- taskList: import("zod").ZodArray<import("zod").ZodObject<{
613
- id: import("zod").ZodString;
614
- content: import("zod").ZodString;
615
- status: import("zod").ZodDefault<import("zod").ZodEnum<["pending", "in_progress", "completed", "blocked"]>>;
616
- priority: import("zod").ZodEnum<["high", "medium", "low"]>;
617
- dependencies: import("zod").ZodOptional<import("zod").ZodArray<import("zod").ZodString, "many">>;
618
- notes: import("zod").ZodString;
619
- }, "strip", import("zod").ZodTypeAny, {
612
+ }>, z.ZodObject<{
613
+ taskList: z.ZodArray<z.ZodObject<{
614
+ id: z.ZodString;
615
+ content: z.ZodString;
616
+ status: z.ZodDefault<z.ZodEnum<["pending", "in_progress", "completed", "blocked"]>>;
617
+ priority: z.ZodEnum<["high", "medium", "low"]>;
618
+ dependencies: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
619
+ notes: z.ZodString;
620
+ }, "strip", z.ZodTypeAny, {
620
621
  status: "pending" | "in_progress" | "completed" | "blocked";
621
622
  id: string;
622
623
  content: string;
@@ -631,9 +632,9 @@ export declare const planningAndApprovalWorkflow: import("@mastra/core/workflows
631
632
  status?: "pending" | "in_progress" | "completed" | "blocked" | undefined;
632
633
  dependencies?: string[] | undefined;
633
634
  }>, "many">;
634
- summary: import("zod").ZodString;
635
- message: import("zod").ZodString;
636
- }, "strip", import("zod").ZodTypeAny, {
635
+ summary: z.ZodString;
636
+ message: z.ZodString;
637
+ }, "strip", z.ZodTypeAny, {
637
638
  message: string;
638
639
  summary: string;
639
640
  taskList: {
@@ -655,23 +656,23 @@ export declare const planningAndApprovalWorkflow: import("@mastra/core/workflows
655
656
  status?: "pending" | "in_progress" | "completed" | "blocked" | undefined;
656
657
  dependencies?: string[] | undefined;
657
658
  }[];
658
- }>, import("@mastra/core/workflows").DefaultEngineType>)[], "planning-and-approval", import("zod").ZodObject<any, import("zod").UnknownKeysParam, import("zod").ZodTypeAny, {
659
+ }>, import("@mastra/core/workflows").DefaultEngineType>)[], "planning-and-approval", z.ZodObject<any, z.UnknownKeysParam, z.ZodTypeAny, {
659
660
  [x: string]: any;
660
661
  }, {
661
662
  [x: string]: any;
662
- }>, import("zod").ZodObject<{
663
- action: import("zod").ZodEnum<["create", "edit"]>;
664
- workflowName: import("zod").ZodOptional<import("zod").ZodString>;
665
- description: import("zod").ZodOptional<import("zod").ZodString>;
666
- requirements: import("zod").ZodOptional<import("zod").ZodString>;
667
- discoveredWorkflows: import("zod").ZodArray<import("zod").ZodObject<{
668
- name: import("zod").ZodString;
669
- file: import("zod").ZodString;
670
- description: import("zod").ZodOptional<import("zod").ZodString>;
671
- inputSchema: import("zod").ZodOptional<import("zod").ZodAny>;
672
- outputSchema: import("zod").ZodOptional<import("zod").ZodAny>;
673
- steps: import("zod").ZodOptional<import("zod").ZodArray<import("zod").ZodString, "many">>;
674
- }, "strip", import("zod").ZodTypeAny, {
663
+ }>, z.ZodObject<{
664
+ action: z.ZodEnum<["create", "edit"]>;
665
+ workflowName: z.ZodOptional<z.ZodString>;
666
+ description: z.ZodOptional<z.ZodString>;
667
+ requirements: z.ZodOptional<z.ZodString>;
668
+ discoveredWorkflows: z.ZodArray<z.ZodObject<{
669
+ name: z.ZodString;
670
+ file: z.ZodString;
671
+ description: z.ZodOptional<z.ZodString>;
672
+ inputSchema: z.ZodOptional<z.ZodAny>;
673
+ outputSchema: z.ZodOptional<z.ZodAny>;
674
+ steps: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
675
+ }, "strip", z.ZodTypeAny, {
675
676
  file: string;
676
677
  name: string;
677
678
  description?: string | undefined;
@@ -686,17 +687,17 @@ export declare const planningAndApprovalWorkflow: import("@mastra/core/workflows
686
687
  inputSchema?: any;
687
688
  steps?: string[] | undefined;
688
689
  }>, "many">;
689
- projectStructure: import("zod").ZodObject<{
690
- success: import("zod").ZodBoolean;
691
- structure: import("zod").ZodObject<{
692
- hasWorkflowsDir: import("zod").ZodBoolean;
693
- hasAgentsDir: import("zod").ZodBoolean;
694
- hasToolsDir: import("zod").ZodBoolean;
695
- hasMastraIndex: import("zod").ZodBoolean;
696
- existingWorkflows: import("zod").ZodArray<import("zod").ZodString, "many">;
697
- existingAgents: import("zod").ZodArray<import("zod").ZodString, "many">;
698
- existingTools: import("zod").ZodArray<import("zod").ZodString, "many">;
699
- }, "strip", import("zod").ZodTypeAny, {
690
+ projectStructure: z.ZodObject<{
691
+ success: z.ZodBoolean;
692
+ structure: z.ZodObject<{
693
+ hasWorkflowsDir: z.ZodBoolean;
694
+ hasAgentsDir: z.ZodBoolean;
695
+ hasToolsDir: z.ZodBoolean;
696
+ hasMastraIndex: z.ZodBoolean;
697
+ existingWorkflows: z.ZodArray<z.ZodString, "many">;
698
+ existingAgents: z.ZodArray<z.ZodString, "many">;
699
+ existingTools: z.ZodArray<z.ZodString, "many">;
700
+ }, "strip", z.ZodTypeAny, {
700
701
  hasWorkflowsDir: boolean;
701
702
  hasAgentsDir: boolean;
702
703
  hasToolsDir: boolean;
@@ -713,10 +714,10 @@ export declare const planningAndApprovalWorkflow: import("@mastra/core/workflows
713
714
  existingAgents: string[];
714
715
  existingTools: string[];
715
716
  }>;
716
- dependencies: import("zod").ZodRecord<import("zod").ZodString, import("zod").ZodString>;
717
- message: import("zod").ZodString;
718
- error: import("zod").ZodOptional<import("zod").ZodString>;
719
- }, "strip", import("zod").ZodTypeAny, {
717
+ dependencies: z.ZodRecord<z.ZodString, z.ZodString>;
718
+ message: z.ZodString;
719
+ error: z.ZodOptional<z.ZodString>;
720
+ }, "strip", z.ZodTypeAny, {
720
721
  message: string;
721
722
  success: boolean;
722
723
  dependencies: Record<string, string>;
@@ -745,13 +746,13 @@ export declare const planningAndApprovalWorkflow: import("@mastra/core/workflows
745
746
  };
746
747
  error?: string | undefined;
747
748
  }>;
748
- research: import("zod").ZodObject<{
749
- success: import("zod").ZodBoolean;
750
- documentation: import("zod").ZodObject<{
751
- workflowPatterns: import("zod").ZodArray<import("zod").ZodString, "many">;
752
- stepExamples: import("zod").ZodArray<import("zod").ZodString, "many">;
753
- bestPractices: import("zod").ZodArray<import("zod").ZodString, "many">;
754
- }, "strip", import("zod").ZodTypeAny, {
749
+ research: z.ZodObject<{
750
+ success: z.ZodBoolean;
751
+ documentation: z.ZodObject<{
752
+ workflowPatterns: z.ZodArray<z.ZodString, "many">;
753
+ stepExamples: z.ZodArray<z.ZodString, "many">;
754
+ bestPractices: z.ZodArray<z.ZodString, "many">;
755
+ }, "strip", z.ZodTypeAny, {
755
756
  workflowPatterns: string[];
756
757
  stepExamples: string[];
757
758
  bestPractices: string[];
@@ -760,25 +761,25 @@ export declare const planningAndApprovalWorkflow: import("@mastra/core/workflows
760
761
  stepExamples: string[];
761
762
  bestPractices: string[];
762
763
  }>;
763
- webResources: import("zod").ZodArray<import("zod").ZodObject<{
764
- title: import("zod").ZodString;
765
- url: import("zod").ZodString;
766
- snippet: import("zod").ZodString;
767
- relevance: import("zod").ZodNumber;
768
- }, "strip", import("zod").ZodTypeAny, {
764
+ webResources: z.ZodArray<z.ZodObject<{
765
+ title: z.ZodString;
766
+ url: z.ZodString;
767
+ snippet: z.ZodString;
768
+ relevance: z.ZodNumber;
769
+ }, "strip", z.ZodTypeAny, {
770
+ url: string;
769
771
  relevance: number;
770
772
  title: string;
771
- url: string;
772
773
  snippet: string;
773
774
  }, {
775
+ url: string;
774
776
  relevance: number;
775
777
  title: string;
776
- url: string;
777
778
  snippet: string;
778
779
  }>, "many">;
779
- message: import("zod").ZodString;
780
- error: import("zod").ZodOptional<import("zod").ZodString>;
781
- }, "strip", import("zod").ZodTypeAny, {
780
+ message: z.ZodString;
781
+ error: z.ZodOptional<z.ZodString>;
782
+ }, "strip", z.ZodTypeAny, {
782
783
  message: string;
783
784
  success: boolean;
784
785
  documentation: {
@@ -787,9 +788,9 @@ export declare const planningAndApprovalWorkflow: import("@mastra/core/workflows
787
788
  bestPractices: string[];
788
789
  };
789
790
  webResources: {
791
+ url: string;
790
792
  relevance: number;
791
793
  title: string;
792
- url: string;
793
794
  snippet: string;
794
795
  }[];
795
796
  error?: string | undefined;
@@ -802,15 +803,15 @@ export declare const planningAndApprovalWorkflow: import("@mastra/core/workflows
802
803
  bestPractices: string[];
803
804
  };
804
805
  webResources: {
806
+ url: string;
805
807
  relevance: number;
806
808
  title: string;
807
- url: string;
808
809
  snippet: string;
809
810
  }[];
810
811
  error?: string | undefined;
811
812
  }>;
812
- userAnswers: import("zod").ZodOptional<import("zod").ZodRecord<import("zod").ZodString, import("zod").ZodString>>;
813
- }, "strip", import("zod").ZodTypeAny, {
813
+ userAnswers: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
814
+ }, "strip", z.ZodTypeAny, {
814
815
  action: "create" | "edit";
815
816
  discoveredWorkflows: {
816
817
  file: string;
@@ -844,9 +845,9 @@ export declare const planningAndApprovalWorkflow: import("@mastra/core/workflows
844
845
  bestPractices: string[];
845
846
  };
846
847
  webResources: {
848
+ url: string;
847
849
  relevance: number;
848
850
  title: string;
849
- url: string;
850
851
  snippet: string;
851
852
  }[];
852
853
  error?: string | undefined;
@@ -889,9 +890,9 @@ export declare const planningAndApprovalWorkflow: import("@mastra/core/workflows
889
890
  bestPractices: string[];
890
891
  };
891
892
  webResources: {
893
+ url: string;
892
894
  relevance: number;
893
895
  title: string;
894
- url: string;
895
896
  snippet: string;
896
897
  }[];
897
898
  error?: string | undefined;
@@ -900,16 +901,16 @@ export declare const planningAndApprovalWorkflow: import("@mastra/core/workflows
900
901
  workflowName?: string | undefined;
901
902
  requirements?: string | undefined;
902
903
  userAnswers?: Record<string, string> | undefined;
903
- }>, import("zod").ZodObject<{
904
- approved: import("zod").ZodBoolean;
905
- tasks: import("zod").ZodArray<import("zod").ZodObject<{
906
- id: import("zod").ZodString;
907
- content: import("zod").ZodString;
908
- status: import("zod").ZodDefault<import("zod").ZodEnum<["pending", "in_progress", "completed", "blocked"]>>;
909
- priority: import("zod").ZodEnum<["high", "medium", "low"]>;
910
- dependencies: import("zod").ZodOptional<import("zod").ZodArray<import("zod").ZodString, "many">>;
911
- notes: import("zod").ZodString;
912
- }, "strip", import("zod").ZodTypeAny, {
904
+ }>, z.ZodObject<{
905
+ approved: z.ZodBoolean;
906
+ tasks: z.ZodArray<z.ZodObject<{
907
+ id: z.ZodString;
908
+ content: z.ZodString;
909
+ status: z.ZodDefault<z.ZodEnum<["pending", "in_progress", "completed", "blocked"]>>;
910
+ priority: z.ZodEnum<["high", "medium", "low"]>;
911
+ dependencies: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
912
+ notes: z.ZodString;
913
+ }, "strip", z.ZodTypeAny, {
913
914
  status: "pending" | "in_progress" | "completed" | "blocked";
914
915
  id: string;
915
916
  content: string;
@@ -924,9 +925,9 @@ export declare const planningAndApprovalWorkflow: import("@mastra/core/workflows
924
925
  status?: "pending" | "in_progress" | "completed" | "blocked" | undefined;
925
926
  dependencies?: string[] | undefined;
926
927
  }>, "many">;
927
- message: import("zod").ZodString;
928
- userFeedback: import("zod").ZodOptional<import("zod").ZodString>;
929
- }, "strip", import("zod").ZodTypeAny, {
928
+ message: z.ZodString;
929
+ userFeedback: z.ZodOptional<z.ZodString>;
930
+ }, "strip", z.ZodTypeAny, {
930
931
  message: string;
931
932
  tasks: {
932
933
  status: "pending" | "in_progress" | "completed" | "blocked";
@@ -950,16 +951,16 @@ export declare const planningAndApprovalWorkflow: import("@mastra/core/workflows
950
951
  }[];
951
952
  approved: boolean;
952
953
  userFeedback?: string | undefined;
953
- }>, import("zod").ZodObject<{
954
- approved: import("zod").ZodBoolean;
955
- tasks: import("zod").ZodArray<import("zod").ZodObject<{
956
- id: import("zod").ZodString;
957
- content: import("zod").ZodString;
958
- status: import("zod").ZodDefault<import("zod").ZodEnum<["pending", "in_progress", "completed", "blocked"]>>;
959
- priority: import("zod").ZodEnum<["high", "medium", "low"]>;
960
- dependencies: import("zod").ZodOptional<import("zod").ZodArray<import("zod").ZodString, "many">>;
961
- notes: import("zod").ZodString;
962
- }, "strip", import("zod").ZodTypeAny, {
954
+ }>, z.ZodObject<{
955
+ approved: z.ZodBoolean;
956
+ tasks: z.ZodArray<z.ZodObject<{
957
+ id: z.ZodString;
958
+ content: z.ZodString;
959
+ status: z.ZodDefault<z.ZodEnum<["pending", "in_progress", "completed", "blocked"]>>;
960
+ priority: z.ZodEnum<["high", "medium", "low"]>;
961
+ dependencies: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
962
+ notes: z.ZodString;
963
+ }, "strip", z.ZodTypeAny, {
963
964
  status: "pending" | "in_progress" | "completed" | "blocked";
964
965
  id: string;
965
966
  content: string;
@@ -974,9 +975,9 @@ export declare const planningAndApprovalWorkflow: import("@mastra/core/workflows
974
975
  status?: "pending" | "in_progress" | "completed" | "blocked" | undefined;
975
976
  dependencies?: string[] | undefined;
976
977
  }>, "many">;
977
- message: import("zod").ZodString;
978
- userFeedback: import("zod").ZodOptional<import("zod").ZodString>;
979
- }, "strip", import("zod").ZodTypeAny, {
978
+ message: z.ZodString;
979
+ userFeedback: z.ZodOptional<z.ZodString>;
980
+ }, "strip", z.ZodTypeAny, {
980
981
  message: string;
981
982
  tasks: {
982
983
  status: "pending" | "in_progress" | "completed" | "blocked";