@mastra/server 0.0.0-taofeeqInngest-20250603090617 → 0.0.0-transpile-packages-20250724123433

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 (80) hide show
  1. package/LICENSE.md +11 -42
  2. package/dist/_tsup-dts-rollup.d.cts +390 -45
  3. package/dist/_tsup-dts-rollup.d.ts +390 -45
  4. package/dist/{chunk-OCWPVYNI.cjs → chunk-2KZFMI6P.cjs} +1 -0
  5. package/dist/{chunk-VPNDC2DI.cjs → chunk-2SLFAFTR.cjs} +12 -12
  6. package/dist/chunk-4D66QEKC.js +81 -0
  7. package/dist/{chunk-W7VCKPAD.js → chunk-5PQQ42EZ.js} +9 -9
  8. package/dist/{chunk-BNEY4P4P.cjs → chunk-7TP2LX5L.cjs} +16 -16
  9. package/dist/chunk-B2PAS2IB.cjs +514 -0
  10. package/dist/{chunk-J3PKLB3A.js → chunk-BK4XT6EG.js} +56 -17
  11. package/dist/chunk-CBFTEHOO.cjs +157 -0
  12. package/dist/{chunk-57CJTIPW.cjs → chunk-CCGRCYWJ.cjs} +2 -2
  13. package/dist/{chunk-C7564HUT.js → chunk-CRCR3ZUK.js} +3 -3
  14. package/dist/{chunk-ZE5AAC4I.cjs → chunk-FRVBFMO2.cjs} +26 -36
  15. package/dist/{chunk-DJJIUEL2.js → chunk-G4L7OMCA.js} +135 -26
  16. package/dist/{chunk-B4MQFJ7G.cjs → chunk-G7KH752Y.cjs} +5 -5
  17. package/dist/{chunk-KUNQFY2W.js → chunk-H7DMHBKY.js} +190 -57
  18. package/dist/{chunk-YIOVBYZH.cjs → chunk-JMLYCXMK.cjs} +43 -43
  19. package/dist/{chunk-CP55EVBK.js → chunk-KHZKYUNR.js} +15 -11
  20. package/dist/{chunk-NYN7KFXL.js → chunk-LCM566I4.js} +1 -0
  21. package/dist/chunk-LF7P5PLR.js +14 -0
  22. package/dist/{chunk-YWLUOY3D.cjs → chunk-LI436ITD.cjs} +107 -69
  23. package/dist/{chunk-TJKLBTFB.js → chunk-LRCAAFUA.js} +10 -20
  24. package/dist/{chunk-A3KDUGS7.cjs → chunk-LZ3VJXSO.cjs} +70 -31
  25. package/dist/{chunk-LIVAK2DM.js → chunk-MEGCYGBU.js} +108 -70
  26. package/dist/chunk-PZQDCRPV.cjs +16 -0
  27. package/dist/chunk-QGX47B5D.cjs +86 -0
  28. package/dist/{chunk-BFOA2QQY.js → chunk-RG473F6Y.js} +2 -2
  29. package/dist/{chunk-CMMOIUFC.cjs → chunk-RHSWAXKB.cjs} +34 -30
  30. package/dist/{chunk-H5PTF3Y4.js → chunk-RSEO4XPX.js} +1 -1
  31. package/dist/chunk-VULESSU5.js +149 -0
  32. package/dist/{chunk-55DOQLP6.js → chunk-WNVFNNWN.js} +2 -2
  33. package/dist/chunk-Z75RYULP.cjs +333 -0
  34. package/dist/server/handlers/agents.cjs +7 -7
  35. package/dist/server/handlers/agents.js +1 -1
  36. package/dist/server/handlers/error.cjs +2 -2
  37. package/dist/server/handlers/error.js +1 -1
  38. package/dist/server/handlers/legacyWorkflows.cjs +11 -11
  39. package/dist/server/handlers/legacyWorkflows.js +1 -1
  40. package/dist/server/handlers/logs.cjs +4 -4
  41. package/dist/server/handlers/logs.js +1 -1
  42. package/dist/server/handlers/memory.cjs +21 -9
  43. package/dist/server/handlers/memory.d.cts +3 -0
  44. package/dist/server/handlers/memory.d.ts +3 -0
  45. package/dist/server/handlers/memory.js +1 -1
  46. package/dist/server/handlers/network.cjs +5 -5
  47. package/dist/server/handlers/network.js +1 -1
  48. package/dist/server/handlers/scores.cjs +30 -0
  49. package/dist/server/handlers/scores.d.cts +6 -0
  50. package/dist/server/handlers/scores.d.ts +6 -0
  51. package/dist/server/handlers/scores.js +1 -0
  52. package/dist/server/handlers/telemetry.cjs +3 -3
  53. package/dist/server/handlers/telemetry.js +1 -1
  54. package/dist/server/handlers/tools.cjs +5 -5
  55. package/dist/server/handlers/tools.js +1 -1
  56. package/dist/server/handlers/utils.cjs +2 -2
  57. package/dist/server/handlers/utils.js +1 -1
  58. package/dist/server/handlers/vNextNetwork.cjs +218 -0
  59. package/dist/server/handlers/vNextNetwork.d.cts +6 -0
  60. package/dist/server/handlers/vNextNetwork.d.ts +6 -0
  61. package/dist/server/handlers/vNextNetwork.js +211 -0
  62. package/dist/server/handlers/vector.cjs +7 -7
  63. package/dist/server/handlers/vector.js +1 -1
  64. package/dist/server/handlers/voice.cjs +5 -5
  65. package/dist/server/handlers/voice.js +1 -1
  66. package/dist/server/handlers/workflows.cjs +24 -12
  67. package/dist/server/handlers/workflows.d.cts +3 -0
  68. package/dist/server/handlers/workflows.d.ts +3 -0
  69. package/dist/server/handlers/workflows.js +1 -1
  70. package/dist/server/handlers.cjs +28 -23
  71. package/dist/server/handlers.d.cts +3 -2
  72. package/dist/server/handlers.d.ts +3 -2
  73. package/dist/server/handlers.js +11 -10
  74. package/package.json +15 -15
  75. package/dist/chunk-64U3UDTH.cjs +0 -13
  76. package/dist/chunk-DQLE3DVM.js +0 -49
  77. package/dist/chunk-M5ABIP7D.js +0 -11
  78. package/dist/chunk-MMO2HDM6.cjs +0 -378
  79. package/dist/chunk-NEOOQUKW.cjs +0 -54
  80. package/dist/chunk-Y7UWRW5X.cjs +0 -221
@@ -0,0 +1,211 @@
1
+ import { stringify, esm_default } from '../../chunk-MEGCYGBU.js';
2
+ import { validateBody } from '../../chunk-RSEO4XPX.js';
3
+ import { handleError } from '../../chunk-LF7P5PLR.js';
4
+ import { HTTPException } from '../../chunk-LCM566I4.js';
5
+
6
+ // src/server/handlers/vNextNetwork.ts
7
+ async function getVNextNetworksHandler({
8
+ mastra,
9
+ runtimeContext
10
+ }) {
11
+ try {
12
+ const networks = mastra.vnext_getNetworks();
13
+ const serializedNetworks = await Promise.all(
14
+ networks.map(async (network) => {
15
+ const routingAgent = await network.getRoutingAgent({ runtimeContext });
16
+ const routingLLM = await routingAgent.getLLM({ runtimeContext });
17
+ const agents = await network.getAgents({ runtimeContext });
18
+ const workflows = await network.getWorkflows({ runtimeContext });
19
+ const tools = await network.getTools({ runtimeContext });
20
+ const networkInstruction = await network.getInstructions({ runtimeContext });
21
+ return {
22
+ id: network.id,
23
+ name: network.name,
24
+ instructions: networkInstruction,
25
+ tools: await Promise.all(
26
+ Object.values(tools).map(async (tool) => {
27
+ return {
28
+ id: tool.id,
29
+ description: tool.description
30
+ };
31
+ })
32
+ ),
33
+ agents: await Promise.all(
34
+ Object.values(agents).map(async (agent) => {
35
+ const llm = await agent.getLLM({ runtimeContext });
36
+ return {
37
+ name: agent.name,
38
+ provider: llm?.getProvider(),
39
+ modelId: llm?.getModelId()
40
+ };
41
+ })
42
+ ),
43
+ workflows: await Promise.all(
44
+ Object.values(workflows).map(async (workflow) => {
45
+ return {
46
+ name: workflow.name,
47
+ description: workflow.description,
48
+ inputSchema: workflow.inputSchema ? stringify(esm_default(workflow.inputSchema)) : void 0,
49
+ outputSchema: workflow.outputSchema ? stringify(esm_default(workflow.outputSchema)) : void 0
50
+ };
51
+ })
52
+ ),
53
+ routingModel: {
54
+ provider: routingLLM?.getProvider(),
55
+ modelId: routingLLM?.getModelId()
56
+ }
57
+ };
58
+ })
59
+ );
60
+ return serializedNetworks;
61
+ } catch (error) {
62
+ return handleError(error, "Error getting networks");
63
+ }
64
+ }
65
+ async function getVNextNetworkByIdHandler({
66
+ mastra,
67
+ networkId,
68
+ runtimeContext
69
+ }) {
70
+ try {
71
+ const network = mastra.vnext_getNetwork(networkId);
72
+ if (!network) {
73
+ throw new HTTPException(404, { message: "Network not found" });
74
+ }
75
+ const routingAgent = await network.getRoutingAgent({ runtimeContext });
76
+ const routingLLM = await routingAgent.getLLM({ runtimeContext });
77
+ const agents = await network.getAgents({ runtimeContext });
78
+ const workflows = await network.getWorkflows({ runtimeContext });
79
+ const tools = await network.getTools({ runtimeContext });
80
+ const networkInstruction = await network.getInstructions({ runtimeContext });
81
+ const serializedNetwork = {
82
+ id: network.id,
83
+ name: network.name,
84
+ instructions: networkInstruction,
85
+ agents: await Promise.all(
86
+ Object.values(agents).map(async (agent) => {
87
+ const llm = await agent.getLLM({ runtimeContext });
88
+ return {
89
+ name: agent.name,
90
+ provider: llm?.getProvider(),
91
+ modelId: llm?.getModelId()
92
+ };
93
+ })
94
+ ),
95
+ workflows: await Promise.all(
96
+ Object.values(workflows).map(async (workflow) => {
97
+ return {
98
+ name: workflow.name,
99
+ description: workflow.description,
100
+ inputSchema: workflow.inputSchema ? stringify(esm_default(workflow.inputSchema)) : void 0,
101
+ outputSchema: workflow.outputSchema ? stringify(esm_default(workflow.outputSchema)) : void 0
102
+ };
103
+ })
104
+ ),
105
+ tools: await Promise.all(
106
+ Object.values(tools).map(async (tool) => {
107
+ return {
108
+ id: tool.id,
109
+ description: tool.description
110
+ };
111
+ })
112
+ ),
113
+ routingModel: {
114
+ provider: routingLLM?.getProvider(),
115
+ modelId: routingLLM?.getModelId()
116
+ }
117
+ };
118
+ return serializedNetwork;
119
+ } catch (error) {
120
+ return handleError(error, "Error getting network by ID");
121
+ }
122
+ }
123
+ async function generateVNextNetworkHandler({
124
+ mastra,
125
+ runtimeContext,
126
+ networkId,
127
+ body
128
+ }) {
129
+ try {
130
+ const network = mastra.vnext_getNetwork(networkId);
131
+ if (!network) {
132
+ throw new HTTPException(404, { message: "Network not found" });
133
+ }
134
+ validateBody({ message: body.message });
135
+ const { message, threadId, resourceId } = body;
136
+ const result = await network.generate(message, { runtimeContext, threadId, resourceId });
137
+ return result;
138
+ } catch (error) {
139
+ return handleError(error, "Error generating from network");
140
+ }
141
+ }
142
+ async function streamGenerateVNextNetworkHandler({
143
+ mastra,
144
+ networkId,
145
+ body,
146
+ runtimeContext
147
+ }) {
148
+ try {
149
+ const network = mastra.vnext_getNetwork(networkId);
150
+ if (!network) {
151
+ throw new HTTPException(404, { message: "Network not found" });
152
+ }
153
+ validateBody({ message: body.message });
154
+ const { message, threadId, resourceId } = body;
155
+ const streamResult = await network.stream(message, {
156
+ runtimeContext,
157
+ threadId,
158
+ resourceId
159
+ });
160
+ return streamResult;
161
+ } catch (error) {
162
+ return handleError(error, "Error streaming from network");
163
+ }
164
+ }
165
+ async function loopVNextNetworkHandler({
166
+ mastra,
167
+ networkId,
168
+ body,
169
+ runtimeContext
170
+ }) {
171
+ try {
172
+ const network = mastra.vnext_getNetwork(networkId);
173
+ if (!network) {
174
+ throw new HTTPException(404, { message: "Network not found" });
175
+ }
176
+ validateBody({ message: body.message });
177
+ const { message } = body;
178
+ const result = await network.loop(message, {
179
+ runtimeContext
180
+ });
181
+ return result;
182
+ } catch (error) {
183
+ return handleError(error, "Error looping network");
184
+ }
185
+ }
186
+ async function loopStreamVNextNetworkHandler({
187
+ mastra,
188
+ networkId,
189
+ body,
190
+ runtimeContext
191
+ }) {
192
+ try {
193
+ const network = mastra.vnext_getNetwork(networkId);
194
+ if (!network) {
195
+ throw new HTTPException(404, { message: "Network not found" });
196
+ }
197
+ validateBody({ message: body.message });
198
+ const { message, threadId, resourceId, maxIterations } = body;
199
+ const result = await network.loopStream(message, {
200
+ runtimeContext,
201
+ threadId,
202
+ resourceId,
203
+ maxIterations
204
+ });
205
+ return result;
206
+ } catch (error) {
207
+ return handleError(error, "Error streaming network loop");
208
+ }
209
+ }
210
+
211
+ export { generateVNextNetworkHandler, getVNextNetworkByIdHandler, getVNextNetworksHandler, loopStreamVNextNetworkHandler, loopVNextNetworkHandler, streamGenerateVNextNetworkHandler };
@@ -1,30 +1,30 @@
1
1
  'use strict';
2
2
 
3
- var chunkBNEY4P4P_cjs = require('../../chunk-BNEY4P4P.cjs');
3
+ var chunk7TP2LX5L_cjs = require('../../chunk-7TP2LX5L.cjs');
4
4
 
5
5
 
6
6
 
7
7
  Object.defineProperty(exports, "createIndex", {
8
8
  enumerable: true,
9
- get: function () { return chunkBNEY4P4P_cjs.createIndex; }
9
+ get: function () { return chunk7TP2LX5L_cjs.createIndex; }
10
10
  });
11
11
  Object.defineProperty(exports, "deleteIndex", {
12
12
  enumerable: true,
13
- get: function () { return chunkBNEY4P4P_cjs.deleteIndex; }
13
+ get: function () { return chunk7TP2LX5L_cjs.deleteIndex; }
14
14
  });
15
15
  Object.defineProperty(exports, "describeIndex", {
16
16
  enumerable: true,
17
- get: function () { return chunkBNEY4P4P_cjs.describeIndex; }
17
+ get: function () { return chunk7TP2LX5L_cjs.describeIndex; }
18
18
  });
19
19
  Object.defineProperty(exports, "listIndexes", {
20
20
  enumerable: true,
21
- get: function () { return chunkBNEY4P4P_cjs.listIndexes; }
21
+ get: function () { return chunk7TP2LX5L_cjs.listIndexes; }
22
22
  });
23
23
  Object.defineProperty(exports, "queryVectors", {
24
24
  enumerable: true,
25
- get: function () { return chunkBNEY4P4P_cjs.queryVectors; }
25
+ get: function () { return chunk7TP2LX5L_cjs.queryVectors; }
26
26
  });
27
27
  Object.defineProperty(exports, "upsertVectors", {
28
28
  enumerable: true,
29
- get: function () { return chunkBNEY4P4P_cjs.upsertVectors; }
29
+ get: function () { return chunk7TP2LX5L_cjs.upsertVectors; }
30
30
  });
@@ -1 +1 @@
1
- export { createIndex, deleteIndex, describeIndex, listIndexes, queryVectors, upsertVectors } from '../../chunk-55DOQLP6.js';
1
+ export { createIndex, deleteIndex, describeIndex, listIndexes, queryVectors, upsertVectors } from '../../chunk-WNVFNNWN.js';
@@ -1,22 +1,22 @@
1
1
  'use strict';
2
2
 
3
- var chunkCMMOIUFC_cjs = require('../../chunk-CMMOIUFC.cjs');
3
+ var chunkRHSWAXKB_cjs = require('../../chunk-RHSWAXKB.cjs');
4
4
 
5
5
 
6
6
 
7
7
  Object.defineProperty(exports, "generateSpeechHandler", {
8
8
  enumerable: true,
9
- get: function () { return chunkCMMOIUFC_cjs.generateSpeechHandler; }
9
+ get: function () { return chunkRHSWAXKB_cjs.generateSpeechHandler; }
10
10
  });
11
11
  Object.defineProperty(exports, "getListenerHandler", {
12
12
  enumerable: true,
13
- get: function () { return chunkCMMOIUFC_cjs.getListenerHandler; }
13
+ get: function () { return chunkRHSWAXKB_cjs.getListenerHandler; }
14
14
  });
15
15
  Object.defineProperty(exports, "getSpeakersHandler", {
16
16
  enumerable: true,
17
- get: function () { return chunkCMMOIUFC_cjs.getSpeakersHandler; }
17
+ get: function () { return chunkRHSWAXKB_cjs.getSpeakersHandler; }
18
18
  });
19
19
  Object.defineProperty(exports, "transcribeSpeechHandler", {
20
20
  enumerable: true,
21
- get: function () { return chunkCMMOIUFC_cjs.transcribeSpeechHandler; }
21
+ get: function () { return chunkRHSWAXKB_cjs.transcribeSpeechHandler; }
22
22
  });
@@ -1 +1 @@
1
- export { generateSpeechHandler, getListenerHandler, getSpeakersHandler, transcribeSpeechHandler } from '../../chunk-CP55EVBK.js';
1
+ export { generateSpeechHandler, getListenerHandler, getSpeakersHandler, transcribeSpeechHandler } from '../../chunk-KHZKYUNR.js';
@@ -1,50 +1,62 @@
1
1
  'use strict';
2
2
 
3
- var chunkMMO2HDM6_cjs = require('../../chunk-MMO2HDM6.cjs');
3
+ var chunkB2PAS2IB_cjs = require('../../chunk-B2PAS2IB.cjs');
4
4
 
5
5
 
6
6
 
7
+ Object.defineProperty(exports, "cancelWorkflowRunHandler", {
8
+ enumerable: true,
9
+ get: function () { return chunkB2PAS2IB_cjs.cancelWorkflowRunHandler; }
10
+ });
7
11
  Object.defineProperty(exports, "createWorkflowRunHandler", {
8
12
  enumerable: true,
9
- get: function () { return chunkMMO2HDM6_cjs.createWorkflowRunHandler; }
13
+ get: function () { return chunkB2PAS2IB_cjs.createWorkflowRunHandler; }
10
14
  });
11
15
  Object.defineProperty(exports, "getWorkflowByIdHandler", {
12
16
  enumerable: true,
13
- get: function () { return chunkMMO2HDM6_cjs.getWorkflowByIdHandler; }
17
+ get: function () { return chunkB2PAS2IB_cjs.getWorkflowByIdHandler; }
14
18
  });
15
19
  Object.defineProperty(exports, "getWorkflowRunByIdHandler", {
16
20
  enumerable: true,
17
- get: function () { return chunkMMO2HDM6_cjs.getWorkflowRunByIdHandler; }
21
+ get: function () { return chunkB2PAS2IB_cjs.getWorkflowRunByIdHandler; }
22
+ });
23
+ Object.defineProperty(exports, "getWorkflowRunExecutionResultHandler", {
24
+ enumerable: true,
25
+ get: function () { return chunkB2PAS2IB_cjs.getWorkflowRunExecutionResultHandler; }
18
26
  });
19
27
  Object.defineProperty(exports, "getWorkflowRunsHandler", {
20
28
  enumerable: true,
21
- get: function () { return chunkMMO2HDM6_cjs.getWorkflowRunsHandler; }
29
+ get: function () { return chunkB2PAS2IB_cjs.getWorkflowRunsHandler; }
22
30
  });
23
31
  Object.defineProperty(exports, "getWorkflowsHandler", {
24
32
  enumerable: true,
25
- get: function () { return chunkMMO2HDM6_cjs.getWorkflowsHandler; }
33
+ get: function () { return chunkB2PAS2IB_cjs.getWorkflowsHandler; }
26
34
  });
27
35
  Object.defineProperty(exports, "resumeAsyncWorkflowHandler", {
28
36
  enumerable: true,
29
- get: function () { return chunkMMO2HDM6_cjs.resumeAsyncWorkflowHandler; }
37
+ get: function () { return chunkB2PAS2IB_cjs.resumeAsyncWorkflowHandler; }
30
38
  });
31
39
  Object.defineProperty(exports, "resumeWorkflowHandler", {
32
40
  enumerable: true,
33
- get: function () { return chunkMMO2HDM6_cjs.resumeWorkflowHandler; }
41
+ get: function () { return chunkB2PAS2IB_cjs.resumeWorkflowHandler; }
42
+ });
43
+ Object.defineProperty(exports, "sendWorkflowRunEventHandler", {
44
+ enumerable: true,
45
+ get: function () { return chunkB2PAS2IB_cjs.sendWorkflowRunEventHandler; }
34
46
  });
35
47
  Object.defineProperty(exports, "startAsyncWorkflowHandler", {
36
48
  enumerable: true,
37
- get: function () { return chunkMMO2HDM6_cjs.startAsyncWorkflowHandler; }
49
+ get: function () { return chunkB2PAS2IB_cjs.startAsyncWorkflowHandler; }
38
50
  });
39
51
  Object.defineProperty(exports, "startWorkflowRunHandler", {
40
52
  enumerable: true,
41
- get: function () { return chunkMMO2HDM6_cjs.startWorkflowRunHandler; }
53
+ get: function () { return chunkB2PAS2IB_cjs.startWorkflowRunHandler; }
42
54
  });
43
55
  Object.defineProperty(exports, "streamWorkflowHandler", {
44
56
  enumerable: true,
45
- get: function () { return chunkMMO2HDM6_cjs.streamWorkflowHandler; }
57
+ get: function () { return chunkB2PAS2IB_cjs.streamWorkflowHandler; }
46
58
  });
47
59
  Object.defineProperty(exports, "watchWorkflowHandler", {
48
60
  enumerable: true,
49
- get: function () { return chunkMMO2HDM6_cjs.watchWorkflowHandler; }
61
+ get: function () { return chunkB2PAS2IB_cjs.watchWorkflowHandler; }
50
62
  });
@@ -1,6 +1,7 @@
1
1
  export { getWorkflowsHandler } from '../../_tsup-dts-rollup.cjs';
2
2
  export { getWorkflowByIdHandler } from '../../_tsup-dts-rollup.cjs';
3
3
  export { getWorkflowRunByIdHandler } from '../../_tsup-dts-rollup.cjs';
4
+ export { getWorkflowRunExecutionResultHandler } from '../../_tsup-dts-rollup.cjs';
4
5
  export { createWorkflowRunHandler } from '../../_tsup-dts-rollup.cjs';
5
6
  export { startAsyncWorkflowHandler } from '../../_tsup-dts-rollup.cjs';
6
7
  export { startWorkflowRunHandler } from '../../_tsup-dts-rollup.cjs';
@@ -9,3 +10,5 @@ export { streamWorkflowHandler } from '../../_tsup-dts-rollup.cjs';
9
10
  export { resumeAsyncWorkflowHandler } from '../../_tsup-dts-rollup.cjs';
10
11
  export { resumeWorkflowHandler } from '../../_tsup-dts-rollup.cjs';
11
12
  export { getWorkflowRunsHandler } from '../../_tsup-dts-rollup.cjs';
13
+ export { cancelWorkflowRunHandler } from '../../_tsup-dts-rollup.cjs';
14
+ export { sendWorkflowRunEventHandler } from '../../_tsup-dts-rollup.cjs';
@@ -1,6 +1,7 @@
1
1
  export { getWorkflowsHandler } from '../../_tsup-dts-rollup.js';
2
2
  export { getWorkflowByIdHandler } from '../../_tsup-dts-rollup.js';
3
3
  export { getWorkflowRunByIdHandler } from '../../_tsup-dts-rollup.js';
4
+ export { getWorkflowRunExecutionResultHandler } from '../../_tsup-dts-rollup.js';
4
5
  export { createWorkflowRunHandler } from '../../_tsup-dts-rollup.js';
5
6
  export { startAsyncWorkflowHandler } from '../../_tsup-dts-rollup.js';
6
7
  export { startWorkflowRunHandler } from '../../_tsup-dts-rollup.js';
@@ -9,3 +10,5 @@ export { streamWorkflowHandler } from '../../_tsup-dts-rollup.js';
9
10
  export { resumeAsyncWorkflowHandler } from '../../_tsup-dts-rollup.js';
10
11
  export { resumeWorkflowHandler } from '../../_tsup-dts-rollup.js';
11
12
  export { getWorkflowRunsHandler } from '../../_tsup-dts-rollup.js';
13
+ export { cancelWorkflowRunHandler } from '../../_tsup-dts-rollup.js';
14
+ export { sendWorkflowRunEventHandler } from '../../_tsup-dts-rollup.js';
@@ -1 +1 @@
1
- export { createWorkflowRunHandler, getWorkflowByIdHandler, getWorkflowRunByIdHandler, getWorkflowRunsHandler, getWorkflowsHandler, resumeAsyncWorkflowHandler, resumeWorkflowHandler, startAsyncWorkflowHandler, startWorkflowRunHandler, streamWorkflowHandler, watchWorkflowHandler } from '../../chunk-KUNQFY2W.js';
1
+ export { cancelWorkflowRunHandler, createWorkflowRunHandler, getWorkflowByIdHandler, getWorkflowRunByIdHandler, getWorkflowRunExecutionResultHandler, getWorkflowRunsHandler, getWorkflowsHandler, resumeAsyncWorkflowHandler, resumeWorkflowHandler, sendWorkflowRunEventHandler, startAsyncWorkflowHandler, startWorkflowRunHandler, streamWorkflowHandler, watchWorkflowHandler } from '../../chunk-H7DMHBKY.js';
@@ -1,42 +1,47 @@
1
1
  'use strict';
2
2
 
3
- var chunkVPNDC2DI_cjs = require('../chunk-VPNDC2DI.cjs');
4
- var chunkB4MQFJ7G_cjs = require('../chunk-B4MQFJ7G.cjs');
5
- var chunkZE5AAC4I_cjs = require('../chunk-ZE5AAC4I.cjs');
6
- var chunkBNEY4P4P_cjs = require('../chunk-BNEY4P4P.cjs');
7
- var chunkCMMOIUFC_cjs = require('../chunk-CMMOIUFC.cjs');
8
- var chunkMMO2HDM6_cjs = require('../chunk-MMO2HDM6.cjs');
3
+ var chunkB2PAS2IB_cjs = require('../chunk-B2PAS2IB.cjs');
4
+ var chunk2SLFAFTR_cjs = require('../chunk-2SLFAFTR.cjs');
5
+ var chunkCBFTEHOO_cjs = require('../chunk-CBFTEHOO.cjs');
6
+ var chunkG7KH752Y_cjs = require('../chunk-G7KH752Y.cjs');
7
+ var chunkFRVBFMO2_cjs = require('../chunk-FRVBFMO2.cjs');
8
+ var chunk7TP2LX5L_cjs = require('../chunk-7TP2LX5L.cjs');
9
+ var chunkRHSWAXKB_cjs = require('../chunk-RHSWAXKB.cjs');
9
10
  var chunkSDPGVWQJ_cjs = require('../chunk-SDPGVWQJ.cjs');
10
- var chunkA3KDUGS7_cjs = require('../chunk-A3KDUGS7.cjs');
11
- var chunkYIOVBYZH_cjs = require('../chunk-YIOVBYZH.cjs');
12
- var chunkNEOOQUKW_cjs = require('../chunk-NEOOQUKW.cjs');
13
- var chunkY7UWRW5X_cjs = require('../chunk-Y7UWRW5X.cjs');
11
+ var chunkLZ3VJXSO_cjs = require('../chunk-LZ3VJXSO.cjs');
12
+ var chunkJMLYCXMK_cjs = require('../chunk-JMLYCXMK.cjs');
13
+ var chunkQGX47B5D_cjs = require('../chunk-QGX47B5D.cjs');
14
+ var chunkZ75RYULP_cjs = require('../chunk-Z75RYULP.cjs');
14
15
 
15
16
 
16
17
 
18
+ Object.defineProperty(exports, "workflows", {
19
+ enumerable: true,
20
+ get: function () { return chunkB2PAS2IB_cjs.workflows_exports; }
21
+ });
17
22
  Object.defineProperty(exports, "network", {
18
23
  enumerable: true,
19
- get: function () { return chunkVPNDC2DI_cjs.network_exports; }
24
+ get: function () { return chunk2SLFAFTR_cjs.network_exports; }
25
+ });
26
+ Object.defineProperty(exports, "scores", {
27
+ enumerable: true,
28
+ get: function () { return chunkCBFTEHOO_cjs.scores_exports; }
20
29
  });
21
30
  Object.defineProperty(exports, "telemetry", {
22
31
  enumerable: true,
23
- get: function () { return chunkB4MQFJ7G_cjs.telemetry_exports; }
32
+ get: function () { return chunkG7KH752Y_cjs.telemetry_exports; }
24
33
  });
25
34
  Object.defineProperty(exports, "tools", {
26
35
  enumerable: true,
27
- get: function () { return chunkZE5AAC4I_cjs.tools_exports; }
36
+ get: function () { return chunkFRVBFMO2_cjs.tools_exports; }
28
37
  });
29
38
  Object.defineProperty(exports, "vector", {
30
39
  enumerable: true,
31
- get: function () { return chunkBNEY4P4P_cjs.vector_exports; }
40
+ get: function () { return chunk7TP2LX5L_cjs.vector_exports; }
32
41
  });
33
42
  Object.defineProperty(exports, "voice", {
34
43
  enumerable: true,
35
- get: function () { return chunkCMMOIUFC_cjs.voice_exports; }
36
- });
37
- Object.defineProperty(exports, "workflows", {
38
- enumerable: true,
39
- get: function () { return chunkMMO2HDM6_cjs.workflows_exports; }
44
+ get: function () { return chunkRHSWAXKB_cjs.voice_exports; }
40
45
  });
41
46
  Object.defineProperty(exports, "a2a", {
42
47
  enumerable: true,
@@ -44,17 +49,17 @@ Object.defineProperty(exports, "a2a", {
44
49
  });
45
50
  Object.defineProperty(exports, "agents", {
46
51
  enumerable: true,
47
- get: function () { return chunkA3KDUGS7_cjs.agents_exports; }
52
+ get: function () { return chunkLZ3VJXSO_cjs.agents_exports; }
48
53
  });
49
54
  Object.defineProperty(exports, "legacyWorkflows", {
50
55
  enumerable: true,
51
- get: function () { return chunkYIOVBYZH_cjs.legacyWorkflows_exports; }
56
+ get: function () { return chunkJMLYCXMK_cjs.legacyWorkflows_exports; }
52
57
  });
53
58
  Object.defineProperty(exports, "logs", {
54
59
  enumerable: true,
55
- get: function () { return chunkNEOOQUKW_cjs.logs_exports; }
60
+ get: function () { return chunkQGX47B5D_cjs.logs_exports; }
56
61
  });
57
62
  Object.defineProperty(exports, "memory", {
58
63
  enumerable: true,
59
- get: function () { return chunkY7UWRW5X_cjs.memory_exports; }
64
+ get: function () { return chunkZ75RYULP_cjs.memory_exports; }
60
65
  });
@@ -1,11 +1,12 @@
1
1
  export { agents } from '../_tsup-dts-rollup.cjs';
2
2
  export { a2a } from '../_tsup-dts-rollup.cjs';
3
+ export { legacyWorkflows } from '../_tsup-dts-rollup.cjs';
3
4
  export { logs } from '../_tsup-dts-rollup.cjs';
4
5
  export { memory } from '../_tsup-dts-rollup.cjs';
5
6
  export { network } from '../_tsup-dts-rollup.cjs';
7
+ export { scores } from '../_tsup-dts-rollup.cjs';
6
8
  export { telemetry } from '../_tsup-dts-rollup.cjs';
7
9
  export { tools } from '../_tsup-dts-rollup.cjs';
8
- export { legacyWorkflows } from '../_tsup-dts-rollup.cjs';
9
- export { workflows } from '../_tsup-dts-rollup.cjs';
10
10
  export { vector } from '../_tsup-dts-rollup.cjs';
11
11
  export { voice } from '../_tsup-dts-rollup.cjs';
12
+ export { workflows } from '../_tsup-dts-rollup.cjs';
@@ -1,11 +1,12 @@
1
1
  export { agents } from '../_tsup-dts-rollup.js';
2
2
  export { a2a } from '../_tsup-dts-rollup.js';
3
+ export { legacyWorkflows } from '../_tsup-dts-rollup.js';
3
4
  export { logs } from '../_tsup-dts-rollup.js';
4
5
  export { memory } from '../_tsup-dts-rollup.js';
5
6
  export { network } from '../_tsup-dts-rollup.js';
7
+ export { scores } from '../_tsup-dts-rollup.js';
6
8
  export { telemetry } from '../_tsup-dts-rollup.js';
7
9
  export { tools } from '../_tsup-dts-rollup.js';
8
- export { legacyWorkflows } from '../_tsup-dts-rollup.js';
9
- export { workflows } from '../_tsup-dts-rollup.js';
10
10
  export { vector } from '../_tsup-dts-rollup.js';
11
11
  export { voice } from '../_tsup-dts-rollup.js';
12
+ export { workflows } from '../_tsup-dts-rollup.js';
@@ -1,11 +1,12 @@
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-TJKLBTFB.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-KUNQFY2W.js';
1
+ export { workflows_exports as workflows } from '../chunk-H7DMHBKY.js';
2
+ export { network_exports as network } from '../chunk-CRCR3ZUK.js';
3
+ export { scores_exports as scores } from '../chunk-VULESSU5.js';
4
+ export { telemetry_exports as telemetry } from '../chunk-RG473F6Y.js';
5
+ export { tools_exports as tools } from '../chunk-LRCAAFUA.js';
6
+ export { vector_exports as vector } from '../chunk-WNVFNNWN.js';
7
+ export { voice_exports as voice } from '../chunk-KHZKYUNR.js';
7
8
  export { a2a_exports as a2a } from '../chunk-GHC4YV6R.js';
8
- export { agents_exports as agents } from '../chunk-J3PKLB3A.js';
9
- export { legacyWorkflows_exports as legacyWorkflows } from '../chunk-W7VCKPAD.js';
10
- export { logs_exports as logs } from '../chunk-DQLE3DVM.js';
11
- export { memory_exports as memory } from '../chunk-DJJIUEL2.js';
9
+ export { agents_exports as agents } from '../chunk-BK4XT6EG.js';
10
+ export { legacyWorkflows_exports as legacyWorkflows } from '../chunk-5PQQ42EZ.js';
11
+ export { logs_exports as logs } from '../chunk-4D66QEKC.js';
12
+ export { memory_exports as memory } from '../chunk-G4L7OMCA.js';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@mastra/server",
3
- "version": "0.0.0-taofeeqInngest-20250603090617",
3
+ "version": "0.0.0-transpile-packages-20250724123433",
4
4
  "description": "",
5
5
  "type": "module",
6
6
  "files": [
@@ -43,25 +43,25 @@
43
43
  },
44
44
  "keywords": [],
45
45
  "author": "",
46
- "license": "Elastic-2.0",
47
- "dependencies": {},
46
+ "license": "Apache-2.0",
48
47
  "peerDependencies": {
49
- "@mastra/core": "^0.10.2-alpha.0",
50
- "zod": "^3.0.0"
48
+ "zod": "^3.0.0",
49
+ "@mastra/core": "0.0.0-transpile-packages-20250724123433"
51
50
  },
52
51
  "devDependencies": {
53
- "@ai-sdk/openai": "^1.3.2",
54
- "@microsoft/api-extractor": "^7.52.5",
55
- "@types/node": "^20.17.27",
56
- "eslint": "^9.23.0",
52
+ "@ai-sdk/openai": "^1.3.22",
53
+ "@microsoft/api-extractor": "^7.52.8",
54
+ "@types/node": "^20.19.0",
55
+ "eslint": "^9.30.1",
57
56
  "superjson": "^2.2.2",
58
- "tsup": "^8.4.0",
59
- "typescript": "^5.8.2",
60
- "vitest": "^2.1.9",
61
- "zod": "^3.24.3",
57
+ "tsup": "^8.5.0",
58
+ "typescript": "^5.8.3",
59
+ "vitest": "^3.2.4",
60
+ "zod": "^3.25.67",
62
61
  "zod-to-json-schema": "^3.24.5",
63
- "@internal/lint": "0.0.0-taofeeqInngest-20250603090617",
64
- "@mastra/core": "0.0.0-taofeeqInngest-20250603090617"
62
+ "@internal/lint": "0.0.0-transpile-packages-20250724123433",
63
+ "@mastra/core": "0.0.0-transpile-packages-20250724123433",
64
+ "@internal/storage-test-utils": "0.0.16"
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",
@@ -1,13 +0,0 @@
1
- 'use strict';
2
-
3
- var chunkOCWPVYNI_cjs = require('./chunk-OCWPVYNI.cjs');
4
-
5
- // src/server/handlers/error.ts
6
- function handleError(error, defaultMessage) {
7
- const apiError = error;
8
- throw new chunkOCWPVYNI_cjs.HTTPException(apiError.status || 500, {
9
- message: apiError.message || defaultMessage
10
- });
11
- }
12
-
13
- exports.handleError = handleError;
@@ -1,49 +0,0 @@
1
- import { validateBody } from './chunk-H5PTF3Y4.js';
2
- import { handleError } from './chunk-M5ABIP7D.js';
3
- import { __export } from './chunk-MLKGABMK.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.getTransports();
41
- return {
42
- transports: transports ? [...transports.keys()] : []
43
- };
44
- } catch (error) {
45
- return handleError(error, "Error getting log Transports");
46
- }
47
- }
48
-
49
- export { getLogTransports, getLogsByRunIdHandler, getLogsHandler, logs_exports };