@mastra/memory 1.34.0-alpha.0 → 1.34.0-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.
@@ -3,7 +3,7 @@ name: mastra-memory
3
3
  description: Documentation for @mastra/memory. Use when working with @mastra/memory APIs, configuration, or implementation.
4
4
  metadata:
5
5
  package: "@mastra/memory"
6
- version: "1.34.0-alpha.0"
6
+ version: "1.34.0-alpha.1"
7
7
  ---
8
8
 
9
9
  ## When to use
@@ -1,5 +1,5 @@
1
1
  {
2
- "version": "1.34.0-alpha.0",
2
+ "version": "1.34.0-alpha.1",
3
3
  "package": "@mastra/memory",
4
4
  "exports": {},
5
5
  "modules": {
@@ -407,6 +407,10 @@ const handleResume = async () => {
407
407
  }
408
408
  ```
409
409
 
410
+ When a suspended or approval-gated tool call resumes, the stream emits a `tool-call-resumed` chunk with the same `toolCallId` before the call's `tool-result`. Its `payload.kind` is `'suspension'` or `'approval'`, and the payload repeats the original `args`, `suspendPayload`, and `resumeSchema`. The chunk is only emitted when a real suspension or approval request is cleared.
411
+
412
+ With `@mastra/ai-sdk`, it arrives as a `data-tool-call-suspended` part (or `data-tool-call-approval` part for approvals) with `resumed: true`, which replaces the original part and keeps its payload. Use this signal to mark a question as answered. Don't infer it from the shape of the tool output: when the suspension came from a sub-agent, the output of the delegation call is the sub-agent's result, not your answer.
413
+
410
414
  ## Automatic tool resumption
411
415
 
412
416
  When using tools that call `suspend()`, you can enable automatic resumption so the agent resumes suspended tools based on the user's next message. Set `autoResumeSuspendedTools` to `true` in the agent's default options or per-request:
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@mastra/memory",
3
- "version": "1.34.0-alpha.0",
3
+ "version": "1.34.0-alpha.1",
4
4
  "description": "",
5
5
  "type": "module",
6
6
  "main": "./dist/index.js",
@@ -52,7 +52,7 @@
52
52
  "probe-image-size": "^7.2.3",
53
53
  "xxhash-wasm": "^1.1.0",
54
54
  "zod": "^4.6.4",
55
- "@mastra/schema-compat": "1.3.12"
55
+ "@mastra/schema-compat": "1.3.13-alpha.0"
56
56
  },
57
57
  "devDependencies": {
58
58
  "@ai-sdk/openai": "^1.3.24",
@@ -69,12 +69,12 @@
69
69
  "typescript": "^6.0.3",
70
70
  "typescript-eslint": "^8.57.0",
71
71
  "vitest": "4.1.11",
72
- "@internal/ai-v6": "0.0.85",
72
+ "@internal/ai-sdk-v4": "0.0.85",
73
73
  "@internal/ai-sdk-v5": "0.0.85",
74
+ "@internal/types-builder": "0.0.113",
74
75
  "@internal/lint": "0.0.138",
75
- "@internal/ai-sdk-v4": "0.0.85",
76
- "@mastra/core": "1.73.0-alpha.0",
77
- "@internal/types-builder": "0.0.113"
76
+ "@internal/ai-v6": "0.0.85",
77
+ "@mastra/core": "1.73.0-alpha.1"
78
78
  },
79
79
  "peerDependencies": {
80
80
  "@mastra/core": ">=1.4.1-0 <2.0.0-0"