@mastra/client-js 1.23.2-alpha.0 → 1.23.2

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.
package/CHANGELOG.md CHANGED
@@ -1,5 +1,29 @@
1
1
  # @mastra/client-js
2
2
 
3
+ ## 1.23.2
4
+
5
+ ### Patch Changes
6
+
7
+ - The `/agents/:agentId/stream` and `/agents/:agentId/resume-stream` endpoints now accept an `untilIdle` field in the request body. When set, the stream stays open across background-task continuations (same behavior as the `/stream-until-idle` endpoint). The dedicated `/stream-until-idle` and `/resume-stream-until-idle` endpoints remain available but are deprecated. ([#17536](https://github.com/mastra-ai/mastra/pull/17536))
8
+
9
+ **Server example:**
10
+
11
+ ```ts
12
+ // POST /api/agents/:agentId/stream
13
+ fetch(`/api/agents/${agentId}/stream`, {
14
+ method: 'POST',
15
+ body: JSON.stringify({
16
+ messages: [{ role: 'user', content: 'Research solana for me' }],
17
+ untilIdle: true, // or { maxIdleMs: 60000 }
18
+ }),
19
+ });
20
+ ```
21
+
22
+ **Client SDK:** `streamUntilIdle()` and `resumeStreamUntilIdle()` are deprecated — use `stream(messages, { untilIdle: true })` instead.
23
+
24
+ - Updated dependencies [[`f82cc72`](https://github.com/mastra-ai/mastra/commit/f82cc72edca0ce636fe18abaf2598d89a0c6bcca), [`fcf6027`](https://github.com/mastra-ai/mastra/commit/fcf602747f6771731dda268ff3493b836f9f0ee9)]:
25
+ - @mastra/core@1.41.0
26
+
3
27
  ## 1.23.2-alpha.0
4
28
 
5
29
  ### Patch Changes
@@ -3,7 +3,7 @@ name: mastra-client-js
3
3
  description: Documentation for @mastra/client-js. Use when working with @mastra/client-js APIs, configuration, or implementation.
4
4
  metadata:
5
5
  package: "@mastra/client-js"
6
- version: "1.23.2-alpha.0"
6
+ version: "1.23.2"
7
7
  ---
8
8
 
9
9
  ## When to use
@@ -1,5 +1,5 @@
1
1
  {
2
- "version": "1.23.2-alpha.0",
2
+ "version": "1.23.2",
3
3
  "package": "@mastra/client-js",
4
4
  "exports": {
5
5
  "RequestContext": {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@mastra/client-js",
3
- "version": "1.23.2-alpha.0",
3
+ "version": "1.23.2",
4
4
  "description": "The official TypeScript library for the Mastra Client API",
5
5
  "author": "",
6
6
  "type": "module",
@@ -39,8 +39,8 @@
39
39
  "canonicalize": "^1.0.8",
40
40
  "jose": "^6.2.1",
41
41
  "json-schema": "^0.4.0",
42
- "@mastra/core": "1.41.0-alpha.0",
43
- "@mastra/schema-compat": "1.2.11"
42
+ "@mastra/schema-compat": "1.2.11",
43
+ "@mastra/core": "1.41.0"
44
44
  },
45
45
  "peerDependencies": {
46
46
  "zod": "^3.25.0 || ^4.0.0"
@@ -55,10 +55,10 @@
55
55
  "typescript": "^6.0.3",
56
56
  "vitest": "4.1.5",
57
57
  "zod": "^4.4.3",
58
- "@internal/ai-sdk-v5": "0.0.49",
59
- "@internal/ai-sdk-v4": "0.0.49",
60
- "@internal/types-builder": "0.0.77",
61
- "@internal/lint": "0.0.102"
58
+ "@internal/ai-sdk-v4": "0.0.50",
59
+ "@internal/ai-sdk-v5": "0.0.50",
60
+ "@internal/types-builder": "0.0.78",
61
+ "@internal/lint": "0.0.103"
62
62
  },
63
63
  "engines": {
64
64
  "node": ">=22.13.0"