@mastra/server 0.10.2-alpha.1 → 0.10.2-alpha.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/dist/_tsup-dts-rollup.d.cts +4 -0
- package/dist/_tsup-dts-rollup.d.ts +4 -0
- package/dist/{chunk-MHKNLNAN.cjs → chunk-B4MQFJ7G.cjs} +5 -2
- package/dist/{chunk-OR3CIE2H.js → chunk-BFOA2QQY.js} +5 -2
- package/dist/server/handlers/telemetry.cjs +3 -3
- package/dist/server/handlers/telemetry.js +1 -1
- package/dist/server/handlers.cjs +2 -2
- package/dist/server/handlers.js +1 -1
- package/package.json +3 -3
|
@@ -654,6 +654,10 @@ export declare function storeTelemetryHandler({ mastra, body }: Context & {
|
|
|
654
654
|
status: string;
|
|
655
655
|
message: string;
|
|
656
656
|
error: any;
|
|
657
|
+
} | {
|
|
658
|
+
status: string;
|
|
659
|
+
message: string;
|
|
660
|
+
traceCount?: undefined;
|
|
657
661
|
} | {
|
|
658
662
|
status: string;
|
|
659
663
|
message: string;
|
|
@@ -654,6 +654,10 @@ export declare function storeTelemetryHandler({ mastra, body }: Context & {
|
|
|
654
654
|
status: string;
|
|
655
655
|
message: string;
|
|
656
656
|
error: any;
|
|
657
|
+
} | {
|
|
658
|
+
status: string;
|
|
659
|
+
message: string;
|
|
660
|
+
traceCount?: undefined;
|
|
657
661
|
} | {
|
|
658
662
|
status: string;
|
|
659
663
|
message: string;
|
|
@@ -18,7 +18,7 @@ async function getTelemetryHandler({ mastra, body }) {
|
|
|
18
18
|
throw new chunkOCWPVYNI_cjs.HTTPException(400, { message: "Telemetry is not initialized" });
|
|
19
19
|
}
|
|
20
20
|
if (!storage) {
|
|
21
|
-
|
|
21
|
+
return [];
|
|
22
22
|
}
|
|
23
23
|
if (!body) {
|
|
24
24
|
throw new chunkOCWPVYNI_cjs.HTTPException(400, { message: "Body is required" });
|
|
@@ -49,7 +49,10 @@ async function storeTelemetryHandler({ mastra, body }) {
|
|
|
49
49
|
const storage = mastra.getStorage();
|
|
50
50
|
const logger = mastra.getLogger();
|
|
51
51
|
if (!storage) {
|
|
52
|
-
|
|
52
|
+
return {
|
|
53
|
+
status: "error",
|
|
54
|
+
message: "Storage is not initialized"
|
|
55
|
+
};
|
|
53
56
|
}
|
|
54
57
|
const now = /* @__PURE__ */ new Date();
|
|
55
58
|
const items = body?.resourceSpans?.[0]?.scopeSpans;
|
|
@@ -16,7 +16,7 @@ async function getTelemetryHandler({ mastra, body }) {
|
|
|
16
16
|
throw new HTTPException(400, { message: "Telemetry is not initialized" });
|
|
17
17
|
}
|
|
18
18
|
if (!storage) {
|
|
19
|
-
|
|
19
|
+
return [];
|
|
20
20
|
}
|
|
21
21
|
if (!body) {
|
|
22
22
|
throw new HTTPException(400, { message: "Body is required" });
|
|
@@ -47,7 +47,10 @@ async function storeTelemetryHandler({ mastra, body }) {
|
|
|
47
47
|
const storage = mastra.getStorage();
|
|
48
48
|
const logger = mastra.getLogger();
|
|
49
49
|
if (!storage) {
|
|
50
|
-
|
|
50
|
+
return {
|
|
51
|
+
status: "error",
|
|
52
|
+
message: "Storage is not initialized"
|
|
53
|
+
};
|
|
51
54
|
}
|
|
52
55
|
const now = /* @__PURE__ */ new Date();
|
|
53
56
|
const items = body?.resourceSpans?.[0]?.scopeSpans;
|
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var
|
|
3
|
+
var chunkB4MQFJ7G_cjs = require('../../chunk-B4MQFJ7G.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 chunkB4MQFJ7G_cjs.getTelemetryHandler; }
|
|
10
10
|
});
|
|
11
11
|
Object.defineProperty(exports, "storeTelemetryHandler", {
|
|
12
12
|
enumerable: true,
|
|
13
|
-
get: function () { return
|
|
13
|
+
get: function () { return chunkB4MQFJ7G_cjs.storeTelemetryHandler; }
|
|
14
14
|
});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export { getTelemetryHandler, storeTelemetryHandler } from '../../chunk-
|
|
1
|
+
export { getTelemetryHandler, storeTelemetryHandler } from '../../chunk-BFOA2QQY.js';
|
package/dist/server/handlers.cjs
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
3
|
var chunkVPNDC2DI_cjs = require('../chunk-VPNDC2DI.cjs');
|
|
4
|
-
var
|
|
4
|
+
var chunkB4MQFJ7G_cjs = require('../chunk-B4MQFJ7G.cjs');
|
|
5
5
|
var chunkZE5AAC4I_cjs = require('../chunk-ZE5AAC4I.cjs');
|
|
6
6
|
var chunkBNEY4P4P_cjs = require('../chunk-BNEY4P4P.cjs');
|
|
7
7
|
var chunkYBVOQN4M_cjs = require('../chunk-YBVOQN4M.cjs');
|
|
@@ -20,7 +20,7 @@ Object.defineProperty(exports, "network", {
|
|
|
20
20
|
});
|
|
21
21
|
Object.defineProperty(exports, "telemetry", {
|
|
22
22
|
enumerable: true,
|
|
23
|
-
get: function () { return
|
|
23
|
+
get: function () { return chunkB4MQFJ7G_cjs.telemetry_exports; }
|
|
24
24
|
});
|
|
25
25
|
Object.defineProperty(exports, "tools", {
|
|
26
26
|
enumerable: true,
|
package/dist/server/handlers.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
export { network_exports as network } from '../chunk-C7564HUT.js';
|
|
2
|
-
export { telemetry_exports as telemetry } from '../chunk-
|
|
2
|
+
export { telemetry_exports as telemetry } from '../chunk-BFOA2QQY.js';
|
|
3
3
|
export { tools_exports as tools } from '../chunk-TJKLBTFB.js';
|
|
4
4
|
export { vector_exports as vector } from '../chunk-55DOQLP6.js';
|
|
5
5
|
export { voice_exports as voice } from '../chunk-HFWCEP5S.js';
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@mastra/server",
|
|
3
|
-
"version": "0.10.2-alpha.
|
|
3
|
+
"version": "0.10.2-alpha.2",
|
|
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.10.0",
|
|
49
|
+
"@mastra/core": "^0.10.2-alpha.0",
|
|
50
50
|
"zod": "^3.0.0"
|
|
51
51
|
},
|
|
52
52
|
"devDependencies": {
|
|
@@ -61,7 +61,7 @@
|
|
|
61
61
|
"zod": "^3.24.3",
|
|
62
62
|
"zod-to-json-schema": "^3.24.5",
|
|
63
63
|
"@internal/lint": "0.0.7",
|
|
64
|
-
"@mastra/core": "0.10.2-alpha.
|
|
64
|
+
"@mastra/core": "0.10.2-alpha.2"
|
|
65
65
|
},
|
|
66
66
|
"scripts": {
|
|
67
67
|
"build": "tsup src/index.ts src/server/handlers.ts src/server/handlers/*.ts !src/server/handlers/*.test.ts --format esm,cjs --clean --experimental-dts --treeshake=smallest --splitting",
|