@mastra/client-js 1.42.5-alpha.0 → 1.42.5-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.
- package/CHANGELOG.md +7 -0
- package/dist/docs/SKILL.md +32 -32
- package/dist/docs/assets/SOURCE_MAP.json +1 -1
- package/package.json +4 -4
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,12 @@
|
|
|
1
1
|
# @mastra/client-js
|
|
2
2
|
|
|
3
|
+
## 1.42.5-alpha.1
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- Updated dependencies [[`a3606a0`](https://github.com/mastra-ai/mastra/commit/a3606a09f3deaeef17caf04b9c6a0d7cd6b80fe6), [`4095752`](https://github.com/mastra-ai/mastra/commit/40957529233d202446ebecab1f59c76e99910230), [`a3606a0`](https://github.com/mastra-ai/mastra/commit/a3606a09f3deaeef17caf04b9c6a0d7cd6b80fe6)]:
|
|
8
|
+
- @mastra/core@1.63.3-alpha.1
|
|
9
|
+
|
|
3
10
|
## 1.42.5-alpha.0
|
|
4
11
|
|
|
5
12
|
### 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.42.5-alpha.
|
|
6
|
+
version: "1.42.5-alpha.1"
|
|
7
7
|
---
|
|
8
8
|
|
|
9
9
|
## When to use
|
|
@@ -16,43 +16,43 @@ Read the individual reference documents for detailed explanations and code examp
|
|
|
16
16
|
|
|
17
17
|
### Docs
|
|
18
18
|
|
|
19
|
-
- [JSON Web Token](references/docs-auth-jwt.md) -
|
|
20
|
-
- [A2A (Agent-to-Agent)](references/docs-connections-a2a.md) - Expose
|
|
21
|
-
- [Schedules](references/docs-harness-schedules.md) -
|
|
22
|
-
- [Signals](references/docs-harness-signals.md) -
|
|
23
|
-
- [Mastra client](references/docs-server-mastra-client.md) -
|
|
24
|
-
- [Editor](references/docs-studio-editor.md) -
|
|
19
|
+
- [JSON Web Token](references/docs-auth-jwt.md) - Secure Mastra APIs with MastraJwtAuth and a shared secret, then create JSON Web Tokens and send authenticated requests through MastraClient.
|
|
20
|
+
- [A2A (Agent-to-Agent)](references/docs-connections-a2a.md) - Expose Mastra agents through the Agent-to-Agent protocol and consume remote A2A agents as subagents or call them directly with the client SDK.
|
|
21
|
+
- [Schedules](references/docs-harness-schedules.md) - Schedule Mastra agents with cron expressions, recurring prompts, optional thread delivery, lifecycle hooks, and APIs for managing scheduled runs.
|
|
22
|
+
- [Signals](references/docs-harness-signals.md) - Send real-time messages or contextual data into a Mastra agent thread immediately or queue them for the next turn with configurable signal behavior.
|
|
23
|
+
- [Mastra client](references/docs-server-mastra-client.md) - Use the type-safe Mastra Client SDK from browser applications to call agents, workflows, tools, memory, and server APIs with streaming support.
|
|
24
|
+
- [Editor](references/docs-studio-editor.md) - Use Mastra Studio Editor so collaborators can change agent instructions and tools without modifying source code, from draft testing through publication.
|
|
25
25
|
|
|
26
26
|
### Integrations
|
|
27
27
|
|
|
28
|
-
- [Auth0](references/integrations-auth-auth0.md) -
|
|
29
|
-
- [Clerk](references/integrations-auth-clerk.md) -
|
|
30
|
-
- [Firebase](references/integrations-auth-firebase.md) -
|
|
31
|
-
- [Supabase](references/integrations-auth-supabase.md) -
|
|
32
|
-
- [WorkOS](references/integrations-auth-workos.md) -
|
|
28
|
+
- [Auth0](references/integrations-auth-auth0.md) - Authenticate Mastra servers with Auth0 JWTs, configure credentials and authorization, and connect client applications with authenticated requests.
|
|
29
|
+
- [Clerk](references/integrations-auth-clerk.md) - Authenticate Mastra server requests with Clerk, configure the @mastra/auth-clerk provider, retrieve access tokens, and connect MastraClient securely.
|
|
30
|
+
- [Firebase](references/integrations-auth-firebase.md) - Authenticate Mastra applications with Firebase ID tokens, configure service credentials and authorization, and send secured client requests.
|
|
31
|
+
- [Supabase](references/integrations-auth-supabase.md) - Authenticate Mastra server requests with Supabase Auth, configure the provider, retrieve user access tokens, and connect MastraClient securely.
|
|
32
|
+
- [WorkOS](references/integrations-auth-workos.md) - Authenticate Mastra with WorkOS access tokens, configure default or fine-grained authorization, load memberships, and support custom JWT templates.
|
|
33
33
|
|
|
34
34
|
### Reference
|
|
35
35
|
|
|
36
|
-
- [Reference: toAISdkMessages()](references/reference-ai-sdk-to-ai-sdk-messages.md) -
|
|
37
|
-
- [Reference: toAISdkStream()](references/reference-ai-sdk-to-ai-sdk-stream.md) -
|
|
38
|
-
- [Reference: toAISdkV4Messages()](references/reference-ai-sdk-to-ai-sdk-v4-messages.md) -
|
|
39
|
-
- [Reference: toAISdkV5Messages()](references/reference-ai-sdk-to-ai-sdk-v5-messages.md) -
|
|
40
|
-
- [Reference: Agents API](references/reference-client-js-agents.md) -
|
|
41
|
-
- [Reference: OpenAI Responses API Conversations](references/reference-client-js-conversations.md) - API
|
|
42
|
-
- [Reference: Datasets API](references/reference-client-js-datasets.md) -
|
|
43
|
-
- [Reference: Error handling](references/reference-client-js-error-handling.md) -
|
|
44
|
-
- [Reference: Logs API](references/reference-client-js-logs.md) -
|
|
45
|
-
- [Reference: Mastra client SDK](references/reference-client-js-mastra-client.md) -
|
|
46
|
-
- [Reference: Memory API](references/reference-client-js-memory.md) -
|
|
47
|
-
- [Reference: Observability API](references/reference-client-js-observability.md) -
|
|
48
|
-
- [Reference: OpenAI Responses API](references/reference-client-js-responses.md) -
|
|
49
|
-
- [Reference: Telemetry API](references/reference-client-js-telemetry.md) -
|
|
50
|
-
- [Reference: Tools API](references/reference-client-js-tools.md) -
|
|
51
|
-
- [Reference: Vectors API](references/reference-client-js-vectors.md) -
|
|
52
|
-
- [Reference: Workflows API](references/reference-client-js-workflows.md) -
|
|
53
|
-
- [Reference: Versioning](references/reference-editor-versioning.md) -
|
|
54
|
-
- [Client SDK](references/reference-migrations-upgrade-to-v1-client.md) -
|
|
55
|
-
- [Reference: Metric queries](references/reference-observability-metrics-queries.md) -
|
|
36
|
+
- [Reference: toAISdkMessages()](references/reference-ai-sdk-to-ai-sdk-messages.md) - Converts messages from input formats to AI SDK UI message format. toAISdkMessages() keeps the existing AI SDK v5/default behavior.
|
|
37
|
+
- [Reference: toAISdkStream()](references/reference-ai-sdk-to-ai-sdk-stream.md) - Converts Mastra streams (agent, network, or workflow) to AI SDK-compatible streams.
|
|
38
|
+
- [Reference: toAISdkV4Messages()](references/reference-ai-sdk-to-ai-sdk-v4-messages.md) - Use toAISdkV4Messages() to convert strings and Mastra or AI SDK messages into AI SDK v4 UIMessage objects for useChat().
|
|
39
|
+
- [Reference: toAISdkV5Messages()](references/reference-ai-sdk-to-ai-sdk-v5-messages.md) - Converts messages from input formats to AI SDK V5 (and later) UI message format.
|
|
40
|
+
- [Reference: Agents API](references/reference-client-js-agents.md) - The Agents API provides methods to interact with Mastra AI agents, including generating responses and streaming interactions.
|
|
41
|
+
- [Reference: OpenAI Responses API Conversations](references/reference-client-js-conversations.md) - The OpenAI Responses API Conversations surface gives you the conversation-management side of Mastra Agents as a Responses API.
|
|
42
|
+
- [Reference: Datasets API](references/reference-client-js-datasets.md) - The Datasets API exposes Mastra's dataset and experiment routes from MastraClient.
|
|
43
|
+
- [Reference: Error handling](references/reference-client-js-error-handling.md) - The Mastra Client SDK includes built-in retry mechanism and error handling capabilities.
|
|
44
|
+
- [Reference: Logs API](references/reference-client-js-logs.md) - The Logs API provides methods to access and query system logs and debugging information in Mastra.
|
|
45
|
+
- [Reference: Mastra client SDK](references/reference-client-js-mastra-client.md) - The Mastra Client SDK provides a type-safe interface for interacting with your Mastra Server from your client environment.
|
|
46
|
+
- [Reference: Memory API](references/reference-client-js-memory.md) - The Memory API provides methods to manage conversation threads and message history in Mastra.
|
|
47
|
+
- [Reference: Observability API](references/reference-client-js-observability.md) - The Observability API provides methods to retrieve traces, monitor application performance, score traces for evaluation, and record feedback linked to traces and spans.
|
|
48
|
+
- [Reference: OpenAI Responses API](references/reference-client-js-responses.md) - This OpenAI-compatible, agent-backed interface lets you use Mastra Agents as a Responses API.
|
|
49
|
+
- [Reference: Telemetry API](references/reference-client-js-telemetry.md) - The Telemetry API provides methods to retrieve and analyze traces from your Mastra application. This helps you monitor and debug your application's behavior and performance.
|
|
50
|
+
- [Reference: Tools API](references/reference-client-js-tools.md) - The Tools API provides methods to interact with and execute tools available in the Mastra platform.
|
|
51
|
+
- [Reference: Vectors API](references/reference-client-js-vectors.md) - The Vectors API provides methods to work with vector embeddings for semantic search and similarity matching in Mastra.
|
|
52
|
+
- [Reference: Workflows API](references/reference-client-js-workflows.md) - The Workflows API provides methods to interact with and execute automated workflows in Mastra.
|
|
53
|
+
- [Reference: Versioning](references/reference-editor-versioning.md) - Editor versions stored agents and prompt blocks. Database-backed resources use draft and publish operations.
|
|
54
|
+
- [Client SDK](references/reference-migrations-upgrade-to-v1-client.md) - Client SDK changes align with server-side API updates, including utility renames, updated pagination, and type naming conventions.
|
|
55
|
+
- [Reference: Metric queries](references/reference-observability-metrics-queries.md) - Metric queries read raw and aggregated metric data from the observability storage domain. For exporter and storage setup, see the Metrics overview.
|
|
56
56
|
|
|
57
57
|
|
|
58
58
|
Read [assets/SOURCE_MAP.json](assets/SOURCE_MAP.json) for source code references.
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@mastra/client-js",
|
|
3
|
-
"version": "1.42.5-alpha.
|
|
3
|
+
"version": "1.42.5-alpha.1",
|
|
4
4
|
"description": "The official TypeScript library for the Mastra Client API",
|
|
5
5
|
"author": "",
|
|
6
6
|
"type": "module",
|
|
@@ -39,7 +39,7 @@
|
|
|
39
39
|
"canonicalize": "^1.0.8",
|
|
40
40
|
"jose": "^6.2.1",
|
|
41
41
|
"json-schema": "^0.4.0",
|
|
42
|
-
"@mastra/core": "1.63.3-alpha.
|
|
42
|
+
"@mastra/core": "1.63.3-alpha.1",
|
|
43
43
|
"@mastra/schema-compat": "1.3.7"
|
|
44
44
|
},
|
|
45
45
|
"peerDependencies": {
|
|
@@ -58,8 +58,8 @@
|
|
|
58
58
|
"zod": "^4.4.3",
|
|
59
59
|
"@internal/ai-sdk-v4": "0.0.76",
|
|
60
60
|
"@internal/lint": "0.0.129",
|
|
61
|
-
"@internal/
|
|
62
|
-
"@internal/
|
|
61
|
+
"@internal/ai-sdk-v5": "0.0.76",
|
|
62
|
+
"@internal/types-builder": "0.0.104"
|
|
63
63
|
},
|
|
64
64
|
"engines": {
|
|
65
65
|
"node": ">=22.13.0"
|