@mastra/ai-sdk 0.0.0-type-testing-20260120105120 → 0.0.0-unified-workspace-snapshot-20260128233410

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
@@ -2,6 +2,7 @@ import { registerApiRoute } from '@mastra/core/server';
2
2
  import * as z4 from 'zod/v4';
3
3
  import { z } from 'zod/v4';
4
4
  import { ZodFirstPartyTypeKind } from 'zod/v3';
5
+ import { TransformStream as TransformStream$1, ReadableStream as ReadableStream$1 } from 'stream/web';
5
6
  import { convertFullStreamChunkToMastra, DefaultGeneratedFile, DefaultGeneratedFileWithType } from '@mastra/core/stream';
6
7
  import { TripWire, MessageList, aiV5ModelMessageToV2PromptMessage } from '@mastra/core/agent';
7
8
  import { RequestContext } from '@mastra/core/di';
@@ -3334,7 +3335,7 @@ function WorkflowStreamToAISDKTransformer({
3334
3335
  includeTextStreamParts
3335
3336
  } = {}) {
3336
3337
  const bufferedWorkflows = /* @__PURE__ */ new Map();
3337
- return new TransformStream({
3338
+ return new TransformStream$1({
3338
3339
  start(controller) {
3339
3340
  controller.enqueue({
3340
3341
  type: "start"
@@ -3353,7 +3354,7 @@ function WorkflowStreamToAISDKTransformer({
3353
3354
  }
3354
3355
  function AgentNetworkToAISDKTransformer() {
3355
3356
  const bufferedNetworks = /* @__PURE__ */ new Map();
3356
- return new TransformStream({
3357
+ return new TransformStream$1({
3357
3358
  start(controller) {
3358
3359
  controller.enqueue({
3359
3360
  type: "start"
@@ -3390,7 +3391,7 @@ function AgentStreamToAISDKTransformer({
3390
3391
  let bufferedSteps = /* @__PURE__ */ new Map();
3391
3392
  let tripwireOccurred = false;
3392
3393
  let finishEventSent = false;
3393
- return new TransformStream({
3394
+ return new TransformStream$1({
3394
3395
  transform(chunk, controller) {
3395
3396
  if (chunk.type === "tripwire") {
3396
3397
  tripwireOccurred = true;
@@ -4732,7 +4733,7 @@ function createProcessorMiddleware(options) {
4732
4733
  const processorStates = /* @__PURE__ */ new Map();
4733
4734
  const runId = crypto.randomUUID();
4734
4735
  const transformedStream = stream.pipeThrough(
4735
- new TransformStream({
4736
+ new TransformStream$1({
4736
4737
  async transform(chunk, controller) {
4737
4738
  let mastraChunk = convertFullStreamChunkToMastra(
4738
4739
  chunk,
@@ -4792,7 +4793,7 @@ function createProcessorMiddleware(options) {
4792
4793
  };
4793
4794
  }
4794
4795
  function createBlockedStream(reason) {
4795
- return new ReadableStream({
4796
+ return new ReadableStream$1({
4796
4797
  start(controller) {
4797
4798
  const id = crypto.randomUUID();
4798
4799
  controller.enqueue({