@mastra/server 0.0.0-default-storage-virtual-file-20250410035748 → 0.0.0-expose-more-playground-ui-20250501175749

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 (44) hide show
  1. package/{LICENSE → LICENSE.md} +3 -1
  2. package/dist/_tsup-dts-rollup.d.cts +123 -33
  3. package/dist/_tsup-dts-rollup.d.ts +123 -33
  4. package/dist/{chunk-2JQC6JWP.js → chunk-3EJZQ6TQ.js} +4 -1
  5. package/dist/{chunk-GV52BII2.cjs → chunk-4BIX6GMY.cjs} +63 -34
  6. package/dist/{chunk-A7DF4ETD.cjs → chunk-55HTWX4C.cjs} +2 -9
  7. package/dist/{chunk-YNSGUC2O.js → chunk-5JNVY6DU.js} +8 -4
  8. package/dist/{chunk-QH6XWSXP.cjs → chunk-5SWCVTNL.cjs} +38 -38
  9. package/dist/{chunk-5JOF627H.cjs → chunk-5YGDYMRB.cjs} +54 -30
  10. package/dist/{chunk-CWSDZEZG.cjs → chunk-7IWQE76Z.cjs} +2 -2
  11. package/dist/chunk-AELYAUEE.cjs +316 -0
  12. package/dist/{chunk-4C3EPMMF.cjs → chunk-D3G23FP3.cjs} +12 -8
  13. package/dist/{chunk-X37I6GZT.cjs → chunk-EVCC233P.cjs} +29 -16
  14. package/dist/chunk-JPB6RPGB.js +304 -0
  15. package/dist/{chunk-ILW7XYNJ.js → chunk-M3YJLWTU.js} +23 -10
  16. package/dist/{chunk-VK6FX47H.js → chunk-OMN3UI6X.js} +38 -38
  17. package/dist/{chunk-3RVHWGWO.js → chunk-Q6SHQECN.js} +2 -9
  18. package/dist/{chunk-2YONKUWB.js → chunk-QJ3AHN64.js} +54 -30
  19. package/dist/{chunk-VB7KH62D.cjs → chunk-SKBVVI24.cjs} +4 -1
  20. package/dist/{chunk-DVPP5S6I.js → chunk-WTHDCRMY.js} +2 -2
  21. package/dist/{chunk-BMA2ORRT.js → chunk-Y3SV5XK4.js} +61 -32
  22. package/dist/server/handlers/agents.cjs +7 -7
  23. package/dist/server/handlers/agents.js +1 -1
  24. package/dist/server/handlers/logs.cjs +4 -4
  25. package/dist/server/handlers/logs.js +1 -1
  26. package/dist/server/handlers/network.cjs +5 -5
  27. package/dist/server/handlers/network.js +1 -1
  28. package/dist/server/handlers/telemetry.cjs +3 -3
  29. package/dist/server/handlers/telemetry.js +1 -1
  30. package/dist/server/handlers/tools.cjs +5 -5
  31. package/dist/server/handlers/tools.js +1 -1
  32. package/dist/server/handlers/vNextWorkflows.cjs +46 -0
  33. package/dist/server/handlers/vNextWorkflows.d.cts +10 -0
  34. package/dist/server/handlers/vNextWorkflows.d.ts +10 -0
  35. package/dist/server/handlers/vNextWorkflows.js +1 -0
  36. package/dist/server/handlers/voice.cjs +4 -4
  37. package/dist/server/handlers/voice.js +1 -1
  38. package/dist/server/handlers/workflows.cjs +11 -11
  39. package/dist/server/handlers/workflows.js +1 -1
  40. package/dist/server/handlers.cjs +19 -14
  41. package/dist/server/handlers.d.cts +1 -0
  42. package/dist/server/handlers.d.ts +1 -0
  43. package/dist/server/handlers.js +8 -7
  44. package/package.json +6 -6
@@ -1,4 +1,4 @@
1
- import { stringify, esm_default } from './chunk-VK6FX47H.js';
1
+ import { stringify, esm_default } from './chunk-OMN3UI6X.js';
2
2
  import { validateBody } from './chunk-L7XE5QTW.js';
3
3
  import { handleError } from './chunk-3AHQ5RGN.js';
4
4
  import { __export, HTTPException } from './chunk-TRDNDNGQ.js';
@@ -13,27 +13,35 @@ __export(agents_exports, {
13
13
  getLiveEvalsByAgentIdHandler: () => getLiveEvalsByAgentIdHandler,
14
14
  streamGenerateHandler: () => streamGenerateHandler
15
15
  });
16
- async function getAgentsHandler({ mastra }) {
16
+ async function getAgentsHandler({ mastra, runtimeContext }) {
17
17
  try {
18
18
  const agents = mastra.getAgents();
19
- const serializedAgents = Object.entries(agents).reduce((acc, [_id, _agent]) => {
20
- const agent = _agent;
21
- const serializedAgentTools = Object.entries(agent?.tools || {}).reduce((acc2, [key, tool]) => {
22
- const _tool = tool;
23
- acc2[key] = {
24
- ..._tool,
25
- inputSchema: _tool.inputSchema ? stringify(esm_default(_tool.inputSchema)) : void 0,
26
- outputSchema: _tool.outputSchema ? stringify(esm_default(_tool.outputSchema)) : void 0
19
+ const serializedAgentsMap = await Promise.all(
20
+ Object.entries(agents).map(async ([id, agent]) => {
21
+ const instructions = await agent.getInstructions({ runtimeContext });
22
+ const tools = await agent.getTools({ runtimeContext });
23
+ const llm = await agent.getLLM({ runtimeContext });
24
+ const serializedAgentTools = Object.entries(tools || {}).reduce((acc, [key, tool]) => {
25
+ const _tool = tool;
26
+ acc[key] = {
27
+ ..._tool,
28
+ inputSchema: _tool.inputSchema ? stringify(esm_default(_tool.inputSchema)) : void 0,
29
+ outputSchema: _tool.outputSchema ? stringify(esm_default(_tool.outputSchema)) : void 0
30
+ };
31
+ return acc;
32
+ }, {});
33
+ return {
34
+ id,
35
+ name: agent.name,
36
+ instructions,
37
+ tools: serializedAgentTools,
38
+ provider: llm?.getProvider(),
39
+ modelId: llm?.getModelId()
27
40
  };
28
- return acc2;
29
- }, {});
30
- acc[_id] = {
31
- name: agent.name,
32
- instructions: agent.instructions,
33
- tools: serializedAgentTools,
34
- provider: agent.llm?.getProvider(),
35
- modelId: agent.llm?.getModelId()
36
- };
41
+ })
42
+ );
43
+ const serializedAgents = serializedAgentsMap.reduce((acc, { id, ...rest }) => {
44
+ acc[id] = rest;
37
45
  return acc;
38
46
  }, {});
39
47
  return serializedAgents;
@@ -41,13 +49,18 @@ async function getAgentsHandler({ mastra }) {
41
49
  return handleError(error, "Error getting agents");
42
50
  }
43
51
  }
44
- async function getAgentByIdHandler({ mastra, agentId }) {
52
+ async function getAgentByIdHandler({
53
+ mastra,
54
+ runtimeContext,
55
+ agentId
56
+ }) {
45
57
  try {
46
58
  const agent = mastra.getAgent(agentId);
47
59
  if (!agent) {
48
60
  throw new HTTPException(404, { message: "Agent not found" });
49
61
  }
50
- const serializedAgentTools = Object.entries(agent?.tools || {}).reduce((acc, [key, tool]) => {
62
+ const tools = await agent.getTools({ runtimeContext });
63
+ const serializedAgentTools = Object.entries(tools || {}).reduce((acc, [key, tool]) => {
51
64
  const _tool = tool;
52
65
  acc[key] = {
53
66
  ..._tool,
@@ -56,39 +69,51 @@ async function getAgentByIdHandler({ mastra, agentId }) {
56
69
  };
57
70
  return acc;
58
71
  }, {});
72
+ const instructions = await agent.getInstructions({ runtimeContext });
73
+ const llm = await agent.getLLM({ runtimeContext });
59
74
  return {
60
75
  name: agent.name,
61
- instructions: agent.instructions,
76
+ instructions,
62
77
  tools: serializedAgentTools,
63
- provider: agent.llm?.getProvider(),
64
- modelId: agent.llm?.getModelId()
78
+ provider: llm?.getProvider(),
79
+ modelId: llm?.getModelId()
65
80
  };
66
81
  } catch (error) {
67
82
  return handleError(error, "Error getting agent");
68
83
  }
69
84
  }
70
- async function getEvalsByAgentIdHandler({ mastra, agentId }) {
85
+ async function getEvalsByAgentIdHandler({
86
+ mastra,
87
+ runtimeContext,
88
+ agentId
89
+ }) {
71
90
  try {
72
91
  const agent = mastra.getAgent(agentId);
73
- const evals = await mastra.getStorage()?.__getEvalsByAgentName?.(agent.name, "test") || [];
92
+ const evals = await mastra.getStorage()?.getEvalsByAgentName?.(agent.name, "test") || [];
93
+ const instructions = await agent.getInstructions({ runtimeContext });
74
94
  return {
75
95
  id: agentId,
76
96
  name: agent.name,
77
- instructions: agent.instructions,
97
+ instructions,
78
98
  evals
79
99
  };
80
100
  } catch (error) {
81
101
  return handleError(error, "Error getting test evals");
82
102
  }
83
103
  }
84
- async function getLiveEvalsByAgentIdHandler({ mastra, agentId }) {
104
+ async function getLiveEvalsByAgentIdHandler({
105
+ mastra,
106
+ runtimeContext,
107
+ agentId
108
+ }) {
85
109
  try {
86
110
  const agent = mastra.getAgent(agentId);
87
- const evals = await mastra.getStorage()?.__getEvalsByAgentName?.(agent.name, "live") || [];
111
+ const evals = await mastra.getStorage()?.getEvalsByAgentName?.(agent.name, "live") || [];
112
+ const instructions = await agent.getInstructions({ runtimeContext });
88
113
  return {
89
114
  id: agentId,
90
115
  name: agent.name,
91
- instructions: agent.instructions,
116
+ instructions,
92
117
  evals
93
118
  };
94
119
  } catch (error) {
@@ -97,6 +122,7 @@ async function getLiveEvalsByAgentIdHandler({ mastra, agentId }) {
97
122
  }
98
123
  async function generateHandler({
99
124
  mastra,
125
+ runtimeContext,
100
126
  agentId,
101
127
  body
102
128
  }) {
@@ -111,7 +137,8 @@ async function generateHandler({
111
137
  const result = await agent.generate(messages, {
112
138
  ...rest,
113
139
  // @ts-expect-error TODO fix types
114
- resourceId: finalResourceId
140
+ resourceId: finalResourceId,
141
+ runtimeContext
115
142
  });
116
143
  return result;
117
144
  } catch (error) {
@@ -120,6 +147,7 @@ async function generateHandler({
120
147
  }
121
148
  async function streamGenerateHandler({
122
149
  mastra,
150
+ runtimeContext,
123
151
  agentId,
124
152
  body
125
153
  }) {
@@ -134,7 +162,8 @@ async function streamGenerateHandler({
134
162
  const streamResult = await agent.stream(messages, {
135
163
  ...rest,
136
164
  // @ts-expect-error TODO fix types
137
- resourceId: finalResourceId
165
+ resourceId: finalResourceId,
166
+ runtimeContext
138
167
  });
139
168
  const streamResponse = rest.output ? streamResult.toTextStreamResponse() : streamResult.toDataStreamResponse({
140
169
  sendUsage: true,
@@ -1,30 +1,30 @@
1
1
  'use strict';
2
2
 
3
- var chunkGV52BII2_cjs = require('../../chunk-GV52BII2.cjs');
3
+ var chunk4BIX6GMY_cjs = require('../../chunk-4BIX6GMY.cjs');
4
4
 
5
5
 
6
6
 
7
7
  Object.defineProperty(exports, "generateHandler", {
8
8
  enumerable: true,
9
- get: function () { return chunkGV52BII2_cjs.generateHandler; }
9
+ get: function () { return chunk4BIX6GMY_cjs.generateHandler; }
10
10
  });
11
11
  Object.defineProperty(exports, "getAgentByIdHandler", {
12
12
  enumerable: true,
13
- get: function () { return chunkGV52BII2_cjs.getAgentByIdHandler; }
13
+ get: function () { return chunk4BIX6GMY_cjs.getAgentByIdHandler; }
14
14
  });
15
15
  Object.defineProperty(exports, "getAgentsHandler", {
16
16
  enumerable: true,
17
- get: function () { return chunkGV52BII2_cjs.getAgentsHandler; }
17
+ get: function () { return chunk4BIX6GMY_cjs.getAgentsHandler; }
18
18
  });
19
19
  Object.defineProperty(exports, "getEvalsByAgentIdHandler", {
20
20
  enumerable: true,
21
- get: function () { return chunkGV52BII2_cjs.getEvalsByAgentIdHandler; }
21
+ get: function () { return chunk4BIX6GMY_cjs.getEvalsByAgentIdHandler; }
22
22
  });
23
23
  Object.defineProperty(exports, "getLiveEvalsByAgentIdHandler", {
24
24
  enumerable: true,
25
- get: function () { return chunkGV52BII2_cjs.getLiveEvalsByAgentIdHandler; }
25
+ get: function () { return chunk4BIX6GMY_cjs.getLiveEvalsByAgentIdHandler; }
26
26
  });
27
27
  Object.defineProperty(exports, "streamGenerateHandler", {
28
28
  enumerable: true,
29
- get: function () { return chunkGV52BII2_cjs.streamGenerateHandler; }
29
+ get: function () { return chunk4BIX6GMY_cjs.streamGenerateHandler; }
30
30
  });
@@ -1 +1 @@
1
- export { generateHandler, getAgentByIdHandler, getAgentsHandler, getEvalsByAgentIdHandler, getLiveEvalsByAgentIdHandler, streamGenerateHandler } from '../../chunk-BMA2ORRT.js';
1
+ export { generateHandler, getAgentByIdHandler, getAgentsHandler, getEvalsByAgentIdHandler, getLiveEvalsByAgentIdHandler, streamGenerateHandler } from '../../chunk-Y3SV5XK4.js';
@@ -1,18 +1,18 @@
1
1
  'use strict';
2
2
 
3
- var chunkVB7KH62D_cjs = require('../../chunk-VB7KH62D.cjs');
3
+ var chunkSKBVVI24_cjs = require('../../chunk-SKBVVI24.cjs');
4
4
 
5
5
 
6
6
 
7
7
  Object.defineProperty(exports, "getLogTransports", {
8
8
  enumerable: true,
9
- get: function () { return chunkVB7KH62D_cjs.getLogTransports; }
9
+ get: function () { return chunkSKBVVI24_cjs.getLogTransports; }
10
10
  });
11
11
  Object.defineProperty(exports, "getLogsByRunIdHandler", {
12
12
  enumerable: true,
13
- get: function () { return chunkVB7KH62D_cjs.getLogsByRunIdHandler; }
13
+ get: function () { return chunkSKBVVI24_cjs.getLogsByRunIdHandler; }
14
14
  });
15
15
  Object.defineProperty(exports, "getLogsHandler", {
16
16
  enumerable: true,
17
- get: function () { return chunkVB7KH62D_cjs.getLogsHandler; }
17
+ get: function () { return chunkSKBVVI24_cjs.getLogsHandler; }
18
18
  });
@@ -1 +1 @@
1
- export { getLogTransports, getLogsByRunIdHandler, getLogsHandler } from '../../chunk-2JQC6JWP.js';
1
+ export { getLogTransports, getLogsByRunIdHandler, getLogsHandler } from '../../chunk-3EJZQ6TQ.js';
@@ -1,22 +1,22 @@
1
1
  'use strict';
2
2
 
3
- var chunk5JOF627H_cjs = require('../../chunk-5JOF627H.cjs');
3
+ var chunk5YGDYMRB_cjs = require('../../chunk-5YGDYMRB.cjs');
4
4
 
5
5
 
6
6
 
7
7
  Object.defineProperty(exports, "generateHandler", {
8
8
  enumerable: true,
9
- get: function () { return chunk5JOF627H_cjs.generateHandler; }
9
+ get: function () { return chunk5YGDYMRB_cjs.generateHandler; }
10
10
  });
11
11
  Object.defineProperty(exports, "getNetworkByIdHandler", {
12
12
  enumerable: true,
13
- get: function () { return chunk5JOF627H_cjs.getNetworkByIdHandler; }
13
+ get: function () { return chunk5YGDYMRB_cjs.getNetworkByIdHandler; }
14
14
  });
15
15
  Object.defineProperty(exports, "getNetworksHandler", {
16
16
  enumerable: true,
17
- get: function () { return chunk5JOF627H_cjs.getNetworksHandler; }
17
+ get: function () { return chunk5YGDYMRB_cjs.getNetworksHandler; }
18
18
  });
19
19
  Object.defineProperty(exports, "streamGenerateHandler", {
20
20
  enumerable: true,
21
- get: function () { return chunk5JOF627H_cjs.streamGenerateHandler; }
21
+ get: function () { return chunk5YGDYMRB_cjs.streamGenerateHandler; }
22
22
  });
@@ -1 +1 @@
1
- export { generateHandler, getNetworkByIdHandler, getNetworksHandler, streamGenerateHandler } from '../../chunk-2YONKUWB.js';
1
+ export { generateHandler, getNetworkByIdHandler, getNetworksHandler, streamGenerateHandler } from '../../chunk-QJ3AHN64.js';
@@ -1,14 +1,14 @@
1
1
  'use strict';
2
2
 
3
- var chunkCWSDZEZG_cjs = require('../../chunk-CWSDZEZG.cjs');
3
+ var chunk7IWQE76Z_cjs = require('../../chunk-7IWQE76Z.cjs');
4
4
 
5
5
 
6
6
 
7
7
  Object.defineProperty(exports, "getTelemetryHandler", {
8
8
  enumerable: true,
9
- get: function () { return chunkCWSDZEZG_cjs.getTelemetryHandler; }
9
+ get: function () { return chunk7IWQE76Z_cjs.getTelemetryHandler; }
10
10
  });
11
11
  Object.defineProperty(exports, "storeTelemetryHandler", {
12
12
  enumerable: true,
13
- get: function () { return chunkCWSDZEZG_cjs.storeTelemetryHandler; }
13
+ get: function () { return chunk7IWQE76Z_cjs.storeTelemetryHandler; }
14
14
  });
@@ -1 +1 @@
1
- export { getTelemetryHandler, storeTelemetryHandler } from '../../chunk-DVPP5S6I.js';
1
+ export { getTelemetryHandler, storeTelemetryHandler } from '../../chunk-WTHDCRMY.js';
@@ -1,22 +1,22 @@
1
1
  'use strict';
2
2
 
3
- var chunk4C3EPMMF_cjs = require('../../chunk-4C3EPMMF.cjs');
3
+ var chunkD3G23FP3_cjs = require('../../chunk-D3G23FP3.cjs');
4
4
 
5
5
 
6
6
 
7
7
  Object.defineProperty(exports, "executeAgentToolHandler", {
8
8
  enumerable: true,
9
- get: function () { return chunk4C3EPMMF_cjs.executeAgentToolHandler; }
9
+ get: function () { return chunkD3G23FP3_cjs.executeAgentToolHandler; }
10
10
  });
11
11
  Object.defineProperty(exports, "executeToolHandler", {
12
12
  enumerable: true,
13
- get: function () { return chunk4C3EPMMF_cjs.executeToolHandler; }
13
+ get: function () { return chunkD3G23FP3_cjs.executeToolHandler; }
14
14
  });
15
15
  Object.defineProperty(exports, "getToolByIdHandler", {
16
16
  enumerable: true,
17
- get: function () { return chunk4C3EPMMF_cjs.getToolByIdHandler; }
17
+ get: function () { return chunkD3G23FP3_cjs.getToolByIdHandler; }
18
18
  });
19
19
  Object.defineProperty(exports, "getToolsHandler", {
20
20
  enumerable: true,
21
- get: function () { return chunk4C3EPMMF_cjs.getToolsHandler; }
21
+ get: function () { return chunkD3G23FP3_cjs.getToolsHandler; }
22
22
  });
@@ -1 +1 @@
1
- export { executeAgentToolHandler, executeToolHandler, getToolByIdHandler, getToolsHandler } from '../../chunk-YNSGUC2O.js';
1
+ export { executeAgentToolHandler, executeToolHandler, getToolByIdHandler, getToolsHandler } from '../../chunk-5JNVY6DU.js';
@@ -0,0 +1,46 @@
1
+ 'use strict';
2
+
3
+ var chunkAELYAUEE_cjs = require('../../chunk-AELYAUEE.cjs');
4
+
5
+
6
+
7
+ Object.defineProperty(exports, "createVNextWorkflowRunHandler", {
8
+ enumerable: true,
9
+ get: function () { return chunkAELYAUEE_cjs.createVNextWorkflowRunHandler; }
10
+ });
11
+ Object.defineProperty(exports, "getVNextWorkflowByIdHandler", {
12
+ enumerable: true,
13
+ get: function () { return chunkAELYAUEE_cjs.getVNextWorkflowByIdHandler; }
14
+ });
15
+ Object.defineProperty(exports, "getVNextWorkflowRunHandler", {
16
+ enumerable: true,
17
+ get: function () { return chunkAELYAUEE_cjs.getVNextWorkflowRunHandler; }
18
+ });
19
+ Object.defineProperty(exports, "getVNextWorkflowRunsHandler", {
20
+ enumerable: true,
21
+ get: function () { return chunkAELYAUEE_cjs.getVNextWorkflowRunsHandler; }
22
+ });
23
+ Object.defineProperty(exports, "getVNextWorkflowsHandler", {
24
+ enumerable: true,
25
+ get: function () { return chunkAELYAUEE_cjs.getVNextWorkflowsHandler; }
26
+ });
27
+ Object.defineProperty(exports, "resumeAsyncVNextWorkflowHandler", {
28
+ enumerable: true,
29
+ get: function () { return chunkAELYAUEE_cjs.resumeAsyncVNextWorkflowHandler; }
30
+ });
31
+ Object.defineProperty(exports, "resumeVNextWorkflowHandler", {
32
+ enumerable: true,
33
+ get: function () { return chunkAELYAUEE_cjs.resumeVNextWorkflowHandler; }
34
+ });
35
+ Object.defineProperty(exports, "startAsyncVNextWorkflowHandler", {
36
+ enumerable: true,
37
+ get: function () { return chunkAELYAUEE_cjs.startAsyncVNextWorkflowHandler; }
38
+ });
39
+ Object.defineProperty(exports, "startVNextWorkflowRunHandler", {
40
+ enumerable: true,
41
+ get: function () { return chunkAELYAUEE_cjs.startVNextWorkflowRunHandler; }
42
+ });
43
+ Object.defineProperty(exports, "watchVNextWorkflowHandler", {
44
+ enumerable: true,
45
+ get: function () { return chunkAELYAUEE_cjs.watchVNextWorkflowHandler; }
46
+ });
@@ -0,0 +1,10 @@
1
+ export { getVNextWorkflowsHandler } from '../../_tsup-dts-rollup.cjs';
2
+ export { getVNextWorkflowByIdHandler } from '../../_tsup-dts-rollup.cjs';
3
+ export { getVNextWorkflowRunHandler } from '../../_tsup-dts-rollup.cjs';
4
+ export { createVNextWorkflowRunHandler } from '../../_tsup-dts-rollup.cjs';
5
+ export { startAsyncVNextWorkflowHandler } from '../../_tsup-dts-rollup.cjs';
6
+ export { startVNextWorkflowRunHandler } from '../../_tsup-dts-rollup.cjs';
7
+ export { watchVNextWorkflowHandler } from '../../_tsup-dts-rollup.cjs';
8
+ export { resumeAsyncVNextWorkflowHandler } from '../../_tsup-dts-rollup.cjs';
9
+ export { resumeVNextWorkflowHandler } from '../../_tsup-dts-rollup.cjs';
10
+ export { getVNextWorkflowRunsHandler } from '../../_tsup-dts-rollup.cjs';
@@ -0,0 +1,10 @@
1
+ export { getVNextWorkflowsHandler } from '../../_tsup-dts-rollup.js';
2
+ export { getVNextWorkflowByIdHandler } from '../../_tsup-dts-rollup.js';
3
+ export { getVNextWorkflowRunHandler } from '../../_tsup-dts-rollup.js';
4
+ export { createVNextWorkflowRunHandler } from '../../_tsup-dts-rollup.js';
5
+ export { startAsyncVNextWorkflowHandler } from '../../_tsup-dts-rollup.js';
6
+ export { startVNextWorkflowRunHandler } from '../../_tsup-dts-rollup.js';
7
+ export { watchVNextWorkflowHandler } from '../../_tsup-dts-rollup.js';
8
+ export { resumeAsyncVNextWorkflowHandler } from '../../_tsup-dts-rollup.js';
9
+ export { resumeVNextWorkflowHandler } from '../../_tsup-dts-rollup.js';
10
+ export { getVNextWorkflowRunsHandler } from '../../_tsup-dts-rollup.js';
@@ -0,0 +1 @@
1
+ export { createVNextWorkflowRunHandler, getVNextWorkflowByIdHandler, getVNextWorkflowRunHandler, getVNextWorkflowRunsHandler, getVNextWorkflowsHandler, resumeAsyncVNextWorkflowHandler, resumeVNextWorkflowHandler, startAsyncVNextWorkflowHandler, startVNextWorkflowRunHandler, watchVNextWorkflowHandler } from '../../chunk-JPB6RPGB.js';
@@ -1,18 +1,18 @@
1
1
  'use strict';
2
2
 
3
- var chunkA7DF4ETD_cjs = require('../../chunk-A7DF4ETD.cjs');
3
+ var chunk55HTWX4C_cjs = require('../../chunk-55HTWX4C.cjs');
4
4
 
5
5
 
6
6
 
7
7
  Object.defineProperty(exports, "generateSpeechHandler", {
8
8
  enumerable: true,
9
- get: function () { return chunkA7DF4ETD_cjs.generateSpeechHandler; }
9
+ get: function () { return chunk55HTWX4C_cjs.generateSpeechHandler; }
10
10
  });
11
11
  Object.defineProperty(exports, "getSpeakersHandler", {
12
12
  enumerable: true,
13
- get: function () { return chunkA7DF4ETD_cjs.getSpeakersHandler; }
13
+ get: function () { return chunk55HTWX4C_cjs.getSpeakersHandler; }
14
14
  });
15
15
  Object.defineProperty(exports, "transcribeSpeechHandler", {
16
16
  enumerable: true,
17
- get: function () { return chunkA7DF4ETD_cjs.transcribeSpeechHandler; }
17
+ get: function () { return chunk55HTWX4C_cjs.transcribeSpeechHandler; }
18
18
  });
@@ -1 +1 @@
1
- export { generateSpeechHandler, getSpeakersHandler, transcribeSpeechHandler } from '../../chunk-3RVHWGWO.js';
1
+ export { generateSpeechHandler, getSpeakersHandler, transcribeSpeechHandler } from '../../chunk-Q6SHQECN.js';
@@ -1,46 +1,46 @@
1
1
  'use strict';
2
2
 
3
- var chunkX37I6GZT_cjs = require('../../chunk-X37I6GZT.cjs');
3
+ var chunkEVCC233P_cjs = require('../../chunk-EVCC233P.cjs');
4
4
 
5
5
 
6
6
 
7
7
  Object.defineProperty(exports, "createRunHandler", {
8
8
  enumerable: true,
9
- get: function () { return chunkX37I6GZT_cjs.createRunHandler; }
9
+ get: function () { return chunkEVCC233P_cjs.createRunHandler; }
10
10
  });
11
11
  Object.defineProperty(exports, "getWorkflowByIdHandler", {
12
12
  enumerable: true,
13
- get: function () { return chunkX37I6GZT_cjs.getWorkflowByIdHandler; }
13
+ get: function () { return chunkEVCC233P_cjs.getWorkflowByIdHandler; }
14
14
  });
15
15
  Object.defineProperty(exports, "getWorkflowRunHandler", {
16
16
  enumerable: true,
17
- get: function () { return chunkX37I6GZT_cjs.getWorkflowRunHandler; }
17
+ get: function () { return chunkEVCC233P_cjs.getWorkflowRunHandler; }
18
18
  });
19
19
  Object.defineProperty(exports, "getWorkflowRunsHandler", {
20
20
  enumerable: true,
21
- get: function () { return chunkX37I6GZT_cjs.getWorkflowRunsHandler; }
21
+ get: function () { return chunkEVCC233P_cjs.getWorkflowRunsHandler; }
22
22
  });
23
23
  Object.defineProperty(exports, "getWorkflowsHandler", {
24
24
  enumerable: true,
25
- get: function () { return chunkX37I6GZT_cjs.getWorkflowsHandler; }
25
+ get: function () { return chunkEVCC233P_cjs.getWorkflowsHandler; }
26
26
  });
27
27
  Object.defineProperty(exports, "resumeAsyncWorkflowHandler", {
28
28
  enumerable: true,
29
- get: function () { return chunkX37I6GZT_cjs.resumeAsyncWorkflowHandler; }
29
+ get: function () { return chunkEVCC233P_cjs.resumeAsyncWorkflowHandler; }
30
30
  });
31
31
  Object.defineProperty(exports, "resumeWorkflowHandler", {
32
32
  enumerable: true,
33
- get: function () { return chunkX37I6GZT_cjs.resumeWorkflowHandler; }
33
+ get: function () { return chunkEVCC233P_cjs.resumeWorkflowHandler; }
34
34
  });
35
35
  Object.defineProperty(exports, "startAsyncWorkflowHandler", {
36
36
  enumerable: true,
37
- get: function () { return chunkX37I6GZT_cjs.startAsyncWorkflowHandler; }
37
+ get: function () { return chunkEVCC233P_cjs.startAsyncWorkflowHandler; }
38
38
  });
39
39
  Object.defineProperty(exports, "startWorkflowRunHandler", {
40
40
  enumerable: true,
41
- get: function () { return chunkX37I6GZT_cjs.startWorkflowRunHandler; }
41
+ get: function () { return chunkEVCC233P_cjs.startWorkflowRunHandler; }
42
42
  });
43
43
  Object.defineProperty(exports, "watchWorkflowHandler", {
44
44
  enumerable: true,
45
- get: function () { return chunkX37I6GZT_cjs.watchWorkflowHandler; }
45
+ get: function () { return chunkEVCC233P_cjs.watchWorkflowHandler; }
46
46
  });
@@ -1 +1 @@
1
- export { createRunHandler, getWorkflowByIdHandler, getWorkflowRunHandler, getWorkflowRunsHandler, getWorkflowsHandler, resumeAsyncWorkflowHandler, resumeWorkflowHandler, startAsyncWorkflowHandler, startWorkflowRunHandler, watchWorkflowHandler } from '../../chunk-ILW7XYNJ.js';
1
+ export { createRunHandler, getWorkflowByIdHandler, getWorkflowRunHandler, getWorkflowRunsHandler, getWorkflowsHandler, resumeAsyncWorkflowHandler, resumeWorkflowHandler, startAsyncWorkflowHandler, startWorkflowRunHandler, watchWorkflowHandler } from '../../chunk-M3YJLWTU.js';
@@ -1,20 +1,25 @@
1
1
  'use strict';
2
2
 
3
- var chunk4C3EPMMF_cjs = require('../chunk-4C3EPMMF.cjs');
3
+ var chunkD3G23FP3_cjs = require('../chunk-D3G23FP3.cjs');
4
+ var chunkAELYAUEE_cjs = require('../chunk-AELYAUEE.cjs');
4
5
  var chunkM56ECCHK_cjs = require('../chunk-M56ECCHK.cjs');
5
- var chunkA7DF4ETD_cjs = require('../chunk-A7DF4ETD.cjs');
6
- var chunkX37I6GZT_cjs = require('../chunk-X37I6GZT.cjs');
7
- var chunkGV52BII2_cjs = require('../chunk-GV52BII2.cjs');
8
- var chunkVB7KH62D_cjs = require('../chunk-VB7KH62D.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');
9
10
  var chunk2FJURXCL_cjs = require('../chunk-2FJURXCL.cjs');
10
- var chunk5JOF627H_cjs = require('../chunk-5JOF627H.cjs');
11
- var chunkCWSDZEZG_cjs = require('../chunk-CWSDZEZG.cjs');
11
+ var chunk5YGDYMRB_cjs = require('../chunk-5YGDYMRB.cjs');
12
+ var chunk7IWQE76Z_cjs = require('../chunk-7IWQE76Z.cjs');
12
13
 
13
14
 
14
15
 
15
16
  Object.defineProperty(exports, "tools", {
16
17
  enumerable: true,
17
- get: function () { return chunk4C3EPMMF_cjs.tools_exports; }
18
+ get: function () { return chunkD3G23FP3_cjs.tools_exports; }
19
+ });
20
+ Object.defineProperty(exports, "vNextWorkflows", {
21
+ enumerable: true,
22
+ get: function () { return chunkAELYAUEE_cjs.vNextWorkflows_exports; }
18
23
  });
19
24
  Object.defineProperty(exports, "vector", {
20
25
  enumerable: true,
@@ -22,19 +27,19 @@ Object.defineProperty(exports, "vector", {
22
27
  });
23
28
  Object.defineProperty(exports, "voice", {
24
29
  enumerable: true,
25
- get: function () { return chunkA7DF4ETD_cjs.voice_exports; }
30
+ get: function () { return chunk55HTWX4C_cjs.voice_exports; }
26
31
  });
27
32
  Object.defineProperty(exports, "workflows", {
28
33
  enumerable: true,
29
- get: function () { return chunkX37I6GZT_cjs.workflows_exports; }
34
+ get: function () { return chunkEVCC233P_cjs.workflows_exports; }
30
35
  });
31
36
  Object.defineProperty(exports, "agents", {
32
37
  enumerable: true,
33
- get: function () { return chunkGV52BII2_cjs.agents_exports; }
38
+ get: function () { return chunk4BIX6GMY_cjs.agents_exports; }
34
39
  });
35
40
  Object.defineProperty(exports, "logs", {
36
41
  enumerable: true,
37
- get: function () { return chunkVB7KH62D_cjs.logs_exports; }
42
+ get: function () { return chunkSKBVVI24_cjs.logs_exports; }
38
43
  });
39
44
  Object.defineProperty(exports, "memory", {
40
45
  enumerable: true,
@@ -42,9 +47,9 @@ Object.defineProperty(exports, "memory", {
42
47
  });
43
48
  Object.defineProperty(exports, "network", {
44
49
  enumerable: true,
45
- get: function () { return chunk5JOF627H_cjs.network_exports; }
50
+ get: function () { return chunk5YGDYMRB_cjs.network_exports; }
46
51
  });
47
52
  Object.defineProperty(exports, "telemetry", {
48
53
  enumerable: true,
49
- get: function () { return chunkCWSDZEZG_cjs.telemetry_exports; }
54
+ get: function () { return chunk7IWQE76Z_cjs.telemetry_exports; }
50
55
  });
@@ -5,5 +5,6 @@ export { network } from '../_tsup-dts-rollup.cjs';
5
5
  export { telemetry } from '../_tsup-dts-rollup.cjs';
6
6
  export { tools } from '../_tsup-dts-rollup.cjs';
7
7
  export { workflows } from '../_tsup-dts-rollup.cjs';
8
+ export { vNextWorkflows } from '../_tsup-dts-rollup.cjs';
8
9
  export { vector } from '../_tsup-dts-rollup.cjs';
9
10
  export { voice } from '../_tsup-dts-rollup.cjs';
@@ -5,5 +5,6 @@ export { network } from '../_tsup-dts-rollup.js';
5
5
  export { telemetry } from '../_tsup-dts-rollup.js';
6
6
  export { tools } from '../_tsup-dts-rollup.js';
7
7
  export { workflows } from '../_tsup-dts-rollup.js';
8
+ export { vNextWorkflows } from '../_tsup-dts-rollup.js';
8
9
  export { vector } from '../_tsup-dts-rollup.js';
9
10
  export { voice } from '../_tsup-dts-rollup.js';
@@ -1,9 +1,10 @@
1
- export { tools_exports as tools } from '../chunk-YNSGUC2O.js';
1
+ export { tools_exports as tools } from '../chunk-5JNVY6DU.js';
2
+ export { vNextWorkflows_exports as vNextWorkflows } from '../chunk-JPB6RPGB.js';
2
3
  export { vector_exports as vector } from '../chunk-4JINXASC.js';
3
- export { voice_exports as voice } from '../chunk-3RVHWGWO.js';
4
- export { workflows_exports as workflows } from '../chunk-ILW7XYNJ.js';
5
- export { agents_exports as agents } from '../chunk-BMA2ORRT.js';
6
- export { logs_exports as logs } from '../chunk-2JQC6JWP.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';
7
8
  export { memory_exports as memory } from '../chunk-RBQASTUP.js';
8
- export { network_exports as network } from '../chunk-2YONKUWB.js';
9
- export { telemetry_exports as telemetry } from '../chunk-DVPP5S6I.js';
9
+ export { network_exports as network } from '../chunk-QJ3AHN64.js';
10
+ export { telemetry_exports as telemetry } from '../chunk-WTHDCRMY.js';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@mastra/server",
3
- "version": "0.0.0-default-storage-virtual-file-20250410035748",
3
+ "version": "0.0.0-expose-more-playground-ui-20250501175749",
4
4
  "description": "",
5
5
  "type": "module",
6
6
  "files": [
@@ -43,14 +43,14 @@
43
43
  },
44
44
  "keywords": [],
45
45
  "author": "",
46
- "license": "ISC",
46
+ "license": "Elastic-2.0",
47
47
  "dependencies": {},
48
48
  "peerDependencies": {
49
- "@mastra/core": "0.0.0-default-storage-virtual-file-20250410035748"
49
+ "@mastra/core": "0.0.0-expose-more-playground-ui-20250501175749"
50
50
  },
51
51
  "devDependencies": {
52
52
  "@ai-sdk/openai": "^1.3.2",
53
- "@microsoft/api-extractor": "^7.52.1",
53
+ "@microsoft/api-extractor": "^7.52.5",
54
54
  "@types/node": "^20.17.27",
55
55
  "eslint": "^9.23.0",
56
56
  "superjson": "^2.2.2",
@@ -58,8 +58,8 @@
58
58
  "typescript": "^5.8.2",
59
59
  "vitest": "^2.1.9",
60
60
  "zod-to-json-schema": "^3.24.3",
61
- "@internal/lint": "0.0.1",
62
- "@mastra/core": "0.0.0-default-storage-virtual-file-20250410035748"
61
+ "@internal/lint": "0.0.2",
62
+ "@mastra/core": "0.0.0-expose-more-playground-ui-20250501175749"
63
63
  },
64
64
  "scripts": {
65
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",