@mastra/server 0.0.1-alpha.0 → 0.0.1-alpha.1

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.
@@ -21,6 +21,7 @@ import type { VercelTool } from '@mastra/core/tools';
21
21
  import type { Workflow } from '@mastra/core/workflows';
22
22
  import { WorkflowContext as WorkflowContext_2 } from '@mastra/core';
23
23
  import { WorkflowRunResult } from '@mastra/core';
24
+ import { WorkflowRuns } from '@mastra/core';
24
25
 
25
26
  export declare namespace agents {
26
27
  export {
@@ -97,7 +98,9 @@ export declare function executeToolHandler(tools: ToolsContext['tools']): ({ mas
97
98
 
98
99
  export declare function generateHandler({ mastra, agentId, body, }: Context & {
99
100
  agentId: string;
100
- body: GetBody<'generate'>;
101
+ body: GetBody<'generate'> & {
102
+ resourceid?: string;
103
+ };
101
104
  }): Promise<GenerateTextResult<any, any>>;
102
105
 
103
106
  export declare function generateHandler_alias_1({ mastra, networkId, body, }: NetworkContext & {
@@ -232,6 +235,8 @@ export declare function getWorkflowByIdHandler({ mastra, workflowId }: WorkflowC
232
235
 
233
236
  export declare function getWorkflowRunHandler({ mastra, workflowId, runId, }: Pick<WorkflowContext, 'mastra' | 'workflowId' | 'runId'>): Promise<ReturnType<Workflow['getRun']>>;
234
237
 
238
+ export declare function getWorkflowRunsHandler({ mastra, workflowId }: WorkflowContext): Promise<WorkflowRuns>;
239
+
235
240
  export declare function getWorkflowsHandler({ mastra }: WorkflowContext): Promise<any>;
236
241
 
237
242
  export declare function handleError(error: unknown, defaultMessage: string): never;
@@ -385,41 +390,7 @@ declare type ServerErrorStatusCode = 500 | 501 | 502 | 503 | 504 | 505 | 506 | 5
385
390
 
386
391
  export declare function startAsyncWorkflowHandler({ mastra, workflowId, runId, triggerData, }: Pick<WorkflowContext, 'mastra' | 'workflowId' | 'runId'> & {
387
392
  triggerData?: unknown;
388
- }): Promise<{
389
- runId: string;
390
- timestamp: number;
391
- result?: any;
392
- results: {
393
- [x: string]: {
394
- status: "failed";
395
- error: string;
396
- } | {
397
- status: "waiting";
398
- } | {
399
- status: "skipped";
400
- } | {
401
- status: "success";
402
- output: unknown;
403
- } | {
404
- status: "suspended";
405
- suspendPayload?: any;
406
- output?: unknown;
407
- } | {
408
- status: "success";
409
- output: any;
410
- } | {
411
- status: "suspended";
412
- suspendPayload?: any;
413
- output?: any;
414
- };
415
- };
416
- triggerData?: any;
417
- activePaths: Map<string, {
418
- status: string;
419
- suspendPayload?: any;
420
- stepPath: string[];
421
- }>;
422
- }>;
393
+ }): Promise<WorkflowRunResult<any, Step<string, any, any, StepExecutionContext<any, WorkflowContext_2<any, Step<string, any, any, any>[], Record<string, any>>>>[], any>>;
423
394
 
424
395
  export declare function startWorkflowRunHandler({ mastra, workflowId, runId, triggerData, }: Pick<WorkflowContext, 'mastra' | 'workflowId' | 'runId'> & {
425
396
  triggerData?: unknown;
@@ -448,7 +419,9 @@ export declare function storeTelemetryHandler({ mastra, body }: Context & {
448
419
 
449
420
  export declare function streamGenerateHandler({ mastra, agentId, body, }: Context & {
450
421
  agentId: string;
451
- body: GetBody<'stream'>;
422
+ body: GetBody<'stream'> & {
423
+ resourceid?: string;
424
+ };
452
425
  }): Promise<Response | undefined>;
453
426
 
454
427
  export declare function streamGenerateHandler_alias_1({ mastra, networkId, body, }: NetworkContext & {
@@ -585,7 +558,8 @@ export declare namespace workflows {
585
558
  startWorkflowRunHandler,
586
559
  watchWorkflowHandler,
587
560
  resumeAsyncWorkflowHandler,
588
- resumeWorkflowHandler
561
+ resumeWorkflowHandler,
562
+ getWorkflowRunsHandler
589
563
  }
590
564
  }
591
565
 
@@ -21,6 +21,7 @@ import type { VercelTool } from '@mastra/core/tools';
21
21
  import type { Workflow } from '@mastra/core/workflows';
22
22
  import { WorkflowContext as WorkflowContext_2 } from '@mastra/core';
23
23
  import { WorkflowRunResult } from '@mastra/core';
24
+ import { WorkflowRuns } from '@mastra/core';
24
25
 
25
26
  export declare namespace agents {
26
27
  export {
@@ -97,7 +98,9 @@ export declare function executeToolHandler(tools: ToolsContext['tools']): ({ mas
97
98
 
98
99
  export declare function generateHandler({ mastra, agentId, body, }: Context & {
99
100
  agentId: string;
100
- body: GetBody<'generate'>;
101
+ body: GetBody<'generate'> & {
102
+ resourceid?: string;
103
+ };
101
104
  }): Promise<GenerateTextResult<any, any>>;
102
105
 
103
106
  export declare function generateHandler_alias_1({ mastra, networkId, body, }: NetworkContext & {
@@ -232,6 +235,8 @@ export declare function getWorkflowByIdHandler({ mastra, workflowId }: WorkflowC
232
235
 
233
236
  export declare function getWorkflowRunHandler({ mastra, workflowId, runId, }: Pick<WorkflowContext, 'mastra' | 'workflowId' | 'runId'>): Promise<ReturnType<Workflow['getRun']>>;
234
237
 
238
+ export declare function getWorkflowRunsHandler({ mastra, workflowId }: WorkflowContext): Promise<WorkflowRuns>;
239
+
235
240
  export declare function getWorkflowsHandler({ mastra }: WorkflowContext): Promise<any>;
236
241
 
237
242
  export declare function handleError(error: unknown, defaultMessage: string): never;
@@ -385,41 +390,7 @@ declare type ServerErrorStatusCode = 500 | 501 | 502 | 503 | 504 | 505 | 506 | 5
385
390
 
386
391
  export declare function startAsyncWorkflowHandler({ mastra, workflowId, runId, triggerData, }: Pick<WorkflowContext, 'mastra' | 'workflowId' | 'runId'> & {
387
392
  triggerData?: unknown;
388
- }): Promise<{
389
- runId: string;
390
- timestamp: number;
391
- result?: any;
392
- results: {
393
- [x: string]: {
394
- status: "failed";
395
- error: string;
396
- } | {
397
- status: "waiting";
398
- } | {
399
- status: "skipped";
400
- } | {
401
- status: "success";
402
- output: unknown;
403
- } | {
404
- status: "suspended";
405
- suspendPayload?: any;
406
- output?: unknown;
407
- } | {
408
- status: "success";
409
- output: any;
410
- } | {
411
- status: "suspended";
412
- suspendPayload?: any;
413
- output?: any;
414
- };
415
- };
416
- triggerData?: any;
417
- activePaths: Map<string, {
418
- status: string;
419
- suspendPayload?: any;
420
- stepPath: string[];
421
- }>;
422
- }>;
393
+ }): Promise<WorkflowRunResult<any, Step<string, any, any, StepExecutionContext<any, WorkflowContext_2<any, Step<string, any, any, any>[], Record<string, any>>>>[], any>>;
423
394
 
424
395
  export declare function startWorkflowRunHandler({ mastra, workflowId, runId, triggerData, }: Pick<WorkflowContext, 'mastra' | 'workflowId' | 'runId'> & {
425
396
  triggerData?: unknown;
@@ -448,7 +419,9 @@ export declare function storeTelemetryHandler({ mastra, body }: Context & {
448
419
 
449
420
  export declare function streamGenerateHandler({ mastra, agentId, body, }: Context & {
450
421
  agentId: string;
451
- body: GetBody<'stream'>;
422
+ body: GetBody<'stream'> & {
423
+ resourceid?: string;
424
+ };
452
425
  }): Promise<Response | undefined>;
453
426
 
454
427
  export declare function streamGenerateHandler_alias_1({ mastra, networkId, body, }: NetworkContext & {
@@ -585,7 +558,8 @@ export declare namespace workflows {
585
558
  startWorkflowRunHandler,
586
559
  watchWorkflowHandler,
587
560
  resumeAsyncWorkflowHandler,
588
- resumeWorkflowHandler
561
+ resumeWorkflowHandler,
562
+ getWorkflowRunsHandler
589
563
  }
590
564
  }
591
565
 
@@ -107,9 +107,14 @@ async function generateHandler({
107
107
  if (!agent) {
108
108
  throw new chunkFV45V6WC_cjs.HTTPException(404, { message: "Agent not found" });
109
109
  }
110
- const { messages, ...rest } = body;
110
+ const { messages, resourceId, resourceid, ...rest } = body;
111
+ const finalResourceId = resourceId ?? resourceid;
111
112
  chunkQN4KF3BH_cjs.validateBody({ messages });
112
- const result = await agent.generate(messages, rest);
113
+ const result = await agent.generate(messages, {
114
+ ...rest,
115
+ // @ts-expect-error TODO fix types
116
+ resourceId: finalResourceId
117
+ });
113
118
  return result;
114
119
  } catch (error) {
115
120
  return chunkZLBRQFDD_cjs.handleError(error, "Error generating from agent");
@@ -125,10 +130,15 @@ async function streamGenerateHandler({
125
130
  if (!agent) {
126
131
  throw new chunkFV45V6WC_cjs.HTTPException(404, { message: "Agent not found" });
127
132
  }
128
- const { messages, output, ...rest } = body;
133
+ const { messages, resourceId, resourceid, ...rest } = body;
134
+ const finalResourceId = resourceId ?? resourceid;
129
135
  chunkQN4KF3BH_cjs.validateBody({ messages });
130
- const streamResult = await agent.stream(messages, { output, ...rest });
131
- const streamResponse = output ? streamResult.toTextStreamResponse() : streamResult.toDataStreamResponse({
136
+ const streamResult = await agent.stream(messages, {
137
+ ...rest,
138
+ // @ts-expect-error TODO fix types
139
+ resourceId: finalResourceId
140
+ });
141
+ const streamResponse = rest.output ? streamResult.toTextStreamResponse() : streamResult.toDataStreamResponse({
132
142
  sendUsage: true,
133
143
  sendReasoning: true,
134
144
  getErrorMessage: (error) => {
@@ -105,9 +105,14 @@ async function generateHandler({
105
105
  if (!agent) {
106
106
  throw new HTTPException(404, { message: "Agent not found" });
107
107
  }
108
- const { messages, ...rest } = body;
108
+ const { messages, resourceId, resourceid, ...rest } = body;
109
+ const finalResourceId = resourceId ?? resourceid;
109
110
  validateBody({ messages });
110
- const result = await agent.generate(messages, rest);
111
+ const result = await agent.generate(messages, {
112
+ ...rest,
113
+ // @ts-expect-error TODO fix types
114
+ resourceId: finalResourceId
115
+ });
111
116
  return result;
112
117
  } catch (error) {
113
118
  return handleError(error, "Error generating from agent");
@@ -123,10 +128,15 @@ async function streamGenerateHandler({
123
128
  if (!agent) {
124
129
  throw new HTTPException(404, { message: "Agent not found" });
125
130
  }
126
- const { messages, output, ...rest } = body;
131
+ const { messages, resourceId, resourceid, ...rest } = body;
132
+ const finalResourceId = resourceId ?? resourceid;
127
133
  validateBody({ messages });
128
- const streamResult = await agent.stream(messages, { output, ...rest });
129
- const streamResponse = output ? streamResult.toTextStreamResponse() : streamResult.toDataStreamResponse({
134
+ const streamResult = await agent.stream(messages, {
135
+ ...rest,
136
+ // @ts-expect-error TODO fix types
137
+ resourceId: finalResourceId
138
+ });
139
+ const streamResponse = rest.output ? streamResult.toTextStreamResponse() : streamResult.toDataStreamResponse({
130
140
  sendUsage: true,
131
141
  sendReasoning: true,
132
142
  getErrorMessage: (error) => {
@@ -9,6 +9,7 @@ __export(workflows_exports, {
9
9
  createRunHandler: () => createRunHandler,
10
10
  getWorkflowByIdHandler: () => getWorkflowByIdHandler,
11
11
  getWorkflowRunHandler: () => getWorkflowRunHandler,
12
+ getWorkflowRunsHandler: () => getWorkflowRunsHandler,
12
13
  getWorkflowsHandler: () => getWorkflowsHandler,
13
14
  resumeAsyncWorkflowHandler: () => resumeAsyncWorkflowHandler,
14
15
  resumeWorkflowHandler: () => resumeWorkflowHandler,
@@ -20,6 +21,7 @@ async function getWorkflowsHandler({ mastra }) {
20
21
  try {
21
22
  const workflows = mastra.getWorkflows({ serialized: false });
22
23
  const _workflows = Object.entries(workflows).reduce((acc, [key, workflow]) => {
24
+ if (workflow.isNested) return acc;
23
25
  acc[key] = {
24
26
  stepGraph: workflow.stepGraph,
25
27
  stepSubscriberGraph: workflow.stepSubscriberGraph,
@@ -85,12 +87,16 @@ async function startAsyncWorkflowHandler({
85
87
  throw new HTTPException(400, { message: "Workflow ID is required" });
86
88
  }
87
89
  const workflow = mastra.getWorkflow(workflowId);
88
- if (!runId) {
89
- throw new HTTPException(400, { message: "runId required to start run" });
90
- }
91
90
  if (!workflow) {
92
91
  throw new HTTPException(404, { message: "Workflow not found" });
93
92
  }
93
+ if (!runId) {
94
+ const { start } = workflow.createRun();
95
+ const result2 = await start({
96
+ triggerData
97
+ });
98
+ return result2;
99
+ }
94
100
  const run = workflow.getRun(runId);
95
101
  if (!run) {
96
102
  throw new HTTPException(404, { message: "Workflow run not found" });
@@ -271,5 +277,20 @@ async function resumeWorkflowHandler({
271
277
  return handleError(error, "Error resuming workflow");
272
278
  }
273
279
  }
280
+ async function getWorkflowRunsHandler({ mastra, workflowId }) {
281
+ try {
282
+ if (!workflowId) {
283
+ throw new HTTPException(400, { message: "Workflow ID is required" });
284
+ }
285
+ const workflow = mastra.getWorkflow(workflowId);
286
+ const workflowRuns = await workflow.getWorkflowRuns() || {
287
+ runs: [],
288
+ total: 0
289
+ };
290
+ return workflowRuns;
291
+ } catch (error) {
292
+ return handleError(error, "Error getting workflow runs");
293
+ }
294
+ }
274
295
 
275
- export { createRunHandler, getWorkflowByIdHandler, getWorkflowRunHandler, getWorkflowsHandler, resumeAsyncWorkflowHandler, resumeWorkflowHandler, startAsyncWorkflowHandler, startWorkflowRunHandler, watchWorkflowHandler, workflows_exports };
296
+ export { createRunHandler, getWorkflowByIdHandler, getWorkflowRunHandler, getWorkflowRunsHandler, getWorkflowsHandler, resumeAsyncWorkflowHandler, resumeWorkflowHandler, startAsyncWorkflowHandler, startWorkflowRunHandler, watchWorkflowHandler, workflows_exports };
@@ -11,6 +11,7 @@ chunkFV45V6WC_cjs.__export(workflows_exports, {
11
11
  createRunHandler: () => createRunHandler,
12
12
  getWorkflowByIdHandler: () => getWorkflowByIdHandler,
13
13
  getWorkflowRunHandler: () => getWorkflowRunHandler,
14
+ getWorkflowRunsHandler: () => getWorkflowRunsHandler,
14
15
  getWorkflowsHandler: () => getWorkflowsHandler,
15
16
  resumeAsyncWorkflowHandler: () => resumeAsyncWorkflowHandler,
16
17
  resumeWorkflowHandler: () => resumeWorkflowHandler,
@@ -22,6 +23,7 @@ async function getWorkflowsHandler({ mastra }) {
22
23
  try {
23
24
  const workflows = mastra.getWorkflows({ serialized: false });
24
25
  const _workflows = Object.entries(workflows).reduce((acc, [key, workflow]) => {
26
+ if (workflow.isNested) return acc;
25
27
  acc[key] = {
26
28
  stepGraph: workflow.stepGraph,
27
29
  stepSubscriberGraph: workflow.stepSubscriberGraph,
@@ -87,12 +89,16 @@ async function startAsyncWorkflowHandler({
87
89
  throw new chunkFV45V6WC_cjs.HTTPException(400, { message: "Workflow ID is required" });
88
90
  }
89
91
  const workflow = mastra.getWorkflow(workflowId);
90
- if (!runId) {
91
- throw new chunkFV45V6WC_cjs.HTTPException(400, { message: "runId required to start run" });
92
- }
93
92
  if (!workflow) {
94
93
  throw new chunkFV45V6WC_cjs.HTTPException(404, { message: "Workflow not found" });
95
94
  }
95
+ if (!runId) {
96
+ const { start } = workflow.createRun();
97
+ const result2 = await start({
98
+ triggerData
99
+ });
100
+ return result2;
101
+ }
96
102
  const run = workflow.getRun(runId);
97
103
  if (!run) {
98
104
  throw new chunkFV45V6WC_cjs.HTTPException(404, { message: "Workflow run not found" });
@@ -273,10 +279,26 @@ async function resumeWorkflowHandler({
273
279
  return chunkZLBRQFDD_cjs.handleError(error, "Error resuming workflow");
274
280
  }
275
281
  }
282
+ async function getWorkflowRunsHandler({ mastra, workflowId }) {
283
+ try {
284
+ if (!workflowId) {
285
+ throw new chunkFV45V6WC_cjs.HTTPException(400, { message: "Workflow ID is required" });
286
+ }
287
+ const workflow = mastra.getWorkflow(workflowId);
288
+ const workflowRuns = await workflow.getWorkflowRuns() || {
289
+ runs: [],
290
+ total: 0
291
+ };
292
+ return workflowRuns;
293
+ } catch (error) {
294
+ return chunkZLBRQFDD_cjs.handleError(error, "Error getting workflow runs");
295
+ }
296
+ }
276
297
 
277
298
  exports.createRunHandler = createRunHandler;
278
299
  exports.getWorkflowByIdHandler = getWorkflowByIdHandler;
279
300
  exports.getWorkflowRunHandler = getWorkflowRunHandler;
301
+ exports.getWorkflowRunsHandler = getWorkflowRunsHandler;
280
302
  exports.getWorkflowsHandler = getWorkflowsHandler;
281
303
  exports.resumeAsyncWorkflowHandler = resumeAsyncWorkflowHandler;
282
304
  exports.resumeWorkflowHandler = resumeWorkflowHandler;
@@ -1,30 +1,30 @@
1
1
  'use strict';
2
2
 
3
- var chunk5WF7YIIE_cjs = require('../../chunk-5WF7YIIE.cjs');
3
+ var chunk4AZGCOFY_cjs = require('../../chunk-4AZGCOFY.cjs');
4
4
 
5
5
 
6
6
 
7
7
  Object.defineProperty(exports, "generateHandler", {
8
8
  enumerable: true,
9
- get: function () { return chunk5WF7YIIE_cjs.generateHandler; }
9
+ get: function () { return chunk4AZGCOFY_cjs.generateHandler; }
10
10
  });
11
11
  Object.defineProperty(exports, "getAgentByIdHandler", {
12
12
  enumerable: true,
13
- get: function () { return chunk5WF7YIIE_cjs.getAgentByIdHandler; }
13
+ get: function () { return chunk4AZGCOFY_cjs.getAgentByIdHandler; }
14
14
  });
15
15
  Object.defineProperty(exports, "getAgentsHandler", {
16
16
  enumerable: true,
17
- get: function () { return chunk5WF7YIIE_cjs.getAgentsHandler; }
17
+ get: function () { return chunk4AZGCOFY_cjs.getAgentsHandler; }
18
18
  });
19
19
  Object.defineProperty(exports, "getEvalsByAgentIdHandler", {
20
20
  enumerable: true,
21
- get: function () { return chunk5WF7YIIE_cjs.getEvalsByAgentIdHandler; }
21
+ get: function () { return chunk4AZGCOFY_cjs.getEvalsByAgentIdHandler; }
22
22
  });
23
23
  Object.defineProperty(exports, "getLiveEvalsByAgentIdHandler", {
24
24
  enumerable: true,
25
- get: function () { return chunk5WF7YIIE_cjs.getLiveEvalsByAgentIdHandler; }
25
+ get: function () { return chunk4AZGCOFY_cjs.getLiveEvalsByAgentIdHandler; }
26
26
  });
27
27
  Object.defineProperty(exports, "streamGenerateHandler", {
28
28
  enumerable: true,
29
- get: function () { return chunk5WF7YIIE_cjs.streamGenerateHandler; }
29
+ get: function () { return chunk4AZGCOFY_cjs.streamGenerateHandler; }
30
30
  });
@@ -1 +1 @@
1
- export { generateHandler, getAgentByIdHandler, getAgentsHandler, getEvalsByAgentIdHandler, getLiveEvalsByAgentIdHandler, streamGenerateHandler } from '../../chunk-5MCUD7TP.js';
1
+ export { generateHandler, getAgentByIdHandler, getAgentsHandler, getEvalsByAgentIdHandler, getLiveEvalsByAgentIdHandler, streamGenerateHandler } from '../../chunk-C7YHIQWA.js';
@@ -1,42 +1,46 @@
1
1
  'use strict';
2
2
 
3
- var chunkSKKC3EDG_cjs = require('../../chunk-SKKC3EDG.cjs');
3
+ var chunkX37I6GZT_cjs = require('../../chunk-X37I6GZT.cjs');
4
4
 
5
5
 
6
6
 
7
7
  Object.defineProperty(exports, "createRunHandler", {
8
8
  enumerable: true,
9
- get: function () { return chunkSKKC3EDG_cjs.createRunHandler; }
9
+ get: function () { return chunkX37I6GZT_cjs.createRunHandler; }
10
10
  });
11
11
  Object.defineProperty(exports, "getWorkflowByIdHandler", {
12
12
  enumerable: true,
13
- get: function () { return chunkSKKC3EDG_cjs.getWorkflowByIdHandler; }
13
+ get: function () { return chunkX37I6GZT_cjs.getWorkflowByIdHandler; }
14
14
  });
15
15
  Object.defineProperty(exports, "getWorkflowRunHandler", {
16
16
  enumerable: true,
17
- get: function () { return chunkSKKC3EDG_cjs.getWorkflowRunHandler; }
17
+ get: function () { return chunkX37I6GZT_cjs.getWorkflowRunHandler; }
18
+ });
19
+ Object.defineProperty(exports, "getWorkflowRunsHandler", {
20
+ enumerable: true,
21
+ get: function () { return chunkX37I6GZT_cjs.getWorkflowRunsHandler; }
18
22
  });
19
23
  Object.defineProperty(exports, "getWorkflowsHandler", {
20
24
  enumerable: true,
21
- get: function () { return chunkSKKC3EDG_cjs.getWorkflowsHandler; }
25
+ get: function () { return chunkX37I6GZT_cjs.getWorkflowsHandler; }
22
26
  });
23
27
  Object.defineProperty(exports, "resumeAsyncWorkflowHandler", {
24
28
  enumerable: true,
25
- get: function () { return chunkSKKC3EDG_cjs.resumeAsyncWorkflowHandler; }
29
+ get: function () { return chunkX37I6GZT_cjs.resumeAsyncWorkflowHandler; }
26
30
  });
27
31
  Object.defineProperty(exports, "resumeWorkflowHandler", {
28
32
  enumerable: true,
29
- get: function () { return chunkSKKC3EDG_cjs.resumeWorkflowHandler; }
33
+ get: function () { return chunkX37I6GZT_cjs.resumeWorkflowHandler; }
30
34
  });
31
35
  Object.defineProperty(exports, "startAsyncWorkflowHandler", {
32
36
  enumerable: true,
33
- get: function () { return chunkSKKC3EDG_cjs.startAsyncWorkflowHandler; }
37
+ get: function () { return chunkX37I6GZT_cjs.startAsyncWorkflowHandler; }
34
38
  });
35
39
  Object.defineProperty(exports, "startWorkflowRunHandler", {
36
40
  enumerable: true,
37
- get: function () { return chunkSKKC3EDG_cjs.startWorkflowRunHandler; }
41
+ get: function () { return chunkX37I6GZT_cjs.startWorkflowRunHandler; }
38
42
  });
39
43
  Object.defineProperty(exports, "watchWorkflowHandler", {
40
44
  enumerable: true,
41
- get: function () { return chunkSKKC3EDG_cjs.watchWorkflowHandler; }
45
+ get: function () { return chunkX37I6GZT_cjs.watchWorkflowHandler; }
42
46
  });
@@ -7,3 +7,4 @@ export { startWorkflowRunHandler } from '../../_tsup-dts-rollup.cjs';
7
7
  export { watchWorkflowHandler } from '../../_tsup-dts-rollup.cjs';
8
8
  export { resumeAsyncWorkflowHandler } from '../../_tsup-dts-rollup.cjs';
9
9
  export { resumeWorkflowHandler } from '../../_tsup-dts-rollup.cjs';
10
+ export { getWorkflowRunsHandler } from '../../_tsup-dts-rollup.cjs';
@@ -7,3 +7,4 @@ export { startWorkflowRunHandler } from '../../_tsup-dts-rollup.js';
7
7
  export { watchWorkflowHandler } from '../../_tsup-dts-rollup.js';
8
8
  export { resumeAsyncWorkflowHandler } from '../../_tsup-dts-rollup.js';
9
9
  export { resumeWorkflowHandler } from '../../_tsup-dts-rollup.js';
10
+ export { getWorkflowRunsHandler } from '../../_tsup-dts-rollup.js';
@@ -1 +1 @@
1
- export { createRunHandler, getWorkflowByIdHandler, getWorkflowRunHandler, getWorkflowsHandler, resumeAsyncWorkflowHandler, resumeWorkflowHandler, startAsyncWorkflowHandler, startWorkflowRunHandler, watchWorkflowHandler } from '../../chunk-S6GTZWMY.js';
1
+ export { createRunHandler, getWorkflowByIdHandler, getWorkflowRunHandler, getWorkflowRunsHandler, getWorkflowsHandler, resumeAsyncWorkflowHandler, resumeWorkflowHandler, startAsyncWorkflowHandler, startWorkflowRunHandler, watchWorkflowHandler } from '../../chunk-ILW7XYNJ.js';
@@ -3,8 +3,8 @@
3
3
  var chunk4C3EPMMF_cjs = require('../chunk-4C3EPMMF.cjs');
4
4
  var chunkM56ECCHK_cjs = require('../chunk-M56ECCHK.cjs');
5
5
  var chunkA7DF4ETD_cjs = require('../chunk-A7DF4ETD.cjs');
6
- var chunkSKKC3EDG_cjs = require('../chunk-SKKC3EDG.cjs');
7
- var chunk5WF7YIIE_cjs = require('../chunk-5WF7YIIE.cjs');
6
+ var chunkX37I6GZT_cjs = require('../chunk-X37I6GZT.cjs');
7
+ var chunk4AZGCOFY_cjs = require('../chunk-4AZGCOFY.cjs');
8
8
  var chunkVB7KH62D_cjs = require('../chunk-VB7KH62D.cjs');
9
9
  var chunk2FJURXCL_cjs = require('../chunk-2FJURXCL.cjs');
10
10
  var chunk5JOF627H_cjs = require('../chunk-5JOF627H.cjs');
@@ -26,11 +26,11 @@ Object.defineProperty(exports, "voice", {
26
26
  });
27
27
  Object.defineProperty(exports, "workflows", {
28
28
  enumerable: true,
29
- get: function () { return chunkSKKC3EDG_cjs.workflows_exports; }
29
+ get: function () { return chunkX37I6GZT_cjs.workflows_exports; }
30
30
  });
31
31
  Object.defineProperty(exports, "agents", {
32
32
  enumerable: true,
33
- get: function () { return chunk5WF7YIIE_cjs.agents_exports; }
33
+ get: function () { return chunk4AZGCOFY_cjs.agents_exports; }
34
34
  });
35
35
  Object.defineProperty(exports, "logs", {
36
36
  enumerable: true,
@@ -1,8 +1,8 @@
1
1
  export { tools_exports as tools } from '../chunk-YNSGUC2O.js';
2
2
  export { vector_exports as vector } from '../chunk-4JINXASC.js';
3
3
  export { voice_exports as voice } from '../chunk-3RVHWGWO.js';
4
- export { workflows_exports as workflows } from '../chunk-S6GTZWMY.js';
5
- export { agents_exports as agents } from '../chunk-5MCUD7TP.js';
4
+ export { workflows_exports as workflows } from '../chunk-ILW7XYNJ.js';
5
+ export { agents_exports as agents } from '../chunk-C7YHIQWA.js';
6
6
  export { logs_exports as logs } from '../chunk-2JQC6JWP.js';
7
7
  export { memory_exports as memory } from '../chunk-RBQASTUP.js';
8
8
  export { network_exports as network } from '../chunk-2YONKUWB.js';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@mastra/server",
3
- "version": "0.0.1-alpha.0",
3
+ "version": "0.0.1-alpha.1",
4
4
  "description": "",
5
5
  "type": "module",
6
6
  "files": [
@@ -46,7 +46,7 @@
46
46
  "license": "ISC",
47
47
  "dependencies": {},
48
48
  "peerDependencies": {
49
- "@mastra/core": "^0.8.0-alpha.2"
49
+ "@mastra/core": "^0.8.0-alpha.3"
50
50
  },
51
51
  "devDependencies": {
52
52
  "@ai-sdk/openai": "^1.3.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.8.0-alpha.2"
61
+ "@mastra/core": "0.8.0-alpha.3",
62
+ "@internal/lint": "0.0.1"
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",