@mastra/server 0.10.4-alpha.3 → 0.10.5

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.
@@ -604,7 +604,7 @@ export declare function resumeAsyncWorkflowHandler({ mastra, workflowId, runId,
604
604
  resumeData?: unknown;
605
605
  };
606
606
  runtimeContext?: RuntimeContext_2;
607
- }): Promise<WorkflowResult<ZodType<any, ZodTypeDef, any>, Step<string, any, any, any, any>[]>>;
607
+ }): Promise<WorkflowResult<ZodType<any, ZodTypeDef, any>, Step<string, any, any, any, any, any>[]>>;
608
608
 
609
609
  export declare function resumeLegacyWorkflowHandler({ mastra, workflowId, runId, body, runtimeContext, }: WorkflowContext & {
610
610
  body: {
@@ -651,7 +651,7 @@ export declare function startAsyncLegacyWorkflowHandler({ mastra, runtimeContext
651
651
  export declare function startAsyncWorkflowHandler({ mastra, runtimeContext, workflowId, runId, inputData, }: Pick<WorkflowContext_3, 'mastra' | 'workflowId' | 'runId'> & {
652
652
  inputData?: unknown;
653
653
  runtimeContext?: RuntimeContext_2;
654
- }): Promise<WorkflowResult<ZodType<any, ZodTypeDef, any>, Step<string, any, any, any, any>[]>>;
654
+ }): Promise<WorkflowResult<ZodType<any, ZodTypeDef, any>, Step<string, any, any, any, any, any>[]>>;
655
655
 
656
656
  export declare function startLegacyWorkflowRunHandler({ mastra, runtimeContext, workflowId, runId, triggerData, }: Pick<WorkflowContext, 'mastra' | 'workflowId' | 'runId'> & {
657
657
  triggerData?: unknown;
@@ -711,7 +711,7 @@ export declare function streamWorkflowHandler({ mastra, runtimeContext, workflow
711
711
  runtimeContext?: RuntimeContext_2;
712
712
  }): {
713
713
  stream: globalThis.ReadableStream<StreamEvent>;
714
- getWorkflowState: () => Promise<WorkflowResult<ZodType<any, ZodTypeDef, any>, Step<string, any, any, any, any>[]>>;
714
+ getWorkflowState: () => Promise<WorkflowResult<ZodType<any, ZodTypeDef, any>, Step<string, any, any, any, any, any>[]>>;
715
715
  };
716
716
 
717
717
  declare type SuccessStatusCode = 200 | 201 | 202 | 203 | 204 | 205 | 206 | 207 | 208 | 226;
@@ -604,7 +604,7 @@ export declare function resumeAsyncWorkflowHandler({ mastra, workflowId, runId,
604
604
  resumeData?: unknown;
605
605
  };
606
606
  runtimeContext?: RuntimeContext_2;
607
- }): Promise<WorkflowResult<ZodType<any, ZodTypeDef, any>, Step<string, any, any, any, any>[]>>;
607
+ }): Promise<WorkflowResult<ZodType<any, ZodTypeDef, any>, Step<string, any, any, any, any, any>[]>>;
608
608
 
609
609
  export declare function resumeLegacyWorkflowHandler({ mastra, workflowId, runId, body, runtimeContext, }: WorkflowContext & {
610
610
  body: {
@@ -651,7 +651,7 @@ export declare function startAsyncLegacyWorkflowHandler({ mastra, runtimeContext
651
651
  export declare function startAsyncWorkflowHandler({ mastra, runtimeContext, workflowId, runId, inputData, }: Pick<WorkflowContext_3, 'mastra' | 'workflowId' | 'runId'> & {
652
652
  inputData?: unknown;
653
653
  runtimeContext?: RuntimeContext_2;
654
- }): Promise<WorkflowResult<ZodType<any, ZodTypeDef, any>, Step<string, any, any, any, any>[]>>;
654
+ }): Promise<WorkflowResult<ZodType<any, ZodTypeDef, any>, Step<string, any, any, any, any, any>[]>>;
655
655
 
656
656
  export declare function startLegacyWorkflowRunHandler({ mastra, runtimeContext, workflowId, runId, triggerData, }: Pick<WorkflowContext, 'mastra' | 'workflowId' | 'runId'> & {
657
657
  triggerData?: unknown;
@@ -711,7 +711,7 @@ export declare function streamWorkflowHandler({ mastra, runtimeContext, workflow
711
711
  runtimeContext?: RuntimeContext_2;
712
712
  }): {
713
713
  stream: globalThis.ReadableStream<StreamEvent>;
714
- getWorkflowState: () => Promise<WorkflowResult<ZodType<any, ZodTypeDef, any>, Step<string, any, any, any, any>[]>>;
714
+ getWorkflowState: () => Promise<WorkflowResult<ZodType<any, ZodTypeDef, any>, Step<string, any, any, any, any, any>[]>>;
715
715
  };
716
716
 
717
717
  declare type SuccessStatusCode = 200 | 201 | 202 | 203 | 204 | 205 | 206 | 207 | 208 | 226;
@@ -101,7 +101,16 @@ async function getAgentByIdHandler({
101
101
  return {
102
102
  ...acc,
103
103
  [key]: {
104
- name: workflow.name
104
+ name: workflow.name,
105
+ steps: Object.entries(workflow.steps).reduce((acc2, [key2, step]) => {
106
+ return {
107
+ ...acc2,
108
+ [key2]: {
109
+ id: step.id,
110
+ description: step.description
111
+ }
112
+ };
113
+ }, {})
105
114
  }
106
115
  };
107
116
  }, {});
@@ -103,7 +103,16 @@ async function getAgentByIdHandler({
103
103
  return {
104
104
  ...acc,
105
105
  [key]: {
106
- name: workflow.name
106
+ name: workflow.name,
107
+ steps: Object.entries(workflow.steps).reduce((acc2, [key2, step]) => {
108
+ return {
109
+ ...acc2,
110
+ [key2]: {
111
+ id: step.id,
112
+ description: step.description
113
+ }
114
+ };
115
+ }, {})
107
116
  }
108
117
  };
109
118
  }, {});
@@ -1,30 +1,30 @@
1
1
  'use strict';
2
2
 
3
- var chunkP77X4SV2_cjs = require('../../chunk-P77X4SV2.cjs');
3
+ var chunkJEWNMAYQ_cjs = require('../../chunk-JEWNMAYQ.cjs');
4
4
 
5
5
 
6
6
 
7
7
  Object.defineProperty(exports, "generateHandler", {
8
8
  enumerable: true,
9
- get: function () { return chunkP77X4SV2_cjs.generateHandler; }
9
+ get: function () { return chunkJEWNMAYQ_cjs.generateHandler; }
10
10
  });
11
11
  Object.defineProperty(exports, "getAgentByIdHandler", {
12
12
  enumerable: true,
13
- get: function () { return chunkP77X4SV2_cjs.getAgentByIdHandler; }
13
+ get: function () { return chunkJEWNMAYQ_cjs.getAgentByIdHandler; }
14
14
  });
15
15
  Object.defineProperty(exports, "getAgentsHandler", {
16
16
  enumerable: true,
17
- get: function () { return chunkP77X4SV2_cjs.getAgentsHandler; }
17
+ get: function () { return chunkJEWNMAYQ_cjs.getAgentsHandler; }
18
18
  });
19
19
  Object.defineProperty(exports, "getEvalsByAgentIdHandler", {
20
20
  enumerable: true,
21
- get: function () { return chunkP77X4SV2_cjs.getEvalsByAgentIdHandler; }
21
+ get: function () { return chunkJEWNMAYQ_cjs.getEvalsByAgentIdHandler; }
22
22
  });
23
23
  Object.defineProperty(exports, "getLiveEvalsByAgentIdHandler", {
24
24
  enumerable: true,
25
- get: function () { return chunkP77X4SV2_cjs.getLiveEvalsByAgentIdHandler; }
25
+ get: function () { return chunkJEWNMAYQ_cjs.getLiveEvalsByAgentIdHandler; }
26
26
  });
27
27
  Object.defineProperty(exports, "streamGenerateHandler", {
28
28
  enumerable: true,
29
- get: function () { return chunkP77X4SV2_cjs.streamGenerateHandler; }
29
+ get: function () { return chunkJEWNMAYQ_cjs.streamGenerateHandler; }
30
30
  });
@@ -1 +1 @@
1
- export { generateHandler, getAgentByIdHandler, getAgentsHandler, getEvalsByAgentIdHandler, getLiveEvalsByAgentIdHandler, streamGenerateHandler } from '../../chunk-6MQO3273.js';
1
+ export { generateHandler, getAgentByIdHandler, getAgentsHandler, getEvalsByAgentIdHandler, getLiveEvalsByAgentIdHandler, streamGenerateHandler } from '../../chunk-6F2H7Y45.js';
@@ -7,7 +7,7 @@ var chunkBNEY4P4P_cjs = require('../chunk-BNEY4P4P.cjs');
7
7
  var chunkCMMOIUFC_cjs = require('../chunk-CMMOIUFC.cjs');
8
8
  var chunkJKF6PRPU_cjs = require('../chunk-JKF6PRPU.cjs');
9
9
  var chunkSDPGVWQJ_cjs = require('../chunk-SDPGVWQJ.cjs');
10
- var chunkP77X4SV2_cjs = require('../chunk-P77X4SV2.cjs');
10
+ var chunkJEWNMAYQ_cjs = require('../chunk-JEWNMAYQ.cjs');
11
11
  var chunkUZ7FJ66C_cjs = require('../chunk-UZ7FJ66C.cjs');
12
12
  var chunkIMBY5XUG_cjs = require('../chunk-IMBY5XUG.cjs');
13
13
  var chunk6TJSHFCJ_cjs = require('../chunk-6TJSHFCJ.cjs');
@@ -44,7 +44,7 @@ Object.defineProperty(exports, "a2a", {
44
44
  });
45
45
  Object.defineProperty(exports, "agents", {
46
46
  enumerable: true,
47
- get: function () { return chunkP77X4SV2_cjs.agents_exports; }
47
+ get: function () { return chunkJEWNMAYQ_cjs.agents_exports; }
48
48
  });
49
49
  Object.defineProperty(exports, "legacyWorkflows", {
50
50
  enumerable: true,
@@ -5,7 +5,7 @@ export { vector_exports as vector } from '../chunk-55DOQLP6.js';
5
5
  export { voice_exports as voice } from '../chunk-CP55EVBK.js';
6
6
  export { workflows_exports as workflows } from '../chunk-7IBZ4L35.js';
7
7
  export { a2a_exports as a2a } from '../chunk-GHC4YV6R.js';
8
- export { agents_exports as agents } from '../chunk-6MQO3273.js';
8
+ export { agents_exports as agents } from '../chunk-6F2H7Y45.js';
9
9
  export { legacyWorkflows_exports as legacyWorkflows } from '../chunk-TEZOEGR4.js';
10
10
  export { logs_exports as logs } from '../chunk-QLG2PFHE.js';
11
11
  export { memory_exports as memory } from '../chunk-I7KJZNX5.js';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@mastra/server",
3
- "version": "0.10.4-alpha.3",
3
+ "version": "0.10.5",
4
4
  "description": "",
5
5
  "type": "module",
6
6
  "files": [
@@ -60,8 +60,8 @@
60
60
  "vitest": "^2.1.9",
61
61
  "zod": "^3.25.56",
62
62
  "zod-to-json-schema": "^3.24.5",
63
- "@internal/lint": "0.0.10",
64
- "@mastra/core": "0.10.4-alpha.3"
63
+ "@internal/lint": "0.0.12",
64
+ "@mastra/core": "0.10.5"
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",