@mastra/server 0.17.0-alpha.6 → 0.17.0-alpha.8
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 +14 -0
- package/dist/server/handlers/agent-builder.d.ts +4 -4
- package/dist/server/handlers/agent-builder.d.ts.map +1 -1
- package/dist/server/handlers/vNextNetwork.d.ts +67 -0
- package/dist/server/handlers/vNextNetwork.d.ts.map +1 -1
- package/dist/server/handlers/workflows.d.ts +4 -4
- package/dist/server/handlers/workflows.d.ts.map +1 -1
- package/package.json +4 -4
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,19 @@
|
|
|
1
1
|
# @mastra/server
|
|
2
2
|
|
|
3
|
+
## 0.17.0-alpha.8
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- Updated dependencies [[`05c7abf`](https://github.com/mastra-ai/mastra/commit/05c7abfe105a015b7760c9bf33ff4419727502a0), [`aee4f00`](https://github.com/mastra-ai/mastra/commit/aee4f00e61e1a42e81a6d74ff149dbe69e32695a)]:
|
|
8
|
+
- @mastra/core@0.17.0-alpha.8
|
|
9
|
+
|
|
10
|
+
## 0.17.0-alpha.7
|
|
11
|
+
|
|
12
|
+
### Patch Changes
|
|
13
|
+
|
|
14
|
+
- Updated dependencies [[`4f9ea8c`](https://github.com/mastra-ai/mastra/commit/4f9ea8c95ea74ba9abbf3b2ab6106c7d7bc45689)]:
|
|
15
|
+
- @mastra/core@0.17.0-alpha.7
|
|
16
|
+
|
|
3
17
|
## 0.17.0-alpha.6
|
|
4
18
|
|
|
5
19
|
### Minor Changes
|
|
@@ -30,7 +30,7 @@ export declare const createAgentBuilderActionRunHandler: (builderArgs: Pick<work
|
|
|
30
30
|
export declare const startAsyncAgentBuilderActionHandler: (builderArgs: Pick<workflows.WorkflowContext, "mastra" | "workflowId" | "runId"> & {
|
|
31
31
|
inputData?: unknown;
|
|
32
32
|
runtimeContext?: import("@mastra/core/runtime-context").RuntimeContext;
|
|
33
|
-
} & AgentBuilderContext) => Promise<import("@mastra/core").WorkflowResult<import("zod").ZodType<any, import("zod").ZodTypeDef, any>, import("@mastra/core").Step<string, any, any, any, any, any>[]>>;
|
|
33
|
+
} & AgentBuilderContext) => Promise<import("@mastra/core").WorkflowResult<import("zod").ZodType<any, import("zod").ZodTypeDef, any>, import("zod").ZodType<any, import("zod").ZodTypeDef, any>, import("@mastra/core").Step<string, any, any, any, any, any>[]>>;
|
|
34
34
|
export declare const startAgentBuilderActionRunHandler: (builderArgs: Pick<workflows.WorkflowContext, "mastra" | "workflowId" | "runId"> & {
|
|
35
35
|
inputData?: unknown;
|
|
36
36
|
runtimeContext?: import("@mastra/core/runtime-context").RuntimeContext;
|
|
@@ -45,19 +45,19 @@ export declare const streamAgentBuilderActionHandler: (builderArgs: Pick<workflo
|
|
|
45
45
|
runtimeContext?: import("@mastra/core/runtime-context").RuntimeContext;
|
|
46
46
|
} & AgentBuilderContext) => Promise<{
|
|
47
47
|
stream: import("stream/web").ReadableStream<import("@mastra/core").StreamEvent>;
|
|
48
|
-
getWorkflowState: () => Promise<import("@mastra/core").WorkflowResult<import("zod").ZodType<any, import("zod").ZodTypeDef, any>, import("@mastra/core").Step<string, any, any, any, any, any>[]>>;
|
|
48
|
+
getWorkflowState: () => Promise<import("@mastra/core").WorkflowResult<import("zod").ZodType<any, import("zod").ZodTypeDef, any>, import("zod").ZodType<any, import("zod").ZodTypeDef, any>, import("@mastra/core").Step<string, any, any, any, any, any>[]>>;
|
|
49
49
|
}>;
|
|
50
50
|
export declare const streamVNextAgentBuilderActionHandler: (builderArgs: Pick<workflows.WorkflowContext, "mastra" | "workflowId" | "runId"> & {
|
|
51
51
|
inputData?: unknown;
|
|
52
52
|
runtimeContext?: import("@mastra/core/runtime-context").RuntimeContext;
|
|
53
|
-
} & AgentBuilderContext) => Promise<import("@mastra/core").MastraWorkflowStream<import("zod").ZodType<any, import("zod").ZodTypeDef, any>, import("@mastra/core").Step<string, any, any, any, any, any>[]>>;
|
|
53
|
+
} & AgentBuilderContext) => Promise<import("@mastra/core").MastraWorkflowStream<import("zod").ZodType<any, import("zod").ZodTypeDef, any>, import("zod").ZodType<any, import("zod").ZodTypeDef, any>, import("@mastra/core").Step<string, any, any, any, any, any>[]>>;
|
|
54
54
|
export declare const resumeAsyncAgentBuilderActionHandler: (builderArgs: workflows.WorkflowContext & {
|
|
55
55
|
body: {
|
|
56
56
|
step: string | string[];
|
|
57
57
|
resumeData?: unknown;
|
|
58
58
|
};
|
|
59
59
|
runtimeContext?: import("@mastra/core/runtime-context").RuntimeContext;
|
|
60
|
-
} & AgentBuilderContext) => Promise<import("@mastra/core").WorkflowResult<import("zod").ZodType<any, import("zod").ZodTypeDef, any>, import("@mastra/core").Step<string, any, any, any, any, any>[]>>;
|
|
60
|
+
} & AgentBuilderContext) => Promise<import("@mastra/core").WorkflowResult<import("zod").ZodType<any, import("zod").ZodTypeDef, any>, import("zod").ZodType<any, import("zod").ZodTypeDef, any>, import("@mastra/core").Step<string, any, any, any, any, any>[]>>;
|
|
61
61
|
export declare const resumeAgentBuilderActionHandler: (builderArgs: workflows.WorkflowContext & {
|
|
62
62
|
body: {
|
|
63
63
|
step: string | string[];
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"agent-builder.d.ts","sourceRoot":"","sources":["../../../src/server/handlers/agent-builder.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,wBAAwB,CAAC;AAE3D,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,UAAU,CAAC;AAGxC,OAAO,KAAK,SAAS,MAAM,aAAa,CAAC;AAEzC,UAAU,mBAAoB,SAAQ,OAAO;IAC3C,QAAQ,CAAC,EAAE,MAAM,CAAC;CACnB;AAoDD,eAAO,MAAM,6BAA6B,6EAcP,CAAC;AAEpC,eAAO,MAAM,gCAAgC,yFAG5C,CAAC;AAEF,eAAO,MAAM,mCAAmC,wKAG/C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C;AAEF,eAAO,MAAM,kCAAkC;;EAG9C,CAAC;AAEF,eAAO,MAAM,qCAAqC;;;;;EAGjD,CAAC"}
|
|
@@ -75,6 +75,36 @@ export declare function streamGenerateVNextNetworkHandler({ mastra, networkId, b
|
|
|
75
75
|
}): Promise<{
|
|
76
76
|
stream: import("stream/web").ReadableStream<import("@mastra/core").StreamEvent>;
|
|
77
77
|
getWorkflowState: () => Promise<import("@mastra/core").WorkflowResult<import("zod").ZodObject<{
|
|
78
|
+
task: import("zod").ZodString;
|
|
79
|
+
resourceId: import("zod").ZodString;
|
|
80
|
+
resourceType: import("zod").ZodEnum<["agent", "workflow", "none", "tool"]>;
|
|
81
|
+
result: import("zod").ZodOptional<import("zod").ZodString>;
|
|
82
|
+
iteration: import("zod").ZodNumber;
|
|
83
|
+
threadId: import("zod").ZodOptional<import("zod").ZodString>;
|
|
84
|
+
threadResourceId: import("zod").ZodOptional<import("zod").ZodString>;
|
|
85
|
+
isOneOff: import("zod").ZodBoolean;
|
|
86
|
+
verboseIntrospection: import("zod").ZodBoolean;
|
|
87
|
+
}, "strip", import("zod").ZodTypeAny, {
|
|
88
|
+
resourceId: string;
|
|
89
|
+
iteration: number;
|
|
90
|
+
task: string;
|
|
91
|
+
resourceType: "none" | "tool" | "workflow" | "agent";
|
|
92
|
+
isOneOff: boolean;
|
|
93
|
+
verboseIntrospection: boolean;
|
|
94
|
+
threadId?: string | undefined;
|
|
95
|
+
result?: string | undefined;
|
|
96
|
+
threadResourceId?: string | undefined;
|
|
97
|
+
}, {
|
|
98
|
+
resourceId: string;
|
|
99
|
+
iteration: number;
|
|
100
|
+
task: string;
|
|
101
|
+
resourceType: "none" | "tool" | "workflow" | "agent";
|
|
102
|
+
isOneOff: boolean;
|
|
103
|
+
verboseIntrospection: boolean;
|
|
104
|
+
threadId?: string | undefined;
|
|
105
|
+
result?: string | undefined;
|
|
106
|
+
threadResourceId?: string | undefined;
|
|
107
|
+
}>, import("zod").ZodObject<{
|
|
78
108
|
task: import("zod").ZodString;
|
|
79
109
|
resourceId: import("zod").ZodString;
|
|
80
110
|
resourceType: import("zod").ZodEnum<["agent", "workflow", "none", "tool"]>;
|
|
@@ -132,6 +162,13 @@ export declare function loopVNextNetworkHandler({ mastra, networkId, body, runti
|
|
|
132
162
|
isComplete?: boolean | undefined;
|
|
133
163
|
completionReason?: string | undefined;
|
|
134
164
|
};
|
|
165
|
+
input: {
|
|
166
|
+
iteration: number;
|
|
167
|
+
task: string;
|
|
168
|
+
resourceType: "none" | "tool" | "workflow" | "agent";
|
|
169
|
+
threadId?: string | undefined;
|
|
170
|
+
threadResourceId?: string | undefined;
|
|
171
|
+
};
|
|
135
172
|
steps: {
|
|
136
173
|
[x: string]: import("@mastra/core").StepResult<unknown, unknown, unknown, unknown> | import("@mastra/core").StepResult<any, any, any, any>;
|
|
137
174
|
};
|
|
@@ -147,6 +184,36 @@ export declare function loopStreamVNextNetworkHandler({ mastra, networkId, body,
|
|
|
147
184
|
}): Promise<{
|
|
148
185
|
stream: import("stream/web").ReadableStream<import("@mastra/core").StreamEvent>;
|
|
149
186
|
getWorkflowState: () => Promise<import("@mastra/core").WorkflowResult<import("zod").ZodObject<{
|
|
187
|
+
iteration: import("zod").ZodNumber;
|
|
188
|
+
task: import("zod").ZodString;
|
|
189
|
+
resourceId: import("zod").ZodString;
|
|
190
|
+
resourceType: import("zod").ZodEnum<["agent", "workflow", "none", "tool"]>;
|
|
191
|
+
result: import("zod").ZodOptional<import("zod").ZodString>;
|
|
192
|
+
threadId: import("zod").ZodOptional<import("zod").ZodString>;
|
|
193
|
+
threadResourceId: import("zod").ZodOptional<import("zod").ZodString>;
|
|
194
|
+
isOneOff: import("zod").ZodBoolean;
|
|
195
|
+
verboseIntrospection: import("zod").ZodBoolean;
|
|
196
|
+
}, "strip", import("zod").ZodTypeAny, {
|
|
197
|
+
resourceId: string;
|
|
198
|
+
iteration: number;
|
|
199
|
+
task: string;
|
|
200
|
+
resourceType: "none" | "tool" | "workflow" | "agent";
|
|
201
|
+
isOneOff: boolean;
|
|
202
|
+
verboseIntrospection: boolean;
|
|
203
|
+
threadId?: string | undefined;
|
|
204
|
+
result?: string | undefined;
|
|
205
|
+
threadResourceId?: string | undefined;
|
|
206
|
+
}, {
|
|
207
|
+
resourceId: string;
|
|
208
|
+
iteration: number;
|
|
209
|
+
task: string;
|
|
210
|
+
resourceType: "none" | "tool" | "workflow" | "agent";
|
|
211
|
+
isOneOff: boolean;
|
|
212
|
+
verboseIntrospection: boolean;
|
|
213
|
+
threadId?: string | undefined;
|
|
214
|
+
result?: string | undefined;
|
|
215
|
+
threadResourceId?: string | undefined;
|
|
216
|
+
}>, import("zod").ZodObject<{
|
|
150
217
|
task: import("zod").ZodString;
|
|
151
218
|
resourceId: import("zod").ZodString;
|
|
152
219
|
resourceType: import("zod").ZodEnum<["agent", "workflow", "none", "tool"]>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"vNextNetwork.d.ts","sourceRoot":"","sources":["../../../src/server/handlers/vNextNetwork.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,8BAA8B,CAAC;AAInE,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,UAAU,CAAC;AAIxC,UAAU,cAAe,SAAQ,OAAO;IACtC,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,cAAc,EAAE,cAAc,CAAC;CAChC;AAED,wBAAsB,uBAAuB,CAAC,EAC5C,MAAM,EACN,cAAc,GACf,EAAE,IAAI,CAAC,cAAc,EAAE,QAAQ,GAAG,gBAAgB,CAAC;;;;;;;;;;;;;;;;;;;;;;;KAwDnD;AAED,wBAAsB,0BAA0B,CAAC,EAC/C,MAAM,EACN,SAAS,EACT,cAAc,GACf,EAAE,IAAI,CAAC,cAAc,EAAE,QAAQ,GAAG,WAAW,GAAG,gBAAgB,CAAC;;;;;;;;;;;;;;;;;;;;;;;GAwDjE;AAED,wBAAsB,2BAA2B,CAAC,EAChD,MAAM,E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,EAAE,MAAM,CAAC;QAAC,UAAU,CAAC,EAAE,MAAM,CAAC;QAAC,aAAa,CAAC,EAAE,MAAM,CAAA;KAAE,CAAC;CAC3F;;;;;;;;;;;;;;;;;;;gBA7FI,CAAC;cAGC,CAAC;wBAEN,CAAC;;;;;;;;gBAWC,CAAC;cAAyC,CAAA;wBACF,CAAC;;;;;;;;;;;;;;;;;kBA2B7B,CAAC;wBACN,CAAC;;;;;;;;kBAgBT,CAAC;wBAEF,CAAF;;GAoDC"}
|
|
@@ -17,7 +17,7 @@ export declare function createWorkflowRunHandler({ mastra, workflowId, runId: pr
|
|
|
17
17
|
export declare function startAsyncWorkflowHandler({ mastra, runtimeContext, workflowId, runId, inputData, }: Pick<WorkflowContext, 'mastra' | 'workflowId' | 'runId'> & {
|
|
18
18
|
inputData?: unknown;
|
|
19
19
|
runtimeContext?: RuntimeContext;
|
|
20
|
-
}): Promise<import("@mastra/core").WorkflowResult<import("zod").ZodType<any, import("zod").ZodTypeDef, any>, import("@mastra/core").Step<string, any, any, any, any, any>[]>>;
|
|
20
|
+
}): Promise<import("@mastra/core").WorkflowResult<import("zod").ZodType<any, import("zod").ZodTypeDef, any>, import("zod").ZodType<any, import("zod").ZodTypeDef, any>, import("@mastra/core").Step<string, any, any, any, any, any>[]>>;
|
|
21
21
|
export declare function startWorkflowRunHandler({ mastra, runtimeContext, workflowId, runId, inputData, }: Pick<WorkflowContext, 'mastra' | 'workflowId' | 'runId'> & {
|
|
22
22
|
inputData?: unknown;
|
|
23
23
|
runtimeContext?: RuntimeContext;
|
|
@@ -32,20 +32,20 @@ export declare function streamWorkflowHandler({ mastra, runtimeContext, workflow
|
|
|
32
32
|
runtimeContext?: RuntimeContext;
|
|
33
33
|
}): Promise<{
|
|
34
34
|
stream: ReadableStream<StreamEvent>;
|
|
35
|
-
getWorkflowState: () => Promise<import("@mastra/core").WorkflowResult<import("zod").ZodType<any, import("zod").ZodTypeDef, any>, import("@mastra/core").Step<string, any, any, any, any, any>[]>>;
|
|
35
|
+
getWorkflowState: () => Promise<import("@mastra/core").WorkflowResult<import("zod").ZodType<any, import("zod").ZodTypeDef, any>, import("zod").ZodType<any, import("zod").ZodTypeDef, any>, import("@mastra/core").Step<string, any, any, any, any, any>[]>>;
|
|
36
36
|
}>;
|
|
37
37
|
export declare function observeStreamWorkflowHandler({ mastra, workflowId, runId, }: Pick<WorkflowContext, 'mastra' | 'workflowId' | 'runId'>): Promise<ReadableStream<StreamEvent>>;
|
|
38
38
|
export declare function streamVNextWorkflowHandler({ mastra, runtimeContext, workflowId, runId, inputData, }: Pick<WorkflowContext, 'mastra' | 'workflowId' | 'runId'> & {
|
|
39
39
|
inputData?: unknown;
|
|
40
40
|
runtimeContext?: RuntimeContext;
|
|
41
|
-
}): Promise<import("@mastra/core").MastraWorkflowStream<import("zod").ZodType<any, import("zod").ZodTypeDef, any>, import("@mastra/core").Step<string, any, any, any, any, any>[]>>;
|
|
41
|
+
}): Promise<import("@mastra/core").MastraWorkflowStream<import("zod").ZodType<any, import("zod").ZodTypeDef, any>, import("zod").ZodType<any, import("zod").ZodTypeDef, any>, import("@mastra/core").Step<string, any, any, any, any, any>[]>>;
|
|
42
42
|
export declare function resumeAsyncWorkflowHandler({ mastra, workflowId, runId, body, runtimeContext, }: WorkflowContext & {
|
|
43
43
|
body: {
|
|
44
44
|
step: string | string[];
|
|
45
45
|
resumeData?: unknown;
|
|
46
46
|
};
|
|
47
47
|
runtimeContext?: RuntimeContext;
|
|
48
|
-
}): Promise<import("@mastra/core").WorkflowResult<import("zod").ZodType<any, import("zod").ZodTypeDef, any>, import("@mastra/core").Step<string, any, any, any, any, any>[]>>;
|
|
48
|
+
}): Promise<import("@mastra/core").WorkflowResult<import("zod").ZodType<any, import("zod").ZodTypeDef, any>, import("zod").ZodType<any, import("zod").ZodTypeDef, any>, import("@mastra/core").Step<string, any, any, any, any, any>[]>>;
|
|
49
49
|
export declare function resumeWorkflowHandler({ mastra, workflowId, runId, body, runtimeContext, }: WorkflowContext & {
|
|
50
50
|
body: {
|
|
51
51
|
step: string | string[];
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"workflows.d.ts","sourceRoot":"","sources":["../../../src/server/handlers/workflows.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAmB,MAAM,iBAAiB,CAAC;AAClE,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,iBAAiB,CAAC;AACtD,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,sBAAsB,CAAC;AACzD,OAAO,KAAK,EAAE,QAAQ,EAAE,UAAU,EAAE,YAAY,EAAE,WAAW,EAAE,MAAM,wBAAwB,CAAC;AAE9F,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,UAAU,CAAC;AAIxC,MAAM,WAAW,eAAgB,SAAQ,OAAO;IAC9C,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,KAAK,CAAC,EAAE,MAAM,CAAC;CAChB;AAED,wBAAsB,mBAAmB,CAAC,EAAE,MAAM,EAAE,EAAE,eAAe,yCAWpE;AAkDD,wBAAsB,sBAAsB,CAAC,EAAE,MAAM,EAAE,UAAU,EAAE,EAAE,eAAe,GAAG,OAAO,CAAC,YAAY,CAAC,CAgB3G;AAED,wBAAsB,yBAAyB,CAAC,EAC9C,MAAM,EACN,UAAU,EACV,KAAK,GACN,EAAE,IAAI,CAAC,eAAe,EAAE,QAAQ,GAAG,YAAY,GAAG,OAAO,CAAC,GAAG,OAAO,CAAC,UAAU,CAAC,QAAQ,CAAC,oBAAoB,CAAC,CAAC,CAAC,CA0BhH;AAED,wBAAsB,oCAAoC,CAAC,EACzD,MAAM,EACN,UAAU,EACV,KAAK,GACN,EAAE,IAAI,CAAC,eAAe,EAAE,QAAQ,GAAG,YAAY,GAAG,OAAO,CAAC,GAAG,OAAO,CAAC,UAAU,CAAC,SAAS,CAAC,CAAC,eAAe,CAAC,CAAC,CA0B5G;AAED,wBAAsB,wBAAwB,CAAC,EAC7C,MAAM,EACN,UAA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AAE,eAAe,GAAG;IACnB,QAAQ,CAAC,EAAE,IAAI,CAAC;IAChB,MAAM,CAAC,EAAE,IAAI,CAAC;IACd,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,UAAU,CAAC,EAAE,MAAM,CAAC;CACrB,GAAG,OAAO,CAAC,YAAY,CAAC,CAoBxB;AAED,wBAAsB,wBAAwB,CAAC,EAC7C,MAAM,EACN,UAAU,EACV,KAAK,GACN,EAAE,IAAI,CAAC,eAAe,EAAE,QAAQ,GAAG,YAAY,GAAG,OAAO,CAAC;;GA8B1D;AAED,wBAAsB,2BAA2B,CAAC,EAChD,MAAM,EACN,UAAU,EACV,KAAK,EACL,KAAK,EACL,IAAI,GACL,EAAE,IAAI,CAAC,eAAe,EAAE,QAAQ,GAAG,YAAY,GAAG,OAAO,CAAC,GAAG;IAC5D,KAAK,EAAE,MAAM,CAAC;IACd,IAAI,EAAE,OAAO,CAAC;CACf;;GA8BA"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@mastra/server",
|
|
3
|
-
"version": "0.17.0-alpha.
|
|
3
|
+
"version": "0.17.0-alpha.8",
|
|
4
4
|
"description": "",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"files": [
|
|
@@ -80,9 +80,9 @@
|
|
|
80
80
|
"zod": "^3.25.76",
|
|
81
81
|
"@internal/lint": "0.0.39",
|
|
82
82
|
"@internal/storage-test-utils": "0.0.35",
|
|
83
|
-
"@mastra/core": "0.17.0-alpha.
|
|
84
|
-
"@
|
|
85
|
-
"@
|
|
83
|
+
"@mastra/core": "0.17.0-alpha.8",
|
|
84
|
+
"@internal/types-builder": "0.0.14",
|
|
85
|
+
"@mastra/agent-builder": "0.0.5-alpha.2"
|
|
86
86
|
},
|
|
87
87
|
"homepage": "https://mastra.ai",
|
|
88
88
|
"repository": {
|