ai 6.0.0-beta.33 → 6.0.0-beta.34

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/dist/index.mjs CHANGED
@@ -192,10 +192,14 @@ var MCPClientError = class extends AISDKError5 {
192
192
  constructor({
193
193
  name: name17 = "MCPClientError",
194
194
  message,
195
- cause
195
+ cause,
196
+ data,
197
+ code
196
198
  }) {
197
199
  super({ name: name17, message, cause });
198
200
  this[_a5] = true;
201
+ this.data = data;
202
+ this.code = code;
199
203
  }
200
204
  static isInstance(error) {
201
205
  return AISDKError5.hasMarker(error, marker5);
@@ -716,7 +720,7 @@ import {
716
720
  } from "@ai-sdk/provider-utils";
717
721
 
718
722
  // src/version.ts
719
- var VERSION = true ? "6.0.0-beta.33" : "0.0.0-test";
723
+ var VERSION = true ? "6.0.0-beta.34" : "0.0.0-test";
720
724
 
721
725
  // src/util/download/download.ts
722
726
  var download = async ({ url }) => {
@@ -9564,6 +9568,8 @@ var DefaultMCPClient = class {
9564
9568
  handler(
9565
9569
  "result" in response ? response : new MCPClientError({
9566
9570
  message: response.error.message,
9571
+ code: response.error.code,
9572
+ data: response.error.data,
9567
9573
  cause: response.error
9568
9574
  })
9569
9575
  );