@mastra/agent-builder 1.0.2 → 1.0.3-alpha.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
CHANGED
|
@@ -1,5 +1,21 @@
|
|
|
1
1
|
# @mastra/agent-builder
|
|
2
2
|
|
|
3
|
+
## 1.0.3-alpha.1
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- Updated dependencies [[`b31c922`](https://github.com/mastra-ai/mastra/commit/b31c922215b513791d98feaea1b98784aa00803a)]:
|
|
8
|
+
- @mastra/memory@1.2.0-alpha.1
|
|
9
|
+
- @mastra/core@1.3.0-alpha.2
|
|
10
|
+
|
|
11
|
+
## 1.0.3-alpha.0
|
|
12
|
+
|
|
13
|
+
### Patch Changes
|
|
14
|
+
|
|
15
|
+
- Updated dependencies [[`717ffab`](https://github.com/mastra-ai/mastra/commit/717ffab42cfd58ff723b5c19ada4939997773004), [`e4b6dab`](https://github.com/mastra-ai/mastra/commit/e4b6dab171c5960e340b3ea3ea6da8d64d2b8672), [`5719fa8`](https://github.com/mastra-ai/mastra/commit/5719fa8880e86e8affe698ec4b3807c7e0e0a06f), [`83cda45`](https://github.com/mastra-ai/mastra/commit/83cda4523e588558466892bff8f80f631a36945a), [`11804ad`](https://github.com/mastra-ai/mastra/commit/11804adf1d6be46ebe216be40a43b39bb8b397d7), [`aa95f95`](https://github.com/mastra-ai/mastra/commit/aa95f958b186ae5c9f4219c88e268f5565c277a2), [`f5501ae`](https://github.com/mastra-ai/mastra/commit/f5501aedb0a11106c7db7e480d6eaf3971b7bda8), [`44573af`](https://github.com/mastra-ai/mastra/commit/44573afad0a4bc86f627d6cbc0207961cdcb3bc3), [`00e3861`](https://github.com/mastra-ai/mastra/commit/00e3861863fbfee78faeb1ebbdc7c0223aae13ff), [`7bfbc52`](https://github.com/mastra-ai/mastra/commit/7bfbc52a8604feb0fff2c0a082c13c0c2a3df1a2), [`1445994`](https://github.com/mastra-ai/mastra/commit/1445994aee19c9334a6a101cf7bd80ca7ed4d186), [`61f44a2`](https://github.com/mastra-ai/mastra/commit/61f44a26861c89e364f367ff40825bdb7f19df55), [`37145d2`](https://github.com/mastra-ai/mastra/commit/37145d25f99dc31f1a9105576e5452609843ce32), [`fdad759`](https://github.com/mastra-ai/mastra/commit/fdad75939ff008b27625f5ec0ce9c6915d99d9ec), [`e4569c5`](https://github.com/mastra-ai/mastra/commit/e4569c589e00c4061a686c9eb85afe1b7050b0a8), [`7309a85`](https://github.com/mastra-ai/mastra/commit/7309a85427281a8be23f4fb80ca52e18eaffd596), [`99424f6`](https://github.com/mastra-ai/mastra/commit/99424f6862ffb679c4ec6765501486034754a4c2), [`44eb452`](https://github.com/mastra-ai/mastra/commit/44eb4529b10603c279688318bebf3048543a1d61), [`6c40593`](https://github.com/mastra-ai/mastra/commit/6c40593d6d2b1b68b0c45d1a3a4c6ac5ecac3937), [`8c1135d`](https://github.com/mastra-ai/mastra/commit/8c1135dfb91b057283eae7ee11f9ec28753cc64f), [`dd39e54`](https://github.com/mastra-ai/mastra/commit/dd39e54ea34532c995b33bee6e0e808bf41a7341), [`b6fad9a`](https://github.com/mastra-ai/mastra/commit/b6fad9a602182b1cc0df47cd8c55004fa829ad61), [`4129c07`](https://github.com/mastra-ai/mastra/commit/4129c073349b5a66643fd8136ebfe9d7097cf793), [`5b930ab`](https://github.com/mastra-ai/mastra/commit/5b930aba1834d9898e8460a49d15106f31ac7c8d), [`4be93d0`](https://github.com/mastra-ai/mastra/commit/4be93d09d68e20aaf0ea3f210749422719618b5f), [`047635c`](https://github.com/mastra-ai/mastra/commit/047635ccd7861d726c62d135560c0022a5490aec), [`8c90ff4`](https://github.com/mastra-ai/mastra/commit/8c90ff4d3414e7f2a2d216ea91274644f7b29133), [`ed232d1`](https://github.com/mastra-ai/mastra/commit/ed232d1583f403925dc5ae45f7bee948cf2a182b), [`3891795`](https://github.com/mastra-ai/mastra/commit/38917953518eb4154a984ee36e6ededdcfe80f72), [`4f955b2`](https://github.com/mastra-ai/mastra/commit/4f955b20c7f66ed282ee1fd8709696fa64c4f19d), [`55a4c90`](https://github.com/mastra-ai/mastra/commit/55a4c9044ac7454349b9f6aeba0bbab5ee65d10f)]:
|
|
16
|
+
- @mastra/core@1.3.0-alpha.1
|
|
17
|
+
- @mastra/memory@1.2.0-alpha.0
|
|
18
|
+
|
|
3
19
|
## 1.0.2
|
|
4
20
|
|
|
5
21
|
### Patch Changes
|
package/dist/defaults.d.ts
CHANGED
|
@@ -25,9 +25,9 @@ export declare class AgentBuilderDefaults {
|
|
|
25
25
|
static DEFAULT_TOOLS: (projectPath: string) => Promise<{
|
|
26
26
|
readFile: import("@mastra/core/tools").Tool<{
|
|
27
27
|
filePath: string;
|
|
28
|
+
encoding: string;
|
|
28
29
|
startLine?: number | undefined;
|
|
29
30
|
endLine?: number | undefined;
|
|
30
|
-
encoding?: string | undefined;
|
|
31
31
|
}, {
|
|
32
32
|
success: boolean;
|
|
33
33
|
content?: string | undefined;
|
|
@@ -43,8 +43,8 @@ export declare class AgentBuilderDefaults {
|
|
|
43
43
|
writeFile: import("@mastra/core/tools").Tool<{
|
|
44
44
|
content: string;
|
|
45
45
|
filePath: string;
|
|
46
|
-
encoding
|
|
47
|
-
createDirs
|
|
46
|
+
encoding: string;
|
|
47
|
+
createDirs: boolean;
|
|
48
48
|
}, {
|
|
49
49
|
message: string;
|
|
50
50
|
success: boolean;
|
|
@@ -54,11 +54,11 @@ export declare class AgentBuilderDefaults {
|
|
|
54
54
|
}, unknown, unknown, import("@mastra/core/tools").ToolExecutionContext<unknown, unknown, unknown>, "write-file", unknown>;
|
|
55
55
|
listDirectory: import("@mastra/core/tools").Tool<{
|
|
56
56
|
path: string;
|
|
57
|
-
recursive
|
|
58
|
-
includeHidden
|
|
59
|
-
pattern
|
|
60
|
-
maxDepth
|
|
61
|
-
includeMetadata
|
|
57
|
+
recursive: boolean;
|
|
58
|
+
includeHidden: boolean;
|
|
59
|
+
pattern: string;
|
|
60
|
+
maxDepth: number;
|
|
61
|
+
includeMetadata: boolean;
|
|
62
62
|
}, {
|
|
63
63
|
path: string;
|
|
64
64
|
message: string;
|
|
@@ -76,9 +76,9 @@ export declare class AgentBuilderDefaults {
|
|
|
76
76
|
}, unknown, unknown, import("@mastra/core/tools").ToolExecutionContext<unknown, unknown, unknown>, "list-directory", unknown>;
|
|
77
77
|
executeCommand: import("@mastra/core/tools").Tool<{
|
|
78
78
|
command: string;
|
|
79
|
+
timeout: number;
|
|
80
|
+
captureOutput: boolean;
|
|
79
81
|
workingDirectory?: string | undefined;
|
|
80
|
-
timeout?: number | undefined;
|
|
81
|
-
captureOutput?: boolean | undefined;
|
|
82
82
|
shell?: string | undefined;
|
|
83
83
|
env?: Record<string, string> | undefined;
|
|
84
84
|
}, {
|
|
@@ -100,12 +100,12 @@ export declare class AgentBuilderDefaults {
|
|
|
100
100
|
operations: {
|
|
101
101
|
filePath: string;
|
|
102
102
|
edits: {
|
|
103
|
+
replaceAll: boolean;
|
|
103
104
|
oldString: string;
|
|
104
105
|
newString: string;
|
|
105
|
-
replaceAll?: boolean | undefined;
|
|
106
106
|
}[];
|
|
107
107
|
}[];
|
|
108
|
-
createBackup
|
|
108
|
+
createBackup: boolean;
|
|
109
109
|
}, {
|
|
110
110
|
success: boolean;
|
|
111
111
|
results: {
|
|
@@ -120,8 +120,8 @@ export declare class AgentBuilderDefaults {
|
|
|
120
120
|
filePath: string;
|
|
121
121
|
startLine: number;
|
|
122
122
|
endLine: number;
|
|
123
|
+
createBackup: boolean;
|
|
123
124
|
newContent: string;
|
|
124
|
-
createBackup?: boolean | undefined;
|
|
125
125
|
}, {
|
|
126
126
|
message: string;
|
|
127
127
|
success: boolean;
|
|
@@ -131,9 +131,9 @@ export declare class AgentBuilderDefaults {
|
|
|
131
131
|
}, unknown, unknown, import("@mastra/core/tools").ToolExecutionContext<unknown, unknown, unknown>, "replace-lines", unknown>;
|
|
132
132
|
showFileLines: import("@mastra/core/tools").Tool<{
|
|
133
133
|
filePath: string;
|
|
134
|
+
context: number;
|
|
134
135
|
startLine?: number | undefined;
|
|
135
136
|
endLine?: number | undefined;
|
|
136
|
-
context?: number | undefined;
|
|
137
137
|
}, {
|
|
138
138
|
message: string;
|
|
139
139
|
success: boolean;
|
|
@@ -146,18 +146,18 @@ export declare class AgentBuilderDefaults {
|
|
|
146
146
|
errorMessage?: string | undefined;
|
|
147
147
|
}, unknown, unknown, import("@mastra/core/tools").ToolExecutionContext<unknown, unknown, unknown>, "show-file-lines", unknown>;
|
|
148
148
|
smartSearch: import("@mastra/core/tools").Tool<{
|
|
149
|
+
type: "text" | "regex" | "fuzzy" | "semantic";
|
|
149
150
|
query: string;
|
|
150
|
-
type?: "text" | "regex" | "fuzzy" | "semantic" | undefined;
|
|
151
151
|
context?: {
|
|
152
|
-
beforeLines
|
|
153
|
-
afterLines
|
|
154
|
-
includeDefinitions
|
|
152
|
+
beforeLines: number;
|
|
153
|
+
afterLines: number;
|
|
154
|
+
includeDefinitions: boolean;
|
|
155
155
|
} | undefined;
|
|
156
156
|
scope?: {
|
|
157
|
+
maxResults: number;
|
|
157
158
|
paths?: string[] | undefined;
|
|
158
159
|
fileTypes?: string[] | undefined;
|
|
159
160
|
excludePaths?: string[] | undefined;
|
|
160
|
-
maxResults?: number | undefined;
|
|
161
161
|
} | undefined;
|
|
162
162
|
}, {
|
|
163
163
|
success: boolean;
|
|
@@ -202,11 +202,11 @@ export declare class AgentBuilderDefaults {
|
|
|
202
202
|
}, unknown, unknown, import("@mastra/core/tools").ToolExecutionContext<unknown, unknown, unknown>, "validate-code", unknown>;
|
|
203
203
|
webSearch: import("@mastra/core/tools").Tool<{
|
|
204
204
|
query: string;
|
|
205
|
-
maxResults
|
|
206
|
-
region
|
|
207
|
-
language
|
|
208
|
-
includeImages
|
|
209
|
-
dateRange
|
|
205
|
+
maxResults: number;
|
|
206
|
+
region: string;
|
|
207
|
+
language: string;
|
|
208
|
+
includeImages: boolean;
|
|
209
|
+
dateRange: "day" | "week" | "month" | "year" | "all";
|
|
210
210
|
}, {
|
|
211
211
|
success: boolean;
|
|
212
212
|
results: {
|
|
@@ -225,9 +225,9 @@ export declare class AgentBuilderDefaults {
|
|
|
225
225
|
}, unknown, unknown, import("@mastra/core/tools").ToolExecutionContext<unknown, unknown, unknown>, "web-search", unknown>;
|
|
226
226
|
attemptCompletion: import("@mastra/core/tools").Tool<{
|
|
227
227
|
validation: {
|
|
228
|
-
testsRun
|
|
229
|
-
buildsSuccessfully
|
|
230
|
-
manualTestingRequired
|
|
228
|
+
testsRun: boolean;
|
|
229
|
+
buildsSuccessfully: boolean;
|
|
230
|
+
manualTestingRequired: boolean;
|
|
231
231
|
};
|
|
232
232
|
summary: string;
|
|
233
233
|
changes: {
|
|
@@ -260,13 +260,13 @@ export declare class AgentBuilderDefaults {
|
|
|
260
260
|
}, unknown, unknown, import("@mastra/core/tools").ToolExecutionContext<unknown, unknown, unknown>, "manage-project", unknown>;
|
|
261
261
|
manageServer: import("@mastra/core/tools").Tool<{
|
|
262
262
|
action: "status" | "stop" | "start" | "restart";
|
|
263
|
-
port
|
|
263
|
+
port: number;
|
|
264
264
|
}, any, unknown, unknown, import("@mastra/core/tools").ToolExecutionContext<unknown, unknown, unknown>, "manage-server", unknown>;
|
|
265
265
|
httpRequest: import("@mastra/core/tools").Tool<{
|
|
266
266
|
url: string;
|
|
267
|
+
timeout: number;
|
|
267
268
|
method: "GET" | "POST" | "PUT" | "DELETE" | "PATCH";
|
|
268
269
|
headers?: Record<string, string> | undefined;
|
|
269
|
-
timeout?: number | undefined;
|
|
270
270
|
baseUrl?: string | undefined;
|
|
271
271
|
body?: any;
|
|
272
272
|
}, {
|
|
@@ -185,11 +185,11 @@ export declare const planningAndApprovalWorkflow: import("@mastra/core").Workflo
|
|
|
185
185
|
}, {
|
|
186
186
|
message: string;
|
|
187
187
|
tasks: {
|
|
188
|
+
status: "pending" | "in_progress" | "completed" | "blocked";
|
|
188
189
|
id: string;
|
|
189
190
|
content: string;
|
|
190
191
|
priority: "high" | "medium" | "low";
|
|
191
192
|
notes: string;
|
|
192
|
-
status?: "pending" | "in_progress" | "completed" | "blocked" | undefined;
|
|
193
193
|
dependencies?: string[] | undefined;
|
|
194
194
|
}[];
|
|
195
195
|
approved: boolean;
|
|
@@ -197,11 +197,11 @@ export declare const planningAndApprovalWorkflow: import("@mastra/core").Workflo
|
|
|
197
197
|
}, {
|
|
198
198
|
message: string;
|
|
199
199
|
tasks: {
|
|
200
|
+
status: "pending" | "in_progress" | "completed" | "blocked";
|
|
200
201
|
id: string;
|
|
201
202
|
content: string;
|
|
202
203
|
priority: "high" | "medium" | "low";
|
|
203
204
|
notes: string;
|
|
204
|
-
status?: "pending" | "in_progress" | "completed" | "blocked" | undefined;
|
|
205
205
|
dependencies?: string[] | undefined;
|
|
206
206
|
}[];
|
|
207
207
|
approved: boolean;
|
|
@@ -185,11 +185,11 @@ export declare const workflowBuilderWorkflow: import("@mastra/core").Workflow<im
|
|
|
185
185
|
}, {
|
|
186
186
|
message: string;
|
|
187
187
|
tasks: {
|
|
188
|
+
status: "pending" | "in_progress" | "completed" | "blocked";
|
|
188
189
|
id: string;
|
|
189
190
|
content: string;
|
|
190
191
|
priority: "high" | "medium" | "low";
|
|
191
192
|
notes: string;
|
|
192
|
-
status?: "pending" | "in_progress" | "completed" | "blocked" | undefined;
|
|
193
193
|
dependencies?: string[] | undefined;
|
|
194
194
|
}[];
|
|
195
195
|
approved: boolean;
|
|
@@ -197,11 +197,11 @@ export declare const workflowBuilderWorkflow: import("@mastra/core").Workflow<im
|
|
|
197
197
|
}, {
|
|
198
198
|
message: string;
|
|
199
199
|
tasks: {
|
|
200
|
+
status: "pending" | "in_progress" | "completed" | "blocked";
|
|
200
201
|
id: string;
|
|
201
202
|
content: string;
|
|
202
203
|
priority: "high" | "medium" | "low";
|
|
203
204
|
notes: string;
|
|
204
|
-
status?: "pending" | "in_progress" | "completed" | "blocked" | undefined;
|
|
205
205
|
dependencies?: string[] | undefined;
|
|
206
206
|
}[];
|
|
207
207
|
approved: boolean;
|
|
@@ -396,11 +396,11 @@ export declare const workflowBuilderWorkflow: import("@mastra/core").Workflow<im
|
|
|
396
396
|
success: boolean;
|
|
397
397
|
reasoning: string;
|
|
398
398
|
tasks: {
|
|
399
|
+
status: "pending" | "in_progress" | "completed" | "blocked";
|
|
399
400
|
id: string;
|
|
400
401
|
content: string;
|
|
401
402
|
priority: "high" | "medium" | "low";
|
|
402
403
|
notes: string;
|
|
403
|
-
status?: "pending" | "in_progress" | "completed" | "blocked" | undefined;
|
|
404
404
|
dependencies?: string[] | undefined;
|
|
405
405
|
}[];
|
|
406
406
|
questions: {
|
|
@@ -419,11 +419,11 @@ export declare const workflowBuilderWorkflow: import("@mastra/core").Workflow<im
|
|
|
419
419
|
message: string;
|
|
420
420
|
success: boolean;
|
|
421
421
|
tasks: {
|
|
422
|
+
status: "pending" | "in_progress" | "completed" | "blocked";
|
|
422
423
|
id: string;
|
|
423
424
|
content: string;
|
|
424
425
|
priority: "high" | "medium" | "low";
|
|
425
426
|
notes: string;
|
|
426
|
-
status?: "pending" | "in_progress" | "completed" | "blocked" | undefined;
|
|
427
427
|
dependencies?: string[] | undefined;
|
|
428
428
|
}[];
|
|
429
429
|
error?: string | undefined;
|
|
@@ -506,11 +506,11 @@ export declare const workflowBuilderWorkflow: import("@mastra/core").Workflow<im
|
|
|
506
506
|
success: boolean;
|
|
507
507
|
reasoning: string;
|
|
508
508
|
tasks: {
|
|
509
|
+
status: "pending" | "in_progress" | "completed" | "blocked";
|
|
509
510
|
id: string;
|
|
510
511
|
content: string;
|
|
511
512
|
priority: "high" | "medium" | "low";
|
|
512
513
|
notes: string;
|
|
513
|
-
status?: "pending" | "in_progress" | "completed" | "blocked" | undefined;
|
|
514
514
|
dependencies?: string[] | undefined;
|
|
515
515
|
}[];
|
|
516
516
|
questions: {
|
|
@@ -529,11 +529,11 @@ export declare const workflowBuilderWorkflow: import("@mastra/core").Workflow<im
|
|
|
529
529
|
message: string;
|
|
530
530
|
success: boolean;
|
|
531
531
|
tasks: {
|
|
532
|
+
status: "pending" | "in_progress" | "completed" | "blocked";
|
|
532
533
|
id: string;
|
|
533
534
|
content: string;
|
|
534
535
|
priority: "high" | "medium" | "low";
|
|
535
536
|
notes: string;
|
|
536
|
-
status?: "pending" | "in_progress" | "completed" | "blocked" | undefined;
|
|
537
537
|
dependencies?: string[] | undefined;
|
|
538
538
|
}[];
|
|
539
539
|
error?: string | undefined;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@mastra/agent-builder",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.3-alpha.1",
|
|
4
4
|
"license": "Apache-2.0",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "dist/index.js",
|
|
@@ -24,19 +24,19 @@
|
|
|
24
24
|
],
|
|
25
25
|
"dependencies": {
|
|
26
26
|
"@ai-sdk/anthropic": "^1.2.12",
|
|
27
|
-
"@ai-sdk/anthropic-v5": "npm:@ai-sdk/anthropic@2.0.
|
|
27
|
+
"@ai-sdk/anthropic-v5": "npm:@ai-sdk/anthropic@2.0.61",
|
|
28
28
|
"@ai-sdk/google": "^1.2.22",
|
|
29
|
-
"@ai-sdk/google-v5": "npm:@ai-sdk/google@2.0.
|
|
29
|
+
"@ai-sdk/google-v5": "npm:@ai-sdk/google@2.0.52",
|
|
30
30
|
"@ai-sdk/groq": "^1.2.9",
|
|
31
|
-
"@ai-sdk/groq-v5": "npm:@ai-sdk/groq@2.0.
|
|
31
|
+
"@ai-sdk/groq-v5": "npm:@ai-sdk/groq@2.0.34",
|
|
32
32
|
"@ai-sdk/openai": "^1.3.24",
|
|
33
|
-
"@ai-sdk/openai-v5": "npm:@ai-sdk/openai@2.0.
|
|
33
|
+
"@ai-sdk/openai-v5": "npm:@ai-sdk/openai@2.0.89",
|
|
34
34
|
"@ai-sdk/xai": "^1.2.18",
|
|
35
|
-
"@ai-sdk/xai-v5": "npm:@ai-sdk/xai@2.0.
|
|
35
|
+
"@ai-sdk/xai-v5": "npm:@ai-sdk/xai@2.0.57",
|
|
36
36
|
"ignore": "^7.0.5",
|
|
37
37
|
"semver": "^7.7.2",
|
|
38
38
|
"swpm": "^2.6.0",
|
|
39
|
-
"@mastra/memory": "1.
|
|
39
|
+
"@mastra/memory": "1.2.0-alpha.1"
|
|
40
40
|
},
|
|
41
41
|
"devDependencies": {
|
|
42
42
|
"@types/node": "22.19.7",
|
|
@@ -50,10 +50,10 @@
|
|
|
50
50
|
"typescript-eslint": "^8.51.0",
|
|
51
51
|
"vitest": "4.0.16",
|
|
52
52
|
"zod": "^3.25.76",
|
|
53
|
-
"@internal/ai-sdk-v5": "0.0.4",
|
|
54
|
-
"@internal/types-builder": "0.0.32",
|
|
55
53
|
"@internal/lint": "0.0.57",
|
|
56
|
-
"@
|
|
54
|
+
"@internal/types-builder": "0.0.32",
|
|
55
|
+
"@internal/ai-sdk-v5": "0.0.4",
|
|
56
|
+
"@mastra/core": "1.3.0-alpha.2"
|
|
57
57
|
},
|
|
58
58
|
"peerDependencies": {
|
|
59
59
|
"@mastra/core": ">=1.0.0-0 <2.0.0-0",
|