@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.cjs CHANGED
@@ -3,6 +3,7 @@
3
3
  var server = require('@mastra/core/server');
4
4
  var z4 = require('zod/v4');
5
5
  var v3 = require('zod/v3');
6
+ var web = require('stream/web');
6
7
  var stream = require('@mastra/core/stream');
7
8
  var agent = require('@mastra/core/agent');
8
9
  var di = require('@mastra/core/di');
@@ -3355,7 +3356,7 @@ function WorkflowStreamToAISDKTransformer({
3355
3356
  includeTextStreamParts
3356
3357
  } = {}) {
3357
3358
  const bufferedWorkflows = /* @__PURE__ */ new Map();
3358
- return new TransformStream({
3359
+ return new web.TransformStream({
3359
3360
  start(controller) {
3360
3361
  controller.enqueue({
3361
3362
  type: "start"
@@ -3374,7 +3375,7 @@ function WorkflowStreamToAISDKTransformer({
3374
3375
  }
3375
3376
  function AgentNetworkToAISDKTransformer() {
3376
3377
  const bufferedNetworks = /* @__PURE__ */ new Map();
3377
- return new TransformStream({
3378
+ return new web.TransformStream({
3378
3379
  start(controller) {
3379
3380
  controller.enqueue({
3380
3381
  type: "start"
@@ -3411,7 +3412,7 @@ function AgentStreamToAISDKTransformer({
3411
3412
  let bufferedSteps = /* @__PURE__ */ new Map();
3412
3413
  let tripwireOccurred = false;
3413
3414
  let finishEventSent = false;
3414
- return new TransformStream({
3415
+ return new web.TransformStream({
3415
3416
  transform(chunk, controller) {
3416
3417
  if (chunk.type === "tripwire") {
3417
3418
  tripwireOccurred = true;
@@ -4753,7 +4754,7 @@ function createProcessorMiddleware(options) {
4753
4754
  const processorStates = /* @__PURE__ */ new Map();
4754
4755
  const runId = crypto.randomUUID();
4755
4756
  const transformedStream = stream$1.pipeThrough(
4756
- new TransformStream({
4757
+ new web.TransformStream({
4757
4758
  async transform(chunk, controller) {
4758
4759
  let mastraChunk = stream.convertFullStreamChunkToMastra(
4759
4760
  chunk,
@@ -4813,7 +4814,7 @@ function createProcessorMiddleware(options) {
4813
4814
  };
4814
4815
  }
4815
4816
  function createBlockedStream(reason) {
4816
- return new ReadableStream({
4817
+ return new web.ReadableStream({
4817
4818
  start(controller) {
4818
4819
  const id = crypto.randomUUID();
4819
4820
  controller.enqueue({