@mastra/deployer 0.1.0-alpha.47 → 0.1.0-alpha.49
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,19 @@
|
|
|
1
1
|
# @mastra/deployer
|
|
2
2
|
|
|
3
|
+
## 0.1.0-alpha.49
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- 7d83b92: Create default storage and move evals towards it
|
|
8
|
+
- Updated dependencies [7d83b92]
|
|
9
|
+
- @mastra/core@0.2.0-alpha.99
|
|
10
|
+
|
|
11
|
+
## 0.1.0-alpha.48
|
|
12
|
+
|
|
13
|
+
### Patch Changes
|
|
14
|
+
|
|
15
|
+
- 8aec8b7: Normalize imports to package name and dedupe while writing package.json after mastra build
|
|
16
|
+
|
|
3
17
|
## 0.1.0-alpha.47
|
|
4
18
|
|
|
5
19
|
### Patch Changes
|
package/dist/bundler/index.js
CHANGED
|
@@ -24,12 +24,14 @@ var Bundler = class extends MastraBundler {
|
|
|
24
24
|
this.logger.debug(`Writing project's package.json`);
|
|
25
25
|
await ensureDir(outputDirectory);
|
|
26
26
|
const pkgPath = join(outputDirectory, "package.json");
|
|
27
|
-
const
|
|
27
|
+
const dependenciesMap = /* @__PURE__ */ new Map();
|
|
28
28
|
for (const [key, value] of dependencies.entries()) {
|
|
29
|
-
if (key.startsWith("@")
|
|
29
|
+
if (key.startsWith("@")) {
|
|
30
|
+
const pkgChunks = key.split("/");
|
|
31
|
+
dependenciesMap.set(`${pkgChunks[0]}/${pkgChunks[1]}`, value);
|
|
30
32
|
continue;
|
|
31
33
|
}
|
|
32
|
-
|
|
34
|
+
dependenciesMap.set(key, value);
|
|
33
35
|
}
|
|
34
36
|
await writeFile(
|
|
35
37
|
pkgPath,
|
|
@@ -45,7 +47,7 @@ var Bundler = class extends MastraBundler {
|
|
|
45
47
|
},
|
|
46
48
|
author: "Mastra",
|
|
47
49
|
license: "ISC",
|
|
48
|
-
dependencies:
|
|
50
|
+
dependencies: Object.fromEntries(dependenciesMap.entries())
|
|
49
51
|
},
|
|
50
52
|
null,
|
|
51
53
|
2
|
package/dist/index.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { FileService } from './chunk-JG3X44WH.js';
|
|
2
2
|
export { FileService, getBundler, getWatcher } from './chunk-JG3X44WH.js';
|
|
3
|
-
import { Bundler } from './chunk-
|
|
3
|
+
import { Bundler } from './chunk-BC4WTLMR.js';
|
|
4
4
|
import { Deps } from './chunk-Q3WKR6OZ.js';
|
|
5
5
|
export { Deps, createChildProcessLogger, createPinoStream } from './chunk-Q3WKR6OZ.js';
|
|
6
6
|
import './chunk-WXH2HMQ2.js';
|
package/dist/server/index.js
CHANGED
|
@@ -2847,7 +2847,7 @@ async function getEvalsByAgentIdHandler(c2) {
|
|
|
2847
2847
|
const mastra = c2.get("mastra");
|
|
2848
2848
|
const agentId = c2.req.param("agentId");
|
|
2849
2849
|
const agent = mastra.getAgent(agentId);
|
|
2850
|
-
const evals = await mastra.
|
|
2850
|
+
const evals = await mastra.storage?.getEvalsByAgentName?.(agent.name, "test") || [];
|
|
2851
2851
|
return c2.json({
|
|
2852
2852
|
...agent,
|
|
2853
2853
|
evals
|
|
@@ -2861,7 +2861,7 @@ async function getLiveEvalsByAgentIdHandler(c2) {
|
|
|
2861
2861
|
const mastra = c2.get("mastra");
|
|
2862
2862
|
const agentId = c2.req.param("agentId");
|
|
2863
2863
|
const agent = mastra.getAgent(agentId);
|
|
2864
|
-
const evals = await mastra.
|
|
2864
|
+
const evals = await mastra.storage?.getEvalsByAgentName?.(agent.name, "live") || [];
|
|
2865
2865
|
return c2.json({
|
|
2866
2866
|
...agent,
|
|
2867
2867
|
evals
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@mastra/deployer",
|
|
3
|
-
"version": "0.1.0-alpha.
|
|
3
|
+
"version": "0.1.0-alpha.49",
|
|
4
4
|
"description": "",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "dist/index.js",
|
|
@@ -51,7 +51,7 @@
|
|
|
51
51
|
"rollup-plugin-esbuild": "^6.1.1",
|
|
52
52
|
"rollup-plugin-node-externals": "^8.0.0",
|
|
53
53
|
"zod": "^3.24.1",
|
|
54
|
-
"@mastra/core": "^0.2.0-alpha.
|
|
54
|
+
"@mastra/core": "^0.2.0-alpha.99"
|
|
55
55
|
},
|
|
56
56
|
"devDependencies": {
|
|
57
57
|
"@hono/node-server": "^1.13.7",
|
package/src/bundler/index.ts
CHANGED
|
@@ -33,13 +33,14 @@ export abstract class Bundler extends MastraBundler {
|
|
|
33
33
|
await ensureDir(outputDirectory);
|
|
34
34
|
const pkgPath = join(outputDirectory, 'package.json');
|
|
35
35
|
|
|
36
|
-
const
|
|
36
|
+
const dependenciesMap = new Map();
|
|
37
37
|
for (const [key, value] of dependencies.entries()) {
|
|
38
|
-
if (key.startsWith('@')
|
|
38
|
+
if (key.startsWith('@')) {
|
|
39
|
+
const pkgChunks = key.split('/');
|
|
40
|
+
dependenciesMap.set(`${pkgChunks[0]}/${pkgChunks[1]}`, value);
|
|
39
41
|
continue;
|
|
40
42
|
}
|
|
41
|
-
|
|
42
|
-
dependenciesObject[key] = value;
|
|
43
|
+
dependenciesMap.set(key, value);
|
|
43
44
|
}
|
|
44
45
|
|
|
45
46
|
await writeFile(
|
|
@@ -56,7 +57,7 @@ export abstract class Bundler extends MastraBundler {
|
|
|
56
57
|
},
|
|
57
58
|
author: 'Mastra',
|
|
58
59
|
license: 'ISC',
|
|
59
|
-
dependencies:
|
|
60
|
+
dependencies: Object.fromEntries(dependenciesMap.entries()),
|
|
60
61
|
},
|
|
61
62
|
null,
|
|
62
63
|
2,
|
|
@@ -80,7 +80,7 @@ export async function getEvalsByAgentIdHandler(c: Context) {
|
|
|
80
80
|
const mastra = c.get('mastra');
|
|
81
81
|
const agentId = c.req.param('agentId');
|
|
82
82
|
const agent = mastra.getAgent(agentId);
|
|
83
|
-
const evals: EvalRow[] = (await mastra.
|
|
83
|
+
const evals: EvalRow[] = (await mastra.storage?.getEvalsByAgentName?.(agent.name, 'test')) || [];
|
|
84
84
|
return c.json({
|
|
85
85
|
...agent,
|
|
86
86
|
evals,
|
|
@@ -95,7 +95,7 @@ export async function getLiveEvalsByAgentIdHandler(c: Context) {
|
|
|
95
95
|
const mastra = c.get('mastra');
|
|
96
96
|
const agentId = c.req.param('agentId');
|
|
97
97
|
const agent = mastra.getAgent(agentId);
|
|
98
|
-
const evals: EvalRow[] = (await mastra.
|
|
98
|
+
const evals: EvalRow[] = (await mastra.storage?.getEvalsByAgentName?.(agent.name, 'live')) || [];
|
|
99
99
|
|
|
100
100
|
return c.json({
|
|
101
101
|
...agent,
|