@mastra/client-js 1.18.0-alpha.15 → 1.18.0-alpha.16

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,12 @@
1
1
  # @mastra/client-js
2
2
 
3
+ ## 1.18.0-alpha.16
4
+
5
+ ### Patch Changes
6
+
7
+ - Updated dependencies [[`105e454`](https://github.com/mastra-ai/mastra/commit/105e454c95af06a7c741c15969d8f9b0f02463a7)]:
8
+ - @mastra/core@1.33.0-alpha.15
9
+
3
10
  ## 1.18.0-alpha.15
4
11
 
5
12
  ### Minor 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.18.0-alpha.15"
6
+ version: "1.18.0-alpha.16"
7
7
  ---
8
8
 
9
9
  ## When to use
@@ -1,5 +1,5 @@
1
1
  {
2
- "version": "1.18.0-alpha.15",
2
+ "version": "1.18.0-alpha.16",
3
3
  "package": "@mastra/client-js",
4
4
  "exports": {
5
5
  "RequestContext": {
package/dist/index.cjs CHANGED
@@ -6,7 +6,7 @@ var error = require('@mastra/core/error');
6
6
  var schema = require('@mastra/schema-compat/schema');
7
7
  var requestContext = require('@mastra/core/request-context');
8
8
  var zodToJson = require('@mastra/schema-compat/zod-to-json');
9
- var a2a = require('@mastra/core/a2a');
9
+ var client = require('@mastra/core/a2a/client');
10
10
  var canonicalize = require('canonicalize');
11
11
  var jose = require('jose');
12
12
 
@@ -2982,7 +2982,7 @@ async function verifyAgentCardSignatureIfPresent(agentCard, options) {
2982
2982
  function createA2AJsonRpcError(response) {
2983
2983
  const error = response.error;
2984
2984
  const message = error?.message ?? "Unknown A2A JSON-RPC error";
2985
- return typeof error?.code === "number" ? new a2a.MastraA2AError(error.code, message, error.data) : new MastraClientError(200, "OK", `A2A JSON-RPC error - ${message}`, error);
2985
+ return typeof error?.code === "number" ? new client.MastraA2AError(error.code, message, error.data) : new MastraClientError(200, "OK", `A2A JSON-RPC error - ${message}`, error);
2986
2986
  }
2987
2987
  function unwrapA2AResult(response) {
2988
2988
  if ("error" in response && response.error) {