@mastra/agent-builder 0.0.0-experimental-agent-builder-20250815195917 → 0.0.1-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/.turbo/turbo-build.log +12 -0
- package/CHANGELOG.md +7 -16
- package/README.md +4 -17
- package/dist/_tsup-dts-rollup.d.cts +2442 -618
- package/dist/_tsup-dts-rollup.d.ts +2442 -618
- package/dist/index.cjs +1134 -549
- package/dist/index.d.cts +3 -0
- package/dist/index.d.ts +3 -0
- package/dist/index.js +1131 -553
- package/integration-tests/CHANGELOG.md +4 -15
- package/integration-tests/docker-compose.yml +3 -3
- package/integration-tests/package.json +3 -3
- package/integration-tests/src/agent-template-behavior.test.ts +1 -1
- package/integration-tests/src/fixtures/minimal-mastra-project/package.json +2 -2
- package/integration-tests/src/fixtures/minimal-mastra-project/src/mastra/tools/weather.ts +2 -1
- package/integration-tests/src/template-integration.test.ts +8 -8
- package/integration-tests/tsconfig.json +2 -6
- package/integration-tests/vitest.config.ts +1 -0
- package/package.json +7 -6
- package/src/agent/index.ts +187 -0
- package/src/agent-builder.test.ts +34 -12
- package/src/defaults.ts +292 -144
- package/src/index.ts +3 -187
- package/src/processors/tool-summary.ts +18 -9
- package/src/processors/write-file.ts +1 -1
- package/src/types.ts +188 -3
- package/src/utils.ts +289 -13
- package/src/workflows/index.ts +1 -1541
- package/src/workflows/template-builder.ts +1682 -0
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
|
|
2
|
+
> @mastra/agent-builder@0.0.1-alpha.1 build /home/runner/work/mastra/mastra/packages/agent-builder
|
|
3
|
+
> pnpm run check && tsup --silent src/index.ts --format esm,cjs --experimental-dts --clean --treeshake=smallest --splitting
|
|
4
|
+
|
|
5
|
+
|
|
6
|
+
> @mastra/agent-builder@0.0.1-alpha.1 check /home/runner/work/mastra/mastra/packages/agent-builder
|
|
7
|
+
> tsc --noEmit
|
|
8
|
+
|
|
9
|
+
Analysis will use the bundled TypeScript version 5.8.3
|
|
10
|
+
[36mWriting package typings: /home/runner/work/mastra/mastra/packages/agent-builder/dist/_tsup-dts-rollup.d.ts[39m
|
|
11
|
+
Analysis will use the bundled TypeScript version 5.8.3
|
|
12
|
+
[36mWriting package typings: /home/runner/work/mastra/mastra/packages/agent-builder/dist/_tsup-dts-rollup.d.cts[39m
|
package/CHANGELOG.md
CHANGED
|
@@ -1,21 +1,12 @@
|
|
|
1
1
|
# @mastra/agent-builder
|
|
2
2
|
|
|
3
|
-
## 0.0.
|
|
3
|
+
## 0.0.1-alpha.1
|
|
4
4
|
|
|
5
5
|
### Patch Changes
|
|
6
6
|
|
|
7
|
-
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
- Updated dependencies [
|
|
12
|
-
-
|
|
13
|
-
- Updated dependencies [c597dc5]
|
|
14
|
-
- Updated dependencies [a722c0b]
|
|
15
|
-
- Updated dependencies [c30bca8]
|
|
16
|
-
- Updated dependencies [7444737]
|
|
17
|
-
- Updated dependencies [83d180b]
|
|
18
|
-
- Updated dependencies [3b5fec7]
|
|
19
|
-
- @mastra/core@0.0.0-experimental-agent-builder-20250815195917
|
|
20
|
-
- @mastra/mcp@0.0.0-experimental-agent-builder-20250815195917
|
|
21
|
-
- @mastra/memory@0.0.0-experimental-agent-builder-20250815195917
|
|
7
|
+
- [#7135](https://github.com/mastra-ai/mastra/pull/7135) [`48b9e55`](https://github.com/mastra-ai/mastra/commit/48b9e553a39528dcc20fbbeb798c3b1a1961468e) Thanks [@NikAiyer](https://github.com/NikAiyer)! - Add Agent Builder package with template installation workflow
|
|
8
|
+
|
|
9
|
+
Introduces a new package for programmatically building and managing Mastra agents with intelligent template merging capabilities. Features include automated dependency resolution, file conflict handling, and validation fixes.
|
|
10
|
+
|
|
11
|
+
- Updated dependencies [[`aedbbfa`](https://github.com/mastra-ai/mastra/commit/aedbbfa064124ddde039111f12629daebfea7e48), [`f643c65`](https://github.com/mastra-ai/mastra/commit/f643c651bdaf57c2343cf9dbfc499010495701fb), [`fef7375`](https://github.com/mastra-ai/mastra/commit/fef737534574f41b432a7361a285f776c3bac42b), [`e3d8fea`](https://github.com/mastra-ai/mastra/commit/e3d8feaacfb8b5c5c03c13604cc06ea2873d45fe), [`3412597`](https://github.com/mastra-ai/mastra/commit/3412597a6644c0b6bf3236d6e319ed1450c5bae8)]:
|
|
12
|
+
- @mastra/core@0.15.3-alpha.3
|
package/README.md
CHANGED
|
@@ -60,33 +60,20 @@ The AgentBuilder requires a configuration object with:
|
|
|
60
60
|
|
|
61
61
|
```typescript
|
|
62
62
|
// Install packages
|
|
63
|
-
await builder.
|
|
64
|
-
action: 'install',
|
|
65
|
-
packages: [{ name: '@mastra/workflows', version: 'latest' }],
|
|
66
|
-
});
|
|
63
|
+
const result = await builder.generate('Install @mastra/workflows package with latest version');
|
|
67
64
|
|
|
68
65
|
// Validate generated code
|
|
69
|
-
await builder.
|
|
70
|
-
validationType: ['types', 'lint'],
|
|
71
|
-
files: ['src/agents/my-agent.ts'],
|
|
72
|
-
});
|
|
66
|
+
const validation = await builder.generate('Validate the TypeScript types and linting for src/agents/my-agent.ts');
|
|
73
67
|
```
|
|
74
68
|
|
|
75
69
|
### Server Management
|
|
76
70
|
|
|
77
71
|
```typescript
|
|
78
72
|
// Start development server
|
|
79
|
-
await builder.
|
|
80
|
-
action: 'start',
|
|
81
|
-
port: 4200,
|
|
82
|
-
});
|
|
73
|
+
const serverResult = await builder.generate('Start the development server on port 4200');
|
|
83
74
|
|
|
84
75
|
// Test API endpoints
|
|
85
|
-
await builder.
|
|
86
|
-
method: 'GET',
|
|
87
|
-
url: '/health',
|
|
88
|
-
baseUrl: 'http://localhost:4200',
|
|
89
|
-
});
|
|
76
|
+
const testResult = await builder.generate('Test the /health endpoint at http://localhost:4200');
|
|
90
77
|
```
|
|
91
78
|
|
|
92
79
|
## Memory and Processing
|