@mastra/ai-sdk 1.10.0-alpha.0 → 1.10.0

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.js CHANGED
@@ -9,7 +9,7 @@ import { MASTRA_RESOURCE_ID_KEY } from "@mastra/core/request-context";
9
9
  import { MessageList, TripWire, aiV5ModelMessageToV2PromptMessage } from "@mastra/core/agent";
10
10
  import { RequestContext } from "@mastra/core/di";
11
11
  import { MessageHistory, SemanticRecall, WorkingMemory } from "@mastra/core/processors";
12
- //#region ../../packages/_vendored/ai_v5/dist/dist-BuEMdYEn.js
12
+ //#region ../../packages/_vendored/ai_v5/dist/dist-nVfjvSbw.js
13
13
  var marker$1$6 = "vercel.ai.error";
14
14
  var symbol$1$7 = Symbol.for(marker$1$6);
15
15
  var _a$1$7;
@@ -536,6 +536,7 @@ async function cancelResponseBody$2(response) {
536
536
  var initialGlobalFetch$2 = globalThis.fetch;
537
537
  isNodeDefaultFetch$2(initialGlobalFetch$2);
538
538
  function isNodeDefaultFetch$2(fetch) {
539
+ if (typeof fetch !== "function") return false;
539
540
  const source = Function.prototype.toString.call(fetch);
540
541
  return source.includes("internal/deps/undici") || source.includes("lazy loading of undici");
541
542
  }
@@ -5026,7 +5027,7 @@ function createUIMessageStream$2({ execute, onError = () => "An error occurred."
5026
5027
  });
5027
5028
  }
5028
5029
  //#endregion
5029
- //#region ../../packages/_vendored/ai_v6/dist/dist-BTWHzT8H.js
5030
+ //#region ../../packages/_vendored/ai_v6/dist/dist-Gd4EIxPM.js
5030
5031
  var marker$1$4 = "vercel.ai.error";
5031
5032
  var symbol$1$4 = Symbol.for(marker$1$4);
5032
5033
  var _a$1$4;
@@ -5369,6 +5370,7 @@ var _b$2;
5369
5370
  var initialGlobalFetch$1 = globalThis.fetch;
5370
5371
  isNodeDefaultFetch$1(initialGlobalFetch$1);
5371
5372
  function isNodeDefaultFetch$1(fetch) {
5373
+ if (typeof fetch !== "function") return false;
5372
5374
  const source = Function.prototype.toString.call(fetch);
5373
5375
  return source.includes("internal/deps/undici") || source.includes("lazy loading of undici");
5374
5376
  }