@mastra/server 0.0.0-expose-more-playground-ui-20250502141824 → 0.0.0-feat-tool-input-validation-20250731232758

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 (106) hide show
  1. package/LICENSE.md +11 -42
  2. package/README.md +48 -135
  3. package/dist/_tsup-dts-rollup.d.cts +715 -109
  4. package/dist/_tsup-dts-rollup.d.ts +715 -109
  5. package/dist/{chunk-FV45V6WC.cjs → chunk-2KZFMI6P.cjs} +1 -7
  6. package/dist/{chunk-5YGDYMRB.cjs → chunk-2SLFAFTR.cjs} +14 -13
  7. package/dist/chunk-36BLNJHS.js +2039 -0
  8. package/dist/chunk-424T5F2J.cjs +157 -0
  9. package/dist/chunk-4D66QEKC.js +81 -0
  10. package/dist/chunk-6KP2OBYA.cjs +544 -0
  11. package/dist/chunk-6T5JUKOQ.js +149 -0
  12. package/dist/chunk-75ZPJI57.cjs +9 -0
  13. package/dist/{chunk-M56ECCHK.cjs → chunk-7TP2LX5L.cjs} +20 -19
  14. package/dist/{chunk-QN4KF3BH.cjs → chunk-CCGRCYWJ.cjs} +2 -2
  15. package/dist/{chunk-QJ3AHN64.js → chunk-CRCR3ZUK.js} +4 -3
  16. package/dist/{chunk-7IWQE76Z.cjs → chunk-G7KH752Y.cjs} +16 -10
  17. package/dist/chunk-GHC4YV6R.js +504 -0
  18. package/dist/chunk-HISYIDYH.cjs +2042 -0
  19. package/dist/{chunk-D3G23FP3.cjs → chunk-HRSAZUIK.cjs} +24 -22
  20. package/dist/chunk-I5JKUCGE.cjs +308 -0
  21. package/dist/{chunk-Q6SHQECN.js → chunk-KHZKYUNR.js} +34 -10
  22. package/dist/{chunk-TRDNDNGQ.js → chunk-LCM566I4.js} +2 -7
  23. package/dist/chunk-LF7P5PLR.js +14 -0
  24. package/dist/chunk-MLKGABMK.js +7 -0
  25. package/dist/chunk-PIAJQ75M.js +539 -0
  26. package/dist/chunk-PZQDCRPV.cjs +16 -0
  27. package/dist/chunk-QGX47B5D.cjs +86 -0
  28. package/dist/{chunk-WTHDCRMY.js → chunk-RG473F6Y.js} +12 -6
  29. package/dist/chunk-RHSWAXKB.cjs +118 -0
  30. package/dist/{chunk-L7XE5QTW.js → chunk-RSEO4XPX.js} +1 -1
  31. package/dist/chunk-SDPGVWQJ.cjs +512 -0
  32. package/dist/chunk-T7HAZC2E.js +527 -0
  33. package/dist/chunk-UCV4247U.cjs +332 -0
  34. package/dist/chunk-UEVYOKAH.cjs +555 -0
  35. package/dist/{chunk-Y3SV5XK4.js → chunk-VTTN2FW3.js} +136 -18
  36. package/dist/{chunk-5JNVY6DU.js → chunk-WBRFIHSF.js} +7 -5
  37. package/dist/{chunk-4JINXASC.js → chunk-WNVFNNWN.js} +5 -4
  38. package/dist/{chunk-M3YJLWTU.js → chunk-ZYAFP2AV.js} +68 -57
  39. package/dist/server/handlers/a2a.cjs +30 -0
  40. package/dist/server/handlers/a2a.d.cts +6 -0
  41. package/dist/server/handlers/a2a.d.ts +6 -0
  42. package/dist/server/handlers/a2a.js +1 -0
  43. package/dist/server/handlers/agents.cjs +11 -7
  44. package/dist/server/handlers/agents.d.cts +1 -0
  45. package/dist/server/handlers/agents.d.ts +1 -0
  46. package/dist/server/handlers/agents.js +1 -1
  47. package/dist/server/handlers/error.cjs +2 -2
  48. package/dist/server/handlers/error.js +1 -1
  49. package/dist/server/handlers/legacyWorkflows.cjs +46 -0
  50. package/dist/server/handlers/legacyWorkflows.d.cts +10 -0
  51. package/dist/server/handlers/legacyWorkflows.d.ts +10 -0
  52. package/dist/server/handlers/legacyWorkflows.js +1 -0
  53. package/dist/server/handlers/logs.cjs +4 -4
  54. package/dist/server/handlers/logs.js +1 -1
  55. package/dist/server/handlers/memory.cjs +33 -9
  56. package/dist/server/handlers/memory.d.cts +6 -0
  57. package/dist/server/handlers/memory.d.ts +6 -0
  58. package/dist/server/handlers/memory.js +1 -1
  59. package/dist/server/handlers/network.cjs +5 -5
  60. package/dist/server/handlers/network.js +1 -1
  61. package/dist/server/handlers/scores.cjs +30 -0
  62. package/dist/server/handlers/scores.d.cts +6 -0
  63. package/dist/server/handlers/scores.d.ts +6 -0
  64. package/dist/server/handlers/scores.js +1 -0
  65. package/dist/server/handlers/telemetry.cjs +3 -3
  66. package/dist/server/handlers/telemetry.js +1 -1
  67. package/dist/server/handlers/tools.cjs +5 -5
  68. package/dist/server/handlers/tools.js +1 -1
  69. package/dist/server/handlers/utils.cjs +2 -2
  70. package/dist/server/handlers/utils.js +1 -1
  71. package/dist/server/handlers/vNextNetwork.cjs +218 -0
  72. package/dist/server/handlers/vNextNetwork.d.cts +6 -0
  73. package/dist/server/handlers/vNextNetwork.d.ts +6 -0
  74. package/dist/server/handlers/vNextNetwork.js +211 -0
  75. package/dist/server/handlers/vector.cjs +7 -7
  76. package/dist/server/handlers/vector.js +1 -1
  77. package/dist/server/handlers/voice.cjs +8 -4
  78. package/dist/server/handlers/voice.d.cts +1 -0
  79. package/dist/server/handlers/voice.d.ts +1 -0
  80. package/dist/server/handlers/voice.js +1 -1
  81. package/dist/server/handlers/workflows.cjs +33 -13
  82. package/dist/server/handlers/workflows.d.cts +7 -2
  83. package/dist/server/handlers/workflows.d.ts +7 -2
  84. package/dist/server/handlers/workflows.js +1 -1
  85. package/dist/server/handlers.cjs +39 -29
  86. package/dist/server/handlers.d.cts +4 -2
  87. package/dist/server/handlers.d.ts +4 -2
  88. package/dist/server/handlers.js +12 -10
  89. package/package.json +17 -15
  90. package/dist/chunk-2FJURXCL.cjs +0 -213
  91. package/dist/chunk-3AHQ5RGN.js +0 -11
  92. package/dist/chunk-3EJZQ6TQ.js +0 -49
  93. package/dist/chunk-4BIX6GMY.cjs +0 -189
  94. package/dist/chunk-55HTWX4C.cjs +0 -93
  95. package/dist/chunk-5SWCVTNL.cjs +0 -5579
  96. package/dist/chunk-AELYAUEE.cjs +0 -316
  97. package/dist/chunk-EVCC233P.cjs +0 -321
  98. package/dist/chunk-JPB6RPGB.js +0 -304
  99. package/dist/chunk-OMN3UI6X.js +0 -5576
  100. package/dist/chunk-RBQASTUP.js +0 -203
  101. package/dist/chunk-SKBVVI24.cjs +0 -54
  102. package/dist/chunk-ZLBRQFDD.cjs +0 -13
  103. package/dist/server/handlers/vNextWorkflows.cjs +0 -46
  104. package/dist/server/handlers/vNextWorkflows.d.cts +0 -10
  105. package/dist/server/handlers/vNextWorkflows.d.ts +0 -10
  106. package/dist/server/handlers/vNextWorkflows.js +0 -1
@@ -0,0 +1,211 @@
1
+ import { stringify, esm_default } from '../../chunk-36BLNJHS.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 chunkM56ECCHK_cjs = require('../../chunk-M56ECCHK.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 chunkM56ECCHK_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 chunkM56ECCHK_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 chunkM56ECCHK_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 chunkM56ECCHK_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 chunkM56ECCHK_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 chunkM56ECCHK_cjs.upsertVectors; }
29
+ get: function () { return chunk7TP2LX5L_cjs.upsertVectors; }
30
30
  });
@@ -1 +1 @@
1
- export { createIndex, deleteIndex, describeIndex, listIndexes, queryVectors, upsertVectors } from '../../chunk-4JINXASC.js';
1
+ export { createIndex, deleteIndex, describeIndex, listIndexes, queryVectors, upsertVectors } from '../../chunk-WNVFNNWN.js';
@@ -1,18 +1,22 @@
1
1
  'use strict';
2
2
 
3
- var chunk55HTWX4C_cjs = require('../../chunk-55HTWX4C.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 chunk55HTWX4C_cjs.generateSpeechHandler; }
9
+ get: function () { return chunkRHSWAXKB_cjs.generateSpeechHandler; }
10
+ });
11
+ Object.defineProperty(exports, "getListenerHandler", {
12
+ enumerable: true,
13
+ get: function () { return chunkRHSWAXKB_cjs.getListenerHandler; }
10
14
  });
11
15
  Object.defineProperty(exports, "getSpeakersHandler", {
12
16
  enumerable: true,
13
- get: function () { return chunk55HTWX4C_cjs.getSpeakersHandler; }
17
+ get: function () { return chunkRHSWAXKB_cjs.getSpeakersHandler; }
14
18
  });
15
19
  Object.defineProperty(exports, "transcribeSpeechHandler", {
16
20
  enumerable: true,
17
- get: function () { return chunk55HTWX4C_cjs.transcribeSpeechHandler; }
21
+ get: function () { return chunkRHSWAXKB_cjs.transcribeSpeechHandler; }
18
22
  });
@@ -1,3 +1,4 @@
1
1
  export { getSpeakersHandler } from '../../_tsup-dts-rollup.cjs';
2
2
  export { generateSpeechHandler } from '../../_tsup-dts-rollup.cjs';
3
3
  export { transcribeSpeechHandler } from '../../_tsup-dts-rollup.cjs';
4
+ export { getListenerHandler } from '../../_tsup-dts-rollup.cjs';
@@ -1,3 +1,4 @@
1
1
  export { getSpeakersHandler } from '../../_tsup-dts-rollup.js';
2
2
  export { generateSpeechHandler } from '../../_tsup-dts-rollup.js';
3
3
  export { transcribeSpeechHandler } from '../../_tsup-dts-rollup.js';
4
+ export { getListenerHandler } from '../../_tsup-dts-rollup.js';
@@ -1 +1 @@
1
- export { generateSpeechHandler, getSpeakersHandler, transcribeSpeechHandler } from '../../chunk-Q6SHQECN.js';
1
+ export { generateSpeechHandler, getListenerHandler, getSpeakersHandler, transcribeSpeechHandler } from '../../chunk-KHZKYUNR.js';
@@ -1,46 +1,66 @@
1
1
  'use strict';
2
2
 
3
- var chunkEVCC233P_cjs = require('../../chunk-EVCC233P.cjs');
3
+ var chunk6KP2OBYA_cjs = require('../../chunk-6KP2OBYA.cjs');
4
4
 
5
5
 
6
6
 
7
- Object.defineProperty(exports, "createRunHandler", {
7
+ Object.defineProperty(exports, "cancelWorkflowRunHandler", {
8
8
  enumerable: true,
9
- get: function () { return chunkEVCC233P_cjs.createRunHandler; }
9
+ get: function () { return chunk6KP2OBYA_cjs.cancelWorkflowRunHandler; }
10
+ });
11
+ Object.defineProperty(exports, "createWorkflowRunHandler", {
12
+ enumerable: true,
13
+ get: function () { return chunk6KP2OBYA_cjs.createWorkflowRunHandler; }
10
14
  });
11
15
  Object.defineProperty(exports, "getWorkflowByIdHandler", {
12
16
  enumerable: true,
13
- get: function () { return chunkEVCC233P_cjs.getWorkflowByIdHandler; }
17
+ get: function () { return chunk6KP2OBYA_cjs.getWorkflowByIdHandler; }
14
18
  });
15
- Object.defineProperty(exports, "getWorkflowRunHandler", {
19
+ Object.defineProperty(exports, "getWorkflowRunByIdHandler", {
16
20
  enumerable: true,
17
- get: function () { return chunkEVCC233P_cjs.getWorkflowRunHandler; }
21
+ get: function () { return chunk6KP2OBYA_cjs.getWorkflowRunByIdHandler; }
22
+ });
23
+ Object.defineProperty(exports, "getWorkflowRunExecutionResultHandler", {
24
+ enumerable: true,
25
+ get: function () { return chunk6KP2OBYA_cjs.getWorkflowRunExecutionResultHandler; }
18
26
  });
19
27
  Object.defineProperty(exports, "getWorkflowRunsHandler", {
20
28
  enumerable: true,
21
- get: function () { return chunkEVCC233P_cjs.getWorkflowRunsHandler; }
29
+ get: function () { return chunk6KP2OBYA_cjs.getWorkflowRunsHandler; }
22
30
  });
23
31
  Object.defineProperty(exports, "getWorkflowsHandler", {
24
32
  enumerable: true,
25
- get: function () { return chunkEVCC233P_cjs.getWorkflowsHandler; }
33
+ get: function () { return chunk6KP2OBYA_cjs.getWorkflowsHandler; }
26
34
  });
27
35
  Object.defineProperty(exports, "resumeAsyncWorkflowHandler", {
28
36
  enumerable: true,
29
- get: function () { return chunkEVCC233P_cjs.resumeAsyncWorkflowHandler; }
37
+ get: function () { return chunk6KP2OBYA_cjs.resumeAsyncWorkflowHandler; }
30
38
  });
31
39
  Object.defineProperty(exports, "resumeWorkflowHandler", {
32
40
  enumerable: true,
33
- get: function () { return chunkEVCC233P_cjs.resumeWorkflowHandler; }
41
+ get: function () { return chunk6KP2OBYA_cjs.resumeWorkflowHandler; }
42
+ });
43
+ Object.defineProperty(exports, "sendWorkflowRunEventHandler", {
44
+ enumerable: true,
45
+ get: function () { return chunk6KP2OBYA_cjs.sendWorkflowRunEventHandler; }
34
46
  });
35
47
  Object.defineProperty(exports, "startAsyncWorkflowHandler", {
36
48
  enumerable: true,
37
- get: function () { return chunkEVCC233P_cjs.startAsyncWorkflowHandler; }
49
+ get: function () { return chunk6KP2OBYA_cjs.startAsyncWorkflowHandler; }
38
50
  });
39
51
  Object.defineProperty(exports, "startWorkflowRunHandler", {
40
52
  enumerable: true,
41
- get: function () { return chunkEVCC233P_cjs.startWorkflowRunHandler; }
53
+ get: function () { return chunk6KP2OBYA_cjs.startWorkflowRunHandler; }
54
+ });
55
+ Object.defineProperty(exports, "streamVNextWorkflowHandler", {
56
+ enumerable: true,
57
+ get: function () { return chunk6KP2OBYA_cjs.streamVNextWorkflowHandler; }
58
+ });
59
+ Object.defineProperty(exports, "streamWorkflowHandler", {
60
+ enumerable: true,
61
+ get: function () { return chunk6KP2OBYA_cjs.streamWorkflowHandler; }
42
62
  });
43
63
  Object.defineProperty(exports, "watchWorkflowHandler", {
44
64
  enumerable: true,
45
- get: function () { return chunkEVCC233P_cjs.watchWorkflowHandler; }
65
+ get: function () { return chunk6KP2OBYA_cjs.watchWorkflowHandler; }
46
66
  });
@@ -1,10 +1,15 @@
1
1
  export { getWorkflowsHandler } from '../../_tsup-dts-rollup.cjs';
2
2
  export { getWorkflowByIdHandler } from '../../_tsup-dts-rollup.cjs';
3
+ export { getWorkflowRunByIdHandler } from '../../_tsup-dts-rollup.cjs';
4
+ export { getWorkflowRunExecutionResultHandler } from '../../_tsup-dts-rollup.cjs';
5
+ export { createWorkflowRunHandler } from '../../_tsup-dts-rollup.cjs';
3
6
  export { startAsyncWorkflowHandler } from '../../_tsup-dts-rollup.cjs';
4
- export { getWorkflowRunHandler } from '../../_tsup-dts-rollup.cjs';
5
- export { createRunHandler } from '../../_tsup-dts-rollup.cjs';
6
7
  export { startWorkflowRunHandler } from '../../_tsup-dts-rollup.cjs';
7
8
  export { watchWorkflowHandler } from '../../_tsup-dts-rollup.cjs';
9
+ export { streamWorkflowHandler } from '../../_tsup-dts-rollup.cjs';
10
+ export { streamVNextWorkflowHandler } from '../../_tsup-dts-rollup.cjs';
8
11
  export { resumeAsyncWorkflowHandler } from '../../_tsup-dts-rollup.cjs';
9
12
  export { resumeWorkflowHandler } from '../../_tsup-dts-rollup.cjs';
10
13
  export { getWorkflowRunsHandler } from '../../_tsup-dts-rollup.cjs';
14
+ export { cancelWorkflowRunHandler } from '../../_tsup-dts-rollup.cjs';
15
+ export { sendWorkflowRunEventHandler } from '../../_tsup-dts-rollup.cjs';
@@ -1,10 +1,15 @@
1
1
  export { getWorkflowsHandler } from '../../_tsup-dts-rollup.js';
2
2
  export { getWorkflowByIdHandler } from '../../_tsup-dts-rollup.js';
3
+ export { getWorkflowRunByIdHandler } from '../../_tsup-dts-rollup.js';
4
+ export { getWorkflowRunExecutionResultHandler } from '../../_tsup-dts-rollup.js';
5
+ export { createWorkflowRunHandler } from '../../_tsup-dts-rollup.js';
3
6
  export { startAsyncWorkflowHandler } from '../../_tsup-dts-rollup.js';
4
- export { getWorkflowRunHandler } from '../../_tsup-dts-rollup.js';
5
- export { createRunHandler } from '../../_tsup-dts-rollup.js';
6
7
  export { startWorkflowRunHandler } from '../../_tsup-dts-rollup.js';
7
8
  export { watchWorkflowHandler } from '../../_tsup-dts-rollup.js';
9
+ export { streamWorkflowHandler } from '../../_tsup-dts-rollup.js';
10
+ export { streamVNextWorkflowHandler } from '../../_tsup-dts-rollup.js';
8
11
  export { resumeAsyncWorkflowHandler } from '../../_tsup-dts-rollup.js';
9
12
  export { resumeWorkflowHandler } from '../../_tsup-dts-rollup.js';
10
13
  export { getWorkflowRunsHandler } from '../../_tsup-dts-rollup.js';
14
+ export { cancelWorkflowRunHandler } from '../../_tsup-dts-rollup.js';
15
+ export { sendWorkflowRunEventHandler } from '../../_tsup-dts-rollup.js';
@@ -1 +1 @@
1
- export { createRunHandler, getWorkflowByIdHandler, getWorkflowRunHandler, getWorkflowRunsHandler, getWorkflowsHandler, resumeAsyncWorkflowHandler, resumeWorkflowHandler, startAsyncWorkflowHandler, startWorkflowRunHandler, watchWorkflowHandler } from '../../chunk-M3YJLWTU.js';
1
+ export { cancelWorkflowRunHandler, createWorkflowRunHandler, getWorkflowByIdHandler, getWorkflowRunByIdHandler, getWorkflowRunExecutionResultHandler, getWorkflowRunsHandler, getWorkflowsHandler, resumeAsyncWorkflowHandler, resumeWorkflowHandler, sendWorkflowRunEventHandler, startAsyncWorkflowHandler, startWorkflowRunHandler, streamVNextWorkflowHandler, streamWorkflowHandler, watchWorkflowHandler } from '../../chunk-T7HAZC2E.js';
@@ -1,55 +1,65 @@
1
1
  'use strict';
2
2
 
3
- var chunkD3G23FP3_cjs = require('../chunk-D3G23FP3.cjs');
4
- var chunkAELYAUEE_cjs = require('../chunk-AELYAUEE.cjs');
5
- var chunkM56ECCHK_cjs = require('../chunk-M56ECCHK.cjs');
6
- var chunk55HTWX4C_cjs = require('../chunk-55HTWX4C.cjs');
7
- var chunkEVCC233P_cjs = require('../chunk-EVCC233P.cjs');
8
- var chunk4BIX6GMY_cjs = require('../chunk-4BIX6GMY.cjs');
9
- var chunkSKBVVI24_cjs = require('../chunk-SKBVVI24.cjs');
10
- var chunk2FJURXCL_cjs = require('../chunk-2FJURXCL.cjs');
11
- var chunk5YGDYMRB_cjs = require('../chunk-5YGDYMRB.cjs');
12
- var chunk7IWQE76Z_cjs = require('../chunk-7IWQE76Z.cjs');
3
+ var chunk6KP2OBYA_cjs = require('../chunk-6KP2OBYA.cjs');
4
+ var chunk2SLFAFTR_cjs = require('../chunk-2SLFAFTR.cjs');
5
+ var chunk424T5F2J_cjs = require('../chunk-424T5F2J.cjs');
6
+ var chunkG7KH752Y_cjs = require('../chunk-G7KH752Y.cjs');
7
+ var chunkHRSAZUIK_cjs = require('../chunk-HRSAZUIK.cjs');
8
+ var chunk7TP2LX5L_cjs = require('../chunk-7TP2LX5L.cjs');
9
+ var chunkRHSWAXKB_cjs = require('../chunk-RHSWAXKB.cjs');
10
+ var chunkSDPGVWQJ_cjs = require('../chunk-SDPGVWQJ.cjs');
11
+ var chunkI5JKUCGE_cjs = require('../chunk-I5JKUCGE.cjs');
12
+ var chunkUCV4247U_cjs = require('../chunk-UCV4247U.cjs');
13
+ var chunkQGX47B5D_cjs = require('../chunk-QGX47B5D.cjs');
14
+ var chunkUEVYOKAH_cjs = require('../chunk-UEVYOKAH.cjs');
13
15
 
14
16
 
15
17
 
16
- Object.defineProperty(exports, "tools", {
18
+ Object.defineProperty(exports, "workflows", {
19
+ enumerable: true,
20
+ get: function () { return chunk6KP2OBYA_cjs.workflows_exports; }
21
+ });
22
+ Object.defineProperty(exports, "network", {
23
+ enumerable: true,
24
+ get: function () { return chunk2SLFAFTR_cjs.network_exports; }
25
+ });
26
+ Object.defineProperty(exports, "scores", {
27
+ enumerable: true,
28
+ get: function () { return chunk424T5F2J_cjs.scores_exports; }
29
+ });
30
+ Object.defineProperty(exports, "telemetry", {
17
31
  enumerable: true,
18
- get: function () { return chunkD3G23FP3_cjs.tools_exports; }
32
+ get: function () { return chunkG7KH752Y_cjs.telemetry_exports; }
19
33
  });
20
- Object.defineProperty(exports, "vNextWorkflows", {
34
+ Object.defineProperty(exports, "tools", {
21
35
  enumerable: true,
22
- get: function () { return chunkAELYAUEE_cjs.vNextWorkflows_exports; }
36
+ get: function () { return chunkHRSAZUIK_cjs.tools_exports; }
23
37
  });
24
38
  Object.defineProperty(exports, "vector", {
25
39
  enumerable: true,
26
- get: function () { return chunkM56ECCHK_cjs.vector_exports; }
40
+ get: function () { return chunk7TP2LX5L_cjs.vector_exports; }
27
41
  });
28
42
  Object.defineProperty(exports, "voice", {
29
43
  enumerable: true,
30
- get: function () { return chunk55HTWX4C_cjs.voice_exports; }
44
+ get: function () { return chunkRHSWAXKB_cjs.voice_exports; }
31
45
  });
32
- Object.defineProperty(exports, "workflows", {
46
+ Object.defineProperty(exports, "a2a", {
33
47
  enumerable: true,
34
- get: function () { return chunkEVCC233P_cjs.workflows_exports; }
48
+ get: function () { return chunkSDPGVWQJ_cjs.a2a_exports; }
35
49
  });
36
50
  Object.defineProperty(exports, "agents", {
37
51
  enumerable: true,
38
- get: function () { return chunk4BIX6GMY_cjs.agents_exports; }
39
- });
40
- Object.defineProperty(exports, "logs", {
41
- enumerable: true,
42
- get: function () { return chunkSKBVVI24_cjs.logs_exports; }
52
+ get: function () { return chunkI5JKUCGE_cjs.agents_exports; }
43
53
  });
44
- Object.defineProperty(exports, "memory", {
54
+ Object.defineProperty(exports, "legacyWorkflows", {
45
55
  enumerable: true,
46
- get: function () { return chunk2FJURXCL_cjs.memory_exports; }
56
+ get: function () { return chunkUCV4247U_cjs.legacyWorkflows_exports; }
47
57
  });
48
- Object.defineProperty(exports, "network", {
58
+ Object.defineProperty(exports, "logs", {
49
59
  enumerable: true,
50
- get: function () { return chunk5YGDYMRB_cjs.network_exports; }
60
+ get: function () { return chunkQGX47B5D_cjs.logs_exports; }
51
61
  });
52
- Object.defineProperty(exports, "telemetry", {
62
+ Object.defineProperty(exports, "memory", {
53
63
  enumerable: true,
54
- get: function () { return chunk7IWQE76Z_cjs.telemetry_exports; }
64
+ get: function () { return chunkUEVYOKAH_cjs.memory_exports; }
55
65
  });
@@ -1,10 +1,12 @@
1
1
  export { agents } from '../_tsup-dts-rollup.cjs';
2
+ export { a2a } from '../_tsup-dts-rollup.cjs';
3
+ export { legacyWorkflows } from '../_tsup-dts-rollup.cjs';
2
4
  export { logs } from '../_tsup-dts-rollup.cjs';
3
5
  export { memory } from '../_tsup-dts-rollup.cjs';
4
6
  export { network } from '../_tsup-dts-rollup.cjs';
7
+ export { scores } from '../_tsup-dts-rollup.cjs';
5
8
  export { telemetry } from '../_tsup-dts-rollup.cjs';
6
9
  export { tools } from '../_tsup-dts-rollup.cjs';
7
- export { workflows } from '../_tsup-dts-rollup.cjs';
8
- export { vNextWorkflows } from '../_tsup-dts-rollup.cjs';
9
10
  export { vector } from '../_tsup-dts-rollup.cjs';
10
11
  export { voice } from '../_tsup-dts-rollup.cjs';
12
+ export { workflows } from '../_tsup-dts-rollup.cjs';
@@ -1,10 +1,12 @@
1
1
  export { agents } from '../_tsup-dts-rollup.js';
2
+ export { a2a } from '../_tsup-dts-rollup.js';
3
+ export { legacyWorkflows } from '../_tsup-dts-rollup.js';
2
4
  export { logs } from '../_tsup-dts-rollup.js';
3
5
  export { memory } from '../_tsup-dts-rollup.js';
4
6
  export { network } from '../_tsup-dts-rollup.js';
7
+ export { scores } from '../_tsup-dts-rollup.js';
5
8
  export { telemetry } from '../_tsup-dts-rollup.js';
6
9
  export { tools } from '../_tsup-dts-rollup.js';
7
- export { workflows } from '../_tsup-dts-rollup.js';
8
- export { vNextWorkflows } from '../_tsup-dts-rollup.js';
9
10
  export { vector } from '../_tsup-dts-rollup.js';
10
11
  export { voice } from '../_tsup-dts-rollup.js';
12
+ export { workflows } from '../_tsup-dts-rollup.js';
@@ -1,10 +1,12 @@
1
- export { tools_exports as tools } from '../chunk-5JNVY6DU.js';
2
- export { vNextWorkflows_exports as vNextWorkflows } from '../chunk-JPB6RPGB.js';
3
- export { vector_exports as vector } from '../chunk-4JINXASC.js';
4
- export { voice_exports as voice } from '../chunk-Q6SHQECN.js';
5
- export { workflows_exports as workflows } from '../chunk-M3YJLWTU.js';
6
- export { agents_exports as agents } from '../chunk-Y3SV5XK4.js';
7
- export { logs_exports as logs } from '../chunk-3EJZQ6TQ.js';
8
- export { memory_exports as memory } from '../chunk-RBQASTUP.js';
9
- export { network_exports as network } from '../chunk-QJ3AHN64.js';
10
- export { telemetry_exports as telemetry } from '../chunk-WTHDCRMY.js';
1
+ export { workflows_exports as workflows } from '../chunk-T7HAZC2E.js';
2
+ export { network_exports as network } from '../chunk-CRCR3ZUK.js';
3
+ export { scores_exports as scores } from '../chunk-6T5JUKOQ.js';
4
+ export { telemetry_exports as telemetry } from '../chunk-RG473F6Y.js';
5
+ export { tools_exports as tools } from '../chunk-WBRFIHSF.js';
6
+ export { vector_exports as vector } from '../chunk-WNVFNNWN.js';
7
+ export { voice_exports as voice } from '../chunk-KHZKYUNR.js';
8
+ export { a2a_exports as a2a } from '../chunk-GHC4YV6R.js';
9
+ export { agents_exports as agents } from '../chunk-VTTN2FW3.js';
10
+ export { legacyWorkflows_exports as legacyWorkflows } from '../chunk-ZYAFP2AV.js';
11
+ export { logs_exports as logs } from '../chunk-4D66QEKC.js';
12
+ export { memory_exports as memory } from '../chunk-PIAJQ75M.js';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@mastra/server",
3
- "version": "0.0.0-expose-more-playground-ui-20250502141824",
3
+ "version": "0.0.0-feat-tool-input-validation-20250731232758",
4
4
  "description": "",
5
5
  "type": "module",
6
6
  "files": [
@@ -43,26 +43,28 @@
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.0.0-expose-more-playground-ui-20250502141824"
48
+ "zod": "^3.0.0",
49
+ "@mastra/core": "0.0.0-feat-tool-input-validation-20250731232758"
50
50
  },
51
51
  "devDependencies": {
52
- "@ai-sdk/openai": "^1.3.2",
53
- "@microsoft/api-extractor": "^7.52.5",
54
- "@types/node": "^20.17.27",
55
- "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",
56
56
  "superjson": "^2.2.2",
57
- "tsup": "^8.4.0",
58
- "typescript": "^5.8.2",
59
- "vitest": "^2.1.9",
60
- "zod-to-json-schema": "^3.24.3",
61
- "@internal/lint": "0.0.2",
62
- "@mastra/core": "0.0.0-expose-more-playground-ui-20250502141824"
57
+ "tsup": "^8.5.0",
58
+ "typescript": "^5.8.3",
59
+ "vitest": "^3.2.4",
60
+ "zod": "^3.25.67",
61
+ "zod-to-json-schema": "^3.24.5",
62
+ "@internal/lint": "0.0.0-feat-tool-input-validation-20250731232758",
63
+ "@internal/storage-test-utils": "0.0.20",
64
+ "@mastra/core": "0.0.0-feat-tool-input-validation-20250731232758"
63
65
  },
64
66
  "scripts": {
65
- "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",
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 --silent",
66
68
  "build:watch": "pnpm build --watch",
67
69
  "pull:openapispec": "node src/server/openapi.script.js",
68
70
  "test": "vitest run",