@mastra/agent-builder 0.0.0-main-test-2-20251127211532 → 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.
- package/CHANGELOG.md +150 -4
- 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 +122 -92
- package/dist/defaults.d.ts.map +1 -1
- package/dist/index.js +4375 -72
- package/dist/index.js.map +1 -1
- package/dist/processors/tool-summary.d.ts +5 -4
- 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 +7 -6
- package/dist/types.d.ts.map +1 -1
- package/dist/utils.d.ts +8 -7
- package/dist/utils.d.ts.map +1 -1
- package/dist/workflows/task-planning/task-planning.d.ts +223 -222
- package/dist/workflows/task-planning/task-planning.d.ts.map +1 -1
- package/dist/workflows/template-builder/template-builder.d.ts +6 -6
- package/dist/workflows/template-builder/template-builder.d.ts.map +1 -1
- package/dist/workflows/workflow-builder/tools.d.ts +2 -0
- package/dist/workflows/workflow-builder/tools.d.ts.map +1 -1
- package/dist/workflows/workflow-builder/workflow-builder.d.ts.map +1 -1
- package/package.json +11 -10
|
@@ -1,20 +1,21 @@
|
|
|
1
|
-
|
|
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
|
-
}>,
|
|
6
|
-
action:
|
|
7
|
-
workflowName:
|
|
8
|
-
description:
|
|
9
|
-
requirements:
|
|
10
|
-
discoveredWorkflows:
|
|
11
|
-
name:
|
|
12
|
-
file:
|
|
13
|
-
description:
|
|
14
|
-
inputSchema:
|
|
15
|
-
outputSchema:
|
|
16
|
-
steps:
|
|
17
|
-
}, "strip",
|
|
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:
|
|
33
|
-
success:
|
|
34
|
-
structure:
|
|
35
|
-
hasWorkflowsDir:
|
|
36
|
-
hasAgentsDir:
|
|
37
|
-
hasToolsDir:
|
|
38
|
-
hasMastraIndex:
|
|
39
|
-
existingWorkflows:
|
|
40
|
-
existingAgents:
|
|
41
|
-
existingTools:
|
|
42
|
-
}, "strip",
|
|
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:
|
|
60
|
-
message:
|
|
61
|
-
error:
|
|
62
|
-
}, "strip",
|
|
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:
|
|
92
|
-
success:
|
|
93
|
-
documentation:
|
|
94
|
-
workflowPatterns:
|
|
95
|
-
stepExamples:
|
|
96
|
-
bestPractices:
|
|
97
|
-
}, "strip",
|
|
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,12 +104,12 @@ export declare const planningAndApprovalWorkflow: import("@mastra/core/workflows
|
|
|
103
104
|
stepExamples: string[];
|
|
104
105
|
bestPractices: string[];
|
|
105
106
|
}>;
|
|
106
|
-
webResources:
|
|
107
|
-
title:
|
|
108
|
-
url:
|
|
109
|
-
snippet:
|
|
110
|
-
relevance:
|
|
111
|
-
}, "strip",
|
|
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, {
|
|
112
113
|
url: string;
|
|
113
114
|
relevance: number;
|
|
114
115
|
title: string;
|
|
@@ -119,9 +120,9 @@ export declare const planningAndApprovalWorkflow: import("@mastra/core/workflows
|
|
|
119
120
|
title: string;
|
|
120
121
|
snippet: string;
|
|
121
122
|
}>, "many">;
|
|
122
|
-
message:
|
|
123
|
-
error:
|
|
124
|
-
}, "strip",
|
|
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: {
|
|
@@ -152,8 +153,8 @@ export declare const planningAndApprovalWorkflow: import("@mastra/core/workflows
|
|
|
152
153
|
}[];
|
|
153
154
|
error?: string | undefined;
|
|
154
155
|
}>;
|
|
155
|
-
userAnswers:
|
|
156
|
-
}, "strip",
|
|
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;
|
|
@@ -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
|
-
}>,
|
|
247
|
-
success:
|
|
248
|
-
tasks:
|
|
249
|
-
id:
|
|
250
|
-
content:
|
|
251
|
-
status:
|
|
252
|
-
priority:
|
|
253
|
-
dependencies:
|
|
254
|
-
notes:
|
|
255
|
-
}, "strip",
|
|
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:
|
|
271
|
-
id:
|
|
272
|
-
question:
|
|
273
|
-
type:
|
|
274
|
-
options:
|
|
275
|
-
context:
|
|
276
|
-
}, "strip",
|
|
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,13 +287,13 @@ export declare const planningAndApprovalWorkflow: import("@mastra/core/workflows
|
|
|
286
287
|
options?: string[] | undefined;
|
|
287
288
|
context?: string | undefined;
|
|
288
289
|
}>, "many">;
|
|
289
|
-
reasoning:
|
|
290
|
-
planComplete:
|
|
291
|
-
message:
|
|
292
|
-
error:
|
|
293
|
-
allPreviousQuestions:
|
|
294
|
-
allPreviousAnswers:
|
|
295
|
-
}, "strip",
|
|
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;
|
|
298
299
|
reasoning: 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
|
-
}>,
|
|
342
|
-
answers:
|
|
343
|
-
}, "strip",
|
|
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
|
-
}>,
|
|
348
|
-
questions:
|
|
349
|
-
id:
|
|
350
|
-
question:
|
|
351
|
-
type:
|
|
352
|
-
options:
|
|
353
|
-
context:
|
|
354
|
-
}, "strip",
|
|
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:
|
|
368
|
-
currentPlan:
|
|
369
|
-
tasks:
|
|
370
|
-
id:
|
|
371
|
-
content:
|
|
372
|
-
status:
|
|
373
|
-
priority:
|
|
374
|
-
dependencies:
|
|
375
|
-
notes:
|
|
376
|
-
}, "strip",
|
|
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,8 @@ 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:
|
|
392
|
-
}, "strip",
|
|
392
|
+
reasoning: z.ZodString;
|
|
393
|
+
}, "strip", z.ZodTypeAny, {
|
|
393
394
|
reasoning: string;
|
|
394
395
|
tasks: {
|
|
395
396
|
status: "pending" | "in_progress" | "completed" | "blocked";
|
|
@@ -410,7 +411,7 @@ export declare const planningAndApprovalWorkflow: import("@mastra/core/workflows
|
|
|
410
411
|
dependencies?: string[] | undefined;
|
|
411
412
|
}[];
|
|
412
413
|
}>;
|
|
413
|
-
}, "strip",
|
|
414
|
+
}, "strip", z.ZodTypeAny, {
|
|
414
415
|
message: string;
|
|
415
416
|
questions: {
|
|
416
417
|
type: "boolean" | "text" | "choice";
|
|
@@ -450,20 +451,20 @@ export declare const planningAndApprovalWorkflow: import("@mastra/core/workflows
|
|
|
450
451
|
dependencies?: string[] | undefined;
|
|
451
452
|
}[];
|
|
452
453
|
};
|
|
453
|
-
}>, import("@mastra/core/workflows").DefaultEngineType> | import("@mastra/core/workflows").Step<"task-approval",
|
|
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
|
-
}>,
|
|
458
|
-
success:
|
|
459
|
-
tasks:
|
|
460
|
-
id:
|
|
461
|
-
content:
|
|
462
|
-
status:
|
|
463
|
-
priority:
|
|
464
|
-
dependencies:
|
|
465
|
-
notes:
|
|
466
|
-
}, "strip",
|
|
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:
|
|
482
|
-
id:
|
|
483
|
-
question:
|
|
484
|
-
type:
|
|
485
|
-
options:
|
|
486
|
-
context:
|
|
487
|
-
}, "strip",
|
|
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,13 +498,13 @@ export declare const planningAndApprovalWorkflow: import("@mastra/core/workflows
|
|
|
497
498
|
options?: string[] | undefined;
|
|
498
499
|
context?: string | undefined;
|
|
499
500
|
}>, "many">;
|
|
500
|
-
reasoning:
|
|
501
|
-
planComplete:
|
|
502
|
-
message:
|
|
503
|
-
error:
|
|
504
|
-
allPreviousQuestions:
|
|
505
|
-
allPreviousAnswers:
|
|
506
|
-
}, "strip",
|
|
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;
|
|
509
510
|
reasoning: 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
|
-
}>,
|
|
553
|
-
approved:
|
|
554
|
-
tasks:
|
|
555
|
-
id:
|
|
556
|
-
content:
|
|
557
|
-
status:
|
|
558
|
-
priority:
|
|
559
|
-
dependencies:
|
|
560
|
-
notes:
|
|
561
|
-
}, "strip",
|
|
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:
|
|
577
|
-
userFeedback:
|
|
578
|
-
}, "strip",
|
|
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
|
-
}>,
|
|
603
|
-
approved:
|
|
604
|
-
modifications:
|
|
605
|
-
}, "strip",
|
|
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
|
-
}>,
|
|
612
|
-
taskList:
|
|
613
|
-
id:
|
|
614
|
-
content:
|
|
615
|
-
status:
|
|
616
|
-
priority:
|
|
617
|
-
dependencies:
|
|
618
|
-
notes:
|
|
619
|
-
}, "strip",
|
|
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:
|
|
635
|
-
message:
|
|
636
|
-
}, "strip",
|
|
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",
|
|
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
|
-
}>,
|
|
663
|
-
action:
|
|
664
|
-
workflowName:
|
|
665
|
-
description:
|
|
666
|
-
requirements:
|
|
667
|
-
discoveredWorkflows:
|
|
668
|
-
name:
|
|
669
|
-
file:
|
|
670
|
-
description:
|
|
671
|
-
inputSchema:
|
|
672
|
-
outputSchema:
|
|
673
|
-
steps:
|
|
674
|
-
}, "strip",
|
|
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:
|
|
690
|
-
success:
|
|
691
|
-
structure:
|
|
692
|
-
hasWorkflowsDir:
|
|
693
|
-
hasAgentsDir:
|
|
694
|
-
hasToolsDir:
|
|
695
|
-
hasMastraIndex:
|
|
696
|
-
existingWorkflows:
|
|
697
|
-
existingAgents:
|
|
698
|
-
existingTools:
|
|
699
|
-
}, "strip",
|
|
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:
|
|
717
|
-
message:
|
|
718
|
-
error:
|
|
719
|
-
}, "strip",
|
|
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:
|
|
749
|
-
success:
|
|
750
|
-
documentation:
|
|
751
|
-
workflowPatterns:
|
|
752
|
-
stepExamples:
|
|
753
|
-
bestPractices:
|
|
754
|
-
}, "strip",
|
|
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,12 +761,12 @@ export declare const planningAndApprovalWorkflow: import("@mastra/core/workflows
|
|
|
760
761
|
stepExamples: string[];
|
|
761
762
|
bestPractices: string[];
|
|
762
763
|
}>;
|
|
763
|
-
webResources:
|
|
764
|
-
title:
|
|
765
|
-
url:
|
|
766
|
-
snippet:
|
|
767
|
-
relevance:
|
|
768
|
-
}, "strip",
|
|
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, {
|
|
769
770
|
url: string;
|
|
770
771
|
relevance: number;
|
|
771
772
|
title: string;
|
|
@@ -776,9 +777,9 @@ export declare const planningAndApprovalWorkflow: import("@mastra/core/workflows
|
|
|
776
777
|
title: string;
|
|
777
778
|
snippet: string;
|
|
778
779
|
}>, "many">;
|
|
779
|
-
message:
|
|
780
|
-
error:
|
|
781
|
-
}, "strip",
|
|
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: {
|
|
@@ -809,8 +810,8 @@ export declare const planningAndApprovalWorkflow: import("@mastra/core/workflows
|
|
|
809
810
|
}[];
|
|
810
811
|
error?: string | undefined;
|
|
811
812
|
}>;
|
|
812
|
-
userAnswers:
|
|
813
|
-
}, "strip",
|
|
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;
|
|
@@ -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
|
-
}>,
|
|
904
|
-
approved:
|
|
905
|
-
tasks:
|
|
906
|
-
id:
|
|
907
|
-
content:
|
|
908
|
-
status:
|
|
909
|
-
priority:
|
|
910
|
-
dependencies:
|
|
911
|
-
notes:
|
|
912
|
-
}, "strip",
|
|
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:
|
|
928
|
-
userFeedback:
|
|
929
|
-
}, "strip",
|
|
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
|
-
}>,
|
|
954
|
-
approved:
|
|
955
|
-
tasks:
|
|
956
|
-
id:
|
|
957
|
-
content:
|
|
958
|
-
status:
|
|
959
|
-
priority:
|
|
960
|
-
dependencies:
|
|
961
|
-
notes:
|
|
962
|
-
}, "strip",
|
|
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:
|
|
978
|
-
userFeedback:
|
|
979
|
-
}, "strip",
|
|
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";
|