@mastra/core 0.24.7-alpha.4 → 0.24.7

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 (2) hide show
  1. package/CHANGELOG.md +54 -0
  2. package/package.json +5 -5
package/CHANGELOG.md CHANGED
@@ -1,5 +1,59 @@
1
1
  # @mastra/core
2
2
 
3
+ ## 0.24.7
4
+
5
+ ### Patch Changes
6
+
7
+ - unexpected json parse issue, log error but dont fail ([#10640](https://github.com/mastra-ai/mastra/pull/10640))
8
+
9
+ - Emit error chunk and call onError when agent workflow step fails ([#10905](https://github.com/mastra-ai/mastra/pull/10905))
10
+
11
+ When a workflow step fails (e.g., tool not found), the error is now properly emitted as an error chunk to the stream and the onError callback is called. This fixes the issue where agent.generate() would throw "promise 'text' was not resolved or rejected" instead of the actual error message.
12
+
13
+ - Improved typing for `workflow.then` to allow the provided steps `inputSchema` to be a subset of the previous steps `outputSchema`. Also errors if the provided steps `inputSchema` is a superset of the previous steps outputSchema. ([#10775](https://github.com/mastra-ai/mastra/pull/10775))
14
+
15
+ - Add timeTravel APIs and add timeTravel feature to studio ([#10757](https://github.com/mastra-ai/mastra/pull/10757))
16
+
17
+ - Fix backport ([#10599](https://github.com/mastra-ai/mastra/pull/10599))
18
+
19
+ - Fix type issue with workflow `.parallel()` when passing multiple steps, one or more of which has a `resumeSchema` provided. ([#10712](https://github.com/mastra-ai/mastra/pull/10712))
20
+
21
+ - Handle state update and bailing in foreach steps ([#10826](https://github.com/mastra-ai/mastra/pull/10826))
22
+
23
+ - Fix corrupted provider-registry.json file ([#10605](https://github.com/mastra-ai/mastra/pull/10605))
24
+
25
+ - Fix discriminatedUnion schema information lost when json schema is converted to zod ([#10764](https://github.com/mastra-ai/mastra/pull/10764))
26
+
27
+ - Fix writer.custom not working during workflow resume operations ([#10921](https://github.com/mastra-ai/mastra/pull/10921))
28
+
29
+ When a workflow step is resumed, the writer parameter was not being properly passed through, causing writer.custom() calls to fail. This fix ensures the writableStream parameter is correctly passed to both run.resume() and run.start() calls in the workflow execution engine, allowing custom events to be emitted properly during resume operations.
30
+
31
+ - Add restart method to workflow run that allows restarting an active workflow run ([#10703](https://github.com/mastra-ai/mastra/pull/10703))
32
+ Add status filter to `getWorkflowRuns`
33
+ Add automatic restart to restart active workflow runs when server starts
34
+
35
+ - Add timeTravel to workflows. This makes it possible to start a workflow run from a particular step in the workflow ([#10717](https://github.com/mastra-ai/mastra/pull/10717))
36
+
37
+ Example code:
38
+
39
+ ```ts
40
+ const result = await run.timeTravel({
41
+ step: 'step2',
42
+ inputData: {
43
+ value: 'input',
44
+ },
45
+ });
46
+ ```
47
+
48
+ - Fixed OpenAI reasoning message merging so distinct reasoning items are no longer dropped when they share a message ID. Prevents downstream errors where a function call is missing its required "reasoning" item. See #9005. ([#10729](https://github.com/mastra-ai/mastra/pull/10729))
49
+
50
+ - Commit registered uncommitted workflows automatically ([#10829](https://github.com/mastra-ai/mastra/pull/10829))
51
+
52
+ - Safe stringify objects in telemetry ([#10918](https://github.com/mastra-ai/mastra/pull/10918))
53
+
54
+ - Updated dependencies [[`e77a5f9`](https://github.com/mastra-ai/mastra/commit/e77a5f9718dc418e29e3c8a389299ed6dc0a6401)]:
55
+ - @mastra/schema-compat@0.11.9
56
+
3
57
  ## 0.24.7-alpha.4
4
58
 
5
59
  ## 0.24.7-alpha.3
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@mastra/core",
3
- "version": "0.24.7-alpha.4",
3
+ "version": "0.24.7",
4
4
  "license": "Apache-2.0",
5
5
  "type": "module",
6
6
  "main": "dist/index.js",
@@ -220,7 +220,7 @@
220
220
  "sift": "^17.1.3",
221
221
  "xstate": "^5.20.1",
222
222
  "zod-to-json-schema": "^3.24.6",
223
- "@mastra/schema-compat": "0.11.9-alpha.0"
223
+ "@mastra/schema-compat": "0.11.9"
224
224
  },
225
225
  "peerDependencies": {
226
226
  "zod": "^3.25.0 || ^4.0.0"
@@ -247,9 +247,9 @@
247
247
  "vitest": "^3.2.4",
248
248
  "zod": "^3.25.76",
249
249
  "zod-v4": "npm:zod@4.1.12",
250
- "@internal/types-builder": "0.0.39",
251
- "@internal/external-types": "0.0.14",
252
- "@internal/lint": "0.0.64"
250
+ "@internal/external-types": "0.0.15",
251
+ "@internal/types-builder": "0.0.40",
252
+ "@internal/lint": "0.0.65"
253
253
  },
254
254
  "engines": {
255
255
  "node": ">=20"