@mastra/server 0.0.0-bundle-dynamic-imports-20250424001248 → 0.0.0-cli-debug-20250611094457

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.
Files changed (81) hide show
  1. package/README.md +48 -135
  2. package/dist/_tsup-dts-rollup.d.cts +331 -42
  3. package/dist/_tsup-dts-rollup.d.ts +331 -42
  4. package/dist/{chunk-4JINXASC.js → chunk-55DOQLP6.js} +5 -4
  5. package/dist/{chunk-QN4KF3BH.cjs → chunk-57CJTIPW.cjs} +2 -2
  6. package/dist/{chunk-ZLBRQFDD.cjs → chunk-64U3UDTH.cjs} +2 -2
  7. package/dist/chunk-6F2H7Y45.js +255 -0
  8. package/dist/{chunk-2FJURXCL.cjs → chunk-6TJSHFCJ.cjs} +44 -36
  9. package/dist/chunk-75ZPJI57.cjs +9 -0
  10. package/dist/chunk-7IBZ4L35.js +344 -0
  11. package/dist/{chunk-7IWQE76Z.cjs → chunk-B4MQFJ7G.cjs} +16 -10
  12. package/dist/{chunk-WTHDCRMY.js → chunk-BFOA2QQY.js} +12 -6
  13. package/dist/{chunk-M56ECCHK.cjs → chunk-BNEY4P4P.cjs} +20 -19
  14. package/dist/{chunk-RE6YL32K.js → chunk-C7564HUT.js} +52 -30
  15. package/dist/{chunk-55HTWX4C.cjs → chunk-CMMOIUFC.cjs} +40 -19
  16. package/dist/{chunk-Q6SHQECN.js → chunk-CP55EVBK.js} +24 -4
  17. package/dist/chunk-GHC4YV6R.js +504 -0
  18. package/dist/{chunk-L7XE5QTW.js → chunk-H5PTF3Y4.js} +1 -1
  19. package/dist/{chunk-5JNVY6DU.js → chunk-HYP7B2TL.js} +7 -5
  20. package/dist/{chunk-RBQASTUP.js → chunk-I7KJZNX5.js} +14 -6
  21. package/dist/chunk-IMBY5XUG.cjs +86 -0
  22. package/dist/chunk-JEWNMAYQ.cjs +263 -0
  23. package/dist/chunk-JKF6PRPU.cjs +357 -0
  24. package/dist/{chunk-3AHQ5RGN.js → chunk-M5ABIP7D.js} +1 -1
  25. package/dist/chunk-MLKGABMK.js +7 -0
  26. package/dist/{chunk-TRDNDNGQ.js → chunk-NYN7KFXL.js} +1 -7
  27. package/dist/{chunk-FV45V6WC.cjs → chunk-OCWPVYNI.cjs} +0 -7
  28. package/dist/chunk-QLG2PFHE.js +81 -0
  29. package/dist/chunk-SDPGVWQJ.cjs +512 -0
  30. package/dist/{chunk-LFOBHRFO.js → chunk-TEZOEGR4.js} +69 -54
  31. package/dist/{chunk-D3G23FP3.cjs → chunk-TJO277H7.cjs} +24 -22
  32. package/dist/chunk-UZ7FJ66C.cjs +332 -0
  33. package/dist/{chunk-FPIWDH5Y.cjs → chunk-VPNDC2DI.cjs} +62 -40
  34. package/dist/chunk-WKWHYFX4.js +2001 -0
  35. package/dist/chunk-XUGQSVZ4.cjs +2004 -0
  36. package/dist/server/handlers/a2a.cjs +30 -0
  37. package/dist/server/handlers/a2a.d.cts +6 -0
  38. package/dist/server/handlers/a2a.d.ts +6 -0
  39. package/dist/server/handlers/a2a.js +1 -0
  40. package/dist/server/handlers/agents.cjs +7 -7
  41. package/dist/server/handlers/agents.js +1 -1
  42. package/dist/server/handlers/error.cjs +2 -2
  43. package/dist/server/handlers/error.js +1 -1
  44. package/dist/server/handlers/legacyWorkflows.cjs +46 -0
  45. package/dist/server/handlers/legacyWorkflows.d.cts +10 -0
  46. package/dist/server/handlers/legacyWorkflows.d.ts +10 -0
  47. package/dist/server/handlers/legacyWorkflows.js +1 -0
  48. package/dist/server/handlers/logs.cjs +4 -4
  49. package/dist/server/handlers/logs.js +1 -1
  50. package/dist/server/handlers/memory.cjs +9 -9
  51. package/dist/server/handlers/memory.js +1 -1
  52. package/dist/server/handlers/network.cjs +5 -5
  53. package/dist/server/handlers/network.js +1 -1
  54. package/dist/server/handlers/telemetry.cjs +3 -3
  55. package/dist/server/handlers/telemetry.js +1 -1
  56. package/dist/server/handlers/tools.cjs +5 -5
  57. package/dist/server/handlers/tools.js +1 -1
  58. package/dist/server/handlers/utils.cjs +2 -2
  59. package/dist/server/handlers/utils.js +1 -1
  60. package/dist/server/handlers/vector.cjs +7 -7
  61. package/dist/server/handlers/vector.js +1 -1
  62. package/dist/server/handlers/voice.cjs +8 -4
  63. package/dist/server/handlers/voice.d.cts +1 -0
  64. package/dist/server/handlers/voice.d.ts +1 -0
  65. package/dist/server/handlers/voice.js +1 -1
  66. package/dist/server/handlers/workflows.cjs +17 -13
  67. package/dist/server/handlers/workflows.d.cts +3 -2
  68. package/dist/server/handlers/workflows.d.ts +3 -2
  69. package/dist/server/handlers/workflows.js +1 -1
  70. package/dist/server/handlers.cjs +33 -23
  71. package/dist/server/handlers.d.cts +2 -0
  72. package/dist/server/handlers.d.ts +2 -0
  73. package/dist/server/handlers.js +11 -9
  74. package/package.json +12 -10
  75. package/dist/chunk-3EJZQ6TQ.js +0 -49
  76. package/dist/chunk-5SWCVTNL.cjs +0 -5579
  77. package/dist/chunk-HCOPJZ4A.cjs +0 -164
  78. package/dist/chunk-OMN3UI6X.js +0 -5576
  79. package/dist/chunk-R4J7XQYU.js +0 -156
  80. package/dist/chunk-SKBVVI24.cjs +0 -54
  81. package/dist/chunk-TZK63M5N.cjs +0 -317
@@ -1,50 +1,60 @@
1
1
  'use strict';
2
2
 
3
- var chunkD3G23FP3_cjs = require('../chunk-D3G23FP3.cjs');
4
- var chunkM56ECCHK_cjs = require('../chunk-M56ECCHK.cjs');
5
- var chunk55HTWX4C_cjs = require('../chunk-55HTWX4C.cjs');
6
- var chunkTZK63M5N_cjs = require('../chunk-TZK63M5N.cjs');
7
- var chunkHCOPJZ4A_cjs = require('../chunk-HCOPJZ4A.cjs');
8
- var chunkSKBVVI24_cjs = require('../chunk-SKBVVI24.cjs');
9
- var chunk2FJURXCL_cjs = require('../chunk-2FJURXCL.cjs');
10
- var chunkFPIWDH5Y_cjs = require('../chunk-FPIWDH5Y.cjs');
11
- var chunk7IWQE76Z_cjs = require('../chunk-7IWQE76Z.cjs');
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 chunkD3G23FP3_cjs.tools_exports; }
27
+ get: function () { return chunkTJO277H7_cjs.tools_exports; }
18
28
  });
19
29
  Object.defineProperty(exports, "vector", {
20
30
  enumerable: true,
21
- get: function () { return chunkM56ECCHK_cjs.vector_exports; }
31
+ get: function () { return chunkBNEY4P4P_cjs.vector_exports; }
22
32
  });
23
33
  Object.defineProperty(exports, "voice", {
24
34
  enumerable: true,
25
- get: function () { return chunk55HTWX4C_cjs.voice_exports; }
35
+ get: function () { return chunkCMMOIUFC_cjs.voice_exports; }
26
36
  });
27
37
  Object.defineProperty(exports, "workflows", {
28
38
  enumerable: true,
29
- get: function () { return chunkTZK63M5N_cjs.workflows_exports; }
39
+ get: function () { return chunkJKF6PRPU_cjs.workflows_exports; }
30
40
  });
31
- Object.defineProperty(exports, "agents", {
41
+ Object.defineProperty(exports, "a2a", {
32
42
  enumerable: true,
33
- get: function () { return chunkHCOPJZ4A_cjs.agents_exports; }
43
+ get: function () { return chunkSDPGVWQJ_cjs.a2a_exports; }
34
44
  });
35
- Object.defineProperty(exports, "logs", {
45
+ Object.defineProperty(exports, "agents", {
36
46
  enumerable: true,
37
- get: function () { return chunkSKBVVI24_cjs.logs_exports; }
47
+ get: function () { return chunkJEWNMAYQ_cjs.agents_exports; }
38
48
  });
39
- Object.defineProperty(exports, "memory", {
49
+ Object.defineProperty(exports, "legacyWorkflows", {
40
50
  enumerable: true,
41
- get: function () { return chunk2FJURXCL_cjs.memory_exports; }
51
+ get: function () { return chunkUZ7FJ66C_cjs.legacyWorkflows_exports; }
42
52
  });
43
- Object.defineProperty(exports, "network", {
53
+ Object.defineProperty(exports, "logs", {
44
54
  enumerable: true,
45
- get: function () { return chunkFPIWDH5Y_cjs.network_exports; }
55
+ get: function () { return chunkIMBY5XUG_cjs.logs_exports; }
46
56
  });
47
- Object.defineProperty(exports, "telemetry", {
57
+ Object.defineProperty(exports, "memory", {
48
58
  enumerable: true,
49
- get: function () { return chunk7IWQE76Z_cjs.telemetry_exports; }
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';
@@ -1,9 +1,11 @@
1
- export { tools_exports as tools } from '../chunk-5JNVY6DU.js';
2
- export { vector_exports as vector } from '../chunk-4JINXASC.js';
3
- export { voice_exports as voice } from '../chunk-Q6SHQECN.js';
4
- export { workflows_exports as workflows } from '../chunk-LFOBHRFO.js';
5
- export { agents_exports as agents } from '../chunk-R4J7XQYU.js';
6
- export { logs_exports as logs } from '../chunk-3EJZQ6TQ.js';
7
- export { memory_exports as memory } from '../chunk-RBQASTUP.js';
8
- export { network_exports as network } from '../chunk-RE6YL32K.js';
9
- export { telemetry_exports as telemetry } from '../chunk-WTHDCRMY.js';
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-bundle-dynamic-imports-20250424001248",
3
+ "version": "0.0.0-cli-debug-20250611094457",
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.0.0-bundle-dynamic-imports-20250424001248"
49
+ "@mastra/core": "^0.10.2-alpha.0",
50
+ "zod": "^3.0.0"
50
51
  },
51
52
  "devDependencies": {
52
- "@ai-sdk/openai": "^1.3.2",
53
- "@microsoft/api-extractor": "^7.52.1",
54
- "@types/node": "^20.17.27",
55
- "eslint": "^9.23.0",
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.4.0",
58
+ "tsup": "^8.5.0",
58
59
  "typescript": "^5.8.2",
59
60
  "vitest": "^2.1.9",
60
- "zod-to-json-schema": "^3.24.3",
61
- "@internal/lint": "0.0.2",
62
- "@mastra/core": "0.0.0-bundle-dynamic-imports-20250424001248"
61
+ "zod": "^3.25.56",
62
+ "zod-to-json-schema": "^3.24.5",
63
+ "@internal/lint": "0.0.0-cli-debug-20250611094457",
64
+ "@mastra/core": "0.0.0-cli-debug-20250611094457"
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",
@@ -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 };