@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.
@@ -2755,7 +2755,8 @@ function createAgenticLoopWorkflow(options) {
2755
2755
  steps: state.accumulatedSteps
2756
2756
  }
2757
2757
  });
2758
- if (lastStep && finishResult.outputText && finishResult.outputText !== (finalText ?? "")) {
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(output).getReader();
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-zS6LvTK1.cjs.map
5098
+ //# sourceMappingURL=src-HmoLmUk6.cjs.map