mastra 0.1.57-alpha.87 → 0.1.57-alpha.88

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.
@@ -318,7 +318,7 @@ app.post('/api/agents/:agentId/tools/:toolId/execute', async (req, res) => {
318
318
  */
319
319
  app.get('/api/workflows', async (_req, res) => {
320
320
  try {
321
- const workflows = mastra.getWorkflows();
321
+ const workflows = mastra.getWorkflows({ serialized: true });
322
322
  res.json(workflows);
323
323
  }
324
324
  catch (error) {
@@ -353,7 +353,7 @@ app.get('/api/workflows/:workflowId', async (req, res) => {
353
353
  return acc;
354
354
  }, {});
355
355
  res.json({
356
- ...workflow,
356
+ name: workflow.name,
357
357
  triggerSchema: triggerSchema ? stringify(zodToJsonSchema(triggerSchema)) : undefined,
358
358
  steps: serializedSteps,
359
359
  stepGraph,
@@ -209,7 +209,7 @@ app.post('/api/agents/:agentId/tools/:toolId/execute', async (req, res) => {
209
209
  });
210
210
  app.get('/api/workflows', async (_req, res) => {
211
211
  try {
212
- const workflows = mastra.getWorkflows();
212
+ const workflows = mastra.getWorkflows({ serialized: true });
213
213
  res.json(workflows);
214
214
  }
215
215
  catch (error) {
@@ -1 +1 @@
1
- {"version":3,"file":"worker.d.ts","sourceRoot":"","sources":["../../src/templates/worker.ts"],"names":[],"mappings":"AA0CA,UAAU,gBAAgB;IACxB,SAAS,CAAC,OAAO,EAAE,OAAO,CAAC,GAAG,CAAC,GAAG,IAAI,CAAC;IACvC,sBAAsB,IAAI,IAAI,CAAC;CAChC;;mBAqhCsB,OAAO,OAAO,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,OAAO,gBAAgB;;AADlF,wBAQE"}
1
+ {"version":3,"file":"worker.d.ts","sourceRoot":"","sources":["../../src/templates/worker.ts"],"names":[],"mappings":"AA0CA,UAAU,gBAAgB;IACxB,SAAS,CAAC,OAAO,EAAE,OAAO,CAAC,GAAG,CAAC,GAAG,IAAI,CAAC;IACvC,sBAAsB,IAAI,IAAI,CAAC;CAChC;;mBAshCsB,OAAO,OAAO,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,OAAO,gBAAgB;;AADlF,wBAQE"}
@@ -307,7 +307,7 @@ router.post('/api/agents/:agentId/tools/:toolId/execute', async ({ params, json
307
307
  });
308
308
  router.get('/api/workflows', async () => {
309
309
  try {
310
- const workflows = mastra.getWorkflows();
310
+ const workflows = mastra.getWorkflows({ serialized: true });
311
311
  return new Response(JSON.stringify(workflows), {
312
312
  headers: {
313
313
  'Content-Type': 'application/json',
@@ -342,7 +342,7 @@ router.get('/api/workflows/:workflowId', async ({ params }) => {
342
342
  return acc;
343
343
  }, {});
344
344
  return new Response(JSON.stringify({
345
- ...workflow,
345
+ name: workflow.name,
346
346
  triggerSchema: triggerSchema ? stringify(zodToJsonSchema(triggerSchema)) : undefined,
347
347
  steps: serializedSteps,
348
348
  stepGraph,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "mastra",
3
- "version": "0.1.57-alpha.87",
3
+ "version": "0.1.57-alpha.88",
4
4
  "license": "MIT",
5
5
  "description": "cli for mastra",
6
6
  "type": "module",
@@ -96,7 +96,7 @@
96
96
  "yocto-spinner": "^0.1.1",
97
97
  "zod": "^3.24.1",
98
98
  "zod-to-json-schema": "^3.24.1",
99
- "@mastra/core": "0.1.27-alpha.60"
99
+ "@mastra/core": "0.1.27-alpha.61"
100
100
  },
101
101
  "devDependencies": {
102
102
  "@types/express": "^5.0.0",