@mastra/agent-builder 1.0.10 → 1.0.11

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,17 +1,15 @@
1
- export declare const planningAndApprovalWorkflow: import("@mastra/core/workflows").Workflow<import("@mastra/core/workflows").DefaultEngineType, (import("@mastra/core/workflows").Step<"planning-iteration", any, {
1
+ export declare const planningAndApprovalWorkflow: import("@mastra/core/workflows").Workflow<import("@mastra/core/workflows").DefaultEngineType, (import("@mastra/core/workflows").Step<"planning-iteration", unknown, {
2
2
  action: "create" | "edit";
3
3
  discoveredWorkflows: {
4
- file: string;
5
4
  name: string;
5
+ file: string;
6
6
  description?: string | undefined;
7
- outputSchema?: any;
8
7
  inputSchema?: any;
8
+ outputSchema?: any;
9
9
  steps?: string[] | undefined;
10
10
  }[];
11
11
  projectStructure: {
12
- message: string;
13
12
  success: boolean;
14
- dependencies: Record<string, string>;
15
13
  structure: {
16
14
  hasWorkflowsDir: boolean;
17
15
  hasAgentsDir: boolean;
@@ -21,10 +19,11 @@ export declare const planningAndApprovalWorkflow: import("@mastra/core/workflows
21
19
  existingAgents: string[];
22
20
  existingTools: string[];
23
21
  };
22
+ dependencies: Record<string, string>;
23
+ message: string;
24
24
  error?: string | undefined;
25
25
  };
26
26
  research: {
27
- message: string;
28
27
  success: boolean;
29
28
  documentation: {
30
29
  workflowPatterns: string[];
@@ -32,125 +31,124 @@ export declare const planningAndApprovalWorkflow: import("@mastra/core/workflows
32
31
  bestPractices: string[];
33
32
  };
34
33
  webResources: {
35
- url: string;
36
- relevance: number;
37
34
  title: string;
35
+ url: string;
38
36
  snippet: string;
37
+ relevance: number;
39
38
  }[];
39
+ message: string;
40
40
  error?: string | undefined;
41
41
  };
42
- description?: string | undefined;
43
42
  workflowName?: string | undefined;
43
+ description?: string | undefined;
44
44
  requirements?: string | undefined;
45
45
  userAnswers?: Record<string, string> | undefined;
46
46
  }, {
47
- message: string;
48
47
  success: boolean;
49
- reasoning: string;
50
48
  tasks: {
51
- status: "pending" | "in_progress" | "completed" | "blocked";
52
49
  id: string;
53
50
  content: string;
54
51
  priority: "high" | "medium" | "low";
55
52
  notes: string;
53
+ status?: "pending" | "in_progress" | "completed" | "blocked" | undefined;
56
54
  dependencies?: string[] | undefined;
57
55
  }[];
58
56
  questions: {
59
- type: "boolean" | "text" | "choice";
60
57
  id: string;
61
58
  question: string;
59
+ type: "boolean" | "text" | "choice";
62
60
  options?: string[] | undefined;
63
61
  context?: string | undefined;
64
62
  }[];
63
+ reasoning: string;
65
64
  planComplete: boolean;
65
+ message: string;
66
66
  error?: string | undefined;
67
67
  allPreviousQuestions?: any[] | undefined;
68
68
  allPreviousAnswers?: Record<string, string> | undefined;
69
69
  }, {
70
70
  answers: Record<string, string>;
71
71
  }, {
72
- message: string;
73
72
  questions: {
74
- type: "boolean" | "text" | "choice";
75
73
  id: string;
76
74
  question: string;
75
+ type: "boolean" | "text" | "choice";
77
76
  options?: string[] | undefined;
78
77
  context?: string | undefined;
79
78
  }[];
79
+ message: string;
80
80
  currentPlan: {
81
- reasoning: string;
82
81
  tasks: {
83
- status: "pending" | "in_progress" | "completed" | "blocked";
84
82
  id: string;
85
83
  content: string;
86
84
  priority: "high" | "medium" | "low";
87
85
  notes: string;
86
+ status?: "pending" | "in_progress" | "completed" | "blocked" | undefined;
88
87
  dependencies?: string[] | undefined;
89
88
  }[];
89
+ reasoning: string;
90
90
  };
91
- }, import("@mastra/core/workflows").DefaultEngineType, unknown> | import("@mastra/core/workflows").Step<"task-approval", any, {
92
- message: string;
91
+ }, import("@mastra/core/workflows").DefaultEngineType, unknown> | import("@mastra/core/workflows").Step<"task-approval", unknown, {
93
92
  success: boolean;
94
- reasoning: string;
95
93
  tasks: {
96
- status: "pending" | "in_progress" | "completed" | "blocked";
97
94
  id: string;
98
95
  content: string;
99
96
  priority: "high" | "medium" | "low";
100
97
  notes: string;
98
+ status?: "pending" | "in_progress" | "completed" | "blocked" | undefined;
101
99
  dependencies?: string[] | undefined;
102
100
  }[];
103
101
  questions: {
104
- type: "boolean" | "text" | "choice";
105
102
  id: string;
106
103
  question: string;
104
+ type: "boolean" | "text" | "choice";
107
105
  options?: string[] | undefined;
108
106
  context?: string | undefined;
109
107
  }[];
108
+ reasoning: string;
110
109
  planComplete: boolean;
110
+ message: string;
111
111
  error?: string | undefined;
112
112
  allPreviousQuestions?: any[] | undefined;
113
113
  allPreviousAnswers?: Record<string, string> | undefined;
114
114
  }, {
115
- message: string;
115
+ approved: boolean;
116
116
  tasks: {
117
- status: "pending" | "in_progress" | "completed" | "blocked";
118
117
  id: string;
119
118
  content: string;
120
119
  priority: "high" | "medium" | "low";
121
120
  notes: string;
121
+ status?: "pending" | "in_progress" | "completed" | "blocked" | undefined;
122
122
  dependencies?: string[] | undefined;
123
123
  }[];
124
- approved: boolean;
124
+ message: string;
125
125
  userFeedback?: string | undefined;
126
126
  }, {
127
127
  approved: boolean;
128
128
  modifications?: string | undefined;
129
129
  }, {
130
- message: string;
131
- summary: string;
132
130
  taskList: {
133
- status: "pending" | "in_progress" | "completed" | "blocked";
134
131
  id: string;
135
132
  content: string;
136
133
  priority: "high" | "medium" | "low";
137
134
  notes: string;
135
+ status?: "pending" | "in_progress" | "completed" | "blocked" | undefined;
138
136
  dependencies?: string[] | undefined;
139
137
  }[];
138
+ summary: string;
139
+ message: string;
140
140
  }, import("@mastra/core/workflows").DefaultEngineType, unknown>)[], "planning-and-approval", unknown, {
141
141
  action: "create" | "edit";
142
142
  discoveredWorkflows: {
143
- file: string;
144
143
  name: string;
144
+ file: string;
145
145
  description?: string | undefined;
146
- outputSchema?: any;
147
146
  inputSchema?: any;
147
+ outputSchema?: any;
148
148
  steps?: string[] | undefined;
149
149
  }[];
150
150
  projectStructure: {
151
- message: string;
152
151
  success: boolean;
153
- dependencies: Record<string, string>;
154
152
  structure: {
155
153
  hasWorkflowsDir: boolean;
156
154
  hasAgentsDir: boolean;
@@ -160,10 +158,11 @@ export declare const planningAndApprovalWorkflow: import("@mastra/core/workflows
160
158
  existingAgents: string[];
161
159
  existingTools: string[];
162
160
  };
161
+ dependencies: Record<string, string>;
162
+ message: string;
163
163
  error?: string | undefined;
164
164
  };
165
165
  research: {
166
- message: string;
167
166
  success: boolean;
168
167
  documentation: {
169
168
  workflowPatterns: string[];
@@ -171,40 +170,41 @@ export declare const planningAndApprovalWorkflow: import("@mastra/core/workflows
171
170
  bestPractices: string[];
172
171
  };
173
172
  webResources: {
174
- url: string;
175
- relevance: number;
176
173
  title: string;
174
+ url: string;
177
175
  snippet: string;
176
+ relevance: number;
178
177
  }[];
178
+ message: string;
179
179
  error?: string | undefined;
180
180
  };
181
- description?: string | undefined;
182
181
  workflowName?: string | undefined;
182
+ description?: string | undefined;
183
183
  requirements?: string | undefined;
184
184
  userAnswers?: Record<string, string> | undefined;
185
185
  }, {
186
- message: string;
186
+ approved: boolean;
187
187
  tasks: {
188
- status: "pending" | "in_progress" | "completed" | "blocked";
189
188
  id: string;
190
189
  content: string;
191
190
  priority: "high" | "medium" | "low";
192
191
  notes: string;
192
+ status?: "pending" | "in_progress" | "completed" | "blocked" | undefined;
193
193
  dependencies?: string[] | undefined;
194
194
  }[];
195
- approved: boolean;
195
+ message: string;
196
196
  userFeedback?: string | undefined;
197
197
  }, {
198
- message: string;
198
+ approved: boolean;
199
199
  tasks: {
200
- status: "pending" | "in_progress" | "completed" | "blocked";
201
200
  id: string;
202
201
  content: string;
203
202
  priority: "high" | "medium" | "low";
204
203
  notes: string;
204
+ status?: "pending" | "in_progress" | "completed" | "blocked" | undefined;
205
205
  dependencies?: string[] | undefined;
206
206
  }[];
207
- approved: boolean;
207
+ message: string;
208
208
  userFeedback?: string | undefined;
209
209
  }, unknown>;
210
210
  //# sourceMappingURL=task-planning.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"task-planning.d.ts","sourceRoot":"","sources":["../../../src/workflows/task-planning/task-planning.ts"],"names":[],"mappings":"AAgQA,eAAO,MAAM,2BAA2B;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;WA0B7B,CAAC"}
1
+ {"version":3,"file":"task-planning.d.ts","sourceRoot":"","sources":["../../../src/workflows/task-planning/task-planning.ts"],"names":[],"mappings":"AAiQA,eAAO,MAAM,2BAA2B;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;WA0B7B,CAAC"}