@mastra/inngest 1.11.2-alpha.2 → 1.11.2-alpha.3
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/connect.cjs +1 -1
- package/dist/connect.js +1 -1
- package/dist/durable-agent/create-inngest-agent.d.ts.map +1 -1
- package/dist/index.cjs +1 -1
- package/dist/index.js +1 -1
- package/dist/{src-IbSX_hCm.js → src-3ujfBhgX.js} +6 -4
- package/dist/src-3ujfBhgX.js.map +1 -0
- package/dist/{src-zS6LvTK1.cjs → src-HmoLmUk6.cjs} +6 -4
- package/dist/src-HmoLmUk6.cjs.map +1 -0
- package/package.json +6 -6
- package/dist/src-IbSX_hCm.js.map +0 -1
- package/dist/src-zS6LvTK1.cjs.map +0 -1
|
@@ -2755,7 +2755,8 @@ function createAgenticLoopWorkflow(options) {
|
|
|
2755
2755
|
steps: state.accumulatedSteps
|
|
2756
2756
|
}
|
|
2757
2757
|
});
|
|
2758
|
-
|
|
2758
|
+
const textRewritten = !!lastStep && finishResult.outputTextChanged;
|
|
2759
|
+
if (lastStep && finishResult.outputTextChanged) {
|
|
2759
2760
|
lastStep.text = finishResult.outputText;
|
|
2760
2761
|
finalText = finishResult.outputText;
|
|
2761
2762
|
}
|
|
@@ -2851,7 +2852,8 @@ function createAgenticLoopWorkflow(options) {
|
|
|
2851
2852
|
});
|
|
2852
2853
|
if (pubsub) await (0, _mastra_core_agent_durable.emitFinishEvent)(pubsub, state.runId, {
|
|
2853
2854
|
output: finalOutput.output,
|
|
2854
|
-
stepResult: finalOutput.stepResult
|
|
2855
|
+
stepResult: finalOutput.stepResult,
|
|
2856
|
+
...textRewritten && { textRewritten }
|
|
2855
2857
|
});
|
|
2856
2858
|
return finalOutput;
|
|
2857
2859
|
}, { id: "map-final-output" }).map(async (params) => {
|
|
@@ -4002,7 +4004,7 @@ function createInngestAgent(options) {
|
|
|
4002
4004
|
Object.defineProperty(output, "fullStream", {
|
|
4003
4005
|
configurable: true,
|
|
4004
4006
|
get() {
|
|
4005
|
-
const reader = baseFullStream.call(
|
|
4007
|
+
const reader = baseFullStream.call(this).getReader();
|
|
4006
4008
|
return new ReadableStream({
|
|
4007
4009
|
async pull(controller) {
|
|
4008
4010
|
let result;
|
|
@@ -5093,4 +5095,4 @@ Object.defineProperty(exports, "serve", {
|
|
|
5093
5095
|
}
|
|
5094
5096
|
});
|
|
5095
5097
|
|
|
5096
|
-
//# sourceMappingURL=src-
|
|
5098
|
+
//# sourceMappingURL=src-HmoLmUk6.cjs.map
|