@mastra/agent-builder 0.2.4 → 1.0.0-beta.1
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 +70 -26
- package/dist/agent/index.d.ts +3 -3
- package/dist/agent/index.d.ts.map +1 -1
- package/dist/defaults.d.ts +217 -765
- package/dist/defaults.d.ts.map +1 -1
- package/dist/index.js +110 -106
- package/dist/index.js.map +1 -1
- package/dist/processors/tool-summary.d.ts.map +1 -1
- package/dist/types.d.ts +2 -2
- package/dist/utils.d.ts +4 -4
- package/dist/workflows/shared/schema.d.ts +2 -2
- package/dist/workflows/task-planning/schema.d.ts +12 -12
- package/dist/workflows/task-planning/task-planning.d.ts +23 -23
- package/dist/workflows/task-planning/task-planning.d.ts.map +1 -1
- package/dist/workflows/template-builder/template-builder.d.ts +21 -21
- package/dist/workflows/template-builder/template-builder.d.ts.map +1 -1
- package/dist/workflows/workflow-builder/prompts.d.ts +1 -1
- package/dist/workflows/workflow-builder/prompts.d.ts.map +1 -1
- package/dist/workflows/workflow-builder/schema.d.ts +14 -14
- package/dist/workflows/workflow-builder/tools.d.ts +13 -83
- package/dist/workflows/workflow-builder/tools.d.ts.map +1 -1
- package/dist/workflows/workflow-builder/workflow-builder.d.ts +52 -52
- package/dist/workflows/workflow-builder/workflow-builder.d.ts.map +1 -1
- package/package.json +11 -16
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"tool-summary.d.ts","sourceRoot":"","sources":["../../src/processors/tool-summary.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,oBAAoB,CAAC;AAC9D,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,kBAAkB,CAAC;AACpD,OAAO,EAAE,eAAe,EAAE,MAAM,qBAAqB,CAAC;AAEtD;;GAEG;AACH,qBAAa,oBAAqB,SAAQ,eAAe;IACvD,OAAO,CAAC,YAAY,CAAQ;IAC5B,OAAO,CAAC,YAAY,CAAkC;gBAE1C,EAAE,YAAY,EAAE,EAAE;QAAE,YAAY,EAAE,mBAAmB,CAAA;KAAE;
|
|
1
|
+
{"version":3,"file":"tool-summary.d.ts","sourceRoot":"","sources":["../../src/processors/tool-summary.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,oBAAoB,CAAC;AAC9D,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,kBAAkB,CAAC;AACpD,OAAO,EAAE,eAAe,EAAE,MAAM,qBAAqB,CAAC;AAEtD;;GAEG;AACH,qBAAa,oBAAqB,SAAQ,eAAe;IACvD,OAAO,CAAC,YAAY,CAAQ;IAC5B,OAAO,CAAC,YAAY,CAAkC;gBAE1C,EAAE,YAAY,EAAE,EAAE;QAAE,YAAY,EAAE,mBAAmB,CAAA;KAAE;IAWnE;;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,OAAO,CAAC,QAAQ,EAAE,WAAW,EAAE,GAAG,OAAO,CAAC,WAAW,EAAE,CAAC;CAsF/D"}
|
package/dist/types.d.ts
CHANGED
|
@@ -32,8 +32,8 @@ export interface AgentBuilderConfig {
|
|
|
32
32
|
* Options for generating agents with AgentBuilder
|
|
33
33
|
*/
|
|
34
34
|
export interface GenerateAgentOptions {
|
|
35
|
-
/**
|
|
36
|
-
|
|
35
|
+
/** Request Context for the generation */
|
|
36
|
+
requestContext?: any;
|
|
37
37
|
/** Output format preference */
|
|
38
38
|
outputFormat?: 'code' | 'explanation' | 'both';
|
|
39
39
|
}
|
package/dist/utils.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { exec as execNodejs, execFile as execFileNodejs } from 'child_process';
|
|
2
2
|
import type { SpawnOptions } from 'child_process';
|
|
3
3
|
import type { MastraLanguageModel } from '@mastra/core/agent';
|
|
4
|
-
import type {
|
|
4
|
+
import type { RequestContext } from '@mastra/core/request-context';
|
|
5
5
|
import type { UnitKind } from './types.js';
|
|
6
6
|
export declare const exec: typeof execNodejs.__promisify__;
|
|
7
7
|
export declare const execFile: typeof execFileNodejs.__promisify__;
|
|
@@ -58,13 +58,13 @@ export declare function gitCheckoutBranch(branchName: string, targetPath: string
|
|
|
58
58
|
export declare function backupAndReplaceFile(sourceFile: string, targetFile: string): Promise<void>;
|
|
59
59
|
export declare function renameAndCopyFile(sourceFile: string, targetFile: string): Promise<string>;
|
|
60
60
|
export declare const isValidMastraLanguageModel: (model: any) => model is MastraLanguageModel;
|
|
61
|
-
export declare const resolveTargetPath: (inputData: any,
|
|
61
|
+
export declare const resolveTargetPath: (inputData: any, requestContext: any) => string;
|
|
62
62
|
export declare const mergeGitignoreFiles: (targetContent: string, templateContent: string, templateSlug: string) => string;
|
|
63
63
|
export declare const mergeEnvFiles: (targetContent: string, templateVariables: Record<string, string>, templateSlug: string) => string;
|
|
64
64
|
export declare const detectAISDKVersion: (projectPath: string) => Promise<"v1" | "v2">;
|
|
65
65
|
export declare const createModelInstance: (provider: string, modelId: string, version?: "v1" | "v2") => Promise<MastraLanguageModel | null>;
|
|
66
|
-
export declare const resolveModel: ({
|
|
67
|
-
|
|
66
|
+
export declare const resolveModel: ({ requestContext, defaultModel, projectPath, }: {
|
|
67
|
+
requestContext: RequestContext;
|
|
68
68
|
defaultModel?: MastraLanguageModel | string;
|
|
69
69
|
projectPath?: string;
|
|
70
70
|
}) => Promise<MastraLanguageModel>;
|
|
@@ -92,6 +92,7 @@ export declare const PlanningIterationResultSchema: z.ZodObject<{
|
|
|
92
92
|
}, "strip", z.ZodTypeAny, {
|
|
93
93
|
message: string;
|
|
94
94
|
success: boolean;
|
|
95
|
+
reasoning: string;
|
|
95
96
|
tasks: {
|
|
96
97
|
status: "pending" | "in_progress" | "completed" | "blocked";
|
|
97
98
|
id: string;
|
|
@@ -100,7 +101,6 @@ export declare const PlanningIterationResultSchema: z.ZodObject<{
|
|
|
100
101
|
notes: string;
|
|
101
102
|
dependencies?: string[] | undefined;
|
|
102
103
|
}[];
|
|
103
|
-
reasoning: string;
|
|
104
104
|
questions: {
|
|
105
105
|
type: "boolean" | "text" | "choice";
|
|
106
106
|
id: string;
|
|
@@ -115,6 +115,7 @@ export declare const PlanningIterationResultSchema: z.ZodObject<{
|
|
|
115
115
|
}, {
|
|
116
116
|
message: string;
|
|
117
117
|
success: boolean;
|
|
118
|
+
reasoning: string;
|
|
118
119
|
tasks: {
|
|
119
120
|
id: string;
|
|
120
121
|
content: string;
|
|
@@ -123,7 +124,6 @@ export declare const PlanningIterationResultSchema: z.ZodObject<{
|
|
|
123
124
|
status?: "pending" | "in_progress" | "completed" | "blocked" | undefined;
|
|
124
125
|
dependencies?: string[] | undefined;
|
|
125
126
|
}[];
|
|
126
|
-
reasoning: string;
|
|
127
127
|
questions: {
|
|
128
128
|
type: "boolean" | "text" | "choice";
|
|
129
129
|
id: string;
|
|
@@ -106,14 +106,14 @@ export declare const PlanningIterationInputSchema: z.ZodObject<{
|
|
|
106
106
|
snippet: z.ZodString;
|
|
107
107
|
relevance: z.ZodNumber;
|
|
108
108
|
}, "strip", z.ZodTypeAny, {
|
|
109
|
+
url: string;
|
|
109
110
|
relevance: number;
|
|
110
111
|
title: string;
|
|
111
|
-
url: string;
|
|
112
112
|
snippet: string;
|
|
113
113
|
}, {
|
|
114
|
+
url: string;
|
|
114
115
|
relevance: number;
|
|
115
116
|
title: string;
|
|
116
|
-
url: string;
|
|
117
117
|
snippet: string;
|
|
118
118
|
}>, "many">;
|
|
119
119
|
message: z.ZodString;
|
|
@@ -127,9 +127,9 @@ export declare const PlanningIterationInputSchema: z.ZodObject<{
|
|
|
127
127
|
bestPractices: string[];
|
|
128
128
|
};
|
|
129
129
|
webResources: {
|
|
130
|
+
url: string;
|
|
130
131
|
relevance: number;
|
|
131
132
|
title: string;
|
|
132
|
-
url: string;
|
|
133
133
|
snippet: string;
|
|
134
134
|
}[];
|
|
135
135
|
error?: string | undefined;
|
|
@@ -142,9 +142,9 @@ export declare const PlanningIterationInputSchema: z.ZodObject<{
|
|
|
142
142
|
bestPractices: string[];
|
|
143
143
|
};
|
|
144
144
|
webResources: {
|
|
145
|
+
url: string;
|
|
145
146
|
relevance: number;
|
|
146
147
|
title: string;
|
|
147
|
-
url: string;
|
|
148
148
|
snippet: string;
|
|
149
149
|
}[];
|
|
150
150
|
error?: string | undefined;
|
|
@@ -184,9 +184,9 @@ export declare const PlanningIterationInputSchema: z.ZodObject<{
|
|
|
184
184
|
bestPractices: string[];
|
|
185
185
|
};
|
|
186
186
|
webResources: {
|
|
187
|
+
url: string;
|
|
187
188
|
relevance: number;
|
|
188
189
|
title: string;
|
|
189
|
-
url: string;
|
|
190
190
|
snippet: string;
|
|
191
191
|
}[];
|
|
192
192
|
error?: string | undefined;
|
|
@@ -229,9 +229,9 @@ export declare const PlanningIterationInputSchema: z.ZodObject<{
|
|
|
229
229
|
bestPractices: string[];
|
|
230
230
|
};
|
|
231
231
|
webResources: {
|
|
232
|
+
url: string;
|
|
232
233
|
relevance: number;
|
|
233
234
|
title: string;
|
|
234
|
-
url: string;
|
|
235
235
|
snippet: string;
|
|
236
236
|
}[];
|
|
237
237
|
error?: string | undefined;
|
|
@@ -287,6 +287,7 @@ export declare const PlanningIterationSuspendSchema: z.ZodObject<{
|
|
|
287
287
|
}>, "many">;
|
|
288
288
|
reasoning: z.ZodString;
|
|
289
289
|
}, "strip", z.ZodTypeAny, {
|
|
290
|
+
reasoning: string;
|
|
290
291
|
tasks: {
|
|
291
292
|
status: "pending" | "in_progress" | "completed" | "blocked";
|
|
292
293
|
id: string;
|
|
@@ -295,8 +296,8 @@ export declare const PlanningIterationSuspendSchema: z.ZodObject<{
|
|
|
295
296
|
notes: string;
|
|
296
297
|
dependencies?: string[] | undefined;
|
|
297
298
|
}[];
|
|
298
|
-
reasoning: string;
|
|
299
299
|
}, {
|
|
300
|
+
reasoning: string;
|
|
300
301
|
tasks: {
|
|
301
302
|
id: string;
|
|
302
303
|
content: string;
|
|
@@ -305,7 +306,6 @@ export declare const PlanningIterationSuspendSchema: z.ZodObject<{
|
|
|
305
306
|
status?: "pending" | "in_progress" | "completed" | "blocked" | undefined;
|
|
306
307
|
dependencies?: string[] | undefined;
|
|
307
308
|
}[];
|
|
308
|
-
reasoning: string;
|
|
309
309
|
}>;
|
|
310
310
|
}, "strip", z.ZodTypeAny, {
|
|
311
311
|
message: string;
|
|
@@ -317,6 +317,7 @@ export declare const PlanningIterationSuspendSchema: z.ZodObject<{
|
|
|
317
317
|
context?: string | undefined;
|
|
318
318
|
}[];
|
|
319
319
|
currentPlan: {
|
|
320
|
+
reasoning: string;
|
|
320
321
|
tasks: {
|
|
321
322
|
status: "pending" | "in_progress" | "completed" | "blocked";
|
|
322
323
|
id: string;
|
|
@@ -325,7 +326,6 @@ export declare const PlanningIterationSuspendSchema: z.ZodObject<{
|
|
|
325
326
|
notes: string;
|
|
326
327
|
dependencies?: string[] | undefined;
|
|
327
328
|
}[];
|
|
328
|
-
reasoning: string;
|
|
329
329
|
};
|
|
330
330
|
}, {
|
|
331
331
|
message: string;
|
|
@@ -337,6 +337,7 @@ export declare const PlanningIterationSuspendSchema: z.ZodObject<{
|
|
|
337
337
|
context?: string | undefined;
|
|
338
338
|
}[];
|
|
339
339
|
currentPlan: {
|
|
340
|
+
reasoning: string;
|
|
340
341
|
tasks: {
|
|
341
342
|
id: string;
|
|
342
343
|
content: string;
|
|
@@ -345,7 +346,6 @@ export declare const PlanningIterationSuspendSchema: z.ZodObject<{
|
|
|
345
346
|
status?: "pending" | "in_progress" | "completed" | "blocked" | undefined;
|
|
346
347
|
dependencies?: string[] | undefined;
|
|
347
348
|
}[];
|
|
348
|
-
reasoning: string;
|
|
349
349
|
};
|
|
350
350
|
}>;
|
|
351
351
|
export declare const PlanningIterationResumeSchema: z.ZodObject<{
|
|
@@ -400,6 +400,7 @@ export declare const PlanningAgentOutputSchema: z.ZodObject<{
|
|
|
400
400
|
reasoning: z.ZodString;
|
|
401
401
|
planComplete: z.ZodBoolean;
|
|
402
402
|
}, "strip", z.ZodTypeAny, {
|
|
403
|
+
reasoning: string;
|
|
403
404
|
tasks: {
|
|
404
405
|
status: "pending" | "in_progress" | "completed" | "blocked";
|
|
405
406
|
id: string;
|
|
@@ -408,7 +409,6 @@ export declare const PlanningAgentOutputSchema: z.ZodObject<{
|
|
|
408
409
|
notes: string;
|
|
409
410
|
dependencies?: string[] | undefined;
|
|
410
411
|
}[];
|
|
411
|
-
reasoning: string;
|
|
412
412
|
planComplete: boolean;
|
|
413
413
|
questions?: {
|
|
414
414
|
type: "boolean" | "text" | "choice";
|
|
@@ -418,6 +418,7 @@ export declare const PlanningAgentOutputSchema: z.ZodObject<{
|
|
|
418
418
|
context?: string | undefined;
|
|
419
419
|
}[] | undefined;
|
|
420
420
|
}, {
|
|
421
|
+
reasoning: string;
|
|
421
422
|
tasks: {
|
|
422
423
|
id: string;
|
|
423
424
|
content: string;
|
|
@@ -426,7 +427,6 @@ export declare const PlanningAgentOutputSchema: z.ZodObject<{
|
|
|
426
427
|
status?: "pending" | "in_progress" | "completed" | "blocked" | undefined;
|
|
427
428
|
dependencies?: string[] | undefined;
|
|
428
429
|
}[];
|
|
429
|
-
reasoning: string;
|
|
430
430
|
planComplete: boolean;
|
|
431
431
|
questions?: {
|
|
432
432
|
type: "boolean" | "text" | "choice";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export declare const planningAndApprovalWorkflow: import("@mastra/core/workflows").Workflow<import("@mastra/core").DefaultEngineType, (import("@mastra/core").Step<"planning-iteration", import("zod").ZodObject<any, import("zod").UnknownKeysParam, import("zod").ZodTypeAny, {
|
|
1
|
+
export declare const planningAndApprovalWorkflow: import("@mastra/core/workflows").Workflow<import("@mastra/core/workflows").DefaultEngineType, (import("@mastra/core/workflows").Step<"planning-iteration", import("zod").ZodObject<any, import("zod").UnknownKeysParam, import("zod").ZodTypeAny, {
|
|
2
2
|
[x: string]: any;
|
|
3
3
|
}, {
|
|
4
4
|
[x: string]: any;
|
|
@@ -109,14 +109,14 @@ export declare const planningAndApprovalWorkflow: import("@mastra/core/workflows
|
|
|
109
109
|
snippet: import("zod").ZodString;
|
|
110
110
|
relevance: import("zod").ZodNumber;
|
|
111
111
|
}, "strip", import("zod").ZodTypeAny, {
|
|
112
|
+
url: string;
|
|
112
113
|
relevance: number;
|
|
113
114
|
title: string;
|
|
114
|
-
url: string;
|
|
115
115
|
snippet: string;
|
|
116
116
|
}, {
|
|
117
|
+
url: string;
|
|
117
118
|
relevance: number;
|
|
118
119
|
title: string;
|
|
119
|
-
url: string;
|
|
120
120
|
snippet: string;
|
|
121
121
|
}>, "many">;
|
|
122
122
|
message: import("zod").ZodString;
|
|
@@ -130,9 +130,9 @@ export declare const planningAndApprovalWorkflow: import("@mastra/core/workflows
|
|
|
130
130
|
bestPractices: string[];
|
|
131
131
|
};
|
|
132
132
|
webResources: {
|
|
133
|
+
url: string;
|
|
133
134
|
relevance: number;
|
|
134
135
|
title: string;
|
|
135
|
-
url: string;
|
|
136
136
|
snippet: string;
|
|
137
137
|
}[];
|
|
138
138
|
error?: string | undefined;
|
|
@@ -145,9 +145,9 @@ export declare const planningAndApprovalWorkflow: import("@mastra/core/workflows
|
|
|
145
145
|
bestPractices: string[];
|
|
146
146
|
};
|
|
147
147
|
webResources: {
|
|
148
|
+
url: string;
|
|
148
149
|
relevance: number;
|
|
149
150
|
title: string;
|
|
150
|
-
url: string;
|
|
151
151
|
snippet: string;
|
|
152
152
|
}[];
|
|
153
153
|
error?: string | undefined;
|
|
@@ -187,9 +187,9 @@ export declare const planningAndApprovalWorkflow: import("@mastra/core/workflows
|
|
|
187
187
|
bestPractices: string[];
|
|
188
188
|
};
|
|
189
189
|
webResources: {
|
|
190
|
+
url: string;
|
|
190
191
|
relevance: number;
|
|
191
192
|
title: string;
|
|
192
|
-
url: string;
|
|
193
193
|
snippet: string;
|
|
194
194
|
}[];
|
|
195
195
|
error?: string | undefined;
|
|
@@ -232,9 +232,9 @@ export declare const planningAndApprovalWorkflow: import("@mastra/core/workflows
|
|
|
232
232
|
bestPractices: string[];
|
|
233
233
|
};
|
|
234
234
|
webResources: {
|
|
235
|
+
url: string;
|
|
235
236
|
relevance: number;
|
|
236
237
|
title: string;
|
|
237
|
-
url: string;
|
|
238
238
|
snippet: string;
|
|
239
239
|
}[];
|
|
240
240
|
error?: string | undefined;
|
|
@@ -295,6 +295,7 @@ export declare const planningAndApprovalWorkflow: import("@mastra/core/workflows
|
|
|
295
295
|
}, "strip", import("zod").ZodTypeAny, {
|
|
296
296
|
message: string;
|
|
297
297
|
success: boolean;
|
|
298
|
+
reasoning: string;
|
|
298
299
|
tasks: {
|
|
299
300
|
status: "pending" | "in_progress" | "completed" | "blocked";
|
|
300
301
|
id: string;
|
|
@@ -303,7 +304,6 @@ export declare const planningAndApprovalWorkflow: import("@mastra/core/workflows
|
|
|
303
304
|
notes: string;
|
|
304
305
|
dependencies?: string[] | undefined;
|
|
305
306
|
}[];
|
|
306
|
-
reasoning: string;
|
|
307
307
|
questions: {
|
|
308
308
|
type: "boolean" | "text" | "choice";
|
|
309
309
|
id: string;
|
|
@@ -318,6 +318,7 @@ export declare const planningAndApprovalWorkflow: import("@mastra/core/workflows
|
|
|
318
318
|
}, {
|
|
319
319
|
message: string;
|
|
320
320
|
success: boolean;
|
|
321
|
+
reasoning: string;
|
|
321
322
|
tasks: {
|
|
322
323
|
id: string;
|
|
323
324
|
content: string;
|
|
@@ -326,7 +327,6 @@ export declare const planningAndApprovalWorkflow: import("@mastra/core/workflows
|
|
|
326
327
|
status?: "pending" | "in_progress" | "completed" | "blocked" | undefined;
|
|
327
328
|
dependencies?: string[] | undefined;
|
|
328
329
|
}[];
|
|
329
|
-
reasoning: string;
|
|
330
330
|
questions: {
|
|
331
331
|
type: "boolean" | "text" | "choice";
|
|
332
332
|
id: string;
|
|
@@ -390,6 +390,7 @@ export declare const planningAndApprovalWorkflow: import("@mastra/core/workflows
|
|
|
390
390
|
}>, "many">;
|
|
391
391
|
reasoning: import("zod").ZodString;
|
|
392
392
|
}, "strip", import("zod").ZodTypeAny, {
|
|
393
|
+
reasoning: string;
|
|
393
394
|
tasks: {
|
|
394
395
|
status: "pending" | "in_progress" | "completed" | "blocked";
|
|
395
396
|
id: string;
|
|
@@ -398,8 +399,8 @@ export declare const planningAndApprovalWorkflow: import("@mastra/core/workflows
|
|
|
398
399
|
notes: string;
|
|
399
400
|
dependencies?: string[] | undefined;
|
|
400
401
|
}[];
|
|
401
|
-
reasoning: string;
|
|
402
402
|
}, {
|
|
403
|
+
reasoning: string;
|
|
403
404
|
tasks: {
|
|
404
405
|
id: string;
|
|
405
406
|
content: string;
|
|
@@ -408,7 +409,6 @@ export declare const planningAndApprovalWorkflow: import("@mastra/core/workflows
|
|
|
408
409
|
status?: "pending" | "in_progress" | "completed" | "blocked" | undefined;
|
|
409
410
|
dependencies?: string[] | undefined;
|
|
410
411
|
}[];
|
|
411
|
-
reasoning: string;
|
|
412
412
|
}>;
|
|
413
413
|
}, "strip", import("zod").ZodTypeAny, {
|
|
414
414
|
message: string;
|
|
@@ -420,6 +420,7 @@ export declare const planningAndApprovalWorkflow: import("@mastra/core/workflows
|
|
|
420
420
|
context?: string | undefined;
|
|
421
421
|
}[];
|
|
422
422
|
currentPlan: {
|
|
423
|
+
reasoning: string;
|
|
423
424
|
tasks: {
|
|
424
425
|
status: "pending" | "in_progress" | "completed" | "blocked";
|
|
425
426
|
id: string;
|
|
@@ -428,7 +429,6 @@ export declare const planningAndApprovalWorkflow: import("@mastra/core/workflows
|
|
|
428
429
|
notes: string;
|
|
429
430
|
dependencies?: string[] | undefined;
|
|
430
431
|
}[];
|
|
431
|
-
reasoning: string;
|
|
432
432
|
};
|
|
433
433
|
}, {
|
|
434
434
|
message: string;
|
|
@@ -440,6 +440,7 @@ export declare const planningAndApprovalWorkflow: import("@mastra/core/workflows
|
|
|
440
440
|
context?: string | undefined;
|
|
441
441
|
}[];
|
|
442
442
|
currentPlan: {
|
|
443
|
+
reasoning: string;
|
|
443
444
|
tasks: {
|
|
444
445
|
id: string;
|
|
445
446
|
content: string;
|
|
@@ -448,9 +449,8 @@ export declare const planningAndApprovalWorkflow: import("@mastra/core/workflows
|
|
|
448
449
|
status?: "pending" | "in_progress" | "completed" | "blocked" | undefined;
|
|
449
450
|
dependencies?: string[] | undefined;
|
|
450
451
|
}[];
|
|
451
|
-
reasoning: string;
|
|
452
452
|
};
|
|
453
|
-
}>, import("@mastra/core").DefaultEngineType> | import("@mastra/core").Step<"task-approval", import("zod").ZodObject<any, import("zod").UnknownKeysParam, import("zod").ZodTypeAny, {
|
|
453
|
+
}>, import("@mastra/core/workflows").DefaultEngineType> | import("@mastra/core/workflows").Step<"task-approval", import("zod").ZodObject<any, import("zod").UnknownKeysParam, import("zod").ZodTypeAny, {
|
|
454
454
|
[x: string]: any;
|
|
455
455
|
}, {
|
|
456
456
|
[x: string]: any;
|
|
@@ -506,6 +506,7 @@ export declare const planningAndApprovalWorkflow: import("@mastra/core/workflows
|
|
|
506
506
|
}, "strip", import("zod").ZodTypeAny, {
|
|
507
507
|
message: string;
|
|
508
508
|
success: boolean;
|
|
509
|
+
reasoning: string;
|
|
509
510
|
tasks: {
|
|
510
511
|
status: "pending" | "in_progress" | "completed" | "blocked";
|
|
511
512
|
id: string;
|
|
@@ -514,7 +515,6 @@ export declare const planningAndApprovalWorkflow: import("@mastra/core/workflows
|
|
|
514
515
|
notes: string;
|
|
515
516
|
dependencies?: string[] | undefined;
|
|
516
517
|
}[];
|
|
517
|
-
reasoning: string;
|
|
518
518
|
questions: {
|
|
519
519
|
type: "boolean" | "text" | "choice";
|
|
520
520
|
id: string;
|
|
@@ -529,6 +529,7 @@ export declare const planningAndApprovalWorkflow: import("@mastra/core/workflows
|
|
|
529
529
|
}, {
|
|
530
530
|
message: string;
|
|
531
531
|
success: boolean;
|
|
532
|
+
reasoning: string;
|
|
532
533
|
tasks: {
|
|
533
534
|
id: string;
|
|
534
535
|
content: string;
|
|
@@ -537,7 +538,6 @@ export declare const planningAndApprovalWorkflow: import("@mastra/core/workflows
|
|
|
537
538
|
status?: "pending" | "in_progress" | "completed" | "blocked" | undefined;
|
|
538
539
|
dependencies?: string[] | undefined;
|
|
539
540
|
}[];
|
|
540
|
-
reasoning: string;
|
|
541
541
|
questions: {
|
|
542
542
|
type: "boolean" | "text" | "choice";
|
|
543
543
|
id: string;
|
|
@@ -655,7 +655,7 @@ export declare const planningAndApprovalWorkflow: import("@mastra/core/workflows
|
|
|
655
655
|
status?: "pending" | "in_progress" | "completed" | "blocked" | undefined;
|
|
656
656
|
dependencies?: string[] | undefined;
|
|
657
657
|
}[];
|
|
658
|
-
}>, import("@mastra/core").DefaultEngineType>)[], "planning-and-approval", import("zod").ZodObject<any, import("zod").UnknownKeysParam, import("zod").ZodTypeAny, {
|
|
658
|
+
}>, import("@mastra/core/workflows").DefaultEngineType>)[], "planning-and-approval", import("zod").ZodObject<any, import("zod").UnknownKeysParam, import("zod").ZodTypeAny, {
|
|
659
659
|
[x: string]: any;
|
|
660
660
|
}, {
|
|
661
661
|
[x: string]: any;
|
|
@@ -766,14 +766,14 @@ export declare const planningAndApprovalWorkflow: import("@mastra/core/workflows
|
|
|
766
766
|
snippet: import("zod").ZodString;
|
|
767
767
|
relevance: import("zod").ZodNumber;
|
|
768
768
|
}, "strip", import("zod").ZodTypeAny, {
|
|
769
|
+
url: string;
|
|
769
770
|
relevance: number;
|
|
770
771
|
title: string;
|
|
771
|
-
url: string;
|
|
772
772
|
snippet: string;
|
|
773
773
|
}, {
|
|
774
|
+
url: string;
|
|
774
775
|
relevance: number;
|
|
775
776
|
title: string;
|
|
776
|
-
url: string;
|
|
777
777
|
snippet: string;
|
|
778
778
|
}>, "many">;
|
|
779
779
|
message: import("zod").ZodString;
|
|
@@ -787,9 +787,9 @@ export declare const planningAndApprovalWorkflow: import("@mastra/core/workflows
|
|
|
787
787
|
bestPractices: string[];
|
|
788
788
|
};
|
|
789
789
|
webResources: {
|
|
790
|
+
url: string;
|
|
790
791
|
relevance: number;
|
|
791
792
|
title: string;
|
|
792
|
-
url: string;
|
|
793
793
|
snippet: string;
|
|
794
794
|
}[];
|
|
795
795
|
error?: string | undefined;
|
|
@@ -802,9 +802,9 @@ export declare const planningAndApprovalWorkflow: import("@mastra/core/workflows
|
|
|
802
802
|
bestPractices: string[];
|
|
803
803
|
};
|
|
804
804
|
webResources: {
|
|
805
|
+
url: string;
|
|
805
806
|
relevance: number;
|
|
806
807
|
title: string;
|
|
807
|
-
url: string;
|
|
808
808
|
snippet: string;
|
|
809
809
|
}[];
|
|
810
810
|
error?: string | undefined;
|
|
@@ -844,9 +844,9 @@ export declare const planningAndApprovalWorkflow: import("@mastra/core/workflows
|
|
|
844
844
|
bestPractices: string[];
|
|
845
845
|
};
|
|
846
846
|
webResources: {
|
|
847
|
+
url: string;
|
|
847
848
|
relevance: number;
|
|
848
849
|
title: string;
|
|
849
|
-
url: string;
|
|
850
850
|
snippet: string;
|
|
851
851
|
}[];
|
|
852
852
|
error?: string | undefined;
|
|
@@ -889,9 +889,9 @@ export declare const planningAndApprovalWorkflow: import("@mastra/core/workflows
|
|
|
889
889
|
bestPractices: string[];
|
|
890
890
|
};
|
|
891
891
|
webResources: {
|
|
892
|
+
url: string;
|
|
892
893
|
relevance: number;
|
|
893
894
|
title: string;
|
|
894
|
-
url: string;
|
|
895
895
|
snippet: string;
|
|
896
896
|
}[];
|
|
897
897
|
error?: string | undefined;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"task-planning.d.ts","sourceRoot":"","sources":["../../../src/workflows/task-planning/task-planning.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"task-planning.d.ts","sourceRoot":"","sources":["../../../src/workflows/task-planning/task-planning.ts"],"names":[],"mappings":"AA4PA,eAAO,MAAM,2BAA2B;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA0B7B,CAAC"}
|