@mastra/agent-builder 1.0.0-beta.0 → 1.0.0-beta.2
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 +16 -0
- package/dist/agent/index.d.ts.map +1 -1
- package/dist/defaults.d.ts +15 -15
- package/dist/index.js +3 -0
- package/dist/index.js.map +1 -1
- package/dist/workflows/task-planning/task-planning.d.ts.map +1 -1
- package/dist/workflows/workflow-builder/tools.d.ts +1 -1
- package/dist/workflows/workflow-builder/workflow-builder.d.ts.map +1 -1
- package/package.json +8 -6
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,21 @@
|
|
|
1
1
|
# @mastra/agent-builder
|
|
2
2
|
|
|
3
|
+
## 1.0.0-beta.2
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- Updated dependencies [[`21a15de`](https://github.com/mastra-ai/mastra/commit/21a15de369fe82aac26bb642ed7be73505475e8b), [`feb7ee4`](https://github.com/mastra-ai/mastra/commit/feb7ee4d09a75edb46c6669a3beaceec78811747), [`b0e2ea5`](https://github.com/mastra-ai/mastra/commit/b0e2ea5b52c40fae438b9e2f7baee6f0f89c5442), [`c456e01`](https://github.com/mastra-ai/mastra/commit/c456e0149e3c176afcefdbd9bb1d2c5917723725), [`ab035c2`](https://github.com/mastra-ai/mastra/commit/ab035c2ef6d8cc7bb25f06f1a38508bd9e6f126b), [`1a46a56`](https://github.com/mastra-ai/mastra/commit/1a46a566f45a3fcbadc1cf36bf86d351f264bfa3), [`3cf540b`](https://github.com/mastra-ai/mastra/commit/3cf540b9fbfea8f4fc8d3a2319a4e6c0b0cbfd52), [`1c6ce51`](https://github.com/mastra-ai/mastra/commit/1c6ce51f875915ab57fd36873623013699a2a65d), [`898a972`](https://github.com/mastra-ai/mastra/commit/898a9727d286c2510d6b702dfd367e6aaf5c6b0f), [`a97003a`](https://github.com/mastra-ai/mastra/commit/a97003aa1cf2f4022a41912324a1e77263b326b8), [`ccc141e`](https://github.com/mastra-ai/mastra/commit/ccc141ed27da0abc3a3fc28e9e5128152e8e37f4), [`fe3b897`](https://github.com/mastra-ai/mastra/commit/fe3b897c2ccbcd2b10e81b099438c7337feddf89), [`00123ba`](https://github.com/mastra-ai/mastra/commit/00123ba96dc9e5cd0b110420ebdba56d8f237b25), [`29c4309`](https://github.com/mastra-ai/mastra/commit/29c4309f818b24304c041bcb4a8f19b5f13f6b62), [`16785ce`](https://github.com/mastra-ai/mastra/commit/16785ced928f6f22638f4488cf8a125d99211799), [`de8239b`](https://github.com/mastra-ai/mastra/commit/de8239bdcb1d8c0cfa06da21f1569912a66bbc8a), [`b5e6cd7`](https://github.com/mastra-ai/mastra/commit/b5e6cd77fc8c8e64e0494c1d06cee3d84e795d1e), [`3759cb0`](https://github.com/mastra-ai/mastra/commit/3759cb064935b5f74c65ac2f52a1145f7352899d), [`651e772`](https://github.com/mastra-ai/mastra/commit/651e772eb1475fb13e126d3fcc01751297a88214), [`b61b93f`](https://github.com/mastra-ai/mastra/commit/b61b93f9e058b11dd2eec169853175d31dbdd567), [`bae33d9`](https://github.com/mastra-ai/mastra/commit/bae33d91a63fbb64d1e80519e1fc1acaed1e9013), [`c0b731f`](https://github.com/mastra-ai/mastra/commit/c0b731fb27d712dc8582e846df5c0332a6a0c5ba), [`43ca8f2`](https://github.com/mastra-ai/mastra/commit/43ca8f2c7334851cc7b4d3d2f037d8784bfbdd5f), [`2ca67cc`](https://github.com/mastra-ai/mastra/commit/2ca67cc3bb1f6a617353fdcab197d9efebe60d6f), [`9e67002`](https://github.com/mastra-ai/mastra/commit/9e67002b52c9be19936c420a489dbee9c5fd6a78), [`35edc49`](https://github.com/mastra-ai/mastra/commit/35edc49ac0556db609189641d6341e76771b81fc)]:
|
|
8
|
+
- @mastra/core@1.0.0-beta.5
|
|
9
|
+
- @mastra/memory@1.0.0-beta.2
|
|
10
|
+
|
|
11
|
+
## 1.0.0-beta.1
|
|
12
|
+
|
|
13
|
+
### Patch Changes
|
|
14
|
+
|
|
15
|
+
- Updated dependencies [[`2319326`](https://github.com/mastra-ai/mastra/commit/2319326f8c64e503a09bbcf14be2dd65405445e0), [`d629361`](https://github.com/mastra-ai/mastra/commit/d629361a60f6565b5bfb11976fdaf7308af858e2), [`08c31c1`](https://github.com/mastra-ai/mastra/commit/08c31c188ebccd598acaf55e888b6397d01f7eae), [`fd3d338`](https://github.com/mastra-ai/mastra/commit/fd3d338a2c362174ed5b383f1f011ad9fb0302aa), [`c30400a`](https://github.com/mastra-ai/mastra/commit/c30400a49b994b1b97256fe785eb6c906fc2b232), [`69e0a87`](https://github.com/mastra-ai/mastra/commit/69e0a878896a2da9494945d86e056a5f8f05b851), [`01f8878`](https://github.com/mastra-ai/mastra/commit/01f88783de25e4de048c1c8aace43e26373c6ea5), [`4c77209`](https://github.com/mastra-ai/mastra/commit/4c77209e6c11678808b365d545845918c40045c8), [`d827d08`](https://github.com/mastra-ai/mastra/commit/d827d0808ffe1f3553a84e975806cc989b9735dd), [`23c10a1`](https://github.com/mastra-ai/mastra/commit/23c10a1efdd9a693c405511ab2dc8a1236603162), [`676ccc7`](https://github.com/mastra-ai/mastra/commit/676ccc7fe92468d2d45d39c31a87825c89fd1ea0), [`c10398d`](https://github.com/mastra-ai/mastra/commit/c10398d5b88f1d4af556f4267ff06f1d11e89179), [`00c2387`](https://github.com/mastra-ai/mastra/commit/00c2387f5f04a365316f851e58666ac43f8c4edf), [`ad6250d`](https://github.com/mastra-ai/mastra/commit/ad6250dbdaad927e29f74a27b83f6c468b50a705), [`3a73998`](https://github.com/mastra-ai/mastra/commit/3a73998fa4ebeb7f3dc9301afe78095fc63e7999), [`e16d553`](https://github.com/mastra-ai/mastra/commit/e16d55338403c7553531cc568125c63d53653dff), [`4d59f58`](https://github.com/mastra-ai/mastra/commit/4d59f58de2d90d6e2810a19d4518e38ddddb9038), [`e1bb9c9`](https://github.com/mastra-ai/mastra/commit/e1bb9c94b4eb68b019ae275981be3feb769b5365), [`351a11f`](https://github.com/mastra-ai/mastra/commit/351a11fcaf2ed1008977fa9b9a489fc422e51cd4)]:
|
|
16
|
+
- @mastra/core@1.0.0-beta.3
|
|
17
|
+
- @mastra/memory@1.0.0-beta.1
|
|
18
|
+
|
|
3
19
|
## 1.0.0-beta.0
|
|
4
20
|
|
|
5
21
|
### Major Changes
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/agent/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,EAAE,MAAM,oBAAoB,CAAC;AAC3C,OAAO,KAAK,EAIV,qBAAqB,EACtB,MAAM,oBAAoB,CAAC;AAC5B,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,iCAAiC,CAAC;AAExE,OAAO,KAAK,EAAE,iBAAiB,EAAE,YAAY,EAAE,MAAM,qBAAqB,CAAC;AAK3E,OAAO,KAAK,EAAE,kBAAkB,EAAwB,MAAM,UAAU,CAAC;AA+BzE,qBAAa,YAAa,SAAQ,KAAK;IACrC,OAAO,CAAC,aAAa,CAAqB;IAE1C;;OAEG;gBACS,MAAM,EAAE,kBAAkB;
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/agent/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,EAAE,MAAM,oBAAoB,CAAC;AAC3C,OAAO,KAAK,EAIV,qBAAqB,EACtB,MAAM,oBAAoB,CAAC;AAC5B,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,iCAAiC,CAAC;AAExE,OAAO,KAAK,EAAE,iBAAiB,EAAE,YAAY,EAAE,MAAM,qBAAqB,CAAC;AAK3E,OAAO,KAAK,EAAE,kBAAkB,EAAwB,MAAM,UAAU,CAAC;AA+BzE,qBAAa,YAAa,SAAQ,KAAK;IACrC,OAAO,CAAC,aAAa,CAAqB;IAE1C;;OAEG;gBACS,MAAM,EAAE,kBAAkB;IAiCtC;;;OAGG;IACH,cAAc,EAAE,KAAK,CAAC,gBAAgB,CAAC,CA6BrC;IAEF;;;OAGG;IACH,YAAY,EAAE,KAAK,CAAC,cAAc,CAAC,CA4BjC;IAEF;;;OAGG;IACG,MAAM,CAAC,MAAM,SAAS,YAAY,GAAG,SAAS,EAClD,QAAQ,EAAE,gBAAgB,EAC1B,aAAa,CAAC,EAAE,qBAAqB,CAAC,MAAM,CAAC,GAC5C,OAAO,CAAC,iBAAiB,CAAC,MAAM,CAAC,CAAC;IA2B/B,QAAQ,CAAC,MAAM,SAAS,YAAY,GAAG,SAAS,EACpD,QAAQ,EAAE,gBAAgB,EAC1B,OAAO,CAAC,EAAE,qBAAqB,CAAC,MAAM,CAAC,GACtC,OAAO,CAAC,OAAO,CAAC,UAAU,CAAC,iBAAiB,CAAC,MAAM,CAAC,CAAC,eAAe,CAAC,CAAC,CAAC,CAAC;CA0B5E"}
|
package/dist/defaults.d.ts
CHANGED
|
@@ -70,7 +70,7 @@ export declare class AgentBuilderDefaults {
|
|
|
70
70
|
totalLines: number;
|
|
71
71
|
lastModified: string;
|
|
72
72
|
} | undefined;
|
|
73
|
-
}>, any, any, import("@mastra/core/tools").ToolExecutionContext<any, any
|
|
73
|
+
}>, any, any, import("@mastra/core/tools").ToolExecutionContext<any, any>, "read-file"> & {
|
|
74
74
|
inputSchema: z.ZodObject<{
|
|
75
75
|
filePath: z.ZodString;
|
|
76
76
|
startLine: z.ZodOptional<z.ZodNumber>;
|
|
@@ -182,7 +182,7 @@ export declare class AgentBuilderDefaults {
|
|
|
182
182
|
filePath: string;
|
|
183
183
|
error?: string | undefined;
|
|
184
184
|
bytesWritten?: number | undefined;
|
|
185
|
-
}>, any, any, import("@mastra/core/tools").ToolExecutionContext<any, any
|
|
185
|
+
}>, any, any, import("@mastra/core/tools").ToolExecutionContext<any, any>, "write-file"> & {
|
|
186
186
|
inputSchema: z.ZodObject<{
|
|
187
187
|
filePath: z.ZodString;
|
|
188
188
|
content: z.ZodString;
|
|
@@ -308,7 +308,7 @@ export declare class AgentBuilderDefaults {
|
|
|
308
308
|
}[];
|
|
309
309
|
totalItems: number;
|
|
310
310
|
error?: string | undefined;
|
|
311
|
-
}>, any, any, import("@mastra/core/tools").ToolExecutionContext<any, any
|
|
311
|
+
}>, any, any, import("@mastra/core/tools").ToolExecutionContext<any, any>, "list-directory"> & {
|
|
312
312
|
inputSchema: z.ZodObject<{
|
|
313
313
|
path: z.ZodString;
|
|
314
314
|
recursive: z.ZodDefault<z.ZodBoolean>;
|
|
@@ -459,7 +459,7 @@ export declare class AgentBuilderDefaults {
|
|
|
459
459
|
workingDirectory?: string | undefined;
|
|
460
460
|
exitCode?: number | undefined;
|
|
461
461
|
executionTime?: number | undefined;
|
|
462
|
-
}>, any, any, import("@mastra/core/tools").ToolExecutionContext<any, any
|
|
462
|
+
}>, any, any, import("@mastra/core/tools").ToolExecutionContext<any, any>, "execute-command"> & {
|
|
463
463
|
inputSchema: z.ZodObject<{
|
|
464
464
|
command: z.ZodString;
|
|
465
465
|
workingDirectory: z.ZodOptional<z.ZodString>;
|
|
@@ -632,7 +632,7 @@ export declare class AgentBuilderDefaults {
|
|
|
632
632
|
dependencies?: string[] | undefined;
|
|
633
633
|
notes?: string | undefined;
|
|
634
634
|
}[];
|
|
635
|
-
}>, any, any, import("@mastra/core/tools").ToolExecutionContext<any, any
|
|
635
|
+
}>, any, any, import("@mastra/core/tools").ToolExecutionContext<any, any>, "task-manager"> & {
|
|
636
636
|
inputSchema: z.ZodObject<{
|
|
637
637
|
action: z.ZodEnum<["create", "update", "list", "complete", "remove"]>;
|
|
638
638
|
tasks: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
@@ -854,7 +854,7 @@ export declare class AgentBuilderDefaults {
|
|
|
854
854
|
editsApplied: number;
|
|
855
855
|
backup?: string | undefined;
|
|
856
856
|
}[];
|
|
857
|
-
}>, any, any, import("@mastra/core/tools").ToolExecutionContext<any, any
|
|
857
|
+
}>, any, any, import("@mastra/core/tools").ToolExecutionContext<any, any>, "multi-edit"> & {
|
|
858
858
|
inputSchema: z.ZodObject<{
|
|
859
859
|
operations: z.ZodArray<z.ZodObject<{
|
|
860
860
|
filePath: z.ZodString;
|
|
@@ -1003,7 +1003,7 @@ export declare class AgentBuilderDefaults {
|
|
|
1003
1003
|
error?: string | undefined;
|
|
1004
1004
|
backup?: string | undefined;
|
|
1005
1005
|
linesReplaced?: number | undefined;
|
|
1006
|
-
}>, any, any, import("@mastra/core/tools").ToolExecutionContext<any, any
|
|
1006
|
+
}>, any, any, import("@mastra/core/tools").ToolExecutionContext<any, any>, "replace-lines"> & {
|
|
1007
1007
|
inputSchema: z.ZodObject<{
|
|
1008
1008
|
filePath: z.ZodString;
|
|
1009
1009
|
startLine: z.ZodNumber;
|
|
@@ -1109,7 +1109,7 @@ export declare class AgentBuilderDefaults {
|
|
|
1109
1109
|
}[];
|
|
1110
1110
|
totalLines: number;
|
|
1111
1111
|
error?: string | undefined;
|
|
1112
|
-
}>, any, any, import("@mastra/core/tools").ToolExecutionContext<any, any
|
|
1112
|
+
}>, any, any, import("@mastra/core/tools").ToolExecutionContext<any, any>, "show-file-lines"> & {
|
|
1113
1113
|
inputSchema: z.ZodObject<{
|
|
1114
1114
|
filePath: z.ZodString;
|
|
1115
1115
|
startLine: z.ZodOptional<z.ZodNumber>;
|
|
@@ -1330,7 +1330,7 @@ export declare class AgentBuilderDefaults {
|
|
|
1330
1330
|
filesSearched: number;
|
|
1331
1331
|
patterns: string[];
|
|
1332
1332
|
};
|
|
1333
|
-
}>, any, any, import("@mastra/core/tools").ToolExecutionContext<any, any
|
|
1333
|
+
}>, any, any, import("@mastra/core/tools").ToolExecutionContext<any, any>, "smart-search"> & {
|
|
1334
1334
|
inputSchema: z.ZodObject<{
|
|
1335
1335
|
query: z.ZodString;
|
|
1336
1336
|
type: z.ZodDefault<z.ZodEnum<["text", "regex", "fuzzy", "semantic"]>>;
|
|
@@ -1604,7 +1604,7 @@ export declare class AgentBuilderDefaults {
|
|
|
1604
1604
|
validationsPassed: string[];
|
|
1605
1605
|
validationsFailed: string[];
|
|
1606
1606
|
};
|
|
1607
|
-
}>, any, any, import("@mastra/core/tools").ToolExecutionContext<any, any
|
|
1607
|
+
}>, any, any, import("@mastra/core/tools").ToolExecutionContext<any, any>, "validate-code"> & {
|
|
1608
1608
|
inputSchema: z.ZodObject<{
|
|
1609
1609
|
projectPath: z.ZodOptional<z.ZodString>;
|
|
1610
1610
|
validationType: z.ZodArray<z.ZodEnum<["types", "lint", "schemas", "tests", "build"]>, "many">;
|
|
@@ -1799,7 +1799,7 @@ export declare class AgentBuilderDefaults {
|
|
|
1799
1799
|
searchTime: number;
|
|
1800
1800
|
error?: string | undefined;
|
|
1801
1801
|
suggestions?: string[] | undefined;
|
|
1802
|
-
}>, any, any, import("@mastra/core/tools").ToolExecutionContext<any, any
|
|
1802
|
+
}>, any, any, import("@mastra/core/tools").ToolExecutionContext<any, any>, "web-search"> & {
|
|
1803
1803
|
inputSchema: z.ZodObject<{
|
|
1804
1804
|
query: z.ZodString;
|
|
1805
1805
|
maxResults: z.ZodDefault<z.ZodNumber>;
|
|
@@ -1976,7 +1976,7 @@ export declare class AgentBuilderDefaults {
|
|
|
1976
1976
|
summary: string;
|
|
1977
1977
|
completionId: string;
|
|
1978
1978
|
confidence: number;
|
|
1979
|
-
}>, any, any, import("@mastra/core/tools").ToolExecutionContext<any, any
|
|
1979
|
+
}>, any, any, import("@mastra/core/tools").ToolExecutionContext<any, any>, "attempt-completion"> & {
|
|
1980
1980
|
inputSchema: z.ZodObject<{
|
|
1981
1981
|
summary: z.ZodString;
|
|
1982
1982
|
changes: z.ZodArray<z.ZodObject<{
|
|
@@ -2120,7 +2120,7 @@ export declare class AgentBuilderDefaults {
|
|
|
2120
2120
|
upgraded?: string[] | undefined;
|
|
2121
2121
|
warnings?: string[] | undefined;
|
|
2122
2122
|
details?: string | undefined;
|
|
2123
|
-
}>, any, any, import("@mastra/core/tools").ToolExecutionContext<any, any
|
|
2123
|
+
}>, any, any, import("@mastra/core/tools").ToolExecutionContext<any, any>, "manage-project"> & {
|
|
2124
2124
|
inputSchema: z.ZodObject<{
|
|
2125
2125
|
action: z.ZodEnum<["create", "install", "upgrade"]>;
|
|
2126
2126
|
features: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
@@ -2227,7 +2227,7 @@ export declare class AgentBuilderDefaults {
|
|
|
2227
2227
|
url?: string | undefined;
|
|
2228
2228
|
port?: number | undefined;
|
|
2229
2229
|
pid?: number | undefined;
|
|
2230
|
-
}>, any, any, import("@mastra/core/tools").ToolExecutionContext<any, any
|
|
2230
|
+
}>, any, any, import("@mastra/core/tools").ToolExecutionContext<any, any>, "manage-server"> & {
|
|
2231
2231
|
inputSchema: z.ZodObject<{
|
|
2232
2232
|
action: z.ZodEnum<["start", "stop", "restart", "status"]>;
|
|
2233
2233
|
port: z.ZodDefault<z.ZodOptional<z.ZodNumber>>;
|
|
@@ -2328,7 +2328,7 @@ export declare class AgentBuilderDefaults {
|
|
|
2328
2328
|
data?: any;
|
|
2329
2329
|
headers?: Record<string, string> | undefined;
|
|
2330
2330
|
statusText?: string | undefined;
|
|
2331
|
-
}>, any, any, import("@mastra/core/tools").ToolExecutionContext<any, any
|
|
2331
|
+
}>, any, any, import("@mastra/core/tools").ToolExecutionContext<any, any>, "http-request"> & {
|
|
2332
2332
|
inputSchema: z.ZodObject<{
|
|
2333
2333
|
method: z.ZodEnum<["GET", "POST", "PUT", "DELETE", "PATCH"]>;
|
|
2334
2334
|
url: z.ZodString;
|
package/dist/index.js
CHANGED
|
@@ -3189,6 +3189,7 @@ var AgentBuilder = class extends Agent {
|
|
|
3189
3189
|
${config.instructions}` : "";
|
|
3190
3190
|
const combinedInstructions = additionalInstructions + AgentBuilderDefaults.DEFAULT_INSTRUCTIONS(config.projectPath);
|
|
3191
3191
|
const agentConfig = {
|
|
3192
|
+
id: "agent-builder",
|
|
3192
3193
|
name: "agent-builder",
|
|
3193
3194
|
description: "An AI agent specialized in generating Mastra agents, tools, and workflows from natural language requirements.",
|
|
3194
3195
|
instructions: combinedInstructions,
|
|
@@ -5072,6 +5073,7 @@ var planningIterationStep = createStep({
|
|
|
5072
5073
|
try {
|
|
5073
5074
|
const model = await resolveModel({ requestContext });
|
|
5074
5075
|
const planningAgent = new Agent({
|
|
5076
|
+
id: "workflow-planning-agent",
|
|
5075
5077
|
model,
|
|
5076
5078
|
instructions: taskPlanningPrompts.planningAgent.instructions({
|
|
5077
5079
|
storedQAPairs
|
|
@@ -5802,6 +5804,7 @@ var workflowResearchStep = createStep({
|
|
|
5802
5804
|
try {
|
|
5803
5805
|
const model = await resolveModel({ requestContext });
|
|
5804
5806
|
const researchAgent = new Agent({
|
|
5807
|
+
id: "workflow-research-agent",
|
|
5805
5808
|
model,
|
|
5806
5809
|
instructions: workflowBuilderPrompts.researchAgent.instructions,
|
|
5807
5810
|
name: "Workflow Research Agent"
|