ai 5.0.63 → 5.0.64

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
@@ -193,10 +193,14 @@ var MCPClientError = class extends AISDKError5 {
193
193
  constructor({
194
194
  name: name17 = "MCPClientError",
195
195
  message,
196
- cause
196
+ cause,
197
+ data,
198
+ code
197
199
  }) {
198
200
  super({ name: name17, message, cause });
199
201
  this[_a5] = true;
202
+ this.data = data;
203
+ this.code = code;
200
204
  }
201
205
  static isInstance(error) {
202
206
  return AISDKError5.hasMarker(error, marker5);
@@ -691,7 +695,7 @@ import {
691
695
  } from "@ai-sdk/provider-utils";
692
696
 
693
697
  // src/version.ts
694
- var VERSION = true ? "5.0.63" : "0.0.0-test";
698
+ var VERSION = true ? "5.0.64" : "0.0.0-test";
695
699
 
696
700
  // src/util/download/download.ts
697
701
  var download = async ({ url }) => {
@@ -9195,6 +9199,8 @@ var DefaultMCPClient = class {
9195
9199
  handler(
9196
9200
  "result" in response ? response : new MCPClientError({
9197
9201
  message: response.error.message,
9202
+ code: response.error.code,
9203
+ data: response.error.data,
9198
9204
  cause: response.error
9199
9205
  })
9200
9206
  );