@mastra/server 0.0.0-bundle-dynamic-imports-20250424001248 → 0.0.0-cli-debug-2-20250611100354
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/README.md +48 -135
- package/dist/_tsup-dts-rollup.d.cts +331 -42
- package/dist/_tsup-dts-rollup.d.ts +331 -42
- package/dist/{chunk-4JINXASC.js → chunk-55DOQLP6.js} +5 -4
- package/dist/{chunk-QN4KF3BH.cjs → chunk-57CJTIPW.cjs} +2 -2
- package/dist/{chunk-ZLBRQFDD.cjs → chunk-64U3UDTH.cjs} +2 -2
- package/dist/chunk-6F2H7Y45.js +255 -0
- package/dist/{chunk-2FJURXCL.cjs → chunk-6TJSHFCJ.cjs} +44 -36
- package/dist/chunk-75ZPJI57.cjs +9 -0
- package/dist/chunk-7IBZ4L35.js +344 -0
- package/dist/{chunk-7IWQE76Z.cjs → chunk-B4MQFJ7G.cjs} +16 -10
- package/dist/{chunk-WTHDCRMY.js → chunk-BFOA2QQY.js} +12 -6
- package/dist/{chunk-M56ECCHK.cjs → chunk-BNEY4P4P.cjs} +20 -19
- package/dist/{chunk-RE6YL32K.js → chunk-C7564HUT.js} +52 -30
- package/dist/{chunk-55HTWX4C.cjs → chunk-CMMOIUFC.cjs} +40 -19
- package/dist/{chunk-Q6SHQECN.js → chunk-CP55EVBK.js} +24 -4
- package/dist/chunk-GHC4YV6R.js +504 -0
- package/dist/{chunk-L7XE5QTW.js → chunk-H5PTF3Y4.js} +1 -1
- package/dist/{chunk-5JNVY6DU.js → chunk-HYP7B2TL.js} +7 -5
- package/dist/{chunk-RBQASTUP.js → chunk-I7KJZNX5.js} +14 -6
- package/dist/chunk-IMBY5XUG.cjs +86 -0
- package/dist/chunk-JEWNMAYQ.cjs +263 -0
- package/dist/chunk-JKF6PRPU.cjs +357 -0
- package/dist/{chunk-3AHQ5RGN.js → chunk-M5ABIP7D.js} +1 -1
- package/dist/chunk-MLKGABMK.js +7 -0
- package/dist/{chunk-TRDNDNGQ.js → chunk-NYN7KFXL.js} +1 -7
- package/dist/{chunk-FV45V6WC.cjs → chunk-OCWPVYNI.cjs} +0 -7
- package/dist/chunk-QLG2PFHE.js +81 -0
- package/dist/chunk-SDPGVWQJ.cjs +512 -0
- package/dist/{chunk-LFOBHRFO.js → chunk-TEZOEGR4.js} +69 -54
- package/dist/{chunk-D3G23FP3.cjs → chunk-TJO277H7.cjs} +24 -22
- package/dist/chunk-UZ7FJ66C.cjs +332 -0
- package/dist/{chunk-FPIWDH5Y.cjs → chunk-VPNDC2DI.cjs} +62 -40
- package/dist/chunk-WKWHYFX4.js +2001 -0
- package/dist/chunk-XUGQSVZ4.cjs +2004 -0
- package/dist/server/handlers/a2a.cjs +30 -0
- package/dist/server/handlers/a2a.d.cts +6 -0
- package/dist/server/handlers/a2a.d.ts +6 -0
- package/dist/server/handlers/a2a.js +1 -0
- package/dist/server/handlers/agents.cjs +7 -7
- package/dist/server/handlers/agents.js +1 -1
- package/dist/server/handlers/error.cjs +2 -2
- package/dist/server/handlers/error.js +1 -1
- package/dist/server/handlers/legacyWorkflows.cjs +46 -0
- package/dist/server/handlers/legacyWorkflows.d.cts +10 -0
- package/dist/server/handlers/legacyWorkflows.d.ts +10 -0
- package/dist/server/handlers/legacyWorkflows.js +1 -0
- package/dist/server/handlers/logs.cjs +4 -4
- package/dist/server/handlers/logs.js +1 -1
- package/dist/server/handlers/memory.cjs +9 -9
- package/dist/server/handlers/memory.js +1 -1
- package/dist/server/handlers/network.cjs +5 -5
- package/dist/server/handlers/network.js +1 -1
- package/dist/server/handlers/telemetry.cjs +3 -3
- package/dist/server/handlers/telemetry.js +1 -1
- package/dist/server/handlers/tools.cjs +5 -5
- package/dist/server/handlers/tools.js +1 -1
- package/dist/server/handlers/utils.cjs +2 -2
- package/dist/server/handlers/utils.js +1 -1
- package/dist/server/handlers/vector.cjs +7 -7
- package/dist/server/handlers/vector.js +1 -1
- package/dist/server/handlers/voice.cjs +8 -4
- package/dist/server/handlers/voice.d.cts +1 -0
- package/dist/server/handlers/voice.d.ts +1 -0
- package/dist/server/handlers/voice.js +1 -1
- package/dist/server/handlers/workflows.cjs +17 -13
- package/dist/server/handlers/workflows.d.cts +3 -2
- package/dist/server/handlers/workflows.d.ts +3 -2
- package/dist/server/handlers/workflows.js +1 -1
- package/dist/server/handlers.cjs +33 -23
- package/dist/server/handlers.d.cts +2 -0
- package/dist/server/handlers.d.ts +2 -0
- package/dist/server/handlers.js +11 -9
- package/package.json +12 -10
- package/dist/chunk-3EJZQ6TQ.js +0 -49
- package/dist/chunk-5SWCVTNL.cjs +0 -5579
- package/dist/chunk-HCOPJZ4A.cjs +0 -164
- package/dist/chunk-OMN3UI6X.js +0 -5576
- package/dist/chunk-R4J7XQYU.js +0 -156
- package/dist/chunk-SKBVVI24.cjs +0 -54
- package/dist/chunk-TZK63M5N.cjs +0 -317
package/dist/server/handlers.cjs
CHANGED
|
@@ -1,50 +1,60 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var
|
|
4
|
-
var
|
|
5
|
-
var
|
|
6
|
-
var
|
|
7
|
-
var
|
|
8
|
-
var
|
|
9
|
-
var
|
|
10
|
-
var
|
|
11
|
-
var
|
|
3
|
+
var chunkVPNDC2DI_cjs = require('../chunk-VPNDC2DI.cjs');
|
|
4
|
+
var chunkB4MQFJ7G_cjs = require('../chunk-B4MQFJ7G.cjs');
|
|
5
|
+
var chunkTJO277H7_cjs = require('../chunk-TJO277H7.cjs');
|
|
6
|
+
var chunkBNEY4P4P_cjs = require('../chunk-BNEY4P4P.cjs');
|
|
7
|
+
var chunkCMMOIUFC_cjs = require('../chunk-CMMOIUFC.cjs');
|
|
8
|
+
var chunkJKF6PRPU_cjs = require('../chunk-JKF6PRPU.cjs');
|
|
9
|
+
var chunkSDPGVWQJ_cjs = require('../chunk-SDPGVWQJ.cjs');
|
|
10
|
+
var chunkJEWNMAYQ_cjs = require('../chunk-JEWNMAYQ.cjs');
|
|
11
|
+
var chunkUZ7FJ66C_cjs = require('../chunk-UZ7FJ66C.cjs');
|
|
12
|
+
var chunkIMBY5XUG_cjs = require('../chunk-IMBY5XUG.cjs');
|
|
13
|
+
var chunk6TJSHFCJ_cjs = require('../chunk-6TJSHFCJ.cjs');
|
|
12
14
|
|
|
13
15
|
|
|
14
16
|
|
|
17
|
+
Object.defineProperty(exports, "network", {
|
|
18
|
+
enumerable: true,
|
|
19
|
+
get: function () { return chunkVPNDC2DI_cjs.network_exports; }
|
|
20
|
+
});
|
|
21
|
+
Object.defineProperty(exports, "telemetry", {
|
|
22
|
+
enumerable: true,
|
|
23
|
+
get: function () { return chunkB4MQFJ7G_cjs.telemetry_exports; }
|
|
24
|
+
});
|
|
15
25
|
Object.defineProperty(exports, "tools", {
|
|
16
26
|
enumerable: true,
|
|
17
|
-
get: function () { return
|
|
27
|
+
get: function () { return chunkTJO277H7_cjs.tools_exports; }
|
|
18
28
|
});
|
|
19
29
|
Object.defineProperty(exports, "vector", {
|
|
20
30
|
enumerable: true,
|
|
21
|
-
get: function () { return
|
|
31
|
+
get: function () { return chunkBNEY4P4P_cjs.vector_exports; }
|
|
22
32
|
});
|
|
23
33
|
Object.defineProperty(exports, "voice", {
|
|
24
34
|
enumerable: true,
|
|
25
|
-
get: function () { return
|
|
35
|
+
get: function () { return chunkCMMOIUFC_cjs.voice_exports; }
|
|
26
36
|
});
|
|
27
37
|
Object.defineProperty(exports, "workflows", {
|
|
28
38
|
enumerable: true,
|
|
29
|
-
get: function () { return
|
|
39
|
+
get: function () { return chunkJKF6PRPU_cjs.workflows_exports; }
|
|
30
40
|
});
|
|
31
|
-
Object.defineProperty(exports, "
|
|
41
|
+
Object.defineProperty(exports, "a2a", {
|
|
32
42
|
enumerable: true,
|
|
33
|
-
get: function () { return
|
|
43
|
+
get: function () { return chunkSDPGVWQJ_cjs.a2a_exports; }
|
|
34
44
|
});
|
|
35
|
-
Object.defineProperty(exports, "
|
|
45
|
+
Object.defineProperty(exports, "agents", {
|
|
36
46
|
enumerable: true,
|
|
37
|
-
get: function () { return
|
|
47
|
+
get: function () { return chunkJEWNMAYQ_cjs.agents_exports; }
|
|
38
48
|
});
|
|
39
|
-
Object.defineProperty(exports, "
|
|
49
|
+
Object.defineProperty(exports, "legacyWorkflows", {
|
|
40
50
|
enumerable: true,
|
|
41
|
-
get: function () { return
|
|
51
|
+
get: function () { return chunkUZ7FJ66C_cjs.legacyWorkflows_exports; }
|
|
42
52
|
});
|
|
43
|
-
Object.defineProperty(exports, "
|
|
53
|
+
Object.defineProperty(exports, "logs", {
|
|
44
54
|
enumerable: true,
|
|
45
|
-
get: function () { return
|
|
55
|
+
get: function () { return chunkIMBY5XUG_cjs.logs_exports; }
|
|
46
56
|
});
|
|
47
|
-
Object.defineProperty(exports, "
|
|
57
|
+
Object.defineProperty(exports, "memory", {
|
|
48
58
|
enumerable: true,
|
|
49
|
-
get: function () { return
|
|
59
|
+
get: function () { return chunk6TJSHFCJ_cjs.memory_exports; }
|
|
50
60
|
});
|
|
@@ -1,9 +1,11 @@
|
|
|
1
1
|
export { agents } from '../_tsup-dts-rollup.cjs';
|
|
2
|
+
export { a2a } from '../_tsup-dts-rollup.cjs';
|
|
2
3
|
export { logs } from '../_tsup-dts-rollup.cjs';
|
|
3
4
|
export { memory } from '../_tsup-dts-rollup.cjs';
|
|
4
5
|
export { network } from '../_tsup-dts-rollup.cjs';
|
|
5
6
|
export { telemetry } from '../_tsup-dts-rollup.cjs';
|
|
6
7
|
export { tools } from '../_tsup-dts-rollup.cjs';
|
|
8
|
+
export { legacyWorkflows } from '../_tsup-dts-rollup.cjs';
|
|
7
9
|
export { workflows } from '../_tsup-dts-rollup.cjs';
|
|
8
10
|
export { vector } from '../_tsup-dts-rollup.cjs';
|
|
9
11
|
export { voice } from '../_tsup-dts-rollup.cjs';
|
|
@@ -1,9 +1,11 @@
|
|
|
1
1
|
export { agents } from '../_tsup-dts-rollup.js';
|
|
2
|
+
export { a2a } from '../_tsup-dts-rollup.js';
|
|
2
3
|
export { logs } from '../_tsup-dts-rollup.js';
|
|
3
4
|
export { memory } from '../_tsup-dts-rollup.js';
|
|
4
5
|
export { network } from '../_tsup-dts-rollup.js';
|
|
5
6
|
export { telemetry } from '../_tsup-dts-rollup.js';
|
|
6
7
|
export { tools } from '../_tsup-dts-rollup.js';
|
|
8
|
+
export { legacyWorkflows } from '../_tsup-dts-rollup.js';
|
|
7
9
|
export { workflows } from '../_tsup-dts-rollup.js';
|
|
8
10
|
export { vector } from '../_tsup-dts-rollup.js';
|
|
9
11
|
export { voice } from '../_tsup-dts-rollup.js';
|
package/dist/server/handlers.js
CHANGED
|
@@ -1,9 +1,11 @@
|
|
|
1
|
-
export {
|
|
2
|
-
export {
|
|
3
|
-
export {
|
|
4
|
-
export {
|
|
5
|
-
export {
|
|
6
|
-
export {
|
|
7
|
-
export {
|
|
8
|
-
export {
|
|
9
|
-
export {
|
|
1
|
+
export { network_exports as network } from '../chunk-C7564HUT.js';
|
|
2
|
+
export { telemetry_exports as telemetry } from '../chunk-BFOA2QQY.js';
|
|
3
|
+
export { tools_exports as tools } from '../chunk-HYP7B2TL.js';
|
|
4
|
+
export { vector_exports as vector } from '../chunk-55DOQLP6.js';
|
|
5
|
+
export { voice_exports as voice } from '../chunk-CP55EVBK.js';
|
|
6
|
+
export { workflows_exports as workflows } from '../chunk-7IBZ4L35.js';
|
|
7
|
+
export { a2a_exports as a2a } from '../chunk-GHC4YV6R.js';
|
|
8
|
+
export { agents_exports as agents } from '../chunk-6F2H7Y45.js';
|
|
9
|
+
export { legacyWorkflows_exports as legacyWorkflows } from '../chunk-TEZOEGR4.js';
|
|
10
|
+
export { logs_exports as logs } from '../chunk-QLG2PFHE.js';
|
|
11
|
+
export { memory_exports as memory } from '../chunk-I7KJZNX5.js';
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@mastra/server",
|
|
3
|
-
"version": "0.0.0-
|
|
3
|
+
"version": "0.0.0-cli-debug-2-20250611100354",
|
|
4
4
|
"description": "",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"files": [
|
|
@@ -46,20 +46,22 @@
|
|
|
46
46
|
"license": "Elastic-2.0",
|
|
47
47
|
"dependencies": {},
|
|
48
48
|
"peerDependencies": {
|
|
49
|
-
"@mastra/core": "0.
|
|
49
|
+
"@mastra/core": "^0.10.2-alpha.0",
|
|
50
|
+
"zod": "^3.0.0"
|
|
50
51
|
},
|
|
51
52
|
"devDependencies": {
|
|
52
|
-
"@ai-sdk/openai": "^1.3.
|
|
53
|
-
"@microsoft/api-extractor": "^7.52.
|
|
54
|
-
"@types/node": "^20.17.
|
|
55
|
-
"eslint": "^9.
|
|
53
|
+
"@ai-sdk/openai": "^1.3.22",
|
|
54
|
+
"@microsoft/api-extractor": "^7.52.8",
|
|
55
|
+
"@types/node": "^20.17.57",
|
|
56
|
+
"eslint": "^9.28.0",
|
|
56
57
|
"superjson": "^2.2.2",
|
|
57
|
-
"tsup": "^8.
|
|
58
|
+
"tsup": "^8.5.0",
|
|
58
59
|
"typescript": "^5.8.2",
|
|
59
60
|
"vitest": "^2.1.9",
|
|
60
|
-
"zod
|
|
61
|
-
"
|
|
62
|
-
"@
|
|
61
|
+
"zod": "^3.25.56",
|
|
62
|
+
"zod-to-json-schema": "^3.24.5",
|
|
63
|
+
"@internal/lint": "0.0.0-cli-debug-2-20250611100354",
|
|
64
|
+
"@mastra/core": "0.0.0-cli-debug-2-20250611100354"
|
|
63
65
|
},
|
|
64
66
|
"scripts": {
|
|
65
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",
|
package/dist/chunk-3EJZQ6TQ.js
DELETED
|
@@ -1,49 +0,0 @@
|
|
|
1
|
-
import { validateBody } from './chunk-L7XE5QTW.js';
|
|
2
|
-
import { handleError } from './chunk-3AHQ5RGN.js';
|
|
3
|
-
import { __export } from './chunk-TRDNDNGQ.js';
|
|
4
|
-
|
|
5
|
-
// src/server/handlers/logs.ts
|
|
6
|
-
var logs_exports = {};
|
|
7
|
-
__export(logs_exports, {
|
|
8
|
-
getLogTransports: () => getLogTransports,
|
|
9
|
-
getLogsByRunIdHandler: () => getLogsByRunIdHandler,
|
|
10
|
-
getLogsHandler: () => getLogsHandler
|
|
11
|
-
});
|
|
12
|
-
async function getLogsHandler({
|
|
13
|
-
mastra,
|
|
14
|
-
transportId
|
|
15
|
-
}) {
|
|
16
|
-
try {
|
|
17
|
-
validateBody({ transportId });
|
|
18
|
-
const logs = await mastra.getLogs(transportId);
|
|
19
|
-
return logs;
|
|
20
|
-
} catch (error) {
|
|
21
|
-
return handleError(error, "Error getting logs");
|
|
22
|
-
}
|
|
23
|
-
}
|
|
24
|
-
async function getLogsByRunIdHandler({
|
|
25
|
-
mastra,
|
|
26
|
-
runId,
|
|
27
|
-
transportId
|
|
28
|
-
}) {
|
|
29
|
-
try {
|
|
30
|
-
validateBody({ runId, transportId });
|
|
31
|
-
const logs = await mastra.getLogsByRunId({ runId, transportId });
|
|
32
|
-
return logs;
|
|
33
|
-
} catch (error) {
|
|
34
|
-
return handleError(error, "Error getting logs by run ID");
|
|
35
|
-
}
|
|
36
|
-
}
|
|
37
|
-
async function getLogTransports({ mastra }) {
|
|
38
|
-
try {
|
|
39
|
-
const logger = mastra.getLogger();
|
|
40
|
-
const transports = logger.transports;
|
|
41
|
-
return {
|
|
42
|
-
transports: transports ? Object.keys(transports) : []
|
|
43
|
-
};
|
|
44
|
-
} catch (error) {
|
|
45
|
-
return handleError(error, "Error getting log Transports");
|
|
46
|
-
}
|
|
47
|
-
}
|
|
48
|
-
|
|
49
|
-
export { getLogTransports, getLogsByRunIdHandler, getLogsHandler, logs_exports };
|