@mastra/ai-sdk 1.12.0-alpha.1 → 1.12.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.
@@ -1,6 +1,6 @@
1
- import type { UIMessageStreamOptions as UIMessageStreamOptionsV5 } from './_types/@internal_ai-sdk-v5@0.0.95/dist/index.js';
2
- import type { UIMessageStreamOptions as UIMessageStreamOptionsV6 } from './_types/@internal_ai-v6@0.0.95/dist/index.js';
3
- import type { UIMessageStreamOptions as UIMessageStreamOptionsV7 } from './_types/@internal_ai-v7@0.0.95/dist/index.js';
1
+ import type { UIMessageStreamOptions as UIMessageStreamOptionsV5 } from './_types/@internal_ai-sdk-v5@0.0.96/dist/index.js';
2
+ import type { UIMessageStreamOptions as UIMessageStreamOptionsV6 } from './_types/@internal_ai-v6@0.0.96/dist/index.js';
3
+ import type { UIMessageStreamOptions as UIMessageStreamOptionsV7 } from './_types/@internal_ai-v7@0.0.96/dist/index.js';
4
4
  import type { AgentExecutionOptions } from '@mastra/core/agent';
5
5
  import type { Mastra } from '@mastra/core/mastra';
6
6
  import { registerApiRoute } from '@mastra/core/server';
@@ -1,6 +1,6 @@
1
- import type { InferUIMessageChunk as InferUIMessageChunkV5, UIMessage as UIMessageV5, UIMessageStreamOptions as UIMessageStreamOptionsV5 } from './_types/@internal_ai-sdk-v5@0.0.95/dist/index.js';
2
- import type { UIMessage as UIMessageV6, UIMessageStreamOptions as UIMessageStreamOptionsV6 } from './_types/@internal_ai-v6@0.0.95/dist/index.js';
3
- import type { UIMessage as UIMessageV7, UIMessageStreamOptions as UIMessageStreamOptionsV7 } from './_types/@internal_ai-v7@0.0.95/dist/index.js';
1
+ import type { InferUIMessageChunk as InferUIMessageChunkV5, UIMessage as UIMessageV5, UIMessageStreamOptions as UIMessageStreamOptionsV5 } from './_types/@internal_ai-sdk-v5@0.0.96/dist/index.js';
2
+ import type { UIMessage as UIMessageV6, UIMessageStreamOptions as UIMessageStreamOptionsV6 } from './_types/@internal_ai-v6@0.0.96/dist/index.js';
3
+ import type { UIMessage as UIMessageV7, UIMessageStreamOptions as UIMessageStreamOptionsV7 } from './_types/@internal_ai-v7@0.0.96/dist/index.js';
4
4
  import type { MastraModelOutput, MastraAgentNetworkStream, WorkflowRunOutput } from '@mastra/core/stream';
5
5
  import type { MastraWorkflowStream, Step, WorkflowResult } from '@mastra/core/workflows';
6
6
  import type { ZodObject, ZodType } from 'zod/v4';
@@ -3,7 +3,7 @@ name: mastra-ai-sdk
3
3
  description: Documentation for @mastra/ai-sdk. Use when working with @mastra/ai-sdk APIs, configuration, or implementation.
4
4
  metadata:
5
5
  package: "@mastra/ai-sdk"
6
- version: "1.12.0-alpha.1"
6
+ version: "1.12.0"
7
7
  ---
8
8
 
9
9
  ## When to use
@@ -1,5 +1,5 @@
1
1
  {
2
- "version": "1.12.0-alpha.1",
2
+ "version": "1.12.0",
3
3
  "package": "@mastra/ai-sdk",
4
4
  "exports": {
5
5
  "assertValidHeartbeatMs": {
package/dist/helpers.d.ts CHANGED
@@ -1,5 +1,5 @@
1
- import type { InferUIMessageChunk, ObjectStreamPart, TextStreamPart, ToolSet, UIMessage, FinishReason } from './_types/@internal_ai-sdk-v5@0.0.95/dist/index.js';
2
- import type { FinishReason as FinishReasonV6, InferUIMessageChunk as InferUIMessageChunkV6, ToolApprovalRequest, UIMessage as UIMessageV6 } from './_types/@internal_ai-v6@0.0.95/dist/index.js';
1
+ import type { InferUIMessageChunk, ObjectStreamPart, TextStreamPart, ToolSet, UIMessage, FinishReason } from './_types/@internal_ai-sdk-v5@0.0.96/dist/index.js';
2
+ import type { FinishReason as FinishReasonV6, InferUIMessageChunk as InferUIMessageChunkV6, ToolApprovalRequest, UIMessage as UIMessageV6 } from './_types/@internal_ai-v6@0.0.96/dist/index.js';
3
3
  import type { DataChunkType, ChunkType, MastraFinishReason } from '@mastra/core/stream';
4
4
  /**
5
5
  * Separator used to encode both runId and toolCallId into a single approvalId string.
package/dist/index.cjs CHANGED
@@ -32,7 +32,7 @@ let stream_web = require("stream/web");
32
32
  let _mastra_core_agent = require("@mastra/core/agent");
33
33
  let _mastra_core_di = require("@mastra/core/di");
34
34
  let _mastra_core_processors = require("@mastra/core/processors");
35
- // ../../packages/_vendored/ai_v5/dist/dist-BYnbJEqC.js
35
+ // ../../packages/_vendored/ai_v5/dist/dist-BESblyT5.js
36
36
  var marker$1$4 = "vercel.ai.error";
37
37
  var symbol$1$4 = Symbol.for(marker$1$4);
38
38
  var _a$1$4;
@@ -3281,7 +3281,7 @@ function createUIMessageStream$2({ execute, onError = () => "An error occurred."
3281
3281
  getOutcome: () => outcome
3282
3282
  });
3283
3283
  }
3284
- // ../../packages/_vendored/ai_v6/dist/dist-DwNW4Hp7.js
3284
+ // ../../packages/_vendored/ai_v6/dist/dist-DRzIKDJV.js
3285
3285
  var marker$1$2 = "vercel.ai.error";
3286
3286
  var symbol$1$2 = Symbol.for(marker$1$2);
3287
3287
  var _a$1;
@@ -6972,7 +6972,7 @@ var doWrap = ({ model, middleware: { transformParams, wrapGenerate, wrapStream,
6972
6972
  }
6973
6973
  };
6974
6974
  };
6975
- // ../../packages/_vendored/ai_v7/dist/dist-CwN1TMYk.js
6975
+ // ../../packages/_vendored/ai_v7/dist/dist-MpcKalG3.js
6976
6976
  /**
6977
6977
  * Symbol used for identifying AI SDK Error instances.
6978
6978
  * Enables checking if an error is an instance of AISDKError across package versions.