@mastra/ai-sdk 1.0.0-beta.11 → 1.0.0-beta.12
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/CHANGELOG.md +16 -0
- package/dist/helpers.d.ts.map +1 -1
- package/dist/index.cjs +18 -10
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +18 -10
- package/dist/index.js.map +1 -1
- package/dist/transformers.d.ts +5 -6
- package/dist/transformers.d.ts.map +1 -1
- package/package.json +3 -3
package/dist/index.js
CHANGED
|
@@ -3255,7 +3255,8 @@ function convertFullStreamChunkToUIMessageStream({
|
|
|
3255
3255
|
${JSON.stringify(part)}`
|
|
3256
3256
|
);
|
|
3257
3257
|
}
|
|
3258
|
-
|
|
3258
|
+
const { type, data, id } = part.output;
|
|
3259
|
+
return { type, data, ...id !== void 0 && { id } };
|
|
3259
3260
|
}
|
|
3260
3261
|
return;
|
|
3261
3262
|
}
|
|
@@ -3317,7 +3318,8 @@ function convertFullStreamChunkToUIMessageStream({
|
|
|
3317
3318
|
${JSON.stringify(part)}`
|
|
3318
3319
|
);
|
|
3319
3320
|
}
|
|
3320
|
-
|
|
3321
|
+
const { type, data, id } = part;
|
|
3322
|
+
return { type, data, ...id !== void 0 && { id } };
|
|
3321
3323
|
}
|
|
3322
3324
|
return;
|
|
3323
3325
|
}
|
|
@@ -3675,7 +3677,8 @@ function transformWorkflow(payload, bufferedWorkflows, isNested, includeTextStre
|
|
|
3675
3677
|
${JSON.stringify(output)}`
|
|
3676
3678
|
);
|
|
3677
3679
|
}
|
|
3678
|
-
|
|
3680
|
+
const { type, data, id } = output;
|
|
3681
|
+
return { type, data, ...id !== void 0 && { id } };
|
|
3679
3682
|
}
|
|
3680
3683
|
return null;
|
|
3681
3684
|
}
|
|
@@ -3687,7 +3690,12 @@ function transformWorkflow(payload, bufferedWorkflows, isNested, includeTextStre
|
|
|
3687
3690
|
${JSON.stringify(payload)}`
|
|
3688
3691
|
);
|
|
3689
3692
|
}
|
|
3690
|
-
|
|
3693
|
+
const { type, data, id } = payload;
|
|
3694
|
+
return {
|
|
3695
|
+
type,
|
|
3696
|
+
data,
|
|
3697
|
+
...id !== void 0 && { id }
|
|
3698
|
+
};
|
|
3691
3699
|
}
|
|
3692
3700
|
return null;
|
|
3693
3701
|
}
|
|
@@ -3950,8 +3958,8 @@ function transformNetwork(payload, bufferedNetworks, isNested) {
|
|
|
3950
3958
|
${JSON.stringify(payload)}`
|
|
3951
3959
|
);
|
|
3952
3960
|
}
|
|
3953
|
-
const { type, data } = payload.payload;
|
|
3954
|
-
return { type, data };
|
|
3961
|
+
const { type, data, id } = payload.payload;
|
|
3962
|
+
return { type, data, ...id !== void 0 && { id } };
|
|
3955
3963
|
}
|
|
3956
3964
|
if (isWorkflowExecutionDataChunkType(payload)) {
|
|
3957
3965
|
if (!("data" in payload.payload)) {
|
|
@@ -3960,8 +3968,8 @@ function transformNetwork(payload, bufferedNetworks, isNested) {
|
|
|
3960
3968
|
${JSON.stringify(payload)}`
|
|
3961
3969
|
);
|
|
3962
3970
|
}
|
|
3963
|
-
const { type, data } = payload.payload;
|
|
3964
|
-
return { type, data };
|
|
3971
|
+
const { type, data, id } = payload.payload;
|
|
3972
|
+
return { type, data, ...id !== void 0 && { id } };
|
|
3965
3973
|
}
|
|
3966
3974
|
if (payload.type.startsWith("agent-execution-event-")) {
|
|
3967
3975
|
const stepId = payload.payload.runId;
|
|
@@ -4021,8 +4029,8 @@ function transformNetwork(payload, bufferedNetworks, isNested) {
|
|
|
4021
4029
|
${JSON.stringify(payload)}`
|
|
4022
4030
|
);
|
|
4023
4031
|
}
|
|
4024
|
-
const { type, data } = payload;
|
|
4025
|
-
return { type, data };
|
|
4032
|
+
const { type, data, id } = payload;
|
|
4033
|
+
return { type, data, ...id !== void 0 && { id } };
|
|
4026
4034
|
}
|
|
4027
4035
|
return null;
|
|
4028
4036
|
}
|