@mastra/agent-builder 1.1.33-alpha.1 → 1.2.0-alpha.3

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,3 +1,561 @@
1
+ /**
2
+ * Builds a new workflow-builder workflow, with its own planning-and-approval sub-workflow, on every call. See
3
+ * `createAgentBuilderWorkflows` for when to use a factory instead of the shared `workflowBuilderWorkflow`.
4
+ */
5
+ export declare function createWorkflowBuilderWorkflow(): import("@mastra/core/workflows").Workflow<import("@mastra/core/workflows").DefaultEngineType, (import("@mastra/core/workflows").Step<"project-discovery", unknown, {
6
+ success: boolean;
7
+ workflows: {
8
+ name: string;
9
+ file: string;
10
+ description?: string | undefined;
11
+ inputSchema?: any;
12
+ outputSchema?: any;
13
+ steps?: string[] | undefined;
14
+ }[];
15
+ mastraIndexExists: boolean;
16
+ message: string;
17
+ error?: string | undefined;
18
+ }, {
19
+ success: boolean;
20
+ structure: {
21
+ hasWorkflowsDir: boolean;
22
+ hasAgentsDir: boolean;
23
+ hasToolsDir: boolean;
24
+ hasMastraIndex: boolean;
25
+ existingWorkflows: string[];
26
+ existingAgents: string[];
27
+ existingTools: string[];
28
+ };
29
+ dependencies: Record<string, string>;
30
+ message: string;
31
+ error?: string | undefined;
32
+ }, unknown, unknown, import("@mastra/core/workflows").DefaultEngineType, unknown> | import("@mastra/core/workflows").Step<"task-execution", unknown, {
33
+ action: "create" | "edit";
34
+ workflowName?: string | undefined;
35
+ description?: string | undefined;
36
+ requirements?: string | undefined;
37
+ tasks: {
38
+ id: string;
39
+ content: string;
40
+ status: "blocked" | "completed" | "in_progress" | "pending";
41
+ priority: "high" | "low" | "medium";
42
+ dependencies?: string[] | undefined;
43
+ notes: string;
44
+ }[];
45
+ discoveredWorkflows: any[];
46
+ projectStructure: any;
47
+ research: any;
48
+ projectPath?: string | undefined;
49
+ }, {
50
+ success: boolean;
51
+ filesModified: string[];
52
+ validationResults: {
53
+ passed: boolean;
54
+ errors: string[];
55
+ warnings: string[];
56
+ };
57
+ completedTasks: string[];
58
+ message: string;
59
+ error?: string | undefined;
60
+ }, {
61
+ answers: {
62
+ questionId: string;
63
+ answer: string;
64
+ }[];
65
+ }, {
66
+ questions: {
67
+ id: string;
68
+ question: string;
69
+ type: "boolean" | "choice" | "text";
70
+ options?: string[] | undefined;
71
+ context?: string | undefined;
72
+ }[];
73
+ currentProgress: string;
74
+ completedTasks: string[];
75
+ message: string;
76
+ }, import("@mastra/core/workflows").DefaultEngineType, unknown> | import("@mastra/core/workflows").Step<"workflow-discovery", unknown, {
77
+ workflowName?: string | undefined;
78
+ action: "create" | "edit";
79
+ description?: string | undefined;
80
+ requirements?: string | undefined;
81
+ projectPath?: string | undefined;
82
+ }, {
83
+ success: boolean;
84
+ workflows: {
85
+ name: string;
86
+ file: string;
87
+ description?: string | undefined;
88
+ inputSchema?: any;
89
+ outputSchema?: any;
90
+ steps?: string[] | undefined;
91
+ }[];
92
+ mastraIndexExists: boolean;
93
+ message: string;
94
+ error?: string | undefined;
95
+ }, unknown, unknown, import("@mastra/core/workflows").DefaultEngineType, unknown> | import("@mastra/core/workflows").Step<"workflow-research", unknown, {
96
+ success: boolean;
97
+ structure: {
98
+ hasWorkflowsDir: boolean;
99
+ hasAgentsDir: boolean;
100
+ hasToolsDir: boolean;
101
+ hasMastraIndex: boolean;
102
+ existingWorkflows: string[];
103
+ existingAgents: string[];
104
+ existingTools: string[];
105
+ };
106
+ dependencies: Record<string, string>;
107
+ message: string;
108
+ error?: string | undefined;
109
+ }, {
110
+ success: boolean;
111
+ documentation: {
112
+ workflowPatterns: string[];
113
+ stepExamples: string[];
114
+ bestPractices: string[];
115
+ };
116
+ webResources: {
117
+ title: string;
118
+ url: string;
119
+ snippet: string;
120
+ relevance: number;
121
+ }[];
122
+ message: string;
123
+ error?: string | undefined;
124
+ }, unknown, unknown, import("@mastra/core/workflows").DefaultEngineType, unknown> | import("@mastra/core/workflows").Workflow<import("@mastra/core/workflows").DefaultEngineType, (import("@mastra/core/workflows").Step<"planning-iteration", unknown, {
125
+ action: "create" | "edit";
126
+ workflowName?: string | undefined;
127
+ description?: string | undefined;
128
+ requirements?: string | undefined;
129
+ discoveredWorkflows: {
130
+ name: string;
131
+ file: string;
132
+ description?: string | undefined;
133
+ inputSchema?: any;
134
+ outputSchema?: any;
135
+ steps?: string[] | undefined;
136
+ }[];
137
+ projectStructure: {
138
+ success: boolean;
139
+ structure: {
140
+ hasWorkflowsDir: boolean;
141
+ hasAgentsDir: boolean;
142
+ hasToolsDir: boolean;
143
+ hasMastraIndex: boolean;
144
+ existingWorkflows: string[];
145
+ existingAgents: string[];
146
+ existingTools: string[];
147
+ };
148
+ dependencies: Record<string, string>;
149
+ message: string;
150
+ error?: string | undefined;
151
+ };
152
+ research: {
153
+ success: boolean;
154
+ documentation: {
155
+ workflowPatterns: string[];
156
+ stepExamples: string[];
157
+ bestPractices: string[];
158
+ };
159
+ webResources: {
160
+ title: string;
161
+ url: string;
162
+ snippet: string;
163
+ relevance: number;
164
+ }[];
165
+ message: string;
166
+ error?: string | undefined;
167
+ };
168
+ userAnswers?: Record<string, string> | undefined;
169
+ }, {
170
+ success: boolean;
171
+ tasks: {
172
+ id: string;
173
+ content: string;
174
+ status: "blocked" | "completed" | "in_progress" | "pending";
175
+ priority: "high" | "low" | "medium";
176
+ dependencies?: string[] | undefined;
177
+ notes: string;
178
+ }[];
179
+ questions: {
180
+ id: string;
181
+ question: string;
182
+ type: "boolean" | "choice" | "text";
183
+ options?: string[] | undefined;
184
+ context?: string | undefined;
185
+ }[];
186
+ reasoning: string;
187
+ planComplete: boolean;
188
+ message: string;
189
+ error?: string | undefined;
190
+ allPreviousQuestions?: any[] | undefined;
191
+ allPreviousAnswers?: Record<string, string> | undefined;
192
+ }, {
193
+ answers: Record<string, string>;
194
+ }, {
195
+ questions: {
196
+ id: string;
197
+ question: string;
198
+ type: "boolean" | "choice" | "text";
199
+ options?: string[] | undefined;
200
+ context?: string | undefined;
201
+ }[];
202
+ message: string;
203
+ currentPlan: {
204
+ tasks: {
205
+ id: string;
206
+ content: string;
207
+ status: "blocked" | "completed" | "in_progress" | "pending";
208
+ priority: "high" | "low" | "medium";
209
+ dependencies?: string[] | undefined;
210
+ notes: string;
211
+ }[];
212
+ reasoning: string;
213
+ };
214
+ }, import("@mastra/core/workflows").DefaultEngineType, unknown> | import("@mastra/core/workflows").Step<"task-approval", unknown, {
215
+ success: boolean;
216
+ tasks: {
217
+ id: string;
218
+ content: string;
219
+ status: "blocked" | "completed" | "in_progress" | "pending";
220
+ priority: "high" | "low" | "medium";
221
+ dependencies?: string[] | undefined;
222
+ notes: string;
223
+ }[];
224
+ questions: {
225
+ id: string;
226
+ question: string;
227
+ type: "boolean" | "choice" | "text";
228
+ options?: string[] | undefined;
229
+ context?: string | undefined;
230
+ }[];
231
+ reasoning: string;
232
+ planComplete: boolean;
233
+ message: string;
234
+ error?: string | undefined;
235
+ allPreviousQuestions?: any[] | undefined;
236
+ allPreviousAnswers?: Record<string, string> | undefined;
237
+ }, {
238
+ approved: boolean;
239
+ tasks: {
240
+ id: string;
241
+ content: string;
242
+ status: "blocked" | "completed" | "in_progress" | "pending";
243
+ priority: "high" | "low" | "medium";
244
+ dependencies?: string[] | undefined;
245
+ notes: string;
246
+ }[];
247
+ message: string;
248
+ userFeedback?: string | undefined;
249
+ }, {
250
+ approved: boolean;
251
+ modifications?: string | undefined;
252
+ }, {
253
+ taskList: {
254
+ id: string;
255
+ content: string;
256
+ status: "blocked" | "completed" | "in_progress" | "pending";
257
+ priority: "high" | "low" | "medium";
258
+ dependencies?: string[] | undefined;
259
+ notes: string;
260
+ }[];
261
+ summary: string;
262
+ message: string;
263
+ }, import("@mastra/core/workflows").DefaultEngineType, unknown>)[], "planning-and-approval", unknown, {
264
+ action: "create" | "edit";
265
+ workflowName?: string | undefined;
266
+ description?: string | undefined;
267
+ requirements?: string | undefined;
268
+ discoveredWorkflows: {
269
+ name: string;
270
+ file: string;
271
+ description?: string | undefined;
272
+ inputSchema?: any;
273
+ outputSchema?: any;
274
+ steps?: string[] | undefined;
275
+ }[];
276
+ projectStructure: {
277
+ success: boolean;
278
+ structure: {
279
+ hasWorkflowsDir: boolean;
280
+ hasAgentsDir: boolean;
281
+ hasToolsDir: boolean;
282
+ hasMastraIndex: boolean;
283
+ existingWorkflows: string[];
284
+ existingAgents: string[];
285
+ existingTools: string[];
286
+ };
287
+ dependencies: Record<string, string>;
288
+ message: string;
289
+ error?: string | undefined;
290
+ };
291
+ research: {
292
+ success: boolean;
293
+ documentation: {
294
+ workflowPatterns: string[];
295
+ stepExamples: string[];
296
+ bestPractices: string[];
297
+ };
298
+ webResources: {
299
+ title: string;
300
+ url: string;
301
+ snippet: string;
302
+ relevance: number;
303
+ }[];
304
+ message: string;
305
+ error?: string | undefined;
306
+ };
307
+ userAnswers?: Record<string, string> | undefined;
308
+ }, {
309
+ approved: boolean;
310
+ tasks: {
311
+ id: string;
312
+ content: string;
313
+ status: "blocked" | "completed" | "in_progress" | "pending";
314
+ priority: "high" | "low" | "medium";
315
+ dependencies?: string[] | undefined;
316
+ notes: string;
317
+ }[];
318
+ message: string;
319
+ userFeedback?: string | undefined;
320
+ }, {
321
+ approved: boolean;
322
+ tasks: {
323
+ id: string;
324
+ content: string;
325
+ status: "blocked" | "completed" | "in_progress" | "pending";
326
+ priority: "high" | "low" | "medium";
327
+ dependencies?: string[] | undefined;
328
+ notes: string;
329
+ }[];
330
+ message: string;
331
+ userFeedback?: string | undefined;
332
+ }, unknown>)[], "workflow-builder", unknown, {
333
+ workflowName?: string | undefined;
334
+ action: "create" | "edit";
335
+ description?: string | undefined;
336
+ requirements?: string | undefined;
337
+ projectPath?: string | undefined;
338
+ }, {
339
+ success: boolean;
340
+ action: "create" | "edit";
341
+ workflowName?: string | undefined;
342
+ workflowFile?: string | undefined;
343
+ discovery?: {
344
+ success: boolean;
345
+ workflows: {
346
+ name: string;
347
+ file: string;
348
+ description?: string | undefined;
349
+ inputSchema?: any;
350
+ outputSchema?: any;
351
+ steps?: string[] | undefined;
352
+ }[];
353
+ mastraIndexExists: boolean;
354
+ message: string;
355
+ error?: string | undefined;
356
+ } | undefined;
357
+ projectStructure?: {
358
+ success: boolean;
359
+ structure: {
360
+ hasWorkflowsDir: boolean;
361
+ hasAgentsDir: boolean;
362
+ hasToolsDir: boolean;
363
+ hasMastraIndex: boolean;
364
+ existingWorkflows: string[];
365
+ existingAgents: string[];
366
+ existingTools: string[];
367
+ };
368
+ dependencies: Record<string, string>;
369
+ message: string;
370
+ error?: string | undefined;
371
+ } | undefined;
372
+ research?: {
373
+ success: boolean;
374
+ documentation: {
375
+ workflowPatterns: string[];
376
+ stepExamples: string[];
377
+ bestPractices: string[];
378
+ };
379
+ webResources: {
380
+ title: string;
381
+ url: string;
382
+ snippet: string;
383
+ relevance: number;
384
+ }[];
385
+ message: string;
386
+ error?: string | undefined;
387
+ } | undefined;
388
+ planning?: {
389
+ success: boolean;
390
+ tasks: {
391
+ id: string;
392
+ content: string;
393
+ status: "blocked" | "completed" | "in_progress" | "pending";
394
+ priority: "high" | "low" | "medium";
395
+ dependencies?: string[] | undefined;
396
+ notes: string;
397
+ }[];
398
+ questions: {
399
+ id: string;
400
+ question: string;
401
+ type: "boolean" | "choice" | "text";
402
+ options?: string[] | undefined;
403
+ context?: string | undefined;
404
+ }[];
405
+ reasoning: string;
406
+ planComplete: boolean;
407
+ message: string;
408
+ error?: string | undefined;
409
+ allPreviousQuestions?: any[] | undefined;
410
+ allPreviousAnswers?: Record<string, string> | undefined;
411
+ } | undefined;
412
+ taskManagement?: {
413
+ success: boolean;
414
+ tasks: {
415
+ id: string;
416
+ content: string;
417
+ status: "blocked" | "completed" | "in_progress" | "pending";
418
+ priority: "high" | "low" | "medium";
419
+ dependencies?: string[] | undefined;
420
+ notes: string;
421
+ }[];
422
+ message: string;
423
+ error?: string | undefined;
424
+ } | undefined;
425
+ execution?: {
426
+ success: boolean;
427
+ filesModified: string[];
428
+ validationResults: {
429
+ passed: boolean;
430
+ errors: string[];
431
+ warnings: string[];
432
+ };
433
+ completedTasks: string[];
434
+ message: string;
435
+ error?: string | undefined;
436
+ } | undefined;
437
+ needsUserInput?: boolean | undefined;
438
+ questions?: {
439
+ id: string;
440
+ question: string;
441
+ type: "boolean" | "choice" | "text";
442
+ options?: string[] | undefined;
443
+ context?: string | undefined;
444
+ }[] | undefined;
445
+ message: string;
446
+ nextSteps?: string[] | undefined;
447
+ error?: string | undefined;
448
+ }, {
449
+ success: boolean;
450
+ action: "create" | "edit";
451
+ workflowName?: string | undefined;
452
+ workflowFile?: string | undefined;
453
+ discovery?: {
454
+ success: boolean;
455
+ workflows: {
456
+ name: string;
457
+ file: string;
458
+ description?: string | undefined;
459
+ inputSchema?: any;
460
+ outputSchema?: any;
461
+ steps?: string[] | undefined;
462
+ }[];
463
+ mastraIndexExists: boolean;
464
+ message: string;
465
+ error?: string | undefined;
466
+ } | undefined;
467
+ projectStructure?: {
468
+ success: boolean;
469
+ structure: {
470
+ hasWorkflowsDir: boolean;
471
+ hasAgentsDir: boolean;
472
+ hasToolsDir: boolean;
473
+ hasMastraIndex: boolean;
474
+ existingWorkflows: string[];
475
+ existingAgents: string[];
476
+ existingTools: string[];
477
+ };
478
+ dependencies: Record<string, string>;
479
+ message: string;
480
+ error?: string | undefined;
481
+ } | undefined;
482
+ research?: {
483
+ success: boolean;
484
+ documentation: {
485
+ workflowPatterns: string[];
486
+ stepExamples: string[];
487
+ bestPractices: string[];
488
+ };
489
+ webResources: {
490
+ title: string;
491
+ url: string;
492
+ snippet: string;
493
+ relevance: number;
494
+ }[];
495
+ message: string;
496
+ error?: string | undefined;
497
+ } | undefined;
498
+ planning?: {
499
+ success: boolean;
500
+ tasks: {
501
+ id: string;
502
+ content: string;
503
+ status: "blocked" | "completed" | "in_progress" | "pending";
504
+ priority: "high" | "low" | "medium";
505
+ dependencies?: string[] | undefined;
506
+ notes: string;
507
+ }[];
508
+ questions: {
509
+ id: string;
510
+ question: string;
511
+ type: "boolean" | "choice" | "text";
512
+ options?: string[] | undefined;
513
+ context?: string | undefined;
514
+ }[];
515
+ reasoning: string;
516
+ planComplete: boolean;
517
+ message: string;
518
+ error?: string | undefined;
519
+ allPreviousQuestions?: any[] | undefined;
520
+ allPreviousAnswers?: Record<string, string> | undefined;
521
+ } | undefined;
522
+ taskManagement?: {
523
+ success: boolean;
524
+ tasks: {
525
+ id: string;
526
+ content: string;
527
+ status: "blocked" | "completed" | "in_progress" | "pending";
528
+ priority: "high" | "low" | "medium";
529
+ dependencies?: string[] | undefined;
530
+ notes: string;
531
+ }[];
532
+ message: string;
533
+ error?: string | undefined;
534
+ } | undefined;
535
+ execution?: {
536
+ success: boolean;
537
+ filesModified: string[];
538
+ validationResults: {
539
+ passed: boolean;
540
+ errors: string[];
541
+ warnings: string[];
542
+ };
543
+ completedTasks: string[];
544
+ message: string;
545
+ error?: string | undefined;
546
+ } | undefined;
547
+ needsUserInput?: boolean | undefined;
548
+ questions?: {
549
+ id: string;
550
+ question: string;
551
+ type: "boolean" | "choice" | "text";
552
+ options?: string[] | undefined;
553
+ context?: string | undefined;
554
+ }[] | undefined;
555
+ message: string;
556
+ nextSteps?: string[] | undefined;
557
+ error?: string | undefined;
558
+ }, unknown>;
1
559
  export declare const workflowBuilderWorkflow: import("@mastra/core/workflows").Workflow<import("@mastra/core/workflows").DefaultEngineType, (import("@mastra/core/workflows").Step<"project-discovery", unknown, {
2
560
  success: boolean;
3
561
  workflows: {
@@ -1 +1 @@
1
- {"version":3,"file":"workflow-builder.d.ts","sourceRoot":"","sources":["../../../src/workflows/workflow-builder/workflow-builder.ts"],"names":[],"mappings":"AA0gBA,eAAO,MAAM,uBAAuB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;WAoEzB,CAAC"}
1
+ {"version":3,"file":"workflow-builder.d.ts","sourceRoot":"","sources":["../../../src/workflows/workflow-builder/workflow-builder.ts"],"names":[],"mappings":"AAygBA;;;GAGG;AACH,wBAAgB,6BAA6B;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;YA0E5C;AAED,eAAO,MAAM,uBAAuB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;WAAkC,CAAC"}
@@ -1,3 +1,22 @@
1
1
  import type { Workflow } from '@mastra/core/workflows';
2
+ /**
3
+ * Agent-builder workflows shared by everything that imports this module. Fine for a process with one Mastra
4
+ * instance; use `createAgentBuilderWorkflows` when a process runs several.
5
+ */
2
6
  export declare const agentBuilderWorkflows: Record<string, Workflow<any, any, any, any, any, any>>;
7
+ /**
8
+ * Builds a new set of agent-builder workflows on every call, with the same keys as `agentBuilderWorkflows`.
9
+ *
10
+ * Registering a workflow with a Mastra instance binds it to that instance's storage, logger and agents, and the
11
+ * workflow keeps every run it has not finished. A workflow object registered with a second instance moves to it,
12
+ * including runs that are still executing for the first one. Use this factory when one process runs several Mastra
13
+ * instances, such as one per tenant or one per test, so each instance gets its own workflows and can be garbage
14
+ * collected after `mastra.shutdown()`.
15
+ *
16
+ * @example
17
+ * ```ts
18
+ * const mastra = new Mastra({ workflows: createAgentBuilderWorkflows() });
19
+ * ```
20
+ */
21
+ export declare function createAgentBuilderWorkflows(): Record<string, Workflow<any, any, any, any, any, any>>;
3
22
  //# sourceMappingURL=workflow-map.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"workflow-map.d.ts","sourceRoot":"","sources":["../../src/workflows/workflow-map.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,wBAAwB,CAAC;AAIvD,eAAO,MAAM,qBAAqB,EAAE,MAAM,CAAC,MAAM,EAAE,QAAQ,CAAC,GAAG,EAAE,GAAG,EAAE,GAAG,EAAE,GAAG,EAAE,GAAG,EAAE,GAAG,CAAC,CAGxF,CAAC"}
1
+ {"version":3,"file":"workflow-map.d.ts","sourceRoot":"","sources":["../../src/workflows/workflow-map.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,wBAAwB,CAAC;AAIvD;;;GAGG;AACH,eAAO,MAAM,qBAAqB,EAAE,MAAM,CAAC,MAAM,EAAE,QAAQ,CAAC,GAAG,EAAE,GAAG,EAAE,GAAG,EAAE,GAAG,EAAE,GAAG,EAAE,GAAG,CAAC,CAGxF,CAAC;AAEF;;;;;;;;;;;;;GAaG;AACH,wBAAgB,2BAA2B,IAAI,MAAM,CAAC,MAAM,EAAE,QAAQ,CAAC,GAAG,EAAE,GAAG,EAAE,GAAG,EAAE,GAAG,EAAE,GAAG,EAAE,GAAG,CAAC,CAAC,CAKpG"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@mastra/agent-builder",
3
- "version": "1.1.33-alpha.1",
3
+ "version": "1.2.0-alpha.3",
4
4
  "license": "Apache-2.0",
5
5
  "type": "module",
6
6
  "main": "dist/index.js",
@@ -23,32 +23,32 @@
23
23
  ],
24
24
  "dependencies": {
25
25
  "@ai-sdk/anthropic": "^1.2.12",
26
- "@ai-sdk/anthropic-v5": "npm:@ai-sdk/anthropic@2.0.110",
26
+ "@ai-sdk/anthropic-v5": "npm:@ai-sdk/anthropic@2.0.111",
27
27
  "@ai-sdk/google": "^1.2.22",
28
- "@ai-sdk/google-v5": "npm:@ai-sdk/google@2.0.106",
28
+ "@ai-sdk/google-v5": "npm:@ai-sdk/google@2.0.107",
29
29
  "@ai-sdk/groq": "^1.2.9",
30
- "@ai-sdk/groq-v5": "npm:@ai-sdk/groq@2.0.59",
30
+ "@ai-sdk/groq-v5": "npm:@ai-sdk/groq@2.0.60",
31
31
  "@ai-sdk/openai": "^1.3.24",
32
- "@ai-sdk/openai-v5": "npm:@ai-sdk/openai@2.0.137",
32
+ "@ai-sdk/openai-v5": "npm:@ai-sdk/openai@2.0.139",
33
33
  "@ai-sdk/xai": "^1.2.18",
34
- "@ai-sdk/xai-v5": "npm:@ai-sdk/xai@2.0.100",
34
+ "@ai-sdk/xai-v5": "npm:@ai-sdk/xai@2.0.101",
35
35
  "ignore": "^7.0.14",
36
- "@mastra/memory": "1.41.0-alpha.1",
36
+ "@mastra/memory": "1.41.0-alpha.3",
37
37
  "@mastra/schema-compat": "1.3.17"
38
38
  },
39
39
  "devDependencies": {
40
40
  "@types/node": "22.19.15",
41
- "@vitest/coverage-v8": "4.1.12",
42
- "@vitest/ui": "4.1.12",
43
- "ai-v5": "npm:ai@5.0.282",
41
+ "@vitest/coverage-v8": "5.1.0",
42
+ "@vitest/ui": "5.1.0",
43
+ "ai-v5": "npm:ai@5.0.283",
44
44
  "tsdown": "0.23.1",
45
45
  "typescript": "^6.0.3",
46
- "vitest": "4.1.12",
46
+ "vitest": "5.1.0",
47
47
  "zod": "^4.6.7",
48
48
  "@internal/ai-sdk-v5": "0.0.94",
49
+ "@internal/lint": "0.0.147",
49
50
  "@internal/types-builder": "0.0.122",
50
- "@mastra/core": "1.82.0-alpha.1",
51
- "@internal/lint": "0.0.147"
51
+ "@mastra/core": "1.82.0-alpha.3"
52
52
  },
53
53
  "peerDependencies": {
54
54
  "@mastra/core": ">=1.80.0-0 <2.0.0-0",