@mastra/server 0.13.3-alpha.0 → 0.14.0-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.
Files changed (88) hide show
  1. package/dist/{chunk-UVOSITKU.js → chunk-2M2NTLZE.js} +3 -3
  2. package/dist/{chunk-UVOSITKU.js.map → chunk-2M2NTLZE.js.map} +1 -1
  3. package/dist/chunk-37NQ555F.cjs +7826 -0
  4. package/dist/chunk-37NQ555F.cjs.map +1 -0
  5. package/dist/{chunk-KXNFZXLG.cjs → chunk-3THIIWWW.cjs} +4 -4
  6. package/dist/{chunk-KXNFZXLG.cjs.map → chunk-3THIIWWW.cjs.map} +1 -1
  7. package/dist/{chunk-JNWFG7JP.js → chunk-5QUKZCEF.js} +3 -3
  8. package/dist/{chunk-JNWFG7JP.js.map → chunk-5QUKZCEF.js.map} +1 -1
  9. package/dist/{chunk-ILCWPBYQ.cjs → chunk-B2L53BNJ.cjs} +4 -4
  10. package/dist/{chunk-ILCWPBYQ.cjs.map → chunk-B2L53BNJ.cjs.map} +1 -1
  11. package/dist/{chunk-Y3J45CVZ.js → chunk-B43YAQJR.js} +3 -3
  12. package/dist/{chunk-Y3J45CVZ.js.map → chunk-B43YAQJR.js.map} +1 -1
  13. package/dist/{chunk-ZKJZQN24.js → chunk-DT2MVRFD.js} +3 -3
  14. package/dist/{chunk-ZKJZQN24.js.map → chunk-DT2MVRFD.js.map} +1 -1
  15. package/dist/chunk-EMMSS5I5.cjs +37 -0
  16. package/dist/{chunk-Q7SFCCGT.cjs.map → chunk-EMMSS5I5.cjs.map} +1 -1
  17. package/dist/chunk-G3PMV62Z.js +33 -0
  18. package/dist/{chunk-PZ5AY32C.js.map → chunk-G3PMV62Z.js.map} +1 -1
  19. package/dist/{chunk-RQQNZZAI.cjs → chunk-GCS2NCWM.cjs} +4 -4
  20. package/dist/{chunk-RQQNZZAI.cjs.map → chunk-GCS2NCWM.cjs.map} +1 -1
  21. package/dist/{chunk-S37KCGOR.cjs → chunk-HA6FNLRP.cjs} +4 -4
  22. package/dist/{chunk-S37KCGOR.cjs.map → chunk-HA6FNLRP.cjs.map} +1 -1
  23. package/dist/{chunk-BUOJL3MN.js → chunk-ID4HDWQJ.js} +3 -3
  24. package/dist/{chunk-BUOJL3MN.js.map → chunk-ID4HDWQJ.js.map} +1 -1
  25. package/dist/{chunk-4CEZIJWJ.cjs → chunk-JGD42NME.cjs} +4 -4
  26. package/dist/{chunk-4CEZIJWJ.cjs.map → chunk-JGD42NME.cjs.map} +1 -1
  27. package/dist/{chunk-4US5W7PH.cjs → chunk-KLCYAQBL.cjs} +4 -4
  28. package/dist/{chunk-4US5W7PH.cjs.map → chunk-KLCYAQBL.cjs.map} +1 -1
  29. package/dist/{chunk-JGVY3KWV.cjs → chunk-LHZNQ6RL.cjs} +4 -4
  30. package/dist/{chunk-JGVY3KWV.cjs.map → chunk-LHZNQ6RL.cjs.map} +1 -1
  31. package/dist/{chunk-O4I563YW.cjs → chunk-MARALOVU.cjs} +4 -4
  32. package/dist/{chunk-O4I563YW.cjs.map → chunk-MARALOVU.cjs.map} +1 -1
  33. package/dist/chunk-MG5HDGGH.js +7815 -0
  34. package/dist/chunk-MG5HDGGH.js.map +1 -0
  35. package/dist/{chunk-BED2O446.cjs → chunk-NPE3X7FQ.cjs} +4 -4
  36. package/dist/{chunk-BED2O446.cjs.map → chunk-NPE3X7FQ.cjs.map} +1 -1
  37. package/dist/{chunk-L7YG7WQH.js → chunk-NXLKV5JO.js} +3 -3
  38. package/dist/{chunk-L7YG7WQH.js.map → chunk-NXLKV5JO.js.map} +1 -1
  39. package/dist/{chunk-SQ7KKIH3.js → chunk-PHZHWQZP.js} +3 -3
  40. package/dist/{chunk-SQ7KKIH3.js.map → chunk-PHZHWQZP.js.map} +1 -1
  41. package/dist/{chunk-HWHKM67I.js → chunk-QBWF6U7Z.js} +3 -3
  42. package/dist/{chunk-HWHKM67I.js.map → chunk-QBWF6U7Z.js.map} +1 -1
  43. package/dist/{chunk-4MQU6AJN.js → chunk-ROA7BCHD.js} +3 -3
  44. package/dist/{chunk-4MQU6AJN.js.map → chunk-ROA7BCHD.js.map} +1 -1
  45. package/dist/{chunk-NCS2OXX6.cjs → chunk-T3TIA3O6.cjs} +4 -4
  46. package/dist/{chunk-NCS2OXX6.cjs.map → chunk-T3TIA3O6.cjs.map} +1 -1
  47. package/dist/{chunk-GX25CWC7.cjs → chunk-UUO7UO6C.cjs} +4 -4
  48. package/dist/{chunk-GX25CWC7.cjs.map → chunk-UUO7UO6C.cjs.map} +1 -1
  49. package/dist/{chunk-G7NVCO5M.js → chunk-WHN4VX55.js} +3 -3
  50. package/dist/{chunk-G7NVCO5M.js.map → chunk-WHN4VX55.js.map} +1 -1
  51. package/dist/{chunk-YS66MFDY.js → chunk-Z2HSKJPF.js} +3 -3
  52. package/dist/{chunk-YS66MFDY.js.map → chunk-Z2HSKJPF.js.map} +1 -1
  53. package/dist/server/handlers/a2a.cjs +7 -7
  54. package/dist/server/handlers/a2a.js +1 -1
  55. package/dist/server/handlers/agents.cjs +13 -9
  56. package/dist/server/handlers/agents.d.ts +4 -2
  57. package/dist/server/handlers/agents.d.ts.map +1 -1
  58. package/dist/server/handlers/agents.js +1 -1
  59. package/dist/server/handlers/legacyWorkflows.cjs +11 -11
  60. package/dist/server/handlers/legacyWorkflows.js +1 -1
  61. package/dist/server/handlers/logs.cjs +4 -4
  62. package/dist/server/handlers/logs.js +1 -1
  63. package/dist/server/handlers/memory.cjs +16 -16
  64. package/dist/server/handlers/memory.js +1 -1
  65. package/dist/server/handlers/network.cjs +5 -5
  66. package/dist/server/handlers/network.js +1 -1
  67. package/dist/server/handlers/scores.cjs +7 -7
  68. package/dist/server/handlers/scores.js +1 -1
  69. package/dist/server/handlers/telemetry.cjs +3 -3
  70. package/dist/server/handlers/telemetry.js +1 -1
  71. package/dist/server/handlers/tools.cjs +5 -5
  72. package/dist/server/handlers/tools.js +1 -1
  73. package/dist/server/handlers/vNextNetwork.d.ts.map +1 -1
  74. package/dist/server/handlers/vector.cjs +7 -7
  75. package/dist/server/handlers/vector.js +1 -1
  76. package/dist/server/handlers/voice.cjs +5 -5
  77. package/dist/server/handlers/voice.js +1 -1
  78. package/dist/server/handlers/workflows.cjs +16 -16
  79. package/dist/server/handlers/workflows.js +1 -1
  80. package/dist/server/handlers.cjs +24 -24
  81. package/dist/server/handlers.js +12 -12
  82. package/package.json +8 -4
  83. package/dist/chunk-43YZEULM.js +0 -319
  84. package/dist/chunk-43YZEULM.js.map +0 -1
  85. package/dist/chunk-PZ5AY32C.js +0 -9
  86. package/dist/chunk-Q7SFCCGT.cjs +0 -11
  87. package/dist/chunk-RXHLHMI3.cjs +0 -329
  88. package/dist/chunk-RXHLHMI3.cjs.map +0 -1
@@ -1,32 +1,32 @@
1
1
  'use strict';
2
2
 
3
- var chunkNCS2OXX6_cjs = require('../../chunk-NCS2OXX6.cjs');
3
+ var chunkT3TIA3O6_cjs = require('../../chunk-T3TIA3O6.cjs');
4
4
 
5
5
 
6
6
 
7
7
  Object.defineProperty(exports, "createIndex", {
8
8
  enumerable: true,
9
- get: function () { return chunkNCS2OXX6_cjs.createIndex; }
9
+ get: function () { return chunkT3TIA3O6_cjs.createIndex; }
10
10
  });
11
11
  Object.defineProperty(exports, "deleteIndex", {
12
12
  enumerable: true,
13
- get: function () { return chunkNCS2OXX6_cjs.deleteIndex; }
13
+ get: function () { return chunkT3TIA3O6_cjs.deleteIndex; }
14
14
  });
15
15
  Object.defineProperty(exports, "describeIndex", {
16
16
  enumerable: true,
17
- get: function () { return chunkNCS2OXX6_cjs.describeIndex; }
17
+ get: function () { return chunkT3TIA3O6_cjs.describeIndex; }
18
18
  });
19
19
  Object.defineProperty(exports, "listIndexes", {
20
20
  enumerable: true,
21
- get: function () { return chunkNCS2OXX6_cjs.listIndexes; }
21
+ get: function () { return chunkT3TIA3O6_cjs.listIndexes; }
22
22
  });
23
23
  Object.defineProperty(exports, "queryVectors", {
24
24
  enumerable: true,
25
- get: function () { return chunkNCS2OXX6_cjs.queryVectors; }
25
+ get: function () { return chunkT3TIA3O6_cjs.queryVectors; }
26
26
  });
27
27
  Object.defineProperty(exports, "upsertVectors", {
28
28
  enumerable: true,
29
- get: function () { return chunkNCS2OXX6_cjs.upsertVectors; }
29
+ get: function () { return chunkT3TIA3O6_cjs.upsertVectors; }
30
30
  });
31
31
  //# sourceMappingURL=vector.cjs.map
32
32
  //# sourceMappingURL=vector.cjs.map
@@ -1,3 +1,3 @@
1
- export { createIndex, deleteIndex, describeIndex, listIndexes, queryVectors, upsertVectors } from '../../chunk-G7NVCO5M.js';
1
+ export { createIndex, deleteIndex, describeIndex, listIndexes, queryVectors, upsertVectors } from '../../chunk-WHN4VX55.js';
2
2
  //# sourceMappingURL=vector.js.map
3
3
  //# sourceMappingURL=vector.js.map
@@ -1,24 +1,24 @@
1
1
  'use strict';
2
2
 
3
- var chunk4US5W7PH_cjs = require('../../chunk-4US5W7PH.cjs');
3
+ var chunkKLCYAQBL_cjs = require('../../chunk-KLCYAQBL.cjs');
4
4
 
5
5
 
6
6
 
7
7
  Object.defineProperty(exports, "generateSpeechHandler", {
8
8
  enumerable: true,
9
- get: function () { return chunk4US5W7PH_cjs.generateSpeechHandler; }
9
+ get: function () { return chunkKLCYAQBL_cjs.generateSpeechHandler; }
10
10
  });
11
11
  Object.defineProperty(exports, "getListenerHandler", {
12
12
  enumerable: true,
13
- get: function () { return chunk4US5W7PH_cjs.getListenerHandler; }
13
+ get: function () { return chunkKLCYAQBL_cjs.getListenerHandler; }
14
14
  });
15
15
  Object.defineProperty(exports, "getSpeakersHandler", {
16
16
  enumerable: true,
17
- get: function () { return chunk4US5W7PH_cjs.getSpeakersHandler; }
17
+ get: function () { return chunkKLCYAQBL_cjs.getSpeakersHandler; }
18
18
  });
19
19
  Object.defineProperty(exports, "transcribeSpeechHandler", {
20
20
  enumerable: true,
21
- get: function () { return chunk4US5W7PH_cjs.transcribeSpeechHandler; }
21
+ get: function () { return chunkKLCYAQBL_cjs.transcribeSpeechHandler; }
22
22
  });
23
23
  //# sourceMappingURL=voice.cjs.map
24
24
  //# sourceMappingURL=voice.cjs.map
@@ -1,3 +1,3 @@
1
- export { generateSpeechHandler, getListenerHandler, getSpeakersHandler, transcribeSpeechHandler } from '../../chunk-HWHKM67I.js';
1
+ export { generateSpeechHandler, getListenerHandler, getSpeakersHandler, transcribeSpeechHandler } from '../../chunk-QBWF6U7Z.js';
2
2
  //# sourceMappingURL=voice.js.map
3
3
  //# sourceMappingURL=voice.js.map
@@ -1,68 +1,68 @@
1
1
  'use strict';
2
2
 
3
- var chunkS37KCGOR_cjs = require('../../chunk-S37KCGOR.cjs');
3
+ var chunkHA6FNLRP_cjs = require('../../chunk-HA6FNLRP.cjs');
4
4
 
5
5
 
6
6
 
7
7
  Object.defineProperty(exports, "cancelWorkflowRunHandler", {
8
8
  enumerable: true,
9
- get: function () { return chunkS37KCGOR_cjs.cancelWorkflowRunHandler; }
9
+ get: function () { return chunkHA6FNLRP_cjs.cancelWorkflowRunHandler; }
10
10
  });
11
11
  Object.defineProperty(exports, "createWorkflowRunHandler", {
12
12
  enumerable: true,
13
- get: function () { return chunkS37KCGOR_cjs.createWorkflowRunHandler; }
13
+ get: function () { return chunkHA6FNLRP_cjs.createWorkflowRunHandler; }
14
14
  });
15
15
  Object.defineProperty(exports, "getWorkflowByIdHandler", {
16
16
  enumerable: true,
17
- get: function () { return chunkS37KCGOR_cjs.getWorkflowByIdHandler; }
17
+ get: function () { return chunkHA6FNLRP_cjs.getWorkflowByIdHandler; }
18
18
  });
19
19
  Object.defineProperty(exports, "getWorkflowRunByIdHandler", {
20
20
  enumerable: true,
21
- get: function () { return chunkS37KCGOR_cjs.getWorkflowRunByIdHandler; }
21
+ get: function () { return chunkHA6FNLRP_cjs.getWorkflowRunByIdHandler; }
22
22
  });
23
23
  Object.defineProperty(exports, "getWorkflowRunExecutionResultHandler", {
24
24
  enumerable: true,
25
- get: function () { return chunkS37KCGOR_cjs.getWorkflowRunExecutionResultHandler; }
25
+ get: function () { return chunkHA6FNLRP_cjs.getWorkflowRunExecutionResultHandler; }
26
26
  });
27
27
  Object.defineProperty(exports, "getWorkflowRunsHandler", {
28
28
  enumerable: true,
29
- get: function () { return chunkS37KCGOR_cjs.getWorkflowRunsHandler; }
29
+ get: function () { return chunkHA6FNLRP_cjs.getWorkflowRunsHandler; }
30
30
  });
31
31
  Object.defineProperty(exports, "getWorkflowsHandler", {
32
32
  enumerable: true,
33
- get: function () { return chunkS37KCGOR_cjs.getWorkflowsHandler; }
33
+ get: function () { return chunkHA6FNLRP_cjs.getWorkflowsHandler; }
34
34
  });
35
35
  Object.defineProperty(exports, "resumeAsyncWorkflowHandler", {
36
36
  enumerable: true,
37
- get: function () { return chunkS37KCGOR_cjs.resumeAsyncWorkflowHandler; }
37
+ get: function () { return chunkHA6FNLRP_cjs.resumeAsyncWorkflowHandler; }
38
38
  });
39
39
  Object.defineProperty(exports, "resumeWorkflowHandler", {
40
40
  enumerable: true,
41
- get: function () { return chunkS37KCGOR_cjs.resumeWorkflowHandler; }
41
+ get: function () { return chunkHA6FNLRP_cjs.resumeWorkflowHandler; }
42
42
  });
43
43
  Object.defineProperty(exports, "sendWorkflowRunEventHandler", {
44
44
  enumerable: true,
45
- get: function () { return chunkS37KCGOR_cjs.sendWorkflowRunEventHandler; }
45
+ get: function () { return chunkHA6FNLRP_cjs.sendWorkflowRunEventHandler; }
46
46
  });
47
47
  Object.defineProperty(exports, "startAsyncWorkflowHandler", {
48
48
  enumerable: true,
49
- get: function () { return chunkS37KCGOR_cjs.startAsyncWorkflowHandler; }
49
+ get: function () { return chunkHA6FNLRP_cjs.startAsyncWorkflowHandler; }
50
50
  });
51
51
  Object.defineProperty(exports, "startWorkflowRunHandler", {
52
52
  enumerable: true,
53
- get: function () { return chunkS37KCGOR_cjs.startWorkflowRunHandler; }
53
+ get: function () { return chunkHA6FNLRP_cjs.startWorkflowRunHandler; }
54
54
  });
55
55
  Object.defineProperty(exports, "streamVNextWorkflowHandler", {
56
56
  enumerable: true,
57
- get: function () { return chunkS37KCGOR_cjs.streamVNextWorkflowHandler; }
57
+ get: function () { return chunkHA6FNLRP_cjs.streamVNextWorkflowHandler; }
58
58
  });
59
59
  Object.defineProperty(exports, "streamWorkflowHandler", {
60
60
  enumerable: true,
61
- get: function () { return chunkS37KCGOR_cjs.streamWorkflowHandler; }
61
+ get: function () { return chunkHA6FNLRP_cjs.streamWorkflowHandler; }
62
62
  });
63
63
  Object.defineProperty(exports, "watchWorkflowHandler", {
64
64
  enumerable: true,
65
- get: function () { return chunkS37KCGOR_cjs.watchWorkflowHandler; }
65
+ get: function () { return chunkHA6FNLRP_cjs.watchWorkflowHandler; }
66
66
  });
67
67
  //# sourceMappingURL=workflows.cjs.map
68
68
  //# sourceMappingURL=workflows.cjs.map
@@ -1,3 +1,3 @@
1
- export { cancelWorkflowRunHandler, createWorkflowRunHandler, getWorkflowByIdHandler, getWorkflowRunByIdHandler, getWorkflowRunExecutionResultHandler, getWorkflowRunsHandler, getWorkflowsHandler, resumeAsyncWorkflowHandler, resumeWorkflowHandler, sendWorkflowRunEventHandler, startAsyncWorkflowHandler, startWorkflowRunHandler, streamVNextWorkflowHandler, streamWorkflowHandler, watchWorkflowHandler } from '../../chunk-BUOJL3MN.js';
1
+ export { cancelWorkflowRunHandler, createWorkflowRunHandler, getWorkflowByIdHandler, getWorkflowRunByIdHandler, getWorkflowRunExecutionResultHandler, getWorkflowRunsHandler, getWorkflowsHandler, resumeAsyncWorkflowHandler, resumeWorkflowHandler, sendWorkflowRunEventHandler, startAsyncWorkflowHandler, startWorkflowRunHandler, streamVNextWorkflowHandler, streamWorkflowHandler, watchWorkflowHandler } from '../../chunk-ID4HDWQJ.js';
2
2
  //# sourceMappingURL=workflows.js.map
3
3
  //# sourceMappingURL=workflows.js.map
@@ -1,67 +1,67 @@
1
1
  'use strict';
2
2
 
3
- var chunk4US5W7PH_cjs = require('../chunk-4US5W7PH.cjs');
4
- var chunkS37KCGOR_cjs = require('../chunk-S37KCGOR.cjs');
5
- var chunkGX25CWC7_cjs = require('../chunk-GX25CWC7.cjs');
6
- var chunk4CEZIJWJ_cjs = require('../chunk-4CEZIJWJ.cjs');
7
- var chunkRQQNZZAI_cjs = require('../chunk-RQQNZZAI.cjs');
8
- var chunkILCWPBYQ_cjs = require('../chunk-ILCWPBYQ.cjs');
9
- var chunkO4I563YW_cjs = require('../chunk-O4I563YW.cjs');
10
- var chunkNCS2OXX6_cjs = require('../chunk-NCS2OXX6.cjs');
11
- var chunkKXNFZXLG_cjs = require('../chunk-KXNFZXLG.cjs');
12
- var chunkRXHLHMI3_cjs = require('../chunk-RXHLHMI3.cjs');
13
- var chunkJGVY3KWV_cjs = require('../chunk-JGVY3KWV.cjs');
14
- var chunkBED2O446_cjs = require('../chunk-BED2O446.cjs');
3
+ var chunkKLCYAQBL_cjs = require('../chunk-KLCYAQBL.cjs');
4
+ var chunkHA6FNLRP_cjs = require('../chunk-HA6FNLRP.cjs');
5
+ var chunkUUO7UO6C_cjs = require('../chunk-UUO7UO6C.cjs');
6
+ var chunkJGD42NME_cjs = require('../chunk-JGD42NME.cjs');
7
+ var chunkGCS2NCWM_cjs = require('../chunk-GCS2NCWM.cjs');
8
+ var chunkB2L53BNJ_cjs = require('../chunk-B2L53BNJ.cjs');
9
+ var chunkMARALOVU_cjs = require('../chunk-MARALOVU.cjs');
10
+ var chunkT3TIA3O6_cjs = require('../chunk-T3TIA3O6.cjs');
11
+ var chunk3THIIWWW_cjs = require('../chunk-3THIIWWW.cjs');
12
+ var chunk37NQ555F_cjs = require('../chunk-37NQ555F.cjs');
13
+ var chunkLHZNQ6RL_cjs = require('../chunk-LHZNQ6RL.cjs');
14
+ var chunkNPE3X7FQ_cjs = require('../chunk-NPE3X7FQ.cjs');
15
15
 
16
16
 
17
17
 
18
18
  Object.defineProperty(exports, "voice", {
19
19
  enumerable: true,
20
- get: function () { return chunk4US5W7PH_cjs.voice_exports; }
20
+ get: function () { return chunkKLCYAQBL_cjs.voice_exports; }
21
21
  });
22
22
  Object.defineProperty(exports, "workflows", {
23
23
  enumerable: true,
24
- get: function () { return chunkS37KCGOR_cjs.workflows_exports; }
24
+ get: function () { return chunkHA6FNLRP_cjs.workflows_exports; }
25
25
  });
26
26
  Object.defineProperty(exports, "memory", {
27
27
  enumerable: true,
28
- get: function () { return chunkGX25CWC7_cjs.memory_exports; }
28
+ get: function () { return chunkUUO7UO6C_cjs.memory_exports; }
29
29
  });
30
30
  Object.defineProperty(exports, "network", {
31
31
  enumerable: true,
32
- get: function () { return chunk4CEZIJWJ_cjs.network_exports; }
32
+ get: function () { return chunkJGD42NME_cjs.network_exports; }
33
33
  });
34
34
  Object.defineProperty(exports, "scores", {
35
35
  enumerable: true,
36
- get: function () { return chunkRQQNZZAI_cjs.scores_exports; }
36
+ get: function () { return chunkGCS2NCWM_cjs.scores_exports; }
37
37
  });
38
38
  Object.defineProperty(exports, "telemetry", {
39
39
  enumerable: true,
40
- get: function () { return chunkILCWPBYQ_cjs.telemetry_exports; }
40
+ get: function () { return chunkB2L53BNJ_cjs.telemetry_exports; }
41
41
  });
42
42
  Object.defineProperty(exports, "tools", {
43
43
  enumerable: true,
44
- get: function () { return chunkO4I563YW_cjs.tools_exports; }
44
+ get: function () { return chunkMARALOVU_cjs.tools_exports; }
45
45
  });
46
46
  Object.defineProperty(exports, "vector", {
47
47
  enumerable: true,
48
- get: function () { return chunkNCS2OXX6_cjs.vector_exports; }
48
+ get: function () { return chunkT3TIA3O6_cjs.vector_exports; }
49
49
  });
50
50
  Object.defineProperty(exports, "a2a", {
51
51
  enumerable: true,
52
- get: function () { return chunkKXNFZXLG_cjs.a2a_exports; }
52
+ get: function () { return chunk3THIIWWW_cjs.a2a_exports; }
53
53
  });
54
54
  Object.defineProperty(exports, "agents", {
55
55
  enumerable: true,
56
- get: function () { return chunkRXHLHMI3_cjs.agents_exports; }
56
+ get: function () { return chunk37NQ555F_cjs.agents_exports; }
57
57
  });
58
58
  Object.defineProperty(exports, "legacyWorkflows", {
59
59
  enumerable: true,
60
- get: function () { return chunkJGVY3KWV_cjs.legacyWorkflows_exports; }
60
+ get: function () { return chunkLHZNQ6RL_cjs.legacyWorkflows_exports; }
61
61
  });
62
62
  Object.defineProperty(exports, "logs", {
63
63
  enumerable: true,
64
- get: function () { return chunkBED2O446_cjs.logs_exports; }
64
+ get: function () { return chunkNPE3X7FQ_cjs.logs_exports; }
65
65
  });
66
66
  //# sourceMappingURL=handlers.cjs.map
67
67
  //# sourceMappingURL=handlers.cjs.map
@@ -1,14 +1,14 @@
1
- export { voice_exports as voice } from '../chunk-HWHKM67I.js';
2
- export { workflows_exports as workflows } from '../chunk-BUOJL3MN.js';
3
- export { memory_exports as memory } from '../chunk-ZKJZQN24.js';
4
- export { network_exports as network } from '../chunk-Y3J45CVZ.js';
5
- export { scores_exports as scores } from '../chunk-L7YG7WQH.js';
6
- export { telemetry_exports as telemetry } from '../chunk-SQ7KKIH3.js';
7
- export { tools_exports as tools } from '../chunk-YS66MFDY.js';
8
- export { vector_exports as vector } from '../chunk-G7NVCO5M.js';
9
- export { a2a_exports as a2a } from '../chunk-JNWFG7JP.js';
10
- export { agents_exports as agents } from '../chunk-43YZEULM.js';
11
- export { legacyWorkflows_exports as legacyWorkflows } from '../chunk-UVOSITKU.js';
12
- export { logs_exports as logs } from '../chunk-4MQU6AJN.js';
1
+ export { voice_exports as voice } from '../chunk-QBWF6U7Z.js';
2
+ export { workflows_exports as workflows } from '../chunk-ID4HDWQJ.js';
3
+ export { memory_exports as memory } from '../chunk-DT2MVRFD.js';
4
+ export { network_exports as network } from '../chunk-B43YAQJR.js';
5
+ export { scores_exports as scores } from '../chunk-NXLKV5JO.js';
6
+ export { telemetry_exports as telemetry } from '../chunk-PHZHWQZP.js';
7
+ export { tools_exports as tools } from '../chunk-Z2HSKJPF.js';
8
+ export { vector_exports as vector } from '../chunk-WHN4VX55.js';
9
+ export { a2a_exports as a2a } from '../chunk-5QUKZCEF.js';
10
+ export { agents_exports as agents } from '../chunk-MG5HDGGH.js';
11
+ export { legacyWorkflows_exports as legacyWorkflows } from '../chunk-2M2NTLZE.js';
12
+ export { logs_exports as logs } from '../chunk-ROA7BCHD.js';
13
13
  //# sourceMappingURL=handlers.js.map
14
14
  //# sourceMappingURL=handlers.js.map
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@mastra/server",
3
- "version": "0.13.3-alpha.0",
3
+ "version": "0.14.0-alpha.2",
4
4
  "description": "",
5
5
  "type": "module",
6
6
  "files": [
@@ -59,7 +59,11 @@
59
59
  "zod": "^3.0.0"
60
60
  },
61
61
  "devDependencies": {
62
- "@ai-sdk/openai": "^1.3.22",
62
+ "@ai-sdk/anthropic": "^1.2.12",
63
+ "@ai-sdk/google": "^1.2.21",
64
+ "@ai-sdk/groq": "^1.2.9",
65
+ "@ai-sdk/openai": "^1.3.24",
66
+ "@ai-sdk/xai": "^1.2.18",
63
67
  "@microsoft/api-extractor": "^7.52.8",
64
68
  "@types/node": "^20.19.0",
65
69
  "eslint": "^9.30.1",
@@ -71,8 +75,8 @@
71
75
  "zod-to-json-schema": "^3.24.5",
72
76
  "@internal/lint": "0.0.29",
73
77
  "@internal/storage-test-utils": "0.0.25",
74
- "@internal/types-builder": "0.0.4",
75
- "@mastra/core": "0.13.3-alpha.0"
78
+ "@mastra/core": "0.14.0-alpha.2",
79
+ "@internal/types-builder": "0.0.4"
76
80
  },
77
81
  "scripts": {
78
82
  "build": "tsup --silent --config tsup.config.ts",
@@ -1,319 +0,0 @@
1
- import { stringify, esm_default } from './chunk-7FHF55WA.js';
2
- import { validateBody } from './chunk-OW4FX5TS.js';
3
- import { handleError } from './chunk-CY4TP3FK.js';
4
- import { HTTPException } from './chunk-MMROOK5J.js';
5
- import { __export } from './chunk-PZ5AY32C.js';
6
- import { RuntimeContext } from '@mastra/core/runtime-context';
7
-
8
- // src/server/handlers/agents.ts
9
- var agents_exports = {};
10
- __export(agents_exports, {
11
- generateHandler: () => generateHandler,
12
- getAgentByIdHandler: () => getAgentByIdHandler,
13
- getAgentsHandler: () => getAgentsHandler,
14
- getEvalsByAgentIdHandler: () => getEvalsByAgentIdHandler,
15
- getLiveEvalsByAgentIdHandler: () => getLiveEvalsByAgentIdHandler,
16
- streamGenerateHandler: () => streamGenerateHandler,
17
- streamVNextGenerateHandler: () => streamVNextGenerateHandler,
18
- updateAgentModelHandler: () => updateAgentModelHandler
19
- });
20
- async function getAgentsHandler({ mastra, runtimeContext }) {
21
- try {
22
- const agents = mastra.getAgents();
23
- const serializedAgentsMap = await Promise.all(
24
- Object.entries(agents).map(async ([id, agent]) => {
25
- const instructions = await agent.getInstructions({ runtimeContext });
26
- const tools = await agent.getTools({ runtimeContext });
27
- const llm = await agent.getLLM({ runtimeContext });
28
- const defaultGenerateOptions = await agent.getDefaultGenerateOptions({ runtimeContext });
29
- const defaultStreamOptions = await agent.getDefaultStreamOptions({ runtimeContext });
30
- const serializedAgentTools = Object.entries(tools || {}).reduce((acc, [key, tool]) => {
31
- const _tool = tool;
32
- acc[key] = {
33
- ..._tool,
34
- inputSchema: _tool.inputSchema ? stringify(esm_default(_tool.inputSchema)) : void 0,
35
- outputSchema: _tool.outputSchema ? stringify(esm_default(_tool.outputSchema)) : void 0
36
- };
37
- return acc;
38
- }, {});
39
- let serializedAgentWorkflows = {};
40
- if ("getWorkflows" in agent) {
41
- const logger = mastra.getLogger();
42
- try {
43
- const workflows = await agent.getWorkflows({ runtimeContext });
44
- serializedAgentWorkflows = Object.entries(workflows || {}).reduce((acc, [key, workflow]) => {
45
- return {
46
- ...acc,
47
- [key]: {
48
- name: workflow.name
49
- }
50
- };
51
- }, {});
52
- } catch (error) {
53
- logger.error("Error getting workflows for agent", { agentName: agent.name, error });
54
- }
55
- }
56
- return {
57
- id,
58
- name: agent.name,
59
- instructions,
60
- tools: serializedAgentTools,
61
- workflows: serializedAgentWorkflows,
62
- provider: llm?.getProvider(),
63
- modelId: llm?.getModelId(),
64
- defaultGenerateOptions,
65
- defaultStreamOptions
66
- };
67
- })
68
- );
69
- const serializedAgents = serializedAgentsMap.reduce((acc, { id, ...rest }) => {
70
- acc[id] = rest;
71
- return acc;
72
- }, {});
73
- return serializedAgents;
74
- } catch (error) {
75
- return handleError(error, "Error getting agents");
76
- }
77
- }
78
- async function getAgentByIdHandler({
79
- mastra,
80
- runtimeContext,
81
- agentId,
82
- isPlayground = false
83
- }) {
84
- try {
85
- const agent = mastra.getAgent(agentId);
86
- if (!agent) {
87
- throw new HTTPException(404, { message: "Agent not found" });
88
- }
89
- const tools = await agent.getTools({ runtimeContext });
90
- const serializedAgentTools = Object.entries(tools || {}).reduce((acc, [key, tool]) => {
91
- const _tool = tool;
92
- acc[key] = {
93
- ..._tool,
94
- inputSchema: _tool.inputSchema ? stringify(esm_default(_tool.inputSchema)) : void 0,
95
- outputSchema: _tool.outputSchema ? stringify(esm_default(_tool.outputSchema)) : void 0
96
- };
97
- return acc;
98
- }, {});
99
- let serializedAgentWorkflows = {};
100
- if ("getWorkflows" in agent) {
101
- const logger = mastra.getLogger();
102
- try {
103
- const workflows = await agent.getWorkflows({ runtimeContext });
104
- serializedAgentWorkflows = Object.entries(workflows || {}).reduce((acc, [key, workflow]) => {
105
- return {
106
- ...acc,
107
- [key]: {
108
- name: workflow.name,
109
- steps: Object.entries(workflow.steps).reduce((acc2, [key2, step]) => {
110
- return {
111
- ...acc2,
112
- [key2]: {
113
- id: step.id,
114
- description: step.description
115
- }
116
- };
117
- }, {})
118
- }
119
- };
120
- }, {});
121
- } catch (error) {
122
- logger.error("Error getting workflows for agent", { agentName: agent.name, error });
123
- }
124
- }
125
- let proxyRuntimeContext = runtimeContext;
126
- if (isPlayground) {
127
- proxyRuntimeContext = new Proxy(runtimeContext, {
128
- get(target, prop) {
129
- if (prop === "get") {
130
- return function(key) {
131
- const value = target.get(key);
132
- return value ?? `<${key}>`;
133
- };
134
- }
135
- return Reflect.get(target, prop);
136
- }
137
- });
138
- }
139
- const instructions = await agent.getInstructions({ runtimeContext: proxyRuntimeContext });
140
- const llm = await agent.getLLM({ runtimeContext });
141
- const defaultGenerateOptions = await agent.getDefaultGenerateOptions({ runtimeContext: proxyRuntimeContext });
142
- const defaultStreamOptions = await agent.getDefaultStreamOptions({ runtimeContext: proxyRuntimeContext });
143
- return {
144
- name: agent.name,
145
- instructions,
146
- tools: serializedAgentTools,
147
- workflows: serializedAgentWorkflows,
148
- provider: llm?.getProvider(),
149
- modelId: llm?.getModelId(),
150
- defaultGenerateOptions,
151
- defaultStreamOptions
152
- };
153
- } catch (error) {
154
- return handleError(error, "Error getting agent");
155
- }
156
- }
157
- async function getEvalsByAgentIdHandler({
158
- mastra,
159
- runtimeContext,
160
- agentId
161
- }) {
162
- try {
163
- const agent = mastra.getAgent(agentId);
164
- const evals = await mastra.getStorage()?.getEvalsByAgentName?.(agent.name, "test") || [];
165
- const instructions = await agent.getInstructions({ runtimeContext });
166
- return {
167
- id: agentId,
168
- name: agent.name,
169
- instructions,
170
- evals
171
- };
172
- } catch (error) {
173
- return handleError(error, "Error getting test evals");
174
- }
175
- }
176
- async function getLiveEvalsByAgentIdHandler({
177
- mastra,
178
- runtimeContext,
179
- agentId
180
- }) {
181
- try {
182
- const agent = mastra.getAgent(agentId);
183
- const evals = await mastra.getStorage()?.getEvalsByAgentName?.(agent.name, "live") || [];
184
- const instructions = await agent.getInstructions({ runtimeContext });
185
- return {
186
- id: agentId,
187
- name: agent.name,
188
- instructions,
189
- evals
190
- };
191
- } catch (error) {
192
- return handleError(error, "Error getting live evals");
193
- }
194
- }
195
- async function generateHandler({
196
- mastra,
197
- runtimeContext,
198
- agentId,
199
- body,
200
- abortSignal
201
- }) {
202
- try {
203
- const agent = mastra.getAgent(agentId);
204
- if (!agent) {
205
- throw new HTTPException(404, { message: "Agent not found" });
206
- }
207
- const { messages, resourceId, resourceid, runtimeContext: agentRuntimeContext, ...rest } = body;
208
- const finalResourceId = resourceId ?? resourceid;
209
- const finalRuntimeContext = new RuntimeContext([
210
- ...Array.from(runtimeContext.entries()),
211
- ...Array.from(Object.entries(agentRuntimeContext ?? {}))
212
- ]);
213
- validateBody({ messages });
214
- const result = await agent.generate(messages, {
215
- ...rest,
216
- // @ts-expect-error TODO fix types
217
- resourceId: finalResourceId,
218
- runtimeContext: finalRuntimeContext,
219
- signal: abortSignal
220
- });
221
- return result;
222
- } catch (error) {
223
- return handleError(error, "Error generating from agent");
224
- }
225
- }
226
- async function streamGenerateHandler({
227
- mastra,
228
- runtimeContext,
229
- agentId,
230
- body,
231
- abortSignal
232
- }) {
233
- try {
234
- const agent = mastra.getAgent(agentId);
235
- if (!agent) {
236
- throw new HTTPException(404, { message: "Agent not found" });
237
- }
238
- const { messages, resourceId, resourceid, runtimeContext: agentRuntimeContext, ...rest } = body;
239
- const finalResourceId = resourceId ?? resourceid;
240
- const finalRuntimeContext = new RuntimeContext([
241
- ...Array.from(runtimeContext.entries()),
242
- ...Array.from(Object.entries(agentRuntimeContext ?? {}))
243
- ]);
244
- validateBody({ messages });
245
- const streamResult = await agent.stream(messages, {
246
- ...rest,
247
- // @ts-expect-error TODO fix types
248
- resourceId: finalResourceId,
249
- runtimeContext: finalRuntimeContext,
250
- signal: abortSignal
251
- });
252
- const streamResponse = rest.output ? streamResult.toTextStreamResponse({
253
- headers: {
254
- "Transfer-Encoding": "chunked"
255
- }
256
- }) : streamResult.toDataStreamResponse({
257
- sendUsage: true,
258
- sendReasoning: true,
259
- getErrorMessage: (error) => {
260
- return `An error occurred while processing your request. ${error instanceof Error ? error.message : JSON.stringify(error)}`;
261
- },
262
- headers: {
263
- "Transfer-Encoding": "chunked"
264
- }
265
- });
266
- return streamResponse;
267
- } catch (error) {
268
- return handleError(error, "error streaming agent response");
269
- }
270
- }
271
- function streamVNextGenerateHandler({
272
- mastra,
273
- runtimeContext,
274
- agentId,
275
- body,
276
- abortSignal
277
- }) {
278
- try {
279
- const agent = mastra.getAgent(agentId);
280
- if (!agent) {
281
- throw new HTTPException(404, { message: "Agent not found" });
282
- }
283
- const { messages, runtimeContext: agentRuntimeContext, ...rest } = body;
284
- const finalRuntimeContext = new RuntimeContext([
285
- ...Array.from(runtimeContext.entries()),
286
- ...Array.from(Object.entries(agentRuntimeContext ?? {}))
287
- ]);
288
- validateBody({ messages });
289
- const streamResult = agent.streamVNext(messages, {
290
- ...rest,
291
- runtimeContext: finalRuntimeContext,
292
- abortSignal
293
- });
294
- return streamResult;
295
- } catch (error) {
296
- return handleError(error, "error streaming agent response");
297
- }
298
- }
299
- function updateAgentModelHandler({
300
- mastra,
301
- agentId,
302
- body
303
- }) {
304
- try {
305
- const agent = mastra.getAgent(agentId);
306
- if (!agent) {
307
- throw new HTTPException(404, { message: "Agent not found" });
308
- }
309
- const { model } = body;
310
- agent.__updateModel({ model });
311
- return { message: "Agent model updated" };
312
- } catch (error) {
313
- return handleError(error, "error updating agent model");
314
- }
315
- }
316
-
317
- export { agents_exports, generateHandler, getAgentByIdHandler, getAgentsHandler, getEvalsByAgentIdHandler, getLiveEvalsByAgentIdHandler, streamGenerateHandler, streamVNextGenerateHandler, updateAgentModelHandler };
318
- //# sourceMappingURL=chunk-43YZEULM.js.map
319
- //# sourceMappingURL=chunk-43YZEULM.js.map