@mastra/client-js 1.22.0-alpha.6 → 1.22.0-alpha.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.
- package/CHANGELOG.md +7 -0
- package/dist/docs/SKILL.md +1 -1
- package/dist/docs/assets/SOURCE_MAP.json +1 -1
- package/dist/docs/references/docs-agents-a2a.md +1 -1
- package/dist/docs/references/docs-agents-signals.md +1 -1
- package/dist/docs/references/docs-editor-overview.md +1 -1
- package/dist/docs/references/docs-server-mastra-client.md +1 -1
- package/package.json +5 -5
package/CHANGELOG.md
CHANGED
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.22.0-alpha.
|
|
6
|
+
version: "1.22.0-alpha.7"
|
|
7
7
|
---
|
|
8
8
|
|
|
9
9
|
## When to use
|
|
@@ -81,7 +81,7 @@ export const supportAgent = new Agent({
|
|
|
81
81
|
id: 'support-agent',
|
|
82
82
|
name: 'Support Agent',
|
|
83
83
|
instructions: 'Answer user questions and delegate weather questions when needed.',
|
|
84
|
-
model: 'openai/gpt-5.
|
|
84
|
+
model: 'openai/gpt-5.5',
|
|
85
85
|
agents: {
|
|
86
86
|
remoteWeatherAgent,
|
|
87
87
|
},
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
# Signals
|
|
2
2
|
|
|
3
|
-
> **
|
|
3
|
+
> **Alpha:** This feature is in alpha. Breaking changes may occur without a major version bump until the API is stable.
|
|
4
4
|
|
|
5
5
|
Signals are a way to interact with an agent through a thread. Instead of starting every interaction with `agent.stream()`, subscribe to a thread and send messages or signals. Mastra either wakes the agent when the thread is idle, drops input into the running agent loop, or queues input for the next turn.
|
|
6
6
|
|
|
@@ -194,7 +194,7 @@ import { Agent } from '@mastra/core/agent'
|
|
|
194
194
|
|
|
195
195
|
export const supportAgent = new Agent({
|
|
196
196
|
name: 'support-agent',
|
|
197
|
-
model: 'openai/gpt-5.
|
|
197
|
+
model: 'openai/gpt-5.5',
|
|
198
198
|
editor: { instructions: true, tools: { description: true } },
|
|
199
199
|
})
|
|
200
200
|
```
|
|
@@ -235,7 +235,7 @@ export const colorAgent = new Agent({
|
|
|
235
235
|
instructions: `You are a helpful CSS assistant.
|
|
236
236
|
You can change the background color of web pages.
|
|
237
237
|
Respond with a hex reference for the color requested by the user`,
|
|
238
|
-
model: 'openai/gpt-5.
|
|
238
|
+
model: 'openai/gpt-5.5',
|
|
239
239
|
})
|
|
240
240
|
```
|
|
241
241
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@mastra/client-js",
|
|
3
|
-
"version": "1.22.0-alpha.
|
|
3
|
+
"version": "1.22.0-alpha.7",
|
|
4
4
|
"description": "The official TypeScript library for the Mastra Client API",
|
|
5
5
|
"author": "",
|
|
6
6
|
"type": "module",
|
|
@@ -40,7 +40,7 @@
|
|
|
40
40
|
"jose": "^6.2.1",
|
|
41
41
|
"json-schema": "^0.4.0",
|
|
42
42
|
"@mastra/schema-compat": "1.2.11-alpha.0",
|
|
43
|
-
"@mastra/core": "1.38.0-alpha.
|
|
43
|
+
"@mastra/core": "1.38.0-alpha.7"
|
|
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/
|
|
58
|
+
"@internal/lint": "0.0.99",
|
|
59
59
|
"@internal/ai-sdk-v5": "0.0.46",
|
|
60
|
-
"@internal/
|
|
61
|
-
"@internal/
|
|
60
|
+
"@internal/ai-sdk-v4": "0.0.46",
|
|
61
|
+
"@internal/types-builder": "0.0.74"
|
|
62
62
|
},
|
|
63
63
|
"engines": {
|
|
64
64
|
"node": ">=22.13.0"
|