@mastra/server 1.0.4-alpha.2 → 2.0.0-alpha.3
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/dist/{chunk-CWSDZEZG.cjs → chunk-7IWQE76Z.cjs} +2 -2
- package/dist/{chunk-67WTHYAV.js → chunk-I6MBOQTH.js} +2 -2
- package/dist/{chunk-Z46X3YCB.cjs → chunk-UE27Q3XD.cjs} +2 -2
- package/dist/{chunk-DVPP5S6I.js → chunk-WTHDCRMY.js} +2 -2
- package/dist/server/handlers/agents.cjs +7 -7
- package/dist/server/handlers/agents.js +1 -1
- package/dist/server/handlers/telemetry.cjs +3 -3
- package/dist/server/handlers/telemetry.js +1 -1
- package/dist/server/handlers.cjs +4 -4
- package/dist/server/handlers.js +2 -2
- package/package.json +3 -3
|
@@ -29,7 +29,7 @@ async function getTelemetryHandler({ mastra, body }) {
|
|
|
29
29
|
return [key, value];
|
|
30
30
|
})
|
|
31
31
|
) : void 0;
|
|
32
|
-
const traces = await storage.
|
|
32
|
+
const traces = await storage.getTraces({
|
|
33
33
|
name,
|
|
34
34
|
scope,
|
|
35
35
|
page: Number(page ?? 0),
|
|
@@ -107,7 +107,7 @@ async function storeTelemetryHandler({ mastra, body }) {
|
|
|
107
107
|
}
|
|
108
108
|
return acc;
|
|
109
109
|
}, []);
|
|
110
|
-
return storage.
|
|
110
|
+
return storage.batchTraceInsert({
|
|
111
111
|
records: allSpans
|
|
112
112
|
}).then(() => {
|
|
113
113
|
return {
|
|
@@ -70,7 +70,7 @@ async function getAgentByIdHandler({ mastra, agentId }) {
|
|
|
70
70
|
async function getEvalsByAgentIdHandler({ mastra, agentId }) {
|
|
71
71
|
try {
|
|
72
72
|
const agent = mastra.getAgent(agentId);
|
|
73
|
-
const evals = await mastra.getStorage()?.
|
|
73
|
+
const evals = await mastra.getStorage()?.getEvalsByAgentName?.(agent.name, "test") || [];
|
|
74
74
|
return {
|
|
75
75
|
id: agentId,
|
|
76
76
|
name: agent.name,
|
|
@@ -84,7 +84,7 @@ async function getEvalsByAgentIdHandler({ mastra, agentId }) {
|
|
|
84
84
|
async function getLiveEvalsByAgentIdHandler({ mastra, agentId }) {
|
|
85
85
|
try {
|
|
86
86
|
const agent = mastra.getAgent(agentId);
|
|
87
|
-
const evals = await mastra.getStorage()?.
|
|
87
|
+
const evals = await mastra.getStorage()?.getEvalsByAgentName?.(agent.name, "live") || [];
|
|
88
88
|
return {
|
|
89
89
|
id: agentId,
|
|
90
90
|
name: agent.name,
|
|
@@ -72,7 +72,7 @@ async function getAgentByIdHandler({ mastra, agentId }) {
|
|
|
72
72
|
async function getEvalsByAgentIdHandler({ mastra, agentId }) {
|
|
73
73
|
try {
|
|
74
74
|
const agent = mastra.getAgent(agentId);
|
|
75
|
-
const evals = await mastra.getStorage()?.
|
|
75
|
+
const evals = await mastra.getStorage()?.getEvalsByAgentName?.(agent.name, "test") || [];
|
|
76
76
|
return {
|
|
77
77
|
id: agentId,
|
|
78
78
|
name: agent.name,
|
|
@@ -86,7 +86,7 @@ async function getEvalsByAgentIdHandler({ mastra, agentId }) {
|
|
|
86
86
|
async function getLiveEvalsByAgentIdHandler({ mastra, agentId }) {
|
|
87
87
|
try {
|
|
88
88
|
const agent = mastra.getAgent(agentId);
|
|
89
|
-
const evals = await mastra.getStorage()?.
|
|
89
|
+
const evals = await mastra.getStorage()?.getEvalsByAgentName?.(agent.name, "live") || [];
|
|
90
90
|
return {
|
|
91
91
|
id: agentId,
|
|
92
92
|
name: agent.name,
|
|
@@ -27,7 +27,7 @@ async function getTelemetryHandler({ mastra, body }) {
|
|
|
27
27
|
return [key, value];
|
|
28
28
|
})
|
|
29
29
|
) : void 0;
|
|
30
|
-
const traces = await storage.
|
|
30
|
+
const traces = await storage.getTraces({
|
|
31
31
|
name,
|
|
32
32
|
scope,
|
|
33
33
|
page: Number(page ?? 0),
|
|
@@ -105,7 +105,7 @@ async function storeTelemetryHandler({ mastra, body }) {
|
|
|
105
105
|
}
|
|
106
106
|
return acc;
|
|
107
107
|
}, []);
|
|
108
|
-
return storage.
|
|
108
|
+
return storage.batchTraceInsert({
|
|
109
109
|
records: allSpans
|
|
110
110
|
}).then(() => {
|
|
111
111
|
return {
|
|
@@ -1,30 +1,30 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var
|
|
3
|
+
var chunkUE27Q3XD_cjs = require('../../chunk-UE27Q3XD.cjs');
|
|
4
4
|
|
|
5
5
|
|
|
6
6
|
|
|
7
7
|
Object.defineProperty(exports, "generateHandler", {
|
|
8
8
|
enumerable: true,
|
|
9
|
-
get: function () { return
|
|
9
|
+
get: function () { return chunkUE27Q3XD_cjs.generateHandler; }
|
|
10
10
|
});
|
|
11
11
|
Object.defineProperty(exports, "getAgentByIdHandler", {
|
|
12
12
|
enumerable: true,
|
|
13
|
-
get: function () { return
|
|
13
|
+
get: function () { return chunkUE27Q3XD_cjs.getAgentByIdHandler; }
|
|
14
14
|
});
|
|
15
15
|
Object.defineProperty(exports, "getAgentsHandler", {
|
|
16
16
|
enumerable: true,
|
|
17
|
-
get: function () { return
|
|
17
|
+
get: function () { return chunkUE27Q3XD_cjs.getAgentsHandler; }
|
|
18
18
|
});
|
|
19
19
|
Object.defineProperty(exports, "getEvalsByAgentIdHandler", {
|
|
20
20
|
enumerable: true,
|
|
21
|
-
get: function () { return
|
|
21
|
+
get: function () { return chunkUE27Q3XD_cjs.getEvalsByAgentIdHandler; }
|
|
22
22
|
});
|
|
23
23
|
Object.defineProperty(exports, "getLiveEvalsByAgentIdHandler", {
|
|
24
24
|
enumerable: true,
|
|
25
|
-
get: function () { return
|
|
25
|
+
get: function () { return chunkUE27Q3XD_cjs.getLiveEvalsByAgentIdHandler; }
|
|
26
26
|
});
|
|
27
27
|
Object.defineProperty(exports, "streamGenerateHandler", {
|
|
28
28
|
enumerable: true,
|
|
29
|
-
get: function () { return
|
|
29
|
+
get: function () { return chunkUE27Q3XD_cjs.streamGenerateHandler; }
|
|
30
30
|
});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export { generateHandler, getAgentByIdHandler, getAgentsHandler, getEvalsByAgentIdHandler, getLiveEvalsByAgentIdHandler, streamGenerateHandler } from '../../chunk-
|
|
1
|
+
export { generateHandler, getAgentByIdHandler, getAgentsHandler, getEvalsByAgentIdHandler, getLiveEvalsByAgentIdHandler, streamGenerateHandler } from '../../chunk-I6MBOQTH.js';
|
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var
|
|
3
|
+
var chunk7IWQE76Z_cjs = require('../../chunk-7IWQE76Z.cjs');
|
|
4
4
|
|
|
5
5
|
|
|
6
6
|
|
|
7
7
|
Object.defineProperty(exports, "getTelemetryHandler", {
|
|
8
8
|
enumerable: true,
|
|
9
|
-
get: function () { return
|
|
9
|
+
get: function () { return chunk7IWQE76Z_cjs.getTelemetryHandler; }
|
|
10
10
|
});
|
|
11
11
|
Object.defineProperty(exports, "storeTelemetryHandler", {
|
|
12
12
|
enumerable: true,
|
|
13
|
-
get: function () { return
|
|
13
|
+
get: function () { return chunk7IWQE76Z_cjs.storeTelemetryHandler; }
|
|
14
14
|
});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export { getTelemetryHandler, storeTelemetryHandler } from '../../chunk-
|
|
1
|
+
export { getTelemetryHandler, storeTelemetryHandler } from '../../chunk-WTHDCRMY.js';
|
package/dist/server/handlers.cjs
CHANGED
|
@@ -4,11 +4,11 @@ var chunkPDC4ZBQW_cjs = require('../chunk-PDC4ZBQW.cjs');
|
|
|
4
4
|
var chunkM56ECCHK_cjs = require('../chunk-M56ECCHK.cjs');
|
|
5
5
|
var chunkA7DF4ETD_cjs = require('../chunk-A7DF4ETD.cjs');
|
|
6
6
|
var chunkB64YROKU_cjs = require('../chunk-B64YROKU.cjs');
|
|
7
|
-
var
|
|
7
|
+
var chunkUE27Q3XD_cjs = require('../chunk-UE27Q3XD.cjs');
|
|
8
8
|
var chunkSKBVVI24_cjs = require('../chunk-SKBVVI24.cjs');
|
|
9
9
|
var chunk2FJURXCL_cjs = require('../chunk-2FJURXCL.cjs');
|
|
10
10
|
var chunkJLDXUWK7_cjs = require('../chunk-JLDXUWK7.cjs');
|
|
11
|
-
var
|
|
11
|
+
var chunk7IWQE76Z_cjs = require('../chunk-7IWQE76Z.cjs');
|
|
12
12
|
|
|
13
13
|
|
|
14
14
|
|
|
@@ -30,7 +30,7 @@ Object.defineProperty(exports, "workflows", {
|
|
|
30
30
|
});
|
|
31
31
|
Object.defineProperty(exports, "agents", {
|
|
32
32
|
enumerable: true,
|
|
33
|
-
get: function () { return
|
|
33
|
+
get: function () { return chunkUE27Q3XD_cjs.agents_exports; }
|
|
34
34
|
});
|
|
35
35
|
Object.defineProperty(exports, "logs", {
|
|
36
36
|
enumerable: true,
|
|
@@ -46,5 +46,5 @@ Object.defineProperty(exports, "network", {
|
|
|
46
46
|
});
|
|
47
47
|
Object.defineProperty(exports, "telemetry", {
|
|
48
48
|
enumerable: true,
|
|
49
|
-
get: function () { return
|
|
49
|
+
get: function () { return chunk7IWQE76Z_cjs.telemetry_exports; }
|
|
50
50
|
});
|
package/dist/server/handlers.js
CHANGED
|
@@ -2,8 +2,8 @@ export { tools_exports as tools } from '../chunk-UV4WTEH4.js';
|
|
|
2
2
|
export { vector_exports as vector } from '../chunk-4JINXASC.js';
|
|
3
3
|
export { voice_exports as voice } from '../chunk-3RVHWGWO.js';
|
|
4
4
|
export { workflows_exports as workflows } from '../chunk-OPP7H5TW.js';
|
|
5
|
-
export { agents_exports as agents } from '../chunk-
|
|
5
|
+
export { agents_exports as agents } from '../chunk-I6MBOQTH.js';
|
|
6
6
|
export { logs_exports as logs } from '../chunk-3EJZQ6TQ.js';
|
|
7
7
|
export { memory_exports as memory } from '../chunk-RBQASTUP.js';
|
|
8
8
|
export { network_exports as network } from '../chunk-YANVFOYA.js';
|
|
9
|
-
export { telemetry_exports as telemetry } from '../chunk-
|
|
9
|
+
export { telemetry_exports as telemetry } from '../chunk-WTHDCRMY.js';
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@mastra/server",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "2.0.0-alpha.3",
|
|
4
4
|
"description": "",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"files": [
|
|
@@ -46,7 +46,7 @@
|
|
|
46
46
|
"license": "Elastic-2.0",
|
|
47
47
|
"dependencies": {},
|
|
48
48
|
"peerDependencies": {
|
|
49
|
-
"@mastra/core": "^0.
|
|
49
|
+
"@mastra/core": "^0.9.0-alpha.3"
|
|
50
50
|
},
|
|
51
51
|
"devDependencies": {
|
|
52
52
|
"@ai-sdk/openai": "^1.3.2",
|
|
@@ -58,7 +58,7 @@
|
|
|
58
58
|
"typescript": "^5.8.2",
|
|
59
59
|
"vitest": "^2.1.9",
|
|
60
60
|
"zod-to-json-schema": "^3.24.3",
|
|
61
|
-
"@mastra/core": "0.
|
|
61
|
+
"@mastra/core": "0.9.0-alpha.3",
|
|
62
62
|
"@internal/lint": "0.0.2"
|
|
63
63
|
},
|
|
64
64
|
"scripts": {
|