@mastra/client-js 1.31.2-alpha.1 → 1.31.2-alpha.3
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,20 @@
|
|
|
1
1
|
# @mastra/client-js
|
|
2
2
|
|
|
3
|
+
## 1.31.2-alpha.3
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- Updated dependencies [[`177010f`](https://github.com/mastra-ai/mastra/commit/177010ff096d2e4b28d89803be5b1a4cad2a0d6b), [`54a51e0`](https://github.com/mastra-ai/mastra/commit/54a51e0a484fe1ebad3fb1f7ef5282a075709eb7)]:
|
|
8
|
+
- @mastra/core@1.51.0-alpha.3
|
|
9
|
+
|
|
10
|
+
## 1.31.2-alpha.2
|
|
11
|
+
|
|
12
|
+
### Patch Changes
|
|
13
|
+
|
|
14
|
+
- Updated dependencies [[`e955965`](https://github.com/mastra-ai/mastra/commit/e955965dce575a903e37cf054d28ea99aa48785e), [`bc1121a`](https://github.com/mastra-ai/mastra/commit/bc1121a7bb98f7cd73e82e3a7913a667a9fa9911), [`860ef7e`](https://github.com/mastra-ai/mastra/commit/860ef7e77d92b63469cbe5857aa1e626197e43e9), [`17e818c`](https://github.com/mastra-ai/mastra/commit/17e818c51a958ba90641b1a959dc38faf8c034e9), [`4451dfe`](https://github.com/mastra-ai/mastra/commit/4451dfe857428e7abcc0261a507a2e186dae6d47), [`1d39058`](https://github.com/mastra-ai/mastra/commit/1d39058e548efd691799985d5c8af2737f1c3bd2)]:
|
|
15
|
+
- @mastra/core@1.51.0-alpha.2
|
|
16
|
+
- @mastra/schema-compat@1.3.4-alpha.1
|
|
17
|
+
|
|
3
18
|
## 1.31.2-alpha.1
|
|
4
19
|
|
|
5
20
|
### Patch Changes
|
package/dist/docs/SKILL.md
CHANGED
|
@@ -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.31.2-alpha.
|
|
6
|
+
version: "1.31.2-alpha.3"
|
|
7
7
|
---
|
|
8
8
|
|
|
9
9
|
## When to use
|
|
@@ -261,4 +261,5 @@ Use this hook to enforce expected providers, expected endpoints, certificate-bou
|
|
|
261
261
|
- [Agent reference](https://mastra.ai/reference/agents/agent)
|
|
262
262
|
- [JavaScript client agents reference](https://mastra.ai/reference/client-js/agents)
|
|
263
263
|
- [A2A core concepts](https://a2a-protocol.org/latest/topics/key-concepts/)
|
|
264
|
-
- [A2A discovery guide](https://a2a-protocol.org/latest/topics/agent-discovery/)
|
|
264
|
+
- [A2A discovery guide](https://a2a-protocol.org/latest/topics/agent-discovery/)
|
|
265
|
+
- 📹 [Agent-to-agent with Mastra workshop](https://www.youtube.com/watch?v=LQDzyNGm-aw)
|
|
@@ -10,6 +10,8 @@ Signals are a way to interact with an agent through a thread. Instead of startin
|
|
|
10
10
|
|
|
11
11
|
Use message APIs for user-authored input. Use `sendSignal()` for lower-level system context, such as background task notifications, policy reminders, or processor-generated context.
|
|
12
12
|
|
|
13
|
+
> **📹 Watch:** Watch [Mastra signals overview](https://www.youtube.com/watch?v=7It2y89TVP4) to see how signals wake and steer long-running agents.
|
|
14
|
+
|
|
13
15
|
## When to use signals
|
|
14
16
|
|
|
15
17
|
Use signals when an agent thread needs new input or context outside the original `stream()` call. Signals are useful when users send follow-up messages while a run is active, when background systems need to add context to a thread, or when external events should wake, update, or notify the agent.
|
|
@@ -430,4 +432,5 @@ Use heartbeats together with client-side reconnect logic. Heartbeats reduce idle
|
|
|
430
432
|
- [Server agent routes](https://mastra.ai/reference/server/routes)
|
|
431
433
|
- [`client.getAgent().subscribeToThread()`](https://mastra.ai/reference/client-js/agents)
|
|
432
434
|
- [`client.getAgent().sendToolApproval()`](https://mastra.ai/reference/client-js/agents)
|
|
433
|
-
- [`RedisStreamsPubSub`](https://mastra.ai/reference/pubsub/redis-streams)
|
|
435
|
+
- [`RedisStreamsPubSub`](https://mastra.ai/reference/pubsub/redis-streams)
|
|
436
|
+
- 📹 [Mastra signals workshop](https://www.youtube.com/watch?v=KLg6uFKz9aw\&t=3020s)
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@mastra/client-js",
|
|
3
|
-
"version": "1.31.2-alpha.
|
|
3
|
+
"version": "1.31.2-alpha.3",
|
|
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/
|
|
43
|
-
"@mastra/
|
|
42
|
+
"@mastra/schema-compat": "1.3.4-alpha.1",
|
|
43
|
+
"@mastra/core": "1.51.0-alpha.3"
|
|
44
44
|
},
|
|
45
45
|
"peerDependencies": {
|
|
46
46
|
"zod": "^3.25.0 || ^4.0.0"
|
|
@@ -57,9 +57,9 @@
|
|
|
57
57
|
"vitest": "4.1.9",
|
|
58
58
|
"zod": "^4.4.3",
|
|
59
59
|
"@internal/ai-sdk-v4": "0.0.60",
|
|
60
|
-
"@internal/
|
|
60
|
+
"@internal/ai-sdk-v5": "0.0.60",
|
|
61
61
|
"@internal/lint": "0.0.113",
|
|
62
|
-
"@internal/
|
|
62
|
+
"@internal/types-builder": "0.0.88"
|
|
63
63
|
},
|
|
64
64
|
"engines": {
|
|
65
65
|
"node": ">=22.13.0"
|